kachelmannwetter.com Open in urlscan Pro
2606:4700::6811:a866  Public Scan

URL: https://kachelmannwetter.com/js/graph.js?v2.5a
Submission: On January 31 via api from US

Form analysis 0 forms found in the DOM

Text Content

(function(root,factory){if(typeof define==="function"&&define.amd){define([],factory);}else if(typeof exports==="object"){module.exports=factory();}else{root.ol=factory();}}(this,function(){var OPENLAYERS={};var l,aa=aa||{},ba=this;function m(b){return void 0!==b}function t(b,c,d){b=b.split(".");d=d||ba;b[0]in d||!d.execScript||d.execScript("var "+b[0]);for(var e;b.length&&(e=b.shift());)!b.length&&m(c)?d[e]=c:d[e]?d=d[e]:d=d[e]={}}function ca(){}function da(b){b.Pa=function(){return b.xf?b.xf:b.xf=new b}}
function ea(b){var c=typeof b;if("object"==c)if(b){if(b instanceof Array)return"array";if(b instanceof Object)return c;var d=Object.prototype.toString.call(b);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof b.length&&"undefined"!=typeof b.splice&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof b.call&&"undefined"!=typeof b.propertyIsEnumerable&&!b.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==c&&"undefined"==typeof b.call)return"object";return c}function fa(b){return null===b}function ga(b){return"array"==ea(b)}function ha(b){var c=ea(b);return"array"==c||"object"==c&&"number"==typeof b.length}function ia(b){return"string"==typeof b}function ja(b){return"number"==typeof b}function ka(b){return"function"==ea(b)}function la(b){var c=typeof b;return"object"==c&&null!=b||"function"==c}function ma(b){return b[na]||(b[na]=++oa)}
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(b,c,d){return b.call.apply(b.bind,arguments)}function qa(b,c,d){if(!b)throw Error();if(2<arguments.length){var e=Array.prototype.slice.call(arguments,2);return function(){var d=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(d,e);return b.apply(c,d)}}return function(){return b.apply(c,arguments)}}
function ra(b,c,d){ra=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?pa:qa;return ra.apply(null,arguments)}function sa(b,c){var d=Array.prototype.slice.call(arguments,1);return function(){var c=d.slice();c.push.apply(c,arguments);return b.apply(this,c)}}var ta=Date.now||function(){return+new Date};function v(b,c){function d(){}d.prototype=c.prototype;b.T=c.prototype;b.prototype=new d;b.prototype.constructor=b;b.Qm=function(b,d,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return c.prototype[d].apply(b,h)}};var ua,va;function wa(b){if(Error.captureStackTrace)Error.captureStackTrace(this,wa);else{var c=Error().stack;c&&(this.stack=c)}b&&(this.message=String(b))}v(wa,Error);wa.prototype.name="CustomError";var xa;function ya(b,c){var d=b.length-c.length;return 0<=d&&b.indexOf(c,d)==d}function za(b,c){for(var d=b.split("%s"),e="",f=Array.prototype.slice.call(arguments,1);f.length&&1<d.length;)e+=d.shift()+f.shift();return e+d.join("%s")}var Aa=String.prototype.trim?function(b){return b.trim()}:function(b){return b.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function Ba(b){if(!Da.test(b))return b;-1!=b.indexOf("&")&&(b=b.replace(Ea,"&amp;"));-1!=b.indexOf("<")&&(b=b.replace(Fa,"&lt;"));-1!=b.indexOf(">")&&(b=b.replace(Ga,"&gt;"));-1!=b.indexOf('"')&&(b=b.replace(Ha,"&quot;"));-1!=b.indexOf("'")&&(b=b.replace(Ia,"&#39;"));-1!=b.indexOf("\x00")&&(b=b.replace(Ja,"&#0;"));return b}var Ea=/&/g,Fa=/</g,Ga=/>/g,Ha=/"/g,Ia=/'/g,Ja=/\x00/g,Da=/[\x00&<>"']/;function Ka(b){b=m(void 0)?b.toFixed(void 0):String(b);var c=b.indexOf(".");-1==c&&(c=b.length);c=Math.max(0,2-c);return Array(c+1).join("0")+b}
function La(b,c){for(var d=0,e=Aa(String(b)).split("."),f=Aa(String(c)).split("."),g=Math.max(e.length,f.length),h=0;0==d&&h<g;h++){var k=e[h]||"",n=f[h]||"",p=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var r=p.exec(k)||["","",""],s=q.exec(n)||["","",""];if(0==r[0].length&&0==s[0].length)break;d=Na(0==r[1].length?0:parseInt(r[1],10),0==s[1].length?0:parseInt(s[1],10))||Na(0==r[2].length,0==s[2].length)||Na(r[2],s[2])}while(0==d)}return d}function Na(b,c){return b<c?-1:b>c?1:0};var Oa=Array.prototype;function Pa(b,c){return Oa.indexOf.call(b,c,void 0)}function Qa(b,c,d){Oa.forEach.call(b,c,d)}function Ra(b,c){return Oa.filter.call(b,c,void 0)}function Sa(b,c,d){return Oa.map.call(b,c,d)}function Ta(b,c){return Oa.some.call(b,c,void 0)}function Ua(b,c){var d=Va(b,c,void 0);return 0>d?null:ia(b)?b.charAt(d):b[d]}function Va(b,c,d){for(var e=b.length,f=ia(b)?b.split(""):b,g=0;g<e;g++)if(g in f&&c.call(d,f[g],g,b))return g;return-1}function Wa(b,c){return 0<=Pa(b,c)}
function Xa(b,c){var d=Pa(b,c),e;(e=0<=d)&&Oa.splice.call(b,d,1);return e}function Ya(b){return Oa.concat.apply(Oa,arguments)}function Za(b){var c=b.length;if(0<c){for(var d=Array(c),e=0;e<c;e++)d[e]=b[e];return d}return[]}function ab(b,c){for(var d=1;d<arguments.length;d++){var e=arguments[d];if(ha(e)){var f=b.length||0,g=e.length||0;b.length=f+g;for(var h=0;h<g;h++)b[f+h]=e[h]}else b.push(e)}}function bb(b,c,d,e){Oa.splice.apply(b,cb(arguments,1))}
function cb(b,c,d){return 2>=arguments.length?Oa.slice.call(b,c):Oa.slice.call(b,c,d)}function db(b,c){b.sort(c||fb)}function gb(b,c){if(!ha(b)||!ha(c)||b.length!=c.length)return!1;for(var d=b.length,e=hb,f=0;f<d;f++)if(!e(b[f],c[f]))return!1;return!0}function fb(b,c){return b>c?1:b<c?-1:0}function hb(b,c){return b===c};var ib;a:{var jb=ba.navigator;if(jb){var kb=jb.userAgent;if(kb){ib=kb;break a}}ib=""}function lb(b){return-1!=ib.indexOf(b)};function mb(b,c,d){for(var e in b)c.call(d,b[e],e,b)}function ob(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))return!0;return!1}function pb(b){var c=0,d;for(d in b)c++;return c}function qb(b){var c=[],d=0,e;for(e in b)c[d++]=b[e];return c}function rb(b){var c=[],d=0,e;for(e in b)c[d++]=e;return c}function tb(b,c){return c in b}function ub(b,c){for(var d in b)if(b[d]==c)return!0;return!1}function vb(b,c){for(var d in b)if(c.call(void 0,b[d],d,b))return d}
function wb(b){for(var c in b)return!1;return!0}function xb(b){for(var c in b)delete b[c]}function yb(b,c){c in b&&delete b[c]}function zb(b,c,d){return c in b?b[c]:d}function Ab(b,c){var d=[];return c in b?b[c]:b[c]=d}function Bb(b){var c={},d;for(d in b)c[d]=b[d];return c}var Cb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Db(b,c){for(var d,e,f=1;f<arguments.length;f++){e=arguments[f];for(d in e)b[d]=e[d];for(var g=0;g<Cb.length;g++)d=Cb[g],Object.prototype.hasOwnProperty.call(e,d)&&(b[d]=e[d])}}function Eb(b){var c=arguments.length;if(1==c&&ga(arguments[0]))return Eb.apply(null,arguments[0]);for(var d={},e=0;e<c;e++)d[arguments[e]]=!0;return d};var Fb=lb("Opera")||lb("OPR"),Gb=lb("Trident")||lb("MSIE"),Hb=lb("Gecko")&&-1==ib.toLowerCase().indexOf("webkit")&&!(lb("Trident")||lb("MSIE")),Ib=-1!=ib.toLowerCase().indexOf("webkit"),Jb=lb("Macintosh"),Kb=lb("Windows"),Lb=lb("Linux")||lb("CrOS");function Mb(){var b=ba.document;return b?b.documentMode:void 0}
var Nb=function(){var b="",c;if(Fb&&ba.opera)return b=ba.opera.version,ka(b)?b():b;Hb?c=/rv\:([^\);]+)(\)|;)/:Gb?c=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Ib&&(c=/WebKit\/(\S+)/);c&&(b=(b=c.exec(ib))?b[1]:"");return Gb&&(c=Mb(),c>parseFloat(b))?String(c):b}(),Ob={};function Pb(b){return Ob[b]||(Ob[b]=0<=La(Nb,b))}var Qb=ba.document,Rb=Qb&&Gb?Mb()||("CSS1Compat"==Qb.compatMode?parseInt(Nb,10):5):void 0;var Sb="https:"===ba.location.protocol,Tb=Gb&&!Pb("9.0")&&""!==Nb;function Vb(b,c,d){return Math.min(Math.max(b,c),d)}function Wb(b,c){var d=b%c;return 0>d*c?d+c:d}function Xb(b,c,d){return b+d*(c-b)}function Yb(b){return b*Math.PI/180};function Zb(b){return function(c){if(m(c))return[Vb(c[0],b[0],b[2]),Vb(c[1],b[1],b[3])]}}function $b(b){return b};function ac(b,c,d){var e=b.length;if(b[0]<=c)return 0;if(!(c<=b[e-1]))if(0<d)for(d=1;d<e;++d){if(b[d]<c)return d-1}else if(0>d)for(d=1;d<e;++d){if(b[d]<=c)return d}else for(d=1;d<e;++d){if(b[d]==c)return d;if(b[d]<c)return b[d-1]-c<c-b[d]?d-1:d}return e-1};function bc(b){return function(c,d,e){if(m(c))return c=ac(b,c,e),c=Vb(c+d,0,b.length-1),b[c]}}function cc(b,c,d){return function(e,f,g){if(m(e))return g=0<g?0:0>g?1:.5,e=Math.floor(Math.log(c/e)/Math.log(b)+g),f=Math.max(e+f,0),m(d)&&(f=Math.min(f,d)),c/Math.pow(b,f)}};function dc(b){if(m(b))return 0}function ec(b,c){if(m(b))return b+c}function fc(b){var c=2*Math.PI/b;return function(b,e){if(m(b))return b=Math.floor((b+e)/c+.5)*c}}function gc(){var b=Yb(5);return function(c,d){if(m(c))return Math.abs(c+d)<=b?0:c+d}};function hc(b,c,d){this.center=b;this.resolution=c;this.rotation=d};var ic=!Gb||Gb&&9<=Rb,jc=!Gb||Gb&&9<=Rb,kc=Gb&&!Pb("9");!Ib||Pb("528");Hb&&Pb("1.9b")||Gb&&Pb("8")||Fb&&Pb("9.5")||Ib&&Pb("528");Hb&&!Pb("8")||Gb&&Pb("9");function lc(){0!=mc&&(nc[ma(this)]=this);this.oa=this.oa;this.qa=this.qa}var mc=0,nc={};lc.prototype.oa=!1;lc.prototype.Jc=function(){if(!this.oa&&(this.oa=!0,this.P(),0!=mc)){var b=ma(this);delete nc[b]}};function oc(b,c){var d=sa(pc,c);b.oa?d.call(void 0):(b.qa||(b.qa=[]),b.qa.push(m(void 0)?ra(d,void 0):d))}lc.prototype.P=function(){if(this.qa)for(;this.qa.length;)this.qa.shift()()};function pc(b){b&&"function"==typeof b.Jc&&b.Jc()};function qc(b,c){this.type=b;this.b=this.target=c;this.e=!1;this.og=!0}qc.prototype.pb=function(){this.e=!0};qc.prototype.preventDefault=function(){this.og=!1};function rc(b){b.pb()}function tc(b){b.preventDefault()};var uc=Gb?"focusout":"DOMFocusOut";function vc(b){vc[" "](b);return b}vc[" "]=ca;function wc(b,c){qc.call(this,b?b.type:"");this.relatedTarget=this.b=this.target=null;this.i=this.f=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.k=this.d=this.c=this.n=!1;this.state=null;this.g=!1;this.a=null;b&&xc(this,b,c)}v(wc,qc);var yc=[1,4,2];function xc(b,c,d){b.a=c;var e=b.type=c.type;b.target=c.target||c.srcElement;b.b=d;if(d=c.relatedTarget){if(Hb){var f;a:{try{vc(d.nodeName);f=!0;break a}catch(g){}f=!1}f||(d=null)}}else"mouseover"==e?d=c.fromElement:"mouseout"==e&&(d=c.toElement);b.relatedTarget=d;Object.defineProperties?Object.defineProperties(b,{offsetX:{configurable:!0,enumerable:!0,get:b.of,set:b.cm},offsetY:{configurable:!0,enumerable:!0,get:b.pf,set:b.dm}}):(b.offsetX=b.of(),b.offsetY=b.pf());b.clientX=void 0!==c.clientX?c.clientX:c.pageX;b.clientY=void 0!==c.clientY?c.clientY:c.pageY;b.screenX=c.screenX||0;b.screenY=c.screenY||0;b.button=c.button;b.f=c.keyCode||0;b.i=c.charCode||("keypress"==e?c.keyCode:0);b.n=c.ctrlKey;b.c=c.altKey;b.d=c.shiftKey;b.k=c.metaKey;b.g=Jb?c.metaKey:c.ctrlKey;b.state=c.state;c.defaultPrevented&&b.preventDefault()}function zc(b){return(ic?0==b.a.button:"click"==b.type?!0:!!(b.a.button&yc[0]))&&!(Ib&&Jb&&b.n)}l=wc.prototype;l.pb=function(){wc.T.pb.call(this);this.a.stopPropagation?this.a.stopPropagation():this.a.cancelBubble=!0};l.preventDefault=function(){wc.T.preventDefault.call(this);var b=this.a;if(b.preventDefault)b.preventDefault();else if(b.returnValue=!1,kc)try{if(b.ctrlKey||112<=b.keyCode&&123>=b.keyCode)b.keyCode=-1}catch(c){}};l.zh=function(){return this.a};l.of=function(){return Ib||void 0!==this.a.offsetX?this.a.offsetX:this.a.layerX};l.cm=function(b){Object.defineProperties(this,{offsetX:{writable:!0,enumerable:!0,configurable:!0,value:b}})};l.pf=function(){return Ib||void 0!==this.a.offsetY?this.a.offsetY:this.a.layerY};l.dm=function(b){Object.defineProperties(this,{offsetY:{writable:!0,enumerable:!0,configurable:!0,value:b}})};var Ac="closure_listenable_"+(1E6*Math.random()|0);function Bc(b){return!(!b||!b[Ac])}var Cc=0;function Dc(b,c,d,e,f){this.$b=b;this.a=null;this.src=c;this.type=d;this.Bc=!!e;this.yd=f;this.key=++Cc;this.uc=this.cd=!1}function Ec(b){b.uc=!0;b.$b=null;b.a=null;b.src=null;b.yd=null};function Fc(b){this.src=b;this.a={};this.c=0}Fc.prototype.add=function(b,c,d,e,f){var g=b.toString();b=this.a[g];b||(b=this.a[g]=[],this.c++);var h=Gc(b,c,e,f);-1<h?(c=b[h],d||(c.cd=!1)):(c=new Dc(c,this.src,g,!!e,f),c.cd=d,b.push(c));return c};Fc.prototype.remove=function(b,c,d,e){b=b.toString();if(!(b in this.a))return!1;var f=this.a[b];c=Gc(f,c,d,e);return-1<c?(Ec(f[c]),Oa.splice.call(f,c,1),0==f.length&&(delete this.a[b],this.c--),!0):!1};function Hc(b,c){var d=c.type;if(!(d in b.a))return!1;var e=Xa(b.a[d],c);e&&(Ec(c),0==b.a[d].length&&(delete b.a[d],b.c--));return e}function Ic(b,c,d,e,f){b=b.a[c.toString()];c=-1;b&&(c=Gc(b,d,e,f));return-1<c?b[c]:null}function Jc(b,c,d){var e=m(c),f=e?c.toString():"",g=m(d);return ob(b.a,function(b){for(var c=0;c<b.length;++c)if(!(e&&b[c].type!=f||g&&b[c].Bc!=d))return!0;return!1})}
function Gc(b,c,d,e){for(var f=0;f<b.length;++f){var g=b[f];if(!g.uc&&g.$b==c&&g.Bc==!!d&&g.yd==e)return f}return-1};var Kc="closure_lm_"+(1E6*Math.random()|0),Lc={},Nc=0;function w(b,c,d,e,f){if(ga(c)){for(var g=0;g<c.length;g++)w(b,c[g],d,e,f);return null}d=Oc(d);return Bc(b)?b.Ra(c,d,e,f):Pc(b,c,d,!1,e,f)}function Pc(b,c,d,e,f,g){if(!c)throw Error("Invalid event type");var h=!!f,k=Qc(b);k||(b[Kc]=k=new Fc(b));d=k.add(c,d,e,f,g);if(d.a)return d;e=Rc();d.a=e;e.src=b;e.$b=d;b.addEventListener?b.addEventListener(c.toString(),e,h):b.attachEvent(Sc(c.toString()),e);Nc++;return d}
function Rc(){var b=Tc,c=jc?function(d){return b.call(c.src,c.$b,d)}:function(d){d=b.call(c.src,c.$b,d);if(!d)return d};return c}function Uc(b,c,d,e,f){if(ga(c)){for(var g=0;g<c.length;g++)Uc(b,c[g],d,e,f);return null}d=Oc(d);return Bc(b)?b.mb.add(String(c),d,!0,e,f):Pc(b,c,d,!0,e,f)}function Vc(b,c,d,e,f){if(ga(c))for(var g=0;g<c.length;g++)Vc(b,c[g],d,e,f);else d=Oc(d),Bc(b)?b.Me(c,d,e,f):b&&(b=Qc(b))&&(c=Ic(b,c,d,!!e,f))&&Wc(c)}
function Wc(b){if(ja(b)||!b||b.uc)return!1;var c=b.src;if(Bc(c))return Hc(c.mb,b);var d=b.type,e=b.a;c.removeEventListener?c.removeEventListener(d,e,b.Bc):c.detachEvent&&c.detachEvent(Sc(d),e);Nc--;(d=Qc(c))?(Hc(d,b),0==d.c&&(d.src=null,c[Kc]=null)):Ec(b);return!0}function Sc(b){return b in Lc?Lc[b]:Lc[b]="on"+b}function Xc(b,c,d,e){var f=!0;if(b=Qc(b))if(c=b.a[c.toString()])for(c=c.concat(),b=0;b<c.length;b++){var g=c[b];g&&g.Bc==d&&!g.uc&&(g=Yc(g,e),f=f&&!1!==g)}return f}
function Yc(b,c){var d=b.$b,e=b.yd||b.src;b.cd&&Wc(b);return d.call(e,c)}
function Tc(b,c){if(b.uc)return!0;if(!jc){var d;if(!(d=c))a:{d=["window","event"];for(var e=ba,f;f=d.shift();)if(null!=e[f])e=e[f];else{d=null;break a}d=e}f=d;d=new wc(f,this);e=!0;if(!(0>f.keyCode||void 0!=f.returnValue)){a:{var g=!1;if(0==f.keyCode)try{f.keyCode=-1;break a}catch(h){g=!0}if(g||void 0==f.returnValue)f.returnValue=!0}f=[];for(g=d.b;g;g=g.parentNode)f.push(g);for(var g=b.type,k=f.length-1;!d.e&&0<=k;k--){d.b=f[k];var n=Xc(f[k],g,!0,d),e=e&&n}for(k=0;!d.e&&k<f.length;k++)d.b=f[k],n=Xc(f[k],g,!1,d),e=e&&n}return e}return Yc(b,new wc(c,this))}function Qc(b){b=b[Kc];return b instanceof Fc?b:null}var Zc="__closure_events_fn_"+(1E9*Math.random()>>>0);function Oc(b){if(ka(b))return b;b[Zc]||(b[Zc]=function(c){return b.handleEvent(c)});return b[Zc]};function $c(b){return function(){return b}}var ad=$c(!1),bd=$c(!0),cd=$c(null);function dd(b){return b}function ed(b){var c;c=c||0;return function(){return b.apply(this,Array.prototype.slice.call(arguments,0,c))}}function fd(b){var c=arguments,d=c.length;return function(){for(var b,f=0;f<d;f++)b=c[f].apply(this,arguments);return b}}function gd(b){var c=arguments,d=c.length;return function(){for(var b=0;b<d;b++)if(!c[b].apply(this,arguments))return!1;return!0}};function hd(){lc.call(this);this.mb=new Fc(this);this.ph=this;this.he=null}v(hd,lc);hd.prototype[Ac]=!0;l=hd.prototype;l.addEventListener=function(b,c,d,e){w(this,b,c,d,e)};l.removeEventListener=function(b,c,d,e){Vc(this,b,c,d,e)};l.dispatchEvent=function(b){var c,d=this.he;if(d)for(c=[];d;d=d.he)c.push(d);var d=this.ph,e=b.type||b;if(ia(b))b=new qc(b,d);else if(b instanceof qc)b.target=b.target||d;else{var f=b;b=new qc(e,d);Db(b,f)}var f=!0,g;if(c)for(var h=c.length-1;!b.e&&0<=h;h--)g=b.b=c[h],f=id(g,e,!0,b)&&f;b.e||(g=b.b=d,f=id(g,e,!0,b)&&f,b.e||(f=id(g,e,!1,b)&&f));if(c)for(h=0;!b.e&&h<c.length;h++)g=b.b=c[h],f=id(g,e,!1,b)&&f;return f};l.P=function(){hd.T.P.call(this);if(this.mb){var b=this.mb,c=0,d;for(d in b.a){for(var e=b.a[d],f=0;f<e.length;f++)++c,Ec(e[f]);delete b.a[d];b.c--}}this.he=null};l.Ra=function(b,c,d,e){return this.mb.add(String(b),c,!1,d,e)};l.Me=function(b,c,d,e){return this.mb.remove(String(b),c,d,e)};function id(b,c,d,e){c=b.mb.a[String(c)];if(!c)return!0;c=c.concat();for(var f=!0,g=0;g<c.length;++g){var h=c[g];if(h&&!h.uc&&h.Bc==d){var k=h.$b,n=h.yd||h.src;h.cd&&Hc(b.mb,h);f=!1!==k.call(n,e)&&f}}return f&&0!=e.og}function jd(b,c,d){return Jc(b.mb,m(c)?String(c):void 0,d)};function kd(){hd.call(this);this.c=0}v(kd,hd);function ld(b){Wc(b)}l=kd.prototype;l.l=function(){++this.c;this.dispatchEvent("change")};l.u=function(){return this.c};l.s=function(b,c,d){return w(this,b,c,!1,d)};l.v=function(b,c,d){return Uc(this,b,c,!1,d)};l.t=function(b,c,d){Vc(this,b,c,!1,d)};l.A=ld;function md(b,c,d){qc.call(this,b);this.key=c;this.oldValue=d}v(md,qc);function nd(b,c,d,e){this.source=b;this.target=c;this.b=d;this.c=e;this.d=this.a=dd}nd.prototype.transform=function(b,c){var d=od(this.source,this.b);this.a=b;this.d=c;pd(this.source,this.b,d)};function qd(b){kd.call(this);ma(this);this.n={};this.Da={};this.ge={};m(b)&&this.C(b)}v(qd,kd);var rd={},sd={},td={};function ud(b){return rd.hasOwnProperty(b)?rd[b]:rd[b]="change:"+b}
function od(b,c){var d=sd.hasOwnProperty(c)?sd[c]:sd[c]="get"+(String(c.charAt(0)).toUpperCase()+String(c.substr(1)).toLowerCase()),d=b[d];return m(d)?d.call(b):b.get(c)}l=qd.prototype;l.K=function(b,c,d){d=d||b;this.L(b);var e=ud(d);this.ge[b]=w(c,e,function(c){pd(this,b,c.oldValue)},void 0,this);c=new nd(this,c,b,d);this.Da[b]=c;pd(this,b,this.n[b]);return c};l.get=function(b){var c,d=this.Da;d.hasOwnProperty(b)?(b=d[b],c=od(b.target,b.c),c=b.d(c)):this.n.hasOwnProperty(b)&&(c=this.n[b]);return c};l.G=function(){var b=this.Da,c;if(wb(this.n)){if(wb(b))return[];c=b}else if(wb(b))c=this.n;else{c={};for(var d in this.n)c[d]=!0;for(d in b)c[d]=!0}return rb(c)};l.I=function(){var b={},c;for(c in this.n)b[c]=this.n[c];for(c in this.Da)b[c]=this.get(c);return b};function pd(b,c,d){var e;e=ud(c);b.dispatchEvent(new md(e,c,d));b.dispatchEvent(new md("propertychange",c,d))}
l.set=function(b,c){var d=this.Da;if(d.hasOwnProperty(b)){var e=d[b];c=e.a(c);var d=e.target,e=e.c,f=c,g=td.hasOwnProperty(e)?td[e]:td[e]="set"+(String(e.charAt(0)).toUpperCase()+String(e.substr(1)).toLowerCase()),g=d[g];m(g)?g.call(d,f):d.set(e,f)}else d=this.n[b],this.n[b]=c,pd(this,b,d)};l.C=function(b){for(var c in b)this.set(c,b[c])};l.L=function(b){var c=this.ge,d=c[b];d&&(delete c[b],Wc(d),c=this.get(b),delete this.Da[b],this.n[b]=c)};l.M=function(){for(var b in this.ge)this.L(b)};function vd(b,c){b[0]+=c[0];b[1]+=c[1];return b}function wd(b,c){var d=b[0],e=b[1],f=c[0],g=c[1],h=f[0],f=f[1],k=g[0],g=g[1],n=k-h,p=g-f,d=0===n&&0===p?0:(n*(d-h)+p*(e-f))/(n*n+p*p||0);0>=d||(1<=d?(h=k,f=g):(h+=d*n,f+=d*p));return[h,f]}function xd(b,c){var d=Wb(b+180,360)-180,e=Math.abs(Math.round(3600*d));return Math.floor(e/3600)+"\u00b0 "+Math.floor(e/60%60)+"\u2032 "+Math.floor(e%60)+"\u2033 "+c.charAt(0>d?1:0)}
function yd(b,c,d){return m(b)?c.replace("{x}",b[0].toFixed(d)).replace("{y}",b[1].toFixed(d)):""}function zd(b,c){for(var d=!0,e=b.length-1;0<=e;--e)if(b[e]!=c[e]){d=!1;break}return d}function Ad(b,c){var d=Math.cos(c),e=Math.sin(c),f=b[1]*d+b[0]*e;b[0]=b[0]*d-b[1]*e;b[1]=f;return b}function Bd(b,c){var d=b[0]-c[0],e=b[1]-c[1];return d*d+e*e}function Cd(b,c){return yd(b,"{x}, {y}",c)};function Dd(b){this.length=b.length||b;for(var c=0;c<this.length;c++)this[c]=b[c]||0}Dd.prototype.a=4;Dd.prototype.set=function(b,c){c=c||0;for(var d=0;d<b.length&&c+d<this.length;d++)this[c+d]=b[d]};Dd.prototype.toString=Array.prototype.join;"undefined"==typeof Float32Array&&(Dd.BYTES_PER_ELEMENT=4,Dd.prototype.BYTES_PER_ELEMENT=Dd.prototype.a,Dd.prototype.set=Dd.prototype.set,Dd.prototype.toString=Dd.prototype.toString,t("Float32Array",Dd,void 0));function Ed(b){this.length=b.length||b;for(var c=0;c<this.length;c++)this[c]=b[c]||0}Ed.prototype.a=8;Ed.prototype.set=function(b,c){c=c||0;for(var d=0;d<b.length&&c+d<this.length;d++)this[c+d]=b[d]};Ed.prototype.toString=Array.prototype.join;if("undefined"==typeof Float64Array){try{Ed.BYTES_PER_ELEMENT=8}catch(Fd){}Ed.prototype.BYTES_PER_ELEMENT=Ed.prototype.a;Ed.prototype.set=Ed.prototype.set;Ed.prototype.toString=Ed.prototype.toString;t("Float64Array",Ed,void 0)};function Gd(b,c,d,e,f){b[0]=c;b[1]=d;b[2]=e;b[3]=f};function Hd(){var b=Array(16);Id(b,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);return b}function Jd(){var b=Array(16);Id(b,1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return b}function Id(b,c,d,e,f,g,h,k,n,p,q,r,s,u,y,z,A){b[0]=c;b[1]=d;b[2]=e;b[3]=f;b[4]=g;b[5]=h;b[6]=k;b[7]=n;b[8]=p;b[9]=q;b[10]=r;b[11]=s;b[12]=u;b[13]=y;b[14]=z;b[15]=A}
function Kd(b,c){b[0]=c[0];b[1]=c[1];b[2]=c[2];b[3]=c[3];b[4]=c[4];b[5]=c[5];b[6]=c[6];b[7]=c[7];b[8]=c[8];b[9]=c[9];b[10]=c[10];b[11]=c[11];b[12]=c[12];b[13]=c[13];b[14]=c[14];b[15]=c[15]}function Ld(b){b[0]=1;b[1]=0;b[2]=0;b[3]=0;b[4]=0;b[5]=1;b[6]=0;b[7]=0;b[8]=0;b[9]=0;b[10]=1;b[11]=0;b[12]=0;b[13]=0;b[14]=0;b[15]=1}
function Md(b,c,d){var e=b[0],f=b[1],g=b[2],h=b[3],k=b[4],n=b[5],p=b[6],q=b[7],r=b[8],s=b[9],u=b[10],y=b[11],z=b[12],A=b[13],E=b[14];b=b[15];var x=c[0],Q=c[1],N=c[2],L=c[3],U=c[4],Ca=c[5],eb=c[6],R=c[7],Ma=c[8],sb=c[9],$a=c[10],Ub=c[11],nb=c[12],Mc=c[13],sc=c[14];c=c[15];d[0]=e*x+k*Q+r*N+z*L;d[1]=f*x+n*Q+s*N+A*L;d[2]=g*x+p*Q+u*N+E*L;d[3]=h*x+q*Q+y*N+b*L;d[4]=e*U+k*Ca+r*eb+z*R;d[5]=f*U+n*Ca+s*eb+A*R;d[6]=g*U+p*Ca+u*eb+E*R;d[7]=h*U+q*Ca+y*eb+b*R;d[8]=e*Ma+k*sb+r*$a+z*Ub;d[9]=f*Ma+n*sb+s*$a+A*Ub;d[10]=g*Ma+p*sb+u*$a+E*Ub;d[11]=h*Ma+q*sb+y*$a+b*Ub;d[12]=e*nb+k*Mc+r*sc+z*c;d[13]=f*nb+n*Mc+s*sc+A*c;d[14]=g*nb+p*Mc+u*sc+E*c;d[15]=h*nb+q*Mc+y*sc+b*c}
function Nd(b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],n=b[6],p=b[7],q=b[8],r=b[9],s=b[10],u=b[11],y=b[12],z=b[13],A=b[14],E=b[15],x=d*k-e*h,Q=d*n-f*h,N=d*p-g*h,L=e*n-f*k,U=e*p-g*k,Ca=f*p-g*n,eb=q*z-r*y,R=q*A-s*y,Ma=q*E-u*y,sb=r*A-s*z,$a=r*E-u*z,Ub=s*E-u*A,nb=x*Ub-Q*$a+N*sb+L*Ma-U*R+Ca*eb;0!=nb&&(nb=1/nb,c[0]=(k*Ub-n*$a+p*sb)*nb,c[1]=(-e*Ub+f*$a-g*sb)*nb,c[2]=(z*Ca-A*U+E*L)*nb,c[3]=(-r*Ca+s*U-u*L)*nb,c[4]=(-h*Ub+n*Ma-p*R)*nb,c[5]=(d*Ub-f*Ma+g*R)*nb,c[6]=(-y*Ca+A*N-E*Q)*nb,c[7]=(q*Ca-s*N+u*Q)*nb,c[8]=(h*$a-k*Ma+p*eb)*nb,c[9]=(-d*$a+e*Ma-g*eb)*nb,c[10]=(y*U-z*N+E*x)*nb,c[11]=(-q*U+r*N-u*x)*nb,c[12]=(-h*sb+k*R-n*eb)*nb,c[13]=(d*sb-e*R+f*eb)*nb,c[14]=(-y*L+z*Q-A*x)*nb,c[15]=(q*L-r*Q+s*x)*nb)}function Od(b,c,d){var e=b[1]*c+b[5]*d+0*b[9]+b[13],f=b[2]*c+b[6]*d+0*b[10]+b[14],g=b[3]*c+b[7]*d+0*b[11]+b[15];b[12]=b[0]*c+b[4]*d+0*b[8]+b[12];b[13]=e;b[14]=f;b[15]=g}
function Pd(b,c,d){Id(b,b[0]*c,b[1]*c,b[2]*c,b[3]*c,b[4]*d,b[5]*d,b[6]*d,b[7]*d,1*b[8],1*b[9],1*b[10],1*b[11],b[12],b[13],b[14],b[15])}function Qd(b,c){var d=b[0],e=b[1],f=b[2],g=b[3],h=b[4],k=b[5],n=b[6],p=b[7],q=Math.cos(c),r=Math.sin(c);b[0]=d*q+h*r;b[1]=e*q+k*r;b[2]=f*q+n*r;b[3]=g*q+p*r;b[4]=d*-r+h*q;b[5]=e*-r+k*q;b[6]=f*-r+n*q;b[7]=g*-r+p*q}new Float64Array(3);new Float64Array(3);new Float64Array(4);new Float64Array(4);new Float64Array(4);new Float64Array(16);function Rd(b){for(var c=Sd(),d=0,e=b.length;d<e;++d)Td(c,b[d]);return c}function Ud(b,c,d){var e=Math.min.apply(null,b),f=Math.min.apply(null,c);b=Math.max.apply(null,b);c=Math.max.apply(null,c);return Vd(e,f,b,c,d)}function Wd(b,c,d){return m(d)?(d[0]=b[0]-c,d[1]=b[1]-c,d[2]=b[2]+c,d[3]=b[3]+c,d):[b[0]-c,b[1]-c,b[2]+c,b[3]+c]}function Xd(b,c){return m(c)?(c[0]=b[0],c[1]=b[1],c[2]=b[2],c[3]=b[3],c):b.slice()}
function Yd(b,c,d){c=c<b[0]?b[0]-c:b[2]<c?c-b[2]:0;b=d<b[1]?b[1]-d:b[3]<d?d-b[3]:0;return c*c+b*b}function Zd(b,c){return b[0]<=c[0]&&c[2]<=b[2]&&b[1]<=c[1]&&c[3]<=b[3]}function $d(b,c,d){return b[0]<=c&&c<=b[2]&&b[1]<=d&&d<=b[3]}function ae(b,c){var d=b[1],e=b[2],f=b[3],g=c[0],h=c[1],k=0;g<b[0]?k=k|16:g>e&&(k=k|4);h<d?k|=8:h>f&&(k|=2);0===k&&(k=1);return k}function Sd(){return[Infinity,Infinity,-Infinity,-Infinity]}function Vd(b,c,d,e,f){return m(f)?(f[0]=b,f[1]=c,f[2]=d,f[3]=e,f):[b,c,d,e]}
function be(b,c){var d=b[0],e=b[1];return Vd(d,e,d,e,c)}function ce(b,c){return b[0]==c[0]&&b[2]==c[2]&&b[1]==c[1]&&b[3]==c[3]}function de(b,c){c[0]<b[0]&&(b[0]=c[0]);c[2]>b[2]&&(b[2]=c[2]);c[1]<b[1]&&(b[1]=c[1]);c[3]>b[3]&&(b[3]=c[3]);return b}function Td(b,c){c[0]<b[0]&&(b[0]=c[0]);c[0]>b[2]&&(b[2]=c[0]);c[1]<b[1]&&(b[1]=c[1]);c[1]>b[3]&&(b[3]=c[1])}
function ee(b,c,d,e,f){for(;d<e;d+=f){var g=b,h=c[d],k=c[d+1];g[0]=Math.min(g[0],h);g[1]=Math.min(g[1],k);g[2]=Math.max(g[2],h);g[3]=Math.max(g[3],k)}return b}function fe(b,c){var d;return(d=c.call(void 0,ge(b)))||(d=c.call(void 0,he(b)))||(d=c.call(void 0,ie(b)))?d:(d=c.call(void 0,je(b)))?d:!1}function ge(b){return[b[0],b[1]]}function he(b){return[b[2],b[1]]}function ke(b){return[(b[0]+b[2])/2,(b[1]+b[3])/2]}
function le(b,c){var d;"bottom-left"===c?d=ge(b):"bottom-right"===c?d=he(b):"top-left"===c?d=je(b):"top-right"===c&&(d=ie(b));return d}function me(b,c,d,e){var f=c*e[0]/2;e=c*e[1]/2;c=Math.cos(d);d=Math.sin(d);f=[-f,-f,f,f];e=[-e,e,-e,e];var g,h,k;for(g=0;4>g;++g)h=f[g],k=e[g],f[g]=b[0]+h*c-k*d,e[g]=b[1]+h*d+k*c;return Ud(f,e,void 0)}function ne(b){return b[3]-b[1]}
function oe(b,c,d){d=m(d)?d:Sd();pe(b,c)&&(d[0]=b[0]>c[0]?b[0]:c[0],d[1]=b[1]>c[1]?b[1]:c[1],d[2]=b[2]<c[2]?b[2]:c[2],d[3]=b[3]<c[3]?b[3]:c[3]);return d}function je(b){return[b[0],b[3]]}function ie(b){return[b[2],b[3]]}function qe(b){return b[2]-b[0]}function pe(b,c){return b[0]<=c[2]&&b[2]>=c[0]&&b[1]<=c[3]&&b[3]>=c[1]}function re(b){return b[2]<b[0]||b[3]<b[1]}function se(b,c){var d=(b[2]-b[0])/2*(c-1),e=(b[3]-b[1])/2*(c-1);b[0]-=d;b[2]+=d;b[1]-=e;b[3]+=e}
function te(b,c,d){b=[b[0],b[1],b[0],b[3],b[2],b[1],b[2],b[3]];c(b,b,2);return Ud([b[0],b[2],b[4],b[6]],[b[1],b[3],b[5],b[7]],d)};function ue(b){this.radius=b}ue.prototype.c=function(b){for(var c=0,d=b.length,e=b[d-1][0],f=b[d-1][1],g=0;g<d;g++)var h=b[g][0],k=b[g][1],c=c+Yb(h-e)*(2+Math.sin(Yb(f))+Math.sin(Yb(k))),e=h,f=k;return c*this.radius*this.radius/2};ue.prototype.a=function(b,c){var d=Yb(b[1]),e=Yb(c[1]),f=(e-d)/2,g=Yb(c[0]-b[0])/2,d=Math.sin(f)*Math.sin(f)+Math.sin(g)*Math.sin(g)*Math.cos(d)*Math.cos(e);return 2*this.radius*Math.atan2(Math.sqrt(d),Math.sqrt(1-d))};ue.prototype.offset=function(b,c,d){var e=Yb(b[1]);c/=this.radius;var f=Math.asin(Math.sin(e)*Math.cos(c)+Math.cos(e)*Math.sin(c)*Math.cos(d));return[180*(Yb(b[0])+Math.atan2(Math.sin(d)*Math.sin(c)*Math.cos(e),Math.cos(c)-Math.sin(e)*Math.sin(f)))/Math.PI,180*f/Math.PI]};var ve=new ue(6370997);var we={};we.degrees=2*Math.PI*ve.radius/360;we.ft=.3048;we.m=1;we["us-ft"]=1200/3937;function xe(b){this.a=b.code;this.c=b.units;this.n=m(b.extent)?b.extent:null;this.f=m(b.worldExtent)?b.worldExtent:null;this.b=m(b.axisOrientation)?b.axisOrientation:"enu";this.d=m(b.global)?b.global:!1;this.g=m(b.getPointResolution)?b.getPointResolution:this.$h;this.e=null;if("function"==typeof proj4){var c=b.code,d=proj4.defs(c);if(m(d)){m(d.axis)&&!m(b.axisOrientation)&&(this.b=d.axis);m(b.units)||(b=d.units,!m(b)&&m(d.to_meter)&&(b=d.to_meter.toString(),we[b]=d.to_meter),this.c=b);b=ye;var e,f;for(e in b)f=proj4.defs(e),m(f)&&(b=ze(e),f===d?Ae([b,this]):(f=proj4(e,c),Be(b,this,f.forward,f.inverse)))}}}l=xe.prototype;l.Ah=function(){return this.a};l.J=function(){return this.n};l.Rj=function(){return this.c};l.od=function(){return we[this.c]};l.ii=function(){return this.f};function Ce(b){return b.b}l.Sj=function(){return this.d};l.Zl=function(b){this.d=b};l.Tj=function(b){this.n=b};l.jm=function(b){this.f=b};l.Yl=function(b){this.g=b};l.$h=function(b,c){if("degrees"==this.c)return b;var d=De(this,ze("EPSG:4326")),e=[c[0]-b/2,c[1],c[0]+b/2,c[1],c[0],c[1]-b/2,c[0],c[1]+b/2],e=d(e,e,2),d=(ve.a(e.slice(0,2),e.slice(2,4))+ve.a(e.slice(4,6),e.slice(6,8)))/2,e=this.od();m(e)&&(d/=e);return d};l.getPointResolution=function(b,c){return this.g(b,c)};var ye={},Ee={};function Ae(b){Fe(b);Qa(b,function(c){Qa(b,function(b){c!==b&&Ge(c,b,He)})})}function Ie(){var b=Je,c=Ke,d=Le;Qa(Me,function(e){Qa(b,function(b){Ge(e,b,c);Ge(b,e,d)})})}
function Ne(b){ye[b.a]=b;Ge(b,b,He)}function Fe(b){var c=[];Qa(b,function(b){c.push(Ne(b))})}function Oe(b){return null!=b?ia(b)?ze(b):b:ze("EPSG:3857")}function Ge(b,c,d){b=b.a;c=c.a;b in Ee||(Ee[b]={});Ee[b][c]=d}function Be(b,c,d,e){b=ze(b);c=ze(c);Ge(b,c,Qe(d));Ge(c,b,Qe(e))}function Qe(b){return function(c,d,e){var f=c.length;e=m(e)?e:2;d=m(d)?d:Array(f);var g,h;for(h=0;h<f;h+=e)for(g=b([c[h],c[h+1]]),d[h]=g[0],d[h+1]=g[1],g=e-1;2<=g;--g)d[h+g]=c[h+g];return d}}
function ze(b){var c;b instanceof xe?c=b:ia(b)?(c=ye[b],!m(c)&&"function"==typeof proj4&&m(proj4.defs(b))&&(c=new xe({code:b}),Ne(c))):c=null;return c}function Re(b,c){return b===c?!0:b.c!=c.c?!1:De(b,c)===He}function Se(b,c){var d=ze(b),e=ze(c);return De(d,e)}function De(b,c){var d=b.a,e=c.a,f;d in Ee&&e in Ee[d]&&(f=Ee[d][e]);m(f)||(f=Te);return f}function Te(b,c){if(m(c)&&b!==c){for(var d=0,e=b.length;d<e;++d)c[d]=b[d];b=c}return b}
function He(b,c){var d;if(m(c)){d=0;for(var e=b.length;d<e;++d)c[d]=b[d];d=c}else d=b.slice();return d}function Ue(b,c,d){c=Se(c,d);return te(b,c)};function B(b){qd.call(this);b=m(b)?b:{};this.q=[0,0];var c={};c.center=m(b.center)?b.center:null;this.p=Oe(b.projection);var d,e,f,g=m(b.minZoom)?b.minZoom:0;d=m(b.maxZoom)?b.maxZoom:28;var h=m(b.zoomFactor)?b.zoomFactor:2;if(m(b.resolutions))d=b.resolutions,e=d[0],f=d[d.length-1],d=bc(d);else{e=Oe(b.projection);f=e.J();var k=(null===f?360*we.degrees/we[e.c]:Math.max(qe(f),ne(f)))/256/Math.pow(2,0),n=k/Math.pow(2,28);e=b.maxResolution;m(e)?g=0:e=k/Math.pow(h,g);f=b.minResolution;m(f)||(f=m(b.maxZoom)?m(b.maxResolution)?e/Math.pow(h,d):k/Math.pow(h,d):n);d=g+Math.floor(Math.log(e/f)/Math.log(h));f=e/Math.pow(h,d-g);d=cc(h,e,d-g)}this.e=e;this.H=f;this.o=g;g=m(b.extent)?Zb(b.extent):$b;(m(b.enableRotation)?b.enableRotation:1)?(e=b.constrainRotation,e=m(e)&&!0!==e?!1===e?ec:ja(e)?fc(e):ec:gc()):e=dc;this.D=new hc(g,d,e);m(b.resolution)?c.resolution=b.resolution:m(b.zoom)&&(c.resolution=this.constrainResolution(this.e,b.zoom-this.o));c.rotation=m(b.rotation)?b.rotation:0;this.C(c)}v(B,qd);B.prototype.i=function(b){return this.D.center(b)};B.prototype.constrainResolution=function(b,c,d){return this.D.resolution(b,c||0,d||0)};B.prototype.constrainRotation=function(b,c){return this.D.rotation(b,c||0)};B.prototype.b=function(){return this.get("center")};B.prototype.getCenter=B.prototype.b;B.prototype.g=function(b){var c=this.b(),d=this.a();return[c[0]-d*b[0]/2,c[1]-d*b[1]/2,c[0]+d*b[0]/2,c[1]+d*b[1]/2]};B.prototype.N=function(){return this.p};B.prototype.a=function(){return this.get("resolution")};B.prototype.getResolution=B.prototype.a;B.prototype.k=function(b,c){return Math.max(qe(b)/c[0],ne(b)/c[1])};function Ve(b){var c=b.e,d=Math.log(c/b.H)/Math.log(2);return function(b){return c/Math.pow(2,b*d)}}B.prototype.d=function(){return this.get("rotation")};B.prototype.getRotation=B.prototype.d;function We(b){var c=b.e,d=Math.log(c/b.H)/Math.log(2);return function(b){return Math.log(c/b)/Math.log(2)/d}}
function Xe(b){var c=b.b(),d=b.p,e=b.a();b=b.d();return{center:c.slice(),projection:m(d)?d:null,resolution:e,rotation:b}}l=B.prototype;l.ki=function(){var b,c=this.a();if(m(c)){var d,e=0;do{d=this.constrainResolution(this.e,e);if(d==c){b=e;break}++e}while(d>this.H)}return m(b)?this.o+b:b};l.pe=function(b,c){if(!re(b)){this.Ha(ke(b));var d=this.k(b,c),e=this.constrainResolution(d,0,0);e<d&&(e=this.constrainResolution(e,-1,0));this.f(e)}};l.vh=function(b,c,d){var e=m(d)?d:{};d=m(e.padding)?e.padding:[0,0,0,0];var f=m(e.constrainResolution)?e.constrainResolution:!0,g=m(e.nearest)?e.nearest:!1,h;m(e.minResolution)?h=e.minResolution:m(e.maxZoom)?h=this.constrainResolution(this.e,e.maxZoom-this.o,0):h=0;var k=b.j,n=this.d(),e=Math.cos(-n),n=Math.sin(-n),p=Infinity,q=Infinity,r=-Infinity,s=-Infinity;b=b.B;for(var u=0,y=k.length;u<y;u+=b)var z=k[u]*e-k[u+1]*n,A=k[u]*n+k[u+1]*e,p=Math.min(p,z),q=Math.min(q,A),r=Math.max(r,z),s=Math.max(s,A);c=this.k([p,q,r,s],[c[0]-d[1]-d[3],c[1]-d[0]-d[2]]);c=isNaN(c)?h:Math.max(c,h);f&&(h=this.constrainResolution(c,0,0),!g&&h<c&&(h=this.constrainResolution(h,-1,0)),c=h);this.f(c);n=-n;g=(p+r)/2+(d[1]-d[3])/2*c;d=(q+s)/2+(d[0]-d[2])/2*c;this.Ha([g*e-d*n,d*e+g*n])};l.nh=function(b,c,d){var e=this.d(),f=Math.cos(-e),e=Math.sin(-e),g=b[0]*f-b[1]*e;b=b[1]*f+b[0]*e;var h=this.a(),g=g+(c[0]/2-d[0])*h;b+=(d[1]-c[1]/2)*h;e=-e;this.Ha([g*f-b*e,b*f+g*e])};l.rotate=function(b,c){if(m(c)){var d,e=this.b();m(e)&&(d=[e[0]-c[0],e[1]-c[1]],Ad(d,b-this.d()),vd(d,c));this.Ha(d)}this.r(b)};l.Ha=function(b){this.set("center",b)};B.prototype.setCenter=B.prototype.Ha;function Ye(b,c){b.q[1]+=c}B.prototype.f=function(b){this.set("resolution",b)};B.prototype.setResolution=B.prototype.f;B.prototype.r=function(b){this.set("rotation",b)};B.prototype.setRotation=B.prototype.r;B.prototype.S=function(b){b=this.constrainResolution(this.e,b-this.o,0);this.f(b)};function Ze(b){return 1-Math.pow(1-b,3)};function $e(b){return 3*b*b-2*b*b*b}function af(b){return b}function bf(b){return.5>b?$e(2*b):1-$e(2*(b-.5))};function cf(b){var c=b.source,d=m(b.start)?b.start:ta(),e=c[0],f=c[1],g=m(b.duration)?b.duration:1E3,h=m(b.easing)?b.easing:$e;return function(b,c){if(c.time<d)return c.animate=!0,c.viewHints[0]+=1,!0;if(c.time<d+g){var p=1-h((c.time-d)/g),q=e-c.viewState.center[0],r=f-c.viewState.center[1];c.animate=!0;c.viewState.center[0]+=p*q;c.viewState.center[1]+=p*r;c.viewHints[0]+=1;return!0}return!1}}
function df(b){var c=m(b.rotation)?b.rotation:0,d=m(b.start)?b.start:ta(),e=m(b.duration)?b.duration:1E3,f=m(b.easing)?b.easing:$e,g=m(b.anchor)?b.anchor:null;return function(b,k){if(k.time<d)return k.animate=!0,k.viewHints[0]+=1,!0;if(k.time<d+e){var n=1-f((k.time-d)/e),n=(c-k.viewState.rotation)*n;k.animate=!0;k.viewState.rotation+=n;if(null!==g){var p=k.viewState.center;p[0]-=g[0];p[1]-=g[1];Ad(p,n);vd(p,g)}k.viewHints[0]+=1;return!0}return!1}}
function ef(b){var c=b.resolution,d=m(b.start)?b.start:ta(),e=m(b.duration)?b.duration:1E3,f=m(b.easing)?b.easing:$e;return function(b,h){if(h.time<d)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<d+e){var k=1-f((h.time-d)/e),n=c-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=k*n;h.viewHints[0]+=1;return!0}return!1}};function ff(b,c,d,e){return m(e)?(e[0]=b,e[1]=c,e[2]=d,e):[b,c,d]}function gf(b,c,d){return b+"/"+c+"/"+d}function hf(b){var c=b[0],d=Array(c),e=1<<c-1,f,g;for(f=0;f<c;++f)g=48,b[1]&e&&(g+=1),b[2]&e&&(g+=2),d[f]=String.fromCharCode(g),e>>=1;return d.join("")}function jf(b){return gf(b[0],b[1],b[2])};function kf(b,c,d,e){this.a=b;this.d=c;this.b=d;this.c=e}function lf(b,c,d,e,f){return m(f)?(f.a=b,f.d=c,f.b=d,f.c=e,f):new kf(b,c,d,e)}kf.prototype.contains=function(b){return mf(this,b[1],b[2])};function mf(b,c,d){return b.a<=c&&c<=b.d&&b.b<=d&&d<=b.c}function nf(b,c){return b.a==c.a&&b.b==c.b&&b.d==c.d&&b.c==c.c}function of(b){return b.d-b.a+1}function pf(b,c){return b.a<=c.d&&b.d>=c.a&&b.b<=c.c&&b.c>=c.b};function qf(b){this.c=b.html;this.a=m(b.tileRanges)?b.tileRanges:null}qf.prototype.b=function(){return this.c};var rf=!Gb||Gb&&9<=Rb;!Hb&&!Gb||Gb&&Gb&&9<=Rb||Hb&&Pb("1.9.1");Gb&&Pb("9");Eb("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));Eb("action","cite","data","formaction","href","manifest","poster","src");Eb("embed","iframe","link","object","script","style","template");function sf(b,c){this.x=m(b)?b:0;this.y=m(c)?c:0}l=sf.prototype;l.clone=function(){return new sf(this.x,this.y)};l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};l.scale=function(b,c){var d=ja(c)?c:b;this.x*=b;this.y*=d;return this};function tf(b,c){this.width=b;this.height=c}l=tf.prototype;l.clone=function(){return new tf(this.width,this.height)};l.la=function(){return!(this.width*this.height)};l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};l.scale=function(b,c){var d=ja(c)?c:b;this.width*=b;this.height*=d;return this};function uf(b){return b?new vf(wf(b)):xa||(xa=new vf)}function xf(b){var c=document;return ia(b)?c.getElementById(b):b}function yf(b,c){mb(c,function(c,e){"style"==e?b.style.cssText=c:"class"==e?b.className=c:"for"==e?b.htmlFor=c:e in zf?b.setAttribute(zf[e],c):0==e.lastIndexOf("aria-",0)||0==e.lastIndexOf("data-",0)?b.setAttribute(e,c):b[e]=c})}
var zf={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Af(b){b=b.document.documentElement;return new tf(b.clientWidth,b.clientHeight)}
function Bf(b,c,d){var e=arguments,f=document,g=e[0],h=e[1];if(!rf&&h&&(h.name||h.type)){g=["<",g];h.name&&g.push(' name="',Ba(h.name),'"');if(h.type){g.push(' type="',Ba(h.type),'"');var k={};Db(k,h);delete k.type;h=k}g.push(">");g=g.join("")}g=f.createElement(g);h&&(ia(h)?g.className=h:ga(h)?g.className=h.join(" "):yf(g,h));2<e.length&&Cf(f,g,e,2);return g}
function Cf(b,c,d,e){function f(d){d&&c.appendChild(ia(d)?b.createTextNode(d):d)}for(;e<d.length;e++){var g=d[e];!ha(g)||la(g)&&0<g.nodeType?f(g):Qa(Df(g)?Za(g):g,f)}}function Ef(b){return document.createElement(b)}function Ff(b,c){Cf(wf(b),b,arguments,1)}function Gf(b){for(var c;c=b.firstChild;)b.removeChild(c)}function Hf(b,c,d){b.insertBefore(c,b.childNodes[d]||null)}function If(b){b&&b.parentNode&&b.parentNode.removeChild(b)}function Jf(b,c){var d=c.parentNode;d&&d.replaceChild(b,c)}
function Kf(b){if(void 0!=b.firstElementChild)b=b.firstElementChild;else for(b=b.firstChild;b&&1!=b.nodeType;)b=b.nextSibling;return b}function wf(b){return 9==b.nodeType?b:b.ownerDocument||b.document}function Df(b){if(b&&"number"==typeof b.length){if(la(b))return"function"==typeof b.item||"string"==typeof b.item;if(ka(b))return"function"==typeof b.item}return!1}function vf(b){this.a=b||ba.document||document}function Lf(){return!0}
function Mf(b){var c=b.a;b=Ib?c.body||c.documentElement:c.documentElement;c=c.parentWindow||c.defaultView;return Gb&&Pb("10")&&c.pageYOffset!=b.scrollTop?new sf(b.scrollLeft,b.scrollTop):new sf(c.pageXOffset||b.scrollLeft,c.pageYOffset||b.scrollTop)}vf.prototype.appendChild=function(b,c){b.appendChild(c)};vf.prototype.contains=function(b,c){if(b.contains&&1==c.nodeType)return b==c||b.contains(c);if("undefined"!=typeof b.compareDocumentPosition)return b==c||Boolean(b.compareDocumentPosition(c)&16);for(;c&&b!=c;)c=c.parentNode;return c==b};function Nf(b,c){var d=Ef("CANVAS");m(b)&&(d.width=b);m(c)&&(d.height=c);return d.getContext("2d")}
var Of=function(){var b;return function(){if(!m(b))if(ba.getComputedStyle){var c=Ef("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate(1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));If(c);b=d&&"none"!==d}else b=!1;return b}}(),Pf=function(){var b;return function(){if(!m(b))if(ba.getComputedStyle){var c=Ef("P"),d,e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.appendChild(c);for(var f in e)f in c.style&&(c.style[f]="translate3d(1px,1px,1px)",d=ba.getComputedStyle(c).getPropertyValue(e[f]));If(c);b=d&&"none"!==d}else b=!1;return b}}();function Qf(b,c){var d=b.style;d.WebkitTransform=c;d.MozTransform=c;d.a=c;d.msTransform=c;d.transform=c;Gb&&!Tb&&(b.style.transformOrigin="0 0")}
function Rf(b,c){var d;if(Pf()){if(m(6)){var e=Array(16);for(d=0;16>d;++d)e[d]=c[d].toFixed(6);d=e.join(",")}else d=c.join(",");Qf(b,"matrix3d("+d+")")}else if(Of()){e=[c[0],c[1],c[4],c[5],c[12],c[13]];if(m(6)){var f=Array(6);for(d=0;6>d;++d)f[d]=e[d].toFixed(6);d=f.join(",")}else d=e.join(",");Qf(b,"matrix("+d+")")}else b.style.left=Math.round(c[12])+"px",b.style.top=Math.round(c[13])+"px"};var Sf=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Tf(b,c){var d,e,f=Sf.length;for(e=0;e<f;++e)try{if(d=b.getContext(Sf[e],c),null!==d)return d}catch(g){}return null};var Uf,Vf=ba.devicePixelRatio||1,Xf="ArrayBuffer"in ba,Yf=!1,Zf=function(){if(!("HTMLCanvasElement"in ba))return!1;try{var b=Nf();if(null===b)return!1;m(b.setLineDash)&&(Yf=!0);return!0}catch(c){return!1}}(),$f="DeviceOrientationEvent"in ba,ag="geolocation"in ba.navigator,bg="ontouchstart"in ba,cg="PointerEvent"in ba,dg=!!ba.navigator.msPointerEnabled,eg=!1,fg,gg=[];if("WebGLRenderingContext"in ba)try{var hg=Ef("CANVAS"),ig=Tf(hg,{uh:!0});null!==ig&&(eg=!0,fg=ig.getParameter(ig.MAX_TEXTURE_SIZE),gg=ig.getSupportedExtensions())}catch(jg){}Uf=eg;va=gg;ua=fg;function kg(b,c,d){qc.call(this,b,d);this.element=c}v(kg,qc);function lg(b){qd.call(this);this.a=m(b)?b:[];mg(this)}v(lg,qd);l=lg.prototype;l.clear=function(){for(;0<this.Ib();)this.pop()};l.xe=function(b){var c,d;c=0;for(d=b.length;c<d;++c)this.push(b[c]);return this};l.forEach=function(b,c){Qa(this.a,b,c)};l.jj=function(){return this.a};l.item=function(b){return this.a[b]};l.Ib=function(){return this.get("length")};l.zd=function(b,c){bb(this.a,b,0,c);mg(this);this.dispatchEvent(new kg("add",c,this))};l.pop=function(){return this.Ke(this.Ib()-1)};l.push=function(b){var c=this.a.length;this.zd(c,b);return c};l.remove=function(b){var c=this.a,d,e;d=0;for(e=c.length;d<e;++d)if(c[d]===b)return this.Ke(d)};l.Ke=function(b){var c=this.a[b];Oa.splice.call(this.a,b,1);mg(this);this.dispatchEvent(new kg("remove",c,this));return c};l.Vl=function(b,c){var d=this.Ib();if(b<d)d=this.a[b],this.a[b]=c,this.dispatchEvent(new kg("remove",d,this)),this.dispatchEvent(new kg("add",c,this));else{for(;d<b;++d)this.zd(d,void 0);this.zd(b,c)}};function mg(b){b.set("length",b.a.length)};var ng=/^#(?:[0-9a-f]{3}){1,2}$/i,og=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,pg=/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;function qg(b){return ga(b)?b:rg(b)}function sg(b){if(!ia(b)){var c=b[0];c!=(c|0)&&(c=c+.5|0);var d=b[1];d!=(d|0)&&(d=d+.5|0);var e=b[2];e!=(e|0)&&(e=e+.5|0);b="rgba("+c+","+d+","+e+","+b[3]+")"}return b}
var rg=function(){var b={},c=0;return function(d){var e;if(b.hasOwnProperty(d))e=b[d];else{if(1024<=c){e=0;for(var f in b)0===(e++&3)&&(delete b[f],--c)}var g,h;ng.exec(d)?(h=3==d.length-1?1:2,e=parseInt(d.substr(1+0*h,h),16),f=parseInt(d.substr(1+1*h,h),16),g=parseInt(d.substr(1+2*h,h),16),1==h&&(e=(e<<4)+e,f=(f<<4)+f,g=(g<<4)+g),e=[e,f,g,1]):(h=pg.exec(d))?(e=Number(h[1]),f=Number(h[2]),g=Number(h[3]),h=Number(h[4]),e=[e,f,g,h],e=tg(e,e)):(h=og.exec(d))?(e=Number(h[1]),f=Number(h[2]),g=Number(h[3]),e=[e,f,g,1],e=tg(e,e)):e=void 0;b[d]=e;++c}return e}}();function tg(b,c){var d=m(c)?c:[];d[0]=Vb(b[0]+.5|0,0,255);d[1]=Vb(b[1]+.5|0,0,255);d[2]=Vb(b[2]+.5|0,0,255);d[3]=Vb(b[3],0,1);return d};function ug(){this.g=Hd();this.c=void 0;this.a=Hd();this.d=void 0;this.b=Hd();this.e=void 0;this.f=Hd();this.i=void 0;this.n=Hd()}
function vg(b,c,d,e,f){var g=!1;m(c)&&c!==b.c&&(g=b.a,Ld(g),g[12]=c,g[13]=c,g[14]=c,g[15]=1,b.c=c,g=!0);if(m(d)&&d!==b.d){g=b.b;Ld(g);g[0]=d;g[5]=d;g[10]=d;g[15]=1;var h=-.5*d+.5;g[12]=h;g[13]=h;g[14]=h;g[15]=1;b.d=d;g=!0}m(e)&&e!==b.e&&(g=Math.cos(e),h=Math.sin(e),Id(b.f,.213+.787*g-.213*h,.213-.213*g+.143*h,.213-.213*g-.787*h,0,.715-.715*g-.715*h,.715+.285*g+.14*h,.715-.715*g+.715*h,0,.072-.072*g+.928*h,.072-.072*g-.283*h,.072+.928*g+.072*h,0,0,0,0,1),b.e=e,g=!0);m(f)&&f!==b.i&&(Id(b.n,.213+.787*f,.213-.213*f,.213-.213*f,0,.715-.715*f,.715+.285*f,.715-.715*f,0,.072-.072*f,.072-.072*f,.072+.928*f,0,0,0,0,1),b.i=f,g=!0);g&&(g=b.g,Ld(g),m(d)&&Md(g,b.b,g),m(c)&&Md(g,b.a,g),m(f)&&Md(g,b.n,g),m(e)&&Md(g,b.f,g));return b.g};function wg(b){if(b.classList)return b.classList;b=b.className;return ia(b)&&b.match(/\S+/g)||[]}function xg(b,c){return b.classList?b.classList.contains(c):Wa(wg(b),c)}function yg(b,c){b.classList?b.classList.add(c):xg(b,c)||(b.className+=0<b.className.length?" "+c:c)}function zg(b,c){b.classList?b.classList.remove(c):xg(b,c)&&(b.className=Ra(wg(b),function(b){return b!=c}).join(" "))}function Ag(b,c){xg(b,c)?zg(b,c):yg(b,c)};function Bg(b,c,d,e){this.top=b;this.right=c;this.bottom=d;this.left=e}l=Bg.prototype;l.clone=function(){return new Bg(this.top,this.right,this.bottom,this.left)};l.contains=function(b){return this&&b?b instanceof Bg?b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom:b.x>=this.left&&b.x<=this.right&&b.y>=this.top&&b.y<=this.bottom:!1};l.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};l.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this};l.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this};l.scale=function(b,c){var d=ja(c)?c:b;this.left*=b;this.right*=b;this.top*=d;this.bottom*=d;return this};function Cg(b,c,d,e){this.left=b;this.top=c;this.width=d;this.height=e}l=Cg.prototype;l.clone=function(){return new Cg(this.left,this.top,this.width,this.height)};l.contains=function(b){return b instanceof Cg?this.left<=b.left&&this.left+this.width>=b.left+b.width&&this.top<=b.top&&this.top+this.height>=b.top+b.height:b.x>=this.left&&b.x<=this.left+this.width&&b.y>=this.top&&b.y<=this.top+this.height};function Dg(b,c){var d=c.x<b.left?b.left-c.x:Math.max(c.x-(b.left+b.width),0),e=c.y<b.top?b.top-c.y:Math.max(c.y-(b.top+b.height),0);return d*d+e*e}l.distance=function(b){return Math.sqrt(Dg(this,b))};l.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};l.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};l.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};l.scale=function(b,c){var d=ja(c)?c:b;this.left*=b;this.width*=b;this.top*=d;this.height*=d;return this};function Eg(b,c){var d=wf(b);return d.defaultView&&d.defaultView.getComputedStyle&&(d=d.defaultView.getComputedStyle(b,null))?d[c]||d.getPropertyValue(c)||"":""}function Fg(b,c){return Eg(b,c)||(b.currentStyle?b.currentStyle[c]:null)||b.style&&b.style[c]}function Gg(b,c,d){var e;c instanceof sf?(e=c.x,c=c.y):(e=c,c=d);b.style.left=Hg(e);b.style.top=Hg(c)}
function Ig(b){var c;try{c=b.getBoundingClientRect()}catch(d){return{left:0,top:0,right:0,bottom:0}}Gb&&b.ownerDocument.body&&(b=b.ownerDocument,c.left-=b.documentElement.clientLeft+b.body.clientLeft,c.top-=b.documentElement.clientTop+b.body.clientTop);return c}
function Jg(b){if(1==b.nodeType)return b=Ig(b),new sf(b.left,b.top);var c=ka(b.zh),d=b;b.targetTouches&&b.targetTouches.length?d=b.targetTouches[0]:c&&b.a.targetTouches&&b.a.targetTouches.length&&(d=b.a.targetTouches[0]);return new sf(d.clientX,d.clientY)}function Hg(b){"number"==typeof b&&(b=b+"px");return b}
function Kg(b){var c=Lg;if("none"!=Fg(b,"display"))return c(b);var d=b.style,e=d.display,f=d.visibility,g=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";b=c(b);d.display=e;d.position=g;d.visibility=f;return b}function Lg(b){var c=b.offsetWidth,d=b.offsetHeight,e=Ib&&!c&&!d;return m(c)&&!e||!b.getBoundingClientRect?new tf(c,d):(b=Ig(b),new tf(b.right-b.left,b.bottom-b.top))}function Mg(b,c){b.style.display=c?"":"none"}
function Ng(b,c,d,e){if(/^\d+px?$/.test(c))return parseInt(c,10);var f=b.style[d],g=b.runtimeStyle[d];b.runtimeStyle[d]=b.currentStyle[d];b.style[d]=c;c=b.style[e];b.style[d]=f;b.runtimeStyle[d]=g;return c}function Og(b,c){var d=b.currentStyle?b.currentStyle[c]:null;return d?Ng(b,d,"left","pixelLeft"):0}
function Pg(b,c){if(Gb){var d=Og(b,c+"Left"),e=Og(b,c+"Right"),f=Og(b,c+"Top"),g=Og(b,c+"Bottom");return new Bg(f,e,g,d)}d=Eg(b,c+"Left");e=Eg(b,c+"Right");f=Eg(b,c+"Top");g=Eg(b,c+"Bottom");return new Bg(parseFloat(f),parseFloat(e),parseFloat(g),parseFloat(d))}var Qg={thin:2,medium:4,thick:6};function Rg(b,c){if("none"==(b.currentStyle?b.currentStyle[c+"Style"]:null))return 0;var d=b.currentStyle?b.currentStyle[c+"Width"]:null;return d in Qg?Qg[d]:Ng(b,d,"left","pixelLeft")}
function Sg(b){if(Gb&&!(Gb&&9<=Rb)){var c=Rg(b,"borderLeft"),d=Rg(b,"borderRight"),e=Rg(b,"borderTop");b=Rg(b,"borderBottom");return new Bg(e,d,b,c)}c=Eg(b,"borderLeftWidth");d=Eg(b,"borderRightWidth");e=Eg(b,"borderTopWidth");b=Eg(b,"borderBottomWidth");return new Bg(parseFloat(e),parseFloat(d),parseFloat(b),parseFloat(c))};function Tg(b,c,d){qc.call(this,b);this.map=c;this.frameState=m(d)?d:null}v(Tg,qc);function Ug(b){qd.call(this);this.element=m(b.element)?b.element:null;this.a=this.i=null;this.q=[];this.render=m(b.render)?b.render:ca;m(b.target)&&this.b(b.target)}v(Ug,qd);Ug.prototype.P=function(){If(this.element);Ug.T.P.call(this)};Ug.prototype.f=function(){return this.a};Ug.prototype.setMap=function(b){null===this.a||If(this.element);0!=this.q.length&&(Qa(this.q,Wc),this.q.length=0);this.a=b;null!==this.a&&((null===this.i?b.H:this.i).appendChild(this.element),this.render!==ca&&this.q.push(w(b,"postrender",this.render,!1,this)),b.render())};Ug.prototype.b=function(b){this.i=xf(b)};function Vg(){this.b=0;this.d={};this.c=this.a=null}l=Vg.prototype;l.clear=function(){this.b=0;this.d={};this.c=this.a=null};function Wg(b,c){return b.d.hasOwnProperty(c)}l.forEach=function(b,c){for(var d=this.a;null!==d;)b.call(c,d.hc,d.Cd,this),d=d.eb};l.get=function(b){b=this.d[b];if(b===this.c)return b.hc;b===this.a?(this.a=this.a.eb,this.a.Mb=null):(b.eb.Mb=b.Mb,b.Mb.eb=b.eb);b.eb=null;b.Mb=this.c;this.c=this.c.eb=b;return b.hc};l.Tb=function(){return this.b};l.G=function(){var b=Array(this.b),c=0,d;for(d=this.c;null!==d;d=d.Mb)b[c++]=d.Cd;return b};l.ob=function(){var b=Array(this.b),c=0,d;for(d=this.c;null!==d;d=d.Mb)b[c++]=d.hc;return b};l.pop=function(){var b=this.a;delete this.d[b.Cd];null!==b.eb&&(b.eb.Mb=null);this.a=b.eb;null===this.a&&(this.c=null);--this.b;return b.hc};l.set=function(b,c){var d={Cd:b,eb:null,Mb:this.c,hc:c};null===this.c?this.a=d:this.c.eb=d;this.c=d;this.d[b]=d;++this.b};function Xg(b){Vg.call(this);this.f=m(b)?b:2048}v(Xg,Vg);function Yg(b){return b.Tb()>b.f};function Zg(b,c){hd.call(this);this.a=b;this.state=c}v(Zg,hd);function $g(b){b.dispatchEvent("change")}Zg.prototype.qb=function(){return ma(this).toString()};Zg.prototype.e=function(){return this.a};function ah(b){qd.call(this);this.e=ze(b.projection);this.f=m(b.attributions)?b.attributions:null;this.D=b.logo;this.q=m(b.state)?b.state:"ready"}v(ah,qd);l=ah.prototype;l.Jd=ca;l.Y=function(){return this.f};l.X=function(){return this.D};l.Z=function(){return this.e};l.$=function(){return this.q};function bh(b,c){b.q=c;b.l()};function ch(b){this.minZoom=m(b.minZoom)?b.minZoom:0;this.a=b.resolutions;this.maxZoom=this.a.length-1;this.f=m(b.origin)?b.origin:null;this.g=null;m(b.origins)&&(this.g=b.origins);this.c=null;m(b.tileSizes)&&(this.c=b.tileSizes);this.e=m(b.tileSize)?b.tileSize:null===this.c?256:void 0;this.b=null;m(b.widths)&&(this.b=b.widths)}var dh=[0,0,0];l=ch.prototype;l.Db=function(){return dd};l.gd=function(b,c,d,e,f){f=eh(this,b,f);for(b=b[0]-1;b>=this.minZoom;){if(c.call(d,b,fh(this,f,b,e)))return!0;--b}return!1};l.md=function(){return this.maxZoom};l.pd=function(){return this.minZoom};l.Lb=function(b){return null===this.f?this.g[b]:this.f};l.na=function(b){return this.a[b]};l.Qd=function(){return this.a};l.td=function(b,c,d){return b[0]<this.maxZoom?(d=eh(this,b,d),fh(this,d,b[0]+1,c)):null};function gh(b,c,d,e){hh(b,c[0],c[1],d,!1,dh);var f=dh[1],g=dh[2];hh(b,c[2],c[3],d,!0,dh);return lf(f,dh[1],g,dh[2],e)}function fh(b,c,d,e){return gh(b,c,b.na(d),e)}
function ih(b,c){var d=b.Lb(c[0]),e=b.na(c[0]),f=b.pa(c[0]);return[d[0]+(c[1]+.5)*f*e,d[1]+(c[2]+.5)*f*e]}function eh(b,c,d){var e=b.Lb(c[0]),f=b.na(c[0]);b=b.pa(c[0]);var g=e[0]+c[1]*b*f;c=e[1]+c[2]*b*f;return Vd(g,c,g+b*f,c+b*f,d)}l.Wb=function(b,c,d){return hh(this,b[0],b[1],c,!1,d)};function hh(b,c,d,e,f,g){var h=jh(b,e),k=e/b.na(h),n=b.Lb(h);b=b.pa(h);c=k*(c-n[0])/(e*b);d=k*(d-n[1])/(e*b);f?(c=Math.ceil(c)-1,d=Math.ceil(d)-1):(c=Math.floor(c),d=Math.floor(d));return ff(h,c,d,g)}
l.Nc=function(b,c,d){return hh(this,b[0],b[1],this.na(c),!1,d)};function kh(b,c,d){d=fh(b,lh(d),c);b=mh(b,c);m(b)||(b=of(d));return lf(0,b-1,0,d.c-d.b+1,void 0)}l.pa=function(b){return m(this.e)?this.e:this.c[b]};function mh(b,c){if(null!==b.b)return b.b[c]}function jh(b,c){var d=ac(b.a,c,0);return Vb(d,b.minZoom,b.maxZoom)}
function nh(b){var c=b.e;if(null===c){for(var c=lh(b),d=m(void 0)?void 0:256,e=m(void 0)?void 0:"bottom-left",f=oh(c,void 0,d),g=Array(f.length),h=qe(c),k=f.length-1;0<=k;--k)g[k]=h/d/f[k];c=new ch({origin:le(c,e),resolutions:f,tileSize:d,widths:g});b.e=c}return c}function oh(b,c,d){c=m(c)?c:42;d=m(d)?d:256;b=Math.max(qe(b)/d,ne(b)/d);c+=1;d=Array(c);for(var e=0;e<c;++e)d[e]=b/Math.pow(2,e);return d}function lh(b){b=ze(b);var c=b.J();null===c&&(b=180*we.degrees/b.od(),c=Vd(-b,-b,b,b));return c};function ph(b){ah.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection,state:b.state});this.N=m(b.opaque)?b.opaque:!1;this.S=m(b.tilePixelRatio)?b.tilePixelRatio:1;this.tileGrid=m(b.tileGrid)?b.tileGrid:null;this.a=new Xg;this.H=b.wrapX}v(ph,ah);function qh(b,c,d,e){for(var f=!0,g,h,k=d.a;k<=d.d;++k)for(var n=d.b;n<=d.c;++n)g=b.nb(c,k,n),h=!1,Wg(b.a,g)&&(g=b.a.get(g),(h=2===g.state)&&(h=!1!==e(g))),h||(f=!1);return f}l=ph.prototype;l.jd=function(){return 0};l.nb=gf;l.xa=function(){return this.tileGrid};function rh(b,c){return null===b.tileGrid?nh(c):b.tileGrid}l.Xb=function(b,c,d){return rh(this,d).pa(b)*this.S};l.Oe=ca;function sh(b,c){qc.call(this,b);this.tile=c}v(sh,qc);function th(b){b=m(b)?b:{};this.r=Ef("UL");this.o=Ef("LI");this.r.appendChild(this.o);Mg(this.o,!1);this.d=m(b.collapsed)?b.collapsed:!0;this.g=m(b.collapsible)?b.collapsible:!0;this.g||(this.d=!1);var c=m(b.className)?b.className:"ol-attribution",d=m(b.tipLabel)?b.tipLabel:"Attributions",e=m(b.collapseLabel)?b.collapseLabel:"\u00bb";this.D=ia(e)?Bf("SPAN",{},e):e;e=m(b.label)?b.label:"i";this.H=ia(e)?Bf("SPAN",{},e):e;d=Bf("BUTTON",{type:"button",title:d},this.g&&!this.d?this.D:this.H);w(d,"click",this.Dj,!1,this);w(d,["mouseout",uc],function(){this.blur()},!1);c=Bf("DIV",c+" ol-unselectable ol-control"+(this.d&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),this.r,d);Ug.call(this,{element:c,render:m(b.render)?b.render:uh,target:b.target});this.p=!0;this.k={};this.e={};this.N={}}v(th,Ug);function uh(b){b=b.frameState;if(null===b)this.p&&(Mg(this.element,!1),this.p=!1);else{var c,d,e,f,g,h,k,n,p,q,r,s=b.layerStatesArray,u=Bb(b.attributions),y={},z=b.viewState.projection;d=0;for(c=s.length;d<c;d++)if(h=s[d].layer.a(),null!==h&&(q=ma(h).toString(),p=h.f,null!==p))for(e=0,f=p.length;e<f;e++)if(k=p[e],n=ma(k).toString(),!(n in u)){g=b.usedTiles[q];if(m(g)){var A=rh(h,z);a:{r=k;var E=z;if(null===r.a)r=!0;else{var x=void 0,Q=void 0,N=void 0,L=void 0;for(L in g)if(L in r.a)for(var N=g[L],U,x=0,Q=r.a[L].length;x<Q;++x){U=r.a[L][x];if(pf(U,N)){r=!0;break a}var Ca=kh(A,parseInt(L,10),E),eb=of(Ca);if(N.a<Ca.a||N.d>Ca.d)if(pf(U,new kf(Wb(N.a,eb),Wb(N.d,eb),N.b,N.c))||of(N)>eb&&pf(U,Ca)){r=!0;break a}}r=!1}}}else r=!1;r?(n in y&&delete y[n],u[n]=k):y[n]=k}c=[u,y];d=c[0];c=c[1];for(var R in this.k)R in d?(this.e[R]||(Mg(this.k[R],!0),this.e[R]=!0),delete d[R]):R in c?(this.e[R]&&(Mg(this.k[R],!1),delete this.e[R]),delete c[R]):(If(this.k[R]),delete this.k[R],delete this.e[R]);for(R in d)e=Ef("LI"),e.innerHTML=d[R].c,this.r.appendChild(e),this.k[R]=e,this.e[R]=!0;for(R in c)e=Ef("LI"),e.innerHTML=c[R].c,Mg(e,!1),this.r.appendChild(e),this.k[R]=e;R=!wb(this.e)||!wb(b.logos);this.p!=R&&(Mg(this.element,R),this.p=R);R&&wb(this.e)?yg(this.element,"ol-logo-only"):zg(this.element,"ol-logo-only");var Ma;b=b.logos;R=this.N;for(Ma in R)Ma in b||(If(R[Ma]),delete R[Ma]);for(var sb in b)sb in R||(Ma=new Image,Ma.src=sb,d=b[sb],""===d?d=Ma:(d=Bf("A",{href:d}),d.appendChild(Ma)),this.o.appendChild(d),R[sb]=d);Mg(this.o,!wb(b))}}l=th.prototype;l.Dj=function(b){b.preventDefault();vh(this)};function vh(b){Ag(b.element,"ol-collapsed");b.d?Jf(b.D,b.H):Jf(b.H,b.D);b.d=!b.d}l.Cj=function(){return this.g};l.Fj=function(b){this.g!==b&&(this.g=b,Ag(this.element,"ol-uncollapsible"),!b&&this.d&&vh(this))};l.Ej=function(b){this.g&&this.d!==b&&vh(this)};l.Bj=function(){return this.d};function wh(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-rotate",d=m(b.label)?b.label:"\u21e7";this.d=null;ia(d)?this.d=Bf("SPAN","ol-compass",d):(this.d=d,yg(this.d,"ol-compass"));d=Bf("BUTTON",{"class":c+"-reset",type:"button",title:m(b.tipLabel)?b.tipLabel:"Reset rotation"},this.d);w(d,"click",wh.prototype.o,!1,this);w(d,["mouseout",uc],function(){this.blur()},!1);c=Bf("DIV",c+" ol-unselectable ol-control",d);Ug.call(this,{element:c,render:m(b.render)?b.render:xh,target:b.target});this.g=m(b.duration)?b.duration:250;this.e=m(b.autoHide)?b.autoHide:!0;this.k=void 0;this.e&&yg(this.element,"ol-hidden")}v(wh,Ug);wh.prototype.o=function(b){b.preventDefault();b=this.a;var c=b.a();if(null!==c){for(var d=c.d();d<-Math.PI;)d+=2*Math.PI;for(;d>Math.PI;)d-=2*Math.PI;m(d)&&(0<this.g&&b.La(df({rotation:d,duration:this.g,easing:Ze})),c.r(0))}};function xh(b){b=b.frameState;if(null!==b){b=b.viewState.rotation;if(b!=this.k){var c="rotate("+180*b/Math.PI+"deg)";if(this.e){var d=this.element;0===b?yg(d,"ol-hidden"):zg(d,"ol-hidden")}this.d.style.msTransform=c;this.d.style.webkitTransform=c;this.d.style.transform=c}this.k=b}};function yh(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-zoom",d=m(b.delta)?b.delta:1,e=m(b.zoomOutLabel)?b.zoomOutLabel:"\u2212",f=m(b.zoomOutTipLabel)?b.zoomOutTipLabel:"Zoom out",g=Bf("BUTTON",{"class":c+"-in",type:"button",title:m(b.zoomInTipLabel)?b.zoomInTipLabel:"Zoom in"},m(b.zoomInLabel)?b.zoomInLabel:"+");w(g,"click",sa(yh.prototype.e,d),!1,this);w(g,["mouseout",uc],function(){this.blur()},!1);e=Bf("BUTTON",{"class":c+"-out",type:"button",title:f},e);w(e,"click",sa(yh.prototype.e,-d),!1,this);w(e,["mouseout",uc],function(){this.blur()},!1);c=Bf("DIV",c+" ol-unselectable ol-control",g,e);Ug.call(this,{element:c,target:b.target});this.d=m(b.duration)?b.duration:250}v(yh,Ug);yh.prototype.e=function(b,c){c.preventDefault();var d=this.a,e=d.a();if(null!==e){var f=e.a();m(f)&&(0<this.d&&d.La(ef({resolution:f,duration:this.d,easing:Ze})),d=e.constrainResolution(f,b),e.f(d))}};function zh(b){b=m(b)?b:{};var c=new lg;(m(b.zoom)?b.zoom:1)&&c.push(new yh(b.zoomOptions));(m(b.rotate)?b.rotate:1)&&c.push(new wh(b.rotateOptions));(m(b.attribution)?b.attribution:1)&&c.push(new th(b.attributionOptions));return c};var Ah=Ib?"webkitfullscreenchange":Hb?"mozfullscreenchange":Gb?"MSFullscreenChange":"fullscreenchange";function Bh(){var b=uf().a,c=b.body;return!!(c.webkitRequestFullscreen||c.mozRequestFullScreen&&b.mozFullScreenEnabled||c.msRequestFullscreen&&b.msFullscreenEnabled||c.requestFullscreen&&b.fullscreenEnabled)}
function Ch(b){b.webkitRequestFullscreen?b.webkitRequestFullscreen():b.mozRequestFullScreen?b.mozRequestFullScreen():b.msRequestFullscreen?b.msRequestFullscreen():b.requestFullscreen&&b.requestFullscreen()}function Dh(){var b=uf().a;return!!(b.webkitIsFullScreen||b.mozFullScreen||b.msFullscreenElement||b.fullscreenElement)};function Eh(b){b=m(b)?b:{};this.d=m(b.className)?b.className:"ol-full-screen";var c=m(b.label)?b.label:"\u2194";this.e=ia(c)?document.createTextNode(String(c)):c;c=m(b.labelActive)?b.labelActive:"\u00d7";this.g=ia(c)?document.createTextNode(String(c)):c;c=m(b.tipLabel)?b.tipLabel:"Toggle full-screen";c=Bf("BUTTON",{"class":this.d+"-"+Dh(),type:"button",title:c},this.e);w(c,"click",this.p,!1,this);w(c,["mouseout",uc],function(){this.blur()},!1);w(ba.document,Ah,this.k,!1,this);var d=this.d+" ol-unselectable ol-control "+
(Bh()?"":"ol-unsupported"),c=Bf("DIV",d,c);Ug.call(this,{element:c,target:b.target});this.o=m(b.keys)?b.keys:!1}v(Eh,Ug);Eh.prototype.p=function(b){b.preventDefault();Bh()&&(b=this.a,null!==b&&(Dh()?(b=uf().a,b.webkitCancelFullScreen?b.webkitCancelFullScreen():b.mozCancelFullScreen?b.mozCancelFullScreen():b.msExitFullscreen?b.msExitFullscreen():b.exitFullscreen&&b.exitFullscreen()):(b=b.Fd(),b=xf(b),this.o?b.mozRequestFullScreenWithKeys?b.mozRequestFullScreenWithKeys():b.webkitRequestFullscreen?b.webkitRequestFullscreen():Ch(b):Ch(b))))};Eh.prototype.k=function(){var b=this.d+"-true",c=this.d+"-false",d=Kf(this.element),e=this.a;Dh()?(xg(d,c)&&(zg(d,c),yg(d,b)),Jf(this.g,this.e)):(xg(d,b)&&(zg(d,b),yg(d,c)),Jf(this.e,this.g));null===e||e.q()};function Fh(b){b=m(b)?b:{};var c=Bf("DIV",m(b.className)?b.className:"ol-mouse-position");Ug.call(this,{element:c,render:m(b.render)?b.render:Gh,target:b.target});w(this,ud("projection"),this.S,!1,this);m(b.coordinateFormat)&&this.D(b.coordinateFormat);m(b.projection)&&this.r(ze(b.projection));this.U=m(b.undefinedHTML)?b.undefinedHTML:"";this.o=c.innerHTML;this.g=this.e=this.d=null}v(Fh,Ug);function Gh(b){b=b.frameState;null===b?this.d=null:this.d!=b.viewState.projection&&(this.d=b.viewState.projection,this.e=null);Hh(this,this.g)}Fh.prototype.S=function(){this.e=null};Fh.prototype.k=function(){return this.get("coordinateFormat")};Fh.prototype.getCoordinateFormat=Fh.prototype.k;Fh.prototype.p=function(){return this.get("projection")};Fh.prototype.getProjection=Fh.prototype.p;Fh.prototype.H=function(b){this.g=this.a.hd(b.a);Hh(this,this.g)};Fh.prototype.N=function(){Hh(this,null);this.g=null};Fh.prototype.setMap=function(b){Fh.T.setMap.call(this,b);null!==b&&(b=b.b,this.q.push(w(b,"mousemove",this.H,!1,this),w(b,"mouseout",this.N,!1,this)))};Fh.prototype.D=function(b){this.set("coordinateFormat",b)};Fh.prototype.setCoordinateFormat=Fh.prototype.D;Fh.prototype.r=function(b){this.set("projection",b)};Fh.prototype.setProjection=Fh.prototype.r;function Hh(b,c){var d=b.U;if(null!==c&&null!==b.d){if(null===b.e){var e=b.p();b.e=m(e)?De(b.d,e):Te}e=b.a.sa(c);null!==e&&(b.e(e,e),d=b.k(),d=m(d)?d(e):e.toString())}m(b.o)&&d==b.o||(b.element.innerHTML=d,b.o=d)};function Ih(b,c,d){lc.call(this);this.d=b;this.b=d;this.a=c||window;this.c=ra(this.jf,this)}v(Ih,lc);l=Ih.prototype;l.aa=null;l.Pe=!1;l.start=function(){Jh(this);this.Pe=!1;var b=Kh(this),c=Lh(this);b&&!c&&this.a.mozRequestAnimationFrame?(this.aa=w(this.a,"MozBeforePaint",this.c),this.a.mozRequestAnimationFrame(null),this.Pe=!0):this.aa=b&&c?b.call(this.a,this.c):this.a.setTimeout(ed(this.c),20)};function Jh(b){if(null!=b.aa){var c=Kh(b),d=Lh(b);c&&!d&&b.a.mozRequestAnimationFrame?Wc(b.aa):c&&d?d.call(b.a,b.aa):b.a.clearTimeout(b.aa)}b.aa=null}l.jf=function(){this.Pe&&this.aa&&Wc(this.aa);this.aa=null;this.d.call(this.b,ta())};l.P=function(){Jh(this);Ih.T.P.call(this)};function Kh(b){b=b.a;return b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||null}
function Lh(b){b=b.a;return b.cancelAnimationFrame||b.cancelRequestAnimationFrame||b.webkitCancelRequestAnimationFrame||b.mozCancelRequestAnimationFrame||b.oCancelRequestAnimationFrame||b.msCancelRequestAnimationFrame||null};function Mh(b){ba.setTimeout(function(){throw b;},0)}function Nh(b,c){var d=b;c&&(d=ra(b,c));d=Oh(d);!ka(ba.setImmediate)||ba.Window&&ba.Window.prototype.setImmediate==ba.setImmediate?(Ph||(Ph=Qh()),Ph(d)):ba.setImmediate(d)}var Ph;function Qh(){var b=ba.MessageChannel;"undefined"===typeof b&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&(b=function(){var b=document.createElement("iframe");b.style.display="none";b.src="";document.documentElement.appendChild(b);var c=b.contentWindow,b=c.document;b.open();b.write("");b.close();var d="callImmediate"+Math.random(),e="file:"==c.location.protocol?"*":c.location.protocol+"//"+c.location.host,b=ra(function(b){if(("*"==e||b.origin==e)&&b.data==d)this.port1.onmessage()},this);c.addEventListener("message",b,!1);this.port1={};this.port2={postMessage:function(){c.postMessage(d,e)}}});if("undefined"!==typeof b&&!lb("Trident")&&!lb("MSIE")){var c=new b,d={},e=d;c.port1.onmessage=function(){if(m(d.next)){d=d.next;var b=d.ef;d.ef=null;b()}};return function(b){e.next={ef:b};e=e.next;c.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(b){var c=document.createElement("script");c.onreadystatechange=function(){c.onreadystatechange=null;c.parentNode.removeChild(c);c=null;b();b=null};document.documentElement.appendChild(c)}:function(b){ba.setTimeout(b,0)}}var Oh=dd;function Rh(b){if("function"==typeof b.ob)return b.ob();if(ia(b))return b.split("");if(ha(b)){for(var c=[],d=b.length,e=0;e<d;e++)c.push(b[e]);return c}return qb(b)}
function Sh(b,c){if("function"==typeof b.forEach)b.forEach(c,void 0);else if(ha(b)||ia(b))Qa(b,c,void 0);else{var d;if("function"==typeof b.G)d=b.G();else if("function"!=typeof b.ob)if(ha(b)||ia(b)){d=[];for(var e=b.length,f=0;f<e;f++)d.push(f)}else d=rb(b);else d=void 0;for(var e=Rh(b),f=e.length,g=0;g<f;g++)c.call(void 0,e[g],d&&d[g],b)}};function Th(b,c){this.c={};this.a=[];this.b=0;var d=arguments.length;if(1<d){if(d%2)throw Error("Uneven number of arguments");for(var e=0;e<d;e+=2)this.set(arguments[e],arguments[e+1])}else if(b){b instanceof Th?(d=b.G(),e=b.ob()):(d=rb(b),e=qb(b));for(var f=0;f<d.length;f++)this.set(d[f],e[f])}}l=Th.prototype;l.Tb=function(){return this.b};l.ob=function(){Uh(this);for(var b=[],c=0;c<this.a.length;c++)b.push(this.c[this.a[c]]);return b};l.G=function(){Uh(this);return this.a.concat()};l.la=function(){return 0==this.b};l.clear=function(){this.c={};this.b=this.a.length=0};l.remove=function(b){return Vh(this.c,b)?(delete this.c[b],this.b--,this.a.length>2*this.b&&Uh(this),!0):!1};function Uh(b){if(b.b!=b.a.length){for(var c=0,d=0;c<b.a.length;){var e=b.a[c];Vh(b.c,e)&&(b.a[d++]=e);c++}b.a.length=d}if(b.b!=b.a.length){for(var f={},d=c=0;c<b.a.length;)e=b.a[c],Vh(f,e)||(b.a[d++]=e,f[e]=1),c++;b.a.length=d}}l.get=function(b,c){return Vh(this.c,b)?this.c[b]:c};l.set=function(b,c){Vh(this.c,b)||(this.b++,this.a.push(b));this.c[b]=c};l.forEach=function(b,c){for(var d=this.G(),e=0;e<d.length;e++){var f=d[e],g=this.get(f);b.call(c,g,f,this)}};l.clone=function(){return new Th(this)};function Vh(b,c){return Object.prototype.hasOwnProperty.call(b,c)};function Wh(){this.a=ta()}new Wh;Wh.prototype.set=function(b){this.a=b};Wh.prototype.get=function(){return this.a};function Xh(b){hd.call(this);this.Wc=b||window;this.ud=w(this.Wc,"resize",this.Ni,!1,this);this.vd=Af(this.Wc||window)}v(Xh,hd);l=Xh.prototype;l.ud=null;l.Wc=null;l.vd=null;l.P=function(){Xh.T.P.call(this);this.ud&&(Wc(this.ud),this.ud=null);this.vd=this.Wc=null};l.Ni=function(){var b=Af(this.Wc||window),c=this.vd;b==c||b&&c&&b.width==c.width&&b.height==c.height||(this.vd=b,this.dispatchEvent("resize"))};function Yh(b,c,d,e,f){if(!(Gb||Ib&&Pb("525")))return!0;if(Jb&&f)return $h(b);if(f&&!e)return!1;ja(c)&&(c=ai(c));if(!d&&(17==c||18==c||Jb&&91==c))return!1;if(Ib&&e&&d)switch(b){case 220:case 219:case 221:case 192:case 186:case 189:case 187:case 188:case 190:case 191:case 192:case 222:return!1}if(Gb&&e&&c==b)return!1;switch(b){case 13:return!0;case 27:return!Ib}return $h(b)}
function $h(b){if(48<=b&&57>=b||96<=b&&106>=b||65<=b&&90>=b||Ib&&0==b)return!0;switch(b){case 32:case 63:case 107:case 109:case 110:case 111:case 186:case 59:case 189:case 187:case 61:case 188:case 190:case 191:case 192:case 222:case 219:case 220:case 221:return!0;default:return!1}}function ai(b){if(Hb)b=bi(b);else if(Jb&&Ib)a:switch(b){case 93:b=91;break a}return b}
function bi(b){switch(b){case 61:return 187;case 59:return 186;case 173:return 189;case 224:return 91;case 0:return 224;default:return b}};function ci(b,c){hd.call(this);b&&di(this,b,c)}v(ci,hd);l=ci.prototype;l.ba=null;l.Ad=null;l.ue=null;l.Bd=null;l.Qa=-1;l.Gb=-1;l.je=!1;var ei={3:13,12:144,63232:38,63233:40,63234:37,63235:39,63236:112,63237:113,63238:114,63239:115,63240:116,63241:117,63242:118,63243:119,63244:120,63245:121,63246:122,63247:123,63248:44,63272:46,63273:36,63275:35,63276:33,63277:34,63289:144,63302:45},fi={Up:38,Down:40,Left:37,Right:39,Enter:13,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,"U+007F":46,Home:36,End:35,PageUp:33,PageDown:34,Insert:45},gi=Gb||Ib&&Pb("525"),hi=Jb&&Hb;ci.prototype.a=function(b){Ib&&(17==this.Qa&&!b.n||18==this.Qa&&!b.c||Jb&&91==this.Qa&&!b.k)&&(this.Gb=this.Qa=-1);-1==this.Qa&&(b.n&&17!=b.f?this.Qa=17:b.c&&18!=b.f?this.Qa=18:b.k&&91!=b.f&&(this.Qa=91));gi&&!Yh(b.f,this.Qa,b.d,b.n,b.c)?this.handleEvent(b):(this.Gb=ai(b.f),hi&&(this.je=b.c))};ci.prototype.c=function(b){this.Gb=this.Qa=-1;this.je=b.c};ci.prototype.handleEvent=function(b){var c=b.a,d,e,f=c.altKey;Gb&&"keypress"==b.type?(d=this.Gb,e=13!=d&&27!=d?c.keyCode:0):Ib&&"keypress"==b.type?(d=this.Gb,e=0<=c.charCode&&63232>c.charCode&&$h(d)?c.charCode:0):Fb?(d=this.Gb,e=$h(d)?c.keyCode:0):(d=c.keyCode||this.Gb,e=c.charCode||0,hi&&(f=this.je),Jb&&63==e&&224==d&&(d=191));var g=d=ai(d),h=c.keyIdentifier;d?63232<=d&&d in ei?g=ei[d]:25==d&&b.d&&(g=9):h&&h in fi&&(g=fi[h]);this.Qa=g;b=new ii(g,e,0,c);b.c=f;this.dispatchEvent(b)};function di(b,c,d){b.Bd&&ji(b);b.ba=c;b.Ad=w(b.ba,"keypress",b,d);b.ue=w(b.ba,"keydown",b.a,d,b);b.Bd=w(b.ba,"keyup",b.c,d,b)}function ji(b){b.Ad&&(Wc(b.Ad),Wc(b.ue),Wc(b.Bd),b.Ad=null,b.ue=null,b.Bd=null);b.ba=null;b.Qa=-1;b.Gb=-1}ci.prototype.P=function(){ci.T.P.call(this);ji(this)};function ii(b,c,d,e){wc.call(this,e);this.type="key";this.f=b;this.i=c}v(ii,wc);function ki(b,c){hd.call(this);var d=this.ba=b;(d=la(d)&&1==d.nodeType?this.ba:this.ba?this.ba.body:null)&&Fg(d,"direction");this.a=w(this.ba,Hb?"DOMMouseScroll":"mousewheel",this,c)}v(ki,hd);ki.prototype.handleEvent=function(b){var c=0,d=0,e=0;b=b.a;if("mousewheel"==b.type){d=1;if(Gb||Ib&&(Kb||Pb("532.0")))d=40;e=li(-b.wheelDelta,d);m(b.wheelDeltaX)?(c=li(-b.wheelDeltaX,d),d=li(-b.wheelDeltaY,d)):d=e}else e=b.detail,100<e?e=3:-100>e&&(e=-3),m(b.axis)&&b.axis===b.HORIZONTAL_AXIS?c=e:d=e;ja(this.c)&&Vb(c,-this.c,this.c);ja(this.b)&&(d=Vb(d,-this.b,this.b));c=new mi(e,b,0,d);this.dispatchEvent(c)};function li(b,c){return Ib&&(Jb||Lb)&&0!=b%c?b:b/c}
ki.prototype.P=function(){ki.T.P.call(this);Wc(this.a);this.a=null};function mi(b,c,d,e){wc.call(this,c);this.type="mousewheel";this.detail=b;this.q=e}v(mi,wc);function ni(b,c,d){qc.call(this,b);this.a=c;b=m(d)?d:{};this.buttons=oi(b);this.pressure=pi(b,this.buttons);this.bubbles=zb(b,"bubbles",!1);this.cancelable=zb(b,"cancelable",!1);this.view=zb(b,"view",null);this.detail=zb(b,"detail",null);this.screenX=zb(b,"screenX",0);this.screenY=zb(b,"screenY",0);this.clientX=zb(b,"clientX",0);this.clientY=zb(b,"clientY",0);this.button=zb(b,"button",0);this.relatedTarget=zb(b,"relatedTarget",null);this.pointerId=zb(b,"pointerId",0);this.width=zb(b,"width",0);this.height=zb(b,"height",0);this.pointerType=zb(b,"pointerType","");this.isPrimary=zb(b,"isPrimary",!1);c.preventDefault&&(this.preventDefault=function(){c.preventDefault()})}v(ni,qc);function oi(b){if(b.buttons||qi)b=b.buttons;else switch(b.which){case 1:b=1;break;case 2:b=4;break;case 3:b=2;break;default:b=0}return b}function pi(b,c){var d=0;b.pressure?d=b.pressure:d=c?.5:0;return d}var qi=!1;try{qi=1===(new MouseEvent("click",{buttons:1})).buttons}catch(ri){};function si(b,c){this.a=b;this.f=c};function ti(b){si.call(this,b,{mousedown:this.Wi,mousemove:this.Xi,mouseup:this.$i,mouseover:this.Zi,mouseout:this.Yi});this.c=b.c;this.b=[]}v(ti,si);function ui(b,c){for(var d=b.b,e=c.clientX,f=c.clientY,g=0,h=d.length,k;g<h&&(k=d[g]);g++){var n=Math.abs(f-k[1]);if(25>=Math.abs(e-k[0])&&25>=n)return!0}return!1}function vi(b){var c=wi(b,b.a),d=c.preventDefault;c.preventDefault=function(){b.preventDefault();d()};c.pointerId=1;c.isPrimary=!0;c.pointerType="mouse";return c}l=ti.prototype;l.Wi=function(b){if(!ui(this,b)){(1).toString()in this.c&&this.cancel(b);var c=vi(b);this.c[(1).toString()]=b;xi(this.a,yi,c,b)}};l.Xi=function(b){if(!ui(this,b)){var c=vi(b);xi(this.a,zi,c,b)}};l.$i=function(b){if(!ui(this,b)){var c=this.c[(1).toString()];c&&c.button===b.button&&(c=vi(b),xi(this.a,Ai,c,b),yb(this.c,(1).toString()))}};l.Zi=function(b){if(!ui(this,b)){var c=vi(b);Bi(this.a,c,b)}};l.Yi=function(b){if(!ui(this,b)){var c=vi(b);Ci(this.a,c,b)}};l.cancel=function(b){var c=vi(b);this.a.cancel(c,b);yb(this.c,(1).toString())};function Di(b){si.call(this,b,{MSPointerDown:this.ej,MSPointerMove:this.fj,MSPointerUp:this.ij,MSPointerOut:this.gj,MSPointerOver:this.hj,MSPointerCancel:this.dj,MSGotPointerCapture:this.bj,MSLostPointerCapture:this.cj});this.c=b.c;this.b=["","unavailable","touch","pen","mouse"]}v(Di,si);function Ei(b,c){var d=c;ja(c.a.pointerType)&&(d=wi(c,c.a),d.pointerType=b.b[c.a.pointerType]);return d}l=Di.prototype;l.ej=function(b){this.c[b.a.pointerId]=b;var c=Ei(this,b);xi(this.a,yi,c,b)};l.fj=function(b){var c=Ei(this,b);xi(this.a,zi,c,b)};l.ij=function(b){var c=Ei(this,b);xi(this.a,Ai,c,b);yb(this.c,b.a.pointerId)};l.gj=function(b){var c=Ei(this,b);Ci(this.a,c,b)};l.hj=function(b){var c=Ei(this,b);Bi(this.a,c,b)};l.dj=function(b){var c=Ei(this,b);this.a.cancel(c,b);yb(this.c,b.a.pointerId)};l.cj=function(b){this.a.dispatchEvent(new ni("lostpointercapture",b,b.a))};l.bj=function(b){this.a.dispatchEvent(new ni("gotpointercapture",b,b.a))};function Fi(b){si.call(this,b,{pointerdown:this.ql,pointermove:this.rl,pointerup:this.ul,pointerout:this.sl,pointerover:this.tl,pointercancel:this.pl,gotpointercapture:this.li,lostpointercapture:this.Vi})}v(Fi,si);l=Fi.prototype;l.ql=function(b){Gi(this.a,b)};l.rl=function(b){Gi(this.a,b)};l.ul=function(b){Gi(this.a,b)};l.sl=function(b){Gi(this.a,b)};l.tl=function(b){Gi(this.a,b)};l.pl=function(b){Gi(this.a,b)};l.Vi=function(b){Gi(this.a,b)};l.li=function(b){Gi(this.a,b)};function Hi(b,c){si.call(this,b,{touchstart:this.pm,touchmove:this.om,touchend:this.nm,touchcancel:this.mm});this.c=b.c;this.g=c;this.b=void 0;this.e=0;this.d=void 0}v(Hi,si);l=Hi.prototype;l.ng=function(){this.e=0;this.d=void 0};function Ii(b,c,d){c=wi(c,d);c.pointerId=d.identifier+2;c.bubbles=!0;c.cancelable=!0;c.detail=b.e;c.button=0;c.buttons=1;c.width=d.webkitRadiusX||d.radiusX||0;c.height=d.webkitRadiusY||d.radiusY||0;c.pressure=d.webkitForce||d.force||.5;c.isPrimary=b.b===d.identifier;c.pointerType="touch";c.clientX=d.clientX;c.clientY=d.clientY;c.screenX=d.screenX;c.screenY=d.screenY;return c}
function Ji(b,c,d){function e(){c.preventDefault()}var f=Array.prototype.slice.call(c.a.changedTouches),g=f.length,h,k;for(h=0;h<g;++h)k=Ii(b,c,f[h]),k.preventDefault=e,d.call(b,c,k)}
l.pm=function(b){var c=b.a.touches,d=rb(this.c),e=d.length;if(e>=c.length){var f=[],g,h,k;for(g=0;g<e;++g){h=d[g];k=this.c[h];var n;if(!(n=1==h))a:{n=c.length;for(var p=void 0,q=0;q<n;q++)if(p=c[q],p.identifier===h-2){n=!0;break a}n=!1}n||f.push(k.dc)}for(g=0;g<f.length;++g)this.ke(b,f[g])}c=pb(this.c);if(0===c||1===c&&(1).toString()in this.c)this.b=b.a.changedTouches[0].identifier,m(this.d)&&ba.clearTimeout(this.d);Ki(this,b);this.e++;Ji(this,b,this.ll)};l.ll=function(b,c){this.c[c.pointerId]={target:c.target,dc:c,Zf:c.target};var d=this.a;c.bubbles=!0;xi(d,Li,c,b);d=this.a;c.bubbles=!1;xi(d,Mi,c,b);xi(this.a,yi,c,b)};l.om=function(b){b.preventDefault();Ji(this,b,this.aj)};l.aj=function(b,c){var d=this.c[c.pointerId];if(d){var e=d.dc,f=d.Zf;xi(this.a,zi,c,b);e&&f!==c.target&&(e.relatedTarget=c.target,c.relatedTarget=f,e.target=f,c.target?(Ci(this.a,e,b),Bi(this.a,c,b)):(c.target=f,c.relatedTarget=null,this.ke(b,c)));d.dc=c;d.Zf=c.target}};l.nm=function(b){Ki(this,b);Ji(this,b,this.qm)};l.qm=function(b,c){xi(this.a,Ai,c,b);this.a.dc(c,b);var d=this.a;c.bubbles=!1;xi(d,Ni,c,b);yb(this.c,c.pointerId);c.isPrimary&&(this.b=void 0,this.d=ba.setTimeout(ra(this.ng,this),200))};l.mm=function(b){Ji(this,b,this.ke)};l.ke=function(b,c){this.a.cancel(c,b);this.a.dc(c,b);var d=this.a;c.bubbles=!1;xi(d,Ni,c,b);yb(this.c,c.pointerId);c.isPrimary&&(this.b=void 0,this.d=ba.setTimeout(ra(this.ng,this),200))};function Ki(b,c){var d=b.g.b,e=c.a.changedTouches[0];if(b.b===e.identifier){var f=[e.clientX,e.clientY];d.push(f);ba.setTimeout(function(){Xa(d,f)},2500)}};function Oi(b){hd.call(this);this.ba=b;this.c={};this.b={};this.a=[];cg?Pi(this,new Fi(this)):dg?Pi(this,new Di(this)):(b=new ti(this),Pi(this,b),bg&&Pi(this,new Hi(this,b)));b=this.a.length;for(var c,d=0;d<b;d++)c=this.a[d],Qi(this,rb(c.f))}v(Oi,hd);function Pi(b,c){var d=rb(c.f);d&&(Qa(d,function(b){var d=c.f[b];d&&(this.b[b]=ra(d,c))},b),b.a.push(c))}Oi.prototype.d=function(b){var c=this.b[b.type];c&&c(b)};function Qi(b,c){Qa(c,function(b){w(this.ba,b,this.d,!1,this)},b)}
function Ri(b,c){Qa(c,function(b){Vc(this.ba,b,this.d,!1,this)},b)}function wi(b,c){for(var d={},e,f=0,g=Si.length;f<g;f++)e=Si[f][0],d[e]=b[e]||c[e]||Si[f][1];return d}Oi.prototype.dc=function(b,c){b.bubbles=!0;xi(this,Ti,b,c)};Oi.prototype.cancel=function(b,c){xi(this,Ui,b,c)};function Ci(b,c,d){b.dc(c,d);c.target.contains(c.relatedTarget)||(c.bubbles=!1,xi(b,Ni,c,d))}function Bi(b,c,d){c.bubbles=!0;xi(b,Li,c,d);c.target.contains(c.relatedTarget)||(c.bubbles=!1,xi(b,Mi,c,d))}
function xi(b,c,d,e){b.dispatchEvent(new ni(c,e,d))}function Gi(b,c){b.dispatchEvent(new ni(c.type,c,c.a))}Oi.prototype.P=function(){for(var b=this.a.length,c,d=0;d<b;d++)c=this.a[d],Ri(this,rb(c.f));Oi.T.P.call(this)};var zi="pointermove",yi="pointerdown",Ai="pointerup",Li="pointerover",Ti="pointerout",Mi="pointerenter",Ni="pointerleave",Ui="pointercancel",Si=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]];function Vi(b,c,d,e,f){Tg.call(this,b,c,f);this.a=d;this.originalEvent=d.a;this.pixel=c.hd(this.originalEvent);this.coordinate=c.sa(this.pixel);this.dragging=m(e)?e:!1}v(Vi,Tg);Vi.prototype.preventDefault=function(){Vi.T.preventDefault.call(this);this.a.preventDefault()};Vi.prototype.pb=function(){Vi.T.pb.call(this);this.a.pb()};function Wi(b,c,d,e,f){Vi.call(this,b,c,d.a,e,f);this.c=d}v(Wi,Vi);function Xi(b){hd.call(this);this.b=b;this.e=0;this.g=!1;this.c=this.n=this.d=null;b=this.b.b;this.q=0;this.k={};this.f=new Oi(b);this.a=null;this.n=w(this.f,yi,this.Ji,!1,this);this.i=w(this.f,zi,this.Ll,!1,this)}v(Xi,hd);function Yi(b,c){var d;d=new Wi(Zi,b.b,c);b.dispatchEvent(d);0!==b.e?(ba.clearTimeout(b.e),b.e=0,d=new Wi($i,b.b,c),b.dispatchEvent(d)):b.e=ba.setTimeout(ra(function(){this.e=0;var b=new Wi(aj,this.b,c);this.dispatchEvent(b)},b),250)}
function bj(b,c){c.type==cj||c.type==dj?delete b.k[c.pointerId]:c.type==ej&&(b.k[c.pointerId]=!0);b.q=pb(b.k)}l=Xi.prototype;l.uf=function(b){bj(this,b);var c=new Wi(cj,this.b,b);this.dispatchEvent(c);!this.g&&0===b.button&&Yi(this,this.c);0===this.q&&(Qa(this.d,Wc),this.d=null,this.g=!1,this.c=null,pc(this.a),this.a=null)};l.Ji=function(b){bj(this,b);var c=new Wi(ej,this.b,b);this.dispatchEvent(c);this.c=b;null===this.d&&(this.a=new Oi(document),this.d=[w(this.a,fj,this.xj,!1,this),w(this.a,cj,this.uf,!1,this),w(this.f,dj,this.uf,!1,this)])};l.xj=function(b){if(b.clientX!=this.c.clientX||b.clientY!=this.c.clientY){this.g=!0;var c=new Wi(gj,this.b,b,this.g);this.dispatchEvent(c)}b.preventDefault()};l.Ll=function(b){this.dispatchEvent(new Wi(b.type,this.b,b,null!==this.c&&(b.clientX!=this.c.clientX||b.clientY!=this.c.clientY)))};l.P=function(){null!==this.i&&(Wc(this.i),this.i=null);null!==this.n&&(Wc(this.n),this.n=null);null!==this.d&&(Qa(this.d,Wc),this.d=null);null!==this.a&&(pc(this.a),this.a=null);null!==this.f&&(pc(this.f),this.f=null);Xi.T.P.call(this)};var aj="singleclick",Zi="click",$i="dblclick",gj="pointerdrag",fj="pointermove",ej="pointerdown",cj="pointerup",dj="pointercancel",hj={Om:aj,Dm:Zi,Em:$i,Hm:gj,Km:fj,Gm:ej,Nm:cj,Mm:"pointerover",Lm:"pointerout",Im:"pointerenter",Jm:"pointerleave",Fm:dj};function C(b){qd.call(this);var c=Bb(b);c.brightness=m(b.brightness)?b.brightness:0;c.contrast=m(b.contrast)?b.contrast:1;c.hue=m(b.hue)?b.hue:0;c.opacity=m(b.opacity)?b.opacity:1;c.saturation=m(b.saturation)?b.saturation:1;c.visible=m(b.visible)?b.visible:!0;c.maxResolution=m(b.maxResolution)?b.maxResolution:Infinity;c.minResolution=m(b.minResolution)?b.minResolution:0;this.C(c)}v(C,qd);C.prototype.d=function(){return this.get("brightness")};C.prototype.getBrightness=C.prototype.d;C.prototype.f=function(){return this.get("contrast")};C.prototype.getContrast=C.prototype.f;C.prototype.e=function(){return this.get("hue")};C.prototype.getHue=C.prototype.e;function ij(b){var c=b.d(),d=b.f(),e=b.e(),f=b.q(),g=b.k(),h=b.kb(),k=b.b(),n=b.J(),p=b.g(),q=b.i();return{layer:b,brightness:Vb(c,-1,1),contrast:Math.max(d,0),hue:e,opacity:Vb(f,0,1),saturation:Math.max(g,0),yc:h,visible:k,extent:n,maxResolution:p,minResolution:Math.max(q,0)}}C.prototype.J=function(){return this.get("extent")};C.prototype.getExtent=C.prototype.J;C.prototype.g=function(){return this.get("maxResolution")};C.prototype.getMaxResolution=C.prototype.g;C.prototype.i=function(){return this.get("minResolution")};C.prototype.getMinResolution=C.prototype.i;C.prototype.q=function(){return this.get("opacity")};C.prototype.getOpacity=C.prototype.q;C.prototype.k=function(){return this.get("saturation")};C.prototype.getSaturation=C.prototype.k;C.prototype.b=function(){return this.get("visible")};C.prototype.getVisible=C.prototype.b;C.prototype.D=function(b){this.set("brightness",b)};C.prototype.setBrightness=C.prototype.D;C.prototype.H=function(b){this.set("contrast",b)};C.prototype.setContrast=C.prototype.H;C.prototype.N=function(b){this.set("hue",b)};C.prototype.setHue=C.prototype.N;C.prototype.o=function(b){this.set("extent",b)};C.prototype.setExtent=C.prototype.o;C.prototype.S=function(b){this.set("maxResolution",b)};C.prototype.setMaxResolution=C.prototype.S;C.prototype.U=function(b){this.set("minResolution",b)};C.prototype.setMinResolution=C.prototype.U;C.prototype.p=function(b){this.set("opacity",b)};C.prototype.setOpacity=C.prototype.p;C.prototype.ca=function(b){this.set("saturation",b)};C.prototype.setSaturation=C.prototype.ca;C.prototype.da=function(b){this.set("visible",b)};C.prototype.setVisible=C.prototype.da;function D(b){var c=Bb(b);delete c.source;C.call(this,c);this.va=null;w(this,ud("source"),this.yh,!1,this);this.fa(m(b.source)?b.source:null)}v(D,C);function jj(b,c){return b.visible&&c>=b.minResolution&&c<b.maxResolution}D.prototype.Xa=function(b){b=m(b)?b:[];b.push(ij(this));return b};D.prototype.a=function(){var b=this.get("source");return m(b)?b:null};D.prototype.getSource=D.prototype.a;D.prototype.kb=function(){var b=this.a();return null===b?"undefined":b.q};D.prototype.mi=function(){this.l()};D.prototype.yh=function(){null!==this.va&&(Wc(this.va),this.va=null);var b=this.a();null!==b&&(this.va=w(b,"change",this.mi,!1,this));this.l()};D.prototype.fa=function(b){this.set("source",b)};D.prototype.setSource=D.prototype.fa;function kj(b,c,d,e,f){hd.call(this);this.e=f;this.extent=b;this.f=d;this.resolution=c;this.state=e}v(kj,hd);kj.prototype.J=function(){return this.extent};function lj(b,c,d,e,f,g,h,k){Ld(b);0===c&&0===d||Od(b,c,d);1==e&&1==f||Pd(b,e,f);0!==g&&Qd(b,g);0===h&&0===k||Od(b,h,k);return b}function mj(b,c){return b[0]==c[0]&&b[1]==c[1]&&b[4]==c[4]&&b[5]==c[5]&&b[12]==c[12]&&b[13]==c[13]}function nj(b,c,d){var e=b[1],f=b[5],g=b[13],h=c[0];c=c[1];d[0]=b[0]*h+b[4]*c+b[12];d[1]=e*h+f*c+g;return d};function oj(b){kd.call(this);this.a=b}v(oj,kd);l=oj.prototype;l.Ua=ca;l.cc=function(b,c,d,e){b=b.slice();nj(c.pixelToCoordinateMatrix,b,b);if(this.Ua(b,c,bd,this))return d.call(e,this.a)};l.Hd=ad;l.ed=function(b,c){return function(d,e){return qh(b,d,e,function(b){c[d]||(c[d]={});c[d][b.a.toString()]=b})}};l.Uj=function(b){2===b.target.state&&pj(this)};function rj(b,c){var d=c.state;2!=d&&3!=d&&w(c,"change",b.Uj,!1,b);0==d&&(c.load(),d=c.state);return 2==d}
function pj(b){var c=b.a;c.b()&&"ready"==c.kb()&&b.l()}function sj(b,c){Yg(c.a)&&b.postRenderFunctions.push(sa(function(b,c,f){c=ma(b).toString();b=b.a;f=f.usedTiles[c];for(var g;Yg(b)&&!(c=b.a.hc,g=c.a[0].toString(),g in f&&f[g].contains(c.a));)b.pop().Jc()},c))}function tj(b,c){if(null!=c){var d,e,f;e=0;for(f=c.length;e<f;++e)d=c[e],b[ma(d).toString()]=d}}function uj(b,c){var d=c.D;m(d)&&(ia(d)?b.logos[d]="":la(d)&&(b.logos[d.src]=d.href))}
function vj(b,c,d,e){c=ma(c).toString();d=d.toString();c in b?d in b[c]?(b=b[c][d],e.a<b.a&&(b.a=e.a),e.d>b.d&&(b.d=e.d),e.b<b.b&&(b.b=e.b),e.c>b.c&&(b.c=e.c)):b[c][d]=e:(b[c]={},b[c][d]=e)}function wj(b,c,d){return[c*(Math.round(b[0]/c)+d[0]%2/2),c*(Math.round(b[1]/c)+d[1]%2/2)]}
function xj(b,c,d,e,f,g,h,k,n,p){var q=ma(c).toString();q in b.wantedTiles||(b.wantedTiles[q]={});var r=b.wantedTiles[q];b=b.tileQueue;var s=d.minZoom,u,y,z,A,E,x;for(x=h;x>=s;--x)for(y=fh(d,g,x,y),z=d.na(x),A=y.a;A<=y.d;++A)for(E=y.b;E<=y.c;++E)h-x<=k?(u=c.Vb(x,A,E,e,f),0==u.state&&(r[jf(u.a)]=!0,u.qb()in b.b||yj(b,[u,q,ih(d,u.a),z])),m(n)&&n.call(p,u)):c.Oe(x,A,E)};function zj(b){this.o=b.opacity;this.p=b.rotateWithView;this.i=b.rotation;this.k=b.scale;this.r=b.snapToPixel}l=zj.prototype;l.Ld=function(){return this.o};l.rd=function(){return this.p};l.Md=function(){return this.i};l.Nd=function(){return this.k};l.sd=function(){return this.r};l.Od=function(b){this.i=b};l.Pd=function(b){this.k=b};function Aj(b){b=m(b)?b:{};this.f=m(b.anchor)?b.anchor:[.5,.5];this.d=null;this.c=m(b.anchorOrigin)?b.anchorOrigin:"top-left";this.g=m(b.anchorXUnits)?b.anchorXUnits:"fraction";this.n=m(b.anchorYUnits)?b.anchorYUnits:"fraction";var c=m(b.crossOrigin)?b.crossOrigin:null,d=m(b.img)?b.img:null,e=b.src;m(e)&&0!==e.length||null===d||(e=d.src);var f=m(b.src)?0:2,g=Bj.Pa(),h=g.get(e,c);null===h&&(h=new Cj(d,e,c,f),g.set(e,c,h));this.a=h;this.D=m(b.offset)?b.offset:[0,0];this.b=m(b.offsetOrigin)?b.offsetOrigin:"top-left";this.e=null;this.q=m(b.size)?b.size:null;zj.call(this,{opacity:m(b.opacity)?b.opacity:1,rotation:m(b.rotation)?b.rotation:0,scale:m(b.scale)?b.scale:1,snapToPixel:m(b.snapToPixel)?b.snapToPixel:!0,rotateWithView:m(b.rotateWithView)?b.rotateWithView:!1})}v(Aj,zj);l=Aj.prototype;l.wb=function(){if(null!==this.d)return this.d;var b=this.f,c=this.gb();if("fraction"==this.g||"fraction"==this.n){if(null===c)return null;b=this.f.slice();"fraction"==this.g&&(b[0]*=c[0]);"fraction"==this.n&&(b[1]*=c[1])}if("top-left"!=this.c){if(null===c)return null;b===this.f&&(b=this.f.slice());if("top-right"==this.c||"bottom-right"==this.c)b[0]=-b[0]+c[0];if("bottom-left"==this.c||"bottom-right"==this.c)b[1]=-b[1]+c[1]}return this.d=b};l.Bb=function(){return this.a.a};l.kd=function(){return this.a.c};l.Pc=function(){return this.a.b};l.Kd=function(){var b=this.a;if(null===b.f)if(b.n){var c=b.c[0],d=b.c[1],e=Nf(c,d);e.fillRect(0,0,c,d);b.f=e.canvas}else b.f=b.a;return b.f};l.Cb=function(){if(null!==this.e)return this.e;var b=this.D;if("top-left"!=this.b){var c=this.gb(),d=this.a.c;if(null===c||null===d)return null;b=b.slice();if("top-right"==this.b||"bottom-right"==this.b)b[0]=d[0]-c[0]-b[0];if("bottom-left"==this.b||"bottom-right"==this.b)b[1]=d[1]-c[1]-b[1]}return this.e=b};l.Gk=function(){return this.a.e};l.gb=function(){return null===this.q?this.a.c:this.q};l.we=function(b,c){return w(this.a,"change",b,!1,c)};l.load=function(){this.a.load()};l.Ne=function(b,c){Vc(this.a,"change",b,!1,c)};function Cj(b,c,d,e){hd.call(this);this.f=null;this.a=null===b?new Image:b;null!==d&&(this.a.crossOrigin=d);this.d=null;this.b=e;this.c=null;this.e=c;this.n=!1}v(Cj,hd);Cj.prototype.g=function(){this.b=3;Qa(this.d,Wc);this.d=null;this.dispatchEvent("change")};Cj.prototype.i=function(){this.b=2;this.c=[this.a.width,this.a.height];Qa(this.d,Wc);this.d=null;var b=Nf(1,1);b.drawImage(this.a,0,0);try{b.getImageData(0,0,1,1)}catch(c){this.n=!0}this.dispatchEvent("change")};Cj.prototype.load=function(){if(0==this.b){this.b=1;this.d=[Uc(this.a,"error",this.g,!1,this),Uc(this.a,"load",this.i,!1,this)];try{this.a.src=this.e}catch(b){this.g()}}};function Bj(){this.a={};this.c=0}da(Bj);Bj.prototype.clear=function(){this.a={};this.c=0};Bj.prototype.get=function(b,c){var d=c+":"+b;return d in this.a?this.a[d]:null};Bj.prototype.set=function(b,c,d){this.a[c+":"+b]=d;++this.c};function Dj(b,c){lc.call(this);this.g=c;this.b=null;this.e={};this.q={}}v(Dj,lc);function Ej(b){var c=b.viewState,d=b.coordinateToPixelMatrix;lj(d,b.size[0]/2,b.size[1]/2,1/c.resolution,-1/c.resolution,-c.rotation,-c.center[0],-c.center[1]);Nd(d,b.pixelToCoordinateMatrix)}l=Dj.prototype;l.P=function(){mb(this.e,pc);Dj.T.P.call(this)};function Fj(){var b=Bj.Pa();if(32<b.c){var c=0,d,e;for(d in b.a){e=b.a[d];var f;if(f=0===(c++&3))Bc(e)?e=jd(e,void 0,void 0):(e=Qc(e),e=!!e&&Jc(e,void 0,void 0)),f=!e;f&&(delete b.a[d],--b.c)}}}
l.ye=function(b,c,d,e,f,g){var h,k=c.viewState,n=k.resolution,k=k.rotation;if(null!==this.b){var p={};if(h=this.b.b(b,n,k,{},function(b){var c=ma(b).toString();if(!(c in p))return p[c]=!0,d.call(e,b,null)}))return h}var k=c.layerStatesArray,q;for(q=k.length-1;0<=q;--q){h=k[q];var r=h.layer;if(jj(h,n)&&f.call(g,r)&&(h=Gj(this,r).Ua(b,c,d,e)))return h}};l.Kf=function(b,c,d,e,f,g){var h,k=c.viewState,n=k.resolution,k=k.rotation;if(null!==this.b){var p=this.g.sa(b);if(this.b.b(p,n,k,{},bd)&&(h=d.call(e,null)))return h}k=c.layerStatesArray;for(p=k.length-1;0<=p;--p){h=k[p];var q=h.layer;if(jj(h,n)&&f.call(g,q)&&(h=Gj(this,q).cc(b,c,d,e)))return h}};l.Lf=function(b,c,d,e){b=this.ye(b,c,bd,this,d,e);return m(b)};function Gj(b,c){var d=ma(c).toString();if(d in b.e)return b.e[d];var e=b.ne(c);b.e[d]=e;b.q[d]=w(e,"change",b.Bi,!1,b);return e}l.Bi=function(){this.g.render()};l.Yd=ca;l.Ql=function(b,c){for(var d in this.e)if(!(null!==c&&d in c.layerStates)){var e=d,f=this.e[e];delete this.e[e];Wc(this.q[e]);delete this.q[e];pc(f)}};function Hj(b,c){for(var d in b.e)if(!(d in c.layerStates)){c.postRenderFunctions.push(ra(b.Ql,b));break}};function Ij(b,c){this.e=b;this.f=c;this.a=[];this.c=[];this.b={}}Ij.prototype.clear=function(){this.a.length=0;this.c.length=0;xb(this.b)};function Jj(b){var c=b.a,d=b.c,e=c[0];1==c.length?(c.length=0,d.length=0):(c[0]=c.pop(),d[0]=d.pop(),Kj(b,0));c=b.f(e);delete b.b[c];return e}function yj(b,c){var d=b.e(c);Infinity!=d&&(b.a.push(c),b.c.push(d),b.b[b.f(c)]=!0,Lj(b,0,b.a.length-1))}Ij.prototype.Tb=function(){return this.a.length};Ij.prototype.la=function(){return 0===this.a.length};function Kj(b,c){for(var d=b.a,e=b.c,f=d.length,g=d[c],h=e[c],k=c;c<f>>1;){var n=2*c+1,p=2*c+2,n=p<f&&e[p]<e[n]?p:n;d[c]=d[n];e[c]=e[n];c=n}d[c]=g;e[c]=h;Lj(b,k,c)}function Lj(b,c,d){var e=b.a;b=b.c;for(var f=e[d],g=b[d];d>c;){var h=d-1>>1;if(b[h]>g)e[d]=e[h],b[d]=b[h],d=h;else break}e[d]=f;b[d]=g}function Mj(b){var c=b.e,d=b.a,e=b.c,f=0,g=d.length,h,k,n;for(k=0;k<g;++k)h=d[k],n=c(h),Infinity==n?delete b.b[b.f(h)]:(e[f]=n,d[f++]=h);d.length=f;e.length=f;for(c=(b.a.length>>1)-1;0<=c;c--)Kj(b,c)};function Nj(b,c){Ij.call(this,function(c){return b.apply(null,c)},function(b){return b[0].qb()});this.n=c;this.d=0}v(Nj,Ij);Nj.prototype.g=function(b){b=b.target.state;if(2===b||3===b||4===b)--this.d,this.n()};function Oj(b,c,d){this.d=b;this.b=c;this.e=d;this.a=[];this.c=this.f=0}Oj.prototype.update=function(b,c){this.a.push(b,c,ta())};function Pj(b,c){var d=b.d,e=b.c,f=b.b-e,g=Qj(b);return cf({source:c,duration:g,easing:function(b){return e*(Math.exp(d*b*g)-1)/f}})}function Qj(b){return Math.log(b.b/b.c)/b.d};function Rj(b){qd.call(this);this.k=null;this.d(!0);this.handleEvent=b.handleEvent}v(Rj,qd);Rj.prototype.b=function(){return this.get("active")};Rj.prototype.getActive=Rj.prototype.b;Rj.prototype.d=function(b){this.set("active",b)};Rj.prototype.setActive=Rj.prototype.d;Rj.prototype.setMap=function(b){this.k=b};function Sj(b,c,d,e,f){if(null!=d){var g=c.d(),h=c.b();m(g)&&m(h)&&m(f)&&0<f&&(b.La(df({rotation:g,duration:f,easing:Ze})),m(e)&&b.La(cf({source:h,duration:f,easing:Ze})));c.rotate(d,e)}}
function Tj(b,c,d,e,f){var g=c.a();d=c.constrainResolution(g,d,0);Uj(b,c,d,e,f)}function Uj(b,c,d,e,f){if(null!=d){var g=c.a(),h=c.b();m(g)&&m(h)&&m(f)&&0<f&&(b.La(ef({resolution:g,duration:f,easing:Ze})),m(e)&&b.La(cf({source:h,duration:f,easing:Ze})));if(null!=e){var k;b=c.b();f=c.a();m(b)&&m(f)&&(k=[e[0]-d*(e[0]-b[0])/f,e[1]-d*(e[1]-b[1])/f]);c.Ha(k)}c.f(d)}};function Vj(b){b=m(b)?b:{};this.a=m(b.delta)?b.delta:1;Rj.call(this,{handleEvent:Wj});this.f=m(b.duration)?b.duration:250}v(Vj,Rj);function Wj(b){var c=!1,d=b.a;if(b.type==$i){var c=b.map,e=b.coordinate,d=d.d?-this.a:this.a,f=c.a();Tj(c,f,d,e,this.f);b.preventDefault();c=!0}return!c};function Xj(b){b=b.a;return b.c&&!b.g&&b.d}function Yj(b){return"pointermove"==b.type}function Zj(b){return b.type==aj}function ak(b){b=b.a;return!b.c&&!b.g&&!b.d}function bk(b){b=b.a;return!b.c&&!b.g&&b.d}function ck(b){b=b.a.target.tagName;return"INPUT"!==b&&"SELECT"!==b&&"TEXTAREA"!==b}function dk(b){return 1==b.c.pointerId};function ek(b){b=m(b)?b:{};Rj.call(this,{handleEvent:m(b.handleEvent)?b.handleEvent:fk});this.ia=m(b.handleDownEvent)?b.handleDownEvent:ad;this.ka=m(b.handleDragEvent)?b.handleDragEvent:ca;this.va=m(b.handleMoveEvent)?b.handleMoveEvent:ca;this.Ea=m(b.handleUpEvent)?b.handleUpEvent:ad;this.q=!1;this.D={};this.f=[]}v(ek,Rj);function gk(b){for(var c=b.length,d=0,e=0,f=0;f<c;f++)d+=b[f].clientX,e+=b[f].clientY;return[d/c,e/c]}
function fk(b){if(!(b instanceof Wi))return!0;var c=!1,d=b.type;if(d===ej||d===gj||d===cj)d=b.c,b.type==cj?delete this.D[d.pointerId]:b.type==ej?this.D[d.pointerId]=d:d.pointerId in this.D&&(this.D[d.pointerId]=d),this.f=qb(this.D);this.q&&(b.type==gj?this.ka(b):b.type==cj&&(this.q=this.Ea(b)));b.type==ej?(this.q=b=this.ia(b),c=this.r(b)):b.type==fj&&this.va(b);return!c}ek.prototype.r=dd;function hk(b){ek.call(this,{handleDownEvent:ik,handleDragEvent:jk,handleUpEvent:kk});b=m(b)?b:{};this.a=b.kinetic;this.e=this.g=null;this.o=m(b.condition)?b.condition:ak;this.i=!1}v(hk,ek);function jk(b){var c=gk(this.f);this.a&&this.a.update(c[0],c[1]);if(null!==this.e){var d=this.e[0]-c[0],e=c[1]-this.e[1];b=b.map;var f=b.a(),g=Xe(f),e=d=[d,e],h=g.resolution;e[0]*=h;e[1]*=h;Ad(d,g.rotation);vd(d,g.center);d=f.i(d);b.render();f.Ha(d)}this.e=c}
function kk(b){b=b.map;var c=b.a();if(0===this.f.length){var d;if(d=!this.i&&this.a)if(d=this.a,6>d.a.length)d=!1;else{var e=ta()-d.e,f=d.a.length-3;if(d.a[f+2]<e)d=!1;else{for(var g=f-3;0<g&&d.a[g+2]>e;)g-=3;var e=d.a[f+2]-d.a[g+2],h=d.a[f]-d.a[g],f=d.a[f+1]-d.a[g+1];d.f=Math.atan2(f,h);d.c=Math.sqrt(h*h+f*f)/e;d=d.c>d.b}}d&&(d=this.a,d=(d.b-d.c)/d.d,f=this.a.f,g=c.b(),this.g=Pj(this.a,g),b.La(this.g),g=b.e(g),d=b.sa([g[0]-d*Math.cos(f),g[1]-d*Math.sin(f)]),d=c.i(d),c.Ha(d));Ye(c,-1);b.render();return!1}this.e=null;return!0}function ik(b){if(0<this.f.length&&this.o(b)){var c=b.map,d=c.a();this.e=null;this.q||Ye(d,1);c.render();null!==this.g&&Xa(c.N,this.g)&&(d.Ha(b.frameState.viewState.center),this.g=null);this.a&&(b=this.a,b.a.length=0,b.f=0,b.c=0);this.i=1<this.f.length;return!0}return!1}hk.prototype.r=ad;function lk(b){b=m(b)?b:{};ek.call(this,{handleDownEvent:mk,handleDragEvent:nk,handleUpEvent:ok});this.e=m(b.condition)?b.condition:Xj;this.a=void 0}v(lk,ek);function nk(b){if(dk(b)){var c=b.map,d=c.f();b=b.pixel;d=Math.atan2(d[1]/2-b[1],b[0]-d[0]/2);if(m(this.a)){b=d-this.a;var e=c.a(),f=e.d();c.render();Sj(c,e,f-b)}this.a=d}}function ok(b){if(!dk(b))return!0;b=b.map;var c=b.a();Ye(c,-1);var d=c.d(),d=c.constrainRotation(d,0);Sj(b,c,d,void 0,250);return!1}
function mk(b){return dk(b)&&zc(b.a)&&this.e(b)?(b=b.map,Ye(b.a(),1),b.render(),this.a=void 0,!0):!1}lk.prototype.r=ad;function pk(){kd.call(this);this.k=Sd();this.q=-1;this.e={};this.i=this.g=0}v(pk,kd);pk.prototype.f=function(b,c){var d=m(c)?c:[NaN,NaN];this.Ya(b[0],b[1],d,Infinity);return d};pk.prototype.Jb=ad;pk.prototype.J=function(b){this.q!=this.c&&(this.k=this.dd(this.k),this.q=this.c);var c=this.k;m(b)?(b[0]=c[0],b[1]=c[1],b[2]=c[2],b[3]=c[3]):b=c;return b};pk.prototype.transform=function(b,c){this.ra(Se(b,c));return this};function qk(b,c,d,e,f,g){var h=f[0],k=f[1],n=f[4],p=f[5],q=f[12];f=f[13];for(var r=m(g)?g:[],s=0;c<d;c+=e){var u=b[c],y=b[c+1];r[s++]=h*u+n*y+q;r[s++]=k*u+p*y+f}m(g)&&r.length!=s&&(r.length=s);return r};function rk(){pk.call(this);this.a="XY";this.B=2;this.j=null}v(rk,pk);function sk(b){if("XY"==b)return 2;if("XYZ"==b||"XYM"==b)return 3;if("XYZM"==b)return 4}l=rk.prototype;l.Jb=ad;l.dd=function(b){var c=this.j,d=this.j.length,e=this.B;b=Vd(Infinity,Infinity,-Infinity,-Infinity,b);return ee(b,c,0,d,e)};l.yb=function(){return this.j.slice(0,this.B)};l.zb=function(){return this.j.slice(this.j.length-this.B)};l.Ab=function(){return this.a};l.te=function(b){this.i!=this.c&&(xb(this.e),this.g=0,this.i=this.c);if(0>b||0!==this.g&&b<=this.g)return this;var c=b.toString();if(this.e.hasOwnProperty(c))return this.e[c];var d=this.oc(b);if(d.j.length<this.j.length)return this.e[c]=d;this.g=b;return this};l.oc=function(){return this};function tk(b,c,d){b.B=sk(c);b.a=c;b.j=d}
function uk(b,c,d,e){if(m(c))d=sk(c);else{for(c=0;c<e;++c){if(0===d.length){b.a="XY";b.B=2;return}d=d[0]}d=d.length;c=2==d?"XY":3==d?"XYZ":4==d?"XYZM":void 0}b.a=c;b.B=d}l.ra=function(b){null!==this.j&&(b(this.j,this.j,this.B),this.l())};l.Ia=function(b,c){var d=this.j;if(null!==d){var e=d.length,f=this.B,g=m(d)?d:[],h=0,k,n;for(k=0;k<e;k+=f)for(g[h++]=d[k]+b,g[h++]=d[k+1]+c,n=k+2;n<k+f;++n)g[h++]=d[n];m(d)&&g.length!=h&&(g.length=h);this.l()}};function vk(b,c,d,e){for(var f=0,g=b[d-e],h=b[d-e+1];c<d;c+=e)var k=b[c],n=b[c+1],f=f+(h*k-g*n),g=k,h=n;return f/2}function wk(b,c,d,e){var f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],f=f+vk(b,c,k,e);c=k}return f};function xk(b,c,d,e,f,g){var h=f-d,k=g-e;if(0!==h||0!==k){var n=((b-d)*h+(c-e)*k)/(h*h+k*k);1<n?(d=f,e=g):0<n&&(d+=h*n,e+=k*n)}return yk(b,c,d,e)}function yk(b,c,d,e){b=d-b;c=e-c;return b*b+c*c};function zk(b,c,d,e,f,g,h){var k=b[c],n=b[c+1],p=b[d]-k,q=b[d+1]-n;if(0!==p||0!==q)if(g=((f-k)*p+(g-n)*q)/(p*p+q*q),1<g)c=d;else if(0<g){for(f=0;f<e;++f)h[f]=Xb(b[c+f],b[d+f],g);h.length=e;return}for(f=0;f<e;++f)h[f]=b[c+f];h.length=e}function Ak(b,c,d,e,f){var g=b[c],h=b[c+1];for(c+=e;c<d;c+=e){var k=b[c],n=b[c+1],g=yk(g,h,k,n);g>f&&(f=g);g=k;h=n}return f}function Bk(b,c,d,e,f){var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g];f=Ak(b,c,k,e,f);c=k}return f}
function Ck(b,c,d,e,f,g,h,k,n,p,q){if(c==d)return p;var r;if(0===f){r=yk(h,k,b[c],b[c+1]);if(r<p){for(q=0;q<e;++q)n[q]=b[c+q];n.length=e;return r}return p}for(var s=m(q)?q:[NaN,NaN],u=c+e;u<d;)if(zk(b,u-e,u,e,h,k,s),r=yk(h,k,s[0],s[1]),r<p){p=r;for(q=0;q<e;++q)n[q]=s[q];n.length=e;u+=e}else u+=e*Math.max((Math.sqrt(r)-Math.sqrt(p))/f|0,1);if(g&&(zk(b,d-e,c,e,h,k,s),r=yk(h,k,s[0],s[1]),r<p)){p=r;for(q=0;q<e;++q)n[q]=s[q];n.length=e}return p}
function Dk(b,c,d,e,f,g,h,k,n,p,q){q=m(q)?q:[NaN,NaN];var r,s;r=0;for(s=d.length;r<s;++r){var u=d[r];p=Ck(b,c,u,e,f,g,h,k,n,p,q);c=u}return p};function Ek(b,c){var d=0,e,f;e=0;for(f=c.length;e<f;++e)b[d++]=c[e];return d}function Fk(b,c,d,e){var f,g;f=0;for(g=d.length;f<g;++f){var h=d[f],k;for(k=0;k<e;++k)b[c++]=h[k]}return c}function Gk(b,c,d,e,f){f=m(f)?f:[];var g=0,h,k;h=0;for(k=d.length;h<k;++h)c=Fk(b,c,d[h],e),f[g++]=c;f.length=g;return f};function Hk(b,c,d,e,f){f=m(f)?f:[];for(var g=0;c<d;c+=e)f[g++]=b.slice(c,c+e);f.length=g;return f}function Ik(b,c,d,e,f){f=m(f)?f:[];var g=0,h,k;h=0;for(k=d.length;h<k;++h){var n=d[h];f[g++]=Hk(b,c,n,e,f[g]);c=n}f.length=g;return f};function Jk(b,c,d,e,f,g,h){var k=(d-c)/e;if(3>k){for(;c<d;c+=e)g[h++]=b[c],g[h++]=b[c+1];return h}var n=Array(k);n[0]=1;n[k-1]=1;d=[c,d-e];for(var p=0,q;0<d.length;){var r=d.pop(),s=d.pop(),u=0,y=b[s],z=b[s+1],A=b[r],E=b[r+1];for(q=s+e;q<r;q+=e){var x=xk(b[q],b[q+1],y,z,A,E);x>u&&(p=q,u=x)}u>f&&(n[(p-c)/e]=1,s+e<p&&d.push(s,p),p+e<r&&d.push(p,r))}for(q=0;q<k;++q)n[q]&&(g[h++]=b[c+q*e],g[h++]=b[c+q*e+1]);return h}
function Kk(b,c,d,e,f,g,h,k){var n,p;n=0;for(p=d.length;n<p;++n){var q=d[n];a:{var r=b,s=q,u=e,y=f,z=g;if(c!=s){var A=y*Math.round(r[c]/y),E=y*Math.round(r[c+1]/y);c+=u;z[h++]=A;z[h++]=E;var x=void 0,Q=void 0;do if(x=y*Math.round(r[c]/y),Q=y*Math.round(r[c+1]/y),c+=u,c==s){z[h++]=x;z[h++]=Q;break a}while(x==A&&Q==E);for(;c<s;){var N,L;N=y*Math.round(r[c]/y);L=y*Math.round(r[c+1]/y);c+=u;if(N!=x||L!=Q){var U=x-A,Ca=Q-E,eb=N-A,R=L-E;U*R==Ca*eb&&(0>U&&eb<U||U==eb||0<U&&eb>U)&&(0>Ca&&R<Ca||Ca==R||0<Ca&&R>Ca)||(z[h++]=x,z[h++]=Q,A=x,E=Q);x=N;Q=L}}z[h++]=x;z[h++]=Q}}k.push(h);c=q}return h};function Lk(b,c){rk.call(this);this.b=this.n=-1;this.W(b,c)}v(Lk,rk);l=Lk.prototype;l.clone=function(){var b=new Lk(null);Mk(b,this.a,this.j.slice());return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;this.b!=this.c&&(this.n=Math.sqrt(Ak(this.j,0,this.j.length,this.B,0)),this.b=this.c);return Ck(this.j,0,this.j.length,this.B,this.n,!0,b,c,d,e)};l.Nj=function(){return vk(this.j,0,this.j.length,this.B)};l.Q=function(){return Hk(this.j,0,this.j.length,this.B)};l.oc=function(b){var c=[];c.length=Jk(this.j,0,this.j.length,this.B,b,c,0);b=new Lk(null);Mk(b,"XY",c);return b};l.O=function(){return"LinearRing"};l.W=function(b,c){null===b?Mk(this,"XY",null):(uk(this,c,b,1),null===this.j&&(this.j=[]),this.j.length=Fk(this.j,0,b,this.B),this.l())};function Mk(b,c,d){tk(b,c,d);b.l()};function Nk(b,c){rk.call(this);this.W(b,c)}v(Nk,rk);l=Nk.prototype;l.clone=function(){var b=new Nk(null);Ok(b,this.a,this.j.slice());return b};l.Ya=function(b,c,d,e){var f=this.j;b=yk(b,c,f[0],f[1]);if(b<e){e=this.B;for(c=0;c<e;++c)d[c]=f[c];d.length=e;return b}return e};l.Q=function(){return null===this.j?[]:this.j.slice()};l.dd=function(b){return be(this.j,b)};l.O=function(){return"Point"};l.ja=function(b){return $d(b,this.j[0],this.j[1])};l.W=function(b,c){null===b?Ok(this,"XY",null):(uk(this,c,b,0),null===this.j&&(this.j=[]),this.j.length=Ek(this.j,b),this.l())};function Ok(b,c,d){tk(b,c,d);b.l()};function Pk(b,c,d,e,f){return!fe(f,function(f){return!Qk(b,c,d,e,f[0],f[1])})}function Qk(b,c,d,e,f,g){for(var h=!1,k=b[d-e],n=b[d-e+1];c<d;c+=e){var p=b[c],q=b[c+1];n>g!=q>g&&f<(p-k)*(g-n)/(q-n)+k&&(h=!h);k=p;n=q}return h}function Rk(b,c,d,e,f,g){if(0===d.length||!Qk(b,c,d[0],e,f,g))return!1;var h;c=1;for(h=d.length;c<h;++c)if(Qk(b,d[c-1],d[c],e,f,g))return!1;return!0};function Sk(b,c,d,e,f,g,h){var k,n,p,q,r,s=f[g+1],u=[],y=d[0];p=b[y-e];r=b[y-e+1];for(k=c;k<y;k+=e){q=b[k];n=b[k+1];if(s<=r&&n<=s||r<=s&&s<=n)p=(s-r)/(n-r)*(q-p)+p,u.push(p);p=q;r=n}y=NaN;r=-Infinity;u.sort();p=u[0];k=1;for(n=u.length;k<n;++k){q=u[k];var z=Math.abs(q-p);z>r&&(p=(p+q)/2,Rk(b,c,d,e,p,s)&&(y=p,r=z));p=q}isNaN(y)&&(y=f[g]);return m(h)?(h.push(y,s),h):[y,s]};function Tk(b,c,d,e,f,g){for(var h=[b[c],b[c+1]],k=[],n;c+e<d;c+=e){k[0]=b[c+e];k[1]=b[c+e+1];if(n=f.call(g,h,k))return n;h[0]=k[0];h[1]=k[1]}return!1};function Uk(b,c,d,e,f){var g=ee(Sd(),b,c,d,e);return pe(f,g)?Zd(f,g)||g[0]>=f[0]&&g[2]<=f[2]||g[1]>=f[1]&&g[3]<=f[3]?!0:Tk(b,c,d,e,function(b,c){var d=!1,e=ae(f,b),g=ae(f,c);if(1===e||1===g)d=!0;else{var r=f[0],s=f[1],u=f[2],y=f[3],z=c[0],A=c[1],E=(A-b[1])/(z-b[0]);g&2&&!(e&2)?(s=z-(A-y)/E,d=s>=r&&s<=u):g&4&&!(e&4)?(r=A-(z-u)*E,d=r>=s&&r<=y):g&8&&!(e&8)?(s=z-(A-s)/E,d=s>=r&&s<=u):g&16&&!(e&16)&&(r=A-(z-r)*E,d=r>=s&&r<=y)}return d}):!1}
function Vk(b,c,d,e,f){var g=d[0];if(!(Uk(b,c,g,e,f)||Qk(b,c,g,e,f[0],f[1])||Qk(b,c,g,e,f[0],f[3])||Qk(b,c,g,e,f[2],f[1])||Qk(b,c,g,e,f[2],f[3])))return!1;if(1===d.length)return!0;c=1;for(g=d.length;c<g;++c)if(Pk(b,d[c-1],d[c],e,f))return!1;return!0};function Wk(b,c,d,e){for(var f=0,g=b[d-e],h=b[d-e+1];c<d;c+=e)var k=b[c],n=b[c+1],f=f+(k-g)*(n+h),g=k,h=n;return 0<f}function Xk(b,c,d,e){var f=0;e=m(e)?e:!1;var g,h;g=0;for(h=c.length;g<h;++g){var k=c[g],f=Wk(b,f,k,d);if(0===g){if(e&&f||!e&&!f)return!1}else if(e&&!f||!e&&f)return!1;f=k}return!0}
function Yk(b,c,d,e,f){f=m(f)?f:!1;var g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],n=Wk(b,c,k,e);if(0===g?f&&n||!f&&!n:f&&!n||!f&&n)for(var n=b,p=k,q=e;c<p-q;){var r;for(r=0;r<q;++r){var s=n[c+r];n[c+r]=n[p-q+r];n[p-q+r]=s}c+=q;p-=q}c=k}return c}function Zk(b,c,d,e){var f=0,g,h;g=0;for(h=c.length;g<h;++g)f=Yk(b,f,c[g],d,e);return f};function F(b,c){rk.call(this);this.b=[];this.o=-1;this.p=null;this.H=this.r=this.D=-1;this.n=null;this.W(b,c)}v(F,rk);l=F.prototype;l.jh=function(b){null===this.j?this.j=b.j.slice():ab(this.j,b.j);this.b.push(this.j.length);this.l()};l.clone=function(){var b=new F(null);$k(b,this.a,this.j.slice(),this.b.slice());return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;this.r!=this.c&&(this.D=Math.sqrt(Bk(this.j,0,this.b,this.B,0)),this.r=this.c);return Dk(this.j,0,this.b,this.B,this.D,!0,b,c,d,e)};l.Jb=function(b,c){return Rk(al(this),0,this.b,this.B,b,c)};l.Qj=function(){return wk(al(this),0,this.b,this.B)};l.Q=function(b){var c;m(b)?(c=al(this).slice(),Yk(c,0,this.b,this.B,b)):c=this.j;return Ik(c,0,this.b,this.B)};function bl(b){if(b.o!=b.c){var c=ke(b.J());b.p=Sk(al(b),0,b.b,b.B,c,0);b.o=b.c}return b.p}l.Lh=function(){return new Nk(bl(this))};l.Rh=function(){return this.b.length};l.Qh=function(b){if(0>b||this.b.length<=b)return null;var c=new Lk(null);Mk(c,this.a,this.j.slice(0===b?0:this.b[b-1],this.b[b]));return c};l.ld=function(){var b=this.a,c=this.j,d=this.b,e=[],f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g],n=new Lk(null);Mk(n,b,c.slice(f,k));e.push(n);f=k}return e};function al(b){if(b.H!=b.c){var c=b.j;Xk(c,b.b,b.B)?b.n=c:(b.n=c.slice(),b.n.length=Yk(b.n,0,b.b,b.B));b.H=b.c}return b.n}l.oc=function(b){var c=[],d=[];c.length=Kk(this.j,0,this.b,this.B,Math.sqrt(b),c,0,d);b=new F(null);$k(b,"XY",c,d);return b};l.O=function(){return"Polygon"};l.ja=function(b){return Vk(al(this),0,this.b,this.B,b)};l.W=function(b,c){if(null===b)$k(this,"XY",null,this.b);else{uk(this,c,b,2);null===this.j&&(this.j=[]);var d=Gk(this.j,0,b,this.B,this.b);this.j.length=0===d.length?0:d[d.length-1];this.l()}};function $k(b,c,d,e){tk(b,c,d);b.b=e;b.l()}function cl(b,c,d,e){var f=m(e)?e:32;e=[];var g;for(g=0;g<f;++g)ab(e,b.offset(c,d,2*Math.PI*g/f));e.push(e[0],e[1]);b=new F(null);$k(b,"XY",e,[e.length]);return b};function dl(b,c,d,e,f,g,h){qc.call(this,b,c);this.vectorContext=d;this.a=e;this.frameState=f;this.context=g;this.glContext=h}v(dl,qc);function el(b){this.b=this.c=this.f=this.d=this.a=null;this.e=b}v(el,lc);function fl(b){var c=b.f,d=b.c;b=Sa([c,[c[0],d[1]],d,[d[0],c[1]]],b.a.sa,b.a);b[4]=b[0].slice();return new F([b])}el.prototype.P=function(){this.setMap(null)};el.prototype.g=function(b){var c=this.b,d=this.e;b.vectorContext.kc(Infinity,function(b){b.Ba(d.f,d.b);b.Ca(d.c);b.Rb(c,null)})};el.prototype.R=function(){return this.b};function gl(b){null===b.a||null===b.f||null===b.c||b.a.render()}
el.prototype.setMap=function(b){null!==this.d&&(Wc(this.d),this.d=null,this.a.render(),this.a=null);this.a=b;null!==this.a&&(this.d=w(b,"postcompose",this.g,!1,this),gl(this))};function hl(b,c){qc.call(this,b);this.coordinate=c}v(hl,qc);function il(b){ek.call(this,{handleDownEvent:jl,handleDragEvent:kl,handleUpEvent:ll});b=m(b)?b:{};this.e=new el(m(b.style)?b.style:null);this.a=null;this.i=m(b.condition)?b.condition:bd}v(il,ek);function kl(b){if(dk(b)){var c=this.e;b=b.pixel;c.f=this.a;c.c=b;c.b=fl(c);gl(c)}}il.prototype.R=function(){return this.e.R()};il.prototype.g=ca;function ll(b){if(!dk(b))return!0;this.e.setMap(null);var c=b.pixel[0]-this.a[0],d=b.pixel[1]-this.a[1];64<=c*c+d*d&&(this.g(b),this.dispatchEvent(new hl("boxend",b.coordinate)));return!1}function jl(b){if(dk(b)&&zc(b.a)&&this.i(b)){this.a=b.pixel;this.e.setMap(b.map);var c=this.e,d=this.a;c.f=this.a;c.c=d;c.b=fl(c);gl(c);this.dispatchEvent(new hl("boxstart",b.coordinate));return!0}return!1};function ml(){this.c=-1};function nl(){this.c=-1;this.c=64;this.a=Array(4);this.f=Array(this.c);this.d=this.b=0;this.a[0]=1732584193;this.a[1]=4023233417;this.a[2]=2562383102;this.a[3]=271733878;this.d=this.b=0}v(nl,ml);function pl(b,c,d){d||(d=0);var e=Array(16);if(ia(c))for(var f=0;16>f;++f)e[f]=c.charCodeAt(d++)|c.charCodeAt(d++)<<8|c.charCodeAt(d++)<<16|c.charCodeAt(d++)<<24;else for(f=0;16>f;++f)e[f]=c[d++]|c[d++]<<8|c[d++]<<16|c[d++]<<24;c=b.a[0];d=b.a[1];var f=b.a[2],g=b.a[3],h=0,h=c+(g^d&(f^g))+e[0]+3614090360&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[1]+3905402710&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[2]+606105819&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[3]+3250441966&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[4]+4118548399&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[5]+1200080426&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[6]+2821735955&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[7]+4249261313&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[8]+1770035416&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[9]+2336552879&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+
(d^g&(c^d))+e[10]+4294925233&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[11]+2304563134&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(g^d&(f^g))+e[12]+1804603682&4294967295;c=d+(h<<7&4294967295|h>>>25);h=g+(f^c&(d^f))+e[13]+4254626195&4294967295;g=c+(h<<12&4294967295|h>>>20);h=f+(d^g&(c^d))+e[14]+2792965006&4294967295;f=g+(h<<17&4294967295|h>>>15);h=d+(c^f&(g^c))+e[15]+1236535329&4294967295;d=f+(h<<22&4294967295|h>>>10);h=c+(f^g&(d^f))+e[1]+4129170786&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[6]+3225465664&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[11]+643717713&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[0]+3921069994&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[5]+3593408605&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[10]+38016083&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[15]+3634488961&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[4]+3889429448&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[9]+568446438&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[14]+3275163606&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[3]+4107603335&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[8]+1163531501&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(f^g&(d^f))+e[13]+2850285829&4294967295;c=d+(h<<5&4294967295|h>>>27);h=g+(d^f&(c^d))+e[2]+4243563512&4294967295;g=c+(h<<9&4294967295|h>>>23);h=f+(c^d&(g^c))+e[7]+1735328473&4294967295;f=g+(h<<14&4294967295|h>>>18);h=d+(g^c&(f^g))+e[12]+2368359562&4294967295;d=f+(h<<20&4294967295|h>>>12);h=c+(d^f^g)+e[5]+4294588738&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[8]+2272392833&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[11]+1839030562&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[14]+4259657740&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[1]+2763975236&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[4]+1272893353&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[7]+4139469664&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[10]+3200236656&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[13]+681279174&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[0]+3936430074&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[3]+3572445317&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[6]+76029189&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(d^f^g)+e[9]+3654602809&4294967295;c=d+(h<<4&4294967295|h>>>28);h=g+(c^d^f)+e[12]+3873151461&4294967295;g=c+(h<<11&4294967295|h>>>21);h=f+(g^c^d)+e[15]+530742520&4294967295;f=g+(h<<16&4294967295|h>>>16);h=d+(f^g^c)+e[2]+3299628645&4294967295;d=f+(h<<23&4294967295|h>>>9);h=c+(f^(d|~g))+e[0]+4096336452&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[7]+1126891415&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[14]+2878612391&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[5]+4237533241&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[12]+1700485571&4294967295;c=d+
(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[3]+2399980690&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[10]+4293915773&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[1]+2240044497&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[8]+1873313359&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[15]+4264355552&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[6]+2734768916&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[13]+1309151649&4294967295;d=f+(h<<21&4294967295|h>>>11);h=c+(f^(d|~g))+e[4]+4149444226&4294967295;c=d+(h<<6&4294967295|h>>>26);h=g+(d^(c|~f))+e[11]+3174756917&4294967295;g=c+(h<<10&4294967295|h>>>22);h=f+(c^(g|~d))+e[2]+718787259&4294967295;f=g+(h<<15&4294967295|h>>>17);h=d+(g^(f|~c))+e[9]+3951481745&4294967295;b.a[0]=b.a[0]+c&4294967295;b.a[1]=b.a[1]+(f+(h<<21&4294967295|h>>>11))&4294967295;b.a[2]=b.a[2]+f&4294967295;b.a[3]=b.a[3]+g&4294967295}
nl.prototype.update=function(b,c){m(c)||(c=b.length);for(var d=c-this.c,e=this.f,f=this.b,g=0;g<c;){if(0==f)for(;g<=d;)pl(this,b,g),g+=this.c;if(ia(b))for(;g<c;){if(e[f++]=b.charCodeAt(g++),f==this.c){pl(this,e);f=0;break}}else for(;g<c;)if(e[f++]=b[g++],f==this.c){pl(this,e);f=0;break}}this.b=f;this.d+=c};function ql(b){b=m(b)?b:{};this.a=m(b.color)?b.color:null;this.d=b.lineCap;this.b=m(b.lineDash)?b.lineDash:null;this.f=b.lineJoin;this.e=b.miterLimit;this.c=b.width;this.g=void 0}l=ql.prototype;l.Mk=function(){return this.a};l.Nh=function(){return this.d};l.Nk=function(){return this.b};l.Oh=function(){return this.f};l.Uh=function(){return this.e};l.Ok=function(){return this.c};l.Pk=function(b){this.a=b;this.g=void 0};l.$l=function(b){this.d=b;this.g=void 0};l.Qk=function(b){this.b=b;this.g=void 0};l.am=function(b){this.f=b;this.g=void 0};l.bm=function(b){this.e=b;this.g=void 0};l.im=function(b){this.c=b;this.g=void 0};l.xb=function(){if(!m(this.g)){var b="s"+(null===this.a?"-":sg(this.a))+","+(m(this.d)?this.d.toString():"-")+","+(null===this.b?"-":this.b.toString())+","+(m(this.f)?this.f:"-")+","+(m(this.e)?this.e.toString():"-")+","+(m(this.c)?this.c.toString():"-"),c=new nl;c.update(b);var d=Array((56>c.b?c.c:2*c.c)-c.b);d[0]=128;for(b=1;b<d.length-8;++b)d[b]=0;for(var e=8*c.d,b=d.length-8;b<d.length;++b)d[b]=e&255,e/=256;c.update(d);d=Array(16);for(b=e=0;4>b;++b)for(var f=0;32>f;f+=8)d[e++]=c.a[b]>>>f&255;if(8192>d.length)c=String.fromCharCode.apply(null,d);else for(c="",b=0;b<d.length;b+=8192)c+=String.fromCharCode.apply(null,cb(d,b,b+8192));this.g=c}return this.g};var rl=[0,0,0,1],sl=[],tl=[0,0,0,1];function ul(b){b=m(b)?b:{};this.a=m(b.color)?b.color:null;this.c=void 0}ul.prototype.b=function(){return this.a};ul.prototype.d=function(b){this.a=b;this.c=void 0};ul.prototype.xb=function(){m(this.c)||(this.c="f"+(null===this.a?"-":sg(this.a)));return this.c};function vl(b){b=m(b)?b:{};this.e=this.a=this.f=null;this.d=m(b.fill)?b.fill:null;this.c=m(b.stroke)?b.stroke:null;this.b=b.radius;this.q=[0,0];this.n=this.D=this.g=null;var c=b.atlasManager,d,e=null,f,g=0;null!==this.c&&(f=sg(this.c.a),g=this.c.c,m(g)||(g=1),e=this.c.b,Yf||(e=null));var h=2*(this.b+g)+1;f={strokeStyle:f,Uc:g,size:h,lineDash:e};m(c)?(h=Math.round(h),(e=null===this.d)&&(d=ra(this.Rf,this,f)),g=this.xb(),f=c.add(g,h,h,ra(this.Sf,this,f),d),this.a=f.image,this.q=[f.offsetX,f.offsetY],d=f.image.width,this.e=e?f.wf:this.a):(this.a=Ef("CANVAS"),this.a.height=h,this.a.width=h,d=h=this.a.width,c=this.a.getContext("2d"),this.Sf(f,c,0,0),null===this.d?(c=this.e=Ef("CANVAS"),c.height=f.size,c.width=f.size,c=c.getContext("2d"),this.Rf(f,c,0,0)):this.e=this.a);this.g=[h/2,h/2];this.D=[h,h];this.n=[d,d];zj.call(this,{opacity:1,rotateWithView:!1,rotation:0,scale:1,snapToPixel:m(b.snapToPixel)?b.snapToPixel:!0})}v(vl,zj);l=vl.prototype;l.wb=function(){return this.g};l.Dk=function(){return this.d};l.Kd=function(){return this.e};l.Bb=function(){return this.a};l.Pc=function(){return 2};l.kd=function(){return this.n};l.Cb=function(){return this.q};l.Ek=function(){return this.b};l.gb=function(){return this.D};l.Fk=function(){return this.c};l.we=ca;l.load=ca;l.Ne=ca;l.Sf=function(b,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();c.arc(b.size/2,b.size/2,this.b,0,2*Math.PI,!0);null!==this.d&&(c.fillStyle=sg(this.d.a),c.fill());null!==this.c&&(c.strokeStyle=b.strokeStyle,c.lineWidth=b.Uc,null===b.lineDash||c.setLineDash(b.lineDash),c.stroke());c.closePath()};l.Rf=function(b,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();c.arc(b.size/2,b.size/2,this.b,0,2*Math.PI,!0);c.fillStyle=rl;c.fill();null!==this.c&&(c.strokeStyle=b.strokeStyle,c.lineWidth=b.Uc,null===b.lineDash||c.setLineDash(b.lineDash),c.stroke());c.closePath()};l.xb=function(){var b=null===this.c?"-":this.c.xb(),c=null===this.d?"-":this.d.xb();if(null===this.f||b!=this.f[1]||c!=this.f[2]||this.b!=this.f[3])this.f=["c"+b+c+(m(this.b)?this.b.toString():"-"),b,c,this.b];return this.f[0]};function wl(b){b=m(b)?b:{};this.g=null;this.d=xl;m(b.geometry)&&this.Vf(b.geometry);this.f=m(b.fill)?b.fill:null;this.e=m(b.image)?b.image:null;this.b=m(b.stroke)?b.stroke:null;this.c=m(b.text)?b.text:null;this.a=b.zIndex}l=wl.prototype;l.R=function(){return this.g};l.Hh=function(){return this.d};l.Rk=function(){return this.f};l.Sk=function(){return this.e};l.Tk=function(){return this.b};l.Uk=function(){return this.c};l.ji=function(){return this.a};l.Vf=function(b){ka(b)?this.d=b:ia(b)?this.d=function(c){return c.get(b)}:null===b?this.d=xl:m(b)&&(this.d=function(){return b});this.g=b};l.km=function(b){this.a=b};function yl(b){ka(b)||(b=ga(b)?b:[b],b=$c(b));return b}function zl(){var b=new ul({color:"rgba(255,255,255,0.4)"}),c=new ql({color:"#3399CC",width:1.25}),d=[new wl({image:new vl({fill:b,stroke:c,radius:5}),fill:b,stroke:c})];zl=function(){return d};return d}
function Al(){var b={},c=[255,255,255,1],d=[0,153,255,1];b.Polygon=[new wl({fill:new ul({color:[255,255,255,.5]})})];b.MultiPolygon=b.Polygon;b.LineString=[new wl({stroke:new ql({color:c,width:5})}),new wl({stroke:new ql({color:d,width:3})})];b.MultiLineString=b.LineString;b.Circle=b.Polygon.concat(b.LineString);b.Point=[new wl({image:new vl({radius:6,fill:new ul({color:d}),stroke:new ql({color:c,width:1.5})}),zIndex:Infinity})];b.MultiPoint=b.Point;b.GeometryCollection=b.Polygon.concat(b.Point);return b}function xl(b){return b.R()};function Bl(b){var c=m(b)?b:{};b=m(c.condition)?c.condition:bk;c=m(c.style)?c.style:new wl({stroke:new ql({color:[0,0,255,1]})});il.call(this,{condition:b,style:c})}v(Bl,il);Bl.prototype.g=function(){var b=this.k,c=b.a(),d=this.R().J(),e=ke(d),f=b.f(),d=c.k(d,f),d=c.constrainResolution(d,0,void 0);Uj(b,c,d,e,200)};function Cl(b){Rj.call(this,{handleEvent:Dl});b=m(b)?b:{};this.a=m(b.condition)?b.condition:gd(ak,ck);this.f=m(b.pixelDelta)?b.pixelDelta:128}v(Cl,Rj);function Dl(b){var c=!1;if("key"==b.type){var d=b.a.f;if(this.a(b)&&(40==d||37==d||39==d||38==d)){var e=b.map,c=e.a(),f=Xe(c),g=f.resolution*this.f,h=0,k=0;40==d?k=-g:37==d?h=-g:39==d?h=g:k=g;d=[h,k];Ad(d,f.rotation);f=c.b();m(f)&&(m(100)&&e.La(cf({source:f,duration:100,easing:af})),e=c.i([f[0]+d[0],f[1]+d[1]]),c.Ha(e));b.preventDefault();c=!0}}return!c};function El(b){Rj.call(this,{handleEvent:Fl});b=m(b)?b:{};this.f=m(b.condition)?b.condition:ck;this.a=m(b.delta)?b.delta:1;this.e=m(b.duration)?b.duration:100}v(El,Rj);function Fl(b){var c=!1;if("key"==b.type){var d=b.a.i;if(this.f(b)&&(43==d||45==d)){c=b.map;d=43==d?this.a:-this.a;c.render();var e=c.a();Tj(c,e,d,void 0,this.e);b.preventDefault();c=!0}}return!c};function Gl(b){Rj.call(this,{handleEvent:Hl});b=m(b)?b:{};this.a=0;this.q=m(b.duration)?b.duration:250;this.e=null;this.g=this.f=void 0}v(Gl,Rj);function Hl(b){var c=!1;if("mousewheel"==b.type){var c=b.map,d=b.a;this.e=b.coordinate;this.a+=d.q;m(this.f)||(this.f=ta());d=Math.max(80-(ta()-this.f),0);ba.clearTimeout(this.g);this.g=ba.setTimeout(ra(this.i,this,c),d);b.preventDefault();c=!0}return!c}
Gl.prototype.i=function(b){var c=Vb(this.a,-1,1),d=b.a();b.render();Tj(b,d,-c,this.e,this.q);this.a=0;this.e=null;this.g=this.f=void 0};function Il(b){ek.call(this,{handleDownEvent:Jl,handleDragEvent:Kl,handleUpEvent:Ll});b=m(b)?b:{};this.e=null;this.g=void 0;this.a=!1;this.i=0;this.o=m(b.threshold)?b.threshold:.3}v(Il,ek);function Kl(b){var c=0,d=this.f[0],e=this.f[1],d=Math.atan2(e.clientY-d.clientY,e.clientX-d.clientX);m(this.g)&&(c=d-this.g,this.i+=c,!this.a&&Math.abs(this.i)>this.o&&(this.a=!0));this.g=d;b=b.map;d=Jg(b.b);e=gk(this.f);e[0]-=d.x;e[1]-=d.y;this.e=b.sa(e);this.a&&(d=b.a(),e=d.d(),b.render(),Sj(b,d,e+c,this.e))}function Ll(b){if(2>this.f.length){b=b.map;var c=b.a();Ye(c,-1);if(this.a){var d=c.d(),e=this.e,d=c.constrainRotation(d,0);Sj(b,c,d,e,250)}return!1}return!0}
function Jl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.g=void 0,this.a=!1,this.i=0,this.q||Ye(b.a(),1),b.render(),!0):!1}Il.prototype.r=ad;function Ml(b){ek.call(this,{handleDownEvent:Nl,handleDragEvent:Ol,handleUpEvent:Pl});b=m(b)?b:{};this.e=null;this.i=m(b.duration)?b.duration:400;this.a=void 0;this.g=1}v(Ml,ek);function Ol(b){var c=1,d=this.f[0],e=this.f[1],f=d.clientX-e.clientX,d=d.clientY-e.clientY,f=Math.sqrt(f*f+d*d);m(this.a)&&(c=this.a/f);this.a=f;1!=c&&(this.g=c);b=b.map;var f=b.a(),d=f.a(),e=Jg(b.b),g=gk(this.f);g[0]-=e.x;g[1]-=e.y;this.e=b.sa(g);b.render();Uj(b,f,d*c,this.e)}
function Pl(b){if(2>this.f.length){b=b.map;var c=b.a();Ye(c,-1);var d=c.a(),e=this.e,f=this.i,d=c.constrainResolution(d,0,this.g-1);Uj(b,c,d,e,f);return!1}return!0}function Nl(b){return 2<=this.f.length?(b=b.map,this.e=null,this.a=void 0,this.g=1,this.q||Ye(b.a(),1),b.render(),!0):!1}Ml.prototype.r=ad;function Ql(b){b=m(b)?b:{};var c=new lg,d=new Oj(-.005,.05,100);(m(b.altShiftDragRotate)?b.altShiftDragRotate:1)&&c.push(new lk);(m(b.doubleClickZoom)?b.doubleClickZoom:1)&&c.push(new Vj({delta:b.zoomDelta,duration:b.zoomDuration}));(m(b.dragPan)?b.dragPan:1)&&c.push(new hk({kinetic:d}));(m(b.pinchRotate)?b.pinchRotate:1)&&c.push(new Il);(m(b.pinchZoom)?b.pinchZoom:1)&&c.push(new Ml({duration:b.zoomDuration}));if(m(b.keyboard)?b.keyboard:1)c.push(new Cl),c.push(new El({delta:b.zoomDelta,duration:b.zoomDuration}));(m(b.mouseWheelZoom)?b.mouseWheelZoom:1)&&c.push(new Gl({duration:b.zoomDuration}));(m(b.shiftDragZoom)?b.shiftDragZoom:1)&&c.push(new Bl);return c};function G(b){var c=m(b)?b:{};b=Bb(c);delete b.layers;c=c.layers;C.call(this,b);this.a=null;w(this,ud("layers"),this.Di,!1,this);null!=c?ga(c)&&(c=new lg(c.slice())):c=new lg;this.r(c)}v(G,C);l=G.prototype;l.sf=function(){this.b()&&this.l()};l.Di=function(){null!==this.a&&(Qa(qb(this.a),Wc),this.a=null);var b=this.ac();if(null!=b){this.a={add:w(b,"add",this.Ci,!1,this),remove:w(b,"remove",this.Ei,!1,this)};var b=b.a,c,d,e;c=0;for(d=b.length;c<d;c++)e=b[c],this.a[ma(e).toString()]=w(e,["propertychange","change"],this.sf,!1,this)}this.l()};l.Ci=function(b){b=b.element;this.a[ma(b).toString()]=w(b,["propertychange","change"],this.sf,!1,this);this.l()};l.Ei=function(b){b=ma(b.element).toString();Wc(this.a[b]);delete this.a[b];this.l()};l.ac=function(){return this.get("layers")};G.prototype.getLayers=G.prototype.ac;G.prototype.r=function(b){this.set("layers",b)};G.prototype.setLayers=G.prototype.r;G.prototype.Xa=function(b){var c=m(b)?b:[],d=c.length;this.ac().forEach(function(b){b.Xa(c)});b=ij(this);var e,f;for(e=c.length;d<e;d++)f=c[d],f.brightness=Vb(f.brightness+b.brightness,-1,1),f.contrast*=b.contrast,f.hue+=b.hue,f.opacity*=b.opacity,f.saturation*=b.saturation,f.visible=f.visible&&b.visible,f.maxResolution=Math.min(f.maxResolution,b.maxResolution),f.minResolution=Math.max(f.minResolution,b.minResolution),m(b.extent)&&(f.extent=m(f.extent)?oe(f.extent,b.extent):b.extent);return c};G.prototype.kb=function(){return"ready"};function Rl(b){xe.call(this,{code:b,units:"m",extent:Sl,global:!0,worldExtent:Tl})}v(Rl,xe);Rl.prototype.getPointResolution=function(b,c){var d=c[1]/6378137;return b/((Math.exp(d)+Math.exp(-d))/2)};var Ul=6378137*Math.PI,Sl=[-Ul,-Ul,Ul,Ul],Tl=[-180,-85,180,85],Je=Sa("EPSG:3857 EPSG:102100 EPSG:102113 EPSG:900913 urn:ogc:def:crs:EPSG:6.18:3:3857 urn:ogc:def:crs:EPSG::3857 http://www.opengis.net/gml/srs/epsg.xml#3857".split(" "),function(b){return new Rl(b)});function Ke(b,c,d){var e=b.length;d=1<d?d:2;m(c)||(2<d?c=b.slice():c=Array(e));for(var f=0;f<e;f+=d)c[f]=6378137*Math.PI*b[f]/180,c[f+1]=6378137*Math.log(Math.tan(Math.PI*(b[f+1]+90)/360));return c}function Le(b,c,d){var e=b.length;d=1<d?d:2;m(c)||(2<d?c=b.slice():c=Array(e));for(var f=0;f<e;f+=d)c[f]=180*b[f]/(6378137*Math.PI),c[f+1]=360*Math.atan(Math.exp(b[f+1]/6378137))/Math.PI-90;return c};function Vl(b,c){xe.call(this,{code:b,units:"degrees",extent:Wl,axisOrientation:c,global:!0,worldExtent:Wl})}v(Vl,xe);Vl.prototype.getPointResolution=function(b){return b};var Wl=[-180,-90,180,90],Me=[new Vl("CRS:84"),new Vl("EPSG:4326","neu"),new Vl("urn:ogc:def:crs:EPSG::4326","neu"),new Vl("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new Vl("urn:ogc:def:crs:OGC:1.3:CRS84"),new Vl("urn:ogc:def:crs:OGC:2:84"),new Vl("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new Vl("urn:x-ogc:def:crs:EPSG:4326","neu")];function Xl(){Ae(Je);Ae(Me);Ie()};function H(b){D.call(this,m(b)?b:{})}v(H,D);function I(b){b=m(b)?b:{};var c=Bb(b);delete c.preload;delete c.useInterimTilesOnError;D.call(this,c);this.ia(m(b.preload)?b.preload:0);this.ka(m(b.useInterimTilesOnError)?b.useInterimTilesOnError:!0)}v(I,D);I.prototype.r=function(){return this.get("preload")};I.prototype.getPreload=I.prototype.r;I.prototype.ia=function(b){this.set("preload",b)};I.prototype.setPreload=I.prototype.ia;I.prototype.ea=function(){return this.get("useInterimTilesOnError")};I.prototype.getUseInterimTilesOnError=I.prototype.ea;I.prototype.ka=function(b){this.set("useInterimTilesOnError",b)};I.prototype.setUseInterimTilesOnError=I.prototype.ka;function J(b){b=m(b)?b:{};var c=Bb(b);delete c.style;delete c.renderBuffer;delete c.updateWhileAnimating;D.call(this,c);this.ea=m(b.renderBuffer)?b.renderBuffer:100;this.vc=null;this.r=void 0;this.ka(b.style);this.Ac=m(b.updateWhileAnimating)?b.updateWhileAnimating:!1}v(J,D);J.prototype.$e=function(){return this.vc};J.prototype.cf=function(){return this.r};J.prototype.ka=function(b){this.vc=m(b)?b:zl;this.r=null===b?void 0:yl(this.vc);this.l()};function Yl(b,c,d,e,f){this.o={};this.b=b;this.r=c;this.f=d;this.H=e;this.kb=f;this.e=this.a=this.c=this.fa=this.qa=this.oa=null;this.ea=this.Da=this.q=this.U=this.S=this.N=0;this.ia=!1;this.g=this.ka=0;this.va=!1;this.ca=0;this.d="";this.i=this.D=this.Fa=this.Ea=0;this.da=this.k=this.n=null;this.p=[];this.Xa=Hd()}
function Zl(b,c,d){if(null!==b.e){c=qk(c,0,d,2,b.H,b.p);d=b.b;var e=b.Xa,f=d.globalAlpha;1!=b.q&&(d.globalAlpha=f*b.q);var g=b.ka;b.ia&&(g+=b.kb);var h,k;h=0;for(k=c.length;h<k;h+=2){var n=c[h]-b.N,p=c[h+1]-b.S;b.va&&(n=n+.5|0,p=p+.5|0);if(0!==g||1!=b.g){var q=n+b.N,r=p+b.S;lj(e,q,r,b.g,b.g,g,-q,-r);d.setTransform(e[0],e[1],e[4],e[5],e[12],e[13])}d.drawImage(b.e,b.Da,b.ea,b.ca,b.U,n,p,b.ca,b.U)}0===g&&1==b.g||d.setTransform(1,0,0,1,0,0);1!=b.q&&(d.globalAlpha=f)}}
function $l(b,c,d,e){var f=0;if(null!==b.da&&""!==b.d){null===b.n||am(b,b.n);null===b.k||bm(b,b.k);var g=b.da,h=b.b,k=b.fa;null===k?(h.font=g.font,h.textAlign=g.textAlign,h.textBaseline=g.textBaseline,b.fa={font:g.font,textAlign:g.textAlign,textBaseline:g.textBaseline}):(k.font!=g.font&&(k.font=h.font=g.font),k.textAlign!=g.textAlign&&(k.textAlign=h.textAlign=g.textAlign),k.textBaseline!=g.textBaseline&&(k.textBaseline=h.textBaseline=g.textBaseline));c=qk(c,f,d,e,b.H,b.p);for(g=b.b;f<d;f+=e){h=c[f]+
b.Ea;k=c[f+1]+b.Fa;if(0!==b.D||1!=b.i){var n=lj(b.Xa,h,k,b.i,b.i,b.D,-h,-k);g.setTransform(n[0],n[1],n[4],n[5],n[12],n[13])}null===b.k||g.strokeText(b.d,h,k);null===b.n||g.fillText(b.d,h,k)}0===b.D&&1==b.i||g.setTransform(1,0,0,1,0,0)}}function cm(b,c,d,e,f,g){var h=b.b;b=qk(c,d,e,f,b.H,b.p);h.moveTo(b[0],b[1]);for(c=2;c<b.length;c+=2)h.lineTo(b[c],b[c+1]);g&&h.lineTo(b[0],b[1]);return e}function dm(b,c,d,e,f){var g=b.b,h,k;h=0;for(k=e.length;h<k;++h)d=cm(b,c,d,e[h],f,!0),g.closePath();return d}
l=Yl.prototype;l.kc=function(b,c){var d=b.toString(),e=this.o[d];m(e)?e.push(c):this.o[d]=[c]};l.lc=function(b){if(pe(this.f,b.J())){if(null!==this.c||null!==this.a){null===this.c||am(this,this.c);null===this.a||bm(this,this.a);var c;c=b.j;c=null===c?null:qk(c,0,c.length,b.B,this.H,this.p);var d=c[2]-c[0],e=c[3]-c[1],d=Math.sqrt(d*d+e*e),e=this.b;e.beginPath();e.arc(c[0],c[1],d,0,2*Math.PI);null===this.c||e.fill();null===this.a||e.stroke()}""!==this.d&&$l(this,b.Oc(),2,2)}};l.oe=function(b,c){var d=(0,c.d)(b);if(null!=d&&pe(this.f,d.J())){var e=c.a;m(e)||(e=0);this.kc(e,function(b){b.Ba(c.f,c.b);b.ib(c.e);b.Ca(c.c);em[d.O()].call(b,d,null)})}};l.fd=function(b,c){var d=b.d,e,f;e=0;for(f=d.length;e<f;++e){var g=d[e];em[g.O()].call(this,g,c)}};l.ub=function(b){var c=b.j;b=b.B;null===this.e||Zl(this,c,c.length);""!==this.d&&$l(this,c,c.length,b)};l.tb=function(b){var c=b.j;b=b.B;null===this.e||Zl(this,c,c.length);""!==this.d&&$l(this,c,c.length,b)};l.Eb=function(b){if(pe(this.f,b.J())){if(null!==this.a){bm(this,this.a);var c=this.b,d=b.j;c.beginPath();cm(this,d,0,d.length,b.B,!1);c.stroke()}""!==this.d&&(b=fm(b),$l(this,b,2,2))}};l.mc=function(b){var c=b.J();if(pe(this.f,c)){if(null!==this.a){bm(this,this.a);var c=this.b,d=b.j,e=0,f=b.b,g=b.B;c.beginPath();var h,k;h=0;for(k=f.length;h<k;++h)e=cm(this,d,e,f[h],g,!1);c.stroke()}""!==this.d&&(b=hm(b),$l(this,b,b.length,2))}};l.Rb=function(b){if(pe(this.f,b.J())){if(null!==this.a||null!==this.c){null===this.c||am(this,this.c);null===this.a||bm(this,this.a);var c=this.b;c.beginPath();dm(this,al(b),0,b.b,b.B);null===this.c||c.fill();null===this.a||c.stroke()}""!==this.d&&(b=bl(b),$l(this,b,2,2))}};l.nc=function(b){if(pe(this.f,b.J())){if(null!==this.a||null!==this.c){null===this.c||am(this,this.c);null===this.a||bm(this,this.a);var c=this.b,d=im(b),e=0,f=b.b,g=b.B,h,k;h=0;for(k=f.length;h<k;++h){var n=f[h];c.beginPath();e=dm(this,d,e,n,g);null===this.c||c.fill();null===this.a||c.stroke()}}""!==this.d&&(b=jm(b),$l(this,b,b.length,2))}};function km(b){var c=Sa(rb(b.o),Number);db(c);var d,e,f,g,h;d=0;for(e=c.length;d<e;++d)for(f=b.o[c[d].toString()],g=0,h=f.length;g<h;++g)f[g](b)}
function am(b,c){var d=b.b,e=b.oa;null===e?(d.fillStyle=c.fillStyle,b.oa={fillStyle:c.fillStyle}):e.fillStyle!=c.fillStyle&&(e.fillStyle=d.fillStyle=c.fillStyle)}
function bm(b,c){var d=b.b,e=b.qa;null===e?(d.lineCap=c.lineCap,Yf&&d.setLineDash(c.lineDash),d.lineJoin=c.lineJoin,d.lineWidth=c.lineWidth,d.miterLimit=c.miterLimit,d.strokeStyle=c.strokeStyle,b.qa={lineCap:c.lineCap,lineDash:c.lineDash,lineJoin:c.lineJoin,lineWidth:c.lineWidth,miterLimit:c.miterLimit,strokeStyle:c.strokeStyle}):(e.lineCap!=c.lineCap&&(e.lineCap=d.lineCap=c.lineCap),Yf&&!gb(e.lineDash,c.lineDash)&&d.setLineDash(e.lineDash=c.lineDash),e.lineJoin!=c.lineJoin&&(e.lineJoin=d.lineJoin=c.lineJoin),e.lineWidth!=c.lineWidth&&(e.lineWidth=d.lineWidth=c.lineWidth),e.miterLimit!=c.miterLimit&&(e.miterLimit=d.miterLimit=c.miterLimit),e.strokeStyle!=c.strokeStyle&&(e.strokeStyle=d.strokeStyle=c.strokeStyle))}
l.Ba=function(b,c){if(null===b)this.c=null;else{var d=b.a;this.c={fillStyle:sg(null===d?rl:d)}}if(null===c)this.a=null;else{var d=c.a,e=c.d,f=c.b,g=c.f,h=c.c,k=c.e;this.a={lineCap:m(e)?e:"round",lineDash:null!=f?f:sl,lineJoin:m(g)?g:"round",lineWidth:this.r*(m(h)?h:1),miterLimit:m(k)?k:10,strokeStyle:sg(null===d?tl:d)}}};l.ib=function(b){if(null===b)this.e=null;else{var c=b.wb(),d=b.Bb(1),e=b.Cb(),f=b.gb();this.N=c[0];this.S=c[1];this.U=f[1];this.e=d;this.q=b.o;this.Da=e[0];this.ea=e[1];this.ia=b.p;this.ka=b.i;this.g=b.k;this.va=b.r;this.ca=f[0]}};l.Ca=function(b){if(null===b)this.d="";else{var c=b.a;null===c?this.n=null:(c=c.a,this.n={fillStyle:sg(null===c?rl:c)});var d=b.e;if(null===d)this.k=null;else{var c=d.a,e=d.d,f=d.b,g=d.f,h=d.c,d=d.e;this.k={lineCap:m(e)?e:"round",lineDash:null!=f?f:sl,lineJoin:m(g)?g:"round",lineWidth:m(h)?h:1,miterLimit:m(d)?d:10,strokeStyle:sg(null===c?tl:c)}}var c=b.d,e=b.i,f=b.k,g=b.f,h=b.c,d=b.b,k=b.g;b=b.n;this.da={font:m(c)?c:"10px sans-serif",textAlign:m(k)?k:"center",textBaseline:m(b)?b:"middle"};this.d=m(d)?d:"";this.Ea=m(e)?this.r*e:0;this.Fa=m(f)?this.r*f:0;this.D=m(g)?g:0;this.i=this.r*(m(h)?h:1)}};var em={Point:Yl.prototype.ub,LineString:Yl.prototype.Eb,Polygon:Yl.prototype.Rb,MultiPoint:Yl.prototype.tb,MultiLineString:Yl.prototype.mc,MultiPolygon:Yl.prototype.nc,GeometryCollection:Yl.prototype.fd,Circle:Yl.prototype.lc};var lm=["Polygon","LineString","Image","Text"];function mm(b,c,d){this.fa=b;this.ca=c;this.d=null;this.f=0;this.resolution=d;this.S=this.N=null;this.c=[];this.coordinates=[];this.oa=Hd();this.a=[];this.da=[];this.qa=Hd()}
function nm(b,c,d,e,f,g){var h=b.coordinates.length,k=b.re(),n=[c[d],c[d+1]],p=[NaN,NaN],q=!0,r,s,u;for(r=d+f;r<e;r+=f)p[0]=c[r],p[1]=c[r+1],u=ae(k,p),u!==s?(q&&(b.coordinates[h++]=n[0],b.coordinates[h++]=n[1]),b.coordinates[h++]=p[0],b.coordinates[h++]=p[1],q=!1):1===u?(b.coordinates[h++]=p[0],b.coordinates[h++]=p[1],q=!1):q=!0,n[0]=p[0],n[1]=p[1],s=u;r===d+f&&(b.coordinates[h++]=n[0],b.coordinates[h++]=n[1]);g&&(b.coordinates[h++]=c[d],b.coordinates[h++]=c[d+1]);return h}
function om(b,c){b.N=[0,c,0];b.c.push(b.N);b.S=[0,c,0];b.a.push(b.S)}
function pm(b,c,d,e,f,g,h,k,n){var p;mj(e,b.oa)?p=b.da:(p=qk(b.coordinates,0,b.coordinates.length,2,e,b.da),Kd(b.oa,e));e=0;var q=h.length,r=0,s;for(b=b.qa;e<q;){var u=h[e],y,z,A,E;switch(u[0]){case 0:r=u[1];s=ma(r).toString();m(g[s])?e=u[2]:m(n)&&!pe(n,r.R().J())?e=u[2]:++e;break;case 1:c.beginPath();++e;break;case 2:r=u[1];s=p[r];var x=p[r+1],Q=p[r+2]-s,r=p[r+3]-x;c.arc(s,x,Math.sqrt(Q*Q+r*r),0,2*Math.PI,!0);++e;break;case 3:c.closePath();++e;break;case 4:r=u[1];s=u[2];y=u[3];A=u[4]*d;var N=u[5]*d,L=u[6];z=u[7];var U=u[8],Ca=u[9],x=u[11],Q=u[12],eb=u[13],R=u[14];for(u[10]&&(x+=f);r<s;r+=2){u=p[r]-A;E=p[r+1]-N;eb&&(u=u+.5|0,E=E+.5|0);if(1!=Q||0!==x){var Ma=u+A,sb=E+N;lj(b,Ma,sb,Q,Q,x,-Ma,-sb);c.setTransform(b[0],b[1],b[4],b[5],b[12],b[13])}Ma=c.globalAlpha;1!=z&&(c.globalAlpha=Ma*z);c.drawImage(y,U,Ca,R,L,u,E,R*d,L*d);1!=z&&(c.globalAlpha=Ma);1==Q&&0===x||c.setTransform(1,0,0,1,0,0)}++e;break;case 5:r=u[1];s=u[2];A=u[3];N=u[4]*d;L=u[5]*d;x=u[6];Q=u[7]*d;y=u[8];for(z=u[9];r<s;r+=2){u=p[r]+
N;E=p[r+1]+L;if(1!=Q||0!==x)lj(b,u,E,Q,Q,x,-u,-E),c.setTransform(b[0],b[1],b[4],b[5],b[12],b[13]);z&&c.strokeText(A,u,E);y&&c.fillText(A,u,E);1==Q&&0===x||c.setTransform(1,0,0,1,0,0)}++e;break;case 6:if(m(k)&&(r=u[1],r=k(r)))return r;++e;break;case 7:c.fill();++e;break;case 8:r=u[1];s=u[2];c.moveTo(p[r],p[r+1]);for(r+=2;r<s;r+=2)c.lineTo(p[r],p[r+1]);++e;break;case 9:c.fillStyle=u[1];++e;break;case 10:r=m(u[7])?u[7]:!0;s=u[2];c.strokeStyle=u[1];c.lineWidth=r?s*d:s;c.lineCap=u[3];c.lineJoin=u[4];c.miterLimit=u[5];Yf&&c.setLineDash(u[6]);++e;break;case 11:c.font=u[1];c.textAlign=u[2];c.textBaseline=u[3];++e;break;case 12:c.stroke();++e;break;default:++e}}}mm.prototype.bc=function(b,c,d,e,f){pm(this,b,c,d,e,f,this.c,void 0)};function qm(b){var c=b.a;c.reverse();var d,e=c.length,f,g,h=-1;for(d=0;d<e;++d)if(f=c[d],g=f[0],6==g)h=d;else if(0==g){f[2]=d;f=b.a;for(g=d;h<g;){var k=f[h];f[h]=f[g];f[g]=k;++h;--g}h=-1}}
function rm(b,c){b.N[2]=b.c.length;b.N=null;b.S[2]=b.a.length;b.S=null;var d=[6,c];b.c.push(d);b.a.push(d)}mm.prototype.Kb=ca;mm.prototype.re=function(){return this.ca};function sm(b,c,d){mm.call(this,b,c,d);this.n=this.U=null;this.H=this.D=this.r=this.p=this.o=this.q=this.k=this.i=this.g=this.e=this.b=void 0}v(sm,mm);sm.prototype.ub=function(b,c){if(null!==this.n){om(this,c);var d=b.j,e=this.coordinates.length,d=nm(this,d,0,d.length,b.B,!1);this.c.push([4,e,d,this.n,this.b,this.e,this.g,this.i,this.k,this.q,this.o,this.p,this.r,this.D,this.H]);this.a.push([4,e,d,this.U,this.b,this.e,this.g,this.i,this.k,this.q,this.o,this.p,this.r,this.D,this.H]);rm(this,c)}};sm.prototype.tb=function(b,c){if(null!==this.n){om(this,c);var d=b.j,e=this.coordinates.length,d=nm(this,d,0,d.length,b.B,!1);this.c.push([4,e,d,this.n,this.b,this.e,this.g,this.i,this.k,this.q,this.o,this.p,this.r,this.D,this.H]);this.a.push([4,e,d,this.U,this.b,this.e,this.g,this.i,this.k,this.q,this.o,this.p,this.r,this.D,this.H]);rm(this,c)}};sm.prototype.Kb=function(){qm(this);this.e=this.b=void 0;this.n=this.U=null;this.H=this.D=this.p=this.o=this.q=this.k=this.i=this.r=this.g=void 0};sm.prototype.ib=function(b){var c=b.wb(),d=b.gb(),e=b.Kd(1),f=b.Bb(1),g=b.Cb();this.b=c[0];this.e=c[1];this.U=e;this.n=f;this.g=d[1];this.i=b.o;this.k=g[0];this.q=g[1];this.o=b.p;this.p=b.i;this.r=b.k;this.D=b.r;this.H=d[0]};function tm(b,c,d){mm.call(this,b,c,d);this.b={Ic:void 0,Dc:void 0,Ec:null,Fc:void 0,Gc:void 0,Hc:void 0,ve:0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(tm,mm);function um(b,c,d,e,f){var g=b.coordinates.length;c=nm(b,c,d,e,f,!1);g=[8,g,c];b.c.push(g);b.a.push(g);return e}l=tm.prototype;l.re=function(){null===this.d&&(this.d=Xd(this.ca),0<this.f&&Wd(this.d,this.resolution*(this.f+1)/2,this.d));return this.d};function vm(b){var c=b.b,d=c.strokeStyle,e=c.lineCap,f=c.lineDash,g=c.lineJoin,h=c.lineWidth,k=c.miterLimit;c.Ic==d&&c.Dc==e&&gb(c.Ec,f)&&c.Fc==g&&c.Gc==h&&c.Hc==k||(c.ve!=b.coordinates.length&&(b.c.push([12]),c.ve=b.coordinates.length),b.c.push([10,d,h,e,g,k,f],[1]),c.Ic=d,c.Dc=e,c.Ec=f,c.Fc=g,c.Gc=h,c.Hc=k)}
l.Eb=function(b,c){var d=this.b,e=d.lineWidth;m(d.strokeStyle)&&m(e)&&(vm(this),om(this,c),this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash],[1]),d=b.j,um(this,d,0,d.length,b.B),this.a.push([12]),rm(this,c))};l.mc=function(b,c){var d=this.b,e=d.lineWidth;if(m(d.strokeStyle)&&m(e)){vm(this);om(this,c);this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash],[1]);var d=b.b,e=b.j,f=b.B,g=0,h,k;h=0;for(k=d.length;h<k;++h)g=um(this,e,g,d[h],f);this.a.push([12]);rm(this,c)}};l.Kb=function(){this.b.ve!=this.coordinates.length&&this.c.push([12]);qm(this);this.b=null};l.Ba=function(b,c){var d=c.a;this.b.strokeStyle=sg(null===d?tl:d);d=c.d;this.b.lineCap=m(d)?d:"round";d=c.b;this.b.lineDash=null===d?sl:d;d=c.f;this.b.lineJoin=m(d)?d:"round";d=c.c;this.b.lineWidth=m(d)?d:1;d=c.e;this.b.miterLimit=m(d)?d:10;this.b.lineWidth>this.f&&(this.f=this.b.lineWidth,this.d=null)};function wm(b,c,d){mm.call(this,b,c,d);this.b={ff:void 0,Ic:void 0,Dc:void 0,Ec:null,Fc:void 0,Gc:void 0,Hc:void 0,fillStyle:void 0,strokeStyle:void 0,lineCap:void 0,lineDash:null,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0}}v(wm,mm);function xm(b,c,d,e,f){var g=b.b,h=[1];b.c.push(h);b.a.push(h);var k,h=0;for(k=e.length;h<k;++h){var n=e[h],p=b.coordinates.length;d=nm(b,c,d,n,f,!0);d=[8,p,d];p=[3];b.c.push(d,p);b.a.push(d,p);d=n}c=[7];b.a.push(c);m(g.fillStyle)&&b.c.push(c);m(g.strokeStyle)&&(g=[12],b.c.push(g),b.a.push(g));return d}l=wm.prototype;l.lc=function(b,c){var d=this.b,e=d.strokeStyle;if(m(d.fillStyle)||m(e)){ym(this);om(this,c);this.a.push([9,sg(rl)]);m(d.strokeStyle)&&this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]);var f=b.j,e=this.coordinates.length;nm(this,f,0,f.length,b.B,!1);f=[1];e=[2,e];this.c.push(f,e);this.a.push(f,e);e=[7];this.a.push(e);m(d.fillStyle)&&this.c.push(e);m(d.strokeStyle)&&(d=[12],this.c.push(d),this.a.push(d));rm(this,c)}};l.Rb=function(b,c){var d=this.b,e=d.strokeStyle;if(m(d.fillStyle)||m(e))ym(this),om(this,c),this.a.push([9,sg(rl)]),m(d.strokeStyle)&&this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]),d=b.b,e=al(b),xm(this,e,0,d,b.B),rm(this,c)};l.nc=function(b,c){var d=this.b,e=d.strokeStyle;if(m(d.fillStyle)||m(e)){ym(this);om(this,c);this.a.push([9,sg(rl)]);m(d.strokeStyle)&&this.a.push([10,d.strokeStyle,d.lineWidth,d.lineCap,d.lineJoin,d.miterLimit,d.lineDash]);var d=b.b,e=im(b),f=b.B,g=0,h,k;h=0;for(k=d.length;h<k;++h)g=xm(this,e,g,d[h],f);rm(this,c)}};l.Kb=function(){qm(this);this.b=null;var b=this.fa;if(0!==b){var c=this.coordinates,d,e;d=0;for(e=c.length;d<e;++d)c[d]=b*Math.round(c[d]/b)}};l.re=function(){null===this.d&&(this.d=Xd(this.ca),0<this.f&&Wd(this.d,this.resolution*(this.f+1)/2,this.d));return this.d};l.Ba=function(b,c){var d=this.b;if(null===b)d.fillStyle=void 0;else{var e=b.a;d.fillStyle=sg(null===e?rl:e)}null===c?(d.strokeStyle=void 0,d.lineCap=void 0,d.lineDash=null,d.lineJoin=void 0,d.lineWidth=void 0,d.miterLimit=void 0):(e=c.a,d.strokeStyle=sg(null===e?tl:e),e=c.d,d.lineCap=m(e)?e:"round",e=c.b,d.lineDash=null===e?sl:e.slice(),e=c.f,d.lineJoin=m(e)?e:"round",e=c.c,d.lineWidth=m(e)?e:1,e=c.e,d.miterLimit=m(e)?e:10,d.lineWidth>this.f&&(this.f=d.lineWidth,this.d=null))};function ym(b){var c=b.b,d=c.fillStyle,e=c.strokeStyle,f=c.lineCap,g=c.lineDash,h=c.lineJoin,k=c.lineWidth,n=c.miterLimit;m(d)&&c.ff!=d&&(b.c.push([9,d]),c.ff=c.fillStyle);!m(e)||c.Ic==e&&c.Dc==f&&c.Ec==g&&c.Fc==h&&c.Gc==k&&c.Hc==n||(b.c.push([10,e,k,f,h,n,g]),c.Ic=e,c.Dc=f,c.Ec=g,c.Fc=h,c.Gc=k,c.Hc=n)}function zm(b,c,d){mm.call(this,b,c,d);this.D=this.r=this.p=null;this.n="";this.o=this.q=this.k=this.i=0;this.g=this.e=this.b=null}v(zm,mm);zm.prototype.vb=function(b,c,d,e,f,g){if(""!==this.n&&null!==this.g&&(null!==this.b||null!==this.e)){if(null!==this.b){f=this.b;var h=this.p;if(null===h||h.fillStyle!=f.fillStyle){var k=[9,f.fillStyle];this.c.push(k);this.a.push(k);null===h?this.p={fillStyle:f.fillStyle}:h.fillStyle=f.fillStyle}}null!==this.e&&(f=this.e,h=this.r,null===h||h.lineCap!=f.lineCap||h.lineDash!=f.lineDash||h.lineJoin!=f.lineJoin||h.lineWidth!=f.lineWidth||h.miterLimit!=f.miterLimit||h.strokeStyle!=f.strokeStyle)&&(k=[10,f.strokeStyle,f.lineWidth,f.lineCap,f.lineJoin,f.miterLimit,f.lineDash,!1],this.c.push(k),this.a.push(k),null===h?this.r={lineCap:f.lineCap,lineDash:f.lineDash,lineJoin:f.lineJoin,lineWidth:f.lineWidth,miterLimit:f.miterLimit,strokeStyle:f.strokeStyle}:(h.lineCap=f.lineCap,h.lineDash=f.lineDash,h.lineJoin=f.lineJoin,h.lineWidth=f.lineWidth,h.miterLimit=f.miterLimit,h.strokeStyle=f.strokeStyle));f=this.g;h=this.D;if(null===h||h.font!=f.font||h.textAlign!=f.textAlign||h.textBaseline!=f.textBaseline)k=[11,f.font,f.textAlign,f.textBaseline],this.c.push(k),this.a.push(k),null===h?this.D={font:f.font,textAlign:f.textAlign,textBaseline:f.textBaseline}:(h.font=f.font,h.textAlign=f.textAlign,h.textBaseline=f.textBaseline);om(this,g);f=this.coordinates.length;b=nm(this,b,c,d,e,!1);b=[5,f,b,this.n,this.i,this.k,this.q,this.o,null!==this.b,null!==this.e];this.c.push(b);this.a.push(b);rm(this,g)}};zm.prototype.Ca=function(b){if(null===b)this.n="";else{var c=b.a;null===c?this.b=null:(c=c.a,c=sg(null===c?rl:c),null===this.b?this.b={fillStyle:c}:this.b.fillStyle=c);var d=b.e;if(null===d)this.e=null;else{var c=d.a,e=d.d,f=d.b,g=d.f,h=d.c,d=d.e,e=m(e)?e:"round",f=null!=f?f.slice():sl,g=m(g)?g:"round",h=m(h)?h:1,d=m(d)?d:10,c=sg(null===c?tl:c);if(null===this.e)this.e={lineCap:e,lineDash:f,lineJoin:g,lineWidth:h,miterLimit:d,strokeStyle:c};else{var k=this.e;k.lineCap=e;k.lineDash=f;k.lineJoin=g;k.lineWidth=h;k.miterLimit=d;k.strokeStyle=c}}var n=b.d,c=b.i,e=b.k,f=b.f,h=b.c,d=b.b,g=b.g,k=b.n;b=m(n)?n:"10px sans-serif";g=m(g)?g:"center";k=m(k)?k:"middle";null===this.g?this.g={font:b,textAlign:g,textBaseline:k}:(n=this.g,n.font=b,n.textAlign=g,n.textBaseline=k);this.n=m(d)?d:"";this.i=m(c)?c:0;this.k=m(e)?e:0;this.q=m(f)?f:0;this.o=m(h)?h:1}};function Am(b,c,d,e){this.i=b;this.d=c;this.n=d;this.f=e;this.c={};this.e=Nf(1,1);this.g=Hd()}
function Bm(b){for(var c in b.c){var d=b.c[c],e;for(e in d)d[e].Kb()}}Am.prototype.b=function(b,c,d,e,f){var g=this.g;lj(g,.5,.5,1/c,-1/c,-d,-b[0],-b[1]);var h=this.e;h.clearRect(0,0,1,1);var k;m(this.f)&&(k=Sd(),Td(k,b),Wd(k,c*this.f,k));return Cm(this,h,g,d,e,function(b){if(0<h.getImageData(0,0,1,1).data[3]){if(b=f(b))return b;h.clearRect(0,0,1,1)}},k)};Am.prototype.a=function(b,c){var d=m(b)?b.toString():"0",e=this.c[d];m(e)||(e={},this.c[d]=e);d=e[c];m(d)||(d=new Dm[c](this.i,this.d,this.n),e[c]=d);return d};Am.prototype.la=function(){return wb(this.c)};function Em(b,c,d,e,f,g){var h=Sa(rb(b.c),Number);db(h);var k=b.d,n=k[0],p=k[1],q=k[2],k=k[3],n=[n,p,n,k,q,k,q,p];qk(n,0,8,2,e,n);c.save();c.beginPath();c.moveTo(n[0],n[1]);c.lineTo(n[2],n[3]);c.lineTo(n[4],n[5]);c.lineTo(n[6],n[7]);c.closePath();c.clip();for(var r,s,n=0,p=h.length;n<p;++n)for(r=b.c[h[n].toString()],q=0,k=lm.length;q<k;++q)s=r[lm[q]],m(s)&&s.bc(c,d,e,f,g);c.restore()}
function Cm(b,c,d,e,f,g,h){var k=Sa(rb(b.c),Number);db(k,function(b,c){return c-b});var n,p,q,r,s;n=0;for(p=k.length;n<p;++n)for(r=b.c[k[n].toString()],q=lm.length-1;0<=q;--q)if(s=r[lm[q]],m(s)&&(s=pm(s,c,1,d,e,f,s.a,g,h)))return s}var Dm={Image:sm,LineString:tm,Polygon:wm,Text:zm};function Fm(b){oj.call(this,b);this.r=Hd()}v(Fm,oj);Fm.prototype.q=function(b,c,d){Gm(this,"precompose",d,b,void 0);var e=this.Id();if(null!==e){var f=c.extent,g=m(f);if(g){var h=b.pixelRatio,k=je(f),n=ie(f),p=he(f),f=ge(f);nj(b.coordinateToPixelMatrix,k,k);nj(b.coordinateToPixelMatrix,n,n);nj(b.coordinateToPixelMatrix,p,p);nj(b.coordinateToPixelMatrix,f,f);d.save();d.beginPath();d.moveTo(k[0]*h,k[1]*h);d.lineTo(n[0]*h,n[1]*h);d.lineTo(p[0]*h,p[1]*h);d.lineTo(f[0]*h,f[1]*h);d.clip()}h=this.nf();k=d.globalAlpha;d.globalAlpha=c.opacity;0===b.viewState.rotation?(c=h[13],n=e.width*h[0],p=e.height*h[5],d.drawImage(e,0,0,+e.width,+e.height,Math.round(h[12]),Math.round(c),Math.round(n),Math.round(p))):(d.setTransform(h[0],h[1],h[4],h[5],h[12],h[13]),d.drawImage(e,0,0),d.setTransform(1,0,0,1,0,0));d.globalAlpha=k;g&&d.restore()}Gm(this,"postcompose",d,b,void 0)};function Gm(b,c,d,e,f){var g=b.a;jd(g,c)&&(b=m(f)?f:Hm(b,e),b=new Yl(d,e.pixelRatio,e.extent,b,e.viewState.rotation),g.dispatchEvent(new dl(c,g,b,null,e,d,null)),km(b))}
function Hm(b,c){var d=c.viewState,e=c.pixelRatio;return lj(b.r,e*c.size[0]/2,e*c.size[1]/2,e/d.resolution,-e/d.resolution,-d.rotation,-d.center[0],-d.center[1])}function Im(b,c){var d=[0,0];nj(c,b,d);return d}
var Jm=function(){var b=null,c=null;return function(d){if(null===b){b=Nf(1,1);c=b.createImageData(1,1);var e=c.data;e[0]=42;e[1]=84;e[2]=126;e[3]=255}var e=b.canvas,f=d[0]<=e.width&&d[1]<=e.height;f||(e.width=d[0],e.height=d[1],e=d[0]-1,d=d[1]-1,b.putImageData(c,e,d),d=b.getImageData(e,d,1,1),f=gb(c.data,d.data));return f}}();function Km(b,c,d){rk.call(this);this.qg(b,m(c)?c:0,d)}v(Km,rk);l=Km.prototype;l.clone=function(){var b=new Km(null);tk(b,this.a,this.j.slice());b.l();return b};l.Ya=function(b,c,d,e){var f=this.j;b-=f[0];var g=c-f[1];c=b*b+g*g;if(c<e){if(0===c)for(e=0;e<this.B;++e)d[e]=f[e];else for(e=this.Gf()/Math.sqrt(c),d[0]=f[0]+e*b,d[1]=f[1]+e*g,e=2;e<this.B;++e)d[e]=f[e];d.length=this.B;return c}return e};l.Jb=function(b,c){var d=this.j,e=b-d[0],d=c-d[1];return e*e+d*d<=Lm(this)};l.Oc=function(){return this.j.slice(0,this.B)};l.dd=function(b){var c=this.j,d=c[this.B]-c[0];return Vd(c[0]-d,c[1]-d,c[0]+d,c[1]+d,b)};l.Gf=function(){return Math.sqrt(Lm(this))};function Lm(b){var c=b.j[b.B]-b.j[0];b=b.j[b.B+1]-b.j[1];return c*c+b*b}l.O=function(){return"Circle"};l.Lj=function(b){var c=this.B,d=b.slice();d[c]=d[0]+(this.j[c]-this.j[0]);var e;for(e=1;e<c;++e)d[c+e]=b[e];tk(this,this.a,d);this.l()};l.qg=function(b,c,d){if(null===b)tk(this,"XY",null);else{uk(this,d,b,0);null===this.j&&(this.j=[]);d=this.j;b=Ek(d,b);d[b++]=d[0]+c;var e;c=1;for(e=this.B;c<e;++c)d[b++]=d[c];d.length=b}this.l()};l.Hf=function(b){this.j[this.B]=this.j[0]+b;this.l()};function Mm(b){pk.call(this);this.d=m(b)?b:null;Nm(this)}v(Mm,pk);function Om(b){var c=[],d,e;d=0;for(e=b.length;d<e;++d)c.push(b[d].clone());return c}function Pm(b){var c,d;if(null!==b.d)for(c=0,d=b.d.length;c<d;++c)Vc(b.d[c],"change",b.l,!1,b)}function Nm(b){var c,d;if(null!==b.d)for(c=0,d=b.d.length;c<d;++c)w(b.d[c],"change",b.l,!1,b)}l=Mm.prototype;l.clone=function(){var b=new Mm(null);b.rg(this.d);return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;var f=this.d,g,h;g=0;for(h=f.length;g<h;++g)e=f[g].Ya(b,c,d,e);return e};l.Jb=function(b,c){var d=this.d,e,f;e=0;for(f=d.length;e<f;++e)if(d[e].Jb(b,c))return!0;return!1};l.dd=function(b){Vd(Infinity,Infinity,-Infinity,-Infinity,b);for(var c=this.d,d=0,e=c.length;d<e;++d)de(b,c[d].J());return b};l.mf=function(){return Om(this.d)};l.te=function(b){this.i!=this.c&&(xb(this.e),this.g=0,this.i=this.c);if(0>b||0!==this.g&&b<this.g)return this;var c=b.toString();if(this.e.hasOwnProperty(c))return this.e[c];var d=[],e=this.d,f=!1,g,h;g=0;for(h=e.length;g<h;++g){var k=e[g],n=k.te(b);d.push(n);n!==k&&(f=!0)}if(f)return b=new Mm(null),Pm(b),b.d=d,Nm(b),b.l(),this.e[c]=b;this.g=b;return this};l.O=function(){return"GeometryCollection"};l.ja=function(b){var c=this.d,d,e;d=0;for(e=c.length;d<e;++d)if(c[d].ja(b))return!0;return!1};l.la=function(){return 0==this.d.length};l.rg=function(b){b=Om(b);Pm(this);this.d=b;Nm(this);this.l()};l.ra=function(b){var c=this.d,d,e;d=0;for(e=c.length;d<e;++d)c[d].ra(b);this.l()};l.Ia=function(b,c){var d=this.d,e,f;e=0;for(f=d.length;e<f;++e)d[e].Ia(b,c);this.l()};l.P=function(){Pm(this);Mm.T.P.call(this)};function Qm(b,c,d,e,f){var g=NaN,h=NaN,k=(d-c)/e;if(0!==k)if(1==k)g=b[c],h=b[c+1];else if(2==k)g=.5*b[c]+.5*b[c+e],h=.5*b[c+1]+.5*b[c+e+1];else{var h=b[c],k=b[c+1],n=0,g=[0],p;for(p=c+e;p<d;p+=e){var q=b[p],r=b[p+1],n=n+Math.sqrt((q-h)*(q-h)+(r-k)*(r-k));g.push(n);h=q;k=r}d=.5*n;for(var s,h=fb,k=0,n=g.length;k<n;)p=k+n>>1,q=h(d,g[p]),0<q?k=p+1:(n=p,s=!q);s=s?k:~k;0>s?(d=(d-g[-s-2])/(g[-s-1]-g[-s-2]),c+=(-s-2)*e,g=Xb(b[c],b[c+e],d),h=Xb(b[c+1],b[c+e+1],d)):(g=b[c+s*e],h=b[c+s*e+1])}return null!=f?(f[0]=g,f[1]=h,f):[g,h]}function Rm(b,c,d,e,f,g){if(d==c)return null;if(f<b[c+e-1])return g?(d=b.slice(c,c+e),d[e-1]=f,d):null;if(b[d-1]<f)return g?(d=b.slice(d-e,d),d[e-1]=f,d):null;if(f==b[c+e-1])return b.slice(c,c+e);c/=e;for(d/=e;c<d;)g=c+d>>1,f<b[(g+1)*e-1]?d=g:c=g+1;d=b[c*e-1];if(f==d)return b.slice((c-1)*e,(c-1)*e+e);g=(f-d)/(b[(c+1)*e-1]-d);d=[];var h;for(h=0;h<e-1;++h)d.push(Xb(b[(c-1)*e+h],b[c*e+h],g));d.push(f);return d}
function Sm(b,c,d,e,f,g){var h=0;if(g)return Rm(b,h,c[c.length-1],d,e,f);if(e<b[d-1])return f?(b=b.slice(0,d),b[d-1]=e,b):null;if(b[b.length-1]<e)return f?(b=b.slice(b.length-d),b[d-1]=e,b):null;f=0;for(g=c.length;f<g;++f){var k=c[f];if(h!=k){if(e<b[h+d-1])break;if(e<=b[k-1])return Rm(b,h,k,d,e,!1);h=k}}return null};function Tm(b,c){rk.call(this);this.b=null;this.o=this.p=this.n=-1;this.W(b,c)}v(Tm,rk);l=Tm.prototype;l.hh=function(b){null===this.j?this.j=b.slice():ab(this.j,b);this.l()};l.clone=function(){var b=new Tm(null);Um(b,this.a,this.j.slice());return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;this.o!=this.c&&(this.p=Math.sqrt(Ak(this.j,0,this.j.length,this.B,0)),this.o=this.c);return Ck(this.j,0,this.j.length,this.B,this.p,!1,b,c,d,e)};l.xh=function(b,c){return Tk(this.j,0,this.j.length,this.B,b,c)};l.Mj=function(b,c){return"XYM"!=this.a&&"XYZM"!=this.a?null:Rm(this.j,0,this.j.length,this.B,b,m(c)?c:!1)};l.Q=function(){return Hk(this.j,0,this.j.length,this.B)};l.If=function(){var b=this.j,c=this.B,d=b[0],e=b[1],f=0,g;for(g=0+c;g<this.j.length;g+=c)var h=b[g],k=b[g+1],f=f+Math.sqrt((h-d)*(h-d)+(k-e)*(k-e)),d=h,e=k;return f};function fm(b){b.n!=b.c&&(b.b=Qm(b.j,0,b.j.length,b.B,b.b),b.n=b.c);return b.b}
l.oc=function(b){var c=[];c.length=Jk(this.j,0,this.j.length,this.B,b,c,0);b=new Tm(null);Um(b,"XY",c);return b};l.O=function(){return"LineString"};l.ja=function(b){return Uk(this.j,0,this.j.length,this.B,b)};l.W=function(b,c){null===b?Um(this,"XY",null):(uk(this,c,b,1),null===this.j&&(this.j=[]),this.j.length=Fk(this.j,0,b,this.B),this.l())};function Um(b,c,d){tk(b,c,d);b.l()};function Vm(b,c){rk.call(this);this.b=[];this.n=this.o=-1;this.W(b,c)}v(Vm,rk);l=Vm.prototype;l.ih=function(b){null===this.j?this.j=b.j.slice():ab(this.j,b.j.slice());this.b.push(this.j.length);this.l()};l.clone=function(){var b=new Vm(null);Wm(b,this.a,this.j.slice(),this.b.slice());return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;this.n!=this.c&&(this.o=Math.sqrt(Bk(this.j,0,this.b,this.B,0)),this.n=this.c);return Dk(this.j,0,this.b,this.B,this.o,!1,b,c,d,e)};l.Oj=function(b,c,d){return"XYM"!=this.a&&"XYZM"!=this.a||0===this.j.length?null:Sm(this.j,this.b,this.B,b,m(c)?c:!1,m(d)?d:!1)};l.Q=function(){return Ik(this.j,0,this.b,this.B)};l.Ph=function(b){if(0>b||this.b.length<=b)return null;var c=new Tm(null);Um(c,this.a,this.j.slice(0===b?0:this.b[b-1],this.b[b]));return c};l.Lc=function(){var b=this.j,c=this.b,d=this.a,e=[],f=0,g,h;g=0;for(h=c.length;g<h;++g){var k=c[g],n=new Tm(null);Um(n,d,b.slice(f,k));e.push(n);f=k}return e};function hm(b){var c=[],d=b.j,e=0,f=b.b;b=b.B;var g,h;g=0;for(h=f.length;g<h;++g){var k=f[g],e=Qm(d,e,k,b);ab(c,e);e=k}return c}l.oc=function(b){var c=[],d=[],e=this.j,f=this.b,g=this.B,h=0,k=0,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],k=Jk(e,h,q,g,b,c,k);d.push(k);h=q}c.length=k;b=new Vm(null);Wm(b,"XY",c,d);return b};l.O=function(){return"MultiLineString"};l.ja=function(b){a:{var c=this.j,d=this.b,e=this.B,f=0,g,h;g=0;for(h=d.length;g<h;++g){if(Uk(c,f,d[g],e,b)){b=!0;break a}f=d[g]}b=!1}return b};l.W=function(b,c){if(null===b)Wm(this,"XY",null,this.b);else{uk(this,c,b,2);null===this.j&&(this.j=[]);var d=Gk(this.j,0,b,this.B,this.b);this.j.length=0===d.length?0:d[d.length-1];this.l()}};function Wm(b,c,d,e){tk(b,c,d);b.b=e;b.l()}function Xm(b,c){var d="XY",e=[],f=[],g,h;g=0;for(h=c.length;g<h;++g){var k=c[g];0===g&&(d=k.a);ab(e,k.j);f.push(e.length)}Wm(b,d,e,f)};function Ym(b,c){rk.call(this);this.W(b,c)}v(Ym,rk);l=Ym.prototype;l.kh=function(b){null===this.j?this.j=b.j.slice():ab(this.j,b.j);this.l()};l.clone=function(){var b=new Ym(null);tk(b,this.a,this.j.slice());b.l();return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;var f=this.j,g=this.B,h,k,n;h=0;for(k=f.length;h<k;h+=g)if(n=yk(b,c,f[h],f[h+1]),n<e){e=n;for(n=0;n<g;++n)d[n]=f[h+n];d.length=g}return e};l.Q=function(){return Hk(this.j,0,this.j.length,this.B)};l.Zh=function(b){var c=null===this.j?0:this.j.length/this.B;if(0>b||c<=b)return null;c=new Nk(null);Ok(c,this.a,this.j.slice(b*this.B,(b+1)*this.B));return c};l.Gd=function(){var b=this.j,c=this.a,d=this.B,e=[],f,g;f=0;for(g=b.length;f<g;f+=d){var h=new Nk(null);Ok(h,c,b.slice(f,f+d));e.push(h)}return e};l.O=function(){return"MultiPoint"};l.ja=function(b){var c=this.j,d=this.B,e,f,g,h;e=0;for(f=c.length;e<f;e+=d)if(g=c[e],h=c[e+1],$d(b,g,h))return!0;return!1};l.W=function(b,c){null===b?tk(this,"XY",null):(uk(this,c,b,1),null===this.j&&(this.j=[]),this.j.length=Fk(this.j,0,b,this.B));this.l()};function Zm(b,c){rk.call(this);this.b=[];this.o=-1;this.p=null;this.H=this.r=this.D=-1;this.n=null;this.W(b,c)}v(Zm,rk);l=Zm.prototype;l.lh=function(b){if(null===this.j)this.j=b.j.slice(),b=b.b.slice(),this.b.push();else{var c=this.j.length;ab(this.j,b.j);b=b.b.slice();var d,e;d=0;for(e=b.length;d<e;++d)b[d]+=c}this.b.push(b);this.l()};l.clone=function(){var b=new Zm(null);$m(b,this.a,this.j.slice(),this.b.slice());return b};l.Ya=function(b,c,d,e){if(e<Yd(this.J(),b,c))return e;if(this.r!=this.c){var f=this.b,g=0,h=0,k,n;k=0;for(n=f.length;k<n;++k)var p=f[k],h=Bk(this.j,g,p,this.B,h),g=p[p.length-1];this.D=Math.sqrt(h);this.r=this.c}f=im(this);g=this.b;h=this.B;k=this.D;n=0;var p=m(void 0)?void 0:[NaN,NaN],q,r;q=0;for(r=g.length;q<r;++q){var s=g[q];e=Dk(f,n,s,h,k,!0,b,c,d,e,p);n=s[s.length-1]}return e};l.Jb=function(b,c){var d;a:{d=im(this);var e=this.b,f=0;if(0!==e.length){var g,h;g=0;for(h=e.length;g<h;++g){var k=e[g];if(Rk(d,f,k,this.B,b,c)){d=!0;break a}f=k[k.length-1]}}d=!1}return d};l.Pj=function(){var b=im(this),c=this.b,d=0,e=0,f,g;f=0;for(g=c.length;f<g;++f)var h=c[f],e=e+wk(b,d,h,this.B),d=h[h.length-1];return e};l.Q=function(b){var c;m(b)?(c=im(this).slice(),Zk(c,this.b,this.B,b)):c=this.j;b=c;c=this.b;var d=this.B,e=0,f=m(void 0)?void 0:[],g=0,h,k;h=0;for(k=c.length;h<k;++h){var n=c[h];f[g++]=Ik(b,e,n,d,f[g]);e=n[n.length-1]}f.length=g;return f};function jm(b){if(b.o!=b.c){var c=b.j,d=b.b,e=b.B,f=0,g=[],h,k,n=Sd();h=0;for(k=d.length;h<k;++h){var p=d[h],n=ee(Vd(Infinity,Infinity,-Infinity,-Infinity,void 0),c,f,p[0],e);g.push((n[0]+n[2])/2,(n[1]+n[3])/2);f=p[p.length-1]}c=im(b);d=b.b;e=b.B;f=0;h=[];k=0;for(n=d.length;k<n;++k)p=d[k],h=Sk(c,f,p,e,g,2*k,h),f=p[p.length-1];b.p=h;b.o=b.c}return b.p}l.Mh=function(){var b=new Ym(null),c=jm(this).slice();tk(b,"XY",c);b.l();return b};function im(b){if(b.H!=b.c){var c=b.j,d;a:{d=b.b;var e,f;e=0;for(f=d.length;e<f;++e)if(!Xk(c,d[e],b.B,void 0)){d=!1;break a}d=!0}d?b.n=c:(b.n=c.slice(),b.n.length=Zk(b.n,b.b,b.B));b.H=b.c}return b.n}l.oc=function(b){var c=[],d=[],e=this.j,f=this.b,g=this.B;b=Math.sqrt(b);var h=0,k=0,n,p;n=0;for(p=f.length;n<p;++n){var q=f[n],r=[],k=Kk(e,h,q,g,b,c,k,r);d.push(r);h=q[q.length-1]}c.length=k;e=new Zm(null);$m(e,"XY",c,d);return e};l.ai=function(b){if(0>b||this.b.length<=b)return null;var c;0===b?c=0:(c=this.b[b-1],c=c[c.length-1]);b=this.b[b].slice();var d=b[b.length-1];if(0!==c){var e,f;e=0;for(f=b.length;e<f;++e)b[e]-=c}e=new F(null);$k(e,this.a,this.j.slice(c,d),b);return e};l.qd=function(){var b=this.a,c=this.j,d=this.b,e=[],f=0,g,h,k,n;g=0;for(h=d.length;g<h;++g){var p=d[g].slice(),q=p[p.length-1];if(0!==f)for(k=0,n=p.length;k<n;++k)p[k]-=f;k=new F(null);$k(k,b,c.slice(f,q),p);e.push(k);f=q}return e};l.O=function(){return"MultiPolygon"};l.ja=function(b){a:{var c=im(this),d=this.b,e=this.B,f=0,g,h;g=0;for(h=d.length;g<h;++g){var k=d[g];if(Vk(c,f,k,e,b)){b=!0;break a}f=k[k.length-1]}b=!1}return b};l.W=function(b,c){if(null===b)$m(this,"XY",null,this.b);else{uk(this,c,b,3);null===this.j&&(this.j=[]);var d=this.j,e=this.B,f=this.b,g=0,f=m(f)?f:[],h=0,k,n;k=0;for(n=b.length;k<n;++k)g=Gk(d,g,b[k],e,f[h]),f[h++]=g,g=g[g.length-1];f.length=h;0===f.length?this.j.length=0:(d=f[f.length-1],this.j.length=0===d.length?0:d[d.length-1]);this.l()}};function $m(b,c,d,e){tk(b,c,d);b.b=e;b.l()}function an(b,c){var d="XY",e=[],f=[],g,h,k;g=0;for(h=c.length;g<h;++g){var n=c[g];0===g&&(d=n.a);var p=e.length;k=n.b;var q,r;q=0;for(r=k.length;q<r;++q)k[q]+=p;ab(e,n.j);f.push(k)}$m(b,d,e,f)};function bn(b,c){return ma(b)-ma(c)}function cn(b,c){var d=.5*b/c;return d*d}function dn(b,c,d,e,f,g){var h=!1,k,n;k=d.e;null!==k&&(n=k.Pc(),2==n||3==n?k.Ne(f,g):(0==n&&k.load(),k.we(f,g),h=!0));f=(0,d.d)(c);null!=f&&(e=f.te(e),(0,en[e.O()])(b,e,d,c));return h}
var en={Point:function(b,c,d,e){var f=d.e;if(null!==f){if(2!=f.Pc())return;var g=b.a(d.a,"Image");g.ib(f);g.ub(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),b.vb(c.Q(),0,2,2,c,e))},LineString:function(b,c,d,e){var f=d.b;if(null!==f){var g=b.a(d.a,"LineString");g.Ba(null,f);g.Eb(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),b.vb(fm(c),0,2,2,c,e))},Polygon:function(b,c,d,e){var f=d.f,g=d.b;if(null!==f||null!==g){var h=b.a(d.a,"Polygon");h.Ba(f,g);h.Rb(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),b.vb(bl(c),0,2,2,c,e))},MultiPoint:function(b,c,d,e){var f=d.e;if(null!==f){if(2!=f.Pc())return;var g=b.a(d.a,"Image");g.ib(f);g.tb(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),d=c.j,b.vb(d,0,d.length,c.B,c,e))},MultiLineString:function(b,c,d,e){var f=d.b;if(null!==f){var g=b.a(d.a,"LineString");g.Ba(null,f);g.mc(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),d=hm(c),b.vb(d,0,d.length,2,c,e))},MultiPolygon:function(b,c,d,e){var f=d.f,g=d.b;if(null!==g||null!==f){var h=b.a(d.a,"Polygon");h.Ba(f,g);h.nc(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),d=jm(c),b.vb(d,0,d.length,2,c,e))},GeometryCollection:function(b,c,d,e){c=c.d;var f,g;f=0;for(g=c.length;f<g;++f)(0,en[c[f].O()])(b,c[f],d,e)},Circle:function(b,c,d,e){var f=d.f,g=d.b;if(null!==f||null!==g){var h=b.a(d.a,"Polygon");h.Ba(f,g);h.lc(c,e)}f=d.c;null!==f&&(b=b.a(d.a,"Text"),b.Ca(f),b.vb(c.Oc(),0,2,2,c,e))}};function fn(b,c,d,e,f){kj.call(this,b,c,d,2,e);this.c=f}v(fn,kj);fn.prototype.a=function(){return this.c};function gn(b){ah.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection,state:b.state});this.i=m(b.resolutions)?b.resolutions:null}v(gn,ah);function hn(b,c){if(null!==b.i){var d=ac(b.i,c,0);c=b.i[d]}return c}gn.prototype.r=function(b){b=b.target;switch(b.state){case 1:this.dispatchEvent(new jn(kn,b));break;case 2:this.dispatchEvent(new jn(ln,b));break;case 3:this.dispatchEvent(new jn(mn,b))}};function nn(b,c){b.a().src=c}
function jn(b,c){qc.call(this,b);this.image=c}v(jn,qc);var kn="imageloadstart",ln="imageloadend",mn="imageloaderror";function on(b){gn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions,state:m(b.state)?b.state:void 0});this.N=b.canvasFunction;this.p=null;this.H=0;this.S=m(b.ratio)?b.ratio:1.5}v(on,gn);on.prototype.sc=function(b,c,d,e){c=hn(this,c);var f=this.p;if(null!==f&&this.H==this.c&&f.resolution==c&&f.f==d&&Zd(f.J(),b))return f;b=b.slice();se(b,this.S);e=this.N(b,c,d,[qe(b)/c*d,ne(b)/c*d],e);null===e||(f=new fn(b,c,d,this.f,e));this.p=f;this.H=this.c;return f};var pn;(function(){var b={kf:{}};(function(){function c(b,d){if(!(this instanceof c))return new c(b,d);this.ie=Math.max(4,b||9);this.Ye=Math.max(2,Math.ceil(.4*this.ie));d&&this.dh(d);this.clear()}function d(b,c){b.bbox=e(b,0,b.children.length,c)}function e(b,c,d,e){for(var g=[Infinity,Infinity,-Infinity,-Infinity],h;c<d;c++)h=b.children[c],f(g,b.za?e(h):h.bbox);return g}function f(b,c){b[0]=Math.min(b[0],c[0]);b[1]=Math.min(b[1],c[1]);b[2]=Math.max(b[2],c[2]);b[3]=Math.max(b[3],c[3])}function g(b,c){return b.bbox[0]-
c.bbox[0]}function h(b,c){return b.bbox[1]-c.bbox[1]}function k(b){return(b[2]-b[0])*(b[3]-b[1])}function n(b){return b[2]-b[0]+(b[3]-b[1])}function p(b,c){return b[0]<=c[0]&&b[1]<=c[1]&&c[2]<=b[2]&&c[3]<=b[3]}function q(b,c){return c[0]<=b[2]&&c[1]<=b[3]&&c[2]>=b[0]&&c[3]>=b[1]}function r(b,c,d,e,f){for(var g=[c,d],h;g.length;)d=g.pop(),c=g.pop(),d-c<=e||(h=c+Math.ceil((d-c)/e/2)*e,s(b,c,d,h,f),g.push(c,h,h,d))}function s(b,c,d,e,f){for(var g,h,k,n,p;d>c;){600<d-c&&(g=d-c+1,h=e-c+1,k=Math.log(g),n=.5*Math.exp(2*k/3),p=.5*Math.sqrt(k*n*(g-n)/g)*(0>h-g/2?-1:1),k=Math.max(c,Math.floor(e-h*n/g+p)),h=Math.min(d,Math.floor(e+(g-h)*n/g+p)),s(b,k,h,e,f));g=b[e];h=c;n=d;u(b,c,e);for(0<f(b[d],g)&&u(b,c,d);h<n;){u(b,h,n);h++;for(n--;0>f(b[h],g);)h++;for(;0<f(b[n],g);)n--}0===f(b[c],g)?u(b,c,n):(n++,u(b,n,d));n<=e&&(c=n+1);e<=n&&(d=n-1)}}function u(b,c,d){var e=b[c];b[c]=b[d];b[d]=e}c.prototype={all:function(){return this.Ue(this.data,[])},search:function(b){var c=this.data,d=[],e=this.Ka;if(!q(b,c.bbox))return d;for(var f=[],g,h,k,n;c;){g=0;for(h=c.children.length;g<h;g++)k=c.children[g],n=c.za?e(k):k.bbox,q(b,n)&&(c.za?d.push(k):p(b,n)?this.Ue(k,d):f.push(k));c=f.pop()}return d},load:function(b){if(!b||!b.length)return this;if(b.length<this.Ye){for(var c=0,d=b.length;c<d;c++)this.ta(b[c]);return this}b=this.We(b.slice(),0,b.length-1,0);this.data.children.length?this.data.height===b.height?this.Ze(this.data,b):(this.data.height<b.height&&(c=this.data,this.data=b,b=c),this.Xe(b,this.data.height-b.height-1,!0)):this.data=b;return this},ta:function(b){b&&this.Xe(b,this.data.height-1);return this},clear:function(){this.data={children:[],height:1,bbox:[Infinity,Infinity,-Infinity,-Infinity],za:!0};return this},remove:function(b){if(!b)return this;for(var c=this.data,d=this.Ka(b),e=[],f=[],g,h,k,n;c||e.length;){c||(c=e.pop(),h=e[e.length-1],g=f.pop(),n=!0);if(c.za&&(k=c.children.indexOf(b),-1!==k)){c.children.splice(k,1);e.push(c);this.bh(e);break}n||c.za||!p(c.bbox,d)?h?(g++,c=h.children[g],n=!1):c=null:(e.push(c),f.push(g),g=0,h=c,c=c.children[0])}return this},Ka:function(b){return b},le:function(b,c){return b[0]-c[0]},me:function(b,c){return b[1]-c[1]},toJSON:function(){return this.data},Ue:function(b,c){for(var d=[];b;)b.za?c.push.apply(c,b.children):d.push.apply(d,b.children),b=d.pop();return c},We:function(b,c,e,f){var g=e-c+1,h=this.ie,k;if(g<=h)return k={children:b.slice(c,e+1),height:1,bbox:null,za:!0},d(k,this.Ka),k;f||(f=Math.ceil(Math.log(g)/Math.log(h)),h=Math.ceil(g/Math.pow(h,f-1)));k={children:[],height:f,bbox:null};var g=Math.ceil(g/h),h=g*Math.ceil(Math.sqrt(h)),n,p,q;for(r(b,c,e,h,this.le);c<=e;c+=h)for(p=Math.min(c+h-1,e),r(b,c,p,g,this.me),n=c;n<=p;n+=g)q=Math.min(n+g-1,p),k.children.push(this.We(b,n,q,f-1));d(k,this.Ka);return k},ah:function(b,c,d,e){for(var f,g,h,n,p,q,r,s;;){e.push(c);if(c.za||e.length-1===d)break;r=s=Infinity;f=0;for(g=c.children.length;f<g;f++){h=c.children[f];p=k(h.bbox);q=b;var u=h.bbox;q=(Math.max(u[2],q[2])-Math.min(u[0],q[0]))*(Math.max(u[3],q[3])-Math.min(u[1],q[1]))-p;q<s?(s=q,r=p<r?p:r,n=h):q===s&&p<r&&(r=p,n=h)}c=n}return c},Xe:function(b,c,d){var e=this.Ka;d=d?b.bbox:e(b);var e=[],g=this.ah(d,this.data,c,e);g.children.push(b);for(f(g.bbox,d);0<=c;)if(e[c].children.length>this.ie)this.eh(e,c),c--;else break;this.Yg(d,e,c)},eh:function(b,c){var e=b[c],f=e.children.length,g=this.Ye;this.Zg(e,g,f);f={children:e.children.splice(this.$g(e,g,f)),height:e.height};e.za&&(f.za=!0);d(e,this.Ka);d(f,this.Ka);c?b[c-1].children.push(f):this.Ze(e,f)},Ze:function(b,c){this.data={children:[b,c],height:b.height+1};d(this.data,this.Ka)},$g:function(b,c,d){var f,g,h,n,p,q,r;p=q=Infinity;for(f=c;f<=d-c;f++){g=e(b,0,f,this.Ka);h=e(b,f,d,this.Ka);var s=g,u=h;n=Math.max(s[0],u[0]);var Ma=Math.max(s[1],u[1]),sb=Math.min(s[2],u[2]),s=Math.min(s[3],u[3]);n=Math.max(0,sb-n)*Math.max(0,s-Ma);g=k(g)+k(h);n<p?(p=n,r=f,q=g<q?g:q):n===p&&g<q&&(q=g,r=f)}return r},Zg:function(b,c,d){var e=b.za?this.le:g,f=b.za?this.me:h,k=this.Ve(b,c,d,e);c=this.Ve(b,c,d,f);k<c&&b.children.sort(e)},Ve:function(b,c,d,g){b.children.sort(g);g=this.Ka;var h=e(b,0,c,g),k=e(b,d-c,d,g),p=n(h)+n(k),q,r;for(q=c;q<d-c;q++)r=b.children[q],f(h,b.za?g(r):r.bbox),p+=n(h);for(q=d-c-1;q>=c;q--)r=b.children[q],f(k,b.za?g(r):r.bbox),p+=n(k);return p},Yg:function(b,c,d){for(;0<=d;d--)f(c[d].bbox,b)},bh:function(b){for(var c=b.length-1,e;0<=c;c--)0===b[c].children.length?0<c?(e=b[c-1].children,e.splice(e.indexOf(b[c]),1)):this.clear():d(b[c],this.Ka)},dh:function(b){var c=["return a"," - b",";"];this.le=new Function("a","b",c.join(b[0]));this.me=new Function("a","b",c.join(b[1]));this.Ka=new Function("a","return [a"+b.join(", a")+"];")}};"function"===typeof define&&define.Pm?define("rbush",function(){return c}):"undefined"!==typeof b?b.kf=c:"undefined"!==typeof self?self.a=c:window.a=c})();pn=b.kf})();function qn(b){this.c=pn(b);this.a={}}l=qn.prototype;l.ta=function(b,c){var d=[b[0],b[1],b[2],b[3],c];this.c.ta(d);this.a[ma(c)]=d};l.load=function(b,c){for(var d=Array(c.length),e=0,f=c.length;e<f;e++){var g=b[e],h=c[e],g=[g[0],g[1],g[2],g[3],h];d[e]=g;this.a[ma(h)]=g}this.c.load(d)};l.remove=function(b){b=ma(b);var c=this.a[b];yb(this.a,b);return null!==this.c.remove(c)};l.update=function(b,c){var d=ma(c);ce(this.a[d].slice(0,4),b)||(this.remove(c),this.ta(b,c))};function rn(b){b=b.c.all();return Sa(b,function(b){return b[4]})}function sn(b,c){var d=b.c.search(c);return Sa(d,function(b){return b[4]})}l.forEach=function(b,c){return tn(rn(this),b,c)};function un(b,c,d,e){return tn(sn(b,c),d,e)}function tn(b,c,d){for(var e,f=0,g=b.length;f<g&&!(e=c.call(d,b[f]));f++);return e}l.la=function(){return wb(this.a)};l.clear=function(){this.c.clear();this.a={}};l.J=function(){return this.c.data.bbox};function vn(b){b=m(b)?b:{};ah.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,state:m(b.state)?b.state:void 0});this.b=new qn;this.d={};this.g={};this.i={};this.k={};m(b.features)&&this.lb(b.features)}v(vn,ah);l=vn.prototype;l.Va=function(b){var c=ma(b).toString();wn(this,c,b);var d=b.R();null!=d?(d=d.J(),this.b.ta(d,b)):this.d[c]=b;xn(this,c,b);this.dispatchEvent(new yn("addfeature",b));this.l()};function wn(b,c,d){b.k[c]=[w(d,"change",b.Qf,!1,b),w(d,"propertychange",b.Qf,!1,b)]}function xn(b,c,d){var e=d.aa;m(e)?b.g[e.toString()]=d:b.i[c]=d}l.Ga=function(b){this.lb(b);this.l()};l.lb=function(b){var c,d,e,f,g=[],h=[];d=0;for(e=b.length;d<e;d++){f=b[d];c=ma(f).toString();wn(this,c,f);var k=f.R();null!=k?(c=k.J(),g.push(c),h.push(f)):this.d[c]=f}this.b.load(g,h);d=0;for(e=b.length;d<e;d++)f=b[d],c=ma(f).toString(),xn(this,c,f),this.dispatchEvent(new yn("addfeature",f))};l.clear=function(b){if(b){for(var c in this.k)Qa(this.k[c],Wc);this.k={};this.g={};this.i={}}else b=this.mg,this.b.forEach(b,this),mb(this.d,b,this);this.b.clear();this.d={};this.dispatchEvent(new yn("clear"));this.l()};l.$a=function(b,c){return this.b.forEach(b,c)};function zn(b,c,d){b.wa([c[0],c[1],c[0],c[1]],function(b){if(b.R().Jb(c[0],c[1]))return d.call(void 0,b)})}l.wa=function(b,c,d){return un(this.b,b,c,d)};l.Fb=function(b,c,d,e){return this.wa(b,d,e)};l.Ma=function(b,c,d){return this.wa(b,function(e){if(e.R().ja(b)&&(e=c.call(d,e)))return e})};l.Aa=function(){var b=rn(this.b);wb(this.d)||ab(b,qb(this.d));return b};l.Oa=function(b){var c=[];zn(this,b,function(b){c.push(b)});return c};l.ab=function(b){var c=b[0],d=b[1],e=null,f=[NaN,NaN],g=Infinity,h=[-Infinity,-Infinity,Infinity,Infinity];un(this.b,h,function(b){var n=b.R(),p=g;g=n.Ya(c,d,f,g);g<p&&(e=b,b=Math.sqrt(g),h[0]=c-b,h[1]=d-b,h[2]=c+b,h[3]=d+b)});return e};l.J=function(){return this.b.J()};l.Na=function(b){b=this.g[b.toString()];return m(b)?b:null};l.Qf=function(b){b=b.target;var c=ma(b).toString(),d=b.R();null!=d?(d=d.J(),c in this.d?(delete this.d[c],this.b.ta(d,b)):this.b.update(d,b)):c in this.d||(this.b.remove(b),this.d[c]=b);d=b.aa;m(d)?(d=d.toString(),c in this.i?(delete this.i[c],this.g[d]=b):this.g[d]!==b&&(An(this,b),this.g[d]=b)):c in this.i||(An(this,b),this.i[c]=b);this.l();this.dispatchEvent(new yn("changefeature",b))};l.la=function(){return this.b.la()&&wb(this.d)};l.Hb=ca;l.fb=function(b){var c=ma(b).toString();c in this.d?delete this.d[c]:this.b.remove(b);this.mg(b);this.l()};l.mg=function(b){var c=ma(b).toString();Qa(this.k[c],Wc);delete this.k[c];var d=b.aa;m(d)?delete this.g[d.toString()]:delete this.i[c];this.dispatchEvent(new yn("removefeature",b))};function An(b,c){for(var d in b.g)if(b.g[d]===c){delete b.g[d];break}}function yn(b,c){qc.call(this,b);this.feature=c}v(yn,qc);function Bn(b){this.a=b.source;this.U=Hd();this.b=Nf();this.d=[0,0];this.k=null;on.call(this,{attributions:b.attributions,canvasFunction:ra(this.mh,this),logo:b.logo,projection:b.projection,ratio:b.ratio,resolutions:b.resolutions,state:this.a.q});this.o=null;this.g=void 0;this.Nf(b.style);w(this.a,"change",this.gk,void 0,this)}v(Bn,on);l=Bn.prototype;l.mh=function(b,c,d,e,f){var g=new Am(.5*c/d,b,c);this.a.Hb(b,c,f);var h=!1;this.a.Fb(b,c,function(b){var e;if(!(e=h)){var f;m(b.a)?f=b.a.call(b,c):m(this.g)&&(f=this.g(b,c));if(null!=f){var q,r=!1;e=0;for(q=f.length;e<q;++e)r=dn(g,b,f[e],cn(c,d),this.fk,this)||r;e=r}else e=!1}h=e},this);Bm(g);if(h)return null;this.d[0]!=e[0]||this.d[1]!=e[1]?(this.b.canvas.width=e[0],this.b.canvas.height=e[1],this.d[0]=e[0],this.d[1]=e[1]):this.b.clearRect(0,0,e[0],e[1]);b=Cn(this,ke(b),c,d,e);Em(g,this.b,d,b,0,{});this.k=g;return this.b.canvas};l.Jd=function(b,c,d,e,f){if(null!==this.k){var g={};return this.k.b(b,c,0,e,function(b){var c=ma(b).toString();if(!(c in g))return g[c]=!0,f(b)})}};l.ck=function(){return this.a};l.dk=function(){return this.o};l.ek=function(){return this.g};function Cn(b,c,d,e,f){return lj(b.U,f[0]/2,f[1]/2,e/d,-e/d,0,-c[0],-c[1])}l.fk=function(){this.l()};l.gk=function(){bh(this,this.a.q)};l.Nf=function(b){this.o=m(b)?b:zl;this.g=null===b?void 0:yl(this.o);this.l()};function Dn(b){Fm.call(this,b);this.f=null;this.e=Hd();this.b=this.d=null}v(Dn,Fm);l=Dn.prototype;l.Ua=function(b,c,d,e){var f=this.a;return f.a().Jd(b,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(b){return d.call(e,b,f)})};l.cc=function(b,c,d,e){if(!fa(this.Id()))if(this.a.a()instanceof Bn){if(b=b.slice(),nj(c.pixelToCoordinateMatrix,b,b),this.Ua(b,c,bd,this))return d.call(e,this.a)}else if(null===this.d&&(this.d=Hd(),Nd(this.e,this.d)),c=Im(b,this.d),null===this.b&&(this.b=Nf(1,1)),this.b.clearRect(0,0,1,1),this.b.drawImage(this.Id(),c[0],c[1],1,1,0,0,1,1),0<this.b.getImageData(0,0,1,1).data[3])return d.call(e,this.a)};l.Id=function(){return null===this.f?null:this.f.a()};l.nf=function(){return this.e};l.ze=function(b,c){var d=b.pixelRatio,e=b.viewState,f=e.center,g=e.resolution,h=e.rotation,k,n=this.a.a(),p=b.viewHints;k=b.extent;m(c.extent)&&(k=oe(k,c.extent));p[0]||p[1]||re(k)||(e=e.projection,p=n.e,null===p||(e=p),k=n.sc(k,g,d,e),null!==k&&rj(this,k)&&(this.f=k));if(null!==this.f){k=this.f;var e=k.J(),p=k.resolution,q=k.f,g=d*p/(g*q);lj(this.e,d*b.size[0]/2,d*b.size[1]/2,g,g,h,q*(e[0]-f[0])/p,q*(f[1]-e[3])/p);this.d=null;tj(b.attributions,k.e);uj(b,n)}return!0};function En(b){Fm.call(this,b);this.b=this.e=null;this.i=!1;this.g=null;this.k=Hd();this.f=null;this.p=this.o=NaN;this.n=this.d=null}v(En,Fm);En.prototype.Id=function(){return this.e};En.prototype.nf=function(){return this.k};En.prototype.ze=function(b,c){var d=b.pixelRatio,e=b.viewState,f=e.projection,g=this.a,h=g.a(),k=rh(h,f),n=h.jd(),p=jh(k,e.resolution),q=h.Xb(p,b.pixelRatio,f),r=k.na(p),s=r/(q/k.pa(p)),u=e.center,y;r==e.resolution?(u=wj(u,r,b.size),y=me(u,r,e.rotation,b.size)):y=b.extent;m(c.extent)&&(y=oe(y,c.extent));if(re(y))return!1;var z=gh(k,y,r),A=q*of(z),E=q*(z.c-z.b+1),x,Q;null===this.e?(Q=Nf(A,E),this.e=Q.canvas,this.b=[A,E],this.g=Q,this.i=!Jm(this.b)):(x=this.e,Q=this.g,this.b[0]<A||this.b[1]<E||this.p!==q||this.i&&(this.b[0]>A||this.b[1]>E)?(x.width=A,x.height=E,this.b=[A,E],this.i=!Jm(this.b),this.d=null):(A=this.b[0],E=this.b[1],(x=p!=this.o)||(x=this.d,x=!(x.a<=z.a&&z.d<=x.d&&x.b<=z.b&&z.c<=x.c)),x&&(this.d=null)));var N,L;null===this.d?(A/=q,E/=q,N=z.a-Math.floor((A-of(z))/2),L=z.b-Math.floor((E-(z.c-z.b+1))/2),this.o=p,this.p=q,this.d=new kf(N,N+A-1,L,L+E-1),this.n=Array(A*E),E=this.d):(E=this.d,A=of(E));x={};x[p]={};var U=[],Ca=this.ed(h,x),eb=g.ea(),R=Sd(),Ma=new kf(0,0,0,0),sb,$a,Ub;for(L=z.a;L<=z.d;++L)for(Ub=z.b;Ub<=z.c;++Ub)$a=h.Vb(p,L,Ub,d,f),N=$a.state,2==N||4==N||3==N&&!eb?x[p][jf($a.a)]=$a:(sb=k.gd($a.a,Ca,null,Ma,R),sb||(U.push($a),sb=k.td($a.a,Ma,R),null===sb||Ca(p+1,sb)));Ca=0;for(sb=U.length;Ca<sb;++Ca)$a=U[Ca],L=q*($a.a[1]-E.a),Ub=q*(E.c-$a.a[2]),Q.clearRect(L,Ub,q,q);U=Sa(rb(x),Number);db(U);var nb=h.N,Mc=je(eh(k,[p,E.a,E.c],R)),sc,Pe,qj,Zh,Wf,gm,Ca=0;for(sb=U.length;Ca<sb;++Ca)if(sc=U[Ca],q=h.Xb(sc,d,f),Zh=x[sc],sc==p)for(qj in Zh)$a=Zh[qj],Pe=($a.a[2]-E.b)*A+($a.a[1]-
E.a),this.n[Pe]!=$a&&(L=q*($a.a[1]-E.a),Ub=q*(E.c-$a.a[2]),N=$a.state,4!=N&&(3!=N||eb)&&nb||Q.clearRect(L,Ub,q,q),2==N&&Q.drawImage($a.Ta(),n,n,q,q,L,Ub,q,q),this.n[Pe]=$a);else for(qj in sc=k.na(sc)/r,Zh)for($a=Zh[qj],Pe=eh(k,$a.a,R),L=(Pe[0]-Mc[0])/s,Ub=(Mc[1]-Pe[3])/s,gm=sc*q,Wf=sc*q,N=$a.state,4!=N&&nb||Q.clearRect(L,Ub,gm,Wf),2==N&&Q.drawImage($a.Ta(),n,n,q,q,L,Ub,gm,Wf),$a=fh(k,Pe,p,Ma),N=Math.max($a.a,E.a),Ub=Math.min($a.d,E.d),L=Math.max($a.b,E.b),$a=Math.min($a.c,E.c);N<=Ub;++N)for(Wf=L;Wf<=$a;++Wf)Pe=(Wf-E.b)*A+(N-E.a),this.n[Pe]=void 0;vj(b.usedTiles,h,p,z);xj(b,h,k,d,f,y,p,g.r());sj(b,h);uj(b,h);lj(this.k,d*b.size[0]/2,d*b.size[1]/2,d*s/e.resolution,d*s/e.resolution,e.rotation,(Mc[0]-u[0])/s,(u[1]-Mc[1])/s);this.f=null;return!0};En.prototype.cc=function(b,c,d,e){if(null!==this.g&&(null===this.f&&(this.f=Hd(),Nd(this.k,this.f)),b=Im(b,this.f),0<this.g.getImageData(b[0],b[1],1,1).data[3]))return d.call(e,this.a)};function Fn(b){Fm.call(this,b);this.d=!1;this.i=-1;this.n=NaN;this.e=Sd();this.b=this.g=null;this.f=Nf()}v(Fn,Fm);Fn.prototype.q=function(b,c,d){var e=Hm(this,b);Gm(this,"precompose",d,b,e);var f=this.b;if(null!==f&&!f.la()){var g;jd(this.a,"render")?(this.f.canvas.width=d.canvas.width,this.f.canvas.height=d.canvas.height,g=this.f):g=d;var h=g.globalAlpha;g.globalAlpha=c.opacity;Em(f,g,b.pixelRatio,e,b.viewState.rotation,b.skippedFeatureUids);g!=d&&(Gm(this,"render",g,b,e),d.drawImage(g.canvas,0,0));g.globalAlpha=h}Gm(this,"postcompose",d,b,e)};Fn.prototype.Ua=function(b,c,d,e){if(null!==this.b){var f=this.a,g={};return this.b.b(b,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(b){var c=ma(b).toString();if(!(c in g))return g[c]=!0,d.call(e,b,f)})}};Fn.prototype.k=function(){pj(this)};Fn.prototype.ze=function(b){function c(b){var c;m(b.a)?c=b.a.call(b,k):m(d.r)&&(c=(0,d.r)(b,k));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;e<f;++e)g=dn(q,b,c[e],cn(k,n),this.k,this)||g;b=g}else b=!1;this.d=this.d||b}}var d=this.a,e=d.a();tj(b.attributions,e.f);uj(b,e);if(!this.d&&(!d.Ac&&b.viewHints[0]||b.viewHints[1]))return!0;var f=b.extent,g=b.viewState,h=g.projection,k=g.resolution,n=b.pixelRatio;b=d.c;var p=d.ea,g=d.get("renderOrder");m(g)||(g=bn);f=Wd(f,p*k);if(!this.d&&this.n==k&&this.i==b&&this.g==g&&Zd(this.e,f))return!0;pc(this.b);this.b=null;this.d=!1;var q=new Am(.5*k/n,f,k,d.ea);e.Hb(f,k,h);if(null===g)e.Fb(f,k,c,this);else{var r=[];e.Fb(f,k,function(b){r.push(b)},this);db(r,g);Qa(r,c,this)}Bm(q);this.n=k;this.i=b;this.g=g;this.e=f;this.b=q;return!0};function Gn(b,c){Dj.call(this,0,c);this.d=Nf();this.a=this.d.canvas;this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";Hf(b,this.a,0);this.c=!0;this.f=Hd()}v(Gn,Dj);Gn.prototype.ne=function(b){return b instanceof H?new Dn(b):b instanceof I?new En(b):b instanceof J?new Fn(b):null};function Hn(b,c,d){var e=b.g,f=b.d;if(jd(e,c)){var g=d.extent,h=d.pixelRatio,k=d.viewState,n=k.resolution,p=k.rotation;lj(b.f,b.a.width/2,b.a.height/2,h/n,-h/n,-p,-k.center[0],-k.center[1]);k=new Am(.5*n/h,g,n);g=new Yl(f,h,g,b.f,p);e.dispatchEvent(new dl(c,e,g,k,d,f,null));Bm(k);k.la()||Em(k,f,h,b.f,p,{});km(g);b.b=k}}Gn.prototype.O=function(){return"canvas"};Gn.prototype.Yd=function(b){if(null===b)this.c&&(Mg(this.a,!1),this.c=!1);else{var c=this.d,d=b.size[0]*b.pixelRatio,e=b.size[1]*b.pixelRatio;this.a.width!=d||this.a.height!=e?(this.a.width=d,this.a.height=e):c.clearRect(0,0,this.a.width,this.a.height);Ej(b);Hn(this,"precompose",b);var d=b.layerStatesArray,e=b.viewState.resolution,f,g,h,k;f=0;for(g=d.length;f<g;++f)k=d[f],h=k.layer,h=Gj(this,h),jj(k,e)&&"ready"==k.yc&&h.ze(b,k)&&h.q(b,k,c);Hn(this,"postcompose",b);this.c||(Mg(this.a,!0),this.c=!0);Hj(this,b);b.postRenderFunctions.push(Fj)}};function In(b,c){oj.call(this,b);this.target=c}v(In,oj);In.prototype.f=ca;In.prototype.n=ca;function Jn(b){var c=Ef("DIV");c.style.position="absolute";In.call(this,b,c);this.b=null;this.d=Jd()}v(Jn,In);Jn.prototype.Ua=function(b,c,d,e){var f=this.a;return f.a().Jd(b,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(b){return d.call(e,b,f)})};Jn.prototype.f=function(){Gf(this.target);this.b=null};Jn.prototype.e=function(b,c){var d=b.viewState,e=d.center,f=d.resolution,g=d.rotation,h=this.b,k=this.a.a(),n=b.viewHints,p=b.extent;m(c.extent)&&(p=oe(p,c.extent));n[0]||n[1]||re(p)||(d=d.projection,n=k.e,null===n||(d=n),p=k.sc(p,f,b.pixelRatio,d),null===p||rj(this,p)&&(h=p));null!==h&&(d=h.J(),n=h.resolution,p=Hd(),lj(p,b.size[0]/2,b.size[1]/2,n/f,n/f,g,(d[0]-e[0])/n,(e[1]-d[3])/n),h!=this.b&&(e=h.a(this),e.style.maxWidth="none",e.style.position="absolute",Gf(this.target),this.target.appendChild(e),this.b=h),mj(p,this.d)||(Rf(this.target,p),Kd(this.d,p)),tj(b.attributions,h.e),uj(b,k));return!0};function Kn(b){var c=Ef("DIV");c.style.position="absolute";In.call(this,b,c);this.d=!0;this.i=1;this.g=0;this.b={}}v(Kn,In);Kn.prototype.f=function(){Gf(this.target);this.g=0};Kn.prototype.e=function(b,c){if(!c.visible)return this.d&&(Mg(this.target,!1),this.d=!1),!0;var d=b.pixelRatio,e=b.viewState,f=e.projection,g=this.a,h=g.a(),k=rh(h,f),n=h.jd(),p=jh(k,e.resolution),q=k.na(p),r=e.center,s;q==e.resolution?(r=wj(r,q,b.size),s=me(r,q,e.rotation,b.size)):s=b.extent;m(c.extent)&&(s=oe(s,c.extent));var q=gh(k,s,q),u={};u[p]={};var y=this.ed(h,u),z=g.ea(),A=Sd(),E=new kf(0,0,0,0),x,Q,N,L;for(N=q.a;N<=q.d;++N)for(L=q.b;L<=q.c;++L)x=h.Vb(p,N,L,d,f),Q=x.state,2==Q?u[p][jf(x.a)]=x:4==Q||3==Q&&!z||(Q=k.gd(x.a,y,null,E,A),Q||(x=k.td(x.a,E,A),null===x||y(p+1,x)));var U;if(this.g!=h.c){for(U in this.b)z=this.b[+U],If(z.target);this.b={};this.g=h.c}A=Sa(rb(u),Number);db(A);var y={},Ca;N=0;for(L=A.length;N<L;++N){U=A[N];U in this.b?z=this.b[U]:(z=k.Nc(r,U),z=new Ln(k,z),y[U]=!0,this.b[U]=z);U=u[U];for(Ca in U){x=z;Q=U[Ca];var eb=n,R=Q.a,Ma=R[0],sb=R[1],$a=R[2],R=jf(R);if(!(R in x.c)){var Ma=x.d.pa(Ma),Ub=Q.Ta(x),nb=Ub.style;nb.maxWidth="none";var Mc=void 0,sc=void 0;0<eb?(Mc=Ef("DIV"),sc=Mc.style,sc.overflow="hidden",sc.width=Ma+"px",sc.height=Ma+"px",nb.position="absolute",nb.left=-eb+"px",nb.top=-eb+"px",nb.width=Ma+2*eb+"px",nb.height=Ma+2*eb+"px",Mc.appendChild(Ub)):(nb.width=Ma+"px",nb.height=Ma+"px",Mc=Ub,sc=nb);sc.position="absolute";sc.left=(sb-x.b[1])*Ma+"px";sc.top=(x.b[2]-$a)*Ma+"px";null===x.a&&(x.a=document.createDocumentFragment());x.a.appendChild(Mc);x.c[R]=Q}}null!==z.a&&(z.target.appendChild(z.a),z.a=null)}n=Sa(rb(this.b),Number);db(n);N=Hd();Ca=0;for(A=n.length;Ca<A;++Ca)if(U=n[Ca],z=this.b[U],U in u)if(x=z.g,L=z.e,lj(N,b.size[0]/2,b.size[1]/2,x/e.resolution,x/e.resolution,e.rotation,(L[0]-r[0])/x,(r[1]-L[1])/x),L=z,x=N,mj(x,L.f)||(Rf(L.target,x),Kd(L.f,x)),U in y){for(--U;0<=U;--U)if(U in this.b){L=this.b[U].target;L.parentNode&&L.parentNode.insertBefore(z.target,L.nextSibling);break}0>U&&Hf(this.target,z.target,0)}else{if(!b.viewHints[0]&&!b.viewHints[1]){Q=fh(z.d,s,z.b[0],E);U=[];x=L=void 0;for(x in z.c)L=z.c[x],Q.contains(L.a)||U.push(L);eb=Q=void 0;Q=0;for(eb=U.length;Q<eb;++Q)L=U[Q],x=jf(L.a),If(L.Ta(z)),delete z.c[x]}}else If(z.target),delete this.b[U];c.opacity!=this.i&&(this.i=this.target.style.opacity=c.opacity);c.visible&&!this.d&&(Mg(this.target,!0),this.d=!0);vj(b.usedTiles,h,p,q);xj(b,h,k,d,f,s,p,g.r());sj(b,h);uj(b,h);return!0};function Ln(b,c){this.target=Ef("DIV");this.target.style.position="absolute";this.target.style.width="100%";this.target.style.height="100%";this.d=b;this.b=c;this.e=je(eh(b,c));this.g=b.na(c[0]);this.c={};this.a=null;this.f=Jd()};function Mn(b){this.g=Nf();var c=this.g.canvas;c.style.maxWidth="none";c.style.position="absolute";In.call(this,b,c);this.d=!1;this.o=-1;this.q=NaN;this.i=Sd();this.b=this.k=null;this.r=Hd();this.p=Hd()}v(Mn,In);Mn.prototype.n=function(b,c){var d=b.viewState,e=d.center,f=d.rotation,g=d.resolution,d=b.pixelRatio,h=b.size[0],k=b.size[1],n=h*d,p=k*d,e=lj(this.r,d*h/2,d*k/2,d/g,-d/g,-f,-e[0],-e[1]),g=this.g;g.canvas.width=n;g.canvas.height=p;h=lj(this.p,0,0,1/d,1/d,0,-(n-h)/2*d,-(p-k)/2*d);Rf(g.canvas,h);Nn(this,"precompose",b,e);h=this.b;null===h||h.la()||(g.globalAlpha=c.opacity,Em(h,g,d,e,f,b.skippedFeatureUids),Nn(this,"render",b,e));Nn(this,"postcompose",b,e)};function Nn(b,c,d,e){var f=b.g;b=b.a;jd(b,c)&&(e=new Yl(f,d.pixelRatio,d.extent,e,d.viewState.rotation),b.dispatchEvent(new dl(c,b,e,null,d,f,null)),km(e))}Mn.prototype.Ua=function(b,c,d,e){if(null!==this.b){var f=this.a,g={};return this.b.b(b,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(b){var c=ma(b).toString();if(!(c in g))return g[c]=!0,d.call(e,b,f)})}};Mn.prototype.D=function(){pj(this)};Mn.prototype.e=function(b){function c(b){var c;m(b.a)?c=b.a.call(b,k):m(d.r)&&(c=(0,d.r)(b,k));if(null!=c){if(null!=c){var e,f,g=!1;e=0;for(f=c.length;e<f;++e)g=dn(q,b,c[e],cn(k,n),this.D,this)||g;b=g}else b=!1;this.d=this.d||b}}var d=this.a,e=d.a();tj(b.attributions,e.f);uj(b,e);if(!this.d&&(!d.Ac&&b.viewHints[0]||b.viewHints[1]))return!0;var f=b.extent,g=b.viewState,h=g.projection,k=g.resolution,n=b.pixelRatio;b=d.c;var p=d.ea,g=d.get("renderOrder");m(g)||(g=bn);f=Wd(f,p*k);if(!this.d&&this.q==k&&this.o==b&&this.k==g&&Zd(this.i,f))return!0;pc(this.b);this.b=null;this.d=!1;var q=new Am(.5*k/n,f,k,d.ea);e.Hb(f,k,h);if(null===g)e.Fb(f,k,c,this);else{var r=[];e.Fb(f,k,function(b){r.push(b)},this);db(r,g);Qa(r,c,this)}Bm(q);this.q=k;this.o=b;this.k=g;this.i=f;this.b=q;return!0};function On(b,c){Dj.call(this,0,c);this.c=null;this.c=Nf();var d=this.c.canvas;d.style.position="absolute";d.style.width="100%";d.style.height="100%";d.className="ol-unselectable";Hf(b,d,0);this.f=Hd();this.a=Ef("DIV");this.a.className="ol-unselectable";d=this.a.style;d.position="absolute";d.width="100%";d.height="100%";w(this.a,"touchstart",tc);Hf(b,this.a,0);this.d=!0}v(On,Dj);On.prototype.P=function(){If(this.a);On.T.P.call(this)};On.prototype.ne=function(b){if(b instanceof H)b=new Jn(b);else if(b instanceof I)b=new Kn(b);else if(b instanceof J)b=new Mn(b);else return null;return b};function Pn(b,c,d){var e=b.g;if(jd(e,c)){var f=d.extent,g=d.pixelRatio,h=d.viewState,k=h.resolution,n=h.rotation,p=b.c,q=p.canvas;lj(b.f,q.width/2,q.height/2,g/h.resolution,-g/h.resolution,-h.rotation,-h.center[0],-h.center[1]);h=new Yl(p,g,f,b.f,n);f=new Am(.5*k/g,f,k);e.dispatchEvent(new dl(c,e,h,f,d,p,null));Bm(f);f.la()||Em(f,p,g,b.f,n,{});km(h);b.b=f}}On.prototype.O=function(){return"dom"};On.prototype.Yd=function(b){if(null===b)this.d&&(Mg(this.a,!1),this.d=!1);else{var c;c=function(b,c){Hf(this.a,b,c)};var d=this.g;if(jd(d,"precompose")||jd(d,"postcompose")){var d=this.c.canvas,e=b.pixelRatio;d.width=b.size[0]*e;d.height=b.size[1]*e}Pn(this,"precompose",b);var d=b.layerStatesArray,f,g,h,e=0;for(f=d.length;e<f;++e)h=d[e],g=h.layer,g=Gj(this,g),c.call(this,g.target,e),"ready"==h.yc?g.e(b,h)&&g.n(b,h):g.f();c=b.layerStates;for(var k in this.e)k in c||(g=this.e[k],If(g.target));this.d||(Mg(this.a,!0),this.d=!0);Ej(b);Hj(this,b);b.postRenderFunctions.push(Fj);Pn(this,"postcompose",b)}};function Qn(b){this.a=b}function Rn(b){this.a=b}v(Rn,Qn);Rn.prototype.O=function(){return 35632};function Sn(b){this.a=b}v(Sn,Qn);Sn.prototype.O=function(){return 35633};function Tn(){this.a="precision mediump float;varying vec2 a;varying float b;uniform mat4 k;uniform float l;uniform sampler2D m;void main(void){vec4 texColor=texture2D(m,a);float alpha=texColor.a*b*l;if(alpha==0.0){discard;}gl_FragColor.a=alpha;gl_FragColor.rgb=(k*vec4(texColor.rgb,1.)).rgb;}"}v(Tn,Rn);da(Tn);function Un(){this.a="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.,0.);gl_Position=h*vec4(c,0.,1.)+offsets;a=d;b=f;}"}v(Un,Sn);da(Un);function Vn(b,c){this.k=b.getUniformLocation(c,"k");this.n=b.getUniformLocation(c,"j");this.i=b.getUniformLocation(c,"i");this.e=b.getUniformLocation(c,"l");this.g=b.getUniformLocation(c,"h");this.a=b.getAttribLocation(c,"e");this.c=b.getAttribLocation(c,"f");this.d=b.getAttribLocation(c,"c");this.b=b.getAttribLocation(c,"g");this.f=b.getAttribLocation(c,"d")};function Wn(){this.a="precision mediump float;varying vec2 a;varying float b;uniform float k;uniform sampler2D l;void main(void){vec4 texColor=texture2D(l,a);gl_FragColor.rgb=texColor.rgb;float alpha=texColor.a*b*k;if(alpha==0.0){discard;}gl_FragColor.a=alpha;}"}v(Wn,Rn);da(Wn);function Xn(){this.a="varying vec2 a;varying float b;attribute vec2 c;attribute vec2 d;attribute vec2 e;attribute float f;attribute float g;uniform mat4 h;uniform mat4 i;uniform mat4 j;void main(void){mat4 offsetMatrix=i;if(g==1.0){offsetMatrix=i*j;}vec4 offsets=offsetMatrix*vec4(e,0.,0.);gl_Position=h*vec4(c,0.,1.)+offsets;a=d;b=f;}"}v(Xn,Sn);da(Xn);function Yn(b,c){this.n=b.getUniformLocation(c,"j");this.i=b.getUniformLocation(c,"i");this.e=b.getUniformLocation(c,"k");this.g=b.getUniformLocation(c,"h");this.a=b.getAttribLocation(c,"e");this.c=b.getAttribLocation(c,"f");this.d=b.getAttribLocation(c,"c");this.b=b.getAttribLocation(c,"g");this.f=b.getAttribLocation(c,"d")};function Zn(b){this.a=m(b)?b:[];this.c=m(void 0)?void 0:35044};function $n(b,c){this.k=b;this.a=c;this.c={};this.e={};this.f={};this.n=this.i=this.d=this.g=null;(this.b=Wa(va,"OES_element_index_uint"))&&c.getExtension("OES_element_index_uint");w(this.k,"webglcontextlost",this.cl,!1,this);w(this.k,"webglcontextrestored",this.dl,!1,this)}
function ao(b,c,d){var e=b.a,f=d.a,g=ma(d);if(g in b.c)e.bindBuffer(c,b.c[g].buffer);else{var h=e.createBuffer();e.bindBuffer(c,h);var k;34962==c?k=new Float32Array(f):34963==c&&(k=b.b?new Uint32Array(f):new Uint16Array(f));e.bufferData(c,k,d.c);b.c[g]={b:d,buffer:h}}}function bo(b,c){var d=b.a,e=ma(c),f=b.c[e];d.isContextLost()||d.deleteBuffer(f.buffer);delete b.c[e]}l=$n.prototype;l.P=function(){var b=this.a;b.isContextLost()||(mb(this.c,function(c){b.deleteBuffer(c.buffer)}),mb(this.f,function(c){b.deleteProgram(c)}),mb(this.e,function(c){b.deleteShader(c)}),b.deleteFramebuffer(this.d),b.deleteRenderbuffer(this.n),b.deleteTexture(this.i))};l.bl=function(){return this.a};l.se=function(){if(null===this.d){var b=this.a,c=b.createFramebuffer();b.bindFramebuffer(b.FRAMEBUFFER,c);var d=co(b,1,1),e=b.createRenderbuffer();b.bindRenderbuffer(b.RENDERBUFFER,e);b.renderbufferStorage(b.RENDERBUFFER,b.DEPTH_COMPONENT16,1,1);b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,d,0);b.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,e);b.bindTexture(b.TEXTURE_2D,null);b.bindRenderbuffer(b.RENDERBUFFER,null);b.bindFramebuffer(b.FRAMEBUFFER,null);this.d=c;this.i=d;this.n=e}return this.d};function eo(b,c){var d=ma(c);if(d in b.e)return b.e[d];var e=b.a,f=e.createShader(c.O());e.shaderSource(f,c.a);e.compileShader(f);return b.e[d]=f}function fo(b,c,d){var e=ma(c)+"/"+ma(d);if(e in b.f)return b.f[e];var f=b.a,g=f.createProgram();f.attachShader(g,eo(b,c));f.attachShader(g,eo(b,d));f.linkProgram(g);return b.f[e]=g}l.cl=function(){xb(this.c);xb(this.e);xb(this.f);this.n=this.i=this.d=this.g=null};l.dl=function(){};l.Rd=function(b){if(b==this.g)return!1;this.a.useProgram(b);this.g=b;return!0};function go(b,c,d){var e=b.createTexture();b.bindTexture(b.TEXTURE_2D,e);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);b.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);m(c)&&b.texParameteri(3553,10242,c);m(d)&&b.texParameteri(3553,10243,d);return e}function co(b,c,d){var e=go(b,void 0,void 0);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,c,d,0,b.RGBA,b.UNSIGNED_BYTE,null);return e}
function ho(b,c){var d=go(b,33071,33071);b.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,c);return d};function io(b,c){this.r=this.p=void 0;this.Ea=new ug;this.i=ke(c);this.o=[];this.e=[];this.N=void 0;this.f=[];this.d=[];this.U=this.S=void 0;this.c=[];this.H=this.D=this.n=null;this.ca=void 0;this.ka=Jd();this.va=Jd();this.oa=this.da=void 0;this.Fa=Jd();this.Da=this.fa=this.qa=void 0;this.ia=[];this.g=[];this.a=[];this.q=null;this.b=[];this.k=[];this.ea=void 0}
function jo(b,c){var d=b.q,e=b.n,f=b.ia,g=b.g,h=c.a;return function(){if(!h.isContextLost()){var b,n;b=0;for(n=f.length;b<n;++b)h.deleteTexture(f[b]);b=0;for(n=g.length;b<n;++b)h.deleteTexture(g[b])}bo(c,d);bo(c,e)}}
function ko(b,c,d,e){var f=b.p,g=b.r,h=b.N,k=b.S,n=b.U,p=b.ca,q=b.da,r=b.oa,s=b.qa?1:0,u=b.fa,y=b.Da,z=b.ea,A=Math.cos(u),u=Math.sin(u),E=b.c.length,x=b.a.length,Q,N,L,U,Ca,eb;for(Q=0;Q<d;Q+=e)Ca=c[Q]-b.i[0],eb=c[Q+1]-b.i[1],N=x/8,L=-y*f,U=-y*(h-g),b.a[x++]=Ca,b.a[x++]=eb,b.a[x++]=L*A-U*u,b.a[x++]=L*u+U*A,b.a[x++]=q/n,b.a[x++]=(r+h)/k,b.a[x++]=p,b.a[x++]=s,L=y*(z-f),U=-y*(h-g),b.a[x++]=Ca,b.a[x++]=eb,b.a[x++]=L*A-U*u,b.a[x++]=L*u+U*A,b.a[x++]=(q+z)/n,b.a[x++]=(r+h)/k,b.a[x++]=p,b.a[x++]=s,L=y*(z-
f),U=y*g,b.a[x++]=Ca,b.a[x++]=eb,b.a[x++]=L*A-U*u,b.a[x++]=L*u+U*A,b.a[x++]=(q+z)/n,b.a[x++]=r/k,b.a[x++]=p,b.a[x++]=s,L=-y*f,U=y*g,b.a[x++]=Ca,b.a[x++]=eb,b.a[x++]=L*A-U*u,b.a[x++]=L*u+U*A,b.a[x++]=q/n,b.a[x++]=r/k,b.a[x++]=p,b.a[x++]=s,b.c[E++]=N,b.c[E++]=N+1,b.c[E++]=N+2,b.c[E++]=N,b.c[E++]=N+2,b.c[E++]=N+3}l=io.prototype;l.tb=function(b,c){this.b.push(this.c.length);this.k.push(c);var d=b.j;ko(this,d,d.length,b.B)};l.ub=function(b,c){this.b.push(this.c.length);this.k.push(c);var d=b.j;ko(this,d,d.length,b.B)};l.Kb=function(b){var c=b.a;this.o.push(this.c.length);this.e.push(this.c.length);this.q=new Zn(this.a);ao(b,34962,this.q);this.n=new Zn(this.c);ao(b,34963,this.n);b={};lo(this.ia,this.f,b,c);lo(this.g,this.d,b,c);this.N=this.r=this.p=void 0;this.d=this.f=null;this.U=this.S=void 0;this.c=null;this.Da=this.fa=this.qa=this.oa=this.da=this.ca=void 0;this.a=null;this.ea=void 0};function lo(b,c,d,e){var f,g,h,k=c.length;for(h=0;h<k;++h)f=c[h],g=ma(f).toString(),g in d?f=d[g]:(f=ho(e,f),d[g]=f),b[h]=f}
l.bc=function(b,c,d,e,f,g,h,k,n,p,q,r,s,u,y){g=b.a;ao(b,34962,this.q);ao(b,34963,this.n);var z=k||1!=n||p||1!=q,A,E;z?(A=Tn.Pa(),E=Un.Pa()):(A=Wn.Pa(),E=Xn.Pa());E=fo(b,A,E);z?null===this.D?this.D=A=new Vn(g,E):A=this.D:null===this.H?this.H=A=new Yn(g,E):A=this.H;b.Rd(E);g.enableVertexAttribArray(A.d);g.vertexAttribPointer(A.d,2,5126,!1,32,0);g.enableVertexAttribArray(A.a);g.vertexAttribPointer(A.a,2,5126,!1,32,8);g.enableVertexAttribArray(A.f);g.vertexAttribPointer(A.f,2,5126,!1,32,16);g.enableVertexAttribArray(A.c);g.vertexAttribPointer(A.c,1,5126,!1,32,24);g.enableVertexAttribArray(A.b);g.vertexAttribPointer(A.b,1,5126,!1,32,28);E=this.Fa;lj(E,0,0,2/(d*f[0]),2/(d*f[1]),-e,-(c[0]-this.i[0]),-(c[1]-this.i[1]));c=this.va;d=2/f[0];f=2/f[1];Ld(c);c[0]=d;c[5]=f;c[10]=1;c[15]=1;f=this.ka;Ld(f);0!==e&&Qd(f,-e);g.uniformMatrix4fv(A.g,!1,E);g.uniformMatrix4fv(A.i,!1,c);g.uniformMatrix4fv(A.n,!1,f);g.uniform1f(A.e,h);z&&g.uniformMatrix4fv(A.k,!1,vg(this.Ea,k,n,p,q));var x;if(m(s)){if(u)a:{e=b.b?5125:5123;b=b.b?4:2;p=this.b.length-1;for(h=this.g.length-1;0<=h;--h)for(g.bindTexture(3553,this.g[h]),k=0<h?this.e[h-1]:0,q=this.e[h];0<=p&&this.b[p]>=k;){n=this.b[p];u=this.k[p];x=ma(u).toString();if(!m(r[x])&&(!m(y)||pe(y,u.R().J()))&&(g.clear(g.COLOR_BUFFER_BIT|g.DEPTH_BUFFER_BIT),g.drawElements(4,q-n,e,n*b),q=s(u))){r=q;break a}q=n;p--}r=void 0}else g.clear(g.COLOR_BUFFER_BIT|g.DEPTH_BUFFER_BIT),mo(this,g,b,r,this.g,this.e),r=(r=s(null))?r:void 0;x=r}else mo(this,g,b,r,this.ia,this.o);g.disableVertexAttribArray(A.d);g.disableVertexAttribArray(A.a);g.disableVertexAttribArray(A.f);g.disableVertexAttribArray(A.c);g.disableVertexAttribArray(A.b);return x};function mo(b,c,d,e,f,g){var h=d.b?5125:5123;d=d.b?4:2;if(wb(e)){var k;b=0;e=f.length;for(k=0;b<e;++b){c.bindTexture(3553,f[b]);var n=g[b];c.drawElements(4,n-k,h,k*d);k=n}}else{k=0;var p,n=0;for(p=f.length;n<p;++n){c.bindTexture(3553,f[n]);for(var q=0<n?g[n-1]:0,r=g[n],s=q;k<b.b.length&&b.b[k]<=r;){var u=ma(b.k[k]).toString();m(e[u])?(s!==q&&c.drawElements(4,q-s,h,s*d),q=s=k===b.b.length-1?r:b.b[k+1]):q=k===b.b.length-1?r:b.b[k+1];k++}s!==q&&c.drawElements(4,q-s,h,s*d)}}}
l.ib=function(b){var c=b.wb(),d=b.Bb(1),e=b.kd(),f=b.Kd(1),g=b.o,h=b.Cb(),k=b.p,n=b.i,p=b.gb();b=b.k;var q;0===this.f.length?this.f.push(d):(q=this.f[this.f.length-1],ma(q)!=ma(d)&&(this.o.push(this.c.length),this.f.push(d)));0===this.d.length?this.d.push(f):(q=this.d[this.d.length-1],ma(q)!=ma(f)&&(this.e.push(this.c.length),this.d.push(f)));this.p=c[0];this.r=c[1];this.N=p[1];this.S=e[1];this.U=e[0];this.ca=g;this.da=h[0];this.oa=h[1];this.fa=n;this.qa=k;this.Da=b;this.ea=p[0]};function no(b,c,d){this.f=c;this.e=b;this.d=d;this.c={}}function oo(b,c){var d=[],e;for(e in b.c)d.push(jo(b.c[e],c));return fd.apply(null,d)}function po(b,c){for(var d in b.c)b.c[d].Kb(c)}no.prototype.a=function(b,c){var d=this.c[c];m(d)||(d=new qo[c](this.e,this.f),this.c[c]=d);return d};no.prototype.la=function(){return wb(this.c)};function ro(b,c,d,e,f,g,h,k,n,p,q,r,s,u,y){var z=so,A,E;for(A=lm.length-1;0<=A;--A)if(E=b.c[lm[A]],m(E)&&(E=E.bc(c,d,e,f,z,g,h,k,n,p,q,r,s,u,y)))return E}
no.prototype.b=function(b,c,d,e,f,g,h,k,n,p,q,r,s,u){var y=c.a;y.bindFramebuffer(y.FRAMEBUFFER,c.se());var z;m(this.d)&&(z=Wd(be(b),e*this.d));return ro(this,c,b,e,f,h,k,n,p,q,r,s,function(b){var c=new Uint8Array(4);y.readPixels(0,0,1,1,y.RGBA,y.UNSIGNED_BYTE,c);if(0<c[3]&&(b=u(b)))return b},!0,z)};function to(b,c,d,e,f,g,h,k,n,p,q,r){var s=d.a;s.bindFramebuffer(s.FRAMEBUFFER,d.se());b=ro(b,d,c,e,f,g,h,k,n,p,q,r,function(){var b=new Uint8Array(4);s.readPixels(0,0,1,1,s.RGBA,s.UNSIGNED_BYTE,b);return 0<b[3]},!1);return m(b)}var qo={Image:io},so=[1,1];function uo(b,c,d,e,f,g,h){this.b=b;this.f=c;this.a=g;this.e=h;this.i=f;this.n=e;this.g=d;this.d=null;this.c={}}l=uo.prototype;l.kc=function(b,c){var d=b.toString(),e=this.c[d];m(e)?e.push(c):this.c[d]=[c]};l.lc=function(){};l.oe=function(b,c){var d=(0,c.d)(b);if(null!=d&&pe(this.a,d.J())){var e=c.a;m(e)||(e=0);this.kc(e,function(b){b.Ba(c.f,c.b);b.ib(c.e);b.Ca(c.c);var e=vo[d.O()];e&&e.call(b,d,null)})}};l.fd=function(b,c){var d=b.d,e,f;e=0;for(f=d.length;e<f;++e){var g=d[e],h=vo[g.O()];h&&h.call(this,g,c)}};l.ub=function(b,c){var d=this.b,e=(new no(1,this.a)).a(0,"Image");e.ib(this.d);e.ub(b,c);e.Kb(d);e.bc(this.b,this.f,this.g,this.n,this.i,this.a,this.e,1,0,1,0,1,{});jo(e,d)()};l.Eb=function(){};l.mc=function(){};l.tb=function(b,c){var d=this.b,e=(new no(1,this.a)).a(0,"Image");e.ib(this.d);e.tb(b,c);e.Kb(d);e.bc(this.b,this.f,this.g,this.n,this.i,this.a,this.e,1,0,1,0,1,{});jo(e,d)()};l.nc=function(){};l.Rb=function(){};l.vb=function(){};l.Ba=function(){};l.ib=function(b){this.d=b};l.Ca=function(){};var vo={Point:uo.prototype.ub,MultiPoint:uo.prototype.tb,GeometryCollection:uo.prototype.fd};function wo(){this.a="precision mediump float;varying vec2 a;uniform mat4 f;uniform float g;uniform sampler2D h;void main(void){vec4 texColor=texture2D(h,a);gl_FragColor.rgb=(f*vec4(texColor.rgb,1.)).rgb;gl_FragColor.a=texColor.a*g;}"}v(wo,Rn);da(wo);function xo(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}v(xo,Sn);da(xo);function yo(b,c){this.g=b.getUniformLocation(c,"f");this.b=b.getUniformLocation(c,"g");this.d=b.getUniformLocation(c,"e");this.e=b.getUniformLocation(c,"d");this.f=b.getUniformLocation(c,"h");this.a=b.getAttribLocation(c,"b");this.c=b.getAttribLocation(c,"c")};function zo(){this.a="precision mediump float;varying vec2 a;uniform float f;uniform sampler2D g;void main(void){vec4 texColor=texture2D(g,a);gl_FragColor.rgb=texColor.rgb;gl_FragColor.a=texColor.a*f;}"}v(zo,Rn);da(zo);function Ao(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform mat4 d;uniform mat4 e;void main(void){gl_Position=e*vec4(b,0.,1.);a=(d*vec4(c,0.,1.)).st;}"}v(Ao,Sn);da(Ao);function Bo(b,c){this.b=b.getUniformLocation(c,"f");this.d=b.getUniformLocation(c,"e");this.e=b.getUniformLocation(c,"d");this.f=b.getUniformLocation(c,"g");this.a=b.getAttribLocation(c,"b");this.c=b.getAttribLocation(c,"c")};function Co(b,c){oj.call(this,c);this.b=b;this.N=new Zn([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]);this.f=this.Wa=null;this.e=void 0;this.i=Hd();this.o=Jd();this.S=new ug;this.q=this.k=null}v(Co,oj);function Do(b,c,d){var e=b.b.f;if(m(b.e)&&b.e==d)e.bindFramebuffer(36160,b.f);else{c.postRenderFunctions.push(sa(function(b,c,d){b.isContextLost()||(b.deleteFramebuffer(c),b.deleteTexture(d))},e,b.f,b.Wa));c=co(e,d,d);var f=e.createFramebuffer();e.bindFramebuffer(36160,f);e.framebufferTexture2D(36160,36064,3553,c,0);b.Wa=c;b.f=f;b.e=d}}
Co.prototype.Mf=function(b,c,d){Eo(this,"precompose",d,b);ao(d,34962,this.N);var e=d.a,f=c.brightness||1!=c.contrast||c.hue||1!=c.saturation,g,h;f?(g=wo.Pa(),h=xo.Pa()):(g=zo.Pa(),h=Ao.Pa());g=fo(d,g,h);f?null===this.k?this.k=h=new yo(e,g):h=this.k:null===this.q?this.q=h=new Bo(e,g):h=this.q;d.Rd(g)&&(e.enableVertexAttribArray(h.a),e.vertexAttribPointer(h.a,2,5126,!1,16,0),e.enableVertexAttribArray(h.c),e.vertexAttribPointer(h.c,2,5126,!1,16,8),e.uniform1i(h.f,0));e.uniformMatrix4fv(h.e,!1,this.i);e.uniformMatrix4fv(h.d,!1,this.o);f&&e.uniformMatrix4fv(h.g,!1,vg(this.S,c.brightness,c.contrast,c.hue,c.saturation));e.uniform1f(h.b,c.opacity);e.bindTexture(3553,this.Wa);e.drawArrays(5,0,4);Eo(this,"postcompose",d,b)};function Eo(b,c,d,e){b=b.a;if(jd(b,c)){var f=e.viewState;b.dispatchEvent(new dl(c,b,new uo(d,f.center,f.resolution,f.rotation,e.size,e.extent,e.pixelRatio),null,e,null,d))}}Co.prototype.Ae=function(){this.f=this.Wa=null;this.e=void 0};function Fo(b,c){Co.call(this,b,c);this.n=this.g=this.d=null}v(Fo,Co);function Go(b,c){var d=c.a();return ho(b.b.f,d)}Fo.prototype.Ua=function(b,c,d,e){var f=this.a;return f.a().Jd(b,c.viewState.resolution,c.viewState.rotation,c.skippedFeatureUids,function(b){return d.call(e,b,f)})};Fo.prototype.Be=function(b,c){var d=this.b.f,e=b.viewState,f=e.center,g=e.resolution,h=e.rotation,k=this.d,n=this.Wa,p=this.a.a(),q=b.viewHints,r=b.extent;m(c.extent)&&(r=oe(r,c.extent));q[0]||q[1]||re(r)||(e=e.projection,q=p.e,null===q||(e=q),r=p.sc(r,g,b.pixelRatio,e),null!==r&&rj(this,r)&&(k=r,n=Go(this,r),null===this.Wa||b.postRenderFunctions.push(sa(function(b,c){b.isContextLost()||b.deleteTexture(c)},d,this.Wa))));null!==k&&(d=this.b.d.k,Ho(this,d.width,d.height,f,g,h,k.J()),this.n=null,f=this.i,Ld(f),Pd(f,1,-1),Od(f,0,-1),this.d=k,this.Wa=n,tj(b.attributions,k.e),uj(b,p));return!0};function Ho(b,c,d,e,f,g,h){c*=f;d*=f;b=b.o;Ld(b);Pd(b,2/c,2/d);Qd(b,-g);Od(b,h[0]-e[0],h[1]-e[1]);Pd(b,(h[2]-h[0])/2,(h[3]-h[1])/2);Od(b,1,1)}Fo.prototype.Hd=function(b,c){var d=this.Ua(b,c,bd,this);return m(d)};Fo.prototype.cc=function(b,c,d,e){if(null!==this.d&&!fa(this.d.a()))if(this.a.a()instanceof Bn){if(b=b.slice(),nj(c.pixelToCoordinateMatrix,b,b),this.Ua(b,c,bd,this))return d.call(e,this.a)}else{var f=[this.d.a().width,this.d.a().height];if(null===this.n){var g=c.size;c=Hd();Ld(c);Od(c,-1,-1);Pd(c,2/g[0],2/g[1]);Od(c,0,g[1]);Pd(c,1,-1);g=Hd();Nd(this.o,g);var h=Hd();Ld(h);Od(h,0,f[1]);Pd(h,1,-1);Pd(h,f[0]/2,f[1]/2);Od(h,1,1);var k=Hd();Md(h,g,k);Md(k,c,k);this.n=k}c=[0,0];nj(this.n,b,c);if(!(0>c[0]||c[0]>f[0]||0>c[1]||c[1]>f[1])&&(null===this.g&&(this.g=Nf(1,1)),this.g.clearRect(0,0,1,1),this.g.drawImage(this.d.a(),c[0],c[1],1,1,0,0,1,1),0<this.g.getImageData(0,0,1,1).data[3]))return d.call(e,this.a)}};function Io(){this.a="precision mediump float;varying vec2 a;uniform sampler2D e;void main(void){gl_FragColor=texture2D(e,a);}"}v(Io,Rn);da(Io);function Jo(){this.a="varying vec2 a;attribute vec2 b;attribute vec2 c;uniform vec4 d;void main(void){gl_Position=vec4(b*d.xy+d.zw,0.,1.);a=c;}"}v(Jo,Sn);da(Jo);function Ko(b,c){this.b=b.getUniformLocation(c,"e");this.d=b.getUniformLocation(c,"d");this.a=b.getAttribLocation(c,"b");this.c=b.getAttribLocation(c,"c")};function Lo(b,c){Co.call(this,b,c);this.D=Io.Pa();this.H=Jo.Pa();this.d=null;this.r=new Zn([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]);this.p=this.g=null;this.n=-1}v(Lo,Co);l=Lo.prototype;l.P=function(){bo(this.b.d,this.r);Lo.T.P.call(this)};l.ed=function(b,c){var d=this.b;return function(e,f){return qh(b,e,f,function(b){var f=Wg(d.c,b.qb());f&&(c[e]||(c[e]={}),c[e][b.a.toString()]=b);return f})}};l.Ae=function(){Lo.T.Ae.call(this);this.d=null};l.Be=function(b,c,d){var e=this.b,f=d.a,g=b.viewState,h=g.projection,k=this.a,n=k.a(),p=rh(n,h),q=jh(p,g.resolution),r=p.na(q),s=n.Xb(q,b.pixelRatio,h),u=s/p.pa(q),y=r/u,z=n.jd(),A=g.center,E;r==g.resolution?(A=wj(A,r,b.size),E=me(A,r,g.rotation,b.size)):E=b.extent;r=gh(p,E,r);if(null!==this.g&&nf(this.g,r)&&this.n==n.c)y=this.p;else{var x=[of(r),r.c-r.b+1],x=Math.max(x[0]*s,x[1]*s),Q=Math.pow(2,Math.ceil(Math.log(x)/Math.LN2)),x=y*Q,N=p.Lb(q),L=N[0]+r.a*s*y,y=N[1]+r.b*s*y,y=[L,y,L+x,y+x];Do(this,b,Q);f.viewport(0,0,Q,Q);f.clearColor(0,0,0,0);f.clear(16384);f.disable(3042);Q=fo(d,this.D,this.H);d.Rd(Q);null===this.d&&(this.d=new Ko(f,Q));ao(d,34962,this.r);f.enableVertexAttribArray(this.d.a);f.vertexAttribPointer(this.d.a,2,5126,!1,16,0);f.enableVertexAttribArray(this.d.c);f.vertexAttribPointer(this.d.c,2,5126,!1,16,8);f.uniform1i(this.d.b,0);d={};d[q]={};var U=this.ed(n,d),Ca=k.ea(),Q=!0,L=Sd(),eb=new kf(0,0,0,0),R,Ma,sb;for(Ma=r.a;Ma<=r.d;++Ma)for(sb=r.b;sb<=r.c;++sb){N=n.Vb(q,Ma,sb,u,h);if(m(c.extent)&&(R=eh(p,N.a,L),!pe(R,c.extent)))continue;R=N.state;if(2==R){if(Wg(e.c,N.qb())){d[q][jf(N.a)]=N;continue}}else if(4==R||3==R&&!Ca)continue;Q=!1;R=p.gd(N.a,U,null,eb,L);R||(N=p.td(N.a,eb,L),null===N||U(q+1,N))}c=Sa(rb(d),Number);db(c);for(var U=new Float32Array(4),$a,Ub,nb,Ca=0,eb=c.length;Ca<eb;++Ca)for($a in Ub=d[c[Ca]],Ub)N=Ub[$a],R=eh(p,N.a,L),Ma=2*(R[2]-R[0])/x,sb=2*(R[3]-R[1])/x,nb=2*(R[0]-y[0])/x-1,R=2*(R[1]-y[1])/x-1,Gd(U,Ma,sb,nb,R),f.uniform4fv(this.d.d,U),Mo(e,N,s,z*u),f.drawArrays(5,0,4);Q?(this.g=r,this.p=y,this.n=n.c):(this.p=this.g=null,this.n=-1,b.animate=!0)}vj(b.usedTiles,n,q,r);var Mc=e.i;xj(b,n,p,u,h,E,q,k.r(),function(b){var c;(c=2!=b.state||Wg(e.c,b.qb()))||(c=b.qb()in Mc.b);c||yj(Mc,[b,ih(p,b.a),p.na(b.a[0]),s,z*u])},this);sj(b,n);uj(b,n);f=this.i;Ld(f);Od(f,(A[0]-y[0])/(y[2]-y[0]),(A[1]-y[1])/(y[3]-y[1]));0!==g.rotation&&Qd(f,g.rotation);Pd(f,b.size[0]*g.resolution/(y[2]-y[0]),b.size[1]*g.resolution/(y[3]-y[1]));Od(f,-.5,-.5);return!0};l.cc=function(b,c,d,e){if(null!==this.f){var f=[0,0];nj(this.i,[b[0]/c.size[0],(c.size[1]-b[1])/c.size[1]],f);b=[f[0]*this.e,f[1]*this.e];c=this.b.d.a;c.bindFramebuffer(c.FRAMEBUFFER,this.f);f=new Uint8Array(4);c.readPixels(b[0],b[1],1,1,c.RGBA,c.UNSIGNED_BYTE,f);if(0<f[3])return d.call(e,this.a)}};function No(b,c){Co.call(this,b,c);this.n=!1;this.H=-1;this.D=NaN;this.p=Sd();this.g=this.d=this.r=null}v(No,Co);l=No.prototype;l.Mf=function(b,c,d){this.g=c;var e=b.viewState,f=this.d;if(null!==f&&!f.la()){var g=e.center,h=e.resolution,e=e.rotation,k=b.size,n=b.pixelRatio,p=c.opacity,q=c.brightness,r=c.contrast,s=c.hue;c=c.saturation;b=b.skippedFeatureUids;var u,y,z;u=0;for(y=lm.length;u<y;++u)z=f.c[lm[u]],m(z)&&z.bc(d,g,h,e,k,n,p,q,r,s,c,b,void 0,!1)}};l.P=function(){var b=this.d;null!==b&&(oo(b,this.b.d)(),this.d=null);No.T.P.call(this)};l.Ua=function(b,c,d,e){if(null!==this.d&&null!==this.g){var f=c.viewState,g=this.a,h=this.g,k={};return this.d.b(b,this.b.d,f.center,f.resolution,f.rotation,c.size,c.pixelRatio,h.opacity,h.brightness,h.contrast,h.hue,h.saturation,c.skippedFeatureUids,function(b){var c=ma(b).toString();if(!(c in k))return k[c]=!0,d.call(e,b,g)})}};l.Hd=function(b,c){if(null===this.d||null===this.g)return!1;var d=c.viewState,e=this.g;return to(this.d,b,this.b.d,d.resolution,d.rotation,c.pixelRatio,e.opacity,e.brightness,e.contrast,e.hue,e.saturation,c.skippedFeatureUids)};l.cc=function(b,c,d,e){b=b.slice();nj(c.pixelToCoordinateMatrix,b,b);if(this.Hd(b,c))return d.call(e,this.a)};l.Xj=function(){pj(this)};l.Be=function(b,c,d){function e(b){var c;m(b.a)?c=b.a.call(b,n):m(f.r)&&(c=(0,f.r)(b,n));if(null!=c){if(null!=c){var d,e,g=!1;d=0;for(e=c.length;d<e;++d)g=dn(s,b,c[d],cn(n,p),this.Xj,this)||g;b=g}else b=!1;this.n=this.n||b}}var f=this.a;c=f.a();tj(b.attributions,c.f);uj(b,c);if(!this.n&&(!f.Ac&&b.viewHints[0]||b.viewHints[1]))return!0;var g=b.extent,h=b.viewState,k=h.projection,n=h.resolution,p=b.pixelRatio,h=f.c,q=f.ea,r=f.get("renderOrder");m(r)||(r=bn);g=Wd(g,q*n);if(!this.n&&this.D==n&&this.H==h&&this.r==r&&Zd(this.p,g))return!0;null===this.d||b.postRenderFunctions.push(oo(this.d,d));this.n=!1;var s=new no(.5*n/p,g,f.ea);c.Hb(g,n,k);if(null===r)c.Fb(g,n,e,this);else{var u=[];c.Fb(g,n,function(b){u.push(b)},this);db(u,r);Qa(u,e,this)}po(s,d);this.D=n;this.H=h;this.r=r;this.p=g;this.d=s;return!0};function Oo(b,c){Dj.call(this,0,c);this.a=Ef("CANVAS");this.a.style.width="100%";this.a.style.height="100%";this.a.className="ol-unselectable";Hf(b,this.a,0);this.p=0;this.r=Nf();this.k=!0;this.f=Tf(this.a,{antialias:!0,depth:!1,uh:!0,preserveDrawingBuffer:!1,stencil:!0});this.d=new $n(this.a,this.f);w(this.a,"webglcontextlost",this.Vj,!1,this);w(this.a,"webglcontextrestored",this.Wj,!1,this);this.c=new Vg;this.o=null;this.i=new Ij(ra(function(b){var c=b[1];b=b[2];var f=c[0]-this.o[0],c=c[1]-this.o[1];return 65536*Math.log(b)+Math.sqrt(f*f+c*c)/b},this),function(b){return b[0].qb()});this.D=ra(function(){if(!this.i.la()){Mj(this.i);var b=Jj(this.i);Mo(this,b[0],b[3],b[4])}},this);this.n=0;Po(this)}v(Oo,Dj);function Mo(b,c,d,e){var f=b.f,g=c.qb();if(Wg(b.c,g))b=b.c.get(g),f.bindTexture(3553,b.Wa),9729!=b.zf&&(f.texParameteri(3553,10240,9729),b.zf=9729),9729!=b.Af&&(f.texParameteri(3553,10240,9729),b.Af=9729);else{var h=f.createTexture();f.bindTexture(3553,h);if(0<e){var k=b.r.canvas,n=b.r;b.p!=d?(k.width=d,k.height=d,b.p=d):n.clearRect(0,0,d,d);n.drawImage(c.Ta(),e,e,d,d,0,0,d,d);f.texImage2D(3553,0,6408,6408,5121,k)}else f.texImage2D(3553,0,6408,6408,5121,c.Ta());f.texParameteri(3553,10240,9729);f.texParameteri(3553,10241,9729);f.texParameteri(3553,10242,33071);f.texParameteri(3553,10243,33071);b.c.set(g,{Wa:h,zf:9729,Af:9729})}}l=Oo.prototype;l.ne=function(b){return b instanceof H?new Fo(this,b):b instanceof I?new Lo(this,b):b instanceof J?new No(this,b):null};function Qo(b,c,d){var e=b.g;if(jd(e,c)){var f=b.d,g=d.extent,h=d.size,k=d.viewState,n=d.pixelRatio,p=k.resolution,q=k.center,r=k.rotation,k=new uo(f,q,p,r,h,g,n),g=new no(.5*p/n,g);e.dispatchEvent(new dl(c,e,k,g,d,null,f));po(g,f);if(!g.la()){var s=Ro;c=s.opacity;d=s.brightness;var e=s.contrast,u=s.hue,s=s.saturation,y={},z,A,E;z=0;for(A=lm.length;z<A;++z)E=g.c[lm[z]],m(E)&&E.bc(f,q,p,r,h,n,c,d,e,u,s,y,void 0,!1)}oo(g,f)();f=Sa(rb(k.c),Number);db(f);h=0;for(n=f.length;h<n;++h)for(p=k.c[f[h].toString()],q=0,r=p.length;q<r;++q)p[q](k);b.b=g}}l.P=function(){var b=this.f;b.isContextLost()||this.c.forEach(function(c){null===c||b.deleteTexture(c.Wa)});pc(this.d);Oo.T.P.call(this)};l.rh=function(b,c){for(var d=this.f,e;1024<this.c.Tb()-this.n;){e=this.c.a.hc;if(null===e)if(+this.c.a.Cd==c.index)break;else--this.n;else d.deleteTexture(e.Wa);this.c.pop()}};l.O=function(){return"webgl"};l.Vj=function(b){b.preventDefault();this.c.clear();this.n=0;mb(this.e,function(b){b.Ae()})};l.Wj=function(){Po(this);this.g.render()};function Po(b){b=b.f;b.activeTexture(33984);b.blendFuncSeparate(770,771,1,771);b.disable(2884);b.disable(2929);b.disable(3089);b.disable(2960)}
l.Yd=function(b){var c=this.d,d=this.f;if(d.isContextLost())return!1;if(null===b)return this.k&&(Mg(this.a,!1),this.k=!1),!1;this.o=b.focus;this.c.set((-b.index).toString(),null);++this.n;var e=[],f=b.layerStatesArray,g=b.viewState.resolution,h,k,n,p;h=0;for(k=f.length;h<k;++h)p=f[h],jj(p,g)&&"ready"==p.yc&&(n=Gj(this,p.layer),n.Be(b,p,c)&&e.push(p));f=b.size[0]*b.pixelRatio;g=b.size[1]*b.pixelRatio;if(this.a.width!=f||this.a.height!=g)this.a.width=f,this.a.height=g;d.bindFramebuffer(36160,null);d.clearColor(0,0,0,0);d.clear(16384);d.enable(3042);d.viewport(0,0,this.a.width,this.a.height);Qo(this,"precompose",b);h=0;for(k=e.length;h<k;++h)p=e[h],n=Gj(this,p.layer),n.Mf(b,p,c);this.k||(Mg(this.a,!0),this.k=!0);Ej(b);1024<this.c.Tb()-this.n&&b.postRenderFunctions.push(ra(this.rh,this));this.i.la()||(b.postRenderFunctions.push(this.D),b.animate=!0);Qo(this,"postcompose",b);Hj(this,b);b.postRenderFunctions.push(Fj)};l.ye=function(b,c,d,e,f,g){var h;if(this.f.isContextLost())return!1;var k=this.d,n=c.viewState;if(null!==this.b){var p={},q=Ro;if(h=this.b.b(b,k,n.center,n.resolution,n.rotation,c.size,c.pixelRatio,q.opacity,q.brightness,q.contrast,q.hue,q.saturation,{},function(b){var c=ma(b).toString();if(!(c in p))return p[c]=!0,d.call(e,b,null)}))return h}k=c.layerStatesArray;for(q=k.length-1;0<=q;--q){h=k[q];var r=h.layer;if(jj(h,n.resolution)&&f.call(g,r)&&(h=Gj(this,r).Ua(b,c,d,e)))return h}};l.Lf=function(b,c,d,e){var f=!1;if(this.f.isContextLost())return!1;var g=this.d,h=c.viewState;if(null!==this.b&&(f=Ro,f=to(this.b,b,g,h.resolution,h.rotation,c.pixelRatio,f.opacity,f.brightness,f.contrast,f.hue,f.saturation,{})))return!0;var g=c.layerStatesArray,k;for(k=g.length-1;0<=k;--k){var n=g[k],p=n.layer;if(jj(n,h.resolution)&&d.call(e,p)&&(f=Gj(this,p).Hd(b,c)))return!0}return f};l.Kf=function(b,c,d,e,f){if(this.f.isContextLost())return!1;var g=this.d,h=c.viewState,k;if(null!==this.b){var n=Ro;k=this.g.sa(b);if(to(this.b,k,g,h.resolution,h.rotation,c.pixelRatio,n.opacity,n.brightness,n.contrast,n.hue,n.saturation,{})&&(k=d.call(e,null)))return k}g=c.layerStatesArray;for(n=g.length-1;0<=n;--n){k=g[n];var p=k.layer;if(jj(k,h.resolution)&&f.call(e,p)&&(k=Gj(this,p).cc(b,c,d,e)))return k}};var Ro={opacity:1,brightness:0,contrast:1,hue:0,saturation:1};var So=["canvas","webgl","dom"];function K(b){qd.call(this);var c=To(b);this.xc=m(b.loadTilesWhileAnimating)?b.loadTilesWhileAnimating:!1;this.yc=m(b.loadTilesWhileInteracting)?b.loadTilesWhileInteracting:!1;this.Ac=m(b.pixelRatio)?b.pixelRatio:Vf;this.zc=c.logos;this.r=new Ih(this.Rl,void 0,this);oc(this,this.r);this.vc=Hd();this.ad=Hd();this.wc=0;this.d=null;this.Ea=Sd();this.o=this.U=null;this.b=Bf("DIV","ol-viewport");this.b.style.position="relative";this.b.style.overflow="hidden";this.b.style.width="100%";this.b.style.height="100%";this.b.style.msTouchAction="none";bg&&(this.b.className="ol-touch");this.ka=Bf("DIV","ol-overlaycontainer");this.b.appendChild(this.ka);this.H=Bf("DIV","ol-overlaycontainer-stopevent");w(this.H,["click","dblclick","mousedown","touchstart","MSPointerDown",ej,Hb?"DOMMouseScroll":"mousewheel"],rc);this.b.appendChild(this.H);b=new Xi(this);w(b,qb(hj),this.tf,!1,this);oc(this,b);this.fa=c.keyboardEventTarget;this.D=new ci;w(this.D,"key",this.rf,!1,this);oc(this,this.D);b=new ki(this.b);w(b,"mousewheel",this.rf,!1,this);oc(this,b);this.i=c.controls;this.g=c.interactions;this.k=c.overlays;this.p=new c.Tl(this.b,this);oc(this,this.p);this.jc=new Xh;oc(this,this.jc);w(this.jc,"resize",this.q,!1,this);this.ca=null;this.N=[];this.va=[];this.kb=new Nj(ra(this.fi,this),ra(this.zj,this));this.da={};w(this,ud("layergroup"),this.yi,!1,this);w(this,ud("view"),this.Aj,!1,this);w(this,ud("size"),this.Oi,!1,this);w(this,ud("target"),this.Pi,!1,this);this.C(c.sm);this.i.forEach(function(b){b.setMap(this)},this);w(this.i,"add",function(b){b.element.setMap(this)},!1,this);w(this.i,"remove",function(b){b.element.setMap(null)},!1,this);this.g.forEach(function(b){b.setMap(this)},this);w(this.g,"add",function(b){b.element.setMap(this)},!1,this);w(this.g,"remove",function(b){b.element.setMap(null)},!1,this);this.k.forEach(function(b){b.setMap(this)},this);w(this.k,"add",function(b){b.element.setMap(this)},!1,this);w(this.k,"remove",function(b){b.element.setMap(null)},!1,this)}v(K,qd);l=K.prototype;l.fh=function(b){this.i.push(b)};l.gh=function(b){this.g.push(b)};l.af=function(b){this.Ub().ac().push(b)};l.bf=function(b){this.k.push(b)};l.La=function(b){this.render();Array.prototype.push.apply(this.N,arguments)};l.P=function(){If(this.b);K.T.P.call(this)};l.qe=function(b,c,d,e,f){if(null!==this.d)return b=this.sa(b),this.p.ye(b,this.d,c,m(d)?d:null,m(e)?e:bd,m(f)?f:null)};l.yj=function(b,c,d,e,f){if(null!==this.d)return this.p.Kf(b,this.d,c,m(d)?d:null,m(e)?e:bd,m(f)?f:null)};l.Ri=function(b,c,d){if(null===this.d)return!1;b=this.sa(b);return this.p.Lf(b,this.d,m(c)?c:bd,m(d)?d:null)};l.Dh=function(b){return this.sa(this.hd(b))};l.hd=function(b){if(m(b.changedTouches)){var c=b.changedTouches[0];b=Jg(this.b);return[c.clientX-b.x,c.clientY-b.y]}c=this.b;b=Jg(b);c=Jg(c);c=new sf(b.x-c.x,b.y-c.y);return[c.x,c.y]};l.Fd=function(){return this.get("target")};K.prototype.getTarget=K.prototype.Fd;l=K.prototype;l.Mc=function(){var b=this.Fd();return m(b)?xf(b):null};l.sa=function(b){var c=this.d;if(null===c)return null;b=b.slice();return nj(c.pixelToCoordinateMatrix,b,b)};l.Bh=function(){return this.i};l.Xh=function(){return this.k};l.Kh=function(){return this.g};l.Ub=function(){return this.get("layergroup")};K.prototype.getLayerGroup=K.prototype.Ub;K.prototype.ea=function(){return this.Ub().ac()};K.prototype.e=function(b){var c=this.d;if(null===c)return null;b=b.slice(0,2);return nj(c.coordinateToPixelMatrix,b,b)};K.prototype.f=function(){return this.get("size")};K.prototype.getSize=K.prototype.f;K.prototype.a=function(){return this.get("view")};K.prototype.getView=K.prototype.a;l=K.prototype;l.hi=function(){return this.b};l.fi=function(b,c,d,e){var f=this.d;if(!(null!==f&&c in f.wantedTiles&&f.wantedTiles[c][jf(b.a)]))return Infinity;b=d[0]-f.focus[0];d=d[1]-f.focus[1];return 65536*Math.log(e)+Math.sqrt(b*b+d*d)/e};l.rf=function(b,c){var d=new Vi(c||b.type,this,b);this.tf(d)};l.tf=function(b){if(null!==this.d){this.ca=b.coordinate;b.frameState=this.d;var c=this.g.a,d;if(!1!==this.dispatchEvent(b))for(d=c.length-1;0<=d;d--){var e=c[d];if(e.b()&&!e.handleEvent(b))break}}};l.Mi=function(){var b=this.d,c=this.kb;if(!c.la()){var d=16,e=d,f=0;null!==b&&(f=b.viewHints,f[0]&&(d=this.xc?8:0,e=2),f[1]&&(d=this.yc?8:0,e=2),f=pb(b.wantedTiles));d*=f;e*=f;if(c.d<d){Mj(c);d=Math.min(d-c.d,e,c.Tb());for(e=0;e<d;++e)f=Jj(c)[0],w(f,"change",c.g,!1,c),f.load();c.d+=d}}c=this.va;d=0;for(e=c.length;d<e;++d)c[d](this,b);c.length=0};l.Oi=function(){this.render()};l.Pi=function(){var b=this.Mc();ji(this.D);null===b?If(this.b):(b.appendChild(this.b),di(this.D,null===this.fa?b:this.fa));this.q()};l.zj=function(){this.render()};l.Qi=function(){this.render()};l.Aj=function(){null!==this.U&&(Wc(this.U),this.U=null);var b=this.a();null!==b&&(this.U=w(b,"propertychange",this.Qi,!1,this));this.render()};l.zi=function(){this.render()};l.Ai=function(){this.render()};l.yi=function(){if(null!==this.o){for(var b=this.o.length,c=0;c<b;++c)Wc(this.o[c]);this.o=null}b=this.Ub();null!=b&&(this.o=[w(b,"propertychange",this.Ai,!1,this),w(b,"change",this.zi,!1,this)]);this.render()};l.Sl=function(){var b=this.r;Jh(b);b.jf()};l.render=function(){null!=this.r.aa||this.r.start()};l.Ml=function(b){if(m(this.i.remove(b)))return b};l.Nl=function(b){var c;m(this.g.remove(b))&&(c=b);return c};l.Ol=function(b){return this.Ub().ac().remove(b)};l.Pl=function(b){if(m(this.k.remove(b)))return b};l.Rl=function(b){var c,d,e,f=this.f(),g=this.a(),h=null;if(c=m(f)&&0<f[0]&&0<f[1]&&null!==g)c=null!=g.b()&&m(g.a());if(c){var h=g.q.slice(),k=this.Ub().Xa(),n={};c=0;for(d=k.length;c<d;++c)n[ma(k[c].layer)]=k[c];e=Xe(g);h={animate:!1,attributions:{},coordinateToPixelMatrix:this.vc,extent:null,focus:null===this.ca?e.center:this.ca,index:this.wc++,layerStates:n,layerStatesArray:k,logos:Bb(this.zc),pixelRatio:this.Ac,pixelToCoordinateMatrix:this.ad,postRenderFunctions:[],size:f,skippedFeatureUids:this.da,tileQueue:this.kb,time:b,usedTiles:{},viewState:e,viewHints:h,wantedTiles:{}}}if(null!==h){b=this.N;c=f=0;for(d=b.length;c<d;++c)g=b[c],g(this,h)&&(b[f++]=g);b.length=f;h.extent=me(e.center,e.resolution,e.rotation,h.size)}this.d=h;this.p.Yd(h);null!==h&&(h.animate&&this.render(),Array.prototype.push.apply(this.va,h.postRenderFunctions),0!==this.N.length||h.viewHints[0]||h.viewHints[1]||ce(h.extent,this.Ea)||(this.dispatchEvent(new Tg("moveend",this,h)),Xd(h.extent,this.Ea)));this.dispatchEvent(new Tg("postrender",this,h));Nh(this.Mi,this)};l.sg=function(b){this.set("layergroup",b)};K.prototype.setLayerGroup=K.prototype.sg;K.prototype.S=function(b){this.set("size",b)};K.prototype.setSize=K.prototype.S;K.prototype.ia=function(b){this.set("target",b)};K.prototype.setTarget=K.prototype.ia;K.prototype.Fa=function(b){this.set("view",b)};K.prototype.setView=K.prototype.Fa;K.prototype.Xa=function(b){b=ma(b).toString();this.da[b]=!0;this.render()};K.prototype.q=function(){var b=this.Mc();if(null===b)this.S(void 0);else{var c=wf(b),d=Gb&&b.currentStyle;d&&Lf(uf(c))&&"auto"!=d.width&&"auto"!=d.height&&!d.boxSizing?(c=Ng(b,d.width,"width","pixelWidth"),b=Ng(b,d.height,"height","pixelHeight"),b=new tf(c,b)):(d=new tf(b.offsetWidth,b.offsetHeight),c=Pg(b,"padding"),b=Sg(b),b=new tf(d.width-b.left-c.left-c.right-b.right,d.height-b.top-c.top-c.bottom-b.bottom));this.S([b.width,b.height])}};K.prototype.ic=function(b){b=ma(b).toString();delete this.da[b];this.render()};function To(b){var c=null;m(b.keyboardEventTarget)&&(c=ia(b.keyboardEventTarget)?document.getElementById(b.keyboardEventTarget):b.keyboardEventTarget);var d={},e={};if(!m(b.logo)||"boolean"==typeof b.logo&&b.logo)e["data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAA3NCSVQICAjb4U/gAAAACXBIWXMAAAHGAAABxgEXwfpGAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAAAhNQTFRF////AP//AICAgP//AFVVQECA////K1VVSbbbYL/fJ05idsTYJFtbbcjbJllmZszWWMTOIFhoHlNiZszTa9DdUcHNHlNlV8XRIVdiasrUHlZjIVZjaMnVH1RlIFRkH1RkH1ZlasvYasvXVsPQH1VkacnVa8vWIVZjIFRjVMPQa8rXIVVkXsXRsNveIFVkIFZlIVVj3eDeh6GmbMvXH1ZkIFRka8rWbMvXIFVkIFVjIFVkbMvWH1VjbMvWIFVlbcvWIFVla8vVIFVkbMvWbMvVH1VkbMvWIFVlbcvWIFVkbcvVbMvWjNPbIFVkU8LPwMzNIFVkbczWIFVkbsvWbMvXIFVkRnB8bcvW2+TkW8XRIFVkIlZlJVloJlpoKlxrLl9tMmJwOWd0Omh1RXF8TneCT3iDUHiDU8LPVMLPVcLPVcPQVsPPVsPQV8PQWMTQWsTQW8TQXMXSXsXRX4SNX8bSYMfTYcfTYsfTY8jUZcfSZsnUaIqTacrVasrVa8jTa8rWbI2VbMvWbcvWdJObdcvUdszUd8vVeJaee87Yfc3WgJyjhqGnitDYjaarldPZnrK2oNbborW5o9bbo9fbpLa6q9ndrL3ArtndscDDutzfu8fJwN7gwt7gxc/QyuHhy+HizeHi0NfX0+Pj19zb1+Tj2uXk29/e3uLg3+Lh3+bl4uXj4ufl4+fl5Ofl5ufl5ujm5+jmySDnBAAAAFp0Uk5TAAECAgMEBAYHCA0NDg4UGRogIiMmKSssLzU7PkJJT1JTVFliY2hrdHZ3foSFhYeJjY2QkpugqbG1tre5w8zQ09XY3uXn6+zx8vT09vf4+Pj5+fr6/P39/f3+gz7SsAAAAVVJREFUOMtjYKA7EBDnwCPLrObS1BRiLoJLnte6CQy8FLHLCzs2QUG4FjZ5GbcmBDDjxJBXDWxCBrb8aM4zbkIDzpLYnAcE9VXlJSWlZRU13koIeW57mGx5XjoMZEUqwxWYQaQbSzLSkYGfKFSe0QMsX5WbjgY0YS4MBplemI4BdGBW+DQ11eZiymfqQuXZIjqwyadPNoSZ4L+0FVM6e+oGI6g8a9iKNT3o8kVzNkzRg5lgl7p4wyRUL9Yt2jAxVh6mQCogae6GmflI8p0r13VFWTHBQ0rWPW7ahgWVcPm+9cuLoyy4kCJDzCm6d8PSFoh0zvQNC5OjDJhQopPPJqph1doJBUD5tnkbZiUEqaCnB3bTqLTFG1bPn71kw4b+GFdpLElKIzRxxgYgWNYc5SCENVHKeUaltHdXx0dZ8uBI1hJ2UUDgq82CM2MwKeibqAvSO7MCABq0wXEPiqWEAAAAAElFTkSuQmCC"]="http://openlayers.org/";else{var f=b.logo;ia(f)?e[f]="":la(f)&&(e[f.src]=f.href)}f=b.layers instanceof G?b.layers:new G({layers:b.layers});d.layergroup=f;d.target=b.target;d.view=m(b.view)?b.view:new B;var f=Dj,g;m(b.renderer)?ga(b.renderer)?g=b.renderer:ia(b.renderer)&&(g=[b.renderer]):g=So;var h,k;h=0;for(k=g.length;h<k;++h){var n=g[h];if("canvas"==n){if(Zf){f=Gn;break}}else if("dom"==n){f=On;break}else if("webgl"==n&&Uf){f=Oo;break}}var p;m(b.controls)?p=ga(b.controls)?new lg(b.controls.slice()):b.controls:p=zh();var q;m(b.interactions)?q=ga(b.interactions)?new lg(b.interactions.slice()):b.interactions:q=Ql();b=m(b.overlays)?ga(b.overlays)?new lg(b.overlays.slice()):b.overlays:new lg;return{controls:p,interactions:q,keyboardEventTarget:c,logos:e,overlays:b,Tl:f,sm:d}}Xl();function M(b){qd.call(this);this.H=m(b.insertFirst)?b.insertFirst:!0;this.N=m(b.stopEvent)?b.stopEvent:!0;this.ba=Bf("DIV",{"class":"ol-overlay-container"});this.ba.style.position="absolute";this.D=m(b.autoPan)?b.autoPan:!1;this.g=m(b.autoPanAnimation)?b.autoPanAnimation:{};this.r=m(b.autoPanMargin)?b.autoPanMargin:20;this.a={bd:"",Dd:"",Zd:"",$d:"",visible:!0};this.f=null;w(this,ud("element"),this.ri,!1,this);w(this,ud("map"),this.Gi,!1,this);w(this,ud("offset"),this.Ii,!1,this);w(this,ud("position"),this.Ki,!1,this);w(this,ud("positioning"),this.Li,!1,this);m(b.element)&&this.Le(b.element);this.o(m(b.offset)?b.offset:[0,0]);this.p(m(b.positioning)?b.positioning:"top-left");m(b.position)&&this.e(b.position)}v(M,qd);M.prototype.b=function(){return this.get("element")};M.prototype.getElement=M.prototype.b;M.prototype.d=function(){return this.get("map")};M.prototype.getMap=M.prototype.d;M.prototype.i=function(){return this.get("offset")};M.prototype.getOffset=M.prototype.i;M.prototype.q=function(){return this.get("position")};M.prototype.getPosition=M.prototype.q;M.prototype.k=function(){return this.get("positioning")};M.prototype.getPositioning=M.prototype.k;l=M.prototype;l.ri=function(){Gf(this.ba);var b=this.b();null!=b&&Ff(this.ba,b)};l.Gi=function(){null!==this.f&&(If(this.ba),Wc(this.f),this.f=null);var b=this.d();null!=b&&(this.f=w(b,"postrender",this.render,!1,this),Uo(this),b=this.N?b.H:b.ka,this.H?Hf(b,this.ba,0):Ff(b,this.ba))};l.render=function(){Uo(this)};l.Ii=function(){Uo(this)};l.Ki=function(){Uo(this);if(m(this.get("position"))&&this.D){var b=this.d();if(m(b)&&!fa(b.Mc())){var c=Vo(b.Mc(),b.f()),d=this.b(),e=d.offsetWidth,f=d.currentStyle||window.getComputedStyle(d),e=e+(parseInt(f.marginLeft,10)+parseInt(f.marginRight,10)),f=d.offsetHeight,g=d.currentStyle||window.getComputedStyle(d),f=f+(parseInt(g.marginTop,10)+parseInt(g.marginBottom,10)),h=Vo(d,[e,f]),d=this.r;Zd(c,h)||(e=h[0]-c[0],f=c[2]-h[2],g=h[1]-c[1],h=c[3]-h[3],c=[0,0],0>e?c[0]=e-d:0>f&&(c[0]=Math.abs(f)+d),0>g?c[1]=g-d:0>h&&(c[1]=Math.abs(h)+d),0===c[0]&&0===c[1])||(d=b.a().b(),e=b.e(d),c=[e[0]+c[0],e[1]+c[1]],null!==this.g&&(this.g.source=d,b.La(cf(this.g))),b.a().Ha(b.sa(c)))}}};l.Li=function(){Uo(this)};l.Le=function(b){this.set("element",b)};M.prototype.setElement=M.prototype.Le;M.prototype.setMap=function(b){this.set("map",b)};M.prototype.setMap=M.prototype.setMap;M.prototype.o=function(b){this.set("offset",b)};M.prototype.setOffset=M.prototype.o;M.prototype.e=function(b){this.set("position",b)};M.prototype.setPosition=M.prototype.e;function Vo(b,c){var d=wf(b);Fg(b,"position");var e=new sf(0,0),f;f=d?wf(d):document;f=!Gb||Gb&&9<=Rb||Lf(uf(f))?f.documentElement:f.body;b!=f&&(f=Ig(b),d=Mf(uf(d)),e.x=f.left+d.x,e.y=f.top+d.y);return[e.x,e.y,e.x+c[0],e.y+c[1]]}M.prototype.p=function(b){this.set("positioning",b)};M.prototype.setPositioning=M.prototype.p;function Uo(b){var c=b.d(),d=b.q();if(m(c)&&null!==c.d&&m(d)){var d=c.e(d),e=c.f(),c=b.ba.style,f=b.i(),g=b.k(),h=f[0],f=f[1];if("bottom-right"==g||"center-right"==g||"top-right"==g)""!==b.a.Dd&&(b.a.Dd=c.left=""),h=Math.round(e[0]-d[0]-h)+"px",b.a.Zd!=h&&(b.a.Zd=c.right=h);else{""!==b.a.Zd&&(b.a.Zd=c.right="");if("bottom-center"==g||"center-center"==g||"top-center"==g)h-=Kg(b.ba).width/2;h=Math.round(d[0]+h)+"px";b.a.Dd!=h&&(b.a.Dd=c.left=h)}if("bottom-left"==g||"bottom-center"==g||"bottom-right"==g)""!==b.a.$d&&(b.a.$d=c.top=""),d=Math.round(e[1]-d[1]-f)+"px",b.a.bd!=d&&(b.a.bd=c.bottom=d);else{""!==b.a.bd&&(b.a.bd=c.bottom="");if("center-left"==g||"center-center"==g||"center-right"==g)f-=Kg(b.ba).height/2;d=Math.round(d[1]+f)+"px";b.a.$d!=d&&(b.a.$d=c.top=d)}b.a.visible||(Mg(b.ba,!0),b.a.visible=!0)}else b.a.visible&&(Mg(b.ba,!1),b.a.visible=!1)};function Wo(b){b=m(b)?b:{};this.e=m(b.collapsed)?b.collapsed:!0;this.g=m(b.collapsible)?b.collapsible:!0;this.g||(this.e=!1);var c=m(b.className)?b.className:"ol-overviewmap",d=m(b.tipLabel)?b.tipLabel:"Overview map",e=m(b.collapseLabel)?b.collapseLabel:"\u00ab";this.o=ia(e)?Bf("SPAN",{},e):e;e=m(b.label)?b.label:"\u00bb";this.p=ia(e)?Bf("SPAN",{},e):e;d=Bf("BUTTON",{type:"button",title:d},this.g&&!this.e?this.o:this.p);w(d,"click",this.Ij,!1,this);w(d,["mouseout",uc],function(){this.blur()},!1);var e=Bf("DIV","ol-overviewmap-map"),f=this.d=new K({controls:new lg,interactions:new lg,target:e});m(b.layers)&&b.layers.forEach(function(b){f.af(b)},this);var g=Bf("DIV","ol-overviewmap-box");this.k=new M({position:[0,0],positioning:"bottom-left",element:g});this.d.bf(this.k);c=Bf("DIV",c+" ol-unselectable ol-control"+(this.e&&this.g?" ol-collapsed":"")+(this.g?"":" ol-uncollapsible"),e,d);Ug.call(this,{element:c,render:m(b.render)?b.render:Xo,target:b.target})}v(Wo,Ug);l=Wo.prototype;l.setMap=function(b){var c=this.a;null===b&&null!==c&&Vc(c,ud("view"),this.Ff,!1,this);Wo.T.setMap.call(this,b);null!==b&&(0===this.d.ea().Ib()&&this.d.K("layergroup",b),Yo(this),w(b,ud("view"),this.Ff,!1,this),this.d.q(),Zo(this))};function Yo(b){var c=b.a.a();null===c||b.d.a().K("rotation",c)}
function Xo(){var b=this.a,c=this.d;if(null!==b.d&&null!==c.d){var d=b.f(),b=b.a().g(d),e=c.f(),d=c.a().g(e),f=c.e(je(b)),c=c.e(he(b)),c=new tf(Math.abs(f[0]-c[0]),Math.abs(f[1]-c[1])),f=e[0],e=e[1];c.width<.1*f||c.height<.1*e||c.width>.75*f||c.height>.75*e?Zo(this):Zd(d,b)||(b=this.d,d=this.a.a(),b.a().Ha(d.b()))}$o(this)}l.Ff=function(){Yo(this)};function Zo(b){var c=b.a;b=b.d;var d=c.f(),c=c.a().g(d),d=b.f();b=b.a();var e=Math.log(7.5)/Math.LN2;se(c,1/(.1*Math.pow(2,e/2)));b.pe(c,d)}
function $o(b){var c=b.a,d=b.d;if(null!==c.d&&null!==d.d){var e=c.f(),f=c.a(),g=d.a();d.f();var c=f.d(),h=b.k,d=b.k.b(),f=f.g(e),e=g.a(),g=ge(f),f=ie(f),k;b=b.a.a().b();m(b)&&(k=[g[0]-b[0],g[1]-b[1]],Ad(k,c),vd(k,b));h.e(k);null!=d&&(k=new tf(Math.abs((g[0]-f[0])/e),Math.abs((f[1]-g[1])/e)),c=Lf(uf(wf(d))),!Gb||Pb("10")||c&&Pb("8")?(d=d.style,Hb?d.MozBoxSizing="border-box":Ib?d.WebkitBoxSizing="border-box":d.boxSizing="border-box",d.width=Math.max(k.width,0)+"px",d.height=Math.max(k.height,0)+"px"):(b=d.style,c?(c=Pg(d,"padding"),d=Sg(d),b.pixelWidth=k.width-d.left-c.left-c.right-d.right,b.pixelHeight=k.height-d.top-c.top-c.bottom-d.bottom):(b.pixelWidth=k.width,b.pixelHeight=k.height)))}}l.Ij=function(b){b.preventDefault();ap(this)};function ap(b){Ag(b.element,"ol-collapsed");b.e?Jf(b.o,b.p):Jf(b.p,b.o);b.e=!b.e;var c=b.d;b.e||null!==c.d||(c.q(),Zo(b),Uc(c,"postrender",function(){$o(this)},!1,b))}l.Hj=function(){return this.g};l.Kj=function(b){this.g!==b&&(this.g=b,Ag(this.element,"ol-uncollapsible"),!b&&this.e&&ap(this))};l.Jj=function(b){this.g&&this.e!==b&&ap(this)};l.Gj=function(){return this.e};function bp(b){b=m(b)?b:{};var c=m(b.className)?b.className:"ol-scale-line";this.g=Bf("DIV",c+"-inner");this.ba=Bf("DIV",c+" ol-unselectable",this.g);this.r=null;this.k=m(b.minWidth)?b.minWidth:64;this.d=!1;this.H=void 0;this.D="";this.e=null;Ug.call(this,{element:this.ba,render:m(b.render)?b.render:cp,target:b.target});w(this,ud("units"),this.N,!1,this);this.p(b.units||"metric")}v(bp,Ug);var dp=[1,2,5];bp.prototype.o=function(){return this.get("units")};bp.prototype.getUnits=bp.prototype.o;function cp(b){b=b.frameState;null===b?this.r=null:this.r=b.viewState;ep(this)}bp.prototype.N=function(){ep(this)};bp.prototype.p=function(b){this.set("units",b)};bp.prototype.setUnits=bp.prototype.p;function ep(b){var c=b.r;if(null===c)b.d&&(Mg(b.ba,!1),b.d=!1);else{var d=c.center,e=c.projection,c=e.getPointResolution(c.resolution,d),f=e.c,g=b.o();"degrees"!=f||"metric"!=g&&"imperial"!=g&&"us"!=g&&"nautical"!=g?"degrees"!=f&&"degrees"==g?(null===b.e&&(b.e=De(e,ze("EPSG:4326"))),d=Math.cos(Yb(b.e(d)[1])),e=ve.radius,e/=we[f],c*=180/(Math.PI*d*e)):b.e=null:(b.e=null,d=Math.cos(Yb(d[1])),c*=Math.PI*d*ve.radius/180);d=b.k*c;f="";"degrees"==g?d<1/60?(f="\u2033",c*=3600):1>d?(f="\u2032",c*=60):f="\u00b0":"imperial"==g?.9144>d?(f="in",c/=.0254):1609.344>d?(f="ft",c/=.3048):(f="mi",c/=1609.344):"nautical"==g?(c/=1852,f="nm"):"metric"==g?1>d?(f="mm",c*=1E3):1E3>d?f="m":(f="km",c/=1E3):"us"==g&&(.9144>d?(f="in",c*=39.37):1609.344>d?(f="ft",c/=.30480061):(f="mi",c/=1609.3472));for(d=3*Math.floor(Math.log(b.k*c)/Math.log(10));;){e=dp[d%3]*Math.pow(10,Math.floor(d/3));g=Math.round(e/c);if(isNaN(g)){Mg(b.ba,!1);b.d=!1;return}if(g>=b.k)break;++d}c=e+" "+f;b.D!=c&&(b.g.innerHTML=c,b.D=c);b.H!=g&&(b.g.style.width=g+"px",b.H=g);b.d||(Mg(b.ba,!0),b.d=!0)}};function fp(b){lc.call(this);this.c=b;this.a={}}v(fp,lc);var gp=[];fp.prototype.Ra=function(b,c,d,e){ga(c)||(c&&(gp[0]=c.toString()),c=gp);for(var f=0;f<c.length;f++){var g=w(b,c[f],d||this.handleEvent,e||!1,this.c||this);if(!g)break;this.a[g.key]=g}return this};fp.prototype.Me=function(b,c,d,e,f){if(ga(c))for(var g=0;g<c.length;g++)this.Me(b,c[g],d,e,f);else d=d||this.handleEvent,f=f||this.c||this,d=Oc(d),e=!!e,c=Bc(b)?Ic(b.mb,String(c),d,e,f):b?(b=Qc(b))?Ic(b,c,d,e,f):null:null,c&&(Wc(c),delete this.a[c.key]);return this};function hp(b){mb(b.a,Wc);b.a={}}fp.prototype.P=function(){fp.T.P.call(this);hp(this)};fp.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function ip(b,c,d){hd.call(this);this.target=b;this.handle=c||b;this.a=d||new Cg(NaN,NaN,NaN,NaN);this.b=wf(b);this.c=new fp(this);oc(this,this.c);w(this.handle,["touchstart","mousedown"],this.qf,!1,this)}v(ip,hd);var jp=Gb||Hb&&Pb("1.9.3");l=ip.prototype;l.clientX=0;l.clientY=0;l.screenX=0;l.screenY=0;l.tg=0;l.ug=0;l.pc=0;l.qc=0;l.Zb=!1;l.P=function(){ip.T.P.call(this);Vc(this.handle,["touchstart","mousedown"],this.qf,!1,this);hp(this.c);jp&&this.b.releaseCapture();this.handle=this.target=null};l.qf=function(b){var c="mousedown"==b.type;if(this.Zb||c&&!zc(b))this.dispatchEvent("earlycancel");else if(kp(b),this.dispatchEvent(new lp("start",this,b.clientX,b.clientY))){this.Zb=!0;b.preventDefault();var c=this.b,d=c.documentElement,e=!jp;this.c.Ra(c,["touchmove","mousemove"],this.Hi,e);this.c.Ra(c,["touchend","mouseup"],this.wd,e);jp?(d.setCapture(!1),this.c.Ra(d,"losecapture",this.wd)):this.c.Ra(c?c.parentWindow||c.defaultView:window,"blur",this.wd);this.f&&this.c.Ra(this.f,"scroll",this.jl,e);this.clientX=this.tg=b.clientX;this.clientY=this.ug=b.clientY;this.screenX=b.screenX;this.screenY=b.screenY;this.pc=this.target.offsetLeft;this.qc=this.target.offsetTop;this.d=Mf(uf(this.b));ta()}};l.wd=function(b){hp(this.c);jp&&this.b.releaseCapture();if(this.Zb){kp(b);this.Zb=!1;var c=mp(this,this.pc),d=np(this,this.qc);this.dispatchEvent(new lp("end",this,b.clientX,b.clientY,0,c,d))}else this.dispatchEvent("earlycancel")};function kp(b){var c=b.type;"touchstart"==c||"touchmove"==c?xc(b,b.a.targetTouches[0],b.b):"touchend"!=c&&"touchcancel"!=c||xc(b,b.a.changedTouches[0],b.b)}
l.Hi=function(b){kp(b);var c=1*(b.clientX-this.clientX),d=b.clientY-this.clientY;this.clientX=b.clientX;this.clientY=b.clientY;this.screenX=b.screenX;this.screenY=b.screenY;if(!this.Zb){var e=this.tg-this.clientX,f=this.ug-this.clientY;if(0<e*e+f*f)if(this.dispatchEvent(new lp("start",this,b.clientX,b.clientY)))this.Zb=!0;else{this.oa||this.wd(b);return}}d=op(this,c,d);c=d.x;d=d.y;this.Zb&&this.dispatchEvent(new lp("beforedrag",this,b.clientX,b.clientY,0,c,d))&&(pp(this,b,c,d),b.preventDefault())};function op(b,c,d){var e=Mf(uf(b.b));c+=e.x-b.d.x;d+=e.y-b.d.y;b.d=e;b.pc+=c;b.qc+=d;c=mp(b,b.pc);b=np(b,b.qc);return new sf(c,b)}l.jl=function(b){var c=op(this,0,0);b.clientX=this.clientX;b.clientY=this.clientY;pp(this,b,c.x,c.y)};function pp(b,c,d,e){b.target.style.left=d+"px";b.target.style.top=e+"px";b.dispatchEvent(new lp("drag",b,c.clientX,c.clientY,0,d,e))}
function mp(b,c){var d=b.a,e=isNaN(d.left)?null:d.left,d=isNaN(d.width)?0:d.width;return Math.min(null!=e?e+d:Infinity,Math.max(null!=e?e:-Infinity,c))}function np(b,c){var d=b.a,e=isNaN(d.top)?null:d.top,d=isNaN(d.height)?0:d.height;return Math.min(null!=e?e+d:Infinity,Math.max(null!=e?e:-Infinity,c))}function lp(b,c,d,e,f,g,h){qc.call(this,b);this.clientX=d;this.clientY=e;this.left=m(g)?g:c.pc;this.top=m(h)?h:c.qc}v(lp,qc);function qp(b){b=m(b)?b:{};this.e=void 0;this.g=rp;this.k=null;this.o=!1;var c=m(b.className)?b.className:"ol-zoomslider",d=Bf("DIV",[c+"-thumb","ol-unselectable"]),c=Bf("DIV",[c,"ol-unselectable","ol-control"],d);this.d=new ip(d);oc(this,this.d);w(this.d,"start",this.qi,!1,this);w(this.d,"drag",this.oi,!1,this);w(this.d,"end",this.pi,!1,this);w(c,"click",this.ni,!1,this);w(d,"click",rc);Ug.call(this,{element:c,render:m(b.render)?b.render:sp})}v(qp,Ug);var rp=0;l=qp.prototype;l.setMap=function(b){qp.T.setMap.call(this,b);null===b||b.render()};function sp(b){if(null!==b.frameState){if(!this.o){var c=this.element,d=Kg(c),e=Kf(c),c=Pg(e,"margin"),f=new tf(e.offsetWidth,e.offsetHeight),e=f.width+c.right+c.left,c=f.height+c.top+c.bottom;this.k=[e,c];e=d.width-e;c=d.height-c;d.width>d.height?(this.g=1,d=new Cg(0,0,e,0)):(this.g=rp,d=new Cg(0,0,0,c));this.d.a=d||new Cg(NaN,NaN,NaN,NaN);this.o=!0}b=b.frameState.viewState.resolution;b!==this.e&&(this.e=b,b=1-We(this.a.a())(b),d=this.d,c=Kf(this.element),1==this.g?Gg(c,d.a.left+d.a.width*b):Gg(c,d.a.left,d.a.top+d.a.height*b))}}l.ni=function(b){var c=this.a,d=c.a(),e=d.a();c.La(ef({resolution:e,duration:200,easing:Ze}));b=tp(this,b.offsetX-this.k[0]/2,b.offsetY-this.k[1]/2);b=up(this,b);d.f(d.constrainResolution(b))};l.qi=function(){Ye(this.a.a(),1)};l.oi=function(b){b=tp(this,b.left,b.top);this.e=up(this,b);this.a.a().f(this.e)};l.pi=function(){var b=this.a,c=b.a();Ye(c,-1);b.La(ef({resolution:this.e,duration:200,easing:Ze}));b=c.constrainResolution(this.e);c.f(b)};function tp(b,c,d){var e=b.d.a;return Vb(1===b.g?(c-e.left)/e.width:(d-e.top)/e.height,0,1)}function up(b,c){return Ve(b.a.a())(1-c)};function vp(b){b=m(b)?b:{};this.d=m(b.extent)?b.extent:null;var c=m(b.className)?b.className:"ol-zoom-extent",d=Bf("BUTTON",{type:"button",title:m(b.tipLabel)?b.tipLabel:"Fit to extent"},m(b.label)?b.label:"E");w(d,"click",this.e,!1,this);w(d,["mouseout",uc],function(){this.blur()},!1);c=Bf("DIV",c+" ol-unselectable ol-control",d);Ug.call(this,{element:c,target:b.target})}v(vp,Ug);vp.prototype.e=function(b){b.preventDefault();var c=this.a;b=c.a();var d=null===this.d?b.p.J():this.d,c=c.f();b.pe(d,c)};function wp(b){qd.call(this);b=m(b)?b:{};this.a=null;w(this,ud("tracking"),this.k,!1,this);this.b(m(b.tracking)?b.tracking:!1)}v(wp,qd);wp.prototype.P=function(){this.b(!1);wp.T.P.call(this)};wp.prototype.q=function(b){b=b.a;if(null!=b.alpha){var c=Yb(b.alpha);this.set("alpha",c);"boolean"==typeof b.absolute&&b.absolute?this.set("heading",c):null!=b.webkitCompassHeading&&null!=b.webkitCompassAccuracy&&-1!=b.webkitCompassAccuracy&&this.set("heading",Yb(b.webkitCompassHeading))}null!=b.beta&&this.set("beta",Yb(b.beta));null!=b.gamma&&this.set("gamma",Yb(b.gamma));this.l()};wp.prototype.f=function(){return this.get("alpha")};wp.prototype.getAlpha=wp.prototype.f;wp.prototype.e=function(){return this.get("beta")};wp.prototype.getBeta=wp.prototype.e;wp.prototype.g=function(){return this.get("gamma")};wp.prototype.getGamma=wp.prototype.g;wp.prototype.i=function(){return this.get("heading")};wp.prototype.getHeading=wp.prototype.i;wp.prototype.d=function(){return this.get("tracking")};wp.prototype.getTracking=wp.prototype.d;wp.prototype.k=function(){if($f){var b=this.d();b&&null===this.a?this.a=w(ba,"deviceorientation",this.q,!1,this):b||null===this.a||(Wc(this.a),this.a=null)}};wp.prototype.b=function(b){this.set("tracking",b)};wp.prototype.setTracking=wp.prototype.b;function xp(b){qd.call(this);this.i=b;w(this.i,["change","input"],this.g,!1,this);w(this,ud("value"),this.k,!1,this);w(this,ud("checked"),this.e,!1,this)}v(xp,qd);xp.prototype.a=function(){return this.get("checked")};xp.prototype.getChecked=xp.prototype.a;xp.prototype.b=function(){return this.get("value")};xp.prototype.getValue=xp.prototype.b;xp.prototype.f=function(b){this.set("value",b)};xp.prototype.setValue=xp.prototype.f;xp.prototype.d=function(b){this.set("checked",b)};xp.prototype.setChecked=xp.prototype.d;xp.prototype.g=function(){var b=this.i;"checkbox"===b.type||"radio"===b.type?this.d(b.checked):this.f(b.value)};xp.prototype.e=function(){this.i.checked=this.a()};xp.prototype.k=function(){this.i.value=this.b()};function O(b){qd.call(this);this.aa=void 0;this.b="geometry";this.g=null;this.a=void 0;this.e=null;w(this,ud(this.b),this.xd,!1,this);m(b)&&(b instanceof pk||null===b?this.Sa(b):this.C(b))}v(O,qd);O.prototype.clone=function(){var b=new O(this.I());b.f(this.b);var c=this.R();null!=c&&b.Sa(c.clone());c=this.g;null===c||b.i(c);return b};O.prototype.R=function(){return this.get(this.b)};O.prototype.getGeometry=O.prototype.R;l=O.prototype;l.Jh=function(){return this.aa};l.Ih=function(){return this.b};l.qj=function(){return this.g};l.rj=function(){return this.a};l.xi=function(){this.l()};l.xd=function(){null!==this.e&&(Wc(this.e),this.e=null);var b=this.R();null!=b&&(this.e=w(b,"change",this.xi,!1,this),this.l())};l.Sa=function(b){this.set(this.b,b)};O.prototype.setGeometry=O.prototype.Sa;O.prototype.i=function(b){this.g=b;null===b?b=void 0:ka(b)||(b=ga(b)?b:[b],b=$c(b));this.a=b;this.l()};O.prototype.d=function(b){this.aa=b;this.l()};O.prototype.f=function(b){Vc(this,ud(this.b),this.xd,!1,this);this.b=b;w(this,ud(this.b),this.xd,!1,this);this.xd()};function yp(b){b=m(b)?b:{};this.g=this.f=this.d=this.c=this.b=this.a=null;this.e=void 0;this.Ef(m(b.style)?b.style:zl);m(b.features)?ga(b.features)?this.Tc(new lg(b.features.slice())):this.Tc(b.features):this.Tc(new lg);m(b.map)&&this.setMap(b.map)}l=yp.prototype;l.Cf=function(b){this.a.push(b)};l.kj=function(){return this.a};l.lj=function(){return this.d};l.Df=function(){zp(this)};l.vi=function(b){b=b.element;this.c[ma(b).toString()]=w(b,"change",this.Df,!1,this);zp(this)};l.wi=function(b){b=ma(b.element).toString();Wc(this.c[b]);delete this.c[b];zp(this)};l.oj=function(){zp(this)};l.pj=function(b){if(null!==this.a){var c=this.e;m(c)||(c=zl);var d=b.a;b=b.frameState;var e=b.viewState.resolution,f=cn(e,b.pixelRatio),g,h,k,n;this.a.forEach(function(b){n=b.a;k=m(n)?n.call(b,e):c(b,e);if(null!=k)for(h=k.length,g=0;g<h;++g)dn(d,b,k[g],f,this.oj,this)},this)}};l.Ed=function(b){this.a.remove(b)};function zp(b){null===b.d||b.d.render()}
l.Tc=function(b){null!==this.b&&(Qa(this.b,Wc),this.b=null);null!==this.c&&(Qa(qb(this.c),Wc),this.c=null);this.a=b;null!==b&&(this.b=[w(b,"add",this.vi,!1,this),w(b,"remove",this.wi,!1,this)],this.c={},b.forEach(function(b){this.c[ma(b).toString()]=w(b,"change",this.Df,!1,this)},this));zp(this)};l.setMap=function(b){null!==this.f&&(Wc(this.f),this.f=null);zp(this);this.d=b;null!==b&&(this.f=w(b,"postcompose",this.pj,!1,this),b.render())};l.Ef=function(b){this.g=b;this.e=yl(b);zp(this)};l.mj=function(){return this.g};l.nj=function(){return this.e};function Ap(){this.defaultDataProjection=null}function Bp(b,c,d){var e;m(d)&&(e={dataProjection:m(d.dataProjection)?d.dataProjection:b.Ja(c),featureProjection:d.featureProjection});return Cp(b,e)}function Cp(b,c){var d;m(c)&&(d={featureProjection:c.featureProjection,dataProjection:null!=c.dataProjection?c.dataProjection:b.defaultDataProjection,rightHanded:c.rightHanded});return d}
function Dp(b,c,d){var e=m(d)?ze(d.featureProjection):null;d=m(d)?ze(d.dataProjection):null;return null===e||null===d||Re(e,d)?b:b instanceof pk?(c?b.clone():b).transform(c?e:d,c?d:e):Ue(c?b.slice():b,c?e:d,c?d:e)};var Ep=ba.JSON.parse,Fp=ba.JSON.stringify;function Gp(){this.defaultDataProjection=null}v(Gp,Ap);function Hp(b){return la(b)?b:ia(b)?(b=Ep(b),m(b)?b:null):null}l=Gp.prototype;l.O=function(){return"json"};l.Nb=function(b,c){return Ip(this,Hp(b),Bp(this,b,c))};l.ma=function(b,c){return this.b(Hp(b),Bp(this,b,c))};l.Rc=function(b,c){var d=Hp(b),e=Bp(this,b,c);return Jp(d,e)};l.Ja=function(b){b=Hp(b).crs;return null!=b?"name"==b.type?ze(b.properties.name):"EPSG"==b.type?ze("EPSG:"+b.properties.code):null:this.defaultDataProjection};l.be=function(b,c){return Fp(this.a(b,c))};l.Qb=function(b,c){return Fp(this.d(b,c))};l.Xc=function(b,c){return Fp(this.f(b,c))};function Kp(b){b=m(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ze(null!=b.defaultDataProjection?b.defaultDataProjection:"EPSG:4326");this.c=b.geometryName}v(Kp,Gp);function Jp(b,c){return null===b?null:Dp((0,Lp[b.type])(b),!1,c)}function Mp(b,c){return(0,Np[b.O()])(Dp(b,!0,c),c)}
var Lp={Point:function(b){return new Nk(b.coordinates)},LineString:function(b){return new Tm(b.coordinates)},Polygon:function(b){return new F(b.coordinates)},MultiPoint:function(b){return new Ym(b.coordinates)},MultiLineString:function(b){return new Vm(b.coordinates)},MultiPolygon:function(b){return new Zm(b.coordinates)},GeometryCollection:function(b,c){var d=Sa(b.geometries,function(b){return Jp(b,c)});return new Mm(d)}},Np={Point:function(b){return{type:"Point",coordinates:b.Q()}},LineString:function(b){return{type:"LineString",coordinates:b.Q()}},Polygon:function(b,c){var d;m(c)&&(d=c.rightHanded);return{type:"Polygon",coordinates:b.Q(d)}},MultiPoint:function(b){return{type:"MultiPoint",coordinates:b.Q()}},MultiLineString:function(b){return{type:"MultiLineString",coordinates:b.Q()}},MultiPolygon:function(b,c){var d;m(c)&&(d=c.rightHanded);return{type:"MultiPolygon",coordinates:b.Q(d)}},GeometryCollection:function(b,c){return{type:"GeometryCollection",geometries:Sa(b.d,function(b){return Mp(b,c)})}},Circle:function(){return{type:"GeometryCollection",geometries:[]}}};function Ip(b,c,d){d=Jp(c.geometry,d);var e=new O;m(b.c)&&e.f(b.c);e.Sa(d);m(c.id)&&e.d(c.id);m(c.properties)&&e.C(c.properties);return e}Kp.prototype.b=function(b,c){if("Feature"==b.type)return[Ip(this,b,c)];if("FeatureCollection"==b.type){var d=[],e=b.features,f,g;f=0;for(g=e.length;f<g;++f)d.push(Ip(this,e[f],c));return d}return[]};Kp.prototype.a=function(b,c){c=Cp(this,c);var d={type:"Feature"},e=b.aa;null!=e&&(d.id=e);e=b.R();null!=e&&(d.geometry=Mp(e,c));e=b.I();yb(e,b.b);d.properties=wb(e)?null:e;return d};Kp.prototype.d=function(b,c){c=Cp(this,c);var d=[],e,f;e=0;for(f=b.length;e<f;++e)d.push(this.a(b[e],c));return{type:"FeatureCollection",features:d}};Kp.prototype.f=function(b,c){return Mp(b,Cp(this,c))};function Op(b){if("undefined"!=typeof XMLSerializer)return(new XMLSerializer).serializeToString(b);if(b=b.xml)return b;throw Error("Your browser does not support serializing XML documents");};var Pp;a:if(document.implementation&&document.implementation.createDocument)Pp=document.implementation.createDocument("","",null);else{if("undefined"!=typeof ActiveXObject){var Qp=new ActiveXObject("MSXML2.DOMDocument");if(Qp){Qp.resolveExternals=!1;Qp.validateOnParse=!1;try{Qp.setProperty("ProhibitDTD",!0),Qp.setProperty("MaxXMLSize",2048),Qp.setProperty("MaxElementDepth",256)}catch(Rp){}}if(Qp){Pp=Qp;break a}}throw Error("Your browser does not support creating new documents");}var Sp=Pp;function Tp(b,c){return Sp.createElementNS(b,c)}function Up(b,c){null===b&&(b="");return Sp.createNode(1,c,b)}var Vp=document.implementation&&document.implementation.createDocument?Tp:Up;function Wp(b,c){return Xp(b,c,[]).join("")}function Xp(b,c,d){if(4==b.nodeType||3==b.nodeType)c?d.push(String(b.nodeValue).replace(/(\r\n|\r|\n)/g,"")):d.push(b.nodeValue);else for(b=b.firstChild;null!==b;b=b.nextSibling)Xp(b,c,d);return d}function Yp(b){return b.localName}
function Zp(b){var c=b.localName;return m(c)?c:b.baseName}var $p=Gb?Zp:Yp;function aq(b){return b instanceof Document}function bq(b){return la(b)&&9==b.nodeType}var cq=Gb?bq:aq;function dq(b){return b instanceof Node}function eq(b){return la(b)&&m(b.nodeType)}var fq=Gb?eq:dq;function gq(b,c,d){return b.getAttributeNS(c,d)||""}function hq(b,c,d){var e="";b=iq(b,c,d);m(b)&&(e=b.nodeValue);return e}var jq=document.implementation&&document.implementation.createDocument?gq:hq;function kq(b,c,d){return b.getAttributeNodeNS(c,d)}function lq(b,c,d){var e=null;b=b.attributes;for(var f,g,h=0,k=b.length;h<k;++h)if(f=b[h],f.namespaceURI==c&&(g=f.prefix?f.prefix+":"+d:d,g==f.nodeName)){e=f;break}return e}var iq=document.implementation&&document.implementation.createDocument?kq:lq;function mq(b,c,d,e){b.setAttributeNS(c,d,e)}function nq(b,c,d,e){null===c?b.setAttribute(d,e):(c=b.ownerDocument.createNode(2,d,c),c.nodeValue=e,b.setAttributeNode(c))}
var oq=document.implementation&&document.implementation.createDocument?mq:nq;function pq(b){return(new DOMParser).parseFromString(b,"application/xml")}function qq(b,c){return function(d,e){var f=b.call(c,d,e);m(f)&&ab(e[e.length-1],f)}}function rq(b,c){return function(d,e){var f=b.call(m(c)?c:this,d,e);m(f)&&e[e.length-1].push(f)}}function sq(b,c){return function(d,e){var f=b.call(m(c)?c:this,d,e);m(f)&&(e[e.length-1]=f)}}
function tq(b){return function(c,d){var e=b.call(m(void 0)?void 0:this,c,d);m(e)&&Ab(d[d.length-1],m(void 0)?void 0:c.localName).push(e)}}function P(b,c){return function(d,e){var f=b.call(m(void 0)?void 0:this,d,e);m(f)&&(e[e.length-1][m(c)?c:d.localName]=f)}}function S(b,c,d){return uq(b,c,d)}function T(b,c){return function(d,e,f){b.call(m(c)?c:this,d,e,f);f[f.length-1].node.appendChild(d)}}
function vq(b){var c,d;return function(e,f,g){if(!m(c)){c={};var h={};h[e.localName]=b;c[e.namespaceURI]=h;d=wq(e.localName)}xq(c,d,f,g)}}function wq(b,c){return function(d,e,f){d=e[e.length-1].node;e=b;m(e)||(e=f);f=c;m(c)||(f=d.namespaceURI);return Vp(f,e)}}var yq=wq();function zq(b,c){for(var d=c.length,e=Array(d),f=0;f<d;++f)e[f]=b[c[f]];return e}function uq(b,c,d){d=m(d)?d:{};var e,f;e=0;for(f=b.length;e<f;++e)d[b[e]]=c;return d}
function Aq(b,c,d,e){for(c=c.firstElementChild;null!==c;c=c.nextElementSibling){var f=b[c.namespaceURI];m(f)&&(f=f[c.localName],m(f)&&f.call(e,c,d))}}function V(b,c,d,e,f){e.push(b);Aq(c,d,e,f);return e.pop()}function xq(b,c,d,e,f,g){for(var h=(m(f)?f:d).length,k,n,p=0;p<h;++p)k=d[p],m(k)&&(n=c.call(g,k,e,m(f)?f[p]:void 0),m(n)&&b[n.namespaceURI][n.localName].call(g,n,k,e))}function Bq(b,c,d,e,f,g,h){f.push(b);xq(c,d,e,f,g,h);f.pop()};function Cq(){this.defaultDataProjection=null}v(Cq,Ap);l=Cq.prototype;l.O=function(){return"xml"};l.Nb=function(b,c){if(cq(b))return Dq(this,b,c);if(fq(b))return this.eg(b,c);if(ia(b)){var d=pq(b);return Dq(this,d,c)}return null};function Dq(b,c,d){b=Eq(b,c,d);return 0<b.length?b[0]:null}l.ma=function(b,c){if(cq(b))return Eq(this,b,c);if(fq(b))return this.Ob(b,c);if(ia(b)){var d=pq(b);return Eq(this,d,c)}return[]};function Eq(b,c,d){var e=[];for(c=c.firstChild;null!==c;c=c.nextSibling)1==c.nodeType&&ab(e,b.Ob(c,d));return e}l.Rc=function(b,c){if(cq(b))return this.k(b,c);if(fq(b)){var d=this.Ud(b,[Bp(this,b,m(c)?c:{})]);return m(d)?d:null}return ia(b)?(d=pq(b),this.k(d,c)):null};l.Ja=function(b){return cq(b)?this.Je(b):fq(b)?this.Xd(b):ia(b)?(b=pq(b),this.Je(b)):null};l.Je=function(){return this.defaultDataProjection};l.Xd=function(){return this.defaultDataProjection};l.be=function(b,c){var d=this.o(b,c);return Op(d)};l.Qb=function(b,c){var d=this.a(b,c);return Op(d)};l.Xc=function(b,c){var d=this.i(b,c);return Op(d)};function Fq(b){b=m(b)?b:{};this.featureType=b.featureType;this.featureNS=b.featureNS;this.srsName=b.srsName;this.schemaLocation="";this.c={};this.c["http://www.opengis.net/gml"]={featureMember:sq(Fq.prototype.Sd),featureMembers:sq(Fq.prototype.Sd)};this.defaultDataProjection=null}v(Fq,Cq);l=Fq.prototype;l.Sd=function(b,c){var d=$p(b),e;if("FeatureCollection"==d)e=V(null,this.c,b,c,this);else if("featureMembers"==d||"featureMember"==d){var f=c[0],g=f.featureType;e=f.featureNS;var h,k;if(!m(g)&&null!=b.childNodes){g=[];e={};h=0;for(k=b.childNodes.length;h<k;++h){var n=b.childNodes[h];if(1===n.nodeType){var p=n.nodeName.split(":").pop();if(-1===Pa(g,p)){var q;ub(e,n.namespaceURI)?q=vb(e,function(b){return b===n.namespaceURI}):(q="p"+pb(e),e[q]=n.namespaceURI);g.push(q+":"+p)}}}f.featureType=g;f.featureNS=e}ia(e)&&(h=e,e={},e.p0=h);var f={},g=ga(g)?g:[g],r;for(r in e){p={};h=0;for(k=g.length;h<k;++h)(-1===g[h].indexOf(":")?"p0":g[h].split(":")[0])===r&&(p[g[h].split(":").pop()]="featureMembers"==d?rq(this.Fe,this):sq(this.Fe,this));f[e[r]]=p}e=V([],f,b,c)}m(e)||(e=[]);return e};l.Ud=function(b,c){var d=c[0];d.srsName=b.firstElementChild.getAttribute("srsName");var e=V(null,this.Te,b,c,this);if(null!=e)return Dp(e,!1,d)};l.Fe=function(b,c){var d,e=b.getAttribute("fid")||jq(b,"http://www.opengis.net/gml","id"),f={},g;for(d=b.firstElementChild;null!==d;d=d.nextElementSibling){var h=$p(d);if(0===d.childNodes.length||1===d.childNodes.length&&3===d.firstChild.nodeType){var k=Wp(d,!1);/^[\s\xa0]*$/.test(k)&&(k=void 0);f[h]=k}else"boundedBy"!==h&&(g=h),f[h]=this.Ud(d,c)}d=new O(f);m(g)&&d.f(g);e&&d.d(e);return d};l.kg=function(b,c){var d=this.Td(b,c);if(null!=d){var e=new Nk(null);Ok(e,"XYZ",d);return e}};l.ig=function(b,c){var d=V([],this.Og,b,c,this);if(m(d))return new Ym(d)};l.hg=function(b,c){var d=V([],this.Ng,b,c,this);if(m(d)){var e=new Vm(null);Xm(e,d);return e}};l.jg=function(b,c){var d=V([],this.Pg,b,c,this);if(m(d)){var e=new Zm(null);an(e,d);return e}};l.$f=function(b,c){Aq(this.Sg,b,c,this)};l.yf=function(b,c){Aq(this.Lg,b,c,this)};l.ag=function(b,c){Aq(this.Tg,b,c,this)};l.Vd=function(b,c){var d=this.Td(b,c);if(null!=d){var e=new Tm(null);Um(e,"XYZ",d);return e}};l.zl=function(b,c){var d=V(null,this.Zc,b,c,this);if(null!=d)return d};l.gg=function(b,c){var d=this.Td(b,c);if(m(d)){var e=new Lk(null);Mk(e,"XYZ",d);return e}};l.Wd=function(b,c){var d=V([null],this.fe,b,c,this);if(m(d)&&null!==d[0]){var e=new F(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)ab(f,d[h]),g.push(f.length);$k(e,"XYZ",f,g);return e}};l.Td=function(b,c){return V(null,this.Zc,b,c,this)};l.Og=Object({"http://www.opengis.net/gml":{pointMember:rq(Fq.prototype.$f),pointMembers:rq(Fq.prototype.$f)}});l.Ng=Object({"http://www.opengis.net/gml":{lineStringMember:rq(Fq.prototype.yf),lineStringMembers:rq(Fq.prototype.yf)}});l.Pg=Object({"http://www.opengis.net/gml":{polygonMember:rq(Fq.prototype.ag),polygonMembers:rq(Fq.prototype.ag)}});l.Sg=Object({"http://www.opengis.net/gml":{Point:rq(Fq.prototype.Td)}});l.Lg=Object({"http://www.opengis.net/gml":{LineString:rq(Fq.prototype.Vd)}});l.Tg=Object({"http://www.opengis.net/gml":{Polygon:rq(Fq.prototype.Wd)}});l.$c=Object({"http://www.opengis.net/gml":{LinearRing:sq(Fq.prototype.zl)}});l.Ob=function(b,c){var d={featureType:this.featureType,featureNS:this.featureNS};m(c)&&Db(d,Bp(this,b,c));return this.Sd(b,[d])};l.Xd=function(b){return ze(m(this.q)?this.q:b.firstElementChild.getAttribute("srsName"))};function Gq(b){b=Wp(b,!1);return Hq(b)}function Hq(b){if(b=/^\s*(true|1)|(false|0)\s*$/.exec(b))return m(b[1])||!1}function Iq(b){b=Wp(b,!1);if(b=/^\s*(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?))\s*$/.exec(b)){var c=Date.UTC(parseInt(b[1],10),parseInt(b[2],10)-1,parseInt(b[3],10),parseInt(b[4],10),parseInt(b[5],10),parseInt(b[6],10))/1E3;if("Z"!=b[7]){var d="-"==b[8]?-1:1,c=c+60*d*parseInt(b[9],10);m(b[10])&&(c+=3600*d*parseInt(b[10],10))}return c}}
function Jq(b){b=Wp(b,!1);return Kq(b)}function Kq(b){if(b=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*$/i.exec(b))return parseFloat(b[1])}function Lq(b){b=Wp(b,!1);return Mq(b)}function Mq(b){if(b=/^\s*(\d+)\s*$/.exec(b))return parseInt(b[1],10)}function W(b){b=Wp(b,!1);return Aa(b)}function Nq(b,c){Oq(b,c?"1":"0")}function Pq(b,c){b.appendChild(Sp.createTextNode(c.toPrecision()))}function Qq(b,c){b.appendChild(Sp.createTextNode(c.toString()))}function Oq(b,c){b.appendChild(Sp.createTextNode(c))};function Rq(b){b=m(b)?b:{};Fq.call(this,b);this.n=m(b.surface)?b.surface:!1;this.f=m(b.curve)?b.curve:!1;this.e=m(b.multiCurve)?b.multiCurve:!0;this.g=m(b.multiSurface)?b.multiSurface:!0;this.schemaLocation=m(b.schemaLocation)?b.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd"}v(Rq,Fq);l=Rq.prototype;l.Cl=function(b,c){var d=V([],this.Mg,b,c,this);if(m(d)){var e=new Vm(null);Xm(e,d);return e}};l.Dl=function(b,c){var d=V([],this.Qg,b,c,this);if(m(d)){var e=new Zm(null);an(e,d);return e}};l.gf=function(b,c){Aq(this.Ig,b,c,this)};l.vg=function(b,c){Aq(this.Wg,b,c,this)};l.Gl=function(b,c){return V([null],this.Rg,b,c,this)};l.Il=function(b,c){return V([null],this.Vg,b,c,this)};l.Hl=function(b,c){return V([null],this.fe,b,c,this)};l.Bl=function(b,c){return V([null],this.Zc,b,c,this)};l.Ui=function(b,c){var d=V(void 0,this.$c,b,c,this);m(d)&&c[c.length-1].push(d)};l.sh=function(b,c){var d=V(void 0,this.$c,b,c,this);m(d)&&(c[c.length-1][0]=d)};l.lg=function(b,c){var d=V([null],this.Xg,b,c,this);if(m(d)&&null!==d[0]){var e=new F(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)ab(f,d[h]),g.push(f.length);$k(e,"XYZ",f,g);return e}};l.cg=function(b,c){var d=V([null],this.Jg,b,c,this);if(m(d)){var e=new Tm(null);Um(e,"XYZ",d);return e}};l.yl=function(b,c){var d=V([null],this.Kg,b,c,this);return Vd(d[1][0],d[1][1],d[2][0],d[2][1])};l.Al=function(b,c){for(var d=Wp(b,!1),e=/^\s*([+\-]?\d*\.?\d+(?:[eE][+\-]?\d+)?)\s*/,f=[],g;g=e.exec(d);)f.push(parseFloat(g[1])),d=d.substr(g[0].length);if(""===d){d=c[0].srsName;e="enu";null===d||(e=Ce(ze(d)));if("neu"===e)for(d=0,e=f.length;d<e;d+=3)g=f[d],f[d]=f[d+1],f[d+1]=g;d=f.length;2==d&&f.push(0);return 0===d?void 0:f}};l.He=function(b,c){var d=Wp(b,!1).replace(/^\s*|\s*$/g,""),e=c[0].srsName,f=b.parentNode.getAttribute("srsDimension"),g="enu";null===e||(g=Ce(ze(e)));d=d.split(/\s+/);e=2;fa(b.getAttribute("srsDimension"))?fa(b.getAttribute("dimension"))?null===f||(e=Mq(f)):e=Mq(b.getAttribute("dimension")):e=Mq(b.getAttribute("srsDimension"));for(var h,k,n=[],p=0,q=d.length;p<q;p+=e)f=parseFloat(d[p]),h=parseFloat(d[p+1]),k=3===e?parseFloat(d[p+2]):0,"en"===g.substr(0,2)?n.push(f,h,k):n.push(h,f,k);return n};l.Zc=Object({"http://www.opengis.net/gml":{pos:sq(Rq.prototype.Al),posList:sq(Rq.prototype.He)}});l.fe=Object({"http://www.opengis.net/gml":{interior:Rq.prototype.Ui,exterior:Rq.prototype.sh}});l.Te=Object({"http://www.opengis.net/gml":{Point:sq(Fq.prototype.kg),MultiPoint:sq(Fq.prototype.ig),LineString:sq(Fq.prototype.Vd),MultiLineString:sq(Fq.prototype.hg),LinearRing:sq(Fq.prototype.gg),Polygon:sq(Fq.prototype.Wd),MultiPolygon:sq(Fq.prototype.jg),Surface:sq(Rq.prototype.lg),MultiSurface:sq(Rq.prototype.Dl),Curve:sq(Rq.prototype.cg),MultiCurve:sq(Rq.prototype.Cl),Envelope:sq(Rq.prototype.yl)}});l.Mg=Object({"http://www.opengis.net/gml":{curveMember:rq(Rq.prototype.gf),curveMembers:rq(Rq.prototype.gf)}});l.Qg=Object({"http://www.opengis.net/gml":{surfaceMember:rq(Rq.prototype.vg),surfaceMembers:rq(Rq.prototype.vg)}});l.Ig=Object({"http://www.opengis.net/gml":{LineString:rq(Fq.prototype.Vd),Curve:rq(Rq.prototype.cg)}});l.Wg=Object({"http://www.opengis.net/gml":{Polygon:rq(Fq.prototype.Wd),Surface:rq(Rq.prototype.lg)}});l.Xg=Object({"http://www.opengis.net/gml":{patches:sq(Rq.prototype.Gl)}});l.Jg=Object({"http://www.opengis.net/gml":{segments:sq(Rq.prototype.Il)}});l.Kg=Object({"http://www.opengis.net/gml":{lowerCorner:rq(Rq.prototype.He),upperCorner:rq(Rq.prototype.He)}});l.Rg=Object({"http://www.opengis.net/gml":{PolygonPatch:sq(Rq.prototype.Hl)}});l.Vg=Object({"http://www.opengis.net/gml":{LineStringSegment:sq(Rq.prototype.Bl)}});function Sq(b,c,d){d=d[d.length-1].srsName;c=c.Q();for(var e=c.length,f=Array(e),g,h=0;h<e;++h){g=c[h];var k=h,n="enu";null!=d&&(n=Ce(ze(d)));f[k]="en"===n.substr(0,2)?g[0]+" "+g[1]:g[1]+" "+g[0]}Oq(b,f.join(" "))}
l.Eg=function(b,c,d){var e=d[d.length-1].srsName;null!=e&&b.setAttribute("srsName",e);e=Vp(b.namespaceURI,"pos");b.appendChild(e);d=d[d.length-1].srsName;b="enu";null!=d&&(b=Ce(ze(d)));c=c.Q();Oq(e,"en"===b.substr(0,2)?c[0]+" "+c[1]:c[1]+" "+c[0])};var Tq={"http://www.opengis.net/gml":{lowerCorner:T(Oq),upperCorner:T(Oq)}};l=Rq.prototype;l.um=function(b,c,d){var e=d[d.length-1].srsName;m(e)&&b.setAttribute("srsName",e);Bq({node:b},Tq,yq,[c[0]+" "+c[1],c[2]+" "+c[3]],d,["lowerCorner","upperCorner"],this)};l.Bg=function(b,c,d){var e=d[d.length-1].srsName;null!=e&&b.setAttribute("srsName",e);e=Vp(b.namespaceURI,"posList");b.appendChild(e);Sq(e,c,d)};l.Ug=function(b,c){var d=c[c.length-1],e=d.node,f=d.exteriorWritten;m(f)||(d.exteriorWritten=!0);return Vp(e.namespaceURI,m(f)?"interior":"exterior")};l.ee=function(b,c,d){var e=d[d.length-1].srsName;"PolygonPatch"!==b.nodeName&&null!=e&&b.setAttribute("srsName",e);"Polygon"===b.nodeName||"PolygonPatch"===b.nodeName?(c=c.ld(),Bq({node:b,srsName:e},Uq,this.Ug,c,d,void 0,this)):"Surface"===b.nodeName&&(e=Vp(b.namespaceURI,"patches"),b.appendChild(e),b=Vp(e.namespaceURI,"PolygonPatch"),e.appendChild(b),this.ee(b,c,d))};l.ae=function(b,c,d){var e=d[d.length-1].srsName;"LineStringSegment"!==b.nodeName&&null!=e&&b.setAttribute("srsName",e);"LineString"===b.nodeName||"LineStringSegment"===b.nodeName?(e=Vp(b.namespaceURI,"posList"),b.appendChild(e),Sq(e,c,d)):"Curve"===b.nodeName&&(e=Vp(b.namespaceURI,"segments"),b.appendChild(e),b=Vp(e.namespaceURI,"LineStringSegment"),e.appendChild(b),this.ae(b,c,d))};l.Dg=function(b,c,d){var e=d[d.length-1],f=e.srsName,e=e.surface;null!=f&&b.setAttribute("srsName",f);c=c.qd();Bq({node:b,srsName:f,surface:e},Vq,this.d,c,d,void 0,this)};l.ym=function(b,c,d){var e=d[d.length-1].srsName;null!=e&&b.setAttribute("srsName",e);c=c.Gd();Bq({node:b,srsName:e},Wq,wq("pointMember"),c,d,void 0,this)};l.Cg=function(b,c,d){var e=d[d.length-1],f=e.srsName,e=e.curve;null!=f&&b.setAttribute("srsName",f);c=c.Lc();Bq({node:b,srsName:f,curve:e},Xq,this.d,c,d,void 0,this)};l.Fg=function(b,c,d){var e=Vp(b.namespaceURI,"LinearRing");b.appendChild(e);this.Bg(e,c,d)};l.Gg=function(b,c,d){var e=this.b(c,d);m(e)&&(b.appendChild(e),this.ee(e,c,d))};l.Bm=function(b,c,d){var e=Vp(b.namespaceURI,"Point");b.appendChild(e);this.Eg(e,c,d)};l.Ag=function(b,c,d){var e=this.b(c,d);m(e)&&(b.appendChild(e),this.ae(e,c,d))};l.de=function(b,c,d){var e=d[d.length-1],f=Bb(e);f.node=b;var g;ga(c)?m(e.dataProjection)?g=Ue(c,e.featureProjection,e.dataProjection):g=c:g=Dp(c,!0,e);Bq(f,Yq,this.b,[g],d,void 0,this)};l.xg=function(b,c,d){var e=c.aa;m(e)&&b.setAttribute("fid",e);var e=d[d.length-1],f=e.featureNS,g=c.b;m(e.ec)||(e.ec={},e.ec[f]={});var h=c.I();c=[];var k=[],n;for(n in h){var p=h[n];null!==p&&(c.push(n),k.push(p),n==g?n in e.ec[f]||(e.ec[f][n]=T(this.de,this)):n in e.ec[f]||(e.ec[f][n]=T(Oq)))}n=Bb(e);n.node=b;Bq(n,e.ec,wq(void 0,f),k,d,c)};var Vq={"http://www.opengis.net/gml":{surfaceMember:T(Rq.prototype.Gg),polygonMember:T(Rq.prototype.Gg)}},Wq={"http://www.opengis.net/gml":{pointMember:T(Rq.prototype.Bm)}},Xq={"http://www.opengis.net/gml":{lineStringMember:T(Rq.prototype.Ag),curveMember:T(Rq.prototype.Ag)}},Uq={"http://www.opengis.net/gml":{exterior:T(Rq.prototype.Fg),interior:T(Rq.prototype.Fg)}},Yq={"http://www.opengis.net/gml":{Curve:T(Rq.prototype.ae),MultiCurve:T(Rq.prototype.Cg),Point:T(Rq.prototype.Eg),MultiPoint:T(Rq.prototype.ym),LineString:T(Rq.prototype.ae),MultiLineString:T(Rq.prototype.Cg),LinearRing:T(Rq.prototype.Bg),Polygon:T(Rq.prototype.ee),MultiPolygon:T(Rq.prototype.Dg),Surface:T(Rq.prototype.ee),MultiSurface:T(Rq.prototype.Dg),Envelope:T(Rq.prototype.um)}},Zq={MultiLineString:"lineStringMember",MultiCurve:"curveMember",MultiPolygon:"polygonMember",MultiSurface:"surfaceMember"};Rq.prototype.d=function(b,c){return Vp("http://www.opengis.net/gml",Zq[c[c.length-1].node.nodeName])};Rq.prototype.b=function(b,c){var d=c[c.length-1],e=d.multiSurface,f=d.surface,g=d.curve,d=d.multiCurve,h;ga(b)?h="Envelope":(h=b.O(),"MultiPolygon"===h&&!0===e?h="MultiSurface":"Polygon"===h&&!0===f?h="Surface":"LineString"===h&&!0===g?h="Curve":"MultiLineString"===h&&!0===d&&(h="MultiCurve"));return Vp("http://www.opengis.net/gml",h)};Rq.prototype.i=function(b,c){c=Cp(this,c);var d=Vp("http://www.opengis.net/gml","geom"),e={node:d,srsName:this.srsName,curve:this.f,surface:this.n,multiSurface:this.g,multiCurve:this.e};m(c)&&Db(e,c);this.de(d,b,[e]);return d};Rq.prototype.a=function(b,c){c=Cp(this,c);var d=Vp("http://www.opengis.net/gml","featureMembers");oq(d,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.schemaLocation);var e={srsName:this.srsName,curve:this.f,surface:this.n,multiSurface:this.g,multiCurve:this.e,featureNS:this.featureNS,featureType:this.featureType};m(c)&&Db(e,c);var e=[e],f=e[e.length-1],g=f.featureType,h=f.featureNS,k={};k[h]={};k[h][g]=T(this.xg,this);f=Bb(f);f.node=d;Bq(f,k,wq(g,h),b,e);return d};function $q(b){b=m(b)?b:{};Fq.call(this,b);this.schemaLocation=m(b.schemaLocation)?b.schemaLocation:"http://www.opengis.net/gml http://schemas.opengis.net/gml/2.1.2/feature.xsd"}v($q,Fq);l=$q.prototype;l.fg=function(b,c){var d=Wp(b,!1).replace(/^\s*|\s*$/g,""),e=c[0].srsName,f=b.parentNode.getAttribute("srsDimension"),g="enu";null===e||(g=Ce(ze(e)));d=d.split(/[\s,]+/);e=2;fa(b.getAttribute("srsDimension"))?fa(b.getAttribute("dimension"))?null===f||(e=Mq(f)):e=Mq(b.getAttribute("dimension")):e=Mq(b.getAttribute("srsDimension"));for(var h,k,n=[],p=0,q=d.length;p<q;p+=e)f=parseFloat(d[p]),h=parseFloat(d[p+1]),k=3===e?parseFloat(d[p+2]):0,"en"===g.substr(0,2)?n.push(f,h,k):n.push(h,f,k);return n};l.xl=function(b,c){var d=V([null],this.Hg,b,c,this);return Vd(d[1][0],d[1][1],d[1][3],d[1][4])};l.Si=function(b,c){var d=V(void 0,this.$c,b,c,this);m(d)&&c[c.length-1].push(d)};l.kl=function(b,c){var d=V(void 0,this.$c,b,c,this);m(d)&&(c[c.length-1][0]=d)};l.Zc=Object({"http://www.opengis.net/gml":{coordinates:sq($q.prototype.fg)}});l.fe=Object({"http://www.opengis.net/gml":{innerBoundaryIs:$q.prototype.Si,outerBoundaryIs:$q.prototype.kl}});l.Hg=Object({"http://www.opengis.net/gml":{coordinates:rq($q.prototype.fg)}});l.Te=Object({"http://www.opengis.net/gml":{Point:sq(Fq.prototype.kg),MultiPoint:sq(Fq.prototype.ig),LineString:sq(Fq.prototype.Vd),MultiLineString:sq(Fq.prototype.hg),LinearRing:sq(Fq.prototype.gg),Polygon:sq(Fq.prototype.Wd),MultiPolygon:sq(Fq.prototype.jg),Box:sq($q.prototype.xl)}});function ar(b){b=m(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ze("EPSG:4326");this.c=b.readExtensions}v(ar,Cq);var br=[null,"http://www.topografix.com/GPX/1/0","http://www.topografix.com/GPX/1/1"];function cr(b,c,d){b.push(parseFloat(c.getAttribute("lon")),parseFloat(c.getAttribute("lat")));"ele"in d?(b.push(d.ele),yb(d,"ele")):b.push(0);"time"in d?(b.push(d.time),yb(d,"time")):b.push(0);return b}
function dr(b,c){var d=c[c.length-1],e=b.getAttribute("href");null===e||(d.link=e);Aq(er,b,c)}function fr(b,c){c[c.length-1].extensionsNode_=b}function gr(b,c){var d=c[0],e=V({flatCoordinates:[]},hr,b,c);if(m(e)){var f=e.flatCoordinates;yb(e,"flatCoordinates");var g=new Tm(null);Um(g,"XYZM",f);Dp(g,!1,d);d=new O(g);d.C(e);return d}}
function ir(b,c){var d=c[0],e=V({flatCoordinates:[],ends:[]},jr,b,c);if(m(e)){var f=e.flatCoordinates;yb(e,"flatCoordinates");var g=e.ends;yb(e,"ends");var h=new Vm(null);Wm(h,"XYZM",f,g);Dp(h,!1,d);d=new O(h);d.C(e);return d}}function kr(b,c){var d=c[0],e=V({},lr,b,c);if(m(e)){var f=cr([],b,e),f=new Nk(f,"XYZM");Dp(f,!1,d);d=new O(f);d.C(e);return d}}
var mr={rte:gr,trk:ir,wpt:kr},nr=S(br,{rte:rq(gr),trk:rq(ir),wpt:rq(kr)}),er=S(br,{text:P(W,"linkText"),type:P(W,"linkType")}),hr=S(br,{name:P(W),cmt:P(W),desc:P(W),src:P(W),link:dr,number:P(Lq),extensions:fr,type:P(W),rtept:function(b,c){var d=V({},or,b,c);m(d)&&cr(c[c.length-1].flatCoordinates,b,d)}}),or=S(br,{ele:P(Jq),time:P(Iq)}),jr=S(br,{name:P(W),cmt:P(W),desc:P(W),src:P(W),link:dr,number:P(Lq),type:P(W),extensions:fr,trkseg:function(b,c){var d=c[c.length-1];Aq(pr,b,c);d.ends.push(d.flatCoordinates.length)}}),pr=S(br,{trkpt:function(b,c){var d=V({},qr,b,c);m(d)&&cr(c[c.length-1].flatCoordinates,b,d)}}),qr=S(br,{ele:P(Jq),time:P(Iq)}),lr=S(br,{ele:P(Jq),time:P(Iq),magvar:P(Jq),geoidheight:P(Jq),name:P(W),cmt:P(W),desc:P(W),src:P(W),link:dr,sym:P(W),type:P(W),fix:P(W),sat:P(Lq),hdop:P(Jq),vdop:P(Jq),pdop:P(Jq),ageofdgpsdata:P(Jq),dgpsid:P(Lq),extensions:fr});function rr(b,c){null===c&&(c=[]);for(var d=0,e=c.length;d<e;++d){var f=c[d];if(m(b.c)){var g=f.get("extensionsNode_")||null;b.c(f,g)}f.set("extensionsNode_",void 0)}}ar.prototype.eg=function(b,c){if(!Wa(br,b.namespaceURI))return null;var d=mr[b.localName];if(!m(d))return null;d=d(b,[Bp(this,b,c)]);if(!m(d))return null;rr(this,[d]);return d};ar.prototype.Ob=function(b,c){if(!Wa(br,b.namespaceURI))return[];if("gpx"==b.localName){var d=V([],nr,b,[Bp(this,b,c)]);if(m(d))return rr(this,d),d}return[]};function sr(b,c,d){b.setAttribute("href",c);c=d[d.length-1].properties;Bq({node:b},tr,yq,[c.linkText,c.linkType],d,ur)}function vr(b,c,d){var e=d[d.length-1],f=e.node.namespaceURI,g=e.properties;oq(b,null,"lat",c[1]);oq(b,null,"lon",c[0]);switch(e.geometryLayout){case "XYZM":0!==c[3]&&(g.time=c[3]);case "XYZ":0!==c[2]&&(g.ele=c[2]);break;case "XYM":0!==c[2]&&(g.time=c[2])}c=wr[f];e=zq(g,c);Bq({node:b,properties:g},xr,yq,e,d,c)}
var ur=["text","type"],tr=uq(br,{text:T(Oq),type:T(Oq)}),yr=uq(br,"name cmt desc src link number type rtept".split(" ")),zr=uq(br,{name:T(Oq),cmt:T(Oq),desc:T(Oq),src:T(Oq),link:T(sr),number:T(Qq),type:T(Oq),rtept:vq(T(vr))}),Ar=uq(br,"name cmt desc src link number type trkseg".split(" ")),Dr=uq(br,{name:T(Oq),cmt:T(Oq),desc:T(Oq),src:T(Oq),link:T(sr),number:T(Qq),type:T(Oq),trkseg:vq(T(function(b,c,d){Bq({node:b,geometryLayout:c.a,properties:{}},Br,Cr,c.Q(),d)}))}),Cr=wq("trkpt"),Br=uq(br,{trkpt:T(vr)}),wr=uq(br,"ele time magvar geoidheight name cmt desc src link sym type fix sat hdop vdop pdop ageofdgpsdata dgpsid".split(" ")),xr=uq(br,{ele:T(Pq),time:T(function(b,c){var d=new Date(1E3*c),d=d.getUTCFullYear()+"-"+Ka(d.getUTCMonth()+1)+"-"+Ka(d.getUTCDate())+"T"+Ka(d.getUTCHours())+":"+Ka(d.getUTCMinutes())+":"+Ka(d.getUTCSeconds())+"Z";b.appendChild(Sp.createTextNode(d))}),magvar:T(Pq),geoidheight:T(Pq),name:T(Oq),cmt:T(Oq),desc:T(Oq),src:T(Oq),link:T(sr),sym:T(Oq),type:T(Oq),fix:T(Oq),sat:T(Qq),hdop:T(Pq),vdop:T(Pq),pdop:T(Pq),ageofdgpsdata:T(Pq),dgpsid:T(Qq)}),Er={Point:"wpt",LineString:"rte",MultiLineString:"trk"};function Fr(b,c){var d=b.R();if(m(d))return Vp(c[c.length-1].node.namespaceURI,Er[d.O()])}
var Gr=uq(br,{rte:T(function(b,c,d){var e=d[0],f=c.I();b={node:b,properties:f};c=c.R();m(c)&&(c=Dp(c,!0,e),b.geometryLayout=c.a,f.rtept=c.Q());e=yr[d[d.length-1].node.namespaceURI];f=zq(f,e);Bq(b,zr,yq,f,d,e)}),trk:T(function(b,c,d){var e=d[0],f=c.I();b={node:b,properties:f};c=c.R();m(c)&&(c=Dp(c,!0,e),f.trkseg=c.Lc());e=Ar[d[d.length-1].node.namespaceURI];f=zq(f,e);Bq(b,Dr,yq,f,d,e)}),wpt:T(function(b,c,d){var e=d[0],f=d[d.length-1];f.properties=c.I();c=c.R();m(c)&&(c=Dp(c,!0,e),f.geometryLayout=c.a,vr(b,c.Q(),d))})});ar.prototype.a=function(b,c){c=Cp(this,c);var d=Vp("http://www.topografix.com/GPX/1/1","gpx");Bq({node:d},Gr,Fr,b,[c]);return d};function Hr(b){b=Ir(b);return Sa(b,function(b){return b.b.substring(b.c,b.a)})}function Jr(b,c,d){this.b=b;this.c=c;this.a=d}function Ir(b){for(var c=RegExp("\r\n|\r|\n","g"),d=0,e,f=[];e=c.exec(b);)d=new Jr(b,d,e.index),f.push(d),d=c.lastIndex;d<b.length&&(d=new Jr(b,d,b.length),f.push(d));return f};function Kr(){this.defaultDataProjection=null}v(Kr,Ap);l=Kr.prototype;l.O=function(){return"text"};l.Nb=function(b,c){return this.Qc(ia(b)?b:"",Cp(this,c))};l.ma=function(b,c){return this.Ge(ia(b)?b:"",Cp(this,c))};l.Rc=function(b,c){return this.Sc(ia(b)?b:"",Cp(this,c))};l.Ja=function(){return this.defaultDataProjection};l.be=function(b,c){return this.ce(b,Cp(this,c))};l.Qb=function(b,c){return this.yg(b,Cp(this,c))};l.Xc=function(b,c){return this.Yc(b,Cp(this,c))};function Lr(b){b=m(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ze("EPSG:4326");this.a=m(b.altitudeMode)?b.altitudeMode:"none"}v(Lr,Kr);var Mr=/^B(\d{2})(\d{2})(\d{2})(\d{2})(\d{5})([NS])(\d{3})(\d{5})([EW])([AV])(\d{5})(\d{5})/,Nr=/^H.([A-Z]{3}).*?:(.*)/,Or=/^HFDTE(\d{2})(\d{2})(\d{2})/;Lr.prototype.Qc=function(b,c){var d=this.a,e=Hr(b),f={},g=[],h=2E3,k=0,n=1,p,q;p=0;for(q=e.length;p<q;++p){var r=e[p],s;if("B"==r.charAt(0)){if(s=Mr.exec(r)){var r=parseInt(s[1],10),u=parseInt(s[2],10),y=parseInt(s[3],10),z=parseInt(s[4],10)+parseInt(s[5],10)/6E4;"S"==s[6]&&(z=-z);var A=parseInt(s[7],10)+parseInt(s[8],10)/6E4;"W"==s[9]&&(A=-A);g.push(A,z);"none"!=d&&g.push("gps"==d?parseInt(s[11],10):"barometric"==d?parseInt(s[12],10):0);g.push(Date.UTC(h,k,n,r,u,y)/1E3)}}else if("H"==r.charAt(0))if(s=Or.exec(r))n=parseInt(s[1],10),k=parseInt(s[2],10)-1,h=2E3+parseInt(s[3],10);else if(s=Nr.exec(r))f[s[1]]=Aa(s[2]),Or.exec(r)}if(0===g.length)return null;e=new Tm(null);Um(e,"none"==d?"XYM":"XYZM",g);d=new O(Dp(e,!1,c));d.C(f);return d};Lr.prototype.Ge=function(b,c){var d=this.Qc(b,c);return null===d?[]:[d]};var Pr=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Qr(b){if(Rr){Rr=!1;var c=ba.location;if(c){var d=c.href;if(d&&(d=(d=Qr(d)[3]||null)?decodeURI(d):d)&&d!=c.hostname)throw Rr=!0,Error();}}return b.match(Pr)}var Rr=Ib;function Sr(b,c){for(var d=b.split("&"),e=0;e<d.length;e++){var f=d[e].indexOf("="),g=null,h=null;0<=f?(g=d[e].substring(0,f),h=d[e].substring(f+1)):g=d[e];c(g,h?decodeURIComponent(h.replace(/\+/g," ")):"")}}function Tr(b){if(b[1]){var c=b[0],d=c.indexOf("#");0<=d&&(b.push(c.substr(d)),b[0]=c=c.substr(0,d));d=c.indexOf("?");0>d?b[1]="?":d==c.length-1&&(b[1]=void 0)}return b.join("")}
function Ur(b,c,d){if(ga(c))for(var e=0;e<c.length;e++)Ur(b,String(c[e]),d);else null!=c&&d.push("&",b,""===c?"":"=",encodeURIComponent(String(c)))}function Vr(b,c){for(var d in c)Ur(d,c[d],b);return b};function Wr(b,c){var d;b instanceof Wr?(this.Yb=m(c)?c:b.Yb,Xr(this,b.Pb),this.gc=b.gc,this.sb=b.sb,Yr(this,b.tc),this.rb=b.rb,Zr(this,b.a.clone()),this.Sb=b.Sb):b&&(d=Qr(String(b)))?(this.Yb=!!c,Xr(this,d[1]||"",!0),this.gc=$r(d[2]||""),this.sb=$r(d[3]||"",!0),Yr(this,d[4]),this.rb=$r(d[5]||"",!0),Zr(this,d[6]||"",!0),this.Sb=$r(d[7]||"")):(this.Yb=!!c,this.a=new as(null,0,this.Yb))}l=Wr.prototype;l.Pb="";l.gc="";l.sb="";l.tc=null;l.rb="";l.Sb="";l.Yb=!1;l.toString=function(){var b=[],c=this.Pb;c&&b.push(bs(c,cs,!0),":");if(c=this.sb){b.push("//");var d=this.gc;d&&b.push(bs(d,cs,!0),"@");b.push(encodeURIComponent(String(c)).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));c=this.tc;null!=c&&b.push(":",String(c))}if(c=this.rb)this.sb&&"/"!=c.charAt(0)&&b.push("/"),b.push(bs(c,"/"==c.charAt(0)?ds:es,!0));(c=this.a.toString())&&b.push("?",c);(c=this.Sb)&&b.push("#",bs(c,fs));return b.join("")};l.clone=function(){return new Wr(this)};function Xr(b,c,d){b.Pb=d?$r(c,!0):c;b.Pb&&(b.Pb=b.Pb.replace(/:$/,""))}function Yr(b,c){if(c){c=Number(c);if(isNaN(c)||0>c)throw Error("Bad port number "+c);b.tc=c}else b.tc=null}function Zr(b,c,d){c instanceof as?(b.a=c,gs(b.a,b.Yb)):(d||(c=bs(c,hs)),b.a=new as(c,0,b.Yb))}function is(b){return b instanceof Wr?b.clone():new Wr(b,void 0)}
function js(b,c){b instanceof Wr||(b=is(b));c instanceof Wr||(c=is(c));var d=b,e=c,f=d.clone(),g=!!e.Pb;g?Xr(f,e.Pb):g=!!e.gc;g?f.gc=e.gc:g=!!e.sb;g?f.sb=e.sb:g=null!=e.tc;var h=e.rb;if(g)Yr(f,e.tc);else if(g=!!e.rb)if("/"!=h.charAt(0)&&(d.sb&&!d.rb?h="/"+h:(d=f.rb.lastIndexOf("/"),-1!=d&&(h=f.rb.substr(0,d+1)+h))),d=h,".."==d||"."==d)h="";else if(-1!=d.indexOf("./")||-1!=d.indexOf("/.")){for(var h=0==d.lastIndexOf("/",0),d=d.split("/"),k=[],n=0;n<d.length;){var p=d[n++];"."==p?h&&n==d.length&&k.push(""):".."==p?((1<k.length||1==k.length&&""!=k[0])&&k.pop(),h&&n==d.length&&k.push("")):(k.push(p),h=!0)}h=k.join("/")}else h=d;g?f.rb=h:g=""!==e.a.toString();g?Zr(f,$r(e.a.toString())):g=!!e.Sb;g&&(f.Sb=e.Sb);return f}function $r(b,c){return b?c?decodeURI(b):decodeURIComponent(b):""}function bs(b,c,d){return ia(b)?(b=encodeURI(b).replace(c,ks),d&&(b=b.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),b):null}function ks(b){b=b.charCodeAt(0);return"%"+(b>>4&15).toString(16)+(b&15).toString(16)}
var cs=/[#\/\?@]/g,es=/[\#\?:]/g,ds=/[\#\?]/g,hs=/[\#\?@]/g,fs=/#/g;function as(b,c,d){this.a=b||null;this.c=!!d}function ls(b){b.ga||(b.ga=new Th,b.ya=0,b.a&&Sr(b.a,function(c,d){b.add(decodeURIComponent(c.replace(/\+/g," ")),d)}))}l=as.prototype;l.ga=null;l.ya=null;l.Tb=function(){ls(this);return this.ya};l.add=function(b,c){ls(this);this.a=null;b=ms(this,b);var d=this.ga.get(b);d||this.ga.set(b,d=[]);d.push(c);this.ya++;return this};l.remove=function(b){ls(this);b=ms(this,b);return Vh(this.ga.c,b)?(this.a=null,this.ya-=this.ga.get(b).length,this.ga.remove(b)):!1};l.clear=function(){this.ga=this.a=null;this.ya=0};l.la=function(){ls(this);return 0==this.ya};function ns(b,c){ls(b);c=ms(b,c);return Vh(b.ga.c,c)}l.G=function(){ls(this);for(var b=this.ga.ob(),c=this.ga.G(),d=[],e=0;e<c.length;e++)for(var f=b[e],g=0;g<f.length;g++)d.push(c[e]);return d};l.ob=function(b){ls(this);var c=[];if(ia(b))ns(this,b)&&(c=Ya(c,this.ga.get(ms(this,b))));else{b=this.ga.ob();for(var d=0;d<b.length;d++)c=Ya(c,b[d])}return c};l.set=function(b,c){ls(this);this.a=null;b=ms(this,b);ns(this,b)&&(this.ya-=this.ga.get(b).length);this.ga.set(b,[c]);this.ya++;return this};l.get=function(b,c){var d=b?this.ob(b):[];return 0<d.length?String(d[0]):c};function os(b,c,d){b.remove(c);0<d.length&&(b.a=null,b.ga.set(ms(b,c),Za(d)),b.ya+=d.length)}
l.toString=function(){if(this.a)return this.a;if(!this.ga)return"";for(var b=[],c=this.ga.G(),d=0;d<c.length;d++)for(var e=c[d],f=encodeURIComponent(String(e)),e=this.ob(e),g=0;g<e.length;g++){var h=f;""!==e[g]&&(h+="="+encodeURIComponent(String(e[g])));b.push(h)}return this.a=b.join("&")};l.clone=function(){var b=new as;b.a=this.a;this.ga&&(b.ga=this.ga.clone(),b.ya=this.ya);return b};function ms(b,c){var d=String(c);b.c&&(d=d.toLowerCase());return d}
function gs(b,c){c&&!b.c&&(ls(b),b.a=null,b.ga.forEach(function(b,c){var f=c.toLowerCase();c!=f&&(this.remove(c),os(this,f,b))},b));b.c=c};function ps(b){b=m(b)?b:{};this.d=b.font;this.f=b.rotation;this.c=b.scale;this.b=b.text;this.g=b.textAlign;this.n=b.textBaseline;this.a=m(b.fill)?b.fill:null;this.e=m(b.stroke)?b.stroke:null;this.i=m(b.offsetX)?b.offsetX:0;this.k=m(b.offsetY)?b.offsetY:0}l=ps.prototype;l.Fh=function(){return this.d};l.Vh=function(){return this.i};l.Wh=function(){return this.k};l.Vk=function(){return this.a};l.Wk=function(){return this.f};l.Xk=function(){return this.c};l.Yk=function(){return this.e};l.Zk=function(){return this.b};l.di=function(){return this.g};l.ei=function(){return this.n};l.Xl=function(b){this.d=b};l.Wl=function(b){this.a=b};l.$k=function(b){this.f=b};l.al=function(b){this.c=b};l.em=function(b){this.e=b};l.fm=function(b){this.b=b};l.gm=function(b){this.g=b};l.hm=function(b){this.n=b};function qs(b){function c(b){return ga(b)?b:ia(b)?(!(b in e)&&"#"+b in e&&(b="#"+b),c(e[b])):d}b=m(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ze("EPSG:4326");var d=m(b.defaultStyle)?b.defaultStyle:rs,e={};this.b=m(b.extractStyles)?b.extractStyles:!0;this.c=e;this.d=function(){var b=this.get("Style");if(m(b))return b;b=this.get("styleUrl");return m(b)?c(b):d}}v(qs,Cq);var ss=["http://www.google.com/kml/ext/2.2"],ts=[null,"http://earth.google.com/kml/2.0","http://earth.google.com/kml/2.1","http://earth.google.com/kml/2.2","http://www.opengis.net/kml/2.2"],us=[255,255,255,1],vs=new ul({color:us}),ws=[20,2],xs=[64,64],ys=new Aj({anchor:ws,anchorOrigin:"bottom-left",anchorXUnits:"pixels",anchorYUnits:"pixels",crossOrigin:"anonymous",rotation:0,scale:.5,size:xs,src:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"}),zs=new ql({color:us,width:1}),As=new ps({font:"normal 16px Helvetica",fill:vs,stroke:zs,scale:1}),rs=[new wl({fill:vs,image:ys,text:As,stroke:zs,zIndex:0})],Bs={fraction:"fraction",pixels:"pixels"};function Cs(b){b=Wp(b,!1);if(b=/^\s*#?\s*([0-9A-Fa-f]{8})\s*$/.exec(b))return b=b[1],[parseInt(b.substr(6,2),16),parseInt(b.substr(4,2),16),parseInt(b.substr(2,2),16),parseInt(b.substr(0,2),16)/255]}
function Ds(b){b=Wp(b,!1);for(var c=[],d=/^\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?)(?:\s*,\s*([+\-]?\d*\.?\d+(?:e[+\-]?\d+)?))?\s*/i,e;e=d.exec(b);)c.push(parseFloat(e[1]),parseFloat(e[2]),e[3]?parseFloat(e[3]):0),b=b.substr(e[0].length);return""!==b?void 0:c}function Es(b){var c=Wp(b,!1);return null!=b.baseURI?js(b.baseURI,Aa(c)).toString():Aa(c)}function Fs(b){b=Jq(b);if(m(b))return Math.sqrt(b)}function Gs(b,c){return V(null,Hs,b,c)}
function Is(b,c){var d=V({j:[],wg:[]},Js,b,c);if(m(d)){var e=d.j,d=d.wg,f,g;f=0;for(g=Math.min(e.length,d.length);f<g;++f)e[4*f+3]=d[f];d=new Tm(null);Um(d,"XYZM",e);return d}}function Ks(b,c){var d=V(null,Ls,b,c);if(m(d)){var e=new Tm(null);Um(e,"XYZ",d);return e}}function Ms(b,c){var d=V(null,Ls,b,c);if(m(d)){var e=new F(null);$k(e,"XYZ",d,[d.length]);return e}}
function Ns(b,c){var d=V([],Os,b,c);if(!m(d))return null;if(0===d.length)return new Mm(d);var e=!0,f=d[0].O(),g,h,k;h=1;for(k=d.length;h<k;++h)if(g=d[h],g.O()!=f){e=!1;break}if(e){if("Point"==f){g=d[0];e=g.a;f=g.j;h=1;for(k=d.length;h<k;++h)g=d[h],ab(f,g.j);d=new Ym(null);tk(d,e,f);d.l();return d}return"LineString"==f?(g=new Vm(null),Xm(g,d),g):"Polygon"==f?(g=new Zm(null),an(g,d),g):"GeometryCollection"==f?new Mm(d):null}return new Mm(d)}
function Ps(b,c){var d=V(null,Ls,b,c);if(null!=d){var e=new Nk(null);Ok(e,"XYZ",d);return e}}function Qs(b,c){var d=V([null],Rs,b,c);if(null!=d&&null!==d[0]){var e=new F(null),f=d[0],g=[f.length],h,k;h=1;for(k=d.length;h<k;++h)ab(f,d[h]),g.push(f.length);$k(e,"XYZ",f,g);return e}}
function Ss(b,c){var d=V({},Ts,b,c);if(!m(d))return null;var e=zb(d,"fillStyle",vs),f=d.fill;m(f)&&!f&&(e=null);var f=zb(d,"imageStyle",ys),g=zb(d,"textStyle",As),h=zb(d,"strokeStyle",zs),d=d.outline;m(d)&&!d&&(h=null);return[new wl({fill:e,image:f,stroke:h,text:g,zIndex:void 0})]}function Us(b,c){Aq(Vs,b,c)}
var Ws=S(ts,{value:sq(W)}),Vs=S(ts,{Data:function(b,c){var d=b.getAttribute("name");if(null!==d){var e=V(void 0,Ws,b,c);m(e)&&(c[c.length-1][d]=e)}},SchemaData:function(b,c){Aq(Xs,b,c)}}),Hs=S(ts,{coordinates:sq(Ds)}),Rs=S(ts,{innerBoundaryIs:function(b,c){var d=V(void 0,Ys,b,c);m(d)&&c[c.length-1].push(d)},outerBoundaryIs:function(b,c){var d=V(void 0,Zs,b,c);m(d)&&(c[c.length-1][0]=d)}}),Js=S(ts,{when:function(b,c){var d=c[c.length-1].wg,e=Wp(b,!1);if(e=/^\s*(\d{4})($|-(\d{2})($|-(\d{2})($|T(\d{2}):(\d{2}):(\d{2})(Z|(?:([+\-])(\d{2})(?::(\d{2}))?)))))\s*$/.exec(e)){var f=Date.UTC(parseInt(e[1],10),m(e[3])?parseInt(e[3],10)-1:0,m(e[5])?parseInt(e[5],10):1,m(e[7])?parseInt(e[7],10):0,m(e[8])?parseInt(e[8],10):0,m(e[9])?parseInt(e[9],10):0);if(m(e[10])&&"Z"!=e[10]){var g="-"==e[11]?-1:1,f=f+60*g*parseInt(e[12],10);m(e[13])&&(f+=3600*g*parseInt(e[13],10))}d.push(f)}else d.push(0)}},S(ss,{coord:function(b,c){var d=c[c.length-1].j,e=Wp(b,!1);(e=/^\s*([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s+([+\-]?\d+(?:\.\d*)?(?:e[+\-]?\d*)?)\s*$/i.exec(e))?d.push(parseFloat(e[1]),parseFloat(e[2]),parseFloat(e[3]),0):d.push(0,0,0,0)}})),Ls=S(ts,{coordinates:sq(Ds)}),$s=S(ts,{href:P(Es)},S(ss,{x:P(Jq),y:P(Jq),w:P(Jq),h:P(Jq)})),at=S(ts,{Icon:P(function(b,c){var d=V({},$s,b,c);return m(d)?d:null}),heading:P(Jq),hotSpot:P(function(b){var c=b.getAttribute("xunits"),d=b.getAttribute("yunits");return{x:parseFloat(b.getAttribute("x")),Qe:Bs[c],y:parseFloat(b.getAttribute("y")),Re:Bs[d]}}),scale:P(Fs)}),Ys=S(ts,{LinearRing:sq(Gs)}),bt=S(ts,{color:P(Cs),scale:P(Fs)}),ct=S(ts,{color:P(Cs),width:P(Jq)}),Os=S(ts,{LineString:rq(Ks),LinearRing:rq(Ms),MultiGeometry:rq(Ns),Point:rq(Ps),Polygon:rq(Qs)}),dt=S(ss,{Track:rq(Is)}),ft=S(ts,{ExtendedData:Us,Link:function(b,c){Aq(et,b,c)},address:P(W),description:P(W),name:P(W),open:P(Gq),phoneNumber:P(W),visibility:P(Gq)}),et=S(ts,{href:P(Es)}),Zs=S(ts,{LinearRing:sq(Gs)}),gt=S(ts,{Style:P(Ss),key:P(W),styleUrl:P(function(b){var c=Aa(Wp(b,!1));return null!=b.baseURI?js(b.baseURI,c).toString():c})}),it=S(ts,{ExtendedData:Us,MultiGeometry:P(Ns,"geometry"),LineString:P(Ks,"geometry"),LinearRing:P(Ms,"geometry"),Point:P(Ps,"geometry"),Polygon:P(Qs,"geometry"),Style:P(Ss),StyleMap:function(b,c){var d=V(void 0,ht,b,c);if(m(d)){var e=c[c.length-1];ga(d)?e.Style=d:ia(d)&&(e.styleUrl=d)}},address:P(W),description:P(W),name:P(W),open:P(Gq),phoneNumber:P(W),styleUrl:P(Es),visibility:P(Gq)},S(ss,{MultiTrack:P(function(b,c){var d=V([],dt,b,c);if(m(d)){var e=new Vm(null);Xm(e,d);return e}},"geometry"),Track:P(Is,"geometry")})),jt=S(ts,{color:P(Cs),fill:P(Gq),outline:P(Gq)}),Xs=S(ts,{SimpleData:function(b,c){var d=b.getAttribute("name");if(null!==d){var e=W(b);c[c.length-1][d]=e}}}),Ts=S(ts,{IconStyle:function(b,c){var d=V({},at,b,c);if(m(d)){var e=c[c.length-1],f=zb(d,"Icon",{}),g;g=f.href;g=m(g)?g:"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png";var h,k,n,p=d.hotSpot;m(p)?(h=[p.x,p.y],k=p.Qe,n=p.Re):"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"===g?(h=ws,n=k="pixels"):/^http:\/\/maps\.(?:google|gstatic)\.com\//.test(g)&&(h=[.5,0],n=k="fraction");var q,p=f.x,r=f.y;m(p)&&m(r)&&(q=[p,r]);var s,p=f.w,f=f.h;m(p)&&m(f)&&(s=[p,f]);var u,f=d.heading;m(f)&&(u=Yb(f));d=d.scale;"https://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png"==g&&(s=xs);h=new Aj({anchor:h,anchorOrigin:"bottom-left",anchorXUnits:k,anchorYUnits:n,crossOrigin:"anonymous",offset:q,offsetOrigin:"bottom-left",rotation:u,scale:d,size:s,src:g});e.imageStyle=h}},LabelStyle:function(b,c){var d=V({},bt,b,c);m(d)&&(c[c.length-1].textStyle=new ps({fill:new ul({color:zb(d,"color",us)}),scale:d.scale}))},LineStyle:function(b,c){var d=V({},ct,b,c);m(d)&&(c[c.length-1].strokeStyle=new ql({color:zb(d,"color",us),width:zb(d,"width",1)}))},PolyStyle:function(b,c){var d=V({},jt,b,c);if(m(d)){var e=c[c.length-1];e.fillStyle=new ul({color:zb(d,"color",us)});var f=d.fill;m(f)&&(e.fill=f);d=d.outline;m(d)&&(e.outline=d)}}}),ht=S(ts,{Pair:function(b,c){var d=V({},gt,b,c);if(m(d)){var e=d.key;m(e)&&"normal"==e&&(e=d.styleUrl,m(e)&&(c[c.length-1]=e),d=d.Style,m(d)&&(c[c.length-
1]=d))}}});l=qs.prototype;l.dg=function(b,c){$p(b);var d=S(ts,{Folder:qq(this.dg,this),Placemark:rq(this.Ie,this),Style:ra(this.Kl,this),StyleMap:ra(this.Jl,this)}),d=V([],d,b,c,this);if(m(d))return d};l.Ie=function(b,c){var d=V({geometry:null},it,b,c);if(m(d)){var e=new O,f=b.getAttribute("id");null===f||e.d(f);f=c[0];null!=d.geometry&&Dp(d.geometry,!1,f);e.C(d);this.b&&e.i(this.d);return e}};l.Kl=function(b,c){var d=b.getAttribute("id");if(null!==d){var e=Ss(b,c);m(e)&&(d=null!=b.baseURI?js(b.baseURI,"#"+d).toString():"#"+d,this.c[d]=e)}};l.Jl=function(b,c){var d=b.getAttribute("id");if(null!==d){var e=V(void 0,ht,b,c);m(e)&&(d=null!=b.baseURI?js(b.baseURI,"#"+d).toString():"#"+d,this.c[d]=e)}};l.eg=function(b,c){if(!Wa(ts,b.namespaceURI))return null;var d=this.Ie(b,[Bp(this,b,c)]);return m(d)?d:null};l.Ob=function(b,c){if(!Wa(ts,b.namespaceURI))return[];var d;d=$p(b);if("Document"==d||"Folder"==d)return d=this.dg(b,[Bp(this,b,c)]),m(d)?d:[];if("Placemark"==d)return d=this.Ie(b,[Bp(this,b,c)]),m(d)?[d]:[];if("kml"==d){d=[];var e;for(e=b.firstElementChild;null!==e;e=e.nextElementSibling){var f=this.Ob(e,c);m(f)&&ab(d,f)}return d}return[]};l.El=function(b){if(cq(b))return kt(this,b);if(fq(b))return lt(this,b);if(ia(b))return b=pq(b),kt(this,b)};function kt(b,c){var d;for(d=c.firstChild;null!==d;d=d.nextSibling)if(1==d.nodeType){var e=lt(b,d);if(m(e))return e}}function lt(b,c){var d;for(d=c.firstElementChild;null!==d;d=d.nextElementSibling)if(Wa(ts,d.namespaceURI)&&"name"==d.localName)return W(d);for(d=c.firstElementChild;null!==d;d=d.nextElementSibling){var e=$p(d);if(Wa(ts,d.namespaceURI)&&("Document"==e||"Folder"==e||"Placemark"==e||"kml"==e)&&(e=lt(b,d),m(e)))return e}}
l.Fl=function(b){var c=[];cq(b)?ab(c,mt(this,b)):fq(b)?ab(c,nt(this,b)):ia(b)&&(b=pq(b),ab(c,mt(this,b)));return c};function mt(b,c){var d,e=[];for(d=c.firstChild;null!==d;d=d.nextSibling)1==d.nodeType&&ab(e,nt(b,d));return e}
function nt(b,c){var d,e=[];for(d=c.firstElementChild;null!==d;d=d.nextElementSibling)if(Wa(ts,d.namespaceURI)&&"NetworkLink"==d.localName){var f=V({},ft,d,[]);e.push(f)}for(d=c.firstElementChild;null!==d;d=d.nextElementSibling)f=$p(d),!Wa(ts,d.namespaceURI)||"Document"!=f&&"Folder"!=f&&"kml"!=f||ab(e,nt(b,d));return e}function ot(b,c){var d=qg(c),d=[255*(4==d.length?d[3]:1),d[2],d[1],d[0]],e;for(e=0;4>e;++e){var f=parseInt(d[e],10).toString(16);d[e]=1==f.length?"0"+f:f}Oq(b,d.join(""))}
function pt(b,c,d){Bq({node:b},qt,rt,[c],d)}function st(b,c,d){var e={node:b};null!=c.aa&&b.setAttribute("id",c.aa);b=c.I();var f=c.a;m(f)&&(f=f.call(c,0),null!==f&&0<f.length&&(b.Style=f[0],f=f[0].c,null===f||(b.name=f.b)));f=tt[d[d.length-1].node.namespaceURI];b=zq(b,f);Bq(e,ut,yq,b,d,f);b=d[0];c=c.R();null!=c&&(c=Dp(c,!0,b));Bq(e,ut,vt,[c],d)}function wt(b,c,d){var e=c.j;b={node:b};b.layout=c.a;b.stride=c.B;Bq(b,xt,yt,[e],d)}
function zt(b,c,d){c=c.ld();var e=c.shift();b={node:b};Bq(b,At,Bt,c,d);Bq(b,At,Ct,[e],d)}function Dt(b,c){Pq(b,c*c)}
var Et=uq(ts,["Document","Placemark"]),Ht=uq(ts,{Document:T(function(b,c,d){Bq({node:b},Ft,Gt,c,d)}),Placemark:T(st)}),Ft=uq(ts,{Placemark:T(st)}),It={Point:"Point",LineString:"LineString",LinearRing:"LinearRing",Polygon:"Polygon",MultiPoint:"MultiGeometry",MultiLineString:"MultiGeometry",MultiPolygon:"MultiGeometry"},Jt=uq(ts,["href"],uq(ss,["x","y","w","h"])),Kt=uq(ts,{href:T(Oq)},uq(ss,{x:T(Pq),y:T(Pq),w:T(Pq),h:T(Pq)})),Lt=uq(ts,["scale","heading","Icon","hotSpot"]),Nt=uq(ts,{Icon:T(function(b,c,d){b={node:b};var e=Jt[d[d.length-1].node.namespaceURI],f=zq(c,e);Bq(b,Kt,yq,f,d,e);e=Jt[ss[0]];f=zq(c,e);Bq(b,Kt,Mt,f,d,e)}),heading:T(Pq),hotSpot:T(function(b,c){b.setAttribute("x",c.x);b.setAttribute("y",c.y);b.setAttribute("xunits",c.Qe);b.setAttribute("yunits",c.Re)}),scale:T(Dt)}),Ot=uq(ts,["color","scale"]),Pt=uq(ts,{color:T(ot),scale:T(Dt)}),Qt=uq(ts,["color","width"]),Rt=uq(ts,{color:T(ot),width:T(Pq)}),qt=uq(ts,{LinearRing:T(wt)}),St=uq(ts,{LineString:T(wt),Point:T(wt),Polygon:T(zt)}),tt=uq(ts,"name open visibility address phoneNumber description styleUrl Style".split(" ")),ut=uq(ts,{MultiGeometry:T(function(b,c,d){b={node:b};var e=c.O(),f,g;"MultiPoint"==e?(f=c.Gd(),g=Tt):"MultiLineString"==e?(f=c.Lc(),g=Ut):"MultiPolygon"==e&&(f=c.qd(),g=Vt);Bq(b,St,g,f,d)}),LineString:T(wt),LinearRing:T(wt),Point:T(wt),Polygon:T(zt),Style:T(function(b,c,d){b={node:b};var e={},f=c.f,g=c.b,h=c.e;c=c.c;null===h||(e.IconStyle=h);null===c||(e.LabelStyle=c);null===g||(e.LineStyle=g);null===f||(e.PolyStyle=f);c=Wt[d[d.length-1].node.namespaceURI];e=zq(e,c);Bq(b,Xt,yq,e,d,c)}),address:T(Oq),description:T(Oq),name:T(Oq),open:T(Nq),phoneNumber:T(Oq),styleUrl:T(Oq),visibility:T(Nq)}),xt=uq(ts,{coordinates:T(function(b,c,d){d=d[d.length-1];var e=d.layout;d=d.stride;var f;"XY"==e||"XYM"==e?f=2:("XYZ"==e||"XYZM"==e)&&(f=3);var g,h=c.length,k="";if(0<h){k+=c[0];for(e=1;e<f;++e)k+=","+c[e];for(g=d;g<h;g+=d)for(k+=" "+c[g],e=1;e<f;++e)k+=","+c[g+e]}Oq(b,k)})}),At=uq(ts,{outerBoundaryIs:T(pt),innerBoundaryIs:T(pt)}),Yt=uq(ts,{color:T(ot)}),Wt=uq(ts,["IconStyle","LabelStyle","LineStyle","PolyStyle"]),Xt=uq(ts,{IconStyle:T(function(b,c,d){b={node:b};var e={},f=c.gb(),g=c.kd(),h={href:c.a.e};if(null!==f){h.w=f[0];h.h=f[1];var k=c.wb(),n=c.Cb();null!==n&&null!==g&&0!==n[0]&&n[1]!==f[1]&&(h.x=n[0],h.y=g[1]-(n[1]+f[1]));null===k||0===k[0]||k[1]===f[1]||(e.hotSpot={x:k[0],Qe:"pixels",y:f[1]-k[1],Re:"pixels"})}e.Icon=h;f=c.k;1!==f&&(e.scale=f);c=c.i;0!==c&&(e.heading=c);c=Lt[d[d.length-1].node.namespaceURI];e=zq(e,c);Bq(b,Nt,yq,e,d,c)}),LabelStyle:T(function(b,c,d){b={node:b};var e={},f=c.a;null===f||(e.color=f.a);c=c.c;m(c)&&1!==c&&(e.scale=c);c=Ot[d[d.length-1].node.namespaceURI];e=zq(e,c);Bq(b,Pt,yq,e,d,c)}),LineStyle:T(function(b,c,d){b={node:b};var e=Qt[d[d.length-1].node.namespaceURI];c=zq({color:c.a,width:c.c},e);Bq(b,Rt,yq,c,d,e)}),PolyStyle:T(function(b,c,d){Bq({node:b},Yt,Zt,[c.a],d)})});function Mt(b,c,d){return Vp(ss[0],"gx:"+d)}
function Gt(b,c){return Vp(c[c.length-1].node.namespaceURI,"Placemark")}function vt(b,c){if(null!=b)return Vp(c[c.length-1].node.namespaceURI,It[b.O()])}var Zt=wq("color"),yt=wq("coordinates"),Bt=wq("innerBoundaryIs"),Tt=wq("Point"),Ut=wq("LineString"),rt=wq("LinearRing"),Vt=wq("Polygon"),Ct=wq("outerBoundaryIs");qs.prototype.a=function(b,c){c=Cp(this,c);var d=Vp(ts[4],"kml");oq(d,"http://www.w3.org/2000/xmlns/","xmlns:gx",ss[0]);oq(d,"http://www.w3.org/2000/xmlns/","xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance");oq(d,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation","http://www.opengis.net/kml/2.2 https://developers.google.com/kml/schema/kml22gx.xsd");var e={node:d},f={};1<b.length?f.Document=b:1==b.length&&(f.Placemark=b[0]);var g=Et[d.namespaceURI],f=zq(f,g);Bq(e,Ht,yq,f,[c],g);return d};function $t(){this.defaultDataProjection=null;this.defaultDataProjection=ze("EPSG:4326")}v($t,Cq);function au(b,c){c[c.length-1].Vc[b.getAttribute("k")]=b.getAttribute("v")}
var bu=[null],cu=S(bu,{nd:function(b,c){c[c.length-1].rc.push(b.getAttribute("ref"))},tag:au}),eu=S(bu,{node:function(b,c){var d=c[0],e=c[c.length-1],f=b.getAttribute("id"),g=[parseFloat(b.getAttribute("lon")),parseFloat(b.getAttribute("lat"))];e.Bf[f]=g;var h=V({Vc:{}},du,b,c);wb(h.Vc)||(g=new Nk(g),Dp(g,!1,d),d=new O(g),d.d(f),d.C(h.Vc),e.features.push(d))},way:function(b,c){for(var d=c[0],e=b.getAttribute("id"),f=V({rc:[],Vc:{}},cu,b,c),g=c[c.length-1],h=[],k=0,n=f.rc.length;k<n;k++)ab(h,g.Bf[f.rc[k]]);f.rc[0]==f.rc[f.rc.length-1]?(k=new F(null),$k(k,"XY",h,[h.length])):(k=new Tm(null),Um(k,"XY",h));Dp(k,!1,d);d=new O(k);d.d(e);d.C(f.Vc);g.features.push(d)}}),du=S(bu,{tag:au});$t.prototype.Ob=function(b,c){var d=Bp(this,b,c);return"osm"==b.localName&&(d=V({Bf:{},features:[]},eu,b,[d]),m(d.features))?d.features:[]};function fu(b){return b.getAttributeNS("http://www.w3.org/1999/xlink","href")};function gu(){}gu.prototype.b=function(b){return cq(b)?this.c(b):fq(b)?this.a(b):ia(b)?(b=pq(b),this.c(b)):null};function hu(){}v(hu,gu);hu.prototype.c=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};hu.prototype.a=function(b){b=V({},iu,b,[]);return m(b)?b:null};var ju=[null,"http://www.opengis.net/ows/1.1"],iu=S(ju,{ServiceIdentification:P(function(b,c){return V({},ku,b,c)}),ServiceProvider:P(function(b,c){return V({},lu,b,c)}),OperationsMetadata:P(function(b,c){return V({},mu,b,c)})}),nu=S(ju,{DeliveryPoint:P(W),City:P(W),AdministrativeArea:P(W),PostalCode:P(W),Country:P(W),ElectronicMailAddress:P(W)}),ou=S(ju,{Value:tq(function(b){return W(b)})}),pu=S(ju,{AllowedValues:P(function(b,c){return V({},ou,b,c)})}),ru=S(ju,{Phone:P(function(b,c){return V({},qu,b,c)}),Address:P(function(b,c){return V({},nu,b,c)})}),tu=S(ju,{HTTP:P(function(b,c){return V({},su,b,c)})}),su=S(ju,{Get:tq(function(b,c){var d=fu(b);return m(d)?V({href:d},uu,b,c):void 0}),Post:void 0}),vu=S(ju,{DCP:P(function(b,c){return V({},tu,b,c)})}),mu=S(ju,{Operation:function(b,c){var d=b.getAttribute("name"),e=V({},vu,b,c);m(e)&&(c[c.length-1][d]=e)}}),qu=S(ju,{Voice:P(W),Facsimile:P(W)}),uu=S(ju,{Constraint:tq(function(b,c){var d=b.getAttribute("name");return m(d)?V({name:d},pu,b,c):void 0})}),wu=S(ju,{IndividualName:P(W),PositionName:P(W),ContactInfo:P(function(b,c){return V({},ru,b,c)})}),ku=S(ju,{Title:P(W),ServiceTypeVersion:P(W),ServiceType:P(W)}),lu=S(ju,{ProviderName:P(W),ProviderSite:P(fu),ServiceContact:P(function(b,c){return V({},wu,b,c)})});function xu(b,c,d,e){var f;m(e)?f=m(void 0)?void 0:0:(e=[],f=0);var g,h;for(g=0;g<c;)for(h=b[g++],e[f++]=b[g++],e[f++]=h,h=2;h<d;++h)e[f++]=b[g++];e.length=f};function yu(b){b=m(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ze("EPSG:4326");this.a=m(b.factor)?b.factor:1E5;this.c=m(b.geometryLayout)?b.geometryLayout:"XY"}v(yu,Kr);function zu(b,c,d){d=m(d)?d:1E5;var e,f=Array(c);for(e=0;e<c;++e)f[e]=0;var g,h;g=0;for(h=b.length;g<h;)for(e=0;e<c;++e,++g){var k=b[g],n=k-f[e];f[e]=k;b[g]=n}return Au(b,d)}
function Bu(b,c,d){var e=m(d)?d:1E5,f=Array(c);for(d=0;d<c;++d)f[d]=0;b=Cu(b,e);var g,e=0;for(g=b.length;e<g;)for(d=0;d<c;++d,++e)f[d]+=b[e],b[e]=f[d];return b}function Au(b,c){var d=m(c)?c:1E5,e,f;e=0;for(f=b.length;e<f;++e)b[e]=Math.round(b[e]*d);d=0;for(e=b.length;d<e;++d)f=b[d],b[d]=0>f?~(f<<1):f<<1;d="";e=0;for(f=b.length;e<f;++e){for(var g=b[e],h=void 0,k="";32<=g;)h=(32|g&31)+63,k+=String.fromCharCode(h),g>>=5;h=g+63;k+=String.fromCharCode(h);d+=k}return d}
function Cu(b,c){var d=m(c)?c:1E5,e=[],f=0,g=0,h,k;h=0;for(k=b.length;h<k;++h){var n=b.charCodeAt(h)-63,f=f|(n&31)<<g;32>n?(e.push(f),g=f=0):g+=5}f=0;for(g=e.length;f<g;++f)h=e[f],e[f]=h&1?~(h>>1):h>>1;f=0;for(g=e.length;f<g;++f)e[f]/=d;return e}l=yu.prototype;l.Qc=function(b,c){var d=this.Sc(b,c);return new O(d)};l.Ge=function(b,c){return[this.Qc(b,c)]};l.Sc=function(b,c){var d=sk(this.c),e=Bu(b,d,this.a);xu(e,e.length,d,e);d=Hk(e,0,e.length,d);return Dp(new Tm(d,this.c),!1,Cp(this,c))};l.ce=function(b,c){var d=b.R();return null!=d?this.Yc(d,c):""};l.yg=function(b,c){return this.ce(b[0],c)};l.Yc=function(b,c){b=Dp(b,!0,Cp(this,c));var d=b.j,e=b.B;xu(d,d.length,e,d);return zu(d,e,this.a)};function Du(b){b=m(b)?b:{};this.defaultDataProjection=null;this.defaultDataProjection=ze(null!=b.defaultDataProjection?b.defaultDataProjection:"EPSG:4326")}v(Du,Gp);function Eu(b,c){var d=[],e,f,g,h;g=0;for(h=b.length;g<h;++g)e=b[g],0<g&&d.pop(),0<=e?f=c[e]:f=c[~e].slice().reverse(),d.push.apply(d,f);e=0;for(f=d.length;e<f;++e)d[e]=d[e].slice();return d}function Fu(b,c,d,e,f){b=b.geometries;var g=[],h,k;h=0;for(k=b.length;h<k;++h)g[h]=Gu(b[h],c,d,e,f);return g}
function Gu(b,c,d,e,f){var g=b.type,h=Hu[g];c="Point"===g||"MultiPoint"===g?h(b,d,e):h(b,c);d=new O;d.Sa(Dp(c,!1,f));m(b.id)&&d.d(b.id);m(b.properties)&&d.C(b.properties);return d}
Du.prototype.b=function(b,c){if("Topology"==b.type){var d,e=null,f=null;m(b.transform)&&(d=b.transform,e=d.scale,f=d.translate);var g=b.arcs;if(m(d)){d=e;var h=f,k,n;k=0;for(n=g.length;k<n;++k)for(var p=g[k],q=d,r=h,s=0,u=0,y=void 0,z=void 0,A=void 0,z=0,A=p.length;z<A;++z)y=p[z],s+=y[0],u+=y[1],y[0]=s,y[1]=u,Iu(y,q,r)}d=[];h=qb(b.objects);k=0;for(n=h.length;k<n;++k)"GeometryCollection"===h[k].type?(p=h[k],d.push.apply(d,Fu(p,g,e,f,c))):(p=h[k],d.push(Gu(p,g,e,f,c)));return d}return[]};function Iu(b,c,d){b[0]=b[0]*c[0]+d[0];b[1]=b[1]*c[1]+d[1]}Du.prototype.Ja=function(){return this.defaultDataProjection};var Hu={Point:function(b,c,d){b=b.coordinates;null===c||null===d||Iu(b,c,d);return new Nk(b)},LineString:function(b,c){var d=Eu(b.arcs,c);return new Tm(d)},Polygon:function(b,c){var d=[],e,f;e=0;for(f=b.arcs.length;e<f;++e)d[e]=Eu(b.arcs[e],c);return new F(d)},MultiPoint:function(b,c,d){b=b.coordinates;var e,f;if(null!==c&&null!==d)for(e=0,f=b.length;e<f;++e)Iu(b[e],c,d);return new Ym(b)},MultiLineString:function(b,c){var d=[],e,f;e=0;for(f=b.arcs.length;e<f;++e)d[e]=Eu(b.arcs[e],c);return new Vm(d)},MultiPolygon:function(b,c){var d=[],e,f,g,h,k,n;k=0;for(n=b.arcs.length;k<n;++k){e=b.arcs[k];f=[];g=0;for(h=e.length;g<h;++g)f[g]=Eu(e[g],c);d[k]=f}return new Zm(d)}};function Ju(b){b=m(b)?b:{};this.f=b.featureType;this.b=b.featureNS;this.c=m(b.gmlFormat)?b.gmlFormat:new Rq;this.d=m(b.schemaLocation)?b.schemaLocation:"http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd";this.defaultDataProjection=null}v(Ju,Cq);Ju.prototype.Ob=function(b,c){var d={featureType:this.f,featureNS:this.b};Db(d,Bp(this,b,m(c)?c:{}));d=[d];this.c.c["http://www.opengis.net/gml"].featureMember=rq(Fq.prototype.Sd);d=V([],this.c.c,b,d,this.c);m(d)||(d=[]);return d};Ju.prototype.g=function(b){if(cq(b))return Ku(b);if(fq(b))return V({},Lu,b,[]);if(ia(b))return b=pq(b),Ku(b)};Ju.prototype.e=function(b){if(cq(b))return Mu(this,b);if(fq(b))return Nu(this,b);if(ia(b))return b=pq(b),Mu(this,b)};function Mu(b,c){for(var d=c.firstChild;null!==d;d=d.nextSibling)if(1==d.nodeType)return Nu(b,d)}var Ou={"http://www.opengis.net/gml":{boundedBy:P(Fq.prototype.Ud,"bounds")}};function Nu(b,c){var d={},e=Mq(c.getAttribute("numberOfFeatures"));d.numberOfFeatures=e;return V(d,Ou,c,[],b.c)}
var Pu={"http://www.opengis.net/wfs":{totalInserted:P(Lq),totalUpdated:P(Lq),totalDeleted:P(Lq)}},Qu={"http://www.opengis.net/ogc":{FeatureId:rq(function(b){return b.getAttribute("fid")})}},Ru={"http://www.opengis.net/wfs":{Feature:function(b,c){Aq(Qu,b,c)}}},Lu={"http://www.opengis.net/wfs":{TransactionSummary:P(function(b,c){return V({},Pu,b,c)},"transactionSummary"),InsertResults:P(function(b,c){return V([],Ru,b,c)},"insertIds")}};function Ku(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return V({},Lu,b,[])}var Su={"http://www.opengis.net/wfs":{PropertyName:T(Oq)}};function Tu(b,c){var d=Vp("http://www.opengis.net/ogc","Filter"),e=Vp("http://www.opengis.net/ogc","FeatureId");d.appendChild(e);e.setAttribute("fid",c);b.appendChild(d)}
var Uu={"http://www.opengis.net/wfs":{Insert:T(function(b,c,d){var e=d[d.length-1],e=Vp(e.featureNS,e.featureType);b.appendChild(e);Rq.prototype.xg(e,c,d)}),Update:T(function(b,c,d){var e=d[d.length-1],f=e.featureType,g=e.featurePrefix,g=m(g)?g:"feature",h=e.featureNS;b.setAttribute("typeName",g+":"+f);oq(b,"http://www.w3.org/2000/xmlns/","xmlns:"+g,h);f=c.aa;if(m(f)){for(var g=c.G(),h=[],k=0,n=g.length;k<n;k++){var p=c.get(g[k]);m(p)&&h.push({name:g[k],value:p})}Bq({node:b,srsName:e.srsName},Uu,wq("Property"),h,d);Tu(b,f)}}),Delete:T(function(b,c,d){var e=d[d.length-1];d=e.featureType;var f=e.featurePrefix,f=m(f)?f:"feature",e=e.featureNS;b.setAttribute("typeName",f+":"+d);oq(b,"http://www.w3.org/2000/xmlns/","xmlns:"+f,e);c=c.aa;m(c)&&Tu(b,c)}),Property:T(function(b,c,d){var e=Vp("http://www.opengis.net/wfs","Name");b.appendChild(e);Oq(e,c.name);null!=c.value&&(e=Vp("http://www.opengis.net/wfs","Value"),b.appendChild(e),c.value instanceof pk?Rq.prototype.de(e,c.value,d):Oq(e,c.value))}),Native:T(function(b,c){m(c.tm)&&b.setAttribute("vendorId",c.tm);m(c.Ul)&&b.setAttribute("safeToIgnore",c.Ul);m(c.value)&&Oq(b,c.value)})}},Vu={"http://www.opengis.net/wfs":{Query:T(function(b,c,d){var e=d[d.length-1],f=e.featurePrefix,g=e.featureNS,h=e.propertyNames,k=e.srsName;b.setAttribute("typeName",(m(f)?f+":":"")+c);m(k)&&b.setAttribute("srsName",k);m(g)&&oq(b,"http://www.w3.org/2000/xmlns/","xmlns:"+f,g);c=Bb(e);c.node=b;Bq(c,Su,wq("PropertyName"),h,d);e=e.bbox;m(e)&&(h=Vp("http://www.opengis.net/ogc","Filter"),c=d[d.length-1].geometryName,f=Vp("http://www.opengis.net/ogc","BBOX"),h.appendChild(f),g=Vp("http://www.opengis.net/ogc","PropertyName"),Oq(g,c),f.appendChild(g),Rq.prototype.de(f,e,d),b.appendChild(h))})}};Ju.prototype.n=function(b){var c=Vp("http://www.opengis.net/wfs","GetFeature");c.setAttribute("service","WFS");c.setAttribute("version","1.1.0");m(b)&&(m(b.handle)&&c.setAttribute("handle",b.handle),m(b.outputFormat)&&c.setAttribute("outputFormat",b.outputFormat),m(b.maxFeatures)&&c.setAttribute("maxFeatures",b.maxFeatures),m(b.resultType)&&c.setAttribute("resultType",b.resultType),m(b.lm)&&c.setAttribute("startIndex",b.lm),m(b.count)&&c.setAttribute("count",b.count));oq(c,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.d);var d=b.featureTypes;b=[{node:c,srsName:b.srsName,featureNS:m(b.featureNS)?b.featureNS:this.b,featurePrefix:b.featurePrefix,geometryName:b.geometryName,bbox:b.bbox,bg:m(b.bg)?b.bg:[]}];var e=Bb(b[b.length-1]);e.node=c;Bq(e,Vu,wq("Query"),d,b);return c};Ju.prototype.q=function(b,c,d,e){var f=[],g=Vp("http://www.opengis.net/wfs","Transaction");g.setAttribute("service","WFS");g.setAttribute("version","1.1.0");var h,k;m(e)&&(h=m(e.gmlOptions)?e.gmlOptions:{},m(e.handle)&&g.setAttribute("handle",e.handle));oq(g,"http://www.w3.org/2001/XMLSchema-instance","xsi:schemaLocation",this.d);null!=b&&(k={node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},Db(k,h),Bq(k,Uu,wq("Insert"),b,f));null!=c&&(k={node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},Db(k,h),Bq(k,Uu,wq("Update"),c,f));null!=d&&Bq({node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},Uu,wq("Delete"),d,f);m(e.nativeElements)&&Bq({node:g,featureNS:e.featureNS,featureType:e.featureType,featurePrefix:e.featurePrefix},Uu,wq("Native"),e.nativeElements,f);return g};Ju.prototype.Je=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.Xd(b);return null};Ju.prototype.Xd=function(b){if(null!=b.firstElementChild&&null!=b.firstElementChild.firstElementChild)for(b=b.firstElementChild.firstElementChild,b=b.firstElementChild;null!==b;b=b.nextElementSibling)if(0!==b.childNodes.length&&(1!==b.childNodes.length||3!==b.firstChild.nodeType)){var c=[{}];this.c.Ud(b,c);return ze(c.pop().srsName)}return null};function Wu(b){b=m(b)?b:{};this.defaultDataProjection=null;this.a=m(b.splitCollection)?b.splitCollection:!1}v(Wu,Kr);function Xu(b){b=b.Q();return 0==b.length?"":b[0]+" "+b[1]}function Yu(b){b=b.Q();for(var c=[],d=0,e=b.length;d<e;++d)c.push(b[d][0]+" "+b[d][1]);return c.join(",")}function Zu(b){var c=[];b=b.ld();for(var d=0,e=b.length;d<e;++d)c.push("("+Yu(b[d])+")");return c.join(",")}function $u(b){var c=b.O();b=(0,av[c])(b);c=c.toUpperCase();return 0===b.length?c+" EMPTY":c+"("+b+")"}
var av={Point:Xu,LineString:Yu,Polygon:Zu,MultiPoint:function(b){var c=[];b=b.Gd();for(var d=0,e=b.length;d<e;++d)c.push("("+Xu(b[d])+")");return c.join(",")},MultiLineString:function(b){var c=[];b=b.Lc();for(var d=0,e=b.length;d<e;++d)c.push("("+Yu(b[d])+")");return c.join(",")},MultiPolygon:function(b){var c=[];b=b.qd();for(var d=0,e=b.length;d<e;++d)c.push("("+Zu(b[d])+")");return c.join(",")},GeometryCollection:function(b){var c=[];b=b.mf();for(var d=0,e=b.length;d<e;++d)c.push($u(b[d]));return c.join(",")}};l=Wu.prototype;l.Qc=function(b,c){var d=this.Sc(b,c);if(m(d)){var e=new O;e.Sa(d);return e}return null};l.Ge=function(b,c){var d=[],e=this.Sc(b,c);this.a&&"GeometryCollection"==e.O()?d=e.d:d=[e];for(var f=[],g=0,h=d.length;g<h;++g)e=new O,e.Sa(d[g]),f.push(e);return f};l.Sc=function(b,c){var d;d=new bv(new cv(b));d.a=dv(d.c);d=ev(d);return m(d)?Dp(d,!1,c):null};l.ce=function(b,c){var d=b.R();return m(d)?this.Yc(d,c):""};l.yg=function(b,c){if(1==b.length)return this.ce(b[0],c);for(var d=[],e=0,f=b.length;e<f;++e)d.push(b[e].R());d=new Mm(d);return this.Yc(d,c)};l.Yc=function(b,c){return $u(Dp(b,!0,c))};function cv(b){this.c=b;this.a=-1}function fv(b,c){var d=m(c)?c:!1;return"0"<=b&&"9">=b||"."==b&&!d}
function dv(b){var c=b.c.charAt(++b.a),d={position:b.a,value:c};if("("==c)d.type=2;else if(","==c)d.type=5;else if(")"==c)d.type=3;else if(fv(c)||"-"==c){d.type=4;var e,c=b.a,f=!1;do"."==e&&(f=!0),e=b.c.charAt(++b.a);while(fv(e,f));b=parseFloat(b.c.substring(c,b.a--));d.value=b}else if("a"<=c&&"z">=c||"A"<=c&&"Z">=c){d.type=1;c=b.a;do e=b.c.charAt(++b.a);while("a"<=e&&"z">=e||"A"<=e&&"Z">=e);b=b.c.substring(c,b.a--).toUpperCase();d.value=b}else{if(" "==c||"\t"==c||"\r"==c||"\n"==c)return dv(b);if(""===c)d.type=6;else throw Error("Unexpected character: "+c);}return d}function bv(b){this.c=b}l=bv.prototype;l.match=function(b){if(b=this.a.type==b)this.a=dv(this.c);return b};function ev(b){var c=b.a;if(b.match(1)){var d=c.value;if("GEOMETRYCOLLECTION"==d){a:{if(b.match(2)){c=[];do c.push(ev(b));while(b.match(5));if(b.match(3)){b=c;break a}}else if(gv(b)){b=[];break a}throw Error(hv(b));}return new Mm(b)}var e=iv[d],c=jv[d];if(!m(e)||!m(c))throw Error("Invalid geometry type: "+d);b=e.call(b);return new c(b)}throw Error(hv(b));}l.De=function(){if(this.match(2)){var b=kv(this);if(this.match(3))return b}else if(gv(this))return null;throw Error(hv(this));};l.Ce=function(){if(this.match(2)){var b=lv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.Ee=function(){if(this.match(2)){var b=mv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.nl=function(){if(this.match(2)){var b;if(2==this.a.type)for(b=[this.De()];this.match(5);)b.push(this.De());else b=lv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.ml=function(){if(this.match(2)){var b=mv(this);if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};l.ol=function(){if(this.match(2)){for(var b=[this.Ee()];this.match(5);)b.push(this.Ee());if(this.match(3))return b}else if(gv(this))return[];throw Error(hv(this));};function kv(b){for(var c=[],d=0;2>d;++d){var e=b.a;if(b.match(4))c.push(e.value);else break}if(2==c.length)return c;throw Error(hv(b));}function lv(b){for(var c=[kv(b)];b.match(5);)c.push(kv(b));return c}
function mv(b){for(var c=[b.Ce()];b.match(5);)c.push(b.Ce());return c}function gv(b){var c=1==b.a.type&&"EMPTY"==b.a.value;c&&(b.a=dv(b.c));return c}function hv(b){return"Unexpected `"+b.a.value+"` at position "+b.a.position+" in `"+b.c.c+"`"}var jv={POINT:Nk,LINESTRING:Tm,POLYGON:F,MULTIPOINT:Ym,MULTILINESTRING:Vm,MULTIPOLYGON:Zm},iv={POINT:bv.prototype.De,LINESTRING:bv.prototype.Ce,POLYGON:bv.prototype.Ee,MULTIPOINT:bv.prototype.nl,MULTILINESTRING:bv.prototype.ml,MULTIPOLYGON:bv.prototype.ol};function nv(){this.version=void 0}v(nv,gu);nv.prototype.c=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};nv.prototype.a=function(b){this.version=Aa(b.getAttribute("version"));b=V({version:this.version},ov,b,[]);return m(b)?b:null};function pv(b,c){return V({},qv,b,c)}function rv(b,c){return V({},sv,b,c)}function tv(b,c){var d=pv(b,c);if(m(d)){var e=[Mq(b.getAttribute("width")),Mq(b.getAttribute("height"))];d.size=e;return d}}
function uv(b,c){return V([],vv,b,c)}
var wv=[null,"http://www.opengis.net/wms"],ov=S(wv,{Service:P(function(b,c){return V({},xv,b,c)}),Capability:P(function(b,c){return V({},yv,b,c)})}),yv=S(wv,{Request:P(function(b,c){return V({},zv,b,c)}),Exception:P(function(b,c){return V([],Av,b,c)}),Layer:P(function(b,c){return V({},Bv,b,c)})}),xv=S(wv,{Name:P(W),Title:P(W),Abstract:P(W),KeywordList:P(uv),OnlineResource:P(fu),ContactInformation:P(function(b,c){return V({},Cv,b,c)}),Fees:P(W),AccessConstraints:P(W),LayerLimit:P(Lq),MaxWidth:P(Lq),MaxHeight:P(Lq)}),Cv=S(wv,{ContactPersonPrimary:P(function(b,c){return V({},Dv,b,c)}),ContactPosition:P(W),ContactAddress:P(function(b,c){return V({},Ev,b,c)}),ContactVoiceTelephone:P(W),ContactFacsimileTelephone:P(W),ContactElectronicMailAddress:P(W)}),Dv=S(wv,{ContactPerson:P(W),ContactOrganization:P(W)}),Ev=S(wv,{AddressType:P(W),Address:P(W),City:P(W),StateOrProvince:P(W),PostCode:P(W),Country:P(W)}),Av=S(wv,{Format:rq(W)}),Bv=S(wv,{Name:P(W),Title:P(W),Abstract:P(W),KeywordList:P(uv),CRS:tq(W),EX_GeographicBoundingBox:P(function(b,c){var d=V({},Fv,b,c);if(m(d)){var e=d.westBoundLongitude,f=d.southBoundLatitude,g=d.eastBoundLongitude,d=d.northBoundLatitude;return m(e)&&m(f)&&m(g)&&m(d)?[e,f,g,d]:void 0}}),BoundingBox:tq(function(b){var c=[Kq(b.getAttribute("minx")),Kq(b.getAttribute("miny")),Kq(b.getAttribute("maxx")),Kq(b.getAttribute("maxy"))],d=[Kq(b.getAttribute("resx")),Kq(b.getAttribute("resy"))];return{crs:b.getAttribute("CRS"),extent:c,res:d}}),Dimension:tq(function(b){return{name:b.getAttribute("name"),units:b.getAttribute("units"),unitSymbol:b.getAttribute("unitSymbol"),"default":b.getAttribute("default"),multipleValues:Hq(b.getAttribute("multipleValues")),nearestValue:Hq(b.getAttribute("nearestValue")),current:Hq(b.getAttribute("current")),values:W(b)}}),Attribution:P(function(b,c){return V({},Gv,b,c)}),AuthorityURL:tq(function(b,c){var d=pv(b,c);if(m(d))return d.name=b.getAttribute("name"),d}),Identifier:tq(W),MetadataURL:tq(function(b,c){var d=pv(b,c);if(m(d))return d.type=b.getAttribute("type"),d}),DataURL:tq(pv),FeatureListURL:tq(pv),Style:tq(function(b,c){return V({},Hv,b,c)}),MinScaleDenominator:P(Jq),MaxScaleDenominator:P(Jq),Layer:tq(function(b,c){var d=c[c.length-1],e=V({},Bv,b,c);if(m(e)){var f=Hq(b.getAttribute("queryable"));m(f)||(f=d.queryable);e.queryable=m(f)?f:!1;f=Mq(b.getAttribute("cascaded"));m(f)||(f=d.cascaded);e.cascaded=f;f=Hq(b.getAttribute("opaque"));m(f)||(f=d.opaque);e.opaque=m(f)?f:!1;f=Hq(b.getAttribute("noSubsets"));m(f)||(f=d.noSubsets);e.noSubsets=m(f)?f:!1;f=Kq(b.getAttribute("fixedWidth"));m(f)||(f=d.fixedWidth);e.fixedWidth=f;f=Kq(b.getAttribute("fixedHeight"));m(f)||(f=d.fixedHeight);e.fixedHeight=f;Qa(["Style","CRS","AuthorityURL"],function(b){var c=d[b];if(m(c)){var f=Ab(e,b),f=f.concat(c);e[b]=f}});Qa("EX_GeographicBoundingBox BoundingBox Dimension Attribution MinScaleDenominator MaxScaleDenominator".split(" "),function(b){m(e[b])||(e[b]=d[b])});return e}})}),Gv=S(wv,{Title:P(W),OnlineResource:P(fu),LogoURL:P(tv)}),Fv=S(wv,{westBoundLongitude:P(Jq),eastBoundLongitude:P(Jq),southBoundLatitude:P(Jq),northBoundLatitude:P(Jq)}),zv=S(wv,{GetCapabilities:P(rv),GetMap:P(rv),GetFeatureInfo:P(rv)}),sv=S(wv,{Format:tq(W),DCPType:tq(function(b,c){return V({},Iv,b,c)})}),Iv=S(wv,{HTTP:P(function(b,c){return V({},Jv,b,c)})}),Jv=S(wv,{Get:P(pv),Post:P(pv)}),Hv=S(wv,{Name:P(W),Title:P(W),Abstract:P(W),LegendURL:tq(tv),StyleSheetURL:P(pv),StyleURL:P(pv)}),qv=S(wv,{Format:P(W),OnlineResource:P(fu)}),vv=S(wv,{Keyword:rq(W)});function Kv(){this.b="http://mapserver.gis.umn.edu/mapserver";this.c=new $q;this.defaultDataProjection=null}v(Kv,Cq);function Lv(b,c,d){c.namespaceURI=b.b;var e=$p(c),f=[];if(0===c.childNodes.length)return f;"msGMLOutput"==e&&Qa(c.childNodes,function(b){if(1===b.nodeType){var c=d[0],e=b.localName,n=RegExp,p;p="_layer".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");n=new n(p,"");e=e.replace(n,"")+"_feature";c.featureType=e;c.featureNS=this.b;n={};n[e]=rq(this.c.Fe,this.c);c=S([c.featureNS,null],n);b.namespaceURI=this.b;b=V([],c,b,d,this.c);m(b)&&ab(f,b)}},b);"FeatureCollection"==e&&(b=V([],b.c.c,c,[{}],b.c),m(b)&&(f=b));return f}Kv.prototype.Ob=function(b,c){var d={featureType:this.featureType,featureNS:this.featureNS};m(c)&&Db(d,Bp(this,b,c));return Lv(this,b,[d])};function Mv(){this.d=new hu}v(Mv,gu);Mv.prototype.c=function(b){for(b=b.firstChild;null!==b;b=b.nextSibling)if(1==b.nodeType)return this.a(b);return null};Mv.prototype.a=function(b){this.version=Aa(b.getAttribute("version"));var c=this.d.a(b);if(!m(c))return null;c.version=this.version;c=V(c,Nv,b,[]);return m(c)?c:null};function Ov(b){var c=W(b).split(" ");if(m(c)&&2==c.length)return b=+c[0],c=+c[1],isNaN(b)||isNaN(c)?void 0:[b,c]}
var Pv=[null,"http://www.opengis.net/wmts/1.0"],Qv=[null,"http://www.opengis.net/ows/1.1"],Nv=S(Pv,{Contents:P(function(b,c){return V({},Rv,b,c)})}),Rv=S(Pv,{Layer:tq(function(b,c){return V({},Sv,b,c)}),TileMatrixSet:tq(function(b,c){return V({},Tv,b,c)})}),Sv=S(Pv,{Style:tq(function(b,c){var d=V({},Uv,b,c);if(m(d)){var e="true"===b.getAttribute("isDefault");d.isDefault=e;return d}}),Format:tq(W),TileMatrixSetLink:tq(function(b,c){return V({},Vv,b,c)}),ResourceURL:tq(function(b){var c=b.getAttribute("format"),d=b.getAttribute("template");b=b.getAttribute("resourceType");var e={};m(c)&&(e.format=c);m(d)&&(e.template=d);m(b)&&(e.resourceType=b);return e})},S(Qv,{Title:P(W),Abstract:P(W),WGS84BoundingBox:P(function(b,c){var d=V([],Wv,b,c);return 2!=d.length?void 0:Rd(d)}),Identifier:P(W)})),Uv=S(Pv,{LegendURL:tq(function(b){var c={};c.format=b.getAttribute("format");c.href=fu(b);return c})},S(Qv,{Title:P(W),Identifier:P(W)})),Vv=S(Pv,{TileMatrixSet:P(W)}),Wv=S(Qv,{LowerCorner:rq(Ov),UpperCorner:rq(Ov)}),Tv=S(Pv,{WellKnownScaleSet:P(W),TileMatrix:tq(function(b,c){return V({},Xv,b,c)})},S(Qv,{SupportedCRS:P(W),Identifier:P(W)})),Xv=S(Pv,{TopLeftCorner:P(Ov),ScaleDenominator:P(Jq),TileWidth:P(Lq),TileHeight:P(Lq),MatrixWidth:P(Lq),MatrixHeight:P(Lq)},S(Qv,{Identifier:P(W)}));var Yv=new ue(6378137);function X(b){qd.call(this);b=m(b)?b:{};this.a=null;this.f=Te;this.d=void 0;w(this,ud("projection"),this.sj,!1,this);w(this,ud("tracking"),this.tj,!1,this);m(b.projection)&&this.k(ze(b.projection));m(b.trackingOptions)&&this.q(b.trackingOptions);this.b(m(b.tracking)?b.tracking:!1)}v(X,qd);l=X.prototype;l.P=function(){this.b(!1);X.T.P.call(this)};l.sj=function(){var b=this.g();null!=b&&(this.f=De(ze("EPSG:4326"),b),null===this.a||this.set("position",this.f(this.a)))};l.tj=function(){if(ag){var b=this.i();b&&!m(this.d)?this.d=ba.navigator.geolocation.watchPosition(ra(this.vl,this),ra(this.wl,this),this.e()):!b&&m(this.d)&&(ba.navigator.geolocation.clearWatch(this.d),this.d=void 0)}};l.vl=function(b){b=b.coords;this.set("accuracy",b.accuracy);this.set("altitude",null===b.altitude?void 0:b.altitude);this.set("altitudeAccuracy",null===b.altitudeAccuracy?void 0:b.altitudeAccuracy);this.set("heading",null===b.heading?void 0:Yb(b.heading));null===this.a?this.a=[b.longitude,b.latitude]:(this.a[0]=b.longitude,this.a[1]=b.latitude);var c=this.f(this.a);this.set("position",c);this.set("speed",null===b.speed?void 0:b.speed);b=cl(Yv,this.a,b.accuracy);b.ra(this.f);this.set("accuracyGeometry",b);this.l()};l.wl=function(b){b.type="error";this.b(!1);this.dispatchEvent(b)};l.lf=function(){return this.get("accuracy")};X.prototype.getAccuracy=X.prototype.lf;X.prototype.o=function(){return this.get("accuracyGeometry")||null};X.prototype.getAccuracyGeometry=X.prototype.o;X.prototype.p=function(){return this.get("altitude")};X.prototype.getAltitude=X.prototype.p;X.prototype.r=function(){return this.get("altitudeAccuracy")};X.prototype.getAltitudeAccuracy=X.prototype.r;X.prototype.H=function(){return this.get("heading")};X.prototype.getHeading=X.prototype.H;X.prototype.N=function(){return this.get("position")};X.prototype.getPosition=X.prototype.N;X.prototype.g=function(){return this.get("projection")};X.prototype.getProjection=X.prototype.g;X.prototype.D=function(){return this.get("speed")};X.prototype.getSpeed=X.prototype.D;X.prototype.i=function(){return this.get("tracking")};X.prototype.getTracking=X.prototype.i;X.prototype.e=function(){return this.get("trackingOptions")};X.prototype.getTrackingOptions=X.prototype.e;X.prototype.k=function(b){this.set("projection",b)};X.prototype.setProjection=X.prototype.k;X.prototype.b=function(b){this.set("tracking",b)};X.prototype.setTracking=X.prototype.b;X.prototype.q=function(b){this.set("trackingOptions",b)};X.prototype.setTrackingOptions=X.prototype.q;function Zv(b,c,d){for(var e=[],f=b(0),g=b(1),h=c(f),k=c(g),n=[g,f],p=[k,h],q=[1,0],r={},s=1E5,u,y,z,A,E;0<--s&&0<q.length;)z=q.pop(),f=n.pop(),h=p.pop(),g=z.toString(),g in r||(e.push(h[0],h[1]),r[g]=!0),A=q.pop(),g=n.pop(),k=p.pop(),E=(z+A)/2,u=b(E),y=c(u),xk(y[0],y[1],h[0],h[1],k[0],k[1])<d?(e.push(k[0],k[1]),g=A.toString(),r[g]=!0):(q.push(A,E,E,z),p.push(k,y,y,h),n.push(g,u,u,f));return e}function $v(b,c,d,e,f){var g=ze("EPSG:4326");return Zv(function(e){return[b,c+(d-c)*e]},Se(g,e),f)}
function aw(b,c,d,e,f){var g=ze("EPSG:4326");return Zv(function(e){return[c+(d-c)*e,b]},Se(g,e),f)};function bw(b){b=m(b)?b:{};this.n=this.g=null;this.d=this.b=Infinity;this.e=this.f=-Infinity;this.r=m(b.targetSize)?b.targetSize:100;this.o=m(b.maxLines)?b.maxLines:100;this.a=[];this.c=[];this.p=m(b.strokeStyle)?b.strokeStyle:cw;this.q=this.i=void 0;this.k=null;this.setMap(m(b.map)?b.map:null)}var cw=new ql({color:"rgba(0,0,0,0.2)"}),dw=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001];function ew(b,c,d,e,f){var g=f;c=$v(c,b.f,b.b,b.n,d);g=m(b.a[g])?b.a[g]:new Tm(null);Um(g,"XY",c);pe(g.J(),e)&&(b.a[f++]=g);return f}function fw(b,c,d,e,f){var g=f;c=aw(c,b.e,b.d,b.n,d);g=m(b.c[g])?b.c[g]:new Tm(null);Um(g,"XY",c);pe(g.J(),e)&&(b.c[f++]=g);return f}l=bw.prototype;l.uj=function(){return this.g};l.Th=function(){return this.a};l.Yh=function(){return this.c};l.vf=function(b){var c=b.vectorContext,d=b.frameState;b=d.extent;var e=d.viewState,f=e.center,g=e.projection,e=e.resolution,d=d.pixelRatio,d=e*e/(4*d*d);if(null===this.n||!Re(this.n,g)){var h=g.J(),k=g.f,n=k[2],p=k[1],q=k[0];this.b=k[3];this.d=n;this.f=p;this.e=q;k=ze("EPSG:4326");this.i=Se(k,g);this.q=Se(g,k);this.k=this.q(ke(h));this.n=g}for(var g=this.k[0],h=this.k[1],k=-1,r,p=Math.pow(this.r*e,2),q=[],s=[],e=0,n=dw.length;e<n;++e){r=dw[e]/2;q[0]=g-r;q[1]=h-r;s[0]=g+r;s[1]=h+r;this.i(q,q);this.i(s,s);r=Math.pow(s[0]-q[0],2)+Math.pow(s[1]-q[1],2);if(r<=p)break;k=dw[e]}e=k;if(-1==e)this.a.length=this.c.length=0;else{g=this.q(f);f=g[0];g=g[1];h=this.o;f=Math.floor(f/e)*e;p=Vb(f,this.e,this.d);n=ew(this,p,d,b,0);for(k=0;p!=this.e&&k++<h;)p=Math.max(p-e,this.e),n=ew(this,p,d,b,n);p=Vb(f,this.e,this.d);for(k=0;p!=this.d&&k++<h;)p=Math.min(p+e,this.d),n=ew(this,p,d,b,n);this.a.length=n;g=Math.floor(g/e)*e;f=Vb(g,this.f,this.b);n=fw(this,f,d,b,0);for(k=0;f!=this.f&&k++<h;)f=Math.max(f-e,this.f),n=fw(this,f,d,b,n);f=Vb(g,this.f,this.b);for(k=0;f!=this.b&&k++<h;)f=Math.min(f+e,this.b),n=fw(this,f,d,b,n);this.c.length=n}c.Ba(null,this.p);b=0;for(d=this.a.length;b<d;++b)f=this.a[b],c.Eb(f,null);b=0;for(d=this.c.length;b<d;++b)f=this.c[b],c.Eb(f,null)};l.setMap=function(b){null!==this.g&&(this.g.t("postcompose",this.vf,this),this.g.render());null!==b&&(b.s("postcompose",this.vf,this),b.render());this.g=b};function gw(b,c,d,e,f,g,h){kj.call(this,b,c,d,0,e);this.n=f;this.c=new Image;null!==g&&(this.c.crossOrigin=g);this.d={};this.b=null;this.state=0;this.g=h}v(gw,kj);gw.prototype.a=function(b){if(m(b)){var c=ma(b);if(c in this.d)return this.d[c];b=wb(this.d)?this.c:this.c.cloneNode(!1);return this.d[c]=b}return this.c};gw.prototype.i=function(){this.state=3;Qa(this.b,Wc);this.b=null;this.dispatchEvent("change")};gw.prototype.k=function(){m(this.resolution)||(this.resolution=ne(this.extent)/this.c.height);this.state=2;Qa(this.b,Wc);this.b=null;this.dispatchEvent("change")};gw.prototype.load=function(){0==this.state&&(this.state=1,this.dispatchEvent("change"),this.b=[Uc(this.c,"error",this.i,!1,this),Uc(this.c,"load",this.k,!1,this)],this.g(this,this.n))};function hw(b,c,d,e,f){Zg.call(this,b,c);this.g=d;this.c=new Image;null!==e&&(this.c.crossOrigin=e);this.b={};this.f=null;this.n=f}v(hw,Zg);l=hw.prototype;l.P=function(){1==this.state&&iw(this);hw.T.P.call(this)};l.Ta=function(b){if(m(b)){var c=ma(b);if(c in this.b)return this.b[c];b=wb(this.b)?this.c:this.c.cloneNode(!1);return this.b[c]=b}return this.c};l.qb=function(){return this.g};l.vj=function(){this.state=3;iw(this);$g(this)};l.wj=function(){this.state=this.c.naturalWidth&&this.c.naturalHeight?2:4;iw(this);$g(this)};l.load=function(){0==this.state&&(this.state=1,$g(this),this.f=[Uc(this.c,"error",this.vj,!1,this),Uc(this.c,"load",this.wj,!1,this)],this.n(this,this.g))};function iw(b){Qa(b.f,Wc);b.f=null};function jw(b,c,d){return function(e,f,g){return d(b,c,e,f,g)}}function kw(){};function lw(b,c){hd.call(this);this.a=new fp(this);var d=b;c&&(d=wf(b));this.a.Ra(d,"dragenter",this.el);d!=b&&this.a.Ra(d,"dragover",this.fl);this.a.Ra(b,"dragover",this.gl);this.a.Ra(b,"drop",this.hl)}v(lw,hd);l=lw.prototype;l.Kc=!1;l.P=function(){lw.T.P.call(this);this.a.Jc()};l.el=function(b){var c=b.a.dataTransfer;(this.Kc=!(!c||!(c.types&&(Wa(c.types,"Files")||Wa(c.types,"public.file-url"))||c.files&&0<c.files.length)))&&b.preventDefault()};l.fl=function(b){this.Kc&&(b.preventDefault(),b.a.dataTransfer.dropEffect="none")};l.gl=function(b){this.Kc&&(b.preventDefault(),b.pb(),b=b.a.dataTransfer,b.effectAllowed="all",b.dropEffect="copy")};l.hl=function(b){this.Kc&&(b.preventDefault(),b.pb(),b=new wc(b.a),b.type="drop",this.dispatchEvent(b))};function mw(b){b.prototype.then=b.prototype.then;b.prototype.$goog_Thenable=!0}function nw(b){if(!b)return!1;try{return!!b.$goog_Thenable}catch(c){return!1}};function ow(b,c){pw||qw();rw||(pw(),rw=!0);sw.push(new tw(b,c))}var pw;function qw(){if(ba.Promise&&ba.Promise.resolve){var b=ba.Promise.resolve();pw=function(){b.then(uw)}}else pw=function(){Nh(uw)}}var rw=!1,sw=[];function uw(){for(;sw.length;){var b=sw;sw=[];for(var c=0;c<b.length;c++){var d=b[c];try{d.a.call(d.c)}catch(e){Mh(e)}}}rw=!1}function tw(b,c){this.a=b;this.c=c};function vw(b,c){this.c=ww;this.e=void 0;this.a=this.b=null;this.d=this.f=!1;try{var d=this;b.call(c,function(b){xw(d,yw,b)},function(b){xw(d,zw,b)})}catch(e){xw(this,zw,e)}}var ww=0,yw=2,zw=3;vw.prototype.then=function(b,c,d){return Aw(this,ka(b)?b:null,ka(c)?c:null,d)};mw(vw);vw.prototype.cancel=function(b){this.c==ww&&ow(function(){var c=new Bw(b);Cw(this,c)},this)};function Cw(b,c){if(b.c==ww)if(b.b){var d=b.b;if(d.a){for(var e=0,f=-1,g=0,h;h=d.a[g];g++)if(h=h.Cc)if(e++,h==b&&(f=g),0<=f&&1<e)break;0<=f&&(d.c==ww&&1==e?Cw(d,c):(e=d.a.splice(f,1)[0],Dw(d,e,zw,c)))}}else xw(b,zw,c)}function Ew(b,c){b.a&&b.a.length||b.c!=yw&&b.c!=zw||Fw(b);b.a||(b.a=[]);b.a.push(c)}
function Aw(b,c,d,e){var f={Cc:null,Wf:null,Yf:null};f.Cc=new vw(function(b,h){f.Wf=c?function(d){try{var f=c.call(e,d);b(f)}catch(p){h(p)}}:b;f.Yf=d?function(c){try{var f=d.call(e,c);!m(f)&&c instanceof Bw?h(c):b(f)}catch(p){h(p)}}:h});f.Cc.b=b;Ew(b,f);return f.Cc}vw.prototype.g=function(b){this.c=ww;xw(this,yw,b)};vw.prototype.n=function(b){this.c=ww;xw(this,zw,b)};function xw(b,c,d){if(b.c==ww){if(b==d)c=zw,d=new TypeError("Promise cannot resolve to itself");else{if(nw(d)){b.c=1;d.then(b.g,b.n,b);return}if(la(d))try{var e=d.then;if(ka(e)){Gw(b,d,e);return}}catch(f){c=zw,d=f}}b.e=d;b.c=c;Fw(b);c!=zw||d instanceof Bw||Hw(b,d)}}function Gw(b,c,d){function e(c){g||(g=!0,b.n(c))}function f(c){g||(g=!0,b.g(c))}b.c=1;var g=!1;try{d.call(c,f,e)}catch(h){e(h)}}function Fw(b){b.f||(b.f=!0,ow(b.i,b))}
vw.prototype.i=function(){for(;this.a&&this.a.length;){var b=this.a;this.a=[];for(var c=0;c<b.length;c++)Dw(this,b[c],this.c,this.e)}this.f=!1};function Dw(b,c,d,e){if(d==yw)c.Wf(e);else{if(c.Cc)for(;b&&b.d;b=b.b)b.d=!1;c.Yf(e)}}function Hw(b,c){b.d=!0;ow(function(){b.d&&Iw.call(null,c)})}var Iw=Mh;function Bw(b){wa.call(this,b)}v(Bw,wa);Bw.prototype.name="cancel";function Jw(b,c){this.f=[];this.o=b;this.q=c||null;this.d=this.a=!1;this.b=void 0;this.i=this.p=this.g=!1;this.e=0;this.c=null;this.n=0}Jw.prototype.cancel=function(b){if(this.a)this.b instanceof Jw&&this.b.cancel();else{if(this.c){var c=this.c;delete this.c;b?c.cancel(b):(c.n--,0>=c.n&&c.cancel())}this.o?this.o.call(this.q,this):this.i=!0;this.a||(b=new Kw,Lw(this),Mw(this,!1,b))}};Jw.prototype.k=function(b,c){this.g=!1;Mw(this,b,c)};function Mw(b,c,d){b.a=!0;b.b=d;b.d=!c;Nw(b)}
function Lw(b){if(b.a){if(!b.i)throw new Ow;b.i=!1}}function Pw(b,c,d,e){b.f.push([c,d,e]);b.a&&Nw(b)}Jw.prototype.then=function(b,c,d){var e,f,g=new vw(function(b,c){e=b;f=c});Pw(this,e,function(b){b instanceof Kw?g.cancel():f(b)});return g.then(b,c,d)};mw(Jw);function Qw(b){return Ta(b.f,function(b){return ka(b[1])})}
function Nw(b){if(b.e&&b.a&&Qw(b)){var c=b.e,d=Rw[c];d&&(ba.clearTimeout(d.aa),delete Rw[c]);b.e=0}b.c&&(b.c.n--,delete b.c);for(var c=b.b,e=d=!1;b.f.length&&!b.g;){var f=b.f.shift(),g=f[0],h=f[1],f=f[2];if(g=b.d?h:g)try{var k=g.call(f||b.q,c);m(k)&&(b.d=b.d&&(k==c||k instanceof Error),b.b=c=k);nw(c)&&(e=!0,b.g=!0)}catch(n){c=n,b.d=!0,Qw(b)||(d=!0)}}b.b=c;e&&(k=ra(b.k,b,!0),e=ra(b.k,b,!1),c instanceof Jw?(Pw(c,k,e),c.p=!0):c.then(k,e));d&&(c=new Sw(c),Rw[c.aa]=c,b.e=c.aa)}
function Ow(){wa.call(this)}v(Ow,wa);Ow.prototype.message="Deferred has already fired";Ow.prototype.name="AlreadyCalledError";function Kw(){wa.call(this)}v(Kw,wa);Kw.prototype.message="Deferred was canceled";Kw.prototype.name="CanceledError";function Sw(b){this.aa=ba.setTimeout(ra(this.c,this),0);this.a=b}Sw.prototype.c=function(){delete Rw[this.aa];throw this.a;};var Rw={};function Tw(b,c){m(b.name)?(this.name=b.name,this.code=Uw[b.name]):(this.code=b.code,this.name=Vw(b.code));wa.call(this,za("%s %s",this.name,c))}v(Tw,wa);function Vw(b){var c=vb(Uw,function(c){return b==c});if(!m(c))throw Error("Invalid code: "+b);return c}var Uw={AbortError:3,EncodingError:5,InvalidModificationError:9,InvalidStateError:7,NotFoundError:1,NotReadableError:4,NoModificationAllowedError:6,PathExistsError:12,QuotaExceededError:10,SecurityError:2,SyntaxError:8,TypeMismatchError:11};function Ww(b,c){qc.call(this,b.type,c)}v(Ww,qc);function Xw(){hd.call(this);this.hb=new FileReader;this.hb.onloadstart=ra(this.a,this);this.hb.onprogress=ra(this.a,this);this.hb.onload=ra(this.a,this);this.hb.onabort=ra(this.a,this);this.hb.onerror=ra(this.a,this);this.hb.onloadend=ra(this.a,this)}v(Xw,hd);Xw.prototype.getError=function(){return this.hb.error&&new Tw(this.hb.error,"reading file")};Xw.prototype.a=function(b){this.dispatchEvent(new Ww(b,this))};Xw.prototype.P=function(){Xw.T.P.call(this);delete this.hb};function Yw(b){var c=new Jw;b.Ra("loadend",sa(function(b,c){var f=c.hb.result,g=c.getError();null==f||g?(Lw(b),Mw(b,!1,g)):(Lw(b),Mw(b,!0,f));c.Jc()},c,b));return c};function Zw(b){b=m(b)?b:{};Rj.call(this,{handleEvent:bd});this.e=m(b.formatConstructors)?b.formatConstructors:[];this.q=m(b.projection)?ze(b.projection):null;this.f=null;this.a=void 0}v(Zw,Rj);Zw.prototype.P=function(){m(this.a)&&Wc(this.a);Zw.T.P.call(this)};Zw.prototype.g=function(b){b=b.a.dataTransfer.files;var c,d,e;c=0;for(d=b.length;c<d;++c){var f=e=b[c],g=new Xw,h=Yw(g);g.hb.readAsText(f,"");Pw(h,sa(this.i,e),null,this)}};Zw.prototype.i=function(b,c){var d=this.k,e=this.q;null===e&&(e=d.a().p);var d=this.e,f=[],g,h;g=0;for(h=d.length;g<h;++g){var k=new d[g],n;try{n=k.ma(c)}catch(p){n=null}if(null!==n){var k=k.Ja(c),k=Se(k,e),q,r;q=0;for(r=n.length;q<r;++q){var s=n[q],u=s.R();null!=u&&u.ra(k);f.push(s)}}}this.dispatchEvent(new $w(ax,this,b,f,e))};Zw.prototype.setMap=function(b){m(this.a)&&(Wc(this.a),this.a=void 0);null!==this.f&&(pc(this.f),this.f=null);Zw.T.setMap.call(this,b);null!==b&&(this.f=new lw(b.b),this.a=w(this.f,"drop",this.g,!1,this))};var ax="addfeatures";function $w(b,c,d,e,f){qc.call(this,b,c);this.features=e;this.file=d;this.projection=f}v($w,qc);function bx(b,c){this.x=b;this.y=c}v(bx,sf);bx.prototype.clone=function(){return new bx(this.x,this.y)};bx.prototype.scale=sf.prototype.scale;bx.prototype.add=function(b){this.x+=b.x;this.y+=b.y;return this};bx.prototype.rotate=function(b){var c=Math.cos(b);b=Math.sin(b);var d=this.y*c+this.x*b;this.x=this.x*c-this.y*b;this.y=d;return this};function cx(b){b=m(b)?b:{};ek.call(this,{handleDownEvent:dx,handleDragEvent:ex,handleUpEvent:fx});this.i=m(b.condition)?b.condition:bk;this.a=this.e=void 0;this.g=0}v(cx,ek);function ex(b){if(dk(b)){var c=b.map,d=c.f();b=b.pixel;b=new bx(b[0]-d[0]/2,d[1]/2-b[1]);d=Math.atan2(b.y,b.x);b=Math.sqrt(b.x*b.x+b.y*b.y);var e=c.a(),f=Xe(e);c.render();m(this.e)&&Sj(c,e,f.rotation-(d-this.e));this.e=d;m(this.a)&&Uj(c,e,f.resolution/b*this.a);m(this.a)&&(this.g=this.a/b);this.a=b}}
function fx(b){if(!dk(b))return!0;b=b.map;var c=b.a();Ye(c,-1);var d=Xe(c),e=this.g-1,f=d.rotation,f=c.constrainRotation(f,0);Sj(b,c,f,void 0,void 0);d=d.resolution;d=c.constrainResolution(d,0,e);Uj(b,c,d,void 0,400);this.g=0;return!1}function dx(b){return dk(b)&&this.i(b)?(Ye(b.map.a(),1),this.a=this.e=void 0,!0):!1};function gx(b,c){qc.call(this,b);this.feature=c}v(gx,qc);function hx(b){ek.call(this,{handleDownEvent:ix,handleEvent:jx,handleUpEvent:kx});this.S=null;this.fa=m(b.source)?b.source:null;this.ca=m(b.features)?b.features:null;this.kb=m(b.snapTolerance)?b.snapTolerance:12;this.Fa=m(b.minPointsPerRing)?b.minPointsPerRing:3;var c=this.H=b.type,d;"Point"===c||"MultiPoint"===c?d=lx:"LineString"===c||"MultiLineString"===c?d=mx:"Polygon"===c||"MultiPolygon"===c?d=nx:"Circle"===c&&(d=ox);this.a=d;this.e=this.o=this.p=this.g=this.i=null;this.N=new yp({style:m(b.style)?b.style:px()});this.da=b.geometryName;this.Xa=m(b.condition)?b.condition:ak;w(this,ud("active"),this.ea,!1,this)}v(hx,ek);function px(){var b=Al();return function(c){return b[c.R().O()]}}hx.prototype.setMap=function(b){hx.T.setMap.call(this,b);this.ea()};function jx(b){var c=!0;b.type===fj?c=qx(this,b):b.type===$i&&(c=!1);return fk.call(this,b)&&c}function ix(b){return this.Xa(b)?(this.S=b.pixel,!0):!1}
function kx(b){var c=this.S,d=b.pixel,e=c[0]-d[0],c=c[1]-d[1],d=!0;4>=e*e+c*c&&(qx(this,b),null===this.i?rx(this,b):this.a===lx||this.a===ox&&null!==this.i||sx(this,b)?this.U():(b=b.coordinate,e=this.g.R(),this.a===mx?(this.i=b.slice(),c=e.Q(),c.push(b.slice()),e.W(c)):this.a===nx&&(this.e[0].push(b.slice()),e.W(this.e)),tx(this)),d=!1);return d}
function qx(b,c){if(b.a===lx&&null===b.i)rx(b,c);else if(null===b.i){var d=c.coordinate.slice();null===b.p?(b.p=new O(new Nk(d)),tx(b)):b.p.R().W(d)}else{var d=c.coordinate,e=b.g.R(),f,g;b.a===lx?(g=e.Q(),g[0]=d[0],g[1]=d[1],e.W(g)):(b.a===mx?f=e.Q():b.a===nx?f=b.e[0]:b.a===ox&&(f=e.Oc()),sx(b,c)&&(d=b.i.slice()),b.p.R().W(d),g=f[f.length-1],g[0]=d[0],g[1]=d[1],b.a===mx?e.W(f):b.a===nx?(g=b.o.R(),g.W(f),e.W(b.e)):b.a===ox&&(g=b.o.R(),g.W([e.Oc(),d]),e.Hf(g.If())));tx(b)}return!0}
function sx(b,c){var d=!1;if(null!==b.g){var e=b.g.R(),f=!1,g=[b.i];b.a===mx?f=2<e.Q().length:b.a===nx&&(f=e.Q()[0].length>b.Fa,g=[b.e[0][0],b.e[0][b.e[0].length-2]]);if(f)for(var e=c.map,f=0,h=g.length;f<h;f++){var k=g[f],n=e.e(k),p=c.pixel,d=p[0]-n[0],n=p[1]-n[1];if(d=Math.sqrt(d*d+n*n)<=b.kb){b.i=k;break}}}return d}
function rx(b,c){var d=c.coordinate;b.i=d;var e;b.a===lx?e=new Nk(d.slice()):b.a===mx?e=new Tm([d.slice(),d.slice()]):b.a===nx?(b.o=new O(new Tm([d.slice(),d.slice()])),b.e=[[d.slice(),d.slice()]],e=new F(b.e)):b.a===ox&&(e=new Km(d.slice(),0),b.o=new O(new Tm([d.slice(),d.slice()])));b.g=new O;m(b.da)&&b.g.f(b.da);b.g.Sa(e);tx(b);b.dispatchEvent(new gx("drawstart",b.g))}
hx.prototype.U=function(){var b=ux(this),c,d=b.R();this.a===lx?c=d.Q():this.a===mx?(c=d.Q(),c.pop(),d.W(c)):this.a===nx&&(this.e[0].pop(),this.e[0].push(this.e[0][0]),d.W(this.e),c=d.Q());"MultiPoint"===this.H?b.Sa(new Ym([c])):"MultiLineString"===this.H?b.Sa(new Vm([c])):"MultiPolygon"===this.H&&b.Sa(new Zm([c]));null===this.ca||this.ca.push(b);null===this.fa||this.fa.Va(b);this.dispatchEvent(new gx("drawend",b))};function ux(b){b.i=null;var c=b.g;null!==c&&(b.g=null,b.p=null,b.o=null,b.N.a.clear());return c}hx.prototype.r=ad;function tx(b){var c=[];null===b.g||c.push(b.g);null===b.o||c.push(b.o);null===b.p||c.push(b.p);b.N.Tc(new lg(c))}hx.prototype.ea=function(){var b=this.k,c=this.b();null!==b&&c||ux(this);this.N.setMap(c?b:null)};var lx="Point",mx="LineString",nx="Polygon",ox="Circle";function vx(b){ek.call(this,{handleDownEvent:wx,handleDragEvent:xx,handleEvent:yx,handleUpEvent:zx});this.ca=m(b.deleteCondition)?b.deleteCondition:gd(ak,Zj);this.U=this.e=null;this.N=[0,0];this.a=new qn;this.i=m(b.pixelTolerance)?b.pixelTolerance:10;this.S=!1;this.g=null;this.o=new yp({style:m(b.style)?b.style:Ax()});this.H={Point:this.Am,LineString:this.zg,LinearRing:this.zg,Polygon:this.Cm,MultiPoint:this.xm,MultiLineString:this.wm,MultiPolygon:this.zm,GeometryCollection:this.vm};this.p=b.features;this.p.forEach(this.Jf,this);w(this.p,"add",this.ti,!1,this);w(this.p,"remove",this.ui,!1,this)}v(vx,ek);l=vx.prototype;l.Jf=function(b){var c=b.R();m(this.H[c.O()])&&this.H[c.O()].call(this,b,c);b=this.k;null===b||Bx(this,this.N,b)};l.setMap=function(b){this.o.setMap(b);vx.T.setMap.call(this,b)};l.ti=function(b){this.Jf(b.element)};l.ui=function(b){var c=b.element;b=this.a;var d,e=[];un(b,c.R().J(),function(b){c===b.feature&&e.push(b)});for(d=e.length-1;0<=d;--d)b.remove(e[d]);null!==this.e&&0===this.p.Ib()&&(this.o.Ed(this.e),this.e=null)};l.Am=function(b,c){var d=c.Q(),d={feature:b,geometry:c,ha:[d,d]};this.a.ta(c.J(),d)};l.xm=function(b,c){var d=c.Q(),e,f,g;f=0;for(g=d.length;f<g;++f)e=d[f],e={feature:b,geometry:c,depth:[f],index:f,ha:[e,e]},this.a.ta(c.J(),e)};l.zg=function(b,c){var d=c.Q(),e,f,g,h;e=0;for(f=d.length-1;e<f;++e)g=d.slice(e,e+2),h={feature:b,geometry:c,index:e,ha:g},this.a.ta(Rd(g),h)};l.wm=function(b,c){var d=c.Q(),e,f,g,h,k,n,p;h=0;for(k=d.length;h<k;++h)for(e=d[h],f=0,g=e.length-1;f<g;++f)n=e.slice(f,f+2),p={feature:b,geometry:c,depth:[h],index:f,ha:n},this.a.ta(Rd(n),p)};l.Cm=function(b,c){var d=c.Q(),e,f,g,h,k,n,p;h=0;for(k=d.length;h<k;++h)for(e=d[h],f=0,g=e.length-1;f<g;++f)n=e.slice(f,f+2),p={feature:b,geometry:c,depth:[h],index:f,ha:n},this.a.ta(Rd(n),p)};l.zm=function(b,c){var d=c.Q(),e,f,g,h,k,n,p,q,r,s;n=0;for(p=d.length;n<p;++n)for(q=d[n],h=0,k=q.length;h<k;++h)for(e=q[h],f=0,g=e.length-1;f<g;++f)r=e.slice(f,f+2),s={feature:b,geometry:c,depth:[h,n],index:f,ha:r},this.a.ta(Rd(r),s)};l.vm=function(b,c){var d,e=c.d;for(d=0;d<e.length;++d)this.H[e[d].O()].call(this,b,e[d])};function Cx(b,c){var d=b.e;null===d?(d=new O(new Nk(c)),b.e=d,b.o.Cf(d)):d.R().W(c)}function Dx(b,c){return b.index-c.index}
function wx(b){Bx(this,b.pixel,b.map);this.g=[];var c=this.e;if(null!==c){b=[];var c=c.R().Q(),d=Rd([c]),d=sn(this.a,d),e={};d.sort(Dx);for(var f=0,g=d.length;f<g;++f){var h=d[f],k=h.ha,n=ma(h.feature),p=h.depth;p&&(n+="-"+p.join("-"));e[n]||(e[n]=Array(2));if(zd(k[0],c)&&!e[n][0])this.g.push([h,0]),e[n][0]=h;else if(zd(k[1],c)&&!e[n][1]){if("LineString"!==h.geometry.O()&&"MultiLineString"!==h.geometry.O()||!e[n][0]||0!==e[n][0].index)this.g.push([h,1]),e[n][1]=h}else ma(k)in this.U&&!e[n][0]&&!e[n][1]&&b.push([h,c])}for(f=b.length-1;0<=f;--f)this.Ti.apply(this,b[f])}return null!==this.e}
function xx(b){b=b.coordinate;for(var c=0,d=this.g.length;c<d;++c){for(var e=this.g[c],f=e[0],g=f.depth,h=f.geometry,k=h.Q(),n=f.ha,e=e[1];b.length<h.B;)b.push(0);switch(h.O()){case "Point":k=b;n[0]=n[1]=b;break;case "MultiPoint":k[f.index]=b;n[0]=n[1]=b;break;case "LineString":k[f.index+e]=b;n[e]=b;break;case "MultiLineString":k[g[0]][f.index+e]=b;n[e]=b;break;case "Polygon":k[g[0]][f.index+e]=b;n[e]=b;break;case "MultiPolygon":k[g[1]][g[0]][f.index+e]=b,n[e]=b}h.W(k)}Cx(this,b)}
function zx(){for(var b,c=this.g.length-1;0<=c;--c)b=this.g[c][0],this.a.update(Rd(b.ha),b);return!1}
function yx(b){var c;b.map.a().q.slice()[1]||b.type!=fj||this.q||(this.N=b.pixel,Bx(this,b.pixel,b.map));if(null!==this.e&&this.ca(b)){this.e.R();c=this.g;var d={},e,f,g,h,k,n,p,q,r;for(k=c.length-1;0<=k;--k)if(g=c[k],q=g[0],h=q.geometry,f=h.Q(),r=ma(q.feature),q.depth&&(r+="-"+q.depth.join("-")),e=p=n=void 0,0===g[1]?(p=q,n=q.index):1==g[1]&&(e=q,n=q.index+1),r in d||(d[r]=[e,p,n]),g=d[r],m(e)&&(g[0]=e),m(p)&&(g[1]=p),m(g[0])&&m(g[1])){e=f;r=!1;p=n-1;switch(h.O()){case "MultiLineString":f[q.depth[0]].splice(n,1);r=!0;break;case "LineString":f.splice(n,1);r=!0;break;case "MultiPolygon":e=e[q.depth[1]];case "Polygon":e=e[q.depth[0]],4<e.length&&(n==e.length-1&&(n=0),e.splice(n,1),r=!0,0===n&&(e.pop(),e.push(e[0]),p=e.length-1))}r&&(this.a.remove(g[0]),this.a.remove(g[1]),h.W(f),f={depth:q.depth,feature:q.feature,geometry:q.geometry,index:p,ha:[g[0].ha[0],g[1].ha[1]]},this.a.ta(Rd(f.ha),f),Ex(this,h,n,q.depth,-1),this.o.Ed(this.e),this.e=null)}c=!0}return fk.call(this,b)&&!c}
function Bx(b,c,d){function e(b,c){return Bd(f,wd(f,b.ha))-Bd(f,wd(f,c.ha))}var f=d.sa(c),g=d.sa([c[0]-b.i,c[1]+b.i]),h=d.sa([c[0]+b.i,c[1]-b.i]),g=Rd([g,h]),g=sn(b.a,g);if(0<g.length){g.sort(e);var h=g[0].ha,k=wd(f,h),n=d.e(k);if(Math.sqrt(Bd(c,n))<=b.i){c=d.e(h[0]);d=d.e(h[1]);c=Bd(n,c);d=Bd(n,d);b.S=Math.sqrt(Math.min(c,d))<=b.i;b.S&&(k=c>d?h[1]:h[0]);Cx(b,k);d={};d[ma(h)]=!0;c=1;for(n=g.length;c<n;++c)if(k=g[c].ha,zd(h[0],k[0])&&zd(h[1],k[1])||zd(h[0],k[1])&&zd(h[1],k[0]))d[ma(k)]=!0;else break;b.U=d;return}}null!==b.e&&(b.o.Ed(b.e),b.e=null)}
l.Ti=function(b,c){for(var d=b.ha,e=b.feature,f=b.geometry,g=b.depth,h=b.index,k;c.length<f.B;)c.push(0);switch(f.O()){case "MultiLineString":k=f.Q();k[g[0]].splice(h+1,0,c);break;case "Polygon":k=f.Q();k[g[0]].splice(h+1,0,c);break;case "MultiPolygon":k=f.Q();k[g[1]][g[0]].splice(h+1,0,c);break;case "LineString":k=f.Q();k.splice(h+1,0,c);break;default:return}f.W(k);k=this.a;k.remove(b);Ex(this,f,h,g,1);var n={ha:[d[0],c],feature:e,geometry:f,depth:g,index:h};k.ta(Rd(n.ha),n);this.g.push([n,1]);d={ha:[c,d[1]],feature:e,geometry:f,depth:g,index:h+1};k.ta(Rd(d.ha),d);this.g.push([d,0])};function Ex(b,c,d,e,f){un(b.a,c.J(),function(b){b.geometry===c&&(!m(e)||gb(b.depth,e))&&b.index>d&&(b.index+=f)})}function Ax(){var b=Al();return function(){return b.Point}};function Fx(b,c,d){qc.call(this,b);this.selected=c;this.deselected=d}v(Fx,qc);function Gx(b){Rj.call(this,{handleEvent:Hx});b=m(b)?b:{};this.i=m(b.condition)?b.condition:Zj;this.e=m(b.addCondition)?b.addCondition:ad;this.p=m(b.removeCondition)?b.removeCondition:ad;this.D=m(b.toggleCondition)?b.toggleCondition:bk;this.g=m(b.multi)?b.multi:!1;var c;if(m(b.layers))if(ka(b.layers))c=b.layers;else{var d=b.layers;c=function(b){return Wa(d,b)}}else c=bd;this.f=c;this.a=new yp({style:m(b.style)?b.style:Ix()});b=this.a.a;w(b,"add",this.q,!1,this);w(b,"remove",this.r,!1,this)}v(Gx,Rj);Gx.prototype.o=function(){return this.a.a};function Hx(b){if(!this.i(b))return!0;var c=this.e(b),d=this.p(b),e=this.D(b),f=b.map,g=this.a.a,h=[],k=[],n=!1;if(c||d||e){f.qe(b.pixel,function(b){-1==Pa(g.a,b)?(c||e)&&k.push(b):(d||e)&&h.push(b)},void 0,this.f);for(f=h.length-1;0<=f;--f)g.remove(h[f]);g.xe(k);if(0<k.length||0<h.length)n=!0}else f.qe(b.pixel,function(b){k.push(b);return!this.g},this,this.f),0<k.length&&1==g.Ib()&&g.item(0)==k[0]||(n=!0,0!==g.Ib()&&(h=Array.prototype.concat(g.a),g.clear()),g.xe(k));n&&this.dispatchEvent(new Fx("select",k,h));return Yj(b)}Gx.prototype.setMap=function(b){var c=this.k,d=this.a.a;null===c||d.forEach(c.ic,c);Gx.T.setMap.call(this,b);this.a.setMap(b);null===b||d.forEach(b.Xa,b)};function Ix(){var b=Al();ab(b.Polygon,b.LineString);ab(b.GeometryCollection,b.LineString);return function(c){return b[c.R().O()]}}Gx.prototype.q=function(b){b=b.element;var c=this.k;null===c||c.Xa(b)};Gx.prototype.r=function(b){b=b.element;var c=this.k;null===c||c.ic(b)};function Y(b){b=m(b)?b:{};var c=Bb(b);delete c.gradient;delete c.radius;delete c.blur;delete c.shadow;delete c.weight;J.call(this,c);this.ia=null;this.df=m(b.shadow)?b.shadow:250;this.ad=void 0;this.zc=null;w(this,ud("gradient"),this.qh,!1,this);this.xc(m(b.gradient)?b.gradient:Jx);this.wc(m(b.blur)?b.blur:15);this.jc(m(b.radius)?b.radius:8);w(this,[ud("blur"),ud("radius")],this.Se,!1,this);this.Se();var d=m(b.weight)?b.weight:"weight",e;ia(d)?e=function(b){return b.get(d)}:e=d;this.ka(ra(function(b){b=e(b);b=m(b)?Vb(b,0,1):1;var c=255*b|0,d=this.zc[c];m(d)||(d=[new wl({image:new Aj({opacity:b,src:this.ad})})],this.zc[c]=d);return d},this));this.set("renderOrder",null);w(this,"render",this.th,!1,this)}v(Y,J);var Jx=["#00f","#0ff","#0f0","#ff0","#f00"];Y.prototype.Ea=function(){return this.get("blur")};Y.prototype.getBlur=Y.prototype.Ea;Y.prototype.Fa=function(){return this.get("gradient")};Y.prototype.getGradient=Y.prototype.Fa;Y.prototype.ic=function(){return this.get("radius")};Y.prototype.getRadius=Y.prototype.ic;Y.prototype.qh=function(){for(var b=this.Fa(),c=Nf(1,256),d=c.createLinearGradient(0,0,1,256),e=1/(b.length-1),f=0,g=b.length;f<g;++f)d.addColorStop(f*e,b[f]);c.fillStyle=d;c.fillRect(0,0,1,256);this.ia=c.getImageData(0,0,1,256).data};Y.prototype.Se=function(){var b=this.ic(),c=this.Ea(),d=b+c+1,e=2*d,e=Nf(e,e);e.shadowOffsetX=e.shadowOffsetY=this.df;e.shadowBlur=c;e.shadowColor="#000";e.beginPath();c=d-this.df;e.arc(c,c,b,0,2*Math.PI,!0);e.fill();this.ad=e.canvas.toDataURL();this.zc=Array(256);this.l()};Y.prototype.th=function(b){b=b.context;var c=b.canvas,c=b.getImageData(0,0,c.width,c.height),d=c.data,e,f,g;e=0;for(f=d.length;e<f;e+=4)if(g=4*d[e+3])d[e]=this.ia[g],d[e+1]=this.ia[g+1],d[e+2]=this.ia[g+2];b.putImageData(c,0,0)};Y.prototype.wc=function(b){this.set("blur",b)};Y.prototype.setBlur=Y.prototype.wc;Y.prototype.xc=function(b){this.set("gradient",b)};Y.prototype.setGradient=Y.prototype.xc;Y.prototype.jc=function(b){this.set("radius",b)};Y.prototype.setRadius=Y.prototype.jc;function Kx(b){return[b]};function Lx(b,c){var d=c||{},e=d.document||document,f=Ef("SCRIPT"),g={pg:f,fc:void 0},h=new Jw(Mx,g),k=null,n=null!=d.timeout?d.timeout:5E3;0<n&&(k=window.setTimeout(function(){Nx(f,!0);var c=new Ox(Px,"Timeout reached for loading script "+b);Lw(h);Mw(h,!1,c)},n),g.fc=k);f.onload=f.onreadystatechange=function(){f.readyState&&"loaded"!=f.readyState&&"complete"!=f.readyState||(Nx(f,d.oh||!1,k),Lw(h),Mw(h,!0,null))};f.onerror=function(){Nx(f,!0,k);var c=new Ox(Qx,"Error while loading script "+b);Lw(h);Mw(h,!1,c)};yf(f,{type:"text/javascript",charset:"UTF-8",src:b});Rx(e).appendChild(f);return h}function Rx(b){var c=b.getElementsByTagName("HEAD");return c&&0!=c.length?c[0]:b.documentElement}function Mx(){if(this&&this.pg){var b=this.pg;b&&"SCRIPT"==b.tagName&&Nx(b,!0,this.fc)}}function Nx(b,c,d){null!=d&&ba.clearTimeout(d);b.onload=ca;b.onerror=ca;b.onreadystatechange=ca;c&&window.setTimeout(function(){If(b)},0)}var Qx=0,Px=1;function Ox(b,c){var d="Jsloader error (code #"+b+")";c&&(d+=": "+c);wa.call(this,d);this.code=b}v(Ox,wa);function Sx(b,c){this.c=new Wr(b);this.a=c?c:"callback";this.fc=5E3}var Tx=0;Sx.prototype.send=function(b,c,d,e){b=b||null;e=e||"_"+(Tx++).toString(36)+ta().toString(36);ba._callbacks_||(ba._callbacks_={});var f=this.c.clone();if(b)for(var g in b)if(!b.hasOwnProperty||b.hasOwnProperty(g)){var h=f,k=g,n=b[g];ga(n)||(n=[String(n)]);os(h.a,k,n)}c&&(ba._callbacks_[e]=Ux(e,c),c=this.a,g="_callbacks_."+e,ga(g)||(g=[String(g)]),os(f.a,c,g));c=Lx(f.toString(),{timeout:this.fc,oh:!0});Pw(c,null,Vx(e,b,d),void 0);return{aa:e,hf:c}};Sx.prototype.cancel=function(b){b&&(b.hf&&b.hf.cancel(),b.aa&&Wx(b.aa,!1))};function Vx(b,c,d){return function(){Wx(b,!1);d&&d(c)}}function Ux(b,c){return function(d){Wx(b,!0);c.apply(void 0,arguments)}}function Wx(b,c){ba._callbacks_[b]&&(c?delete ba._callbacks_[b]:ba._callbacks_[b]=ca)};function Xx(b){var c=/\{z\}/g,d=/\{x\}/g,e=/\{y\}/g,f=/\{-y\}/g;return function(g){return null===g?void 0:b.replace(c,g[0].toString()).replace(d,g[1].toString()).replace(e,g[2].toString()).replace(f,function(){return((1<<g[0])-g[2]-1).toString()})}}function Yx(b){return Zx(Sa(b,Xx))}function Zx(b){return 1===b.length?b[0]:function(c,d,e){return null===c?void 0:b[Wb((c[1]<<c[0])+c[2],b.length)](c,d,e)}}function $x(){}
function ay(b,c){var d=[0,0,0];return function(e,f,g){return null===e?void 0:c(b(e,g,d),f,g)}}function by(b){var c=[],d=/\{(\d)-(\d)\}/.exec(b)||/\{([a-z])-([a-z])\}/.exec(b);if(d){var e=d[2].charCodeAt(0),f;for(f=d[1].charCodeAt(0);f<=e;++f)c.push(b.replace(d[0],String.fromCharCode(f)))}else c.push(b);return c};function cy(b){ph.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,opaque:b.opaque,projection:b.projection,state:m(b.state)?b.state:void 0,tileGrid:b.tileGrid,tilePixelRatio:b.tilePixelRatio,wrapX:b.wrapX});this.tileUrlFunction=m(b.tileUrlFunction)?b.tileUrlFunction:$x;this.crossOrigin=m(b.crossOrigin)?b.crossOrigin:null;this.tileLoadFunction=m(b.tileLoadFunction)?b.tileLoadFunction:dy;this.tileClass=m(b.tileClass)?b.tileClass:hw}v(cy,ph);function dy(b,c){b.Ta().src=c}l=cy.prototype;l.Vb=function(b,c,d,e,f){var g=this.nb(b,c,d);if(Wg(this.a,g))return this.a.get(g);b=[b,c,d];c=m(f)?f:this.e;d=rh(this,c);var h;if(h=m(this.H)){h=b[0];var k=mh(d,h);if(m(k)){var n=nh(c),p=c.J();h=d.pa(h)*k==n.pa(h)*of(fh(n,p,h))}else h=c.d}h?this.H?(h=b[0],k=b[1],c=kh(d,h,c),k<c.a||k>c.d?(k=Wb(k,of(c)),c=[h,k,b[2]]):c=b):(h=b[1],c=kh(d,b[0],c),c=h<c.a||h>c.d?null:b):c=b;e=null===c?void 0:this.tileUrlFunction(c,e,f);e=new this.tileClass(b,m(e)?0:4,m(e)?e:"",this.crossOrigin,this.tileLoadFunction);w(e,"change",this.tk,!1,this);this.a.set(g,e);return e};l.bb=function(){return this.tileLoadFunction};l.cb=function(){return this.tileUrlFunction};l.tk=function(b){b=b.target;switch(b.state){case 1:this.dispatchEvent(new sh("tileloadstart",b));break;case 2:this.dispatchEvent(new sh("tileloadend",b));break;case 3:this.dispatchEvent(new sh("tileloaderror",b))}};l.jb=function(b){this.a.clear();this.tileLoadFunction=b;this.l()};l.ua=function(b){this.a.clear();this.tileUrlFunction=b;this.l()};l.Oe=function(b,c,d){b=this.nb(b,c,d);Wg(this.a,b)&&this.a.get(b)};function ey(b){var c=m(b.extent)?b.extent:Sl,d=oh(c,b.maxZoom,b.tileSize);ch.call(this,{minZoom:b.minZoom,origin:le(c,"top-left"),resolutions:d,tileSize:b.tileSize})}v(ey,ch);ey.prototype.Db=function(b){b=m(b)?b:{};var c=this.minZoom,d=this.maxZoom,e=null;if(m(b.extent)){var e=Array(d+1),f;for(f=0;f<=d;++f)e[f]=f<c?null:fh(this,b.extent,f)}return function(b,f,k){f=b[0];if(f<c||d<f)return null;var n=b[1];b=b[2];return b<-Math.pow(2,f)||-1<b||null!==e&&!mf(e[f],n,b)?null:ff(f,n,-b-1,k)}};ey.prototype.td=function(b,c){if(b[0]<this.maxZoom){var d=2*b[1],e=2*b[2];return lf(d,d+1,e,e+1,c)}return null};ey.prototype.gd=function(b,c,d,e){e=lf(0,b[1],0,b[2],e);for(b=b[0]-1;b>=this.minZoom;--b)if(e.a=e.d>>=1,e.b=e.c>>=1,c.call(d,b,e))return!0;return!1};function fy(b){cy.call(this,{crossOrigin:"anonymous",opaque:!0,projection:ze("EPSG:3857"),state:"loading",tileLoadFunction:b.tileLoadFunction,wrapX:m(b.wrapX)?b.wrapX:!0});this.d=m(b.culture)?b.culture:"en-us";this.b=m(b.maxZoom)?b.maxZoom:-1;var c=new Wr((Sb?"https:":"http:")+"//dev.virtualearth.net/REST/v1/Imagery/Metadata/"+b.imagerySet);(new Sx(c,"jsonp")).send({include:"ImageryProviders",uriScheme:Sb?"https":"http",key:b.key},ra(this.g,this))}v(fy,cy);var gy=new qf({html:'<a class="ol-attribution-bing-tos" href="http://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'});fy.prototype.g=function(b){if(200!=b.statusCode||"OK"!=b.statusDescription||"ValidCredentials"!=b.authenticationResultCode||1!=b.resourceSets.length||1!=b.resourceSets[0].resources.length)bh(this,"error");else{var c=b.brandLogoUri;Sb&&-1==c.indexOf("https")&&(c=c.replace("http","https"));var d=b.resourceSets[0].resources[0],e=-1==this.b?d.zoomMax:this.b,f=new ey({extent:lh(this.e),minZoom:d.zoomMin,maxZoom:e,tileSize:d.imageWidth});this.tileGrid=f;var g=this.d;this.tileUrlFunction=ay(f.Db(),Zx(Sa(d.imageUrlSubdomains,function(b){var c=d.imageUrl.replace("{subdomain}",b).replace("{culture}",g);return function(b){return null===b?void 0:c.replace("{quadkey}",hf(b))}})));if(d.imageryProviders){var h=De(ze("EPSG:4326"),this.e);b=Sa(d.imageryProviders,function(b){var c=b.attribution,d={};Qa(b.coverageAreas,function(b){var c=b.zoomMin,g=Math.min(b.zoomMax,e);b=b.bbox;b=te([b[1],b[0],b[3],b[2]],h);var k,n;for(k=c;k<=g;++k)n=k.toString(),c=fh(f,b,k),n in d?d[n].push(c):d[n]=[c]});return new qf({html:c,tileRanges:d})});b.push(gy);this.f=b}this.D=c;bh(this,"ready")}};function hy(b){vn.call(this,{attributions:b.attributions,extent:b.extent,logo:b.logo,projection:b.projection});this.p=void 0;this.r=m(b.distance)?b.distance:20;this.o=[];this.a=b.source;this.a.s("change",hy.prototype.N,this)}v(hy,vn);hy.prototype.H=function(){return this.a};hy.prototype.Hb=function(b,c,d){c!==this.p&&(this.clear(),this.p=c,this.a.Hb(b,c,d),iy(this),this.Ga(this.o))};hy.prototype.N=function(){this.clear();iy(this);this.Ga(this.o);this.l()};function iy(b){if(m(b.p)){b.o.length=0;for(var c=Sd(),d=b.r*b.p,e=b.a.Aa(),f={},g=0,h=e.length;g<h;g++){var k=e[g];tb(f,ma(k).toString())||(k=k.R().Q(),be(k,c),Wd(c,d,c),k=sn(b.a.b,c),k=Ra(k,function(b){b=ma(b).toString();return b in f?!1:f[b]=!0}),b.o.push(jy(k)))}}}function jy(b){for(var c=b.length,d=[0,0],e=0;e<c;e++){var f=b[e].R().Q();vd(d,f)}c=1/c;d[0]*=c;d[1]*=c;d=new O(new Nk(d));d.set("features",b);return d};function ky(b,c,d){if(ka(b))d&&(b=ra(b,d));else if(b&&"function"==typeof b.handleEvent)b=ra(b.handleEvent,b);else throw Error("Invalid listener argument");return 2147483647<c?-1:ba.setTimeout(b,c||0)};function ly(){}ly.prototype.a=null;function my(b){var c;(c=b.a)||(c={},ny(b)&&(c[0]=!0,c[1]=!0),c=b.a=c);return c};var oy;function py(){}v(py,ly);function qy(b){return(b=ny(b))?new ActiveXObject(b):new XMLHttpRequest}function ny(b){if(!b.c&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var c=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],d=0;d<c.length;d++){var e=c[d];try{return new ActiveXObject(e),b.c=e}catch(f){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return b.c}oy=new py;function ry(b){hd.call(this);this.r=new Th;this.i=b||null;this.a=!1;this.n=this.V=null;this.f=this.o="";this.c=this.q=this.d=this.k=!1;this.g=0;this.b=null;this.e=sy;this.p=this.D=!1}v(ry,hd);var sy="",ty=/^https?$/i,uy=["POST","PUT"];l=ry.prototype;l.send=function(b,c,d,e){if(this.V)throw Error("[goog.net.XhrIo] Object is active with another request="+this.o+"; newUri="+b);c=c?c.toUpperCase():"GET";this.o=b;this.f="";this.k=!1;this.a=!0;this.V=this.i?qy(this.i):qy(oy);this.n=this.i?my(this.i):my(oy);this.V.onreadystatechange=ra(this.Xf,this);try{this.q=!0,this.V.open(c,String(b),!0),this.q=!1}catch(f){vy(this,f);return}b=d||"";var g=this.r.clone();e&&Sh(e,function(b,c){g.set(c,b)});e=Ua(g.G(),wy);d=ba.FormData&&b instanceof ba.FormData;!Wa(uy,c)||e||d||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(b,c){this.V.setRequestHeader(c,b)},this);this.e&&(this.V.responseType=this.e);"withCredentials"in this.V&&(this.V.withCredentials=this.D);try{xy(this),0<this.g&&((this.p=yy(this.V))?(this.V.timeout=this.g,this.V.ontimeout=ra(this.fc,this)):this.b=ky(this.fc,this.g,this)),this.d=!0,this.V.send(b),this.d=!1}catch(h){vy(this,h)}};function yy(b){return Gb&&Pb(9)&&ja(b.timeout)&&m(b.ontimeout)}
function wy(b){return"content-type"==b.toLowerCase()}l.fc=function(){"undefined"!=typeof aa&&this.V&&(this.f="Timed out after "+this.g+"ms, aborting",this.dispatchEvent("timeout"),this.V&&this.a&&(this.a=!1,this.c=!0,this.V.abort(),this.c=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),zy(this)))};function vy(b,c){b.a=!1;b.V&&(b.c=!0,b.V.abort(),b.c=!1);b.f=c;Ay(b);zy(b)}function Ay(b){b.k||(b.k=!0,b.dispatchEvent("complete"),b.dispatchEvent("error"))}
l.P=function(){this.V&&(this.a&&(this.a=!1,this.c=!0,this.V.abort(),this.c=!1),zy(this,!0));ry.T.P.call(this)};l.Xf=function(){this.oa||(this.q||this.d||this.c?By(this):this.il())};l.il=function(){By(this)};function By(b){if(b.a&&"undefined"!=typeof aa&&(!b.n[1]||4!=Cy(b)||2!=Dy(b)))if(b.d&&4==Cy(b))ky(b.Xf,0,b);else if(b.dispatchEvent("readystatechange"),4==Cy(b)){b.a=!1;try{if(Ey(b))b.dispatchEvent("complete"),b.dispatchEvent("success");else{var c;try{c=2<Cy(b)?b.V.statusText:""}catch(d){c=""}b.f=c+" ["+Dy(b)+"]";Ay(b)}}finally{zy(b)}}}function zy(b,c){if(b.V){xy(b);var d=b.V,e=b.n[0]?ca:null;b.V=null;b.n=null;c||b.dispatchEvent("ready");try{d.onreadystatechange=e}catch(f){}}}
function xy(b){b.V&&b.p&&(b.V.ontimeout=null);ja(b.b)&&(ba.clearTimeout(b.b),b.b=null)}function Ey(b){var c=Dy(b),d;a:switch(c){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break a;default:d=!1}if(!d){if(c=0===c)b=Qr(String(b.o))[1]||null,!b&&self.location&&(b=self.location.protocol,b=b.substr(0,b.length-1)),c=!ty.test(b?b.toLowerCase():"");d=c}return d}function Cy(b){return b.V?b.V.readyState:0}function Dy(b){try{return 2<Cy(b)?b.V.status:-1}catch(c){return-1}}
function Fy(b){try{return b.V?b.V.responseText:""}catch(c){return""}}function Gy(b){try{if(!b.V)return null;if("response"in b.V)return b.V.response;switch(b.e){case sy:case "text":return b.V.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in b.V)return b.V.mozResponseArrayBuffer}return null}catch(c){return null}};function Z(b){vn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection});this.format=b.format}v(Z,vn);function Hy(b,c,d,e,f){var g=new ry;g.e="binary"==b.format.O()&&Xf?"arraybuffer":"text";w(g,"complete",function(b){b=b.target;if(Ey(b)){var c=this.format.O(),g;if("binary"==c&&Xf)g=Gy(b);else if("json"==c)g=Fy(b);else if("text"==c)g=Fy(b);else if("xml"==c){if(!Gb)try{g=b.V?b.V.responseXML:null}catch(p){g=null}null!=g||(g=pq(Fy(b)))}null!=g?d.call(f,this.a(g)):bh(this,"error")}else e.call(f);pc(b)},!1,b);g.send(c)}Z.prototype.a=function(b){return this.format.ma(b,{featureProjection:this.e})};function $(b){Z.call(this,{attributions:b.attributions,format:b.format,logo:b.logo,projection:b.projection});m(b.arrayBuffer)&&this.lb(this.a(b.arrayBuffer));m(b.doc)&&this.lb(this.a(b.doc));m(b.node)&&this.lb(this.a(b.node));m(b.object)&&this.lb(this.a(b.object));m(b.text)&&this.lb(this.a(b.text));if(m(b.url)||m(b.urls))if(bh(this,"loading"),m(b.url)&&Hy(this,b.url,this.p,this.o,this),m(b.urls)){b=b.urls;var c,d;c=0;for(d=b.length;c<d;++c)Hy(this,b[c],this.p,this.o,this)}}v($,Z);$.prototype.o=function(){bh(this,"error")};$.prototype.p=function(b){this.lb(b);bh(this,"ready")};function Iy(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,extent:b.extent,format:new Kp({defaultDataProjection:b.defaultProjection}),logo:b.logo,object:b.object,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Iy,$);function Jy(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,extent:b.extent,format:new ar,logo:b.logo,node:b.node,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Jy,$);function Ky(b){b=m(b)?b:{};$.call(this,{format:new Lr({altitudeMode:b.altitudeMode}),projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Ky,$);function Ly(b){gn.call(this,{projection:b.projection,resolutions:b.resolutions});this.N=m(b.crossOrigin)?b.crossOrigin:null;this.g=m(b.displayDpi)?b.displayDpi:96;this.d=m(b.params)?b.params:{};var c;m(b.url)?c=jw(b.url,this.d,ra(this.$j,this)):c=kw;this.p=c;this.a=m(b.imageLoadFunction)?b.imageLoadFunction:nn;this.S=m(b.hidpi)?b.hidpi:!0;this.H=m(b.metersPerUnit)?b.metersPerUnit:1;this.k=m(b.ratio)?b.ratio:1;this.U=m(b.useOverlay)?b.useOverlay:!1;this.b=null;this.o=0}v(Ly,gn);l=Ly.prototype;l.Zj=function(){return this.d};l.sc=function(b,c,d,e){c=hn(this,c);d=this.S?d:1;var f=this.b;if(null!==f&&this.o==this.c&&f.resolution==c&&f.f==d&&Zd(f.J(),b))return f;1!=this.k&&(b=b.slice(),se(b,this.k));e=this.p(b,[qe(b)/c*d,ne(b)/c*d],e);m(e)?(f=new gw(b,c,d,this.f,e,this.N,this.a),w(f,"change",this.r,!1,this)):f=null;this.b=f;this.o=this.c;return f};l.Yj=function(){return this.a};l.bk=function(b){Db(this.d,b);this.l()};l.$j=function(b,c,d,e){var f;f=this.H;var g=qe(d),h=ne(d),k=e[0],n=e[1],p=.0254/this.g;f=n*g>k*h?g*f/(k*p):h*f/(n*p);d=ke(d);e={OPERATION:this.U?"GETDYNAMICMAPOVERLAYIMAGE":"GETMAPIMAGE",VERSION:"2.0.0",LOCALE:"en",CLIENTAGENT:"ol.source.ImageMapGuide source",CLIP:"1",SETDISPLAYDPI:this.g,SETDISPLAYWIDTH:Math.round(e[0]),SETDISPLAYHEIGHT:Math.round(e[1]),SETVIEWSCALE:f,SETVIEWCENTERX:d[0],SETVIEWCENTERY:d[1]};Db(e,c);return Tr(Vr([b],e))};l.ak=function(b){this.b=null;this.a=b;this.l()};function My(b){var c=m(b.attributions)?b.attributions:null,d=b.imageExtent,e,f;m(b.imageSize)&&(e=ne(d)/b.imageSize[1],f=[e]);var g=m(b.crossOrigin)?b.crossOrigin:null,h=m(b.imageLoadFunction)?b.imageLoadFunction:nn;gn.call(this,{attributions:c,logo:b.logo,projection:ze(b.projection),resolutions:f});this.a=new gw(d,e,1,c,b.url,g,h)}v(My,gn);My.prototype.sc=function(b){return pe(b,this.a.J())?this.a:null};function Ny(b){b=m(b)?b:{};gn.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,resolutions:b.resolutions});this.S=m(b.crossOrigin)?b.crossOrigin:null;this.d=b.url;this.k=m(b.imageLoadFunction)?b.imageLoadFunction:nn;this.b=b.params;this.g=!0;Oy(this);this.N=b.serverType;this.U=m(b.hidpi)?b.hidpi:!0;this.a=null;this.o=[0,0];this.H=0;this.p=m(b.ratio)?b.ratio:1.5}v(Ny,gn);var Py=[101,101];l=Ny.prototype;l.hk=function(b,c,d,e){if(m(this.d)){var f=me(b,c,0,Py),g={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.b.LAYERS};Db(g,this.b,e);e=Math.floor((f[3]-b[1])/c);g[this.g?"I":"X"]=Math.floor((b[0]-f[0])/c);g[this.g?"J":"Y"]=e;return Qy(this,f,Py,1,ze(d),g)}};l.jk=function(){return this.b};l.sc=function(b,c,d,e){if(!m(this.d))return null;c=hn(this,c);1==d||this.U&&m(this.N)||(d=1);var f=this.a;if(null!==f&&this.H==this.c&&f.resolution==c&&f.f==d&&Zd(f.J(),b))return f;f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Db(f,this.b);b=b.slice();var g=(b[0]+b[2])/2,h=(b[1]+b[3])/2;if(1!=this.p){var k=this.p*qe(b)/2,n=this.p*ne(b)/2;b[0]=g-k;b[1]=h-n;b[2]=g+k;b[3]=h+n}var k=c/d,n=Math.ceil(qe(b)/k),p=Math.ceil(ne(b)/k);b[0]=g-k*n/2;b[2]=g+k*n/2;b[1]=h-k*p/2;b[3]=h+k*p/2;this.o[0]=n;this.o[1]=p;e=Qy(this,b,this.o,d,e,f);this.a=new gw(b,c,d,this.f,e,this.S,this.k);this.H=this.c;w(this.a,"change",this.r,!1,this);return this.a};l.ik=function(){return this.k};function Qy(b,c,d,e,f,g){g[b.g?"CRS":"SRS"]=f.a;"STYLES"in b.b||(g.STYLES=new String(""));if(1!=e)switch(b.N){case "geoserver":g.FORMAT_OPTIONS="dpi:"+(90*e+.5|0);break;case "mapserver":g.MAP_RESOLUTION=90*e;break;case "carmentaserver":case "qgis":g.DPI=90*e}g.WIDTH=d[0];g.HEIGHT=d[1];d=f.b;var h;b.g&&"ne"==d.substr(0,2)?h=[c[1],c[0],c[3],c[2]]:h=c;g.BBOX=h.join(",");return Tr(Vr([b.d],g))}l.kk=function(){return this.d};l.lk=function(b){this.a=null;this.k=b;this.l()};l.mk=function(b){b!=this.d&&(this.d=b,this.a=null,this.l())};l.nk=function(b){Db(this.b,b);Oy(this);this.a=null;this.l()};function Oy(b){b.g=0<=La(zb(b.b,"VERSION","1.3.0"),"1.3")};function Ry(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,format:new qs({extractStyles:b.extractStyles,defaultStyle:b.defaultStyle}),logo:b.logo,node:b.node,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Ry,$);function Sy(b){var c=m(b.projection)?b.projection:"EPSG:3857",d=new ey({extent:lh(c),maxZoom:b.maxZoom,tileSize:b.tileSize});cy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:c,tileGrid:d,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:$x,wrapX:m(b.wrapX)?b.wrapX:!0});this.i=d.Db();m(b.tileUrlFunction)?this.ua(b.tileUrlFunction):m(b.urls)?this.ua(Yx(b.urls)):m(b.url)&&this.b(b.url)}v(Sy,cy);Sy.prototype.ua=function(b){Sy.T.ua.call(this,ay(this.i,b))};Sy.prototype.b=function(b){this.ua(Yx(by(b)))};function Ty(b){b=m(b)?b:{};var c;m(b.attributions)?c=b.attributions:c=[Uy];var d=Sb?"https:":"http:";Sy.call(this,{attributions:c,crossOrigin:m(b.crossOrigin)?b.crossOrigin:"anonymous",opaque:!0,maxZoom:m(b.maxZoom)?b.maxZoom:19,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:d+"//{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",wrapX:b.wrapX})}v(Ty,Sy);var Uy=new qf({html:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.'});function Vy(b){b=m(b)?b:{};var c=Wy[b.layer];this.d=b.layer;var d=Sb?"https:":"http:";Sy.call(this,{attributions:c.attributions,crossOrigin:"anonymous",logo:"//developer.mapquest.com/content/osm/mq_logo.png",maxZoom:c.maxZoom,opaque:!0,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:d+"//otile{1-4}-s.mqcdn.com/tiles/1.0.0/"+this.d+"/{z}/{x}/{y}.jpg"})}v(Vy,Sy);var Xy=new qf({html:'Tiles Courtesy of <a href="http://www.mapquest.com/">MapQuest</a>'}),Wy={osm:{maxZoom:19,attributions:[Xy,Uy]},sat:{maxZoom:18,attributions:[Xy,new qf({html:"Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency"})]},hyb:{maxZoom:18,attributions:[Xy,Uy]}};Vy.prototype.g=function(){return this.d};function Yy(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,doc:b.doc,format:new $t,logo:b.logo,node:b.node,projection:b.projection,text:b.text,url:b.url,urls:b.urls})}v(Yy,$);function Zy(b){Z.call(this,{attributions:b.attributions,format:b.format,logo:b.logo,projection:b.projection});this.p=new qn;this.r=b.loader;this.H=m(b.strategy)?b.strategy:Kx;this.o={}}v(Zy,Z);Zy.prototype.lb=function(b){var c=[],d,e;d=0;for(e=b.length;d<e;++d){var f=b[d],g=f.aa;m(g)?g in this.o||(c.push(f),this.o[g]=!0):c.push(f)}Zy.T.lb.call(this,c)};Zy.prototype.clear=function(b){xb(this.o);this.p.clear();Zy.T.clear.call(this,b)};Zy.prototype.Hb=function(b,c,d){var e=this.p;b=this.H(b,c);var f,g;f=0;for(g=b.length;f<g;++f){var h=b[f];un(e,h,function(b){return Zd(b.extent,h)})||(this.r.call(this,h,c,d),e.ta(h,{extent:h.slice()}))}};var $y={terrain:{Za:"jpg",opaque:!0},"terrain-background":{Za:"jpg",opaque:!0},"terrain-labels":{Za:"png",opaque:!1},"terrain-lines":{Za:"png",opaque:!1},"toner-background":{Za:"png",opaque:!0},toner:{Za:"png",opaque:!0},"toner-hybrid":{Za:"png",opaque:!1},"toner-labels":{Za:"png",opaque:!1},"toner-lines":{Za:"png",opaque:!1},"toner-lite":{Za:"png",opaque:!0},watercolor:{Za:"jpg",opaque:!0}},az={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:3,maxZoom:16}};function bz(b){var c=b.layer.indexOf("-"),d=$y[b.layer],e=Sb?"https://stamen-tiles-{a-d}.a.ssl.fastly.net/":"http://{a-d}.tile.stamen.com/";Sy.call(this,{attributions:cz,crossOrigin:"anonymous",maxZoom:az[-1==c?b.layer:b.layer.slice(0,c)].maxZoom,opaque:d.opaque,tileLoadFunction:b.tileLoadFunction,url:m(b.url)?b.url:e+b.layer+"/{z}/{x}/{y}."+d.Za})}v(bz,Sy);var cz=[new qf({html:'Map tiles by <a href="http://stamen.com/">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.'}),Uy];function dz(b){b=m(b)?b:{};var c=m(b.params)?b.params:{};cy.call(this,{attributions:b.attributions,logo:b.logo,projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:ra(this.rk,this),wrapX:m(b.wrapX)?b.wrapX:!0});var d=b.urls;!m(d)&&m(b.url)&&(d=by(b.url));this.d=null!=d?d:[];this.b=c;this.g=Sd()}v(dz,cy);l=dz.prototype;l.ok=function(){return this.b};l.Xb=function(b,c,d){b=dz.T.Xb.call(this,b,c,d);return 1==c?b:b*c+.5|0};l.pk=function(){return this.d};l.qk=function(b){b=m(b)?by(b):null;this.Of(b)};l.Of=function(b){this.d=null!=b?b:[];this.l()};l.rk=function(b,c,d){var e=this.tileGrid;null===e&&(e=rh(this,d));if(!(e.a.length<=b[0])){var f=eh(e,b,this.g),g=e.pa(b[0]);1!=c&&(g=g*c+.5|0);e={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};Db(e,this.b);var h=this.d;0==h.length?b=void 0:(d=d.a.split(":").pop(),e.SIZE=g+","+g,e.BBOX=f.join(","),e.BBOXSR=d,e.IMAGESR=d,e.DPI=90*c,b=1==h.length?h[0]:h[Wb((b[1]<<b[0])+b[2],h.length)],ya(b,"/")||(b+="/"),ya(b,"MapServer/")?b+="export":ya(b,"ImageServer/")&&(b+="exportImage"),b=Tr(Vr([b],e)));return b}};l.sk=function(b){Db(this.b,b);this.l()};function ez(b,c){Zg.call(this,b,2);this.b=c.pa(b[0]);this.c={}}v(ez,Zg);ez.prototype.Ta=function(b){b=m(b)?ma(b):-1;if(b in this.c)return this.c[b];var c=this.b,d=Nf(c,c);d.strokeStyle="black";d.strokeRect(.5,.5,c+.5,c+.5);d.fillStyle="black";d.textAlign="center";d.textBaseline="middle";d.font="24px sans-serif";d.fillText(jf(this.a),c/2,c/2);return this.c[b]=d.canvas};function fz(b){ph.call(this,{opaque:!1,projection:b.projection,tileGrid:b.tileGrid})}v(fz,ph);fz.prototype.Vb=function(b,c,d){var e=this.nb(b,c,d);if(Wg(this.a,e))return this.a.get(e);b=new ez([b,c,d],this.tileGrid);this.a.set(e,b);return b};function gz(b){cy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,projection:ze("EPSG:3857"),state:"loading",tileLoadFunction:b.tileLoadFunction,wrapX:m(b.wrapX)?b.wrapX:!0});(new Sx(b.url)).send(void 0,ra(this.b,this))}v(gz,cy);gz.prototype.b=function(b){var c=ze("EPSG:4326"),d=this.e,e;m(b.bounds)&&(e=te(b.bounds,De(c,d)));var f=b.minzoom||0,g=b.maxzoom||22;this.tileGrid=d=new ey({extent:lh(d),maxZoom:g,minZoom:f});this.tileUrlFunction=ay(d.Db({extent:e}),Yx(b.tiles));if(m(b.attribution)&&null===this.f){c=m(e)?e:c.J();e={};for(var h;f<=g;++f)h=f.toString(),e[h]=[fh(d,c,f)];this.f=[new qf({html:b.attribution,tileRanges:e})]}bh(this,"ready")};function hz(b){ph.call(this,{projection:ze("EPSG:3857"),state:"loading"});this.g=m(b.preemptive)?b.preemptive:!0;this.b=$x;this.d=void 0;(new Sx(b.url)).send(void 0,ra(this.uk,this))}v(hz,ph);l=hz.prototype;l.ci=function(){return this.d};l.wh=function(b,c,d,e,f){null===this.tileGrid?!0===f?Nh(function(){d.call(e,null)}):d.call(e,null):(c=this.tileGrid.Wb(b,c),iz(this.Vb(c[0],c[1],c[2],1,this.e),b,d,e,f))};l.uk=function(b){var c=ze("EPSG:4326"),d=this.e,e;m(b.bounds)&&(e=te(b.bounds,De(c,d)));var f=b.minzoom||0,g=b.maxzoom||22;this.tileGrid=d=new ey({extent:lh(d),maxZoom:g,minZoom:f});this.d=b.template;var h=b.grids;if(null!=h){this.b=ay(d.Db({extent:e}),Yx(h));if(m(b.attribution)){c=m(e)?e:c.J();for(e={};f<=g;++f)h=f.toString(),e[h]=[fh(d,c,f)];this.f=[new qf({html:b.attribution,tileRanges:e})]}bh(this,"ready")}else bh(this,"error")};l.Vb=function(b,c,d,e,f){var g=this.nb(b,c,d);if(Wg(this.a,g))return this.a.get(g);b=[b,c,d];e=this.b(b,e,f);e=new jz(b,m(e)?0:4,m(e)?e:"",eh(this.tileGrid,b),this.g);this.a.set(g,e);return e};l.Oe=function(b,c,d){b=this.nb(b,c,d);Wg(this.a,b)&&this.a.get(b)};function jz(b,c,d,e,f){Zg.call(this,b,c);this.g=d;this.c=e;this.n=f;this.d=this.f=this.b=null}v(jz,Zg);l=jz.prototype;l.Ta=function(){return null};function kz(b,c){if(null===b.b||null===b.f||null===b.d)return null;var d=b.b[Math.floor((1-(c[1]-b.c[1])/(b.c[3]-b.c[1]))*b.b.length)];if(!ia(d))return null;d=d.charCodeAt(Math.floor((c[0]-b.c[0])/(b.c[2]-b.c[0])*d.length));93<=d&&d--;35<=d&&d--;d=b.f[d-32];return null!=d?b.d[d]:null}function iz(b,c,d,e,f){0==b.state&&!0===f?(Uc(b,"change",function(){d.call(e,kz(this,c))},!1,b),lz(b)):!0===f?Nh(function(){d.call(e,kz(this,c))},b):d.call(e,kz(b,c))}l.qb=function(){return this.g};l.si=function(){this.state=3;$g(this)};l.Fi=function(b){this.b=b.grid;this.f=b.keys;this.d=b.data;this.state=4;$g(this)};function lz(b){0==b.state&&(b.state=1,(new Sx(b.g)).send(void 0,ra(b.Fi,b),ra(b.si,b)))}l.load=function(){this.n&&lz(this)};function mz(b){Z.call(this,{attributions:b.attributions,format:b.format,logo:b.logo,projection:b.projection});this.p=b.tileGrid;this.r=$x;this.H=this.p.Db();this.o={};m(b.tileUrlFunction)?(this.r=b.tileUrlFunction,this.l()):m(b.urls)?(this.r=Yx(b.urls),this.l()):m(b.url)&&(this.r=Yx(by(b.url)),this.l())}v(mz,Z);l=mz.prototype;l.clear=function(){xb(this.o)};function nz(b,c,d,e){var f=b.o;b=b.p.Wb(c,d);f=f[b[0]+"/"+b[1]+"/"+b[2]];if(m(f))for(b=0,d=f.length;b<d;++b){var g=f[b];if(g.R().Jb(c[0],c[1])&&e.call(void 0,g))break}}l.Fb=function(b,c,d,e){var f=this.p,g=this.o;c=jh(f,c);b=fh(f,b,c);for(var h,f=b.a;f<=b.d;++f)for(h=b.b;h<=b.c;++h){var k=g[c+"/"+f+"/"+h];if(m(k)){var n,p;n=0;for(p=k.length;n<p;++n){var q=d.call(e,k[n]);if(q)return q}}}};l.Aa=function(){var b=this.o,c=[],d;for(d in b)ab(c,b[d]);return c};l.Eh=function(b,c){var d=[];nz(this,b,c,function(b){d.push(b)});return d};l.Hb=function(b,c,d){function e(b,c){k[b]=c;bh(this,"ready")}var f=this.H,g=this.p,h=this.r,k=this.o;c=jh(g,c);b=fh(g,b,c);var g=[c,0,0],n,p;for(n=b.a;n<=b.d;++n)for(p=b.b;p<=b.c;++p){var q=c+"/"+n+"/"+p;if(!(q in k)){g[0]=c;g[1]=n;g[2]=p;f(g,d,g);var r=h(g,1,d);m(r)&&(k[q]=[],Hy(this,r,sa(e,q),ca,this))}}};function oz(b){b=m(b)?b:{};var c=m(b.params)?b.params:{};cy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,opaque:!zb(c,"TRANSPARENT",!0),projection:b.projection,tileGrid:b.tileGrid,tileLoadFunction:b.tileLoadFunction,tileUrlFunction:ra(this.zk,this),wrapX:b.wrapX});var d=b.urls;!m(d)&&m(b.url)&&(d=by(b.url));this.d=null!=d?d:[];this.i=m(b.gutter)?b.gutter:0;this.b=c;this.g=!0;this.k=b.serverType;this.p=m(b.hidpi)?b.hidpi:!0;this.o="";pz(this);this.r=Sd();qz(this)}
v(oz,cy);l=oz.prototype;l.vk=function(b,c,d,e){d=ze(d);var f=this.tileGrid;null===f&&(f=rh(this,d));c=f.Wb(b,c);if(!(f.a.length<=c[0])){var g=f.na(c[0]),h=eh(f,c,this.r),f=f.pa(c[0]),k=this.i;0!==k&&(f+=2*k,h=Wd(h,g*k,h));k={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.b.LAYERS};Db(k,this.b,e);e=Math.floor((h[3]-b[1])/g);k[this.g?"I":"X"]=Math.floor((b[0]-h[0])/g);k[this.g?"J":"Y"]=e;return rz(this,c,f,h,1,d,k)}};l.jd=function(){return this.i};l.nb=function(b,c,d){return this.o+oz.T.nb.call(this,b,c,d)};l.wk=function(){return this.b};function rz(b,c,d,e,f,g,h){var k=b.d;if(0!=k.length){h.WIDTH=d;h.HEIGHT=d;h[b.g?"CRS":"SRS"]=g.a;"STYLES"in b.b||(h.STYLES=new String(""));if(1!=f)switch(b.k){case "geoserver":h.FORMAT_OPTIONS="dpi:"+(90*f+.5|0);break;case "mapserver":h.MAP_RESOLUTION=90*f;break;case "carmentaserver":case "qgis":h.DPI=90*f}d=g.b;b.g&&"ne"==d.substr(0,2)&&(b=e[0],e[0]=e[1],e[1]=b,b=e[2],e[2]=e[3],e[3]=b);h.BBOX=e.join(",");return Tr(Vr([1==k.length?k[0]:k[Wb((c[1]<<c[0])+c[2],k.length)]],h))}}
l.Xb=function(b,c,d){b=oz.T.Xb.call(this,b,c,d);return 1!=c&&this.p&&m(this.k)?b*c+.5|0:b};l.xk=function(){return this.d};function pz(b){var c=0,d=[],e,f;e=0;for(f=b.d.length;e<f;++e)d[c++]=b.d[e];for(var g in b.b)d[c++]=g+"-"+b.b[g];b.o=d.join("#")}l.yk=function(b){b=m(b)?by(b):null;this.Pf(b)};l.Pf=function(b){this.d=null!=b?b:[];pz(this);this.l()};l.zk=function(b,c,d){var e=this.tileGrid;null===e&&(e=rh(this,d));if(!(e.a.length<=b[0])){1==c||this.p&&m(this.k)||(c=1);var f=e.na(b[0]),g=eh(e,b,this.r),e=e.pa(b[0]),h=this.i;0!==h&&(e+=2*h,g=Wd(g,f*h,g));1!=c&&(e=e*c+.5|0);f={SERVICE:"WMS",VERSION:"1.3.0",REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Db(f,this.b);return rz(this,b,e,g,c,d,f)}};l.Ak=function(b){Db(this.b,b);pz(this);qz(this);this.l()};function qz(b){b.g=0<=La(zb(b.b,"VERSION","1.3.0"),"1.3")};function sz(b){b=m(b)?b:{};$.call(this,{attributions:b.attributions,extent:b.extent,format:new Du({defaultDataProjection:b.defaultProjection}),logo:b.logo,object:b.object,projection:b.projection,text:b.text,url:b.url})}v(sz,$);function tz(b){this.d=b.matrixIds;ch.call(this,{origin:b.origin,origins:b.origins,resolutions:b.resolutions,tileSize:b.tileSize,tileSizes:b.tileSizes,widths:b.widths})}v(tz,ch);tz.prototype.n=function(){return this.d};function uz(b){var c=[],d=[],e=[],f=[],g=[],h;h=ze(b.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3"));var k=h.od(),n="ne"==h.b.substr(0,2);db(b.TileMatrix,function(b,c){return c.ScaleDenominator-b.ScaleDenominator});Qa(b.TileMatrix,function(b){d.push(b.Identifier);n?e.push([b.TopLeftCorner[1],b.TopLeftCorner[0]]):e.push(b.TopLeftCorner);c.push(2.8E-4*b.ScaleDenominator/k);f.push(b.TileWidth);g.push(b.MatrixWidth)});return new tz({origins:e,resolutions:c,matrixIds:d,tileSizes:f,widths:g})};function vz(b){function c(b){b="KVP"==d?Tr(Vr([b],f)):b.replace(/\{(\w+?)\}/g,function(b,c){return c.toLowerCase()in f?f[c.toLowerCase()]:b});return function(c){if(null!==c){var f={TileMatrix:e.d[c[0]],TileCol:c[1],TileRow:c[2]};Db(f,g);c=b;return c="KVP"==d?Tr(Vr([c],f)):c.replace(/\{(\w+?)\}/g,function(b,c){return f[c]})}}}this.p=m(b.version)?b.version:"1.0.0";this.d=m(b.format)?b.format:"image/jpeg";this.b=m(b.dimensions)?b.dimensions:{};this.i="";wz(this);this.k=b.layer;this.g=b.matrixSet;this.o=b.style;var d=m(b.requestEncoding)?b.requestEncoding:"KVP",e=b.tileGrid,f={layer:this.k,style:this.o,tilematrixset:this.g};"KVP"==d&&Db(f,{Service:"WMTS",Request:"GetTile",Version:this.p,Format:this.d});var g=this.b,h=$x,k=b.urls;!m(k)&&m(b.url)&&(k=by(b.url));m(k)&&(h=Zx(Sa(k,c)));var n=Sd(),h=ay(function(b,c,d){if(e.a.length<=b[0])return null;var f=b[1],g=-b[2]-1,h=eh(e,b,n);c=c.J();return!pe(h,c)||pe(h,c)&&(h[0]==c[2]||h[2]==c[0]||h[1]==c[3]||h[3]==c[1])?null:ff(b[0],f,g,d)},h);cy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,projection:b.projection,tileClass:b.tileClass,tileGrid:e,tileLoadFunction:b.tileLoadFunction,tilePixelRatio:b.tilePixelRatio,tileUrlFunction:h,wrapX:m(b.wrapX)?b.wrapX:!1})}v(vz,cy);l=vz.prototype;l.Ch=function(){return this.b};l.Gh=function(){return this.d};l.nb=function(b,c,d){return this.i+vz.T.nb.call(this,b,c,d)};l.Bk=function(){return this.k};l.Sh=function(){return this.g};l.Ck=function(){return this.o};l.gi=function(){return this.p};function wz(b){var c=0,d=[],e;for(e in b.b)d[c++]=e+"-"+b.b[e];b.i=d.join("/")}l.rm=function(b){Db(this.b,b);wz(this);this.l()};function xz(b){var c=m(b)?b:c;ch.call(this,{origin:[0,0],resolutions:c.resolutions})}v(xz,ch);xz.prototype.Db=function(b){b=m(b)?b:{};var c=this.minZoom,d=this.maxZoom,e=null;if(m(b.extent)){var e=Array(d+1),f;for(f=0;f<=d;++f)e[f]=f<c?null:fh(this,b.extent,f)}return function(b,f,k){f=b[0];if(f<c||d<f)return null;var n=Math.pow(2,f),p=b[1];if(0>p||n<=p)return null;b=b[2];return b<-n||-1<b||null!==e&&!mf(e[f],p,-b-1)?null:ff(f,p,-b-1,k)}};function yz(b){b=m(b)?b:{};var c=b.size,d=c[0],e=c[1],f=[],g=256;switch(m(b.tierSizeCalculation)?b.tierSizeCalculation:"default"){case "default":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),g+=g;break;case "truncated":for(;d>g||e>g;)f.push([Math.ceil(d/g),Math.ceil(e/g)]),d>>=1,e>>=1}f.push([1,1]);f.reverse();for(var g=[1],h=[0],e=1,d=f.length;e<d;e++)g.push(1<<e),h.push(f[e-1][0]*f[e-1][1]+h[e-1]);g.reverse();var g=new xz({resolutions:g}),k=b.url,c=ay(g.Db({extent:[0,0,c[0],c[1]]}),function(b){if(null!==b){var c=b[0],d=b[1];b=b[2];return k+"TileGroup"+((d+b*f[c][0]+h[c])/256|0)+"/"+c+"-"+d+"-"+b+".jpg"}});cy.call(this,{attributions:b.attributions,crossOrigin:b.crossOrigin,logo:b.logo,tileClass:zz,tileGrid:g,tileUrlFunction:c})}v(yz,cy);function zz(b,c,d,e,f){hw.call(this,b,c,d,e,f);this.d={}}v(zz,hw);zz.prototype.Ta=function(b){var c=m(b)?ma(b).toString():"";if(c in this.d)return this.d[c];b=zz.T.Ta.call(this,b);if(2==this.state){if(256==b.width&&256==b.height)return this.d[c]=b;var d=Nf(256,256);d.drawImage(b,0,0);return this.d[c]=d.canvas}return b};function Az(b){b=m(b)?b:{};this.c=m(b.initialSize)?b.initialSize:256;this.b=m(b.maxSize)?b.maxSize:m(ua)?ua:2048;this.a=m(b.space)?b.space:1;this.f=[new Bz(this.c,this.a)];this.d=this.c;this.e=[new Bz(this.d,this.a)]}Az.prototype.add=function(b,c,d,e,f,g){if(c+this.a>this.b||d+this.a>this.b)return null;e=Cz(this,!1,b,c,d,e,g);if(null===e)return null;b=Cz(this,!0,b,c,d,m(f)?f:cd,g);return{offsetX:e.offsetX,offsetY:e.offsetY,image:e.image,wf:b.image}};function Cz(b,c,d,e,f,g,h){var k=c?b.e:b.f,n,p,q;p=0;for(q=k.length;p<q;++p){n=k[p];n=n.add(d,e,f,g,h);if(null!==n)return n;null===n&&p===q-1&&(c?(n=Math.min(2*b.d,b.b),b.d=n):(n=Math.min(2*b.c,b.b),b.c=n),n=new Bz(n,b.a),k.push(n),++q)}}function Bz(b,c){this.a=c;this.c=[{x:0,y:0,width:b,height:b}];this.d={};this.b=Ef("CANVAS");this.b.width=b;this.b.height=b;this.f=this.b.getContext("2d")}Bz.prototype.get=function(b){return zb(this.d,b,null)};Bz.prototype.add=function(b,c,d,e,f){var g,h,k;h=0;for(k=this.c.length;h<k;++h)if(g=this.c[h],g.width>=c+this.a&&g.height>=d+this.a)return k={offsetX:g.x+this.a,offsetY:g.y+this.a,image:this.b},this.d[b]=k,e.call(f,this.f,g.x+this.a,g.y+this.a),b=h,c=c+this.a,d=d+this.a,f=e=void 0,g.width-c>g.height-d?(e={x:g.x+c,y:g.y,width:g.width-c,height:g.height},f={x:g.x,y:g.y+d,width:c,height:g.height-d},Dz(this,b,e,f)):(e={x:g.x+c,y:g.y,width:g.width-c,height:d},f={x:g.x,y:g.y+d,width:g.width,height:g.height-
d},Dz(this,b,e,f)),k;return null};function Dz(b,c,d,e){c=[c,1];0<d.width&&0<d.height&&c.push(d);0<e.width&&0<e.height&&c.push(e);b.c.splice.apply(b.c,c)};function Ez(b){this.q=this.d=this.f=null;this.n=m(b.fill)?b.fill:null;this.N=[0,0];this.a=b.points;this.b=m(b.radius)?b.radius:b.radius1;this.e=m(b.radius2)?b.radius2:this.b;this.g=m(b.angle)?b.angle:0;this.c=m(b.stroke)?b.stroke:null;this.H=this.S=this.D=null;var c=b.atlasManager,d="",e="",f=0,g=null,h,k=0;null!==this.c&&(h=sg(this.c.a),k=this.c.c,m(k)||(k=1),g=this.c.b,Yf||(g=null),e=this.c.f,m(e)||(e="round"),d=this.c.d,m(d)||(d="round"),f=this.c.e,m(f)||(f=10));var n=2*(this.b+k)+1,d={strokeStyle:h,Uc:k,size:n,lineCap:d,lineDash:g,lineJoin:e,miterLimit:f};if(m(c)){var n=Math.round(n),e=null===this.n,p;e&&(p=ra(this.Tf,this,d));f=this.xb();p=c.add(f,n,n,ra(this.Uf,this,d),p);this.d=p.image;this.N=[p.offsetX,p.offsetY];c=p.image.width;this.q=e?p.wf:this.d}else this.d=Ef("CANVAS"),this.d.height=n,this.d.width=n,c=n=this.d.width,p=this.d.getContext("2d"),this.Uf(d,p,0,0),null===this.n?(p=this.q=Ef("CANVAS"),p.height=d.size,p.width=d.size,p=p.getContext("2d"),this.Tf(d,p,0,0)):this.q=this.d;this.D=[n/2,n/2];this.S=[n,n];this.H=[c,c];zj.call(this,{opacity:1,rotateWithView:!1,rotation:m(b.rotation)?b.rotation:0,scale:1,snapToPixel:m(b.snapToPixel)?b.snapToPixel:!0})}v(Ez,zj);l=Ez.prototype;l.wb=function(){return this.D};l.Hk=function(){return this.g};l.Ik=function(){return this.n};l.Kd=function(){return this.q};l.Bb=function(){return this.d};l.kd=function(){return this.H};l.Pc=function(){return 2};l.Cb=function(){return this.N};l.Jk=function(){return this.a};l.Kk=function(){return this.b};l.bi=function(){return this.e};l.gb=function(){return this.S};l.Lk=function(){return this.c};l.we=ca;l.load=ca;l.Ne=ca;l.Uf=function(b,c,d,e){var f;c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();this.e!==this.b&&(this.a*=2);for(d=0;d<=this.a;d++)e=2*d*Math.PI/this.a-Math.PI/2+this.g,f=0===d%2?this.b:this.e,c.lineTo(b.size/2+f*Math.cos(e),b.size/2+f*Math.sin(e));null!==this.n&&(c.fillStyle=sg(this.n.a),c.fill());null!==this.c&&(c.strokeStyle=b.strokeStyle,c.lineWidth=b.Uc,null===b.lineDash||c.setLineDash(b.lineDash),c.lineCap=b.lineCap,c.lineJoin=b.lineJoin,c.miterLimit=b.miterLimit,c.stroke());c.closePath()};l.Tf=function(b,c,d,e){c.setTransform(1,0,0,1,0,0);c.translate(d,e);c.beginPath();this.e!==this.b&&(this.a*=2);var f;for(d=0;d<=this.a;d++)f=2*d*Math.PI/this.a-Math.PI/2+this.g,e=0===d%2?this.b:this.e,c.lineTo(b.size/2+e*Math.cos(f),b.size/2+e*Math.sin(f));c.fillStyle=rl;c.fill();null!==this.c&&(c.strokeStyle=b.strokeStyle,c.lineWidth=b.Uc,null===b.lineDash||c.setLineDash(b.lineDash),c.stroke());c.closePath()};l.xb=function(){var b=null===this.c?"-":this.c.xb(),c=null===this.n?"-":this.n.xb();if(null===this.f||b!=this.f[1]||c!=this.f[2]||this.b!=this.f[3]||this.e!=this.f[4]||this.g!=this.f[5]||this.a!=this.f[6])this.f=["r"+b+c+(m(this.b)?this.b.toString():"-")+(m(this.e)?this.e.toString():"-")+(m(this.g)?this.g.toString():"-")+(m(this.a)?this.a.toString():"-"),b,c,this.b,this.e,this.g,this.a];return this.f[0]};t("ol.animation.bounce",function(b){var c=b.resolution,d=m(b.start)?b.start:ta(),e=m(b.duration)?b.duration:1E3,f=m(b.easing)?b.easing:bf;return function(b,h){if(h.time<d)return h.animate=!0,h.viewHints[0]+=1,!0;if(h.time<d+e){var k=f((h.time-d)/e),n=c-h.viewState.resolution;h.animate=!0;h.viewState.resolution+=k*n;h.viewHints[0]+=1;return!0}return!1}},OPENLAYERS);t("ol.animation.pan",cf,OPENLAYERS);t("ol.animation.rotate",df,OPENLAYERS);t("ol.animation.zoom",ef,OPENLAYERS);t("ol.Attribution",qf,OPENLAYERS);qf.prototype.getHTML=qf.prototype.b;kg.prototype.element=kg.prototype.element;t("ol.Collection",lg,OPENLAYERS);lg.prototype.clear=lg.prototype.clear;lg.prototype.extend=lg.prototype.xe;lg.prototype.forEach=lg.prototype.forEach;lg.prototype.getArray=lg.prototype.jj;lg.prototype.item=lg.prototype.item;lg.prototype.getLength=lg.prototype.Ib;lg.prototype.insertAt=lg.prototype.zd;lg.prototype.pop=lg.prototype.pop;lg.prototype.push=lg.prototype.push;lg.prototype.remove=lg.prototype.remove;lg.prototype.removeAt=lg.prototype.Ke;lg.prototype.setAt=lg.prototype.Vl;t("ol.coordinate.add",vd,OPENLAYERS);t("ol.coordinate.createStringXY",function(b){return function(c){return Cd(c,b)}},OPENLAYERS);t("ol.coordinate.format",yd,OPENLAYERS);t("ol.coordinate.rotate",Ad,OPENLAYERS);t("ol.coordinate.toStringHDMS",function(b){return m(b)?xd(b[1],"NS")+" "+xd(b[0],"EW"):""},OPENLAYERS);t("ol.coordinate.toStringXY",Cd,OPENLAYERS);t("ol.DeviceOrientation",wp,OPENLAYERS);wp.prototype.getAlpha=wp.prototype.f;wp.prototype.getBeta=wp.prototype.e;wp.prototype.getGamma=wp.prototype.g;wp.prototype.getHeading=wp.prototype.i;wp.prototype.getTracking=wp.prototype.d;wp.prototype.setTracking=wp.prototype.b;t("ol.easing.easeIn",function(b){return Math.pow(b,3)},OPENLAYERS);t("ol.easing.easeOut",Ze,OPENLAYERS);t("ol.easing.inAndOut",$e,OPENLAYERS);t("ol.easing.linear",af,OPENLAYERS);t("ol.easing.upAndDown",bf,OPENLAYERS);t("ol.extent.boundingExtent",Rd,OPENLAYERS);t("ol.extent.buffer",Wd,OPENLAYERS);t("ol.extent.containsCoordinate",function(b,c){return $d(b,c[0],c[1])},OPENLAYERS);t("ol.extent.containsExtent",Zd,OPENLAYERS);t("ol.extent.containsXY",$d,OPENLAYERS);t("ol.extent.createEmpty",Sd,OPENLAYERS);t("ol.extent.equals",ce,OPENLAYERS);t("ol.extent.extend",de,OPENLAYERS);t("ol.extent.getBottomLeft",ge,OPENLAYERS);t("ol.extent.getBottomRight",he,OPENLAYERS);t("ol.extent.getCenter",ke,OPENLAYERS);t("ol.extent.getHeight",ne,OPENLAYERS);t("ol.extent.getIntersection",oe,OPENLAYERS);t("ol.extent.getSize",function(b){return[b[2]-b[0],b[3]-b[1]]},OPENLAYERS);t("ol.extent.getTopLeft",je,OPENLAYERS);t("ol.extent.getTopRight",ie,OPENLAYERS);t("ol.extent.getWidth",qe,OPENLAYERS);t("ol.extent.intersects",pe,OPENLAYERS);t("ol.extent.isEmpty",re,OPENLAYERS);t("ol.extent.applyTransform",te,OPENLAYERS);t("ol.Feature",O,OPENLAYERS);O.prototype.clone=O.prototype.clone;O.prototype.getGeometry=O.prototype.R;O.prototype.getId=O.prototype.Jh;O.prototype.getGeometryName=O.prototype.Ih;O.prototype.getStyle=O.prototype.qj;O.prototype.getStyleFunction=O.prototype.rj;O.prototype.setGeometry=O.prototype.Sa;O.prototype.setStyle=O.prototype.i;O.prototype.setId=O.prototype.d;O.prototype.setGeometryName=O.prototype.f;t("ol.FeatureOverlay",yp,OPENLAYERS);yp.prototype.addFeature=yp.prototype.Cf;yp.prototype.getFeatures=yp.prototype.kj;yp.prototype.getMap=yp.prototype.lj;yp.prototype.removeFeature=yp.prototype.Ed;yp.prototype.setFeatures=yp.prototype.Tc;yp.prototype.setMap=yp.prototype.setMap;yp.prototype.setStyle=yp.prototype.Ef;yp.prototype.getStyle=yp.prototype.mj;yp.prototype.getStyleFunction=yp.prototype.nj;t("ol.Geolocation",X,OPENLAYERS);X.prototype.getAccuracy=X.prototype.lf;X.prototype.getAccuracyGeometry=X.prototype.o;X.prototype.getAltitude=X.prototype.p;X.prototype.getAltitudeAccuracy=X.prototype.r;X.prototype.getHeading=X.prototype.H;X.prototype.getPosition=X.prototype.N;X.prototype.getProjection=X.prototype.g;X.prototype.getSpeed=X.prototype.D;X.prototype.getTracking=X.prototype.i;X.prototype.getTrackingOptions=X.prototype.e;X.prototype.setProjection=X.prototype.k;X.prototype.setTracking=X.prototype.b;X.prototype.setTrackingOptions=X.prototype.q;t("ol.Graticule",bw,OPENLAYERS);bw.prototype.getMap=bw.prototype.uj;bw.prototype.getMeridians=bw.prototype.Th;bw.prototype.getParallels=bw.prototype.Yh;bw.prototype.setMap=bw.prototype.setMap;t("ol.has.DEVICE_PIXEL_RATIO",Vf,OPENLAYERS);t("ol.has.CANVAS",Zf,OPENLAYERS);t("ol.has.DEVICE_ORIENTATION",$f,OPENLAYERS);t("ol.has.GEOLOCATION",ag,OPENLAYERS);t("ol.has.TOUCH",bg,OPENLAYERS);t("ol.has.WEBGL",Uf,OPENLAYERS);gw.prototype.getImage=gw.prototype.a;hw.prototype.getImage=hw.prototype.Ta;t("ol.Kinetic",Oj,OPENLAYERS);t("ol.loadingstrategy.all",function(){return[[-Infinity,-Infinity,Infinity,Infinity]]},OPENLAYERS);t("ol.loadingstrategy.bbox",Kx,OPENLAYERS);t("ol.loadingstrategy.createTile",function(b){return function(c,d){var e=jh(b,d),f=fh(b,c,e),g=[],e=[e,0,0];for(e[1]=f.a;e[1]<=f.d;++e[1])for(e[2]=f.b;e[2]<=f.c;++e[2])g.push(eh(b,e));return g}},OPENLAYERS);t("ol.Map",K,OPENLAYERS);K.prototype.addControl=K.prototype.fh;K.prototype.addInteraction=K.prototype.gh;K.prototype.addLayer=K.prototype.af;K.prototype.addOverlay=K.prototype.bf;K.prototype.beforeRender=K.prototype.La;K.prototype.forEachFeatureAtPixel=K.prototype.qe;K.prototype.forEachLayerAtPixel=K.prototype.yj;K.prototype.hasFeatureAtPixel=K.prototype.Ri;K.prototype.getEventCoordinate=K.prototype.Dh;K.prototype.getEventPixel=K.prototype.hd;K.prototype.getTarget=K.prototype.Fd;K.prototype.getTargetElement=K.prototype.Mc;K.prototype.getCoordinateFromPixel=K.prototype.sa;K.prototype.getControls=K.prototype.Bh;K.prototype.getOverlays=K.prototype.Xh;K.prototype.getInteractions=K.prototype.Kh;K.prototype.getLayerGroup=K.prototype.Ub;K.prototype.getLayers=K.prototype.ea;K.prototype.getPixelFromCoordinate=K.prototype.e;K.prototype.getSize=K.prototype.f;K.prototype.getView=K.prototype.a;K.prototype.getViewport=K.prototype.hi;K.prototype.renderSync=K.prototype.Sl;K.prototype.render=K.prototype.render;K.prototype.removeControl=K.prototype.Ml;K.prototype.removeInteraction=K.prototype.Nl;K.prototype.removeLayer=K.prototype.Ol;K.prototype.removeOverlay=K.prototype.Pl;K.prototype.setLayerGroup=K.prototype.sg;K.prototype.setSize=K.prototype.S;K.prototype.setTarget=K.prototype.ia;K.prototype.setView=K.prototype.Fa;K.prototype.updateSize=K.prototype.q;Vi.prototype.originalEvent=Vi.prototype.originalEvent;Vi.prototype.pixel=Vi.prototype.pixel;Vi.prototype.coordinate=Vi.prototype.coordinate;Vi.prototype.dragging=Vi.prototype.dragging;Vi.prototype.preventDefault=Vi.prototype.preventDefault;Vi.prototype.stopPropagation=Vi.prototype.pb;Tg.prototype.map=Tg.prototype.map;Tg.prototype.frameState=Tg.prototype.frameState;md.prototype.key=md.prototype.key;md.prototype.oldValue=md.prototype.oldValue;nd.prototype.transform=nd.prototype.transform;t("ol.Object",qd,OPENLAYERS);qd.prototype.bindTo=qd.prototype.K;qd.prototype.get=qd.prototype.get;qd.prototype.getKeys=qd.prototype.G;qd.prototype.getProperties=qd.prototype.I;qd.prototype.set=qd.prototype.set;qd.prototype.setProperties=qd.prototype.C;qd.prototype.unbind=qd.prototype.L;qd.prototype.unbindAll=qd.prototype.M;t("ol.Observable",kd,OPENLAYERS);t("ol.Observable.unByKey",ld,OPENLAYERS);kd.prototype.changed=kd.prototype.l;kd.prototype.getRevision=kd.prototype.u;kd.prototype.on=kd.prototype.s;kd.prototype.once=kd.prototype.v;kd.prototype.un=kd.prototype.t;kd.prototype.unByKey=kd.prototype.A;t("ol.WEBGL_MAX_TEXTURE_SIZE",ua,OPENLAYERS);t("ol.inherits",v,OPENLAYERS);t("ol.Overlay",M,OPENLAYERS);M.prototype.getElement=M.prototype.b;M.prototype.getMap=M.prototype.d;M.prototype.getOffset=M.prototype.i;M.prototype.getPosition=M.prototype.q;M.prototype.getPositioning=M.prototype.k;M.prototype.setElement=M.prototype.Le;M.prototype.setMap=M.prototype.setMap;M.prototype.setOffset=M.prototype.o;M.prototype.setPosition=M.prototype.e;M.prototype.setPositioning=M.prototype.p;Zg.prototype.getTileCoord=Zg.prototype.e;t("ol.View",B,OPENLAYERS);B.prototype.constrainCenter=B.prototype.i;B.prototype.constrainResolution=B.prototype.constrainResolution;B.prototype.constrainRotation=B.prototype.constrainRotation;B.prototype.getCenter=B.prototype.b;B.prototype.calculateExtent=B.prototype.g;B.prototype.getProjection=B.prototype.N;B.prototype.getResolution=B.prototype.a;B.prototype.getResolutionForExtent=B.prototype.k;B.prototype.getRotation=B.prototype.d;B.prototype.getZoom=B.prototype.ki;B.prototype.fitExtent=B.prototype.pe;B.prototype.fitGeometry=B.prototype.vh;B.prototype.centerOn=B.prototype.nh;B.prototype.rotate=B.prototype.rotate;B.prototype.setCenter=B.prototype.Ha;B.prototype.setResolution=B.prototype.f;B.prototype.setRotation=B.prototype.r;B.prototype.setZoom=B.prototype.S;t("ol.xml.getAllTextContent",Wp,OPENLAYERS);t("ol.xml.parse",pq,OPENLAYERS);t("ol.webgl.Context",$n,OPENLAYERS);$n.prototype.getGL=$n.prototype.bl;$n.prototype.getHitDetectionFramebuffer=$n.prototype.se;$n.prototype.useProgram=$n.prototype.Rd;t("ol.tilegrid.TileGrid",ch,OPENLAYERS);ch.prototype.getMaxZoom=ch.prototype.md;ch.prototype.getMinZoom=ch.prototype.pd;ch.prototype.getOrigin=ch.prototype.Lb;ch.prototype.getResolution=ch.prototype.na;ch.prototype.getResolutions=ch.prototype.Qd;ch.prototype.getTileCoordForCoordAndResolution=ch.prototype.Wb;ch.prototype.getTileCoordForCoordAndZ=ch.prototype.Nc;ch.prototype.getTileSize=ch.prototype.pa;t("ol.tilegrid.WMTS",tz,OPENLAYERS);tz.prototype.getMatrixIds=tz.prototype.n;t("ol.tilegrid.WMTS.createFromCapabilitiesMatrixSet",uz,OPENLAYERS);t("ol.tilegrid.XYZ",ey,OPENLAYERS);t("ol.tilegrid.Zoomify",xz,OPENLAYERS);t("ol.style.AtlasManager",Az,OPENLAYERS);t("ol.style.Circle",vl,OPENLAYERS);vl.prototype.getAnchor=vl.prototype.wb;vl.prototype.getFill=vl.prototype.Dk;vl.prototype.getImage=vl.prototype.Bb;vl.prototype.getOrigin=vl.prototype.Cb;vl.prototype.getRadius=vl.prototype.Ek;vl.prototype.getSize=vl.prototype.gb;vl.prototype.getStroke=vl.prototype.Fk;t("ol.style.Fill",ul,OPENLAYERS);ul.prototype.getColor=ul.prototype.b;ul.prototype.setColor=ul.prototype.d;t("ol.style.Icon",Aj,OPENLAYERS);Aj.prototype.getAnchor=Aj.prototype.wb;Aj.prototype.getImage=Aj.prototype.Bb;Aj.prototype.getOrigin=Aj.prototype.Cb;Aj.prototype.getSrc=Aj.prototype.Gk;Aj.prototype.getSize=Aj.prototype.gb;t("ol.style.Image",zj,OPENLAYERS);zj.prototype.getOpacity=zj.prototype.Ld;zj.prototype.getRotateWithView=zj.prototype.rd;zj.prototype.getRotation=zj.prototype.Md;zj.prototype.getScale=zj.prototype.Nd;zj.prototype.getSnapToPixel=zj.prototype.sd;zj.prototype.getImage=zj.prototype.Bb;zj.prototype.setRotation=zj.prototype.Od;zj.prototype.setScale=zj.prototype.Pd;t("ol.style.RegularShape",Ez,OPENLAYERS);Ez.prototype.getAnchor=Ez.prototype.wb;Ez.prototype.getAngle=Ez.prototype.Hk;Ez.prototype.getFill=Ez.prototype.Ik;Ez.prototype.getImage=Ez.prototype.Bb;Ez.prototype.getOrigin=Ez.prototype.Cb;Ez.prototype.getPoints=Ez.prototype.Jk;Ez.prototype.getRadius=Ez.prototype.Kk;Ez.prototype.getRadius2=Ez.prototype.bi;Ez.prototype.getSize=Ez.prototype.gb;Ez.prototype.getStroke=Ez.prototype.Lk;t("ol.style.Stroke",ql,OPENLAYERS);ql.prototype.getColor=ql.prototype.Mk;ql.prototype.getLineCap=ql.prototype.Nh;ql.prototype.getLineDash=ql.prototype.Nk;ql.prototype.getLineJoin=ql.prototype.Oh;ql.prototype.getMiterLimit=ql.prototype.Uh;ql.prototype.getWidth=ql.prototype.Ok;ql.prototype.setColor=ql.prototype.Pk;ql.prototype.setLineCap=ql.prototype.$l;ql.prototype.setLineDash=ql.prototype.Qk;ql.prototype.setLineJoin=ql.prototype.am;ql.prototype.setMiterLimit=ql.prototype.bm;ql.prototype.setWidth=ql.prototype.im;t("ol.style.Style",wl,OPENLAYERS);wl.prototype.getGeometry=wl.prototype.R;wl.prototype.getGeometryFunction=wl.prototype.Hh;wl.prototype.getFill=wl.prototype.Rk;wl.prototype.getImage=wl.prototype.Sk;wl.prototype.getStroke=wl.prototype.Tk;wl.prototype.getText=wl.prototype.Uk;wl.prototype.getZIndex=wl.prototype.ji;wl.prototype.setGeometry=wl.prototype.Vf;wl.prototype.setZIndex=wl.prototype.km;t("ol.style.Text",ps,OPENLAYERS);ps.prototype.getFont=ps.prototype.Fh;ps.prototype.getOffsetX=ps.prototype.Vh;ps.prototype.getOffsetY=ps.prototype.Wh;ps.prototype.getFill=ps.prototype.Vk;ps.prototype.getRotation=ps.prototype.Wk;ps.prototype.getScale=ps.prototype.Xk;ps.prototype.getStroke=ps.prototype.Yk;ps.prototype.getText=ps.prototype.Zk;ps.prototype.getTextAlign=ps.prototype.di;ps.prototype.getTextBaseline=ps.prototype.ei;ps.prototype.setFont=ps.prototype.Xl;ps.prototype.setFill=ps.prototype.Wl;ps.prototype.setRotation=ps.prototype.$k;ps.prototype.setScale=ps.prototype.al;ps.prototype.setStroke=ps.prototype.em;ps.prototype.setText=ps.prototype.fm;ps.prototype.setTextAlign=ps.prototype.gm;ps.prototype.setTextBaseline=ps.prototype.hm;t("ol.Sphere",ue,OPENLAYERS);ue.prototype.geodesicArea=ue.prototype.c;ue.prototype.haversineDistance=ue.prototype.a;t("ol.source.BingMaps",fy,OPENLAYERS);t("ol.source.BingMaps.TOS_ATTRIBUTION",gy,OPENLAYERS);t("ol.source.Cluster",hy,OPENLAYERS);hy.prototype.getSource=hy.prototype.H;Z.prototype.readFeatures=Z.prototype.a;t("ol.source.GeoJSON",Iy,OPENLAYERS);t("ol.source.GPX",Jy,OPENLAYERS);t("ol.source.IGC",Ky,OPENLAYERS);t("ol.source.ImageCanvas",on,OPENLAYERS);t("ol.source.ImageMapGuide",Ly,OPENLAYERS);Ly.prototype.getParams=Ly.prototype.Zj;Ly.prototype.getImageLoadFunction=Ly.prototype.Yj;Ly.prototype.updateParams=Ly.prototype.bk;Ly.prototype.setImageLoadFunction=Ly.prototype.ak;t("ol.source.Image",gn,OPENLAYERS);jn.prototype.image=jn.prototype.image;t("ol.source.ImageStatic",My,OPENLAYERS);t("ol.source.ImageVector",Bn,OPENLAYERS);Bn.prototype.getSource=Bn.prototype.ck;Bn.prototype.getStyle=Bn.prototype.dk;Bn.prototype.getStyleFunction=Bn.prototype.ek;Bn.prototype.setStyle=Bn.prototype.Nf;t("ol.source.ImageWMS",Ny,OPENLAYERS);Ny.prototype.getGetFeatureInfoUrl=Ny.prototype.hk;Ny.prototype.getParams=Ny.prototype.jk;Ny.prototype.getImageLoadFunction=Ny.prototype.ik;Ny.prototype.getUrl=Ny.prototype.kk;Ny.prototype.setImageLoadFunction=Ny.prototype.lk;Ny.prototype.setUrl=Ny.prototype.mk;Ny.prototype.updateParams=Ny.prototype.nk;t("ol.source.KML",Ry,OPENLAYERS);t("ol.source.MapQuest",Vy,OPENLAYERS);Vy.prototype.getLayer=Vy.prototype.g;t("ol.source.OSM",Ty,OPENLAYERS);t("ol.source.OSM.ATTRIBUTION",Uy,OPENLAYERS);t("ol.source.OSMXML",Yy,OPENLAYERS);t("ol.source.ServerVector",Zy,OPENLAYERS);Zy.prototype.clear=Zy.prototype.clear;Zy.prototype.readFeatures=Zy.prototype.a;t("ol.source.Source",ah,OPENLAYERS);ah.prototype.getAttributions=ah.prototype.Y;ah.prototype.getLogo=ah.prototype.X;ah.prototype.getProjection=ah.prototype.Z;ah.prototype.getState=ah.prototype.$;t("ol.source.Stamen",bz,OPENLAYERS);t("ol.source.StaticVector",$,OPENLAYERS);t("ol.source.TileArcGISRest",dz,OPENLAYERS);dz.prototype.getParams=dz.prototype.ok;dz.prototype.getUrls=dz.prototype.pk;dz.prototype.setUrl=dz.prototype.qk;dz.prototype.setUrls=dz.prototype.Of;dz.prototype.updateParams=dz.prototype.sk;t("ol.source.TileDebug",fz,OPENLAYERS);t("ol.source.TileImage",cy,OPENLAYERS);cy.prototype.getTileLoadFunction=cy.prototype.bb;cy.prototype.getTileUrlFunction=cy.prototype.cb;cy.prototype.setTileLoadFunction=cy.prototype.jb;cy.prototype.setTileUrlFunction=cy.prototype.ua;t("ol.source.TileJSON",gz,OPENLAYERS);t("ol.source.Tile",ph,OPENLAYERS);ph.prototype.getTileGrid=ph.prototype.xa;sh.prototype.tile=sh.prototype.tile;t("ol.source.TileUTFGrid",hz,OPENLAYERS);hz.prototype.getTemplate=hz.prototype.ci;hz.prototype.forDataAtCoordinateAndResolution=hz.prototype.wh;t("ol.source.TileVector",mz,OPENLAYERS);mz.prototype.getFeatures=mz.prototype.Aa;mz.prototype.getFeaturesAtCoordinateAndResolution=mz.prototype.Eh;t("ol.source.TileWMS",oz,OPENLAYERS);oz.prototype.getGetFeatureInfoUrl=oz.prototype.vk;oz.prototype.getParams=oz.prototype.wk;oz.prototype.getUrls=oz.prototype.xk;oz.prototype.setUrl=oz.prototype.yk;oz.prototype.setUrls=oz.prototype.Pf;oz.prototype.updateParams=oz.prototype.Ak;t("ol.source.TopoJSON",sz,OPENLAYERS);t("ol.source.Vector",vn,OPENLAYERS);vn.prototype.addFeature=vn.prototype.Va;vn.prototype.addFeatures=vn.prototype.Ga;vn.prototype.clear=vn.prototype.clear;vn.prototype.forEachFeature=vn.prototype.$a;vn.prototype.forEachFeatureInExtent=vn.prototype.wa;vn.prototype.forEachFeatureIntersectingExtent=vn.prototype.Ma;vn.prototype.getFeatures=vn.prototype.Aa;vn.prototype.getFeaturesAtCoordinate=vn.prototype.Oa;vn.prototype.getClosestFeatureToCoordinate=vn.prototype.ab;vn.prototype.getExtent=vn.prototype.J;vn.prototype.getFeatureById=vn.prototype.Na;vn.prototype.removeFeature=vn.prototype.fb;yn.prototype.feature=yn.prototype.feature;t("ol.source.WMTS",vz,OPENLAYERS);vz.prototype.getDimensions=vz.prototype.Ch;vz.prototype.getFormat=vz.prototype.Gh;vz.prototype.getLayer=vz.prototype.Bk;vz.prototype.getMatrixSet=vz.prototype.Sh;vz.prototype.getStyle=vz.prototype.Ck;vz.prototype.getVersion=vz.prototype.gi;vz.prototype.updateDimensions=vz.prototype.rm;t("ol.source.WMTS.optionsFromCapabilities",function(b,c){var d=Ua(b.Contents.Layer,function(b){return b.Identifier==c.layer}),e,f,g;e=1<d.TileMatrixSetLink.length?Va(d.TileMatrixSetLink,function(b){return b.TileMatrixSet==c.matrixSet}):m(c.projection)?Va(d.TileMatrixSetLink,function(b){return b.TileMatrixSet.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")==c.projection}):0;0>e&&(e=0);f=d.TileMatrixSetLink[e].TileMatrixSet;e=d.WGS84BoundingBox;m(e)&&(g=ze("EPSG:4326").J(),g=e[0]==g[0]&&e[2]==g[2]);var h=d.Format[0];m(c.format)&&(h=c.format);e=Va(d.Style,function(b){return m(c.style)?b.Title==c.style:b.isDefault});0>e&&(e=0);e=d.Style[e].Identifier;var k={};m(d.Dimension)&&Qa(d.Dimension,function(b){var c=b.Identifier,d=b["default"];m(d)||(d=b.values[0]);k[c]=d});var n=Ua(b.Contents.TileMatrixSet,function(b){return b.Identifier==f}),p=uz(n),n=m(c.projection)?ze(c.projection):ze(n.SupportedCRS.replace(/urn:ogc:def:crs:(\w+):(.*:)?(\w+)$/,"$1:$3")),q=[],r=c.requestEncoding,r=m(r)?r:"";if(b.OperationsMetadata.hasOwnProperty("GetTile")&&0!=r.lastIndexOf("REST",0)){var d=b.OperationsMetadata.GetTile.DCP.HTTP.Get,s=Ua(d[0].Constraint,function(b){return"GetEncoding"==b.name}).AllowedValues.Value;0<s.length&&Wa(s,"KVP")&&(r="KVP",q.push(d[0].href))}else r="REST",Qa(d.ResourceURL,function(b){"tile"==b.resourceType&&(h=b.format,q.push(b.template))});return{urls:q,layer:c.layer,matrixSet:f,format:h,projection:n,requestEncoding:r,tileGrid:p,style:e,dimensions:k,wrapX:g}},OPENLAYERS);t("ol.source.XYZ",Sy,OPENLAYERS);Sy.prototype.setTileUrlFunction=Sy.prototype.ua;Sy.prototype.setUrl=Sy.prototype.b;t("ol.source.Zoomify",yz,OPENLAYERS);dl.prototype.vectorContext=dl.prototype.vectorContext;dl.prototype.frameState=dl.prototype.frameState;dl.prototype.context=dl.prototype.context;dl.prototype.glContext=dl.prototype.glContext;uo.prototype.drawAsync=uo.prototype.kc;uo.prototype.drawCircleGeometry=uo.prototype.lc;uo.prototype.drawFeature=uo.prototype.oe;uo.prototype.drawGeometryCollectionGeometry=uo.prototype.fd;uo.prototype.drawPointGeometry=uo.prototype.ub;uo.prototype.drawLineStringGeometry=uo.prototype.Eb;uo.prototype.drawMultiLineStringGeometry=uo.prototype.mc;uo.prototype.drawMultiPointGeometry=uo.prototype.tb;uo.prototype.drawMultiPolygonGeometry=uo.prototype.nc;uo.prototype.drawPolygonGeometry=uo.prototype.Rb;uo.prototype.drawText=uo.prototype.vb;uo.prototype.setFillStrokeStyle=uo.prototype.Ba;uo.prototype.setImageStyle=uo.prototype.ib;uo.prototype.setTextStyle=uo.prototype.Ca;Yl.prototype.drawAsync=Yl.prototype.kc;Yl.prototype.drawCircleGeometry=Yl.prototype.lc;Yl.prototype.drawFeature=Yl.prototype.oe;Yl.prototype.drawPointGeometry=Yl.prototype.ub;Yl.prototype.drawMultiPointGeometry=Yl.prototype.tb;Yl.prototype.drawLineStringGeometry=Yl.prototype.Eb;Yl.prototype.drawMultiLineStringGeometry=Yl.prototype.mc;Yl.prototype.drawPolygonGeometry=Yl.prototype.Rb;Yl.prototype.drawMultiPolygonGeometry=Yl.prototype.nc;Yl.prototype.setFillStrokeStyle=Yl.prototype.Ba;Yl.prototype.setImageStyle=Yl.prototype.ib;Yl.prototype.setTextStyle=Yl.prototype.Ca;t("ol.proj.common.add",Xl,OPENLAYERS);t("ol.proj.METERS_PER_UNIT",we,OPENLAYERS);t("ol.proj.Projection",xe,OPENLAYERS);xe.prototype.getCode=xe.prototype.Ah;xe.prototype.getExtent=xe.prototype.J;xe.prototype.getUnits=xe.prototype.Rj;xe.prototype.getMetersPerUnit=xe.prototype.od;xe.prototype.getWorldExtent=xe.prototype.ii;xe.prototype.isGlobal=xe.prototype.Sj;xe.prototype.setGlobal=xe.prototype.Zl;xe.prototype.setExtent=xe.prototype.Tj;xe.prototype.setWorldExtent=xe.prototype.jm;xe.prototype.setGetPointResolution=xe.prototype.Yl;xe.prototype.getPointResolution=xe.prototype.getPointResolution;t("ol.proj.addEquivalentProjections",Ae,OPENLAYERS);t("ol.proj.addProjection",Ne,OPENLAYERS);t("ol.proj.addCoordinateTransforms",Be,OPENLAYERS);t("ol.proj.get",ze,OPENLAYERS);t("ol.proj.getTransform",Se,OPENLAYERS);t("ol.proj.transform",function(b,c,d){return Se(c,d)(b,void 0,b.length)},OPENLAYERS);t("ol.proj.transformExtent",Ue,OPENLAYERS);t("ol.layer.Heatmap",Y,OPENLAYERS);Y.prototype.getBlur=Y.prototype.Ea;Y.prototype.getGradient=Y.prototype.Fa;Y.prototype.getRadius=Y.prototype.ic;Y.prototype.setBlur=Y.prototype.wc;Y.prototype.setGradient=Y.prototype.xc;Y.prototype.setRadius=Y.prototype.jc;t("ol.layer.Image",H,OPENLAYERS);H.prototype.getSource=H.prototype.a;t("ol.layer.Layer",D,OPENLAYERS);D.prototype.getSource=D.prototype.a;D.prototype.setSource=D.prototype.fa;t("ol.layer.Base",C,OPENLAYERS);C.prototype.getBrightness=C.prototype.d;C.prototype.getContrast=C.prototype.f;C.prototype.getHue=C.prototype.e;C.prototype.getExtent=C.prototype.J;C.prototype.getMaxResolution=C.prototype.g;C.prototype.getMinResolution=C.prototype.i;C.prototype.getOpacity=C.prototype.q;C.prototype.getSaturation=C.prototype.k;C.prototype.getVisible=C.prototype.b;C.prototype.setBrightness=C.prototype.D;C.prototype.setContrast=C.prototype.H;C.prototype.setHue=C.prototype.N;C.prototype.setExtent=C.prototype.o;C.prototype.setMaxResolution=C.prototype.S;C.prototype.setMinResolution=C.prototype.U;C.prototype.setOpacity=C.prototype.p;C.prototype.setSaturation=C.prototype.ca;C.prototype.setVisible=C.prototype.da;t("ol.layer.Group",G,OPENLAYERS);G.prototype.getLayers=G.prototype.ac;G.prototype.setLayers=G.prototype.r;t("ol.layer.Tile",I,OPENLAYERS);I.prototype.getPreload=I.prototype.r;I.prototype.getSource=I.prototype.a;I.prototype.setPreload=I.prototype.ia;I.prototype.getUseInterimTilesOnError=I.prototype.ea;I.prototype.setUseInterimTilesOnError=I.prototype.ka;t("ol.layer.Vector",J,OPENLAYERS);J.prototype.getSource=J.prototype.a;J.prototype.getStyle=J.prototype.$e;J.prototype.getStyleFunction=J.prototype.cf;J.prototype.setStyle=J.prototype.ka;t("ol.interaction.DoubleClickZoom",Vj,OPENLAYERS);t("ol.interaction.DoubleClickZoom.handleEvent",Wj,OPENLAYERS);t("ol.interaction.DragAndDrop",Zw,OPENLAYERS);t("ol.interaction.DragAndDrop.handleEvent",bd,OPENLAYERS);$w.prototype.features=$w.prototype.features;$w.prototype.file=$w.prototype.file;$w.prototype.projection=$w.prototype.projection;hl.prototype.coordinate=hl.prototype.coordinate;t("ol.interaction.DragBox",il,OPENLAYERS);il.prototype.getGeometry=il.prototype.R;t("ol.interaction.DragPan",hk,OPENLAYERS);t("ol.interaction.DragRotateAndZoom",cx,OPENLAYERS);t("ol.interaction.DragRotate",lk,OPENLAYERS);t("ol.interaction.DragZoom",Bl,OPENLAYERS);gx.prototype.feature=gx.prototype.feature;t("ol.interaction.Draw",hx,OPENLAYERS);t("ol.interaction.Draw.handleEvent",jx,OPENLAYERS);hx.prototype.finishDrawing=hx.prototype.U;t("ol.interaction.Interaction",Rj,OPENLAYERS);Rj.prototype.getActive=Rj.prototype.b;Rj.prototype.setActive=Rj.prototype.d;t("ol.interaction.defaults",Ql,OPENLAYERS);t("ol.interaction.KeyboardPan",Cl,OPENLAYERS);t("ol.interaction.KeyboardPan.handleEvent",Dl,OPENLAYERS);t("ol.interaction.KeyboardZoom",El,OPENLAYERS);t("ol.interaction.KeyboardZoom.handleEvent",Fl,OPENLAYERS);t("ol.interaction.Modify",vx,OPENLAYERS);t("ol.interaction.Modify.handleEvent",yx,OPENLAYERS);t("ol.interaction.MouseWheelZoom",Gl,OPENLAYERS);t("ol.interaction.MouseWheelZoom.handleEvent",Hl,OPENLAYERS);t("ol.interaction.PinchRotate",Il,OPENLAYERS);t("ol.interaction.PinchZoom",Ml,OPENLAYERS);t("ol.interaction.Pointer",ek,OPENLAYERS);t("ol.interaction.Pointer.handleEvent",fk,OPENLAYERS);Fx.prototype.selected=Fx.prototype.selected;Fx.prototype.deselected=Fx.prototype.deselected;t("ol.interaction.Select",Gx,OPENLAYERS);Gx.prototype.getFeatures=Gx.prototype.o;t("ol.interaction.Select.handleEvent",Hx,OPENLAYERS);Gx.prototype.setMap=Gx.prototype.setMap;t("ol.geom.Circle",Km,OPENLAYERS);Km.prototype.clone=Km.prototype.clone;Km.prototype.getCenter=Km.prototype.Oc;Km.prototype.getRadius=Km.prototype.Gf;Km.prototype.getType=Km.prototype.O;Km.prototype.setCenter=Km.prototype.Lj;Km.prototype.setCenterAndRadius=Km.prototype.qg;Km.prototype.setRadius=Km.prototype.Hf;Km.prototype.transform=Km.prototype.transform;t("ol.geom.Geometry",pk,OPENLAYERS);pk.prototype.clone=pk.prototype.clone;pk.prototype.getClosestPoint=pk.prototype.f;pk.prototype.getExtent=pk.prototype.J;pk.prototype.getType=pk.prototype.O;pk.prototype.applyTransform=pk.prototype.ra;pk.prototype.intersectsExtent=pk.prototype.ja;pk.prototype.translate=pk.prototype.Ia;pk.prototype.transform=pk.prototype.transform;t("ol.geom.GeometryCollection",Mm,OPENLAYERS);Mm.prototype.clone=Mm.prototype.clone;Mm.prototype.getGeometries=Mm.prototype.mf;Mm.prototype.getType=Mm.prototype.O;Mm.prototype.intersectsExtent=Mm.prototype.ja;Mm.prototype.setGeometries=Mm.prototype.rg;Mm.prototype.applyTransform=Mm.prototype.ra;Mm.prototype.translate=Mm.prototype.Ia;t("ol.geom.LinearRing",Lk,OPENLAYERS);Lk.prototype.clone=Lk.prototype.clone;Lk.prototype.getArea=Lk.prototype.Nj;Lk.prototype.getCoordinates=Lk.prototype.Q;Lk.prototype.getType=Lk.prototype.O;Lk.prototype.setCoordinates=Lk.prototype.W;t("ol.geom.LineString",Tm,OPENLAYERS);Tm.prototype.appendCoordinate=Tm.prototype.hh;Tm.prototype.clone=Tm.prototype.clone;Tm.prototype.forEachSegment=Tm.prototype.xh;Tm.prototype.getCoordinateAtM=Tm.prototype.Mj;Tm.prototype.getCoordinates=Tm.prototype.Q;Tm.prototype.getLength=Tm.prototype.If;Tm.prototype.getType=Tm.prototype.O;Tm.prototype.intersectsExtent=Tm.prototype.ja;Tm.prototype.setCoordinates=Tm.prototype.W;t("ol.geom.MultiLineString",Vm,OPENLAYERS);Vm.prototype.appendLineString=Vm.prototype.ih;Vm.prototype.clone=Vm.prototype.clone;Vm.prototype.getCoordinateAtM=Vm.prototype.Oj;Vm.prototype.getCoordinates=Vm.prototype.Q;Vm.prototype.getLineString=Vm.prototype.Ph;Vm.prototype.getLineStrings=Vm.prototype.Lc;Vm.prototype.getType=Vm.prototype.O;Vm.prototype.intersectsExtent=Vm.prototype.ja;Vm.prototype.setCoordinates=Vm.prototype.W;t("ol.geom.MultiPoint",Ym,OPENLAYERS);Ym.prototype.appendPoint=Ym.prototype.kh;Ym.prototype.clone=Ym.prototype.clone;Ym.prototype.getCoordinates=Ym.prototype.Q;Ym.prototype.getPoint=Ym.prototype.Zh;Ym.prototype.getPoints=Ym.prototype.Gd;Ym.prototype.getType=Ym.prototype.O;Ym.prototype.intersectsExtent=Ym.prototype.ja;Ym.prototype.setCoordinates=Ym.prototype.W;t("ol.geom.MultiPolygon",Zm,OPENLAYERS);Zm.prototype.appendPolygon=Zm.prototype.lh;Zm.prototype.clone=Zm.prototype.clone;Zm.prototype.getArea=Zm.prototype.Pj;Zm.prototype.getCoordinates=Zm.prototype.Q;Zm.prototype.getInteriorPoints=Zm.prototype.Mh;Zm.prototype.getPolygon=Zm.prototype.ai;Zm.prototype.getPolygons=Zm.prototype.qd;Zm.prototype.getType=Zm.prototype.O;Zm.prototype.intersectsExtent=Zm.prototype.ja;Zm.prototype.setCoordinates=Zm.prototype.W;t("ol.geom.Point",Nk,OPENLAYERS);Nk.prototype.clone=Nk.prototype.clone;Nk.prototype.getCoordinates=Nk.prototype.Q;Nk.prototype.getType=Nk.prototype.O;Nk.prototype.intersectsExtent=Nk.prototype.ja;Nk.prototype.setCoordinates=Nk.prototype.W;t("ol.geom.Polygon",F,OPENLAYERS);F.prototype.appendLinearRing=F.prototype.jh;F.prototype.clone=F.prototype.clone;F.prototype.getArea=F.prototype.Qj;F.prototype.getCoordinates=F.prototype.Q;F.prototype.getInteriorPoint=F.prototype.Lh;F.prototype.getLinearRingCount=F.prototype.Rh;F.prototype.getLinearRing=F.prototype.Qh;F.prototype.getLinearRings=F.prototype.ld;F.prototype.getType=F.prototype.O;F.prototype.intersectsExtent=F.prototype.ja;F.prototype.setCoordinates=F.prototype.W;t("ol.geom.Polygon.circular",cl,OPENLAYERS);t("ol.geom.Polygon.fromExtent",function(b){var c=b[0],d=b[1],e=b[2];b=b[3];c=[c,d,c,b,e,b,e,d,c,d];d=new F(null);$k(d,"XY",c,[c.length]);return d},OPENLAYERS);t("ol.geom.SimpleGeometry",rk,OPENLAYERS);rk.prototype.getFirstCoordinate=rk.prototype.yb;rk.prototype.getLastCoordinate=rk.prototype.zb;rk.prototype.getLayout=rk.prototype.Ab;rk.prototype.applyTransform=rk.prototype.ra;rk.prototype.translate=rk.prototype.Ia;t("ol.format.Feature",Ap,OPENLAYERS);t("ol.format.GeoJSON",Kp,OPENLAYERS);Kp.prototype.readFeature=Kp.prototype.Nb;Kp.prototype.readFeatures=Kp.prototype.ma;Kp.prototype.readGeometry=Kp.prototype.Rc;Kp.prototype.readProjection=Kp.prototype.Ja;Kp.prototype.writeFeature=Kp.prototype.be;Kp.prototype.writeFeatureObject=Kp.prototype.a;Kp.prototype.writeFeatures=Kp.prototype.Qb;Kp.prototype.writeFeaturesObject=Kp.prototype.d;Kp.prototype.writeGeometry=Kp.prototype.Xc;Kp.prototype.writeGeometryObject=Kp.prototype.f;t("ol.format.GPX",ar,OPENLAYERS);ar.prototype.readFeature=ar.prototype.Nb;ar.prototype.readFeatures=ar.prototype.ma;ar.prototype.readProjection=ar.prototype.Ja;ar.prototype.writeFeatures=ar.prototype.Qb;ar.prototype.writeFeaturesNode=ar.prototype.a;t("ol.format.IGC",Lr,OPENLAYERS);Lr.prototype.readFeature=Lr.prototype.Nb;Lr.prototype.readFeatures=Lr.prototype.ma;Lr.prototype.readProjection=Lr.prototype.Ja;t("ol.format.KML",qs,OPENLAYERS);qs.prototype.readFeature=qs.prototype.Nb;qs.prototype.readFeatures=qs.prototype.ma;qs.prototype.readName=qs.prototype.El;qs.prototype.readNetworkLinks=qs.prototype.Fl;qs.prototype.readProjection=qs.prototype.Ja;qs.prototype.writeFeatures=qs.prototype.Qb;qs.prototype.writeFeaturesNode=qs.prototype.a;t("ol.format.OSMXML",$t,OPENLAYERS);$t.prototype.readFeatures=$t.prototype.ma;$t.prototype.readProjection=$t.prototype.Ja;t("ol.format.Polyline",yu,OPENLAYERS);t("ol.format.Polyline.encodeDeltas",zu,OPENLAYERS);t("ol.format.Polyline.decodeDeltas",Bu,OPENLAYERS);t("ol.format.Polyline.encodeFloats",Au,OPENLAYERS);t("ol.format.Polyline.decodeFloats",Cu,OPENLAYERS);yu.prototype.readFeature=yu.prototype.Nb;yu.prototype.readFeatures=yu.prototype.ma;yu.prototype.readGeometry=yu.prototype.Rc;yu.prototype.readProjection=yu.prototype.Ja;yu.prototype.writeGeometry=yu.prototype.Xc;t("ol.format.TopoJSON",Du,OPENLAYERS);Du.prototype.readFeatures=Du.prototype.ma;Du.prototype.readProjection=Du.prototype.Ja;t("ol.format.WFS",Ju,OPENLAYERS);Ju.prototype.readFeatures=Ju.prototype.ma;Ju.prototype.readTransactionResponse=Ju.prototype.g;Ju.prototype.readFeatureCollectionMetadata=Ju.prototype.e;Ju.prototype.writeGetFeature=Ju.prototype.n;Ju.prototype.writeTransaction=Ju.prototype.q;Ju.prototype.readProjection=Ju.prototype.Ja;t("ol.format.WKT",Wu,OPENLAYERS);Wu.prototype.readFeature=Wu.prototype.Nb;Wu.prototype.readFeatures=Wu.prototype.ma;Wu.prototype.readGeometry=Wu.prototype.Rc;Wu.prototype.writeFeature=Wu.prototype.be;Wu.prototype.writeFeatures=Wu.prototype.Qb;Wu.prototype.writeGeometry=Wu.prototype.Xc;t("ol.format.WMSCapabilities",nv,OPENLAYERS);nv.prototype.read=nv.prototype.b;t("ol.format.WMSGetFeatureInfo",Kv,OPENLAYERS);Kv.prototype.readFeatures=Kv.prototype.ma;t("ol.format.WMTSCapabilities",Mv,OPENLAYERS);Mv.prototype.read=Mv.prototype.b;t("ol.format.GML2",$q,OPENLAYERS);t("ol.format.GML3",Rq,OPENLAYERS);Rq.prototype.writeGeometryNode=Rq.prototype.i;Rq.prototype.writeFeatures=Rq.prototype.Qb;Rq.prototype.writeFeaturesNode=Rq.prototype.a;t("ol.format.GML",Rq,OPENLAYERS);Rq.prototype.writeFeatures=Rq.prototype.Qb;Rq.prototype.writeFeaturesNode=Rq.prototype.a;t("ol.format.GMLBase",Fq,OPENLAYERS);Fq.prototype.readFeatures=Fq.prototype.ma;t("ol.events.condition.altKeyOnly",function(b){b=b.a;return b.c&&!b.g&&!b.d},OPENLAYERS);t("ol.events.condition.altShiftKeysOnly",Xj,OPENLAYERS);t("ol.events.condition.always",bd,OPENLAYERS);t("ol.events.condition.click",function(b){return b.type==Zi},OPENLAYERS);t("ol.events.condition.never",ad,OPENLAYERS);t("ol.events.condition.pointerMove",Yj,OPENLAYERS);t("ol.events.condition.singleClick",Zj,OPENLAYERS);t("ol.events.condition.noModifierKeys",ak,OPENLAYERS);t("ol.events.condition.platformModifierKeyOnly",function(b){b=b.a;return!b.c&&b.g&&!b.d},OPENLAYERS);t("ol.events.condition.shiftKeyOnly",bk,OPENLAYERS);t("ol.events.condition.targetNotEditable",ck,OPENLAYERS);t("ol.events.condition.mouseOnly",dk,OPENLAYERS);t("ol.dom.Input",xp,OPENLAYERS);xp.prototype.getChecked=xp.prototype.a;xp.prototype.getValue=xp.prototype.b;xp.prototype.setValue=xp.prototype.f;xp.prototype.setChecked=xp.prototype.d;t("ol.control.Attribution",th,OPENLAYERS);t("ol.control.Attribution.render",uh,OPENLAYERS);th.prototype.getCollapsible=th.prototype.Cj;th.prototype.setCollapsible=th.prototype.Fj;th.prototype.setCollapsed=th.prototype.Ej;th.prototype.getCollapsed=th.prototype.Bj;t("ol.control.Control",Ug,OPENLAYERS);Ug.prototype.getMap=Ug.prototype.f;Ug.prototype.setMap=Ug.prototype.setMap;Ug.prototype.setTarget=Ug.prototype.b;t("ol.control.defaults",zh,OPENLAYERS);t("ol.control.FullScreen",Eh,OPENLAYERS);t("ol.control.MousePosition",Fh,OPENLAYERS);t("ol.control.MousePosition.render",Gh,OPENLAYERS);Fh.prototype.getCoordinateFormat=Fh.prototype.k;Fh.prototype.getProjection=Fh.prototype.p;Fh.prototype.setMap=Fh.prototype.setMap;Fh.prototype.setCoordinateFormat=Fh.prototype.D;Fh.prototype.setProjection=Fh.prototype.r;t("ol.control.OverviewMap",Wo,OPENLAYERS);Wo.prototype.setMap=Wo.prototype.setMap;t("ol.control.OverviewMap.render",Xo,OPENLAYERS);Wo.prototype.getCollapsible=Wo.prototype.Hj;Wo.prototype.setCollapsible=Wo.prototype.Kj;Wo.prototype.setCollapsed=Wo.prototype.Jj;Wo.prototype.getCollapsed=Wo.prototype.Gj;t("ol.control.Rotate",wh,OPENLAYERS);t("ol.control.Rotate.render",xh,OPENLAYERS);t("ol.control.ScaleLine",bp,OPENLAYERS);bp.prototype.getUnits=bp.prototype.o;t("ol.control.ScaleLine.render",cp,OPENLAYERS);bp.prototype.setUnits=bp.prototype.p;t("ol.control.Zoom",yh,OPENLAYERS);t("ol.control.ZoomSlider",qp,OPENLAYERS);t("ol.control.ZoomSlider.render",sp,OPENLAYERS);t("ol.control.ZoomToExtent",vp,OPENLAYERS);t("ol.color.asArray",qg,OPENLAYERS);t("ol.color.asString",sg,OPENLAYERS);qd.prototype.changed=qd.prototype.l;qd.prototype.getRevision=qd.prototype.u;qd.prototype.on=qd.prototype.s;qd.prototype.once=qd.prototype.v;qd.prototype.un=qd.prototype.t;qd.prototype.unByKey=qd.prototype.A;lg.prototype.bindTo=lg.prototype.K;lg.prototype.get=lg.prototype.get;lg.prototype.getKeys=lg.prototype.G;lg.prototype.getProperties=lg.prototype.I;lg.prototype.set=lg.prototype.set;lg.prototype.setProperties=lg.prototype.C;lg.prototype.unbind=lg.prototype.L;lg.prototype.unbindAll=lg.prototype.M;lg.prototype.changed=lg.prototype.l;lg.prototype.getRevision=lg.prototype.u;lg.prototype.on=lg.prototype.s;lg.prototype.once=lg.prototype.v;lg.prototype.un=lg.prototype.t;lg.prototype.unByKey=lg.prototype.A;wp.prototype.bindTo=wp.prototype.K;wp.prototype.get=wp.prototype.get;wp.prototype.getKeys=wp.prototype.G;wp.prototype.getProperties=wp.prototype.I;wp.prototype.set=wp.prototype.set;wp.prototype.setProperties=wp.prototype.C;wp.prototype.unbind=wp.prototype.L;wp.prototype.unbindAll=wp.prototype.M;wp.prototype.changed=wp.prototype.l;wp.prototype.getRevision=wp.prototype.u;wp.prototype.on=wp.prototype.s;wp.prototype.once=wp.prototype.v;wp.prototype.un=wp.prototype.t;wp.prototype.unByKey=wp.prototype.A;O.prototype.bindTo=O.prototype.K;O.prototype.get=O.prototype.get;O.prototype.getKeys=O.prototype.G;O.prototype.getProperties=O.prototype.I;O.prototype.set=O.prototype.set;O.prototype.setProperties=O.prototype.C;O.prototype.unbind=O.prototype.L;O.prototype.unbindAll=O.prototype.M;O.prototype.changed=O.prototype.l;O.prototype.getRevision=O.prototype.u;O.prototype.on=O.prototype.s;O.prototype.once=O.prototype.v;O.prototype.un=O.prototype.t;O.prototype.unByKey=O.prototype.A;X.prototype.bindTo=X.prototype.K;X.prototype.get=X.prototype.get;X.prototype.getKeys=X.prototype.G;X.prototype.getProperties=X.prototype.I;X.prototype.set=X.prototype.set;X.prototype.setProperties=X.prototype.C;X.prototype.unbind=X.prototype.L;X.prototype.unbindAll=X.prototype.M;X.prototype.changed=X.prototype.l;X.prototype.getRevision=X.prototype.u;X.prototype.on=X.prototype.s;X.prototype.once=X.prototype.v;X.prototype.un=X.prototype.t;X.prototype.unByKey=X.prototype.A;hw.prototype.getTileCoord=hw.prototype.e;K.prototype.bindTo=K.prototype.K;K.prototype.get=K.prototype.get;K.prototype.getKeys=K.prototype.G;K.prototype.getProperties=K.prototype.I;K.prototype.set=K.prototype.set;K.prototype.setProperties=K.prototype.C;K.prototype.unbind=K.prototype.L;K.prototype.unbindAll=K.prototype.M;K.prototype.changed=K.prototype.l;K.prototype.getRevision=K.prototype.u;K.prototype.on=K.prototype.s;K.prototype.once=K.prototype.v;K.prototype.un=K.prototype.t;K.prototype.unByKey=K.prototype.A;Vi.prototype.map=Vi.prototype.map;Vi.prototype.frameState=Vi.prototype.frameState;Wi.prototype.originalEvent=Wi.prototype.originalEvent;Wi.prototype.pixel=Wi.prototype.pixel;Wi.prototype.coordinate=Wi.prototype.coordinate;Wi.prototype.dragging=Wi.prototype.dragging;Wi.prototype.preventDefault=Wi.prototype.preventDefault;Wi.prototype.stopPropagation=Wi.prototype.pb;Wi.prototype.map=Wi.prototype.map;Wi.prototype.frameState=Wi.prototype.frameState;M.prototype.bindTo=M.prototype.K;M.prototype.get=M.prototype.get;M.prototype.getKeys=M.prototype.G;M.prototype.getProperties=M.prototype.I;M.prototype.set=M.prototype.set;M.prototype.setProperties=M.prototype.C;M.prototype.unbind=M.prototype.L;M.prototype.unbindAll=M.prototype.M;M.prototype.changed=M.prototype.l;M.prototype.getRevision=M.prototype.u;M.prototype.on=M.prototype.s;M.prototype.once=M.prototype.v;M.prototype.un=M.prototype.t;M.prototype.unByKey=M.prototype.A;B.prototype.bindTo=B.prototype.K;B.prototype.get=B.prototype.get;B.prototype.getKeys=B.prototype.G;B.prototype.getProperties=B.prototype.I;B.prototype.set=B.prototype.set;B.prototype.setProperties=B.prototype.C;B.prototype.unbind=B.prototype.L;B.prototype.unbindAll=B.prototype.M;B.prototype.changed=B.prototype.l;B.prototype.getRevision=B.prototype.u;B.prototype.on=B.prototype.s;B.prototype.once=B.prototype.v;B.prototype.un=B.prototype.t;B.prototype.unByKey=B.prototype.A;tz.prototype.getMaxZoom=tz.prototype.md;tz.prototype.getMinZoom=tz.prototype.pd;tz.prototype.getOrigin=tz.prototype.Lb;tz.prototype.getResolution=tz.prototype.na;tz.prototype.getResolutions=tz.prototype.Qd;tz.prototype.getTileCoordForCoordAndResolution=tz.prototype.Wb;tz.prototype.getTileCoordForCoordAndZ=tz.prototype.Nc;tz.prototype.getTileSize=tz.prototype.pa;ey.prototype.getMaxZoom=ey.prototype.md;ey.prototype.getMinZoom=ey.prototype.pd;ey.prototype.getOrigin=ey.prototype.Lb;ey.prototype.getResolution=ey.prototype.na;ey.prototype.getResolutions=ey.prototype.Qd;ey.prototype.getTileCoordForCoordAndResolution=ey.prototype.Wb;ey.prototype.getTileCoordForCoordAndZ=ey.prototype.Nc;ey.prototype.getTileSize=ey.prototype.pa;xz.prototype.getMaxZoom=xz.prototype.md;xz.prototype.getMinZoom=xz.prototype.pd;xz.prototype.getOrigin=xz.prototype.Lb;xz.prototype.getResolution=xz.prototype.na;xz.prototype.getResolutions=xz.prototype.Qd;xz.prototype.getTileCoordForCoordAndResolution=xz.prototype.Wb;xz.prototype.getTileCoordForCoordAndZ=xz.prototype.Nc;xz.prototype.getTileSize=xz.prototype.pa;vl.prototype.getOpacity=vl.prototype.Ld;vl.prototype.getRotateWithView=vl.prototype.rd;vl.prototype.getRotation=vl.prototype.Md;vl.prototype.getScale=vl.prototype.Nd;vl.prototype.getSnapToPixel=vl.prototype.sd;vl.prototype.setRotation=vl.prototype.Od;vl.prototype.setScale=vl.prototype.Pd;Aj.prototype.getOpacity=Aj.prototype.Ld;Aj.prototype.getRotateWithView=Aj.prototype.rd;Aj.prototype.getRotation=Aj.prototype.Md;Aj.prototype.getScale=Aj.prototype.Nd;Aj.prototype.getSnapToPixel=Aj.prototype.sd;Aj.prototype.setRotation=Aj.prototype.Od;Aj.prototype.setScale=Aj.prototype.Pd;Ez.prototype.getOpacity=Ez.prototype.Ld;Ez.prototype.getRotateWithView=Ez.prototype.rd;Ez.prototype.getRotation=Ez.prototype.Md;Ez.prototype.getScale=Ez.prototype.Nd;Ez.prototype.getSnapToPixel=Ez.prototype.sd;Ez.prototype.setRotation=Ez.prototype.Od;Ez.prototype.setScale=Ez.prototype.Pd;ah.prototype.bindTo=ah.prototype.K;ah.prototype.get=ah.prototype.get;ah.prototype.getKeys=ah.prototype.G;ah.prototype.getProperties=ah.prototype.I;ah.prototype.set=ah.prototype.set;ah.prototype.setProperties=ah.prototype.C;ah.prototype.unbind=ah.prototype.L;ah.prototype.unbindAll=ah.prototype.M;ah.prototype.changed=ah.prototype.l;ah.prototype.getRevision=ah.prototype.u;ah.prototype.on=ah.prototype.s;ah.prototype.once=ah.prototype.v;ah.prototype.un=ah.prototype.t;ah.prototype.unByKey=ah.prototype.A;ph.prototype.getAttributions=ph.prototype.Y;ph.prototype.getLogo=ph.prototype.X;ph.prototype.getProjection=ph.prototype.Z;ph.prototype.getState=ph.prototype.$;ph.prototype.bindTo=ph.prototype.K;ph.prototype.get=ph.prototype.get;ph.prototype.getKeys=ph.prototype.G;ph.prototype.getProperties=ph.prototype.I;ph.prototype.set=ph.prototype.set;ph.prototype.setProperties=ph.prototype.C;ph.prototype.unbind=ph.prototype.L;ph.prototype.unbindAll=ph.prototype.M;ph.prototype.changed=ph.prototype.l;ph.prototype.getRevision=ph.prototype.u;ph.prototype.on=ph.prototype.s;ph.prototype.once=ph.prototype.v;ph.prototype.un=ph.prototype.t;ph.prototype.unByKey=ph.prototype.A;cy.prototype.getTileGrid=cy.prototype.xa;cy.prototype.getAttributions=cy.prototype.Y;cy.prototype.getLogo=cy.prototype.X;cy.prototype.getProjection=cy.prototype.Z;cy.prototype.getState=cy.prototype.$;cy.prototype.bindTo=cy.prototype.K;cy.prototype.get=cy.prototype.get;cy.prototype.getKeys=cy.prototype.G;cy.prototype.getProperties=cy.prototype.I;cy.prototype.set=cy.prototype.set;cy.prototype.setProperties=cy.prototype.C;cy.prototype.unbind=cy.prototype.L;cy.prototype.unbindAll=cy.prototype.M;cy.prototype.changed=cy.prototype.l;cy.prototype.getRevision=cy.prototype.u;cy.prototype.on=cy.prototype.s;cy.prototype.once=cy.prototype.v;cy.prototype.un=cy.prototype.t;cy.prototype.unByKey=cy.prototype.A;fy.prototype.getTileLoadFunction=fy.prototype.bb;fy.prototype.getTileUrlFunction=fy.prototype.cb;fy.prototype.setTileLoadFunction=fy.prototype.jb;fy.prototype.setTileUrlFunction=fy.prototype.ua;fy.prototype.getTileGrid=fy.prototype.xa;fy.prototype.getAttributions=fy.prototype.Y;fy.prototype.getLogo=fy.prototype.X;fy.prototype.getProjection=fy.prototype.Z;fy.prototype.getState=fy.prototype.$;fy.prototype.bindTo=fy.prototype.K;fy.prototype.get=fy.prototype.get;fy.prototype.getKeys=fy.prototype.G;fy.prototype.getProperties=fy.prototype.I;fy.prototype.set=fy.prototype.set;fy.prototype.setProperties=fy.prototype.C;fy.prototype.unbind=fy.prototype.L;fy.prototype.unbindAll=fy.prototype.M;fy.prototype.changed=fy.prototype.l;fy.prototype.getRevision=fy.prototype.u;fy.prototype.on=fy.prototype.s;fy.prototype.once=fy.prototype.v;fy.prototype.un=fy.prototype.t;fy.prototype.unByKey=fy.prototype.A;vn.prototype.getAttributions=vn.prototype.Y;vn.prototype.getLogo=vn.prototype.X;vn.prototype.getProjection=vn.prototype.Z;vn.prototype.getState=vn.prototype.$;vn.prototype.bindTo=vn.prototype.K;vn.prototype.get=vn.prototype.get;vn.prototype.getKeys=vn.prototype.G;vn.prototype.getProperties=vn.prototype.I;vn.prototype.set=vn.prototype.set;vn.prototype.setProperties=vn.prototype.C;vn.prototype.unbind=vn.prototype.L;vn.prototype.unbindAll=vn.prototype.M;vn.prototype.changed=vn.prototype.l;vn.prototype.getRevision=vn.prototype.u;vn.prototype.on=vn.prototype.s;vn.prototype.once=vn.prototype.v;vn.prototype.un=vn.prototype.t;vn.prototype.unByKey=vn.prototype.A;hy.prototype.addFeature=hy.prototype.Va;hy.prototype.addFeatures=hy.prototype.Ga;hy.prototype.clear=hy.prototype.clear;hy.prototype.forEachFeature=hy.prototype.$a;hy.prototype.forEachFeatureInExtent=hy.prototype.wa;hy.prototype.forEachFeatureIntersectingExtent=hy.prototype.Ma;hy.prototype.getFeatures=hy.prototype.Aa;hy.prototype.getFeaturesAtCoordinate=hy.prototype.Oa;hy.prototype.getClosestFeatureToCoordinate=hy.prototype.ab;hy.prototype.getExtent=hy.prototype.J;hy.prototype.getFeatureById=hy.prototype.Na;hy.prototype.removeFeature=hy.prototype.fb;hy.prototype.getAttributions=hy.prototype.Y;hy.prototype.getLogo=hy.prototype.X;hy.prototype.getProjection=hy.prototype.Z;hy.prototype.getState=hy.prototype.$;hy.prototype.bindTo=hy.prototype.K;hy.prototype.get=hy.prototype.get;hy.prototype.getKeys=hy.prototype.G;hy.prototype.getProperties=hy.prototype.I;hy.prototype.set=hy.prototype.set;hy.prototype.setProperties=hy.prototype.C;hy.prototype.unbind=hy.prototype.L;hy.prototype.unbindAll=hy.prototype.M;hy.prototype.changed=hy.prototype.l;hy.prototype.getRevision=hy.prototype.u;hy.prototype.on=hy.prototype.s;hy.prototype.once=hy.prototype.v;hy.prototype.un=hy.prototype.t;hy.prototype.unByKey=hy.prototype.A;Z.prototype.addFeature=Z.prototype.Va;Z.prototype.addFeatures=Z.prototype.Ga;Z.prototype.clear=Z.prototype.clear;Z.prototype.forEachFeature=Z.prototype.$a;Z.prototype.forEachFeatureInExtent=Z.prototype.wa;Z.prototype.forEachFeatureIntersectingExtent=Z.prototype.Ma;Z.prototype.getFeatures=Z.prototype.Aa;Z.prototype.getFeaturesAtCoordinate=Z.prototype.Oa;Z.prototype.getClosestFeatureToCoordinate=Z.prototype.ab;Z.prototype.getExtent=Z.prototype.J;Z.prototype.getFeatureById=Z.prototype.Na;Z.prototype.removeFeature=Z.prototype.fb;Z.prototype.getAttributions=Z.prototype.Y;Z.prototype.getLogo=Z.prototype.X;Z.prototype.getProjection=Z.prototype.Z;Z.prototype.getState=Z.prototype.$;Z.prototype.bindTo=Z.prototype.K;Z.prototype.get=Z.prototype.get;Z.prototype.getKeys=Z.prototype.G;Z.prototype.getProperties=Z.prototype.I;Z.prototype.set=Z.prototype.set;Z.prototype.setProperties=Z.prototype.C;Z.prototype.unbind=Z.prototype.L;Z.prototype.unbindAll=Z.prototype.M;Z.prototype.changed=Z.prototype.l;Z.prototype.getRevision=Z.prototype.u;Z.prototype.on=Z.prototype.s;Z.prototype.once=Z.prototype.v;Z.prototype.un=Z.prototype.t;Z.prototype.unByKey=Z.prototype.A;$.prototype.readFeatures=$.prototype.a;$.prototype.addFeature=$.prototype.Va;$.prototype.addFeatures=$.prototype.Ga;$.prototype.clear=$.prototype.clear;$.prototype.forEachFeature=$.prototype.$a;$.prototype.forEachFeatureInExtent=$.prototype.wa;$.prototype.forEachFeatureIntersectingExtent=$.prototype.Ma;$.prototype.getFeatures=$.prototype.Aa;$.prototype.getFeaturesAtCoordinate=$.prototype.Oa;$.prototype.getClosestFeatureToCoordinate=$.prototype.ab;$.prototype.getExtent=$.prototype.J;$.prototype.getFeatureById=$.prototype.Na;$.prototype.removeFeature=$.prototype.fb;$.prototype.getAttributions=$.prototype.Y;$.prototype.getLogo=$.prototype.X;$.prototype.getProjection=$.prototype.Z;$.prototype.getState=$.prototype.$;$.prototype.bindTo=$.prototype.K;$.prototype.get=$.prototype.get;$.prototype.getKeys=$.prototype.G;$.prototype.getProperties=$.prototype.I;$.prototype.set=$.prototype.set;$.prototype.setProperties=$.prototype.C;$.prototype.unbind=$.prototype.L;$.prototype.unbindAll=$.prototype.M;$.prototype.changed=$.prototype.l;$.prototype.getRevision=$.prototype.u;$.prototype.on=$.prototype.s;$.prototype.once=$.prototype.v;$.prototype.un=$.prototype.t;$.prototype.unByKey=$.prototype.A;Iy.prototype.readFeatures=Iy.prototype.a;Iy.prototype.addFeature=Iy.prototype.Va;Iy.prototype.addFeatures=Iy.prototype.Ga;Iy.prototype.clear=Iy.prototype.clear;Iy.prototype.forEachFeature=Iy.prototype.$a;Iy.prototype.forEachFeatureInExtent=Iy.prototype.wa;Iy.prototype.forEachFeatureIntersectingExtent=Iy.prototype.Ma;Iy.prototype.getFeatures=Iy.prototype.Aa;Iy.prototype.getFeaturesAtCoordinate=Iy.prototype.Oa;Iy.prototype.getClosestFeatureToCoordinate=Iy.prototype.ab;Iy.prototype.getExtent=Iy.prototype.J;Iy.prototype.getFeatureById=Iy.prototype.Na;Iy.prototype.removeFeature=Iy.prototype.fb;Iy.prototype.getAttributions=Iy.prototype.Y;Iy.prototype.getLogo=Iy.prototype.X;Iy.prototype.getProjection=Iy.prototype.Z;Iy.prototype.getState=Iy.prototype.$;Iy.prototype.bindTo=Iy.prototype.K;Iy.prototype.get=Iy.prototype.get;Iy.prototype.getKeys=Iy.prototype.G;Iy.prototype.getProperties=Iy.prototype.I;Iy.prototype.set=Iy.prototype.set;Iy.prototype.setProperties=Iy.prototype.C;Iy.prototype.unbind=Iy.prototype.L;Iy.prototype.unbindAll=Iy.prototype.M;Iy.prototype.changed=Iy.prototype.l;Iy.prototype.getRevision=Iy.prototype.u;Iy.prototype.on=Iy.prototype.s;Iy.prototype.once=Iy.prototype.v;Iy.prototype.un=Iy.prototype.t;Iy.prototype.unByKey=Iy.prototype.A;Jy.prototype.readFeatures=Jy.prototype.a;Jy.prototype.addFeature=Jy.prototype.Va;Jy.prototype.addFeatures=Jy.prototype.Ga;Jy.prototype.clear=Jy.prototype.clear;Jy.prototype.forEachFeature=Jy.prototype.$a;Jy.prototype.forEachFeatureInExtent=Jy.prototype.wa;Jy.prototype.forEachFeatureIntersectingExtent=Jy.prototype.Ma;Jy.prototype.getFeatures=Jy.prototype.Aa;Jy.prototype.getFeaturesAtCoordinate=Jy.prototype.Oa;Jy.prototype.getClosestFeatureToCoordinate=Jy.prototype.ab;Jy.prototype.getExtent=Jy.prototype.J;Jy.prototype.getFeatureById=Jy.prototype.Na;Jy.prototype.removeFeature=Jy.prototype.fb;Jy.prototype.getAttributions=Jy.prototype.Y;Jy.prototype.getLogo=Jy.prototype.X;Jy.prototype.getProjection=Jy.prototype.Z;Jy.prototype.getState=Jy.prototype.$;Jy.prototype.bindTo=Jy.prototype.K;Jy.prototype.get=Jy.prototype.get;Jy.prototype.getKeys=Jy.prototype.G;Jy.prototype.getProperties=Jy.prototype.I;Jy.prototype.set=Jy.prototype.set;Jy.prototype.setProperties=Jy.prototype.C;Jy.prototype.unbind=Jy.prototype.L;Jy.prototype.unbindAll=Jy.prototype.M;Jy.prototype.changed=Jy.prototype.l;Jy.prototype.getRevision=Jy.prototype.u;Jy.prototype.on=Jy.prototype.s;Jy.prototype.once=Jy.prototype.v;Jy.prototype.un=Jy.prototype.t;Jy.prototype.unByKey=Jy.prototype.A;Ky.prototype.readFeatures=Ky.prototype.a;Ky.prototype.addFeature=Ky.prototype.Va;Ky.prototype.addFeatures=Ky.prototype.Ga;Ky.prototype.clear=Ky.prototype.clear;Ky.prototype.forEachFeature=Ky.prototype.$a;Ky.prototype.forEachFeatureInExtent=Ky.prototype.wa;Ky.prototype.forEachFeatureIntersectingExtent=Ky.prototype.Ma;Ky.prototype.getFeatures=Ky.prototype.Aa;Ky.prototype.getFeaturesAtCoordinate=Ky.prototype.Oa;Ky.prototype.getClosestFeatureToCoordinate=Ky.prototype.ab;Ky.prototype.getExtent=Ky.prototype.J;Ky.prototype.getFeatureById=Ky.prototype.Na;Ky.prototype.removeFeature=Ky.prototype.fb;Ky.prototype.getAttributions=Ky.prototype.Y;Ky.prototype.getLogo=Ky.prototype.X;Ky.prototype.getProjection=Ky.prototype.Z;Ky.prototype.getState=Ky.prototype.$;Ky.prototype.bindTo=Ky.prototype.K;Ky.prototype.get=Ky.prototype.get;Ky.prototype.getKeys=Ky.prototype.G;Ky.prototype.getProperties=Ky.prototype.I;Ky.prototype.set=Ky.prototype.set;Ky.prototype.setProperties=Ky.prototype.C;Ky.prototype.unbind=Ky.prototype.L;Ky.prototype.unbindAll=Ky.prototype.M;Ky.prototype.changed=Ky.prototype.l;Ky.prototype.getRevision=Ky.prototype.u;Ky.prototype.on=Ky.prototype.s;Ky.prototype.once=Ky.prototype.v;Ky.prototype.un=Ky.prototype.t;Ky.prototype.unByKey=Ky.prototype.A;gn.prototype.getAttributions=gn.prototype.Y;gn.prototype.getLogo=gn.prototype.X;gn.prototype.getProjection=gn.prototype.Z;gn.prototype.getState=gn.prototype.$;gn.prototype.bindTo=gn.prototype.K;gn.prototype.get=gn.prototype.get;gn.prototype.getKeys=gn.prototype.G;gn.prototype.getProperties=gn.prototype.I;gn.prototype.set=gn.prototype.set;gn.prototype.setProperties=gn.prototype.C;gn.prototype.unbind=gn.prototype.L;gn.prototype.unbindAll=gn.prototype.M;gn.prototype.changed=gn.prototype.l;gn.prototype.getRevision=gn.prototype.u;gn.prototype.on=gn.prototype.s;gn.prototype.once=gn.prototype.v;gn.prototype.un=gn.prototype.t;gn.prototype.unByKey=gn.prototype.A;on.prototype.getAttributions=on.prototype.Y;on.prototype.getLogo=on.prototype.X;on.prototype.getProjection=on.prototype.Z;on.prototype.getState=on.prototype.$;on.prototype.bindTo=on.prototype.K;on.prototype.get=on.prototype.get;on.prototype.getKeys=on.prototype.G;on.prototype.getProperties=on.prototype.I;on.prototype.set=on.prototype.set;on.prototype.setProperties=on.prototype.C;on.prototype.unbind=on.prototype.L;on.prototype.unbindAll=on.prototype.M;on.prototype.changed=on.prototype.l;on.prototype.getRevision=on.prototype.u;on.prototype.on=on.prototype.s;on.prototype.once=on.prototype.v;on.prototype.un=on.prototype.t;on.prototype.unByKey=on.prototype.A;Ly.prototype.getAttributions=Ly.prototype.Y;Ly.prototype.getLogo=Ly.prototype.X;Ly.prototype.getProjection=Ly.prototype.Z;Ly.prototype.getState=Ly.prototype.$;Ly.prototype.bindTo=Ly.prototype.K;Ly.prototype.get=Ly.prototype.get;Ly.prototype.getKeys=Ly.prototype.G;Ly.prototype.getProperties=Ly.prototype.I;Ly.prototype.set=Ly.prototype.set;Ly.prototype.setProperties=Ly.prototype.C;Ly.prototype.unbind=Ly.prototype.L;Ly.prototype.unbindAll=Ly.prototype.M;Ly.prototype.changed=Ly.prototype.l;Ly.prototype.getRevision=Ly.prototype.u;Ly.prototype.on=Ly.prototype.s;Ly.prototype.once=Ly.prototype.v;Ly.prototype.un=Ly.prototype.t;Ly.prototype.unByKey=Ly.prototype.A;My.prototype.getAttributions=My.prototype.Y;My.prototype.getLogo=My.prototype.X;My.prototype.getProjection=My.prototype.Z;My.prototype.getState=My.prototype.$;My.prototype.bindTo=My.prototype.K;My.prototype.get=My.prototype.get;My.prototype.getKeys=My.prototype.G;My.prototype.getProperties=My.prototype.I;My.prototype.set=My.prototype.set;My.prototype.setProperties=My.prototype.C;My.prototype.unbind=My.prototype.L;My.prototype.unbindAll=My.prototype.M;My.prototype.changed=My.prototype.l;My.prototype.getRevision=My.prototype.u;My.prototype.on=My.prototype.s;My.prototype.once=My.prototype.v;My.prototype.un=My.prototype.t;My.prototype.unByKey=My.prototype.A;Bn.prototype.getAttributions=Bn.prototype.Y;Bn.prototype.getLogo=Bn.prototype.X;Bn.prototype.getProjection=Bn.prototype.Z;Bn.prototype.getState=Bn.prototype.$;Bn.prototype.bindTo=Bn.prototype.K;Bn.prototype.get=Bn.prototype.get;Bn.prototype.getKeys=Bn.prototype.G;Bn.prototype.getProperties=Bn.prototype.I;Bn.prototype.set=Bn.prototype.set;Bn.prototype.setProperties=Bn.prototype.C;Bn.prototype.unbind=Bn.prototype.L;Bn.prototype.unbindAll=Bn.prototype.M;Bn.prototype.changed=Bn.prototype.l;Bn.prototype.getRevision=Bn.prototype.u;Bn.prototype.on=Bn.prototype.s;Bn.prototype.once=Bn.prototype.v;Bn.prototype.un=Bn.prototype.t;Bn.prototype.unByKey=Bn.prototype.A;Ny.prototype.getAttributions=Ny.prototype.Y;Ny.prototype.getLogo=Ny.prototype.X;Ny.prototype.getProjection=Ny.prototype.Z;Ny.prototype.getState=Ny.prototype.$;Ny.prototype.bindTo=Ny.prototype.K;Ny.prototype.get=Ny.prototype.get;Ny.prototype.getKeys=Ny.prototype.G;Ny.prototype.getProperties=Ny.prototype.I;Ny.prototype.set=Ny.prototype.set;Ny.prototype.setProperties=Ny.prototype.C;Ny.prototype.unbind=Ny.prototype.L;Ny.prototype.unbindAll=Ny.prototype.M;Ny.prototype.changed=Ny.prototype.l;Ny.prototype.getRevision=Ny.prototype.u;Ny.prototype.on=Ny.prototype.s;Ny.prototype.once=Ny.prototype.v;Ny.prototype.un=Ny.prototype.t;Ny.prototype.unByKey=Ny.prototype.A;Ry.prototype.readFeatures=Ry.prototype.a;Ry.prototype.addFeature=Ry.prototype.Va;Ry.prototype.addFeatures=Ry.prototype.Ga;Ry.prototype.clear=Ry.prototype.clear;Ry.prototype.forEachFeature=Ry.prototype.$a;Ry.prototype.forEachFeatureInExtent=Ry.prototype.wa;Ry.prototype.forEachFeatureIntersectingExtent=Ry.prototype.Ma;Ry.prototype.getFeatures=Ry.prototype.Aa;Ry.prototype.getFeaturesAtCoordinate=Ry.prototype.Oa;Ry.prototype.getClosestFeatureToCoordinate=Ry.prototype.ab;Ry.prototype.getExtent=Ry.prototype.J;Ry.prototype.getFeatureById=Ry.prototype.Na;Ry.prototype.removeFeature=Ry.prototype.fb;Ry.prototype.getAttributions=Ry.prototype.Y;Ry.prototype.getLogo=Ry.prototype.X;Ry.prototype.getProjection=Ry.prototype.Z;Ry.prototype.getState=Ry.prototype.$;Ry.prototype.bindTo=Ry.prototype.K;Ry.prototype.get=Ry.prototype.get;Ry.prototype.getKeys=Ry.prototype.G;Ry.prototype.getProperties=Ry.prototype.I;Ry.prototype.set=Ry.prototype.set;Ry.prototype.setProperties=Ry.prototype.C;Ry.prototype.unbind=Ry.prototype.L;Ry.prototype.unbindAll=Ry.prototype.M;Ry.prototype.changed=Ry.prototype.l;Ry.prototype.getRevision=Ry.prototype.u;Ry.prototype.on=Ry.prototype.s;Ry.prototype.once=Ry.prototype.v;Ry.prototype.un=Ry.prototype.t;Ry.prototype.unByKey=Ry.prototype.A;Sy.prototype.getTileLoadFunction=Sy.prototype.bb;Sy.prototype.getTileUrlFunction=Sy.prototype.cb;Sy.prototype.setTileLoadFunction=Sy.prototype.jb;Sy.prototype.getTileGrid=Sy.prototype.xa;Sy.prototype.getAttributions=Sy.prototype.Y;Sy.prototype.getLogo=Sy.prototype.X;Sy.prototype.getProjection=Sy.prototype.Z;Sy.prototype.getState=Sy.prototype.$;Sy.prototype.bindTo=Sy.prototype.K;Sy.prototype.get=Sy.prototype.get;Sy.prototype.getKeys=Sy.prototype.G;Sy.prototype.getProperties=Sy.prototype.I;Sy.prototype.set=Sy.prototype.set;Sy.prototype.setProperties=Sy.prototype.C;Sy.prototype.unbind=Sy.prototype.L;Sy.prototype.unbindAll=Sy.prototype.M;Sy.prototype.changed=Sy.prototype.l;Sy.prototype.getRevision=Sy.prototype.u;Sy.prototype.on=Sy.prototype.s;Sy.prototype.once=Sy.prototype.v;Sy.prototype.un=Sy.prototype.t;Sy.prototype.unByKey=Sy.prototype.A;Vy.prototype.setTileUrlFunction=Vy.prototype.ua;Vy.prototype.setUrl=Vy.prototype.b;Vy.prototype.getTileLoadFunction=Vy.prototype.bb;Vy.prototype.getTileUrlFunction=Vy.prototype.cb;Vy.prototype.setTileLoadFunction=Vy.prototype.jb;Vy.prototype.getTileGrid=Vy.prototype.xa;Vy.prototype.getAttributions=Vy.prototype.Y;Vy.prototype.getLogo=Vy.prototype.X;Vy.prototype.getProjection=Vy.prototype.Z;Vy.prototype.getState=Vy.prototype.$;Vy.prototype.bindTo=Vy.prototype.K;Vy.prototype.get=Vy.prototype.get;Vy.prototype.getKeys=Vy.prototype.G;Vy.prototype.getProperties=Vy.prototype.I;Vy.prototype.set=Vy.prototype.set;Vy.prototype.setProperties=Vy.prototype.C;Vy.prototype.unbind=Vy.prototype.L;Vy.prototype.unbindAll=Vy.prototype.M;Vy.prototype.changed=Vy.prototype.l;Vy.prototype.getRevision=Vy.prototype.u;Vy.prototype.on=Vy.prototype.s;Vy.prototype.once=Vy.prototype.v;Vy.prototype.un=Vy.prototype.t;Vy.prototype.unByKey=Vy.prototype.A;Ty.prototype.setTileUrlFunction=Ty.prototype.ua;Ty.prototype.setUrl=Ty.prototype.b;Ty.prototype.getTileLoadFunction=Ty.prototype.bb;Ty.prototype.getTileUrlFunction=Ty.prototype.cb;Ty.prototype.setTileLoadFunction=Ty.prototype.jb;Ty.prototype.getTileGrid=Ty.prototype.xa;Ty.prototype.getAttributions=Ty.prototype.Y;Ty.prototype.getLogo=Ty.prototype.X;Ty.prototype.getProjection=Ty.prototype.Z;Ty.prototype.getState=Ty.prototype.$;Ty.prototype.bindTo=Ty.prototype.K;Ty.prototype.get=Ty.prototype.get;Ty.prototype.getKeys=Ty.prototype.G;Ty.prototype.getProperties=Ty.prototype.I;Ty.prototype.set=Ty.prototype.set;Ty.prototype.setProperties=Ty.prototype.C;Ty.prototype.unbind=Ty.prototype.L;Ty.prototype.unbindAll=Ty.prototype.M;Ty.prototype.changed=Ty.prototype.l;Ty.prototype.getRevision=Ty.prototype.u;Ty.prototype.on=Ty.prototype.s;Ty.prototype.once=Ty.prototype.v;Ty.prototype.un=Ty.prototype.t;Ty.prototype.unByKey=Ty.prototype.A;Yy.prototype.readFeatures=Yy.prototype.a;Yy.prototype.addFeature=Yy.prototype.Va;Yy.prototype.addFeatures=Yy.prototype.Ga;Yy.prototype.clear=Yy.prototype.clear;Yy.prototype.forEachFeature=Yy.prototype.$a;Yy.prototype.forEachFeatureInExtent=Yy.prototype.wa;Yy.prototype.forEachFeatureIntersectingExtent=Yy.prototype.Ma;Yy.prototype.getFeatures=Yy.prototype.Aa;Yy.prototype.getFeaturesAtCoordinate=Yy.prototype.Oa;Yy.prototype.getClosestFeatureToCoordinate=Yy.prototype.ab;Yy.prototype.getExtent=Yy.prototype.J;Yy.prototype.getFeatureById=Yy.prototype.Na;Yy.prototype.removeFeature=Yy.prototype.fb;Yy.prototype.getAttributions=Yy.prototype.Y;Yy.prototype.getLogo=Yy.prototype.X;Yy.prototype.getProjection=Yy.prototype.Z;Yy.prototype.getState=Yy.prototype.$;Yy.prototype.bindTo=Yy.prototype.K;Yy.prototype.get=Yy.prototype.get;Yy.prototype.getKeys=Yy.prototype.G;Yy.prototype.getProperties=Yy.prototype.I;Yy.prototype.set=Yy.prototype.set;Yy.prototype.setProperties=Yy.prototype.C;Yy.prototype.unbind=Yy.prototype.L;Yy.prototype.unbindAll=Yy.prototype.M;Yy.prototype.changed=Yy.prototype.l;Yy.prototype.getRevision=Yy.prototype.u;Yy.prototype.on=Yy.prototype.s;Yy.prototype.once=Yy.prototype.v;Yy.prototype.un=Yy.prototype.t;Yy.prototype.unByKey=Yy.prototype.A;Zy.prototype.addFeature=Zy.prototype.Va;Zy.prototype.addFeatures=Zy.prototype.Ga;Zy.prototype.forEachFeature=Zy.prototype.$a;Zy.prototype.forEachFeatureInExtent=Zy.prototype.wa;Zy.prototype.forEachFeatureIntersectingExtent=Zy.prototype.Ma;Zy.prototype.getFeatures=Zy.prototype.Aa;Zy.prototype.getFeaturesAtCoordinate=Zy.prototype.Oa;Zy.prototype.getClosestFeatureToCoordinate=Zy.prototype.ab;Zy.prototype.getExtent=Zy.prototype.J;Zy.prototype.getFeatureById=Zy.prototype.Na;Zy.prototype.removeFeature=Zy.prototype.fb;Zy.prototype.getAttributions=Zy.prototype.Y;Zy.prototype.getLogo=Zy.prototype.X;Zy.prototype.getProjection=Zy.prototype.Z;Zy.prototype.getState=Zy.prototype.$;Zy.prototype.bindTo=Zy.prototype.K;Zy.prototype.get=Zy.prototype.get;Zy.prototype.getKeys=Zy.prototype.G;Zy.prototype.getProperties=Zy.prototype.I;Zy.prototype.set=Zy.prototype.set;Zy.prototype.setProperties=Zy.prototype.C;Zy.prototype.unbind=Zy.prototype.L;Zy.prototype.unbindAll=Zy.prototype.M;Zy.prototype.changed=Zy.prototype.l;Zy.prototype.getRevision=Zy.prototype.u;Zy.prototype.on=Zy.prototype.s;Zy.prototype.once=Zy.prototype.v;Zy.prototype.un=Zy.prototype.t;Zy.prototype.unByKey=Zy.prototype.A;bz.prototype.setTileUrlFunction=bz.prototype.ua;bz.prototype.setUrl=bz.prototype.b;bz.prototype.getTileLoadFunction=bz.prototype.bb;bz.prototype.getTileUrlFunction=bz.prototype.cb;bz.prototype.setTileLoadFunction=bz.prototype.jb;bz.prototype.getTileGrid=bz.prototype.xa;bz.prototype.getAttributions=bz.prototype.Y;bz.prototype.getLogo=bz.prototype.X;bz.prototype.getProjection=bz.prototype.Z;bz.prototype.getState=bz.prototype.$;bz.prototype.bindTo=bz.prototype.K;bz.prototype.get=bz.prototype.get;bz.prototype.getKeys=bz.prototype.G;bz.prototype.getProperties=bz.prototype.I;bz.prototype.set=bz.prototype.set;bz.prototype.setProperties=bz.prototype.C;bz.prototype.unbind=bz.prototype.L;bz.prototype.unbindAll=bz.prototype.M;bz.prototype.changed=bz.prototype.l;bz.prototype.getRevision=bz.prototype.u;bz.prototype.on=bz.prototype.s;bz.prototype.once=bz.prototype.v;bz.prototype.un=bz.prototype.t;bz.prototype.unByKey=bz.prototype.A;dz.prototype.getTileLoadFunction=dz.prototype.bb;dz.prototype.getTileUrlFunction=dz.prototype.cb;dz.prototype.setTileLoadFunction=dz.prototype.jb;dz.prototype.setTileUrlFunction=dz.prototype.ua;dz.prototype.getTileGrid=dz.prototype.xa;dz.prototype.getAttributions=dz.prototype.Y;dz.prototype.getLogo=dz.prototype.X;dz.prototype.getProjection=dz.prototype.Z;dz.prototype.getState=dz.prototype.$;dz.prototype.bindTo=dz.prototype.K;dz.prototype.get=dz.prototype.get;dz.prototype.getKeys=dz.prototype.G;dz.prototype.getProperties=dz.prototype.I;dz.prototype.set=dz.prototype.set;dz.prototype.setProperties=dz.prototype.C;dz.prototype.unbind=dz.prototype.L;dz.prototype.unbindAll=dz.prototype.M;dz.prototype.changed=dz.prototype.l;dz.prototype.getRevision=dz.prototype.u;dz.prototype.on=dz.prototype.s;dz.prototype.once=dz.prototype.v;dz.prototype.un=dz.prototype.t;dz.prototype.unByKey=dz.prototype.A;fz.prototype.getTileGrid=fz.prototype.xa;fz.prototype.getAttributions=fz.prototype.Y;fz.prototype.getLogo=fz.prototype.X;fz.prototype.getProjection=fz.prototype.Z;fz.prototype.getState=fz.prototype.$;fz.prototype.bindTo=fz.prototype.K;fz.prototype.get=fz.prototype.get;fz.prototype.getKeys=fz.prototype.G;fz.prototype.getProperties=fz.prototype.I;fz.prototype.set=fz.prototype.set;fz.prototype.setProperties=fz.prototype.C;fz.prototype.unbind=fz.prototype.L;fz.prototype.unbindAll=fz.prototype.M;fz.prototype.changed=fz.prototype.l;fz.prototype.getRevision=fz.prototype.u;fz.prototype.on=fz.prototype.s;fz.prototype.once=fz.prototype.v;fz.prototype.un=fz.prototype.t;fz.prototype.unByKey=fz.prototype.A;gz.prototype.getTileLoadFunction=gz.prototype.bb;gz.prototype.getTileUrlFunction=gz.prototype.cb;gz.prototype.setTileLoadFunction=gz.prototype.jb;gz.prototype.setTileUrlFunction=gz.prototype.ua;gz.prototype.getTileGrid=gz.prototype.xa;gz.prototype.getAttributions=gz.prototype.Y;gz.prototype.getLogo=gz.prototype.X;gz.prototype.getProjection=gz.prototype.Z;gz.prototype.getState=gz.prototype.$;gz.prototype.bindTo=gz.prototype.K;gz.prototype.get=gz.prototype.get;gz.prototype.getKeys=gz.prototype.G;gz.prototype.getProperties=gz.prototype.I;gz.prototype.set=gz.prototype.set;gz.prototype.setProperties=gz.prototype.C;gz.prototype.unbind=gz.prototype.L;gz.prototype.unbindAll=gz.prototype.M;gz.prototype.changed=gz.prototype.l;gz.prototype.getRevision=gz.prototype.u;gz.prototype.on=gz.prototype.s;gz.prototype.once=gz.prototype.v;gz.prototype.un=gz.prototype.t;gz.prototype.unByKey=gz.prototype.A;hz.prototype.getTileGrid=hz.prototype.xa;hz.prototype.getAttributions=hz.prototype.Y;hz.prototype.getLogo=hz.prototype.X;hz.prototype.getProjection=hz.prototype.Z;hz.prototype.getState=hz.prototype.$;hz.prototype.bindTo=hz.prototype.K;hz.prototype.get=hz.prototype.get;hz.prototype.getKeys=hz.prototype.G;hz.prototype.getProperties=hz.prototype.I;hz.prototype.set=hz.prototype.set;hz.prototype.setProperties=hz.prototype.C;hz.prototype.unbind=hz.prototype.L;hz.prototype.unbindAll=hz.prototype.M;hz.prototype.changed=hz.prototype.l;hz.prototype.getRevision=hz.prototype.u;hz.prototype.on=hz.prototype.s;hz.prototype.once=hz.prototype.v;hz.prototype.un=hz.prototype.t;hz.prototype.unByKey=hz.prototype.A;mz.prototype.readFeatures=mz.prototype.a;mz.prototype.forEachFeatureIntersectingExtent=mz.prototype.Ma;mz.prototype.getFeaturesAtCoordinate=mz.prototype.Oa;mz.prototype.getFeatureById=mz.prototype.Na;mz.prototype.getAttributions=mz.prototype.Y;mz.prototype.getLogo=mz.prototype.X;mz.prototype.getProjection=mz.prototype.Z;mz.prototype.getState=mz.prototype.$;mz.prototype.bindTo=mz.prototype.K;mz.prototype.get=mz.prototype.get;mz.prototype.getKeys=mz.prototype.G;mz.prototype.getProperties=mz.prototype.I;mz.prototype.set=mz.prototype.set;mz.prototype.setProperties=mz.prototype.C;mz.prototype.unbind=mz.prototype.L;mz.prototype.unbindAll=mz.prototype.M;mz.prototype.changed=mz.prototype.l;mz.prototype.getRevision=mz.prototype.u;mz.prototype.on=mz.prototype.s;mz.prototype.once=mz.prototype.v;mz.prototype.un=mz.prototype.t;mz.prototype.unByKey=mz.prototype.A;oz.prototype.getTileLoadFunction=oz.prototype.bb;oz.prototype.getTileUrlFunction=oz.prototype.cb;oz.prototype.setTileLoadFunction=oz.prototype.jb;oz.prototype.setTileUrlFunction=oz.prototype.ua;oz.prototype.getTileGrid=oz.prototype.xa;oz.prototype.getAttributions=oz.prototype.Y;oz.prototype.getLogo=oz.prototype.X;oz.prototype.getProjection=oz.prototype.Z;oz.prototype.getState=oz.prototype.$;oz.prototype.bindTo=oz.prototype.K;oz.prototype.get=oz.prototype.get;oz.prototype.getKeys=oz.prototype.G;oz.prototype.getProperties=oz.prototype.I;oz.prototype.set=oz.prototype.set;oz.prototype.setProperties=oz.prototype.C;oz.prototype.unbind=oz.prototype.L;oz.prototype.unbindAll=oz.prototype.M;oz.prototype.changed=oz.prototype.l;oz.prototype.getRevision=oz.prototype.u;oz.prototype.on=oz.prototype.s;oz.prototype.once=oz.prototype.v;oz.prototype.un=oz.prototype.t;oz.prototype.unByKey=oz.prototype.A;sz.prototype.readFeatures=sz.prototype.a;sz.prototype.addFeature=sz.prototype.Va;sz.prototype.addFeatures=sz.prototype.Ga;sz.prototype.clear=sz.prototype.clear;sz.prototype.forEachFeature=sz.prototype.$a;sz.prototype.forEachFeatureInExtent=sz.prototype.wa;sz.prototype.forEachFeatureIntersectingExtent=sz.prototype.Ma;sz.prototype.getFeatures=sz.prototype.Aa;sz.prototype.getFeaturesAtCoordinate=sz.prototype.Oa;sz.prototype.getClosestFeatureToCoordinate=sz.prototype.ab;sz.prototype.getExtent=sz.prototype.J;sz.prototype.getFeatureById=sz.prototype.Na;sz.prototype.removeFeature=sz.prototype.fb;sz.prototype.getAttributions=sz.prototype.Y;sz.prototype.getLogo=sz.prototype.X;sz.prototype.getProjection=sz.prototype.Z;sz.prototype.getState=sz.prototype.$;sz.prototype.bindTo=sz.prototype.K;sz.prototype.get=sz.prototype.get;sz.prototype.getKeys=sz.prototype.G;sz.prototype.getProperties=sz.prototype.I;sz.prototype.set=sz.prototype.set;sz.prototype.setProperties=sz.prototype.C;sz.prototype.unbind=sz.prototype.L;sz.prototype.unbindAll=sz.prototype.M;sz.prototype.changed=sz.prototype.l;sz.prototype.getRevision=sz.prototype.u;sz.prototype.on=sz.prototype.s;sz.prototype.once=sz.prototype.v;sz.prototype.un=sz.prototype.t;sz.prototype.unByKey=sz.prototype.A;vz.prototype.getTileLoadFunction=vz.prototype.bb;vz.prototype.getTileUrlFunction=vz.prototype.cb;vz.prototype.setTileLoadFunction=vz.prototype.jb;vz.prototype.setTileUrlFunction=vz.prototype.ua;vz.prototype.getTileGrid=vz.prototype.xa;vz.prototype.getAttributions=vz.prototype.Y;vz.prototype.getLogo=vz.prototype.X;vz.prototype.getProjection=vz.prototype.Z;vz.prototype.getState=vz.prototype.$;vz.prototype.bindTo=vz.prototype.K;vz.prototype.get=vz.prototype.get;vz.prototype.getKeys=vz.prototype.G;vz.prototype.getProperties=vz.prototype.I;vz.prototype.set=vz.prototype.set;vz.prototype.setProperties=vz.prototype.C;vz.prototype.unbind=vz.prototype.L;vz.prototype.unbindAll=vz.prototype.M;vz.prototype.changed=vz.prototype.l;vz.prototype.getRevision=vz.prototype.u;vz.prototype.on=vz.prototype.s;vz.prototype.once=vz.prototype.v;vz.prototype.un=vz.prototype.t;vz.prototype.unByKey=vz.prototype.A;yz.prototype.getTileLoadFunction=yz.prototype.bb;yz.prototype.getTileUrlFunction=yz.prototype.cb;yz.prototype.setTileLoadFunction=yz.prototype.jb;yz.prototype.setTileUrlFunction=yz.prototype.ua;yz.prototype.getTileGrid=yz.prototype.xa;yz.prototype.getAttributions=yz.prototype.Y;yz.prototype.getLogo=yz.prototype.X;yz.prototype.getProjection=yz.prototype.Z;yz.prototype.getState=yz.prototype.$;yz.prototype.bindTo=yz.prototype.K;yz.prototype.get=yz.prototype.get;yz.prototype.getKeys=yz.prototype.G;yz.prototype.getProperties=yz.prototype.I;yz.prototype.set=yz.prototype.set;yz.prototype.setProperties=yz.prototype.C;yz.prototype.unbind=yz.prototype.L;yz.prototype.unbindAll=yz.prototype.M;yz.prototype.changed=yz.prototype.l;yz.prototype.getRevision=yz.prototype.u;yz.prototype.on=yz.prototype.s;yz.prototype.once=yz.prototype.v;yz.prototype.un=yz.prototype.t;yz.prototype.unByKey=yz.prototype.A;oj.prototype.changed=oj.prototype.l;oj.prototype.getRevision=oj.prototype.u;oj.prototype.on=oj.prototype.s;oj.prototype.once=oj.prototype.v;oj.prototype.un=oj.prototype.t;oj.prototype.unByKey=oj.prototype.A;Co.prototype.changed=Co.prototype.l;Co.prototype.getRevision=Co.prototype.u;Co.prototype.on=Co.prototype.s;Co.prototype.once=Co.prototype.v;Co.prototype.un=Co.prototype.t;Co.prototype.unByKey=Co.prototype.A;Fo.prototype.changed=Fo.prototype.l;Fo.prototype.getRevision=Fo.prototype.u;Fo.prototype.on=Fo.prototype.s;Fo.prototype.once=Fo.prototype.v;Fo.prototype.un=Fo.prototype.t;Fo.prototype.unByKey=Fo.prototype.A;Lo.prototype.changed=Lo.prototype.l;Lo.prototype.getRevision=Lo.prototype.u;Lo.prototype.on=Lo.prototype.s;Lo.prototype.once=Lo.prototype.v;Lo.prototype.un=Lo.prototype.t;Lo.prototype.unByKey=Lo.prototype.A;No.prototype.changed=No.prototype.l;No.prototype.getRevision=No.prototype.u;No.prototype.on=No.prototype.s;No.prototype.once=No.prototype.v;No.prototype.un=No.prototype.t;No.prototype.unByKey=No.prototype.A;In.prototype.changed=In.prototype.l;In.prototype.getRevision=In.prototype.u;In.prototype.on=In.prototype.s;In.prototype.once=In.prototype.v;In.prototype.un=In.prototype.t;In.prototype.unByKey=In.prototype.A;Jn.prototype.changed=Jn.prototype.l;Jn.prototype.getRevision=Jn.prototype.u;Jn.prototype.on=Jn.prototype.s;Jn.prototype.once=Jn.prototype.v;Jn.prototype.un=Jn.prototype.t;Jn.prototype.unByKey=Jn.prototype.A;Kn.prototype.changed=Kn.prototype.l;Kn.prototype.getRevision=Kn.prototype.u;Kn.prototype.on=Kn.prototype.s;Kn.prototype.once=Kn.prototype.v;Kn.prototype.un=Kn.prototype.t;Kn.prototype.unByKey=Kn.prototype.A;Mn.prototype.changed=Mn.prototype.l;Mn.prototype.getRevision=Mn.prototype.u;Mn.prototype.on=Mn.prototype.s;Mn.prototype.once=Mn.prototype.v;Mn.prototype.un=Mn.prototype.t;Mn.prototype.unByKey=Mn.prototype.A;Fm.prototype.changed=Fm.prototype.l;Fm.prototype.getRevision=Fm.prototype.u;Fm.prototype.on=Fm.prototype.s;Fm.prototype.once=Fm.prototype.v;Fm.prototype.un=Fm.prototype.t;Fm.prototype.unByKey=Fm.prototype.A;Dn.prototype.changed=Dn.prototype.l;Dn.prototype.getRevision=Dn.prototype.u;Dn.prototype.on=Dn.prototype.s;Dn.prototype.once=Dn.prototype.v;Dn.prototype.un=Dn.prototype.t;Dn.prototype.unByKey=Dn.prototype.A;En.prototype.changed=En.prototype.l;En.prototype.getRevision=En.prototype.u;En.prototype.on=En.prototype.s;En.prototype.once=En.prototype.v;En.prototype.un=En.prototype.t;En.prototype.unByKey=En.prototype.A;Fn.prototype.changed=Fn.prototype.l;Fn.prototype.getRevision=Fn.prototype.u;Fn.prototype.on=Fn.prototype.s;Fn.prototype.once=Fn.prototype.v;Fn.prototype.un=Fn.prototype.t;Fn.prototype.unByKey=Fn.prototype.A;C.prototype.bindTo=C.prototype.K;C.prototype.get=C.prototype.get;C.prototype.getKeys=C.prototype.G;C.prototype.getProperties=C.prototype.I;C.prototype.set=C.prototype.set;C.prototype.setProperties=C.prototype.C;C.prototype.unbind=C.prototype.L;C.prototype.unbindAll=C.prototype.M;C.prototype.changed=C.prototype.l;C.prototype.getRevision=C.prototype.u;C.prototype.on=C.prototype.s;C.prototype.once=C.prototype.v;C.prototype.un=C.prototype.t;C.prototype.unByKey=C.prototype.A;D.prototype.getBrightness=D.prototype.d;D.prototype.getContrast=D.prototype.f;D.prototype.getHue=D.prototype.e;D.prototype.getExtent=D.prototype.J;D.prototype.getMaxResolution=D.prototype.g;D.prototype.getMinResolution=D.prototype.i;D.prototype.getOpacity=D.prototype.q;D.prototype.getSaturation=D.prototype.k;D.prototype.getVisible=D.prototype.b;D.prototype.setBrightness=D.prototype.D;D.prototype.setContrast=D.prototype.H;D.prototype.setHue=D.prototype.N;D.prototype.setExtent=D.prototype.o;D.prototype.setMaxResolution=D.prototype.S;D.prototype.setMinResolution=D.prototype.U;D.prototype.setOpacity=D.prototype.p;D.prototype.setSaturation=D.prototype.ca;D.prototype.setVisible=D.prototype.da;D.prototype.bindTo=D.prototype.K;D.prototype.get=D.prototype.get;D.prototype.getKeys=D.prototype.G;D.prototype.getProperties=D.prototype.I;D.prototype.set=D.prototype.set;D.prototype.setProperties=D.prototype.C;D.prototype.unbind=D.prototype.L;D.prototype.unbindAll=D.prototype.M;D.prototype.changed=D.prototype.l;D.prototype.getRevision=D.prototype.u;D.prototype.on=D.prototype.s;D.prototype.once=D.prototype.v;D.prototype.un=D.prototype.t;D.prototype.unByKey=D.prototype.A;J.prototype.setSource=J.prototype.fa;J.prototype.getBrightness=J.prototype.d;J.prototype.getContrast=J.prototype.f;J.prototype.getHue=J.prototype.e;J.prototype.getExtent=J.prototype.J;J.prototype.getMaxResolution=J.prototype.g;J.prototype.getMinResolution=J.prototype.i;J.prototype.getOpacity=J.prototype.q;J.prototype.getSaturation=J.prototype.k;J.prototype.getVisible=J.prototype.b;J.prototype.setBrightness=J.prototype.D;J.prototype.setContrast=J.prototype.H;J.prototype.setHue=J.prototype.N;J.prototype.setExtent=J.prototype.o;J.prototype.setMaxResolution=J.prototype.S;J.prototype.setMinResolution=J.prototype.U;J.prototype.setOpacity=J.prototype.p;J.prototype.setSaturation=J.prototype.ca;J.prototype.setVisible=J.prototype.da;J.prototype.bindTo=J.prototype.K;J.prototype.get=J.prototype.get;J.prototype.getKeys=J.prototype.G;J.prototype.getProperties=J.prototype.I;J.prototype.set=J.prototype.set;J.prototype.setProperties=J.prototype.C;J.prototype.unbind=J.prototype.L;J.prototype.unbindAll=J.prototype.M;J.prototype.changed=J.prototype.l;J.prototype.getRevision=J.prototype.u;J.prototype.on=J.prototype.s;J.prototype.once=J.prototype.v;J.prototype.un=J.prototype.t;J.prototype.unByKey=J.prototype.A;Y.prototype.getSource=Y.prototype.a;Y.prototype.getStyle=Y.prototype.$e;Y.prototype.getStyleFunction=Y.prototype.cf;Y.prototype.setStyle=Y.prototype.ka;Y.prototype.setSource=Y.prototype.fa;Y.prototype.getBrightness=Y.prototype.d;Y.prototype.getContrast=Y.prototype.f;Y.prototype.getHue=Y.prototype.e;Y.prototype.getExtent=Y.prototype.J;Y.prototype.getMaxResolution=Y.prototype.g;Y.prototype.getMinResolution=Y.prototype.i;Y.prototype.getOpacity=Y.prototype.q;Y.prototype.getSaturation=Y.prototype.k;Y.prototype.getVisible=Y.prototype.b;Y.prototype.setBrightness=Y.prototype.D;Y.prototype.setContrast=Y.prototype.H;Y.prototype.setHue=Y.prototype.N;Y.prototype.setExtent=Y.prototype.o;Y.prototype.setMaxResolution=Y.prototype.S;Y.prototype.setMinResolution=Y.prototype.U;Y.prototype.setOpacity=Y.prototype.p;Y.prototype.setSaturation=Y.prototype.ca;Y.prototype.setVisible=Y.prototype.da;Y.prototype.bindTo=Y.prototype.K;Y.prototype.get=Y.prototype.get;Y.prototype.getKeys=Y.prototype.G;Y.prototype.getProperties=Y.prototype.I;Y.prototype.set=Y.prototype.set;Y.prototype.setProperties=Y.prototype.C;Y.prototype.unbind=Y.prototype.L;Y.prototype.unbindAll=Y.prototype.M;Y.prototype.changed=Y.prototype.l;Y.prototype.getRevision=Y.prototype.u;Y.prototype.on=Y.prototype.s;Y.prototype.once=Y.prototype.v;Y.prototype.un=Y.prototype.t;Y.prototype.unByKey=Y.prototype.A;H.prototype.setSource=H.prototype.fa;H.prototype.getBrightness=H.prototype.d;H.prototype.getContrast=H.prototype.f;H.prototype.getHue=H.prototype.e;H.prototype.getExtent=H.prototype.J;H.prototype.getMaxResolution=H.prototype.g;H.prototype.getMinResolution=H.prototype.i;H.prototype.getOpacity=H.prototype.q;H.prototype.getSaturation=H.prototype.k;H.prototype.getVisible=H.prototype.b;H.prototype.setBrightness=H.prototype.D;H.prototype.setContrast=H.prototype.H;H.prototype.setHue=H.prototype.N;H.prototype.setExtent=H.prototype.o;H.prototype.setMaxResolution=H.prototype.S;H.prototype.setMinResolution=H.prototype.U;H.prototype.setOpacity=H.prototype.p;H.prototype.setSaturation=H.prototype.ca;H.prototype.setVisible=H.prototype.da;H.prototype.bindTo=H.prototype.K;H.prototype.get=H.prototype.get;H.prototype.getKeys=H.prototype.G;H.prototype.getProperties=H.prototype.I;H.prototype.set=H.prototype.set;H.prototype.setProperties=H.prototype.C;H.prototype.unbind=H.prototype.L;H.prototype.unbindAll=H.prototype.M;H.prototype.changed=H.prototype.l;H.prototype.getRevision=H.prototype.u;H.prototype.on=H.prototype.s;H.prototype.once=H.prototype.v;H.prototype.un=H.prototype.t;H.prototype.unByKey=H.prototype.A;G.prototype.getBrightness=G.prototype.d;G.prototype.getContrast=G.prototype.f;G.prototype.getHue=G.prototype.e;G.prototype.getExtent=G.prototype.J;G.prototype.getMaxResolution=G.prototype.g;G.prototype.getMinResolution=G.prototype.i;G.prototype.getOpacity=G.prototype.q;G.prototype.getSaturation=G.prototype.k;G.prototype.getVisible=G.prototype.b;G.prototype.setBrightness=G.prototype.D;G.prototype.setContrast=G.prototype.H;G.prototype.setHue=G.prototype.N;G.prototype.setExtent=G.prototype.o;G.prototype.setMaxResolution=G.prototype.S;G.prototype.setMinResolution=G.prototype.U;G.prototype.setOpacity=G.prototype.p;G.prototype.setSaturation=G.prototype.ca;G.prototype.setVisible=G.prototype.da;G.prototype.bindTo=G.prototype.K;G.prototype.get=G.prototype.get;G.prototype.getKeys=G.prototype.G;G.prototype.getProperties=G.prototype.I;G.prototype.set=G.prototype.set;G.prototype.setProperties=G.prototype.C;G.prototype.unbind=G.prototype.L;G.prototype.unbindAll=G.prototype.M;G.prototype.changed=G.prototype.l;G.prototype.getRevision=G.prototype.u;G.prototype.on=G.prototype.s;G.prototype.once=G.prototype.v;G.prototype.un=G.prototype.t;G.prototype.unByKey=G.prototype.A;I.prototype.setSource=I.prototype.fa;I.prototype.getBrightness=I.prototype.d;I.prototype.getContrast=I.prototype.f;I.prototype.getHue=I.prototype.e;I.prototype.getExtent=I.prototype.J;I.prototype.getMaxResolution=I.prototype.g;I.prototype.getMinResolution=I.prototype.i;I.prototype.getOpacity=I.prototype.q;I.prototype.getSaturation=I.prototype.k;I.prototype.getVisible=I.prototype.b;I.prototype.setBrightness=I.prototype.D;I.prototype.setContrast=I.prototype.H;I.prototype.setHue=I.prototype.N;I.prototype.setExtent=I.prototype.o;I.prototype.setMaxResolution=I.prototype.S;I.prototype.setMinResolution=I.prototype.U;I.prototype.setOpacity=I.prototype.p;I.prototype.setSaturation=I.prototype.ca;I.prototype.setVisible=I.prototype.da;I.prototype.bindTo=I.prototype.K;I.prototype.get=I.prototype.get;I.prototype.getKeys=I.prototype.G;I.prototype.getProperties=I.prototype.I;I.prototype.set=I.prototype.set;I.prototype.setProperties=I.prototype.C;I.prototype.unbind=I.prototype.L;I.prototype.unbindAll=I.prototype.M;I.prototype.changed=I.prototype.l;I.prototype.getRevision=I.prototype.u;I.prototype.on=I.prototype.s;I.prototype.once=I.prototype.v;I.prototype.un=I.prototype.t;I.prototype.unByKey=I.prototype.A;Rj.prototype.bindTo=Rj.prototype.K;Rj.prototype.get=Rj.prototype.get;Rj.prototype.getKeys=Rj.prototype.G;Rj.prototype.getProperties=Rj.prototype.I;Rj.prototype.set=Rj.prototype.set;Rj.prototype.setProperties=Rj.prototype.C;Rj.prototype.unbind=Rj.prototype.L;Rj.prototype.unbindAll=Rj.prototype.M;Rj.prototype.changed=Rj.prototype.l;Rj.prototype.getRevision=Rj.prototype.u;Rj.prototype.on=Rj.prototype.s;Rj.prototype.once=Rj.prototype.v;Rj.prototype.un=Rj.prototype.t;Rj.prototype.unByKey=Rj.prototype.A;Vj.prototype.getActive=Vj.prototype.b;Vj.prototype.setActive=Vj.prototype.d;Vj.prototype.bindTo=Vj.prototype.K;Vj.prototype.get=Vj.prototype.get;Vj.prototype.getKeys=Vj.prototype.G;Vj.prototype.getProperties=Vj.prototype.I;Vj.prototype.set=Vj.prototype.set;Vj.prototype.setProperties=Vj.prototype.C;Vj.prototype.unbind=Vj.prototype.L;Vj.prototype.unbindAll=Vj.prototype.M;Vj.prototype.changed=Vj.prototype.l;Vj.prototype.getRevision=Vj.prototype.u;Vj.prototype.on=Vj.prototype.s;Vj.prototype.once=Vj.prototype.v;Vj.prototype.un=Vj.prototype.t;Vj.prototype.unByKey=Vj.prototype.A;Zw.prototype.getActive=Zw.prototype.b;Zw.prototype.setActive=Zw.prototype.d;Zw.prototype.bindTo=Zw.prototype.K;Zw.prototype.get=Zw.prototype.get;Zw.prototype.getKeys=Zw.prototype.G;Zw.prototype.getProperties=Zw.prototype.I;Zw.prototype.set=Zw.prototype.set;Zw.prototype.setProperties=Zw.prototype.C;Zw.prototype.unbind=Zw.prototype.L;Zw.prototype.unbindAll=Zw.prototype.M;Zw.prototype.changed=Zw.prototype.l;Zw.prototype.getRevision=Zw.prototype.u;Zw.prototype.on=Zw.prototype.s;Zw.prototype.once=Zw.prototype.v;Zw.prototype.un=Zw.prototype.t;Zw.prototype.unByKey=Zw.prototype.A;ek.prototype.getActive=ek.prototype.b;ek.prototype.setActive=ek.prototype.d;ek.prototype.bindTo=ek.prototype.K;ek.prototype.get=ek.prototype.get;ek.prototype.getKeys=ek.prototype.G;ek.prototype.getProperties=ek.prototype.I;ek.prototype.set=ek.prototype.set;ek.prototype.setProperties=ek.prototype.C;ek.prototype.unbind=ek.prototype.L;ek.prototype.unbindAll=ek.prototype.M;ek.prototype.changed=ek.prototype.l;ek.prototype.getRevision=ek.prototype.u;ek.prototype.on=ek.prototype.s;ek.prototype.once=ek.prototype.v;ek.prototype.un=ek.prototype.t;ek.prototype.unByKey=ek.prototype.A;il.prototype.getActive=il.prototype.b;il.prototype.setActive=il.prototype.d;il.prototype.bindTo=il.prototype.K;il.prototype.get=il.prototype.get;il.prototype.getKeys=il.prototype.G;il.prototype.getProperties=il.prototype.I;il.prototype.set=il.prototype.set;il.prototype.setProperties=il.prototype.C;il.prototype.unbind=il.prototype.L;il.prototype.unbindAll=il.prototype.M;il.prototype.changed=il.prototype.l;il.prototype.getRevision=il.prototype.u;il.prototype.on=il.prototype.s;il.prototype.once=il.prototype.v;il.prototype.un=il.prototype.t;il.prototype.unByKey=il.prototype.A;hk.prototype.getActive=hk.prototype.b;hk.prototype.setActive=hk.prototype.d;hk.prototype.bindTo=hk.prototype.K;hk.prototype.get=hk.prototype.get;hk.prototype.getKeys=hk.prototype.G;hk.prototype.getProperties=hk.prototype.I;hk.prototype.set=hk.prototype.set;hk.prototype.setProperties=hk.prototype.C;hk.prototype.unbind=hk.prototype.L;hk.prototype.unbindAll=hk.prototype.M;hk.prototype.changed=hk.prototype.l;hk.prototype.getRevision=hk.prototype.u;hk.prototype.on=hk.prototype.s;hk.prototype.once=hk.prototype.v;hk.prototype.un=hk.prototype.t;hk.prototype.unByKey=hk.prototype.A;cx.prototype.getActive=cx.prototype.b;cx.prototype.setActive=cx.prototype.d;cx.prototype.bindTo=cx.prototype.K;cx.prototype.get=cx.prototype.get;cx.prototype.getKeys=cx.prototype.G;cx.prototype.getProperties=cx.prototype.I;cx.prototype.set=cx.prototype.set;cx.prototype.setProperties=cx.prototype.C;cx.prototype.unbind=cx.prototype.L;cx.prototype.unbindAll=cx.prototype.M;cx.prototype.changed=cx.prototype.l;cx.prototype.getRevision=cx.prototype.u;cx.prototype.on=cx.prototype.s;cx.prototype.once=cx.prototype.v;cx.prototype.un=cx.prototype.t;cx.prototype.unByKey=cx.prototype.A;lk.prototype.getActive=lk.prototype.b;lk.prototype.setActive=lk.prototype.d;lk.prototype.bindTo=lk.prototype.K;lk.prototype.get=lk.prototype.get;lk.prototype.getKeys=lk.prototype.G;lk.prototype.getProperties=lk.prototype.I;lk.prototype.set=lk.prototype.set;lk.prototype.setProperties=lk.prototype.C;lk.prototype.unbind=lk.prototype.L;lk.prototype.unbindAll=lk.prototype.M;lk.prototype.changed=lk.prototype.l;lk.prototype.getRevision=lk.prototype.u;lk.prototype.on=lk.prototype.s;lk.prototype.once=lk.prototype.v;lk.prototype.un=lk.prototype.t;lk.prototype.unByKey=lk.prototype.A;Bl.prototype.getGeometry=Bl.prototype.R;Bl.prototype.getActive=Bl.prototype.b;Bl.prototype.setActive=Bl.prototype.d;Bl.prototype.bindTo=Bl.prototype.K;Bl.prototype.get=Bl.prototype.get;Bl.prototype.getKeys=Bl.prototype.G;Bl.prototype.getProperties=Bl.prototype.I;Bl.prototype.set=Bl.prototype.set;Bl.prototype.setProperties=Bl.prototype.C;Bl.prototype.unbind=Bl.prototype.L;Bl.prototype.unbindAll=Bl.prototype.M;Bl.prototype.changed=Bl.prototype.l;Bl.prototype.getRevision=Bl.prototype.u;Bl.prototype.on=Bl.prototype.s;Bl.prototype.once=Bl.prototype.v;Bl.prototype.un=Bl.prototype.t;Bl.prototype.unByKey=Bl.prototype.A;hx.prototype.getActive=hx.prototype.b;hx.prototype.setActive=hx.prototype.d;hx.prototype.bindTo=hx.prototype.K;hx.prototype.get=hx.prototype.get;hx.prototype.getKeys=hx.prototype.G;hx.prototype.getProperties=hx.prototype.I;hx.prototype.set=hx.prototype.set;hx.prototype.setProperties=hx.prototype.C;hx.prototype.unbind=hx.prototype.L;hx.prototype.unbindAll=hx.prototype.M;hx.prototype.changed=hx.prototype.l;hx.prototype.getRevision=hx.prototype.u;hx.prototype.on=hx.prototype.s;hx.prototype.once=hx.prototype.v;hx.prototype.un=hx.prototype.t;hx.prototype.unByKey=hx.prototype.A;Cl.prototype.getActive=Cl.prototype.b;Cl.prototype.setActive=Cl.prototype.d;Cl.prototype.bindTo=Cl.prototype.K;Cl.prototype.get=Cl.prototype.get;Cl.prototype.getKeys=Cl.prototype.G;Cl.prototype.getProperties=Cl.prototype.I;Cl.prototype.set=Cl.prototype.set;Cl.prototype.setProperties=Cl.prototype.C;Cl.prototype.unbind=Cl.prototype.L;Cl.prototype.unbindAll=Cl.prototype.M;Cl.prototype.changed=Cl.prototype.l;Cl.prototype.getRevision=Cl.prototype.u;Cl.prototype.on=Cl.prototype.s;Cl.prototype.once=Cl.prototype.v;Cl.prototype.un=Cl.prototype.t;Cl.prototype.unByKey=Cl.prototype.A;El.prototype.getActive=El.prototype.b;El.prototype.setActive=El.prototype.d;El.prototype.bindTo=El.prototype.K;El.prototype.get=El.prototype.get;El.prototype.getKeys=El.prototype.G;El.prototype.getProperties=El.prototype.I;El.prototype.set=El.prototype.set;El.prototype.setProperties=El.prototype.C;El.prototype.unbind=El.prototype.L;El.prototype.unbindAll=El.prototype.M;El.prototype.changed=El.prototype.l;El.prototype.getRevision=El.prototype.u;El.prototype.on=El.prototype.s;El.prototype.once=El.prototype.v;El.prototype.un=El.prototype.t;El.prototype.unByKey=El.prototype.A;vx.prototype.getActive=vx.prototype.b;vx.prototype.setActive=vx.prototype.d;vx.prototype.bindTo=vx.prototype.K;vx.prototype.get=vx.prototype.get;vx.prototype.getKeys=vx.prototype.G;vx.prototype.getProperties=vx.prototype.I;vx.prototype.set=vx.prototype.set;vx.prototype.setProperties=vx.prototype.C;vx.prototype.unbind=vx.prototype.L;vx.prototype.unbindAll=vx.prototype.M;vx.prototype.changed=vx.prototype.l;vx.prototype.getRevision=vx.prototype.u;vx.prototype.on=vx.prototype.s;vx.prototype.once=vx.prototype.v;vx.prototype.un=vx.prototype.t;vx.prototype.unByKey=vx.prototype.A;Gl.prototype.getActive=Gl.prototype.b;Gl.prototype.setActive=Gl.prototype.d;Gl.prototype.bindTo=Gl.prototype.K;Gl.prototype.get=Gl.prototype.get;Gl.prototype.getKeys=Gl.prototype.G;Gl.prototype.getProperties=Gl.prototype.I;Gl.prototype.set=Gl.prototype.set;Gl.prototype.setProperties=Gl.prototype.C;Gl.prototype.unbind=Gl.prototype.L;Gl.prototype.unbindAll=Gl.prototype.M;Gl.prototype.changed=Gl.prototype.l;Gl.prototype.getRevision=Gl.prototype.u;Gl.prototype.on=Gl.prototype.s;Gl.prototype.once=Gl.prototype.v;Gl.prototype.un=Gl.prototype.t;Gl.prototype.unByKey=Gl.prototype.A;Il.prototype.getActive=Il.prototype.b;Il.prototype.setActive=Il.prototype.d;Il.prototype.bindTo=Il.prototype.K;Il.prototype.get=Il.prototype.get;Il.prototype.getKeys=Il.prototype.G;Il.prototype.getProperties=Il.prototype.I;Il.prototype.set=Il.prototype.set;Il.prototype.setProperties=Il.prototype.C;Il.prototype.unbind=Il.prototype.L;Il.prototype.unbindAll=Il.prototype.M;Il.prototype.changed=Il.prototype.l;Il.prototype.getRevision=Il.prototype.u;Il.prototype.on=Il.prototype.s;Il.prototype.once=Il.prototype.v;Il.prototype.un=Il.prototype.t;Il.prototype.unByKey=Il.prototype.A;Ml.prototype.getActive=Ml.prototype.b;Ml.prototype.setActive=Ml.prototype.d;Ml.prototype.bindTo=Ml.prototype.K;Ml.prototype.get=Ml.prototype.get;Ml.prototype.getKeys=Ml.prototype.G;Ml.prototype.getProperties=Ml.prototype.I;Ml.prototype.set=Ml.prototype.set;Ml.prototype.setProperties=Ml.prototype.C;Ml.prototype.unbind=Ml.prototype.L;Ml.prototype.unbindAll=Ml.prototype.M;Ml.prototype.changed=Ml.prototype.l;Ml.prototype.getRevision=Ml.prototype.u;Ml.prototype.on=Ml.prototype.s;Ml.prototype.once=Ml.prototype.v;Ml.prototype.un=Ml.prototype.t;Ml.prototype.unByKey=Ml.prototype.A;Gx.prototype.getActive=Gx.prototype.b;Gx.prototype.setActive=Gx.prototype.d;Gx.prototype.bindTo=Gx.prototype.K;Gx.prototype.get=Gx.prototype.get;Gx.prototype.getKeys=Gx.prototype.G;Gx.prototype.getProperties=Gx.prototype.I;Gx.prototype.set=Gx.prototype.set;Gx.prototype.setProperties=Gx.prototype.C;Gx.prototype.unbind=Gx.prototype.L;Gx.prototype.unbindAll=Gx.prototype.M;Gx.prototype.changed=Gx.prototype.l;Gx.prototype.getRevision=Gx.prototype.u;Gx.prototype.on=Gx.prototype.s;Gx.prototype.once=Gx.prototype.v;Gx.prototype.un=Gx.prototype.t;Gx.prototype.unByKey=Gx.prototype.A;pk.prototype.changed=pk.prototype.l;pk.prototype.getRevision=pk.prototype.u;pk.prototype.on=pk.prototype.s;pk.prototype.once=pk.prototype.v;pk.prototype.un=pk.prototype.t;pk.prototype.unByKey=pk.prototype.A;rk.prototype.clone=rk.prototype.clone;rk.prototype.getClosestPoint=rk.prototype.f;rk.prototype.getExtent=rk.prototype.J;rk.prototype.getType=rk.prototype.O;rk.prototype.intersectsExtent=rk.prototype.ja;rk.prototype.transform=rk.prototype.transform;rk.prototype.changed=rk.prototype.l;rk.prototype.getRevision=rk.prototype.u;rk.prototype.on=rk.prototype.s;rk.prototype.once=rk.prototype.v;rk.prototype.un=rk.prototype.t;rk.prototype.unByKey=rk.prototype.A;Km.prototype.getFirstCoordinate=Km.prototype.yb;Km.prototype.getLastCoordinate=Km.prototype.zb;Km.prototype.getLayout=Km.prototype.Ab;Km.prototype.applyTransform=Km.prototype.ra;Km.prototype.translate=Km.prototype.Ia;Km.prototype.getClosestPoint=Km.prototype.f;Km.prototype.getExtent=Km.prototype.J;Km.prototype.intersectsExtent=Km.prototype.ja;Km.prototype.changed=Km.prototype.l;Km.prototype.getRevision=Km.prototype.u;Km.prototype.on=Km.prototype.s;Km.prototype.once=Km.prototype.v;Km.prototype.un=Km.prototype.t;Km.prototype.unByKey=Km.prototype.A;Mm.prototype.getClosestPoint=Mm.prototype.f;Mm.prototype.getExtent=Mm.prototype.J;Mm.prototype.transform=Mm.prototype.transform;Mm.prototype.changed=Mm.prototype.l;Mm.prototype.getRevision=Mm.prototype.u;Mm.prototype.on=Mm.prototype.s;Mm.prototype.once=Mm.prototype.v;Mm.prototype.un=Mm.prototype.t;Mm.prototype.unByKey=Mm.prototype.A;Lk.prototype.getFirstCoordinate=Lk.prototype.yb;Lk.prototype.getLastCoordinate=Lk.prototype.zb;Lk.prototype.getLayout=Lk.prototype.Ab;Lk.prototype.applyTransform=Lk.prototype.ra;Lk.prototype.translate=Lk.prototype.Ia;Lk.prototype.getClosestPoint=Lk.prototype.f;Lk.prototype.getExtent=Lk.prototype.J;Lk.prototype.intersectsExtent=Lk.prototype.ja;Lk.prototype.transform=Lk.prototype.transform;Lk.prototype.changed=Lk.prototype.l;Lk.prototype.getRevision=Lk.prototype.u;Lk.prototype.on=Lk.prototype.s;Lk.prototype.once=Lk.prototype.v;Lk.prototype.un=Lk.prototype.t;Lk.prototype.unByKey=Lk.prototype.A;Tm.prototype.getFirstCoordinate=Tm.prototype.yb;Tm.prototype.getLastCoordinate=Tm.prototype.zb;Tm.prototype.getLayout=Tm.prototype.Ab;Tm.prototype.applyTransform=Tm.prototype.ra;Tm.prototype.translate=Tm.prototype.Ia;Tm.prototype.getClosestPoint=Tm.prototype.f;Tm.prototype.getExtent=Tm.prototype.J;Tm.prototype.transform=Tm.prototype.transform;Tm.prototype.changed=Tm.prototype.l;Tm.prototype.getRevision=Tm.prototype.u;Tm.prototype.on=Tm.prototype.s;Tm.prototype.once=Tm.prototype.v;Tm.prototype.un=Tm.prototype.t;Tm.prototype.unByKey=Tm.prototype.A;Vm.prototype.getFirstCoordinate=Vm.prototype.yb;Vm.prototype.getLastCoordinate=Vm.prototype.zb;Vm.prototype.getLayout=Vm.prototype.Ab;Vm.prototype.applyTransform=Vm.prototype.ra;Vm.prototype.translate=Vm.prototype.Ia;Vm.prototype.getClosestPoint=Vm.prototype.f;Vm.prototype.getExtent=Vm.prototype.J;Vm.prototype.transform=Vm.prototype.transform;Vm.prototype.changed=Vm.prototype.l;Vm.prototype.getRevision=Vm.prototype.u;Vm.prototype.on=Vm.prototype.s;Vm.prototype.once=Vm.prototype.v;Vm.prototype.un=Vm.prototype.t;Vm.prototype.unByKey=Vm.prototype.A;Ym.prototype.getFirstCoordinate=Ym.prototype.yb;Ym.prototype.getLastCoordinate=Ym.prototype.zb;Ym.prototype.getLayout=Ym.prototype.Ab;Ym.prototype.applyTransform=Ym.prototype.ra;Ym.prototype.translate=Ym.prototype.Ia;Ym.prototype.getClosestPoint=Ym.prototype.f;Ym.prototype.getExtent=Ym.prototype.J;Ym.prototype.transform=Ym.prototype.transform;Ym.prototype.changed=Ym.prototype.l;Ym.prototype.getRevision=Ym.prototype.u;Ym.prototype.on=Ym.prototype.s;Ym.prototype.once=Ym.prototype.v;Ym.prototype.un=Ym.prototype.t;Ym.prototype.unByKey=Ym.prototype.A;Zm.prototype.getFirstCoordinate=Zm.prototype.yb;Zm.prototype.getLastCoordinate=Zm.prototype.zb;Zm.prototype.getLayout=Zm.prototype.Ab;Zm.prototype.applyTransform=Zm.prototype.ra;Zm.prototype.translate=Zm.prototype.Ia;Zm.prototype.getClosestPoint=Zm.prototype.f;Zm.prototype.getExtent=Zm.prototype.J;Zm.prototype.transform=Zm.prototype.transform;Zm.prototype.changed=Zm.prototype.l;Zm.prototype.getRevision=Zm.prototype.u;Zm.prototype.on=Zm.prototype.s;Zm.prototype.once=Zm.prototype.v;Zm.prototype.un=Zm.prototype.t;Zm.prototype.unByKey=Zm.prototype.A;Nk.prototype.getFirstCoordinate=Nk.prototype.yb;Nk.prototype.getLastCoordinate=Nk.prototype.zb;Nk.prototype.getLayout=Nk.prototype.Ab;Nk.prototype.applyTransform=Nk.prototype.ra;Nk.prototype.translate=Nk.prototype.Ia;Nk.prototype.getClosestPoint=Nk.prototype.f;Nk.prototype.getExtent=Nk.prototype.J;Nk.prototype.transform=Nk.prototype.transform;Nk.prototype.changed=Nk.prototype.l;Nk.prototype.getRevision=Nk.prototype.u;Nk.prototype.on=Nk.prototype.s;Nk.prototype.once=Nk.prototype.v;Nk.prototype.un=Nk.prototype.t;Nk.prototype.unByKey=Nk.prototype.A;F.prototype.getFirstCoordinate=F.prototype.yb;F.prototype.getLastCoordinate=F.prototype.zb;F.prototype.getLayout=F.prototype.Ab;F.prototype.applyTransform=F.prototype.ra;F.prototype.translate=F.prototype.Ia;F.prototype.getClosestPoint=F.prototype.f;F.prototype.getExtent=F.prototype.J;F.prototype.transform=F.prototype.transform;F.prototype.changed=F.prototype.l;F.prototype.getRevision=F.prototype.u;F.prototype.on=F.prototype.s;F.prototype.once=F.prototype.v;F.prototype.un=F.prototype.t;F.prototype.unByKey=F.prototype.A;$q.prototype.readFeatures=$q.prototype.ma;Rq.prototype.readFeatures=Rq.prototype.ma;Rq.prototype.readFeatures=Rq.prototype.ma;xp.prototype.bindTo=xp.prototype.K;xp.prototype.get=xp.prototype.get;xp.prototype.getKeys=xp.prototype.G;xp.prototype.getProperties=xp.prototype.I;xp.prototype.set=xp.prototype.set;xp.prototype.setProperties=xp.prototype.C;xp.prototype.unbind=xp.prototype.L;xp.prototype.unbindAll=xp.prototype.M;xp.prototype.changed=xp.prototype.l;xp.prototype.getRevision=xp.prototype.u;xp.prototype.on=xp.prototype.s;xp.prototype.once=xp.prototype.v;xp.prototype.un=xp.prototype.t;xp.prototype.unByKey=xp.prototype.A;Ug.prototype.bindTo=Ug.prototype.K;Ug.prototype.get=Ug.prototype.get;Ug.prototype.getKeys=Ug.prototype.G;Ug.prototype.getProperties=Ug.prototype.I;Ug.prototype.set=Ug.prototype.set;Ug.prototype.setProperties=Ug.prototype.C;Ug.prototype.unbind=Ug.prototype.L;Ug.prototype.unbindAll=Ug.prototype.M;Ug.prototype.changed=Ug.prototype.l;Ug.prototype.getRevision=Ug.prototype.u;Ug.prototype.on=Ug.prototype.s;Ug.prototype.once=Ug.prototype.v;Ug.prototype.un=Ug.prototype.t;Ug.prototype.unByKey=Ug.prototype.A;th.prototype.getMap=th.prototype.f;th.prototype.setMap=th.prototype.setMap;th.prototype.setTarget=th.prototype.b;th.prototype.bindTo=th.prototype.K;th.prototype.get=th.prototype.get;th.prototype.getKeys=th.prototype.G;th.prototype.getProperties=th.prototype.I;th.prototype.set=th.prototype.set;th.prototype.setProperties=th.prototype.C;th.prototype.unbind=th.prototype.L;th.prototype.unbindAll=th.prototype.M;th.prototype.changed=th.prototype.l;th.prototype.getRevision=th.prototype.u;th.prototype.on=th.prototype.s;th.prototype.once=th.prototype.v;th.prototype.un=th.prototype.t;th.prototype.unByKey=th.prototype.A;Eh.prototype.getMap=Eh.prototype.f;Eh.prototype.setMap=Eh.prototype.setMap;Eh.prototype.setTarget=Eh.prototype.b;Eh.prototype.bindTo=Eh.prototype.K;Eh.prototype.get=Eh.prototype.get;Eh.prototype.getKeys=Eh.prototype.G;Eh.prototype.getProperties=Eh.prototype.I;Eh.prototype.set=Eh.prototype.set;Eh.prototype.setProperties=Eh.prototype.C;Eh.prototype.unbind=Eh.prototype.L;Eh.prototype.unbindAll=Eh.prototype.M;Eh.prototype.changed=Eh.prototype.l;Eh.prototype.getRevision=Eh.prototype.u;Eh.prototype.on=Eh.prototype.s;Eh.prototype.once=Eh.prototype.v;Eh.prototype.un=Eh.prototype.t;Eh.prototype.unByKey=Eh.prototype.A;Fh.prototype.getMap=Fh.prototype.f;Fh.prototype.setTarget=Fh.prototype.b;Fh.prototype.bindTo=Fh.prototype.K;Fh.prototype.get=Fh.prototype.get;Fh.prototype.getKeys=Fh.prototype.G;Fh.prototype.getProperties=Fh.prototype.I;Fh.prototype.set=Fh.prototype.set;Fh.prototype.setProperties=Fh.prototype.C;Fh.prototype.unbind=Fh.prototype.L;Fh.prototype.unbindAll=Fh.prototype.M;Fh.prototype.changed=Fh.prototype.l;Fh.prototype.getRevision=Fh.prototype.u;Fh.prototype.on=Fh.prototype.s;Fh.prototype.once=Fh.prototype.v;Fh.prototype.un=Fh.prototype.t;Fh.prototype.unByKey=Fh.prototype.A;Wo.prototype.getMap=Wo.prototype.f;Wo.prototype.setTarget=Wo.prototype.b;Wo.prototype.bindTo=Wo.prototype.K;Wo.prototype.get=Wo.prototype.get;Wo.prototype.getKeys=Wo.prototype.G;Wo.prototype.getProperties=Wo.prototype.I;Wo.prototype.set=Wo.prototype.set;Wo.prototype.setProperties=Wo.prototype.C;Wo.prototype.unbind=Wo.prototype.L;Wo.prototype.unbindAll=Wo.prototype.M;Wo.prototype.changed=Wo.prototype.l;Wo.prototype.getRevision=Wo.prototype.u;Wo.prototype.on=Wo.prototype.s;Wo.prototype.once=Wo.prototype.v;Wo.prototype.un=Wo.prototype.t;Wo.prototype.unByKey=Wo.prototype.A;wh.prototype.getMap=wh.prototype.f;wh.prototype.setMap=wh.prototype.setMap;wh.prototype.setTarget=wh.prototype.b;wh.prototype.bindTo=wh.prototype.K;wh.prototype.get=wh.prototype.get;wh.prototype.getKeys=wh.prototype.G;wh.prototype.getProperties=wh.prototype.I;wh.prototype.set=wh.prototype.set;wh.prototype.setProperties=wh.prototype.C;wh.prototype.unbind=wh.prototype.L;wh.prototype.unbindAll=wh.prototype.M;wh.prototype.changed=wh.prototype.l;wh.prototype.getRevision=wh.prototype.u;wh.prototype.on=wh.prototype.s;wh.prototype.once=wh.prototype.v;wh.prototype.un=wh.prototype.t;wh.prototype.unByKey=wh.prototype.A;bp.prototype.getMap=bp.prototype.f;bp.prototype.setMap=bp.prototype.setMap;bp.prototype.setTarget=bp.prototype.b;bp.prototype.bindTo=bp.prototype.K;bp.prototype.get=bp.prototype.get;bp.prototype.getKeys=bp.prototype.G;bp.prototype.getProperties=bp.prototype.I;bp.prototype.set=bp.prototype.set;bp.prototype.setProperties=bp.prototype.C;bp.prototype.unbind=bp.prototype.L;bp.prototype.unbindAll=bp.prototype.M;bp.prototype.changed=bp.prototype.l;bp.prototype.getRevision=bp.prototype.u;bp.prototype.on=bp.prototype.s;bp.prototype.once=bp.prototype.v;bp.prototype.un=bp.prototype.t;bp.prototype.unByKey=bp.prototype.A;yh.prototype.getMap=yh.prototype.f;yh.prototype.setMap=yh.prototype.setMap;yh.prototype.setTarget=yh.prototype.b;yh.prototype.bindTo=yh.prototype.K;yh.prototype.get=yh.prototype.get;yh.prototype.getKeys=yh.prototype.G;yh.prototype.getProperties=yh.prototype.I;yh.prototype.set=yh.prototype.set;yh.prototype.setProperties=yh.prototype.C;yh.prototype.unbind=yh.prototype.L;yh.prototype.unbindAll=yh.prototype.M;yh.prototype.changed=yh.prototype.l;yh.prototype.getRevision=yh.prototype.u;yh.prototype.on=yh.prototype.s;yh.prototype.once=yh.prototype.v;yh.prototype.un=yh.prototype.t;yh.prototype.unByKey=yh.prototype.A;qp.prototype.getMap=qp.prototype.f;qp.prototype.setTarget=qp.prototype.b;qp.prototype.bindTo=qp.prototype.K;qp.prototype.get=qp.prototype.get;qp.prototype.getKeys=qp.prototype.G;qp.prototype.getProperties=qp.prototype.I;qp.prototype.set=qp.prototype.set;qp.prototype.setProperties=qp.prototype.C;qp.prototype.unbind=qp.prototype.L;qp.prototype.unbindAll=qp.prototype.M;qp.prototype.changed=qp.prototype.l;qp.prototype.getRevision=qp.prototype.u;qp.prototype.on=qp.prototype.s;qp.prototype.once=qp.prototype.v;qp.prototype.un=qp.prototype.t;qp.prototype.unByKey=qp.prototype.A;vp.prototype.getMap=vp.prototype.f;vp.prototype.setMap=vp.prototype.setMap;vp.prototype.setTarget=vp.prototype.b;vp.prototype.bindTo=vp.prototype.K;vp.prototype.get=vp.prototype.get;vp.prototype.getKeys=vp.prototype.G;vp.prototype.getProperties=vp.prototype.I;vp.prototype.set=vp.prototype.set;vp.prototype.setProperties=vp.prototype.C;vp.prototype.unbind=vp.prototype.L;vp.prototype.unbindAll=vp.prototype.M;vp.prototype.changed=vp.prototype.l;vp.prototype.getRevision=vp.prototype.u;vp.prototype.on=vp.prototype.s;vp.prototype.once=vp.prototype.v;vp.prototype.un=vp.prototype.t;vp.prototype.unByKey=vp.prototype.A;return OPENLAYERS.ol;}));(function(P,N){"object"===typeof module&&module.exports?(N["default"]=N,module.exports=P.document?N(P):N):"function"===typeof define&&define.amd?define("highcharts/highcharts",function(){return N(P)}):(P.Highcharts&&P.Highcharts.error(16,!0),P.Highcharts=N(P))})("undefined"!==typeof window?window:this,function(P){function N(c,n,A,D){c.hasOwnProperty(n)||(c[n]=D.apply(null,A))}var H={};N(H,"parts/Globals.js",[],function(){var c="undefined"!==typeof P?P:"undefined"!==typeof window?window:{},n=c.document,A=c.navigator&&c.navigator.userAgent||"",D=n&&n.createElementNS&&!!n.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,F=/(edge|msie|trident)/i.test(A)&&!c.opera,z=-1!==A.indexOf("Firefox"),u=-1!==A.indexOf("Chrome"),L=z&&4>parseInt(A.split("Firefox/")[1],10);return{product:"Highcharts",version:"7.2.0",deg2rad:2*Math.PI/360,doc:n,hasBidiBug:L,hasTouch:!!c.TouchEvent,isMS:F,isWebKit:-1!==A.indexOf("AppleWebKit"),isFirefox:z,isChrome:u,isSafari:!u&&-1!==A.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(A),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:D,win:c,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}});N(H,"parts/Utilities.js",[H["parts/Globals.js"]],function(c){function n(b,a){return parseInt(b,a||10)}function A(b){return"string"===typeof b}function D(b){b=Object.prototype.toString.call(b);return"[object Array]"===b||"[object Array Iterator]"===b}function F(b,a){return!!b&&"object"===typeof b&&(!a||!D(b))}function z(b){return F(b)&&"number"===typeof b.nodeType}function u(b){var a=b&&b.constructor;return!(!F(b,!0)||z(b)||!a||!a.name||"Object"===a.name)}function L(b){return"number"===typeof b&&!isNaN(b)&&Infinity>b&&-Infinity<b}function y(b){return"undefined"!==typeof b&&null!==b}function C(b,a,d){var f;A(a)?y(d)?b.setAttribute(a,d):b&&b.getAttribute&&((f=b.getAttribute(a))||"class"!==a||(f=b.getAttribute(a+"Name"))):x(a,function(a,d){b.setAttribute(d,a)});return f}function x(b,a,d){for(var f in b)Object.hasOwnProperty.call(b,f)&&a.call(d||b[f],b[f],f,b)}c.timers=[];var m=c.charts,p=c.doc,g=c.win;c.error=function(b,a,d){var f=L(b)?"Highcharts error #"+b+": www.highcharts.com/errors/"+b:b,e=function(){if(a)throw Error(f);g.console&&console.log(f)};d?c.fireEvent(d,"displayError",{code:b,message:f},e):e()};c.Fx=function(b,a,d){this.options=a;this.elem=b;this.prop=d};c.Fx.prototype={dSetter:function(){var b=this.paths[0],a=this.paths[1],d=[],f=this.now,e=b.length;if(1===f)d=this.toD;else if(e===a.length&&1>f)for(;e--;){var c=parseFloat(b[e]);d[e]=isNaN(c)?a[e]:f*parseFloat(""+(a[e]-c))+c}else d=a;this.elem.attr("d",d,null,!0)},update:function(){var b=this.elem,a=this.prop,d=this.now,f=this.options.step;if(this[a+"Setter"])this[a+"Setter"]();else b.attr?b.element&&b.attr(a,d,null,!0):b.style[a]=d+this.unit;f&&f.call(b,d,this)},run:function(b,a,d){var f=this,e=f.options,h=function(a){return h.stopped?!1:f.step(a)},r=g.requestAnimationFrame||function(a){setTimeout(a,13)},E=function(){for(var a=0;a<c.timers.length;a++)c.timers[a]()||c.timers.splice(a--,1);c.timers.length&&r(E)};b!==a||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=b,this.end=a,this.unit=d,this.now=this.start,this.pos=0,h.elem=this.elem,h.prop=this.prop,h()&&1===c.timers.push(h)&&r(E)):(delete e.curAnim[this.prop],e.complete&&0===Object.keys(e.curAnim).length&&e.complete.call(this.elem))},step:function(b){var a=+new Date,d=this.options,f=this.elem,e=d.complete,c=d.duration,r=d.curAnim;if(f.attr&&!f.element)b=!1;else if(b||a>=c+this.startTime){this.now=this.end;this.pos=1;this.update();var E=r[this.prop]=!0;x(r,function(a){!0!==a&&(E=!1)});E&&e&&e.call(f);b=!1}else this.pos=d.easing((a-this.startTime)/c),this.now=this.start+(this.end-this.start)*this.pos,this.update(),b=!0;return b},initPath:function(b,a,d){function f(a){for(t=a.length;t--;){var b="M"===a[t]||"L"===a[t];var d=/[a-zA-Z]/.test(a[t+3]);b&&d&&a.splice(t+1,0,a[t+1],a[t+2],a[t+1],a[t+2])}}function e(a,b){for(;a.length<J;){a[0]=b[J-a.length];var d=a.slice(0,v);[].splice.apply(a,[0,0].concat(d));B&&(d=a.slice(a.length-v),[].splice.apply(a,[a.length,0].concat(d)),t--)}a[0]="M"}function c(a,b){for(var d=(J-a.length)/v;0<d&&d--;)k=a.slice().splice(a.length/I-v,v*I),k[0]=b[J-v-d*v],q&&(k[v-6]=k[v-2],k[v-5]=k[v-1]),[].splice.apply(a,[a.length/I,0].concat(k)),B&&d--}a=a||"";var r=b.startX,E=b.endX,q=-1<a.indexOf("C"),v=q?7:3,k,t;a=a.split(" ");d=d.slice();var B=b.isArea,I=B?2:1;q&&(f(a),f(d));if(r&&E){for(t=0;t<r.length;t++)if(r[t]===E[0]){var w=t;break}else if(r[0]===E[E.length-r.length+t]){w=t;var l=!0;break}else if(r[r.length-1]===E[E.length-r.length+t]){w=r.length-t;break}"undefined"===typeof w&&(a=[])}if(a.length&&L(w)){var J=d.length+w*I*v;l?(e(a,d),c(d,a)):(e(d,a),c(a,d))}return[a,d]},fillSetter:function(){c.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,c.color(this.start).tweenTo(c.color(this.end),this.pos),null,!0)}};c.merge=function(){var b,a=arguments,d={},f=function(a,b){"object"!==typeof a&&(a={});x(b,function(d,e){!F(d,!0)||u(d)||z(d)?a[e]=b[e]:a[e]=f(a[e]||{},d)});return a};!0===a[0]&&(d=a[1],a=Array.prototype.slice.call(a,2));var e=a.length;for(b=0;b<e;b++)d=f(d,a[b]);return d};c.syncTimeout=function(b,a,d){if(a)return setTimeout(b,a,d);b.call(0,d)};c.clearTimeout=function(b){y(b)&&clearTimeout(b)};c.extend=function(b,a){var d;b||(b={});for(d in a)b[d]=a[d];return b};c.pick=function(){var b=arguments,a,d=b.length;for(a=0;a<d;a++){var f=b[a];if("undefined"!==typeof f&&null!==f)return f}};c.css=function(b,a){c.isMS&&!c.svg&&a&&"undefined"!==typeof a.opacity&&(a.filter="alpha(opacity="+100*a.opacity+")");c.extend(b.style,a)};c.createElement=function(b,a,d,f,e){b=p.createElement(b);var h=c.css;a&&c.extend(b,a);e&&h(b,{padding:"0",border:"none",margin:"0"});d&&h(b,d);f&&f.appendChild(b);return b};c.extendClass=function(b,a){var d=function(){};d.prototype=new b;c.extend(d.prototype,a);return d};c.pad=function(b,a,d){return Array((a||2)+1-String(b).replace("-","").length).join(d||"0")+b};c.relativeLength=function(b,a,d){return/%$/.test(b)?a*parseFloat(b)/100+(d||0):parseFloat(b)};c.wrap=function(b,a,d){var f=b[a];b[a]=function(){var a=Array.prototype.slice.call(arguments),b=arguments,c=this;c.proceed=function(){f.apply(c,arguments.length?arguments:b)};a.unshift(f);a=d.apply(this,a);c.proceed=null;return a}};c.datePropsToTimestamps=function(b){x(b,function(a,d){F(a)&&"function"===typeof a.getTime?b[d]=a.getTime():(F(a)||D(a))&&c.datePropsToTimestamps(a)})};c.formatSingle=function(b,a,d){var f=/\.([0-9])/,e=c.defaultOptions.lang;/f$/.test(b)?(d=(d=b.match(f))?d[1]:-1,null!==a&&(a=c.numberFormat(a,d,e.decimalPoint,-1<b.indexOf(",")?e.thousandsSep:""))):a=(d||c.time).dateFormat(b,a);return a};c.format=function(b,a,d){for(var f="{",e=!1,h,r,E,q,v=[],k;b;){f=b.indexOf(f);if(-1===f)break;h=b.slice(0,f);if(e){h=h.split(":");r=h.shift().split(".");q=r.length;k=a;for(E=0;E<q;E++)k&&(k=k[r[E]]);h.length&&(k=c.formatSingle(h.join(":"),k,d));v.push(k)}else v.push(h);b=b.slice(f+1);f=(e=!e)?"}":"{"}v.push(b);return v.join("")};c.getMagnitude=function(b){return Math.pow(10,Math.floor(Math.log(b)/Math.LN10))};c.normalizeTickInterval=function(b,a,d,f,e){var h=b;d=c.pick(d,1);var r=b/d;a||(a=e?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===f&&(1===d?a=a.filter(function(a){return 0===a%1}):.1>=d&&(a=[1/d])));for(f=0;f<a.length&&!(h=a[f],e&&h*d>=b||!e&&r<=(a[f]+(a[f+1]||a[f]))/2);f++);return h=c.correctFloat(h*d,-Math.round(Math.log(.001)/Math.LN10))};c.stableSort=function(b,a){var d=b.length,f,e;for(e=0;e<d;e++)b[e].safeI=e;b.sort(function(b,d){f=a(b,d);return 0===f?b.safeI-d.safeI:f});for(e=0;e<d;e++)delete b[e].safeI};c.arrayMin=function(b){for(var a=b.length,d=b[0];a--;)b[a]<d&&(d=b[a]);return d};c.arrayMax=function(b){for(var a=b.length,d=b[0];a--;)b[a]>d&&(d=b[a]);return d};c.destroyObjectProperties=function(b,a){x(b,function(d,f){d&&d!==a&&d.destroy&&d.destroy();delete b[f]})};c.discardElement=function(b){var a=c.garbageBin;a||(a=c.createElement("div"));b&&a.appendChild(b);a.innerHTML=""};c.correctFloat=function(b,a){return parseFloat(b.toPrecision(a||14))};c.setAnimation=function(b,a){a.renderer.globalAnimation=c.pick(b,a.options.chart.animation,!0)};c.animObject=function(b){return F(b)?c.merge(b):{duration:b?500:0}};c.timeUnits={millisecond:1,second:1E3,minute:6E4,hour:36E5,day:864E5,week:6048E5,month:24192E5,year:314496E5};c.numberFormat=function(b,a,d,f){b=+b||0;a=+a;var e=c.defaultOptions.lang,h=(b.toString().split(".")[1]||"").split("e")[0].length,r=b.toString().split("e");if(-1===a)a=Math.min(h,20);else if(!L(a))a=2;else if(a&&r[1]&&0>r[1]){var m=a+ +r[1];0<=m?(r[0]=(+r[0]).toExponential(m).split("e")[0],a=m):(r[0]=r[0].split(".")[0]||0,b=20>a?(r[0]*Math.pow(10,r[1])).toFixed(a):0,r[1]=0)}var q=(Math.abs(r[1]?r[0]:b)+Math.pow(10,-Math.max(a,h)-1)).toFixed(a);h=String(n(q));m=3<h.length?h.length%3:0;d=c.pick(d,e.decimalPoint);f=c.pick(f,e.thousandsSep);b=(0>b?"-":"")+(m?h.substr(0,m)+f:"");b+=h.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+f);a&&(b+=d+q.slice(-a));r[1]&&0!==+b&&(b+="e"+r[1]);return b};Math.easeInOutSine=function(b){return-.5*(Math.cos(Math.PI*b)-1)};c.getStyle=function(b,a,d){if("width"===a)return a=Math.min(b.offsetWidth,b.scrollWidth),d=b.getBoundingClientRect&&b.getBoundingClientRect().width,d<a&&d>=a-1&&(a=Math.floor(d)),Math.max(0,a-c.getStyle(b,"padding-left")-c.getStyle(b,"padding-right"));if("height"===a)return Math.max(0,Math.min(b.offsetHeight,b.scrollHeight)-c.getStyle(b,"padding-top")-c.getStyle(b,"padding-bottom"));g.getComputedStyle||c.error(27,!0);if(b=g.getComputedStyle(b,void 0))b=b.getPropertyValue(a),c.pick(d,"opacity"!==a)&&(b=n(b));return b};c.inArray=function(b,a,d){return a.indexOf(b,d)};c.find=Array.prototype.find?function(b,a){return b.find(a)}:function(b,a){var d,f=b.length;for(d=0;d<f;d++)if(a(b[d],d))return b[d]};c.keys=Object.keys;c.offset=function(b){var a=p.documentElement;b=b.parentElement||b.parentNode?b.getBoundingClientRect():{top:0,left:0};return{top:b.top+(g.pageYOffset||a.scrollTop)-(a.clientTop||0),left:b.left+(g.pageXOffset||a.scrollLeft)-(a.clientLeft||0)}};c.stop=function(b,a){for(var d=c.timers.length;d--;)c.timers[d].elem!==b||a&&a!==c.timers[d].prop||(c.timers[d].stopped=!0)};x({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(b,a){c[a]=function(a){return Array.prototype[b].apply(a,[].slice.call(arguments,1))}});c.addEvent=function(b,a,d,f){void 0===f&&(f={});var e=b.addEventListener||c.addEventListenerPolyfill;var h="function"===typeof b&&b.prototype?b.prototype.protoEvents=b.prototype.protoEvents||{}:b.hcEvents=b.hcEvents||{};c.Point&&b instanceof c.Point&&b.series&&b.series.chart&&(b.series.chart.runTrackerClick=!0);e&&e.call(b,a,d,!1);h[a]||(h[a]=[]);h[a].push({fn:d,order:"number"===typeof f.order?f.order:Infinity});h[a].sort(function(a,b){return a.order-b.order});return function(){c.removeEvent(b,a,d)}};c.removeEvent=function(b,a,d){function f(a,d){var e=b.removeEventListener||c.removeEventListenerPolyfill;e&&e.call(b,a,d,!1)}function e(d){var e;if(b.nodeName){if(a){var c={};c[a]=!0}else c=d;x(c,function(a,b){if(d[b])for(e=d[b].length;e--;)f(b,d[b][e].fn)})}}var h;["protoEvents","hcEvents"].forEach(function(c){var r=b[c];r&&(a?(h=r[a]||[],d?(r[a]=h.filter(function(a){return d!==a.fn}),f(a,d)):(e(r),r[a]=[])):(e(r),b[c]={}))})};c.fireEvent=function(b,a,d,f){var e;d=d||{};if(p.createEvent&&(b.dispatchEvent||b.fireEvent)){var h=p.createEvent("Events");h.initEvent(a,!0,!0);c.extend(h,d);b.dispatchEvent?b.dispatchEvent(h):b.fireEvent(a,h)}else d.target||c.extend(d,{preventDefault:function(){d.defaultPrevented=!0},target:b,type:a}),function(a,f){void 0===a&&(a=[]);void 0===f&&(f=[]);var c=0,h=0,k=a.length+f.length;for(e=0;e<k;e++)!1===(a[c]?f[h]?a[c].order<=f[h].order?a[c++]:f[h++]:a[c++]:f[h++]).fn.call(b,d)&&d.preventDefault()}(b.protoEvents&&b.protoEvents[a],b.hcEvents&&b.hcEvents[a]);f&&!d.defaultPrevented&&f.call(b,d)};c.animate=function(b,a,d){var f,e="",h,r;if(!F(d)){var m=arguments;d={duration:m[2],easing:m[3],complete:m[4]}}L(d.duration)||(d.duration=400);d.easing="function"===typeof d.easing?d.easing:Math[d.easing]||Math.easeInOutSine;d.curAnim=c.merge(a);x(a,function(q,v){c.stop(b,v);r=new c.Fx(b,d,v);h=null;"d"===v?(r.paths=r.initPath(b,b.d,a.d),r.toD=a.d,f=0,h=1):b.attr?f=b.attr(v):(f=parseFloat(c.getStyle(b,v))||0,"opacity"!==v&&(e="px"));h||(h=q);h&&h.match&&h.match("px")&&(h=h.replace(/px/g,""));r.run(f,h,e)})};c.seriesType=function(b,a,d,f,e){var h=c.getOptions(),r=c.seriesTypes;h.plotOptions[b]=c.merge(h.plotOptions[a],d);r[b]=c.extendClass(r[a]||function(){},f);r[b].prototype.type=b;e&&(r[b].prototype.pointClass=c.extendClass(c.Point,e));return r[b]};c.uniqueKey=function(){var b=Math.random().toString(36).substring(2,9),a=0;return function(){return"highcharts-"+b+"-"+a++}}();c.isFunction=function(b){return"function"===typeof b};g.jQuery&&(g.jQuery.fn.highcharts=function(){var b=[].slice.call(arguments);if(this[0])return b[0]?(new(c[A(b[0])?b.shift():"Chart"])(this[0],b[0],b[1]),this):m[C(this[0],"data-highcharts-chart")]});return{attr:C,defined:y,erase:function(b,a){for(var d=b.length;d--;)if(b[d]===a){b.splice(d,1);break}},isArray:D,isClass:u,isDOMElement:z,isNumber:L,isObject:F,isString:A,objectEach:x,pInt:n,splat:function(b){return D(b)?b:[b]}}});N(H,"parts/Color.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.isNumber,D=n.pInt,F=c.merge;c.Color=function(z){if(!(this instanceof c.Color))return new c.Color(z);this.init(z)};c.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(c){return[D(c[1]),D(c[2]),D(c[3]),parseFloat(c[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(c){return[D(c[1]),D(c[2]),D(c[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(z){var u,n;if((this.input=z=this.names[z&&z.toLowerCase?z.toLowerCase():""]||z)&&z.stops)this.stops=z.stops.map(function(x){return new c.Color(x[1])});else{if(z&&z.charAt&&"#"===z.charAt()){var y=z.length;z=parseInt(z.substr(1),16);7===y?u=[(z&16711680)>>16,(z&65280)>>8,z&255,1]:4===y&&(u=[(z&3840)>>4|(z&3840)>>8,(z&240)>>4|z&240,(z&15)<<4|z&15,1])}if(!u)for(n=this.parsers.length;n--&&!u;){var C=this.parsers[n];(y=C.regex.exec(z))&&(u=C.parse(y))}}this.rgba=u||[]},get:function(c){var u=this.input,z=this.rgba;if(this.stops){var y=F(u);y.stops=[].concat(y.stops);this.stops.forEach(function(u,x){y.stops[x]=[y.stops[x][0],u.get(c)]})}else y=z&&A(z[0])?"rgb"===c||!c&&1===z[3]?"rgb("+z[0]+","+z[1]+","+z[2]+")":"a"===c?z[3]:"rgba("+z.join(",")+")":u;return y},brighten:function(c){var u,z=this.rgba;if(this.stops)this.stops.forEach(function(u){u.brighten(c)});else if(A(c)&&0!==c)for(u=0;3>u;u++)z[u]+=D(255*c),0>z[u]&&(z[u]=0),255<z[u]&&(z[u]=255);return this},setOpacity:function(c){this.rgba[3]=c;return this},tweenTo:function(c,u){var z=this.rgba,y=c.rgba;y.length&&z&&z.length?(c=1!==y[3]||1!==z[3],u=(c?"rgba(":"rgb(")+Math.round(y[0]+(z[0]-y[0])*(1-u))+","+Math.round(y[1]+(z[1]-y[1])*(1-u))+","+Math.round(y[2]+(z[2]-y[2])*(1-u))+(c?","+(y[3]+(z[3]-y[3])*(1-u)):"")+")"):u=c.input||"none";return u}};c.color=function(z){return new c.Color(z)}});N(H,"parts/SvgRenderer.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.attr,D=n.defined,F=n.erase,z=n.isArray,u=n.isNumber,L=n.isObject,y=n.isString,C=n.objectEach,x=n.pInt,m=n.splat,p=c.addEvent,g=c.animate,b=c.charts,a=c.color,d=c.css,f=c.createElement,e=c.deg2rad,h=c.destroyObjectProperties,r=c.doc,E=c.extend,q=c.hasTouch,v=c.isFirefox,k=c.isMS,t=c.isWebKit,B=c.merge,I=c.noop,w=c.pick,l=c.removeEvent,J=c.stop,K=c.svg,T=c.SVG_NS,R=c.symbolSizes,S=c.win;var M=c.SVGElement=function(){return this};E(M.prototype,{opacity:1,SVG_NS:T,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(a,b){this.element="span"===b?f(b):r.createElementNS(this.SVG_NS,b);this.renderer=a;c.fireEvent(this,"afterInit")},animate:function(a,b,d){var G=c.animObject(w(b,this.renderer.globalAnimation,!0));w(r.hidden,r.msHidden,r.webkitHidden,!1)&&(G.duration=0);0!==G.duration?(d&&(G.complete=d),g(this,a,G)):(this.attr(a,void 0,d),C(a,function(a,b){G.step&&G.step.call(this,a,{prop:b,pos:1})},this));return this},complexColor:function(a,b,d){var G=this.renderer,l,w,e,f,k,O,t,h,J,K,r,Q=[],M;c.fireEvent(this.renderer,"complexColor",{args:arguments},function(){a.radialGradient?w="radialGradient":a.linearGradient&&(w="linearGradient");w&&(e=a[w],k=G.gradients,t=a.stops,K=d.radialReference,z(e)&&(a[w]=e={x1:e[0],y1:e[1],x2:e[2],y2:e[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===w&&K&&!D(e.gradientUnits)&&(f=e,e=B(e,G.getRadialAttr(K,f),{gradientUnits:"userSpaceOnUse"})),C(e,function(a,G){"id"!==G&&Q.push(G,a)}),C(t,function(a){Q.push(a)}),Q=Q.join(","),k[Q]?r=k[Q].attr("id"):(e.id=r=c.uniqueKey(),k[Q]=O=G.createElement(w).attr(e).add(G.defs),O.radAttr=f,O.stops=[],t.forEach(function(a){0===a[1].indexOf("rgba")?(l=c.color(a[1]),h=l.get("rgb"),J=l.get("a")):(h=a[1],J=1);a=G.createElement("stop").attr({offset:a[0],"stop-color":h,"stop-opacity":J}).add(O);O.stops.push(a)})),M="url("+G.url+"#"+r+")",d.setAttribute(b,M),d.gradient=Q,a.toString=function(){return M})})},applyTextOutline:function(a){var b=this.element,G;-1!==a.indexOf("contrast")&&(a=a.replace(/contrast/g,this.renderer.getContrast(b.style.fill)));a=a.split(" ");var d=a[a.length-1];if((G=a[0])&&"none"!==G&&c.svg){this.fakeTS=!0;a=[].slice.call(b.getElementsByTagName("tspan"));this.ySetter=this.xSetter;G=G.replace(/(^[\d\.]+)(.*?)$/g,function(a,b,G){return 2*b+G});this.removeTextOutline(a);var w=b.firstChild;a.forEach(function(a,l){0===l&&(a.setAttribute("x",b.getAttribute("x")),l=b.getAttribute("y"),a.setAttribute("y",l||0),null===l&&b.setAttribute("y",0));a=a.cloneNode(1);A(a,{"class":"highcharts-text-outline",fill:d,stroke:d,"stroke-width":G,"stroke-linejoin":"round"});b.insertBefore(a,w)})}},removeTextOutline:function(a){for(var b=a.length,G;b--;)G=a[b],"highcharts-text-outline"===G.getAttribute("class")&&F(a,this.element.removeChild(G))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(a,b,d,l){var G=this.element,w,e=this,f,k,O=this.symbolCustomAttribs;if("string"===typeof a&&void 0!==b){var t=a;a={};a[t]=b}"string"===typeof a?e=(this[a+"Getter"]||this._defaultGetter).call(this,a,G):(C(a,function(b,d){f=!1;l||J(this,d);this.symbolName&&-1!==c.inArray(d,O)&&(w||(this.symbolAttr(a),w=!0),f=!0);!this.rotation||"x"!==d&&"y"!==d||(this.doTransform=!0);f||(k=this[d+"Setter"]||this._defaultSetter,k.call(this,b,d,G),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(d)&&this.updateShadows(d,b,k))},this),this.afterSetters());d&&d.call(this);return e},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(a,b,d){for(var G=this.shadows,l=G.length;l--;)d.call(G[l],"height"===a?Math.max(b-(G[l].cutHeight||0),0):"d"===a?this.d:b,a,G[l])},addClass:function(a,b){var d=this.attr("class")||"";b||(a=(a||"").split(/ /g).reduce(function(a,b){-1===d.indexOf(b)&&a.push(b);return a},d?[d]:[]).join(" "));a!==d&&this.attr("class",a);return this},hasClass:function(a){return-1!==(this.attr("class")||"").split(" ").indexOf(a)},removeClass:function(a){return this.attr("class",(this.attr("class")||"").replace(a,""))},symbolAttr:function(a){var b=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(d){b[d]=w(a[d],b[d])});b.attr({d:b.renderer.symbols[b.symbolName](b.x,b.y,b.width,b.height,b)})},clip:function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},crisp:function(a,b){b=b||a.strokeWidth||0;var d=Math.round(b)%2/2;a.x=Math.floor(a.x||this.x||0)+d;a.y=Math.floor(a.y||this.y||0)+d;a.width=Math.floor((a.width||this.width||0)-2*d);a.height=Math.floor((a.height||this.height||0)-2*d);D(a.strokeWidth)&&(a.strokeWidth=b);return a},css:function(a){var b=this.styles,G={},l=this.element,w="",e=!b,f=["textOutline","textOverflow","width"];a&&a.color&&(a.fill=a.color);b&&C(a,function(a,d){a!==b[d]&&(G[d]=a,e=!0)});if(e){b&&(a=E(b,G));if(a)if(null===a.width||"auto"===a.width)delete this.textWidth;else if("text"===l.nodeName.toLowerCase()&&a.width)var k=this.textWidth=x(a.width);this.styles=a;k&&!K&&this.renderer.forExport&&delete a.width;if(l.namespaceURI===this.SVG_NS){var c=function(a,b){return"-"+b.toLowerCase()};C(a,function(a,b){-1===f.indexOf(b)&&(w+=b.replace(/([A-Z])/g,c)+":"+a+";")});w&&A(l,"style",w)}else d(l,a);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),a&&a.textOutline&&this.applyTextOutline(a.textOutline))}return this},getStyle:function(a){return S.getComputedStyle(this.element||this,"").getPropertyValue(a)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width");if(a.indexOf("px")===a.length-2)a=x(a);else{var b=r.createElementNS(T,"rect");A(b,{width:a,"stroke-width":0});this.element.parentNode.appendChild(b);a=b.getBBox().width;b.parentNode.removeChild(b)}return a},on:function(a,b){var d=this,l=d.element;q&&"click"===a?(l.ontouchstart=function(a){d.touchEventFired=Date.now();a.preventDefault();b.call(l,a)},l.onclick=function(a){(-1===S.navigator.userAgent.indexOf("Android")||1100<Date.now()-(d.touchEventFired||0))&&b.call(l,a)}):l["on"+a]=b;return this},setRadialReference:function(a){var b=this.renderer.gradients[this.element.gradient];this.element.radialReference=a;b&&b.radAttr&&b.animate(this.renderer.getRadialAttr(a,b.radAttr));return this},translate:function(a,b){return this.attr({translateX:a,translateY:b})},invert:function(a){this.inverted=a;this.updateTransform();return this},updateTransform:function(){var a=this.translateX||0,b=this.translateY||0,d=this.scaleX,l=this.scaleY,e=this.inverted,f=this.rotation,k=this.matrix,c=this.element;e&&(a+=this.width,b+=this.height);a=["translate("+a+","+b+")"];D(k)&&a.push("matrix("+k.join(",")+")");e?a.push("rotate(90) scale(-1,1)"):f&&a.push("rotate("+f+" "+w(this.rotationOriginX,c.getAttribute("x"),0)+" "+w(this.rotationOriginY,c.getAttribute("y")||0)+")");(D(d)||D(l))&&a.push("scale("+w(d,1)+" "+w(l,1)+")");a.length&&c.setAttribute("transform",a.join(" "))},toFront:function(){var a=this.element;a.parentNode.appendChild(a);return this},align:function(a,b,d){var l,G={};var e=this.renderer;var f=e.alignedObjects;var k,c;if(a){if(this.alignOptions=a,this.alignByTranslate=b,!d||y(d))this.alignTo=l=d||"renderer",F(f,this),f.push(this),d=null}else a=this.alignOptions,b=this.alignByTranslate,l=this.alignTo;d=w(d,e[l],e);l=a.align;e=a.verticalAlign;f=(d.x||0)+(a.x||0);var t=(d.y||0)+(a.y||0);"right"===l?k=1:"center"===l&&(k=2);k&&(f+=(d.width-(a.width||0))/k);G[b?"translateX":"x"]=Math.round(f);"bottom"===e?c=1:"middle"===e&&(c=2);c&&(t+=(d.height-(a.height||0))/c);G[b?"translateY":"y"]=Math.round(t);this[this.placed?"animate":"attr"](G);this.placed=!0;this.alignAttr=G;return this},getBBox:function(a,b){var d,l=this.renderer,G=this.element,f=this.styles,k=this.textStr,c,t=l.cache,h=l.cacheKeys,O=G.namespaceURI===this.SVG_NS;b=w(b,this.rotation);var B=b*e;var J=l.styledMode?G&&M.prototype.getStyle.call(G,"font-size"):f&&f.fontSize;if(D(k)){var K=k.toString();-1===K.indexOf("<")&&(K=K.replace(/[0-9]/g,"0"));K+=["",b||0,J,this.textWidth,f&&f.textOverflow].join()}K&&!a&&(d=t[K]);if(!d){if(O||l.forExport){try{(c=this.fakeTS&&function(a){[].forEach.call(G.querySelectorAll(".highcharts-text-outline"),function(b){b.style.display=a})})&&c("none"),d=G.getBBox?E({},G.getBBox()):{width:G.offsetWidth,height:G.offsetHeight},c&&c("")}catch(Z){""}if(!d||0>d.width)d={width:0,height:0}}else d=this.htmlGetBBox();l.isSVG&&(a=d.width,l=d.height,O&&(d.height=l={"11px,17":14,"13px,20":16}[f&&f.fontSize+","+Math.round(l)]||l),b&&(d.width=Math.abs(l*Math.sin(B))+Math.abs(a*Math.cos(B)),d.height=Math.abs(l*Math.cos(B))+Math.abs(a*Math.sin(B))));if(K&&0<d.height){for(;250<h.length;)delete t[h.shift()];t[K]||h.push(K);t[K]=d}}return d},show:function(a){return this.attr({visibility:a?"inherit":"visible"})},hide:function(a){a?this.attr({y:-9999}):this.attr({visibility:"hidden"});return this},fadeOut:function(a){var b=this;b.animate({opacity:0},{duration:a||150,complete:function(){b.attr({y:-9999})}})},add:function(a){var b=this.renderer,d=this.element;a&&(this.parentGroup=a);this.parentInverted=a&&a.inverted;void 0!==this.textStr&&b.buildText(this);this.added=!0;if(!a||a.handleZ||this.zIndex)var l=this.zIndexSetter();l||(a?a.element:b.box).appendChild(d);if(this.onAdd)this.onAdd();return this},safeRemoveChild:function(a){var b=a.parentNode;b&&b.removeChild(a)},destroy:function(){var a=this,b=a.element||{},d=a.renderer,l=d.isSVG&&"SPAN"===b.nodeName&&a.parentGroup,w=b.ownerSVGElement,e=a.clipPath;b.onclick=b.onmouseout=b.onmouseover=b.onmousemove=b.point=null;J(a);e&&w&&([].forEach.call(w.querySelectorAll("[clip-path],[CLIP-PATH]"),function(a){-1<a.getAttribute("clip-path").indexOf(e.element.id)&&a.removeAttribute("clip-path")}),a.clipPath=e.destroy());if(a.stops){for(w=0;w<a.stops.length;w++)a.stops[w]=a.stops[w].destroy();a.stops=null}a.safeRemoveChild(b);for(d.styledMode||a.destroyShadows();l&&l.div&&0===l.div.childNodes.length;)b=l.parentGroup,a.safeRemoveChild(l.div),delete l.div,l=b;a.alignTo&&F(d.alignedObjects,a);C(a,function(b,d){a[d]&&a[d].parentGroup===a&&a[d].destroy&&a[d].destroy();delete a[d]})},shadow:function(a,b,d){var l=[],e,f=this.element;if(!a)this.destroyShadows();else if(!this.shadows){var G=w(a.width,3);var k=(a.opacity||.15)/G;var c=this.parentInverted?"(-1,-1)":"("+w(a.offsetX,1)+", "+w(a.offsetY,1)+")";for(e=1;e<=G;e++){var t=f.cloneNode(0);var h=2*G+1-2*e;A(t,{stroke:a.color||"#000000","stroke-opacity":k*e,"stroke-width":h,transform:"translate"+c,fill:"none"});t.setAttribute("class",(t.getAttribute("class")||"")+" highcharts-shadow");d&&(A(t,"height",Math.max(A(t,"height")-h,0)),t.cutHeight=h);b?b.element.appendChild(t):f.parentNode&&f.parentNode.insertBefore(t,f);l.push(t)}this.shadows=l}return this},destroyShadows:function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this);this.shadows=void 0},xGetter:function(a){"circle"===this.element.nodeName&&("x"===a?a="cx":"y"===a&&(a="cy"));return this._defaultGetter(a)},_defaultGetter:function(a){a=w(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0);/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a));return a},dSetter:function(a,b,d){a&&a.join&&(a=a.join(" "));/(NaN| {2}|^$)/.test(a)&&(a="M 0 0");this[b]!==a&&(d.setAttribute(b,a),this[b]=a)},dashstyleSetter:function(a){var b,d=this["stroke-width"];"inherit"===d&&(d=1);if(a=a&&a.toLowerCase()){a=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(b=a.length;b--;)a[b]=x(a[b])*d;a=a.join(",").replace(/NaN/g,"none");this.element.setAttribute("stroke-dasharray",a)}},alignSetter:function(a){var b={left:"start",center:"middle",right:"end"};b[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",b[a]))},opacitySetter:function(a,b,d){this[b]=a;d.setAttribute(b,a)},titleSetter:function(a){var b=this.element.getElementsByTagName("title")[0];b||(b=r.createElementNS(this.SVG_NS,"title"),this.element.appendChild(b));b.firstChild&&b.removeChild(b.firstChild);b.appendChild(r.createTextNode(String(w(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(a){a!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},setTextPath:function(a,b){var d=this.element,l={textAnchor:"text-anchor"},w=!1,e=this.textPathWrapper,f=!e;b=B(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},b);var k=b.attributes;if(a&&b&&b.enabled){this.options&&this.options.padding&&(k.dx=-this.options.padding);e||(this.textPathWrapper=e=this.renderer.createElement("textPath"),w=!0);var G=e.element;(b=a.element.getAttribute("id"))||a.element.setAttribute("id",b=c.uniqueKey());if(f)for(a=d.getElementsByTagName("tspan");a.length;)a[0].setAttribute("y",0),G.appendChild(a[0]);w&&e.add({element:this.text?this.text.element:d});G.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+b);D(k.dy)&&(G.parentNode.setAttribute("dy",k.dy),delete k.dy);D(k.dx)&&(G.parentNode.setAttribute("dx",k.dx),delete k.dx);C(k,function(a,b){G.setAttribute(l[b]||b,a)});d.removeAttribute("transform");this.removeTextOutline.call(e,[].slice.call(d.getElementsByTagName("tspan")));this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0});this.applyTextOutline=this.updateTransform=I}else e&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(d,a));return this},destroyTextPath:function(a,b){var d;b.element.setAttribute("id","");for(d=this.textPathWrapper.element.childNodes;d.length;)a.firstChild.appendChild(d[0]);a.firstChild.removeChild(this.textPathWrapper.element);delete b.textPathWrapper},fillSetter:function(a,b,d){"string"===typeof a?d.setAttribute(b,a):a&&this.complexColor(a,b,d)},visibilitySetter:function(a,b,d){"inherit"===a?d.removeAttribute(b):this[b]!==a&&d.setAttribute(b,a);this[b]=a},zIndexSetter:function(a,b){var d=this.renderer,l=this.parentGroup,w=(l||d).element||d.box,e=this.element,f=!1;d=w===d.box;var k=this.added;var c;D(a)?(e.setAttribute("data-z-index",a),a=+a,this[b]===a&&(k=!1)):D(this[b])&&e.removeAttribute("data-z-index");this[b]=a;if(k){(a=this.zIndex)&&l&&(l.handleZ=!0);b=w.childNodes;for(c=b.length-1;0<=c&&!f;c--){l=b[c];k=l.getAttribute("data-z-index");var G=!D(k);if(l!==e)if(0>a&&G&&!d&&!c)w.insertBefore(e,b[c]),f=!0;else if(x(k)<=a||G&&(!D(a)||0<=a))w.insertBefore(e,b[c+1]||null),f=!0}f||(w.insertBefore(e,b[d?3:0]||null),f=!0)}return f},_defaultSetter:function(a,b,d){d.setAttribute(b,a)}});M.prototype.yGetter=M.prototype.xGetter;M.prototype.translateXSetter=M.prototype.translateYSetter=M.prototype.rotationSetter=M.prototype.verticalAlignSetter=M.prototype.rotationOriginXSetter=M.prototype.rotationOriginYSetter=M.prototype.scaleXSetter=M.prototype.scaleYSetter=M.prototype.matrixSetter=function(a,b){this[b]=a;this.doTransform=!0};M.prototype["stroke-widthSetter"]=M.prototype.strokeSetter=function(a,b,d){this[b]=a;this.stroke&&this["stroke-width"]?(M.prototype.fillSetter.call(this,this.stroke,"stroke",d),d.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===b&&0===a&&this.hasStroke?(d.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(d.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)};n=c.SVGRenderer=function(){this.init.apply(this,arguments)};E(n.prototype,{Element:M,SVG_NS:T,init:function(a,b,l,w,e,f,k){var c=this.createElement("svg").attr({version:"1.1","class":"highcharts-root"});k||c.css(this.getStyle(w));w=c.element;a.appendChild(w);A(a,"dir","ltr");-1===a.innerHTML.indexOf("xmlns")&&A(w,"xmlns",this.SVG_NS);this.isSVG=!0;this.box=w;this.boxWrapper=c;this.alignedObjects=[];this.url=(v||t)&&r.getElementsByTagName("base").length?S.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"";this.createElement("desc").add().element.appendChild(r.createTextNode("Created with Highcharts 7.2.0"));this.defs=this.createElement("defs").add();this.allowHTML=f;this.forExport=e;this.styledMode=k;this.gradients={};this.cache={};this.cacheKeys=[];this.imgCount=0;this.setSize(b,l,!1);var G;v&&a.getBoundingClientRect&&(b=function(){d(a,{left:0,top:0});G=a.getBoundingClientRect();d(a,{left:Math.ceil(G.left)-G.left+"px",top:Math.ceil(G.top)-G.top+"px"})},b(),this.unSubPixelFix=p(S,"resize",b))},definition:function(a){function b(a,l){var w;m(a).forEach(function(a){var e=d.createElement(a.tagName),f={};C(a,function(a,b){"tagName"!==b&&"children"!==b&&"textContent"!==b&&(f[b]=a)});e.attr(f);e.add(l||d.defs);a.textContent&&e.element.appendChild(r.createTextNode(a.textContent));b(a.children||[],e);w=e});return w}var d=this;return b(a)},getStyle:function(a){return this.style=E({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},a)},setStyle:function(a){this.boxWrapper.css(this.getStyle(a))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var a=this.defs;this.box=null;this.boxWrapper=this.boxWrapper.destroy();h(this.gradients||{});this.gradients=null;a&&(this.defs=a.destroy());this.unSubPixelFix&&this.unSubPixelFix();return this.alignedObjects=null},createElement:function(a){var b=new this.Element;b.init(this,a);return b},draw:I,getRadialAttr:function(a,b){return{cx:a[0]-a[2]/2+b.cx*a[2],cy:a[1]-a[2]/2+b.cy*a[2],r:b.r*a[2]}},truncate:function(a,b,d,l,w,e,f){var k=this,c=a.rotation,t,G=l?1:0,h=(d||l).length,B=h,J=[],K=function(a){b.firstChild&&b.removeChild(b.firstChild);a&&b.appendChild(r.createTextNode(a))},M=function(e,c){c=c||e;if(void 0===J[c])if(b.getSubStringLength)try{J[c]=w+b.getSubStringLength(0,l?c+1:c)}catch(aa){""}else k.getSpanWidth&&(K(f(d||l,e)),J[c]=w+k.getSpanWidth(a,b));return J[c]},O;a.rotation=0;var q=M(b.textContent.length);if(O=w+q>e){for(;G<=h;)B=Math.ceil((G+h)/2),l&&(t=f(l,B)),q=M(B,t&&t.length-1),G===h?G=h+1:q>e?h=B-1:G=B;0===h?K(""):d&&h===d.length-1||K(t||f(d||l,B))}l&&l.splice(0,B);a.actualWidth=q;a.rotation=c;return O},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(a){var b=a.element,l=this,e=l.forExport,f=w(a.textStr,"").toString(),k=-1!==f.indexOf("<"),c=b.childNodes,t,h=A(b,"x"),G=a.styles,B=a.textWidth,J=G&&G.lineHeight,M=G&&G.textOutline,q=G&&"ellipsis"===G.textOverflow,v=G&&"nowrap"===G.whiteSpace,I=G&&G.fontSize,m,g=c.length;G=B&&!a.added&&this.box;var E=function(a){var d;l.styledMode||(d=/(px|em)$/.test(a&&a.style.fontSize)?a.style.fontSize:I||l.style.fontSize||12);return J?x(J):l.fontMetrics(d,a.getAttribute("style")?a:b).h},p=function(a,b){C(l.escapes,function(d,l){b&&-1!==b.indexOf(d)||(a=a.toString().replace(new RegExp(d,"g"),l))});return a},R=function(a,b){var d=a.indexOf("<");a=a.substring(d,a.indexOf(">")-d);d=a.indexOf(b+"=");if(-1!==d&&(d=d+b.length+1,b=a.charAt(d),'"'===b||"'"===b))return a=a.substring(d+1),a.substring(0,a.indexOf(b))},S=/<br.*?>/g;var u=[f,q,v,J,M,I,B].join();if(u!==a.textCache){for(a.textCache=u;g--;)b.removeChild(c[g]);k||M||q||B||-1!==f.indexOf(" ")&&(!v||S.test(f))?(G&&G.appendChild(b),k?(f=l.styledMode?f.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):f.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">'),f=f.replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(S)):f=[f],f=f.filter(function(a){return""!==a}),f.forEach(function(w,f){var k=0,c=0;w=w.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");var G=w.split("|||");G.forEach(function(w){if(""!==w||1===G.length){var J={},M=r.createElementNS(l.SVG_NS,"tspan"),O,g;(O=R(w,"class"))&&A(M,"class",O);if(O=R(w,"style"))O=O.replace(/(;| |^)color([ :])/,"$1fill$2"),A(M,"style",O);(g=R(w,"href"))&&!e&&(A(M,"onclick",'location.href="'+g+'"'),A(M,"class","highcharts-anchor"),l.styledMode||d(M,{cursor:"pointer"}));w=p(w.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" ");if(" "!==w){M.appendChild(r.createTextNode(w));k?J.dx=0:f&&null!==h&&(J.x=h);A(M,J);b.appendChild(M);!k&&m&&(!K&&e&&d(M,{display:"block"}),A(M,"dy",E(M)));if(B){var Q=w.replace(/([^\^])-/g,"$1- ").split(" ");J=!v&&(1<G.length||f||1<Q.length);g=0;var x=E(M);if(q)t=l.truncate(a,M,w,void 0,0,Math.max(0,B-parseInt(I||12,10)),function(a,b){return a.substring(0,b)+"\u2026"});else if(J)for(;Q.length;)Q.length&&!v&&0<g&&(M=r.createElementNS(T,"tspan"),A(M,{dy:x,x:h}),O&&A(M,"style",O),M.appendChild(r.createTextNode(Q.join(" ").replace(/- /g,"-"))),b.appendChild(M)),l.truncate(a,M,null,Q,0===g?c:0,B,function(a,b){return Q.slice(0,b).join(" ").replace(/- /g,"-")}),c=a.actualWidth,g++}k++}}});m=m||b.childNodes.length}),q&&t&&a.attr("title",p(a.textStr,["&lt;","&gt;"])),G&&G.removeChild(b),M&&a.applyTextOutline&&a.applyTextOutline(M)):b.appendChild(r.createTextNode(p(f)))}},getContrast:function(b){b=a(b).rgba;b[0]*=1;b[1]*=1.2;b[2]*=.5;return 459<b[0]+b[1]+b[2]?"#000000":"#FFFFFF"},button:function(a,b,d,l,w,e,f,c,t,h){var G=this.label(a,b,d,t,null,null,h,null,"button"),J=0,K=this.styledMode;G.attr(B({padding:8,r:2},w));if(!K){w=B({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},w);var M=w.style;delete w.style;e=B(w,{fill:"#e6e6e6"},e);var r=e.style;delete e.style;f=B(w,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},f);var q=f.style;delete f.style;c=B(w,{style:{color:"#cccccc"}},c);var O=c.style;delete c.style}p(G.element,k?"mouseover":"mouseenter",function(){3!==J&&G.setState(1)});p(G.element,k?"mouseout":"mouseleave",function(){3!==J&&G.setState(J)});G.setState=function(a){1!==a&&(G.state=J=a);G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][a||0]);K||G.attr([w,e,f,c][a||0]).css([M,r,q,O][a||0])};K||G.attr(w).css(E({cursor:"default"},M));return G.on("click",function(a){3!==J&&l.call(G,a)})},crispLine:function(a,b){a[1]===a[4]&&(a[1]=a[4]=Math.round(a[1])-b%2/2);a[2]===a[5]&&(a[2]=a[5]=Math.round(a[2])+
b%2/2);return a},path:function(a){var b=this.styledMode?{}:{fill:"none"};z(a)?b.d=a:L(a)&&E(b,a);return this.createElement("path").attr(b)},circle:function(a,b,d){a=L(a)?a:void 0===a?{}:{x:a,y:b,r:d};b=this.createElement("circle");b.xSetter=b.ySetter=function(a,b,d){d.setAttribute("c"+b,a)};return b.attr(a)},arc:function(a,b,d,l,w,e){L(a)?(l=a,b=l.y,d=l.r,a=l.x):l={innerR:l,start:w,end:e};a=this.symbol("arc",a,b,d,d,l);a.r=d;return a},rect:function(a,b,d,l,w,e){w=L(a)?a.r:w;var f=this.createElement("rect");a=L(a)?a:void 0===a?{}:{x:a,y:b,width:Math.max(d,0),height:Math.max(l,0)};this.styledMode||(void 0!==e&&(a.strokeWidth=e,a=f.crisp(a)),a.fill="none");w&&(a.r=w);f.rSetter=function(a,b,d){f.r=a;A(d,{rx:a,ry:a})};f.rGetter=function(){return f.r};return f.attr(a)},setSize:function(a,b,d){var l=this.alignedObjects,e=l.length;this.width=a;this.height=b;for(this.boxWrapper.animate({width:a,height:b},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:w(d,!0)?void 0:0});e--;)l[e].align()},g:function(a){var b=this.createElement("g");return a?b.attr({"class":"highcharts-"+a}):b},image:function(a,b,d,l,w,e){var f={preserveAspectRatio:"none"},k=function(a,b){a.setAttributeNS?a.setAttributeNS("http://www.w3.org/1999/xlink","href",b):a.setAttribute("hc-svg-href",b)},c=function(b){k(t.element,a);e.call(t,b)};1<arguments.length&&E(f,{x:b,y:d,width:l,height:w});var t=this.createElement("image").attr(f);e?(k(t.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),f=new S.Image,p(f,"load",c),f.src=a,f.complete&&c({})):k(t.element,a);return t},symbol:function(a,l,e,k,c,t){var h=this,B=/^url\((.*?)\)$/,G=B.test(a),J=!G&&(this.symbols[a]?a:"circle"),K=J&&this.symbols[J],M=D(l)&&K&&K.call(this.symbols,Math.round(l),Math.round(e),k,c,t);if(K){var q=this.path(M);h.styledMode||q.attr("fill","none");E(q,{symbolName:J,x:l,y:e,width:k,height:c});t&&E(q,t)}else if(G){var v=a.match(B)[1];q=this.image(v);q.imgwidth=w(R[v]&&R[v].width,t&&t.width);q.imgheight=w(R[v]&&R[v].height,t&&t.height);var I=function(){q.attr({width:q.width,height:q.height})};["width","height"].forEach(function(a){q[a+"Setter"]=function(a,b){var d={},l=this["img"+b],w="width"===b?"translateX":"translateY";this[b]=a;D(l)&&(t&&"within"===t.backgroundSize&&this.width&&this.height&&(l=Math.round(l*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(b,l),this.alignByTranslate||(d[w]=((this[b]||0)-l)/2,this.attr(d)))}});D(l)&&q.attr({x:l,y:e});q.isImg=!0;D(q.imgwidth)&&D(q.imgheight)?I():(q.attr({width:0,height:0}),f("img",{onload:function(){var a=b[h.chartIndex];0===this.width&&(d(this,{position:"absolute",top:"-999em"}),r.body.appendChild(this));R[v]={width:this.width,height:this.height};q.imgwidth=this.width;q.imgheight=this.height;q.element&&I();this.parentNode&&this.parentNode.removeChild(this);h.imgCount--;if(!h.imgCount&&a&&a.onload)a.onload()},src:v}),this.imgCount++)}return q},symbols:{circle:function(a,b,d,l){return this.arc(a+d/2,b+l/2,d/2,l/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(a,b,d,l){return["M",a,b,"L",a+d,b,a+d,b+l,a,b+l,"Z"]},triangle:function(a,b,d,l){return["M",a+d/2,b,"L",a+d,b+l,a,b+l,"Z"]},"triangle-down":function(a,b,d,l){return["M",a,b,"L",a+d,b,a+d/2,b+l,"Z"]},diamond:function(a,b,d,l){return["M",a+d/2,b,"L",a+d,b+l/2,a+d/2,b+l,a,b+l/2,"Z"]},arc:function(a,b,d,l,e){var f=e.start,k=e.r||d,c=e.r||l||d,t=e.end-.001;d=e.innerR;l=w(e.open,.001>Math.abs(e.end-e.start-2*Math.PI));var h=Math.cos(f),B=Math.sin(f),J=Math.cos(t);t=Math.sin(t);f=.001>e.end-f-Math.PI?0:1;e=["M",a+k*h,b+c*B,"A",k,c,0,f,w(e.clockwise,1),a+k*J,b+c*t];D(d)&&e.push(l?"M":"L",a+d*J,b+d*t,"A",d,d,0,f,0,a+d*h,b+d*B);e.push(l?"":"Z");return e},callout:function(a,b,d,l,w){var e=Math.min(w&&w.r||0,d,l),f=e+6,k=w&&w.anchorX;w=w&&w.anchorY;var c=["M",a+e,b,"L",a+d-e,b,"C",a+d,b,a+d,b,a+d,b+e,"L",a+d,b+l-e,"C",a+d,b+l,a+d,b+l,a+d-e,b+l,"L",a+e,b+l,"C",a,b+l,a,b+l,a,b+l-e,"L",a,b+e,"C",a,b,a,b,a+e,b];k&&k>d?w>b+f&&w<b+l-f?c.splice(13,3,"L",a+d,w-6,a+d+6,w,a+d,w+6,a+d,b+l-e):c.splice(13,3,"L",a+d,l/2,k,w,a+d,l/2,a+d,b+l-e):k&&0>k?w>b+f&&w<b+l-f?c.splice(33,3,"L",a,w+6,a-6,w,a,w-6,a,b+e):c.splice(33,3,"L",a,l/2,k,w,a,l/2,a,b+e):w&&w>l&&k>a+f&&k<a+d-f?c.splice(23,3,"L",k+6,b+l,k,b+l+6,k-6,b+l,a+e,b+l):w&&0>w&&k>a+f&&k<a+d-f&&c.splice(3,3,"L",k-6,b,k,b-6,k+6,b,d-e,b);return c}},clipRect:function(a,b,d,l){var w=c.uniqueKey()+"-",e=this.createElement("clipPath").attr({id:w}).add(this.defs);a=this.rect(a,b,d,l,0).add(e);a.id=w;a.clipPath=e;a.count=0;return a},text:function(a,b,d,l){var w={};if(l&&(this.allowHTML||!this.forExport))return this.html(a,b,d);w.x=Math.round(b||0);d&&(w.y=Math.round(d));D(a)&&(w.text=a);a=this.createElement("text").attr(w);l||(a.xSetter=function(a,b,d){var l=d.getElementsByTagName("tspan"),w=d.getAttribute(b),e;for(e=0;e<l.length;e++){var f=l[e];f.getAttribute(b)===w&&f.setAttribute(b,a)}d.setAttribute(b,a)});return a},fontMetrics:function(a,b){a=!this.styledMode&&/px/.test(a)||!S.getComputedStyle?a||b&&b.style&&b.style.fontSize||this.style&&this.style.fontSize:b&&M.prototype.getStyle.call(b,"font-size");a=/px/.test(a)?x(a):12;b=24>a?a+3:Math.round(1.2*a);return{h:b,b:Math.round(.8*b),f:a}},rotCorr:function(a,b,d){var l=a;b&&d&&(l=Math.max(l*Math.cos(b*e),4));return{x:-a/3*Math.sin(b*e),y:l}},label:function(a,b,d,w,e,f,k,c,t){var h=this,J=h.styledMode,K=h.g("button"!==t&&"label"),q=K.text=h.text("",0,0,k).attr({zIndex:1}),r,v,G=0,I=3,m=0,g,p,O,T,x,Q={},R,S,z=/^url\((.*?)\)$/.test(w),y=J||z,n=function(){return J?r.strokeWidth()%2/2:(R?parseInt(R,10):0)%2/2};t&&K.addClass("highcharts-"+t);var L=function(){var a=q.element.style,b={};v=(void 0===g||void 0===p||x)&&D(q.textStr)&&q.getBBox();K.width=(g||v.width||0)+2*I+m;K.height=(p||v.height||0)+2*I;S=I+Math.min(h.fontMetrics(a&&a.fontSize,q).b,v?v.height:Infinity);y&&(r||(K.box=r=h.symbols[w]||z?h.symbol(w):h.rect(),r.addClass(("button"===t?"":"highcharts-label-box")+(t?" highcharts-"+t+"-box":"")),r.add(K),a=n(),b.x=a,b.y=(c?-S:0)+a),b.width=Math.round(K.width),b.height=Math.round(K.height),r.attr(E(b,Q)),Q={})};var C=function(){var a=m+I;var b=c?0:S;D(g)&&v&&("center"===x||"right"===x)&&(a+={center:.5,right:1}[x]*(g-v.width));if(a!==q.x||b!==q.y)q.attr("x",a),q.hasBoxWidthChanged&&(v=q.getBBox(!0),L()),void 0!==b&&q.attr("y",b);q.x=a;q.y=b};var A=function(a,b){r?r.attr(a,b):Q[a]=b};K.onAdd=function(){q.add(K);K.attr({text:a||0===a?a:"",x:b,y:d});r&&D(e)&&K.attr({anchorX:e,anchorY:f})};K.widthSetter=function(a){g=u(a)?a:null};K.heightSetter=function(a){p=a};K["text-alignSetter"]=function(a){x=a};K.paddingSetter=function(a){D(a)&&a!==I&&(I=K.padding=a,C())};K.paddingLeftSetter=function(a){D(a)&&a!==m&&(m=a,C())};K.alignSetter=function(a){a={left:0,center:.5,right:1}[a];a!==G&&(G=a,v&&K.attr({x:O}))};K.textSetter=function(a){void 0!==a&&q.attr({text:a});L();C()};K["stroke-widthSetter"]=function(a,b){a&&(y=!0);R=this["stroke-width"]=a;A(b,a)};J?K.rSetter=function(a,b){A(b,a)}:K.strokeSetter=K.fillSetter=K.rSetter=function(a,b){"r"!==b&&("fill"===b&&a&&(y=!0),K[b]=a);A(b,a)};K.anchorXSetter=function(a,b){e=K.anchorX=a;A(b,Math.round(a)-n()-O)};K.anchorYSetter=function(a,b){f=K.anchorY=a;A(b,a-T)};K.xSetter=function(a){K.x=a;G&&(a-=G*((g||v.width)+2*I),K["forceAnimate:x"]=!0);O=Math.round(a);K.attr("translateX",O)};K.ySetter=function(a){T=K.y=Math.round(a);K.attr("translateY",T)};var U=K.css;k={css:function(a){if(a){var b={};a=B(a);K.textProps.forEach(function(d){void 0!==a[d]&&(b[d]=a[d],delete a[d])});q.css(b);"width"in b&&L();"fontSize"in b&&(L(),C())}return U.call(K,a)},getBBox:function(){return{width:v.width+2*I,height:v.height+2*I,x:v.x-I,y:v.y-I}},destroy:function(){l(K.element,"mouseenter");l(K.element,"mouseleave");q&&(q=q.destroy());r&&(r=r.destroy());M.prototype.destroy.call(K);K=h=L=C=A=null}};J||(k.shadow=function(a){a&&(L(),r&&r.shadow(a));return K});return E(K,k)}});c.Renderer=n});N(H,"parts/Html.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.attr,D=n.defined,F=n.pInt,z=c.createElement,u=c.css,L=c.extend,y=c.isFirefox,C=c.isMS,x=c.isWebKit,m=c.pick,p=c.SVGElement;n=c.SVGRenderer;var g=c.win;L(p.prototype,{htmlCss:function(b){var a="SPAN"===this.element.tagName&&b&&"width"in b,d=m(a&&b.width,void 0);if(a){delete b.width;this.textWidth=d;var f=!0}b&&"ellipsis"===b.textOverflow&&(b.whiteSpace="nowrap",b.overflow="hidden");this.styles=L(this.styles,b);u(this.element,b);f&&this.htmlUpdateTransform();return this},htmlGetBBox:function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var b=this.renderer,a=this.element,d=this.translateX||0,f=this.translateY||0,e=this.x||0,c=this.y||0,r=this.textAlign||"left",m={left:0,center:.5,right:1}[r],q=this.styles,v=q&&q.whiteSpace;u(a,{marginLeft:d,marginTop:f});!b.styledMode&&this.shadows&&this.shadows.forEach(function(a){u(a,{marginLeft:d+1,marginTop:f+1})});this.inverted&&[].forEach.call(a.childNodes,function(d){b.invertChild(d,a)});if("SPAN"===a.tagName){q=this.rotation;var k=this.textWidth&&F(this.textWidth),t=[q,r,a.innerHTML,this.textWidth,this.textAlign].join(),B;(B=k!==this.oldTextWidth)&&!(B=k>this.oldTextWidth)&&((B=this.textPxLength)||(u(a,{width:"",whiteSpace:v||"nowrap"}),B=a.offsetWidth),B=B>k);B&&(/[ \-]/.test(a.textContent||a.innerText)||"ellipsis"===a.style.textOverflow)?(u(a,{width:k+"px",display:"block",whiteSpace:v||"normal"}),this.oldTextWidth=k,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1;t!==this.cTT&&(v=b.fontMetrics(a.style.fontSize,a).b,!D(q)||q===(this.oldRotation||0)&&r===this.oldAlign||this.setSpanRotation(q,m,v),this.getSpanCorrection(!D(q)&&this.textPxLength||a.offsetWidth,v,m,q,r));u(a,{left:e+(this.xCorr||0)+"px",top:c+(this.yCorr||0)+"px"});this.cTT=t;this.oldRotation=q;this.oldAlign=r}}else this.alignOnAdd=!0},setSpanRotation:function(b,a,d){var f={},e=this.renderer.getTransformKey();f[e]=f.transform="rotate("+b+"deg)";f[e+(y?"Origin":"-origin")]=f.transformOrigin=100*a+"% "+d+"px";u(this.element,f)},getSpanCorrection:function(b,a,d){this.xCorr=-b*d;this.yCorr=-a}});L(n.prototype,{getTransformKey:function(){return C&&!/Edge/.test(g.navigator.userAgent)?"-ms-transform":x?"-webkit-transform":y?"MozTransform":g.opera?"-o-transform":""},html:function(b,a,d){var f=this.createElement("span"),e=f.element,c=f.renderer,r=c.isSVG,g=function(a,b){["opacity","visibility"].forEach(function(d){a[d+"Setter"]=function(e,f,k){var w=a.div?a.div.style:b;p.prototype[d+"Setter"].call(this,e,f,k);w&&(w[f]=e)}});a.addedSetters=!0};f.textSetter=function(a){a!==e.innerHTML&&(delete this.bBox,delete this.oldTextWidth);this.textStr=a;e.innerHTML=m(a,"");f.doTransform=!0};r&&g(f,f.element.style);f.xSetter=f.ySetter=f.alignSetter=f.rotationSetter=function(a,b){"align"===b&&(b="textAlign");f[b]=a;f.doTransform=!0};f.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)};f.attr({text:b,x:Math.round(a),y:Math.round(d)}).css({position:"absolute"});c.styledMode||f.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize});e.style.whiteSpace="nowrap";f.css=f.htmlCss;r&&(f.add=function(a){var b=c.box.parentNode,d=[];if(this.parentGroup=a){var t=a.div;if(!t){for(;a;)d.push(a),a=a.parentGroup;d.reverse().forEach(function(a){function e(b,d){a[d]=b;"translateX"===d?l.left=b+"px":l.top=b+"px";a.doTransform=!0}var w=A(a.element,"class");t=a.div=a.div||z("div",w?{className:w}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,pointerEvents:a.styles&&a.styles.pointerEvents},t||b);var l=t.style;L(a,{classSetter:function(a){return function(b){this.element.setAttribute("class",b);a.className=b}}(t),on:function(){d[0].div&&f.on.apply({element:d[0].div},arguments);return a},translateXSetter:e,translateYSetter:e});a.addedSetters||g(a)})}}else t=b;t.appendChild(e);f.added=!0;f.alignOnAdd&&f.htmlUpdateTransform();return f});return f}})});N(H,"parts/Time.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isObject,F=n.objectEach,z=n.splat,u=c.extend,L=c.merge,y=c.pick,C=c.timeUnits,x=c.win;c.Time=function(c){this.update(c,!1)};c.Time.prototype={defaultOptions:{},update:function(c){var m=y(c&&c.useUTC,!0),g=this;this.options=c=L(!0,this.options||{},c);this.Date=c.Date||x.Date||Date;this.timezoneOffset=(this.useUTC=m)&&c.timezoneOffset;this.getTimezoneOffset=this.timezoneOffsetFunction();(this.variableTimezone=!(m&&!c.getTimezoneOffset&&!c.timezone))||this.timezoneOffset?(this.get=function(b,a){var d=a.getTime(),f=d-g.getTimezoneOffset(a);a.setTime(f);b=a["getUTC"+b]();a.setTime(d);return b},this.set=function(b,a,d){if("Milliseconds"===b||"Seconds"===b||"Minutes"===b&&0===a.getTimezoneOffset()%60)a["set"+b](d);else{var f=g.getTimezoneOffset(a);f=a.getTime()-f;a.setTime(f);a["setUTC"+b](d);b=g.getTimezoneOffset(a);f=a.getTime()+b;a.setTime(f)}}):m?(this.get=function(b,a){return a["getUTC"+b]()},this.set=function(b,a,d){return a["setUTC"+b](d)}):(this.get=function(b,a){return a["get"+b]()},this.set=function(b,a,d){return a["set"+b](d)})},makeTime:function(m,p,g,b,a,d){if(this.useUTC){var f=this.Date.UTC.apply(0,arguments);var e=this.getTimezoneOffset(f);f+=e;var h=this.getTimezoneOffset(f);e!==h?f+=h-e:e-36E5!==this.getTimezoneOffset(f-36E5)||c.isSafari||(f-=36E5)}else f=(new this.Date(m,p,y(g,1),y(b,0),y(a,0),y(d,0))).getTime();return f},timezoneOffsetFunction:function(){var m=this,p=this.options,g=x.moment;if(!this.useUTC)return function(b){return 6E4*(new Date(b)).getTimezoneOffset()};if(p.timezone){if(g)return function(b){return 6E4*-g.tz(b,p.timezone).utcOffset()};c.error(25)}return this.useUTC&&p.getTimezoneOffset?function(b){return 6E4*p.getTimezoneOffset(b)}:function(){return 6E4*(m.timezoneOffset||0)}},dateFormat:function(m,p,g){if(!A(p)||isNaN(p))return c.defaultOptions.lang.invalidDate||"";m=c.pick(m,"%Y-%m-%d %H:%M:%S");var b=this,a=new this.Date(p),d=this.get("Hours",a),f=this.get("Day",a),e=this.get("Date",a),h=this.get("Month",a),r=this.get("FullYear",a),E=c.defaultOptions.lang,q=E.weekdays,v=E.shortWeekdays,k=c.pad;a=c.extend({a:v?v[f]:q[f].substr(0,3),A:q[f],d:k(e),e:k(e,2," "),w:f,b:E.shortMonths[h],B:E.months[h],m:k(h+1),o:h+1,y:r.toString().substr(2,2),Y:r,H:k(d),k:d,I:k(d%12||12),l:d%12||12,M:k(b.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:k(a.getSeconds()),L:k(Math.floor(p%1E3),3)},c.dateFormats);F(a,function(a,d){for(;-1!==m.indexOf("%"+d);)m=m.replace("%"+d,"function"===typeof a?a.call(b,p):a)});return g?m.substr(0,1).toUpperCase()+m.substr(1):m},resolveDTLFormat:function(c){return D(c,!0)?c:(c=z(c),{main:c[0],from:c[1],to:c[2]})},getTimeTicks:function(c,p,g,b){var a=this,d=[],f={};var e=new a.Date(p);var h=c.unitRange,r=c.count||1,m;b=y(b,1);if(A(p)){a.set("Milliseconds",e,h>=C.second?0:r*Math.floor(a.get("Milliseconds",e)/r));h>=C.second&&a.set("Seconds",e,h>=C.minute?0:r*Math.floor(a.get("Seconds",e)/r));h>=C.minute&&a.set("Minutes",e,h>=C.hour?0:r*Math.floor(a.get("Minutes",e)/r));h>=C.hour&&a.set("Hours",e,h>=C.day?0:r*Math.floor(a.get("Hours",e)/r));h>=C.day&&a.set("Date",e,h>=C.month?1:Math.max(1,r*Math.floor(a.get("Date",e)/r)));if(h>=C.month){a.set("Month",e,h>=C.year?0:r*Math.floor(a.get("Month",e)/r));var q=a.get("FullYear",e)}h>=C.year&&a.set("FullYear",e,q-q%r);h===C.week&&(q=a.get("Day",e),a.set("Date",e,a.get("Date",e)-q+b+(q<b?-7:0)));q=a.get("FullYear",e);b=a.get("Month",e);var v=a.get("Date",e),k=a.get("Hours",e);p=e.getTime();a.variableTimezone&&(m=g-p>4*C.month||a.getTimezoneOffset(p)!==a.getTimezoneOffset(g));p=e.getTime();for(e=1;p<g;)d.push(p),p=h===C.year?a.makeTime(q+e*r,0):h===C.month?a.makeTime(q,b+e*r):!m||h!==C.day&&h!==C.week?m&&h===C.hour&&1<r?a.makeTime(q,b,v,k+e*r):p+h*r:a.makeTime(q,b,v+e*r*(h===C.day?1:7)),e++;d.push(p);h<=C.hour&&1E4>d.length&&d.forEach(function(b){0===b%18E5&&"000000000"===a.dateFormat("%H%M%S%L",b)&&(f[b]="day")})}d.info=u(c,{higherRanks:f,totalRange:h*r});return d}}});N(H,"parts/Options.js",[H["parts/Globals.js"]],function(c){var n=c.color,A=c.merge;c.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:c.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:c.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:c.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:n("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}};c.setOptions=function(n){c.defaultOptions=A(!0,c.defaultOptions,n);c.time.update(A(c.defaultOptions.global,c.defaultOptions.time),!1);return c.defaultOptions};c.getOptions=function(){return c.defaultOptions};c.defaultPlotOptions=c.defaultOptions.plotOptions;c.time=new c.Time(A(c.defaultOptions.global,c.defaultOptions.time));c.dateFormat=function(n,A,z){return c.time.dateFormat(n,A,z)};""});N(H,"parts/Tick.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isNumber,F=c.correctFloat,z=c.destroyObjectProperties,u=c.fireEvent,L=c.merge,y=c.pick,C=c.deg2rad;c.Tick=function(c,m,p,g,b){this.axis=c;this.pos=m;this.type=p||"";this.isNewLabel=this.isNew=!0;this.parameters=b||{};this.tickmarkOffset=this.parameters.tickmarkOffset;this.options=this.parameters.options;p||g||this.addLabel()};c.Tick.prototype={addLabel:function(){var x=this,m=x.axis,p=m.options,g=m.chart,b=m.categories,a=m.names,d=x.pos,f=y(x.options&&x.options.labels,p.labels),e=m.tickPositions,h=d===e[0],r=d===e[e.length-1];b=this.parameters.category||(b?y(b[d],a[d],d):d);var E=x.label;e=e.info;var q,v;if(m.isDatetimeAxis&&e){var k=g.time.resolveDTLFormat(p.dateTimeLabelFormats[!p.grid&&e.higherRanks[d]||e.unitName]);var t=k.main}x.isFirst=h;x.isLast=r;x.formatCtx={axis:m,chart:g,isFirst:h,isLast:r,dateTimeLabelFormat:t,tickPositionInfo:e,value:m.isLog?F(m.lin2log(b)):b,pos:d};p=m.labelFormatter.call(x.formatCtx,this.formatCtx);if(v=k&&k.list)x.shortenLabel=function(){for(q=0;q<v.length;q++)if(E.attr({text:m.labelFormatter.call(c.extend(x.formatCtx,{dateTimeLabelFormat:v[q]}))}),E.getBBox().width<m.getSlotWidth(x)-2*y(f.padding,5))return;E.attr({text:""})};if(A(E))E&&E.textStr!==p&&(!E.textWidth||f.style&&f.style.width||E.styles.width||E.css({width:null}),E.attr({text:p}),E.textPxLength=E.getBBox().width);else{if(x.label=E=A(p)&&f.enabled?g.renderer.text(p,0,0,f.useHTML).add(m.labelGroup):null)g.styledMode||E.css(L(f.style)),E.textPxLength=E.getBBox().width;x.rotation=0}},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(c){var m=this.axis,p=m.options.labels,g=c.x,b=m.chart.chartWidth,a=m.chart.spacing,d=y(m.labelLeft,Math.min(m.pos,a[3]));a=y(m.labelRight,Math.max(m.isRadial?0:m.pos+m.len,b-a[1]));var f=this.label,e=this.rotation,h={left:0,center:.5,right:1}[m.labelAlign||f.attr("align")],r=f.getBBox().width,E=m.getSlotWidth(this),q=E,v=1,k,t={};if(e||"justify"!==y(p.overflow,"justify"))0>e&&g-h*r<d?k=Math.round(g/Math.cos(e*C)-d):0<e&&g+h*r>a&&(k=Math.round((b-g)/Math.cos(e*C)));else if(b=g+(1-h)*r,g-h*r<d?q=c.x+q*(1-h)-d:b>a&&(q=a-c.x+q*h,v=-1),q=Math.min(E,q),q<E&&"center"===m.labelAlign&&(c.x+=v*(E-q-h*(E-Math.min(r,q)))),r>q||m.autoRotation&&(f.styles||{}).width)k=q;k&&(this.shortenLabel?this.shortenLabel():(t.width=Math.floor(k),(p.style||{}).textOverflow||(t.textOverflow="ellipsis"),f.css(t)))},getPosition:function(x,m,p,g){var b=this.axis,a=b.chart,d=g&&a.oldChartHeight||a.chartHeight;x={x:x?c.correctFloat(b.translate(m+p,null,null,g)+b.transB):b.left+b.offset+(b.opposite?(g&&a.oldChartWidth||a.chartWidth)-b.right-b.left:0),y:x?d-b.bottom+b.offset-(b.opposite?b.height:0):c.correctFloat(d-b.translate(m+p,null,null,g)-b.transB)};x.y=Math.max(Math.min(x.y,1E5),-1E5);u(this,"afterGetPosition",{pos:x});return x},getLabelPosition:function(c,m,p,g,b,a,d,f){var e=this.axis,h=e.transA,r=e.isLinked&&e.linkedParent?e.linkedParent.reversed:e.reversed,E=e.staggerLines,q=e.tickRotCorr||{x:0,y:0},v=b.y,k=g||e.reserveSpaceDefault?0:-e.labelOffset*("center"===e.labelAlign?.5:1),t={};A(v)||(v=0===e.side?p.rotation?-8:-p.getBBox().height:2===e.side?q.y+8:Math.cos(p.rotation*C)*(q.y-p.getBBox(!1,0).height/2));c=c+b.x+k+q.x-(a&&g?a*h*(r?-1:1):0);m=m+v-(a&&!g?a*h*(r?1:-1):0);E&&(p=d/(f||1)%E,e.opposite&&(p=E-p-1),m+=e.labelOffset/E*p);t.x=c;t.y=Math.round(m);u(this,"afterGetLabelPosition",{pos:t,tickmarkOffset:a,index:d});return t},getMarkPath:function(c,m,p,g,b,a){return a.crispLine(["M",c,m,"L",c+(b?0:-p),m+(b?p:0)],g)},renderGridLine:function(c,m,p){var g=this.axis,b=g.options,a=this.gridLine,d={},f=this.pos,e=this.type,h=y(this.tickmarkOffset,g.tickmarkOffset),r=g.chart.renderer,E=e?e+"Grid":"grid",q=b[E+"LineWidth"],v=b[E+"LineColor"];b=b[E+"LineDashStyle"];a||(g.chart.styledMode||(d.stroke=v,d["stroke-width"]=q,b&&(d.dashstyle=b)),e||(d.zIndex=1),c&&(m=0),this.gridLine=a=r.path().attr(d).addClass("highcharts-"+(e?e+"-":"")+"grid-line").add(g.gridGroup));if(a&&(p=g.getPlotLinePath({value:f+
h,lineWidth:a.strokeWidth()*p,force:"pass",old:c})))a[c||this.isNew?"attr":"animate"]({d:p,opacity:m})},renderMark:function(c,m,p){var g=this.axis,b=g.options,a=g.chart.renderer,d=this.type,f=d?d+"Tick":"tick",e=g.tickSize(f),h=this.mark,r=!h,E=c.x;c=c.y;var q=y(b[f+"Width"],!d&&g.isXAxis?1:0);b=b[f+"Color"];e&&(g.opposite&&(e[0]=-e[0]),r&&(this.mark=h=a.path().addClass("highcharts-"+(d?d+"-":"")+"tick").add(g.axisGroup),g.chart.styledMode||h.attr({stroke:b,"stroke-width":q})),h[r?"attr":"animate"]({d:this.getMarkPath(E,c,e[0],h.strokeWidth()*p,g.horiz,a),opacity:m}))},renderLabel:function(c,m,p,g){var b=this.axis,a=b.horiz,d=b.options,f=this.label,e=d.labels,h=e.step;b=y(this.tickmarkOffset,b.tickmarkOffset);var r=!0,E=c.x;c=c.y;f&&D(E)&&(f.xy=c=this.getLabelPosition(E,c,f,a,e,b,g,h),this.isFirst&&!this.isLast&&!y(d.showFirstLabel,1)||this.isLast&&!this.isFirst&&!y(d.showLastLabel,1)?r=!1:!a||e.step||e.rotation||m||0===p||this.handleOverflow(c),h&&g%h&&(r=!1),r&&D(c.y)?(c.opacity=p,f[this.isNewLabel?"attr":"animate"](c),this.isNewLabel=!1):(f.attr("y",-9999),this.isNewLabel=!0))},render:function(x,m,p){var g=this.axis,b=g.horiz,a=this.pos,d=y(this.tickmarkOffset,g.tickmarkOffset);a=this.getPosition(b,a,d,m);d=a.x;var f=a.y;g=b&&d===g.pos+g.len||!b&&f===g.pos?-1:1;p=y(p,1);this.isActive=!0;this.renderGridLine(m,p,g);this.renderMark(a,p,g);this.renderLabel(a,m,p,x);this.isNew=!1;c.fireEvent(this,"afterRender")},destroy:function(){z(this,this.axis)}}});N(H,"parts/Axis.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isArray,F=n.isNumber,z=n.isString,u=n.objectEach,L=n.splat,y=c.addEvent,C=c.animObject,x=c.arrayMax,m=c.arrayMin,p=c.color,g=c.correctFloat,b=c.defaultOptions,a=c.deg2rad,d=c.destroyObjectProperties,f=c.extend,e=c.fireEvent,h=c.format,r=c.getMagnitude,E=c.merge,q=c.normalizeTickInterval,v=c.pick,k=c.removeEvent,t=c.seriesTypes,B=c.syncTimeout,I=c.Tick;n=function(){this.init.apply(this,arguments)};c.extend(n.prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return c.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(a,b){var d=b.isX,l=this;l.chart=a;l.horiz=a.inverted&&!l.isZAxis?!d:d;l.isXAxis=d;l.coll=l.coll||(d?"xAxis":"yAxis");e(this,"init",{userOptions:b});l.opposite=b.opposite;l.side=b.side||(l.horiz?l.opposite?0:2:l.opposite?1:3);l.setOptions(b);var w=this.options,f=w.type;l.labelFormatter=w.labels.formatter||l.defaultLabelFormatter;l.userOptions=b;l.minPixelPadding=0;l.reversed=w.reversed;l.visible=!1!==w.visible;l.zoomEnabled=!1!==w.zoomEnabled;l.hasNames="category"===f||!0===w.categories;l.categories=w.categories||l.hasNames;l.names||(l.names=[],l.names.keys={});l.plotLinesAndBandsGroups={};l.isLog="logarithmic"===f;l.isDatetimeAxis="datetime"===f;l.positiveValuesOnly=l.isLog&&!l.allowNegativeLog;l.isLinked=A(w.linkedTo);l.ticks={};l.labelEdge=[];l.minorTicks={};l.plotLinesAndBands=[];l.alternateBands={};l.len=0;l.minRange=l.userMinRange=w.minRange||w.maxZoom;l.range=w.range;l.offset=w.offset||0;l.stacks={};l.oldStacks={};l.stacksTouched=0;l.max=null;l.min=null;l.crosshair=v(w.crosshair,L(a.options.tooltip.crosshairs)[d?0:1],!1);b=l.options.events;-1===a.axes.indexOf(l)&&(d?a.axes.splice(a.xAxis.length,0,l):a.axes.push(l),a[l.coll].push(l));l.series=l.series||[];a.inverted&&!l.isZAxis&&d&&void 0===l.reversed&&(l.reversed=!0);u(b,function(a,b){c.isFunction(a)&&y(l,b,a)});l.lin2log=w.linearToLogConverter||l.lin2log;l.isLog&&(l.val2lin=l.log2lin,l.lin2val=l.lin2log);e(this,"afterInit")},setOptions:function(a){this.options=E(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],E(b[this.coll],a));e(this,"afterSetOptions",{userOptions:a})},defaultLabelFormatter:function(){var a=this.axis,d=this.value,e=a.chart.time,f=a.categories,k=this.dateTimeLabelFormat,t=b.lang,B=t.numericSymbols;t=t.numericSymbolMagnitude||1E3;var r=B&&B.length,q=a.options.labels.format;a=a.isLog?Math.abs(d):a.tickInterval;if(q)var v=h(q,this,e);else if(f)v=d;else if(k)v=e.dateFormat(k,d);else if(r&&1E3<=a)for(;r--&&void 0===v;)e=Math.pow(t,r+1),a>=e&&0===10*d%e&&null!==B[r]&&0!==d&&(v=c.numberFormat(d/e,-1)+B[r]);void 0===v&&(v=1E4<=Math.abs(d)?c.numberFormat(d,-1):c.numberFormat(d,-1,void 0,""));return v},getSeriesExtremes:function(){var a=this,b=a.chart,d;e(this,"getSeriesExtremes",null,function(){a.hasVisibleSeries=!1;a.dataMin=a.dataMax=a.threshold=null;a.softThreshold=!a.isXAxis;a.buildStacks&&a.buildStacks();a.series.forEach(function(l){if(l.visible||!b.options.chart.ignoreHiddenSeries){var e=l.options,w=e.threshold;a.hasVisibleSeries=!0;a.positiveValuesOnly&&0>=w&&(w=null);if(a.isXAxis){if(e=l.xData,e.length){d=l.getXExtremes(e);var f=d.min;var c=d.max;F(f)||f instanceof Date||(e=e.filter(F),d=l.getXExtremes(e),f=d.min,c=d.max);e.length&&(a.dataMin=Math.min(v(a.dataMin,f),f),a.dataMax=Math.max(v(a.dataMax,c),c))}}else if(l.getExtremes(),c=l.dataMax,f=l.dataMin,A(f)&&A(c)&&(a.dataMin=Math.min(v(a.dataMin,f),f),a.dataMax=Math.max(v(a.dataMax,c),c)),A(w)&&(a.threshold=w),!e.softThreshold||a.positiveValuesOnly)a.softThreshold=!1}})});e(this,"afterGetSeriesExtremes")},translate:function(a,b,d,e,f,c){var l=this.linkedParent||this,w=1,k=0,t=e?l.oldTransA:l.transA;e=e?l.oldMin:l.min;var h=l.minPixelPadding;f=(l.isOrdinal||l.isBroken||l.isLog&&f)&&l.lin2val;t||(t=l.transA);d&&(w*=-1,k=l.len);l.reversed&&(w*=-1,k-=w*(l.sector||l.len));b?(a=(a*w+k-h)/t+e,f&&(a=l.lin2val(a))):(f&&(a=l.val2lin(a)),a=F(e)?w*(a-e)*t+k+w*h+(F(c)?t*c:0):void 0);return a},toPixels:function(a,b){return this.translate(a,!1,!this.horiz,null,!0)+(b?0:this.pos)},toValue:function(a,b){return this.translate(a-(b?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(a){var b=this,d=b.chart,f=b.left,w=b.top,c=a.old,k=a.value,t=a.translatedValue,h=a.lineWidth,B=a.force,r,q,I,m,g=c&&d.oldChartHeight||d.chartHeight,p=c&&d.oldChartWidth||d.chartWidth,E,x=b.transB,u=function(a,b,d){if("pass"!==B&&a<b||a>d)B?a=Math.min(Math.max(b,a),d):E=!0;return a};a={value:k,lineWidth:h,old:c,force:B,acrossPanes:a.acrossPanes,translatedValue:t};e(this,"getPlotLinePath",a,function(a){t=v(t,b.translate(k,null,null,c));t=Math.min(Math.max(-1E5,t),1E5);r=I=Math.round(t+x);q=m=Math.round(g-t-x);F(t)?b.horiz?(q=w,m=g-b.bottom,r=I=u(r,f,f+b.width)):(r=f,I=p-b.right,q=m=u(q,w,w+b.height)):(E=!0,B=!1);a.path=E&&!B?null:d.renderer.crispLine(["M",r,q,"L",I,m],h||1)});return a.path},getLinearTickPositions:function(a,b,d){var l=g(Math.floor(b/a)*a);d=g(Math.ceil(d/a)*a);var e=[],f;g(l+a)===l&&(f=20);if(this.single)return[b];for(b=l;b<=d;){e.push(b);b=g(b+a,f);if(b===w)break;var w=b}return e},getMinorTickInterval:function(){var a=this.options;return!0===a.minorTicks?v(a.minorTickInterval,"auto"):!1===a.minorTicks?null:a.minorTickInterval},getMinorTickPositions:function(){var a=this,b=a.options,d=a.tickPositions,e=a.minorTickInterval,f=[],c=a.pointRangePadding||0,k=a.min-c;c=a.max+c;var t=c-k;if(t&&t/e<a.len/3)if(a.isLog)this.paddedTicks.forEach(function(b,d,l){d&&f.push.apply(f,a.getLogTickPositions(e,l[d-1],l[d],!0))});else if(a.isDatetimeAxis&&"auto"===this.getMinorTickInterval())f=f.concat(a.getTimeTicks(a.normalizeTimeTickInterval(e),k,c,b.startOfWeek));else for(b=k+(d[0]-k)%e;b<=c&&b!==f[0];b+=e)f.push(b);0!==f.length&&a.trimTicks(f);return f},adjustForMinRange:function(){var a=this.options,b=this.min,d=this.max,e,f,c,k,t;this.isXAxis&&void 0===this.minRange&&!this.isLog&&(A(a.min)||A(a.max)?this.minRange=null:(this.series.forEach(function(a){k=a.xData;for(f=t=a.xIncrement?1:k.length-1;0<f;f--)if(c=k[f]-k[f-1],void 0===e||c<e)e=c}),this.minRange=Math.min(5*e,this.dataMax-this.dataMin)));if(d-b<this.minRange){var h=this.dataMax-this.dataMin>=this.minRange;var B=this.minRange;var r=(B-d+b)/2;r=[b-r,v(a.min,b-r)];h&&(r[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin);b=x(r);d=[b+B,v(a.max,b+B)];h&&(d[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax);d=m(d);d-b<B&&(r[0]=d-B,r[1]=v(a.min,d-B),b=x(r))}this.min=b;this.max=d},getClosest:function(){var a;this.categories?a=1:this.series.forEach(function(b){var d=b.closestPointRange,l=b.visible||!b.chart.options.chart.ignoreHiddenSeries;!b.noSharedTooltip&&A(d)&&l&&(a=A(a)?Math.min(a,d):d)});return a},nameToX:function(a){var b=D(this.categories),d=b?this.categories:this.names,e=a.options.x;a.series.requireSorting=!1;A(e)||(e=!1===this.options.uniqueNames?a.series.autoIncrement():b?d.indexOf(a.name):v(d.keys[a.name],-1));if(-1===e){if(!b)var f=d.length}else f=e;void 0!==f&&(this.names[f]=a.name,this.names.keys[a.name]=f);return f},updateNames:function(){var a=this,b=this.names;0<b.length&&(Object.keys(b.keys).forEach(function(a){delete b.keys[a]}),b.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(b){b.xIncrement=null;if(!b.points||b.isDirtyData)a.max=Math.max(a.max,b.xData.length-1),b.processData(),b.generatePoints();b.data.forEach(function(d,l){if(d&&d.options&&void 0!==d.name){var e=a.nameToX(d);void 0!==e&&e!==d.x&&(d.x=e,b.xData[l]=e)}})}))},setAxisTranslation:function(a){var b=this,d=b.max-b.min,f=b.axisPointRange||0,c=0,w=0,k=b.linkedParent,h=!!b.categories,B=b.transA,r=b.isXAxis;if(r||h||f){var q=b.getClosest();k?(c=k.minPointOffset,w=k.pointRangePadding):b.series.forEach(function(a){var d=h?1:r?v(a.options.pointRange,q,0):b.axisPointRange||0,l=a.options.pointPlacement;f=Math.max(f,d);if(!b.single||h)a=t.xrange&&a instanceof t.xrange?!r:r,c=Math.max(c,a&&z(l)?0:d/2),w=Math.max(w,a&&"on"===l?0:d)});k=b.ordinalSlope&&q?b.ordinalSlope/q:1;b.minPointOffset=c*=k;b.pointRangePadding=w*=k;b.pointRange=Math.min(f,d);r&&(b.closestPointRange=q)}a&&(b.oldTransA=B);b.translationSlope=b.transA=B=b.staticScale||b.len/(d+w||1);b.transB=b.horiz?b.left:b.bottom;b.minPixelPadding=B*c;e(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(a){var b=this,d=b.chart,f=b.options,w=b.isLog,k=b.isDatetimeAxis,t=b.isXAxis,h=b.isLinked,B=f.maxPadding,I=f.minPadding,m=f.tickInterval,p=f.tickPixelInterval,E=b.categories,x=F(b.threshold)?b.threshold:null,u=b.softThreshold;k||E||h||this.getTickAmount();var z=v(b.userMin,f.min);var y=v(b.userMax,f.max);if(h){b.linkedParent=d[b.coll][f.linkedTo];var n=b.linkedParent.getExtremes();b.min=v(n.min,n.dataMin);b.max=v(n.max,n.dataMax);f.type!==b.linkedParent.options.type&&c.error(11,1,d)}else{if(!u&&A(x))if(b.dataMin>=x)n=x,I=0;else if(b.dataMax<=x){var L=x;B=0}b.min=v(z,n,b.dataMin);b.max=v(y,L,b.dataMax)}w&&(b.positiveValuesOnly&&!a&&0>=Math.min(b.min,v(b.dataMin,b.min))&&c.error(10,1,d),b.min=g(b.log2lin(b.min),15),b.max=g(b.log2lin(b.max),15));b.range&&A(b.max)&&(b.userMin=b.min=z=Math.max(b.dataMin,b.minFromRange()),b.userMax=y=b.max,b.range=null);e(b,"foundExtremes");b.beforePadding&&b.beforePadding();b.adjustForMinRange();!(E||b.axisPointRange||b.usePercentage||h)&&A(b.min)&&A(b.max)&&(d=b.max-b.min)&&(!A(z)&&I&&(b.min-=d*I),!A(y)&&B&&(b.max+=d*B));F(f.softMin)&&!F(b.userMin)&&f.softMin<b.min&&(b.min=z=f.softMin);F(f.softMax)&&!F(b.userMax)&&f.softMax>b.max&&(b.max=y=f.softMax);F(f.floor)&&(b.min=Math.min(Math.max(b.min,f.floor),Number.MAX_VALUE));F(f.ceiling)&&(b.max=Math.max(Math.min(b.max,f.ceiling),v(b.userMax,-Number.MAX_VALUE)));u&&A(b.dataMin)&&(x=x||0,!A(z)&&b.min<x&&b.dataMin>=x?b.min=b.options.minRange?Math.min(x,b.max-b.minRange):x:!A(y)&&b.max>x&&b.dataMax<=x&&(b.max=b.options.minRange?Math.max(x,b.min+b.minRange):x));b.tickInterval=b.min===b.max||void 0===b.min||void 0===b.max?1:h&&!m&&p===b.linkedParent.options.tickPixelInterval?m=b.linkedParent.tickInterval:v(m,this.tickAmount?(b.max-b.min)/Math.max(this.tickAmount-1,1):void 0,E?1:(b.max-b.min)*p/Math.max(b.len,p));t&&!a&&b.series.forEach(function(a){a.processData(b.min!==b.oldMin||b.max!==b.oldMax)});b.setAxisTranslation(!0);b.beforeSetTickPositions&&b.beforeSetTickPositions();b.postProcessTickInterval&&(b.tickInterval=b.postProcessTickInterval(b.tickInterval));b.pointRange&&!m&&(b.tickInterval=Math.max(b.pointRange,b.tickInterval));a=v(f.minTickInterval,b.isDatetimeAxis&&b.closestPointRange);!m&&b.tickInterval<a&&(b.tickInterval=a);k||w||m||(b.tickInterval=q(b.tickInterval,null,r(b.tickInterval),v(f.allowDecimals,!(.5<b.tickInterval&&5>b.tickInterval&&1E3<b.max&&9999>b.max)),!!this.tickAmount));this.tickAmount||(b.tickInterval=b.unsquish());this.setTickPositions()},setTickPositions:function(){var a=this.options,b=a.tickPositions;var d=this.getMinorTickInterval();var f=a.tickPositioner,k=a.startOnTick,t=a.endOnTick;this.tickmarkOffset=this.categories&&"between"===a.tickmarkPlacement&&1===this.tickInterval?.5:0;this.minorTickInterval="auto"===d&&this.tickInterval?this.tickInterval/5:d;this.single=this.min===this.max&&A(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==a.allowDecimals);this.tickPositions=d=b&&b.slice();!d&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(d=[this.min,this.max],c.error(19,!1,this.chart)):d=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,a.units),this.min,this.max,a.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),d.length>this.len&&(d=[d[0],d.pop()],d[0]===d[1]&&(d.length=1)),this.tickPositions=d,f&&(f=f.apply(this,[this.min,this.max])))&&(this.tickPositions=d=f);this.paddedTicks=d.slice(0);this.trimTicks(d,k,t);this.isLinked||(this.single&&2>d.length&&!this.categories&&(this.min-=.5,this.max+=.5),b||f||this.adjustTickAmount());e(this,"afterSetTickPositions")},trimTicks:function(a,b,d){var f=a[0],c=a[a.length-1],l=this.minPointOffset||0;e(this,"trimTicks");if(!this.isLinked){if(b&&-Infinity!==f)this.min=f;else for(;this.min-l>a[0];)a.shift();if(d)this.max=c;else for(;this.max+l<a[a.length-1];)a.pop();0===a.length&&A(f)&&!this.options.tickPositions&&a.push((c+f)/2)}},alignToOthers:function(){var a={},b,d=this.options;!1===this.chart.options.chart.alignTicks||!1===d.alignTicks||!1===d.startOnTick||!1===d.endOnTick||this.isLog||this.chart[this.coll].forEach(function(d){var f=d.options;f=[d.horiz?f.left:f.top,f.width,f.height,f.pane].join();d.series.length&&(a[f]?b=!0:a[f]=1)});return b},getTickAmount:function(){var a=this.options,b=a.tickAmount,d=a.tickPixelInterval;!A(a.tickInterval)&&this.len<d&&!this.isRadial&&!this.isLog&&a.startOnTick&&a.endOnTick&&(b=2);!b&&this.alignToOthers()&&(b=Math.ceil(this.len/d)+1);4>b&&(this.finalTickAmt=b,b=5);this.tickAmount=b},adjustTickAmount:function(){var a=this.options,b=this.tickInterval,d=this.tickPositions,f=this.tickAmount,e=this.finalTickAmt,c=d&&d.length,k=v(this.threshold,this.softThreshold?0:null),t;if(this.hasData()){if(c<f){for(t=this.min;d.length<f;)d.length%2||t===k?d.push(g(d[d.length-1]+b)):d.unshift(g(d[0]-
b));this.transA*=(c-1)/(f-1);this.min=a.startOnTick?d[0]:Math.min(this.min,d[0]);this.max=a.endOnTick?d[d.length-1]:Math.max(this.max,d[d.length-1])}else c>f&&(this.tickInterval*=2,this.setTickPositions());if(A(e)){for(b=a=d.length;b--;)(3===e&&1===b%2||2>=e&&0<b&&b<a-1)&&d.splice(b,1);this.finalTickAmt=void 0}}},setScale:function(){var a=this.series.some(function(a){return a.isDirtyData||a.isDirty||a.xAxis&&a.xAxis.isDirty}),b;this.oldMin=this.min;this.oldMax=this.max;this.oldAxisLength=this.len;this.setAxisSize();(b=this.len!==this.oldAxisLength)||a||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=b||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks();e(this,"afterSetScale")},setExtremes:function(a,b,d,c,k){var l=this,w=l.chart;d=v(d,!0);l.series.forEach(function(a){delete a.kdTree});k=f(k,{min:a,max:b});e(l,"setExtremes",k,function(){l.userMin=a;l.userMax=b;l.eventArgs=k;d&&w.redraw(c)})},zoom:function(a,b){var d=this.dataMin,f=this.dataMax,c=this.options,k=Math.min(d,v(c.min,d)),l=Math.max(f,v(c.max,f));a={newMin:a,newMax:b};e(this,"zoom",a,function(a){var b=a.newMin,e=a.newMax;if(b!==this.min||e!==this.max)this.allowZoomOutside||(A(d)&&(b<k&&(b=k),b>l&&(b=l)),A(f)&&(e<k&&(e=k),e>l&&(e=l))),this.displayBtn=void 0!==b||void 0!==e,this.setExtremes(b,e,!1,void 0,{trigger:"zoom"});a.zoomed=!0});return a.zoomed},setAxisSize:function(){var a=this.chart,b=this.options,d=b.offsets||[0,0,0,0],f=this.horiz,e=this.width=Math.round(c.relativeLength(v(b.width,a.plotWidth-d[3]+d[1]),a.plotWidth)),k=this.height=Math.round(c.relativeLength(v(b.height,a.plotHeight-d[0]+d[2]),a.plotHeight)),t=this.top=Math.round(c.relativeLength(v(b.top,a.plotTop+d[0]),a.plotHeight,a.plotTop));b=this.left=Math.round(c.relativeLength(v(b.left,a.plotLeft+d[3]),a.plotWidth,a.plotLeft));this.bottom=a.chartHeight-k-t;this.right=a.chartWidth-e-b;this.len=Math.max(f?e:k,0);this.pos=f?b:t},getExtremes:function(){var a=this.isLog;return{min:a?g(this.lin2log(this.min)):this.min,max:a?g(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(a){var b=this.isLog,d=b?this.lin2log(this.min):this.min;b=b?this.lin2log(this.max):this.max;null===a||-Infinity===a?a=d:Infinity===a?a=b:d>a?a=d:b<a&&(a=b);return this.translate(a,0,1,0,1)},autoLabelAlign:function(a){var b=(v(a,0)-90*this.side+720)%360;a={align:"center"};e(this,"autoLabelAlign",a,function(a){15<b&&165>b?a.align="right":195<b&&345>b&&(a.align="left")});return a.align},tickSize:function(a){var b=this.options,d=b[a+"Length"],f=v(b[a+"Width"],"tick"===a&&this.isXAxis&&!this.categories?1:0);if(f&&d){"inside"===b[a+"Position"]&&(d=-d);var c=[d,f]}a={tickSize:c};e(this,"afterTickSize",a);return a.tickSize},labelMetrics:function(){var a=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[a]&&this.ticks[a].label)},unsquish:function(){var b=this.options.labels,d=this.horiz,f=this.tickInterval,e=f,c=this.len/(((this.categories?1:0)+this.max-this.min)/f),k,t=b.rotation,h=this.labelMetrics(),B,r=Number.MAX_VALUE,q,I=this.max-this.min,m=function(a){var b=a/(c||1);b=1<b?Math.ceil(b):1;b*f>I&&Infinity!==a&&Infinity!==c&&I&&(b=Math.ceil(I/f));return g(b*f)};d?(q=!b.staggerLines&&!b.step&&(A(t)?[t]:c<v(b.autoRotationLimit,80)&&b.autoRotation))&&q.forEach(function(b){if(b===t||b&&-90<=b&&90>=b){B=m(Math.abs(h.h/Math.sin(a*b)));var d=B+Math.abs(b/360);d<r&&(r=d,k=b,e=B)}}):b.step||(e=m(h.h));this.autoRotation=q;this.labelRotation=v(k,t);return e},getSlotWidth:function(a){var b=this.chart,d=this.horiz,f=this.options.labels,e=Math.max(this.tickPositions.length-(this.categories?0:1),1),c=b.margin[3];return a&&a.slotWidth||d&&2>(f.step||0)&&!f.rotation&&(this.staggerLines||1)*this.len/e||!d&&(f.style&&parseInt(f.style.width,10)||c&&c-b.spacing[3]||.33*b.chartWidth)},renderUnsquish:function(){var a=this.chart,b=a.renderer,d=this.tickPositions,f=this.ticks,e=this.options.labels,c=e&&e.style||{},k=this.horiz,t=this.getSlotWidth(),h=Math.max(1,Math.round(t-2*(e.padding||5))),B={},r=this.labelMetrics(),q=e.style&&e.style.textOverflow,v=0;z(e.rotation)||(B.rotation=e.rotation||0);d.forEach(function(a){(a=f[a])&&a.label&&a.label.textPxLength>v&&(v=a.label.textPxLength)});this.maxLabelLength=v;if(this.autoRotation)v>h&&v>r.h?B.rotation=this.labelRotation:this.labelRotation=0;else if(t){var I=h;if(!q){var m="clip";for(h=d.length;!k&&h--;){var g=d[h];if(g=f[g].label)g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>t&&g.css({width:t+"px"}),g.getBBox().height>this.len/d.length-(r.h-r.f)&&(g.specificTextOverflow="ellipsis")}}}B.rotation&&(I=v>.5*a.chartHeight?.33*a.chartHeight:v,q||(m="ellipsis"));if(this.labelAlign=e.align||this.autoLabelAlign(this.labelRotation))B.align=this.labelAlign;d.forEach(function(a){var b=(a=f[a])&&a.label,d=c.width,e={};b&&(b.attr(B),a.shortenLabel?a.shortenLabel():I&&!d&&"nowrap"!==c.whiteSpace&&(I<b.textPxLength||"SPAN"===b.element.tagName)?(e.width=I,q||(e.textOverflow=b.specificTextOverflow||m),b.css(e)):b.styles&&b.styles.width&&!e.width&&!d&&b.css({width:null}),delete b.specificTextOverflow,a.rotation=B.rotation)},this);this.tickRotCorr=b.rotCorr(r.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(a){return a.hasData()})||this.options.showEmpty&&A(this.min)&&A(this.max)},addTitle:function(a){var b=this.chart.renderer,d=this.horiz,f=this.opposite,e=this.options.title,c,k=this.chart.styledMode;this.axisTitle||((c=e.textAlign)||(c=(d?{low:"left",middle:"center",high:"right"}:{low:f?"right":"left",middle:"center",high:f?"left":"right"})[e.align]),this.axisTitle=b.text(e.text,0,0,e.useHTML).attr({zIndex:7,rotation:e.rotation||0,align:c}).addClass("highcharts-axis-title"),k||this.axisTitle.css(E(e.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0);k||e.style.width||this.isRadial||this.axisTitle.css({width:this.len});this.axisTitle[a?"show":"hide"](a)},generateTick:function(a){var b=this.ticks;b[a]?b[a].addLabel():b[a]=new I(this,a)},getOffset:function(){var a=this,b=a.chart,d=b.renderer,f=a.options,c=a.tickPositions,k=a.ticks,t=a.horiz,h=a.side,B=b.inverted&&!a.isZAxis?[1,0,3,2][h]:h,r,q=0,I=0,m=f.title,g=f.labels,p=0,E=b.axisOffset;b=b.clipOffset;var x=[-1,1,1,-1][h],z=f.className,y=a.axisParent;var n=a.hasData();a.showAxis=r=n||v(f.showEmpty,!0);a.staggerLines=a.horiz&&g.staggerLines;a.axisGroup||(a.gridGroup=d.g("grid").attr({zIndex:f.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(z||"")).add(y),a.axisGroup=d.g("axis").attr({zIndex:f.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(z||"")).add(y),a.labelGroup=d.g("axis-labels").attr({zIndex:g.zIndex||7}).addClass("highcharts-"+a.coll.toLowerCase()+
"-labels "+(z||"")).add(y));n||a.isLinked?(c.forEach(function(b,d){a.generateTick(b,d)}),a.renderUnsquish(),a.reserveSpaceDefault=0===h||2===h||{1:"left",3:"right"}[h]===a.labelAlign,v(g.reserveSpace,"center"===a.labelAlign?!0:null,a.reserveSpaceDefault)&&c.forEach(function(a){p=Math.max(k[a].getLabelSize(),p)}),a.staggerLines&&(p*=a.staggerLines),a.labelOffset=p*(a.opposite?-1:1)):u(k,function(a,b){a.destroy();delete k[b]});if(m&&m.text&&!1!==m.enabled&&(a.addTitle(r),r&&!1!==m.reserveSpace)){a.titleOffset=q=a.axisTitle.getBBox()[t?"height":"width"];var L=m.offset;I=A(L)?0:v(m.margin,t?5:10)}a.renderLine();a.offset=x*v(f.offset,E[h]?E[h]+(f.margin||0):0);a.tickRotCorr=a.tickRotCorr||{x:0,y:0};d=0===h?-a.labelMetrics().h:2===h?a.tickRotCorr.y:0;I=Math.abs(p)+I;p&&(I=I-d+x*(t?v(g.y,a.tickRotCorr.y+8*x):g.x));a.axisTitleMargin=v(L,I);a.getMaxLabelDimensions&&(a.maxLabelDimensions=a.getMaxLabelDimensions(k,c));t=this.tickSize("tick");E[h]=Math.max(E[h],a.axisTitleMargin+q+x*a.offset,I,c&&c.length&&t?t[0]+
x*a.offset:0);f=f.offset?0:2*Math.floor(a.axisLine.strokeWidth()/2);b[B]=Math.max(b[B],f);e(this,"afterGetOffset")},getLinePath:function(a){var b=this.chart,d=this.opposite,f=this.offset,e=this.horiz,c=this.left+(d?this.width:0)+f;f=b.chartHeight-this.bottom-(d?this.height:0)+f;d&&(a*=-1);return b.renderer.crispLine(["M",e?this.left:c,e?f:this.top,"L",e?b.chartWidth-this.right:c,e?f:b.chartHeight-this.bottom],a)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var a=this.horiz,b=this.left,d=this.top,f=this.len,c=this.options.title,k=a?b:d,t=this.opposite,h=this.offset,B=c.x||0,r=c.y||0,q=this.axisTitle,v=this.chart.renderer.fontMetrics(c.style&&c.style.fontSize,q);q=Math.max(q.getBBox(null,0).height-v.h-1,0);f={low:k+(a?0:f),middle:k+f/2,high:k+(a?f:0)}[c.align];b=(a?d+this.height:b)+(a?1:-1)*(t?-1:1)*this.axisTitleMargin+
[-q,q,v.f,-q][this.side];a={x:a?f+B:b+(t?this.width:0)+h+B,y:a?b+r-(t?this.height:0)+h:f+r};e(this,"afterGetTitlePosition",{titlePosition:a});return a},renderMinorTick:function(a){var b=this.chart.hasRendered&&F(this.oldMin),d=this.minorTicks;d[a]||(d[a]=new I(this,a,"minor"));b&&d[a].isNew&&d[a].render(null,!0);d[a].render(null,!1,1)},renderTick:function(a,b){var d=this.isLinked,f=this.ticks,e=this.chart.hasRendered&&F(this.oldMin);if(!d||a>=this.min&&a<=this.max)f[a]||(f[a]=new I(this,a)),e&&f[a].isNew&&f[a].render(b,!0,-1),f[a].render(b)},render:function(){var a=this,b=a.chart,d=a.options,f=a.isLog,k=a.isLinked,t=a.tickPositions,h=a.axisTitle,r=a.ticks,q=a.minorTicks,v=a.alternateBands,m=d.stackLabels,g=d.alternateGridColor,p=a.tickmarkOffset,E=a.axisLine,x=a.showAxis,z=C(b.renderer.globalAnimation),y,n;a.labelEdge.length=0;a.overlap=!1;[r,q,v].forEach(function(a){u(a,function(a){a.isActive=!1})});if(a.hasData()||k)a.minorTickInterval&&!a.categories&&a.getMinorTickPositions().forEach(function(b){a.renderMinorTick(b)}),t.length&&(t.forEach(function(b,d){a.renderTick(b,d)}),p&&(0===a.min||a.single)&&(r[-1]||(r[-1]=new I(a,-1,null,!0)),r[-1].render(-1))),g&&t.forEach(function(d,e){n=void 0!==t[e+1]?t[e+1]+p:a.max-p;0===e%2&&d<a.max&&n<=a.max+(b.polar?-p:p)&&(v[d]||(v[d]=new c.PlotLineOrBand(a)),y=d+p,v[d].options={from:f?a.lin2log(y):y,to:f?a.lin2log(n):n,color:g},v[d].render(),v[d].isActive=!0)}),a._addedPlotLB||((d.plotLines||[]).concat(d.plotBands||[]).forEach(function(b){a.addPlotBandOrLine(b)}),a._addedPlotLB=!0);[r,q,v].forEach(function(a){var d,f=[],e=z.duration;u(a,function(a,b){a.isActive||(a.render(b,!1,0),a.isActive=!1,f.push(b))});B(function(){for(d=f.length;d--;)a[f[d]]&&!a[f[d]].isActive&&(a[f[d]].destroy(),delete a[f[d]])},a!==v&&b.hasRendered&&e?e:0)});E&&(E[E.isPlaced?"animate":"attr"]({d:this.getLinePath(E.strokeWidth())}),E.isPlaced=!0,E[x?"show":"hide"](x));h&&x&&(d=a.getTitlePosition(),F(d.y)?(h[h.isNew?"attr":"animate"](d),h.isNew=!1):(h.attr("y",-9999),h.isNew=!0));m&&m.enabled&&a.renderStackTotals();a.isDirty=!1;e(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(a){a.render()}));this.series.forEach(function(a){a.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(a){var b=this,f=b.stacks,c=b.plotLinesAndBands,t;e(this,"destroy",{keepEvents:a});a||k(b);u(f,function(a,b){d(a);f[b]=null});[b.ticks,b.minorTicks,b.alternateBands].forEach(function(a){d(a)});if(c)for(a=c.length;a--;)c[a].destroy();"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(a){b[a]&&(b[a]=b[a].destroy())});for(t in b.plotLinesAndBandsGroups)b.plotLinesAndBandsGroups[t]=b.plotLinesAndBandsGroups[t].destroy();u(b,function(a,d){-1===b.keepProps.indexOf(d)&&delete b[d]})},drawCrosshair:function(a,b){var d,f=this.crosshair,c=v(f.snap,!0),k,l=this.cross;e(this,"drawCrosshair",{e:a,point:b});a||(a=this.cross&&this.cross.e);if(this.crosshair&&!1!==(A(b)||!c)){c?A(b)&&(k=v("colorAxis"!==this.coll?b.crosshairPos:null,this.isXAxis?b.plotX:this.len-b.plotY)):k=a&&(this.horiz?a.chartX-this.pos:this.len-a.chartY+this.pos);A(k)&&(d=this.getPlotLinePath({value:b&&(this.isXAxis?b.x:v(b.stackY,b.y)),translatedValue:k})||null);if(!A(d)){this.hideCrosshair();return}c=this.categories&&!this.isRadial;l||(this.cross=l=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(c?"category ":"thin ")+f.className).attr({zIndex:v(f.zIndex,2)}).add(),this.chart.styledMode||(l.attr({stroke:f.color||(c?p("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":v(f.width,1)}).css({"pointer-events":"none"}),f.dashStyle&&l.attr({dashstyle:f.dashStyle})));l.show().attr({d:d});c&&!f.width&&l.attr({"stroke-width":this.transA});this.cross.e=a}else this.hideCrosshair();e(this,"afterDrawCrosshair",{e:a,point:b})},hideCrosshair:function(){this.cross&&this.cross.hide();e(this,"afterHideCrosshair")}});return c.Axis=n});N(H,"parts/DateTimeAxis.js",[H["parts/Globals.js"]],function(c){var n=c.Axis,A=c.getMagnitude,D=c.normalizeTickInterval,F=c.timeUnits;n.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)};n.prototype.normalizeTimeTickInterval=function(c,u){var z=u||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];u=z[z.length-1];var y=F[u[0]],n=u[1],x;for(x=0;x<z.length&&!(u=z[x],y=F[u[0]],n=u[1],z[x+1]&&c<=(y*n[n.length-1]+F[z[x+1][0]])/2);x++);y===F.year&&c<5*y&&(n=[1,2,5]);c=D(c/y,n,"year"===u[0]?Math.max(A(c/y),1):1);return{unitRange:y,count:c,unitName:u[0]}}});N(H,"parts/LogarithmicAxis.js",[H["parts/Globals.js"]],function(c){var n=c.Axis,A=c.getMagnitude,D=c.normalizeTickInterval,F=c.pick;n.prototype.getLogTickPositions=function(c,u,n,y){var z=this.options,x=this.len,m=[];y||(this._minorAutoInterval=null);if(.5<=c)c=Math.round(c),m=this.getLinearTickPositions(c,u,n);else if(.08<=c){x=Math.floor(u);var p,g;for(z=.3<c?[1,2,4]:.15<c?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];x<n+1&&!g;x++){var b=z.length;for(p=0;p<b&&!g;p++){var a=this.log2lin(this.lin2log(x)*z[p]);a>u&&(!y||d<=n)&&void 0!==d&&m.push(d);d>n&&(g=!0);var d=a}}}else u=this.lin2log(u),n=this.lin2log(n),c=y?this.getMinorTickInterval():z.tickInterval,c=F("auto"===c?null:c,this._minorAutoInterval,z.tickPixelInterval/(y?5:1)*(n-u)/((y?x/this.tickPositions.length:x)||1)),c=D(c,null,A(c)),m=this.getLinearTickPositions(c,u,n).map(this.log2lin),y||(this._minorAutoInterval=c/5);y||(this.tickInterval=c);return m};n.prototype.log2lin=function(c){return Math.log(c)/Math.LN10};n.prototype.lin2log=function(c){return Math.pow(10,c)}});N(H,"parts/PlotLineOrBand.js",[H["parts/Globals.js"],H["parts/Axis.js"],H["parts/Utilities.js"]],function(c,n,A){var D=A.defined,F=A.erase,z=A.objectEach,u=c.arrayMax,L=c.arrayMin,y=c.destroyObjectProperties,C=c.merge,x=c.pick;c.PlotLineOrBand=function(c,p){this.axis=c;p&&(this.options=p,this.id=p.id)};c.PlotLineOrBand.prototype={render:function(){c.fireEvent(this,"render");var m=this,p=m.axis,g=p.horiz,b=m.options,a=b.label,d=m.label,f=b.to,e=b.from,h=b.value,r=D(e)&&D(f),E=D(h),q=m.svgElem,v=!q,k=[],t=b.color,B=x(b.zIndex,0),I=b.events;k={"class":"highcharts-plot-"+(r?"band ":"line ")+(b.className||"")};var w={},l=p.chart.renderer,J=r?"bands":"lines";p.isLog&&(e=p.log2lin(e),f=p.log2lin(f),h=p.log2lin(h));p.chart.styledMode||(E?(k.stroke=t||"#999999",k["stroke-width"]=x(b.width,1),b.dashStyle&&(k.dashstyle=b.dashStyle)):r&&(k.fill=t||"#e6ebf5",b.borderWidth&&(k.stroke=b.borderColor,k["stroke-width"]=b.borderWidth)));w.zIndex=B;J+="-"+B;(t=p.plotLinesAndBandsGroups[J])||(p.plotLinesAndBandsGroups[J]=t=l.g("plot-"+J).attr(w).add());v&&(m.svgElem=q=l.path().attr(k).add(t));if(E)k=p.getPlotLinePath({value:h,lineWidth:q.strokeWidth(),acrossPanes:b.acrossPanes});else if(r)k=p.getPlotBandPath(e,f,b);else return;(v||!q.d)&&k&&k.length?(q.attr({d:k}),I&&z(I,function(a,b){q.on(b,function(a){I[b].apply(m,[a])})})):q&&(k?(q.show(!0),q.animate({d:k})):q.d&&(q.hide(),d&&(m.label=d=d.destroy())));a&&(D(a.text)||D(a.formatter))&&k&&k.length&&0<p.width&&0<p.height&&!k.isFlat?(a=C({align:g&&r&&"center",x:g?!r&&4:10,verticalAlign:!g&&r&&"middle",y:g?r?16:10:r?6:-4,rotation:g&&!r&&90},a),this.renderLabel(a,k,r,B)):d&&d.hide();return m},renderLabel:function(c,p,g,b){var a=this.label,d=this.axis.chart.renderer;a||(a={align:c.textAlign||c.align,rotation:c.rotation,"class":"highcharts-plot-"+(g?"band":"line")+"-label "+(c.className||"")},a.zIndex=b,b=this.getLabelText(c),this.label=a=d.text(b,0,0,c.useHTML).attr(a).add(),this.axis.chart.styledMode||a.css(c.style));d=p.xBounds||[p[1],p[4],g?p[6]:p[1]];p=p.yBounds||[p[2],p[5],g?p[7]:p[2]];g=L(d);b=L(p);a.align(c,!1,{x:g,y:b,width:u(d)-g,height:u(p)-b});a.show(!0)},getLabelText:function(c){return D(c.formatter)?c.formatter.call(this):c.text},destroy:function(){F(this.axis.plotLinesAndBands,this);delete this.axis;y(this)}};c.extend(n.prototype,{getPlotBandPath:function(c,p){var g=this.getPlotLinePath({value:p,force:!0,acrossPanes:this.options.acrossPanes}),b=this.getPlotLinePath({value:c,force:!0,acrossPanes:this.options.acrossPanes}),a=[],d=this.horiz,f=1;c=c<this.min&&p<this.min||c>this.max&&p>this.max;if(b&&g){if(c){var e=b.toString()===g.toString();f=0}for(c=0;c<b.length;c+=6)d&&g[c+1]===b[c+1]?(g[c+1]+=f,g[c+4]+=f):d||g[c+2]!==b[c+2]||(g[c+2]+=f,g[c+5]+=f),a.push("M",b[c+1],b[c+2],"L",b[c+4],b[c+5],g[c+4],g[c+5],g[c+1],g[c+2],"z"),a.isFlat=e}return a},addPlotBand:function(c){return this.addPlotBandOrLine(c,"plotBands")},addPlotLine:function(c){return this.addPlotBandOrLine(c,"plotLines")},addPlotBandOrLine:function(m,p){var g=(new c.PlotLineOrBand(this,m)).render(),b=this.userOptions;if(g){if(p){var a=b[p]||[];a.push(m);b[p]=a}this.plotLinesAndBands.push(g)}return g},removePlotBandOrLine:function(c){for(var m=this.plotLinesAndBands,g=this.options,b=this.userOptions,a=m.length;a--;)m[a].id===c&&m[a].destroy();[g.plotLines||[],b.plotLines||[],g.plotBands||[],b.plotBands||[]].forEach(function(b){for(a=b.length;a--;)b[a].id===c&&F(b,b[a])})},removePlotBand:function(c){this.removePlotBandOrLine(c)},removePlotLine:function(c){this.removePlotBandOrLine(c)}})});N(H,"parts/Tooltip.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isNumber,F=n.isString,z=n.splat;"";var u=c.doc,L=c.extend,y=c.format,C=c.merge,x=c.pick,m=c.syncTimeout,p=c.timeUnits;c.Tooltip=function(){this.init.apply(this,arguments)};c.Tooltip.prototype={init:function(c,b){this.chart=c;this.options=b;this.crosshairs=[];this.now={x:0,y:0};this.isHidden=!0;this.split=b.split&&!c.inverted;this.shared=b.shared||this.split;this.outside=x(b.outside,!(!c.scrollablePixelsX&&!c.scrollablePixelsY))&&!this.split},cleanSplit:function(c){this.chart.series.forEach(function(b){var a=b&&b.tt;a&&(!a.isActive||c?b.tt=a.destroy():a.isActive=!1)})},applyFilter:function(){var c=this.chart;c.renderer.definition({tagName:"filter",id:"drop-shadow-"+c.index,opacity:.5,children:[{tagName:"feGaussianBlur","in":"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode","in":"SourceGraphic"}]}]});c.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+c.index+"{filter:url(#drop-shadow-"+c.index+")}"})},getLabel:function(){var g=this,b=this.chart.renderer,a=this.chart.styledMode,d=this.options,f="tooltip"+(A(d.className)?" "+d.className:""),e;if(!this.label){this.outside&&(this.container=e=c.doc.createElement("div"),e.className="highcharts-tooltip-container",c.css(e,{position:"absolute",top:"1px",pointerEvents:d.style&&d.style.pointerEvents,zIndex:3}),c.doc.body.appendChild(e),this.renderer=b=new c.Renderer(e,0,0,{},void 0,void 0,b.styledMode));this.split?this.label=b.g(f):(this.label=b.label("",0,0,d.shape||"callout",null,null,d.useHTML,null,f).attr({padding:d.padding,r:d.borderRadius}),a||this.label.attr({fill:d.backgroundColor,"stroke-width":d.borderWidth}).css(d.style).shadow(d.shadow));a&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index));if(this.outside){var h={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(a,b){h[b].call(this.label,g.distance);e.style.left=a+"px"};this.label.ySetter=function(a,b){h[b].call(this.label,g.distance);e.style.top=a+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(c){this.destroy();C(!0,this.chart.options.tooltip.userOptions,c);this.init(this.chart,C(!0,this.options,c))},destroy:function(){this.label&&(this.label=this.label.destroy());this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy());this.renderer&&(this.renderer=this.renderer.destroy(),c.discardElement(this.container));c.clearTimeout(this.hideTimer);c.clearTimeout(this.tooltipTimeout)},move:function(g,b,a,d){var f=this,e=f.now,h=!1!==f.options.animation&&!f.isHidden&&(1<Math.abs(g-e.x)||1<Math.abs(b-e.y)),r=f.followPointer||1<f.len;L(e,{x:h?(2*e.x+g)/3:g,y:h?(e.y+b)/2:b,anchorX:r?void 0:h?(2*e.anchorX+a)/3:a,anchorY:r?void 0:h?(e.anchorY+d)/2:d});f.getLabel().attr(e);h&&(c.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){f&&f.move(g,b,a,d)},32))},hide:function(g){var b=this;c.clearTimeout(this.hideTimer);g=x(g,this.options.hideDelay,500);this.isHidden||(this.hideTimer=m(function(){b.getLabel()[g?"fadeOut":"hide"]();b.isHidden=!0},g))},getAnchor:function(c,b){var a=this.chart,d=a.pointer,f=a.inverted,e=a.plotTop,h=a.plotLeft,r=0,g=0,q,v;c=z(c);this.followPointer&&b?(void 0===b.chartX&&(b=d.normalize(b)),c=[b.chartX-a.plotLeft,b.chartY-e]):c[0].tooltipPos?c=c[0].tooltipPos:(c.forEach(function(a){q=a.series.yAxis;v=a.series.xAxis;r+=a.plotX+(!f&&v?v.left-h:0);g+=(a.plotLow?(a.plotLow+a.plotHigh)/2:a.plotY)+(!f&&q?q.top-e:0)}),r/=c.length,g/=c.length,c=[f?a.plotWidth-g:r,this.shared&&!f&&1<c.length&&b?b.chartY-e:f?a.plotHeight-r:g]);return c.map(Math.round)},getPosition:function(c,b,a){var d=this.chart,f=this.distance,e={},h=d.inverted&&a.h||0,r,g=this.outside,q=g?u.documentElement.clientWidth-2*f:d.chartWidth,v=g?Math.max(u.body.scrollHeight,u.documentElement.scrollHeight,u.body.offsetHeight,u.documentElement.offsetHeight,u.documentElement.clientHeight):d.chartHeight,k=d.pointer.chartPosition,t=d.containerScaling,B=function(a){return t?a*t.scaleX:a},I=function(a){return t?a*t.scaleY:a},w=function(e){var l="x"===e;return[e,l?q:v,l?c:b].concat(g?[l?B(c):I(b),l?k.left-f+B(a.plotX+d.plotLeft):k.top-f+I(a.plotY+d.plotTop),0,l?q:v]:[l?c:b,l?a.plotX+d.plotLeft:a.plotY+d.plotTop,l?d.plotLeft:d.plotTop,l?d.plotLeft+d.plotWidth:d.plotTop+d.plotHeight])},l=w("y"),m=w("x"),p=!this.followPointer&&x(a.ttBelow,!d.inverted===!!a.negative),n=function(a,b,d,c,k,l,t){var w="y"===a?I(f):B(f),r=(d-c)/2,q=c<k-f,v=k+f+c<b,g=k-w-d+r;k=k+w-r;if(p&&v)e[a]=k;else if(!p&&q)e[a]=g;else if(q)e[a]=Math.min(t-c,0>g-h?g:g-h);else if(v)e[a]=Math.max(l,k+h+d>b?k:k+h);else return!1},y=function(a,b,d,c,k){var l;k<f||k>b-f?l=!1:e[a]=k<d/2?1:k>b-c/2?b-c-2:k-d/2;return l},z=function(a){var b=l;l=m;m=b;r=a},M=function(){!1!==n.apply(0,l)?!1!==y.apply(0,m)||r||(z(!0),M()):r?e.x=e.y=0:(z(!0),M())};(d.inverted||1<this.len)&&z();M();return e},defaultFormatter:function(c){var b=this.points||z(this);var a=[c.tooltipFooterHeaderFormatter(b[0])];a=a.concat(c.bodyFormatter(b));a.push(c.tooltipFooterHeaderFormatter(b[0],!0));return a},refresh:function(g,b){var a=this.chart,d=this.options,f=g,e={},h=[];var r=d.formatter||this.defaultFormatter;e=this.shared;var m=a.styledMode;if(d.enabled){c.clearTimeout(this.hideTimer);this.followPointer=z(f)[0].series.tooltipOptions.followPointer;var q=this.getAnchor(f,b);b=q[0];var v=q[1];!e||f.series&&f.series.noSharedTooltip?e=f.getLabelConfig():(a.pointer.applyInactiveState(f),f.forEach(function(a){a.setState("hover");h.push(a.getLabelConfig())}),e={x:f[0].category,y:f[0].y},e.points=h,f=f[0]);this.len=h.length;r=r.call(e,this);e=f.series;this.distance=x(e.tooltipOptions.distance,16);!1===r?this.hide():(a=this.getLabel(),this.isHidden&&a.attr({opacity:1}).show(),this.split?this.renderSplit(r,z(g)):(d.style.width&&!m||a.css({width:this.chart.spacingBox.width}),a.attr({text:r&&r.join?r.join(""):r}),a.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+x(f.colorIndex,e.colorIndex)),m||a.attr({stroke:d.borderColor||f.color||e.color||"#666666"}),this.updatePosition({plotX:b,plotY:v,negative:f.negative,ttBelow:f.ttBelow,h:q[2]||0})),this.isHidden=!1);c.fireEvent(this,"refresh")}},renderSplit:function(g,b){var a=this,d=[],f=this.chart,e=f.renderer,h=!0,r=this.options,m=0,q,v=this.getLabel(),k=f.plotTop;F(g)&&(g=[!1,g]);g.slice(0,b.length+1).forEach(function(c,B){if(!1!==c&&""!==c){B=b[B-1]||{isHeader:!0,plotX:b[0].plotX,plotY:f.plotHeight};var t=B.series||a,w=t.tt,l=B.series||{},g="highcharts-color-"+x(B.colorIndex,l.colorIndex,"none");w||(w={padding:r.padding,r:r.borderRadius},f.styledMode||(w.fill=r.backgroundColor,w["stroke-width"]=r.borderWidth),t.tt=w=e.label(null,null,null,(B.isHeader?r.headerShape:r.shape)||"callout",null,null,r.useHTML).addClass("highcharts-tooltip-box "+
g).attr(w).add(v));w.isActive=!0;w.attr({text:c});f.styledMode||w.css(r.style).shadow(r.shadow).attr({stroke:r.borderColor||B.color||l.color||"#333333"});c=w.getBBox();g=c.width+w.strokeWidth();B.isHeader?(m=c.height,f.xAxis[0].opposite&&(q=!0,k-=m),c=Math.max(0,Math.min(B.plotX+f.plotLeft-g/2,f.chartWidth+(f.scrollablePixelsX?f.scrollablePixelsX-f.marginRight:0)-g))):c=B.plotX+f.plotLeft-x(r.distance,16)-g;0>c&&(h=!1);B.isHeader?l=q?-m:f.plotHeight+m:(l=l.yAxis,l=l.pos-k+Math.max(0,Math.min(B.plotY||0,l.len)));d.push({target:l,rank:B.isHeader?1:0,size:t.tt.getBBox().height+1,point:B,x:c,tt:w})}});this.cleanSplit();r.positioner&&d.forEach(function(b){var d=r.positioner.call(a,b.tt.getBBox().width,b.size,b.point);b.x=d.x;b.align=0;b.target=d.y;b.rank=x(d.rank,b.rank)});c.distribute(d,f.plotHeight+m);d.forEach(function(b){var d=b.point,c=d.series,e=c&&c.yAxis;b.tt.attr({visibility:void 0===b.pos?"hidden":"inherit",x:h||d.isHeader||r.positioner?b.x:d.plotX+f.plotLeft+a.distance,y:b.pos+k,anchorX:d.isHeader?d.plotX+f.plotLeft:d.plotX+c.xAxis.pos,anchorY:d.isHeader?f.plotTop+f.plotHeight/2:e.pos+Math.max(0,Math.min(d.plotY,e.len))})})},updatePosition:function(g){var b=this.chart,a=b.pointer,d=this.getLabel(),f=g.plotX+b.plotLeft,e=g.plotY+b.plotTop;a.chartPosition||(a.chartPosition=c.offset(b.container));g=(this.options.positioner||this.getPosition).call(this,d.width,d.height,g);if(this.outside){var h=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(d.width+h,d.height+h,!1);if(b=b.containerScaling)c.css(this.container,{transform:"scale("+b.scaleX+", "+b.scaleY+")"}),f*=b.scaleX,e*=b.scaleY;f+=a.chartPosition.left-g.x;e+=a.chartPosition.top-g.y}this.move(Math.round(g.x),Math.round(g.y||0),f,e)},getDateFormat:function(c,b,a,d){var f=this.chart.time,e=f.dateFormat("%m-%d %H:%M:%S.%L",b),h={millisecond:15,second:12,minute:9,hour:6,day:3},r="millisecond";for(g in p){if(c===p.week&&+f.dateFormat("%w",b)===a&&"00:00:00.000"===e.substr(6)){var g="week";break}if(p[g]>c){g=r;break}if(h[g]&&e.substr(h[g])!=="01-01 00:00:00.000".substr(h[g]))break;"week"!==g&&(r=g)}if(g)var q=f.resolveDTLFormat(d[g]).main;return q},getXDateFormat:function(c,b,a){b=b.dateTimeLabelFormats;var d=a&&a.closestPointRange;return(d?this.getDateFormat(d,c.x,a.options.startOfWeek,b):b.day)||b.year},tooltipFooterHeaderFormatter:function(g,b){var a=b?"footer":"header",d=g.series,f=d.tooltipOptions,e=f.xDateFormat,h=d.xAxis,r=h&&"datetime"===h.options.type&&D(g.key),m=f[a+"Format"];b={isFooter:b,labelConfig:g};c.fireEvent(this,"headerFormatter",b,function(a){r&&!e&&(e=this.getXDateFormat(g,f,h));r&&e&&(g.point&&g.point.tooltipDateKeys||["key"]).forEach(function(a){m=m.replace("{point."+a+"}","{point."+a+":"+e+"}")});d.chart.styledMode&&(m=this.styledModeFormat(m));a.text=y(m,{point:g,series:d},this.chart.time)});return b.text},bodyFormatter:function(c){return c.map(function(b){var a=b.series.tooltipOptions;return(a[(b.point.formatPrefix||"point")+"Formatter"]||b.point.tooltipFormatter).call(b.point,a[(b.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(c){return c.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}});N(H,"parts/Pointer.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.attr,D=n.defined,F=n.isNumber,z=n.isObject,u=n.objectEach,L=n.splat,y=c.addEvent,C=c.charts,x=c.color,m=c.css,p=c.extend,g=c.find,b=c.fireEvent,a=c.offset,d=c.pick,f=c.Tooltip;c.Pointer=function(a,b){this.init(a,b)};c.Pointer.prototype={init:function(a,b){this.options=b;this.chart=a;this.runChartClick=b.chart.events&&!!b.chart.events.click;this.pinchDown=[];this.lastValidTouch={};f&&(a.tooltip=new f(a,b.tooltip),this.followTouchMove=d(b.tooltip.followTouchMove,!0));this.setDOMEvents()},zoomOption:function(a){var b=this.chart,c=b.options.chart,f=c.zoomType||"";b=b.inverted;/touch/.test(a.type)&&(f=d(c.pinchType,f));this.zoomX=a=/x/.test(f);this.zoomY=f=/y/.test(f);this.zoomHor=a&&!b||f&&b;this.zoomVert=f&&!b||a&&b;this.hasZoom=a||f},normalize:function(b,d){var c=b.touches?b.touches.length?b.touches.item(0):b.changedTouches[0]:b;d||(this.chartPosition=d=a(this.chart.container));var f=c.pageX-d.left;d=c.pageY-d.top;if(c=this.chart.containerScaling)f/=c.scaleX,d/=c.scaleY;return p(b,{chartX:Math.round(f),chartY:Math.round(d)})},getCoordinates:function(a){var b={xAxis:[],yAxis:[]};this.chart.axes.forEach(function(d){b[d.isXAxis?"xAxis":"yAxis"].push({axis:d,value:d.toValue(a[d.horiz?"chartX":"chartY"])})});return b},findNearestKDPoint:function(a,b,d){var c;a.forEach(function(a){var f=!(a.noSharedTooltip&&b)&&0>a.options.findNearestPointBy.indexOf("y");a=a.searchPoint(d,f);if((f=z(a,!0))&&!(f=!z(c,!0))){f=c.distX-a.distX;var e=c.dist-a.dist,t=(a.series.group&&a.series.group.zIndex)-(c.series.group&&c.series.group.zIndex);f=0<(0!==f&&b?f:0!==e?e:0!==t?t:c.series.index>a.series.index?-1:1)}f&&(c=a)});return c},getPointFromEvent:function(a){a=a.target;for(var b;a&&!b;)b=a.point,a=a.parentNode;return b},getChartCoordinatesFromPoint:function(a,b){var c=a.series,f=c.xAxis;c=c.yAxis;var e=d(a.clientX,a.plotX),h=a.shapeArgs;if(f&&c)return b?{chartX:f.len+f.pos-e,chartY:c.len+c.pos-a.plotY}:{chartX:e+f.pos,chartY:a.plotY+c.pos};if(h&&h.x&&h.y)return{chartX:h.x,chartY:h.y}},getHoverData:function(a,b,c,f,q,v){var e,t=[];f=!(!f||!a);var h=b&&!b.stickyTracking?[b]:c.filter(function(a){return a.visible&&!(!q&&a.directTouch)&&d(a.options.enableMouseTracking,!0)&&a.stickyTracking});b=(e=f||!v?a:this.findNearestKDPoint(h,q,v))&&e.series;e&&(q&&!b.noSharedTooltip?(h=c.filter(function(a){return a.visible&&!(!q&&a.directTouch)&&d(a.options.enableMouseTracking,!0)&&!a.noSharedTooltip}),h.forEach(function(a){var b=g(a.points,function(a){return a.x===e.x&&!a.isNull});z(b)&&(a.chart.isBoosting&&(b=a.getPoint(b)),t.push(b))})):t.push(e));return{hoverPoint:e,hoverSeries:b,hoverPoints:t}},runPointActions:function(a,b){var f=this.chart,e=f.tooltip&&f.tooltip.options.enabled?f.tooltip:void 0,h=e?e.shared:!1,v=b||f.hoverPoint,k=v&&v.series||f.hoverSeries;k=this.getHoverData(v,k,f.series,(!a||"touchmove"!==a.type)&&(!!b||k&&k.directTouch&&this.isDirectTouch),h,a);v=k.hoverPoint;var t=k.hoverPoints;b=(k=k.hoverSeries)&&k.tooltipOptions.followPointer;h=h&&k&&!k.noSharedTooltip;if(v&&(v!==f.hoverPoint||e&&e.isHidden)){(f.hoverPoints||[]).forEach(function(a){-1===t.indexOf(a)&&a.setState()});if(f.hoverSeries!==k)k.onMouseOver();this.applyInactiveState(t);(t||[]).forEach(function(a){a.setState("hover")});f.hoverPoint&&f.hoverPoint.firePointEvent("mouseOut");if(!v.series)return;v.firePointEvent("mouseOver");f.hoverPoints=t;f.hoverPoint=v;e&&e.refresh(h?t:v,a)}else b&&e&&!e.isHidden&&(v=e.getAnchor([{}],a),e.updatePosition({plotX:v[0],plotY:v[1]}));this.unDocMouseMove||(this.unDocMouseMove=y(f.container.ownerDocument,"mousemove",function(a){var b=C[c.hoverChartIndex];if(b)b.pointer.onDocumentMouseMove(a)}));f.axes.forEach(function(b){var f=d(b.crosshair.snap,!0),e=f?c.find(t,function(a){return a.series[b.coll]===b}):void 0;e||!f?b.drawCrosshair(a,e):b.hideCrosshair()})},applyInactiveState:function(a){var b=[],d;(a||[]).forEach(function(a){d=a.series;b.push(d);d.linkedParent&&b.push(d.linkedParent);d.linkedSeries&&(b=b.concat(d.linkedSeries));d.navigatorSeries&&b.push(d.navigatorSeries)});this.chart.series.forEach(function(a){-1===b.indexOf(a)?a.setState("inactive",!0):a.options.inactiveOtherPoints&&a.setAllPointsToState("inactive")})},reset:function(a,b){var d=this.chart,c=d.hoverSeries,f=d.hoverPoint,e=d.hoverPoints,k=d.tooltip,t=k&&k.shared?e:f;a&&t&&L(t).forEach(function(b){b.series.isCartesian&&void 0===b.plotX&&(a=!1)});if(a)k&&t&&L(t).length&&(k.refresh(t),k.shared&&e?e.forEach(function(a){a.setState(a.state,!0);a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):f&&(f.setState(f.state,!0),d.axes.forEach(function(a){a.crosshair&&a.drawCrosshair(null,f)})));else{if(f)f.onMouseOut();e&&e.forEach(function(a){a.setState()});if(c)c.onMouseOut();k&&k.hide(b);this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove());d.axes.forEach(function(a){a.hideCrosshair()});this.hoverX=d.hoverPoints=d.hoverPoint=null}},scaleGroups:function(a,b){var d=this.chart,c;d.series.forEach(function(f){c=a||f.getPlotBox();f.xAxis&&f.xAxis.zoomEnabled&&f.group&&(f.group.attr(c),f.markerGroup&&(f.markerGroup.attr(c),f.markerGroup.clip(b?d.clipRect:null)),f.dataLabelsGroup&&f.dataLabelsGroup.attr(c))});d.clipRect.attr(b||d.clipBox)},dragStart:function(a){var b=this.chart;b.mouseIsDown=a.type;b.cancelClick=!1;b.mouseDownX=this.mouseDownX=a.chartX;b.mouseDownY=this.mouseDownY=a.chartY},drag:function(a){var b=this.chart,d=b.options.chart,c=a.chartX,f=a.chartY,e=this.zoomHor,k=this.zoomVert,t=b.plotLeft,B=b.plotTop,I=b.plotWidth,w=b.plotHeight,l=this.selectionMarker,g=this.mouseDownX,m=this.mouseDownY,p=d.panKey&&a[d.panKey+"Key"];if(!l||!l.touch)if(c<t?c=t:c>t+I&&(c=t+I),f<B?f=B:f>B+w&&(f=B+w),this.hasDragged=Math.sqrt(Math.pow(g-c,2)+Math.pow(m-f,2)),10<this.hasDragged){var u=b.isInsidePlot(g-t,m-B);b.hasCartesianSeries&&(this.zoomX||this.zoomY)&&u&&!p&&!l&&(this.selectionMarker=l=b.renderer.rect(t,B,e?1:I,k?1:w,0).attr({"class":"highcharts-selection-marker",zIndex:7}).add(),b.styledMode||l.attr({fill:d.selectionMarkerFill||x("#335cad").setOpacity(.25).get()}));l&&e&&(c-=g,l.attr({width:Math.abs(c),x:(0<c?0:c)+g}));l&&k&&(c=f-m,l.attr({height:Math.abs(c),y:(0<c?0:c)+m}));u&&!l&&d.panning&&b.pan(a,d.panning)}},drop:function(a){var d=this,c=this.chart,f=this.hasPinched;if(this.selectionMarker){var e={originalEvent:a,xAxis:[],yAxis:[]},v=this.selectionMarker,k=v.attr?v.attr("x"):v.x,t=v.attr?v.attr("y"):v.y,B=v.attr?v.attr("width"):v.width,I=v.attr?v.attr("height"):v.height,w;if(this.hasDragged||f)c.axes.forEach(function(b){if(b.zoomEnabled&&D(b.min)&&(f||d[{xAxis:"zoomX",yAxis:"zoomY"}[b.coll]])){var c=b.horiz,l="touchend"===a.type?b.minPixelPadding:0,h=b.toValue((c?k:t)+l);c=b.toValue((c?k+B:t+I)-l);e[b.coll].push({axis:b,min:Math.min(h,c),max:Math.max(h,c)});w=!0}}),w&&b(c,"selection",e,function(a){c.zoom(p(a,f?{animation:!1}:null))});F(c.index)&&(this.selectionMarker=this.selectionMarker.destroy());f&&this.scaleGroups()}c&&F(c.index)&&(m(c.container,{cursor:c._cursor}),c.cancelClick=10<this.hasDragged,c.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(a){a=this.normalize(a);2!==a.button&&(this.zoomOption(a),a.preventDefault&&a.preventDefault(),this.dragStart(a))},onDocumentMouseUp:function(a){C[c.hoverChartIndex]&&C[c.hoverChartIndex].pointer.drop(a)},onDocumentMouseMove:function(a){var b=this.chart,d=this.chartPosition;a=this.normalize(a,d);!d||this.inClass(a.target,"highcharts-tracker")||b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||this.reset()},onContainerMouseLeave:function(a){var b=C[c.hoverChartIndex];b&&(a.relatedTarget||a.toElement)&&(b.pointer.reset(),b.pointer.chartPosition=null)},onContainerMouseMove:function(a){var b=this.chart;D(c.hoverChartIndex)&&C[c.hoverChartIndex]&&C[c.hoverChartIndex].mouseIsDown||(c.hoverChartIndex=b.index);a=this.normalize(a);a.preventDefault||(a.returnValue=!1);"mousedown"===b.mouseIsDown&&this.drag(a);!this.inClass(a.target,"highcharts-tracker")&&!b.isInsidePlot(a.chartX-b.plotLeft,a.chartY-b.plotTop)||b.openMenu||this.runPointActions(a)},inClass:function(a,b){for(var d;a;){if(d=A(a,"class")){if(-1!==d.indexOf(b))return!0;if(-1!==d.indexOf("highcharts-container"))return!1}a=a.parentNode}},onTrackerMouseOut:function(a){var b=this.chart.hoverSeries;a=a.relatedTarget||a.toElement;this.isDirectTouch=!1;if(!(!b||!a||b.stickyTracking||this.inClass(a,"highcharts-tooltip")||this.inClass(a,"highcharts-series-"+b.index)&&this.inClass(a,"highcharts-tracker")))b.onMouseOut()},onContainerClick:function(a){var d=this.chart,c=d.hoverPoint,f=d.plotLeft,e=d.plotTop;a=this.normalize(a);d.cancelClick||(c&&this.inClass(a.target,"highcharts-tracker")?(b(c.series,"click",p(a,{point:c})),d.hoverPoint&&c.firePointEvent("click",a)):(p(a,this.getCoordinates(a)),d.isInsidePlot(a.chartX-f,a.chartY-e)&&b(d,"click",a)))},setDOMEvents:function(){var a=this,b=a.chart.container,d=b.ownerDocument;b.onmousedown=function(b){a.onContainerMouseDown(b)};b.onmousemove=function(b){a.onContainerMouseMove(b)};b.onclick=function(b){a.onContainerClick(b)};this.unbindContainerMouseLeave=y(b,"mouseleave",a.onContainerMouseLeave);c.unbindDocumentMouseUp||(c.unbindDocumentMouseUp=y(d,"mouseup",a.onDocumentMouseUp));c.hasTouch&&(y(b,"touchstart",function(b){a.onContainerTouchStart(b)}),y(b,"touchmove",function(b){a.onContainerTouchMove(b)}),c.unbindDocumentTouchEnd||(c.unbindDocumentTouchEnd=y(d,"touchend",a.onDocumentTouchEnd)))},destroy:function(){var a=this;a.unDocMouseMove&&a.unDocMouseMove();this.unbindContainerMouseLeave();c.chartCount||(c.unbindDocumentMouseUp&&(c.unbindDocumentMouseUp=c.unbindDocumentMouseUp()),c.unbindDocumentTouchEnd&&(c.unbindDocumentTouchEnd=c.unbindDocumentTouchEnd()));clearInterval(a.tooltipTimeout);u(a,function(b,d){a[d]=null})}}});N(H,"parts/TouchPointer.js",[H["parts/Globals.js"]],function(c){var n=c.charts,A=c.extend,D=c.noop,F=c.pick;A(c.Pointer.prototype,{pinchTranslate:function(c,u,n,y,A,x){this.zoomHor&&this.pinchTranslateDirection(!0,c,u,n,y,A,x);this.zoomVert&&this.pinchTranslateDirection(!1,c,u,n,y,A,x)},pinchTranslateDirection:function(c,u,n,y,A,x,m,p){var g=this.chart,b=c?"x":"y",a=c?"X":"Y",d="chart"+a,f=c?"width":"height",e=g["plot"+(c?"Left":"Top")],h,r,E=p||1,q=g.inverted,v=g.bounds[c?"h":"v"],k=1===u.length,t=u[0][d],B=n[0][d],I=!k&&u[1][d],w=!k&&n[1][d];n=function(){!k&&20<Math.abs(t-I)&&(E=p||Math.abs(B-w)/Math.abs(t-I));r=(e-B)/E+t;h=g["plot"+(c?"Width":"Height")]/E};n();u=r;if(u<v.min){u=v.min;var l=!0}else u+h>v.max&&(u=v.max-h,l=!0);l?(B-=.8*(B-m[b][0]),k||(w-=.8*(w-m[b][1])),n()):m[b]=[B,w];q||(x[b]=r-e,x[f]=h);x=q?1/E:E;A[f]=h;A[b]=u;y[q?c?"scaleY":"scaleX":"scale"+a]=E;y["translate"+a]=x*e+(B-x*t)},pinch:function(c){var u=this,n=u.chart,y=u.pinchDown,z=c.touches,x=z.length,m=u.lastValidTouch,p=u.hasZoom,g=u.selectionMarker,b={},a=1===x&&(u.inClass(c.target,"highcharts-tracker")&&n.runTrackerClick||u.runChartClick),d={};1<x&&(u.initiated=!0);p&&u.initiated&&!a&&c.preventDefault();[].map.call(z,function(a){return u.normalize(a)});"touchstart"===c.type?([].forEach.call(z,function(a,b){y[b]={chartX:a.chartX,chartY:a.chartY}}),m.x=[y[0].chartX,y[1]&&y[1].chartX],m.y=[y[0].chartY,y[1]&&y[1].chartY],n.axes.forEach(function(a){if(a.zoomEnabled){var b=n.bounds[a.horiz?"h":"v"],d=a.minPixelPadding,c=a.toPixels(Math.min(F(a.options.min,a.dataMin),a.dataMin)),f=a.toPixels(Math.max(F(a.options.max,a.dataMax),a.dataMax)),q=Math.max(c,f);b.min=Math.min(a.pos,Math.min(c,f)-d);b.max=Math.max(a.pos+a.len,q+d)}}),u.res=!0):u.followTouchMove&&1===x?this.runPointActions(u.normalize(c)):y.length&&(g||(u.selectionMarker=g=A({destroy:D,touch:!0},n.plotBox)),u.pinchTranslate(y,z,b,g,d,m),u.hasPinched=p,u.scaleGroups(b,d),u.res&&(u.res=!1,this.reset(!1,0)))},touch:function(n,u){var z=this.chart,y;if(z.index!==c.hoverChartIndex)this.onContainerMouseLeave({relatedTarget:!0});c.hoverChartIndex=z.index;if(1===n.touches.length)if(n=this.normalize(n),(y=z.isInsidePlot(n.chartX-z.plotLeft,n.chartY-z.plotTop))&&!z.openMenu){u&&this.runPointActions(n);if("touchmove"===n.type){u=this.pinchDown;var A=u[0]?4<=Math.sqrt(Math.pow(u[0].chartX-n.chartX,2)+Math.pow(u[0].chartY-n.chartY,2)):!1}F(A,!0)&&this.pinch(n)}else u&&this.reset();else 2===n.touches.length&&this.pinch(n)},onContainerTouchStart:function(c){this.zoomOption(c);this.touch(c,!0)},onContainerTouchMove:function(c){this.touch(c)},onDocumentTouchEnd:function(z){n[c.hoverChartIndex]&&n[c.hoverChartIndex].pointer.drop(z)}})});N(H,"parts/MSPointer.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.objectEach,D=c.addEvent,F=c.charts,z=c.css,u=c.doc;n=c.extend;var L=c.noop,y=c.Pointer,C=c.removeEvent,x=c.win,m=c.wrap;if(!c.hasTouch&&(x.PointerEvent||x.MSPointerEvent)){var p={},g=!!x.PointerEvent,b=function(){var a=[];a.item=function(a){return this[a]};A(p,function(b){a.push({pageX:b.pageX,pageY:b.pageY,target:b.target})});return a},a=function(a,f,e,h){"touch"!==a.pointerType&&a.pointerType!==a.MSPOINTER_TYPE_TOUCH||!F[c.hoverChartIndex]||(h(a),h=F[c.hoverChartIndex].pointer,h[f]({type:e,target:a.currentTarget,preventDefault:L,touches:b()}))};n(y.prototype,{onContainerPointerDown:function(b){a(b,"onContainerTouchStart","touchstart",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY,target:a.currentTarget}})},onContainerPointerMove:function(b){a(b,"onContainerTouchMove","touchmove",function(a){p[a.pointerId]={pageX:a.pageX,pageY:a.pageY};p[a.pointerId].target||(p[a.pointerId].target=a.currentTarget)})},onDocumentPointerUp:function(b){a(b,"onDocumentTouchEnd","touchend",function(a){delete p[a.pointerId]})},batchMSEvents:function(a){a(this.chart.container,g?"pointerdown":"MSPointerDown",this.onContainerPointerDown);a(this.chart.container,g?"pointermove":"MSPointerMove",this.onContainerPointerMove);a(u,g?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}});m(y.prototype,"init",function(a,b,c){a.call(this,b,c);this.hasZoom&&z(b.container,{"-ms-touch-action":"none","touch-action":"none"})});m(y.prototype,"setDOMEvents",function(a){a.apply(this);(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(D)});m(y.prototype,"destroy",function(a){this.batchMSEvents(C);a.call(this)})}});N(H,"parts/Legend.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isNumber,F=c.addEvent,z=c.css,u=c.discardElement,L=c.fireEvent;n=c.isFirefox;var y=c.marginNames,C=c.merge,x=c.pick,m=c.setAnimation,p=c.stableSort,g=c.win,b=c.wrap;c.Legend=function(a,b){this.init(a,b)};c.Legend.prototype={init:function(a,b){this.chart=a;this.setOptions(b);b.enabled&&(this.render(),F(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=F(this.chart,"render",function(){this.legend.proximatePositions();this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(a){var b=x(a.padding,8);this.options=a;this.chart.styledMode||(this.itemStyle=a.itemStyle,this.itemHiddenStyle=C(this.itemStyle,a.itemHiddenStyle));this.itemMarginTop=a.itemMarginTop||0;this.padding=b;this.initialItemY=b-5;this.symbolWidth=x(a.symbolWidth,16);this.pages=[];this.proximate="proximate"===a.layout&&!this.chart.inverted},update:function(a,b){var d=this.chart;this.setOptions(C(!0,this.options,a));this.destroy();d.isDirtyLegend=d.isDirtyBox=!0;x(b,!0)&&d.redraw();L(this,"afterUpdate")},colorizeItem:function(a,b){a.legendGroup[b?"removeClass":"addClass"]("highcharts-legend-item-hidden");if(!this.chart.styledMode){var d=this.options,c=a.legendItem,h=a.legendLine,r=a.legendSymbol,g=this.itemHiddenStyle.color;d=b?d.itemStyle.color:g;var q=b?a.color||g:g,v=a.options&&a.options.marker,k={fill:q};c&&c.css({fill:d,color:d});h&&h.attr({stroke:q});r&&(v&&r.isMarker&&(k=a.pointAttribs(),b||(k.stroke=k.fill=g)),r.attr(k))}L(this,"afterColorizeItem",{item:a,visible:b})},positionItems:function(){this.allItems.forEach(this.positionItem,this);this.chart.isResizing||this.positionCheckboxes()},positionItem:function(a){var b=this.options,c=b.symbolPadding;b=!b.rtl;var e=a._legendItemPos,h=e[0];e=e[1];var r=a.checkbox;if((a=a.legendGroup)&&a.element)a[A(a.translateY)?"animate":"attr"]({translateX:b?h:this.legendWidth-h-2*c-4,translateY:e});r&&(r.x=h,r.y=e)},destroyItem:function(a){var b=a.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(b){a[b]&&(a[b]=a[b].destroy())});b&&u(a.checkbox)},destroy:function(){function a(a){this[a]&&(this[a]=this[a].destroy())}this.getAllItems().forEach(function(b){["legendItem","legendGroup"].forEach(a,b)});"clipRect up down pager nav box title group".split(" ").forEach(a,this);this.display=null},positionCheckboxes:function(){var a=this.group&&this.group.alignAttr,b=this.clipHeight||this.legendHeight,c=this.titleHeight;if(a){var e=a.translateY;this.allItems.forEach(function(d){var f=d.checkbox;if(f){var h=e+c+f.y+(this.scrollOffset||0)+3;z(f,{left:a.translateX+d.checkboxOffset+f.x-20+"px",top:h+"px",display:this.proximate||h>e-6&&h<e+b-6?"":"none"})}},this)}},renderTitle:function(){var a=this.options,b=this.padding,c=a.title,e=0;c.text&&(this.title||(this.title=this.chart.renderer.label(c.text,b-3,b-4,null,null,null,a.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(c.style),this.title.add(this.group)),c.width||this.title.css({width:this.maxLegendWidth+"px"}),a=this.title.getBBox(),e=a.height,this.offsetWidth=a.width,this.contentGroup.attr({translateY:e}));this.titleHeight=e},setText:function(a){var b=this.options;a.legendItem.attr({text:b.labelFormat?c.format(b.labelFormat,a,this.chart.time):b.labelFormatter.call(a)})},renderItem:function(a){var b=this.chart,c=b.renderer,e=this.options,h=this.symbolWidth,r=e.symbolPadding,g=this.itemStyle,q=this.itemHiddenStyle,v="horizontal"===e.layout?x(e.itemDistance,20):0,k=!e.rtl,t=a.legendItem,B=!a.series,I=!B&&a.series.drawLegendSymbol?a.series:a,w=I.options;w=this.createCheckboxForItem&&w&&w.showCheckbox;v=h+r+v+(w?20:0);var l=e.useHTML,m=a.options.className;t||(a.legendGroup=c.g("legend-item").addClass("highcharts-"+I.type+"-series highcharts-color-"+a.colorIndex+(m?" "+m:"")+(B?" highcharts-series-"+a.index:"")).attr({zIndex:1}).add(this.scrollGroup),a.legendItem=t=c.text("",k?h+r:-r,this.baseline||0,l),b.styledMode||t.css(C(a.visible?g:q)),t.attr({align:k?"left":"right",zIndex:2}).add(a.legendGroup),this.baseline||(this.fontMetrics=c.fontMetrics(b.styledMode?12:g.fontSize,t),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,t.attr("y",this.baseline)),this.symbolHeight=e.symbolHeight||this.fontMetrics.f,I.drawLegendSymbol(this,a),this.setItemEvents&&this.setItemEvents(a,t,l));w&&!a.checkbox&&this.createCheckboxForItem(a);this.colorizeItem(a,a.visible);!b.styledMode&&g.width||t.css({width:(e.itemWidth||this.widthOption||b.spacingBox.width)-v});this.setText(a);b=t.getBBox();a.itemWidth=a.checkboxOffset=e.itemWidth||a.legendItemWidth||b.width+v;this.maxItemWidth=Math.max(this.maxItemWidth,a.itemWidth);this.totalItemWidth+=a.itemWidth;this.itemHeight=a.itemHeight=Math.round(a.legendItemHeight||b.height||this.symbolHeight)},layoutItem:function(a){var b=this.options,c=this.padding,e="horizontal"===b.layout,h=a.itemHeight,g=b.itemMarginBottom||0,m=this.itemMarginTop,q=e?x(b.itemDistance,20):0,v=this.maxLegendWidth;b=b.alignColumns&&this.totalItemWidth>v?this.maxItemWidth:a.itemWidth;e&&this.itemX-c+b>v&&(this.itemX=c,this.lastLineHeight&&(this.itemY+=m+this.lastLineHeight+g),this.lastLineHeight=0);this.lastItemY=m+this.itemY+g;this.lastLineHeight=Math.max(h,this.lastLineHeight);a._legendItemPos=[this.itemX,this.itemY];e?this.itemX+=b:(this.itemY+=m+h+g,this.lastLineHeight=h);this.offsetWidth=this.widthOption||Math.max((e?this.itemX-c-(a.checkbox?0:q):b)+c,this.offsetWidth)},getAllItems:function(){var a=[];this.chart.series.forEach(function(b){var d=b&&b.options;b&&x(d.showInLegend,A(d.linkedTo)?!1:void 0,!0)&&(a=a.concat(b.legendItems||("point"===d.legendType?b.data:b)))});L(this,"afterGetAllItems",{allItems:a});return a},getAlignment:function(){var a=this.options;return this.proximate?a.align.charAt(0)+"tv":a.floating?"":a.align.charAt(0)+a.verticalAlign.charAt(0)+a.layout.charAt(0)},adjustMargins:function(a,b){var d=this.chart,c=this.options,h=this.getAlignment();h&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(f,e){f.test(h)&&!A(a[e])&&(d[y[e]]=Math.max(d[y[e]],d.legend[(e+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][e]*c[e%2?"x":"y"]+x(c.margin,12)+b[e]+(d.titleOffset[e]||0)))})},proximatePositions:function(){var a=this.chart,b=[],f="left"===this.options.align;this.allItems.forEach(function(d){var e=f;if(d.yAxis&&d.points){d.xAxis.options.reversed&&(e=!e);var g=c.find(e?d.points:d.points.slice(0).reverse(),function(a){return D(a.plotY)});e=d.legendGroup.getBBox().height;var m=d.yAxis.top-a.plotTop;d.visible?(g=g?g.plotY:d.yAxis.height,g+=m-.3*e):g=m+d.yAxis.height;b.push({target:g,size:e,item:d})}},this);c.distribute(b,a.plotHeight);b.forEach(function(b){b.item._legendItemPos[1]=a.plotTop-a.spacing[0]+b.pos})},render:function(){var a=this.chart,b=a.renderer,f=this.group,e,h=this.box,g=this.options,m=this.padding;this.itemX=m;this.itemY=this.initialItemY;this.lastItemY=this.offsetWidth=0;this.widthOption=c.relativeLength(g.width,a.spacingBox.width-m);var q=a.spacingBox.width-2*m-g.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(q/=2);this.maxLegendWidth=this.widthOption||q;f||(this.group=f=b.g("legend").attr({zIndex:7}).add(),this.contentGroup=b.g().attr({zIndex:1}).add(f),this.scrollGroup=b.g().add(this.contentGroup));this.renderTitle();q=this.getAllItems();p(q,function(a,b){return(a.options&&a.options.legendIndex||0)-(b.options&&b.options.legendIndex||0)});g.reversed&&q.reverse();this.allItems=q;this.display=e=!!q.length;this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0;q.forEach(this.renderItem,this);q.forEach(this.layoutItem,this);q=(this.widthOption||this.offsetWidth)+m;var v=this.lastItemY+this.lastLineHeight+this.titleHeight;v=this.handleOverflow(v);v+=m;h||(this.box=h=b.rect().addClass("highcharts-legend-box").attr({r:g.borderRadius}).add(f),h.isNew=!0);a.styledMode||h.attr({stroke:g.borderColor,"stroke-width":g.borderWidth||0,fill:g.backgroundColor||"none"}).shadow(g.shadow);0<q&&0<v&&(h[h.isNew?"attr":"animate"](h.crisp.call({},{x:0,y:0,width:q,height:v},h.strokeWidth())),h.isNew=!1);h[e?"show":"hide"]();a.styledMode&&"none"===f.getStyle("display")&&(q=v=0);this.legendWidth=q;this.legendHeight=v;e&&(b=a.spacingBox,h=b.y,/(lth|ct|rth)/.test(this.getAlignment())&&0<a.titleOffset[0]?h+=a.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<a.titleOffset[2]&&(h-=a.titleOffset[2]),h!==b.y&&(b=C(b,{y:h})),f.align(C(g,{width:q,height:v,verticalAlign:this.proximate?"top":g.verticalAlign}),!0,b));this.proximate||this.positionItems();L(this,"afterRender")},handleOverflow:function(a){var b=this,c=this.chart,e=c.renderer,h=this.options,g=h.y,m=this.padding;g=c.spacingBox.height+("top"===h.verticalAlign?-g:g)-m;var q=h.maxHeight,v,k=this.clipRect,t=h.navigation,B=x(t.animation,!0),I=t.arrowSize||12,w=this.nav,l=this.pages,p,K=this.allItems,n=function(a){"number"===typeof a?k.attr({height:a}):k&&(b.clipRect=k.destroy(),b.contentGroup.clip());b.contentGroup.div&&(b.contentGroup.div.style.clip=a?"rect("+m+"px,9999px,"+(m+a)+"px,0)":"auto")},u=function(a){b[a]=e.circle(0,0,1.3*I).translate(I/2,I/2).add(w);c.styledMode||b[a].attr("fill","rgba(0,0,0,0.0001)");return b[a]};"horizontal"!==h.layout||"middle"===h.verticalAlign||h.floating||(g/=2);q&&(g=Math.min(g,q));l.length=0;a>g&&!1!==t.enabled?(this.clipHeight=v=Math.max(g-20-this.titleHeight-m,0),this.currentPage=x(this.currentPage,1),this.fullHeight=a,K.forEach(function(a,b){var d=a._legendItemPos[1],c=Math.round(a.legendItem.getBBox().height),f=l.length;if(!f||d-l[f-1]>v&&(p||d)!==l[f-1])l.push(p||d),f++;a.pageIx=f-1;p&&(K[b-1].pageIx=f-1);b===K.length-1&&d+c-l[f-1]>v&&d!==p&&(l.push(d),a.pageIx=f);d!==p&&(p=d)}),k||(k=b.clipRect=e.clipRect(0,m,9999,0),b.contentGroup.clip(k)),n(v),w||(this.nav=w=e.g().attr({zIndex:1}).add(this.group),this.up=e.symbol("triangle",0,0,I,I).add(w),u("upTracker").on("click",function(){b.scroll(-1,B)}),this.pager=e.text("",15,10).addClass("highcharts-legend-navigation"),c.styledMode||this.pager.css(t.style),this.pager.add(w),this.down=e.symbol("triangle-down",0,0,I,I).add(w),u("downTracker").on("click",function(){b.scroll(1,B)})),b.scroll(0),a=g):w&&(n(),this.nav=w.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0);return a},scroll:function(a,b){var d=this.pages,c=d.length,h=this.currentPage+a;a=this.clipHeight;var g=this.options.navigation,p=this.pager,q=this.padding;h>c&&(h=c);0<h&&(void 0!==b&&m(b,this.chart),this.nav.attr({translateX:q,translateY:a+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(a){a.attr({"class":1===h?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),p.attr({text:h+"/"+c}),[this.down,this.downTracker].forEach(function(a){a.attr({x:18+this.pager.getBBox().width,"class":h===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),this.chart.styledMode||(this.up.attr({fill:1===h?g.inactiveColor:g.activeColor}),this.upTracker.css({cursor:1===h?"default":"pointer"}),this.down.attr({fill:h===c?g.inactiveColor:g.activeColor}),this.downTracker.css({cursor:h===c?"default":"pointer"})),this.scrollOffset=-d[h-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=h,this.positionCheckboxes())}};c.LegendSymbolMixin={drawRectangle:function(a,b){var d=a.symbolHeight,c=a.options.squareSymbol;b.legendSymbol=this.chart.renderer.rect(c?(a.symbolWidth-d)/2:0,a.baseline-d+1,c?d:a.symbolWidth,d,x(a.options.symbolRadius,d/2)).addClass("highcharts-point").attr({zIndex:3}).add(b.legendGroup)},drawLineMarker:function(a){var b=this.options,c=b.marker,e=a.symbolWidth,h=a.symbolHeight,g=h/2,m=this.chart.renderer,q=this.legendGroup;a=a.baseline-Math.round(.3*a.fontMetrics.b);var v={};this.chart.styledMode||(v={"stroke-width":b.lineWidth||0},b.dashStyle&&(v.dashstyle=b.dashStyle));this.legendLine=m.path(["M",0,a,"L",e,a]).addClass("highcharts-graph").attr(v).add(q);c&&!1!==c.enabled&&e&&(b=Math.min(x(c.radius,g),g),0===this.symbol.indexOf("url")&&(c=C(c,{width:h,height:h}),b=0),this.legendSymbol=c=m.symbol(this.symbol,e/2-b,a-b,2*b,2*b,c).addClass("highcharts-point").add(q),c.isMarker=!0)}};(/Trident\/7\.0/.test(g.navigator&&g.navigator.userAgent)||n)&&b(c.Legend.prototype,"positionItem",function(a,b){var d=this,c=function(){b._legendItemPos&&a.call(d,b)};c();d.bubbleLegend||setTimeout(c)})});N(H,"parts/Chart.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.attr,D=n.defined,F=n.erase,z=n.isArray,u=n.isNumber,L=n.isObject,y=n.isString,C=n.objectEach,x=n.pInt,m=n.splat,p=c.addEvent,g=c.animate,b=c.animObject,a=c.doc,d=c.Axis,f=c.createElement,e=c.defaultOptions,h=c.discardElement,r=c.charts,E=c.css,q=c.extend,v=c.find,k=c.fireEvent,t=c.Legend,B=c.marginNames,I=c.merge,w=c.Pointer,l=c.pick,J=c.removeEvent,K=c.seriesTypes,T=c.syncTimeout,R=c.win,S=c.Chart=function(){this.getArgs.apply(this,arguments)};c.chart=function(a,b,d){return new S(a,b,d)};q(S.prototype,{callbacks:[],getArgs:function(){var a=[].slice.call(arguments);if(y(a[0])||a[0].nodeName)this.renderTo=a.shift();this.init(a[0],a[1])},init:function(a,b){var d,f=a.series,l=a.plotOptions||{};k(this,"init",{args:arguments},function(){a.series=null;d=I(e,a);C(d.plotOptions,function(a,b){L(a)&&(a.tooltip=l[b]&&I(l[b].tooltip)||void 0)});d.tooltip.userOptions=a.chart&&a.chart.forExport&&a.tooltip.userOptions||a.tooltip;d.series=a.series=f;this.userOptions=a;var t=d.chart,B=t.events;this.margin=[];this.spacing=[];this.bounds={h:{},v:{}};this.labelCollectors=[];this.callback=b;this.isResizing=0;this.options=d;this.axes=[];this.series=[];this.time=a.time&&Object.keys(a.time).length?new c.Time(a.time):c.time;this.styledMode=t.styledMode;this.hasCartesianSeries=t.showAxes;var h=this;h.index=r.length;r.push(h);c.chartCount++;B&&C(B,function(a,b){c.isFunction(a)&&p(h,b,a)});h.xAxis=[];h.yAxis=[];h.pointCount=h.colorCounter=h.symbolCounter=0;k(h,"afterInit");h.firstRender()})},initSeries:function(a){var b=this.options.chart;(b=K[a.type||b.type||b.defaultSeriesType])||c.error(17,!0,this);b=new b;b.init(this,a);return b},orderSeries:function(a){var b=this.series;for(a=a||0;a<b.length;a++)b[a]&&(b[a].index=a,b[a].name=b[a].getName())},isInsidePlot:function(a,b,d){var c=d?b:a;a=d?a:b;return 0<=c&&c<=this.plotWidth&&0<=a&&a<=this.plotHeight},redraw:function(a){k(this,"beforeRedraw");var b=this.axes,d=this.series,f=this.pointer,e=this.legend,l=this.userOptions.legend,t=this.isDirtyLegend,h=this.hasCartesianSeries,B=this.isDirtyBox,w=this.renderer,g=w.isHidden(),v=[];this.setResponsive&&this.setResponsive(!1);c.setAnimation(a,this);g&&this.temporaryDisplay();this.layOutTitles();for(a=d.length;a--;){var m=d[a];if(m.options.stacking){var I=!0;if(m.isDirty){var p=!0;break}}}if(p)for(a=d.length;a--;)m=d[a],m.options.stacking&&(m.isDirty=!0);d.forEach(function(a){a.isDirty&&("point"===a.options.legendType?(a.updateTotals&&a.updateTotals(),t=!0):l&&(l.labelFormatter||l.labelFormat)&&(t=!0));a.isDirtyData&&k(a,"updatedData")});t&&e&&e.options.enabled&&(e.render(),this.isDirtyLegend=!1);I&&this.getStacks();h&&b.forEach(function(a){a.updateNames();a.setScale()});this.getMargins();h&&(b.forEach(function(a){a.isDirty&&(B=!0)}),b.forEach(function(a){var b=a.min+","+a.max;a.extKey!==b&&(a.extKey=b,v.push(function(){k(a,"afterSetExtremes",q(a.eventArgs,a.getExtremes()));delete a.eventArgs}));(B||I)&&a.redraw()}));B&&this.drawChartBox();k(this,"predraw");d.forEach(function(a){(B||a.isDirty)&&a.visible&&a.redraw();a.isDirtyData=!1});f&&f.reset(!0);w.draw();k(this,"redraw");k(this,"render");g&&this.temporaryDisplay(!0);v.forEach(function(a){a.call()})},get:function(a){function b(b){return b.id===a||b.options&&b.options.id===a}var d=this.series,c;var f=v(this.axes,b)||v(this.series,b);for(c=0;!f&&c<d.length;c++)f=v(d[c].points||[],b);return f},getAxes:function(){var a=this,b=this.options,c=b.xAxis=m(b.xAxis||{});b=b.yAxis=m(b.yAxis||{});k(this,"getAxes");c.forEach(function(a,b){a.index=b;a.isX=!0});b.forEach(function(a,b){a.index=b});c.concat(b).forEach(function(b){new d(a,b)});k(this,"afterGetAxes")},getSelectedPoints:function(){var a=[];this.series.forEach(function(b){a=a.concat((b[b.hasGroupedData?"points":"data"]||[]).filter(function(a){return l(a.selectedStaging,a.selected)}))});return a},getSelectedSeries:function(){return this.series.filter(function(a){return a.selected})},setTitle:function(a,b,d){this.applyDescription("title",a);this.applyDescription("subtitle",b);this.applyDescription("caption",void 0);this.layOutTitles(d)},applyDescription:function(a,b){var d=this,c="title"===a?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};c=this.options[a]=I(!this.styledMode&&{style:c},this.options[a],b);var f=this[a];f&&b&&(this[a]=f=f.destroy());c&&!f&&(f=this.renderer.text(c.text,0,0,c.useHTML).attr({align:c.align,"class":"highcharts-"+a,zIndex:c.zIndex||4}).add(),f.update=function(b){d[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[a]](b)},this.styledMode||f.css(c.style),this[a]=f)},layOutTitles:function(a){var b=[0,0,0],d=this.renderer,c=this.spacingBox;["title","subtitle","caption"].forEach(function(a){var f=this[a],e=this.options[a],k=e.verticalAlign||"top";a="title"===a?-3:"top"===k?b[0]+2:0;if(f){if(!this.styledMode)var l=e.style.fontSize;l=d.fontMetrics(l,f).b;f.css({width:(e.width||c.width+(e.widthAdjust||0))+"px"});var t=f.getBBox(e.useHTML).height;f.align(q({y:"bottom"===k?l:a+l,height:t},e),!1,"spacingBox");e.floating||("top"===k?b[0]=Math.ceil(b[0]+t):"bottom"===k&&(b[2]=Math.ceil(b[2]+t)))}},this);b[0]&&"top"===(this.options.title.verticalAlign||"top")&&(b[0]+=this.options.title.margin);b[2]&&"bottom"===this.options.caption.verticalAlign&&(b[2]+=this.options.caption.margin);var f=!this.titleOffset||this.titleOffset.join(",")!==b.join(",");this.titleOffset=b;!this.isDirtyBox&&f&&(this.isDirtyBox=this.isDirtyLegend=f,this.hasRendered&&l(a,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var a=this.options.chart,b=a.width;a=a.height;var d=this.renderTo;D(b)||(this.containerWidth=c.getStyle(d,"width"));D(a)||(this.containerHeight=c.getStyle(d,"height"));this.chartWidth=Math.max(0,b||this.containerWidth||600);this.chartHeight=Math.max(0,c.relativeLength(a,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(b){var d=this.renderTo;if(b)for(;d&&d.style;)d.hcOrigStyle&&(c.css(d,d.hcOrigStyle),delete d.hcOrigStyle),d.hcOrigDetached&&(a.body.removeChild(d),d.hcOrigDetached=!1),d=d.parentNode;else for(;d&&d.style;){a.body.contains(d)||d.parentNode||(d.hcOrigDetached=!0,a.body.appendChild(d));if("none"===c.getStyle(d,"display",!1)||d.hcOricDetached)d.hcOrigStyle={display:d.style.display,height:d.style.height,overflow:d.style.overflow},b={display:"block",overflow:"hidden"},d!==this.renderTo&&(b.height=0),c.css(d,b),d.offsetWidth||d.style.setProperty("display","block","important");d=d.parentNode;if(d===a.body)break}},setClassName:function(a){this.container.className="highcharts-container "+(a||"")},getContainer:function(){var b=this.options,d=b.chart;var e=this.renderTo;var l=c.uniqueKey(),t,h;e||(this.renderTo=e=d.renderTo);y(e)&&(this.renderTo=e=a.getElementById(e));e||c.error(13,!0,this);var B=x(A(e,"data-highcharts-chart"));u(B)&&r[B]&&r[B].hasRendered&&r[B].destroy();A(e,"data-highcharts-chart",this.index);e.innerHTML="";d.skipClone||e.offsetWidth||this.temporaryDisplay();this.getChartSize();B=this.chartWidth;var w=this.chartHeight;E(e,{overflow:"hidden"});this.styledMode||(t=q({position:"relative",overflow:"hidden",width:B+"px",height:w+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},d.style));this.container=e=f("div",{id:l},t,e);this._cursor=e.style.cursor;this.renderer=new(c[d.renderer]||c.Renderer)(e,B,w,null,d.forExport,b.exporting&&b.exporting.allowHTML,this.styledMode);this.setClassName(d.className);if(this.styledMode)for(h in b.defs)this.renderer.definition(b.defs[h]);else this.renderer.setStyle(d.style);this.renderer.chartIndex=this.index;k(this,"afterGetContainer")},getMargins:function(a){var b=this.spacing,d=this.margin,c=this.titleOffset;this.resetMargins();c[0]&&!D(d[0])&&(this.plotTop=Math.max(this.plotTop,c[0]+b[0]));c[2]&&!D(d[2])&&(this.marginBottom=Math.max(this.marginBottom,c[2]+b[2]));this.legend&&this.legend.display&&this.legend.adjustMargins(d,b);k(this,"getMargins");a||this.getAxisMargins()},getAxisMargins:function(){var a=this,b=a.axisOffset=[0,0,0,0],d=a.colorAxis,c=a.margin,f=function(a){a.forEach(function(a){a.visible&&a.getOffset()})};a.hasCartesianSeries?f(a.axes):d&&d.length&&f(d);B.forEach(function(d,f){D(c[f])||(a[d]+=b[f])});a.setChartSize()},reflow:function(b){var d=this,f=d.options.chart,e=d.renderTo,k=D(f.width)&&D(f.height),l=f.width||c.getStyle(e,"width");f=f.height||c.getStyle(e,"height");e=b?b.target:R;if(!k&&!d.isPrinting&&l&&f&&(e===R||e===a)){if(l!==d.containerWidth||f!==d.containerHeight)c.clearTimeout(d.reflowTimeout),d.reflowTimeout=T(function(){d.container&&d.setSize(void 0,void 0,!1)},b?100:0);d.containerWidth=l;d.containerHeight=f}},setReflow:function(a){var b=this;!1===a||this.unbindReflow?!1===a&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=p(R,"resize",function(a){b.options&&b.reflow(a)}),p(this,"destroy",this.unbindReflow))},setSize:function(a,d,f){var e=this,l=e.renderer;e.isResizing+=1;c.setAnimation(f,e);e.oldChartHeight=e.chartHeight;e.oldChartWidth=e.chartWidth;void 0!==a&&(e.options.chart.width=a);void 0!==d&&(e.options.chart.height=d);e.getChartSize();if(!e.styledMode){var t=l.globalAnimation;(t?g:E)(e.container,{width:e.chartWidth+"px",height:e.chartHeight+"px"},t)}e.setChartSize(!0);l.setSize(e.chartWidth,e.chartHeight,f);e.axes.forEach(function(a){a.isDirty=!0;a.setScale()});e.isDirtyLegend=!0;e.isDirtyBox=!0;e.layOutTitles();e.getMargins();e.redraw(f);e.oldChartHeight=null;k(e,"resize");T(function(){e&&k(e,"endResize",null,function(){--e.isResizing})},b(t).duration)},setChartSize:function(a){var b=this.inverted,d=this.renderer,c=this.chartWidth,f=this.chartHeight,e=this.options.chart,l=this.spacing,t=this.clipOffset,B,h,w,g;this.plotLeft=B=Math.round(this.plotLeft);this.plotTop=h=Math.round(this.plotTop);this.plotWidth=w=Math.max(0,Math.round(c-B-this.marginRight));this.plotHeight=g=Math.max(0,Math.round(f-h-this.marginBottom));this.plotSizeX=b?g:w;this.plotSizeY=b?w:g;this.plotBorderWidth=e.plotBorderWidth||0;this.spacingBox=d.spacingBox={x:l[3],y:l[0],width:c-l[3]-l[1],height:f-l[0]-l[2]};this.plotBox=d.plotBox={x:B,y:h,width:w,height:g};c=2*Math.floor(this.plotBorderWidth/2);b=Math.ceil(Math.max(c,t[3])/2);d=Math.ceil(Math.max(c,t[0])/2);this.clipBox={x:b,y:d,width:Math.floor(this.plotSizeX-Math.max(c,t[1])/2-b),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(c,t[2])/2-d))};a||this.axes.forEach(function(a){a.setAxisSize();a.setAxisTranslation()});k(this,"afterSetChartSize",{skipAxes:a})},resetMargins:function(){k(this,"resetMargins");var a=this,b=a.options.chart;["margin","spacing"].forEach(function(d){var c=b[d],f=L(c)?c:[c,c,c,c];["Top","Right","Bottom","Left"].forEach(function(c,e){a[d][e]=l(b[d+c],f[e])})});B.forEach(function(b,d){a[b]=l(a.margin[d],a.spacing[d])});a.axisOffset=[0,0,0,0];a.clipOffset=[0,0,0,0]},drawChartBox:function(){var a=this.options.chart,b=this.renderer,d=this.chartWidth,c=this.chartHeight,f=this.chartBackground,e=this.plotBackground,l=this.plotBorder,t=this.styledMode,B=this.plotBGImage,h=a.backgroundColor,w=a.plotBackgroundColor,g=a.plotBackgroundImage,q,v=this.plotLeft,m=this.plotTop,I=this.plotWidth,p=this.plotHeight,r=this.plotBox,K=this.clipRect,x=this.clipBox,J="animate";f||(this.chartBackground=f=b.rect().addClass("highcharts-background").add(),J="attr");if(t)var n=q=f.strokeWidth();else{n=a.borderWidth||0;q=n+(a.shadow?8:0);h={fill:h||"none"};if(n||f["stroke-width"])h.stroke=a.borderColor,h["stroke-width"]=n;f.attr(h).shadow(a.shadow)}f[J]({x:q/2,y:q/2,width:d-q-n%2,height:c-q-n%2,r:a.borderRadius});J="animate";e||(J="attr",this.plotBackground=e=b.rect().addClass("highcharts-plot-background").add());e[J](r);t||(e.attr({fill:w||"none"}).shadow(a.plotShadow),g&&(B?B.animate(r):this.plotBGImage=b.image(g,v,m,I,p).add()));K?K.animate({width:x.width,height:x.height}):this.clipRect=b.clipRect(x);J="animate";l||(J="attr",this.plotBorder=l=b.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add());t||l.attr({stroke:a.plotBorderColor,"stroke-width":a.plotBorderWidth||0,fill:"none"});l[J](l.crisp({x:v,y:m,width:I,height:p},-l.strokeWidth()));this.isDirtyBox=!1;k(this,"afterDrawChartBox")},propFromSeries:function(){var a=this,b=a.options.chart,d,c=a.options.series,f,e;["inverted","angular","polar"].forEach(function(k){d=K[b.type||b.defaultSeriesType];e=b[k]||d&&d.prototype[k];for(f=c&&c.length;!e&&f--;)(d=K[c[f].type])&&d.prototype[k]&&(e=!0);a[k]=e})},linkSeries:function(){var a=this,b=a.series;b.forEach(function(a){a.linkedSeries.length=0});b.forEach(function(b){var d=b.options.linkedTo;y(d)&&(d=":previous"===d?a.series[b.index-1]:a.get(d))&&d.linkedParent!==b&&(d.linkedSeries.push(b),b.linkedParent=d,b.visible=l(b.options.visible,d.options.visible,b.visible))});k(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(a){a.translate();a.render()})},renderLabels:function(){var a=this,b=a.options.labels;b.items&&b.items.forEach(function(d){var c=q(b.style,d.style),f=x(c.left)+a.plotLeft,e=x(c.top)+a.plotTop+12;delete c.left;delete c.top;a.renderer.text(d.html,f,e).attr({zIndex:2}).css(c).add()})},render:function(){var a=this.axes,b=this.colorAxis,d=this.renderer,c=this.options,f=0,e=function(a){a.forEach(function(a){a.visible&&a.render()})};this.setTitle();this.legend=new t(this,c.legend);this.getStacks&&this.getStacks();this.getMargins(!0);this.setChartSize();c=this.plotWidth;a.some(function(a){if(a.horiz&&a.visible&&a.options.labels.enabled&&a.series.length)return f=21,!0});var k=this.plotHeight=Math.max(this.plotHeight-f,0);a.forEach(function(a){a.setScale()});this.getAxisMargins();var l=1.1<c/this.plotWidth;var h=1.05<k/this.plotHeight;if(l||h)a.forEach(function(a){(a.horiz&&l||!a.horiz&&h)&&a.setTickInterval(!0)}),this.getMargins();this.drawChartBox();this.hasCartesianSeries?e(a):b&&b.length&&e(b);this.seriesGroup||(this.seriesGroup=d.g("series-group").attr({zIndex:3}).add());this.renderSeries();this.renderLabels();this.addCredits();this.setResponsive&&this.setResponsive();this.updateContainerScaling();this.hasRendered=!0},addCredits:function(a){var b=this;a=I(!0,this.options.credits,a);a.enabled&&!this.credits&&(this.credits=this.renderer.text(a.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){a.href&&(R.location.href=a.href)}).attr({align:a.position.align,zIndex:8}),b.styledMode||this.credits.css(a.style),this.credits.add().align(a.position),this.credits.update=function(a){b.credits=b.credits.destroy();b.addCredits(a)})},updateContainerScaling:function(){var a=this.container;if(a.offsetWidth&&a.offsetHeight&&a.getBoundingClientRect){var b=a.getBoundingClientRect(),d=b.width/a.offsetWidth;a=b.height/a.offsetHeight;1!==d||1!==a?this.containerScaling={scaleX:d,scaleY:a}:delete this.containerScaling}},destroy:function(){var a=this,b=a.axes,d=a.series,f=a.container,e,l=f&&f.parentNode;k(a,"destroy");a.renderer.forExport?F(r,a):r[a.index]=void 0;c.chartCount--;a.renderTo.removeAttribute("data-highcharts-chart");J(a);for(e=b.length;e--;)b[e]=b[e].destroy();this.scroller&&this.scroller.destroy&&this.scroller.destroy();for(e=d.length;e--;)d[e]=d[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(b){var d=a[b];d&&d.destroy&&(a[b]=d.destroy())});f&&(f.innerHTML="",J(f),l&&h(f));C(a,function(b,d){delete a[d]})},firstRender:function(){var a=this,b=a.options;if(!a.isReadyToRender||a.isReadyToRender()){a.getContainer();a.resetMargins();a.setChartSize();a.propFromSeries();a.getAxes();(z(b.series)?b.series:[]).forEach(function(b){a.initSeries(b)});a.linkSeries();k(a,"beforeRender");w&&(a.pointer=new w(a,b));a.render();if(!a.renderer.imgCount&&a.onload)a.onload();a.temporaryDisplay(!0)}},onload:function(){this.callbacks.concat([this.callback]).forEach(function(a){a&&void 0!==this.index&&a.apply(this,[this])},this);k(this,"load");k(this,"render");D(this.index)&&this.setReflow(this.options.chart.reflow);this.onload=null}})});N(H,"parts/ScrollablePlotArea.js",[H["parts/Globals.js"]],function(c){var n=c.addEvent,A=c.Chart;"";n(A,"afterSetChartSize",function(n){var A=this.options.chart.scrollablePlotArea,z=A&&A.minWidth;A=A&&A.minHeight;if(!this.renderer.forExport){if(z){if(this.scrollablePixelsX=z=Math.max(0,z-this.chartWidth)){this.plotWidth+=z;this.inverted?(this.clipBox.height+=z,this.plotBox.height+=z):(this.clipBox.width+=z,this.plotBox.width+=z);var u={1:{name:"right",value:z}}}}else A&&(this.scrollablePixelsY=z=Math.max(0,A-this.chartHeight))&&(this.plotHeight+=z,this.inverted?(this.clipBox.width+=z,this.plotBox.width+=z):(this.clipBox.height+=z,this.plotBox.height+=z),u={2:{name:"bottom",value:z}});u&&!n.skipAxes&&this.axes.forEach(function(n){u[n.side]?n.getPlotLinePath=function(){var y=u[n.side].name,z=this[y];this[y]=z-u[n.side].value;var x=c.Axis.prototype.getPlotLinePath.apply(this,arguments);this[y]=z;return x}:(n.setAxisSize(),n.setAxisTranslation())})}});n(A,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()});A.prototype.setUpScrolling=function(){var n={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(n.overflowX="auto");this.scrollablePixelsY&&(n.overflowY="auto");this.scrollingContainer=c.createElement("div",{className:"highcharts-scrolling"},n,this.renderTo);this.innerContainer=c.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer);this.innerContainer.appendChild(this.container);this.setUpScrolling=null};A.prototype.moveFixedElements=function(){var c=this.container,n=this.fixedRenderer,z=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-reset-zoom .highcharts-subtitle .highcharts-title .highcharts-legend-checkbox".split(" "),u;this.scrollablePixelsX&&!this.inverted?u=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?u=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?u=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(u=".highcharts-yaxis");z.push(u,u+"-labels");z.forEach(function(u){[].forEach.call(c.querySelectorAll(u),function(c){(c.namespaceURI===n.SVG_NS?n.box:n.box.parentNode).appendChild(c);c.style.pointerEvents="auto"})})};A.prototype.applyFixed=function(){var A,F=!this.fixedDiv,z=this.options.chart.scrollablePlotArea;F?(this.fixedDiv=c.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=A=new c.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=A.path().attr({fill:c.color(this.options.chart.backgroundColor||"#fff").setOpacity(c.pick(z.opacity,.85)).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),n(this,"afterShowResetZoom",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight);A=this.chartWidth+(this.scrollablePixelsX||0);var u=this.chartHeight+(this.scrollablePixelsY||0);c.stop(this.container);this.container.style.width=A+"px";this.container.style.height=u+"px";this.renderer.boxWrapper.attr({width:A,height:u,viewBox:[0,0,A,u].join(" ")});this.chartBackground.attr({width:A,height:u});this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+
"px");F&&(z.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*z.scrollPositionX),z.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*z.scrollPositionY));u=this.axisOffset;F=this.plotTop-u[0]-1;z=this.plotLeft-u[3]-1;A=this.plotTop+this.plotHeight+u[2]+1;u=this.plotLeft+this.plotWidth+u[1]+1;var L=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),y=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);F=this.scrollablePixelsX?["M",0,F,"L",this.plotLeft-1,F,"L",this.plotLeft-1,A,"L",0,A,"Z","M",L,F,"L",this.chartWidth,F,"L",this.chartWidth,A,"L",L,A,"Z"]:this.scrollablePixelsY?["M",z,0,"L",z,this.plotTop-1,"L",u,this.plotTop-1,"L",u,0,"Z","M",z,y,"L",z,this.chartHeight,"L",u,this.chartHeight,"L",u,y,"Z"]:["M",0,0];"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:F})}});N(H,"parts/Point.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.erase,F=n.isArray,z=n.isNumber,u=n.isObject,L,y=c.extend,C=c.fireEvent,x=c.format,m=c.pick,p=c.uniqueKey,g=c.removeEvent;c.Point=L=function(){};c.Point.prototype={init:function(b,a,d){this.series=b;this.applyOptions(a,d);this.id=A(this.id)?this.id:p();this.resolveColor();b.chart.pointCount++;C(this,"afterInit");return this},resolveColor:function(){var b=this.series;var a=b.chart.options.chart.colorCount;var d=b.chart.styledMode;d||this.options.color||(this.color=b.color);b.options.colorByPoint?(d||(a=b.options.colors||b.chart.options.colors,this.color=this.color||a[b.colorCounter],a=a.length),d=b.colorCounter,b.colorCounter++,b.colorCounter===a&&(b.colorCounter=0)):d=b.colorIndex;this.colorIndex=m(this.colorIndex,d)},applyOptions:function(b,a){var d=this.series,c=d.options.pointValKey||d.pointValKey;b=L.prototype.optionsToObject.call(this,b);y(this,b);this.options=this.options?y(this.options,b):b;b.group&&delete this.group;b.dataLabels&&delete this.dataLabels;c&&(this.y=this[c]);this.formatPrefix=(this.isNull=m(this.isValid&&!this.isValid(),null===this.x||!z(this.y)))?"null":"point";this.selected&&(this.state="select");"name"in this&&void 0===a&&d.xAxis&&d.xAxis.hasNames&&(this.x=d.xAxis.nameToX(this));void 0===this.x&&d&&(this.x=void 0===a?d.autoIncrement(this):a);return this},setNestedProperty:function(b,a,d){d.split(".").reduce(function(b,d,c,g){b[d]=g.length-1===c?a:u(b[d],!0)?b[d]:{};return b[d]},b);return b},optionsToObject:function(b){var a={},d=this.series,f=d.options.keys,e=f||d.pointArrayMap||["y"],h=e.length,g=0,m=0;if(z(b)||null===b)a[e[0]]=b;else if(F(b))for(!f&&b.length>h&&(d=typeof b[0],"string"===d?a.name=b[0]:"number"===d&&(a.x=b[0]),g++);m<h;)f&&void 0===b[g]||(0<e[m].indexOf(".")?c.Point.prototype.setNestedProperty(a,b[g],e[m]):a[e[m]]=b[g]),g++,m++;else"object"===typeof b&&(a=b,b.dataLabels&&(d._hasPointLabels=!0),b.marker&&(d._hasPointMarkers=!0));return a},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var b=this.series,a=b.zones;b=b.zoneAxis||"y";var d=0,c;for(c=a[d];this[b]>=c.value;)c=a[++d];this.nonZonedColor||(this.nonZonedColor=this.color);this.color=c&&c.color&&!this.options.color?c.color:this.nonZonedColor;return c},destroy:function(){var b=this.series.chart,a=b.hoverPoints,d;b.pointCount--;a&&(this.setState(),D(a,this),a.length||(b.hoverPoints=null));if(this===b.hoverPoint)this.onMouseOut();if(this.graphic||this.dataLabel||this.dataLabels)g(this),this.destroyElements();this.legendItem&&b.legend.destroyItem(this);for(d in this)this[d]=null},destroyElements:function(b){var a=this,d=[],c;b=b||{graphic:1,dataLabel:1};b.graphic&&d.push("graphic","shadowGroup");b.dataLabel&&d.push("dataLabel","dataLabelUpper","connector");for(c=d.length;c--;){var e=d[c];a[e]&&(a[e]=a[e].destroy())}["dataLabel","connector"].forEach(function(d){var c=d+"s";b[d]&&a[c]&&(a[c].forEach(function(a){a.element&&a.destroy()}),delete a[c])})},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(b){var a=this.series,d=a.tooltipOptions,c=m(d.valueDecimals,""),e=d.valuePrefix||"",h=d.valueSuffix||"";a.chart.styledMode&&(b=a.chart.tooltip.styledModeFormat(b));(a.pointArrayMap||["y"]).forEach(function(a){a="{point."+a;if(e||h)b=b.replace(RegExp(a+"}","g"),e+a+"}"+h);b=b.replace(RegExp(a+"}","g"),a+":,."+c+"f}")});return x(b,{point:this,series:this.series},a.chart.time)},firePointEvent:function(b,a,d){var c=this,e=this.series.options;(e.point.events[b]||c.options&&c.options.events&&c.options.events[b])&&this.importEvents();"click"===b&&e.allowPointSelect&&(d=function(a){c.select&&c.select(null,a.ctrlKey||a.metaKey||a.shiftKey)});C(this,b,a,d)},visible:!0}});N(H,"parts/Series.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.erase,F=n.isArray,z=n.isNumber,u=n.isString,L=n.objectEach,y=n.splat,C=c.addEvent,x=c.animObject,m=c.arrayMax,p=c.arrayMin,g=c.correctFloat,b=c.defaultOptions,a=c.defaultPlotOptions,d=c.extend,f=c.fireEvent,e=c.merge,h=c.pick,r=c.removeEvent,E=c.SVGElement,q=c.syncTimeout,v=c.win;c.Series=c.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1E3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":c.numberFormat(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1E3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:c.Point,requireSorting:!0,sorted:!0,init:function(a,b){f(this,"init",{options:b});var e=this,k=a.series,t;this.eventOptions=this.eventOptions||{};e.chart=a;e.options=b=e.setOptions(b);e.linkedSeries=[];e.bindAxes();d(e,{name:b.name,state:"",visible:!1!==b.visible,selected:!0===b.selected});var l=b.events;L(l,function(a,b){c.isFunction(a)&&e.eventOptions[b]!==a&&(c.isFunction(e.eventOptions[b])&&r(e,b,e.eventOptions[b]),e.eventOptions[b]=a,C(e,b,a))});if(l&&l.click||b.point&&b.point.events&&b.point.events.click||b.allowPointSelect)a.runTrackerClick=!0;e.getColor();e.getSymbol();e.parallelArrays.forEach(function(a){e[a+"Data"]||(e[a+"Data"]=[])});e.points||e.data||e.setData(b.data,!1);e.isCartesian&&(a.hasCartesianSeries=!0);k.length&&(t=k[k.length-1]);e._i=h(t&&t._i,-1)+1;a.orderSeries(this.insert(k));f(this,"afterInit")},insert:function(a){var b=this.options.index,d;if(z(b)){for(d=a.length;d--;)if(b>=h(a[d].options.index,a[d]._i)){a.splice(d+1,0,this);break}-1===d&&a.unshift(this);d+=1}else a.push(this);return h(d,a.length-1)},bindAxes:function(){var a=this,b=a.options,d=a.chart,e;f(this,"bindAxes",null,function(){(a.axisTypes||[]).forEach(function(f){d[f].forEach(function(d){e=d.options;if(b[f]===e.index||void 0!==b[f]&&b[f]===e.id||void 0===b[f]&&0===e.index)a.insert(d.series),a[f]=d,d.isDirty=!0});a[f]||a.optionalAxis===f||c.error(18,!0,d)})})},updateParallelArrays:function(a,b){var d=a.series,c=arguments,f=z(b)?function(c){var f="y"===c&&d.toYData?d.toYData(a):a[c];d[c+"Data"][b]=f}:function(a){Array.prototype[b].apply(d[a+"Data"],Array.prototype.slice.call(c,2))};d.parallelArrays.forEach(f)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var a=this.options,b=this.xIncrement,d,c=a.pointIntervalUnit,f=this.chart.time;b=h(b,a.pointStart,0);this.pointInterval=d=h(this.pointInterval,a.pointInterval,1);c&&(a=new f.Date(b),"day"===c?f.set("Date",a,f.get("Date",a)+d):"month"===c?f.set("Month",a,f.get("Month",a)+d):"year"===c&&f.set("FullYear",a,f.get("FullYear",a)+d),d=a.getTime()-b);this.xIncrement=b+d;return b},setOptions:function(a){var d=this.chart,c=d.options,k=c.plotOptions,w=d.userOptions||{};a=e(a);d=d.styledMode;var l={plotOptions:k,userOptions:a};f(this,"setOptions",l);var g=l.plotOptions[this.type],q=w.plotOptions||{};this.userOptions=l.userOptions;w=e(g,k.series,w.plotOptions&&w.plotOptions[this.type],a);this.tooltipOptions=e(b.tooltip,b.plotOptions.series&&b.plotOptions.series.tooltip,b.plotOptions[this.type].tooltip,c.tooltip.userOptions,k.series&&k.series.tooltip,k[this.type].tooltip,a.tooltip);this.stickyTracking=h(a.stickyTracking,q[this.type]&&q[this.type].stickyTracking,q.series&&q.series.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:w.stickyTracking);null===g.marker&&delete w.marker;this.zoneAxis=w.zoneAxis;c=this.zones=(w.zones||[]).slice();!w.negativeColor&&!w.negativeFillColor||w.zones||(k={value:w[this.zoneAxis+"Threshold"]||w.threshold||0,className:"highcharts-negative"},d||(k.color=w.negativeColor,k.fillColor=w.negativeFillColor),c.push(k));c.length&&A(c[c.length-1].value)&&c.push(d?{}:{color:this.color,fillColor:this.fillColor});f(this,"afterSetOptions",{options:w});return w},getName:function(){return h(this.options.name,"Series "+(this.index+1))},getCyclic:function(a,b,d){var c=this.chart,f=this.userOptions,e=a+"Index",k=a+"Counter",t=d?d.length:h(c.options.chart[a+"Count"],c[a+"Count"]);if(!b){var B=h(f[e],f["_"+e]);A(B)||(c.series.length||(c[k]=0),f["_"+e]=B=c[k]%t,c[k]+=1);d&&(b=d[B])}void 0!==B&&(this[e]=B);this[a]=b},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||a[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(a,b){var d=a.id;a=a.x;var c=this.points,f;if(d){var e=(d=this.chart.get(d))&&d.index;void 0!==e&&(f=!0)}void 0===e&&z(a)&&(e=this.xData.indexOf(a,b));-1!==e&&void 0!==e&&this.cropped&&(e=e>=this.cropStart?e-this.cropStart:e);!f&&c[e]&&c[e].touched&&(e=void 0);return e},drawLegendSymbol:c.LegendSymbolMixin.drawLineMarker,updateData:function(a){var b=this.options,d=this.points,c=[],f,e,k,h=this.requireSorting,g=a.length===d.length,q=!0;this.xIncrement=null;a.forEach(function(a,e){var l=A(a)&&this.pointClass.prototype.optionsToObject.call({series:this},a)||{};var t=l.x;if(l.id||z(t))if(t=this.findPointIndex(l,k),-1===t||void 0===t?c.push(a):d[t]&&a!==b.data[t]?(d[t].update(a,!1,null,!1),d[t].touched=!0,h&&(k=t+1)):d[t]&&(d[t].touched=!0),!g||e!==t||this.hasDerivedData)f=!0},this);if(f)for(a=d.length;a--;)(e=d[a])&&!e.touched&&e.remove(!1);else g?a.forEach(function(a,b){d[b].update&&a!==d[b].y&&d[b].update(a,!1,null,!1)}):q=!1;d.forEach(function(a){a&&(a.touched=!1)});if(!q)return!1;c.forEach(function(a){this.addPoint(a,!1,null,null,!1)},this);return!0},setData:function(a,b,d,f){var e=this,k=e.points,t=k&&k.length||0,g,q=e.options,v=e.chart,m=null,B=e.xAxis,p=q.turboThreshold,I=this.xData,r=this.yData,x=(g=e.pointArrayMap)&&g.length,n=q.keys,y=0,E=1,A;a=a||[];g=a.length;b=h(b,!0);!1!==f&&g&&t&&!e.cropped&&!e.hasGroupedData&&e.visible&&!e.isSeriesBoosting&&(A=this.updateData(a));if(!A){e.xIncrement=null;e.colorCounter=0;this.parallelArrays.forEach(function(a){e[a+"Data"].length=0});if(p&&g>p){for(d=0;null===m&&d<g;)m=a[d],d++;if(z(m))for(d=0;d<g;d++)I[d]=this.autoIncrement(),r[d]=a[d];else if(F(m))if(x)for(d=0;d<g;d++)m=a[d],I[d]=m[0],r[d]=m.slice(1,x+1);else for(n&&(y=n.indexOf("x"),E=n.indexOf("y"),y=0<=y?y:0,E=0<=E?E:1),d=0;d<g;d++)m=a[d],I[d]=m[y],r[d]=m[E];else c.error(12,!1,v)}else for(d=0;d<g;d++)void 0!==a[d]&&(m={series:e},e.pointClass.prototype.applyOptions.apply(m,[a[d]]),e.updateParallelArrays(m,d));r&&u(r[0])&&c.error(14,!0,v);e.data=[];e.options.data=e.userOptions.data=a;for(d=t;d--;)k[d]&&k[d].destroy&&k[d].destroy();B&&(B.minRange=B.userMinRange);e.isDirty=v.isDirtyBox=!0;e.isDirtyData=!!k;d=!1}"point"===q.legendType&&(this.processData(),this.generatePoints());b&&v.redraw(d)},processData:function(a){var b=this.xData,d=this.yData,f=b.length;var e=0;var k=this.xAxis,h=this.options;var g=h.cropThreshold;var q=this.getExtremesFromAll||h.getExtremesFromAll,m=this.isCartesian;h=k&&k.val2lin;var v=k&&k.isLog,p=this.requireSorting;if(m&&!this.isDirty&&!k.isDirty&&!this.yAxis.isDirty&&!a)return!1;if(k){a=k.getExtremes();var r=a.min;var x=a.max}if(m&&this.sorted&&!q&&(!g||f>g||this.forceCrop))if(b[f-1]<r||b[0]>x)b=[],d=[];else if(this.yData&&(b[0]<r||b[f-1]>x)){e=this.cropData(this.xData,this.yData,r,x);b=e.xData;d=e.yData;e=e.start;var n=!0}for(g=b.length||1;--g;)if(f=v?h(b[g])-h(b[g-1]):b[g]-b[g-1],0<f&&(void 0===u||f<u))var u=f;else 0>f&&p&&(c.error(15,!1,this.chart),p=!1);this.cropped=n;this.cropStart=e;this.processedXData=b;this.processedYData=d;this.closestPointRange=this.basePointRange=u},cropData:function(a,b,d,c,f){var e=a.length,k=0,t=e,g;f=h(f,this.cropShoulder);for(g=0;g<e;g++)if(a[g]>=d){k=Math.max(0,g-f);break}for(d=g;d<e;d++)if(a[d]>c){t=d+f;break}return{xData:a.slice(k,t),yData:b.slice(k,t),start:k,end:t}},generatePoints:function(){var a=this.options,b=a.data,c=this.data,e,h=this.processedXData,l=this.processedYData,g=this.pointClass,q=h.length,m=this.cropStart||0,v=this.hasGroupedData;a=a.keys;var p=[],r;c||v||(c=[],c.length=b.length,c=this.data=c);a&&v&&(this.options.keys=!1);for(r=0;r<q;r++){var x=m+r;if(v){var n=(new g).init(this,[h[r]].concat(y(l[r])));n.dataGroup=this.groupMap[r];n.dataGroup.options&&(n.options=n.dataGroup.options,d(n,n.dataGroup.options),delete n.dataLabels)}else(n=c[x])||void 0===b[x]||(c[x]=n=(new g).init(this,b[x],h[r]));n&&(n.index=x,p[r]=n)}this.options.keys=a;if(c&&(q!==(e=c.length)||v))for(r=0;r<e;r++)r!==m||v||(r+=q),c[r]&&(c[r].destroyElements(),c[r].plotX=void 0);this.data=c;this.points=p;f(this,"afterGeneratePoints")},getXExtremes:function(a){return{min:p(a),max:m(a)}},getExtremes:function(a){var b=this.xAxis,d=this.yAxis,c=this.processedXData||this.xData,e=[],k=0,h=0;var g=0;var q=this.requireSorting?this.cropShoulder:0,v=d?d.positiveValuesOnly:!1,r;a=a||this.stackedYData||this.processedYData||[];d=a.length;b&&(g=b.getExtremes(),h=g.min,g=g.max);for(r=0;r<d;r++){var x=c[r];var n=a[r];var u=(z(n)||F(n))&&(n.length||0<n||!v);x=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!b||(c[r+q]||x)>=h&&(c[r-q]||x)<=g;if(u&&x)if(u=n.length)for(;u--;)z(n[u])&&(e[k++]=n[u]);else e[k++]=n}this.dataMin=p(e);this.dataMax=m(e);f(this,"afterGetExtremes")},translate:function(){this.processedXData||this.processData();this.generatePoints();var a=this.options,b=a.stacking,d=this.xAxis,c=d.categories,e=this.yAxis,l=this.points,q=l.length,m=!!this.modifyValue,v,p=this.pointPlacementToXValue(),r=z(p),n=a.threshold,x=a.startFromThreshold?n:0,u,y=this.zoneAxis||"y",E=Number.MAX_VALUE;for(v=0;v<q;v++){var C=l[v],L=C.x;var D=C.y;var H=C.low,N=b&&e.stacks[(this.negStacks&&D<(x?0:n)?"-":"")+this.stackKey];e.positiveValuesOnly&&null!==D&&0>=D&&(C.isNull=!0);C.plotX=u=g(Math.min(Math.max(-1E5,d.translate(L,0,0,0,1,p,"flags"===this.type)),1E5));if(b&&this.visible&&N&&N[L]){var W=this.getStackIndicator(W,L,this.index);if(!C.isNull){var P=N[L];var X=P.points[W.key]}}F(X)&&(H=X[0],D=X[1],H===x&&W.key===N[L].base&&(H=h(z(n)&&n,e.min)),e.positiveValuesOnly&&0>=H&&(H=null),C.total=C.stackTotal=P.total,C.percentage=P.total&&C.y/P.total*100,C.stackY=D,this.irregularWidths||P.setOffset(this.pointXOffset||0,this.barW||0));C.yBottom=A(H)?Math.min(Math.max(-1E5,e.translate(H,0,1,0,1)),1E5):null;m&&(D=this.modifyValue(D,C));C.plotY=D="number"===typeof D&&Infinity!==D?Math.min(Math.max(-1E5,e.translate(D,0,1,0,1)),1E5):void 0;C.isInside=void 0!==D&&0<=D&&D<=e.len&&0<=u&&u<=d.len;C.clientX=r?g(d.translate(L,0,0,0,1,p)):u;C.negative=C[y]<(a[y+"Threshold"]||n||0);C.category=c&&void 0!==c[C.x]?c[C.x]:C.x;if(!C.isNull){void 0!==Y&&(E=Math.min(E,Math.abs(u-Y)));var Y=u}C.zone=this.zones.length&&C.getZone()}this.closestPointRangePx=E;f(this,"afterTranslate")},getValidPoints:function(a,b,d){var c=this.chart;return(a||this.points||[]).filter(function(a){return b&&!c.isInsidePlot(a.plotX,a.plotY,c.inverted)?!1:d||!a.isNull})},getClipBox:function(a,b){var d=this.options,c=this.chart,f=c.inverted,e=this.xAxis,k=e&&this.yAxis;a&&!1===d.clip&&k?a=f?{y:-c.chartWidth+k.len+k.pos,height:c.chartWidth,width:c.chartHeight,x:-c.chartHeight+e.len+e.pos}:{y:-k.pos,height:c.chartHeight,width:c.chartWidth,x:-e.pos}:(a=this.clipBox||c.clipBox,b&&(a.width=c.plotSizeX,a.x=0));return b?{width:a.width,x:a.x}:a},setClip:function(a){var b=this.chart,d=this.options,c=b.renderer,f=b.inverted,e=this.clipBox,k=this.getClipBox(a),h=this.sharedClipKey||["_sharedClip",a&&a.duration,a&&a.easing,k.height,d.xAxis,d.yAxis].join(),g=b[h],q=b[h+"m"];g||(a&&(k.width=0,f&&(k.x=b.plotSizeX+(!1!==d.clip?0:b.plotTop)),b[h+"m"]=q=c.clipRect(f?b.plotSizeX+99:-99,f?-b.plotLeft:-b.plotTop,99,f?b.chartWidth:b.chartHeight)),b[h]=g=c.clipRect(k),g.count={length:0});a&&!g.count[this.index]&&(g.count[this.index]=!0,g.count.length+=1);if(!1!==d.clip||a)this.group.clip(a||e?g:b.clipRect),this.markerGroup.clip(q),this.sharedClipKey=h;a||(g.count[this.index]&&(delete g.count[this.index],--g.count.length),0===g.count.length&&h&&b[h]&&(e||(b[h]=b[h].destroy()),b[h+"m"]&&(b[h+"m"]=b[h+"m"].destroy())))},animate:function(a){var b=this.chart,d=x(this.options.animation);if(a)this.setClip(d);else{var c=this.sharedClipKey;a=b[c];var f=this.getClipBox(d,!0);a&&a.animate(f,d);b[c+"m"]&&b[c+"m"].animate({width:f.width+99,x:f.x-(b.inverted?0:99)},d);this.animate=null}},afterAnimate:function(){this.setClip();f(this,"afterAnimate");this.finishedAnimating=!0},drawPoints:function(){var a=this.points,b=this.chart,d,c=this.options.marker,f=this[this.specialGroup]||this.markerGroup;var e=this.xAxis;var g=h(c.enabled,!e||e.isRadial?!0:null,this.closestPointRangePx>=c.enabledThreshold*c.radius);if(!1!==c.enabled||this._hasPointMarkers)for(e=0;e<a.length;e++){var q=a[e];var m=(d=q.graphic)?"animate":"attr";var v=q.marker||{};var p=!!q.marker;var r=g&&void 0===v.enabled||v.enabled;var n=!1!==q.isInside;if(r&&!q.isNull){r=h(v.symbol,this.symbol);var x=this.markerAttribs(q,q.selected&&"select");d?d[n?"show":"hide"](n).animate(x):n&&(0<x.width||q.hasImage)&&(q.graphic=d=b.renderer.symbol(r,x.x,x.y,x.width,x.height,p?v:c).add(f));if(d&&!b.styledMode)d[m](this.pointAttribs(q,q.selected&&"select"));d&&d.addClass(q.getClassName(),!0)}else d&&(q.graphic=d.destroy())}},markerAttribs:function(a,b){var d=this.options.marker,c=a.marker||{},f=c.symbol||d.symbol,e=h(c.radius,d.radius);b&&(d=d.states[b],b=c.states&&c.states[b],e=h(b&&b.radius,d&&d.radius,e+(d&&d.radiusPlus||0)));a.hasImage=f&&0===f.indexOf("url");a.hasImage&&(e=0);a={x:Math.floor(a.plotX)-e,y:a.plotY-e};e&&(a.width=a.height=2*e);return a},pointAttribs:function(a,b){var d=this.options.marker,c=a&&a.options,f=c&&c.marker||{},e=this.color,k=c&&c.color,t=a&&a.color;c=h(f.lineWidth,d.lineWidth);var g=a&&a.zone&&a.zone.color;a=1;e=k||g||t||e;k=f.fillColor||d.fillColor||e;e=f.lineColor||d.lineColor||e;b=b||"normal";d=d.states[b];b=f.states&&f.states[b]||{};c=h(b.lineWidth,d.lineWidth,c+h(b.lineWidthPlus,d.lineWidthPlus,0));k=b.fillColor||d.fillColor||k;e=b.lineColor||d.lineColor||e;a=h(b.opacity,d.opacity,a);return{stroke:e,"stroke-width":c,fill:k,opacity:a}},destroy:function(a){var b=this,d=b.chart,e=/AppleWebKit\/533/.test(v.navigator.userAgent),k,l,h=b.data||[],g,q;f(b,"destroy");a||r(b);(b.axisTypes||[]).forEach(function(a){(q=b[a])&&q.series&&(D(q.series,b),q.isDirty=q.forceRedraw=!0)});b.legendItem&&b.chart.legend.destroyItem(b);for(l=h.length;l--;)(g=h[l])&&g.destroy&&g.destroy();b.points=null;c.clearTimeout(b.animationTimeout);L(b,function(a,b){a instanceof E&&!a.survive&&(k=e&&"group"===b?"hide":"destroy",a[k]())});d.hoverSeries===b&&(d.hoverSeries=null);D(d.series,b);d.orderSeries();L(b,function(d,c){a&&"hcEvents"===c||delete b[c]})},getGraphPath:function(a,b,d){var c=this,f=c.options,e=f.step,k,h=[],t=[],g;a=a||c.points;(k=a.reversed)&&a.reverse();(e={right:1,center:2}[e]||e&&3)&&k&&(e=4-e);!f.connectNulls||b||d||(a=this.getValidPoints(a));a.forEach(function(k,l){var q=k.plotX,v=k.plotY,m=a[l-1];(k.leftCliff||m&&m.rightCliff)&&!d&&(g=!0);k.isNull&&!A(b)&&0<l?g=!f.connectNulls:k.isNull&&!b?g=!0:(0===l||g?l=["M",k.plotX,k.plotY]:c.getPointSpline?l=c.getPointSpline(a,k,l):e?(l=1===e?["L",m.plotX,v]:2===e?["L",(m.plotX+q)/2,m.plotY,"L",(m.plotX+q)/2,v]:["L",q,m.plotY],l.push("L",q,v)):l=["L",q,v],t.push(k.x),e&&(t.push(k.x),2===e&&t.push(k.x)),h.push.apply(h,l),g=!1)});h.xMap=t;return c.graphPath=h},drawGraph:function(){var a=this,b=this.options,d=(this.gappedPath||this.getGraphPath).call(this),c=this.chart.styledMode,f=[["graph","highcharts-graph"]];c||f[0].push(b.lineColor||this.color||"#cccccc",b.dashStyle);f=a.getZonesGraphs(f);f.forEach(function(f,e){var k=f[0],l=a[k],h=l?"animate":"attr";l?(l.endX=a.preventGraphAnimation?null:d.xMap,l.animate({d:d})):d.length&&(a[k]=l=a.chart.renderer.path(d).addClass(f[1]).attr({zIndex:1}).add(a.group));l&&!c&&(k={stroke:f[2],"stroke-width":b.lineWidth,fill:a.fillGraph&&a.color||"none"},f[3]?k.dashstyle=f[3]:"square"!==b.linecap&&(k["stroke-linecap"]=k["stroke-linejoin"]="round"),l[h](k).shadow(2>e&&b.shadow));l&&(l.startX=d.xMap,l.isArea=d.isArea)})},getZonesGraphs:function(a){this.zones.forEach(function(b,d){d=["zone-graph-"+d,"highcharts-graph highcharts-zone-graph-"+d+" "+(b.className||"")];this.chart.styledMode||d.push(b.color||this.color,b.dashStyle||this.options.dashStyle);a.push(d)},this);return a},applyZones:function(){var a=this,b=this.chart,d=b.renderer,c=this.zones,f,e,g=this.clips||[],q,m=this.graph,v=this.area,p=Math.max(b.chartWidth,b.chartHeight),r=this[(this.zoneAxis||"y")+"Axis"],n=b.inverted,x,u,y,E=!1;if(c.length&&(m||v)&&r&&void 0!==r.min){var z=r.reversed;var A=r.horiz;m&&!this.showLine&&m.hide();v&&v.hide();var C=r.getExtremes();c.forEach(function(c,k){f=z?A?b.plotWidth:0:A?0:r.toPixels(C.min)||0;f=Math.min(Math.max(h(e,f),0),p);e=Math.min(Math.max(Math.round(r.toPixels(h(c.value,C.max),!0)||0),0),p);E&&(f=e=r.toPixels(C.max));x=Math.abs(f-e);u=Math.min(f,e);y=Math.max(f,e);r.isXAxis?(q={x:n?y:u,y:0,width:x,height:p},A||(q.x=b.plotHeight-q.x)):(q={x:0,y:n?y:u,width:p,height:x},A&&(q.y=b.plotWidth-q.y));n&&d.isVML&&(q=r.isXAxis?{x:0,y:z?u:y,height:q.width,width:b.chartWidth}:{x:q.y-b.plotLeft-b.spacingBox.x,y:0,width:q.height,height:b.chartHeight});g[k]?g[k].animate(q):g[k]=d.clipRect(q);m&&a["zone-graph-"+k].clip(g[k]);v&&a["zone-area-"+k].clip(g[k]);E=c.value>C.max;a.resetZones&&0===e&&(e=void 0)});this.clips=g}else a.visible&&(m&&m.show(!0),v&&v.show(!0))},invertGroups:function(a){function b(){["group","markerGroup"].forEach(function(b){d[b]&&(c.renderer.isVML&&d[b].attr({width:d.yAxis.len,height:d.xAxis.len}),d[b].width=d.yAxis.len,d[b].height=d.xAxis.len,d[b].invert(a))})}var d=this,c=d.chart;if(d.xAxis){var f=C(c,"resize",b);C(d,"destroy",f);b(a);d.invertGroups=b}},plotGroup:function(a,b,d,c,f){var e=this[a],k=!e;k&&(this[a]=e=this.chart.renderer.g().attr({zIndex:c||.1}).add(f));e.addClass("highcharts-"+
b+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(A(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(e.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0);e.attr({visibility:d})[k?"attr":"animate"](this.getPlotBox());return e},getPlotBox:function(){var a=this.chart,b=this.xAxis,d=this.yAxis;a.inverted&&(b=d,d=this.xAxis);return{translateX:b?b.left:a.plotLeft,translateY:d?d.top:a.plotTop,scaleX:1,scaleY:1}},render:function(){var a=this,b=a.chart,d=a.options,c=!!a.animate&&b.renderer.isSVG&&x(d.animation).duration,e=a.visible?"inherit":"hidden",l=d.zIndex,h=a.hasRendered,g=b.seriesGroup,m=b.inverted;f(this,"render");var v=a.plotGroup("group","series",e,l,g);a.markerGroup=a.plotGroup("markerGroup","markers",e,l,g);c&&a.animate(!0);v.inverted=a.isCartesian||a.invertable?m:!1;a.drawGraph&&(a.drawGraph(),a.applyZones());a.visible&&a.drawPoints();a.drawDataLabels&&a.drawDataLabels();a.redrawPoints&&a.redrawPoints();a.drawTracker&&!1!==a.options.enableMouseTracking&&a.drawTracker();a.invertGroups(m);!1===d.clip||a.sharedClipKey||h||v.clip(b.clipRect);c&&a.animate();h||(a.animationTimeout=q(function(){a.afterAnimate()},c));a.isDirty=!1;a.hasRendered=!0;f(a,"afterRender")},redraw:function(){var a=this.chart,b=this.isDirty||this.isDirtyData,d=this.group,c=this.xAxis,f=this.yAxis;d&&(a.inverted&&d.attr({width:a.plotWidth,height:a.plotHeight}),d.animate({translateX:h(c&&c.left,a.plotLeft),translateY:h(f&&f.top,a.plotTop)}));this.translate();this.render();b&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(a,b){var d=this.xAxis,c=this.yAxis,f=this.chart.inverted;return this.searchKDTree({clientX:f?d.len-a.chartY+d.pos:a.chartX-d.pos,plotY:f?c.len-a.chartX+c.pos:a.chartY-c.pos},b,a)},buildKDTree:function(a){function b(a,c,f){var e;if(e=a&&a.length){var k=d.kdAxisArray[c%f];a.sort(function(a,b){return a[k]-b[k]});e=Math.floor(e/2);return{point:a[e],left:b(a.slice(0,e),c+1,f),right:b(a.slice(e+1),c+1,f)}}}this.buildingKdTree=!0;var d=this,c=-1<d.options.findNearestPointBy.indexOf("y")?2:1;delete d.kdTree;q(function(){d.kdTree=b(d.getValidPoints(null,!d.directTouch),c,c);d.buildingKdTree=!1},d.options.kdNow||a&&"touchstart"===a.type?0:1)},searchKDTree:function(a,b,d){function c(a,b,d,l){var g=b.point,q=f.kdAxisArray[d%l],t=g;var m=A(a[e])&&A(g[e])?Math.pow(a[e]-g[e],2):null;var v=A(a[k])&&A(g[k])?Math.pow(a[k]-g[k],2):null;v=(m||0)+(v||0);g.dist=A(v)?Math.sqrt(v):Number.MAX_VALUE;g.distX=A(m)?Math.sqrt(m):Number.MAX_VALUE;q=a[q]-g[q];v=0>q?"left":"right";m=0>q?"right":"left";b[v]&&(v=c(a,b[v],d+1,l),t=v[h]<t[h]?v:g);b[m]&&Math.sqrt(q*q)<t[h]&&(a=c(a,b[m],d+1,l),t=a[h]<t[h]?a:t);return t}var f=this,e=this.kdAxisArray[0],k=this.kdAxisArray[1],h=b?"distX":"dist";b=-1<f.options.findNearestPointBy.indexOf("y")?2:1;this.kdTree||this.buildingKdTree||this.buildKDTree(d);if(this.kdTree)return c(a,this.kdTree,b,b)},pointPlacementToXValue:function(){var a=this.options.pointPlacement;"between"===a&&(a=.5);z(a)&&(a*=h(this.options.pointRange||this.xAxis.pointRange));return a}});""});N(H,"parts/Stacking.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.objectEach;n=c.Axis;var F=c.Chart,z=c.correctFloat,u=c.destroyObjectProperties,L=c.format,y=c.pick,C=c.Series;c.StackItem=function(c,m,p,g,b){var a=c.chart.inverted;this.axis=c;this.isNegative=p;this.options=m=m||{};this.x=g;this.total=null;this.points={};this.stack=b;this.rightCliff=this.leftCliff=0;this.alignOptions={align:m.align||(a?p?"left":"right":"center"),verticalAlign:m.verticalAlign||(a?"middle":p?"bottom":"top"),y:m.y,x:m.x};this.textAlign=m.textAlign||(a?p?"right":"left":"center")};c.StackItem.prototype={destroy:function(){u(this,this.axis)},render:function(c){var m=this.axis.chart,p=this.options,g=p.format;g=g?L(g,this,m.time):p.formatter.call(this);this.label?this.label.attr({text:g,visibility:"hidden"}):(this.label=m.renderer.label(g,null,null,p.shape,null,null,p.useHTML,!1,"stack-labels"),g={text:g,align:this.textAlign,rotation:p.rotation,padding:y(p.padding,0),visibility:"hidden"},this.label.attr(g),m.styledMode||this.label.css(p.style),this.label.added||this.label.add(c));this.label.labelrank=m.plotHeight},setOffset:function(c,m,p,g,b){var a=this.axis,d=a.chart;g=a.translate(a.usePercentage?100:g?g:this.total,0,0,0,1);p=a.translate(p?p:0);p=A(g)&&Math.abs(g-p);c=y(b,d.xAxis[0].translate(this.x))+c;a=A(g)&&this.getStackBox(d,this,c,g,m,p,a);m=this.label;c=this.isNegative;b="justify"===y(this.options.overflow,"justify");if(m&&a){p=m.getBBox();var f=d.inverted?c?p.width:0:p.width/2,e=d.inverted?p.height/2:c?-4:p.height+4;this.alignOptions.x=y(this.options.x,0);m.align(this.alignOptions,null,a);g=m.alignAttr;m.show();g.y-=e;b&&(g.x-=f,C.prototype.justifyDataLabel.call(this.axis,m,this.alignOptions,g,p,a),g.x+=f);g.x=m.alignAttr.x;m.attr({x:g.x,y:g.y});y(!b&&this.options.crop,!0)&&((d=d.isInsidePlot(m.x+(d.inverted?0:-p.width/2),m.y)&&d.isInsidePlot(m.x+(d.inverted?c?-p.width:p.width:p.width/2),m.y+p.height))||m.hide())}},getStackBox:function(c,m,p,g,b,a,d){var f=m.axis.reversed,e=c.inverted;c=d.height+d.pos-(e?c.plotLeft:c.plotTop);m=m.isNegative&&!f||!m.isNegative&&f;return{x:e?m?g:g-a:p,y:e?c-p-b:m?c-g-a:c-g,width:e?a:b,height:e?b:a}}};F.prototype.getStacks=function(){var c=this,m=c.inverted;c.yAxis.forEach(function(c){c.stacks&&c.hasVisibleSeries&&(c.oldStacks=c.stacks)});c.series.forEach(function(p){var g=p.xAxis&&p.xAxis.options||{};!p.options.stacking||!0!==p.visible&&!1!==c.options.chart.ignoreHiddenSeries||(p.stackKey=[p.type,y(p.options.stack,""),m?g.top:g.left,m?g.height:g.width].join())})};n.prototype.buildStacks=function(){var c=this.series,m=y(this.options.reversedStacks,!0),p=c.length,g;if(!this.isXAxis){this.usePercentage=!1;for(g=p;g--;)c[m?g:p-g-1].setStackedPoints();for(g=0;g<p;g++)c[g].modifyStacks()}};n.prototype.renderStackTotals=function(){var c=this.chart,m=c.renderer,p=this.stacks,g=this.stackTotalGroup;g||(this.stackTotalGroup=g=m.g("stack-labels").attr({visibility:"visible",zIndex:6}).add());g.translate(c.plotLeft,c.plotTop);D(p,function(b){D(b,function(a){a.render(g)})})};n.prototype.resetStacks=function(){var c=this,m=c.stacks;c.isXAxis||D(m,function(m){D(m,function(g,b){g.touched<c.stacksTouched?(g.destroy(),delete m[b]):(g.total=null,g.cumulative=null)})})};n.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var c=this.stacks=this.oldStacks;D(c,function(c){D(c,function(c){c.cumulative=c.total})})}};C.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var n=this.processedXData,m=this.processedYData,p=[],g=m.length,b=this.options,a=b.threshold,d=y(b.startFromThreshold&&a,0),f=b.stack;b=b.stacking;var e=this.stackKey,h="-"+e,r=this.negStacks,u=this.yAxis,q=u.stacks,v=u.oldStacks,k,t;u.stacksTouched+=1;for(t=0;t<g;t++){var B=n[t];var I=m[t];var w=this.getStackIndicator(w,B,this.index);var l=w.key;var J=(k=r&&I<(d?0:a))?h:e;q[J]||(q[J]={});q[J][B]||(v[J]&&v[J][B]?(q[J][B]=v[J][B],q[J][B].total=null):q[J][B]=new c.StackItem(u,u.options.stackLabels,k,B,f));J=q[J][B];null!==I?(J.points[l]=J.points[this.index]=[y(J.cumulative,d)],A(J.cumulative)||(J.base=l),J.touched=u.stacksTouched,0<w.index&&!1===this.singleStacks&&(J.points[l][0]=J.points[this.index+","+B+",0"][0])):J.points[l]=J.points[this.index]=null;"percent"===b?(k=k?e:h,r&&q[k]&&q[k][B]?(k=q[k][B],J.total=k.total=Math.max(k.total,J.total)+Math.abs(I)||0):J.total=z(J.total+(Math.abs(I)||0))):J.total=z(J.total+(I||0));J.cumulative=y(J.cumulative,d)+(I||0);null!==I&&(J.points[l].push(J.cumulative),p[t]=J.cumulative)}"percent"===b&&(u.usePercentage=!0);this.stackedYData=p;u.oldStacks={}}};C.prototype.modifyStacks=function(){var c=this,m=c.stackKey,p=c.yAxis.stacks,g=c.processedXData,b,a=c.options.stacking;c[a+"Stacker"]&&[m,"-"+m].forEach(function(d){for(var f=g.length,e,h;f--;)if(e=g[f],b=c.getStackIndicator(b,e,c.index,d),h=(e=p[d]&&p[d][e])&&e.points[b.key])c[a+"Stacker"](h,e,f)})};C.prototype.percentStacker=function(c,m,p){m=m.total?100/m.total:0;c[0]=z(c[0]*m);c[1]=z(c[1]*m);this.stackedYData[p]=c[1]};C.prototype.getStackIndicator=function(c,m,p,g){!A(c)||c.x!==m||g&&c.key!==g?c={x:m,index:0,key:g}:c.index++;c.key=[p,m,c.index].join();return c}});N(H,"parts/Dynamics.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.erase,F=n.isArray,z=n.isNumber,u=n.isObject,L=n.isString,y=n.objectEach,C=n.splat,x=c.addEvent,m=c.animate,p=c.Axis;n=c.Chart;var g=c.createElement,b=c.css,a=c.extend,d=c.fireEvent,f=c.merge,e=c.pick,h=c.Point,r=c.Series,E=c.seriesTypes,q=c.setAnimation;c.cleanRecursively=function(a,b){var d={};y(a,function(f,e){if(u(a[e],!0)&&!a.nodeType&&b[e])f=c.cleanRecursively(a[e],b[e]),Object.keys(f).length&&(d[e]=f);else if(u(a[e])||a[e]!==b[e])d[e]=a[e]});return d};a(n.prototype,{addSeries:function(a,b,c){var f,k=this;a&&(b=e(b,!0),d(k,"addSeries",{options:a},function(){f=k.initSeries(a);k.isDirtyLegend=!0;k.linkSeries();d(k,"afterAddSeries",{series:f});b&&k.redraw(c)}));return f},addAxis:function(a,b,d,c){return this.createAxis(b?"xAxis":"yAxis",{axis:a,redraw:d,animation:c})},addColorAxis:function(a,b,d){return this.createAxis("colorAxis",{axis:a,redraw:b,animation:d})},createAxis:function(a,b){var d=this.options,k="colorAxis"===a,h=b.redraw,g=b.animation;b=f(b.axis,{index:this[a].length,isX:"xAxis"===a});var l=k?new c.ColorAxis(this,b):new p(this,b);d[a]=C(d[a]||{});d[a].push(b);k&&(this.isDirtyLegend=!0);e(h,!0)&&this.redraw(g);return l},showLoading:function(d){var c=this,f=c.options,h=c.loadingDiv,q=f.loading,v=function(){h&&b(h,{left:c.plotLeft+
"px",top:c.plotTop+"px",width:c.plotWidth+"px",height:c.plotHeight+"px"})};h||(c.loadingDiv=h=g("div",{className:"highcharts-loading highcharts-loading-hidden"},null,c.container),c.loadingSpan=g("span",{className:"highcharts-loading-inner"},null,h),x(c,"redraw",v));h.className="highcharts-loading";c.loadingSpan.innerHTML=e(d,f.lang.loading,"");c.styledMode||(b(h,a(q.style,{zIndex:10})),b(c.loadingSpan,q.labelStyle),c.loadingShown||(b(h,{opacity:0,display:""}),m(h,{opacity:q.style.opacity||.5},{duration:q.showDuration||0})));c.loadingShown=!0;v()},hideLoading:function(){var a=this.options,d=this.loadingDiv;d&&(d.className="highcharts-loading highcharts-loading-hidden",this.styledMode||m(d,{opacity:0},{duration:a.loading.hideDuration||100,complete:function(){b(d,{display:"none"})}}));this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:"xAxis yAxis zAxis series colorAxis pane".split(" "),update:function(a,b,h,g){var k=this,q={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},l,m,t,v=a.isResponsiveOptions,r=[];d(k,"update",{options:a});v||k.setResponsive(!1,!0);a=c.cleanRecursively(a,k.options);f(!0,k.userOptions,a);if(l=a.chart){f(!0,k.options.chart,l);"className"in l&&k.setClassName(l.className);"reflow"in l&&k.setReflow(l.reflow);if("inverted"in l||"polar"in l||"type"in l){k.propFromSeries();var p=!0}"alignTicks"in l&&(p=!0);y(l,function(a,b){-1!==k.propsRequireUpdateSeries.indexOf("chart."+b)&&(m=!0);-1!==k.propsRequireDirtyBox.indexOf(b)&&(k.isDirtyBox=!0);v||-1===k.propsRequireReflow.indexOf(b)||(t=!0)});!k.styledMode&&"style"in l&&k.renderer.setStyle(l.style)}!k.styledMode&&a.colors&&(this.options.colors=a.colors);a.plotOptions&&f(!0,this.options.plotOptions,a.plotOptions);a.time&&this.time===c.time&&(this.time=new c.Time(a.time));y(a,function(a,b){if(k[b]&&"function"===typeof k[b].update)k[b].update(a,!1);else if("function"===typeof k[q[b]])k[q[b]](a);"chart"!==b&&-1!==k.propsRequireUpdateSeries.indexOf(b)&&(m=!0)});this.collectionsWithUpdate.forEach(function(b){if(a[b]){if("series"===b){var d=[];k[b].forEach(function(a,b){a.options.isInternal||d.push(e(a.options.index,b))})}C(a[b]).forEach(function(a,c){(c=A(a.id)&&k.get(a.id)||k[b][d?d[c]:c])&&c.coll===b&&(c.update(a,!1),h&&(c.touched=!0));!c&&h&&k.collectionsWithInit[b]&&(k.collectionsWithInit[b][0].apply(k,[a].concat(k.collectionsWithInit[b][1]||[]).concat([!1])).touched=!0)});h&&k[b].forEach(function(a){a.touched||a.options.isInternal?delete a.touched:r.push(a)})}});r.forEach(function(a){a.remove&&a.remove(!1)});p&&k.axes.forEach(function(a){a.update({},!1)});m&&k.series.forEach(function(a){a.update({},!1)});a.loading&&f(!0,k.options.loading,a.loading);p=l&&l.width;l=l&&l.height;L(l)&&(l=c.relativeLength(l,p||k.chartWidth));t||z(p)&&p!==k.chartWidth||z(l)&&l!==k.chartHeight?k.setSize(p,l,g):e(b,!0)&&k.redraw(g);d(k,"afterUpdate",{options:a,redraw:b,animation:g})},setSubtitle:function(a,b){this.applyDescription("subtitle",a);this.layOutTitles(b)},setCaption:function(a,b){this.applyDescription("caption",a);this.layOutTitles(b)}});n.prototype.collectionsWithInit={xAxis:[n.prototype.addAxis,[!0]],yAxis:[n.prototype.addAxis,[!1]],colorAxis:[n.prototype.addColorAxis,[!1]],series:[n.prototype.addSeries]};a(h.prototype,{update:function(a,b,d,c){function f(){k.applyOptions(a);null===k.y&&h&&(k.graphic=h.destroy());u(a,!0)&&(h&&h.element&&a&&a.marker&&void 0!==a.marker.symbol&&(k.graphic=h.destroy()),a&&a.dataLabels&&k.dataLabel&&(k.dataLabel=k.dataLabel.destroy()),k.connector&&(k.connector=k.connector.destroy()));g=k.index;l.updateParallelArrays(k,g);m.data[g]=u(m.data[g],!0)||u(a,!0)?k.options:e(a,m.data[g]);l.isDirty=l.isDirtyData=!0;!l.fixedBox&&l.hasCartesianSeries&&(q.isDirtyBox=!0);"point"===m.legendType&&(q.isDirtyLegend=!0);b&&q.redraw(d)}var k=this,l=k.series,h=k.graphic,g,q=l.chart,m=l.options;b=e(b,!0);!1===c?f():k.firePointEvent("update",{options:a},f)},remove:function(a,b){this.series.removePoint(this.series.data.indexOf(this),a,b)}});a(r.prototype,{addPoint:function(a,b,c,f,h){var k=this.options,l=this.data,g=this.chart,q=this.xAxis;q=q&&q.hasNames&&q.names;var m=k.data,t=this.xData,v;b=e(b,!0);var r={series:this};this.pointClass.prototype.applyOptions.apply(r,[a]);var p=r.x;var n=t.length;if(this.requireSorting&&p<t[n-1])for(v=!0;n&&t[n-1]>p;)n--;this.updateParallelArrays(r,"splice",n,0,0);this.updateParallelArrays(r,n);q&&r.name&&(q[p]=r.name);m.splice(n,0,a);v&&(this.data.splice(n,0,null),this.processData());"point"===k.legendType&&this.generatePoints();c&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(r,"shift"),m.shift()));!1!==h&&d(this,"addPoint",{point:r});this.isDirtyData=this.isDirty=!0;b&&g.redraw(f)},removePoint:function(a,b,d){var c=this,f=c.data,k=f[a],l=c.points,h=c.chart,g=function(){l&&l.length===f.length&&l.splice(a,1);f.splice(a,1);c.options.data.splice(a,1);c.updateParallelArrays(k||{series:c},"splice",a,1);k&&k.destroy();c.isDirty=!0;c.isDirtyData=!0;b&&h.redraw()};q(d,h);b=e(b,!0);k?k.firePointEvent("remove",null,g):g()},remove:function(a,b,c,f){function k(){h.destroy(f);h.remove=null;l.isDirtyLegend=l.isDirtyBox=!0;l.linkSeries();e(a,!0)&&l.redraw(b)}var h=this,l=h.chart;!1!==c?d(h,"remove",null,k):k()},update:function(b,k){b=c.cleanRecursively(b,this.userOptions);d(this,"update",{options:b});var h=this,g=h.chart,q=h.userOptions,m=h.initialType||h.type,l=b.type||q.type||g.options.chart.type,r=!(this.hasDerivedData||b.dataGrouping||l&&l!==this.type||void 0!==b.pointStart||b.pointInterval||b.pointIntervalUnit||b.keys),p=E[m].prototype,v,n=["group","markerGroup","dataLabelsGroup","transformGroup"],u=["eventOptions","navigatorSeries","baseSeries"],x=h.finishedAnimating&&{animation:!1},y={};r&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==b.visible&&u.push("area","graph"),h.parallelArrays.forEach(function(a){u.push(a+"Data")}),b.data&&this.setData(b.data,!1));b=f(q,x,{index:void 0===q.index?h.index:q.index,pointStart:e(q.pointStart,h.xData[0])},!r&&{data:h.options.data},b);r&&b.data&&(b.data=h.options.data);u=n.concat(u);u.forEach(function(a){u[a]=h[a];delete h[a]});h.remove(!1,null,!1,!0);for(v in p)h[v]=void 0;E[l||m]?a(h,E[l||m].prototype):c.error(17,!0,g);u.forEach(function(a){h[a]=u[a]});h.init(g,b);if(r&&this.points){var z=h.options;!1===z.visible?(y.graphic=1,y.dataLabel=1):h._hasPointLabels||(l=z.marker,p=z.dataLabels,l&&(!1===l.enabled||"symbol"in l)&&(y.graphic=1),p&&!1===p.enabled&&(y.dataLabel=1));this.points.forEach(function(a){a&&a.series&&(a.resolveColor(),Object.keys(y).length&&a.destroyElements(y),!1===z.showInLegend&&a.legendItem&&g.legend.destroyItem(a))},this)}b.zIndex!==q.zIndex&&n.forEach(function(a){h[a]&&h[a].attr({zIndex:b.zIndex})});h.initialType=m;g.linkSeries();d(this,"afterUpdate");e(k,!0)&&g.redraw(r?void 0:!1)},setName:function(a){this.name=this.options.name=this.userOptions.name=a;this.chart.isDirtyLegend=!0}});a(p.prototype,{update:function(b,d){var c=this.chart,k=b&&b.events||{};b=f(this.userOptions,b);c.options[this.coll].indexOf&&(c.options[this.coll][c.options[this.coll].indexOf(this.userOptions)]=b);y(c.options[this.coll].events,function(a,b){"undefined"===typeof k[b]&&(k[b]=void 0)});this.destroy(!0);this.init(c,a(b,{events:k}));c.isDirtyBox=!0;e(d,!0)&&c.redraw()},remove:function(a){for(var b=this.chart,d=this.coll,c=this.series,f=c.length;f--;)c[f]&&c[f].remove(!1);D(b.axes,this);D(b[d],this);F(b.options[d])?b.options[d].splice(this.options.index,1):delete b.options[d];b[d].forEach(function(a,b){a.options.index=a.userOptions.index=b});this.destroy();b.isDirtyBox=!0;e(a,!0)&&b.redraw()},setTitle:function(a,b){this.update({title:a},b)},setCategories:function(a,b){this.update({categories:a},b)}})});N(H,"parts/AreaSeries.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.objectEach,D=c.color,F=c.pick,z=c.Series;n=c.seriesType;n("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(c){var n=[],u=[],z=this.xAxis,x=this.yAxis,m=x.stacks[this.stackKey],p={},g=this.index,b=x.series,a=b.length,d=F(x.options.reversedStacks,!0)?1:-1,f;c=c||this.points;if(this.options.stacking){for(f=0;f<c.length;f++)c[f].leftNull=c[f].rightNull=null,p[c[f].x]=c[f];A(m,function(a,b){null!==a.total&&u.push(b)});u.sort(function(a,b){return a-b});var e=b.map(function(a){return a.visible});u.forEach(function(b,c){var h=0,q,r;if(p[b]&&!p[b].isNull)n.push(p[b]),[-1,1].forEach(function(k){var h=1===k?"rightNull":"leftNull",v=0,n=m[u[c+k]];if(n)for(f=g;0<=f&&f<a;)q=n.points[f],q||(f===g?p[b][h]=!0:e[f]&&(r=m[b].points[f])&&(v-=r[1]-r[0])),f+=d;p[b][1===k?"rightCliff":"leftCliff"]=v});else{for(f=g;0<=f&&f<a;){if(q=m[b].points[f]){h=q[1];break}f+=d}h=x.translate(h,0,1,0,1);n.push({isNull:!0,plotX:z.translate(b,0,0,0,1),x:b,plotY:h,yBottom:h})}})}return n},getGraphPath:function(n){var u=z.prototype.getGraphPath,y=this.options,A=y.stacking,x=this.yAxis,m,p=[],g=[],b=this.index,a=x.stacks[this.stackKey],d=y.threshold,f=Math.round(x.getThreshold(y.threshold));y=c.pick(y.connectNulls,"percent"===A);var e=function(c,e,k){var h=n[c];c=A&&a[h.x].points[b];var q=h[k+"Null"]||0;k=h[k+"Cliff"]||0;h=!0;if(k||q){var m=(q?c[0]:c[1])+k;var v=c[0]+k;h=!!q}else!A&&n[e]&&n[e].isNull&&(m=v=d);void 0!==m&&(g.push({plotX:r,plotY:null===m?f:x.getThreshold(m),isNull:h,isCliff:!0}),p.push({plotX:r,plotY:null===v?f:x.getThreshold(v),doCurve:!1}))};n=n||this.points;A&&(n=this.getStackPoints(n));for(m=0;m<n.length;m++){var h=n[m].isNull;var r=F(n[m].rectPlotX,n[m].plotX);var E=F(n[m].yBottom,f);if(!h||y)y||e(m,m-1,"left"),h&&!A&&y||(g.push(n[m]),p.push({x:m,plotX:r,plotY:E})),y||e(m,m+1,"right")}m=u.call(this,g,!0,!0);p.reversed=!0;h=u.call(this,p,!0,!0);h.length&&(h[0]="L");h=m.concat(h);u=u.call(this,g,!1,y);h.xMap=m.xMap;this.areaPath=h;return u},drawGraph:function(){this.areaPath=[];z.prototype.drawGraph.apply(this);var c=this,n=this.areaPath,y=this.options,A=[["area","highcharts-area",this.color,y.fillColor]];this.zones.forEach(function(n,m){A.push(["zone-area-"+m,"highcharts-area highcharts-zone-area-"+m+" "+n.className,n.color||c.color,n.fillColor||y.fillColor])});A.forEach(function(u){var m=u[0],p=c[m],g=p?"animate":"attr",b={};p?(p.endX=c.preventGraphAnimation?null:n.xMap,p.animate({d:n})):(b.zIndex=0,p=c[m]=c.chart.renderer.path(n).addClass(u[1]).add(c.group),p.isArea=!0);c.chart.styledMode||(b.fill=F(u[3],D(u[2]).setOpacity(F(y.fillOpacity,.75)).get()));p[g](b);p.startX=n.xMap;p.shiftUnit=y.step?2:1})},drawLegendSymbol:c.LegendSymbolMixin.drawRectangle});""});N(H,"parts/SplineSeries.js",[H["parts/Globals.js"]],function(c){var n=c.pick;c=c.seriesType;c("spline","line",{},{getPointSpline:function(c,D,F){var z=D.plotX,u=D.plotY,A=c[F-1];F=c[F+1];if(A&&!A.isNull&&!1!==A.doCurve&&!D.isCliff&&F&&!F.isNull&&!1!==F.doCurve&&!D.isCliff){c=A.plotY;var y=F.plotX;F=F.plotY;var C=0;var x=(1.5*z+A.plotX)/2.5;var m=(1.5*u+c)/2.5;y=(1.5*z+y)/2.5;var p=(1.5*u+F)/2.5;y!==x&&(C=(p-m)*(y-z)/(y-x)+u-p);m+=C;p+=C;m>c&&m>u?(m=Math.max(c,u),p=2*u-m):m<c&&m<u&&(m=Math.min(c,u),p=2*u-m);p>F&&p>u?(p=Math.max(F,u),m=2*u-p):p<F&&p<u&&(p=Math.min(F,u),m=2*u-p);D.rightContX=y;D.rightContY=p}D=["C",n(A.rightContX,A.plotX),n(A.rightContY,A.plotY),n(x,z),n(m,u),z,u];A.rightContX=A.rightContY=null;return D}});""});N(H,"parts/AreaSplineSeries.js",[H["parts/Globals.js"]],function(c){var n=c.seriesTypes.area.prototype,A=c.seriesType;A("areaspline","spline",c.defaultPlotOptions.area,{getStackPoints:n.getStackPoints,getGraphPath:n.getGraphPath,drawGraph:n.drawGraph,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle});""});N(H,"parts/ColumnSeries.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isNumber,F=c.animObject,z=c.color,u=c.extend,L=c.merge,y=c.pick,C=c.Series;n=c.seriesType;var x=c.svg;n("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){C.prototype.init.apply(this,arguments);var c=this,p=c.chart;p.hasRendered&&p.series.forEach(function(g){g.type===c.type&&(g.isDirty=!0)})},getColumnMetrics:function(){var c=this,p=c.options,g=c.xAxis,b=c.yAxis,a=g.options.reversedStacks;a=g.reversed&&!a||!g.reversed&&a;var d,f={},e=0;!1===p.grouping?e=1:c.chart.series.forEach(function(a){var h=a.yAxis,k=a.options;if(a.type===c.type&&(a.visible||!c.chart.options.chart.ignoreHiddenSeries)&&b.len===h.len&&b.pos===h.pos){if(k.stacking){d=a.stackKey;void 0===f[d]&&(f[d]=e++);var g=f[d]}else!1!==k.grouping&&(g=e++);a.columnIndex=g}});var h=Math.min(Math.abs(g.transA)*(g.ordinalSlope||p.pointRange||g.closestPointRange||g.tickInterval||1),g.len),r=h*p.groupPadding,n=(h-2*r)/(e||1);p=Math.min(p.maxPointWidth||g.len,y(p.pointWidth,n*(1-2*p.pointPadding)));c.columnMetrics={width:p,offset:(n-p)/2+(r+((c.columnIndex||0)+(a?1:0))*n-h/2)*(a?-1:1)};return c.columnMetrics},crispCol:function(c,p,g,b){var a=this.chart,d=this.borderWidth,f=-(d%2?.5:0);d=d%2?.5:1;a.inverted&&a.renderer.isVML&&(d+=1);this.options.crisp&&(g=Math.round(c+g)+f,c=Math.round(c)+f,g-=c);b=Math.round(p+b)+d;f=.5>=Math.abs(p)&&.5<b;p=Math.round(p)+d;b-=p;f&&b&&(--p,b+=1);return{x:c,y:p,width:g,height:b}},translate:function(){var c=this,p=c.chart,g=c.options,b=c.dense=2>c.closestPointRange*c.xAxis.transA;b=c.borderWidth=y(g.borderWidth,b?0:1);var a=c.yAxis,d=g.threshold,f=c.translatedThreshold=a.getThreshold(d),e=y(g.minPointLength,5),h=c.getColumnMetrics(),r=h.width,n=c.barW=Math.max(r,1+2*b),q=c.pointXOffset=h.offset,v=c.dataMin,k=c.dataMax;p.inverted&&(f-=.5);g.pointPadding&&(n=Math.ceil(n));C.prototype.translate.apply(c);c.points.forEach(function(b){var h=y(b.yBottom,f),g=999+Math.abs(h),m=r;g=Math.min(Math.max(-g,b.plotY),a.len+g);var l=b.plotX+q,t=n,u=Math.min(g,h),x=Math.max(g,h)-u;if(e&&Math.abs(x)<e){x=e;var z=!a.reversed&&!b.negative||a.reversed&&b.negative;b.y===d&&c.dataMax<=d&&a.min<d&&v!==k&&(z=!z);u=Math.abs(u-f)>e?h-e:f-(z?e:0)}A(b.options.pointWidth)&&(m=t=Math.ceil(b.options.pointWidth),l-=Math.round((m-r)/2));b.barX=l;b.pointWidth=m;b.tooltipPos=p.inverted?[a.len+a.pos-p.plotLeft-g,c.xAxis.len-l-t/2,x]:[l+t/2,g+a.pos-p.plotTop,x];b.shapeType=c.pointClass.prototype.shapeType||"rect";b.shapeArgs=c.crispCol.apply(c,b.isNull?[l,f,t,0]:[l,u,t,x])})},getSymbol:c.noop,drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(c,p){var g=this.options,b=this.pointAttrToOptions||{};var a=b.stroke||"borderColor";var d=b["stroke-width"]||"borderWidth",f=c&&c.color||this.color,e=c&&c[a]||g[a]||this.color||f,h=c&&c[d]||g[d]||this[d]||0;b=c&&c.options.dashStyle||g.dashStyle;var m=y(g.opacity,1);if(c&&this.zones.length){var n=c.getZone();f=c.options.color||n&&(n.color||c.nonZonedColor)||this.color;n&&(e=n.borderColor||e,b=n.dashStyle||b,h=n.borderWidth||h)}p&&(c=L(g.states[p],c.options.states&&c.options.states[p]||{}),p=c.brightness,f=c.color||void 0!==p&&z(f).brighten(c.brightness).get()||f,e=c[a]||e,h=c[d]||h,b=c.dashStyle||b,m=y(c.opacity,m));a={fill:f,stroke:e,"stroke-width":h,opacity:m};b&&(a.dashstyle=b);return a},drawPoints:function(){var c=this,p=this.chart,g=c.options,b=p.renderer,a=g.animationLimit||250,d;c.points.forEach(function(f){var e=f.graphic,h=e&&p.pointCount<a?"animate":"attr";if(D(f.plotY)&&null!==f.y){d=f.shapeArgs;e&&e.element.nodeName!==f.shapeType&&(e=e.destroy());if(e)e[h](L(d));else f.graphic=e=b[f.shapeType](d).add(f.group||c.group);if(g.borderRadius)e[h]({r:g.borderRadius});p.styledMode||e[h](c.pointAttribs(f,f.selected&&"select")).shadow(!1!==f.allowShadow&&g.shadow,null,g.stacking&&!g.borderRadius);e.addClass(f.getClassName(),!0)}else e&&(f.graphic=e.destroy())})},animate:function(c){var m=this,g=this.yAxis,b=m.options,a=this.chart.inverted,d={},f=a?"translateX":"translateY";if(x)if(c)d.scaleY=.001,c=Math.min(g.pos+g.len,Math.max(g.pos,g.toPixels(b.threshold))),a?d.translateX=c-g.len:d.translateY=c,m.clipBox&&m.setClip(),m.group.attr(d);else{var e=m.group.attr(f);m.group.animate({scaleY:1},u(F(m.options.animation),{step:function(a,b){d[f]=e+b.pos*(g.pos-e);m.group.attr(d)}}));m.animate=null}},remove:function(){var c=this,p=c.chart;p.hasRendered&&p.series.forEach(function(g){g.type===c.type&&(g.isDirty=!0)});C.prototype.remove.apply(c,arguments)}});""});N(H,"parts/BarSeries.js",[H["parts/Globals.js"]],function(c){c=c.seriesType;c("bar","column",null,{inverted:!0});""});N(H,"parts/ScatterSeries.js",[H["parts/Globals.js"]],function(c){var n=c.Series,A=c.seriesType;A("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">\u25cf</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&n.prototype.drawGraph.call(this)},applyJitter:function(){var c=this,n=this.options.jitter,z=this.points.length;n&&this.points.forEach(function(u,A){["x","y"].forEach(function(y,C){var x="plot"+y.toUpperCase();if(n[y]&&!u.isNull){var m=c[y+"Axis"];var p=n[y]*m.transA;if(m&&!m.isLog){var g=Math.max(0,u[x]-p);m=Math.min(m.len,u[x]+p);C=1E4*Math.sin(A+C*z);u[x]=g+(m-g)*(C-Math.floor(C));"x"===y&&(u.clientX=u.plotX)}}})})}});c.addEvent(n,"afterTranslate",function(){this.applyJitter&&this.applyJitter()});""});N(H,"mixins/centered-series.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.isNumber,D=c.deg2rad,F=c.pick,z=c.relativeLength;c.CenteredSeriesMixin={getCenter:function(){var c=this.options,n=this.chart,y=2*(c.slicedOffset||0),A=n.plotWidth-2*y;n=n.plotHeight-2*y;var x=c.center;x=[F(x[0],"50%"),F(x[1],"50%"),c.size||"100%",c.innerSize||0];var m=Math.min(A,n),p;for(p=0;4>p;++p){var g=x[p];c=2>p||2===p&&/%$/.test(g);x[p]=z(g,[A,n,m,x[2]][p])+(c?y:0)}x[3]>x[2]&&(x[3]=x[2]);return x},getStartAndEndRadians:function(c,n){c=A(c)?c:0;n=A(n)&&n>c&&360>n-c?n:c+360;return{start:D*(c+-90),end:D*(n+-90)}}}});N(H,"parts/PieSeries.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isNumber,F=c.addEvent;n=c.CenteredSeriesMixin;var z=n.getStartAndEndRadians,u=c.merge,H=c.noop,y=c.pick,C=c.Point,x=c.Series,m=c.seriesType,p=c.fireEvent,g=c.setAnimation;m("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:c.seriesTypes.column.prototype.pointAttribs,animate:function(b){var a=this,d=a.points,c=a.startAngleRad;b||(d.forEach(function(b){var d=b.graphic,f=b.shapeArgs;d&&(d.attr({r:b.startR||a.center[3]/2,start:c,end:c}),d.animate({r:f.r,start:f.start,end:f.end},a.options.animation))}),a.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var b,a=0,d=this.points,c=d.length,e=this.options.ignoreHiddenPoint;for(b=0;b<c;b++){var h=d[b];a+=e&&!h.visible?0:h.isNull?0:h.y}this.total=a;for(b=0;b<c;b++)h=d[b],h.percentage=0<a&&(h.visible||!e)?h.y/a*100:0,h.total=a},generatePoints:function(){x.prototype.generatePoints.call(this);this.updateTotals()},getX:function(b,a,d){var c=this.center,e=this.radii?this.radii[d.index]:c[2]/2;return c[0]+(a?-1:1)*Math.cos(Math.asin(Math.max(Math.min((b-c[1])/(e+d.labelDistance),1),-1)))*(e+d.labelDistance)+(0<d.labelDistance?(a?-1:1)*this.options.dataLabels.padding:0)},translate:function(b){this.generatePoints();var a=0,d=this.options,f=d.slicedOffset,e=f+(d.borderWidth||0),h=z(d.startAngle,d.endAngle),g=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-g;var m=this.points,q=d.dataLabels.distance;d=d.ignoreHiddenPoint;var v,k=m.length;b||(this.center=b=this.getCenter());for(v=0;v<k;v++){var t=m[v];var n=g+a*h;if(!d||t.visible)a+=t.percentage/100;var u=g+a*h;t.shapeType="arc";t.shapeArgs={x:b[0],y:b[1],r:b[2]/2,innerR:b[3]/2,start:Math.round(1E3*n)/1E3,end:Math.round(1E3*u)/1E3};t.labelDistance=y(t.options.dataLabels&&t.options.dataLabels.distance,q);t.labelDistance=c.relativeLength(t.labelDistance,t.shapeArgs.r);this.maxLabelDistance=Math.max(this.maxLabelDistance||0,t.labelDistance);u=(u+n)/2;u>1.5*Math.PI?u-=2*Math.PI:u<-Math.PI/2&&(u+=2*Math.PI);t.slicedTranslation={translateX:Math.round(Math.cos(u)*f),translateY:Math.round(Math.sin(u)*f)};var w=Math.cos(u)*b[2]/2;var l=Math.sin(u)*b[2]/2;t.tooltipPos=[b[0]+.7*w,b[1]+.7*l];t.half=u<-Math.PI/2||u>Math.PI/2?1:0;t.angle=u;n=Math.min(e,t.labelDistance/5);t.labelPosition={natural:{x:b[0]+w+Math.cos(u)*t.labelDistance,y:b[1]+l+Math.sin(u)*t.labelDistance},"final":{},alignment:0>t.labelDistance?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:b[0]+w+Math.cos(u)*n,y:b[1]+l+Math.sin(u)*n},touchingSliceAt:{x:b[0]+w,y:b[1]+l}}}}p(this,"afterTranslate")},drawEmpty:function(){var b=this.options;if(0===this.total){var a=this.center[0];var d=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(a,d,0).addClass("highcharts-graph").add(this.group));this.graph.animate({"stroke-width":b.borderWidth,cx:a,cy:d,r:this.center[2]/2,fill:b.fillColor||"none",stroke:b.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var b=this,a=b.chart,d=a.renderer,c,e,h,g,m=b.options.shadow;this.drawEmpty();!m||b.shadowGroup||a.styledMode||(b.shadowGroup=d.g("shadow").attr({zIndex:-1}).add(b.group));b.points.forEach(function(f){var q={};e=f.graphic;if(!f.isNull&&e){g=f.shapeArgs;c=f.getTranslate();if(!a.styledMode){var k=f.shadowGroup;m&&!k&&(k=f.shadowGroup=d.g("shadow").add(b.shadowGroup));k&&k.attr(c);h=b.pointAttribs(f,f.selected&&"select")}f.delayedRendering?(e.setRadialReference(b.center).attr(g).attr(c),a.styledMode||e.attr(h).attr({"stroke-linejoin":"round"}).shadow(m,k),f.delayedRendering=!1):(e.setRadialReference(b.center),a.styledMode||u(!0,q,h),u(!0,q,g,c),e.animate(q));e.attr({visibility:f.visible?"inherit":"hidden"});e.addClass(f.getClassName())}else e&&(f.graphic=e.destroy())})},drawPoints:function(){var b=this.chart.renderer;this.points.forEach(function(a){a.graphic||(a.graphic=b[a.shapeType](a.shapeArgs).add(a.series.group),a.delayedRendering=!0)})},searchPoint:H,sortByAngle:function(b,a){b.sort(function(b,c){return void 0!==b.angle&&(c.angle-b.angle)*a})},drawLegendSymbol:c.LegendSymbolMixin.drawRectangle,getCenter:n.getCenter,getSymbol:H,drawGraph:null},{init:function(){C.prototype.init.apply(this,arguments);var b=this;b.name=y(b.name,"Slice");var a=function(a){b.slice("select"===a.type)};F(b,"select",a);F(b,"unselect",a);return b},isValid:function(){return D(this.y)&&0<=this.y},setVisible:function(b,a){var c=this,f=c.series,e=f.chart,h=f.options.ignoreHiddenPoint;a=y(a,h);b!==c.visible&&(c.visible=c.options.visible=b=void 0===b?!c.visible:b,f.options.data[f.data.indexOf(c)]=c.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(a){if(c[a])c[a][b?"show":"hide"](!0)}),c.legendItem&&e.legend.colorizeItem(c,b),b||"hover"!==c.state||c.setState(""),h&&(f.isDirty=!0),a&&e.redraw())},slice:function(b,a,c){var d=this.series;g(c,d.chart);y(a,!0);this.sliced=this.options.sliced=A(b)?b:!this.sliced;d.options.data[d.data.indexOf(this)]=this.options;this.graphic.animate(this.getTranslate());this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(b){var a=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(a.x,a.y,a.r+b,a.r+b,{innerR:a.r-1,start:a.start,end:a.end})},connectorShapes:{fixedOffset:function(b,a,c){var d=a.breakAt;a=a.touchingSliceAt;return["M",b.x,b.y].concat(c.softConnector?["C",b.x+("left"===b.alignment?-5:5),b.y,2*d.x-a.x,2*d.y-a.y,d.x,d.y]:["L",d.x,d.y]).concat(["L",a.x,a.y])},straight:function(b,a){a=a.touchingSliceAt;return["M",b.x,b.y,"L",a.x,a.y]},crookedLine:function(b,a,d){a=a.touchingSliceAt;var f=this.series,e=f.center[0],h=f.chart.plotWidth,g=f.chart.plotLeft;f=b.alignment;var m=this.shapeArgs.r;d=c.relativeLength(d.crookDistance,1);d="left"===f?e+m+(h+g-e-m)*(1-d):g+(e-m)*d;e=["L",d,b.y];if("left"===f?d>b.x||d<a.x:d<b.x||d>a.x)e=[];return["M",b.x,b.y].concat(e).concat(["L",a.x,a.y])}},getConnectorPath:function(){var b=this.labelPosition,a=this.series.options.dataLabels,c=a.connectorShape,f=this.connectorShapes;f[c]&&(c=f[c]);return c.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,a)}});""});N(H,"parts/DataLabels.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isArray,F=n.objectEach,z=n.splat,u=c.arrayMax,H=c.extend,y=c.format,C=c.merge;n=c.noop;var x=c.pick,m=c.relativeLength,p=c.Series,g=c.seriesTypes,b=c.stableSort;c.distribute=function(a,d,f){function e(a,b){return a.target-b.target}var h,g=!0,m=a,q=[];var p=0;var k=m.reducedLen||d;for(h=a.length;h--;)p+=a[h].size;if(p>k){b(a,function(a,b){return(b.rank||0)-(a.rank||0)});for(p=h=0;p<=k;)p+=a[h].size,h++;q=a.splice(h-1,a.length)}b(a,e);for(a=a.map(function(a){return{size:a.size,targets:[a.target],align:x(a.align,.5)}});g;){for(h=a.length;h--;)g=a[h],p=(Math.min.apply(0,g.targets)+Math.max.apply(0,g.targets))/2,g.pos=Math.min(Math.max(0,p-g.size*g.align),d-g.size);h=a.length;for(g=!1;h--;)0<h&&a[h-1].pos+a[h-1].size>a[h].pos&&(a[h-1].size+=a[h].size,a[h-1].targets=a[h-1].targets.concat(a[h].targets),a[h-1].align=.5,a[h-1].pos+a[h-1].size>d&&(a[h-1].pos=d-a[h-1].size),a.splice(h,1),g=!0)}m.push.apply(m,q);h=0;a.some(function(a){var b=0;if(a.targets.some(function(){m[h].pos=a.pos+b;if(Math.abs(m[h].pos-m[h].target)>f)return m.slice(0,h+1).forEach(function(a){delete a.pos}),m.reducedLen=(m.reducedLen||d)-.1*d,m.reducedLen>.1*d&&c.distribute(m,d,f),!0;b+=m[h].size;h++}))return!0});b(m,e)};p.prototype.drawDataLabels=function(){function a(a,b){var c=b.filter;return c?(b=c.operator,a=a[c.property],c=c.value,">"===b&&a>c||"<"===b&&a<c||">="===b&&a>=c||"<="===b&&a<=c||"=="===b&&a==c||"==="===b&&a===c?!0:!1):!0}function b(a,b){var c=[],d;if(D(a)&&!D(b))c=a.map(function(a){return C(a,b)});else if(D(b)&&!D(a))c=b.map(function(b){return C(a,b)});else if(D(a)||D(b))for(d=Math.max(a.length,b.length);d--;)c[d]=C(a[d],b[d]);else c=C(a,b);return c}var f=this,e=f.chart,h=f.options,g=h.dataLabels,m=f.points,q,p=f.hasRendered||0,k=c.animObject(h.animation).duration,t=Math.min(k,200),n=!e.renderer.forExport&&x(g.defer,0<t),u=e.renderer;g=b(b(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[f.type]&&e.options.plotOptions[f.type].dataLabels),g);c.fireEvent(this,"drawDataLabels");if(D(g)||g.enabled||f._hasPointLabels){var w=f.plotGroup("dataLabelsGroup","data-labels",n&&!p?"hidden":"inherit",g.zIndex||6);n&&(w.attr({opacity:+p}),p||setTimeout(function(){var a=f.dataLabelsGroup;a&&(f.visible&&w.show(!0),a[h.animation?"animate":"attr"]({opacity:1},{duration:t}))},k-t));m.forEach(function(c){q=z(b(g,c.dlOptions||c.options&&c.options.dataLabels));q.forEach(function(b,d){var k=b.enabled&&(!c.isNull||c.dataLabelOnNull)&&a(c,b),g=c.dataLabels?c.dataLabels[d]:c.dataLabel,l=c.connectors?c.connectors[d]:c.connector,q=x(b.distance,c.labelDistance),m=!g;if(k){var t=c.getLabelConfig();var p=x(b[c.formatPrefix+"Format"],b.format);t=A(p)?y(p,t,e.time):(b[c.formatPrefix+"Formatter"]||b.formatter).call(t,b);p=b.style;var n=b.rotation;e.styledMode||(p.color=x(b.color,p.color,f.color,"#000000"),"contrast"===p.color&&(c.contrastColor=u.getContrast(c.color||f.color),p.color=!A(q)&&b.inside||0>q||h.stacking?c.contrastColor:"#000000"),h.cursor&&(p.cursor=h.cursor));var r={r:b.borderRadius||0,rotation:n,padding:b.padding,zIndex:1};e.styledMode||(r.fill=b.backgroundColor,r.stroke=b.borderColor,r["stroke-width"]=b.borderWidth);F(r,function(a,b){void 0===a&&delete r[b]})}!g||k&&A(t)?k&&A(t)&&(g?r.text=t:(c.dataLabels=c.dataLabels||[],g=c.dataLabels[d]=n?u.text(t,0,-9999).addClass("highcharts-data-label"):u.label(t,0,-9999,b.shape,null,null,b.useHTML,null,"data-label"),d||(c.dataLabel=g),g.addClass(" highcharts-data-label-color-"+c.colorIndex+" "+(b.className||"")+(b.useHTML?" highcharts-tracker":""))),g.options=b,g.attr(r),e.styledMode||g.css(p).shadow(b.shadow),g.added||g.add(w),b.textPath&&!b.useHTML&&g.setTextPath(c.getDataLabelPath&&c.getDataLabelPath(g)||c.graphic,b.textPath),f.alignDataLabel(c,g,b,null,m)):(c.dataLabel=c.dataLabel&&c.dataLabel.destroy(),c.dataLabels&&(1===c.dataLabels.length?delete c.dataLabels:delete c.dataLabels[d]),d||delete c.dataLabel,l&&(c.connector=c.connector.destroy(),c.connectors&&(1===c.connectors.length?delete c.connectors:delete c.connectors[d])))})})}c.fireEvent(this,"afterDrawDataLabels")};p.prototype.alignDataLabel=function(a,b,c,e,h){var d=this.chart,f=this.isCartesian&&d.inverted,g=x(a.dlBox&&a.dlBox.centerX,a.plotX,-9999),m=x(a.plotY,-9999),k=b.getBBox(),p=c.rotation,n=c.align,u=this.visible&&(a.series.forceDL||d.isInsidePlot(g,Math.round(m),f)||e&&d.isInsidePlot(g,f?e.x+1:e.y+e.height-1,f)),w="justify"===x(c.overflow,"justify");if(u){var l=d.renderer.fontMetrics(d.styledMode?void 0:c.style.fontSize,b).b;e=H({x:f?this.yAxis.len-m:g,y:Math.round(f?this.xAxis.len-g:m),width:0,height:0},e);H(c,{width:k.width,height:k.height});p?(w=!1,g=d.renderer.rotCorr(l,p),g={x:e.x+c.x+e.width/2+g.x,y:e.y+c.y+{top:0,middle:.5,bottom:1}[c.verticalAlign]*e.height},b[h?"attr":"animate"](g).attr({align:n}),m=(p+720)%360,m=180<m&&360>m,"left"===n?g.y-=m?k.height:0:"center"===n?(g.x-=k.width/2,g.y-=k.height/2):"right"===n&&(g.x-=k.width,g.y-=m?0:k.height),b.placed=!0,b.alignAttr=g):(b.align(c,null,e),g=b.alignAttr);w&&0<=e.height?this.justifyDataLabel(b,c,g,k,e,h):x(c.crop,!0)&&(u=d.isInsidePlot(g.x,g.y)&&d.isInsidePlot(g.x+
k.width,g.y+k.height));if(c.shape&&!p)b[h?"attr":"animate"]({anchorX:f?d.plotWidth-a.plotY:a.plotX,anchorY:f?d.plotHeight-a.plotX:a.plotY})}u||(b.hide(!0),b.placed=!1)};p.prototype.justifyDataLabel=function(a,b,c,e,g,m){var d=this.chart,f=b.align,h=b.verticalAlign,k=a.box?0:a.padding||0;var p=c.x+k;if(0>p){"right"===f?(b.align="left",b.inside=!0):b.x=-p;var n=!0}p=c.x+e.width-k;p>d.plotWidth&&("left"===f?(b.align="right",b.inside=!0):b.x=d.plotWidth-p,n=!0);p=c.y+k;0>p&&("bottom"===h?(b.verticalAlign="top",b.inside=!0):b.y=-p,n=!0);p=c.y+e.height-k;p>d.plotHeight&&("top"===h?(b.verticalAlign="bottom",b.inside=!0):b.y=d.plotHeight-p,n=!0);n&&(a.placed=!m,a.align(b,null,g));return n};g.pie&&(g.pie.prototype.dataLabelPositioners={radialDistributionY:function(a){return a.top+a.distributeBox.pos},radialDistributionX:function(a,b,c,e){return a.getX(c<b.top+2||c>b.bottom-2?e:c,b.half,b)},justify:function(a,b,c){return c[0]+(a.half?-1:1)*(b+a.labelDistance)},alignToPlotEdges:function(a,b,c,e){a=a.getBBox().width;return b?a+e:c-a-e},alignToConnectors:function(a,b,c,e){var d=0,f;a.forEach(function(a){f=a.dataLabel.getBBox().width;f>d&&(d=f)});return b?d+e:c-d-e}},g.pie.prototype.drawDataLabels=function(){var a=this,b=a.data,f,e=a.chart,g=a.options.dataLabels,m=g.connectorPadding,n,q=e.plotWidth,v=e.plotHeight,k=e.plotLeft,t=Math.round(e.chartWidth/3),y,z=a.center,w=z[2]/2,l=z[1],J,D,F,H,L=[[],[]],M,G,N,Q,P=[0,0,0,0],U=a.dataLabelPositioners,V;a.visible&&(g.enabled||a._hasPointLabels)&&(b.forEach(function(a){a.dataLabel&&a.visible&&a.dataLabel.shortened&&(a.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),a.dataLabel.shortened=!1)}),p.prototype.drawDataLabels.apply(a),b.forEach(function(a){a.dataLabel&&(a.visible?(L[a.half].push(a),a.dataLabel._pos=null,!A(g.style.width)&&!A(a.options.dataLabels&&a.options.dataLabels.style&&a.options.dataLabels.style.width)&&a.dataLabel.getBBox().width>t&&(a.dataLabel.css({width:.7*t}),a.dataLabel.shortened=!0)):(a.dataLabel=a.dataLabel.destroy(),a.dataLabels&&1===a.dataLabels.length&&delete a.dataLabels))}),L.forEach(function(b,d){var h=b.length,p=[],n;if(h){a.sortByAngle(b,d-.5);if(0<a.maxLabelDistance){var t=Math.max(0,l-w-a.maxLabelDistance);var r=Math.min(l+w+a.maxLabelDistance,e.plotHeight);b.forEach(function(a){0<a.labelDistance&&a.dataLabel&&(a.top=Math.max(0,l-w-a.labelDistance),a.bottom=Math.min(l+w+a.labelDistance,e.plotHeight),n=a.dataLabel.getBBox().height||21,a.distributeBox={target:a.labelPosition.natural.y-a.top+n/2,size:n,rank:a.y},p.push(a.distributeBox))});t=r+n-t;c.distribute(p,t,t/5)}for(Q=0;Q<h;Q++){f=b[Q];F=f.labelPosition;J=f.dataLabel;N=!1===f.visible?"hidden":"inherit";G=t=F.natural.y;p&&A(f.distributeBox)&&(void 0===f.distributeBox.pos?N="hidden":(H=f.distributeBox.size,G=U.radialDistributionY(f)));delete f.positionIndex;if(g.justify)M=U.justify(f,w,z);else switch(g.alignTo){case "connectors":M=U.alignToConnectors(b,d,q,k);break;case "plotEdges":M=U.alignToPlotEdges(J,d,q,k);break;default:M=U.radialDistributionX(a,f,G,t)}J._attr={visibility:N,align:F.alignment};J._pos={x:M+g.x+({left:m,right:-m}[F.alignment]||0),y:G+g.y-10};F.final.x=M;F.final.y=G;x(g.crop,!0)&&(D=J.getBBox().width,t=null,M-D<m&&1===d?(t=Math.round(D-M+m),P[3]=Math.max(t,P[3])):M+D>q-m&&0===d&&(t=Math.round(M+D-q+m),P[1]=Math.max(t,P[1])),0>G-H/2?P[0]=Math.max(Math.round(-G+H/2),P[0]):G+H/2>v&&(P[2]=Math.max(Math.round(G+H/2-v),P[2])),J.sideOverflow=t)}}}),0===u(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach(function(b){V=C(g,b.options.dataLabels);if(n=x(V.connectorWidth,1)){var c;y=b.connector;if((J=b.dataLabel)&&J._pos&&b.visible&&0<b.labelDistance){N=J._attr.visibility;if(c=!y)b.connector=y=e.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+b.colorIndex+(b.className?" "+b.className:"")).add(a.dataLabelsGroup),e.styledMode||y.attr({"stroke-width":n,stroke:V.connectorColor||b.color||"#666666"});y[c?"attr":"animate"]({d:b.getConnectorPath()});y.attr("visibility",N)}else y&&(b.connector=y.destroy())}}))},g.pie.prototype.placeDataLabels=function(){this.points.forEach(function(a){var b=a.dataLabel,c;b&&a.visible&&((c=b._pos)?(b.sideOverflow&&(b._attr.width=Math.max(b.getBBox().width-b.sideOverflow,0),b.css({width:b._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),b.shortened=!0),b.attr(b._attr),b[b.moved?"animate":"attr"](c),b.moved=!0):b&&b.attr({y:-9999}));delete a.distributeBox},this)},g.pie.prototype.alignDataLabel=n,g.pie.prototype.verifyDataLabelOverflow=function(a){var b=this.center,c=this.options,e=c.center,g=c.minSize||80,p=null!==c.size;if(!p){if(null!==e[0])var n=Math.max(b[2]-Math.max(a[1],a[3]),g);else n=Math.max(b[2]-a[1]-a[3],g),b[0]+=(a[3]-a[1])/2;null!==e[1]?n=Math.max(Math.min(n,b[2]-Math.max(a[0],a[2])),g):(n=Math.max(Math.min(n,b[2]-a[0]-a[2]),g),b[1]+=(a[0]-a[2])/2);n<b[2]?(b[2]=n,b[3]=Math.min(m(c.innerSize||0,n),n),this.translate(b),this.drawDataLabels&&this.drawDataLabels()):p=!0}return p});g.column&&(g.column.prototype.alignDataLabel=function(a,b,c,e,g){var d=this.chart.inverted,f=a.series,h=a.dlBox||a.shapeArgs,m=x(a.below,a.plotY>x(this.translatedThreshold,f.yAxis.len)),k=x(c.inside,!!this.options.stacking);h&&(e=C(h),0>e.y&&(e.height+=e.y,e.y=0),h=e.y+e.height-f.yAxis.len,0<h&&(e.height-=h),d&&(e={x:f.yAxis.len-e.y-e.height,y:f.xAxis.len-e.x-e.width,width:e.height,height:e.width}),k||(d?(e.x+=m?0:e.width,e.width=0):(e.y+=m?e.height:0,e.height=0)));c.align=x(c.align,!d||k?"center":m?"right":"left");c.verticalAlign=x(c.verticalAlign,d||k?"middle":m?"top":"bottom");p.prototype.alignDataLabel.call(this,a,b,c,e,g);c.inside&&a.contrastColor&&b.css({color:a.contrastColor})})});N(H,"modules/overlapping-datalabels.src.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.isArray,D=n.objectEach;n=c.Chart;var F=c.pick,z=c.addEvent,u=c.fireEvent;z(n,"render",function(){var c=[];(this.labelCollectors||[]).forEach(function(n){c=c.concat(n())});(this.yAxis||[]).forEach(function(n){n.options.stackLabels&&!n.options.stackLabels.allowOverlap&&D(n.stacks,function(n){D(n,function(n){c.push(n.label)})})});(this.series||[]).forEach(function(n){var u=n.options.dataLabels;n.visible&&(!1!==u.enabled||n._hasPointLabels)&&n.points.forEach(function(n){n.visible&&(A(n.dataLabels)?n.dataLabels:n.dataLabel?[n.dataLabel]:[]).forEach(function(m){var p=m.options;m.labelrank=F(p.labelrank,n.labelrank,n.shapeArgs&&n.shapeArgs.height);p.allowOverlap||c.push(m)})})});this.hideOverlappingLabels(c)});n.prototype.hideOverlappingLabels=function(c){var n=this,z=c.length,x=n.renderer,m,p,g;var b=function(a){var b=a.box?0:a.padding||0;var c=0;if(a&&(!a.alignAttr||a.placed)){var d=a.alignAttr||{x:a.attr("x"),y:a.attr("y")};var f=a.parentGroup;a.width||(c=a.getBBox(),a.width=c.width,a.height=c.height,c=x.fontMetrics(null,a.element).h);return{x:d.x+(f.translateX||0)+b,y:d.y+(f.translateY||0)+b-c,width:a.width-2*b,height:a.height-2*b}}};for(p=0;p<z;p++)if(m=c[p])m.oldOpacity=m.opacity,m.newOpacity=1,m.absoluteBox=b(m);c.sort(function(a,b){return(b.labelrank||0)-(a.labelrank||0)});for(p=0;p<z;p++){var a=(b=c[p])&&b.absoluteBox;for(m=p+1;m<z;++m){var d=(g=c[m])&&g.absoluteBox;!a||!d||b===g||0===b.newOpacity||0===g.newOpacity||d.x>a.x+a.width||d.x+d.width<a.x||d.y>a.y+a.height||d.y+d.height<a.y||((b.labelrank<g.labelrank?b:g).newOpacity=0)}}c.forEach(function(a){var b;if(a){var c=a.newOpacity;a.oldOpacity!==c&&(a.alignAttr&&a.placed?(c?a.show(!0):b=function(){a.hide(!0);a.placed=!1},a.alignAttr.opacity=c,a[a.isOld?"animate":"attr"](a.alignAttr,null,b),u(n,"afterHideOverlappingLabels")):a.attr({opacity:c}));a.isOld=!0}})}});N(H,"parts/Interaction.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.defined,D=n.isArray,F=n.isObject,z=n.objectEach,u=c.addEvent;n=c.Chart;var H=c.createElement,y=c.css,C=c.defaultOptions,x=c.defaultPlotOptions,m=c.extend,p=c.fireEvent,g=c.hasTouch,b=c.Legend,a=c.merge,d=c.pick,f=c.Point,e=c.Series,h=c.seriesTypes,r=c.svg;var E=c.TrackerMixin={drawTrackerPoint:function(){var a=this,b=a.chart,c=b.pointer,d=function(a){var b=c.getPointFromEvent(a);void 0!==b&&(c.isDirectTouch=!0,b.onMouseOver(a))},e;a.points.forEach(function(a){e=D(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[];a.graphic&&(a.graphic.element.point=a);e.forEach(function(b){b.div?b.div.point=a:b.element.point=a})});a._hasTracking||(a.trackerGroups.forEach(function(e){if(a[e]){a[e].addClass("highcharts-tracker").on("mouseover",d).on("mouseout",function(a){c.onTrackerMouseOut(a)});if(g)a[e].on("touchstart",d);!b.styledMode&&a.options.cursor&&a[e].css(y).css({cursor:a.options.cursor})}}),a._hasTracking=!0);p(this,"afterDrawTracker")},drawTrackerGraph:function(){var a=this,b=a.options,c=b.trackByArea,d=[].concat(c?a.areaPath:a.graphPath),e=d.length,f=a.chart,h=f.pointer,l=f.renderer,m=f.options.tooltip.snap,n=a.tracker,u,x=function(){if(f.hoverSeries!==a)a.onMouseOver()},y="rgba(192,192,192,"+(r?.0001:.002)+")";if(e&&!c)for(u=e+1;u--;)"M"===d[u]&&d.splice(u+1,0,d[u+1]-m,d[u+2],"L"),(u&&"M"===d[u]||u===e)&&d.splice(u,0,"L",d[u-2]+m,d[u-
1]);n?n.attr({d:d}):a.graph&&(a.tracker=l.path(d).attr({visibility:a.visible?"visible":"hidden",zIndex:2}).addClass(c?"highcharts-tracker-area":"highcharts-tracker-line").add(a.group),f.styledMode||a.tracker.attr({"stroke-linejoin":"round",stroke:y,fill:c?y:"none","stroke-width":a.graph.strokeWidth()+(c?0:2*m)}),[a.tracker,a.markerGroup].forEach(function(a){a.addClass("highcharts-tracker").on("mouseover",x).on("mouseout",function(a){h.onTrackerMouseOut(a)});b.cursor&&!f.styledMode&&a.css({cursor:b.cursor});if(g)a.on("touchstart",x)}));p(this,"afterDrawTracker")}};h.column&&(h.column.prototype.drawTracker=E.drawTrackerPoint);h.pie&&(h.pie.prototype.drawTracker=E.drawTrackerPoint);h.scatter&&(h.scatter.prototype.drawTracker=E.drawTrackerPoint);m(b.prototype,{setItemEvents:function(b,c,d){var e=this,g=e.chart.renderer.boxWrapper,k=b instanceof f,h="highcharts-legend-"+(k?"point":"series")+"-active",l=e.chart.styledMode;(d?c:b.legendGroup).on("mouseover",function(){b.visible&&e.allItems.forEach(function(a){b!==a&&a.setState("inactive",!k)});b.setState("hover");b.visible&&g.addClass(h);l||c.css(e.options.itemHoverStyle)}).on("mouseout",function(){e.chart.styledMode||c.css(a(b.visible?e.itemStyle:e.itemHiddenStyle));e.allItems.forEach(function(a){b!==a&&a.setState("",!k)});g.removeClass(h);b.setState()}).on("click",function(a){var c=function(){b.setVisible&&b.setVisible();e.allItems.forEach(function(a){b!==a&&a.setState(b.visible?"inactive":"",!k)})};g.removeClass(h);a={browserEvent:a};b.firePointEvent?b.firePointEvent("legendItemClick",a,c):p(b,"legendItemClick",a,c)})},createCheckboxForItem:function(a){a.checkbox=H("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:a.selected,defaultChecked:a.selected},this.options.itemCheckboxStyle,this.chart.container);u(a.checkbox,"click",function(b){p(a.series||a,"checkboxClick",{checked:b.target.checked,item:a},function(){a.select()})})}});m(n.prototype,{showResetZoom:function(){function a(){b.zoomOut()}var b=this,c=C.lang,d=b.options.chart.resetZoomButton,e=d.theme,f=e.states,g="chart"===d.relativeTo||"spaceBox"===d.relativeTo?null:"plotBox";p(this,"beforeShowResetZoom",null,function(){b.resetZoomButton=b.renderer.button(c.resetZoom,null,null,a,e,f&&f.hover).attr({align:d.position.align,title:c.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(d.position,!1,g)});p(this,"afterShowResetZoom")},zoomOut:function(){p(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(a){var b=this,c,e=b.pointer,f=!1,g=b.inverted?e.mouseDownX:e.mouseDownY;!a||a.resetSelection?(b.axes.forEach(function(a){c=a.zoom()}),e.initiated=!1):a.xAxis.concat(a.yAxis).forEach(function(a){var d=a.axis,k=b.inverted?d.left:d.top,h=b.inverted?k+d.width:k+d.height,l=d.isXAxis,m=!1;if(!l&&g>=k&&g<=h||l||!A(g))m=!0;e[l?"zoomX":"zoomY"]&&m&&(c=d.zoom(a.min,a.max),d.displayBtn&&(f=!0))});var h=b.resetZoomButton;f&&!h?b.showResetZoom():!f&&F(h)&&(b.resetZoomButton=h.destroy());c&&b.redraw(d(b.options.chart.animation,a&&a.animation,100>b.pointCount))},pan:function(a,b){var c=this,d=c.hoverPoints,e;p(this,"pan",{originalEvent:a},function(){d&&d.forEach(function(a){a.setState()});("xy"===b?[1,0]:[1]).forEach(function(b){b=c[b?"xAxis":"yAxis"][0];var d=b.horiz,f=a[d?"chartX":"chartY"];d=d?"mouseDownX":"mouseDownY";var g=c[d],k=(b.pointRange||0)/2,h=b.reversed&&!c.inverted||!b.reversed&&c.inverted?-1:1,m=b.getExtremes(),n=b.toValue(g-f,!0)+k*h;h=b.toValue(g+b.len-f,!0)-k*h;var p=h<n;g=p?h:n;n=p?n:h;h=Math.min(m.dataMin,k?m.min:b.toValue(b.toPixels(m.min)-b.minPixelPadding));k=Math.max(m.dataMax,k?m.max:b.toValue(b.toPixels(m.max)+b.minPixelPadding));p=h-g;0<p&&(n+=p,g=h);p=n-k;0<p&&(n=k,g-=p);b.series.length&&g!==m.min&&n!==m.max&&(b.setExtremes(g,n,!1,!1,{trigger:"pan"}),e=!0);c[d]=f});e&&c.redraw(!1);y(c.container,{cursor:"move"})})}});m(f.prototype,{select:function(a,b){var c=this,e=c.series,f=e.chart;this.selectedStaging=a=d(a,!c.selected);c.firePointEvent(a?"select":"unselect",{accumulate:b},function(){c.selected=c.options.selected=a;e.options.data[e.data.indexOf(c)]=c.options;c.setState(a&&"select");b||f.getSelectedPoints().forEach(function(a){var b=a.series;a.selected&&a!==c&&(a.selected=a.options.selected=!1,b.options.data[b.data.indexOf(a)]=a.options,a.setState(f.hoverPoints&&b.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})});delete this.selectedStaging},onMouseOver:function(a){var b=this.series.chart,c=b.pointer;a=a?c.normalize(a):c.getChartCoordinatesFromPoint(this,b.inverted);c.runPointActions(a,this)},onMouseOut:function(){var a=this.series.chart;this.firePointEvent("mouseOut");this.series.options.inactiveOtherPoints||(a.hoverPoints||[]).forEach(function(a){a.setState()});a.hoverPoints=a.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var b=this,d=a(b.series.options.point,b.options).events;b.events=d;z(d,function(a,d){c.isFunction(a)&&u(b,d,a)});this.hasImportedEvents=!0}},setState:function(a,b){var c=this.series,e=this.state,f=c.options.states[a||"normal"]||{},g=x[c.type].marker&&c.options.marker,h=g&&!1===g.enabled,l=g&&g.states&&g.states[a||"normal"]||{},n=!1===l.enabled,q=c.stateMarkerGraphic,r=this.marker||{},v=c.chart,u=c.halo,y,z=g&&c.markerAttribs;a=a||"";if(!(a===this.state&&!b||this.selected&&"select"!==a||!1===f.enabled||a&&(n||h&&!1===l.enabled)||a&&r.states&&r.states[a]&&!1===r.states[a].enabled)){this.state=a;z&&(y=c.markerAttribs(this,a));if(this.graphic){e&&this.graphic.removeClass("highcharts-point-"+e);a&&this.graphic.addClass("highcharts-point-"+a);if(!v.styledMode){var A=c.pointAttribs(this,a);var C=d(v.options.chart.animation,f.animation);c.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(a){a&&a.animate({opacity:A.opacity},C)}),this.connector&&this.connector.animate({opacity:A.opacity},C));this.graphic.animate(A,C)}y&&this.graphic.animate(y,d(v.options.chart.animation,l.animation,g.animation));q&&q.hide()}else{if(a&&l){e=r.symbol||c.symbol;q&&q.currentSymbol!==e&&(q=q.destroy());if(y)if(q)q[b?"animate":"attr"]({x:y.x,y:y.y});else e&&(c.stateMarkerGraphic=q=v.renderer.symbol(e,y.x,y.y,y.width,y.height).add(c.markerGroup),q.currentSymbol=e);!v.styledMode&&q&&q.attr(c.pointAttribs(this,a))}q&&(q[a&&this.isInside?"show":"hide"](),q.element.point=this)}a=f.halo;f=(q=this.graphic||q)&&q.visibility||"inherit";a&&a.size&&q&&"hidden"!==f?(u||(c.halo=u=v.renderer.path().add(q.parentGroup)),u.show()[b?"animate":"attr"]({d:this.haloPath(a.size)}),u.attr({"class":"highcharts-halo highcharts-color-"+d(this.colorIndex,c.colorIndex)+(this.className?" "+this.className:""),visibility:f,zIndex:-1}),u.point=this,v.styledMode||u.attr(m({fill:this.color||c.color,"fill-opacity":a.opacity},a.attributes))):u&&u.point&&u.point.haloPath&&u.animate({d:u.point.haloPath(0)},null,u.hide);p(this,"afterSetState")}},haloPath:function(a){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-a,this.plotY-a,2*a,2*a)}});m(e.prototype,{onMouseOver:function(){var a=this.chart,b=a.hoverSeries;if(b&&b!==this)b.onMouseOut();this.options.events.mouseOver&&p(this,"mouseOver");this.setState("hover");a.hoverSeries=this},onMouseOut:function(){var a=this.options,b=this.chart,c=b.tooltip,d=b.hoverPoint;b.hoverSeries=null;if(d)d.onMouseOut();this&&a.events.mouseOut&&p(this,"mouseOut");!c||this.stickyTracking||c.shared&&!this.noSharedTooltip||c.hide();b.series.forEach(function(a){a.setState("",!0)})},setState:function(a,b){var c=this,e=c.options,f=c.graph,g=e.inactiveOtherPoints,h=e.states,l=e.lineWidth,m=e.opacity,n=d(h[a||"normal"]&&h[a||"normal"].animation,c.chart.options.chart.animation);e=0;a=a||"";if(c.state!==a&&([c.group,c.markerGroup,c.dataLabelsGroup].forEach(function(b){b&&(c.state&&b.removeClass("highcharts-series-"+c.state),a&&b.addClass("highcharts-series-"+a))}),c.state=a,!c.chart.styledMode)){if(h[a]&&!1===h[a].enabled)return;a&&(l=h[a].lineWidth||l+(h[a].lineWidthPlus||0),m=d(h[a].opacity,m));if(f&&!f.dashstyle)for(h={"stroke-width":l},f.animate(h,n);c["zone-graph-"+e];)c["zone-graph-"+e].attr(h),e+=1;g||[c.group,c.markerGroup,c.dataLabelsGroup,c.labelBySeries].forEach(function(a){a&&a.animate({opacity:m},n)})}b&&g&&c.points&&c.setAllPointsToState(a)},setAllPointsToState:function(a){this.points.forEach(function(b){b.setState&&b.setState(a)})},setVisible:function(a,b){var c=this,d=c.chart,e=c.legendItem,f=d.options.chart.ignoreHiddenSeries,g=c.visible;var h=(c.visible=a=c.options.visible=c.userOptions.visible=void 0===a?!g:a)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(a){if(c[a])c[a][h]()});if(d.hoverSeries===c||(d.hoverPoint&&d.hoverPoint.series)===c)c.onMouseOut();e&&d.legend.colorizeItem(c,a);c.isDirty=!0;c.options.stacking&&d.series.forEach(function(a){a.options.stacking&&a.visible&&(a.isDirty=!0)});c.linkedSeries.forEach(function(b){b.setVisible(a,!1)});f&&(d.isDirtyBox=!0);p(c,h);!1!==b&&d.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(a){this.selected=a=this.options.selected=void 0===a?!this.selected:a;this.checkbox&&(this.checkbox.checked=a);p(this,a?"select":"unselect")},drawTracker:E.drawTrackerGraph})});N(H,"parts/Responsive.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=n.isArray,D=n.isObject,F=n.objectEach,z=n.splat;n=c.Chart;var u=c.pick;n.prototype.setResponsive=function(n,u){var y=this.options.responsive,x=[],m=this.currentResponsive;!u&&y&&y.rules&&y.rules.forEach(function(m){void 0===m._id&&(m._id=c.uniqueKey());this.matchResponsiveRule(m,x)},this);u=c.merge.apply(0,x.map(function(m){return c.find(y.rules,function(c){return c._id===m}).chartOptions}));u.isResponsiveOptions=!0;x=x.toString()||void 0;x!==(m&&m.ruleIds)&&(m&&this.update(m.undoOptions,n,!0),x?(m=this.currentOptions(u),m.isResponsiveOptions=!0,this.currentResponsive={ruleIds:x,mergedOptions:u,undoOptions:m},this.update(u,n,!0)):this.currentResponsive=void 0)};n.prototype.matchResponsiveRule=function(c,n){var y=c.condition;(y.callback||function(){return this.chartWidth<=u(y.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=u(y.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=u(y.minWidth,0)&&this.chartHeight>=u(y.minHeight,0)}).call(this)&&n.push(c._id)};n.prototype.currentOptions=function(c){function n(c,p,g,b){var a;F(c,function(c,f){if(!b&&-1<u.collectionsWithUpdate.indexOf(f))for(c=z(c),g[f]=[],a=0;a<c.length;a++)p[f][a]&&(g[f][a]={},n(c[a],p[f][a],g[f][a],b+1));else D(c)?(g[f]=A(c)?[]:{},n(c,p[f]||{},g[f],b+1)):g[f]=void 0===p[f]?null:p[f]})}var u=this,x={};n(c,this.options,x,0);return x}});N(H,"masters/highcharts.src.js",[H["parts/Globals.js"],H["parts/Utilities.js"]],function(c,n){var A=c.extend;A(c,{attr:n.attr,defined:n.defined,erase:n.erase,isArray:n.isArray,isClass:n.isClass,isDOMElement:n.isDOMElement,isNumber:n.isNumber,isObject:n.isObject,isString:n.isString,objectEach:n.objectEach,pInt:n.pInt,splat:n.splat});return c});H["masters/highcharts.src.js"]._modules=H;return H["masters/highcharts.src.js"]});(function(m){"object"===typeof module&&module.exports?(m["default"]=m,module.exports=m):"function"===typeof define&&define.amd?define("highcharts/modules/heatmap",["highcharts"],function(p){m(p);m.Highcharts=p;return m}):m("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(m){function p(a,f,C,q){a.hasOwnProperty(f)||(a[f]=q.apply(null,C))}var l=m?m._modules:{};p(l,"parts-map/ColorSeriesMixin.js",[l["parts/Globals.js"]],function(a){a.colorPointMixin={setVisible:function(a){var f=this,q=a?"show":"hide";f.visible=!!a;["graphic","dataLabel"].forEach(function(a){if(f[a])f[a][q]()})}};a.colorSeriesMixin={optionalAxis:"colorAxis",colorAxis:0,translateColors:function(){var a=this,m=this.options.nullColor,q=this.colorAxis,y=this.colorKey;(this.data.length?this.data:this.points).forEach(function(f){var g=f[y];if(g=f.options.color||(f.isNull?m:q&&void 0!==g?q.toColor(g,f):f.color||a.color))f.color=g})}}});p(l,"parts-map/ColorAxis.js",[l["parts/Globals.js"],l["parts/Utilities.js"]],function(a,f){var l=f.erase,q=f.isNumber,y=f.splat;f=a.addEvent;var g=a.Axis,p=a.Chart,v=a.Series,w=a.Point,k=a.color,e=a.extend,A=a.Legend,D=a.LegendSymbolMixin,E=a.colorPointMixin,B=a.noop,u=a.merge,r=a.pick;e(v.prototype,a.colorSeriesMixin);e(w.prototype,E);var t=a.ColorAxis=function(){this.init.apply(this,arguments)};e(t.prototype,g.prototype);e(t.prototype,{defaultColorAxisOptions:{lineWidth:0,minPadding:0,maxPadding:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},width:.01,color:"#999999"},labels:{overflow:"justify",rotation:0},minColor:"#e6ebf5",maxColor:"#003399",tickLength:5,showInLegend:!0},keepProps:["legendGroup","legendItemHeight","legendItemWidth","legendItem","legendSymbol"].concat(g.prototype.keepProps),init:function(b,c){this.coll="colorAxis";var h=this.buildOptions.call(b,this.defaultColorAxisOptions,c);g.prototype.init.call(this,b,h);c.dataClasses&&this.initDataClasses(c);this.initStops();this.horiz=!h.opposite;this.zoomEnabled=!1;this.defaultLegendLength=200},initDataClasses:function(b){var c=this.chart,h,d=0,a=c.options.chart.colorCount,e=this.options,n=b.dataClasses.length;this.dataClasses=h=[];this.legendItems=[];b.dataClasses.forEach(function(b,x){b=u(b);h.push(b);if(c.styledMode||!b.color)"category"===e.dataClassColor?(c.styledMode||(x=c.options.colors,a=x.length,b.color=x[d]),b.colorIndex=d,d++,d===a&&(d=0)):b.color=k(e.minColor).tweenTo(k(e.maxColor),2>n?.5:x/(n-1))})},hasData:function(){return!(!this.tickPositions||!this.tickPositions.length)},setTickPositions:function(){if(!this.dataClasses)return g.prototype.setTickPositions.call(this)},initStops:function(){this.stops=this.options.stops||[[0,this.options.minColor],[1,this.options.maxColor]];this.stops.forEach(function(b){b.color=k(b[1])})},buildOptions:function(b,c){var h=this.options.legend,d=c.layout?"vertical"!==c.layout:"vertical"!==h.layout;return u(b,{side:d?2:1,reversed:!d},c,{opposite:!d,showEmpty:!1,title:null,visible:h.enabled&&(c?!1!==c.visible:!0)})},setOptions:function(b){g.prototype.setOptions.call(this,b);this.options.crosshair=this.options.marker},setAxisSize:function(){var b=this.legendSymbol,c=this.chart,h=c.options.legend||{},d,a;b?(this.left=h=b.attr("x"),this.top=d=b.attr("y"),this.width=a=b.attr("width"),this.height=b=b.attr("height"),this.right=c.chartWidth-h-a,this.bottom=c.chartHeight-d-b,this.len=this.horiz?a:b,this.pos=this.horiz?h:d):this.len=(this.horiz?h.symbolWidth:h.symbolHeight)||this.defaultLegendLength},normalizedValue:function(b){this.isLog&&(b=this.val2lin(b));return 1-(this.max-
b)/(this.max-this.min||1)},toColor:function(b,c){var h=this.stops,d=this.dataClasses,a;if(d)for(a=d.length;a--;){var e=d[a];var n=e.from;h=e.to;if((void 0===n||b>=n)&&(void 0===h||b<=h)){var f=e.color;c&&(c.dataClass=a,c.colorIndex=e.colorIndex);break}}else{b=this.normalizedValue(b);for(a=h.length;a--&&!(b>h[a][0]););n=h[a]||h[a+1];h=h[a+1]||n;b=1-(h[0]-b)/(h[0]-n[0]||1);f=n.color.tweenTo(h.color,b)}return f},getOffset:function(){var b=this.legendGroup,c=this.chart.axisOffset[this.side];b&&(this.axisParent=b,g.prototype.getOffset.call(this),this.added||(this.added=!0,this.labelLeft=0,this.labelRight=this.width),this.chart.axisOffset[this.side]=c)},setLegendColor:function(){var b=this.reversed;var c=b?1:0;b=b?0:1;c=this.horiz?[c,0,b,0]:[0,b,0,c];this.legendColor={linearGradient:{x1:c[0],y1:c[1],x2:c[2],y2:c[3]},stops:this.stops}},drawLegendSymbol:function(b,c){var a=b.padding,d=b.options,e=this.horiz,f=r(d.symbolWidth,e?this.defaultLegendLength:12),n=r(d.symbolHeight,e?12:this.defaultLegendLength),k=r(d.labelPadding,e?16:30);d=r(d.itemDistance,10);this.setLegendColor();c.legendSymbol=this.chart.renderer.rect(0,b.baseline-11,f,n).attr({zIndex:1}).add(c.legendGroup);this.legendItemWidth=f+a+(e?d:k);this.legendItemHeight=n+a+(e?k:0)},setState:function(b){this.series.forEach(function(c){c.setState(b)})},visible:!0,setVisible:B,getSeriesExtremes:function(){var b=this.series,c=b.length,a;this.dataMin=Infinity;for(this.dataMax=-Infinity;c--;){var d=b[c];var e=d.colorKey=r(d.options.colorKey,d.colorKey,d.pointValKey,d.zoneAxis,"y");var f=d.pointArrayMap;var n=d[e+"Min"]&&d[e+"Max"];if(d[e+"Data"])var k=d[e+"Data"];else if(f){k=[];f=f.indexOf(e);var g=d.yData;if(0<=f&&g)for(a=0;a<g.length;a++)k.push(r(g[a][f],g[a]))}else k=d.yData;n?(d.minColorValue=d[e+"Min"],d.maxColorValue=d[e+"Max"]):(v.prototype.getExtremes.call(d,k),d.minColorValue=d.dataMin,d.maxColorValue=d.dataMax);void 0!==d.minColorValue&&(this.dataMin=Math.min(this.dataMin,d.minColorValue),this.dataMax=Math.max(this.dataMax,d.maxColorValue));n||m.Series.prototype.getExtremes.call(d)}},drawCrosshair:function(b,c){var a=c&&c.plotX,d=c&&c.plotY,e=this.pos,f=this.len;if(c){var k=this.toPixels(c[c.series.colorKey]);k<e?k=e-2:k>e+f&&(k=e+f+2);c.plotX=k;c.plotY=this.len-k;g.prototype.drawCrosshair.call(this,b,c);c.plotX=a;c.plotY=d;this.cross&&!this.cross.addedToColorAxis&&this.legendGroup&&(this.cross.addClass("highcharts-coloraxis-marker").add(this.legendGroup),this.cross.addedToColorAxis=!0,this.chart.styledMode||this.cross.attr({fill:this.crosshair.color}))}},getPlotLinePath:function(b){var c=b.translatedValue;return q(c)?this.horiz?["M",c-4,this.top-6,"L",c+4,this.top-6,c,this.top,"Z"]:["M",this.left,c,"L",this.left-6,c+6,this.left-6,c-6,"Z"]:g.prototype.getPlotLinePath.apply(this,arguments)},update:function(b,c){var a=this.chart,d=a.legend,e=this.buildOptions.call(a,{},b);this.series.forEach(function(b){b.isDirtyData=!0});(b.dataClasses&&d.allItems||this.dataClasses)&&this.destroyItems();a.options[this.coll]=u(this.userOptions,e);g.prototype.update.call(this,e,c);this.legendItem&&(this.setLegendColor(),d.colorizeItem(this,!0))},destroyItems:function(){var b=this.chart;this.legendItem?b.legend.destroyItem(this):this.legendItems&&this.legendItems.forEach(function(c){b.legend.destroyItem(c)});b.isDirtyLegend=!0},remove:function(b){this.destroyItems();g.prototype.remove.call(this,b)},getDataClassLegendSymbols:function(){var b=this,c=this.chart,h=this.legendItems,d=c.options.legend,f=d.valueDecimals,k=d.valueSuffix||"",g;h.length||this.dataClasses.forEach(function(d,n){var u=!0,r=d.from,l=d.to;g="";void 0===r?g="< ":void 0===l&&(g="> ");void 0!==r&&(g+=a.numberFormat(r,f)+k);void 0!==r&&void 0!==l&&(g+=" - ");void 0!==l&&(g+=a.numberFormat(l,f)+k);h.push(e({chart:c,name:g,options:{},drawLegendSymbol:D.drawRectangle,visible:!0,setState:B,isDataClass:!0,setVisible:function(){u=this.visible=!u;b.series.forEach(function(b){b.points.forEach(function(b){b.dataClass===n&&b.setVisible(u)})});c.legend.colorizeItem(this,u)}},d))});return h},beforePadding:!1,name:""});["fill","stroke"].forEach(function(b){a.Fx.prototype[b+"Setter"]=function(){this.elem.attr(b,k(this.start).tweenTo(k(this.end),this.pos),null,!0)}});f(p,"afterGetAxes",function(){var b=this,c=b.options;this.colorAxis=[];c.colorAxis&&(c.colorAxis=y(c.colorAxis),c.colorAxis.forEach(function(c,a){c.index=a;new t(b,c)}))});f(v,"bindAxes",function(){var b=this.axisTypes;b?-1===b.indexOf("colorAxis")&&b.push("colorAxis"):this.axisTypes=["colorAxis"]});f(A,"afterGetAllItems",function(b){var c=[],a,d;(this.chart.colorAxis||[]).forEach(function(d){(a=d.options)&&a.showInLegend&&(a.dataClasses&&a.visible?c=c.concat(d.getDataClassLegendSymbols()):a.visible&&c.push(d),d.series.forEach(function(c){if(!c.options.showInLegend||a.dataClasses)"point"===c.options.legendType?c.points.forEach(function(c){l(b.allItems,c)}):l(b.allItems,c)}))});for(d=c.length;d--;)b.allItems.unshift(c[d])});f(A,"afterColorizeItem",function(b){b.visible&&b.item.legendColor&&b.item.legendSymbol.attr({fill:b.item.legendColor})});f(A,"afterUpdate",function(){var b=this.chart.colorAxis;b&&b.forEach(function(b,a,d){b.update({},d)})});f(v,"afterTranslate",function(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()})});p(l,"parts-map/ColorMapSeriesMixin.js",[l["parts/Globals.js"],l["parts/Utilities.js"]],function(a,f){var l=f.defined;f=a.noop;var m=a.seriesTypes;a.colorMapPointMixin={dataLabelOnNull:!0,isValid:function(){return null!==this.value&&Infinity!==this.value&&-Infinity!==this.value},setState:function(f){a.Point.prototype.setState.call(this,f);this.graphic&&this.graphic.attr({zIndex:"hover"===f?1:0})}};a.colorMapSeriesMixin={pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:f,parallelArrays:["x","y","value"],colorKey:"value",pointAttribs:m.column.prototype.pointAttribs,colorAttribs:function(a){var f={};l(a.color)&&(f[this.colorProp||"fill"]=a.color);return f}}});p(l,"parts-map/HeatmapSeries.js",[l["parts/Globals.js"]],function(a){var f=a.colorMapPointMixin,l=a.merge,m=a.noop,p=a.pick,g=a.fireEvent,z=a.Series,v=a.seriesType,w=a.seriesTypes;v("heatmap","scatter",{animation:!1,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){return this.point.value},inside:!0,verticalAlign:"middle",crop:!1,overflow:!1,padding:0},marker:null,pointRange:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{hover:{halo:!1,brightness:.2}}},l(a.colorMapSeriesMixin,{pointArrayMap:["y","value"],hasPointSpecificOptions:!0,getExtremesFromAll:!0,directTouch:!0,init:function(){w.scatter.prototype.init.apply(this,arguments);var a=this.options;a.pointRange=p(a.pointRange,a.colsize||1);this.yAxis.axisPointRange=a.rowsize||1},translate:function(){var a=this.options,e=this.xAxis,f=this.yAxis,l=a.pointPadding||0,m=function(a,e,f){return Math.min(Math.max(e,a),f)},q=this.pointPlacementToXValue();this.generatePoints();this.points.forEach(function(k){var g=(a.colsize||1)/2,t=(a.rowsize||1)/2,b=m(Math.round(e.len-e.translate(k.x-g,0,1,0,1,-q)),-e.len,2*e.len);g=m(Math.round(e.len-e.translate(k.x+g,0,1,0,1,-q)),-e.len,2*e.len);var c=m(Math.round(f.translate(k.y-t,0,1,0,1)),-f.len,2*f.len);t=m(Math.round(f.translate(k.y+t,0,1,0,1)),-f.len,2*f.len);var h=p(k.pointPadding,l);k.plotX=k.clientX=(b+g)/2;k.plotY=(c+t)/2;k.shapeType="rect";k.shapeArgs={x:Math.min(b,g)+h,y:Math.min(c,t)+h,width:Math.max(Math.abs(g-b)-2*h,0),height:Math.max(Math.abs(t-c)-2*h,0)}});g(this,"afterTranslate")},drawPoints:function(){var a=this.chart.styledMode?"css":"animate";w.column.prototype.drawPoints.call(this);this.points.forEach(function(e){e.graphic[a](this.colorAttribs(e))},this)},hasData:function(){return!!this.processedXData.length},getValidPoints:function(a,e){return z.prototype.getValidPoints.call(this,a,e,!0)},animate:m,getBox:m,drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,alignDataLabel:w.column.prototype.alignDataLabel,getExtremes:function(){z.prototype.getExtremes.call(this,this.valueData);this.valueMin=this.dataMin;this.valueMax=this.dataMax;z.prototype.getExtremes.call(this)}}),a.extend({haloPath:function(a){if(!a)return[];var e=this.shapeArgs;return["M",e.x-a,e.y-a,"L",e.x-a,e.y+e.height+a,e.x+e.width+a,e.y+e.height+a,e.x+e.width+a,e.y-a,"Z"]}},f));""});p(l,"masters/modules/heatmap.src.js",[],function(){})});(function(a){"object"===typeof module&&module.exports?(a["default"]=a,module.exports=a):"function"===typeof define&&define.amd?define("highcharts/modules/vector",["highcharts"],function(c){a(c);a.Highcharts=c;return a}):a("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(a){function c(a,c,e,d){a.hasOwnProperty(c)||(a[c]=d.apply(null,e))}a=a?a._modules:{};c(a,"modules/vector.src.js",[a["parts/Globals.js"]],function(a){var c=a.seriesType,e=a.pick;c("vector","scatter",{lineWidth:2,marker:null,rotationOrigin:"center",states:{hover:{lineWidthPlus:1}},tooltip:{pointFormat:"<b>[{point.x}, {point.y}]</b><br/>Length: <b>{point.length}</b><br/>Direction: <b>{point.direction}\u00b0</b><br/>"},vectorLength:20},{pointArrayMap:["y","length","direction"],parallelArrays:["x","y","length","direction"],pointAttribs:function(a,b){var d=this.options;a=a.color||this.color;var c=this.options.lineWidth;b&&(a=d.states[b].color||a,c=(d.states[b].lineWidth||c)+(d.states[b].lineWidthPlus||0));return{stroke:a,"stroke-width":c}},markerAttribs:a.noop,getSymbol:a.noop,arrow:function(a){a=a.length/this.lengthMax*this.options.vectorLength/20;var b={start:10*a,center:0,end:-10*a}[this.options.rotationOrigin]||0;return["M",0,7*a+b,"L",-1.5*a,7*a+b,0,10*a+b,1.5*a,7*a+b,0,7*a+b,0,-10*a+b]},translate:function(){a.Series.prototype.translate.call(this);this.lengthMax=a.arrayMax(this.lengthData)},drawPoints:function(){var a=this.chart;this.points.forEach(function(b){var c=b.plotX,d=b.plotY;!1===this.options.clip||a.isInsidePlot(c,d,a.inverted)?(b.graphic||(b.graphic=this.chart.renderer.path().add(this.markerGroup).addClass("highcharts-point highcharts-color-"+e(b.colorIndex,b.series.colorIndex))),b.graphic.attr({d:this.arrow(b),translateX:c,translateY:d,rotation:b.direction}),this.chart.styledMode||b.graphic.attr(this.pointAttribs(b))):b.graphic&&(b.graphic=b.graphic.destroy())},this)},drawGraph:a.noop,animate:function(c){c?this.markerGroup.attr({opacity:.01}):(this.markerGroup.animate({opacity:1},a.animObject(this.options.animation)),this.animate=null)}})});c(a,"masters/modules/vector.src.js",[],function(){})});(function(v){"object"===typeof module&&module.exports?(v["default"]=v,module.exports=v):"function"===typeof define&&define.amd?define("highcharts/highcharts-more",["highcharts"],function(z){v(z);v.Highcharts=z;return v}):v("undefined"!==typeof Highcharts?Highcharts:void 0)})(function(v){function z(a,c,l,g){a.hasOwnProperty(c)||(a[c]=g.apply(null,l))}v=v?v._modules:{};z(v,"parts-more/Pane.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){function l(b,e){this.init(b,e)}var g=c.splat,k=a.CenteredSeriesMixin,b=a.extend,f=a.merge;b(l.prototype,{coll:"pane",init:function(b,e){this.chart=e;this.background=[];e.pane.push(this);this.setOptions(b)},setOptions:function(b){this.options=f(this.defaultOptions,this.chart.angular?{background:{}}:void 0,b)},render:function(){var b=this.options,e=this.options.background,a=this.chart.renderer;this.group||(this.group=a.g("pane-group").attr({zIndex:b.zIndex||0}).add());this.updateCenter();if(e)for(e=g(e),b=Math.max(e.length,this.background.length||0),a=0;a<b;a++)e[a]&&this.axis?this.renderBackground(f(this.defaultBackgroundOptions,e[a]),a):this.background[a]&&(this.background[a]=this.background[a].destroy(),this.background.splice(a,1))},renderBackground:function(a,e){var c="animate",f={"class":"highcharts-pane "+(a.className||"")};this.chart.styledMode||b(f,{fill:a.backgroundColor,stroke:a.borderColor,"stroke-width":a.borderWidth});this.background[e]||(this.background[e]=this.chart.renderer.path().add(this.group),c="attr");this.background[e][c]({d:this.axis.getPlotBandPath(a.from,a.to,a)}).attr(f)},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"#cccccc",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#ffffff"],[1,"#e6e6e6"]]},from:-Number.MAX_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"},updateCenter:function(b){this.center=(b||this.axis||{}).center=k.getCenter.call(this)},update:function(b,e){f(!0,this.options,b);f(!0,this.chart.options.pane,b);this.setOptions(this.options);this.render();this.chart.axes.forEach(function(b){b.pane===this&&(b.pane=null,b.update({},e))},this)}});a.Pane=l});z(v,"parts-more/RadialAxis.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.pInt;c=a.addEvent;var g=a.Axis,k=a.extend,b=a.merge,f=a.noop,u=a.pick,e=a.Tick,p=a.wrap,q=a.correctFloat,x=g.prototype,m=e.prototype;var t={getOffset:f,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},createLabelCollector:function(){return!1},setScale:f,setCategories:f,setTitle:f};var y={defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(d){d=this.options=b(this.defaultOptions,this.defaultRadialOptions,d);d.plotBands||(d.plotBands=[]);a.fireEvent(this,"afterSetOptions")},getOffset:function(){x.getOffset.call(this);this.chart.axisOffset[this.side]=0},getLinePath:function(d,n){d=this.center;var h=this.chart,r=u(n,d[2]/2-this.offset);this.isCircular||void 0!==n?(n=this.chart.renderer.symbols.arc(this.left+d[0],this.top+d[1],r,r,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0}),n.xBounds=[this.left+d[0]],n.yBounds=[this.top+d[1]-r]):(n=this.postTranslate(this.angleRad,r),n=["M",d[0]+h.plotLeft,d[1]+h.plotTop,"L",n.x,n.y]);return n},setAxisTranslation:function(){x.setAxisTranslation.call(this);this.center&&(this.transA=this.isCircular?(this.endAngleRad-this.startAngleRad)/(this.max-this.min||1):this.center[2]/2/(this.max-this.min||1),this.minPixelPadding=this.isXAxis?this.transA*this.minPointOffset:0)},beforeSetTickPositions:function(){if(this.autoConnect=this.isCircular&&void 0===u(this.userMax,this.options.max)&&q(this.endAngleRad-this.startAngleRad)===q(2*Math.PI))this.max+=this.categories&&1||this.pointRange||this.closestPointRange||0},setAxisSize:function(){x.setAxisSize.call(this);this.isRadial&&(this.pane.updateCenter(this),this.isCircular&&(this.sector=this.endAngleRad-this.startAngleRad),this.len=this.width=this.height=this.center[2]*u(this.sector,1)/2)},getPosition:function(d,n){return this.postTranslate(this.isCircular?this.translate(d):this.angleRad,u(this.isCircular?n:this.translate(d),this.center[2]/2)-this.offset)},postTranslate:function(d,n){var h=this.chart,r=this.center;d=this.startAngleRad+d;return{x:h.plotLeft+r[0]+Math.cos(d)*n,y:h.plotTop+r[1]+Math.sin(d)*n}},getPlotBandPath:function(d,n,h){var r=this.center,w=this.startAngleRad,b=r[2]/2,e=[u(h.outerRadius,"100%"),h.innerRadius,u(h.thickness,10)],a=Math.min(this.offset,0),c=/%$/;var f=this.isCircular;if("polygon"===this.options.gridLineInterpolation)e=this.getPlotLinePath({value:d}).concat(this.getPlotLinePath({value:n,reverse:!0}));else{d=Math.max(d,this.min);n=Math.min(n,this.max);f||(e[0]=this.translate(d),e[1]=this.translate(n));e=e.map(function(d){c.test(d)&&(d=l(d,10)*b/100);return d});if("circle"!==h.shape&&f)d=w+this.translate(d),n=w+this.translate(n);else{d=-Math.PI/2;n=1.5*Math.PI;var m=!0}e[0]-=a;e[2]-=a;e=this.chart.renderer.symbols.arc(this.left+r[0],this.top+r[1],e[0],e[0],{start:Math.min(d,n),end:Math.max(d,n),innerR:u(e[1],e[0]-e[2]),open:m});f&&(f=(n+d)/2,a=this.left+r[0]+r[2]/2*Math.cos(f),e.xBounds=f>-Math.PI/2&&f<Math.PI/2?[a,this.chart.plotWidth]:[0,a],e.yBounds=[this.top+r[1]+r[2]/2*Math.sin(f)],e.yBounds[0]+=f>-Math.PI&&0>f||f>Math.PI?-10:10)}return e},getPlotLinePath:function(d){var n=this,h=n.center,r=n.chart,w=d.value;d=d.reverse;var b=n.getPosition(w),e,a;if(n.isCircular)var f=["M",h[0]+r.plotLeft,h[1]+r.plotTop,"L",b.x,b.y];else"circle"===n.options.gridLineInterpolation?(w=n.translate(w),f=n.getLinePath(0,w)):(r.xAxis.forEach(function(d){d.pane===n.pane&&(e=d)}),f=[],w=n.translate(w),h=e.tickPositions,e.autoConnect&&(h=h.concat([h[0]])),d&&(h=[].concat(h).reverse()),h.forEach(function(d,h){a=e.getPosition(d,w);f.push(h?"L":"M",a.x,a.y)}));return f},getTitlePosition:function(){var d=this.center,n=this.chart,h=this.options.title;return{x:n.plotLeft+d[0]+(h.x||0),y:n.plotTop+d[1]-{high:.5,middle:.25,low:0}[h.align]*d[2]+(h.y||0)}},createLabelCollector:function(){var d=this;return function(){if(d.isRadial&&d.tickPositions&&!0!==d.options.labels.allowOverlap)return d.tickPositions.map(function(n){return d.ticks[n]&&d.ticks[n].label}).filter(function(d){return!!d})}}};c(g,"init",function(d){var n=this.chart,h=n.angular,r=n.polar,w=this.isXAxis,e=h&&w,a,f=n.options;d=d.userOptions.pane||0;d=this.pane=n.pane&&n.pane[d];if("colorAxis"===this.coll)this.isRadial=!1;else{if(h){if(k(this,e?t:y),a=!w)this.defaultRadialOptions=this.defaultRadialGaugeOptions}else r&&(k(this,y),this.defaultRadialOptions=(a=w)?this.defaultRadialXOptions:b(this.defaultYAxisOptions,this.defaultRadialYOptions));h||r?(this.isRadial=!0,n.inverted=!1,f.chart.zoomType=null,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&n.labelCollectors.push(this.labelCollector)):this.isRadial=!1;d&&a&&(d.axis=this);this.isCircular=a}});c(g,"afterInit",function(){var d=this.chart,n=this.options,h=this.pane,r=h&&h.options;d.angular&&this.isXAxis||!h||!d.angular&&!d.polar||(this.angleRad=(n.angle||0)*Math.PI/180,this.startAngleRad=(r.startAngle-90)*Math.PI/180,this.endAngleRad=(u(r.endAngle,r.startAngle+360)-90)*Math.PI/180,this.offset=n.offset||0)});c(g,"autoLabelAlign",function(d){this.isRadial&&(d.align=void 0,d.preventDefault())});c(g,"destroy",function(){if(this.chart&&this.chart.labelCollectors){var d=this.chart.labelCollectors.indexOf(this.labelCollector);0<=d&&this.chart.labelCollectors.splice(d,1)}});c(e,"afterGetPosition",function(d){this.axis.getPosition&&k(d.pos,this.axis.getPosition(this.pos))});c(e,"afterGetLabelPosition",function(d){var n=this.axis,h=this.label,r=h.getBBox(),w=n.options.labels,b=w.y,e=20,f=w.align,c=(n.translate(this.pos)+n.startAngleRad+Math.PI/2)/Math.PI*180%360,m=Math.round(c),g="end",t=0>m?m+360:m,q=t,k=0,p=0,x=null===w.y?.3*-r.height:0;if(n.isRadial){var l=n.getPosition(this.pos,n.center[2]/2+a.relativeLength(u(w.distance,-25),n.center[2]/2,-n.center[2]/2));"auto"===w.rotation?h.attr({rotation:c}):null===b&&(b=n.chart.renderer.fontMetrics(h.styles&&h.styles.fontSize).b-r.height/2);null===f&&(n.isCircular?(r.width>n.len*n.tickInterval/(n.max-n.min)&&(e=0),f=c>e&&c<180-e?"left":c>180+e&&c<360-e?"right":"center"):f="center",h.attr({align:f}));if("auto"===f&&2===n.tickPositions.length&&n.isCircular){90<t&&180>t?t=180-t:270<t&&360>=t&&(t=540-t);180<q&&360>=q&&(q=360-q);if(n.pane.options.startAngle===m||n.pane.options.startAngle===m+360||n.pane.options.startAngle===m-360)g="start";f=-90<=m&&90>=m||-360<=m&&-270>=m||270<=m&&360>=m?"start"===g?"right":"left":"start"===g?"left":"right";70<q&&110>q&&(f="center");15>t||180<=t&&195>t?k=.3*r.height:15<=t&&35>=t?k="start"===g?0:.75*r.height:195<=t&&215>=t?k="start"===g?.75*r.height:0:35<t&&90>=t?k="start"===g?.25*-r.height:r.height:215<t&&270>=t&&(k="start"===g?r.height:.25*-r.height);15>q?p="start"===g?.15*-r.height:.15*r.height:165<q&&180>=q&&(p="start"===g?.15*r.height:.15*-r.height);h.attr({align:f});h.translate(p,k+x)}d.pos.x=l.x+w.x;d.pos.y=l.y+b}});p(m,"getMarkPath",function(d,n,h,r,w,e,b){var a=this.axis;a.isRadial?(d=a.getPosition(this.pos,a.center[2]/2+r),n=["M",n,h,"L",d.x,d.y]):n=d.call(this,n,h,r,w,e,b);return n})});z(v,"parts-more/AreaRangeSeries.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.defined,g=c.isArray,k=c.isNumber,b=a.pick,f=a.extend;c=a.seriesType;var u=a.seriesTypes,e=a.Series.prototype,p=a.Point.prototype;c("arearange","area",{lineWidth:1,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{align:null,verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}},{pointArrayMap:["low","high"],pointValKey:"low",deferTranslatePolar:!0,toYData:function(e){return[e.low,e.high]},highToXY:function(e){var b=this.chart,a=this.xAxis.postTranslate(e.rectPlotX,this.yAxis.len-e.plotHigh);e.plotHighX=a.x-b.plotLeft;e.plotHigh=a.y-b.plotTop;e.plotLowX=e.plotX},translate:function(){var e=this,b=e.yAxis,a=!!e.modifyValue;u.area.prototype.translate.apply(e);e.points.forEach(function(f){var c=f.high,d=f.plotY;f.isNull?f.plotY=null:(f.plotLow=d,f.plotHigh=b.translate(a?e.modifyValue(c,f):c,0,1,0,1),a&&(f.yBottom=f.plotHigh))});this.chart.polar&&this.points.forEach(function(b){e.highToXY(b);b.tooltipPos=[(b.plotHighX+b.plotLowX)/2,(b.plotHigh+b.plotLow)/2]})},getGraphPath:function(e){var a=[],f=[],c,g=u.area.prototype.getGraphPath;var d=this.options;var n=this.chart.polar&&!1!==d.connectEnds,h=d.connectNulls,r=d.step;e=e||this.points;for(c=e.length;c--;){var w=e[c];w.isNull||n||h||e[c+1]&&!e[c+1].isNull||f.push({plotX:w.plotX,plotY:w.plotY,doCurve:!1});var A={polarPlotY:w.polarPlotY,rectPlotX:w.rectPlotX,yBottom:w.yBottom,plotX:b(w.plotHighX,w.plotX),plotY:w.plotHigh,isNull:w.isNull};f.push(A);a.push(A);w.isNull||n||h||e[c-1]&&!e[c-1].isNull||f.push({plotX:w.plotX,plotY:w.plotY,doCurve:!1})}e=g.call(this,e);r&&(!0===r&&(r="left"),d.step={left:"right",center:"center",right:"left"}[r]);a=g.call(this,a);f=g.call(this,f);d.step=r;d=[].concat(e,a);this.chart.polar||"M"!==f[0]||(f[0]="L");this.graphPath=d;this.areaPath=e.concat(f);d.isArea=!0;d.xMap=e.xMap;this.areaPath.xMap=e.xMap;return d},drawDataLabels:function(){var b=this.points,a=b.length,c,k=[],p=this.options.dataLabels,d,n=this.chart.inverted;if(g(p))if(1<p.length){var h=p[0];var r=p[1]}else h=p[0],r={enabled:!1};else h=f({},p),h.x=p.xHigh,h.y=p.yHigh,r=f({},p),r.x=p.xLow,r.y=p.yLow;if(h.enabled||this._hasPointLabels){for(c=a;c--;)if(d=b[c]){var w=h.inside?d.plotHigh<d.plotLow:d.plotHigh>d.plotLow;d.y=d.high;d._plotY=d.plotY;d.plotY=d.plotHigh;k[c]=d.dataLabel;d.dataLabel=d.dataLabelUpper;d.below=w;n?h.align||(h.align=w?"right":"left"):h.verticalAlign||(h.verticalAlign=w?"top":"bottom")}this.options.dataLabels=h;e.drawDataLabels&&e.drawDataLabels.apply(this,arguments);for(c=a;c--;)if(d=b[c])d.dataLabelUpper=d.dataLabel,d.dataLabel=k[c],delete d.dataLabels,d.y=d.low,d.plotY=d._plotY}if(r.enabled||this._hasPointLabels){for(c=a;c--;)if(d=b[c])w=r.inside?d.plotHigh<d.plotLow:d.plotHigh>d.plotLow,d.below=!w,n?r.align||(r.align=w?"left":"right"):r.verticalAlign||(r.verticalAlign=w?"bottom":"top");this.options.dataLabels=r;e.drawDataLabels&&e.drawDataLabels.apply(this,arguments)}if(h.enabled)for(c=a;c--;)if(d=b[c])d.dataLabels=[d.dataLabelUpper,d.dataLabel].filter(function(d){return!!d});this.options.dataLabels=p},alignDataLabel:function(){u.column.prototype.alignDataLabel.apply(this,arguments)},drawPoints:function(){var b=this.points.length,f;e.drawPoints.apply(this,arguments);for(f=0;f<b;){var c=this.points[f];c.origProps={plotY:c.plotY,plotX:c.plotX,isInside:c.isInside,negative:c.negative,zone:c.zone,y:c.y};c.lowerGraphic=c.graphic;c.graphic=c.upperGraphic;c.plotY=c.plotHigh;l(c.plotHighX)&&(c.plotX=c.plotHighX);c.y=c.high;c.negative=c.high<(this.options.threshold||0);c.zone=this.zones.length&&c.getZone();this.chart.polar||(c.isInside=c.isTopInside=void 0!==c.plotY&&0<=c.plotY&&c.plotY<=this.yAxis.len&&0<=c.plotX&&c.plotX<=this.xAxis.len);f++}e.drawPoints.apply(this,arguments);for(f=0;f<b;)c=this.points[f],c.upperGraphic=c.graphic,c.graphic=c.lowerGraphic,a.extend(c,c.origProps),delete c.origProps,f++},setStackedPoints:a.noop},{setState:function(){var e=this.state,b=this.series,c=b.chart.polar;l(this.plotHigh)||(this.plotHigh=b.yAxis.toPixels(this.high,!0));l(this.plotLow)||(this.plotLow=this.plotY=b.yAxis.toPixels(this.low,!0));b.stateMarkerGraphic&&(b.lowerStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.upperStateMarkerGraphic);this.graphic=this.upperGraphic;this.plotY=this.plotHigh;c&&(this.plotX=this.plotHighX);p.setState.apply(this,arguments);this.state=e;this.plotY=this.plotLow;this.graphic=this.lowerGraphic;c&&(this.plotX=this.plotLowX);b.stateMarkerGraphic&&(b.upperStateMarkerGraphic=b.stateMarkerGraphic,b.stateMarkerGraphic=b.lowerStateMarkerGraphic,b.lowerStateMarkerGraphic=void 0);p.setState.apply(this,arguments)},haloPath:function(){var b=this.series.chart.polar,e=[];this.plotY=this.plotLow;b&&(this.plotX=this.plotLowX);this.isInside&&(e=p.haloPath.apply(this,arguments));this.plotY=this.plotHigh;b&&(this.plotX=this.plotHighX);this.isTopInside&&(e=e.concat(p.haloPath.apply(this,arguments)));return e},destroyElements:function(){["lowerGraphic","upperGraphic"].forEach(function(e){this[e]&&(this[e]=this[e].destroy())},this);this.graphic=null;return p.destroyElements.apply(this,arguments)},isValid:function(){return k(this.low)&&k(this.high)}});""});z(v,"parts-more/AreaSplineRangeSeries.js",[v["parts/Globals.js"]],function(a){var c=a.seriesType;c("areasplinerange","arearange",null,{getPointSpline:a.seriesTypes.spline.prototype.getPointSpline});""});z(v,"parts-more/ColumnRangeSeries.js",[v["parts/Globals.js"]],function(a){var c=a.defaultPlotOptions,l=a.merge,g=a.noop,k=a.pick,b=a.seriesType,f=a.seriesTypes.column.prototype;b("columnrange","arearange",l(c.column,c.arearange,{pointRange:null,marker:null,states:{hover:{halo:!1}}}),{translate:function(){var b=this,e=b.yAxis,c=b.xAxis,a=c.startAngleRad,g,l=b.chart,t=b.xAxis.isRadial,y=Math.max(l.chartWidth,l.chartHeight)+999,d;f.translate.apply(b);b.points.forEach(function(n){var h=n.shapeArgs,r=b.options.minPointLength;n.plotHigh=d=Math.min(Math.max(-y,e.translate(n.high,0,1,0,1)),y);n.plotLow=Math.min(Math.max(-y,n.plotY),y);var w=d;var f=k(n.rectPlotY,n.plotY)-d;Math.abs(f)<r?(r-=f,f+=r,w-=r/2):0>f&&(f*=-1,w-=f);t?(g=n.barX+a,n.shapeType="path",n.shapeArgs={d:b.polarArc(w+f,w,g,g+n.pointWidth)}):(h.height=f,h.y=w,n.tooltipPos=l.inverted?[e.len+e.pos-l.plotLeft-w-f/2,c.len+c.pos-l.plotTop-h.x-h.width/2,f]:[c.left-l.plotLeft+h.x+h.width/2,e.pos-l.plotTop+w+f/2,f])})},directTouch:!0,trackerGroups:["group","dataLabelsGroup"],drawGraph:g,getSymbol:g,crispCol:function(){return f.crispCol.apply(this,arguments)},drawPoints:function(){return f.drawPoints.apply(this,arguments)},drawTracker:function(){return f.drawTracker.apply(this,arguments)},getColumnMetrics:function(){return f.getColumnMetrics.apply(this,arguments)},pointAttribs:function(){return f.pointAttribs.apply(this,arguments)},animate:function(){return f.animate.apply(this,arguments)},polarArc:function(){return f.polarArc.apply(this,arguments)},translate3dPoints:function(){return f.translate3dPoints.apply(this,arguments)},translate3dShapes:function(){return f.translate3dShapes.apply(this,arguments)}},{setState:f.pointClass.prototype.setState});""});z(v,"parts-more/ColumnPyramidSeries.js",[v["parts/Globals.js"]],function(a){var c=a.pick,l=a.seriesType,g=a.seriesTypes.column.prototype;l("columnpyramid","column",{},{translate:function(){var a=this,b=a.chart,f=a.options,l=a.dense=2>a.closestPointRange*a.xAxis.transA;l=a.borderWidth=c(f.borderWidth,l?0:1);var e=a.yAxis,p=f.threshold,q=a.translatedThreshold=e.getThreshold(p),x=c(f.minPointLength,5),m=a.getColumnMetrics(),t=m.width,y=a.barW=Math.max(t,1+2*l),d=a.pointXOffset=m.offset;b.inverted&&(q-=.5);f.pointPadding&&(y=Math.ceil(y));g.translate.apply(a);a.points.forEach(function(n){var h=c(n.yBottom,q),r=999+Math.abs(h),w=Math.min(Math.max(-r,n.plotY),e.len+r);r=n.plotX+d;var A=y/2,g=Math.min(w,h);h=Math.max(w,h)-g;n.barX=r;n.pointWidth=t;n.tooltipPos=b.inverted?[e.len+e.pos-b.plotLeft-w,a.xAxis.len-r-A,h]:[r+A,w+e.pos-b.plotTop,h];w=p+(n.total||n.y);"percent"===f.stacking&&(w=p+(0>n.y)?-100:100);w=e.toPixels(w,!0);var k=b.plotHeight-
w-(b.plotHeight-q);var l=A*(g-w)/k;var m=A*(g+h-w)/k;k=r-l+A;l=r+l+A;var u=r+m+A;m=r-m+A;var B=g-x;var C=g+h;0>n.y&&(B=g,C=g+h+x);b.inverted&&(u=b.plotWidth-g,k=w-(b.plotWidth-q),l=A*(w-u)/k,m=A*(w-(u-h))/k,k=r+A+l,l=k-2*l,u=r-m+A,m=r+m+A,B=g,C=g+h-x,0>n.y&&(C=g+h+x));n.shapeType="path";n.shapeArgs={x:k,y:B,width:l-k,height:h,d:["M",k,B,"L",l,B,u,C,m,C,"Z"]}})}});""});z(v,"parts-more/GaugeSeries.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.isNumber,g=c.pInt,k=a.merge,b=a.pick,f=a.Series;c=a.seriesType;var u=a.TrackerMixin;c("gauge","line",{dataLabels:{borderColor:"#cccccc",borderRadius:3,borderWidth:1,crop:!1,defer:!1,enabled:!0,verticalAlign:"top",y:15,zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1},{angular:!0,directTouch:!0,drawGraph:a.noop,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],translate:function(){var e=this.yAxis,c=this.options,a=e.center;this.generatePoints();this.points.forEach(function(f){var p=k(c.dial,f.dial),t=g(b(p.radius,"80%"))*a[2]/200,u=g(b(p.baseLength,"70%"))*t/100,d=g(b(p.rearLength,"10%"))*t/100,n=p.baseWidth||3,h=p.topWidth||1,r=c.overshoot,w=e.startAngleRad+e.translate(f.y,null,null,null,!0);l(r)?(r=r/180*Math.PI,w=Math.max(e.startAngleRad-r,Math.min(e.endAngleRad+r,w))):!1===c.wrap&&(w=Math.max(e.startAngleRad,Math.min(e.endAngleRad,w)));w=180*w/Math.PI;f.shapeType="path";f.shapeArgs={d:p.path||["M",-d,-n/2,"L",u,-n/2,t,-h/2,t,h/2,u,n/2,-d,n/2,"z"],translateX:a[0],translateY:a[1],rotation:w};f.plotX=a[0];f.plotY=a[1]})},drawPoints:function(){var e=this,c=e.chart,a=e.yAxis.center,f=e.pivot,g=e.options,l=g.pivot,u=c.renderer;e.points.forEach(function(d){var b=d.graphic,h=d.shapeArgs,r=h.d,w=k(g.dial,d.dial);b?(b.animate(h),h.d=r):d.graphic=u[d.shapeType](h).attr({rotation:h.rotation,zIndex:1}).addClass("highcharts-dial").add(e.group);if(!c.styledMode)d.graphic[b?"animate":"attr"]({stroke:w.borderColor||"none","stroke-width":w.borderWidth||0,fill:w.backgroundColor||"#000000"})});f?f.animate({translateX:a[0],translateY:a[1]}):(e.pivot=u.circle(0,0,b(l.radius,5)).attr({zIndex:2}).addClass("highcharts-pivot").translate(a[0],a[1]).add(e.group),c.styledMode||e.pivot.attr({"stroke-width":l.borderWidth||0,stroke:l.borderColor||"#cccccc",fill:l.backgroundColor||"#000000"}))},animate:function(b){var e=this;b||(e.points.forEach(function(b){var c=b.graphic;c&&(c.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),c.animate({rotation:b.shapeArgs.rotation},e.options.animation))}),e.animate=null)},render:function(){this.group=this.plotGroup("group","series",this.visible?"visible":"hidden",this.options.zIndex,this.chart.seriesGroup);f.prototype.render.call(this);this.group.clip(this.chart.clipRect)},setData:function(e,c){f.prototype.setData.call(this,e,!1);this.processData();this.generatePoints();b(c,!0)&&this.chart.redraw()},hasData:function(){return!!this.points.length},drawTracker:u&&u.drawTrackerPoint},{setState:function(b){this.state=b}});""});z(v,"parts-more/BoxPlotSeries.js",[v["parts/Globals.js"]],function(a){var c=a.noop,l=a.pick,g=a.seriesType,k=a.seriesTypes;g("boxplot","column",{threshold:null,tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> <b> {series.name}</b><br/>Maximum: {point.high}<br/>Upper quartile: {point.q3}<br/>Median: {point.median}<br/>Lower quartile: {point.q1}<br/>Minimum: {point.low}<br/>'},whiskerLength:"50%",fillColor:"#ffffff",lineWidth:1,medianWidth:2,whiskerWidth:2},{pointArrayMap:["low","q1","median","q3","high"],toYData:function(b){return[b.low,b.q1,b.median,b.q3,b.high]},pointValKey:"high",pointAttribs:function(){return{}},drawDataLabels:c,translate:function(){var b=this.yAxis,c=this.pointArrayMap;k.column.prototype.translate.apply(this);this.points.forEach(function(a){c.forEach(function(e){null!==a[e]&&(a[e+"Plot"]=b.translate(a[e],0,1,0,1))})})},drawPoints:function(){var b=this,c=b.options,a=b.chart,e=a.renderer,g,k,x,m,t,y,d=0,n,h,r,w,A=!1!==b.doQuartiles,E,D=b.options.whiskerLength;b.points.forEach(function(f){var p=f.graphic,u=p?"animate":"attr",I=f.shapeArgs,q={},F={},G={},H={},v=f.color||b.color;void 0!==f.plotY&&(n=I.width,h=Math.floor(I.x),r=h+n,w=Math.round(n/2),g=Math.floor(A?f.q1Plot:f.lowPlot),k=Math.floor(A?f.q3Plot:f.lowPlot),x=Math.floor(f.highPlot),m=Math.floor(f.lowPlot),p||(f.graphic=p=e.g("point").add(b.group),f.stem=e.path().addClass("highcharts-boxplot-stem").add(p),D&&(f.whiskers=e.path().addClass("highcharts-boxplot-whisker").add(p)),A&&(f.box=e.path(void 0).addClass("highcharts-boxplot-box").add(p)),f.medianShape=e.path(void 0).addClass("highcharts-boxplot-median").add(p)),a.styledMode||(F.stroke=f.stemColor||c.stemColor||v,F["stroke-width"]=l(f.stemWidth,c.stemWidth,c.lineWidth),F.dashstyle=f.stemDashStyle||c.stemDashStyle,f.stem.attr(F),D&&(G.stroke=f.whiskerColor||c.whiskerColor||v,G["stroke-width"]=l(f.whiskerWidth,c.whiskerWidth,c.lineWidth),f.whiskers.attr(G)),A&&(q.fill=f.fillColor||c.fillColor||v,q.stroke=c.lineColor||v,q["stroke-width"]=c.lineWidth||0,f.box.attr(q)),H.stroke=f.medianColor||c.medianColor||v,H["stroke-width"]=l(f.medianWidth,c.medianWidth,c.lineWidth),f.medianShape.attr(H)),y=f.stem.strokeWidth()%2/2,d=h+w+y,f.stem[u]({d:["M",d,k,"L",d,x,"M",d,g,"L",d,m]}),A&&(y=f.box.strokeWidth()%2/2,g=Math.floor(g)+y,k=Math.floor(k)+y,h+=y,r+=y,f.box[u]({d:["M",h,k,"L",h,g,"L",r,g,"L",r,k,"L",h,k,"z"]})),D&&(y=f.whiskers.strokeWidth()%2/2,x+=y,m+=y,E=/%$/.test(D)?w*parseFloat(D)/100:D/2,f.whiskers[u]({d:["M",d-E,x,"L",d+E,x,"M",d-E,m,"L",d+E,m]})),t=Math.round(f.medianPlot),y=f.medianShape.strokeWidth()%2/2,t+=y,f.medianShape[u]({d:["M",h,t,"L",r,t]}))})},setStackedPoints:c});""});z(v,"parts-more/ErrorBarSeries.js",[v["parts/Globals.js"]],function(a){var c=a.noop,l=a.seriesType,g=a.seriesTypes;l("errorbar","boxplot",{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:'<span style="color:{point.color}">\u25cf</span> {series.name}: <b>{point.low}</b> - <b>{point.high}</b><br/>'},whiskerWidth:null},{type:"errorbar",pointArrayMap:["low","high"],toYData:function(c){return[c.low,c.high]},pointValKey:"high",doQuartiles:!1,drawDataLabels:g.arearange?function(){var c=this.pointValKey;g.arearange.prototype.drawDataLabels.call(this);this.data.forEach(function(b){b.y=b[c]})}:c,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||g.column.prototype.getColumnMetrics.call(this)}});""});z(v,"parts-more/WaterfallSeries.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.isNumber,g=c.objectEach,k=a.correctFloat,b=a.pick,f=a.arrayMin,u=a.arrayMax;c=a.addEvent;var e=a.Axis,p=a.Chart,q=a.Point,x=a.Series,m=a.StackItem,t=a.seriesType,y=a.seriesTypes;c(e,"afterInit",function(){this.isXAxis||(this.waterfallStacks={changed:!1})});c(p,"beforeRedraw",function(){for(var d=this.axes,b=this.series,h=b.length;h--;)b[h].options.stacking&&(d.forEach(function(d){d.isXAxis||(d.waterfallStacks.changed=!0)}),h=0)});c(e,"afterRender",function(){var d=this.options.stackLabels;d&&d.enabled&&this.waterfallStacks&&this.renderWaterfallStackTotals()});e.prototype.renderWaterfallStackTotals=function(){var d=this.waterfallStacks,b=this.stackTotalGroup,h=new m(this,this.options.stackLabels,!1,0,void 0);this.dummyStackItem=h;g(d,function(d){g(d,function(d){h.total=d.stackTotal;d.label&&(h.label=d.label);m.prototype.render.call(h,b);d.label=h.label;delete h.label})});h.total=null};t("waterfall","column",{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}},{pointValKey:"y",showLine:!0,generatePoints:function(){var d;y.column.prototype.generatePoints.apply(this);var b=0;for(d=this.points.length;b<d;b++){var h=this.points[b];var r=this.processedYData[b];if(h.isIntermediateSum||h.isSum)h.y=k(r)}},translate:function(){var d=this.options,e=this.yAxis,h,r=b(d.minPointLength,5),c=r/2,f=d.threshold,a=d.stacking,g=e.waterfallStacks[this.stackKey];y.column.prototype.translate.apply(this);var k=h=f;var l=this.points;var p=0;for(d=l.length;p<d;p++){var t=l[p];var u=this.processedYData[p];var m=t.shapeArgs;var q=[0,u];var x=t.y;if(a){if(g){q=g[p];if("overlap"===a){var v=q.stackState[q.stateIndex--];v=0<=x?v:v-x;Object.hasOwnProperty.call(q,"absolutePos")&&delete q.absolutePos;Object.hasOwnProperty.call(q,"absoluteNeg")&&delete q.absoluteNeg}else 0<=x?(v=q.threshold+q.posTotal,q.posTotal-=x):(v=q.threshold+q.negTotal,q.negTotal-=x,v-=x),!q.posTotal&&Object.hasOwnProperty.call(q,"absolutePos")&&(q.posTotal=q.absolutePos,delete q.absolutePos),!q.negTotal&&Object.hasOwnProperty.call(q,"absoluteNeg")&&(q.negTotal=q.absoluteNeg,delete q.absoluteNeg);t.isSum||(q.connectorThreshold=q.threshold+q.stackTotal);e.reversed?(u=0<=x?v-x:v+x,x=v):(u=v,x=v-x);t.below=u<=b(f,0);m.y=e.translate(u,0,1,0,1);m.height=Math.abs(m.y-e.translate(x,0,1,0,1))}if(x=e.dummyStackItem)x.x=p,x.label=g[p].label,x.setOffset(this.pointXOffset||0,this.barW||0,this.stackedYNeg[p],this.stackedYPos[p])}else v=Math.max(k,k+x)+q[0],m.y=e.translate(v,0,1,0,1),t.isSum?(m.y=e.translate(q[1],0,1,0,1),m.height=Math.min(e.translate(q[0],0,1,0,1),e.len)-m.y):t.isIntermediateSum?(0<=x?(u=q[1]+h,x=h):(u=h,x=q[1]+h),e.reversed&&(u^=x,x^=u,u^=x),m.y=e.translate(u,0,1,0,1),m.height=Math.abs(m.y-Math.min(e.translate(x,0,1,0,1),e.len)),h+=q[1]):(m.height=0<u?e.translate(k,0,1,0,1)-m.y:e.translate(k,0,1,0,1)-e.translate(k-u,0,1,0,1),k+=u,t.below=k<b(f,0)),0>m.height&&(m.y+=m.height,m.height*=-1);t.plotY=m.y=Math.round(m.y)-this.borderWidth%2/2;m.height=Math.max(Math.round(m.height),.001);t.yBottom=m.y+m.height;m.height<=r&&!t.isNull?(m.height=r,m.y-=c,t.plotY=m.y,t.minPointLengthOffset=0>t.y?-c:c):(t.isNull&&(m.width=0),t.minPointLengthOffset=0);m=t.plotY+(t.negative?m.height:0);this.chart.inverted?t.tooltipPos[0]=e.len-m:t.tooltipPos[1]=m}},processData:function(d){var b=this.options,h=this.yData,e=b.data,c=h.length,f=b.threshold||0,a,g,t,l,p;for(p=g=a=t=l=0;p<c;p++){var m=h[p];var q=e&&e[p]?e[p]:{};"sum"===m||q.isSum?h[p]=k(g):"intermediateSum"===m||q.isIntermediateSum?(h[p]=k(a),a=0):(g+=m,a+=m);t=Math.min(g,t);l=Math.max(g,l)}x.prototype.processData.call(this,d);b.stacking||(this.dataMin=t+f,this.dataMax=l)},toYData:function(d){return d.isSum?0===d.x?null:"sum":d.isIntermediateSum?0===d.x?null:"intermediateSum":d.y},pointAttribs:function(d,b){var h=this.options.upColor;h&&!d.options.color&&(d.color=0<d.y?h:null);d=y.column.prototype.pointAttribs.call(this,d,b);delete d.dashstyle;return d},getGraphPath:function(){return["M",0,0]},getCrispPath:function(){var d=this.data,b=this.yAxis,h=d.length,e=Math.round(this.graph.strokeWidth())%2/2,c=Math.round(this.borderWidth)%2/2,f=this.xAxis.reversed,a=this.yAxis.reversed,g=this.options.stacking,k=[],t;for(t=1;t<h;t++){var p=d[t].shapeArgs;var l=d[t-1];var m=d[t-1].shapeArgs;var q=b.waterfallStacks[this.stackKey];var u=0<l.y?-m.height:0;if(q){q=q[t-1];g?(q=q.connectorThreshold,u=Math.round(b.translate(q,0,1,0,1)+(a?u:0))-e):u=m.y+l.minPointLengthOffset+c-e;var x=["M",m.x+(f?0:m.width),u,"L",p.x+(f?p.width:0),u]}if(!g&&0>l.y&&!a||0<l.y&&a)x[2]+=m.height,x[5]+=m.height;k=k.concat(x)}return k},drawGraph:function(){x.prototype.drawGraph.call(this);this.graph.attr({d:this.getCrispPath()})},setStackedPoints:function(){function d(d,h,b,e){if(z)for(b;b<z;b++)u.stackState[b]+=e;else u.stackState[0]=d,z=u.stackState.length;u.stackState.push(u.stackState[z-1]+h)}var b=this.options,h=this.yAxis.waterfallStacks,e=b.threshold,c=e||0,f=c,a=this.stackKey,g=this.xData,t=g.length,k,l;this.yAxis.usePercentage=!1;var p=k=l=c;if(this.visible||!this.chart.options.chart.ignoreHiddenSeries){h[a]||(h[a]={});a=h[a];for(var m=0;m<t;m++){var q=g[m];if(!a[q]||h.changed)a[q]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:h.changed&&a[q]?a[q].label:void 0};var u=a[q];var x=this.yData[m];0<=x?u.posTotal+=x:u.negTotal+=x;var y=b.data[m];q=u.absolutePos=u.posTotal;var v=u.absoluteNeg=u.negTotal;u.stackTotal=q+v;var z=u.stackState.length;y&&y.isIntermediateSum?(d(l,k,0,l),l=k,k=e,c^=f,f^=c,c^=f):y&&y.isSum?(d(e,p,z),c=e):(d(c,x,0,p),y&&(p+=x,k+=x));u.stateIndex++;u.threshold=c;c+=u.stackTotal}h.changed=!1}},getExtremes:function(){var d=this.options.stacking;if(d){var b=this.yAxis;b=b.waterfallStacks;var h=this.stackedYNeg=[];var e=this.stackedYPos=[];"overlap"===d?g(b[this.stackKey],function(d){h.push(f(d.stackState));e.push(u(d.stackState))}):g(b[this.stackKey],function(d){h.push(d.negTotal+d.threshold);e.push(d.posTotal+d.threshold)});this.dataMin=f(h);this.dataMax=u(e)}}},{getClassName:function(){var d=q.prototype.getClassName.call(this);this.isSum?d+=" highcharts-sum":this.isIntermediateSum&&(d+=" highcharts-intermediate-sum");return d},isValid:function(){return l(this.y)||this.isSum||this.isIntermediateSum}});""});z(v,"parts-more/PolygonSeries.js",[v["parts/Globals.js"]],function(a){var c=a.Series,l=a.seriesType,g=a.seriesTypes;l("polygon","scatter",{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0},{type:"polygon",getGraphPath:function(){for(var a=c.prototype.getGraphPath.call(this),b=a.length+1;b--;)(b===a.length||"M"===a[b])&&0<b&&a.splice(b,0,"z");return this.areaPath=a},drawGraph:function(){this.options.fillColor=this.color;g.area.prototype.drawGraph.call(this)},drawLegendSymbol:a.LegendSymbolMixin.drawRectangle,drawTracker:c.prototype.drawTracker,setStackedPoints:a.noop});""});z(v,"parts-more/BubbleLegend.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.isNumber,g=c.objectEach;c=a.Series;var k=a.Legend,b=a.Chart,f=a.addEvent,u=a.wrap,e=a.color,p=a.numberFormat,q=a.merge,x=a.noop,m=a.pick,t=a.stableSort,y=a.setOptions,d=a.arrayMin,n=a.arrayMax;y({legend:{bubbleLegend:{borderColor:void 0,borderWidth:2,className:void 0,color:void 0,connectorClassName:void 0,connectorColor:void 0,connectorDistance:60,connectorWidth:1,enabled:!1,labels:{className:void 0,allowOverlap:!1,format:"",formatter:void 0,align:"right",style:{fontSize:10,color:void 0},x:0,y:0},maxSize:60,minSize:10,legendIndex:0,ranges:{value:void 0,borderColor:void 0,color:void 0,connectorColor:void 0},sizeBy:"area",sizeByAbsoluteValue:!1,zIndex:1,zThreshold:0}}});a.BubbleLegend=function(d,b){this.init(d,b)};a.BubbleLegend.prototype={init:function(d,b){this.options=d;this.visible=!0;this.chart=b.chart;this.legend=b},setState:x,addToLegend:function(d){d.splice(this.options.legendIndex,0,this)},drawLegendSymbol:function(d){var b=this.chart,e=this.options,h=m(d.options.itemDistance,20),c=e.ranges;var a=e.connectorDistance;this.fontMetrics=b.renderer.fontMetrics(e.labels.style.fontSize.toString()+"px");c&&c.length&&l(c[0].value)?(t(c,function(d,b){return b.value-d.value}),this.ranges=c,this.setOptions(),this.render(),b=this.getMaxLabelSize(),c=this.ranges[0].radius,d=2*c,a=a-c+b.width,a=0<a?a:0,this.maxLabel=b,this.movementX="left"===e.labels.align?a:0,this.legendItemWidth=d+a+h,this.legendItemHeight=d+this.fontMetrics.h/2):d.options.bubbleLegend.autoRanges=!0},setOptions:function(){var d=this.ranges,b=this.options,c=this.chart.series[b.seriesIndex],a=this.legend.baseline,f={"z-index":b.zIndex,"stroke-width":b.borderWidth},n={"z-index":b.zIndex,"stroke-width":b.connectorWidth},g=this.getLabelStyles(),t=c.options.marker.fillOpacity,l=this.chart.styledMode;d.forEach(function(h,r){l||(f.stroke=m(h.borderColor,b.borderColor,c.color),f.fill=m(h.color,b.color,1!==t?e(c.color).setOpacity(t).get("rgba"):c.color),n.stroke=m(h.connectorColor,b.connectorColor,c.color));d[r].radius=this.getRangeRadius(h.value);d[r]=q(d[r],{center:d[0].radius-d[r].radius+a});l||q(!0,d[r],{bubbleStyle:q(!1,f),connectorStyle:q(!1,n),labelStyle:g})},this)},getLabelStyles:function(){var d=this.options,b={},e="left"===d.labels.align,c=this.legend.options.rtl;g(d.labels.style,function(d,e){"color"!==e&&"fontSize"!==e&&"z-index"!==e&&(b[e]=d)});return q(!1,b,{"font-size":d.labels.style.fontSize,fill:m(d.labels.style.color,"#000000"),"z-index":d.zIndex,align:c||e?"right":"left"})},getRangeRadius:function(d){var b=this.options;return this.chart.series[this.options.seriesIndex].getRadius.call(this,b.ranges[b.ranges.length-1].value,b.ranges[0].value,b.minSize,b.maxSize,d)},render:function(){var d=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]});this.legendSymbol=d.g("bubble-legend");this.legendItem=d.g("bubble-legend-item");this.legendSymbol.translateX=0;this.legendSymbol.translateY=0;this.ranges.forEach(function(d){d.value>=b&&this.renderRange(d)},this);this.legendSymbol.add(this.legendItem);this.legendItem.add(this.legendGroup);this.hideOverlappingLabels()},renderRange:function(d){var b=this.options,e=b.labels,c=this.chart.renderer,h=this.symbols,a=h.labels,f=d.center,n=Math.abs(d.radius),g=b.connectorDistance,t=e.align,l=e.style.fontSize;g=this.legend.options.rtl||"left"===t?-g:g;e=b.connectorWidth;var p=this.ranges[0].radius,k=f-n-b.borderWidth/2+e/2;l=l/2-(this.fontMetrics.h-l)/2;var m=c.styledMode;"center"===t&&(g=0,b.connectorDistance=0,d.labelStyle.align="center");t=k+b.labels.y;var u=p+g+b.labels.x;h.bubbleItems.push(c.circle(p,f+((k%1?1:.5)-(e%2?0:.5)),n).attr(m?{}:d.bubbleStyle).addClass((m?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-symbol "+
(b.className||"")).add(this.legendSymbol));h.connectors.push(c.path(c.crispLine(["M",p,k,"L",p+g,k],b.connectorWidth)).attr(m?{}:d.connectorStyle).addClass((m?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(b.connectorClassName||"")).add(this.legendSymbol));d=c.text(this.formatLabel(d),u,t+l).attr(m?{}:d.labelStyle).addClass("highcharts-bubble-legend-labels "+(b.labels.className||"")).add(this.legendSymbol);a.push(d);d.placed=!0;d.alignAttr={x:u,y:t+l}},getMaxLabelSize:function(){var d,b;this.symbols.labels.forEach(function(e){b=e.getBBox(!0);d=d?b.width>d.width?b:d:b});return d||{}},formatLabel:function(d){var b=this.options,e=b.labels.formatter;return(b=b.labels.format)?a.format(b,d):e?e.call(d):p(d.value,1)},hideOverlappingLabels:function(){var d=this.chart,b=this.symbols;!this.options.labels.allowOverlap&&b&&(d.hideOverlappingLabels(b.labels),b.labels.forEach(function(d,e){d.newOpacity?d.newOpacity!==d.oldOpacity&&b.connectors[e].show():b.connectors[e].hide()}))},getRanges:function(){var b=this.legend.bubbleLegend,e=b.options.ranges,c,a=Number.MAX_VALUE,f=-Number.MAX_VALUE;b.chart.series.forEach(function(b){b.isBubble&&!b.ignoreSeries&&(c=b.zData.filter(l),c.length&&(a=m(b.options.zMin,Math.min(a,Math.max(d(c),!1===b.options.displayNegative?b.options.zThreshold:-Number.MAX_VALUE))),f=m(b.options.zMax,Math.max(f,n(c)))))});var g=a===f?[{value:f}]:[{value:a},{value:(a+f)/2},{value:f,autoRanges:!0}];e.length&&e[0].radius&&g.reverse();g.forEach(function(d,b){e&&e[b]&&(g[b]=q(!1,e[b],d))});return g},predictBubbleSizes:function(){var d=this.chart,b=this.fontMetrics,e=d.legend.options,c="horizontal"===e.layout,a=c?d.legend.lastLineHeight:0,f=d.plotSizeX,n=d.plotSizeY,g=d.series[this.options.seriesIndex];d=Math.ceil(g.minPxSize);var t=Math.ceil(g.maxPxSize);g=g.options.maxSize;var l=Math.min(n,f);if(e.floating||!/%$/.test(g))b=t;else if(g=parseFloat(g),b=(l+a-b.h/2)*g/100/(g/100+1),c&&n-b>=f||!c&&f-b>=n)b=t;return[d,Math.ceil(b)]},updateRanges:function(d,b){var e=this.legend.options.bubbleLegend;e.minSize=d;e.maxSize=b;e.ranges=this.getRanges()},correctSizes:function(){var d=this.legend,b=this.chart.series[this.options.seriesIndex];1<Math.abs(Math.ceil(b.maxPxSize)-this.options.maxSize)&&(this.updateRanges(this.options.minSize,b.maxPxSize),d.render())}};f(a.Legend,"afterGetAllItems",function(d){var b=this.bubbleLegend,e=this.options,c=e.bubbleLegend,f=this.chart.getVisibleBubbleSeriesIndex();b&&b.ranges&&b.ranges.length&&(c.ranges.length&&(c.autoRanges=!!c.ranges[0].autoRanges),this.destroyItem(b));0<=f&&e.enabled&&c.enabled&&(c.seriesIndex=f,this.bubbleLegend=new a.BubbleLegend(c,this),this.bubbleLegend.addToLegend(d.allItems))});b.prototype.getVisibleBubbleSeriesIndex=function(){for(var d=this.series,b=0;b<d.length;){if(d[b]&&d[b].isBubble&&d[b].visible&&d[b].zData.length)return b;b++}return-1};k.prototype.getLinesHeights=function(){var d=this.allItems,b=[],e=d.length,c,a=0;for(c=0;c<e;c++)if(d[c].legendItemHeight&&(d[c].itemHeight=d[c].legendItemHeight),d[c]===d[e-1]||d[c+1]&&d[c]._legendItemPos[1]!==d[c+1]._legendItemPos[1]){b.push({height:0});var f=b[b.length-1];for(a;a<=c;a++)d[a].itemHeight>f.height&&(f.height=d[a].itemHeight);f.step=c}return b};k.prototype.retranslateItems=function(d){var b,e,c,a=this.options.rtl,f=0;this.allItems.forEach(function(h,n){b=h.legendGroup.translateX;e=h._legendItemPos[1];if((c=h.movementX)||a&&h.ranges)c=a?b-h.options.maxSize/2:b+c,h.legendGroup.attr({translateX:c});n>d[f].step&&f++;h.legendGroup.attr({translateY:Math.round(e+
d[f].height/2)});h._legendItemPos[1]=e+d[f].height/2})};f(c,"legendItemClick",function(){var d=this.chart,b=this.visible,e=this.chart.legend;e&&e.bubbleLegend&&(this.visible=!b,this.ignoreSeries=b,d=0<=d.getVisibleBubbleSeriesIndex(),e.bubbleLegend.visible!==d&&(e.update({bubbleLegend:{enabled:d}}),e.bubbleLegend.visible=d),this.visible=b)});u(b.prototype,"drawChartBox",function(d,b,e){var c=this.legend,a=0<=this.getVisibleBubbleSeriesIndex();if(c&&c.options.enabled&&c.bubbleLegend&&c.options.bubbleLegend.autoRanges&&a){var f=c.bubbleLegend.options;a=c.bubbleLegend.predictBubbleSizes();c.bubbleLegend.updateRanges(a[0],a[1]);f.placed||(c.group.placed=!1,c.allItems.forEach(function(d){d.legendGroup.translateY=null}));c.render();this.getMargins();this.axes.forEach(function(d){d.visible&&d.render();f.placed||(d.setScale(),d.updateNames(),g(d.ticks,function(d){d.isNew=!0;d.isNewLabel=!0}))});f.placed=!0;this.getMargins();d.call(this,b,e);c.bubbleLegend.correctSizes();c.retranslateItems(c.getLinesHeights())}else d.call(this,b,e),c&&c.options.enabled&&c.bubbleLegend&&(c.render(),c.retranslateItems(c.getLinesHeights()))})});z(v,"parts-more/BubbleSeries.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.isNumber,g=c.pInt,k=a.arrayMax,b=a.arrayMin;c=a.Axis;var f=a.color,u=a.noop,e=a.pick,p=a.Point,q=a.Series,x=a.seriesType,m=a.seriesTypes;x("bubble","scatter",{dataLabels:{formatter:function(){return this.point.z},inside:!0,verticalAlign:"middle"},animationLimit:250,marker:{lineColor:null,lineWidth:1,fillOpacity:.5,radius:null,states:{hover:{radiusPlus:0}},symbol:"circle"},minSize:8,maxSize:"20%",softThreshold:!1,states:{hover:{halo:{size:5}}},tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},turboThreshold:0,zThreshold:0,zoneAxis:"z"},{pointArrayMap:["y","z"],parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",bubblePadding:!0,zoneAxis:"z",directTouch:!0,isBubble:!0,pointAttribs:function(b,e){var d=this.options.marker.fillOpacity;b=q.prototype.pointAttribs.call(this,b,e);1!==d&&(b.fill=f(b.fill).setOpacity(d).get("rgba"));return b},getRadii:function(b,e,d){var c=this.zData,a=this.yData,f=d.minPxSize,g=d.maxPxSize,l=[];var t=0;for(d=c.length;t<d;t++){var p=c[t];l.push(this.getRadius(b,e,f,g,p,a[t]))}this.radii=l},getRadius:function(b,e,d,c,a,f){var h=this.options,n="width"!==h.sizeBy,g=h.zThreshold,r=e-b,p=.5;if(null===f||null===a)return null;if(l(a)){h.sizeByAbsoluteValue&&(a=Math.abs(a-g),r=Math.max(e-g,Math.abs(b-g)),b=0);if(a<b)return d/2-1;0<r&&(p=(a-b)/r)}n&&0<=p&&(p=Math.sqrt(p));return Math.ceil(d+p*(c-d))/2},animate:function(b){!b&&this.points.length<this.options.animationLimit&&(this.points.forEach(function(b){var d=b.graphic;if(d&&d.width){var e={x:d.x,y:d.y,width:d.width,height:d.height};d.attr({x:b.plotX,y:b.plotY,width:1,height:1});d.animate(e,this.options.animation)}},this),this.animate=null)},hasData:function(){return!!this.processedXData.length},translate:function(){var b,e=this.data,d=this.radii;m.scatter.prototype.translate.call(this);for(b=e.length;b--;){var c=e[b];var f=d?d[b]:0;l(f)&&f>=this.minPxSize/2?(c.marker=a.extend(c.marker,{radius:f,width:2*f,height:2*f}),c.dlBox={x:c.plotX-f,y:c.plotY-f,width:2*f,height:2*f}):c.shapeArgs=c.plotY=c.dlBox=void 0}},alignDataLabel:m.column.prototype.alignDataLabel,buildKDTree:u,applyZones:u},{haloPath:function(b){return p.prototype.haloPath.call(this,0===b?0:(this.marker?this.marker.radius||0:0)+b)},ttBelow:!1});c.prototype.beforePadding=function(){var c=this,a=this.len,d=this.chart,f=0,h=a,r=this.isXAxis,p=r?"xData":"yData",m=this.min,u={},q=Math.min(d.plotWidth,d.plotHeight),x=Number.MAX_VALUE,v=-Number.MAX_VALUE,z=this.max-m,B=a/z,C=[];this.series.forEach(function(a){var f=a.options;!a.bubblePadding||!a.visible&&d.options.chart.ignoreHiddenSeries||(c.allowZoomOutside=!0,C.push(a),r&&(["minSize","maxSize"].forEach(function(d){var b=f[d],e=/%$/.test(b);b=g(b);u[d]=e?q*b/100:b}),a.minPxSize=u.minSize,a.maxPxSize=Math.max(u.maxSize,u.minSize),a=a.zData.filter(l),a.length&&(x=e(f.zMin,Math.min(x,Math.max(b(a),!1===f.displayNegative?f.zThreshold:-Number.MAX_VALUE))),v=e(f.zMax,Math.max(v,k(a))))))});C.forEach(function(d){var b=d[p],e=b.length;r&&d.getRadii(x,v,d);if(0<z)for(;e--;)if(l(b[e])&&c.dataMin<=b[e]&&b[e]<=c.dataMax){var a=d.radii?d.radii[e]:0;f=Math.min((b[e]-m)*B-a,f);h=Math.max((b[e]-m)*B+a,h)}});C.length&&0<z&&!this.isLog&&(h-=a,B*=(a+Math.max(0,f)-Math.min(h,a))/a,[["min","userMin",f],["max","userMax",h]].forEach(function(d){void 0===e(c.options[d[0]],c[d[1]])&&(c[d[0]]+=d[2]/B)}))};""});z(v,"modules/networkgraph/integrations.js",[v["parts/Globals.js"]],function(a){a.networkgraphIntegrations={verlet:{attractiveForceFunction:function(c,a){return(a-c)/c},repulsiveForceFunction:function(c,a){return(a-c)/c*(a>c?1:0)},barycenter:function(){var c=this.options.gravitationalConstant,a=this.barycenter.xFactor,g=this.barycenter.yFactor;a=(a-(this.box.left+this.box.width)/2)*c;g=(g-(this.box.top+this.box.height)/2)*c;this.nodes.forEach(function(c){c.fixedPosition||(c.plotX-=a/c.mass/c.degree,c.plotY-=g/c.mass/c.degree)})},repulsive:function(c,a,g){a=a*this.diffTemperature/c.mass/c.degree;c.fixedPosition||(c.plotX+=g.x*a,c.plotY+=g.y*a)},attractive:function(c,a,g){var l=c.getMass(),b=-g.x*a*this.diffTemperature;a=-g.y*a*this.diffTemperature;c.fromNode.fixedPosition||(c.fromNode.plotX-=b*l.fromNode/c.fromNode.degree,c.fromNode.plotY-=a*l.fromNode/c.fromNode.degree);c.toNode.fixedPosition||(c.toNode.plotX+=b*l.toNode/c.toNode.degree,c.toNode.plotY+=a*l.toNode/c.toNode.degree)},integrate:function(c,a){var g=-c.options.friction,k=c.options.maxSpeed,b=(a.plotX+a.dispX-a.prevX)*g;g*=a.plotY+a.dispY-a.prevY;var f=Math.abs,u=f(b)/(b||1);f=f(g)/(g||1);b=u*Math.min(k,Math.abs(b));g=f*Math.min(k,Math.abs(g));a.prevX=a.plotX+a.dispX;a.prevY=a.plotY+a.dispY;a.plotX+=b;a.plotY+=g;a.temperature=c.vectorLength({x:b,y:g})},getK:function(c){return Math.pow(c.box.width*c.box.height/c.nodes.length,.5)}},euler:{attractiveForceFunction:function(c,a){return c*c/a},repulsiveForceFunction:function(c,a){return a*a/c},barycenter:function(){var c=this.options.gravitationalConstant,a=this.barycenter.xFactor,g=this.barycenter.yFactor;this.nodes.forEach(function(k){if(!k.fixedPosition){var b=k.getDegree();b*=1+b/2;k.dispX+=(a-k.plotX)*c*b/k.degree;k.dispY+=(g-k.plotY)*c*b/k.degree}})},repulsive:function(c,a,g,k){c.dispX+=g.x/k*a/c.degree;c.dispY+=g.y/k*a/c.degree},attractive:function(c,a,g,k){var b=c.getMass(),f=g.x/k*a;a*=g.y/k;c.fromNode.fixedPosition||(c.fromNode.dispX-=f*b.fromNode/c.fromNode.degree,c.fromNode.dispY-=a*b.fromNode/c.fromNode.degree);c.toNode.fixedPosition||(c.toNode.dispX+=f*b.toNode/c.toNode.degree,c.toNode.dispY+=a*b.toNode/c.toNode.degree)},integrate:function(c,a){a.dispX+=a.dispX*c.options.friction;a.dispY+=a.dispY*c.options.friction;var g=a.temperature=c.vectorLength({x:a.dispX,y:a.dispY});0!==g&&(a.plotX+=a.dispX/g*Math.min(Math.abs(a.dispX),c.temperature),a.plotY+=a.dispY/g*Math.min(Math.abs(a.dispY),c.temperature))},getK:function(a){return Math.pow(a.box.width*a.box.height/a.nodes.length,.3)}}}});z(v,"modules/networkgraph/QuadTree.js",[v["parts/Globals.js"]],function(a){var c=a.QuadTreeNode=function(a){this.box=a;this.boxSize=Math.min(a.width,a.height);this.nodes=[];this.body=this.isInternal=!1;this.isEmpty=!0};a.extend(c.prototype,{insert:function(a,k){this.isInternal?this.nodes[this.getBoxPosition(a)].insert(a,k-1):(this.isEmpty=!1,this.body?k?(this.isInternal=!0,this.divideBox(),!0!==this.body&&(this.nodes[this.getBoxPosition(this.body)].insert(this.body,k-1),this.body=!0),this.nodes[this.getBoxPosition(a)].insert(a,k-1)):(k=new c({top:a.plotX,left:a.plotY,width:.1,height:.1}),k.body=a,k.isInternal=!1,this.nodes.push(k)):(this.isInternal=!1,this.body=a))},updateMassAndCenter:function(){var a=0,c=0,b=0;this.isInternal?(this.nodes.forEach(function(f){f.isEmpty||(a+=f.mass,c+=f.plotX*f.mass,b+=f.plotY*f.mass)}),c/=a,b/=a):this.body&&(a=this.body.mass,c=this.body.plotX,b=this.body.plotY);this.mass=a;this.plotX=c;this.plotY=b},divideBox:function(){var a=this.box.width/2,k=this.box.height/2;this.nodes[0]=new c({left:this.box.left,top:this.box.top,width:a,height:k});this.nodes[1]=new c({left:this.box.left+a,top:this.box.top,width:a,height:k});this.nodes[2]=new c({left:this.box.left+a,top:this.box.top+k,width:a,height:k});this.nodes[3]=new c({left:this.box.left,top:this.box.top+k,width:a,height:k})},getBoxPosition:function(a){var c=a.plotY<this.box.top+this.box.height/2;return a.plotX<this.box.left+this.box.width/2?c?0:3:c?1:2}});var l=a.QuadTree=function(a,k,b,f){this.box={left:a,top:k,width:b,height:f};this.maxDepth=25;this.root=new c(this.box,"0");this.root.isInternal=!0;this.root.isRoot=!0;this.root.divideBox()};a.extend(l.prototype,{insertNodes:function(a){a.forEach(function(a){this.root.insert(a,this.maxDepth)},this)},visitNodeRecursive:function(a,c,b){var f;a||(a=this.root);a===this.root&&c&&(f=c(a));!1!==f&&(a.nodes.forEach(function(a){if(a.isInternal){c&&(f=c(a));if(!1===f)return;this.visitNodeRecursive(a,c,b)}else a.body&&c&&c(a.body);b&&b(a)},this),a===this.root&&b&&b(a))},calculateMassAndCenter:function(){this.visitNodeRecursive(null,null,function(a){a.updateMassAndCenter()})}})});z(v,"modules/networkgraph/layouts.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.defined,g=a.pick;c=a.addEvent;var k=a.Chart;a.layouts={"reingold-fruchterman":function(){}};a.extend(a.layouts["reingold-fruchterman"].prototype,{init:function(b){this.options=b;this.nodes=[];this.links=[];this.series=[];this.box={x:0,y:0,width:0,height:0};this.setInitialRendering(!0);this.integration=a.networkgraphIntegrations[b.integration];this.attractiveForce=g(b.attractiveForce,this.integration.attractiveForceFunction);this.repulsiveForce=g(b.repulsiveForce,this.integration.repulsiveForceFunction);this.approximation=b.approximation},start:function(){var b=this.series,a=this.options;this.currentStep=0;this.forces=b[0]&&b[0].forces||[];this.initialRendering&&(this.initPositions(),b.forEach(function(b){b.render()}));this.setK();this.resetSimulation(a);a.enableSimulation&&this.step()},step:function(){var b=this,c=this.series,g=this.options;b.currentStep++;"barnes-hut"===b.approximation&&(b.createQuadTree(),b.quadTree.calculateMassAndCenter());b.forces.forEach(function(a){b[a+"Forces"](b.temperature)});b.applyLimits(b.temperature);b.temperature=b.coolDown(b.startTemperature,b.diffTemperature,b.currentStep);b.prevSystemTemperature=b.systemTemperature;b.systemTemperature=b.getSystemTemperature();g.enableSimulation&&(c.forEach(function(b){b.chart&&b.render()}),b.maxIterations--&&isFinite(b.temperature)&&!b.isStable()?(b.simulation&&a.win.cancelAnimationFrame(b.simulation),b.simulation=a.win.requestAnimationFrame(function(){b.step()})):b.simulation=!1)},stop:function(){this.simulation&&a.win.cancelAnimationFrame(this.simulation)},setArea:function(b,a,c,e){this.box={left:b,top:a,width:c,height:e}},setK:function(){this.k=this.options.linkLength||this.integration.getK(this)},addElementsToCollection:function(b,a){b.forEach(function(b){-1===a.indexOf(b)&&a.push(b)})},removeElementFromCollection:function(b,a){b=a.indexOf(b);-1!==b&&a.splice(b,1)},clear:function(){this.nodes.length=0;this.links.length=0;this.series.length=0;this.resetSimulation()},resetSimulation:function(){this.forcedStop=!1;this.systemTemperature=0;this.setMaxIterations();this.setTemperature();this.setDiffTemperature()},setMaxIterations:function(b){this.maxIterations=g(b,this.options.maxIterations)},setTemperature:function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},setDiffTemperature:function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},setInitialRendering:function(b){this.initialRendering=b},createQuadTree:function(){this.quadTree=new a.QuadTree(this.box.left,this.box.top,this.box.width,this.box.height);this.quadTree.insertNodes(this.nodes)},initPositions:function(){var b=this.options.initialPositions;a.isFunction(b)?(b.call(this),this.nodes.forEach(function(b){l(b.prevX)||(b.prevX=b.plotX);l(b.prevY)||(b.prevY=b.plotY);b.dispX=0;b.dispY=0})):"circle"===b?this.setCircularPositions():this.setRandomPositions()},setCircularPositions:function(){function b(a){a.linksFrom.forEach(function(a){k[a.toNode.id]||(k[a.toNode.id]=!0,q.push(a.toNode),b(a.toNode))})}var a=this.box,c=this.nodes,e=2*Math.PI/(c.length+1),p=c.filter(function(b){return 0===b.linksTo.length}),q=[],k={},m=this.options.initialPositionRadius;p.forEach(function(a){q.push(a);b(a)});q.length?c.forEach(function(b){-1===q.indexOf(b)&&q.push(b)}):q=c;q.forEach(function(b,c){b.plotX=b.prevX=g(b.plotX,a.width/2+m*Math.cos(c*e));b.plotY=b.prevY=g(b.plotY,a.height/2+m*Math.sin(c*e));b.dispX=0;b.dispY=0})},setRandomPositions:function(){function b(b){b=b*b/Math.PI;return b-=Math.floor(b)}var a=this.box,c=this.nodes,e=c.length+1;c.forEach(function(c,f){c.plotX=c.prevX=g(c.plotX,a.width*b(f));c.plotY=c.prevY=g(c.plotY,a.height*b(e+f));c.dispX=0;c.dispY=0})},force:function(b){this.integration[b].apply(this,Array.prototype.slice.call(arguments,1))},barycenterForces:function(){this.getBarycenter();this.force("barycenter")},getBarycenter:function(){var b=0,a=0,c=0;this.nodes.forEach(function(e){a+=e.plotX*e.mass;c+=e.plotY*e.mass;b+=e.mass});return this.barycenter={x:a,y:c,xFactor:a/b,yFactor:c/b}},barnesHutApproximation:function(b,a){var c=this.getDistXY(b,a),e=this.vectorLength(c);if(b!==a&&0!==e)if(a.isInternal)if(a.boxSize/e<this.options.theta&&0!==e){var f=this.repulsiveForce(e,this.k);this.force("repulsive",b,f*a.mass,c,e);var g=!1}else g=!0;else f=this.repulsiveForce(e,this.k),this.force("repulsive",b,f*a.mass,c,e);return g},repulsiveForces:function(){var b=this;"barnes-hut"===b.approximation?b.nodes.forEach(function(a){b.quadTree.visitNodeRecursive(null,function(c){return b.barnesHutApproximation(a,c)})}):b.nodes.forEach(function(a){b.nodes.forEach(function(c){if(a!==c&&!a.fixedPosition){var e=b.getDistXY(a,c);var f=b.vectorLength(e);if(0!==f){var g=b.repulsiveForce(f,b.k);b.force("repulsive",a,g*c.mass,e,f)}}})})},attractiveForces:function(){var b=this,a,c,e;b.links.forEach(function(f){f.fromNode&&f.toNode&&(a=b.getDistXY(f.fromNode,f.toNode),c=b.vectorLength(a),0!==c&&(e=b.attractiveForce(c,b.k),b.force("attractive",f,e,a,c)))})},applyLimits:function(){var b=this;b.nodes.forEach(function(a){a.fixedPosition||(b.integration.integrate(b,a),b.applyLimitBox(a,b.box),a.dispX=0,a.dispY=0)})},applyLimitBox:function(b,a){var c=b.radius;b.plotX=Math.max(Math.min(b.plotX,a.width-c),a.left+c);b.plotY=Math.max(Math.min(b.plotY,a.height-c),a.top+c)},coolDown:function(b,a,c){return b-a*c},isStable:function(){return.00001>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature},getSystemTemperature:function(){return this.nodes.reduce(function(b,a){return b+a.temperature},0)},vectorLength:function(b){return Math.sqrt(b.x*b.x+b.y*b.y)},getDistR:function(b,a){b=this.getDistXY(b,a);return this.vectorLength(b)},getDistXY:function(b,a){var c=b.plotX-a.plotX;b=b.plotY-a.plotY;return{x:c,y:b,absX:Math.abs(c),absY:Math.abs(b)}}});c(k,"predraw",function(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(a){a.stop()})});c(k,"render",function(){function b(a){a.maxIterations--&&isFinite(a.temperature)&&!a.isStable()&&!a.options.enableSimulation&&(a.beforeStep&&a.beforeStep(),a.step(),g=!1,c=!0)}var c=!1;if(this.graphLayoutsLookup){a.setAnimation(!1,this);for(this.graphLayoutsLookup.forEach(function(a){a.start()});!g;){var g=!0;this.graphLayoutsLookup.forEach(b)}c&&this.series.forEach(function(a){a&&a.layout&&a.render()})}})});z(v,"modules/networkgraph/draggable-nodes.js",[v["parts/Globals.js"]],function(a){var c=a.Chart,l=a.addEvent;a.dragNodesMixin={onMouseDown:function(a,c){c=this.chart.pointer.normalize(c);a.fixedPosition={chartX:c.chartX,chartY:c.chartY,plotX:a.plotX,plotY:a.plotY};a.inDragMode=!0},onMouseMove:function(a,c){if(a.fixedPosition&&a.inDragMode){var b=this.chart,f=b.pointer.normalize(c);c=a.fixedPosition.chartX-f.chartX;f=a.fixedPosition.chartY-f.chartY;if(5<Math.abs(c)||5<Math.abs(f))c=a.fixedPosition.plotX-c,f=a.fixedPosition.plotY-f,b.isInsidePlot(c,f)&&(a.plotX=c,a.plotY=f,a.hasDragged=!0,this.redrawHalo(a),this.layout.simulation?this.layout.resetSimulation():(this.layout.setInitialRendering(!1),this.layout.enableSimulation?this.layout.start():this.layout.setMaxIterations(1),this.chart.redraw(),this.layout.setInitialRendering(!0)))}},onMouseUp:function(a,c){a.fixedPosition&&a.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw(),a.inDragMode=a.hasDragged=!1,this.options.fixedDraggable||delete a.fixedPosition)},redrawHalo:function(a){a&&this.halo&&this.halo.attr({d:a.haloPath(this.options.states.hover.halo.size)})}};l(c,"load",function(){var a=this,c,b,f;a.container&&(c=l(a.container,"mousedown",function(c){var e=a.hoverPoint;e&&e.series&&e.series.hasDraggableNodes&&e.series.options.draggable&&(e.series.onMouseDown(e,c),b=l(a.container,"mousemove",function(a){return e&&e.series&&e.series.onMouseMove(e,a)}),f=l(a.container.ownerDocument,"mouseup",function(a){b();f();return e&&e.series&&e.series.onMouseUp(e,a)}))}));l(a,"destroy",function(){c()})})});z(v,"parts-more/PackedBubbleSeries.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.defined,g=c.isArray,k=c.isNumber;c=a.seriesType;var b=a.Series,f=a.Point,u=a.pick,e=a.addEvent,p=a.fireEvent,q=a.Chart,x=a.Color,m=a.layouts["reingold-fruchterman"],t=a.seriesTypes.bubble.prototype.pointClass,v=a.dragNodesMixin;a.networkgraphIntegrations.packedbubble={repulsiveForceFunction:function(d,a,b,c){return Math.min(d,(b.marker.radius+c.marker.radius)/2)},barycenter:function(){var d=this,a=d.options.gravitationalConstant,b=d.box,c=d.nodes,e,f;c.forEach(function(h){d.options.splitSeries&&!h.isParentNode?(e=h.series.parentNode.plotX,f=h.series.parentNode.plotY):(e=b.width/2,f=b.height/2);h.fixedPosition||(h.plotX-=(h.plotX-e)*a/(h.mass*Math.sqrt(c.length)),h.plotY-=(h.plotY-f)*a/(h.mass*Math.sqrt(c.length)))})},repulsive:function(d,a,b,c){var e=a*this.diffTemperature/d.mass/d.degree;a=b.x*e;b=b.y*e;d.fixedPosition||(d.plotX+=a,d.plotY+=b);c.fixedPosition||(c.plotX-=a,c.plotY-=b)},integrate:a.networkgraphIntegrations.verlet.integrate,getK:a.noop};a.layouts.packedbubble=a.extendClass(m,{beforeStep:function(){this.options.marker&&this.series.forEach(function(d){d&&d.calculateParentRadius()})},setCircularPositions:function(){var d=this,a=d.box,b=d.nodes,c=2*Math.PI/(b.length+1),e,f,g=d.options.initialPositionRadius;b.forEach(function(b,h){d.options.splitSeries&&!b.isParentNode?(e=b.series.parentNode.plotX,f=b.series.parentNode.plotY):(e=a.width/2,f=a.height/2);b.plotX=b.prevX=u(b.plotX,e+g*Math.cos(b.index||h*c));b.plotY=b.prevY=u(b.plotY,f+g*Math.sin(b.index||h*c));b.dispX=0;b.dispY=0})},repulsiveForces:function(){var d=this,a,b,c,e=d.options.bubblePadding;d.nodes.forEach(function(f){f.degree=f.mass;f.neighbours=0;d.nodes.forEach(function(h){a=0;f===h||f.fixedPosition||!d.options.seriesInteraction&&f.series!==h.series||(c=d.getDistXY(f,h),b=d.vectorLength(c)-(f.marker.radius+h.marker.radius+e),0>b&&(f.degree+=.01,f.neighbours++,a=d.repulsiveForce(-b/Math.sqrt(f.neighbours),d.k,f,h)),d.force("repulsive",f,a*h.mass,c,h,b))})})},applyLimitBox:function(a){if(this.options.splitSeries&&!a.isParentNode&&this.options.parentNodeLimit){var d=this.getDistXY(a,a.series.parentNode);var b=a.series.parentNodeRadius-a.marker.radius-this.vectorLength(d);0>b&&b>-2*a.marker.radius&&(a.plotX-=.01*d.x,a.plotY-=.01*d.y)}m.prototype.applyLimitBox.apply(this,arguments)},isStable:function(){return.00001>Math.abs(this.systemTemperature-this.prevSystemTemperature)||0>=this.temperature||0<this.systemTemperature&&.02>this.systemTemperature/this.nodes.length&&this.enableSimulation}});c("packedbubble","bubble",{minSize:"10%",maxSize:"50%",sizeBy:"area",zoneAxis:"y",tooltip:{pointFormat:"Value: {point.value}"},draggable:!0,useSimulation:!0,dataLabels:{formatter:function(){return this.point.value},parentNodeFormatter:function(){return this.name},parentNodeTextPath:{enabled:!0},padding:0},layoutAlgorithm:{initialPositions:"circle",initialPositionRadius:20,bubblePadding:5,parentNodeLimit:!1,seriesInteraction:!0,dragBetweenSeries:!1,parentNodeOptions:{maxIterations:400,gravitationalConstant:.03,maxSpeed:50,initialPositionRadius:100,seriesInteraction:!0,marker:{fillColor:null,fillOpacity:1,lineWidth:1,lineColor:null,symbol:"circle"}},enableSimulation:!0,type:"packedbubble",integration:"packedbubble",maxIterations:1E3,splitSeries:!1,maxSpeed:5,gravitationalConstant:.01,friction:-.981}},{hasDraggableNodes:!0,forces:["barycenter","repulsive"],pointArrayMap:["value"],pointValKey:"value",isCartesian:!1,axisTypes:[],noSharedTooltip:!0,accumulateAllPoints:function(a){var d=a.chart,b=[],c,e;for(c=0;c<d.series.length;c++)if(a=d.series[c],a.visible||!d.options.chart.ignoreHiddenSeries)for(e=0;e<a.yData.length;e++)b.push([null,null,a.yData[e],a.index,e,{id:e,marker:{radius:0}}]);return b},init:function(){b.prototype.init.apply(this,arguments);e(this,"updatedData",function(){this.chart.series.forEach(function(a){a.type===this.type&&(a.isDirty=!0)},this)});return this},render:function(){var a=[];b.prototype.render.apply(this,arguments);this.options.dataLabels.allowOverlap||(this.data.forEach(function(d){g(d.dataLabels)&&d.dataLabels.forEach(function(d){a.push(d)})}),this.chart.hideOverlappingLabels(a))},setVisible:function(){var a=this;b.prototype.setVisible.apply(a,arguments);a.parentNodeLayout&&a.graph?a.visible?(a.graph.show(),a.parentNode.dataLabel&&a.parentNode.dataLabel.show()):(a.graph.hide(),a.parentNodeLayout.removeElementFromCollection(a.parentNode,a.parentNodeLayout.nodes),a.parentNode.dataLabel&&a.parentNode.dataLabel.hide()):a.layout&&(a.visible?a.layout.addElementsToCollection(a.points,a.layout.nodes):a.points.forEach(function(b){a.layout.removeElementFromCollection(b,a.layout.nodes)}))},drawDataLabels:function(){var a=this.options.dataLabels.textPath,c=this.points;b.prototype.drawDataLabels.apply(this,arguments);this.parentNode&&(this.parentNode.formatPrefix="parentNode",this.points=[this.parentNode],this.options.dataLabels.textPath=this.options.dataLabels.parentNodeTextPath,b.prototype.drawDataLabels.apply(this,arguments),this.points=c,this.options.dataLabels.textPath=a)},seriesBox:function(){var a=this.chart,b=Math.max,c=Math.min,e,f=[a.plotLeft,a.plotLeft+
a.plotWidth,a.plotTop,a.plotTop+a.plotHeight];this.data.forEach(function(a){l(a.plotX)&&l(a.plotY)&&a.marker.radius&&(e=a.marker.radius,f[0]=c(f[0],a.plotX-e),f[1]=b(f[1],a.plotX+e),f[2]=c(f[2],a.plotY-e),f[3]=b(f[3],a.plotY+e))});return k(f.width/f.height)?f:null},calculateParentRadius:function(){var a=this.seriesBox();this.parentNodeRadius=Math.min(Math.max(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20),a?Math.max(Math.sqrt(Math.pow(a.width,2)+Math.pow(a.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20);this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},drawGraph:function(){if(this.layout&&this.layout.options.splitSeries){var b=this.chart,c=this.layout.options.parentNodeOptions.marker;c={fill:c.fillColor||x(this.color).brighten(.4).get(),opacity:c.fillOpacity,stroke:c.lineColor||this.color,"stroke-width":c.lineWidth};var e=this.visible?"inherit":"hidden";this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",e,.1,b.seriesGroup),this.group.attr({zIndex:2}));this.calculateParentRadius();e=a.merge({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},c);this.parentNode.graphic||(this.graph=this.parentNode.graphic=b.renderer.symbol(c.symbol).add(this.parentNodesGroup));this.parentNode.graphic.attr(e)}},createParentNodes:function(){var a=this,b=a.chart,c=a.parentNodeLayout,e,f=a.parentNode;a.parentNodeMass=0;a.points.forEach(function(b){a.parentNodeMass+=Math.PI*Math.pow(b.marker.radius,2)});a.calculateParentRadius();c.nodes.forEach(function(b){b.seriesIndex===a.index&&(e=!0)});c.setArea(0,0,b.plotWidth,b.plotHeight);e||(f||(f=(new t).init(this,{mass:a.parentNodeRadius/2,marker:{radius:a.parentNodeRadius},dataLabels:{inside:!1},dataLabelOnNull:!0,degree:a.parentNodeRadius,isParentNode:!0,seriesIndex:a.index})),a.parentNode&&(f.plotX=a.parentNode.plotX,f.plotY=a.parentNode.plotY),a.parentNode=f,c.addElementsToCollection([a],c.series),c.addElementsToCollection([f],c.nodes))},addSeriesLayout:function(){var b=this.options.layoutAlgorithm,c=this.chart.graphLayoutsStorage,e=this.chart.graphLayoutsLookup,f=a.merge(b,b.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation});var g=c[b.type+"-series"];g||(c[b.type+"-series"]=g=new a.layouts[b.type],g.init(f),e.splice(g.index,0,g));this.parentNodeLayout=g;this.createParentNodes()},addLayout:function(){var b=this.options.layoutAlgorithm,c=this.chart.graphLayoutsStorage,e=this.chart.graphLayoutsLookup,f=this.chart.options.chart;c||(this.chart.graphLayoutsStorage=c={},this.chart.graphLayoutsLookup=e=[]);var g=c[b.type];g||(b.enableSimulation=l(f.forExport)?!f.forExport:b.enableSimulation,c[b.type]=g=new a.layouts[b.type],g.init(b),e.splice(g.index,0,g));this.layout=g;this.points.forEach(function(a){a.mass=2;a.degree=1;a.collisionNmb=1});g.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight);g.addElementsToCollection([this],g.series);g.addElementsToCollection(this.points,g.nodes)},deferLayout:function(){var a=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),a.splitSeries&&this.addSeriesLayout())},translate:function(){var b=this.chart,c=this.data,e=this.index,f,g=this.options.useSimulation;this.processedXData=this.xData;this.generatePoints();l(b.allDataPoints)||(b.allDataPoints=this.accumulateAllPoints(this),this.getPointRadius());if(g)var m=b.allDataPoints;else m=this.placeBubbles(b.allDataPoints),this.options.draggable=!1;for(f=0;f<m.length;f++)if(m[f][3]===e){var t=c[m[f][4]];var q=m[f][2];g||(t.plotX=m[f][0]-b.plotLeft+b.diffX,t.plotY=m[f][1]-b.plotTop+b.diffY);t.marker=a.extend(t.marker,{radius:q,width:2*q,height:2*q});t.radius=q}g&&this.deferLayout();p(this,"afterTranslate")},checkOverlap:function(a,b){var c=a[0]-b[0],d=a[1]-b[1];return-.001>Math.sqrt(c*c+d*d)-Math.abs(a[2]+b[2])},positionBubble:function(a,b,c){var d=Math.sqrt,e=Math.asin,f=Math.acos,h=Math.pow,g=Math.abs;d=d(h(a[0]-b[0],2)+h(a[1]-b[1],2));f=f((h(d,2)+h(c[2]+b[2],2)-h(c[2]+a[2],2))/(2*(c[2]+b[2])*d));e=e(g(a[0]-b[0])/d);a=(0>a[1]-b[1]?0:Math.PI)+f+e*(0>(a[0]-b[0])*(a[1]-b[1])?1:-1);return[b[0]+(b[2]+c[2])*Math.sin(a),b[1]-(b[2]+c[2])*Math.cos(a),c[2],c[3],c[4]]},placeBubbles:function(a){var b=this.checkOverlap,c=this.positionBubble,d=[],e=1,f=0,g=0;var m=[];var p;a=a.sort(function(a,b){return b[2]-a[2]});if(a.length){d.push([[0,0,a[0][2],a[0][3],a[0][4]]]);if(1<a.length)for(d.push([[0,0-a[1][2]-a[0][2],a[1][2],a[1][3],a[1][4]]]),p=2;p<a.length;p++)a[p][2]=a[p][2]||1,m=c(d[e][f],d[e-1][g],a[p]),b(m,d[e][0])?(d.push([]),g=0,d[e+1].push(c(d[e][f],d[e][0],a[p])),e++,f=0):1<e&&d[e-1][g+1]&&b(m,d[e-1][g+1])?(g++,d[e].push(c(d[e][f],d[e-1][g],a[p])),f++):(f++,d[e].push(m));this.chart.stages=d;this.chart.rawPositions=[].concat.apply([],d);this.resizeRadius();m=this.chart.rawPositions}return m},resizeRadius:function(){var a=this.chart,b=a.rawPositions,c=Math.min,e=Math.max,f=a.plotLeft,g=a.plotTop,m=a.plotHeight,p=a.plotWidth,t,q,k;var l=t=Number.POSITIVE_INFINITY;var x=q=Number.NEGATIVE_INFINITY;for(k=0;k<b.length;k++){var u=b[k][2];l=c(l,b[k][0]-u);x=e(x,b[k][0]+u);t=c(t,b[k][1]-u);q=e(q,b[k][1]+u)}k=[x-l,q-t];c=c.apply([],[(p-f)/k[0],(m-g)/k[1]]);if(1e-10<Math.abs(c-1)){for(k=0;k<b.length;k++)b[k][2]*=c;this.placeBubbles(b)}else a.diffY=m/2+g-t-(q-t)/2,a.diffX=p/2+f-l-(x-l)/2},calculateZExtremes:function(){var a=this.options.zMin,b=this.options.zMax,c=Infinity,e=-Infinity;if(a&&b)return[a,b];this.chart.series.forEach(function(a){a.yData.forEach(function(a){l(a)&&(a>e&&(e=a),a<c&&(c=a))})});a=u(a,c);b=u(b,e);return[a,b]},getPointRadius:function(){var a=this,b=a.chart,c=a.options,e=c.useSimulation,f=Math.min(b.plotWidth,b.plotHeight),g={},m=[],p=b.allDataPoints,t,q,k,l;["minSize","maxSize"].forEach(function(a){var b=parseInt(c[a],10),d=/%$/.test(c[a]);g[a]=d?f*b/100:b*Math.sqrt(p.length)});b.minRadius=t=g.minSize/Math.sqrt(p.length);b.maxRadius=q=g.maxSize/Math.sqrt(p.length);var x=e?a.calculateZExtremes():[t,q];(p||[]).forEach(function(b,c){k=e?Math.max(Math.min(b[2],x[1]),x[0]):b[2];l=a.getRadius(x[0],x[1],t,q,k);0===l&&(l=null);p[c][2]=l;m.push(l)});a.radii=m},redrawHalo:v.redrawHalo,onMouseDown:v.onMouseDown,onMouseMove:v.onMouseMove,onMouseUp:function(b){if(b.fixedPosition&&!b.removed){var c,d,e=this.layout,f=this.parentNodeLayout;f&&e.options.dragBetweenSeries&&f.nodes.forEach(function(f){b&&b.marker&&f!==b.series.parentNode&&(c=e.getDistXY(b,f),d=e.vectorLength(c)-f.marker.radius-b.marker.radius,0>d&&(f.series.addPoint(a.merge(b.options,{plotX:b.plotX,plotY:b.plotY}),!1),e.removeElementFromCollection(b,e.nodes),b.remove()))});v.onMouseUp.apply(this,arguments)}},destroy:function(){this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(a){a.removeElementFromCollection(this,a.series)},this);this.parentNode&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy()));a.Series.prototype.destroy.apply(this,arguments)},alignDataLabel:a.Series.prototype.alignDataLabel},{destroy:function(){this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes);return f.prototype.destroy.apply(this,arguments)}});e(q,"beforeRedraw",function(){this.allDataPoints&&delete this.allDataPoints});""});z(v,"parts-more/Polar.js",[v["parts/Globals.js"],v["parts/Utilities.js"]],function(a,c){var l=c.splat,g=a.pick,k=a.Series,b=a.seriesTypes;c=a.wrap;var f=k.prototype,u=a.Pointer.prototype;f.searchPointByAngle=function(a){var b=this.chart,c=this.xAxis.pane.center;return this.searchKDTree({clientX:180+-180/Math.PI*Math.atan2(a.chartX-c[0]-b.plotLeft,a.chartY-c[1]-b.plotTop)})};f.getConnectors=function(a,b,c,f){var e=f?1:0;var g=0<=b&&b<=a.length-1?b:0>b?a.length-1+b:0;b=0>g-1?a.length-(1+e):g-1;e=g+1>a.length-1?e:g+1;var p=a[b];e=a[e];var d=p.plotX;p=p.plotY;var k=e.plotX;var h=e.plotY;e=a[g].plotX;g=a[g].plotY;d=(1.5*e+d)/2.5;p=(1.5*g+p)/2.5;k=(1.5*e+k)/2.5;var q=(1.5*g+h)/2.5;h=Math.sqrt(Math.pow(d-e,2)+Math.pow(p-g,2));var l=Math.sqrt(Math.pow(k-e,2)+Math.pow(q-
g,2));d=Math.atan2(p-g,d-e);q=Math.PI/2+(d+Math.atan2(q-g,k-e))/2;Math.abs(d-q)>Math.PI/2&&(q-=Math.PI);d=e+Math.cos(q)*h;p=g+Math.sin(q)*h;k=e+Math.cos(Math.PI+q)*l;q=g+Math.sin(Math.PI+q)*l;e={rightContX:k,rightContY:q,leftContX:d,leftContY:p,plotX:e,plotY:g};c&&(e.prevPointCont=this.getConnectors(a,b,!1,f));return e};f.toXY=function(a){var b=this.chart,c=a.plotX;var e=a.plotY;a.rectPlotX=c;a.rectPlotY=e;e=this.xAxis.postTranslate(a.plotX,this.yAxis.len-e);a.plotX=a.polarPlotX=e.x-b.plotLeft;a.plotY=a.polarPlotY=e.y-b.plotTop;this.kdByAngle?(b=(c/Math.PI*180+this.xAxis.pane.options.startAngle)%360,0>b&&(b+=360),a.clientX=b):a.clientX=a.plotX};b.spline&&(c(b.spline.prototype,"getPointSpline",function(a,b,c,f){this.chart.polar?f?(a=this.getConnectors(b,f,!0,this.connectEnds),a=["C",a.prevPointCont.rightContX,a.prevPointCont.rightContY,a.leftContX,a.leftContY,a.plotX,a.plotY]):a=["M",c.plotX,c.plotY]:a=a.call(this,b,c,f);return a}),b.areasplinerange&&(b.areasplinerange.prototype.getPointSpline=b.spline.prototype.getPointSpline));a.addEvent(k,"afterTranslate",function(){var b=this.chart,c;if(b.polar){(this.kdByAngle=b.tooltip&&b.tooltip.shared)?this.searchPoint=this.searchPointByAngle:this.options.findNearestPointBy="xy";if(!this.preventPostTranslate){var f=this.points;for(c=f.length;c--;)this.toXY(f[c]),!b.hasParallelCoordinates&&!this.yAxis.reversed&&f[c].y<this.yAxis.min&&(f[c].isNull=!0)}this.hasClipCircleSetter||(this.hasClipCircleSetter=!!a.addEvent(this,"afterRender",function(){if(b.polar){var c=this.yAxis.center;this.group.clip(b.renderer.clipCircle(c[0],c[1],c[2]/2));this.setClip=a.noop}}))}},{order:2});c(f,"getGraphPath",function(a,b){var c=this,e;if(this.chart.polar){b=b||this.points;for(e=0;e<b.length;e++)if(!b[e].isNull){var f=e;break}if(!1!==this.options.connectEnds&&void 0!==f){this.connectEnds=!0;b.splice(b.length,0,b[f]);var g=!0}b.forEach(function(a){void 0===a.polarPlotY&&c.toXY(a)})}e=a.apply(this,[].slice.call(arguments,1));g&&b.pop();return e});k=function(a,b){var c=this.chart,e=this.options.animation,f=this.group,g=this.markerGroup,k=this.xAxis.center,d=c.plotLeft,p=c.plotTop;c.polar?c.renderer.isSVG&&(!0===e&&(e={}),b?(a={translateX:k[0]+d,translateY:k[1]+p,scaleX:.001,scaleY:.001},f.attr(a),g&&g.attr(a)):(a={translateX:d,translateY:p,scaleX:1,scaleY:1},f.animate(a,e),g&&g.animate(a,e),this.animate=null)):a.call(this,b)};c(f,"animate",k);b.column&&(b=b.column.prototype,b.polarArc=function(a,b,c,f){var e=this.xAxis.center,k=this.yAxis.len;return this.chart.renderer.symbols.arc(e[0],e[1],k-b,null,{start:c,end:f,innerR:k-g(a,k)})},c(b,"animate",k),c(b,"translate",function(a){var b=this.xAxis,c=b.startAngleRad,e;this.preventPostTranslate=!0;a.call(this);if(b.isRadial){var f=this.points;for(e=f.length;e--;){var g=f[e];a=g.barX+c;g.shapeType="path";g.shapeArgs={d:this.polarArc(g.yBottom,g.plotY,a,a+g.pointWidth)};this.toXY(g);g.tooltipPos=[g.plotX,g.plotY];g.ttBelow=g.plotY>b.center[1]}}}),c(b,"alignDataLabel",function(a,b,c,g,k,l){this.chart.polar?(a=b.rectPlotX/Math.PI*180,null===g.align&&(g.align=20<a&&160>a?"left":200<a&&340>a?"right":"center"),null===g.verticalAlign&&(g.verticalAlign=45>a||315<a?"bottom":135<a&&225>a?"top":"middle"),f.alignDataLabel.call(this,b,c,g,k,l)):a.call(this,b,c,g,k,l)}));c(u,"getCoordinates",function(a,b){var c=this.chart,e={xAxis:[],yAxis:[]};c.polar?c.axes.forEach(function(a){var f=a.isXAxis,g=a.center;if("colorAxis"!==a.coll){var d=b.chartX-g[0]-c.plotLeft;g=b.chartY-g[1]-c.plotTop;e[f?"xAxis":"yAxis"].push({axis:a,value:a.translate(f?Math.PI-
Math.atan2(d,g):Math.sqrt(Math.pow(d,2)+Math.pow(g,2)),!0)})}}):e=a.call(this,b);return e});a.SVGRenderer.prototype.clipCircle=function(b,c,f){var e=a.uniqueKey(),g=this.createElement("clipPath").attr({id:e}).add(this.defs);b=this.circle(b,c,f).add(g);b.id=e;b.clipPath=g;return b};a.addEvent(a.Chart,"getAxes",function(){this.pane||(this.pane=[]);l(this.options.pane).forEach(function(b){new a.Pane(b,this)},this)});a.addEvent(a.Chart,"afterDrawChartBox",function(){this.pane.forEach(function(a){a.render()})});c(a.Chart.prototype,"get",function(b,c){return a.find(this.pane,function(a){return a.options.id===c})||b.call(this,c)})});z(v,"masters/highcharts-more.src.js",[],function(){})});!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return Hc.apply(null,arguments)}function b(a){Hc=a}function c(a){return"[object Array]"===Object.prototype.toString.call(a)}function d(a){return a instanceof Date||"[object Date]"===Object.prototype.toString.call(a)}function e(a,b){var c,d=[];for(c=0;c<a.length;++c)d.push(b(a[c],c));return d}function f(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function g(a,b){for(var c in b)f(b,c)&&(a[c]=b[c]);return f(b,"toString")&&(a.toString=b.toString),f(b,"valueOf")&&(a.valueOf=b.valueOf),a}function h(a,b,c,d){return Ca(a,b,c,d,!0).utc()}function i(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function j(a){return null==a._pf&&(a._pf=i()),a._pf}function k(a){if(null==a._isValid){var b=j(a);a._isValid=!(isNaN(a._d.getTime())||!(b.overflow<0)||b.empty||b.invalidMonth||b.invalidWeekday||b.nullInput||b.invalidFormat||b.userInvalidated),a._strict&&(a._isValid=a._isValid&&0===b.charsLeftOver&&0===b.unusedTokens.length&&void 0===b.bigHour)}return a._isValid}function l(a){var b=h(NaN);return null!=a?g(j(b),a):j(b).userInvalidated=!0,b}function m(a,b){var c,d,e;if("undefined"!=typeof b._isAMomentObject&&(a._isAMomentObject=b._isAMomentObject),"undefined"!=typeof b._i&&(a._i=b._i),"undefined"!=typeof b._f&&(a._f=b._f),"undefined"!=typeof b._l&&(a._l=b._l),"undefined"!=typeof b._strict&&(a._strict=b._strict),"undefined"!=typeof b._tzm&&(a._tzm=b._tzm),"undefined"!=typeof b._isUTC&&(a._isUTC=b._isUTC),"undefined"!=typeof b._offset&&(a._offset=b._offset),"undefined"!=typeof b._pf&&(a._pf=j(b)),"undefined"!=typeof b._locale&&(a._locale=b._locale),Jc.length>0)for(c in Jc)d=Jc[c],e=b[d],"undefined"!=typeof e&&(a[d]=e);return a}function n(b){m(this,b),this._d=new Date(null!=b._d?b._d.getTime():NaN),Kc===!1&&(Kc=!0,a.updateOffset(this),Kc=!1)}function o(a){return a instanceof n||null!=a&&null!=a._isAMomentObject}function p(a){return 0>a?Math.ceil(a):Math.floor(a)}function q(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=p(b)),c}function r(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&q(a[d])!==q(b[d]))&&g++;return g+f}function s(){}function t(a){return a?a.toLowerCase().replace("_","-"):a}function u(a){for(var b,c,d,e,f=0;f<a.length;){for(e=t(a[f]).split("-"),b=e.length,c=t(a[f+1]),c=c?c.split("-"):null;b>0;){if(d=v(e.slice(0,b).join("-")))return d;if(c&&c.length>=b&&r(e,c,!0)>=b-1)break;b--}f++}return null}function v(a){var b=null;if(!Lc[a]&&"undefined"!=typeof module&&module&&module.exports)try{b=Ic._abbr,require("./locale/"+a),w(b)}catch(c){}return Lc[a]}function w(a,b){var c;return a&&(c="undefined"==typeof b?y(a):x(a,b),c&&(Ic=c)),Ic._abbr}function x(a,b){return null!==b?(b.abbr=a,Lc[a]=Lc[a]||new s,Lc[a].set(b),w(a),Lc[a]):(delete Lc[a],null)}function y(a){var b;if(a&&a._locale&&a._locale._abbr&&(a=a._locale._abbr),!a)return Ic;if(!c(a)){if(b=v(a))return b;a=[a]}return u(a)}function z(a,b){var c=a.toLowerCase();Mc[c]=Mc[c+"s"]=Mc[b]=a}function A(a){return"string"==typeof a?Mc[a]||Mc[a.toLowerCase()]:void 0}function B(a){var b,c,d={};for(c in a)f(a,c)&&(b=A(c),b&&(d[b]=a[c]));return d}function C(b,c){return function(d){return null!=d?(E(this,b,d),a.updateOffset(this,c),this):D(this,b)}}function D(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function E(a,b,c){return a._d["set"+(a._isUTC?"UTC":"")+b](c)}function F(a,b){var c;if("object"==typeof a)for(c in a)this.set(c,a[c]);else if(a=A(a),"function"==typeof this[a])return this[a](b);return this}function G(a,b,c){var d=""+Math.abs(a),e=b-d.length,f=a>=0;return(f?c?"+":"":"-")+Math.pow(10,Math.max(0,e)).toString().substr(1)+d}function H(a,b,c,d){var e=d;"string"==typeof d&&(e=function(){return this[d]()}),a&&(Qc[a]=e),b&&(Qc[b[0]]=function(){return G(e.apply(this,arguments),b[1],b[2])}),c&&(Qc[c]=function(){return this.localeData().ordinal(e.apply(this,arguments),a)})}function I(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function J(a){var b,c,d=a.match(Nc);for(b=0,c=d.length;c>b;b++)Qc[d[b]]?d[b]=Qc[d[b]]:d[b]=I(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function K(a,b){return a.isValid()?(b=L(b,a.localeData()),Pc[b]=Pc[b]||J(b),Pc[b](a)):a.localeData().invalidDate()}function L(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Oc.lastIndex=0;d>=0&&Oc.test(a);)a=a.replace(Oc,c),Oc.lastIndex=0,d-=1;return a}function M(a){return"function"==typeof a&&"[object Function]"===Object.prototype.toString.call(a)}function N(a,b,c){dd[a]=M(b)?b:function(a){return a&&c?c:b}}function O(a,b){return f(dd,a)?dd[a](b._strict,b._locale):new RegExp(P(a))}function P(a){return a.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Q(a,b){var c,d=b;for("string"==typeof a&&(a=[a]),"number"==typeof b&&(d=function(a,c){c[b]=q(a)}),c=0;c<a.length;c++)ed[a[c]]=d}function R(a,b){Q(a,function(a,c,d,e){d._w=d._w||{},b(a,d._w,d,e)})}function S(a,b,c){null!=b&&f(ed,a)&&ed[a](b,c._a,c,a)}function T(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function U(a){return this._months[a.month()]}function V(a){return this._monthsShort[a.month()]}function W(a,b,c){var d,e,f;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),d=0;12>d;d++){if(e=h([2e3,d]),c&&!this._longMonthsParse[d]&&(this._longMonthsParse[d]=new RegExp("^"+this.months(e,"").replace(".","")+"$","i"),this._shortMonthsParse[d]=new RegExp("^"+this.monthsShort(e,"").replace(".","")+"$","i")),c||this._monthsParse[d]||(f="^"+this.months(e,"")+"|^"+this.monthsShort(e,""),this._monthsParse[d]=new RegExp(f.replace(".",""),"i")),c&&"MMMM"===b&&this._longMonthsParse[d].test(a))return d;if(c&&"MMM"===b&&this._shortMonthsParse[d].test(a))return d;if(!c&&this._monthsParse[d].test(a))return d}}function X(a,b){var c;return"string"==typeof b&&(b=a.localeData().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),T(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function Y(b){return null!=b?(X(this,b),a.updateOffset(this,!0),this):D(this,"Month")}function Z(){return T(this.year(),this.month())}function $(a){var b,c=a._a;return c&&-2===j(a).overflow&&(b=c[gd]<0||c[gd]>11?gd:c[hd]<1||c[hd]>T(c[fd],c[gd])?hd:c[id]<0||c[id]>24||24===c[id]&&(0!==c[jd]||0!==c[kd]||0!==c[ld])?id:c[jd]<0||c[jd]>59?jd:c[kd]<0||c[kd]>59?kd:c[ld]<0||c[ld]>999?ld:-1,j(a)._overflowDayOfYear&&(fd>b||b>hd)&&(b=hd),j(a).overflow=b),a}function _(b){a.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+b)}function aa(a,b){var c=!0;return g(function(){return c&&(_(a+"\n"+(new Error).stack),c=!1),b.apply(this,arguments)},b)}function ba(a,b){od[a]||(_(b),od[a]=!0)}function ca(a){var b,c,d=a._i,e=pd.exec(d);if(e){for(j(a).iso=!0,b=0,c=qd.length;c>b;b++)if(qd[b][1].exec(d)){a._f=qd[b][0];break}for(b=0,c=rd.length;c>b;b++)if(rd[b][1].exec(d)){a._f+=(e[6]||" ")+rd[b][0];break}d.match(ad)&&(a._f+="Z"),va(a)}else a._isValid=!1}function da(b){var c=sd.exec(b._i);return null!==c?void(b._d=new Date(+c[1])):(ca(b),void(b._isValid===!1&&(delete b._isValid,a.createFromInputFallback(b))))}function ea(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function fa(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function ga(a){return ha(a)?366:365}function ha(a){return a%4===0&&a%100!==0||a%400===0}function ia(){return ha(this.year())}function ja(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=Da(a).add(f,"d"),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function ka(a){return ja(a,this._week.dow,this._week.doy).week}function la(){return this._week.dow}function ma(){return this._week.doy}function na(a){var b=this.localeData().week(this);return null==a?b:this.add(7*(a-b),"d")}function oa(a){var b=ja(this,1,4).week;return null==a?b:this.add(7*(a-b),"d")}function pa(a,b,c,d,e){var f,g=6+e-d,h=fa(a,0,1+g),i=h.getUTCDay();return e>i&&(i+=7),c=null!=c?1*c:e,f=1+g+7*(b-1)-i+c,{year:f>0?a:a-1,dayOfYear:f>0?f:ga(a-1)+f}}function qa(a){var b=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==a?b:this.add(a-b,"d")}function ra(a,b,c){return null!=a?a:null!=b?b:c}function sa(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function ta(a){var b,c,d,e,f=[];if(!a._d){for(d=sa(a),a._w&&null==a._a[hd]&&null==a._a[gd]&&ua(a),a._dayOfYear&&(e=ra(a._a[fd],d[fd]),a._dayOfYear>ga(e)&&(j(a)._overflowDayOfYear=!0),c=fa(e,0,a._dayOfYear),a._a[gd]=c.getUTCMonth(),a._a[hd]=c.getUTCDate()),b=0;3>b&&null==a._a[b];++b)a._a[b]=f[b]=d[b];for(;7>b;b++)a._a[b]=f[b]=null==a._a[b]?2===b?1:0:a._a[b];24===a._a[id]&&0===a._a[jd]&&0===a._a[kd]&&0===a._a[ld]&&(a._nextDay=!0,a._a[id]=0),a._d=(a._useUTC?fa:ea).apply(null,f),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()-a._tzm),a._nextDay&&(a._a[id]=24)}}function ua(a){var b,c,d,e,f,g,h;b=a._w,null!=b.GG||null!=b.W||null!=b.E?(f=1,g=4,c=ra(b.GG,a._a[fd],ja(Da(),1,4).year),d=ra(b.W,1),e=ra(b.E,1)):(f=a._locale._week.dow,g=a._locale._week.doy,c=ra(b.gg,a._a[fd],ja(Da(),f,g).year),d=ra(b.w,1),null!=b.d?(e=b.d,f>e&&++d):e=null!=b.e?b.e+f:f),h=pa(c,d,e,g,f),a._a[fd]=h.year,a._dayOfYear=h.dayOfYear}function va(b){if(b._f===a.ISO_8601)return void ca(b);b._a=[],j(b).empty=!0;var c,d,e,f,g,h=""+b._i,i=h.length,k=0;for(e=L(b._f,b._locale).match(Nc)||[],c=0;c<e.length;c++)f=e[c],d=(h.match(O(f,b))||[])[0],d&&(g=h.substr(0,h.indexOf(d)),g.length>0&&j(b).unusedInput.push(g),h=h.slice(h.indexOf(d)+d.length),k+=d.length),Qc[f]?(d?j(b).empty=!1:j(b).unusedTokens.push(f),S(f,d,b)):b._strict&&!d&&j(b).unusedTokens.push(f);j(b).charsLeftOver=i-k,h.length>0&&j(b).unusedInput.push(h),j(b).bigHour===!0&&b._a[id]<=12&&b._a[id]>0&&(j(b).bigHour=void 0),b._a[id]=wa(b._locale,b._a[id],b._meridiem),ta(b),$(b)}function wa(a,b,c){var d;return null==c?b:null!=a.meridiemHour?a.meridiemHour(b,c):null!=a.isPM?(d=a.isPM(c),d&&12>b&&(b+=12),d||12!==b||(b=0),b):b}function xa(a){var b,c,d,e,f;if(0===a._f.length)return j(a).invalidFormat=!0,void(a._d=new Date(NaN));for(e=0;e<a._f.length;e++)f=0,b=m({},a),null!=a._useUTC&&(b._useUTC=a._useUTC),b._f=a._f[e],va(b),k(b)&&(f+=j(b).charsLeftOver,f+=10*j(b).unusedTokens.length,j(b).score=f,(null==d||d>f)&&(d=f,c=b));g(a,c||b)}function ya(a){if(!a._d){var b=B(a._i);a._a=[b.year,b.month,b.day||b.date,b.hour,b.minute,b.second,b.millisecond],ta(a)}}function za(a){var b=new n($(Aa(a)));return b._nextDay&&(b.add(1,"d"),b._nextDay=void 0),b}function Aa(a){var b=a._i,e=a._f;return a._locale=a._locale||y(a._l),null===b||void 0===e&&""===b?l({nullInput:!0}):("string"==typeof b&&(a._i=b=a._locale.preparse(b)),o(b)?new n($(b)):(c(e)?xa(a):e?va(a):d(b)?a._d=b:Ba(a),a))}function Ba(b){var f=b._i;void 0===f?b._d=new Date:d(f)?b._d=new Date(+f):"string"==typeof f?da(b):c(f)?(b._a=e(f.slice(0),function(a){return parseInt(a,10)}),ta(b)):"object"==typeof f?ya(b):"number"==typeof f?b._d=new Date(f):a.createFromInputFallback(b)}function Ca(a,b,c,d,e){var f={};return"boolean"==typeof c&&(d=c,c=void 0),f._isAMomentObject=!0,f._useUTC=f._isUTC=e,f._l=c,f._i=a,f._f=b,f._strict=d,za(f)}function Da(a,b,c,d){return Ca(a,b,c,d,!1)}function Ea(a,b){var d,e;if(1===b.length&&c(b[0])&&(b=b[0]),!b.length)return Da();for(d=b[0],e=1;e<b.length;++e)(!b[e].isValid()||b[e][a](d))&&(d=b[e]);return d}function Fa(){var a=[].slice.call(arguments,0);return Ea("isBefore",a)}function Ga(){var a=[].slice.call(arguments,0);return Ea("isAfter",a)}function Ha(a){var b=B(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._locale=y(),this._bubble()}function Ia(a){return a instanceof Ha}function Ja(a,b){H(a,0,0,function(){var a=this.utcOffset(),c="+";return 0>a&&(a=-a,c="-"),c+G(~~(a/60),2)+b+G(~~a%60,2)})}function Ka(a){var b=(a||"").match(ad)||[],c=b[b.length-1]||[],d=(c+"").match(xd)||["-",0,0],e=+(60*d[1])+q(d[2]);return"+"===d[0]?e:-e}function La(b,c){var e,f;return c._isUTC?(e=c.clone(),f=(o(b)||d(b)?+b:+Da(b))-+e,e._d.setTime(+e._d+f),a.updateOffset(e,!1),e):Da(b).local()}function Ma(a){return 15*-Math.round(a._d.getTimezoneOffset()/15)}function Na(b,c){var d,e=this._offset||0;return null!=b?("string"==typeof b&&(b=Ka(b)),Math.abs(b)<16&&(b=60*b),!this._isUTC&&c&&(d=Ma(this)),this._offset=b,this._isUTC=!0,null!=d&&this.add(d,"m"),e!==b&&(!c||this._changeInProgress?bb(this,Ya(b-e,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,a.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?e:Ma(this)}function Oa(a,b){return null!=a?("string"!=typeof a&&(a=-a),this.utcOffset(a,b),this):-this.utcOffset()}function Pa(a){return this.utcOffset(0,a)}function Qa(a){return this._isUTC&&(this.utcOffset(0,a),this._isUTC=!1,a&&this.subtract(Ma(this),"m")),this}function Ra(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ka(this._i)),this}function Sa(a){return a=a?Da(a).utcOffset():0,(this.utcOffset()-a)%60===0}function Ta(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ua(){if("undefined"!=typeof this._isDSTShifted)return this._isDSTShifted;var a={};if(m(a,this),a=Aa(a),a._a){var b=a._isUTC?h(a._a):Da(a._a);this._isDSTShifted=this.isValid()&&r(a._a,b.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Va(){return!this._isUTC}function Wa(){return this._isUTC}function Xa(){return this._isUTC&&0===this._offset}function Ya(a,b){var c,d,e,g=a,h=null;return Ia(a)?g={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(g={},b?g[b]=a:g.milliseconds=a):(h=yd.exec(a))?(c="-"===h[1]?-1:1,g={y:0,d:q(h[hd])*c,h:q(h[id])*c,m:q(h[jd])*c,s:q(h[kd])*c,ms:q(h[ld])*c}):(h=zd.exec(a))?(c="-"===h[1]?-1:1,g={y:Za(h[2],c),M:Za(h[3],c),d:Za(h[4],c),h:Za(h[5],c),m:Za(h[6],c),s:Za(h[7],c),w:Za(h[8],c)}):null==g?g={}:"object"==typeof g&&("from"in g||"to"in g)&&(e=_a(Da(g.from),Da(g.to)),g={},g.ms=e.milliseconds,g.M=e.months),d=new Ha(g),Ia(a)&&f(a,"_locale")&&(d._locale=a._locale),d}function Za(a,b){var c=a&&parseFloat(a.replace(",","."));return(isNaN(c)?0:c)*b}function $a(a,b){var c={milliseconds:0,months:0};return c.months=b.month()-a.month()+12*(b.year()-a.year()),a.clone().add(c.months,"M").isAfter(b)&&--c.months,c.milliseconds=+b-+a.clone().add(c.months,"M"),c}function _a(a,b){var c;return b=La(b,a),a.isBefore(b)?c=$a(a,b):(c=$a(b,a),c.milliseconds=-c.milliseconds,c.months=-c.months),c}function ab(a,b){return function(c,d){var e,f;return null===d||isNaN(+d)||(ba(b,"moment()."+b+"(period, number) is deprecated. Please use moment()."+b+"(number, period)."),f=c,c=d,d=f),c="string"==typeof c?+c:c,e=Ya(c,d),bb(this,e,a),this}}function bb(b,c,d,e){var f=c._milliseconds,g=c._days,h=c._months;e=null==e?!0:e,f&&b._d.setTime(+b._d+f*d),g&&E(b,"Date",D(b,"Date")+g*d),h&&X(b,D(b,"Month")+h*d),e&&a.updateOffset(b,g||h)}function cb(a,b){var c=a||Da(),d=La(c,this).startOf("day"),e=this.diff(d,"days",!0),f=-6>e?"sameElse":-1>e?"lastWeek":0>e?"lastDay":1>e?"sameDay":2>e?"nextDay":7>e?"nextWeek":"sameElse";return this.format(b&&b[f]||this.localeData().calendar(f,this,Da(c)))}function db(){return new n(this)}function eb(a,b){var c;return b=A("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=o(a)?a:Da(a),+this>+a):(c=o(a)?+a:+Da(a),c<+this.clone().startOf(b))}function fb(a,b){var c;return b=A("undefined"!=typeof b?b:"millisecond"),"millisecond"===b?(a=o(a)?a:Da(a),+a>+this):(c=o(a)?+a:+Da(a),+this.clone().endOf(b)<c)}function gb(a,b,c){return this.isAfter(a,c)&&this.isBefore(b,c)}function hb(a,b){var c;return b=A(b||"millisecond"),"millisecond"===b?(a=o(a)?a:Da(a),+this===+a):(c=+Da(a),+this.clone().startOf(b)<=c&&c<=+this.clone().endOf(b))}function ib(a,b,c){var d,e,f=La(a,this),g=6e4*(f.utcOffset()-this.utcOffset());return b=A(b),"year"===b||"month"===b||"quarter"===b?(e=jb(this,f),"quarter"===b?e/=3:"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:p(e)}function jb(a,b){var c,d,e=12*(b.year()-a.year())+(b.month()-a.month()),f=a.clone().add(e,"months");return 0>b-f?(c=a.clone().add(e-1,"months"),d=(b-f)/(f-c)):(c=a.clone().add(e+1,"months"),d=(b-f)/(c-f)),-(e+d)}function kb(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function lb(){var a=this.clone().utc();return 0<a.year()&&a.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():K(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):K(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function mb(b){var c=K(this,b||a.defaultFormat);return this.localeData().postformat(c)}function nb(a,b){return this.isValid()?Ya({to:this,from:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function ob(a){return this.from(Da(),a)}function pb(a,b){return this.isValid()?Ya({from:this,to:a}).locale(this.locale()).humanize(!b):this.localeData().invalidDate()}function qb(a){return this.to(Da(),a)}function rb(a){var b;return void 0===a?this._locale._abbr:(b=y(a),null!=b&&(this._locale=b),this)}function sb(){return this._locale}function tb(a){switch(a=A(a)){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"===a&&this.weekday(0),"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this}function ub(a){return a=A(a),void 0===a||"millisecond"===a?this:this.startOf(a).add(1,"isoWeek"===a?"week":a).subtract(1,"ms")}function vb(){return+this._d-6e4*(this._offset||0)}function wb(){return Math.floor(+this/1e3)}function xb(){return this._offset?new Date(+this):this._d}function yb(){var a=this;return[a.year(),a.month(),a.date(),a.hour(),a.minute(),a.second(),a.millisecond()]}function zb(){var a=this;return{years:a.year(),months:a.month(),date:a.date(),hours:a.hours(),minutes:a.minutes(),seconds:a.seconds(),milliseconds:a.milliseconds()}}function Ab(){return k(this)}function Bb(){return g({},j(this))}function Cb(){return j(this).overflow}function Db(a,b){H(0,[a,a.length],0,b)}function Eb(a,b,c){return ja(Da([a,11,31+b-c]),b,c).week}function Fb(a){var b=ja(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==a?b:this.add(a-b,"y")}function Gb(a){var b=ja(this,1,4).year;return null==a?b:this.add(a-b,"y")}function Hb(){return Eb(this.year(),1,4)}function Ib(){var a=this.localeData()._week;return Eb(this.year(),a.dow,a.doy)}function Jb(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)}function Kb(a,b){return"string"!=typeof a?a:isNaN(a)?(a=b.weekdaysParse(a),"number"==typeof a?a:null):parseInt(a,10)}function Lb(a){return this._weekdays[a.day()]}function Mb(a){return this._weekdaysShort[a.day()]}function Nb(a){return this._weekdaysMin[a.day()]}function Ob(a){var b,c,d;for(this._weekdaysParse=this._weekdaysParse||[],b=0;7>b;b++)if(this._weekdaysParse[b]||(c=Da([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b}function Pb(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=Kb(a,this.localeData()),this.add(a-b,"d")):b}function Qb(a){var b=(this.day()+7-this.localeData()._week.dow)%7;return null==a?b:this.add(a-b,"d")}function Rb(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)}function Sb(a,b){H(a,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),b)})}function Tb(a,b){return b._meridiemParse}function Ub(a){return"p"===(a+"").toLowerCase().charAt(0)}function Vb(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"}function Wb(a,b){b[ld]=q(1e3*("0."+a))}function Xb(){return this._isUTC?"UTC":""}function Yb(){return this._isUTC?"Coordinated Universal Time":""}function Zb(a){return Da(1e3*a)}function $b(){return Da.apply(null,arguments).parseZone()}function _b(a,b,c){var d=this._calendar[a];return"function"==typeof d?d.call(b,c):d}function ac(a){var b=this._longDateFormat[a],c=this._longDateFormat[a.toUpperCase()];return b||!c?b:(this._longDateFormat[a]=c.replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a])}function bc(){return this._invalidDate}function cc(a){return this._ordinal.replace("%d",a)}function dc(a){return a}function ec(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)}function fc(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)}function gc(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function hc(a,b,c,d){var e=y(),f=h().set(d,b);return e[c](f,a)}function ic(a,b,c,d,e){if("number"==typeof a&&(b=a,a=void 0),a=a||"",null!=b)return hc(a,b,c,e);var f,g=[];for(f=0;d>f;f++)g[f]=hc(a,f,c,e);return g}function jc(a,b){return ic(a,b,"months",12,"month")}function kc(a,b){return ic(a,b,"monthsShort",12,"month")}function lc(a,b){return ic(a,b,"weekdays",7,"day")}function mc(a,b){return ic(a,b,"weekdaysShort",7,"day")}function nc(a,b){return ic(a,b,"weekdaysMin",7,"day")}function oc(){var a=this._data;return this._milliseconds=Wd(this._milliseconds),this._days=Wd(this._days),this._months=Wd(this._months),a.milliseconds=Wd(a.milliseconds),a.seconds=Wd(a.seconds),a.minutes=Wd(a.minutes),a.hours=Wd(a.hours),a.months=Wd(a.months),a.years=Wd(a.years),this}function pc(a,b,c,d){var e=Ya(b,c);return a._milliseconds+=d*e._milliseconds,a._days+=d*e._days,a._months+=d*e._months,a._bubble()}function qc(a,b){return pc(this,a,b,1)}function rc(a,b){return pc(this,a,b,-1)}function sc(a){return 0>a?Math.floor(a):Math.ceil(a)}function tc(){var a,b,c,d,e,f=this._milliseconds,g=this._days,h=this._months,i=this._data;return f>=0&&g>=0&&h>=0||0>=f&&0>=g&&0>=h||(f+=864e5*sc(vc(h)+g),g=0,h=0),i.milliseconds=f%1e3,a=p(f/1e3),i.seconds=a%60,b=p(a/60),i.minutes=b%60,c=p(b/60),i.hours=c%24,g+=p(c/24),e=p(uc(g)),h+=e,g-=sc(vc(e)),d=p(h/12),h%=12,i.days=g,i.months=h,i.years=d,this}function uc(a){return 4800*a/146097}function vc(a){return 146097*a/4800}function wc(a){var b,c,d=this._milliseconds;if(a=A(a),"month"===a||"year"===a)return b=this._days+d/864e5,c=this._months+uc(b),"month"===a?c:c/12;switch(b=this._days+Math.round(vc(this._months)),a){case"week":return b/7+d/6048e5;case"day":return b+d/864e5;case"hour":return 24*b+d/36e5;case"minute":return 1440*b+d/6e4;case"second":return 86400*b+d/1e3;case"millisecond":return Math.floor(864e5*b)+d;default:throw new Error("Unknown unit "+a)}}function xc(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12)}function yc(a){return function(){return this.as(a)}}function zc(a){return a=A(a),this[a+"s"]()}function Ac(a){return function(){return this._data[a]}}function Bc(){return p(this.days()/7)}function Cc(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function Dc(a,b,c){var d=Ya(a).abs(),e=ke(d.as("s")),f=ke(d.as("m")),g=ke(d.as("h")),h=ke(d.as("d")),i=ke(d.as("M")),j=ke(d.as("y")),k=e<le.s&&["s",e]||1===f&&["m"]||f<le.m&&["mm",f]||1===g&&["h"]||g<le.h&&["hh",g]||1===h&&["d"]||h<le.d&&["dd",h]||1===i&&["M"]||i<le.M&&["MM",i]||1===j&&["y"]||["yy",j];return k[2]=b,k[3]=+a>0,k[4]=c,Cc.apply(null,k)}function Ec(a,b){return void 0===le[a]?!1:void 0===b?le[a]:(le[a]=b,!0)}function Fc(a){var b=this.localeData(),c=Dc(this,!a,b);return a&&(c=b.pastFuture(+this,c)),b.postformat(c)}function Gc(){var a,b,c,d=me(this._milliseconds)/1e3,e=me(this._days),f=me(this._months);a=p(d/60),b=p(a/60),d%=60,a%=60,c=p(f/12),f%=12;var g=c,h=f,i=e,j=b,k=a,l=d,m=this.asSeconds();return m?(0>m?"-":"")+"P"+(g?g+"Y":"")+(h?h+"M":"")+(i?i+"D":"")+(j||k||l?"T":"")+(j?j+"H":"")+(k?k+"M":"")+(l?l+"S":""):"P0D"}var Hc,Ic,Jc=a.momentProperties=[],Kc=!1,Lc={},Mc={},Nc=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Oc=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Pc={},Qc={},Rc=/\d/,Sc=/\d\d/,Tc=/\d{3}/,Uc=/\d{4}/,Vc=/[+-]?\d{6}/,Wc=/\d\d?/,Xc=/\d{1,3}/,Yc=/\d{1,4}/,Zc=/[+-]?\d{1,6}/,$c=/\d+/,_c=/[+-]?\d+/,ad=/Z|[+-]\d\d:?\d\d/gi,bd=/[+-]?\d+(\.\d{1,3})?/,cd=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,dd={},ed={},fd=0,gd=1,hd=2,id=3,jd=4,kd=5,ld=6;H("M",["MM",2],"Mo",function(){return this.month()+1}),H("MMM",0,0,function(a){return this.localeData().monthsShort(this,a)}),H("MMMM",0,0,function(a){return this.localeData().months(this,a)}),z("month","M"),N("M",Wc),N("MM",Wc,Sc),N("MMM",cd),N("MMMM",cd),Q(["M","MM"],function(a,b){b[gd]=q(a)-1}),Q(["MMM","MMMM"],function(a,b,c,d){var e=c._locale.monthsParse(a,d,c._strict);null!=e?b[gd]=e:j(c).invalidMonth=a});var md="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),nd="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),od={};a.suppressDeprecationWarnings=!1;var pd=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,qd=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],rd=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],sd=/^\/?Date\((\-?\d+)/i;a.createFromInputFallback=aa("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(a){a._d=new Date(a._i+(a._useUTC?" UTC":""))}),H(0,["YY",2],0,function(){return this.year()%100}),H(0,["YYYY",4],0,"year"),H(0,["YYYYY",5],0,"year"),H(0,["YYYYYY",6,!0],0,"year"),z("year","y"),N("Y",_c),N("YY",Wc,Sc),N("YYYY",Yc,Uc),N("YYYYY",Zc,Vc),N("YYYYYY",Zc,Vc),Q(["YYYYY","YYYYYY"],fd),Q("YYYY",function(b,c){c[fd]=2===b.length?a.parseTwoDigitYear(b):q(b)}),Q("YY",function(b,c){c[fd]=a.parseTwoDigitYear(b)}),a.parseTwoDigitYear=function(a){return q(a)+(q(a)>68?1900:2e3)};var td=C("FullYear",!1);H("w",["ww",2],"wo","week"),H("W",["WW",2],"Wo","isoWeek"),z("week","w"),z("isoWeek","W"),N("w",Wc),N("ww",Wc,Sc),N("W",Wc),N("WW",Wc,Sc),R(["w","ww","W","WW"],function(a,b,c,d){b[d.substr(0,1)]=q(a)});var ud={dow:0,doy:6};H("DDD",["DDDD",3],"DDDo","dayOfYear"),z("dayOfYear","DDD"),N("DDD",Xc),N("DDDD",Tc),Q(["DDD","DDDD"],function(a,b,c){c._dayOfYear=q(a)}),a.ISO_8601=function(){};var vd=aa("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var a=Da.apply(null,arguments);return this>a?this:a}),wd=aa("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var a=Da.apply(null,arguments);return a>this?this:a});Ja("Z",":"),Ja("ZZ",""),N("Z",ad),N("ZZ",ad),Q(["Z","ZZ"],function(a,b,c){c._useUTC=!0,c._tzm=Ka(a)});var xd=/([\+\-]|\d\d)/gi;a.updateOffset=function(){};var yd=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,zd=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;Ya.fn=Ha.prototype;var Ad=ab(1,"add"),Bd=ab(-1,"subtract");a.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Cd=aa("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(a){return void 0===a?this.localeData():this.locale(a)});H(0,["gg",2],0,function(){return this.weekYear()%100}),H(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Db("gggg","weekYear"),Db("ggggg","weekYear"),Db("GGGG","isoWeekYear"),Db("GGGGG","isoWeekYear"),z("weekYear","gg"),z("isoWeekYear","GG"),N("G",_c),N("g",_c),N("GG",Wc,Sc),N("gg",Wc,Sc),N("GGGG",Yc,Uc),N("gggg",Yc,Uc),N("GGGGG",Zc,Vc),N("ggggg",Zc,Vc),R(["gggg","ggggg","GGGG","GGGGG"],function(a,b,c,d){b[d.substr(0,2)]=q(a)}),R(["gg","GG"],function(b,c,d,e){c[e]=a.parseTwoDigitYear(b)}),H("Q",0,0,"quarter"),z("quarter","Q"),N("Q",Rc),Q("Q",function(a,b){b[gd]=3*(q(a)-1)}),H("D",["DD",2],"Do","date"),z("date","D"),N("D",Wc),N("DD",Wc,Sc),N("Do",function(a,b){return a?b._ordinalParse:b._ordinalParseLenient}),Q(["D","DD"],hd),Q("Do",function(a,b){b[hd]=q(a.match(Wc)[0],10)});var Dd=C("Date",!0);H("d",0,"do","day"),H("dd",0,0,function(a){return this.localeData().weekdaysMin(this,a)}),H("ddd",0,0,function(a){return this.localeData().weekdaysShort(this,a)}),H("dddd",0,0,function(a){return this.localeData().weekdays(this,a)}),H("e",0,0,"weekday"),H("E",0,0,"isoWeekday"),z("day","d"),z("weekday","e"),z("isoWeekday","E"),N("d",Wc),N("e",Wc),N("E",Wc),N("dd",cd),N("ddd",cd),N("dddd",cd),R(["dd","ddd","dddd"],function(a,b,c){var d=c._locale.weekdaysParse(a);null!=d?b.d=d:j(c).invalidWeekday=a}),R(["d","e","E"],function(a,b,c,d){b[d]=q(a)});var Ed="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fd="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gd="Su_Mo_Tu_We_Th_Fr_Sa".split("_");H("H",["HH",2],0,"hour"),H("h",["hh",2],0,function(){return this.hours()%12||12}),Sb("a",!0),Sb("A",!1),z("hour","h"),N("a",Tb),N("A",Tb),N("H",Wc),N("h",Wc),N("HH",Wc,Sc),N("hh",Wc,Sc),Q(["H","HH"],id),Q(["a","A"],function(a,b,c){c._isPm=c._locale.isPM(a),c._meridiem=a}),Q(["h","hh"],function(a,b,c){b[id]=q(a),j(c).bigHour=!0});var Hd=/[ap]\.?m?\.?/i,Id=C("Hours",!0);H("m",["mm",2],0,"minute"),z("minute","m"),N("m",Wc),N("mm",Wc,Sc),Q(["m","mm"],jd);var Jd=C("Minutes",!1);H("s",["ss",2],0,"second"),z("second","s"),N("s",Wc),N("ss",Wc,Sc),Q(["s","ss"],kd);var Kd=C("Seconds",!1);H("S",0,0,function(){return~~(this.millisecond()/100)}),H(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),H(0,["SSS",3],0,"millisecond"),H(0,["SSSS",4],0,function(){return 10*this.millisecond()}),H(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),H(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),H(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),H(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),H(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),z("millisecond","ms"),N("S",Xc,Rc),N("SS",Xc,Sc),N("SSS",Xc,Tc);var Ld;for(Ld="SSSS";Ld.length<=9;Ld+="S")N(Ld,$c);for(Ld="S";Ld.length<=9;Ld+="S")Q(Ld,Wb);var Md=C("Milliseconds",!1);H("z",0,0,"zoneAbbr"),H("zz",0,0,"zoneName");var Nd=n.prototype;Nd.add=Ad,Nd.calendar=cb,Nd.clone=db,Nd.diff=ib,Nd.endOf=ub,Nd.format=mb,Nd.from=nb,Nd.fromNow=ob,Nd.to=pb,Nd.toNow=qb,Nd.get=F,Nd.invalidAt=Cb,Nd.isAfter=eb,Nd.isBefore=fb,Nd.isBetween=gb,Nd.isSame=hb,Nd.isValid=Ab,Nd.lang=Cd,Nd.locale=rb,Nd.localeData=sb,Nd.max=wd,Nd.min=vd,Nd.parsingFlags=Bb,Nd.set=F,Nd.startOf=tb,Nd.subtract=Bd,Nd.toArray=yb,Nd.toObject=zb,Nd.toDate=xb,Nd.toISOString=lb,Nd.toJSON=lb,Nd.toString=kb,Nd.unix=wb,Nd.valueOf=vb,Nd.year=td,Nd.isLeapYear=ia,Nd.weekYear=Fb,Nd.isoWeekYear=Gb,Nd.quarter=Nd.quarters=Jb,Nd.month=Y,Nd.daysInMonth=Z,Nd.week=Nd.weeks=na,Nd.isoWeek=Nd.isoWeeks=oa,Nd.weeksInYear=Ib,Nd.isoWeeksInYear=Hb,Nd.date=Dd,Nd.day=Nd.days=Pb,Nd.weekday=Qb,Nd.isoWeekday=Rb,Nd.dayOfYear=qa,Nd.hour=Nd.hours=Id,Nd.minute=Nd.minutes=Jd,Nd.second=Nd.seconds=Kd,Nd.millisecond=Nd.milliseconds=Md,Nd.utcOffset=Na,Nd.utc=Pa,Nd.local=Qa,Nd.parseZone=Ra,Nd.hasAlignedHourOffset=Sa,Nd.isDST=Ta,Nd.isDSTShifted=Ua,Nd.isLocal=Va,Nd.isUtcOffset=Wa,Nd.isUtc=Xa,Nd.isUTC=Xa,Nd.zoneAbbr=Xb,Nd.zoneName=Yb,Nd.dates=aa("dates accessor is deprecated. Use date instead.",Dd),Nd.months=aa("months accessor is deprecated. Use month instead",Y),Nd.years=aa("years accessor is deprecated. Use year instead",td),Nd.zone=aa("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",Oa);var Od=Nd,Pd={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Qd={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},Rd="Invalid date",Sd="%d",Td=/\d{1,2}/,Ud={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"},Vd=s.prototype;Vd._calendar=Pd,Vd.calendar=_b,Vd._longDateFormat=Qd,Vd.longDateFormat=ac,Vd._invalidDate=Rd,Vd.invalidDate=bc,Vd._ordinal=Sd,Vd.ordinal=cc,Vd._ordinalParse=Td,Vd.preparse=dc,Vd.postformat=dc,Vd._relativeTime=Ud,Vd.relativeTime=ec,Vd.pastFuture=fc,Vd.set=gc,Vd.months=U,Vd._months=md,Vd.monthsShort=V,Vd._monthsShort=nd,Vd.monthsParse=W,Vd.week=ka,Vd._week=ud,Vd.firstDayOfYear=ma,Vd.firstDayOfWeek=la,Vd.weekdays=Lb,Vd._weekdays=Ed,Vd.weekdaysMin=Nb,Vd._weekdaysMin=Gd,Vd.weekdaysShort=Mb,Vd._weekdaysShort=Fd,Vd.weekdaysParse=Ob,Vd.isPM=Ub,Vd._meridiemParse=Hd,Vd.meridiem=Vb,w("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(a){var b=a%10,c=1===q(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),a.lang=aa("moment.lang is deprecated. Use moment.locale instead.",w),a.langData=aa("moment.langData is deprecated. Use moment.localeData instead.",y);var Wd=Math.abs,Xd=yc("ms"),Yd=yc("s"),Zd=yc("m"),$d=yc("h"),_d=yc("d"),ae=yc("w"),be=yc("M"),ce=yc("y"),de=Ac("milliseconds"),ee=Ac("seconds"),fe=Ac("minutes"),ge=Ac("hours"),he=Ac("days"),ie=Ac("months"),je=Ac("years"),ke=Math.round,le={s:45,m:45,h:22,d:26,M:11},me=Math.abs,ne=Ha.prototype;ne.abs=oc,ne.add=qc,ne.subtract=rc,ne.as=wc,ne.asMilliseconds=Xd,ne.asSeconds=Yd,ne.asMinutes=Zd,ne.asHours=$d,ne.asDays=_d,ne.asWeeks=ae,ne.asMonths=be,ne.asYears=ce,ne.valueOf=xc,ne._bubble=tc,ne.get=zc,ne.milliseconds=de,ne.seconds=ee,ne.minutes=fe,ne.hours=ge,ne.days=he,ne.weeks=Bc,ne.months=ie,ne.years=je,ne.humanize=Fc,ne.toISOString=Gc,ne.toString=Gc,ne.toJSON=Gc,ne.locale=rb,ne.localeData=sb,ne.toIsoString=aa("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Gc),ne.lang=Cd,H("X",0,0,"unix"),H("x",0,0,"valueOf"),N("x",_c),N("X",bd),Q("X",function(a,b,c){c._d=new Date(1e3*parseFloat(a,10))}),Q("x",function(a,b,c){c._d=new Date(q(a))}),a.version="2.10.6",b(Da),a.fn=Od,a.min=Fa,a.max=Ga,a.utc=h,a.unix=Zb,a.months=jc,a.isDate=d,a.locale=w,a.invalid=l,a.duration=Ya,a.isMoment=o,a.weekdays=lc,a.parseZone=$b,a.localeData=y,a.isDuration=Ia,a.monthsShort=kc,a.weekdaysMin=nc,a.defineLocale=x,a.weekdaysShort=mc,a.normalizeUnits=A,a.relativeTimeThreshold=Ec;var oe=a;return oe});/*! version : 4.17.37
=========================================================
bootstrap-datetimejs
https://github.com/Eonasdan/bootstrap-datetimepicker
Copyright (c) 2015 Jonathan Peterson
=========================================================
*/!function(a){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],a);else if("object"==typeof exports)module.exports=a(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";a(jQuery,moment)}}(function(a,b){"use strict";if(!b)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var c=function(c,d){var e,f,g,h,i,j,k,l={},m=!0,n=!1,o=!1,p=0,q=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],r=["days","months","years","decades"],s=["top","bottom","auto"],t=["left","right","auto"],u=["default","top","bottom"],v={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},w={},x=function(){return void 0!==b.tz&&void 0!==d.timeZone&&null!==d.timeZone&&""!==d.timeZone},y=function(a){var c;return c=void 0===a||null===a?b():b.isDate(a)||b.isMoment(a)?b(a):x()?b.tz(a,j,d.useStrict,d.timeZone):b(a,j,d.useStrict),x()&&c.tz(d.timeZone),c},z=function(a){if("string"!=typeof a||a.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(a){case"y":return i.indexOf("Y")!==-1;case"M":return i.indexOf("M")!==-1;case"d":return i.toLowerCase().indexOf("d")!==-1;case"h":case"H":return i.toLowerCase().indexOf("h")!==-1;case"m":return i.indexOf("m")!==-1;case"s":return i.indexOf("s")!==-1;default:return!1}},A=function(){return z("h")||z("m")||z("s")},B=function(){return z("y")||z("M")||z("d")},C=function(){var b=a("<thead>").append(a("<tr>").append(a("<th>").addClass("prev").attr("data-action","previous").append(a("<span>").addClass(d.icons.previous))).append(a("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",d.calendarWeeks?"6":"5")).append(a("<th>").addClass("next").attr("data-action","next").append(a("<span>").addClass(d.icons.next)))),c=a("<tbody>").append(a("<tr>").append(a("<td>").attr("colspan",d.calendarWeeks?"8":"7")));return[a("<div>").addClass("datepicker-days").append(a("<table>").addClass("table-condensed").append(b).append(a("<tbody>"))),a("<div>").addClass("datepicker-months").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone())),a("<div>").addClass("datepicker-years").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone())),a("<div>").addClass("datepicker-decades").append(a("<table>").addClass("table-condensed").append(b.clone()).append(c.clone()))]},D=function(){var b=a("<tr>"),c=a("<tr>"),e=a("<tr>");return z("h")&&(b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:d.tooltips.pickHour}).attr("data-action","showHours"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(a("<span>").addClass(d.icons.down))))),z("m")&&(z("h")&&(b.append(a("<td>").addClass("separator")),c.append(a("<td>").addClass("separator").html(":")),e.append(a("<td>").addClass("separator"))),b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:d.tooltips.pickMinute}).attr("data-action","showMinutes"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(a("<span>").addClass(d.icons.down))))),z("s")&&(z("m")&&(b.append(a("<td>").addClass("separator")),c.append(a("<td>").addClass("separator").html(":")),e.append(a("<td>").addClass("separator"))),b.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(a("<span>").addClass(d.icons.up)))),c.append(a("<td>").append(a("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:d.tooltips.pickSecond}).attr("data-action","showSeconds"))),e.append(a("<td>").append(a("<a>").attr({href:"#",tabindex:"-1",title:d.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(a("<span>").addClass(d.icons.down))))),h||(b.append(a("<td>").addClass("separator")),c.append(a("<td>").append(a("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:d.tooltips.togglePeriod}))),e.append(a("<td>").addClass("separator"))),a("<div>").addClass("timepicker-picker").append(a("<table>").addClass("table-condensed").append([b,c,e]))},E=function(){var b=a("<div>").addClass("timepicker-hours").append(a("<table>").addClass("table-condensed")),c=a("<div>").addClass("timepicker-minutes").append(a("<table>").addClass("table-condensed")),d=a("<div>").addClass("timepicker-seconds").append(a("<table>").addClass("table-condensed")),e=[D()];return z("h")&&e.push(b),z("m")&&e.push(c),z("s")&&e.push(d),e},F=function(){var b=[];return d.showTodayButton&&b.push(a("<td>").append(a("<a>").attr({"data-action":"today",title:d.tooltips.today}).append(a("<span>").addClass(d.icons.today)))),!d.sideBySide&&B()&&A()&&b.push(a("<td>").append(a("<a>").attr({"data-action":"togglePicker",title:d.tooltips.selectTime}).append(a("<span>").addClass(d.icons.time)))),d.showClear&&b.push(a("<td>").append(a("<a>").attr({"data-action":"clear",title:d.tooltips.clear}).append(a("<span>").addClass(d.icons.clear)))),d.showClose&&b.push(a("<td>").append(a("<a>").attr({"data-action":"close",title:d.tooltips.close}).append(a("<span>").addClass(d.icons.close)))),a("<table>").addClass("table-condensed").append(a("<tbody>").append(a("<tr>").append(b)))},G=function(){var b=a("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),c=a("<div>").addClass("datepicker").append(C()),e=a("<div>").addClass("timepicker").append(E()),f=a("<ul>").addClass("list-unstyled"),g=a("<li>").addClass("picker-switch"+(d.collapse?" accordion-toggle":"")).append(F());return d.inline&&b.removeClass("dropdown-menu"),h&&b.addClass("usetwentyfour"),z("s")&&!h&&b.addClass("wider"),d.sideBySide&&B()&&A()?(b.addClass("timepicker-sbs"),"top"===d.toolbarPlacement&&b.append(g),b.append(a("<div>").addClass("row").append(c.addClass("col-md-6")).append(e.addClass("col-md-6"))),"bottom"===d.toolbarPlacement&&b.append(g),b):("top"===d.toolbarPlacement&&f.append(g),B()&&f.append(a("<li>").addClass(d.collapse&&A()?"collapse in":"").append(c)),"default"===d.toolbarPlacement&&f.append(g),A()&&f.append(a("<li>").addClass(d.collapse&&B()?"collapse":"").append(e)),"bottom"===d.toolbarPlacement&&f.append(g),b.append(f))},H=function(){var b,e={};return b=c.is("input")||d.inline?c.data():c.find("input").data(),b.dateOptions&&b.dateOptions instanceof Object&&(e=a.extend(!0,e,b.dateOptions)),a.each(d,function(a){var c="date"+a.charAt(0).toUpperCase()+a.slice(1);void 0!==b[c]&&(e[a]=b[c])}),e},I=function(){var b,e=(n||c).position(),f=(n||c).offset(),g=d.widgetPositioning.vertical,h=d.widgetPositioning.horizontal;if(d.widgetParent)b=d.widgetParent.append(o);else if(c.is("input"))b=c.after(o).parent();else{if(d.inline)return void(b=c.append(o));b=c,c.children().first().after(o)}if("auto"===g&&(g=f.top+1.5*o.height()>=a(window).height()+a(window).scrollTop()&&o.height()+c.outerHeight()<f.top?"top":"bottom"),"auto"===h&&(h=b.width()<f.left+o.outerWidth()/2&&f.left+o.outerWidth()>a(window).width()?"right":"left"),"top"===g?o.addClass("top").removeClass("bottom"):o.addClass("bottom").removeClass("top"),"right"===h?o.addClass("pull-right"):o.removeClass("pull-right"),"static"===b.css("position")&&(b=b.parents().filter(function(){return"static"!==a(this).css("position")}).first()),0===b.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");o.css({top:"top"===g?"auto":e.top+c.outerHeight(),bottom:"top"===g?b.outerHeight()-(b===c?0:e.top):"auto",left:"left"===h?b===c?0:e.left:"auto",right:"left"===h?"auto":b.outerWidth()-c.outerWidth()-(b===c?0:e.left)})},J=function(a){"dp.change"===a.type&&(a.date&&a.date.isSame(a.oldDate)||!a.date&&!a.oldDate)||c.trigger(a)},K=function(a){"y"===a&&(a="YYYY"),J({type:"dp.update",change:a,viewDate:f.clone()})},L=function(a){o&&(a&&(k=Math.max(p,Math.min(3,k+a))),o.find(".datepicker > div").hide().filter(".datepicker-"+q[k].clsName).show())},M=function(){var b=a("<tr>"),c=f.clone().startOf("w").startOf("d");for(d.calendarWeeks===!0&&b.append(a("<th>").addClass("cw").text("#"));c.isBefore(f.clone().endOf("w"));)b.append(a("<th>").addClass("dow").text(c.format("dd"))),c.add(1,"d");o.find(".datepicker-days thead").append(b)},N=function(a){return d.disabledDates[a.format("YYYY-MM-DD")]===!0},O=function(a){return d.enabledDates[a.format("YYYY-MM-DD")]===!0},P=function(a){return d.disabledHours[a.format("H")]===!0},Q=function(a){return d.enabledHours[a.format("H")]===!0},R=function(b,c){if(!b.isValid())return!1;if(d.disabledDates&&"d"===c&&N(b))return!1;if(d.enabledDates&&"d"===c&&!O(b))return!1;if(d.minDate&&b.isBefore(d.minDate,c))return!1;if(d.maxDate&&b.isAfter(d.maxDate,c))return!1;if(d.daysOfWeekDisabled&&"d"===c&&d.daysOfWeekDisabled.indexOf(b.day())!==-1)return!1;if(d.disabledHours&&("h"===c||"m"===c||"s"===c)&&P(b))return!1;if(d.enabledHours&&("h"===c||"m"===c||"s"===c)&&!Q(b))return!1;if(d.disabledTimeIntervals&&("h"===c||"m"===c||"s"===c)){var e=!1;if(a.each(d.disabledTimeIntervals,function(){if(b.isBetween(this[0],this[1]))return e=!0,!1}),e)return!1}return!0},S=function(){for(var b=[],c=f.clone().startOf("y").startOf("d");c.isSame(f,"y");)b.push(a("<span>").attr("data-action","selectMonth").addClass("month").text(c.format("MMM"))),c.add(1,"M");o.find(".datepicker-months td").empty().append(b)},T=function(){var b=o.find(".datepicker-months"),c=b.find("th"),g=b.find("tbody").find("span");c.eq(0).find("span").attr("title",d.tooltips.prevYear),c.eq(1).attr("title",d.tooltips.selectYear),c.eq(2).find("span").attr("title",d.tooltips.nextYear),b.find(".disabled").removeClass("disabled"),R(f.clone().subtract(1,"y"),"y")||c.eq(0).addClass("disabled"),c.eq(1).text(f.year()),R(f.clone().add(1,"y"),"y")||c.eq(2).addClass("disabled"),g.removeClass("active"),e.isSame(f,"y")&&!m&&g.eq(e.month()).addClass("active"),g.each(function(b){R(f.clone().month(b),"M")||a(this).addClass("disabled")})},U=function(){var a=o.find(".datepicker-years"),b=a.find("th"),c=f.clone().subtract(5,"y"),g=f.clone().add(6,"y"),h="";for(b.eq(0).find("span").attr("title",d.tooltips.prevDecade),b.eq(1).attr("title",d.tooltips.selectDecade),b.eq(2).find("span").attr("title",d.tooltips.nextDecade),a.find(".disabled").removeClass("disabled"),d.minDate&&d.minDate.isAfter(c,"y")&&b.eq(0).addClass("disabled"),b.eq(1).text(c.year()+"-"+g.year()),d.maxDate&&d.maxDate.isBefore(g,"y")&&b.eq(2).addClass("disabled");!c.isAfter(g,"y");)h+='<span data-action="selectYear" class="year'+(c.isSame(e,"y")&&!m?" active":"")+(R(c,"y")?"":" disabled")+'">'+c.year()+"</span>",c.add(1,"y");a.find("td").html(h)},V=function(){var a,c=o.find(".datepicker-decades"),g=c.find("th"),h=b({y:f.year()-f.year()%100-1}),i=h.clone().add(100,"y"),j=h.clone(),k=!1,l=!1,m="";for(g.eq(0).find("span").attr("title",d.tooltips.prevCentury),g.eq(2).find("span").attr("title",d.tooltips.nextCentury),c.find(".disabled").removeClass("disabled"),(h.isSame(b({y:1900}))||d.minDate&&d.minDate.isAfter(h,"y"))&&g.eq(0).addClass("disabled"),g.eq(1).text(h.year()+"-"+i.year()),(h.isSame(b({y:2e3}))||d.maxDate&&d.maxDate.isBefore(i,"y"))&&g.eq(2).addClass("disabled");!h.isAfter(i,"y");)a=h.year()+12,k=d.minDate&&d.minDate.isAfter(h,"y")&&d.minDate.year()<=a,l=d.maxDate&&d.maxDate.isAfter(h,"y")&&d.maxDate.year()<=a,m+='<span data-action="selectDecade" class="decade'+(e.isAfter(h)&&e.year()<=a?" active":"")+(R(h,"y")||k||l?"":" disabled")+'" data-selection="'+(h.year()+6)+'">'+(h.year()+1)+" - "+(h.year()+12)+"</span>",h.add(12,"y");m+="<span></span><span></span><span></span>",c.find("td").html(m),g.eq(1).text(j.year()+1+"-"+h.year())},W=function(){var b,c,g,h=o.find(".datepicker-days"),i=h.find("th"),j=[],k=[];if(B()){for(i.eq(0).find("span").attr("title",d.tooltips.prevMonth),i.eq(1).attr("title",d.tooltips.selectMonth),i.eq(2).find("span").attr("title",d.tooltips.nextMonth),h.find(".disabled").removeClass("disabled"),i.eq(1).text(f.format(d.dayViewHeaderFormat)),R(f.clone().subtract(1,"M"),"M")||i.eq(0).addClass("disabled"),R(f.clone().add(1,"M"),"M")||i.eq(2).addClass("disabled"),b=f.clone().startOf("M").startOf("w").startOf("d"),g=0;g<42;g++)0===b.weekday()&&(c=a("<tr>"),d.calendarWeeks&&c.append('<td class="cw">'+b.week()+"</td>"),j.push(c)),k=["day"],b.isBefore(f,"M")&&k.push("old"),b.isAfter(f,"M")&&k.push("new"),b.isSame(e,"d")&&!m&&k.push("active"),R(b,"d")||k.push("disabled"),b.isSame(y(),"d")&&k.push("today"),0!==b.day()&&6!==b.day()||k.push("weekend"),J({type:"dp.classify",date:b,classNames:k}),c.append('<td data-action="selectDay" data-day="'+b.format("L")+'" class="'+k.join(" ")+'">'+b.date()+"</td>"),b.add(1,"d");h.find("tbody").empty().append(j),T(),U(),V()}},X=function(){var b=o.find(".timepicker-hours table"),c=f.clone().startOf("d"),d=[],e=a("<tr>");for(f.hour()>11&&!h&&c.hour(12);c.isSame(f,"d")&&(h||f.hour()<12&&c.hour()<12||f.hour()>11);)c.hour()%4===0&&(e=a("<tr>"),d.push(e)),e.append('<td data-action="selectHour" class="hour'+(R(c,"h")?"":" disabled")+'">'+c.format(h?"HH":"hh")+"</td>"),c.add(1,"h");b.empty().append(d)},Y=function(){for(var b=o.find(".timepicker-minutes table"),c=f.clone().startOf("h"),e=[],g=a("<tr>"),h=1===d.stepping?5:d.stepping;f.isSame(c,"h");)c.minute()%(4*h)===0&&(g=a("<tr>"),e.push(g)),g.append('<td data-action="selectMinute" class="minute'+(R(c,"m")?"":" disabled")+'">'+c.format("mm")+"</td>"),c.add(h,"m");b.empty().append(e)},Z=function(){for(var b=o.find(".timepicker-seconds table"),c=f.clone().startOf("m"),d=[],e=a("<tr>");f.isSame(c,"m");)c.second()%20===0&&(e=a("<tr>"),d.push(e)),e.append('<td data-action="selectSecond" class="second'+(R(c,"s")?"":" disabled")+'">'+c.format("ss")+"</td>"),c.add(5,"s");b.empty().append(d)},$=function(){var a,b,c=o.find(".timepicker span[data-time-component]");h||(a=o.find(".timepicker [data-action=togglePeriod]"),b=e.clone().add(e.hours()>=12?-12:12,"h"),a.text(e.format("A")),R(b,"h")?a.removeClass("disabled"):a.addClass("disabled")),c.filter("[data-time-component=hours]").text(e.format(h?"HH":"hh")),c.filter("[data-time-component=minutes]").text(e.format("mm")),c.filter("[data-time-component=seconds]").text(e.format("ss")),X(),Y(),Z()},_=function(){o&&(W(),$())},aa=function(a){var b=m?null:e;if(!a)return m=!0,g.val(""),c.data("date",""),J({type:"dp.change",date:!1,oldDate:b}),void _();if(a=a.clone().locale(d.locale),x()&&a.tz(d.timeZone),1!==d.stepping)for(a.minutes(Math.round(a.minutes()/d.stepping)*d.stepping).seconds(0);d.minDate&&a.isBefore(d.minDate);)a.add(d.stepping,"minutes");R(a)?(e=a,f=e.clone(),g.val(e.format(i)),c.data("date",e.format(i)),m=!1,_(),J({type:"dp.change",date:e.clone(),oldDate:b})):(d.keepInvalid?J({type:"dp.change",date:a,oldDate:b}):g.val(m?"":e.format(i)),J({type:"dp.error",date:a,oldDate:b}))},ba=function(){var b=!1;return o?(o.find(".collapse").each(function(){var c=a(this).data("collapse");return!c||!c.transitioning||(b=!0,!1)}),b?l:(n&&n.hasClass("btn")&&n.toggleClass("active"),o.hide(),a(window).off("resize",I),o.off("click","[data-action]"),o.off("mousedown",!1),o.remove(),o=!1,J({type:"dp.hide",date:e.clone()}),g.blur(),f=e.clone(),l)):l},ca=function(){aa(null)},da=function(a){return void 0===d.parseInputDate?(!b.isMoment(a)||a instanceof Date)&&(a=y(a)):a=d.parseInputDate(a),a},ea={next:function(){var a=q[k].navFnc;f.add(q[k].navStep,a),W(),K(a)},previous:function(){var a=q[k].navFnc;f.subtract(q[k].navStep,a),W(),K(a)},pickerSwitch:function(){L(1)},selectMonth:function(b){var c=a(b.target).closest("tbody").find("span").index(a(b.target));f.month(c),k===p?(aa(e.clone().year(f.year()).month(f.month())),d.inline||ba()):(L(-1),W()),K("M")},selectYear:function(b){var c=parseInt(a(b.target).text(),10)||0;f.year(c),k===p?(aa(e.clone().year(f.year())),d.inline||ba()):(L(-1),W()),K("YYYY")},selectDecade:function(b){var c=parseInt(a(b.target).data("selection"),10)||0;f.year(c),k===p?(aa(e.clone().year(f.year())),d.inline||ba()):(L(-1),W()),K("YYYY")},selectDay:function(b){var c=f.clone();a(b.target).is(".old")&&c.subtract(1,"M"),a(b.target).is(".new")&&c.add(1,"M"),aa(c.date(parseInt(a(b.target).text(),10))),A()||d.keepOpen||d.inline||ba()},incrementHours:function(){var a=e.clone().add(1,"h");R(a,"h")&&aa(a)},incrementMinutes:function(){var a=e.clone().add(d.stepping,"m");R(a,"m")&&aa(a)},incrementSeconds:function(){var a=e.clone().add(1,"s");R(a,"s")&&aa(a)},decrementHours:function(){var a=e.clone().subtract(1,"h");R(a,"h")&&aa(a)},decrementMinutes:function(){var a=e.clone().subtract(d.stepping,"m");R(a,"m")&&aa(a)},decrementSeconds:function(){var a=e.clone().subtract(1,"s");R(a,"s")&&aa(a)},togglePeriod:function(){aa(e.clone().add(e.hours()>=12?-12:12,"h"))},togglePicker:function(b){var c,e=a(b.target),f=e.closest("ul"),g=f.find(".in"),h=f.find(".collapse:not(.in)");if(g&&g.length){if(c=g.data("collapse"),c&&c.transitioning)return;g.collapse?(g.collapse("hide"),h.collapse("show")):(g.removeClass("in"),h.addClass("in")),e.is("span")?e.toggleClass(d.icons.time+" "+d.icons.date):e.find("span").toggleClass(d.icons.time+" "+d.icons.date)}},showPicker:function(){o.find(".timepicker > div:not(.timepicker-picker)").hide(),o.find(".timepicker .timepicker-picker").show()},showHours:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-hours").show()},showMinutes:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){o.find(".timepicker .timepicker-picker").hide(),o.find(".timepicker .timepicker-seconds").show()},selectHour:function(b){var c=parseInt(a(b.target).text(),10);h||(e.hours()>=12?12!==c&&(c+=12):12===c&&(c=0)),aa(e.clone().hours(c)),ea.showPicker.call(l)},selectMinute:function(b){aa(e.clone().minutes(parseInt(a(b.target).text(),10))),ea.showPicker.call(l)},selectSecond:function(b){aa(e.clone().seconds(parseInt(a(b.target).text(),10))),ea.showPicker.call(l)},clear:ca,today:function(){var a=y();R(a,"d")&&aa(a)},close:ba},fa=function(b){return!a(b.currentTarget).is(".disabled")&&(ea[a(b.currentTarget).data("action")].apply(l,arguments),!1)},ga=function(){var b,c={year:function(a){return a.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(a){return a.date(1).hours(0).seconds(0).minutes(0)},day:function(a){return a.hours(0).seconds(0).minutes(0)},hour:function(a){return a.seconds(0).minutes(0)},minute:function(a){return a.seconds(0)}};return g.prop("disabled")||!d.ignoreReadonly&&g.prop("readonly")||o?l:(void 0!==g.val()&&0!==g.val().trim().length?aa(da(g.val().trim())):m&&d.useCurrent&&(d.inline||g.is("input")&&0===g.val().trim().length)&&(b=y(),"string"==typeof d.useCurrent&&(b=c[d.useCurrent](b)),aa(b)),o=G(),M(),S(),o.find(".timepicker-hours").hide(),o.find(".timepicker-minutes").hide(),o.find(".timepicker-seconds").hide(),_(),L(),a(window).on("resize",I),o.on("click","[data-action]",fa),o.on("mousedown",!1),n&&n.hasClass("btn")&&n.toggleClass("active"),I(),o.show(),d.focusOnShow&&!g.is(":focus")&&g.focus(),J({type:"dp.show"}),l)},ha=function(){return o?ba():ga()},ia=function(a){var b,c,e,f,g=null,h=[],i={},j=a.which,k="p";w[j]=k;for(b in w)w.hasOwnProperty(b)&&w[b]===k&&(h.push(b),parseInt(b,10)!==j&&(i[b]=!0));for(b in d.keyBinds)if(d.keyBinds.hasOwnProperty(b)&&"function"==typeof d.keyBinds[b]&&(e=b.split(" "),e.length===h.length&&v[j]===e[e.length-1])){for(f=!0,c=e.length-2;c>=0;c--)if(!(v[e[c]]in i)){f=!1;break}if(f){g=d.keyBinds[b];break}}g&&(g.call(l,o),a.stopPropagation(),a.preventDefault())},ja=function(a){w[a.which]="r",a.stopPropagation(),a.preventDefault()},ka=function(b){var c=a(b.target).val().trim(),d=c?da(c):null;return aa(d),b.stopImmediatePropagation(),!1},la=function(){g.on({change:ka,blur:d.debug?"":ba,keydown:ia,keyup:ja,focus:d.allowInputToggle?ga:""}),c.is("input")?g.on({focus:ga}):n&&(n.on("click",ha),n.on("mousedown",!1))},ma=function(){g.off({change:ka,blur:blur,keydown:ia,keyup:ja,focus:d.allowInputToggle?ba:""}),c.is("input")?g.off({focus:ga}):n&&(n.off("click",ha),n.off("mousedown",!1))},na=function(b){var c={};return a.each(b,function(){var a=da(this);a.isValid()&&(c[a.format("YYYY-MM-DD")]=!0)}),!!Object.keys(c).length&&c},oa=function(b){var c={};return a.each(b,function(){c[this]=!0}),!!Object.keys(c).length&&c},pa=function(){var a=d.format||"L LT";i=a.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(a){var b=e.localeData().longDateFormat(a)||a;return b.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(a){return e.localeData().longDateFormat(a)||a})}),j=d.extraFormats?d.extraFormats.slice():[],j.indexOf(a)<0&&j.indexOf(i)<0&&j.push(i),h=i.toLowerCase().indexOf("a")<1&&i.replace(/\[.*?\]/g,"").indexOf("h")<1,z("y")&&(p=2),z("M")&&(p=1),z("d")&&(p=0),k=Math.max(p,k),m||aa(e)};if(l.destroy=function(){ba(),ma(),c.removeData("DateTimePicker"),c.removeData("date")},l.toggle=ha,l.show=ga,l.hide=ba,l.disable=function(){return ba(),n&&n.hasClass("btn")&&n.addClass("disabled"),g.prop("disabled",!0),l},l.enable=function(){return n&&n.hasClass("btn")&&n.removeClass("disabled"),g.prop("disabled",!1),l},l.ignoreReadonly=function(a){if(0===arguments.length)return d.ignoreReadonly;if("boolean"!=typeof a)throw new TypeError("ignoreReadonly () expects a boolean parameter");return d.ignoreReadonly=a,l},l.options=function(b){if(0===arguments.length)return a.extend(!0,{},d);if(!(b instanceof Object))throw new TypeError("options() options parameter should be an object");return a.extend(!0,d,b),a.each(d,function(a,b){if(void 0===l[a])throw new TypeError("option "+a+" is not recognized!");l[a](b)}),l},l.date=function(a){if(0===arguments.length)return m?null:e.clone();if(!(null===a||"string"==typeof a||b.isMoment(a)||a instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return aa(null===a?null:da(a)),l},l.format=function(a){if(0===arguments.length)return d.format;if("string"!=typeof a&&("boolean"!=typeof a||a!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+a);return d.format=a,i&&pa(),l},l.timeZone=function(a){if(0===arguments.length)return d.timeZone;if("string"!=typeof a)throw new TypeError("newZone() expects a string parameter");return d.timeZone=a,l},l.dayViewHeaderFormat=function(a){if(0===arguments.length)return d.dayViewHeaderFormat;if("string"!=typeof a)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return d.dayViewHeaderFormat=a,l},l.extraFormats=function(a){if(0===arguments.length)return d.extraFormats;if(a!==!1&&!(a instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return d.extraFormats=a,j&&pa(),l},l.disabledDates=function(b){if(0===arguments.length)return d.disabledDates?a.extend({},d.disabledDates):d.disabledDates;if(!b)return d.disabledDates=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return d.disabledDates=na(b),d.enabledDates=!1,_(),l},l.enabledDates=function(b){if(0===arguments.length)return d.enabledDates?a.extend({},d.enabledDates):d.enabledDates;if(!b)return d.enabledDates=!1,_(),l;if(!(b instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return d.enabledDates=na(b),d.disabledDates=!1,_(),l},l.daysOfWeekDisabled=function(a){if(0===arguments.length)return d.daysOfWeekDisabled.splice(0);if("boolean"==typeof a&&!a)return d.daysOfWeekDisabled=!1,_(),l;if(!(a instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(d.daysOfWeekDisabled=a.reduce(function(a,b){return b=parseInt(b,10),b>6||b<0||isNaN(b)?a:(a.indexOf(b)===-1&&a.push(b),a)},[]).sort(),d.useCurrent&&!d.keepInvalid){for(var b=0;!R(e,"d");){if(e.add(1,"d"),31===b)throw"Tried 31 times to find a valid date";b++}aa(e)}return _(),l},l.maxDate=function(a){if(0===arguments.length)return d.maxDate?d.maxDate.clone():d.maxDate;if("boolean"==typeof a&&a===!1)return d.maxDate=!1,_(),l;"string"==typeof a&&("now"!==a&&"moment"!==a||(a=y()));var b=da(a);if(!b.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+a);if(d.minDate&&b.isBefore(d.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+b.format(i));return d.maxDate=b,d.useCurrent&&!d.keepInvalid&&e.isAfter(a)&&aa(d.maxDate),f.isAfter(b)&&(f=b.clone().subtract(d.stepping,"m")),_(),l},l.minDate=function(a){if(0===arguments.length)return d.minDate?d.minDate.clone():d.minDate;if("boolean"==typeof a&&a===!1)return d.minDate=!1,_(),l;"string"==typeof a&&("now"!==a&&"moment"!==a||(a=y()));var b=da(a);if(!b.isValid())throw new TypeError("minDate() Could not parse date parameter: "+a);if(d.maxDate&&b.isAfter(d.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+b.format(i));return d.minDate=b,d.useCurrent&&!d.keepInvalid&&e.isBefore(a)&&aa(d.minDate),f.isBefore(b)&&(f=b.clone().add(d.stepping,"m")),_(),l},l.defaultDate=function(a){if(0===arguments.length)return d.defaultDate?d.defaultDate.clone():d.defaultDate;if(!a)return d.defaultDate=!1,l;"string"==typeof a&&(a="now"===a||"moment"===a?y():y(a));var b=da(a);if(!b.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+a);if(!R(b))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return d.defaultDate=b,(d.defaultDate&&d.inline||""===g.val().trim())&&aa(d.defaultDate),l},l.locale=function(a){if(0===arguments.length)return d.locale;if(!b.localeData(a))throw new TypeError("locale() locale "+a+" is not loaded from moment locales!");return d.locale=a,e.locale(d.locale),f.locale(d.locale),i&&pa(),o&&(ba(),ga()),l},l.stepping=function(a){return 0===arguments.length?d.stepping:(a=parseInt(a,10),(isNaN(a)||a<1)&&(a=1),d.stepping=a,l)},l.useCurrent=function(a){var b=["year","month","day","hour","minute"];if(0===arguments.length)return d.useCurrent;if("boolean"!=typeof a&&"string"!=typeof a)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof a&&b.indexOf(a.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+b.join(", "));return d.useCurrent=a,l},l.collapse=function(a){if(0===arguments.length)return d.collapse;if("boolean"!=typeof a)throw new TypeError("collapse() expects a boolean parameter");return d.collapse===a?l:(d.collapse=a,o&&(ba(),ga()),l)},l.icons=function(b){if(0===arguments.length)return a.extend({},d.icons);if(!(b instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return a.extend(d.icons,b),o&&(ba(),ga()),l},l.tooltips=function(b){if(0===arguments.length)return a.extend({},d.tooltips);if(!(b instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return a.extend(d.tooltips,b),o&&(ba(),ga()),l},l.useStrict=function(a){if(0===arguments.length)return d.useStrict;if("boolean"!=typeof a)throw new TypeError("useStrict() expects a boolean parameter");return d.useStrict=a,l},l.sideBySide=function(a){if(0===arguments.length)return d.sideBySide;if("boolean"!=typeof a)throw new TypeError("sideBySide() expects a boolean parameter");return d.sideBySide=a,o&&(ba(),ga()),l},l.viewMode=function(a){if(0===arguments.length)return d.viewMode;if("string"!=typeof a)throw new TypeError("viewMode() expects a string parameter");if(r.indexOf(a)===-1)throw new TypeError("viewMode() parameter must be one of ("+r.join(", ")+") value");return d.viewMode=a,k=Math.max(r.indexOf(a),p),L(),l},l.toolbarPlacement=function(a){if(0===arguments.length)return d.toolbarPlacement;if("string"!=typeof a)throw new TypeError("toolbarPlacement() expects a string parameter");if(u.indexOf(a)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+u.join(", ")+") value");return d.toolbarPlacement=a,o&&(ba(),ga()),l},l.widgetPositioning=function(b){if(0===arguments.length)return a.extend({},d.widgetPositioning);if("[object Object]"!=={}.toString.call(b))throw new TypeError("widgetPositioning() expects an object variable");if(b.horizontal){if("string"!=typeof b.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(b.horizontal=b.horizontal.toLowerCase(),t.indexOf(b.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+t.join(", ")+")");d.widgetPositioning.horizontal=b.horizontal}if(b.vertical){if("string"!=typeof b.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(b.vertical=b.vertical.toLowerCase(),s.indexOf(b.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+s.join(", ")+")");d.widgetPositioning.vertical=b.vertical}return _(),l},l.calendarWeeks=function(a){if(0===arguments.length)return d.calendarWeeks;if("boolean"!=typeof a)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return d.calendarWeeks=a,_(),l},l.showTodayButton=function(a){if(0===arguments.length)return d.showTodayButton;if("boolean"!=typeof a)throw new TypeError("showTodayButton() expects a boolean parameter");return d.showTodayButton=a,o&&(ba(),ga()),l},l.showClear=function(a){if(0===arguments.length)return d.showClear;if("boolean"!=typeof a)throw new TypeError("showClear() expects a boolean parameter");return d.showClear=a,o&&(ba(),ga()),l},l.widgetParent=function(b){if(0===arguments.length)return d.widgetParent;if("string"==typeof b&&(b=a(b)),null!==b&&"string"!=typeof b&&!(b instanceof a))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return d.widgetParent=b,o&&(ba(),ga()),l},l.keepOpen=function(a){if(0===arguments.length)return d.keepOpen;if("boolean"!=typeof a)throw new TypeError("keepOpen() expects a boolean parameter");return d.keepOpen=a,l},l.focusOnShow=function(a){if(0===arguments.length)return d.focusOnShow;if("boolean"!=typeof a)throw new TypeError("focusOnShow() expects a boolean parameter");return d.focusOnShow=a,l},l.inline=function(a){if(0===arguments.length)return d.inline;if("boolean"!=typeof a)throw new TypeError("inline() expects a boolean parameter");return d.inline=a,l},l.clear=function(){return ca(),l},l.keyBinds=function(a){return 0===arguments.length?d.keyBinds:(d.keyBinds=a,l)},l.getMoment=function(a){return y(a)},l.debug=function(a){if("boolean"!=typeof a)throw new TypeError("debug() expects a boolean parameter");return d.debug=a,l},l.allowInputToggle=function(a){if(0===arguments.length)return d.allowInputToggle;if("boolean"!=typeof a)throw new TypeError("allowInputToggle() expects a boolean parameter");return d.allowInputToggle=a,l},l.showClose=function(a){if(0===arguments.length)return d.showClose;if("boolean"!=typeof a)throw new TypeError("showClose() expects a boolean parameter");return d.showClose=a,l},l.keepInvalid=function(a){if(0===arguments.length)return d.keepInvalid;if("boolean"!=typeof a)throw new TypeError("keepInvalid() expects a boolean parameter");return d.keepInvalid=a,l},l.datepickerInput=function(a){if(0===arguments.length)return d.datepickerInput;if("string"!=typeof a)throw new TypeError("datepickerInput() expects a string parameter");return d.datepickerInput=a,l},l.parseInputDate=function(a){if(0===arguments.length)return d.parseInputDate;if("function"!=typeof a)throw new TypeError("parseInputDate() sholud be as function");return d.parseInputDate=a,l},l.disabledTimeIntervals=function(b){if(0===arguments.length)return d.disabledTimeIntervals?a.extend({},d.disabledTimeIntervals):d.disabledTimeIntervals;if(!b)return d.disabledTimeIntervals=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return d.disabledTimeIntervals=b,_(),l},l.disabledHours=function(b){if(0===arguments.length)return d.disabledHours?a.extend({},d.disabledHours):d.disabledHours;if(!b)return d.disabledHours=!1,_(),l;if(!(b instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(d.disabledHours=oa(b),d.enabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var c=0;!R(e,"h");){if(e.add(1,"h"),24===c)throw"Tried 24 times to find a valid date";c++}aa(e)}return _(),l},l.enabledHours=function(b){if(0===arguments.length)return d.enabledHours?a.extend({},d.enabledHours):d.enabledHours;if(!b)return d.enabledHours=!1,_(),l;if(!(b instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(d.enabledHours=oa(b),d.disabledHours=!1,d.useCurrent&&!d.keepInvalid){for(var c=0;!R(e,"h");){if(e.add(1,"h"),24===c)throw"Tried 24 times to find a valid date";c++}aa(e)}return _(),l},l.viewDate=function(a){if(0===arguments.length)return f.clone();if(!a)return f=e.clone(),l;if(!("string"==typeof a||b.isMoment(a)||a instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return f=da(a),K(),l},c.is("input"))g=c;else if(g=c.find(d.datepickerInput),0===g.length)g=c.find("input");else if(!g.is("input"))throw new Error('CSS class "'+d.datepickerInput+'" cannot be applied to non input element');if(c.hasClass("input-group")&&(n=0===c.find(".datepickerbutton").length?c.find(".input-group-addon"):c.find(".datepickerbutton")),!d.inline&&!g.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return e=y(),f=e.clone(),a.extend(!0,d,H()),l.options(d),pa(),la(),g.prop("disabled")&&l.disable(),g.is("input")&&0!==g.val().trim().length?aa(da(g.val().trim())):d.defaultDate&&void 0===g.attr("placeholder")&&aa(d.defaultDate),d.inline&&ga(),l};return a.fn.datetimepicker=function(b){b=b||{};var d,e=Array.prototype.slice.call(arguments,1),f=!0,g=["destroy","hide","show","toggle"];if("object"==typeof b)return this.each(function(){var d,e=a(this);e.data("DateTimePicker")||(d=a.extend(!0,{},a.fn.datetimepicker.defaults,b),e.data("DateTimePicker",c(e,d)))});if("string"==typeof b)return this.each(function(){var c=a(this),g=c.data("DateTimePicker");if(!g)throw new Error('bootstrap-datetimepicker("'+b+'") method was called on an element that is not using DateTimePicker');d=g[b].apply(g,e),f=d===g}),f||a.inArray(b,g)>-1?this:d;throw new TypeError("Invalid arguments for DateTimePicker: "+b)},a.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:b.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().subtract(7,"d")):this.date(b.clone().add(this.stepping(),"m"))}},down:function(a){if(!a)return void this.show();var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().add(7,"d")):this.date(b.clone().subtract(this.stepping(),"m"))},"control up":function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().subtract(1,"y")):this.date(b.clone().add(1,"h"))}},"control down":function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")?this.date(b.clone().add(1,"y")):this.date(b.clone().subtract(1,"h"))}},left:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().subtract(1,"d"))}},right:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().add(1,"d"))}},pageUp:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().subtract(1,"M"))}},pageDown:function(a){if(a){var b=this.date()||this.getMoment();a.find(".datepicker").is(":visible")&&this.date(b.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(a){a&&a.find(".timepicker").is(":visible")&&a.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},a.fn.datetimepicker});(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(require('../moment')):typeof define==='function'&&define.amd?define(['moment'],factory):factory(global.moment)}(this,function(moment){'use strict';function processRelativeTime(number,withoutSuffix,key,isFuture){var format={'m':['eine Minute','einer Minute'],'h':['eine Stunde','einer Stunde'],'d':['ein Tag','einem Tag'],'dd':[number+' Tage',number+' Tagen'],'M':['ein Monat','einem Monat'],'MM':[number+' Monate',number+' Monaten'],'y':['ein Jahr','einem Jahr'],'yy':[number+' Jahre',number+' Jahren']};return withoutSuffix?format[key][0]:format[key][1];}
var de=moment.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 HH:mm',LLLL:'dddd, D. MMMM YYYY HH:mm'},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:processRelativeTime,mm:'%d Minuten',h:processRelativeTime,hh:'%d Stunden',d:processRelativeTime,dd:processRelativeTime,M:processRelativeTime,MM:processRelativeTime,y:processRelativeTime,yy:processRelativeTime},ordinalParse:/\d{1,2}\./,ordinal:'%d.',week:{dow:1,doy:4}});return de;}));/*! jQuery UI - v1.12.1 - 2016-09-14
* http://jqueryui.com
* Includes: widget.js, position.js, data.js, disable-selection.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/draggable.js, widgets/droppable.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/resizable.js, widgets/selectable.js, widgets/selectmenu.js, widgets/slider.js, widgets/sortable.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js
* Copyright jQuery Foundation and other contributors; Licensed MIT */(function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){function e(t){for(var e=t.css("visibility");"inherit"===e;)t=t.parent(),e=t.css("visibility");return"hidden"!==e}function i(t){for(var e,i;t.length&&t[0]!==document;){if(e=t.css("position"),("absolute"===e||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function s(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=n(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,o)}function o(){t.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){t.extend(e,i);for(var s in i)null==i[s]&&(e[s]=i[s]);return e}function r(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var h=0,l=Array.prototype.slice;t.cleanData=function(e){return function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)try{s=t._data(n,"events"),s&&s.remove&&t(n).triggerHandler("remove")}catch(a){}e(i)}}(t.cleanData),t.widget=function(e,i,s){var n,o,a,r={},h=e.split(".")[0];e=e.split(".")[1];var l=h+"-"+e;return s||(s=i,i=t.Widget),t.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr[":"][l.toLowerCase()]=function(e){return!!t.data(e,l)},t[h]=t[h]||{},n=t[h][e],o=t[h][e]=function(t,e){return this._createWidget?(arguments.length&&this._createWidget(t,e),void 0):new o(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(s,function(e,s){return t.isFunction(s)?(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=n,e=s.apply(this,arguments),this._super=i,this._superApply=o,e}}(),void 0):(r[e]=s,void 0)}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n?a.widgetEventPrefix||e:e},r,{constructor:o,namespace:h,widgetName:e,widgetFullName:l}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,s,n=l.call(arguments,1),o=0,a=n.length;a>o;o++)for(i in n[o])s=n[o][i],n[o].hasOwnProperty(i)&&void 0!==s&&(e[i]=t.isPlainObject(s)?t.isPlainObject(e[i])?t.widget.extend({},e[i],s):t.widget.extend({},s):s);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(n){var o="string"==typeof n,a=l.call(arguments,1),r=this;return o?this.length||"instance"!==n?this.each(function(){var i,o=t.data(this,s);return"instance"===n?(r=o,!1):o?t.isFunction(o[n])&&"_"!==n.charAt(0)?(i=o[n].apply(o,a),i!==o&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0):t.error("no such method '"+n+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; "+"attempted to call method '"+n+"'")}):r=void 0:(a.length&&(n=t.widget.extend.apply(null,[n].concat(a))),this.each(function(){var e=t.data(this,s);e?(e.option(n||{}),e._init&&e._init()):t.data(this,s,new i(n,this))})),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;s.length-1>o;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,o){var a,r;for(r=0;i.length>r;r++)a=n.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),n.classesElementLookup[i[r]]=a,s.push(i[r]),o&&e.classes[i[r]]&&s.push(e.classes[i[r]])}var s=[],n=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){return e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?o[a]:a).apply(o,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var h=s.match(/^([\w:-]*)\s*(.*)$/),l=h[1]+o.eventNamespace,c=h[2];c?n.on(l,c,r):i.on(l,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?s[t]:t).apply(s,arguments)}var s=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!(t.isFunction(a)&&a.apply(this.element[0],[i].concat(s))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){"string"==typeof n&&(n={effect:n});var a,r=n?n===!0||"number"==typeof n?i:n.effect||i:e;n=n||{},"number"==typeof n&&(n={duration:n}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}function s(e){var i=e[0];return 9===i.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:t.isWindow(i)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var n,o=Math.max,a=Math.abs,r=/left|center|right/,h=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,c=/^\w+/,u=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,s=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),o=s.children()[0];return t("body").append(s),e=o.offsetWidth,s.css("overflow","scroll"),i=o.offsetWidth,e===i&&(i=s[0].clientWidth),s.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),s=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth,o="scroll"===s||"auto"===s&&e.height<e.element[0].scrollHeight;return{width:o?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),s=t.isWindow(i[0]),n=!!i[0]&&9===i[0].nodeType,o=!s&&!n;return{element:i,isWindow:s,isDocument:n,offset:o?t(e).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var u,p,f,g,m,_,v=t(n.of),b=t.position.getWithinInfo(n.within),y=t.position.getScrollInfo(b),w=(n.collision||"flip").split(" "),k={};return _=s(v),v[0].preventDefault&&(n.at="left top"),p=_.width,f=_.height,g=_.offset,m=t.extend({},g),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=r.test(i[0])?i.concat(["center"]):h.test(i[0])?["center"].concat(i):["center","center"]),i[0]=r.test(i[0])?i[0]:"center",i[1]=h.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),k[this]=[t?t[0]:0,e?e[0]:0],n[this]=[c.exec(i[0])[0],c.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?m.left+=p:"center"===n.at[0]&&(m.left+=p/2),"bottom"===n.at[1]?m.top+=f:"center"===n.at[1]&&(m.top+=f/2),u=e(k.at,p,f),m.left+=u[0],m.top+=u[1],this.each(function(){var s,r,h=t(this),l=h.outerWidth(),c=h.outerHeight(),d=i(this,"marginLeft"),_=i(this,"marginTop"),x=l+d+i(this,"marginRight")+y.width,C=c+_+i(this,"marginBottom")+y.height,D=t.extend({},m),I=e(k.my,h.outerWidth(),h.outerHeight());"right"===n.my[0]?D.left-=l:"center"===n.my[0]&&(D.left-=l/2),"bottom"===n.my[1]?D.top-=c:"center"===n.my[1]&&(D.top-=c/2),D.left+=I[0],D.top+=I[1],s={marginLeft:d,marginTop:_},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](D,{targetWidth:p,targetHeight:f,elemWidth:l,elemHeight:c,collisionPosition:s,collisionWidth:x,collisionHeight:C,offset:[u[0]+I[0],u[1]+I[1]],my:n.my,at:n.at,within:b,elem:h})}),n.using&&(r=function(t){var e=g.left-D.left,i=e+p-l,s=g.top-D.top,r=s+f-c,u={target:{element:v,left:g.left,top:g.top,width:p,height:f},element:{element:h,left:D.left,top:D.top,width:l,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":s>0?"bottom":"middle"};l>p&&p>a(e+i)&&(u.horizontal="center"),c>f&&f>a(s+r)&&(u.vertical="middle"),u.important=o(a(e),a(i))>o(a(s),a(r))?"horizontal":"vertical",n.using.call(this,t,u)}),h.offset(t.extend(D,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,a=s.width,r=t.left-e.collisionPosition.marginLeft,h=n-r,l=r+e.collisionWidth-a-n;e.collisionWidth>a?h>0&&0>=l?(i=t.left+h+e.collisionWidth-a-n,t.left+=h-i):t.left=l>0&&0>=h?n:h>l?n+a-e.collisionWidth:n:h>0?t.left+=h:l>0?t.left-=l:t.left=o(t.left-r,t.left)},top:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollTop:s.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,h=n-r,l=r+e.collisionHeight-a-n;e.collisionHeight>a?h>0&&0>=l?(i=t.top+h+e.collisionHeight-a-n,t.top+=h-i):t.top=l>0&&0>=h?n:h>l?n+a-e.collisionHeight:n:h>0?t.top+=h:l>0?t.top-=l:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,s,n=e.within,o=n.offset.left+n.scrollLeft,r=n.width,h=n.isWindow?n.scrollLeft:n.offset.left,l=t.left-e.collisionPosition.marginLeft,c=l-h,u=l+e.collisionWidth-r-h,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(i=t.left+d+p+f+e.collisionWidth-r-o,(0>i||a(c)>i)&&(t.left+=d+p+f)):u>0&&(s=t.left-e.collisionPosition.marginLeft+d+p+f-h,(s>0||u>a(s))&&(t.left+=d+p+f))},top:function(t,e){var i,s,n=e.within,o=n.offset.top+n.scrollTop,r=n.height,h=n.isWindow?n.scrollTop:n.offset.top,l=t.top-e.collisionPosition.marginTop,c=l-h,u=l+e.collisionHeight-r-h,d="top"===e.my[1],p=d?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,f="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,g=-2*e.offset[1];0>c?(s=t.top+p+f+g+e.collisionHeight-r-o,(0>s||a(c)>s)&&(t.top+=p+f+g)):u>0&&(i=t.top-e.collisionPosition.marginTop+p+f+g-h,(i>0||u>a(i))&&(t.top+=p+f+g))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,s){return!!t.data(e,s[3])}}),t.fn.extend({disableSelection:function(){var t="onselectstart"in document.createElement("div")?"selectstart":"mousedown";return function(){return this.on(t+".ui-disableSelection",function(t){t.preventDefault()})}}(),enableSelection:function(){return this.off(".ui-disableSelection")}});var c="ui-effects-",u="ui-effects-style",d="ui-effects-animated",p=t;t.effects={effect:{}},function(t,e){function i(t,e,i){var s=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=s.floor?~~t:parseFloat(t),isNaN(t)?e.def:s.mod?(t+s.mod)%s.mod:0>t?0:t>s.max?s.max:t)}function s(i){var s=l(),n=s._rgba=[];return i=i.toLowerCase(),f(h,function(t,o){var a,r=o.re.exec(i),h=r&&o.parse(r),l=o.space||"rgba";return h?(a=s[l](h),s[c[l].cache]=a[c[l].cache],n=s._rgba=a._rgba,!1):e}),n.length?("0,0,0,0"===n.join()&&t.extend(n,o.transparent),s):o[i]}function n(t,e,i){return i=(i+1)%1,1>6*i?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var o,a="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",r=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,s,n){return new t.Color.fn.parse(e,i,s,n)},c={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},u={"byte":{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},p=t("<p>")[0],f=t.each;p.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(c,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(n,a,r,h){if(n===e)return this._rgba=[null,null,null,null],this;(n.jquery||n.nodeType)&&(n=t(n).css(a),a=e);var u=this,d=t.type(n),p=this._rgba=[];return a!==e&&(n=[n,a,r,h],d="array"),"string"===d?this.parse(s(n)||o._default):"array"===d?(f(c.rgba.props,function(t,e){p[e.idx]=i(n[e.idx],e)}),this):"object"===d?(n instanceof l?f(c,function(t,e){n[e.cache]&&(u[e.cache]=n[e.cache].slice())}):f(c,function(e,s){var o=s.cache;f(s.props,function(t,e){if(!u[o]&&s.to){if("alpha"===t||null==n[t])return;u[o]=s.to(u._rgba)}u[o][e.idx]=i(n[t],e,!0)}),u[o]&&0>t.inArray(null,u[o].slice(0,3))&&(u[o][3]=1,s.from&&(u._rgba=s.from(u[o])))}),this):e},is:function(t){var i=l(t),s=!0,n=this;return f(c,function(t,o){var a,r=i[o.cache];return r&&(a=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,i){return null!=r[i.idx]?s=r[i.idx]===a[i.idx]:e})),s}),s},_space:function(){var t=[],e=this;return f(c,function(i,s){e[s.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var s=l(t),n=s._space(),o=c[n],a=0===this.alpha()?l("transparent"):this,r=a[o.cache]||o.to(a._rgba),h=r.slice();return s=s[o.cache],f(o.props,function(t,n){var o=n.idx,a=r[o],l=s[o],c=u[n.type]||{};null!==l&&(null===a?h[o]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),h[o]=i((l-a)*e+a,n)))}),this[n](h)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(e)._rgba;return l(t.map(i,function(t,e){return(1-s)*n[e]+s*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),s=i.pop();return e&&i.push(~~(255*s)),"#"+t.map(i,function(t){return t=(t||0).toString(16),1===t.length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,c.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,s=t[0]/255,n=t[1]/255,o=t[2]/255,a=t[3],r=Math.max(s,n,o),h=Math.min(s,n,o),l=r-h,c=r+h,u=.5*c;return e=h===r?0:s===r?60*(n-o)/l+360:n===r?60*(o-s)/l+120:60*(s-n)/l+240,i=0===l?0:.5>=u?l/c:l/(2-c),[Math.round(e)%360,i,u,null==a?1:a]},c.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],s=t[2],o=t[3],a=.5>=s?s*(1+i):s+i-s*i,r=2*s-a;return[Math.round(255*n(r,a,e+1/3)),Math.round(255*n(r,a,e)),Math.round(255*n(r,a,e-1/3)),o]},f(c,function(s,n){var o=n.props,a=n.cache,h=n.to,c=n.from;l.fn[s]=function(s){if(h&&!this[a]&&(this[a]=h(this._rgba)),s===e)return this[a].slice();var n,r=t.type(s),u="array"===r||"object"===r?s:arguments,d=this[a].slice();return f(o,function(t,e){var s=u["object"===r?t:e.idx];null==s&&(s=d[e.idx]),d[e.idx]=i(s,e)}),c?(n=l(c(d)),n[a]=d,n):l(d)},f(o,function(e,i){l.fn[e]||(l.fn[e]=function(n){var o,a=t.type(n),h="alpha"===e?this._hsla?"hsla":"rgba":s,l=this[h](),c=l[i.idx];return"undefined"===a?c:("function"===a&&(n=n.call(this,c),a=t.type(n)),null==n&&i.empty?this:("string"===a&&(o=r.exec(n),o&&(n=c+parseFloat(o[2])*("+"===o[1]?1:-1))),l[i.idx]=n,this[h](l)))})})}),l.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,n){var o,a,r="";if("transparent"!==n&&("string"!==t.type(n)||(o=s(n)))){if(n=l(o||n),!d.rgba&&1!==n._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(h){}n=n.blend(r&&"transparent"!==r?r:"_default")}n=n.toRgbaString()}try{e.style[i]=n}catch(h){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook(a),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,s){e["border"+s+"Color"]=t}),e}},o=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(p),function(){function e(e){var i,s,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(n&&n.length&&n[0]&&n[n[0]])for(s=n.length;s--;)i=n[s],"string"==typeof n[i]&&(o[t.camelCase(i)]=n[i]);else for(i in n)"string"==typeof n[i]&&(o[i]=n[i]);return o}function i(e,i){var s,o,a={};for(s in i)o=i[s],e[s]!==o&&(n[s]||(t.fx.step[s]||!isNaN(parseFloat(o)))&&(a[s]=o));return a}var s=["add","remove","toggle"],n={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(p.style(t.elem,i,t.end),t.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(n,o,a,r){var h=t.speed(o,a,r);return this.queue(function(){var o,a=t(this),r=a.attr("class")||"",l=h.children?a.find("*").addBack():a;l=l.map(function(){var i=t(this);return{el:i,start:e(this)}}),o=function(){t.each(s,function(t,e){n[e]&&a[e+"Class"](n[e])})},o(),l=l.map(function(){return this.end=e(this.el[0]),this.diff=i(this.start,this.end),this}),a.attr("class",r),l=l.map(function(){var e=this,i=t.Deferred(),s=t.extend({},h,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,s),i.promise()}),t.when.apply(t,l.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),h.complete.call(a[0])})})},t.fn.extend({addClass:function(e){return function(i,s,n,o){return s?t.effects.animateClass.call(this,{add:i},s,n,o):e.apply(this,arguments)}}(t.fn.addClass),removeClass:function(e){return function(i,s,n,o){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},s,n,o):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(e){return function(i,s,n,o,a){return"boolean"==typeof s||void 0===s?n?t.effects.animateClass.call(this,s?{add:i}:{remove:i},n,o,a):e.apply(this,arguments):t.effects.animateClass.call(this,{toggle:i},s,n,o)}}(t.fn.toggleClass),switchClass:function(e,i,s,n,o){return t.effects.animateClass.call(this,{add:i,remove:e},s,n,o)}})}(),function(){function e(e,i,s,n){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(n=i,s=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(n=s,s=i,i={}),t.isFunction(s)&&(n=s,s=null),i&&t.extend(e,i),s=s||i.duration,e.duration=t.fx.off?0:"number"==typeof s?s:s in t.fx.speeds?t.fx.speeds[s]:t.fx.speeds._default,e.complete=n||i.complete,e}function i(e){return!e||"number"==typeof e||t.fx.speeds[e]?!0:"string"!=typeof e||t.effects.effect[e]?t.isFunction(e)?!0:"object"!=typeof e||e.effect?!1:!0:!0}function s(t,e){var i=e.outerWidth(),s=e.outerHeight(),n=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/,o=n.exec(t)||["",0,i,s,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?s:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=function(e){return function(i){return!!t(i).data(d)||e(i)}}(t.expr.filters.animated)),t.uiBackCompat!==!1&&t.extend(t.effects,{save:function(t,e){for(var i=0,s=e.length;s>i;i++)null!==e[i]&&t.data(c+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,s=0,n=e.length;n>s;s++)null!==e[s]&&(i=t.data(c+e[s]),t.css(e[s],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),"float":e.css("float")},s=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),n={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(a){o=document.body}return e.wrap(s),(e[0]===o||t.contains(e[0],o))&&t(o).trigger("focus"),s=e.parent(),"static"===e.css("position")?(s.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,s){i[s]=e.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(n),s.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,s){return s||(s=i,i="effect"),t.effects.effect[e]=s,t.effects.effect[e].mode=i,s},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var s="horizontal"!==i?(e||100)/100:1,n="vertical"!==i?(e||100)/100:1;return{height:t.height()*n,width:t.width()*s,outerHeight:t.outerHeight()*n,outerWidth:t.outerWidth()*s}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var s=t.queue();e>1&&s.splice.apply(s,[1,0].concat(s.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(u,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(u)||"",t.removeData(u)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,s;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=t[1]/e.width}return{x:s,y:i}},createPlaceholder:function(e){var i,s=e.css("position"),n=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),"float":e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(c+"placeholder",i)),e.css({position:s,left:n.left,top:n.top}),i},removePlaceholder:function(t){var e=c+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,s,n){return n=n||{},t.each(i,function(t,i){var o=e.cssUnit(i);o[0]>0&&(n[i]=o[0]*s+o[1])}),n}}),t.fn.extend({effect:function(){function i(e){function i(){r.removeData(d),t.effects.cleanUp(r),"hide"===s.mode&&r.hide(),a()}function a(){t.isFunction(h)&&h.call(r[0]),t.isFunction(e)&&e()}var r=t(this);s.mode=c.shift(),t.uiBackCompat===!1||o?"none"===s.mode?(r[l](),a()):n.call(r[0],s,i):(r.is(":hidden")?"hide"===l:"show"===l)?(r[l](),a()):n.call(r[0],s,a)}var s=e.apply(this,arguments),n=t.effects.effect[s.effect],o=n.mode,a=s.queue,r=a||"fx",h=s.complete,l=s.mode,c=[],u=function(e){var i=t(this),s=t.effects.mode(i,l)||o;i.data(d,!0),c.push(s),o&&("show"===s||s===o&&"hide"===s)&&i.show(),o&&"none"===s||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?l?this[l](s.duration,h):this.each(function(){h&&h.call(this)}):a===!1?this.each(u).each(i):this.queue(r,u).queue(r,i)},show:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(t.fn.show),hide:function(t){return function(s){if(i(s))return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(s){if(i(s)||"boolean"==typeof s)return t.apply(this,arguments);var n=e.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(t.fn.toggle),cssUnit:function(e){var i=this.css(e),s=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(s=[parseFloat(i),e])}),s},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):s(this.css("clip"),this)},transfer:function(e,i){var s=t(this),n=t(e.to),o="fixed"===n.css("position"),a=t("body"),r=o?a.scrollTop():0,h=o?a.scrollLeft():0,l=n.offset(),c={top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth()},u=s.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:u.top-r,left:u.left-h,height:s.innerHeight(),width:s.innerWidth(),position:o?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){d.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=s(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),function(){var e={};t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,i){e[i]=function(e){return Math.pow(e,t+2)}}),t.extend(e,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(e,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return.5>t?i(2*t)/2:1-i(-2*t+2)/2}})}();var f=t.effects;t.effects.define("blind","hide",function(e,i){var s={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},n=t(this),o=e.direction||"up",a=n.cssClip(),r={clip:t.extend({},a)},h=t.effects.createPlaceholder(n);r.clip[s[o][0]]=r.clip[s[o][1]],"show"===e.mode&&(n.cssClip(r.clip),h&&h.css(t.effects.clipToBox(r)),r.clip=a),h&&h.animate(t.effects.clipToBox(r),e.duration,e.easing),n.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var s,n,o,a=t(this),r=e.mode,h="hide"===r,l="show"===r,c=e.direction||"up",u=e.distance,d=e.times||5,p=2*d+(l||h?1:0),f=e.duration/p,g=e.easing,m="up"===c||"down"===c?"top":"left",_="up"===c||"left"===c,v=0,b=a.queue().length;for(t.effects.createPlaceholder(a),o=a.css(m),u||(u=a["top"===m?"outerHeight":"outerWidth"]()/3),l&&(n={opacity:1},n[m]=o,a.css("opacity",0).css(m,_?2*-u:2*u).animate(n,f,g)),h&&(u/=Math.pow(2,d-1)),n={},n[m]=o;d>v;v++)s={},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g).animate(n,f,g),u=h?2*u:u/2;h&&(s={opacity:0},s[m]=(_?"-=":"+=")+u,a.animate(s,f,g)),a.queue(i),t.effects.unshift(a,b,p+1)}),t.effects.define("clip","hide",function(e,i){var s,n={},o=t(this),a=e.direction||"vertical",r="both"===a,h=r||"horizontal"===a,l=r||"vertical"===a;s=o.cssClip(),n.clip={top:l?(s.bottom-s.top)/2:s.top,right:h?(s.right-s.left)/2:s.right,bottom:l?(s.bottom-s.top)/2:s.bottom,left:h?(s.right-s.left)/2:s.left},t.effects.createPlaceholder(o),"show"===e.mode&&(o.cssClip(n.clip),n.clip=s),o.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var s,n=t(this),o=e.mode,a="show"===o,r=e.direction||"left",h="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c="+="===l?"-=":"+=",u={opacity:0};t.effects.createPlaceholder(n),s=e.distance||n["top"===h?"outerHeight":"outerWidth"](!0)/2,u[h]=l+s,a&&(n.css(u),u[h]=c+s,u.opacity=1),n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function s(){b.push(this),b.length===u*d&&n()}function n(){p.css({visibility:"visible"}),t(b).remove(),i()}var o,a,r,h,l,c,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f=e.mode,g="show"===f,m=p.show().css("visibility","hidden").offset(),_=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(o=0;u>o;o++)for(h=m.top+o*v,c=o-(u-1)/2,a=0;d>a;a++)r=m.left+a*_,l=a-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-a*_,top:-o*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:_,height:v,left:r+(g?l*_:0),top:h+(g?c*v:0),opacity:g?0:1}).animate({left:r+(g?0:l*_),top:h+(g?0:c*v),opacity:g?1:0},e.duration||500,e.easing,s)}),t.effects.define("fade","toggle",function(e,i){var s="show"===e.mode;t(this).css("opacity",s?0:1).animate({opacity:s?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=e.size||15,h=/([0-9]+)%/.exec(r),l=!!e.horizFirst,c=l?["right","bottom"]:["bottom","right"],u=e.duration/2,d=t.effects.createPlaceholder(s),p=s.cssClip(),f={clip:t.extend({},p)},g={clip:t.extend({},p)},m=[p[c[0]],p[c[1]]],_=s.queue().length;h&&(r=parseInt(h[1],10)/100*m[a?0:1]),f.clip[c[0]]=r,g.clip[c[0]]=r,g.clip[c[1]]=0,o&&(s.cssClip(g.clip),d&&d.css(t.effects.clipToBox(g)),g.clip=p),s.queue(function(i){d&&d.animate(t.effects.clipToBox(f),u,e.easing).animate(t.effects.clipToBox(g),u,e.easing),i()}).animate(f,u,e.easing).animate(g,u,e.easing).queue(i),t.effects.unshift(s,_,4)}),t.effects.define("highlight","show",function(e,i){var s=t(this),n={backgroundColor:s.css("backgroundColor")};"hide"===e.mode&&(n.opacity=0),t.effects.saveStyle(s),s.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var s,n,o,a=t(this),r=["fontSize"],h=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],l=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,u="effect"!==c,d=e.scale||"both",p=e.origin||["middle","center"],f=a.css("position"),g=a.position(),m=t.effects.scaledDimensions(a),_=e.from||m,v=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===c&&(o=_,_=v,v=o),n={from:{y:_.height/m.height,x:_.width/m.width},to:{y:v.height/m.height,x:v.width/m.width}},("box"===d||"both"===d)&&(n.from.y!==n.to.y&&(_=t.effects.setTransition(a,h,n.from.y,_),v=t.effects.setTransition(a,h,n.to.y,v)),n.from.x!==n.to.x&&(_=t.effects.setTransition(a,l,n.from.x,_),v=t.effects.setTransition(a,l,n.to.x,v))),("content"===d||"both"===d)&&n.from.y!==n.to.y&&(_=t.effects.setTransition(a,r,n.from.y,_),v=t.effects.setTransition(a,r,n.to.y,v)),p&&(s=t.effects.getBaseline(p,m),_.top=(m.outerHeight-_.outerHeight)*s.y+g.top,_.left=(m.outerWidth-_.outerWidth)*s.x+g.left,v.top=(m.outerHeight-v.outerHeight)*s.y+g.top,v.left=(m.outerWidth-v.outerWidth)*s.x+g.left),a.css(_),("content"===d||"both"===d)&&(h=h.concat(["marginTop","marginBottom"]).concat(r),l=l.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var i=t(this),s=t.effects.scaledDimensions(i),o={height:s.height*n.from.y,width:s.width*n.from.x,outerHeight:s.outerHeight*n.from.y,outerWidth:s.outerWidth*n.from.x},a={height:s.height*n.to.y,width:s.width*n.to.x,outerHeight:s.height*n.to.y,outerWidth:s.width*n.to.x};n.from.y!==n.to.y&&(o=t.effects.setTransition(i,h,n.from.y,o),a=t.effects.setTransition(i,h,n.to.y,a)),n.from.x!==n.to.x&&(o=t.effects.setTransition(i,l,n.from.x,o),a=t.effects.setTransition(i,l,n.to.x,a)),u&&t.effects.saveStyle(i),i.css(o),i.animate(a,e.duration,e.easing,function(){u&&t.effects.restoreStyle(i)})})),a.animate(v,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===v.opacity&&a.css("opacity",_.opacity),u||(a.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(a)),i()}})}),t.effects.define("scale",function(e,i){var s=t(this),n=e.mode,o=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==n?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(s),to:t.effects.scaledDimensions(s,o,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,i)}),t.effects.define("puff","hide",function(e,i){var s=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,s,i)}),t.effects.define("pulsate","show",function(e,i){var s=t(this),n=e.mode,o="show"===n,a="hide"===n,r=o||a,h=2*(e.times||5)+(r?1:0),l=e.duration/h,c=0,u=1,d=s.queue().length;for((o||!s.is(":visible"))&&(s.css("opacity",0).show(),c=1);h>u;u++)s.animate({opacity:c},l,e.easing),c=1-c;s.animate({opacity:c},l,e.easing),s.queue(i),t.effects.unshift(s,d,h+1)}),t.effects.define("shake",function(e,i){var s=1,n=t(this),o=e.direction||"left",a=e.distance||20,r=e.times||3,h=2*r+1,l=Math.round(e.duration/h),c="up"===o||"down"===o?"top":"left",u="up"===o||"left"===o,d={},p={},f={},g=n.queue().length;for(t.effects.createPlaceholder(n),d[c]=(u?"-=":"+=")+a,p[c]=(u?"+=":"-=")+2*a,f[c]=(u?"-=":"+=")+2*a,n.animate(d,l,e.easing);r>s;s++)n.animate(p,l,e.easing).animate(f,l,e.easing);n.animate(p,l,e.easing).animate(d,l/2,e.easing).queue(i),t.effects.unshift(n,g,h+1)}),t.effects.define("slide","show",function(e,i){var s,n,o=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,h=e.direction||"left",l="up"===h||"down"===h?"top":"left",c="up"===h||"left"===h,u=e.distance||o["top"===l?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),s=o.cssClip(),n=o.position()[l],d[l]=(c?-1:1)*u+n,d.clip=o.cssClip(),d.clip[a[h][1]]=d.clip[a[h][0]],"show"===r&&(o.cssClip(d.clip),o.css(l,d[l]),d.clip=s,d[l]=n),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})});var f;t.uiBackCompat!==!1&&(f=t.effects.define("transfer",function(e,i){t(this).transfer(e,i)})),t.ui.focusable=function(i,s){var n,o,a,r,h,l=i.nodeName.toLowerCase();return"area"===l?(n=i.parentNode,o=n.name,i.href&&o&&"map"===n.nodeName.toLowerCase()?(a=t("img[usemap='#"+o+"']"),a.length>0&&a.is(":visible")):!1):(/^(input|select|textarea|button|object)$/.test(l)?(r=!i.disabled,r&&(h=t(i).closest("fieldset")[0],h&&(r=!h.disabled))):r="a"===l?i.href||s:s,r&&t(i).is(":visible")&&e(t(i)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function s(e,i,s,o){return t.each(n,function(){i-=parseFloat(t.css(e,"padding"+this))||0,s&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var n="Width"===i?["Left","Right"]:["Top","Bottom"],o=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(o,s(this,e)+"px")})},t.fn["outer"+i]=function(e,n){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(o,s(this,e,!0,n)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=function(){var t=/([!"#$%&'()*+,.\/:;<=>?@[\]^`{|}~])/g;return function(e){return e.replace(t,"\\$1")}}(),t.fn.labels=function(){var e,i,s,n,o;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),s=this.attr("id"),s&&(e=this.eq(0).parents().last(),o=e.add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(s)+"']",n=n.add(o.find(i).addBack(i))),this.pushStack(n))},t.fn.scrollParent=function(e){var i=this.css("position"),s="absolute"===i,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter(function(){var e=t(this);return s&&"static"===e.css("position")?!1:n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&o.length?o:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),s=null!=i;return(!s||i>=0)&&t.ui.focusable(e,s)}}),t.fn.extend({uniqueId:function(){var t=0;return function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++t)})}}(),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||e.active!==!1&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,s=this.options.icons;s&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+s.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,s.header)._addClass(i,null,s.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||this.options.active!==!1||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void 0)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,s=this.headers.length,n=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(n+1)%s];break;case i.LEFT:case i.UP:o=this.headers[(n-1+s)%s];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[s-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),e.active===!1&&e.collapsible===!0||!this.headers.length?(e.active=!1,this.active=t()):e.active===!1?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,s=i.heightStyle,n=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),s=e.next(),n=s.uniqueId().attr("id");e.attr("aria-controls",n),s.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===s?(e=n.height(),this.element.siblings(":visible").each(function(){var i=t(this),s=i.css("position");"absolute"!==s&&"fixed"!==s&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===s&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,s,n=this.options,o=this.active,a=t(e.currentTarget),r=a[0]===o[0],h=r&&n.collapsible,l=h?t():a.next(),c=o.next(),u={oldHeader:o,oldPanel:c,newHeader:h?t():a,newPanel:l};e.preventDefault(),r&&!n.collapsible||this._trigger("beforeActivate",e,u)===!1||(n.active=h?!1:this.headers.index(a),this.active=r?t():a,this._toggle(u),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),n.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,n.icons.activeHeader)._addClass(i,null,n.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),n.icons&&(s=a.children(".ui-accordion-header-icon"),this._removeClass(s,null,n.icons.header)._addClass(s,null,n.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,s=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=s,this.options.animate?this._animate(i,s,e):(s.hide(),i.show(),this._toggleComplete(e)),s.attr({"aria-hidden":"true"}),s.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&s.length?s.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var s,n,o,a=this,r=0,h=t.css("box-sizing"),l=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},u=l&&c.down||c,d=function(){a._toggleComplete(i)};return"number"==typeof u&&(o=u),"string"==typeof u&&(n=u),n=n||u.easing||c.easing,o=o||u.duration||c.duration,e.length?t.length?(s=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:n,step:function(t,e){e.now=Math.round(t)}}),t.hide().animate(this.showProps,{duration:o,easing:n,complete:d,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===h&&(r+=i.now):"content"!==a.options.heightStyle&&(i.now=Math.round(s-e.outerHeight()-r),r=0)}}),void 0):e.animate(this.hideProps,o,n,d):t.animate(this.showProps,o,n,d)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),s=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),s=t(e.currentTarget);i[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){var i=!t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]));i&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),i=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),i.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,s,n,o,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,s=this.previousFilter||"",o=!1,n=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===s?o=!0:n=s+n,i=this._filterMenuItems(n),i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i,i.length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,s,n,o,a=this,r=this.options.icons.submenu,h=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=h.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),s=t("<span>").data("ui-menu-submenu-caret",!0);a._addClass(s,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(s),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=h.add(this.element),i=e.find(this.options.items),i.not(".ui-menu-item").each(function(){var e=t(this);a._isDivider(e)&&a._addClass(e,"ui-menu-divider","ui-widget-content")}),n=i.not(".ui-menu-item, .ui-menu-divider"),o=n.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),i.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,s,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),s=this.active.children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",s.attr("id")),n=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),i=e.children(".ui-menu"),i.length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,s,n,o,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-i-s,o=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>n?this.activeMenu.scrollTop(o+n):n+r>a&&this.activeMenu.scrollTop(o+n-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var s=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var s;this.active&&(s="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),s&&s.length&&this.active||(s=this.activeMenu.find(this.options.items)[e]()),this.focus(i,s)},nextPage:function(e){var i,s,n;return this.active?(this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return i=t(this),0>i.offset().top-s-n}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]())),void 0):(this.next(e),void 0)},previousPage:function(e){var i,s,n;return this.active?(this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return i=t(this),i.offset().top-s+n>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first())),void 0):(this.next(e),void 0)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,s,n=this.element[0].nodeName.toLowerCase(),o="textarea"===n,a="input"===n;this.isMultiLine=o||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[o||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(n){if(this.element.prop("readOnly"))return e=!0,s=!0,i=!0,void 0;e=!1,s=!1,i=!1;var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",n);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",n);break;case o.UP:e=!0,this._keyEvent("previous",n);break;case o.DOWN:e=!0,this._keyEvent("next",n);break;case o.ENTER:this.menu.active&&(e=!0,n.preventDefault(),this.menu.select(n));break;case o.TAB:this.menu.active&&this.menu.select(n);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(n),n.preventDefault());break;default:i=!0,this._searchTimeout(n)}},keypress:function(s){if(e)return e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&s.preventDefault(),void 0;if(!i){var n=t.ui.keyCode;switch(s.keyCode){case n.PAGE_UP:this._move("previousPage",s);break;case n.PAGE_DOWN:this._move("nextPage",s);break;case n.UP:this._keyEvent("previous",s);break;case n.DOWN:this._keyEvent("next",s)}}},input:function(t){return s?(s=!1,t.preventDefault(),void 0):(this._searchTimeout(t),void 0)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(clearTimeout(this.searching),this.close(t),this._change(t),void 0)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var s,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)}),void 0):(n=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),s=i.item.attr("aria-label")||n.value,s&&t.trim(s).length&&(this.liveRegion.children().hide(),t("<div>").text(s).appendTo(this.liveRegion)),void 0)},menuselect:function(e,i){var s=i.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=s})),!1!==this._trigger("select",e,{item:s})&&this._value(s.value),this.term=this._value(),this.close(e),this.selectedItem=s}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,s=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,s){s(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,n){s.xhr&&s.xhr.abort(),s.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){n(t)},error:function(){n([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),s=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;(!e||e&&!i&&!s)&&(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):this._trigger("search",e)!==!1?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var s=this;t.each(i,function(t,i){s._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur(),void 0):(this.menu[t](e),void 0):(this.search(null,e),void 0)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var s=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return s.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var g=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(s,n){var o,a={};return n?"controlgroupLabel"===s?(o=e.element.find(n),o.each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),i=i.concat(o.get()),void 0):(t.fn[s]&&(a=e["_"+s+"Options"]?e["_"+s+"Options"]("middle"):{classes:{}},e.element.find(n).each(function(){var n=t(this),o=n[s]("instance"),r=t.widget.extend({},a);if("button"!==s||!n.parent(".ui-spinner").length){o||(o=n[s]()[s]("instance")),o&&(r.classes=e._resolveClassesValues(r.classes,o)),n[s](r);var h=n[s]("widget");t.data(h[0],"ui-controlgroup-data",o?o:n[s]("instance")),i.push(h[0])}})),void 0):void 0}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this),s=i.data("ui-controlgroup-data");s&&s[e]&&s[e]()})},_updateCornerClass:function(t,e){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",s=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,i),this._addClass(t,null,s)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,s={classes:{}};return s.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],s},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e?"auto":!1,classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var s={};return t.each(e,function(n){var o=i.options.classes[n]||"";o=t.trim(o.replace(g,"")),s[n]=(o+" "+e[n]).replace(/\s+/g," ")}),s},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?(this._callChildMethod(e?"disable":"enable"),void 0):(this.refresh(),void 0)},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,s){var n=e[s]().data("ui-controlgroup-data");if(n&&i["_"+n.widgetName+"Options"]){var o=i["_"+n.widgetName+"Options"](1===e.length?"only":s);o.classes=i._resolveClassesValues(o.classes,n),n.element[n.widgetName](o)}else i._updateCornerClass(e[s](),s)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,s=this,n=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){s.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(n.label=this.originalLabel),e=this.element[0].disabled,null!=e&&(n.disabled=e),n},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e,i=this.element[0].name,s="input[name='"+t.ui.escapeSelector(i)+"']";return i?(e=this.form.length?t(this.form[0].elements).filter(s):t(s).filter(function(){return 0===t(this).form().length}),e.not(this.element)):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),this.element[0].disabled=e,void 0):(this.refresh(),void 0)):void 0},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),t=this.element[0].disabled,null!=t&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var s="iconPosition"!==e,n=s?this.options.iconPosition:i,o="top"===n||"bottom"===n;this.icon?s&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),s&&this._addClass(this.icon,null,i),this._attachIcon(n),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(n))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),t.uiBackCompat!==!1&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){return"text"===t?(this._super("showLabel",e),void 0):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments),void 0)}}),t.fn.button=function(e){return function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?e.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0===arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}}(t.fn.button),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}});var m;t.extend(s.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var s,n,o;s=e.nodeName.toLowerCase(),n="div"===s||"span"===s,e.id||(this.uuid+=1,e.id="dp"+this.uuid),o=this._newInst(t(e),n),o.settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,o):n&&this._inlineDatepicker(e,o)},_newInst:function(e,i){var s=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var s=t(e);i.append=t([]),i.trigger=t([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var s,n,o,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),s=this._get(i,"showOn"),("focus"===s||"both"===s)&&e.on("focus",this._showDatepicker),("button"===s||"both"===s)&&(n=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:o,alt:n,title:n}):t("<button type='button'></button>").addClass(this._triggerClass).html(o?t("<img/>").attr({src:o,alt:n,title:n}):n)),e[r?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,s,n,o=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,s=0,n=0;t.length>n;n++)t[n].length>i&&(i=t[n].length,s=n);return s},o.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length)}},_inlineDatepicker:function(e,i){var s=t(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,s,n,o){var r,h,l,c,u,d=this._dialogInst;return d||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},t.data(this._dialogInput[0],"datepicker",d)),a(d.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(h=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[h/2-100+c,l/2-150+u]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var i,s=t(e),n=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(n.append.remove(),n.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&s.removeClass(this.markerClassName).empty(),m===n&&(m=null))},_enableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!1,o.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,s,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),"input"===i?(e.disabled=!0,o.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&(s=n.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(i){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,s){var n,o,r,h,l=this._getInst(e);return 2===arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):l?"all"===i?t.extend({},l.settings):this._get(l,i):null:(n=i||{},"string"==typeof i&&(n={},n[i]=s),l&&(this._curInst===l&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(l,"min"),h=this._getMinMaxDate(l,"max"),a(l.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==h&&void 0!==n.dateFormat&&void 0===n.maxDate&&(l.settings.maxDate=this._formatDate(l,h)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),l),this._autoSize(l),this._setDate(l,o),this._updateAlternate(l),this._updateDatepicker(l)),void 0)},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,s,n,o=t.datepicker._getInst(e.target),a=!0,r=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",o.dpDiv),n[0]&&t.datepicker._selectDay(e.target,o.selectedMonth,o.selectedYear,n[0]),i=t.datepicker._get(o,"onSelect"),i?(s=t.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[s,o])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(o,"stepBigMonths"):-t.datepicker._get(o,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(o,"stepBigMonths"):+t.datepicker._get(o,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,s,n=t.datepicker._getInst(e.target);return t.datepicker._get(n,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),s=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">s||!i||i.indexOf(s)>-1):void 0},_doKeyUp:function(e){var i,s=t.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{i=t.datepicker.parseDate(t.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,t.datepicker._getFormatConfig(s)),i&&(t.datepicker._setDateFromField(s),t.datepicker._updateAlternate(s),t.datepicker._updateDatepicker(s))}catch(n){}return!0},_showDatepicker:function(e){if(e=e.target||e,"input"!==e.nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var s,n,o,r,h,l,c;s=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==s&&(t.datepicker._curInst.dpDiv.stop(!0,!0),s&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),n=t.datepicker._get(s,"beforeShow"),o=n?n.apply(e,[e,s]):{},o!==!1&&(a(s.settings,o),s.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(s),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),r=!1,t(e).parents().each(function(){return r|="fixed"===t(this).css("position"),!r}),h={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,s.dpDiv.empty(),s.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(s),h=t.datepicker._checkOffset(s,h,r),s.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:h.left+"px",top:h.top+"px"}),s.inline||(l=t.datepicker._get(s,"showAnim"),c=t.datepicker._get(s,"duration"),s.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?s.dpDiv.show(l,t.datepicker._get(s,"showOptions"),c):s.dpDiv[l||"show"](l?c:null),t.datepicker._shouldFocusInput(s)&&s.input.trigger("focus"),t.datepicker._curInst=s))}},_updateDatepicker:function(e){this.maxRows=4,m=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,s=this._getNumberOfMonths(e),n=s[1],a=17,r=e.dpDiv.find("."+this._dayOverClass+" a");r.length>0&&o.apply(r.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),n>1&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",a*n+"em"),e.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,s){var n=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,h=document.documentElement.clientWidth+(s?0:t(document).scrollLeft()),l=document.documentElement.clientHeight+(s?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?n-a:0,i.left-=s&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=s&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+n>h&&h>n?Math.abs(i.left+n-h):0),i.top-=Math.min(i.top,i.top+o>l&&l>o?Math.abs(o+r):0),i},_findPos:function(e){for(var i,s=this._getInst(e),n=this._get(s,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return i=t(e).offset(),[i.left,i.top]},_hideDatepicker:function(e){var i,s,n,o,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),s=this._get(a,"duration"),n=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),s,n):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?s:null,n),i||n(),this._datepickerShowing=!1,o=this._get(a,"onClose"),o&&o.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),s=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==s)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,s){var n=t(e),o=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(o,i+("M"===s?this._get(o,"showCurrentAtPos"):0),s),this._updateDatepicker(o))},_gotoToday:function(e){var i,s=t(e),n=this._getInst(s[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(i=new Date,n.selectedDay=i.getDate(),n.drawMonth=n.selectedMonth=i.getMonth(),n.drawYear=n.selectedYear=i.getFullYear()),this._notifyChange(n),this._adjustDate(s)},_selectMonthYear:function(e,i,s){var n=t(e),o=this._getInst(n[0]);o["selected"+("M"===s?"Month":"Year")]=o["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(n)},_selectDay:function(e,i,s,n){var o,a=t(e);t(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||(o=this._getInst(a[0]),o.selectedDay=o.currentDay=t("a",n).html(),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=s,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var s,n=t(e),o=this._getInst(n[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),s=this._get(o,"onSelect"),s?s.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,s,n,o=this._get(e,"altField");o&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),n=this.formatDate(i,s,this._getFormatConfig(e)),t(o).val(n))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,s){if(null==e||null==i)throw"Invalid arguments";if(i="object"==typeof i?""+i:i+"",""===i)return null;var n,o,a,r,h=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),u=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,p=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,f=(s?s.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,_=-1,v=-1,b=!1,y=function(t){var i=e.length>n+1&&e.charAt(n+1)===t;return i&&n++,i},w=function(t){var e=y(t),s="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,n="y"===t?s:1,o=RegExp("^\\d{"+n+","+s+"}"),a=i.substring(h).match(o);if(!a)throw"Missing number at position "+h;return h+=a[0].length,parseInt(a[0],10)},k=function(e,s,n){var o=-1,a=t.map(y(e)?n:s,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var s=e[1];return i.substr(h,s.length).toLowerCase()===s.toLowerCase()?(o=e[0],h+=s.length,!1):void 0}),-1!==o)return o+1;throw"Unknown name at position "+h},x=function(){if(i.charAt(h)!==e.charAt(n))throw"Unexpected literal at position "+h;h++};for(n=0;e.length>n;n++)if(b)"'"!==e.charAt(n)||y("'")?x():b=!1;else switch(e.charAt(n)){case"d":_=w("d");break;case"D":k("D",u,d);break;case"o":v=w("o");break;case"m":m=w("m");break;case"M":m=k("M",p,f);break;case"y":g=w("y");break;case"@":r=new Date(w("@")),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"!":r=new Date((w("!")-this._ticksTo1970)/1e4),g=r.getFullYear(),m=r.getMonth()+1,_=r.getDate();break;case"'":y("'")?x():b=!0;break;default:x()}if(i.length>h&&(a=i.substr(h),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():100>g&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=g?0:-100)),v>-1)for(m=1,_=v;;){if(o=this._getDaysInMonth(g,m-1),o>=_)break;m++,_-=o}if(r=this._daylightSavingAdjust(new Date(g,m-1,_)),r.getFullYear()!==g||r.getMonth()+1!==m||r.getDate()!==_)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:1e7*60*60*24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var s,n=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,h=function(e){var i=t.length>s+1&&t.charAt(s+1)===e;return i&&s++,i},l=function(t,e,i){var s=""+e;if(h(t))for(;i>s.length;)s="0"+s;return s},c=function(t,e,i,s){return h(t)?s[e]:i[e]},u="",d=!1;if(e)for(s=0;t.length>s;s++)if(d)"'"!==t.charAt(s)||h("'")?u+=t.charAt(s):d=!1;else switch(t.charAt(s)){case"d":u+=l("d",e.getDate(),2);break;case"D":u+=c("D",e.getDay(),n,o);break;case"o":u+=l("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=l("m",e.getMonth()+1,2);break;case"M":u+=c("M",e.getMonth(),a,r);break;case"y":u+=h("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":h("'")?u+="'":d=!0;break;default:u+=t.charAt(s)}return u},_possibleChars:function(t){var e,i="",s=!1,n=function(i){var s=t.length>e+1&&t.charAt(e+1)===i;return s&&e++,s};for(e=0;t.length>e;e++)if(s)"'"!==t.charAt(e)||n("'")?i+=t.charAt(e):s=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":n("'")?i+="'":s=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),s=t.lastVal=t.input?t.input.val():null,n=this._getDefaultDate(t),o=n,a=this._getFormatConfig(t);try{o=this.parseDate(i,s,a)||n}catch(r){s=e?"":s}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=s?o.getDate():0,t.currentMonth=s?o.getMonth():0,t.currentYear=s?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,s){var n=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},o=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(s){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),a=n.getMonth(),r=n.getDate(),h=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=h.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,a))}l=h.exec(i)}return new Date(o,a,r)},a=null==i||""===i?s:"string"==typeof i?o(i):"number"==typeof i?isNaN(i)?s:n(i):new Date(i.getTime());return a=a&&"Invalid Date"==""+a?s:a,a&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var s=!e,n=t.selectedMonth,o=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(s?"":this._formatDate(t))},_getDate:function(t){var e=!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return e},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(s,-i,"M")},next:function(){t.datepicker._adjustDate(s,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(s)},selectDay:function(){return t.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(s,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,s,n,o,a,r,h,l,c,u,d,p,f,g,m,_,v,b,y,w,k,x,C,D,I,T,P,M,S,H,z,O,A,N,W,E,F,L,R=new Date,B=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),Y=this._get(t,"isRTL"),j=this._get(t,"showButtonPanel"),q=this._get(t,"hideIfNoPrevNext"),K=this._get(t,"navigationAsDateFormat"),U=this._getNumberOfMonths(t),V=this._get(t,"showCurrentAtPos"),$=this._get(t,"stepMonths"),X=1!==U[0]||1!==U[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),J=this._getMinMaxDate(t,"max"),Z=t.drawMonth-V,te=t.drawYear;if(0>Z&&(Z+=12,te--),J)for(e=this._daylightSavingAdjust(new Date(J.getFullYear(),J.getMonth()-U[0]*U[1]+1,J.getDate())),e=Q&&Q>e?Q:e;this._daylightSavingAdjust(new Date(te,Z,1))>e;)Z--,0>Z&&(Z=11,te--);for(t.drawMonth=Z,t.drawYear=te,i=this._get(t,"prevText"),i=K?this.formatDate(i,this._daylightSavingAdjust(new Date(te,Z-$,1)),this._getFormatConfig(t)):i,s=this._canAdjustMonth(t,-1,te,Z)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>":q?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"e":"w")+"'>"+i+"</span></a>",n=this._get(t,"nextText"),n=K?this.formatDate(n,this._daylightSavingAdjust(new Date(te,Z+$,1)),this._getFormatConfig(t)):n,o=this._canAdjustMonth(t,1,te,Z)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>":q?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+n+"'><span class='ui-icon ui-icon-circle-triangle-"+(Y?"w":"e")+"'>"+n+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?G:B,a=K?this.formatDate(a,r,this._getFormatConfig(t)):a,h=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",l=j?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(Y?h:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(Y?"":h)+"</div>":"",c=parseInt(this._get(t,"firstDay"),10),c=isNaN(c)?0:c,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),m=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),v=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),y="",k=0;U[0]>k;k++){for(x="",this.maxRows=4,C=0;U[1]>C;C++){if(D=this._daylightSavingAdjust(new Date(te,Z,t.selectedDay)),I=" ui-corner-all",T="",X){if(T+="<div class='ui-datepicker-group",U[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",I=" ui-corner-"+(Y?"right":"left");break;case U[1]-1:T+=" ui-datepicker-group-last",I=" ui-corner-"+(Y?"left":"right");break;default:T+=" ui-datepicker-group-middle",I=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+I+"'>"+(/all|left/.test(I)&&0===k?Y?o:s:"")+(/all|right/.test(I)&&0===k?Y?s:o:"")+this._generateMonthYearHeader(t,Z,te,Q,J,k>0||C>0,f,g)+"</div><table class='ui-datepicker-calendar'><thead>"+"<tr>",P=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)M=(w+c)%7,P+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+">"+"<span title='"+d[M]+"'>"+p[M]+"</span></th>";for(T+=P+"</tr></thead><tbody>",S=this._getDaysInMonth(te,Z),te===t.selectedYear&&Z===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,S)),H=(this._getFirstDayOfMonth(te,Z)-c+7)%7,z=Math.ceil((H+S)/7),O=X?this.maxRows>z?this.maxRows:z:z,this.maxRows=O,A=this._daylightSavingAdjust(new Date(te,Z,1-H)),N=0;O>N;N++){for(T+="<tr>",W=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(A)+"</td>":"",w=0;7>w;w++)E=m?m.apply(t.input?t.input[0]:null,[A]):[!0,""],F=A.getMonth()!==Z,L=F&&!v||!E[0]||Q&&Q>A||J&&A>J,W+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(A.getTime()===D.getTime()&&Z===t.selectedMonth&&t._keyEvent||b.getTime()===A.getTime()&&b.getTime()===D.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!_?"":" "+E[1]+(A.getTime()===G.getTime()?" "+this._currentClass:"")+(A.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&&!_||!E[2]?"":" title='"+E[2].replace(/'/g,"&#39;")+"'")+(L?"":" data-handler='selectDay' data-event='click' data-month='"+A.getMonth()+"' data-year='"+A.getFullYear()+"'")+">"+(F&&!_?"&#xa0;":L?"<span class='ui-state-default'>"+A.getDate()+"</span>":"<a class='ui-state-default"+(A.getTime()===B.getTime()?" ui-state-highlight":"")+(A.getTime()===G.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+A.getDate()+"</a>")+"</td>",A.setDate(A.getDate()+1),A=this._daylightSavingAdjust(A);T+=W+"</tr>"}Z++,Z>11&&(Z=0,te++),T+="</tbody></table>"+(X?"</div>"+(U[0]>0&&C===U[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),x+=T}y+=x}return y+=l,t._keyEvent=!1,y},_generateMonthYearHeader:function(t,e,i,s,n,o,a,r){var h,l,c,u,d,p,f,g,m=this._get(t,"changeMonth"),_=this._get(t,"changeYear"),v=this._get(t,"showMonthAfterYear"),b="<div class='ui-datepicker-title'>",y="";if(o||!m)y+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(h=s&&s.getFullYear()===i,l=n&&n.getFullYear()===i,y+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!h||c>=s.getMonth())&&(!l||n.getMonth()>=c)&&(y+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");y+="</select>"}if(v||(b+=y+(!o&&m&&_?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",o||!_)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(t,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?d+parseInt(t,10):parseInt(t,10);return isNaN(e)?d:e},f=p(u[0]),g=Math.max(f,p(u[1]||"")),f=s?Math.max(f,s.getFullYear()):f,g=n?Math.min(g,n.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";g>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),v&&(b+=(!o&&m&&_?"":"&#xa0;")+y),b+="</div>"},_adjustInstDate:function(t,e,i){var s=t.selectedYear+("Y"===i?e:0),n=t.selectedMonth+("M"===i?e:0),o=Math.min(t.selectedDay,this._getDaysInMonth(s,n))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(s,n,o)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),n=i&&i>e?i:e;return s&&n>s?s:n},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,s){var n=this._getNumberOfMonths(t),o=this._daylightSavingAdjust(new Date(i,s+(0>e?e:n[0]*n[1]),1));return 0>e&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(t,o)},_isInRange:function(t,e){var i,s,n=this._getMinMaxDate(t,"min"),o=this._getMinMaxDate(t,"max"),a=null,r=null,h=this._get(t,"yearRange");return h&&(i=h.split(":"),s=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=s),i[1].match(/[+\-].*/)&&(r+=s)),(!n||e.getTime()>=n.getTime())&&(!o||e.getTime()<=o.getTime())&&(!a||e.getFullYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),{shortYearCutoff:e,dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,s){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var n=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(s,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),n,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new s,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var _=!1;t(document).on("mouseup",function(){_=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!_){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,s=1===e.which,n="string"==typeof this.options.cancel&&e.target.nodeName?t(e.target).closest(this.options.cancel).length:!1;return s&&!n&&this._mouseCapture(e)?(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),_=!0,!0)):!0}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,_=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,s){var n,o=t.ui[e].prototype;for(n in s)o.plugins[n]=o.plugins[n]||[],o.plugins[n].push([i,s[n]])},call:function(t,e,i,s){var n,o=t.plugins[e];if(o&&(s||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?(this.destroyOnClear=!0,void 0):(this._removeHandleClassName(),this._mouseDestroy(),void 0)},_mouseCapture:function(e){var i=this.options;return this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0?!1:(this.handle=this._getHandle(e),this.handle?(this._blurActiveElement(e),this._blockFrames(i.iframeFix===!0?"iframe":i.iframeFix),!0):!1)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]),s=t(e.target);s.closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,s=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(s=t.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||this.options.revert===!0||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){i._trigger("stop",e)!==!1&&i._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!t(e.target).closest(this.element.find(this.options.handle)).length:!0},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper),n=s?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options,o=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):"document"===n.containment?(this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top],void 0):n.containment.constructor===Array?(this.containment=n.containment,void 0):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),i=t(n.containment),s=i[0],s&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i),void 0):(this.containment=null,void 0)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,s=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,s,n,o,a=this.options,r=this._isRootNode(this.scrollParent[0]),h=t.pageX,l=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(s=this.relativeContainer.offset(),i=[this.containment[0]+s.left,this.containment[1]+s.top,this.containment[2]+s.left,this.containment[3]+s.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(h=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(l=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(h=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(l=i[3]+this.offset.click.top)),a.grid&&(n=a.grid[1]?this.originalPageY+Math.round((l-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,l=i?n-this.offset.click.top>=i[1]||n-this.offset.click.top>i[3]?n:n-this.offset.click.top>=i[1]?n-a.grid[1]:n+a.grid[1]:n,o=a.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,h=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-a.grid[0]:o+a.grid[0]:o),"y"===a.axis&&(h=this.originalPageX),"x"===a.axis&&(l=this.originalPageY)),{top:l-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,s){return s=s||this._uiHash(),t.ui.plugin.call(this,e,[i,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,s){var n=t.extend({},i,{item:s.element});s.sortables=[],t(s.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,n))})},stop:function(e,i,s){var n=t.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,t.each(s.sortables,function(){var t=this;t.isOver?(t.isOver=0,s.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,n))})},drag:function(e,i,s){t.each(s.sortables,function(){var n=!1,o=this;o.positionAbs=s.positionAbs,o.helperProportions=s.helperProportions,o.offset.click=s.offset.click,o._intersectsWith(o.containerCache)&&(n=!0,t.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&t.contains(o.element[0],this.element[0])&&(n=!1),n})),n?(o.isOver||(o.isOver=1,s._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=s.offset.click.top,o.offset.click.left=s.offset.click.left,o.offset.parent.left-=s.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=s.offset.parent.top-o.offset.parent.top,s._trigger("toSortable",e),s.dropped=o.element,t.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,o.fromOutside=s),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(e),i.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,t.each(s.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,s){var n=t("body"),o=s.options;n.css("cursor")&&(o._cursor=n.css("cursor")),n.css("cursor",o.cursor)},stop:function(e,i,s){var n=s.options;n._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i,s){var n=s.options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,s){var n=s.options,o=!1,a=s.scrollParentNotHidden[0],r=s.document[0];a!==r&&"HTML"!==a.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+a.offsetHeight-e.pageY<n.scrollSensitivity?a.scrollTop=o=a.scrollTop+n.scrollSpeed:e.pageY-s.overflowOffset.top<n.scrollSensitivity&&(a.scrollTop=o=a.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(s.overflowOffset.left+a.offsetWidth-e.pageX<n.scrollSensitivity?a.scrollLeft=o=a.scrollLeft+n.scrollSpeed:e.pageX-s.overflowOffset.left<n.scrollSensitivity&&(a.scrollLeft=o=a.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t(r).scrollTop()<n.scrollSensitivity?o=t(r).scrollTop(t(r).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<n.scrollSensitivity&&(o=t(r).scrollTop(t(r).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(r).scrollLeft()<n.scrollSensitivity?o=t(r).scrollLeft(t(r).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<n.scrollSensitivity&&(o=t(r).scrollLeft(t(r).scrollLeft()+n.scrollSpeed)))),o!==!1&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(s,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,s){var n=s.options;s.snapElements=[],t(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=t(this),i=e.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,s){var n,o,a,r,h,l,c,u,d,p,f=s.options,g=f.snapTolerance,m=i.offset.left,_=m+s.helperProportions.width,v=i.offset.top,b=v+s.helperProportions.height;for(d=s.snapElements.length-1;d>=0;d--)h=s.snapElements[d].left-s.margins.left,l=h+s.snapElements[d].width,c=s.snapElements[d].top-s.margins.top,u=c+s.snapElements[d].height,h-g>_||m>l+g||c-g>b||v>u+g||!t.contains(s.snapElements[d].item.ownerDocument,s.snapElements[d].item)?(s.snapElements[d].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(n=g>=Math.abs(c-b),o=g>=Math.abs(u-v),a=g>=Math.abs(h-_),r=g>=Math.abs(l-m),n&&(i.position.top=s._convertPositionTo("relative",{top:c-s.helperProportions.height,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h-s.helperProportions.width}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left)),p=n||o||a||r,"outer"!==f.snapMode&&(n=g>=Math.abs(c-v),o=g>=Math.abs(u-b),a=g>=Math.abs(h-m),r=g>=Math.abs(l-_),n&&(i.position.top=s._convertPositionTo("relative",{top:c,left:0}).top),o&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),a&&(i.position.left=s._convertPositionTo("relative",{top:0,left:h}).left),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left)),!s.snapElements[d].snapping&&(n||o||a||r||p)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,t.extend(s._uiHash(),{snapItem:s.snapElements[d].item})),s.snapElements[d].snapping=n||o||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,s){var n,o=s.options,a=t.makeArray(t(o.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(n=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",n+e)}),this.css("zIndex",n+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,s){var n=t(i.helper),o=s.options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i,s){var n=s.options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var s=i&&"left"===i?"scrollLeft":"scrollTop",n=!1;return e[s]>0?!0:(e[s]=1,n=e[s]>0,e[s]=0,n)},_create:function(){var e,i=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;default:}},_setupHandles:function(){var e,i,s,n,o,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;s.length>i;i++)e=t.trim(s[i]),n="ui-resizable-"+e,o=t("<div>"),this._addClass(o,"ui-resizable-handle "+n),o.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(o);this._renderAxis=function(e){var i,s,n,o;e=e||this.element;for(i in this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?s.outerHeight():s.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,o),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,s,n=!1;for(i in this.handles)s=t(this.handles[i])[0],(s===e.target||t.contains(s,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var i,s,n,o=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),o.containment&&(i+=t(o.containment).scrollLeft()||0,s+=t(o.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===n?this.axis+"-resize":n),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,s,n=this.originalMousePosition,o=this.axis,a=e.pageX-n.left||0,r=e.pageY-n.top||0,h=this._change[o];return this._updatePrevProperties(),h?(i=h.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1):!1},_mouseStop:function(e){this.resizing=!1;var i,s,n,o,a,r,h,l=this.options,c=this;return this._helper&&(i=this._proportionallyResizeElements,s=i.length&&/textarea/i.test(i[0].nodeName),n=s&&this._hasScroll(i[0],"left")?0:c.sizeDiff.height,o=s?0:c.sizeDiff.width,a={width:c.helper.width()-o,height:c.helper.height()-n},r=parseFloat(c.element.css("left"))+(c.position.left-c.originalPosition.left)||null,h=parseFloat(c.element.css("top"))+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(t.extend(a,{top:h,left:r})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,s,n,o,a=this.options;o={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=o.minHeight*this.aspectRatio,s=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,n=o.maxWidth/this.aspectRatio,e>o.minWidth&&(o.minWidth=e),s>o.minHeight&&(o.minHeight=s),o.maxWidth>i&&(o.maxWidth=i),o.maxHeight>n&&(o.maxHeight=n)),this._vBoundaries=o},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===s&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,s=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,n=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,h=this.originalPosition.top+this.originalSize.height,l=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),a&&(t.height=e.minHeight),s&&(t.width=e.maxWidth),n&&(t.height=e.maxHeight),o&&l&&(t.left=r-e.minWidth),s&&l&&(t.left=r-e.maxWidth),a&&c&&(t.top=h-e.minHeight),n&&c&&(t.top=h-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],n=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(s[e])||0,i[e]+=parseFloat(n[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize,s=this.originalPosition;return{left:s.left+e,width:i.width-e}},n:function(t,e,i){var s=this.originalSize,n=this.originalPosition;return{top:n.top+i,height:s.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},sw:function(e,i,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,s]))},ne:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,s]))},nw:function(e,i,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,s]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,o=n.length&&/textarea/i.test(n[0].nodeName),a=o&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=o?0:i.sizeDiff.width,h={width:i.size.width-r,height:i.size.height-a},l=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(h,c&&l?{top:c,left:l}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&t(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,s,n,o,a,r,h=t(this).resizable("instance"),l=h.options,c=h.element,u=l.containment,d=u instanceof t?u.get(0):/parent/.test(u)?c.parent().get(0):u;d&&(h.containerElement=t(d),/document/.test(u)||u===document?(h.containerOffset={left:0,top:0},h.containerPosition={left:0,top:0},h.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(d),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,s){i[t]=h._num(e.css("padding"+s))}),h.containerOffset=e.offset(),h.containerPosition=e.position(),h.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=h.containerOffset,n=h.containerSize.height,o=h.containerSize.width,a=h._hasScroll(d,"left")?d.scrollWidth:o,r=h._hasScroll(d)?d.scrollHeight:n,h.parentData={element:d,left:s.left,top:s.top,width:a,height:r}))},resize:function(e){var i,s,n,o,a=t(this).resizable("instance"),r=a.options,h=a.containerOffset,l=a.position,c=a._aspectRatio||e.shiftKey,u={top:0,left:0},d=a.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=h),l.left<(a._helper?h.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-h.left:a.position.left-u.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?h.left:0),l.top<(a._helper?h.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-h.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?h.top:0),n=a.containerElement.get(0)===a.element.parent().get(0),o=/relative|absolute/.test(a.containerElement.css("position")),n&&o?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-u.left:a.offset.left-h.left)),s=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-u.top:a.offset.top-h.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),s+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-s,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,s=e.containerOffset,n=e.containerPosition,o=e.containerElement,a=t(e.helper),r=a.offset(),h=a.outerWidth()-e.sizeDiff.width,l=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-n.left-s.left,width:h,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance"),i=e.options;t(i.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var s=t(this).resizable("instance"),n=s.options,o=s.originalSize,a=s.originalPosition,r={height:s.size.height-o.height||0,width:s.size.width-o.width||0,top:s.position.top-a.top||0,left:s.position.left-a.left||0};t(n.alsoResize).each(function(){var e=t(this),s=t(this).data("ui-resizable-alsoresize"),n={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,function(t,e){var i=(s[e]||0)+(r[e]||0);i&&i>=0&&(n[e]=i||null)}),e.css(n)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),t.uiBackCompat!==!1&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),s=i.options,n=i.size,o=i.originalSize,a=i.originalPosition,r=i.axis,h="number"==typeof s.grid?[s.grid,s.grid]:s.grid,l=h[0]||1,c=h[1]||1,u=Math.round((n.width-o.width)/l)*l,d=Math.round((n.height-o.height)/c)*c,p=o.width+u,f=o.height+d,g=s.maxWidth&&p>s.maxWidth,m=s.maxHeight&&f>s.maxHeight,_=s.minWidth&&s.minWidth>p,v=s.minHeight&&s.minHeight>f;s.grid=h,_&&(p+=l),v&&(f+=c),g&&(p-=l),m&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-d):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-u):((0>=f-c||0>=p-l)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-d):(f=c-e.height,i.size.height=f,i.position.top=a.top+o.height-f),p-l>0?(i.size.width=p,i.position.left=a.left-u):(p=l-e.width,i.size.width=p,i.position.left=a.left+o.width-p))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),t=e.parent.children().eq(e.index),t.length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&this._trigger("beforeClose",e)!==!1&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var s=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),o=Math.max.apply(null,n);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),s=!0),s&&!i&&this._trigger("focus",e),s},open:function(){var e=this;return this._isOpen?(this._moveToTop()&&this._focusTabbable(),void 0):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),this._trigger("open"),void 0)},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]),i=this.uiDialog[0]===e||t.contains(this.uiDialog[0],e);i||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),this.close(e),void 0;if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),s=i.filter(":first"),n=i.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==s[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.trigger("focus")}),e.preventDefault()):(this._delay(function(){s.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?(this._removeClass(this.uiDialog,"ui-dialog-buttons"),void 0):(t.each(i,function(i,s){var n,o;s=t.isFunction(s)?{click:s,text:i}:s,s=t.extend({type:"button"},s),n=s.click,o={icon:s.icon,iconPosition:s.iconPosition,showLabel:s.showLabel,icons:s.icons,text:s.text},delete s.click,delete s.icon,delete s.iconPosition,delete s.showLabel,delete s.icons,"boolean"==typeof s.text&&delete s.text,t("<button></button>",s).button(o).appendTo(e.uiButtonSet).on("click",function(){n.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog),void 0)},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,s=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(s,n){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",s,e(n))},drag:function(t,s){i._trigger("drag",t,e(s))},stop:function(n,o){var a=o.offset.left-i.document.scrollLeft(),r=o.offset.top-i.document.scrollTop();s.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" "+"top"+(r>=0?"+":"")+r,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",n,e(o))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,s=this.options,n=s.resizable,o=this.uiDialog.css("position"),a="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:s.maxWidth,maxHeight:s.maxHeight,minWidth:s.minWidth,minHeight:this._minHeight(),handles:a,start:function(s,n){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",s,e(n))},resize:function(t,s){i._trigger("resize",t,e(s))},stop:function(n,o){var a=i.uiDialog.offset(),r=a.left-i.document.scrollLeft(),h=a.top-i.document.scrollTop();s.height=i.uiDialog.height(),s.width=i.uiDialog.width(),s.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" "+"top"+(h>=0?"+":"")+h,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",n,e(o))}}).css("position",o)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,s=!1,n={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(s=!0),t in i.resizableRelatedOptions&&(n[t]=e)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",n)},_setOption:function(e,i){var s,n,o=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&(s=o.is(":data(ui-draggable)"),s&&!i&&o.draggable("destroy"),!s&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&(n=o.is(":data(ui-resizable)"),n&&!i&&o.resizable("destroy"),n&&"string"==typeof i&&o.resizable("option","handles",i),n||i===!1||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,s=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),s.minWidth>s.width&&(s.width=s.minWidth),t=this.uiDialog.css({height:"auto",width:s.width}).outerHeight(),e=Math.max(0,s.minHeight-t),i="number"==typeof s.maxHeight?Math.max(0,s.maxHeight-t):"none","auto"===s.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,s.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return t(e.target).closest(".ui-dialog").length?!0:!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),t.uiBackCompat!==!1&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,s=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(s)?s:function(t){return t.is(s)},this.proportions=function(){return arguments.length?(e=arguments[0],void 0):e?e:e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight}},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var s=t.ui.ddmanager.droppables[this.options.scope];this._splice(s),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var s=i||t.ui.ddmanager.current,n=!1;return s&&(s.currentItem||s.element)[0]!==this.element[0]?(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&v(s,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(n=!0,!1):void 0}),n?!1:this.accept.call(this.element[0],s.currentItem||s.element)?(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(s)),this.element):!1):!1},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var v=t.ui.intersect=function(){function t(t,e,i){return t>=e&&e+i>t}return function(e,i,s,n){if(!i.offset)return!1;var o=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=o+e.helperProportions.width,h=a+e.helperProportions.height,l=i.offset.left,c=i.offset.top,u=l+i.proportions().width,d=c+i.proportions().height;switch(s){case"fit":return o>=l&&u>=r&&a>=c&&d>=h;case"intersect":return o+e.helperProportions.width/2>l&&u>r-e.helperProportions.width/2&&a+e.helperProportions.height/2>c&&d>h-e.helperProportions.height/2;case"pointer":return t(n.pageY,c,i.proportions().height)&&t(n.pageX,l,i.proportions().width);case"touch":return(a>=c&&d>=a||h>=c&&d>=h||c>a&&h>d)&&(o>=l&&u>=o||r>=l&&u>=r||l>o&&r>u);default:return!1}}}();t.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,i){var s,n,o=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(s=0;o.length>s;s++)if(!(o[s].options.disabled||e&&!o[s].accept.call(o[s].element[0],e.currentItem||e.element))){for(n=0;r.length>n;n++)if(r[n]===o[s].element[0]){o[s].proportions().height=0;continue t}o[s].visible="none"!==o[s].element.css("display"),o[s].visible&&("mousedown"===a&&o[s]._activate.call(o[s],i),o[s].offset=o[s].element.offset(),o[s].proportions({width:o[s].element[0].offsetWidth,height:o[s].element[0].offsetHeight}))}},drop:function(e,i){var s=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&v(e,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),s},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var s,n,o,a=v(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(n=this.options.scope,o=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===n}),o.length&&(s=t(o[0]).droppable("instance"),s.greedyChild="isover"===r)),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},t.uiBackCompat!==!1&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),this._refreshValue(),void 0)},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=t===!1,"number"!=typeof t&&(t=0),this.indeterminate?!1:Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),s=i.offset(),n={left:s.left-e.elementPos.left,top:s.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,s=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(s.filter,this.element[0]),this._trigger("start",e),t(s.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),s.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var s=t.data(this,"selectable-item");s.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(s.$element,"ui-selected"),s.selected=!1,i._addClass(s.$element,"ui-unselecting"),s.unselecting=!0,i._trigger("unselecting",e,{unselecting:s.element}))}),t(e.target).parents().addBack().each(function(){var s,n=t.data(this,"selectable-item");return n?(s=!e.metaKey&&!e.ctrlKey||!n.$element.hasClass("ui-selected"),i._removeClass(n.$element,s?"ui-unselecting":"ui-selected")._addClass(n.$element,s?"ui-selecting":"ui-unselecting"),n.unselecting=!s,n.selecting=s,n.selected=s,s?i._trigger("selecting",e,{selecting:n.element}):i._trigger("unselecting",e,{unselecting:n.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,s=this,n=this.options,o=this.opos[0],a=this.opos[1],r=e.pageX,h=e.pageY;return o>r&&(i=r,r=o,o=i),a>h&&(i=h,h=a,a=i),this.helper.css({left:o,top:a,width:r-o,height:h-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),l=!1,c={};i&&i.element!==s.element[0]&&(c.left=i.left+s.elementPos.left,c.right=i.right+s.elementPos.left,c.top=i.top+s.elementPos.top,c.bottom=i.bottom+s.elementPos.top,"touch"===n.tolerance?l=!(c.left>r||o>c.right||c.top>h||a>c.bottom):"fit"===n.tolerance&&(l=c.left>o&&r>c.right&&c.top>a&&h>c.bottom),l?(i.selected&&(s._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(s._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(s._addClass(i.$element,"ui-selecting"),i.selecting=!0,s._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,s._addClass(i.$element,"ui-selected"),i.selected=!0):(s._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),s._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(s._removeClass(i.$element,"ui-selected"),i.selected=!1,s._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,s._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-unselecting"),s.unselecting=!1,s.startselected=!1,i._trigger("unselected",e,{unselected:s.element})}),t(".ui-selecting",this.element[0]).each(function(){var s=t.data(this,"selectable-item");i._removeClass(s.$element,"ui-selecting")._addClass(s.$element,"ui-selected"),s.selecting=!1,s.selected=!0,s.startselected=!0,i._trigger("selected",e,{selected:s.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,s=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(s).appendTo(this.button),this.options.width!==!1&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var s=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&s.index!==e.focusIndex&&(e._trigger("focus",t,{item:s}),e.isOpen||e._select(s,t)),e.focusIndex=s.index,e.button.attr("aria-activedescendant",e.menuItems.eq(s.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var s=this,n="";t.each(i,function(i,o){var a;o.optgroup!==n&&(a=t("<li>",{text:o.optgroup}),s._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),n=o.optgroup),s._renderItemData(e,o)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var s=t("<li>"),n=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(s,null,"ui-state-disabled"),this._setText(n,i.label),s.append(n).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html("&#160;")},_move:function(t,e){var i,s,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),s="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0),s.length&&this.menuInstance.focus(e,s)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?(t=window.getSelection(),t.removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection(),t.rangeCount&&(this.range=t.getRangeAt(0))):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return t===!1?(this.button.css("width",""),void 0):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t),void 0)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,s=[];e.each(function(e,n){s.push(i._parseOption(t(n),e))}),this.items=s},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,s=this.options,n=this.element.find(".ui-slider-handle"),o="<span tabindex='0'></span>",a=[];for(i=s.values&&s.values.length||1,n.length>i&&(n.slice(i).remove(),n=n.slice(0,i)),e=n.length;i>e;e++)a.push(o);this.handles=n.add(t(a.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(e.range===!0&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,s,n,o,a,r,h,l,c=this,u=this.options;return u.disabled?!1:(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},s=this._normValueFromMouse(i),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(s-c.values(e));(n>i||n===i&&(e===c._lastChangedValue||c.values(e)===u.min))&&(n=i,o=t(this),a=e)}),r=this._start(e,a),r===!1?!1:(this._mouseSliding=!0,this._handleIndex=a,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),h=o.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-h.left-o.width()/2,top:e.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,s),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,s,n,o;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),s=i/e,s>1&&(s=1),0>s&&(s=0),"vertical"===this.orientation&&(s=1-s),n=this._valueMax()-this._valueMin(),o=this._valueMin()+s*n,this._trimAlignValue(o)},_uiHash:function(t,e,i){var s={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==e?e:this.values(t),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var s,n,o=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&this.options.range===!0&&(i=0===e?Math.min(n,i):Math.max(n,i)),a[e]=i),i!==o&&(s=this._trigger("slide",t,this._uiHash(e,i,a)),s!==!1&&(this._hasMultipleValues()?this.values(e,i):this.value(i)))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),this._change(null,0),void 0):this._value()},values:function(e,i){var s,n,o;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),this._change(null,e),void 0;if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(s=this.options.values,n=arguments[0],o=0;s.length>o;o+=1)s[o]=this._trimAlignValue(n[o]),this._change(null,o);this._refreshValue()},_setOption:function(e,i){var s,n=0;switch("range"===e&&this.options.range===!0&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),s=n-1;s>=0;s--)this._change(null,s);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,s;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(i[s]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,s=t-i;return 2*Math.abs(i)>=e&&(s+=i>0?e:-e),parseFloat(s.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step,s=Math.round((t-e)/i)*i;t=s+e,t>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,s,n,o,a=this.options.range,r=this.options,h=this,l=this._animateOff?!1:r.animate,c={};this._hasMultipleValues()?this.handles.each(function(s){i=100*((h.values(s)-h._valueMin())/(h._valueMax()-h._valueMin())),c["horizontal"===h.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[l?"animate":"css"](c,r.animate),h.options.range===!0&&("horizontal"===h.orientation?(0===s&&h.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===s&&h.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},r.animate),1===s&&h.range[l?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(s=this.value(),n=this._valueMin(),o=this._valueMax(),i=o!==n?100*((s-n)/(o-n)):0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var i,s,n,o,a=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),i=this._start(e,a),i===!1))return}switch(o=this.options.step,s=n=this._hasMultipleValues()?this.values(a):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(s+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(s-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(s===this._valueMax())return;n=this._trimAlignValue(s+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(s===this._valueMin())return;n=this._trimAlignValue(s-o)}this._slide(e,a,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var s=null,n=!1,o=this;return this.reverting?!1:this.options.disabled||"static"===this.options.type?!1:(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,o.widgetName+"-item")===o?(s=t(this),!1):void 0}),t.data(e.target,o.widgetName+"-item")===o&&(s=t(e.target)),s?!this.options.handle||i||(t(this.options.handle,s).find("*").addBack().each(function(){this===e.target&&(n=!0)}),n)?(this.currentItem=s,this._removeCurrentsFromItems(),!0):!1:!1)},_mouseStart:function(e,i,s){var n,o,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(o)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;n>=0;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,s,n,o,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),r!==!1&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(s=this.items[i],n=s.item[0],o=this._intersectsWithPointer(s),o&&s.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===o?"next":"prev"]()[0]!==n&&!t.contains(this.placeholder[0],n)&&("semi-dynamic"===this.options.type?!t.contains(this.element[0],n):!0)){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(e,s),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var s=this,n=this.placeholder.offset(),o=this.options.axis,a={};o&&"x"!==o||(a.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(a.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){s._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&s.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!s.length&&e.key&&s.push(e.key+"="),s.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),s=[];return e=e||{},i.each(function(){s.push(t(e.item||this).attr(e.attribute||"id")||"")}),s},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,o=t.left,a=o+t.width,r=t.top,h=r+t.height,l=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||s+l>r&&h>s+l,d="y"===this.options.axis||e+c>o&&a>e+c,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>o&&a>i-this.helperProportions.width/2&&s+this.helperProportions.height/2>r&&h>n-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,s="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=s&&n;return o?(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1)):!1},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),n=this._getDragHorizontalDirection();return this.floating&&n?"right"===n&&i||"left"===n&&!i:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var s,n,o,a,r=[],h=[],l=this._connectWith();if(l&&e)for(s=l.length-1;s>=0;s--)for(o=t(l[s],this.document[0]),n=o.length-1;n>=0;n--)a=t.data(o[n],this.widgetFullName),a&&a!==this&&!a.options.disabled&&h.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(h.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),s=h.length-1;s>=0;s--)h[s][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,s,n,o,a,r,h,l,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=t(d[i],this.document[0]),s=n.length-1;s>=0;s--)o=t.data(n[s],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(a=u[i][1],r=u[i][0],s=0,l=r.length;l>s;s++)h=t(r[s]),h.data(this.widgetName+"-item",a),c.push({item:h,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.floating=this.items.length?"x"===this.options.axis||this._isFloating(this.items[0].item):!1,this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,s,n,o;for(i=this.items.length-1;i>=0;i--)s=this.items[i],s.instance!==this.currentContainer&&this.currentContainer&&s.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,s.item):s.item,e||(s.width=n.outerWidth(),s.height=n.outerHeight()),o=n.offset(),s.left=o.left,s.top=o.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,s=e.options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,s.placeholder={element:function(){var s=e.currentItem[0].nodeName.toLowerCase(),n=t("<"+s+">",e.document[0]);return e._addClass(n,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(n)):"tr"===s?e._createTrPlaceholder(e.currentItem,n):"img"===s&&n.attr("src",e.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(t,n){(!i||s.forcePlaceholderSize)&&(n.height()||n.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),n.width()||n.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var s=this;e.children().each(function(){t("<td>&#160;</td>",s.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,s,n,o,a,r,h,l,c,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&t.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(n=1e4,o=null,c=d.floating||this._isFloating(this.currentItem),a=c?"left":"top",r=c?"width":"height",u=c?"pageX":"pageY",s=this.items.length-1;s>=0;s--)t.contains(this.containers[p].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(h=this.items[s].item.offset()[a],l=!1,e[u]-h>this.items[s][r]/2&&(l=!0),n>Math.abs(e[u]-h)&&(n=Math.abs(e[u]-h),o=this.items[s],this.direction=l?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1),void 0;o?this._rearrange(e,o,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,s=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return s.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(s[0]),s[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!s[0].style.width||i.forceHelperSize)&&s.width(this.currentItem.width()),(!s[0].style.height||i.forceHelperSize)&&s.height(this.currentItem.height()),s},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,s,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.containment).offset(),s="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(s?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(s?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var s="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(n[0].tagName);return{top:i.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:n.scrollTop())*s,left:i.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:n.scrollLeft())*s}},_generatePosition:function(e){var i,s,n=this.options,o=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,h=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),n.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/n.grid[1])*n.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-n.grid[1]:i+n.grid[1]:i,s=this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0],o=this.containment?s-this.offset.click.left>=this.containment[0]&&s-this.offset.click.left<=this.containment[2]?s:s-this.offset.click.left>=this.containment[0]?s-n.grid[0]:s+n.grid[0]:s)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():h?0:r.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():h?0:r.scrollLeft())}},_rearrange:function(t,e,i,s){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(t,e){function i(t,e,i){return function(s){i._trigger(t,s,e._uiHash(e))}}this.reverting=!1;var s,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(s in this._storedCSS)("auto"===this._storedCSS[s]||"static"===this._storedCSS[s])&&(this._storedCSS[s]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),s=this.containers.length-1;s>=0;s--)e||n.push(i("deactivate",this,this.containers[s])),this.containers[s].containerCache.over&&(n.push(i("out",this,this.containers[s])),this.containers[s].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(s=0;n.length>s;s++)n[s].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,s){var n=i.attr(s);null!=n&&n.length&&(e[s]=n)}),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?(delete this.cancelBlur,void 0):(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t),void 0)},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){function i(){var e=this.element[0]===t.ui.safeActiveElement(this.document[0]);e||(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s}))}var s;s=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),this._start(e)!==!1&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?this._start(e)===!1?!1:(this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e),void 0):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,s=t.ui.keyCode;switch(e.keyCode){case s.UP:return this._repeat(null,1,e),!0;case s.DOWN:return this._repeat(null,-1,e),!0;case s.PAGE_UP:return this._repeat(null,i.page,e),!0;case s.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return this.spinning||this._trigger("start",t)!==!1?(this.counter||(this.counter=1),this.spinning=!0,!0):!1},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&this._trigger("spin",e,{value:i})===!1||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,s=this.options;return e=null!==s.min?s.min:0,i=t-e,i=Math.round(i/s.step)*s.step,t=e+i,t=parseFloat(t.toFixed(this._precision())),null!==s.max&&t>s.max?s.max:null!==s.min&&s.min>t?s.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,s,n;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,this.element.val(this._format(i)),void 0):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(s=this.buttons.first().find(".ui-icon"),this._removeClass(s,null,this.options.icons.up),this._addClass(s,null,e.up),n=this.buttons.last().find(".ui-icon"),this._removeClass(n,null,this.options.icons.down),this._addClass(n,null,e.down)),this._super(t,e),void 0)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:r(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null===t?!1:t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&(i=this._parse(t),null!==i&&(e||(i=this._adjustValue(i)),t=this._format(i))),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:r(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:r(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:r(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:r(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?(r(this._value).call(this,t),void 0):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),t.uiBackCompat!==!1&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:function(){var t=/#.*$/;return function(e){var i,s;i=e.href.replace(t,""),s=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(n){}try{s=decodeURIComponent(s)}catch(n){}return e.hash.length>1&&i===s}}(),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=this.options.active!==!1&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===e&&(s&&this.tabs.each(function(i,n){return t(n).attr("aria-controls")===s?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=this.tabs.length?0:!1)),e!==!1&&(e=this.tabs.index(this.tabs.eq(e)),-1===e&&(e=i?!1:0)),!i&&e===!1&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:s++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:n=!1,s--;break;case t.ui.keyCode.END:s=this.anchors.length-1;break;case t.ui.keyCode.HOME:s=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),this._activate(s),void 0;case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),this._activate(s===this.options.active?!1:s),void 0;default:return}e.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){function s(){return e>n&&(e=0),0>e&&(e=n),e}for(var n=this.tabs.length-1;-1!==t.inArray(s(),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?(this._activate(e),void 0):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||this.options.active!==!1||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e),void 0)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),e.active!==!1&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,s){var n,o,a,r=t(s).uniqueId().attr("id"),h=t(s).closest("li"),l=h.attr("aria-controls");e._isLocal(s)?(n=s.hash,a=n.substring(1),o=e.element.find(e._sanitizeSelector(n))):(a=h.attr("aria-controls")||t({}).uniqueId()[0].id,n="#"+a,o=e.element.find(n),o.length||(o=e._createPanel(a),o.insertAfter(e.panels[i-1]||e.tablist)),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),l&&h.data("ui-tabs-aria-controls",l),h.attr({"aria-controls":a,"aria-labelledby":r}),o.attr("aria-labelledby",r)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,s,n;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;s=this.tabs[n];n++)i=t(s),e===!0||-1!==t.inArray(n,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,e===!0)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,s=this.element.parent();"fill"===e?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),s=e.css("position");"absolute"!==s&&"fixed"!==s&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,s=this.active,n=t(e.currentTarget),o=n.closest("li"),a=o[0]===s[0],r=a&&i.collapsible,h=r?t():this._getPanelForTab(o),l=s.length?this._getPanelForTab(s):t(),c={oldTab:s,oldPanel:l,newTab:r?t():o,newPanel:h};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||this._trigger("beforeActivate",e,c)===!1||(i.active=r?!1:this.tabs.index(o),this.active=a?t():o,this.xhr&&this.xhr.abort(),l.length||h.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),h.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function s(){o.running=!1,o._trigger("activate",e,i)}function n(){o._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&o.options.show?o._show(a,o.options.show,s):(a.show(),s())}var o=this,a=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){o._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),n()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),n()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,s=this._findActive(e);s[0]!==this.active[0]&&(s.length||(s=this.active),i=s.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return e===!1?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;i!==!1&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(i!==!0){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var s=this,n=this.tabs.eq(e),o=n.find(".ui-tabs-anchor"),a=this._getPanelForTab(n),r={tab:n,panel:a},h=function(t,e){"abort"===e&&s.panels.stop(!1,!0),s._removeClass(n,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr};this._isLocal(o[0])||(this.xhr=t.ajax(this._ajaxSettings(o,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(n,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,n){setTimeout(function(){a.html(t),s._trigger("load",i,r),h(n,e)},1)}).fail(function(t,e){setTimeout(function(){h(t,e)},1)})))},_ajaxSettings:function(e,i,s){var n=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return n._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},s))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),t.uiBackCompat!==!1&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var s=(e.attr("aria-describedby")||"").split(/\s+/);s.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(s.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),s=(e.attr("aria-describedby")||"").split(/\s+/),n=t.inArray(i,s);-1!==n&&s.splice(n,1),e.removeData("ui-tooltip-id"),s=t.trim(s.join(" ")),s?e.attr("aria-describedby",s):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var s=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){s._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur");n.target=n.currentTarget=s.element[0],e.close(n,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,s=t(e?e.target:this.element).closest(this.options.items);s.length&&!s.data("ui-tooltip-id")&&(s.attr("title")&&s.data("ui-tooltip-title",s.attr("title")),s.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&s.parents().each(function(){var e,s=t(this);s.data("ui-tooltip-open")&&(e=t.Event("blur"),e.target=e.currentTarget=this,i.close(e,!0)),s.attr("title")&&(s.uniqueId(),i.parents[this.id]={element:this,title:s.attr("title")},s.attr("title",""))}),this._registerCloseHandlers(e,s),this._updateContent(s,e))},_updateContent:function(t,e){var i,s=this.options.content,n=this,o=e?e.type:null;return"string"==typeof s||s.nodeType||s.jquery?this._open(e,t,s):(i=s.call(t[0],function(i){n._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=o),this._open(e,t,i))})}),i&&this._open(e,t,i),void 0)},_open:function(e,i,s){function n(t){l.of=t,a.is(":hidden")||a.position(l)}var o,a,r,h,l=t.extend({},this.options.position);if(s){if(o=this._find(i))return o.tooltip.find(".ui-tooltip-content").html(s),void 0;i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),o=this._tooltip(i),a=o.tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").html(s),this.liveRegion.children().hide(),h=t("<div>").html(a.find(".ui-tooltip-content").html()),h.removeAttr("name").find("[name]").removeAttr("name"),h.removeAttr("id").find("[id]").removeAttr("id"),h.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){a.is(":visible")&&(n(l.of),clearInterval(r))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,i){var s={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var s=t.Event(e);s.currentTarget=i[0],this.close(s,!0)}}};i[0]!==this.element[0]&&(s.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(s.mouseleave="close"),e&&"focusin"!==e.type||(s.focusout="close"),this._on(!0,i,s)},close:function(e){var i,s=this,n=t(e?e.currentTarget:this.element),o=this._find(n);return o?(i=o.tooltip,o.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){s._removeTooltip(t(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete s.parents[e]}),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1)),void 0):(n.removeData("ui-tooltip-open"),void 0)},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),s=t("<div>").appendTo(i),n=i.uniqueId().attr("id");return this._addClass(s,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[n]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,s){var n=t.Event("blur"),o=s.element;n.target=n.currentTarget=o[0],e.close(n,!0),t("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),t.uiBackCompat!==!1&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip});