",className:"hideShowPassword-wrapper",enforceWidth:!0,styles:{position:"relative"},inheritStyles:["display","verticalAlign","marginTop","marginRight","marginBottom","marginLeft"],innerElementStyles:{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},states:{shown:{className:"hideShowPassword-shown",changeEvent:"passwordShown",props:{type:"text"},toggle:{className:"hideShowPassword-toggle-hide",content:"Hide",attr:{"aria-pressed":"true",title:"Hide Password"}}},hidden:{className:"hideShowPassword-hidden",changeEvent:"passwordHidden",props:{type:"password"},toggle:{className:"hideShowPassword-toggle-show",content:"Show",attr:{"aria-pressed":"false",title:"Show Password"}}}}};c.prototype={init:function(b){this.update(b,h)&&(this.element.addClass(this.options.className),this.options.innerToggle&&(this.wrapElement(this.options.wrapper),this.initToggle(this.options.toggle),"string"==typeof this.options.innerToggle&&(this.toggleElement.hide(),this.element.one(this.options.innerToggle,a.proxy(function(){this.toggleElement.show()},this)))),this.element.trigger(this.options.initEvent,[this]))},update:function(a,b){return this.options=this.prepareOptions(a,b),this.updateElement()&&this.element.trigger(this.options.changeEvent,[this]).trigger(this.state().changeEvent,[this]),this.options.enable},toggle:function(a){return a=a||"toggle",this.update({show:a})},prepareOptions:function(b,c){var d,e=b||{},g=[];if(c=c||this.options,b=a.extend(!0,{},c,b),e.hasOwnProperty("wrapper")&&e.wrapper.hasOwnProperty("inheritStyles")&&(b.wrapper.inheritStyles=e.wrapper.inheritStyles),b.enable&&("toggle"===b.show?b.show=this.isType("hidden",b.states):"infer"===b.show&&(b.show=this.isType("shown",b.states)),"infer"===b.toggle.position&&(b.toggle.position="rtl"===this.element.css("text-direction")?"left":"right"),!a.isArray(b.toggle.attachToKeyCodes))){if(!0===b.toggle.attachToKeyCodes)switch(d=a(b.toggle.element),d.prop("tagName").toLowerCase()){case"button":case"input":break;case"a":if(d.filter("[href]").length){g.push(f);break}default:g.push(f,13)}b.toggle.attachToKeyCodes=g}return b},updateElement:function(){return!(!this.options.enable||this.isType()||(this.element.prop(a.extend({},this.options.props,this.state().props)).addClass(this.state().className).removeClass(this.otherState().className),this.updateToggle(),0))},isType:function(a,c){return c=c||this.options.states,a=a||this.state(b,b,c).props.type,c[a]&&(a=c[a].props.type),this.element.prop("type")===a},state:function(a,c,d){return d=d||this.options.states,a===b&&(a=this.options.show),"boolean"==typeof a&&(a=a?"shown":"hidden"),c&&(a="shown"===a?"hidden":"shown"),d[a]},otherState:function(a){return this.state(a,!0)},wrapElement:function(b){var c,d=b.enforceWidth;return this.wrapperElement.length||(c=this.element.outerWidth(),a.each(b.inheritStyles,a.proxy(function(a,c){b.styles[c]=this.element.css(c)},this)),this.element.css(b.innerElementStyles).wrap(a(b.element).addClass(b.className).css(b.styles)),this.wrapperElement=this.element.parent(),!0===d&&(d=this.wrapperElement.outerWidth()!==c&&c),!1!==d&&this.wrapperElement.css("width",d)),this.wrapperElement},initToggle:function(b){return this.toggleElement.length||(this.toggleElement=a(b.element).attr(b.attr).addClass(b.className).css(b.styles).appendTo(this.wrapperElement),this.updateToggle(),this.positionToggle(b.position,b.verticalAlign,b.offset),b.touchSupport?(this.toggleElement.css(b.touchStyles),this.element.on(b.attachToTouchEvent,a.proxy(this.toggleTouchEvent,this))):this.toggleElement.on(b.attachToEvent,a.proxy(this.toggleEvent,this)),b.attachToKeyCodes.length&&this.toggleElement.on(b.attachToKeyEvent,a.proxy(this.toggleKeyEvent,this))),this.toggleElement},positionToggle:function(a,b,c){var d={};switch(d[a]=c,b){case"top":case"bottom":d[b]=c;break;case"middle":d.top="50%",d.marginTop=this.toggleElement.outerHeight()/-2}return this.toggleElement.css(d)},updateToggle:function(a,b){var c,d;return this.toggleElement.length&&(c="padding-"+this.options.toggle.position,a=a||this.state().toggle,b=b||this.otherState().toggle,this.toggleElement.attr(a.attr).addClass(a.className).removeClass(b.className).html(a.content),d=this.toggleElement.outerWidth()+2*this.options.toggle.offset,this.element.css(c)!==d&&this.element.css(c,d)),this.toggleElement},toggleEvent:function(a){a.preventDefault(),this.toggle()},toggleKeyEvent:function(b){a.each(this.options.toggle.attachToKeyCodes,a.proxy(function(a,c){if(b.which===c)return this.toggleEvent(b),!1},this))},toggleTouchEvent:function(a){var b,c,d,e=this.toggleElement.offset().left;e&&(b=a.pageX||a.originalEvent.pageX,"left"===this.options.toggle.position?(e+=this.toggleElement.outerWidth(),c=b,d=e):(c=e,d=b),d>=c&&this.toggleEvent(a))}},a.fn.hideShowPassword=function(){var b={};return a.each(arguments,function(c,d){var f={};if("object"==typeof d)f=d;else{if(!e[c])return!1;f[e[c]]=d}a.extend(!0,b,f)}),this.each(function(){var e=a(this),f=e.data(d);f?f.update(b):e.data(d,new c(this,b))})},a.each({show:!0,hide:!1,toggle:"toggle"},function(b,c){a.fn[b+"Password"]=function(a,b){return this.hideShowPassword(c,a,b)}})}),jQuery(document).ready(function(a){jQuery().datepicker&&a("input.wpas-date").length&&"date"!=a("input.wpas-date:first").prop("type")&&a("input.wpas-date").datepicker()}),function(a){"use strict";a(function(){if(a(".wpas-modal-trigger").featherlight(),a("#wpas_form_registration").on("change",'input[name="wpas_pwdshow[]"]',function(b){b.preventDefault(),a("#wpas_password").hideShowPassword(a(this).prop("checked"))}),"undefined"!=typeof wpas&&stringToBool(wpas.emailCheck)&&a("#wpas_form_registration").length){var b,c=a("#wpas_form_registration #wpas_email"),d=a('
');d.appendTo(a("#wpas_email_wrapper")).hide(),c.on("change",function(){c.addClass("wpas-form-control-loading"),b={action:"email_validation",email:c.val()},a.post(wpas.ajaxurl,b,function(a){d.html(a).show(),c.removeClass("wpas-form-control-loading")})}),d.on("click","strong",function(){c.val(a(this).html()),d.hide()})}})}(jQuery),function(a){"use strict";a(function(){if("undefined"!=typeof wpas&&a(".wpas-ticket-replies").length&&a(".wpas-pagi").length){var b=a(".wpas-ticket-replies tbody"),c=a(".wpas-pagi"),d=a(".wpas-pagi-loadmore"),e=a(".wpas-replies-current"),f=a(".wpas-replies-total"),g={action:"wpas_load_replies",ticket_id:wpas.ticket_id,ticket_replies_total:0},h=a(".wpas-pagi-text").outerHeight();a(".wpas-pagi-loader").css({width:h,height:h});d.on("click",function(h){h.preventDefault(),g.ticket_replies_total=b.find("tr.wpas-reply-single").length-1,c.addClass("wpas-pagi-loading"),a.post(wpas.ajaxurl,g,function(g){g=a.parseJSON(g),c.removeClass("wpas-pagi-loading"),e.text(g.current),f.text(g.total),g.current==g.total&&d.hide(),a(g.html).appendTo(b).addClass("wpas-reply-single-added").delay(900).queue(function(){a(this).removeClass("wpas-reply-single-added").dequeue()})})})}})}(jQuery),jQuery(document).ready(function(a){jQuery().select2&&a("select.wpas-select2").length&&a("select.wpas-select2").select2()}),function(a){"use strict";a(function(){a(".wpas-reply-content").length&&a(".wpas-reply-content").each(function(a,b){b.innerHTML=Autolinker.link(b.innerHTML)});var b=a("#wpas-new-reply"),c=a('textarea[name="wpas_user_reply"]'),d=a('input[name="wpas_close_ticket"]');b.on("change",d,function(){c.is(":visible")&&c.prop("required",d.is(":checked"))}),"undefined"!=typeof tinyMCE?a(".wpas-form").submit(function(b){var c=a('[type="submit"]',a(this)),e=tinyMCE.activeEditor.getContent();if(!(d.is(":checked")||""!==e&&null!==e))return a(tinyMCE.activeEditor.getBody()).css("background-color","#ffeeee"),alert(wpas.translations.emptyEditor),a(tinyMCE.activeEditor.getBody()).css("background-color",""),tinyMCE.activeEditor.focus(),!1;c.prop("disabled",!0).text(wpas.translations.onSubmit)}):a(".wpas-form").submit(function(b){var c=a('[type="submit"]',a(this)),d=c.attr("data-onsubmit")?c.attr("data-onsubmit"):wpas.translations.onSubmit;c.prop("disabled",!0).text(d)})})}(jQuery),function(a){"use strict";a(function(){function b(){var b=a(".wpas-filter-status");c.footable(),c.footable().bind("footable_filtering",function(a){var c=b.find(":selected").val();c&&c.length>0&&(a.filter+=a.filter&&a.filter.length>0?" "+c:c,a.clear=!a.filter)});var e=[],f="";d.each(function(b,c){var d=a(c).find(".wpas-label-status").text();-1==e.indexOf(d)&&(e.push(d),f+='
'+d+" ")}),e.length>1?b.append(f):b.hide(),b.change(function(b){b.preventDefault(),c.trigger("footable_filter",{filter:a("#wpas_filter").val()})}),a(".wpas-clear-filter").click(function(a){a.preventDefault(),b.val(""),c.trigger("footable_clear_filter")})}var c=a("#wpas_ticketlist"),d=a("#wpas_ticketlist > tbody > tr"),e=d.length,f=a("#wpas_ticketlist_filters"),g=c.length&&e>=5&&a.fn.footable&&"undefined"!=typeof wpas;!1!==g?b():f.hide()})}(jQuery),function(a){"use strict";a(function(){if("undefined"!=typeof wpas&&wpas.fileUploadMax){var b=a("#wpas_files");b.on("change",function(c){c.preventDefault();var d=[];a.each(b.get(0).files,function(a,b){b.size>wpas.fileUploadSize&&d.push(b.name)}),0!==d.length&&(alert(wpas.fileUploadMaxSizeError[0]+"\n\n"+d.join("\n")+".\n\n"+wpas.fileUploadMaxSizeError[1]),clearFileInput(b[0])),parseInt(b.get(0).files.length)>parseInt(wpas.fileUploadMax,10)&&(alert(wpas.fileUploadMaxError),clearFileInput(b[0]))})}a("body").delegate(".btn_delete_attachment","click",function(b){b.preventDefault();var c=a(this),d=a('
');d.insertAfter(c),c.hide();var e=a(this).data("parent_id"),f=a(this).data("att_id"),g={action:"wpas_delete_attachment",parent_id:e,att_id:f};a.post(ajaxurl,g,function(a){c.show(),d.remove(),a.success&&c.closest("li").html(a.data.msg)})}),a("#wpas-new-reply .wpas-auto-delete-attachments-container input[type=checkbox]").change(function(){var b=a(this),c=a('
');c.insertAfter(b),b.hide();var d={action:"wpas_auto_delete_attachment_flag",ticket_id:wpas.ticket_id,auto_delete:b.is(":checked")?"1":"0"};a.post(ajaxurl,d,function(a){b.show(),c.remove()})})})}(jQuery);
(function($){
'use strict';
if(typeof wpcf7==='undefined'||wpcf7===null){
return;
}
wpcf7=$.extend({
cached: 0,
inputs: []
}, wpcf7);
$(function(){
wpcf7.supportHtml5=(function(){
var features={};
var input=document.createElement('input');
features.placeholder='placeholder' in input;
var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ];
$.each(inputTypes, function(index, value){
input.setAttribute('type', value);
features[ value ]=input.type!=='text';
});
return features;
})();
$('div.wpcf7 > form').each(function(){
var $form=$(this);
wpcf7.initForm($form);
if(wpcf7.cached){
wpcf7.refill($form);
}});
});
wpcf7.getId=function(form){
return parseInt($('input[name="_wpcf7"]', form).val(), 10);
};
wpcf7.initForm=function(form){
var $form=$(form);
$form.submit(function(event){
if(! wpcf7.supportHtml5.placeholder){
$('[placeholder].placeheld', $form).each(function(i, n){
$(n).val('').removeClass('placeheld');
});
}
if(typeof window.FormData==='function'){
wpcf7.submit($form);
event.preventDefault();
}});
$('.wpcf7-submit', $form).after('
');
wpcf7.toggleSubmit($form);
$form.on('click', '.wpcf7-acceptance', function(){
wpcf7.toggleSubmit($form);
});
$('.wpcf7-exclusive-checkbox', $form).on('click', 'input:checkbox', function(){
var name=$(this).attr('name');
$form.find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false);
});
$('.wpcf7-list-item.has-free-text', $form).each(function(){
var $freetext=$(':input.wpcf7-free-text', this);
var $wrap=$(this).closest('.wpcf7-form-control');
if($(':checkbox, :radio', this).is(':checked')){
$freetext.prop('disabled', false);
}else{
$freetext.prop('disabled', true);
}
$wrap.on('change', ':checkbox, :radio', function(){
var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio');
if($cb.is(':checked')){
$freetext.prop('disabled', false).focus();
}else{
$freetext.prop('disabled', true);
}});
});
if(! wpcf7.supportHtml5.placeholder){
$('[placeholder]', $form).each(function(){
$(this).val($(this).attr('placeholder'));
$(this).addClass('placeheld');
$(this).focus(function(){
if($(this).hasClass('placeheld')){
$(this).val('').removeClass('placeheld');
}});
$(this).blur(function(){
if(''===$(this).val()){
$(this).val($(this).attr('placeholder'));
$(this).addClass('placeheld');
}});
});
}
if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.date){
$form.find('input.wpcf7-date[type="date"]').each(function(){
$(this).datepicker({
dateFormat: 'yy-mm-dd',
minDate: new Date($(this).attr('min')),
maxDate: new Date($(this).attr('max'))
});
});
}
if(wpcf7.jqueryUi&&! wpcf7.supportHtml5.number){
$form.find('input.wpcf7-number[type="number"]').each(function(){
$(this).spinner({
min: $(this).attr('min'),
max: $(this).attr('max'),
step: $(this).attr('step')
});
});
}
$('.wpcf7-character-count', $form).each(function(){
var $count=$(this);
var name=$count.attr('data-target-name');
var down=$count.hasClass('down');
var starting=parseInt($count.attr('data-starting-value'), 10);
var maximum=parseInt($count.attr('data-maximum-value'), 10);
var minimum=parseInt($count.attr('data-minimum-value'), 10);
var updateCount=function(target){
var $target=$(target);
var length=$target.val().length;
var count=down ? starting - length:length;
$count.attr('data-current-value', count);
$count.text(count);
if(maximum&&maximum < length){
$count.addClass('too-long');
}else{
$count.removeClass('too-long');
}
if(minimum&&length < minimum){
$count.addClass('too-short');
}else{
$count.removeClass('too-short');
}};
$(':input[name="' + name + '"]', $form).each(function(){
updateCount(this);
$(this).keyup(function(){
updateCount(this);
});
});
});
$form.on('change', '.wpcf7-validates-as-url', function(){
var val=$.trim($(this).val());
if(val
&& ! val.match(/^[a-z][a-z0-9.+-]*:/i)
&& -1!==val.indexOf('.')){
val=val.replace(/^\/+/, '');
val='http://' + val;
}
$(this).val(val);
});
};
wpcf7.submit=function(form){
if(typeof window.FormData!=='function'){
return;
}
var $form=$(form);
$('.ajax-loader', $form).addClass('is-active');
wpcf7.clearResponse($form);
var formData=new FormData($form.get(0));
var detail={
id: $form.closest('div.wpcf7').attr('id'),
status: 'init',
inputs: [],
formData: formData
};
$.each($form.serializeArray(), function(i, field){
if('_wpcf7'==field.name){
detail.contactFormId=field.value;
}else if('_wpcf7_version'==field.name){
detail.pluginVersion=field.value;
}else if('_wpcf7_locale'==field.name){
detail.contactFormLocale=field.value;
}else if('_wpcf7_unit_tag'==field.name){
detail.unitTag=field.value;
}else if('_wpcf7_container_post'==field.name){
detail.containerPostId=field.value;
}else if(field.name.match(/^_wpcf7_\w+_free_text_/)){
var owner=field.name.replace(/^_wpcf7_\w+_free_text_/, '');
detail.inputs.push({
name: owner + '-free-text',
value: field.value
});
}else if(field.name.match(/^_/)){
}else{
detail.inputs.push(field);
}});
wpcf7.triggerEvent($form.closest('div.wpcf7'), 'beforesubmit', detail);
var ajaxSuccess=function(data, status, xhr, $form){
detail.id=$(data.into).attr('id');
detail.status=data.status;
detail.apiResponse=data;
var $message=$('.wpcf7-response-output', $form);
switch(data.status){
case 'validation_failed':
$.each(data.invalidFields, function(i, n){
$(n.into, $form).each(function(){
wpcf7.notValidTip(this, n.message);
$('.wpcf7-form-control', this).addClass('wpcf7-not-valid');
$('[aria-invalid]', this).attr('aria-invalid', 'true');
});
});
$message.addClass('wpcf7-validation-errors');
$form.addClass('invalid');
wpcf7.triggerEvent(data.into, 'invalid', detail);
break;
case 'acceptance_missing':
$message.addClass('wpcf7-acceptance-missing');
$form.addClass('unaccepted');
wpcf7.triggerEvent(data.into, 'unaccepted', detail);
break;
case 'spam':
$message.addClass('wpcf7-spam-blocked');
$form.addClass('spam');
wpcf7.triggerEvent(data.into, 'spam', detail);
break;
case 'aborted':
$message.addClass('wpcf7-aborted');
$form.addClass('aborted');
wpcf7.triggerEvent(data.into, 'aborted', detail);
break;
case 'mail_sent':
$message.addClass('wpcf7-mail-sent-ok');
$form.addClass('sent');
wpcf7.triggerEvent(data.into, 'mailsent', detail);
break;
case 'mail_failed':
$message.addClass('wpcf7-mail-sent-ng');
$form.addClass('failed');
wpcf7.triggerEvent(data.into, 'mailfailed', detail);
break;
default:
var customStatusClass='custom-'
+ data.status.replace(/[^0-9a-z]+/i, '-');
$message.addClass('wpcf7-' + customStatusClass);
$form.addClass(customStatusClass);
}
wpcf7.refill($form, data);
wpcf7.triggerEvent(data.into, 'submit', detail);
if('mail_sent'==data.status){
$form.each(function(){
this.reset();
});
wpcf7.toggleSubmit($form);
}
if(! wpcf7.supportHtml5.placeholder){
$form.find('[placeholder].placeheld').each(function(i, n){
$(n).val($(n).attr('placeholder'));
});
}
$message.html('').append(data.message).slideDown('fast');
$message.attr('role', 'alert');
$('.screen-reader-response', $form.closest('.wpcf7')).each(function(){
var $response=$(this);
$response.html('').attr('role', '').append(data.message);
if(data.invalidFields){
var $invalids=$('
');
$.each(data.invalidFields, function(i, n){
if(n.idref){
var $li=$('
').append($('
').attr('href', '#' + n.idref).append(n.message));
}else{
var $li=$('
').append(n.message);
}
$invalids.append($li);
});
$response.append($invalids);
}
$response.attr('role', 'alert').focus();
});
};
$.ajax({
type: 'POST',
url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/feedback'),
data: formData,
dataType: 'json',
processData: false,
contentType: false
}).done(function(data, status, xhr){
ajaxSuccess(data, status, xhr, $form);
$('.ajax-loader', $form).removeClass('is-active');
}).fail(function(xhr, status, error){
var $e=$('
').text(error.message);
$form.after($e);
});
};
wpcf7.triggerEvent=function(target, name, detail){
var $target=$(target);
var event=new CustomEvent('wpcf7' + name, {
bubbles: true,
detail: detail
});
$target.get(0).dispatchEvent(event);
$target.trigger('wpcf7:' + name, detail);
$target.trigger(name + '.wpcf7', detail);
};
wpcf7.toggleSubmit=function(form, state){
var $form=$(form);
var $submit=$('input:submit', $form);
if(typeof state!=='undefined'){
$submit.prop('disabled', ! state);
return;
}
if($form.hasClass('wpcf7-acceptance-as-validation')){
return;
}
$submit.prop('disabled', false);
$('.wpcf7-acceptance', $form).each(function(){
var $span=$(this);
var $input=$('input:checkbox', $span);
if(! $span.hasClass('optional')){
if($span.hasClass('invert')&&$input.is(':checked')
|| ! $span.hasClass('invert')&&! $input.is(':checked')){
$submit.prop('disabled', true);
return false;
}}
});
};
wpcf7.notValidTip=function(target, message){
var $target=$(target);
$('.wpcf7-not-valid-tip', $target).remove();
$('
')
.text(message).appendTo($target);
if($target.is('.use-floating-validation-tip *')){
var fadeOut=function(target){
$(target).not(':hidden').animate({
opacity: 0
}, 'fast', function(){
$(this).css({ 'z-index': -100 });
});
};
$target.on('mouseover', '.wpcf7-not-valid-tip', function(){
fadeOut(this);
});
$target.on('focus', ':input', function(){
fadeOut($('.wpcf7-not-valid-tip', $target));
});
}};
wpcf7.refill=function(form, data){
var $form=$(form);
var refillCaptcha=function($form, items){
$.each(items, function(i, n){
$form.find(':input[name="' + i + '"]').val('');
$form.find('img.wpcf7-captcha-' + i).attr('src', n);
var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n);
$form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]);
});
};
var refillQuiz=function($form, items){
$.each(items, function(i, n){
$form.find(':input[name="' + i + '"]').val('');
$form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]);
$form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]);
});
};
if(typeof data==='undefined'){
$.ajax({
type: 'GET',
url: wpcf7.apiSettings.getRoute('/contact-forms/' + wpcf7.getId($form) + '/refill'),
beforeSend: function(xhr){
var nonce=$form.find(':input[name="_wpnonce"]').val();
if(nonce){
xhr.setRequestHeader('X-WP-Nonce', nonce);
}},
dataType: 'json'
}).done(function(data, status, xhr){
if(data.captcha){
refillCaptcha($form, data.captcha);
}
if(data.quiz){
refillQuiz($form, data.quiz);
}});
}else{
if(data.captcha){
refillCaptcha($form, data.captcha);
}
if(data.quiz){
refillQuiz($form, data.quiz);
}}
};
wpcf7.clearResponse=function(form){
var $form=$(form);
$form.removeClass('invalid spam sent failed');
$form.siblings('.screen-reader-response').html('').attr('role', '');
$('.wpcf7-not-valid-tip', $form).remove();
$('[aria-invalid]', $form).attr('aria-invalid', 'false');
$('.wpcf7-form-control', $form).removeClass('wpcf7-not-valid');
$('.wpcf7-response-output', $form)
.hide().empty().removeAttr('role')
.removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked');
};
wpcf7.apiSettings.getRoute=function(path){
var url=wpcf7.apiSettings.root;
url=url.replace(wpcf7.apiSettings.namespace,
wpcf7.apiSettings.namespace + path);
return url;
};})(jQuery);
(function (){
if(typeof window.CustomEvent==="function") return false;
function CustomEvent(event, params){
params=params||{ bubbles: false, cancelable: false, detail: undefined };
var evt=document.createEvent('CustomEvent');
evt.initCustomEvent(event,
params.bubbles, params.cancelable, params.detail);
return evt;
}
CustomEvent.prototype=window.Event.prototype;
window.CustomEvent=CustomEvent;
})();
jQuery(document).ready(function ($){
$('.asfaq-shortcode-wrapper h3').each(function (){
var tis=$(this),
state=false,
answer=tis.next('div').slideUp();
tis.on('click', function (){
state = !state;
answer.slideToggle(state);
tis.toggleClass('active', state);
asfaq_count_view_ajax(tis);
});
});
var alreadyClicked=[];
function asfaq_count_view_ajax(tis){
var id=tis.attr('data-id');
var data={
'action': 'asfaq_count_view',
'faq_id': id
};
if($.inArray(id, alreadyClicked)==-1){
alreadyClicked.push(id);
$.post(asfaq.ajaxurl, data);
}}
var searchInput=$('#asfaq_sc_search_input'),
searchCount=$('#asfaq_sc_search_count'),
searchClear=$('#asfaq_sc_search_clear'),
searchItems=$('.asfaq_item');
searchInput.keyup(function (){
var filter=$(this).val(),
count=0;
searchItems.each(function (){
if($(this).text().search(new RegExp(filter, 'i')) < 0){
$(this).addClass('asfaq_item_has_result').fadeOut();
}else{
$(this).removeClass('asfaq_item_has_result').show();
count++;
}});
var countText;
count >=2 ? countText='results found.':countText='result found.';
searchCount.text(count + ' ' + countText);
});
searchClear.on('click', function (event){
event.preventDefault();
searchInput.val('').trigger('keyup');
});
});
jQuery(document).ready(function ($){
var timeout;
var container=$('
');
var selectors=asfaq.settings.selectors;
var delay=(function (){
var timer=0;
return function (callback, ms){
clearTimeout(timer);
timer=setTimeout(callback, ms);
};})();
$.each(selectors, function (index, val){
var selector=$(val.replace(/\\/g, ''));
if(selector.length){
selector.after(container);
selector.on('keyup', function (event){
event.preventDefault();
var charsMin=asfaq.settings.chars_min;
var el=this;
var value=this.value;
var strLength=value.length;
delay(function (){
if(value&&strLength >=charsMin){
var data={
'action': 'asfaq_search_faq',
'asfaq_term': value
};
$.post(asfaq.ajaxurl, data, function (response){
if(response.length){
var faqs=$.parseJSON(response);
var dynamicItems="";
if(!$.isEmptyObject(faqs)){
$.each(faqs, function (i, val){
dynamicItems +='
' + val.title + ' ';
});
container.html(dynamicItems).show();
}}
});
}else{
container.html('').hide();
}}, asfaq.settings.delay);
});
}});
});
function newsletter_check_field(field, message){
if(!field) return true;
if(field.type=="checkbox"&&!field.checked){
alert(message);
return false;
}
if(field.required!==undefined&&field.required!==false&&field.value==""){
alert(message);
return false;
}
return true;
}
function newsletter_check(f){
var re=/^([a-zA-Z0-9_\.\-\+])+\@(([a-zA-Z0-9\-]{1,})+\.)+([a-zA-Z0-9]{2,})+$/;
if(!re.test(f.elements["ne"].value)){
alert(newsletter.messages.email_error);
return false;
}
if(!newsletter_check_field(f.elements["nn"], newsletter.messages.name_error)) return false;
if(!newsletter_check_field(f.elements["ns"], newsletter.messages.surname_error)) return false;
for (var i=1; i
0;)i+=s+e+"-"+o.substring(0,r),r=o.indexOf("-",r+1);i+=s+e+"-"+o}return i}var i="";for(var r in e)r&&e.hasOwnProperty(r)&&(i+=o(r,e[r]));return i},encode:function(e){var o="";for(var i in e)i&&e.hasOwnProperty(i)&&(o&&(o+="&"),o+=encodeURIComponent(i)+"="+encodeURIComponent(e[i]));return o}};d.userAgent=d.ua=d.parse(o,i);var m=d.format(d.ua)+" js";return e.className?e.className=e.className.replace(/\bno-js\b/g,"")+m:e.className=m.substr(1),d}(document.documentElement,navigator.userAgent,navigator.standalone);
!function(e,t,n){var r=[],o=[],a={_version:"3.5.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){o.push({name:e,fn:t,options:n})},addAsyncTest:function(e){o.push({name:null,fn:e})}},i=function(){};i.prototype=a,(i=new i).addTest("applicationcache","applicationCache"in e),i.addTest("geolocation","geolocation"in navigator),i.addTest("history",function(){var t=navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol)&&(e.history&&"pushState"in e.history)}),i.addTest("postmessage","postMessage"in e);var s=!1;try{s="WebSocket"in e&&2===e.WebSocket.CLOSING}catch(e){}i.addTest("websockets",s),i.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}),i.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(e){return!1}}),i.addTest("websqldatabase","openDatabase"in e),i.addTest("webworkers","Worker"in e);var l=a._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];function c(e,t){return typeof e===t}a._prefixes=l;var d=t.documentElement,u="svg"===d.nodeName.toLowerCase();function f(e){var t=d.className,n=i._config.classPrefix||"";if(u&&(t=t.baseVal),i._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}i._config.enableClasses&&(t+=" "+n+e.join(" "+n),u?d.className.baseVal=t:d.className=t)}var p,g,m=a._config.usePrefixes?"Moz O ms Webkit".toLowerCase().split(" "):[];function h(e,t){if("object"==typeof e)for(var n in e)p(e,n)&&h(n,e[n]);else{var r=(e=e.toLowerCase()).split("."),o=i[r[0]];if(2==r.length&&(o=o[r[1]]),void 0!==o)return i;t="function"==typeof t?t():t,1==r.length?i[r[0]]=t:(!i[r[0]]||i[r[0]]instanceof Boolean||(i[r[0]]=new Boolean(i[r[0]])),i[r[0]][r[1]]=t),f([(t&&0!=t?"":"no-")+r.join("-")]),i._trigger(e,t)}return i}function v(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):u?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}a._domPrefixes=m,p=c(g={}.hasOwnProperty,"undefined")||c(g.call,"undefined")?function(e,t){return t in e&&c(e.constructor.prototype[t],"undefined")}:function(e,t){return g.call(e,t)},a._l={},a.on=function(e,t){this._l[e]||(this._l[e]=[]),this._l[e].push(t),i.hasOwnProperty(e)&&setTimeout(function(){i._trigger(e,i[e])},0)},a._trigger=function(e,t){if(this._l[e]){var n=this._l[e];setTimeout(function(){var e;for(e=0;e7)}),i.addTest("audio",function(){var e=v("audio"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return t}),i.addTest("canvas",function(){var e=v("canvas");return!(!e.getContext||!e.getContext("2d"))}),i.addTest("canvastext",function(){return!1!==i.canvas&&"function"==typeof v("canvas").getContext("2d").fillText}),i.addTest("video",function(){var e=v("video"),t=!1;try{(t=!!e.canPlayType)&&((t=new Boolean(t)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(e){}return t}),i.addTest("webgl",function(){var t=v("canvas"),n="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return n in t?t[n]("webgl")||t[n]("experimental-webgl"):"WebGLRenderingContext"in e}),i.addTest("cssgradients",function(){for(var e,t="background-image:",n="",r=0,o=l.length-1;r-1}),i.addTest("multiplebgs",function(){var e=v("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),i.addTest("opacity",function(){var e=v("a").style;return e.cssText=l.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),i.addTest("rgba",function(){var e=v("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),i.addTest("inlinesvg",function(){var e=v("div");return e.innerHTML=" ","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)});var T=v("input"),x="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),w={};i.input=function(t){for(var n=0,r=t.length;n=9,R||L)?i.addTest("fontface",!1):N('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),o=r.sheet||r.styleSheet,a=o?o.cssRules&&o.cssRules[0]?o.cssRules[0].cssText:o.cssText||"":"",s=/src/i.test(a)&&0===a.indexOf(n.split(" ")[0]);i.addTest("fontface",s)}),N('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){i.addTest("generatedcontent",e.offsetHeight>=6)});var j=a._config.usePrefixes?"Moz O ms Webkit".split(" "):[];a._cssomPrefixes=j;var M=function(t){var r,o=l.length,a=e.CSSRule;if(void 0===a)return n;if(!t)return!1;if((r=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in a)return"@"+t;for(var i=0;iLoading the next set of posts...<\/em>","infinite_finished_msg":"All items displayed.<\/em>"};jQuery(window).on("load",function(){jQuery(".fusion-recent-posts-infinite .fusion-columns").each(function(){var n,e=jQuery(this),o=e.parent(),i="."+o.attr("class").replace(/\ /g,".")+" ",t=jQuery(this).find(".fusion-column");jQuery(e).infinitescroll({navSelector:i+".fusion-infinite-scroll-trigger",nextSelector:i+"a.pagination-next",itemSelector:i+"div.pagination .current, "+i+"article.post",loading:{finishedMsg:fusionRecentPostsVars.infinite_finished_msg,msg:jQuery(''+fusionRecentPostsVars.infinite_loading_text+"
")},maxPage:o.data("pages")?o.data("pages"):void 0,errorCallback:function(){}},function(i){jQuery(i).hide(),imagesLoaded(i,function(){jQuery(i).fadeIn()}),fusionInitPostFlexSlider(),jQuery(i).each(function(){jQuery(this).find(".full-video, .video-shortcode, .wooslider .slide-content").fitVids()}),n=o.find(".current").html(),o.find(".current").remove(),o.data("pages")==n&&(o.find(".fusion-loading-container").hide(),o.find(".fusion-load-more-button").hide()),"individual"!==fusionRecentPostsVars.lightbox_behavior&&t.find(".fusion-post-slideshow").length||(window.avadaLightBox.activate_lightbox(jQuery(i)),t=e.find(".post")),window.avadaLightBox.refresh_lightbox(),setTimeout(function(){jQuery(window).trigger("resize",[!1])},500),jQuery.isFunction(jQuery.fn.initWaypoint)&&jQuery(window).initWaypoint(),"undefined"!=typeof niceScrollReInit&&niceScrollReInit()}),jQuery(o).hasClass("fusion-recent-posts-load-more")&&(jQuery(e).infinitescroll("unbind"),jQuery(o).find(".fusion-load-more-button").on("click",function(i){i.preventDefault(),jQuery(e).infinitescroll("retrieve")})),1===parseInt(o.data("pages"),10)&&(o.find(".fusion-loading-container").hide(),o.find(".fusion-load-more-button").hide())})});
!function(n){"use strict";function r(t){var e,i;(i={}).readOnly=void 0!==n(t).data("readonly")&&n(t).data("readonly"),i.lineNumbers=void 0!==n(t).data("linenumbers")&&n(t).data("linenumbers"),i.lineWrapping=void 0!==n(t).data("linewrapping")&&n(t).data("linewrapping"),i.theme=void 0!==n(t).data("theme")?n(t).data("theme"):"default",i.mode=void 0!==n(t).data("mode")?n(t).data("mode"):"text/html",e=wp.CodeMirror.fromTextArea(t,i),n(t).addClass("code-mirror-initialized"),e.setSize("100%","auto"),n(document).trigger("resize"),n(t).parents(".fusion-syntax-highlighter-container").css("opacity","1")}n(document).on("ready",function(){var e,i,a,t=n(".fusion-syntax-highlighter-textarea");n.each(t,function(t,e){i=n(e).parents(".fusion-tabs"),a=n(e).parents(".fusion-panel"),n(e).parents(".fusion-builder-element-content").length||(i.length?0===i.find(".nav-tabs li.active").index()&&i.find(".nav-tabs li.active .tab-link").attr("href")==="#"+n(e).parents(".tab-pane").attr("id")?r(e):i.find(".tab-link").click(function(){n(this).attr("href")!=="#"+n(e).parents(".tab-pane").attr("id")||n(e).hasClass("code-mirror-initialized")||setTimeout(function(){r(e)},200)}):a.length?(a.find(".panel-title a.active").length&&(e=a.find(a.find(".panel-title a.active").attr("href")).find(".fusion-syntax-highlighter-textarea")[0],r(e)),a.find(".panel-title a").click(function(){n(this).attr("href")!=="#"+n(e).parents(".panel-collapse").attr("id")||n(e).hasClass("code-mirror-initialized")||setTimeout(function(){r(e)},200)})):r(e))}),n(".syntax-highlighter-copy-code-title").click(function(){var t=n(this);e=document.getElementById(n(this).data("id")),t.parent(".syntax-highlighter-copy-code").addClass("syntax-highlighter-copying"),n(e).removeAttr("style").css({position:"absolute",left:"-1000%"}),n(e).select(),document.execCommand ("Copy",!1,null),setTimeout(function(){t.parent(".syntax-highlighter-copy-code").removeClass("syntax-highlighter-copying")},200)})})}(jQuery);
!function(l){function e(t,e,n,i){var a=t.text().split(e),s="";a.length&&(l(a).each(function(t,e){s+='
'+e+" "+i}),t.empty().append(s))}var n={init:function(){return this.each(function(){e(l(this),"","char","")})},words:function(){return this.each(function(){e(l(this)," ","word"," ")})},lines:function(){return this.each(function(){var t="eefec303079ad17405c889e092e105b0";e(l(this).children("br").replaceWith(t).end(),t,"line","")})}};l.fn.lettering=function(t){return t&&n[t]?n[t].apply(this,[].slice.call(arguments,1)):"letters"!==t&&t?(l.error("Method "+t+" does not exist on jQuery.lettering"),this):n.init.apply(this,[].slice.call(arguments,0))}}(jQuery),function(c){"use strict";function r(t){return/In/.test(t)||0<=c.inArray(t,c.fn.textillate.defaults.inEffects)}function u(t){return/Out/.test(t)||0<=c.inArray(t,c.fn.textillate.defaults.outEffects)}function a(t){return"true"!==t&&"false"!==t?t:"true"===t}function f(t){var e=t.attributes||[],i={};return e.length&&c.each(e,function(t,e){var n=e.nodeName.replace(/delayscale/,"delayScale");/^data-in-*/.test(n)?(i.in=i.in||{},i.in[n.replace(/data-in-/,"")]=a(e.nodeValue)):/^data-out-*/.test(n)?(i.out=i.out||{},i.out[n.replace(/data-out-/,"")]=a(e.nodeValue)):/^data-*/.test(n)&&(i[n.replace(/data-/,"")]=a(e.nodeValue))}),i}function d(t,l,i){var o=t.length;o?(l.shuffle&&(t=function(t){for(var e,n,i=t.length;i;e=parseInt(Math.random()*i),n=t[--i],t[i]=t[e],t[e]=n);return t}(t)),l.reverse&&(t=t.toArray().reverse()),c.each(t,function(t,e){var a=c(e);function s(){r(l.effect)?"typeOut"===l.effect?a.css("display","inline-block"):a.css("visibility","visible"):u(l.effect)&&("typeOut"===l.effect?a.css("display","none"):a.css("visibility","hidden")),!--o&&i&&i()}var n=l.sync?l.delay:l.delay*t*l.delayScale;a.text()?setTimeout(function(){var t,e,n,i;t=a,e=l.effect,n=s,i=0,"clipIn"===e?(t.css("width","auto"),i=t.width(),t.css("overflow","hidden"),t.css("width","0"),t.css("visibility","visible"),t.animate({width:i+.3*parseFloat(t.css("font-size"))},1200,function(){setTimeout(function(){n&&n()},100)})):"clipOut"===e?t.animate({width:"2px"},1200,function(){setTimeout(function(){n&&n()},100)}):"typeIn"===e?t.addClass("fusion-title-animated "+e).show():t.addClass("fusion-title-animated "+e).css("visibility","visible").show(),t.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){t.removeClass("fusion-title-animated "+e),n&&n()})},n):s()})):i&&i()}function s(t,e){var l=this,o=c(t);l.init=function(){l.$texts=o.find(e.selector),l.$texts.length||(l.$texts=c('
"),o.html(l.$texts)),l.$texts.hide(),l.$current=c('
').html(l.$texts.find(":first-child").html()).prependTo(o),r(e.in.effect)?l.$current.css("visibility","hidden"):u(e.out.effect)&&l.$current.css("visibility","visible"),l.setOptions(e),l.timeoutRun=null,setTimeout(function(){l.options.autoStart&&l.start()},l.options.initialDelay)},l.setOptions=function(t){l.options=t},l.triggerEvent=function(t){var e=c.Event(t+".tlt");return o.trigger(e,l),e},l.in=function(t,e){t=t||0;var n,i=l.$texts.find(":nth-child("+((t||0)+1)+")"),a=c.extend(!0,{},l.options,i.length?f(i[0]):{}),s=l.$current.closest(".fusion-animated-texts-wrapper");i.addClass("current"),l.triggerEvent("inAnimationBegin"),o.attr("data-active",i.data("id")),"line"==l.options.length?l.$current.html(i.html()).lettering("lines"):l.$current.html(i.html()).lettering("words"),"char"==l.options.length&&l.$current.find('[class^="word"]').css({display:"inline-block","-webkit-transform":"translate3d(0,0,0)","-moz-transform":"translate3d(0,0,0)","-o-transform":"translate3d(0,0,0)",transform:"translate3d(0,0,0)"}).each(function(){c(this).lettering()}),n=l.$current.find('[class^="'+l.options.length+'"]').css("display","inline-block"),r(a.in.effect)?"typeIn"===a.in.effect?n.css("display","none"):n.css("visibility","hidden"):u(a.in.effect)&&n.css("visibility","visible"),"typeIn"!==a.in.effect&&"clipIn"!==a.in.effect||void 0!==s.attr("style")&&-1!==s.attr("style").indexOf("width")||l.$current.closest(".fusion-animated-texts-wrapper").css("width","auto"),l.currentIndex=t,d(n,a.in,function(){l.triggerEvent("inAnimationEnd"),a.in.callback&&a.in.callback(),e&&e(l)})},l.out=function(t){var e=l.$texts.find(":nth-child("+((l.currentIndex||0)+1)+")"),n=l.$current.find('[class^="'+l.options.length+'"]'),i=c.extend(!0,{},l.options,e.length?f(e[0]):{});l.triggerEvent("outAnimationBegin"),d(n,i.out,function(){e.removeClass("current"),l.triggerEvent("outAnimationEnd"),o.removeAttr("data-active"),i.out.callback&&i.out.callback(),t&&t(l)})},l.start=function(t){setTimeout(function(){l.triggerEvent("start"),function e(n){l.in(n,function(){var t=l.$texts.children().length;n+=1,!l.options.loop&&t<=n?(l.options.callback&&l.options.callback(),l.triggerEvent("end")):(n%=t,l.timeoutRun=setTimeout(function(){l.out(function(){e(n)})},l.options.minDisplayTime))})}(t||0)},l.options.initialDelay)},l.stop=function(){l.timeoutRun&&(clearInterval(l.timeoutRun),l.timeoutRun=null)},l.init()}c.fn.textillate=function(i,a){return this.each(function(){var t=c(this),e=t.data("textillate"),n=c.extend(!0,{},c.fn.textillate.defaults,f(this),"object"==typeof i&&i);e?"string"==typeof i?e[i].apply(e,[].concat(a)):e.setOptions.call(e,n):t.data("textillate",e=new s(this,n))})},c.fn.textillate.defaults={selector:".texts",loop:!0,minDisplayTime:1200,initialDelay:0,in:{effect:"fadeIn",delayScale:1.5,delay:100,sync:!1,reverse:!1,shuffle:!1,callback:function(){}},out:{effect:"fadeOut",delayScale:1.5,delay:100,sync:!1,reverse:!1,shuffle:!1,callback:function(){}},autoStart:!0,inEffects:[],outEffects:["hinge"],callback:function(){},type:"word"}}(jQuery);
!function(d){"use strict";d.fn.fusion_responsive_title_element=function(){d(this).each(function(){var t=d(this),i=t.find("h1, h2, h3, h4, h5, h6"),e=i.data("min-width")?i.data("min-width"):i.outerWidth(),n=t.parent(),o=t.parents(".slide-content").length?n.width():n.outerWidth(),a=t.find(".fusion-animated-texts-wrapper");(0!==e&&!1!==e&&"0"!==e||0!==o&&!1!==o&&"0"!==o)&&o<=e+100?(t.addClass("fusion-border-below-title"),i.data("min-width",e)):t.removeClass("fusion-border-below-title"),d(t).hasClass("fusion-title-rotating")&&!d(t).is(".fusion-title-typeIn,.fusion-title-clipIn")&&a.fusion_animated_title_element_rotation_width()})},d.fn.fusion_animated_title_element=function(){d(this).each(function(){var t=d(this),i=t.find(".fusion-animated-texts-wrapper"),e=t.hasClass("fusion-loop-on"),n="",o="",a="",s="",f=0,l="";d(t).hasClass("fusion-title-rotating")&&(s=getWaypointOffset(d(t).find(".fusion-animated-texts-wrapper")),l=d(t).closest("[data-animationduration]").data("animationduration"),d(t).find(".fusion-animated-texts-wrapper").removeData("textillate"),d(t).find(".fusion-textillate").remove(),d(t).is(".fusion-title-typeIn,.fusion-title-clipIn")||i.fusion_animated_title_element_rotation_width(),void 0!==l&&(f=200*parseFloat(l)),d(t).find(".fusion-animated-texts-wrapper").waypoint(function(){d(t).find(".fusion-animated-texts-wrapper").textillate({selector:".fusion-animated-texts",type:i.attr("data-length"),minDisplayTime:i.attr("data-minDisplayTime"),loop:e,initialDelay:f})},{triggerOnce:!0,offset:s})),d(t).hasClass("fusion-title-highlight")&&(s=getWaypointOffset(d(t).find(".fusion-highlighted-text")),n={circle:["M344.6,40.1c0,0-293-3.4-330.7,40.3c-5.2,6-3.5,15.3,3.3,19.4c65.8,39,315.8,42.3,451.2-3 c6.3-2.1,12-6.1,16-11.4C527.9,27,242,16.1,242,16.1"],underline_zigzag:["M6.1,133.6c0,0,173.4-20.6,328.3-14.5c154.8,6.1,162.2,8.7,162.2,8.7s-262.6-4.9-339.2,13.9 c0,0,113.8-6.1,162.9,6.9"],x:["M25.8,37.1c0,0,321.2,56.7,435.5,82.3","M55.8,108.7c0,0,374-78.3,423.6-76.3"],strikethrough:["M22.2,93.2c0,0,222.1-11.3,298.8-15.8c84.2-4.9,159.1-4.7,159.1-4.7"],curly:["M9.4,146.9c0,0,54.4-60.2,102.1-11.6c42.3,43.1,84.3-65.7,147.3,0.9c37.6,39.7,79.8-52.6,123.8-14.4 c68.6,59.4,107.2-7,107.2-7"],diagonal_bottom_left:["M6.5,127.1C10.6,126.2,316.9,24.8,497,23.9"],diagonal_top_left:["M7.2,28.5c0,0,376.7,64.4,485.2,93.4"],double:["M21.7,145.7c0,0,192.2-33.7,456.3-14.6","M13.6,28.2c0,0,296.2-22.5,474.9-5.4"],double_underline:["M10.3,130.6c0,0,193.9-24.3,475.2-11.2","M38.9,148.9c0,0,173.8-35.3,423.3-11.8"],underline:["M8.1,146.2c0,0,240.6-55.6,479-13.8"]}[d(t).data("highlight")],o=d(),"object"==typeof n&&n.forEach(function(t){o=o.add(d("",{d:t}))}),a=d("",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 150",preserveAspectRatio:"none"}).html(o),d(t).find(".fusion-highlighted-text").waypoint(function(){d(t).find(".fusion-highlighted-text-wrapper svg").remove(),d(t).find(".fusion-highlighted-text").after(a[0].outerHTML)},{triggerOnce:!0,offset:s}))})},d.fn.fusion_animated_title_element_rotation_width=function(){var t=d(this),i=t.find(".fusion-animated-texts"),e=0,n=0,o=!1;e=parseInt(t.find(".fusion-animated-text").css("font-size")),e*=.6,i.is(":visible")||(o=!0,i.show()),d(t).find(".fusion-animated-text").each(function(){var t=d(this).width();n
'),o(this).doCountDown(o(this).attr("id"),diffSecs,500),this},o.fn.stopCountDown=function(){clearTimeout(o.data(this[0],"timer"))},o.fn.startCountDown=function(){this.doCountDown(o(this).attr("id"),o.data(this[0],"diffSecs"),500)},o.fn.setCountDown=function(t){var e=new Date;t.targetDate?e=new Date(t.targetDate.month+"/"+t.targetDate.day+"/"+t.targetDate.year+" "+t.targetDate.hour+":"+t.targetDate.min+":"+t.targetDate.sec+(t.targetDate.utc?" UTC":"")):t.targetOffset&&(e.setFullYear(t.targetOffset.year+e.getFullYear()),e.setMonth(t.targetOffset.month+e.getMonth()),e.setDate(t.targetOffset.day+e.getDate()),e.setHours(t.targetOffset.hour+e.getHours()),e.setMinutes(t.targetOffset.min+e.getMinutes()),e.setSeconds(t.targetOffset.sec+e.getSeconds()));var s=new Date;if(t.gmtOffset){var i=60*t.gmtOffset*6e4,a=6e4*s.getTimezoneOffset();s=new Date(s.getTime()+i+a)}return diffSecs=Math.floor((e.valueOf()-s.valueOf())/1e3),o.data(this[0],"diffSecs",diffSecs),diffSecs},o.fn.doCountDown=function(s,i,a){$this=o("#"+s),i<=0&&(i=0,$this.data("timer")&&clearTimeout($this.data("timer"))),secs=i%60,mins=Math.floor(i/60)%60,hours=Math.floor(i/60/60)%24,weeks=(days=1==$this.data("omitWeeks")?Math.floor(i/60/60/24):Math.floor(i/60/60/24)%7,Math.floor(i/60/60/24/7)),99');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o '),a[o]&&e.push(a[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(l){var u=l.data;return u.labels.length&&u.datasets.length?u.labels.map(function(t,e){var i=l.getDatasetMeta(0),n=u.datasets[0],a=i.data[e],o=a&&a.custom||{},r=A.valueAtIndexOrDefault,s=l.options.elements.arc;return{text:t,fillStyle:o.backgroundColor?o.backgroundColor:r(n.backgroundColor,e,s.backgroundColor),strokeStyle:o.borderColor?o.borderColor:r(n.borderColor,e,s.borderColor),lineWidth:o.borderWidth?o.borderWidth:r(n.borderWidth,e,s.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i=Math.PI?-1:f<-Math.PI?1:0))+h,p=Math.cos(f),m=Math.sin(f),v=Math.cos(g),b=Math.sin(g),x=f<=0&&0<=g||f<=2*Math.PI&&2*Math.PI<=g,y=f<=.5*Math.PI&&.5*Math.PI<=g||f<=2.5*Math.PI&&2.5*Math.PI<=g,k=f<=-Math.PI&&-Math.PI<=g||f<=Math.PI&&Math.PI<=g,w=f<=.5*-Math.PI&&.5*-Math.PI<=g||f<=1.5*Math.PI&&1.5*Math.PI<=g,M=c/100,S=k?-1:Math.min(p*(p<0?1:M),v*(v<0?1:M)),C=w?-1:Math.min(m*(m<0?1:M),b*(b<0?1:M)),_=x?1:Math.max(p*(0');var i=t.data,n=i.datasets,a=i.labels;if(n.length)for(var o=0;o '),a[o]&&e.push(a[o]),e.push("");return e.push(""),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getDatasetMeta(0),n=l.datasets[0],a=i.data[e].custom||{},o=k.valueAtIndexOrDefault,r=s.options.elements.arc;return{text:t,fillStyle:a.backgroundColor?a.backgroundColor:o(n.backgroundColor,e,r.backgroundColor),strokeStyle:a.borderColor?a.borderColor:o(n.borderColor,e,r.borderColor),lineWidth:a.borderWidth?a.borderWidth:o(n.borderWidth,e,r.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,n,a,o=e.index,r=this.chart;for(i=0,n=(r.data.datasets||[]).length;i=e.numSteps?(o.callback(e.onAnimationComplete,[e],i),i.animating=!1,n.splice(a,1)):++a}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,i){"use strict";var d=t(25),c=t(45),a=t(28),h=t(48);e.exports=function(u){var l=u.plugins;function s(t){return"top"===t||"bottom"===t}u.types={},u.instances={},u.controllers={},c.extend(u.prototype,{construct:function(t,e){var i,n,a=this;(n=(i=(i=e)||{}).data=i.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],i.options=c.configMerge(d.global,d[i.type],i.options||{}),e=i;var o=h.acquireContext(t,e),r=o&&o.canvas,s=r&&r.height,l=r&&r.width;a.id=c.uid(),a.ctx=o,a.canvas=r,a.config=e,a.width=l,a.height=s,a.aspectRatio=s?l/s:null,a.options=e.options,a._bufferedRender=!1,(a.chart=a).controller=a,u.instances[a.id]=a,Object.defineProperty(a,"data",{get:function(){return a.config.data},set:function(t){a.config.data=t}}),o&&r&&(a.initialize(),a.update())},initialize:function(){var t=this;return l.notify(t,"beforeInit"),c.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return c.canvas.clear(this),this},stop:function(){return u.animationService.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,a=i.maintainAspectRatio&&e.aspectRatio||null,o=Math.max(0,Math.floor(c.getMaximumWidth(n))),r=Math.max(0,Math.floor(a?o/a:c.getMaximumHeight(n)));if((e.width!==o||e.height!==r)&&(n.width=e.width=o,n.height=e.height=r,n.style.width=o+"px",n.style.height=r+"px",c.retinaScale(e,i.devicePixelRatio),!t)){var s={width:o,height:r};l.notify(e,"resize",[s]),e.options.onResize&&e.options.onResize(e,s),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;c.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),c.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildScales:function(){var o=this,t=o.options,r=o.scales={},e=[];t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),c.each(e,function(t){var e=t.options,i=c.valueOrDefault(e.type,t.dtype),n=u.scaleService.getScaleConstructor(i);if(n){s(e.position)!==s(t.dposition)&&(e.position=t.dposition);var a=new n({id:e.id,options:e,ctx:o.ctx,chart:o});(r[a.id]=a).mergeTicksOptions(),t.isDefault&&(o.scale=a)}}),u.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var o=this,r=[],s=[];return c.each(o.data.datasets,function(t,e){var i=o.getDatasetMeta(e),n=t.type||o.config.type;if(i.type&&i.type!==n&&(o.destroyDatasetMeta(e),i=o.getDatasetMeta(e)),i.type=n,r.push(i.type),i.controller)i.controller.updateIndex(e);else{var a=u.controllers[i.type];if(void 0===a)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new a(o,e),s.push(i.controller)}},o),s},resetElements:function(){var i=this;c.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.reset()},i)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e,i,n=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),(i=(e=n).options).scale?e.scale.options=i.scale:i.scales&&i.scales.xAxes.concat(i.scales.yAxes).forEach(function(t){e.scales[t.id].options=t}),e.tooltip._options=i.tooltips,!1!==l.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var a=n.buildOrUpdateControllers();c.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),n.updateLayout(),c.each(a,function(t){t.reset()}),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],l.notify(n,"afterUpdate"),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(u.layoutService.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t=e[t].length&&e[t].push({}),!e[t][a].type||r.type&&r.type!==e[t][a].type?g.merge(e[t][a],[l.scaleService.getScaleDefaults(o),r]):g.merge(e[t][a],r)}else g._merger(t,e,i,n)}})},g.where=function(t,e){if(g.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return g.each(t,function(t){e(t)&&i.push(t)}),i},g.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,a=t.length;n=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},g.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},g.niceNum=function(t,e){var i=Math.floor(g.log10(t)),n=t/Math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,i)},g.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},g.getRelativePosition=function(t,e){var i,n,a=t.originalEvent||t,o=t.currentTarget||t.srcElement,r=o.getBoundingClientRect(),s=a.touches;n=s&&0i.length){for(var l=0;le&&(e=t.length)}),e},g.color=n?function(t){return t instanceof CanvasGradient&&(t=a.global.defaultColor),n(t)}:function(t){return t},g.getHoverColor=function(t){return t instanceof CanvasPattern?t:g.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,i){"use strict";var n=t(45);function s(t,e){return t.native?{x:t.x,y:t.y}:n.getRelativePosition(t,e)}function l(t,e){var i,n,a,o,r;for(n=0,o=t.data.datasets.length;nt.maxHeight){o--;break}o++,l=r*s}t.labelRotation=o},afterCalculateTickRotation:function(){E.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){E.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=S(t._ticks),n=t.options,a=n.ticks,o=n.scaleLabel,r=n.gridLines,s=n.display,l=t.isHorizontal(),u=w(a),d=n.gridLines.tickMarkLength;if(e.width=l?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&r.drawTicks?d:0,e.height=l?s&&r.drawTicks?d:0:t.maxHeight,o.display&&s){var c=M(o)+E.options.toPadding(o.padding).height;l?e.height+=c:e.width+=c}if(a.display&&s){var h=E.longestText(t.ctx,u.font,i,t.longestTextCache),f=E.numberOfLabelLines(i),g=.5*u.size,p=t.options.ticks.padding;if(l){t.longestLabelWidth=h;var m=E.toRadians(t.labelRotation),v=Math.cos(m),b=Math.sin(m)*h+u.size*f+g*(f-1)+g;e.height=Math.min(t.maxHeight,e.height+b+p),t.ctx.font=u.font;var x=k(t.ctx,i[0],u.font),y=k(t.ctx,i[i.length-1],u.font);0!==t.labelRotation?(t.paddingLeft="bottom"===n.position?v*x+3:v*g+3,t.paddingRight="bottom"===n.position?v*g+3:v*y+3):(t.paddingLeft=x/2+3,t.paddingRight=y/2+3)}else a.mirror?h=0:h+=p+g,e.width=Math.min(t.maxWidth,e.width+h),t.paddingTop=u.size/2,t.paddingBottom=u.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){E.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(E.isNullOrUndef(t))return NaN;if("number"==typeof t&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},getLabelForIndex:E.noop,getPixelForValue:E.noop,getValueForPixel:E.noop,getPixelForTick:function(t){var e=this,i=e.options.offset;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(i?0:1),1),a=n*t+e.paddingLeft;i&&(a+=n/2);var o=e.left+Math.round(a);return o+=e.isFullWidth()?e.margins.left:0}var r=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(r/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft,n=e.left+Math.round(i);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0o.width-(o.paddingLeft+o.paddingRight)&&(e=1+Math.floor((c+s.autoSkipPadding)*l/(o.width-(o.paddingLeft+o.paddingRight)))),a&&al.height-e.height&&(c="bottom");var h=(u.left+u.right)/2,f=(u.top+u.bottom)/2;n="center"===c?(i=function(t){return t<=h},function(t){return h=l.width-e.width/2}),a=function(t){return t+e.width>l.width},o=function(t){return t-e.width<0},r=function(t){return t<=f?"top":"bottom"},i(s.x)?(d="left",a(s.x)&&(d="center",c=r(s.y))):n(s.x)&&(d="right",o(s.x)&&(d="center",c=r(s.y)));var g=t._options;return{xAlign:g.xAlign?g.xAlign:d,yAlign:g.yAlign?g.yAlign:c}}(this,I=L(this,M)),a=I,o=_,r=(n=M).x,s=n.y,l=n.caretSize,u=n.caretPadding,d=n.cornerRadius,c=o.xAlign,h=o.yAlign,f=l+u,g=d+u,"right"===c?r-=a.width:"center"===c&&(r-=a.width/2),"top"===h?s+=f:s-="bottom"===h?a.height+f:a.height/2,"center"===h?"left"===c?r+=f:"right"===c&&(r-=f):"left"===c?r-=g:"right"===c&&(r+=g),D={x:r,y:s}}else M.opacity=0;return M.xAlign=_.xAlign,M.yAlign=_.yAlign,M.x=D.x,M.y=D.y,M.width=I.width,M.height=I.height,M.caretX=P.x,M.caretY=P.y,y._model=M,t&&k.custom&&k.custom.call(y,M),y},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,a=this.getCaretPosition(t,e,n);i.lineTo(a.x1,a.y1),i.lineTo(a.x2,a.y2),i.lineTo(a.x3,a.y3)},getCaretPosition:function(t,e,i){var n,a,o,r,s,l,u=i.caretSize,d=i.cornerRadius,c=i.xAlign,h=i.yAlign,f=t.x,g=t.y,p=e.width,m=e.height;if("center"===h)s=g+m/2,l="left"===c?(a=(n=f)-u,o=n,r=s+u,s-u):(a=(n=f+p)+u,o=n,r=s-u,s+u);else if(o=(n="left"===c?(a=f+d+u)-u:"right"===c?(a=f+p-d-u)-u:(a=f+p/2)-u,a+u),"top"===h)s=(r=g)-u,l=r;else{s=(r=g+m)+u,l=r;var v=o;o=n,n=v}return{x1:n,x2:a,x3:o,y1:r,y2:s,y3:l}},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline="top";var o,r,s=e.titleFontSize,l=e.titleSpacing;for(i.fillStyle=h(e.titleFontColor,n),i.font=z.fontString(s,e._titleFontStyle,e._titleFontFamily),o=0,r=a.length;o=i.innerRadius&&o<=i.outerRadius;return l&&u}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,i){"use strict";var n=t(25),a=t(26),d=t(45),c=n.global;n._set("global",{elements:{line:{tension:.4,backgroundColor:c.defaultColor,borderWidth:3,borderColor:c.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=a.extend({draw:function(){var t,e,i,n,a=this._view,o=this._chart.ctx,r=a.spanGaps,s=this._children.slice(),l=c.elements.line,u=-1;for(this._loop&&s.length&&s.push(s[0]),o.save(),o.lineCap=a.borderCapStyle||l.borderCapStyle,o.setLineDash&&o.setLineDash(a.borderDash||l.borderDash),o.lineDashOffset=a.borderDashOffset||l.borderDashOffset,o.lineJoin=a.borderJoinStyle||l.borderJoinStyle,o.lineWidth=a.borderWidth||l.borderWidth,o.strokeStyle=a.borderColor||c.defaultColor,o.beginPath(),u=-1,t=0;t=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return i},inLabelRange:function(t,e){if(!this._view)return!1;var i=o(this);return l(this)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,i=this._view;return e=l(this)?(t=i.x,(i.y+i.base)/2):(t=(i.x+i.base)/2,i.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,i){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,i){"use strict";var n=t(42);i=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,a,o){if(o){var r=Math.min(o,n/2),s=Math.min(o,a/2);t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.quadraticCurveTo(e+n,i,e+n,i+s),t.lineTo(e+n,i+a-s),t.quadraticCurveTo(e+n,i+a,e+n-r,i+a),t.lineTo(e+r,i+a),t.quadraticCurveTo(e,i+a,e,i+a-s),t.lineTo(e,i+s),t.quadraticCurveTo(e,i,e+r,i)}else t.rect(e,i,n,a)},drawPoint:function(t,e,i,n,a){var o,r,s,l,u,d;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(o=e.toString())&&"[object HTMLCanvasElement]"!==o){if(!(isNaN(i)||i<=0)){switch(e){default:t.beginPath(),t.arc(n,a,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),u=(r=3*i/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(n-r/2,a+u/3),t.lineTo(n+r/2,a+u/3),t.lineTo(n,a-2*u/3),t.closePath(),t.fill();break;case"rect":d=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-d,a-d,2*d,2*d),t.strokeRect(n-d,a-d,2*d,2*d);break;case"rectRounded":var c=i/Math.SQRT2,h=n-c,f=a-c,g=Math.SQRT2*i;t.beginPath(),this.roundedRect(t,h,f,g,g,i/2),t.closePath(),t.fill();break;case"rectRot":d=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-d,a),t.lineTo(n,a+d),t.lineTo(n+d,a),t.lineTo(n,a-d),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,a+i),t.lineTo(n,a-i),t.moveTo(n-i,a),t.lineTo(n+i,a),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n-s,a+l),t.lineTo(n+s,a-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,a+i),t.lineTo(n,a-i),t.moveTo(n-i,a),t.lineTo(n+i,a),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,a-l),t.lineTo(n+s,a+l),t.moveTo(n-s,a+l),t.lineTo(n+s,a-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,a),t.lineTo(n+i,a),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,a),t.lineTo(n+i,a),t.closePath()}t.stroke()}}else t.drawImage(e,n-e.width/2,a-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){if(i.steppedLine)return"after"===i.steppedLine&&!n||"after"!==i.steppedLine&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),void t.lineTo(i.x,i.y);i.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):t.lineTo(i.x,i.y)}};n.clear=i.clear,n.drawRoundedRectangle=function(t){t.beginPath(),i.roundedRect.apply(i,arguments),t.closePath()}},{42:42}],42:[function(t,e,i){"use strict";var n,d={noop:function(){},uid:(n=0,function(){return n++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return d.valueOrDefault(d.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var a,o,r;if(d.isArray(t))if(o=t.length,n)for(a=o-1;0<=a;a--)e.call(i,t[a],a);else for(a=0;a