PageSourceSearch

https://clientes.informa.es/assets/application-01a06380ff9b9b29e82…af6af253b28401635afe570dc1d7be83a0d3c167.js

js informa.es collected 2026-09-24 09:37:24 UTC 1,051,185 bytes, 33 lines download raw bytes

1function cambiarVisibilidad(t){obj=document.getElementById(t),visible="none"!=obj.style.display,visible?obj.style.display="none":obj.style.display="block"}function close_flash_alert(t){$("#"+t).toggle()}function valEmail(t){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)}function checkFormatPassword(t){return passwordPattern=/^(?=.*\d)(?=.*[a-zA-Z])([\w\W])*$/,passwordPattern.test(t)&&t.length>=6}function checkFormatFecha(t){return new RegExp("^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$").test(t)}function dameAgno(t){var e=new RegExp("^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$"),i=new RegExp("[0-9]{4}$");return!!e.test(t)&&t.match(i)[0]}function dameDia(t){var e=new RegExp("^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$"),i=new RegExp("^[0-9]{1,2}/");return!!e.test(t)&&(dia=t.match(i)[0],2==dia.length?dia.substr(0,1):dia.substr(0,2))}function dameMes(t){var e=new RegExp("^[0-9]{1,2}/[0-9]{1,2}/[0-9]{4}$"),i=new RegExp("/[0-9]{1,2}/");return!!e.test(t)&&(mes=t.match(i)[0],3==mes.length?mes.substr(1,1):mes.substr(1,2))}function submit_form_filters_modular(){$("form#form_filters_modular #board_filtro_grupo").val(""),$("form#form_filters_modular #board_filtro_fuente").val(""),$("form#form_filters_modular #board_filtro_ano").val(""),$("form#form_filters_modular").submit()}function reset_form(t){$("#"+t).find(":input").each(function(){switch(this.type){case"select-multiple":case"select-one":case"text":case"textarea":$(this).val("");break;case"checkbox":case"radio":this.checked=!1}})}function change_height_layer(t,e){$("#resumen").toggle("slide",function(){$("#ficha-container").css("height","auto"),Informa.initializeScrollableMenu("#ficha-container","#ficha-aside"),obj=document.getElementById("resumen"),"none"==obj.style.display?document.getElementById("href-summary").innerHTML=t:document.getElementById("href-summary").innerHTML=e})}function change_childs(t){all_checks=$("#form_filters_modular").find(".check_type_info");for(var e=$("#padre_"+t),i=0;i<all_checks.length;i++)if(all_checks[i].id=="check_board_"+t){var n=all_checks[i];e.is(":checked")?n.checked=!0:n.checked=!1}}function change_parent(t){array=$("#childs_"+t).find(".check_type_info");for(var e=$("#padre_"+t),i=!1,n=!0,o=0;o<array.length;o++)0==array[o].checked&&(i=!0,n=n&&array[o].checked);1==i?e.attr("checked",!1):1==n&&e.attr("checked",!0)}function checkUncheckAll(t){var e=t.form,i=0;for(i=0;i<e.length;i++)"checkbox"==e[i].type&&"checkall"!=e[i].name&&0==e[i].disabled&&(e[i].checked=t.checked)}function is_blocked(t){return navigator&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1?blocked=!t||0==t.outerHeight:blocked=!t||t.closed||void 0===t||void 0===t.closed,blocked}function open_popup(t){var e=window.open(t,"_blank");setTimeout(function(){is_blocked(e)?$.fancybox({content:$("#pop_up").html(),padding:0}):e.focus()},60)}function set_layers_by_ajax(t,e,i){t=$(t),e=$(e);(i=$(i)).height()>e.height()?t.height(i.height()):t.height(e.height())}function regular_botones_guardar(){var t=$("#save-informas");if(t){var e=t.height(),i=Math.abs(parseInt(t.css("top")))+3;i!=e&&(i=-1*(e-3),t.css("top",i))}var n=$(".save-informas");n&&n.click(function(t){t.preventDefault(),t.stopPropagation();var e=($("#save-informas").width()-$(this).width())/2,i=$(this).position().left-e;$("#save-informas").css("left",i).fadeIn("fast"),$(document).bind("click",function(t){$target=t.target,$("#save-informas").has($target).length||$("#save-informas").hide()})})}function change_url_link(t,e){$(t).attr("href",e)}function change_url_form(t,e){$(t).attr("action",e)}function element_in_array(t,e){return"-1"!=jQuery.inArray(t,e)}function val_cod_postal(t){for(var e=/^\d{5}$/,i=t.split(","),n=!1,o=0;o<i.length;o++)if(1==e.test(i[o])){n=!0;break}return n}function fancycontent(t,e){$.fancybox({content:$(t).html(),title:e,titlePosition:"over-top",helpers:{title:{type:"inside",position:"top"}},padding:0})}function modulo(t,e){for(var i=10,n=t.length,o=0,s=0;s<n;s+=i){o=(o+""+t.substr(s,i))%e}return o}function valorCifras(t){for(var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=[],n=0;n<t.length;n++){var o=e.indexOf(t[n]);i.push(o<0?"-":o)}return i.join("")}function validarIBAN(t){var e=t.substr(0,2),i=t.substr(2,2),n=t.substr(4,20)+valorCifras(e)+i;return resto=modulo(n,97),1==resto}function validaLibreta(t,e,i,n,o){var s;return 4==t.length&&(4==e.length&&(4==i.length&&(2==n.length&&(10==o.length&&(s=4*e.charAt(0),s+=8*e.charAt(1),s+=5*e.charAt(2),s+=10*e.charAt(3),s+=9*i.charAt(0),s+=7*i.charAt(1),s+=3*i.charAt(2),11==(s=11-((s+=6*i.charAt(3))-11*Math.floor(s/11)))&&(s=0),10==s&&(s=1),s==n.charAt(0)&&(s=1*o.charAt(0),s+=2*o.charAt(1),s+=4*o.charAt(2),s+=8*o.charAt(3),s+=5*o.charAt(4),s+=10*o.charAt(5),s+=9*o.charAt(6),s+=7*o.charAt(7),s+=3*o.charAt(8),11==(s=11-((s+=6*o.charAt(9))-11*Math.floor(s/11)))&&(s=0),10==s&&(s=1),s==n.charAt(1)&&!!validarIBAN(t+e+i+n+o)))))))}function validaNif(t){return/[0]{0,1}((\d{8}([A-Za-z]))|(([A-Za-z])\d{7}([A-Za-z\d])))/.test(t)}function validaPhone(t){return/(\+[0-9]{2})?[0-9]{9}$/.test(t)}
1function invalid_numeric_value(t){return!(!isNaN(t)&&""!=t)}!function(t,e){"use strict";var i;t.rails!==e&&t.error("jquery-ujs has already been loaded!");var n=t(document);t.rails=i={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=i.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+i.csrfParam()+'"]').val(i.csrfToken())},fire:function(e,i,n){var o=t.Event(i);return e.trigger(o,n),!1!==o.result},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&!1!==t.data("remote")},handleRemote:function(n){var o,s,r,a,l,c;if(i.fire(n,"ajax:before")){if(a=n.data("with-credentials")||null,l=n.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,n.is("form")){o=n.data("ujs:submit-button-formmethod")||n.attr("method"),s=n.data("ujs:submit-button-formaction")||n.attr("action"),r=t(n[0]).serializeArray();var h=n.data("ujs:submit-button");h&&(r.push(h),n.data("ujs:submit-button",null)),n.data("ujs:submit-button-formmethod",null),n.data("ujs:submit-button-formaction",null)}else n.is(i.inputChangeSelector)?(o=n.data("method"),s=n.data("url"),r=n.serialize(),n.data("params")&&(r=r+"&"+n.data("params"))):n.is(i.buttonClickSelector)?(o=n.data("method")||"get",s=n.data("url"),r=n.serialize(),n.data("params")&&(r=r+"&"+n.data("params"))):(o=n.data("method"),s=i.href(n),r=n.data("params")||null);return c={type:o||"GET",data:r,dataType:l,beforeSend:function(t,o){if(o.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),!i.fire(n,"ajax:beforeSend",[t,o]))return!1;n.trigger("ajax:send",t)},success:function(t,e,i){n.trigger("ajax:success",[t,e,i])},complete:function(t,e){n.trigger("ajax:complete",[t,e])},error:function(t,e,i){n.trigger("ajax:error",[t,e,i])},crossDomain:i.isCrossDomain(s)},a&&(c.xhrFields={withCredentials:a}),s&&(c.url=s),i.ajax(c)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var i=document.createElement("a");try{return i.href=t,i.href=i.href,!((!i.protocol||":"===i.protocol)&&!i.host||e.protocol+"//"+e.host==i.protocol+"//"+i.host)}catch(t){return!0}},handleMethod:function(n){var o=i.href(n),s=n.data("method"),r=n.attr("target"),a=i.csrfToken(),l=i.csrfParam(),c=t('<form method="post" action="'+o+'"></form>'),h='<input name="_method" value="'+s+'" type="hidden" />';l===e||a===e||i.isCrossDomain(o)||(h+='<input name="'+l+'" value="'+a+'" type="hidden" />'),r&&c.attr("target",r),c.hide().append(h).appendTo("body"),c.submit()},formElements:function(e,i){return e.is("form")?t(e[0].elements).filter(i):e.find(i)},disableFormElements:function(e){i.formElements(e,i.disableSelector).each(function(){i.disableFormElement(t(this))})},disableFormElement:function(t){var i,n;i=t.is("button")?"html":"val",(n=t.data("disable-with"))!==e&&(t.data("ujs:enable-with",t[i]()),t[i](n)),t.prop("disabled",!0),t.data("ujs:disabled",!0)},enableFormElements:function(e){i.formElements(e,i.enableSelector).each(function(){i.enableFormElement(t(this))})},enableFormElement:function(t){var i=t.is("button")?"html":"val";t.data("ujs:enable-with")!==e&&(t[i](t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.prop("disabled",!1),t.removeData("ujs:disabled")},allowAction:function(t){var e,n=t.data("confirm"),o=!1;if(!n)return!0;
1if(i.fire(t,"confirm")){try{o=i.confirm(n)}catch(t){(console.error||console.log).call(console,t.stack||t)}e=i.fire(t,"confirm:complete",[o])}return o&&e},blankInputs:function(e,i,n){var o,s,r,a=t(),l=i||"input,textarea",c=e.find(l),h={};return c.each(function(){(o=t(this)).is("input[type=radio]")?(r=o.attr("name"),h[r]||(0===e.find('input[type=radio]:checked[name="'+r+'"]').length&&(s=e.find('input[type=radio][name="'+r+'"]'),a=a.add(s)),h[r]=r)):(o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):!!o.val())===n&&(a=a.add(o))}),!!a.length&&a},nonBlankInputs:function(t,e){return i.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var n=t.data("disable-with");n!==e&&(t.data("ujs:enable-with",t.html()),t.html(n)),t.bind("click.railsDisable",function(t){return i.stopEverything(t)}),t.data("ujs:disabled",!0)},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable"),t.removeData("ujs:disabled")}},i.fire(n,"rails:attachBindings")&&(t.ajaxPrefilter(function(t,e,n){t.crossDomain||i.CSRFProtection(n)}),t(window).on("pageshow.rails",function(){t(t.rails.enableSelector).each(function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableFormElement(e)}),t(t.rails.linkDisableSelector).each(function(){var e=t(this);e.data("ujs:disabled")&&t.rails.enableElement(e)})}),n.on("ajax:complete",i.linkDisableSelector,function(){i.enableElement(t(this))}),n.on("ajax:complete",i.buttonDisableSelector,function(){i.enableFormElement(t(this))}),n.on("click.rails",i.linkClickSelector,function(e){var n=t(this),o=n.data("method"),s=n.data("params"),r=e.metaKey||e.ctrlKey;if(!i.allowAction(n))return i.stopEverything(e);if(!r&&n.is(i.linkDisableSelector)&&i.disableElement(n),i.isRemote(n)){if(r&&(!o||"GET"===o)&&!s)return!0;var a=i.handleRemote(n);return!1===a?i.enableElement(n):a.fail(function(){i.enableElement(n)}),!1}return o?(i.handleMethod(n),!1):void 0}),n.on("click.rails",i.buttonClickSelector,function(e){var n=t(this);if(!i.allowAction(n)||!i.isRemote(n))return i.stopEverything(e);n.is(i.buttonDisableSelector)&&i.disableFormElement(n);var o=i.handleRemote(n);return!1===o?i.enableFormElement(n):o.fail(function(){i.enableFormElement(n)}),!1}),n.on("change.rails",i.inputChangeSelector,function(e){var n=t(this);return i.allowAction(n)&&i.isRemote(n)?(i.handleRemote(n),!1):i.stopEverything(e)}),n.on("submit.rails",i.formSubmitSelector,function(n){var o,s,r=t(this),a=i.isRemote(r);if(!i.allowAction(r))return i.stopEverything(n);if(r.attr("novalidate")===e)if(r.data("ujs:formnovalidate-button")===e){if((o=i.blankInputs(r,i.requiredInputSelector,!1))&&i.fire(r,"ajax:aborted:required",[o]))return i.stopEverything(n)}else r.data("ujs:formnovalidate-button",e);if(a){if(s=i.nonBlankInputs(r,i.fileInputSelector)){setTimeout(function(){i.disableFormElements(r)},13);var l=i.fire(r,"ajax:aborted:file",[s]);return l||setTimeout(function(){i.enableFormElements(r)},13),l}return i.handleRemote(r),!1}setTimeout(function(){i.disableFormElements(r)},13)}),n.on("click.rails",i.formInputClickSelector,function(e){var n=t(this);if(!i.allowAction(n))return i.stopEverything(e);var o=n.attr("name"),s=o?{name:o,value:n.val()}:null,r=n.closest("form");0===r.length&&(r=t("#"+n.attr("form"))),r.data("ujs:submit-button",s),r.data("ujs:formnovalidate-button",n.attr("formnovalidate")),r.data("ujs:submit-button-formaction",n.attr("formaction")),r.data("ujs:submit-button-formmethod",n.attr("formmethod"))}),n.on("ajax:send.rails",i.formSubmitSelector,function(e){this===e.target&&i.disableFormElements(t(this))}),n.on("ajax:complete.rails",i.formSubmitSelector,function(e){this===e.target&&i.enableFormElements(t(this))}),t(function(){i.refreshCSRFTokens()}))}(jQuery),function(t,e){function i(e,i){var o,s,r,a=e.nodeName.toLowerCase();return"area"===a?(s=(o=e.parentNode).name,!(!e.href||!s||"map"!==o.nodeName.toLowerCase())&&(!!(r=t("img[usemap=#"+s+"]")[0])&&n(r))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a&&e.href||i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var o,s,r=0,a=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:(o=t.fn.focus,function(e,i){return"number"==typeof e?this.each(function(){var n=this;setTimeout(function(){t(n).focus(),i&&i.call(n)},e)}):o.apply(this,arguments)}),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}
1).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,o,s=t(this[0]);s.length&&s[0]!==document;){if(("absolute"===(n=s.css("position"))||"relative"===n||"fixed"===n)&&(o=parseInt(s.css("zIndex"),10),!isNaN(o)&&0!==o))return o;s=s.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++r)})},removeUniqueId:function(){return this.each(function(){a.test(this.id)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),o=isNaN(n);return(o||n>=0)&&i(e,!o)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function o(e,i,n,o){return t.each(s,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var s="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(r,o(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(r,o(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=(s=t.fn.removeData,function(e){return arguments.length?s.call(this,t.camelCase(e)):s.call(this)})),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var o,s=t.ui[e].prototype;for(o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])},call:function(t,e,i){var n,o=t.plugins[e];if(o&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<o.length;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return e[n]>0||(e[n]=1,o=e[n]>0,e[n]=0,o)}})}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(t){}o(e)},t.widget=function(e,i,n){var o,s,r,a,l={},c=e.split(".")[0];e=e.split(".")[1],o=c+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][o.toLowerCase()]=function(e){return!!t.data(e,o)},t[c]=t[c]||{},s=t[c][e],r=t[c][e]=function(t,e){if(!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(e,n){var o,s;t.isFunction(n)?l[e]=(o=function(){return i.prototype[e].apply(this,arguments)},s=function(t){return i.prototype[e].apply(this,t)},function(){var t,e=this._super,i=this._superApply;return this._super=o,this._superApply=s,t=n.apply(this,arguments),this._super=e,this._superApply=i,t}):l[e]=n}),r.prototype=t.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||e},l,{constructor:r,namespace:c,widgetName:e,widgetFullName:o}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(i){for(var o,s,r=n.call(arguments,1),a=0,l=r.length;a<l;a++)for(o in r[a])s=r[a][o],r[a].hasOwnProperty(o)&&s!==e&&(t.isPlainObject(s)?i[o]=t.isPlainObject(i[o])?t.widget.extend({},i[o],s):t.widget.extend({},s):i[o]=s);return i},t.widget.bridge=function(i,o){var s=o.prototype.widgetFullName||i;t.fn[i]=function(r){var a="string"==typeof r,l=n.call(arguments,1
vendor: 13,436 bytes, lines 1-2
1),c=this;return r=!a&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,a?this.each(function(){var n,o=t.data(this,s);return o?t.isFunction(o[r])&&"_"!==r.charAt(0)?(n=o[r].apply(o,l))!==o&&n!==e?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):void 0:t.error("no such method '"+r+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var e=t.data(this,s);e?e.option(r||{})._init():t.data(this,s,new o(r,this))}),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var o,s,r,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},o=i.split("."),i=o.shift(),o.length){for(s=a[i]=t.widget.extend({},this.options[i]),r=0;r<o.length-1;r++)s[o[r]]=s[o[r]]||{},s=s[o[r]];if(i=o.pop(),1===arguments.length)return s[i]===e?null:s[i];s[i]=n}else{if(1===arguments.length)return this.options[i]===e?null:this.options[i];a[i]=n}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 this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var o,s=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,function(n,r){function a(){if(e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?s[r]:r).apply(s,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),c=l[1]+s.eventNamespace,h=l[2];h?o.delegate(h,c,a):i.bind(c,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,s,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o]);return this.element.trigger(i,n),!(t.isFunction(r)&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){"string"==typeof o&&(o={effect:o});var r,a=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})&&(o={duration:o}),r=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),r&&t.effects&&t.effects.effect[a]?n[e](o):a!==e&&n[a]?n[a](o.duration,o.easing,s):n.queue(function(i){t(this)[e](),s&&s.call(n[0]),i()})}})}(jQuery),function(t){var e=0,i={},n={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.4",options:{active:0,animate:{},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},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each(function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")}),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),"disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)):this._activate(e)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,o=this.headers.index(e.target),s=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:s=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:s=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:s=this.headers[0];break;case i.END:s=this.headers[n-1]}s&&(t(e.target).attr("tabIndex",-1),t(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?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(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,n=this.options,o=n.heightStyle,s=this.element.parent(),r=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e);this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(e){var i=t(this),n=i.attr("id"),o=i.next(),s=o.attr("id");n||(n=r+"-header-"+e,i.attr("id",n)),s||(s=r+"-panel-"+e,o.attr("id",s)),i.attr("aria-controls",s),o.attr("aria-labelledby",n)}).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(n.event),"fill"===o?(i=s.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===o&&(i=0,this.headers.next().each(function(){i=Math.max(i,t(this).css("height","").height())}).height(i))},_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=this.options,n=this.active,o=t(e.currentTarget),s=o[0]===n[0],r=s&&i.collapsible,a=r?t():o.next(),l=n.next(),c={oldHeader:n,oldPanel:l,newHeader:r?t():o,newPanel:a};e.preventDefault(),s&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!r&&this.headers.index(o),this.active=s?t():o,this._toggle(c),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),s||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&o.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true",tabIndex:0,"aria-expanded":"true"})},_animate:function(t,e,o){var s,r,a,l=this,c=0,h=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},d=h&&u.down||u,p=function(){l._toggleComplete(o)};return"number"==typeof d&&(a=d),"string"==typeof d&&(r=d),r=r||d.easing||u.easing,a=a||d.duration||u.duration,e.length?t.length?(s=t.show().outerHeight(),e.animate(i,{duration:a,easing:r,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(n,{duration:a,easing:r,complete:p,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?c+=i.now:"content"!==l.options.heightStyle&&(i.now=Math.round(s-e.outerHeight()-c),c=0)}})):e.animate(i,a,r,p):t.animate(n,a,r,p)},_toggleComplete:function(t){var e=t.oldPanel;e.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(p.test(t[0])?e/100:1),parseFloat(t[1])*(p.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}function o(e){var i=e[0];return 9===i.nodeType?{width:e.width(),
2height: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()}}t.ui=t.ui||{};
vendor: 4,469 bytes, line 2
2var s,r=Math.max,a=Math.abs,l=Math.round,c=/left|center|right/,h=/top|center|bottom/,u=/[\+\-]\d+(\.[\d]+)?%?/,d=/^\w+/,p=/%$/,f=t.fn.position;t.position={scrollbarWidth:function(){if(s!==e)return s;var i,n,o=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),r=o.children()[0];return t("body").append(o),i=r.offsetWidth,o.css("overflow","scroll"),i===(n=r.offsetWidth)&&(n=o[0].clientWidth),o.remove(),s=i-n},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]);return{element:i,isWindow:n,isDocument:!!i[0]&&9===i[0].nodeType,offset:i.offset()||{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:n?i.width():i.outerWidth(),height:n?i.height():i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return f.apply(this,arguments);e=t.extend({},e);var s,p,m,g,v,y,_=t(e.of),b=t.position.getWithinInfo(e.within),x=t.position.getScrollInfo(b),w=(e.collision||"flip").split(" "),k={};return y=o(_),_[0].preventDefault&&(e.at="left top"),p=y.width,m=y.height,g=y.offset,v=t.extend({},g),t.each(["my","at"],function(){var t,i,n=(e[this]||"").split(" ");1===n.length&&(n=c.test(n[0])?n.concat(["center"]):h.test(n[0])?["center"].concat(n):["center","center"]),n[0]=c.test(n[0])?n[0]:"center",n[1]=h.test(n[1])?n[1]:"center",t=u.exec(n[0]),i=u.exec(n[1]),k[this]=[t?t[0]:0,i?i[0]:0],e[this]=[d.exec(n[0])[0],d.exec(n[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?v.left+=p:"center"===e.at[0]&&(v.left+=p/2),"bottom"===e.at[1]?v.top+=m:"center"===e.at[1]&&(v.top+=m/2),s=i(k.at,p,m),v.left+=s[0],v.top+=s[1],this.each(function(){var o,c,h=t(this),u=h.outerWidth(),d=h.outerHeight(),f=n(this,"marginLeft"),y=n(this,"marginTop"),C=u+f+n(this,"marginRight")+x.width,S=d+y+n(this,"marginBottom")+x.height,P=t.extend({},v),T=i(k.my,h.outerWidth(),h.outerHeight());"right"===e.my[0]?P.left-=u:"center"===e.my[0]&&(P.left-=u/2),"bottom"===e.my[1]?P.top-=d:"center"===e.my[1]&&(P.top-=d/2),P.left+=T[0],P.top+=T[1],t.support.offsetFractions||(P.left=l(P.left),P.top=l(P.top)),o={marginLeft:f,marginTop:y},t.each(["left","top"],function(i,n){t.ui.position[w[i]]&&t.ui.position[w[i]][n](P,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:d,collisionPosition:o,collisionWidth:C,collisionHeight:S,offset:[s[0]+T[0],s[1]+T[1]],my:e.my,at:e.at,within:b,elem:h})}),e.using&&(c=function(t){var i=g.left-P.left,n=i+p-u,o=g.top-P.top,s=o+m-d,l={target:{element:_,left:g.left,top:g.top,width:p,height:m},element:{element:h,left:P.left,top:P.top,width:u,height:d},horizontal:n<0?"left":i>0?"right":"center",vertical:s<0?"top":o>0?"bottom":"middle"};p<u&&a(i+n)<p&&(l.horizontal="center"),m<d&&a(o+s)<m&&(l.vertical="middle"),r(a(i),a(n))>r(a(o),a(s))?l.important="horizontal":l.important="vertical",e.using.call(this,t,l)}),h.offset(t.extend(P,{using:c}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,a=t.left-e.collisionPosition.marginLeft,l=o-a,c=a+e.collisionWidth-s-o;e.collisionWidth>s?l>0&&c<=0?(i=t.left+l+e.collisionWidth-s-o,t.left+=l-i):t.left=c>0&&l<=0?o:l>c?o+s-e.collisionWidth:o:l>0?t.left+=l:c>0?t.left-=c:t.left=r(t.left-a,t.left)},top:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,a=t.top-e.collisionPosition.marginTop,l=o-a,c=a+e.collisionHeight-s-o;e.collisionHeight>s?l>0&&c<=0?(i=t.top+l+e.collisionHeight-s-o,t.top+=l-i):t.top=c>0&&l<=0?o:l>c?o+s-e.collisionHeight:o:l>0?t.top+=l:c>0?t.top-=c:t.top=r(t.top-a,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,s=o.offset.left+o.scrollLeft,r=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-l,u=c+e.collisionWidth-r-l,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];h<0?((i=t.left+d+p+f+e.collisionWidth-r-s)<0||i<a(h))&&(t.left+=d+p+f):u>0&&((n=t.left-e.collisionPosition.marginLeft+d+p+f-l)>0||a(n)<u)&&(t.left+=d+p+f)},top:function(t,e){var i,n,o=e.within,s=o.offset.top+o.scrollTop,r
vendor: 8,707 bytes, line 2
2=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-l,u=c+e.collisionHeight-r-l,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];h<0?(n=t.top+d+p+f+e.collisionHeight-r-s,t.top+d+p+f>h&&(n<0||n<a(h))&&(t.top+=d+p+f)):u>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-l,t.top+d+p+f>u&&(i>0||a(i)<u)&&(t.top+=d+p+f))}},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)}}},function(){var e,i,n,o,s,r=document.getElementsByTagName("body")[0],a=document.createElement("div");for(s in e=document.createElement(r?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[s]=n[s];e.appendChild(a),(i=r||document.documentElement).insertBefore(e,i.firstChild),a.style.cssText="position: absolute; left: 10.7432222px;",o=t(a).offset().left,t.support.offsetFractions=o>10&&o<11,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t){t.widget("ui.menu",{version:"1.10.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},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().addClass("ui-menu ui-widget ui-widget-content ui-corner-all").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}).bind("click"+this.eventNamespace,t.proxy(function(t){this.options.disabled&&t.preventDefault()},this)),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item > a":function(t){t.preventDefault()},"click .ui-state-disabled > a":function(t){t.preventDefault()},"click .ui-menu-item:has(a)":function(e){var i=t(e.target).closest(".ui-menu-item");!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")&&t(this.document[0].activeElement).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){var i=t(e.currentTarget);i.siblings().children(".ui-state-active").removeClass("ui-state-active"),this.focus(e,i)},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.children(".ui-menu-item").eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){t(e.target).closest(".ui-menu").length||this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-corner-all ui-menu-icons").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").children("a").removeUniqueId().removeClass("ui-corner-all ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=t(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}var n,o,s,r,a,l=!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:l=!1,o=this.previousFilter||"",s=String.fromCharCode(e.keyCode),r=!1,clearTimeout(this.filterTimer),s===o?r=!0:s=o+s,a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())}),(n=r&&-1!==n.index(this.active.next())?this.active.nextAll(".ui-menu-item"):n).length||(s=String.fromCharCode(e.keyCode),a=new RegExp("^"+i(s),"i"),n=this.activeMenu.children(".ui-menu-item").filter(function(){return a.test(t(this).children("a").text())})),n.length?(this.focus(e,n),n.length>1?(this.previousFilter=s,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter):delete this.previousFilter}l&&e.preventDefault()},_activate:function(t){this.active.is(".ui-state-disabled")||(this.active.children("a[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i=this.options.icons.submenu,n=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),n.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-corner-all").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),n=e.prev("a"),o=t("<span>").addClass("ui-menu-icon ui-icon "+i).data("ui-menu-submenu-carat",!0);n.attr("aria-haspopup","true").prepend(o),e.attr("aria-labelledby",n.attr("id"))}),(e=n.add(this.element)).children(":not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","presentation").children("a").uniqueId().addClass("ui-corner-all").attr({tabIndex:-1,role:this._itemRole()}),e.children(":not(.ui-menu-item)").each(function(){var e=t(this);/[^\-\u2014\u2013\s]/.test(e.text())||e.addClass("ui-widget-content ui-menu-divider")}),e.children(".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){"icons"===t&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(e.submenu),this._super(t,e)},focus:function(t,e){var i,n;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children("a").addClass("ui-state-focus"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").children("a:first").addClass("ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,o,s,r,a;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=e.height(),o<0?this.activeMenu.scrollTop(s+o):o+a>r&&this.activeMenu.scrollTop(s+o-r+a))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this.active.children("a").removeClass("ui-state-focus"),this.active=null,this._trigger("blur",t,{item:this.active}))},_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 n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this.activeMenu=n},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","fal
2se").end().find("a.ui-state-active").removeClass("ui-state-active")},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 ").children(".ui-menu-item").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 n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.children(".ui-menu-item")[e]()),this.focus(i,n)},nextPage:function(e){var i,n,o;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n-o<0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item")[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,o;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n+o>0}),this.focus(e,i)):this.focus(e,this.activeMenu.children(".ui-menu-item").first())):this.next(e)},_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)}})}(jQuery),function(t){t.widget("ui.autocomplete",{version:"1.10.4",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,n,o=this.element[0].nodeName.toLowerCase(),s="textarea"===o,r="input"===o;this.isMultiLine=!!s||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[s||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(o.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",o);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case s.UP:e=!0,this._keyEvent("previous",o);break;case s.DOWN:e=!0,this._keyEvent("next",o);break;case s.ENTER:case s.NUMPAD_ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case s.TAB:this.menu.active&&this.menu.select(o);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),this._change(t))}}),this._initSource(),this.menu=t("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().data("ui-menu"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];t(e.target).closest(".ui-menu-item").length||this._delay(function(){var e=this;this.document.one("mousedown",function(n){n.target===e.element[0]||n.target===i||t.contains(i,n.target)||e.close()})})},menufocus:function(e,i){if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)});var n=i.item.data("ui-autocomplete-item");!1!==this._trigger("focus",e,{item:n}
vendor: 12,460 bytes, line 2
2)?e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value):this.liveRegion.text(n.value)},menuselect:function(t,e){var i=e.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",t,{item:i})&&this._value(i.value),this.term=this._value(),this.close(t),this.selectedItem=i}}),this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("ui-helper-hidden-accessible").insertBefore(this.element),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").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()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,o){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){this.term!==this._value()&&(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):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this.element.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.element.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.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({label:e.label||e.value,value:e.value||e.label},e)})},_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()},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._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("<a>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},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())}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.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(t){var e;this._superApply(arguments),this.options.disabled||this.cancelSearch||(e=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.text(e))}})}(jQuery),function(t){var e,i="ui-button ui-widget ui-state-default ui-corner-all",n="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",o=function(){var e=t(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},s=function(e){var i=e.name,n=e.form,o=t([]);return i&&(i=i.replace(/'/g,"\\'"),o=n?t(n).find("[name='"+i+"']"):t("[name='"+i+"']",e.ownerDocument).filter(function(){return!this.form})),o};t.widget("ui.button",{version:"1.10.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,o),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var n=this,r=this.options,a="checkbox"===this.type||"radio"===this.type,l=a?"":"ui-state-active";null===r.label&&(r.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(i).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){r.disabled||this===e&&t(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){r.disabled||t(this).removeClass(l)}).bind("click"+this.eventNamespace,function(t){r.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),a&&this.element.bind("change"+this.eventNamespace,function(){n.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled)return!1}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).addClass("ui-state-active"),n.buttonElement.attr("aria-pressed","true");var e=n.element[0];s(e).not(e).map(function(){return t(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).addClass("ui-state-active"),e=this,n.document.one("mouseup",function(){e=null})}).bind("mouseup"+this.eventNamespace,function(){if(r.disabled)return!1;t(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){if(r.disabled)return!1;e.keyCode!==t.ui.keyCode.SPACE&&e.keyCode!==t.ui.keyCode.ENTER||t(this).addClass("ui-state-active")}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){t(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===t.ui.keyCode.SPACE&&t(this).click()})),this._setOption("disabled",r.disabled),this._resetButton()},_determineButtonType:function(){var t,e,i;this.element.is("[type=checkbox]")?this.type="checkbox":this.element.is("[type=radio]")?this.type="radio":this.element.is("input")?this.type="input":this.type="button","checkbox"===this.type||"radio"===this.type?(t=this.element.parents().last(),e="label[for='"+this.element.attr("id")+"']",this.buttonElement=t.find(e),this.buttonElement.length||(t=t.length?t.siblings():this.element.siblings(),this.buttonElement=t.filter(e),this.buttonElement.length||(this.buttonElement=t.find(e))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(i+" ui-state-active "+n).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(t,e){if(this._super(t,e),"disabled"===t)return this.element.prop("disabled",!!e),void(e&&this.buttonElement.removeClass("ui-state-focus"));this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?s(this.element[0]).each(function(){t(this).is(":checked")?t(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):t(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var e=this.buttonElement.removeClass(n),i=t("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),o=this.options.icons,s=o.primary&&o.secondary,r=[];o.primary||o.secondary?(this.options.text&&r.push("ui-button-text-icon"+(s?"s":o.primary?"-primary":"-secondary")),o.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+o.primary+"'></span>"),o.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+o.secondary+"'></span>"),this.options.text||(r.push(s?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",t.trim(i)))):r.push("ui-button-text-only"),e.addClass(r.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),t.widget("ui.buttonset",{version:"1.10.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(t,e){"disabled"===t&&this.buttons.button("option",t,e),this._super(t,e)},refresh:function(){var e="rtl"===this.element.css("direction");this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return t(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}})}(jQuery),function(t,e){function i(){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","Frid
2ay","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.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.delegate(i,"mouseout",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")}).delegate(i,"mouseover",function(){t.datepicker._isDisabledDatepicker(s.inline?e.parent()[0]:s.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 o(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}t.extend(t.ui,{datepicker:{version:"1.10.4"}});var s,r="datepicker";t.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,o,s
3;o="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),o)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):o&&this._inlineDatepicker(e,s)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),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 n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(i),t.data(e,r,i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,o,s,r=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=t("<span class='"+this._appendClass+"'>"+r+"</span>"),e[a?"before":"after"](i.append)),e.unbind("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.focus(this._showDatepicker),"button"!==n&&"both"!==n||(o=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:s,alt:o,title:o}):t("<button type='button'></button>").addClass(this._triggerClass).html(s?t("<img/>").attr({src:s,alt:o,title:o}):o)),e[a?"before":"after"](i.trigger),i.trigger.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,n,o,s=new Date(2009,11,20),r=this._get(t,"dateFormat");r.match(/[DM]/)&&(e=function(t){for(i=0,n=0,o=0;o<t.length;o++)t[o].length>i&&(i=t[o].length,n=o);return n},s.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,r,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,n,s,a){var l,c,h,u,d,p=this._dialogInst;return p||(this.uuid+=1,l="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+l+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),t("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],r,p)),o(p.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(c=document.documentElement.clientWidth,h=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[c/2-100+u,h/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],r,p),this},_destroyDatepicker:function(e){var i,n=t(e),o=t.data(e,r);n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,r),"input"===i?(o.append.remove(),o.trigger.remove(),n.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("
3keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty())},_enableDatepicker:function(e){var i,n,o=t(e),s=t.data(e,r);o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.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,n,o=t(e),s=t.data(e,r);o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.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;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,r)}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(i,n,s){var r,a,l,c,h=this._getInst(i);if(2===arguments.length&&"string"==typeof n)return"defaults"===n?t.extend({},t.datepicker._defaults):h?"all"===n?t.extend({},h.settings):this._get(h,n):null;r=n||{},"string"==typeof n&&((r={})[n]=s),h&&(this._curInst===h&&this._hideDatepicker(),a=this._getDateDatepicker(i,!0),l=this._getMinMaxDate(h,"min"),c=this._getMinMaxDate(h,"max"),o(h.settings,r),null!==l&&r.dateFormat!==e&&r.minDate===e&&(h.settings.minDate=this._formatDate(h,l)),null!==c&&r.dateFormat!==e&&r.maxDate===e&&(h.settings.maxDate=this._formatDate(h,c)),"disabled"in r&&(r.disabled?this._disableDatepicker(i):this._enableDatepicker(i)),this._attachments(t(i),h),this._autoSize(h),this._setDate(h,a),this._updateAlternate(h),this._updateDatepicker(h))},_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,n,o,s=t.datepicker._getInst(e.target),r=!0,a=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),r=!1;break;case 13:return(o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,o[0]),(i=t.datepicker._get(s,"onSelect"))?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,a?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,o=t.datepicker._getInst(e.target);if(t.datepicker._get(o,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var i,n,s,r,a,l,c;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(s=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(o(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),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"))}),a={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),a=t.datepicker._checkOffset(i,a,r),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":r?"fixed":"absolute",display:"none",left:a.left+"px",to
vendor: 25,011 bytes, lines 3-4
3p:a.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),c=t.datepicker._get(i,"duration"),i.dpDiv.zIndex(t(e).zIndex()+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),t.datepicker._shouldFocusInput(i)&&i.input.focus(),t.datepicker._curInst=i)))},_updateDatepicker:function(e){this.maxRows=4,s=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e),e.dpDiv.find("."+this._dayOverClass+" a").mouseover();var i,n=this._getNumberOfMonths(e),o=n[1],r=17;e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),o>1&&e.dpDiv.addClass("ui-datepicker-multi-"+o).css("width",r*o+"em"),e.dpDiv[(1!==n[0]||1!==n[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.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,n){var o=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?o-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+o>l&&l>o?Math.abs(i.left+o-l):0),i.top-=Math.min(i.top,i.top+s>c&&c>s?Math.abs(s+a):0),i},_findPos:function(e){for(var i,n=this._getInst(e),o=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,o,s,a=this._curInst;!a||e&&a!==t.data(e,r)||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),o=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,o):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1,(s=this._get(a,"onClose"))&&s.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).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=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===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var o=t(e),s=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(s,i+("M"===n?this._get(s,"showCurrentAtPos"):0),n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),o=this._getInst(n[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(i=new Date,o.selectedDay=i.getDate(),o.drawMonth=o.selectedMonth=i.getMonth(),o.drawYear=o.selectedYear=i.getFullYear()),this._notifyChange(o),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var o=t(e),s=this._getInst(o[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(o)},_selectDay:function(e,i,n,o){var s,r=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((s=this._getInst(r[0])).selectedDay=s.currentDay=t("a",o).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,o=t(e),s=this._getInst(o[0]);i=null!=i?i:this._formatDate(s),s.input&&s.input.val(i),this._updateAlternate(s),(n=this._get(s,"onSelect"))?n.apply(s.input?s.input[0]:null,[i,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var i,n,o,s=this._get(e,"altField");s&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),o=this.formatDate(i,n,this._getFormatConfig(e)),t(s).each(function(){t(this).val(o)}))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},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,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var o,s,r,a,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),u=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,y=-1,_=!1,b=function(t){var i=o+1<e.length&&e.charAt(o+1)===t;return i&&o++,i},x=function(t){var e=b(t),n=new RegExp("^\\d{1,"+("@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2)+"}"),o=i.substring(l).match(n);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},w=function(e,n,o){var s=-1,r=t.map(b(e)?o:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(r,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return s=e[0],l+=n.length,!1}),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(o))throw"Unexpected literal at position "+l;l++};for(o=0;o<e.length;o++)if(_)"'"!==e.charAt(o)||b("'")?k():_=!1;else switch(e.charAt(o)){case"d":v=x("d");break;case"D":w("D",u,d);break;case"o":y=x("o");break;case"m":g=x("m");break;case"M":g=w("M",p,f);break;case"y":m=x("y");break;case"@":m=(a=new Date(x("@"))).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"!":m=(a=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),g=a.getMonth()+1,v=a.getDate();break;case"'":b("'")?k():_=!0;break;default:k()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=h?0:-100)),y>-1)for(g=1,v=y;;){if(v<=(s=this._getDaysInMonth(m,g-1)))break;g++,v-=s}if((a=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||a.getMonth()+1!==g||a.getDate()!==v)throw"Invalid date";return a},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},h=function(t,e,i,n){return l(t)?n[e]:i[e]},u="",d=!1;if(e)for(n=0;n<t.length;n++)if(d)"'"!==t.charAt(n)||l("'")?u+=t.charAt(n):d=!1;else switch(t.charAt(n)){case"d":u+=c("d",e.getDate(),2);break;case"D":u+=h("D",e.getDay(),o,s);break;case"o":u+=c("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+=c("m",e.getMonth()+1,2);break;case"M":u+=h("M",e.getMonth(),r,a);break;case"y":u+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=t.charAt(n)}return u},_possibleChars:function(t){var e,i="",n=!1,o=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||o("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":o("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,i){return t.settings[i]!==e?t.settings[i]:this._defaults[i]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),s=o,r=this._getFormatConfig(t);try{s=this.parseDate(i,n,r)||o}catch(t){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.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,n){var o=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),s=n.getMonth(),r=n.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.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":s+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,s));break;case"y":case"Y":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(o,s))}l=a.exec(i)}return new Date(o,s,r)},r=null==i||""===i?n:"string"==typeof i?s(i):"number"==typeof i?isNaN(i)?n:o(i):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,o=t.selectedMonth,s=t.selectedYear,r=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=r.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=r.getMonth(),t.drawYear=t.selectedYear=t.currentYear=r.getFullYear(),o===t.selectedMonth&&s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,o,s,r,a,l,c,h,u,d,p,f,m,g,v,y,_,b,x,w,k,C,S,P,T,E,A,M,L,D,I,N,R,O,$,F,z,j=new Date,B=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),H=this._get(t,"isRTL"),W=this._get(t,"showButtonPanel"),U=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),V=this._getNumberOfMonths(t),q=this._get(t,"showCurrentAtPos"),Z=this._get(t,"stepMonths"),G=1!==V[0]||1!==V[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),K=this._getMinMaxDate(t,"min"),Q=this._getMinMaxDate(t,"max"),J=t.drawMonth-q,tt=t.drawYear;if(J<0&&(J+=12,tt--),Q)for(e=this._daylightSavingAdjust(new Date(Q.getFullYear(),Q.getMonth()-V[0]*V[1]+1,Q.getDate())),e=K&&e<K?K:e;this._daylightSavingAdjust(new Date(tt,J,1))>e;)--J<0&&(J=11,tt--);for(t.drawMonth=J,t.drawYear=tt,i=this._get(t,"prevText"),i=Y?this.formatDate(i,this._daylightSavingAdjust(new Date(tt,J-Z,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,tt,J)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"e":"w")+"'>"+i+"</span></a>":U?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"e":"w")+"'>"+i+"</span></a>",o=this._get(t,"nextText"),o=Y?this.formatDate(o,this._daylightSavingAdjust(new Date(tt,J+Z,1)),this._getFormatConfig(t)):o,s=this._canAdjustMonth(t,1,tt,J)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"w":"e")+"'>"+o+"</span></a>":U?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"w":"e")+"'>"+o+"</span></a>",r=this._get(t,"currentText"),a=this._get(t,"gotoCurrent")&&t.currentDay?X:B,r=Y?this.formatDate(r,a,this._getFormatConfig(t)):r,l=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>",c=W?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(H?l:"")+(this._isInRange(t,a)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+r+"</button>":"")+(H?"":l)+"</div>":"",h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,u=this._get(t,"showWeek"),d=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),b="",w=0;w<V[0];w++){for(k="",this.maxRows=4,C=0;C<V[1];C++){if(S=this._daylightSavingAdjust(new Date(tt,J,t.selectedDay)),P=" ui-corner-all",T="",G){if(T+="<div class='ui-datepicker-group",V[1]>1)switch(C){case 0:T+=" ui-datepicker-group-first",P=" ui-corner-"+(H?"right":"left");break;case V[1]-1:T+=" ui-datepicker-group-last",P=" ui-corner-"+(H?"left":"right");break;default:T+=" ui-datepicker-group-middle",P=""}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+P+"'>"+(/all|left/.test(P)&&0===w?H?s:n:"")+(/all|right/.test(P)&&0===w?H?n:s:"")+this._generateMonthYearHeader(t,J,tt,K,Q,w>0||C>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",E=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;x<7;x++)E+="<th"+((x+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+d[A=(x+h)%7]+"'>"+p[A]+"</span></th>";for(T+=E+"</tr></thead><tbody>",M=this._getDaysInMonth(tt,J),tt===t.selectedYear&&J===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),L=(this._getFirstDayOfMonth(tt,J)-h+7)%7,D=Math.ceil((L+M)/7),I=G&&this.maxRows>D?this.maxRows:D,this.maxRows=I,N=this._daylightSavingAdjust(new Date(tt,J,1-L)),R=0;R<I;R++){for(T+="<tr>",O=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(N)+"</td>":"",x=0;x<7;x++)$=g?g.apply(t.input?t.input[0]:null,[N]):[!0,""],z=(F=N.getMonth()!==J)&&!y||!$[0]||K&&N<K||Q&&N>Q,O+="<td class='"+((x+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(N.getTime()===S.getTime()&&J===t.selectedMonth&&t._keyEvent||_.getTime()===N.getTime()&&_.getTime()===S.getTime()?" "+this._dayOverClass:"")+(z?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!v?"":" "+$[1]+(N.getTime()===X.getTime()?" "+this._currentClass:"")+(N.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(F&&!v||!$[2]?"":" title='"+$[2].replace(/'/g,"&#39;")+"'")+(z?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(F&&!v?"&#xa0;":z?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===B.getTime()?" ui-state-highlight":"")+(N.getTime()===X.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);T+=O+"</tr>"}++J>11&&(J=0,tt++),k+=T+="</tbody></table>"+(G?"</div>"+(V[0]>0&&C===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=k}return b+=c,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,o,s,r,a){var l,c,h,u,d,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),y=this._get(t,"showMonthAfterYear"),_="<div class='ui-datepicker-title'>",b="";if(s||!g)b+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=o&&o.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=n.getMonth())&&(!c||h<=o.getMonth())&&(b+="<option value='"+h+"'"+(h===e?" selected='selected'":"")+">"+a[h]+"</option>");b+="</select>"}if(y||(_+=b+(!s&&g&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",s||!v)_+="<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]),m=Math.max(f,p(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=o?Math.min(m,o.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=m;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),y&&(_+=(!s&&g&&v?"":"&#xa0;")+b),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.drawYear+("Y"===i?e:0),o=t.drawMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,o))+("D"===i?e:0),r=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,o,s)));t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=i&&e<i?i:e;return n&&o>n?n:o},_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,n){var o=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:o[0]*o[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,o=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),r=null,a=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!o||e.getTime()>=o.getTime())&&(!s||e.getTime()<=s.getTime())&&(!r||e.getFullYear()>=r)&&(!a||e.getFullYear()<=a)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),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,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var o=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),o,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).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 i,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.10.4"}(jQuery),function(t){var e=!1;t(document).mouseup(function(){e=!1}),t.widget("ui.mouse",{version:"1.10.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this
4;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,s=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(o&&!s&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("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)),!1},_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}})}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,
4containment:!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||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===i.iframeFix?"iframe":i.iframeFix).each(function(){t("<div class='ui-draggable-iframeFix' style='background: #fff;'></div>").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")}),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("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(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(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)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.position}return 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"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!t.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1)},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)}),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?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),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
vendor: 4,830 bytes, line 4
4),"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(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.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.element.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.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,n,o=this.options;o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(n=(i=t(o.containment))[0])&&(e="hidden"!==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(n.scrollWidth,n.offsetWidth):n.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(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i)):this.containment=o.containment:this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]: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()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,o,s,r=this.options,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=e.pageX,c=e.pageY;return this.offset.scroll||(this.offset.scroll={top:a.scrollTop(),left:a.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-r.grid[1]:o+r.grid[1]:o,s=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)
4/r.grid[0])*r.grid[0]:this.originalPageX,l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-r.grid[0]:s+r.grid[0]:s)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},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){var n=t(this).data("ui-draggable"),o=n.options,s=t.extend({},i,{item:n.element});n.sortables=[],t(o.connectToSortable).each(function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i){var n=t(this).data("ui-draggable"),o=t.extend({},i,{item:n.element});t.each(n.sortables,function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))})},drag:function(e,i){var n=t(this).data("ui-draggable"),o=this;t.each(n.sortables,function(){var s=!1,r=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(s=!0,t.each(n.sortables,function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==r&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(r.instance.element[0],this.instance.element[0])&&(s=!1),s})),s?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)})}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),o=t(this).data("ui-draggable").options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,o=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY<n.scrollSensitivity?i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(i.scrollParent[0].scrollTop=o=i.scrollParent[0].scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+i.scrollParent[0].offsetWidth-e.pageX<n.scrollSensitivity?i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(i.scrollParent[0].scrollLeft=o=i.scrollParent[0].scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-t
vendor: 1,749 bytes, line 4
4(document).scrollTop()<n.scrollSensitivity?o=t(document).scrollTop(t(document).scrollTop()-n.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<n.scrollSensitivity&&(o=t(document).scrollTop(t(document).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-t(document).scrollLeft()<n.scrollSensitivity?o=t(document).scrollLeft(t(document).scrollLeft()-n.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<n.scrollSensitivity&&(o=t(document).scrollLeft(t(document).scrollLeft()+n.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!n.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(){var e=t(this).data("ui-draggable"),i=e.options;e.snapElements=[],t(i.snap.constructor!==String?i.snap.items||":data(ui-draggable)":i.snap).each(function(){var i=t(this),n=i.offset();this!==e.element[0]&&e.snapElements.push({item:this,width:i.outerWidth(),height:i.outerHeight(),top:n.top,left:n.left})})},drag:function(e,i){var n,o,s,r,a,l,c,h,u,d,p=t(this).data("ui-draggable"),f=p.options,m=f.snapTolerance,g=i.offset.left,v=g+p.helperProportions.width,y=i.offset.top,_=y+p.helperProportions.height;for(u=p.snapElements.length-1;u>=0;u--)l=(a=p.snapElements[u].left)+p.snapElements[u].width,h=(c=p.snapElements[u].top)+p.snapElements[u].height,v<a-m||g>l+m||_<c-m||y>h+m||!t.contains(p.snapElements[u].item.ownerDocument,p.snapElements[u].item)?(p.snapElements[u].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(n=Math.abs(c-_)<=m,o=Math.abs(h-y)<=m,s=Math.abs(a-v)<=m,r=Math.abs(l-g)<=m,n&&(i.position.top=p._convertPositionTo("relative",{top:c-
vendor: 4,559 bytes, line 4
4p.helperProportions.height,left:0}).top-p.margins.top),o&&(i.position.top=p._convertPositionTo("relative",{top:h,left:0}).top-p.margins.top),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a-p.helperProportions.width}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left)),d=n||o||s||r,"outer"!==f.snapMode&&(n=Math.abs(c-y)<=m,o=Math.abs(h-_)<=m,s=Math.abs(a-g)<=m,r=Math.abs(l-v)<=m,n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),o&&(i.position.top=p._convertPositionTo("relative",{top:h-p.helperProportions.height,left:0}).top-p.margins.top),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a}).left-p.margins.left),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[u].snapping&&(n||o||s||r||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=n||o||s||r||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});n.length&&(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each(function(i){t(this).css("zIndex",e+i)}),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),o=t(this).data("ui-draggable").options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,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},_create:function(){var e,i,n,o,s=this,r=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!r.aspectRatio,aspectRatio:r.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:r.helper||r.ghost||r.animate?r.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.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom: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({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=r.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.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;i<e.length;i++)n=t.trim(e[i]),(o=t("<div class='ui-resizable-handle "+("ui-resizable-"+n)+"'></div>")).css({zIndex:r.zIndex}),"se"===n&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(o);this._renderAxis=function(e){var i,n,o,s;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),o=["padding",/ne|nw|n
4/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(o,s),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover(function(){s.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),s.axis=o&&o[1]?o[1]:"se")}),r.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter(function(){r.disabled||(t(this).removeClass("ui-resizable-autohide"),s._handles.show())}).mouseleave(function(){r.disabled||s.resizing||(t(this).addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".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},_mouseCapture:function(e){var i,n,o=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(i){var n,o,s,r=this.options,a=this.element.position(),l=this.element;return this.resizing=!0,/absolute/.test(l.css("position"))?l.css({position:"absolute",top:l.css("top"),left:l.css("left")}):l.is(".ui-draggable")&&l.css({position:"absolute",top:a.top,left:a.left}),this._renderProxy(),n=e(this.helper.css("left")),o=e(this.helper.css("top")),r.containment&&(n+=t(r.containment).scrollLeft()||0,o+=t(r.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:o},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:l.width(),height:l.height()},this.originalSize=this._helper?{width:l.outerWidth(),height:l.outerHeight()}:{width:l.width(),height:l.height()},this.originalPosition={left:n,top:o},this.sizeDiff={width:l.outerWidth()-l.width(),height:l.outerHeight()-l.he
4ight()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof r.aspectRatio?r.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),l.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i,n=this.helper,o={},s=this.originalMousePosition,r=this.axis,a=this.position.top,l=this.position.left,c=this.size.width,h=this.size.height,u=e.pageX-s.left||0,d=e.pageY-s.top||0,p=this._change[r];return!!p&&(i=p.apply(this,[e,u,d]),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),this.position.top!==a&&(o.top=this.position.top+"px"),this.position.left!==l&&(o.left=this.position.left+"px"),this.size.width!==c&&(o.width=this.size.width+"px"),this.size.height!==h&&(o.height=this.size.height+"px"),n.css(o),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(o)||this._trigger("resize",e,this.ui()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,o,s,r,a,l,c=this.options,h=this;return this._helper&&(o=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&t.ui.hasScroll(i[0],"left")?0:h.sizeDiff.height,s=n?0:h.sizeDiff.width,r={width:h.helper.width()-s,height:h.helper.height()-o},a=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,l=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(r,{top:l,left:a})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,n,o,s,r,a=this.options;r={minWidth:i(a.minWidth)?a.minWidth:0,maxWidth:i(a.maxWidth)?a.maxWidth:1/0,minHeight:i(a.minHeight)?a.minHeight:0,maxHeight:i(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=r.minHeight*this.aspectRatio,o=r.minWidth/this.aspectRatio,n=r.maxHeight*this.aspectRatio,s=r.maxWidth/this.aspectRatio,e>r.minWidth&&(r.minWidth=e),o>r.minHeight&&(r.minHeight=o),n<r.maxWidth&&(r.maxWidth=n),s<r.maxHeight&&(r.maxHeight=s)),this._vBoundaries=r},_updateCache:function(t){this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,o=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===o&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===o&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,o=i(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=i(t.height)&&e.maxHeight&&e.maxHeight<t.height,r=i(t.width)&&e.minWidth&&e.minWidth>t.width,a=i(t.height)&&e.minHeight&&e.minHeight>t.height,l=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,h=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return r&&(t.width=e.minWidth),a&&(t.height=e.minHeight),o&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),r&&h&&(t.left=l-e.minWidth),o&&h&&(t.left=l-e.maxWidth),a&&u&&(t.top=c-e.minHeight),s&&u&&(t.top=c-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},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,o,s=this.helper||this.element;for(t=0;t<this._proportionallyResizeElements.length;t++){if(o=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[o.css("borderTopWidth"),o.css("borderRightWidth"),o.css("borderBottomWidth"),o.css("borderLeftWidth")],n=[o.css("paddingTop"),o.css("paddingRight"),o.css("paddingBottom"),o.css("paddingLeft")],e=0;e<i.length;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);o.css({height:s.height()-this.borderDif[0]-this.borderDif[2]||0,width:s.width()-this.borderDif[1]-this.borderDif[3]||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.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",to
vendor: 17,999 bytes, lines 4-5
4p: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;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_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).data("ui-resizable"),n=i.options,o=i._proportionallyResizeElements,s=o.length&&/textarea/i.test(o[0].nodeName),r=s&&t.ui.hasScroll(o[0],"left")?0:i.sizeDiff.height,a=s?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,h&&c?{top:h,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),
5t.ui.plugin.add("resizable","containment",{start:function(){var i,n,o,s,r,a,l,c=t(this).data("ui-resizable"),h=c.options,u=c.element,d=h.containment,p=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(c.containerElement=t(p),/document/.test(d)||d===document?(c.containerOffset={left:0,top:0},c.containerPosition={left:0,top:0},c.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(p),n=[],t(["Top","Right","Left","Bottom"]).each(function(t,o){n[t]=e(i.css("padding"+o))}),c.containerOffset=i.offset(),c.containerPosition=i.position(),c.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},o=c.containerOffset,s=c.containerSize.height,r=c.containerSize.width,a=t.ui.hasScroll(p,"left")?p.scrollWidth:r,l=t.ui.hasScroll(p)?p.scrollHeight:s,c.parentData={element:p,left:o.left,top:o.top,width:a,height:l}))},resize:function(e){var i,n,o,s,r=t(this).data("ui-resizable"),a=r.options,l=r.containerOffset,c=r.position,h=r._aspectRatio||e.shiftKey,u={top:0,left:0},d=r.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-u.left),h&&(r.size.height=r.size.width/r.aspectRatio),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),h&&(r.size.width=r.size.height*r.aspectRatio),r.position.top=r._helper?l.top:0),r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top,i=Math.abs((r._helper,r.offset.left-u.left+r.sizeDiff.width)),n=Math.abs((r._helper?r.offset.top-u.top:r.offset.top-l.top)+r.sizeDiff.height),o=r.containerElement.get(0)===r.element.parent().get(0),s=/relative|absolute/.test(r.containerElement.css("position")),o&&s&&(i-=Math.abs(r.parentData.left)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,h&&(r.size.height=r.size.width/r.aspectRatio)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,h&&(r.size.width=r.size.height*r.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,o=e.containerPosition,s=e.containerElement,r=t(e.helper),a=r.offset(),l=r.outerWidth()-e.sizeDiff.width,c=r.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(s.css("position"))&&t(this).css({left:a.left-o.left-n.left,width:l,height:c}),e._helper&&!i.animate&&/static/.test(s.css("position"))&&t(this).css({left:a.left-o.left-n.left,width:l,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable").options,i=function(e){t(e).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})};"object"!=typeof e.alsoResize||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,function(t){i(t)})},resize:function(e,i){var n=t(this).data("ui-resizable"),o=n.options,s=n.originalSize,r=n.originalPosition,a={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0},l=function(e,n){t(e).each(function(){var e=t(this),o=t(this).data("ui-resizable-alsoresize"),s={},r=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(r,function(t,e){var i=(o[e]||0)+(a[e]||0);i&&i>=0&&(s[e]=i||null)}),e.css(s)})};"object"!=typeof o.alsoResize||o.alsoResize.nodeType?l(o.alsoResize):t.each(o.alsoResize,function(t,e){l(t,e)})},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,o=e.originalSize,s=e.originalPosition,r=e.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,c=a[1]||1,h=Math.round((n.width-o.width)/l)*l,u=Math.round((n.height-o.height)/c)*c,d=o.width+h,p=o.height+u,f=i.maxWidth&&i.maxWidth<d,m=i.maxHeight&&i.maxHeight<p,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=a,g&&(d+=l),v&&(p+=c),f&&(d-=l),m&&(p-=c),/^(se|s|e)$/.test(r)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.top=s.top-u):/^(sw)$/.test(r)?(e.size.width=d,e.size.height=p,e.position.left=s.left-h):(p-c>0?(e.size.height=p,e.position.top=s.top-u):(e.size.height=c,e.position.top=s.top+o.height-c),d-l>0?(e.size.width=d,e.position.left=s.left-h):(e.size.width=l,e.position.left=s.left+o.width-l))}})}(jQuery),function(t){var e={buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},i={maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0};t.widget("ui.dialog",{version:"1.10.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"close",dialogClass:"",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;i<0&&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},_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"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1},_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._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).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,n=this;if(this._isOpen&&!1!==this._trigger("beforeClose",e)){if(this._isOpen=!1,this._destroyOverlay(),!this.opener.filter(":focusable").focus().length)try{(i=this.document[0].activeElement)&&"body"!==i.nodeName.toLowerCase()&&t(i).blur()}catch(t){}this._hide(this.uiDialog,this.options.hide,function(){n._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,e){var i=!!this.uiDialog.nextAll(":visible").insertBefore(this.uiDialog).length;return i&&!e&&this._trigger("focus",t),i},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=t(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._trigger("open"))},_focusTabbable:function(){var 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).focus()},_keepFocus:function(e){function i(){var e=this.document[0].activeElement;this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),o=i.filter(":last");e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(o.focus(1),e.preventDefault()):(n.focus(1),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>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title||t.html("&#160;"),t.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?this.uiDialog.removeClass("ui-dialog-buttons"):(t.each(i,function(i,n){var o,s;n=t.isFunction(n)?{click:n,text:i}:n,n=t.extend({type:"button"},n),o=n.click,n.click=function(){o.apply(e.element[0],arguments)},s={icons:n.icons,text:n.showText},delete n.icons,delete n.showText,t("<button></button>",n).button(s).appendTo(e.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){t(this).addClass("ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(o))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(o,s){n.position=[s.position.left-i.document.scrollLeft(),s.position.top-i.document.scrollTop()],t(this).removeClass("ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",o,e(s))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,o=n.resizable,s=this.uiDialog.css("position"),r="string"==typeof o?o:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:r,start:function(n,o){t(this).addClass("ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(o))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(o,s){n.height=t(this).height(),n.width=t(this).width(),t(this).removeClass("ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",o,e(s))}}).css("position",s)},_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(n){var o=this,s=!1,r={};t.each(n,function(t,n){o._setOption(t,n),t in e&&(s=!0),t in i&&(r[t]=n)}),s&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",r)},_setOption:function(t,e){var i,n,o=this.uiDialog;"dialogClass"===t&&o.removeClass(this.options.dialogClass).addClass(e),"disabled"!==t&&(this._super(t,e),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:""+e}),"draggable"===t&&((i=o.is(":data(ui-draggable)"))&&!e&&o.draggable("destroy"),!i&&e&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((n=o.is(":data(ui-resizable)"))&&!e&&o.resizable("destroy"),n&&"string"==typeof e&&o.resizable("option","handles",e),n||!1===e||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.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||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=this,i=this.widgetFullName;t.ui.dialog.overlayInstances||this._delay(function(){t.ui.dialog.overlayInstances&&this.document.bind("focusin.dialog",function(n){e._allowInteraction(n)||(n.preventDefault(),t(".ui-dialog:visible:last .ui-dialog-content").data(i)._focusTabbable())})}),this.overlay=t("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),t.ui.dialog.overlayInstances++}},_destroyOverlay:function(){this.options.modal&&this.overlay&&(t.ui.dialog.overlayInstances--,t.ui.dialog.overlayInstances||this.document.unbind("focusin.dialog"),this.overlay.remove(),this.overlay=null)}}),t.ui.dialog.overlayInstances=0,!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{_position:function(){var e,i=this.options.position,n=[],o=[0,0];
5i?(("string"==typeof i||"object"==typeof i&&"0"in i)&&(1===(n=i.split?i.split(" "):[i[0],i[1]]).length&&(n[1]=n[0]),t.each(["left","top"],function(t,e){+n[t]===n[t]&&(o[t]=n[t],n[t]=e)}),i={my:n[0]+(o[0]<0?o[0]:"+"+o[0])+" "+n[1]+(o[1]<0?o[1]:"+"+o[1]),at:n.join(" ")}),i=t.extend({},t.ui.dialog.prototype.options.position,i)):i=t.ui.dialog.prototype.options.position,(e=this.uiDialog.is(":visible"))||this.uiDialog.show(),this.uiDialog.position(i),e||this.uiDialog.hide()}})}(jQuery),function(t){function e(t,e,i){return t>e&&t<e+i}t.widget("ui.droppable",{version:"1.10.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},t.ui.ddmanager.droppables[i.scope]=t.ui.ddmanager.droppables[i.scope]||[],t.ui.ddmanager.droppables[i.scope].push(this),i.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];e<i.length;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),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.options.hoverClass&&this.element.addClass(this.options.hoverClass),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.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,o=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=t.data(this,"ui-droppable");if(e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance))return o=!0,!1}),!o&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,i,n){if(!i.offset)return!1;var o,s=(t.positionAbs||t.position.absolute).left,r=(t.positionAbs||t.position.absolute).top,a=s+t.helperProportions.width,l=r+t.helperProportions.height,c=i.offset.left,h=i.offset.top,u=c+i.proportions().width,d=h+i.proportions().height;switch(n){case"fit":return c<=s&&a<=u&&h<=r&&l<=d;case"intersect":return c<s+t.helperProportions.width/2&&a-t.helperProportions.width/2<u&&h<r+t.helperProportions.height/2&&l-t.helperProportions.height/2<d;case"pointer":return o=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,e((t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,h,i.proportions().height)&&e(o,c,i.proportions().width);case"touch":return(r>=h&&r<=d||l>=h&&l<=d||r<h&&l>d)&&(s>=c&&s<=u||a>=c&&a<=u||s<c&&a>u);default:return!1}},t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,o,s=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<s.length;n++)if(!(s[n].options.disabled||e&&!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(o=0;o<a.length;o++)if(a[o]===s[n].element[0]){s[n].proportions().height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&&("mousedown"===r&&s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions({width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!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)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("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 n,o,s,r=t.ui.intersect(e,this,this.options.tolerance),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter(function(){return t.data(this,"ui-droppable").options.scope===o})).length&&((n=t.data(s[0],"ui-droppable")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t,e){var i,n="ui-effects-";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=u[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:n.max<t?n.max:t)}function n(e){var i=c(),n=i._rgba=[];return e=e.toLowerCase(),f(l,function(t,o){var s,r=o.re.exec(e),a=r&&o.parse(r),l=o.space||"rgba";if(a)return s=i[l](a),i[h[l].cache]=s[h[l].cache],n=i._rgba=s._rgba,!1}),n.length?("0,0,0,0"===n.join()&&t.extend(n,s.transparent),i):s[e]}function o(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}var s,r="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",a=/^([\-+])=\s*(\d+\.?\d*)/,l=[{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]]}}],c=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},h={rgba:{props:{red:{idx:0,type:"byte"}
vendor: 10,310 bytes, lines 5-6
5,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=c.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(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),c.fn=t.extend(c.prototype,{parse:function(o,r,a,l){if(o===e)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=t(o).css(r),r=e);var u=this,d=t.type(o),p=this._rgba=[];return r!==e&&(o=[o,r,a,l],d="array"),"string"===d?this.parse(n(o)||s._default):"array"===d?(f(h.rgba.props,function(t,e){p[e.idx]=i(o[e.idx],e)}),this):"object"===d?(f(h,o instanceof c?function(t,e){o[e.cache]&&(u[e.cache]=o[e.cache].slice())}:function(e,n){var s=n.cache;f(n.props,function(t,e){if(!u[s]&&n.to){if("alpha"===t||null==o[t])return;u[s]=n.to(u._rgba)}u[s][e.idx]=i(o[t],e,!0)}),u[s]&&t.inArray(null,u[s].slice(0,3))<0&&(u[s][3]=1,n.from&&(u._rgba=n.from(u[s])))}),this):void 0},is:function(t){var e=c(t),i=!0,n=this;return f(h,function(t,o){var s,r=e[o.cache];return r&&(s=n[o.cache]||o.to&&o.to(n._rgba)||[],f(o.props,function(t,e){if(null!=r[e.idx])return i=r[e.idx]===s[e.idx]})),i}),i},_space:function(){var t=[],e=this;return f(h,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=c(t),o=n._space(),s=h[o],r=0===this.alpha()?c("transparent"):this,a=r[s.cache]||s.to(r._rgba),l=a.slice();return n=n[s.cache],f(s.props,function(t,o){var s=o.idx,r=a[s],c=n[s],h=u[o.type]||{};null!==c&&(null===r?l[s]=c:(h.mod&&(c-r>h.mod/2?r+=h.mod:r-c>h.mod/2&&(r-=h.mod)),l[s]=i((c-r)*e+r,o)))}),this[o](l)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=c(e)._rgba;return c(t.map(i,function(t,e){return(1-n)*o[e]+n*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&&e<3&&(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(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),c.fn.parse.prototype=c.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e,i,n=t[0]/255,o=t[1]/255,s=t[2]/255,r=t[3],a=Math.max(n,o,s),l=Math.min(n,o,s),c=a-l,h=a+l,u=.5*h;return e=l===a?0:n===a?60*(o-s)/c+360:o===a?60*(s-n)/c+120:60*(n-o)/c+240,i=0===c?0:u<=.5?c/h:c/(2-h),[Math.round(e)%360,i,u,null==r?1:r]},h.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],n=t[2],s=t[3],r=n<=.5?n*(1+i):n+i-n*i,a=2*n-r;return[Math.round(255*o(a,r,e+1/3)),Math.round(255*o(a,r,e)),Math.round(255*o(a,r,e-1/3)),s]},f(h,function(n,o){var s=o.props,r=o.cache,l=o.to,h=o.from;c.fn[n]=function(n){if(l&&!this[r]&&(this[r]=l(this._rgba)),n===e)return this[r].slice();var o,a=t.type(n),u="array"===a||"object"===a?n:arguments,d=this[r].slice();return f(s,function(t,e){var n=u["object"===a?t:e.idx];null==n&&(n=d[e.idx]),d[e.idx]=i(n,e)}),h?((o=c(h(d)))[r]=d,o):c(d)},f(s,function(e,i){c.fn[e]||(c.fn[e]=function(o){var s,r=t.type(o),l="alpha"===e?this._hsla?"hsla":"rgba":n,c=this[l](),h=c[i.idx];return"undefined"===r?h:("function"===r&&(o=o.call(this,h),r=t.type(o)),null==o&&i.empty?this:("string"===r&&(s=a.exec(o))&&(o=h+parseFloat(s[2])*("+"===s[1]?1:-1)),c[i.idx]=o,this[l](c)))})})}),c.hook=function(e){var i=e.split(" ");f(i,function(e,i){t.cssHooks[i]={set:function(e,o){var s,r,a="";if("transparent"!==o&&("string"!==t.type(o)||(s=n(o)))){if(o=c(s||o),!d.rgba&&1!==o._rgba[3]){for(r="backgroundColor"===i?e.parentNode:e;(""===a||"transparent"===a)&&r&&r.style;)try{a=t.css(r,"backgroundColor"),r=r.parentNode}catch(t){}o=o.blend(a&&"transparent"!==a?a:"_default")}o=o.toRgbaString()}try{e.style[i]=o}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=c(e.elem,i),e.end=c(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},c.hook(r),t.cssHooks.borderColor={expand:function(t){var e={};return f(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}},s=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"}}(jQuery),function(){function i(e){var i,n,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)"string"==typeof o[i=o[n]]&&(s[t.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(s[i]=o[i]);return s}function n(e,i){var n,o,s={};for(n in i)o=i[n],e[n]!==o&&(r[n]||!t.fx.step[n]&&isNaN(parseFloat(o))||(s[n]=o));return s}var o,s=["add","remove","toggle"],r={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)&&(jQuery.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(e,o,r,a){var l=t.speed(o,r,a);return this.queue(function(){var o,r=t(this),a=r.attr("class")||"",c=l.children?r.find("*").addBack():r;c=c.map(function(){return{el:t(this),start:i(this)}}),(o=function(){t.each(s,function(t,i){e[i]&&r[i+"Class"](e[i])})})(),c=c.map(function(){return this.end=i(this.el[0]),this.diff=n(this.start,this.end),this}),r.attr("class",a),c=c.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,c.get()).done(function(){o(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(r[0])})})},t.fn.extend({addClass:(o=t.fn.addClass,function(e,i,n,s){return i?t.effects.animateClass.call(this,{add:e},i,n,s):o.apply(this,arguments)}),removeClass:function(e){return function(i,n,o,s){return arguments.length>1?t.effects.animateClass.call(this,{remove:i},n,o,s):e.apply(this,arguments)}}(t.fn.removeClass),toggleClass:function(i){return function(n,o,s,r,a){return"boolean"==typeof o||o===e?s?t.effects.animateClass.call(this,o?{add:n}:{remove:n},s,r,a):i.apply(this,arguments):t.effects.animateClass.call(this,{toggle:n},o,s,r)}}(t.fn.toggleClass),switchClass:function(e,i,n,o,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,o,s)}})}(),function(){function i(e,i,n,o){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(o=n,n=i,i={}),t.isFunction(n)&&(o=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=o||i.complete,e}function o(e){return!(e&&"number"!=typeof e&&!t.fx.speeds[e])||("string"==typeof e&&!t.effects.effect[e]||(!!t.isFunction(e)||"object"==typeof e&&!e.effect))}var s;t.extend(t.effects,{version:"1.10.4",save:function(t,e){for(var i=0;i<e.length;i++)null!==e[i]&&t.data(n+e[i],t[0].style[e[i]])},restore:function(t,i){var o,s;for(s=0;s<i.length;s++)null!==i[s]&&((o=t.data(n+i[s]))===e&&(o=""),t.css(i[s],o))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},getBaseline:function(t,e){var i,n;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":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},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")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&&t(s).focus(),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),
6t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),n.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).focus()),e},setTransition:function(e,i,n,o){return o=o||{},t.each(i,function(t,i){var s=e.cssUnit(i);s[0]>0&&(o[i]=s[0]*n+s[1])}),o}}),t.fn.extend({effect:function(){function e(e){function i(){t.isFunction(s)&&s.call(o[0]),t.isFunction(e)&&e()}var o=t(this),s=n.complete,a=n.mode;(o.is(":hidden")?"hide"===a:"show"===a)?(o[a](),i()):r.call(o[0],n,i)}var n=i.apply(this,arguments),o=n.mode,s=n.queue,r=t.effects.effect[n.effect];return t.fx.off||!r?o?this[o](n.duration,n.complete):this.each(function(){n.complete&&n.complete.call(this)}):!1===s?this.each(e):this.queue(s||"fx",e)},show:(s=t.fn.show,function(t){if(o(t))return s.apply(this,arguments);var e=i.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:function(t){return function(e){if(o(e))return t.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(t.fn.hide),toggle:function(t){return function(e){if(o(e)||"boolean"==typeof e)return t.apply(this,arguments);var n=i.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}
6(t.fn.toggle),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n}})}(),i={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){i[e]=function(e){return Math.pow(e,t+2)}}),t.extend(i,{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;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(i,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 t<.5?i(2*t)/2:1-i(-2*t+2)/2}})}(jQuery),function(t){var e=/up|down|vertical/,i=/up|left|vertical|horizontal/;t.effects.effect.blind=function(n,o){var s,r,a,l=t(this),c=["position","top","bottom","left","right","height","width"],h=t.effects.setMode(l,n.mode||"hide"),u=n.direction||"up",d=e.test(u),p=d?"height":"width",f=d?"top":"left",m=i.test(u),g={},v="show"===h;l.parent().is(".ui-effects-wrapper")?t.effects.save(l.parent(),c):t.effects.save(l,c),l.show(),r=(s=t.effects.createWrapper(l).css({overflow:"hidden"}))[p](),a=parseFloat(s.css(f))||0,g[p]=v?r:0,m||(l.css(d?"bottom":"right",0).css(d?"top":"left","auto").css({position:"absolute"}),g[f]=v?a:r+a),v&&(s.css(p,0),m||s.css(f,a+r)),s.animate(g,{duration:n.duration,easing:n.easing,queue:!1,complete:function(){"hide"===h&&l.hide(),t.effects.restore(l,c),t.effects.removeWrapper(l),o()}})}}(jQuery),function(t){t.effects.effect.bounce=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","height","width"],l=t.effects.setMode(r,e.mode||"effect"),c="hide"===l,h="show"===l,u=e.direction||"up",d=e.distance,p=e.times||5,f=2*p+(h||c?1:0),m=e.duration/f,g=e.easing,v="up"===u||"down"===u?"top":"left",y="up"===u||"left"===u,_=r.queue(),b=_.length;for((h||c)&&a.push("opacity"),t.effects.save(r,a),r.show(),t.effects.createWrapper(r),d||(d=r["top"===v?"outerHeight":"outerWidth"]()/3),h&&((s={opacity:1})[v]=0,r.css("opacity",0).css(v,y?2*-d:2*d).animate(s,m,g)),c&&(d/=Math.pow(2,p-1)),(s={})[v]=0,n=0;n<p;n++)(o={})[v]=(y?"-=":"+=")+d,r.animate(o,m,g).animate(s,m,g),d=c?2*d:d/2;c&&((o={opacity:0})[v]=(y?"-=":"+=")+d,r.animate(o,m,g)),r.queue(function(){c&&r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()}),b>1&&_.splice.apply(_,[1,0].concat(_.splice(b,f+1))),r.dequeue()}}(jQuery),function(t){t.effects.effect.clip=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","height","width"],l="show"===t.effects.setMode(r,e.mode||"hide"),c="vertical"===(e.direction||"vertical"),h=c?"height":"width",u=c?"top":"left",d={};t.effects.save(r,a),r.show(),n=t.effects.createWrapper(r).css({overflow:"hidden"}),s=(o="IMG"===r[0].tagName?n:r)[h](),l&&(o.css(h,0),o.css(u,s/2)),d[h]=l?s:0,d[u]=l?0:s/2,o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){l||r.hide(),t.effects.restore(r,a),t.effects.removeWrapper(r),i()}})}}(jQuery),function(t){t.effects.effect.drop=function(e,i){var n,o=t(this),s=["position","top","bottom","left","right","opacity","height","width"],r=t.effects.setMode(o,e.mode||"hide"),a="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l?"pos":"neg",u={opacity:a?1:0};t.effects.save(o,s),o.show(),t.effects.createWrapper(o),n=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0)/2,a&&o.css("opacity",0).css(c,"pos"===h?-n:n),u[c]=(a?"pos"===h?"+=":"-=":"pos"===h?"-=":"+=")+n,o.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t){t.effects.effect.explode=function(e,i){function n(){y.push(this),y.length===u*d&&o()}function o(){p.css({visibility:"visible"}),t(y).remove(),f||p.hide(),i()}var s,r,a,l,c,h,u=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=u,p=t(this),f="show"===t.effects.setMode(p,e.mode||"hide"),m=p.show().css("visibility","hidden").offset(),g=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),y=[];for(s=0;s<u;s++)for(l=m.top+s*v,h=s-(u-1)/2,r=0;r<d;r++)a=m.left+r*g,c=r-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*g,top:-s*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",
vendor: 16,055 bytes, line 6
6width:g,height:v,left:a+(f?c*g:0),top:l+(f?h*v:0),opacity:f?0:1}).animate({left:a+(f?0:c*g),top:l+(f?0:h*v),opacity:f?1:0},e.duration||500,e.easing,n)}}(jQuery),function(t){t.effects.effect.fade=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"toggle");n.animate({opacity:o},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}}(jQuery),function(t){t.effects.effect.fold=function(e,i){var n,o,s=t(this),r=["position","top","bottom","left","right","height","width"],a=t.effects.setMode(s,e.mode||"hide"),l="show"===a,c="hide"===a,h=e.size||15,u=/([0-9]+)%/.exec(h),d=!!e.horizFirst,p=l!==d,f=p?["width","height"]:["height","width"],m=e.duration/2,g={},v={};t.effects.save(s,r),s.show(),n=t.effects.createWrapper(s).css({overflow:"hidden"}),o=p?[n.width(),n.height()]:[n.height(),n.width()],u&&(h=parseInt(u[1],10)/100*o[c?0:1]),l&&n.css(d?{height:0,width:h}:{height:h,width:0}),g[f[0]]=l?o[0]:h,v[f[1]]=l?o[1]:0,n.animate(g,m,e.easing).animate(v,m,e.easing,function(){c&&s.hide(),t.effects.restore(s,r),t.effects.removeWrapper(s),i()})}}(jQuery),function(t){t.effects.effect.highlight=function(e,i){var n=t(this),o=["backgroundImage","backgroundColor","opacity"],s=t.effects.setMode(n,e.mode||"show"),r={backgroundColor:n.css("backgroundColor")};"hide"===s&&(r.opacity=0),t.effects.save(n,o),n.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&n.hide(),t.effects.restore(n,o),i()}})}}(jQuery),function(t){t.effects.effect.pulsate=function(e,i){var n,o=t(this),s=t.effects.setMode(o,e.mode||"show"),r="show"===s,a="hide"===s,l=r||"hide"===s,c=2*(e.times||5)+(l?1:0),h=e.duration/c,u=0,d=o.queue(),p=d.length;for(!r&&o.is(":visible")||(o.css("opacity",0).show(),u=1),n=1;n<c;n++)o.animate({opacity:u},h,e.easing),u=1-u;o.animate({opacity:u},h,e.easing),o.queue(function(){a&&o.hide(),i()}),p>1&&d.splice.apply(d,[1,0].concat(d.splice(p,c+1))),o.dequeue()}}(jQuery),function(t){t.effects.effect.puff=function(e,i){var n=t(this),o=t.effects.setMode(n,e.mode||"hide"),s="hide"===o,r=parseInt(e.percent,10)||150,a=r/100,l={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()};t.extend(e,{effect:"scale",queue:!1,fade:!0,mode:o,complete:i,percent:s?r:100,from:s?l:{height:l.height*a,width:l.width*a,outerHeight:l.outerHeight*a,outerWidth:l.outerWidth*a}}),n.effect(e)},t.effects.effect.scale=function(e,i){var n=t(this),o=t.extend(!0,{},e),s=t.effects.setMode(n,e.mode||"effect"),r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"hide"===s?0:100),a=e.direction||"both",l=e.origin,c={height:n.height(),width:n.width(),outerHeight:n.outerHeight(),outerWidth:n.outerWidth()},h={y:"horizontal"!==a?r/100:1,x:"vertical"!==a?r/100:1};o.effect="size",o.queue=!1,o.complete=i,"effect"!==s&&(o.origin=l||["middle","center"],o.restore=!0),o.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:c),o.to={height:c.height*h.y,width:c.width*h.x,outerHeight:c.outerHeight*h.y,outerWidth:c.outerWidth*h.x},o.fade&&("show"===s&&(o.from.opacity=0,o.to.opacity=1),"hide"===s&&(o.from.opacity=1,o.to.opacity=0)),n.effect(o)},t.effects.effect.size=function(e,i){var n,o,s,r=t(this),a=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["position","top","bottom","left","right","overflow","opacity"],c=["width","height","overflow"],h=["fontSize"],u=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],d=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],p=t.effects.setMode(r,e.mode||"effect"),f=e.restore||"effect"!==p,m=e.scale||"both",g=e.origin||["middle","center"],v=r.css("position"),y=f?a:l,_={height:0,width:0,outerHeight:0,outerWidth:0};"show"===p&&r.show(),n={height:r.height(),width:r.width(),outerHeight:r.outerHeight(),outerWidth:r.outerWidth()},"toggle"===e.mode&&"show"===p?(r.from=e.to||_,r.to=e.from||n):(r.from=e.from||("show"===p?_:n),r.to=e.to||("hide"===p?_:n)),s={from:{y:r.from.height/n.height,x:r.from.width/n.width},to:{y:r.to.height/n.height,x:r.to.width/n.width}},"box"!==m&&"both"!==m||(s.from.y!==s.to.y&&(y=y.concat(u),r.from=t.effects.setTransition(r,u,s.from.y,r.from),r.to=t.effects.setTransition(r,u,s.to.y,r.to)),s.from.x!==s.to.x&&(y=y.concat(d),r.from=t.effects.setTransition(r,d,s.from.x,r.from),r.to=t.effects.setTransition(r,d,s.to.x,r.to))),"content"!==m&&"both"!==m||s.from.y!==s.to.y&&(y=y.concat(h).concat(c),r.from=t.effects.setTransition(r,h,s.from.y,r.from),r.to=t.effects.setTransition(r,h,s.to.y,r.to)),t.effects.save(r,y),r.show(),t.effects.createWrapper(r),r.css("overflow","hidden").css(r.from),g&&(o=t.effects.getBaseline(g,n),r.from.top=(n.outerHeight-r.outerHeight())*o.y,r.from.left=(n.outerWidth-r.outerWidth())*o.x,r.to.top=(n.outerHeight-r.to.outerHeight)*o.y,r.to.left=(n.outerWidth-r.to.outerWidth)*o.x),r.css(r.from),"content"!==m&&"both"!==m||(u=u.concat(["marginTop","marginBottom"]).concat(h),d=d.concat(["marginLeft","marginRight"]),c=a.concat(u).concat(d),r.find("*[width]").each(function(){var i=t(this),n={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};f&&t.effects.save(i,c),i.from={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},i.to={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x},s.from.y!==s.to.y&&(i.from=t.effects.setTransition(i,u,s.from.y,i.from),i.to=t.effects.setTransition(i,u,s.to.y,i.to)),s.from.x!==s.to.x&&(i.from=t.effects.setTransition(i,d,s.from.x,i.from),i.to=t.effects.setTransition(i,d,s.to.x,i.to)),i.css(i.from),i.animate(i.to,e.duration,e.easing,function(){f&&t.effects.restore(i,c)})})),r.animate(r.to,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){0===r.to.opacity&&r.css("opacity",r.from.opacity),"hide"===p&&r.hide(),t.effects.restore(r,y),f||("static"===v?r.css({position:"relative",top:r.to.top,left:r.to.left}):t.each(["top","left"],function(t,e){r.css(e,function(e,i){var n=parseInt(i,10),o=t?r.to.left:r.to.top;return"auto"===i?o+"px":n+o+"px"})})),t.effects.removeWrapper(r),i()}})}}(jQuery),function(t){t.effects.effect.shake=function(e,i){var n,o=t(this),s=["position","top","bottom","left","right","height","width"],r=t.effects.setMode(o,e.mode||"effect"),a=e.direction||"left",l=e.distance||20,c=e.times||3,h=2*c+1,u=Math.round(e.duration/h),d="up"===a||"down"===a?"top":"left",p="up"===a||"left"===a,f={},m={},g={},v=o.queue(),y=v.length;for(t.effects.save(o,s),o.show(),t.effects.createWrapper(o),f[d]=(p?"-=":"+=")+l,m[d]=(p?"+=":"-=")+2*l,g[d]=(p?"-=":"+=")+2*l,o.animate(f,u,e.easing),n=1;n<c;n++)o.animate(m,u,e.easing).animate(g,u,e.easing);o.animate(m,u,e.easing).animate(f,u/2,e.easing).queue(function(){"hide"===r&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()}),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,h+1))),o.dequeue()}}(jQuery),function(t){t.effects.effect.slide=function(e,i){var n,o=t(this),s=["position","top","bottom","left","right","width","height"],r=t.effects.setMode(o,e.mode||"show"),a="show"===r,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,u={};t.effects.save(o,s),o.show(),n=e.distance||o["top"===c?"outerHeight":"outerWidth"](!0),t.effects.createWrapper(o).css({overflow:"hidden"}),a&&o.css(c,h?isNaN(n)?"-"+n:-n:n),u[c]=(a?h?"+=":"-=":h?"-=":"+=")+n,o.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&o.hide(),t.effects.restore(o,s),t.effects.removeWrapper(o),i()}})}}(jQuery),function(t){t.effects.effect.transfer=function(e,i){var n=t(this),o=t(e.to),s="fixed"===o.css("position"),r=t("body"),a=s?r.scrollTop():0,l=s?r.scrollLeft():0,c=o.offset(),h={top:c.top-a,left:c.left-l,height:o.innerHeight(),width:o.innerWidth()},u=n.offset(),d=t("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:u.top-a,left:u.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(h,e.duration,e.easing,function(){d.remove(),i()})}}(jQuery),function(t,e){t.widget("ui.progressbar",{version:"1.10.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=t("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(t){if(t===e)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return t===e&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&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)},_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).toggleClass("ui-corner-right",e===this.options.max).width(i.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(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")}})}(jQuery),function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.4",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,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each(function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,o=t.data(this,"selectable-item");if(o)return n=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("ui-selected"),o.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),o.unselecting=!n,o.selecting=n,o.selected=n,n?i._trigger("selecting",e,{selecting:o.element}):i._trigger("unselecting",e,{unselecting:o.element}),!1}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,o=this.options,s=this.opos[0],r=this.opos[1],a=e.pageX,l=e.pageY;return s>a&&(i=a,a=s,s=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:s,top:r,width:a-s,height:l-r}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),c=!1;i&&i.element!==n.element[0]&&("touch"===o.tolerance?c=!(i.left>a||i.right<s||i.top>l||i.bottom<r):"fit"===o.tolerance&&(c=i.left>s&&i.right<a&&i.top>r&&i.bottom<l),c?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._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 n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}})}(jQuery),function(t){var e=5;t.widget("ui.slider",t.ui.mouse,{version:"1.10.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,o=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",r=[];for(i=n.values&&n.values.length||1,o.length>i&&(o.slice(i).remove(),o=o.slice(0,i)),e=o.length;e<i;e++)r.push(s);this.handles=o.add(t(r.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,i="";e.range?(!0===e.range&&(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.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=t("<div></div>").appendTo(this.element),i="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(i+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){var t=this.handles.add(this.range).filter("a");this._off(t),this._on(t,this._handleEvents),this._hoverable(t),this._focusable(t)}
6,_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var i,n,o,s,r,a,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-c.values(e));(o>i||o===i&&(e===c._lastChangedValue||c.values(e)===h.min))&&(o=i,s=t(this),r=e)}),!1!==this._start(e,r)&&(this._mouseSliding=!0,this._handleIndex=r,s.addClass("ui-state-active").focus(),a=s.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-a.left-s.width()/2,top:e.pageY-a.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,n),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.handles.removeClass("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,n,o,s;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)),(n=i/e)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),s=this._valueMin()+n*o,this._trimAlignValue(s)},_start:function(t,e){var i={handle:this.handles[e],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("start",t,i)},_slide:function(t,e,i){var n,o,s;this.options.values&&this.options.values.length?(n=this.values(e?0:1),2===this.options.values.length&&!0===this.options.range&&(0===e&&i>n||1===e&&i<n)&&(i=n),i!==this.values(e)&&((o=this.values())[e]=i,s=this._trigger("slide",t,{handle:this.handles[e],value:i,values:o}),n=this.values(e?0:1),!1!==s&&this.values(e,i))):i!==this.value()&&!1!==(s=this._trigger("slide",t,{handle:this.handles[e],value:i}))&&this.value(i)},_stop:function(t,e){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._trigger("stop",t,i)},_change:function(t,e){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[e],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(e),i.values=this.values()),this._lastChangedValue=e,this._trigger("change",t,i)}},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,o,s;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this.options.values&&this.options.values.length?this._values(e):this.value();for(n=this.options.values,o=arguments[0],s=0;s<n.length;s+=1)n[s]=this._trimAlignValue(o[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,i){var n,o=0;switch("range"===e&&!0===this.options.range&&("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)&&(o=this.options.values.length),t.Widget.prototype._setOption.apply(this,arguments),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue();break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=0;n<o;n+=1)this._change(null,n);this._animateOff=!1;break;case"min":case"max":this._animateOff=!0,this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var t=this.options.value;return t=this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())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,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var e,i,n,o,s,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,h={};this.options.values&&this.options.values.length?this.handles.each(function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](h,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,
61)[c?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i}):(n=this.value(),o=this._valueMin(),s=this._valueMax(),i=s!==o?(n-o)/(s-o)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](h,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range[c?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:a.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range[c?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:a.animate}))},_handleEvents:{keydown:function(i){var n,o,s,r=t(i.target).data("ui-slider-handle-index");switch(i.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(i.preventDefault(),!this._keySliding&&(this._keySliding=!0,t(i.target).addClass("ui-state-active"),!1===this._start(i,r)))return}switch(s=this.options.step,n=o=this.options.values&&this.options.values.length?this.values(r):this.value(),i.keyCode){case t.ui.keyCode.HOME:o=this._valueMin();break;case t.ui.keyCode.END:o=this._valueMax();break;case t.ui.keyCode.PAGE_UP:o=this._trimAlignValue(n+(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.PAGE_DOWN:o=this._trimAlignValue(n-(this._valueMax()-this._valueMin())/e);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(n===this._valueMax())return;o=this._trimAlignValue(n+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(n===this._valueMin())return;o=this._trimAlignValue(n-s)}this._slide(i,r,o)},click:function(t){t.preventDefault()},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),t(e.target).removeClass("ui-state-active"))}}})}(jQuery),function(t){function e(t,e,i){return t>e&&t<e+i}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.4",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},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||i(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,o=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,s.widgetName+"-item")===s)return n=t(this),!1}),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(o=!0)}),!o))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var o,s,r=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
vendor: 4,388 bytes, lines 6-7
6: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,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],
7parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(s)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,o,s,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-t(document).scrollTop()<r.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<r.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+r.scrollSpeed)),e.pageX-t(document).scrollLeft()<r.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<r.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+r.scrollSpeed))),!1!==a&&t.ui.ddmanager&&!r.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(o=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(o===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===o||t.contains(this.placeholder[0],o)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],o))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),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 n=this,o=this.placeholder.offset(),s=this.options.axis,r={};s&&"x"!==s||(r.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(r.to
vendor: 4,759 bytes, line 7
7p=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("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),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,s=t.left,r=s+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||n+c>a&&n+c<l,d="y"===this.options.axis||e+h>s&&e+h<r,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:s<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&o-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=i&&n,s=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!o&&(this.floating?r&&"right"===r||"down"===s?2:1:s&&("down"===s?2:1))},_intersectsWithSides:function(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&n||"left"===s&&!n:o&&("down"===o&&i||"up"===o&&!i)},_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.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){a.push(this)}var n,o,s,r,a=[],l=[],c=this._connectWith();if(c&&e)for(n=c.length-1;n>=0;n--)for(o=(s=t(c[n])).length-1;o>=0;o--)(r=t.data(s[o],this.widgetFullName))&&r!==this&&!r.options.disabled&&l.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.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]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,s,r,a,l,c,h=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=(o=t(d[i])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(u.pu
7sh([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=u.length-1;i>=0;i--)for(r=u[i][1],n=0,c=(a=u[i][0]).length;n<c;n++)(l=t(a[n])).data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,o,s;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),s=o.offset(),n.left=s.left,n.top=s.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--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.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){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(o)}):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){i&&!n.forcePlaceholderSize||(o.height()||o.height(e.currentItem.innerHe
vendor: 5,242 bytes, line 7
7ight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(n){var o,s,r,a,l,c,h,u,d,p,f=null,m=null;for(o=this.containers.length-1;o>=0;o--)if(!t.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(f&&t.contains(this.containers[o].element[0],f.element[0]))continue;f=this.containers[o],m=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",n,this._uiHash(this)),this.containers[o].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",n,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(r=1e4,a=null,l=(p=f.floating||i(this.currentItem))?"left":"top",c=p?"width":"height",h=this.positionAbs[l]+this.offset.click[l],s=this.items.length-1;s>=0;s--)t.contains(this.containers[m].element[0],this.items[s].item[0])&&this.items[s].item[0]!==this.currentItem[0]&&(p&&!e(this.positionAbs.top+this.offset.click.top,this.items[s].top,this.items[s].height)||(u=this.items[s].item.offset()[l],d=!1,Math.abs(u-h)>Math.abs(u+this.items[s][c]-h)&&(d=!0,u+=this.items[s][c]),Math.abs(u-h)<r&&(r=Math.abs(u-h),a=this.items[s],this.direction=d?"up":"down")));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;a?this._rearrange(n,a,null,!0):this._rearrange(n,null,this.containers[m].element,!0),this._trigger("change",n,this._uiHash()),this.containers[m]._trigger("change",n,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",n,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[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")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_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]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.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,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),"document"!==o.containment&&"window"!==o.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===o.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===o.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="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"),
vendor: 6,455 bytes, line 7
710)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?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+(n?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 n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,s=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/o.grid[1])*o.grid[1],r=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-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/o.grid[0])*o.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){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 o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.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||o.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(o.push(function(t){this._trigger("remove",t,this._uiHash())}),o.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),o.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||o.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(o.push(i("out",this,this.containers[n])),this.containers[n].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,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),n=0;n<o.length;n++)o[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(n=0;n<o.length;n++)o[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&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}}})}(jQuery),function(t){function e(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.widget("ui.spinner",{version:"1.10.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{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={},i=this.element;return t.each(["min","max","step"],function(t,n){var o=i.attr(n);void 0!==o&&o.length&&(e[n]=o)}),e}
7,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},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(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n}))}var n;n=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,i.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var t=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=t.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*t.height())&&t.height()>0&&t.height(t.height()),this.options.disabled&&this.disable()},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_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&&!1===this._trigger("spin",e,{value:i})||(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.toString(),i=e.indexOf(".");return-1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=t-(e=null!==n.min?n.min:0),t=e+(i=Math.round(i/n.step)*n.step),t=parseFloat(t.toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&t<n.min?n.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){if("culture"===t||"numberFormat"===t){var i=this._parse(this.element.val());return this.options[t]=e,void this.element.val(this._format(i))}"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(e.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(e.down)),this._super(t,e),"disabled"===t&&(e?(this.element.prop("disabled",!0),this.buttons.button("disable")):(this.element.prop("disabled",!1),this.buttons.button("enable")))},_setOptions:e(function(t){this._super(t),this._value(this.element.val())}),_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())})},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:e(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:e(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:e(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:e(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){if(!arguments.length)return this._parse(this.element.val());e(this._value).call(this,t)},widget:function(){return this.uiSpinner}}
vendor: 11,189 bytes, lines 7-8
7)}(jQuery),function(t,e){function i(){return++o}function n(t){return(t=t.cloneNode(!1)).hash.length>1&&decodeURIComponent(t.href.replace(s,""))===decodeURIComponent(location.href.replace(s,""))}var o=0,s=/#.*$/;t.widget("ui.tabs",{version:"1.10.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_create:function(){var e=this,i=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",i.collapsible).delegate(".ui-tabs-nav > li","mousedown"+this.eventNamespace,function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),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()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,o){if(t(o).attr("aria-controls")===n)return e=i,!1}),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)))&&(e=!i&&0),!i&&!1===e&&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(this.document[0].activeElement).closest("li"),n=this.tabs.index(i),o=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),e.ctrlKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.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 n(){return e>o&&(e=0),e<0&&(e=o),e}for(var o=this.tabs.length-1;-1!==t.inArray(n(),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).focus(),t},_setOption:function(t,e){"active"!==t?"disabled"!==t?(this._super(t,e),"collapsible"===t&&(this.element.toggleClass("ui-tabs-collapsible",e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._setupDisabled(e):this._activate(e)},_tabId:function(t){return t.attr("aria-controls")||"ui-tabs-"+i()},_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(),!1!==e.active&&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._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-expanded":"false","aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-expanded":"true","aria-hidden":"false"
8})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist"),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=t(),this.anchors.each(function(i,o){var s,r,a,l=t(o).uniqueId().attr("id"),c=t(o).closest("li"),h=c.attr("aria-controls");n(o)?(s=o.hash,r=e.element.find(e._sanitizeSelector(s))):(s="#"+(a=e._tabId(c)),(r=e.element.find(s)).length||(r=e._createPanel(a)).insertAfter(e.panels[i-1]||e.tablist),r.attr("aria-live","polite")),r.length&&(e.panels=e.panels.add(r)),h&&c.data("ui-tabs-aria-controls",h),c.attr({"aria-controls":s.substring(1),"aria-labelledby":l}),r.attr("aria-labelledby",l)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel")},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var i,n=0;i=this.tabs[n];n++)!0===e||-1!==t.inArray(n,e)?t(i).addClass("ui-state-disabled").attr("aria-disabled","true"):t(i).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={click:function(t){t.preventDefault()}};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),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,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(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,n=this.active,o=t(e.currentTarget).closest("li"),s=o[0]===n[0],r=s&&i.collapsible,a=r?t():this._getPanelForTab(o),l=n.length?this._getPanelForTab(n):t(),c={oldTab:n,oldPanel:l,newTab:r?t():o,newPanel:a};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||s&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!r&&this.tabs.index(o),this.active=s?t():o,this.xhr&&this.xhr.abort(),l.length||a.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(o),e),this._toggle(e,c))},_toggle:function(e,i){function n(){s.running=!1,s._trigger("activate",e,i)}function o(){i.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&s.options.show?s._show(r,s.options.show,n):(r.show(),n())}var s=this,r=i.newPanel,a=i.oldPanel;this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o()}):(i.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),a.hide(),o()),a.attr({"aria-expanded":"false","aria-hidden":"true"}),i.oldTab.attr("aria-selected","false"),r.length&&a.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr({"aria-expanded":"true","aria-hidden":"false"}),i.newTab.attr({"aria-selected":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+t+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),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(i){var n=this.options.disabled;!1!==n&&(i===e?n=!1:(i=this._getIndex(i),n=t.isArray(n)?t.map(n,function(t){return t!==i?t:null}):t.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(n))},disable:function(i){var n=this.options.disabled;if(!0!==n){if(i===e)n=!0;else{if(i=this._getIndex(i),-1!==t.inArray(i,n))return;n=t.isArray(n)?t.merge([i],n).sort():[i]}this._setupDisabled(n)}},load:function(e,i){e=this._getIndex(e);var o=this,s=this.tabs.eq(e),r=s.find(".ui-tabs-anchor"),a=this._getPanelForTab(s),l={tab:s,panel:a};n(r[0])||(this.xhr=t.ajax(this._ajaxSettings(r,i,l)),this.xhr&&"canceled"!==this.xhr.statusText&&(s.addClass("ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.success(function(t){setTimeout(function(){a.html(t),o._trigger("load",i,l)},1)}).complete(function(t,e){setTimeout(function(){"abort"===e&&o.panels.stop(!1,!0),s.removeClass("ui-tabs-loading"),a.removeAttr("aria-busy"),t===o.xhr&&delete o.xhr},1)}
8)))},_ajaxSettings:function(e,i,n){var o=this;return{url:e.attr("href"),beforeSend:function(e,s){return o._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:s},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}})}(jQuery),function(t){function e(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))}function i(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),o=t.inArray(i,n);-1!==o&&n.splice(o,1),e.removeData("ui-tooltip-id"),(n=t.trim(n.join(" ")))?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")}var n=0;t.widget("ui.tooltip",{version:"1.10.4",options:{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,tooltipClass:null,track:!1,close:null,open:null},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable()},_setOption:function(e,i){var n=this;if("disabled"===e)return this[i?"_disable":"_enable"](),void(this.options[e]=i);this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e)})},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var o=t.Event("blur");o.target=o.currentTarget=n[0],e.close(o,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).attr("title","")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,o=this,s=e?e.type:null;if("string"==typeof n)return this._open(e,t,n);(i=n.call(t[0],function(i){t.data("ui-tooltip-open")&&o._delay(function(){e&&(e.type=s),this._open(e,t,i)})}))&&this._open(e,t,i)},_open:function(i,n,o){function s(t){c.of=t,r.is(":hidden")||r.position(c)}var r,a,l,c=t.extend({},this.options.position);o&&((r=this._find(n)).length?r.find(".ui-tooltip-content").html(o):(n.is("[title]")&&(i&&"mouseover"===i.type?n.attr("title",""):n.removeAttr("title")),r=this._tooltip(n),e(n,r.attr("id")),r.find(".ui-tooltip-content").html(o),this.options.track&&i&&/^mouse/.test(i.type)?(this._on(this.document,{mousemove:s}),s(i)):r.position(t.extend({of:n},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(l=this.delayedShow=setInterval(function(){r.is(":visible")&&(s(c.of),clearInterval(l))},t.fx.interval)),this._trigger("open",i,{tooltip:r}),a={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var i=t.Event(e);i.currentTarget=n[0],this.close(i,!0)}},remove:function(){this._removeTooltip(r)}},i&&"mouseover"!==i.type||(a.mouseleave="close"),i&&"focusin"!==i.type||(a.focusout="close"),this._on(!0,n,a)))},close:function(e){var n=this,o=t(e?e.currentTarget:this.element),s=this._find(o);this.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&o.attr("title",o.data("ui-tooltip-title")),i(o),s.stop(!0),this._hide(s,this.options.hide,function(){n._removeTooltip(t(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"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 n.parents[e]}),this.closing=!0,this._trigger("close",e,{tooltip:s}
8),this.closing=!1)},_tooltip:function(e){var i="ui-tooltip-"+n++,o=t("<div>").attr({id:i,role:"tooltip"}).addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||""));return t("<div>").addClass("ui-tooltip-content").appendTo(o),o.appendTo(this.document[0].body),this.tooltips[i]=e,o},_find:function(e){var i=e.data("ui-tooltip-id");return i?t("#"+i):t()},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var o=t.Event("blur");o.target=o.currentTarget=n[0],e.close(o,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})}})}(jQuery),function(t){function e(e,i){this.$element=t(e),this.options=i,this.enabled=!0,this.fixTitle()}e.prototype={show:function(){var e=this.getTitle();if(e&&this.enabled){var i,n=this.tip();n.find(".tipsy-inner")[this.options.html?"html":"text"](e),n[0].className="tipsy",n.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).appendTo(document.body);try{i=t.extend({},this.$element.offset(),{width:this.$element[0].getBBox().width,height:this.$element[0].getBBox().height})}catch(e){i=t.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})}var o,s=n[0].offsetWidth,r=n[0].offsetHeight,a="function"==typeof this.options.gravity?this.options.gravity.call(this.$element[0]):this.options.gravity;switch(a.charAt(0)){case"n":o={top:70+i.top+i.height+this.options.offset,left:i.left+i.width/2-s/2};break;case"s":o={top:40+i.top-r-this.options.offset,left:i.left+i.width/2-s/2};break;case"e":o={top:70+i.top+i.height/2-r/2,left:i.left-s-this.options.offset};break;case"w":o={top:70+i.top+i.height/2-r/2,left:i.left+i.width+this.options.offset}}2==a.length&&("w"==a.charAt(1)?o.left=i.left:o.left=i.left+i.width/2-s+15),this.restarTop()&&(o.top=o.top-60),n.css(o).addClass("tipsy-"+a),this.options.fade?n.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity}):n.css({visibility:"visible",opacity:this.options.opacity})}},hide:function(){this.options.fade?this.tip().stop().fadeOut(function(){t(this).remove()}):this.tip().remove()},fixTitle:function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("original-title"))&&t.attr("original-title",t.attr("title")||"").removeAttr("title")},restarTop:function(){return!this.$element.attr("rtop")},getTitle:function(){var t,e=this.$element,i=this.options;return this.fixTitle(),"string"==typeof(i=this.options).title?t=e.attr("title"==i.title?"original-title":i.title):"function"==typeof i.title&&(t=i.title.call(e[0])),(t=(""+t).replace(/(^\s*|\s*$)/,""))||i.fallback},tip:function(){return this.$tip||(this.$tip=t('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>')),this.$tip},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled}},t.fn.tipsy=function(i){function n(n){var o=t.data(n,"tipsy");return o||(o=new e(n,t.fn.tipsy.elementOptions(n,i)),t.data(n,"tipsy",o)),o}function o(){var t=n(this);t.hoverState="in",0==i.delayIn?t.show():(t.fixTitle(),setTimeout(function(){"in"==t.hoverState&&t.show()},i.delayIn))}function s(){var t=n(this);t.hoverState="out",0==i.delayOut?t.hide():setTimeout(function(){"out"==t.hoverState&&t.hide()},i.delayOut)}if(!0===i)return this.data("tipsy");if("string"==typeof i){var r=this.data("tipsy");return r&&r[i](),this}if((i=t.extend({},t.fn.tipsy.defaults,i)).live||this.each(function(){n(this)}),"manual"!=i.trigger){var a=i.live?"live":"bind",l="hover"==i.trigger?"mouseenter":"focus",c="hover"==i.trigger?"mouseleave":"blur";this[a](l,o)[a](c,s)}return this},t.fn.tipsy.defaults={delayIn:0,delayOut:0,fade:!1,fallback:"",gravity:"n",html:!1,live:!1,offset:0,opacity:1,title:"title",trigger:"hover"},t.fn.tipsy.elementOptions=function(e,i){return t.metadata?t.extend({},i,t(e).metadata()):i},t.fn.tipsy.autoNS=function(){return t(this).offset().top>t(document).scrollTop()+t(window).height()/2?"s":"n"},t.fn.tipsy.autoWE=function(){return t(this).offset().left>t(document).scrollLeft()+t(window).width()/2?"e":"w"}}(jQuery),function(t){t.extend(t.fn,{validate:function(e){if(this.length){var i=t.data(this[0],"validator");
8return i||(i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.find("input, button").filter(".cancel").click(function(){i.cancelSubmit=!0}),i.settings.submitHandler&&this.find("input, button").filter(":submit").click(function(){i.submitButton=this}),this.submit(function(e){function n(){if(i.settings.submitHandler){if(i.submitButton)var e=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(i.submitButton.value).appendTo(i.currentForm);return i.settings.submitHandler.call(i,i.currentForm),i.submitButton&&e.remove(),!1}return!0}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing")},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e&=i.element(this)}),e},removeAttrs:function(e){var i={},n=this;return t.each(e.split(/\s/),function(t,e){i[e]=n.attr(e),n.removeAttr(e)}),i},rules:function(e,i){var n=this[0];if(e){var o=t.data(n.form,"validator").settings,s=o.rules,r=t.validator.staticRules(n);switch(e){case"add":t.extend(r,t.validator.normalizeRule(i)),s[n.name]=r,i.messages&&(o.messages[n.name]=t.extend(o.messages[n.name],i.messages));break;case"remove":if(!i)return delete s[n.name],r;var a={};return t.each(i.split(/\s/),function(t,e){a[e]=r[e],delete r[e]}),a}}return(n=t.validator.normalizeRules(t.extend({},t.validator.metadataRules(n),t.validator.classRules(n),t.validator.attributeRules(n),t.validator.staticRules(n)),n)).required&&(o=n.required,delete n.required,n=t.extend({required:o},n)),n}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+e.value)},filled:function(e){return!!t.trim(""+e.value)},unchecked:function(t){return!t.checked}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1==arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!=Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!=Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),i)}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:[],ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(t){(t.name in this.submitted||t==this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(n):t(e).addClass(i).removeClass(n)},unhighlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(n):t(e).removeClass(i).addClass(n)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator");e="on"+e.type.replace(/^validate/,""),i.settings[e]&&i.settings[e].call(i,this[0])}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.groups={};t.each(this.settings.groups,function(e,n){t.each(n.split(/\s/),function(t,n){i[n]=e})});var n=this.settings.rules;t.each(n,function(e,i){n[e]=t.validator.normalizeRule(i)}),t(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",e).validateDelegate(":radio, :checkbox, select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){this.lastElement=e=this.clean(e),this.prepareElement(e),this.currentElements=t(e);var i=this.check(e);return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers
8)),this.showErrors(),i},showErrors:function(e){if(e){for(var i in t.extend(this.errorMap,e),this.errorList=[],e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)i++;return i},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0==this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1==t.grep(this.errorList,function(t){return t.element.name==e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i||!e.objectLength(t(this).rules()))&&(i[this.name]=!0)})},clean:function(e){return t(e)[0]},errors:function(){return t(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},check:function(e){e=this.clean(e),this.checkable(e)&&(e=this.findByName(e.name).not(this.settings.ignore)[0]);var i,n=t(e).rules(),o=!1;for(i in n){var s={method:i,parameters:n[i]};try{var r=t.validator.methods[i].call(this,e.value.replace(/\r/g,""),e,s.parameters);if("dependency-mismatch"==r)o=!0;else{if(o=!1,"pending"==r)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!r)return this.formatAndAdd(e,s),!1}}catch(t){throw this.settings.debug&&window.console&&console.log("exception occured when checking element "+e.id+", check the '"+s.method+"' method",t),t}}if(!o)return this.objectLength(n)&&this.successList.push(e),!0},customMetaMessage:function(e,i){if(t.metadata){var n=this.settings.meta?t(e).metadata()[this.settings.meta]:t(e).metadata();return n&&n.messages&&n.messages[i]}},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor==String?i:i[e])},findDefined:function(){for(var t=0;t<arguments.length;t++)if(void 0!==arguments[t])return arguments[t]},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customMetaMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(t,e){var i=this.defaultMessage(t,e.method),n=/\$?\{(\d+)\}/g;"function"==typeof i?i=i.call(this,e.parameters,t):n.test(i)&&(i=jQuery.format(i.replace(n,"{$1}"),e.parameters)),this.errorList.push({message:i,element:t}),this.errorMap[t.name]=i,this.submitted[t.name]=i},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){for(var t=0;this.errorList[t];t++){var e=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,e.element,this.settings.errorClass,this.settings.validClass),this.showLabel(e.element,e.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.val
8idClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var n=this.errorsFor(e);n.length?(n.removeClass().addClass(this.settings.errorClass),n.attr("generated")&&n.html(i)):(n=t("<"+this.settings.errorElement+"/>").attr({for:this.idOrName(e),generated:!0}).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(n=n.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(n).length||(this.settings.errorPlacement?this.settings.errorPlacement(n,t(e)):n.insertAfter(e))),!i&&this.settings.success&&(n.text(""),"string"==typeof this.settings.success?n.addClass(this.settings.success):this.settings.success(n)),this.toShow=this.toShow.add(n)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")==i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){var i=this.currentForm;return t(document.getElementsByName(e)).map(function(t,n){return n.form==i&&n.name==e&&n||null})},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){return!t.validator.methods.required.call(this,t.trim(e.value),e)&&"depen
8dency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0==this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0==this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},dateDE:{dateDE:!0},number:{number:!0},numberDE:{numberDE:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor==String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={};return(e=t(e).attr("class"))&&t.each(e.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i={};for(var n in e=t(e),t.validator.methods){var o=e.attr(n);o&&(i[n]=o)}return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},metadataRules:function(e){if(!t.metadata)return{};var i=t.data(e.form,"validator").settings.meta;return i?t(e).metadata()[i]:t(e).metadata()},staticRules:function(e){var i={},n=t.data(e.form,"validator");return n.settings.rules&&(i=t.validator.normalizeRule(n.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(n,o){if(!1===o)delete e[n];else if(o.param||o.depends){var s=!0;switch(typeof o.depends){case"string":s=!!t(o.depends,i.form).length;break;case"function":s=o.depends.call(i,i)}s?e[n]=void 0===o.param||o.param:delete e[n]}}),t.each(e,function(n,o){e[n]=t.isFunction(o)?o(i):o}),t.each(["minlength","maxlength","min","max"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){e[this]&&(e[this]=[Number(e[this][0]),Number(e[this][1])])}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e.messages&&delete e.messages,e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,n){t.validator.methods[e]=i,t.validator.messages[e]=null!=n?n:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,n){if(!this.depend(n,i))return"dependency-mismatch";switch(i.nodeName.toLowerCase()){case"select":return(e=t(i).val())&&e.length>0;case"input":if(this.checkable(i))return this.getLength(e,i)>0;default:return t.trim(e).length>0}},remote:function(e,i,n){if(this.optional(i))return"dependency-mismatch";var o=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),o.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=o.message,n="string"==typeof n&&{url:n}||n,this.pending[i.name])return"pending";if(o.old===e)return o.valid;o.old=e;var s=this;this.startRequest(i);var r={};return r[i.name]=e,t.ajax(t.extend(!0,{url:n,mode:"abort",port:"validate"+i.name,dataType:"json",data:r,success:function(n){s.settings.messages[i.name].remote=o.originalMessage;var r=!0===n;if(r){var a=s.formSubmitted;s.prepareElement(i),s.formSubmitted=a,s.successList.push(i),s.showErrors()}else a={},n=n||s.defaultMessage(i,"remote"),a[i.name]=o.message=t.isFunction(n)?n(e):n,s.showErrors(a);o.valid=r,s.stopRequest(i,r)}},n)),"pending"},minlength:function(e,i,n){return this.optional(i)||this.getLength(t.trim(e),i)>=n},maxlength:function(e,i,n){return this.optional(i)||this.getLength(t.trim(e),i)<=n},rangelength:function(e,i,n){return e=this.getLength(t.trim(e),i),this.optional(i)||e>=n[0]&&e<=n[1]},min:function(t,e,i){return this.optional(e)||t>=i}
8,max:function(t,e,i){return this.optional(e)||t<=i},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(t)},url:function(t,e){
9return this.optional(e)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t))},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9-]+/.test(t))return!1;for(var i=0,n=0,o=!1,s=(t=t.replace(/\D/g,"")).length-1;s>=0;s--)n=t.charAt(s),n=parseInt(n,10),o&&(n*=2)>9&&(n-=9),i+=n,o=!o;return i%10==0},accept:function(t,e,i){return i="string"==typeof i?i.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(e)||t.match(RegExp(".("+i+")$","i"))},equalTo:function(e,i,n){return e==(n=t(n).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()})).val()}}}),t.format=t.validator.format}(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,n){i=t.port,"abort"==t.mode&&(e[i]&&e[i].abort(),e[i]=n)});else{var i=t.ajax;t.ajax=function(n){var o=("port"in n?n:t.ajaxSettings).port;return"abort"==("mode"in n?n:t.ajaxSettings).mode?(e[o]&&e[o].abort(),e[o]=i.apply(this,arguments)):i.apply(this,arguments)}}}(jQuery),function(t){!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener&&t.each({focus:"focusin",blur:"focusout"},function(e,i){function n(e){return(e=t.event.fix(e)).type=i,t.event.handle.call(this,e)}t.event.special[i]={setup:function(){this.addEventListener(e,n,!0)},teardown:function(){this.removeEventListener(e,n,!0)},handler:function(e){return arguments[0]=t.event.fix(e),arguments[0].type=i,t.event.handle.apply(this,arguments)}}}),t.extend(t.fn,{validateDelegate:function(e,i,n){return this.bind(i,function(i){var o=t(i.target);if(o.is(e))return n.apply(o,arguments)})}})}(jQuery),function(t){function e(e){var i=e||window.event,n=[].slice.call(arguments,1
9),o=0,s=0,r=0;return(e=t.event.fix(i)).type="mousewheel",i.wheelDelta&&(o=i.wheelDelta/120),i.detail&&(o=-i.detail/3),r=o,void 0!==i.axis&&i.axis===i.HORIZONTAL_AXIS&&(r=0,s=-1*o),void 0!==i.wheelDeltaY&&(r=i.wheelDeltaY/120),void 0!==i.wheelDeltaX&&(s=-1*i.wheelDeltaX/120),n.unshift(e,o,s,r),(t.event.dispatch||t.event.handle).apply(this,n)}var i=["DOMMouseScroll","mousewheel"];if(t.event.fixHooks)for(var n=i.length;n;)t.event.fixHooks[i[--n]]=t.event.mouseHooks;t.event.special.mousewheel={setup:function(){if(this.addEventListener)for(var t=i.length;t;)this.addEventListener(i[--t],e,!1);else this.onmousewheel=e},teardown:function(){if(this.removeEventListener)for(var t=i.length;t;)this.removeEventListener(i[--t],e,!1);else this.onmousewheel=null}},t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})}(jQuery),function(t,e,i,n){"use strict";var o=i("html"),s=i(t),r=i(e),a=i.fancybox=function(){a.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),c=null,h=e.createTouch!==n,u=function(t){return t&&t.hasOwnProperty&&t instanceof i},d=function(t){return t&&"string"===i.type(t)},p=function(t){return d(t)&&t.indexOf("%")>0},f=function(t){return t&&!(t.style.overflow&&"hidden"===t.style.overflow)&&(t.clientWidth&&t.scrollWidth>t.clientWidth||t.clientHeight&&t.scrollHeight>t.clientHeight)},m=function(t,e){var i=parseInt(t,10)||0;return e&&p(t)&&(i=a.getViewport()[e]/100*i),Math.ceil(i)},g=function(t,e){return m(t,e)+"px"};i.extend(a,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!h,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(i.isPlainObject(e)||(e={}),!1!==a.close(!0)))return i.isArray(t)||(t=u(t)?i(t).get():[t]),i.each(t,function(o,s){var r,l,c,h,p,f,m,g={};"object"===i.type(s)&&(s.nodeType&&(s=i(s)),u(s)?(g={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s},i.metadata&&i.extend(!0,g,s.metadata())):g=s),r=e.href||g.href||(d(s)?s:null),l=e.title!==n?e.title:g.title||"",!(h=(c=e.content||g.content)?"html":e.type||g.type)&&g.isDom&&((h=s.data("fancybox-type"))||(h=(p=s.prop("class").match(/fancybox\.(\w+)/))?p[1]:null)),d(r)&&(h||(a.isImage(r)?h="image":a.isSWF(r)?h="swf":"#"===r.charAt(0)?h="inline":d(s)&&(h="html",c=s)),"ajax"===h&&(f=r.split(/\s+/,2),r=f.shift(),m=f.shift())),c||("inline"===h?r?c=i(d(r)?r.replace(/.*(?=#[^\s]+$)/,""):r):g.isDom&&(c=s):"html"===h?c=r:h||r||!g.isDom||(h="inline",c=s)),i.extend(g,{href:r,type:h,content:c,title:l,selector:m}),t[o]=g}),a.opts=i.extend(!0,{},a.defaults,e),e.keys!==n&&(a.opts.keys=!!e.keys&&i.extend({},a.defaults.keys,e.keys)),a.group=t,a._start(a.opts.index)},cancel:function(){var t=a.coming;t&&!1!==a.trigger("onCancel")&&(a.hideLoading(),a.ajaxLoad&&a.ajaxLoad.abort(),a.ajaxLoad=null,a.imgPreload&&(a.imgPreload.onload=a.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),a.coming=null,a.current||a._afterZoomOut(t))},close:function(t){a.cancel(),!1!==a.trigger("beforeClose")&&(a.unbindEvents(),a.isActive&&(a.isOpen&&!0!==t?(a.isOpen=a.isOpened=!1,a.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),a.wrap.stop(!0,!0).removeClass("fancybox-opened"),a.transitions[a.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),a._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(a.player.timer)},i=function(){e(),a.current&&a.player.isActive&&(a.player.timer=setTimeout(a.next,a.current.playSpeed))},n=function(){e(),r.unbind(".player"),a.player.isActive=!1,a.trigger("onPlayEnd")}
9,o=function(){a.current&&(a.current.loop||a.current.index<a.group.length-1)&&(a.player.isActive=!0,r.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":e}),i(),a.trigger("onPlayStart"))};!0===t||!a.player.isActive&&!1!==t?o():n()},next:function(t){var e=a.current;e&&(d(t)||(t=e.direction.next),a.jumpto(e.index+1,t,"next"))},prev:function(t){var e=a.current;e&&(d(t)||(t=e.direction.prev),a.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,i){var o=a.current;o&&(t=m(t),a.direction=e||o.direction[t>=o.index?"next":"prev"],a.router=i||"jumpto",o.loop&&(t<0&&(t=o.group.length+t%o.group.length),t%=o.group.length),o.group[t]!==n&&(a.cancel(),a._start(t)))},reposition:function(t,e){var n,o=a.current,s=o?o.wrap:null;s&&(n=a._getPosition(e),t&&"scroll"===t.type?(delete n.position,s.stop(!0,!0).animate(n,200)):(s.css(n),o.pos=i.extend({},o.dim,n)))},update:function(t){var e=t&&t.type,i=!e||"orientationchange"===e;i&&(clearTimeout(c),c=null),a.isOpen&&!c&&(c=setTimeout(function(){var n=a.current;n&&!a.isClosing&&(a.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&n.autoResize)&&a._setDimension(),"scroll"===e&&n.canShrink||a.reposition(t),a.trigger("onUpdate"),c=null)},i&&!h?0:300))},toggle:function(t){a.isOpen&&(a.current.fitToView="boolean"===i.type(t)?t:!a.current.fitToView,h&&(a.wrap.removeAttr("style").addClass("fancybox-tmp"),a.trigger("onUpdate")),a.update())},hideLoading:function(){r.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,e;a.hideLoading(),t=i('<div id="fancybox-loading"><div></div></div>').click(a.cancel).appendTo("body"),r.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),a.cancel())}),a.defaults.fixed||(e=a.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left:.5*e.w+e.x}))},getViewport:function(){var e=a.current&&a.current.locked||!1,i={x:s.scrollLeft(),y:s.scrollTop()};return e?(i.w=e[0].clientWidth,i.h=e[0].clientHeight):(i.w=h&&t.innerWidth?t.innerWidth:s.width(),i.h=h&&t.innerHeight?t.innerHeight:s.height()),i},unbindEvents:function(){a.wrap&&u(a.wrap)&&a.wrap.unbind(".fb"),r.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var t,e=a.current;e&&(s.bind("orientationchange.fb"+(h?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),a.update),(t=e.keys)&&r.bind("keydown.fb",function(o){var s=o.which||o.keyCode,r=o.target||o.srcElement;if(27===s&&a.coming)return!1;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||r&&(r.type||i(r).is("[contenteditable]"))||i.each(t,function(t,r){return e.group.length>1&&r[s]!==n?(a[t](r[s]),o.preventDefault(),!1):i.inArray(s,r)>-1?(a[t](),o.preventDefault(),!1):void 0})}),i.fn.mousewheel&&e.mouseWheel&&a.wrap.bind("mousewheel.fb",function(t,n,o,s){for(var r=t.target||null,l=i(r),c=!1;l.length&&!(c||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)c=f(l[0]),l=i(l).parent();0===n||c||a.group.length>1&&!e.canShrink&&(s>0||o>0?a.prev(s>0?"down":"left"):(s<0||o<0)&&a.next(s<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var n,o=e||a.coming||a.current;if(o){if(i.isFunction(o[t])&&(n=o[t].apply(o,Array.prototype.slice.call(arguments,1))),!1===n)return!1;
9o.helpers&&i.each(o.helpers,function(e,n){n&&a.helpers[e]&&i.isFunction(a.helpers[e][t])&&a.helpers[e][t](i.extend(!0,{},a.helpers[e].defaults,n),o)}),r.trigger(t)}},isImage:function(t){return d(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return d(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,n,o,s,r,l={};if(t=m(t),!(e=a.group[t]||null))return!1;if(s=(l=i.extend(!0,{},a.opts,e)).margin,r=l.padding,"number"===i.type(s)&&(l.margin=[s,s,s,s]),"number"===i.type(r)&&(l.padding=[r,r,r,r]),l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=a.group,l.index=t,a.coming=l,!1!==a.trigger("beforeLoad")){if(o=l.type,n=l.href,!o)return a.coming=null,!(!a.current||!a.router||"jumpto"===a.router)&&(a.current.index=t,a[a.router](a.direction));if(a.isActive=!0,"image"!==o&&"swf"!==o||(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===o&&(l.aspectRatio=!0),"iframe"===o&&h&&(l.scrolling="scroll"),l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(h?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)}),i.each(["Top","Right","Bottom","Left"],function(t,e){l.skin.css("padding"+e,g(l.padding[t]))}),a.trigger("onReady"),"inline"===o||"html"===o){if(!l.content||!l.content.length)return a._error("content")}else if(!n)return a._error("href");"image"===o?a._loadImage():"ajax"===o?a._loadAjax():"iframe"===o?a._loadIframe():a._afterLoad()}else a.coming=null},_error:function(t){i.extend(a.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:a.coming.tpl.error}),a._afterLoad()},_loadImage:function(){var t=a.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,a.coming.width=this.width/a.opts.pixelRatio,a.coming.height=this.height/a.opts.pixelRatio,a._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,a._error("image")},t.src=a.coming.href,!0!==t.complete&&a.showLoading()},_loadAjax:function(){var t=a.coming;a.showLoading(),a.ajaxLoad=i.ajax(i.extend({},t.ajax,{url:t.href,error:function(t,e){a.coming&&"abort"!==e?a._error("ajax",t):a.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,a._afterLoad())}}))},_loadIframe:function(){var t=a.coming,e=i(t.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",h?"auto":t.iframe.scrolling).attr("src",t.href);i(t.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(a.showLoading(),e.one("load",function(){i(this).data("ready",1),h||i(this).bind("load.fb",a.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),a._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||a._afterLoad()},_preloadImages:function(){var t,e,i=a.group,n=a.current,o=i.length,s=n.preload?Math.min(n.preload,o-1):0;for(e=1;e<=s;e+=1)"image"===(t=i[(n.index+e)%o]).type&&t.href&&((new Image).src=t.href)},_afterLoad:function(){var t,e,n,o,s,r,l=a.coming,c=a.current,h="fancybox-placeholder";if(a.hideLoading(),l&&!1!==a.isActive){if(!1===a.trigger("afterLoad",l,c))return l.wrap.stop(!0).trigger("onReset").remove(),void(a.coming=null);switch(c&&(a.trigger("beforeChange",c),c.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),a.unbindEvents(),t=l,e=l.content,n=l.type,o=l.scrolling,i.extend(a,{wrap:t.wrap,skin:t.skin,outer:t.outer,inner:t.inner,current:t,previous:c}),s=t.href,n){case"inline":case"ajax":case"html":t.selector?e=i("<div>").html(e).find(t.selector):u(e)&&(e.data(h)||e.data(h,i('<div class="'+h+'"></div>').insertAfter(e).hide()),e=e.show().detach(),t.wrap.bind("onReset",function(){i(this).find(e).length&&e.hide().replaceAll(e.data(h)).data(h,!1)}));break;case"image":e=t.tpl.image.replace("{href}",s);break;case"swf":e='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+s+'"></param>',r="",i.each(t.swf,function(t,i){e+='<param name="'+t+'" value="'+i+'"></param>',r+=" "+t+'="'+i+'"'}),e+='<embed src="'+s+'" type="application/x-shockwave-flash" width="100%" height="100%"'+r+"></embed></object>"}u(e)&&e.parent().is(t.inner)||t.inner.append(e),a.trigger("beforeShow"),t.inner.css("overflow","yes"===o?"scroll":"no"===o?"hidden":o),a._setDimension(),a.reposition(),a.isOpen=!1,a.coming=null,a.bindEvents(),a.isOpened?c.prevMethod&&a.transitions[c.prevMethod]():i(".fancybox-wrap").not(t.wrap).stop(!0).trigger("onReset").remove(),a.transitions[a.isOpened?t.nextMethod:t.openMethod](),a._preloadImages()}},_setDimension:function(){var t,e,n,o,s,r,l,c,h,u,d,f,v,y,_,b=a.getViewport(),x=0,w=!1,k=!1,C=a.wrap,S=a.skin,P=a.inner,T=a.current,E=T.width,A=T.height,M=T.minWidth,L=T.minHeight,D=T.maxWidth,I=T.maxHeight,N=T.scrolling,R=T.scrollOutside?T.scrollbarWidth:0,O=T.margin,$=m(O[1]+O[3]),F=m(O[0]+O[2]);if(C.add(S).add(P).width("auto").height("auto").removeClass("fancybox-tmp"),n=$
9+(t=m(S.outerWidth(!0)-S.width())),o=F+(e=m(S.outerHeight(!0)-S.height())),s=p(E)?(b.w-n)*m(E)/100:E,r=p(A)?(b.h-o)*m(A)/100:A,"iframe"===T.type){if(y=T.content,T.autoHeight&&1===y.data("ready"))try{y[0].contentWindow.document.location&&(P.width(s).height(9999),_=y.contents().find("body"),R&&_.css("overflow-x","hidden"),r=_.outerHeight(!0))}catch(t){}}else(T.autoWidth||T.autoHeight)&&(P.addClass("fancybox-tmp"),T.autoWidth||P.width(s),T.autoHeight||P.height(r),T.autoWidth&&(s=P.width()),T.autoHeight&&(r=P.height()),P.removeClass("fancybox-tmp"));if(E=m(s),A=m(r),h=s/r,M=m(p(M)?m(M,"w")-n:M),D=m(p(D)?m(D,"w")-n:D),L=m(p(L)?m(L,"h")-o:L),l=D,c=I=m(p(I)?m(I,"h")-o:I),T.fitToView&&(D=Math.min(b.w-n,D),I=Math.min(b.h-o,I)),f=b.w-$,v=b.h-F,T.aspectRatio?(E>D&&(A=m((E=D)/h)),A>I&&(E=m((A=I)*h)),E<M&&(A=m((E=M)/h)),A<L&&(E=m((A=L)*h))):(E=Math.max(M,Math.min(E,D)),T.autoHeight&&"iframe"!==T.type&&(P.width(E),A=P.height()),A=Math.max(L,Math.min(A,I))),T.fitToView)if(P.width(E).height(A),C.width(E+t),u=C.width(),d=C.height(),T.aspectRatio)for(;(u>f||d>v)&&E>M&&A>L&&!(x++>19);)A=Math.max(L,Math.min(I,A-10)),(E=m(A*h))<M&&(A=m((E=M)/h)),E>D&&(A=m((E=D)/h)),P.width(E).height(A),C.width(E+t),u=C.width(),d=C.height();else E=Math.max(M,Math.min(E,E-(u-f))),A=Math.max(L,Math.min(A,A-(d-v)));R&&"auto"===N&&A<r&&E+t+R<f&&(E+=R),P.width(E).height(A),C.width(E+t),u=C.width(),d=C.height(),w=(u>f||d>v)&&E>M&&A>L,k=T.aspectRatio?E<l&&A<c&&E<s&&A<r:(E<l||A<c)&&(E<s||A<r),i.extend(T,{dim:{width:g(u),height:g(d)},origWidth:s,origHeight:r,canShrink:w,canExpand:k,wPadding:t,hPadding:e,wrapSpace:d-S.outerHeight(!0),skinSpace:S.height()-A}),!y&&T.autoHeight&&A>L&&A<I&&!k&&P.height("auto")},_getPosition:function(t){var e=a.current,i=a.getViewport(),n=e.margin,o=a.wrap.width()+n[1]+n[3],s=a.wrap.height()+n[0]+n[2],r={position:"absolute",top:n[0],left:n[3]};return e.autoCenter&&e.fixed&&!t&&s<=i.h&&o<=i.w?r.position="fixed":e.locked||(r.top+=i.y,r.left+=i.x),r.top=g(Math.max(r.top,r.top+(i.h-s)*e.topRatio)),r.left=g(Math.max(r.left,r.left+(i.w-o)*e.leftRatio)),r},_afterZoomIn:function(){var t=a.current;t&&(a.isOpen=a.isOpened=!0,a.wrap.css("overflow","visible").addClass("fancybox-opened"),a.update(),(t.closeClick||t.nextClick&&a.group.length>1)&&a.inner.css("cursor","pointer").bind("click.fb",function(e){i(e.target).is("a")||i(e.target).parent().is("a")||(e.preventDefault(),a[t.closeClick?"close":"next"]())}),t.closeBtn&&i(t.tpl.closeBtn).appendTo(a.skin).bind("click.fb",function(t){t.preventDefault(),a.close()}),t.arrows&&a.group.length>1&&((t.loop||t.index>0)&&i(t.tpl.prev).appendTo(a.outer).bind("click.fb",a.prev),(t.loop||t.index<a.group.length-1)&&i(t.tpl.next).appendTo(a.outer).bind("click.fb",a.next)),a.trigger("afterShow"),t.loop||t.index!==t.group.length-1?a.opts.autoPlay&&!a.player.isActive&&(a.opts.autoPlay=!1,a.play()):a.play(!1))},_afterZoomOut:function(t){t=t||a.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(a,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),a.trigger("afterClose",t)}}),a.transitions={getOrigPosition:function(){var t=a.current,e=t.element,i=t.orig,n={},o=50,s=50,r=t.hPadding,l=t.wPadding,c=a.getViewport();return!i&&t.isDom&&e.is(":visible")&&((i=e.find("img:first")).length||(i=e)),u(i)?(n=i.offset(),i.is("img")&&(o=i.outerWidth(),s=i.outerHeight())):(n.top=c.y+(c.h-s)*t.topRatio,n.left=c.x+(c.w-o)*t.leftRatio),("fixed"===a.wrap.css("position")||t.locked)&&(n.top-=c.y,n.left-=c.x),n={top:g(n.top-r*t.topRatio),left:g(n.left-l*t.leftRatio),width:g(o+l),height:g(s+r)}},step:function(t,e){var i,n,o=e.prop,s=a.current,r=s.wrapSpace,l=s.skinSpace;"width"!==o&&"height"!==o||(i=e.end===e.start?1:(t-e.start)/(e.end-e.start),a.isClosing&&(i=1-i),n=t-("width"===o?s.wPadding:s.hPadding),a.skin[o](m("width"===o?n:n-r*i)),a.inner[o](m("width"===o?n:n-r*i-l*i)))},zoomIn:function(){var t=a.current,e=t.pos,n=t.openEffect,o="elastic"===n,s=i.extend({opacity:1},e);delete s.position,o?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===n&&(e.opacity=.1),a.wrap.css(e).animate(s,{duration:"none"===n?0:t.openSpeed,easing:t.openEasing,step:o?this.step:null,complete:a._afterZoomIn})},zoomOut:function(){var t=a.current,e=t.closeEffect,i="elastic"===e,n={opacity:.1};
9i&&(n=this.getOrigPosition(),t.closeOpacity&&(n.opacity=.1)),a.wrap.animate(n,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:i?this.step:null,complete:a._afterZoomOut})},changeIn:function(){var t,e=a.current,i=e.nextEffect,n=e.pos,o={opacity:1},s=a.direction,r=200;n.opacity=.1,"elastic"===i&&(t="down"===s||"up"===s?"top":"left","down"===s||"right"===s?(n[t]=g(m(n[t])-r),o[t]="+="+r+"px"):(n[t]=g(m(n[t])+r),o[t]="-="+r+"px")),"none"===i?a._afterZoomIn():a.wrap.css(n).animate(o,{duration:e.nextSpeed,easing:e.nextEasing,complete:a._afterZoomIn})},changeOut:function(){var t=a.previous,e=t.prevEffect,n={opacity:.1},o=a.direction,s=200;"elastic"===e&&(n["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"="+s+"px"),t.wrap.animate(n,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},a.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!h,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(t){t=i.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(a.coming?a.coming.parent:t.parent),this.fixed=!1,t.fixed&&a.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=i.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(s.bind("resize.overlay",i.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(i(t.target).hasClass("fancybox-overlay"))return a.isActive?a.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),t=s.scrollTop(),e=s.scrollLeft(),this.el.removeClass("fancybox-lock"),s.scrollTop(t).scrollLeft(e)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var t,i="100%";this.overlay.width(i).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),r.width()>t&&(i=r.width())):r.width()>s.width()&&(i=r.width()),this.overlay.width(i).height(r.height())},onReady:function(t,e){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0),n||this.create(t),t.locked&&this.fixed&&e.fixed&&(n||(this.margin=r.height()>s.height()&&i("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var n,o;e.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=s.scrollTop(),o=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(n).scrollLeft(o)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!a.coming&&this.overlay.fadeOut(t.speedOut,i.proxy(this.close,this))}},a.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,n,o=a.current,s=o.title,r=t.type;if(i.isFunction(s)&&(s=s.call(o.element,o)),d(s)&&""!==i.trim(s)){switch(e=i('<div class="fancybox-title fancybox-title-'+r+'-wrap">'+s+"</div>"),r){case"inside":n=a.skin;break;case"outside":n=a.wrap;break;case"over":n=a.inner;break;default:n=a.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),a.current.margin[2]+=Math.abs(m(e.css("margin-bottom")))}e["top"===t.position?"prependTo":"appendTo"](n)}}},i.fn.fancybox=function(t){var e,n=i(this),o=this.selector||"",s=function(s){var r,l,c=i(this).blur(),h=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||c.is(".fancybox-wrap")||(r=t.groupAttr||"data-fancybox-group",(l=c.attr(r))||(r="rel",l=c.get(0)[r]),l&&""!==l&&"nofollow"!==l&&(h=(c=(c=o.length?i(o):n).filter("["+r+'="'+l+'"]')).index(this)),t.index=h,!1!==a.open(c,t)&&s.preventDefault())};return e=(t=t||{}).index||0,o&&!1!==t.live?r.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):n.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},r.ready(function(){var e,s,r,l;i.scrollbarWidth===n&&(i.scrollbarWidth=function(){var t=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),n=e.innerWidth()-e.height(99).innerWidth();return t.remove(),n}),i.support.fixedPosition===n&&(i.support.fixedPosition=(r=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"),l=20===r[0].offsetTop||15===r[0].offsetTop,r.remove(),l)),i.extend(a.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),e=i(t).width(),o.addClass("fancybox-lock-test"),s=i(t).width(),o.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(s-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),function(t){var e={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,setupCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,animationStepCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},i=!1;
vendor: 11,010 bytes, lines 9-10
9t(window).bind("load.jcarousel",function(){i=!0}),t.jcarousel=function(o,s){this.options=t.extend({},e,s||{}),this.locked=!1,this.autoStopped=!1,this.container=null,this.clip=null,this.list=null,this.buttonNext=null,this.buttonPrev=null,this.buttonNextState=null,this.buttonPrevState=null,s&&void 0!==s.rtl||(this.options.rtl="rtl"==(t(o).attr("dir")||t("html").attr("dir")||"").toLowerCase()),this.wh=this.options.vertical?"height":"width",this.lt=this.options.vertical?"top":this.options.rtl?"right":"left";for(var r="",a=o.className.split(" "),l=0;l<a.length;l++)if(-1!=a[l].indexOf("jcarousel-skin")){t(o).removeClass(a[l]),r=a[l];break}"UL"==o.nodeName.toUpperCase()||"OL"==o.nodeName.toUpperCase()?(this.list=t(o),this.clip=this.list.parents(".jcarousel-clip"),this.container=this.list.parents(".jcarousel-container")):(this.container=t(o),this.list=this.container.find("ul,ol").eq(0),this.clip=this.container.find(".jcarousel-clip")),0===this.clip.size()&&(this.clip=this.list.wrap("<div></div>").parent()),0===this.container.size()&&(this.container=this.clip.wrap("<div></div>").parent()),""!==r&&-1==this.container.parent()[0].className.indexOf("jcarousel-skin")&&this.container.wrap('<div class=" '+r+'"></div>'),this.buttonPrev=t(".jcarousel-prev",this.container),0===this.buttonPrev.size()&&null!==this.options.buttonPrevHTML&&(this.buttonPrev=t(this.options.buttonPrevHTML).appendTo(this.container)),this.buttonPrev.addClass(this.className("jcarousel-prev")),this.buttonNext=t(".jcarousel-next",this.container),0===this.buttonNext.size()&&null!==this.options.buttonNextHTML&&(this.buttonNext=t(this.options.buttonNextHTML).appendTo(this.container)),this.buttonNext.addClass(this.className("jcarousel-next")),this.clip.addClass(this.className("jcarousel-clip")).css({position:"relative"}),this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0),this.container.addClass(this.className("jcarousel-container")).css({position:"relative"}),!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var c=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,h=this.list.children("li"),u=this;if(h.size()>0){var d=0,p=this.options.offset;h.each(function(){u.format(this,p++),d+=u.dimension(this,c)}),this.list.css(this.wh,d+100+"px"),s&&void 0!==s.size||(this.options.size=h.size())}this.container.css("display","block"),this.buttonNext.css("display","block"),this.buttonPrev.css("display","block"),this.funcNext=function(){return u.next(),!1},this.funcPrev=function(){return u.prev(),!1},this.funcResize=function(){u.resizeTimer&&clearTimeout(u.resizeTimer),u.resizeTimer=setTimeout(function(){u.reload()},100)},null!==this.options.initCallback&&this.options.initCallback(this,"init"),!i&&n.isSafari()?(this.buttons(!1,!1),t(window).bind("load.jcarousel",function(){u.setup()})):this.setup()};var n=t.jcarousel;n.fn=n.prototype={jcarousel:"0.2.9"},n.fn.extend=n.extend=t.extend,n.fn.extend({setup:function(){if(this.first=null,this.last=null,this.prevFirst=null,this.prevLast=null,this.animating=!1,this.timer=null,this.resizeTimer=null,this.tail=null,this.inTail=!1,!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var e=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null,this.animate(e,!1),t(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize),null!==this.options.setupCallback&&this.options.setupCallback(this)}},reset:function(){this.list.empty(),this.list.css(this.lt,"0px"),this.list.css(this.wh,"10px"),null!==this.options.initCallback&&this.options.initCallback(this,"reset"),this.setup()},reload:function(){if(null!==this.tail&&this.inTail&&this.list.css(this.lt,n.intval(this.list.css(this.lt))+this.tail),this.tail=null,this.inTail=!1,null!==this.options.reloadCallback&&this.options.reloadCallback(this),null!==this.options.visible){var t=this,e=Math.ceil(this.clipping()/this.options.visible),i=0,o=0;this.list.children("li").each(function(n){i+=t.dimension(this,e),n+1<t.first&&(o=i)}),this.list.css(this.wh,i+"px"),this.list.css(this.lt,-o+"px")}this.scroll(this.first,!1)},lock:function(){this.locked=!0,this.buttons()},unlock:function(){this.locked=!1,this.buttons()},size:function(t){return void 0!==t&&(this.options.size=t,this.locked||this.buttons()),this.options.size},has:function(t,e){void 0!==e&&e||(e=t),null!==this.options.size&&e>this.options.size&&(e=this.options.size);for(var i=t;i<=e;i++){var n=this.get(i);if(!n.length||n.hasClass("jcarousel-item-placeholder"))return!1}return!0},get:function(e){return t(">.jcarousel-item-"+e,this.list)},add:function(e,i){var o=this.get(e),s=0,r=t(i);if(0===o.length){var a,l=n.intval(e);for(o=this.create(e);;)if(a=this.get(--l),l<=0||a.length){l<=0?this.list.prepend(o):a.after(o);break}}else s=this.dimension(o);"LI"==r.get(0).nodeName.toUpperCase()?(o.replaceWith(r),o=r):o.empty().append(i),this.format(o.removeClass(this.className("jcarousel-item-placeholder")),e)
10;var c=null!==this.options.visible?Math.ceil(this.clipping()/this.options.visible):null,h=this.dimension(o,c)-s;return e>0&&e<this.first&&this.list.css(this.lt,n.intval(this.list.css(this.lt))-h+"px"),this.list.css(this.wh,n.intval(this.list.css(this.wh))+h+"px"),o},remove:function(t){var e=this.get(t);if(e.length&&!(t>=this.first&&t<=this.last)){var i=this.dimension(e);t<this.first&&this.list.css(this.lt,n.intval(this.list.css(this.lt))+i+"px"),e.remove(),this.list.css(this.wh,n.intval(this.list.css(this.wh))-i+"px")}},next:function(){null===this.tail||this.inTail?this.scroll("both"!=this.options.wrap&&"last"!=this.options.wrap||null===this.options.size||this.last!=this.options.size?this.first+this.options.scroll:1):this.scrollTail(!1)},prev:function(){null!==this.tail&&this.inTail?this.scrollTail(!0):this.scroll("both"!=this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||1!=this.first?this.first-this.options.scroll:this.options.size)},scrollTail:function(t){if(!this.locked&&!this.animating&&this.tail){this.pauseAuto();var e=n.intval(this.list.css(this.lt));e=t?e+this.tail:e-this.tail,this.inTail=!t,this.prevFirst=this.first,this.prevLast=this.last,this.animate(e)}},scroll:function(t,e){this.locked||this.animating||(this.pauseAuto(),this.animate(this.pos(t),e))},pos:function(t,e){var i=n.intval(this.list.css(this.lt));if(this.locked||this.animating)return i;"circular"!=this.options.wrap&&(t=t<1?1:this.options.size&&t>this.options.size?this.options.size:t);for(var o,s=this.first>t,r="circular"!=this.options.wrap&&this.first<=1?1:this.first,a=s?this.get(r):this.get(this.last),l=s?r:r-1,c=null,h=0,u=!1,d=0;s?--l>=t:++l<t;)u=!(c=this.get(l)).length,0===c.length&&(c=this.create(l).addClass(this.className("jcarousel-item-placeholder")),a[s?"before":"after"](c),null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(l<=0||l>this.options.size)&&(o=this.get(this.index(l))).length&&(c=this.add(l,o.clone(!0)))),a=c,d=this.dimension(c),u&&(h+=d),null!==this.first&&("circular"==this.options.wrap||l>=1&&(null===this.options.size||l<=this.options.size))&&(i=s?i+d:i-d);var p=this.clipping(),f=[],m=0,g=0;for(a=this.get(t-1),l=t;++m;){if(u=!(c=this.get(l)).length,0===c.length&&(c=this.create(l).addClass(this.className("jcarousel-item-placeholder")),0===a.length?this.list.prepend(c):a[s?"before":"after"](c),null!==this.first&&"circular"==this.options.wrap&&null!==this.options.size&&(l<=0||l>this.options.size)&&(o=this.get(this.index(l))).length&&(c=this.add(l,o.clone(!0)))),a=c,0===(d=this.dimension(c)))throw new Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if("circular"!=this.options.wrap&&null!==this.options.size&&l>this.options.size?f.push(c):u&&(h+=d),(g+=d)>=p)break;l++}for(var v=0;v<f.length;v++)f[v].remove();h>0&&(this.list.css(this.wh,this.dimension(this.list)+h+"px"),s&&(i-=h,this.list.css(this.lt,n.intval(this.list.css(this.lt))-h+"px")));var y=t+m-1;if("circular"!=this.options.wrap&&this.options.size&&y>this.options.size&&(y=this.options.size),l>y)for(m=0,l=y,g=0;++m&&(c=this.get(l--)).length&&!((g+=this.dimension(c))>=p););var _=y-m+1;if("circular"!=this.options.wrap&&_<1&&(_=1),this.inTail&&s&&(i+=this.tail,this.inTail=!1),this.tail=null,"circular"!=this.options.wrap&&y==this.options.size&&y-m+1>=1){var b=n.intval(this.get(y).css(this.options.vertical?"marginBottom":"marginRight"));g-b>p&&(this.tail=g-p-b)}for(e&&t===this.options.size&&this.tail&&(i-=this.tail,this.inTail=!0);t-- >_;)i+=this.dimension(this.get(t));return this.prevFirst=this.first,this.prevLast=this.last,this.first=_,this.last=y,i},animate:function(e,i){if(!this.locked&&!this.animating){this.animating=!0;var n=this,o=function(){if(n.animating=!1,0===e&&n.list.css(n.lt,0),!n.autoStopped&&("circular"==n.options.wrap||"both"==n.options.wrap||"last"==n.options.wrap||null===n.options.size||n.last<n.options.size||n.last==n.options.size&&null!==n.tail&&!n.inTail)&&n.startAuto(),n.buttons(),n.notify("onAfterAnimation"),"circular"==n.options.wrap&&null!==n.options.size)for(var t=n.prevFirst;t<=n.prevLast;t++)null===t||t>=n.first&&t<=n.last||!(t<1||t>n.options.size)||n.remove(t)};if(this.notify("onBeforeAnimation"),this.options.animation&&!1!==i){var s=this.options.vertical?{top:e}:this.options.rtl?{right:e}:{left:e},r={duration:this.options.animation,easing:this.options.easing,complete:o};t.isFunction(this.options.animationStepCallback)&&(r.step=this.options.animationStepCallback),this.list.animate(s,r)}else this.list.css(this.lt,e+"px"),o()}},startAuto:function(t){if(void 0!==t&&(this.options.auto=t),0===this.options.auto)return this.stopAuto();if(null===this.timer){this.autoStopped=!1;var e=this;this.timer=window.setTimeout(function(){e.next()},1e3*this.options.auto)}},stopAuto:function(){this.pauseAuto(),this.autoStopped=!0},pauseAuto:function(){null!==this.timer&&(window.clearTimeout(this.timer),this.timer=null)},buttons:function(t,e){null==t&&(t=!this.locked&&0!==this.options.size&&(this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||this.last<this.options.size),this.locked||this.options.wrap&&"first"!=this.options.wrap||null===this.options.size||!(this.last>=this.options.size)||(t=null!==this.tail&&!this.inTail)),null==e&&(e=!this.locked&&0!==this.options.size&&(this.options.wrap&&"last"!=this.options.wrap||this.first>1),this.locked||this.options.wrap&&"last"!=this.options.wrap||null===this.options.size||1!=this.first||(e=null!==this.tail&&this.inTail));var i=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),t&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext),this.buttonNext[t?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",!t),null!==this.options.buttonNextCallback&&this.buttonNext.data("jcarou
10selstate")!=t&&this.buttonNext.each(function(){i.options.buttonNextCallback(i,this,t)}).data("jcarouselstate",t)):null!==this.options.buttonNextCallback&&this.buttonNextState!=t&&this.options.buttonNextCallback(i,null,t),this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),e&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[e?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",!e),null!==this.options.buttonPrevCallback&&this.buttonPrev.data("jcarouselstate")!=e&&this.buttonPrev.each(function(){i.options.buttonPrevCallback(i,this,e)}).data("jcarouselstate",e)):null!==this.options.buttonPrevCallback&&this.buttonPrevState!=e&&this.options.buttonPrevCallback(i,null,e),this.buttonNextState=t,this.buttonPrevState=e},notify:function(t){var e=null===this.prevFirst?"init":this.prevFirst<this.first?"next":"prev";this.callback("itemLoadCallback",t,e),this.prevFirst!==this.first&&(this.callback("itemFirstInCallback",t,e,this.first),this.callback("itemFirstOutCallback",t,e,this.prevFirst)),this.prevLast!==this.last&&(this.callback("itemLastInCallback",t,e,this.last),this.callback("itemLastOutCallback",t,e,this.prevLast)),this.callback("itemVisibleInCallback",t,e,this.first,this.last,this.prevFirst,this.prevLast),this.callback("itemVisibleOutCallback",t,e,this.prevFirst,this.prevLast,this.first,this.last)},callback:function(e,i,n,o,s,r,a){if(null!=this.options[e]&&("object"==typeof this.options[e]||"onAfterAnimation"==i)){var l="object"==typeof this.options[e]?this.options[e][i]:this.options[e];if(t.isFunction(l)){var c=this;if(void 0===o)l(c,n,i);else if(void 0===s)this.get(o).each(function(){l(c,this,o,n,i)});else for(var h=function(t){c.get(t).each(function(){l(c,this,t,n,i)})},u=o;u<=s;u++)null===u||u>=r&&u<=a||h(u)}}},create:function(t){return this.format("<li></li>",t)},format:function(e,i){for(var n=(e=t(e)).get(0).className.split(" "),o=0;o<n.length;o++)-1!=n[o].indexOf("jcarousel-")&&e.removeClass(n[o]);return e.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+i)).css({float:this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",i),e},className:function(t){return t+" "+t+(this.options.vertical?"-vertical":"-horizontal")},dimension:function(e,i){var o=t(e);if(null==i)return this.options.vertical?o.innerHeight()+n.intval(o.css("margin-top"))+n.intval(o.css("margin-bottom"))+n.intval(o.css("border-top-width"))+n.intval(o.css("border-bottom-width"))||n.intval(this.options.itemFallbackDimension):o.innerWidth()+n.intval(o.css("margin-left"))+n.intval(o.css("margin-right"))+n.intval(o.css("border-left-width"))+n.intval(o.css("border-right-width"))||n.intval(this.options.itemFallbackDimension);var s=this.options.vertical?i-n.intval(o.css("marginTop"))-n.intval(o.css("marginBottom")):i-n.intval(o.css("marginLeft"))-n.intval(o.css("marginRight"));return t(o).css(this.wh,s+"px"),this.dimension(o)},clipping:function(){return this.options.vertical?this.clip[0].offsetHeight-n.intval(this.clip.css("borderTopWidth"))-n.intval(this.clip.css("borderBottomWidth")):this.clip[0].offsetWidth-n.intval(this.clip.css("borderLeftWidth"))-n.intval(this.clip.css("borderRightWidth"))},index:function(t,e){return null==e&&(e=this.options.size),Math.round(((t-1)/e-Math.floor((t-1)/e))*e)+1}}),n.extend({defaults:function(i){return t.extend(e,i||{})},intval:function(t){return t=parseInt(t,10),isNaN(t)?0:t},windowLoaded:function(){i=!0},isSafari:function(){var t=navigator.userAgent.toLowerCase();return"webkit"===((/(chrome)[ \/]([\w.]+)/.exec(t)||/(webkit)[ \/]([\w.]+)/.exec(t)||[])[1]||"")}}),t.fn.jcarousel=function(e){if("string"==typeof e){var i=t(this).data("jcarousel"),o=Array.prototype.slice.call(arguments,1);return i[e].apply(i,o)}return this.each(function(){var i=t(this).data("jcarousel");i?(e&&t.extend(i.options,e),i.reload()):t(this).data("jcarousel",new n(this,e))})}}(jQuery),function(t){function e(){return"placeholder"in document.createElement("input")}t.fn.placeholder=function(){return e()?this:this.each(function(){var e=t(this),i=e.attr("placeholder");i&&(e.data("placeholder",i),e.val(i),e.focus(function(){e.val()==e.data("placeholder")&&e.val("")}
10).blur(function(){e.val()||e.val(e.data("placeholder"))}))})}}(jQuery),function(t){jQuery.fn.observe_field=function(e,i){return e*=1e3,this.each(function(){var n=t(this),o=n.val(),s=function(){if(r())l&&clearInterval(l);else{var t=n.val();o!=t&&(o=t,n.map(i))}},r=function(){return 0==n.closest("html").length},a=function(){l&&(clearInterval(l),l=setInterval(s,e))};s();var l=setInterval(s,e);n.bind("keyup click mousemove",a)})}}(jQuery),function($){$.extend({tablesorter:new function(){function benchmark(t,e){log(t+","+((new Date).getTime()-e.getTime())+"ms")}function log(t){"undefined"!=typeof console&&void 0!==console.debug?console.log(t):alert(t)}function buildParserCache(t,e){if(t.config.debug)var i="";if(0!=t.tBodies.length){var n=t.tBodies[0].rows;if(n[0])for(var o=[],s=n[0].cells.length,r=0;r<s;r++){var a=!1;$.metadata&&$(e[r]).metadata()&&$(e[r]).metadata().sorter?a=getParserById($(e[r]).metadata().sorter):t.config.headers[r]&&t.config.headers[r].sorter&&(a=getParserById(t.config.headers[r].sorter)),a||(a=detectParserForColumn(t,n,-1,r)),t.config.debug&&(i+="column:"+r+" parser:"+a.id+"\n"),o.push(a)}return t.config.debug&&log(i),o}}function detectParserForColumn(t,e,i,n){for(var o=parsers.length,s=!1,r=!1,a=!0;""==r&&a;)e[++i]?(s=getNodeFromRowAndCellIndex(e,i,n),r=trimAndGetNodeText(t.config,s),t.config.debug&&log("Checking if value was empty on row:"+i)):a=!1;for(var l=1;l<o;l++)if(parsers[l].is(r,t,s))return parsers[l];return parsers[0]}function getNodeFromRowAndCellIndex(t,e,i){return t[e].cells[i]}function trimAndGetNodeText(t,e){return $.trim(getElementText(t,e))}function getParserById(t){for(var e=parsers.length,i=0;i<e;i++)if(parsers[i].id.toLowerCase()==t.toLowerCase())return parsers[i];return!1}function buildCache(t){if(t.config.debug)var e=new Date;for(var i=t.tBodies[0]&&t.tBodies[0].rows.length||0,n=t.tBodies[0].rows[0]&&t.tBodies[0].rows[0].cells.length||0,o=t.config.parsers,s={row:[],normalized:[]},r=0;r<i;++r){var a=$(t.tBodies[0].rows[r]),l=[];if(a.hasClass(t.config.cssChildRow))s.row[s.row.length-1]=s.row[s.row.length-1].add(a);else{s.row.push(a);for(var c=0;c<n;++c)l.push(o[c].format(getElementText(t.config,a[0].cells[c]),t,a[0].cells[c]));l.push(s.normalized.length),s.normalized.push(l),l=null}}return t.config.debug&&benchmark("Building cache for "+i+" rows:",e),s}function getElementText(t,e){return e?(t.supportsTextContent||(t.supportsTextContent=e.textContent||!1),"simple"==t.textExtraction?t.supportsTextContent?e.textContent:e.childNodes[0]&&e.childNodes[0].hasChildNodes()?e.childNodes[0].innerHTML:e.innerHTML:"function"==typeof t.textExtraction?t.textExtraction(e):$(e).text()):""}function appendToTable(t,e){if(t.config.debug)var i=new Date;for(var n=e,o=n.row,s=n.normalized,r=s.length,a=s[0].length-1,l=$(t.tBodies[0]),c=[],h=0;h<r;h++){var u=s[h][a];if(c.push(o[u]),!t.config.appender)for(var d=o[u].length,p=0;p<d;p++)l[0].appendChild(o[u][p])}t.config.appender&&t.config.appender(t,c),c=null,t.config.debug&&benchmark("Rebuilt table:",i),applyWidget(t),setTimeout(function(){$(t).trigger("sortEnd")},0)}function buildHeaders(t){if(t.config.debug)var e=new Date;$.metadata;var i=computeTableHeaderCellIndexes(t);return $tableHeaders=$(t.config.selectorHeaders,t).each(function(e){if(this.column=i[this.parentNode.rowIndex+"-"+this.cellIndex],this.order=formatSortingOrder(t.config.sortInitialOrder),this.count=this.order,(checkHeaderMetadata(this)||checkHeaderOptions(t,e))&&(this.sortDisabled=!0),checkHeaderOptionsSortingLocked(t,e)&&(this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(t,e)),!this.sortDisabled){var n=$(this).addClass(t.config.cssHeader);t.config.onRenderHeader&&t.config.onRenderHeader.apply(n)}t.config.headerList[e]=this}),t.config.debug&&(benchmark("Built headers:",e),log($tableHeaders)),$tableHeaders}function computeTableHeaderCellIndexes(t){for(var e=[],i={},n=t.getElementsByTagName("THEAD")[0].getElementsByTagName("TR"),o=0;o<n.length;o++)for(var s=n[o].cells,r=0;r<s.length;r++){var a,l=s[r],c=l.parentNode.rowIndex,h=c+"-"+l.cellIndex,u=l.rowSpan||1,d=l.colSpan||1;void 0===e[c]&&(e[c]=[]);for(var p=0;p<e[c].length+1;p++)if(void 0===e[c][p]){a=p;break}i[h]=a;for(p=c;p<c+u;p++){void 0===e[p]&&(e[p]=[]);for(var f=e[p],m=a;m<a+d;m++)f[m]="x"}}return i}
10function checkCellColSpan(t,e,i){for(var n=[],o=t.tHead.rows,s=o[i].cells,r=0;r<s.length;r++){var a=s[r];a.colSpan>1?n=n.concat(checkCellColSpan(t,headerArr,i++)):(1==t.tHead.length||a.rowSpan>1||!o[i+1])&&n.push(a)}return n}function checkHeaderMetadata(t){return!(!$.metadata||!1!==$(t).metadata().sorter)}function checkHeaderOptions(t,e){return!(!t.config.headers[e]||!1!==t.config.headers[e].sorter)}function checkHeaderOptionsSortingLocked(t,e){return!(!t.config.headers[e]||!t.config.headers[e].lockedOrder)&&t.config.headers[e].lockedOrder}function applyWidget(t){for(var e=t.config.widgets,i=e.length,n=0;n<i;n++)getWidgetById(e[n]).format(t)}function getWidgetById(t){for(var e=widgets.length,i=0;i<e;i++)if(widgets[i].id.toLowerCase()==t.toLowerCase())return widgets[i]}function formatSortingOrder(t){return"Number"!=typeof t?"desc"==t.toLowerCase()?1:0:1==t?1:0}function isValueInArray(t,e){for(var i=e.length,n=0;n<i;n++)if(e[n][0]==t)return!0;return!1}function setHeadersCss(t,e,i,n){e.removeClass(n[0]).removeClass(n[1]);var o=[];e.each(function(){this.sortDisabled||(o[this.column]=$(this))});for(var s=i.length,r=0;r<s;r++)o[i[r][0]].addClass(n[i[r][1]])}function fixColumnWidth(t){if(t.config.widthFixed){var e=$("<colgroup>");$("tr:first td",t.tBodies[0]).each(function(){e.append($("<col>").css("width",$(this).width()))}),$(t).prepend(e)}}function updateHeaderSortCount(t,e){for(var i=t.config,n=e.length,o=0;o<n;o++){var s=e[o],r=i.headerList[s[0]];r.count=s[1],r.count++}}function multisort(table,sortList,cache){if(table.config.debug)var sortTime=new Date;for(var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length,i=0;i<l;i++){var c=sortList[i][0],order=sortList[i][1],s="text"==table.config.parsers[c].type?makeSortFunction("text",0==order?"asc":"desc",c):makeSortFunction("numeric",0==order?"asc":"desc",c),e="e"+i;dynamicExp+="var "+e+" = "+s,dynamicExp+="if("+e+") { return "+e+"; } ",dynamicExp+="else { "}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++)dynamicExp+="}; ";return dynamicExp+="return 0; ",dynamicExp+="}; ",table.config.debug&&benchmark("Evaling expression:"+dynamicExp,new Date),eval(dynamicExp),cache.normalized.sort(sortWrapper),table.config.debug&&benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime),cache}function makeSortFunction(t,e,i){var n="a["+i+"]",o="b["+i+"]";return"text"==t&&"asc"==e?"("+n+" == "+o+" ? 0 : ("+n+" === null ? Number.POSITIVE_INFINITY : ("+o+" === null ? Number.NEGATIVE_INFINITY : ("+n+" < "+o+") ? -1 : 1 )));":"text"==t&&"desc"==e?"("+n+" == "+o+" ? 0 : ("+n+" === null ? Number.POSITIVE_INFINITY : ("+o+" === null ? Number.NEGATIVE_INFINITY : ("+o+" < "+n+") ? -1 : 1 )));":"numeric"==t&&"asc"==e?"("+n+" === null && "+o+" === null) ? 0 :("+n+" === null ? Number.POSITIVE_INFINITY : ("+o+" === null ? Number.NEGATIVE_INFINITY : "+n+" - "+o+"));":"numeric"==t&&"desc"==e?"("+n+" === null && "+o+" === null) ? 0 :("+n+" === null ? Number.POSITIVE_INFINITY : ("+o+" === null ? Number.NEGATIVE_INFINITY : "+o+" - "+n+"));":void 0}function makeSortText(t){return"((a["+t+"] < b["+t+"]) ? -1 : ((a["+t+"] > b["+t+"]) ? 1 : 0));"}function makeSortTextDesc(t){return"((b["+t+"] < a["+t+"]) ? -1 : ((b["+t+"] > a["+t+"]) ? 1 : 0));"}function makeSortNumeric(t){return"a["+t+"]-b["+t+"];"}function makeSortNumericDesc(t){return"b["+t+"]-a["+t+"];"}function sortText(t,e){return table.config.sortLocaleCompare?t.localeCompare(e):t<e?-1:t>e?1:0}function sortTextDesc(t,e){return table.config.sortLocaleCompare?e.localeCompare(t):e<t?-1:e>t?1:0}function sortNumeric(t,e){return t-e}function sortNumericDesc(t,e){return e-t}function getCachedSortType(t,e){return t[e].type}var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:!0,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:!1,cancelSelection:!0,sortList:[],headerList:[],dateFormat:"us",decimal:"/.|,/g",onRenderHeader:null,selectorHeaders:"thead th",debug:!1},this.benchmark=benchmark,this.construct=function(t){return this.each(function(){if(this.tHead&&this.tBodies){var e,i,n,o;this.config={},o=$.extend(this.config,$.tablesorter.defaults,t),e=$(this),$.data(this,"tablesorter",o),i=buildHeaders(this),this.config.parsers=buildParserCache(this,i),n=buildCache(this);var s=[o.cssDesc,o.cssAsc];fixColumnWidth(this),i.click(function(t){var r=e[0].tBodies[0]&&e[0].tBodies[0].rows.length||0;if(!this.sortDisabled&&r>0){e.trigger("sortStart");$(this);var a=this.column;if(this.order=this.count++%2,this.lockedOrder&&(this.order=this.lockedOrder),t[o.sortMultiSortKey])if(isValueInArray(a,o.sortList))for(u=0;
10u<o.sortList.length;u++){var l=o.sortList[u],c=o.headerList[l[0]];l[0]==a&&(c.count=l[1],c.count++,l[1]=c.count%2)}else o.sortList.push([a,this.order]);else{if(o.sortList=[],null!=o.sortForce)for(var h=o.sortForce,u=0;u<h.length;u++)h[u][0]!=a&&o.sortList.push(h[u]);o.sortList.push([a,this.order])}return setTimeout(function(){setHeadersCss(e[0],i,o.sortList,s),appendToTable(e[0],multisort(e[0],o.sortList,n))},1),!1}}).mousedown(function(){if(o.cancelSelection)return this.onselectstart=function(){return!1},!1}),e.bind("update",function(){var t=this;setTimeout(function(){t.config.parsers=buildParserCache(t,i),n=buildCache(t)},1)}).bind("updateCell",function(t,e){var i=this.config,o=[e.parentNode.rowIndex-1,e.cellIndex];n.normalized[o[0]][o[1]]=i.parsers[o[1]].format(getElementText(i,e),e)}).bind("sorton",function(t,e){$(this).trigger("sortStart"),o.sortList=e;var r=o.sortList;updateHeaderSortCount(this,r),setHeadersCss(this,i,r,s),appendToTable(this,multisort(this,r,n))}).bind("appendCache",function(){appendToTable(this,n)}).bind("applyWidgetId",function(t,e){getWidgetById(e).format(this)}).bind("applyWidgets",function(){applyWidget(this)}),$.metadata&&$(this).metadata()&&$(this).metadata().sortlist&&(o.sortList=$(this).metadata().sortlist),o.sortList.length>0&&e.trigger("sorton",[o.sortList]),applyWidget(this)}})},this.addParser=function(t){for(var e=parsers.length,i=!0,n=0;n<e;n++)parsers[n].id.toLowerCase()==t.id.toLowerCase()&&(i=!1);i&&parsers.push(t)},this.addWidget=function(t){widgets.push(t)},this.formatFloat=function(t){var e=parseFloat(t);return isNaN(e)?0:e},this.formatInt=function(t){var e=parseInt(t);return isNaN(e)?0:e},this.isDigit=function(t){return/^[-+]?\d*$/.test($.trim(t.replace(/[,.']/g,"")))},this.clearTableBody=function(t){if($.browser.msie){function e(){for(;this.firstChild;)this.removeChild(this.firstChild)}e.apply(t.tBodies[0])}else t.tBodies[0].innerHTML=""}}}),$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(){return!0},format:function(t){return $.trim(t.toLocaleLowerCase())},type:"text"}),ts.addParser({id:"digit",is:function(t,e){var i=e.config;return $.tablesorter.isDigit(t,i)},format:function(t){return $.tablesorter.formatFloat(t)},type:"numeric"}),ts.addParser({id:"currency",is:function(t){return/^[\xc2\xa3$\xe2\u201a\xac?.]/.test(t)},format:function(t){return $.tablesorter.formatFloat(t.replace(new RegExp(/[\xc2\xa3$\xe2\u201a\xac]/g),""))},type:"numeric"}),ts.addParser({id:"ipAddress",is:function(t){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(t)},format:function(t){for(var e=t.split("."),i="",n=e.length,o=0;o<n;o++){var s=e[o];2==s.length?i+="0"+s:i+=s}return $.tablesorter.formatFloat(i)},type:"numeric"}),ts.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\/$/.test(t)},format:function(t){return jQuery.trim(t.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"}),ts.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(t)},format:function(t){return $.tablesorter.formatFloat(""!=t?new Date(t.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"}),ts.addParser({id:"percent",is:function(t){return/\%$/.test($.trim(t))},format:function(t){return $.tablesorter.formatFloat(t.replace(new RegExp(/%/g),""))},type:"numeric"}),ts.addParser({id:"usLongDate",is:function(t){return t.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(t){return $.tablesorter.formatFloat(new Date(t).getTime())},type:"numeric"}),ts.addParser({id:"shortDate",is:function(t){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(t)},format:function(t,e){var i=e.config;return t=t.replace(/\-/g,"/"),"us"==i.dateFormat?t=t.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2"):"uk"==i.dateFormat?t=t.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1"):"dd/mm/yy"!=i.dateFormat&&"dd-mm-yy"!=i.dateFormat||(t=t.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")),$.tablesorter.formatFloat(new Date(t).getTime())},type:"numeric"}),ts.addParser({id:"time",is:function(t){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(t)},format:function(t){return $.tablesorter.formatFloat(new Date("2000/01/01 "+t).getTime())},type:"numeric"}),ts.addParser({id:"metadata",is:function(){return!1}
10,format:function(t,e,i){var n=e.config,o=n.parserMetadataName?n.parserMetadataName:"sortValue";return $(i).metadata()[o]},type:"numeric"}),ts.addWidget({id:"zebra",format:function(t){if(t.config.debug)var e=new Date;var i,n,o=-1;$("tr:visible",t.tBodies[0]).each(function(){(i=$(this)).hasClass(t.config.cssChildRow)||o++,n=o%2==0,i.removeClass(t.config.widgetZebra.css[n?0:1]).addClass(t.config.widgetZebra.css[n?1:0])}),t.config.debug&&$.tablesorter.benchmark("Applying Zebra widget",e)}})}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(t){return a.raw?t:encodeURIComponent(t)}function i(t){return a.raw?t:decodeURIComponent(t)}function n(t){return e(a.json?JSON.stringify(t):String(t))}function o(t){0===t.indexOf('"')&&(t=t.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{t=decodeURIComponent(t.replace(r," "))}catch(t){return}try{return a.json?JSON.parse(t):t}catch(t){}}function s(e,i){var n=a.raw?e:o(e);return t.isFunction(i)?i(n):n}var r=/\+/g,a=t.cookie=function(o,r,l){if(void 0!==r&&!t.isFunction(r)){if("number"==typeof(l=t.extend({},a.defaults,l)).expires){var c=l.expires,h=l.expires=new Date;h.setDate(h.getDate()+c)}return document.cookie=[e(o),"=",n(r),l.expires?"; expires="+l.expires.toUTCString():"",l.path?"; path="+l.path:"",l.domain?"; domain="+l.domain:"",l.secure?"; secure":""].join("")}for(var u=o?void 0:{},d=document.cookie?document.cookie.split("; "):[],p=0,f=d.length;p<f;p++){var m=d[p].split("="),g=i(m.shift()),v=m.join("=");if(o&&o===g){u=s(v,r);break}o||void 0===(v=s(v))||(u[g]=v)}return u};a.defaults={},t.removeCookie=function(e,i){return void 0!==t.cookie(e)&&(t.cookie(e,"",t.extend({},i,{expires:-1})),!0)}}),function(t,e,i){"use strict";var n={version:"2.1",tipLocation:"bottom",nubPosition:"auto",scroll:!0,scrollSpeed:300,timer:0,autoStart:!1,startTimerOnClick:!0,startOffset:0,nextButton:!0,tipAnimation:"fade",pauseAfter:[],tipAnimationFadeSpeed:300,cookieMonster:!1,cookieName:"joyride",cookieDomain:!1,cookiePath:!1,localStorage:!1,localStorageKey:"joyride",tipContainer:"body",modal:!1,expose:!1,postExposeCallback:t.noop,preRideCallback:t.noop,postRideCallback:t.noop,preStepCallback:t.noop,postStepCallback:t.noop,template:{link:'<a href="#close" class="joyride-close-tip">X</a>',timer:'<div class="joyride-timer-indicator-wrap"><span class="joyride-timer-indicator"></span></div>',tip:'<div class="joyride-tip-guide"><span class="joyride-nub"></span></div>',wrapper:'<div class="joyride-content-wrapper" role="dialog"></div>',button:'<a href="#" class="joyride-next-tip"></a>',modal:'<div class="joyride-modal-bg"></div>',expose:'<div class="joyride-expose-wrapper"></div>',exposeCover:'<div class="joyride-expose-cover"></div>'}},o=o||!1,s={},r={init:function(i){return this.each(function(){t.isEmptyObject(s)?((s=t.extend(!0,n,i)).document=e.document,s.$document=t(s.document),s.$window=t(e),s.$content_el=t(this),s.$body=t(s.tipContainer),s.body_offset=t(s.tipContainer).position(),s.$tip_content=t("> li",s.$content_el),s.paused=!1,s.attempts=0,s.tipLocationPatterns={top:["bottom"],bottom:[],left:["right","top","bottom"],right:["left","top","bottom"]},r.jquery_check(),t.isFunction(t.cookie)||(s.cookieMonster=!1),s.cookieMonster&&t.cookie(s.cookieName)||s.localStorage&&r.support_localstorage()&&localStorage.getItem(s.localStorageKey)||(s.$tip_content.each(function(e){r.create({$li:t(this),index:e})}),s.autoStart&&(!s.startTimerOnClick&&s.timer>0?(r.show("init"),r.startTimer()):r.show("init"))),s.$document.on("click.joyride",".joyride-next-tip, .joyride-modal-bg",function(t){t.preventDefault(),s.$li.next().length<1?r.end():s.timer>0?(clearTimeout(s.automate),r.hide(),r.show(),r.startTimer()):(r.hide(),r.show())}),s.$document.on("click.joyride",".joyride-close-tip",function(t){t.preventDefault(),r.end(!0)}),s.$window.bind("resize.joyride",function(){if(s.$li){if(s.exposed&&s.exposed.length>0)t(s.exposed).each(function(){var e=t(this);r.un_expose(e),r.expose(e)});r.is_phone()?r.pos_phone():r.pos_default()}})):r.restart()})},resume:function(){r.set_li(),r.show()},nextTip:function(){s.$li.next().length<1?r.end():s.timer>0?(clearTimeout(s.automate),r.hide(),r.show(),r.startTimer()):(r.hide(),r.show())},tip_template:function(e){var i,n,o;return e.tip_class=e.tip_class||"",i=t(s.template.tip).addClass(e.tip_class),n=t.trim(t(e.li).html())+r.button_text(e.button_text)+s.template.link+r.timer_instance(e.index),o=t(s.template.wrapper),e.li.attr("data-aria-labelledby")&&o.attr("aria-labelledby",e.li.attr("data-aria-labelledby")),e.li.attr("data-aria-describedby")&&o.attr("aria-describedby",e.li.attr("data-aria-describedby")),i.append(o),i.first().attr("data-index",e.index),t(".joyride-content-wrapper",i).append(n),i[0]},timer_instance:function(e){return 0===e&&s.startTimerOnClick&&s.timer>0||0===s.timer?"":r.outerHTML(t(s.template.timer)[0])},button_text:function(e){return s.nextButton?(e=t.trim(e)||"Next",e=r.outerHTML(t(s.template.button).append(e)[0])):e="",e},create:function(e){var i=e.$li.attr("data-button")||e.$li.attr("data-text"),n=e.$li.attr("class"),o=t(r.tip_template({tip_class:n,index:e.index,button_text:i,li:e.$li}));t(s.tipContainer).append(o)},show:function(e){var n,o,a={},l=[],c=null;if(s.$li===i||-1===t.inArray(s.$li.index(),s.pauseAfter))if(s.paused?s.paused=!1:r.set_li(e),s.attempts=0,s.$li.length&&s.$target.length>0){for(e&&(s.preRideCallback(s.$li.index(),s.$next_tip),s.modal&&r.show_modal()),s.preStepCallback(s.$li.index(),s.$next_tip),n=(l=(s.$li.data("options")||":").split(";")).length-1;n>=0;n--)2===(o=l[n].split(":")).length&&(a[t.trim(o[0])]=t.trim(o[1]));
10s.tipSettings=t.extend({},s,a),s.tipSettings.tipLocationPattern=s.tipLocationPatterns[s.tipSettings.tipLocation],s.modal&&s.expose&&r.expose(),!/body/i.test(s.$target.selector)&&s.scroll&&r.scroll_to(),r.is_phone()?r.pos_phone(!0):r.pos_default(!0),c=t(".joyride-timer-indicator",s.$next_tip),/pop/i.test(s.tipAnimation)?(c.outerWidth(0),s.timer>0?(s.$next_tip.show(),c.animate({width:t(".joyride-timer-indicator-wrap",s.$next_tip).outerWidth()},s.timer)):s.$next_tip.show()):/fade/i.test(s.tipAnimation)&&(c.outerWidth(0),s.timer>0?(s.$next_tip.fadeIn(s.tipAnimationFadeSpeed),s.$next_tip.show(),c.animate({width:t(".joyride-timer-indicator-wrap",s.$next_tip).outerWidth()},s.timer)):s.$next_tip.fadeIn(s.tipAnimationFadeSpeed)),s.$current_tip=s.$next_tip,t(".joyride-next-tip",s.$current_tip).focus(),r.tabbable(s.$current_tip)}else s.$li&&s.$target.length<1?r.show():r.end();else s.paused=!0},is_phone:function(){return o?o.mq("only screen and (max-width: 767px)"):s.$window.width()<767},support_localstorage:function(){return o?o.localstorage:!!e.localStorage},hide:function(){s.modal&&s.expose&&r.un_expose(),s.modal||t(".joyride-modal-bg").hide(),s.$current_tip.hide(),s.postStepCallback(s.$li.index(),s.$current_tip)},set_li:function(t){t?(s.$li=s.$tip_content.eq(s.startOffset),r.set_next_tip(),s.$current_tip=s.$next_tip):(s.$li=s.$li.next(),r.set_next_tip()),r.set_target()},set_next_tip:function(){s.$next_tip=t(".joyride-tip-guide[data-index="+s.$li.index()+"]")},set_target:function(){var e=s.$li.attr("data-class"),i=s.$li.attr("data-id"),n=function(){return i?t(s.document.getElementById(i)):e?t("."+e).filter(":visible").first():t("body")};s.$target=n()},scroll_to:function(){var e,i;e=s.$window.height()/2,i=Math.ceil(s.$target.offset().top-e+s.$next_tip.outerHeight()),t("html, body").stop().animate({scrollTop:i},s.scrollSpeed)},paused:function(){return-1===t.inArray(s.$li.index()+1,s.pauseAfter)},destroy:function(){t.isEmptyObject(s)||s.$document.off(".joyride"),t(e).off(".joyride"),t(".joyride-close-tip, .joyride-next-tip, .joyride-modal-bg").off(".joyride"),t(".joyride-tip-guide, .joyride-modal-bg").remove(),clearTimeout(s.automate),s={}},restart:function(){s.autoStart?(r.hide(),s.$li=i,r.show("init")):(!s.startTimerOnClick&&s.timer>0?(r.show("init"),r.startTimer()):r.show("init"),s.autoStart=!0)},pos_default:function(e){Math.ceil(s.$window.height()/2),s.$next_tip.offset();var i=t(".joyride-nub",s.$next_tip),n=Math.ceil(i.outerWidth()/2),o=Math.ceil(i.outerHeight()/2),a=e||!1;
10if(a&&(s.$next_tip.css("visibility","hidden"),s.$next_tip.show()),/body/i.test(s.$target.selector))s.$li.length&&r.pos_modal(i);else{var l=s.tipSettings.tipAdjustmentY?parseInt(s.tipSettings.tipAdjustmentY):0,c=s.tipSettings.tipAdjustmentX?parseInt(s.tipSettings.tipAdjustmentX):0;r.bottom()?(s.$next_tip.css({top:s.$target.offset().top+o+s.$target.outerHeight()+l,left:s.$target.offset().left+c}),/right/i.test(s.tipSettings.nubPosition)&&s.$next_tip.css("left",s.$target.offset().left-s.$next_tip.outerWidth()+s.$target.outerWidth()),r.nub_position(i,s.tipSettings.nubPosition,"top")):r.top()?(s.$next_tip.css({top:s.$target.offset().top-s.$next_tip.outerHeight()-o+l,left:s.$target.offset().left+c}),r.nub_position(i,s.tipSettings.nubPosition,"bottom")):r.right()?(s.$next_tip.css({top:s.$target.offset().top+l,
11left:s.$target.outerWidth()+s.$target.offset().left+n+c}),r.nub_position(i,s.tipSettings.nubPosition,"left")):r.left()&&(s.$next_tip.css({top:s.$target.offset().top+l,left:s.$target.offset().left-s.$next_tip.outerWidth()-n+c}),r.nub_position(i,s.tipSettings.nubPosition,"right")),!r.visible(r.corners(s.$next_tip))&&s.attempts<s.tipSettings.tipLocationPattern.length&&(i.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),s.tipSettings.tipLocation=s.tipSettings.tipLocationPattern[s.attempts],s.attempts++,r.pos_default(!0))}a&&(s.$next_tip.hide(),s.$next_tip.css("visibility","visible"))},pos_phone:function(e){var i=s.$next_tip.outerHeight(),n=(s.$next_tip.offset(),s.$target.outerHeight()),o=t(".joyride-nub",s.$next_tip),a=Math.ceil(o.outerHeight()/2),l=e||!1;o.removeClass("bottom").removeClass("top").removeClass("right").removeClass("left"),l&&(s.$next_tip.css("visibility","hidden"),s.$next_tip.show()),/body/i.test(s.$target.selector)?s.$li.length&&r.pos_modal(o):r.top()?(s.$next_tip.offset({top:s.$target.offset().top-i-a}),o.addClass("bottom")):(s.$next_tip.offset({top:s.$target.offset().top+n+a}),o.addClass("top")),l&&(s.$next_tip.hide(),s.$next_tip.css("visibility","visible"))},pos_modal:function(t){r.center(),t.hide(),r.show_modal()},show_modal:function(){t(".joyride-modal-bg").length<1&&t("body").append(s.template.modal).show(),/pop/i.test(s.tipAnimation)?t(".joyride-modal-bg").show():t(".joyride-modal-bg").fadeIn(s.tipAnimationFadeSpeed)},expose:function(){var i,n,o,a,l="expose-"+Math.floor(1e4*Math.random());if(arguments.length>0&&arguments[0]instanceof t)o=arguments[0];else{if(!s.$target||/body/i.test(s.$target.selector))return!1;o=s.$target}if(o.length<1)return e.console&&console.error("element not valid",o),!1;i=t(s.template.expose),s.$body.append(i),i.css({top:o.offset().top,left:o.offset().left,width:o.outerWidth(!0),height:o.outerHeight(!0)}),n=t(s.template.exposeCover),a={zIndex:o.css("z-index"),position:o.css("position")},o.css("z-index",1*i.css("z-index")+1),"static"==a.position&&o.css("position","relative"),o.data("expose-css",a),n.css({top:o.offset().top,left:o.offset().left,width:o.outerWidth(!0),height:o.outerHeight(!0)}),s.$body.append(n),i.addClass(l),n.addClass(l),s.tipSettings.exposeClass&&(i.addClass(s.tipSettings.exposeClass),n.addClass(s.tipSettings.exposeClass)),o.data("expose",l),s.postExposeCallback(s.$li.index(),s.$next_tip,o),r.add_exposed(o)},un_expose:function(){var i,n,o,a,l=!1;if(arguments.length>0&&arguments[0]instanceof t)n=arguments[0];else{if(!s.$target||/body/i.test(s.$target.selector))return!1;n=s.$target}if(n.length<1)return e.console&&console.error("element not valid",n),!1;i=n.data("expose"),o=t("."+i),arguments.length>1&&(l=arguments[1]),!0===l?t(".joyride-expose-wrapper,.joyride-expose-cover").remove():o.remove(),"auto"==(a=n.data("expose-css")).zIndex?n.css("z-index",""):n.css("z-index",a.zIndex),a.position!=n.css("position")&&("static"==a.position?n.css("position",""):n.css("position",a.position)),n.removeData("expose"),n.removeData("expose-z-index"),r.remove_exposed(n)},add_exposed:function(e){s.exposed=s.exposed||[],e instanceof t?s.exposed.push(e[0]):"string"==typeof e&&s.exposed.push(e)},remove_exposed:function(e){var i;e instanceof t?i=e[0]:"string"==typeof e&&(i=e),s.exposed=s.exposed||[];for(var n=0;n<s.exposed.length;n++)if(s.exposed[n]==i)return void s.exposed.splice(n,1)},center:function(){var t=s.$window;return s.$next_tip.css({top:(t.height()-s.$next_tip.outerHeight())/2+t.scrollTop(),left:(t.width()-s.$next_tip.outerWidth())/2+t.scrollLeft()}),!0}
11,bottom:function(){return/bottom/i.test(s.tipSettings.tipLocation)},top:function(){return/top/i.test(s.tipSettings.tipLocation)},right:function(){return/right/i.test(s.tipSettings.tipLocation)},left:function(){return/left/i.test(s.tipSettings.tipLocation)},corners:function(t){var e=s.$window,i=e.height()/2,n=Math.ceil(s.$target.offset().top-i+s.$next_tip.outerHeight()),o=e.width()+e.scrollLeft(),r=e.height()+n,a=e.height()+e.scrollTop(),l=e.scrollTop();return n<l&&(l=n<0?0:n),r>a&&(a=r),[t.offset().top<l,o<t.offset().left+t.outerWidth(),a<t.offset().top+t.outerHeight(),e.scrollLeft()>t.offset().left]},visible:function(t){for(var e=t.length;e--;)if(t[e])return!1;return!0},nub_position:function(t,e,i){"auto"===e?t.addClass(i):t.addClass(e)},startTimer:function(){s.$li.length?s.automate=setTimeout(function(){r.hide(),r.show(),r.startTimer()},s.timer):clearTimeout(s.automate)},end:function(e){(e=e||!1)&&s.$window.unbind("resize.joyride"),s.cookieMonster&&t.cookie(s.cookieName,"ridden",{expires:365,domain:s.cookieDomain,path:s.cookiePath}),s.localStorage&&localStorage.setItem(s.localStorageKey,!0),s.timer>0&&clearTimeout(s.automate),s.modal&&s.expose&&r.un_expose(),s.$current_tip&&s.$current_tip.hide(),s.$li&&(s.postStepCallback(s.$li.index(),s.$current_tip,e),s.postRideCallback(s.$li.index(),s.$current_tip,e)),t(".joyride-modal-bg").hide()},jquery_check:function(){return!!t.isFunction(t.fn.on)||(t.fn.on=function(t,e,i){return this.delegate(e,t,i)},t.fn.off=function(t,e,i){return this.undelegate(e,t,i)},!1)},outerHTML:function(t){return t.outerHTML||(new XMLSerializer).serializeToString(t)},version:function(){return s.version},tabbable:function(e){t(e).on("keydown",function(i){if(!i.isDefaultPrevented()&&i.keyCode&&27===i.keyCode)return i.preventDefault(),void r.end(!0);if(9===i.keyCode){var n=t(e).find(":tabbable"),o=n.filter(":first"),s=n.filter(":last");i.target!==s[0]||i.shiftKey?i.target===o[0]&&i.shiftKey&&(s.focus(1),i.preventDefault()):(o.focus(1),i.preventDefault())}})}};t.fn.joyride=function(e){return r[e]?r[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void t.error("Method "+e+" does not exist on jQuery.joyride"):r.init.apply(this,arguments)}}(jQuery,this),$(function(){$(".formulario_registro_nif").each(function(){$(this).attr("maxlength",9),$(this).css("width","70px")})}),$("form").submit(function(){elements=$(this).find(".text[placeholder]"),elements.each(function(){$(this).attr("placeholder")==$(this).val()&&$(this).val("")}
11)}),jQuery.fn.center=function(){return this.css("top",Math.max(0,($(window).height()-this.outerHeight())/2+$(window).scrollTop())+"px"),this.css("left",Math.max(0,($(window).width()-this.outerWidth())/2+$(window).scrollLeft())+"px"),this},Informa={ie6:/MSIE 6/i.test(navigator.userAgent),init:function(){this.initializeMoreProducts(),this.initializeFilters(),this.initializeDesplegables(),this.initializeClosers(),this.initializeTips(),this.initializeLightboxes(),this.initializePlaceholders(),this.initializeResultTables(),this.validateform(),this.initializeScrollableMenu("#ficha-container","#ficha-aside"),this.initializeDatepickers(),this.initializeModuleForms(),this.showBottom(),this.initializeReferenceEditor(),this.saveFormats(),this.capturePrintKeys(),this.initializeForms()},initializeForms:function(){$("form:not(.filter) :input:text:visible:enabled:first").focus()},capturePrintKeys:function(){printbutton=$(".btn.print"),printbutton.length&&(printbutton.click(function(t){window.location=$(this).attr("href"),t.preventDefault()}),$(document).keypress(function(t){112==t.which&&t.ctrlKey&&(printbutton.trigger("click"),t.preventDefault())}))},saveFormats:function(){var t=$(".save-format");t&&t.click(function(t){t.preventDefault(),t.stopPropagation();var e=$(this),i=$(e.attr("href")),n=(i.width()-e.width())/2,o=e.position().left-n;i.css("left",o).fadeIn("fast"),$(document).one("click",function(){i.hide()})})},initializeReferenceEditor:function(){var t=$("#ref");t&&t.on("click","a",function(){var e=t.find("span").text();t.html('<form action="wadus"><input type="text" value="'+e+'" /> <button type="submit" class="btn save"><span>Guardar</span></button></form>'),t.find("form").one("submit",function(e){e.preventDefault();var i=t.find("input").val();t.html('<span class="ref">'+i+'</span> <a href="#" class="editar">Editar</a>')})})},showBottom:function(){var t=$("#resultados #bottom, #home #bottom");t.css({bottom:-42}).show(),t.animate({bottom:0},500)},initializeModuleForms:function(){$("form.module").validate({errorPlacement:function(t,e){e.is(":radio, :checkbox")?t.insertAfter(e.parent()):t.insertAfter(e)}})},initializeScrollableMenu:function(t,e,i){i=i||0;var n=$(t);if(n.length){var o=$(e);if(o.height()>$(window).height())return;var s=o.offset().left,r=o.css("right");n.height()<o.height()&&n.height(o.height());var a=$(window);a.scroll(function(){var t=a.scrollTop()-n.offset().top;t>i?Informa.ie6?o.css({position:"absolute",top:t}):o.css({top:0,position:"fixed",right:"auto",left:s}):o.css({position:"absolute",top:i,left:"auto",right:r}),s=o.offset().left}),$("#ficha-nav a").click(function(t){var e=$(this);e.attr("href").match(/^#/)&&(t.preventDefault(),$.scrollTo(e.attr("href"),{duration:300}),e.closest(".open, .closed").removeClass("closed active").addClass("open"),e.parent().siblings().removeClass("active").end().addClass("active"))})}},initializeDatepickers:function(){"function"==typeof $.fn.datepicker&&$(".datepicker").datepicker({buttonImage:"/assets/calendar.gif",showOn:"both"})},initializeMoreProducts:function(){var t=$("#more-nav");if(t.length){t.hide();var e=$("#nav .more a");e.click(function(e){e.preventDefault(),$(this).parent().toggleClass("open"),t.slideToggle("fast")}),e.one("click",function(e){e.preventDefault(),t.find("ul").jcarousel({scroll:2})})}},initializeDesplegables:function(t){t=t||document;var e=$(".desplegables .d",t);e.length&&(e.find("a").mouseup(function(t){t.preventDefault(),t.stopPropagation();var i=$(this).parent();i.hasClass("open")?i.removeClass("open"):(e.removeClass("open"),i.addClass("open")),$(document).one("mouseup",function(){i.removeClass("open")})}
11),e.find(".inner").mouseup(function(t){t.stopPropagation()}))},initializeFilters:function(){var t=$(".filtros .f");t.length&&t.click(function(){$(this).trigger("mouseleave"),$(this).remove()})},initializeClosers:function(){var t=$(".cerrar");t.length&&t.click(function(t){t.preventDefault(),$(this).parent().fadeOut(300,function(){$(this).remove()})})},initializeTips:function(){var t=$(".titul").length?$("[title]:not(.lb-notitle, .lb-iframe, .nolabel, #vivagraph)"):$("[title]:not(.lb, .lb-notitle, .lb-iframe, .nolabel, #vivagraph)");t.length&&(t.attr("original-title",""),t.tipsy({gravity:t.tipsy.autoNS,delayIn:10,html:!0,delayOut:10})),(t=$(".left")).length&&t.tipsy({gravity:t.tipsy.autoWE,delayIn:10,html:!0,delayOut:10}),$(".tipsy").remove()},initializeLightboxes:function(){var t;(t=$(".lb")).length&&t.fancybox({type:"ajax",padding:0,helpers:{title:{type:"inside",position:"top"}},onComplete:function(){$("#fancybox-content input:text:visible:enabled:first").focus()}}),(t=$(".lb-scroll")).length&&t.fancybox({type:"ajax",padding:0,helpers:{title:{type:"inside",position:"top"}},titlePosition:"over-top",showTitle:!0,height:"auto",width:"auto",autoDimensions:!1,scrolling:"auto",autoScale:"true",onComplete:function(){$("#fancybox-content").css({"overflow-y":"auto"}),$("#fancybox-content").css({"overflow-x":"hidden"}),$("#fancybox-content").width($("#fancybox-content").width()+12),$('<style media="print">#fancybox-content {display: inline;}</style>').appendTo("head"),$('<style media="print">#header {display: none;}</style>').appendTo("head"),$('<style media="print">#main {display: none;}</style>').appendTo("head"),$('<style media="print">#container {display: none;}</style>').appendTo("head"),$('<style media="print">.wrapper {display: none;}</style>').appendTo("head")},onClosed:function(){$('<style media="print">#container {display: block;}</style>').appendTo("head")}}),(t=$(".lb-notitle")).length&&t.fancybox({type:"ajax",padding:0,helpers:{title:{type:"inside",position:"top"}},titlePosition:"over-top",showTitle:!1}),(t=$(".lb-iframe")).length&&t.fancybox({type:"iframe",padding:0,helpers:{title:{type:"inside",position:"top"}},titlePosition:"over-top",showTitle:!0,width:760,height:450})},initializePlaceholders:function(){$.fn.placeholder&&($(".text").each(function(){$(this).val()||$(this).placeholder()}),$("#buscador_avanzado_container input[type=text]").placeholder(),$("#form-nueva-nota .area").placeholder(),$("form").submit(function(){elements=$(this).find(".text[placeholder]"),elements.each(function(){$(this).attr("placeholder")==$(this).val()&&$(this).val("")}
11)}))},initializeResultTables:function(){var t=$("table.resultados"),e=/MSIE 6/i.test(navigator.userAgent);t.length&&e&&t.find("tr").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})},validateform:function(){$("#buscador_avanzado_container form").length>0&&(String.prototype.testCIF=function(){var t,e,i,n,o=0,s=0,r=new Array("J","A","B","C","D","E","F","G","H","I");if(texto=this.toUpperCase(),!new RegExp(/^[ABCDEFGHKLMNPQS]\d{7}[0-9,A-J]$/g).exec(texto))return!1;e=texto.substr(8,1);for(var a=1;a<7;a++)n=(2*parseInt(texto.substr(a++,1),10)).toString()+"0",s+=parseInt(n.substr(0,1),10)+parseInt(n.substr(1,1),10),o+=parseInt(texto.substr(a,1),10);return n=(2*parseInt(texto.substr(a,1),10)).toString()+"0",t=(o+(s+=parseInt(n.substr(0,1),10)+parseInt(n.substr(1,1),10))).toString(),10==(i=(10-(i=parseInt(t.substr(t.length-1,1),10))).toString())&&(i=0),e==i||e==r[i]},$.validator.addMethod("validate_nif",function(t){return t.testCIF()}),$("#buscador_avanzado_container form").validate({success:function(t){var e="&nbsp;",i=t.closest(".field");i.removeClass("error"),t.html(e).addClass("valid"),$("span.error",i).remove()},highlight:function(t){switch($(t).closest(".field").addClass("error"),$("span.error",$("#"+t.id).closest(".field")).remove(),t.id){case"nif":$(t).closest(".field").append('<span class="error">El formato de no coincide con un CIF (X000000000) o un DUNS (XX-0000000000)</span>');break;case"nombre":$(t).closest(".field").append('<span class="error">Debes indicar un nombre v\xe1lido.</span>')}},rules:{nif:"required validate_nif",nombre:"required"}}))}},Informa.init(),function(){function t(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function e(){var t,e,i=arguments,n={},o=function(t,e){var i,n;for(n in"object"!=typeof t&&(t={}),e)e.hasOwnProperty(n)&&(i=e[n],t[n]=i&&"object"==typeof i&&"[object Array]"!==Object.prototype.toString.call(i)&&"renderTo"!==n&&"number"!=typeof i.nodeType?o(t[n]||{},i):e[n]);return t};for(!0===i[0]&&(n=i[1],i=Array.prototype.slice.call(i,2)),e=i.length,t=0;t<e;t++)n=o(n,i[t]);return n}function i(t,e){return parseInt(t,e||10)}function n(t){return"string"==typeof t}function o(t){return t&&"object"==typeof t}function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function r(t){return"number"==typeof t}function a(t){return ht.log(t)/ht.LN10}function l(t){return ht.pow(10,t)}function c(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function h(t){return t!==O&&null!==t}function u(t,e,i){var s,r;if(n(e))h(i)?t.setAttribute(e,i):t&&t.getAttribute&&(r=t.getAttribute(e));else if(h(e)&&o(e))for(s in e)t.setAttribute(s,e[s]);return r}function d(t){return s(t)?t:[t]}function p(){var t,e,i=arguments,n=i.length;for(t=0;t<n;t++)if((e=i[t])!==O&&null!==e)return e}function f(e,i){kt&&!At&&i&&i.opacity!==O&&(i.filter="alpha(opacity="+100*i.opacity+")"),t(e.style,i)}function m(e,i,n,o,s){return e=lt.createElement(e),i&&t(e,i),s&&f(e,{padding:0,border:Ft,margin:0}),n&&f(e,n),o&&o.appendChild(e),e}function g(e,i){var n=function(){return O};return n.prototype=new e,t(n.prototype,i),n}function v(t,e,n,o){var s=rt.numberFormat,r=j.lang,a=+t||0,l=-1===e?(a.toString().split(".")[1]||"").length:isNaN(e=gt(e))?2:e,c=void 0===n?r.decimalPoint:n,h=(r=void 0===o?r.thousandsSep:o,a<0?"-":""),u=String(i(a=gt(a).toFixed(l))),d=u.length>3?u.length%3:0;return s!==v?s(t,e,n,o):h+(d?u.substr(0,d)+r:"")+u.substr(d).replace(/(\d{3})(?=\d)/g,"$1"+r)+(l?c+gt(a-u).toFixed(l).slice(2):"")}function y(t,e){return Array((e||2)+1-String(t).length).join(0)+t}function _(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(n),i.apply(this,t)}}function b(t,e){for(var i,n,o,s,r,a="{",l=!1,c=[];-1!==(a=t.indexOf(a));){if(i=t.slice(0,a),l){for(r=(o=(n=i.split(":")).shift().split(".")).length,i=e,s=0;s<r;s++)i=i[o[s]];n.length&&(n=n.join(":"),o=/\.([0-9])/,s=j.lang,r=void 0,/f$/.test(n)?(r=(r=n.match(o))?r[1]:-1,null!==i&&(i=v(i,r,s.decimalPoint,n.indexOf(",")>-1?s.thousandsSep:""))):i=B(n,i))}c.push(i),t=t.slice(a+1),a=(l=!l)?"}":"{"}return c.push(t),c.join("")}function x(t){return ht.pow(10,dt(ht.log(t)/ht.LN10))}function w(t,e,i,n){var o;for(o=t/(i=p(i,1)),e||(e=[1,2,2.5,5,10],!1===n&&(1===i?e=[1,2,5,10]:i<=.1&&(e=[1/i]))),n=0;n<e.length&&(t=e[n],!(o<=(e[n]+(e[n+1]||e[n]))/2));n++);return t*=i}function k(t,e){var i,n,o=t.length;for(n=0;n<o;n++)t[n].ss_i=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.ss_i-n.ss_i:i}
11),n=0;n<o;n++)delete t[n].ss_i}function C(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function S(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function P(t,e){for(var i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function T(t){z||(z=m($t)),t&&z.appendChild(t),z.innerHTML=""}function E(t){return parseFloat(t.toPrecision(14))}function A(t,e){H=p(t,e.animation)}function M(){var t=j.global.useUTC,e=t?"getUTC":"get",i=t?"setUTC":"set";V=j.global.Date||window.Date,Z=6e4*(t&&j.global.timezoneOffset||0),q=t?V.UTC:function(t,e,i,n,o,s){return new V(t,e,p(i,1),p(n,0),p(o,0),p(s,0)).getTime()},G=e+"Minutes",X=e+"Hours",K=e+"Day",Q=e+"Date",J=e+"Month",tt=e+"FullYear",et=i+"Minutes",it=i+"Hours",nt=i+"Date",ot=i+"Month",st=i+"FullYear"}function L(){}function D(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,!i&&!n&&this.addLabel()}function I(){this.init.apply(this,arguments)}function N(){this.init.apply(this,arguments)}function R(t,e,i,n,o){var s=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=o,this.alignOptions={align:e.align||(s?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(s?"middle":i?"bottom":"top"),y:p(e.y,s?4:i?14:-6),x:p(e.x,s?i?-6:6:0)},this.textAlign=e.textAlign||(s?i?"right":"left":"center")}
11var O,$,F,z,j,B,H,W,U,Y,V,q,Z,G,X,K,Q,J,tt,et,it,nt,ot,st,rt,at,lt=document,ct=window,ht=Math,ut=ht.round,dt=ht.floor,pt=ht.ceil,ft=ht.max,mt=ht.min,gt=ht.abs,vt=ht.cos,yt=ht.sin,_t=ht.PI,bt=2*_t/360,xt=navigator.userAgent,wt=ct.opera,kt=/msie/i.test(xt)&&!wt,Ct=8===lt.documentMode,St=/AppleWebKit/.test(xt),Pt=/Firefox/.test(xt),Tt=/(Mobile|Android|Windows Phone)/.test(xt),Et="http://www.w3.org/2000/svg",At=!!lt.createElementNS&&!!lt.createElementNS(Et,"svg").createSVGRect,Mt=Pt&&parseInt(xt.split("Firefox/")[1],10)<4,Lt=!At&&!kt&&!!lt.createElement("canvas").getContext,Dt={},It=0,Nt=function(){return O},Rt=[],Ot=0,$t="div",Ft="none",zt=/^[0-9]+$/,jt="stroke-width",Bt={};ct.Highcharts?Y(16,!0):rt=ct.Highcharts={},B=function(e,i,n){if(!h(i)||isNaN(i))return"Invalid date";e=p(e,"%Y-%m-%d %H:%M:%S");var o,s=(f=new V(i-Z))[X](),r=f[K](),a=f[Q](),l=f[J](),c=f[tt](),u=j.lang,d=u.weekdays,f=t({a:d[r].substr(0,3),A:d[r],d:y(a),e:a,b:u.shortMonths[l],B:u.months[l],m:y(l+1),y:c.toString().substr(2,2),Y:c,H:y(s),I:y(s%12||12),l:s%12||12,M:y(f[G]()),p:s<12?"AM":"PM",P:s<12?"am":"pm",S:y(f.getSeconds()),L:y(ut(i%1e3),3)},rt.dateFormats);for(o in f)for(;-1!==e.indexOf("%"+o);)e=e.replace("%"+o,"function"==typeof f[o]?f[o](i):f[o]);return n?e.substr(0,1).toUpperCase()+e.substr(1):e},Y=function(t,e){var i="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw i;ct.console&&console.log(i)},U={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:26784e5,year:31556952e3},W={init:function(t,e,i){e=e||"";var n,o,s,r=t.shift,a=e.indexOf("C")>-1,l=a?7:3,c=(e=e.split(" "),i=[].concat(i),function(t){for(n=t.length;n--;)"M"===t[n]&&t.splice(n+1,0,t[n+1],t[n+2],t[n+1],t[n+2])});if(a&&(c(e),c(i)),t.isArea&&(o=e.splice(e.length-6,6),s=i.splice(i.length-6,6)),r<=i.length/l&&e.length===i.length)for(;r--;)i=[].concat(i).splice(0,l).concat(i);if(t.shift=0,e.length)for(t=i.length;e.length<t;)r=[].concat(e).splice(e.length-l,l),a&&(r[l-6]=r[l-2],r[l-5]=r[l-1]),e=e.concat(r);return o&&(e=e.concat(o),i=i.concat(s)),[e,i]},step:function(t,e,i,n){var o=[],s=t.length;if(1===i)o=n;else if(s===e.length&&i<1)for(;s--;)n=parseFloat(t[s]),o[s]=isNaN(n)?t[s]:i*parseFloat(e[s]-n)+n;else o=e;return o}},at=ct.jQuery,ct.HighchartsAdapter=ct.HighchartsAdapter||at&&{init:function(t){var e=at.fx;at.extend(at.easing,{easeOutQuad:function(t,e,i,n,o){return-n*(e/=o)*(e-2)+i}}),at.each(["cur","_default","width","height","opacity"],function(t,i){var n,o=e.step;"cur"===i?o=e.prototype:"_default"===i&&at.Tween&&(o=at.Tween.propHooks[i],i="set"),(n=o[i])&&(o[i]=function(e){var o;if("align"!==(e=t?e:this).prop)return(o=e.elem).attr?o.attr(e.prop,"cur"===i?O:e.now):n.apply(this,arguments)})}),_(at.cssHooks.opacity,"get",function(t,e,i){return e.attr?e.opacity||0:t.call(this,e,i)}),this.addAnimSetter("d",function(e){var i,n=e.elem;e.started||(i=t.init(n,n.d,n.toD),e.start=i[0],e.end=i[1],e.started=!0),n.attr("d",t.step(e.start,e.end,e.pos,n.toD))}),this.each=Array.prototype.forEach?function(t,e){return Array.prototype.forEach.call(t,e)}:function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(!1===e.call(t[i],t[i],i,t))return i},at.fn.highcharts=function(){var t,e,i="Chart",o=arguments;return this[0]&&(n(o[0])&&(i=o[0],o=Array.prototype.slice.call(o,1)),(t=o[0])!==O&&(t.chart=t.chart||{},t.chart.renderTo=this[0],new rt[i](t,o[1]),e=this),t===O&&(e=Rt[u(this[0],"data-highcharts-chart")])),e}},addAnimSetter:function(t,e){at.Tween?at.Tween.propHooks[t]={set:e}:at.fx.step[t]=e},getScript:at.getScript,inArray:at.inArray,adapterRun:function(t,e){return at(t)[e]()},grep:at.grep,map:function(t,e){for(var i=[],n=0,o=t.length;n<o;n++)i[n]=e.call(t[n],t[n],n,t);return i},offset:function(t){return at(t).offset()},addEvent:function(t,e,i){at(t).bind(e,i)},removeEvent:function(t,e,i){var n=lt.removeEventListener?"removeEventListener":"detachEvent";lt[n]&&t&&!t[n]&&(t[n]=function(){}),at(t).unbind(e,i)},fireEvent:function(e,i,n,o){var s,r=at.Event(i),a="detached"+i;!kt&&n&&(delete n.layerX,delete n.layerY,delete n.returnValue),t(r,n),e[i]&&(e[a]=e[i],e[i]=null),at.each(["preventDefault","stopPropagation"],function(t,e){var i=r[e];
11r[e]=function(){try{i.call(r)}catch(t){"preventDefault"===e&&(s=!0)}}}),at(e).trigger(r),e[a]&&(e[i]=e[a],e[a]=null),o&&!r.isDefaultPrevented()&&!s&&o(r)},washMouseEvent:function(t){var e=t.originalEvent||t;return e.pageX===O&&(e.pageX=t.pageX,e.pageY=t.pageY),e},animate:function(t,e,i){var n=at(t);t.style||(t.style={}),e.d&&(t.toD=e.d,e.d=1),n.stop(),e.opacity!==O&&t.attr&&(e.opacity+="px"),t.hasAnim=1,n.animate(e,i)},stop:function(t){t.hasAnim&&at(t).stop()}};var Ht=(ne=ct.HighchartsAdapter)||{};ne&&ne.init.call(ne,W);var Wt=Ht.adapterRun,Ut=Ht.getScript,Yt=Ht.inArray,Vt=Ht.each,qt=Ht.grep,Zt=Ht.offset,Gt=Ht.map,Xt=Ht.addEvent,Kt=Ht.removeEvent,Qt=Ht.fireEvent,Jt=Ht.washMouseEvent,te=Ht.animate,ee=Ht.stop,ie=(Ht={enabled:!0,x:0,y:15,style:{color:"#606060",cursor:"default",fontSize:"11px"}},(j={colors:"#7cb5ec,#434348,#90ed7d,#f7a35c,#8085e9,#f15c80,#e4d354,#8085e8,#8d4653,#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:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/4.0.4/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.0.4/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"}},subtitle:{text:"",align:"center",style:{color:"#555555"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:e(Ht,{align:"center",enabled:!1,formatter:function(){return null===this.y?"":v(this.y,-1)},verticalAlign:"bottom",y:0}),cropThreshold:300,pointRange:0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:At,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,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"},headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{series.color}">\u25cf</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:Tt?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}}).plotOptions),ne=ie.line;M();var oe=/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*\)/,se=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,re=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,ae=function(t){var n,o,s=[];return function(t){t&&t.stops?o=Gt(t.stops,function(t){return ae(t[1])}):(n=oe.exec(t))?s=[i(n[1]),i(n[2]),i(n[3]),parseFloat(n[4],10)]:(n=se.exec(t))?s=[i(n[1],16),i(n[2],16),i(n[3],16),1]:(n=re.exec(t))&&(s=[i(n[1]),i(n[2]),i(n[3]),1])}(t),{get:function(i){var n;return o?((n=e(t)).stops=[].concat(n.stops),Vt(o,function(t,e){n.stops[e]=[n.stops[e][0],t.get(i)]})):n=s&&!isNaN(s[0])?"rgb"===i?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===i?s[3]:"rgba("+s.join(",")+")":t,n},brighten:function(t){if(o)Vt(o,function(e){e.brighten(t)});else if(r(t)&&0!==t){var e;
11for(e=0;e<3;e++)s[e]+=i(255*t),s[e]<0&&(s[e]=0),s[e]>255&&(s[e]=255)}return this},rgba:s,setOpacity:function(t){return s[3]=t,this}}};L.prototype={opacity:1,textProps:"fontSize,fontWeight,fontFamily,color,lineHeight,width,textDecoration,textShadow,HcTextStroke".split(","),init:function(t,e){this.element="span"===e?m(e):lt.createElementNS(Et,e),this.renderer=t},animate:function(t,i,n){return i=p(i,H,!0),ee(this),i?(i=e(i,{}),n&&(i.complete=n),te(this,t,i)):(this.attr(t),n&&n()),this},colorGradient:function(t,i,n){var o,r,a,l,c,u,d,p,f,m,g=this.renderer,v=[];if(t.linearGradient?r="linearGradient":t.radialGradient&&(r="radialGradient"),r){for(m in a=t[r],l=g.gradients,u=t.stops,f=n.radialReference,s(a)&&(t[r]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&f&&!h(a.gradientUnits)&&(a=e(a,{cx:f[0]-f[2]/2+a.cx*f[2],cy:f[1]-f[2]/2+a.cy*f[2],r:a.r*f[2],gradientUnits:"userSpaceOnUse"})),a)"id"!==m&&v.push(m,a[m]);for(m in u)v.push(u[m]);l[v=v.join(",")]?t=l[v].attr("id"):(a.id=t="highcharts-"+It++,l[v]=c=g.createElement(r).attr(a).add(g.defs),c.stops=[],Vt(u,function(t){0===t[1].indexOf("rgba")?(o=ae(t[1]),d=o.get("rgb"),p=o.get("a")):(d=t[1],p=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":d,"stop-opacity":p}).add(c),c.stops.push(t)})),n.setAttribute(i,"url("+g.url+"#"+t+")")}},attr:function(t,e){var i,n,o,s,r=this.element,a=this;if("string"==typeof t&&e!==O&&(i=t,(t={})[i]=e),"string"==typeof t)a=(this[t+"Getter"]||this._defaultGetter).call(this,t,r);else{for(i in t)n=t[i],s=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(i)&&(o||(this.symbolAttr(t),o=!0),s=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),s||(this[i+"Setter"]||this._defaultSetter).call(this,n,i,r),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,n);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return a},updateShadows:function(t,e){for(var i=this.shadows,n=i.length;n--;)i[n].setAttribute(t,"height"===t?ft(e-(i[n].cutHeight||0),0):"d"===t?this.d:e)},addClass:function(t){var e=this.element,i=u(e,"class")||"";return-1===i.indexOf(t)&&u(e,"class",i+" "+t),this},symbolAttr:function(t){var e=this;Vt("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(i){e[i]=p(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":Ft)},crisp:function(t){var e,i,n={},o=t.strokeWidth||this.strokeWidth||0;for(e in i=ut(o)%2/2,t.x=dt(t.x||this.x||0)+i,t.y=dt(t.y||this.y||0)+i,t.width=dt((t.width||this.width||0)-2*i),t.height=dt((t.height||this.height||0)-2*i),t.strokeWidth=o,t)this[e]!==t[e]&&(this[e]=n[e]=t[e]);return n},css:function(e){var n,o,s=this.styles,r={},a=this.element,l="";if(n=!s,e&&e.color&&(e.fill=e.color),s)for(o in e)e[o]!==s[o]&&(r[o]=e[o],n=!0);if(n){if(n=this.textWidth=e&&e.width&&"text"===a.nodeName.toLowerCase()&&i(e.width),s&&(e=t(s,r)),this.styles=e,n&&(Lt||!At&&this.renderer.forExport)&&delete e.width,kt&&!At)f(this.element,e);else{for(o in s=function(t,e){return"-"+e.toLowerCase()},e)l+=o.replace(/([A-Z])/g,s)+":"+e[o]+";";u(a,"style",l)}n&&this.added&&this.renderer.buildText(this)}return this},on:function(t,e){var i=this,n=i.element;return F&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=V.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===xt.indexOf("Android")||V.now()-(i.touchEventFired||0)>1100)&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){return this.element.radialReference=t,this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,o=this.inverted,s=this.rotation,r=this.element;o&&(t+=this.attr("width"),e+=this.attr("height")),t=["translate("+t+","+e+")"],o?t.push("rotate(90) scale(-1,1)"):s&&t.push("rotate("+s+" "+(r.getAttribute("x")||0)+" "+(r.getAttribute("y")||0)+")"),(h(i)||h(n))&&t.pu
11sh("scale("+p(i,1)+" "+p(n,1)+")"),t.length&&r.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var o,s,r,a,l={};return r=(s=this.renderer).alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=e,(!i||n(i))&&(this.alignTo=o=i||"renderer",c(r,this),r.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),i=p(i,s[o],s),o=t.align,s=t.verticalAlign,r=(i.x||0)+(t.x||0),a=(i.y||0)+(t.y||0),"right"!==o&&"center"!==o||(r+=(i.width-(t.width||0))/{right:1,center:2}[o]),l[e?"translateX":"x"]=ut(r),"bottom"!==s&&"middle"!==s||(a+=(i.height-(t.height||0))/({bottom:1,middle:2}[s]||1)),l[e?"translateY":"y"]=ut(a),this[this.placed?"animate":"attr"](l),this.placed=!0,this.alignAttr=l,this},getBBox:function(){var e,i,n=this.bBox,o=this.renderer,s=this.rotation;e=this.element;var r,a=this.styles,l=s*bt;if((""===(i=this.textStr)||zt.test(i))&&(r="num."+i.toString().length+(a?"|"+a.fontSize+"|"+a.fontFamily:"")),r&&(n=o.cache[r]),!n){if(e.namespaceURI===Et||o.forExport){try{n=e.getBBox?t({},e.getBBox()):{width:e.offsetWidth,height:e.offsetHeight}}catch(t){}(!n||n.width<0)&&(n={width:0,height:0})}else n=this.htmlGetBBox();o.isSVG&&(e=n.width,i=n.height,kt&&a&&"11px"===a.fontSize&&"16.9"===i.toPrecision(3)&&(n.height=i=14),s&&(n.width=gt(i*yt(l))+gt(e*vt(l)),
12n.height=gt(i*vt(l))+gt(e*yt(l)))),this.bBox=n,r&&(o.cache[r]=n)}return n},show:function(t){return t&&this.element.namespaceURI===Et?this.element.removeAttribute("visibility"):this.attr({visibility:t?"inherit":"visible"}),this},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0}
12,{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,n,o=this.renderer,s=t||o,r=s.element||o.box,a=this.element,l=this.zIndex;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&o.buildText(this),l&&(s.handleZ=!0,l=i(l)),s.handleZ)for(t=r.childNodes,e=0;e<t.length;e++)if(s=u(o=t[e],"zIndex"),o!==a&&(i(s)>l||!h(l)&&h(s))){r.insertBefore(a,o),n=!0;break}return n||r.appendChild(a),this.added=!0,this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i=this,n=i.element||{},o=i.shadows,s=i.renderer.isSVG&&"SPAN"===n.nodeName&&i.parentGroup;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,ee(i),i.clipPath&&(i.clipPath=i.clipPath.destroy()),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e]=i.stops[e].destroy();i.stops=null}for(i.safeRemoveChild(n),o&&Vt(o,function(t){i.safeRemoveChild(t)});s&&s.div&&0===s.div.childNodes.length;)n=s.parentGroup,i.safeRemoveChild(s.div),delete s.div,s=n;for(t in i.alignTo&&c(i.renderer.alignedObjects,i),i)delete i[t];return null},shadow:function(t,e,i){var n,o,s,r,a,l,c=[],h=this.element;if(t){for(r=p(t.width,3),a=(t.opacity||.15)/r,l=this.parentInverted?"(-1,-1)":"("+p(t.offsetX,1)+", "+p(t.offsetY,1)+")",n=1;n<=r;n++)s=2*r+1-2*n,u(o=h.cloneNode(0),{isShadow:"true",stroke:t.color||"black","stroke-opacity":a*n,"stroke-width":s,transform:"translate"+l,fill:Ft}),i&&(u(o,"height",ft(u(o,"height")-s,0)),o.cutHeight=s),e?e.element.appendChild(o):h.parentNode.insertBefore(o,h),c.push(o);this.shadows=c}return this},xGetter:function(t){return"circle"===this.element.nodeName&&(t={x:"cx",y:"cy"}[t]||t),this._defaultGetter(t)},_defaultGetter:function(t){return t=p(this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),i.setAttribute(e,t),this[e]=t},dashstyleSetter:function(t){var e;if(t=t&&t.toLowerCase()){for(e=(t=t.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(",")).length;e--;)t[e]=i(t[e])*this["stroke-width"];t=t.join(",").replace("NaN","none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=lt.createElementNS(Et,"title"),this.element.appendChild(e)),e.textContent=p(t,"").replace(/<[^>]*>/g,"")},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},zIndexSetter:function(t,e,i){i.setAttribute(e,t),this[e]=t},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}},L.prototype.yGetter=L.prototype.xGetter,L.prototype.translateXSetter=L.prototype.translateYSetter=L.prototype.rotationSetter=L.prototype.verticalAlignSetter=L.prototype.scaleXSetter=L.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},L.prototype["stroke-widthSetter"]=L.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],L.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)};var le,ce,he=function(){this.init.apply(this,arguments)};if(he.prototype={Element:L,init:function(t,e,i,n,o){var s,r,a=location;s=(n=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(n))).element,t.appendChild(s),-1===t.innerHTML.indexOf("xmlns")&&u(s,"xmlns",Et),this.isSVG=!0,this.box=s,this.boxWrapper=n,this.alignedObjects=[],this.url=(Pt||St)&&lt.getElementsByTagName("base").length?a.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(lt.createTextNode("Created with Highcharts 4.0.4")),this.defs=this.createElement("defs").add(),this.forExport=o,this.gradients={},this.cache={},this.setSize(e,i,!1),Pt&&t.getBoundingClientRect&&(this.subPixelFix=e=function(){f(t,{left:0,top:0}),r=t.getBoundingClientRect(),f(t,{left:pt(r.left)-r.left+"px",to
12p:pt(r.top)-r.top+"px"})},e(),Xt(ct,"resize",e))},getStyle:function(e){return this.style=t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},e)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),P(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.subPixelFix&&Kt(ct,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){for(var e,n,o=t.element,s=this,r=s.forExport,a=p(t.textStr,"").toString(),l=-1!==a.indexOf("<"),c=o.childNodes,h=u(o,"x"),d=t.styles,m=t.textWidth,g=d&&d.lineHeight,v=d&&d.HcTextStroke,y=c.length,_=function(t){return g?i(g):s.fontMetrics(/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:d&&d.fontSize||s.style.fontSize||12,t).h};y--;)o.removeChild(c[y]);l||v||-1!==a.indexOf(" ")?(e=/<.*style="([^"]+)".*>/,n=/<.*href="(http[^"]+)".*>/,m&&!t.added&&this.box.appendChild(o),""===(a=l?a.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[a])[a.length-1]&&a.pop(),Vt(a,function(i,a){var l,c=0;i=i.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");l=i.split("|||"),Vt(l,function(i){if(""!==i||1===l.length){var p,g={},v=lt.createElementNS(Et,"tspan");if(e.test(i)&&u(v,"style",p=i.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2")),n.test(i)&&!r&&(u(v,"onclick",'location.href="'+i.match(n)[1]+'"'),f(v,{cursor:"pointer"}))," "!==(i=(i.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">"))){if(v.appendChild(lt.createTextNode(i)),c?g.dx=0:a&&null!==h&&(g.x=h),u(v,g),o.appendChild(v),!c&&a&&(!At&&r&&f(v,{display:"block"}),u(v,"dy",_(v))),m){i=i.replace(/([^\^])-/g,"$1- ").split(" "),g=l.length>1||i.length>1&&"nowrap"!==d.whiteSpace;for(var y,b=d.HcHeight,x=[],w=_(v),k=1;g&&(i.length||x.length);)delete t.bBox,y=t.getBBox().width,!At&&s.forExport&&(y=s.measureSpanWidth(v.firstChild.data,t.styles)),y>m&&1!==i.length?(v.removeChild(v.firstChild),x.unshift(i.pop())):(i=x,x=[],i.length&&(k++,b&&k*w>b?(i=["..."],t.attr("title",t.textStr)):(u(v=lt.createElementNS(Et,"tspan"),{dy:w,x:h}),p&&u(v,"style",p),o.appendChild(v))),y>m&&(m=y)),i.length&&v.appendChild(lt.createTextNode(i.join(" ").replace(/- /g,"-")))}c++}}})})):o.appendChild(lt.createTextNode(a))},button:function(i,n,o,s,r,a,l,c,h){var u,d,p,f,m,g,v=this.label(i,n,o,h,null,null,null,null,"button"),y=0;r=e({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:i={x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},r);return p=r.style,delete r.style,a=e(r,{stroke:"#68A",fill:{linearGradient:i,stops:[[0,"#FFF"],[1,"#ACF"]]}},a),f=a.style,delete a.style,l=e(r,{stroke:"#68A",fill:{linearGradient:i,stops:[[0,"#9BD"],[1,"#CDF"]]}},l),m=l.style,delete l.style,c=e(r,{style:{color:"#CCC"}},c),g=c.style,delete c.style,Xt(v.element,kt?"mouseover":"mouseenter",function(){3!==y&&v.attr(a).css(f)}),Xt(v.element,kt?"mouseout":"mouseleave",function(){3!==y&&(u=[r,a,l][y],d=[p,f,m][y],v.attr(u).css(d))}),v.setState=function(t){(v.state=y=t)?2===t?v.attr(l).css(m):3===t&&v.attr(c).css(g):v.attr(r).css(p)},v.on("click",function(){3!==y&&s.call(v)}).attr(r).css(t({cursor:"default"},p))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=ut(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=ut(t[2])+e%2/2),t},path:function(e){var i={fill:Ft};return s(e)?i.d=e:o(e)&&t(i,e),this.createElement("path").attr(i)},circle:function(t,e,i){return t=o(t)?t:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=function(t){this.element.setAttribute("cx",t)},e.ySetter=function(t){this.element.setAttribute("cy",t)},e.attr(t)},arc:function(t,e,i,n,s,r){return o(t)&&(e=t.y,i=t.r,n=t.innerR,s=t.start,r=t.end,t=t.x),(t=this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:n||0,start:s||0,end:r||0})).r=i,t}
12,rect:function(t,e,i,n,s,r){s=o(t)?t.r:s;var a=this.createElement("rect");t=o(t)?t:t===O?{}:{x:t,y:e,width:ft(i,0),height:ft(n,0)};return r!==O&&(t.strokeWidth=r,t=a.crisp(t)),s&&(t.r=s),a.rSetter=function(t){u(this.element,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,o=n.length;for(this.width=t,this.height=e,this.boxWrapper[p(i,!0)?"animate":"attr"]({width:t,height:e});o--;)n[o].align()},g:function(t){var e=this.createElement("g");return h(t)?e.attr({class:"highcharts-"+t}):e},image:function(e,i,n,o,s){var r={preserveAspectRatio:Ft};return arguments.length>1&&t(r,{x:i,y:n,width:o,height:s}),(r=this.createElement("image").attr(r)).element.setAttributeNS?r.element.setAttributeNS("http://www.w3.org/1999/xlink","href",e):r.element.setAttribute("hc-svg-href",e),r},symbol:function(e,i,n,o,s,r){var a,l,c,h,u=/^url\((.*?)\)$/;return(l=(l=this.symbols[e])&&l(ut(i),ut(n),o,s,r))?(t(a=this.path(l),{symbolName:e,x:i,y:n,width:o,height:s}),r&&t(a,r)):u.test(e)&&(h=function(t,e){t.element&&(t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(ut((o-e[0])/2),ut((s-e[1])/2)))},c=e.match(u)[1],e=Dt[c]||r&&r.width&&r.height&&[r.width,r.height],(a=this.image(c).attr({x:i,y:n})).isImg=!0,e?h(a,e):(a.attr({width:0,height:0}),m("img",{onload:function(){h(a,Dt[c]=[this.width,this.height])},src:c}))),a},symbols:{circle:function(t,e,i,n){var o=.166*i;return["M",t+i/2,e,"C",t+i+o,e,t+i+o,e+n,t+i/2,e+n,"C",t-o,e+n,t-o,e,t+i/2,e,"Z"]},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,o){var s=o.start,r=(i=o.r||i||n,o.end-.001),a=(n=o.innerR,o.open),l=vt(s),c=yt(s),h=vt(r);r=yt(r);return["M",t+i*l,e+i*c,"A",i,i,0,o=o.end-s<_t?0:1,1,t+i*h,e+i*r,a?"M":"L",t+n*h,e+n*r,"A",n,n,0,o,0,t+n*l,e+n*c,a?"":"Z"]},callout:function(t,e,i,n,o){var s=mt(o&&o.r||0,i,n),r=s+6,a=o&&o.anchorX,l=o&&o.anchorY;return o=["M",(t+=o=ut(o.strokeWidth||0)%2/2)+s,e+=o,"L",t+i-s,e,"C",t+i,e,t+i,e,t+i,e+s,"L",t+i,e+n-s,"C",t+i,e+n,t+i,e+n,t+i-s,e+n,"L",t+s,e+n,"C",t,e+n,t,e+n,t,e+n-s,"L",t,e+s,"C",t,e,t,e,t+s,e],a&&a>i&&l>e+r&&l<e+n-r?o.splice(13,3,"L",t+i,l-6,t+i+6,l,t+i,l+6,t+i,e+n-s):a&&a<0&&l>e+r&&l<e+n-r?o.splice(33,3,"L",t,l+6,t-6,l,t,l-6,t,e+s):l&&l>n&&a>t+r&&a<t+i-r?o.splice(23,3,"L",a+6,e+n,a,e+n+6,a-6,e+n,t+s,e+n):l&&l<0&&a>t+r&&a<t+i-r&&o.splice(3,3,"L",a-6,e,a,e-6,a+6,e,i-s,e),o}},clipRect:function(t,e,i,n){var o="highcharts-"+It++,s=this.createElement("clipPath").attr({id:o}).add(this.defs);return(t=this.rect(t,e,i,n,0).add(s)).id=o,t.clipPath=s,t},text:function(t,e,i,n){var o=Lt||!At&&this.forExport,s={};return n&&!this.forExport?this.html(t,e,i):(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),(t||0===t)&&(s.text=t),t=this.createElement("text").attr(s),o&&t.css({position:"absolute"}),n||(t.xSetter=function(t,e,i){var n,o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(o=0;o<s.length;o++)(n=s[o]).getAttribute(e)===r&&n.setAttribute(e,t);i.setAttribute(e,t)}),t)},fontMetrics:function(t,e){t=t||this.style.fontSize,e&&ct.getComputedStyle&&(e=e.element||e,t=ct.getComputedStyle(e,"").fontSize);var n=(t=/px/.test(t)?i(t):/em/.test(t)?12*parseFloat(t):12)<24?t+4:ut(1.2*t);return{h:n,b:ut(.8*n),f:t}},label:function(i,n,o,s,r,a,l,c,u){function d(){var e,i;e=S.element.style,g=(void 0===v||void 0===y||C.styles.textAlign)&&S.textStr&&S.getBBox(),C.width=(v||g.width||0)+2*T+E,C.height=(y||g.height||0)+2*T,x=T+k.fontMetrics(e&&e.fontSize,S).b,w&&(m||(e=ut(-P*T),i=c?-x:0,C.box=m=s?k.symbol(s,e,i,C.width,C.height,M):k.rect(e,i,C.width,C.height,0,M[jt]),m.attr("fill",Ft).add(C)),m.isImg||m.attr(t({width:ut(C.width),height:ut(C.height)},M)),M=null)}function p(){var t,e=(e=C.styles)&&e.textAlign,i=E+T*(1-P);t=c?0:x,h(v)&&g&&("center"===e||"right"===e)&&(i+={center:.5,right:1}[e]*(v-g.width)),i===S.x&&t===S.y||(S.attr("x",i),t!==O&&S.attr("y",t)),S.x=i,S.y=t}function f(t,e){m?m.attr(t,e):M[t]=e}var m,g,v,y,_,b,x,w,k=this,C=k.g(u),S=k.text("",0,0,l).attr({zIndex:1}),P=0,T=3,E=0,A=0,M={};C.onAdd=function(){S.add(C),C.attr({text:i||0===i?i:"",x:n,y:o}),m&&h(r)&&C.attr({anchorX:r,anchorY:a})},C.widthSetter=function(t){v=t},C.heightSetter=function(t){y=t},C.paddingSetter=function(t){h(t)&&t!==T&&(T=t,p())},C.paddingLeftSetter=function(t){h(t)&&t!==E&&(E=t,p())},C.alignSetter=function(t){P={left:0,center:.5,right:1}[t]},C.textSetter=function(t){t!==O&&S.textSetter(t),d(),p()},C["stroke-widthSetter"]=function(t,e){t&&(w=!0),A=t%2/2,f(e,t)},C.strokeSetter=C.fillSetter=C.rSetter=function(t,e){"fill"===e&&t&&(w=!0),f(e,t)},C.anchorXSetter=function(t,e){r=t,f(e,t+A-_)},C.anchorYSetter=function(t,e){a=t,f(e,t-b)},C.xSetter=function(t){C.x=t,P&&(t-=P*((v||g.width)+T)),_=ut(t),C.attr("translateX",_)},C.ySetter=function(t){b=C.y=ut(t),C.attr("translateY",b)};var D=C.css;return t(C,{css:function(t){if(t){var i={};t=e(t);Vt(C.textProps,function(e){t[e]!==O&&(i[e]=t[e],delete t[e])}),S.css(i)}return D.call(C,t)},getBBox:function(){return{width:g.width+2*T,height:g.height+2*T,x:g.x-T,y:g.y-T}},shadow:function(t){return m&&m.shadow(t),C},destroy:function(){Kt(C.element,"mouseenter"),Kt(C.element,"mouseleave"),S&&(S=S.destroy()),m&&(m=m.destroy()),L.prototype.destroy.call(C),C=k=d=p=f=null}})}},$=he,t(L.prototype,{htmlCss:function(e){var i=this.element;return(i=e&&"SPAN"===i.tagName&&e.width)&&(delete e.width,this.textWidth=i,this.updateTransform()),this.styles=t(this.styles,e),f(this.element,e),this},htmlGetBBox:function(){var t=this.element,e=this.bBox;return e||("text"===t.nodeName&&(t.style.position="absolute"),e=this.bBox={x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}),e},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,n=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,a=this.textAlign||"left",l={left:0,center:.5,right:1}[a],c=this.shadows;if(f(e,{marginLeft:n,marginTop:o}),c&&Vt(c,function(t){f(t,{marginLeft:n+1,marginTop:o+1})}),this.inverted&&Vt(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var u,d=this.rotation,m=i(this.textWidth),g=[d,a,e.innerHTML,this.textWidth].join(",");g!==this.cTT&&(u=t.fontMetrics(e.style.fontSize).b,h(d)&&this.setSpanRotation(d,l,u),(c=p(this.elemWidth,e.offsetWidth))>m&&/[ \-]/.test(e.textContent||e.innerText)&&(f(e,{width:m+"px",display:"block",whiteSpace:"normal"}
12),c=m),this.getSpanCorrection(c,u,l,d,a)),f(e,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),St&&(u=e.offsetHeight),this.cTT=g}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},o=kt?"-ms-transform":St?"-webkit-transform":Pt?"MozTransform":wt?"-o-transform":"";n[o]=n.transform="rotate("+t+"deg)",n[o+(Pt?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",f(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),t(he.prototype,{html:function(e,i,n){var o=this.createElement("span"),s=o.element,r=o.renderer;return o.textSetter=function(t){t!==s.innerHTML&&delete this.bBox,s.innerHTML=this.textStr=t},o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),o[e]=t,o.htmlUpdateTransform()},o.attr({text:e,x:ut(i),y:ut(n)}).css({position:"absolute",whiteSpace:"nowrap",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),o.css=o.htmlCss,r.isSVG&&(o.add=function(e){var i,n=r.box.parentNode,a=[];if(this.parentGroup=e){if(!(i=e.div)){for(;e;)a.push(e),e=e.parentGroup;Vt(a.reverse(),function(e){var o;i=e.div=e.div||m($t,{className:u(e.element,"class")},{position:"absolute",left:(e.translateX||0)+"px",top:(e.translateY||0)+"px"},i||n),o=i.style,t(e,{translateXSetter:function(t,i){o.left=t+"px",e[i]=t,e.doTransform=!0},translateYSetter:function(t,i){o.top=t+"px",e[i]=t,e.doTransform=!0},visibilitySetter:function(t,e){o[e]=t}})})}}else i=n;return i.appendChild(s),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}}),!At&&!Lt){le={init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],n=["position: ","absolute",";"],o=e===$t;("shape"===e||o)&&n.push("left:0;top:0;width:1px;height:1px;"),n.push("visibility: ",o?"hidden":"visible"),i.push(' style="',n.join(""),'"/>'),e&&(i=o||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=m(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,n=e.box;n=t?t.element||t:n;return t&&t.inverted&&e.invertChild(i,n),n.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:L.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=vt(t*bt),i=yt(t*bt);f(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):Ft})},getSpanCorrection:function(t,e,i,n,o){var s,r=n?vt(n*bt):1,a=n?yt(n*bt):0,l=p(this.elemHeight,this.element.offsetHeight);this.xCorr=r<0&&-t,this.yCorr=a<0&&-l,s=r*a<0,this.xCorr+=a*e*(s?1-i:i),this.yCorr-=r*e*(n?s?i:1-i:1),o&&"left"!==o&&(this.xCorr-=t*i*(r<0?-1:1),n&&(this.yCorr-=l*i*(a<0?-1:1)),f(this.element,{textAlign:o}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)r(t[e])?i[e]=ut(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i=this;return t?(c(e=t.members,i),e.push(i),i.destroyClip=function(){c(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:Ct?"inherit":"rect(auto)"}),i.css(t)},css:L.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&T(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),L.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=ct.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var n;return 9!==(n=(t=t.split(/[ ,]/)).length)&&11!==n||(t[n-4]=t[n-2]=i(t[n-2])-10*e),t.join(" ")},shadow:function(t,e,n){var o,s,r,a,l,c,h,u=[],d=this.element,f=this.renderer,g=d.style,v=d.path;if(v&&"string"!=typeof v.value&&(v="x"),l=v,t){for(c=p(t.width,3),h=(t.opacity||.15)/c,o=1;o<=3;o++)a=2*c+1-2*o,n&&(l=this.cutOffPath(v.value,a+.5)),r=['<shape isShadow="true" strokeweight="',a,'" filled="false" path="',l,'" coordsize="10 10" style="',d.style.cssText,'" />'],s=m(f.prepVML(r),null,{left:i(g.left)+p(t.offsetX,1),top:i(g.top)+p(t.offsetY,1)}),n&&(s.cutOff=a+1),r=['<stroke color="',t.color||"black",'" opacity="',h*o,'"/>
12'],m(f.prepVML(r),null,null,s),e?e.element.appendChild(s):d.parentNode.insertBefore(s,d),u.push(s);this.shadows=u}return this},updateShadows:Nt,setAttr:function(t,e){Ct?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){this.element.className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName("stroke")[0]||m(this.renderer.prepVML(["<stroke/>"]),null,null,i))[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var n=this.shadows;t=t||[];if(this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),n)for(i=n.length;i--;)n[i].path=n[i].cutOff?this.cutOffPath(t,n[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var n=i.nodeName;"SPAN"===n?i.style.color=t:"IMG"!==n&&(i.filled=t!==Ft,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},opacitySetter:Nt,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-ut(yt(t*bt)+1)+"px",i.top=ut(vt(t*bt))+"px"},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,r(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t="visible"),this.shadows&&Vt(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,Ct||(i.style[e]=t?"visible":"hidden"),e="top"),i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}},rt.VMLElement=le=g(L,le),le.prototype.ySetter=le.prototype.widthSetter=le.prototype.heightSetter=le.prototype.xSetter;var ue={Element:le,isIE8:xt.indexOf("MSIE 8.0")>-1,init:function(e,i,n,o){var s;if(this.alignedObjects=[],s=(o=this.createElement($t).css(t(this.getStyle(o),{position:"relative"}))).element,e.appendChild(o.element),this.isVML=!0,this.box=s,this.boxWrapper=o,this.cache={},this.setSize(i,n,!1),!lt.namespaces.hcv){lt.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{lt.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(t){lt.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(e,i,n,s){var r=this.createElement(),a=o(e);return t(r,{members:[],left:(a?e.x:e)+1,top:(a?e.y:i)+1,width:(a?e.width:n)-1,height:(a?e.height:s)-1,getCSS:function(e){var i=(s=e.element).nodeName,n=(e=e.inverted,this.top-("shape"===i?s.offsetTop:0)),o=this.left,s=o+this.width,r=n+this.height;n={clip:"rect("+ut(e?o:n)+"px,"+ut(e?r:s)+"px,"+ut(e?s:r)+"px,"+ut(e?n:o)+"px)"};return!e&&Ct&&"DIV"===i&&t(n,{width:s+"px",height:r+"px"}),n},updateClipping:function(){Vt(r.members,function(t){t.element&&t.css(r.getCSS(t))})}})},color:function(t,e,i,n){var o,s,r,a=this,l=/^rgba/,c=Ft;if(t&&t.linearGradient?r="gradient":t&&t.radialGradient&&(r="pattern"),r){var h,u,d,p,f,g,v,y,_=t.linearGradient||t.radialGradient,b="",x=(t=t.stops,[]),w=function(){s=['<fill colors="'+x.join(",")+'" opacity="',f,'" o:opacity2="',p,'" type="',r,'" ',b,'focus="100%" method="any" />'],m(a.prepVML(s),null,null,e)};if(d=t[0],y=t[t.length-1],d[0]>0&&t.unshift([0,d[1]]),y[0]<1&&t.push([1,y[1]]),Vt(t,function(t,e){l.test(t[1])?(o=ae(t[1]),h=o.get("rgb"),u=o.get("a")):(h=t[1],u=1),x.push(100*t[0]+"% "+h),e?(f=u,g=h):(p=u,v=h)}),"fill"===i)if("gradient"===r)i=_.x1||_[0]||0,t=_.y1||_[1]||0,d=_.x2||_[2]||0,_=_.y2||_[3]||0,b='angle="'+(90-180*ht.atan((_-t)/(d-i))/_t)+'"',w();else{var k,C=2*(c=_.r),S=2*c,P=_.cx,T=_.cy,E=e.radialReference;c=function(){E&&(k=n.getBBox(),P+=(E[0]-k.x)/k.width-.5,T+=(E[1]-k.y)/k.height-.5,C*=E[2]/k.width,S*=E[2]/k.height),b='src="'+j.global.VMLRadialGradientURL+'" size="'+C+","+S+'" origin="0.5,0.5" position="'+P+","+T+'" color2="'+v+'" ',w()};n.added?c():n.onAdd=c,c=g}else c=h}else l.test(t)&&"IMG"!==e.tagName?(o=ae(t),s=["<",i,' opacity="',o.get("a"),'"/>'],m(this.prepVML(s),null,null,e),c=o.get("rgb")):((c=e.getElementsByTagName(i)).length&&(c[0].opacity=1,c[0].type="solid"),c=t);return c},prepVML:function(t){var e=this.isIE8;t=t.join("");return e?t=-1===(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />')).indexOf('style="')?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);'):t=t.replace("<","<hcv:"),t},text:he.prototype.html,path:function(e){var i={coordsize:"10 10"};return s(e)?i.d=e:o(e)&&t(i,e),this.createElement("shape").attr(i)}
12,circle:function(t,e,i){var n=this.symbol("circle");return o(t)&&(i=t.r,e=t.y,t=t.x),n.isCircle=!0,n.r=i,n.attr({x:t,y:e})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,class:"highcharts-"+t}),this.createElement($t).attr(e)},image:function(t,e,i,n,o){var s=this.createElement("img").attr({src:t});return arguments.length>1&&s.attr({x:e,y:i,width:n,height:o}),s},createElement:function(t){return"rect"===t?this.symbol(t):he.prototype.createElement.call(this,t)},invertChild:function(t,e){var n=this,o=e.style,s="IMG"===t.tagName&&t.style;f(t,{flip:"x",left:i(o.width)-(s?i(s.top):1),top:i(o.height)-(s?i(s.left):1),rotation:-90}),Vt(t.childNodes,function(e){n.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,o){var s=o.start,r=o.end,a=o.r||i||n,l=(i=o.innerR,n=vt(s),yt(s)),c=vt(r),h=yt(r);return r-s===0?["x"]:(s=["wa",t-a,e-a,t+a,e+a,t+a*n,e+a*l,t+a*c,e+a*h],o.open&&!i&&s.push("e","M",t,e),s.push("at",t-i,e-i,t+i,e+i,t+i*c,e+i*h,t+i*n,e+i*l,"x","e"),s.isArc=!0,s)},circle:function(t,e,i,n,o){return o&&(i=n=2*o.r),o&&o.isCircle&&(t-=i/2,e-=n/2),["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,o){return he.prototype.symbols[h(o)&&o.r?"callout":"square"].call(0,t,e,i,n,o)}}};rt.VMLRenderer=le=function(){this.init.apply(this,arguments)},le.prototype=e(he.prototype,ue),$=le}he.prototype.measureSpanWidth=function(t,e){var i,n=lt.createElement("span");return i=lt.createTextNode(t),n.appendChild(i),f(n,e),this.box.appendChild(n),i=n.offsetWidth,T(n),i},Lt&&(rt.CanVGRenderer=le=function(){Et="http://www.w3.org/1999/xhtml"},le.prototype.symbols={},ce=function(){function t(){var t,i=e.length;for(t=0;t<i;t++)e[t]();e=[]}var e=[];return{push:function(i,n){0===e.length&&Ut(n,t),e.push(i)}}}(),$=le),D.prototype={addLabel:function(){var e,i=this.axis,n=i.options,o=i.chart,s=i.horiz,a=i.categories,c=i.names,u=this.pos,d=n.labels,f=d.rotation,m=i.tickPositions,g=(s=s&&a&&!d.step&&!
12d.staggerLines&&!d.rotation&&o.plotWidth/m.length||!s&&(o.margin[3]||.33*o.chartWidth),u===m[0]),v=u===m[m.length-1],y=(c=a?p(a[u],c[u],u):u,a=this.label,m.info);i.isDatetimeAxis&&y&&(e=n.dateTimeLabelFormats[y.higherRanks[u]||y.unitName]),this.isFirst=g,this.isLast=v,n=i.labelFormatter.call({axis:i,chart:o,isFirst:g,isLast:v,dateTimeLabelFormat:e,value:i.isLog?E(l(c)):c}),u=s&&{width:ft(1,ut(s-2*(d.padding||10)))+"px"},h(a)?a&&a.attr({text:n}).css(u):(e={align:i.labelAlign},r(f)&&(e.rotation=f),s&&d.ellipsis&&(u.HcHeight=i.len/m.length),this.label=a=h(n)&&d.enabled?o.renderer.text(n,0,0,d.useHTML).attr(e).css(t(u,d.style)).add(i.labelGroup):null,i.tickBaseline=o.renderer.fontMetrics(d.style.fontSize,a).b,f&&2===i.side&&(i.tickBaseline*=vt(f*bt))),this.yOffset=a?p(d.y,i.tickBaseline+(2===i.side?8:-a.getBBox().height/2)):0},getLabelSize:function(){var t=this.label,e=this.axis;return t?t.getBBox()[e.horiz?"height":"width"]:0},getLabelSides:function(){var t,e=this.label.getBBox(),i=(t=this.axis).horiz,n=t.options.labels;e=i?e.width:e.height;return[t=i?n.x-e*{left:0,center:.5,right:1}[t.labelAlign]:0,i?e+t:e]},handleOverflow:function(t,e){var i,n,o,s=!0,r=this.axis,a=this.isFirst,l=this.isLast,c=r.horiz?e.x:e.y,h=r.reversed,u=r.tickPositions,d=(p=this.getLabelSides())[0],p=p[1],f=this.label.line;if(i=f||0,n=r.labelEdge,o=r.justifyLabels&&(a||l),n[i]===O||c+d>n[i]?n[i]=c+p:o||(s=!1),o){i=(n=r.justifyToPlot)?r.pos:0,n=n?i+r.len:r.chart.chartWidth;do{t+=a?1:-1,o=r.ticks[u[t]]}while(u[t]&&(!o||!o.label||o.label.line!==f));r=o&&o.label.xy&&o.label.xy.x+o.getLabelSides()[a?0:1],a&&!h||l&&h?c+d<i&&(c=i-d,o&&c+p>r&&(s=!1)):c+p>n&&(c=n-p,o&&c+d<r&&(s=!1)),e.x=c}return s},getPosition:function(t,e,i,n){var o=this.axis,s=o.chart,r=n&&s.oldChartHeight||s.chartHeight;return{x:t?o.translate(e+i,null,null,n)+o.transB:o.left+o.offset+(o.opposite?(n&&s.oldChartWidth||s.chartWidth)-o.right-o.left:0),y:t?r-o.bottom+o.offset-(o.opposite?o.height:0):r-o.translate(e+i,null,null,n)-o.transB}},getLabelPosition:function(t,e,i,n,o,s,r,a){var l=this.axis,c=l.transA,h=l.reversed,u=l.staggerLines;t=t+o.x-(s&&n?s*c*(h?-1:1):0),e=e+this.yOffset-(s&&!n?s*c*(h?1:-1):0);return u&&(i.line=r/(a||1)%u,e+=i.line*(l.labelOffset/u)),{x:t,y:e}},getMarkPath:function(t,e,i,n,o,s){return s.crispLine(["M",t,e,"L",t+(o?0:-i),e+(o?i:0)],n)},render:function(t,e,i){var n=this.axis,o=n.options,s=n.chart.renderer,r=n.horiz,a=this.type,l=this.label,c=this.pos,h=o.labels,u=this.gridLine,d=a?a+"Tick":"tick",f=o[(y=a?a+"Grid":"grid")+"LineWidth"],m=o[y+"LineColor"],g=o[y+"LineDashStyle"],v=o[d+"Length"],y=o[d+"Width"]||0,_=o[d+"Color"],b=o[d+"Position"],x=(d=this.mark,h.step),w=!0,k=n.tickmarkOffset,C=(S=this.getPosition(r,c,k,e)).x,S=S.y,P=r&&C===n.pos+n.len||!r&&S===n.pos?-1:1;i=p(i,1);this.isActive=!0,f&&(c=n.getPlotLinePath(c+k,f*P,e,!0),u===O&&(u={stroke:m,"stroke-width":f},g&&(u.dashstyle=g),a||(u.zIndex=1),e&&(u.opacity=0),this.gridLine=u=f?s.path(c).attr(u).add(n.gridGroup):null),!e&&u&&c&&u[this.isNew?"attr":"animate"]({d:c,opacity:i})),y&&v&&("inside"===b&&(v=-v),n.opposite&&(v=-v),a=this.getMarkPath(C,S,v,y*P,r,s),d?d.animate({d:a,opacity:i}):this.mark=s.path(a).attr({stroke:_,"stroke-width":y,opacity:i}).add(n.axisGroup)),l&&!isNaN(C)&&(l.xy=S=this.getLabelPosition(C,S,l,r,h,k,t,x),this.isFirst&&!this.isLast&&!p(o.showFirstLabel,1)||this.isLast&&!this.isFirst&&!p(o.showLastLabel,1)?w=!1:!n.isRadial&&!h.step&&!h.rotation&&!e&&0!==i&&(w=this.handleOverflow(t,S)),x&&t%x&&(w=!1),w&&!isNaN(S.y)?(S.opacity=i,l[this.isNew?"attr":"animate"](S),this.isNew=!1):l.attr("y",-9999))},destroy:function(){P(this,this.axis)}},rt.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},rt.PlotLineOrBand.prototype={render:function(){var t,i=this,n=i.axis,o=n.horiz,s=(n.pointRange||0)/2,r=i.options,l=r.label,c=i.label,u=r.width,d=r.to,p=r.from,f=h(p)&&h(d),m=r.value,g=r.dashStyle,v=i.svgElem,y=[],_=r.color,b=r.zIndex,x=r.events,w={},k=n.chart.renderer;if(n.isLog&&(p=a(p),d=a(d),m=a(m)),u)y=n.getPlotLinePath(m,u),w={stroke:_,"stroke-width":u},g&&(w.dashstyle=g);else{if(!f)return;p=ft(p,n.min-s),d=mt(d,n.max+s),y=n.getPlotBandPath(p,d,r),_&&(w.fill=_),r.borderWidth&&(w.stroke=r.borderColor,w["stroke-width"]=r.borderWidth)}if(h(b)&&(w.zIndex=b),v)y?v.animate({d:y},null,v.onGetPath):(v.hide(),v.onGetPath=function(){v.show()},c&&(i.label=c=c.destroy()));else if(y&&y.length&&(i.svgElem=v=k.path(y).attr(w).add(),x))for(t in s=function(t){v.on(t,function(e){x[t].apply(i,[e])})},x)s(t);return l&&h(l.text)&&y&&y.length&&n.width>0&&n.height>0?(l=e({align:o&&f&&"center",x:o?!f&&4:10,verticalAlign:!o&&f&&"middle",y:o?f?16:10:f?6:-4,rotation:o&&!f&&90},l),c||(w={align:l.textAlign||l.align,rotation:l.rotation},h(b)&&(w.zIndex=b),i.label=c=k.text(l.text,0,0,l.useHTML).attr(w).css(l.style).add()),n=[y[1],y[4],f?y[6]:y[1]],f=[y[2],y[5],f?y[7]:y[2]],y=C(n),o=C(f),c.align(l,!1,{x:y,y:o,width:S(n)-y,height:S(f)-o}),c.show()):c&&c.hide(),i},destroy:function(){c(this.axis.plotLinesAndBands,this),delete this.axis,P(this)}},I.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#C0C0C0",labels:Ht,lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return v(this.total,-1)},style:Ht.style}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{x:0,y:-15},title:{rotation:0}},init:function(t,e){var i=e.isX;this.horiz=t.inverted?!i:i,this.coll=(this.isXAxis=i)?"xAxis":"yAxis",this.opposite=e.opposite,this.side=e.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var n=(s=this.options).type
13;this.labelFormatter=s.labels.formatter||this.defaultLabelFormatter,this.userOptions=e,this.minPixelPadding=0,this.chart=t,this.reversed=s.reversed,this.zoomEnabled=!1!==s.zoomEnabled,this.categories=s.categories||"category"===n,this.names=[],this.isLog="logarithmic"===n,this.isDatetimeAxis="datetime"===n,this.isLinked=
13h(s.linkedTo),this.tickmarkOffset=this.categories&&"between"===s.tickmarkPlacement&&1===p(s.tickInterval,1)?.5:0,this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=s.minRange||s.maxZoom,this.range=s.range,this.offset=s.offset||0,this.stacks={},this.oldStacks={},this.min=this.max=null,this.crosshair=p(s.crosshair,d(t.options.tooltip.crosshairs)[i?0:1],!1);var o,s=this.options.events;for(o in-1===Yt(this,t.axes)&&(i&&!this.isColorAxis?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&i&&this.reversed===O&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine,s)Xt(this,o,s[o]);this.isLog&&(this.val2lin=a,this.lin2val=l)},setOptions:function(t){this.options=e(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],e(j[this.coll],t))},defaultLabelFormatter:function(){var t,e=this.axis,i=this.value,n=e.categories,o=this.dateTimeLabelFormat,s=j.lang.numericSymbols,r=s&&s.length,a=e.options.labels.format;e=e.isLog?i:e.tickInterval;if(a)t=b(a,this);else if(n)t=i;else if(o)t=B(o,i);else if(r&&e>=1e3)for(;r--&&t===O;)e>=(n=Math.pow(1e3,r+1))&&null!==s[r]&&(t=v(i/n,-1)+s[r]);return t===O&&(t=gt(i)>=1e4?v(i,0):v(i,-1,O,"")),t},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.ignoreMinPadding=t.ignoreMaxPadding=null,t.buildStacks&&t.buildStacks(),Vt(t.series,function(i){var n,o;!i.visible&&e.options.chart.ignoreHiddenSeries||(n=i.options.threshold,t.hasVisibleSeries=!0,t.isLog&&n<=0&&(n=null),t.isXAxis?(n=i.xData).length&&(t.dataMin=mt(p(t.dataMin,n[0]),C(n)),t.dataMax=ft(p(t.dataMax,n[0]),S(n))):(i.getExtremes(),o=i.dataMax,h(i=i.dataMin)&&h(o)&&(t.dataMin=mt(p(t.dataMin,i),i),t.dataMax=ft(p(t.dataMax,o),o)),h(n)&&(t.dataMin>=n?(t.dataMin=n,t.ignoreMinPadding=!0):t.dataMax<n&&(t.dataMax=n,t.ignoreMaxPadding=!0))))})},translate:function(t,e,i,n,o,s){var a=1,l=0,c=n?this.oldTransA:this.transA,h=(n=n?this.oldMin:this.min,this.minPixelPadding);o=(this.options.ordinal||this.isLog&&o)&&this.lin2val;return c||(c=this.transA),i&&(a*=-1,l=this.len),this.reversed&&(l-=(a*=-1)*(this.sector||this.len)),e?(t=t*a+l,t=(t-=h)/c+n,o&&(t=this.lin2val(t))):(o&&(t=this.val2lin(t)),"between"===s&&(s=.5),t=a*(t-n)*c+l+a*h+(r(s)?c*s*this.pointRange:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,n,o){var s,r,a,l=this.chart,c=this.left,h=this.top,u=i&&l.oldChartHeight||l.chartHeight,d=i&&l.oldChartWidth||l.chartWidth;return s=this.transB,o=p(o,this.translate(t,null,null,i)),t=i=ut(o+s),s=r=ut(u-o-s),isNaN(o)?a=!0:this.horiz?(s=h,r=u-this.bottom,(t<c||t>c+this.width)&&(a=!0)):(t=c,i=d-this.right,(s<h||s>h+this.height)&&(a=!0)),a&&!n?null:l.renderer.crispLine(["M",t,s,"L",i,r],e||1)},getLinearTickPositions:function(t,e,i){var n,o=E(dt(e/t)*t),s=E(pt(i/t)*t),a=[];if(e===i&&r(e))return[e];for(e=o;e<=s&&(a.push(e),(e=E(e+t))!==n);)n=e;return a},getMinorTickPositions:function(){var t,e=this.options,i=this.tickPositions,n=this.minorTickInterval,o=[];if(this.isLog)for(t=i.length,e=1;e<t;e++)o=o.concat(this.getLogTickPositions(n,i[e-1],i[e],!0));else if(this.isDatetimeAxis&&"auto"===e.minorTickInterval)(o=o.concat(this.getTimeTicks(this.normalizeTimeTickInterval(n),this.min,this.max,e.startOfWeek)))[0]<this.min&&o.shift();else for(i=this.min+(i[0]-this.min)%n;i<=this.max;i+=n)o.push(i);return o},adjustForMinRange:function(){var t,e,i,n,o,s=this.options,r=this.min,a=this.max,l=this.dataMax-this.dataMin>=this.minRange;if(this.isXAxis&&this.minRange===O&&!this.isLog&&(h(s.min)||h(s.max)?this.minRange=null:(Vt(this.series,function(t){for(o=t.xData,i=t.xIncrement?1:o.length-1;i>0;i--)n=o[i]-o[i-1],(e===O||n<e)&&(e=n)}),this.minRange=mt(5*e,this.dataMax-this.dataMin))),a-r<this.minRange){var c=this.minRange;t=[r-(t=(c-a+r)/2),p(s.min,r-t)],l&&(t[2]=this.dataMin),a=[(r=S(t))+c,p(s.max,r+c)],l&&(a[2]=this.dataMax),(a=C(a))-r<c&&(t[0]=a-c,t[1]=p(s.min,a-c),r=S(t))}this.min=r,this.max=a},setAxisTranslation:function(t){var e,i=this,o=i.max-i.min,s=i.axisPointRange||0,r=0,a=0,l=i.linkedParent,c=!!i.categories,u=i.transA;(i.isXAxis||c||s)&&(l?(r=l.minPointOffset,a=l.pointRangePadding):Vt(i.series,function(t){var l=c?1:i.isXAxis?t.pointRange:i.axisPointRange||0,u=t.options.pointPlacement,d=t.closestPointRange;l>o&&(l=0),s=ft(s,l),r=ft(r,n(u)?0:l/2),a=ft(a,"on"===u?0:l),!t.noSharedTooltip&&h(d)&&(e=h(e)?mt(e,d):d)}),l=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=r*=l,i.pointRangePadding=a*=l,i.pointRange=mt(s,o),i.closestPointRange=e),t&&(i.oldTransA=u),i.translationSlope=i.transA=u=i.len/(o+a||1),i.transB=i.horiz?i.left
13:i.bottom,i.minPixelPadding=u*r},setTickPositions:function(t){var e,i=this,n=i.chart,o=i.options,s=o.startOnTick,l=o.endOnTick,c=i.isLog,u=i.isDatetimeAxis,d=i.isXAxis,f=i.isLinked,m=i.options.tickPositioner,g=o.maxPadding,v=o.minPadding,y=o.tickInterval,_=o.minTickInterval,b=o.tickPixelInterval,k=i.categories;f?(i.linkedParent=n[i.coll][o.linkedTo],n=i.linkedParent.getExtremes(),i.min=p(n.min,n.dataMin),i.max=p(n.max,n.dataMax),o.type!==i.linkedParent.options.type&&Y(11,1)):(i.min=p(i.userMin,o.min,i.dataMin),i.max=p(i.userMax,o.max,i.dataMax)),c&&(!t&&mt(i.min,p(i.dataMin,i.min))<=0&&Y(10,1),i.min=E(a(i.min)),i.max=E(a(i.max))),i.range&&h(i.max)&&(i.userMin=i.min=ft(i.min,i.max-i.range),i.userMax=i.max,i.range=null),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),k||i.axisPointRange||i.usePercentage||f||!h(i.min)||!h(i.max)||!(n=i.max-i.min)||(h(o.min)||h(i.userMin)||!v||!(i.dataMin<0)&&i.ignoreMinPadding||(i.min-=n*v),h(o.max)||h(i.userMax)||!g||!(i.dataMax>0)&&i.ignoreMaxPadding||(i.max+=n*g)),r(o.floor)&&(i.min=ft(i.min,o.floor)),r(o.ceiling)&&(i.max=mt(i.max,o.ceiling)),i.min===i.max||void 0===i.min||void 0===i.max?i.tickInterval=1:f&&!y&&b===i.linkedParent.options.tickPixelInterval?i.tickInterval=i.linkedParent.tickInterval:(i.tickInterval=p(y,k?1:(i.max-i.min)*b/ft(i.len,b)),!h(y)&&i.len<b&&!this.isRadial&&!this.isLog&&!k&&s&&l&&(e=!0,i.tickInterval/=4)),d&&!t&&Vt(i.series,function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)}),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&(i.tickInterval=ft(i.pointRange,i.tickInterval)),!y&&i.tickInterval<_&&(i.tickInterval=_),u||c||y||(i.tickInterval=w(i.tickInterval,null,x(i.tickInterval),p(o.allowDecimals,!(i.tickInterval>1&&i.tickInterval<5&&i.max>1e3&&i.max<9999)))),i.minorTickInterval="auto"===o.minorTickInterval&&i.tickInterval?i.tickInterval/5:o.minorTickInterval,i.tickPositions=t=o.tickPositions?[].concat(o.tickPositions):m&&m.apply(i,[i.min,i.max]),t||(!i.ordinalPositions&&(i.max-i.min)/i.tickInterval>ft(2*i.len,200)&&Y(19,!0),t=u?i.getTimeTicks(i.normalizeTimeTickInterval(i.tickInterval,o.units),i.min,i.max,o.startOfWeek,i.ordinalPositions,i.closestPointRange,!0):c?i.getLogTickPositions(i.tickInterval,i.min,i.max):i.getLinearTickPositions(i.tickInterval,i.min,i.max),e&&t.splice(1,t.length-2),i.tickPositions=t),f||(o=t[0],c=t[t.length-1],u=i.minPointOffset||0,s?i.min=o:i.min-u>o&&t.shift(),l?i.max=c:i.max+u<c&&t.pop(),0===t.length&&h(o)&&t.push((c+o)/2),1===t.length&&(s=gt(i.max)>1e13?1:.001,i.min-=s,i.max+=s))},setMaxTicks:function(){var t=this.chart,e=t.maxTicks||{},i=this.tickPositions,n=this._maxTicksKey=[this.coll,this.pos,this.len].join("-");!this.isLinked&&!this.isDatetimeAxis&&i&&i.length>(e[n]||0)&&!1!==this.options.alignTicks&&(e[n]=i.length),t.maxTicks=e},adjustTickAmount:function(){var t=this._maxTicksKey,e=this.tickPositions,i=this.chart.maxTicks;if(i&&i[t]&&!this.isDatetimeAxis&&!this.categories&&!this.isLinked&&!1!==this.options.alignTicks&&this.min!==O){var n=this.tickAmount,o=e.length;if(this.tickAmount=t=i[t],o<t){for(;e.length<t;)e.push(E(e[e.length-1]+this.tickInterval));this.transA*=(o-1)/(t-1),this.max=e[e.length-1]}h(n)&&t!==n&&(this.isDirty=!0)}},setScale:function(){var t,e,i,n,o=this.stacks;if(this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),n=this.len!==this.oldAxisLength,Vt(this.series,function(t){(t.isDirtyData||t.isDirty||t.xAxis.isDirty)&&(i=!0)}),n||i||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax){if(!this.isXAxis)for(t in o)for(e in o[t])o[t][e].total=null,o[t][e].cum=0;this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickPositions(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=n||this.min!==this.oldMin||this.max!==this.oldMax)}else if(!this.isXAxis)for(t in this.oldStacks&&(o=this.stacks=this.oldStacks),o)for(e in o[t])o[t][e].cum=o[t][e].total;this.setMaxTicks()},setExtremes:function(e,i,n,o,s){var r=this,a=r.chart;n=p(n,!0),s=t(s,{min:e,max:i});Qt(r,"setExtremes",s,function(){r.userMin=e,r.userMax=i,r.eventArgs=s,r.isDirtyExtremes=!0,n&&a.redraw(o)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,o=this.options;return this.allowZoomOutside||(h(i)&&t<=mt(i,p(o.min,i))&&(t=O),h(n)&&e>=ft(n,p(o.max,n))&&(e=O)),this.displayBtn=t!==O||e!==O,this.setExtremes(t,e,!1,O,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=(r=this.options).offsetLeft||0,i=this.horiz,n=p(r.width,t.plotWidth-e+(r.offsetRight||0)),o=p(r.height,t.plotHeight),s=p(r.top,t.plotTop),r=p(r.left,t.plotLeft+e);(e=/%$/).test(o)&&(o=parseInt(o,10)/100*t.plotHeight),e.test(s)&&(s=parseInt(s,10)/100*t.plotHeight+t.plotTop),this.left=r,this.top=s,this.width=n,this.height=o,this.bottom=t.chartHeight-o-s,this.right=t.chartWidth-n-r,this.len=ft(i?n:o,0),this.pos=i?r:s},getExtremes:function(){var t=this.isLog;return{min:t?E(l(this.min)):this.min,max:t?E(l(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=(i=this.isLog)?l(this.min):this.min,i=i?l
13(this.max):this.max;return e>t||null===t?t=e:i<t&&(t=i),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){return(t=(p(t,0)-90*this.side+720)%360)>15&&t<165?"right":t>195&&t<345?"left":"center"},getOffset:function(){var t,e,i,n,o,s,r,a,l,c=this,u=(S=c.chart).renderer,d=c.options,f=c.tickPositions,m=c.ticks,g=c.horiz,v=c.side,y=S.inverted?[1,0,3,2][v]:v,_=0,b=0,x=d.title,w=d.labels,k=0,C=S.axisOffset,S=S.clipOffset,P=[-1,1,1,-1][v],T=1,E=p(w.maxStaggerLines,5);if(c.hasData=t=c.hasVisibleSeries||h(c.min)&&h(c.max)&&!!f,c.showAxis=e=t||p(d.showEmpty,!0),c.staggerLines=c.horiz&&w.staggerLines,c.axisGroup||(c.gridGroup=u.g("grid").attr({zIndex:d.gridZIndex||1}).add(),c.axisGroup=u.g("axis").attr({zIndex:d.zIndex||2}).add(),c.labelGroup=u.g("axis-labels").attr({zIndex:w.zIndex||7}).addClass("highcharts-"+c.coll.toLowerCase()+"-labels").add()),t||c.isLinked){if(c.labelAlign=p(w.align||c.autoLabelAlign(w.rotation)),Vt(f,function(t){m[t]?m[t].addLabel():m[t]=new D(c,t)}),c.horiz&&!c.staggerLines&&E&&!w.rotation){for(t=c.reversed?[].concat(f).reverse():f;T<E;){for(o=[],s=!1,n=0;n<t.length;n++)r=t[n],l=n%T,(a=(a=m[r].label&&m[r].label.getBBox())?a.width:0)&&(r=c.translate(r),o[l]!==O&&r<o[l]&&(s=!0),o[l]=r+a);if(!s)break;T++}T>1&&(c.staggerLines=T)}Vt(f,function(t){0!==v&&2!==v&&{1:"left",3:"right"}[v]!==c.labelAlign||(k=ft(m[t].getLabelSize(),k))}),c.staggerLines&&(k*=c.staggerLines,c.labelOffset=k)}else for(n in m)m[n].destroy(),delete m[n];x&&x.text&&!1!==x.enabled&&(c.axisTitle||(c.axisTitle=u.text(x.text,0,0,x.useHTML).attr({zIndex:7,rotation:x.rotation||0,align:x.textAlign||{low:"left",middle:"center",high:"right"}[x.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(x.style).add(c.axisGroup),c.axisTitle.isNew=!0),e&&(_=c.axisTitle.getBBox()[g?"height":"width"],b=h(i=x.offset)?0:p(x.margin,g?5:10)),c.axisTitle[e?"show":"hide"]()),c.offset=P*p(d.offset,C[v]),u=2===v?c.tickBaseline:0,g=k+b+(k&&P*(g?p(w.y,c.tickBaseline+8):w.x)-u),c.axisTitleMargin=p(i,g),C[v]=ft(C[v],c.axisTitleMargin+_+P*c.offset,g),S[y]=ft(S[y],2*dt(d.lineWidth/2))},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,o=this.horiz,s=this.left+(i?this.width:0)+n;n=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine(["M",o?this.left:s,o?n:this.top,"L",o?e.chartWidth-this.right:s,o?n:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,e=this.left,n=this.top,o=this.len,s=this.options.title,r=t?e:n,a=this.opposite,l=this.offset,c=i(s.style.fontSize||12);o={low:r+(t?0:o),middle:r+o/2,high:r+(t?o:0)}[s.align],e=(t?n+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+(2===this.side?c:0);return{x:t?o:e+(a?this.width:0)+l+(s.x||0),y:t?e-(a?this.height:0)+l:o+(s.y||0)}},render:function(){var t,e,i,n=this,o=n.horiz,s=n.reversed,r=n.chart,a=r.renderer,c=n.options,u=n.isLog,d=n.isLinked,p=n.tickPositions,f=n.axisTitle,m=n.ticks,g=n.minorTicks,v=n.alternateBands,y=c.stackLabels,_=c.alternateGridColor,b=n.tickmarkOffset,x=c.lineWidth,w=r.hasRendered&&h(n.oldMin)&&!isNaN(n.oldMin),k=n.hasData,C=n.showAxis,S=c.labels.overflow,P=n.justifyLabels=o&&!1!==S;n.labelEdge.length=0,n.justifyToPlot="justify"===S,Vt([m,g,v],function(t){for(var e in t)t[e].isActive=!1}),(k||d)&&(n.minorTickInterval&&!n.categories&&Vt(n.getMinorTickPositions(),function(t){g[t]||(g[t]=new D(n,t,"minor")),w&&g[t].isNew&&g[t].render(null,!0),g[t].render(null,!1,1)}),p.length&&(t=p.slice(),(o&&s||!o&&!s)&&t.reverse(),P&&(t=t.slice(1).concat([t[0]])),Vt(t,function(e,i){P&&(i=i===t.length-1?0:i+1),(!d||e>=n.min&&e<=n.max)&&(m[e]||(m[e]=new D(n,e)),w&&m[e].isNew&&m[e].render(i,!0,.1),m[e].render(i))}),b&&0===n.min&&(m[-1]||(m[-1]=new D(n,-1,null,!0)),m[-1].render(-1))),_&&Vt(p,function(t,o){o%2==0&&t<n.max&&(v[t]||(v[t]=new rt.PlotLineOrBand(n)),e=t+b,i=p[o+1]!==O?p[o+1]+b:n.max,v[t].options={from:u?l(e):e,to:u?l(i):i,color:_},v[t].render(),v[t].isActive=!0)}),n._addedPlotLB||(Vt((c.plotLines||[]).concat(c.plotBands||[]),function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),Vt([m,g,v],function(t){var e,i,n=[],o=H?H.duration||500:0,s=function(){for(i=n.length;i--;)t[n[i]]&&!t[n[i]].isActive&&(t[n[i]].destroy(),delete t[n[i]])};for(e in t)t[e].isActive||(t[e].render(e,!1,0),t[e].isActive=!1,n.push(e));t!==v&&r.hasRendered&&o?o&&setTimeout(s,o):s()}),x&&(o=n.getLinePath(x),n.axisLine?n.axisLine.animate({d:o}):n.axisLine=a.path(o).attr({stroke:c.lineColor,"stroke-width":x,zIndex:7}
13).add(n.axisGroup),n.axisLine[C?"show":"hide"]()),f&&C&&(f[f.isNew?"attr":"animate"](n.getTitlePosition()),f.isNew=!1),y&&y.enabled&&n.renderStackTotals(),n.isDirty=!1},redraw:function(){this.render(),Vt(this.plotLinesAndBands,function(t){t.render()}),Vt(this.series,function(t){t.isDirty=!0})},destroy:function(t){var e,i=this,n=i.stacks,o=i.plotLinesAndBands;for(e in t||Kt(i),n)P(n[e]),n[e]=null;for(Vt([i.ticks,i.minorTicks,i.alternateBands],function(t){P(t)}),t=o.length;t--;)o[t].destroy();Vt("stackTotalGroup,axisLine,axisTitle,axisGroup,cross,gridGroup,labelGroup".split(","),function(t){i[t]&&(i[t]=i[t].destroy())}),this.cross&&this.cross.destroy()},drawCrosshair:function(t,e){if(this.crosshair)if(!1===(h(e)||!p(this.crosshair.snap,!0)))this.hideCrosshair();else{var i,n=this.crosshair,o=n.animation;p(n.snap,!0)?h(e)&&(i=this.chart.inverted!=this.horiz?e.plotX:this.len-e.plotY):i=this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos,null===(i=this.isRadial?this.getPlotLinePath(this.isXAxis?e.x:p(e.stackY,e.y)):this.getPlotLinePath(null,null,null,null,i))?this.hideCrosshair():this.cross?this.cross.attr({visibility:"visible"})[o?"animate":"attr"]({d:i},o):(o={"stroke-width":n.width||1,stroke:n.color||"#C0C0C0",zIndex:n.zIndex||2},n.dashStyle&&(o.dashstyle=n.dashStyle),this.cross=this.chart.renderer.path(i).attr(o).add())}},hideCrosshair:function(){this.cross&&this.cross.hide()}},t(I.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e),n=this.getPlotLinePath(t);return n&&i?n.push(i[4],i[5],i[1],i[2]):n=null,n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,e){var i=new rt.PlotLineOrBand(this,t).render(),n=this.userOptions;return i&&(e&&(n[e]=n[e]||[],n[e].push(t)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,o=e.length;o--;)e[o].id===t&&e[o].destroy();Vt([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){for(o=e.length;o--;)e[o].id===t&&c(e,e[o])})}}),I.prototype.getTimeTicks=function(e,i,n,o){var s,r=[],a={},l=j.global.useUTC,c=new V(i-Z),u=e.unitRange,d=e.count;if(h(i)){u>=U.second&&(c.setMilliseconds(0),c.setSeconds(u>=U.minute?0:d*dt(c.getSeconds()/d))),u>=U.minute&&c[et](u>=U.hour?0:d*dt(c[G]()/d)),u>=U.hour&&c[it](u>=U.day?0:d*dt(c[X]()/d)),u>=U.day&&c[nt](u>=U.month?1:d*dt(c[Q]()/d)),u>=U.month&&(c[ot](u>=U.year?0:d*dt(c[J]()/d)),s=c[tt]()),u>=U.year&&(s-=s%d,c[st](s)),u===U.week&&c[nt](c[Q]()-c[K]()+p(o,1)),i=1,Z&&(c=new V(c.getTime()+Z)),s=c[tt]();o=c.getTime();for(var f=c[J](),m=c[Q](),g=(U.day+(l?Z:6e4*c.getTimezoneOffset()))%U.day;o<n;)r.push(o),u===U.year?o=q(s+i*d,0):u===U.month?o=q(s,f+i*d):l||u!==U.day&&u!==U.week?o+=u*d:o=q(s,f,m+i*d*(u===U.day?1:7)),i++;r.push(o),Vt(qt(r,function(t){return u<=U.hour&&t%U.day===g}),function(t){a[t]="day"})}return r.info=t(e,{higherRanks:a,totalRange:u*d}),r},I.prototype.normalizeTimeTickInterval=function(t,e){var i,n=e||[["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]],o=n[n.length-1],s=U[o[0]],r=o[1];for(i=0;i<n.length&&(o=n[i],s=U[o[0]],r=o[1],!(n[i+1]&&t<=(s*r[r.length-1]+U[n[i+1][0]])/2));i++);return s===U.year&&t<5*s&&(r=[1,2,5]),{unitRange:s,count:n=w(t/s,r,"year"===o[0]?ft(x(t/s),1):1),unitName:o[0]}},I.prototype.getLogTickPositions=function(t,e,i,n){var o=this.options,s=this.len,r=[];if(n||(this._minorAutoInterval=null),t>=.5)t=ut(t),r=this.getLinearTickPositions(t,e,i);else if(t>=.08){var c,h,u,d,f;for(s=dt(e),o=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];s<i+1&&!f;s++)for(h=o.length,c=0;c<h&&!f;c++)(u=a(l(s)*o[c]))>e&&(!n||d<=i)&&d!==O&&r.push(d),d>i&&(f=!0),d=u}else e=l(e),i=l(i),t=w(t=p("auto"===(t=o[n?"minorTickInterval":"tickInterval"])?null:t,this._minorAutoInterval,(i-e)*(o.tickPixelInterval/(n?5:1))/((n?s/this.tickPositions.length:s)||1)),null,x(t)),r=Gt(this.getLinearTickPositions(t,e,i),a),n||(this._minorAutoInterval=t/5);return n||(this.tickInterval=t),r};var de,pe=rt.Tooltip=function(){this.init.apply(this,arguments)};pe.prototype={init:function(t,e){var n=e.borderWidth,o=e.style,s=i(o.padding);this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:s,fill:e.backgroundColor,"stroke-width":n,r:e.borderRadius,zIndex:8}).css(o).css({padding:0}).add().attr({y:-9999}),Lt||this.label.shadow(e.shadow),this.shared=e.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(e,i,n,o){var s=this,r=s.now,a=!1!==s.options.animation&&!s.isHidden&&(gt(e-r.x)>1||gt(i-r.y)>1),l=s.followPointer||s.len>1;t(r,{x:a?(2*r.x+e)/3:e,y:a?(r.y+i)/2:i,anchorX:l?O:a?(2*r.anchorX+n)/3:n,anchorY:l?O:a?(r.anchorY+o)/2:o}),s.label.attr(r),a&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){s&&s.move(e,i,n,o)},32))},hide:function(t){var e,i=this;clearTimeout(this.hideTimer),this.isHidden||(e=this.chart.hoverPoints,this.hideTimer=setTimeout(function(){i.label.fadeOut(),i.isHidden=!0},p(t,this.options.hideDelay,500)),e&&Vt(e,function(t){t.setState()}),this.chart.hoverPoints=null)},getAnchor:function(t,e){var i,n,o=this.chart,s=o.inverted,r=o.plotTop,a=0,l=0;return i=(t=d(t))[0].tooltipPos,this.followPointer&&e&&(e.chartX===O&&(e=o.pointer.normalize(e)),i=[e.chartX-o.plotLeft,e.chartY-r]),i||(Vt(t,function(t){n=t.series.yAxis,a+=t.plotX,l+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!s&&n?n.top-r:0)}),a/=t.length,l/=t.length,i=[s?o.plotWidth-l:a,this.shared&&!s&&t.length>1&&e?e.chartY-r:s?o.plotHeight-a:l]),Gt(i,ut)}
13,getPosition:function(t,e,i){var n,o=this.chart,s=this.distance,r={},a=["y",o.chartHeight,e,i.plotY+o.plotTop],l=["x",o.chartWidth,t,i.plotX+o.plotLeft],c=i.ttBelow||o.inverted&&!i.negative||!o.inverted&&i.negative,h=function(t,e,i,n){var o=i<n-s;e=n+s+i<e,i=n-s-i;if(n+=s,c&&e)r[t]=n;else if(!c&&o)r[t]=i;else if(o)r[t]=i;else{if(!e)return!1;r[t]=n}},u=function(t,e,i,n){if(n<s||n>e-s)return!1;r[t]=n<i/2?1:n>e-i/2?e-i-2:n-i/2},d=function(t){var e=a;a=l,l=e,n=t},p=function(){!1!==h.apply(0,a)?!1===u.apply(0,l)&&!n&&(d(!0),p()):n?r.x=r.y=0:(d(!0),p())};return(o.inverted||this.len>1)&&d(),p(),r},defaultFormatter:function(t){var e,i=this.points||d(this),n=i[0].series;return e=[t.tooltipHeaderFormatter(i[0])],Vt(i,function(t){n=t.series,e.push(n.tooltipFormatter&&n.tooltipFormatter(t)||t.point.tooltipFormatter(n.tooltipOptions.pointFormat))}),e.push(t.options.footerFormat||""),e.join("")},refresh:function(t,e){var i,n,o,s=this.chart,r=this.label,a=this.options,l={},c=[];o=a.formatter||this.defaultFormatter;l=s.hoverPoints;var h,u=this.shared;clearTimeout(this.hideTimer),this.followPointer=d(t)[0].series.tooltipOptions.followPointer,i=(n=this.getAnchor(t,e))[0],n=n[1],!u||t.series&&t.series.noSharedTooltip?l=t.getLabelConfig():(s.hoverPoints=t,l&&Vt(l,function(t){t.setState()}),Vt(t,function(t){t.setState("hover"),c.push(t.getLabelConfig())}),(l={x:t[0].category,y:t[0].y}).points=c,this.len=c.length,t=t[0]),o=o.call(l,this),l=t.series,this.distance=p(l.tooltipOptions.distance,16),!1===o?this.hide():(this.isHidden&&(ee(r),r.attr("opacity",1).show()),r.attr({text:o}),h=a.borderColor||t.color||l.color||"#606060",r.attr({stroke:h}),this.updatePosition({plotX:i,plotY:n,negative:t.negative,ttBelow:t.ttBelow}),this.isHidden=!1),Qt(s,"tooltipRefresh",{text:o,x:i+s.plotLeft,y:n+s.plotTop,borderColor:h})},updatePosition:function(t){var e=this.chart,i=this.label;i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(ut(i.x),ut(i.y),t.plotX+e.plotLeft,t.plotY+e.plotTop)},tooltipHeaderFormatter:function(t){var e,i=t.series,n=(a=i.tooltipOptions).dateTimeLabelFormats,o=a.xDateFormat,s=(l=i.xAxis)&&"datetime"===l.options.type&&r(t.key),a=a.headerFormat,l=l&&l.closestPointRange;if(s&&!o){if(l){for(e in U)if(U[e]>=l||U[e]<=U.day&&t.key%U[e]>0){o=n[e];break}}else o=n.day;o=o||n.year}return s&&o&&(a=a.replace("{point.key}","{point.key:"+o+"}")),b(a,{point:t,series:i})}},F=lt.documentElement.ontouchstart!==O;var fe=rt.Pointer=function(t,e){this.init(t,e)};if(fe.prototype={init:function(t,e){var i,n=(s=e.chart).events,o=Lt?"":s.zoomType,s=t.inverted;this.options=e,this.chart=t,this.zoomX=i=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=i&&!s||o&&s,this.zoomVert=o&&!s||i&&s,this.hasZoom=i||o,this.runChartClick=n&&!!n.click,this.pinchDown=[],this.lastValidTouch={},rt.Tooltip&&e.tooltip.enabled&&(t.tooltip=new pe(t,e.tooltip),this.followTouchMove=e.tooltip.followTouchMove),this.setDOMEvents()},normalize:function(e,i){var n,o;e=e||window.event;return(e=Jt(e)).target||(e.target=e.srcElement),o=e.touches?e.touches.length?e.touches.item(0):e.changedTouches[0]:e,i||(this.chartPosition=i=Zt(this.chart.container)),o.pageX===O?(n=ft(e.x,e.clientX-i.left),o=e.y):(n=o.pageX-i.left,o=o.pageY-i.top),t(e,{chartX:ut(n),chartY:ut(o)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return Vt(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},getIndex:function(t){var e=this.chart;return e.inverted?e.plotHeight+e.plotTop-t.chartY:t.chartX-e.plotLeft},runPointActions:function(t){var e,i,n,o,s=this.chart,r=s.series,a=s.tooltip,l=s.hoverPoint,c=s.hoverSeries,h=s.chartWidth,u=this.getIndex(t);if(a&&this.options.tooltip.shared&&(!c||!c.noSharedTooltip)){for(i=[],n=r.length,o=0;o<n;o++)r[o].visible&&!1!==r[o].options.enableMouseTracking&&!r[o].noSharedTooltip&&!0!==r[o].singularTooltips&&r[o].tooltipPoints.length&&(e=r[o].tooltipPoints[u])&&e.series&&(e._dist=gt(u-e.clientX),h=mt(h,e._dist),i.push(e));for(n=i.length;n--;)i[n]._dist>h&&i.splice(n,1);i.length&&i[0].clientX!==this.hoverX&&(a.refresh(i,t),this.hoverX=i[0].clientX)}r=c&&c.tooltipOptions.followPointer,c&&c.tracker&&!r?(e=c.tooltipPoints[u])&&e!==l&&e.onMouseOver(t):a&&r&&!a.isHidden&&(c=a.getAnchor([{}],t),a.updatePosition({plotX:c[0],plotY:c[1]})),a&&!this._onDocumentMouseMove&&(this._onDocumentMouseMove=function(t){Rt[de]&&Rt[de].pointer.onDocumentMouseMove(t)},Xt(lt,"mousemove",this._onDocumentMouseMove)),Vt(s.axes,function(i){i.drawCrosshair(t,p(e,l))})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,o=i.hoverPoint,s=i.tooltip,r=s&&s.shared?i.hoverPoints:o;(t=t&&s&&r)&&d(r)[0].plotX===O&&(t=!1),t?(s.refresh(r),o&&o.setState(o.state,!0)):(o&&o.onMouseOut(),n&&n.onMouseOut(),s&&s.hide(e),this._onDocumentMouseMove&&(Kt(lt,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null),Vt(i.axes,function(t){t.hideCrosshair()}),this.hoverX=null)},scaleGroups:function(t,e){var i,n=this.chart;Vt(n.series,function(o){i=t||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&(o.group.attr(i),o.markerGroup&&(o.markerGroup.attr(i),o.markerGroup.clip(e?n.clipRect:null)),o.dataLabelsGroup&&o.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,n=i.options.chart,o=t.chartX,s=t.chartY,r=this.zoomHor,a=this.zoomVert,l=i.plotLeft,c=i.plotTop,h=i.plotWidth,u=i.plotHeight,d=this.mouseDownX,p=this.mouseDownY,f=n.panKey&&t[n.panKey+"Key"];o<l?o=l:o>l+h&&(o=l+h),s<c?s=c:s>c+u&&(s=c+u),this.hasDragged=Math.sqrt(Math.pow(d-o,2)+Math.pow(p-s,2)),this.hasDragged>10&&(e=i.isInsidePlot(d-l,p-c),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!f&&!this.selectionMarker&&(this.selectionMarker=i.renderer.rect(l,c,r?1:h,a?1:u,0).attr({fill:n.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&r&&(o-=d,this.selectionMarker.attr({width:gt(o),x:(o>0?0:o)+d})),this.selectionMarker&&a&&(o=s-p,this.selectionMarker.attr({height:gt(o),y:(o>0?0:o)+p})),e&&!this.selectionMarker&&n.panning&&i.pan(t,n.panning))},drop:function(e){var i=this.chart,n=this.hasPinched;if(this.selectionMarker){var o,s={xAxis:[],yAxis:[],originalEvent:e.originalEvent||e},r=this.selectionMarker,a=r.attr?r.attr("x"):r.x,l=r.attr?r.attr("y"):r.y,c=r.attr?r.attr("width"):r.width,h=r.attr?r.attr("height"):r.height;(this.hasDragged||n)&&(Vt(i.axes,function(t){if(t.zoomEnabled){var i=t.horiz,n="touchend"===e.type?t.minPixelPadding:0,r=t.toValue((i?a:l)+n);i=t.toValue((i?a+c:l+h)-n);!isNaN(r)&&!isNaN(i)&&(s[t.coll].push({axis:t,min:mt(r,i),max:ft(r,i)}),o=!0)}}),o&&Qt(i,"selection",s,function(e){i.zoom(t(e,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(f(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){(t=this.normalize(t)).preventDefault&&t.preventDefault(),this.dragStart(t)},onDocumentMouseUp:function(t){Rt[de]&&Rt[de].pointer.drop(t)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition,n=e.hoverSeries;t=this.normalize(t,i);i&&n&&!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&this.reset()},onContainerMouseLeave:function(){var t=Rt[de];t&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(t){var e=this.chart;de=e.index,(t=this.normalize(t)).returnValue=!1,"mousedown"===e.mouseIsDown&&this.drag(t),(this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop))&&!e.openMenu&&this.runPointActions(t)},inClass:function(t,e){for(var i;t;){if(i=u(t,"class")){if(-1!==i.indexOf(e))return!0;
13if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,i=(t=t.relatedTarget||t.toElement)&&t.point&&t.point.series;!e||e.options.stickyTracking||this.inClass(t,"highcharts-tooltip")||i===e||e.onMouseOut()},onContainerClick:function(e){var i=this.chart,n=i.hoverPoint,o=i.plotLeft,s=i.plotTop;(e=this.normalize(e)).cancelBubble=!0,i.cancelClick||(n&&this.inClass(e.target,"highcharts-tracker")?(Qt(n.series,"click",t(e,{point:n})),i.hoverPoint&&n.firePointEvent("click",e)):(t(e,this.getCoordinates(e)),i.isInsidePlot(e.chartX-o,e.chartY-s)&&Qt(i,"click",e)))},setDOMEvents:function(){var t=this,e=t.chart.container;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},Xt(e,"mouseleave",t.onContainerMouseLeave),1===Ot&&Xt(lt,"mouseup",t.onDocumentMouseUp),F&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===Ot&&Xt(lt,"touchend",t.onDocumentTouchEnd))},destroy:function(){var t;for(t in Kt(this.chart.container,"mouseleave",this.onContainerMouseLeave),Ot||(Kt(lt,"mouseup",this.onDocumentMouseUp),Kt(lt,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout),this)this[t]=null}},t(rt.Pointer.prototype,{pinchTranslate:function(t,e,i,n,o,s){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,t,e,i,n,o,s),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,t,e,i,n,o,s)},pinchTranslateDirection:function(t,e,i,n,o,s,r,a){var l,c,h,u=this.chart,d=t?"x":"y",p=t?"X":"Y",f="chart"+p,m=t?"width":"height",g=u["plot"+(t?"Left":"Top")],v=a||1,y=u.inverted,_=u.bounds[t?"h":"v"],b=1===e.length,x=e[0][f],w=i[0][f],k=!b&&e[1][f],C=!b&&i[1][f];(i=function(){!b&&gt(x-k)>20&&(v=a||gt(w-C)/gt(x-k)),c=(g-w)/v+x,l=u["plot"+(t?"Width":"Height")]/v})(),(e=c)<_.min?(e=_.min,h=!0):e+l>_.max&&(e=_.max-l,h=!0),h?(w-=.8*(w-r[d][0]),b||(C-=.8*(C-r[d][1])),i()):r[d]=[w,C],y||(s[d]=c-g,s[m]=l),s=y?1/v:v,o[m]=l,o[d]=e,n[y?t?"scaleY":"scaleX":"scale"+p]=v,n["translate"+p]=s*g+(w-s*x)},pinch:function(e){var i=this,n=i.chart,o=i.pinchDown,s=i.followTouchMove,r=e.touches,a=r.length,l=i.lastValidTouch,c=i.hasZoom,h=i.selectionMarker,u={},d=1===a&&(i.inClass(e.target,"highcharts-tracker")&&n.runTrackerClick||i.runChartClick),f={};(c||s)&&!d&&e.preventDefault(),Gt(r,function(t){return i.normalize(t)}),"touchstart"===e.type?(Vt(r,function(t,e){o[e]={chartX:t.chartX,chartY:t.chartY}}),l.x=[o[0].chartX,o[1]&&o[1].chartX],l.y=[o[0].chartY,o[1]&&o[1].chartY],Vt(n.axes,function(t){if(t.zoomEnabled){var e=n.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,o=t.toPixels(p(t.options.min,t.dataMin)),s=t.toPixels(p(t.options.max,t.dataMax)),r=mt(o,s);o=ft(o,s);e.min=mt(t.pos,r-i),e.max=ft(t.pos+t.len,o+i)}}),i.res=!0):o.length&&(h||(i.selectionMarker=h=t({destroy:Nt},n.plotBox)),i.pinchTranslate(o,r,u,h,f,l),i.hasPinched=c,i.scaleGroups(u,f),!c&&s&&1===a?this.runPointActions(i.normalize(e)):i.res&&(i.res=!1,this.reset(!1,0)))},onContainerTouchStart:function(t){var e=this.chart;de=e.index,1===t.touches.length?(t=this.normalize(t),e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)?(this.runPointActions(t),this.pinch(t)):this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchMove:function(t){(1===t.touches.length||2===t.touches.length)&&this.pinch(t)},onDocumentTouchEnd:function(t){Rt[de]&&Rt[de].pointer.drop(t)}}),ct.PointerEvent||ct.MSPointerEvent){var me={},ge=!!ct.PointerEvent,ve=function(){var t,e=[];for(t in e.item=function(t){return this[t]},me)me.hasOwnProperty(t)&&e.push({pageX:me[t].pageX,pageY:me[t].pageY,target:me[t].target});return e},ye=function(t,e,i,n){"touch"!==(t=t.originalEvent||t).pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!Rt[de]||(n(t),(n=Rt[de].pointer)[e]({type:i,
14target:t.currentTarget,preventDefault:Nt,touches:ve()}))};t(fe.prototype,{onContainerPointerDown:function(t){ye(t,"onContainerTouchStart","touchstart",function(t){me[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){ye(t,"onContainerTouchMove","touchmove",function(t){me[t.pointerId]={pageX:t.pageX,pageY:t.pageY},me[t.pointerId].target||(me[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){ye(t,"onContainerTouchEnd","touchend",function(t){delete me[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,ge?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,ge?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(lt,ge?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}
14),_(fe.prototype,"init",function(t,e,i){t.call(this,e,i),(this.hasZoom||this.followTouchMove)&&f(e.container,{"-ms-touch-action":Ft,"touch-action":Ft})}),_(fe.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(Xt)}),_(fe.prototype,"destroy",function(t){this.batchMSEvents(Kt),t.call(this)})}var _e=rt.Legend=function(t,e){this.init(t,e)};_e.prototype={init:function(t,i){var n=this,o=i.itemStyle,s=p(i.padding,8),r=i.itemMarginTop||0;this.options=i,i.enabled&&(n.itemStyle=o,n.itemHiddenStyle=e(o,i.itemHiddenStyle),n.itemMarginTop=r,n.padding=s,n.initialItemX=s,n.initialItemY=s-5,n.maxItemWidth=0,n.chart=t,n.itemHeight=0,n.lastLineHeight=0,n.symbolWidth=p(i.symbolWidth,16),n.pages=[],n.render(),Xt(n.chart,"endResize",function(){n.positionCheckboxes()}))},colorizeItem:function(t,e){var i,n=this.options,o=t.legendItem,s=t.legendLine,r=t.legendSymbol,a=this.itemHiddenStyle.color,l=(n=e?n.itemStyle.color:a,e?t.legendColor||t.color||"#CCC":a),c=(a=t.options&&t.options.marker,{fill:l});if(o&&o.css({fill:n,color:n}),s&&s.attr({stroke:l}),r){if(a&&r.isMarker)for(i in c.stroke=l,a=t.convertAttribs(a))(o=a[i])!==O&&(c[i]=o);r.attr(c)}},positionItem:function(t){var e=(i=this.options).symbolPadding,i=!i.rtl,n=(o=t._legendItemPos)[0],o=o[1],s=t.checkbox;t.legendGroup&&t.legendGroup.translate(i?n:this.legendWidth-n-2*e-4,o),s&&(s.x=n,s.y=o)},destroyItem:function(t){var e=t.checkbox;Vt(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&T(t.checkbox)},destroy:function(){var t=this.group,e=this.box;e&&(this.box=e.destroy()),t&&(this.group=t.destroy())},positionCheckboxes:function(t){var e,i=this.group.alignAttr,n=this.clipHeight||this.legendHeight;i&&(e=i.translateY,Vt(this.allItems,function(o){var s,r=o.checkbox;r&&(s=e+r.y+(t||0)+3,f(r,{left:i.translateX+o.checkboxOffset+r.x-20+"px",top:s+"px",display:s>e-6&&s<e+n-6?"":Ft}))}))},renderTitle:function(){var t=this.padding,e=this.options.title,i=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,t-3,t-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(e.style).add(this.group)),i=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},renderItem:function(t){var i=this.chart,n=i.renderer,o=this.options,s="horizontal"===o.layout,r=this.symbolWidth,a=o.symbolPadding,l=this.itemStyle,c=this.itemHiddenStyle,h=this.padding,u=s?p(o.itemDistance,20):0,d=!o.rtl,f=o.width,m=o.itemMarginBottom||0,g=this.itemMarginTop,v=this.initialItemX,y=t.legendItem,_=t.series&&t.series.drawLegendSymbol?t.series:t,x=_.options,w=(x=this.createCheckboxForItem&&x&&x.showCheckbox,o.useHTML);y||(t.legendGroup=n.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),t.legendItem=y=n.text(o.labelFormat?b(o.labelFormat,t):o.labelFormatter.call(t),d?r+a:-a,this.baseline||0,w).css(e(t.visible?l:c)).attr({align:d?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.baseline=n.fontMetrics(l.fontSize,y).f+3+g,y.attr("y",this.baseline)),_.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,y,w,l,c),this.colorizeItem(t,t.visible),x&&this.createCheckboxForItem(t)),n=y.getBBox(),r=t.checkboxOffset=o.itemWidth||t.legendItemWidth||r+a+n.width+u+(x?20:0),this.itemHeight=a=ut(t.legendItemHeight||n.height),s&&this.itemX-v+r>(f||i.chartWidth-2*h-v-o.x)&&(this.itemX=v,this.itemY+=g+this.lastLineHeight+m,this.lastLineHeight=0),this.maxItemWidth=ft(this.maxItemWidth,r),this.lastItemY=g+this.itemY+m,this.lastLineHeight=ft(a,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=r:(this.itemY+=g+a+m,this.lastLineHeight=a),this.offsetWidth=f||ft((s?this.itemX-v-u:r)+h,this.offsetWidth)},getAllItems:function(){var t=[];return Vt(this.chart.series,function(e){var i=e.options;p(i.showInLegend,!h(i.linkedTo)&&O,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},render:function(){var e,i,n,o,s=this,r=s.chart,a=r.renderer,l=s.group,c=s.box,h=s.options,u=s.padding,d=h.borderWidth,p=h.backgroundColor;s.itemX=s.initialItemX,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,l||(s.group=l=a.g("legend").attr({zIndex:7}).add(),s.contentGroup=a.g().attr({zIndex:1}).add(l),s.scrollGroup=a.g().add(s.contentGroup)),s.renderTitle(),k(e=s.getAllItems(),function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),h.reversed&&e.reverse(),s.allItems=e,s.display=i=!!e.length,Vt(e,function(t){s.renderItem(t)}),n=h.width||s.offsetWidth,o=s.lastItemY+s.lastLineHeight+s.titleHeight,o=s.handleOverflow(o),(d||p)&&(n+=u,o+=u,c?n>0&&o>0&&(c[c.isNew?"attr":"animate"](c.crisp({width:n,height:o})),c.isNew=!1):(s.box=c=a.rect(0,0,n,o,h.borderRadius,d||0).attr({stroke:h.borderColor,"stroke-width":d||0,fill:p||Ft}).add(l).shadow(h.shadow),c.isNew=!0),c[i?"show":"hide"]()),s.legendWidth=n,s.legendHeight=o,Vt(e,function(t){s.positionItem(t)}),i&&l.align(t({width:n,height:o},h),!0,"spacingBox"),r.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,o=this.chart,s=o.renderer,r=this.options,a=r.y,l=(a=o.spacingBox.height+("top"===r.verticalAlign?-a:a)-this.padding,r.maxHeight),c=this.clipRect,h=r.navigation,u=p(h.animation,!0),d=h.arrowSize||12,f=this.nav,m=this.pages,g=this.allItems;
14return"horizontal"===r.layout&&(a/=2),l&&(a=mt(a,l)),m.length=0,t>a&&!r.useHTML?(this.clipHeight=e=ft(a-20-this.titleHeight-this.padding,0),this.currentPage=p(this.currentPage,1),this.fullHeight=t,Vt(g,function(t,n){var o=t._legendItemPos[1],s=ut(t.legendItem.getBBox().height),r=m.length;(!r||o-m[r-1]>e&&(i||o)!==m[r-1])&&(m.push(i||o),r++),n===g.length-1&&o+s-m[r-1]>e&&m.push(o),o!==i&&(i=o)}),c||(c=n.clipRect=s.clipRect(0,this.padding,9999,0),n.contentGroup.clip(c)),c.attr({height:e}),f||(this.nav=f=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,d,d).on("click",function(){n.scroll(-1,u)}).add(f),this.pager=s.text("",15,10).css(h.style).add(f),this.down=s.symbol("triangle-down",0,0,d,d).on("click",function(){n.scroll(1,u)}).add(f)),n.scroll(0),t=a):f&&(c.attr({height:o.chartHeight}),f.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length,o=this.currentPage+t,s=this.clipHeight,r=(a=this.options.navigation).activeColor,a=a.inactiveColor,l=this.pager,c=this.padding;o>n&&(o=n),o>0&&(e!==O&&A(e,this.chart),this.nav.attr({translateX:c,translateY:s+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===o?a:r}).css({cursor:1===o?"default":"pointer"}),l.attr({text:o+"/"+n}),this.down.attr({x:18+this.pager.getBBox().width,fill:o===n?a:r}).css({cursor:o===n?"default":"pointer"}),i=-i[o-1]+this.initialItemY,this.scrollGroup.animate({translateY:i}),this.currentPage=o,this.positionCheckboxes(i))}},Ht=rt.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.options.symbolHeight||12;e.legendSymbol=this.chart.renderer.rect(0,t.baseline-5-i/2,t.symbolWidth,i,t.options.symbolRadius||0).attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,i=this.options,n=i.marker;e=t.symbolWidth;var o,s=this.chart.renderer,r=this.legendGroup;t=t.baseline-ut(.3*s.fontMetrics(t.options.itemStyle.fontSize,this.legendItem).b);i.lineWidth&&(o={"stroke-width":i.lineWidth},i.dashStyle&&(o.dashstyle=i.dashStyle),this.legendLine=s.path(["M",0,t,"L",e,t]).attr(o).add(r)),n&&!1!==n.enabled&&(i=n.radius,this.legendSymbol=e=s.symbol(this.symbol,e/2-i,t-i,2*i,2*i).add(r),e.isMarker=!0)}},(/Trident\/7\.0/.test(xt)||Pt)&&_(_e.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)}),N.prototype={init:function(t,i){var n,o=t.series;t.series=null,(n=e(j,t)).series=t.series=o,this.userOptions=t,o=n.chart,this.margin=this.splashArray("margin",o),this.spacing=this.splashArray("spacing",o);var s=o.events;this.bounds={h:{},v:{}},this.callback=i,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=o.showAxes;var r,a=this;if(a.index=Rt.length,Rt.push(a),Ot++,!1!==o.reflow&&Xt(a,"load",function(){a.initReflow()}),s)for(r in s)Xt(a,r,s[r]);a.xAxis=[],a.yAxis=[],a.animation=!Lt&&p(o.animation,!0),a.pointCount=a.colorCounter=a.symbolCounter=0,a.firstRender()},initSeries:function(t){var e=this.options.chart;return(e=Bt[t.type||e.type||e.defaultSeriesType])||Y(17,!0),(e=new e).init(this,t),e},isInsidePlot:function(t,e,i){var n=i?e:t;t=i?t:e;return n>=0&&n<=this.plotWidth&&t>=0&&t<=this.plotHeight},adjustTickAmounts:function(){!1!==this.options.chart.alignTicks&&Vt(this.axes,function(t){t.adjustTickAmount()}),this.maxTicks=null},redraw:function(e){var i,n,o=this.axes,s=this.series,r=this.pointer,a=this.legend,l=this.isDirtyLegend,c=this.hasCartesianSeries,h=this.isDirtyBox,u=s.length,d=u,p=this.renderer,f=p.isHidden(),m=[];for(A(e,this),f&&this.cloneRenderTo(),this.layOutTitles();d--;)if((e=s[d]).options.stacking&&(i=!0,e.isDirty)){n=!0;break}if(n)for(d=u;d--;)(e=s[d]).options.stacking&&(e.isDirty=!0);Vt(s,function(t){t.isDirty&&"point"===t.options.legendType&&(l=!0)}),l&&a.options.enabled&&(a.render(),this.isDirtyLegend=!1),i&&this.getStacks(),c&&(this.isResizing||(this.maxTicks=null,Vt(o,function(t){t.setScale()})),this.adjustTickAmounts()),this.getMargins(),c&&(Vt(o,function(t){t.isDirty&&(h=!0)}),Vt(o,function(e){e.isDirtyExtremes&&(e.isDirtyExtremes=!1,m.push(function(){Qt(e,"afterSetExtremes",t(e.eventArgs,e.getExtremes())),delete e.eventArgs})),(h||i)&&e.redraw()})),h&&this.drawChartBox(),Vt(s,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),r&&r.reset(!0),p.draw(),Qt(this,"redraw"),f&&this.cloneRenderTo(!0),Vt(m,function(t){t.call()})},get:function(t){var e,i,n=this.axes,o=this.series;for(e=0;e<n.length;e++)if(n[e].options.id===t)return n[e];for(e=0;e<o.length;e++)if(o[e].options.id===t)return o[e];for(e=0;e<o.length;e++)for(i=o[e].points||[],n=0;n<i.length;n++)if(i[n].id===t)return i[n];return null},getAxes:function(){var t=this,e=(i=this.options).xAxis=d(i.xAxis||{}),i=i.yAxis=d(i.yAxis||{});Vt(e,function(t,e){t.index=e,t.isX=!0}
14),Vt(i,function(t,e){t.index=e}),e=e.concat(i),Vt(e,function(e){new I(t,e)}),t.adjustTickAmounts()},getSelectedPoints:function(){var t=[];return Vt(this.series,function(e){t=t.concat(qt(e.points||[],function(t){return t.selected}))}),t},getSelectedSeries:function(){return qt(this.series,function(t){return t.selected})},getStacks:function(){var t=this;Vt(t.yAxis,function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),Vt(t.series,function(e){!e.options.stacking||!0!==e.visible&&!1!==t.options.chart.ignoreHiddenSeries||(e.stackKey=e.type+p(e.options.stack,""))})},setTitle:function(t,i,n){var o,s,r=this,a=r.options;s=a.title=e(a.title,t),o=a.subtitle=e(a.subtitle,i),Vt([["title",t,s],["subtitle",i,a=o]],function(t){var e=t[0],i=r[e],n=t[1];t=t[2];i&&n&&(r[e]=i=i.destroy()),t&&t.text&&!i&&(r[e]=r.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,class:"highcharts-"+e,zIndex:t.zIndex||4}).css(t.style).add())}),r.layOutTitles(n)},layOutTitles:function(e){var i=0,n=this.title,o=this.subtitle,s=(r=this.options).title,r=r.subtitle,a=this.renderer,l=this.spacingBox.width-44;!n||(n.css({width:(s.width||l)+"px"}).align(t({y:a.fontMetrics(s.style.fontSize,n).b-3},s),!1,"spacingBox"),s.floating||s.verticalAlign)||(i=n.getBBox().height),o&&(o.css({width:(r.width||l)+"px"}).align(t({y:i+(s.margin-13)+a.fontMetrics(s.style.fontSize,o).b},r),!1,"spacingBox"),!r.floating&&!r.verticalAlign&&(i=pt(i+o.getBBox().height))),n=this.titleOffset!==i,this.titleOffset=i,!this.isDirtyBox&&n&&(this.isDirtyBox=n,this.hasRendered&&p(e,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var t=(e=this.options.chart).width,e=e.height,i=this.renderToClone||this.renderTo;h(t)||(this.containerWidth=Wt(i,"width")),h(e)||(this.containerHeight=Wt(i,"height")),this.chartWidth=ft(0,t||this.containerWidth||600),this.chartHeight=ft(0,p(e,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;t?e&&(this.renderTo.appendChild(i),T(e),delete this.renderToClone):(i&&i.parentNode===this.renderTo&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),f(e,{position:"absolute",top:"-9999px",display:"block"}),e.style.setProperty&&e.style.setProperty("display","block","important"),lt.body.appendChild(e),i&&e.appendChild(i))},getContainer:function(){var e,o,s,r,a=this.options.chart;this.renderTo=e=a.renderTo,r="highcharts-"+It++,n(e)&&(this.renderTo=e=lt.getElementById(e)),e||Y(13,!0),o=i(u(e,"data-highcharts-chart")),!isNaN(o)&&Rt[o]&&Rt[o].hasRendered&&Rt[o].destroy(),u(e,"data-highcharts-chart",this.index),e.innerHTML="",!a.skipClone&&!e.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),o=this.chartWidth,s=this.chartHeight,this.container=e=m($t,{className:"highcharts-container"+(a.className?" "+a.className:""),id:r},t({position:"relative",overflow:"hidden",width:o+"px",height:s+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},a.style),this.renderToClone||e),this._cursor=e.style.cursor,this.renderer=a.forExport?new he(e,o,s,a.style,!0):new $(e,o,s,a.style),Lt&&this.renderer.create(this,e,o,s)},getMargins:function(){var t,e=this.spacing,i=this.legend,n=this.margin,o=this.options.legend,s=p(o.margin,20),r=o.x,a=o.y,l=o.align,c=o.verticalAlign,u=this.titleOffset;this.resetMargins(),t=this.axisOffset,u&&!h(n[0])&&(this.plotTop=ft(this.plotTop,u+this.options.title.margin+e[0])),i.display&&!o.floating&&("right"===l?h(n[1])||(this.marginRight=ft(this.marginRight,i.legendWidth-r+s+e[1])):"left"===l?h(n[3])||(this.plotLeft=ft(this.plotLeft,i.legendWidth+r+s+e[3])):"top"===c?h(n[0])||(this.plotTop=ft(this.plotTop,i.legendHeight+a+s+e[0])):"bottom"!==c||h(n[2])||(this.marginBottom=ft(this.marginBottom,i.legendHeight-a+s+e[2]))),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),this.hasCartesianSeries&&Vt(this.axes,function(t){t.getOffset()}),h(n[3])||(this.plotLeft+=t[3]),h(n[0])||(this.plotTop+=t[0]),h(n[2])||(this.marginBottom+=t[2]),h(n[1])||(this.marginRight+=t[1]),this.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,o=i.width||Wt(n,"width"),s=i.height||Wt(n,"height");i=t?t.target:ct,n=function(){e.container&&(e.setSize(o,s,!1),e.hasUserSize=null)};e.hasUserSize||!o||!s||i!==ct&&i!==lt||(o===e.containerWidth&&s===e.containerHeight||(clearTimeout(e.reflowTimeout),t?e.reflowTimeout=setTimeout(n,100):n()),e.containerWidth=o,e.containerHeight=s)},initReflow:function(){var t=this,e=function(e){t.reflow(e)};Xt(ct,"resize",e),Xt(t,"destroy",function(){Kt(ct,"resize",e)})}
14,setSize:function(t,e,i){var n,o,s,r=this;r.isResizing+=1,s=function(){r&&Qt(r,"endResize",null,function(){r.isResizing-=1})},A(i,r),r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,h(t)&&(r.chartWidth=n=ft(0,ut(t)),r.hasUserSize=!!n),h(e)&&(r.chartHeight=o=ft(0,ut(e))),(H?te:f)(r.container,{width:n+"px",height:o+"px"},H),r.setChartSize(!0),r.renderer.setSize(n,o,i),r.maxTicks=null,Vt(r.axes,function(t){t.isDirty=!0,t.setScale()}),Vt(r.series,function(t){t.isDirty=!0}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(i),r.oldChartHeight=null,Qt(r,"resize"),!1===H?s():setTimeout(s,H&&H.duration||500)},setChartSize:function(t){var e,i,n,o,s=this.inverted,r=this.renderer,a=this.chartWidth,l=this.chartHeight,c=this.options.chart,h=this.spacing,u=this.clipOffset;this.plotLeft=e=ut(this.plotLeft),this.plotTop=i=ut(this.plotTop),this.plotWidth=n=ft(0,ut(a-e-this.marginRight)),this.plotHeight=o=ft(0,ut(l-i-this.marginBottom)),this.plotSizeX=s?o:n,this.plotSizeY=s?n:o,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=r.spacingBox={x:h[3],y:h[0],width:a-h[3]-h[1],height:l-h[0]-h[2]},this.plotBox=r.plotBox={x:e,y:i,width:n,height:o},a=2*dt(this.plotBorderWidth/2),s=pt(ft(a,u[3])/2),r=pt(ft(a,u[0])/2),this.clipBox={x:s,y:r,width:dt(this.plotSizeX-ft(a,u[1])/2-s),height:ft(0,dt(this.plotSizeY-ft(a,u[2])/2-r))},t||Vt(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this.spacing,e=this.margin;this.plotTop=p(e[0],t[0]),this.marginRight=p(e[1],t[1]),this.marginBottom=p(e[2],t[2]),this.plotLeft=p(e[3],t[3]),this.axisOffset=[0,0,0,0],this.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,o=this.chartHeight,s=this.chartBackground,r=this.plotBackgroun
14d,a=this.plotBorder,l=this.plotBGImage,c=e.borderWidth||0,h=e.backgroundColor,u=e.plotBackgroundColor,d=e.plotBackgroundImage,p=e.plotBorderWidth||0,f=this.plotLeft,m=this.plotTop,g=this.plotWidth,v=this.plotHeight,y=this.plotBox,_=this.clipRect,b=this.clipBox;t=c+(e.shadow?8:0),(c||h)&&(s?s.animate(s.crisp({width:n-t,height:o-t})):(s={fill:h||Ft},c&&(s.stroke=e.borderColor,s["stroke-width"]=c),this.chartBackground=i.rect(t/2,t/2,n-t,o-t,e.borderRadius,c).attr(s).addClass("highcharts-background").add().shadow(e.shadow))),u&&(r?r.animate(y):this.plotBackground=i.rect(f,m,g,v,0).attr({fill:u}).add().shadow(e.plotShadow)),d&&(l?l.animate(y):this.plotBGImage=i.image(d,f,m,g,v).add()),_?_.animate({width:b.width,height:b.height}):this.clipRect=i.clipRect(b),p&&(a?a.animate(a.crisp({x:f,y:m,width:g,height:v,strokeWidth:-p})):this.plotBorder=i.rect(f,m,g,v,0,-p).attr({stroke:e.plotBorderColor,"stroke-width":p,fill:Ft,zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,o=n.options.chart,s=n.options.series;Vt(["inverted","angular","polar"],function(r){for(t=Bt[o.type||o.defaultSeriesType],i=n[r]||o[r]||t&&t.prototype[r],e=s&&s.length;!i&&e--;)(t=Bt[s[e].type])&&t.prototype[r]&&(i=!0);n[r]=i})},linkSeries:function(){var t=this,e=t.series;Vt(e,function(t){t.linkedSeries.length=0}),Vt(e,function(e){var i=e.options.linkedTo;n(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&(i.linkedSeries.push(e),e.linkedParent=i)})},renderSeries:function(){Vt(this.series,function(t){t.translate(),t.setTooltipPoints&&t.setTooltipPoints(),t.render()})},renderLabels:function(){var e=this,n=e.options.labels;n.items&&Vt(n.items,function(o){var s=t(n.style,o.style),r=i(s.left)+e.plotLeft,a=i(s.top)+e.plotTop+12;delete s.left,delete s.top,e.renderer.text(o.html,r,a).attr({zIndex:2}).css(s).add()})},render:function(){var t=this.axes,e=this.renderer,i=this.options;this.setTitle(),this.legend=new _e(this,i.legend),this.getStacks(),Vt(t,function(t){t.setScale()}),this.getMargins(),this.maxTicks=null,Vt(t,function(t){t.setTickPositions(!0),t.setMaxTicks()}),this.adjustTickAmounts(),this.getMargins(),this.drawChartBox(),this.hasCartesianSeries&&Vt(t,function(t){t.render()}),this.seriesGroup||(this.seriesGroup=e.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(i.credits),this.hasRendered=!0},showCredits:function(t){t.enabled&&!this.credits&&(this.credits=this.renderer.text(t.text,0,0).on("click",function(){t.href&&(location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position))},destroy:function(){var t,e=this,i=e.axes,n=e.series,o=e.container,s=o&&o.parentNode;for(Qt(e,"destroy"),Rt[e.index]=O,Ot--,e.renderTo.removeAttribute("data-highcharts-chart"),Kt(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=n.length;t--;)n[t]=n[t].destroy();
14for(t in Vt("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),o&&(o.innerHTML="",Kt(o),s&&T(o)),e)delete e[t]},isReadyToRender:function(){var t=this;return!(!At&&ct==ct.top&&"complete"!==lt.readyState||Lt&&!ct.canvg)||(Lt?ce.push(function(){t.firstRender()},t.options.global.canvasToolsURL):lt.attachEvent("onreadystatechange",function(){lt.detachEvent("onreadystatechange",t.firstRender),"complete"===lt.readyState&&t.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options,i=t.callback;t.isReadyToRender()&&(t.getContainer(),Qt(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),Vt(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),Qt(t,"beforeRender"),rt.Pointer&&(t.pointer=new fe(t,e)),t.render(),t.renderer.draw(),i&&i.apply(t,[t]),Vt(t.callbacks,function(e){e.apply(t,[t])}),t.cloneRenderTo(!0),Qt(t,"load"))},splashArray:function(t,e){var i=o(i=e[t])?i:[i,i,i,i];return[p(e[t+"Top"],i[0]),p(e[t+"Right"],i[1]),p(e[t+"Bottom"],i[2]),p(e[t+"Left"],i[3])]}},N.prototype.callbacks=[],le=rt.CenteredSeriesMixin={getCenter:function(){var t,e,n=this.options,o=this.chart,s=2*(n.slicedOffset||0),r=o.plotWidth-2*s,a=o.plotHeight-2*s,l=(n=[p((o=n.center)[0],"50%"),p(o[1],"50%"),n.size||"100%",n.innerSize||0],mt(r,a));return Gt(n,function(n,o){return e=/%$/.test(n),t=o<2||2===o&&e,(e?[r,a,l,l][o]*i(n)/100:n)+(t?s:0)})}};var be=function(){};be.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.pointAttr={},t.options.colorByPoint&&(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter++],t.colorCounter===e.length)&&(t.colorCounter=0),t.chart.pointCount++,this},applyOptions:function(e,i){var n=this.series,o=n.options.pointValKey||n.pointValKey;return t(this,e=be.prototype.optionsToObject.call(this,e)),this.options=this.options?t(this.options,e):e,o&&(this.y=this[o]),this.x===O&&n&&(this.x=i===O?n.autoIncrement():i),this},optionsToObject:function(t){var e={},i=this.series,n=i.pointArrayMap||["y"],o=n.length,r=0,a=0;if("number"==typeof t||null===t)e[n[0]]=t;else if(s(t))for(t.length>o&&("string"===(i=typeof t[0])?e.name=t[0]:"number"===i&&(e.x=t[0]),r++);a<o;)e[n[a++]]=t[r++];else"object"==typeof t&&(e=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return e},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),c(i,this),!i.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Kt(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(){for(var t,e="graphic,dataLabel,dataLabelUpper,group,connector,shadowGroup".split(","),i=6;i--;)this[t=e[i]]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=p(i.valueDecimals,""),o=i.valuePrefix||"",s=i.valueSuffix||"";return Vt(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||s)&&(t=t.replace(e+"}",o+e+"}"+s)),t=t.replace(e+"}",e+":,."+n+"f}")}),b(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,o=this.series.options;(o.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Qt(this,t,e,i)}};var xe=function(){};xe.prototype={isCartesian:!0,type:"line",pointClass:be,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(e,i){var n,o,s=this,r=e.series,a=function(t,e){return p(t.options.index,t._i)-p(e.options.index,e._i)};for(n in s.chart=e,s.options=i=s.setOptions(i),s.linkedSeries=[],s.bindAxes(),t(s,{name:i.name,state:"",pointAttr:{},visible:!1!==i.visible,selected:!0===i.selected}),Lt&&(i.animation=!1),o=i.events)Xt(s,n,o[n]);(o&&o.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),s.getColor(),s.getSymbol(),Vt(s.parallelArrays,function(t){s[t+"Data"]=[]}),s.setData(i.data,!1),s.isCartesian&&(e.hasCartesianSeries=!0),r.push(s),s._i=r.length-1,k(r,a),this.yAxis&&k(this.yAxis.series,a),Vt(r,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1)})},bindAxes:function(){var t,e=this,i=e.options,n=e.chart;
14Vt(e.axisTypes||[],function(o){Vt(n[o],function(n){t=n.options,(i[o]===t.index||i[o]!==O&&i[o]===t.id||i[o]===O&&0===t.index)&&(n.series.push(e),e[o]=n,n.isDirty=!0)}),!e[o]&&e.optionalAxis!==o&&Y(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments;Vt(i.parallelArrays,"number"==typeof e?function(n){var o="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=o}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))})},autoIncrement:function(){var t=this.options,e=p(e=this.xIncrement,t.pointStart,0);return this.pointInterval=p(this.pointInterval,t.pointInterval,1),this.xIncrement=e+this.pointInterval,e},getSegments:function(){var t,e=-1,i=[],n=this.points,o=n.length;if(o)if(this.options.connectNulls){for(t=o;t--;)null===n[t].y&&n.splice(t,1);n.length&&(i=[n])}else Vt(n,function(t,s){null===t.y?(s>e+1&&i.push(n.slice(e+1,s)),e=s):s===o-1&&i.push(n.slice(e+1,s+1))});this.segments=i},setOptions:function(t){var i,n=(i=this.chart).options.plotOptions,o=(i=i.userOptions||{}).plotOptions||{},s=n[this.type];return this.userOptions=t,n=e(s,n.series,t),this.tooltipOptions=e(j.tooltip,j.plotOptions[this.type].tooltip,i.tooltip,o.series&&o.series.tooltip,o[this.type]&&o[this.type].tooltip,t.tooltip),null===s.marker&&delete n.marker,n},getCyclic:function(t,e,i){var n=this.userOptions,o="_"+t+"Index",s=t+"Counter";e||(h(n[o])?e=n[o]:(n[o]=e=this.chart[s]%i.length,this.chart[s]+=1),e=i[e]),this[t]=e},getColor:function(){this.options.colorByPoint||this.getCyclic("color",this.options.color||ie[this.type].color,this.chart.options.colors)},getSymbol:function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols),/^url/.test(this.symbol)&&(t.radius=0)},drawLegendSymbol:Ht.drawLineMarker,setData:function(t,e,i,o){var a,l=this,c=l.points,h=c&&c.length||0,u=l.options,d=l.chart,f=null,m=l.xAxis,g=m&&!!m.categories,v=l.tooltipPoints,y=u.turboThreshold,_=this.xData,b=this.yData,x=(a=l.pointArrayMap)&&a.length;if(a=(t=t||[]).length,e=p(e,!0),!1===o||!a||h!==a||l.cropped||l.hasGroupedData){if(l.xIncrement=null,l.pointRange=g?1:u.pointRange,l.colorCounter=0,Vt(this.parallelArrays,function(t){l[t+"Data"].length=0}),y&&a>y){for(i=0;null===f&&i<a;)f=t[i],i++;if(r(f)){for(g=p(u.pointStart,0),u=p(u.pointInterval,1),i=0;i<a;i++)_[i]=g,b[i]=t[i],g+=u;l.xIncrement=g}else if(s(f))if(x)for(i=0;i<a;i++)u=t[i],_[i]=u[0],b[i]=u.slice(1,x+1);else for(i=0;i<a;i++)u=t[i],_[i]=u[0],b[i]=u[1];else Y(12)}else for(i=0;i<a;i++)t[i]!==O&&(u={series:l},l.pointClass.prototype.applyOptions.apply(u,[t[i]]),l.updateParallelArrays(u,i),g&&u.name)&&(m.names[u.x]=u.name);for(n(b[0])&&Y(14,!0),l.data=[],l.options.data=t,i=h;i--;)c[i]&&c[i].destroy&&c[i].destroy();v&&(v.length=0),m&&(m.minRange=m.userMinRange),l.isDirty=l.isDirtyData=d.isDirtyBox=!0,i=!1}else Vt(t,function(t,e){c[e].update(t,!1,null,!1)});e&&d.redraw(i)},processData:function(t){var e,i=this.xData,n=this.yData,o=i.length;e=0;var s,r,a,l=this.xAxis,c=this.options;a=c.cropThreshold;var h,u,d=0,p=this.isCartesian;if(p&&!this.isDirty&&!l.isDirty&&!this.yAxis.isDirty&&!t)return!1;for(l&&(u=(h=l.getExtremes()).min,h=h.max),p&&this.sorted&&(!a||o>a||this.forceCrop)&&(i[o-1]<u||i[0]>h?(i=[],n=[]):(i[0]<u||i[o-1]>h)&&(i=(e=this.cropData(this.xData,this.yData,u,h)).xData,n=e.yData,e=e.start,s=!0,d=i.length)),a=i.length-1;a>=0;a--)o=i[a]-i[a-1],!s&&i[a]>u&&i[a]<h&&d++,o>0&&(r===O||o<r)?r=o:o<0&&this.requireSorting&&Y(15);this.cropped=s,this.cropStart=e,this.processedXData=i,this.processedYData=n,this.activePointCount=d,null===c.pointRange&&(this.pointRange=r||1),this.closestPointRange=r},cropData:function(t,e,i,n){var o,s=t.length,r=0,a=s,l=p(this.cropShoulder,1);for(o=0;o<s;o++)if(t[o]>=i){r=ft(0,o-l);break}for(;o<s;o++)if(t[o]>n){a=o+l;break}return{xData:t.slice(r,a),yData:e.slice(r,a),start:r,end:a}},generatePoints:function(){var t,e,i,n,o=this.options.data,s=this.data,r=this.processedXData,a=this.processedYData,l=this.pointClass,c=r.length,h=this.cropStart||0,u=this.hasGroupedData,p=[];for(s||u||((s=[]).length=o.length,s=this.data=s),n=0;n<c;n++)e=h+n,u?p[n]=(new l).init(this,[r[n]].concat(d(a[n]))):(s[e]?i=s[e]:o[e]!==O&&(s[e]=i=(new l).init(this,o[e],r[n])),p[n]=i),p[n].index=e;if(s&&(c!==(t=s.length)||u))for(n=0;n<t;n++)n===h&&!u&&(n+=c),s[n]&&(s[n].destroyElements(),s[n].plotX=O);this.data=s,this.points=p},getExtremes:function(t){var e,i,n,o,s,r=this.yAxis,a=this.processedXData,l=[],c=0,h=(e=this.xAxis.getExtremes()).min,u=e.max;for(e=(t=t||this.stackedYData||this.processedYData).length,s=0;s<e;s++)if(n=a[s],i=null!==(o=t[s])&&o!==O&&(!r.isLog||o.length||o>0),n=this.getExtremesFromAll||this.cropped||(a[s+1]||n)>=h&&(a[s-1]||n)<=u,i&&n)if(i=o.length)for(;i--;)null!==o[i]&&(l[c++]=o[i]);else l[c++]=o;this.dataMin=p(void 0,C(l)),this.dataMax=p(void 0,S(l))},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t=(d=this.options).stacking,e=this.xAxis,i=e.categories,n=this.yAxis,o=this.points,s=o.length,a=!!this.modifyValue,l=d.pointPlacement,c="between"===l||r(l),u=d.threshold,d=0;d<s;d++){var f=o[d],m=f.x,g=f.y,v=f.low,y=t&&n.stacks[(this.negStacks&&g<u?"-":"")+this.stackKey];n.isLog&&g<=0&&(f.y=g=null,Y(10)),f.plotX=e.translate(m,0,0,0,1,l,"flags"===this.type),t&&this.visible&&y&&y[m]&&(v=(g=(y=y[m]).points[this.index+","+d])[0],g=g[1],0===v&&(v=p(u,n.min)),n.isLog&&v<=0&&(v=null),f.total=f.stackTotal=y.total,f.percentage=y.total&&f.y/y.total*100,f.stackY=g,y.setOffset(this.pointXOffset||0,this.barW||0)),f.yBottom=h(v)?n.translate(v,0,1,0,1):null,a&&(g=this.modifyValue(g,f)),f.plotY="number"==typeof g&&g!==1/0?n.translate(g,0,1,0,1):O,f.clientX=c?e.translate(m,0,0,0,1):f.plotX,f.negative=f.y<(u||0),f.category=i&&i[f.x]!==O?i[f.x]:f.x}this.getSegments()},animate:function(e){var i,n=this.chart,s=n.renderer;i=this.options.animation;var r,a=this.clipBox||n.clipBox,l=n.inverted;
14i&&!o(i)&&(i=ie[this.type].animation),r=["_sharedClip",i.duration,i.easing,a.height].join(","),e?(e=n[r],i=n[r+"m"],e||(n[r]=e=s.clipRect(t(a,{width:0})),n[r+"m"]=i=s.clipRect(-99,l?-n.plotLeft:-n.plotTop,99,l?n.chartWidth:n.chartHeight)),this.group.clip(e),this.markerGroup.clip(i),this.sharedClipKey=r):((e=n[r])&&e.animate({width:n.plotSizeX},i),n[r+"m"]&&n[r+"m"].animate({width:n.plotSizeX+99},i),this.animate=null)},afterAnimate:function(){var t=this.chart,e=this.sharedClipKey,i=this.group,n=this.clipBox;i&&!1!==this.options.clip&&(e&&n||i.clip(n?t.renderer.clipRect(n):t.clipRect),this.markerGroup.clip()),Qt(this,"afterAnimate"),setTimeout(function(){e&&t[e]&&(n||(t[e]=t[e].destroy()),t[e+"m"]&&(t[e+"m"]=t[e+"m"].destroy()))},100)},drawPoints:function(){var e,i,n,o,s,r,a,l,c,h,u,d,f=this.points,m=this.chart,g=this.options.marker,v=this.pointAttr[""],y=this.markerGroup,_=p(g.enabled,!this.requireSorting||this.activePointCount<.5*this.xAxis.len/g.radius);if(!1!==g.enabled||this._hasPointMarkers)for(o=f.length;o--;)s=f[o],i=dt(s.plotX),n=s.plotY,c=s.graphic,h=s.marker||{},u=!!s.marker,e=_&&h.enabled===O||h.enabled,d=m.isInsidePlot(ut(i),n,m.inverted),e&&n!==O&&!isNaN(n)&&null!==s.y?(r=(e=s.pointAttr[s.selected?"select":""]||v).r,l=0===(a=p(h.symbol,this.symbol)).indexOf("url"),c?c[d?"show":"hide"](!0).animate(t({x:i-r,y:n-r},c.symbolName?{width:2*r,height:2*r}:{})):d&&(r>0||l)&&(s.graphic=m.renderer.symbol(a,i-r,n-r,2*r,2*r,u?h:g).attr(e).add(y))):c&&(s.graphic=c.destroy())},convertAttribs:function(t,e,i,n){var o,s,r=this.pointAttrToOptions,a={};t=t||{},e=e||{},i=i||{},n=n||{};for(o in r)s=r[o],a[o]=p(t[s],e[o],i[o],n[o]);return a},getAttribs:function(){var e,i=this,n=i.options,o=ie[i.type].marker?n.marker:n,s=o.states,r=s.hover,a=i.color;e={stroke:a,fill:a};var l,c,u=i.points||[],d=[],p=i.pointAttrToOptions
15;c=i.hasPointSpecificOptions;var f,m=n.negativeColor,g=o.lineColor,v=o.fillColor;if(l=n.turboThreshold,n.marker?(r.radius=r.radius||o.radius+r.radiusPlus,r.lineWidth=r.lineWidth||o.lineWidth+r.lineWidthPlus):r.color=r.color||ae(r.color||a).brighten(r.brightness).get(),d[""]=i.convertAttribs(o,e),Vt(["hover","select"],function(t){d[t]=i.convertAttribs(s[t],d[""])}),i.pointAttr=d,a=u.length,!l||a<l||c)for(;a--;){if((o=(l=u[a]).options&&l.options.marker||l.options)&&!1===o.enabled&&(o.radius=0),l.negative&&m&&(l.color=l.fillColor=m),c=n.colorByPoint||l.color,l.options)for(f in p)h(o[p[f]])&&(c=!0);c?(c=[],e=(s=(o=o||{}).states||{}).hover=s.hover||{},n.marker||(e.color=e.color||!l.options.color&&r.color||ae(l.color).brighten(e.brightness||r.brightness).get()),e={color:l.color},v||(e.fillColor=l.color),g||(e.lineColor=l.color),c[""]=i.convertAttribs(t(e,o),d[""]),c.hover=i.convertAttribs(s.hover,d.hover,c[""]),c.select=i.convertAttribs(s.select,d.select,c[""])):c=d,l.pointAttr=c}}
15,destroy:function(){var t,e,i,n,o,s=this,r=s.chart,a=/AppleWebKit\/533/.test(xt),l=s.data||[];for(Qt(s,"destroy"),Kt(s),Vt(s.axisTypes||[],function(t){(o=s[t])&&(c(o.series,s),o.isDirty=o.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=l.length;e--;)(i=l[e])&&i.destroy&&i.destroy();for(n in s.points=null,clearTimeout(s.animationTimeout),Vt("area,graph,dataLabelsGroup,group,markerGroup,tracker,graphNeg,areaNeg,posClip,negClip".split(","),function(e){s[e]&&(t=a&&"group"===e?"hide":"destroy",s[e][t]())}),r.hoverSeries===s&&(r.hoverSeries=null),c(r.series,s),s)delete s[n]},getSegmentPath:function(t){var e=this,i=[],n=e.options.step;return Vt(t,function(o,s){var r,a=o.plotX,l=o.plotY;e.getPointSpline?i.push.apply(i,e.getPointSpline(t,o,s)):(i.push(s?"L":"M"),n&&s&&(r=t[s-1],"right"===n?i.push(r.plotX,l):"center"===n?i.push((r.plotX+a)/2,r.plotY,(r.plotX+a)/2,l):i.push(a,r.plotY)),i.push(o.plotX,o.plotY))}),i},getGraphPath:function(){var t,e=this,i=[],n=[];return Vt(e.segments,function(o){t=e.getSegmentPath(o),o.length>1?i=i.concat(t):n.push(o[0])}),e.singlePoints=n,e.graphPath=i},drawGraph:function(){var t=this,e=this.options,i=[["graph",e.lineColor||this.color]],n=e.lineWidth,o=e.dashStyle,s="square"!==e.linecap,r=this.getGraphPath(),a=e.negativeColor;a&&i.push(["graphNeg",a]),Vt(i,function(i,a){var l=i[0],c=t[l];c?(ee(c),c.animate({d:r})):n&&r.length&&(c={stroke:i[1],"stroke-width":n,fill:Ft,zIndex:1},o?c.dashstyle=o:s&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),t[l]=t.chart.renderer.path(r).attr(c).add(t.group).shadow(!a&&e.shadow))})},clipNeg:function(){var t,e=this.options,i=this.chart,n=i.renderer,o=e.negativeColor||e.negativeFillColor,s=this.graph,r=this.area,a=this.posClip,l=this.negClip;t=i.chartWidth;var c=i.chartHeight,h=ft(t,c),u=this.yAxis;o&&(s||r)&&((o=ut(u.toPixels(e.threshold||0,!0)))<0&&(h-=o),e={x:0,y:0,width:h,height:o},h={x:0,y:o,width:h,height:h},i.inverted&&(e.height=h.y=i.plotWidth-o,n.isVML&&(e={x:i.plotWidth-o-i.plotLeft,y:0,width:t,height:c},h={x:o+i.plotLeft-t,y:0,width:i.plotLeft+o,height:t})),u.reversed?(i=h,t=e):(i=e,t=h),a?(a.animate(i),l.animate(t)):(this.posClip=a=n.clipRect(i),this.negClip=l=n.clipRect(t),s&&this.graphNeg&&(s.clip(a),this.graphNeg.clip(l)),r&&(r.clip(a),this.areaNeg.clip(l))))},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};Vt(["group","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;e.xAxis&&(Xt(i,"resize",t),Xt(e,"destroy",function(){Kt(i,"resize",t)}),t(),e.invertGroups=t)},plotGroup:function(t,e,i,n,o){var s=this[t],r=!s;return r&&(this[t]=s=this.chart.renderer.g(e).attr({visibility:i,zIndex:n||.1}).add(o)),s[r?"attr":"animate"](this.getPlotBox()),s},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,n=e.options,o=(t=n.animation)&&!!e.animate&&i.renderer.isSVG&&p(t.duration,500)||0,s=e.visible?"visible":"hidden",r=n.zIndex,a=e.hasRendered,l=i.seriesGroup;t=e.plotGroup("group","series",s,r,l),e.markerGroup=e.plotGroup("markerGroup","markers",s,r,l),o&&e.animate(!0),e.getAttribs(),t.inverted=!!e.isCartesian&&i.inverted,e.drawGraph&&(e.drawGraph(),e.clipNeg()),Vt(e.points,function(t){t.redraw&&t.redraw()}),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&!1!==e.options.enableMouseTracking&&e.drawTracker(),i.inverted&&e.invertGroups(),!1!==n.clip&&!e.sharedClipKey&&!a&&t.clip(i.clipRect),o&&e.animate(),a||(o?e.animationTimeout=setTimeout(function(){e.afterAnimate()},o):e.afterAnimate()),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirtyData,i=this.group,n=this.xAxis,o=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:p(n&&n.left,t.plotLeft),translateY:p(o&&o.top,t.plotTop)})),this.translate(),this.setTooltipPoints&&this.setTooltipPoints(!0),this.render(),e&&Qt(this,"updatedData")}},R.prototype={destroy:function(){P(this,this.axis)},render:function(t){var e=this.options,i=(i=e.format)?b(i,this):e.formatter.call(this);this.label?this.label.attr({text:i,visibility:"hidden"}
15):this.label=this.axis.chart.renderer.text(i,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,e){var i=(r=this.axis).chart,n=i.inverted,o=this.isNegative,s=r.translate(r.usePercentage?100:this.total,0,0,0,1),r=r.translate(0),a=(r=gt(s-r),i.xAxis[0].translate(this.x)+t),l=i.plotHeight;o={x:n?o?s:s-r:a,y:n?l-a-e:o?l-s-r:l-s,width:n?r:e,height:n?e:r};(n=this.label)&&(n.align(this.alignOptions,null,o),o=n.alignAttr,n[!1===this.options.crop||i.isInsidePlot(o.x,o.y)?"show":"hide"](!0))}},I.prototype.buildStacks=function(){var t=this.series,e=p(this.options.reversedStacks,!0),i=t.length;if(!this.isXAxis){for(this.usePercentage=!1;i--;)t[e?i:t.length-i-1].setStackedPoints();if(this.usePercentage)for(i=0;i<t.length;i++)t[i].setPercentStacks()}},I.prototype.renderStackTotals=function(){var t,e,i=this.chart,n=i.renderer,o=this.stacks,s=this.stackTotalGroup;for(t in s||(this.stackTotalGroup=s=n.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),s.translate(i.plotLeft,i.plotTop),o)for(e in i=o[t])i[e].render(s)},xe.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var t,e,i,n,o,s,r=this.processedXData,a=this.processedYData,l=[],c=a.length,h=(d=this.options).threshold,u=d.stack,d=d.stacking,p=this.stackKey,f="-"+p,m=this.negStacks,g=this.yAxis,v=g.stacks,y=g.oldStacks;for(n=0;n<c;n++)o=r[n],s=a[n],i=this.index+","+n,v[e=(t=m&&s<h)?f:p]||(v[e]={}),v[e][o]||(y[e]&&y[e][o]?(v[e][o]=y[e][o],v[e][o].total=null):v[e][o]=new R(g,g.options.stackLabels,t,o,u)),(e=v[e][o]).points[i]=[e.cum||0],"percent"===d?(t=t?p:f,m&&v[t]&&v[t][o]?(t=v[t][o],e.total=t.total=ft(t.total,e.total)+gt(s)||0):e.total=E(e.total+(gt(s)||0))):e.total=E(e.total+(s||0)),e.cum=(e.cum||0)+(s||0),e.points[i].push(e.cum),l[n]=e.cum;"percent"===d&&(g.usePercentage=!0),this.stackedYData=l,g.oldStacks={}}},xe.prototype.setPercentStacks=function(){var t=this,e=t.stackKey,i=t.yAxis.stacks,n=t.processedXData;Vt([e,"-"+e],function(e){for(var o,s,r=n.length;r--;)o=n[r],(o=(s=i[e]&&i[e][o])&&s.points[t.index+","+r])&&(s=s.total?100/s.total:0,o[0]=E(o[0]*s),o[1]=E(o[1]*s),t.stackedYData[r]=o[1])})},t(N.prototype,{addSeries:function(t,e,i){var n,o=this;return t&&(e=p(e,!0),Qt(o,"addSeries",{options:t},function(){n=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),e&&o.redraw(i)})),n},addAxis:function(t,i,n,o){var s=i?"xAxis":"yAxis",r=this.options;new I(this,e(t,{index:this[s].length,isX:i})),r[s]=d(r[s]||{}),r[s].push(t),p(n,!0)&&this.redraw(o)},showLoading:function(e){var i=this,n=i.options,o=i.loadingDiv,s=n.loading,r=function(){o&&f(o,{left:i.plotLeft+"px",top:i.plotTop+"px",width:i.plotWidth+"px",height:i.plotHeight+"px"})};o||(i.loadingDiv=o=m($t,{className:"highcharts-loading"},t(s.style,{zIndex:10,display:Ft}),i.container),i.loadingSpan=m("span",null,s.labelStyle,o),Xt(i,"redraw",r)),i.loadingSpan.innerHTML=e||n.lang.loading,i.loadingShown||(f(o,{opacity:0,display:""}),te(o,{opacity:s.style.opacity},{duration:s.showDuration||0}),i.loadingShown=!0),r()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&te(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){f(e,{display:Ft})}}),this.loadingShown=!1}}),t(be.prototype,{update:function(t,e,i,n){function r(){l.applyOptions(t),o(t)&&!s(t)&&(l.redraw=function(){h&&(t&&t.marker&&t.marker.symbol?l.graphic=h.destroy():h.attr(l.pointAttr[l.state||""])),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.redraw=null}),a=l.index,c.updateParallelArrays(l,a),d.data[a]=l.options,c.isDirty=c.isDirtyData=!0,!c.fixedBox&&c.hasCartesianSeries&&(u.isDirtyBox=!0),"point"===d.legendT
15ype&&u.legend.destroyItem(l),e&&u.redraw(i)}var a,l=this,c=l.series,h=l.graphic,u=c.chart,d=c.options;e=p(e,!0);!1===n?r():l.firePointEvent("update",{options:t},r)},remove:function(t,e){var i,n=this,o=n.series,s=o.points,r=o.chart,a=o.data;A(e,r),t=p(t,!0),n.firePointEvent("remove",null,function(){i=Yt(n,a),a.length===s.length&&s.splice(i,1),a.splice(i,1),o.options.data.splice(i,1),o.updateParallelArrays(n,"splice",i,1),n.destroy(),o.isDirty=!0,o.isDirtyData=!0,t&&r.redraw()})}}),t(xe.prototype,{addPoint:function(t,e,i,n){var o,s=this.options,r=this.data,a=this.graph,l=this.area,c=this.chart,h=this.xAxis&&this.xAxis.names,u=a&&a.shift||0,d=s.data,f=this.xData;if(A(n,c),i&&Vt([a,l,this.graphNeg,this.areaNeg],function(t){t&&(t.shift=u+1)}),l&&(l.isArea=!0),e=p(e,!0),n={series:this},this.pointClass.prototype.applyOptions.apply(n,[t]),a=n.x,l=f.length,this.requireSorting&&a<f[l-1])for(o=!0;l&&f[l-1]>a;)l--;this.updateParallelArrays(n,"splice",l,0,0),this.updateParallelArrays(n,l),h&&n.name&&(h[a]=n.name),d.splice(l,0,t),o&&(this.data.splice(l,0,null),this.processData()),"point"===s.legendType&&this.generatePoints(),i&&(r[0]&&r[0].remove?r[0].remove(!1):(r.shift(),this.updateParallelArrays(n,"shift"),d.shift())),this.isDirtyData=this.isDirty=!0,e&&(this.getAttribs(),c.redraw())},remove:function(t,e){var i=this,n=i.chart;t=p(t,!0);i.isRemoving||(i.isRemoving=!0,Qt(i,"remove",null,function(){i.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),t&&n.redraw(e)})),i.isRemoving=!1},update:function(i,n){var o,s=this,r=this.chart,a=this.userOptions,l=this.type,c=Bt[l].prototype,h=["group","markerGroup","dataLabelsGroup"];for(o in Vt(h,function(t){h[t]=s[t],delete s[t]}),i=e(a,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},i),this.remove(!1),c)c.hasOwnProperty(o)&&(this[o]=O);t(this,Bt[i.type||l].prototype),Vt(h,function(t){s[t]=h[t]}),this.init(r,i),r.linkSeries(),p(n,!0)&&r.redraw(!1)}}),t(I.prototype,{update:function(i,n){var o=this.chart;i=o.options[this.coll][this.options.index]=e(this.userOptions,i);this.destroy(!0),this._addedPlotLB=O,this.init(o,t(i,{events:O})),o.isDirtyBox=!0,p(n,!0)&&o.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,o=n.length;o--;)n[o]&&n[o].remove(!1);c(e.axes,this),c(e[i],this),e.options[i].splice(this.options.index,1),Vt(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,p(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}}),ue=g(xe),Bt.line=ue,ie.area=e(ne,{threshold:0});var we=g(xe,{type:"area",getSegments:function(){var t,e,i,n,o=this,s=[],r=[],a=[],l=this.xAxis,c=this.yAxis,h=c.stacks[this.stackKey],u={},d=this.points,p=this.options.connectNulls;if(this.options.stacking&&!this.cropped){for(i=0;i<d.length;i++)u[d[i].x]=d[i];for(n in h)null!==h[n].total&&a.push(+n);a.sort(function(t,e){return t-e}),Vt(a,function(n){var s,a=0;if(!p||u[n]&&null!==u[n].y)if(u[n])r.push(u[n]);else{for(i=o.index;i<=c.series.length;i++)if(s=h[n].points[i+","+n]){a=s[1];break}t=l.translate(n),e=c.toPixels(a,!0),r.push({y:null,plotX:t,clientX:t,plotY:e,yBottom:e,onMouseOver:Nt})}}),r.length&&s.push(r)}else xe.prototype.getSegments.call(this),s=this.segments;this.segments=s},getSegmentPath:function(t){var e,i=xe.prototype.getSegmentPath.call(this,t),n=[].concat(i),o=this.options;e=i.length;var s,r=this.yAxis.getThreshold(o.threshold);if(3===e&&n.push("L",i[1],i[2]),o.stacking&&!this.closedStacks)for(e=t.length-1;e>=0;e--)s=p(t[e].yBottom,r),e<t.length-1&&o.step&&n.push(t[e+1].plotX,s),n.push(t[e].plotX,s);else this.closeSegment(n,t,r);return this.areaPath=this.areaPath.concat(n),i},closeSegment:function(t,e,i){t.push("L",e[e.length-1].plotX,i,"L",e[0].plotX,i)},drawGraph:function(){this.areaPath=[],xe.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,n=i.negativeColor,o=i.negativeFillColor,s=[["area",this.color,i.fillColor]];(n||o)&&s.push(["areaNeg",n,o]),Vt(s,function(n){var o=n[0],s=t[o];s?s.animate({d:e}):t[o]=t.chart.renderer.path(e).attr({fill:p(n[2],ae(n[1]).setOpacity(p(i.fillOpacity,.75)).get()),zIndex:0}).add(t.group)})},drawLegendSymbol:Ht.drawRectangle});Bt.area=we,ie.spline=e(ne),ue=g(xe,{type:"spline",getPointSpline:function(t,e,
15i){var n,o,s,r,a,l=e.plotX,c=e.plotY,h=t[i-1],u=t[i+1];h&&u&&(t=h.plotY,s=u.plotX,r=(1.5*c+(u=u.plotY))/2.5,r+=a=(r-(o=(1.5*c+t)/2.5))*((s=(1.5*l+s)/2.5)-l)/(s-(n=(1.5*l+h.plotX)/2.5))+c-r,(o+=a)>t&&o>c?r=2*c-(o=ft(t,c)):o<t&&o<c&&(r=2*c-(o=mt(t,c))),r>u&&r>c?o=2*c-(r=ft(u,c)):r<u&&r<c&&(o=2*c-(r=mt(u,c))),e.rightContX=s,e.rightContY=r);return i?(e=["C",h.rightContX||h.plotX,h.rightContY||h.plotY,n||l,o||c,l,c],h.rightContX=h.rightContY=null):e=["M",l,c],e}}),Bt.spline=ue,ie.areaspline=e(ie.area),ue=g(ue,{type:"areaspline",closedStacks:!0,getSegmentPath:(we=we.prototype).getSegmentPath,closeSegment:we.closeSegment,drawGraph:we.drawGraph,drawLegendSymbol:Ht.drawRectangle}),Bt.areaspline=ue,ie.column=e(ne,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},stickyTracking:!1,tooltip:{distance:6},threshold:0}),ue=g(xe,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){xe.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&Vt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e,i=this,n=i.options,o=i.xAxis,s=i.yAxis,r=o.reversed,a={},l=0;!1===n.grouping?l=1:Vt(i.chart.series,function(n){var o=n.options,r=n.yAxis;n.type===i.type&&n.visible&&s.len===r.len&&s.pos===r.pos&&(o.stacking?(t=n.stackKey,a[t]===O&&(a[t]=l++),e=a[t]):!1!==o.grouping&&(e=l++),n.columnIndex=e)});var c=(o=mt(gt(o.transA)*(o.ordinalSlope||n.pointRange||o.closestPointRange||o.tickInterval||1),o.len))*n.groupPadding,u=(o-2*c)/l,d=p(d=n.pointWidth,u-2*(n=h(d)?(u-d)/2:u*n.pointPadding));return i.columnMetrics={width:d,offset:n+(c+((r?l-(i.columnIndex||0):i.columnIndex)||0)*u-o/2)*(r?-1:1)}},translate:function(){var t=this,e=t.chart,i=t.options,n=t.borderWidth=p(i.borderWidth,t.activePointCount>.5*t.xAxis.len?0:1),o=t.yAxis,s=t.translatedThreshold=o.getThreshold(i.threshold),r=p(i.minPointLength,5),a=t.getColumnMetrics(),l=a.width,c=t.barW=ft(l,1+2*n),h=t.pointXOffset=a.offset,u=-(n%2?.5:0),d=n%2?.5:1;e.renderer.isVML&&e.inverted&&(d+=1),i.pointPadding&&(c=pt(c)),xe.prototype.translate.apply(t),Vt(t.points,function(i){var n,a=p(i.yBottom,s),f=mt(ft(-999-a,i.plotY),o.len+999+a),m=i.plotX+h,g=c,v=mt(f,a);n=ft(f,a)-v,gt(n)<r&&r&&(n=r,v=ut(gt(v-s)>r?a-r:s-(o.translate(i.y,0,1,0,1)<=s?r:0))),i.barX=m,i.pointWidth=l,i.tooltipPos=e.inverted?[o.len-f,t.xAxis.len-m-g/2]:[m+g/2,f+o.pos-e.plotTop],g=ut(m+g)+u,g-=m=ut(m)+u,a=gt(v)<.5,n=ut(v+n)+d,n-=v=ut(v)+d,a&&(v-=1,n+=1),i.shapeType="rect",i.shapeArgs={x:m,y:v,width:g,height:n}})},getSymbol:Nt,drawLegendSymbol:Ht.drawRectangle,drawGraph:Nt,drawPoints:function(){var t,i,n=this,o=this.chart,s=n.options,r=o.renderer,a=s.animationLimit||250;Vt(n.points,function(l){var c=l.plotY,u=l.graphic;c===O||isNaN(c)||null===l.y?u&&(l.graphic=u.destroy()):(t=l.shapeArgs,c=h(n.borderWidth)?{"stroke-width":n.borderWidth}:{},i=l.pointAttr[l.selected?"select":""]||n.pointAttr[""],u?(ee(u),u.attr(c)[o.pointCount<a?"animate":"attr"](e(t))):l.graphic=r[l.shapeType](t).attr(i).attr(c).add(n.group).shadow(s.shadow,null,s.stacking&&!s.borderRadius))})},animate:function(t){var e=this.yAxis,i=this.options,n=this.chart.inverted,o={};At&&(t?(o.scaleY=.001,t=mt(e.pos+e.len,ft(e.pos,e.toPixels(i.threshold))),n?o.translateX=t-e.len:o.translateY=t,this.group.attr(o)):(o.scaleY=1,o[n?"translateX":"translateY"]=e.pos,this.group.animate(o,this.options.animation),this.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&Vt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),xe.prototype.remove.apply(t,arguments)}}),Bt.column=ue,ie.bar=e(ie.column),we=g(ue,{type:"bar",inverted:!0}),Bt.bar=we,ie.scatter=e(ne,{lineWidth:0,tooltip:{headerFormat:'<span style="color:{series.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/>"},stickyTracking:!1}),we=g(xe,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,singularTooltips:!0,drawGraph:function(){this.options.lineWidth&&xe.prototype.drawGraph.call(this)}}),Bt.scatter=we,ie.pie=e(ne,{borderColor:"#FFFFFF",borderWidth:1,center:[null,
15null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return this.point.name}},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),ne={type:"pie",isCartesian:!1,pointClass:g(be,{init:function(){be.prototype.init.apply(this,arguments);var e,i=this;return i.y<0&&(i.y=null),t(i,{visible:!1!==i.visible,name:p(i.name,"Slice")}),e=function(t){i.slice("select"===t.type)},Xt(i,"select",e),Xt(i,"unselect",e),i},setVisible:function(t){var e=this,i=e.series,n=i.chart;e.visible=e.options.visible=t=t===O?!e.visible:t,i.options.data[Yt(e,i.data)]=e.options,Vt(["graphic","dataLabel","connector","shadowGroup"],function(i){e[i]&&e[i][t?"show":"hide"](!0)}),e.legendItem&&n.legend.colorizeItem(e,t),!i.isDirty&&i.options.ignoreHiddenPoint&&(i.isDirty=!0,n.redraw())},slice:function(t,e,i){var n=this.series;A(i,n.chart),p(e,!0),this.sliced=this.options.sliced=t=h(t)?t:!this.sliced,n.options.data[Yt(this,n.data)]=this.options,t=t?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(t),this.shadowGroup&&this.shadowGroup.animate(t)},haloPath:function(t){var e=this.shapeArgs,i=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(i.plotLeft+e.x,i.plotTop+e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}}),requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},singularTooltips:!0,getColor:Nt,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(Vt(i,function(t){var i=t.graphic;t=t.shapeArgs;i&&(i.attr({r:e.center[3]/2,start:n,end:n}),i.animate({r:t.r,start:t.start,end:t.end},e.options.animation))}),e.animate=null)},setData:function(t,e,i,n){xe.prototype.setData.call(this,t,!1,i,n),this.processData(),this.generatePoints(),p(e,!0)&&this.chart.redraw(i)},generatePoints:function(){var t,e,i,n,o=0,s=this.options.ignoreHiddenPoint;for(xe.prototype.generatePoints.call(this),i=(e=this.points).length,t=0;t<i;t++)n=e[t],o+=s&&!n.visible?0:n.y;for(this.total=o,t=0;t<i;t++)(n=e[t]).percentage=o>0?n.y/o*100:0,n.total=o},translate:function(t){this.generatePoints();var e,i,n,o,s,r=0,a=(f=this.options).slicedOffset,l=a+f.borderWidth,c=f.startAngle||0,h=this.startAngleRad=_t/180*(c-90),u=(c=(this.endAngleRad=_t/180*(p(f.endAngle,c+360)-90))-h,this.points),d=f.dataLabels.distance,f=f.ignoreHiddenPoint,m=u.length;for(t||(this.center=t=this.getCenter()),this.getX=function(e,i){return n=ht.asin(mt((e-t[1])/(t[2]/2+d),1)),t[0]+(i?-1:1)*vt(n)*(t[2]/2+d)},o=0;o<m;o++)s=u[o],e=h+r*c,f&&!s.visible||(r+=s.percentage/100),i=h+r*c,s.shapeType="arc",s.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:ut(1e3*e)/1e3,end:ut(1e3*i)/1e3},(n=(i+e)/2)>1.5*_t?n-=2*_t:n<-_t/2&&(n+=2*_t),s.slicedTranslation={translateX:ut(vt(n)*a),translateY:ut(yt(n)*a)},e=vt(n)*t[2]/2,i=yt(n)*t[2]/2,s.tooltipPos=[t[0]+.7*e,t[1]+.7*i],s.half=n<-_t/2||n>_t/2?1:0,s.angle=n,l=mt(l,d/2),s.labelPos=[t[0]+e+vt(n)*d,t[1]+i+yt(n)*d,t[0]+e+vt(n)*l,t[1]+i+yt(n)*l,t[0]+e,t[1]+i,d<0?"center":s.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var e,i,n,o,s=this,r=s.chart.renderer,a=s.options.shadow;a&&!s.shadowGroup&&(s.shadowGroup=r.g("shadow").add(s.group)),Vt(s.points,function(l){i=l.graphic,o=l.shapeArgs,n=l.shadowGroup,a&&!n&&(n=l.shadowGroup=r.g("shadow").add(s.shadowGroup)),e=l.sliced?l.slicedTranslation:{translateX:0,translateY:0},n&&n.attr(e),i?i.animate(t(o,e)):l.graphic=i=r[l.shapeType](o).setRadialReference(s.center).attr(l.pointAttr[l.selected?"select":""]).attr({"stroke-linejoin":"round"}).attr(e).add(s.group).shadow(a,n),void 0!==l.visible&&l.setVisible(l.visible)})},sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:Ht.drawRectangle,getCenter:le.getCenter,getSymbol:Nt},ne=g(xe,ne),Bt.pie=ne,xe.prototype.drawDataLabels=function(){var i,n,o,s,r=this,a=r.options,l=a.cursor,c=a.dataLabels,u=r.points,d=r.hasRendered||0;(c.enabled||r._hasPointLabels)&&(r.dlProcessOptions&&r.dlProcessOptions(c),s=r.plotGroup("dataLabelsGroup","data-labels",c.defer?"hidden":"visible",c.zIndex||6),p(c.defer,!0)&&(s.attr({opacity:+d}),d||Xt(r,"afterAnimate",function(){r.visible&&s.show(),s[a.animation?"animate":"attr"]({opacity:1},{duration:200})})),n=c,Vt(u,function(a){var u,d,f,m=a.dataLabel,g=a.connector,v=!0;if(u=p((i=a.options&&a.options.dataLabels)&&i.enabled,n.enabled),m&&!u)a.dataLabel=m.destroy();else if(u){if(u=(c=e(n,i)).rotation,d=a.getLabelConfig(),o=c.format?b(c.format,d):c.formatter.call(d,c),c.style.color=p(c.color,c.style.color,r.color,"black"),m)h(o)?(m.attr({text:o}),v=!1):(a.dataLabel=m=m.destroy(),g&&(a.connector=g.destroy()));else if(h(o)){for(f in m={fill:c.backgroundColor,stroke:c.borderColor,"stroke-width":c.borderWidth,r:c.borderRadius||0,rotation:u,padding:c.padding,zIndex:1})m[f]===O&&delete m[f];m=a.dataLabel=r.chart.renderer[u?"text":"label"](o,0,-999,null,null,null,c.useHTML).attr(m).css(t(c.style,l&&{cursor:l})).add(s).shadow(c.shadow)}m&&r.alignDataLabel(a,m,c,null,v)}}))},xe.prototype.alignDataLabel=function(e,i,n,o,s){var r=this.chart,a=r.inverted,l=p(e.plotX,-999),c=p(e.plotY,-999),h=i.getBBox();(e=this.visible&&(e.series.forceDL||r.isInsidePlot(l,ut(c),a)||o&&r.isInsidePlot(l,a?o.x+1:o.y+o.height-1,a)))&&(o=t({x:a?r.plotWidth-c:l,y:ut(a?r.plotHeight-l:c),width:0,height:0},o),t(n,{width:h.width,height:h.height}),n.rotation?i[s?"attr":"animate"]({x:o.x+n.x+o.width/2,y:o.y+n.y+o.height/2}).attr({align:n.align}):(i.align(n,null,o),a=i.alignAttr,"justify"===p(n.overflow,"justify")?this.justifyDataLabel(i,n,a,h,o,s):p(n.crop,!0)&&(e=r.isInsidePlot(a.x,a.y)&&r.isInsidePlot(a.x+h.width,a.y+h.height)))),e||(i.attr({y:-999}),i.placed=!1)}
15,xe.prototype.justifyDataLabel=function(t,e,i,n,o,s){var r,a,l=this.chart,c=e.align,h=e.verticalAlign;(r=i.x)<0&&("right"===c?e.align="left":e.x=-r,a=!0),(r=i.x+n.width)>l.plotWidth&&("left"===c?e.align="right":e.x=l.plotWidth-r,a=!0),(r=i.y)<0&&("bottom"===h?e.verticalAlign="top":e.y=-r,a=!0),(r=i.y+n.height)>l.plotHeight&&("top"===h?e.verticalAlign="bottom":e.y=l.plotHeight-r,a=!0),a&&(t.placed=!s,t.align(e,null,o))},Bt.pie&&(Bt.pie.prototype.drawDataLabels=function(){var t,e,i,n,o,s,r,a,l,c,h,u=this,d=u.data,f=u.chart,m=u.options.dataLabels,g=p(m.connectorPadding,10),v=p(m.connectorWidth,1),y=f.plotWidth,_=f.plotHeight,b=p(m.softConnector,!0),x=m.distance,w=u.center,k=w[2]/2,C=w[1],P=x>0,T=[[],[]],E=[0,0,0,0],A=function(t,e){return e.y-t.y};if(u.visible&&(m.enabled||u._hasPointLabels)){for(xe.prototype.drawDataLabels.apply(u),Vt(d,function(t){t.dataLabel&&t.visible&&T[t.half].push(t)}),c=2;c--;){var M,L=[],D=[],I=T[c],N=I.length;if(N){for(u.sortByAngle(I,c-.5),h=d=0;!d&&I[h];)d=I[h]&&I[h].dataLabel&&(I[h].dataLabel.getBBox().height||21),h++;if(x>0){for(o=mt(C+k+x,f.plotHeight),h=ft(0,C-k-x);h<=o;h+=d)L.push(h);if(N>(o=L.length)){for((t=[].concat(I)).sort(A),h=N;h--;)t[h].rank=h;for(h=N;h--;)I[h].rank>=o&&I.splice(h,1);N=I.length}for(h=0;h<N;h++){var R,O;for(t=I[h],s=t.labelPos,t=9999,O=0;O<o;O++)(R=gt(L[O]-s[1]))<t&&(t=R,M=O);if(M<h&&null!==L[h])M=h;else for(o<N-h+M&&null!==L[h]&&(M=o-N+h);null===L[M];)M++;D.push({i:M,y:L[M]}),L[M]=null}D.sort(A)}for(h=0;h<N;h++)t=I[h],s=t.labelPos,n=t.dataLabel,l=!1===t.visible?"hidden":"visible",t=s[1],x>0?(M=(o=D.pop()).i,(t>(a=o.y)&&null!==L[M+1]||t<a&&null!==L[M-1])&&(a=mt(ft(0,t),f.plotHeight))):a=t,r=m.justify?w[0]+(c?-1:1)*(k+x):u.getX(a===C-k-x||a===C+k+x?t:a,c),n._attr={visibility:l,align:s[6]},n._pos={x:r+m.x+({left:g,right:-g}[s[6]]||0),y:a+m.y-10},n.connX=r,n.connY=a,null===this.options.size&&(o=n.width,r-o<g?E[3]=ft(ut(o-r+g),E[3]):r+o>y-g&&(E[1]=ft(ut(r+o-y+g),E[1])),a-d/2<0?E[0]=ft(ut(d/2-a),E[0]):a+d/2>_&&(E[2]=ft(ut(a+d/2-_),E[2])))}}(0===S(E)||this.verifyDataLabelOverflow(E))&&(this.placeDataLabels(),P&&v&&Vt(this.points,function(t){e=t.connector,s=t.labelPos,(n=t.dataLabel)&&n._pos?(l=n._attr.visibility,r=n.connX,a=n.connY,i=b?["M",r+("left"===s[6]?5:-5),a,"C",r,a,2*s[2]-s[4],2*s[3]-s[5],s[2],s[3],"L",s[4],s[5]]:["M",r+("left"===s[6]?5:-5),a,"L",s[2],s[3],"L",s[4],s[5]],e?(e.animate({d:i}),e.attr("visibility",l)):t.connector=e=u.chart.renderer.path(i).attr({"stroke-width":v,stroke:m.connectorColor||t.color||"#606060",visibility:l}).add(u.dataLabelsGroup)):e&&(t.connector=e.destroy())}))}},Bt.pie.prototype.placeDataLabels=function(){Vt(this.points,function(t){var e;(t=t.dataLabel)&&((e=t._pos)?(t.attr(t._attr),t[t.moved?"animate":"attr"](e),t.moved=!0):t&&t.attr({y:-999}))})},Bt.pie.prototype.alignDataLabel=Nt,Bt.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,o=n.center,s=n=n.minSize||80;return null!==o[0]?s=ft(i[2]-ft(t[1],t[3]),n):(s=ft(i[2]-t[1]-t[3],n),i[0]+=(t[3]-t[1])/2),null!==o[1]?s=ft(mt(s,i[2]-ft(t[0],t[2])),n):(s=ft(mt(s,i[2]-t[0]-t[2]),n),i[1]+=(t[0]-t[2])/2),s<i[2]?(i[2]=s,this.translate(i),Vt(this.points,function(t){t.dataLabel&&(t.dataLabel._pos=null)}),this.drawDataLabels&&this.drawDataLabels()):e=!0,e}),Bt.column&&(Bt.column.prototype.alignDataLabel=function(t,i,n,o,s){var r=this.chart,a=r.inverted,l=t.dlBox||t.shapeArgs,c=t.below||t.plotY>p(this.translatedThreshold,r.plotSizeY),h=p(n.inside,!!this.options.stacking);l&&(o=e(l),a&&(o={x:r.plotWidth-o.y-o.height,y:r.plotHeight-o.x-o.width,width:o.height,height:o.width}),!h)&&(a?(o.x+=c?0:o.width,o.width=0):(o.y+=c?o.height:0,o.height=0)),n.align=p(n.align,!a||h?"center":c?"right":"left"),n.verticalAlign=p(n.verticalAlign,a||h?"middle":c?"top":"bottom"),xe.prototype.alignDataLabel.call(this,t,i,n,o,s)}),ne=rt.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart,i=e.pointer,n=t.options.cursor,o=n&&{cursor:n},s=function(i){var n,o=i.target;for(e.hoverSeries!==t&&t.onMouseOver();o&&!n;)n=o.point,o=o.parentNode;n!==O&&n!==e.hoverPoint&&n.onMouseOver(i)};Vt(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.element.point=t)}),t._hasTracking||(Vt(t.trackerGroups,function(e){t[e]&&(t[e].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){i.onTrackerMouseOut(t)}).css(o),F)&&t[e].on("touchstart",s)}),t._hasTracking=!0)},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,o=[].concat(n?e.areaPath:e.graphPath),s=o.length,r=e.chart,a=r.pointer,l=r.renderer,c=r.options.tooltip.snap,h=e.tracker,u=(d=i.cursor)&&{cursor:d},d=e.singlePoints,p=function(){r.hoverSeries!==e&&e.onMouseOver()},f="rgba(192,192,192,"+(At?1e-4:.002)+")";if(s&&!n)for(t=s+1;t--;)"M"===o[t]&&o.splice(t+1,0,o[t+1]-c,o[t+2],"L"),(t&&"M"===o[t]||t===s)&&o.splice(t,0,"L",o[t-2]+c,o[t-1]);for(t=0;t<d.length;t++)s=d[t],o.push("M",s.plotX-c,s.plotY,"L",s.plotX+c,s.plotY);h?h.attr({d:o}):(e.tracker=l.path(o).attr({"stroke-linejoin":"round",visibility:e.visible?"visible":"hidden",stroke:f,fill:n?f:Ft,"stroke-width":i.lineWidth+(n?0:2*c),zIndex:2}).add(e.group),Vt([e.tracker,e.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(t){a.onTrackerMouseOut(t)}).css(u),F&&t.on("touchstart",p)}))}},Bt.column&&(ue.prototype.drawTracker=ne.drawTrackerPoint),Bt.pie&&(Bt.pie.prototype.drawTracker=ne.drawTrackerPoint),Bt.scatter&&(we.prototype.drawTracker=ne.drawTrackerPoint),t(_e.prototype,{setItemEvents:function(t,e,
15i,n,o){var s=this;(i?e:t.legendGroup).on("mouseover",function(){t.setState("hover"),e.css(s.options.itemHoverStyle)}).on("mouseout",function(){e.css(t.visible?n:o),t.setState()}).on("click",function(e){var i=function(){t.setVisible()};e={browserEvent:e};t.firePointEvent?t.firePointEvent("legendItemClick",e,i):Qt(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=m("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Xt(t.checkbox,"click",function(e){Qt(t,"checkboxClick",{checked:e.target.checked},function(){t.select()})})}}),j.legend.itemStyle.cursor="pointer",t(N.prototype,{showResetZoom:function(){var t=this,e=j.lang,i=t.options.chart.resetZoomButton,n=i.theme,o=n.states,s="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,o&&o.hover).attr({align:i.position.align,title:e.resetZoomTitle}).add().align(i.position,!1,s)},zoomOut:function(){var t=this;Qt(t,"selection",{resetSelection:!0}
15,function(){t.zoom()})},zoom:function(t){var e,i,n=this.pointer,s=!1;!t||t.resetSelection?Vt(this.axes,function(t){e=t.zoom()}):Vt(t.xAxis.concat(t.yAxis),function(t){var i=t.axis,o=i.isXAxis;(n[o?"zoomX":"zoomY"]||n[o?"pinchX":"pinchY"])&&(e=i.zoom(t.min,t.max),i.displayBtn&&(s=!0))}),i=this.resetZoomButton,s&&!i?this.showResetZoom():!s&&o(i)&&(this.resetZoomButton=i.destroy()),e&&this.redraw(p(this.options.chart.animation,t&&t.animation,this.pointCount<100))},pan:function(t,e){var i,n=this,o=n.hoverPoints;o&&Vt(o,function(t){t.setState()}),Vt("xy"===e?[1,0]:[1],function(e){var o=t[e?"chartX":"chartY"],s=n[e?"xAxis":"yAxis"][0],r=n[e?"mouseDownX":"mouseDownY"],a=(s.pointRange||0)/2,l=s.getExtremes(),c=s.toValue(r-o,!0)+a;r=s.toValue(r+n[e?"plotWidth":"plotHeight"]-o,!0)-a;s.series.length&&c>mt(l.dataMin,l.min)&&r<ft(l.dataMax,l.max)&&(s.setExtremes(c,r,!1,!1,{trigger:"pan"}),i=!0),n[e?"mouseDownX":"mouseDownY"]=o}),i&&n.redraw(!1),f(n.container,{cursor:"move"})}}),t(be.prototype,{select:function(t,e){var i=this,n=i.series,o=n.chart;t=p(t,!i.selected);i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[Yt(i,n.data)]=i.options,i.setState(t&&"select"),e||Vt(o.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=t.options.selected=!1,n.options.data[Yt(t,n.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t){var e=this.series,i=e.chart,n=i.tooltip,o=i.hoverPoint;o&&o!==this&&o.onMouseOut(),this.firePointEvent("mouseOver"),n&&(!n.shared||e.noSharedTooltip)&&n.refresh(this,t),this.setState("hover"),i.hoverPoint=this},onMouseOut:function(){var t=this.series.chart,e=t.hoverPoints;this.firePointEvent("mouseOut"),e&&-1!==Yt(this,e)||(this.setState(),t.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var t,i=e(this.series.options.point,this.options).events;for(t in this.events=i,i)Xt(this,t,i[t]);this.hasImportedEvents=!0}},setState:function(i,n){var o,s=this.plotX,r=this.plotY,a=this.series,l=a.options.states,c=ie[a.type].marker&&a.options.marker,h=c&&!c.enabled,u=c&&c.states[i],d=u&&!1===u.enabled,p=a.stateMarkerGraphic,f=this.marker||{},m=a.chart,g=a.halo;i=i||"";o=this.pointAttr[i]||a.pointAttr[i],
16i===this.state&&!n||this.selected&&"select"!==i||l[i]&&!1===l[i].enabled||i&&(d||h&&!1===u.enabled)||i&&f.states&&f.states[i]&&!1===f.states[i].enabled||(this.graphic?(c=c&&this.graphic.symbolName&&o.r,this.graphic.attr(e(o,c?{x:s-c,y:r-c,width:2*c,height:2*c}:{})),p&&p.hide()):(i&&u&&(c=u.radius,f=f.symbol||a.symbol,p&&p.currentSymbol!==f&&(p=p.destroy()),p?p[n?"animate":"attr"]({x:s-c,y:r-c}):f&&(a.stateMarkerGraphic=p=m.renderer.symbol(f,s-c,r-c,2*c,2*c).attr(o).add(a.markerGroup),p.currentSymbol=f)),p&&p[i&&m.isInsidePlot(s,r,m.inverted)?"show":"hide"]()),(s=l[i]&&l[i].halo)&&s.size?(g||(a.halo=g=m.renderer.path().add(a.seriesGroup)),g.attr(t({fill:ae(this.color||a.color).setOpacity(s.opacity).get()},s.attributes))[n?"animate":"attr"]({d:this.haloPath(s.size)})):g&&g.attr({d:[]}),this.state=i)},haloPath:function(t){var e=this.series,i=e.chart,n=e.getPlotBox(),o=i.inverted;return i.renderer.symbols.circle(n.translateX+(o?e.yAxis.len-this.plotY:this.plotX)-t,n.translateY+(o?e.xAxis.len-this.plotX:this.plotY)-t,2*t,2*t)}}),t(xe.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&Qt(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;n&&n.onMouseOut(),this&&t.events.mouseOut&&Qt(this,"mouseOut"),i&&!t.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),this.setState(),e.hoverSeries=null},setState:function(t){var e=this.options,i=this.graph,n=this.graphNeg,o=e.states;e=e.lineWidth,t=t||"";this.state!==t&&(this.state=t,o[t]&&!1===o[t].enabled||(t&&(e=o[t].lineWidth||e+(o[t].lineWidthPlus||0)),i&&!i.dashstyle&&(t={"stroke-width":e},i.attr(t),n&&n.attr(t))))},setVisible:function(t,e){var i,n=this,o=n.chart,s=n.legendItem,r=o.options.chart.ignoreHiddenSeries,a=n.visible;i=(n.visible=t=n.userOptions.visible=t===O?!a:t)?"show":"hide",Vt(["group","dataLabelsGroup","markerGroup","tracker"],function(t){n[t]&&n[t][i]()}),o.hoverSeries===n&&n.onMouseOut(),s&&o.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&Vt(o.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),Vt(n.linkedSeries,function(e){e.setVisible(t,!1)}),r&&(o.isDirtyBox=!0),!1!==e&&o.redraw(),Qt(n,i)},setTooltipPoints:function(t){var e,i,n,o,s=[],r=this.xAxis,a=r&&r.getExtremes(),l=r?r.tooltipLen||r.len:this.chart.plotSizeX,c=[];if(!1!==this.options.enableMouseTracking&&!this.singularTooltips){for(t&&(this.tooltipPoints=null),Vt(this.segments||this.points,function(t){s=s.concat(t)}),r&&r.reversed&&(s=s.reverse()),this.orderTooltipPoints&&this.orderTooltipPoints(s),t=s.length,o=0;o<t;o++)if((e=(r=s[o]).x)>=a.min&&e<=a.max)for(n=s[o+1],e=i===O?0:i+1,i=s[o+1]?mt(ft(0,dt((r.clientX+(n?n.wrappedClientX||n.clientX:l))/2)),l):l;e>=0&&e<=i;)c[e++]=r;this.tooltipPoints=c}},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===O?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),Qt(this,t?"select":"unselect")},drawTracker:ne.drawTrackerGraph}),t(rt,{Axis:I,Chart:N,Color:ae,Point:be,Tick:D,Renderer:$,Series:xe,SVGElement:L,SVGRenderer:he,arrayMin:C,arrayMax:S,charts:Rt,dateFormat:B,format:b,pathAnim:W,getOptions:function(){return j},hasBidiBug:Mt,isTouchDevice:Tt,numberFormat:v,seriesTypes:Bt,setOptions:function(t){return j=e(!0,j,t),M(),j},addEvent:Xt,removeEvent:Kt,createElement:m,discardElement:T,css:f,each:Vt,extend:t,map:Gt,merge:e,pick:p,splat:d,extendClass:g,pInt:i,wrap:_,svg:At,canvas:Lt,vml:!At&&!Lt,product:"Highcharts",ver
16sion:"4.0.4"})}(),Highcharts.theme={colors:["#2D6E7A","#70A99A","#B8CE4C","#F3EEBC","#1A1D25","#9C0000","#8F5E2E","#E9842B","#FEF2C0","#3B2F10"],chart:{borderWidth:0,plotBackgroundColor:null,plotShadow:!1,plotBorderWidth:1},title:{},subtitle:{},xAxis:{gridLineWidth:1,lineColor:"#999",tickColor:"#999",title:{style:{color:"#333",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},yAxis:{minorTickInterval:"auto",lineColor:"#999",lineWidth:1,tickWidth:1,tickColor:"#999",title:{style:{color:"#333",fontWeight:"bold",fontSize:"12px",fontFamily:"Trebuchet MS, Verdana, sans-serif"}}},legend:{borderWidth:0,itemStyle:{font:"9pt Trebuchet MS, Verdana, sans-serif",color:"black"},itemHoverStyle:{color:"#039"},itemHiddenStyle:{color:"gray"}},labels:{style:{color:"#99b"}},plotOptions:{column:{borderWidth:0,shadow:!1},bar:{borderWidth:0,shadow:!1}}};var highchartsOptions=Highcharts.setOptions(Highcharts.theme);!function(t,e){function i(t,e,i){this.init.call(this,t,e,i)}function n(t,e,i){t.call(this,e,i),this.chart.polar&&(this.closeSegment=function(t){var e=this.xAxis.center;t.push("L",e[0],e[1])},this.closedStacks=!0)}function o(t,e){var i=this.chart,n=this.options.animation,o=this.group,s=this.markerGroup,r=this.xAxis.center,a=i.plotLeft,l=i.plotTop;i.polar?i.renderer.isSVG&&(!0===n&&(n={}),e?(i={translateX:r[0]+a,translateY:r[1]+l,scaleX:.001,scaleY:.001},o.attr(i),s&&(s.attrSetters=o.attrSetters,s.attr(i))):(i={translateX:a,translateY:l,scaleX:1,scaleY:1},o.animate(i,n),s&&s.animate(i,n),this.animate=null)):t.call(this,e)}var s=t.arrayMin,r=t.arrayMax,a=t.each,l=t.extend,c=t.merge,h=t.map,u=t.pick,d=t.pInt,p=t.getOptions().plotOptions,f=t.seriesTypes,m=t.extendClass,g=t.splat,v=t.wrap,y=t.Axis,_=t.Tick,b=t.Series,x=f.column.prototype,w=Math,k=w.round,C=w.floor,S=w.ceil,P=w.min,T=w.max,E=function(){};l(i.prototype,{init:function(t,e,i){var n=this,o=n.defaultOptions;n.chart=e,e.angular&&(o.background={}),n.options=t=c(o,t),(t=t.background)&&a([].concat(g(t)).reverse(),function(t){var e=t.backgroundColor;t=c(n.defaultBackgroundOptions,t);e&&(t.backgroundColor=e),t.color=t.backgroundColor,i.options.plotBands.unshift(t)})},defaultOptions:{center:["50%","50%"],size:"85%",startAngle:0},defaultBackgroundOptions:{shape:"circle",borderWidth:1,borderColor:"silver",backgroundColor:{linearGradient:{x1:0,y1:0,x2:0,y2:1},stops:[[0,"#FFF"],[1,"#DDD"]]},from:Number.MIN_VALUE,innerRadius:0,to:Number.MAX_VALUE,outerRadius:"105%"}});var A=y.prototype,M=(_=_.prototype,{getOffset:E,redraw:function(){this.isDirty=!1},render:function(){this.isDirty=!1},setScale:E,setCategories:E,setTitle:E}),L={isRadial:!0,defaultRadialGaugeOptions:{labels:{align:"center",x:0,y:null},minorGridLineWidth:0,minorTickInterval:"auto",minorTickLength:10,minorTickPosition:"inside",minorTickWidth:1,plotBands:[],tickLength:10,tickPosition:"inside",tickWidth:2,title:{rotation:0},zIndex:2},defaultRadialXOptions:{gridLineWidth:1,labels:{align:null,distance:15,x:0,y:null},maxPadding:0,minPadding:0,plotBands:[],showLastLabel:!1,tickLength:0},defaultRadialYOptions:{gridLineInterpolation:"circle",labels:{align:"right",x:-3,y:-2},plotBands:[],showLastLabel:!1,title:{x:4,text:null,rotation:90}},setOptions:function(t){this.options=c(this.defaultOptions,this.defaultRadialOptions,t)},getOffset:function(){A.getOffset.call(this),this.chart.axisOffset[this.side]=0,this.center=this.pane.center=f.pie.prototype.getCenter.call(this.pane)},getLinePath:function(t,e){var i=this.center;e=u(e,i[2]/2-this.offset);return this.chart.renderer.symbols.arc(this.left+i[0],this.top+i[1],e,e,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})},setAxisTranslation:function(){A.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.isXAxis)&&(this.minPixelPadding=this.transA*this.minPointOffset+(this.reversed?(this.endAngleRad-this.startAngleRad)/4:0))},beforeSetTickPositions:function(){this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange)},setAxisSize:function(){A.setAxisSize.call(this),this.center&&(this.len=this.width=this.height=this.isCircular?this.center[2]*(this.endAngleRad-this.startAngleRad)/2:this.center[2]/2)},getPosition:function(t,e){return this.isCircular||(e=this.translate(t),t=this.min),this.postTranslate(this.translate(t),u(e,this.center[2]/2)-this.offset)},postTranslate:function(t,e){var i=this.chart,n=this.center;t=this.startAngleRad+t;return{x:i.plotLeft+n[0]+Math.cos(t)*e,y:i.plotTop+n[1]+Math.sin(t)*e}}
16,getPlotBandPath:function(t,e,i){var n,o=this.center,s=this.startAngleRad,r=o[2]/2,a=[u(i.outerRadius,"100%"),i.innerRadius,u(i.thickness,10)],l=/%$/,c=this.isCircular;return"polygon"===this.options.gridLineInterpolation?o=this.getPlotLinePath(t).concat(this.getPlotLinePath(e,!0)):(c||(a[0]=this.translate(t),a[1]=this.translate(e)),a=h(a,function(t){return l.test(t)&&(t=d(t,10)*r/100),t}),"circle"!==i.shape&&c?(t=s+this.translate(t),e=s+this.translate(e)):(t=-Math.PI/2,e=1.5*Math.PI,n=!0),o=this.chart.renderer.symbols.arc(this.left+o[0],this.top+o[1],a[0],a[0],{start:t,end:e,innerR:u(a[1],a[0]-a[2]),open:n})),o},getPlotLinePath:function(t,e){var i,n,o,s=this.center,r=this.chart,l=this.getPosition(t);return this.isCircular?o=["M",s[0]+r.plotLeft,s[1]+r.plotTop,"L",l.x,l.y]:"circle"===this.options.gridLineInterpolation?(t=this.translate(t))&&(o=this.getLinePath(0,t)):(i=r.xAxis[0],o=[],t=this.translate(t),s=i.tickPositions,i.autoConnect&&(s=s.concat([s[0]])),e&&(s=[].concat(s).reverse()),a(s,function(e,s){n=i.getPosition(e,t),o.push(s?"L":"M",n.x,n.y)})),o},getTitlePosition:function(){var t=this.center,e=this.chart,i=this.options.title;return{x:e.plotLeft+t[0]+(i.x||0),y:e.plotTop+t[1]-{high:.5,middle:.25,low:0}[i.align]*t[2]+(i.y||0)}}};v(A,"init",function(t,n,o){var s,r,a=n.angular,h=n.polar,d=o.isX,p=a&&d;r=n.options;var f=o.pane||0;a?(l(this,p?M:L),(s=!d)&&(this.defaultRadialOptions=this.defaultRadialGaugeOptions)):h&&(l(this,L),this.defaultRadialOptions=(s=d)?this.defaultRadialXOptions:c(this.defaultYAxisOptions,this.defaultRadialYOptions)),t.call(this,n,o),p||!a&&!h||(t=this.options,n.panes||(n.panes=[]),this.pane=f=n.panes[f]=n.panes[f]||new i(g(r.pane)[f],n,this),f=f.options,n.inverted=!1,r.chart.zoomType=null,this.startAngleRad=n=(f.startAngle-90)*Math.PI/180,this.endAngleRad=r=(u(f.endAngle,f.startAngle+360)-90)*Math.PI/180,this.offset=t.offset||0,(this.isCircular=s)&&o.max===e&&r-n===2*Math.PI&&(this.autoConnect=!0))}),v(_,"getPosition",function(t,e,i,n,o){var s=this.axis;return s.getPosition?s.getPosition(i):t.call(this,e,i,n,o)}),v(_,"getLabelPosition",function(t,e,i,n,o,s,r,a,l){var c=this.axis,h=s.y,p=s.align,f=(c.translate(this.pos)+c.startAngleRad+Math.PI/2)/Math.PI*180;return c.isRadial?(t=c.getPosition(this.pos,c.center[2]/2+u(s.distance,-25)),"auto"===s.rotation?n.attr({rotation:f}
16):null===h&&(h=.9*d(n.styles.lineHeight)-n.getBBox().height/2),null===p&&(p=c.isCircular?f>20&&f<160?"left":f>200&&f<340?"right":"center":"center",n.attr({align:p})),t.x+=s.x,t.y+=h):t=t.call(this,e,i,n,o,s,r,a,l),t}),v(_,"getMarkPath",function(t,e,i,n,o,s,r){var a=this.axis;return a.isRadial?e=["M",e,i,"L",(t=a.getPosition(this.pos,a.center[2]/2+n)).x,t.y]:e=t.call(this,e,i,n,o,s,r),e}),p.arearange=c(p.area,{lineWidth:1,marker:null,threshold:null,tooltip:{pointFormat:'<span style="color:{series.color}">{series.name}</span>: <b>{point.low}</b> - <b>{point.high}</b><br/>'},trackByArea:!0,dataLabels:{verticalAlign:null,xLow:0,xHigh:0,yLow:0,yHigh:0}}),f.arearange=t.extendClass(f.area,{type:"arearange",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"low",getSegments:function(){var t=this;a(t.points,function(e){t.options.connectNulls||null!==e.low&&null!==e.high?null===e.low&&null!==e.high&&(e.y=e.high):e.y=null}),b.prototype.getSegments.call(this)},translate:function(){var t=this.yAxis;f.area.prototype.translate.apply(this),a(this.points,function(e){var i=e.low,n=e.high,o=e.plotY;null===n&&null===i?e.y=null:null===i?(e.plotLow=e.plotY=null,e.plotHigh=t.toPixels(n,!0)):null===n?(e.plotLow=o,e.plotHigh=null):(e.plotLow=o,e.plotHigh=t.toPixels(n,!0))})},getSegmentPath:function(t){var e,i,n,o=[],s=t.length,r=b.prototype.getSegmentPath,a=(n=this.options).step;for(e=HighchartsAdapter.grep(t,function(t){return null!==t.plotLow});s--;)null!==(i=t[s]).plotHigh&&o.push({plotX:i.plotX,plotY:i.plotHigh});return t=r.call(this,e),a&&(!0===a&&(a="left"),n.step={left:"right",center:"center",right:"left"}[a]),o=r.call(this,o),n.step=a,n=[].concat(t,o),o[0]="L",this.areaPath=this.areaPath.concat(t,o),n},drawDataLabels:function(){var t,e,i=this.data,n=i.length,o=[],s=b.prototype,r=this.options.dataLabels,a=this.chart.inverted;if(r.enabled||this._hasPointLabels){for(t=n;t--;)(e=i[t]).y=e.high,e.plotY=e.plotHigh,o[t]=e.dataLabel,e.dataLabel=e.dataLabelUpper,e.below=!1,a?(r.align="left",r.x=r.xHigh):r.y=r.yHigh;for(s.drawDataLabels.apply(this,arguments),t=n;t--;)(e=i[t]).dataLabelUpper=e.dataLabel,e.dataLabel=o[t],e.y=e.low,e.plotY=e.plotLow,e.below=!0,a?(r.align="right",r.x=r.xLow):r.y=r.yLow;s.drawDataLabels.apply(this,arguments)}},alignDataLabel:f.column.prototype.alignDataLabel,getSymbol:f.column.prototype.getSymbol,drawPoints:E}),p.areasplinerange=c(p.arearange),f.areasplinerange=m(f.arearange,{type:"areasplinerange",getPointSpline:f.spline.prototype.getPointSpline}),p.columnrange=c(p.column,p.arearange,{lineWidth:1,pointRange:null}),f.columnrange=m(f.arearange,{type:"columnrange",translate:function(){var t,e=this.yAxis;x.translate.apply(this),a(this.points,function(i){var n=i.shapeArgs;i.plotHigh=t=e.translate(i.high,0,1,0,1),i.plotLow=i.plotY,n.y=t,n.height=i.plotY-t})},trackerGroups:["group","dataLabels"],drawGraph:E,pointAttrToOptions:x.pointAttrToOptions,drawPoints:x.drawPoints,drawTracker:x.drawTracker,animate:x.animate,getColumnMetrics:x.getColumnMetrics}),p.gauge=c(p.line,{dataLabels:{enabled:!0,y:15,borderWidth:1,borderColor:"silver",borderRadius:3,style:{fontWeight:"bold"},verticalAlign:"top",zIndex:2},dial:{},pivot:{},tooltip:{headerFormat:""},showInLegend:!1}),_={type:"gauge",pointClass:t.extendClass(t.Point,{setState:function(t){this.state=t}}),angular:!0,drawGraph:E,trackerGroups:["group","dataLabels"],translate:function(){var t=this.yAxis,e=this.options,i=t.center;this.generatePoints(),a(this.points,function(n){var o=c(e.dial,n.dial),s=d(u(o.radius,80))*i[2]/200,r=d(u(o.baseLength,70))*s/100,a=d(u(o.rearLength,10))*s/100,l=o.baseWidth||3,h=o.topWidth||1,p=t.startAngleRad+t.translate(n.y,null,null,null,!0);!1===e.wrap&&(p=Math.max(t.startAngleRad,Math.min(t.endAngleRad,p))),p=180*p/Math.PI,n.shapeType="path",n.shapeArgs={d:o.path||["M",-a,-l/2,"L",r,-l/2,s,-h/2,s,h/2,r,l/2,-a,l/2,"z"],translateX:i[0],translateY:i[1],rotation:p},n.plotX=i[0],n.plotY=i[1]})},drawPoints:function(){var t=this,e=t.yAxis.center,i=t.pivot,n=t.options,o=n.pivot,s=t.chart.renderer;a(t.points,function(e){var i=e.graphic,o=e.shapeArgs,r=o.d,a=c(n.dial,e.dial);i?(i.animate(o),o.d=r):e.graphic=s[e.shapeType](o).attr({stroke:a.borderColor||"none","stroke-width":a.borderWidth||0,fill:a.backgroundColor||"black",rotation:o.rotation}).add(t.group)}),i?i.animate({translateX:e[0],translateY:e[1]}):t.pivot=s.circle(0,0,u(o.radius,5)).attr({"stroke-width":o.borderWidth||0,stroke:o.borderColor||"silver",fill:o.backgroundColor||"black"}).translate(e[0],e[1]).add(t.group)},animate:function(t){var e=this;t||(a(e.points,function(t){var i=t.graphic;i&&(i.attr({rotation:180*e.yAxis.startAngleRad/Math.PI}),i.animate({rotation:t.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.pie.prototype.render.call(this),this.group.clip(this.chart.clipRect)},setData:f.pie.prototype.setData,drawTracker:f.column.prototype.drawTracker},f.gauge=t.extendClass(f.line,_),p.boxplot=c(p.column,{fillColor:"#FFFFFF",lineWidth:1,medianWidth:2,states:{hover:{brightness:-.3}},threshold:null,tooltip:{pointFormat:'<span style="color:{series.color};font-weight:bold">{series.name}</span><br/>Minimum: {point.low}<br/>Lower quartile: {point.q1}<br/>Median: {point.median}<br/>Higher quartile: {point.q3}<br/>Maximum: {point.high}<br/>'},whiskerLength:"50%",whiskerWidth:2}),f.boxplot=m(f.column,{type:"boxplot",pointArrayMap:["low","q1","median","q3","high"],toYData:function(t){return[t.low,t.q1,t.median,t.q3,t.high]},pointValKey:"high",pointAttrToOptions:{fill:"fillColor",stroke:"color","stroke-width":"lineWidth"},drawDataLabels:E,translate:function(){var t=this.yAxis,e=this.pointArrayMap;f.column.prototype.translate.apply(this),a(this.points,function(i){a(e,function(e){null!==i[e]&&(i[e+"Plot"]=t.translate(i[e],0,1,0,1))})})},drawPoints:function(){var t,i,n,o,s,r,l,c,h,d,p,f,m,g,v,y,_,b,x,w,S,P,T=this,E=T.points,A=T.options,M=T.chart.renderer,L=!1!==T.doQuartiles,D=parseInt(T.options.whiskerLength,10)/100;a(E,function(a){h=a.graphic,S=a.shapeArgs,p={},g={},y={},P=a.color||T.color,a.plotY!==e&&(t=a.pointAttr[a.selected?"selected":""],_=S.width,b=C(S.x),x=b+_,w=k(_/2),i=C(L?a.q1Plot:a.lowPlot),n=C(L?a.q3Plot:a.lowPlot),o=C(a.highPlot),s=C(a.lowPlot),p.stroke=a.stemColor||A.stemColor||P,p["stroke-width"]=u(a.stemWidth,A.stemWidth,A.lineWidth),p.dashstyle=a.stemDashStyle||A.stemDashStyle,g.stroke=a.whiskerColor||A.whiskerColor||P,g["stroke-width"]=u(a.whiskerWidth,A.whiskerWidth,A.lineWidth),y.stroke=a.medianColor||A.medianColor||P,
16y["stroke-width"]=u(a.medianWidth,A.medianWidth,A.lineWidth),l=p["stroke-width"]%2/2,d=["M",c=b+w+l,n,"L",c,o,"M",c,i,"L",c,s,"z"],L&&(l=t["stroke-width"]%2/2,c=C(c)+l,i=C(i)+l,n=C(n)+l,f=["M",b+=l,n,"L",b,i,"L",x+=l,i,"L",x,n,"L",b,n,"z"]),D&&(l=g["stroke-width"]%2/2,m=["M",c-w*D,o+=l,"L",c+w*D,o,"M",c-w*D,s+=l,"L",c+w*D,s]),l=y["stroke-width"]%2/2,r=k(a.medianPlot)+l,v=["M",b,r,"L",x,r,"z"],h?(a.stem.animate({d:d}),D&&a.whiskers.animate({d:m}),L&&a.box.animate({d:f}),a.medianShape.animate({d:v})):(a.graphic=h=M.g().add(T.group),a.stem=M.path(d).attr(p).add(h),D&&(a.whiskers=M.path(m).attr(g).add(h)),L&&(a.box=M.path(f).attr(t).add(h)),a.medianShape=M.path(v).attr(y).add(h)))})}}),p.errorbar=c(p.boxplot,{color:"#000000",grouping:!1,linkedTo:":previous",tooltip:{pointFormat:p.arearange.tooltip.pointFormat},whiskerWidth:null}),f.errorbar=m(f.boxplot,{type:"errorbar",pointArrayMap:["low","high"],toYData:function(t){return[t.low,t.high]},pointValKey:"high",doQuartiles:!1,getColumnMetrics:function(){return this.linkedParent&&this.linkedParent.columnMetrics||f.column.prototype.getColumnMetrics.call(this)}}),v(A,"getSeriesExtremes",function(t,e){if(t.call(this,e),!this.isXAxis){var i=this,n=[],o=!0;a(i.series,function(t){if(t.visible&&t.stackKey&&"waterfall"===t.type&&-1===HighchartsAdapter.inArray(t.stackKey)){o&&(i.dataMin=i.dataMax=null,o=!1);var e,s,r,a,l=t.processedYData,c=l.length,h=l[0],d=l[0],p=t.options.threshold,f=i.stacks,m=t.stackKey,g="-"+m;for(a=0;a<c;a++)e=f[r=l[a]<p?g:m][a].total,a>p&&(e+=s,f[r][a].setTotal(e),f[r][a]._cum=null),e<h&&(h=e),e>d&&(d=e),s=e;t.dataMin=h,t.dataMax=d,i.dataMin=P(u(i.dataMin,h),h,p),i.dataMax=T(u(i.dataMax,d),d,p),n.push(t.stackKey),"number"==typeof p&&(i.dataMin>=p?(i.dataMin=p,i.ignoreMinPadding=!0):i.dataMax<p&&(i.dataMax=p,i.ignoreMaxPadding=!0))}})}}),p.waterfall=c(p.column,{lineWidth:1,lineColor:"#333",dashStyle:"dot",borderColor:"#333"}),f.waterfall=m(f.column,{type:"waterfall",upColorProp:"fill",pointArrayMap:["y","low"],pointValKey:"y",init:function(t,e){e.stacking=!0,f.column.prototype.init.call(this,t,e)},translate:function(){var t,e,i,n,o,s,r,a,l,c,h,u,d,p=this.yAxis,m=this.options.borderWidth%2/2;for(f.column.prototype.translate.apply(this),l=r=(i=this.points)[0],s=a=i[0].y,e=1,t=i.length;e<t;e++)o=(n=i[e]).shapeArgs,d=this.getStack(e),h=this.getStack(e-1),u=this.getStackY(h),null===l&&(l=n,a=0),n.y&&!n.isSum&&!n.isIntermediateSum&&(s+=n.y,a+=n.y),n.isSum||n.isIntermediateSum?(n.isIntermediateSum?(c=this.getSumEdges(l,i[e-1]),n.y=a,l=null):(c=this.getSumEdges(r,i[e-1]),n.y=s),o.y=n.plotY=c[1],o.height=c[0]-c[1]):(c=null===d._cum?h.total:d._cum,d._cum=c+n.y,n.y<0?(o.y=S(p.translate(c,0,1))-m,o.height=S(p.translate(d._cum,0,1)-o.y)):(h.total+n.y<0&&(o.y=p.translate(d._cum,0,1)),o.height=C(u-o.y)))},processData:function(t){b.prototype.processData.call(this,t);var e,i,n=(t=this.yData).length;for(i=0;i<n;i++)null!==(e=t[i])&&"number"!=typeof e&&(t[i]="sum"===e||"intermediateSum"===e?null:e[0])},toYData:function(t){return t.isSum?"sum":t.isIntermediateSum?"intermediateSum":[t.y]},getAttribs:function(){f.column.prototype.getAttribs.apply(this,arguments);var e=(n=this.options).states,i=n.upColor||this.color,n=t.Color(i).brighten(.1).get(),o=c(this.pointAttr),s=this.upColorProp;o[""][s]=i,o.hover[s]=e.hover.upColor||n,o.select[s]=e.select.upColor||i,a(this.points,function(t){t.y>0&&!t.color&&(t.pointAttr=o,t.color=i)})},getGraphPath:function(){var t,e,i,n=this.data,o=n.length,s=k(this.options.lineWidth+this.options.borderWidth)%2/2,r=[];for(i=1;i<o;i++)e=n[i].shapeArgs,e=["M",(t=n[i-1].shapeArgs).x+t.width,t.y+s,"L",e.x,t.y+s],n[i-1].y<0&&(e[2]+=t.height,e[5]+=t.height),r=r.concat(e);return r},getStack:function(t){var e=this.yAxis.stacks,i=this.stackKey;return this.processedYData[t]<this.options.threshold&&(i="-"+i),e[i][t]},getStackY:function(t){return S(this.yAxis.translate(t.total,null,!0))},getSumEdges:function(t,e){var i,n,o;return n=this.options.threshold,i=t.y>=n?t.shapeArgs.y+t.shapeArgs.height:t.shapeArgs.y,(n=e.y>=n?e.shapeArgs.y:e.shapeArgs.y+e.shapeArgs.height)>i&&(o=i,i=n,n=o),[i,n]},drawGraph:b.prototype.drawGraph}),p.bubble=c(p.scatter,{dataLabels:{inside:!0,style:{color:"white",textShadow:"0px 0px 3px black"},verticalAlign:"middle"},marker:{lineColor:null,lineWidth:1},minSize:8,maxSize:"20%",tooltip:{pointFormat:"({point.x}, {point.y}), Size: {point.z}"},zThreshold:0}),f.bubble=m(f.scatter,{type:"bubble",pointArrayMap:["y","z"],trackerGroups:["group","dataLabelsGroup"],pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor"},applyOpacity:function(e){var i=this.options.marker,n=u(i.fillOpacity,.5);e=e||i.fillColor||this.color;return 1!==n&&(e=t.Color(e).setOpacity(n).get("rgba")),e},convertAttribs:function(){var t=b.prototype.convertAttribs.apply(this,arguments);return t.fill=this.applyOpacity(t.fill),t}
16,getRadii:function(t,e,i,n){var o,s,r,a=this.zData,l=[];for(s=0,o=a.length;s<o;s++)r=(r=e-t)>0?(a[s]-t)/(e-t):.5,l.push(w.ceil(i+r*(n-i))/2);this.radii=l},animate:function(t){var e=this.options.animation;t||(a(this.points,function(t){var i=t.graphic;t=t.shapeArgs;i&&t&&(i.attr("r",1),i.animate({r:t.r},e))}),this.animate=null)},translate:function(){var t,i,n,o=this.data,s=this.radii;for(f.scatter.prototype.translate.call(this),t=o.length;t--;)i=o[t],n=s?s[t]:0,i.negative=i.z<(this.options.zThreshold||0),n>=this.minPxSize/2?(i.shapeType="circle",i.shapeArgs={x:i.plotX,y:i.plotY,r:n},i.dlBox={x:i.plotX-n,y:i.plotY-n,width:2*n,height:2*n}):i.shapeArgs=i.plotY=i.dlBox=e},drawLegendSymbol:function(t,e){var i=d(t.itemStyle.fontSize)/2;e.legendSymbol=this.chart.renderer.circle(i,t.baseline-i,i).attr({zIndex:3}).add(e.legendGroup)},drawPoints:f.column.prototype.drawPoints,alignDataLabel:f.column.prototype.alignDataLabel}),y.prototype.beforePadding=function(){var t=this,i=this.len,n=this.chart,o=0,l=i,c=this.isXAxis,h=c?"xData":"yData",p=this.min,f={},m=w.min(n.plotWidth,n.plotHeight),g=Number.MAX_VALUE,v=-Number.MAX_VALUE,y=this.max-p,_=i/y,b=[];this.tickPositions&&(a(this.series,function(e){var i=e.options;"bubble"===e.type&&e.visible&&(t.allowZoomOutside=!0,b.push(e),c)&&(a(["minSize","maxSize"],function(t){var e=i[t],n=/%$/.test(e);e=d(e);f[t]=n?m*e/100:e}),e.minPxSize=f.minSize,(e=e.zData).length&&(g=w.min(g,w.max(s(e),!1===i.displayNegative?i.zThreshold:-Number.MAX_VALUE)),v=w.max(v,r(e))))}),a(b,function(t){var e,i=t[h],n=i.length;if(c&&t.getRadii(g,v,f.minSize,f.maxSize),y>0)for(;n--;)e=t.radii[n],o=Math.min((i[n]-p)*_-e,o),l=Math.max((i[n]-p)*_+e,l)}),y>0&&u(this.options.min,this.userMin)===e&&u(this.options.max,this.userMax)===e&&(_*=(i+o-(l-=i))/i,this.min+=o/_,this.max+=l/_))};var D=b.prototype;p=t.Pointer.prototype;D.toXY=function(t){var e,i=this.chart;e=t.plotX;var n=t.plotY;t.rectPlotX=e,t.rectPlotY=n,t.clientX=e/Math.PI*180,e=this.xAxis.postTranslate(t.plotX,this.yAxis.len-n),t.plotX=t.polarPlotX=e.x-i.plotLeft,t.plotY=t.polarPlotY=e.y-i.plotTop},v(f.area.prototype,"init",n),v(f.areaspline.prototype,"init",n),v(f.spline.prototype,"getPointSpline",function(t,e,i,n){var o,s,r,a,l,c,h;return this.chart.polar?(o=i.plotX,s=i.plotY,t=e[n-1],r=e[n+1],this.connectEnds&&(t||(t=e[e.length-2]),r||(r=e[1])),t&&r&&(a=t.plotX,l=t.plotY,e=r.plotX,c=r.plotY,a=(1.5*o+a)/2.5,l=(1.5*s+l)/2.5,r=(1.5*o+e)/2.5,h=(1.5*s+c)/2.5,e=Math.sqrt(Math.pow(a-o,2)+Math.pow(l-s,2)),c=Math.sqrt(Math.pow(r-o,2)+Math.pow(h-s,2)),a=Math.atan2(l-s,a-o),l=Math.atan2(h-s,r-o),h=Math.PI/2+(a+l)/2,Math.abs(a-h)>Math.PI/2&&(h-=Math.PI),a=o+Math.cos(h)*e,l=s+Math.sin(h)*e,r=o+Math.cos(Math.PI+h)*c,h=s+Math.sin(Math.PI+h)*c,i.rightContX=r,i.rightContY=h),n?(i=["C",t.rightContX||t.plotX,t.rightContY||t.plotY,a||o,l||s,o,s],t.rightContX=t.rightContY=null):i=["M",o,s]):i=t.call(this,e,i,n),i}),v(D,"translate",function(t){if(t.call(this),this.chart.polar&&!this.preventPostTranslate)for(var e=(t=this.points).length;e--;)this.toXY(t[e])}),v(D,"getSegmentPath",function(t,e){var i=this.points;return this.chart.polar&&!1!==this.options.connectEnds&&e[e.length-1]===i[i.length-1]&&null!==i[0].y&&(this.connectEnds=!0,e=[].concat(e,[i[0]])),t.call(this,e)}),v(D,"animate",o),v(x,"animate",o),v(D,"setTooltipPoints",function(t,e){return this.chart.polar&&l(this.xAxis,{tooltipLen:360}),t.call(this,e)}),v(x,"translate",function(t){var e,i,n=this.xAxis,o=this.yAxis.len,s=n.center,r=n.startAngleRad,a=this.chart.renderer;if(this.preventPostTranslate=!0,t.call(this),n.isRadial)for(i=(n=this.points).length;i--;)t=(e=n[i]).barX+r,e.shapeType="path",e.shapeArgs={d:a.symbols.arc(s[0],s[1],o-e.plotY,null,{start:t,end:t+e.pointWidth,innerR:o-u(e.yBottom,o)})},this.toXY(e)}),v(x,"alignDataLabel",function(t,e,i,n,o,s){this.chart.polar?(t=e.rectPlotX/Math.PI*180,null===n.align&&(n.align=t>20&&t<160?"left":t>200&&t<340?"right":"center"),null===n.verticalAlign&&(n.verticalAlign=t<45||t>315?"bottom":t>135&&t<225?"top":"middle"),D.alignDataLabel.call(this,e,i,n,o,s)):t.call(this,e,i,n,o,s)}),v(p,"getIndex",function(t,e){var i,n,o=this.chart;return o.polar?(n=o.xAxis[0].center,i=e.chartX-n[0]-o.plotLeft,o=e.chartY-n[1]-o.plotTop,i=180-Math.round(Math.atan2(i,o)/Math.PI*180)):i=t.call(this,e),i}),v(p,"getCoordinates",function(t,e){var i=this.chart,n={xAxis:[],yAxis:[]};return i.polar?a(i.axes,function(t){var o=t.isXAxis,s=t.center,r=e.chartX-s[0]-i.plotLeft;s=e.chartY-s[1]-i.plotTop;n[o?"xAxis":"yAxis"].push({axis:t,value:t.translate(o?Math.PI-Math.atan2(r,s):Math.sqrt(Math.pow(r,2)+Math.pow(s,2)),!0)})}):n=t.call(this,e),n})}
16(Highcharts),function(t){function e(t,e,i,n,o,s,r,a,l){return["M",(e-=t=t["stroke-width"]%2/2)+s,i-=t,"L",e+n-r,i,"C",e+n-r/2,i,e+n,i+r/2,e+n,i+r,"L",e+n,i+o-a,"C",e+n,i+o-a/2,e+n-a/2,i+o,e+n-a,i+o,"L",e+l,i+o,"C",e+l/2,i+o,e,i+o-l/2,e,i+o-l,"L",e,i+s,"C",e,i+s/2,e+s/2,i,e+s,i,"Z"]}var i=t.Axis,n=t.Chart,o=t.Color,s=t.Point,r=t.Pointer,a=t.Legend,l=t.LegendSymbolMixin,c=t.Renderer,h=t.Series,u=t.SVGRenderer,d=t.VMLRenderer,p=t.addEvent,f=t.each,m=t.extend,g=t.extendClass,v=t.merge,y=t.pick,_=t.numberFormat,b=t.getOptions(),x=t.seriesTypes,w=b.plotOptions,k=t.wrap,C=function(){};k(i.prototype,"getSeriesExtremes",function(t){var e,i,n,o=this.isXAxis,s=[];o&&f(this.series,function(t,e){t.useMapGeometry&&(s[e]=t.xData,t.xData=[])}),t.call(this),o&&(e=y(this.dataMin,Number.MAX_VALUE),i=y(this.dataMax,Number.MIN_VALUE),f(this.series,function(t,o){t.useMapGeometry&&(e=Math.min(e,y(t.minX,e)),i=Math.max(i,y(t.maxX,e)),t.xData=s[o],n=!0)}),n)&&(this.dataMin=e,this.dataMax=i)}),k(i.prototype,"setAxisTranslation",function(t){var e=this.chart,i=e.plotWidth/e.plotHeight,n=e.xAxis[0];t.call(this),e.options.chart.preserveAspectRatio&&"yAxis"===this.coll&&void 0!==n.transA&&(this.transA=n.transA=Math.min(this.transA,n.transA),t=((n=(t=i/((n.max-n.min)/(this.max-this.min)))<1?this:n).max-n.min)*n.transA,n.pixelPadding=n.len-t,n.minPixelPadding=n.pixelPadding/2,t=n.fixTo)&&(t=t[1]-n.toValue(t[0],!0),t*=n.transA,(Math.abs(t)>n.minPixelPadding||n.min===n.dataMin&&n.max===n.dataMax)&&(t=0),n.minPixelPadding-=t)}),k(i.prototype,"render",function(t){t.call(this),this.fixTo=null});var S=t.ColorAxis=function(){this.isColorAxis=!0,this.init.apply(this,arguments)};m(S.prototype,i.prototype),m(S.prototype,{defaultColorAxisOptions:{lineWidth:0,gridLineWidth:1,tickPixelInterval:72,startOnTick:!0,endOnTick:!0,offset:0,marker:{animation:{duration:50},color:"gray",width:.01},labels:{overflow:"justify"},minColor:"#EFEFFF",maxColor:"#003875",tickLength:5},init:function(t,e){var n,o="vertical"!==t.options.legend.layout;n=v(this.defaultColorAxisOptions,{side:o?2:1,reversed:!o},e,{isX:o,opposite:!o,showEmpty:!1,title:null,isColor:!0}),i.prototype.init.call(this,t,n),e.dataClasses&&this.initDataClasses(e),this.initStops(e),this.isXAxis=!0,this.horiz=o,this.zoomEnabled=!1},tweenColors:function(t,e,i){var n=1!==e.rgba[3]||1!==t.rgba[3];return(n?"rgba(":"rgb(")+Math.round(e.rgba[0]+(t.rgba[0]-e.rgba[0])*(1-i))+","+Math.round(e.rgba[1]+(t.rgba[1]-e.rgba[1])*(1-i))+","+Math.round(e.rgba[2]+(t.rgba[2]-e.rgba[2])*(1-i))+(n?","+(e.rgba[3]+(t.rgba[3]-e.rgba[3])*(1-i)):"")+")"},initDataClasses:function(t){var e,i=this,n=this.chart,s=0,r=this.options,a=t.dataClasses.length;this.dataClasses=e=[],this.legendItems=[],f(t.dataClasses,function(t,l){var c;t=v(t);e.push(t),t.color||("category"===r.dataClassColor?(c=n.options.colors,t.color=c[s++],s===c.length&&(s=0)):t.color=i.tweenColors(o(r.minColor),o(r.maxColor),a<2?.5:l/(a-1)))})},initStops:function(t){this.stops=t.stops||[[0,this.options.minColor],[1,this.options.maxColor]],f(this.stops,function(t){t.color=o(t[1])})},setOptions:function(t){i.prototype.setOptions.call(this,t),this.options.crosshair=this.options.marker,this.coll="colorAxis"},setAxisSize:function(){var t,e,i,n=this.legendSymbol,o=this.chart;n&&(this.left=t=n.attr("x"),this.top=e=n.attr("y"),this.width=i=n.attr("width"),this.height=n=n.attr("height"),this.right=o.chartWidth-t-i,this.bottom=o.chartHeight-e-n,this.len=this.horiz?i:n,this.pos=this.horiz?t:e)},toColor:function(t,e){var i,n,o,s,r=this.stops,a=this.dataClasses;if(a){for(s=a.length;s--;)if(n=(o=a[s]).from,r=o.to,(void 0===n||t>=n)&&(void 0===r||t<=r)){i=o.color,e&&(e.dataClass=s);break}}else{for(this.isLog&&(t=this.val2lin(t)),i=1-(this.max-t)/(this.max-this.min||1),s=r.length;s--&&!(i>r[s][0]););n=r[s]||r[s+1],i=1-((r=r[s+1]||n)[0]-i)/(r[0]-n[0]||1),i=this.tweenColors(n.color,r.color,i)}return i},getOffset:function(){var t=this.legendGroup,e=this.chart.axisOffset[this.side];t&&(i.prototype.getOffset.call(this),this.axisGroup.parentGroup||(this.axisGroup.add(t),this.gridGroup.add(t),this.labelGroup.add(t),this.added=!0),this.chart.axisOffset[this.side]=e)},setLegendColor:function(){var t,e=this.options;t=this.horiz?[0,0,1,0]:[0,0,0,1],this.legendColor={linearGradient:{x1:t[0],y1:t[1],x2:t[2],y2:t[3]},stops:e.stops||[[0,e.minColor],[1,e.maxColor]]}},drawLegendSymbol:function(t,e){var i=t.padding,n=t.options,o=this.horiz,s=y(n.symbolWi
16dth,o?200:12),r=y(n.symbolHeight,o?12:200),a=y(n.labelPadding,o?16:30);n=y(n.itemDistance,10);this.setLegendColor(),e.legendSymbol=this.chart.renderer.rect(0,t.baseline-11,s,r).attr({zIndex:1}).add(e.legendGroup),e.legendSymbol.getBBox(),this.legendItemWidth=s+i+(o?n:a),this.legendItemHeight=r+i+(o?a:0)},setState:C,visible:!0,setVisible:C,getSeriesExtremes:function(){var t;this.series.length&&(t=this.series[0],this.dataMin=t.valueMin,this.dataMax=t.valueMax)},drawCrosshair:function(t,e){var n,o=!this.cross,s=e&&e.plotX,r=e&&e.plotY,a=this.pos,l=this.len;e&&((n=this.toPixels(e.value))<a?n=a-2:n>a+l&&(n=a+l+2),e.plotX=n,e.plotY=this.len-n,i.prototype.drawCrosshair.call(this,t,e),e.plotX=s,e.plotY=r,!o&&this.cross&&this.cross.attr({fill:this.crosshair.color}).add(this.labelGroup))},getPlotLinePath:function(t,e,n,o,s){return s?this.horiz?["M",s-4,this.top-6,"L",s+4,this.top-6,s,this.top,"Z"]:["M",this.left,s,"L",this.left-6,s+6,this.left-6,s-6,"Z"]:i.prototype.getPlotLinePath.call(this,t,e,n,o)},update:function(t,e){f(this.series,function(t){t.isDirtyData=!0}),i.prototype.update.call(this,t,e),this.legendItem&&(this.setLegendColor(),this.chart.legend.colorizeItem(this,!0))},getDataClassLegendSymbols:function(){var t,e=this,i=this.chart,n=this.legendItems,o=i.options.legend,s=o.valueDecimals,r=o.valueSuffix||"";return n.length||f(this.dataClasses,function(o,a){var c=!0,h=o.from,u=o.to;t="",void 0===h?t="< ":void 0===u&&(t="> "),void 0!==h&&(t+=_(h,s)+r),void 0!==h&&void 0!==u&&(t+=" - "),void 0!==u&&(t+=_(u,s)+r),n.push(m({chart:i,name:t,options:{},drawLegendSymbol:l.drawRectangle,visible:!0,
17setState:C,setVisible:function(){c=this.visible=!c,f(e.series,function(t){f(t.points,function(t){t.dataClass===a&&t.setVisible(c)})}),i.legend.colorizeItem(this,c)}},o))}),n},name:""}),f(["fill","stroke"],function(t){HighchartsAdapter.addAnimSetter(t,function(e){e.elem.attr(t,S.prototype.tweenColors(o(e.start),o(e.end),e.pos))})}),k(n.prototype,"getAxes",function(t){var e=this.options.colorAxis;t.call(this),this.colorAxis=[],e&&new S(this,e)}),k(a.prototype,"getAllItems",function(t){var e=[],i=this.chart.colorAxis[0];return i&&(i.options.dataClasses?e=e.concat(i.getDataClassLegendSymbols()):e.push(i),f(i.series,function(t){t.options.showInLegend=!1})),e.concat(t.call(this))}),a={pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",dashstyle:"dashStyle"},pointArrayMap:["value"],axisTypes:["xAxis","yAxis","colorAxis"],optionalAxis:"colorAxis",trackerGroups:["group","markerGroup","dataLabelsGroup"],getSymbol:C,parallelArrays:["x","y","value"],colorKey:"value",translateColors:function(){var t=this,e=this.options.nullColor,i=this.colorAxis,n=this.colorKey;f(this.data,function(o){var s=o[n];(s=null===s?e:i&&void 0!==s?i.toColor(s,o):o.color||t.color)&&(o.color=s)})}},k(u.prototype,"buildText",function(t,e){var i=e.styles&&e.styles.HcTextStroke;t.call(this,e),i&&e.applyTextStroke&&e.applyTextStroke(i)}),u.prototype.Element.prototype.applyTextStroke=function(t){var e,i,n=this.element;t=t.split(" ");e=n.getElementsByTagName("tspan"),i=n.firstChild,this.ySetter=this.xSetter,f([].slice.call(e),function(e,o){var s;0===o&&(e.setAttribute("x",n.getAttribute("x")),null!==(o=n.getAttribute("y"))&&e.setAttribute("y",o)),(s=e.cloneNode(1)).setAttribute("stroke",t[1]),s.setAttribute("stroke-width",t[0]),s.setAttribute("stroke-linejoin","round"),n.insertBefore(s,i)})},m(n.prototype,{renderMapNavigation:function(){var t,e,i,n,o=this,s=this.options.mapNavigation,r=s.buttons,a=function(){this.handler.call(o)};if(y(s.enableButtons,s.enabled)&&!o.renderer.forExport)for(t in r)r.hasOwnProperty(t)&&(n=(e=(i=v(s.buttonOptions,r[t])).theme).states,(e=o.renderer.button(i.text,0,0,a,e,n&&n.hover,n&&n.select,0,"zoomIn"===t?"topbutton":"bottombutton").attr({width:i.width,height:i.height,title:o.options.lang[t],zIndex:5}).css(i.style).add()).handler=i.onclick,e.align(m(i,{width:e.width,height:2*e.height}),null,i.alignTo))},fitToBox:function(t,e){return f([["x","width"],["y","height"]],function(i){var n=i[0];i=i[1];t[n]+t[i]>e[n]+e[i]&&(t[i]>e[i]?(t[i]=e[i],t[n]=e[n]):t[n]=e[n]+e[i]-t[i]),t[i]>e[i]&&(t[i]=e[i]),t[n]<e[n]&&(t[n]=e[n])}),t}
17,mapZoom:function(t,e,i,n,o){var s=this.xAxis[0],r=s.max-s.min,a=y(e,s.min+r/2),l=r*t,c=(r=this.yAxis[0]).max-r.min,h=y(i,r.min+c/2);c*=t,a=this.fitToBox({x:a-l*(n?(n-s.pos)/s.len:.5),y:h-c*(o?(o-r.pos)/r.len:.5),width:l,height:c},{x:s.dataMin,y:r.dataMin,width:s.dataMax-s.dataMin,height:r.dataMax-r.dataMin}),n&&(s.fixTo=[n-s.pos,e]),o&&(r.fixTo=[o-r.pos,i]),void 0!==t?(s.setExtremes(a.x,a.x+a.width,!1),r.setExtremes(a.y,a.y+a.height,!1)):(s.setExtremes(void 0,void 0,!1),r.setExtremes(void 0,void 0,!1)),this.redraw()}}),k(n.prototype,"render",function(t){var e=this,i=e.options.mapNavigation;e.renderMapNavigation(),t.call(e),(y(i.enableDoubleClickZoom,i.enabled)||i.enableDoubleClickZoomTo)&&p(e.container,"dblclick",function(t){e.pointer.onContainerDblClick(t)}),y(i.enableMouseWheelZoom,i.enabled)&&p(e.container,void 0===document.onmousewheel?"DOMMouseScroll":"mousewheel",function(t){return e.pointer.onContainerMouseWheel(t),!1})}),m(r.prototype,{onContainerDblClick:function(t){var e=this.chart;t=this.normalize(t);e.options.mapNavigation.enableDoubleClickZoomTo?e.pointer.inClass(t.target,"highcharts-tracker")&&e.hoverPoint.zoomTo():e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&e.mapZoom(.5,e.xAxis[0].toValue(t.chartX),e.yAxis[0].toValue(t.chartY),t.chartX,t.chartY)},onContainerMouseWheel:function(t){var e,i=this.chart;e=(t=this.normalize(t)).detail||-t.wheelDelta/120,i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&i.mapZoom(Math.pow(2,e),i.xAxis[0].toValue(t.chartX),i.yAxis[0].toValue(t.chartY),t.chartX,t.chartY)}}),k(r.prototype,"init",function(t,e,i){t.call(this,e,i),y(i.mapNavigation.enableTouchZoom,i.mapNavigation.enabled)&&(this.pinchX=this.pinchHor=this.pinchY=this.pinchVert=this.hasZoom=!0)}),k(r.prototype,"pinchTranslate",function(t,e,i,n,o,s,r){t.call(this,e,i,n,o,s,r),"map"===this.chart.options.chart.type&&this.hasZoom&&(t=n.scaleX>n.scaleY,this.pinchTranslateDirection(!t,e,i,n,o,s,r,t?n.scaleX:n.scaleY))}),w.map=v(w.scatter,{allAreas:!0,animation:!1,nullColor:"#F8F8F8",borderColor:"silver",borderWidth:1,marker:null,stickyTracking:!1,dataLabels:{formatter:function(){return this.point.value},verticalAlign:"middle",crop:!1,overflow:!1,padding:0,style:{color:"white",fontWeight:"bold",HcTextStroke:"3px rgba(0,0,0,0.5)"}},turboThreshold:0,tooltip:{followPointer:!0,pointFormat:"{point.name}: {point.value}<br/>"},states:{normal:{animation:!0},hover:{brightness:.2,halo:null}}}),r=g(s,{applyOptions:function(t,e){var i=s.prototype.applyOptions.call(this,t,e),n=this.series,o=n.joinBy;return n.mapData&&((o=void 0!==i[o[1]]&&n.mapMap[i[o[1]]])?(n.xyFromShape&&(i.x=o._midX,i.y=o._midY),m(i,o)):i.value=i.value||null),i},setVisible:function(t){var e=this,i=t?"show":"hide";f(["graphic","dataLabel"],function(t){e[t]&&e[t][i]()})},onMouseOver:function(t){clearTimeout(this.colorInterval),null!==this.value&&s.prototype.onMouseOver.call(this,t)},onMouseOut:function(){var t,e=this,i=+new Date,n=o(e.color),r=o(e.pointAttr.hover.fill),a=e.series.options.states.normal.animation,l=a&&(a.duration||500);l&&4===n.rgba.length&&4===r.rgba.length&&"select"!==e.state&&(t=e.pointAttr[""].fill,delete e.pointAttr[""].fill,clearTimeout(e.colorInterval),e.colorInterval=setInterval(function(){var t=(new Date-i)/l,o=e.graphic;t>1&&(t=1),o&&o.attr("fill",S.prototype.tweenColors.call(0,r,n,t)),t>=1&&clearTimeout(e.colorInterval)},13)),s.prototype.onMouseOut.call(e),t&&(e.pointAttr[""].fill=t)},zoomTo:function(){var t=this.series;t.xAxis.setExtremes(this._minX,this._maxX,!1),t.yAxis.setExtremes(this._minY,this._maxY,!1),t.chart.redraw()}}),x.map=g(x.scatter,v(a,{type:"map",pointClass:r,supportsDrilldown:!0,getExtremesFromAll:!0,useMapGeometry:!0,forceDL:!0,getBox:function(e){var i,n=Number.MAX_VALUE,o=-n,s=n,r=-n,a=n,l=n,c=this.xAxis,h=this.yAxis;f(e||[],function(e){if(e.path){"string"==typeof e.path&&(e.path=t.splitPath(e.path));var c=e.path||[],h=c.length,u=!1,d=-n,p=n,f=-n,m=n,g=e.properties;if(!e._foundBox){for(;h--;)"number"==typeof c[h]&&!isNaN(c[h])&&(u?(d=Math.max(d,c[h]),p=Math.min(p,c[h])):(f=Math.max(f,c[h]),m=Math.min(m,c[h])),u=!u);e._midX=p+(d-p)*(e.middleX||g&&g["hc-middle-x"]||.5),e._midY=m+(f-m)*(e.middleY||g&&g["hc-middle-y"]||.5),e._maxX=d,e._minX=p,e._maxY=f,e._minY=m,e.labelrank=y(e.labelrank,(d-p)*(f-m)),e._foundBox=!0}o=Math.max(o,e._maxX),s=Math.min(s,e._minX),r=Math.max(r,e._maxY),a=Math.min(a,e._minY),l=Math.min(e._maxX-e._minX,e._maxY-e._minY,l),i=!0}}),i&&(this.minY=Math.min(a,y(this.minY,n)),this.maxY=Math.max(r,y(this.maxY,-n)),this.minX=Math.min(s,y(this.minX,n)),this.maxX=Math.max(o,y(this.maxX,-n)),c&&void 0===c.options.minRange&&(c.minRange=Math.min(5*l,(this.maxX-this.minX)/5,c.minRange||n)),h&&void 0===h.options.minRange&&(h.minRange=Math.min(5*l,(this.maxY-this.minY)/5,h.minRange||n)))},getExtremes:function(){h.prototype.getExtremes.call(this,this.valueData),this.chart.hasRendered&&this.isDirtyData&&this.getBox(this.options.data),this.valueMin=this.dataMin,this.valueMax=this.dataMax,this.dataMin=this.minY,this.dataMax=this.maxY},translatePath:function(t){var e,i=!1,n=this.xAxis,o=this.yAxis,s=n.min,r=n.transA,a=(n=n.minPixelPadding,o.min),l=o.transA,c=(o=o.minPixelPadding,[]);if(t)for(e=t.length;e--;)"number"==typeof t[e]?(c[e]=i?(t[e]-s)*r+n:(t[e]-a)*l+o,i=!i):c[e]=t[e];return c},setData:function(e,i){var n,o,s,r=this.options,a=r.mapData,l=r.joinBy,c=null===l,u=[];if(c&&(l="_i"),(l=this.joinBy=t.splat(l))[1]||(l[1]=l[0]),e&&f(e,function(t,i){"number"==typeof t&&(e[i]={value:t}),c&&(e[i]._i=i)}),this.getBox(e),a){for("FeatureCollection"===a.type&&(a=t.geojson(a,this.type,this)),this.getBox(a),this.mapData=a,this.mapMap={},s=0;s<a.length;s++)o=(n=a[s]).properties,n._i=s,l[0]&&o&&o[l[0]]&&(n[l[0]]=o[l[0]]),this.mapMap[n[l[0]]]=n;r.allAreas&&(e=e||[],l[1]&&f(e,function(t){u.push(t[l[1]])}),u="|"+u.join("|")+"|",f(a,function(t){(!l[0]||-1===u.indexOf("|"+t[l[0]]+"|"))&&e.push(v(t,{value:null}))}))}h.prototype.setData.call(this,e,i)},drawGraph:C,drawDataLabels:C,doFullTranslate:function(){return this.isDirtyData||this.chart.renderer.isVML||!this.baseTrans},translate:function(){var t=this,e=t.xAxis,i=t.yAxis,n=t.doFullTranslate();t.generatePoints(),f(t.data,function(o){o.plotX=e.toPixels(o._midX,!0),o.plotY=i.toPixels(o._midY,!0),n&&(o.shapeType="path",o.shapeArgs={d:t.translatePath(o.path),"vector-effect":"non-scaling-stroke"})}),t.translateColors()},drawPoints:function(){var t=this.xAxis,e=this.yAxis,i=this.group,n=this.chart,o=n.renderer,s=this.baseTrans;this.transformGroup||(this.transformGroup=o.g().attr({scaleX:1,scaleY:1}
17).add(i)),this.doFullTranslate()?(n.hasRendered&&"color"===this.pointAttrToOptions.fill&&f(this.points,function(t){t.graphic&&t.graphic.attr("fill",t.color)}),this.group=this.transformGroup,x.column.prototype.drawPoints.apply(this),this.group=i,f(this.points,function(t){t.graphic&&(t.name&&t.graphic.addClass("highcharts-name-"+t.name.replace(" ","-").toLowerCase()),t.properties&&t.properties["hc-key"]&&t.graphic.addClass("highcharts-key-"+t.properties["hc-key"].toLowerCase()))}),this.baseTrans={originX:t.min-t.minPixelPadding/t.transA,originY:e.min-e.minPixelPadding/e.transA+(e.reversed?0:e.len/e.transA),transAX:t.transA,transAY:e.transA}):(i=t.transA/s.transAX,n=e.transA/s.transAY,i>.99&&i<1.01&&n>.99&&n<1.01?(e=t=0,n=i=1):(t=t.toPixels(s.originX,!0),e=e.toPixels(s.originY,!0)),this.transformGroup.animate({translateX:t,translateY:e,scaleX:i,scaleY:n})),this.drawMapDataLabels()},drawMapDataLabels:function(){h.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect),this.hideOverlappingDataLabels()},hideOverlappingDataLabels:function(){var t,e,i,n,o=this.points,s=o.length;for(f(o,function(t,e){(e=t.dataLabel)&&(e.oldOpacity=e.opacity,e.newOpacity=1)}),t=0;t<s-1;++t)for(i=o[t].dataLabel,e=t+1;e<s;++e)n=o[e].dataLabel,i&&n&&0!==i.newOpacity&&0!==n.newOpacity&&!(n.alignAttr.x>i.alignAttr.x+i.width||n.alignAttr.x+n.width<i.alignAttr.x||n.alignAttr.y>i.alignAttr.y+i.height||n.alignAttr.y+n.height<i.alignAttr.y)&&((o[t].labelrank<o[e].labelrank?i:n).newOpacity=0);f(o,function(t,e){(e=t.dataLabel)&&(e.oldOpacity!==e.newOpacity&&e[e.isOld?"animate":"attr"](m({opacity:e.newOpacity},e.alignAttr)),e.isOld=!0)})},render:function(){var t=this,e=h.prototype.render;t.chart.renderer.isVML&&t.data.length>3e3?setTimeout(function(){e.call(t)}):e.call(t)},animate:function(t){var e=this.options.animation,i=this.group,n=this.xAxis,o=this.yAxis,s=n.pos,r=o.pos;this.chart.renderer.isSVG&&(!0===e&&(e={duration:1e3}),t?i.attr({translateX:s+n.len/2,translateY:r+o.len/2,scaleX:.001,scaleY:.001}):(i.animate({translateX:s,translateY:r,scaleX:1,scaleY:1},e),this.animate=null))},animateDrilldown:function(t){var e=this.chart.plotBox,i=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],n=i.bBox,o=this.chart.options.drilldown.animation;t||(t=Math.min(n.width/e.width,n.height/e.height),i.shapeArgs={scaleX:t,scaleY:t,translateX:n.x,translateY:n.y},f(this.points,function(t){t.graphic.attr(i.shapeArgs).animate({scaleX:1,scaleY:1,translateX:0,translateY:0},o)}),this.animate=null)},drawLegendSymbol:l.drawRectangle,animateDrillupFrom:function(t){x.column.prototype.animateDrillupFrom.call(this,t)},animateDrillupTo:function(t){x.column.prototype.animateDrillupTo.call(this,t)}})),w.mapline=v(w.map,{lineWidth:1,fillColor:"none"}),x.mapline=g(x.map,{type:"mapline",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth",fill:"fillColor",dashstyle:"dashStyle"},drawLegendSymbol:x.line.prototype.drawLegendSymbol}),w.mappoint=v(w.scatter,{dataLabels:{enabled:!0,formatter:function(){return this.point.name},color:"black",crop:!1,defer:!1,overflow:!1,style:{HcTextStroke:"3px rgba(255,255,255,0.5)"}}}),x.mappoint=g(x.scatter,{type:"mappoint",forceDL:!0}),x.bubble&&(w.mapbubble=v(w.bubble,{animationLimit:500,tooltip:{pointFormat:"{point.name}: {point.z}"}}),x.mapbubble=g(x.bubble,{pointClass:g(s,{applyOptions:r.prototype.applyOptions}),xyFromShape:!0,type:"mapbubble",pointArrayMap:["z"],getMapData:x.map.prototype.getMapData,getBox:x.map.prototype.getBox,setData:x.map.prototype.setData})),b.plotOptions.heatmap=v(b.plotOptions.scatter,{animation:!1,borderWidth:0,nullColor:"#F8F8F8",dataLabels:{formatter:function(){return this.point.value},verticalAlign:"middle",crop:!1,overflow:!1,style:{color:"white",fontWeight:"bold",HcTextStroke:"1px rgba(0,0,0,0.5)"}},marker:null,tooltip:{pointFormat:"{point.x}, {point.y}: {point.value}<br/>"},states:{normal:{animation:!0},hover:{brightness:.2}}}),x.heatmap=g(x.scatter,v(a,{type:"heatmap",pointArrayMap:["y","value"],hasPointSpecificOptions:!0,supportsDrilldown:!0,getExtremesFromAll:!0,init:function(){x.scatter.prototype.init.a
17pply(this,arguments),this.pointRange=this.options.colsize||1,this.yAxis.axisPointRange=this.options.rowsize||1},translate:function(){var t=this.options,e=this.xAxis,i=this.yAxis;this.generatePoints(),f(this.points,function(n){var o=(t.colsize||1)/2,s=(t.rowsize||1)/2,r=Math.round(e.len-e.translate(n.x-o,0,1,0,1)),a=(o=Math.round(e.len-e.translate(n.x+o,0,1,0,1)),Math.round(i.translate(n.y-s,0,1,0,1)));s=Math.round(i.translate(n.y+s,0,1,0,1));n.plotX=(r+o)/2,n.plotY=(a+s)/2,n.shapeType="rect",n.shapeArgs={x:Math.min(r,o),y:Math.min(a,s),width:Math.abs(o-r),height:Math.abs(s-a)}}),this.translateColors(),this.chart.hasRendered&&f(this.points,function(t){t.shapeArgs.fill=t.options.color||t.color})},drawPoints:x.column.prototype.drawPoints,animate:C,getBox:C,drawLegendSymbol:l.drawRectangle,getExtremes:function(){h.prototype.getExtremes.call(this,this.valueData),this.valueMin=this.dataMin,this.valueMax=this.dataMax,h.prototype.getExtremes.call(this)}})),t.geojson=function(t,e,i){var n=[],o=[],s=function(t){var e=0,i=t.length;for(o.push("M");e<i;e++)1===e&&o.push("L"),o.push(t[e][0],-t[e][1])};e=e||"map";return f(t.features,function(t){var i,r=(a=t.geometry).type,a=a.coordinates;t=t.properties;o=[],"map"===e||"mapbubble"===e?("Polygon"===r?(f(a,s),o.push("Z")):"MultiPolygon"===r&&(f(a,function(t){f(t,s)}),o.push("Z")),o.length&&(i={path:o})):"mapline"===e?("LineString"===r?s(a):"MultiLineString"===r&&f(a,s),o.length&&(i={path:o})):"mappoint"===e&&"Point"===r&&(i={x:a[0],y:-a[1]}),i&&n.push(m(i,{name:t.name||t.NAME,properties:t}))}),i&&(i.chart.mapCredits='<a href="http://www.highcharts.com">Highcharts</a> \xa9 <a href="'+t.copyrightUrl+'">'+t.copyrightShort+"</a>"),n},k(n.prototype,"showCredits",function(t,e){b.credits.text===this.options.credits.text&&this.mapCredits&&(e.text=this.mapCredits,e.href=null),t.call(this,e)}),m(b.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),b.mapNavigation={buttonOptions:{alignTo:"plotBox",align:"left",verticalAlign:"top",x:0,width:18,height:18,style:{fontSize:"15px",fontWeight:"bold",textAlign:"center"},theme:{"stroke-width":1}},buttons:{zoomIn:{onclick:function(){this.mapZoom(.5)},text:"+",y:0},zoomOut:{onclick:function(){this.mapZoom(2)},text:"-",y:28}}},t.splitPath=function(t){var e;t=(t=(t=t.replace(/([A-Za-z])/g," $1 ")).replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,]+/);for(e=0;e<t.length;e++)/[a-zA-Z]/.test(t[e])||(t[e]=parseFloat(t[e]));return t},t.maps={},u.prototype.symbols.topbutton=function(t,i,n,o,s){return e(s,t,i,n,o,s.r,s.r,0,0)},u.prototype.symbols.bottombutton=function(t,i,n,o,s){return e(s,t,i,n,o,0,0,s.r,s.r)},c===d&&f(["topbutton","bottombutton"],function(t){d.prototype.symbols[t]=u.prototype.symbols[t]}),t.Map=function(t,e){var i,o={endOnTick:!1,gridLineWidth:0,lineWidth:0,minPadding:0,maxPadding:0,startOnTick:!1,title:null,tickPositions:[]};return i=t.series,t.series=null,(t=v({chart:{panning:"xy",type:"map"},xAxis:o,yAxis:v(o,{reversed:!0})},t,{chart:{inverted:!1,alignTicks:!1,preserveAspectRatio:!0}})).series=i,new n(t,e)}}(Highcharts),Highcharts.map["countries/es/es-all"]={title:"Spain",version:"1.1.0",type:"FeatureCollection",copyright:"Copyright (c) 2014 Highsoft AS, Based on data from Natural Earth",copyrightShort:"Natural Earth",copyrightUrl:"http://www.naturalearthdata.com",crs:{type:"name",properties:{name:"urn:ogc:def:crs:EPSG:2062"}},"hc-transform":{default:{crs:"+proj=lcc +lat_1=40 +lat_0=40 +lon_0=0 +k_0=0.9988085293 +x_0=600000 +y_0=600000 +a=6378298.3 +b=6356657.142669561 +pm=madrid +units=m +no_defs",scale:.000612848427797,jsonres:15.5,jsonmarginX:-999,jsonmarginY:9851,xoffset:142692.792586,yoffset:1028372.5328},"es-all-canaries":{xpan:500,ypan:450,hitZone:{type:"Polygon",coordinates:[[[6385,2187],[6794,3142],[9999,3142],[9999,2187],[6385,2187]]]},crs:"+proj=lcc +lat_1=40 +lat_0=40 +lon_0=0 +k_0=0.9988085293 +x_0=600000 +y_0=600000 +a=6378298.3 +b=6356657.142669561 +pm=madrid +units=m +no_defs",scale:.000264609209011,jsonres:15.5,jsonmarginX:-999,jsonmarginY:9851,xoffset:-850558.031443,yoffset:-529925.129088}},features:[{type:"Feature",id:"ES.PM",properties:{"hc-group":"admin1","hc-middle-x":.56,"hc-middle-y":.34,"hc-key":"es-pm","hc-a2":"PM",labelrank:"3",hasc:"ES.PM","alt-name":null,"woe-id":"12602088",subregi
17on:null,fips:"SP07","postal-code":"PM",name:"Baleares",country:"Spain","type-en":"Autonomous Community",region:"Islas Baleares",longitude:"2.99156","woe-name":"Islas Baleares",latitude:"39.6162","woe-label":"Balearic Islands, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[7571,4586],[7615,4531],[7680,4531],[7696,4492],[7648,4485],[7592,4515],[7533,4470],[7529,4544],[7571,4586]]],[[[8812,5080],[8772,5054],[8755,5089],[8807,5128],[8812,5080]]],[[[7377,4737],[7393,4804],[7446,4809],[7435,4878],[7485,4927],[7631,4978],[7665,4967],[7707,4889],[7620,4779],[7544,4733],[7538,4671],[7487,4700],[7419,4692],[7377,4737]]],[[[9016,5740],[9063,5781],[9163,5752],[9163,5686],[9121,5582],[9059,5505],[9035,5394],[8990,5326],[8866,5221],[8775,5314],[8667,5306],[8612,5341],[8587,5404],[8599,5448],[8513,5507],[8445,5467],[8387,5399],[8351,5467],[8301,5449],[8270,5484],[8267,5540],[8432,5658],[8534,5772],[8618,5840],[8712,5891],[8825,5923],[8906,5963],[8927,5944],[8844,5900],[8845,5866],[8935,5885],[8880,5825],[8909,5752],[9016,5740]]],[[[9784,5875],[9585,5973],[9435,5971],[9447,6023],[9406,6051],[9418,6088],[9655,6121],[9707,6104],[9790,6038],[9851,5935],[9821,5954],[9825,5885],[9784,5875]]]]}},{type:"Feature",id:"ES.VA",properties:{"hc-group":"admin1","hc-middle-x":.45,"hc-middle-y":.71,"hc-key":"es-va","hc-a2":"VA",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602122",subregi
17on:null,fips:"SP85","postal-code":"VA",name:"Valladolid",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-4.83256","woe-name":"Castilla y Le\xf3n",latitude:"41.5715","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[2079,8167],[2053,8162],[2045,8195],[2075,8210],[2079,8167]]],[[[2200,6984],[2092,7053],[2070,7039],[2030,7052],[2067,7113],[2042,7224],[2042,7354],[2125,7403],[2077,7440],[2050,7554],[2001,7650],[2090,7704],[2068,7765],[2092,7879],[2018,7946],[2012,8108],[2108,8131],[2131,8179],[2184,8182],[2244,8225],[2284,8180],[2316,8202],[2294,8060],[2372,8055],[2357,7916],[2308,7832],[2322,7806],[2415,7824],[2476,7703],[2567,7785],[2648,7699],[2711,7722],[2709,7661],[2852,7651],[2909,7685],[3002,7687],[3066,7646],[3074,7501],[3113,7451],[3086,7378],[2897,7313],[2774,7303],[2689,7270],[2722,7145],[2623,7177],[2636,7133],[2538,7003],[2391,6954],[2320,7007],[2200,6984]]],[[[1906,8007],[1982,7935],[1968,7869],[1906,8007]]]]}},{type:"Feature",id:"ES.ME",properties:{"hc-group":"admin1","hc-middle-x":.43,"hc-middle-y":-3.52,"hc-key":"es-me","hc-a2":"ME",labelrank:"9",hasc:"ES.CE","alt-name":null,"woe-id":"55862984",subregion:null,fips:"SP00","postal-code":"ME",name:"Melilla",country:"Spain","type-en":"Autonomous City",region:"Melilla",longitude:"-2.94015","woe-name":"Melilla",latitude:"35.2934","woe-label":"Melilla Province, ES, Spain",type:"Ciudades Aut\xf3nomas"},geometry:{type:"Polygon",coordinates:[[[3986,861],[4016,806],[3990,796],[3969,844],[3986,861]]]}},{type:"Feature",id:"ES.P",properties:{"hc-group":"admin1","hc-middle-x":.43,"hc-middle-y":.44,"hc-key":"es-p","hc-a2":"PA",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602118",subregion:null,fips:"SP85","postal-code":"P",name:"Palencia",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-4.59868","woe-name":"Castilla y Le\xf3n",latitude:"42.3386","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[3027,8036],[3027,8072],[3053,8065],[3059,8041],[3027,8036]]],[[[3036,8695],[2989,8683],[2880,8604],[2888,8542],[2864,8491],[2896,8456],[2911,8371],[2843,8354],[2853,8295],[2884,8295],[2916,8132],[2950,8082],[2939,8033],[3006,8026],[3037,7933],[3109,7944],[3077,7865],[3095,7845],[3166,7882],[3183,7850],[3118,7816],[3101,7769],[3029,7754],[3066,7646],[3002,7687],[2909,7685],[2852,7651],[2709,7661],[2711,7722],[2648,7699],[2567,7785],[2476,7703],[2415,7824],[2322,7806],[2308,7832],[2357,7916],[2372,8055],[2294,8060],[2316,8202],[2353,8209],[2340,8292],[2388,8298],[2409,8462],[2388,8471],[2412,8646],[2377,8677],[2402,8791],[2472,8872],[2492,8939],[2540,8966],[2676,8973],[2745,9001],[2793,8982],[2827,8931],[2917,8893],[2931,8788],[2986,8800],[2959,8759],[3036,8695]]]]}},{type:"Feature",id:"ES.S",properties:{"hc-group":"admin1","hc-middle-x":.44,"hc-middle-y":.39,"hc-key":"es-s","hc-a2":"CA",labelrank:"3",hasc:"ES.CB","alt-name":null,"woe-id":"12578028",subregion:null,fips:"SP85","postal-code":"S",name:"Cantabria",country:"Spain","type-en":"Autonomous Community",region:"Cantabria",longitude:"-4.02085","woe-name":"Cantabria",latitude:"43.2182","woe-label":"Cantabria, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[3670,9185],[3645,9174],[3641,9220],[3655,9216],[3670,9185]]],[[[2540,8966],[2507,9033],[2463,9064],[2461,9149],[2530,9152],[2552,9229],[2647,9263],[2701,9251],[2690,9315],[2709,9373],[2808,9352],[2960,9374],[3082,9408],[3164,9454],[3238,9469],[3283,9450],[3225,9415],[3261,9399],[3293,9443],[3448,9490],[3485,9451],[3538,9442],[3488,9399],[3668,9372],[3759,9326],[3752,9271],[3719,9254],[3627,9262],[3535,9191],[3549,9093],[3476,9096],[3376,9131],[3284,9043],[3140,8944],[3115,8867],[3137,8844],[3195,8885],[3232,8862],[3173,8818],[3185,8788],[3234,8810],[3246,8744],[3167,8706],[3102,8702],[3100,8759],[3036,8695],[2959,8759],[2986,8800],[2931,8788],[2917,8893],[2827,8931],[2793,8982],[2745,9001],[2676,8973],[2540,8966]]]]}},{type:"Feature",id:"ES.NA",properties:{"hc-group":"admin1","hc-middle-x":.49,"hc-middle-y":.43,"hc-key":"es-na","hc-a2":"NA",labelrank:"3",hasc:"ES.NA","alt-name":null,"woe-id":"12578026",subregi
17on:null,fips:"SP88","postal-code":"NA",name:"Navarra",country:"Spain","type-en":"Autonomous Community",region:"Foral de Navarra",longitude:"-1.63845","woe-name":"Comunidad Foral de Navarra",latitude:"42.7493","woe-label":"Navarre, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[5308,8343],[5294,8364],[5317,8382],[5322,8367],[5308,8343]]],[[[5393,8380],[5340,8389],[5347,8417],[5367,8428],[5393,8380]]],[[[4840,9272],[4898,9283],[4926,9233],[4987,9264],[5108,9224],[5094,9110],[5047,9052],[5089,9004],[5130,8998],[5155,9067],[5213,9019],[5311,8979],[5406,8961],[5443,8931],[5535,8919],[5594,8932],[5627,8896],[5581,8880],[5545,8755],[5510,8707],[5418,8655],[5404,8606],[5326,8594],[5281,8505],[5241,8499],[5231,8429],[5179,8351],[5186,8283],[5149,8230],[5126,8145],[5146,8047],[5210,7954],[5132,7816],[5024,7816],[4943,7868],[4891,7865],[4789,7906],[4753,7984],[4808,8058],[4916,8064],[4906,8135],[4775,8204],[4683,8317],[4639,8316],[4604,8368],[4503,8370],[4446,8415],[4346,8421],[4344,8526],[4310,8504],[4277,8539],[4341,8593],[4375,8570],[4432,8597],[4409,8658],[4436,8684],[4468,8784],[4458,8848],[4488,8901],[4551,8899],[4620,8950],[4640,9027],[4707,9079],[4712,9161],[4786,9211],[4840,9272]]]]}},{type:"Feature",id:"ES.CE",properties:{"hc-group":"admin1","hc-middle-x":.4,"hc-middle-y":.34,"hc-key":"es-ce","hc-a2":"CE",labelrank:"9",hasc:"ES.CE","alt-name":null,"woe-id":"55862983",subregion:null,fips:"SP00","postal-code":"CE",name:"Ceuta",country:"Spain","type-en":"Autonomous City",region:"Ceuta",longitude:"-5.341","woe-name":"Ceuta",latitude:"35.8803","woe-label":"Ceuta Province, ES, Spain",type:"Ciudades Aut\xf3nomas"},geometry:{type:"Polygon",coordinates:[[[1876,1500],[1904,1500],[1968,1463],[1925,1418],[1876,1500]]]}},{type:"Feature",id:"ES.CU",properties:{"hc-group":"admin1","hc-middle-x":.47,"hc-middle-y":.55,"hc-key":"es-cu","hc-a2":"CU",labelrank:"3",hasc:"ES.CM","alt-name":null,"woe-id":"12602112",subregion:null,fips:"SP84","postal-code":"CU",name:"Cuenca",country:"Spain","type-en":"Autonomous Community",region:"Castilla-La Mancha",longitude:"-2.15126","woe-name":"Castilla-La Mancha",latitude:"39.9115","woe-label":"Castille la Mancha, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4859,6221],[4931,6153],[4938,6103],[4981,6099],[5068,6019],[5157,6012],[5155,5962],[5216,5829],[5313,5807],[5390,5823],[5406,5782],[5357,5745],[5362,5666],[5295,5463],[5230,5473],[5186,5431],[5126,5325],[5132,5195],[4939,5084],[4915,5041],[4819,5064],[4735,5051],[4708,5112],[4651,5119],[4687,5022],[4589,5035],[4491,4976],[4464,5036],[4422,4982],[4308,5095],[4219,5092],[4119,5068],[4080,5151],[4046,5106],[3963,5228],[3980,5408],[3905,5491],[3855,5613],[3802,5655],[3824,5770],[3787,5768],[3769,5853],[3826,5860],[3842,5950],[3890,5948],[3902,6004],[3972,5951],[4049,6006],[4061,6066],[4054,6214],[4122,6205],[4199,6264],[4291,6230],[4264,6354],[4310,6329],[4388,6369],[4388,6433],[4435,6394],[4469,6469],[4530,6448],[4573,6486],[4676,6426],[4757,6420],[4820,6249],[4859,6221]]]}},{type:"Feature",id:"ES.VI",properties:{"hc-group":"admin1","hc-middle-x":.42,"hc-middle-y":.44,"hc-key":"es-vi","hc-a2":"VI",labelrank:"3",hasc:"ES.PV","alt-name":null,"woe-id":"12602134",subregion:null,fips:"SP94","postal-code":"
17VI",name:"\xc1lava",country:"Spain","type-en":"Autonomous Community",region:"Pa\xeds Vasco",longitude:"-2.6966","woe-name":"Pa\xeds Vasco",latitude:"42.8902","woe-label":"Basque Country, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4228,9043],[4233,8977],[4186,8931],[4220,8911],[4379,8900],[4458,8848],[4468,8784],[4436,8684],[4409,8658],[4432,8597],[4375,8570],[4341,8593],[4277,8539],[4310,8504],[4344,8526],[4346,8421],[4271,8463],[4207,8419],[4128,8461],[4127,8508],[4078,8546],[4016,8515],[4008,8572],[3996,8594],[3830,8720],[3787,8702],[3762,8753],[3778,8828],[3711,8766],[3662,8826],[3732,8889],[3820,8847],[3888,8869],[3848,8933],[3888,8956],[3849,8999],[3821,8961],[3750,8974],[3767,9120],[3843,9110],[3877,9163],[3926,9102],[3917,9035],[3959,8997],[4112,8971],[4164,8987],[4143,9029],[4228,9043]],[[4260,8585],[4191,8638],[4225,8693],[4161,8711],[4093,8732],[4022,8730],[3983,8685],[4025,8634],[4166,8585],[4260,8585]]]}},{type:"Feature",id:"ES.SS",properties:{"hc-group":"admin1","hc-middle-x":.4,"hc-middle-y":.56,"hc-key":"es-ss","hc-a2":"SS",labelrank:"3",hasc:"ES.PV","alt-name":null,"woe-id":"12602135",subregion:null,fips:"SP94","postal-code":"SS",name:"Gipuzkoa",country:"Spain","type-en":"Autonomous Community",region:"Pa\xeds Vasco",longitude:"-2.2243","woe-name":"Pa\xeds Vasco",latitude:"43.1495","woe-label":"Basque Country, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4458,8848],[4379,8900],[4220,8911],[4186,8931],[4233,8977],[4228,9043],[4265,9076],[4270,9185],[4325,9234],[4333,9299],[4427,9273],[4495,9286],[4548,9258],[4734,9334],[4790,9377],[4840,9272],[4786,9211],[4712,9161],[4707,9079],[4640,9027],[4620,8950],[4551,8899],[4488,8901],[4458,8848]]]}},{type:"Feature",id:"ES.GR",properties:{"hc-group":"admin1","hc-middle-x":.41,"hc-middle-y":.64,"hc-key":"es-gr","hc-a2":"GR",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602099",subregion:null,fips:"SP80","postal-code":"GR",name:"Granada",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-3.2411","woe-name":"Andaluc\xeda",latitude:"37.2665","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4470,3711],[4535,3635],[4579,3596],[4528,3560],[4521,3435],[4489,3365],[4495,3285],[4445,3274],[4461,3180],[4351,3143],[4225,3030],[4206,2926],[4212,2849],[4130,2870],[4089,2908],[4043,2899],[4023,2813],[3973,2743],[3913,2696],[3930,2592],[3870,2533],[3903,2459],[3810,2399],[3820,2355],[3649,2352],[3577,2300],[3462,2318],[3419,2349],[3308,2330],[3269,2342],[3277,2412],[3227,2468],[3186,2466],[2955,2567],[2861,2648],[2812,2819],[2867,2864],[2860,2897],[2906,2994],[2967,2999],[3018,3047],[3082,3045],[3124,3020],[3216,3028],[3258,3112],[3396,3179],[3497,3268],[3566,3220],[3658,3231],[3711,3289],[3765,3292],[3846,3251],[3936,3257],[3942,3290],[4003,3325],[4013,3440],[4098,3586],[4169,3651],[4194,3639],[4254,3686],[4249,3746],[4295,3766],[4363,3734],[4470,3711]]]}},{type:"Feature",id:"ES.MU",properties:{"hc-group":"admin1","hc-middle-x":.5,"hc-middle-y":.61,"hc-key":"es-mu","hc-a2":"MU",labelrank:"7",hasc:"ES.MU","alt-name":null,"woe-id":"12578025",subregion:null,fips:"SP96","postal-code":"MU",name:"Murcia",country:"Spain","type-en":"Autonomous Community",region:"Murcia",longitude:"-1.45758","woe-name":"Regi\xf3n de Murcia",latitude:"37.9136","woe-label":"Murcia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4579,3596],[4535,3635],[4470,3711],[4481,3749],[4572,3891],[4698,3993],[4760,3983],[4841,4013],[4952,4093],[5008,4075],[5056,4023],[5105,4039],[5177,4123],[5154,4261],[5207,4389],[5246,4434],[5288,4424],[5370,4485],[5419,4499],[5547,4397],[5563,4303],[5551,4217],[5504,4161],[5511,4075],[5566,4061],[5603,3995],[5594,3923],[5555,3831],[5567,3780],[5658,3641],[5725,3574],[5791,3553],[5718,3421],[5756,3363],[5845,3316],[5663,3243],[5541,3267],[5512,3213],[5396,3260],[5328,3240],[5207,3152],[5194,3100],[5066,3042],[4989,3101],[4899,3116],[4759,3323],[4754,3465],[4769,3552],[4611,3576],[4579,3596]]]}},{type:"Feature",id:"ES.SA",properties:{"hc-group":"admin1","hc-middle-x":.48,"hc-middle-y":.51,"hc-key":"es-sa","hc-a2":"SA",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602119",subregi
17on:null,fips:"SP85","postal-code":"SA",name:"Salamanca",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-5.9926","woe-name":"Castilla y Le\xf3n",latitude:"40.8324","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[2070,7039],[2092,7053],[2200,6984],[2181,6898],[2221,6846],[2207,6755],[2165,6706],[2165,6654],[2098,6572],[2001,6505],[1982,6448],[1932,6414],[1876,6411],[1879,6374],[1940,6373],[1920,6301],[1858,6238],[1826,6290],[1735,6247],[1739,6166],[1700,6110],[1648,6114],[1646,6162],[1576,6138],[1557,6104],[1490,6125],[1404,6185],[1427,6225],[1319,6314],[1224,6283],[1191,6247],[1066,6189],[1031,6122],[923,6086],[813,6086],[774,6122],[842,6201],[794,6293],[830,6355],[806,6422],[836,6508],[822,6610],[826,6712],[791,6827],[748,6900],[778,6941],[848,6936],[899,7038],[993,7157],[1059,7158],[1124,7190],[1251,7162],[1402,7070],[1486,7060],[1482,7034],[1572,7029],[1594,7105],[1655,7084],[1776,7110],[1814,7072],[1905,7037],[1976,7044],[1980,7004],[2059,6973],[2070,7039]]]}},{type:"Feature",id:"ES.LE",properties:{"hc-group":"admin1","hc-middle-x":.48,"hc-middle-y":.49,"hc-key":"es-le","hc-a2":"LE",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602117",subregion:null,fips:"SP85","postal-code":"LE",name:"Le\xf3n",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-5.75872","woe-name":"Castilla y Le\xf3n",latitude:"42.6006","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",
18coordinates:[[[2461,9149],[2463,9064],[2507,9033],[2540,8966],[2492,8939],[2472,8872],[2402,8791],[2377,8677],[2412,8646],[2388,8471],[2409,8462],[2388,8298],[2340,8292],[2353,8209],[2316,8202],[2284,8180],[2244,8225],[2184,8182],[2131,8179],[2108,8131],[2012,8108],[2018,7946],[1982,7935],[1906,8007],[1879,7971],[1824,7994],[1810,8042],[1731,8028],[1722,8053],[1657,8035],[1615,8070],[1565,8045],[1496,8080],[1371,8074],[1288,8139],[1147,8118],[1095,8144],[980,8159],[920,8198],[920,8198],[957,8252],[946,8313],[882,8366],[899,8444],[823,8476],[781,8460],[705,8471],[754,8614],[743,8683],[834,8734],[878,8786],[909,8898],[953,8874],[994,8900],[1116,8893],[1205,8926],[1185,8970],[1233,8982],[1273,9030],[1373,8988],[1400,9015],[1450,8999],[1495,9038],[1565,9033],[1590,8985],[1673,8935],[1725,8937],[1764,9005],[1814,9012],[1910,8982],[2005,9012],[2051,9053],[2239,9068],[2276,9135],[2403,9201],[2461,9149]],[[2079,8167],[2075,8210],[2045,8195],[2053,8162],[2079,8167]]]}},{type:"Feature",id:"ES.ZA",properties:{"hc-group":"admin1","hc-middle-x":.62,"hc-middle-y":.52,"hc-key":"es-za","hc-a2":"ZA",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602123",subregion:null,fips:"SP85","postal-code":"ZA",name:"Zamora",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-5.84292","woe-name":"Castilla y Le\xf3n",latitude:"41.6837","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[980,8159],[1095,8144],[1147,8118],[1288,8139],[1371,8074],[1496,8080],[1565,8045],[1615,8070],[1657,8035],[1722,8053],[1731,8028],[1810,8042],[1824,7994],[1879,7971],[1906,8007],[1968,7869],[1982,7935],[2018,7946],[2092,7879],[2068,7765],[2090,7704],[2001,7650],[2050,7554],[2077,7440],[2125,7403],[2042,7354],[2042,7224],[2067,7113],[2030,7052],[2070,7039],[2059,6973],[1980,7004],[1976,7044],[1905,7037],[1814,7072],[1776,7110],[1655,7084],[1594,7105],[1572,7029],[1482,7034],[1486,7060],[1402,7070],[1251,7162],[1124,7190],[1212,7286],[1256,7309],[1286,7379],[1352,7465],[1301,7527],[1228,7567],[1154,7583],[1111,7557],[1079,7583],[1064,7652],[1110,7785],[1070,7803],[1078,7848],[1035,7865],[928,7865],[877,7916],[852,7874],[752,7898],[769,7967],[724,8018],[800,8120],[853,8163],[901,8162],[920,8198],[920,8198],[980,8159]]]}},{type:"Feature",id:"ES.M",properties:{"hc-group":"admin1","hc-middle-x":.47,"hc-middle-y":.48,"hc-key":"es-m","hc-a2":"MA",labelrank:"7",hasc:"ES.MD","alt-name":null,"woe-id":"12578024",subregion:null,fips:"SP87","postal-code":"M",name:"Madrid",country:"Spain","type-en":"Autonomous Community",region:"Madrid",longitude:"-3.67012","woe-name":"Comunidad de Madrid",latitude:"40.4593","woe-label":"Madrid, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[3842,5950],[3826,5860],[3769,5853],[3750,5876],[3669,5839],[3496,5833],[3390,5773],[3256,5672],[3194,5705],[3272,5733],[3389,5828],[3396,5901],[3277,5933],[3253,5958],[3104,6011],[3040,6056],[2986,6048],[2952,6082],[2854,6016],[2794,6108],[2738,6036],[2662,5994],[2631,6009],[2666,6098],[2660,6137],[2724,6128],[2766,6214],[2832,6219],[2838,6357],[2861,6438],[2900,6418],[2957,6447],[2965,6507],[3023,6593],[3108,6613],[3148,6758],[3182,6799],[3266,6832],[3293,6881],[3396,6982],[3458,7006],[3546,6917],[3565,6824],[3497,6621],[3544,6552],[3529,6514],[3585,6505],[3642,6463],[3636,6412],[3665,6344],[3734,6323],[3738,6258],[3788,6199],[3750,6046],[3799,6073],[3831,6036],[3842,5950]]],[[[2836,6477],[2839,6503],[2873,6513],[2887,6480],[2836,6477]]]]}},{type:"Feature",id:"ES.GU",properties:{"hc-group":"admin1","hc-middle-x":.32,"hc-middle-y":.36,"hc-key":"es-gu","hc-a2":"GU",labelrank:"3",hasc:"ES.CM","alt-name":null,"woe-id":"12602113",subregi
18on:null,fips:"SP84","postal-code":"GU",name:"Guadalajara",country:"Spain","type-en":"Autonomous Community",region:"Castilla-La Mancha",longitude:"-2.53087","woe-name":"Castilla-La Mancha",latitude:"40.8422","woe-label":"Castille la Mancha, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[3458,7006],[3565,7061],[3561,7114],[3694,7117],[3734,7154],[3825,7133],[3906,7140],[3963,7178],[4016,7121],[4108,7127],[4222,7068],[4223,6999],[4266,7007],[4318,6933],[4365,6911],[4461,6915],[4588,6969],[4645,6937],[4647,7006],[4733,7022],[4877,6920],[4996,6798],[5015,6706],[5061,6664],[5053,6566],[5070,6501],[5061,6429],[5033,6403],[4965,6421],[4944,6319],[4859,6221],[4820,6249],[4757,6420],[4676,6426],[4573,6486],[4530,6448],[4469,6469],[4435,6394],[4388,6433],[4388,6369],[4310,6329],[4264,6354],[4291,6230],[4199,6264],[4122,6205],[4054,6214],[4061,6066],[4049,6006],[3972,5951],[3902,6004],[3890,5948],[3842,5950],[3831,6036],[3799,6073],[3750,6046],[3788,6199],[3738,6258],[3734,6323],[3665,6344],[3636,6412],[3642,6463],[3585,6505],[3529,6514],[3544,6552],[3497,6621],[3565,6824],[3546,6917],[3458,7006]]]}},{type:"Feature",id:"ES.SG",properties:{"hc-group":"admin1","hc-middle-x":.44,"hc-middle-y":.39,"hc-key":"es-sg","hc-a2":"SG",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602120",subregion:null,fips:"SP85","postal-code":"SG",name:"Segovia",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-4.04672","woe-name":"Castilla y Le\xf3n",latitude:"41.2066","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[3734,7154],[3694,7117],[3561,7114],[3565,7061],[3458,7006],[3396,6982],[3293,6881],[3266,6832],[3182,6799],[3148,6758],[3108,6613],[3023,6593],[2965,6507],[2898,6522],[2873,6513],[2839,6503],[2836,6477],[2758,6452],[2739,6576],[2699,6660],[2658,6653],[2645,6782],[2527,6936],[2538,7003],[2636,7133],[2623,7177],[2722,7145],[2689,7270],[2774,7303],[2897,7313],[3086,7378],[3113,7451],[3186,7412],[3228,7362],[3267,7365],[3312,7318],[3312,7368],[3357,7425],[3461,7445],[3475,7405],[3554,7376],[3614,7322],[3627,7233],[3734,7154]]]}},{type:"Feature",id:"ES.SE",properties:{"hc-group":"admin1","hc-middle-x":.41,"hc-middle-y":.59,"hc-key":"es-se","hc-a2":"SE",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602104",subregion:null,fips:"SP80","postal-code":"SE",name:"Sevilla",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-5.73917","woe-name":"Andaluc\xeda",latitude:"37.438","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[1191,2549],[1148,2575],[1100,2554],[1068,2586],[1090,2639],[1071,2733],[1095,2775],[1107,2975],[1080,3001],[1095,3074],[1137,3115],[1069,3262],[1076,3292],[962,3325],[1017,3421],[1151,3459],[1208,3422],[1257,3497],[1308,3497],[1291,3543],[1309,3605],[1263,3640],[1322,3680],[1437,3698],[1494,3775],[1491,3818],[1558,3880],[1649,3893],[1674,3850],[1642,3831],[1675,3790],[1734,3837],[1770,3834],[1838,3735],[1852,3670],[1898,3626],[1904,3568],[1988,3448],[1986,3369],[1899,3345],[1926,3279],[2013,3291],[2086,3337],[2137,3332],[2224,3378],[2261,3356],[2305,3243],[2291,3177],[2391,3004],[2440,2973],[2485,3007],[2512,2985],[2532,2895],[2476,2900],[2459,2817],[2410,2794],[2373,2829],[2341,2803],[2274,2804],[2308,2747],[2115,2635],[2049,2579],[1969,2651],[1876,2583],[1876,2662],[1823,2678],[1791,2572],[1737,2556],[1669,2603],[1627,2556],[1552,2558],[1500,2535],[1478,2477],[1297,2498],[1191,2549]]]}},{type:"Feature",id:"ES.TE",properties:{"hc-group":"admin1","hc-middle-x":.39,"hc-middle-y":.55,"hc-key":"es-te","hc-a2":"TE",labelrank:"3",hasc:"ES.AR","alt-name":null,"woe-id":"12602106",subregion:null,fips:"SP81","postal-code":"TE",name:"Teruel",country:"Spain","type-en":"Autonomous Community",region:"Arag\xf3n",longitude:"-0.8094090000000001","woe-name":"Arag\xf3n",latitude:"40.625","woe-label":"Aragon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[5406,5782],[5390,5823],[5456,5882],[5397,5927],[5329,5939],[5278,6020],[5256,5964],[5155,5962],[5157,6012],[5068,6019],[4981,6099],[4938,6103],[4931,6153],[4859,6221],[4859,6221],[4944,6319],[4965,6421],[5033,6403],[5061,6429],[5070,6501],[5053,6566],[5061,6664],[5015,6706],[4996,6798],[5121,6806],[5125,6872],[5175,6933],[5274,6919],[5284,6997],[5353,6992],[5417,7034],[5537,6956],[5579,7008],[5628,6970],[5667,7033],[5731,6994],[5795,7080],[5767,7128],[5797,7215],[5855,7125],[5873,7144],[5830,7221],[5882,7254],[5954,7171],[6066,7114],[6254,7036],[6303,6954],[6343,6980],[6458,6978],[6521,6888],[6493,6788],[6514,6726],[6439,6619],[6338,6578],[6315,6609],[6241,6611],[6166,6659],[6121,6621],[6114,6568],[6059,6532],[6001,6527],[6005,6483],[6070,6472],[6089,6331],[6044,6283],[6081,6219],[6004,6142],[5965,6080],[5883,6080],[5832,5900],[5726,5865],[5655,5762],[5696,5691],[5606,5675],[5586,5770],[5523,5793],[5406,5782]]]}},{type:"Feature",id:"ES.V",properties:{"hc-group":"admin1","hc-middle-x":.48,"hc-middle-y":.56,"hc-key":"es-v","hc-a2":"VA",labelrank:"6",hasc:"ES.VC","alt-name":null,"woe-id":"12602139",subregi
18on:null,fips:"SP89","postal-code":"V",name:"Valencia",country:"Spain","type-en":"Autonomous Community",region:"Valenciana",longitude:"-0.712245","woe-name":"Comunidad Valenciana",latitude:"39.3003","woe-label":"Valencia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[5406,5782],[5523,5793],[5586,5770],[5606,5675],[5696,5691],[5742,5633],[5807,5651],[5817,5569],[5840,5557],[5908,5612],[5955,5542],[6011,5563],[6061,5619],[6187,5538],[6177,5483],[6090,5324],[6097,5189],[6115,5120],[6191,4975],[6170,4958],[6200,4867],[6279,4736],[6355,4667],[6193,4629],[6125,4656],[6041,4587],[5894,4557],[5969,4504],[5881,4450],[5785,4508],[5714,4493],[5618,4538],[5623,4644],[5563,4711],[5457,4688],[5349,4796],[5337,4833],[5401,4990],[5399,5078],[5178,5138],[5132,5195],[5126,5325],[5186,5431],[5230,5473],[5295,5463],[5362,5666],[5357,5745],[5406,5782]]],[[[5390,5823],[5313,5807],[5216,5829],[5155,5962],[5256,5964],[5278,6020],[5329,5939],[5397,5927],[5456,5882],[5390,5823]]]]}},{type:"Feature",id:"ES.BU",properties:{"hc-group":"admin1","hc-middle-x":.4,"hc-middle-y":.47,"hc-key":"es-bu","hc-a2":"BU",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602116",subregion:null,fips:"SP85","postal-code":"BU",name:"Burgos",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-3.60703","woe-name":"Castilla y Le\xf3n",latitude:"42.348","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[3549,9093],[3661,9154],[3767,9120],[3750,8974],[3821,8961],[3849,8999],[3888,8956],[3848,8933],[3888,8869],[3820,8847],[3732,8889],[3662,8826],[3711,8766],[3778,8828],[3762,8753],[3787,8702],[3830,8720],[3996,8594],[4008,8572],[3954,8553],[3870,8568],[3793,8469],[3827,8449],[3839,8292],[3799,8259],[3815,8176],[3790,8098],[3877,7978],[3937,7979],[3957,7917],[3874,7772],[3828,7768],[3753,7672],[3688,7747],[3662,7738],[3669,7649],[3608,7613],[3526,7457],[3472,7476],[3461,7445],[3357,7425],[3312,7368],[3312,7318],[3267,7365],[3228,7362],[3186,7412],[3113,7451],[3074,7501],[3066,7646],[3029,7754],[3101,7769],[3118,7816],[3183,7850],[3166,7882],[3095,7845],[3077,7865],[3109,7944],[3037,7933],[3006,8026],[2939,8033],[2950,8082],[2916,8132],[2884,8295],[2853,8295],[2843,8354],[2911,8371],[2896,8456],[2864,8491],[2888,8542],[2880,8604],[2989,8683],[3036,8695],[3100,8759],[3102,8702],[3167,8706],[3246,8744],[3234,8810],[3185,8788],[3173,8818],[3232,8862],[3195,8885],[3137,8844],[3115,8867],[3140,8944],[3284,9043],[3376,9131],[3476,9096],[3549,9093]],[[3027,8036],[3059,8041],[3053,8065],[3027,8072],[3027,8036]]],[[[4260,8585],[4166,8585],[4025,8634],[3983,8685],[4022,8730],[4093,8732],[4161,8711],[4225,8693],[4191,8638],[4260,8585]]]]}},{type:"Feature",id:"ES.BI",properties:{"hc-group":"admin1","hc-middle-x":.7,"hc-middle-y":.51,"hc-key":"es-bi","hc-a2":"BI",labelrank:"3",hasc:"ES.PV","alt-name":"Biscay|Vizcaya","woe-id":"12602136",subregion:null,fips:"SP94","postal-code":"BI",name:"Bizkaia",country:"Spain","type-en":"Autonomous Community",region:"Pa\xeds Vasco",longitude:"-2.7953","woe-name":"Pa\xeds Vasco",latitude:"43.2392","woe-label":"Basque Country, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[3767,9120],[3661,9154],[3549,9093],[3535,9191],[3627,9262],[3719,9254],[3752,9271],[3759,9326],[3806,9333],[3869,9285],[3852,9339],[3928,9409],[4062,9424],[4113,9337],[4135,9384],[4273,9342],[4333,9299],[4325,9234],[4270,9185],[4265,9076],[4228,9043],[4143,9029],[4164,8987],[4112,8971],[3959,8997],[3917,9035],[3926,9102],[3877,9163],[3843,9110],[3767,9120]],[[3670,9185],[3655,9216],[3641,9220],[3645,9174],[3670,9185]]]}},{type:"Feature",id:"ES.OR",properties:{"hc-group":"admin1","hc-middle-x":.36,"hc-middle-y":.5,"hc-key":"es-or","hc-a2":"OR",labelrank:"3",hasc:"ES.GA","alt-name":null,"woe-id":"12602132",subregion:null,fips:"SP91","postal-code":"OR",name:"Orense",country:"Spain","type-en":"Autonomous Community",region:"Galicia",longitude:"-7.59234","woe-name":"Galicia",latitude:"42.1609","woe-label":"Galicia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[920,8198],[920,8198],[901,8162],[853,8163],[800,8120],[724,8018],[769,7967],[752,7898],[698,7878],[626,7929],[582,7906],[581,7840],[537,7802],[415,7777],[384,7747],[365,7797],[244,7781],[257,7824],[168,7855],[29,7818],[24,7877],[-9,7829],[-47,7828],[-93,7780],[
18-197,7779],[-198,7829],[-234,7861],[-190,7942],[-118,8018],[-150,8054],[-192,8044],[-212,8142],[-180,8161],[-162,8237],[-218,8225],[-247,8276],[-234,8314],[-276,8364],[-286,8504],[-257,8500],[-152,8581],[-132,8555],[-32,8543],[38,8578],[61,8500],[274,8381],[349,8371],[431,8407],[557,8374],[595,8287],[639,8393],[705,8471],[781,8460],[823,8476],[899,8444],[882,8366],[946,8313],[957,8252],[920,8198]]]}},{type:"Feature",id:"ES.L",properties:{"hc-group":"admin1","hc-middle-x":.48,"hc-middle-y":.55,"hc-key":"es-l","hc-a2":"L\xc9",labelrank:"3",hasc:"ES.CT","alt-name":null,"woe-id":"12602126",subregion:null,fips:"SP86","postal-code":"L",name:"L\xe9rida",country:"Spain","type-en":"Autonomous Community",region:"Catalu\xf1a",longitude:"1.11518","woe-name":"Catalu\xf1a",latitude:"42.0143","woe-label":"Catalonia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[6565,7154],[6574,7248],[6532,7297],[6539,7335],[6544,7405],[6614,7487],[6598,7535],[6551,7539],[6519,7621],[6576,7703],[6721,7838],[6700,7918],[6750,7964],[6791,8101],[6817,8343],[6771,8485],[6813,8577],[6814,8620],[6769,8643],[6731,8707],[6705,8757],[6718,8856],[6840,8855],[6926,8810],[7041,8807],[7095,8746],[7239,8751],[7332,8632],[7322,8517],[7356,8464],[7404,8460],[7559,8538],[7586,8479],[7637,8463],[7672,8347],[7574,8322],[7560,8241],[7594,8218],[7556,8014],[7521,7904],[7537,7834],[7485,7767],[7366,7775],[7368,7693],[7397,7630],[7345,7584],[7365,7556],[7219,7545],[7194,7462],[7117,7445],[7082,7362],[7033,7305],[6769,7233],[6721,7257],[6681,7218],[6622,7254],[6621,7202],[6583,7203],[6565,7154]]]}},{type:"Feature",id:"ES.Z",properties:{"hc-group":"admin1","hc-middle-x":.46,"hc-middle-y":.75,"hc-key":"es-z","hc-a2":"ZA",labelrank:"3",hasc:"ES.AR","alt-name":null,"woe-id":"12602107",subregion:null,fips:"SP81","postal-code":"Z",name:"Zaragoza",country:"Spain","type-en":"Autonomous Community",region:"Arag\xf3n",longitude:"-1.0538","woe-name":"Arag\xf3n",latitude:"41.5814","woe-label":"Aragon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[6539,7335],[6532,7297],[6574,7248],[6565,7154],[6520,7080],[6450,7029],[6458,6978],[6343,6980],[6303,6954],[6254,7036],[6066,7114],[5954,7171],[5882,7254],[5830,7221],[5873,7144],[5855,7125],[5797,7215],[5767,7128],[5795,7080],[5731,6994],[5667,7033],[5628,6970],[5579,7008],[5537,6956],[5417,7034],[5353,6992],[5284,6997],[5274,6919],[5175,6933],[5125,6872],[5121,6806],[4996,6798],[4877,6920],[4733,7022],[4647,7006],[4570,7050],[4554,7210],[4605,7313],[4674,7257],[4727,7287],[4690,7476],[4741,7485],[4832,7558],[4848,7610],[4798,7684],[4821,7749],[4786,7857],[4795,7886],[4789,7906],[4891,7865],[4943,7868],[5024,7816],[5132,7816],[5210,7954],[5146,8047],[5126,8145],[5149,8230],[5186,8283],[5179,8351],[5231,8429],[5241,8499],[5281,8505],[5326,8594],[5404,8606],[5418,8655],[5510,8707],[5528,8630],[5514,8570],[5525,8380],[5569,8355],[5573,8314],[5511,8210],[5603,8225],[5650,8323],[5658,8234],[5641,8200],[5656,8034],[5623,7988],[5592,8013],[5563,7953],[5635,7882],[5722,7883],[5772,7814],[5839,7765],[5871,7656],[5958,7606],[5984,7556],[6059,7497],[6125,7504],[6186,7394],[6217,7287],[6358,7269],[6401,7330],[6461,7356],[6539,7335]],[[5308,8343],[5322,8367],[5317,8382],[5294,8364],[5308,8343]],[[5393,8380],[5367,8428],[5347,8417],[5340,8389],[5393,8380]]]}},{type:"Feature",id:"ES.T",properties:{"hc-group":"admin1","hc-middle-x":.36,"hc-middle-y":.47,"hc-key":"es-t","hc-a2":"TA",labelrank:"3",hasc:"ES.CT","alt-name":null,"woe-id":"12602127",subregion:null,fips:"SP86","postal-code":"T",name:"Tarragona",country:"Spain","type-en":"Autonomous Community",region:"Catalu\xf1a",longitude:"0.873012","woe-name":"Catalu\xf1a",latitude:"41.1476","woe-label":"Catalonia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[6458,6978],[6450,7029],[6520,7080],[6565,7154],[6583,7203],[6621,7202],[6622,7254],[6681,7218],[6721,7257],[6769,7233],[7033,7305],[7082,7362],[7117,7445],[7194,7462],[7219,7545],[7365,7556],[7395,7557],[7378,7485],[7442,7457],[7436,7404],[7510,7344],[7553,7233],[7529,7206],[7572,7164],[7505,7155],[7309,7069],[7254,7053],[7229,7008],[7127,7004],[7076,6975],[6868,6728],[6854,6696],[6912,6698],[7e3,6642],[6983,6586],[6892,6537],[6787,6511],[6730,6416],[6675,6438],[6617,6493],[6540,6519],[6533,6573],[6476,6620],[6439,6619],[6514,6726],[6493,6788],[6521,6888],[6458,6978]]]}},{type:"Feature",id:"ES.LO",properties:{"hc-group":"admin1","hc-middle-x":.42,"hc-middle-y":.45,"hc-key":"es-lo","hc-a2":"LO",labelrank:"3",hasc:"ES.LO","alt-name":null,"woe-id":"12578023",subregi
18on:null,fips:"SP85","postal-code":"LO",name:"La Rioja",country:"Spain","type-en":"Autonomous Community",region:"La Rioja",longitude:"-2.40337","woe-name":"La Rioja",latitude:"42.3179","woe-label":"La Rioja, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4789,7906],[4795,7886],[4786,7857],[4735,7825],[4586,7862],[4554,7968],[4575,7996],[4478,7993],[4449,8035],[4397,8047],[4269,8007],[4222,7895],[4144,7895],[4088,7917],[4107,8014],[4053,8e3],[4033,7933],[3957,7917],[3937,7979],[3877,7978],[3790,8098],[3815,8176],[3799,8259],[3839,8292],[3827,8449],[3793,8469],[3870,8568],[3954,8553],[4008,8572],[4016,8515],[4078,8546],[4127,8508],[4128,8461],[4207,8419],[4271,8463],[4346,8421],[4446,8415],[4503,8370],[4604,8368],[4639,8316],[4683,8317],[4775,8204],[4906,8135],[4916,8064],[4808,8058],[4753,7984],[4789,7906]]]}},{type:"Feature",id:"ES.GI",properties:{"hc-group":"admin1","hc-middle-x":.71,"hc-middle-y":.48,"hc-key":"es-gi","hc-a2":"GI",labelrank:"3",hasc:"ES.CT","alt-name":null,"woe-id":"12602125",subregion:null,fips:"SP86","postal-code":"GI",name:"Gerona",country:"Spain","type-en":"Autonomous Community",region:"Catalu\xf1a",longitude:"2.79123","woe-name":"Catalu\xf1a",latitude:"42.0844","woe-label":"Catalonia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[7672,8347],[7637,8463],[7586,8479],[7559,8538],[7730,8489],[7763,8417],[7833,8406],[7895,8477],[8004,8498],[8120,8458],[8156,8415],[8220,8432],[8310,8424],[8291,8458],[8327,8496],[8387,8504],[8512,8578],[8587,8578],[8618,8545],[8708,8551],[8708,8480],[8733,8456],[8823,8446],[8787,8355],[8699,8366],[8676,8323],[8686,8242],[8763,8172],[8752,8133],[8788,8065],[8731,7933],[8571,7781],[8507,7760],[8454,7701],[8423,7794],[8386,7805],[8266,7766],[8173,7848],[8115,7839],[8077,7887],[8089,7933],[8172,7937],[8165,8002],[8209,8086],[8095,8179],[8050,8167],[8026,8198],[7909,8165],[7858,8180],[7821,8269],[7828,8343],[7727,8363],[7672,8347]]]}},{type:"Feature",id:"ES.AB",properties:{"hc-group":"admin1","hc-middle-x":.45,"hc-middle-y":.38,"hc-key":"es-ab","hc-a2":"AB",labelrank:"3",hasc:"ES.CM","alt-name":null,"woe-id":"12602110",subregion:null,fips:"SP84","postal-code":"AB",name:"Albacete",country:"Spain","type-en":"Autonomous Community",region:"Castilla-La Mancha",longitude:"-1.94309","woe-name":"Castilla-La Mancha",latitude:"38.834","woe-label":"Castille la Mancha, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[5618,4538],[5600,4513],[5644,4436],[5547,4397],[5419,4499],[5370,4485],[5288,4424],[5246,4434],[5207,4389],[5154,4261],[5177,4123],[5105,4039],[5056,4023],[5008,4075],[4952,4093],[4841,4013],[4760,3983],[4698,3993],[4572,3891],[4481,3749],[4470,3711],[4363,3734],[4295,3766],[4379,3880],[4390,3955],[4355,3996],[4339,4102],[4268,4138],[4269,4208],[4184,4207],[4116,4241],[4138,4337],[4178,4349],[4206,4425],[4175,4498],[4119,4534],[4107,4607],[4018,4639],[4010,4674],[4068,4789],[4039,4873],[4136,5016],[4119,5068],[4219,5092],[4308,5095],[4422,4982],[4464,5036],[4491,4976],[4589,5035],[4687,5022],[4651,5119],[4708,5112],[4735,5051],[4819,5064],[4915,5041],[4939,5084],[5132,5195],[5178,5138],[5399,5078],[5401,4990],[5337,4833],[5349,4796],[5457,4688],[5563,4711],[5623,4644],[5618,4538]]]}},{type:"Feature",id:"ES.A",properties:{"hc-group":"admin1","hc-middle-x":.29,"hc-middle-y":.46,"hc-key":"es-a","hc-a2":"AL",labelrank:"6",hasc:"ES.VC","alt-name":null,"woe-id":"12602137",subregion:null,fips:"SP89","postal-code":"A",name:"Alicante",country:"Spain","type-en":"Autonomous Community",region:"Valenciana",longitude:"-0.533879","woe-name":"Comunidad Valenciana",latitude:"38.5418","woe-label":"Valencia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[5547,4397],[5644,4436],[5600,4513],[5618,4538],[5714,4493],[5785,4508],[5881,4450],[5969,4504],[5894,4557],[6041,4587],[6125,4656],[6193,4629],[6355,4667],[6474,4637],[6537,4591],[6575,4520],[6522,4495],[6442,4409],[6380,4395],[6322,4299],[6230,4279],[6114,4213],[6061,4109],[5982,4078],[5992,3940],[5905,3907],[5878,3840],[5874,3707],[5823,3656],[5791,3553],[5725,3574],[5658,3641],[5567,3780],[5555,3831],[5594,3923],[5603,3995],[5566,4061],[5511,4075],[5504,4161],[5551,4217],[5563,4303],[5547,4397]]]}},{type:"Feature",id:"ES.AV",properties:{"hc-group":"admin1","hc-middle-x":.52,"hc-middle-y":.61,"hc-key":"es-av","hc-a2":"AV",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602115",subregi
18on:null,fips:"SP85","postal-code":"AV",name:"\xc1vila",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-4.87934","woe-name":"Castilla y Le\xf3n",latitude:"40.5611","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[2200,6984],[2320,7007],[2391,6954],[2538,7003],[2527,6936],[2645,6782],[2658,6653],[2699,6660],[2739,6576],[2758,6452],[2836,6477],[2887,6480],[2873,6513],[2898,6522],[2965,6507],[2957,6447],[2900,6418],[2861,6438],[2838,6357],[2832,6219],[2766,6214],[2724,6128],[2660,6137],[2666,6098],[2631,6009],[2540,6015],[2528,6077],[2442,6062],[2435,6030],[2293,5910],[2238,5947],[2169,5891],[2019,5916],[1992,5968],[2e3,6063],[1944,6052],[1899,6011],[1798,6030],[1700,6110],[1739,6166],[1735,6247],[1826,6290],[1858,6238],[1920,6301],[1940,6373],[1879,6374],[1876,6411],[1932,6414],[1982,6448],[2001,6505],[2098,6572],[2165,6654],[2165,6706],[2207,6755],[2221,6846],[2181,6898],[2200,6984]]]}},{type:"Feature",id:"ES.CC",properties:{"hc-group":"admin1","hc-middle-x":.54,"hc-middle-y":.54,"hc-key":"es-cc","hc-a2":"CC",labelrank:"3",hasc:"ES.EX","alt-name":null,"woe-id":"12602129",subregion:null,fips:"SP90","postal-code":"CC",name:"C\xe1ceres",country:"Spain","type-en":"Autonomous Community",region:"Extremadura",longitude:"-6.08204","woe-name":"Extremadura",latitude:"39.7279","woe-label":"Extremadura, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[1700,6110],[1798,6030],[1899,6011],[1944,6052],[2e3,6063],[1992,5968],[2019,5916],[1994,5905],[1964,5711],[1967,5670],[2045,5648],[2021,5554],[2067,5532],[2142,5574],[2162,5497],[2115,5370],[2209,5256],[2242,5240],[2318,5148],[2226,5120],[2192,5157],[2171,5095],[2125,5065],[1994,5082],[1986,4982],[1904,4910],[1846,4964],[1767,4944],[1784,4868],[1701,4834],[1604,4902],[1509,4839],[1495,4866],[1437,4826],[1431,4888],[1329,4789],[1243,4863],[1192,4882],[1188,4955],[1145,4933],[1016,4949],[909,4979],[891,4956],[819,4973],[795,5025],[838,5090],[802,5170],[729,5179],[600,5240],[620,5173],[576,5114],[578,5182],[505,5164],[506,5115],[466,5065],[428,5072],[369,5149],[385,5270],[317,5311],[226,5421],[196,5513],[371,5497],[621,5506],[654,5624],[719,5694],[760,5838],[702,5939],[654,5957],[634,6024],[651,6060],[774,6122],[813,6086],[923,6086],[1031,6122],[1066,6189],[1191,6247],[1224,6283],[1319,6314],[1427,6225],[1404,6185],[1490,6125],[1557,6104],[1576,6138],[1646,6162],[1648,6114],[1700,6110]]]}},{type:"Feature",id:"ES.CR",properties:{"hc-group":"admin1","hc-middle-x":.58,"hc-middle-y":.53,"hc-key":"es-cr","hc-a2":"CR",labelrank:"3",hasc:"ES.CM","alt-name":null,"woe-id":"12602111",subregion:null,fips:"SP84","postal-code":"CR",name:"Ciudad Real",country:"Spain","type-en":"Autonomous Community",region:"Castilla-La Mancha",longitude:"-3.74727","woe-name":"Castilla-La Mancha",latitude:"38.8936","woe-label":"Castille la Mancha, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[2475,5174],[2370,5121],[2318,5148],[2357,5280],[2387,5320],[2458,5281],[2484,5237],[2475,5174]]],[[[4119,5068],[4136,5016],[4039,4873],[4068,4789],[4010,4674],[4018,4639],[4107,4607],[4119,4534],[4175,4498],[4206,4425],[4178,4349],[4138,4337],[4116,4241],[4015,4163],[3956,4177],[3914,4130],[3857,4185],[3821,4158],[3615,4174],[3546,4103],[3485,4110],[3464,4148],[3401,4098],[3257,4124],[3174,4077],[2939,4087],[2867,4099],[2858,4046],[2713,4095],[2658,4158],[2581,4202],[2485,4291],[2402,4317],[2358,4403],[2306,4403],[2232,4451],[2264,4458],[2336,4611],[2388,4615],[2392,4678],[2337,4693],[2305,4784],[2403,4785],[2377,4847],[2428,4944],[2549,4916],[2507,4971],[2470,5067],[2508,5096],[2536,5173],[2524,5207],[2585,5211],[2639,5300],[2673,5309],[2702,5243],[2742,5267],[2893,5233],[2933,5254],[2961,5337],[3057,5335],[3029,5279],[3041,5228],[2994,5211],[2975,5107],[3113,5100],[3117,5043],[3219,5002],[3269,5039],[3306,5012],[3352,5039],[3453,5044],[3581,5155],[3640,5161],[3667,5225],[3756,5229],[3790,5252],[3850,5204],[3925,5199],[3963,5228],[4046,5106],[4080,5151],[4119,5068]]]]}},{type:"Feature",id:"ES.BA",properties:{"hc-group":"admin1","hc-middle-x":.35,"hc-middle-y":.53,"hc-key":"es-ba","hc-a2":"BA",labelrank:"3",hasc:"ES.EX","alt-name":null,"woe-id":"12602128",subregi
18on:null,fips:"SP90","postal-code":"BA",name:"Badajoz",country:"Spain","type-en":"Autonomous Community",region:"Extremadura",longitude:"-6.26724","woe-name":"Extremadura",latitude:"38.5731","woe-label":"Extremadura, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[2318,5148],[2370,5121],[2475,5174],[2515,5195],[2524,5207],[2536,5173],[2508,5096],[2470,5067],[2507,4971],[2549,4916],[2428,4944],[2377,4847],[2403,4785],[2305,4784],[2337,4693],[2392,4678],[2388,4615],[2336,4611],[2264,4458],[2232,4451],[2131,4441],[2112,4387],[1960,4303],[1912,4232],[1786,4139],[1786,4046],[1822,3972],[1806,3862],[1770,3834],[1734,3837],[1675,3790],[1642,3831],[1674,3850],[1649,3893],[1558,3880],[1491,3818],[1494,3775],[1437,3698],[1322,3680],[1263,3640],[1120,3708],[1075,3766],[1014,3729],[942,3739],[883,3814],[746,3839],[759,3902],[647,3944],[633,3934],[570,3937],[505,3912],[456,4018],[338,4183],[304,4208],[343,4322],[380,4371],[369,4407],[390,4511],[492,4593],[571,4628],[565,4681],[645,4793],[627,4868],[595,4895],[490,4904],[492,4964],[431,4993],[428,5072],[466,5065],[506,5115],[505,5164],[578,5182],[576,5114],[620,5173],[600,5240],[729,5179],[802,5170],[838,5090],[795,5025],[819,4973],[891,4956],[909,4979],[1016,4949],[1145,4933],[1188,4955],[1192,4882],[1243,4863],[1329,4789],[1431,4888],[1437,4826],[1495,4866],[1509,4839],[1604,4902],[1701,4834],[1784,4868],[1767,4944],[1846,4964],[1904,4910],[1986,4982],[1994,5082],[2125,5065],[2171,5095],[2192,5157],[2226,5120],[2318,5148]]]}},{type:"Feature",id:"ES.TO",properties:{"hc-group":"admin1","hc-middle-x":.32,"hc-middle-y":.42,"hc-key":"es-to","hc-a2":"TO",labelrank:"3",hasc:"ES.CM","alt-name":null,"woe-id":"12602114",subregion:null,fips:"SP84","postal-code":"TO",name:"Toledo",country:"Spain","type-en":"Autonomous Community",region:"Castilla-La Mancha",longitude:"-3.95134","woe-name":"Castilla-La Mancha",latitude:"39.7401","woe-label":"Castille la Mancha, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[2524,5207],[2515,5195],[2475,5174],[2484,5237],[2458,5281],[2387,5320],[2357,5280],[2318,5148],[2242,5240],[2209,5256],[2115,5370],[2162,5497],[2142,5574],[2067,5532],[2021,5554],[2045,5648],[1967,5670],[1964,5711],[1994,5905],[2019,5916],[2169,5891],[2238,5947],[2293,5910],[2435,6030],[2442,6062],[2528,6077],[2540,6015],[2631,6009],[2662,5994],[2738,6036],[2794,6108],[2854,6016],[2952,6082],[2986,6048],[3040,6056],[3104,6011],[3253,5958],[3277,5933],[3396,5901],[3389,5828],[3272,5733],[3194,5705],[3256,5672],[3390,5773],[3496,5833],[3669,5839],[3750,5876],[3769,5853],[3787,5768],[3824,5770],[3802,5655],[3855,5613],[3905,5491],[3980,5408],[3963,5228],[3925,5199],[3850,5204],[3790,5252],[3756,5229],[3667,5225],[3640,5161],[3581,5155],[3453,5044],[3352,5039],[3306,5012],[3269,5039],[3219,5002],[3117,5043],[3113,5100],[2975,5107],[2994,5211],[3041,5228],[3029,5279],[3057,5335],[2961,5337],[2933,5254],[2893,5233],[2742,5267],[2702,5243],[2673,5309],[2639,5300],[2585,5211],[2524,5207]]]}},{type:"Feature",id:"ES.CO",properties:{"hc-group":"admin1","hc-middle-x":.43,"hc-middle-y":.47,"hc-key":"es-co","hc-a2":"CO",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602098",subregion:null,fips:"SP80","postal-code":"CO",name:"C\xf3rdoba",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-4.74788","woe-name":"Andaluc\xeda",latitude:"37.9699","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[3082,3045],[3018,3047],[2967,2999],[2906,2994],[2860,2897],[2867,2864],[2812,2819],[2768,2850],[2759,2916],[2707,2916],[2627,2847],[2532,2895],[2512,2985],[2485,3007],[2440,2973],[2391,3004],[2291,3177],[2305,3243],[2261,3356],[2224,3378],[2137,3332],[2086,3337],[2013,3291],[1926,3279],[1899,3345],[1986,3369],[1988,3448],[1904,3568],[1898,3626],[1852,3670],[1838,3735],[1770,3834],[1806,3862],[1822,3972],[1786,4046],[1786,4139],[1912,4232],[1960,4303],[2112,4387],[2131,4441],[2232,4451],[2306,4403],[2358,4403],[2402,4317],[2485,4291],[2581,4202],[2658,4158],[2713,4095],[2858,4046],[2886,4032],[2921,3902],[2946,3866],[2848,3680],[2867,3638],[2847,3487],[2891,3439],[2900,3377],[2940,3357],[2905,3282],[2991,3189],[3010,3134],[3082,3045]]]}},{type:"Feature",id:"ES.MA",properties:{"hc-group":"admin1","hc-middle-x":.41,"hc-middle-y":.5,"hc-key":"es-ma","hc-a2":"MA",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602102",subregi
18on:null,fips:"SP80","postal-code":"MA",name:"M\xe1laga",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-4.68606","woe-name":"Andaluc\xeda",latitude:"36.838","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[2532,2895],[2627,2847],[2707,2916],[2759,2916],[2768,2850],[2812,2819],[2861,2648],[2955,2567],[3186,2466],[3227,2468],[3277,2412],[3269,2342],[3217,2359],[3113,2333],[3032,2356],[2889,2319],[2738,2332],[2712,2318],[2633,2182],[2579,2175],[2556,2130],[2464,2091],[2311,2107],[2232,2056],[2174,2052],[2067,2011],[2008,1891],[1952,1922],[1924,2037],[1852,2133],[1741,2104],[1724,2152],[1795,2173],[1851,2233],[1942,2282],[1980,2391],[1949,2465],[2011,2500],[2068,2451],[2122,2466],[2159,2518],[2153,2584],[2115,2635],[2308,2747],[2274,2804],[2341,2803],[2373,2829],[2410,2794],[2459,2817],[2476,2900],[2532,2895]]]}},{type:"Feature",id:"ES.H",properties:{"hc-group":"admin1","hc-middle-x":.39,"hc-middle-y":.37,"hc-key":"es-h","hc-a2":"HU",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602100",subregion:null,fips:"SP80","postal-code":"H",name:"Huelva",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-6.90248","woe-name":"Andaluc\xeda",latitude:"37.6217","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",
19coordinates:[[[1100,2554],[1091,2465],[1056,2453],[966,2616],[764,2772],[641,2845],[622,2897],[680,2979],[585,2918],[612,2852],[468,2912],[481,2893],[203,2890],[186,3095],[165,3209],[123,3288],[175,3359],[218,3478],[297,3539],[358,3681],[356,3711],[457,3732],[483,3772],[565,3751],[633,3934],[647,3944],[759,3902],[746,3839],[883,3814],[942,3739],[1014,3729],[1075,3766],[1120,3708],[1263,3640],[1309,3605],[1291,3543],[1308,3497],[1257,3497],[1208,3422],[1151,3459],[1017,3421],[962,3325],[1076,3292],[1069,3262],[1137,3115],[1095,3074],[1080,3001],[1107,2975],[1095,2775],[1071,2733],[1090,2639],[1068,2586],[1100,2554]]]}},{type:"Feature",id:"ES.HU",properties:{"hc-group":"admin1","hc-middle-x":.54,"hc-middle-y":.54,"hc-key":"es-hu","hc-a2":"HU",labelrank:"3",hasc:"ES.AR","alt-name":null,"woe-id":"12602105",subregion:null,fips:"SP81","postal-code":"HU",name:"Huesca",country:"Spain","type-en":"Autonomous Community",region:"Arag\xf3n",longitude:"-0.012808","woe-name":"Arag\xf3n",latitude:"42.1863","woe-label":"Aragon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[5627,8896],[5640,8853],[5705,8826],[5758,8771],[5795,8785],[5881,8770],[5958,8828],[6028,8771],[6085,8783],[6121,8701],[6185,8670],[6345,8721],[6399,8706],[6430,8663],[6489,8718],[6518,8685],[6731,8707],[6769,8643],[6814,8620],[6813,8577],[6771,8485],[6817,8343],[6791,8101],[6750,7964],[6700,7918],[6721,7838],[6576,7703],[6519,7621],[6551,7539],[6598,7535],[6614,7487],[6544,7405],[6539,7335],[6461,7356],[6401,7330],[6358,7269],[6217,7287],[6186,7394],[6125,7504],[6059,7497],[5984,7556],[5958,7606],[5871,7656],[5839,7765],[5772,7814],[5722,7883],[5635,7882],[5563,7953],[5592,8013],[5623,7988],[5656,8034],[5641,8200],[5658,8234],[5650,8323],[5603,8225],[5511,8210],[5573,8314],[5569,8355],[5525,8380],[5514,8570],[5528,8630],[5510,8707],[5545,8755],[5581,8880],[5627,8896]]]}},{type:"Feature",id:"ES.C",properties:{"hc-group":"admin1","hc-middle-x":.49,"hc-middle-y":.55,"hc-key":"es-c","hc-a2":"LC",labelrank:"3",hasc:"ES.GA","alt-name":null,"woe-id":"12602130",subregion:null,fips:"SP91","postal-code":"C",name:"La Coru\xf1a",country:"Spain","type-en":"Autonomous Community",region:"Galicia",longitude:"-8.397360000000001","woe-name":"Galicia",latitude:"43.1026","woe-label":"Galicia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[-579,8727],[-771,8622],[-807,8573],[-849,8645],[-810,8761],[-721,8840],[-819,8853],[-847,8813],[-885,8876],[-877,8987],[-945,9015],[-983,8965],[-999,8999],[-961,9097],[-981,9138],[-929,9198],[-876,9211],[-926,9241],[-862,9286],[-722,9305],[-741,9365],[-625,9417],[-513,9363],[-434,9391],[-408,9378],[-316,9438],[-273,9447],[-249,9407],[-228,9466],[-180,9443],[-134,9380],[-132,9455],[-191,9524],[-113,9530],[-103,9552],[-226,9535],[-205,9635],[-143,9641],[-27,9721],[-4,9776],[79,9794],[136,9826],[159,9770],[247,9807],[286,9851],[275,9786],[223,9611],[197,9491],[152,9443],[117,9451],[108,9381],[73,9339],[45,9224],[68,9120],[59,9078],[71,8955],[-2,8866],[-41,8853],[-137,8877],[-228,8847],[-263,8873],[-266,8819],[-334,8786],[-456,8781],[-579,8727]]]}},{type:"Feature",id:"ES.PO",properties:{"hc-group":"admin1","hc-middle-x":.41,"hc-middle-y":.31,"hc-key":"es-po","hc-a2":"PO",labelrank:"3",hasc:"ES.GA","alt-name":null,"woe-id":"12602133",subregi
19on:null,fips:"SP91","postal-code":"PO",name:"Pontevedra",country:"Spain","type-en":"Autonomous Community",region:"Galicia",longitude:"-8.499800000000001","woe-name":"Galicia",latitude:"42.5257","woe-label":"Galicia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[-212,8142],[-312,8092],[-434,8079],[-535,8051],[-572,7999],[-637,7970],[-731,7891],[-741,7911],[-745,8116],[-687,8143],[-701,8176],[-638,8238],[-519,8315],[-514,8363],[-558,8314],[-655,8277],[-711,8278],[-677,8366],[-635,8362],[-541,8448],[-616,8432],[-701,8445],[-750,8515],[-707,8531],[-667,8492],[-657,8606],[-618,8641],[-579,8727],[-456,8781],[-334,8786],[-266,8819],[-263,8873],[-228,8847],[-137,8877],[-41,8853],[-2,8866],[25,8858],[11,8794],[84,8728],[70,8637],[38,8578],[-32,8543],[-132,8555],[-152,8581],[-257,8500],[-286,8504],[-276,8364],[-234,8314],[-247,8276],[-218,8225],[-162,8237],[-180,8161],[-212,8142]]]}},{type:"Feature",id:"ES.AL",properties:{"hc-group":"admin1","hc-middle-x":.54,"hc-middle-y":.62,"hc-key":"es-al","hc-a2":"AL",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602095",subregion:null,fips:"SP80","postal-code":"AL",name:"Almer\xeda",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-2.22473","woe-name":"Andaluc\xeda",latitude:"37.1563","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[5066,3042],[4926,2856],[4893,2717],[4852,2623],[4859,2583],[4772,2515],[4764,2472],[4670,2354],[4605,2354],[4536,2430],[4469,2457],[4287,2428],[4254,2340],[4219,2304],[4136,2288],[4058,2308],[3985,2362],[3939,2346],[3820,2355],[3810,2399],[3903,2459],[3870,2533],[3930,2592],[3913,2696],[3973,2743],[4023,2813],[4043,2899],[4089,2908],[4130,2870],[4212,2849],[4206,2926],[4225,3030],[4351,3143],[4461,3180],[4445,3274],[4495,3285],[4489,3365],[4521,3435],[4528,3560],[4579,3596],[4611,3576],[4769,3552],[4754,3465],[4759,3323],[4899,3116],[4989,3101],[5066,3042]]]}},{type:"Feature",id:"ES.B",properties:{"hc-group":"admin1","hc-middle-x":.44,"hc-middle-y":.52,"hc-key":"es-b","hc-a2":"BA",labelrank:"3",hasc:"ES.CT","alt-name":null,"woe-id":"12602124",subregion:null,fips:"SP86","postal-code":"B",name:"Barcelona",country:"Spain","type-en":"Autonomous Community",region:"Catalu\xf1a",longitude:"2.00777","woe-name":"Catalu\xf1a",latitude:"41.6575","woe-label":"Catalonia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[8454,7701],[8203,7567],[8087,7485],[7966,7306],[7913,7272],[7724,7221],[7572,7164],[7529,7206],[7553,7233],[7510,7344],[7436,7404],[7442,7457],[7378,7485],[7395,7557],[7365,7556],[7345,7584],[7397,7630],[7368,7693],[7366,7775],[7485,7767],[7537,7834],[7521,7904],[7556,8014],[7594,8218],[7560,8241],[7574,8322],[7672,8347],[7727,8363],[7828,8343],[7821,8269],[7858,8180],[7909,8165],[8026,8198],[8050,8167],[8095,8179],[8209,8086],[8165,8002],[8172,7937],[8089,7933],[8077,7887],[8115,7839],[8173,7848],[8266,7766],[8386,7805],[8423,7794],[8454,7701]]]}},{type:"Feature",id:"ES.CA",properties:{"hc-group":"admin1","hc-middle-x":.52,"hc-middle-y":.54,"hc-key":"es-ca","hc-a2":"CA",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602096",subregion:null,fips:"SP80","postal-code":"CA",name:"C\xe1diz",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-5.82488","woe-name":"Andaluc\xeda",latitude:"36.4828","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[2008,1891],[1937,1777],[1932,1728],[1859,1770],[1839,1641],[1696,1591],[1681,1623],[1540,1678],[1438,1784],[1336,1792],[1281,1890],[1235,1916],[1131,2165],[1178,2096],[1179,2204],[1130,2249],[1045,2273],[1016,2394],[1101,2463],[1100,2532],[1191,2549],[1297,2498],[1478,2477],[1500,2535],[1552,2558],[1627,2556],[1669,2603],[1737,2556],[1791,2572],[1823,2678],[1876,2662],[1876,2583],[1969,2651],[2049,2579],[2115,2635],[2153,2584],[2159,2518],[2122,2466],[2068,2451],[2011,2500],[1949,2465],[1980,2391],[1942,2282],[1851,2233],[1795,2173],[1724,2152],[1741,2104],[1852,2133],[1924,2037],[1952,1922],[2008,1891]]]}},{type:"Feature",id:"ES.O",properties:{"hc-group":"admin1","hc-middle-x":.5,"hc-middle-y":.46,"hc-key":"es-o","hc-a2":"AS",labelrank:"3",hasc:"ES.AS","alt-name":null,"woe-id":"12578027",subregi
19on:null,fips:"SP95","postal-code":"O",name:"Asturias",country:"Spain","type-en":"Autonomous Community",region:"Asturias",longitude:"-5.84196","woe-name":"Principado de Asturias",latitude:"43.3261","woe-label":"Asturias, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[762,9504],[800,9580],[978,9586],[1029,9572],[1072,9594],[1177,9557],[1328,9575],[1399,9601],[1516,9570],[1552,9589],[1641,9587],[1642,9638],[1685,9665],[1738,9636],[1793,9563],[1857,9547],[2011,9550],[2119,9519],[2199,9471],[2372,9448],[2539,9390],[2709,9373],[2690,9315],[2701,9251],[2647,9263],[2552,9229],[2530,9152],[2461,9149],[2403,9201],[2276,9135],[2239,9068],[2051,9053],[2005,9012],[1910,8982],[1814,9012],[1764,9005],[1725,8937],[1673,8935],[1590,8985],[1565,9033],[1495,9038],[1450,8999],[1400,9015],[1373,8988],[1273,9030],[1233,8982],[1185,8970],[1205,8926],[1116,8893],[994,8900],[953,8874],[909,8898],[904,8948],[823,9017],[789,9012],[825,9072],[914,9114],[890,9173],[829,9130],[814,9197],[750,9244],[736,9308],[666,9405],[673,9450],[710,9448],[762,9504]]]}},{type:"Feature",id:"ES.CS",properties:{"hc-group":"admin1","hc-middle-x":.52,"hc-middle-y":.54,"hc-key":"es-cs","hc-a2":"CS",labelrank:"6",hasc:"ES.VC","alt-name":null,"woe-id":"12602138",subregion:null,fips:"SP89","postal-code":"CS",name:"Castell\xf3n",country:"Spain","type-en":"Autonomous Community",region:"Valenciana",longitude:"-0.097511","woe-name":"Comunidad Valenciana",latitude:"40.222","woe-label":"Valencia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[6730,6416],[6602,6156],[6491,6031],[6446,5932],[6384,5879],[6333,5772],[6265,5681],[6187,5538],[6061,5619],[6011,5563],[5955,5542],[5908,5612],[5840,5557],[5817,5569],[5807,5651],[5742,5633],[5696,5691],[5655,5762],[5726,5865],[5832,5900],[5883,6080],[5965,6080],[6004,6142],[6081,6219],[6044,6283],[6089,6331],[6070,6472],[6005,6483],[6001,6527],[6059,6532],[6114,6568],[6121,6621],[6166,6659],[6241,6611],[6315,6609],[6338,6578],[6439,6619],[6476,6620],[6533,6573],[6540,6519],[6617,6493],[6675,6438],[6730,6416]]]}},{type:"Feature",id:"ES.J",properties:{"hc-group":"admin1","hc-middle-x":.45,"hc-middle-y":.46,"hc-key":"es-j","hc-a2":"JA",labelrank:"3",hasc:"ES.AN","alt-name":null,"woe-id":"12602101",subregion:null,fips:"SP80","postal-code":"J",name:"Ja\xe9n",country:"Spain","type-en":"Autonomous Community",region:"Andaluc\xeda",longitude:"-3.43703","woe-name":"Andaluc\xeda",latitude:"37.9829","woe-label":"Andalusia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[4295,3766],[4249,3746],[4254,3686],[4194,3639],[4169,3651],[4098,3586],[4013,3440],[4003,3325],[3942,3290],[3936,3257],[3846,3251],[3765,3292],[3711,3289],[3658,3231],[3566,3220],[3497,3268],[3396,3179],[3258,3112],[3216,3028],[3124,3020],[3082,3045],[3010,3134],[2991,3189],[2905,3282],[2940,3357],[2900,3377],[2891,3439],[2847,3487],[2867,3638],[2848,3680],[2946,3866],[2921,3902],[2886,4032],[2858,4046],[2867,4099],[2939,4087],[3174,4077],[3257,4124],[3401,4098],[3464,4148],[3485,4110],[3546,4103],[3615,4174],[3821,4158],[3857,4185],[3914,4130],[3956,4177],[4015,4163],[4116,4241],[4184,4207],[4269,4208],[4268,4138],[4339,4102],[4355,3996],[4390,3955],[4379,3880],[4295,3766]]]}},{type:"Feature",id:"ES.SO",properties:{"hc-group":"admin1","hc-middle-x":.51,"hc-middle-y":.51,"hc-key":"es-so","hc-a2":"SO",labelrank:"3",hasc:"ES.CL","alt-name":null,"woe-id":"12602121",subregion:null,fips:"SP85","postal-code":"SO",name:"Soria",country:"Spain","type-en":"Autonomous Community",region:"Castilla y Le\xf3n",longitude:"-2.55925","woe-name":"Castilla y Le\xf3n",latitude:"41.6463","woe-label":"Castille and Leon, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[3957,7917],[4033,7933],[4053,8e3],[4107,8014],[4088,7917],[4144,7895],[4222,7895],[4269,8007],[4397,8047],[4449,8035],[4478,7993],[4575,7996],[4554,7968],[4586,7862],[4735,7825],[4786,7857],[4821,7749],[4798,7684],[4848,7610],[4832,7558],[4741,7485],[4690,7476],[4727,7287],[4674,7257],[4605,7313],[4554,7210],[4570,7050],[4647,7006],[4645,6937],[4588,6969],[4461,6915],[4365,6911],[4318,6933],[4266,7007],[4223,6999],[4222,7068],[4108,7127],[4016,7121],[3963,7178],[3906,7140],[3825,7133],[3734,7154],[3627,7233],[3614,7322],[3554,7376],[3475,7405],[3461,7445],[3472,7476],[3526,7457],[3608,7613],[3669,7649],[3662,7738],[3688,7747],[3753,7672],[3828,7768],[3874,7772],[3957,7917]]]}},{type:"Feature",id:"ES.LU",properties:{"hc-group":"admin1","hc-middle-x":.46,"hc-middle-y":.61,"hc-key":"es-lu","hc-a2":"LU",labelrank:"3",hasc:"ES.GA","alt-name":null,"woe-id":"12602131",subregi
19on:null,fips:"SP91","postal-code":"LU",name:"Lugo",country:"Spain","type-en":"Autonomous Community",region:"Galicia",longitude:"-7.44266","woe-name":"Galicia",latitude:"42.9467","woe-label":"Galicia, ES, Spain",type:"Comunidad Aut\xf3noma"},geometry:{type:"Polygon",coordinates:[[[909,8898],[878,8786],[834,8734],[743,8683],[754,8614],[705,8471],[639,8393],[595,8287],[557,8374],[431,8407],[349,8371],[274,8381],[61,8500],[38,8578],[70,8637],[84,8728],[11,8794],[25,8858],[-2,8866],[71,8955],[59,9078],[68,9120],[45,9224],[73,9339],[108,9381],[117,9451],[152,9443],[197,9491],[223,9611],[275,9786],[319,9806],[342,9740],[394,9781],[525,9721],[570,9633],[625,9599],[741,9594],[776,9577],[762,9504],[710,9448],[673,9450],[666,9405],[736,9308],[750,9244],[814,9197],[829,9130],[890,9173],[914,9114],[825,9072],[789,9012],[823,9017],[904,8948],[909,8898]]]}},{type:"Feature",id:"ES.TF",properties:{"hc-group":"admin1","hc-middle-x":.75,"hc-middle-y":.66,"hc-key":"es-tf","hc-a2":"TF",labelrank:"20",hasc:"ES.CN","alt-name":null,"woe-id":"12602109",subregion:null,fips:null,"postal-code":"TF",name:"Santa Cruz de Tenerife",country:"Spain","type-en":"Autonomous Community",region:"Canary Is.",longitude:"-16.6144","woe-name":"Santa Cruz de Tenerife",latitude:"28.2566","woe-label":null,type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[6869,2391],[6848,2368],[6846,2360],[6845,2357],[6838,2355],[6835,2350],[6828,2345],[6826,2341],[6823,2331],[6819,2326],[6813,2327],[6805,2333],[6800,2341],[6797,2348],[6793,2353],[6763,2362],[6756,2367],[6751,2374],[6751,2391],[6763,2394],[6780,2390],[6796,2383],[6803,2386],[6821,2399],[6825,2403],[6828,2409],[6837,2412],[6853,2419],[6861,2416],[6867,2411],[6872,2404],[6872,2398],[6869,2391]]],[[[7161,2452],[7150,2450],[7140,2454],[7121,2471],[7111,2493],[7113,2510],[7118,2527],[7132,2541],[7153,2543],[7171,2535],[7187,2521],[7207,2501],[7210,2490],[7211,2480],[7203,2471],[7194,2467],[7180,2458],[7171,2453],[7161,2452]]],[[[7640,2637],[7634,2625],[7621,2618],[7588,2606],[7580,2594],[7557,2577],[7545,2569],[7537,2567],[7531,2564],[7526,2556],[7524,2546],[7526,2533],[7524,2529],[7515,2522],[7511,2512],[7494,2489],[7488,2470],[7486,2462],[7472,2448],[7442,2425],[7430,2411],[7417,2416],[7375,2406],[7369,2409],[7365,2416],[7366,2425],[7360,2431],[7359,2435],[7360,2447],[7355,2455],[7342,2473],[7339,2480],[7338,2491],[7333,2499],[7327,2506],[7324,2513],[7324,2534],[7324,2538],[7319,2548],[7316,2559],[7305,2575],[7302,2585],[7313,2590],[7336,2597],[7344,2592],[7352,2584],[7362,2581],[7374,2583],[7384,2586],[7407,2591],[7415,2588],[7439,2586],[7449,2591],[7459,2591],[7464,2592],[7472,2592],[7481,2597],[7512,2618],[7515,2621],[7519,2630],[7538,2638],[7548,2639],[7556,2641],[7559,2649],[7566,2645],[7605,2639],[7631,2644],[7640,2637]]],[[[6953,2866],[6963,2862],[6980,2866],[6987,2862],[6993,2855],[6996,2849],[6994,2840],[6995,2829],[6997,2820],[7004,2815],[7003,2807],[6989,2795],[6982,2785],[6986,2759],[6981,2751],[6977,2739],[6965,2728],[6954,2711],[6944,2697],[6939,2688],[6937,2688],[6935,2693],[6927,2699],[6925,2709],[6926,2732],[6922,2738],[6920,2746],[6914,2758],[6913,2769],[6902,2795],[6902,2807],[6901,2822],[6895,2828],[6892,2834],[6896,2847],[6909,2861],[6925,2871],[6936,2876],[6944,2869],[6953,2866]]]]}},{type:"Feature",id:"ES.GC",properties:{"hc-group":"admin1","hc-middle-x":.73,"hc-middle-y":.64,"hc-key":"es-gc","hc-a2":"GC",labelrank:"20",hasc:"ES.CN","alt-name":null,"woe-id":"12602108",subregion:null,fips:null,"postal-code":"GC",name:"Las Palmas",country:"Spain","type-en":"Autonomous Community",region:"Canary Is.",longitude:"-15.6013","woe-name":"Palmas",latitude:"27.9463","woe-label":null,type:"Comunidad Aut\xf3noma"},geometry:{type:"MultiPolygon",coordinates:[[[[7898,2401],[7896,2389],[7896,2370],[7898,2355],[7901,2349],[7910,2341],[7911,2338],[7909,2330],[7904,2323],[7902,2314],[7907,2306],[7906,2303],[7902,2302],[7898,2298],[7893,2289],[7896,2282],[7897,2273],[7896,2266],[7888,2264],[7883,2261],[7867,2247],[7861,2242],[7831,2237],[7824,2235],[7812,2224],[7806,2223],[7795,2232],[7778,2235],[7770,2238],[7764,2242],[7745,2264],[7741,2272],[7733,2278],[7728,2285],[7720,2313],[7719,2322],[7722,2331],[772
191,2344],[7723,2351],[7726,2356],[7730,2360],[7747,2366],[7755,2371],[7766,2379],[7775,2390],[7774,2401],[7779,2405],[7782,2413],[7783,2422],[7781,2429],[7790,2428],[7797,2423],[7803,2424],[7824,2414],[7855,2410],[7880,2400],[7890,2402],[7890,2418],[7903,2418],[7905,2411],[7905,2407],[7901,2406],[7898,2401]]],[[[8374,2335],[8361,2322],[8348,2310],[8330,2304],[8319,2305],[8304,2315],[8296,2318],[8269,2319],[8264,2322],[8266,2323],[8270,2334],[8273,2336],[8286,2332],[8294,2332],[8310,2335],[8335,2343],[8366,2358],[8380,2369],[8387,2376],[8393,2383],[8396,2391],[8401,2414],[8406,2422],[8416,2435],[8430,2466],[8433,2471],[8439,2474],[8453,2493],[8465,2514],[8484,2536],[8491,2558],[8499,2572],[8503,2588],[8505,2594],[8510,2598],[8517,2601],[8533,2606],[8548,2606],[8562,2600],[8572,2586],[8575,2570],[8574,2549],[8566,2510],[8562,2501],[8553,2484],[8551,2478],[8549,2463],[8549,2458],[8552,2448],[8553,2444],[8550,2440],[8542,2434],[8540,2432],[8537,2419],[8529,2410],[8524,2403],[8518,2388],[8507,2373],[8493,2368],[8449,2366],[8429,2362],[8415,2354],[8398,2352],[8389,2348],[8374,2335]]],[[[8746,2767],[8744,2760],[8746,2747],[8746,2738],[8739,2726],[8737,2710],[8730,2700],[8717,2691],[8703,2685],[8683,2683],[8675,2675],[8670,2674],[8664,2674],[8654,2673],[8648,2673],[8633,2671],[8622,2664],[8612,2653],[8603,2640],[8601,2640],[8597,2647],[8589,2650],[8570,2653],[8567,2656],[8565,2667],[8566,2669],[8571,2670],[8575,2673],[8580,2681],[8582,2688],[8586,2710],[8588,2716],[8604,2737],[8612,2744],[8618,2747],[8625,2749],[8633,2750],[8642,2750],[8650,2751],[8665,2761],[8674,2765],[8681,2767],[8688,2767],[8708,2765],[8714,2766],[8719,2771],[8726,2782],[8732,2797],[8736,2804],[8741,2810],[8749,2811],[8756,2806],[8766,2793],[8761,2784],[8759,2777],[8755,2771],[8746,2767]]],[[[8738,2812],[8727,2806],[8717,2808],[8718,2812],[8725,2818],[8729,2827],[8734,2834],[8742,2831],[8745,2822],[8738,2812]]]]}},{type:"Feature",properties:{"hc-group":"__separator_lines__"},geometry:{type:"LineString",coordinates:[[6385,2187],[6794,3142],[8989,3142]]}}]};var NUBE=function(){var t={color:function(t,e){return e>90?"#000000":e>80?"#112114":e>70?"#233526":e>60?"#344038":e>50?"#465d4b":e>40?"#57715d":e>30?"#688570":e>20?"#7a9982":e>10?"#8cae94":"#9dc2a7"},weightFactor:function(t){return.65*t+6},fontFamily:"Frutiger",rotateRatio:.15,minRotation:2.5*Math.PI,maxRotation:2.5*Math.PI,shape:"diamond",gridSize:4};return{draw:function(e,i){var n=document.getElementById(e);n&&(t.list=i,WordCloud(n,t))},draw_ie:function(t,e){$("#"+t).jQCloud(e)}}}();!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.returnExports=e()}(this,function(){function t(t){return(t=+t)!=t?t=0:0!==t&&t!==1/0&&t!==-1/0&&(t=(t>0||-1)*Math.floor(Math.abs(t))),t}function e(t){var e=typeof t;return null===t||"undefined"===e||"boolean"===e||"number"===e||"string"===e}function i(t){var i,n,o;if(e(t))return t;if(n=t.valueOf,m(n)&&e(i=n.call(t)))return i;if(o=t.toString,m(o)&&e(i=o.call(t)))return i;throw new TypeError}function n(){}var o,s=Array.prototype,r=Object.prototype,a=Function.prototype,l=String.prototype,c=Number.prototype,h=s.slice,u=s.splice,d=(s.push,s.unshift),p=a.call,f=r.toString,m=function(t){return"[object Function]"===r.toString.call(t)},g=function(t){return"[object RegExp]"===r.toString.call(t)},v=function(t){return"[object Array]"===f.call(t)},y=function(t){return"[object String]"===f.call(t)},_=function(t){var e="[object Arguments]"===f.call(t);return e||(e=!v(t)&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&m(t.callee)),e},b=Object.defineProperty&&function(){try{return Object.defineProperty({},"x",{}),!0}catch(t){return!1}}();o=b?function(t,e,i,n){!n&&e in t||Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:i})}:function(t,e,i,n){!n&&e in t||(t[e]=i)};var x=function(t,e,i){for(var n in e)r.hasOwnProperty.call(e,n)&&o(t,n,e[n],i)},w=function(t){if(null==t)throw new TypeError("can't convert "+t+" to object");return Object(t)},k=function(t){return t>>>0};x(a,{bind:function(t){var e=this;if(!m(e))throw new TypeError("Function.prototype.bind called on incompatible "+e);
19for(var i=h.call(arguments,1),o=function(){if(this instanceof l){var n=e.apply(this,i.concat(h.call(arguments)));return Object(n)===n?n:this}return e.apply(t,i.concat(h.call(arguments)))},s=Math.max(0,e.length-i.length),r=[],a=0;a<s;a++)r.push("$"+a);var l=Function("binder","return function ("+r.join(",")+"){return binder.apply(this,arguments)}")(o);return e.prototype&&(n.prototype=e.prototype,l.prototype=new n,n.prototype=null),l}});var C=p.bind(r.hasOwnProperty);C(r,"__defineGetter__")&&(p.bind(r.__defineGetter__),p.bind(r.__defineSetter__),p.bind(r.__lookupGetter__),p.bind(r.__lookupSetter__));var S,P,T=(P=(S=[1,2]).splice(),2===S.length&&v(P)&&0===P.length);x(s,{splice:function(t,e){return 0===arguments.length?[]:u.apply(this,arguments)}},T);var E=function(){var t={};return s.splice.call(t,0,0,1),1===t.length}();x(s,{splice:function(e,i){if(0===arguments.length)return[];var n=arguments;return this.length=Math.max(t(this.length),0),arguments.length>0&&"number"!=typeof i&&((n=h.call(arguments)).length<2?n.push(this.length-e):n[1]=t(i)),u.apply(this,n)}},!E);var A=1!==[].unshift(0);x(s,{unshift:function(){return d.apply(this,arguments),this.length}},A),x(Array,{isArray:v});var M=Object("a"),L="a"!==M[0]||!(0 in M),D=function(t){var e=!0,i=!0;return t&&(t.call("foo",function(t,i,n){"object"!=typeof n&&(e=!1)}),t.call([1],function(){"use strict";i="string"==typeof this},"x")),!!t&&e&&i};x(s,{forEach:function(t){var e=w(this),i=L&&y(this)?this.split(""):e,n=arguments[1],o=-1,s=i.length>>>0;if(!m(t))throw new TypeError;for(;++o<s;)o in i&&t.call(n,i[o],o,e)}},!D(s.forEach)),x(s,{map:function(t){var e=w(this),i=L&&y(this)?this.split(""):e,n=i.length>>>0,o=Array(n),s=arguments[1];if(!m(t))throw new TypeError(t+" is not a function");for(var r=0;r<n;r++)r in i&&(o[r]=t.call(s,i[r],r,e));return o}},!D(s.map)),x(s,{filter:function(t){var e,i=w(this),n=L&&y(this)?this.split(""):i,o=n.length>>>0,s=[],r=arguments[1];if(!m(t))throw new TypeError(t+" is not a function");for(var a=0;a<o;a++)a in n&&(e=n[a],t.call(r,e,a,i)&&s.push(e));return s}},!D(s.filter)),x(s,{every:function(t){var e=w(this),i=L&&y(this)?this.split(""):e,n=i.length>>>0,o=arguments[1];if(!m(t))throw new TypeError(t+" is not a function");for(var s=0;s<n;s++)if(s in i&&!t.call(o,i[s],s,e))return!1;return!0}},!D(s.every)),x(s,{some:function(t){var e=w(this),i=L&&y(this)?this.split(""):e,n=i.length>>>0,o=arguments[1];if(!m(t))throw new TypeError(t+" is not a function");for(var s=0;s<n;s++)if(s in i&&t.call(o,i[s],s,e))return!0;return!1}},!D(s.some));var I=!1;s.reduce&&(I="object"==typeof s.reduce.call("es5",function(t,e,i,n){return n})),x(s,{reduce:function(t){var e=w(this),i=L&&y(this)?this.split(""):e,n=i.length>>>0;if(!m(t))throw new TypeError(t+" is not a function");if(!n&&1===arguments.length)throw new TypeError("reduce of empty array with no initial value");var o,s=0;if(arguments.length>=2)o=arguments[1];else for(;;){if(s in i){o=i[s++];break}if(++s>=n)throw new TypeError("reduce of empty array with no initial value")}for(;s<n;s++)s in i&&(o=t.call(void 0,o,i[s],s,e));return o}},!I);var N=!1;s.reduceRight&&(N="object"==typeof s.reduceRight.call("es5",function(t,e,i,n){return n})),x(s,{reduceRight:function(t){var e=w(this),i=L&&y(this)?this.split(""):e,n=i.length>>>0;if(!m(t))throw new TypeError(t+" is not a function");if(!n&&1===arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var o,s=n-1;if(arguments.length>=2)o=arguments[1];else for(;;){if(s in i){o=i[s--];break}if(--s<0)throw new TypeError("reduceRight of empty array with no initial value")}if(s<0)return o;do{s in i&&(o=t.call(void 0,o,i[s],s,e))}while(s--);return o}},!N);var R=Array.prototype.indexOf&&-1!==[0,1].indexOf(1,2);x(s,{indexOf:function(e){var i=L&&y(this)?this.split(""):w(this),n=i.length>>>0;if(!n)return-1;var o=0;for(arguments.length>1&&(o=t(arguments[1])),o=o>=0?o:Math.max(0,n+o);o<n;o++)if(o in i&&i[o]===e)return o;return-1}},R);var O=Array.prototype.lastIndexOf&&-1!==[0,1].lastIndexOf(0,-3);x(s,{lastIndexOf:function(e){var i=L&&y(this)?this.split(""):w(this),n=i.length>>>0;if(!n)return-1;var o=n-1;for(arguments.length>1&&(o=Math.min(o,t(arguments[1]))),o=o>=0?o:n-Math.abs(o);o>=0;o--)if(o in i&&e===i[o])return o;return-1}},O);var $=!{toString:null}.propertyIsEnumerable("toString"),F=function(){}
19.propertyIsEnumerable("prototype"),z=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],j=z.length;x(Object,{keys:function(t){var e=m(t),i=_(t),n=null!==t&&"object"==typeof t,o=n&&y(t);if(!n&&!e&&!i)throw new TypeError("Object.keys called on a non-object");var s=[],r=F&&e;if(o||i)for(var a=0;a<t.length;++a)s.push(String(a));else for(var l in t)r&&"prototype"===l||!C(t,l)||s.push(String(l));if($)for(var c=t.constructor,h=c&&c.prototype===t,u=0;u<j;u++){var d=z[u];h&&"constructor"===d||!C(t,d)||s.push(d)}return s}});var B=Object.keys&&function(){return 2===Object.keys(arguments).length}(1,2),H=Object.keys;x(Object,{keys:function(t){return _(t)?H(s.slice.call(t)):H(t)}},!B);var W=-621987552e5,U="-000001",Y=Date.prototype.toISOString&&-1===new Date(W).toISOString().indexOf(U);x(Date.prototype,{toISOString:function(){var t,e,i,n,o;if(!isFinite(this))throw new RangeError("Date.prototype.toISOString called on non-finite value.");for(n=this.getUTCFullYear(),o=this.getUTCMonth(),n+=Math.floor(o/12),t=[(o=(o%12+12)%12)+1,this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds()],n=(n<0?"-":n>9999?"+":"")+("00000"+Math.abs(n)).slice(0<=n&&n<=9999?-4:-6),e=t.length;e--;)(i=t[e])<10&&(t[e]="0"+i);return n+"-"+t.slice(0,2).join("-")+"T"+t.slice(2).join(":")+"."+("000"+this.getUTCMilliseconds()).slice(-3)+"Z"}},Y);var V=!1;try{V=Date.prototype.toJSON&&null===new Date(NaN).toJSON()&&-1!==new Date(W).toJSON().indexOf(U)&&Date.prototype.toJSON.call({toISOString:function(){return!0}})}catch(t){}V||(Date.prototype.toJSON=function(){var t,e=Object(this),n=i(e);if("number"==typeof n&&!isFinite(n))return null;if("function"!=typeof(t=e.toISOString))throw new TypeError("toISOString property is not callable");return t.call(e)});var q=1e15===Date.parse("+033658-09-27T01:46:40.000Z"),Z=!isNaN(Date.parse("2012-04-04T24:00:00.500Z"))||!isNaN(Date.parse("2012-11-31T23:59:59.000Z")),G=isNaN(Date.parse("2000-01-01T00:00:00.000Z"));Date.parse&&!G&&!Z&&q||(Date=function(t){function e(i,n,o,s,r,a,l){var c=arguments.length;if(this instanceof t){var h=1===c&&String(i)===i?new t(e.parse(i)):c>=7?new t(i,n,o,s,r,a,l):c>=6?new t(i,n,o,s,r,a):c>=5?new t(i,n,o,s,r):c>=4?new t(i,n,o,s):c>=3?new t(i,n,o):c>=2?new t(i,n):c>=1?new t(i):new t;return h.constructor=e,h}return t.apply(this,arguments)}function i(t,e){var i=e>1?1:0;return s[e]+Math.floor((t-1969+i)/4)-Math.floor((t-1901+i)/100)+Math.floor((t-1601+i)/400)+365*(t-1970)}function n(e){return Number(new t(1970,0,1,0,0,0,e))}var o=new RegExp("^(\\d{4}|[+-]\\d{6})(?:-(\\d{2})(?:-(\\d{2})(?:T(\\d{2}):(\\d{2})(?::(\\d{2})(?:(\\.\\d{1,}))?)?(Z|(?:([-+])(\\d{2}):(\\d{2})))?)?)?)?$"),s=[0,31,59,90,120,151,181,212,243,273,304,334,365];for(var r in t)e[r]=t[r];return e.now=t.now,e.UTC=t.UTC,e.prototype=t.prototype,e.prototype.constructor=e,e.parse=function(e){var s=o.exec(e);if(s){var r,a=Number(s[1]),l=Number(s[2]||1)-1,c=Number(s[3]||1)-1,h=Number(s[4]||0),u=Number(s[5]||0),d=Number(s[6]||0),p=Math.floor(1e3*Number(s[7]||0)),f=Boolean(s[4]&&!s[8]),m="-"===s[9]?1:-1,g=Number(s[10]||0),v=Number(s[11]||0);return h<(u>0||d>0||p>0?24:25)&&u<60&&d<60&&p<1e3&&l>-1&&l<12&&g<24&&v<60&&c>-1&&c<i(a,l+1)-i(a,l)&&(r=1e3*(60*((r=60*(24*(i(a,l)+c)+h+g*m))+u+v*m)+d)+p,f&&(r=n(r)),-864e13<=r&&r<=864e13)?r:NaN}return t.parse.apply(this,arguments)},e}(Date)),Date.now||(Date.now=function(){return(new Date).getTime()});var X=c.toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0)),K={base:1e7,size:6,data:[0,0,0,0,0,0],multiply:function(t,e){for(var i=-1;++i<K.size;)e+=t*K.data[i],K.data[i]=e%K.base,e=Math.floor(e/K.base)},divide:function(t){for(var e=K.size,i=0;--e>=0;)i+=K.data[e],K.data[e]=Math.floor(i/t),i=i%t*K.base},numToString:function(){for(var t=K.size,e="";--t>=0;)if(""!==e||0===t||0!==K.data[t]){var i=String(K.data[t]);""===e?e=i:e+="0000000".slice(0,7-i.length)+i}return e},pow:function t(e,i,n){return 0===i?n:i%2==1?t(e,i-1,n*e):t(e*e,i/2,n)},log:function(t){for(var e=0;t>=4096;)e+=12,t/=4096;for(;t>=2;)e+=1,t/=2;return e}};x(c,{toFixed:function(t){var e,i,n,o,s,r,a,l;
19if((e=(e=Number(t))!=e?0:Math.floor(e))<0||e>20)throw new RangeError("Number.toFixed called with invalid number of decimals");if((i=Number(this))!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(n="",i<0&&(n="-",i=-i),o="0",i>1e-21)if(r=(s=K.log(i*K.pow(2,69,1))-69)<0?i*K.pow(2,-s,1):i/K.pow(2,s,1),r*=4503599627370496,(s=52-s)>0){for(K.multiply(0,r),a=e;a>=7;)K.multiply(1e7,0),a-=7;for(K.multiply(K.pow(10,a,1),0),a=s-1;a>=23;)K.divide(1<<23),a-=23;K.divide(1<<a),K.multiply(1,1),K.divide(2),o=K.numToString()}else K.multiply(0,r),K.multiply(1<<-s,0),o=K.numToString()+"0.00000000000000000000".slice(2,2+e);return o=e>0?(l=o.length)<=e?n+"0.0000000000000000000".slice(0,e-l+2)+o:n+o.slice(0,l-e)+"."+o.slice(l-e):n+o}},X);var Q,J=l.split;2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||"t"==="tesst".split(/(s)*/)[1]||4!=="test".split(/(?:)/,-1).length||"".split(/.?/).length||".".split(/()()/).length>1?(Q=void 0===/()??/.exec("")[1],l.split=function(t,e){var i=this;if(void 0===t&&0===e)return[];if("[object RegExp]"!==f.call(t))return J.call(this,t,e);var n,o,r,a,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.extended?"x":"")+(t.sticky?"y":""),h=0;for(t=new RegExp(t.source,c+"g"),i+="",Q||(n=new RegExp("^"+t.source+"$(?!\\s)",c)),e=void 0===e?-1>>>0:k(e);(o=t.exec(i))&&!((r=o.index+o[0].length)>h&&(l.push(i.slice(h,o.index)),!Q&&o.length>1&&o[0].replace(n,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(o[t]=void 0)}),o.length>1&&o.index<i.length&&s.push.apply(l,o.slice(1)),a=o[0].length,h=r,l.length>=e));)t.lastIndex===o.index&&t.lastIndex++;return h===i.length?!a&&t.test("")||l.push(""):l.push(i.slice(h)),l.length>e?l.slice(0,e):l}):"0".split(void 0,0).length&&(l.split=function(t,e){return void 0===t&&0===e?[]:J.call(this,t,e)});var tt,et=l.replace;(tt=[],"x".replace(/x(.)?/g,function(t,e){tt.push(e)}),1===tt.length&&void 0===tt[0])||(l.replace=function(t,e){var i=m(e),n=g(t)&&/\)[*?]/.test(t.source);if(i&&n){var o=function(i){var n=arguments.length,o=t.lastIndex;t.lastIndex=0;var s=t.exec(i);return t.lastIndex=o,s.push(arguments[n-2],arguments[n-1]),e.apply(this,s)};return et.call(this,t,o)}return et.call(this,t,e)});var it=l.substr,nt="".substr&&"b"!=="0b".substr(-1);x(l,{substr:function(t,e){return it.call(this,t<0&&(t=this.length+t)<0?0:t,e)}},nt);var ot,st,rt="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",at="\u200b",lt="["+rt+"]",ct=new RegExp("^"+lt+lt+"*"),ht=new RegExp(lt+lt+"*$"),ut=l.trim&&(rt.trim()||!at.trim());x(l,{trim:function(){if(null==this)throw new TypeError("can't convert "+this+" to object");return String(this).replace(ct,"").replace(ht,"")}},ut),8===parseInt(rt+"08")&&22===parseInt(rt+"0x16")||(parseInt=(ot=parseInt,st=/^0[xX]/,function(t,e){return t=String(t).trim(),Number(e)||(e=st.test(t)?16:10),ot(t,e)}))}),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():t.returnExports=e()}(this,function(){function t(t){try{return t.sentinel=0,0===Object.getOwnPropertyDescriptor(t,"sentinel").value}catch(t){}}function e(t){try{return Object.defineProperty(t,"sentinel",{}),"sentinel"in t}catch(t){}}var i,n,o,s,r,a,l=Function.prototype.call,c=Object.prototype,h=l.bind(c.hasOwnProperty),u=h(c,"__defineGetter__");if(u&&(i=l.bind(c.__defineGetter__),n=l.bind(c.__defineSetter__),o=l.bind(c.__lookupGetter__),s=l.bind(c.__lookupSetter__)),
20Object.getPrototypeOf||(Object.getPrototypeOf=function(t){var e=t.__proto__;return e||null===e?e:t.constructor?t.constructor.prototype:c}),Object.defineProperty){var d=t({});if(!("undefined"==typeof document||t(document.createElement("div")))||!d)var p=Object.getOwnPropertyDescriptor}if(!Object.getOwnPropertyDescriptor||p){var f="Object.getOwnPropertyDescriptor called on a non-object: ";Object.getOwnPropertyDescriptor=function(t,e){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError(f+t);if(p)try{return p.call(Object,t,e)}catch(t){}if(h(t,e)){var i={enumerable:!0,configurable:!0};if(u){var n=t.__proto__,r=t!==c;r&&(t.__proto__=c);var a=o(t,e),l=s(t,e);if(r&&(t.__proto__=n),a||l)return a&&(i.get=a),l&&(i.set=l),i}return i.value=t[e],i.writable=!0,i}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(t){return Object.keys(t)}),Object.create)||(r=!({__proto__:null}instanceof Object)||"undefined"==typeof document?function(){return{__proto__:null}}:function(){function t(){}var e=document.createElement("iframe"),i=document.body||document.documentElement;e.style.display="none",i.appendChild(e),e.src="javascript:";var n=e.contentWindow.Object.prototype;return i.removeChild(e),e=null,delete n.constructor,delete n.hasOwnProperty,delete n.propertyIsEnumerable,delete n.isPrototypeOf,delete n.toLocaleStr
20ing,delete n.toString,delete n.valueOf,n.__proto__=null,t.prototype=n,r=function(){return new t},new t},Object.create=function(t,e){function i(){}var n;if(null===t)n=r();else{if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object prototype may only be an Object or null");i.prototype=t,(n=new i).__proto__=t}return void 0!==e&&Object.defineProperties(n,e),n});if(Object.defineProperty){var m=e({}),g="undefined"==typeof document||e(document.createElement("div"));if(!m||!g)var v=Object.defineProperty,y=Object.defineProperties}if(!Object.defineProperty||v){var _="Property description must be an object: ",b="Object.defineProperty called on non-object: ",x="getters & setters can not be defined on this javascript engine";Object.defineProperty=function(t,e,r){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError(b+t);if("object"!=typeof r&&"function"!=typeof r||null===r)throw new TypeError(_+r);if(v)try{return v.call(Object,t,e,r)}catch(t){}if(h(r,"value"))if(u&&(o(t,e)||s(t,e))){var a=t.__proto__;t.__proto__=c,delete t[e],t[e]=r.value,t.__proto__=a}else t[e]=r.value;else{if(!u)throw new TypeError(x);h(r,"get")&&i(t,e,r.get),h(r,"set")&&n(t,e,r.set)}return t}}Object.defineProperties&&!y||(Object.defineProperties=function(t,e){if(y)try{return y.call(Object,t,e)}catch(t){}for(var i in e)h(e,i)&&"__proto__"!==i&&Object.defineProperty(t,i,e[i]);return t}),Object.seal||(Object.seal=function(t){return t}),Object.freeze||(Object.freeze=function(t){return t});try{Object.freeze(function(){})}catch(t){Object.freeze=(a=Object.freeze,function(t){return"function"==typeof t?t:a(t)})}Object.preventExtensions||(Object.preventExtensions=function(t){return t}),Object.isSealed||(Object.isSealed=function(){return!1}),Object.isFrozen||(Object.isFrozen=function(){return!1}),Object.isExtensible||(Object.isExtensible=function(t){if(Object(t)!==t)throw new TypeError;for(var e="";h(t,e);)e+="?";t[e]=!0;var i=h(t,e);return delete t[e],i})}),function t(e,i,n){function o(r,a){if(!i[r]){if(!e[r]){var l="function"==typeof require&&require;if(!a&&l)return l(r,!0);if(s)return s(r,!0);var c=new Error("Cannot find module '"+r+"'");throw c.code="MODULE_NOT_FOUND",c}var h=i[r]={exports:{}};e[r][0].call(h.exports,function(t){var i=e[r][1][t];return o(i||t)},h,h.exports,t,e,i,n)}return i[r].exports}for(var s="function"==typeof require&&require,r=0;r<n.length;r++)o(n[r]);return o}({1:[function(t,e){function i(){c=!1,r.length?l=r.concat(l):h=-1,l.length&&n()}function n(){if(!c){var t=setTimeout(i);c=!0;for(var e=l.length;e;){for(r=l,l=[];++h<e;)r&&r[h].run();h=-1,e=l.length}r=null,c=!1,clearTimeout(t)}}function o(t,e){this.fun=t,this.array=e}function s(){}var r,a=e.exports={},l=[],c=!1,h=-1;a.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];l.push(new o(t,e)),1!==l.length||c||setTimeout(n,0)},o.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=s,a.addListener=s,a.once=s,a.off=s,a.removeListener=s,a.removeAllListeners=s,a.emit=s,a.binding=function(){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},{}],2:[function(t){(function(e){"use strict";if(t("core-js/shim"),t("regenerator/runtime"),e._babelPolyfill)throw new Error("only one instance of babel/polyfill is allowed");e._babelPolyfill=!0}
20).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"core-js/shim":181,"regenerator/runtime":182}],3:[function(t,e){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],4:[function(t,e){var i=t("./$.is-object");e.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},{"./$.is-object":34}],5:[function(t,e){var i=t("./$.to-iobject"),n=t("./$.to-length"),o=t("./$.to-index");e.exports=function(t){return function(e,s,r){var a,l=i(e),c=n(l.length),h=o(r,c);if(t&&s!=s){for(;c>h;)if((a=l[h++])!=a)return!0}else for(;c>h;h++)if((t||h in l)&&l[h]===s)return t||h;return!t&&-1}}},{"./$.to-index":69,"./$.to-iobject":71,"./$.to-length":72}],6:[function(t,e){var i=t("./$.ctx"),n=t("./$.iobject"),o=t("./$.to-object"),s=t("./$.to-length");e.exports=function(t){var e=1==t,r=2==t,a=3==t,l=4==t,c=6==t,h=5==t||c;return function(u,d,p){for(var f,m,g=o(u),v=n(g),y=i(d,p,3),_=s(v.length),b=0,x=e?Array(_):r?[]:void 0;_>b;b++)if((h||b in v)&&(m=y(f=v[b],b,g),t))if(e)x[b]=m;else if(m)switch(t){case 3:return!0;case 5:return f;case 6:return b;case 2:x.push(f)}else if(l)return!1;return c?-1:a||l?l:x}}},{"./$.ctx":15,"./$.iobject":31,"./$.to-length":72,"./$.to-object":73}],7:[function(t,e){var i=t("./$.to-object"),n=t("./$.iobject"),o=t("./$.enum-keys");e.exports=t("./$.fails")(function(){return Symbol()in Object.assign({})})?function(t,e){for(var s=i(t),r=arguments.length,a=1;r>a;)for(var l,c=n(arguments[a++]),h=o(c),u=h.length,d=0;u>d;)s[l=h[d++]]=c[l];return s}:Object.assign},{"./$.enum-keys":19,"./$.fails":21,"./$.iobject":31,"./$.to-object":73}],8:[function(t,e){var i=t("./$.cof"),n=t("./$.wks")("toStringTag"),o="Arguments"==i(function(){return arguments}());e.exports=function(t){var e,s,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(s=(e=Object(t))[n])?s:o?i(e):"Object"==(r=i(e))&&"function"==typeof e.callee?"Arguments":r}},{"./$.cof":9,"./$.wks":76}],9:[function(t,e){var i={}.toString;e.exports=function(t){return i.call(t).slice(8,-1)}},{}],10:[function(t,e){"use strict";var i=t("./$"),n=t("./$.hide"),o=t("./$.ctx"),s=t("./$.species"),r=t("./$.strict-new"),a=t("./$.defined"),l=t("./$.for-of"),c=t("./$.iter-step"),h=t("./$.uid")("id"),u=t("./$.has"),d=t("./$.is-object"),p=Object.isExtensible||d,f=t("./$.support-desc"),m=f?"_s":"size",g=0,v=function(t,e){if(!d(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,h)){if(!p(t))return"F";if(!e)return"E";n(t,h,++g)}return"O"+t[h]},y=function(t,e){var i,n=v(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};e.exports={getConstructor:function(e,n,s,c){var h=e(function(t,e){r(t,h,n),t._i=i.create(null),t._f=void 0,t._l=void 0,t[m]=0,null!=e&&l(e,s,t[c],t)});return t("./$.mix")(h.prototype,{clear:function(){for(var t=this,e=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete e[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var e=this,i=y(e,t);if(i){var n=i.n,o=i.p;delete e._i[i.i],i.r=!0,o&&(o.n=n),n&&(n.p=o),e._f==i&&(e._f=n),e._l==i&&(e._l=o),e[m]--}return!!i},forEach:function(t){for(var e,i=o(t,arguments[1],3);e=e?e.n:this._f;)for(i(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!y(this,t)}}),f&&i.setDesc(h.prototype,"size",{get:function(){return a(this[m])}}),h},def:function(t,e,i){var n,o,s=y(t,e);return s?s.v=i:(t._l=s={i:o=v(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=s),n&&(n.n=s),t[m]++,"F"!==o&&(t._i[o]=s)),t},getEntry:y,setStrong:function(e,i,n){t("./$.iter-define")(e,i,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,i=t._l;i&&i.r;)i=i.p;return t._t&&(t._l=i=i?i.n:t._t._f)?c(0,"keys"==e?i.k:"values"==e?i.v:[i.k,i.v]):(t._t=void 0,c(1))},n?"entries":"values",!n,!0),s(e),s(t("./$.core")[i])}}},{"./$":41,"./$.core":14,"./$.ctx":15,"./$.defined":17,"./$.for-of":24,"./$.has":27,"./$.hide":28,"./$.is-object":34,"./$.iter-define":37,"./$.iter-step":39,"./$.mix":46,"./$.species":59,"./$.strict-new":60,"./$.support-desc":66,"./$.uid":74}],11:[function(t,e){var i=t("./$.for-of"),n=t("./$.classof");e.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");var e=[];return i(this,!1,e.push,e),e}}},{"./$.classof":8,"./$.for-of":24}],12:[function(t,e){"use strict";var i=t("./$.hide"),n=t("./$.an-object"),o=t("./$.strict-new"),s=t("./$.for-of"),r=t("./$.array-methods"),a=t("./$.uid")("weak"),l=t("./$.is-object"),c=t("./$.has"),h=Object.isExtensible||l,u=r(5),d=r(6),p=0,f=function(t){return t._l||(t._l=new m)},m=function(){this.a=[]},g=function(t,e){return u(t.a,function(t){return t[0]===e})};m.prototype={get:function(t){var e=g(this,t);return e?e[1]:void 0},has:function(t){return!!g(this,t)}
20,set:function(t,e){var i=g(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},e.exports={getConstructor:function(e,i,n,r){var u=e(function(t,e){o(t,u,i),t._i=p++,t._l=void 0,null!=e&&s(e,n,t[r],t)});return t("./$.mix")(u.prototype,{delete:function(t){return!!l(t)&&(h(t)?c(t,a)&&c(t[a],this._i)&&delete t[a][this._i]:f(this).delete(t))},has:function(t){return!!l(t)&&(h(t)?c(t,a)&&c(t[a],this._i):f(this).has(t))}}),u},def:function(t,e,o){return h(n(e))?(c(e,a)||i(e,a,{}),e[a][t._i]=o):f(t).set(e,o),t},frozenStore:f,WEAK:a}},{"./$.an-object":4,"./$.array-methods":6,"./$.for-of":24,"./$.has":27,"./$.hide":28,"./$.is-object":34,"./$.mix":46,"./$.strict-new":60,"./$.uid":74}],13:[function(t,e){"use strict";var i=t("./$.global"),n=t("./$.def"),o=t("./$.for-of"),s=t("./$.strict-new");e.exports=function(e,r,a,l,c,h){var u=i[e],d=u,p=c?"set":"add",f=d&&d.prototype,m={},g=function(e){var i=f[e];t("./$.redef")(f,e,"delete"==e||"has"==e||"get"==e?function(t){return i.call(this,0===t?0:t)}:"add"==e?function(t){return i.call(this,0===t?0:t),this}:function(t,e){return i.call(this,0===t?0:t,e),this})};if("function"==typeof d&&(h||f.forEach&&!t("./$.fails")(function(){(new d).entries().next()}))){var v,y=new d,_=y[p](h?{}:-0,1);t("./$.iter-detect")(function(t){new d(t)})||(d=r(function(t,i){s(t,d,e);var n=new u;return null!=i&&o(i,c,n[p],n),n}),d.prototype=f,f.constructor=d),h||y.forEach(function(t,e){v=1/e==-1/0}),v&&(g("delete"),g("has"),c&&g("get")),(v||_!==y)&&g(p),h&&f.clear&&delete f.clear}else d=l.getConstructor(r,e,c,p),t("./$.mix")(d.prototype,a);return t("./$.tag")(d,e),m[e]=d,n(n.G+n.W+n.F*(d!=u),m),h||l.setStrong(d,e,c),d}},{"./$.def":16,"./$.fails":21,"./$.for-of":24,"./$.global":26,"./$.iter-detect":38,"./$.mix":46,"./$.redef":53,"./$.strict-new":60,"./$.tag":67}],14:[function(t,e){var i=e.exports={};"number"==typeof __e&&(__e=i)},{}],15:[function(t,e){var i=t("./$.a-function");e.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)}}return function(){return t.apply(e,arguments)}}},{"./$.a-function":3}],16:[function(t,e){var i=t("./$.global"),n=t("./$.core"),o=t("./$.hide"),s=t("./$.redef"),r="prototype",a=function(t,e){return function(){return t.apply(e,arguments)}},l=function(t,e,c){var h,u,d,p,f=t&l.G,m=t&l.P,g=f?i:t&l.S?i[e]||(i[e]={}):(i[e]||{})[r],v=f?n:n[e]||(n[e]={});for(h in f&&(c=e),c)d=((u=!(t&l.F)&&g&&h in g)?g:c)[h],p=t&l.B&&u?a(d,i):m&&"function"==typeof d?a(Function.call,d):d,g&&!u&&s(g,h,d),v[h]!=d&&o(v,h,p),m&&((v[r]||(v[r]={}))[h]=d)};i.core=n,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,e.exports=l},{"./$.core":14,"./$.global":26,"./$.hide":28,"./$.redef":53}],17:[function(t,e){e.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},{}],18:[function(t,e){var i=t("./$.is-object"),n=t("./$.global").document,o=i(n)&&i(n.createElement);e.exports=function(t){return o?n.createElement(t):{}}},{"./$.global":26,"./$.is-object":34}],19:[function(t,e){var i=t("./$");e.exports=function(t){var e=i.getKeys(t),n=i.getSymbols;if(n)for(var o,s=n(t),r=i.isEnum,a=0;s.length>a;)r.call(t,o=s[a++])&&e.push(o);return e}},{"./$":41}],20:[function(t,e){e.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&1e-6>t?t+t*t/2:Math.exp(t)-1}},{}],21:[function(t,e){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],22:[function(t,e){"use strict";e.exports=function(e,i,n){var o=t("./$.defined"),s=t("./$.wks")(e),r=""[e];t("./$.fails")(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(t("./$.redef")(String.prototype,e,n(o,s,r)),t("./$.hide")(RegExp.prototype,s,2==i?function(t,e){return r.call(t,this,e)}:function(t){return r.call(t,this)}))}},{"./$.defined":17,"./$.fails":21,"./$.hide":28,"./$.redef":53,"./$.wks":76}],23:[function(t,e){"use strict";var i=t("./$.an-object");e.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./$.an-object":4}],24:[function(t,e){var i=t("./$.ctx"),n=t("./$.iter-call"),o=t("./$.is-array-iter"),s=t("./$.an-object"),r=t("./$.to-length"),a=t("./core.get-iterator-method");e.exports=function(t,e,l,c){var h,u,d,p=a(t),f=i(l,c,e?2:1),m=0;if("function"!=typeof p)throw TypeError(t+" is not iterable!");if(o(p))for(h=r(t.length);h>m;m++)e?f(s(u=t[m])[0],u[1]):f(t[m]);else for(d=p.call(t);!(u=d.next()).done;)n(d,f,u.value,e)}},{"./$.an-object":4,"./$.ctx":15,"./$.is-array-iter":32,"./$.iter-call":35,"./$.to-length":72,"./core.get-iterator-method":77}],25:[function(t,e){var i={}.toString,n=t("./$.to-iobject"),o=t("./$").getNames,s="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],r=function(t){try{return o(t)}catch(t){return s.slice()}};e.exports.get=function(t){return s&&"[object Window]"==i.call(t)?r(t):o(n(t))}},{"./$":41,"./$.to-iobject":71}],26:[function(t,e){var i="undefined",n=e.exports=typeof window!=i&&window.Math==Math?window:typeof self!=i&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],27:[function(t,e){var i={}.hasOwnProperty;e.exports=function(t,e){return i.call(t,e)}},{}],28:[function(t,e){var i=t("./$"),n=t("./$.property-desc");e.exports=t("./$.support-desc")?function(t,e,o){return i.setDesc(t,e,n(1,o))}
20:function(t,e,i){return t[e]=i,t}},{"./$":41,"./$.property-desc":52,"./$.support-desc":66}],29:[function(t,e){e.exports=t("./$.global").document&&document.documentElement},{"./$.global":26}],30:[function(t,e){e.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},{}],31:[function(t,e){var i=t("./$.cof");e.exports=0 in Object("z")?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},{"./$.cof":9}],32:[function(t,e){var i=t("./$.iterators"),n=t("./$.wks")("iterator");e.exports=function(t){return(i.Array||Array.prototype[n])===t}},{"./$.iterators":40,"./$.wks":76}],33:[function(t,e){var i=t("./$.is-object"),n=Math.floor;e.exports=function(t){return!i(t)&&isFinite(t)&&n(t)===t}},{"./$.is-object":34}],34:[function(t,e){e.exports=function(t){return null!==t&&("object"==typeof t||"function"==typeof t)}},{}],35:[function(t,e){var i=t("./$.an-object");e.exports=function(t,e,n,o){try{return o?e(i(n)[0],n[1]):e(n)}catch(e){var s=t.return;throw void 0!==s&&i(s.call(t)),e}}},{"./$.an-object":4}],36:[function(t,e){"use strict";var i=t("./$"),n={};t("./$.hide")(n,t("./$.wks")("iterator"),function(){return this}),e.exports=function(e,o,s){e.prototype=i.create(n,{next:t("./$.property-desc")(1,s)}),t("./$.tag")(e,o+" Iterator")}},{"./$":41,"./$.hide":28,"./$.property-desc":52,"./$.tag":67,"./$.wks":76}],37:[function(t,e){"use strict";var i=t("./$.library"),n=t("./$.def"),o=t("./$.redef"),s=t("./$.hide"),r=t("./$.has"),a=t("./$.wks")("iterator"),l=t("./$.iterators"),c=!([].keys&&"next"in[].keys()),h="@@iterator",u="keys",d="values",p=function(){return this};e.exports=function(e,f,m,g,v,y,_){t("./$.iter-create")(m,f,g);var b,x,w=function(t){switch(t){case u:case d:return function(){return new m(this,t)}}return function(){return new m(this,t)}},k=f+" Iterator",C=e.prototype,S=C[a]||C[h]||v&&C[v],P=S||w(v);if(S){var T=t("./$").getProto(P.call(new e));t("./$.tag")(T,k,!0),!i&&r(C,h)&&s(T,a,p)}if((!i||_)&&s(C,a,P),l[f]=P,l[k]=p,v)if(b={keys:y?P:w(u),values:v==d?P:w(d),entries:v!=d?P:w("entries")},_)for(x in b)x in C||o(C,x,b[x]);else n(n.P+n.F*c,f,b)}},{"./$":41,"./$.def":16,"./$.has":27,"./$.hide":28,"./$.iter-create":36,"./$.iterators":40,"./$.library":43,"./$.redef":53,"./$.tag":67,"./$.wks":76}],38:[function(t,e){var i=t("./$.wks")("iterator"),n=!1;try{var o=[7][i]();o.return=function(){n=!0},Array.from(o,function(){throw 2})}catch(t){}e.exports=function(t){if(!n)return!1;var e=!1;try{var o=[7],s=o[i]();s.next=function(){e=!0},o[i]=function(){return s},t(o)}catch(t){}return e}},{"./$.wks":76}],39:[function(t,e){e.exports=function(t,e){return{value:e,done:!!t}}},{}],40:[function(t,e){e.exports={}},{}],41:[function(t,e){var i=Object;e.exports={create:i.create,getProto:i.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:i.getOwnPropertyDescriptor,setDesc:i.defineProperty,setDescs:i.defineProperties,getKeys:i.keys,getNames:i.getOwnPropertyNames,getSymbols:i.getOwnPropertySymbols,each:[].forEach}},{}],42:[function(t,e){var i=t("./$"),n=t("./$.to-iobject");e.exports=function(t,e){for(var o,s=n(t),r=i.getKeys(s),a=r.length,l=0;a>l;)if(s[o=r[l++]]===e)return o}},{"./$":41,"./$.to-iobject":71}],43:[function(t,e){e.exports=!1},{}],44:[function(t,e){e.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&1e-8>t?t-t*t/2:Math.log(1+t)}},{}],45:[function(t,e){var i,n,o,s=t("./$.global"),r=t("./$.task").set,a=s.MutationObserver||s.WebKitMutationObserver,l=s.process,c="process"==t("./$.cof")(l),h=function(){var t,e;for(c&&(t=l.domain)&&(l.domain=null,t.exit());i;)(e=i.domain)&&e.enter(),i.fn.call(),e&&e.exit(),i=i.next;n=void 0,t&&t.enter()};if(c)o=function(){l.nextTick(h)};else if(a){var u=1,d=document.createTextNode("");new a(h).observe(d,{characterData:!0}),o=function(){d.data=u=-u}}else o=function(){r.call(s,h)};e.exports=function(t){var e={fn:t,next:void 0,domain:c&&l.domain};n&&(n.next=e),i||(i=e,o()),n=e}},{"./$.cof":9,"./$.global":26,"./$.task":68}],46:[function(t,e){var i=t("./$.redef");e.exports=function(t,e){for(var n in e)i(t,n,e[n]);return t}},{"./$.redef":53}],47:[function(t,e){e.exports=function(e,i){var n=t("./$.def"),o=(t("./$.core").Object||{})[e]||Object[e],s={};s[e]=i(o),n(n.S+n.F*t("./$.fails")(function(){o(1)}),"Object",s)}},{"./$.core":14,"./$.def":16,"./$.fails":21}],48:[function(t,e){var i=t("./$"),n=t("./$.to-iobject");e.exports=function(t){return function(e){var o,s=n(e),r=i.getKeys(s),a=r.length,l=0,c=Array(a);if(t)for(;a>l;)c[l]=[o=r[l++],s[o]];else for(;a>l;)c[l]=s[r[l++]];return c}}},{"./$":41,"./$.to-iobject":71}],49:[function(t,e){var i=t("./$"),n=t("./$.an-object"),o=t("./$.global").Reflect;e.exports=o&&o.ownKeys||function(t){var e=i.getNames(n(t)),o=i.getSymbols;return o?e.concat(o(t)):e}},{"./$":41,"./$.an-object":4,"./$.global":26}],50:[function(t,e){"use strict";var i=t("./$.path"),n=t("./$.invoke"),o=t("./$.a-function");e.exports=function(){for(var t=o(this),e=arguments.length,s=Array(e),r=0,a=i._,l=!1;e>r;)(s[r]=arguments[r++])===a&&(l=!0);return function(){var i,o=this,r=arguments.length,c=0,h=0;if(!l&&!r)return n(t,s,o);if(i=s.slice(),l)for(;e>c;c++)i[c]===a&&(i[c]=arguments[h++]);for(;r>h;)i.push(arguments[h++]);return n(t,i,o)}}},{"./$.a-function":3,"./$.invoke":30,"./$.path":51}],51:[function(t,e){e.exports=t("./$.global")},{"./$.global":26}],52:[function(t,e){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],53:[function(t,e){var i=t("./$.global"),n=t("./$.hide"),o=t("./$.uid")("src"),s="toString",r=Function[s],a=(""+r).split(s);t("./$.core").inspectSource=function(t){return r.call(t)},(e.exports=function(t,e,s,r){"function"==typeof s&&(n(s,o,t[e]?""+t[e]:a.join(String(e))),"name"in s||(s.name=e)),t===i?t[e]=s:(r||delete t[e],n(t,e,s))})(Function.prototype,s,function(){return"function"==typeof this&&this[o]||r.call(this)})},{"./$.core":14,"./$.global":26,"./$.hide":28,"./$.uid":74}],54:[function(t,e){e.exports=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}}},{}],55:[function(t,e){e.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},{}],56:[function(t,e){var i=t("./$").getDesc,n=t("./$.is-object"),o=t("./$.an-object"),s=function(t,e){if(o(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,n){try{(n=t("./$.ctx")(Function.call,i(Object.prototype,"__proto__").set,2))({},[])}catch(t){e=!0}return function(t,i){return s(t,i),e?t.__proto__=i:n(t,i),t}}():void 0),check:s}},{"./$":41,"./$.an-object":4,"./$.ctx":15,"./$.is-object":34}],57:[function(t,e){var i=t("./$.global"),n="__core-js_shared__",o=i[n]||(i[n]={});e.exports=function(t){return o[t]||(o[t]={})}},{"./$.global":26}],58:[function(t,e){e.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:0>t?-1:1}},{}],59:[function(t,e){"use strict";var i=t("./$"),n=t("./$.wks")("species");e.exports=function(e){!t("./$.support-desc")||n in e||i.setDesc(e,n,{configurable:!0,get:function(){return this}})}},{"./$":41,"./$.support-desc":66,"./$.wks":76}
20],60:[function(t,e){e.exports=function(t,e,i){if(!(t instanceof e))throw TypeError(i+": use the 'new' operator!");return t}},{}],61:[function(t,e){var i=t("./$.to-integer"),n=t("./$.defined");e.exports=function(t){return function(e,o){var s,r,a=String(n(e)),l=i(o),c=a.length;return 0>l||l>=c?t?"":void 0:55296>(s=a.charCodeAt(l))||s>56319||l+1===c||(r=a.charCodeAt(l+1))<56320||r>57343?t?a.charAt(l):s:t?a.slice(l,l+2):r-56320+(s-55296<<10)+65536}}},{"./$.defined":17,"./$.to-integer":70}],62:[function(t,e){var i=t("./$.defined"),n=t("./$.cof");e.exports=function(t,e,o){if("RegExp"==n(e))throw TypeError("String#"+o+" doesn't accept regex!");return String(i(t))}},{"./$.cof":9,"./$.defined":17}],63:[function(t,e){var i=t("./$.to-length"),n=t("./$.string-repeat"),o=t("./$.defined");e.exports=function(t,e,s,r){var a=String(o(t)),l=a.length,c=void 0===s?" ":String(s),h=i(e);if(l>=h)return a;""==c&&(c=" ");var u=h-l,d=n.call(c,Math.ceil(u/c.length));return d.length>u&&(d=r?d.slice(d.length-u):d.slice(0,u)),r?d+a:a+d}},{"./$.defined":17,"./$.string-repeat":64,"./$.to-length":72}],64:[function(t,e){"use strict";var i=t("./$.to-integer"),n=t("./$.defined");e.exports=function(t){var e=String(n(this)),o="",s=i(t);if(0>s||s==1/0)throw RangeError("Count can't be negative");for(;s>0;(s>>>=1)&&(e+=e))1&s&&(o+=e);return o}},{"./$.defined":17,"./$.to-integer":70}],65:[function(t,e){var i=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(c,"")),t},n=t("./$.def"),o=t("./$.defined"),s="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff",r="["+s+"]",a="\u200b\x85",l=RegExp("^"+r+r+"*"),c=RegExp(r+r+"*$");e.exports=function(e,o){var r={};r[e]=o(i),n(n.P+n.F*t("./$.fails")(function(){return!!s[e]()||a[e]()!=a}),"String",r)}},{"./$.def":16,"./$.defined":17,"./$.fails":21}],66:[function(t,e){e.exports=!t("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":21}],67:[function(t,e){var i=t("./$.has"),n=t("./$.hide"),o=t("./$.wks")("toStringTag");e.exports=function(t,e,s){t&&!i(t=s?t:t.prototype,o)&&n(t,o,e)}},{"./$.has":27,"./$.hide":28,"./$.wks":76}],68:[function(t,e){"use strict";var i,n,o,s=t("./$.ctx"),r=t("./$.invoke"),a=t("./$.html"),l=t("./$.dom-create"),c=t("./$.global"),h=c.process,u=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,f=0,m={},g="onreadystatechange",v=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},y=function(t){v.call(t.data)};u&&d||(u=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return m[++f]=function(){r("function"==typeof t?t:Function(t),e)},i(f),f},d=function(t){delete m[t]},"process"==t("./$.cof")(h)?i=function(t){h.nextTick(s(v,t,1))}:p?(o=(n=new p).port2,n.port1.onmessage=y,i=s(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScript?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",y,!1)):i=g in l("script")?function(t){a.appendChild(l("script"))[g]=function(){a.removeChild(this),v.call(t)}}:function(t){setTimeout(s(v,t,1),0)}),e.exports={set:u,clear:d}},{"./$.cof":9,"./$.ctx":15,"./$.dom-create":18,"./$.global":26,"./$.html":29,"./$.invoke":30}],69:[function(t,e){var i=t("./$.to-integer"),n=Math.max,o=Math.min;e.exports=function(t,e){return 0>(t=i(t))?n(t+e,0):o(t,e)}},{"./$.to-integer":70}],70:[function(t,e){var i=Math.ceil,n=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},{}],71:[function(t,e){var i=t("./$.iobject"),n=t("./$.defined");e.exports=function(t){return i(n(t))}},{"./$.defined":17,"./$.iobject":31}],72:[function(t,e){var i=t("./$.to-integer"),n=Math.min;e.exports=function(t){return t>0?n(i(t),9007199254740991):0}},{"./$.to-integer":70}],73:[function(t,e){var i=t("./$.defined");e.exports=function(t){return Object(i(t))}},{"./$.defined":17}],74:[function(t,e){var i=0,n=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},{}],75:[function(t,e){var i=t("./$.wks")("unscopables");i in[]||t("./$.hide")(Array.prototype,i,{}),e.exports=function(t){[][i][t]=!0}},{"./$.hide":28,"./$.wks":76}],76:[function(t,e){var i=t("./$.shared")("wks"),n=t("./$.global").Symbol;e.exports=function(e){return i[e]||(i[e]=n&&n[e]||(n||t("./$.uid"))("Symbol."+e))}},{"./$.global":26,"./$.shared":57,"./$.uid":74}],77:[function(t,e){var i=t("./$.classof"),n=t("./$.wks")("iterator"),o=t("./$.iterators");e.exports=t("./$.core").getIteratorMethod=function(t){return null!=t?t[n]||t["@@iterator"]||o[i(t)]:void 0}},{"./$.classof":8,"./$.core":14,"./$.iterators":40,"./$.wks":76}],78:[function(t){"use strict";var e,i=t("./$"),n=t("./$.support-desc"),o=t("./$.property-desc"),s=t("./$.html"),r=t("./$.dom-create"),a=t("./$.has"),l=t("./$.cof"),c=t("./$.def"),h=t("./$.invoke"),u=t
20("./$.array-methods"),d=t("./$.uid")("__proto__"),p=t("./$.is-object"),f=t("./$.an-object"),m=t("./$.a-function"),g=t("./$.to-object"),v=t("./$.to-iobject"),y=t("./$.to-integer"),_=t("./$.to-index"),b=t("./$.to-length"),x=t("./$.iobject"),w=t("./$.fails"),k=Object.prototype,C=[],S=C.slice,P=C.join,T=i.setDesc,E=i.getDesc,A=i.setDescs,M=t("./$.array-includes")(!1),L={};n||(e=!w(function(){return 7!=T(r("div"),"a",{get:function(){return 7}}).a}),i.setDesc=function(t,i,n){if(e)try{return T(t,i,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(f(t)[i]=n.value),t},i.getDesc=function(t,i){if(e)try{return E(t,i)}catch(t){}return a(t,i)?o(!k.propertyIsEnumerable.call(t,i),t[i]):void 0},i.setDescs=A=function(t,e){f(t);for(var n,o=i.getKeys(e),s=o.length,r=0;s>r;)i.setDesc(t,n=o[r++],e[n]);return t}),c(c.S+c.F*!n,"Object",{getOwnPropertyDescriptor:i.getDesc,defineProperty:i.setDesc,defineProperties:A});var D="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),I=D.concat("length","prototype"),N=D.length,R=function(){var t,e=r("iframe"),i=N,n=">";for(e.style.display="none",s.appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</script"+n),t.close(),R=t.F;i--;)delete R.prototype[D[i]];return R()},O=function(t,e){return function(i){var n,o=v(i),s=0,r=[];for(n in o)n!=d&&a(o,n)&&r.push(n);for(;e>s;)a(o,n=t[s++])&&(~M(r,n)||r.push(n));return r}},$=function(){};c(c.S,"Object",{getPrototypeOf:i.getProto=i.getProto||function(t){return t=g(t),a(t,d)?t[d]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?k:null},getOwnPropertyNames:i.getNames=i.getNames||O(I,I.length,!0),create:i.create=i.create||function(t,e){var i;return null!==t?($.prototype=f(t),i=new $,$.prototype=null,i[d]=t):i=R(),void 0===e?i:A(i,e)},keys:i.getKeys=i.getKeys||O(D,N,!1)});var F=function(t,e,i){if(!(e in L)){for(var n=[],o=0;e>o;o++)n[o]="a["+o+"]";L[e]=Function("F,a","return new F("+n.join(",")+")")}return L[e](t,i)};c(c.P,"Function",{bind:function(t){var e=m(this),i=S.call(arguments,1),n=function(){var o=i.concat(S.call(arguments));return this instanceof n?F(e,o.length,o):h(e,o,t)};return p(e.prototype)&&(n.prototype=e.prototype),n}});var z=w(function(){s&&S.call(s)});c(c.P+c.F*z,"Array",{slice:function(t,e){var i=b(this.length),n=l(this);if(e=void 0===e?i:e,"Array"==n)return S.call(this,t,e);for(var o=_(t,i),s=_(e,i),r=b(s-o),a=Array(r),c=0;r>c;c++)a[c]="String"==n?this.charAt(o+c):this[o+c];return a}}),c(c.P+c.F*(x!=Object),"Array",{join:function(){return P.apply(x(this),arguments)}}),c(c.S,"Array",{isArray:function(t){return"Array"==l(t)}});var j=function(t){return function(e,i){m(e);var n=x(this),o=b(n.length),s=t?o-1:0,r=t?-1:1;
20if(arguments.length<2)for(;;){if(s in n){i=n[s],s+=r;break}if(s+=r,t?0>s:s>=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?s>=0:o>s;s+=r)s in n&&(i=e(i,n[s],s,this));return i}},B=function(t){return function(e){return t(this,e,arguments[1])}};c(c.P,"Array",{forEach:i.each=i.each||B(u(0)),map:B(u(1)),filter:B(u(2)),some:B(u(3)),every:B(u(4)),reduce:j(!1),reduceRight:j(!0),indexOf:B(M),lastIndexOf:function(t,e){var i=v(this),n=b(i.length),o=n-1;for(arguments.length>1&&(o=Math.min(o,y(e))),0>o&&(o=b(n+o));o>=0;o--)if(o in i&&i[o]===t)return o;return-1}}),c(c.S,"Date",{now:function(){return+new Date}});var H=function(t){return t>9?t:"0"+t},W=new Date(-50000000000001),U=!(W.toISOString&&"0385-07-25T07:06:39.999Z"==W.toISOString()&&w(function(){new Date(NaN).toISOString()}));c(c.P+c.F*U,"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=0>e?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+H(t.getUTCMonth()+1)+"-"+H(t.getUTCDate())+"T"+H(t.getUTCHours())+":"+H(t.getUTCMinutes())+":"+H(t.getUTCSeconds())+"."+(i>99?i:"0"+H(i))+"Z"}})},{"./$":41,"./$.a-function":3,"./$.an-object":4,"./$.array-includes":5,"./$.array-methods":6,"./$.cof":9,"./$.def":16,"./$.dom-create":18,"./$.fails":21,"./$.has":27,"./$.html":29,"./$.invoke":30,"./$.iobject":31,"./$.is-object":34,"./$.property-desc":52,"./$.support-desc":66,"./$.to-index":69,"./$.to-integer":70,"./$.to-iobject":71,"./$.to-length":72,"./$.to-object":73,"./$.uid":74}],79:[function(t){"use strict";var e=t("./$.def"),i=t("./$.to-object"),n=t("./$.to-index"),o=t("./$.to-length");e(e.P,"Array",{copyWithin:function(t,e){var s=i(this),r=o(s.length),a=n(t,r),l=n(e,r),c=arguments[2],h=void 0===c?r:n(c,r),u=Math.min(h-l,r-a),d=1;for(a>l&&l+u>a&&(d=-1,l=l+u-1,a=a+u-1);u-- >0;)l in s?s[a]=s[l]:delete s[a],a+=d,l+=d;return s}}),t("./$.unscope")("copyWithin")},{"./$.def":16,"./$.to-index":69,"./$.to-length":72,"./$.to-object":73,"./$.unscope":75}],80:[function(t){"use strict";var e=t("./$.def"),i=t("./$.to-object"),n=t("./$.to-index"),o=t("./$.to-length");e(e.P,"Array",{fill:function(t){for(var e=i(this,!0),s=o(e.length),r=n(arguments[1],s),a=arguments[2],l=void 0===a?s:n(a,s);l>r;)e[r++]=t;return e}}),t("./$.unscope")("fill")},{"./$.def":16,"./$.to-index":69,"./$.to-length":72,"./$.to-object":73,"./$.unscope":75}],81:[function(t){"use strict";var e="findIndex",i=t("./$.def"),n=!0,o=t("./$.array-methods")(6);e in[]&&Array(1)[e](function(){n=!1}),
21i(i.P+i.F*n,"Array",{findIndex:function(t){return o(this,t,arguments[1])}}),t("./$.unscope")(e)},{"./$.array-methods":6,"./$.def":16,"./$.unscope":75}],82:[function(t){"use strict";var e="find",i=t("./$.def"),n=!0,o=t("./$.array-methods")(5);e in[]&&Array(1)[e](function(){n=!1}),i(i.P+i.F*n,"Array",{find:function(t){return o(this,t,arguments[1])}}),t("./$.unscope")(e)},{"./$.array-methods":6,"./$.def":16,"./$.unscope":75}],83:[function(t){"use strict";var e=t("./$.ctx"),i=t("./$.def"),n=t("./$.to-object"),o=t("./$.iter-call"),s=t("./$.is-array-iter"),r=t("./$.to-length"),a=t("./core.get-iterator-method");i(i.S+i.F*!t("./$.iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var i,l,c,h,u=n(t),d="function"==typeof this?this:Array,p=arguments[1],f=void 0!==p,m=0,g=a(u);if(f&&(p=e(p,arguments[2],2)),null==g||d==Array&&s(g))for(l=new d(i=r(u.length));i>m;m++)l[m]=f?p(u[m],m):u[m];else for(h=g.call(u),l=new d;!(c=h.next()).done;m++)l[m]=f?o(h,p,[c.value,m],!0):c.value;return l.length=m,l}})},{"./$.ctx":15,"./$.def":16,"./$.is-array-iter":32,"./$.iter-call":35,"./$.iter-detect":38,"./$.to-length":72,"./$.to-object":73,"./core.get-iterator-method":77}],84:[function(t){"use strict";var e=t("./$.unscope"),i=t("./$.iter-step"),n=t("./$.iterators"),o=t("./$.to-iobject");t("./$.iter-define")(Array,"Array",function(t,e){this._t=o(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),n.Arguments=n.Array,e("keys"),e("values"),e("entries")},{"./$.iter-define":37,"./$.iter-step":39,"./$.iterators":40,"./$.to-iobject":71,"./$.unscope":75}],85:[function(t){"use strict";var e=t("./$.def");e(e.S+e.F*t("./$.fails")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)i[t]=arguments[t++];return i.length=e,i}})},{"./$.def":16,"./$.fails":21}],86:[function(t){t("./$.species")(Array)},{"./$.species":59}],87:[function(t){"use strict";var e=t("./$"),i=t("./$.is-object"),n=t("./$.wks")("hasInstance"),o=Function.prototype;n in o||e.setDesc(o,n,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=e.getProto(t);)if(this.prototype===t)return!0;return!1}})},{"./$":41,"./$.is-object":34,"./$.wks":76}],88:[function(t){var e=t("./$").setDesc,i=t("./$.property-desc"),n=t("./$.has"),o=Function.prototype,s=/^\s*function ([^ (]*)/,r="name";r in o||t("./$.support-desc")&&e(o,r,{configurable:!0,get:function(){var t=(""+this).match(s),o=t?t[1]:"";return n(this,r)||e(this,r,i(5,o)),o}})},{"./$":41,"./$.has":27,"./$.property-desc":52,"./$.support-desc":66}],89:[function(t){"use strict";var e=t("./$.collection-strong");t("./$.collection")("Map",function(t){return function(){return t(this,arguments[0])}},{get:function(t){var i=e.getEntry(this,t);return i&&i.v},set:function(t,i){return e.def(this,0===t?0:t,i)}},e,!0)},{"./$.collection":13,"./$.collection-strong":10}],90:[function(t){var e=t("./$.def"),i=t("./$.log1p"),n=Math.sqrt,o=Math.acosh;e(e.S+e.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+n(t-1)*n(t+1))}})},{"./$.def":16,"./$.log1p":44}],91:[function(t){function e(t){return isFinite(t=+t)&&0!=t?0>t?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}var i=t("./$.def");i(i.S,"Math",{asinh:e})},{"./$.def":16}],92:[function(t){var e=t("./$.def");e(e.S,"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},{"./$.def":16}],93:[function(t){var e=t("./$.def"),i=t("./$.sign");e(e.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},{"./$.def":16,"./$.sign":58}],94:[function(t){var e=t("./$.def");e(e.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},{"./$.def":16}],95:[function(t){var e=t("./$.def"),i=Math.exp;e(e.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},{"./$.def":16}],96:[function(t){var e=t("./$.def");e(e.S,"Math",{expm1:t("./$.expm1")})},{"./$.def":16,"./$.expm1":20}],97:[function(t){var e=t("./$.def"),i=t("./$.sign"),n=Math.pow,o=n(2,-52),s=n(2,-23),r=n(2,127)*(2-s),a=n(2,-126),l=function(t){return t+1/o-1/o};e(e.S,"Math",{fround:function(t){var e,n,c=Math.abs(t),h=i(t);return a>c?h*l(c/a/s)*a*s:(n=(e=(1+s/o)*c)-(e-c))>r||n!=n?h*(1/0):h*n}})},{"./$.def":16,"./$.sign":58}],98:[function(t){var e=t("./$.def"),i=Math.abs;e(e.S,"Math",{hypot:function(t,e){for(var n,o,s=0,r=0,a=arguments.length,l=0;a>r;)(n=i(arguments[r++]))>l?(s=s*(o=l/n)*o+1,l=n):n>0?s+=(o=n/l)*o:s+=n;return l===1/0?1/0:l*Math.sqrt(s)}})},{"./$.def":16}],99:[function(t){var e=t("./$.def");e(e.S+e.F*t("./$.fails")(function(){return-5!=Math.imul(4294967295,5)}),"Math",{imul:function(t,e){var i=65535,n=+t,o=+e,s=i&n,r=i&o;return 0|s*r+((i&n>>>16)*r+s*(i&o>>>16)<<16>>>0)}})},{"./$.def":16,"./$.fails":21}],100:[function(t){var e=t("./$.def");e(e.S,"Math",{log10:function(t){return Math.log(t)/Math.LN10}})},{"./$.def":16}],101:[function(t){var e=t("./$.def");e(e.S,"Math",{log1p:t("./$.log1p")})},{"./$.def":16,"./$.log1p":44}],102:[function(t){var e=t("./$.def");e(e.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},{"./$.def":16}],103:[function(t){var e=t("./$.def");e(e.S,"Math",{sign:t("./$.sign")})},{"./$.def":16,"./$.sign":58}],104:[function(t){var e=t("./$.def"),i=t("./$.expm1"),n=Math.exp;e(e.S,"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(n(t-1)-n(-t-1))*(Math.E/2)}})},{"./$.def":16,"./$.expm1":20}],105:[function(t){var e=t("./$.def"),i=t("./$.expm1"),n=Math.exp;e(e.S,"Math",{tanh:function(t){var e=i(t=+t),o=i(-t);return e==1/0?1:o==1/0?-1:(e-o)/(n(t)+n(-t))}})},{"./$.def":16,"./$.expm1":20}],106:[function(t){var e=t("./$.def");e(e.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},{"./$.def":16}],107:[function(t){"use strict";var e=t("./$"),i=t("./$.global"),n=t("./$.has"),o=t("./$.cof"),s=t("./$.is-object"),r=t("./$.fails"),a="Number",l=i[a],c=l,h=l.prototype,u=o(e.create(h))==a,d=function(t){var e,i;if("function"==typeof(e=t.valueOf)&&!s(i=e.call(t)))return i;if("function"==typeof(e=t.toString)&&!s(i=e.call(t)))return i;throw TypeError("Can't convert object to number")},p=function(t){if(s(t)&&(t=d(t)),"string"==typeof t&&t.length>2&&48==t.charCodeAt(0)){var e=!1;switch(t.charCodeAt(1)){case 66:case 98:e=!0;case 79:case 111:return parseInt(t.slice(2),e?2:8)}}return+t};l("0o1")&&l("0b1")||(l=function(t){var e=this;return e instanceof l&&(u?r(function(){h.valueOf.call(e)}):o(e)!=a)?new c(p(t)):p(t)},e.each.call(t("./$.support-desc")?e.getNames(c):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),function(t){n(c,t)&&!n(l,t)&&e.setDesc(l,t,e.getDesc(c,t))}),l.prototype=h,h.constructor=l,t("./$.redef")(i,a,l))},{"./$":41,"./$.cof":9,"./$.fails":21,"./$.global":26,"./$.has":27,"./$.is-object":34,"./$.redef":53,"./$.support-desc":66}],108:[function(t){var e=t("./$.def");e(e.S,"Number",{EPSILON:Math.pow(2,-52)})},{"./$.def":16}],109:[function(t){var e=t("./$.def"),i=t("./$.global").isFinite;e(e.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},{"./$.def":16,"./$.global":26}],110:[function(t){var e=t("./$.def");e(e.S,"Number",{isInteger:t("./$.is-integer")})},{"./$.def":16,"./$.is-integer":33}],111:[function(t){var e=t("./$.def");e(e.S,"Number",{isNaN:function(t){return t!=t}})},{"./$.def":16}],112:[function(t){var e=t("./$.def"),i=t("./$.is-integer"),n=Math.abs;e(e.S,"Number",{isSafeInteger:function(t){return i(t)&&n(t)<=9007199254740991}})},{"./$.def":16,"./$.is-integer":33}],113:[function(t){var e=t("./$.def");e(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},{"./$.def":16}],114:[function(t){var e=t("./$.def");e(e.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},{"./$.def":16}],115:[function(t){var e=t("./$.def");e(e.S,"Number",{parseFloat:parseFloat})},{"./$.def":16}],116:[function(t){var e=t("./$.def");e(e.S,"Number",{parseInt:parseInt})},{"./$.def":16}],117:[function(t){var e=t("./$.def");e(e.S+e.F,"Object",{assign:t("./$.assign")})},{"./$.assign":7,"./$.def":16}],118:[function(t){var e=t("./$.is-object");t("./$.object-sap")("freeze",function(t){return function(i){return t&&e(i)?t(i):i}})},{"./$.is-object":34,"./$.object-sap":47}],119:[function(t){var e=t("./$.to-iobject");t("./$.object-sap")("getOwnPropertyDescriptor",function(t){return function(i,n){return t(e(i),n)}})},{"./$.object-sap":47,"./$.to-iobject":71}],120:[function(t){t("./$.object-sap")("getOwnPropertyNames",function(){return t("./$.get-names").get})},{"./$.get-names":25,"./$.object-sap":47}],121:[function(t){var e=t("./$.to-object");t("./$.object-sap")("getPrototypeOf",function(t){return function(i){return t(e(i))}})},{"./$.object-sap":47,"./$.to-object":73}],122:[function(t){var e=t("./$.is-object");t("./$.object-sap")("isExtensible",function(t){return function(i){return!!e(i)&&(!t||t(i))}})},{"./$.is-object":34,"./$.object-sap":47}],123:[function(t){var e=t("./$.is-object");t("./$.object-sap")("isFrozen",function(t){return function(i){return!e(i)||!!t&&t(i)}})},{"./$.is-object":34,"./$.object-sap":47}],124:[function(t){var e=t("./$.is-object");t("./$.object-sap")("isSealed",function(t){return function(i){return!e(i)||!!t&&t(i)}})},{"./$.is-object":34,"./$.object-sap":47}],125:[function(t){var e=t("./$.def");e(e.S,"Object",{is:t("./$.same")})},{"./$.def":16,"./$.same":55}],126:[function(t){var e=t("./$.to-object");t("./$.object-sap")("keys",function(t){return function(i){return t(e(i))}})},{"./$.object-sap":47,"./$.to-object":73}],127:[function(t){var e=t("./$.is-object");t("./$.object-sap")("preventExtensions",function(t){return function(i){return t&&e(i)?t(i):i}})},{"./$.is-object":34,"./$.object-sap":47}],128:[function(t){var e=t("./$.is-object");t("./$.object-sap")("seal",function(t){return function(i){return t&&e(i)?t(i):i}})},{"./$.is-object":34,"./$.object-sap":47}],129:[function(t){var e=t("./$.def");e(e.S,"Object",{setPrototypeOf:t("./$.set-proto").set})},{"./$.def":16,"./$.set-proto":56}],130:[function(t){"use strict";var e=t("./$.classof"),i={};i[t("./$.wks")("toStringTag")]="z",i+""!="[object z]"&&t("./$.redef")(Object.prototype,"toString",function(){return"[object "+e(this)+"]"},!0)},{"./$.classof":8,"./$.redef":53,"./$.wks":76}],131:[function(t){"use strict";var e,i=t("./$"),n=t("./$.library"),o=t("./$.global"),s=t("./$.ctx"),r=t("./$.classof"),a=t("./$.def"),l=t("./$.is-object"),c=t("./$.an-object"),h=t("./$.a-function"),u=t("./$.strict-new"),d=t("./$.for-of"),p=t("./$.set-proto").set,f=t("./$.same"),m=t("./$.species"),g=t("./$.wks")("species"),v=t("./$.uid")("record"),y=t("./$.microtask"),_="Promise",b=o.process,x="process"==r(b),w=o[_],k=function(t){var e=new w(function(){});return t&&(e.constructor=Object),w.resolve(e)===e},C=function(){function e(t){var i=new w(t);return p(i,e.prototype),i}var n=!1;try{if(n=w&&w.resolve&&k(),p(e,w),e.prototype=i.create(w.prototype,{constructor:{value:e}}),e.resolve(5).then(function(){})instanceof e||(n=!1),n&&t("./$.support-desc")){var o=!1;w.resolve(i.setDesc({},"then",{get:function(){o=!0}})),n=o}}catch(t){n=!1}return n}(),S=function(t){return l(t)&&(C?"Promise"==r(t):v in t)},P=function(t,i){return!(!n||t!==w||i!==e)||f(t,i)},T=function(t){var e=c(t)[g];return null!=e?e:t},E=function(t){var e;return!(!l(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t.n){t.n=!0;var i=t.c;y(function(){for(var n=t.v,s=1==t.s,r=0,a=function(e){var i,o,r=s?e.ok:e.fail;try{r?(s||(t.h=!0),(i=!0===r?n:r(n))===e.P?e.rej(TypeError("Promise-chain cycle")):(o=E(i))?o.call(i,e.res,e.rej):e.res(i)):e.rej(n)}catch(t){e.rej(t)}};i.length>r;)a(i[r++]);i.length=0,t.n=!1,e&&setTimeout(function(){M(t.p)&&(x?b.emit("unhandledRejection",n,t.p):o.console&&console.error&&console.error("Unhandled promise rejection",n)),t.a=void 0},1)})}},M=function(t){var e,i=t[v],n=i.a||i.c,o=0;if(i.h)return!1;for(;n.length>o;)if((e=n[o++]).fail||!M(e.P))return!1;return!0},L=function(t){var e=this;e.d||(e.d=!0,(e=e.r||e).v=t,e.s=2,e.a=e.c.slice(),A(e,!0))},D=function(t){var e,i=this;if(!i.d){i.d=!0,i=i.r||i;try{(e=E(t))?y(function(){var n={r:i,d:!1};try{e.call(t,s(D,n,1),s(L,n,1))}catch(t){L.call(n,t)}}):(i.v=t,i.s=1,A(i,!1))}catch(t){L.call({r:i,d:!1},t)}}};C||(w=function(t){h(t);var e={p:u(this,w,_),c:[],a:void 0,s:0,d:!1,v:void 0,h:!1,n:!1};this[v]=e;try{t(s(D,e,1),s(L,e,1))}catch(t){L.call(e,t)}},t("./$.mix")(w.prototype,{then:function(t,e){var i=c(c(this).constructor)[g],n={ok:"function"!=typeof t||t,fail:"function"==typeof e&&e},o=n.P=new(null!=i?i:w)(function(t,e){n.res=h(t),n.rej=h(e)}),s=this[v];return s.c.push(n),s.a&&s.a.push(n),s.s&&A(s,!1),o},catch:function(t){return this.then(void 0,t)}})),a(a.G+a.W+a.F*!C,{Promise:w}),t("./$.tag")(w,_),m(w),m(e=t("./$.core")[_]),a(a.S+a.F*!C,_,{reject:function(t){return new this(function(e,i){i(t)})}}),a(a.S+a.F*(!C||k(!0)),_,{resolve:function(t){return S(t)&&P(t.constructor,this)?t:new this(function(e){e(t)})}}),a(a.S+a.F*!(C&&t("./$.iter-detect")(function(t){w.all(t).catch(function(){})})),_,{all:function(t){var e=T(this),n=[];return new e(function(o,s){d(t,!1,n.push,n);var r=n.length,a=Array(r);r?i.each.call(n,function(t,i){e.resolve(t).then(function(t){a[i]=t,--r||o(a)},s)}):o(a)})},race:function(t){var e=T(this);return new e(function(i,n){d(t,!1,function(t){e.resolve(t).then(i,n)})})}})},{"./$":41,"./$.a-function":3,"./$.an-object":4,"./$.classof":8,"./$.core":14,"./$.ctx":15,"./$.def":16,"./$.for-of":24,"./$.global":26,"./$.is-object":34,"./$.iter-detect":38,"./$.library":43,"./$.microtask":45,"./$.mix":46,"./$.same":55,"./$.set-proto":56,"./$.species":5
219,"./$.strict-new":60,"./$.support-desc":66,"./$.tag":67,"./$.uid":74,"./$.wks":76}],132:[function(t){var e=t("./$.def"),i=Function.apply;e(e.S,"Reflect",{apply:function(t,e,n){return i.call(t,e,n)}})},{"./$.def":16}],133:[function(t){var e=t("./$"),i=t("./$.def"),n=t("./$.a-function"),o=t("./$.an-object"),s=t("./$.is-object"),r=Function.bind||t("./$.core").Function.prototype.bind;i(i.S+i.F*t("./$.fails")(function(){function t(){}return!(Reflect.construct(function(){},[],t)instanceof t)}),"Reflect",{construct:function(t,i){n(t);var a=arguments.length<3?t:n(arguments[2]);if(t==a){if(null!=i)switch(o(i).length){case 0:return new t;case 1:return new t(i[0]);case 2:return new t(i[0],i[1]);case 3:return new t(i[0],i[1],i[2]);case 4:return new t(i[0],i[1],i[2],i[3])}var l=[null];return l.push.apply(l,i),new(r.apply(t,l))}var c=a.prototype,h=e.create(s(c)?c:Object.prototype),u=Function.apply.call(t,h,i);return s(u)?u:h}})},{"./$":41,"./$.a-function":3,"./$.an-object":4,"./$.core":14,"./$.def":16,"./$.fails":21,"./$.is-object":34}],134:[function(t){var e=t("./$"),i=t("./$.def"),n=t("./$.an-object");i(i.S+i.F*t("./$.fails")(function(){Reflect.defineProperty(e.setDesc({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,i,o){n(t);try{return e.setDesc(t,i,o),!0}catch(t){return!1}}})},{"./$":41,"./$.an-object":4,"./$.def":16,"./$.fails":21}],135:[function(t){var e=t("./$.def"),i=t("./$").getDesc,n=t("./$.an-object");e(e.S,"Reflect",{deleteProperty:function(t,e){var o=i(n(t),e);return!(o&&!o.configurable)&&delete t[e]}})},{"./$":41,"./$.an-object":4,"./$.def":16}],136:[function(t){"use strict";var e=t("./$.def"),i=t("./$.an-object"),n=function(t){this._t=i(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};t("./$.iter-create")(n,"Object",function(){var t,e=this,i=e._k;do{if(e._i>=i.length)return{value:void 0,done:!0}}while(!((t=i[e._i++])in e._t));return{value:t,done:!1}}),e(e.S,"Reflect",{enumerate:function(t){return new n(t)}})},{"./$.an-object":4,"./$.def":16,"./$.iter-create":36}],137:[function(t){var e=t("./$"),i=t("./$.def"),n=t("./$.an-object");i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,i){return e.getDesc(n(t),i)}})},{"./$":41,"./$.an-object":4,"./$.def":16}],138:[function(t){var e=t("./$.def"),i=t("./$").getProto,n=t("./$.an-object");e(e.S,"Reflect",{getPrototypeOf:function(t){return i(n(t))}})},{"./$":41,"./$.an-object":4,"./$.def":16}],139:[function(t){function e(t,o){var a,l,c=arguments.length<3?t:arguments[2];return r(t)===c?t[o]:(a=i.getDesc(t,o))?n(a,"value")?a.value:void 0!==a.get?a.get.call(c):void 0:s(l=i.getProto(t))?e(l,o,c):void 0}var i=t("./$"),n=t("./$.has"),o=t("./$.def"),s=t("./$.is-object"),r=t("./$.an-object");o(o.S,"Reflect",{get:e})},{"./$":41,"./$.an-object":4,"./$.def":16,"./$.has":27,"./$.is-object":34}],140:[function(t){var e=t("./$.def");e(e.S,"Reflect",{has:function(t,e){return e in t}})},{"./$.def":16}],141:[function(t){var e=t("./$.def"),i=t("./$.an-object"),n=Object.isExtensible;e(e.S,"Reflect",{isExtensible:function(t){return i(t),!n||n(t)}})},{"./$.an-object":4,"./$.def":16}],142:[function(t){var e=t("./$.def");e(e.S,"Reflect",{ownKeys:t("./$.own-keys")})},{"./$.def":16,"./$.own-keys":49}],143:[function(t){var e=t("./$.def"),i=t("./$.an-object"),n=Object.preventExtensions;e(e.S,"Reflect",{preventExtensions:function(t){i(t);try{return n&&n(t),!0}catch(t){return!1}}})},{"./$.an-object":4,"./$.def":16}],144:[function(t){var e=t("./$.def"),i=t("./$.set-proto");i&&e(e.S,"Reflect",{setPrototypeOf:function(t,e){i.check(t,e);try{return i.set(t,e),!0}catch(t){return!1}}})},{"./$.def":16,"./$.set-proto":56}],145:[function(t){function e(t,o,l){var c,h,u=arguments.length<4?t:arguments[3],d=i.getDesc(r(t),o);if(!d){if(a(h=i.getProto(t)))return e(h,o,l,u);d=s(0)}return n(d,"value")?!(!1===d.writable||!a(u))&&((c=i.getDesc(u,o)||s(0)).value=l,i.setDesc(u,o,c),!0):void 0!==d.set&&(d.set.call(u,l),!0)}var i=t("./$"),n=t("./$.has"),o=t("./$.def"),s=t("./$.property-desc"),r=t("./$.an-object"),a=t("./$.is-object");o(o.S,"Reflect",{set:e})},{"./$":41,"./$.an-object":4,"./$.def":16,"./$.has":27,"./$.is-object":34,"./$.property-desc":52}],146:[function(t){var e=t("./$"),i=t("./$.global"),n=t("./$.cof"),o=t("./$.flags"),s=i.RegExp,r=s,a=s.prototype,l=/a/g,c=new s(l)!==l,h=function(){try{return"/a/i"==s(l,"i")}catch(t){}}();t("./$.support-desc")&&(c&&h||(s=function(t,e){var i="RegExp"==n(t),a=void 0===e;return this instanceof s||!i||!a?c?new r(i&&!a?t.source:t,e):new r(i?t.source:t,i&&a?o.call(t):e):t},e.each.call(e.getNames(r),function(t){t in s||e.setDesc(s,t,{configurable:!0,get:function(){return r[t]},set:function(e){r[t]=e}})}),a.constructor=s,s.prototype=a,t("./$.redef")(i,"RegExp",s))),t("./$.species")(s)},{"./$":41,"./$.cof":9,"./$.flags":23,"./$.global":26,"./$.redef":53,"./$.species":59,"./$.support-desc":66}],147:[function(t){var e=t("./$");t("./$.support-desc")&&"g"!=/./g.flags&&e.setDesc(RegExp.prototype,"flags",{configurable:!0,get:t("./$.flags")})},{"./$":41,"./$.flags":23,"./$.support-desc":66}],148:[function(t){t("./$.fix-re-wks")("match",1,function(t,e){return function(i){"use strict";var n=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))}})},{"./$.fix-re-wks":22}],149:[function(t){t("./$.fix-re-wks")("replace",2,function(t,e,
21i){return function(n,o){"use strict";var s=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,s,o):i.call(String(s),n,o)}})},{"./$.fix-re-wks":22}],150:[function(t){t("./$.fix-re-wks")("search",1,function(t,e){return function(i){"use strict";var n=t(this),o=null==i?void 0:i[e];return void 0!==o?o.call(i,n):new RegExp(i)[e](String(n))}})},{"./$.fix-re-wks":22}],151:[function(t){t("./$.fix-re-wks")("split",2,function(t,e,i){return function(n,o){"use strict";var s=t(this),r=null==n?void 0:n[e];return void 0!==r?r.call(n,s,o):i.call(String(s),n,o)}})},{"./$.fix-re-wks":22}],152:[function(t){"use strict";var e=t("./$.collection-strong");t("./$.collection")("Set",function(t){return function(){return t(this,arguments[0])}},{add:function(t){return e.def(this,t=0===t?0:t,t)}},e)},{"./$.collection":13,"./$.collection-strong":10}],153:[function(t){"use strict";var e=t("./$.def"),i=t("./$.string-at")(!1);e(e.P,"String",{codePointAt:function(t){return i(this,t)}})},{"./$.def":16,"./$.string-at":61}],154:[function(t){"use strict";var e=t("./$.def"),i=t("./$.to-length"),n=t("./$.string-context");e(e.P+e.F*!t("./$.fails")(function(){"q".endsWith(/./)}),"String",{endsWith:function(t){var e=n(this,t,"endsWith"),o=arguments[1],s=i(e.length),r=void 0===o?s:Math.min(i(o),s),a=String(t);return e.slice(r-a.length,r)===a}})},{"./$.def":16,"./$.fails":21,"./$.string-context":62,"./$.to-length":72}],155:[function(t){var e=t("./$.def"),i=t("./$.to-index"),n=String.fromCharCode,o=String.fromCodePoint;e(e.S+e.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(t){for(var e,o=[],s=arguments.length,r=0;s>r;){if(e=+arguments[r++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");o.push(65536>e?n(e):n(55296+((e-=65536)>>10),e%1024+56320))}return o.join("")}})},{"./$.def":16,"./$.to-index":69}],156:[function(t){"use strict";var e=t("./$.def"),i=t("./$.string-context");e(e.P,"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments[1])}})},{"./$.def":16,"./$.string-context":62}],157:[function(t){"use strict";var e=t("./$.string-at")(!0);t("./$.iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,i=this._t,n=this._i;return n>=i.length?{value:void 0,done:!0}:(t=e(i,n),this._i+=t.length,{value:t,done:!1})})},{"./$.iter-define":37,"./$.string-at":61}],158:[function(t){var e=t("./$.def"),i=t("./$.to-iobject"),n=t("./$.to-length");e(e.S,"String",{raw:function(t){for(var e=i(t.raw),o=n(e.length),s=arguments.length,r=[],a=0;o>a;)r.push(String(e[a++])),s>a&&r.push(String(arguments[a]));return r.join("")}})},{"./$.def":16,"./$.to-iobject":71,"./$.to-length":72}],159:[function(t){var e=t("./$.def");e(e.P,"String",{repeat:t("./$.string-repeat")})},{"./$.def":16,"./$.string-repeat":64}],160:[function(t){"use strict";var e=t("./$.def"),i=t("./$.to-length"),n=t("./$.string-context");e(e.P+e.F*!t("./$.fails")(function(){"q".startsWith(/./)}),"String",{startsWith:function(t){var e=n(this,t,"startsWith"),o=i(Math.min(arguments[1],e.length)),s=String(t);return e.slice(o,o+s.length)===s}})},{"./$.def":16,"./$.fails":21,"./$.string-context":62,"./$.to-length":72}],161:[function(t){"use strict";t("./$.string-trim")("trim",function(t){return function(){return t(this,3)}})},{"./$.string-trim":65}],162:[function(t){"use strict";var e=t("./$"),i=t("./$.global"),n=t("./$.has"),o=t("./$.support-desc"),s=t("./$.def"),r=t("./$.redef"),a=t("./$.shared"),l=t("./$.tag"),c=t("./$.uid"),h=t("./$.wks"),u=t("./$.keyof"),d=t("./$.get-names"),p=t("./$.enum-keys"),f=t("./$.is-object"),m=t("./$.an-object"),g=t("./$.to-iobject"),v=t("./$.property-desc"),y=e.getDesc,_=e.setDesc,b=e.create,x=d.get,w=i.Symbol,k=!1,C=h("_hidden"),S=e.isEnum,P=a("symbol-registry"),T=a("symbols"),E="function"==typeof w,A=Object.prototype,M=o?function(){try{return b(_({},C,{get:function(){return _(this,C,{value:!1})[C]}}))[C]||_}catch(t){return function(t,e,i){var n=y(A,e);n&&delete A[e],_(t,e,i),n&&t!==A&&_(A,e,n)}}}():_,L=function(t){var e=T[t]=b(w.prototype);return e._k=t,o&&k&&M(A,t,{configurable:!0,set:function(e){n(this,C)&&n(this[C],t)&&(this[C][t]=!1),M(this,t,v(1,e))}}),e}
21,D=function(t,e,i){return i&&n(T,e)?(i.enumerable?(n(t,C)&&t[C][e]&&(t[C][e]=!1),i=b(i,{enumerable:v(0,!1)})):(n(t,C)||_(t,C,v(1,{})),t[C][e]=!0),M(t,e,i)):_(t,e,i)},I=function(t,e){m(t);for(var i,n=p(e=g(e)),o=0,s=n.length;s>o;)D(t,i=n[o++],e[i]);return t},N=function(t,e){return void 0===e?b(t):I(b(t),e)},R=function(t){var e=S.call(this,t);return!(e||!n(this,t)||!n(T,t)||n(this,C)&&this[C][t])||e},O=function(t,e){var i=y(t=g(t),e);return!i||!n(T,e)||n(t,C)&&t[C][e]||(i.enumerable=!0),i},$=function(t){for(var e,i=x(g(t)),o=[],s=0;i.length>s;)n(T,e=i[s++])||e==C||o.push(e);return o},F=function(t){for(var e,i=x(g(t)),o=[],s=0;i.length>s;)n(T,e=i[s++])&&o.push(T[e]);return o};E||(w=function(){if(this instanceof w)throw TypeError("Symbol is not a constructor");return L(c(arguments[0]))},r(w.prototype,"toString",function(){return this._k}),e.create=N,e.isEnum=R,e.getDesc=O,e.setDesc=D,e.setDescs=I,e.getNames=d.get=$,e.getSymbols=F,o&&!t("./$.library")&&r(A,"propertyIsEnumerable",R,!0)),(!E||t("./$.fails")(function(){return"[{},[null]]"!=JSON.stringify([{a:w()},[w()]])}))&&r(w.prototype,"toJSON",function(){return E&&f(this)?this:void 0});var z={for:function(t){return n(P,t+="")?P[t]:P[t]=w(t)},keyFor:function(t){return u(P,t)},useSetter:function(){k=!0},useSimple:function(){k=!1}};e.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=h(t);z[t]=E?e:L(e)}),k=!0,s(s.G+s.W,{Symbol:w}),s(s.S,"Symbol",z),s(s.S+s.F*!E,"Object",{create:N,defineProperty:D,defineProperties:I,getOwnPropertyDescriptor:O,getOwnPropertyNames:$,getOwnPropertySymbols:F}),l(w,"Symbol"),l(Math,"Math",!0),l(i.JSON,"JSON",!0)},{"./$":41,"./$.an-object":4,"./$.def":16,"./$.enum-keys":19,"./$.fails":21,"./$.get-names":25,"./$.global":26,"./$.has":27,"./$.is-object":34,"./$.keyof":42,"./$.library":43,"./$.property-desc":52,"./$.redef":53,"./$.shared":57,"./$.support-desc":66,"./$.tag":67,"./$.to-iobject":71,"./$.uid":74,"./$.wks":76}],163:[function(t){"use strict";var e=t("./$"),i=t("./$.collection-weak"),n=t("./$.is-object"),o=t("./$.has"),s=i.frozenStore,r=i.WEAK,a=Object.isExtensible||n,l={},c=t("./$.collection")("WeakMap",function(t){return function(){return t(this,arguments[0])}},{get:function(t){if(n(t)){if(!a(t))return s(this).get(t);if(o(t,r))return t[r][this._i]}},set:function(t,e){return i.def(this,t,e)}},i,!0,!0);7!=(new c).set((Object.freeze||Object)(l),7).get(l)&&e.each.call(["delete","has","get","set"],function(e){var i=c.prototype,o=i[e];t("./$.redef")(i,e,function(t,i){if(n(t)&&!a(t)){var r=s(this)[e](t,i);return"set"==e?this:r}return o.call(this,t,i)})})},{"./$":41,"./$.collection":13,"./$.collection-weak":12,"./$.has":27,"./$.is-object":34,"./$.redef":53}],164:[function(t){"use strict";var e=t("./$.collection-weak");t("./$.collection")("WeakSet",function(t){return function(){return t(this,arguments[0])}},{add:function(t){return e.def(this,t,!0)}},e,!1,!0)},{"./$.collection":13,"./$.collection-weak":12}],165:[function(t){"use strict";var e=t("./$.def"),i=t("./$.array-includes")(!0);e(e.P,"Array",{includes:function(t){return i(this,t,arguments[1])}}),t("./$.unscope")("includes")},{"./$.array-includes":5,"./$.def":16,"./$.unscope":75}],166:[function(t){var e=t("./$.def");e(e.P,"Map",{toJSON:t("./$.collection-to-json")("Map")})},{"./$.collection-to-json":11,"./$.def":16}],167:[function(t){var e=t("./$.def"),i=t("./$.object-to-array")(!0);e(e.S,"Object",{entries:function(t){return i(t)}})},{"./$.def":16,"./$.object-to-array":48}],168:[function(t){var e=t("./$"),i=t("./$.def"),n=t("./$.own-keys"),o=t("./$.to-iobject"),s=t("./$.property-desc");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var i,r,a=o(t),l=e.setDesc,c=e.getDesc,h=n(a),u={},d=0;h.length>d;)r=c(a,i=h[d++]),i in u?l(u,i,s(0,r)):u[i]=r;return u}})},{"./$":41,"./$.def":16,"./$.own-keys":49,"./$.property-desc":52,"./$.to-iobject":71}],169:[function(t){var e=t("./$.def"),i=t("./$.object-to-array")(!1);e(e.S,"Object",{values:function(t){return i(t)}})},{"./$.def":16,"./$.object-to-array":48}],170:[function(t){var e=t("./$.def"),i=t("./$.replacer")(/[\\^$*+?.()|[\]{}]/g,"\\$&");e(e.S,"RegExp",{escape:function(t){return i(t)}})},{"./$.def":16,"./$.replacer":54}],171:[function(t){var e=t("./$.def");e(e.P,"Set",{toJSON:t("./$.collection-to-json")("Set")})},{"./$.collection-to-json":11,"./$.def":16}],172:[function(t){"use strict";var e=t("./$.def"),i=t("./$.string-at")(!0);e(e.P,"String",{at:function(t){return i(this,t)}})},{"./$.def":16,"./$.string-at":61}],173:[function(t){"use strict";var e=t("./$.def"),i=t("./$.string-pad");e(e.P,"String",{padLeft:function(t){return i(this,t,arguments[1],!0)}})},{"./$.def":16,"./$.string-pad":63}],174:[function(t){"use strict";var e=t("./$.def"),i=t("./$.string-pad");e(e.P,"String",{padRight:function(t){return i(this,t,arguments[1],!1)}})},{"./$.def":16,"./$.string-pad":63}],175:[function(t){"use strict";t("./$.string-trim")("trimLeft",function(t){return function(){return t(this,1)}})},{"./$.string-trim":65}],176:[function(t){"use strict";t("./$.string-trim")("trimRight",function(t){return function(){return t(this,2)}})},{"./$.string-trim":65}],177:[function(t){var e=t("./$"),i=t("./$.def"),n=t("./$.core").Array||Array,o={},s=function(i,s){e.each.call(i.split(","),function(e){null==s&&e in n?o[e]=n[e]:e in[]&&(o[e]=t("./$.ctx")(Function.call,[][e],s))})};s("pop,reverse,shift,keys,values,entries",1),s("indexOf,every,some,forEach,map,filter,find,findIndex,includes",3),s("join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill"),i(i.S,"Array",o)},{"./$":41,"./$.core":14,"./$.ctx":15,"./$.def":16}],178:[function(t){t("./es6.array.iterator");var e=t("./$.global"),i=t("./$.hide"),n=t("./$.iterators"),o=t("./$.wks")("iterator"),s=e.NodeList,r=e.HTMLCollection,a=s&&s.prototype,l=r&&r.prototype,c=n.NodeList=n.HTMLCollection=n.Array;!s||o in a||i(a,o,c),!r||o in l||i(l,o,c)},{"./$.global":26,"./$.hide":28,"./$.iterators":40,"./$.wks":76,"./es6.array.iterator":84}],179:[function(t){var e=t("./$.def"),i=t("./$.task");e(e.G+e.B,{setImmediate:i.set,clearImmediate:i.clear})},{"./$.def":16,"./$.task":68}],180:[function(t){var e=t("./$.global"),i=t("./$.def"),n=t("./$.invoke"),o=t("./$.partial"),s=e.navigator,r=!!s&&/MSIE .\./.test(s.userAgent),a=function(t){return r?function(e,i){return t(n(o,[].slice.call(arguments,2),"function"==typeof e?e:Function(e)),i)}:t};i(i.G+i.B+i.F*r,{setTimeout:a(e.setTimeout),setInterval:a(e.setInterval)})},{"./$.def":16,"./$.global":26,"./$.invoke":30,"./$.partial":50}],181:[function(t,e){t("./modules/es5"),t("./modules/es6.symbol"),t("./modules/es6.object.assign"),t("./modules/es6.object.is"),t("./modules/es6.object.set-prototype-of"),t("./modules/es6.object.to-string"),t("./modules/es6.object.freeze"),t("./modules/es6.object.seal"),t("./modules/es6.object.prevent-extensions"),t("./modules/es6.object.is-frozen"),t("./modules/es6.object.is-sealed"),t("./modules/es6.object.is-extensible"),t("./modules/es6.object.get-own-property-descriptor"),t("./modules/es6.object.get-prototype-of"),t("./modules/es6.object.keys"),t("./modules/es6.object.get-own-property-names"),t("./modules/es6.function.name"),t("./modules/es6.function.has-instance"),t("./modules/es6.number.constructor"),t("./modules/es6.number.epsilon"),t("./modules/es6.number.is-finite"),t("./modules/es6.number.is-integer"),t("./modules/es6.number.is-nan"),t("./modules/es6.number.is-safe-integer"),t("./modules/es6.number.max-safe-integer"),t("./modules/es6.number.min-safe-integer"),t("./modules/es6.number.parse-float"),t("./modules/es6.number.parse-int"),t("./modules/es6.math.acosh"),t("./modules/es6.math.asinh"),t("./modules/es6.math.atanh"),t("./modules/es6.math.cbrt"),t("./modules/es6.math.clz32"),t("./modules/es6.math.cosh"),t("./modules/es6.math.expm1"),t("./modules/es6.math.fround"),t("./modules/es6.math.hypot"),t("./modules/es6.math.imul"),t("./modules/es6.math.log10"),t("./modules/es6.math.log1p"),t("./modules/es6.math.log2"),t("./modules/es6.math.sign"),t("./modules/es6.math.sinh"),t("./modules/es6.math.tanh"),t("./modules/es6.math.trunc"),t("./modules/es6.string.from-code-point"),t("./modules/es6.string.raw"),t("./modules/es6.string.trim"),t("./modules/es6.string.iterator"),t("./modules/es6.string.code-point-at"),t("./modules/es6.string.ends-with"),t("./modules/es6.string.includes"),t("./modules/es6.string.repeat"),t("./modules/es6.string.starts-with"),t("./modules/es6.array.from"),t("./modules/es6.array.of"),t("./modules/es6.array.iterator"),t("./modules/es6.array.species"),t("./modules/es6.array.copy-within"),t("./modules/es6.array.fill"),t("./modules/es6.array.find"),t("./modules/es6.array.find-index"),t("./modules/es6.regexp.constructor"),t("./modules/es6.regexp.flags"),t("./modules/es6.regexp.match"),t("./modules/es6.regexp.replace"),t("./modules/es6.regexp.search"),t("./modules/es6.regexp.split"),t("./modules/es6.promise"),t("./modules/es6.map"),t("./modules/es6.set"),t("./modules/es6.weak-map"),t("./modules/es6.weak-set"),t("./modules/es6.reflect.apply"),t("./modules/es6.reflect.construct"),t("./modules/es6.reflect.define-property"),t("./modules/es6.reflect.delete-property"),t("./modules/es6.reflect.enumerate"),t("./modules/es6.reflect.get"),t("./modules/es6.reflect.get-own-property-descriptor"),t("./modules/es6.reflect.get-prototype-of"),t("./modules/es6.reflect.has"),t("./modules/es6.reflect.is-extensible"),
22t("./modules/es6.reflect.own-keys"),t("./modules/es6.reflect.prevent-extensions"),t("./modules/es6.reflect.set"),t("./modules/es6.reflect.set-prototype-of"),t("./modules/es7.array.includes"),t("./modules/es7.string.at"),t("./modules/es7.string.pad-left"),t("./modules/es7.string.pad-right"),t("./modules/es7.string.trim-left"),t("./modules/es7.string.trim-right"),t("./modules/es7.regexp.escape"),t("./modules/es7.object.get-own-property-descriptors"),t("./modules/es7.object.values"),t("./modules/es7.object.entries"),t("./modules/es7.map.to-json"),t("./modules/es7.set.to-json"),t("./modules/js.array.statics"),t("./modules/web.timers"),t("./modules/web.immediate"),t("./modules/web.dom.iterable"),e.exports=t("./modules/$.core")},{"./modules/$.core":14,"./modules/es5":78,"./modules/es6.array.copy-within":79,"./modules/es6.array.fill":80,"./modules/es6.array.find":82,"./modules/es6.array.find-index":81,"./modules/es6.array.from":83,"./modules/es6.array.iterator":84,"./modules/es6.array.of":85,"./modules/es6.array.species":86,"./modules/es6.function.has-instance":87,"./modules/es6.function.name":88,"./modules/es6.map":89,"./modules/es6.math.acosh":90,"./modules/es6.math.asinh":91,"./modules/es6.math.atanh":92,"./modules/es6.math.cbrt":93,"./modules/es6.math.clz32":94,"./modules/es6.math.cosh":95,"./modules/es6.math.expm1":96,"./modules/es6.math.fround":97,"./modules/es6.math.hypot":98,"./modules/es6.math.imul":99,"./modules/es6.math.log10":100,"./modules/es6.math.log1p":101,"./modules/es6.math.log2":102,"./modules/es6.math.sign":103,"./modules/es6.math.sinh":104,"./modules/es6.math.tanh":105,"./modules/es6.math.trunc":106,"./modules/es6.number.constructor":107,"./modules/es6.number.epsilon":108,"./modules/es6.number.is-finite":109,"./modules/es6.number.is-integer":110,"./modules/es6.number.is-nan":111,"./modules/es6.number.is-safe-integer":112,"./modules/es6.number.max-safe-integer":113,"./modules/es6.number.min-safe-integer":114,"./modules/es6.number.parse-float":115,"./modules/es6.number.parse-int":116,"./modules/es6.object.assign":117,"./modules/es6.object.freeze":118,"./modules/es6.object.get-own-property-descriptor":119,"./modules/es6.object.get-own-property-names":120,"./modules/es6.object.get-prototype-of":121,"./modules/es6.object.is":125,"./modules/es6.object.is-extensible":122,"./modules/es6.object.is-frozen":123,"./modules/es6.object.is-sealed":124,"./modules/es6.object.keys":126,"./modules/es6.object.prevent-extensions":127,"./modules/es6.object.seal":128,"./modules/es6.object.set-prototype-of":129,"./modules/es6.object.to-string":130,"./modules/es6.promise":131,"./modules/es6.reflect.apply":132,"./modules/es6.reflect.construct":133,"./modules/es6.reflect.define-property":134,"./modules/es6.reflect.delete-property":135,"./modules/es6.reflect.enumerate":136,"./modules/es6.reflect.get":139,"./modules/es6.reflect.get-own-property-descriptor":137,"./modules/es6.reflect.get-prototype-of":138,"./modules/es6.reflect.has":140,"./modules/es6.reflect.is-extensible":141,"./modules/es6.reflect.own-keys":142,"./modules/es6.reflect.prevent-extensions":143,"./modules/es6.reflect.set":145,"./modules/es6.reflect.set-prototype-of":144,"./modules/es6.regexp.constructor":146,"./modules/es6.regexp.flags":147,"./modules/es6.regexp.match":148,"./modules/es6.regexp.replace":149,"./modules/es6.regexp.search":150,"./modules/es6.regexp.split":151,"./modules/es6.set":152,"./modules/es6.string.code-point-at":153,"./modules/es6.string.ends-with":154,"./modules/es6.string.from-code-point":155,"./modules/es6.string.includes":156,"./modules/es6.string.iterator":157,"./modules/es6.string.raw":158,"./modules/es6.string.repeat":159,"./modules/es6.string.starts-with":160,"./modules/es6.string.trim":161,"./modules/es6.symbol":162,"./modules/es6.weak-map":163,"./modules/es6.weak-set":164,"./modules/es7.array.includes":165,"./modules/es7.map.to-json":166,"./modules/es7.object.entries":167,"./modules/es7.object.get-own-property-descriptors":168,"./modules/es7.object.values":169,"./modules/es7.regexp.escape":170,"./modules/es7.set.to-json":171,"./modules/es7.string.at":172,"./modules/es7.string.pad-left":173,"./modules/es7.string.pad-right":174,"./modules/es7.string.trim-left":175,"./modules/es7.string.trim-right":176,"./modules/js.array.statics":177,"./modules/web.dom.iterable":178,"./modules/web.immediate":179,"./modules/web.timers":180}],182:[function(t,e){(function(t,i){!function(i){"use strict";function n(t,e,i,n){var o=Object.create((e||s).prototype);return o._invoke=u(t,i||null,new f(n||[])),o}function o(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}function s(){}function r(){}function a(){}function l(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function h(e){function i(t,i){var n=e[t](i),o=n.value;return o instanceof c?Promise.resolve(o.arg).then(s,r):Promise.resolve(o).then(function(t){return n.value=t,n})}function n(t,e){var n=o?o.then(function(){return i(t,e)}):new Promise(function(n){n(i(t,e))});return o=n.catch(function(){}),n}"object"==typeof t&&t.domain&&(i=t.domain.bind(i));var o,s=i.bind(e,"next"),r=i.bind(e,"throw");i.bind(e,"return"),this._invoke=n}function u(t,e,i){var n=w;return function(s,r){if(n===C)throw new Error("Generator is already running");if(n===S){if("throw"===s)throw r;return g()}for(;;){var a=i.delegate;if(a){if("return"===s||"throw"===s&&a.iterator[s]===v){i.delegate=null;var l=a.iterator.return;if(l)if("throw"===(c=o(l,a.iterator,r)).type){s="throw",r=c.arg;continue}if("return"===s)continue}var c;if("throw"===(c=o(a.iterator[s],a.iterator,r)).type){i.delegate=null,s="throw",r=c.arg;continue}if(s="next",r=v,!(h=c.arg).done)return n=k,h;i[a.resultName]=h.value,i.next=a.nextLoc,i.delegate=null}if("next"===s)i.sent=n===k?r:v;else if("throw"===s){if(n===w)throw n=S,r;i.dispatchException(r)&&(s="next",r=v)}else"return"===s&&i.abrupt("return",r);
vendor: 4,107 bytes, line 22
22if(n=C,"normal"===(c=o(t,e,i)).type){n=i.done?S:k;var h={value:c.arg,done:i.done};if(c.arg!==P)return h;i.delegate&&"next"===s&&(r=v)}else"throw"===c.type&&(n=S,s="throw",r=c.arg)}}}function d(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function p(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function f(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(d,this),this.reset(!0)}function m(t){if(t){var e=t[_];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,n=function e(){for(;++i<t.length;)if(y.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=v,e.done=!0,e};return n.next=n}}return{next:g}}function g(){return{value:v,done:!0}}var v,y=Object.prototype.hasOwnProperty,_="function"==typeof Symbol&&Symbol.iterator||"@@iterator",b="object"==typeof e,x=i.regeneratorRuntime;if(x)b&&(e.exports=x);else{(x=i.regeneratorRuntime=b?e.exports:{}).wrap=n;var w="suspendedStart",k="suspendedYield",C="executing",S="completed",P={},T=a.prototype=s.prototype;r.prototype=T.constructor=a,a.constructor=r,r.displayName="GeneratorFunction",x.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===r||"GeneratorFunction"===(e.displayName||e.name))},x.mark=function(t){return t.__proto__=a,t.prototype=Object.create(T),t},x.awrap=function(t){return new c(t)},l(h.prototype),x.async=function(t,e,i,o){var s=new h(n(t,e,i,o));return x.isGeneratorFunction(e)?s:s.next().then(function(t){return t.done?t.value:s.next()})},l(T),T[_]=function(){return this},T.toString=function(){return"[object Generator]"},x.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},x.values=m,f.prototype={constructor:f,reset:function(t){if(this.prev=0,this.next=0,this.sent=v,this.done=!1,this.delegate=null,this.tryEntries.forEach(p),!t)for(var e in this)"t"===e.charAt(0)&&y.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=v)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){function e(e,n){return s.type="throw",s.arg=t,i.next=e,!!n}if(this.done)throw t;for(var i=this,n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],s=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var r=y.call(o,"catchLoc"),a=y.call(o,"finallyLoc");if(r&&a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(r){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!a)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&y.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?this.next=o.finallyLoc:this.complete(s),P},complete:function(t,e){if("throw"===t.type)throw t.arg;"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=t.arg,this.next="end"):"normal"===t.type&&e&&(this.next=e)},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),p(i),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var o=n.arg;p(i)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:m(t),resultName:e,nextLoc:i},P}}}}("object"==typeof i?i:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:1}]},{},[2]),function(t){function e(n){if(i[n])return i[n].exports;
22var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){var n=i(81),o=i(174);window.React=n,window.ReactDOM=o},function(t){"use strict";function e(t,e,n,o,s,r,a,l){if(i(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var h=[n,o,s,r,a,l],u=0;(c=new Error(e.replace(/%s/g,function(){return h[u++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}var i=function(){};t.exports=e},function(t,e,i){"use strict";var n=i(7);t.exports=n},function(t){"use strict";function e(t){for(var e=arguments.length-1,i="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,n=0;n<e;n++)i+="&args[]="+encodeURIComponent(arguments[n+1]);i+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(i);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=e},function(t){"use strict";function e(t){if(null==t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}function i(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;var n=Object.getOwnPropertyNames(e).map(function(t){return e[t]});if("0123456789"!==n.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(t){o[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(t){return!1}}var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=i()?Object.assign:function(t){for(var i,r,a=e(t),l=1;l<arguments.length;l++){for(var c in i=Object(arguments[l]))o.call(i,c)&&(a[c]=i[c]);if(n){r=n(i);for(var h=0;h<r.length;h++)s.call(i,r[h])&&(a[r[h]]=i[r[h]])}}return a}},function(t,e,i){"use strict";function n(t,e){return 1===t.nodeType&&t.getAttribute(f)===String(e)||8===t.nodeType&&t.nodeValue===" react-text: "+e+" "||8===t.nodeType&&t.nodeValue===" react-empty: "+e+" "}function o(t){for(var e;e=t._renderedComponent;)t=e;return t}function s(t,e){var i=o(t);i._hostNode=e,e[g]=i}function r(t){var e=t._hostNode;e&&(delete e[g],t._hostNode=null)}function a(t,e){if(!(t._flags&m.hasCachedChildNodes)){var i=t._renderedChildren,r=e.firstChild;t:for(var a in i)if(i.hasOwnProperty(a)){var l=i[a],c=o(l)._domID;if(0!==c){for(;null!==r;r=r.nextSibling)if(n(r,c)){s(l,r);continue t}u("32",c)}}t._flags|=m.hasCachedChildNodes}}function l(t){if(t[g])return t[g];for(var e=[];!t[g];){if(e.push(t),!t.parentNode)return null;t=t.parentNode}for(var i,n;t&&(n=t[g]);t=e.pop())i=n,e.length&&a(n,t);return i}function c(t){var e=l(t);return null!=e&&e._hostNode===t?e:null}function h(t){if(void 0===t._hostNode&&u("33"),t._hostNode)return t._hostNode;for(var e=[];!t._hostNode;)e.push(t),t._hostParent||u("34"),t=t._hostParent;for(;e.length;t=e.pop())a(t,t._hostNode);return t._hostNode}var u=i(3),d=i(18),p=i(57),f=(i(1),d.ID_ATTRIBUTE_NAME),m=p,g="__reactInternalInstance$"+Math.random().toString(36).slice(2),v={getClosestInstanceFromNode:l,getInstanceFromNode:c,getNodeFromInstance:h,precacheChildNodes:a,precacheNode:s,uncacheNode:r};t.exports=v},function(t){"use strict";var e=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:e,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:e&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};t.exports=i},function(t){"use strict";function e(t){return function(){return t}}var i=function(){};i.thatReturns=e,i.thatReturnsFalse=e(!1),i.thatReturnsTrue=e(!0),i.thatReturnsNull=e(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t){"use strict";var e=null;t.exports={debugTool:e}},function(t,e,i){"use strict";function n(){S.ReactReconcileTransaction&&x||h("123")}function o(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=d.getPooled(),this.reconcileTransaction=S.ReactReconcileTransaction.getPooled(!0)}function s(t,e,i,o,s,r){return n(),x.batchedUpdates(t,e,i,o,s,r)}function r(t,e){return t._mountOrder-e._mountOrder}function a(t){var e=t.dirtyComponentsLength;e!==v.length&&h("124",e,v.length),v.sort(r),y++;for(var i=0;i<e;i++){var n,o=v[i],s=o._pendingCallbacks;
22if(o._pendingCallbacks=null,f.logTopLevelRenders){var a=o;o._currentElement.type.isReactTopLevelWrapper&&(a=o._renderedComponent),n="React update: "+a.getName(),console.time(n)}if(m.performUpdateIfNecessary(o,t.reconcileTransaction,y),n&&console.timeEnd(n),s)for(var l=0;l<s.length;l++)t.callbackQueue.enqueue(s[l],o.getPublicInstance())}}function l(t){return n(),x.isBatchingUpdates?(v.push(t),void(null==t._updateBatchNumber&&(t._updateBatchNumber=y+1))):void x.batchedUpdates(l,t)}function c(t,e){x.isBatchingUpdates||h("125"),_.enqueue(t,e),b=!0}var h=i(3),u=i(4),d=i(55),p=i(13),f=i(73),m=i(14),g=i(25),v=(i(1),[]),y=0,_=d.getPooled(),b=!1,x=null,w=[{initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),k()):v.length=0}},{initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}}];u(o.prototype,g,{getTransactionWrappers:function(){return w},destructor:function(){this.dirtyComponentsLength=null,d.release(this.callbackQueue),this.callbackQueue=null,S.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(t,e,i){return g.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,t,e,i)}}),p.addPoolingTo(o);var k=function(){for(;v.length||b;){if(v.length){var t=o.getPooled();t.perform(a,null,t),o.release(t)}if(b){b=!1;var e=_;_=d.getPooled(),e.notifyAll(),d.release(e)}}},C={injectReconcileTransaction:function(t){t||h("126"),S.ReactReconcileTransaction=t},injectBatchingStrategy:function(t){t||h("127"),"function"!=typeof t.batchedUpdates&&h("128"),"boolean"!=typeof t.isBatchingUpdates&&h("129"),x=t}},S={ReactReconcileTransaction:null,batchedUpdates:s,enqueueUpdate:l,flushBatchedUpdates:k,injection:C,asap:c};t.exports=S},function(t,e,i){"use strict";function n(t,e,i,n){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=i;var o=this.constructor.Interface;for(var s in o)if(o.hasOwnProperty(s)){var a=o[s];a?this[s]=a(i):"target"===s?this.target=n:this[s]=i[s]}var l=null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue;return this.isDefaultPrevented=l?r.thatReturnsTrue:r.thatReturnsFalse,this.isPropagationStopped=r.thatReturnsFalse,this}var o=i(4),s=i(13),r=i(7),a=(i(2),["dispatchConfig","_targetInst","nativeEvent","isDefaultPrevented","isPropagationStopped","_dispatchListeners","_dispatchInstances"]),l={type:null,target:null,currentTarget:r.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=r.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=r.thatReturnsTrue)},persist:function(){this.isPersistent=r.thatReturnsTrue},isPersistent:r.thatReturnsFalse,destructor:function(){var t=this.constructor.Interface;for(var e in t)this[e]=null;for(var i=0;i<a.length;i++)this[a[i]]=null}}),n.Interface=l,n.augmentClass=function(t,e){var i=this,n=function(){};n.prototype=i.prototype;var r=new n;o(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=o({},i.Interface,e),t.augmentClass=i.augmentClass,s.addPoolingTo(t,s.fourArgumentPooler)},s.addPoolingTo(n,s.fourArgumentPooler),t.exports=n},function(t){"use strict";var e={current:null};t.exports=e},function(t,e,i){"use strict";var n=i(4),o=i(154),s=i(44),r=i(159),a=i(155),l=i(156),c=i(15),h=i(157),u=i(160),d=i(79),p=(i(2),c.createElement),f=c.createFactory,m=c.cloneElement,g=n,v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:d},Component:s,PureComponent:r,createElement:p,cloneElement:m,isValidElement:c.isValidElement,PropTypes:h,createClass:a.createClass,createFactory:f,createMixin:function(t){return t},DOM:l,version:u,__spread:g};t.exports=v}
22,function(t,e,i){"use strict";var n=i(3),o=(i(1),function(t){var e=this;if(e.instancePool.length){var i=e.instancePool.pop();return e.call(i,t),i}return new e(t)}),s=function(t,e){var i=this;if(i.instancePool.length){var n=i.instancePool.pop();return i.call(n,t,e),n}return new i(t,e)},r=function(t,e,i){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e,i),o}return new n(t,e,i)},a=function(t,e,i,n){var o=this;if(o.instancePool.length){var s=o.instancePool.pop();return o.call(s,t,e,i,n),s}return new o(t,e,i,n)},l=function(t){var e=this;t instanceof e||n("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=10,h=o,u=function(t,e){var i=t;return i.instancePool=[],i.getPooled=e||h,i.poolSize||(i.poolSize=c),i.release=l,i},d={addPoolingTo:u,oneArgumentPooler:o,twoArgumentPooler:s,threeArgumentPooler:r,fourArgumentPooler:a};t.exports=d},function(t,e,i){"use strict";function n(){o.attachRefs(this,this._currentElement)}var o=i(130),s=(i(8),i(2),{mountComponent:function(t,e,i,o,s,r){var a=t.mountComponent(e,i,o,s,r);return t._currentElement&&null!=t._currentElement.ref&&e.getReactMountReady().enqueue(n,t),a},getHostNode:function(t){return t.getHostNode()},unmountComponent:function(t,e){o.detachRefs(t,t._currentElement),t.unmountComponent(e)},receiveComponent:function(t,e,i,s){var r=t._currentElement;if(e!==r||s!==t._context){var a=o.shouldUpdateRefs(r,e);a&&o.detachRefs(t,r),t.receiveComponent(e,i,s),a&&t._currentElement&&null!=t._currentElement.ref&&i.getReactMountReady().enqueue(n,t)}},performUpdateIfNecessary:function(t,e,i){t._updateBatchNumber===i&&t.performUpdateIfNecessary(e)}});t.exports=s},function(t,e,i){"use strict";function n(t){return void 0!==t.ref}function o(t){return void 0!==t.key}var s=i(4),r=i(11),a=(i(2),i(71),Object.prototype.hasOwnProperty),l=i(69),c={key:!0,ref:!0,__self:!0,__source:!0},h=function(t,e,i,n,o,s,r){return{$$typeof:l,type:t,key:e,ref:i,props:r,_owner:s}};h.createElement=function(t,e,i){var s,l={},u=null,d=null,p=null,f=null;if(null!=e)for(s in n(e)&&(d=e.ref),o(e)&&(u=""+e.key),p=void 0===e.__self?null:e.__self,f=void 0===e.__source?null:e.__source,e)a.call(e,s)&&!c.hasOwnProperty(s)&&(l[s]=e[s]);var m=arguments.length-2;if(1===m)l.children=i;else if(m>1){for(var g=Array(m),v=0;v<m;v++)g[v]=arguments[v+2];l.children=g}if(t&&t.defaultProps){var y=t.defaultProps;for(s in y)void 0===l[s]&&(l[s]=y[s])}return h(t,u,d,p,f,r.current,l)},h.createFactory=function(t){var e=h.createElement.bind(null,t);return e.type=t,e},h.cloneAndReplaceKey=function(t,e){return h(t.type,e,t.ref,t._self,t._source,t._owner,t.props)},h.cloneElement=function(t,e,i){var l,u,d=s({},t.props),p=t.key,f=t.ref,m=t._self,g=t._source,v=t._owner;if(null!=e)for(l in n(e)&&(f=e.ref,v=r.current),o(e)&&(p=""+e.key),t.type&&t.type.defaultProps&&(u=t.type.defaultProps),e)a.call(e,l)&&!c.hasOwnProperty(l)&&(void 0===e[l]&&void 0!==u?d[l]=u[l]:d[l]=e[l]);var y=arguments.length-2;if(1===y)d.children=i;else if(y>1){for(var _=Array(y),b=0;b<y;b++)_[b]=arguments[b+2];d.children=_}return h(t.type,p,f,m,g,v,d)},h.isValidElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===l},t.exports=h},function(t){"use strict";function e(t){for(var e=arguments.length-1,i="Minified React error #"+t+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+t,n=0;n<e;n++)i+="&args[]="+encodeURIComponent(arguments[n+1]);i+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(i);throw o.name="Invariant Violation",o.framesToPop=1,o}t.exports=e},function(t,e,i){"use strict";function n(t){if(g){var e=t.node,i=t.children;if(i.length)for(var n=0;n<i.length;n++)v(e,i[n],null);else null!=t.html?u(e,t.html):null!=t.text&&p(e,t.text)}}function o(t,e){t.parentNode.replaceChild(e.node,t),n(e)}function s(t,e){g?t.children.push(e):t.node.appendChild(e.node)}function r(t,e){g?t.html=e:u(t.node,e)}function a(t,e){g?t.text=e:p(t.node,e)}function l(){return this.node.nodeName}function c(t){return{node:t,children:[],html:null,text:null,toString:l}}var h=i(31),u=i(28),d=i(38),p=i(67),f=1,m=11,g="undefined"!=typeof document&&"number"==typeof document.documentMode||"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent&&/\bEdge\/\d/.test(navigator.userAgent),v=d(function(t,e,
22i){e.node.nodeType===m||e.node.nodeType===f&&"object"===e.node.nodeName.toLowerCase()&&(null==e.node.namespaceURI||e.node.namespaceURI===h.html)?(n(e),t.insertBefore(e.node,i)):(t.insertBefore(e.node,i),n(e))});c.insertTreeBefore=v,c.replaceChildWithTree=o,c.queueChild=s,c.queueHTML=r,c.queueText=a,t.exports=c},function(t,e,i){"use strict";function n(t,e){return(t&e)===e}var o=i(3),s=(i(1),{MUST_USE_PROPERTY:1,HAS_BOOLEAN_VALUE:4,HAS_NUMERIC_VALUE:8,HAS_POSITIVE_NUMERIC_VALUE:24,HAS_OVERLOADED_BOOLEAN_VALUE:32,injectDOMPropertyConfig:function(t){var e=s,i=t.Properties||{},r=t.DOMAttributeNamespaces||{},l=t.DOMAttributeNames||{},c=t.DOMPropertyNames||{},h=t.DOMMutationMethods||{};for(var u in t.isCustomAttribute&&a._isCustomAttributeFunctions.push(t.isCustomAttribute),i){a.properties.hasOwnProperty(u)&&o("48",u);var d=u.toLowerCase(),p=i[u],f={attributeName:d,attributeNamespace:null,propertyName:u,mutationMethod:null,mustUseProperty:n(p,e.MUST_USE_PROPERTY),hasBooleanValue:n(p,e.HAS_BOOLEAN_VALUE),hasNumericValue:n(p,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:n(p,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:n(p,e.HAS_OVERLOADED_BOOLEAN_VALUE)};if(f.hasBooleanValue+f.hasNumericValue+f.hasOverloadedBooleanValue<=1||o("50",u),l.hasOwnProperty(u)){var m=l[u];f.attributeName=m}r.hasOwnProperty(u)&&(f.attributeNamespace=r[u]),c.hasOwnProperty(u)&&(f.propertyName=c[u]),h.hasOwnProperty(u)&&(f.mutationMethod=h[u]),a.properties[u]=f}}}),r=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a={ID_ATTRIBUTE_NAME:"data-reactid",ROOT_ATTRIBUTE_NAME:"data-reactroot",ATTRIBUTE_NAME_START_CHAR:r,ATTRIBUTE_NAME_CHAR:r+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",properties:{},getPossibleStandardName:null,_isCustomAttributeFunctions:[],isCustomAttribute:function(t){for(var e=0;e<a._isCustomAttributeFunctions.length;e++){if((0,a._isCustomAttributeFunctions[e])(t))return!0}return!1},injection:s};t.exports=a},function(t){"use strict";var e={};t.exports=e},function(t,e,i){"use strict";function n(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}function o(t,e,i){switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":return!(!i.disabled||!n(e));default:return!1}}var s=i(3),r=i(32),a=i(33),l=i(37),c=i(63),h=i(64),u=(i(1),{}),d=null,p=function(t,e){t&&(a.executeDispatchesInOrder(t,e),t.isPersistent()||t.constructor.release(t))},f=function(t){return p(t,!0)},m=function(t){return p(t,!1)},g=function(t){return"."+t._rootNodeID},v={injection:{injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},putListener:function(t,e,i){"function"!=typeof i&&s("94",e,typeof i);var n=g(t);(u[e]||(u[e]={}))[n]=i;var o=r.registrationNameModules[e];o&&o.didPutListener&&o.didPutListener(t,e,i)},getListener:function(t,e){var i=u[e];if(o(e,t._currentElement.type,t._currentElement.props))return null;var n=g(t);return i&&i[n]},deleteListener:function(t,e){var i=r.registrationNameModules[e];i&&i.willDeleteListener&&i.willDeleteListener(t,e);var n=u[e];n&&delete n[g(t)]},deleteAllListeners:function(t){var e=g(t);for(var i in u)if(u.hasOwnProperty(i)&&u[i][e]){var n=r.registrationNameModules[i];n&&n.willDeleteListener&&n.willDeleteListener(t,i),delete u[i][e]}},extractEvents:function(t,e,i,n){for(var o,s=r.plugins,a=0;a<s.length;a++){var l=s[a];if(l){var h=l.extractEvents(t,e,i,n);h&&(o=c(o,h))}}return o},enqueueEvents:function(t){t&&(d=c(d,t))},processEventQueue:function(t){var e=d;d=null,h(e,t?f:m),d&&s("95"),l.rethrowCaughtError()},__purge:function(){u={}},__getListenerBank:function(){return u}};t.exports=v},function(t,e,i){"use strict";
22function n(t,e,i){var n=e.dispatchConfig.phasedRegistrationNames[i];return v(t,n)}function o(t,e,i){var o=n(t,i,e);o&&(i._dispatchListeners=m(i._dispatchListeners,o),i._dispatchInstances=m(i._dispatchInstances,t))}function s(t){t&&t.dispatchConfig.phasedRegistrationNames&&f.traverseTwoPhase(t._targetInst,o,t)}function r(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst,i=e?f.getParentInstance(e):null;f.traverseTwoPhase(i,o,t)}}function a(t,e,i){if(i&&i.dispatchConfig.registrationName){var n=i.dispatchConfig.registrationName,o=v(t,n);o&&(i._dispatchListeners=m(i._dispatchListeners,o),i._dispatchInstances=m(i._dispatchInstances,t))}}function l(t){t&&t.dispatchConfig.registrationName&&a(t._targetInst,null,t)}function c(t){g(t,s)}function h(t){g(t,r)}function u(t,e,i,n){f.traverseEnterLeave(i,n,a,t,e)}function d(t){g(t,l)}var p=i(20),f=i(33),m=i(63),g=i(64),v=(i(2),p.getListener),y={accumulateTwoPhaseDispatches:c,accumulateTwoPhaseDispatchesSkipTarget:h,accumulateDirectDispatches:d,accumulateEnterLeaveDispatches:u};t.exports=y},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(10),s=i(41),r={view:function(t){if(t.view)return t.view;var e=s(t);if(e.window===e)return e;var i=e.ownerDocument;return i?i.defaultView||i.parentWindow:window},detail:function(t){return t.detail||0}};o.augmentClass(n,r),t.exports=n},function(t){"use strict";var e={remove:function(t){t._reactInternalInstance=void 0},get:function(t){return t._reactInternalInstance},has:function(t){return void 0!==t._reactInternalInstance},set:function(t,e){t._reactInternalInstance=e}};t.exports=e},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(22),s=i(62),r={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:i(40),button:function(t){var e=t.button;return"which"in t?e:2===e?2:4===e?1:0},buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},pageX:function(t){return"pageX"in t?t.pageX:t.clientX+s.currentScrollLeft},pageY:function(t){return"pageY"in t?t.pageY:t.clientY+s.currentScrollTop}};o.augmentClass(n,r),t.exports=n},function(t,e,i){"use strict";var n=i(3),o=(i(1),{}),s={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(t,e,i,o,s,r,a,l){var c,h;this.isInTransaction()&&n("27");try{this._isInTransaction=!0,c=!0,this.initializeAll(0),h=t.call(e,i,o,s,r,a,l),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(t){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return h},initializeAll:function(t){for(var e=this.transactionWrappers,i=t;i<e.length;i++){var n=e[i];try{this.wrapperInitData[i]=o,this.wrapperInitData[i]=n.initialize?n.initialize.call(this):null}finally{if(this.wrapperInitData[i]===o)try{this.initializeAll(i+1)}catch(t){}}}},closeAll:function(t){this.isInTransaction()||n("28");for(var e=this.transactionWrappers,i=t;i<e.length;i++){var s,r=e[i],a=this.wrapperInitData[i];try{s=!0,a!==o&&r.close&&r.close.call(this,a),s=!1}finally{if(s)try{this.closeAll(i+1)}catch(t){}}}this.wrapperInitData.length=0}};t.exports=s},function(t){"use strict";function e(t){var e=""+t,i=n.exec(e);if(!i)return e;var o,s="",r=0,a=0;for(r=i.index;r<e.length;r++){switch(e.charCodeAt(r)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#x27;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}a!==r&&(s+=e.substring(a,r)),a=r+1,s+=o}return a!==r?s+e.substring(a,r):s}function i(t){return"boolean"==typeof t||"number"==typeof t?""+t:e(t)}var n=/["'&<>]/;t.exports=i},function(t,e,i){"use strict";function n(t){return Object.prototype.hasOwnProperty.call(t,m)||(t[m]=p++,u[t[m]]={}),u[t[m]]}var o,s=i(4),r=i(32),a=i(123),l=i(62),c=i(77),h=i(42),u={},d=!1,p=0,f={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"
23},m="_reactListenersID"+String(Math.random()).slice(2),g=s({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(t){t.setHandleTopLevel(g.handleTopLevel),g.ReactEventListener=t}},setEnabled:function(t){g.ReactEventListener&&g.ReactEventListener.setEnabled(t)},isEnabled:function(){return!(!g.ReactEventListener||!g.ReactEventListener.isEnabled())},listenTo:function(t,e){for(var i=e,o=n(i),s=r.registrationNameDependencies[t],a=0;a<s.length;a++){var l=s[a];o.hasOwnProperty(l)&&o[l]||("topWheel"===l?h("wheel")?g.ReactEventListener.trapBubbledEvent("topWheel","
23wheel",i):h("mousewheel")?g.ReactEventListener.trapBubbledEvent("topWheel","mousewheel",i):g.ReactEventListener.trapBubbledEvent("topWheel","DOMMouseScroll",i):"topScroll"===l?h("scroll",!0)?g.ReactEventListener.trapCapturedEvent("topScroll","scroll",i):g.ReactEventListener.trapBubbledEvent("topScroll","scroll",g.ReactEventListener.WINDOW_HANDLE):"topFocus"===l||"topBlur"===l?(h("focus",!0)?(g.ReactEventListener.trapCapturedEvent("topFocus","focus",i),g.ReactEventListener.trapCapturedEvent("topBlur","blur",i)):h("focusin")&&(g.ReactEventListener.trapBubbledEvent("topFocus","focusin",i),g.ReactEventListener.trapBubbledEvent("topBlur","focusout",i)),o.topBlur=!0,o.topFocus=!0):f.hasOwnProperty(l)&&g.ReactEventListener.trapBubbledEvent(l,f[l],i),o[l]=!0)}},trapBubbledEvent:function(t,e,i){return g.ReactEventListener.trapBubbledEvent(t,e,i)},trapCapturedEvent:function(t,e,i){return g.ReactEventListener.trapCapturedEvent(t,e,i)},supportsEventPageXY:function(){if(!document.createEvent)return!1;var t=document.createEvent("MouseEvent");return null!=t&&"pageX"in t},ensureScrollValueMonitoring:function(){if(void 0===o&&(o=g.supportsEventPageXY()),!o&&!d){var t=l.refreshScrollValues;g.ReactEventListener.monitorScrollValue(t),d=!0}}});t.exports=g},function(t,e,i){"use strict";var n,o=i(6),s=i(31),r=/^[ \r\n\t\f]/,a=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,l=i(38)(function(t,e){if(t.namespaceURI!==s.svg||"innerHTML"in t)t.innerHTML=e;else{(n=n||document.createElement("div")).innerHTML="<svg>"+e+"</svg>";for(var i=n.firstChild;i.firstChild;)t.appendChild(i.firstChild)}});if(o.canUseDOM){var c=document.createElement("div");c.innerHTML=" ",""===c.innerHTML&&(l=function(t,e){if(t.parentNode&&t.parentNode.replaceChild(t,t),r.test(e)||"<"===e[0]&&a.test(e)){t.innerHTML=String.fromCharCode(65279)+e;var i=t.firstChild;1===i.data.length?t.removeChild(i):i.deleteData(0,1)}else t.innerHTML=e}),c=null}t.exports=l},function(t){"use strict";function e(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function i(t,i){if(e(t,i))return!0;if("object"!=typeof t||null===t||"object"!=typeof i||null===i)return!1;var o=Object.keys(t),s=Object.keys(i);if(o.length!==s.length)return!1;for(var r=0;r<o.length;r++)if(!n.call(i,o[r])||!e(t[o[r]],i[o[r]]))return!1;return!0}var n=Object.prototype.hasOwnProperty;t.exports=i},function(t,e,i){"use strict";function n(t,e){return Array.isArray(e)&&(e=e[1]),e?e.nextSibling:t.firstChild}function o(t,e,i){h.insertTreeBefore(t,e,i)}function s(t,e,i){Array.isArray(e)?a(t,e[0],e[1],i):m(t,e,i)}function r(t,e){if(Array.isArray(e)){var i=e[1];l(t,e=e[0],i),t.removeChild(i)}t.removeChild(e)}function a(t,e,i,n){for(var o=e;;){var s=o.nextSibling;if(m(t,o,n),o===i)break;o=s}}function l(t,e,i){for(;;){var n=e.nextSibling;if(n===i)break;t.removeChild(n)}}function c(t,e,i){var n=t.parentNode,o=t.nextSibling;o===e?i&&m(n,document.createTextNode(i),o):i?(f(o,i),l(n,o,e)):l(n,t,e)}var h=i(17),u=i(105),d=(i(5),i(8),i(38)),p=i(28),f=i(67),m=d(function(t,e,i){t.insertBefore(e,i)}),g={dangerouslyReplaceNodeWithMarkup:u.dangerouslyReplaceNodeWithMarkup,replaceDelimitedText:c,processUpdates:function(t,e){for(var i=0;i<e.length;i++){var a=e[i];switch(a.type){case"INSERT_MARKUP":o(t,a.content,n(t,a.afterNode));break;case"MOVE_EXISTING":s(t,a.fromNode,n(t,a.afterNode));break;case"SET_MARKUP":p(t,a.content);break;case"TEXT_CONTENT":f(t,a.content);break;case"REMOVE_NODE":r(t,a.fromNode)}}}};t.exports=g},function(t){"use strict";var e={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};t.exports=e},function(t,e,i){"use strict";function n(){if(a)for(var t in l){var e=l[t],i=a.indexOf(t);if(i>-1||r("96",t),!c.plugins[i]){e.extractEvents||r("97",t),c.plugins[i]=e;var n=e.eventTypes;for(var s in n)o(n[s],e,s)||r("98",s,t)}}}function o(t,e,i){c.eventNameDispatchConfigs.hasOwnProperty(i)&&r("99",i),c.eventNameDispatchConfigs[i]=t;var n=t.phasedRegistrationNames;if(n){for(var o in n)if(n.hasOwnProperty(o)){s(n[o],e,i)}return!0}return!!t.registrationName&&(s(t.registrationName,e,i),!0)}function s(t,e,i){c.registrationNameModules[t]&&r("100",t),c.registrationNameModules[t]=e,c.registrationNameDependencies[t]=e.eventTypes[i].dependencies}var r=i(3),a=(i(1),null),l={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(t){a&&r("101"),a=Array.prototype.slice.call(t),n()},injectEventPluginsByName:function(t){var e=!1;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];l.hasOwnProperty(i)&&l[i]===o||(l[i]&&r("102",i),l[i]=o,e=!0)}e&&n()},getPluginModuleForEvent:function(t){var e=t.dispatchConfig;if(e.registrationName)return c.registrationNameModules[e.registrationName]||null;
23if(void 0!==e.phasedRegistrationNames){var i=e.phasedRegistrationNames;for(var n in i)if(i.hasOwnProperty(n)){var o=c.registrationNameModules[i[n]];if(o)return o}}return null},_resetEventPlugins:function(){for(var t in a=null,l)l.hasOwnProperty(t)&&delete l[t];c.plugins.length=0;var e=c.eventNameDispatchConfigs;for(var i in e)e.hasOwnProperty(i)&&delete e[i];var n=c.registrationNameModules;for(var o in n)n.hasOwnProperty(o)&&delete n[o]}};t.exports=c},function(t,e,i){"use strict";function n(t){return"topMouseUp"===t||"topTouchEnd"===t||"topTouchCancel"===t}function o(t){return"topMouseMove"===t||"topTouchMove"===t}function s(t){return"topMouseDown"===t||"topTouchStart"===t}function r(t,e,i,n){var o=t.type||"unknown-event";t.currentTarget=v.getNodeFromInstance(n),e?m.invokeGuardedCallbackWithCatch(o,i,t):m.invokeGuardedCallback(o,i,t),t.currentTarget=null}function a(t,e){var i=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(i))for(var o=0;o<i.length&&!t.isPropagationStopped();o++)r(t,e,i[o],n[o]);else i&&r(t,e,i,n);t._dispatchListeners=null,t._dispatchInstances=null}function l(t){var e=t._dispatchListeners,i=t._dispatchInstances;if(Array.isArray(e)){for(var n=0;n<e.length&&!t.isPropagationStopped();n++)if(e[n](t,i[n]))return i[n]}else if(e&&e(t,i))return i;return null}function c(t){var e=l(t);return t._dispatchInstances=null,t._dispatchListeners=null,e}function h(t){var e=t._dispatchListeners,i=t._dispatchInstances;Array.isArray(e)&&f("103"),t.currentTarget=e?v.getNodeFromInstance(i):null;var n=e?e(t):null;return t.currentTarget=null,t._dispatchListeners=null,t._dispatchInstances=null,n}function u(t){return!!t._dispatchListeners}var d,p,f=i(3),m=i(37),g=(i(1),i(2),{injectComponentTree:function(t){d=t},injectTreeTraversal:function(t){p=t}}),v={isEndish:n,isMoveish:o,isStartish:s,executeDirectDispatch:h,executeDispatchesInOrder:a,executeDispatchesInOrderStopAtTrue:c,hasDispatches:u,getInstanceFromNode:function(t){return d.getInstanceFromNode(t)},getNodeFromInstance:function(t){return d.getNodeFromInstance(t)},isAncestor:function(t,e){return p.isAncestor(t,e)},getLowestCommonAncestor:function(t,e){return p.getLowestCommonAncestor(t,e)},getParentInstance:function(t){return p.getParentInstance(t)},traverseTwoPhase:function(t,e,i){return p.traverseTwoPhase(t,e,i)},traverseEnterLeave:function(t,e,i,n,o){return p.traverseEnterLeave(t,e,i,n,o)},injection:g};t.exports=v},function(t){"use strict";function e(t){var e=/[=:]/g,i={"=":"=0",":":"=2"};return"$"+(""+t).replace(e,function(t){return i[t]})}function i(t){var e=/(=0|=2)/g,i={"=0":"=","=2":":"};return(""+("."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1))).replace(e,function(t){return i[t]})}var n={escape:e,unescape:i};t.exports=n},function(t,e,i){"use strict";function n(t){null!=t.checkedLink&&null!=t.valueLink&&a("87")}function o(t){n(t),(null!=t.value||null!=t.onChange)&&a("88")}function s(t){n(t),(null!=t.checked||null!=t.onChange)&&a("89")}function r(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}var a=i(3),l=i(12),c=i(128),h=(i(1),i(2),{button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0}),u={value:function(t,e){return!t[e]||h[t.type]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(t,e){return!t[e]||t.onChange||t.readOnly||t.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:l.PropTypes.func},d={},p={checkPropTypes:function(t,e,i){for(var n in u){if(u.hasOwnProperty(n))var o=u[n](e,n,t,"prop",null,c);o instanceof Error&&!(o.message in d)&&(d[o.message]=!0,r(i))}},getValue:function(t){return t.valueLink?(o(t),t.valueLink.value):t.value},getChecked:function(t){return t.checkedLink?(s(t),t.checkedLink.value):t.checked},executeOnChange:function(t,e){return t.valueLink?(o(t),t.valueLink.requestChange(e.target.value)):t.checkedLink?(s(t),t.checkedLink.requestChange(e.target.checked)):t.onChange?t.onChange.call(void 0,e):void 0}};t.exports=p}
23,function(t,e,i){"use strict";var n=i(3),o=(i(1),!1),s={replaceNodeWithMarkup:null,processChildrenUpdates:null,injection:{injectEnvironment:function(t){o&&n("104"),s.replaceNodeWithMarkup=t.replaceNodeWithMarkup,s.processChildrenUpdates=t.processChildrenUpdates,o=!0}}};t.exports=s},function(t){"use strict";function e(t,e,n){try{e(n)}catch(t){null===i&&(i=t)}}var i=null,n={invokeGuardedCallback:e,invokeGuardedCallbackWithCatch:e,rethrowCaughtError:function(){if(i){var t=i;throw i=null,t}}};t.exports=n},function(t){"use strict";var e=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,i,n,o){MSApp.execUnsafeLocalFunction(function(){return t(e,i,n,o)})}:t};t.exports=e},function(t){"use strict";function e(t){var e,i=t.keyCode;return"charCode"in t?0===(e=t.charCode)&&13===i&&(e=13):e=i,e>=32||13===e?e:0}t.exports=e},function(t){"use strict";function e(t){var e=this.nativeEvent;if(e.getModifierState)return e.getModifierState(t);var i=n[t];return!!i&&!!e[i]}function i(){return e}var n={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};t.exports=i},function(t){"use strict";function e(t){var e=t.target||t.srcElement||window;return e.correspondingUseElement&&(e=e.correspondingUseElement),3===e.n
23odeType?e.parentNode:e}t.exports=e},function(t,e,i){"use strict";function n(t,e){if(!s.canUseDOM||e&&!("addEventListener"in document))return!1;var i="on"+t,n=i in document;if(!n){var r=document.createElement("div");r.setAttribute(i,"return;"),n="function"==typeof r[i]}return!n&&o&&"wheel"===t&&(n=document.implementation.hasFeature("Events.wheel","3.0")),n}var o,s=i(6);s.canUseDOM&&(o=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),t.exports=n},function(t,e,i){"use strict";var n=(i(4),i(7)),o=(i(2),n);t.exports=o},function(t,e,i){"use strict";function n(t,e,i){this.props=t,this.context=e,this.refs=r,this.updater=i||s}var o=i(16),s=i(45),r=(i(71),i(19));i(1),i(2),n.prototype.isReactComponent={},n.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&o("85"),this.updater.enqueueSetState(this,t),e&&this.updater.enqueueCallback(this,e,"setState")},n.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this),t&&this.updater.enqueueCallback(this,t,"forceUpdate")},t.exports=n},function(t,e,i){"use strict";function n(){}var o=(i(2),{isMounted:function(){return!1},enqueueCallback:function(){},enqueueForceUpdate:function(t){n(t,"forceUpdate")},enqueueReplaceState:function(t){n(t,"replaceState")},enqueueSetState:function(t){n(t,"setState")}});t.exports=o},function(t,e,i){"use strict";function n(t){l.enqueueUpdate(t)}function o(t){var e=typeof t;if("object"!==e)return e;var i=t.constructor&&t.constructor.name||e,n=Object.keys(t);return n.length>0&&n.length<20?i+" (keys: "+n.join(", ")+")":i}function s(t){var e=a.get(t);return e||null}var r=i(3),a=(i(11),i(23)),l=(i(8),i(9)),c=(i(1),i(2),{isMounted:function(t){var e=a.get(t);return!!e&&!!e._renderedComponent},enqueueCallback:function(t,e,i){c.validateCallback(e,i);var o=s(t);return o?(o._pendingCallbacks?o._pendingCallbacks.push(e):o._pendingCallbacks=[e],void n(o)):null},enqueueCallbackInternal:function(t,e){t._pendingCallbacks?t._pendingCallbacks.push(e):t._pendingCallbacks=[e],n(t)},enqueueForceUpdate:function(t){var e=s(t,"forceUpdate");e&&(e._pendingForceUpdate=!0,n(e))},enqueueReplaceState:function(t,e){var i=s(t,"replaceState");i&&(i._pendingStateQueue=[e],i._pendingReplaceState=!0,n(i))},enqueueSetState:function(t,e){var i=s(t,"setState");i&&((i._pendingStateQueue||(i._pendingStateQueue=[])).push(e),n(i))},enqueueElementInternal:function(t,e,i){t._pendingElement=e,t._context=i,n(t)},validateCallback:function(t,e){t&&"function"!=typeof t&&r("122",e,o(t))}});t.exports=c},function(t){"use strict";function e(t,e){var i=null===t||!1===t,n=null===e||!1===e;if(i||n)return i===n;var o=typeof t,s=typeof e;return"string"===o||"number"===o?"string"===s||"number"===s:"object"===s&&t.type===e.type&&t.key===e.key}t.exports=e},function(t){function e(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function n(t){if(c===setTimeout)return setTimeout(t,0);if((c===e||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){f&&d&&(f=!1,d.length?p=d.concat(p):m=-1,p.length&&r())}function r(){if(!f){var t=n(s);f=!0;for(var e=p.length;e;){for(d=p,p=[];++m<e;)d&&d[m].run();m=-1,e=p.length}d=null,f=!1,o(t)}}function a(t,e){this.fun=t,this.array=e}function l(){}var c,h,u=t.exports={};!function(){try{c="function"==typeof setTimeout?setTimeout:e}catch(t){c=e}try{h="function"==typeof clearTimeout?clearTimeout:i}catch(t){h=i}}();var d,p=[],f=!1,m=-1;u.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];p.push(new a(t,e)),1!==p.length||f||n(r)},a.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=l,u.addListener=l,u.once=l,u.off=l,u.removeListener=l,u.removeAllListeners=l,u.emit=l,u.binding=function(){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}}
23,function(t,e,i){"use strict";function n(t){var e=Function.prototype.toString,i=Object.prototype.hasOwnProperty,n=RegExp("^"+e.call(i).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");try{var o=e.call(t);return n.test(o)}catch(t){return!1}}function o(t){var e=c(t);if(e){var i=e.childIDs;h(t),i.forEach(o)}}function s(t,e,i){return"\n    in "+(t||"Unknown")+(e?" (at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+")":i?" (created by "+i+")":"")}function r(t){return null==t?"#empty":"string"==typeof t||"number"==typeof t?"#text":"string"==typeof t.type?t.type:t.type.displayName||t.type.name||"Unknown"}function a(t){var e,i=C.getDisplayName(t),n=C.getElement(t),o=C.getOwnerID(t);return o&&(e=C.getDisplayName(o)),s(i,n&&n._source,e)}var l,c,h,u,d,p,f,m=i(16),g=i(11);if(i(1),i(2),"function"==typeof Array.from&&"function"==typeof Map&&n(Map)&&null!=Map.prototype&&"function"==typeof Map.prototype.keys&&n(Map.prototype.keys)&&"function"==typeof Set&&n(Set)&&null!=Set.prototype&&"function"==typeof Set.prototype.keys&&n(Set.prototype.keys)){var v=new Map,y=new Set;l=function(t,e){v.set(t,e)},c=function(t){return v.get(t)},h=function(t){v.delete(t)},u=function(){return Array.from(v.keys())},d=function(t){y.add(t)},p=function(t){y.delete(t)},f=function(){return Array.from(y.keys())}}else{var _={},b={},x=function(t){return"."+t},w=function(t){return parseInt(t.substr(1),10)};l=function(t,e){var i=x(t);_[i]=e},c=function(t){var e=x(t);return _[e]},h=function(t){var e=x(t);delete _[e]},u=function(){return Object.keys(_).map(w)},d=function(t){var e=x(t);b[e]=!0},p=function(t){var e=x(t);delete b[e]},f=function(){return Object.keys(b).map(w)}}var k=[],C={onSetChildren:function(t,e){var i=c(t);i||m("144"),i.childIDs=e;for(var n=0;n<e.length;n++){var o=e[n],s=c(o);s||m("140"),null==s.childIDs&&"object"==typeof s.element&&null!=s.element&&m("141"),s.isMounted||m("71"),null==s.parentID&&(s.parentID=t),s.parentID!==t&&m("142",o,s.parentID,t)}},onBeforeMountComponent:function(t,e,i){l(t,{element:e,parentID:i,text:null,childIDs:[],isMounted:!1,updateCount:0})},onBeforeUpdateComponent:function(t,e){var i=c(t);i&&i.isMounted&&(i.element=e)},onMountComponent:function(t){var e=c(t);e||m("144"),e.isMounted=!0,0===e.parentID&&d(t)},onUpdateComponent:function(t){var e=c(t);e&&e.isMounted&&e.updateCount++},onUnmountComponent:function(t){var e=c(t);e&&(e.isMounted=!1,0===e.parentID&&p(t));k.push(t)},purgeUnmountedComponents:function(){if(!C._preventPurging){for(var t=0;t<k.length;t++){o(k[t])}k.length=0}},isMounted:function(t){var e=c(t);return!!e&&e.isMounted},getCurrentStackAddendum:function(t){var e="";if(t){var i=r(t),n=t._owner;e+=s(i,t._source,n&&n.getName())}var o=g.current,a=o&&o._debugID;return e+C.getStackAddendumByID(a)},getStackAddendumByID:function(t){for(var e="";t;)e+=a(t),t=C.getParentID(t);return e},getChildIDs:function(t){var e=c(t);return e?e.childIDs:[]},getDisplayName:function(t){var e=C.getElement(t);return e?r(e):null},getElement:function(t){var e=c(t);return e?e.element:null},getOwnerID:function(t){var e=C.getElement(t);return e&&e._owner?e._owner._debugID:null},getParentID:function(t){var e=c(t);return e?e.parentID:null},getSource:function(t){var e=c(t),i=e?e.element:null;return null!=i?i._source:null},getText:function(t){var e=C.getElement(t);return"string"==typeof e?e:"number"==typeof e?""+e:null},getUpdateCount:function(t){var e=c(t);return e?e.updateCount:0},getRootIDs:f,getRegisteredIDs:u};t.exports=C},function(t,e,i){"use strict";function n(t){if(t){var e=t.getName();if(e)return" Check the render method of `"+e+"`."}return""}function o(t){return"function"==typeof t&&void 0!==t.prototype&&"function"==typeof t.prototype.mountComponent&&"function"==typeof t.prototype.receiveComponent}function s(t){var e;if(null===t||!1===t)e=c.create(s);else if("object"==typeof t){var i=t,a=i.type;if("function"!=typeof a&&"string"!=typeof a){var l="";l+=n(i._owner),r("130",null==a?a:typeof a,l)}"string"==typeof i.type?e=h.createInternalComponent(i):o(i.type)?(e=new i.type(i)).getHostNode||(e.getHostNode=e.getNativeNode):e=new u(i)}else"string"==typeof t||"number"==typeof t?e=h.createInstanceForText(t):r("131",typeof t);return e._mountIndex=0,e._mountImage=null,e}var r=i(3),a=i(4),l=i(112),c=i(59),h=i(60),u=(i(150),i(1),i(2),function(t){this.construct(t)});a(u.prototype,l,{_instantiateReactComponent:s}),t.exports=s}
23,function(t,e,i){"use strict";var n=i(7),o={listen:function(t,e,i){return t.addEventListener?(t.addEventListener(e,i,!1),{remove:function(){t.removeEventListener(e,i,!1)}}):t.attachEvent?(t.attachEvent("on"+e,i),{remove:function(){t.detachEvent("on"+e,i)}}):void 0},capture:function(t,e,i){return t.addEventListener?(t.addEventListener(e,i,!0),{remove:function(){t.removeEventListener(e,i,!0)}}):{remove:n}},registerDefault:function(){}};t.exports=o},function(t){"use strict";function e(t){try{t.focus()}catch(t){}}t.exports=e},function(t){"use strict";function e(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=e},function(t){"use strict";function e(t,e){return t+e.charAt(0).toUpperCase()+e.substring(1)}var i={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},n=["Webkit","ms","Moz","O"];
23Object.keys(i).forEach(function(t){n.forEach(function(n){i[e(n,t)]=i[t]})});var o={isUnitlessNumber:i,shorthandPropertyExpansions:{background:{backgroundAttachment:!0,backgroundColor:!0,backgroundImage:!0,backgroundPositionX:!0,backgroundPositionY:!0,backgroundRepeat:!0},backgroundPosition:{backgroundPositionX:!0,backgroundPositionY:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0},outline:{outlineWidth:!0,outlineStyle:!0,outlineColor:!0}}};t.exports=o},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=i(3),s=i(13),r=(i(1),function(){function t(e){n(this,t),this._callbacks=null,this._contexts=null,this._arg=e}return t.prototype.enqueue=function(t,e){this._callbacks=this._callbacks||[],this._callbacks.push(t),this._contexts=this._contexts||[],this._contexts.push(e)},t.prototype.notifyAll=function(){var t=this._callbacks,e=this._contexts,i=this._arg;if(t&&e){t.length!==e.length&&o("24"),this._callbacks=null,this._contexts=null;for(var n=0;n<t.length;n++)t[n].call(e[n],i);t.length=0,e.length=0}},t.prototype.checkpoint=function(){return this._callbacks?this._callbacks.length:0},t.prototype.rollback=function(t){this._callbacks&&this._contexts&&(this._callbacks.length=t,this._contexts.length=t)},t.prototype.reset=function(){this._callbacks=null,this._contexts=null},t.prototype.destructor=function(){this.reset()},t}());t.exports=s.addPoolingTo(r)},function(t,e,i){"use strict";function n(t){return!!c.hasOwnProperty(t)||!l.hasOwnProperty(t)&&(a.test(t)?(c[t]=!0,!0):(l[t]=!0,!1))}function o(t,e){return null==e||t.hasBooleanValue&&!e||t.hasNumericValue&&isNaN(e)||t.hasPositiveNumericValue&&e<1||t.hasOverloadedBooleanValue&&!1===e}var s=i(18),r=(i(5),i(8),i(152)),a=(i(2),new RegExp("^["+s.ATTRIBUTE_NAME_START_CHAR+"]["+s.ATTRIBUTE_NAME_CHAR+"]*$")),l={},c={},h={createMarkupForID:function(t){return s.ID_ATTRIBUTE_NAME+"="+r(t)},setAttributeForID:function(t,e){t.setAttribute(s.ID_ATTRIBUTE_NAME,e)},createMarkupForRoot:function(){return s.ROOT_ATTRIBUTE_NAME+'=""'},setAttributeForRoot:function(t){t.setAttribute(s.ROOT_ATTRIBUTE_NAME,"")},createMarkupForProperty:function(t,e){var i=s.properties.hasOwnProperty(t)?s.properties[t]:null;if(i){if(o(i,e))return"";var n=i.attributeName;return i.hasBooleanValue||i.hasOverloadedBooleanValue&&!0===e?n+'=""':n+"="+r(e)}return s.isCustomAttribute(t)?null==e?"":t+"="+r(e):null},createMarkupForCustomAttribute:function(t,e){return n(t)&&null!=e?t+"="+r(e):""},setValueForProperty:function(t,e,i){var n=s.properties.hasOwnProperty(e)?s.properties[e]:null;if(n){var r=n.mutationMethod;if(r)r(t,i);else{if(o(n,i))return void this.deleteValueForProperty(t,e);if(n.mustUseProperty)t[n.propertyName]=i;else{var a=n.attributeName,l=n.attributeNamespace;l?t.setAttributeNS(l,a,""+i):n.hasBooleanValue||n.hasOverloadedBooleanValue&&!0===i?t.setAttribute(a,""):t.setAttribute(a,""+i)}}}else if(s.isCustomAttribute(e))return void h.setValueForAttribute(t,e,i)},setValueForAttribute:function(t,e,i){n(e)&&(null==i?t.removeAttribute(e):t.setAttribute(e,""+i))},deleteValueForAttribute:function(t,e){t.removeAttribute(e)},deleteValueForProperty:function(t,e){var i=s.properties.hasOwnProperty(e)?s.properties[e]:null;if(i){var n=i.mutationMethod;if(n)n(t,void 0);else if(i.mustUseProperty){var o=i.propertyName;i.hasBooleanValue?t[o]=!1:t[o]=""}else t.removeAttribute(i.attributeName)}else s.isCustomAttribute(e)&&t.removeAttribute(e)}};t.exports=h},function(t){"use strict";var e={hasCachedChildNodes:1};t.exports=e},function(t,e,i){"use strict";function n(){if(this._rootNodeID&&this._wrapperState.pendingUpdate){this._wrapperState.pendingUpdate=!1;var t=this._currentElement.props,e=a.getValue(t);null!=e&&o(this,Boolean(t.multiple),e)}}function o(t,e,i){var n,o,s=l.getNodeFromInstance(t).options;if(e){for(n={},o=0;o<i.length;o++)n[""+i[o]]=!0;for(o=0;o<s.length;o++){var r=n.hasOwnProperty(s[o].value);s[o].selected!==r&&(s[o].selected=r)}}else{for(n=""+i,o=0;o<s.length;o++)if(s[o].value===n)return void(s[o].selected=!0);s.length&&(s[0].selected=!0)}}function s(t){var e=this._currentElement.props,i=a.executeOnChange(e,t);return this._rootNodeID&&(this._wrapperState.pendingUpdate=!0),c.asap(n,this),i}
23var r=i(4),a=i(35),l=i(5),c=i(9),h=(i(2),!1),u={getHostProps:function(t,e){return r({},e,{onChange:t._wrapperState.onChange,value:void 0})},mountWrapper:function(t,e){var i=a.getValue(e);t._wrapperState={pendingUpdate:!1,initialValue:null!=i?i:e.defaultValue,listeners:null,onChange:s.bind(t),wasMultiple:Boolean(e.multiple)},void 0===e.value||void 0===e.defaultValue||h||(h=!0)},getSelectValueContext:function(t){return t._wrapperState.initialValue},postUpdateWrapper:function(t){var e=t._currentElement.props;t._wrapperState.initialValue=void 0;var i=t._wrapperState.wasMultiple;t._wrapperState.wasMultiple=Boolean(e.multiple);var n=a.getValue(e);null!=n?(t._wrapperState.pendingUpdate=!1,o(t,Boolean(e.multiple),n)):i!==Boolean(e.multiple)&&(null!=e.defaultValue?o(t,Boolean(e.multiple),e.defaultValue):o(t,Boolean(e.multiple),e.multiple?[]:""))}};t.exports=u},function(t){"use strict";var e,i={injectEmptyComponentFactory:function(t){e=t}},n={create:function(t){return e(t)}};n.injection=i,t.exports=n},function(t,e,i){"use strict";function n(t){return a||r("111",t.type),new a(t)}function o(t){return new l(t)}function s(t){return t instanceof l}var r=i(3),a=(i(1),null),l=null,c={injectGenericComponentClass:function(t){a=t},injectTextComponentClass:function(t){l=t}},h={createInternalComponent:n,createInstanceForText:o,isTextComponent:s,injection:c};t.exports=h},function(t,e,i){"use strict";function n(t){return s(document.documentElement,t)}var o=i(118),s=i(90),r=i(52),a=i(53),l={hasSelectionCapabilities:function(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)},getSelectionInformation:function(){var t=a();return{focusedElem:t,selectionRange:l.hasSelectionCapabilities(t)?l.getSelection(t):null}},restoreSelection:function(t){var e=a(),i=t.focusedElem,o=t.selectionRange;e!==i&&n(i)&&(l.hasSelectionCapabilities(i)&&l.setSelection(i,o),r(i))},getSelection:function(t){var e;if("selectionStart"in t)e={start:t.selectionStart,end:t.selectionEnd};else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var i=document.selection.createRange();i.parentElement()===t&&(e={start:-i.moveStart("character",-t.value.length),end:-i.moveEnd("character",-t.value.length)})}else e=o.getOffsets(t);return e||{start:0,end:0}},setSelection:function(t,e){var i=e.start,n=e.end;if(void 0===n&&(n=i),"selectionStart"in t)t.selectionStart=i,t.selectionEnd=Math.min(n,t.value.length);else if(document.selection&&t.nodeName&&"input"===t.nodeName.toLowerCase()){var s=t.createTextRange();s.collapse(!0),s.moveStart("character",i),s.moveEnd("character",n-i),s.select()}else o.setOffsets(t,e)}};t.exports=l},function(t){"use strict";var e={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(t){e.currentScrollLeft=t.x,e.currentScrollTop=t.y}};t.exports=e},function(t,e,i){"use strict";function n(t,e){return null==e&&o("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}var o=i(3);i(1),t.exports=n},function(t){"use strict";function e(t,e,i){Array.isArray(t)?t.forEach(e,i):t&&e.call(i,t)}t.exports=e},function(t,e,i){"use strict";function n(){return!s&&o.canUseDOM&&(s="textContent"in document.documentElement?"textContent":"innerText"),s}var o=i(6),s=null;t.exports=n},function(t){"use strict";function e(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!i[t.type]:"textarea"===e}var i={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};t.exports=e},function(t,e,i){"use strict";var n=i(6),o=i(26),s=i(28),r=function(t,e){if(e){var i=t.firstChild;if(i&&i===t.lastChild&&3===i.nodeType)return void(i.nodeValue=e)}t.textContent=e};n.canUseDOM&&("textContent"in document.documentElement||(r=function(t,e){return 3===t.nodeType?void(t.nodeValue=e):void s(t,o(e))})),t.exports=r},function(t,e,i){"use strict";function n(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function o(t,e,i,s){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===a)return i(s,t,""===e?h+n(t,0):e),1;var p,f=0,m=""===e?h:e+u;if(Array.isArray(t))for(var g=0;g<t.length;g++)f+=o(p=t[g],m+n(p,g),i,s);else{var v=l(t);if(v){var y,_=v.call(t);if(v!==t.entries)for(var b=0;!(y=_.next()).done;)f+=o(p=y.value,m+n(p,b++),i,s);else for(;!(y=_.next()).done;){var x=y.value;
23x&&(f+=o(p=x[1],m+c.escape(x[0])+u+n(p,0),i,s))}}else if("object"===d){var w="",k=String(t);r("31","[object Object]"===k?"object with keys {"+Object.keys(t).join(", ")+"}":k,w)}}return f}function s(t,e,i){return null==t?0:o(t,"",e,i)}var r=i(3),a=(i(11),i(122)),l=i(149),c=(i(1),i(34)),h=(i(2),"."),u=":";t.exports=s},function(t){"use strict";var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=e},function(t){"use strict";var e={};t.exports=e},function(t){"use strict";var e=!1;t.exports=e},function(t){"use strict";function e(t){var e=t&&(i&&t[i]||t[n]);if("function"==typeof e)return e}var i="function"==typeof Symbol&&Symbol.iterator,n="@@iterator";t.exports=e},function(t){"use strict";var e={logTopLevelRenders:!1};t.exports=e},function(t,e,i){"use strict";var n=i(3),o=i(12),s=(i(1),{HOST:0,COMPOSITE:1,EMPTY:2,getType:function(t){return null===t||!1===t?s.EMPTY:o.isValidElement(t)?"function"==typeof t.type?s.COMPOSITE:s.HOST:void n("26",t)}});t.exports=s},function(t,e,i){"use strict";function n(){this.reinitializeTransaction()}var o=i(4),s=i(9),r=i(25),a=i(7),l={initialize:a,close:function(){u.isBatchingUpdates=!1}},c=[{initialize:a,close:s.flushBatchedUpdates.bind(s)},l];o(n.prototype,r,{getTransactionWrappers:function(){return c}});var h=new n,u={isBatchingUpdates:!1,batchedUpdates:function(t,e,i,n,o,s){var r=u.isBatchingUpdates;return u.isBatchingUpdates=!0,r?t(e,i,n,o,s):h.perform(t,null,e,i,n,o,s)}};t.exports=u},function(t,e,i){"use strict";function n(t){this.reinitializeTransaction(),this.renderToStaticMarkup=t,this.useCreateElement=!1,this.updateQueue=new a(this)}
23var o=i(4),s=i(13),r=i(25),a=(i(8),i(131)),l=[],c={enqueue:function(){}},h={getTransactionWrappers:function(){return l},getReactMountReady:function(){return c},getUpdateQueue:function(){return this.updateQueue},destructor:function(){},checkpoint:function(){},rollback:function(){}};o(n.prototype,r,h),s.addPoolingTo(n),t.exports=n},function(t,e,i){"use strict";function n(t,e){var i={};return i[t.toLowerCase()]=e.toLowerCase(),i["Webkit"+t]="webkit"+e,i["Moz"+t]="moz"+e,i["ms"+t]="MS"+e,i["O"+t]="o"+e.toLowerCase(),i}function o(t){if(a[t])return a[t];if(!r[t])return t;var e=r[t];for(var i in e)if(e.hasOwnProperty(i)&&i in l)return a[t]=e[i];return""}var s=i(6),r={animationend:n("Animation","AnimationEnd"),animationiteration:n("Animation","AnimationIteration"),
24animationstart:n("Animation","AnimationStart"),transitionend:n("Transition","TransitionEnd")},a={},l={};s.canUseDOM&&(l=document.createElement("div").style,"AnimationEvent"in window||(delete r.animationend.animation,delete r.animationiteration.animation,delete r.animationstart.animation),"TransitionEvent"in window||delete r.transitionend.transition),t.exports=o},function(t){"use strict";function e(t){var e=/[=:]/g,i={"=":"=0",":":"=2"};return"$"+(""+t).replace(e,function(t){return i[t]})}function i(t){var e=/(=0|=2)/g,i={"=0":"=","=2":":"};return(""+("."===t[0]&&"$"===t[1]?t.substring(2):t.substring(1))).replace(e,function(t){return i[t]})}var n={escape:e,unescape:i};t.exports=n},function(t,e,i){"use strict";function n(t){return s.isValidElement(t)||o("143"),t}var o=i(16),s=i(15);i(1),t.exports=n},function(t,e,i){"use strict";function n(t,e){return t&&"object"==typeof t&&null!=t.key?c.escape(t.key):e.toString(36)}function o(t,e,i,s){var d=typeof t;if("undefined"!==d&&"boolean"!==d||(t=null),null===t||"string"===d||"number"===d||"object"===d&&t.$$typeof===a)return i(s,t,""===e?h+n(t,0):e),1;var p,f=0,m=""===e?h:e+u;if(Array.isArray(t))for(var g=0;g<t.length;g++)f+=o(p=t[g],m+n(p,g),i,s);else{var v=l(t);if(v){var y,_=v.call(t);if(v!==t.entries)for(var b=0;!(y=_.next()).done;)f+=o(p=y.value,m+n(p,b++),i,s);else for(;!(y=_.next()).done;){var x=y.value;
24x&&(f+=o(p=x[1],m+c.escape(x[0])+u+n(p,0),i,s))}}else if("object"===d){var w="",k=String(t);r("31","[object Object]"===k?"object with keys {"+Object.keys(t).join(", ")+"}":k,w)}}return f}function s(t,e,i){return null==t?0:o(t,"",e,i)}var r=i(16),a=(i(11),i(69)),l=i(72),c=(i(1),i(78)),h=(i(2),"."),u=":";t.exports=s},function(t,e,i){"use strict";t.exports=i(12)},function(t,e,i){"use strict";function n(t,e){return{_topLevelWrapper:t,_idCounter:1,_ownerDocument:e?e.nodeType===o?e:e.ownerDocument:null,_node:e,_tag:e?e.nodeName.toLowerCase():null,_namespaceURI:e?e.namespaceURI:null}}var o=(i(43),9);t.exports=n},function(t,e,i){"use strict";function n(){k||(k=!0,y.EventEmitter.injectReactEventListener(v),y.EventPluginHub.injectEventPluginOrder(a),y.EventPluginUtils.injectComponentTree(d),y.EventPluginUtils.injectTreeTraversal(f),y.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:w,EnterLeaveEventPlugin:l,ChangeEventPlugin:r,SelectEventPlugin:x,BeforeInputEventPlugin:s}),y.HostComponent.injectGenericComponentClass(u),y.HostComponent.injectTextComponentClass(m),y.DOMProperty.injectDOMPropertyConfig(o),y.DOMProperty.injectDOMPropertyConfig(c),y.DOMProperty.injectDOMPropertyConfig(b),y.EmptyComponent.injectEmptyComponentFactory(function(t){return new p(t)}),y.Updates.injectReconcileTransaction(_),y.Updates.injectBatchingStrategy(g),y.Component.injectEnvironment(h))}var o=i(100),s=i(102),r=i(104),a=i(106),l=i(107),c=i(109),h=i(111),u=i(113),d=i(5),p=i(114),f=i(121),m=i(119),g=i(75),v=i(124),y=i(125),_=i(129),b=i(132),x=i(133),w=i(134),k=!1;t.exports={inject:n}},function(t,e,i){"use strict";var n=i(145),o=/\/?>/,s=/^<\!\-\-/,r={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(t){var e=n(t);return s.test(t)?t:t.replace(o," "+r.CHECKSUM_ATTR_NAME+'="'+e+'"$&')},canReuseMarkup:function(t,e){var i=e.getAttribute(r.CHECKSUM_ATTR_NAME);return i=i&&parseInt(i,10),n(t)===i}};t.exports=r},function(t,e,i){"use strict";function n(t,e){for(var i=Math.min(t.length,e.length),n=0;n<i;n++)if(t.charAt(n)!==e.charAt(n))return n;return t.length===e.length?-1:i}function o(t){return t?t.nodeType===N?t.documentElement:t.firstChild:null}function s(t){return t.getAttribute&&t.getAttribute(L)||""}function r(t,e,i,n,o){var s;if(x.logTopLevelRenders){var r=t._currentElement.props.child.type;s="React mount: "+("string"==typeof r?r:r.displayName||r.name),console.time(s)}var a=C.mountComponent(t,i,null,_(t,e),o,0);s&&console.timeEnd(s),t._renderedComponent._topLevelWrapper=t,z._mountImageIntoNode(a,e,t,n,i)}function a(t,e,i,n){var o=P.ReactReconcileTransaction.getPooled(!i&&b.useCreateElement);o.perform(r,null,t,e,o,i,n),P.ReactReconcileTransaction.release(o)}function l(t,e,i){for(C.unmountComponent(t,i),e.nodeType===N&&(e=e.documentElement);e.lastChild;)e.removeChild(e.lastChild)}function c(t){var e=o(t);if(e){var i=y.getInstanceFromNode(e);return!(!i||!i._hostParent)}}function h(t){return!(!t||t.nodeType!==I&&t.nodeType!==N&&t.nodeType!==R)}function u(t){var e=o(t),i=e&&y.getInstanceFromNode(e);return i&&!i._hostParent?i:null}function d(t){var e=u(t);return e?e._hostContainerInfo._topLevelWrapper:null}var p=i(3),f=i(17),m=i(18),g=i(12),v=i(27),y=(i(11),i(5)),_=i(82),b=i(162),x=i(73),w=i(23),k=(i(8),i(84)),C=i(14),S=i(46),P=i(9),T=i(19),E=i(50),A=(i(1),i(28)),M=i(47),L=(i(2),m.ID_ATTRIBUTE_NAME),D=m.ROOT_ATTRIBUTE_NAME,I=1,N=9,R=11,O={},$=1,F=function(){this.rootID=$++};F.prototype.isReactComponent={},F.prototype.render=function(){return this.props.child},F.isReactTopLevelWrapper=!0;var z={TopLevelWrapper:F,_instancesByReactRootID:O,scrollMonitor:function(t,e){e()},_updateRootComponent:function(t,e,i,n,o){return z.scrollMonitor(n,function(){S.enqueueElementInternal(t,e,i),o&&S.enqueueCallbackInternal(t,o)}),t},_renderNewRootComponent:function(t,e,i,n){h(e)||p("37"),v.ensureScrollValueMonitoring();var o=E(t,!1);P.batchedUpdates(a,o,e,i,n);var s=o._instance.rootID;return O[s]=o,o},renderSubtreeIntoContainer:function(t,e,i,n){return null!=t&&w.has(t)||p("38"),z._renderSubtreeIntoContainer(t,e,i,n)}
24,_renderSubtreeIntoContainer:function(t,e,i,n){S.validateCallback(n,"ReactDOM.render"),g.isValidElement(e)||p("39","string"==typeof e?" Instead of passing a string like 'div', pass React.createElement('div') or <div />.":"function"==typeof e?" Instead of passing a class like Foo, pass React.createElement(Foo) or <Foo />.":null!=e&&void 0!==e.props?" This may be caused by unintentionally loading two independent copies of React.":"");var r,a=g.createElement(F,{child:e});if(t){var l=w.get(t);r=l._processChildContext(l._context)}else r=T;var h=d(i);if(h){var u=h._currentElement.props.child;if(M(u,e)){var f=h._renderedComponent.getPublicInstance(),m=n&&function(){n.call(f)};return z._updateRootComponent(h,a,r,i,m),f}z.unmountComponentAtNode(i)}var v=o(i),y=v&&!!s(v),_=c(i),b=y&&!h&&!_,x=z._renderNewRootComponent(a,i,b,r)._renderedComponent.getPublicInstance();return n&&n.call(x),x},render:function(t,e,i){return z._renderSubtreeIntoContainer(null,t,e,i)},unmountComponentAtNode:function(t){h(t)||p("40");var e=d(t);return e?(delete O[e._instance.rootID],P.batchedUpdates(l,e,t,!1),!0):(c(t),1===t.nodeType&&t.hasAttribute(D),!1)},_mountImageIntoNode:function(t,e,i,s,r){if(h(e)||p("41"),s){var a=o(e);if(k.canReuseMarkup(t,a))return void y.precacheNode(i,a);var l=a.getAttribute(k.CHECKSUM_ATTR_NAME);a.removeAttribute(k.CHECKSUM_ATTR_NAME);var c=a.outerHTML;a.setAttribute(k.CHECKSUM_ATTR_NAME,l);var u=t,d=n(u,c),m=" (client) "+u.substring(d-20,d+20)+"\n (server) "+c.substring(d-20,d+20);e.nodeType===N&&p("42",m)}if(e.nodeType===N&&p("43"),r.useCreateElement){for(;e.lastChild;)e.removeChild(e.lastChild);f.insertTreeBefore(e,t,null)}else A(e,t),y.precacheNode(i,e.firstChild)}};t.exports=z},function(t){"use strict";t.exports="15.4.2"},function(t,e,i){"use strict";function n(t){for(var e;(e=t._renderedNodeType)===o.COMPOSITE;)t=t._renderedComponent;return e===o.HOST?t._renderedComponent:e===o.EMPTY?null:void 0}var o=i(74);t.exports=n},function(t){"use strict";function e(t){return t.replace(i,function(t,e){return e.toUpperCase()})}var i=/-(.)/g;t.exports=e},function(t,e,i){"use strict";function n(t){return o(t.replace(s,"ms-"))}var o=i(88),s=/^-ms-/;t.exports=n},function(t,e,i){"use strict";function n(t,e){return!(!t||!e)&&(t===e||!o(t)&&(o(e)?n(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var o=i(98);t.exports=n},function(t,e,i){"use strict";function n(t){var e=t.length;if((Array.isArray(t)||"object"!=typeof t&&"function"!=typeof t)&&r(!1),"number"!=typeof e&&r(!1),0===e||e-1 in t||r(!1),"function"==typeof t.callee&&r(!1),t.hasOwnProperty)try{return Array.prototype.slice.call(t)}catch(t){}for(var i=Array(e),n=0;n<e;n++)i[n]=t[n];return i}function o(t){return!!t&&("object"==typeof t||"function"==typeof t)&&"length"in t&&!("setInterval"in t)&&"number"!=typeof t.nodeType&&(Array.isArray(t)||"callee"in t||"item"in t)}function s(t){return o(t)?Array.isArray(t)?t.slice():n(t):[t]}var r=i(1);t.exports=s},function(t,e,i){"use strict";function n(t){var e=t.match(h);return e&&e[1].toLowerCase()}function o(t,e){var i=c;c||l(!1);var o=n(t),s=o&&a(o);if(s){i.innerHTML=s[1]+t+s[2];for(var h=s[0];h--;)i=i.lastChild}else i.innerHTML=t;var u=i.getElementsByTagName("script");u.length&&(e||l(!1),r(u).forEach(e));for(var d=Array.from(i.childNodes);i.lastChild;)i.removeChild(i.lastChild);return d}var s=i(6),r=i(91),a=i(93),l=i(1),c=s.canUseDOM?document.createElement("div"):null,h=/^\s*<(\w+)/;t.exports=o},function(t,e,i){"use strict";function n(t){return r||s(!1),d.hasOwnProperty(t)||(t="*"),a.hasOwnProperty(t)||(r.innerHTML="*"===t?"<link />":"<"+t+"></"+t+">",a[t]=!r.firstChild),a[t]?d[t]:null}var o=i(6),s=i(1),r=o.canUseDOM?document.createElement("div"):null,a={},l=[1,'<select multiple="true">',"</select>"],c=[1,"<table>","</table>"],h=[3,"<table><tbody><tr>","</tr></tbody></table>"],u=[1,'<svg xmlns="http://www.w3.org/2000/svg">',"</svg>"],d={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:l,option:l,caption:c,colgroup:c,tbody:c,tfoot:c,thead:c,td:h,th:h};["circle","clipPath","defs","ellipse","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","text","tspan"].forEach(function(t){d[t]=u,a[t]=!0}),t.exports=n},function(t){"use strict";function e(t){return t.Window&&t instanceof t.Window?{x:t.pageXOffset||t.document.documentElement.scrollLeft,y:t.pageYOffset||t.document.documentElement.scrollTop}:{x:t.scrollLeft,y:t.scrollTop}}t.exports=e},function(t){"use strict";function e(t){return t.replace(i,"-$1").toLowerCase()}var i=/([A-Z])/g;t.exports=e}
24,function(t,e,i){"use strict";function n(t){return o(t).replace(s,"-ms-")}var o=i(95),s=/^ms-/;t.exports=n},function(t){"use strict";function e(t){var e=(t?t.ownerDocument||t:document).defaultView||window;return!(!t||!("function"==typeof e.Node?t instanceof e.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=e},function(t,e,i){"use strict";function n(t){return o(t)&&3==t.nodeType}var o=i(97);t.exports=n},function(t){"use strict";function e(t){var e={};return function(i){return e.hasOwnProperty(i)||(e[i]=t.call(this,i)),e[i]}}t.exports=e},function(t){"use strict";var e={Properties:{"aria-current":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},DOMAttributeNames:{},DOMPropertyNames:{}};t.exports=e},function(t,e,i){"use strict";var n=i(5),o=i(52),s={focusDOMComponent:function(){o(n.getNodeFromInstance(this))}};t.exports=s},function(t,e,i){"use strict";function n(){var t=window.opera;return"object"==typeof t&&"function"==typeof t.version&&parseInt(t.version(),10)<=12}function o(t){return(t.ctrlKey||t.altKey||t.metaKey)&&!(t.ctrlKey&&t.altKey)}function s(t){switch(t){case"topCompositionStart":return P.compositionStart;case"topCompositionEnd":return P.compositionEnd;case"topCompositionUpdate":return P.compositionUpdate}}function r(t,e){return"topKeyDown"===t&&e.keyCode===_}function a(t,e){switch(t){case"topKeyUp":return-1!==y.indexOf(e.keyCode);case"topKeyDown":return e.keyCode!==_;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function l(t){var e=t.detail;return"object"==typeof e&&"data"in e?e.data:null}function c(t,e,i,n){var o,c;if(b?o=s(t):E?a(t,i)&&(o=P.compositionEnd):r(t,i)&&(o=P.compositionStart),!o)return null;k&&(E||o!==P.compositionStart?o===P.compositionEnd&&E&&(c=E.getData()):E=m.getPooled(n));var h=g.getPooled(o,e,i,n);if(c)h.data=c;else{var u=l(i);null!==u&&(h.data=u)}return p.accumulateTwoPhaseDispatches(h),h}function h(t,e){switch(t){case"topCompositionEnd":return l(e);case"topKeyPress":return e.which!==C?null:(T=!0,S);case"topTextInput":var i=e.data;return i===S&&T?null:i;default:return null}}function u(t,e){if(E){if("topCompositionEnd"===t||!b&&a(t,e)){var i=E.getData();return m.release(E),E=null,i}return null}switch(t){case"topPaste":default:return null;case"topKeyPress":return e.which&&!o(e)?String.fromCharCode(e.which):null;case"topCompositionEnd":return k?null:e.data}}function d(t,e,i,n){var o;if(!(o=w?h(t,i):u(t,i)))return null;var s=v.getPooled(P.beforeInput,e,i,n);return s.data=o,p.accumulateTwoPhaseDispatches(s),s}var p=i(21),f=i(6),m=i(108),g=i(137),v=i(140),y=[9,13,27,32],_=229,b=f.canUseDOM&&"CompositionEvent"in window,x=null;f.canUseDOM&&"documentMode"in document&&(x=document.documentMode);var w=f.canUseDOM&&"TextEvent"in window&&!x&&!n(),k=f.canUseDOM&&(!b||x&&x>8&&x<=11),C=32,S=String.fromCharCode(C),P={beforeInput:{phasedReg
24istrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:["topBlur","topCompositionEnd","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:["topBlur","topCompositionStart","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:["topBlur","topCompositionUpdate","topKeyDown","topKeyPress","topKeyUp","topMouseDown"]}},T=!1,E=null,A={eventTypes:P,extractEvents:function(t,e,i,n){return[c(t,e,i,n),d(t,e,i,n)]}};t.exports=A},function(t,e,i){"use strict";var n=i(54),o=i(6),s=(i(8),i(89),i(146)),r=i(96),a=i(99),l=(i(2),a(function(t){return r(t)})),c=!1,h="cssFloat";if(o.canUseDOM){var u=document.createElement("div").style;try{u.font=""}catch(t){c=!0}void 0===document.documentElement.style.cssFloat&&(h="styleFloat")}var d={createMarkupForStyles:function(t,e){var i="";for(var n in t)if(t.hasOwnProperty(n)){var o=t[n];null!=o&&(i+=l(n)+":",i+=s(n,o,e)+";")}return i||null},setValueForStyles:function(t,e,i){var o=t.style;for(var r in e)if(e.hasOwnProperty(r)){var a=s(r,e[r],i);if("float"!==r&&"cssFloat"!==r||(r=h),a)o[r]=a;else{var l=c&&n.shorthandPropertyExpansions[r];if(l)for(var u in l)o[u]="";else o[r]=""}}}};t.exports=d},function(t,e,i){"use strict";function n(t){var e=t.nodeName&&t.nodeName.toLowerCase();return"select"===e||"input"===e&&"file"===t.type}function o(t){var e=k.getPooled(T.change,A,t,C(t));_.accumulateTwoPhaseDispatches(e),w.batchedUpdates(s,e)}function s(t){y.enqueueEvents(t),y.processEventQueue(!1)}function r(t,e){A=e,(E=t).attachEvent("onchange",o)}function a(){E&&(E.detachEvent("onchange",o),E=null,A=null)}function l(t,e){if("topChange"===t)return e}function c(t,e,i){"topFocus"===t?(a(),r(e,i)):"topBlur"===t&&a()}function h(t,e){E=t,A=e,M=t.value,L=Object.getOwnPropertyDescriptor(t.constructor.prototype,"value"),Object.defineProperty(E,"value",N),E.attachEvent?E.attachEvent("onpropertychange",d):E.addEventListener("propertychange",d,!1)}function u(){E&&(delete E.value,E.detachEvent?E.detachEvent("onpropertychange",d):E.removeEventListener("propertychange",d,!1),E=null,A=null,M=null,L=null)}function d(t){if("value"===t.propertyName){var e=t.srcElement.value;e!==M&&(M=e,o(t))}}function p(t,e){if("topInput"===t)return e}function f(t,e,i){"topFocus"===t?(u(),h(e,i)):"topBlur"===t&&u()}function m(t){if(("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)&&E&&E.value!==M)return M=E.value,A}function g(t){return t.nodeName&&"input"===t.nodeName.toLowerCase()&&("checkbox"===t.type||"radio"===t.type)}function v(t,e){if("topClick"===t)return e}var y=i(20),_=i(21),b=i(6),x=i(5),w=i(9),k=i(10),C=i(41),S=i(42),P=i(66),T={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:["topBlur","topChange","topClick","topFocus","topInput","topKeyDown","topKeyUp","topSelectionChange"]}},E=null,A=null,M=null,L=null,D=!1;b.canUseDOM&&(D=S("change")&&(!document.documentMode||document.documentMode>8));var I=!1;b.canUseDOM&&(I=S("input")&&(!document.documentMode||document.documentMode>11));var N={get:function(){return L.get.call(this)},set:function(t){M=""+t,L.set.call(this,t)}},R={eventTypes:T,extractEvents:function(t,e,i,o){var s,r,a=e?x.getNodeFromInstance(e):window;if(n(a)?D?s=l:r=c:P(a)?I?s=p:(s=m,r=f):g(a)&&(s=v),s){var h=s(t,e);if(h){var u=k.getPooled(T.change,h,i,o);return u.type="change",_.accumulateTwoPhaseDispatches(u),u}}r&&r(t,a,e)}};t.exports=R},function(t,e,i){"use strict";var n=i(3),o=i(17),s=i(6),r=i(92),a=i(7),l=(i(1),{dangerouslyReplaceNodeWithMarkup:function(t,e){if(s.canUseDOM||n("56"),e||n("57"),"HTML"===t.nodeName&&n("58"),"string"==typeof e){var i=r(e,a)[0];t.parentNode.replaceChild(i,t)}else o.replaceChildWithTree(t,e)}});t.exports=l},function(t){"use strict";var e=["ResponderEventPlugin","SimpleEventPlugin","TapEventPlugin","EnterLeaveEventPlugin","ChangeEventPlugin","SelectEventPlugin","BeforeInputEventPlugin"];t.exports=e}
24,function(t,e,i){"use strict";var n=i(21),o=i(5),s=i(24),r={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},a={eventTypes:r,extractEvents:function(t,e,i,a){if("topMouseOver"===t&&(i.relatedTarget||i.fromElement))return null;if("topMouseOut"!==t&&"topMouseOver"!==t)return null;var l,c,h;if(a.window===a)l=a;else{var u=a.ownerDocument;l=u?u.defaultView||u.parentWindow:window}if("topMouseOut"===t){c=e;var d=i.relatedTarget||i.toElement;h=d?o.getClosestInstanceFromNode(d):null}else c=null,h=e;if(c===h)return null;var p=null==c?l:o.getNodeFromInstance(c),f=null==h?l:o.getNodeFromInstance(h),m=s.getPooled(r.mouseLeave,c,i,a);m.type="mouseleave",m.target=p,m.relatedTarget=f;var g=s.getPooled(r.mouseEnter,h,i,a);return g.type="mouseenter",g.target=f,g.relatedTarget=p,n.accumulateEnterLeaveDispatches(m,g,c,h),[m,g]}};t.exports=a},function(t,e,i){"use strict";function n(t){this._root=t,this._startText=this.getText(),this._fallbackText=null}var o=i(4),s=i(13),r=i(65);o(n.prototype,{destructor:function(){this._root=null,this._startText=null,this._fallbackText=null},getText:function(){return"value"in this._root?this._root.value:this._root[r()]},getData:function(){if(this._fallbackText)return this._fallbackText;var t,e,i=this._startText,n=i.length,o=this.getText(),s=o.length;for(t=0;t<n&&i[t]===o[t];t++);var r=n-t;for(e=1;e<=r&&i[n-e]===o[s-e];e++);var a=e>1?1-e:void 0;return this._fallbackText=o.slice(t,a),this._fallbackText}}),s.addPoolingTo(n),t.exports=n},function(t,e,i){"use strict";var n=i(18),o=n.injection.MUST_USE_PROPERTY,s=n.injection.HAS_BOOLEAN_VALUE,r=n.injection.HAS_NUMERIC_VALUE,a=n.injection.HAS_POSITIVE_NUMERIC_VALUE,l=n.injection.HAS_OVERLOADED_BOOLEAN_VALUE,c={isCustomAttribute:RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+n.ATTRIBUTE_NAME_CHAR+"]*$")),Properties:{accept:0,acceptCharset:0,accessKey:0,action:0,allowFullScreen:s,allowTransparency:0,alt:0,as:0,async:s,autoComplete:0,autoPlay:s,capture:s,cellPadding:0,cellSpacing:0,charSet:0,challenge:0,checked:o|s,cite:0,classID:0,className:0,cols:a,colSpan:0,content:0,contentEditable:0,contextMenu:0,controls:s,coords:0,crossOrigin:0,data:0,dateTime:0,default:s,defer:s,dir:0,disabled:s,download:l,draggable:0,encType:0,form:0,formAction:0,formEncType:0,formMethod:0,formNoValidate:s,formTarget:0,frameBorder:0,headers:0,height:0,hidden:s,high:0,href:0,hrefLang:0,htmlFor:0,httpEquiv:0,icon:0,id:0,inputMode:0,integrity:0,is:0,keyParams:0,keyType:0,kind:0,label:0,lang:0,list:0,loop:s,low:0,manifest:0,marginHeight:0,marginWidth:0,max:0,maxLength:0,media:0,mediaGroup:0,method:0,min:0,minLength:0,multiple:o|s,muted:o|s,name:0,nonce:0,noValidate:s,open:s,optimum:0,pattern:0,placeholder:0,playsInline:s,poster:0,preload:0,profile:0,radioGroup:0,readOnly:s,referrerPolicy:0,rel:0,required:s,reversed:s,role:0,rows:a,rowSpan:r,sandbox:0,scope:0,scoped:s,scrolling:0,seamless:s,selected:o|s,shape:0,size:a,sizes:0,span:a,spellCheck:0,src:0,srcDoc:0,srcLang:0,srcSet:0,start:r,step:0,style:0,summary:0,tabIndex:0,target:0,title:0,type:0,useMap:0,value:0,width:0,wmode:0,wrap:0,about:0,datatype:0,inlist:0,prefix:0,property:0,resource:0,typeof:0,vocab:0,autoCapitalize:0,autoCorrect:0,autoSave:0,color:0,itemProp:0,itemScope:s,itemType:0,itemID:0,itemRef:0,results:0,security:0,unselectable:0},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{}};t.exports=c},function(t,e,i){(function(e){"use strict";function n(t,e,i){var n=void 0===t[i];null!=e&&n&&(t[i]=s(e,!0))}var o=i(14),s=i(50),r=(i(34),i(47)),a=i(68);i(2),void 0!==e&&e.env;var l={instantiateChildren:function(t){if(null==t)return null;var e={};return a(t,n,e),e},updateChildren:function(t,e,i,n,a,l,c,h,u){if(e||t){var d,p;for(d in e)if(e.hasOwnProperty(d)){var f=(p=t&&t[d])&&p._currentElement,m=e[d];if(null!=p&&r(f,m))o.receiveComponent(p,m,a,h),e[d]=p;else{p&&(n[d]=o.getHostNode(p),o.unmountComponent(p,!1));var g=s(m,!0);e[d]=g;var v=o.mountComponent(g,a,l,c,h,u);i.push(v)}}for(d in t)!t.hasOwnProperty(d)||e&&e.hasOwnProperty(d)||(p=t[d],n[d]=o.getHostNode(p),o.unmountComponent(p,!1))}},unmountChildren:function(t,e){for(var i in t)if(t.hasOwnProperty(i)){var n=t[i];o.unmountComponent(n,e)}}};t.exports=l}).call(e,i(48))}
24,function(t,e,i){"use strict";var n=i(30),o={processChildrenUpdates:i(115).dangerouslyProcessChildrenUpdates,replaceNodeWithMarkup:n.dangerouslyReplaceNodeWithMarkup};t.exports=o},function(t,e,i){"use strict";function n(){}function o(){}function s(t){return!(!t.prototype||!t.prototype.isReactComponent)}function r(t){return!(!t.prototype||!t.prototype.isPureReactComponent)}var a=i(3),l=i(4),c=i(12),h=i(36),u=i(11),d=i(37),p=i(23),f=(i(8),i(74)),m=i(14),g=i(19),v=(i(1),i(29)),y=i(47),_=(i(2),{ImpureClass:0,PureClass:1,StatelessFunctional:2});n.prototype.render=function(){var t=p.get(this)._currentElement.type,e=t(this.props,this.context,this.updater);return o(t,e),e};var b=1,x={construct:function(t){this._currentElement=t,this._rootNodeID=0,this._compositeType=null,this._instance=null,this._hostParent=null,this._hostContainerInfo=null,this._updateBatchNumber=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedNodeType=null,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._topLevelWrapper=null,this._pendingCallbacks=null,this._calledComponentWillUnmount=!1},mountComponent:function(t,e,i,l){this._context=l,this._mountOrder=b++,this._hostParent=e,this._hostContainerInfo=i;var h,u=this._currentElement.props,d=this._processContext(l),f=this._currentElement.type,m=t.getUpdateQueue(),v=s(f),y=this._constructComponent(v,u,d,m);v||null!=y&&null!=y.render?r(f)?this._compositeType=_.PureClass:this._compositeType=_.ImpureClass:(o(f,h=y),null===y||!1===y||c.isValidElement(y)||a("105",f.displayName||f.name||"Component"),y=new n(f),this._compositeType=_.StatelessFunctional),y.props=u,y.context=d,y.refs=g,y.updater=m,this._instance=y,p.set(y,this);var x,w=y.state;return void 0===w&&(y.state=w=null),("object"!=typeof w||Array.isArray(w))&&a("106",this.getName()||"ReactCompositeComponent"),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,x=y.unstable_handleError?this.performInitialMountWithErrorHandling(h,e,i,t,l):this.performInitialMount(h,e,i,t,l),y.componentDidMount&&t.getReactMountReady().enqueue(y.componentDidMount,y),x},_constructComponent:function(t,e,i,n){return this._constructComponentWithoutOwner(t,e,i,n)},_constructComponentWithoutOwner:function(t,e,i,n){var o=this._currentElement.type;return t?new o(e,i,n):o(e,i,n)},performInitialMountWithErrorHandling:function(t,e,i,n,o){var s,r=n.checkpoint();try{s=this.performInitialMount(t,e,i,n,o)}catch(a){n.rollback(r),this._instance.unstable_handleError(a),this._pendingStateQueue&&(this._instance.state=this._processPendingState(this._instance.props,this._instance.context)),r=n.checkpoint(),this._renderedComponent.unmountComponent(!0),n.rollback(r),s=this.performInitialMount(t,e,i,n,o)}return s},performInitialMount:function(t,e,i,n,o){var s=this._instance,r=0;s.componentWillMount&&(s.componentWillMount(),this._pendingStateQueue&&(s.state=this._processPendingState(s.props,s.context))),void 0===t&&(t=this._renderValidatedComponent());var a=f.getType(t);this._renderedNodeType=a;var l=this._instantiateReactComponent(t,a!==f.EMPTY);return this._renderedComponent=l,m.mountComponent(l,n,e,i,this._processChildContext(o),r)},getHostNode:function(){return m.getHostNode(this._renderedComponent)},unmountComponent:function(t){if(this._renderedComponent){var e=this._instance;if(e.componentWillUnmount&&!e._calledComponentWillUnmount)if(e._calledComponentWillUnmount=!0,t){var i=this.getName()+".componentWillUnmount()";d.invokeGuardedCallback(i,e.componentWillUnmount.bind(e))}else e.componentWillUnmount();this._renderedComponent&&(m.unmountComponent(this._renderedComponent,t),this._renderedNodeType=null,this._renderedComponent=null,this._instance=null),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=0,this._topLevelWrapper=null,p.remove(e)}},_maskContext:function(t){var e=this._currentElement.type.contextTypes;if(!e)return g;var i={};for(var n in e)i[n]=t[n];return i},_processContext:function(t){return this._maskContext(t)}
24,_processChildContext:function(t){var e,i=this._currentElement.type,n=this._instance;if(n.getChildContext&&(e=n.getChildContext()),e){for(var o in"object"!=typeof i.childContextTypes&&a("107",this.getName()||"ReactCompositeComponent"),e)o in i.childContextTypes||a("108",this.getName()||"ReactCompositeComponent",o);return l({},t,e)}return t},_checkContextTypes:function(){},receiveComponent:function(t,e,i){var n=this._currentElement,o=this._context;this._pendingElement=null,this.updateComponent(e,n,t,o,i)},performUpdateIfNecessary:function(t){null!=this._pendingElement?m.receiveComponent(this,this._pendingElement,t,this._context):null!==this._pendingStateQueue||this._pendingForceUpdate?this.updateComponent(t,this._currentElement,this._currentElement,this._context,this._context):this._updateBatchNumber=null},updateComponent:function(t,e,i,n,o){var s=this._instance;null==s&&a("136",this.getName()||"ReactCompositeComponent");var r,l=!1;this._context===o?r=s.context:(r=this._processContext(o),l=!0);var c=e.props,h=i.props;e!==i&&(l=!0),l&&s.componentWillReceiveProps&&s.componentWillReceiveProps(h,r);var u=this._processPendingState(h,r),d=!0;this._pendingForceUpdate||(s.shouldComponentUpdate?d=s.shouldComponentUpdate(h,u,r):this._compositeType===_.PureClass&&(d=!v(c,h)||!v(s.state,u))),this._updateBatchNumber=null,d?(this._pe
24ndingForceUpdate=!1,this._performComponentUpdate(i,h,u,r,t,o)):(this._currentElement=i,this._context=o,s.props=h,s.state=u,s.context=r)},_processPendingState:function(t,e){var i=this._instance,n=this._pendingStateQueue,o=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!n)return i.state;if(o&&1===n.length)return n[0];for(var s=l({},o?n[0]:i.state),r=o?1:0;r<n.length;r++){var a=n[r];l(s,"function"==typeof a?a.call(i,s,t,e):a)}return s},_performComponentUpdate:function(t,e,i,n,o,s){var r,a,l,c=this._instance,h=Boolean(c.componentDidUpdate);h&&(r=c.props,a=c.state,l=c.context),c.componentWillUpdate&&c.componentWillUpdate(e,i,n),this._currentElement=t,this._context=s,c.props=e,c.state=i,c.context=n,this._updateRenderedComponent(o,s),h&&o.getReactMountReady().enqueue(c.componentDidUpdate.bind(c,r,a,l),c)},_updateRenderedComponent:function(t,e){var i=this._renderedComponent,n=i._currentElement,o=this._renderValidatedComponent(),s=0;if(y(n,o))m.receiveComponent(i,o,t,this._processChildContext(e));else{var r=m.getHostNode(i);m.unmountComponent(i,!1);var a=f.getType(o);this._renderedNodeType=a;var l=this._instantiateReactComponent(o,a!==f.EMPTY);this._renderedComponent=l;var c=m.mountComponent(l,t,this._hostParent,this._hostContainerInfo,this._processChildContext(e),s);this._replaceNodeWithMarkup(r,c,i)}},_replaceNodeWithMarkup:function(t,e,i){h.replaceNodeWithMarkup(t,e,i)},_renderValidatedComponentWithoutOwnerOrContext:function(){return this._instance.render()},_renderValidatedComponent:function(){var t;if(this._compositeType!==_.StatelessFunctional){u.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{u.current=null}}else t=this._renderValidatedComponentWithoutOwnerOrContext();return null===t||!1===t||c.isValidElement(t)||a("109",this.getName()||"ReactCompositeComponent"),t},attachRef:function(t,e){var i=this.getPublicInstance();null==i&&a("110");var n=e.getPublicInstance();(i.refs===g?i.refs={}:i.refs)[t]=n},detachRef:function(t){delete this.getPublicInstance().refs[t]},getName:function(){var t=this._currentElement.type,e=this._instance&&this._instance.constructor;return t.displayName||e&&e.displayName||t.name||e&&e.name||null},getPublicInstance:function(){var t=this._instance;return this._compositeType===_.StatelessFunctional?null:t},_instantiateReactComponent:null};t.exports=x},function(t,e,i){"use strict";function n(t){if(t){var e=t._currentElement._owner||null;if(e){var i=e.getName();if(i)return" This DOM node was rendered by `"+i+"`."}}return""}function o(t,e){e&&(Z[t._tag]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&m("137",t._tag,t._currentElement._owner?" Check the render method of "+t._currentElement._owner.getName()+".":""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&m("60"),"object"==typeof e.dangerouslySetInnerHTML&&H in e.dangerouslySetInnerHTML||m("61")),null!=e.style&&"object"!=typeof e.style&&m("62",n(t)))}function s(t,e,i,n){if(!(n instanceof I)){var o=t._hostContainerInfo,s=o._node&&o._node.nodeType===U?o._node:o._ownerDocument;F(e,s),n.getReactMountReady().enqueue(r,{inst:t,registrationName:e,listener:i})}}function r(){var t=this;k.putListener(t.inst,t.registrationName,t.listener)}function a(){var t=this;E.postMountWrapper(t)}function l(){var t=this;L.postMountWrapper(t)}function c(){var t=this;A.postMountWrapper(t)}function h(){var t=this;t._rootNodeID||m("63");var e=$(t);switch(e||m("64"),t._tag){case"iframe":case"object":t._wrapperState.listeners=[S.trapBubbledEvent("topLoad","load",e)];break;case"video":case"audio":for(var i in t._wrapperState.listeners=[],Y)Y.hasOwnProperty(i)&&t._wrapperState.listeners.push(S.trapBubbledEvent(i,Y[i],e));break;case"source":t._wrapperState.listeners=[S.trapBubbledEvent("topError","error",e)];break;case"img":t._wrapperState.listeners=[S.trapBubbledEvent("topError","error",e),S.trapBubbledEvent("topLoad","load",e)];break;case"form":t._wrapperState.listeners=[S.trapBubbledEvent("topReset","reset",e),S.trapBubbledEvent("topSubmit","submit",e)];break;case"input":case"select":case"textarea":t._wrapperState.listeners=[S.trapBubbledEvent("topInvalid","invali
24d",e)]}}function u(){M.postUpdateWrapper(this)}function d(t){K.call(X,t)||(G.test(t)||m("65",t),X[t]=!0)}function p(t,e){return t.indexOf("-")>=0||null!=e.is}function f(t){var e=t.type;d(e),this._currentElement=t,this._tag=e.toLowerCase(),this._namespaceURI=null,this._renderedChildren=null,this._previousStyle=null,this._previousStyleCopy=null,this._hostNode=null,this._hostParent=null,this._rootNodeID=0,this._domID=0,this._hostContainerInfo=null,
25this._wrapperState=null,this._topLevelWrapper=null,this._flags=0}var m=i(3),g=i(4),v=i(101),y=i(103),_=i(17),b=i(31),x=i(18),w=i(56),k=i(20),C=i(32),S=i(27),P=i(57),T=i(5),E=i(116),A=i(117),M=i(58),L=i(120),D=(i(8),i(126)),I=i(76),N=(i(7),i(26)),R=(i(1),i(42),i(29),i(43),i(2),P),O=k.deleteListener,$=T.getNodeFromInstance,F=S.listenTo,z=C.registrationNameModules,j={string:!0,number:!0},B="style",H="__html",W={children:null,dangerouslySetInnerHTML:null,suppressContentEditableWarning:null},U=11,Y={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},V={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},q={listing:!0,pre:!0,textarea:!0},Z=g({menuitem:!0},V),G=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,X={},K={}.hasOwnProperty,Q=1;f.displayName="ReactDOMComponent",f.Mixin={mountComponent:function(t,e,i,n){this._rootNodeID=Q++,this._domID=i._idCounter++,this._hostParent=e,this._hostContainerInfo=i;var s,r,u,d=this._currentElement.props;switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":this._wrapperState={listeners:null},t.getReactMountReady().enqueue(h,this);break;case"input":E.mountWrapper(this,d,e),d=E.getHostProps(this,d),t.getReactMountReady().enqueue(h,this);break;case"option":A.mountWrapper(this,d,e),d=A.getHostProps(this,d);break;case"select":M.mountWrapper(this,d,e),d=M.getHostProps(this,d),t.getReactMountReady().enqueue(h,this);break;case"textarea":L.mountWrapper(this,d,e),d=L.getHostProps(this,d),t.getReactMountReady().enqueue(h,this)}if(o(this,d),null!=e?(s=e._namespaceURI,r=e._tag):i._tag&&(s=i._namespaceURI,r=i._tag),(null==s||s===b.svg&&"foreignobject"===r)&&(s=b.html),s===b.html&&("svg"===this._tag?s=b.svg:"math"===this._tag&&(s=b.mathml)),this._namespaceURI=s,t.useCreateElement){var p,f=i._ownerDocument;if(s===b.html)if("script"===this._tag){var m=f.createElement("div"),g=this._currentElement.type;m.innerHTML="<"+g+"></"+g+">",p=m.removeChild(m.firstChild)}else p=d.is?f.createElement(this._currentElement.type,d.is):f.createElement(this._currentElement.type);else p=f.createElementNS(s,this._currentElement.type);T.precacheNode(this,p),this._flags|=R.hasCachedChildNodes,this._hostParent||w.setAttributeForRoot(p),this._updateDOMProperties(null,d,t);var y=_(p);this._createInitialChildren(t,d,n,y),u=y}else{var x=this._createOpenTagMarkupAndPutListeners(t,d),k=this._createContentMarkup(t,d,n);u=!k&&V[this._tag]?x+"/>":x+">"+k+"</"+this._currentElement.type+">"}switch(this._tag){case"input":t.getReactMountReady().enqueue(a,this),d.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"textarea":t.getReactMountReady().enqueue(l,this),d.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"select":case"button":d.autoFocus&&t.getReactMountReady().enqueue(v.focusDOMComponent,this);break;case"option":t.getReactMountReady().enqueue(c,this)}return u},_createOpenTagMarkupAndPutListeners:function(t,e){var i="<"+this._currentElement.type;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];if(null!=o)if(z.hasOwnProperty(n))o&&s(this,n,o,t);else{n===B&&(o&&(o=this._previousStyleCopy=g({},e.style)),o=y.createMarkupForStyles(o,this));var r=null;null!=this._tag&&p(this._tag,e)?W.hasOwnProperty(n)||(r=w.createMarkupFor
25CustomAttribute(n,o)):r=w.createMarkupForProperty(n,o),r&&(i+=" "+r)}}return t.renderToStaticMarkup?i:(this._hostParent||(i+=" "+w.createMarkupForRoot()),i+=" "+w.createMarkupForID(this._domID))},_createContentMarkup:function(t,e,i){var n="",o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&(n=o.__html);else{var s=j[typeof e.children]?e.children:null,r=null!=s?null:e.children;if(null!=s)n=N(s);else if(null!=r){n=this.mountChildren(r,t,i).join("")}}return q[this._tag]&&"\n"===n.charAt(0)?"\n"+n:n},_createInitialChildren:function(t,e,i,n){var o=e.dangerouslySetInnerHTML;if(null!=o)null!=o.__html&&_.queueHTML(n,o.__html);else{var s=j[typeof e.children]?e.children:null,r=null!=s?null:e.children;if(null!=s)""!==s&&_.queueText(n,s);else if(null!=r)for(var a=this.mountChildren(r,t,i),l=0;l<a.length;l++)_.queueChild(n,a[l])}},receiveComponent:function(t,e,i){var n=this._currentElement;this._currentElement=t,this.updateComponent(e,n,t,i)},updateComponent:function(t,e,i,n){var s=e.props,r=this._currentElement.props;switch(this._tag){case"input":s=E.getHostProps(this,s),r=E.getHostProps(this,r);break;case"option":s=A.getHostProps(this,s),r=A.getHostProps(this,r);break;case"select":s=M.getHostProps(this,s),r=M.getHostProps(this,r);break;case"textarea":s=L.getHostProps(this,s),r=L.getHostProps(this,r)}switch(o(this,r),this._updateDOMProperties(s,r,t),this._updateDOMChildren(s,r,t,n),this._tag){case"input":E.updateWrapper(this);break;case"textarea":L.updateWrapper(this);break;case"select":t.getReactMountReady().enqueue(u,this)}},_updateDOMProperties:function(t,e,i){var n,o,r;for(n in t)if(!e.hasOwnProperty(n)&&t.hasOwnProperty(n)&&null!=t[n])if(n===B){var a=this._previousStyleCopy;for(o in a)a.hasOwnProperty(o)&&((r=r||{})[o]="");this._previousStyleCopy=null}else z.hasOwnProperty(n)?t[n]&&O(this,n):p(this._tag,t)?W.hasOwnProperty(n)||w.deleteValueForAttribute($(this),n):(x.properties[n]||x.isCustomAttribute(n))&&w.deleteValueForProperty($(this),n);for(n in e){var l=e[n],c=n===B?this._previousStyleCopy:null!=t?t[n]:void 0;if(e.hasOwnProperty(n)&&l!==c&&(null!=l||null!=c))if(n===B)if(l?l=this._previousStyleCopy=g({},l):this._previousStyleCopy=null,c){for(o in c)!c.hasOwnProperty(o)||l&&l.hasOwnProperty(o)||((r=r||{})[o]="");for(o in l)l.hasOwnProperty(o)&&c[o]!==l[o]&&((r=r||{})[o]=l[o])}else r=l;else if(z.hasOwnProperty(n))l?s(this,n,l,i):c&&O(this,n);else if(p(this._tag,e))W.hasOwnProperty(n)||w.setValueForAttribute($(this),n,l);else if(x.properties[n]||x.isCustomAttribute(n)){var h=$(this);null!=l?w.setValueForProperty(h,n,l):w.deleteValueForProperty(h,n)}}r&&y.setValueForStyles($(this),r,this)},_updateDOMChildren:function(t,e,i,n){var o=j[typeof t.children]?t.children:null,s=j[typeof e.children]?e.children:null,r=t.dangerouslySetInnerHTML&&t.dangerouslySetInnerHTML.__html,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,l=null!=o?null:t.children,c=null!=s?null:e.children,h=null!=o||null!=r,u=null!=s||null!=a;null!=l&&null==c?this.updateChildren(null,i,n):h&&!u&&this.updateTextContent(""),null!=s?o!==s&&this.updateTextContent(""+s):null!=a?r!==a&&this.updateMarkup(""+a):null!=c&&this.updateChildren(c,i,n)},getHostNode:function(){return $(this)},unmountComponent:function(t){switch(this._tag){case"audio":case"form":case"iframe":case"img":case"link":case"object":case"source":case"video":var e=this._wrapperState.listeners;if(e)for(var i=0;i<e.length;i++)e[i].remove();break;case"html":case"head":case"body":m("66",this._tag)}this.unmountChildren(t),T.uncacheNode(this),k.deleteAllListeners(this),this._rootNodeID=0,this._domID=0,this._wrapperState=null},getPublicInstance:function(){return $(this)}},g(f.prototype,f.Mixin,D.Mixin),t.exports=f},function(t,e,i){"use strict";var n=i(4),o=i(17),s=i(5),r=function(){this._currentElement=null,this._hostNode=null,this._hostParent=null,this._hostContainerInfo=null,this._domID=0};n(r.prototype,{mountComponent:function(t,e,i){var n=i._idCounter++;this._domID=n,this._hostParent=e,this._hostContainerInfo=i;var r=" react-empty: "+this._domID+" ";if(t.useCreateElement){var a=i._ownerDocument.createComment(r);return s.precacheNode(this,a),o(a)}return t.renderToStaticMarkup?"":"<!--"+r+"-->"},receiveComponent:function(){},getHostNode:function(){return s.getNodeFromInstance(this)},unmountComponent:function(){s.uncacheNode(this)}}),t.exports=r}
25,function(t,e,i){"use strict";var n=i(30),o=i(5),s={dangerouslyProcessChildrenUpdates:function(t,e){var i=o.getNodeFromInstance(t);n.processUpdates(i,e)}};t.exports=s},function(t,e,i){"use strict";function n(){this._rootNodeID&&u.updateWrapper(this)}function o(t){var e=this._currentElement.props,i=l.executeOnChange(e,t);h.asap(n,this);var o=e.name;if("radio"===e.type&&null!=o){for(var r=c.getNodeFromInstance(this),a=r;a.parentNode;)a=a.parentNode;for(var u=a.querySelectorAll("input[name="+JSON.stringify(""+o)+'][type="radio"]'),d=0;d<u.length;d++){var p=u[d];if(p!==r&&p.form===r.form){var f=c.getInstanceFromNode(p);f||s("90"),h.asap(n,f)}}}return i}var s=i(3),r=i(4),a=i(56),l=i(35),c=i(5),h=i(9),u=(i(1),i(2),{getHostProps:function(t,e){var i=l.getValue(e),n=l.getChecked(e);return r({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=i?i:t._wrapperState.initialValue,checked:null!=n?n:t._wrapperState.initialChecked,onChange:t._wrapperState.onChange})},mountWrapper:function(t,e){var i=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:i,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,i=e.checked;null!=i&&a.setValueForProperty(c.getNodeFromInstance(t),"checked",i||!1);var n=c.getNodeFromInstance(t),o=l.getValue(e);if(null!=o){var s=""+o;s!==n.value&&(n.value=s)}else null==e.value&&null!=e.defaultValue&&n.defaultValue!==""+e.defaultValue&&(n.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(n.defaultChecked=!!e.defaultChecked)},postMountWrapper:function(t){var e=t._currentElement.props,i=c.getNodeFromInstance(t);switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":i.value="",i.value=i.defaultValue;break;default:i.value=i.value}var n=i.name;""!==n&&(i.name=""),i.defaultChecked=!i.defaultChecked,i.defaultChecked=!i.defaultChecked,""!==n&&(i.name=n)}});t.exports=u},function(t,e,i){"use strict";function n(t){var e="";return s.Children.forEach(t,function(t){null!=t&&("string"==typeof t||"number"==typeof t?e+=t:l||(l=!0))}),e}var o=i(4),s=i(12),r=i(5),a=i(58),l=(i(2),!1),c={mountWrapper:function(t,e,i){var o=null;if(null!=i){var s=i;"optgroup"===s._tag&&(s=s._hostParent),null!=s&&"select"===s._tag&&(o=a.getSelectValueContext(s))}var r,l=null;if(null!=o)if(r=null!=e.value?e.value+"":n(e.children),l=!1,Array.isArray(o)){for(var c=0;c<o.length;c++)if(""+o[c]===r){l=!0;break}}else l=""+o===r;t._wrapperState={selected:l}},postMountWrapper:function(t){var e=t._currentElement.props;null!=e.value&&r.getNodeFromInstance(t).setAttribute("value",e.value)},getHostProps:function(t,e){var i=o({selected:void 0,children:void 0},e);null!=t._wrapperState.selected&&(i.selected=t._wrapperState.selected);var s=n(e.children);return s&&(i.children=s),i}};t.exports=c},function(t,e,i){"use strict";function n(t,e,i,n){return t===i&&e===n}function o(t){var e=document.selection.createRange(),i=e.text.length,n=e.duplicate();n.moveToElementText(t),n.setEndPoint("EndToStart",e);var o=n.text.length;return{start:o,end:o+i}}function s(t){var e=window.getSelection&&window.getSelection();if(!e||0===e.rangeCount)return null;var i=e.anchorNode,o=e.anchorOffset,s=e.focusNode,r=e.focusOffset,a=e.getRangeAt(0);try{a.startContainer.nodeType,a.endContainer.nodeType}catch(t){return null}var l=n(e.anchorNode,e.anchorOffset,e.focusNode,e.focusOffset)?0:a.toString().length,c=a.cloneRange();c.selectNodeContents(t),c.setEnd(a.startContainer,a.startOffset);var h=n(c.startContainer,c.startOffset,c.endContainer,c.endOffset)?0:c.toString().length,u=h+l,d=document.createRange();d.setStart(i,o),d.setEnd(s,r);var p=d.collapsed;return{start:p?u:h,end:p?h:u}}function r(t,e){var i,n,o=document.selection.createRange().duplicate();void 0===e.end?n=i=e.start:e.start>e.end?(i=e.end,n=e.start):(i=e.start,n=e.end),o.moveToElementText(t),o.moveStart("character",i),o.setEndPoint("EndToStart",o),o.moveEnd("character",n-i),o.select()}function a(t,e){if(window.getSelection){var i=window.getSelection(),n=t[h()].length,o=Math.min(e.start,n),s=void 0===e.end?o:Math.min(e.end,n);if(!i.extend&&o>s){var r=s;s=o,o=r}var a=c(t,o),l=c(t,s);if(a&&l){var u=document.createRange();u.setStart(a.node,a.offset),i.removeAllRanges(),o>s?(i.addRange(u),i.extend(l.node,l.offset)):(u.setEnd(l.node,l.offset),i.addRange(u))}}}var l=i(6),c=i(151),h=i(65),u=l.canUseDOM&&"selection"in document&&!("getSelection"in window),d={getOffsets:u?o:s,setOffsets:u?r:a};t.exports=d}
25,function(t,e,i){"use strict";var n=i(3),o=i(4),s=i(30),r=i(17),a=i(5),l=i(26),c=(i(1),i(43),function(t){this._currentElement=t,this._stringText=""+t,this._hostNode=null,this._hostParent=null,this._domID=0,this._mountIndex=0,this._closingComment=null,this._commentNodes=null});o(c.prototype,{mountComponent:function(t,e,i){var n=i._idCounter++,o=" react-text: "+n+" ",s=" /react-text ";if(this._domID=n,this._hostParent=e,t.useCreateElement){var c=i._ownerDocument,h=c.createComment(o),u=c.createComment(s),d=r(c.createDocumentFragment());return r.queueChild(d,r(h)),this._stringText&&r.queueChild(d,r(c.createTextNode(this._stringText))),r.queueChild(d,r(u)),a.precacheNode(this,h),this._closingComment=u,d}var p=l(this._stringText);return t.renderToStaticMarkup?p:"<!--"+o+"-->"+p+"<!--"+s+"-->"},receiveComponent:function(t){if(t!==this._currentElement){this._currentElement=t;var e=""+t;if(e!==this._stringText){this._stringText=e;var i=this.getHostNode();s.replaceDelimitedText(i[0],i[1],e)}}},getHostNode:function(){var t=this._commentNodes;if(t)return t;if(!this._closingComment)for(var e=a.getNodeFromInstance(this).nextSibling;;){if(null==e&&n("67",this._domID),8===e.nodeType&&" /react-text "===e.nodeValue){this._closingComment=e;break}e=e.nextSibling}return t=[this._hostNode,this._closingComment],this._commentNodes=t,t},unmountComponent:function(){this._closingComment=null,this._commentNodes=null,a.uncacheNode(this)}}),t.exports=c},function(t,e,i){"use strict";function n(){this._rootNodeID&&h.updateWrapper(this)}function o(t){var e=this._currentElement.props,i=a.executeOnChange(e,t);return c.asap(n,this),i}var s=i(3),r=i(4),a=i(35),l=i(5),c=i(9),h=(i(1),i(2),{getHostProps:function(t,e){return null!=e.dangerouslySetInnerHTML&&s("91"),r({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue,onChange:t._wrapperState.onChange})},mountWrapper:function(t,e){var i=a.getValue(e),n=i;if(null==i){var r=e.defaultValue,l=e.children;null!=l&&(null!=r&&s("92"),Array.isArray(l)&&(l.length<=1||s("93"),l=l[0]),r=""+l),null==r&&(r=""),n=r}t._wrapperState={initialValue:""+n,listeners:null,onChange:o.bind(t)}},updateWrapper:function(t){var e=t._currentElement.props,i=l.getNodeFromInstance(t),n=a.getValue(e);if(null!=n){var o=""+n;o!==i.value&&(i.value=o),null==e.defaultValue&&(i.defaultValue=o)}null!=e.defaultValue&&(i.defaultValue=e.defaultValue)},postMountWrapper:function(t){var e=l.getNodeFromInstance(t),i=e.textContent;i===t._wrapperState.initialValue&&(e.value=i)}});t.exports=h},function(t,e,i){"use strict";function n(t,e){"_hostNode"in t||l("33"),"_hostNode"in e||l("33");for(var i=0,n=t;n;n=n._hostParent)i++;for(var o=0,s=e;s;s=s._hostParent)o++;for(;i-o>0;)t=t._hostParent,i--;for(;o-i>0;)e=e._hostParent,o--;for(var r=i;r--;){if(t===e)return t;t=t._hostParent,e=e._hostParent}return null}function o(t,e){"_hostNode"in t||l("35"),"_hostNode"in e||l("35");for(;e;){if(e===t)return!0;e=e._hostParent}return!1}function s(t){return"_hostNode"in t||l("36"),t._hostParent}function r(t,e,i){for(var n=[];t;)n.push(t),t=t._hostParent;var o;for(o=n.length;o-- >0;)e(n[o],"captured",i);for(o=0;o<n.length;o++)e(n[o],"bubbled",i)}function a(t,e,i,o,s){for(var r=t&&e?n(t,e):null,a=[];t&&t!==r;)a.push(t),t=t._hostParent;for(var l=[];e&&e!==r;)l.push(e),e=e._hostParent;var c;for(c=0;c<a.length;c++)i(a[c],"bubbled",o);for(c=l.length;c-- >0;)i(l[c],"captured",s)}var l=i(3);i(1),t.exports={isAncestor:o,getLowestCommonAncestor:n,getParentInstance:s,traverseTwoPhase:r,traverseEnterLeave:a}},function(t){"use strict";var e="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=e},function(t,e,i){"use strict";function n(t){o.enqueueEvents(t),o.processEventQueue(!1)}var o=i(20),s={handleTopLevel:function(t,e,i,s){n(o.extractEvents(t,e,i,s))}};t.exports=s},function(t,e,i){"use strict";function n(t){for(;t._hostParent;)t=t._hostParent;var e=u.getNodeFromInstance(t).parentNode;return u.getClosestInstanceFromNode(e)}function o(t,e){this.topLevelType=t,this.nativeEvent=e,this.ancestors=[]}function s(t){var e=p(t.nativeEvent),i=u.getClosestInstanceFromNode(e),o=i;do{t.ancestors.push(o),o=o&&n(o)}while(o);for(var s=0;s<t.ancestors.length;s++)i=t.ancestors[s],m._handleTopLevel(t.topLevelType,i,t.nativeEvent,p(t.nativeEvent))}function r(t){t(f(window))}var a=i(4),l=i(51),c=i(6),h=i(13),u=i(5),d=i(9),p=i(41),f=i(94);a(o.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),h.addPoolingTo(o,h.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:c.canUseDOM?window:null,setHandleTopLevel:function(t){m._handleTopLevel=t},setEnabled:function(t){m._enabled=!!t},isEnabled:function(){return m._enabled}
25,trapBubbledEvent:function(t,e,i){return i?l.listen(i,e,m.dispatchEvent.bind(null,t)):null},trapCapturedEvent:function(t,e,i){return i?l.capture(i,e,m.dispatchEvent.bind(null,t)):null},monitorScrollValue:function(t){var e=r.bind(null,t);l.listen(window,"scroll",e)},dispatchEvent:function(t,e){if(m._enabled){var i=o.getPooled(t,e);try{d.batchedUpdates(s,i)}finally{o.release(i)}}}};t.exports=m},function(t,e,i){"use strict";var n=i(18),o=i(20),s=i(33),r=i(36),a=i(59),l=i(27),c=i(60),h=i(9),u={Component:r.injection,DOMProperty:n.injection,EmptyComponent:a.injection,EventPluginHub:o.injection,EventPluginUtils:s.injection,EventEmitter:l.injection,HostComponent:c.injection,Updates:h.injection};t.exports=u},function(t,e,i){"use strict";function n(t,e,i){return{type:"INSERT_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:i,afterNode:e}}function o(t,e,i){return{type:"MOVE_EXISTING",content:null,fromIndex:t._mountIndex,fromNode:d.getHostNode(t),toIndex:i,afterNode:e}}function s(t,e){return{type:"REMOVE_NODE",content:null,fromIndex:t._mountIndex,fromNode:e,toIndex:null,afterNode:null}}function r(t){return{type:"SET_MARKUP",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function a(t){return{type:"TEXT_CONTENT",content:t,fromIndex:null,fromNode:null,toIndex:null,afterNode:null}}function l(t,e){return e&&(t=t||[]).push(e),t}function c(t,e){u.processChildrenUpdates(t,e)}var h=i(3),u=i(36),d=(i(23),i(8),i(11),i(14)),p=i(110),f=(i(7),i(147)),m=(i(1),{Mixin:{_reconcilerInstantiateChildren:function(t,e,i){return p.instantiateChildren(t,e,i)},_reconcilerUpdateChildren:function(t,e,i,n,o,s){var r,a=0;return r=f(e,a),p.updateChildren(t,r,i,n,o,this,this._hostContainerInfo,s,a),r},mountChildren:function(t,e,i){var n=this._reconcilerInstantiateChildren(t,e,i);this._renderedChildren=n;var o=[],s=0;for(var r in n)if(n.hasOwnProperty(r)){var a=n[r],l=0,c=d.mountComponent(a,e,this,this._hostContainerInfo,i,l);a._mountIndex=s++,o.push(c)}return o},updateTextContent:function(t){var e=this._renderedChildren;for(var i in p.unmountChildren(e,!1),e)e.hasOwnProperty(i)&&h("118");c(this,[a(t)])},updateMarkup:function(t){var e=this._renderedChildren;for(var i in p.unmountChildren(e,!1),e)e.hasOwnProperty(i)&&h("118");c(this,[r(t)])},updateChildren:function(t,e,i){this._updateChildren(t,e,i)},_updateChildren:function(t,e,i){var n=this._renderedChildren,o={},s=[],r=this._reconcilerUpdateChildren(n,t,s,o,e,i);if(r||n){var a,h=null,u=0,p=0,f=0,m=null;for(a in r)if(r.hasOwnProperty(a)){var g=n&&n[a],v=r[a];g===v?(h=l(h,this.moveChild(g,m,u,p)),p=Math.max(g._mountIndex,p),g._mountIndex=u):(g&&(p=Math.max(g._mountIndex,p)),h=l(h,this._mountChildAtIndex(v,s[f],m,u,e,i)),f++),u++,m=d.getHostNode(v)}for(a in o)o.hasOwnProperty(a)&&(h=l(h,this._unmountChild(n[a],o[a])));h&&c(this,h),this._renderedChildren=r}},unmountChildren:function(t){var e=this._renderedChildren;p.unmountChildren(e,t),this._renderedChildren=null},moveChild:function(t,e,i,n){if(t._mountIndex<n)return o(t,e,i)},createChild:function(t,e,i){return n(i,e,t._mountIndex)},removeChild:function(t,e){return s(t,e)},_mountChildAtIndex:function(t,e,i,n){return t._mountIndex=n,this.createChild(t,i,e)},_unmountChild:function(t,e){var i=this.removeChild(t,e);return t._mountIndex=null,i}}});t.exports=m},function(t,e,i){"use strict";function n(t){return!(!t||"function"!=typeof t.attachRef||"function"!=typeof t.detachRef)}var o=i(3),s=(i(1),{addComponentAsRefTo:function(t,e,i){n(i)||o("119"),i.attachRef(e,t)},removeComponentAsRefFrom:function(t,e,i){n(i)||o("120");var s=i.getPublicInstance();s&&s.refs[e]===t.getPublicInstance()&&i.detachRef(e)}});t.exports=s},function(t){"use strict";var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=e},function(t,e,i){"use strict";function n(t){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=s.getPooled(null),this.useCreateElement=t}var o=i(4),s=i(55),r=i(13),a=i(27),l=i(61),c=(i(8),i(25)),h=i(46),u={initialize:function(){var t=a.isEnabled();return a.setEnabled(!1),t},close:function(t){a.setEnabled(t)}},d=[{initialize:l.getSelectionInformation,close:l.restoreSelection},u,{initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}}],p={getTransactionWrappers:function(){return d},getReactMountReady:function(){return this.reactMountReady}
25,getUpdateQueue:function(){return h},checkpoint:function(){return this.reactMountReady.checkpoint()},rollback:function(t){this.reactMountReady.rollback(t)},destructor:function(){s.release(this.reactMountReady),this.reactMountReady=null}};o(n.prototype,c,p),r.addPoolingTo(n),t.exports=n},function(t,e,i){"use strict";function n(t,e,i){"function"==typeof t?t(e.getPublicInstance()):s.addComponentAsRefTo(e,t,i)}function o(t,e,i){"function"==typeof t?t(null):s.removeComponentAsRefFrom(e,t,i)}var s=i(127),r={attachRefs:function(t,e){if(null!==e&&"object"==typeof e){var i=e.ref;null!=i&&n(i,t,e._owner)}},shouldUpdateRefs:function(t,e){var i=null,n=null;null!==t&&"object"==typeof t&&(i=t.ref,n=t._owner);var o=null,s=null;return null!==e&&"object"==typeof e&&(o=e.ref,s=e._owner),i!==o||"string"==typeof o&&s!==n},detachRefs:function(t,e){if(null!==e&&"object"==typeof e){var i=e.ref;null!=i&&o(i,t,e._owner)}}};t.exports=r},function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(){}var s=i(46),r=(i(2),function(){function t(e){n(this,t),this.transaction=e}return t.prototype.isMounted=function(){return!1},t.prototype.enqueueCallback=function(t,e,i){this.transaction.isInTransaction()&&s.enqueueCallback(t,e,i)},t.prototype.enqueueForceUpdate=function(t){this.transaction.isInTransaction()?s.enqueueForceUpdate(t):o(t,"forceUpdate")},t.prototype.enqueueReplaceState=function(t,e){this.transaction.isInTransaction()?s.enqueueReplaceState(t,e):o(t,"replaceState")},t.prototype.enqueueSetState=function(t,e){this.transaction.isInTransaction()?s.enqueueSetState(t,e):o(t,"setState")},t}());t.exports=r},function(t){"use strict";var e={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},i={accentHeight:"accent-height",accumulate:0,additive:0,alignmentBaseline:"alignment-baseline",allowReorder:"allowReorder",alphabetic:0,amplitude:0,arabicForm:"arabic-form",ascent:0,attributeName:"attributeName",attributeType:"attributeType",autoReverse:"autoReverse",azimuth:0,baseFrequency:"baseFrequency",baseProfile:"baseProfile",baselineShift:"baseline-shift",bbox:0,begin:0,bias:0,by:0,calcMode:"calcMode",capHeight:"cap-height",clip:0,clipPath:"clip-path",clipRule:"clip-rule",clipPathUnits:"clipPathUnits",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",contentScriptType:"contentScriptType",contentStyleType:"contentStyleType",cursor:0,cx:0,cy:0,d:0,decelerate:0,descent:0,diffuseConstant:"diffuseConstant",direction:0,display:0,divisor:0,dominantBaseline:"dominant-baseline",dur:0,dx:0,dy:0,edgeMode:"edgeMode",elevation:0,enableBackground:"enable-background",end:0,exponent:0,externalResourcesRequired:"externalResourcesRequired",fill:0,fillOpacity:"fill-opacity",fillRule:"fill-rule",filter:0,filterRes:"filterRes",filterUnits:"filterUnits",floodColor:"flood-color",floodOpacity:"flood-opacity",focusable:0,fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",glyphRef:"glyphRef",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",hanging:0,horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",ideographic:0,imageRendering:"image-rendering",in:0,in2:0,intercept:0,k:0,k1:0,k2:0,k3:0,k4:0,kernelMatrix:"kernelMatrix",kernelUnitLength:"kernelUnitLength",kerning:0,keyPoints:"keyPoints",keySplines:"keySplines",keyTimes:"keyTimes",lengthAdjust:"lengthAdjust",letterSpacing:"letter-spacing",lightingColor:"lighting-color",limitingConeAngle:"limitingConeAngle",local:0,markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",markerHeight:"markerHeight",markerUnits:"markerUnits",markerWidth:"markerWidth",mask:0,maskContentUnits:"maskContentUnits",maskUnits:"maskUnits",mathematical:0,mode:0,numOctaves:"numOctaves",offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pathLength:"pathLength",patternContentUnits:"patternContentUnits",patternTransform:"patternTransform",patternUnits:"patternUnits",pointerEvents:"pointer-events",points:0,pointsAtX:"pointsAtX",pointsAtY:"pointsAtY",pointsAtZ:"pointsAtZ",preserveAlpha:"preserveAlpha",preserveAspectRatio:"preserveAspectRatio",primitiveUnits:"primitiveUnits",r:0,radius:0,refX:"refX",refY:"refY",renderingIntent:"rendering-intent",repeatCount:"repeatCount",repeatDur:"repeatDur",requiredExtensions:"requiredExtensions",requiredFeatures:"requiredFeatures",restart:0,result:0,rotate:0,rx:0,ry:0,scale:0,seed:0,shapeRendering:"shape-rendering",slope:0,spacing:0,specularConstant:"specularConstant",specularExponent:"specularExponent",speed:0,spreadMethod:"spreadMethod",startOffset:"startOffset",stdDeviation:"stdDeviation",stemh:0,stemv:0,stitchTiles:"stitchTiles",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",string:0,stroke:0,strokeDasharray:"stroke-dasharray",strokeDashoffset:"stroke-dashoffset",strokeLinecap:"stroke-linecap",strokeLinejoin:"stroke-linejoin",strokeMiterlimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",surfaceScale:"surfaceScale",systemLanguage:"systemLanguage",tableValues:"tableValues",targetX:"targetX",targetY:"targetY",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",textLength:"textLength",to:0,transform:0,u1:0,u2:0,underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicode:0,unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",values:0,vectorEffect:"vector-effect",version:0,vertAdvY:"vert-
25adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",viewBox:"viewBox",viewTarget:"viewTarget",visibility:0,widths:0,wordSpacing:"word-spacing",writingMode:"writing-mode",x:0,xHeight:"x-height",x1:0,x2:0,xChannelSelector:"xChannelSelector",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlns:0,xmlnsXlink:"xmlns:xlink",xmlLang:"xml:lang",xmlSpace:"xml:space",y:0,y1:0,y2:0,yChannelSelector:"yChannelSelector",z:0,zoomAndPan:"zoomAndPan"},n={Properties:{},DOMAttributeNamespaces:{xlinkActuate:e.xlink,xlinkArcrole:e.xlink,xlinkHref:e.xlink,xlinkRole:e.xlink,xlinkShow:e.xlink,xlinkTitle:e.xlink,xlinkType:e.xlink,xmlBase:e.xml,xmlLang:e.xml,xmlSpace:e.xml},DOMAttributeNames:{}};Object.keys(i).forEach(function(t){n.Properties[t]=0,i[t]&&(n.DOMAttributeNames[t]=i[t])}),t.exports=n},function(t,e,i){"use strict";function n(t){if("selectionStart"in t&&l.hasSelectionCapabilities(t))return{start:t.selectionStart,end:t.selectionEnd};if(window.getSelection){var e=window.getSelection();return{anchorNode:e.anchorNode,anchorOffset:e.anchorOffset,focusNode:e.focusNode,focusOffset:e.focusOffset}}if(document.selection){var i=document.selection.createRange();return{parentElement:i.parentElement(),text:i.text,top:i.boundingTop,left:i.boundingLeft}}}function o(t,e){if(y||null==m||m!==h())return null;var i=n(m);if(!v||!d(v,i)){v=i;var o=c.getPooled(f.select,g,t,e);return o.type="select",o.target=m,s.accumulateTwoPhaseDispatches(o),o}return null}var s=i(21),r=i(6),a=i(5),l=i(61),c=i(10),h=i(53),u=i(66),d=i(29),p=r.canUseDOM&&"documentMode"in document&&document.documentMode<=11,f={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:["topBlur","topContextMenu","topFocus","topKeyDown","topKeyUp","topMouseDown","topMouseUp","topSelectionChange"]}},m=null,g=null,v=null,y=!1,_=!1,b={eventTypes:f,extractEvents:function(t,e,i,n){if(!_)return null;var s=e?a.getNodeFromInstance(e):window;switch(t){case"topFocus":(u(s)||"true"===s.contentEditable)&&(m=s,g=e,v=null);break;case"topBlur":m=null,g=null,v=null;break;case"topMouseDown":y=!0;break;case"topContextMenu":case"topMouseUp":return y=!1,o(i,n);case"topSelectionChange":if(p)break;case"topKeyDown":case"topKeyUp":return o(i,n)}return null},didPutListener:function(t,e){"onSelect"===e&&(_=!0)}};t.exports=b},function(t,e,i){"use strict";function n(t){return"."+t._rootNodeID}function o(t){return"button"===t||"input"===t||"select"===t||"textarea"===t}var s=i(3),r=i(51),a=i(21),l=i(5),c=i(135),h=i(136),u=i(10),d=i(139),p=i(141),f=i(24),m=i(138),g=i(142),v=i(143),y=i(22),_=i(144),b=i(7),x=i(39),w=(i(1),{}),k={};["abort","animationEnd","animationIteration","animationStart","blur","canPlay","canPlayThrough","click","contextMenu","copy","cut","doubleClick","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","focus","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","progress","rateChange","reset","scroll","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchMove","touchStart","transitionEnd","volumeChange","waiting","wheel"].forEach(function(t){var e=t[0].toUpperCase()+t.slice(1),i="on"+e,n="top"+e,o={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n]};w[t]=o,k[n]=o});var C={},S={eventTypes:w,extractEvents:function(t,e,i,n){var o,r=k[t];if(!r)return null;switch(t){case"topAbort":case"topCanPlay":case"topCanPlayThrough":case"topDurationChange":case"topEmptied":case"topEncrypted":case"topEnded":case"topError":case"topInput":case"topInvalid":case"topLoad":case"topLoadedData":case"topLoadedMetadata":case"topLoadStart":case"topPause":case"topPlay":case"topPlaying":case"topProgress":case"topRateChange":case"topReset":case"topSeeked":case"topSeeking":case"topStalled":case"topSubmit":case"topSuspend":case"topTimeUpdate":case"topVolumeChange":case"topWaiting":o=u;break;case"topKeyPress":if(0===x(i))return null;case"topKeyDown":case"topKeyUp":o=p;break;case"topBlur":case"topFocus":o=d;break;case"topClick":if(2===i.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":o=f;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":
26case"topDrop":o=m;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":o=g;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":o=c;break;case"topTransitionEnd":o=v;break;case"topScroll":o=y;break;case"topWheel":o=_;break;case"topCopy":case"topCut":case"topPaste":o=h}o||s("86",t);var l=o.getPooled(r,e,i,n);return a.accumulateTwoPhaseDispatches(l),l},didPutListener:function(t,e){if("onClick"===e&&!o(t._tag)){var i=n(t),s=l.getNodeFromInstance(t);C[i]||(C[i]=r.listen(s,"click",b))}},willDeleteListener:function(t,e){if("onClick"===e&&!o(t._tag)){var i=n(t);C[i].remove(),delete C[i]}}};t.exports=S}
26,function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(10),s={animationName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(10),s={clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(10),s={data:null};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(24),s={dataTransfer:null};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(22),s={relatedTarget:null};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(10),s={data:null};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(22),s=i(39),r={key:i(148),location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:i(40),charCode:function(t){return"keypress"===t.type?s(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?s(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}};o.augmentClass(n,r),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(22),s={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:i(40)};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(10),s={propertyName:null,elapsedTime:null,pseudoElement:null};o.augmentClass(n,s),t.exports=n},function(t,e,i){"use strict";function n(t,e,i,n){return o.call(this,t,e,i,n)}var o=i(24),s={deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null};o.augmentClass(n,s),t.exports=n},function(t){"use strict";function e(t){for(var e=1,n=0,o=0,s=t.length,r=-4&s;o<r;){for(var a=Math.min(o+4096,r);o<a;o+=4)n+=(e+=t.charCodeAt(o))+(e+=t.charCodeAt(o+1))+(e+=t.charCodeAt(o+2))+(e+=t.charCodeAt(o+3));e%=i,n%=i}for(;o<s;o++)n+=e+=t.charCodeAt(o);return(e%=i)|(n%=i)<<16}var i=65521;t.exports=e},function(t,e,i){"use strict";function n(t,e){return null==e||"boolean"==typeof e||""===e?"":isNaN(e)||0===e||s.hasOwnProperty(t)&&s[t]?""+e:("string"==typeof e&&(e=e.trim()),e+"px")}var o=i(54),s=(i(2),o.isUnitlessNumber);t.exports=n},function(t,e,i){(function(e){"use strict";function n(t,e,i){if(t&&"object"==typeof t){var n=t;void 0===n[i]&&null!=e&&(n[i]=e)}}function o(t){if(null==t)return t;var e={};return s(t,n,e),e}var s=(i(34),i(68));i(2),void 0!==e&&e.env,t.exports=o}).call(e,i(48))},function(t,e,i){"use strict";function n(t){if(t.key){var e=s[t.key]||t.key;if("Unidentified"!==e)return e}if("keypress"===t.type){var i=o(t);return 13===i?"Enter":String.fromCharCode(i)}return"keydown"===t.type||"keyup"===t.type?r[t.keyCode]||"Unidentified":""}var o=i(39),s={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};t.exports=n},function(t){"use strict";function e(t){var e=t&&(i&&t[i]||t[n]);if("function"==typeof e)return e}var i="function"==typeof Symbol&&Symbol.iterator,n="@@iterator";
26t.exports=e},function(t){"use strict";function e(){return i++}var i=1;t.exports=e},function(t){"use strict";function e(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function i(t){for(;t;){if(t.nextSibling)return t.nextSibling;t=t.parentNode}}function n(t,n){for(var o=e(t),s=0,r=0;o;){if(3===o.nodeType){if(r=s+o.textContent.length,s<=n&&r>=n)return{node:o,offset:n-s};s=r}o=e(i(o))}}t.exports=n},function(t,e,i){"use strict";function n(t){return'"'+o(t)+'"'}var o=i(26);t.exports=n},function(t,e,i){"use strict";var n=i(16),o=(i(1),function(t){var e=this;if(e.instancePool.length){var i=e.instancePool.pop();return e.call(i,t),i}return new e(t)}),s=function(t,e){var i=this;if(i.instancePool.length){var n=i.instancePool.pop();return i.call(n,t,e),n}return new i(t,e)},r=function(t,e,i){var n=this;if(n.instancePool.length){var o=n.instancePool.pop();return n.call(o,t,e,i),o}return new n(t,e,i)},a=function(t,e,i,n){var o=this;if(o.instancePool.length){var s=o.instancePool.pop();return o.call(s,t,e,i,n),s}return new o(t,e,i,n)},l=function(t){var e=this;t instanceof e||n("25"),t.destructor(),e.instancePool.length<e.poolSize&&e.instancePool.push(t)},c=10,h=o,u=function(t,e){var i=t;return i.instancePool=[],i.getPooled=e||h,i.poolSize||(i.poolSize=c),i.release=l,i},d={addPoolingTo:u,oneArgumentPooler:o,twoArgumentPooler:s,threeArgumentPooler:r,fourArgumentPooler:a};t.exports=d},function(t,e,i){"use strict";function n(t){return(""+t).replace(b,"$&/")}function o(t,e){this.func=t,this.context=e,this.count=0}function s(t,e){var i=t.func,n=t.context;i.call(n,e,t.count++)}function r(t,e,i){if(null==t)return t;var n=o.getPooled(e,i);v(t,s,n),o.release(n)}function a(t,e,i,n){this.result=t,this.keyPrefix=e,this.func=i,this.context=n,this.count=0}function l(t,e,i){var o=t.result,s=t.keyPrefix,r=t.func,a=t.context,l=r.call(a,e,t.count++);Array.isArray(l)?c(l,o,i,g.thatReturnsArgument):null!=l&&(m.isValidElement(l)&&(l=m.cloneAndReplaceKey(l,s+(!l.key||e&&e.key===l.key?"":n(l.key)+"/")+i)),o.push(l))}function c(t,e,i,o,s){var r="";null!=i&&(r=n(i)+"/");var c=a.getPooled(e,r,o,s);v(t,l,c),a.release(c)}function h(t,e,i){if(null==t)return t;var n=[];return c(t,n,null,e,i),n}function u(){return null}function d(t){return v(t,u,null)}function p(t){var e=[];return c(t,e,null,g.thatReturnsArgument),e}var f=i(153),m=i(15),g=i(7),v=i(80),y=f.twoArgumentPooler,_=f.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},f.addPoolingTo(o,y),a.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},f.addPoolingTo(a,_);var x={forEach:r,map:h,mapIntoWithKeyPrefixInternal:c,count:d,toArray:p};t.exports=x},function(t,e,i){"use strict";function n(t){return t}function o(t,e){var i=b.hasOwnProperty(e)?b[e]:null;w.hasOwnProperty(e)&&"OVERRIDE_BASE"!==i&&d("73",e),t&&"DEFINE_MANY"!==i&&"DEFINE_MANY_MERGED"!==i&&d("74",e)}function s(t,e){if(e){"function"==typeof e&&d("75"),m.isValidElement(e)&&d("76");var i=t.prototype,n=i.__reactAutoBindPairs;for(var s in e.hasOwnProperty(y)&&x.mixins(t,e.mixins),e)if(e.hasOwnProperty(s)&&s!==y){var r=e[s],a=i.hasOwnProperty(s);if(o(a,s),x.hasOwnProperty(s))x[s](t,r);else{var h=b.hasOwnProperty(s);if("function"==typeof r&&!h&&!a&&!1!==e.autobind)n.push(s,r),i[s]=r;else if(a){var u=b[s];(!h||"DEFINE_MANY_MERGED"!==u&&"DEFINE_MANY"!==u)&&d("77",u,s),"DEFINE_MANY_MERGED"===u?i[s]=l(i[s],r):"DEFINE_MANY"===u&&(i[s]=c(i[s],r))}else i[s]=r}}}}function r(t,e){if(e)for(var i in e){var n=e[i];if(e.hasOwnProperty(i))i in x&&d("78",i),i in t&&d("79",i),t[i]=n}}function a(t,e){for(var i in t&&e&&"object"==typeof t&&"object"==typeof e||d("80"),e)e.hasOwnProperty(i)&&(void 0!==t[i]&&d("81",i),t[i]=e[i]);return t}function l(t,e){return function(){var i=t.apply(this,arguments),n=e.apply(this,arguments);if(null==i)return n;if(null==n)return i;var o={};return a(o,i),a(o,n),o}}function c(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function h(t,e){return e.bind(t)}function u(t){for(var e=t.__reactAutoBindPairs,i=0;i<e.length;i+=2){var n=e[i],o=e[i+1];t[n]=h(t,o)}}var d=i(16),p=i(4),f=i(44),m=i(15),g=(i(70),i(45)),v=i(19),y=(i(1),i(2),"mixins"),_=[],b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propT
26ypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},x={displayName:function(t,e){t.displayName=e},mixins:function(t,e){if(e)for(var i=0;i<e.length;i++)s(t,e[i])},childContextTypes:function(t,e){t.childContextTypes=p({},t.childContextTypes,e)},contextTypes:function(t,e){t.contextTypes=p({},t.contextTypes,e)},getDefaultProps:function(t,e){t.getDefaultProps?t.getDefaultProps=l(t.getDefaultProps,e):t.getDefaultProps=e},propTypes:function(t,e){t.propTypes=p({},t.propTypes,e)},statics:function(t,e){r(t,e)},autobind:function(){}},w={replaceState:function(t,e){this.updater.enqueueReplaceState(this,t),e&&this.updater.enqueueCallback(this,e,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},k=function(){};p(k.prototype,f.prototype,w);var C={createClass:function(t){var e=n(function(t,i,n){this.__reactAutoBindPairs.length&&u(this),this.props=t,this.context=i,this.refs=v,this.updater=n||g,this.state=null;var o=this.getInitialState?this.getInitialState():null;("object"!=typeof o||Array.isArray(o))&&d("82",e.displayName||"ReactCompositeComponent"),this.state=o});for(var i in e.prototype=new k,e.prototype.constructor=e,e.prototype.__reactAutoBindPairs=[],_.forEach(s.bind(null,e)),s(e,t),e.getDefaultProps&&(e.defaultProps=e.getDefaultProps()),e.prototype.render||d("83"),b)e.prototype[i]||(e.prototype[i]=null);return e},injection:{injectMixin:function(t){_.push(t)}}};t.exports=C},function(t,e,i){"use strict";var n=i(15).createFactory,o={a:n("a"),abbr:n("abbr"),address:n("address"),area:n("area"),article:n("article"),aside:n("aside"),audio:n("audio"),b:n("b"),base:n("base"),bdi:n("bdi"),bdo:n("bdo"),big:n("big"),blockquote:n("blockquote"),body:n("body"),br:n("br"),button:n("button"),canvas:n("canvas"),caption:n("caption"),cite:n("cite"),code:n("code"),col:n("col"),colgroup:n("colgroup"),data:n("data"),datalist:n("datalist"),dd:n("dd"),del:n("del"),details:n("details"),dfn:n("dfn"),dialog:n("dialog"),div:n("div"),dl:n("dl"),dt:n("dt"),em:n("em"),embed:n("embed"),fieldset:n("fieldset"),figcaption:n("figcaption"),figure:n("figure"),footer:n("footer"),form:n("form"),h1:n("h1"),h2:n("h2"),h3:n("h3"),h4:n("h4"),h5:n("h5"),h6:n("h6"),head:n("head"),header:n("header"),hgroup:n("hgroup"),hr:n("hr"),html:n("html"),i:n("i"),iframe:n("iframe"),img:n("img"),input:n("input"),ins:n("ins"),kbd:n("kbd"),keygen:n("keygen"),label:n("label"),legend:n("legend"),li:n("li"),link:n("link"),main:n("main"),map:n("map"),mark:n("mark"),menu:n("menu"),menuitem:n("menuitem"),meta:n("meta"),meter:n("meter"),nav:n("nav"),noscript:n("noscript"),object:n("object"),ol:n("ol"),optgroup:n("optgroup"),option:n("option"),output:n("output"),p:n("p"),param:n("param"),picture:n("picture"),pre:n("pre"),progress:n("progress"),q:n("q"),rp:n("rp"),rt:n("rt"),ruby:n("ruby"),s:n("s"),samp:n("samp"),script:n("script"),section:n("section"),select:n("select"),small:n("small"),source:n("source"),span:n("span"),strong:n("strong"),style:n("style"),sub:n("sub"),summary:n("summary"),sup:n("sup"),table:n("table"),tbody:n("tbody"),td:n("td"),textarea:n("textarea"),tfoot:n("tfoot"),th:n("th"),thead:n("thead"),time:n("time"),title:n("title"),tr:n("tr"),track:n("track"),u:n("u"),ul:n("ul"),var:n("var"),video:n("video"),wbr:n("wbr"),circle:n("circle"),clipPath:n("clipPath"),defs:n("defs"),ellipse:n("ellipse"),g:n("g"),image:n("image"),line:n("line"),linearGradient:n("linearGradient"),mask:n("mask"),path:n("path"),pattern:n("pattern"),polygon:n("polygon"),polyline:n("polyline"),radialGradient:n("radialGradient"),rect:n("rect"),stop:n("stop"),svg:n("svg"),text:n("text"),tspan:n("tspan")};t.exports=o},function(t,e,i){"use strict";function n(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function o(t){this.message=t,this.stack=""}function s(t){function e(e,i,n,s,r,a){if(s=s||P,a=a||n,null==i[n]){var l=w[r];return e?new o(null===i[n]?"The "+l+" `"+a+"` is marked as required in `"+s+"`, but its value is `null`.":"The "+l+" `"+a+"` is marked as required in `"+s+"`, but its value is `undefined`."):null}return t(i,n,s,r,a)}var i=e.bind(null,!1);return i.isRequired=e.bind(null,!0),i}function r(t){function e(e,i,n,s,r){var a=e[i];return y(a)!==t?new o("Invalid "+w[s]+" `"+r+"` of type `"+_(a)+"` supplied to `"+n+"`, expected `"+t+"`."):null}return s(e)}function a(){return s(C.thatReturns(null))}function l(t){function e(e,i,n,s,r){if("function"!=typeof t)return new o("Property `"+r+"` of component `"+n+"` has invali
26d PropType notation inside arrayOf.");var a=e[i];if(!Array.isArray(a))return new o("Invalid "+w[s]+" `"+r+"` of type `"+y(a)+"` supplied to `"+n+"`, expected an array.");for(var l=0;l<a.length;l++){var c=t(a,l,n,s,r+"["+l+"]",k);if(c instanceof Error)return c}return null}return s(e)}function c(){function t(t,e,i,n,s){var r=t[e];return x.isValidElement(r)?null:new o("Invalid "+w[n]+" `"+s+"` of type `"+y(r)+"` supplied to `"+i+"`, expected a single ReactElement.")}return s(t)}function h(t){function e(e,i,n,s,r){if(!(e[i]instanceof t)){var a=w[s],l=t.name||P;return new o("Invalid "+a+" `"+r+"` of type `"+b(e[i])+"` supplied to `"+n+"`, expected instance of `"+l+"`.")}return null}return s(e)}function u(t){function e(e,i,s,r,a){for(var l=e[i],c=0;c<t.length;c++)if(n(l,t[c]))return null;return new o("Invalid "+w[r]+" `"+a+"` of value `"+l+"` supplied to `"+s+"`, expected one of "+JSON.stringify(t)+".")}return Array.isArray(t)?s(e):C.thatReturnsNull}function d(t){function e(e,i,n,s,r){if("function"!=typeof t)return new o("Property `"+r+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=e[i],l=y(a);if("object"!==l)return new o("Invalid "+w[s]+" `"+r+"` of type `"+l+"` supplied to `"+n+"`, expected an object.");for(var c in a)if(a.hasOwnProperty(c)){var h=t(a,c,n,s,r+"."+c,k);if(h instanceof Error)return h}return null}return s(e)}function p(t){function e(e,i,n,s,r){for(var a=0;a<t.length;a++){if(null==(0,t[a])(e,i,n,s,r,k))return null}return new o("Invalid "+w[s]+" `"+r+"` supplied to `"+n+"`.")}return Array.isArray(t)?s(e):C.thatReturnsNull}function f(){function t(t,e,i,n,s){return g(t[e])?null:new o("Invalid "+w[n]+" `"+s+"` supplied to `"+i+"`, expected a ReactNode.")}return s(t)}function m(t){function e(e,i,n,s,r){var a=e[i],l=y(a);if("object"!==l)return new o("Invalid "+w[s]+" `"+r+"` of type `"+l+"` supplied to `"+n+"`, expected `object`.");for(var c in t){var h=t[c];if(h){var u=h(a,c,n,s,r+"."+c,k);if(u)return u}}return null}return s(e)}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||x.isValidElement(t))return!0;var e=S(t);if(!e)return!1;var i,n=e.call(t);if(e!==t.entries){for(;!(i=n.next()).done;)if(!g(i.value))return!1}else for(;!(i=n.next()).done;){var o=i.value;if(o&&!g(o[1]))return!1}return!0;default:return!1}}function v(t,e){return"symbol"===t||"Symbol"===e["@@toStringTag"]||"function"==typeof Symbol&&e instanceof Symbol}function y(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":v(e,t)?"symbol":e}function _(t){var e=y(t);if("object"===e){if(t instanceof Date)return"date";if(t instanceof RegExp)return"regexp"}return e}function b(t){return t.constructor&&t.constructor.name?t.constructor.name:P}var x=i(15),w=i(70),k=i(158),C=i(7),S=i(72),P=(i(2),"<<anonymous>>"),T={array:r("array"),bool:r("boolean"),func:r("function"),number:r("number"),object:r("object"),string:r("string"),symbol:r("symbol"),any:a(),arrayOf:l,element:c(),instanceOf:h,node:f(),objectOf:d,oneOf:u,oneOfType:p,shape:m};o.prototype=Error.prototype,t.exports=T},function(t){"use strict";var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=e},function(t,e,i){"use strict";function n(t,e,i){this.props=t,this.context=e,this.refs=l,this.updater=i||a}function o(){}var s=i(4),r=i(44),a=i(45),l=i(19);o.prototype=r.prototype,n.prototype=new o,n.prototype.constructor=n,s(n.prototype,r.prototype),n.prototype.isPureReactComponent=!0,t.exports=n},function(t){"use strict";t.exports="15.4.2"},function(t,e,i){"use strict";var n=i(5),o=i(83),s=i(85),r=i(14),a=i(9),l=i(86),c=i(163),h=i(87),u=i(164);i(2),o.inject();var d={findDOMNode:c,render:s.render,unmountComponentAtNode:s.unmountComponentAtNode,version:l,unstable_batchedUpdates:a.batchedUpdates,unstable_renderSubtreeIntoContainer:u};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({ComponentTree:{getClosestInstanceFromNode:n.getClosestInstanceFromNode,getNodeFromInstance:function(t){return t._renderedComponent&&(t=h(t)),t?n.getNodeFromInstance(t):null}},Mount:s,Reconciler:r}),t.exports=d},function(t){"use strict";var e={useCreateElement:!0,useFiber:!1};t.exports=e}
26,function(t,e,i){"use strict";function n(t){if(null==t)return null;if(1===t.nodeType)return t;var e=r.get(t);return e?(e=a(e))?s.getNodeFromInstance(e):null:void("function"==typeof t.render?o("44"):o("45",Object.keys(t)))}var o=i(3),s=(i(11),i(5)),r=i(23),a=i(87);i(1),i(2),t.exports=n},function(t,e,i){"use strict";var n=i(85);t.exports=n.renderSubtreeIntoContainer},,,,,,,,,,function(t,e,i){"use strict";t.exports=i(161)}]),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom"),require("react-dom/server")):"function"==typeof define&&define.amd?define(["react","react-dom","react-dom/server"],e):"object"==typeof exports?exports.ReactRailsUJS=e(require("react"),require("react-dom"),require("react-dom/server")):t.ReactRailsUJS=e(t.React,t.ReactDOM,t.ReactDOMServer)}(this,function(__WEBPACK_EXTERNAL_MODULE_3__,__WEBPACK_EXTERNAL_MODULE_4__,__WEBPACK_EXTERNAL_MODULE_5__){return function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=6)}([function(module,exports){var topLevel="undefined"==typeof window?this:window;module.exports=function(className){var constructor;return constructor=topLevel[className],constructor||(constructor=eval(className)),constructor&&constructor.default&&(constructor=constructor.default),constructor}},function(t,e,i){var n=i(7),o=i(8),s=i(9),r=i(11),a=i(10);t.exports=function(t){t.handleEvent&&(void 0!==Turbolinks.EVENTS&&a.teardown(t),s.teardown(t),r.teardown(t),o.teardown(t),n.teardown(t)),t.jQuery?(t.handleEvent=function(e,i){t.jQuery(document).on(e,i)},t.removeEvent=function(e,i){t.jQuery(document).off(e,i)}):"addEventListener"in window?(t.handleEvent=function(t,e){document.addEventListener(t,e)},t.removeEvent=function(t,e){document.removeEventListener(t,e)}):(t.handleEvent=function(t,e){window.attachEvent(t,e)},t.removeEvent=function(t,e){window.detachEvent(t,e)}),"undefined"!=typeof Turbolinks&&Turbolinks.supported?void 0!==Turbolinks.EVENTS?a.setup(t):void 0!==Turbolinks.controller?s.setup(t):r.setup(t):"undefined"!=typeof $&&"function"==typeof $.pjax?o.setup(t):n.setup(t)}},function(t,e,i){var n=i(0),o=i(12);t.exports=function(t){var e=o(t);return function(t){var i;try{i=e(t)}catch(e){try{i=n(t)}catch(t){console.error(e),console.error(t)}}return i}}},function(t){t.exports=__WEBPACK_EXTERNAL_MODULE_3__},function(t){t.exports=__WEBPACK_EXTERNAL_MODULE_4__},function(t){t.exports=__WEBPACK_EXTERNAL_MODULE_5__},function(t,e,i){var n=i(3),o=i(4),s=i(5),r=i(1),a=i(0),l=i(2),c={CLASS_NAME_ATTR:"data-react-class",PROPS_ATTR:"data-react-props",jQuery:"undefined"!=typeof window&&void 0!==window.jQuery&&window.jQuery,findDOMNodes:function(t){var e,i,n=c.CLASS_NAME_ATTR;switch(typeof t){case"undefined":e="["+n+"]",i=document;break;case"object":e="["+n+"]",i=t;break;case"string":e=t+"["+n+"], "+t+" ["+n+"]",i=document}return c.jQuery?c.jQuery(e,i):i.querySelectorAll(e)},getConstructor:a,useContext:function(t){this.getConstructor=l(t)},serverRender:function(t,e,i){var o=this.getConstructor(e),r=n.createElement(o,i);return s[t](r)},mountComponents:function(t){for(var e=c,i=e.findDOMNodes(t),s=0;s<i.length;++s){var r=i[s],a=r.getAttribute(e.CLASS_NAME_ATTR),l=e.getConstructor(a),h=r.getAttribute(e.PROPS_ATTR),u=h&&JSON.parse(h);if(!l){var d="Cannot find component: '"+a+"'";throw console&&console.log&&console.log("%c[react-rails] %c"+d+" for element","font-weight: bold","",r),new Error(d+". Make sure your component is available to render.")}o.render(n.createElement(l,u),r)}},unmountComponents:function(t){for(var e=c.findDOMNodes(t),i=0;i<e.length;++i){var n=e[i];o.unmountComponentAtNode(n)}},detectEvents:function(){r(this)},handleMount:function(t){var e=void 0;t&&t.target&&(e=t.target),c.mountComponents(e)},handleUnmount:function(t){var e=void 0;t&&t.target&&(e=t.target),c.unmountComponents(e)}};"undefined"!=typeof window&&c.detectEvents(),self.ReactRailsUJS=c,t.exp
26orts=c},function(t){t.exports={setup:function(t){t.jQuery?t.handleEvent("ready",t.handleMount):"addEventListener"in window?t.handleEvent("DOMContentLoaded",t.handleMount):t.handleEvent("onload",t.handleMount)},teardown:function(t){t.removeEvent("ready",t.handleMount),t.removeEvent("DOMContentLoaded",t.handleMount),t.removeEvent("onload",t.handleMount)}}},function(t){t.exports={setup:function(t){t.handleEvent("ready",t.handleMount),t.handleEvent("pjax:end",t.handleMount),t.handleEvent("pjax:beforeReplace",t.handleUnmount)},teardown:function(t){t.removeEvent("ready",t.handleMount),t.removeEvent("pjax:end",t.handleMount),t.removeEvent("pjax:beforeReplace",t.handleUnmount)}}},function(t){t.exports={setup:function(t){t.handleEvent("DOMContentLoaded",t.handleMount),t.handleEvent("turbolinks:render",t.handleMount),t.handleEvent("turbolinks:before-render",t.handleUnmount)},teardown:function(t){t.removeEvent("DOMContentLoaded",t.handleMount),t.removeEvent("turbolinks:render",t.handleMount),t.removeEvent("turbolinks:before-render",t.handleUnmount)}}},function(t){t.exports={setup:function(t){t.handleEvent(Turbolinks.EVENTS.CHANGE,t.handleMount),t.handleEvent(Turbolinks.EVENTS.BEFORE_UNLOAD,t.handleUnmount)},teardown:function(t){t.removeEvent(Turbolinks.EVENTS.CHANGE,t.handleMount),t.removeEvent(Turbolinks.EVENTS.BEFORE_UNLOAD,t.handleUnmount)}}},function(t){t.exports={setup:function(t){Turbolinks.pagesCached(0),t.handleEvent("page:change",t.handleMount),t.handleEvent("page:receive",t.handleUnmount)},teardown:function(t){t.removeEvent("page:change",t.handleMount),t.removeEvent("page:receive",t.handleUnmount)}}},function(t){t.exports=function(t){return function(e){var i=e.split("."),n=i.shift(),o=i,s=t("./"+n);return o.forEach(function(t){s=s[t]}),s.__esModule&&(s=s.default),s}}}])});var AlertFancyBox=React.createClass({displayName:"AlertFancyBox",componentDidMount:function(){var t=this.props.onHide;$("#fade").length||$("body").append('<div id="fade"></div>'),$("#risk-fancy").fadeIn().center(),$("#fade").click(function(){t()}).fadeIn()},componentWillUnmount:function(){$("#fade").fadeOut(),$("#risk-fancy").fadeOut()},render:function(){return React.createElement("div",{id:"risk-fancy",className:"lbox"},React.createElement("div",{id:"vinc-alert",className:"fancybox-wrap fancybox-desktop fancybox-type-ajax fancybox-opened",tabIndex:"-1"},React.createElement("div",{className:"fancybox-skin"},React.createElement("div",{className:"fancybox-title fancybox-title-inside-wrap"},this.props.translations.title),React.createElement("div",{id:"aviso-consumo"},React.createElement("p",{className:"presentacion"},this.props.translations.text)),React.createElement("div",{className:"fancybox-actions"},React.createElement("div",{className:"u-right"},React.createElement("button",{onClick:this.props.onHide,id:"guardar_opciones",className:"c-button c-button--primary u-space-left"},this.props.translations.accept))),React.createElement("a",{title:"Close",className:"fancybox-item fancybox-close",onClick:this.props.onHide,href:"javascript:null"}))))},propTypes:{translations:React.PropTypes.any.isRequired,onHide:React.PropTypes.func.isRequired}}),BottomOptions=React.createClass({displayName:"BottomOptions",createPostForm:function(t,e){var i=$("<form>",{action:t,target:"_blank",method:"POST"}).append($("<input>",{type:"submit",value:"Submit"}));for(var n in e)i.append($("<input>",{type:"hidden",name:n,value:e[n]}));return i},handleDownloadPdf:function(){this.createPostForm("/empresa/"+this.props.cif+"/vinculaciones/listado/pdf/",{authenticity_token:$('meta[name="csrf-token"]').attr("content"),s:JSON.stringify(this.props.shareholders,this._stringifyReplacer),p:JSON.stringify(this.props.participations,this._stringifyReplacer)}).appendTo("body").submit().remove()},handleDownloadExcel:function(){this.createPostForm("/empresa/"+this.props.cif+"/vinculaciones/listado/excel/",{authenticity_token:$('meta[name="csrf-token"]').attr("content"),empresa_id:this.props.id,s:JSON.stringify(this.props.shareholders,this._stringifyReplacer),p:JSON.stringify(this.props.participations,this._stringifyReplacer)}).appendTo("body").submit().remove()}
26,_stringifyReplacer:function(t,e){switch(t){case"children":case"pendingChildren":return;case"data":return null!=e.porcentaje?{porcentaje:e.porcentaje,vida:e.vida}:void 0;default:return e}},initOptionsJavascripts:function(){Informa&&Informa.saveFormats&&Informa.saveFormats()},downloadButtonPDF:function(){return React.createElement("a",{className:"c-button-dropdown__item",onClick:this.handleDownloadPdf},this.props.translations.pdf)},downloadButtonExcel:function(){return React.createElement("a",{className:"c-button-dropdown__item",onClick:this.handleDownloadExcel},this.props.translations.excel)},componentDidMount:function(){this.initOptionsJavascripts()},shouldComponentUpdate:function(){return!1},render:function(){return React.createElement("div",{className:"c-report-head__table"},React.createElement("div",{className:"o-container"},React.createElement("ul",{className:"c-actions-menu__list"},React.createElement("li",{className:"u-hide@max-sm"},React.createElement("div",{className:"c-button-dropdown"},React.createElement("button",{className:"c-button-dropdown__button c-actions-menu__action"},React.createElement("i",{className:"c-actions-menu__icon u-icon-pdf"}),this.props.translations.title),React.createElement("nav",{className:"c-button-dropdown__menu-wrap c-button-dropdown__menu-wrap--right"},React.createElement("ul",{className:"c-button-dropdown__menu"},React.createElement("li",null,this.downloadButtonPDF()),React.createElement("li",null,this.downloadButtonExcel()))))))))},propTypes:{cif:React.PropTypes.string.isRequired,id:React.PropTypes.number.isRequired,translations:React.PropTypes.any.isRequired,shareholders:React.PropTypes.array.isRequired,participations:React.PropTypes.array.isRequired}}),FiltersSummary=React.createClass({displayName:"FiltersSummary",render:function(){var t=this.props.filters,e=this.props.onRemoveFilter,i="",n="",o=this.props.activeFilters.type.length;switch(!0){case o>1:i=i+", "+t.type.options[this.props.activeFilters.type[1]].name;case o>0:i=t.type.summary+" "+t.type.options[this.props.activeFilters.type[0]].name+i}switch(o=this.props.activeFilters.percentage.length,!0){case o>2:n=n+", "+t.percentage.options[this.props.activeFilters.percentage[2]].name;case o>1:n=", "+t.percentage.options[this.props.activeFilters.percentage[1]].name+n;case o>0:n=t.percentage.summary+" "+t.percentage.options[this.props.activeFilters.percentage[0]].name+n}return React.createElement("div",{className:"c-chips-wrapper"},React.createElement("p",{className:"last"},""!=i?React.createElement("a",{className:"c-chips-wrapper__item",href:"javascript:void(0);",onClick:e.bind(this,"type",this.props.activeFilters.type[0])},i):null,""!=n?React.createElement("a",{className:"c-chips-wrapper__item",href:"javascript:void(0);",onClick:e.bind(this,"percentage",this.props.activeFilters.percentage[0])},n):null))},propTypes:{activeFilters:React.PropTypes.any.isRequired,filters:React.PropTypes.any.isRequired,translations:React.PropTypes.any.isRequired,onRemoveFilter:React.PropTypes.func.isRequired,onCleanFilters:React.PropTypes.func.isRequired}}),GroupedNode=React.createClass({displayName:"GroupedNode",render:function(){var t=this.props.item.count>1?this.props.translation.other:this.props.translation.one;return React.createElement("tr",{className:this.props.item.level>0?"row c-nested-table__child child_"+this.props.item.level:"row"},React.createElement("th",{className:this.props.item.level>0?"c-nested-table__child child_"+this.props.item.level:"",colSpan:5},React.createElement("a",{className:"action c-nested-table__more js-nested-table-more",title:"Ver m\xe1s",onClick:this.props.onClick.bind(this,this.props.item.parentCode,this.props.count-1)}),React.createElement("span",{className:"c-nested-table__header",dangerouslySetInnerHTML:{__html:this.props.item.count+" "+t+" ("+this.props.item.parentName+")"}})))},propTypes:{item:React.PropTypes.any.isRequired,translation:React.PropTypes.any.isRequired,count:React.PropTypes.number.isRequired,onClick:React.PropTypes.func.isRequired}}),LimitLevelsFancyBox=React.createClass({displayName:"LimitLevelsFancyBox",getInitialState:function(){return{showInput:this.props.riskLevelChecked,checked:!1}
26},handleInputClick:function(){this.setState({checked:!this.state.checked})},componentDidMount:function(){var t=this.props.onHide;$("#fade").length||$("body").append('<div id="fade"></div>'),$("#limit").fadeIn().center(),$("#fade").click(function(){t()}).fadeIn()},componentWillUnmount:function(){$("#fade").fadeOut(),$("#limit").fadeOut()},render:function(){return React.createElement("div",{id:"limit",className:"fancybox-wrap fancybox-desktop fancybox-type-ajax fancybox-opened",tabIndex:"-1"},React.createElement("div",{className:"fancybox-skin"},React.createElement("div",{className:"fancybox-title fancybox-title-inside-wrap"},this.props.titleText),React.createElement("div",{id:"aviso-consumo"},this.props.limitExceeded?React.createElement("p",{className:"presentacion"},this.props.translations.limit_levels.text1):null,React.createElement("p",{dangerouslySetInnerHTML:{__html:this.props.translations.text2}})),React.createElement("a",{title:"Close",className:"fancybox-item fancybox-close",onClick:this.props.onHide,href:"javascript:null"})))},propTypes:{riskLevelChecked:React.PropTypes.bool.isRequired,limitExceeded:React.PropTypes.bool.isRequired,titleText:React.PropTypes.string.isRequired,translations:React.PropTypes.any.isRequired,onHide:React.PropTypes.func.isRequired,onAccept:React.PropTypes.func.isRequired}}),LimitNodesFancyBox=React.createClass({displayName:"LimitNodesFancyBox",getInitialState:function(){return{showInput:this.props.riskLevelChecked,checked:!1}},handleInputClick:function(){this.setState({checked:!this.state.checked})},componentDidMount:function(){var t=this.props.onHide;$("#fade").length||$("body").append('<div id="fade"></div>'),$("#limit").fadeIn().center(),$("#fade").click(function(){t()}).fadeIn()},componentWillUnmount:function(){$("#fade").fadeOut(),$("#limit").fadeOut()},render:function(){
27return React.createElement("div",{id:"limit",className:"fancybox-wrap fancybox-desktop fancybox-type-ajax fancybox-opened",tabIndex:"-1"},React.createElement("div",{className:"fancybox-skin"},React.createElement("div",{className:"fancybox-title fancybox-title-inside-wrap"},this.props.translations.title),React.createElement("div",{id:"aviso-consumo"},React.createElement("p",{className:"presentacion"},this.props.translations.text1),React.createElement("p",{dangerouslySetInnerHTML:{__html:this.props.translations.text2}})),React.createElement("a",{title:"Close",className:"fancybox-item fancybox-close",onClick:this.props.onHide,href:"javascript:null"})))},propTypes:{riskLevelChecked:React.PropTypes.bool.isRequired,translations:React.PropTypes.any.isRequired,onHide:React.PropTypes.func.isRequired,onAccept:React.PropTypes.func.isRequired}}),RevokeRiskFancyBox=React.createClass({displayName:"RevokeRiskFancyBox",componentDidMount:function(){var t=this.props.onHide;$("#fade").length||$("body").append('<div id="fade"></div>'),$("#risk-fancy").fadeIn().center(),$("#fade").click(function(){t()}).fadeIn()},componentWillUnmount:function(){$("#fade").fadeOut(),$("#risk-fancy").fadeOut()},render:function(){var t=this;return React.createElement("div",{id:"risk-fancy",className:"lbox"},React.createElement("div",{className:"fancybox-wrap fancybox-desktop fancybox-type-ajax fancybox-opened",tabIndex:"-1"},React.createElement("div",{className:"fancybox-skin"},React.createElement("div",{className:"fancybox-title fancybox-title-inside-wrap"},this.props.translations.title),React.createElement("div",{id:"aviso-consumo"},React.createElement("p",{className:"presentacion"},this.props.translations.text2)),React.createElement("div",{className:"fancybox-actions"},React.createElement("div",{className:"u-right"},React.createElement("a",{className:"c-button c-button--outline",onClick:this.props.onHide,href:"javascript:null"},this.props.translations.cancel),React.createElement("button",{onClick:function(){return t.props.onAccept(0)},id:"guardar_opciones",className:"c-button c-button--primary u-space-left"},this.props.translations.disable))),React.createElement("a",{title:"Close",className:"fancybox-item fancybox-close",onClick:this.props.onHide,href:"javascript:null"}))))},propTypes:{translations:React.PropTypes.any.isRequired,onHide:React.PropTypes.func.isRequired,onAccept:React.PropTypes.func.isRequired}}),RiskFancyBox=React.createClass({displayName:"RiskFancyBox",getInitialState:function(){return{option:0!=this.props.option?this.props.option:1}},handleOptionClick:function(t,e){this.setState({option:e})},componentDidMount:function(){var t=this.props.onHide;$("#fade").length||$("body").append('<div id="fade"></div>'),$("#risk-fancy").fadeIn().center(),$("#fade").click(function(){t()}).fadeIn()},componentWillUnmount:function(){$("#fade").fadeOut(),$("#risk-fancy").fadeOut()},render:function(){var t=this,e=[],i=this.handleOptionClick,n=this.state.option;return this.props.riskOptions.forEach(function(t){e.push(React.createElement(VincFilterOption,{key:t.value,onChange:i,option:"risk",value:t.value,status:t.value==n,name:t.name,inputType:"radio",type:"tabla"}))}),React.createElement("div",{id:"risk-fancy",className:"lbox"},React.createElement("div",{className:"fancybox-wrap fancybox-desktop fancybox-type-html fancybox-opened",tabIndex:"-1"},React.createElement("div",{className:"fancybox-skin"},React.createElement("div",{className:"fancybox-title fancybox-title-inside-wrap"},this.props.translations.title),React.createElement("div",{className:"fancybox-inner risk-fancy-inner"},React.createElement("div",{id:"aviso-consumo"},React.createElement("p",{className:"presentacion"},this.props.translations.text),React.createElement("div",null,React.createElement("legend",{className:"u-space-bottom-4"},this.props.translations.opciones),e)),React.createElement("div",{className:"fancybox-actions"},React.createElement("div",{className:"u-right"},React.createElement("a",{onClick:this.props.onHide,href:"javascript:null",className:"c-button c-button--outline"},this.props.translations.cancel),React.createElement("button",{onClick:function(){return t.props.onAccept(t.state.option)},id:"guardar_opciones",className:"c-button c-button--primary u-space-left"},this.props.translations.accept))),React.createElement("a",{title:"Close",className:"fancybox-item fancybox-close",onClick:this.props.onHide,href:"javascript:null"})))))},propTypes:{riskOptions:React.PropTypes.any.isRequired,translations:React.PropTypes.any.isRequired,option:React.PropTypes.number.isRequired,onHide:React.PropTypes.func.isRequired,onAccept:React.PropTypes.func.isRequired}}),Summary=React.createClass({displayName:"Summary",_computeFinalSummary:function(t){for(var e=t.shareholders.direct+t.shareholders.indirect+t.shareholders.oldDirect+t.shareholders.oldIndirect+t.participations.direct+t.participations.indirect+t.participations.oldDirect+t.participations.oldIndirect,i=new Array(11).fill(0),n=new Array(100).fill(0),o=0;o<11;o++)i[o]=t.shareholders.sectors[o]+t.participations.sectors[o];for(o=0;o<100;o++)n[o]=t.shareholders.councils[o]+t.participations.councils[o];
27var s=Math.max.apply(Math,i),r=i.indexOf(s),a=-1!=i.slice(r+1).indexOf(s),l=Math.max.apply(Math,n),c=n.indexOf(l),h=-1!=n.slice(c+1).indexOf(l);if(0!=this.props.riskLevel){var u=[t.shareholders.risk[0]+t.participations.risk[0],t.shareholders.risk[1]+t.participations.risk[1],t.shareholders.risk[2]+t.participations.risk[2]];u=u[0]+u[1]+u[2]==0?-1:u.indexOf(Math.max(u[0],u[1],u[2]))}else u=-1;return{directShareholders:t.shareholders.direct,indirectShareholders:t.shareholders.indirect,oldDirectShareholders:t.shareholders.oldDirect,oldIndirectShareholders:t.shareholders.oldIndirect,directParticipations:t.participations.direct,indirectParticipations:t.participations.indirect,oldDirectParticipations:t.participations.oldDirect,oldIndirectParticipations:t.participations.oldIndirect,sector:r,sectorCount:i[r],multipleSector:a,council:c,councilCount:n[c],multipleCouncil:h,issues:t.shareholders.issues+t.participations.issues,issuesCount:e,risk:u}},_getRiskLiteral:function(t){return 0==t?this.props.translations.literals.risk.high:1==t?this.props.translations.literals.risk.medium:2==t?this.props.translations.literals.risk.low:"-"},_getRiskClass:function(t){return 0==t?"altoRiesgo":1==t?"medioRiesgo":2==t?"bajoRiesgo":"indetRiesgo"},_getSectorLiteral:function(t,e){var i=this.props.translations.literals.sectors["sector_"+("0"+(t+1)).slice(-2)];return e&&(i+=" "+this.props.translations.literals.and_others),i},_getSectorClass:function(t){return"sector"+("0"+t).slice(-2)},_getCouncilLiteral:function(t){return this.props.translations.literals.councils[("0"+t).slice(-2)]},render:function(){var t=this._computeFinalSummary(this.props.summary);return React.createElement("div",{id:"summary_table_data",className:"c-file-module"},React.createElement("div",{className:"c-file-module__inner"},React.createElement("ul",{className:"c-file-module__list o-grid"},React.createElement("li",{className:"o-grid__col u-12 c-file-module__list-item c-file-module__list-item--icon "},React.createElement("i",{id:"icono_sector",className:this._getSectorClass(t.sector)+" vinc-icon c-file-module__list-icon c-file-module__list-icon--large"}),React.createElement("div",null,React.createElement("strong",{className:"c-file-module__subtitle"},this.props.translations.sector),React.createElement("div",{className:"c-file-module__data"},React.createElement("span",{id:"literal_sector"},this._getSectorLiteral(t.sector,t.multipleSector)),React.createElement("span",{id:"num_sector"}," ("+t.sectorCount+")")))),React.createElement("li",{className:"o-grid__col u-12 c-file-module__list-item c-file-module__list-item--icon "},React.createElement("i",{className:"council vinc-icon c-file-module__list-icon c-file-module__list-icon--large"}),React.createElement("div",null,React.createElement("strong",{className:"c-file-module__subtitle"},this.props.translations.council),React.createElement("div",{className:"c-file-module__data"},React.createElement("span",{id:"literal_provincia"},this._getCouncilLiteral(t.council)),React.createElement("span",{id:"num_provincia"}," ("+t.councilCount+")")))),React.createElement("li",{className:"o-grid__col u-12 c-file-module__list-item c-file-module__list-item--icon "},React.createElement("i",{className:"issues vinc-icon c-file-module__list-icon c-file-module__list-icon--large"}),React.createElement("div",null,React.createElement("strong",{className:"c-file-module__subtitle"},this.props.translations.issues),React.createElement("div",{className:"c-file-module__data",id:"incidendias"},React.createElement("span",{id:"incidendias"}," ",t.issues),React.createElement("span",null," / "),React.createElement("span",{id:"num_incidencias"},t.issuesCount),React.createElement("span",{id:"incidencias_porcentaje"}," ","("+Math.round(t.issues/t.issuesCount*100)+"%)")))),React.createElement("li",{className:"o-grid__col u-12 c-file-module__list-item c-file-module__list-item--icon "},React.createElement("i",{className:this._getRiskClass(t.risk)+" vinc-icon c-file-module__list-icon c-file-module__list-icon--large"},"\u25cf"),React.createElement("div",null,React.createElement("strong",{className:"c-file-module__subtitle"},this.props.translations.risk),React.createElement("span",{className:"c-file-module__data",id:"literal_riesgo"},this._getRiskLiteral(t.risk)))),React.createElement("li",{className:"o-grid__col u-12 c-file-module__list-item c-file-module__list-item--icon "},React.createElement("i",{className:"shareholders vinc-icon c-file-module__list-icon c-file-module__list-icon--large"}),React.createElement("div",null,React.createElement("strong",{className:"c-file-module__subtitle"},this.props.translations.shareholders),React.createElement("div",{className:"c-file-module__data"},React.createElement("span",{id:"accionistas_directos"},t.directShareholders),React.createElement("span",null," / "),React.createElement("span",{id:"accionistas_indirectos"},t.indirectShareholders)))),React.createElement("li",{className:"o-grid__col u-12 c-file-module__list-item c-file-module__list-item--icon "},React.createElement("i",{className:"participations vinc-icon c-file-module__list-icon c-file-module__list-icon--large"}),React.createElement("div",null,React.createElement("strong",{className:"c-file-module__subtitle"},this.props.translations.participations),React.createElement("div",{className:"c-file-module__data"},React.createElement("span",{id:"participadas_directas"},t.directParticipations),React.createElement("span",null," / "),React.createElement("span",{id:"participadas_indirectas"},t.indirectParticipations)))))))},propTypes:{translations:React.PropTypes.any.isRequired,summary:React.PropTypes.any.isRequired,riskLevel:React.PropTypes.number.isRequired}}),TreeBranch=React.createClass({displayName:"TreeBranch",render:function(){var t=this.props.path,e=this.props.level,i=this.props.empresaId,n=this.props.items.links,o=this.props.columns,s=this.props.request,r=this.props.riskLevel,a=this.props.items.nodes.map(function(a,l){var c=n.find(function(t){return t.fromId===a.data.empresa_id&&t.toId===i||t.fromId===i&&t.toId===a.data.empresa_id});return React.createElement(TreeRoot,{item:a.data,key:l,level:e+1,count:l+1,path:t,link:c,
27columns:o,request:s,loading:this.props.loading,riskLevel:r,translations:this.props.translations,urls:this.props.urls})});return React.createElement("tbody",null,a)},propTypes:{empresaId:React.PropTypes.number.isRequired,items:React.PropTypes.any.isRequired,level:React.PropTypes.number.isRequired,columns:React.PropTypes.any.isRequired,request:React.PropTypes.string.isRequired,riskLevel:React.PropTypes.number.isRequired,loading:React.PropTypes.bool.isRequired,translations:React.PropTypes.any.isRequired,urls:React.PropTypes.any.isRequired,path:React.PropTypes.string}}),TreeRoot=React.createClass({displayName:"TreeRoot",getInitialState:function(){return{expanded:this.props.item.showChildren,showActions:!1,showPersonActions:!1,showForeignActions:!1,loading:this.props.loading}},handleClick:function(){this.state.loading||(this.setState({loading:!this.state.expanded}),this.state.expanded?this.props.onCollapse(this.props.code,this.props.count):this.props.onExpand(this.props.item.empresa_id,this.props.code,this.props.count))},onMouseEnter:function(){this.props.item.autoLink||(this.props.item.person?this.setState({showPersonActions:!0}):"102050"==this.props.item.pais?this.setState({showActions:!0}):this.setState({showForeignActions:!0}))},onMouseLeave:function(){this.props.item.autoLink||this.setState({showActions:!1,showPersonActions:!1,showForeignActions:!1})},goToAdmins:function(){window.open(this.props.urls.search_admin+this.props.item.razon_social,"_blank")},goToGraph:function(){window.open(this.props.urls.open_node.replace("empresa-id",this.props.item.empresa_id),"_blank")},goToTable:function(){var t=this,e=this.props.urls,i=this.props.item.empresa_id;$.get(e.show_alert.replace("empresa-id",this.props.item.empresa_id)).done(function(t){if(t)if(t.code){var n;n="denegado"==t.code?e.denegado_alert:e.consumo_alert.replace("empresa-id",i)+"&destino=lista",$.fancybox({type:"ajax",href:n,padding:0,helpers:{title:{type:"inside",position:"top"}}})}else window.open(e.list.replace("empresa-id",i),"_blank");else location.reload()}).fail(function(){t.props.onAjaxError()})},goToReport:function(){window.open(this.props.urls.report.replace("empresa-id",this.props.item.empresa_id),"_blank")},goToDBInt:function(){window.open("/informes/internacionales","_blank")},_getRatingColour:function(){var t=this.props.item.rating;if(this.props.item.autoLink)return"";switch(t){case"H":return"high_risk";case"M":return"medium_risk";case"L":return"low_risk";default:return""}},_ellipsis:function(t){var e=85-2*(this.props.level>0?this.props.level:0);return t.length>e?t.substr(0,e)+"...":t},componentWillReceiveProps:function(t){this.setState({expanded:t.item.showChildren,loading:t.loading})},componentDidUpdate:function(){Informa.initializeTips()},render:function(){var t=null!=this.props.item.anchor,e="accionista"==this.props.item.classes?this.props.item.num_accionistas:this.props.item.num_participadas,i=!t&&e>0&&this.props.item.filtersExpandable&&!this.props.item.autoLink&&this.props.item.link.data.vida,n=(null!=this.props.item.items&&this.props.item.items.length,this.state.expanded?"/assets/ico-minus.png":"/assets/ico-add.png"),o=this.state.expanded?"is-open":"";n=this.state.loading?"/assets/spinner_vinculaciones4.gif":n;var s="",r=this.props.link.data.porcentaje?isNaN(this.props.link.data.porcentaje)?this.props.link.data.porcentaje:parseFloat(Math.round(100*this.props.link.data.porcentaje)/100).toFixed(2).toString()+"%":null,a=this._ellipsis(this.props.item.razon_social);s=this.props.path?this.props.path+"."+this.props.count:this.props.count.toString();var l=this.props.link.data.fuente;this.props.link.data.fecha_fuente&&(l=l+" ("+this.props.link.data.fecha_fuente+")");var c=this.props.level>0?"c-nested-table__child child_"+this.props.level:"";this.props.item.link.data.vida||(c+=" ancient");var h=void 0;return h=i?this.state.loading?React.createElement("img",{src:n,className:"spinner-vinc",alt:""}):React.createElement("a",{className:"action c-nested-table__more",title:"Ver m\xe1s",onClick:this.handleClick}):React.createElement("a",{className:"action c-nested-table__more c-nested-table__more--no-child",title:"Ver m\xe1s"}),React.createElement("tr",{id:this.props.item.code,className:this.props.level>0?"c-nested-table__child child_"+this.props.level+" "+o:" "+o,onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},React.createElement("th",{className:c+" row"},h,React.createElement("span",{className:"c-nested-table__header",title:a.length-3<this.props.item.razon_social.length?this.props.item.razon_social:""},t?React.createElement("a",{href:"#"+this.props.item.anchor},a):a),this.props.item.autoLink?React.createElement("span",{className:"auto"}):null),this.state.showPersonActions?React.createElement("td",{className:"actions"},React.createElement("span",{className:"admin vinc-icon",title:this.props.translations.admin,onClick:this.goToAdmins})):this.state.showActions?React.createElement("td",{className:"actions"},this.props.item.forbiddenFamily?null:React.createElement("span",{className:"graph participations vinc-icon",title:this.props.translations.graph,onClick:this.goToTable}),React.createElement("span",{className:"report vinc-icon",title:this.props.translations.report,onClick:this.goToReport})):this.state.showForeignActions?React.createElement("td",{className:"actions"},React.createElement("span",{className:"report vinc-icon",title:this.props.translations.report,onClick:this.goToDBInt})):React.createElement("td",null),this.props.columns.risk?React.createElement("td",{className:this._getRating
27Colour()}):null,React.createElement("td",{className:"c-nested-table__fixed c-nested__center"},this.props.item.cif),this.props.columns.percentage?React.createElement("td",{className:"percentage c-nested-table__fixed c-nested-table__fixed--small"},r):null,this.props.columns.level?React.createElement("td",{className:"c-nested-table__fixed c-nested__center"},"Premier Financiero"):null,this.props.columns.cnae?React.createElement("td",{className:"c-nested-table__fixed c-nested__center c-nested-table__fixed--small"},this.props.item.cnae25):null,this.props.columns.council?React.createElement("td",{className:"c-nested-table__fixed c-nested__center c-nested-table__fixed--small"},"Valladolid"):null,this.props.columns.source?React.createElement("td",{className:"c-nested-table__fixed c-nested__center c-nested-table__fixed--small"},l):null,this.state.showChildren?React.createElement(TreeBranch,{items:this.state.children,level:this.props.level+1,path:s,empresaId:this.props.item.empresa_id,columns:this.props.columns,request:this.props.request,loading:this.state.loading,riskLevel:this.props.riskLevel,urls:this.props.urls}):null)},propTypes:{item:React.PropTypes.any.isRequired,link:React.PropTypes.any.isRequired,code:React.PropTypes.string.isRequired,level:React.PropTypes.number.isRequired,count:React.PropTypes.number.isRequired,columns:React.PropTypes.any.isRequired,riskLevel:React.PropTypes.number.isRequired,loading:React.PropTypes.bool.isRequired,translations:React.PropTypes.any.isRequired,urls:React.PropTypes.any.isRequired,path:React.PropTypes.string,onExpand:React.PropTypes.func.isRequired,onCollapse:React.PropTypes.func.isRequired,onAjaxError:React.PropTypes.func.isRequired}}),VincFilterBox=React.createClass({displayName:"VincFilterBox",getInitialState:function(){var t=this._initState();return t.showSummary=!0,t},handleOptionClick:function(filterName,value,checked){var selectedItems=eval("this.state."+filterName);if("status"===filterName&&selectedItems.length<=1&&!checked)this.props.onShowAlert();else{var newState={};if(checked?selectedItems.push(value):selectedItems=this._removeFilter(selectedItems,value),newState[filterName]=selectedItems,this.setState(newState),this.state.type!=[]||this.state.status!=[]||this.state.percentage!=[]){var filterSummary={type:JSON.parse(JSON.stringify(this.state.type)),status:JSON.parse(JSON.stringify(this.state.status)),percentage:JSON.parse(JSON.stringify(this.state.percentage))};this.setState({filterSummary:filterSummary}),this.props.onFiltersApplied(JSON.parse(JSON.stringify(filterSummary)))}}},componentDidMount:function(){Informa.initializeDesplegables()},handleRemoveFilter:function(filterName,value){if("status"===filterName)this.props.onShowAlert();else{var initState=this._initState(),newState={status:this.state.status};"type"===filterName?newState.percentage=this.state.percentage:newState.type=this.state.type,eval("newState."+filterName+"=initState."+filterName),newState.filterSummary={type:JSON.parse(JSON.stringify(newState.type)),status:JSON.parse(JSON.stringify(newState.status)),percentage:JSON.parse(JSON.stringify(newState.percentage))},this.setState(newState),this.props.onFiltersApplied({type:newState.type,status:newState.status,percentage:newState.percentage})}},handleCleanAllFilters:function(){var t=this._initState();this.setState(t),this.props.onFiltersApplied({type:t.type,status:t.status,percentage:t.percentage})},goToGraph:function(){window.location.href=this.props.translations.graph.path},_initState:function(){var t=JSON.parse(JSON.stringify(this.props.defaultFilters));return t.filterSummary=JSON.parse(JSON.stringify(this.props.defaultFilters)),t},_getClassNameFromDom:function(t){return $(t).className||"d"},_removeFilter:function(t,e){var i=t.findIndex(function(t){return t===e});return t.splice(i,1),t},_print_options:function(option){var options=[],status=!1,selectedItems=eval("this.state."+option),onClick=this.handleOptionClick;return eval("this.props.filters."+option+".options").forEach(function(t){status=selectedItems.findIndex(function(e){return e===t.value})>-1,options.push(React.createElement(VincFilterOption,{key:t.value,onChange:onClick,option:option,value:t.value,status:status,name:t.name,className:"col",inputType:"checkbox"}))}),React.createElement("div",{className:"c-toggle-buttons"},options)},componentWillReceiveProps:function(t){if(t.resetFilters){var e=this._initState();this.setState(e)}},render:function(){var t=this;return React.createElement("div",{className:"c-toggle-text"},this.props.isIE8?null:React.createElement("div",{className:"c-toggle-text__link no-after"},this.props.translations.show),React.createElement("div",{id:"filtros-empresas",className:"section"},React.createElement("div",{className:"contenido"},React.createElement("div",{id:"vinc_type",className:"filtro"},React.createElement("p",null,this.props.filters.type.label),this._print_options("type")),React.createElement("div",{id:"vinc_percentage",className:"filtro"},React.createElement("p",null,this.props.filters.percentage.label),this._print_options("percentage")))),React.createElement(FiltersSummary,{activeFilters:{type:this.state.filterSummary.type,status:this.state.filterSummary.status,percentage:this.state.filterSummary.percentage},filters:this.props.filters,translations:this.props.translations,onRemoveFilter:function(e,i){return t.handleRemoveFilter(e,i)},onCleanFilters:this.handleCleanAllFilters}),React.createElement("div",{className:"c-switch"},this.props.showRiskOption?React.createElement("a",{onClick:this.props.onShowRiskOptionClick,href:"javascript:void(0);",className:"c-button c-button--primary"},this.props.riskLinkText):null,React.createElement("a",{className:"c-button c-button--primary",id:"show-graph",onClick:this.goToGraph},this.props.translations.graph.title)))},propTypes:{filters:React.PropTypes.any.isRequired,defaultFilters:React.PropTypes.any.isRequired,initStatus:React.PropTypes.any.isRequired,translations:React.PropTypes.any.isRequired,showRiskOption:React.PropTypes.bool.isRequired,riskLinkText:React.PropTypes.string.isRequired,resetFilters:React.PropTypes.bool.isRequired,onShowRiskOptionClick:React.PropTypes.func.isRequired,onFiltersApplied:React.PropTypes.func.isRequired,onShowAlert:React.PropTypes.func.isRequired,onShowFullTableClick:React.PropTypes.func.isRequired}}),VincFilterOption=React.createClass({displayName:"VincFilterOption",getInitialState:function(){return{checked:this.props.status}},handleInputChange:function(){this.setState({checked:!this.state.checked}),this.props.onChange(this.props.option,this.props.value,!this.state.checked)},componentWillReceiveProps:function(t){this.setState({checked:t.status})},render:function(){var t=function(t){return"<= 50%"===t?"minor":"> 50%"===t?"major":t},e="tabla"===this.props.type?"c-form__group":"form-group child-"+t(this.props.name),i="tabla"===this.props.type?"u-space-left":"c-toggle-buttons__button-tabla";return React.createElement("div",{className:e},React.createElement("input",{type:this.props.inputType,value:this.props.value,checked:this.state.checked,className:"check_type_info niveles",onChange:this.handleInputChange,id:t(this.props.name)}),React.createElement("label",{className:i,htmlFor:t(this.props.name)},this.props.name))},propTypes:{value:React.PropTypes.number.isRequired,option:React.PropTypes.string.isRequired,status:React.PropTypes.bool.isRequired,name:React.PropTypes.string.isRequired,inputType:React.PropTypes.string.isRequired,type:React.PropTypes.string,onChange:React.PropTypes.func.isRequired}}),VinculacionesList=React.createClass({displayName:"VinculacionesList",statics:{defaultFilters:{type:[0,1],status:[0],percentage:[0,1,2]},initialAvailableNodes:100,defaultFiltersToShow:{type:[0,1],status:[0],percentage:[0,1,2]}},getInitialState:function(){var t=this.props.columns?this.props.columns:{risk:!0,percentage:!0};
27return{showSummary:!1,showFancyRisk:!1,showFancyLimit:!1,showAlertFancy:!1,showFancyMaxNodesLimit:!1,showExcelFancy:!1,riskLevel:this.props.riskLevel,showRiskOption:1!=this.props.riskLevel,columns:t,availableLevels:15,availableNodes:this._calculateAvailableNodes(0,0),filters:VinculacionesList.defaultFilters,defaultFilters:VinculacionesList.defaultFiltersToShow,defaultFiltersToExe:VinculacionesList.defaultFilters,selectedNode:this._getSelectedNode(),shareholders:this._getChildren(this.props.data,"shareholders"),participations:this._getChildren(this.props.data,"participations"),participationsPlainTree:[],shareholdersPlainTree:[],participationsPlainTreeCount:0,shareholdersPlainTreeCount:0,participationsSummary:{},shareholdersSummary:{},emptyShareholders:!1,emptyShareholders:!1,resetFilters:!1,fullTreeMode:!1}},_getChildrenNodes:function(t,e,i){var n=t.nodes;if("shareholders"==i)var o=(s=t.links.filter(function(t){return t.toId==e})).map(function(t){return n.find(function(e){return e.id==t.fromId})});else{var s;o=(s=t.links.filter(function(t){return t.fromId==e})).map(function(t){return n.find(function(e){return e.id==t.toId})})}return{nodes:o,links:s}},_getSelectedNode:function(){return this.props.data.nodes.find(function(t){return"seleccionada"==t.data.classes})},_getChildren:function(t,e){var i=t.nodes.find(function(t){return"seleccionada"==t.data.classes}),n=this._getChildrenNodes(t,i.id,e),o=n.nodes,s=n.links,r=this._getChildrenNodes,a=[];return n.nodes.forEach(function(n){n.id!=i.id&&a.push(r(t,n.id,e))}),{nodes:o,links:s,childrenNodes:a}},_calculateAvailableNodes:function(t,e){return VinculacionesList.initialAvailableNodes-t-e},_countNodes:function(t){return t.filter(function(t){return"group"!=t.kind&&!t.autoLink&&!t.anchor}).length},_computeNewSummary:function(t,e){var i=0,n=0,o=0,s={direct:0,indirect:0,oldDirect:0,oldIndirect:0};s.sectors=new Array(11).fill(0),s.councils=new Array(100).fill(0),s.issues=0,s.risk=-1;var r=new Set,a=new Set,l=new Set,c=new Set;return t.filter(function(t){return"group"!=t.kind&&!t.autoLink&&!t.anchor}).forEach(function(t){t.codigo_sector&&s.sectors[t.codigo_sector]++,t.provincia&&s.councils[t.provincia]++,t.incidencias&&s.issues++,null==t.rating||"H"!=t.rating&&"M"!=t.rating&&"L"!=t.rating||t.autoLink||("H"==t.rating?i++:"M"==t.rating?n++:"L"==t.rating&&o++),"participadas"==e&&t.link.fromId==this.props.empresaId||"accionistas"==e&&t.link.toId==this.props.empresaId?t.link.data.vida?r.add(t.empresa_id):l.add(t.empresa_id):t.link.data.vida?a.add(t.empresa_id):c.add(t.empresa_id)},this),l.forEach(function(t){a.has(t.empresa_id)&&r.add(t.empresa_id)},this),l=new Set(Array.from(l).filter(function(t){return!r.has(t)},this)),a=new Set(Array.from(a).filter(function(t){return!r.has(t)},this)),c=new Set(Array.from(c).filter(function(t){return!r.has(t)&&!a.has(t)&&!l.has(t)},this)),s.direct=r.size,s.indirect=a.size,s.oldDirect=l.size,s.oldIndirect=c.size,s.risk=[i,n,o],s},_rebuildTree:function(t){this.setState({shareholders:t,participations:t,fullTreeMode:!0,participationsPlainTree:[],shareholdersPlainTree:[],participationsSummary:{},shareholdersSummary:{}
27,emptyShareholders:!1,emptyShareholders:!1,resetFilters:!1})},handleShowSummaryClick:function(){this.setState({showSummary:!this.state.showSummary})},showRisk:function(){this.setState({showFancyRisk:!0})},hideRisk:function(){this.setState({showFancyRisk:!1})},storeRisk:function(t){var e=this,i="/empresa/vinculaciones/update_risk.json",n={risk_level:t.toString(),empresa_id:this.props.empresaId};$.post(i,n).done(function(i){i||location.reload(),e.setState({riskLevel:t,showRiskOption:1!=t,showFancyRisk:!1})}).fail(function(){e.setState({showFancyRisk:!1}),e.showFancyError()})},handleLimitExceeded:function(){this.setState({showFancyLimit:!0})},hideFancyLimit:function(){this.setState({showFancyLimit:!1})},handleExcelDownload:function(t){t&&this.storeRisk(2),this.setState({showFancyLimit:!1,showFancyMaxNodesLimit:!1,showExcelFancy:!1}),window.open(this.props.downloadExcelUrl,"_blank")},handleUpdateShareholdersPlainTree:function(t){var e=this._countNodes(t);this.setState({shareholdersSummary:this._computeNewSummary(t,"accionistas"),shareholdersPlainTree:t,shareholdersPlainTreeCount:e,availableNodes:this._calculateAvailableNodes(e,this.state.participationsPlainTreeCount)})},handleUpdateParticipationsPlainTree:function(t){var e=this._countNodes(t);this.setState({participationsSummary:this._computeNewSummary(t,"participadas"),participationsPlainTree:t,participationsPlainTreeCount:e,availableNodes:this._calculateAvailableNodes(e,this.state.shareholdersPlainTreeCount)})},handleUpdateFilters:function(t){0===t.type.length&&(t.type=this.state.defaultFiltersToExe.type),0===t.percentage.length&&(t.percentage=this.state.defaultFiltersToExe.percentage);var e={filters:t,emptyShareholders:!1,emptyShareholders:!1,resetFilters:!1};1==t.type.length&&(0==t.type[0]?(e.participationsSummary=this._computeNewSummary([],"participadas"),e.participationsPlainTree=[],e.participationsPlainTreeCount=0,e.availableNodes=this._calculateAvailableNodes(0,this.state.participationsPlainTreeCount)):1==t.type[0]&&(e.shareholdersSummary=this._computeNewSummary([],"accionistas"),e.shareholdersPlainTree=[],e.shareholdersPlainTreeCount=0,e.availableNodes=this._calculateAvailableNodes(0,this.state.shareholdersPlainTreeCount))),this.setState(e)},handleFullTableClick:function(){this.setState({pendingRequest:this.props.empresaId});var t=this,e="/empresa/"+this.props.empresaId+"/vinculaciones/full_list.json",i={};$.get(e,i).done(function(e){null==e?document.location.reload():t._rebuildTree(e)}).fail(function(){t.setState({pendingRequest:0}),t.showFancyError()})},updateNodesCounter:function(){},canAddNewNodes:function(t){var e=this.state.availableNodes-t,i=e>=0;return i?this.state.availableNodes=e:this.setState({showFancyMaxNodesLimit:!0}),i},hideFancyMaxNodesLimit:function(){this.setState({showFancyMaxNodesLimit:!1})},hideShareholders:function(){this.setState({emptyShareholders:!0})},hideParticipations:function(){this.setState({emptyParticipations:!0})},showAlertFancy:function(){this.setState({showAlertFancy:!0})},hideAlertFancy:function(){this.setState({showAlertFancy:!1})},showExcelFancy:function(){this.setState({showExcelFancy:!0})},hideExcelFancy:function(){this.setState({showExcelFancy:!1})},hideEmptyFancy:function(){this.setState({filters:VinculacionesList.defaultFilters,defaultFilters:VinculacionesList.defaultFiltersToShow,defaultFiltersToExe:VinculacionesList.defaultFilters,emptyShareholders:!1,emptyParticipations:!1,resetFilters:!0})},showFancyError:function(){$.fancybox({type:"ajax",href:this.props.data.urls.error_url,title:this.props.translations.product.error,titlePosition:"over-top",padding:0,helpers:{title:{type:"inside",position:"top"}}})},render:function(){var t=0==this.state.riskLevel?this.props.translations.filters.risk_level:this.props.translations.filters.disable_risk_level;return React.createElement("div",{className:"o-grid o-grid--nowrap"},React.createElement("div",{className:"o-grid__col c-report__nav-col"},React.createElement("div",{id:"filters",className:"filtros"},React.createElement(VincFilterBox,{filters:this.props.filters,translations:this.props.translations.filters,isIE8:this.props.data.ie8,defaultFilters:this.state.defaultFilters,riskLinkText:t,initStatus:this.state.filters,resetFilters:this.state.resetFilters,showRiskOption:this.state.showRiskOption,onShowAlert:this.showAlertFancy,onShowRiskOptionClick:this.showRisk,onFiltersApplied:this.handleUpdateFilters,onShowFullTableClick:this.handleFullTableClick}))),React.createElement("div",{className:"o-grid__col c-report__main-col"},React.createElement("div",{className:"c-report__page"},React.createElement("h3",{className:"u-title-h3 u-pointer",onClick:this.handleShowSummaryClick},this.props.translations.summary.title,React.createElement("i",{className:"u-icon-chevron-light-down u-icon-resumen"})),this.state.showSummary?React.createElement(Summary,{
28translations:this.props.translations.summary,summary:{shareholders:this.state.shareholdersSummary,participations:this.state.participationsSummary},riskLevel:this.state.riskLevel}):null),React.createElement("div",{className:"c-report__page"},!this.state.emptyShareholders&&this.state.filters.type.includes(0)?React.createElement(VinculacionesTable,{vincType:"shareholders",nodes:this.state.shareholders,selectedNode:this.state.selectedNode,empresaId:this.props.empresaId,empresaName:this.props.empresaName,translations:this.props.translations,riskLevel:this.state.riskLevel,availableLevels:this.state.availableLevels,urls:this.props.data.urls,canAddNewNodes:this.canAddNewNodes,afterAddNodes:this.updateNodesCounter,fullTreeMode:this.state.fullTreeMode,filtersApplied:{percentage:[].concat(this.state.filters.percentage),status:[].concat(this.state.filters.status)},onLimitLevelsExceeded:this.handleLimitExceeded,onUpdatePlainTree:this.handleUpdateShareholdersPlainTree,onHideNodes:this.hideShareholders,onAjaxError:this.show
28FancyError}):null,!this.state.emptyParticipations&&this.state.filters.type.includes(1)?React.createElement(VinculacionesTable,{vincType:"participations",nodes:this.state.participations,selectedNode:this.state.selectedNode,empresaId:this.props.empresaId,empresaName:this.props.empresaName,translations:this.props.translations,riskLevel:this.state.riskLevel,availableLevels:this.state.availableLevels,urls:this.props.data.urls,canAddNewNodes:this.canAddNewNodes,afterAddNodes:this.updateNodesCounter,fullTreeMode:this.state.fullTreeMode,filtersApplied:{percentage:[].concat(this.state.filters.percentage),status:[].concat(this.state.filters.status)},onLimitLevelsExceeded:this.handleLimitExceeded,onUpdatePlainTree:this.handleUpdateParticipationsPlainTree,onHideNodes:this.hideParticipations,onAjaxError:this.showFancyError}):null)),this.state.showFancyRisk?0==this.state.riskLevel?React.createElement(RiskFancyBox,{onHide:this.hideRisk,option:this.state.riskLevel,riskOptions:this.props.riskOptions,translations:this.props.translations.fancy,onAccept:this.storeRisk}):React.createElement(RevokeRiskFancyBox,{onHide:this.hideRisk,riskOptions:this.props.riskOptions,translations:this.props.translations.fancy,onAccept:this.storeRisk}):null,this.state.showFancyMaxNodesLimit?React.createElement(LimitNodesFancyBox,{onHide:this.hideFancyMaxNodesLimit,onAccept:this.handleExcelDownload,riskLevelChecked:0==this.state.riskLevel,translations:this.props.translations.limit_fancy,downloadExcelUrl:this.props.downloadExcelUrl}):null,this.state.showFancyLimit?React.createElement(LimitLevelsFancyBox,{onHide:this.hideFancyLimit,limitExceeded:!0,onAccept:this.handleExcelDownload,titleText:this.props.translations.limit_fancy.limit_levels.title,riskLevelChecked:0==this.state.riskLevel,translations:this.props.translations.limit_fancy,downloadExcelUrl:this.props.downloadExcelUrl}):null,this.state.showExcelFancy?React.createElement(LimitLevelsFancyBox,{onHide:this.hideExcelFancy,limitExceeded:!1,onAccept:this.handleExcelDownload,titleText:this.props.translations.excel_fancy,riskLevelChecked:0==this.state.riskLevel,translations:this.props.translations.limit_fancy,downloadExcelUrl:this.props.downloadExcelUrl}):null,this.state.showAlertFancy?React.createElement(AlertFancyBox,{onHide:this.hideAlertFancy,translations:this.props.translations.alert_fancy}):null,this.state.emptyShareholders&&this.state.emptyParticipations?React.createElement(AlertFancyBox,{onHide:this.hideEmptyFancy,translations:this.props.translations.empty_fancy}):null,React.createElement(BottomOptions,{id:this.props.empresaId,cif:this.props.data.nodes[0].data.cif,translations:this.props.translations.downloads,shareholders:this.state.shareholdersPlainTree,participations:this.state.participationsPlainTree}))},propTypes:{empresaId:React.PropTypes.number.isRequired,empresaName:React.PropTypes.string.isRequired,translations:React.PropTypes.any.isRequired,riskOptions:React.PropTypes.any.isRequired,riskLevel:React.PropTypes.number.isRequired,downloadExcelUrl:React.PropTypes.string.isRequired,data:React.PropTypes.any,columns:React.PropTypes.any}}),VinculacionesTable=React.createClass({displayName:"VinculacionesTable",statics:{childrenToOpen:4},getInitialState:function(){var t=this.props.columns?this.props.columns:{risk:!0,percentage:!0},e=this._initNodes();return{showRiskOption:1!=this.props.riskLevel,columns:t,tree:e.tree,plainTree:e.plainTree,pendingRequest:0}},_initNodes:function(){var tree={},level=0,parsedData=this._createTrees(this.props.empresaId,level,"",this.props.nodes,[]);tree.children=parsedData.tree,tree.pendingChildren=parsedData.pendingChildren;var plainTree=parsedData.plainTree,parsedData2={},index=0,childrenLength=0,treeNode={},childrenNodes=this.props.nodes.childrenNodes,createTrees=this._createTrees;level++;var resPlain=[].concat(plainTree),last_child=-1;return resPlain[0]&&resPlain[0].autoLink&&(index++,plainTree=plainTree.filter(function(t){return!t.autoLink})),plainTree.forEach(function(child,i){index++,last_child=i,parsedData2=createTrees(child.empresa_id,level,child.code,childrenNodes[i],resPlain);
28var tree_path=child.code.replaceAll("-",".children.");treeNode=eval("tree.children."+tree_path),treeNode.showChildren=!0,treeNode.children=parsedData2.tree,treeNode.pendingChildren=parsedData2.pendingChildren,childrenLength=Object.keys(parsedData2.tree).length,parsedData2.pendingChildren.length>0&&(1==parsedData2.pendingChildren.length?parsedData2.plainTree=parsedData2.plainTree.concat(parsedData2.pendingChildren[0]):parsedData2.plainTree=parsedData2.plainTree.concat({kind:"group",parentCode:treeNode.code,parentName:treeNode.razon_social,count:parsedData2.pendingChildren.length,level:level}),parsedData2.visibleNodesCount++),treeNode.openedDescendants=parsedData2.visibleNodesCount,resPlain.splice.apply(resPlain,[index,0].concat(parsedData2.plainTree)),index+=parsedData2.plainTree.length}),tree.razon_social=this.props.empresaName,tree.pendingChildren.length>0&&(1==tree.pendingChildren.length?(treeNode=tree.pendingChildren[0],parsedData2=createTrees(treeNode.empresa_id,level,treeNode.code,childrenNodes[++last_child],resPlain),treeNode.showChildren=!0,treeNode.children=parsedData2.tree,treeNode.pendingChildren=parsedData2.pendingChildren,childrenLength=Object.keys(parsedData2.tree).length,parsedData2.pendingChildren.length>0&&(1==parsedData2.pendingChildren.length?(parsedData2.plainTree=parsedData2.plainTree.concat(parsedData2.pendingChildren[0]),parsedData2.pendingChildren=[]):parsedData2.plainTree=parsedData2.plainTree.concat({kind:"group",parentCode:treeNode.code,parentName:treeNode.razon_social,count:parsedData2.pendingChildren.length,level:level}),parsedData2.visibleNodesCount++),treeNode.openedDescendants=parsedData2.visibleNodesCount,resPlain=resPlain.concat(treeNode),index++,resPlain.splice.apply(resPlain,[index,0].concat(parsedData2.plainTree)),tree.pendingChildren=[]):(treeNode={kind:"group",parentCode:"",parentName:tree.razon_social,count:tree.pendingChildren.length,level:0},resPlain=resPlain.concat(treeNode))),{tree:tree,plainTree:resPlain}},_groupLinks:function(t,e){var i=[],n=[],o=this._isShareholder();return e.map(function(e){o?e.toId==t?i.push(e):n.push(e):e.fromaId==t?i.push(e):n.push(e)}),{links_current_level:i,links_other_level:n}},_buildFullTree:function(t){var e=t.links,i={},n=[],o=[],s=0,r={},a=[],l=this.props.empresaId,c="",h=[],u=[],d=-1;do{n=(i=this._groupLinks(l,e)).links_other_level,o=i.links_current_level,r=(i=this._buildTrees(r,l,s,c,t.nodes,o,a)).tree,a=i.plainTree,i.visibleNodesCount,h=h.concat(i.pendingChildren),e=n;do{i=h.shift(),-1==(d=u.findIndex(function(t){return t.empresa_id===i.data.empresa_id}))&&(u.push(i),l=i.data.empresa_id,s=(c=i.data.code).split("-").length)}while(h.length>0&&d>-1)}while(h.length>0);return{tree:r,plainTree:a}},_buildTrees:function(currentTree,empresaId,level,parentCode,nodes,childrenLinks,currentPlainTree){for(var treeNode=""===parentCode?currentTree:this._findNodeInTree(currentTree,parentCode),i=0,node={},link={},res_plain=[],res_pending=[],visibleNodesCount=0,isShareholder=this._isShareholder(),applyFilters=this._applyFilters,findPreviousNode=this._findPreviousNode;childrenLinks[i];)if(link=JSON.parse(JSON.stringify(childrenLinks[i])),node=nodes.find(function(t){return isShareholder?link.fromId==t.data.empresa_id:link.toId==t.data.empresa_id}),node=JSON.parse(JSON.stringify(node)),i++,node){if(res_pending.push(node),node.data.link=link,node.data.showChildren=!1,node.data.level=level,node.data.code=""===parentCode?"E"+node.data.empresa_id.toString():parentCode+"-E"+node.data.empresa_id.toString(),node.data.children={},node.data.openedDescendants=0,node.data.filtersExpandable=!0,node.data.pendingChildren=[],node.data.kind="node",node.data.autoLink=link.fromId==link.toId,node.data.autoLink)node.data.show=!0,res_plain.unshift(node.data),visibleNodesCount++;else{var lengthWoAuto=res_plain.filter(function(t){return!t.autoLink}).length;node.data.anchor=findPreviousNode(node.data.empresa_id,currentPlainTree),node.data.show=!0,visibleNodesCount++,res_plain=res_plain.concat(node.data)}void 0===treeNode.children&&(treeNode.children={}),eval("treeNode.children.E"+node.data.empresa_id.toString()+"=node.data;")}return currentPlainTree.length>0?(i=currentPlainTree.findIndex(function(t){return t.empresa_id===empresaId})+1,currentPlainTree.splice.apply(currentPlainTree,[i,0].concat(res_plain))):currentPlainTree=res_plain,{tree:currentTree,plainTree:currentPlainTree,pendingChildren:res_pending,visibleNodesCount:visibleNodesCount}},_countNodes:function(t){return t.filter(function(t){return"group"!=t.kind&&!t.autoLink&&!t.anchor}).length},_getPercentageRange:function(t){return void 0===t.data.link||isNaN(parseFloat(t.data.link.data.porcentaje))?2:t.data.link.data.matriz?0:1},_getStatusRange:function(t){return void 0===t.data.link||t.data.link.data.vida?0:1},_applyPercentageFilter:function(t,e){return e.filtersApplied.percentage.includes(this._getPercentageRange(t))},_applyStatusFilter:function(t,e){return e.filtersApplied.status.includes(this._getStatusRange(t))},_applyFilters:function(t,e){return this._applyPercentageFilter(t,e)&&this._applyStatusFilter(t,e)},_createTrees:function(empresaId,level,parentCode,data,currentPlainTree){for(var nodes_links=data.links,risk_level=this.props.riskLevel,vincType=this.props.vincType,res_tree={},res_plain=[],res_pending=[],isShareholder=this._isShareholder(),findPreviousNode=this._findPreviousNode,applyFilters=this._applyFilters,currentProps=this.props,i=0,node={},visibleNodesCount=0;data.nodes[i];
28){node=JSON.parse(JSON.stringify(data.nodes[i])),i++;var link=nodes_links.find(function(t){return isShareholder?t.fromId==node.data.empresa_id&&t.toId==empresaId:t.toId==node.data.empresa_id&&t.fromId==empresaId});if(link){if(node.data.link=link,node.data.showChildren=!1,node.data.level=level,node.data.code=""===parentCode?"E"+node.data.empresa_id.toString():parentCode+"-E"+node.data.empresa_id.toString(),node.data.children={},node.data.openedDescendants=0,node.data.filtersExpandable=!0,node.data.pendingChildren=[],node.data.kind="node",node.data.autoLink=link.fromId==link.toId,node.data.filtered=applyFilters(node,currentProps),node.data.filtered)if(node.data.autoLink)node.data.show=!0,res_plain.unshift(node.data),visibleNodesCount++;else{var lengthWoAuto=res_plain.filter(function(t){return!t.autoLink}).length;lengthWoAuto<VinculacionesTable.childrenToOpen?(node.data.anchor=findPreviousNode(node.data.empresa_id,currentPlainTree),node.data.show=!0,visibleNodesCount++,res_plain=res_plain.concat(node.data)):(node.data.show=!1,res_pending=res_pending.concat(node.data))}else node.data.show=!1;eval("res_tree.E"+node.data.empresa_id.toString()+"=node.data;")}}return{tree:res_tree,plainTree:res_plain,pendingChildren:res_pending,visibleNodesCount:visibleNodesCount}},_isShareholder:function(){return"shareholders"===this.props.vincType},_findPreviousNode:function(t,e){var i=0;if(t===this.props.empresaId)return"ficha-top";for(;node=e[i];){if(node.empresa_id===t)return node.code;i++}},_findNode:function(code){var tree_path=code.replaceAll("-",".children.");return eval("this.state.tree.children."+tree_path)},_findNodeInTree:function(tree,code){var tree_path=code.replaceAll("-",".children.");return eval("tree.children."+tree_path)},_showCachedChildren:function(code,count){var treeNode=this._findNode(code),childrenPlainTree=[],tree_path=code.replaceAll("-",".children.");for(var child in tree_path="this.state.tree.children."+tree_path,treeNode.children)eval(tree_path+".children."+child+".show === true")&&(eval(tree_path+".children."+child+".autoLink === true")?childrenPlainTree.unshift(eval(tree_path+".children."+child)):childrenPlainTree.push(eval(tree_path+".children."+child)));if(this.props.canAddNewNodes(childrenPlainTree.length)){eval(tree_path+".showChildren=true"),treeNode.pendingChildren.length>0&&(1==treeNode.pendingChildren.length?(childrenPlainTree=childrenPlainTree.concat(treeNode.pendingChildren[0]),treeNode.pendingChildren=[]):childrenPlainTree=childrenPlainTree.concat({kind:"group",parentCode:code,parentName:treeNode.razon_social,count:treeNode.pendingChildren.length,level:treeNode.level+1})),eval(tree_path+".openedDescendants="+childrenPlainTree.length.toString()),this._updateAncestors(code,childrenPlainTree.length,"increase");var updatedPlainTree=this._updatePlainTree(count,childrenPlainTree);this.setState({tree:this.state.tree,plainTree:updatedPlainTree}),this.props.onUpdatePlainTree(this.state.plainTree)}},_addChildren:function(empresaId,code,count,data){var level=code.split("-").length,tree_path=code.replaceAll("-",".children.");tree_path="this.state.tree.children."+tree_path;var parsedData=this._createTrees(empresaId,level,code,data,this.state.plainTree),newState={};if(this.props.canAddNewNodes(this._countNodes(parsedData.plainTree))>0){eval(tree_path+".showChildren=true"),0==parsedData.plainTree.length&&eval(tree_path+".filtersExpandable=false"),parsedData.pendingChildren.length>0&&(1==parsedData.pendingChildren.length?(parsedData.plainTree=parsedData.plainTree.concat(parsedData.pendingChildren[0]),parsedData.pendingChildren=[]):parsedData.plainTree=parsedData.plainTree.concat({kind:"group",parentCode:code,parentName:eval(tree_path+".razon_social"),count:parsedData.pendingChildren.length,level:level}),parsedData.visibleNodesCount++);var updatedTree=this._updateTree(code,parsedData.tree,parsedData.pendingChildren,parsedData.visibleNodesCount),updatedPlainTree=this._updatePlainTree(count,parsedData.plainTree);newState.tree=updatedTree,newState.plainTree=updatedPlainTree,this.props.onUpdatePlainTree(this.state.plainTree)}newState.pendingRequest=0,this.setState(newState)},_updateTree:function(code,childrenTree,pendingChildren,visibleNodesCount){var ancestorPath="",tree_path=code.replaceAll("-",".children.");return tree_path="this.state.tree.children."+tree_path,eval(tree_path+".showChildren=true"),eval(tree_path+".children=childrenTree"),eval(tree_path+".pendingChildren=pendingChildren"),eval(tree_path+".openedDescendants="+visibleNodesCount.toString()),this._updateAncestors(code,visibleNodesCount,"increase"),this.state.tree}
28,_updateAncestors:function(code,descendantsLength,action){var ancestorCode=code.split("-");ancestorCode.splice(ancestorCode.length-1,1),ancestorCode=ancestorCode.join(".children.");for(var op="increase"==action?"+":"-";ancestorCode.length>0;)ancestorPath="this.state.tree.children."+ancestorCode,eval(ancestorPath+".openedDescendants="+ancestorPath+".openedDescendants"+op+descendantsLength.toString()),ancestorCode=ancestorCode.split(".children."),ancestorCode.splice(ancestorCode.length-1,1),ancestorCode=ancestorCode.join(".children.")},_updatePlainTree:function(t,e){return this.state.plainTree.splice.apply(this.state.plainTree,[t,0].concat(e)),this.state.plainTree},_hideChildrenTree:function(code,updateAncestors){var treeNode=this._findNode(code),tree_path=code.replaceAll("-",".children.");for(var child in tree_path="this.state.tree.children."+tree_path,eval(tree_path+".showChildren=false"),treeNode.children)this._hideChildrenTree(eval("treeNode.children."+child+".code"),!1);return updateAncestors&&this._updateAncestors(code,treeNode.openedDescendants,"decrease"),eval(tree_path+".openedDescendants=0"),this.state.tree},_removeChildrenPlainTree:function(t,e){return this.state.plainTree.splice(t,e),this.state.plainTree},_mergeChildren:function(tree){var orderedArray=[],comparer=function(t,e){if(t.link.data.vida){if(!e.link.data.vida)return-1}else if(e.link.data.vida)return 1;var i=parseFloat(t.link.data.porcentaje),n=parseFloat(e.link.data.porcentaje);return isNaN(i)&&(i=0),isNaN(n)&&(n=0),i<n?1:i>n?-1:0};return Object.keys(tree.children).map(function(node){orderedArray.sortInsert(eval("tree.children."+node),comparer)}),orderedArray},_recalculateNewFilters:function(tree,nextProps,prevPlainTree){var childrenArray=this._mergeChildren(tree);if(void 0===tree.code)var parentCode="",parentName=nextProps.empresaName,level=0;else var parentCode=tree.code,parentName=tree.razon_social,level=tree.level+1;prevPlainTree||(prevPlainTree=[]);var plainTree=[],resTree={},resPending=[],applyFilters=this._applyFilters,recalculateNewFilters=this._recalculateNewFilters,childrenToOpen=VinculacionesTable.childrenToOpen,findPreviousNode=this._findPreviousNode,count=0,visibleNodesCount=0;return childrenArray.forEach(function(node){if(node.data=node,node.showChildren=!1,node.filtered=applyFilters(node,nextProps),node.filtered?node.autoLink?(node.show=!0,plainTree.unshift(node),visibleNodesCount++):node.show||count<childrenToOpen?(node.anchor=findPreviousNode(node.empresa_id,prevPlainTree.concat(plainTree)),node.show=!0,visibleNodesCount++,plainTree=plainTree.concat(node),void 0===node.anchor&&count++):(node.show=!1,resPending=resPending.concat(node)):node.show=!1,eval("resTree.E"+node.empresa_id.toString()+"=node;"),node.show&&void 0===node.anchor)if(0===Object.keys(node.children).length)node.filtersExpandable=!0;else{var childrenData=recalculateNewFilters(node,nextProps,plainTree);node.showChildren=node.openedDescendants>0,eval("resTree.E"+node.empresa_id.toString()+".children=childrenData.tree;"),eval("resTree.E"+node.empresa_id.toString()+".pendingChildren=childrenData.pendingChildren;"),plainTree=plainTree.concat(childrenData.plainTree),node.showChildren&&resPending.length>0&&(1==resPending.length?(plainTree=plainTree.concat(resPending[0]),resPending=[]):plainTree=plainTree.concat({kind:"group",parentCode:node.code,parentName:node.razon_social,count:resPending.length,level:level+1}),childrenData.visibleNodesCount++),visibleNodesCount+=childrenData.visibleNodesCount,node.openedDescendants=childrenData.visibleNodesCount,node.showChildren=node.openedDescendants>0,node.filtersExpandable=node.showChildren,count++}}),resPending.length>0&&(1==resPending.length?(plainTree=plainTree.concat(resPending[0]),resPending=[]):plainTree=plainTree.concat({kind:"group",parentCode:parentCode,parentName:parentName,count:resPending.length,level:level}),visibleNodesCount++),{tree:resTree,plainTree:plainTree,pendingChildren:resPending,totalNodes:count,visibleNodesCount:visibleNodesCount}},_getNodeIds:function(tree){for(var ids={},valid_children=Object.keys(tree.children),i=0;i<valid_children.length;
28i++)nodeKey=valid_children[i],node=eval("tree.children."+nodeKey),node.person||(ids[node.empresa_id]=node.md5,Object.keys(node.children).length>0&&$.extend(ids,this._getNodeIds(node)));return ids},_updateRating:function(ids,tree){for(var valid_children=Object.keys(tree.children),i=0;i<valid_children.length;i++){var nodeKey=valid_children[i],node=eval("tree.children."+nodeKey),newRating=ids[node.empresa_id.toString()];(newRating||"H"!=node.rating)&&(node.rating=newRating),Object.keys(node.children).length>0&&this._updateRating(ids,node)}this.setState({tree:tree})},handleExpandNode:function(t,e,i){var n=this._findNode(e);if(n.level>=this.props.availableLevels)this.props.onLimitLevelsExceeded();else if(0==Object.keys(n.children).length){if(0==this.state.pendingRequest){this.setState({pendingRequest:e});var o=this;if(this._isShareholder())var s="/empresa/"+this.props.empresaId+"/vinculaciones/accionistas/"+t+".json";else s="/empresa/"+this.props.empresaId+"/vinculaciones/participaciones/"+t+".json";var r={k:n.md5,empresa_k:this.props.selectedNode.data.md5};$.get(s,r).done(function(n){null==n?document.location.reload():o._addChildren(t,e,i,n)}).fail(function(){o.setState({pendingRequest:0}),o.props.onAjaxError()})}}else this._showCachedChildren(e,i)},handleCollapseNode:function(t,e){var i=this._findNode(t).openedDescendants,n=this._hideChildrenTree(t,!0),o=this._removeChildrenPlainTree(e,i);this.setState({tree:n,plainTree:o}),this.props.onUpdatePlainTree(this.state.plainTree)},handleShowMoreChildren:function(t,e){if(""!=t)var i=this._findNode(t);else i=this.state.tree;var n=[],o=t.replaceAll("-",".children.");o="this.state.tree.children."+o;var s=0;for(var r in i.pendingChildren){if(!(r<VinculacionesTable.childrenToOpen))break;var a=i.pendingChildren[r];a.show=!0,a.anchor=this._findPreviousNode(a.empresa_id,this.state.plainTree),n.push(a),s++}if(this.props.canAddNewNodes(n.length)){i.pendingChildren.splice(0,s),i.openedDescendants=i.openedDescendants+n.length,i.pendingChildren.length>0&&(1==i.pendingChildren.length?(n=n.concat(i.pendingChildren[0]),i.pendingChildren=[]):n=n.concat({kind:"group",parentCode:t,parentName:i.razon_social,count:i.pendingChildren.length,level:i.level+1}),i.openedDescendants++),""!=t&&this._updateAncestors(t,n.length-1,"increase"),this._removeChildrenPlainTree(e,1),i.openedDescendants--;var l=this._updatePlainTree(e,n);this.setState({tree:this.state.tree,plainTree:l}),this.props.onUpdatePlainTree(this.state.plainTree)}else n.map(function(t){t.show=!1})},componentWillReceiveProps:function(t){if(t.filtersApplied.percentage.diff(this.props.filtersApplied.percentage).length>0||t.filtersApplied.status.diff(this.props.filtersApplied.status).length>0){var e=this._recalculateNewFilters(this.state.tree,t);t.canAddNewNodes(e.totalNodes-this._countNodes(this.state.plainTree))&&(this.setState({tree:{children:e.tree,pendingChildren:e.pendingChildren},plainTree:e.plainTree}),this.props.onUpdatePlainTree(e.plainTree))}if(t.riskLevel!=this.props.riskLevel)if(0==t.riskLevel)this._updateRating({},this.state.tree);else{var i=this,n="/empresa/"+this.props.empresaId+"/vinculaciones/ratings.json",o={ids:this._getNodeIds(this.state.tree),empresa_k:this.props.selectedNode.data.md5};$.post(n,o).done(function(t){t||location.reload(),i._updateRating(t,i.state.tree)}).fail(function(){i.props.onAjaxError()})}if(1==t.fullTreeMode){var s=this._buildFullTree(t.nodes);this.setState({tree:s.tree,plainTree:s.plainTree})}},componentWillUpdate:function(t,e){0==e.plainTree.length&&this.props.onHideNodes()},componentDidMount:function(){this.props.onUpdatePlainTree(this.state.plainTree),Informa.initializeTips()},render:function(){var columns=this.state.columns,risk_level=this.props.riskLevel,riskLinkText=0==this.props.riskLevel?this.props.translations.filters.risk_level:this.props.translations.filters.disable_risk_level,handleExpandNode=this.handleExpandNode,handleCollapseNode=this.handleCollapseNode,handleShowMoreChildren=this.handleShowMoreChildren,pendingRequest=this.state.pendingRequest,title=eval("this.props.translations.product."+this.props.vincType),translations=this.props.translations,urls=this.props.urls,onAjaxError=this.props.onAjaxError,rows=this.state.plainTree.map(function(t,e){return"group"==t.kind?React.createElement(GroupedNode,{item:t,key:e,count:e+1,onClick:function(t,e){return handleShowMoreChildren(t,e)},translation:title}):React.createElement(TreeRoot,{item:t,key:e,level:t.level,count:e+1,path:"",link:t.link,columns:columns,riskLevel:risk_level,code:t.code,loading:t.code==pendingRequest,translations:translations.product,urls:urls,onExpand:handleExpandNode,onCollapse:handleCollapseNode,onAjaxError:onAjaxError})});return React.createElement("div",{className:"c-file-module c-file-module__hasTitle u-margin-bottom"},React.createElement("h3",{className:"c-file-module__title"},title.other),React.createElement("div",{className:"c-file-module__inner"},React.createElement("table",{className:"c-nested-table u-space-bottom-0 participaciones"},React.createElement("thead",null,React.createElement("tr",null,React.createElement("th",{className:"deno"},this.props.translations.product.razon_social),React.createElement("th",{className:"actions c-nested-table__fixed c-nested-table__fixed--small"}),this.state.columns.risk?React.createElement("th",{className:"rate c-nested-table__fixed  c-nested-table__fixed--small"},this.props.translations.product.riesgo):null,React.createElement("th",{className:"c-nested-table__fixed c-nested__center"},this.props.translations.product.nif_pais),this.state.columns.percentage?React.createElement("th",{className:"percentage c-nested-table__fixed c-nested-table__fixed--small"},this.props.translations.product.tanto_por_100):null,this.state.columns.level?React.createElement("th",{className:"c-nested-table__fixed c-nested__center"},this.props.translations.product.nivel):null,this.state.columns.cnae?React.createElement("th",{className:"c-nested-table__fixed c-nested__center c-nested-table__fixed--small"},this.props.translations.product.cnae):null,this.state.columns.council?React.createElement("th",{className:"c-nested-table__fixed c-nested__center c-nested-table__fixed--small"},this.props.translations.product.provincia):null,this.state.columns.source?React.createElement("th",{className:"c-nested-table__fixed c-nested__center c-nested-table__fixed--small"},this.props.translations.product.fuente):null)),React.createElement("tbody",null,rows))))},propTypes:{vincType:React.PropTypes.string.isRequired,selectedNode:React.PropTypes.any.isRequired,empresaId:React.PropTypes.number.isRequired,empresaName:React.PropTypes.string.isRequired,nodes:React.PropTypes.any.isRequired,translations:React.PropTypes.any.isRequired,riskLevel:React.PropTypes.number.isRequired,availableLevels:React.PropTypes.number.isRequired,filtersApplied:React.PropTypes.any.isRequired,urls:React.PropTypes.any.isRequired,fullTreeMode:React.PropTypes.bool.isRequired,canAddNewNodes:React.PropTypes.func.isRequired,afterAddNodes:React.PropTypes.func.isRequired,onLimitLevelsExceeded:React.PropTypes.func.isRequired,onUpdatePlainTree:React.PropTypes.func.isRequired,onHideNodes:React.PropTypes.func.isRequired,onAjaxError:React.PropTypes.func.isRequired,columns:React.PropTypes.any}});!function(t){function e(t,e){var n,o,s=[];for(n=0,o=t.length;n<o;++n)-1===i.call(e,t[n])&&s.push(t[n]);for(n=0,o=e.length;n<o;++n)-1===i.call(t,e[n])&&s.push(e[n]);return s}var i=Array.prototype.indexOf||function(t){var e,i;if(null==this)throw new TypeError("indexOf called on null or undefined");for(e=0,i=this.length;e<i;++e)if(this[e]===t)return e;return-1};"object"==typeof module&&module.exports?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):t.difference=e}(this),function(){for(var t,e=["assert","cd","clear","count","countReset","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","select","table","t
28ime","timeEnd","timeStamp","timeline","timelineEnd","trace","warn"],i=e.length,n=window.console=window.console||{},o=function(){};i--;)n[t=e[i]]||(n[t]=o)}(),String.prototype.capitalize=function(t){var e=(t?this.toLowerCase():this).replace(/(^|\s|\s\(|\/)\S/g,function(t){return t.toUpperCase()}),i=e.indexOf("(");return i>-1&&(e=e.substr(0,i+1)+e.charAt(i+1).toUpperCase()+e.substr(i+2,e.length)),e},String.prototype.removeAccents=function(){return[["\xe1","a"],["\xe9","e"],["\xed","i"],["\xf3","o"],["\xfa","u"],["\xc1","A"],["\xc9","E"],["\xcd","I"],["\xd3","O"],["\xda","U"]].reduce(function(t,e){return t.replace(e[0],e[1])},this)},String.prototype.matchUserInput=function(t){return this.toLowerCase().removeAccents().includes(t)},String.prototype.replaceAll=function(t,e){return this.replace(new RegExp(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),e)},Array.prototype.diff=function(t){return difference(this,t)},Array.prototype.locationOf=function(t,e,i,n){var o=this;if(0===o.length)return-1;var s=(i=i||0)+(n=n||o.length)>>1,r=e(t,o[s]);if(n-i<=1)return-1==r?s-1:s;switch(r){case-1:return o.locationOf(t,e,i,s);case 0:return s;case 1:return o.locationOf(t,e,s,n)}},Array.prototype.sortInsert=function(t,e){var i=this;return i.splice(i.locationOf(t,e)+1,0,t),i},function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.L={})}(this,function(t){"use strict";function e(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++)for(e in o=arguments[i])t[e]=o[e];return t}function i(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}function n(t){return t._leaflet_id=t._leaflet_id||++te,t._leaflet_id}function o(t,e,i){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(r,e),n=!0)}}function s(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function r(){return!1}function a(t,e){var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function l(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function c(t){return l(t).split(/\s+/)}function h(t,e){for(var i in t.hasOwnProperty("options")||(t.options=t.options?Jt(t.options):{}),e)t.options[i]=e[i];return t.options}function u(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}function d(t,e){return t.replace(ee,function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n})}function p(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}function f(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function m(t){var e=+new Date,i=Math.max(0,16-(e-oe));return oe=e+i,window.setTimeout(t,i)}function g(t,e,n){if(!n||se!==m)return se.call(window,i(t,e));t.call(e)}function v(t){t&&re.call(window,t)}function y(){}function _(t){if("undefined"!=typeof L&&L&&L.Mixin){t=ie(t)?t:[t];for(var e=0;e<t.length;
28e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}function b(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}function x(t,e,i){return t instanceof b?t:ie(t)?new b(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new b(t.x,t.y):new b(t,e,i)}function w(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function k(t,e){return!t||t instanceof w?t:new w(t,e)}function C(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function S(t,e){return t instanceof C?t:new C(t,e)}function P(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function T(t,e,i){return t instanceof P?t:ie(t)&&"object"!=typeof t[0]?3===t.length?new P(t[0],t[1],t[2]):2===t.length?new P(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new P(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new P(t,e,i)}function E(t,e,i,n){if(ie(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function A(t,e,i,n){return new E(t,e,i,n)}function M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function D(t,e){var i,n,o,s,r,a,l="";for(i=0,o=t.length;i<o;i++){for(n=0,s=(r=t[i]).length;n<s;n++)l+=(n?"L":"M")+(a=r[n]).x+" "+a.y;l+=e?Xe?"z":"x":""}return l||"M0 0"}function I(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function N(t,e,i,n){return"touchstart"===e?O(t,i,n):"touchmove"===e?B(t,i,n):"touchend"===e&&H(t,i,n),this}function R(t,e,i){var n=t["_leaflet_"+e+i];return"touchstart"===e?t.removeEventListener(Je,n,!1):"touchmove"===e?t.removeEventListener(ti,n,!1):"touchend"===e&&(t.removeEventListener(ei,n,!1),t.removeEventListener(ii,n,!1)),this}function O(t,e,n){var o=i(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(ni.indexOf(t.target.tagName)<0))return;Q(t)}j(t,e)});t["_leaflet_touchstart"+n]=o,t.addEventListener(Je,o,!1),si||(document.documentElement.addEventListener(Je,$,!0),
29document.documentElement.addEventListener(ti,F,!0),document.documentElement.addEventListener(ei,z,!0),document.documentElement.addEventListener(ii,z,!0),si=!0)}function $(t){oi[t.pointerId]=t,ri++}function F(t){oi[t.pointerId]&&(oi[t.pointerId]=t)}function z(t){delete oi[t.pointerId],ri--}function j(t,e){for(var i in t.touches=[],oi)t.touches.push(oi[i]);t.changedTouches=[t],e(t)}function B(t,e,i){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&j(t,e)};t["_leaflet_touchmove"+i]=n,t.addEventListener(ti,n,!1)}function H(t,e,i){var n=function(t){j(t,e)};t["_leaflet_touchend"+i]=n,t.addEventListener(ei,n,!1),t.addEventListener(ii,n,!1)}function W(t,e,i){function n(t){var e;if(Ue){if(!ke||"mouse"===t.pointerType)return;e=ri}else e=t.touches.length;if(!(e>1)){var i=Date.now(),n=i-(s||i);r=t.touches?t.touches[0]:t,a=n>0&&n<=l,s=i}}function o(t){if(a&&!r.cancelBubble){if(Ue){if(!ke||"mouse"===t.pointerType)return;var i,n,o={};for(n in r)i=r[n],o[n]=i&&i.bind?i.bind(r):i;r=o}r.type="dblclick",e(r),s=null}}var s,r,a=!1,l=250;return t[ci+ai+i]=n,t[ci+li+i]=o,t[ci+"dblclick"+i]=e,t.addEventListener(ai,n,!1),t.addEventListener(li,o,!1),t.addEventListener("dblclick",e,!1),this}function U(t,e){var i=t[ci+ai+e],n=t[ci+li+e],o=t[ci+"dblclick"+e];return t.removeEventListener(ai,i,!1),t.removeEventListener(li,n,!1),ke||t.removeEventListener("dblclick",o,!1),this}function Y(t,e,i,n){if("object"==typeof e)for(var o in e)q(t,o,e[o],i);else for(var s=0,r=(e=c(e)).length;s<r;s++)q(t,e[s],i,n);return this}function V(t,e,i,n){if("object"==typeof e)for(var o in e)Z(t,o,e[o],i);else if(e)for(var s=0,r=(e=c(e)).length;s<r;s++)Z(t,e[s],i,n);else{for(var a in t[hi])Z(t,a,t[hi][a]);delete t[hi]}return this}function q(t,e,i,o){var s=e+n(i)+(o?"_"+n(o):"");if(t[hi]&&t[hi][s])return this;var r=function(e){return i.call(o||t,e||window.event)},a=r;Ue&&0===e.indexOf("touch")?N(t,e,r,s):!Ye||"dblclick"!==e||!W||Ue&&Me?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onw
29heel"in t?"wheel":"mousewheel",r,!1):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,ot(t,e)&&a(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",r,!1)):("click"===e&&Se&&(r=function(t){st(t,a)}),t.addEventListener(e,r,!1)):"attachEvent"in t&&t.attachEvent("on"+e,r):W(t,r,s),t[hi]=t[hi]||{},t[hi][s]=r}function Z(t,e,i,o){var s=e+n(i)+(o?"_"+n(o):""),r=t[hi]&&t[hi][s];if(!r)return this;Ue&&0===e.indexOf("touch")?R(t,e,s):!Ye||"dblclick"!==e||!U||Ue&&Me?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",r,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,r,!1):"detachEvent"in t&&t.detachEvent("on"+e,r):U(t,s),t[hi][s]=null}function G(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,nt(t),this}function X(t){return q(t,"mousewheel",G),this}function K(t){return Y(t,"mousedown touchstart dblclick",G),q(t,"click",it),this}function Q(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function J(t){return Q(t),G(t),this}function tt(t,e){if(!e)return new b(t.clientX,t.clientY);var i=e.getBoundingClientRect(),n=i.width/e.offsetWidth||1,o=i.height/e.offsetHeight||1;return new b(t.clientX/n-i.left-e.clientLeft,t.clientY/o-i.top-e.clientTop)}function et(t){return ke?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/ui:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function it(t){di[t.type]=!0}function nt(t){var e=di[t.type];return di[t.type]=!1,e}function ot(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}function st(t,e){var i=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=fe&&i-fe;n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated?J(t):(fe=i,e(t))}function rt(t){return"string"==typeof t?document.getElementById(t):t}function at(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function lt(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function ct(t){var e=t.parentNode;e&&e.removeChild(t)}function ht(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ut(t){var e=t.parentNode;e.lastChild!==t&&e.appendChild(t)}function dt(t){var e=t.parentNode;e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function pt(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=vt(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function ft(t,e){if(void 0!==t.classList)for(var i=c(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!pt(t,e)){var s=vt(t);gt(t,(s?s+" ":"")+e)}}function mt(t,e){void 0!==t.classList?t.classList.remove(e):gt(t,l((" "+vt(t)+" ").replace(" "+e+" "," ")))}function gt(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function vt(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function yt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&_t(t,e)}function _t(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function bt(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function xt(t,e,i){var n=e||new b(0,0);t.style[fi]=(Oe?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function wt(t,e){t._leaflet_pos=e,ze?xt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function kt(t){return t._leaflet_pos||new b(0,0)}function Ct(){Y(window,"dragstart",Q)}function St(){V(window,"dragstart",Q)}function Pt(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Tt(),yi=t,_i=t.style.outline,t.style.outline="none",Y(window,"keydown",Tt))}function Tt(){yi&&(yi.style.outline=_i,yi=void 0,_i=void 0,V(window,"keydown",Tt))}function Et(t,e){if(!e||!t.length)return t.slice();var i=e*e;return Mt(t=Dt(t,i),i)}function At(t,e,i){return Math.sqrt($t(t,e,i,!0))}function Mt(t,e){var i=t.length,n=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(i);n[0]=n[i-1]=1,Lt(t,n,e,0,i-1);var o,s=[];for(o=0;o<i;o++)n[o]&&s.push(t[o]);return s}function Lt(t,e,i,n,o){var s,r,a,l=0;for(r=n+1;r<=o-1;r++)(a=$t(t[r],t[n],t[o],!0))>l&&(s=r,l=a);l>i&&(e[s]=1,Lt(t,e,i,n,s),Lt(t,e,i,s,o))}function Dt(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)Ot(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}function It(t,e,i,n,o){var s,r,a,l=n?Mi:Rt(t,i),c=Rt(e,i);for(Mi=c;;){if(!(l|c))return[t,e];if(l&c)return!1;a=Rt(r=Nt(t,e,s=l||c,i,o),i),s===l?(t=r,l=a):(e=r,c=a)}}function Nt(t,e,i,n,o){var s,r,a=e.x-t.x,l=e.y-t.y,c=n.min,h=n.max;return 8&i?(s=t.x+a*(h.y-t.y)/l,r=h.y):4&i?(s=t.x+a*(c.y-t.y)/l,r=c.y):2&i?(s=h.x,r=t.y+l*(h.x-t.x)/a):1&i&&
29(s=c.x,r=t.y+l*(c.x-t.x)/a),new b(s,r,o)}function Rt(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Ot(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function $t(t,e,i,n){var o,s=e.x,r=e.y,a=i.x-s,l=i.y-r,c=a*a+l*l;return c>0&&((o=((t.x-s)*a+(t.y-r)*l)/c)>1?(s=i.x,r=i.y):o>0&&(s+=a*o,r+=l*o)),a=t.x-s,l=t.y-r,n?a*a+l*l:new b(s,r)}function Ft(t){return!ie(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function zt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ft(t)}function jt(t,e,i){var n,o,s,r,a,l,c,h,u,d=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=Rt(t[o],e);for(r=0;r<4;r++){for(h=d[r],n=[],o=0,s=(c=t.length)-1;o<c;s=o++)a=t[o],l=t[s],a._code&h?l._code&h||((u=Nt(l,a,h,e,i))._code=Rt(u,e),n.push(u)):(l._code&h&&((u=Nt(l,a,h,e,i))._code=Rt(u,e),n.push(u)),n.push(a));t=n}return t}function Bt(t,e){var i,n,o,s,r="Feature"===t.type?t.geometry:t,a=r?r.coordinates:null,l=[],c=e&&e.pointToLayer,h=e&&e.coordsToLatLng||Ht;if(!a&&!r)return null;switch(r.type){case"Point":return i=h(a),c?c(t,i):new Xi(i);case"MultiPoint":for(o=0,s=a.length;o<s;o++)i=h(a[o]),l.push(c?c(t,i):new Xi(i));return new Vi(l);case"LineString":case"MultiLineString":return n=Wt(a,"LineString"===r.type?0:1,h),new tn(n,e);case"Polygon":case"MultiPolygon":return n=Wt(a,"Polygon"===r.type?1:2,h),new en(n,e);case"GeometryCollection":for(o=0,s=r.geometries.length;o<s;o++){var u=Bt({geometry:r.geometries[o],type:"Feature",properties:t.properties},e);u&&l.push(u)}return new Vi(l);default:throw new Error("Invalid GeoJSON object.")}}function Ht(t){return new P(t[1],t[0],t[2])}function Wt(t,e,i){for(var n,o=[],s=0,r=t.length;s<r;s++)n=e?Wt(t[s],e-1,i):(i||Ht)(t[s]),o.push(n);return o}function Ut(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[a(t.lng,e),a(t.lat,e),a(t.alt,e)]:[a(t.lng,e),a(t.lat,e)]}function Yt(t,e,i,n){for(var o=[],s=0,r=t.length;s<r;s++)o.push(e?Yt(t[s],e-1,i,n):Ut(t[s],n));return!e&&i&&o.push(o[0]),o}function Vt(t,i){return t.feature?e({},t.feature,{geometry:i}):qt(i)}function qt(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function Zt(t,e){return new nn(t,e)}function Gt(t,e){return new pn(t,e)}function Xt(t){return Ge?new gn(t):null}function Kt(t){return Xe||Ke?new bn(t):null}var Qt=Object.freeze;Object.freeze=function(t){return t};var Jt=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}(),te=0,ee=/\{ *([\w_-]+) *\}/g,ie=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},ne="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",oe=0,se=window.requestAnimationFrame||f("RequestAnimationFrame")||m,re=window.cancelAnimationFrame||f("CancelAnimationFrame")||f("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},ae=(Object.freeze||Object)({freeze:Qt,extend:e,create:Jt,bind:i,lastId:te,stamp:n,throttle:o,wrapNum:s,falseFn:r,formatNum:a,trim:l,splitWords:c,setOptions:h,getParamString:u,template:d,isArray:ie,indexOf:p,emptyImageUrl:ne,requestFn:se,cancelFn:re,requestAnimFrame:g,cancelAnimFrame:v});y.extend=function(t){var i=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=i.__super__=this.prototype,o=Jt(n);for(var s in o.constructor=i,i.prototype=o,this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(i[s]=this[s]);return t.statics&&(e(i,t.statics),delete t.statics),t.includes&&(_(t.includes),e.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=e(Jt(o.options),t.options)),e(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},i},y.include=function(t){return e(this.prototype,t),this},y.mergeOptions=function(t){return e(this.prototype.options,t),this},y.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};
29var le={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else for(var o=0,s=(t=c(t)).length;o<s;o++)this._on(t[o],e,i);return this},off:function(t,e,i){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else for(var o=0,s=(t=c(t)).length;o<s;o++)this._off(t[o],e,i);else delete this._events;return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var o={fn:e,ctx:i},s=n,r=0,a=s.length;r<a;r++)if(s[r].fn===e&&s[r].ctx===i)return;s.push(o)},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t]))if(e){if(i===this&&(i=void 0),n)for(o=0,s=n.length;o<s;o++){var a=n[o];if(a.ctx===i&&a.fn===e)return a.fn=r,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}else{for(o=0,s=n.length;o<s;o++)n[o].fn=r;delete this._events[t]}},fire:function(t,i,n){if(!this.listens(t,n))return this;var o=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var r=0,a=s.length;r<a;r++){var l=s[r];l.fn.call(l.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],e);return this}var s=i(function(){this.off(t,e,n).off(t,s,n)},this);return this.on(t,e,n).on(t,s,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};le.addEventListener=le.on,le.removeEventListener=le.clearAllEventListeners=le.off,le.addOneTimeEventListener=le.once,le.fireEvent=le.fire,le.hasEventListeners=le.listens;var ce=y.extend(le),he=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};b.prototype={clone:function(){return new b(this.x,this.y)},add:function(t){return this.clone()._add(x(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(x(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new b(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new b(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=he(this.x),this.y=he(this.y),this},distanceTo:function(t){var e=(t=x(t)).x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return(t=x(t)).x===this.x&&t.y===this.y},contains:function(t){return t=x(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+a(this.x)+", "+a(this.y)+")"}},w.prototype={extend:function(t){return t=x(t),this.min||this.max?(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(t.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(t.y,this.max.y)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new b((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new b(this.min.x,this.max.y)},getTopRight:function(){return new b(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return(t="number"==typeof t[0]||t instanceof b?x(t):k(t))instanceof w?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=k(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,r=o.y>=e.y&&n.y<=i.y;return s&&r},overlaps:function(t){t=k(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,r=o.y>e.y&&n.y<i.y;return s&&r},isValid:function(){return!(!this.min||!this.max)}},C.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof P)e=t,i=t;else{if(!(t instanceof C))return t?this.extend(T(t)||S(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new P(e.lat,e.lng),this._northEast=new P(i.lat,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new C(new P(e.lat-n,e.lng-o),new P(i.lat+n,i.lng+o))},getCenter:function(){return new P((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new P(this.getNorth(),this.getWest())},getSouthEast:function(){return new P(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,436 bytes, line 29
29,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof P||"lat"in t?T(t):S(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof C?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=S(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,r=o.lng>=e.lng&&n.lng<=i.lng;return s&&r},overlaps:function(t){t=S(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,r=o.lng>e.lng&&n.lng<i.lng;return s&&r},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=S(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},P.prototype={equals:function(t,e){return!!t&&(t=T(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+a(this.lat,t)+", "+a(this.lng,t)+")"},distanceTo:function(t){return de.distance(this,T(t))},wrap:function(){return de.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return S([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new P(this.lat,this.lng,this.alt)}};var ue={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t);return new w(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng;return new P(this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;
29var s=t.getSouthWest(),r=t.getNorthEast();return new C(new P(s.lat-n,s.lng-o),new P(r.lat-n,r.lng-o))}},de=e({},ue,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),r=Math.sin((e.lng-t.lng)*i/2),a=s*s+Math.cos(n)*Math.cos(o)*r*r,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}}),pe={R:6378137,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new b(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new P((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=6378137*Math.PI;return new w([-t,-t],[t,t])}()};E.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new b((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var fe,me,ge,ve,ye=e({},de,{code:"EPSG:3857",projection:pe,transformation:function(){var t=.5/(Math.PI*pe.R);return A(t,.5,-t,.5)}()}),_e=e({},ye,{code:"EPSG:900913"}),be=document.documentElement.style,xe="ActiveXObject"in window,we=xe&&!document.addEventListener,ke="msLaunchUri"in navigator&&!("documentMode"in document),Ce=I("webkit"),Se=I("android"),Pe=I("android 2")||I("android 3"),Te=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ee=Se&&I("Google")&&Te<537&&!("AudioNode"in window),Ae=!!window.opera,Me=I("chrome"),Le=I("gecko")&&!Ce&&!Ae&&!xe,De=!Me&&I("safari"),Ie=I("phantom"),Ne="OTransition"in be,Re=0===navigator.platform.indexOf("Win"),Oe=xe&&"transition"in be,$e="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Pe,Fe="MozPerspective"in be,ze=!window.L_DISABLE_3D&&(Oe||$e||Fe)&&!Ne&&!Ie,je="undefined"!=typeof orientation||I("mobile"),Be=je&&Ce,He=je&&$e,We=!window.PointerEvent&&window.MSPointerEvent,Ue=!(!window.PointerEvent&&!We),Ye=!window.L_NO_TOUCH&&(Ue||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),Ve=je&&Ae,qe=je&&Le,Ze=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ge=!!document.createElement("canvas").getContext,Xe=!(!document.createElementNS||!M("svg").createSVGRect),Ke=!Xe&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Qe=(Object.freeze||Object)({ie:xe,ielt9:we,edge:ke,webkit:Ce,android:Se,android23:Pe,androidStock:Ee,opera:Ae,chrome:Me,gecko:Le,safari:De,phantom:Ie,opera12:Ne,win:Re,ie3d:Oe,webkit3d:$e,gecko3d:Fe,any3d:ze,mobile:je,mobileWebkit:Be,mobileWebkit3d:He,msPointer:We,pointer:Ue,touch:Ye,mobileOpera:Ve,mobileGecko:qe,retina:Ze,canvas:Ge,svg:Xe,vml:Ke}),Je=We?"MSPointerDown":"pointerdown",ti=We?"MSPointerMove":"pointermove",ei=We?"MSPointerUp":"pointerup",ii=We?"MSPointerCancel":"pointercancel",ni=["INPUT","SELECT","OPTION"],oi={},si=!1,ri=0,ai=We?"MSPointerDown":Ue?"pointerdown":"touchstart",li=We?"MSPointerUp":Ue?"pointerup":"touchend",ci="_leaflet_",hi="_leaflet_events",ui=Re&&Me?2*window.devicePixelRatio:Le?window.devicePixelRatio:1,di={},pi=(Object.freeze||Object)({on:Y,off:V,stopPropagation:G,disableScrollPropagation:X,disableClickPropagation:K,preventDefault:Q,stop:J,getMousePosition:tt,getWheelDelta:et,fakeStop:it,skipped:nt,isExternalTarget:ot,addListener:Y,removeListener:V}),fi=bt(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),mi=bt(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),gi="webkitTransition"===mi||"OTransition"===mi?mi+"End":"transitionend";if("onselectstart"in document)me=function(){Y(window,"selectstart",Q)},ge=function(){V(window,"selectstart",Q)};else{var vi=bt(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);me=function(){if(vi){var t=document.documentElement.style;ve=t[vi],t[vi]="none"}},ge=function(){vi&&(document.documentElement.style[vi]=ve,ve=void 0)}}var yi,_i,bi=(Object.freeze||Object)({TRANSFORM:fi,TRANSITION:mi,TRANSITION_END:gi,get:rt,getStyle:at,create:lt,remove:ct,empty:ht,toFront:ut,toBack:dt,hasClass:pt,addClass:ft,removeClass:mt,setClass:gt,getClass:vt,setOpacity:yt,testProp:bt,setTransform:xt,setPosition:wt,getPosition:kt,disableTextSelection:me,enableTextSelection:ge,disableImageDrag:Ct,enableImageDrag:St,preventOutline:Pt,restoreOutline:Tt}
vendor: 2,989 bytes, line 29
29),xi=ce.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=kt(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=g(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),wt(this._el,i),this.fire("step")},_complete:function(){v(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),wi=ce.extend({options:{crs:ye,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=h(this,e),this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(T(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=mi&&ze&&!Ve&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Y(this._proxy,gi,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,n){return i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(T(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n&&(void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan)),this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,i),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(ze?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(ze?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=(t instanceof b?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(s));return this.setView(r,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():S(t);var i=x(e.paddingTopLeft||e.padding||[0,0]),n=x(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};
29var s=n.subtract(i).divideBy(2),r=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o);return{center:this.unproject(r.add(a).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,e){if(!(t=S(t)).isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=x(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new xi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){ft(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){function n(t){var e=(v*v-m*m+(t?-1:1)*b*b*y*y)/(2*(t?v:m)*b*y),i=Math.sqrt(e*e+1)-e;return i<1e-9?-18:Math.log(i)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function r(t){return o(t)/s(t)}function a(t){return m*(s(x)/s(x+_*t))}function l(t){return m*(s(x)*r(x+_*t)-o(x))/b}function c(t){return 1-Math.pow(1-t,1.5)}function h(){var i=(Date.now()-w)/C,n=c(i)*k;i<=1?(this._flyToFrame=g(h,this),this._move(this.unproject(u.add(d.subtract(u).multiplyBy(l(n)/y)),f),this.getScaleZoom(m/a(n),f),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}if(!1===(i=i||{}).animate||!ze)return this.setView(t,e,i);this._stop();var u=this.project(this.getCenter()),d=this.project(t),p=this.getSize(),f=this._zoom;t=T(t),e=void 0===e?f:e;var m=Math.max(p.x,p.y),v=m*this.getZoomScale(f,e),y=d.distanceTo(u)||1,_=1.42,b=_*_,x=n(0),w=Date.now(),k=(n(1)-x)/_,C=i.duration?1e3*i.duration:1e3*k*.8;return this._moveStart(!0,i.noMoveStart),h.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return(t=S(t)).isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,S(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),r=o.divideBy(2).round(),a=s.subtract(r);return a.x||a.y?(t.animate&&t.pan?this.panBy(a):(t.pan&&this._rawPanBy(a),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=new P(t.coords.latitude,t.coords.longitude),i=e.toBounds(t.coords.accuracy),n=this._locateOptions;if(n.setView){var o=this.getBoundsZoom(i);this.setView(e,n.maxZoom?Math.min(o,n.maxZoom):o)}var s={latlng:e,bounds:i,timestamp:t.timestamp};for(var r in t.coords)"number"==typeof t.coords[r]&&(s[r]=t.coords[r]);this.fire("locationfound",s)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ct(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ct(this._panes[t])
30;return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i=lt("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=i),i},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new C(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZo
30om?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=S(t),i=x(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),r=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),c=k(this.project(a,n),this.project(r,n)).getSize(),h=ze?this.options.zoomSnap:1,u=l.x/c.x,d=l.y/c.y,p=e?Math.max(u,d):Math.min(u,d);return n=this.getScaleZoom(p,n),h&&(n=Math.round(n/(h/100))*(h/100),n=e?Math.ceil(n/h)*h:Math.floor(n/h)*h),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new w(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(T(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(x(t),e)},layerPointToLatLng:function(t){var e=x(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(T(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(T(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(S(t))},distance:function(t,e){return this.options.crs.distance(T(t),T(e))},containerPointToLayerPoint:function(t){return x(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return x(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(x(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(T(t)))},mouseEventToContainerPoint:function(t){return tt(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=rt(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Y(e,"scroll",this._onScroll,this),this._containerId=n(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&ze,ft(t,"leaflet-container"+(Ye?" leaflet-touch":"")+(Ze?" leaflet-retina":"")+(we?" leaflet-oldie":"")+(De?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=at(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),wt(this._mapPane,new b(0,0)),this.createPane("tilePane"),this.createPane("shadowPane"),this.createPane("overlayPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ft(t.markerPane,"leaflet-zoom-hide"),ft(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e){wt(this._mapPane,new b(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,!1)._move(t,e)._moveEnd(n),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),(n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return v(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){wt(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[n(this._container)]=this;var e=t?V:Y;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),ze&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){v(this._resizeRequest),this._resizeRequest=g(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,o=[],s="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,a=!1;r;){if((i=this._targets[n(r)])&&("click"===e||"preclick"===e)&&!t._simulated&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(s&&!ot(r,t))break;if(o.push(i),s)break}if(r===this._container)break;r=r.parentNode}return o.length||a||s||!ot(r,t)||(o=[this]),o},_handleDOMEvent:function(t){if(this._loaded&&!nt(t)){var e=t.type;"mousedown"!==e&&"keypress"!==e||Pt(t.target||t.srcElement),this._fireDOMEvent(t,e)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,i,n){if("click"===t.type){var o=e({},t);o.type="preclick",this._fireDOMEvent(o,o.type,n)}if(!t._stopped&&(n=(n||[]).concat(this._findEventTargets(t,i))).length){var s=n[0];"contextmenu"===i&&s.listens(i,!0)&&Q(t);var r={originalEvent:t};if("keypress"!==t.type){var a=s.getLatLng&&(!s._radius||s._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(s.getLatLng()):this.mouseEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?s.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(var l=0;l<n.length;l++)if(n[l].fire(i,r,!0),r.originalEvent._stopped||!1===n[l].options.bubblingMouseEvents&&-1!==p(this._mouseEvents,i))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return kt(this._mapPane)||new b(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()}
30,_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return k([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),s=new w(n.subtract(o),n.add(o)),r=this._getBoundsOffset(s,i,e);return r.round().equals([0,0])?t:this.unproject(n.add(r),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new w(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=k(this.project(e.getNorthEast(),i),this.project(e.getSouthWest
30(),i)),o=n.min.subtract(t.min),s=n.max.subtract(t.max);return new b(this._rebound(o.x,-s.x),this._rebound(o.y,-s.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=ze?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mt(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(i)||(this.panBy(i,e),0))},_createAnimProxy:function(){var t=this._proxy=lt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(t){var e=fi,i=this._proxy.style[e];xt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),i===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",function(){var t=this.getCenter(),e=this.getZoom();xt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ct(this._proxy),delete this._proxy},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return!(!0!==i.animate&&!this.getSize().contains(o)||(g(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),0))},_animateZoom:function(t,e,n,o){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,ft(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&mt(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom),g(function(){this._moveEnd(!0)},this))}}),ki=y.extend({options:{position:"topright"},initialize:function(t){h(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return ft(e,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(e,n.firstChild):n.appendChild(e),this},remove:function(){return this._map?(ct(this._container),this.onRemove&&this.onRemove(this._map),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ci=function(t){return new ki(t)};wi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){function t(t,o){var s=i+t+" "+i+o;e[t+o]=lt("div",s,n)}var e=this._controlCorners={},i="leaflet-",n=this._controlContainer=lt("div",i+"control-container",this._container);t("top","left"),t("top","right"),t("bottom","left"),t("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ct(this._controlCorners[t]);ct(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Si=ki.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){for(var n in h(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return ki.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(n(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){ft(this._container,"leaflet-control-layers-expanded"),this._form.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._form.clientHeight?(ft(this._form,"leaflet-control-layers-scrollbar"),this._form.style.height=t+"px"):mt(this._form,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return mt(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=lt("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),K(e),X(e);var n=this._form=lt("form",t+"-list");i&&(this._map.on("click",this.collapse,this),Se||Y(e,{mouseenter:this.expand,mouseleave:this.collapse},this));var o=this._layersLink=lt("a",t+"-toggle",e);o.href="#",o.title="Layers",Ye?(Y(o,"click",J),Y(o,"click",this.expand,this)):Y(o,"focus",this.expand,this),i||this.expand(),this._baseLayersList=lt("div",t+"-base",n),this._separator=lt("div",t+"-separator",n),this._overlaysList=lt("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&n(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}
30,this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ht(this._baseLayersList),ht(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(n(t.target)),i=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e,i=document.createElement("label"),o=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers",o),this._layerControlInputs.push(e),e.layerId=n(t.layer),Y(e,"click",this._onInputClick,this);var s=document.createElement("span");s.innerHTML=" "+t.name;var r=document.createElement("div");return i.appendChild(r),r.appendChild(e),r.appendChild(s),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){var t,e,i=this._layerControlInputs,n=[],o=[];this._handlingClick=!0;for(var s=i.length-1;s>=0;s--)t=i[s],e=this._getLayer(t.layerId).layer,t.checked?n.push(e):t.checked||o.push(e);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,i=this._layerControlInputs,n=this._map.getZoom(),o=i.length-1;o>=0;o--)t=i[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&n<e.options.minZoom||void 0!==e.options.maxZoom&&n>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}}),Pi=ki.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"&#x2212;",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=lt("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=lt("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),K(s),Y(s,"click",J),Y(s,"click",o,this),Y(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";mt(this._zoomInButton,e),mt(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMinZoom())&&ft(this._zoomOutButton,e),(this._disabled||t._zoom===t.getMaxZoom())&&ft(this._zoomInButton,e)}});wi.mergeOptions({zoomControl:!0}),wi.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Pi,this.addControl(this.zoomControl))});var Ti=ki.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e=lt("div","leaflet-control-scale"),i=this.options;return this._addScales(i,"leaflet-control-scale-line",e),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),e},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)}
30,_addScales:function(t,e,i){t.metric&&(this._mScale=lt("div",e,i)),t.imperial&&(this._iScale=lt("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e,i,n,o=3.2808399*t;o>5280?(e=o/5280,i=this._getRoundNum(e),this._updateScale(this._iScale,i+" mi",i/e)):(n=this._getRoundNum(o),this._updateScale(this._iScale,n+" ft",n/o))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return e*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1)}}),Ei=ki.extend({options:{position:"bottomright",prefix:'<a href="http://leafletjs.com" title="A JS library for interactive maps">Leaflet</a>'},initialize:function(t){h(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=lt("div","leaflet-control-attribution"),K(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),this._container},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(" | ")}}});wi.mergeOptions({attributionControl:!0}),wi.addInitHook(function(){this.options.attributionControl&&(new Ei).addTo(this)}),ki.Layers=Si,ki.Zoom=Pi,ki.Scale=Ti,ki.Attribution=Ei,Ci.layers=function(t,e,i){return new Si(t,e,i)},Ci.zoom=function(t){return new Pi(t)},Ci.scale=function(t){return new Ti(t)},Ci.attribution=function(t){return new Ei(t)};var Ai=y.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Ai.addTo=function(t,e){return t.addHandler(e,this),this};var Mi,Li={Events:le},Di=Ye?"touchstart mousedown":"mousedown",Ii={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"},Ni={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"},Ri=ce.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){h(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(Y(this._dragStartTarget,Di,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ri._dragging===this&&this.finishDrag(),V(this._dragStartTarget,Di,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(!t._simulated&&this._enabled&&(this._moved=!1,!pt(this._element,"leaflet-zoom-anim")&&!(Ri._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(Ri._dragging=this,this._preventOutline&&Pt(this._element),Ct(),me(),this._moving)))){this.fire("down");var e=t.touches?t.touches[0]:t;this._startPoint=new b(e.clientX,e.clientY),Y(document,Ni[t.type],this._onMove,this),Y(document,Ii[t.type],this._onUp,this)}},_onMove:function(t){if(!t._simulated&&this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,i=new b(e.clientX,e.clientY).subtract(this._startPoint);(i.x||i.y)&&(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(Q(t),this._moved||(this.fire("dragstart"),this._moved=!0,this._startPos=kt(this._element).subtract(i),ft(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ft(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,v(this._animRequest),this._lastEvent=t,this._animRequest=g(this._updatePosition,this,!0)))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),wt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(t){!t._simulated&&this._enabled&&this.finishDrag()},finishDrag:function(){for(var t in mt(document.body,"leaflet-dragging"),this._lastTarget&&(mt(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ni)V(document,Ni[t],this._onMove,this),V(document,Ii[t],this._onUp,this);St(),ge(),this._moved&&this._moving&&(v(this._animRequest),this.fire("dragend",{distance:this._newPos.distanceTo(this._startPos)})),this._moving=!1,Ri._dragging=!1}}),Oi=(Object.freeze||Object)({simplify:Et,pointToSegmentDistance:At,closestPointOnSegment:function(t,e,
30i){return $t(t,e,i)},clipSegment:It,_getEdgeIntersection:Nt,_getBitCode:Rt,_sqClosestPointOnSegment:$t,isFlat:Ft,_flat:zt}),$i=(Object.freeze||Object)({clipPolygon:jt}),Fi={project:function(t){return new b(t.lng,t.lat)},unproject:function(t){return new P(t.y,t.x)},bounds:new w([-180,-90],[180,90])},zi={R:6378137,R_MINOR:6356752.314245179,bounds:new w([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),r=s*Math.sin(n),a=Math.tan(Math.PI/4-n/2)/Math.pow((1-r)/(1+r),s/2);return n=-i*Math.log(Math.max(a,1e-10)),new b(t.lng*e*i,n)},unproject:function(t){for(var e,i=180/Math.PI,n=this.R,o=this.R_MINOR/n,s=Math.sqrt(1-o*o),r=Math.exp(-t.y/n),a=Math.PI/2-2*Math.atan(r),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=s*Math.sin(a),e=Math.pow((1-e)/(1+e),s/2),a+=c=Math.PI/2-2*Math.atan(r*e)-a;return new P(a*i,t.x*i/n)}},ji=(Object.freeze||Object)({LonLat:Fi,Mercator:zi,SphericalMercator:pe}),Bi=e({},de,{code:"EPSG:3395",projection:zi,transformation:function(){var t=.5/(Math.PI*zi.R);return A(t,.5,-t,.5)}()}),Hi=e({},de,{code:"EPSG:4326",projection:Fi,transformation:A(1/180,1,-1/180,.5)}),Wi=e({},ue,{projection:Fi,transformation:A(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});ue.Earth=de,ue.EPSG3395=Bi,ue.EPSG3857=ye,ue.EPSG900913=_e,ue.EPSG4326=Hi,ue.Simple=Wi;var Ui=ce.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[n(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[n(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.getAttribution&&e.attributionControl&&e.attributionControl.addAttribution(this.getAttribution()),this.fire("add"),e.fire("layeradd",{layer:this})}}});wi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=n(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=n(t);return this._layers[e]?(this._loaded&&t.onRemove(this),t.getAttribution&&this.attributionControl&&this.attributionControl.removeAttribution(t.getAttribution()),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return!!t&&n(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?ie(t)?t:[t]:[]).length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){!isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[n(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=n(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Yi=Ui.extend({initialize:function(t,e){var i,n;if(h(this,e),this._layers={},t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return!!t&&(t in this._layers||this.getLayerId(t)in this._layers)},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,i,n=Array.prototype.slice.call(arguments,1
30);for(e in this._layers)(i=this._layers[e])[t]&&i[t].apply(i,n);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return n(t)}}),Vi=Yi.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Yi.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Yi.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new C;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),qi=y.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0]},initialize:function(t){h(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(n,t),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=x(n),s=x("shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ze&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),Zi=qi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return Zi.imagePath||(Zi.imagePath=this._detectIconPath()),(this.options.imagePath||Zi.imagePath)+qi.prototype._getIconUrl.call(this,t)},
31_detectIconPath:function(){var t=lt("div","leaflet-default-icon-path",document.body),e=at(t,"background-image")||at(t,"backgroundImage");return document.body.removeChild(t),null===e||0!==e.indexOf("url")?"":e.replace(/^url\(["']?/,"").replace(/marker-icon\.png["']?\)$/,"")}}),Gi=Ai.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Ri(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ft(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&mt(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=L.DomUtil.getPosition(e._icon),r=i.getPixelBounds(),a=i.getPixelOrigin(),l=k(r.min._subtract(a).add(o),r.max._subtract(a).subtract(o));if(!l.contains(s)){var c=x((Math.max(l.max.x,s.x)-l.max.x)/(r.max.x-l.max.x)-(Math.min(l.min.x,s.x)-l.min.x)/(r.min.x-l.min.x),(Math.max(l.max.y,s.y)-l.max.y)/(r.max.y-l.max.y)-(Math.min(l.min.y,s.y)-l.min.y)/(r.min.y-l.min.y)).multiplyBy(n);i.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),L.DomUtil.setPosition(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=g(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup().fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(v(this._panRequest),this._panRequest=g(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=kt(e._icon),o=e._map.layerPointToLatLng(n);i&&wt(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){v(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),Xi=Ui.extend({options:{icon:new Zi,interactive:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10,keyboard:!0,title:"",alt:"",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",bubblingMouseEvents:!1},initialize:function(t,e){h(this,e),this._latlng=T(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=T(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName&&(i.alt=t.alt||"")),ft(i,e),t.keyboard&&(i.tabIndex="0"),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex});var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(ft(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane("shadowPane").appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),ct(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ct(this._shadow),this._shadow=null},_setPos:function(t){wt(this._icon,t),this._shadow&&wt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon.style.zIndex=this._zIndex+t},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(ft(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Gi)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Gi(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;yt(this._icon,t),this._shadow&&yt(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}}),Ki=Ui.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
31illRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return h(this,t),this._renderer&&this._renderer._updateStyle(this),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+this._renderer.options.tolerance}}),Qi=Ki.extend({options:{fill:!0,radius:10},initialize:function(t,e){h(this,e),this._latlng=T(t),this._radius=this.options.radius},setLatLng:function(t){return this._latlng=T(t),this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
31,setStyle:function(t){var e=t&&t.radius||this._radius;return Ki.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new w(this._point.subtract(n),this._point.add(n))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),Ji=Qi.extend({initialize:function(t,i,n){if("number"==typeof i&&(i=e({},n,{radius:i})),h(this,i),this._latlng=T(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new C(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ki.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===de.distance){var o=Math.PI/180,s=this._mRadius/de.R/o,r=i.project([e+s,t]),a=i.project([e-s,t]),l=r.add(a).divideBy(2),c=i.unproject(l).lat,h=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(h)||0===h)&&(h=s/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(h)?0:l.x-i.project([c,t-h]).x,this._radiusY=l.y-r.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}}),tn=Ki.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){h(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,i,n=1/0,o=null,s=$t,r=0,a=this._parts.length;r<a;r++)for(var l=this._parts[r],c=1,h=l.length;c<h;c++){var u=s(t,e=l[c-1],i=l[c],!0);u<n&&(n=u,o=s(t,e,i))}return o&&(o.distance=Math.sqrt(n)),o}
31,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,s,r,a=this._rings[0],l=a.length;if(!l)return null;for(t=0,e=0;t<l-1;t++)e+=a[t].distanceTo(a[t+1])/2;if(0===e)return this._map.layerPointToLatLng(a[0]);for(t=0,n=0;t<l-1;t++)if(o=a[t],s=a[t+1],(n+=i=o.distanceTo(s))>e)return r=(n-e)/i,this._map.layerPointToLatLng([s.x-r*(s.x-o.x),s.y-r*(s.y-o.y)])},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=T(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new C,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Ft(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=Ft(t),n=0,o=t.length;n<o;n++)i?(e[n]=T(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new w;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t);var e=this._clickTolerance(),i=new b(e,e);this._bounds.isValid()&&t.isValid()&&(t.min._subtract(i),t.max._add(i),this._pxBounds=t)},_projectLatlngs:function(t,e,i){var n,o,s=t[0]instanceof P,r=t.length;if(s){for(o=[],n=0;n<r;n++)o[n]=this._map.latLngToLayerPoint(t[n]),i.extend(o[n]);e.push(o)}else for(n=0;n<r;n++)this._projectLatlngs(t[n],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,i,n,o,s,r,a,l=this._parts;for(e=0,n=0,o=this._rings.length;e<o;e++)for(i=0,s=(a=this._rings[e]).length;i<s-1;i++)(r=It(a[i],a[i+1],t,i,!0))&&(l[n]=l[n]||[],l[n].push(r[0]),r[1]===a[i+1]&&i!==s-2||(l[n].push(r[1]),n++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Et(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,s,r,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(n=0,o=(r=(a=this._parts[i]).length)-1;n<r;o=n++)if((e||0!==n)&&At(t,a[o],a[n])<=l)return!0;return!1}});tn._flat=zt;var en=tn.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length}
vendor: 9,399 bytes, line 31
31,getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");var t,e,i,n,o,s,r,a,l,c=this._rings[0],h=c.length;if(!h)return null;for(s=r=a=0,t=0,e=h-1;t<h;e=t++)i=c[t],n=c[e],o=i.y*n.x-n.y*i.x,r+=(i.x+n.x)*o,a+=(i.y+n.y)*o,s+=3*o;return l=0===s?c[0]:[r/s,a/s],this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=tn.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof P&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){tn.prototype._setLatLngs.call(this,t),Ft(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Ft(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new b(e,e);if(t=new w(t.min.subtract(i),t.max.add(i)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var n,o=0,s=this._rings.length;o<s;o++)(n=jt(this._rings[o],t,!0)).length&&this._parts.push(n)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,i,n,o,s,r,a,l,c=!1;if(!this._pxBounds.contains(t))return!1;for(o=0,a=this._parts.length;o<a;o++)for(s=0,r=(l=(e=this._parts[o]).length)-1;s<l;r=s++)i=e[s],n=e[r],i.y>t.y!=n.y>t.y&&t.x<(n.x-i.x)*(t.y-i.y)/(n.y-i.y)+i.x&&(c=!c);return c||tn.prototype._containsPoint.call(this,t,!0)}}),nn=Vi.extend({initialize:function(t,e){h(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,n,o=ie(t)?t:t.features;if(o){for(e=0,i=o.length;e<i;e++)((n=o[e]).geometries||n.geometry||n.features||n.coordinates)&&this.addData(n);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var r=Bt(t,s);return r?(r.feature=qt(t),r.defaultOptions=r.options,this.resetStyle(r),s.onEachFeature&&s.onEachFeature(t,r),this.addLayer(r)):this},resetStyle:function(t){return t.options=e({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){"function"==typeof e&&(e=e(t.feature)),t.setStyle&&t.setStyle(e)}}),on={toGeoJSON:function(t){return Vt(this,{type:"Point",coordinates:Ut(this.getLatLng(),t)})}};Xi.include(on),Ji.include(on),Qi.include(on),tn.include({toGeoJSON:function(t){var e=!Ft(this._latlngs);return Vt(this,{type:(e?"Multi":"")+"LineString",coordinates:Yt(this._latlngs,e?1:0,!1,t)})}}),en.include({toGeoJSON:function(t){var e=!Ft(this._latlngs),i=e&&!Ft(this._latlngs[0]),n=Yt(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Vt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),Yi.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Vt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var i="GeometryCollection"===e,n=[];return this.eachLayer(function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i)n.push(o.geometry);else{var s=qt(o);"FeatureCollection"===s.type?n.push.apply(n,s.features):n.push(s)}}}),i?Vt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});var sn=Zt,rn=Ui.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=S(e),h(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ft(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ct(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ut(this._image),this},bringToBack:function(){return this._map&&dt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=S(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:lt("img");ft(e,"leaflet-image-layer"),this._zoomAnimated&&ft(e,"leaflet-zoom-animated"),this.options.className&&ft(e,this.options.className),e.onselectstart=r,e.onmousemove=r,e.onload=i(this.fire,this,"load"),e.onerror=i(this._overlayOnError,this,"error"),this.options.crossOrigin&&(e.crossOrigin=""),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;xt(this._image,i,e)},_reset:function(){var t=this._image,e=new w(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();wt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){yt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}}),an=rn.extend({options:{autoplay:!0,loop:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:lt("video");if(ft(e,"leaflet-image-layer"),this._zoomAnimated&&ft(e,"leaflet-zoom-animated"),e.onselectstart=r,e.onmousemove=r,e.onloadeddata=i(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),o=[],s=0;s<n.length;s++)o.push(n[s].src);this._url=n.length>0?o:[e.src]}else{ie(this._url)||(this._url=[this._url]),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop;for(var a=0;a<this._url.length;a++){var l=lt("source");l.src=this._url[a],e.appendChild(l)}}}}),ln=Ui.extend({options:{offset:[0,7],className:"",pane:"popupPane"},initialize:function(t,e){h(this,t),this._source=e},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&yt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&yt(this._container,1),this.bringToFront()},onRemove:function(t){t._fadeAnimated?(yt(this._container,0),this._removeTimeout=setTimeout(i(ct,void 0,this._container),200)):ct(this._container)},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=T(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ut(this._container),this},bringToBack:function(){return this._map&&dt(this._container),this},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=x(this.options.offset),i=this._getAnchor();this._zoomAnimated?wt(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}}),cn=ln.extend({options:{maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return t.openPopup(this),this},onAdd:function(t){ln.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ki||this._source.on("preclick",G))},onRemove:function(t){ln.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ki||this._source.off("preclick",G))},getEvents:function(){var t=ln.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this._close),this.options.keepInView&&
31(t.moveend=this._adjustPan),t},_close:function(){this._map&&this._map.closePopup(this)},_initLayout:function(){var t="leaflet-popup",e=this._container=lt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=lt("div",t+"-content-wrapper",e);if(this._contentNode=lt("div",t+"-content",i),K(i),X(this._contentNode),Y(i,"contextmenu",G),this._tipContainer=lt("div",t+"-tip-container",e),this._tip=lt("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=lt("a",t+"-close-button",e);n.href="#close",n.innerHTML="&#215;",Y(n,"click",this._onCloseButtonClick,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight;o&&n>o?(e.height=o+"px",ft(t,"leaflet-popup-scrolled")):mt(t,"leaflet-popup-scrolled"),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();wt(this._container,e.add(i))},_adjustPan:function(){if(!(!this.options.autoPan||this._map._panAnim&&this._map._panAnim._inProgress)){var t=this._map,e=parseInt(at(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new b(this._containerLeft,-i-this._containerBottom);o._add(kt(this._container));var s=t.layerPointToContainerPoint(o),r=x(this.options.autoPanPadding),a=x(this.options.autoPanPaddingTopLeft||r),l=x(this.options.autoPanPaddingBottomRight||r),c=t.getSize(),h=0,u=0;s.x+n+l.x>c.x&&(h=s.x+n-c.x+l.x),s.x-h-a.x<0&&(h=s.x-a.x),s.y+i+l.y>c.y&&(u=s.y+i-c.y+l.y),s.y-u-a.y<0&&(u=s.y-a.y),(h||u)&&t.fire("autopanstart").panBy([h,u])}},_onCloseButtonClick:function(t){this._close(),J(t)},_getAnchor:function(){return x(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});wi.mergeOptions({closePopupOnClick:!0}),wi.include({openPopup:function(t,e,i){return t instanceof cn||(t=new cn(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:(this._popup&&this._popup.options.autoClose&&this.closePopup(),this._popup=t,this.addLayer(t))},closePopup:function(t){return t&&t!==this._popup||(t=this._popup,this._popup=null),t&&this.removeLayer(t),this}}),Ui.include({bindPopup:function(t,e){return t instanceof cn?(h(t,e),this._popup=t,t._source=this):(this._popup&&!e||(this._popup=new cn(e,this)),this._popup.setContent(t)),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t,e){if(t instanceof Ui||(e=t,t=this),t instanceof Vi)for(var i in this._layers){t=this._layers[i];break}return e||(e=t.getCenter?t.getCenter():t.getLatLng()),this._popup&&this._map&&(this._popup._source=t,this._popup.update(),this._map.openPopup(this._popup,e)),this},closePopup:function(){return this._popup&&this._popup._close(),this},togglePopup:function(t){return this._popup&&(this._popup._map?this.closePopup():this.openPopup(t)),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;this._popup&&this._map&&(J(t),e instanceof Ki?this.openPopup(t.layer||t.target,t.latlng):this._map.hasLayer(this._popup)&&this._popup._source===e?this.closePopup():this.openPopup(e,t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var hn=ln.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,interactive:!1,opacity:.9},onAdd:function(t){ln.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&this._source.fire("tooltipopen",{tooltip:this},!0)},onRemove:function(t){ln.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&this._source.fire("tooltipclose",{tooltip:this},!0)},getEvents:function(){var t=ln.prototype.getEvents.call(this);return Ye&&!this.options.permanent&&(t.preclick=this._close),t},_close:function(){this._map&&this._map.closeTooltip(this)},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=lt("div",t)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),s=this.options.direction,r=i.offsetWidth,a=i.offsetHeight,l=x(this.options.offset),c=this._getAnchor();
31"top"===s?t=t.add(x(-r/2+l.x,-a+l.y+c.y,!0)):"bottom"===s?t=t.subtract(x(r/2-l.x,-l.y,!0)):"center"===s?t=t.subtract(x(r/2+l.x,a/2-c.y+l.y,!0)):"right"===s||"auto"===s&&o.x<n.x?(s="right",t=t.add(x(l.x+c.x,c.y-a/2+l.y,!0))):(s="left",t=t.subtract(x(r+c.x-l.x,a/2-c.y-l.y,!0))),mt(i,"leaflet-tooltip-right"),mt(i,"leaflet-tooltip-left"),mt(i,"leaflet-tooltip-top"),mt(i,"leaflet-tooltip-bottom"),ft(i,"leaflet-tooltip-"+s),wt(i,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&yt(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return x(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});wi.include({openTooltip:function(t,e,i){return t instanceof hn||(t=new hn(i).setContent(t)),e&&t.setLatLng(e),this.hasLayer(t)?this:this.addLayer(t)},closeTooltip:function(t){return t&&this.removeLayer(t),this}}),Ui.include({bindTooltip:function(t,e){return t instanceof hn?(h(t,e),this._tooltip=t,t._source=this):(this._tooltip&&!e||(this._tooltip=new hn(e,this)),this._tooltip.setContent(t)),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),Ye&&(i.click=this._openTooltip)),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t,e){if(t instanceof Ui||(e=t,t=this),t instanceof Vi)for(var i in this._layers){t=this._layers[i];break}return e||(e=t.getCenter?t.getCenter():t.getLatLng()),this._tooltip&&this._map&&(this._tooltip._source=t,this._tooltip.update(),this._map.openTooltip(this._tooltip,e),this._tooltip.options.interactive&&this._tooltip._container&&(ft(this._tooltip._container,"leaflet-clickable"),this.addInteractiveTarget(this._tooltip._container))),this},closeTooltip:function(){return this._tooltip&&(this._tooltip._close(),this._tooltip.options.interactive&&this._tooltip._container&&(mt(this._tooltip._container,"leaflet-clickable"),this.removeInteractiveTarget(this._tooltip._container))),this},toggleTooltip:function(t){return this._tooltip&&(this._tooltip._map?this.closeTooltip():this.openTooltip(t)),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){var e=t.layer||t.target;this._tooltip&&this._map&&this.openTooltip(e,this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var e,i,n=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),i=this._map.containerPointToLayerPoint(e),n=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(n)}});var un=qi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),i=this.options;if(e.innerHTML=!1!==i.html?i.html:"",i.bgPos){var n=x(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});qi.Default=Zi;var dn=Ui.extend({options:{tileSize:256,opacity:1,updateWhenIdle:je,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){h(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView(),this._update()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ct(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ut(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(dt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){return this._map&&(this._removeAllTiles(),this._update()),this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof b?t:new b(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,i=this.getPane().children,n=-t(-1/0,1/0),o=0,s=i.length;o<s;o++)e=i[o].style.zIndex,i[o]!==this._container&&e&&(n=t(n,+e));isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!we){yt(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(o.current&&o.loaded){var s=Math.min(1,(t-o.loaded)/200);yt(o.el,s),s<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(v(this._fadeFrame),this._fadeFrame=g(this._updateOpacity,this))}},_onOpaqueTile:r,_initContainer:function(){this._container||(this._container=lt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i in this._levels)this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(ct(this._levels[i].el),this._removeTilesAtZoom(i),
32this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||((n=this._levels[t]={}).el=lt("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),n.el.offsetWidth,this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:r,_onRemoveLevel:r,_onCreateLevel:r,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ct(this._levels[t].el),this._onRemoveLevel(t),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}
32,_retainParent:function(t,e,i,n){var o=Math.floor(t/2),s=Math.floor(e/2),r=i-1,a=new b(+o,+s);a.z=+r;var l=this._tileCoordsToKey(a),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),r>n&&this._retainParent(o,s,r,n))},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var r=new b(o,s);r.z=i+1;var a=this._tileCoordsToKey(r),l=this._tiles[a];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),i+1<n&&this._retainChildren(o,s,i+1,n))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=this._clampZoom(Math.round(e));(void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom)&&(o=void 0);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();ze?xt(t.el,o,n):wt(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),s=e.getSize().divideBy(2*n);return new w(o.subtract(s),o.add(s))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),r=[],a=this.options.keepBuffer,l=new w(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var h=this._tiles[c].coords;h.z===this._tileZoom&&l.contains(new b(h.x,h.y))||(this._tiles[c].current=!1)}if(Math.abs(i-this._tileZoom)>1)this._setView(t,i);else{for(var u=o.min.y;u<=o.max.y;u++)for(var d=o.min.x;d<=o.max.x;d++){var p=new b(d,u);if(p.z=this._tileZoom,this._isValidTile(p)){var f=this._tiles[this._tileCoordsToKey(p)];f?f.current=!0:r.push(p)}}if(r.sort(function(t,e){return t.distanceTo(s)-e.distanceTo(s)}),0!==r.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(d=0;d<r.length;d++)this._addTile(r[d],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return S(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i);return[e.unproject(n,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new C(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new b(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(Ee||e.el.setAttribute("src",ne),ct(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ft(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=r,t.onmousemove=r,we&&this.options.opacity<1&&yt(t,this.options.opacity),Se&&!Pe&&(t.style.WebkitBackfaceVisibility="hidden")},_addTile:function(t,e){var n=this._getTilePos(t),o=this._tileCoordsToKey(t),s=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(s),this.createTile.length<2&&g(i(this._tileReady,this,t,null,s)),wt(s,n),this._tiles[o]={el:s,coords:t,current:!0},e.appendChild(s),this.fire("tileloadstart",{tile:s,coords:t})},_tileReady:function(t,e,n){if(this._map){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var o=this._tileCoordsToKey(t);(n=this._tiles[o])&&(n.loaded=+new Date,this._map._fadeAnimated?(yt(n.el,0),v(this._fadeFrame),this._fadeFrame=g(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(ft(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),we||!this._map._fadeAnimated?g(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new b(this._wrapX?s(t.x,this._wrapX):t.x,this._wrapY?s(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new w(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),pn=dn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1},initialize:function(t,e){this._url=t,(e=h(this,e)).detectRetina&&Ze&&e.maxZoom>0&&(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom++):(e.zoomOffset++,e.maxZoom--),e.minZoom=Math.max(0,e.minZoom)),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),Se||this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Y(n,"load",i(this._tileOnLoad,this,e,n)),Y(n,"error",i(this._tileOnError,this,e,n)),this.options.crossOrigin&&(n.crossOrigin=""),n.alt="",n.setAttribute("role","presentation"),n.src=this.getTileUrl(t),n},getTileUrl:function(t){var i={r:Ze?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;this.options.tms&&(i.y=n),i["-y"]=n}return d(this._url,e(i,this.options))}
32,_tileOnLoad:function(t,e){we?setTimeout(i(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=r,e.onerror=r,e.complete||(e.src=ne,ct(e),delete this._tiles[t]))}}),fn=pn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,i){this._url=t;var n=e({},this.defaultWmsParams);for(var o in i)o in this.options||(n[o]=i[o]);var s=(i=h(this,i)).detectRetina&&Ze?2:1,r=this.getTileSize();n.width=r.x*s,n.height=r.y*s,this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,pn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=k(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,r=(this._wmsVersion>=1.3&&this._crs===Hi?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),a=L.TileLayer.prototype.getTileUrl.call(this,t);return a+u(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+r},setParams:function(t,i){return e(this.wmsParams,t),i||this.redraw(),this}});pn.WMS=fn,Gt.wms=function(t,e){return new fn(t,e)};var mn=Ui.extend({options:{padding:.1,tolerance:0},initialize:function(t){h(this,t),n(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&ft(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=kt(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),s=this._map.project(this._center,e),r=this._map.project(t,e).subtract(s),a=o.multiplyBy(-i).add(n).add(o).subtract(r);ze?xt(this._container,a,i):wt(this._container,a)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new w(i,i.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),gn=mn.extend({getEvents:function(){var t=mn.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){mn.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Y(t,"mousemove",o(this._onMouseMove,32,this),this),Y(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Y(t,"mouseout",this._handleMouseOut,this),this._ctx=t.getContext("2d")},_destroyContainer:function(){delete this._ctx,ct(this._container),V(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){this._drawnLayers={},mn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Ze?2:1;wt(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",Ze&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){mn.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[n(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[L.stamp(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(t.options.dashArray){var e,i=t.options.dashArray.split(","),n=[];for(e=0;e<i.length;e++)n.push(Number(i[e]));t.options._dashArray=n}},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||g(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new w,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.clearRect(0,0,this._container.width,this._container.height)},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();
32this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,r=t._parts,a=r.length,l=this._ctx;if(a){for(this._drawnLayers[t._leaflet_id]=t,l.beginPath(),i=0;i<a;i++){for(n=0,o=r[i].length;n<o;n++)s=r[i][n],l[n?"lineTo":"moveTo"](s.x,s.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;this._drawnLayers[t._leaflet_id]=t,1!==o&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!==o&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&0!==i.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e,i,n=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&!this._map._draggableMoved(e)&&(i=e);i&&(it(t),this._fireEvent([i],t))},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(mt(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null)},_handleMouseHover:function(t,e){for(var i,n,o=this._drawFirst;o;o=o.next)(i=o.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(ft(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._hoveredLayer&&this._fireEvent([this._hoveredLayer],t)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order,i=e.next,n=e.prev;i&&(i.prev=n,n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))},_bringToBack:function(t){var e=t._order,i=e.next,n=e.prev;n&&(n.next=i,i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}),vn=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}(),yn={_initContainer:function(){this._container=lt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(mn.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=vn("shape");ft(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=vn("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ct(e),t.removeInteractiveTarget(e),delete this._layers[n(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=vn("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=ie(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=vn("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ut(t._container)},_bringToBack:function(t){dt(t._container)}},_n=Ke?vn:M,bn=mn.extend({getEvents:function(){var t=mn.prototype.getEvents.call(this);return t.zoomstart=this._onZoomStart,t},_initContainer:function(){this._container=_n("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=_n("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ct(this._container),V(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(!this._map._animatingZoom||!this._bounds){mn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),wt(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=_n("path");t.options.className&&ft(e,t.options.className),t.options.interactive&&ft(e,"leaflet-interactive"),this._updateStyle(t),this._layers[n(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ct(t._path),t.removeInteractiveTarget(t._path),delete this._layers[n(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,D(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+n+2*i+",0 "+n+2*-i+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ut(t._path)},_bringToBack:function(t){dt(t._path)}});Ke&&bn.include(yn),wi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this.options.preferCanvas&&Xt()||Kt()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=bn&&Kt({pane:t})||gn&&Xt({pane:t}),this._paneRenderers[t]=e),e}});var xn=en.extend({initialize:function(t,e){en.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))}
32,_boundsToLatLngs:function(t){return[(t=S(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});bn.create=_n,bn.pointsToPath=D,nn.geometryToLayer=Bt,nn.coordsToLatLng=Ht,nn.coordsToLatLngs=Wt,nn.latLngToCoords=Ut,nn.latLngsToCoords=Yt,nn.getFeature=Vt,nn.asFeature=qt,wi.mergeOptions({boxZoom:!0});var wn=Ai.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Y(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ct(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),me(),Ct(),this._startPoint=this._map.mouseEventToContainerPoint(t),Y(document,{contextmenu:J,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=lt("div","leaflet-zoom-box",this._container),ft(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new w(this._point,this._startPoint),i=e.getSize();wt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(ct(this._box),mt(this._container,"leaflet-crosshair")),ge(),St(),V(document,{contextmenu:J,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var e=new C(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&this._finish()}});wi.addInitHook("addHandler","boxZoom",wn),wi.mergeOptions({doubleClickZoom:!0});var kn=Ai.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});wi.addInitHook("addHandler","doubleClickZoom",kn),wi.mergeOptions({dragging:!0,inertia:!Pe,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Cn=Ai.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Ri(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ft(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mt(this._map._container,"leaflet-grab"),mt(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=S(this._map.options.maxBounds);this._offsetLimit=k(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,r=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=r},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,r=i.easeLinearity,a=o.multiplyBy(r/s),l=a.distanceTo([0,0]),c=Math.min(i.inertiaMaxSpeed,l),h=a.multiplyBy(c/l),u=c/(i.inertiaDeceleration*r),d=h.multiplyBy(-u/2).round();d.x||d.y?(d=e._limitOffset(d,e.options.maxBounds),g(function(){e.panBy(d,{duration:u,easeLinearity:r,noMoveStart:!0,animate:!0})}
32)):e.fire("moveend")}}});wi.addInitHook("addHandler","dragging",Cn),wi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Sn=Ai.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Y(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),V(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,i,n=this._panKeys={},o=this.keyCodes;for(e=0,i=o.left.length;e<i;e++)n[o.left[e]]=[-1*t,0];for(e=0,i=o.right.length;e<i;e++)n[o.right[e]]=[t,0];for(e=0,i=o.down.length;e<i;e++)n[o.down[e]]=[0,t];for(e=0,i=o.up.length;e<i;e++)n[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e=0,i=o.zoomIn.length;e<i;e++)n[o.zoomIn[e]]=t;for(e=0,i=o.zoomOut.length;e<i;e++)n[o.zoomOut[e]]=-t},_addHooks:function(){Y(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){V(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,i=t.keyCode,n=this._map;if(i in this._panKeys){if(n._panAnim&&n._panAnim._inProgress)return;e=this._panKeys[i],t.shiftKey&&(e=x(e).multiplyBy(3)),n.panBy(e),n.options.maxBounds&&n.panInsideBounds(n.options.maxBounds)}else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if(27!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}J(t)}}});wi.addInitHook("addHandler","keyboard",Sn),wi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Pn=Ai.extend({addHooks:function(){Y(this._map._container,"mousewheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){V(this._map._container,"mousewheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=et(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),o),J(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=i?Math.ceil(o/i)*i:o,r=t._limitZoom(e+(this._delta>0?s:-s))-e;this._delta=0,this._startTime=null,r&&("center"===t.options.scrollWheelZoom?t.setZoom(e+r):t.setZoomAround(this._lastMousePos,e+r))}});wi.addInitHook("addHandler","scrollWheelZoom",Pn),wi.mergeOptions({tap:!0,tapTolerance:15});var Tn=Ai.extend({addHooks:function(){Y(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){V(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(t.touches){if(Q(t),this._fireClick=!0,t.touches.length>1)return this._fireClick=!1,void clearTimeout(this._holdTimeout);var e=t.touches[0],n=e.target;this._startPos=this._newPos=new b(e.clientX,e.clientY),n.tagName&&"a"===n.tagName.toLowerCase()&&ft(n,"leaflet-active"),this._holdTimeout=setTimeout(i(function(){this._isTapValid()&&(this._fireClick=!1,this._onUp(),this._simulateEvent("contextmenu",e))},this),1e3),this._simulateEvent("mousedown",e),Y(document,{touchmove:this._onMove,touchend:this._onUp},this)}},_onUp:function(t){if(clearTimeout(this._holdTimeout),V(document,{touchmove:this._onMove,touchend:this._onUp},this),this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;i&&i.tagName&&"a"===i.tagName.toLowerCase()&&mt(i,"leaflet-active"),this._simulateEvent("mouseup",e),this._isTapValid()&&this._simulateEvent("click",e)}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new b(e.clientX,e.clientY),this._simulateEvent("mousemove",e)},
33_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=!0,e.target._simulatedClick=!0,i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)}});Ye&&!Ue&&wi.addInitHook("addHandler","tap",Tn),wi.mergeOptions({touchZoom:Ye&&!Pe,bounceAtZoomLimits:!0});var En=Ai.extend({addHooks:function(){ft(this._map._container,"leaflet-touch-zoom"),Y(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mt(this._map._container,"leaflet-touch-zoom"),V(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Y(document,"touchmove",this._onTouchMove,this),Y(document,"touchend",this._onTouchEnd,this),Q(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),s=n.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(s,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMin
33Zoom()&&s<1||this._zoom>e.getMaxZoom()&&s>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===s)return}else{var r=n._add(o)._divideBy(2)._subtract(this._centerPoint);if(1===s&&0===r.x&&0===r.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),v(this._animRequest);var a=i(e._move,e,this._center,this._zoom,{pinch:!0,round:!1});this._animRequest=g(a,this,!0),Q(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,v(this._animRequest),V(document,"touchmove",this._onTouchMove),V(document,"touchend",this._onTouchEnd),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});wi.addInitHook("addHandler","touchZoom",En),wi.BoxZoom=wn,wi.DoubleClickZoom=kn,wi.Drag=Cn,wi.Keyboard=Sn,wi.ScrollWheelZoom=Pn,wi.Tap=Tn,wi.TouchZoom=En;var An=window.L;window.L=t,Object.freeze=Qt,t.version="1.3.1+HEAD.ba6f97f",t.noConflict=function(){return window.L=An,this},t.Control=ki,t.control=Ci,t.Browser=Qe,t.Evented=ce,t.Mixin=Li,t.Util=ae,t.Class=y,t.Handler=Ai,t.extend=e,t.bind=i,t.stamp=n,t.setOptions=h,t.DomEvent=pi,t.DomUtil=bi,t.PosAnimation=xi,t.Draggable=Ri,t.LineUtil=Oi,t.PolyUtil=$i,t.Point=b,t.point=x,t.Bounds=w,t.bounds=k,t.Transformation=E,t.transformation=A,t.Projection=ji,t.LatLng=P,t.latLng=T,t.LatLngBounds=C,t.latLngBounds=S,t.CRS=ue,t.GeoJSON=nn,t.geoJSON=Zt,t.geoJson=sn,t.Layer=Ui,t.LayerGroup=Yi,t.layerGroup=function(t,e){return new Yi(t,e)},t.FeatureGroup=Vi,t.featureGroup=function(t){return new Vi(t)},t.ImageOverlay=rn,t.imageOverlay=function(t,e,i){return new rn(t,e,i)},t.VideoOverlay=an,t.videoOverlay=function(t,e,i){return new an(t,e,i)},t.DivOverlay=ln,t.Popup=cn,t.popup=function(t,e){return new cn(t,e)},t.Tooltip=hn,t.tooltip=function(t,e){return new hn(t,e)},t.Icon=qi,t.icon=function(t){return new qi(t)},t.DivIcon=un,t.divIcon=function(t){return new un(t)},t.Marker=Xi,t.marker=function(t,e){return new Xi(t,e)},t.TileLayer=pn,t.tileLayer=Gt,t.GridLayer=dn,t.gridLayer=function(t){return new dn(t)},t.SVG=bn,t.svg=Kt,t.Renderer=mn,t.Canvas=gn,t.canvas=Xt,t.Path=Ki,t.CircleMarker=Qi,t.circleMarker=function(t,e){return new Qi(t,e)},t.Circle=Ji,t.circle=function(t,e,i){return new Ji(t,e,i)},t.Polyline=tn,t.polyline=function(t,e){return new tn(t,e)},t.Polygon=en,t.polygon=function(t,e){return new en(t,e)},t.Rectangle=xn,t.rectangle=function(t,e){return new xn(t,e)},t.Map=wi,t.map=function(t,e){return new wi(t,e)}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.