(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(){ wpcf7_redirect_mailsent_handler(); }); function wpcf7_redirect_mailsent_handler(){ document.addEventListener('wpcf7mailsent', function(event){ form=wpcf7_redirect_forms [ event.detail.contactFormId ]; if(form.after_sent_script){ form.after_sent_script=htmlspecialchars_decode(form.after_sent_script); eval(form.after_sent_script); } if(form.use_external_url&&form.external_url){ redirect_url=form.external_url; }else{ redirect_url=form.thankyou_page_url; } if(form.http_build_query){ http_query=jQuery.param(event.detail.inputs, true); redirect_url=redirect_url + '?' + decodeURIComponent(http_query); }else if(form.http_build_query_selectively){ http_query='?'; selective_fields=form.http_build_query_selectively_fields.split(' ').join(''); event.detail.inputs.forEach(function(element, index){ if(selective_fields.indexOf(element.name)!=-1){ http_query +=element.name + '=' + element.value + '&'; }}); http_query=http_query.slice(0, -1); redirect_url=redirect_url + decodeURIComponent(http_query); } if(redirect_url){ if(! form.open_in_new_tab){ console.log(form); if(form.delay_redirect){ setTimeout(function(){ location.href=redirect_url; }, form.delay_redirect); }else{ location.href=redirect_url; }}else{ if(form.delay_redirect){ setTimeout(function(){ window.open(redirect_url); }, form.delay_redirect); }else{ window.open(redirect_url); }} }}, false); } function htmlspecialchars_decode(string){ var map={ '&': '&', '&': "&", '<': '<', '>': '>', '"': '"', ''': "'", '’': "’", '‘': "‘", '–': "–", '—': "—", '…': "…", '”': '”' }; return string.replace(/\&[\w\d\#]{2,5}\;/g, function(m){ return map[m]; }); }; (function(g){var q={vertical:!1,rtl:!1,start:1,offset:1,size:null,scroll:1,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:"
    ",buttonPrevHTML:"
    ",buttonNextEvent:"click",buttonPrevEvent:"click", buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},m=!1;g(window).bind("load.jcarousel",function(){m=!0});g.jcarousel=function(a,c){this.options=g.extend({},q,c||{});this.autoStopped=this.locked=!1;this.buttonPrevState=this.buttonNextState=this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===void 0)this.options.rtl=(g(a).attr("dir")||g("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical? this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),f=0;f").parent();if(this.container.size()===0)this.container=this.clip.wrap("
    ").parent();b!==""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('
    ');this.buttonPrev=g(".jcarousel-prev",this.container);if(this.buttonPrev.size()===0&&this.options.buttonPrevHTML!==null)this.buttonPrev=g(this.options.buttonPrevHTML).appendTo(this.container);this.buttonPrev.addClass(this.className("jcarousel-prev"));this.buttonNext=g(".jcarousel-next",this.container);if(this.buttonNext.size()===0&&this.options.buttonNextHTML!==null)this.buttonNext=g(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 j=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible):null,b=this.list.children("li"),e=this;if(b.size()>0){var h=0,i=this.options.offset;b.each(function(){e.format(this,i++);h+=e.dimension(this,j)});this.list.css(this.wh,h+100+"px");if(!c||c.size===void 0)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display", "block");this.funcNext=function(){e.next()};this.funcPrev=function(){e.prev()};this.funcResize=function(){e.resizeTimer&&clearTimeout(e.resizeTimer);e.resizeTimer=setTimeout(function(){e.reload()},100)};this.options.initCallback!==null&&this.options.initCallback(this,"init");!m&&g.browser.safari?(this.buttons(!1,!1),g(window).bind("load.jcarousel",function(){e.setup()})):this.setup()};var f=g.jcarousel;f.fn=f.prototype={jcarousel:"0.2.8"};f.fn.extend=f.extend=g.extend;f.fn.extend({setup:function(){this.prevLast=this.prevFirst=this.last=this.first=null;this.animating=!1;this.tail=this.resizeTimer=this.timer=null;this.inTail=!1;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start,!0);this.prevFirst=this.prevLast=null;this.animate(a,!1);g(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize);this.options.setupCallback!==null&&this.options.setupCallback(this)}},reset:function(){this.list.empty();this.list.css(this.lt, "0px");this.list.css(this.wh,"10px");this.options.initCallback!==null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!==null&&this.inTail&&this.list.css(this.lt,f.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=!1;this.options.reloadCallback!==null&&this.options.reloadCallback(this);if(this.options.visible!==null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(f){b+=a.dimension(this, c);f+1this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return!1}return!0}, get:function(a){return g(">.jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,p=g(c);if(b.length===0)for(var j,e=f.intval(a),b=this.create(a);;){if(j=this.get(--e),e<=0||j.length){e<=0?this.list.prepend(b):j.after(b);break}}else d=this.dimension(b);p.get(0).nodeName.toUpperCase()=="LI"?(b.replaceWith(p),b=p):b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);p=this.options.visible!==null?Math.ceil(this.clipping()/this.options.visible): null;d=this.dimension(b,p)-d;a>0&&a=this.first&&a<=this.last)){var b=this.dimension(c);athis.options.size?this.options.size:a);for(var d=this.first>a,g=this.options.wrap!="circular"&&this.first<=1?1:this.first,j=d?this.get(g): this.get(this.last),e=d?g:g-1,h=null,i=0,k=!1,l=0;d?--e>=a:++ethis.options.size)))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)));j=h;l=this.dimension(h);k&&(i+=l);if(this.first!==null&&(this.options.wrap=="circular"||e>=1&&(this.options.size===null||e<=this.options.size)))b=d?b+l:b-l}for(var g=this.clipping(),m=[],o=0,n=0,j=this.get(a-1),e=a;++o;){h=this.get(e);k=!h.length;if(h.length===0){h=this.create(e).addClass(this.className("jcarousel-item-placeholder"));if(j.length===0)this.list.prepend(h);else j[d?"before":"after"](h);if(this.first!==null&&this.options.wrap=="circular"&&this.options.size!==null&&(e<=0||e>this.options.size))j=this.get(this.index(e)),j.length&&(h=this.add(e,j.clone(!0)))}j=h;l=this.dimension(h);if(l===0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting..."); this.options.wrap!="circular"&&this.options.size!==null&&e>this.options.size?m.push(h):k&&(i+=l);n+=l;if(n>=g)break;e++}for(h=0;h0&&(this.list.css(this.wh,this.dimension(this.list)+i+"px"),d&&(b-=i,this.list.css(this.lt,f.intval(this.list.css(this.lt))-i+"px")));i=a+o-1;if(this.options.wrap!="circular"&&this.options.size&&i>this.options.size)i=this.options.size;if(e>i){o=0;e=i;for(n=0;++o;){h=this.get(e--);if(!h.length)break;n+=this.dimension(h);if(n>=g)break}}e=i-o+ 1;this.options.wrap!="circular"&&e<1&&(e=1);if(this.inTail&&d)b+=this.tail,this.inTail=!1;this.tail=null;if(this.options.wrap!="circular"&&i==this.options.size&&i-o+1>=1&&(d=f.intval(this.get(i).css(!this.options.vertical?"marginRight":"marginBottom")),n-d>g))this.tail=n-g-d;if(c&&a===this.options.size&&this.tail)b-=this.tail,this.inTail=!0;for(;a-- >e;)b+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=e;this.last=i;return b},animate:function(a,c){if(!this.locked&&!this.animating){this.animating=!0;var b=this,d=function(){b.animating=!1;a===0&&b.list.css(b.lt,0);!b.autoStopped&&(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size===null||b.last=b.first&&c<=b.last)&&(c<1||c>b.options.size)&&b.remove(c)}; this.notify("onBeforeAnimation");if(!this.options.animation||c===!1)this.list.css(this.lt,a+"px"),d();else{var f=!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},d={duration:this.options.animation,easing:this.options.easing,complete:d};if(g.isFunction(this.options.animationStepCallback))d.step=this.options.animationStepCallback;this.list.animate(f,d)}}},startAuto:function(a){if(a!==void 0)this.options.auto=a;if(this.options.auto===0)return this.stopAuto();if(this.timer===null){this.autoStopped= !1;var c=this;this.timer=window.setTimeout(function(){c.next()},this.options.auto*1E3)}},stopAuto:function(){this.pauseAuto();this.autoStopped=!0},pauseAuto:function(){if(this.timer!==null)window.clearTimeout(this.timer),this.timer=null},buttons:function(a,c){if(a==null&&(a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size===null||this.last=this.options.size))a=this.tail!==null&&!this.inTail;if(c==null&&(c=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1),!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!==null&&this.first==1))c=this.tail!==null&&this.inTail;var b=this;this.buttonNext.size()>0?(this.buttonNext.unbind(this.options.buttonNextEvent+".jcarousel",this.funcNext),a&&this.buttonNext.bind(this.options.buttonNextEvent+".jcarousel",this.funcNext), this.buttonNext[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?!1:!0),this.options.buttonNextCallback!==null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a)):this.options.buttonNextCallback!==null&&this.buttonNextState!=a&&this.options.buttonNextCallback(b,null,a);this.buttonPrev.size()>0?(this.buttonPrev.unbind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev), c&&this.buttonPrev.bind(this.options.buttonPrevEvent+".jcarousel",this.funcPrev),this.buttonPrev[c?"removeClass":"addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?!1:!0),this.options.buttonPrevCallback!==null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)):this.options.buttonPrevCallback!==null&&this.buttonPrevState!=c&&this.options.buttonPrevCallback(b,null,c);this.buttonNextState=a;this.buttonPrevState=c},notify:function(a){var c=this.prevFirst===null?"init":this.prevFirst=j&&k<=e)&&a(k)}}},create:function(a){return this.format("
  • ",a)},format:function(a,c){for(var a=g(a),b=a.get(0).className.split(" "),d=0;d .active'),transition=callback&&$.support.transition&&$active.hasClass('fade') function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active') element.addClass('active') if(transition){element[0].offsetWidth element.addClass('in')}else{element.removeClass('fade')} if(element.parent('.dropdown-menu')){element.closest('li.dropdown').addClass('active')} callback&&callback()} transition?$active.one($.support.transition.end,next):next() $active.removeClass('in')}} $.fn.tab=function(option){return this.each(function(){var $this=$(this),data=$this.data('tab') if(!data)$this.data('tab',(data=new Tab(this))) if(typeof option=='string')data[option]()})} $.fn.tab.Constructor=Tab $(function(){$('body').on('click.tab.data-api','[data-toggle="tab"], [data-toggle="pill"]',function(e){e.preventDefault() $(this).tab('show')})})}(window.jQuery); !function($){"use strict";var Tooltip=function(element,options){this.init('tooltip',element,options)} Tooltip.prototype={constructor:Tooltip,init:function(type,element,options){var eventIn,eventOut this.type=type this.$element=$(element) this.options=this.getOptions(options) this.enabled=true if(this.options.trigger!='manual'){eventIn=this.options.trigger=='hover'?'mouseenter':'focus' eventOut=this.options.trigger=='hover'?'mouseleave':'blur' this.$element.on(eventIn,this.options.selector,$.proxy(this.enter,this)) this.$element.on(eventOut,this.options.selector,$.proxy(this.leave,this))} this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle()},getOptions:function(options){options=$.extend({},$.fn[this.type].defaults,options,this.$element.data()) if(options.delay&&typeof options.delay=='number'){options.delay={show:options.delay,hide:options.delay}} return options},enter:function(e){var self=$(e.currentTarget)[this.type](this._options).data(this.type) if(!self.options.delay||!self.options.delay.show)return self.show() clearTimeout(this.timeout) self.hoverState='in' this.timeout=setTimeout(function(){if(self.hoverState=='in')self.show()},self.options.delay.show)},leave:function(e){var self=$(e.currentTarget)[this.type](this._options).data(this.type) if(this.timeout)clearTimeout(this.timeout) if(!self.options.delay||!self.options.delay.hide)return self.hide() self.hoverState='out' this.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide()},self.options.delay.hide)},show:function(){var $tip,inside,pos,actualWidth,actualHeight,placement,tp if(this.hasContent()&&this.enabled){$tip=this.tip() this.setContent() if(this.options.animation){$tip.addClass('fade')} placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement inside=/in/.test(placement) $tip.remove().css({top:0,left:0,display:'block'}).appendTo(inside?this.$element:document.body) pos=this.getPosition(inside) actualWidth=$tip[0].offsetWidth actualHeight=$tip[0].offsetHeight switch(inside?placement.split(' ')[1]:placement){case'bottom':tp={top:pos.top+pos.height,left:pos.left+pos.width / 2-actualWidth / 2} break case'top':tp={top:pos.top-actualHeight,left:pos.left+pos.width / 2-actualWidth / 2} break case'left':tp={top:pos.top+pos.height / 2-actualHeight / 2,left:pos.left-actualWidth} break case'right':tp={top:pos.top+pos.height / 2-actualHeight / 2,left:pos.left+pos.width} break} $tip.css(tp).addClass(placement).addClass('in')}},isHTML:function(text){return typeof text!='string'||(text.charAt(0)==="<"&&text.charAt(text.length-1)===">"&&text.length>=3)||/^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(text)},setContent:function(){var $tip=this.tip(),title=this.getTitle() $tip.find('.tooltip-inner')[this.isHTML(title)?'html':'text'](title) $tip.removeClass('fade in top bottom left right')},hide:function(){var that=this,$tip=this.tip() $tip.removeClass('in') function removeWithAnimation(){var timeout=setTimeout(function(){$tip.off($.support.transition.end).remove()},500) $tip.one($.support.transition.end,function(){clearTimeout(timeout) $tip.remove()})} $.support.transition&&this.$tip.hasClass('fade')?removeWithAnimation():$tip.remove()},fixTitle:function(){var $e=this.$element if($e.attr('title')||typeof($e.attr('data-original-title'))!='string'){$e.attr('data-original-title',$e.attr('title')||'').removeAttr('title')}},hasContent:function(){return this.getTitle()},getPosition:function(inside){return $.extend({},(inside?{top:0,left:0}:this.$element.offset()),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var title,$e=this.$element,o=this.options title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title) return title},tip:function(){return this.$tip=this.$tip||$(this.options.template)},validate:function(){if(!this.$element[0].parentNode){this.hide() this.$element=null this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass('in')?'hide':'show']()}} $.fn.tooltip=function(option){return this.each(function(){var $this=$(this),data=$this.data('tooltip'),options=typeof option=='object'&&option if(!data)$this.data('tooltip',(data=new Tooltip(this,options))) if(typeof option=='string')data[option]()})} $.fn.tooltip.Constructor=Tooltip $.fn.tooltip.defaults={animation:true,placement:'top',selector:false,template:'
    ',trigger:'hover',title:'',delay:0}}(window.jQuery);jQuery(document).ready(function(){jQuery('.tooltips').tooltip({selector:"a[rel=help]"})}); ;(function(d){d.flexslider=function(i,k){var a=d(i),c=d.extend({},d.flexslider.defaults,k),e=c.namespace,p="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,t=p?"touchend":"click",l="vertical"===c.direction,m=c.reverse,h=0g?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(d,c.pauseOnAction)});c.pausePlay&&f.pausePlay.setup();c.slideshow&&(c.pauseOnHover&&a.hover(function(){!a.manualPlay&&!a.manualPause&&a.pause()}, function(){!a.manualPause&&!a.manualPlay&&a.play()}),0');if(1':""+b+"",a.controlNavScaffold.append("
  • "+g+"
  • "),b++;a.controlsContainer?d(a.controlsContainer).append(a.controlNavScaffold):a.append(a.controlNavScaffold);f.controlNav.set();f.controlNav.active();a.controlNavScaffold.delegate("a, img",t,function(b){b.preventDefault();var b=d(this),g=a.controlNav.index(b);b.hasClass(e+"active")||(a.direction=g>a.currentSlide?"next":"prev",a.flexAnimate(g,c.pauseOnAction))});p&&a.controlNavScaffold.delegate("a", "click touchstart",function(a){a.preventDefault()})},setupManual:function(){a.controlNav=a.manualControls;f.controlNav.active();a.controlNav.live(t,function(b){b.preventDefault();var b=d(this),g=a.controlNav.index(b);b.hasClass(e+"active")||(g>a.currentSlide?a.direction="next":a.direction="prev",a.flexAnimate(g,c.pauseOnAction))});p&&a.controlNav.live("click touchstart",function(a){a.preventDefault()})},set:function(){a.controlNav=d("."+e+"control-nav li "+("thumbnails"===c.controlNav?"img":"a"), a.controlsContainer?a.controlsContainer:a)},active:function(){a.controlNav.removeClass(e+"active").eq(a.animatingTo).addClass(e+"active")},update:function(b,c){1"+a.count+"")):1===a.pagingCount?a.controlNavScaffold.find("li").remove():a.controlNav.eq(c).closest("li").remove();f.controlNav.set();1
  • '+c.prevText+'
  • '+c.nextText+"
  • ");a.controlsContainer?(d(a.controlsContainer).append(b),a.directionNav=d("."+e+"direction-nav li a",a.controlsContainer)):(a.append(b),a.directionNav=d("."+e+"direction-nav li a",a));f.directionNav.update();a.directionNav.bind(t,function(b){b.preventDefault();b=d(this).hasClass(e+"next")?a.getTarget("next"):a.getTarget("prev");a.flexAnimate(b,c.pauseOnAction)}); p&&a.directionNav.bind("click touchstart",function(a){a.preventDefault()})},update:function(){var b=e+"disabled";1===a.pagingCount?a.directionNav.addClass(b):c.animationLoop?a.directionNav.removeClass(b):0===a.animatingTo?a.directionNav.removeClass(b).filter("."+e+"prev").addClass(b):a.animatingTo===a.last?a.directionNav.removeClass(b).filter("."+e+"next").addClass(b):a.directionNav.removeClass(b)}},pausePlay:{setup:function(){var b=d('
    ');a.controlsContainer? (a.controlsContainer.append(b),a.pausePlay=d("."+e+"pauseplay a",a.controlsContainer)):(a.append(b),a.pausePlay=d("."+e+"pauseplay a",a));f.pausePlay.update(c.slideshow?e+"pause":e+"play");a.pausePlay.bind(t,function(b){b.preventDefault();d(this).hasClass(e+"pause")?(a.manualPause=!0,a.manualPlay=!1,a.pause()):(a.manualPause=!1,a.manualPlay=!0,a.play())});p&&a.pausePlay.bind("click touchstart",function(a){a.preventDefault()})},update:function(b){"play"===b?a.pausePlay.removeClass(e+"pause").addClass(e+ "play").text(c.playText):a.pausePlay.removeClass(e+"play").addClass(e+"pause").text(c.pauseText)}},touch:function(){function b(b){j=l?d-b.touches[0].pageY:d-b.touches[0].pageX;p=l?Math.abs(j)j||a.currentSlide===a.last&&0Number(new Date)-k&&50q/2)?a.flexAnimate(l,c.pauseOnAction):r||a.flexAnimate(a.currentSlide,c.pauseOnAction,!0)}i.removeEventListener("touchend",g,!1);f=j=e=d=null}var d,e,f,q,j,k,p=!1;i.addEventListener("touchstart",function(j){a.animating?j.preventDefault():1===j.touches.length&&(a.pause(),q=l?a.h:a.w,k=Number(new Date),f=h&&m&&a.animatingTo===a.last?0:h&&m?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:h&&a.currentSlide===a.last?a.limit:h?(a.itemW+c.itemMargin)*a.move*a.currentSlide:m?(a.last-a.currentSlide+a.cloneOffset)*q:(a.currentSlide+a.cloneOffset)*q,d=l?j.touches[0].pageY:j.touches[0].pageX,e=l?j.touches[0].pageX:j.touches[0].pageY,i.addEventListener("touchmove",b,!1),i.addEventListener("touchend",g,!1))},!1)},resize:function(){!a.animating&&a.is(":visible")&&(h||a.doMath(),r?f.smoothHeight():h?(a.slides.width(a.computedW), a.update(a.pagingCount),a.setProps()):l?(a.viewport.height(a.h),a.setProps(a.h,"setTotal")):(c.smoothHeight&&f.smoothHeight(),a.newSlides.width(a.computedW),a.setProps(a.computedW,"setTotal")))},smoothHeight:function(b){if(!l||r){var c=r?a:a.viewport;b?c.animate({height:a.slides.eq(a.animatingTo).height()},b):c.height(a.slides.eq(a.animatingTo).height())}},sync:function(b){var g=d(c.sync).data("flexslider"),e=a.animatingTo;switch(b){case "animate":g.flexAnimate(e,c.pauseOnAction,!1,!0);break;case "play":!g.playing&& !g.asNav&&g.play();break;case "pause":g.pause()}}};a.flexAnimate=function(b,g,n,i,k){s&&1===a.pagingCount&&(a.direction=a.currentItema.w?2*c.itemMargin:c.itemMargin,b=(a.itemW+b)*a.move*a.animatingTo, b=b>a.limit&&1!==a.visible?a.limit:b):b=0===a.currentSlide&&b===a.count-1&&c.animationLoop&&"next"!==a.direction?m?(a.count+a.cloneOffset)*q:0:a.currentSlide===a.last&&0===b&&c.animationLoop&&"prev"!==a.direction?m?0:(a.count+1)*q:m?(a.count-1-b+a.cloneOffset)*q:(b+a.cloneOffset)*q;a.setProps(b,"",c.animationSpeed);if(a.transitions){if(!c.animationLoop||!a.atEnd)a.animating=!1,a.currentSlide=a.animatingTo;a.container.unbind("webkitTransitionEnd transitionend");a.container.bind("webkitTransitionEnd transitionend", function(){a.wrapup(q)})}else a.container.animate(a.args,c.animationSpeed,c.easing,function(){a.wrapup(q)})}c.smoothHeight&&f.smoothHeight(c.animationSpeed)}};a.wrapup=function(b){!r&&!h&&(0===a.currentSlide&&a.animatingTo===a.last&&c.animationLoop?a.setProps(b,"jumpEnd"):a.currentSlide===a.last&&(0===a.animatingTo&&c.animationLoop)&&a.setProps(b,"jumpStart"));a.animating=!1;a.currentSlide=a.animatingTo;c.after(a)};a.animateSlides=function(){a.animating||a.flexAnimate(a.getTarget("next"))};a.pause= function(){clearInterval(a.animatedSlides);a.playing=!1;c.pausePlay&&f.pausePlay.update("play");a.syncExists&&f.sync("pause")};a.play=function(){a.animatedSlides=setInterval(a.animateSlides,c.slideshowSpeed);a.playing=!0;c.pausePlay&&f.pausePlay.update("pause");a.syncExists&&f.sync("play")};a.canAdvance=function(b,g){var d=s?a.pagingCount-1:a.last;return g?!0:s&&a.currentItem===a.count-1&&0===b&&"prev"===a.direction?!0:s&&0===a.currentItem&&b===a.pagingCount-1&&"next"!==a.direction?!1:b===a.currentSlide&& !s?!1:c.animationLoop?!0:a.atEnd&&0===a.currentSlide&&b===d&&"next"!==a.direction?!1:a.atEnd&&a.currentSlide===d&&0===b&&"next"===a.direction?!1:!0};a.getTarget=function(b){a.direction=b;return"next"===b?a.currentSlide===a.last?0:a.currentSlide+1:0===a.currentSlide?a.last:a.currentSlide-1};a.setProps=function(b,g,d){var e,f=b?b:(a.itemW+c.itemMargin)*a.move*a.animatingTo;e=-1*function(){if(h)return"setTouch"===g?b:m&&a.animatingTo===a.last?0:m?a.limit-(a.itemW+c.itemMargin)*a.move*a.animatingTo:a.animatingTo===a.last?a.limit:f;switch(g){case "setTotal":return m?(a.count-1-a.currentSlide+a.cloneOffset)*b:(a.currentSlide+a.cloneOffset)*b;case "setTouch":return b;case "jumpEnd":return m?b:a.count*b;case "jumpStart":return m?a.count*b:b;default:return b}}()+"px";a.transitions&&(e=l?"translate3d(0,"+e+",0)":"translate3d("+e+",0,0)",d=void 0!==d?d/1E3+"s":"0s",a.container.css("-"+a.pfx+"-transition-duration",d));a.args[a.prop]=e;(a.transitions||void 0===d)&&a.container.css(a.args)};a.setup=function(b){if(r)a.slides.css({width:"100%", "float":"left",marginRight:"-100%",position:"relative"}),"init"===b&&(p?a.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+c.animationSpeed/1E3+"s ease",zIndex:1}).eq(a.currentSlide).css({opacity:1,zIndex:2}):a.slides.eq(a.currentSlide).fadeIn(c.animationSpeed,c.easing)),c.smoothHeight&&f.smoothHeight();else{var g,n;"init"===b&&(a.viewport=d('
    ').css({overflow:"hidden",position:"relative"}).appendTo(a).append(a.container),a.cloneCount=0,a.cloneOffset= 0,m&&(n=d.makeArray(a.slides).reverse(),a.slides=d(n),a.container.empty().append(a.slides)));c.animationLoop&&!h&&(a.cloneCount=2,a.cloneOffset=1,"init"!==b&&a.container.find(".clone").remove(),a.container.append(a.slides.first().clone().addClass("clone")).prepend(a.slides.last().clone().addClass("clone")));a.newSlides=d(c.selector,a);g=m?a.count-1-a.currentSlide+a.cloneOffset:a.currentSlide+a.cloneOffset;l&&!h?(a.container.height(200*(a.count+a.cloneCount)+"%").css("position","absolute").width("100%"), setTimeout(function(){a.newSlides.css({display:"block"});a.doMath();a.viewport.height(a.h);a.setProps(g*a.h,"init")},"init"===b?100:0)):(a.container.width(200*(a.count+a.cloneCount)+"%"),a.setProps(g*a.computedW,"init"),setTimeout(function(){a.doMath();a.newSlides.css({width:a.computedW,"float":"left",display:"block"});c.smoothHeight&&f.smoothHeight()},"init"===b?100:0))}h||a.slides.removeClass(e+"active-slide").eq(a.currentSlide).addClass(e+"active-slide")};a.doMath=function(){var b=a.slides.first(), d=c.itemMargin,e=c.minItems,f=c.maxItems;a.w=a.width();a.h=b.height();a.boxPadding=b.outerWidth()-b.width();h?(a.itemT=c.itemWidth+d,a.minW=e?e*a.itemT:a.w,a.maxW=f?f*a.itemT:a.w,a.itemW=a.minW>a.w?(a.w-d*e)/e:a.maxWa.w?a.w:c.itemWidth,a.visible=Math.floor(a.w/(a.itemW+d)),a.move=0a.w?(a.itemW+2*d)*a.count-a.w- d:(a.itemW+d)*a.count-a.w-d):(a.itemW=a.w,a.pagingCount=a.count,a.last=a.count-1);a.computedW=a.itemW-a.boxPadding};a.update=function(b,d){a.doMath();h||(ba.controlNav.length)f.controlNav.update("add");else if("remove"===d&&!h||a.pagingCounta.last&&(a.currentSlide-=1,a.animatingTo-=1), f.controlNav.update("remove",a.last);c.directionNav&&f.directionNav.update()};a.addSlide=function(b,e){var f=d(b);a.count+=1;a.last=a.count-1;l&&m?void 0!==e?a.slides.eq(a.count-e).after(f):a.container.prepend(f):void 0!==e?a.slides.eq(e).before(f):a.container.append(f);a.update(e,"add");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.added(a)};a.removeSlide=function(b){var e=isNaN(b)?a.slides.index(d(b)):b;a.count-=1;a.last=a.count-1;isNaN(b)?d(b,a.slides).remove():l&&m?a.slides.eq(a.last).remove(): a.slides.eq(b).remove();a.doMath();a.update(e,"remove");a.slides=d(c.selector+":not(.clone)",a);a.setup();c.removed(a)};f.init()};d.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"slide",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7E3,animationSpeed:600,initDelay:0,randomize:!1,pauseOnAction:!0,pauseOnHover:!1,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next", keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};d.fn.flexslider=function(i){void 0===i&&(i={});if("object"===typeof i)return this.each(function(){var a=d(this),c=a.find(i.selector?i.selector:".slides > li");1===c.length?(c.fadeIn(400), i.start&&i.start(a)):void 0==a.data("flexslider")&&new d.flexslider(this,i)});var k=d(this).data("flexslider");switch(i){case "play":k.play();break;case "pause":k.pause();break;case "next":k.flexAnimate(k.getTarget("next"),!0);break;case "prev":case "previous":k.flexAnimate(k.getTarget("prev"),!0);break;default:"number"===typeof i&&k.flexAnimate(i,!0)}}})(jQuery); (function(i,t){var n,e="superslides";n=function(n,e){this.options=t.extend({play:!1,animation_speed:600,animation_easing:"swing",animation:"slide",inherit_width_from:i,inherit_height_from:i,pagination:!0,hashchange:!1,scrollable:!0,elements:{preserve:".preserve",nav:".slides-navigation",container:".slides-container",pagination:".slides-pagination"}},e);var s=this,o=t("
    ",{"class":"slides-control"}),a=1;this.$el=t(n),this.$container=this.$el.find(this.options.elements.container);var r=function(){return a=s._findMultiplier(),s.$el.on("click",s.options.elements.nav+" a",function(i){i.preventDefault(),s.stop(),t(this).hasClass("next")?s.animate("next",function(){s.start()}):s.animate("prev",function(){s.start()})}),t(document).on("keyup",function(i){37===i.keyCode&&s.animate("prev"),39===i.keyCode&&s.animate("next")}),t(i).on("resize",function(){setTimeout(function(){var i=s.$container.children();s.width=s._findWidth(),s.height=s._findHeight(),i.css({width:s.width,left:s.width}),s.css.containers(),s.css.images()},10)}),s.options.hashchange&&t(i).on("hashchange",function(){var i,t=s._parseHash();i=s._upcomingSlide(t),i>=0&&i!==s.current&&s.animate(i)}),s.pagination._events(),s.start(),s},h={containers:function(){s.init?(s.$el.css({height:s.height}),s.$control.css({width:s.width*a,left:-s.width}),s.$container.css({})):(t("body").css({margin:0}),s.$el.css({position:"relative",overflow:"hidden",width:"100%",height:s.height}),s.$control.css({position:"relative",transform:"translate3d(0)",height:"100%",width:s.width*a,left:-s.width}),s.$container.css({display:"none",margin:"0",padding:"0",listStyle:"none",position:"relative",height:"100%"})),1===s.size()&&s.$el.find(s.options.elements.nav).hide()},images:function(){var i=s.$container.find("img").not(s.options.elements.preserve);i.removeAttr("width").removeAttr("height").css({"-webkit-backface-visibility":"hidden","-ms-interpolation-mode":"bicubic",position:"absolute",left:"0",top:"0","z-index":"-1","max-width":"none"}),i.each(function(){var i=s.image._aspectRatio(this),n=this;if(t.data(this,"processed"))s.image._scale(n,i),s.image._center(n,i);else{var e=new Image;e.onload=function(){s.image._scale(n,i),s.image._center(n,i),t.data(n,"processed",!0)},e.src=this.src}})},children:function(){var i=s.$container.children();i.is("img")&&(i.each(function(){if(t(this).is("img")){t(this).wrap("
    ");var i=t(this).attr("id");t(this).removeAttr("id"),t(this).parent().attr("id",i)}}),i=s.$container.children()),s.init||i.css({display:"none",left:2*s.width}),i.css({position:"absolute",overflow:"hidden",height:"100%",width:s.width,top:0,zIndex:0})}},c={slide:function(i,t){var n=s.$container.children(),e=n.eq(i.upcoming_slide);e.css({left:i.upcoming_position,display:"block"}),s.$control.animate({left:i.offset},s.options.animation_speed,s.options.animation_easing,function(){s.size()>1&&(s.$control.css({left:-s.width}),n.eq(i.upcoming_slide).css({left:s.width,zIndex:2}),i.outgoing_slide>=0&&n.eq(i.outgoing_slide).css({left:s.width,display:"none",zIndex:0})),t()})},fade:function(i,t){var n=this,e=n.$container.children(),s=e.eq(i.outgoing_slide),o=e.eq(i.upcoming_slide);o.css({left:this.width,opacity:0,display:"block"}).animate({opacity:1},n.options.animation_speed,n.options.animation_easing),i.outgoing_slide>=0?s.animate({opacity:0},n.options.animation_speed,n.options.animation_easing,function(){n.size()>1&&(e.eq(i.upcoming_slide).css({zIndex:2}),i.outgoing_slide>=0&&e.eq(i.outgoing_slide).css({opacity:1,display:"none",zIndex:0})),t()}):(o.css({zIndex:2}),t())}};c=t.extend(c,t.fn.superslides.fx);var d={_centerY:function(i){var n=t(i);n.css({top:(s.height-n.height())/2})},_centerX:function(i){var n=t(i);n.css({left:(s.width-n.width())/2})},_center:function(i){s.image._centerX(i),s.image._centerY(i)},_aspectRatio:function(i){if(!i.naturalHeight&&!i.naturalWidth){var t=new Image;t.src=i.src,i.naturalHeight=t.height,i.naturalWidth=t.width}return i.naturalHeight/i.naturalWidth},_scale:function(i,n){n=n||s.image._aspectRatio(i);var e=s.height/s.width,o=t(i);e>n?o.css({height:s.height,width:s.height/n}):o.css({height:s.width*n,width:s.width})}},l={_setCurrent:function(i){if(s.$pagination){var t=s.$pagination.children();t.removeClass("current"),t.eq(i).addClass("current")}},_addItem:function(i){var n=i+1,e=n,o=s.$container.children().eq(i),a=o.attr("id");a&&(e=a);var r=t("",{href:"#"+e,text:e});r.appendTo(s.$pagination)},_setup:function(){if(s.options.pagination&&1!==s.size()){var i=t("
    ",icon:{image:"http://www.google.com/mapfiles/marker.png",shadow:"http://www.google.com/mapfiles/shadow50.png",iconsize:[20,34],shadowsize:[37,34],iconanchor:[9,34],shadowanchor:[6,34]}}})(jQuery) ;(function($, window, document, undefined){ var pluginName='stellar', defaults={ scrollProperty: 'scroll', positionProperty: 'position', horizontalScrolling: true, verticalScrolling: true, horizontalOffset: 0, verticalOffset: 0, responsive: false, parallaxBackgrounds: true, parallaxElements: true, hideDistantElements: true, hideElement: function($elem){ $elem.hide(); }, showElement: function($elem){ $elem.show(); }}, scrollProperty={ scroll: { getLeft: function($elem){ return $elem.scrollLeft(); }, setLeft: function($elem, val){ $elem.scrollLeft(val); }, getTop: function($elem){ return $elem.scrollTop(); }, setTop: function($elem, val){ $elem.scrollTop(val); }}, position: { getLeft: function($elem){ return parseInt($elem.css('left'), 10) * -1; }, getTop: function($elem){ return parseInt($elem.css('top'), 10) * -1; }}, margin: { getLeft: function($elem){ return parseInt($elem.css('margin-left'), 10) * -1; }, getTop: function($elem){ return parseInt($elem.css('margin-top'), 10) * -1; }}, transform: { getLeft: function($elem){ var computedTransform=getComputedStyle($elem[0])[prefixedTransform]; return (computedTransform!=='none' ? parseInt(computedTransform.match(/(-?[0-9]+)/g)[4], 10) * -1:0); }, getTop: function($elem){ var computedTransform=getComputedStyle($elem[0])[prefixedTransform]; return (computedTransform!=='none' ? parseInt(computedTransform.match(/(-?[0-9]+)/g)[5], 10) * -1:0); }} }, positionProperty={ position: { setLeft: function($elem, left){ $elem.css('left', left); }, setTop: function($elem, top){ $elem.css('top', top); }}, transform: { setPosition: function($elem, left, startingLeft, top, startingTop){ $elem[0].style[prefixedTransform]='translate3d(' + (left - startingLeft) + 'px, ' + (top - startingTop) + 'px, 0)'; }} }, vendorPrefix=(function(){ var prefixes=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, style=$('script')[0].style, prefix='', prop; for (prop in style){ if(prefixes.test(prop)){ prefix=prop.match(prefixes)[0]; break; }} if('WebkitOpacity' in style){ prefix='Webkit'; } if('KhtmlOpacity' in style){ prefix='Khtml'; } return function(property){ return prefix + (prefix.length > 0 ? property.charAt(0).toUpperCase() + property.slice(1):property); };}()), prefixedTransform=vendorPrefix('transform'), supportsBackgroundPositionXY=$('
    ', { style: 'background:#fff' }).css('background-position-x')!==undefined, setBackgroundPosition=(supportsBackgroundPositionXY ? function($elem, x, y){ $elem.css({ 'background-position-x': x, 'background-position-y': y });}:function($elem, x, y){ $elem.css('background-position', x + ' ' + y); }), getBackgroundPosition=(supportsBackgroundPositionXY ? function($elem){ return [ $elem.css('background-position-x'), $elem.css('background-position-y') ]; }:function($elem){ return $elem.css('background-position').split(' '); }), requestAnimFrame=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(callback){ setTimeout(callback, 1000 / 60); }); function Plugin(element, options){ this.element=element; this.options=$.extend({}, defaults, options); this._defaults=defaults; this._name=pluginName; this.init(); } Plugin.prototype={ init: function(){ this.options.name=pluginName + '_' + Math.floor(Math.random() * 1e9); this._defineElements(); this._defineGetters(); this._defineSetters(); this._handleWindowLoadAndResize(); this._detectViewport(); this.refresh({ firstLoad: true });if(this.options.scrollProperty==='scroll'){ this._handleScrollEvent(); }else{ this._startAnimationLoop(); }}, _defineElements: function(){ if(this.element===document.body) this.element=window; this.$scrollElement=$(this.element); this.$element=(this.element===window ? $('body'):this.$scrollElement); this.$viewportElement=(this.options.viewportElement!==undefined ? $(this.options.viewportElement):(this.$scrollElement[0]===window||this.options.scrollProperty==='scroll' ? this.$scrollElement:this.$scrollElement.parent())); }, _defineGetters: function(){ var self=this, scrollPropertyAdapter=scrollProperty[self.options.scrollProperty]; this._getScrollLeft=function(){ return scrollPropertyAdapter.getLeft(self.$scrollElement); }; this._getScrollTop=function(){ return scrollPropertyAdapter.getTop(self.$scrollElement); };}, _defineSetters: function(){ var self=this, scrollPropertyAdapter=scrollProperty[self.options.scrollProperty], positionPropertyAdapter=positionProperty[self.options.positionProperty], setScrollLeft=scrollPropertyAdapter.setLeft, setScrollTop=scrollPropertyAdapter.setTop; this._setScrollLeft=(typeof setScrollLeft==='function' ? function(val){ setScrollLeft(self.$scrollElement, val); }:$.noop); this._setScrollTop=(typeof setScrollTop==='function' ? function(val){ setScrollTop(self.$scrollElement, val); }:$.noop); this._setPosition=positionPropertyAdapter.setPosition||function($elem, left, startingLeft, top, startingTop){ if(self.options.horizontalScrolling){ positionPropertyAdapter.setLeft($elem, left, startingLeft); } if(self.options.verticalScrolling){ positionPropertyAdapter.setTop($elem, top, startingTop); }};}, _handleWindowLoadAndResize: function(){ var self=this, $window=$(window); if(self.options.responsive){ $window.bind('load.' + this.name, function(){ self.refresh(); });} $window.bind('resize.' + this.name, function(){ self._detectViewport(); if(self.options.responsive){ self.refresh(); }});}, refresh: function(options){ var self=this, oldLeft=self._getScrollLeft(), oldTop=self._getScrollTop(); if(!options||!options.firstLoad){ this._reset(); } this._setScrollLeft(0); this._setScrollTop(0); this._setOffsets(); this._findParticles(); this._findBackgrounds(); if(options&&options.firstLoad&&/WebKit/.test(navigator.userAgent)){ $(window).load(function(){ var oldLeft=self._getScrollLeft(), oldTop=self._getScrollTop(); self._setScrollLeft(oldLeft + 1); self._setScrollTop(oldTop + 1); self._setScrollLeft(oldLeft); self._setScrollTop(oldTop); });} this._setScrollLeft(oldLeft); this._setScrollTop(oldTop); }, _detectViewport: function(){ var viewportOffsets=this.$viewportElement.offset(), hasOffsets=viewportOffsets!==null&&viewportOffsets!==undefined; this.viewportWidth=this.$viewportElement.width(); this.viewportHeight=this.$viewportElement.height(); this.viewportOffsetTop=(hasOffsets ? viewportOffsets.top:0); this.viewportOffsetLeft=(hasOffsets ? viewportOffsets.left:0); }, _findParticles: function(){ var self=this, scrollLeft=this._getScrollLeft(), scrollTop=this._getScrollTop(); if(this.particles!==undefined){ for (var i=this.particles.length - 1; i >=0; i--){ this.particles[i].$element.data('stellar-elementIsActive', undefined); }} this.particles=[]; if(!this.options.parallaxElements) return; this.$element.find('[data-stellar-ratio]').each(function(i){ var $this=$(this), horizontalOffset, verticalOffset, positionLeft, positionTop, marginLeft, marginTop, $offsetParent, offsetLeft, offsetTop, parentOffsetLeft=0, parentOffsetTop=0, tempParentOffsetLeft=0, tempParentOffsetTop=0; if(!$this.data('stellar-elementIsActive')){ $this.data('stellar-elementIsActive', this); }else if($this.data('stellar-elementIsActive')!==this){ return; } self.options.showElement($this); if(!$this.data('stellar-startingLeft')){ $this.data('stellar-startingLeft', $this.css('left')); $this.data('stellar-startingTop', $this.css('top')); }else{ $this.css('left', $this.data('stellar-startingLeft')); $this.css('top', $this.data('stellar-startingTop')); } positionLeft=$this.position().left; positionTop=$this.position().top; marginLeft=($this.css('margin-left')==='auto') ? 0:parseInt($this.css('margin-left'), 10); marginTop=($this.css('margin-top')==='auto') ? 0:parseInt($this.css('margin-top'), 10); offsetLeft=$this.offset().left - marginLeft; offsetTop=$this.offset().top - marginTop; $this.parents().each(function(){ var $this=$(this); if($this.data('stellar-offset-parent')===true){ parentOffsetLeft=tempParentOffsetLeft; parentOffsetTop=tempParentOffsetTop; $offsetParent=$this; return false; }else{ tempParentOffsetLeft +=$this.position().left; tempParentOffsetTop +=$this.position().top; }});horizontalOffset=($this.data('stellar-horizontal-offset')!==undefined ? $this.data('stellar-horizontal-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-horizontal-offset')!==undefined ? $offsetParent.data('stellar-horizontal-offset'):self.horizontalOffset)); verticalOffset=($this.data('stellar-vertical-offset')!==undefined ? $this.data('stellar-vertical-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-vertical-offset')!==undefined ? $offsetParent.data('stellar-vertical-offset'):self.verticalOffset)); self.particles.push({ $element: $this, $offsetParent: $offsetParent, isFixed: $this.css('position')==='fixed', horizontalOffset: horizontalOffset, verticalOffset: verticalOffset, startingPositionLeft: positionLeft, startingPositionTop: positionTop, startingOffsetLeft: offsetLeft, startingOffsetTop: offsetTop, parentOffsetLeft: parentOffsetLeft, parentOffsetTop: parentOffsetTop, stellarRatio: ($this.data('stellar-ratio')!==undefined ? $this.data('stellar-ratio'):1), width: $this.outerWidth(true), height: $this.outerHeight(true), isHidden: false });});}, _findBackgrounds: function(){ var self=this, scrollLeft=this._getScrollLeft(), scrollTop=this._getScrollTop(), $backgroundElements; this.backgrounds=[]; if(!this.options.parallaxBackgrounds) return; $backgroundElements=this.$element.find('[data-stellar-background-ratio]'); if(this.$element.data('stellar-background-ratio')){ $backgroundElements=$backgroundElements.add(this.$element); } $backgroundElements.each(function(){ var $this=$(this), backgroundPosition=getBackgroundPosition($this), horizontalOffset, verticalOffset, positionLeft, positionTop, marginLeft, marginTop, offsetLeft, offsetTop, $offsetParent, parentOffsetLeft=0, parentOffsetTop=0, tempParentOffsetLeft=0, tempParentOffsetTop=0; if(!$this.data('stellar-backgroundIsActive')){ $this.data('stellar-backgroundIsActive', this); }else if($this.data('stellar-backgroundIsActive')!==this){ return; } if(!$this.data('stellar-backgroundStartingLeft')){ $this.data('stellar-backgroundStartingLeft', backgroundPosition[0]); $this.data('stellar-backgroundStartingTop', backgroundPosition[1]); }else{ setBackgroundPosition($this, $this.data('stellar-backgroundStartingLeft'), $this.data('stellar-backgroundStartingTop')); } marginLeft=($this.css('margin-left')==='auto') ? 0:parseInt($this.css('margin-left'), 10); marginTop=($this.css('margin-top')==='auto') ? 0:parseInt($this.css('margin-top'), 10); offsetLeft=$this.offset().left - marginLeft - scrollLeft; offsetTop=$this.offset().top - marginTop - scrollTop; $this.parents().each(function(){ var $this=$(this); if($this.data('stellar-offset-parent')===true){ parentOffsetLeft=tempParentOffsetLeft; parentOffsetTop=tempParentOffsetTop; $offsetParent=$this; return false; }else{ tempParentOffsetLeft +=$this.position().left; tempParentOffsetTop +=$this.position().top; }});horizontalOffset=($this.data('stellar-horizontal-offset')!==undefined ? $this.data('stellar-horizontal-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-horizontal-offset')!==undefined ? $offsetParent.data('stellar-horizontal-offset'):self.horizontalOffset)); verticalOffset=($this.data('stellar-vertical-offset')!==undefined ? $this.data('stellar-vertical-offset'):($offsetParent!==undefined&&$offsetParent.data('stellar-vertical-offset')!==undefined ? $offsetParent.data('stellar-vertical-offset'):self.verticalOffset)); self.backgrounds.push({ $element: $this, $offsetParent: $offsetParent, isFixed: $this.css('background-attachment')==='fixed', horizontalOffset: horizontalOffset, verticalOffset: verticalOffset, startingValueLeft: backgroundPosition[0], startingValueTop: backgroundPosition[1], startingBackgroundPositionLeft: (isNaN(parseInt(backgroundPosition[0], 10)) ? 0:parseInt(backgroundPosition[0], 10)), startingBackgroundPositionTop: (isNaN(parseInt(backgroundPosition[1], 10)) ? 0:parseInt(backgroundPosition[1], 10)), startingPositionLeft: $this.position().left, startingPositionTop: $this.position().top, startingOffsetLeft: offsetLeft, startingOffsetTop: offsetTop, parentOffsetLeft: parentOffsetLeft, parentOffsetTop: parentOffsetTop, stellarRatio: ($this.data('stellar-background-ratio')===undefined ? 1:$this.data('stellar-background-ratio')) });});}, _reset: function(){ var particle, startingPositionLeft, startingPositionTop, background, i; for (i=this.particles.length - 1; i >=0; i--){ particle=this.particles[i]; startingPositionLeft=particle.$element.data('stellar-startingLeft'); startingPositionTop=particle.$element.data('stellar-startingTop'); this._setPosition(particle.$element, startingPositionLeft, startingPositionLeft, startingPositionTop, startingPositionTop); this.options.showElement(particle.$element); particle.$element.data('stellar-startingLeft', null).data('stellar-elementIsActive', null).data('stellar-backgroundIsActive', null); } for (i=this.backgrounds.length - 1; i >=0; i--){ background=this.backgrounds[i]; background.$element.data('stellar-backgroundStartingLeft', null).data('stellar-backgroundStartingTop', null); setBackgroundPosition(background.$element, background.startingValueLeft, background.startingValueTop); }}, destroy: function(){ this._reset(); this.$scrollElement.unbind('resize.' + this.name).unbind('scroll.' + this.name); this._animationLoop=$.noop; $(window).unbind('load.' + this.name).unbind('resize.' + this.name); }, _setOffsets: function(){ var self=this, $window=$(window); $window.unbind('resize.horizontal-' + this.name).unbind('resize.vertical-' + this.name); if(typeof this.options.horizontalOffset==='function'){ this.horizontalOffset=this.options.horizontalOffset(); $window.bind('resize.horizontal-' + this.name, function(){ self.horizontalOffset=self.options.horizontalOffset(); });}else{ this.horizontalOffset=this.options.horizontalOffset; } if(typeof this.options.verticalOffset==='function'){ this.verticalOffset=this.options.verticalOffset(); $window.bind('resize.vertical-' + this.name, function(){ self.verticalOffset=self.options.verticalOffset(); });}else{ this.verticalOffset=this.options.verticalOffset; }}, _repositionElements: function(){ var scrollLeft=this._getScrollLeft(), scrollTop=this._getScrollTop(), horizontalOffset, verticalOffset, particle, fixedRatioOffset, background, bgLeft, bgTop, isVisibleVertical=true, isVisibleHorizontal=true, newPositionLeft, newPositionTop, newOffsetLeft, newOffsetTop, i; if(this.currentScrollLeft===scrollLeft&&this.currentScrollTop===scrollTop&&this.currentWidth===this.viewportWidth&&this.currentHeight===this.viewportHeight){ return; }else{ this.currentScrollLeft=scrollLeft; this.currentScrollTop=scrollTop; this.currentWidth=this.viewportWidth; this.currentHeight=this.viewportHeight; } for (i=this.particles.length - 1; i >=0; i--){ particle=this.particles[i]; fixedRatioOffset=(particle.isFixed ? 1:0); if(this.options.horizontalScrolling){ newPositionLeft=(scrollLeft + particle.horizontalOffset + this.viewportOffsetLeft + particle.startingPositionLeft - particle.startingOffsetLeft + particle.parentOffsetLeft) * -(particle.stellarRatio + fixedRatioOffset - 1) + particle.startingPositionLeft; newOffsetLeft=newPositionLeft - particle.startingPositionLeft + particle.startingOffsetLeft; }else{ newPositionLeft=particle.startingPositionLeft; newOffsetLeft=particle.startingOffsetLeft; } if(this.options.verticalScrolling){ newPositionTop=(scrollTop + particle.verticalOffset + this.viewportOffsetTop + particle.startingPositionTop - particle.startingOffsetTop + particle.parentOffsetTop) * -(particle.stellarRatio + fixedRatioOffset - 1) + particle.startingPositionTop; newOffsetTop=newPositionTop - particle.startingPositionTop + particle.startingOffsetTop; }else{ newPositionTop=particle.startingPositionTop; newOffsetTop=particle.startingOffsetTop; } if(this.options.hideDistantElements){ isVisibleHorizontal = !this.options.horizontalScrolling||newOffsetLeft + particle.width > (particle.isFixed ? 0:scrollLeft)&&newOffsetLeft < (particle.isFixed ? 0:scrollLeft) + this.viewportWidth + this.viewportOffsetLeft; isVisibleVertical = !this.options.verticalScrolling||newOffsetTop + particle.height > (particle.isFixed ? 0:scrollTop)&&newOffsetTop < (particle.isFixed ? 0:scrollTop) + this.viewportHeight + this.viewportOffsetTop; } if(isVisibleHorizontal&&isVisibleVertical){ if(particle.isHidden){ this.options.showElement(particle.$element); particle.isHidden=false; } this._setPosition(particle.$element, newPositionLeft, particle.startingPositionLeft, newPositionTop, particle.startingPositionTop); }else{ if(!particle.isHidden){ this.options.hideElement(particle.$element); particle.isHidden=true; }} } for (i=this.backgrounds.length - 1; i >=0; i--){ background=this.backgrounds[i]; fixedRatioOffset=(background.isFixed ? 0:1); bgLeft=(this.options.horizontalScrolling ? (scrollLeft + background.horizontalOffset - this.viewportOffsetLeft - background.startingOffsetLeft + background.parentOffsetLeft - background.startingBackgroundPositionLeft) * (fixedRatioOffset - background.stellarRatio) + 'px':background.startingValueLeft); bgTop=(this.options.verticalScrolling ? (scrollTop + background.verticalOffset - this.viewportOffsetTop - background.startingOffsetTop + background.parentOffsetTop - background.startingBackgroundPositionTop) * (fixedRatioOffset - background.stellarRatio) + 'px':background.startingValueTop); setBackgroundPosition(background.$element, bgLeft, bgTop); }}, _handleScrollEvent: function(){ var self=this, ticking=false; var update=function(){ self._repositionElements(); ticking=false; }; var requestTick=function(){ if(!ticking){ requestAnimFrame(update); ticking=true; }}; this.$scrollElement.bind('scroll.' + this.name, requestTick); requestTick(); }, _startAnimationLoop: function(){ var self=this; this._animationLoop=function(){ requestAnimFrame(self._animationLoop); self._repositionElements(); }; this._animationLoop(); }}; $.fn[pluginName]=function (options){ var args=arguments; if(options===undefined||typeof options==='object'){ return this.each(function (){ if(!$.data(this, 'plugin_' + pluginName)){ $.data(this, 'plugin_' + pluginName, new Plugin(this, options)); }});}else if(typeof options==='string'&&options[0]!=='_'&&options!=='init'){ return this.each(function (){ var instance=$.data(this, 'plugin_' + pluginName); if(instance instanceof Plugin&&typeof instance[options]==='function'){ instance[options].apply(instance, Array.prototype.slice.call(args, 1)); } if(options==='destroy'){ $.data(this, 'plugin_' + pluginName, null); }});}}; $[pluginName]=function(options){ var $window=$(window); return $window.stellar.apply($window, Array.prototype.slice.call(arguments, 0)); }; $[pluginName].scrollProperty=scrollProperty; $[pluginName].positionProperty=positionProperty; window.Stellar=Plugin; }(jQuery, this, document)); !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.validateDelegate(":submit","click",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(b.target).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(b.target).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.submit(function(b){function d(){var d,e;return c.settings.submitHandler?(c.submitButton&&(d=a("").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e?e:!1):!0}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c;return a(this[0]).is("form")?b=this.validate().form():(b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b})),b},removeAttrs:function(b){var c={},d=this;return a.each(b.split(/\s/),function(a,b){c[b]=d.attr(b),d.removeAttr(b)}),c},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(b,c){i[c]=f[c],delete f[c],"required"===c&&a(j).removeAttr("aria-required")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr("aria-required","true")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}),a.extend(a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){return!!a.trim(""+a(b).val())},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(a,b){(9!==b.which||""!==this.elementValue(a))&&(a.name in this.submitted||a===this.lastElement)&&this.element(a)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},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.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c=a.data(this[0].form,"validator"),d="on"+b.type.replace(/^validate/,""),e=c.settings;e[d]&&!this.is(e.ignore)&&e[d].call(c,this[0],b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).validateDelegate(":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'] ,[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']","focusin focusout keyup",b).validateDelegate("select, option, [type='radio'], [type='checkbox']","click",b),this.settings.invalidHandler&&a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler),a(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c=this.clean(b),d=this.validationTargetFor(c),e=!0;return this.lastElement=d,void 0===d?delete this.invalid[c.name]:(this.prepareElement(d),this.currentElements=a(d),e=this.check(d)!==!1,e?delete this.invalid[d.name]:this.invalid[d.name]=!0),a(b).attr("aria-invalid",!e),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e},showErrors:function(b){if(b){a.extend(this.errorMap,b),this.errorList=[];for(var c in b)this.errorList.push({message:b[c],element:this.findByName(c)[0]});this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue").removeAttr("aria-invalid")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled], [readonly]").not(this.settings.ignore).filter(function(){return!this.name&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in c||!b.objectLength(a(this).rules())?!1:(c[this.name]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([]),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d=a(b),e=b.type;return"radio"===e||"checkbox"===e?a("input[name='"+b.name+"']:checked").val():"number"===e&&"undefined"!=typeof b.validity?b.validity.badInput?!1:d.val():(c=d.val(),"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),"dependency-mismatch"===c&&1===g){h=!0;continue}if(h=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",j),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for "+b.name+"")},formatAndAdd:function(b,c){var d=this.defaultMessage(b,c.method),e=/\$?\{(\d+)\}/g;"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),this.errorList.push({message:d,element:b,method:c.method}),this.errorMap[b.name]=d,this.submitted[b.name]=d},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);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 a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g=this.errorsFor(b),h=this.idOrName(b),i=a(b).attr("aria-describedby");g.length?(g.removeClass(this.settings.validClass).addClass(this.settings.errorClass),g.html(c)):(g=a("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(c||""),d=g,this.settings.wrapper&&(d=g.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement(d,a(b)):d.insertAfter(b),g.is("label")?g.attr("for",h):0===g.parents("label[for='"+h+"']").length&&(f=g.attr("id").replace(/(:|\.|\[|\])/g,"\\$1"),i?i.match(new RegExp("\\b"+f+"\\b"))||(i+=" "+f):i=f,a(b).attr("aria-describedby",i),e=this.groups[b.name],e&&a.each(this.groups,function(b,c){c===e&&a("[name='"+b+"']",this.currentForm).attr("aria-describedby",g.attr("id"))}))),!c&&this.settings.success&&(g.text(""),"string"==typeof this.settings.success?g.addClass(this.settings.success):this.settings.success(g,b)),this.toShow=this.toShow.add(g)},errorsFor:function(b){var c=this.idOrName(b),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+d.replace(/\s+/g,", #")),this.errors().filter(e)},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+b+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return this.dependTypes[typeof a]?this.dependTypes[typeof a](a,b):!0},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(a){this.pending[a.name]||(this.pendingRequest++,this.pending[a.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),/min|max/.test(c)&&(null===g||/number|range|text/.test(g))&&(d=Number(d)),d||0===d?e[c]=d:g===c&&"range"!==g&&(e[c]=!0);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b);for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),void 0!==d&&(e[c]=d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0!==e.param?e.param:!0:delete b[d]}}),a.each(b,function(d,e){b[d]=a.isFunction(e)?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:a.trim(b).length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(https?|s?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(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},creditcard:function(a,b){if(this.optional(b))return"dependency-mismatch";if(/[^0-9 \-]+/.test(a))return!1;var c,d,e=0,f=0,g=!1;if(a=a.replace(/\D/g,""),a.length<13||a.length>19)return!1;for(c=a.length-1;c>=0;c--)d=a.charAt(c),f=parseInt(d,10),g&&(f*=2)>9&&(f-=9),e+=f,g=!g;return e%10===0},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||d>=e},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||c>=a},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d){if(this.optional(c))return"dependency-mismatch";var e,f,g=this.previousValue(c);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),g.originalMessage=this.settings.messages[c.name].remote,this.settings.messages[c.name].remote=g.message,d="string"==typeof d&&{url:d}||d,g.old===b?g.valid:(g.old=b,e=this,this.startRequest(c),f={},f[c.name]=b,a.ajax(a.extend(!0,{url:d,mode:"abort",port:"validate"+c.name,dataType:"json",data:f,context:e.currentForm,success:function(d){var f,h,i,j=d===!0||"true"===d;e.settings.messages[c.name].remote=g.originalMessage,j?(i=e.formSubmitted,e.prepareElement(c),e.formSubmitted=i,e.successList.push(c),delete e.invalid[c.name],e.showErrors()):(f={},h=d||e.defaultMessage(c,"remote"),f[c.name]=g.message=a.isFunction(h)?h(b):h,e.invalid[c.name]=!0,e.showErrors(f)),g.valid=j,e.stopRequest(c,j)}},d)),"pending")}}}),a.format=function(){throw"$.format has been deprecated. Please use $.validator.format instead."};var b,c={};a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a.extend(a.fn,{validateDelegate:function(b,c,d){return this.bind(c,function(c){var e=a(c.target);return e.is(b)?d.apply(e,arguments):void 0})}})}); "function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g}); (function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath? (e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length; this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&& (this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this, [this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}), g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('
    ').wrap('
    ');this.$elem.find(".owl-wrapper").wrap('
    ');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")}, baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall= !1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;bthis.itemsAmount&& !0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a= this,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data("owl-item",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundPages",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/ this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('
    ');a.owlControls.append(b);a.buttonPrev= f("
    ",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=f("
    ",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();f(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper= f('
    ');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c",{"class":"owl-page"}),g=f("",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){f(this).data("owl-roundPages")===f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),f(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem===this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1; this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;"function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0), !0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed("paginationSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):"rewind"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed("slideSpeed"),g.setTimeout(function(){c.isCss3Finish=!0}, c.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem= this.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";g.clearInterval(this.autoPlayInterval)}, checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))}, addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+ a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement("div");a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]: !1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")})}, gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos; "function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)} function c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off("click.disable")}), a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1; !1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b("on");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem= a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)): (c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,e){a.goTo(e)}); a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a=this.currentItem:!0)&&e=f?g.setTimeout(c,100):e()}var d=this,f=0,k;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",a+"px");e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b, 100):e.wrapperOuter.css("height","")}var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");this.visibleItems=[];for(a=this.currentItem;a=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0===f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=Object.create(l);b.init(a,this);f.data(this,"owlCarousel",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1, responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document); (function(r,G,f,v){var J=f("html"),n=f(r),p=f(G),b=f.fancybox=function(){b.open.apply(this,arguments)},I=navigator.userAgent.match(/msie/i),B=null,s=G.createTouch!==v,t=function(a){return a&&a.hasOwnProperty&&a instanceof f},q=function(a){return a&&"string"===f.type(a)},E=function(a){return q(a)&&0
    ',image:'',iframe:'",error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'
    ',next:'',prev:''},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:f.noop,beforeLoad:f.noop,afterLoad:f.noop,beforeShow:f.noop,afterShow:f.noop,beforeChange:f.noop,beforeClose:f.noop,afterClose:f.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(a,d){if(a&&(f.isPlainObject(d)||(d={}),!1!==b.close(!0)))return f.isArray(a)||(a=t(a)?f(a).get():[a]),f.each(a,function(e,c){var k={},g,h,j,m,l;"object"===f.type(c)&&(c.nodeType&&(c=f(c)),t(c)?(k={href:c.data("fancybox-href")||c.attr("href"),title:c.data("fancybox-title")||c.attr("title"),isDom:!0,element:c},f.metadata&&f.extend(!0,k, c.metadata())):k=c);g=d.href||k.href||(q(c)?c:null);h=d.title!==v?d.title:k.title||"";m=(j=d.content||k.content)?"html":d.type||k.type;!m&&k.isDom&&(m=c.data("fancybox-type"),m||(m=(m=c.prop("class").match(/fancybox\.(\w+)/))?m[1]:null));q(g)&&(m||(b.isImage(g)?m="image":b.isSWF(g)?m="swf":"#"===g.charAt(0)?m="inline":q(c)&&(m="html",j=c)),"ajax"===m&&(l=g.split(/\s+/,2),g=l.shift(),l=l.shift()));j||("inline"===m?g?j=f(q(g)?g.replace(/.*(?=#[^\s]+$)/,""):g):k.isDom&&(j=c):"html"===m?j=g:!m&&(!g&& k.isDom)&&(m="inline",j=c));f.extend(k,{href:g,type:m,content:j,title:h,selector:l});a[e]=k}),b.opts=f.extend(!0,{},b.defaults,d),d.keys!==v&&(b.opts.keys=d.keys?f.extend({},b.defaults.keys,d.keys):!1),b.group=a,b._start(b.opts.index)},cancel:function(){var a=b.coming;a&&!1!==b.trigger("onCancel")&&(b.hideLoading(),b.ajaxLoad&&b.ajaxLoad.abort(),b.ajaxLoad=null,b.imgPreload&&(b.imgPreload.onload=b.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),b.coming=null,b.current|| b._afterZoomOut(a))},close:function(a){b.cancel();!1!==b.trigger("beforeClose")&&(b.unbindEvents(),b.isActive&&(!b.isOpen||!0===a?(f(".fancybox-wrap").stop(!0).trigger("onReset").remove(),b._afterZoomOut()):(b.isOpen=b.isOpened=!1,b.isClosing=!0,f(".fancybox-item, .fancybox-nav").remove(),b.wrap.stop(!0,!0).removeClass("fancybox-opened"),b.transitions[b.current.closeMethod]())))},play:function(a){var d=function(){clearTimeout(b.player.timer)},e=function(){d();b.current&&b.player.isActive&&(b.player.timer= setTimeout(b.next,b.current.playSpeed))},c=function(){d();p.unbind(".player");b.player.isActive=!1;b.trigger("onPlayEnd")};if(!0===a||!b.player.isActive&&!1!==a){if(b.current&&(b.current.loop||b.current.index=c.index?"next":"prev"],b.router=e||"jumpto",c.loop&&(0>a&&(a=c.group.length+a%c.group.length),a%=c.group.length),c.group[a]!==v&&(b.cancel(),b._start(a)))},reposition:function(a,d){var e=b.current,c=e?e.wrap:null,k;c&&(k=b._getPosition(d),a&&"scroll"===a.type?(delete k.position,c.stop(!0,!0).animate(k,200)):(c.css(k),e.pos=f.extend({},e.dim,k)))},update:function(a){var d= a&&a.type,e=!d||"orientationchange"===d;e&&(clearTimeout(B),B=null);b.isOpen&&!B&&(B=setTimeout(function(){var c=b.current;c&&!b.isClosing&&(b.wrap.removeClass("fancybox-tmp"),(e||"load"===d||"resize"===d&&c.autoResize)&&b._setDimension(),"scroll"===d&&c.canShrink||b.reposition(a),b.trigger("onUpdate"),B=null)},e&&!s?0:300))},toggle:function(a){b.isOpen&&(b.current.fitToView="boolean"===f.type(a)?a:!b.current.fitToView,s&&(b.wrap.removeAttr("style").addClass("fancybox-tmp"),b.trigger("onUpdate")), b.update())},hideLoading:function(){p.unbind(".loading");f("#fancybox-loading").remove()},showLoading:function(){var a,d;b.hideLoading();a=f('
    ').click(b.cancel).appendTo("body");p.bind("keydown.loading",function(a){if(27===(a.which||a.keyCode))a.preventDefault(),b.cancel()});b.defaults.fixed||(d=b.getViewport(),a.css({position:"absolute",top:0.5*d.h+d.y,left:0.5*d.w+d.x}))},getViewport:function(){var a=b.current&&b.current.locked||!1,d={x:n.scrollLeft(), y:n.scrollTop()};a?(d.w=a[0].clientWidth,d.h=a[0].clientHeight):(d.w=s&&r.innerWidth?r.innerWidth:n.width(),d.h=s&&r.innerHeight?r.innerHeight:n.height());return d},unbindEvents:function(){b.wrap&&t(b.wrap)&&b.wrap.unbind(".fb");p.unbind(".fb");n.unbind(".fb")},bindEvents:function(){var a=b.current,d;a&&(n.bind("orientationchange.fb"+(s?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),b.update),(d=a.keys)&&p.bind("keydown.fb",function(e){var c=e.which||e.keyCode,k=e.target||e.srcElement; if(27===c&&b.coming)return!1;!e.ctrlKey&&(!e.altKey&&!e.shiftKey&&!e.metaKey&&(!k||!k.type&&!f(k).is("[contenteditable]")))&&f.each(d,function(d,k){if(1h[0].clientWidth||h[0].clientHeight&&h[0].scrollHeight>h[0].clientHeight),h=f(h).parent();if(0!==c&&!j&&1g||0>k)b.next(0>g?"up":"right");d.preventDefault()}}))},trigger:function(a,d){var e,c=d||b.coming||b.current;if(c){f.isFunction(c[a])&&(e=c[a].apply(c,Array.prototype.slice.call(arguments,1)));if(!1===e)return!1;c.helpers&&f.each(c.helpers,function(d,e){if(e&&b.helpers[d]&&f.isFunction(b.helpers[d][a]))b.helpers[d][a](f.extend(!0, {},b.helpers[d].defaults,e),c)});p.trigger(a)}},isImage:function(a){return q(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return q(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var d={},e,c;a=l(a);e=b.group[a]||null;if(!e)return!1;d=f.extend(!0,{},b.opts,e);e=d.margin;c=d.padding;"number"===f.type(e)&&(d.margin=[e,e,e,e]);"number"===f.type(c)&&(d.padding=[c,c,c,c]);d.modal&&f.extend(!0,d,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1, mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});d.autoSize&&(d.autoWidth=d.autoHeight=!0);"auto"===d.width&&(d.autoWidth=!0);"auto"===d.height&&(d.autoHeight=!0);d.group=b.group;d.index=a;b.coming=d;if(!1===b.trigger("beforeLoad"))b.coming=null;else{c=d.type;e=d.href;if(!c)return b.coming=null,b.current&&b.router&&"jumpto"!==b.router?(b.current.index=a,b[b.router](b.direction)):!1;b.isActive=!0;if("image"===c||"swf"===c)d.autoHeight=d.autoWidth=!1,d.scrolling="visible";"image"===c&&(d.aspectRatio= !0);"iframe"===c&&s&&(d.scrolling="scroll");d.wrap=f(d.tpl.wrap).addClass("fancybox-"+(s?"mobile":"desktop")+" fancybox-type-"+c+" fancybox-tmp "+d.wrapCSS).appendTo(d.parent||"body");f.extend(d,{skin:f(".fancybox-skin",d.wrap),outer:f(".fancybox-outer",d.wrap),inner:f(".fancybox-inner",d.wrap)});f.each(["Top","Right","Bottom","Left"],function(a,b){d.skin.css("padding"+b,w(d.padding[a]))});b.trigger("onReady");if("inline"===c||"html"===c){if(!d.content||!d.content.length)return b._error("content")}else if(!e)return b._error("href"); "image"===c?b._loadImage():"ajax"===c?b._loadAjax():"iframe"===c?b._loadIframe():b._afterLoad()}},_error:function(a){f.extend(b.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:b.coming.tpl.error});b._afterLoad()},_loadImage:function(){var a=b.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;b.coming.width=this.width/b.opts.pixelRatio;b.coming.height=this.height/b.opts.pixelRatio;b._afterLoad()};a.onerror=function(){this.onload= this.onerror=null;b._error("image")};a.src=b.coming.href;!0!==a.complete&&b.showLoading()},_loadAjax:function(){var a=b.coming;b.showLoading();b.ajaxLoad=f.ajax(f.extend({},a.ajax,{url:a.href,error:function(a,e){b.coming&&"abort"!==e?b._error("ajax",a):b.hideLoading()},success:function(d,e){"success"===e&&(a.content=d,b._afterLoad())}}))},_loadIframe:function(){var a=b.coming,d=f(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",s?"auto":a.iframe.scrolling).attr("src",a.href); f(a.wrap).bind("onReset",function(){try{f(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(b.showLoading(),d.one("load",function(){f(this).data("ready",1);s||f(this).bind("load.fb",b.update);f(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();b._afterLoad()}));a.content=d.appendTo(a.inner);a.iframe.preload||b._afterLoad()},_preloadImages:function(){var a=b.group,d=b.current,e=a.length,c=d.preload?Math.min(d.preload, e-1):0,f,g;for(g=1;g<=c;g+=1)f=a[(d.index+g)%e],"image"===f.type&&f.href&&((new Image).src=f.href)},_afterLoad:function(){var a=b.coming,d=b.current,e,c,k,g,h;b.hideLoading();if(a&&!1!==b.isActive)if(!1===b.trigger("afterLoad",a,d))a.wrap.stop(!0).trigger("onReset").remove(),b.coming=null;else{d&&(b.trigger("beforeChange",d),d.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());b.unbindEvents();e=a.content;c=a.type;k=a.scrolling;f.extend(b,{wrap:a.wrap,skin:a.skin, outer:a.outer,inner:a.inner,current:a,previous:d});g=a.href;switch(c){case "inline":case "ajax":case "html":a.selector?e=f("
    ").html(e).find(a.selector):t(e)&&(e.data("fancybox-placeholder")||e.data("fancybox-placeholder",f('
    ').insertAfter(e).hide()),e=e.show().detach(),a.wrap.bind("onReset",function(){f(this).find(e).length&&e.hide().replaceAll(e.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case "image":e=a.tpl.image.replace("{href}", g);break;case "swf":e='',h="",f.each(a.swf,function(a,b){e+='';h+=" "+a+'="'+b+'"'}),e+='"}(!t(e)||!e.parent().is(a.inner))&&a.inner.append(e);b.trigger("beforeShow");a.inner.css("overflow","yes"===k?"scroll": "no"===k?"hidden":k);b._setDimension();b.reposition();b.isOpen=!1;b.coming=null;b.bindEvents();if(b.isOpened){if(d.prevMethod)b.transitions[d.prevMethod]()}else f(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();b.transitions[b.isOpened?a.nextMethod:a.openMethod]();b._preloadImages()}},_setDimension:function(){var a=b.getViewport(),d=0,e=!1,c=!1,e=b.wrap,k=b.skin,g=b.inner,h=b.current,c=h.width,j=h.height,m=h.minWidth,u=h.minHeight,n=h.maxWidth,p=h.maxHeight,s=h.scrolling,q=h.scrollOutside? h.scrollbarWidth:0,x=h.margin,y=l(x[1]+x[3]),r=l(x[0]+x[2]),v,z,t,C,A,F,B,D,H;e.add(k).add(g).width("auto").height("auto").removeClass("fancybox-tmp");x=l(k.outerWidth(!0)-k.width());v=l(k.outerHeight(!0)-k.height());z=y+x;t=r+v;C=E(c)?(a.w-z)*l(c)/100:c;A=E(j)?(a.h-t)*l(j)/100:j;if("iframe"===h.type){if(H=h.content,h.autoHeight&&1===H.data("ready"))try{H[0].contentWindow.document.location&&(g.width(C).height(9999),F=H.contents().find("body"),q&&F.css("overflow-x","hidden"),A=F.outerHeight(!0))}catch(G){}}else if(h.autoWidth|| h.autoHeight)g.addClass("fancybox-tmp"),h.autoWidth||g.width(C),h.autoHeight||g.height(A),h.autoWidth&&(C=g.width()),h.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");c=l(C);j=l(A);D=C/A;m=l(E(m)?l(m,"w")-z:m);n=l(E(n)?l(n,"w")-z:n);u=l(E(u)?l(u,"h")-t:u);p=l(E(p)?l(p,"h")-t:p);F=n;B=p;h.fitToView&&(n=Math.min(a.w-z,n),p=Math.min(a.h-t,p));z=a.w-y;r=a.h-r;h.aspectRatio?(c>n&&(c=n,j=l(c/D)),j>p&&(j=p,c=l(j*D)),cz||y>r)&&(c>m&&j>u)&&!(19n&&(c=n,j=l(c/D)),g.width(c).height(j),e.width(c+x),a=e.width(),y=e.height();else c=Math.max(m,Math.min(c,c-(a-z))),j=Math.max(u,Math.min(j,j-(y-r)));q&&("auto"===s&&jz||y>r)&&c>m&&j>u;c=h.aspectRatio?cu&&j
    ').appendTo(b.coming?b.coming.parent:a.parent);this.fixed=!1;a.fixed&&b.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var d=this;a=f.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(n.bind("resize.overlay",f.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(f(a.target).hasClass("fancybox-overlay"))return b.isActive? b.close():d.close(),!1});this.overlay.css(a.css).show()},close:function(){var a,b;n.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(f(".fancybox-margin").removeClass("fancybox-margin"),a=n.scrollTop(),b=n.scrollLeft(),this.el.removeClass("fancybox-lock"),n.scrollTop(a).scrollLeft(b));f(".fancybox-overlay").remove().hide();f.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",b;this.overlay.width(a).height("100%");I?(b=Math.max(G.documentElement.offsetWidth,G.body.offsetWidth), p.width()>b&&(a=p.width())):p.width()>n.width()&&(a=p.width());this.overlay.width(a).height(p.height())},onReady:function(a,b){var e=this.overlay;f(".fancybox-overlay").stop(!0,!0);e||this.create(a);a.locked&&(this.fixed&&b.fixed)&&(e||(this.margin=p.height()>n.height()?f("html").css("margin-right").replace("px",""):!1),b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){var e,c;b.locked&&(!1!==this.margin&&(f("*").filter(function(){return"fixed"===f(this).css("position")&&!f(this).hasClass("fancybox-overlay")&&!f(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),e=n.scrollTop(),c=n.scrollLeft(),this.el.addClass("fancybox-lock"),n.scrollTop(e).scrollLeft(c));this.open(a)},onUpdate:function(){this.fixed||this.update()},afterClose:function(a){this.overlay&&!b.coming&&this.overlay.fadeOut(a.speedOut,f.proxy(this.close,this))}};b.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var d= b.current,e=d.title,c=a.type;f.isFunction(e)&&(e=e.call(d.element,d));if(q(e)&&""!==f.trim(e)){d=f('
    '+e+"
    ");switch(c){case "inside":c=b.skin;break;case "outside":c=b.wrap;break;case "over":c=b.inner;break;default:c=b.skin,d.appendTo("body"),I&&d.width(d.width()),d.wrapInner(''),b.current.margin[2]+=Math.abs(l(d.css("margin-bottom")))}d["top"===a.position?"prependTo":"appendTo"](c)}}};f.fn.fancybox=function(a){var d, e=f(this),c=this.selector||"",k=function(g){var h=f(this).blur(),j=d,k,l;!g.ctrlKey&&(!g.altKey&&!g.shiftKey&&!g.metaKey)&&!h.is(".fancybox-wrap")&&(k=a.groupAttr||"data-fancybox-group",l=h.attr(k),l||(k="rel",l=h.get(0)[k]),l&&(""!==l&&"nofollow"!==l)&&(h=c.length?f(c):e,h=h.filter("["+k+'="'+l+'"]'),j=h.index(this)),a.index=j,!1!==b.open(h,a)&&g.preventDefault())};a=a||{};d=a.index||0;!c||!1===a.live?e.unbind("click.fb-start").bind("click.fb-start",k):p.undelegate(c,"click.fb-start").delegate(c+ ":not('.fancybox-item, .fancybox-nav')","click.fb-start",k);this.filter("[data-fancybox-start=1]").trigger("click");return this};p.ready(function(){var a,d;f.scrollbarWidth===v&&(f.scrollbarWidth=function(){var a=f('
    ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});if(f.support.fixedPosition===v){a=f.support;d=f('
    ').appendTo("body");var e=20===d[0].offsetTop||15===d[0].offsetTop;d.remove();a.fixedPosition=e}f.extend(b.defaults,{scrollbarWidth:f.scrollbarWidth(),fixed:f.support.fixedPosition,parent:f("body")});a=f(r).width();J.addClass("fancybox-lock-test");d=f(r).width();J.removeClass("fancybox-lock-test");f("").appendTo("head")})})(window,document,jQuery); !function(e){"use strict";var a=e.fancybox,t=function(a,t,o){return o=o||"","object"===e.type(o)&&(o=e.param(o,!0)),e.each(t,function(e,t){a=a.replace("$"+e,t||"")}),o.length&&(a+=(a.indexOf("?")>0?"&":"?")+o),a};a.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(a,t,o){return o.swf.flashVars="playerVars="+e.param(t,!0),"//www.metacafe.com/fplayer/"+a[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[1]+"/"+e[3]+e[4]+"&output="+(e[4].indexOf("layer=c")>0?"svembed":"embed")}}},beforeLoad:function(a,o){var i,r,m,l,c=o.href||"",p=!1;for(i in a)if(a.hasOwnProperty(i)&&(r=a[i],m=c.match(r.matcher))){p=r.type,l=e.extend(!0,{},r.params,o[i]||(e.isPlainObject(a[i])?a[i].params:null)),c="function"===e.type(r.url)?r.url.call(this,m,l,o):t(r.url,m,l);break}p&&(o.href=c,o.type=p,o.autoHeight=!1)}}}(jQuery); var Base=function(){};Base.extend=function(a,b){"use strict";var c=Base.prototype.extend;Base._prototyping=!0;var d=new this;c.call(d,a),d.base=function(){},delete Base._prototyping;var e=d.constructor,f=d.constructor=function(){if(!Base._prototyping)if(this._constructing||this.constructor==f)this._constructing=!0,e.apply(this,arguments),delete this._constructing;else if(null!==arguments[0])return(arguments[0].extend||c).call(arguments[0],d)};return f.ancestor=this,f.extend=this.extend,f.forEach=this.forEach,f.implement=this.implement,f.prototype=d,f.toString=this.toString,f.valueOf=function(a){return"object"==a?f:e.valueOf()},c.call(f,b),"function"==typeof f.init&&f.init(),f},Base.prototype={extend:function(a,b){if(arguments.length>1){var c=this[a];if(c&&"function"==typeof b&&(!c.valueOf||c.valueOf()!=b.valueOf())&&/\bbase\b/.test(b)){var d=b.valueOf();b=function(){var a=this.base||Base.prototype.base;this.base=c;var b=d.apply(this,arguments);return this.base=a,b},b.valueOf=function(a){return"object"==a?b:d},b.toString=Base.toString}this[a]=b}else if(a){var e=Base.prototype.extend;Base._prototyping||"function"==typeof this||(e=this.extend||e);for(var f={toSource:null},g=["constructor","toString","valueOf"],h=Base._prototyping?0:1;i=g[h++];)a[i]!=f[i]&&e.call(this,i,a[i]);for(var i in a)f[i]||e.call(this,i,a[i])}return this}},Base=Base.extend({constructor:function(){this.extend(arguments[0])}},{ancestor:Object,version:"1.1",forEach:function(a,b,c){for(var d in a)void 0===this.prototype[d]&&b.call(c,a[d],d,a)},implement:function(){for(var a=0;a',''].join("");d&&(e=""),b=this.factory.localize(b);var f=['',''+(b?b:"")+"",e,""],g=a(f.join(""));return this.dividers.push(g),g},createList:function(a,b){"object"==typeof a&&(b=a,a=0);var c=new FlipClock.List(this.factory,a,b);return this.lists.push(c),c},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0,{minimumDigits:this.factory.minimumDigits}),this.flip(this.factory.original,!1)},appendDigitToClock:function(a){a.$el.append(!1)},addDigit:function(a){var b=this.createList(a,{classes:{active:this.factory.classes.active,before:this.factory.classes.before,flip:this.factory.classes.flip}});this.appendDigitToClock(b)},start:function(){},stop:function(){},autoIncrement:function(){this.factory.countdown?this.decrement():this.increment()},increment:function(){this.factory.time.addSecond()},decrement:function(){0==this.factory.time.getTimeSeconds()?this.factory.stop():this.factory.time.subSecond()},flip:function(b,c){var d=this;a.each(b,function(a,b){var e=d.lists[a];e?(c||b==e.digit||e.play(),e.select(b)):d.addDigit(b)})}})}(jQuery),function(a){"use strict";FlipClock.Factory=FlipClock.Base.extend({animationRate:1e3,autoStart:!0,callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},classes:{active:"flip-clock-active",before:"flip-clock-before",divider:"flip-clock-divider",dot:"flip-clock-dot",label:"flip-clock-label",flip:"flip",play:"play",wrapper:"flip-clock-wrapper"},clockFace:"HourlyCounter",countdown:!1,defaultClockFace:"HourlyCounter",defaultLanguage:"english",$el:!1,face:!0,lang:!1,language:"english",minimumDigits:0,original:!1,running:!1,time:!1,timer:!1,$wrapper:!1,constructor:function(b,c,d){d||(d={}),this.lists=[],this.running=!1,this.base(d),this.$el=a(b).addClass(this.classes.wrapper),this.$wrapper=this.$el,this.original=c instanceof Date?c:c?Math.round(c):0,this.time=new FlipClock.Time(this,this.original,{minimumDigits:this.minimumDigits,animationRate:this.animationRate}),this.timer=new FlipClock.Timer(this,d),this.loadLanguage(this.language),this.loadClockFace(this.clockFace,d),this.autoStart&&this.start()},loadClockFace:function(a,b){var c,d="Face",e=!1;return a=a.ucfirst()+d,this.face.stop&&(this.stop(),e=!0),this.$el.html(""),this.time.minimumDigits=this.minimumDigits,c=FlipClock[a]?new FlipClock[a](this,b):new FlipClock[this.defaultClockFace+d](this,b),c.build(),this.face=c,e&&this.start(),this.face},loadLanguage:function(a){var b;return b=FlipClock.Lang[a.ucfirst()]?FlipClock.Lang[a.ucfirst()]:FlipClock.Lang[a]?FlipClock.Lang[a]:FlipClock.Lang[this.defaultLanguage],this.lang=b},localize:function(a,b){var c=this.lang;if(!a)return null;var d=a.toLowerCase();return"object"==typeof b&&(c=b),c&&c[d]?c[d]:a},start:function(a){var b=this;b.running||b.countdown&&!(b.countdown&&b.time.time>0)?b.log("Trying to start timer when countdown already at 0"):(b.face.start(b.time),b.timer.start(function(){b.flip(),"function"==typeof a&&a()}))},stop:function(a){this.face.stop(),this.timer.stop(a);for(var b in this.lists)this.lists.hasOwnProperty(b)&&this.lists[b].stop()},reset:function(a){this.timer.reset(a),this.face.reset()},setTime:function(a){this.time.time=a,this.flip(!0)},getTime:function(){return this.time},setCountdown:function(a){var b=this.running;this.countdown=a?!0:!1,b&&(this.stop(),this.start())},flip:function(a){this.face.flip(!1,a)}})}(jQuery),function(a){"use strict";FlipClock.List=FlipClock.Base.extend({digit:0,classes:{active:"flip-clock-active",before:"flip-clock-before",flip:"flip"},factory:!1,$el:!1,$obj:!1,items:[],lastDigit:0,constructor:function(a,b){this.factory=a,this.digit=b,this.lastDigit=b,this.$el=this.createList(),this.$obj=this.$el,b>0&&this.select(b),this.factory.$el.append(this.$el)},select:function(a){if("undefined"==typeof a?a=this.digit:this.digit=a,this.digit!=this.lastDigit){var b=this.$el.find("."+this.classes.before).removeClass(this.classes.before);this.$el.find("."+this.classes.active).removeClass(this.classes.active).addClass(this.classes.before),this.appendListItem(this.classes.active,this.digit),b.remove(),this.lastDigit=this.digit}},play:function(){this.$el.addClass(this.factory.classes.play)},stop:function(){var a=this;setTimeout(function(){a.$el.removeClass(a.factory.classes.play)},this.factory.timer.interval)},createListItem:function(a,b){return['
  • ','','
    ','
    ','
    '+(b?b:"")+"
    ","
    ",'
    ','
    ','
    '+(b?b:"")+"
    ","
    ","
    ","
  • "].join("")},appendListItem:function(a,b){var c=this.createListItem(a,b);this.$el.append(c)},createList:function(){var b=this.getPrevDigit()?this.getPrevDigit():this.digit,c=a(['
      ',this.createListItem(this.classes.before,b),this.createListItem(this.classes.active,this.digit),"
    "].join(""));return c},getNextDigit:function(){return 9==this.digit?0:this.digit+1},getPrevDigit:function(){return 0==this.digit?9:this.digit-1}})}(jQuery),function(a){"use strict";String.prototype.ucfirst=function(){return this.substr(0,1).toUpperCase()+this.substr(1)},a.fn.FlipClock=function(b,c){return new FlipClock(a(this),b,c)},a.fn.flipClock=function(b,c){return a.fn.FlipClock(b,c)}}(jQuery),function(a){"use strict";FlipClock.Time=FlipClock.Base.extend({time:0,factory:!1,minimumDigits:0,constructor:function(a,b,c){"object"!=typeof c&&(c={}),c.minimumDigits||(c.minimumDigits=a.minimumDigits),this.base(c),this.factory=a,b&&(this.time=b)},convertDigitsToArray:function(a){var b=[];a=a.toString();for(var c=0;cthis.minimumDigits&&(this.minimumDigits=c.length),this.minimumDigits>c.length)for(var d=c.length;d12?c-12:0===c?12:c,a.getMinutes()];return b===!0&&d.push(a.getSeconds()),this.digitize(d)},getSeconds:function(a){var b=this.getTimeSeconds();return a&&(60==b?b=0:b%=60),Math.ceil(b)},getWeeks:function(a){var b=this.getTimeSeconds()/60/60/24/7;return a&&(b%=52),Math.floor(b)},removeLeadingZeros:function(b,c){var d=0,e=[];return a.each(c,function(a){b>a?d+=parseInt(c[a],10):e.push(c[a])}),0===d?e:c},addSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()+a):this.time+=a},addSecond:function(){this.addSeconds(1)},subSeconds:function(a){this.time instanceof Date?this.time.setSeconds(this.time.getSeconds()-a):this.time-=a},subSecond:function(){this.subSeconds(1)},toString:function(){return this.getTimeSeconds().toString()}})}(jQuery),function(){"use strict";FlipClock.Timer=FlipClock.Base.extend({callbacks:{destroy:!1,create:!1,init:!1,interval:!1,start:!1,stop:!1,reset:!1},count:0,factory:!1,interval:1e3,animationRate:1e3,constructor:function(a,b){this.base(b),this.factory=a,this.callback(this.callbacks.init),this.callback(this.callbacks.create)},getElapsed:function(){return this.count*this.interval},getElapsedTime:function(){return new Date(this.time+this.getElapsed())},reset:function(a){clearInterval(this.timer),this.count=0,this._setInterval(a),this.callback(this.callbacks.reset)},start:function(a){this.factory.running=!0,this._createTimer(a),this.callback(this.callbacks.start)},stop:function(a){this.factory.running=!1,this._clearInterval(a),this.callback(this.callbacks.stop),this.callback(a)},_clearInterval:function(){clearInterval(this.timer)},_createTimer:function(a){this._setInterval(a)},_destroyTimer:function(a){this._clearInterval(),this.timer=!1,this.callback(a),this.callback(this.callbacks.destroy)},_interval:function(a){this.callback(this.callbacks.interval),this.callback(a),this.count++},_setInterval:function(a){var b=this;b._interval(a),b.timer=setInterval(function(){b._interval(a)},this.interval)}})}(jQuery),function(a){FlipClock.TwentyFourHourClockFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul");this.factory.time.time||(this.factory.original=new Date,this.factory.time=new FlipClock.Time(this.factory,this.factory.original));var b=b?b:this.factory.time.getMilitaryTime(!1,this.showSeconds);b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.createDivider(),this.createDivider(),a(this.dividers[0]).insertBefore(this.lists[this.lists.length-2].$el),a(this.dividers[1]).insertBefore(this.lists[this.lists.length-4].$el),this.base()},flip:function(a,b){this.autoIncrement(),a=a?a:this.factory.time.getMilitaryTime(!1,this.showSeconds),this.base(a,b)}})}(jQuery),function(a){FlipClock.CounterFace=FlipClock.Face.extend({shouldAutoIncrement:!1,constructor:function(a,b){"object"!=typeof b&&(b={}),a.autoStart=b.autoStart?!0:!1,b.autoStart&&(this.shouldAutoIncrement=!0),a.increment=function(){a.countdown=!1,a.setTime(a.getTime().getTimeSeconds()+1)},a.decrement=function(){a.countdown=!0;var b=a.getTime().getTimeSeconds();b>0&&a.setTime(b-1)},a.setValue=function(b){a.setTime(b)},a.setCounter=function(b){a.setTime(b)},this.base(a,b)},build:function(){var b=this,c=this.factory.$el.find("ul"),d=this.factory.getTime().digitize([this.factory.getTime().time]);d.length>c.length&&a.each(d,function(a,c){var d=b.createList(c);d.select(c)}),a.each(this.lists,function(a,b){b.play()}),this.base()},flip:function(a,b){this.shouldAutoIncrement&&this.autoIncrement(),a||(a=this.factory.getTime().digitize([this.factory.getTime().time])),this.base(a,b)},reset:function(){this.factory.time=new FlipClock.Time(this.factory,this.factory.original?Math.round(this.factory.original):0),this.flip()}})}(jQuery),function(a){FlipClock.DailyCounterFace=FlipClock.Face.extend({showSeconds:!0,constructor:function(a,b){this.base(a,b)},build:function(b){var c=this,d=this.factory.$el.find("ul"),e=0;b=b?b:this.factory.time.getDayCounter(this.showSeconds),b.length>d.length&&a.each(b,function(a,b){c.createList(b)}),this.showSeconds?a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el):e=2,a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4+e].$el),a(this.createDivider("Hours")).insertBefore(this.lists[this.lists.length-6+e].$el),a(this.createDivider("Days",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getDayCounter(this.showSeconds)),this.autoIncrement(),this.base(a,b)}})}(jQuery),function(a){FlipClock.HourlyCounterFace=FlipClock.Face.extend({constructor:function(a,b){this.base(a,b)},build:function(b,c){var d=this,e=this.factory.$el.find("ul");c=c?c:this.factory.time.getHourCounter(),c.length>e.length&&a.each(c,function(a,b){d.createList(b)}),a(this.createDivider("Seconds")).insertBefore(this.lists[this.lists.length-2].$el),a(this.createDivider("Minutes")).insertBefore(this.lists[this.lists.length-4].$el),b||a(this.createDivider("Hours",!0)).insertBefore(this.lists[0].$el),this.base()},flip:function(a,b){a||(a=this.factory.time.getHourCounter()),this.autoIncrement(),this.base(a,b)},appendDigitToClock:function(a){this.base(a),this.dividers[0].insertAfter(this.dividers[0].next())}})}(jQuery),function(){FlipClock.MinuteCounterFace=FlipClock.HourlyCounterFace.extend({clearExcessDigits:!1,constructor:function(a,b){this.base(a,b)},build:function(){this.base(!0,this.factory.time.getMinuteCounter())},flip:function(a,b){a||(a=this.factory.time.getMinuteCounter()),this.base(a,b)}})}(jQuery),function(a){FlipClock.TwelveHourClockFace=FlipClock.TwentyFourHourClockFace.extend({meridium:!1,meridiumText:"AM",build:function(){var b=this.factory.time.getTime(!1,this.showSeconds);this.base(b),this.meridiumText=this.getMeridium(),this.meridium=a(['"].join("")),this.meridium.insertAfter(this.lists[this.lists.length-1].$el)},flip:function(a,b){this.meridiumText!=this.getMeridium()&&(this.meridiumText=this.getMeridium(),this.meridium.find("a").html(this.meridiumText)),this.base(this.factory.time.getTime(!1,this.showSeconds),b)},getMeridium:function(){return(new Date).getHours()>=12?"PM":"AM"},isPM:function(){return"PM"==this.getMeridium()?!0:!1},isAM:function(){return"AM"==this.getMeridium()?!0:!1}})}(jQuery),function(){FlipClock.Lang.Arabic={years:"سنوات",months:"شهور",days:"أيام",hours:"ساعات",minutes:"دقائق",seconds:"ثواني"},FlipClock.Lang.ar=FlipClock.Lang.Arabic,FlipClock.Lang["ar-ar"]=FlipClock.Lang.Arabic,FlipClock.Lang.arabic=FlipClock.Lang.Arabic}(jQuery),function(){FlipClock.Lang.Danish={years:"År",months:"Måneder",days:"Dage",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.da=FlipClock.Lang.Danish,FlipClock.Lang["da-dk"]=FlipClock.Lang.Danish,FlipClock.Lang.danish=FlipClock.Lang.Danish}(jQuery),function(){FlipClock.Lang.German={years:"Jahre",months:"Monate",days:"Tage",hours:"Stunden",minutes:"Minuten",seconds:"Sekunden"},FlipClock.Lang.de=FlipClock.Lang.German,FlipClock.Lang["de-de"]=FlipClock.Lang.German,FlipClock.Lang.german=FlipClock.Lang.German}(jQuery),function(){FlipClock.Lang.English={years:"Years",months:"Months",days:"Days",hours:"Hours",minutes:"Minutes",seconds:"Seconds"},FlipClock.Lang.en=FlipClock.Lang.English,FlipClock.Lang["en-us"]=FlipClock.Lang.English,FlipClock.Lang.english=FlipClock.Lang.English}(jQuery),function(){FlipClock.Lang.Spanish={years:"Años",months:"Meses",days:"DÍas",hours:"Horas",minutes:"Minutos",seconds:"Segundo"},FlipClock.Lang.es=FlipClock.Lang.Spanish,FlipClock.Lang["es-es"]=FlipClock.Lang.Spanish,FlipClock.Lang.spanish=FlipClock.Lang.Spanish}(jQuery),function(){FlipClock.Lang.Finnish={years:"Vuotta",months:"Kuukautta",days:"Päivää",hours:"Tuntia",minutes:"Minuuttia",seconds:"Sekuntia"},FlipClock.Lang.fi=FlipClock.Lang.Finnish,FlipClock.Lang["fi-fi"]=FlipClock.Lang.Finnish,FlipClock.Lang.finnish=FlipClock.Lang.Finnish}(jQuery),function(){FlipClock.Lang.French={years:"Ans",months:"Mois",days:"Jours",hours:"Heures",minutes:"Minutes",seconds:"Secondes"},FlipClock.Lang.fr=FlipClock.Lang.French,FlipClock.Lang["fr-ca"]=FlipClock.Lang.French,FlipClock.Lang.french=FlipClock.Lang.French}(jQuery),function(){FlipClock.Lang.Italian={years:"Anni",months:"Mesi",days:"Giorni",hours:"Ore",minutes:"Minuti",seconds:"Secondi"},FlipClock.Lang.it=FlipClock.Lang.Italian,FlipClock.Lang["it-it"]=FlipClock.Lang.Italian,FlipClock.Lang.italian=FlipClock.Lang.Italian}(jQuery),function(){FlipClock.Lang.Latvian={years:"Gadi",months:"Mēneši",days:"Dienas",hours:"Stundas",minutes:"Minūtes",seconds:"Sekundes"},FlipClock.Lang.lv=FlipClock.Lang.Latvian,FlipClock.Lang["lv-lv"]=FlipClock.Lang.Latvian,FlipClock.Lang.latvian=FlipClock.Lang.Latvian}(jQuery),function(){FlipClock.Lang.Dutch={years:"Jaren",months:"Maanden",days:"Dagen",hours:"Uren",minutes:"Minuten",seconds:"Seconden"},FlipClock.Lang.nl=FlipClock.Lang.Dutch,FlipClock.Lang["nl-be"]=FlipClock.Lang.Dutch,FlipClock.Lang.dutch=FlipClock.Lang.Dutch}(jQuery),function(){FlipClock.Lang.Norwegian={years:"År",months:"Måneder",days:"Dager",hours:"Timer",minutes:"Minutter",seconds:"Sekunder"},FlipClock.Lang.no=FlipClock.Lang.Norwegian,FlipClock.Lang.nb=FlipClock.Lang.Norwegian,FlipClock.Lang["no-nb"]=FlipClock.Lang.Norwegian,FlipClock.Lang.norwegian=FlipClock.Lang.Norwegian}(jQuery),function(){FlipClock.Lang.Portuguese={years:"Anos",months:"Meses",days:"Dias",hours:"Horas",minutes:"Minutos",seconds:"Segundos"},FlipClock.Lang.pt=FlipClock.Lang.Portuguese,FlipClock.Lang["pt-br"]=FlipClock.Lang.Portuguese,FlipClock.Lang.portuguese=FlipClock.Lang.Portuguese}(jQuery),function(){FlipClock.Lang.Russian={years:"лет",months:"месяцев",days:"дней",hours:"часов",minutes:"минут",seconds:"секунд"},FlipClock.Lang.ru=FlipClock.Lang.Russian,FlipClock.Lang["ru-ru"]=FlipClock.Lang.Russian,FlipClock.Lang.russian=FlipClock.Lang.Russian}(jQuery),function(){FlipClock.Lang.Swedish={years:"År",months:"Månader",days:"Dagar",hours:"Timmar",minutes:"Minuter",seconds:"Sekunder"},FlipClock.Lang.sv=FlipClock.Lang.Swedish,FlipClock.Lang["sv-se"]=FlipClock.Lang.Swedish,FlipClock.Lang.swedish=FlipClock.Lang.Swedish}(jQuery),function(){FlipClock.Lang.Chinese={years:"年",months:"月",days:"日",hours:"时",minutes:"分",seconds:"秒"},FlipClock.Lang.zh=FlipClock.Lang.Chinese,FlipClock.Lang["zh-cn"]=FlipClock.Lang.Chinese,FlipClock.Lang.chinese=FlipClock.Lang.Chinese}(jQuery); (function(){var t=[].indexOf||function(t){for(var e=0,n=this.length;e=0;s={horizontal:{},vertical:{}};f=1;a={};u="waypoints-context-id";p="resize.waypoints";y="scroll.waypoints";v=1;w="waypoints-waypoint-ids";g="waypoint";m="waypoints";o=function(){function t(t){var e=this;this.$element=t;this.element=t[0];this.didResize=false;this.didScroll=false;this.id="context"+f++;this.oldScroll={x:t.scrollLeft(),y:t.scrollTop()};this.waypoints={horizontal:{},vertical:{}};t.data(u,this.id);a[this.id]=this;t.bind(y,function(){var t;if(!(e.didScroll||c)){e.didScroll=true;t=function(){e.doScroll();return e.didScroll=false};return r.setTimeout(t,n[m].settings.scrollThrottle)}});t.bind(p,function(){var t;if(!e.didResize){e.didResize=true;t=function(){n[m]("refresh");return e.didResize=false};return r.setTimeout(t,n[m].settings.resizeThrottle)}})}t.prototype.doScroll=function(){var t,e=this;t={horizontal:{newScroll:this.$element.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.$element.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};if(c&&(!t.vertical.oldScroll||!t.vertical.newScroll)){n[m]("refresh")}n.each(t,function(t,r){var i,o,l;l=[];o=r.newScroll>r.oldScroll;i=o?r.forward:r.backward;n.each(e.waypoints[t],function(t,e){var n,i;if(r.oldScroll<(n=e.offset)&&n<=r.newScroll){return l.push(e)}else if(r.newScroll<(i=e.offset)&&i<=r.oldScroll){return l.push(e)}});l.sort(function(t,e){return t.offset-e.offset});if(!o){l.reverse()}return n.each(l,function(t,e){if(e.options.continuous||t===l.length-1){return e.trigger([i])}})});return this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}};t.prototype.refresh=function(){var t,e,r,i=this;r=n.isWindow(this.element);e=this.$element.offset();this.doScroll();t={horizontal:{contextOffset:r?0:e.left,contextScroll:r?0:this.oldScroll.x,contextDimension:this.$element.width(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:r?0:e.top,contextScroll:r?0:this.oldScroll.y,contextDimension:r?n[m]("viewportHeight"):this.$element.height(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};return n.each(t,function(t,e){return n.each(i.waypoints[t],function(t,r){var i,o,l,s,f;i=r.options.offset;l=r.offset;o=n.isWindow(r.element)?0:r.$element.offset()[e.offsetProp];if(n.isFunction(i)){i=i.apply(r.element)}else if(typeof i==="string"){i=parseFloat(i);if(r.options.offset.indexOf("%")>-1){i=Math.ceil(e.contextDimension*i/100)}}r.offset=o-e.contextOffset+e.contextScroll-i;if(r.options.onlyOnScroll&&l!=null||!r.enabled){return}if(l!==null&&l<(s=e.oldScroll)&&s<=r.offset){return r.trigger([e.backward])}else if(l!==null&&l>(f=e.oldScroll)&&f>=r.offset){return r.trigger([e.forward])}else if(l===null&&e.oldScroll>=r.offset){return r.trigger([e.forward])}})})};t.prototype.checkEmpty=function(){if(n.isEmptyObject(this.waypoints.horizontal)&&n.isEmptyObject(this.waypoints.vertical)){this.$element.unbind([p,y].join(" "));return delete a[this.id]}};return t}();l=function(){function t(t,e,r){var i,o;r=n.extend({},n.fn[g].defaults,r);if(r.offset==="bottom-in-view"){r.offset=function(){var t;t=n[m]("viewportHeight");if(!n.isWindow(e.element)){t=e.$element.height()}return t-n(this).outerHeight()}}this.$element=t;this.element=t[0];this.axis=r.horizontal?"horizontal":"vertical";this.callback=r.handler;this.context=e;this.enabled=r.enabled;this.id="waypoints"+v++;this.offset=null;this.options=r;e.waypoints[this.axis][this.id]=this;s[this.axis][this.id]=this;i=(o=t.data(w))!=null?o:[];i.push(this.id);t.data(w,i)}t.prototype.trigger=function(t){if(!this.enabled){return}if(this.callback!=null){this.callback.apply(this.element,t)}if(this.options.triggerOnce){return this.destroy()}};t.prototype.disable=function(){return this.enabled=false};t.prototype.enable=function(){this.context.refresh();return this.enabled=true};t.prototype.destroy=function(){delete s[this.axis][this.id];delete this.context.waypoints[this.axis][this.id];return this.context.checkEmpty()};t.getWaypointsByElement=function(t){var e,r;r=n(t).data(w);if(!r){return[]}e=n.extend({},s.horizontal,s.vertical);return n.map(r,function(t){return e[t]})};return t}();d={init:function(t,e){var r;if(e==null){e={}}if((r=e.handler)==null){e.handler=t}this.each(function(){var t,r,i,s;t=n(this);i=(s=e.context)!=null?s:n.fn[g].defaults.context;if(!n.isWindow(i)){i=t.closest(i)}i=n(i);r=a[i.data(u)];if(!r){r=new o(i)}return new l(t,r,e)});n[m]("refresh");return this},disable:function(){return d._invoke(this,"disable")},enable:function(){return d._invoke(this,"enable")},destroy:function(){return d._invoke(this,"destroy")},prev:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(e>0){return t.push(n[e-1])}})},next:function(t,e){return d._traverse.call(this,t,e,function(t,e,n){if(et.oldScroll.y})},left:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset<=t.oldScroll.x})},right:function(t){if(t==null){t=r}return h._filter(t,"horizontal",function(t,e){return e.offset>t.oldScroll.x})},enable:function(){return h._invoke("enable")},disable:function(){return h._invoke("disable")},destroy:function(){return h._invoke("destroy")},extendFn:function(t,e){return d[t]=e},_invoke:function(t){var e;e=n.extend({},s.vertical,s.horizontal);return n.each(e,function(e,n){n[t]();return true})},_filter:function(t,e,r){var i,o;i=a[n(t).data(u)];if(!i){return[]}o=[];n.each(i.waypoints[e],function(t,e){if(r(i,e)){return o.push(e)}});o.sort(function(t,e){return t.offset-e.offset});return n.map(o,function(t){return t.element})}};n[m]=function(){var t,n;n=arguments[0],t=2<=arguments.length?e.call(arguments,1):[];if(h[n]){return h[n].apply(null,t)}else{return h.aggregate.call(null,n)}};n[m].settings={resizeThrottle:100,scrollThrottle:30};return i.load(function(){return n[m]("refresh")})})}).call(this); (function(a,b,c){"use strict";var d=b.event,e;d.special.smartresize={setup:function(){b(this).bind("resize",d.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",d.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",e&&clearTimeout(e),e=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Mason=function(a,c){this.element=b(c),this._create(a),this._init()},b.Mason.settings={isResizable:!0,isAnimated:!1,animationOptions:{queue:!1,duration:500},gutterWidth:0,isRTL:!1,isFitWidth:!1,containerStyle:{position:"relative"}},b.Mason.prototype={_filterFindBricks:function(a){var b=this.options.itemSelector;return b?a.filter(b).add(a.find(b)):a},_getBricks:function(a){var b=this._filterFindBricks(a).css({position:"absolute"}).addClass("masonry-brick");return b},_create:function(c){this.options=b.extend(!0,{},b.Mason.settings,c),this.styleQueue=[];var d=this.element[0].style;this.originalStyle={height:d.height||""};var e=this.options.containerStyle;for(var f in e)this.originalStyle[f]=d[f]||"";this.element.css(e),this.horizontalDirection=this.options.isRTL?"right":"left",this.offset={x:parseInt(this.element.css("padding-"+this.horizontalDirection),10),y:parseInt(this.element.css("padding-top"),10)},this.isFluid=this.options.columnWidth&&typeof this.options.columnWidth=="function";var g=this;setTimeout(function(){g.element.addClass("masonry")},0),this.options.isResizable&&b(a).bind("smartresize.masonry",function(){g.resize()}),this.reloadItems()},_init:function(a){this._getColumns(),this._reLayout(a)},option:function(a,c){b.isPlainObject(a)&&(this.options=b.extend(!0,this.options,a))},layout:function(a,b){for(var c=0,d=a.length;c=1){ jQuery(function(){ var header=jQuery("#header.horizontal-w"); var navHomeY=header.offset().top; var isFixed=false; var scrolls_pure=parseInt($('body').data('scrolls-value')); var $w=jQuery(window); $w.scroll(function(e){ var scrollTop=$w.scrollTop(); var shouldBeFixed=scrollTop > scrolls_pure; if(shouldBeFixed&&!isFixed){ header.addClass("sticky"); isFixed=true; } else if(!shouldBeFixed&&isFixed){ header.removeClass("sticky"); isFixed=false; } e.preventDefault(); }); }); }}); (function(){ var $search_header11=$('#w-header-type-11-search'), $search_icon=$search_header11.children('i'), $search_input=$search_header11.children('input'); $search_icon.on('click', function(){ if($search_input.hasClass('open-search')===false){ $search_input.animate({width: '180px', padding: '0 10px'}, 230).focus().addClass('open-search'); }else{ $search_input.animate({width: 0, padding: 0}, 230).removeClass('open-search'); }}); jQuery(document).on('click', function(e){ if(e.target.id=='header11_search_icon') return if($search_input.attr('class')=='open-search') $search_input.animate({width: 0, padding: 0}, 230).removeClass('open-search'); }); })(); (function(){ var phone_components=$('.phones-components'); phone_components.children('h6').eq(1).addClass('active'); phone_components.children('h6').on('click', function(){ phone_components.children('h6').removeClass('active'); $(this).addClass('active'); }); })(); (function(){ $('#bridge').find('.navbar').find('.nav').children('li').each(function(){ var $this=$(this); if($this.children('a').attr('href')==window.location.href){ $this.on('whmcs_menu', function(){ $this.addClass('active'); }); $this.trigger('whmcs_menu'); }}); $('#bridge').find('#nav.navbar-main').attr('id', 'nav-whmcs'); })(); $('.icon-box22').on('mouseenter', function(){ $('.icon-box22').removeClass('w-featured'); $(this).addClass('w-featured'); }); jQuery("a.inlinelb").fancybox({ scrolling:'no', fitToView: false, maxWidth: "100%", }); jQuery('.fancybox-media') .attr('rel', 'media-gallery') .fancybox({ openEffect:'none', closeEffect:'none', prevEffect:'none', nextEffect:'none', arrows:false, helpers:{ media:{}, buttons:{}} }); jQuery(".w_toggle").toggle(function(){ jQuery(".w_toparea").show(400); jQuery('.w_toggle').addClass('open'); }, function(){ jQuery(".w_toparea").hide(400); jQuery('.w_toggle').removeClass('open'); }); jQuery('#nav li.current-menu-item, #nav li.current_page_item, #side-nav li.current_page_item, #nav li.current-menu-ancestor, #nav li ul li ul li.current-menu-item').addClass('current'); jQuery('#nav li ul li:has(ul)').addClass('submenux'); var $window=$(window), nav_height=$('#nav-wrap').outerHeight(); $('#nav').find('a').each(function(){ var $this=$(this), href=$this.attr('href'); if(href&&href.indexOf('#')!==-1&&href!='#'){ var id=href.substring(href.indexOf('#')), section=$(id); if(section.length > 0){ $window.on('resize scroll', function(){ var section_top=section.offset().top - nav_height, section_height=section.outerHeight(); if($window.scrollTop() >=section_top&&$window.scrollTop() < (section_top + section_height)){ $this.parent().siblings().removeClass('active').end().addClass('active'); }}); }} }); jQuery(window).on('scroll', function(){ if(jQuery(this).scrollTop() > 100){ jQuery('.scrollup').fadeIn(); }else{ jQuery('.scrollup').fadeOut(); }}); jQuery('.scrollup').on('click', function(){ jQuery("html, body").animate({ scrollTop: 0 }, 700); return false; }); jQuery(function(){ jQuery('.max-hero a.button').on('click', function(){ if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){ var target=jQuery(this.hash); target=target.length ? target:jQuery('[name=' + this.hash.slice(1) +']'); if(target.length){ jQuery('html,body').animate({ scrollTop: target.offset().top }, 700); return false; }} }); $('#nav').find('a[href*="#"]:not([href="#"])').click(function(){ if(location.pathname.replace(/^\//,'')==this.pathname.replace(/^\//,'')&&location.hostname==this.hostname){ var target=$(this.hash); target=target.length ? target:$('[name=' + this.hash.slice(1) +']'); if(target.length){ $('html, body').animate({ scrollTop: target.offset().top }, 700); return false; }} }); }); jQuery("#toggle-icon").toggle(function(){ jQuery("#header.vertical-w").fadeIn(350); jQuery(".vertical-socials").fadeOut(350); jQuery(this).addClass('active'); jQuery('#vertical-header-wrapper').animate({ 'left': 0 },350); }, function(){ jQuery("#header.vertical-w").fadeOut(350); jQuery(".vertical-socials").fadeIn(350); jQuery(this).removeClass('active'); jQuery('#vertical-header-wrapper').animate({ 'left': -250 },350); }); (function(){ $('#nav-wrap').prepend(''); if(! $('#responavwrap').length){ var $cloned_nav=$('#nav-wrap').find('#nav').clone().attr('id', 'responav'); $('
    ', {id:'responavwrap'}) .prepend('
    ') .append($cloned_nav) .insertAfter('#header'); } var $res_nav_wrap=$('#responavwrap'), $menu_icon=$('#menu-icon'); $res_nav_wrap.find('li').each(function(){ var $list_item=$(this); if($list_item.children('ul').length){ $list_item.children('a').append(''); } $list_item.children('a').children('i').toggle(function(){ $(this).attr('class', 'sl-arrow-down respo-nav-icon'); $list_item.children('ul').slideDown(350); }, function(){ $(this).attr('class', 'sl-arrow-right respo-nav-icon'); $list_item.children('ul').slideUp(350); }); }); $menu_icon.on('click', function(){ if($res_nav_wrap.hasClass('open')===false){ $res_nav_wrap.animate({'left': 0},350).addClass('open'); }else{ $res_nav_wrap.animate({'left': -265},350).removeClass('open'); }}); $res_nav_wrap.find('#close-icon').on('click', function(){ if($res_nav_wrap.hasClass('open')===true){ $res_nav_wrap.animate({'left': -265},350).removeClass('open'); }}); })(); if(navigator.userAgent.match(/IEMobile\/10\.0/)){ var msViewportStyle=document.createElement("style"); msViewportStyle.appendChild(document.createTextNode("@-ms-viewport{width:auto!important}" ) ); document.getElementsByTagName("head")[0]. appendChild(msViewportStyle); jQuery('ul#nav').addClass('ie10mfx'); } var deviceAgent=navigator.userAgent.toLowerCase(); var agentID=deviceAgent.match(/(iphone|ipod|ipad)/); if(agentID){ var width=jQuery(window).width(); if(width > 768){ if(jQuery('#nav li:has(ul)').length){ jQuery('#nav li:has(ul)').doubleTapToGo(); }} }else{ jQuery('#nav li:has(ul)').doubleTapToGo(); } (function(){ var $container=jQuery('.acc-container'), $trigger=jQuery('.acc-trigger'); $container.hide(); $trigger.first().addClass('active').next().show(); var fullWidth=$container.outerWidth(true); $trigger.css('width', fullWidth); $container.css('width', fullWidth); $trigger.on('click', function(e){ if(jQuery(this).next().is(':hidden')){ $trigger.removeClass('active').next().slideUp(300); jQuery(this).toggleClass('active').next().slideDown(300); } e.preventDefault(); }); jQuery(window).on('resize', function(){ fullWidth=$container.outerWidth(true) $trigger.css('width', $trigger.parent().width()); $container.css('width', $container.parent().width()); }); })(); jQuery("#contact-form").validate({ rules: { cName: { required: true, minlength: 3 }, cEmail: { required: true, email: true }, cMessage: { required: true }}, messages: { cName: { required: "Your name is mandatory", minlength: jQuery.validator.format("Your name must have at least {0} characters.") }, cEmail: { required: "Need an email address", email: "The email address must be valid" }, cMessage: { required: "Message is mandatory", }}, onsubmit: true, errorClass: "bad-field", validClass: "good-field", errorElement: "span", errorPlacement: function(error, element){ if(element.parent('.field-group').length){ error.insertAfter(element.siblings('h5')); }else{ error.insertBefore(element); }} }); jQuery('.search-form-icon').on('click', function(){ jQuery('.search-form-box').addClass('show-sbox'); jQuery('#search-box').focus(); }); jQuery(document).on('click', function(ev){ var myID=ev.target.id; if((myID!='searchbox-icon')&&myID!='search-box'){ jQuery('.search-form-box').removeClass('show-sbox'); }}); jQuery("#our-clients.crsl").owlCarousel({ autoPlay:true, pagination:false, navigation:true, navigationText:["",""], }); (function(){ var owl=$("#latest-projects"); owl.owlCarousel({ items:4, pagination: false }); $(".latest-projects-navigation .next").click(function(){ owl.trigger('owl.next'); }); $(".latest-projects-navigation .prev").click(function(){ owl.trigger('owl.prev'); }); })(); (function(){ var owl=$('.testimonial-owl-carousel'), items=owl.data('testimonial_count'); owl.owlCarousel({ items:items, pagination: false, itemsDesktop:[1200,2], itemsDesktopSmall:[960,2], itemsMobile:[768,1], }); $(".tc-navigation .next").click(function(){ owl.trigger('owl.next'); }); $(".tc-navigation .prev").click(function(){ owl.trigger('owl.prev'); }); })(); if(jQuery('.pie').length){ jQuery('.pie').easyPieChart({ barColor:'#ff9900', trackColor: '#f2f2f2', scaleColor: false, lineWidth:20, animate: 1000, onStep: function(value){ this.$el.find('span').text(~~value+1); }}); } initProgress('.progress'); function initProgress(el){ jQuery(el).each(function(){ var pData=jQuery(this).data('progress'); progress(pData,jQuery(this)); }); } function progress(percent, $element){ var progressBarWidth=0; (function myLoop (i,max){ progressBarWidth=i * $element.width() / 100; setTimeout(function (){ $element.find('div').find('small').html(i+'%'); $element.find('div').width(progressBarWidth); if(++i<=max) myLoop(i,max); }, 10) })(0,percent); } jQuery(window).load(function(){ jQuery('.flexslider').flexslider(); }); jQuery(window).load(function(){ if(jQuery('#pin-content').length){ jQuery('#pin-content').masonry({ itemSelector: '.pin-box', }).imagesLoaded(function(){ jQuery('#pin-content').data('masonry'); }); }}); jQuery('.max-hero').superslides({ animation: 'fade' }); jQuery("#wrap").fitVids(); jQuery(document).ready(function(){ jQuery(window).bind('load', function (){ parallaxInit(); }); function parallaxInit(){ testMobile=isMobile.any(); if(testMobile==null){ jQuery('.sparallax .slide1').parallax("50%", 0.2); jQuery('.sparallax .slide2').parallax("50%", 0.2); jQuery('.sparallax .slide3').parallax("50%", 0.2); jQuery('.sparallax .slide4').parallax("50%", 0.2); jQuery('.sparallax .slide5').parallax("50%", 0.2); jQuery('.sparallax .slide6').parallax("50%", 0.2); }} parallaxInit(); }); var testMobile; var isMobile={ Android: function(){ return navigator.userAgent.match(/Android/i); }, BlackBerry: function(){ return navigator.userAgent.match(/BlackBerry/i); }, iOS: function(){ return navigator.userAgent.match(/iPhone|iPad|iPod/i); }, Opera: function(){ return navigator.userAgent.match(/Opera Mini/i); }, Windows: function(){ return navigator.userAgent.match(/IEMobile/i); }, any: function(){ return (isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()); }}; jQuery('.countdown-w').each(function(){ var days=jQuery('.days-w .count-w', this); var hours=jQuery('.hours-w .count-w', this); var minutes=jQuery('.minutes-w .count-w', this); var seconds=jQuery('.seconds-w .count-w', this); var until=parseInt(jQuery(this).data('until'), 10); var done=jQuery(this).data('done'); var self=jQuery(this); var updateTime=function(){ var now=Math.round((+new Date()) / 1000); if(until <=now){ clearInterval(interval); self.html(jQuery('').addClass('done-w block-w').html(jQuery('').addClass('count-w').text(done))); return; } var left=until-now; seconds.text(left%60); left=Math.floor(left/60); minutes.text(left%60); left=Math.floor(left/60); hours.text(left%24); left=Math.floor(left/24); days.text(left); }; var interval=setInterval(updateTime, 1000); }); var doneMessage=jQuery('.countdown-clock').data('done'); var futureDate=new Date(jQuery('.countdown-clock').data('future')); var currentDate=new Date(); var diff=futureDate.getTime() / 1000 - currentDate.getTime() / 1000; function dayDiff(first, second){ return (second-first)/(1000*60*60*24); } if(dayDiff(currentDate, futureDate) < 100){ jQuery('.countdown-clock').addClass('twoDayDigits'); }else{ jQuery('.countdown-clock').addClass('threeDayDigits'); } if(diff < 0){ diff=0; jQuery('.countdown-message').html(doneMessage); } var clock=jQuery('.countdown-clock').FlipClock(diff, { clockFace: 'DailyCounter', countdown: true, autoStart: true, callbacks: { stop: function(){ jQuery('.countdown-message').html(doneMessage) }} }); jQuery('.max-counter').each(function(i, el){ var counter=jQuery(el).data('counter'); if(jQuery(el).visible(true)&&!jQuery(el).hasClass('counted')){ setTimeout(function (){ jQuery(el).addClass('counted'); jQuery(el).find('.max-count').countTo({ from: 0, to: counter, speed: 2000, refreshInterval: 100 }); }, 1000); }}); var win=jQuery(window), allMods=jQuery(".max-counter"); win.on('scroll', function(event){ allMods.each(function(i, el){ var el=jQuery(el), effecttype=el.data('effecttype'); if(effecttype==='counter'){ var counter=el.data('counter'); if(el.visible(true)&&!jQuery(el).hasClass('counted')){ el.addClass('counted'); el.find('.max-count').countTo({ from: 0, to: counter, speed: 2000, refreshInterval: 100 }); }} }); }); jQuery.fn.countTo=function (options){ options=options||{}; return jQuery(this).each(function (){ var settings=jQuery.extend({}, jQuery.fn.countTo.defaults, { from: jQuery(this).data('from'), to: jQuery(this).data('to'), speed: jQuery(this).data('speed'), refreshInterval: jQuery(this).data('refresh-interval'), decimals: jQuery(this).data('decimals') }, options); var loops=Math.ceil(settings.speed / settings.refreshInterval), increment=(settings.to - settings.from) / loops; var self=this, $self=jQuery(this), loopCount=0, value=settings.from, data=$self.data('countTo')||{}; $self.data('countTo', data); if(data.interval){ clearInterval(data.interval); } data.interval=setInterval(updateTimer, settings.refreshInterval); render(value); function updateTimer(){ value +=increment; loopCount++; render(value); if(typeof(settings.onUpdate)=='function'){ settings.onUpdate.call(self, value); } if(loopCount >=loops){ $self.removeData('countTo'); clearInterval(data.interval); value=settings.to; if(typeof(settings.onComplete)=='function'){ settings.onComplete.call(self, value); }} } function render(value){ var formattedValue=settings.formatter.call(self, value, settings); $self.html(formattedValue); }}); }; jQuery.fn.countTo.defaults={ from: 0, to: 0, speed: 1000, refreshInterval: 100, decimals: 0, formatter: formatter, onUpdate: null, onComplete: null }; function formatter(value, settings){ return value.toFixed(settings.decimals); }; jQuery('.widget-tabs').each(function(){ jQuery(this).find(".tab_content").hide(); if(document.location.hash&&jQuery(this).find("ul.tabs li a[href='"+document.location.hash+"']").length >=1){ jQuery(this).find("ul.tabs li a[href='"+document.location.hash+"']").parent().addClass("active").show(); jQuery(this).find(document.location.hash+".tab_content").show(); }else{ jQuery(this).find("ul.tabs li:first").addClass("active").show(); jQuery(this).find(".tab_content:first").show(); }}); jQuery("ul.tabs li").on('click', function(e){ jQuery(this).parents('.widget-tabs').find("ul.tabs li").removeClass("active"); jQuery(this).addClass("active"); jQuery(this).parents('.widget-tabs').find(".tab_content").hide(); var activeTab=jQuery(this).find("a").attr("href"); jQuery(this).parents('.widget-tabs').find(activeTab).fadeIn(); e.preventDefault(); }); jQuery(function(){ if(jQuery('.parallax-sec').hasClass('page-title-x')){ jQuery.stellar({ horizontalScrolling: false, responsive: false, hideDistantElements: false, }); }else{ jQuery.stellar({ horizontalScrolling: false, responsive: true, hideDistantElements: false, }); }}); function updateShoppingCart(){ "use strict"; jQuery('body').bind('added_to_cart', add_to_cart); function add_to_cart(event, parts, hash){ var miniCart=jQuery('.woo-cart-header'); if(parts['div.widget-woo-cart-content']){ var $cartContent=jQuery(parts['div.widget-woo-cart-content']), $itemsList=$cartContent .find('.cart-list'), $total=$cartContent.find('.total').contents(':not(strong)').text(); miniCart.find('.woo-cart-dropdown').html('').append($itemsList); miniCart.find('.total span').html('').append($total); }} } document.createElement("article"); document.createElement("section"); })(jQuery); ;(function (global, factory){ typeof exports==='object'&&typeof module!=='undefined' ? module.exports=factory() : typeof define==='function'&&define.amd ? define(factory) : global.moment=factory() }(this, (function (){ 'use strict'; var hookCallback; function hooks (){ return hookCallback.apply(null, arguments); } function setHookCallback (callback){ hookCallback=callback; } function isArray(input){ return input instanceof Array||Object.prototype.toString.call(input)==='[object Array]'; } function isObject(input){ return input!=null&&Object.prototype.toString.call(input)==='[object Object]'; } function isObjectEmpty(obj){ if(Object.getOwnPropertyNames){ return (Object.getOwnPropertyNames(obj).length===0); }else{ var k; for (k in obj){ if(obj.hasOwnProperty(k)){ return false; }} return true; }} function isUndefined(input){ return input===void 0; } function isNumber(input){ return typeof input==='number'||Object.prototype.toString.call(input)==='[object Number]'; } function isDate(input){ return input instanceof Date||Object.prototype.toString.call(input)==='[object Date]'; } function map(arr, fn){ var res=[], i; for (i=0; i < arr.length; ++i){ res.push(fn(arr[i], i)); } return res; } function hasOwnProp(a, b){ return Object.prototype.hasOwnProperty.call(a, b); } function extend(a, b){ for (var i in b){ if(hasOwnProp(b, i)){ a[i]=b[i]; }} if(hasOwnProp(b, 'toString')){ a.toString=b.toString; } if(hasOwnProp(b, 'valueOf')){ a.valueOf=b.valueOf; } return a; } function createUTC (input, format, locale, strict){ return createLocalOrUTC(input, format, locale, strict, true).utc(); } function defaultParsingFlags(){ return { empty:false, unusedTokens:[], unusedInput:[], overflow:-2, charsLeftOver:0, nullInput:false, invalidMonth:null, invalidFormat:false, userInvalidated:false, iso:false, parsedDateParts:[], meridiem:null, rfc2822:false, weekdayMismatch:false };} function getParsingFlags(m){ if(m._pf==null){ m._pf=defaultParsingFlags(); } return m._pf; } var some; if(Array.prototype.some){ some=Array.prototype.some; }else{ some=function (fun){ var t=Object(this); var len=t.length >>> 0; for (var i=0; i < len; i++){ if(i in t&&fun.call(this, t[i], i, t)){ return true; }} return false; };} function isValid(m){ if(m._isValid==null){ var flags=getParsingFlags(m); var parsedParts=some.call(flags.parsedDateParts, function (i){ return i!=null; }); var isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem||(flags.meridiem&&parsedParts)); if(m._strict){ isNowValid=isNowValid && flags.charsLeftOver===0 && flags.unusedTokens.length===0 && flags.bigHour===undefined; } if(Object.isFrozen==null||!Object.isFrozen(m)){ m._isValid=isNowValid; }else{ return isNowValid; }} return m._isValid; } function createInvalid (flags){ var m=createUTC(NaN); if(flags!=null){ extend(getParsingFlags(m), flags); }else{ getParsingFlags(m).userInvalidated=true; } return m; } var momentProperties=hooks.momentProperties=[]; function copyConfig(to, from){ var i, prop, val; if(!isUndefined(from._isAMomentObject)){ to._isAMomentObject=from._isAMomentObject; } if(!isUndefined(from._i)){ to._i=from._i; } if(!isUndefined(from._f)){ to._f=from._f; } if(!isUndefined(from._l)){ to._l=from._l; } if(!isUndefined(from._strict)){ to._strict=from._strict; } if(!isUndefined(from._tzm)){ to._tzm=from._tzm; } if(!isUndefined(from._isUTC)){ to._isUTC=from._isUTC; } if(!isUndefined(from._offset)){ to._offset=from._offset; } if(!isUndefined(from._pf)){ to._pf=getParsingFlags(from); } if(!isUndefined(from._locale)){ to._locale=from._locale; } if(momentProperties.length > 0){ for (i=0; i < momentProperties.length; i++){ prop=momentProperties[i]; val=from[prop]; if(!isUndefined(val)){ to[prop]=val; }} } return to; } var updateInProgress=false; function Moment(config){ copyConfig(this, config); this._d=new Date(config._d!=null ? config._d.getTime():NaN); if(!this.isValid()){ this._d=new Date(NaN); } if(updateInProgress===false){ updateInProgress=true; hooks.updateOffset(this); updateInProgress=false; }} function isMoment (obj){ return obj instanceof Moment||(obj!=null&&obj._isAMomentObject!=null); } function absFloor (number){ if(number < 0){ return Math.ceil(number)||0; }else{ return Math.floor(number); }} function toInt(argumentForCoercion){ var coercedNumber=+argumentForCoercion, value=0; if(coercedNumber!==0&&isFinite(coercedNumber)){ value=absFloor(coercedNumber); } return value; } function compareArrays(array1, array2, dontConvert){ var len=Math.min(array1.length, array2.length), lengthDiff=Math.abs(array1.length - array2.length), diffs=0, i; for (i=0; i < len; i++){ if((dontConvert&&array1[i]!==array2[i]) || (!dontConvert&&toInt(array1[i])!==toInt(array2[i]))){ diffs++; }} return diffs + lengthDiff; } function warn(msg){ if(hooks.suppressDeprecationWarnings===false && (typeof console!=='undefined')&&console.warn){ console.warn('Deprecation warning: ' + msg); }} function deprecate(msg, fn){ var firstTime=true; return extend(function (){ if(hooks.deprecationHandler!=null){ hooks.deprecationHandler(null, msg); } if(firstTime){ var args=[]; var arg; for (var i=0; i < arguments.length; i++){ arg=''; if(typeof arguments[i]==='object'){ arg +='\n[' + i + '] '; for (var key in arguments[0]){ arg +=key + ': ' + arguments[0][key] + ', '; } arg=arg.slice(0, -2); }else{ arg=arguments[i]; } args.push(arg); } warn(msg + '\nArguments: ' + Array.prototype.slice.call(args).join('') + '\n' + (new Error()).stack); firstTime=false; } return fn.apply(this, arguments); }, fn); } var deprecations={}; function deprecateSimple(name, msg){ if(hooks.deprecationHandler!=null){ hooks.deprecationHandler(name, msg); } if(!deprecations[name]){ warn(msg); deprecations[name]=true; }} hooks.suppressDeprecationWarnings=false; hooks.deprecationHandler=null; function isFunction(input){ return input instanceof Function||Object.prototype.toString.call(input)==='[object Function]'; } function set (config){ var prop, i; for (i in config){ prop=config[i]; if(isFunction(prop)){ this[i]=prop; }else{ this['_' + i]=prop; }} this._config=config; this._dayOfMonthOrdinalParseLenient=new RegExp( (this._dayOfMonthOrdinalParse.source||this._ordinalParse.source) + '|' + (/\d{1,2}/).source); } function mergeConfigs(parentConfig, childConfig){ var res=extend({}, parentConfig), prop; for (prop in childConfig){ if(hasOwnProp(childConfig, prop)){ if(isObject(parentConfig[prop])&&isObject(childConfig[prop])){ res[prop]={}; extend(res[prop], parentConfig[prop]); extend(res[prop], childConfig[prop]); }else if(childConfig[prop]!=null){ res[prop]=childConfig[prop]; }else{ delete res[prop]; }} } for (prop in parentConfig){ if(hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject(parentConfig[prop])){ res[prop]=extend({}, res[prop]); }} return res; } function Locale(config){ if(config!=null){ this.set(config); }} var keys; if(Object.keys){ keys=Object.keys; }else{ keys=function (obj){ var i, res=[]; for (i in obj){ if(hasOwnProp(obj, i)){ res.push(i); }} return res; };} var defaultCalendar={ sameDay:'[Today at] LT', nextDay:'[Tomorrow at] LT', nextWeek:'dddd [at] LT', lastDay:'[Yesterday at] LT', lastWeek:'[Last] dddd [at] LT', sameElse:'L' }; function calendar (key, mom, now){ var output=this._calendar[key]||this._calendar['sameElse']; return isFunction(output) ? output.call(mom, now):output; } var defaultLongDateFormat={ LTS:'h:mm:ss A', LT:'h:mm A', L:'MM/DD/YYYY', LL:'MMMM D, YYYY', LLL:'MMMM D, YYYY h:mm A', LLLL:'dddd, MMMM D, YYYY h:mm A' }; function longDateFormat (key){ var format=this._longDateFormat[key], formatUpper=this._longDateFormat[key.toUpperCase()]; if(format||!formatUpper){ return format; } this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g, function (val){ return val.slice(1); }); return this._longDateFormat[key]; } var defaultInvalidDate='Invalid date'; function invalidDate (){ return this._invalidDate; } var defaultOrdinal='%d'; var defaultDayOfMonthOrdinalParse=/\d{1,2}/; function ordinal (number){ return this._ordinal.replace('%d', number); } var defaultRelativeTime={ future:'in %s', past:'%s ago', s:'a few seconds', ss:'%d seconds', m:'a minute', mm:'%d minutes', h:'an hour', hh:'%d hours', d:'a day', dd:'%d days', M:'a month', MM:'%d months', y:'a year', yy:'%d years' }; function relativeTime (number, withoutSuffix, string, isFuture){ var output=this._relativeTime[string]; return (isFunction(output)) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number); } function pastFuture (diff, output){ var format=this._relativeTime[diff > 0 ? 'future':'past']; return isFunction(format) ? format(output):format.replace(/%s/i, output); } var aliases={}; function addUnitAlias (unit, shorthand){ var lowerCase=unit.toLowerCase(); aliases[lowerCase]=aliases[lowerCase + 's']=aliases[shorthand]=unit; } function normalizeUnits(units){ return typeof units==='string' ? aliases[units]||aliases[units.toLowerCase()]:undefined; } function normalizeObjectUnits(inputObject){ var normalizedInput={}, normalizedProp, prop; for (prop in inputObject){ if(hasOwnProp(inputObject, prop)){ normalizedProp=normalizeUnits(prop); if(normalizedProp){ normalizedInput[normalizedProp]=inputObject[prop]; }} } return normalizedInput; } var priorities={}; function addUnitPriority(unit, priority){ priorities[unit]=priority; } function getPrioritizedUnits(unitsObj){ var units=[]; for (var u in unitsObj){ units.push({unit: u, priority: priorities[u]}); } units.sort(function (a, b){ return a.priority - b.priority; }); return units; } function zeroFill(number, targetLength, forceSign){ var absNumber='' + Math.abs(number), zerosToFill=targetLength - absNumber.length, sign=number >=0; return (sign ? (forceSign ? '+':''):'-') + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber; } var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g; var localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g; var formatFunctions={}; var formatTokenFunctions={}; function addFormatToken (token, padded, ordinal, callback){ var func=callback; if(typeof callback==='string'){ func=function (){ return this[callback](); };} if(token){ formatTokenFunctions[token]=func; } if(padded){ formatTokenFunctions[padded[0]]=function (){ return zeroFill(func.apply(this, arguments), padded[1], padded[2]); };} if(ordinal){ formatTokenFunctions[ordinal]=function (){ return this.localeData().ordinal(func.apply(this, arguments), token); };}} function removeFormattingTokens(input){ if(input.match(/\[[\s\S]/)){ return input.replace(/^\[|\]$/g, ''); } return input.replace(/\\/g, ''); } function makeFormatFunction(format){ var array=format.match(formattingTokens), i, length; for (i=0, length=array.length; i < length; i++){ if(formatTokenFunctions[array[i]]){ array[i]=formatTokenFunctions[array[i]]; }else{ array[i]=removeFormattingTokens(array[i]); }} return function (mom){ var output='', i; for (i=0; i < length; i++){ output +=isFunction(array[i]) ? array[i].call(mom, format):array[i]; } return output; };} function formatMoment(m, format){ if(!m.isValid()){ return m.localeData().invalidDate(); } format=expandFormat(format, m.localeData()); formatFunctions[format]=formatFunctions[format]||makeFormatFunction(format); return formatFunctions[format](m); } function expandFormat(format, locale){ var i=5; function replaceLongDateFormatTokens(input){ return locale.longDateFormat(input)||input; } localFormattingTokens.lastIndex=0; while (i >=0&&localFormattingTokens.test(format)){ format=format.replace(localFormattingTokens, replaceLongDateFormatTokens); localFormattingTokens.lastIndex=0; i -=1; } return format; } var match1=/\d/; var match2=/\d\d/; var match3=/\d{3}/; var match4=/\d{4}/; var match6=/[+-]?\d{6}/; var match1to2=/\d\d?/; var match3to4=/\d\d\d\d?/; var match5to6=/\d\d\d\d\d\d?/; var match1to3=/\d{1,3}/; var match1to4=/\d{1,4}/; var match1to6=/[+-]?\d{1,6}/; var matchUnsigned=/\d+/; var matchSigned=/[+-]?\d+/; var matchOffset=/Z|[+-]\d\d:?\d\d/gi; var matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi; var matchTimestamp=/[+-]?\d+(\.\d{1,3})?/; var matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i; var regexes={}; function addRegexToken (token, regex, strictRegex){ regexes[token]=isFunction(regex) ? regex:function (isStrict, localeData){ return (isStrict&&strictRegex) ? strictRegex:regex; };} function getParseRegexForToken (token, config){ if(!hasOwnProp(regexes, token)){ return new RegExp(unescapeFormat(token)); } return regexes[token](config._strict, config._locale); } function unescapeFormat(s){ return regexEscape(s.replace('\\', '').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function (matched, p1, p2, p3, p4){ return p1||p2||p3||p4; })); } function regexEscape(s){ return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&'); } var tokens={}; function addParseToken (token, callback){ var i, func=callback; if(typeof token==='string'){ token=[token]; } if(isNumber(callback)){ func=function (input, array){ array[callback]=toInt(input); };} for (i=0; i < token.length; i++){ tokens[token[i]]=func; }} function addWeekParseToken (token, callback){ addParseToken(token, function (input, array, config, token){ config._w=config._w||{}; callback(input, config._w, config, token); }); } function addTimeToArrayFromToken(token, input, config){ if(input!=null&&hasOwnProp(tokens, token)){ tokens[token](input, config._a, config, token); }} var YEAR=0; var MONTH=1; var DATE=2; var HOUR=3; var MINUTE=4; var SECOND=5; var MILLISECOND=6; var WEEK=7; var WEEKDAY=8; addFormatToken('Y', 0, 0, function (){ var y=this.year(); return y <=9999 ? '' + y:'+' + y; }); addFormatToken(0, ['YY', 2], 0, function (){ return this.year() % 100; }); addFormatToken(0, ['YYYY', 4], 0, 'year'); addFormatToken(0, ['YYYYY', 5], 0, 'year'); addFormatToken(0, ['YYYYYY', 6, true], 0, 'year'); addUnitAlias('year', 'y'); addUnitPriority('year', 1); addRegexToken('Y', matchSigned); addRegexToken('YY', match1to2, match2); addRegexToken('YYYY', match1to4, match4); addRegexToken('YYYYY', match1to6, match6); addRegexToken('YYYYYY', match1to6, match6); addParseToken(['YYYYY', 'YYYYYY'], YEAR); addParseToken('YYYY', function (input, array){ array[YEAR]=input.length===2 ? hooks.parseTwoDigitYear(input):toInt(input); }); addParseToken('YY', function (input, array){ array[YEAR]=hooks.parseTwoDigitYear(input); }); addParseToken('Y', function (input, array){ array[YEAR]=parseInt(input, 10); }); function daysInYear(year){ return isLeapYear(year) ? 366:365; } function isLeapYear(year){ return (year % 4===0&&year % 100!==0)||year % 400===0; } hooks.parseTwoDigitYear=function (input){ return toInt(input) + (toInt(input) > 68 ? 1900:2000); }; var getSetYear=makeGetSet('FullYear', true); function getIsLeapYear (){ return isLeapYear(this.year()); } function makeGetSet (unit, keepTime){ return function (value){ if(value!=null){ set$1(this, unit, value); hooks.updateOffset(this, keepTime); return this; }else{ return get(this, unit); }};} function get (mom, unit){ return mom.isValid() ? mom._d['get' + (mom._isUTC ? 'UTC':'') + unit]():NaN; } function set$1 (mom, unit, value){ if(mom.isValid()&&!isNaN(value)){ if(unit==='FullYear'&&isLeapYear(mom.year())&&mom.month()===1&&mom.date()===29){ mom._d['set' + (mom._isUTC ? 'UTC':'') + unit](value, mom.month(), daysInMonth(value, mom.month())); }else{ mom._d['set' + (mom._isUTC ? 'UTC':'') + unit](value); }} } function stringGet (units){ units=normalizeUnits(units); if(isFunction(this[units])){ return this[units](); } return this; } function stringSet (units, value){ if(typeof units==='object'){ units=normalizeObjectUnits(units); var prioritized=getPrioritizedUnits(units); for (var i=0; i < prioritized.length; i++){ this[prioritized[i].unit](units[prioritized[i].unit]); }}else{ units=normalizeUnits(units); if(isFunction(this[units])){ return this[units](value); }} return this; } function mod(n, x){ return ((n % x) + x) % x; } var indexOf; if(Array.prototype.indexOf){ indexOf=Array.prototype.indexOf; }else{ indexOf=function (o){ var i; for (i=0; i < this.length; ++i){ if(this[i]===o){ return i; }} return -1; };} function daysInMonth(year, month){ if(isNaN(year)||isNaN(month)){ return NaN; } var modMonth=mod(month, 12); year +=(month - modMonth) / 12; return modMonth===1 ? (isLeapYear(year) ? 29:28):(31 - modMonth % 7 % 2); } addFormatToken('M', ['MM', 2], 'Mo', function (){ return this.month() + 1; }); addFormatToken('MMM', 0, 0, function (format){ return this.localeData().monthsShort(this, format); }); addFormatToken('MMMM', 0, 0, function (format){ return this.localeData().months(this, format); }); addUnitAlias('month', 'M'); addUnitPriority('month', 8); addRegexToken('M', match1to2); addRegexToken('MM', match1to2, match2); addRegexToken('MMM', function (isStrict, locale){ return locale.monthsShortRegex(isStrict); }); addRegexToken('MMMM', function (isStrict, locale){ return locale.monthsRegex(isStrict); }); addParseToken(['M', 'MM'], function (input, array){ array[MONTH]=toInt(input) - 1; }); addParseToken(['MMM', 'MMMM'], function (input, array, config, token){ var month=config._locale.monthsParse(input, token, config._strict); if(month!=null){ array[MONTH]=month; }else{ getParsingFlags(config).invalidMonth=input; }}); var MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/; var defaultLocaleMonths='January_February_March_April_May_June_July_August_September_October_November_December'.split('_'); function localeMonths (m, format){ if(!m){ return isArray(this._months) ? this._months : this._months['standalone']; } return isArray(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format) ? 'format':'standalone'][m.month()]; } var defaultLocaleMonthsShort='Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'); function localeMonthsShort (m, format){ if(!m){ return isArray(this._monthsShort) ? this._monthsShort : this._monthsShort['standalone']; } return isArray(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format) ? 'format':'standalone'][m.month()]; } function handleStrictParse(monthName, format, strict){ var i, ii, mom, llc=monthName.toLocaleLowerCase(); if(!this._monthsParse){ this._monthsParse=[]; this._longMonthsParse=[]; this._shortMonthsParse=[]; for (i=0; i < 12; ++i){ mom=createUTC([2000, i]); this._shortMonthsParse[i]=this.monthsShort(mom, '').toLocaleLowerCase(); this._longMonthsParse[i]=this.months(mom, '').toLocaleLowerCase(); }} if(strict){ if(format==='MMM'){ ii=indexOf.call(this._shortMonthsParse, llc); return ii!==-1 ? ii:null; }else{ ii=indexOf.call(this._longMonthsParse, llc); return ii!==-1 ? ii:null; }}else{ if(format==='MMM'){ ii=indexOf.call(this._shortMonthsParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._longMonthsParse, llc); return ii!==-1 ? ii:null; }else{ ii=indexOf.call(this._longMonthsParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._shortMonthsParse, llc); return ii!==-1 ? ii:null; }} } function localeMonthsParse (monthName, format, strict){ var i, mom, regex; if(this._monthsParseExact){ return handleStrictParse.call(this, monthName, format, strict); } if(!this._monthsParse){ this._monthsParse=[]; this._longMonthsParse=[]; this._shortMonthsParse=[]; } for (i=0; i < 12; i++){ mom=createUTC([2000, i]); if(strict&&!this._longMonthsParse[i]){ this._longMonthsParse[i]=new RegExp('^' + this.months(mom, '').replace('.', '') + '$', 'i'); this._shortMonthsParse[i]=new RegExp('^' + this.monthsShort(mom, '').replace('.', '') + '$', 'i'); } if(!strict&&!this._monthsParse[i]){ regex='^' + this.months(mom, '') + '|^' + this.monthsShort(mom, ''); this._monthsParse[i]=new RegExp(regex.replace('.', ''), 'i'); } if(strict&&format==='MMMM'&&this._longMonthsParse[i].test(monthName)){ return i; }else if(strict&&format==='MMM'&&this._shortMonthsParse[i].test(monthName)){ return i; }else if(!strict&&this._monthsParse[i].test(monthName)){ return i; }} } function setMonth (mom, value){ var dayOfMonth; if(!mom.isValid()){ return mom; } if(typeof value==='string'){ if(/^\d+$/.test(value)){ value=toInt(value); }else{ value=mom.localeData().monthsParse(value); if(!isNumber(value)){ return mom; }} } dayOfMonth=Math.min(mom.date(), daysInMonth(mom.year(), value)); mom._d['set' + (mom._isUTC ? 'UTC':'') + 'Month'](value, dayOfMonth); return mom; } function getSetMonth (value){ if(value!=null){ setMonth(this, value); hooks.updateOffset(this, true); return this; }else{ return get(this, 'Month'); }} function getDaysInMonth (){ return daysInMonth(this.year(), this.month()); } var defaultMonthsShortRegex=matchWord; function monthsShortRegex (isStrict){ if(this._monthsParseExact){ if(!hasOwnProp(this, '_monthsRegex')){ computeMonthsParse.call(this); } if(isStrict){ return this._monthsShortStrictRegex; }else{ return this._monthsShortRegex; }}else{ if(!hasOwnProp(this, '_monthsShortRegex')){ this._monthsShortRegex=defaultMonthsShortRegex; } return this._monthsShortStrictRegex&&isStrict ? this._monthsShortStrictRegex:this._monthsShortRegex; }} var defaultMonthsRegex=matchWord; function monthsRegex (isStrict){ if(this._monthsParseExact){ if(!hasOwnProp(this, '_monthsRegex')){ computeMonthsParse.call(this); } if(isStrict){ return this._monthsStrictRegex; }else{ return this._monthsRegex; }}else{ if(!hasOwnProp(this, '_monthsRegex')){ this._monthsRegex=defaultMonthsRegex; } return this._monthsStrictRegex&&isStrict ? this._monthsStrictRegex:this._monthsRegex; }} function computeMonthsParse (){ function cmpLenRev(a, b){ return b.length - a.length; } var shortPieces=[], longPieces=[], mixedPieces=[], i, mom; for (i=0; i < 12; i++){ mom=createUTC([2000, i]); shortPieces.push(this.monthsShort(mom, '')); longPieces.push(this.months(mom, '')); mixedPieces.push(this.months(mom, '')); mixedPieces.push(this.monthsShort(mom, '')); } shortPieces.sort(cmpLenRev); longPieces.sort(cmpLenRev); mixedPieces.sort(cmpLenRev); for (i=0; i < 12; i++){ shortPieces[i]=regexEscape(shortPieces[i]); longPieces[i]=regexEscape(longPieces[i]); } for (i=0; i < 24; i++){ mixedPieces[i]=regexEscape(mixedPieces[i]); } this._monthsRegex=new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); this._monthsShortRegex=this._monthsRegex; this._monthsStrictRegex=new RegExp('^(' + longPieces.join('|') + ')', 'i'); this._monthsShortStrictRegex=new RegExp('^(' + shortPieces.join('|') + ')', 'i'); } function createDate (y, m, d, h, M, s, ms){ var date=new Date(y, m, d, h, M, s, ms); if(y < 100&&y >=0&&isFinite(date.getFullYear())){ date.setFullYear(y); } return date; } function createUTCDate (y){ var date=new Date(Date.UTC.apply(null, arguments)); if(y < 100&&y >=0&&isFinite(date.getUTCFullYear())){ date.setUTCFullYear(y); } return date; } function firstWeekOffset(year, dow, doy){ var fwd=7 + dow - doy, fwdlw=(7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7; return -fwdlw + fwd - 1; } function dayOfYearFromWeeks(year, week, weekday, dow, doy){ var localWeekday=(7 + weekday - dow) % 7, weekOffset=firstWeekOffset(year, dow, doy), dayOfYear=1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear; if(dayOfYear <=0){ resYear=year - 1; resDayOfYear=daysInYear(resYear) + dayOfYear; }else if(dayOfYear > daysInYear(year)){ resYear=year + 1; resDayOfYear=dayOfYear - daysInYear(year); }else{ resYear=year; resDayOfYear=dayOfYear; } return { year: resYear, dayOfYear: resDayOfYear };} function weekOfYear(mom, dow, doy){ var weekOffset=firstWeekOffset(mom.year(), dow, doy), week=Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear; if(week < 1){ resYear=mom.year() - 1; resWeek=week + weeksInYear(resYear, dow, doy); }else if(week > weeksInYear(mom.year(), dow, doy)){ resWeek=week - weeksInYear(mom.year(), dow, doy); resYear=mom.year() + 1; }else{ resYear=mom.year(); resWeek=week; } return { week: resWeek, year: resYear };} function weeksInYear(year, dow, doy){ var weekOffset=firstWeekOffset(year, dow, doy), weekOffsetNext=firstWeekOffset(year + 1, dow, doy); return (daysInYear(year) - weekOffset + weekOffsetNext) / 7; } addFormatToken('w', ['ww', 2], 'wo', 'week'); addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek'); addUnitAlias('week', 'w'); addUnitAlias('isoWeek', 'W'); addUnitPriority('week', 5); addUnitPriority('isoWeek', 5); addRegexToken('w', match1to2); addRegexToken('ww', match1to2, match2); addRegexToken('W', match1to2); addRegexToken('WW', match1to2, match2); addWeekParseToken(['w', 'ww', 'W', 'WW'], function (input, week, config, token){ week[token.substr(0, 1)]=toInt(input); }); function localeWeek (mom){ return weekOfYear(mom, this._week.dow, this._week.doy).week; } var defaultLocaleWeek={ dow:0, doy:6 }; function localeFirstDayOfWeek (){ return this._week.dow; } function localeFirstDayOfYear (){ return this._week.doy; } function getSetWeek (input){ var week=this.localeData().week(this); return input==null ? week:this.add((input - week) * 7, 'd'); } function getSetISOWeek (input){ var week=weekOfYear(this, 1, 4).week; return input==null ? week:this.add((input - week) * 7, 'd'); } addFormatToken('d', 0, 'do', 'day'); addFormatToken('dd', 0, 0, function (format){ return this.localeData().weekdaysMin(this, format); }); addFormatToken('ddd', 0, 0, function (format){ return this.localeData().weekdaysShort(this, format); }); addFormatToken('dddd', 0, 0, function (format){ return this.localeData().weekdays(this, format); }); addFormatToken('e', 0, 0, 'weekday'); addFormatToken('E', 0, 0, 'isoWeekday'); addUnitAlias('day', 'd'); addUnitAlias('weekday', 'e'); addUnitAlias('isoWeekday', 'E'); addUnitPriority('day', 11); addUnitPriority('weekday', 11); addUnitPriority('isoWeekday', 11); addRegexToken('d', match1to2); addRegexToken('e', match1to2); addRegexToken('E', match1to2); addRegexToken('dd', function (isStrict, locale){ return locale.weekdaysMinRegex(isStrict); }); addRegexToken('ddd', function (isStrict, locale){ return locale.weekdaysShortRegex(isStrict); }); addRegexToken('dddd', function (isStrict, locale){ return locale.weekdaysRegex(isStrict); }); addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token){ var weekday=config._locale.weekdaysParse(input, token, config._strict); if(weekday!=null){ week.d=weekday; }else{ getParsingFlags(config).invalidWeekday=input; }}); addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token){ week[token]=toInt(input); }); function parseWeekday(input, locale){ if(typeof input!=='string'){ return input; } if(!isNaN(input)){ return parseInt(input, 10); } input=locale.weekdaysParse(input); if(typeof input==='number'){ return input; } return null; } function parseIsoWeekday(input, locale){ if(typeof input==='string'){ return locale.weekdaysParse(input) % 7||7; } return isNaN(input) ? null:input; } var defaultLocaleWeekdays='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'); function localeWeekdays (m, format){ if(!m){ return isArray(this._weekdays) ? this._weekdays : this._weekdays['standalone']; } return isArray(this._weekdays) ? this._weekdays[m.day()] : this._weekdays[this._weekdays.isFormat.test(format) ? 'format':'standalone'][m.day()]; } var defaultLocaleWeekdaysShort='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'); function localeWeekdaysShort (m){ return (m) ? this._weekdaysShort[m.day()]:this._weekdaysShort; } var defaultLocaleWeekdaysMin='Su_Mo_Tu_We_Th_Fr_Sa'.split('_'); function localeWeekdaysMin (m){ return (m) ? this._weekdaysMin[m.day()]:this._weekdaysMin; } function handleStrictParse$1(weekdayName, format, strict){ var i, ii, mom, llc=weekdayName.toLocaleLowerCase(); if(!this._weekdaysParse){ this._weekdaysParse=[]; this._shortWeekdaysParse=[]; this._minWeekdaysParse=[]; for (i=0; i < 7; ++i){ mom=createUTC([2000, 1]).day(i); this._minWeekdaysParse[i]=this.weekdaysMin(mom, '').toLocaleLowerCase(); this._shortWeekdaysParse[i]=this.weekdaysShort(mom, '').toLocaleLowerCase(); this._weekdaysParse[i]=this.weekdays(mom, '').toLocaleLowerCase(); }} if(strict){ if(format==='dddd'){ ii=indexOf.call(this._weekdaysParse, llc); return ii!==-1 ? ii:null; }else if(format==='ddd'){ ii=indexOf.call(this._shortWeekdaysParse, llc); return ii!==-1 ? ii:null; }else{ ii=indexOf.call(this._minWeekdaysParse, llc); return ii!==-1 ? ii:null; }}else{ if(format==='dddd'){ ii=indexOf.call(this._weekdaysParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._shortWeekdaysParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._minWeekdaysParse, llc); return ii!==-1 ? ii:null; }else if(format==='ddd'){ ii=indexOf.call(this._shortWeekdaysParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._weekdaysParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._minWeekdaysParse, llc); return ii!==-1 ? ii:null; }else{ ii=indexOf.call(this._minWeekdaysParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._weekdaysParse, llc); if(ii!==-1){ return ii; } ii=indexOf.call(this._shortWeekdaysParse, llc); return ii!==-1 ? ii:null; }} } function localeWeekdaysParse (weekdayName, format, strict){ var i, mom, regex; if(this._weekdaysParseExact){ return handleStrictParse$1.call(this, weekdayName, format, strict); } if(!this._weekdaysParse){ this._weekdaysParse=[]; this._minWeekdaysParse=[]; this._shortWeekdaysParse=[]; this._fullWeekdaysParse=[]; } for (i=0; i < 7; i++){ mom=createUTC([2000, 1]).day(i); if(strict&&!this._fullWeekdaysParse[i]){ this._fullWeekdaysParse[i]=new RegExp('^' + this.weekdays(mom, '').replace('.', '\\.?') + '$', 'i'); this._shortWeekdaysParse[i]=new RegExp('^' + this.weekdaysShort(mom, '').replace('.', '\\.?') + '$', 'i'); this._minWeekdaysParse[i]=new RegExp('^' + this.weekdaysMin(mom, '').replace('.', '\\.?') + '$', 'i'); } if(!this._weekdaysParse[i]){ regex='^' + this.weekdays(mom, '') + '|^' + this.weekdaysShort(mom, '') + '|^' + this.weekdaysMin(mom, ''); this._weekdaysParse[i]=new RegExp(regex.replace('.', ''), 'i'); } if(strict&&format==='dddd'&&this._fullWeekdaysParse[i].test(weekdayName)){ return i; }else if(strict&&format==='ddd'&&this._shortWeekdaysParse[i].test(weekdayName)){ return i; }else if(strict&&format==='dd'&&this._minWeekdaysParse[i].test(weekdayName)){ return i; }else if(!strict&&this._weekdaysParse[i].test(weekdayName)){ return i; }} } function getSetDayOfWeek (input){ if(!this.isValid()){ return input!=null ? this:NaN; } var day=this._isUTC ? this._d.getUTCDay():this._d.getDay(); if(input!=null){ input=parseWeekday(input, this.localeData()); return this.add(input - day, 'd'); }else{ return day; }} function getSetLocaleDayOfWeek (input){ if(!this.isValid()){ return input!=null ? this:NaN; } var weekday=(this.day() + 7 - this.localeData()._week.dow) % 7; return input==null ? weekday:this.add(input - weekday, 'd'); } function getSetISODayOfWeek (input){ if(!this.isValid()){ return input!=null ? this:NaN; } if(input!=null){ var weekday=parseIsoWeekday(input, this.localeData()); return this.day(this.day() % 7 ? weekday:weekday - 7); }else{ return this.day()||7; }} var defaultWeekdaysRegex=matchWord; function weekdaysRegex (isStrict){ if(this._weekdaysParseExact){ if(!hasOwnProp(this, '_weekdaysRegex')){ computeWeekdaysParse.call(this); } if(isStrict){ return this._weekdaysStrictRegex; }else{ return this._weekdaysRegex; }}else{ if(!hasOwnProp(this, '_weekdaysRegex')){ this._weekdaysRegex=defaultWeekdaysRegex; } return this._weekdaysStrictRegex&&isStrict ? this._weekdaysStrictRegex:this._weekdaysRegex; }} var defaultWeekdaysShortRegex=matchWord; function weekdaysShortRegex (isStrict){ if(this._weekdaysParseExact){ if(!hasOwnProp(this, '_weekdaysRegex')){ computeWeekdaysParse.call(this); } if(isStrict){ return this._weekdaysShortStrictRegex; }else{ return this._weekdaysShortRegex; }}else{ if(!hasOwnProp(this, '_weekdaysShortRegex')){ this._weekdaysShortRegex=defaultWeekdaysShortRegex; } return this._weekdaysShortStrictRegex&&isStrict ? this._weekdaysShortStrictRegex:this._weekdaysShortRegex; }} var defaultWeekdaysMinRegex=matchWord; function weekdaysMinRegex (isStrict){ if(this._weekdaysParseExact){ if(!hasOwnProp(this, '_weekdaysRegex')){ computeWeekdaysParse.call(this); } if(isStrict){ return this._weekdaysMinStrictRegex; }else{ return this._weekdaysMinRegex; }}else{ if(!hasOwnProp(this, '_weekdaysMinRegex')){ this._weekdaysMinRegex=defaultWeekdaysMinRegex; } return this._weekdaysMinStrictRegex&&isStrict ? this._weekdaysMinStrictRegex:this._weekdaysMinRegex; }} function computeWeekdaysParse (){ function cmpLenRev(a, b){ return b.length - a.length; } var minPieces=[], shortPieces=[], longPieces=[], mixedPieces=[], i, mom, minp, shortp, longp; for (i=0; i < 7; i++){ mom=createUTC([2000, 1]).day(i); minp=this.weekdaysMin(mom, ''); shortp=this.weekdaysShort(mom, ''); longp=this.weekdays(mom, ''); minPieces.push(minp); shortPieces.push(shortp); longPieces.push(longp); mixedPieces.push(minp); mixedPieces.push(shortp); mixedPieces.push(longp); } minPieces.sort(cmpLenRev); shortPieces.sort(cmpLenRev); longPieces.sort(cmpLenRev); mixedPieces.sort(cmpLenRev); for (i=0; i < 7; i++){ shortPieces[i]=regexEscape(shortPieces[i]); longPieces[i]=regexEscape(longPieces[i]); mixedPieces[i]=regexEscape(mixedPieces[i]); } this._weekdaysRegex=new RegExp('^(' + mixedPieces.join('|') + ')', 'i'); this._weekdaysShortRegex=this._weekdaysRegex; this._weekdaysMinRegex=this._weekdaysRegex; this._weekdaysStrictRegex=new RegExp('^(' + longPieces.join('|') + ')', 'i'); this._weekdaysShortStrictRegex=new RegExp('^(' + shortPieces.join('|') + ')', 'i'); this._weekdaysMinStrictRegex=new RegExp('^(' + minPieces.join('|') + ')', 'i'); } function hFormat(){ return this.hours() % 12||12; } function kFormat(){ return this.hours()||24; } addFormatToken('H', ['HH', 2], 0, 'hour'); addFormatToken('h', ['hh', 2], 0, hFormat); addFormatToken('k', ['kk', 2], 0, kFormat); addFormatToken('hmm', 0, 0, function (){ return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2); }); addFormatToken('hmmss', 0, 0, function (){ return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); }); addFormatToken('Hmm', 0, 0, function (){ return '' + this.hours() + zeroFill(this.minutes(), 2); }); addFormatToken('Hmmss', 0, 0, function (){ return '' + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2); }); function meridiem (token, lowercase){ addFormatToken(token, 0, 0, function (){ return this.localeData().meridiem(this.hours(), this.minutes(), lowercase); }); } meridiem('a', true); meridiem('A', false); addUnitAlias('hour', 'h'); addUnitPriority('hour', 13); function matchMeridiem (isStrict, locale){ return locale._meridiemParse; } addRegexToken('a', matchMeridiem); addRegexToken('A', matchMeridiem); addRegexToken('H', match1to2); addRegexToken('h', match1to2); addRegexToken('k', match1to2); addRegexToken('HH', match1to2, match2); addRegexToken('hh', match1to2, match2); addRegexToken('kk', match1to2, match2); addRegexToken('hmm', match3to4); addRegexToken('hmmss', match5to6); addRegexToken('Hmm', match3to4); addRegexToken('Hmmss', match5to6); addParseToken(['H', 'HH'], HOUR); addParseToken(['k', 'kk'], function (input, array, config){ var kInput=toInt(input); array[HOUR]=kInput===24 ? 0:kInput; }); addParseToken(['a', 'A'], function (input, array, config){ config._isPm=config._locale.isPM(input); config._meridiem=input; }); addParseToken(['h', 'hh'], function (input, array, config){ array[HOUR]=toInt(input); getParsingFlags(config).bigHour=true; }); addParseToken('hmm', function (input, array, config){ var pos=input.length - 2; array[HOUR]=toInt(input.substr(0, pos)); array[MINUTE]=toInt(input.substr(pos)); getParsingFlags(config).bigHour=true; }); addParseToken('hmmss', function (input, array, config){ var pos1=input.length - 4; var pos2=input.length - 2; array[HOUR]=toInt(input.substr(0, pos1)); array[MINUTE]=toInt(input.substr(pos1, 2)); array[SECOND]=toInt(input.substr(pos2)); getParsingFlags(config).bigHour=true; }); addParseToken('Hmm', function (input, array, config){ var pos=input.length - 2; array[HOUR]=toInt(input.substr(0, pos)); array[MINUTE]=toInt(input.substr(pos)); }); addParseToken('Hmmss', function (input, array, config){ var pos1=input.length - 4; var pos2=input.length - 2; array[HOUR]=toInt(input.substr(0, pos1)); array[MINUTE]=toInt(input.substr(pos1, 2)); array[SECOND]=toInt(input.substr(pos2)); }); function localeIsPM (input){ return ((input + '').toLowerCase().charAt(0)==='p'); } var defaultLocaleMeridiemParse=/[ap]\.?m?\.?/i; function localeMeridiem (hours, minutes, isLower){ if(hours > 11){ return isLower ? 'pm':'PM'; }else{ return isLower ? 'am':'AM'; }} var getSetHour=makeGetSet('Hours', true); var baseConfig={ calendar: defaultCalendar, longDateFormat: defaultLongDateFormat, invalidDate: defaultInvalidDate, ordinal: defaultOrdinal, dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse, relativeTime: defaultRelativeTime, months: defaultLocaleMonths, monthsShort: defaultLocaleMonthsShort, week: defaultLocaleWeek, weekdays: defaultLocaleWeekdays, weekdaysMin: defaultLocaleWeekdaysMin, weekdaysShort: defaultLocaleWeekdaysShort, meridiemParse: defaultLocaleMeridiemParse }; var locales={}; var localeFamilies={}; var globalLocale; function normalizeLocale(key){ return key ? key.toLowerCase().replace('_', '-'):key; } function chooseLocale(names){ var i=0, j, next, locale, split; while (i < names.length){ split=normalizeLocale(names[i]).split('-'); j=split.length; next=normalizeLocale(names[i + 1]); next=next ? next.split('-'):null; while (j > 0){ locale=loadLocale(split.slice(0, j).join('-')); if(locale){ return locale; } if(next&&next.length >=j&&compareArrays(split, next, true) >=j - 1){ break; } j--; } i++; } return globalLocale; } function loadLocale(name){ var oldLocale=null; if(!locales[name]&&(typeof module!=='undefined') && module&&module.exports){ try { oldLocale=globalLocale._abbr; var aliasedRequire=require; aliasedRequire('./locale/' + name); getSetGlobalLocale(oldLocale); } catch (e){}} return locales[name]; } function getSetGlobalLocale (key, values){ var data; if(key){ if(isUndefined(values)){ data=getLocale(key); }else{ data=defineLocale(key, values); } if(data){ globalLocale=data; }else{ if((typeof console!=='undefined')&&console.warn){ console.warn('Locale ' + key + ' not found. Did you forget to load it?'); }} } return globalLocale._abbr; } function defineLocale (name, config){ if(config!==null){ var locale, parentConfig=baseConfig; config.abbr=name; if(locales[name]!=null){ deprecateSimple('defineLocaleOverride', 'use moment.updateLocale(localeName, config) to change ' + 'an existing locale. moment.defineLocale(localeName, ' + 'config) should only be used for creating a new locale ' + 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'); parentConfig=locales[name]._config; }else if(config.parentLocale!=null){ if(locales[config.parentLocale]!=null){ parentConfig=locales[config.parentLocale]._config; }else{ locale=loadLocale(config.parentLocale); if(locale!=null){ parentConfig=locale._config; }else{ if(!localeFamilies[config.parentLocale]){ localeFamilies[config.parentLocale]=[]; } localeFamilies[config.parentLocale].push({ name: name, config: config }); return null; }} } locales[name]=new Locale(mergeConfigs(parentConfig, config)); if(localeFamilies[name]){ localeFamilies[name].forEach(function (x){ defineLocale(x.name, x.config); }); } getSetGlobalLocale(name); return locales[name]; }else{ delete locales[name]; return null; }} function updateLocale(name, config){ if(config!=null){ var locale, tmpLocale, parentConfig=baseConfig; tmpLocale=loadLocale(name); if(tmpLocale!=null){ parentConfig=tmpLocale._config; } config=mergeConfigs(parentConfig, config); locale=new Locale(config); locale.parentLocale=locales[name]; locales[name]=locale; getSetGlobalLocale(name); }else{ if(locales[name]!=null){ if(locales[name].parentLocale!=null){ locales[name]=locales[name].parentLocale; }else if(locales[name]!=null){ delete locales[name]; }} } return locales[name]; } function getLocale (key){ var locale; if(key&&key._locale&&key._locale._abbr){ key=key._locale._abbr; } if(!key){ return globalLocale; } if(!isArray(key)){ locale=loadLocale(key); if(locale){ return locale; } key=[key]; } return chooseLocale(key); } function listLocales(){ return keys(locales); } function checkOverflow (m){ var overflow; var a=m._a; if(a&&getParsingFlags(m).overflow===-2){ overflow = a[MONTH] < 0||a[MONTH] > 11 ? MONTH : a[DATE] < 1||a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0||a[HOUR] > 24||(a[HOUR]===24&&(a[MINUTE]!==0||a[SECOND]!==0||a[MILLISECOND]!==0)) ? HOUR : a[MINUTE] < 0||a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0||a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0||a[MILLISECOND] > 999 ? MILLISECOND : -1; if(getParsingFlags(m)._overflowDayOfYear&&(overflow < YEAR||overflow > DATE)){ overflow=DATE; } if(getParsingFlags(m)._overflowWeeks&&overflow===-1){ overflow=WEEK; } if(getParsingFlags(m)._overflowWeekday&&overflow===-1){ overflow=WEEKDAY; } getParsingFlags(m).overflow=overflow; } return m; } function defaults(a, b, c){ if(a!=null){ return a; } if(b!=null){ return b; } return c; } function currentDateArray(config){ var nowValue=new Date(hooks.now()); if(config._useUTC){ return [nowValue.getUTCFullYear(), nowValue.getUTCMonth(), nowValue.getUTCDate()]; } return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()]; } function configFromArray (config){ var i, date, input=[], currentDate, expectedWeekday, yearToUse; if(config._d){ return; } currentDate=currentDateArray(config); if(config._w&&config._a[DATE]==null&&config._a[MONTH]==null){ dayOfYearFromWeekInfo(config); } if(config._dayOfYear!=null){ yearToUse=defaults(config._a[YEAR], currentDate[YEAR]); if(config._dayOfYear > daysInYear(yearToUse)||config._dayOfYear===0){ getParsingFlags(config)._overflowDayOfYear=true; } date=createUTCDate(yearToUse, 0, config._dayOfYear); config._a[MONTH]=date.getUTCMonth(); config._a[DATE]=date.getUTCDate(); } for (i=0; i < 3&&config._a[i]==null; ++i){ config._a[i]=input[i]=currentDate[i]; } for (; i < 7; i++){ config._a[i]=input[i]=(config._a[i]==null) ? (i===2 ? 1:0):config._a[i]; } if(config._a[HOUR]===24 && config._a[MINUTE]===0 && config._a[SECOND]===0 && config._a[MILLISECOND]===0){ config._nextDay=true; config._a[HOUR]=0; } config._d=(config._useUTC ? createUTCDate:createDate).apply(null, input); expectedWeekday=config._useUTC ? config._d.getUTCDay():config._d.getDay(); if(config._tzm!=null){ config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); } if(config._nextDay){ config._a[HOUR]=24; } if(config._w&&typeof config._w.d!=='undefined'&&config._w.d!==expectedWeekday){ getParsingFlags(config).weekdayMismatch=true; }} function dayOfYearFromWeekInfo(config){ var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow; w=config._w; if(w.GG!=null||w.W!=null||w.E!=null){ dow=1; doy=4; weekYear=defaults(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year); week=defaults(w.W, 1); weekday=defaults(w.E, 1); if(weekday < 1||weekday > 7){ weekdayOverflow=true; }}else{ dow=config._locale._week.dow; doy=config._locale._week.doy; var curWeek=weekOfYear(createLocal(), dow, doy); weekYear=defaults(w.gg, config._a[YEAR], curWeek.year); week=defaults(w.w, curWeek.week); if(w.d!=null){ weekday=w.d; if(weekday < 0||weekday > 6){ weekdayOverflow=true; }}else if(w.e!=null){ weekday=w.e + dow; if(w.e < 0||w.e > 6){ weekdayOverflow=true; }}else{ weekday=dow; }} if(week < 1||week > weeksInYear(weekYear, dow, doy)){ getParsingFlags(config)._overflowWeeks=true; }else if(weekdayOverflow!=null){ getParsingFlags(config)._overflowWeekday=true; }else{ temp=dayOfYearFromWeeks(weekYear, week, weekday, dow, doy); config._a[YEAR]=temp.year; config._dayOfYear=temp.dayOfYear; }} var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T|)(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/; var basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T|)(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/; var tzRegex=/Z|[+-]\d\d(?::?\d\d)?/; var isoDates=[ ['YYYYYY-MM-DD', /[+-]\d{6}-\d\d-\d\d/], ['YYYY-MM-DD', /\d{4}-\d\d-\d\d/], ['GGGG-[W]WW-E', /\d{4}-W\d\d-\d/], ['GGGG-[W]WW', /\d{4}-W\d\d/, false], ['YYYY-DDD', /\d{4}-\d{3}/], ['YYYY-MM', /\d{4}-\d\d/, false], ['YYYYYYMMDD', /[+-]\d{10}/], ['YYYYMMDD', /\d{8}/], ['GGGG[W]WWE', /\d{4}W\d{3}/], ['GGGG[W]WW', /\d{4}W\d{2}/, false], ['YYYYDDD', /\d{7}/] ]; var isoTimes=[ ['HH:mm:ss.SSSS', /\d\d:\d\d:\d\d\.\d+/], ['HH:mm:ss,SSSS', /\d\d:\d\d:\d\d,\d+/], ['HH:mm:ss', /\d\d:\d\d:\d\d/], ['HH:mm', /\d\d:\d\d/], ['HHmmss.SSSS', /\d\d\d\d\d\d\.\d+/], ['HHmmss,SSSS', /\d\d\d\d\d\d,\d+/], ['HHmmss', /\d\d\d\d\d\d/], ['HHmm', /\d\d\d\d/], ['HH', /\d\d/] ]; var aspNetJsonRegex=/^\/?Date\((\-?\d+)/i; function configFromISO(config){ var i, l, string=config._i, match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat; if(match){ getParsingFlags(config).iso=true; for (i=0, l=isoDates.length; i < l; i++){ if(isoDates[i][1].exec(match[1])){ dateFormat=isoDates[i][0]; allowTime=isoDates[i][2]!==false; break; }} if(dateFormat==null){ config._isValid=false; return; } if(match[3]){ for (i=0, l=isoTimes.length; i < l; i++){ if(isoTimes[i][1].exec(match[3])){ timeFormat=(match[2]||' ') + isoTimes[i][0]; break; }} if(timeFormat==null){ config._isValid=false; return; }} if(!allowTime&&timeFormat!=null){ config._isValid=false; return; } if(match[4]){ if(tzRegex.exec(match[4])){ tzFormat='Z'; }else{ config._isValid=false; return; }} config._f=dateFormat + (timeFormat||'') + (tzFormat||''); configFromStringAndFormat(config); }else{ config._isValid=false; }} var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/; function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr){ var result=[ untruncateYear(yearStr), defaultLocaleMonthsShort.indexOf(monthStr), parseInt(dayStr, 10), parseInt(hourStr, 10), parseInt(minuteStr, 10) ]; if(secondStr){ result.push(parseInt(secondStr, 10)); } return result; } function untruncateYear(yearStr){ var year=parseInt(yearStr, 10); if(year <=49){ return 2000 + year; }else if(year <=999){ return 1900 + year; } return year; } function preprocessRFC2822(s){ return s.replace(/\([^)]*\)|[\n\t]/g, ' ').replace(/(\s\s+)/g, ' ').replace(/^\s\s*/, '').replace(/\s\s*$/, ''); } function checkWeekday(weekdayStr, parsedInput, config){ if(weekdayStr){ var weekdayProvided=defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual=new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay(); if(weekdayProvided!==weekdayActual){ getParsingFlags(config).weekdayMismatch=true; config._isValid=false; return false; }} return true; } var obsOffsets={ UT: 0, GMT: 0, EDT: -4 * 60, EST: -5 * 60, CDT: -5 * 60, CST: -6 * 60, MDT: -6 * 60, MST: -7 * 60, PDT: -7 * 60, PST: -8 * 60 }; function calculateOffset(obsOffset, militaryOffset, numOffset){ if(obsOffset){ return obsOffsets[obsOffset]; }else if(militaryOffset){ return 0; }else{ var hm=parseInt(numOffset, 10); var m=hm % 100, h=(hm - m) / 100; return h * 60 + m; }} function configFromRFC2822(config){ var match=rfc2822.exec(preprocessRFC2822(config._i)); if(match){ var parsedArray=extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]); if(!checkWeekday(match[1], parsedArray, config)){ return; } config._a=parsedArray; config._tzm=calculateOffset(match[8], match[9], match[10]); config._d=createUTCDate.apply(null, config._a); config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm); getParsingFlags(config).rfc2822=true; }else{ config._isValid=false; }} function configFromString(config){ var matched=aspNetJsonRegex.exec(config._i); if(matched!==null){ config._d=new Date(+matched[1]); return; } configFromISO(config); if(config._isValid===false){ delete config._isValid; }else{ return; } configFromRFC2822(config); if(config._isValid===false){ delete config._isValid; }else{ return; } hooks.createFromInputFallback(config); } hooks.createFromInputFallback=deprecate( 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' + 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' + 'discouraged and will be removed in an upcoming major release. Please refer to ' + 'http://momentjs.com/guides/#/warnings/js-date/ for more info.', function (config){ config._d=new Date(config._i + (config._useUTC ? ' UTC':'')); } ); hooks.ISO_8601=function (){}; hooks.RFC_2822=function (){}; function configFromStringAndFormat(config){ if(config._f===hooks.ISO_8601){ configFromISO(config); return; } if(config._f===hooks.RFC_2822){ configFromRFC2822(config); return; } config._a=[]; getParsingFlags(config).empty=true; var string='' + config._i, i, parsedInput, tokens, token, skipped, stringLength=string.length, totalParsedInputLength=0; tokens=expandFormat(config._f, config._locale).match(formattingTokens)||[]; for (i=0; i < tokens.length; i++){ token=tokens[i]; parsedInput=(string.match(getParseRegexForToken(token, config))||[])[0]; if(parsedInput){ skipped=string.substr(0, string.indexOf(parsedInput)); if(skipped.length > 0){ getParsingFlags(config).unusedInput.push(skipped); } string=string.slice(string.indexOf(parsedInput) + parsedInput.length); totalParsedInputLength +=parsedInput.length; } if(formatTokenFunctions[token]){ if(parsedInput){ getParsingFlags(config).empty=false; }else{ getParsingFlags(config).unusedTokens.push(token); } addTimeToArrayFromToken(token, parsedInput, config); } else if(config._strict&&!parsedInput){ getParsingFlags(config).unusedTokens.push(token); }} getParsingFlags(config).charsLeftOver=stringLength - totalParsedInputLength; if(string.length > 0){ getParsingFlags(config).unusedInput.push(string); } if(config._a[HOUR] <=12 && getParsingFlags(config).bigHour===true && config._a[HOUR] > 0){ getParsingFlags(config).bigHour=undefined; } getParsingFlags(config).parsedDateParts=config._a.slice(0); getParsingFlags(config).meridiem=config._meridiem; config._a[HOUR]=meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem); configFromArray(config); checkOverflow(config); } function meridiemFixWrap (locale, hour, meridiem){ var isPm; if(meridiem==null){ return hour; } if(locale.meridiemHour!=null){ return locale.meridiemHour(hour, meridiem); }else if(locale.isPM!=null){ isPm=locale.isPM(meridiem); if(isPm&&hour < 12){ hour +=12; } if(!isPm&&hour===12){ hour=0; } return hour; }else{ return hour; }} function configFromStringAndArray(config){ var tempConfig, bestMoment, scoreToBeat, i, currentScore; if(config._f.length===0){ getParsingFlags(config).invalidFormat=true; config._d=new Date(NaN); return; } for (i=0; i < config._f.length; i++){ currentScore=0; tempConfig=copyConfig({}, config); if(config._useUTC!=null){ tempConfig._useUTC=config._useUTC; } tempConfig._f=config._f[i]; configFromStringAndFormat(tempConfig); if(!isValid(tempConfig)){ continue; } currentScore +=getParsingFlags(tempConfig).charsLeftOver; currentScore +=getParsingFlags(tempConfig).unusedTokens.length * 10; getParsingFlags(tempConfig).score=currentScore; if(scoreToBeat==null||currentScore < scoreToBeat){ scoreToBeat=currentScore; bestMoment=tempConfig; }} extend(config, bestMoment||tempConfig); } function configFromObject(config){ if(config._d){ return; } var i=normalizeObjectUnits(config._i); config._a=map([i.year, i.month, i.day||i.date, i.hour, i.minute, i.second, i.millisecond], function (obj){ return obj&&parseInt(obj, 10); }); configFromArray(config); } function createFromConfig (config){ var res=new Moment(checkOverflow(prepareConfig(config))); if(res._nextDay){ res.add(1, 'd'); res._nextDay=undefined; } return res; } function prepareConfig (config){ var input=config._i, format=config._f; config._locale=config._locale||getLocale(config._l); if(input===null||(format===undefined&&input==='')){ return createInvalid({nullInput: true}); } if(typeof input==='string'){ config._i=input=config._locale.preparse(input); } if(isMoment(input)){ return new Moment(checkOverflow(input)); }else if(isDate(input)){ config._d=input; }else if(isArray(format)){ configFromStringAndArray(config); }else if(format){ configFromStringAndFormat(config); }else{ configFromInput(config); } if(!isValid(config)){ config._d=null; } return config; } function configFromInput(config){ var input=config._i; if(isUndefined(input)){ config._d=new Date(hooks.now()); }else if(isDate(input)){ config._d=new Date(input.valueOf()); }else if(typeof input==='string'){ configFromString(config); }else if(isArray(input)){ config._a=map(input.slice(0), function (obj){ return parseInt(obj, 10); }); configFromArray(config); }else if(isObject(input)){ configFromObject(config); }else if(isNumber(input)){ config._d=new Date(input); }else{ hooks.createFromInputFallback(config); }} function createLocalOrUTC (input, format, locale, strict, isUTC){ var c={}; if(locale===true||locale===false){ strict=locale; locale=undefined; } if((isObject(input)&&isObjectEmpty(input)) || (isArray(input)&&input.length===0)){ input=undefined; } c._isAMomentObject=true; c._useUTC=c._isUTC=isUTC; c._l=locale; c._i=input; c._f=format; c._strict=strict; return createFromConfig(c); } function createLocal (input, format, locale, strict){ return createLocalOrUTC(input, format, locale, strict, false); } var prototypeMin=deprecate( 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/', function (){ var other=createLocal.apply(null, arguments); if(this.isValid()&&other.isValid()){ return other < this ? this:other; }else{ return createInvalid(); }} ); var prototypeMax=deprecate( 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/', function (){ var other=createLocal.apply(null, arguments); if(this.isValid()&&other.isValid()){ return other > this ? this:other; }else{ return createInvalid(); }} ); function pickBy(fn, moments){ var res, i; if(moments.length===1&&isArray(moments[0])){ moments=moments[0]; } if(!moments.length){ return createLocal(); } res=moments[0]; for (i=1; i < moments.length; ++i){ if(!moments[i].isValid()||moments[i][fn](res)){ res=moments[i]; }} return res; } function min (){ var args=[].slice.call(arguments, 0); return pickBy('isBefore', args); } function max (){ var args=[].slice.call(arguments, 0); return pickBy('isAfter', args); } var now=function (){ return Date.now ? Date.now():+(new Date()); }; var ordering=['year', 'quarter', 'month', 'week', 'day', 'hour', 'minute', 'second', 'millisecond']; function isDurationValid(m){ for (var key in m){ if(!(indexOf.call(ordering, key)!==-1&&(m[key]==null||!isNaN(m[key])))){ return false; }} var unitHasDecimal=false; for (var i=0; i < ordering.length; ++i){ if(m[ordering[i]]){ if(unitHasDecimal){ return false; } if(parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])){ unitHasDecimal=true; }} } return true; } function isValid$1(){ return this._isValid; } function createInvalid$1(){ return createDuration(NaN); } function Duration (duration){ var normalizedInput=normalizeObjectUnits(duration), years=normalizedInput.year||0, quarters=normalizedInput.quarter||0, months=normalizedInput.month||0, weeks=normalizedInput.week||0, days=normalizedInput.day||0, hours=normalizedInput.hour||0, minutes=normalizedInput.minute||0, seconds=normalizedInput.second||0, milliseconds=normalizedInput.millisecond||0; this._isValid=isDurationValid(normalizedInput); this._milliseconds=+milliseconds + seconds * 1e3 + minutes * 6e4 + hours * 1000 * 60 * 60; this._days=+days + weeks * 7; this._months=+months + quarters * 3 + years * 12; this._data={}; this._locale=getLocale(); this._bubble(); } function isDuration (obj){ return obj instanceof Duration; } function absRound (number){ if(number < 0){ return Math.round(-1 * number) * -1; }else{ return Math.round(number); }} function offset (token, separator){ addFormatToken(token, 0, 0, function (){ var offset=this.utcOffset(); var sign='+'; if(offset < 0){ offset=-offset; sign='-'; } return sign + zeroFill(~~(offset / 60), 2) + separator + zeroFill(~~(offset) % 60, 2); }); } offset('Z', ':'); offset('ZZ', ''); addRegexToken('Z', matchShortOffset); addRegexToken('ZZ', matchShortOffset); addParseToken(['Z', 'ZZ'], function (input, array, config){ config._useUTC=true; config._tzm=offsetFromString(matchShortOffset, input); }); var chunkOffset=/([\+\-]|\d\d)/gi; function offsetFromString(matcher, string){ var matches=(string||'').match(matcher); if(matches===null){ return null; } var chunk=matches[matches.length - 1]||[]; var parts=(chunk + '').match(chunkOffset)||['-', 0, 0]; var minutes=+(parts[1] * 60) + toInt(parts[2]); return minutes===0 ? 0 : parts[0]==='+' ? minutes:-minutes; } function cloneWithOffset(input, model){ var res, diff; if(model._isUTC){ res=model.clone(); diff=(isMoment(input)||isDate(input) ? input.valueOf():createLocal(input).valueOf()) - res.valueOf(); res._d.setTime(res._d.valueOf() + diff); hooks.updateOffset(res, false); return res; }else{ return createLocal(input).local(); }} function getDateOffset (m){ return -Math.round(m._d.getTimezoneOffset() / 15) * 15; } hooks.updateOffset=function (){}; function getSetOffset (input, keepLocalTime, keepMinutes){ var offset=this._offset||0, localAdjust; if(!this.isValid()){ return input!=null ? this:NaN; } if(input!=null){ if(typeof input==='string'){ input=offsetFromString(matchShortOffset, input); if(input===null){ return this; }}else if(Math.abs(input) < 16&&!keepMinutes){ input=input * 60; } if(!this._isUTC&&keepLocalTime){ localAdjust=getDateOffset(this); } this._offset=input; this._isUTC=true; if(localAdjust!=null){ this.add(localAdjust, 'm'); } if(offset!==input){ if(!keepLocalTime||this._changeInProgress){ addSubtract(this, createDuration(input - offset, 'm'), 1, false); }else if(!this._changeInProgress){ this._changeInProgress=true; hooks.updateOffset(this, true); this._changeInProgress=null; }} return this; }else{ return this._isUTC ? offset:getDateOffset(this); }} function getSetZone (input, keepLocalTime){ if(input!=null){ if(typeof input!=='string'){ input=-input; } this.utcOffset(input, keepLocalTime); return this; }else{ return -this.utcOffset(); }} function setOffsetToUTC (keepLocalTime){ return this.utcOffset(0, keepLocalTime); } function setOffsetToLocal (keepLocalTime){ if(this._isUTC){ this.utcOffset(0, keepLocalTime); this._isUTC=false; if(keepLocalTime){ this.subtract(getDateOffset(this), 'm'); }} return this; } function setOffsetToParsedOffset (){ if(this._tzm!=null){ this.utcOffset(this._tzm, false, true); }else if(typeof this._i==='string'){ var tZone=offsetFromString(matchOffset, this._i); if(tZone!=null){ this.utcOffset(tZone); }else{ this.utcOffset(0, true); }} return this; } function hasAlignedHourOffset (input){ if(!this.isValid()){ return false; } input=input ? createLocal(input).utcOffset():0; return (this.utcOffset() - input) % 60===0; } function isDaylightSavingTime (){ return ( this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset() ); } function isDaylightSavingTimeShifted (){ if(!isUndefined(this._isDSTShifted)){ return this._isDSTShifted; } var c={}; copyConfig(c, this); c=prepareConfig(c); if(c._a){ var other=c._isUTC ? createUTC(c._a):createLocal(c._a); this._isDSTShifted=this.isValid() && compareArrays(c._a, other.toArray()) > 0; }else{ this._isDSTShifted=false; } return this._isDSTShifted; } function isLocal (){ return this.isValid() ? !this._isUTC:false; } function isUtcOffset (){ return this.isValid() ? this._isUTC:false; } function isUtc (){ return this.isValid() ? this._isUTC&&this._offset===0:false; } var aspNetRegex=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/; var isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/; function createDuration (input, key){ var duration=input, match=null, sign, ret, diffRes; if(isDuration(input)){ duration={ ms:input._milliseconds, d:input._days, M:input._months };}else if(isNumber(input)){ duration={}; if(key){ duration[key]=input; }else{ duration.milliseconds=input; }}else if(!!(match=aspNetRegex.exec(input))){ sign=(match[1]==='-') ? -1:1; duration={ y:0, d:toInt(match[DATE]) * sign, h:toInt(match[HOUR]) * sign, m:toInt(match[MINUTE]) * sign, s:toInt(match[SECOND]) * sign, ms:toInt(absRound(match[MILLISECOND] * 1000)) * sign };}else if(!!(match=isoRegex.exec(input))){ sign=(match[1]==='-') ? -1:(match[1]==='+') ? 1:1; duration={ y:parseIso(match[2], sign), M:parseIso(match[3], sign), w:parseIso(match[4], sign), d:parseIso(match[5], sign), h:parseIso(match[6], sign), m:parseIso(match[7], sign), s:parseIso(match[8], sign) };}else if(duration==null){ duration={};}else if(typeof duration==='object'&&('from' in duration||'to' in duration)){ diffRes=momentsDifference(createLocal(duration.from), createLocal(duration.to)); duration={}; duration.ms=diffRes.milliseconds; duration.M=diffRes.months; } ret=new Duration(duration); if(isDuration(input)&&hasOwnProp(input, '_locale')){ ret._locale=input._locale; } return ret; } createDuration.fn=Duration.prototype; createDuration.invalid=createInvalid$1; function parseIso (inp, sign){ var res=inp&&parseFloat(inp.replace(',', '.')); return (isNaN(res) ? 0:res) * sign; } function positiveMomentsDifference(base, other){ var res={milliseconds: 0, months: 0}; res.months=other.month() - base.month() + (other.year() - base.year()) * 12; if(base.clone().add(res.months, 'M').isAfter(other)){ --res.months; } res.milliseconds=+other - +(base.clone().add(res.months, 'M')); return res; } function momentsDifference(base, other){ var res; if(!(base.isValid()&&other.isValid())){ return {milliseconds: 0, months: 0};} other=cloneWithOffset(other, base); if(base.isBefore(other)){ res=positiveMomentsDifference(base, other); }else{ res=positiveMomentsDifference(other, base); res.milliseconds=-res.milliseconds; res.months=-res.months; } return res; } function createAdder(direction, name){ return function (val, period){ var dur, tmp; if(period!==null&&!isNaN(+period)){ deprecateSimple(name, 'moment().' + name + '(period, number) is deprecated. Please use moment().' + name + '(number, period). ' + 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'); tmp=val; val=period; period=tmp; } val=typeof val==='string' ? +val:val; dur=createDuration(val, period); addSubtract(this, dur, direction); return this; };} function addSubtract (mom, duration, isAdding, updateOffset){ var milliseconds=duration._milliseconds, days=absRound(duration._days), months=absRound(duration._months); if(!mom.isValid()){ return; } updateOffset=updateOffset==null ? true:updateOffset; if(months){ setMonth(mom, get(mom, 'Month') + months * isAdding); } if(days){ set$1(mom, 'Date', get(mom, 'Date') + days * isAdding); } if(milliseconds){ mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding); } if(updateOffset){ hooks.updateOffset(mom, days||months); }} var add=createAdder(1, 'add'); var subtract=createAdder(-1, 'subtract'); function getCalendarFormat(myMoment, now){ var diff=myMoment.diff(now, 'days', true); return diff < -6 ? 'sameElse' : diff < -1 ? 'lastWeek' : diff < 0 ? 'lastDay' : diff < 1 ? 'sameDay' : diff < 2 ? 'nextDay' : diff < 7 ? 'nextWeek':'sameElse'; } function calendar$1 (time, formats){ var now=time||createLocal(), sod=cloneWithOffset(now, this).startOf('day'), format=hooks.calendarFormat(this, sod)||'sameElse'; var output=formats&&(isFunction(formats[format]) ? formats[format].call(this, now):formats[format]); return this.format(output||this.localeData().calendar(format, this, createLocal(now))); } function clone (){ return new Moment(this); } function isAfter (input, units){ var localInput=isMoment(input) ? input:createLocal(input); if(!(this.isValid()&&localInput.isValid())){ return false; } units=normalizeUnits(!isUndefined(units) ? units:'millisecond'); if(units==='millisecond'){ return this.valueOf() > localInput.valueOf(); }else{ return localInput.valueOf() < this.clone().startOf(units).valueOf(); }} function isBefore (input, units){ var localInput=isMoment(input) ? input:createLocal(input); if(!(this.isValid()&&localInput.isValid())){ return false; } units=normalizeUnits(!isUndefined(units) ? units:'millisecond'); if(units==='millisecond'){ return this.valueOf() < localInput.valueOf(); }else{ return this.clone().endOf(units).valueOf() < localInput.valueOf(); }} function isBetween (from, to, units, inclusivity){ inclusivity=inclusivity||'()'; return (inclusivity[0]==='(' ? this.isAfter(from, units):!this.isBefore(from, units)) && (inclusivity[1]===')' ? this.isBefore(to, units):!this.isAfter(to, units)); } function isSame (input, units){ var localInput=isMoment(input) ? input:createLocal(input), inputMs; if(!(this.isValid()&&localInput.isValid())){ return false; } units=normalizeUnits(units||'millisecond'); if(units==='millisecond'){ return this.valueOf()===localInput.valueOf(); }else{ inputMs=localInput.valueOf(); return this.clone().startOf(units).valueOf() <=inputMs&&inputMs <=this.clone().endOf(units).valueOf(); }} function isSameOrAfter (input, units){ return this.isSame(input, units)||this.isAfter(input,units); } function isSameOrBefore (input, units){ return this.isSame(input, units)||this.isBefore(input,units); } function diff (input, units, asFloat){ var that, zoneDelta, output; if(!this.isValid()){ return NaN; } that=cloneWithOffset(input, this); if(!that.isValid()){ return NaN; } zoneDelta=(that.utcOffset() - this.utcOffset()) * 6e4; units=normalizeUnits(units); switch (units){ case 'year': output=monthDiff(this, that) / 12; break; case 'month': output=monthDiff(this, that); break; case 'quarter': output=monthDiff(this, that) / 3; break; case 'second': output=(this - that) / 1e3; break; case 'minute': output=(this - that) / 6e4; break; case 'hour': output=(this - that) / 36e5; break; case 'day': output=(this - that - zoneDelta) / 864e5; break; case 'week': output=(this - that - zoneDelta) / 6048e5; break; default: output=this - that; } return asFloat ? output:absFloor(output); } function monthDiff (a, b){ var wholeMonthDiff=((b.year() - a.year()) * 12) + (b.month() - a.month()), anchor=a.clone().add(wholeMonthDiff, 'months'), anchor2, adjust; if(b - anchor < 0){ anchor2=a.clone().add(wholeMonthDiff - 1, 'months'); adjust=(b - anchor) / (anchor - anchor2); }else{ anchor2=a.clone().add(wholeMonthDiff + 1, 'months'); adjust=(b - anchor) / (anchor2 - anchor); } return -(wholeMonthDiff + adjust)||0; } hooks.defaultFormat='YYYY-MM-DDTHH:mm:ssZ'; hooks.defaultFormatUtc='YYYY-MM-DDTHH:mm:ss[Z]'; function toString (){ return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ'); } function toISOString(keepOffset){ if(!this.isValid()){ return null; } var utc=keepOffset!==true; var m=utc ? this.clone().utc():this; if(m.year() < 0||m.year() > 9999){ return formatMoment(m, utc ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'); } if(isFunction(Date.prototype.toISOString)){ if(utc){ return this.toDate().toISOString(); }else{ return new Date(this.valueOf() + this.utcOffset() * 60 * 1000).toISOString().replace('Z', formatMoment(m, 'Z')); }} return formatMoment(m, utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ'); } function inspect (){ if(!this.isValid()){ return 'moment.invalid()'; } var func='moment'; var zone=''; if(!this.isLocal()){ func=this.utcOffset()===0 ? 'moment.utc':'moment.parseZone'; zone='Z'; } var prefix='[' + func + '("]'; var year=(0 <=this.year()&&this.year() <=9999) ? 'YYYY':'YYYYYY'; var datetime='-MM-DD[T]HH:mm:ss.SSS'; var suffix=zone + '[")]'; return this.format(prefix + year + datetime + suffix); } function format (inputString){ if(!inputString){ inputString=this.isUtc() ? hooks.defaultFormatUtc:hooks.defaultFormat; } var output=formatMoment(this, inputString); return this.localeData().postformat(output); } function from (time, withoutSuffix){ if(this.isValid() && ((isMoment(time)&&time.isValid()) || createLocal(time).isValid())){ return createDuration({to: this, from: time}).locale(this.locale()).humanize(!withoutSuffix); }else{ return this.localeData().invalidDate(); }} function fromNow (withoutSuffix){ return this.from(createLocal(), withoutSuffix); } function to (time, withoutSuffix){ if(this.isValid() && ((isMoment(time)&&time.isValid()) || createLocal(time).isValid())){ return createDuration({from: this, to: time}).locale(this.locale()).humanize(!withoutSuffix); }else{ return this.localeData().invalidDate(); }} function toNow (withoutSuffix){ return this.to(createLocal(), withoutSuffix); } function locale (key){ var newLocaleData; if(key===undefined){ return this._locale._abbr; }else{ newLocaleData=getLocale(key); if(newLocaleData!=null){ this._locale=newLocaleData; } return this; }} var lang=deprecate( 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.', function (key){ if(key===undefined){ return this.localeData(); }else{ return this.locale(key); }} ); function localeData (){ return this._locale; } function startOf (units){ units=normalizeUnits(units); switch (units){ case 'year': this.month(0); case 'quarter': case 'month': this.date(1); case 'week': case 'isoWeek': case 'day': case 'date': this.hours(0); case 'hour': this.minutes(0); case 'minute': this.seconds(0); case 'second': this.milliseconds(0); } if(units==='week'){ this.weekday(0); } if(units==='isoWeek'){ this.isoWeekday(1); } if(units==='quarter'){ this.month(Math.floor(this.month() / 3) * 3); } return this; } function endOf (units){ units=normalizeUnits(units); if(units===undefined||units==='millisecond'){ return this; } if(units==='date'){ units='day'; } return this.startOf(units).add(1, (units==='isoWeek' ? 'week':units)).subtract(1, 'ms'); } function valueOf (){ return this._d.valueOf() - ((this._offset||0) * 60000); } function unix (){ return Math.floor(this.valueOf() / 1000); } function toDate (){ return new Date(this.valueOf()); } function toArray (){ var m=this; return [m.year(), m.month(), m.date(), m.hour(), m.minute(), m.second(), m.millisecond()]; } function toObject (){ var m=this; return { years: m.year(), months: m.month(), date: m.date(), hours: m.hours(), minutes: m.minutes(), seconds: m.seconds(), milliseconds: m.milliseconds() };} function toJSON (){ return this.isValid() ? this.toISOString():null; } function isValid$2 (){ return isValid(this); } function parsingFlags (){ return extend({}, getParsingFlags(this)); } function invalidAt (){ return getParsingFlags(this).overflow; } function creationData(){ return { input: this._i, format: this._f, locale: this._locale, isUTC: this._isUTC, strict: this._strict };} addFormatToken(0, ['gg', 2], 0, function (){ return this.weekYear() % 100; }); addFormatToken(0, ['GG', 2], 0, function (){ return this.isoWeekYear() % 100; }); function addWeekYearFormatToken (token, getter){ addFormatToken(0, [token, token.length], 0, getter); } addWeekYearFormatToken('gggg', 'weekYear'); addWeekYearFormatToken('ggggg', 'weekYear'); addWeekYearFormatToken('GGGG', 'isoWeekYear'); addWeekYearFormatToken('GGGGG', 'isoWeekYear'); addUnitAlias('weekYear', 'gg'); addUnitAlias('isoWeekYear', 'GG'); addUnitPriority('weekYear', 1); addUnitPriority('isoWeekYear', 1); addRegexToken('G', matchSigned); addRegexToken('g', matchSigned); addRegexToken('GG', match1to2, match2); addRegexToken('gg', match1to2, match2); addRegexToken('GGGG', match1to4, match4); addRegexToken('gggg', match1to4, match4); addRegexToken('GGGGG', match1to6, match6); addRegexToken('ggggg', match1to6, match6); addWeekParseToken(['gggg', 'ggggg', 'GGGG', 'GGGGG'], function (input, week, config, token){ week[token.substr(0, 2)]=toInt(input); }); addWeekParseToken(['gg', 'GG'], function (input, week, config, token){ week[token]=hooks.parseTwoDigitYear(input); }); function getSetWeekYear (input){ return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy); } function getSetISOWeekYear (input){ return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4); } function getISOWeeksInYear (){ return weeksInYear(this.year(), 1, 4); } function getWeeksInYear (){ var weekInfo=this.localeData()._week; return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy); } function getSetWeekYearHelper(input, week, weekday, dow, doy){ var weeksTarget; if(input==null){ return weekOfYear(this, dow, doy).year; }else{ weeksTarget=weeksInYear(input, dow, doy); if(week > weeksTarget){ week=weeksTarget; } return setWeekAll.call(this, input, week, weekday, dow, doy); }} function setWeekAll(weekYear, week, weekday, dow, doy){ var dayOfYearData=dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date=createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear); this.year(date.getUTCFullYear()); this.month(date.getUTCMonth()); this.date(date.getUTCDate()); return this; } addFormatToken('Q', 0, 'Qo', 'quarter'); addUnitAlias('quarter', 'Q'); addUnitPriority('quarter', 7); addRegexToken('Q', match1); addParseToken('Q', function (input, array){ array[MONTH]=(toInt(input) - 1) * 3; }); function getSetQuarter (input){ return input==null ? Math.ceil((this.month() + 1) / 3):this.month((input - 1) * 3 + this.month() % 3); } addFormatToken('D', ['DD', 2], 'Do', 'date'); addUnitAlias('date', 'D'); addUnitPriority('date', 9); addRegexToken('D', match1to2); addRegexToken('DD', match1to2, match2); addRegexToken('Do', function (isStrict, locale){ return isStrict ? (locale._dayOfMonthOrdinalParse||locale._ordinalParse) : locale._dayOfMonthOrdinalParseLenient; }); addParseToken(['D', 'DD'], DATE); addParseToken('Do', function (input, array){ array[DATE]=toInt(input.match(match1to2)[0]); }); var getSetDayOfMonth=makeGetSet('Date', true); addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear'); addUnitAlias('dayOfYear', 'DDD'); addUnitPriority('dayOfYear', 4); addRegexToken('DDD', match1to3); addRegexToken('DDDD', match3); addParseToken(['DDD', 'DDDD'], function (input, array, config){ config._dayOfYear=toInt(input); }); function getSetDayOfYear (input){ var dayOfYear=Math.round((this.clone().startOf('day') - this.clone().startOf('year')) / 864e5) + 1; return input==null ? dayOfYear:this.add((input - dayOfYear), 'd'); } addFormatToken('m', ['mm', 2], 0, 'minute'); addUnitAlias('minute', 'm'); addUnitPriority('minute', 14); addRegexToken('m', match1to2); addRegexToken('mm', match1to2, match2); addParseToken(['m', 'mm'], MINUTE); var getSetMinute=makeGetSet('Minutes', false); addFormatToken('s', ['ss', 2], 0, 'second'); addUnitAlias('second', 's'); addUnitPriority('second', 15); addRegexToken('s', match1to2); addRegexToken('ss', match1to2, match2); addParseToken(['s', 'ss'], SECOND); var getSetSecond=makeGetSet('Seconds', false); addFormatToken('S', 0, 0, function (){ return ~~(this.millisecond() / 100); }); addFormatToken(0, ['SS', 2], 0, function (){ return ~~(this.millisecond() / 10); }); addFormatToken(0, ['SSS', 3], 0, 'millisecond'); addFormatToken(0, ['SSSS', 4], 0, function (){ return this.millisecond() * 10; }); addFormatToken(0, ['SSSSS', 5], 0, function (){ return this.millisecond() * 100; }); addFormatToken(0, ['SSSSSS', 6], 0, function (){ return this.millisecond() * 1000; }); addFormatToken(0, ['SSSSSSS', 7], 0, function (){ return this.millisecond() * 10000; }); addFormatToken(0, ['SSSSSSSS', 8], 0, function (){ return this.millisecond() * 100000; }); addFormatToken(0, ['SSSSSSSSS', 9], 0, function (){ return this.millisecond() * 1000000; }); addUnitAlias('millisecond', 'ms'); addUnitPriority('millisecond', 16); addRegexToken('S', match1to3, match1); addRegexToken('SS', match1to3, match2); addRegexToken('SSS', match1to3, match3); var token; for (token='SSSS'; token.length <=9; token +='S'){ addRegexToken(token, matchUnsigned); } function parseMs(input, array){ array[MILLISECOND]=toInt(('0.' + input) * 1000); } for (token='S'; token.length <=9; token +='S'){ addParseToken(token, parseMs); } var getSetMillisecond=makeGetSet('Milliseconds', false); addFormatToken('z', 0, 0, 'zoneAbbr'); addFormatToken('zz', 0, 0, 'zoneName'); function getZoneAbbr (){ return this._isUTC ? 'UTC':''; } function getZoneName (){ return this._isUTC ? 'Coordinated Universal Time':''; } var proto=Moment.prototype; proto.add=add; proto.calendar=calendar$1; proto.clone=clone; proto.diff=diff; proto.endOf=endOf; proto.format=format; proto.from=from; proto.fromNow=fromNow; proto.to=to; proto.toNow=toNow; proto.get=stringGet; proto.invalidAt=invalidAt; proto.isAfter=isAfter; proto.isBefore=isBefore; proto.isBetween=isBetween; proto.isSame=isSame; proto.isSameOrAfter=isSameOrAfter; proto.isSameOrBefore=isSameOrBefore; proto.isValid=isValid$2; proto.lang=lang; proto.locale=locale; proto.localeData=localeData; proto.max=prototypeMax; proto.min=prototypeMin; proto.parsingFlags=parsingFlags; proto.set=stringSet; proto.startOf=startOf; proto.subtract=subtract; proto.toArray=toArray; proto.toObject=toObject; proto.toDate=toDate; proto.toISOString=toISOString; proto.inspect=inspect; proto.toJSON=toJSON; proto.toString=toString; proto.unix=unix; proto.valueOf=valueOf; proto.creationData=creationData; proto.year=getSetYear; proto.isLeapYear=getIsLeapYear; proto.weekYear=getSetWeekYear; proto.isoWeekYear=getSetISOWeekYear; proto.quarter=proto.quarters=getSetQuarter; proto.month=getSetMonth; proto.daysInMonth=getDaysInMonth; proto.week=proto.weeks=getSetWeek; proto.isoWeek=proto.isoWeeks=getSetISOWeek; proto.weeksInYear=getWeeksInYear; proto.isoWeeksInYear=getISOWeeksInYear; proto.date=getSetDayOfMonth; proto.day=proto.days=getSetDayOfWeek; proto.weekday=getSetLocaleDayOfWeek; proto.isoWeekday=getSetISODayOfWeek; proto.dayOfYear=getSetDayOfYear; proto.hour=proto.hours=getSetHour; proto.minute=proto.minutes=getSetMinute; proto.second=proto.seconds=getSetSecond; proto.millisecond=proto.milliseconds=getSetMillisecond; proto.utcOffset=getSetOffset; proto.utc=setOffsetToUTC; proto.local=setOffsetToLocal; proto.parseZone=setOffsetToParsedOffset; proto.hasAlignedHourOffset=hasAlignedHourOffset; proto.isDST=isDaylightSavingTime; proto.isLocal=isLocal; proto.isUtcOffset=isUtcOffset; proto.isUtc=isUtc; proto.isUTC=isUtc; proto.zoneAbbr=getZoneAbbr; proto.zoneName=getZoneName; proto.dates=deprecate('dates accessor is deprecated. Use date instead.', getSetDayOfMonth); proto.months=deprecate('months accessor is deprecated. Use month instead', getSetMonth); proto.years=deprecate('years accessor is deprecated. Use year instead', getSetYear); proto.zone=deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); proto.isDSTShifted=deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted); function createUnix (input){ return createLocal(input * 1000); } function createInZone (){ return createLocal.apply(null, arguments).parseZone(); } function preParsePostFormat (string){ return string; } var proto$1=Locale.prototype; proto$1.calendar=calendar; proto$1.longDateFormat=longDateFormat; proto$1.invalidDate=invalidDate; proto$1.ordinal=ordinal; proto$1.preparse=preParsePostFormat; proto$1.postformat=preParsePostFormat; proto$1.relativeTime=relativeTime; proto$1.pastFuture=pastFuture; proto$1.set=set; proto$1.months=localeMonths; proto$1.monthsShort=localeMonthsShort; proto$1.monthsParse=localeMonthsParse; proto$1.monthsRegex=monthsRegex; proto$1.monthsShortRegex=monthsShortRegex; proto$1.week=localeWeek; proto$1.firstDayOfYear=localeFirstDayOfYear; proto$1.firstDayOfWeek=localeFirstDayOfWeek; proto$1.weekdays=localeWeekdays; proto$1.weekdaysMin=localeWeekdaysMin; proto$1.weekdaysShort=localeWeekdaysShort; proto$1.weekdaysParse=localeWeekdaysParse; proto$1.weekdaysRegex=weekdaysRegex; proto$1.weekdaysShortRegex=weekdaysShortRegex; proto$1.weekdaysMinRegex=weekdaysMinRegex; proto$1.isPM=localeIsPM; proto$1.meridiem=localeMeridiem; function get$1 (format, index, field, setter){ var locale=getLocale(); var utc=createUTC().set(setter, index); return locale[field](utc, format); } function listMonthsImpl (format, index, field){ if(isNumber(format)){ index=format; format=undefined; } format=format||''; if(index!=null){ return get$1(format, index, field, 'month'); } var i; var out=[]; for (i=0; i < 12; i++){ out[i]=get$1(format, i, field, 'month'); } return out; } function listWeekdaysImpl (localeSorted, format, index, field){ if(typeof localeSorted==='boolean'){ if(isNumber(format)){ index=format; format=undefined; } format=format||''; }else{ format=localeSorted; index=format; localeSorted=false; if(isNumber(format)){ index=format; format=undefined; } format=format||''; } var locale=getLocale(), shift=localeSorted ? locale._week.dow:0; if(index!=null){ return get$1(format, (index + shift) % 7, field, 'day'); } var i; var out=[]; for (i=0; i < 7; i++){ out[i]=get$1(format, (i + shift) % 7, field, 'day'); } return out; } function listMonths (format, index){ return listMonthsImpl(format, index, 'months'); } function listMonthsShort (format, index){ return listMonthsImpl(format, index, 'monthsShort'); } function listWeekdays (localeSorted, format, index){ return listWeekdaysImpl(localeSorted, format, index, 'weekdays'); } function listWeekdaysShort (localeSorted, format, index){ return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort'); } function listWeekdaysMin (localeSorted, format, index){ return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin'); } getSetGlobalLocale('en', { dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal:function (number){ var b=number % 10, output=(toInt(number % 100 / 10)===1) ? 'th' : (b===1) ? 'st' : (b===2) ? 'nd' : (b===3) ? 'rd':'th'; return number + output; }}); hooks.lang=deprecate('moment.lang is deprecated. Use moment.locale instead.', getSetGlobalLocale); hooks.langData=deprecate('moment.langData is deprecated. Use moment.localeData instead.', getLocale); var mathAbs=Math.abs; function abs (){ var data=this._data; this._milliseconds=mathAbs(this._milliseconds); this._days=mathAbs(this._days); this._months=mathAbs(this._months); data.milliseconds=mathAbs(data.milliseconds); data.seconds=mathAbs(data.seconds); data.minutes=mathAbs(data.minutes); data.hours=mathAbs(data.hours); data.months=mathAbs(data.months); data.years=mathAbs(data.years); return this; } function addSubtract$1 (duration, input, value, direction){ var other=createDuration(input, value); duration._milliseconds +=direction * other._milliseconds; duration._days +=direction * other._days; duration._months +=direction * other._months; return duration._bubble(); } function add$1 (input, value){ return addSubtract$1(this, input, value, 1); } function subtract$1 (input, value){ return addSubtract$1(this, input, value, -1); } function absCeil (number){ if(number < 0){ return Math.floor(number); }else{ return Math.ceil(number); }} function bubble (){ var milliseconds=this._milliseconds; var days=this._days; var months=this._months; var data=this._data; var seconds, minutes, hours, years, monthsFromDays; if(!((milliseconds >=0&&days >=0&&months >=0) || (milliseconds <=0&&days <=0&&months <=0))){ milliseconds +=absCeil(monthsToDays(months) + days) * 864e5; days=0; months=0; } data.milliseconds=milliseconds % 1000; seconds=absFloor(milliseconds / 1000); data.seconds=seconds % 60; minutes=absFloor(seconds / 60); data.minutes=minutes % 60; hours=absFloor(minutes / 60); data.hours=hours % 24; days +=absFloor(hours / 24); monthsFromDays=absFloor(daysToMonths(days)); months +=monthsFromDays; days -=absCeil(monthsToDays(monthsFromDays)); years=absFloor(months / 12); months %=12; data.days=days; data.months=months; data.years=years; return this; } function daysToMonths (days){ return days * 4800 / 146097; } function monthsToDays (months){ return months * 146097 / 4800; } function as (units){ if(!this.isValid()){ return NaN; } var days; var months; var milliseconds=this._milliseconds; units=normalizeUnits(units); if(units==='month'||units==='year'){ days=this._days + milliseconds / 864e5; months=this._months + daysToMonths(days); return units==='month' ? months:months / 12; }else{ days=this._days + Math.round(monthsToDays(this._months)); switch (units){ case 'week':return days / 7 + milliseconds / 6048e5; case 'day':return days + milliseconds / 864e5; case 'hour':return days * 24 + milliseconds / 36e5; case 'minute':return days * 1440 + milliseconds / 6e4; case 'second':return days * 86400 + milliseconds / 1000; case 'millisecond': return Math.floor(days * 864e5) + milliseconds; default: throw new Error('Unknown unit ' + units); }} } function valueOf$1 (){ if(!this.isValid()){ return NaN; } return ( this._milliseconds + this._days * 864e5 + (this._months % 12) * 2592e6 + toInt(this._months / 12) * 31536e6 ); } function makeAs (alias){ return function (){ return this.as(alias); };} var asMilliseconds=makeAs('ms'); var asSeconds=makeAs('s'); var asMinutes=makeAs('m'); var asHours=makeAs('h'); var asDays=makeAs('d'); var asWeeks=makeAs('w'); var asMonths=makeAs('M'); var asYears=makeAs('y'); function clone$1 (){ return createDuration(this); } function get$2 (units){ units=normalizeUnits(units); return this.isValid() ? this[units + 's']():NaN; } function makeGetter(name){ return function (){ return this.isValid() ? this._data[name]:NaN; };} var milliseconds=makeGetter('milliseconds'); var seconds=makeGetter('seconds'); var minutes=makeGetter('minutes'); var hours=makeGetter('hours'); var days=makeGetter('days'); var months=makeGetter('months'); var years=makeGetter('years'); function weeks (){ return absFloor(this.days() / 7); } var round=Math.round; var thresholds={ ss: 44, s:45, m:45, h:22, d:26, M:11 }; function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale){ return locale.relativeTime(number||1, !!withoutSuffix, string, isFuture); } function relativeTime$1 (posNegDuration, withoutSuffix, locale){ var duration=createDuration(posNegDuration).abs(); var seconds=round(duration.as('s')); var minutes=round(duration.as('m')); var hours=round(duration.as('h')); var days=round(duration.as('d')); var months=round(duration.as('M')); var years=round(duration.as('y')); var a=seconds <=thresholds.ss&&['s', seconds] || seconds < thresholds.s&&['ss', seconds] || minutes <=1&&['m'] || minutes < thresholds.m&&['mm', minutes] || hours <=1&&['h'] || hours < thresholds.h&&['hh', hours] || days <=1&&['d'] || days < thresholds.d&&['dd', days] || months <=1&&['M'] || months < thresholds.M&&['MM', months] || years <=1&&['y']||['yy', years]; a[2]=withoutSuffix; a[3]=+posNegDuration > 0; a[4]=locale; return substituteTimeAgo.apply(null, a); } function getSetRelativeTimeRounding (roundingFunction){ if(roundingFunction===undefined){ return round; } if(typeof(roundingFunction)==='function'){ round=roundingFunction; return true; } return false; } function getSetRelativeTimeThreshold (threshold, limit){ if(thresholds[threshold]===undefined){ return false; } if(limit===undefined){ return thresholds[threshold]; } thresholds[threshold]=limit; if(threshold==='s'){ thresholds.ss=limit - 1; } return true; } function humanize (withSuffix){ if(!this.isValid()){ return this.localeData().invalidDate(); } var locale=this.localeData(); var output=relativeTime$1(this, !withSuffix, locale); if(withSuffix){ output=locale.pastFuture(+this, output); } return locale.postformat(output); } var abs$1=Math.abs; function sign(x){ return ((x > 0) - (x < 0))||+x; } function toISOString$1(){ if(!this.isValid()){ return this.localeData().invalidDate(); } var seconds=abs$1(this._milliseconds) / 1000; var days=abs$1(this._days); var months=abs$1(this._months); var minutes, hours, years; minutes=absFloor(seconds / 60); hours=absFloor(minutes / 60); seconds %=60; minutes %=60; years=absFloor(months / 12); months %=12; var Y=years; var M=months; var D=days; var h=hours; var m=minutes; var s=seconds ? seconds.toFixed(3).replace(/\.?0+$/, ''):''; var total=this.asSeconds(); if(!total){ return 'P0D'; } var totalSign=total < 0 ? '-':''; var ymSign=sign(this._months)!==sign(total) ? '-':''; var daysSign=sign(this._days)!==sign(total) ? '-':''; var hmsSign=sign(this._milliseconds)!==sign(total) ? '-':''; return totalSign + 'P' + (Y ? ymSign + Y + 'Y':'') + (M ? ymSign + M + 'M':'') + (D ? daysSign + D + 'D':'') + ((h||m || s) ? 'T':'') + (h ? hmsSign + h + 'H':'') + (m ? hmsSign + m + 'M':'') + (s ? hmsSign + s + 'S':''); } var proto$2=Duration.prototype; proto$2.isValid=isValid$1; proto$2.abs=abs; proto$2.add=add$1; proto$2.subtract=subtract$1; proto$2.as=as; proto$2.asMilliseconds=asMilliseconds; proto$2.asSeconds=asSeconds; proto$2.asMinutes=asMinutes; proto$2.asHours=asHours; proto$2.asDays=asDays; proto$2.asWeeks=asWeeks; proto$2.asMonths=asMonths; proto$2.asYears=asYears; proto$2.valueOf=valueOf$1; proto$2._bubble=bubble; proto$2.clone=clone$1; proto$2.get=get$2; proto$2.milliseconds=milliseconds; proto$2.seconds=seconds; proto$2.minutes=minutes; proto$2.hours=hours; proto$2.days=days; proto$2.weeks=weeks; proto$2.months=months; proto$2.years=years; proto$2.humanize=humanize; proto$2.toISOString=toISOString$1; proto$2.toString=toISOString$1; proto$2.toJSON=toISOString$1; proto$2.locale=locale; proto$2.localeData=localeData; proto$2.toIsoString=deprecate('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)', toISOString$1); proto$2.lang=lang; addFormatToken('X', 0, 0, 'unix'); addFormatToken('x', 0, 0, 'valueOf'); addRegexToken('x', matchSigned); addRegexToken('X', matchTimestamp); addParseToken('X', function (input, array, config){ config._d=new Date(parseFloat(input, 10) * 1000); }); addParseToken('x', function (input, array, config){ config._d=new Date(toInt(input)); }); hooks.version='2.22.2'; setHookCallback(createLocal); hooks.fn=proto; hooks.min=min; hooks.max=max; hooks.now=now; hooks.utc=createUTC; hooks.unix=createUnix; hooks.months=listMonths; hooks.isDate=isDate; hooks.locale=getSetGlobalLocale; hooks.invalid=createInvalid; hooks.duration=createDuration; hooks.isMoment=isMoment; hooks.weekdays=listWeekdays; hooks.parseZone=createInZone; hooks.localeData=getLocale; hooks.isDuration=isDuration; hooks.monthsShort=listMonthsShort; hooks.weekdaysMin=listWeekdaysMin; hooks.defineLocale=defineLocale; hooks.updateLocale=updateLocale; hooks.locales=listLocales; hooks.weekdaysShort=listWeekdaysShort; hooks.normalizeUnits=normalizeUnits; hooks.relativeTimeRounding=getSetRelativeTimeRounding; hooks.relativeTimeThreshold=getSetRelativeTimeThreshold; hooks.calendarFormat=getCalendarFormat; hooks.prototype=proto; hooks.HTML5_FMT={ DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', DATE: 'YYYY-MM-DD', TIME: 'HH:mm', TIME_SECONDS: 'HH:mm:ss', TIME_MS: 'HH:mm:ss.SSS', WEEK: 'YYYY-[W]WW', MONTH: 'YYYY-MM' }; return hooks; }))); var datetimepickerFactory=function(e){"use strict";var t={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],dayOfWeek:["日曜","月曜","火曜","水曜","木曜","金曜","土曜"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1},a=null,o=null,r="en",n={meridiem:["AM","PM"]},i=function(){var i=t.i18n[r],s={days:i.dayOfWeek,daysShort:i.dayOfWeekShort,months:i.months,monthsShort:e.map(i.months,function(e){return e.substring(0,3)})};"function"==typeof DateFormatter&&(a=o=new DateFormatter({dateSettings:e.extend({},n,s)}))},s={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(u(t))return o.parseDate(e,t);var a=moment(e,t);return!!a.isValid()&&a.toDate()},formatDate:function(e,t){return u(t)?o.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};e.datetimepicker={setLocale:function(e){var a=t.i18n[e]?e:"en";r!==a&&(r=a,i())},setDateFormatter:function(o){if("string"==typeof o&&s.hasOwnProperty(o)){var r=s[o];e.extend(t,r.default_options),a=r.formatter}else a=o}};var d={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},u=function(e){return-1!==Object.values(d).indexOf(e)};function l(e,t,a){this.date=e,this.desc=t,this.style=a}e.extend(e.datetimepicker,d),i(),window.getComputedStyle||(window.getComputedStyle=function(e){return this.el=e,this.getPropertyValue=function(t){var a=/(-([a-z]))/g;return"float"===t&&(t="styleFloat"),a.test(t)&&(t=t.replace(a,function(e,t,a){return a.toUpperCase()})),e.currentStyle[t]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var a,o;for(a=t||0,o=this.length;a
    '),s=e('
    '),i.append(s),d.addClass("xdsoft_scroller_box").append(i),D=function(e){var t=u(e).y-c+p;t<0&&(t=0),t+s[0].offsetHeight>h&&(t=h-s[0].offsetHeight),d.trigger("scroll_element.xdsoft_scroller",[l?t/l:0])},s.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(o){r||d.trigger("resize_scroll.xdsoft_scroller",[a]),c=u(o).y,p=parseInt(s.css("margin-top"),10),h=i[0].offsetHeight,"mousedown"===o.type||"touchstart"===o.type?(t.ownerDocument&&e(t.ownerDocument.body).addClass("xdsoft_noselect"),e([t.ownerDocument.body,t.contentWindow]).on("touchend mouseup.xdsoft_scroller",function a(){e([t.ownerDocument.body,t.contentWindow]).off("touchend mouseup.xdsoft_scroller",a).off("mousemove.xdsoft_scroller",D).removeClass("xdsoft_noselect")}),e(t.ownerDocument.body).on("mousemove.xdsoft_scroller",D)):(g=!0,o.stopPropagation(),o.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),D(e))}).on("touchend touchcancel",function(){g=!1,p=0}),d.on("scroll_element.xdsoft_scroller",function(e,t){r||d.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=t>1?1:t<0||isNaN(t)?0:t,s.css("margin-top",l*t),setTimeout(function(){o.css("marginTop",-parseInt((o[0].offsetHeight-r)*t,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,t,a){var u,f;r=d[0].clientHeight,n=o[0].offsetHeight,f=(u=r/n)*i[0].offsetHeight,u>1?s.hide():(s.show(),s.css("height",parseInt(f>10?f:10,10)),l=i[0].offsetHeight-s[0].offsetHeight,!0!==a&&d.trigger("scroll_element.xdsoft_scroller",[t||Math.abs(parseInt(o.css("marginTop"),10))/(n-r)]))}),d.on("mousewheel",function(e){var t=Math.abs(parseInt(o.css("marginTop"),10));return(t+=1*e.originalEvent.deltaY)<0&&(t=0),d.trigger("scroll_element.xdsoft_scroller",[t/(n-r)]),e.stopPropagation(),!1}),d.on("touchstart",function(e){f=u(e),m=Math.abs(parseInt(o.css("marginTop"),10))}),d.on("touchmove",function(e){if(f){e.preventDefault();var t=u(e);d.trigger("scroll_element.xdsoft_scroller",[(m-(t.y-f.y))/(n-r)])}}),d.on("touchend touchcancel",function(){f=!1,m=0})),d.trigger("resize_scroll.xdsoft_scroller",[a])):d.find(".xdsoft_scrollbar").hide()})},e.fn.datetimepicker=function(o,n){var i,s,d=this,u=48,f=57,c=96,m=105,h=17,g=46,p=13,D=27,v=8,y=37,k=38,x=39,b=40,T=9,S=116,O=65,M=67,w=86,W=90,_=89,F=!1,C=e.isPlainObject(o)||!o?e.extend(!0,{},t,o):e.extend(!0,{},t),P=0;return i=function(t){var n,i,s,d,P,Y,A=e('
    '),H=e(''),j=e('
    '),J=e('
    '),z=e('
    '),I=e('
    '),N=I.find(".xdsoft_time_box").eq(0),L=e('
    '),E=e(''),R=e('
    '),V=e('
    '),B=!1,q=0;C.id&&A.attr("id",C.id),C.style&&A.attr("style",C.style),C.weeks&&A.addClass("xdsoft_showweeks"),C.rtl&&A.addClass("xdsoft_rtl"),A.addClass("xdsoft_"+C.theme),A.addClass(C.className),J.find(".xdsoft_month span").after(R),J.find(".xdsoft_year span").after(V),J.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(t){var a,o,r=e(this).find(".xdsoft_select").eq(0),n=0,i=0,s=r.is(":visible");for(J.find(".xdsoft_select").hide(),P.currentTime&&(n=P.currentTime[e(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),r[s?"hide":"show"](),a=r.find("div.xdsoft_option"),o=0;oC.touchMovedThreshold&&(this.touchMoved=!0)};function X(){var e,a=!1;return C.startDate?a=P.strToDate(C.startDate):(a=C.value||(t&&t.val&&t.val()?t.val():""))?(a=P.strToDateTime(a),C.yearOffset&&(a=new Date(a.getFullYear()-C.yearOffset,a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()))):C.defaultDate&&(a=P.strToDateTime(C.defaultDate),C.defaultTime&&(e=P.strtotime(C.defaultTime),a.setHours(e.getHours()),a.setMinutes(e.getMinutes()))),a&&P.isValidDate(a)?A.data("changed",!0):a="",a||0}function K(o){var r=function(e,t){var a=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(a).test(t)},n=function(e,t){if(!(e="string"==typeof e||e instanceof String?o.ownerDocument.getElementById(e):e))return!1;if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),!0}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)};o.mask&&t.off("keydown.xdsoft"),!0===o.mask&&(a.formatMask?o.mask=a.formatMask(o.format):o.mask=o.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===e.type(o.mask)&&(r(o.mask,t.val())||(t.val(o.mask.replace(/[0-9]/g,"_")),n(t[0],0)),t.on("paste.xdsoft",function(a){var i=(a.clipboardData||a.originalEvent.clipboardData||window.clipboardData).getData("text"),s=this.value,d=this.selectionStart,u=s.substr(0,d),l=s.substr(d+i.length);return s=u+i+l,d+=i.length,r(o.mask,s)?(this.value=s,n(this,d)):""===e.trim(s)?this.value=o.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft"),a.preventDefault(),!1}),t.on("keydown.xdsoft",function(a){var i,s=this.value,d=a.which,l=this.selectionStart,C=this.selectionEnd,P=l!==C;if(d>=u&&d<=f||d>=c&&d<=m||d===v||d===g){for(i=d===v||d===g?"_":String.fromCharCode(c<=d&&d<=m?d-u:d),d===v&&l&&!P&&(l-=1);;){var Y=o.mask.substr(l,1),A=l0;if(!(/[^0-9_]/.test(Y)&&A&&H))break;l+=d!==v||P?1:-1}if(P){var j=C-l,J=o.mask.replace(/[0-9]/g,"_"),z=J.substr(l,j).substr(1),I=s.substr(0,l),N=i+z,L=s.substr(l+j);s=I+N+L}else{var E=s.substr(0,l),R=i,V=s.substr(l+1);s=E+R+V}if(""===e.trim(s))s=J;else if(l===o.mask.length)return a.preventDefault(),!1;for(l+=d===v?0:1;/[^0-9_]/.test(o.mask.substr(l,1))&&l0;)l+=d===v?0:1;r(o.mask,s)?(this.value=s,n(this,l)):""===e.trim(s)?this.value=o.mask.replace(/[0-9]/g,"_"):t.trigger("error_input.xdsoft")}else if(-1!==[O,M,w,W,_].indexOf(d)&&F||-1!==[D,k,b,y,x,S,h,T,p].indexOf(d))return!0;return a.preventDefault(),!1}))}J.find(".xdsoft_select").xdsoftScroller(C).on("touchstart mousedown.xdsoft",function(e){var t=e.originalEvent;this.touchMoved=!1,this.touchStartPosition=t.touches?t.touches[0]:t,e.stopPropagation(),e.preventDefault()}).on("touchmove",".xdsoft_option",G).on("touchend mousedown.xdsoft",".xdsoft_option",function(){if(!this.touchMoved){void 0!==P.currentTime&&null!==P.currentTime||(P.currentTime=P.now());var t=P.currentTime.getFullYear();P&&P.currentTime&&P.currentTime[e(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](e(this).data("value")),e(this).parent().parent().hide(),A.trigger("xchange.xdsoft"),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(A,P.currentTime,A.data("input")),t!==P.currentTime.getFullYear()&&e.isFunction(C.onChangeYear)&&C.onChangeYear.call(A,P.currentTime,A.data("input"))}}),A.getValue=function(){return P.getCurrentTime()},A.setOptions=function(o){var r={};C=e.extend(!0,{},C,o),o.allowTimes&&e.isArray(o.allowTimes)&&o.allowTimes.length&&(C.allowTimes=e.extend(!0,[],o.allowTimes)),o.weekends&&e.isArray(o.weekends)&&o.weekends.length&&(C.weekends=e.extend(!0,[],o.weekends)),o.allowDates&&e.isArray(o.allowDates)&&o.allowDates.length&&(C.allowDates=e.extend(!0,[],o.allowDates)),o.allowDateRe&&"[object String]"===Object.prototype.toString.call(o.allowDateRe)&&(C.allowDateRe=new RegExp(o.allowDateRe)),o.highlightedDates&&e.isArray(o.highlightedDates)&&o.highlightedDates.length&&(e.each(o.highlightedDates,function(t,o){var n,i=e.map(o.split(","),e.trim),s=new l(a.parseDate(i[0],C.formatDate),i[1],i[2]),d=a.formatDate(s.date,C.formatDate);void 0!==r[d]?(n=r[d].desc)&&n.length&&s.desc&&s.desc.length&&(r[d].desc=n+"\n"+s.desc):r[d]=s}),C.highlightedDates=e.extend(!0,[],r)),o.highlightedPeriods&&e.isArray(o.highlightedPeriods)&&o.highlightedPeriods.length&&(r=e.extend(!0,[],C.highlightedDates),e.each(o.highlightedPeriods,function(t,o){var n,i,s,d,u,f,c;if(e.isArray(o))n=o[0],i=o[1],s=o[2],c=o[3];else{var m=e.map(o.split(","),e.trim);n=a.parseDate(m[0],C.formatDate),i=a.parseDate(m[1],C.formatDate),s=m[2],c=m[3]}for(;n<=i;)d=new l(n,s,c),u=a.formatDate(n,C.formatDate),n.setDate(n.getDate()+1),void 0!==r[u]?(f=r[u].desc)&&f.length&&d.desc&&d.desc.length&&(r[u].desc=f+"\n"+d.desc):r[u]=d}),C.highlightedDates=e.extend(!0,[],r)),o.disabledDates&&e.isArray(o.disabledDates)&&o.disabledDates.length&&(C.disabledDates=e.extend(!0,[],o.disabledDates)),o.disabledWeekDays&&e.isArray(o.disabledWeekDays)&&o.disabledWeekDays.length&&(C.disabledWeekDays=e.extend(!0,[],o.disabledWeekDays)),!C.open&&!C.opened||C.inline||t.trigger("open.xdsoft"),C.inline&&(B=!0,A.addClass("xdsoft_inline"),t.after(A).hide()),C.inverseButton&&(C.next="xdsoft_prev",C.prev="xdsoft_next"),C.datepicker?j.addClass("active"):j.removeClass("active"),C.timepicker?I.addClass("active"):I.removeClass("active"),C.value&&(P.setCurrentTime(C.value),t&&t.val&&t.val(P.str)),isNaN(C.dayOfWeekStart)?C.dayOfWeekStart=0:C.dayOfWeekStart=parseInt(C.dayOfWeekStart,10)%7,C.timepickerScrollbar||N.xdsoftScroller(C,"hide"),C.minDate&&/^[\+\-](.*)$/.test(C.minDate)&&(C.minDate=a.formatDate(P.strToDateTime(C.minDate),C.formatDate)),C.maxDate&&/^[\+\-](.*)$/.test(C.maxDate)&&(C.maxDate=a.formatDate(P.strToDateTime(C.maxDate),C.formatDate)),C.minDateTime&&/^\+(.*)$/.test(C.minDateTime)&&(C.minDateTime=P.strToDateTime(C.minDateTime).dateFormat(C.formatDate)),C.maxDateTime&&/^\+(.*)$/.test(C.maxDateTime)&&(C.maxDateTime=P.strToDateTime(C.maxDateTime).dateFormat(C.formatDate)),E.toggle(C.showApplyButton),J.find(".xdsoft_today_button").css("visibility",C.todayButton?"visible":"hidden"),J.find("."+C.prev).css("visibility",C.prevButton?"visible":"hidden"),J.find("."+C.next).css("visibility",C.nextButton?"visible":"hidden"),K(C),C.validateOnBlur&&t.off("blur.xdsoft").on("blur.xdsoft",function(){if(C.allowBlank&&(!e.trim(e(this).val()).length||"string"==typeof C.mask&&e.trim(e(this).val())===C.mask.replace(/[0-9]/g,"_")))e(this).val(null),A.data("xdsoft_datetime").empty();else{var t=a.parseDate(e(this).val(),C.format);if(t)e(this).val(a.formatDate(t,C.format));else{var o=+[e(this).val()[0],e(this).val()[1]].join(""),r=+[e(this).val()[2],e(this).val()[3]].join("");!C.datepicker&&C.timepicker&&o>=0&&o<24&&r>=0&&r<60?e(this).val([o,r].map(function(e){return e>9?e:"0"+e}).join(":")):e(this).val(a.formatDate(P.now(),C.format))}A.data("xdsoft_datetime").setCurrentTime(e(this).val())}A.trigger("changedatetime.xdsoft"),A.trigger("close.xdsoft")}),C.dayOfWeekStartPrev=0===C.dayOfWeekStart?6:C.dayOfWeekStart-1,A.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},A.data("options",C).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),V.hide(),R.hide(),!1}),N.append(L),N.xdsoftScroller(C),A.on("afterOpen.xdsoft",function(){N.xdsoftScroller(C)}),A.append(j).append(I),!0!==C.withoutCopyright&&A.append(H),j.append(J).append(z).append(E),e(C.parentID).append(A),P=new function(){var t=this;t.now=function(e){var a,o,r=new Date;return!e&&C.defaultDate&&(a=t.strToDateTime(C.defaultDate),r.setFullYear(a.getFullYear()),r.setMonth(a.getMonth()),r.setDate(a.getDate())),r.setFullYear(r.getFullYear()),!e&&C.defaultTime&&(o=t.strtotime(C.defaultTime),r.setHours(o.getHours()),r.setMinutes(o.getMinutes()),r.setSeconds(o.getSeconds()),r.setMilliseconds(o.getMilliseconds())),r},t.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},t.setCurrentTime=function(e,a){"string"==typeof e?t.currentTime=t.strToDateTime(e):t.isValidDate(e)?t.currentTime=e:e||a||!C.allowBlank||C.inline?t.currentTime=t.now():t.currentTime=null,A.trigger("xchange.xdsoft")},t.empty=function(){t.currentTime=null},t.getCurrentTime=function(){return t.currentTime},t.nextMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a,o=t.currentTime.getMonth()+1;return 12===o&&(t.currentTime.setFullYear(t.currentTime.getFullYear()+1),o=0),a=t.currentTime.getFullYear(),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),o+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(o),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(A,P.currentTime,A.data("input")),a!==t.currentTime.getFullYear()&&e.isFunction(C.onChangeYear)&&C.onChangeYear.call(A,P.currentTime,A.data("input")),A.trigger("xchange.xdsoft"),o},t.prevMonth=function(){void 0!==t.currentTime&&null!==t.currentTime||(t.currentTime=t.now());var a=t.currentTime.getMonth()-1;return-1===a&&(t.currentTime.setFullYear(t.currentTime.getFullYear()-1),a=11),t.currentTime.setDate(Math.min(new Date(t.currentTime.getFullYear(),a+1,0).getDate(),t.currentTime.getDate())),t.currentTime.setMonth(a),C.onChangeMonth&&e.isFunction(C.onChangeMonth)&&C.onChangeMonth.call(A,P.currentTime,A.data("input")),A.trigger("xchange.xdsoft"),a},t.getWeekOfYear=function(t){if(C.onGetWeekOfYear&&e.isFunction(C.onGetWeekOfYear)){var a=C.onGetWeekOfYear.call(A,t);if(void 0!==a)return a}var o=new Date(t.getFullYear(),0,1);return 4!==o.getDay()&&o.setMonth(0,1+(4-o.getDay()+7)%7),Math.ceil(((t-o)/864e5+o.getDay()+1)/7)},t.strToDateTime=function(e){var o,r,n=[];return e&&e instanceof Date&&t.isValidDate(e)?e:((n=/^([+-]{1})(.*)$/.exec(e))&&(n[2]=a.parseDate(n[2],C.formatDate)),n&&n[2]?(o=n[2].getTime()-6e4*n[2].getTimezoneOffset(),r=new Date(t.now(!0).getTime()+parseInt(n[1]+"1",10)*o)):r=e?a.parseDate(e,C.format):t.now(),t.isValidDate(r)||(r=t.now()),r)},t.strToDate=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var o=e?a.parseDate(e,C.formatDate):t.now(!0);return t.isValidDate(o)||(o=t.now(!0)),o},t.strtotime=function(e){if(e&&e instanceof Date&&t.isValidDate(e))return e;var o=e?a.parseDate(e,C.formatTime):t.now(!0);return t.isValidDate(o)||(o=t.now(!0)),o},t.str=function(){var e=C.format;return C.yearOffset&&(e=(e=e.replace("Y",t.currentTime.getFullYear()+C.yearOffset)).replace("y",String(t.currentTime.getFullYear()+C.yearOffset).substring(2,4))),a.formatDate(t.currentTime,e)},t.currentTime=this.now()},E.on("touchend click",function(e){e.preventDefault(),A.data("changed",!0),P.setCurrentTime(X()),t.val(P.str()),A.trigger("close.xdsoft")}),J.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){A.data("changed",!0),P.setCurrentTime(0,!0),A.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e,a,o=P.getCurrentTime();o=new Date(o.getFullYear(),o.getMonth(),o.getDate()),e=P.strToDate(C.minDate),o<(e=new Date(e.getFullYear(),e.getMonth(),e.getDate()))||(a=P.strToDate(C.maxDate),o>(a=new Date(a.getFullYear(),a.getMonth(),a.getDate()))||(t.val(P.str()),t.trigger("change"),A.trigger("close.xdsoft")))}),J.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,o=!1;!function e(r){t.hasClass(C.next)?P.nextMonth():t.hasClass(C.prev)&&P.prevMonth(),C.monthChangeSpinner&&(o||(a=setTimeout(e,r||100)))}(500),e([C.ownerDocument.body,C.contentWindow]).on("touchend mouseup.xdsoft",function t(){clearTimeout(a),o=!0,e([C.ownerDocument.body,C.contentWindow]).off("touchend mouseup.xdsoft",t)})}),I.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var t=e(this),a=0,o=!1,r=110;!function e(n){var i=N[0].clientHeight,s=L[0].offsetHeight,d=Math.abs(parseInt(L.css("marginTop"),10));t.hasClass(C.next)&&s-i-C.timeHeightInTimePicker>=d?L.css("marginTop","-"+(d+C.timeHeightInTimePicker)+"px"):t.hasClass(C.prev)&&d-C.timeHeightInTimePicker>=0&&L.css("marginTop","-"+(d-C.timeHeightInTimePicker)+"px"),N.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(L[0].style.marginTop,10)/(s-i))]),r=r>10?10:r-10,o||(a=setTimeout(e,n||r))}(500),e([C.ownerDocument.body,C.contentWindow]).on("touchend mouseup.xdsoft",function t(){clearTimeout(a),o=!0,e([C.ownerDocument.body,C.contentWindow]).off("touchend mouseup.xdsoft",t)})}),n=0,A.on("xchange.xdsoft",function(i){clearTimeout(n),n=setTimeout(function(){void 0!==P.currentTime&&null!==P.currentTime||(P.currentTime=P.now());for(var n,i,s,d,u,l,f,c,m,h,g="",p=new Date(P.currentTime.getFullYear(),P.currentTime.getMonth(),1,12,0,0),D=0,v=P.now(),y=!1,k=!1,x=!1,b=!1,T=[],S=!0,O="";p.getDay()!==C.dayOfWeekStart;)p.setDate(p.getDate()-1);for(g+="",C.weeks&&(g+=""),n=0;n<7;n+=1)g+="";for(g+="",g+="",!1!==C.maxDate&&(y=P.strToDate(C.maxDate),y=new Date(y.getFullYear(),y.getMonth(),y.getDate(),23,59,59,999)),!1!==C.minDate&&(k=P.strToDate(C.minDate),k=new Date(k.getFullYear(),k.getMonth(),k.getDate())),!1!==C.minDateTime&&(x=P.strToDate(C.minDateTime),x=new Date(x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds())),!1!==C.maxDateTime&&(b=P.strToDate(C.maxDateTime),b=new Date(b.getFullYear(),b.getMonth(),b.getDate(),b.getHours(),b.getMinutes(),b.getSeconds())),!1!==b&&(h=31*(12*b.getFullYear()+b.getMonth())+b.getDate());D0&&-1===C.allowDates.indexOf(a.formatDate(p,C.formatDate))&&T.push("xdsoft_disabled");var M=31*(12*p.getFullYear()+p.getMonth())+p.getDate();(!1!==y&&p>y||!1!==x&&ph||f&&!1===f[0])&&T.push("xdsoft_disabled"),-1!==C.disabledDates.indexOf(a.formatDate(p,C.formatDate))&&T.push("xdsoft_disabled"),-1!==C.disabledWeekDays.indexOf(s)&&T.push("xdsoft_disabled"),t.is("[disabled]")&&T.push("xdsoft_disabled"),f&&""!==f[1]&&T.push(f[1]),P.currentTime.getMonth()!==F&&T.push("xdsoft_other_month"),(C.defaultSelect||A.data("changed"))&&a.formatDate(P.currentTime,C.formatDate)===a.formatDate(p,C.formatDate)&&T.push("xdsoft_current"),a.formatDate(v,C.formatDate)===a.formatDate(p,C.formatDate)&&T.push("xdsoft_today"),0!==p.getDay()&&6!==p.getDay()&&-1===C.weekends.indexOf(a.formatDate(p,C.formatDate))||T.push("xdsoft_weekend"),void 0!==C.highlightedDates[a.formatDate(p,C.formatDate)]&&(i=C.highlightedDates[a.formatDate(p,C.formatDate)],T.push(void 0===i.style?"xdsoft_highlighted_default":i.style),m=void 0===i.desc?"":i.desc),C.beforeShowDay&&e.isFunction(C.beforeShowDay)&&T.push(C.beforeShowDay(p)),S&&(g+="",S=!1,C.weeks&&(g+="")),g+='",p.getDay()===C.dayOfWeekStartPrev&&(g+="",S=!0),p.setDate(d+1)}g+="
    "+C.i18n[r].dayOfWeekShort[(n+C.dayOfWeekStart)%7]+"
    "+l+"
    '+d+"
    ",z.html(g),J.find(".xdsoft_label span").eq(0).text(C.i18n[r].months[P.currentTime.getMonth()]),J.find(".xdsoft_label span").eq(1).text(P.currentTime.getFullYear()+C.yearOffset),O="",F="";var w=0;if(!1!==C.minTime){var W=P.strtotime(C.minTime);w=60*W.getHours()+W.getMinutes()}var _=1440;if(!1!==C.maxTime){W=P.strtotime(C.maxTime);_=60*W.getHours()+W.getMinutes()}if(!1!==C.minDateTime){W=P.strToDateTime(C.minDateTime);if(a.formatDate(P.currentTime,C.formatDate)===a.formatDate(W,C.formatDate))(F=60*W.getHours()+W.getMinutes())>w&&(w=F)}if(!1!==C.maxDateTime){var F;W=P.strToDateTime(C.maxDateTime);if(a.formatDate(P.currentTime,C.formatDate)===a.formatDate(W,C.formatDate))(F=60*W.getHours()+W.getMinutes())<_&&(_=F)}if(c=function(o,r){var n,i=P.now(),s=C.allowTimes&&e.isArray(C.allowTimes)&&C.allowTimes.length;i.setHours(o),o=parseInt(i.getHours(),10),i.setMinutes(r),r=parseInt(i.getMinutes(),10),T=[];var d=60*o+r;(t.is("[disabled]")||d>=_||d59||n.getMinutes()===parseInt(r,10))&&(C.defaultSelect||A.data("changed")?T.push("xdsoft_current"):C.initTime&&T.push("xdsoft_init_time")),parseInt(v.getHours(),10)===parseInt(o,10)&&parseInt(v.getMinutes(),10)===parseInt(r,10)&&T.push("xdsoft_today"),O+='
    '+a.formatDate(i,C.formatTime)+"
    "},C.allowTimes&&e.isArray(C.allowTimes)&&C.allowTimes.length)for(D=0;D=_||c((D<10?"0":"")+D,F=(n<10?"0":"")+n))}for(L.html(O),o="",D=parseInt(C.yearStart,10);D<=parseInt(C.yearEnd,10);D+=1)o+='
    '+(D+C.yearOffset)+"
    ";for(V.children().eq(0).html(o),D=parseInt(C.monthStart,10),o="";D<=parseInt(C.monthEnd,10);D+=1)o+='
    '+C.i18n[r].months[D]+"
    ";R.children().eq(0).html(o),e(A).trigger("generate.xdsoft")},10),i.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a,o;C.timepicker&&(L.find(".xdsoft_current").length?e=".xdsoft_current":L.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=N[0].clientHeight,(a=L[0].offsetHeight)-t<(o=L.find(e).index()*C.timeHeightInTimePicker+1)&&(o=a-t),N.trigger("scroll_element.xdsoft_scroller",[parseInt(o,10)/(a-t)])):N.trigger("scroll_element.xdsoft_scroller",[0]))}),i=0,z.on("touchend click.xdsoft","td",function(a){a.stopPropagation(),i+=1;var o=e(this),r=P.currentTime;if(null==r&&(P.currentTime=P.now(),r=P.currentTime),o.hasClass("xdsoft_disabled"))return!1;r.setDate(1),r.setFullYear(o.data("year")),r.setMonth(o.data("month")),r.setDate(o.data("date")),A.trigger("select.xdsoft",[r]),t.val(P.str()),C.onSelectDate&&e.isFunction(C.onSelectDate)&&C.onSelectDate.call(A,P.currentTime,A.data("input"),a),A.data("changed",!0),A.trigger("xchange.xdsoft"),A.trigger("changedatetime.xdsoft"),(i>1||!0===C.closeOnDateSelect||!1===C.closeOnDateSelect&&!C.timepicker)&&!C.inline&&A.trigger("close.xdsoft"),setTimeout(function(){i=0},200)}),L.on("touchstart","div",function(e){this.touchMoved=!1}).on("touchmove","div",G).on("touchend click.xdsoft","div",function(t){if(!this.touchMoved){t.stopPropagation();var a=e(this),o=P.currentTime;if(null==o&&(P.currentTime=P.now(),o=P.currentTime),a.hasClass("xdsoft_disabled"))return!1;o.setHours(a.data("hour")),o.setMinutes(a.data("minute")),A.trigger("select.xdsoft",[o]),A.data("input").val(P.str()),C.onSelectTime&&e.isFunction(C.onSelectTime)&&C.onSelectTime.call(A,P.currentTime,A.data("input"),t),A.data("changed",!0),A.trigger("xchange.xdsoft"),A.trigger("changedatetime.xdsoft"),!0!==C.inline&&!0===C.closeOnTimeSelect&&A.trigger("close.xdsoft")}}),j.on("mousewheel.xdsoft",function(e){return!C.scrollMonth||(e.deltaY<0?P.nextMonth():P.prevMonth(),!1)}),t.on("mousewheel.xdsoft",function(e){return!C.scrollInput||(!C.datepicker&&C.timepicker?((s=L.find(".xdsoft_current").length?L.find(".xdsoft_current").eq(0).index():0)+e.deltaY>=0&&s+e.deltaYc+m?(l="bottom",o=c+m-t.top):o-=m):o+A[0].offsetHeight>c+m&&(o=t.top-A[0].offsetHeight+1),o<0&&(o=0),r+a.offsetWidth>u&&(r=u-a.offsetWidth)),i=A[0],Y(i,function(e){if("relative"===C.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return r-=(u-e.offsetWidth)/2,!1}),(f={position:n,left:r,top:"",bottom:""})[l]=o,A.css(f)},A.on("open.xdsoft",function(t){var a=!0;C.onShow&&e.isFunction(C.onShow)&&(a=C.onShow.call(A,P.currentTime,A.data("input"),t)),!1!==a&&(A.show(),d(),e(C.contentWindow).off("resize.xdsoft",d).on("resize.xdsoft",d),C.closeOnWithoutClick&&e([C.ownerDocument.body,C.contentWindow]).on("touchstart mousedown.xdsoft",function t(){A.trigger("close.xdsoft"),e([C.ownerDocument.body,C.contentWindow]).off("touchstart mousedown.xdsoft",t)}))}).on("close.xdsoft",function(t){var a=!0;J.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),C.onClose&&e.isFunction(C.onClose)&&(a=C.onClose.call(A,P.currentTime,A.data("input"),t)),!1===a||C.opened||C.inline||A.hide(),t.stopPropagation()}).on("toggle.xdsoft",function(){A.is(":visible")?A.trigger("close.xdsoft"):A.trigger("open.xdsoft")}).data("input",t),q=0,A.data("xdsoft_datetime",P),A.setOptions(C),P.setCurrentTime(X()),t.data("xdsoft_datetimepicker",A).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){t.is(":disabled")||t.data("xdsoft_datetimepicker").is(":visible")&&C.closeOnInputClick||C.openOnFocus&&(clearTimeout(q),q=setTimeout(function(){t.is(":disabled")||(B=!0,P.setCurrentTime(X(),!0),C.mask&&K(C),A.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(t){var a,o=t.which;return-1!==[p].indexOf(o)&&C.enterLikeTab?(a=e("input:visible,textarea:visible,button:visible,a:visible"),A.trigger("close.xdsoft"),a.eq(a.index(this)+1).focus(),!1):-1!==[T].indexOf(o)?(A.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){A.trigger("close.xdsoft")})},s=function(t){var a=t.data("xdsoft_datetimepicker");a&&(a.data("xdsoft_datetime",null),a.remove(),t.data("xdsoft_datetimepicker",null).off(".xdsoft"),e(C.contentWindow).off("resize.xdsoft"),e([C.contentWindow,C.ownerDocument.body]).off("mousedown.xdsoft touchstart"),t.unmousewheel&&t.unmousewheel())},e(C.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===h&&(F=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===h&&(F=!1)}),this.each(function(){var t,r=e(this).data("xdsoft_datetimepicker");if(r){if("string"===e.type(o))switch(o){case"show":e(this).select().focus(),r.trigger("open.xdsoft");break;case"hide":r.trigger("close.xdsoft");break;case"toggle":r.trigger("toggle.xdsoft");break;case"destroy":s(e(this));break;case"reset":this.value=this.defaultValue,this.value&&r.data("xdsoft_datetime").isValidDate(a.parseDate(this.value,C.format))||r.data("changed",!1),r.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":r.data("input").trigger("blur.xdsoft");break;default:r[o]&&e.isFunction(r[o])&&(d=r[o](n))}else r.setOptions(o);return 0}"string"!==e.type(o)&&(!C.lazyInit||C.open||C.inline?i(e(this)):(t=e(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(P),P=setTimeout(function(){t.data("xdsoft_datetimepicker")||i(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),d},e.fn.datetimepicker.defaults=t};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){var t,a,o=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],r="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],n=Array.prototype.slice;if(e.event.fixHooks)for(var i=o.length;i;)e.event.fixHooks[o[--i]]=e.event.mouseHooks;var s=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=r.length;t;)this.addEventListener(r[--t],d,!1);else this.onmousewheel=d;e.data(this,"mousewheel-line-height",s.getLineHeight(this)),e.data(this,"mousewheel-page-height",s.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=r.length;t;)this.removeEventListener(r[--t],d,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var a=e(t),o=a["offsetParent"in e.fn?"offsetParent":"parent"]();return o.length||(o=e("body")),parseInt(o.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function d(o){var r,i=o||window.event,d=n.call(arguments,1),f=0,c=0,m=0,h=0,g=0;if((o=e.event.fix(i)).type="mousewheel","detail"in i&&(m=-1*i.detail),"wheelDelta"in i&&(m=i.wheelDelta),"wheelDeltaY"in i&&(m=i.wheelDeltaY),"wheelDeltaX"in i&&(c=-1*i.wheelDeltaX),"axis"in i&&i.axis===i.HORIZONTAL_AXIS&&(c=-1*m,m=0),f=0===m?c:m,"deltaY"in i&&(f=m=-1*i.deltaY),"deltaX"in i&&(c=i.deltaX,0===m&&(f=-1*c)),0!==m||0!==c){if(1===i.deltaMode){var p=e.data(this,"mousewheel-line-height");f*=p,m*=p,c*=p}else if(2===i.deltaMode){var D=e.data(this,"mousewheel-page-height");f*=D,m*=D,c*=D}if(r=Math.max(Math.abs(m),Math.abs(c)),(!a||r=1?"floor":"ceil"](f/a),c=Math[c>=1?"floor":"ceil"](c/a),m=Math[m>=1?"floor":"ceil"](m/a),s.settings.normalizeOffset&&this.getBoundingClientRect){var v=this.getBoundingClientRect();h=o.clientX-v.left,g=o.clientY-v.top}return o.deltaX=c,o.deltaY=m,o.deltaFactor=a,o.offsetX=h,o.offsetY=g,o.deltaMode=0,d.unshift(o,f,c,m),t&&clearTimeout(t),t=setTimeout(u,200),(e.event.dispatch||e.event.handle).apply(this,d)}}function u(){a=null}function l(e,t){return s.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}); jQuery(document) .ready(function(){ dtp_init(); }) .ajaxComplete(function(){ dtp_init(); }); function dtp_init(){ var dtselector=jQuery(datepickeropts.selector); if(dtselector.length===0){ return; } jQuery.datetimepicker.setDateFormatter("moment"); if(datepickeropts.preventkeyboard=="on"){ jQuery(datepickeropts.selector).focus(function(){ jQuery(this).blur(); }); } datepickeropts.offset=parseInt(datepickeropts.offset); var logic=function(currentDateTime, $input){ var mtime=""; $input.datetimepicker({ value: $input.val() }); if(datepickeropts.minDate==="on"){ var now=moment(datepickeropts.now, datepickeropts.format).toDate(); if(currentDateTime.toDateString()===now.toDateString()){ var futureh=new Date(now.getTime() + datepickeropts.offset * 60000); var mint=datepickeropts.minTime.split(":"); if(parseInt(futureh.getHours()) > parseInt(mint[0])){ mtime=futureh.getHours() + ":" + futureh.getMinutes(); this.setOptions({ minTime: mtime }); }else{ mtime=datepickeropts.minTime; this.setOptions({ minTime: mtime }); }}else{ mtime=datepickeropts.minTime; this.setOptions({ minTime: mtime }); }} }; if(datepickeropts.timepicker==="on" && datepickeropts.allowed_times!=="" ){ logic=function(currentDateTime, $input){ var mtime=""; $input.datetimepicker({ value: $input.val() }); if(datepickeropts.minDate==="on"){ var now=moment(datepickeropts.now, datepickeropts.format).toDate(); if(currentDateTime.toDateString()===now.toDateString()){ var futureh=new Date(now.getTime() + datepickeropts.offset * 60000); mtime=futureh.getHours() + ":" + futureh.getMinutes(); this.setOptions({ minTime: mtime }); }else{ mtime=datepickeropts.minTime; this.setOptions({ minTime: mtime }); }} var atimes=""; if(currentDateTime.getDay()==0&&datepickeropts.sunday_times!==""){ atimes=datepickeropts.sunday_times; this.setOptions({ allowTimes: atimes }); }else if(currentDateTime.getDay()==1 && datepickeropts.monday_times!=="" ){ atimes=datepickeropts.monday_times; this.setOptions({ allowTimes: atimes }); }else if(currentDateTime.getDay()==2 && datepickeropts.tuesday_times!=="" ){ atimes=datepickeropts.tuesday_times; this.setOptions({ allowTimes: atimes }); }else if(currentDateTime.getDay()==3 && datepickeropts.wednesday_times!=="" ){ atimes=datepickeropts.wednesday_times; this.setOptions({ allowTimes: atimes }); }else if(currentDateTime.getDay()==4 && datepickeropts.thursday_times!=="" ){ atimes=datepickeropts.thursday_times; this.setOptions({ allowTimes: atimes }); }else if(currentDateTime.getDay()==5 && datepickeropts.friday_times!=="" ){ atimes=datepickeropts.friday_times; this.setOptions({ allowTimes: atimes }); }else if(currentDateTime.getDay()==6 && datepickeropts.saturday_times!=="" ){ atimes=datepickeropts.saturday_times; this.setOptions({ allowTimes: atimes }); }else{ atimes=datepickeropts.allowed_times; this.setOptions({ allowTimes: atimes }); } var minDateTime=new Date(currentDateTime.getTime()); var maxDateTime=new Date(currentDateTime.getTime()); var timeex=atimes[0].split(":"); minDateTime.setHours(parseInt(timeex[0]), parseInt(timeex[1])); if(currentDateTime < minDateTime){ formattedDate=moment(minDateTime).format(datepickeropts.format); $input.datetimepicker({ value: formattedDate }); } timeex=atimes[atimes.length - 1].split(":"); maxDateTime.setHours(parseInt(timeex[0]), parseInt(timeex[1])); if(currentDateTime > maxDateTime){ formattedDate=moment(maxDateTime).format(datepickeropts.format); $input.datetimepicker({ value: formattedDate }); }};} var opts={ i18n: datepickeropts.i18n, value: datepickeropts.value, format: datepickeropts.format, formatDate: datepickeropts.dateformat, formatTime: datepickeropts.hourformat, inline: datepickeropts.inline=="on", theme: datepickeropts.theme, timepicker: datepickeropts.timepicker=="on", datepicker: datepickeropts.datepicker=="on", step: parseInt(datepickeropts.step), timepickerScrollbar: true, dayOfWeekStart: parseInt(datepickeropts.dayOfWeekStart), onChangeDateTime: logic, onShow: logic, validateOnBlur: false }; if(datepickeropts.minTime!==""){ opts.minTime=datepickeropts.minTime; } if(datepickeropts.maxTime!==""){ opts.maxTime=datepickeropts.maxTime; } if(datepickeropts.minDate==="on"){ if(datepickeropts.value!==""){ opts.minDate=datepickeropts.value; }else{ opts.minDate=0; }} if(datepickeropts.max_date!==""){ opts.maxDate=datepickeropts.max_date; opts.yearEnd=parseInt(datepickeropts.max_year); } if(datepickeropts.min_date!==""){ opts.minDate=datepickeropts.min_date; opts.yearStart=parseInt(datepickeropts.min_year); } if(datepickeropts.disabled_days!==""){ opts.disabledWeekDays=datepickeropts.disabled_days; } if(datepickeropts.disabled_calendar_days!==""){ opts.disabledDates=datepickeropts.disabled_calendar_days; } if(datepickeropts.allowed_times!==""){ opts.allowTimes=datepickeropts.allowed_times; } jQuery(datepickeropts.selector) .datetimepicker(opts) .attr("type", "text"); jQuery.datetimepicker.setLocale(datepickeropts.locale); }; var cf7signature_resized=0; var wpcf7cf_timeout; var wpcf7cf_show_animation={ "height": "show", "marginTop": "show", "marginBottom": "show", "paddingTop": "show", "paddingBottom": "show" }; var wpcf7cf_hide_animation={ "height": "hide", "marginTop": "hide", "marginBottom": "hide", "paddingTop": "hide", "paddingBottom": "hide" }; var wpcf7cf_show_step_animation={ "width": "show", "marginLeft": "show", "marginRight": "show", "paddingRight": "show", "paddingLeft": "show" }; var wpcf7cf_hide_step_animation={ "width": "hide", "marginLeft": "hide", "marginRight": "hide", "paddingRight": "hide", "paddingLeft": "hide" }; var wpcf7cf_change_events='input.wpcf7cf paste.wpcf7cf change.wpcf7cf click.wpcf7cf propertychange.wpcf7cf'; var wpcf7cf_forms=[]; function Wpcf7cfForm($form){ var options_element=$form.find('input[name="_wpcf7cf_options"]').eq(0); if(!options_element.length||!options_element.val()){ return false; } var form=this; var form_options=JSON.parse(options_element.val()); form.$form=$form; form.$hidden_group_fields=$form.find('[name="_wpcf7cf_hidden_group_fields"]'); form.$hidden_groups=$form.find('[name="_wpcf7cf_hidden_groups"]'); form.$visible_groups=$form.find('[name="_wpcf7cf_visible_groups"]'); form.$repeaters=$form.find('[name="_wpcf7cf_repeaters"]'); form.unit_tag=$form.closest('.wpcf7').attr('id'); form.conditions=form_options['conditions']; form.settings=form_options['settings']; form.$groups=jQuery(); form.repeaters=[]; form.multistep=null; form.fields=[]; form.settings.animation_intime=parseInt(form.settings.animation_intime); form.settings.animation_outtime=parseInt(form.settings.animation_outtime); if(form.settings.animation==='no'){ form.settings.animation_intime=0; form.settings.animation_outtime=0; } form.updateGroups(); form.updateEventListeners(); form.displayFields(); form.$form.on('reset', form, function(e){ var form=e.data; setTimeout(function(){ form.displayFields(); },200); }); } Wpcf7cfForm.prototype.displayFields=function(){ var form=this; var unit_tag=this.unit_tag; var wpcf7cf_conditions=this.conditions; var wpcf7cf_settings=this.settings; if(cf7signature_resized===0&&typeof signatures!=='undefined'&&signatures.constructor===Array&&signatures.length > 0){ for (var i=0; i < signatures.length; i++){ if(signatures[i].canvas.width===0){ var $sig_canvas=jQuery(".wpcf7-form-control-signature-body>canvas"); var $sig_wrap=jQuery(".wpcf7-form-control-signature-wrap"); $sig_canvas.eq(i).attr('width', $sig_wrap.width()); $sig_canvas.eq(i).attr('height', $sig_wrap.height()); cf7signature_resized=1; }} } form.$groups.addClass('wpcf7cf-hidden'); for (var i=0; i < wpcf7cf_conditions.length; i++){ var condition=wpcf7cf_conditions[i]; if(!('and_rules' in condition)){ condition.and_rules=[{'if_field':condition.if_field,'if_value':condition.if_value,'operator':condition.operator}]; } var show_group=wpcf7cf.should_group_be_shown(condition, form.$form); if(show_group){ jQuery('[data-id='+condition.then_field+']',form.$form).eq(0).removeClass('wpcf7cf-hidden'); }} var animation_intime=wpcf7cf_settings.animation_intime; var animation_outtime=wpcf7cf_settings.animation_outtime; form.$groups.each(function (index){ $group=jQuery(this); if($group.is(':animated')) $group.finish(); if($group.css('display')==='none'&&!$group.hasClass('wpcf7cf-hidden')){ if($group.prop('tagName')==='SPAN'){ $group.show().trigger('wpcf7cf_show_group'); }else{ $group.animate(wpcf7cf_show_animation, animation_intime).trigger('wpcf7cf_show_group'); }}else if($group.css('display')!=='none'&&$group.hasClass('wpcf7cf-hidden')){ if($group.attr('data-clear_on_hide')!==undefined){ $inputs=jQuery(':input', $group).not(':button, :submit, :reset, :hidden'); $inputs.prop('checked', false).prop('selected', false).prop('selectedIndex', 0); $inputs.not('[type=checkbox],[type=radio],select').val(''); $inputs.change(); } if($group.prop('tagName')==='SPAN'){ $group.hide().trigger('wpcf7cf_hide_group'); }else{ $group.animate(wpcf7cf_hide_animation, animation_outtime).trigger('wpcf7cf_hide_group'); }} }); form.updateHiddenFields(); }; Wpcf7cfForm.prototype.updateHiddenFields=function(){ var form=this; var hidden_fields=[]; var hidden_groups=[]; var visible_groups=[]; form.$groups.each(function (){ var $this=jQuery(this); if($this.hasClass('wpcf7cf-hidden')){ hidden_groups.push($this.data('id')); $this.find('input,select,textarea').each(function (){ hidden_fields.push(jQuery(this).attr('name')); }); }else{ visible_groups.push($this.data('id')); }}); form.hidden_fields=hidden_fields; form.hidden_groups=hidden_groups; form.visible_groups=visible_groups; form.$hidden_group_fields.val(JSON.stringify(hidden_fields)); form.$hidden_groups.val(JSON.stringify(hidden_groups)); form.$visible_groups.val(JSON.stringify(visible_groups)); return true; }; Wpcf7cfForm.prototype.updateGroups=function(){ var form=this; form.$groups=form.$form.find('[data-class="wpcf7cf_group"]'); form.$subgroups=form.$form.find('.wpcf7cf_repeater_sub [data-class="wpcf7cf_group"]'); form.$subgroups.each(function(){ $group=jQuery(this); var index=$group.data('repeater_index'); var group_name_orig=$group.data('orig_id'); form.conditions.forEach(function (condition){ if(condition.then_field!==group_name_orig) return; var and_rules=[]; condition.and_rules.forEach(function(entry){ and_rules.push({if_field:entry.if_field+'__'+index, operator: entry.operator, if_value:entry.if_value}); }); form.conditions.push({ then_field:condition.then_field+'__'+index, and_rules: and_rules }); }); }); }; Wpcf7cfForm.prototype.updateEventListeners=function(){ var form=this; jQuery('input, select, textarea, button',form.$form).not('.wpcf7cf_add, .wpcf7cf_remove').off(wpcf7cf_change_events).on(wpcf7cf_change_events,form, function(e){ var form=e.data; clearTimeout(wpcf7cf_timeout); wpcf7cf_timeout=setTimeout(function(){ form.displayFields(); }, 100); }); }; var wpcf7cf={ initForm:function($form){ wpcf7cf_forms.push(new Wpcf7cfForm($form)); }, should_group_be_shown:function(condition, $current_form){ var $=jQuery; var show_group=true; for (var and_rule_i=0; and_rule_i < condition.and_rules.length; and_rule_i++){ var condition_ok=false; var condition_and_rule=condition.and_rules[and_rule_i]; var $field=jQuery('[name="' + condition_and_rule.if_field + '"], [name="' + condition_and_rule.if_field + '[]"], [data-original-name="' + condition_and_rule.if_field + '"], [data-original-name="' + condition_and_rule.if_field + '[]"]',$current_form); var if_val=condition_and_rule.if_value; var if_val_as_number=isFinite(parsedval=parseFloat(if_val)) ? parsedval:0; var operator=condition_and_rule.operator; var regex_patt=new RegExp(if_val, 'i'); if($field.length===1){ if($field.is('select')){ if(operator==='not equals'){ condition_ok=true; } $field.find('option:selected').each(function (){ var $option=jQuery(this); option_val=$option.val() if(operator==='equals'&&option_val===if_val || operator==='equals (regex)'&®ex_patt.test($option.val()) ){ condition_ok=true; }else if(operator==='not equals'&&option_val===if_val || operator==='not equals (regex)'&&!regex_patt.test($option.val()) ){ condition_ok=false; return false; }}); show_group=show_group&&condition_ok; } var field_val=$field.val(); var field_val_as_number=isFinite(parsedval=parseFloat(field_val)) ? parsedval:0; if($field.attr('type')==='checkbox'){ var field_is_checked=$field.is(':checked'); if(operator==='equals'&&field_is_checked&&field_val===if_val || operator==='not equals'&&!field_is_checked || operator==='is empty'&&!field_is_checked || operator==='not empty'&&field_is_checked || operator==='>'&&field_is_checked&&field_val_as_number > if_val_as_number || operator==='<'&&field_is_checked&&field_val_as_number < if_val_as_number || operator==='≥'&&field_is_checked&&field_val_as_number >=if_val_as_number || operator==='≤'&&field_is_checked&&field_val_as_number <=if_val_as_number || operator==='equals (regex)'&&field_is_checked&®ex_patt.test(field_val) || operator==='not equals (regex)'&&!field_is_checked ){ condition_ok=true; }}else if(operator==='equals'&&field_val===if_val || operator==='not equals'&&field_val!==if_val || operator==='equals (regex)'&®ex_patt.test(field_val) || operator==='not equals (regex)'&&!regex_patt.test(field_val) || operator==='>'&&field_val_as_number > if_val_as_number || operator==='<'&&field_val_as_number < if_val_as_number || operator==='≥'&&field_val_as_number >=if_val_as_number || operator==='≤'&&field_val_as_number <=if_val_as_number || operator==='is empty'&&field_val==='' || operator==='not empty'&&field_val!=='' || ( operator==='function' && typeof window[if_val]=='function' && window[if_val]($field) ) ){ condition_ok=true; }}else if($field.length > 1){ var all_values=[]; var checked_values=[]; $field.each(function (){ all_values.push(jQuery(this).val()); if(jQuery(this).is(':checked')){ checked_values.push(jQuery(this).val()); }}); var checked_value_index=jQuery.inArray(if_val, checked_values); var value_index=jQuery.inArray(if_val, all_values); if((operator==='is empty'&&checked_values.length===0) || (operator==='not empty'&&checked_values.length > 0) ){ condition_ok=true; } for (var ind=0; ind < checked_values.length; ind++){ var checked_val=checked_values[ind]; var checked_val_as_number=isFinite(parsedval=parseFloat(checked_val)) ? parsedval:0; if((operator==='equals'&&checked_val===if_val) || (operator==='not equals'&&checked_val!==if_val) || (operator==='equals (regex)'&®ex_patt.test(checked_val)) || (operator==='not equals (regex)'&&!regex_patt.test(checked_val)) || (operator==='>'&&checked_val_as_number > if_val_as_number) || (operator==='<'&&checked_val_as_number < if_val_as_number) || (operator==='≥'&&checked_val_as_number >=if_val_as_number) || (operator==='≤'&&checked_val_as_number <=if_val_as_number) ){ condition_ok=true; }} } show_group=show_group&&condition_ok; } return show_group; }}; jQuery('.wpcf7-form').each(function(){ wpcf7cf_forms.push(new Wpcf7cfForm(jQuery(this))); }); jQuery('document').ready(function(){ wpcf7cf_forms.forEach(function(f){ f.displayFields(); }); }); var old_wpcf7ExclusiveCheckbox=jQuery.fn.wpcf7ExclusiveCheckbox; jQuery.fn.wpcf7ExclusiveCheckbox=function(){ return this.find('input:checkbox').click(function(){ var name=jQuery(this).attr('name'); jQuery(this).closest('form').find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false).eq(0).change(); }); }; !function(a,b){"use strict";function c(){if(!e){e=!0;var a,c,d,f,g=-1!==navigator.appVersion.indexOf("MSIE 10"),h=!!navigator.userAgent.match(/Trident.*rv:11\./),i=b.querySelectorAll("iframe.wp-embedded-content");for(c=0;c1e3)g=1e3;else if(~~g<200)g=200;f.height=g}if("link"===d.message)if(h=b.createElement("a"),i=b.createElement("a"),h.href=f.getAttribute("src"),i.href=d.value,i.host===h.host)if(b.activeElement===f)a.top.location.href=d.value}else;}},d)a.addEventListener("message",a.wp.receiveEmbedMessage,!1),b.addEventListener("DOMContentLoaded",c,!1),a.addEventListener("load",c,!1)}(window,document); !function($){$.fn.extend({ajaxyLiveSearch:function(e,s){return e=e&&"object"==typeof e?$.extend({},$.ajaxyLiveSearch.defaults,e):$.ajaxyLiveSearch.defaults,this.is("input")?void this.each(function(){new $.ajaxyLiveSearch.load(this,e,s)}):void 0}}),$.ajaxyLiveSearch={element:null,timeout:null,options:null,load:function(e,s){this.element=e,this.timeout=null,this.options=s,""==$(e).val()&&$(e).val(s.text),$(e).attr("autocomplete","off"),0==$("#sf_sb").length&&$("body").append(''),$.ajaxyLiveSearch.loadEvents(this)},loadResults:function(object){if(options=object.options,elem=object.element,window.sf_lastElement=elem,""!=jQuery(elem).val()){jQuery("body").data("sf_results",null);var loading='
  • ';jQuery("#sf_val").html("
      "+loading+"
    ");var pos=this.bounds(elem,options);if(!pos)return jQuery("#sf_sb").hide(),!1;Math.ceil(pos.left)+parseInt(options.width,10)>jQuery(window).width()&&jQuery("#sf_sb").css("width",jQuery(window).width()-pos.left-20),jQuery("#sf_sb").css(1==options.rtl?{top:pos.bottom,left:pos.right}:{top:pos.bottom,left:pos.left}),jQuery("#sf_sb").show();var data={action:"ajaxy_sf",sf_value:jQuery(elem).val(),search:options.search};if(options.ajaxData&&(data=window[options.ajaxData](data)),options.search){var mresults=options.search.split(","),results=[],m="",s=0,c=[];for(var kindex in mresults){var dm=mresults[kindex].split(":");2==dm.length?0==dm[1].indexOf(jQuery(elem).val())&&(results[results.length]=mresults[kindex]):1==dm.length&&0==mresults[kindex].indexOf(jQuery(elem).val())&&(results[results.length]=mresults[kindex])}c=$.ajaxyLiveSearch.htmlArrayResults(results),m+=c[0],s+=c[1];var sf_selected="";0==s&&(sf_selected=" sf_selected"),m+='
  • {total} Results Found
  • ',m=m.replace(/{search_value_escaped}/g,jQuery(elem).val()),m=m.replace(/{search_url_escaped}/g,options.searchUrl.replace("%s",encodeURI(jQuery(elem).val()))),m=m.replace(/{search_value}/g,jQuery(elem).val()),m=m.replace(/{total}/g,s),jQuery("body").data("sf_results",results),jQuery("#sf_val").html(s>0?"
      "+m+"
    ":"
      "+m+"
    "),$.ajaxyLiveSearch.loadLiveEvents(object),jQuery("#sf_sb").show()}else jQuery.post(options.ajaxUrl,data,function(resp){var results=eval("("+resp+")"),m="",s=0;for(var mindex in results){var c=[];for(var kindex in results[mindex])c=$.ajaxyLiveSearch.htmlResults(results[mindex][kindex],mindex,kindex),m+=c[0],s+=c[1]}var sf_selected="";0==s&&(sf_selected=" sf_selected"),options.callback||(m+='
  • '+sf_templates+"
  • "),m=m.replace(/{search_value_escaped}/g,jQuery(elem).val()),m=m.replace(/{search_url_escaped}/g,options.searchUrl.replace("%s",encodeURI(jQuery(elem).val()))),m=m.replace(/{search_value}/g,jQuery(elem).val()),m=m.replace(/{total}/g,s),jQuery("body").data("sf_results",results),jQuery("#sf_val").html(s>0?'
      '+m+"
    ":'
      '+m+"
    "),$.ajaxyLiveSearch.loadLiveEvents(object),jQuery("#sf_sb").show()})}else jQuery("#sf_sb").hide()},bounds:function(e,s){var t=jQuery(e).offset();return t?{top:t.top,left:t.left+s.leftOffset,bottom:t.top+jQuery(e).innerHeight()+s.topOffset,right:t.left-jQuery("#sf_sb").innerWidth()+jQuery(e).innerWidth()}:void 0},htmlResults:function(e,s,t){var l="",a=0;if("undefined"!=typeof e&&e.all.length>0){l+='
  • '+e.title+'
    • ';for(var r=0;r'+$.ajaxyLiveSearch.replaceResults(e.all[r],e.template)+"";l+="
  • "}return new Array(l,a)},htmlArrayResults:function(e){var s="",t=0;if("undefined"!=typeof e&&e.length>0){s+='
    • ';for(var l=0;l"+r+""}s+="
  • "}return new Array(s,t)},replaceResults:function(e,s){for(var t in e)s=s.replace(new RegExp("{"+t+"}","g"),e[t]);return s},loadLiveEvents:function(e){var s={object:e};jQuery("#sf_val li.sf_lnk").mouseover(function(){jQuery(".sf_lnk").each(function(){jQuery(this).attr("class",jQuery(this).attr("class").replace(" sf_selected",""))}),jQuery(this).attr("class",jQuery(this).attr("class")+" sf_selected")}),s.object.options.callback&&jQuery("#sf_val li.sf_lnk").click(function(){try{window[s.object.options.callback](s.object,this)}catch(e){alert(e)}return!1})},loadEvents:function(e){var s={object:e};jQuery(document).click(function(){jQuery("#sf_sb").hide()}),jQuery(window).resize(function(){var e=$.ajaxyLiveSearch.bounds(window.sf_lastElement,s.object.options);e&&jQuery("#sf_sb").css({top:e.bottom,left:e.left})}),jQuery(e.element).keyup(function(e){if("38"!=e.keyCode&&"40"!=e.keyCode&&"13"!=e.keyCode&&"27"!=e.keyCode&&"39"!=e.keyCode&&"37"!=e.keyCode){var t=s.object;null!=t.timeout&&clearTimeout(t.timeout),jQuery(t.element).attr("class",jQuery(t.element).attr("class").replace(" sf_focused","")+" sf_focused");var l={object:s.object};t.timeout=setTimeout(function(){jQuery.ajaxyLiveSearch.loadResults(l.object)},s.object.options.delay)}}),jQuery(window).keydown(function(e){if("none"!=jQuery("#sf_sb").css("display")&&"undefined"!=jQuery("#sf_sb").css("display")&&jQuery("#sf_sb").length>0)if("38"==e.keyCode||"40"==e.keyCode){jQuery.browser.webkit&&jQuery("#sf_sb").focus();var t=!1,l=jQuery("#sf_val li.sf_lnk"),a=!1;e.stopPropagation(),e.preventDefault();for(var r=0;r=0&&0==a?(t=!0,r0&&"38"==e.keyCode&&(jQuery(l[r]).attr("class",jQuery(l[r]).attr("class").replace(" sf_selected","")),jQuery(l[r-1]).attr("class",jQuery(l[r-1]).attr("class")+" sf_selected"),r+=1,a=!0)):jQuery(l[r]).attr("class",jQuery(l[r]).attr("class").replace(" sf_selected",""));0==t&&l.length>0&&jQuery(l[0]).attr("class",jQuery(l[0]).attr("class")+" sf_selected")}else if(27==e.keyCode)jQuery("#sf_sb").hide();else if(13==e.keyCode){var o=jQuery("#sf_val li.sf_selected a").attr("href");return"undefined"!=typeof o&&""!=o?(s.object.options.callback?s.object.options.callback(this):window.location.href=o,!1):(s.object.options.callback?s.object.options.callback(this):null!=s.object.element&&(window.location.href=sf_url.replace("%s",encodeURI(jQuery(s.object).val()))),!1)}}),jQuery(e.element).focus(function(){jQuery(this).val()==s.object.options.text&&(jQuery(this).val(""),jQuery(this).attr("class",jQuery(this).attr("class")+" sf_focused")),s.object.options.expand>0&&jQuery(s.object.element).animate({width:s.object.options.iwidth})}),jQuery(e.element).blur(function(){""==jQuery(this).val()&&(jQuery(this).val(s.object.options.text),jQuery(this).attr("class",jQuery(this).attr("class").replace(/ sf_focused/g,""))),s.object.options.expand>0&&jQuery(s.object.element).animate({width:s.object.options.expand})})}},$.ajaxyLiveSearch.defaults={delay:500,leftOffset:0,topOffset:5,text:"Search For",iwidth:180,width:315,ajaxUrl:"",ajaxData:!1,searchUrl:"",expand:!1,callback:!1,rtl:!0,search:!1}}(jQuery); function vc_js(){vc_toggleBehaviour(),vc_tabsBehaviour(),vc_accordionBehaviour(),vc_teaserGrid(),vc_carouselBehaviour(),vc_slidersBehaviour(),vc_prettyPhoto(),vc_googleplus(),vc_pinterest(),vc_progress_bar(),vc_plugin_flexslider(),vc_google_fonts(),vc_gridBehaviour(),vc_rowBehaviour(),vc_prepareHoverBox(),vc_googleMapsPointer(),vc_ttaActivation(),jQuery(document).trigger("vc_js"),window.setTimeout(vc_waypoints,500)}function getSizeName(){var screen_w=jQuery(window).width();return 1170screen_w?"desktop":768screen_w?"tablet":300screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){"loaded"!==script.readyState&&"complete"!==script.readyState||(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');void 0!==jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT||void 0===YT.Player)return 100<(counter=void 0===counter?0:counter)?void console.warn("Too many attempts to load YouTube api"):void setTimeout(function(){insertYoutubeVideoAsBackground($element,youtubeId,counter++)},100);var $container=$element.prepend('
    ').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight();containerW/containerH<16/9?(iframeW=containerH*(16/9),iframeH=containerH,marginLeft=-Math.round((iframeW-containerW)/2)+"px",marginTop=-Math.round((iframeH-containerH)/2)+"px",iframeW+="px",iframeH+="px"):(iframeW=containerW,iframeH=containerW*(9/16),marginTop=-Math.round((iframeH-containerH)/2)+"px",marginLeft=-Math.round((iframeW-containerW)/2)+"px",iframeW+="px",iframeH+="px"),$element.find(".vc_video-bg iframe").css({maxWidth:"1000%",marginLeft:marginLeft,marginTop:marginTop,width:iframeW,height:iframeH})}function vcExtractYoutubeId(url){if(void 0===url)return!1;var id=url.match(/(?:https?:\/{2})?(?:w{3}\.)?youtu(?:be)?\.(?:com|be)(?:\/watch\?v=|\/)([^\s&]+)/);return null!==id&&id[1]}function vc_googleMapsPointer(){var $=window.jQuery,$wpbGmapsWidget=$(".wpb_gmaps_widget");$wpbGmapsWidget.click(function(){$("iframe",this).css("pointer-events","auto")}),$wpbGmapsWidget.mouseleave(function(){$("iframe",this).css("pointer-events","none")}),$(".wpb_gmaps_widget iframe").css("pointer-events","none")}function vc_setHoverBoxPerspective(hoverBox){hoverBox.each(function(){var $this=jQuery(this),width=$this.width(),perspective=4*width+"px";$this.css("perspective",perspective)})}function vc_setHoverBoxHeight(hoverBox){hoverBox.each(function(){var $this=jQuery(this),hoverBoxInner=$this.find(".vc-hoverbox-inner");hoverBoxInner.css("min-height",0);var frontHeight=$this.find(".vc-hoverbox-front-inner").outerHeight(),backHeight=$this.find(".vc-hoverbox-back-inner").outerHeight(),hoverBoxHeight=frontHeight>backHeight?frontHeight:backHeight;hoverBoxHeight<250&&(hoverBoxHeight=250),hoverBoxInner.css("min-height",hoverBoxHeight+"px")})}function vc_prepareHoverBox(){var hoverBox=jQuery(".vc-hoverbox");vc_setHoverBoxHeight(hoverBox),vc_setHoverBoxPerspective(hoverBox)}document.documentElement.className+=" js_active ",document.documentElement.className+="ontouchstart"in document.documentElement?" vc_mobile ":" vc_desktop ",function(){for(var prefix=["-webkit-","-moz-","-ms-","-o-",""],i=0;iparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&0index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){void 0!==jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:void 0===layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){($parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel")).each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0),getColumnsCount(jQuery(this)),jQuery(this).hasClass("columns_count_1");var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:800,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){location.href.indexOf("#!prettyPhoto")>-1&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width})}}),$(document).trigger("vc-full-width-row",$elements)}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,offsetTop0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('
    ')})}(),vc_initVideoBackgrounds(),function(){var vcSkrollrOptions,callSkrollInit=!1;window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("
    ").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):void 0!==parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),!(!callSkrollInit||!window.skrollr)&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll)}()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),window.vc_googleMapsPointer,jQuery(document).ready(vc_prepareHoverBox),jQuery(window).resize(vc_prepareHoverBox),jQuery(document).ready(function($){window.vc_js()});