Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.146.176.191
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
oasis /
aiet /
adm /
js /
[ HOME SHELL ]
Name
Size
Permission
Action
MainPageCompressed.js
341.08
KB
-rwxr-xr-x
admin.js
15.25
KB
-rwxr-xr-x
advanced-form-elements.js
5.41
KB
-rwxr-xr-x
compressed.js
440.45
KB
-rwxr-xr-x
control.js
18.43
KB
-rwxr-xr-x
demo.js
3.33
KB
-rwxr-xr-x
forgot-password.js
3.24
KB
-rwxr-xr-x
form_submit.js
1.3
KB
-rwxr-xr-x
helpers.js
576
B
-rwxr-xr-x
kusPhdAdm.js
63.8
KB
-rwxr-xr-x
kusPhdAdm_19082019.js
45.44
KB
-rwxr-xr-x
kusPhdAdm_24092018.js
29.74
KB
-rwxr-xr-x
kusPhdAdm_29122018.js
45.47
KB
-rwxr-xr-x
login.js
478
B
-rwxr-xr-x
script.js
3
B
-rwxr-xr-x
sign-in.js
4.29
KB
-rwxr-xr-x
sign-up.js
6.24
KB
-rwxr-xr-x
upload.js
5.62
KB
-rwxr-xr-x
validate.js
9.29
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : MainPageCompressed.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");if(function(e){"use strict";var t=jQuery.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1||2<t[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(),function(i){"use strict";i.fn.emulateTransitionEnd=function(e){var t=!1,n=this;i(this).one("bsTransitionEnd",function(){t=!0});return setTimeout(function(){t||i(n).trigger(i.support.transition.end)},e),this},i(function(){i.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(o){"use strict";var t='[data-dismiss="alert"]',a=function(e){o(e).on("click",t,this.close)};a.VERSION="3.3.6",a.TRANSITION_DURATION=150,a.prototype.close=function(e){var t=o(this),n=t.attr("data-target");n||(n=(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""));var i=o(n);function r(){i.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),i.length||(i=t.closest(".alert")),i.trigger(e=o.Event("close.bs.alert")),e.isDefaultPrevented()||(i.removeClass("in"),o.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",r).emulateTransitionEnd(a.TRANSITION_DURATION):r())};var e=o.fn.alert;o.fn.alert=function(n){return this.each(function(){var e=o(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new a(this)),"string"==typeof n&&t[n].call(e)})},o.fn.alert.Constructor=a,o.fn.alert.noConflict=function(){return o.fn.alert=e,this},o(document).on("click.bs.alert.data-api",t,a.prototype.close)}(jQuery),function(o){"use strict";var r=function(e,t){this.$element=o(e),this.options=o.extend({},r.DEFAULTS,t),this.isLoading=!1};function n(i){return this.each(function(){var e=o(this),t=e.data("bs.button"),n="object"==typeof i&&i;t||e.data("bs.button",t=new r(this,n)),"toggle"==i?t.toggle():i&&t.setState(i)})}r.VERSION="3.3.6",r.DEFAULTS={loadingText:"loading..."},r.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",r=n.data();e+="Text",null==r.resetText&&n.data("resetText",n[i]()),setTimeout(o.proxy(function(){n[i](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(t).attr(t,t)):this.isLoading&&(this.isLoading=!1,n.removeClass(t).removeAttr(t))},this),0)},r.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var e=o.fn.button;o.fn.button=n,o.fn.button.Constructor=r,o.fn.button.noConflict=function(){return o.fn.button=e,this},o(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=o(e.target);t.hasClass("btn")||(t=t.closest(".btn")),n.call(t,"toggle"),o(e.target).is('input[type="radio"]')||o(e.target).is('input[type="checkbox"]')||e.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){o(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(d){"use strict";var p=function(e,t){this.$element=d(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",d.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",d.proxy(this.pause,this)).on("mouseleave.bs.carousel",d.proxy(this.cycle,this))};function a(r){return this.each(function(){var e=d(this),t=e.data("bs.carousel"),n=d.extend({},p.DEFAULTS,e.data(),"object"==typeof r&&r),i="string"==typeof r?r:n.slide;t||e.data("bs.carousel",t=new p(this,n)),"number"==typeof r?t.to(r):i?t[i]():n.interval&&t.pause().cycle()})}p.VERSION="3.3.6",p.TRANSITION_DURATION=600,p.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},p.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},p.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(d.proxy(this.next,this),this.options.interval)),this},p.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},p.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var i=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(i)},p.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(n<e?"next":"prev",this.$items.eq(e))},p.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&d.support.transition&&(this.$element.trigger(d.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},p.prototype.next=function(){if(!this.sliding)return this.slide("next")},p.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},p.prototype.slide=function(e,t){var n=this.$element.find(".item.active"),i=t||this.getItemForDirection(e,n),r=this.interval,o="next"==e?"left":"right",a=this;if(i.hasClass("active"))return this.sliding=!1;var s=i[0],l=d.Event("slide.bs.carousel",{relatedTarget:s,direction:o});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=d(this.$indicators.children()[this.getItemIndex(i)]);u&&u.addClass("active")}var c=d.Event("slid.bs.carousel",{relatedTarget:s,direction:o});return d.support.transition&&this.$element.hasClass("slide")?(i.addClass(e),i[0].offsetWidth,n.addClass(o),i.addClass(o),n.one("bsTransitionEnd",function(){i.removeClass([e,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(p.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(c)),r&&this.cycle(),this}};var e=d.fn.carousel;d.fn.carousel=a,d.fn.carousel.Constructor=p,d.fn.carousel.noConflict=function(){return d.fn.carousel=e,this};var t=function(e){var t,n=d(this),i=d(n.attr("data-target")||(t=n.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,""));if(i.hasClass("carousel")){var r=d.extend({},i.data(),n.data()),o=n.attr("data-slide-to");o&&(r.interval=!1),a.call(i,r),o&&i.data("bs.carousel").to(o),e.preventDefault()}};d(document).on("click.bs.carousel.data-api","[data-slide]",t).on("click.bs.carousel.data-api","[data-slide-to]",t),d(window).on("load",function(){d('[data-ride="carousel"]').each(function(){var e=d(this);a.call(e,e.data())})})}(jQuery),function(a){"use strict";var s=function(e,t){this.$element=a(e),this.options=a.extend({},s.DEFAULTS,t),this.$trigger=a('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function r(e){var t,n=e.attr("data-target")||(t=e.attr("href"))&&t.replace(/.*(?=#[^\s]+$)/,"");return a(n)}function l(i){return this.each(function(){var e=a(this),t=e.data("bs.collapse"),n=a.extend({},s.DEFAULTS,e.data(),"object"==typeof i&&i);!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||e.data("bs.collapse",t=new s(this,n)),"string"==typeof i&&t[i]()})}s.VERSION="3.3.6",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,t=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(t&&t.length&&(e=t.data("bs.collapse"))&&e.transitioning)){var n=a.Event("show.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){t&&t.length&&(l.call(t,"hide"),e||t.data("bs.collapse",null));var i=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[i](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[i](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return r.call(this);var o=a.camelCase(["scroll",i].join("-"));this.$element.one("bsTransitionEnd",a.proxy(r,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[i](this.$element[0][o])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=a.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var t=this.dimension();this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!a.support.transition)return n.call(this);this.$element[t](0).one("bsTransitionEnd",a.proxy(n,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(e,t){var n=a(t);this.addAriaAndCollapsedClass(r(n),n)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var e=a.fn.collapse;a.fn.collapse=l,a.fn.collapse.Constructor=s,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=a(this);t.attr("data-target")||e.preventDefault();var n=r(t),i=n.data("bs.collapse")?"toggle":t.data();l.call(n,i)})}(jQuery),function(a){"use strict";var s='[data-toggle="dropdown"]',i=function(e){a(e).on("click.bs.dropdown",this.toggle)};function l(e){var t=e.attr("data-target");t||(t=(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""));var n=t&&a(t);return n&&n.length?n:e.parent()}function o(i){i&&3===i.which||(a(".dropdown-backdrop").remove(),a(s).each(function(){var e=a(this),t=l(e),n={relatedTarget:this};t.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&a.contains(t[0],i.target)||(t.trigger(i=a.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger(a.Event("hidden.bs.dropdown",n)))))}))}i.VERSION="3.3.6",i.prototype.toggle=function(e){var t=a(this);if(!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(o(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",o);var r={relatedTarget:this};if(n.trigger(e=a.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(a.Event("shown.bs.dropdown",r))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=a(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=l(t),i=n.hasClass("open");if(!i&&27!=e.which||i&&27==e.which)return 27==e.which&&n.find(s).trigger("focus"),t.trigger("click");var r=n.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var o=r.index(e.target);38==e.which&&0<o&&o--,40==e.which&&o<r.length-1&&o++,~o||(o=0),r.eq(o).trigger("focus")}}}};var e=a.fn.dropdown;a.fn.dropdown=function(n){return this.each(function(){var e=a(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})},a.fn.dropdown.Constructor=i,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=e,this},a(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",s,i.prototype.toggle).on("keydown.bs.dropdown.data-api",s,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(o){"use strict";var a=function(e,t){this.options=t,this.$body=o(document.body),this.$element=o(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,o.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function s(i,r){return this.each(function(){var e=o(this),t=e.data("bs.modal"),n=o.extend({},a.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.modal",t=new a(this,n)),"string"==typeof i?t[i](r):n.show&&t.show(r)})}a.VERSION="3.3.6",a.TRANSITION_DURATION=300,a.BACKDROP_TRANSITION_DURATION=150,a.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},a.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},a.prototype.show=function(n){var i=this,e=o.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',o.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){o(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=o.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),e&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var t=o.Event("shown.bs.modal",{relatedTarget:n});e?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(a.TRANSITION_DURATION):i.$element.trigger("focus").trigger(t)}))},a.prototype.hide=function(e){e&&e.preventDefault(),e=o.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),o(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),o.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",o.proxy(this.hideModal,this)).emulateTransitionEnd(a.TRANSITION_DURATION):this.hideModal())},a.prototype.enforceFocus=function(){o(document).off("focusin.bs.modal").on("focusin.bs.modal",o.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},a.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",o.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},a.prototype.resize=function(){this.isShown?o(window).on("resize.bs.modal",o.proxy(this.handleUpdate,this)):o(window).off("resize.bs.modal")},a.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},a.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},a.prototype.backdrop=function(e){var t=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=o.support.transition&&n;if(this.$backdrop=o(document.createElement("div")).addClass("modal-backdrop "+n).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",o.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;i?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){t.removeBackdrop(),e&&e()};o.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(a.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},a.prototype.handleUpdate=function(){this.adjustDialog()},a.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},a.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},a.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},a.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},a.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},a.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var e=o.fn.modal;o.fn.modal=s,o.fn.modal.Constructor=a,o.fn.modal.noConflict=function(){return o.fn.modal=e,this},o(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=o(this),n=t.attr("href"),i=o(t.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=i.data("bs.modal")?"toggle":o.extend({remote:!/#/.test(n)&&n},i.data(),t.data());t.is("a")&&e.preventDefault(),i.one("show.bs.modal",function(e){e.isDefaultPrevented()||i.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),s.call(i,r,this)})}(jQuery),function(m){"use strict";var g=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};g.VERSION="3.3.6",g.TRANSITION_DURATION=150,g.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},g.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=m(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&m(m.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),r=i.length;r--;){var o=i[r];if("click"==o)this.$element.on("click."+this.type,this.options.selector,m.proxy(this.toggle,this));else if("manual"!=o){var a="hover"==o?"mouseenter":"focusin",s="hover"==o?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,m.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,m.proxy(this.leave,this))}}this.options.selector?this._options=m.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},g.prototype.getDefaults=function(){return g.DEFAULTS},g.prototype.getOptions=function(e){return(e=m.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},g.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&m.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},g.prototype.enter=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},g.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},g.prototype.leave=function(e){var t=e instanceof this.constructor?e:m(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t)),e instanceof m.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},g.prototype.show=function(){var e=m.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=m.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,i=this.tip(),r=this.getUID(this.type);this.setContent(),i.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&i.addClass("fade");var o="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,s=a.test(o);s&&(o=o.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),u=i[0].offsetWidth,c=i[0].offsetHeight;if(s){var d=o,p=this.getPosition(this.$viewport);o="bottom"==o&&l.bottom+c>p.bottom?"top":"top"==o&&l.top-c<p.top?"bottom":"right"==o&&l.right+u>p.width?"left":"left"==o&&l.left-u<p.left?"right":o,i.removeClass(d).addClass(o)}var h=this.getCalculatedOffset(o,l,u,c);this.applyPlacement(h,o);var f=function(){var e=n.hoverState;n.$element.trigger("shown.bs."+n.type),n.hoverState=null,"out"==e&&n.leave(n)};m.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(g.TRANSITION_DURATION):f()}},g.prototype.applyPlacement=function(e,t){var n=this.tip(),i=n[0].offsetWidth,r=n[0].offsetHeight,o=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(o)&&(o=0),isNaN(a)&&(a=0),e.top+=o,e.left+=a,m.offset.setOffset(n[0],m.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),n.addClass("in");var s=n[0].offsetWidth,l=n[0].offsetHeight;"top"==t&&l!=r&&(e.top=e.top+r-l);var u=this.getViewportAdjustedDelta(t,e,s,l);u.left?e.left+=u.left:e.top+=u.top;var c=/top|bottom/.test(t),d=c?2*u.left-i+s:2*u.top-r+l,p=c?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],c)},g.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},g.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.options.html?"html":"text"](t),e.removeClass("fade in top bottom left right")},g.prototype.hide=function(e){var t=this,n=m(this.$tip),i=m.Event("hide.bs."+this.type);function r(){"in"!=t.hoverState&&n.detach(),t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type),e&&e()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),m.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",r).emulateTransitionEnd(g.TRANSITION_DURATION):r(),this.hoverState=null,this},g.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},g.prototype.hasContent=function(){return this.getTitle()},g.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],n="BODY"==t.tagName,i=t.getBoundingClientRect();null==i.width&&(i=m.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var r=n?{top:0,left:0}:e.offset(),o={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=n?{width:m(window).width(),height:m(window).height()}:null;return m.extend({},i,o,a,r)},g.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},g.prototype.getViewportAdjustedDelta=function(e,t,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-o-a.scroll,l=t.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var u=t.left-o,c=t.left+o+n;u<a.left?r.left=a.left-u:c>a.right&&(r.left=a.left+a.width-c)}return r},g.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},g.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},g.prototype.tip=function(){if(!this.$tip&&(this.$tip=m(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},g.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},g.prototype.enable=function(){this.enabled=!0},g.prototype.disable=function(){this.enabled=!1},g.prototype.toggleEnabled=function(){this.enabled=!this.enabled},g.prototype.toggle=function(e){var t=this;e&&((t=m(e.currentTarget).data("bs."+this.type))||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),m(e.currentTarget).data("bs."+this.type,t))),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},g.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null})};var e=m.fn.tooltip;m.fn.tooltip=function(i){return this.each(function(){var e=m(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.tooltip",t=new g(this,n)),"string"==typeof i&&t[i]())})},m.fn.tooltip.Constructor=g,m.fn.tooltip.noConflict=function(){return m.fn.tooltip=e,this}}(jQuery),function(r){"use strict";var o=function(e,t){this.init("popover",e,t)};if(!r.fn.tooltip)throw new Error("Popover requires tooltip.js");o.VERSION="3.3.6",o.DEFAULTS=r.extend({},r.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((o.prototype=r.extend({},r.fn.tooltip.Constructor.prototype)).constructor=o).prototype.getDefaults=function(){return o.DEFAULTS},o.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},o.prototype.hasContent=function(){return this.getTitle()||this.getContent()},o.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=r.fn.popover;r.fn.popover=function(i){return this.each(function(){var e=r(this),t=e.data("bs.popover"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.popover",t=new o(this,n)),"string"==typeof i&&t[i]())})},r.fn.popover.Constructor=o,r.fn.popover.noConflict=function(){return r.fn.popover=e,this}}(jQuery),function(o){"use strict";function r(e,t){this.$body=o(document.body),this.$scrollElement=o(e).is(document.body)?o(window):o(e),this.options=o.extend({},r.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function t(i){return this.each(function(){var e=o(this),t=e.data("bs.scrollspy"),n="object"==typeof i&&i;t||e.data("bs.scrollspy",t=new r(this,n)),"string"==typeof i&&t[i]()})}r.VERSION="3.3.6",r.DEFAULTS={offset:10},r.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},r.prototype.refresh=function(){var e=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=o(this),t=e.data("target")||e.attr("href"),n=/^#./.test(t)&&o(t);return n&&n.length&&n.is(":visible")&&[[n[i]().top+r,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},r.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=t)return a!=(e=o[o.length-1])&&this.activate(e);if(a&&t<r[0])return this.activeTarget=null,this.clear();for(e=r.length;e--;)a!=o[e]&&t>=r[e]&&(void 0===r[e+1]||t<r[e+1])&&this.activate(o[e])},r.prototype.activate=function(e){this.activeTarget=e,this.clear();var t=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=o(t).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},r.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=o.fn.scrollspy;o.fn.scrollspy=t,o.fn.scrollspy.Constructor=r,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=e,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var e=o(this);t.call(e,e.data())})})}(jQuery),function(s){"use strict";var a=function(e){this.element=s(e)};function t(n){return this.each(function(){var e=s(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new a(this)),"string"==typeof n&&t[n]()})}a.VERSION="3.3.6",a.TRANSITION_DURATION=150,a.prototype.show=function(){var e=this.element,t=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=t.find(".active:last a"),r=s.Event("hide.bs.tab",{relatedTarget:e[0]}),o=s.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(r),e.trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){var a=s(n);this.activate(e.closest("li"),t),this.activate(a,a.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},a.prototype.activate=function(e,t,n){var i=t.find("> .active"),r=n&&s.support.transition&&(i.length&&i.hasClass("fade")||!!t.find("> .fade").length);function o(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&r?i.one("bsTransitionEnd",o).emulateTransitionEnd(a.TRANSITION_DURATION):o(),i.removeClass("in")};var e=s.fn.tab;s.fn.tab=t,s.fn.tab.Constructor=a,s.fn.tab.noConflict=function(){return s.fn.tab=e,this};var n=function(e){e.preventDefault(),t.call(s(this),"show")};s(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(l){"use strict";var u=function(e,t){this.options=l.extend({},u.DEFAULTS,t),this.$target=l(this.options.target).on("scroll.bs.affix.data-api",l.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",l.proxy(this.checkPositionWithEventLoop,this)),this.$element=l(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(i){return this.each(function(){var e=l(this),t=e.data("bs.affix"),n="object"==typeof i&&i;t||e.data("bs.affix",t=new u(this,n)),"string"==typeof i&&t[i]()})}u.VERSION="3.3.6",u.RESET="affix affix-top affix-bottom",u.DEFAULTS={offset:0,target:window},u.prototype.getState=function(e,t,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=e-i)&&"bottom";var s=null==this.affixed,l=s?r:o.top;return null!=n&&r<=n?"top":null!=i&&e-i<=l+(s?a:t)&&"bottom"},u.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(u.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},u.prototype.checkPositionWithEventLoop=function(){setTimeout(l.proxy(this.checkPosition,this),1)},u.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,n=t.top,i=t.bottom,r=Math.max(l(document).height(),l(document.body).height());"object"!=typeof t&&(i=n=t),"function"==typeof n&&(n=t.top(this.$element)),"function"==typeof i&&(i=t.bottom(this.$element));var o=this.getState(r,e,n,i);if(this.affixed!=o){null!=this.unpin&&this.$element.css("top","");var a="affix"+(o?"-"+o:""),s=l.Event(a+".bs.affix");if(this.$element.trigger(s),s.isDefaultPrevented())return;this.affixed=o,this.unpin="bottom"==o?this.getPinnedOffset():null,this.$element.removeClass(u.RESET).addClass(a).trigger(a.replace("affix","affixed")+".bs.affix")}"bottom"==o&&this.$element.offset({top:r-e-i})}};var e=l.fn.affix;l.fn.affix=n,l.fn.affix.Constructor=u,l.fn.affix.noConflict=function(){return l.fn.affix=e,this},l(window).on("load",function(){l('[data-spy="affix"]').each(function(){var e=l(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),n.call(e,t)})})}(jQuery),function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){var d=[],f=C.document,c=d.slice,m=d.concat,s=d.push,r=d.indexOf,n={},t=n.toString,g=n.hasOwnProperty,v={},S=function(e,t){return new S.fn.init(e,t)},i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,a=/-([\da-z])/gi,l=function(e,t){return t.toUpperCase()};function u(e){var t=!!e&&"length"in e&&e.length,n=S.type(e);return"function"!==n&&!S.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}S.fn=S.prototype={jquery:"1.12.4",constructor:S,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){var t=S.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return S.each(this,e)},map:function(n){return this.pushStack(S.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:d.sort,splice:d.splice},S.extend=S.fn.extend=function(){var e,t,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||S.isFunction(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(r=arguments[s]))for(i in r)e=a[i],a!==(n=r[i])&&(u&&n&&(S.isPlainObject(n)||(t=S.isArray(n)))?(t?(t=!1,o=e&&S.isArray(e)?e:[]):o=e&&S.isPlainObject(e)?e:{},a[i]=S.extend(u,o,n)):void 0!==n&&(a[i]=n));return a},S.extend({expando:"jQuery"+("1.12.4"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===S.type(e)},isArray:Array.isArray||function(e){return"array"===S.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!S.isArray(e)&&0<=t-parseFloat(t)+1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==S.type(e)||e.nodeType||S.isWindow(e))return!1;try{if(e.constructor&&!g.call(e,"constructor")&&!g.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!v.ownFirst)for(t in e)return g.call(e,t);for(t in e);return void 0===t||g.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[t.call(e)]||"object":typeof e},globalEval:function(e){e&&S.trim(e)&&(C.execScript||function(e){C.eval.call(C,e)})(e)},camelCase:function(e){return e.replace(o,"ms-").replace(a,l)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(u(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(i,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(u(Object(e))?S.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){var i;if(t){if(r)return r.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;)e[r++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[r++]=t[i++];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,a=[];if(u(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return m.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;if("string"==typeof t&&(r=e[t],t=e,e=r),S.isFunction(e))return n=c.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(c.call(arguments)))}).guid=e.guid=e.guid||S.guid++,i},now:function(){return+new Date},support:v}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=d[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var p=function(n){var e,f,x,o,r,m,d,g,w,l,u,k,C,a,S,v,s,c,y,E="sizzle"+1*new Date,b=n.document,T=0,i=0,p=re(),h=re(),A=re(),I=function(e,t){return e===t&&(u=!0),0},N={}.hasOwnProperty,t=[],F=t.pop,P=t.push,$=t.push,D=t.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",j="\\["+R+"*("+M+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+R+"*\\]",_=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+j+")*)|.*)\\)|)",B=new RegExp(R+"+","g"),q=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),H=new RegExp("^"+R+"*,"+R+"*"),z=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),U=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),W=new RegExp(_),V=new RegExp("^"+M+"$"),G={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+j),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Y=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=/'|\\/g,ee=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),te=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ne=function(){k()};try{$.apply(t=D.call(b.childNodes),b.childNodes),t[b.childNodes.length].nodeType}catch(e){$={apply:t.length?function(e,t){P.apply(e,D.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ie(e,t,n,i){var r,o,a,s,l,u,c,d,p=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&((t?t.ownerDocument||t:b)!==C&&k(t),t=t||C,S)){if(11!==h&&(u=Y.exec(e)))if(r=u[1]){if(9===h){if(!(a=t.getElementById(r)))return n;if(a.id===r)return n.push(a),n}else if(p&&(a=p.getElementById(r))&&y(t,a)&&a.id===r)return n.push(a),n}else{if(u[2])return $.apply(n,t.getElementsByTagName(e)),n;if((r=u[3])&&f.getElementsByClassName&&t.getElementsByClassName)return $.apply(n,t.getElementsByClassName(r)),n}if(f.qsa&&!A[e+" "]&&(!v||!v.test(e))){if(1!==h)p=t,d=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(J,"\\$&"):t.setAttribute("id",s=E),o=(c=m(e)).length,l=V.test(s)?"#"+s:"[id='"+s+"']";o--;)c[o]=l+" "+fe(c[o]);d=c.join(","),p=Z.test(e)&&pe(t.parentNode)||t}if(d)try{return $.apply(n,p.querySelectorAll(d)),n}catch(e){}finally{s===E&&t.removeAttribute("id")}}}return g(e.replace(q,"$1"),t,n,i)}function re(){var i=[];return function e(t,n){return i.push(t+" ")>x.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function oe(e){return e[E]=!0,e}function ae(e){var t=C.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e,t){for(var n=e.split("|"),i=n.length;i--;)x.attrHandle[n[i]]=t}function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||1<<31)-(~e.sourceIndex||1<<31);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ce(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function de(a){return oe(function(o){return o=+o,oe(function(e,t){for(var n,i=a([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=ie.support={},r=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},k=ie.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:b;return i!==C&&9===i.nodeType&&i.documentElement&&(a=(C=i).documentElement,S=!r(C),(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ne,!1):n.attachEvent&&n.attachEvent("onunload",ne)),f.attributes=ae(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=ae(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=X.test(C.getElementsByClassName),f.getById=ae(function(e){return a.appendChild(e).id=E,!C.getElementsByName||!C.getElementsByName(E).length}),f.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var n=t.getElementById(e);return n?[n]:[]}},x.filter.ID=function(e){var t=e.replace(ee,te);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var n=e.replace(ee,te);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}}),x.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},x.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],v=[],(f.qsa=X.test(C.querySelectorAll))&&(ae(function(e){a.appendChild(e).innerHTML="<a id='"+E+"'></a><select id='"+E+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+R+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+E+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+E+"+*").length||v.push(".#.+[+~]")}),ae(function(e){var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+R+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=X.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ae(function(e){f.disconnectedMatch=c.call(e,"div"),c.call(e,"[s!='']:x"),s.push("!=",_)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=X.test(a.compareDocumentPosition),y=t||X.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},I=t?function(e,t){if(e===t)return u=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===b&&y(b,e)?-1:t===C||t.ownerDocument===b&&y(b,t)?1:l?L(l,e)-L(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return u=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!r||!o)return e===C?-1:t===C?1:r?-1:o?1:l?L(l,e)-L(l,t):0;if(r===o)return le(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?le(a[i],s[i]):a[i]===b?-1:s[i]===b?1:0}),C},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&k(e),t=t.replace(U,"='$1']"),f.matchesSelector&&S&&!A[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<ie(t,C,null,[e]).length},ie.contains=function(e,t){return(e.ownerDocument||e)!==C&&k(e),y(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==C&&k(e);var n=x.attrHandle[t.toLowerCase()],i=n&&N.call(x.attrHandle,t.toLowerCase())?n(e,t,!S):void 0;return void 0!==i?i:f.attributes||!S?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,n=[],i=0,r=0;if(u=!f.detectDuplicates,l=!f.sortStable&&e.slice(0),e.sort(I),u){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)e.splice(n[i],1)}return l=null,e},o=ie.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},(x=ie.selectors={cacheLength:50,createPseudo:oe,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ee,te),e[3]=(e[3]||e[4]||e[5]||"").replace(ee,te),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ee,te).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=ie.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1<t.indexOf(r):"$="===i?r&&t.slice(-r.length)===r:"~="===i?-1<(" "+t.replace(B," ")+" ").indexOf(r):"|="===i&&(t===r||t.slice(0,r.length+1)===r+"-"))}},CHILD:function(f,e,t,m,g){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var i,r,o,a,s,l,u=v!==y?"nextSibling":"previousSibling",c=e.parentNode,d=b&&e.nodeName.toLowerCase(),p=!n&&!b,h=!1;if(c){if(v){for(;u;){for(a=e;a=a[u];)if(b?a.nodeName.toLowerCase()===d:1===a.nodeType)return!1;l=u="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&p){for(h=(s=(i=(r=(o=(a=c)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===T&&i[1])&&i[2],a=s&&c.childNodes[s];a=++s&&a&&a[u]||(h=s=0)||l.pop();)if(1===a.nodeType&&++h&&a===e){r[f]=[T,s,h];break}}else if(p&&(h=s=(i=(r=(o=(a=e)[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]||[])[0]===T&&i[1]),!1===h)for(;(a=++s&&a&&a[u]||(h=s=0)||l.pop())&&((b?a.nodeName.toLowerCase()!==d:1!==a.nodeType)||!++h||(p&&((r=(o=a[E]||(a[E]={}))[a.uniqueID]||(o[a.uniqueID]={}))[f]=[T,h]),a!==e)););return(h-=g)===m||h%m==0&&0<=h/m}}},PSEUDO:function(e,o){var t,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return a[E]?a(o):1<a.length?(t=[e,e,"",o],x.setFilters.hasOwnProperty(e.toLowerCase())?oe(function(e,t){for(var n,i=a(e,o),r=i.length;r--;)e[n=L(e,i[r])]=!(t[n]=i[r])}):function(e){return a(e,0,t)}):a}},pseudos:{not:oe(function(e){var i=[],r=[],s=d(e.replace(q,"$1"));return s[E]?oe(function(e,t,n,i){for(var r,o=s(e,null,i,[]),a=e.length;a--;)(r=o[a])&&(e[a]=!(t[a]=r))}):function(e,t,n){return i[0]=e,s(i,null,n,r),i[0]=null,!r.pop()}}),has:oe(function(t){return function(e){return 0<ie(t,e).length}}),contains:oe(function(t){return t=t.replace(ee,te),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:oe(function(n){return V.test(n||"")||ie.error("unsupported lang: "+n),n=n.replace(ee,te).toLowerCase(),function(e){var t;do{if(t=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:de(function(){return[0]}),last:de(function(e,t){return[t-1]}),eq:de(function(e,t,n){return[n<0?n+t:n]}),even:de(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:de(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:de(function(e,t,n){for(var i=n<0?n+t:n;0<=--i;)e.push(i);return e}),gt:de(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[e]=ue(e);for(e in{submit:!0,reset:!0})x.pseudos[e]=ce(e);function he(){}function fe(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function me(s,e,t){var l=e.dir,u=t&&"parentNode"===l,c=i++;return e.first?function(e,t,n){for(;e=e[l];)if(1===e.nodeType||u)return s(e,t,n)}:function(e,t,n){var i,r,o,a=[T,c];if(n){for(;e=e[l];)if((1===e.nodeType||u)&&s(e,t,n))return!0}else for(;e=e[l];)if(1===e.nodeType||u){if((i=(r=(o=e[E]||(e[E]={}))[e.uniqueID]||(o[e.uniqueID]={}))[l])&&i[0]===T&&i[1]===c)return a[2]=i[2];if((r[l]=a)[2]=s(e,t,n))return!0}}}function ge(r){return 1<r.length?function(e,t,n){for(var i=r.length;i--;)if(!r[i](e,t,n))return!1;return!0}:r[0]}function ve(e,t,n,i,r){for(var o,a=[],s=0,l=e.length,u=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,i,r)||(a.push(o),u&&t.push(s)));return a}function ye(h,f,m,g,v,e){return g&&!g[E]&&(g=ye(g)),v&&!v[E]&&(v=ye(v,e)),oe(function(e,t,n,i){var r,o,a,s=[],l=[],u=t.length,c=e||function(e,t,n){for(var i=0,r=t.length;i<r;i++)ie(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),d=!h||!e&&f?c:ve(c,s,h,n,i),p=m?v||(e?h:u||g)?[]:t:d;if(m&&m(d,p,n,i),g)for(r=ve(p,l),g(r,[],n,i),o=r.length;o--;)(a=r[o])&&(p[l[o]]=!(d[l[o]]=a));if(e){if(v||h){if(v){for(r=[],o=p.length;o--;)(a=p[o])&&r.push(d[o]=a);v(null,p=[],r,i)}for(o=p.length;o--;)(a=p[o])&&-1<(r=v?L(e,a):s[o])&&(e[r]=!(t[r]=a))}}else p=ve(p===t?p.splice(u,p.length):p),v?v(null,t,p,i):$.apply(t,p)})}function be(e){for(var r,t,n,i=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],s=o?1:0,l=me(function(e){return e===r},a,!0),u=me(function(e){return-1<L(r,e)},a,!0),c=[function(e,t,n){var i=!o&&(n||t!==w)||((r=t).nodeType?l(e,t,n):u(e,t,n));return r=null,i}];s<i;s++)if(t=x.relative[e[s].type])c=[me(ge(c),t)];else{if((t=x.filter[e[s].type].apply(null,e[s].matches))[E]){for(n=++s;n<i&&!x.relative[e[n].type];n++);return ye(1<s&&ge(c),1<s&&fe(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(q,"$1"),t,s<n&&be(e.slice(s,n)),n<i&&be(e=e.slice(n)),n<i&&fe(e))}c.push(t)}return ge(c)}return he.prototype=x.filters=x.pseudos,x.setFilters=new he,m=ie.tokenize=function(e,t){var n,i,r,o,a,s,l,u=h[e+" "];if(u)return t?0:u.slice(0);for(a=e,s=[],l=x.preFilter;a;){for(o in n&&!(i=H.exec(a))||(i&&(a=a.slice(i[0].length)||a),s.push(r=[])),n=!1,(i=z.exec(a))&&(n=i.shift(),r.push({value:n,type:i[0].replace(q," ")}),a=a.slice(n.length)),x.filter)!(i=G[o].exec(a))||l[o]&&!(i=l[o](i))||(n=i.shift(),r.push({value:n,type:o,matches:i}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ie.error(e):h(e,s).slice(0)},d=ie.compile=function(e,t){var n,g,v,y,b,i,r=[],o=[],a=A[e+" "];if(!a){for(t||(t=m(e)),n=t.length;n--;)(a=be(t[n]))[E]?r.push(a):o.push(a);(a=A(e,(g=o,y=0<(v=r).length,b=0<g.length,i=function(e,t,n,i,r){var o,a,s,l=0,u="0",c=e&&[],d=[],p=w,h=e||b&&x.find.TAG("*",r),f=T+=null==p?1:Math.random()||.1,m=h.length;for(r&&(w=t===C||t||r);u!==m&&null!=(o=h[u]);u++){if(b&&o){for(a=0,t||o.ownerDocument===C||(k(o),n=!S);s=g[a++];)if(s(o,t||C,n)){i.push(o);break}r&&(T=f)}y&&((o=!s&&o)&&l--,e&&c.push(o))}if(l+=u,y&&u!==l){for(a=0;s=v[a++];)s(c,d,t,n);if(e){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=F.call(i));d=ve(d)}$.apply(i,d),r&&!e&&0<d.length&&1<l+v.length&&ie.uniqueSort(i)}return r&&(T=f,w=p),c},y?oe(i):i))).selector=e}return a},g=ie.select=function(e,t,n,i){var r,o,a,s,l,u="function"==typeof e&&e,c=!i&&m(e=u.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&f.getById&&9===t.nodeType&&S&&x.relative[o[1].type]){if(!(t=(x.find.ID(a.matches[0].replace(ee,te),t)||[])[0]))return n;u&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(r=G.needsContext.test(e)?0:o.length;r--&&(a=o[r],!x.relative[s=a.type]);)if((l=x.find[s])&&(i=l(a.matches[0].replace(ee,te),Z.test(o[0].type)&&pe(t.parentNode)||t))){if(o.splice(r,1),!(e=i.length&&fe(o)))return $.apply(n,i),n;break}}return(u||d(e,c))(i,t,!S,n,!t||Z.test(e)&&pe(t.parentNode)||t),n},f.sortStable=E.split("").sort(I).join("")===E,f.detectDuplicates=!!u,k(),f.sortDetached=ae(function(e){return 1&e.compareDocumentPosition(C.createElement("div"))}),ae(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||se("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),f.attributes&&ae(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||se("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ae(function(e){return null==e.getAttribute("disabled")})||se(O,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),ie}(C);S.find=p,S.expr=p.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=p.uniqueSort,S.text=p.getText,S.isXMLDoc=p.isXML,S.contains=p.contains;var h=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&S(e).is(n))break;i.push(e)}return i},y=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=S.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,w=/^.[^:#\[\.,]*$/;function k(e,n,i){if(S.isFunction(n))return S.grep(e,function(e,t){return!!n.call(e,t,e)!==i});if(n.nodeType)return S.grep(e,function(e){return e===n!==i});if("string"==typeof n){if(w.test(n))return S.filter(n,e,i);n=S.filter(n,e)}return S.grep(e,function(e){return-1<S.inArray(e,n)!==i})}S.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?S.find.matchesSelector(i,e)?[i]:[]:S.find.matches(e,S.grep(t,function(e){return 1===e.nodeType}))},S.fn.extend({find:function(e){var t,n=[],i=this,r=i.length;if("string"!=typeof e)return this.pushStack(S(e).filter(function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0}));for(t=0;t<r;t++)S.find(e,i[t],n);return(n=this.pushStack(1<r?S.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&b.test(e)?S(e):e||[],!1).length}});var E,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(S.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||E,"string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&3<=e.length?[null,e,null]:T.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:f,!0)),x.test(i[1])&&S.isPlainObject(t))for(i in t)S.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((r=f.getElementById(i[2]))&&r.parentNode){if(r.id!==i[2])return E.find(e);this.length=1,this[0]=r}return this.context=f,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):S.isFunction(e)?void 0!==n.ready?n.ready(e):e(S):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),S.makeArray(e,this))}).prototype=S.fn,E=S(f);var A=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function N(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t,n=S(e,this),i=n.length;return this.filter(function(){for(t=0;t<i;t++)if(S.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=b.test(e)||"string"!=typeof e?S(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?S.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?S.inArray(this[0],S(e)):S.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return h(e,"parentNode")},parentsUntil:function(e,t,n){return h(e,"parentNode",n)},next:function(e){return N(e,"nextSibling")},prev:function(e){return N(e,"previousSibling")},nextAll:function(e){return h(e,"nextSibling")},prevAll:function(e){return h(e,"previousSibling")},nextUntil:function(e,t,n){return h(e,"nextSibling",n)},prevUntil:function(e,t,n){return h(e,"previousSibling",n)},siblings:function(e){return y((e.parentNode||{}).firstChild,e)},children:function(e){return y(e.firstChild)},contents:function(e){return S.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:S.merge([],e.childNodes)}},function(i,r){S.fn[i]=function(e,t){var n=S.map(this,r,e);return"Until"!==i.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=S.filter(t,n)),1<this.length&&(I[i]||(n=S.uniqueSort(n)),A.test(i)&&(n=n.reverse())),this.pushStack(n)}});var F,P,$=/\S+/g;function D(){f.addEventListener?(f.removeEventListener("DOMContentLoaded",L),C.removeEventListener("load",L)):(f.detachEvent("onreadystatechange",L),C.detachEvent("onload",L))}function L(){(f.addEventListener||"load"===C.event.type||"complete"===f.readyState)&&(D(),S.ready())}for(P in S.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},S.each(e.match($)||[],function(e,t){n[t]=!0}),n):S.extend({},i);var r,t,o,a,s=[],l=[],u=-1,c=function(){for(a=i.once,o=r=!0;l.length;u=-1)for(t=l.shift();++u<s.length;)!1===s[u].apply(t[0],t[1])&&i.stopOnFalse&&(u=s.length,t=!1);i.memory||(t=!1),r=!1,a&&(s=t?[]:"")},d={add:function(){return s&&(t&&!r&&(u=s.length-1,l.push(t)),function n(e){S.each(e,function(e,t){S.isFunction(t)?i.unique&&d.has(t)||s.push(t):t&&t.length&&"string"!==S.type(t)&&n(t)})}(arguments),t&&!r&&c()),this},remove:function(){return S.each(arguments,function(e,t){for(var n;-1<(n=S.inArray(t,s,n));)s.splice(n,1),n<=u&&u--}),this},has:function(e){return e?-1<S.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=l=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=!0,t||d.disable(),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),r||c()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},S.extend({Deferred:function(e){var o=[["resolve","done",S.Callbacks("once memory"),"resolved"],["reject","fail",S.Callbacks("once memory"),"rejected"],["notify","progress",S.Callbacks("memory")]],r="pending",a={state:function(){return r},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var r=arguments;return S.Deferred(function(i){S.each(o,function(e,t){var n=S.isFunction(r[e])&&r[e];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&S.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this===a?i.promise():this,n?[e]:arguments)})}),r=null}).promise()},promise:function(e){return null!=e?S.extend(e,a):a}},s={};return a.pipe=a.then,S.each(o,function(e,t){var n=t[2],i=t[3];a[t[1]]=n.add,i&&n.add(function(){r=i},o[1^e][2].disable,o[2][2].lock),s[t[0]]=function(){return s[t[0]+"With"](this===s?a:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var r,t,n,i=0,o=c.call(arguments),a=o.length,s=1!==a||e&&S.isFunction(e.promise)?a:0,l=1===s?e:S.Deferred(),u=function(t,n,i){return function(e){n[t]=this,i[t]=1<arguments.length?c.call(arguments):e,i===r?l.notifyWith(n,i):--s||l.resolveWith(n,i)}};if(1<a)for(r=new Array(a),t=new Array(a),n=new Array(a);i<a;i++)o[i]&&S.isFunction(o[i].promise)?o[i].promise().progress(u(i,t,r)).done(u(i,n,o)).fail(l.reject):--s;return s||l.resolveWith(n,o),l.promise()}}),S.fn.ready=function(e){return S.ready.promise().done(e),this},S.extend({isReady:!1,readyWait:1,holdReady:function(e){e?S.readyWait++:S.ready(!0)},ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0)!==e&&0<--S.readyWait||(F.resolveWith(f,[S]),S.fn.triggerHandler&&(S(f).triggerHandler("ready"),S(f).off("ready")))}}),S.ready.promise=function(e){if(!F)if(F=S.Deferred(),"complete"===f.readyState||"loading"!==f.readyState&&!f.documentElement.doScroll)C.setTimeout(S.ready);else if(f.addEventListener)f.addEventListener("DOMContentLoaded",L),C.addEventListener("load",L);else{f.attachEvent("onreadystatechange",L),C.attachEvent("onload",L);var n=!1;try{n=null==C.frameElement&&f.documentElement}catch(e){}n&&n.doScroll&&function t(){if(!S.isReady){try{n.doScroll("left")}catch(e){return C.setTimeout(t,50)}D(),S.ready()}}()}return F.promise(e)},S.ready.promise(),S(v))break;v.ownFirst="0"===P,v.inlineBlockNeedsLayout=!1,S(function(){var e,t,n,i;(n=f.getElementsByTagName("body")[0])&&n.style&&(t=f.createElement("div"),(i=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",v.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))}),function(){var e=f.createElement("div");v.deleteExpando=!0;try{delete e.test}catch(e){v.deleteExpando=!1}e=null}();var O,R=function(e){var t=S.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,j=/([A-Z])/g;function _(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(j,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:M.test(n)?S.parseJSON(n):n)}catch(e){}S.data(e,t,n)}else n=void 0}return n}function B(e){var t;for(t in e)if(("data"!==t||!S.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function q(e,t,n,i){if(R(e)){var r,o,a=S.expando,s=e.nodeType,l=s?S.cache:e,u=s?e[a]:e[a]&&a;if(u&&l[u]&&(i||l[u].data)||void 0!==n||"string"!=typeof t)return u||(u=s?e[a]=d.pop()||S.guid++:a),l[u]||(l[u]=s?{}:{toJSON:S.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[u]=S.extend(l[u],t):l[u].data=S.extend(l[u].data,t)),o=l[u],i||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[S.camelCase(t)]=n),"string"==typeof t?null==(r=o[t])&&(r=o[S.camelCase(t)]):r=o,r}}function H(e,t,n){if(R(e)){var i,r,o=e.nodeType,a=o?S.cache:e,s=o?e[S.expando]:S.expando;if(a[s]){if(t&&(i=n?a[s]:a[s].data)){r=(t=S.isArray(t)?t.concat(S.map(t,S.camelCase)):t in i?[t]:(t=S.camelCase(t))in i?[t]:t.split(" ")).length;for(;r--;)delete i[t[r]];if(n?!B(i):!S.isEmptyObject(i))return}(n||(delete a[s].data,B(a[s])))&&(o?S.cleanData([e],!0):v.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}S.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?S.cache[e[S.expando]]:e[S.expando])&&!B(e)},data:function(e,t,n){return q(e,t,n)},removeData:function(e,t){return H(e,t)},_data:function(e,t,n){return q(e,t,n,!0)},_removeData:function(e,t){return H(e,t,!0)}}),S.fn.extend({data:function(e,t){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(r=S.data(o),1===o.nodeType&&!S._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&_(o,i=S.camelCase(i.slice(5)),r[i]);S._data(o,"parsedAttrs",!0)}return r}return"object"==typeof e?this.each(function(){S.data(this,e)}):1<arguments.length?this.each(function(){S.data(this,e,t)}):o?_(o,e,S.data(o,e)):void 0},removeData:function(e){return this.each(function(){S.removeData(this,e)})}}),S.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=S._data(e,t),n&&(!i||S.isArray(n)?i=S._data(e,t,S.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=S.queue(e,t),i=n.length,r=n.shift(),o=S._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,function(){S.dequeue(e,t)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return S._data(e,n)||S._data(e,n,{empty:S.Callbacks("once memory").add(function(){S._removeData(e,t+"queue"),S._removeData(e,n)})})}}),S.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?S.queue(this[0],t):void 0===n?this:this.each(function(){var e=S.queue(this,t,n);S._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&S.dequeue(this,t)})},dequeue:function(e){return this.each(function(){S.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=S.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=S._data(o[a],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(t)}}),v.shrinkWrapBlocks=function(){return null!=O?O:(O=!1,(t=f.getElementsByTagName("body")[0])&&t.style?(e=f.createElement("div"),(n=f.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(f.createElement("div")).style.width="5px",O=3!==e.offsetWidth),t.removeChild(n),O):void 0);var e,t,n};var z=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,U=new RegExp("^(?:([+-])=|)("+z+")([a-z%]*)$","i"),W=["Top","Right","Bottom","Left"],V=function(e,t){return e=t||e,"none"===S.css(e,"display")||!S.contains(e.ownerDocument,e)};function G(e,t,n,i){var r,o=1,a=20,s=i?function(){return i.cur()}:function(){return S.css(e,t,"")},l=s(),u=n&&n[3]||(S.cssNumber[t]?"":"px"),c=(S.cssNumber[t]||"px"!==u&&+l)&&U.exec(S.css(e,t));if(c&&c[3]!==u)for(u=u||c[3],n=n||[],c=+l||1;c/=o=o||".5",S.style(e,t,c+u),o!==(o=s()/l)&&1!==o&&--a;);return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var Q,K,X,Y=function(e,t,n,i,r,o,a){var s=0,l=e.length,u=null==n;if("object"===S.type(n))for(s in r=!0,n)Y(e,t,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,S.isFunction(i)||(a=!0),u&&(a?(t.call(e,i),t=null):(u=t,t=function(e,t,n){return u.call(S(e),n)})),t))for(;s<l;s++)t(e[s],n,a?i:i.call(e[s],s,t(e[s],n)));return r?e:u?t.call(e):l?t(e[0],n):o},Z=/^(?:checkbox|radio)$/i,J=/<([\w:-]+)/,ee=/^$|\/(?:java|ecma)script/i,te=/^\s+/,ne="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ie(e){var t=ne.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}Q=f.createElement("div"),K=f.createDocumentFragment(),X=f.createElement("input"),Q.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",v.leadingWhitespace=3===Q.firstChild.nodeType,v.tbody=!Q.getElementsByTagName("tbody").length,v.htmlSerialize=!!Q.getElementsByTagName("link").length,v.html5Clone="<:nav></:nav>"!==f.createElement("nav").cloneNode(!0).outerHTML,X.type="checkbox",X.checked=!0,K.appendChild(X),v.appendChecked=X.checked,Q.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!Q.cloneNode(!0).lastChild.defaultValue,K.appendChild(Q),(X=f.createElement("input")).setAttribute("type","radio"),X.setAttribute("checked","checked"),X.setAttribute("name","t"),Q.appendChild(X),v.checkClone=Q.cloneNode(!0).cloneNode(!0).lastChild.checked,v.noCloneEvent=!!Q.addEventListener,Q[S.expando]=1,v.attributes=!Q.getAttribute(S.expando);var re={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:v.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};function oe(e,t){var n,i,r=0,o=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(i=n[r]);r++)!t||S.nodeName(i,t)?o.push(i):S.merge(o,oe(i,t));return void 0===t||t&&S.nodeName(e,t)?S.merge([e],o):o}function ae(e,t){for(var n,i=0;null!=(n=e[i]);i++)S._data(n,"globalEval",!t||S._data(t[i],"globalEval"))}re.optgroup=re.option,re.tbody=re.tfoot=re.colgroup=re.caption=re.thead,re.th=re.td;var se=/<|&#?\w+;/,le=/<tbody/i;function ue(e){Z.test(e.type)&&(e.defaultChecked=e.checked)}function ce(e,t,n,i,r){for(var o,a,s,l,u,c,d,p=e.length,h=ie(t),f=[],m=0;m<p;m++)if((a=e[m])||0===a)if("object"===S.type(a))S.merge(f,a.nodeType?[a]:a);else if(se.test(a)){for(l=l||h.appendChild(t.createElement("div")),u=(J.exec(a)||["",""])[1].toLowerCase(),d=re[u]||re._default,l.innerHTML=d[1]+S.htmlPrefilter(a)+d[2],o=d[0];o--;)l=l.lastChild;if(!v.leadingWhitespace&&te.test(a)&&f.push(t.createTextNode(te.exec(a)[0])),!v.tbody)for(o=(a="table"!==u||le.test(a)?"<table>"!==d[1]||le.test(a)?0:l:l.firstChild)&&a.childNodes.length;o--;)S.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(S.merge(f,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=h.lastChild}else f.push(t.createTextNode(a));for(l&&h.removeChild(l),v.appendChecked||S.grep(oe(f,"input"),ue),m=0;a=f[m++];)if(i&&-1<S.inArray(a,i))r&&r.push(a);else if(s=S.contains(a.ownerDocument,a),l=oe(h.appendChild(a),"script"),s&&ae(l),n)for(o=0;a=l[o++];)ee.test(a.type||"")&&n.push(a);return l=null,h}!function(){var e,t,n=f.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})t="on"+e,(v[e]=t in C)||(n.setAttribute(t,"t"),v[e]=!1===n.attributes[t].expando);n=null}();var de=/^(?:input|select|textarea)$/i,pe=/^key/,he=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fe=/^(?:focusinfocus|focusoutblur)$/,me=/^([^.]*)(?:\.(.+)|)/;function ge(){return!0}function ve(){return!1}function ye(){try{return f.activeElement}catch(e){}}function be(e,t,n,i,r,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(i=i||n,n=void 0),t)be(e,s,n,i,t[s],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=ve;else if(!r)return e;return 1===o&&(a=r,(r=function(e){return S().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),e.each(function(){S.event.add(this,t,r,i,n)})}S.event={global:{},add:function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f,m,g=S._data(e);if(g){for(n.handler&&(n=(l=n).handler,r=l.selector),n.guid||(n.guid=S.guid++),(a=g.events)||(a=g.events={}),(c=g.handle)||((c=g.handle=function(e){return void 0===S||e&&S.event.triggered===e.type?void 0:S.event.dispatch.apply(c.elem,arguments)}).elem=e),s=(t=(t||"").match($)||[""]).length;s--;)h=m=(o=me.exec(t[s])||[])[1],f=(o[2]||"").split(".").sort(),h&&(u=S.event.special[h]||{},h=(r?u.delegateType:u.bindType)||h,u=S.event.special[h]||{},d=S.extend({type:h,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&S.expr.match.needsContext.test(r),namespace:f.join(".")},l),(p=a[h])||((p=a[h]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,i,f,c)||(e.addEventListener?e.addEventListener(h,c,!1):e.attachEvent&&e.attachEvent("on"+h,c))),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=n.guid)),r?p.splice(p.delegateCount++,0,d):p.push(d),S.event.global[h]=!0);e=null}},remove:function(e,t,n,i,r){var o,a,s,l,u,c,d,p,h,f,m,g=S.hasData(e)&&S._data(e);if(g&&(c=g.events)){for(u=(t=(t||"").match($)||[""]).length;u--;)if(h=m=(s=me.exec(t[u])||[])[1],f=(s[2]||"").split(".").sort(),h){for(d=S.event.special[h]||{},p=c[h=(i?d.delegateType:d.bindType)||h]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=o=p.length;o--;)a=p[o],!r&&m!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(p.splice(o,1),a.selector&&p.delegateCount--,d.remove&&d.remove.call(e,a));l&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,f,g.handle)||S.removeEvent(e,h,g.handle),delete c[h])}else for(h in c)S.event.remove(e,h+t[u],n,i,!0);S.isEmptyObject(c)&&(delete g.handle,S._removeData(e,"events"))}},trigger:function(e,t,n,i){var r,o,a,s,l,u,c,d=[n||f],p=g.call(e,"type")?e.type:e,h=g.call(e,"namespace")?e.namespace.split("."):[];if(a=u=n=n||f,3!==n.nodeType&&8!==n.nodeType&&!fe.test(p+S.event.triggered)&&(-1<p.indexOf(".")&&(p=(h=p.split(".")).shift(),h.sort()),o=p.indexOf(":")<0&&"on"+p,(e=e[S.expando]?e:new S.Event(p,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),l=S.event.special[p]||{},i||!l.trigger||!1!==l.trigger.apply(n,t))){if(!i&&!l.noBubble&&!S.isWindow(n)){for(s=l.delegateType||p,fe.test(s+p)||(a=a.parentNode);a;a=a.parentNode)d.push(a),u=a;u===(n.ownerDocument||f)&&d.push(u.defaultView||u.parentWindow||C)}for(c=0;(a=d[c++])&&!e.isPropagationStopped();)e.type=1<c?s:l.bindType||p,(r=(S._data(a,"events")||{})[e.type]&&S._data(a,"handle"))&&r.apply(a,t),(r=o&&a[o])&&r.apply&&R(a)&&(e.result=r.apply(a,t),!1===e.result&&e.preventDefault());if(e.type=p,!i&&!e.isDefaultPrevented()&&(!l._default||!1===l._default.apply(d.pop(),t))&&R(n)&&o&&n[p]&&!S.isWindow(n)){(u=n[o])&&(n[o]=null),S.event.triggered=p;try{n[p]()}catch(e){}S.event.triggered=void 0,u&&(n[o]=u)}return e.result}},dispatch:function(e){e=S.event.fix(e);var t,n,i,r,o,a,s=c.call(arguments),l=(S._data(this,"events")||{})[e.type]||[],u=S.event.special[e.type]||{};if((s[0]=e).delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){for(a=S.event.handlers.call(this,e,l),t=0;(r=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,void 0!==(i=((S.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,a=[],s=t.delegateCount,l=e.target;if(s&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<s;n++)void 0===i[r=(o=t[n]).selector+" "]&&(i[r]=o.needsContext?-1<S(r,this).index(l):S.find(r,this,null,[l]).length),i[r]&&i.push(o);i.length&&a.push({elem:l,handlers:i})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[S.expando])return e;var t,n,i,r=e.type,o=e,a=this.fixHooks[r];for(a||(this.fixHooks[r]=a=he.test(r)?this.mouseHooks:pe.test(r)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,e=new S.Event(o),t=i.length;t--;)e[n=i[t]]=o[n];return e.target||(e.target=o.srcElement||f),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=(i=e.target.ownerDocument||f).documentElement,n=i.body,e.pageX=t.clientX+(r&&r.scrollLeft||n&&n.scrollLeft||0)-(r&&r.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||n&&n.scrollTop||0)-(r&&r.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ye()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===ye()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(S.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return S.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},S.removeEvent=f.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&(void 0===e[i]&&(e[i]=null),e.detachEvent(i,n))},S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ge:ve):this.type=e,t&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||S.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:ve,isPropagationStopped:ve,isImmediatePropagationStopped:ve,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ge,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ge,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ge,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,r){S.event.special[e]={delegateType:r,bindType:r,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||S.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=r),t}}}),v.submit||(S.event.special.submit={setup:function(){if(S.nodeName(this,"form"))return!1;S.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=S.nodeName(t,"input")||S.nodeName(t,"button")?S.prop(t,"form"):void 0;n&&!S._data(n,"submit")&&(S.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),S._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&S.event.simulate("submit",this.parentNode,e))},teardown:function(){if(S.nodeName(this,"form"))return!1;S.event.remove(this,"._submit")}}),v.change||(S.event.special.change={setup:function(){if(de.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(S.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),S.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),S.event.simulate("change",this,e)})),!1;S.event.add(this,"beforeactivate._change",function(e){var t=e.target;de.test(t.nodeName)&&!S._data(t,"change")&&(S.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||S.event.simulate("change",this.parentNode,e)}),S._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return S.event.remove(this,"._change"),!de.test(this.nodeName)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},function(n,i){var r=function(e){S.event.simulate(i,e.target,S.event.fix(e))};S.event.special[i]={setup:function(){var e=this.ownerDocument||this,t=S._data(e,i);t||e.addEventListener(n,r,!0),S._data(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=S._data(e,i)-1;t?S._data(e,i,t):(e.removeEventListener(n,r,!0),S._removeData(e,i))}}}),S.fn.extend({on:function(e,t,n,i){return be(this,e,t,n,i)},one:function(e,t,n,i){return be(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,S(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ve),this.each(function(){S.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){S.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}});var xe=/ jQuery\d+="(?:null|\d+)"/g,we=new RegExp("<(?:"+ne+")[\\s/>]","i"),ke=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ce=/<script|<style|<link/i,Se=/checked\s*(?:[^=]|=\s*.checked.)/i,Ee=/^true\/(.*)/,Te=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ae=ie(f).appendChild(f.createElement("div"));function Ie(e,t){return S.nodeName(e,"table")&&S.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Ne(e){return e.type=(null!==S.find.attr(e,"type"))+"/"+e.type,e}function Fe(e){var t=Ee.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Pe(e,t){if(1===t.nodeType&&S.hasData(e)){var n,i,r,o=S._data(e),a=S._data(t,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(i=0,r=s[n].length;i<r;i++)S.event.add(t,n,s[n][i]);a.data&&(a.data=S.extend({},a.data))}}function $e(e,t){var n,i,r;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!v.noCloneEvent&&t[S.expando]){for(i in(r=S._data(t)).events)S.removeEvent(t,i,r.handle);t.removeAttribute(S.expando)}"script"===n&&t.text!==e.text?(Ne(t).text=e.text,Fe(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),v.html5Clone&&e.innerHTML&&!S.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Z.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function De(n,i,r,o){i=m.apply([],i);var e,t,a,s,l,u,c=0,d=n.length,p=d-1,h=i[0],f=S.isFunction(h);if(f||1<d&&"string"==typeof h&&!v.checkClone&&Se.test(h))return n.each(function(e){var t=n.eq(e);f&&(i[0]=h.call(this,e,t.html())),De(t,i,r,o)});if(d&&(e=(u=ce(i,n[0].ownerDocument,!1,n,o)).firstChild,1===u.childNodes.length&&(u=e),e||o)){for(a=(s=S.map(oe(u,"script"),Ne)).length;c<d;c++)t=u,c!==p&&(t=S.clone(t,!0,!0),a&&S.merge(s,oe(t,"script"))),r.call(n[c],t,c);if(a)for(l=s[s.length-1].ownerDocument,S.map(s,Fe),c=0;c<a;c++)t=s[c],ee.test(t.type||"")&&!S._data(t,"globalEval")&&S.contains(l,t)&&(t.src?S._evalUrl&&S._evalUrl(t.src):S.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Te,"")));u=e=null}return n}function Le(e,t,n){for(var i,r=t?S.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||S.cleanData(oe(i)),i.parentNode&&(n&&S.contains(i.ownerDocument,i)&&ae(oe(i,"script")),i.parentNode.removeChild(i));return e}S.extend({htmlPrefilter:function(e){return e.replace(ke,"<$1></$2>")},clone:function(e,t,n){var i,r,o,a,s,l=S.contains(e.ownerDocument,e);if(v.html5Clone||S.isXMLDoc(e)||!we.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Ae.innerHTML=e.outerHTML,Ae.removeChild(o=Ae.firstChild)),!(v.noCloneEvent&&v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||S.isXMLDoc(e)))for(i=oe(o),s=oe(e),a=0;null!=(r=s[a]);++a)i[a]&&$e(r,i[a]);if(t)if(n)for(s=s||oe(e),i=i||oe(o),a=0;null!=(r=s[a]);a++)Pe(r,i[a]);else Pe(e,o);return 0<(i=oe(o,"script")).length&&ae(i,!l&&oe(e,"script")),i=s=r=null,o},cleanData:function(e,t){for(var n,i,r,o,a=0,s=S.expando,l=S.cache,u=v.attributes,c=S.event.special;null!=(n=e[a]);a++)if((t||R(n))&&(o=(r=n[s])&&l[r])){if(o.events)for(i in o.events)c[i]?S.event.remove(n,i):S.removeEvent(n,i,o.handle);l[r]&&(delete l[r],u||void 0===n.removeAttribute?n[s]=void 0:n.removeAttribute(s),d.push(r))}}}),S.fn.extend({domManip:De,detach:function(e){return Le(this,e,!0)},remove:function(e){return Le(this,e)},text:function(e){return Y(this,function(e){return void 0===e?S.text(this):this.empty().append((this[0]&&this[0].ownerDocument||f).createTextNode(e))},null,e,arguments.length)},append:function(){return De(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)})},prepend:function(){return De(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&S.cleanData(oe(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&S.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return S.clone(this,e,t)})},html:function(e){return Y(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(xe,""):void 0;if("string"==typeof e&&!Ce.test(e)&&(v.htmlSerialize||!we.test(e))&&(v.leadingWhitespace||!te.test(e))&&!re[(J.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(oe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return De(this,arguments,function(e){var t=this.parentNode;S.inArray(this,n)<0&&(S.cleanData(oe(this)),t&&t.replaceChild(e,this))},n)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){S.fn[e]=function(e){for(var t,n=0,i=[],r=S(e),o=r.length-1;n<=o;n++)t=n===o?this:this.clone(!0),S(r[n])[a](t),s.apply(i,t.get());return this.pushStack(i)}});var Oe,Re={HTML:"block",BODY:"block"};function Me(e,t){var n=S(t.createElement(e)).appendTo(t.body),i=S.css(n[0],"display");return n.detach(),i}function je(e){var t=f,n=Re[e];return n||("none"!==(n=Me(e,t))&&n||((t=((Oe=(Oe||S("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||Oe[0].contentDocument).document).write(),t.close(),n=Me(e,t),Oe.detach()),Re[e]=n),n}var _e=/^margin/,Be=new RegExp("^("+z+")(?!px)[a-z%]+$","i"),qe=function(e,t,n,i){var r,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=a[o];return r},He=f.documentElement;!function(){var i,r,o,a,s,l,u=f.createElement("div"),c=f.createElement("div");function e(){var e,t,n=f.documentElement;n.appendChild(u),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=o=l=!1,r=s=!0,C.getComputedStyle&&(t=C.getComputedStyle(c),i="1%"!==(t||{}).top,l="2px"===(t||{}).marginLeft,o="4px"===(t||{width:"4px"}).width,c.style.marginRight="50%",r="4px"===(t||{marginRight:"4px"}).marginRight,(e=c.appendChild(f.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",c.style.width="1px",s=!parseFloat((C.getComputedStyle(e)||{}).marginRight),c.removeChild(e)),c.style.display="none",(a=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(e=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===e[0].offsetHeight)&&(e[0].style.display="",e[1].style.display="none",a=0===e[0].offsetHeight)),n.removeChild(u)}c.style&&(c.style.cssText="float:left;opacity:.5",v.opacity="0.5"===c.style.opacity,v.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,(u=f.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",u.appendChild(c),v.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,S.extend(v,{reliableHiddenOffsets:function(){return null==i&&e(),a},boxSizingReliable:function(){return null==i&&e(),o},pixelMarginRight:function(){return null==i&&e(),r},pixelPosition:function(){return null==i&&e(),i},reliableMarginRight:function(){return null==i&&e(),s},reliableMarginLeft:function(){return null==i&&e(),l}}))}();var ze,Ue,We=/^(top|right|bottom|left)$/;function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}C.getComputedStyle?(ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)},Ue=function(e,t,n){var i,r,o,a,s=e.style;return""!==(a=(n=n||ze(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==a||S.contains(e.ownerDocument,e)||(a=S.style(e,t)),n&&!v.pixelMarginRight()&&Be.test(a)&&_e.test(t)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o),void 0===a?a:a+""}):He.currentStyle&&(ze=function(e){return e.currentStyle},Ue=function(e,t,n){var i,r,o,a,s=e.style;return null==(a=(n=n||ze(e))?n[t]:void 0)&&s&&s[t]&&(a=s[t]),Be.test(a)&&!We.test(t)&&(i=s.left,(o=(r=e.runtimeStyle)&&r.left)&&(r.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=i,o&&(r.left=o)),void 0===a?a:a+""||"auto"});var Ge=/alpha\([^)]*\)/i,Qe=/opacity\s*=\s*([^)]*)/i,Ke=/^(none|table(?!-c[ea]).+)/,Xe=new RegExp("^("+z+")(.*)$","i"),Ye={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"},Je=["Webkit","O","Moz","ms"],et=f.createElement("div").style;function tt(e){if(e in et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Je.length;n--;)if((e=Je[n]+t)in et)return e}function nt(e,t){for(var n,i,r,o=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(o[a]=S._data(i,"olddisplay"),n=i.style.display,t?(o[a]||"none"!==n||(i.style.display=""),""===i.style.display&&V(i)&&(o[a]=S._data(i,"olddisplay",je(i.nodeName)))):(r=V(i),(n&&"none"!==n||!r)&&S._data(i,"olddisplay",r?n:S.css(i,"display"))));for(a=0;a<s;a++)(i=e[a]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[a]||"":"none"));return e}function it(e,t,n){var i=Xe.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function rt(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=S.css(e,n+W[o],!0,r)),i?("content"===n&&(a-=S.css(e,"padding"+W[o],!0,r)),"margin"!==n&&(a-=S.css(e,"border"+W[o]+"Width",!0,r))):(a+=S.css(e,"padding"+W[o],!0,r),"padding"!==n&&(a+=S.css(e,"border"+W[o]+"Width",!0,r)));return a}function ot(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=ze(e),a=v.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(((r=Ue(e,t,o))<0||null==r)&&(r=e.style[t]),Be.test(r))return r;i=a&&(v.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+rt(e,t,n||(a?"border":"content"),i,o)+"px"}function at(e,t,n,i,r){return new at.prototype.init(e,t,n,i,r)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ue(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:v.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,a,s=S.camelCase(t),l=e.style;if(t=S.cssProps[s]||(S.cssProps[s]=tt(s)||s),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,i))?r:l[t];if("string"===(o=typeof n)&&(r=U.exec(n))&&r[1]&&(n=G(e,t,r),o="number"),null!=n&&n==n&&("number"===o&&(n+=r&&r[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,i)))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var r,o,a,s=S.camelCase(t);return t=S.cssProps[s]||(S.cssProps[s]=tt(s)||s),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=Ue(e,t,i)),"normal"===o&&t in Ze&&(o=Ze[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),S.each(["height","width"],function(e,r){S.cssHooks[r]={get:function(e,t,n){if(t)return Ke.test(S.css(e,"display"))&&0===e.offsetWidth?qe(e,Ye,function(){return ot(e,r,n)}):ot(e,r,n)},set:function(e,t,n){var i=n&&ze(e);return it(0,t,n?rt(e,r,n,v.boxSizing&&"border-box"===S.css(e,"boxSizing",!1,i),i):0)}}}),v.opacity||(S.cssHooks.opacity={get:function(e,t){return Qe.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=S.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";((n.zoom=1)<=t||""===t)&&""===S.trim(o.replace(Ge,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=Ge.test(o)?o.replace(Ge,r):o+" "+r)}}),S.cssHooks.marginRight=Ve(v.reliableMarginRight,function(e,t){if(t)return qe(e,{display:"inline-block"},Ue,[e,"marginRight"])}),S.cssHooks.marginLeft=Ve(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ue(e,"marginLeft"))||(S.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(r,o){S.cssHooks[r+o]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[r+W[t]+o]=i[t]||i[t-2]||i[0];return n}},_e.test(r)||(S.cssHooks[r+o].set=it)}),S.fn.extend({css:function(e,t){return Y(this,function(e,t,n){var i,r,o={},a=0;if(S.isArray(t)){for(i=ze(e),r=t.length;a<r;a++)o[t[a]]=S.css(e,t[a],!1,i);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)},e,t,1<arguments.length)},show:function(){return nt(this,!0)},hide:function(){return nt(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){V(this)?S(this).show():S(this).hide()})}}),((S.Tween=at).prototype={constructor:at,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(S.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=S.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[S.cssProps[e.prop]]&&!S.cssHooks[e.prop]?e.elem[e.prop]=e.now:S.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},S.fx=at.prototype.init,S.fx.step={};var st,lt,ut,ct,dt,pt,ht,ft=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){return C.setTimeout(function(){st=void 0}),st=S.now()}function vt(e,t){var n,i={height:e},r=0;for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=W[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function yt(e,t,n){for(var i,r=(bt.tweeners[t]||[]).concat(bt.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,t,e))return i}function bt(o,e,t){var n,a,i=0,r=bt.prefilters.length,s=S.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var e=st||gt(),t=Math.max(0,u.startTime+u.duration-e),n=1-(t/u.duration||0),i=0,r=u.tweens.length;i<r;i++)u.tweens[i].run(n);return s.notifyWith(o,[u,n,t]),n<1&&r?t:(s.resolveWith(o,[u]),!1)},u=s.promise({elem:o,props:S.extend({},e),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||gt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=S.Tween(o,u.opts,e,t,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(n),n},stop:function(e){var t=0,n=e?u.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)u.tweens[t].run(1);return e?(s.notifyWith(o,[u,1,0]),s.resolveWith(o,[u,e])):s.rejectWith(o,[u,e]),this}}),c=u.props;for(!function(e,t){var n,i,r,o,a;for(n in e)if(r=t[i=S.camelCase(n)],o=e[n],S.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),(a=S.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}(c,u.opts.specialEasing);i<r;i++)if(n=bt.prefilters[i].call(u,o,c,u.opts))return S.isFunction(n.stop)&&(S._queueHooks(u.elem,u.opts.queue).stop=S.proxy(n.stop,n)),n;return S.map(c,yt,u),S.isFunction(u.opts.start)&&u.opts.start.call(o,u),S.fx.timer(S.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}S.Animation=S.extend(bt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return G(n.elem,e,U.exec(t),n),n}]},tweener:function(e,t){S.isFunction(e)?(t=e,e=["*"]):e=e.match($);for(var n,i=0,r=e.length;i<r;i++)n=e[i],bt.tweeners[n]=bt.tweeners[n]||[],bt.tweeners[n].unshift(t)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c=this,d={},p=t.style,h=t.nodeType&&V(t),f=S._data(t,"fxshow");for(i in n.queue||(null==(s=S._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,l=s.empty.fire,s.empty.fire=function(){s.unqueued||l()}),s.unqueued++,c.always(function(){c.always(function(){s.unqueued--,S.queue(t,"fx").length||s.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(u=S.css(t,"display"))?S._data(t,"olddisplay")||je(t.nodeName):u)&&"none"===S.css(t,"float")&&(v.inlineBlockNeedsLayout&&"inline"!==je(t.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",v.shrinkWrapBlocks()||c.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),e)if(r=e[i],ft.exec(r)){if(delete e[i],o=o||"toggle"===r,r===(h?"hide":"show")){if("show"!==r||!f||void 0===f[i])continue;h=!0}d[i]=f&&f[i]||S.style(t,i)}else u=void 0;if(S.isEmptyObject(d))"inline"===("none"===u?je(t.nodeName):u)&&(p.display=u);else for(i in f?"hidden"in f&&(h=f.hidden):f=S._data(t,"fxshow",{}),o&&(f.hidden=!h),h?S(t).show():c.done(function(){S(t).hide()}),c.done(function(){var e;for(e in S._removeData(t,"fxshow"),d)S.style(t,e,d[e])}),d)a=yt(h?f[i]:0,i,c),i in f||(f[i]=a.start,h&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?bt.prefilters.unshift(e):bt.prefilters.push(e)}}),S.speed=function(e,t,n){var i=e&&"object"==typeof e?S.extend({},e):{complete:n||!n&&t||S.isFunction(e)&&e,duration:e,easing:n&&t||t&&!S.isFunction(t)&&t};return i.duration=S.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in S.fx.speeds?S.fx.speeds[i.duration]:S.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){S.isFunction(i.old)&&i.old.call(this),i.queue&&S.dequeue(this,i.queue)},i},S.fn.extend({fadeTo:function(e,t,n,i){return this.filter(V).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){var r=S.isEmptyObject(t),o=S.speed(e,n,i),a=function(){var e=bt(this,S.extend({},t),o);(r||S._data(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(r,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof r&&(o=e,e=r,r=void 0),e&&!1!==r&&this.queue(r||"fx",[]),this.each(function(){var e=!0,t=null!=r&&r+"queueHooks",n=S.timers,i=S._data(this);if(t)i[t]&&i[t].stop&&a(i[t]);else for(t in i)i[t]&&i[t].stop&&mt.test(t)&&a(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=r&&n[t].queue!==r||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||S.dequeue(this,r)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=S._data(this),n=t[a+"queue"],i=t[a+"queueHooks"],r=S.timers,o=n?n.length:0;for(t.finish=!0,S.queue(this,a,[]),i&&i.stop&&i.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===a&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),S.each(["toggle","show","hide"],function(e,i){var r=S.fn[i];S.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?r.apply(this,arguments):this.animate(vt(i,!0),e,t,n)}}),S.each({slideDown:vt("show"),slideUp:vt("hide"),slideToggle:vt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){S.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),S.timers=[],S.fx.tick=function(){var e,t=S.timers,n=0;for(st=S.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||S.fx.stop(),st=void 0},S.fx.timer=function(e){S.timers.push(e),e()?S.fx.start():S.timers.pop()},S.fx.interval=13,S.fx.start=function(){lt||(lt=C.setInterval(S.fx.tick,S.fx.interval))},S.fx.stop=function(){C.clearInterval(lt),lt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(i,e){return i=S.fx&&S.fx.speeds[i]||i,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,i);t.stop=function(){C.clearTimeout(n)}})},ct=f.createElement("input"),dt=f.createElement("div"),pt=f.createElement("select"),ht=pt.appendChild(f.createElement("option")),(dt=f.createElement("div")).setAttribute("className","t"),dt.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ut=dt.getElementsByTagName("a")[0],ct.setAttribute("type","checkbox"),dt.appendChild(ct),(ut=dt.getElementsByTagName("a")[0]).style.cssText="top:1px",v.getSetAttribute="t"!==dt.className,v.style=/top/.test(ut.getAttribute("style")),v.hrefNormalized="/a"===ut.getAttribute("href"),v.checkOn=!!ct.value,v.optSelected=ht.selected,v.enctype=!!f.createElement("form").enctype,pt.disabled=!0,v.optDisabled=!ht.disabled,(ct=f.createElement("input")).setAttribute("value",""),v.input=""===ct.getAttribute("value"),ct.value="t",ct.setAttribute("type","radio"),v.radioValue="t"===ct.value;var xt=/\r/g,wt=/[\x20\t\r\n\f]+/g;S.fn.extend({val:function(n){var i,e,r,t=this[0];return arguments.length?(r=S.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=r?n.call(this,e,S(this).val()):n)?t="":"number"==typeof t?t+="":S.isArray(t)&&(t=S.map(t,function(e){return null==e?"":e+""})),(i=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in i&&void 0!==i.set(this,t,"value")||(this.value=t))})):t?(i=S.valHooks[t.type]||S.valHooks[t.nodeName.toLowerCase()])&&"get"in i&&void 0!==(e=i.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(xt,""):null==e?"":e:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:S.trim(S.text(e)).replace(wt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],s=o?r+1:i.length,l=r<0?s:o?r:0;l<s;l++)if(((n=i[l]).selected||l===r)&&(v.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!S.nodeName(n.parentNode,"optgroup"))){if(t=S(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,o=S.makeArray(t),a=r.length;a--;)if(i=r[a],-1<S.inArray(S.valHooks.option.get(i),o))try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),r}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(e,t){if(S.isArray(t))return e.checked=-1<S.inArray(S(e).val(),t)}},v.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var kt,Ct,St=S.expr.attrHandle,Et=/^(?:checked|selected)$/i,Tt=v.getSetAttribute,At=v.input;S.fn.extend({attr:function(e,t){return Y(this,S.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){S.removeAttr(this,e)})}}),S.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(t=t.toLowerCase(),r=S.attrHooks[t]||(S.expr.match.bool.test(t)?Ct:kt)),void 0!==n?null===n?void S.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=S.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&S.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match($);if(o&&1===e.nodeType)for(;n=o[r++];)i=S.propFix[n]||n,S.expr.match.bool.test(n)?At&&Tt||!Et.test(n)?e[i]=!1:e[S.camelCase("default-"+n)]=e[i]=!1:S.attr(e,n,""),e.removeAttribute(Tt?n:i)}}),Ct={set:function(e,t,n){return!1===t?S.removeAttr(e,n):At&&Tt||!Et.test(n)?e.setAttribute(!Tt&&S.propFix[n]||n,n):e[S.camelCase("default-"+n)]=e[n]=!0,n}},S.each(S.expr.match.bool.source.match(/\w+/g),function(e,t){var o=St[t]||S.find.attr;At&&Tt||!Et.test(t)?St[t]=function(e,t,n){var i,r;return n||(r=St[t],St[t]=i,i=null!=o(e,t,n)?t.toLowerCase():null,St[t]=r),i}:St[t]=function(e,t,n){if(!n)return e[S.camelCase("default-"+t)]?t.toLowerCase():null}}),At&&Tt||(S.attrHooks.value={set:function(e,t,n){if(!S.nodeName(e,"input"))return kt&&kt.set(e,t,n);e.defaultValue=t}}),Tt||(kt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},St.id=St.name=St.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},S.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:kt.set},S.attrHooks.contenteditable={set:function(e,t,n){kt.set(e,""!==t&&t,n)}},S.each(["width","height"],function(e,n){S.attrHooks[n]={set:function(e,t){if(""===t)return e.setAttribute(n,"auto"),t}}})),v.style||(S.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var It=/^(?:input|select|textarea|button|object)$/i,Nt=/^(?:a|area)$/i;S.fn.extend({prop:function(e,t){return Y(this,S.prop,e,t,1<arguments.length)},removeProp:function(e){return e=S.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(e){}})}}),S.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,r=S.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):It.test(e.nodeName)||Nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.hrefNormalized||S.each(["href","src"],function(e,t){S.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),v.optSelected||(S.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),v.enctype||(S.propFix.enctype="encoding");var Ft=/[\t\r\n\f]/g;function Pt(e){return S.attr(e,"class")||""}S.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(S.isFunction(t))return this.each(function(e){S(this).addClass(t.call(this,e,Pt(this)))});if("string"==typeof t&&t)for(e=t.match($)||[];n=this[l++];)if(r=Pt(n),i=1===n.nodeType&&(" "+r+" ").replace(Ft," ")){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=S.trim(i))&&S.attr(n,"class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(S.isFunction(t))return this.each(function(e){S(this).removeClass(t.call(this,e,Pt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match($)||[];n=this[l++];)if(r=Pt(n),i=1===n.nodeType&&(" "+r+" ").replace(Ft," ")){for(a=0;o=e[a++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(s=S.trim(i))&&S.attr(n,"class",s)}return this},toggleClass:function(r,t){var o=typeof r;return"boolean"==typeof t&&"string"===o?t?this.addClass(r):this.removeClass(r):S.isFunction(r)?this.each(function(e){S(this).toggleClass(r.call(this,e,Pt(this),t),t)}):this.each(function(){var e,t,n,i;if("string"===o)for(t=0,n=S(this),i=r.match($)||[];e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==r&&"boolean"!==o||((e=Pt(this))&&S._data(this,"__className__",e),S.attr(this,"class",e||!1===r?"":S._data(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&-1<(" "+Pt(n)+" ").replace(Ft," ").indexOf(t))return!0;return!1}}),S.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),S.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var $t=C.location,Dt=S.now(),Lt=/\?/,Ot=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;S.parseJSON=function(e){if(C.JSON&&C.JSON.parse)return C.JSON.parse(e+"");var r,o=null,t=S.trim(e+"");return t&&!S.trim(t.replace(Ot,function(e,t,n,i){return r&&t&&(o=0),0===o?e:(r=n||t,o+=!i-!n,"")}))?Function("return "+t)():S.error("Invalid JSON: "+e)},S.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{C.DOMParser?t=(new C.DOMParser).parseFromString(e,"text/xml"):((t=new C.ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e))}catch(e){t=void 0}return t&&t.documentElement&&!t.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+e),t};var Rt=/#.*$/,Mt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,_t=/^(?:GET|HEAD)$/,Bt=/^\/\//,qt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ht={},zt={},Ut="*/".concat("*"),Wt=$t.href,Vt=qt.exec(Wt.toLowerCase())||[];function Gt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,r=e.toLowerCase().match($)||[];if(S.isFunction(t))for(;n=r[i++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Qt(t,r,o,a){var s={},l=t===zt;function u(e){var i;return s[e]=!0,S.each(t[e]||[],function(e,t){var n=t(r,o,a);return"string"!=typeof n||l||s[n]?l?!(i=n):void 0:(r.dataTypes.unshift(n),u(n),!1)}),i}return u(r.dataTypes[0])||!s["*"]&&u("*")}function Kt(e,t){var n,i,r=S.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((r[i]?e:n||(n={}))[i]=t[i]);return n&&S.extend(!0,e,n),e}S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Wt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Vt[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":S.parseJSON,"text xml":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,S.ajaxSettings),t):Kt(S.ajaxSettings,e)},ajaxPrefilter:Gt(Ht),ajaxTransport:Gt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,c,d,p,h,f,r,m=S.ajaxSetup({},t),g=m.context||m,v=m.context&&(g.nodeType||g.jquery)?S(g):S.event,y=S.Deferred(),b=S.Callbacks("once memory"),x=m.statusCode||{},o={},a={},w=0,s="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!r)for(r={};t=jt.exec(d);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?d:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=a[n]=a[n]||e,o[e]=t),this},overrideMimeType:function(e){return w||(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)x[t]=[x[t],e[t]];else k.always(e[k.status]);return this},abort:function(e){var t=e||s;return f&&f.abort(t),l(0,t),this}};if(y.promise(k).complete=b.add,k.success=k.done,k.error=k.fail,m.url=((e||m.url||Wt)+"").replace(Rt,"").replace(Bt,Vt[1]+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=S.trim(m.dataType||"*").toLowerCase().match($)||[""],null==m.crossDomain&&(n=qt.exec(m.url.toLowerCase()),m.crossDomain=!(!n||n[1]===Vt[1]&&n[2]===Vt[2]&&(n[3]||("http:"===n[1]?"80":"443"))===(Vt[3]||("http:"===Vt[1]?"80":"443")))),m.data&&m.processData&&"string"!=typeof m.data&&(m.data=S.param(m.data,m.traditional)),Qt(Ht,m,t,k),2===w)return k;for(i in(h=S.event&&m.global)&&0==S.active++&&S.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!_t.test(m.type),c=m.url,m.hasContent||(m.data&&(c=m.url+=(Lt.test(c)?"&":"?")+m.data,delete m.data),!1===m.cache&&(m.url=Mt.test(c)?c.replace(Mt,"$1_="+Dt++):c+(Lt.test(c)?"&":"?")+"_="+Dt++)),m.ifModified&&(S.lastModified[c]&&k.setRequestHeader("If-Modified-Since",S.lastModified[c]),S.etag[c]&&k.setRequestHeader("If-None-Match",S.etag[c])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&k.setRequestHeader("Content-Type",m.contentType),k.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Ut+"; q=0.01":""):m.accepts["*"]),m.headers)k.setRequestHeader(i,m.headers[i]);if(m.beforeSend&&(!1===m.beforeSend.call(g,k,m)||2===w))return k.abort();for(i in s="abort",{success:1,error:1,complete:1})k[i](m[i]);if(f=Qt(zt,m,t,k)){if(k.readyState=1,h&&v.trigger("ajaxSend",[k,m]),2===w)return k;m.async&&0<m.timeout&&(p=C.setTimeout(function(){k.abort("timeout")},m.timeout));try{w=1,f.send(o,l)}catch(e){if(!(w<2))throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,i){var r,o,a,s,l,u=t;2!==w&&(w=2,p&&C.clearTimeout(p),f=void 0,d=i||"",k.readyState=0<e?4:0,r=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var i,r,o,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}(m,k,n)),s=function(e,t,n,i){var r,o,a,s,l,u={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(m,s,k,r),r?(m.ifModified&&((l=k.getResponseHeader("Last-Modified"))&&(S.lastModified[c]=l),(l=k.getResponseHeader("etag"))&&(S.etag[c]=l)),204===e||"HEAD"===m.type?u="nocontent":304===e?u="notmodified":(u=s.state,o=s.data,r=!(a=s.error))):(a=u,!e&&u||(u="error",e<0&&(e=0))),k.status=e,k.statusText=(t||u)+"",r?y.resolveWith(g,[o,u,k]):y.rejectWith(g,[k,u,a]),k.statusCode(x),x=void 0,h&&v.trigger(r?"ajaxSuccess":"ajaxError",[k,m,r?o:a]),b.fireWith(g,[k,u]),h&&(v.trigger("ajaxComplete",[k,m]),--S.active||S.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],function(e,r){S[r]=function(e,t,n,i){return S.isFunction(t)&&(i=i||n,n=t,t=void 0),S.ajax(S.extend({url:e,type:r,dataType:i,data:t,success:n},S.isPlainObject(e)&&e))}}),S._evalUrl=function(e){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},S.fn.extend({wrapAll:function(t){if(S.isFunction(t))return this.each(function(e){S(this).wrapAll(t.call(this,e))});if(this[0]){var e=S(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(n){return S.isFunction(n)?this.each(function(e){S(this).wrapInner(n.call(this,e))}):this.each(function(){var e=S(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=S.isFunction(t);return this.each(function(e){S(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(){return this.parent().each(function(){S.nodeName(this,"body")||S(this).replaceWith(this.childNodes)}).end()}}),S.expr.filters.hidden=function(e){return v.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:function(e){if(!S.contains(e.ownerDocument||f,e))return!0;for(;e&&1===e.nodeType;){if("none"===((t=e).style&&t.style.display||S.css(t,"display"))||"hidden"===e.type)return!0;e=e.parentNode}var t;return!1}(e)},S.expr.filters.visible=function(e){return!S.expr.filters.hidden(e)};var Xt=/%20/g,Yt=/\[\]$/,Zt=/\r?\n/g,Jt=/^(?:submit|button|image|reset|file)$/i,en=/^(?:input|select|textarea|keygen)/i;function tn(n,e,i,r){var t;if(S.isArray(e))S.each(e,function(e,t){i||Yt.test(n)?r(n,t):tn(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,i,r)});else if(i||"object"!==S.type(e))r(n,e);else for(t in e)tn(n+"["+t+"]",e[t],i,r)}S.param=function(e,t){var n,i=[],r=function(e,t){t=S.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=S.ajaxSettings&&S.ajaxSettings.traditional),S.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,function(){r(this.name,this.value)});else for(n in e)tn(n,e[n],t,r);return i.join("&").replace(Xt,"+")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&en.test(this.nodeName)&&!Jt.test(e)&&(this.checked||!Z.test(e))}).map(function(e,t){var n=S(this).val();return null==n?null:S.isArray(n)?S.map(n,function(e){return{name:t.name,value:e.replace(Zt,"\r\n")}}):{name:t.name,value:n.replace(Zt,"\r\n")}}).get()}}),S.ajaxSettings.xhr=void 0!==C.ActiveXObject?function(){return this.isLocal?sn():8<f.documentMode?an():/^(get|post|head|put|delete|options)$/i.test(this.type)&&an()||sn()}:an;var nn=0,rn={},on=S.ajaxSettings.xhr();function an(){try{return new C.XMLHttpRequest}catch(e){}}function sn(){try{return new C.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}C.attachEvent&&C.attachEvent("onunload",function(){for(var e in rn)rn[e](void 0,!0)}),v.cors=!!on&&"withCredentials"in on,(on=v.ajax=!!on)&&S.ajaxTransport(function(l){var u;if(!l.crossDomain||v.cors)return{send:function(e,o){var t,a=l.xhr(),s=++nn;if(a.open(l.type,l.url,l.async,l.username,l.password),l.xhrFields)for(t in l.xhrFields)a[t]=l.xhrFields[t];for(t in l.mimeType&&a.overrideMimeType&&a.overrideMimeType(l.mimeType),l.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)void 0!==e[t]&&a.setRequestHeader(t,e[t]+"");a.send(l.hasContent&&l.data||null),u=function(e,t){var n,i,r;if(u&&(t||4===a.readyState))if(delete rn[s],u=void 0,a.onreadystatechange=S.noop,t)4!==a.readyState&&a.abort();else{r={},n=a.status,"string"==typeof a.responseText&&(r.text=a.responseText);try{i=a.statusText}catch(e){i=""}n||!l.isLocal||l.crossDomain?1223===n&&(n=204):n=r.text?200:404}r&&o(n,i,r,a.getAllResponseHeaders())},l.async?4===a.readyState?C.setTimeout(u):a.onreadystatechange=rn[s]=u:u()},abort:function(){u&&u(void 0,!0)}}}),S.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return S.globalEval(e),e}}}),S.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),S.ajaxTransport("script",function(t){if(t.crossDomain){var i,r=f.head||S("head")[0]||f.documentElement;return{send:function(e,n){(i=f.createElement("script")).async=!0,t.scriptCharset&&(i.charset=t.scriptCharset),i.src=t.url,i.onload=i.onreadystatechange=function(e,t){(t||!i.readyState||/loaded|complete/.test(i.readyState))&&(i.onload=i.onreadystatechange=null,i.parentNode&&i.parentNode.removeChild(i),i=null,t||n(200,"success"))},r.insertBefore(i,r.firstChild)},abort:function(){i&&i.onload(void 0,!0)}}}});var ln=[],un=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=ln.pop()||S.expando+"_"+Dt++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,a=!1!==e.jsonp&&(un.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&un.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=S.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(un,"$1"+i):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||S.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=C[i],C[i]=function(){o=arguments},n.always(function(){void 0===r?S(C).removeProp(i):C[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,ln.push(i)),o&&S.isFunction(r)&&r(o[0]),o=r=void 0}),"script"}),S.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||f;var i=x.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=ce([e],t,r),r&&r.length&&S(r).remove(),S.merge([],i.childNodes))};var cn=S.fn.load;function dn(e){return S.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}S.fn.load=function(e,t,n){if("string"!=typeof e&&cn)return cn.apply(this,arguments);var i,r,o,a=this,s=e.indexOf(" ");return-1<s&&(i=S.trim(e.slice(s,e.length)),e=e.slice(0,s)),S.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),0<a.length&&S.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(i?S("<div>").append(S.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.expr.filters.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var i,r,o,a,s,l,u=S.css(e,"position"),c=S(e),d={};"static"===u&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),l=S.css(e,"left"),("absolute"===u||"fixed"===u)&&-1<S.inArray("auto",[o,l])?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),S.isFunction(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):c.css(d)}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},r=this[0],o=r&&r.ownerDocument;return o?(e=o.documentElement,S.contains(e,r)?(void 0!==r.getBoundingClientRect&&(i=r.getBoundingClientRect()),n=dn(o),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===S.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),S.nodeName(e[0],"html")||(n=e.offset()),n.top+=S.css(e[0],"borderTopWidth",!0),n.left+=S.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-S.css(i,"marginTop",!0),left:t.left-n.left-S.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&!S.nodeName(e,"html")&&"static"===S.css(e,"position");)e=e.offsetParent;return e||He})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o=/Y/.test(r);S.fn[t]=function(e){return Y(this,function(e,t,n){var i=dn(e);if(void 0===n)return i?r in i?i[r]:i.document.documentElement[t]:e[t];i?i.scrollTo(o?S(i).scrollLeft():n,o?n:S(i).scrollTop()):e[t]=n},t,e,arguments.length,null)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=Ve(v.pixelPosition,function(e,t){if(t)return t=Ue(e,n),Be.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(o,a){S.each({padding:"inner"+o,content:a,"":"outer"+o},function(i,e){S.fn[e]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return Y(this,function(e,t,n){var i;return S.isWindow(e)?e.document.documentElement["client"+o]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+o],i["scroll"+o],e.body["offset"+o],i["offset"+o],i["client"+o])):void 0===n?S.css(e,t,r):S.style(e,t,n,r)},a,n?e:void 0,n,null)}})}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),S.fn.size=function(){return this.length},S.fn.andSelf=S.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var pn=C.jQuery,hn=C.$;return S.noConflict=function(e){return C.$===S&&(C.$=hn),e&&C.jQuery===S&&(C.jQuery=pn),S},e||(C.jQuery=C.$=S),S}),function(T){jQuery.fn.extend({slimScroll:function(S){var E=T.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},S);return this.each(function(){var i,e,r,n,o,a,s,l,u="<div></div>",c=30,d=!1,p=T(this);if(p.parent().hasClass(E.wrapperClass)){var h=p.scrollTop();if(v=p.parent().find("."+E.barClass),g=p.parent().find("."+E.railClass),w(),T.isPlainObject(S)){if("height"in S&&"auto"==S.height){p.parent().css("height","auto"),p.css("height","auto");var f=p.parent().parent().height();p.parent().css("height",f),p.css("height",f)}if("scrollTo"in S)h=parseInt(E.scrollTo);else if("scrollBy"in S)h+=parseInt(E.scrollBy);else if("destroy"in S)return v.remove(),g.remove(),void p.unwrap();x(h,!1,!0)}}else{E.height="auto"==E.height?p.parent().height():E.height;var m=T(u).addClass(E.wrapperClass).css({position:"relative",overflow:"hidden",width:E.width,height:E.height});p.css({overflow:"hidden",width:E.width,height:E.height});var g=T(u).addClass(E.railClass).css({width:E.size,height:"100%",position:"absolute",top:0,display:E.alwaysVisible&&E.railVisible?"block":"none","border-radius":E.railBorderRadius,background:E.railColor,opacity:E.railOpacity,zIndex:90}),v=T(u).addClass(E.barClass).css({background:E.color,width:E.size,position:"absolute",top:0,opacity:E.opacity,display:E.alwaysVisible?"block":"none","border-radius":E.borderRadius,BorderRadius:E.borderRadius,MozBorderRadius:E.borderRadius,WebkitBorderRadius:E.borderRadius,zIndex:99}),y="right"==E.position?{right:E.distance}:{left:E.distance};g.css(y),v.css(y),p.wrap(m),p.parent().append(v),p.parent().append(g),E.railDraggable&&v.bind("mousedown",function(e){var n=T(document);return r=!0,t=parseFloat(v.css("top")),pageY=e.pageY,n.bind("mousemove.slimscroll",function(e){currTop=t+e.pageY-pageY,v.css("top",currTop),x(0,v.position().top,!1)}),n.bind("mouseup.slimscroll",function(e){r=!1,C(),n.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(e){return e.stopPropagation(),e.preventDefault(),!1}),g.hover(function(){k()},function(){C()}),v.hover(function(){e=!0},function(){e=!1}),p.hover(function(){i=!0,k(),C()},function(){i=!1,C()}),p.bind("touchstart",function(e,t){e.originalEvent.touches.length&&(o=e.originalEvent.touches[0].pageY)}),p.bind("touchmove",function(e){(d||e.originalEvent.preventDefault(),e.originalEvent.touches.length)&&(x((o-e.originalEvent.touches[0].pageY)/E.touchScrollStep,!0),o=e.originalEvent.touches[0].pageY)}),w(),"bottom"===E.start?(v.css({top:p.outerHeight()-v.outerHeight()}),x(0,!0)):"top"!==E.start&&(x(T(E.start).position().top,null,!0),E.alwaysVisible||v.hide()),function(){window.addEventListener?(this.addEventListener("DOMMouseScroll",b,!1),this.addEventListener("mousewheel",b,!1)):document.attachEvent("onmousewheel",b)}()}function b(e){if(i){var t=0;(e=e||window.event).wheelDelta&&(t=-e.wheelDelta/120),e.detail&&(t=e.detail/3);var n=e.target||e.srcTarget||e.srcElement;T(n).closest("."+E.wrapperClass).is(p.parent())&&x(t,!0),e.preventDefault&&!d&&e.preventDefault(),d||(e.returnValue=!1)}}function x(e,t,n){d=!1;var i=e,r=p.outerHeight()-v.outerHeight();if(t&&(i=parseInt(v.css("top"))+e*parseInt(E.wheelStep)/100*v.outerHeight(),i=Math.min(Math.max(i,0),r),i=0<e?Math.ceil(i):Math.floor(i),v.css({top:i+"px"})),i=(s=parseInt(v.css("top"))/(p.outerHeight()-v.outerHeight()))*(p[0].scrollHeight-p.outerHeight()),n){var o=(i=e)/p[0].scrollHeight*p.outerHeight();o=Math.min(Math.max(o,0),r),v.css({top:o+"px"})}p.scrollTop(i),p.trigger("slimscrolling",~~i),k(),C()}function w(){a=Math.max(p.outerHeight()/p[0].scrollHeight*p.outerHeight(),c),v.css({height:a+"px"});var e=a==p.outerHeight()?"none":"block";v.css({display:e})}function k(){if(w(),clearTimeout(n),s==~~s){if(d=E.allowPageScroll,l!=s){var e=0==~~s?"top":"bottom";p.trigger("slimscroll",e)}}else d=!1;l=s,a>=p.outerHeight()?d=!0:(v.stop(!0,!0).fadeIn("fast"),E.railVisible&&g.stop(!0,!0).fadeIn("fast"))}function C(){E.alwaysVisible||(n=setTimeout(function(){E.disableFadeOut&&i||e||r||(v.fadeOut("slow"),g.fadeOut("slow"))},1e3))}}),this}}),jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})}(jQuery),function(){"use strict";function e(S){S.fn._fadeIn=S.fn.fadeIn;var E=S.noop||function(){},T=/MSIE/.test(navigator.userAgent),A=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),I=(document.documentMode,S.isFunction(document.createElement("div").style.setExpression));S.blockUI=function(e){n(window,e)},S.unblockUI=function(e){P(window,e)},S.growlUI=function(e,t,n,i){var r=S('<div class="growlUI"></div>');e&&r.append("<h1>"+e+"</h1>"),t&&r.append("<h2>"+t+"</h2>"),void 0===n&&(n=3e3);var o=function(e){e=e||{},S.blockUI({message:r,fadeIn:void 0!==e.fadeIn?e.fadeIn:700,fadeOut:void 0!==e.fadeOut?e.fadeOut:1e3,timeout:void 0!==e.timeout?e.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:S.blockUI.defaults.growlCSS})};o();r.css("opacity");r.mouseover(function(){o({fadeIn:0,timeout:3e4});var e=S(".blockMsg");e.stop(),e.fadeTo(300,1)}).mouseout(function(){S(".blockMsg").fadeOut(1e3)})},S.fn.block=function(e){if(this[0]===window)return S.blockUI(e),this;var t=S.extend({},S.blockUI.defaults,e||{});return this.each(function(){var e=S(this);t.ignoreIfBlocked&&e.data("blockUI.isBlocked")||e.unblock({fadeOut:0})}),this.each(function(){"static"==S.css(this,"position")&&(this.style.position="relative",S(this).data("blockUI.static",!0)),this.style.zoom=1,n(this,e)})},S.fn.unblock=function(e){return this[0]===window?(S.unblockUI(e),this):this.each(function(){P(this,e)})},S.blockUI.version=2.66,S.blockUI.defaults={message:"<h3>Please wait...</h3>",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#",border:"",backgroundColor:"#",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"",backgroundColor:"","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var N=null,F=[];function n(e,r){var t,n,o=e==window,i=r&&void 0!==r.message?r.message:void 0;if(!(r=S.extend({},S.blockUI.defaults,r||{})).ignoreIfBlocked||!S(e).data("blockUI.isBlocked")){if(r.overlayCSS=S.extend({},S.blockUI.defaults.overlayCSS,r.overlayCSS||{}),t=S.extend({},S.blockUI.defaults.css,r.css||{}),r.onOverlayClick&&(r.overlayCSS.cursor="pointer"),n=S.extend({},S.blockUI.defaults.themedCSS,r.themedCSS||{}),i=void 0===i?r.message:i,o&&N&&P(window,{fadeOut:0}),i&&"string"!=typeof i&&(i.parentNode||i.jquery)){var a=i.jquery?i[0]:i,s={};S(e).data("blockUI.history",s),s.el=a,s.parent=a.parentNode,s.display=a.style.display,s.position=a.style.position,s.parent&&s.parent.removeChild(a)}S(e).data("blockUI.onUnblock",r.onUnblock);var l,u,c,d,p=r.baseZ;l=T||r.forceIframe?S('<iframe class="blockUI" style="z-index:'+p+++';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+r.iframeSrc+'"></iframe>'):S('<div class="blockUI" style="display:none"></div>'),u=r.theme?S('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+p+++';display:none"></div>'):S('<div class="blockUI blockOverlay" style="z-index:'+p+++';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0;left:0"></div>'),r.theme&&o?(d='<div class="blockUI '+r.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(p+10)+';display:none;position:fixed">',r.title&&(d+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(r.title||" ")+"</div>"),d+='<div class="ui-widget-content ui-dialog-content"></div>',d+="</div>"):r.theme?(d='<div class="blockUI '+r.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(p+10)+';display:none;position:absolute">',r.title&&(d+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(r.title||" ")+"</div>"),d+='<div class="ui-widget-content ui-dialog-content"></div>',d+="</div>"):d=o?'<div class="blockUI '+r.blockMsgClass+' blockPage" style="z-index:'+(p+10)+';display:none;position:fixed"></div>':'<div class="blockUI '+r.blockMsgClass+' blockElement" style="z-index:'+(p+10)+';display:none;position:absolute"></div>',c=S(d),i&&(r.theme?(c.css(n),c.addClass("ui-widget-content")):c.css(t)),r.theme||u.css(r.overlayCSS),u.css("position",o?"fixed":"absolute"),(T||r.forceIframe)&&l.css("opacity",0);var h=[l,u,c],f=S(o?"body":e);S.each(h,function(){this.appendTo(f)}),r.theme&&r.draggable&&S.fn.draggable&&c.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var m=I&&(!S.support.boxModel||0<S("object,embed",o?null:e).length);if(A||m){if(o&&r.allowBodyStretch&&S.support.boxModel&&S("html,body").css("height","100%"),(A||!S.support.boxModel)&&!o)var g=L(e,"borderTopWidth"),v=L(e,"borderLeftWidth"),y=g?"(0 - "+g+")":0,b=v?"(0 - "+v+")":0;S.each(h,function(e,t){var n=t[0].style;if(n.position="absolute",e<2)o?n.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+r.quirksmodeOffsetHack+') + "px"'):n.setExpression("height",'this.parentNode.offsetHeight + "px"'),o?n.setExpression("width",'jQuery.support.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):n.setExpression("width",'this.parentNode.offsetWidth + "px"'),b&&n.setExpression("left",b),y&&n.setExpression("top",y);else if(r.centerY)o&&n.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"'),n.marginTop=0;else if(!r.centerY&&o){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+(r.css&&r.css.top?parseInt(r.css.top,10):0)+') + "px"';n.setExpression("top",i)}})}if(i&&(r.theme?c.find(".ui-widget-content").append(i):c.append(i),(i.jquery||i.nodeType)&&S(i).show()),(T||r.forceIframe)&&r.showOverlay&&l.show(),r.fadeIn){var x=r.onBlock?r.onBlock:E,w=r.showOverlay&&!i?x:E,k=i?x:E;r.showOverlay&&u._fadeIn(r.fadeIn,w),i&&c._fadeIn(r.fadeIn,k)}else r.showOverlay&&u.show(),i&&c.show(),r.onBlock&&r.onBlock();if($(1,e,r),o?(N=c[0],F=S(r.focusableElements,N),r.focusInput&&setTimeout(D,20)):function(e,t,n){var i=e.parentNode,r=e.style,o=(i.offsetWidth-e.offsetWidth)/2-L(i,"borderLeftWidth"),a=(i.offsetHeight-e.offsetHeight)/2-L(i,"borderTopWidth");t&&(r.left=0<o?o+"px":"0");n&&(r.top=0<a?a+"px":"0")}(c[0],r.centerX,r.centerY),r.timeout){var C=setTimeout(function(){o?S.unblockUI(r):S(e).unblock(r)},r.timeout);S(e).data("blockUI.timeout",C)}}}function P(e,t){var n,i,r=e==window,o=S(e),a=o.data("blockUI.history"),s=o.data("blockUI.timeout");s&&(clearTimeout(s),o.removeData("blockUI.timeout")),t=S.extend({},S.blockUI.defaults,t||{}),$(0,e,t),null===t.onUnblock&&(t.onUnblock=o.data("blockUI.onUnblock"),o.removeData("blockUI.onUnblock")),i=r?S("body").children().filter(".blockUI").add("body > .blockUI"):o.find(">.blockUI"),t.cursorReset&&(1<i.length&&(i[1].style.cursor=t.cursorReset),2<i.length&&(i[2].style.cursor=t.cursorReset)),r&&(N=F=null),t.fadeOut?(n=i.length,i.stop().fadeOut(t.fadeOut,function(){0==--n&&l(i,a,t,e)})):l(i,a,t,e)}function l(e,t,n,i){var r=S(i);if(!r.data("blockUI.isBlocked")){e.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),t&&t.el&&(t.el.style.display=t.display,t.el.style.position=t.position,t.parent&&t.parent.appendChild(t.el),r.removeData("blockUI.history")),r.data("blockUI.static")&&r.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var o=S(document.body),a=o.width(),s=o[0].style.width;o.width(a-1).width(a),o[0].style.width=s}}function $(e,t,n){var i=t==window,r=S(t);if((e||(!i||N)&&(i||r.data("blockUI.isBlocked")))&&(r.data("blockUI.isBlocked",e),i&&n.bindEvents&&(!e||n.showOverlay))){var o="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";e?S(document).bind(o,n,a):S(document).unbind(o,a)}}function a(e){if("keydown"===e.type&&e.keyCode&&9==e.keyCode&&N&&e.data.constrainTabKey){var t=F,n=!e.shiftKey&&e.target===t[t.length-1],i=e.shiftKey&&e.target===t[0];if(n||i)return setTimeout(function(){D(i)},10),!1}var r=e.data,o=S(e.target);return o.hasClass("blockOverlay")&&r.onOverlayClick&&r.onOverlayClick(e),0<o.parents("div."+r.blockMsgClass).length||0===o.parents().children().filter("div.blockUI").length}function D(e){if(F){var t=F[!0===e?F.length-1:0];t&&t.focus()}}function L(e,t){return parseInt(S.css(e,t),10)||0}}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(),function(e,t){"use strict";"function"==typeof define&&define.amd?define([],function(){return t.apply(e)}):"object"==typeof exports?module.exports=t.call(e):e.Waves=t.call(e)}("object"==typeof global?global:this,function(){"use strict";var t=t||{},i=document.querySelectorAll.bind(document),a=Object.prototype.toString,s="ontouchstart"in window;function r(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function c(e){var t,n=a.call(e);return"[object String]"===n?i(e):r(e)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(n)&&e.hasOwnProperty("length")?e:r(t=e)&&0<t.nodeType?[e]:[]}function d(e){var t,n,i,r,o={top:0,left:0},a=e&&e.ownerDocument;return t=a.documentElement,void 0!==e.getBoundingClientRect&&(o=e.getBoundingClientRect()),n=null!==(r=i=a)&&r===r.window?i:9===i.nodeType&&i.defaultView,{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}}function p(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+=n+":"+e[n]+";");return t}var h={duration:750,delay:200,show:function(e,t,n){if(2===e.button)return!1;t=t||this;var i=document.createElement("div");i.className="waves-ripple waves-rippling",t.appendChild(i);var r=d(t),o=0,a=0;"touches"in e&&e.touches.length?(o=e.touches[0].pageY-r.top,a=e.touches[0].pageX-r.left):(o=e.pageY-r.top,a=e.pageX-r.left),a=0<=a?a:0,o=0<=o?o:0;var s="scale("+t.clientWidth/100*3+")",l="translate(0,0)";n&&(l="translate("+n.x+"px, "+n.y+"px)"),i.setAttribute("data-hold",Date.now()),i.setAttribute("data-x",a),i.setAttribute("data-y",o),i.setAttribute("data-scale",s),i.setAttribute("data-translate",l);var u={top:o+"px",left:a+"px"};i.classList.add("waves-notransition"),i.setAttribute("style",p(u)),i.classList.remove("waves-notransition"),u["-webkit-transform"]=s+" "+l,u["-moz-transform"]=s+" "+l,u["-ms-transform"]=s+" "+l,u["-o-transform"]=s+" "+l,u.transform=s+" "+l,u.opacity="1";var c="mousemove"===e.type?2500:h.duration;u["-webkit-transition-duration"]=c+"ms",u["-moz-transition-duration"]=c+"ms",u["-o-transition-duration"]=c+"ms",u["transition-duration"]=c+"ms",i.setAttribute("style",p(u))},hide:function(e,t){for(var n=(t=t||this).getElementsByClassName("waves-rippling"),i=0,r=n.length;i<r;i++)o(e,t,n[i])}},l={input:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");n.className=e.className+" waves-input-wrapper",e.className="waves-button-input",t.replaceChild(n,e),n.appendChild(e);var i=window.getComputedStyle(e,null),r=i.color,o=i.backgroundColor;n.setAttribute("style","color:"+r+";background:"+o),e.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(e){var t=e.parentNode;if("i"!==t.tagName.toLowerCase()||!t.classList.contains("waves-effect")){var n=document.createElement("i");t.replaceChild(n,e),n.appendChild(e)}}};function o(e,t,n){if(n){n.classList.remove("waves-rippling");var i=n.getAttribute("data-x"),r=n.getAttribute("data-y"),o=n.getAttribute("data-scale"),a=n.getAttribute("data-translate"),s=350-(Date.now()-Number(n.getAttribute("data-hold")));s<0&&(s=0),"mousemove"===e.type&&(s=150);var l="mousemove"===e.type?2500:h.duration;setTimeout(function(){var e={top:r+"px",left:i+"px",opacity:"0","-webkit-transition-duration":l+"ms","-moz-transition-duration":l+"ms","-o-transition-duration":l+"ms","transition-duration":l+"ms","-webkit-transform":o+" "+a,"-moz-transform":o+" "+a,"-ms-transform":o+" "+a,"-o-transform":o+" "+a,transform:o+" "+a};n.setAttribute("style",p(e)),setTimeout(function(){try{t.removeChild(n)}catch(e){return!1}},l)},s)}}var u={touches:0,allowEvent:function(e){var t=!0;return/^(mousedown|mousemove)$/.test(e.type)&&u.touches&&(t=!1),t},registerEvent:function(e){var t=e.type;"touchstart"===t?u.touches+=1:/^(touchend|touchcancel)$/.test(t)&&setTimeout(function(){u.touches&&(u.touches-=1)},500)}};function n(t){var n=function(e){if(!1===u.allowEvent(e))return null;for(var t=null,n=e.target||e.srcElement;null!==n.parentElement;){if(n.classList.contains("waves-effect")&&!(n instanceof SVGElement)){t=n;break}n=n.parentElement}return t}(t);if(null!==n){if(n.disabled||n.getAttribute("disabled")||n.classList.contains("disabled"))return;if(u.registerEvent(t),"touchstart"===t.type&&h.delay){var i=!1,r=setTimeout(function(){r=null,h.show(t,n)},h.delay),o=function(e){r&&(clearTimeout(r),r=null,h.show(t,n)),i||(i=!0,h.hide(e,n))};n.addEventListener("touchmove",function(e){r&&(clearTimeout(r),r=null),o(e)},!1),n.addEventListener("touchend",o,!1),n.addEventListener("touchcancel",o,!1)}else h.show(t,n),s&&(n.addEventListener("touchend",h.hide,!1),n.addEventListener("touchcancel",h.hide,!1)),n.addEventListener("mouseup",h.hide,!1),n.addEventListener("mouseleave",h.hide,!1)}}return t.init=function(e){var t=document.body;"duration"in(e=e||{})&&(h.duration=e.duration),"delay"in e&&(h.delay=e.delay),s&&(t.addEventListener("touchstart",n,!1),t.addEventListener("touchcancel",u.registerEvent,!1),t.addEventListener("touchend",u.registerEvent,!1)),t.addEventListener("mousedown",n,!1)},t.attach=function(e,t){var n,i;e=c(e),"[object Array]"===a.call(t)&&(t=t.join(" ")),t=t?" "+t:"";for(var r=0,o=e.length;r<o;r++)i=(n=e[r]).tagName.toLowerCase(),-1!==["input","img"].indexOf(i)&&(l[i](n),n=n.parentElement),-1===n.className.indexOf("waves-effect")&&(n.className+=" waves-effect"+t)},t.ripple=function(e,t){var n=(e=c(e)).length;if((t=t||{}).wait=t.wait||0,t.position=t.position||null,n)for(var i,r,o,a={},s=0,l={type:"mousedown",button:1},u=function(e,t){return function(){h.hide(e,t)}};s<n;s++)if(i=e[s],r=t.position||{x:i.clientWidth/2,y:i.clientHeight/2},o=d(i),a.x=o.left+r.x,a.y=o.top+r.y,l.pageX=a.x,l.pageY=a.y,h.show(l,i),0<=t.wait&&null!==t.wait){setTimeout(u({type:"mouseup",button:1},i),t.wait)}},t.calm=function(e){for(var t={type:"mouseup",button:1},n=0,i=(e=c(e)).length;n<i;n++)h.hide(t,e[n])},t.displayEffect=function(e){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),t.init(e)},t}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){c.extend(c.fn,{validate:function(e){if(this.length){var i=c.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new c.validator(e,this[0]),c.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.settings.submitHandler&&(i.submitButton=e.target),c(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==c(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(n){function e(){var e,t;return!i.settings.submitHandler||(i.submitButton&&(e=c("<input type='hidden'/>").attr("name",i.submitButton.name).val(c(i.submitButton).val()).appendTo(i.currentForm)),t=i.settings.submitHandler.call(i,i.currentForm,n),i.submitButton&&e.remove(),void 0!==t&&t)}return i.settings.debug&&n.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,e()):i.form()?i.pendingRequest?!(i.formSubmitted=!0):e():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,t,n;return c(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,t=c(this[0].form).validate(),this.each(function(){(e=t.element(this)&&e)||(n=n.concat(t.errorList))}),t.errorList=n),e},rules:function(e,t){var n,i,r,o,a,s,l=this[0];if(null!=l&&null!=l.form){if(e)switch(i=(n=c.data(l.form,"validator").settings).rules,r=c.validator.staticRules(l),e){case"add":c.extend(r,c.validator.normalizeRule(t)),delete r.messages,i[l.name]=r,t.messages&&(n.messages[l.name]=c.extend(n.messages[l.name],t.messages));break;case"remove":return t?(s={},c.each(t.split(/\s/),function(e,t){s[t]=r[t],delete r[t],"required"===t&&c(l).removeAttr("aria-required")}),s):(delete i[l.name],r)}return(o=c.validator.normalizeRules(c.extend({},c.validator.classRules(l),c.validator.attributeRules(l),c.validator.dataRules(l),c.validator.staticRules(l)),l)).required&&(a=o.required,delete o.required,o=c.extend({required:a},o),c(l).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=c.extend(o,{remote:a})),o}}}),c.extend(c.expr[":"],{blank:function(e){return!c.trim(""+c(e).val())},filled:function(e){var t=c(e).val();return null!==t&&!!c.trim(""+t)},unchecked:function(e){return!c(e).prop("checked")}}),c.validator=function(e,t){this.settings=c.extend(!0,{},c.validator.defaults,e),this.currentForm=t,this.init()},c.validator.format=function(n,e){return 1===arguments.length?function(){var e=c.makeArray(arguments);return e.unshift(n),c.validator.format.apply(this,e)}:(void 0===e||(2<arguments.length&&e.constructor!==Array&&(e=c.makeArray(arguments).slice(1)),e.constructor!==Array&&(e=[e]),c.each(e,function(e,t){n=n.replace(new RegExp("\\{"+e+"\\}","g"),function(){return t})})),n)},c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||-1!==c.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(n):c(e).addClass(t).removeClass(n)},unhighlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(n):c(e).removeClass(t).addClass(n)}},setDefaults:function(e){c.extend(c.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:c.validator.format("Please enter no more than {0} characters."),minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}."),step:c.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=c(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm),this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.groups={};function e(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=c(this).closest("form")[0]);var t=c.data(this.form,"validator"),n="on"+e.type.replace(/^validate/,""),i=t.settings;i[n]&&!c(this).is(i.ignore)&&i[n].call(t,this,e)}c.each(this.settings.groups,function(n,e){"string"==typeof e&&(e=e.split(/\s/)),c.each(e,function(e,t){i[t]=n})}),n=this.settings.rules,c.each(n,function(e,t){n[e]=c.validator.normalizeRule(t)}),c(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":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'], [contenteditable]",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&c(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),c(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),c.extend(this.submitted,this.errorMap),this.invalid=c.extend({},this.errorMap),this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){var t,n,i=this.clean(e),r=this.validationTargetFor(i),o=this,a=!0;return void 0===r?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=c(r),(n=this.groups[r.name])&&c.each(this.groups,function(e,t){t===n&&e!==r.name&&(i=o.validationTargetFor(o.clean(o.findByName(e))))&&i.name in o.invalid&&(o.currentElements.push(i),a=o.check(i)&&a)}),t=!1!==this.check(r),a=a&&t,this.invalid[r.name]=!t,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),c(e).attr("aria-invalid",!t)),a},showErrors:function(t){if(t){var n=this;c.extend(this.errorMap,t),this.errorList=c.map(this.errorMap,function(e,t){return{message:e,element:n.findByName(t)[0]}}),this.successList=c.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)e[t]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===c.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,n={};return c(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var e=this.name||c(this).attr("name");return!e&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=c(this).closest("form")[0]),!(e in n||!t.objectLength(c(this).rules()))&&(n[e]=!0)})},clean:function(e){return c(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return c(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=c([]),this.toHide=c([])},reset:function(){this.resetInternals(),this.currentElements=c([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t,n,i=c(e),r=e.type;return"radio"===r||"checkbox"===r?this.findByName(e.name).filter(":checked").val():"number"===r&&void 0!==e.validity?e.validity.badInput?"NaN":i.val():(t=e.hasAttribute("contenteditable")?i.text():i.val(),"file"===r?"C:\\fakepath\\"===t.substr(0,12)?t.substr(12):0<=(n=t.lastIndexOf("/"))?t.substr(n+1):0<=(n=t.lastIndexOf("\\"))?t.substr(n+1):t:"string"==typeof t?t.replace(/\r/g,""):t)},check:function(t){t=this.validationTargetFor(this.clean(t));var e,n,i,r=c(t).rules(),o=c.map(r,function(e,t){return t}).length,a=!1,s=this.elementValue(t);if("function"==typeof r.normalizer){if("string"!=typeof(s=r.normalizer.call(t,s)))throw new TypeError("The normalizer should return a string value.");delete r.normalizer}for(n in r){i={method:n,parameters:r[n]};try{if("dependency-mismatch"===(e=c.validator.methods[n].call(this,s,t,i.parameters))&&1===o){a=!0;continue}if(a=!1,"pending"===e)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!e)return this.formatAndAdd(t,i),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+i.method+"' method.",e),e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+i.method+"' method."),e}}if(!a)return this.objectLength(r)&&this.successList.push(t),!0},customDataMessage:function(e,t){return c(e).data("msg"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())||c(e).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){"string"==typeof t&&(t={method:t});var n=this.findDefined(this.customMessage(e.name,t.method),this.customDataMessage(e,t.method),!this.settings.ignoreTitle&&e.title||void 0,c.validator.messages[t.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),i=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=c.validator.format(n.replace(i,"{$1}"),t.parameters)),n},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t);this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],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 c(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n,i,r,o,a=this.errorsFor(e),s=this.idOrName(e),l=c(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(t)):(n=a=c("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,c(e)):n.insertAfter(e),a.is("label")?a.attr("for",s):0===a.parents("label[for='"+this.escapeCssMeta(s)+"']").length&&(r=a.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(l+=" "+r):l=r,c(e).attr("aria-describedby",l),(i=this.groups[e.name])&&(o=this,c.each(o.groups,function(e,t){t===i&&c("[name='"+o.escapeCssMeta(e)+"']",o.currentForm).attr("aria-describedby",a.attr("id"))})))),!t&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var t=this.escapeCssMeta(this.idOrName(e)),n=c(e).attr("aria-describedby"),i="label[for='"+t+"'], label[for='"+t+"'] *";return n&&(i=i+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),c(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return c(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return c("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(e,t){return!!c(e,t.form).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!c.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,c(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],c(e).removeClass(this.settings.pendingClass),t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(c(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(c(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,t){return t="string"==typeof t&&t||"remote",c.data(e,"previousValue")||c.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:t})})},destroy:function(){this.resetForm(),c(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},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(e,t){e.constructor===String?this.classRuleSettings[e]=t:c.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=c(e).attr("class");return n&&c.each(n.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(t,c.validator.classRuleSettings[this])}),t},normalizeAttributeRule:function(e,t,n,i){/min|max|step/.test(n)&&(null===t||/number|range|text/.test(t))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?e[n]=i:t===n&&"range"!==t&&(e[n]=!0)},attributeRules:function(e){var t,n,i={},r=c(e),o=e.getAttribute("type");for(t in c.validator.methods)"required"===t?(""===(n=e.getAttribute(t))&&(n=!0),n=!!n):n=r.attr(t),this.normalizeAttributeRule(i,o,t,n);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var t,n,i={},r=c(e),o=e.getAttribute("type");for(t in c.validator.methods)n=r.data("rule"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()),this.normalizeAttributeRule(i,o,t,n);return i},staticRules:function(e){var t={},n=c.data(e.form,"validator");return n.settings.rules&&(t=c.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(i,r){return c.each(i,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":n=!!c(t.depends,r.form).length;break;case"function":n=t.depends.call(r,r)}n?i[e]=void 0===t.param||t.param:(c.data(r.form,"validator").resetElements(c(r)),delete i[e])}}else delete i[e]}),c.each(i,function(e,t){i[e]=c.isFunction(t)&&"normalizer"!==e?t(r):t}),c.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),c.each(["rangelength","range"],function(){var e;i[this]&&(c.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(e=i[this].replace(/[\[\]]/g,"").split(/[\s,]+/),i[this]=[Number(e[0]),Number(e[1])]))}),c.validator.autoCreateRanges&&(null!=i.min&&null!=i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),null!=i.minlength&&null!=i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(e){if("string"==typeof e){var t={};c.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,n){c.validator.methods[e]=t,c.validator.messages[e]=void 0!==n?n:c.validator.messages[e],t.length<3&&c.validator.addClassRules(e,c.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"===t.nodeName.toLowerCase()){var i=c(t).val();return i&&0<i.length}return this.checkable(t)?0<this.getLength(e,t):0<e.length},email:function(e,t){return this.optional(t)||/^[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(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(e,t,n){var i=c.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n<=i},maxlength:function(e,t,n){var i=c.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i<=n},rangelength:function(e,t,n){var i=c.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i>=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},step:function(e,t,n){var i,r=c(t).attr("type"),o="Step attribute on input type "+r+" is not supported.",a=new RegExp("\\b"+r+"\\b"),s=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},l=function(e){return Math.round(e*Math.pow(10,i))},u=!0;if(r&&!a.test(["text","number","range"].join()))throw new Error(o);return i=s(n),(s(e)>i||l(e)%l(n)!=0)&&(u=!1),this.optional(t)||u},equalTo:function(e,t,n){var i=c(n);return this.settings.onfocusout&&i.not(".validate-equalTo-blur").length&&i.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){c(t).valid()}),e===i.val()},remote:function(o,a,e,s){if(this.optional(a))return"dependency-mismatch";s="string"==typeof s&&s||"remote";var l,t,n,u=this.previousValue(a,s);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),u.originalMessage=u.originalMessage||this.settings.messages[a.name][s],this.settings.messages[a.name][s]=u.message,e="string"==typeof e&&{url:e}||e,n=c.param(c.extend({data:o},e.data)),u.old===n?u.valid:(u.old=n,(l=this).startRequest(a),(t={})[a.name]=o,c.ajax(c.extend(!0,{mode:"abort",port:"validate"+a.name,dataType:"json",data:t,context:l.currentForm,success:function(e){var t,n,i,r=!0===e||"true"===e;l.settings.messages[a.name][s]=u.originalMessage,r?(i=l.formSubmitted,l.resetInternals(),l.toHide=l.errorsFor(a),l.formSubmitted=i,l.successList.push(a),l.invalid[a.name]=!1,l.showErrors()):(t={},n=e||l.defaultMessage(a,{method:s,parameters:o}),t[a.name]=u.message=n,l.invalid[a.name]=!0,l.showErrors(t)),u.valid=r,l.stopRequest(a,r)}},e)),"pending")}}});var i,r={};c.ajaxPrefilter?c.ajaxPrefilter(function(e,t,n){var i=e.port;"abort"===e.mode&&(r[i]&&r[i].abort(),r[i]=n)}):(i=c.ajax,c.ajax=function(e){var t=("mode"in e?e:c.ajaxSettings).mode,n=("port"in e?e:c.ajaxSettings).port;return"abort"===t?(r[n]&&r[n].abort(),r[n]=i.apply(this,arguments),r[n]):i.apply(this,arguments)})}),function(g,d){g.fn.extend({_aria:function(e,t){return this.attr("aria-"+e,t)},_removeAria:function(e){return this.removeAttr("aria-"+e)},_enableAria:function(e){return null==e||e?this.removeClass("disabled")._aria("disabled","false"):this.addClass("disabled")._aria("disabled","true")},_showAria:function(e){return null==e||e?this.show()._aria("hidden","false"):this.hide()._aria("hidden","true")},_selectAria:function(e){return null==e||e?this.addClass("current")._aria("selected","true"):this.removeClass("current")._aria("selected","false")},_id:function(e){return e?this.attr("id",e):this.attr("id")}}),String.prototype.format||(String.prototype.format=function(){for(var e=1===arguments.length&&g.isArray(arguments[0])?arguments[0]:arguments,t=this,n=0;n<e.length;n++){var i=new RegExp("\\{"+n+"\\}","gm");t=t.replace(i,e[n])}return t});var p=0,a="jQu3ry_5teps_St@te_",h="-t-",f="-p-",m="-h-",c="Index out of range.",s="One or more corresponding step {0} are missing.";function v(u,e,t){var n=u.children(e.headerTag),c=u.children(e.bodyTag);n.length>c.length?B(s,"contents"):n.length<c.length&&B(s,"titles");var i=e.startIndex;if(t.stepCount=n.length,e.saveState&&g.cookie){var r=g.cookie(a+S(u)),o=parseInt(r,0);!isNaN(o)&&o<t.stepCount&&(i=o)}t.currentIndex=i,n.each(function(e){var t,n=g(this),i=c.eq(e),r=i.data("mode"),o=null==r?q.html:E(q,/^\s*$/.test(r)||isNaN(r)?r:parseInt(r,0)),a=o===q.html||i.data("url")===d?"":i.data("url"),s=o!==q.html&&"1"===i.data("loaded"),l=g.extend({},U,{title:n.html(),content:o===q.html?i.html():"",contentUrl:a,contentMode:o,contentLoaded:s});t=l,k(u).push(t)})}function l(e,t){var n=e.find(".steps li").eq(t.currentIndex);e.triggerHandler("finishing",[t.currentIndex])?(n.addClass("done").removeClass("error"),e.triggerHandler("finished",[t.currentIndex])):n.addClass("error")}function y(e){var t=e.data("eventNamespace");return null==t&&(t="."+S(e),e.data("eventNamespace",t)),t}function b(e,t){var n=S(e);return e.find("#"+n+h+t)}function x(e,t){var n=S(e);return e.find("#"+n+f+t)}function u(e){return e.data("options")}function w(e){return e.data("state")}function k(e){return e.data("steps")}function C(e,t){var n=k(e);return(t<0||t>=n.length)&&B(c),n[t]}function S(e){var t=e.data("uid");return null==t&&(null==(t=e._id())&&(t="steps-uid-".concat(p),e._id(t)),p++,e.data("uid",t)),t}function E(e,t){if(o("enumType",e),o("keyOrValue",t),"string"==typeof t){var n=e[t];return n===d&&B("The enum key '{0}' does not exist.",t),n}if("number"==typeof t){for(var i in e)if(e[i]===t)return t;B("Invalid enum value '{0}'.",t)}else B("Invalid key or value type.")}function T(e,t,n){return r(e,t,n,(i=1,n.currentIndex+i));var i}function A(e,t,n){return r(e,t,n,(i=1,n.currentIndex-i));var i}function I(e,t,n,i){if((i<0||i>=n.stepCount)&&B(c),!(t.forceMoveForward&&i<n.currentIndex)){var r=n.currentIndex;return e.triggerHandler("stepChanging",[n.currentIndex,i])?(n.currentIndex=i,j(e,t,n),D(e,t,n,r),$(e,t,n),F(e,t,n),function(e,t,n,i,r,o){var a=e.find(".content > .body"),s=E(z,t.transitionEffect),l=t.transitionEffectSpeed,u=a.eq(i),c=a.eq(r);switch(s){case z.fade:case z.slide:var d=s===z.fade?"fadeOut":"slideUp",p=s===z.fade?"fadeIn":"slideDown";n.transitionElement=u,c[d](l,function(){var e=g(this)._showAria(!1).parent().parent(),t=w(e);t.transitionElement&&(t.transitionElement[p](l,function(){g(this)._showAria()}).promise().done(o),t.transitionElement=null)});break;case z.slideLeft:var h=c.outerWidth(!0),f=r<i?-h:h,m=r<i?h:-h;g.when(c.animate({left:f},l,function(){g(this)._showAria(!1)}),u.css("left",m+"px")._showAria().animate({left:0},l)).done(o);break;default:g.when(c._showAria(!1),u._showAria()).done(o)}}(e,t,n,i,r,function(){e.triggerHandler("stepChanged",[i,r])})):e.find(".steps li").eq(r).addClass("error"),!0}}function t(e){var d=g.extend(!0,{},W,e);return this.each(function(){var t,n,i,e,r,o,a,s,l,u=g(this),c={currentIndex:d.startIndex,currentStep:null,stepCount:0,transitionElement:null};u.data("options",d),u.data("state",c),u.data("steps",[]),v(u,d,c),t=u,i=c,e='<{0} class="{1}">{2}</{0}>',r=E(H,(n=d).stepsOrientation)===H.vertical?" vertical":"",o=g(e.format(n.contentContainerTag,"content "+n.clearFixCssClass,t.html())),a=g(e.format(n.stepsContainerTag,"steps "+n.clearFixCssClass,'<ul role="tablist"></ul>')),s=o.children(n.headerTag),l=o.children(n.bodyTag),t.attr("role","application").empty().append(a).append(o).addClass(n.cssClass+" "+n.clearFixCssClass+r),l.each(function(e){O(t,i,g(this),e)}),s.each(function(e){M(t,n,i,g(this),e)}),D(t,n,i),function(e,t,n){if(t.enablePagination){var i='<li><a href="#{0}" role="menuitem">{1}</a></li>',r="";t.forceMoveForward||(r+=i.format("previous",t.labels.previous)),r+=i.format("next",t.labels.next),t.enableFinishButton&&(r+=i.format("finish",t.labels.finish)),t.enableCancelButton&&(r+=i.format("cancel",t.labels.cancel)),e.append('<{0} class="actions {1}"><ul role="menu" aria-label="{2}">{3}</ul></{0}>'.format(t.actionContainerTag,t.clearFixCssClass,t.labels.pagination,r)),$(e,t,n),F(e,t,n)}}(t,n,i),function(e,t){var n=y(e);e.bind("canceled"+n,t.onCanceled),e.bind("contentLoaded"+n,t.onContentLoaded),e.bind("finishing"+n,t.onFinishing),e.bind("finished"+n,t.onFinished),e.bind("init"+n,t.onInit),e.bind("stepChanging"+n,t.onStepChanging),e.bind("stepChanged"+n,t.onStepChanged),t.enableKeyNavigation&&e.bind("keyup"+n,N);e.find(".actions a").bind("click"+n,P)}(u,d),d.autoFocus&&0===p&&b(u,d.startIndex).focus(),u.triggerHandler("init",[d.startIndex])})}function n(e,t,n,i,r){var o,a;(i<0||i>n.stepCount)&&B(c),r=g.extend({},U,r),o=i,a=r,k(e).splice(o,0,a),n.currentIndex!==n.stepCount&&n.currentIndex>=i&&(n.currentIndex++,j(e,t,n)),n.stepCount++;var s=e.find(".content"),l=g("<{0}>{1}</{0}>".format(t.headerTag,r.title)),u=g("<{0}></{0}>".format(t.bodyTag));return null!=r.contentMode&&r.contentMode!==q.html||u.html(r.content),0===i?s.prepend(u).prepend(l):x(e,i-1).after(u).after(l),O(e,n,u,i),M(e,t,n,l,i),L(e,t,n,i),i===n.currentIndex&&D(e,t,n),$(e,t,n),e}function N(e){var t=g(this),n=u(t),i=w(t);if(n.suppressPaginationOnFocus&&t.find(":focus").is(":input"))return e.preventDefault(),!1;var r=37,o=39;e.keyCode===r?(e.preventDefault(),A(t,n,i)):e.keyCode===o&&(e.preventDefault(),T(t,n,i))}function F(t,e,n){if(0<n.stepCount){var i=n.currentIndex,r=C(t,i);if(!e.enableContentCache||!r.contentLoaded)switch(E(q,r.contentMode)){case q.iframe:t.find(".content > .body").eq(n.currentIndex).empty().html('<iframe src="'+r.contentUrl+'" frameborder="0" scrolling="no" />').data("loaded","1");break;case q.async:var o=x(t,i)._aria("busy","true").empty().append(R(e.loadingTemplate,{text:e.labels.loading}));g.ajax({url:r.contentUrl,cache:!1}).done(function(e){o.empty().html(e)._aria("busy","false").data("loaded","1"),t.triggerHandler("contentLoaded",[i])})}}}function r(e,t,n,i){var r=n.currentIndex;if(0<=i&&i<n.stepCount&&!(t.forceMoveForward&&i<n.currentIndex)){var o=b(e,i),a=o.parent(),s=a.hasClass("disabled");return a._enableAria(),o.click(),r!==n.currentIndex||!s||(a._enableAria(!1),!1)}return!1}function P(e){e.preventDefault();var t=g(this),n=t.parent().parent().parent().parent(),i=u(n),r=w(n),o=t.attr("href");switch(o.substring(o.lastIndexOf("#")+1)){case"cancel":n.triggerHandler("canceled");break;case"finish":l(n,r);break;case"next":T(n,i,r);break;case"previous":A(n,i,r)}}function $(e,t,n){if(t.enablePagination){var i=e.find(".actions a[href$='#finish']").parent(),r=e.find(".actions a[href$='#next']").parent();if(!t.forceMoveForward)e.find(".actions a[href$='#previous']").parent()._enableAria(0<n.currentIndex);t.enableFinishButton&&t.showFinishButtonAlways?(i._enableAria(0<n.stepCount),r._enableAria(1<n.stepCount&&n.stepCount>n.currentIndex+1)):(i._showAria(t.enableFinishButton&&n.stepCount===n.currentIndex+1),r._showAria(0===n.stepCount||n.stepCount>n.currentIndex+1)._enableAria(n.stepCount>n.currentIndex+1||!t.enableFinishButton))}}function D(e,t,n,i){var r=b(e,n.currentIndex),o=g('<span class="current-info audible">'+t.labels.current+" </span>"),a=e.find(".content > .title");if(null!=i){var s=b(e,i);s.parent().addClass("done").removeClass("error")._selectAria(!1),a.eq(i).removeClass("current").next(".body").removeClass("current"),o=s.find(".current-info"),r.focus()}r.prepend(o).parent()._selectAria().removeClass("done")._enableAria(),a.eq(n.currentIndex).addClass("current").next(".body").addClass("current")}function L(e,t,n,i){for(var r=S(e),o=i;o<n.stepCount;o++){var a=r+h+o,s=r+f+o,l=r+m+o,u=e.find(".title").eq(o)._id(l);e.find(".steps a").eq(o)._id(a)._aria("controls",s).attr("href","#"+l).html(R(t.titleTemplate,{index:o+1,title:u.html()})),e.find(".body").eq(o)._id(s)._aria("labelledby",l)}}function i(e,t,n,i){return!(i<0||i>=n.stepCount||n.currentIndex===i)&&(r=i,k(e).splice(r,1),n.currentIndex>i&&(n.currentIndex--,j(e,t,n)),n.stepCount--,(o=e,a=i,s=S(o),o.find("#"+s+m+a)).remove(),x(e,i).remove(),b(e,i).parent().remove(),0===i&&e.find(".steps li").first().addClass("first"),i===n.stepCount&&e.find(".steps li").eq(i).addClass("last"),L(e,t,n,i),$(e,t,n),!0);var r,o,a,s}function O(e,t,n,i){var r=S(e),o=r+f+i,a=r+m+i;n._id(o).attr("role","tabpanel")._aria("labelledby",a).addClass("body")._showAria(t.currentIndex===i)}function R(e,t){for(var n=e.match(/#([a-z]*)#/gi),i=0;i<n.length;i++){var r=n[i],o=r.substring(1,r.length-1);t[o]===d&&B("The key '{0}' does not exist in the substitute collection!",o),e=e.replace(r,t[o])}return e}function M(e,t,n,i,r){var o=S(e),a=o+h+r,s=o+f+r,l=o+m+r,u=e.find(".steps > ul"),c=R(t.titleTemplate,{index:r+1,title:i.html()}),d=g('<li role="tab"><a id="'+a+'" href="#'+l+'" aria-controls="'+s+'">'+c+"</a></li>");d._enableAria(t.enableAllSteps||n.currentIndex>r),n.currentIndex>r&&d.addClass("done"),i._id(l).attr("tabindex","-1").addClass("title"),0===r?u.prepend(d):u.find("li").eq(r-1).after(d),0===r&&u.find("li").removeClass("first").eq(r).addClass("first"),r===n.stepCount-1&&u.find("li").removeClass("last").eq(r).addClass("last"),d.children("a").bind("click"+y(e),_)}function j(e,t,n){t.saveState&&g.cookie&&g.cookie(a+S(e),n.currentIndex)}function _(e){e.preventDefault();var t=g(this),n=t.parent().parent().parent().parent(),i=u(n),r=w(n),o=r.currentIndex;if(t.parent().is(":not(.disabled):not(.current)")){var a=t.attr("href");I(n,i,r,parseInt(a.substring(a.lastIndexOf("-")+1),0))}if(o===r.currentIndex)return b(n,o).focus(),!1}function B(e){throw 1<arguments.length&&(e=e.format(Array.prototype.slice.call(arguments,1))),new Error(e)}function o(e,t){null==t&&B("The argument '{0}' is null or undefined.",e)}g.fn.steps=function(e){return g.fn.steps[e]?g.fn.steps[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void g.error("Method "+e+" does not exist on jQuery.steps"):t.apply(this,arguments)},g.fn.steps.add=function(e){var t=w(this);return n(this,u(this),t,t.stepCount,e)},g.fn.steps.destroy=function(){return function(e,t){var n=y(e);e.unbind(n).removeData("uid").removeData("options").removeData("state").removeData("steps").removeData("eventNamespace").find(".actions a").unbind(n),e.removeClass(t.clearFixCssClass+" vertical");var i=e.find(".content > *");i.removeData("loaded").removeData("mode").removeData("url"),i.removeAttr("id").removeAttr("role").removeAttr("tabindex").removeAttr("class").removeAttr("style")._removeAria("labelledby")._removeAria("hidden"),e.find(".content > [data-mode='async'],.content > [data-mode='iframe']").empty();var r=g('<{0} class="{1}"></{0}>'.format(e.get(0).tagName,e.attr("class"))),o=e._id();return null!=o&&""!==o&&r._id(o),r.html(e.find(".content").html()),e.after(r),e.remove(),r}(this,u(this))},g.fn.steps.finish=function(){l(this,w(this))},g.fn.steps.getCurrentIndex=function(){return w(this).currentIndex},g.fn.steps.getCurrentStep=function(){return C(this,w(this).currentIndex)},g.fn.steps.getStep=function(e){return C(this,e)},g.fn.steps.insert=function(e,t){return n(this,u(this),w(this),e,t)},g.fn.steps.next=function(){return T(this,u(this),w(this))},g.fn.steps.previous=function(){return A(this,u(this),w(this))},g.fn.steps.remove=function(e){return i(this,u(this),w(this),e)},g.fn.steps.setStep=function(e,t){throw new Error("Not yet implemented!")},g.fn.steps.skip=function(e){throw new Error("Not yet implemented!")};var q=g.fn.steps.contentMode={html:0,iframe:1,async:2},H=g.fn.steps.stepsOrientation={horizontal:0,vertical:1},z=g.fn.steps.transitionEffect={none:0,fade:1,slide:2,slideLeft:3},U=g.fn.steps.stepModel={title:"",content:"",contentUrl:"",contentMode:q.html,contentLoaded:!1},W=g.fn.steps.defaults={headerTag:"h1",bodyTag:"div",contentContainerTag:"div",actionContainerTag:"div",stepsContainerTag:"div",cssClass:"wizard",clearFixCssClass:"clearfix",stepsOrientation:H.horizontal,titleTemplate:'<span class="number">#index#.</span> #title#',loadingTemplate:'<span class="spinner"></span> #text#',autoFocus:!1,enableAllSteps:!1,enableKeyNavigation:!0,enablePagination:!0,suppressPaginationOnFocus:!0,enableContentCache:!0,enableCancelButton:!1,enableFinishButton:!0,preloadContent:!1,showFinishButtonAlways:!1,forceMoveForward:!1,saveState:!1,startIndex:0,transitionEffect:z.none,transitionEffectSpeed:200,onStepChanging:function(e,t,n){return!0},onStepChanged:function(e,t,n){},onCanceled:function(e){},onFinishing:function(e,t){return!0},onFinished:function(e,t){},onContentLoaded:function(e,t){},onInit:function(e,t){},labels:{cancel:"Cancel",current:"current step:",pagination:"Pagination",finish:"Finish",next:"Next",previous:"Previous",loading:"Loading ..."}}}(jQuery),function(le){function ue(e,t){return this instanceof ue?(le.isPlainObject(e)?t=e:(t=t||{}).alias=e,this.el=void 0,this.opts=le.extend(!0,{},this.defaults,t),this.noMasksCache=t&&void 0!==t.definitions,this.userOptions=t||{},this.events={},void u(this.opts.alias,t,this.opts)):new ue(e,t)}function u(e,t,n){var i=n.aliases[e];return i?(i.alias&&u(i.alias,void 0,n),le.extend(!0,n,i),le.extend(!0,n,t),!0):(null===n.mask&&(n.mask=e),!1)}function o(S,r){function e(e,t){if(null!==e&&""!==e){if(1===e.length&&!1===S.greedy&&0!==S.repeat&&(S.placeholder=""),0<S.repeat||"*"===S.repeat||"+"===S.repeat){var n="*"===S.repeat?0:"+"===S.repeat?1:S.repeat;e=S.groupmarker.start+e+S.groupmarker.end+S.quantifiermarker.start+n+","+S.repeat+S.quantifiermarker.end}var i;return void 0===ue.prototype.masksCache[e]||!0===r?(i={mask:e,maskToken:function(e){function t(e,t,n,i){this.matches=[],this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=i||!1,this.quantifier={min:1,max:1}}function r(e,t,n){var i=S.definitions[t];n=void 0!==n?n:e.matches.length;var r=e.matches[n-1];if(i&&!f){i.placeholder=le.isFunction(i.placeholder)?i.placeholder(S):i.placeholder;for(var o=i.prevalidator,a=o?o.length:0,s=1;s<i.cardinality;s++){var l=s<=a?o[s-1]:[],u=l.validator,c=l.cardinality;e.matches.splice(n++,0,{fn:u?"string"==typeof u?new RegExp(u):new function(){this.test=u}:new RegExp("."),cardinality:c||1,optionality:e.isOptional,newBlockMarker:void 0===r||r.def!==(i.definitionSymbol||t),casing:i.casing,def:i.definitionSymbol||t,placeholder:i.placeholder,mask:t}),r=e.matches[n-1]}e.matches.splice(n++,0,{fn:i.validator?"string"==typeof i.validator?new RegExp(i.validator):new function(){this.test=i.validator}:new RegExp("."),cardinality:i.cardinality,optionality:e.isOptional,newBlockMarker:void 0===r||r.def!==(i.definitionSymbol||t),casing:i.casing,def:i.definitionSymbol||t,placeholder:i.placeholder,mask:t})}else e.matches.splice(n++,0,{fn:null,cardinality:0,optionality:e.isOptional,newBlockMarker:void 0===r||r.def!==t,casing:null,def:S.staticDefinitionSymbol||t,placeholder:void 0!==S.staticDefinitionSymbol?t:void 0,mask:t}),f=!1}function o(e,t){e.isGroup&&(e.isGroup=!1,r(e,S.groupmarker.start,0),!0!==t&&r(e,S.groupmarker.end))}function n(e,t,n,i){0<t.matches.length&&(void 0===i||i)&&o(t.matches[t.matches.length-1]),r(t,e)}function i(){if(0<g.length){if(u=g[g.length-1],n(s,u,0,!u.isAlternator),u.isAlternator){c=g.pop();for(var e=0;e<c.matches.length;e++)c.matches[e].isGroup=!1;0<g.length?(u=g[g.length-1]).matches.push(c):m.matches.push(c)}}else n(s,m)}for(var a,s,l,u,c,d,p,h=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,f=!1,m=new t,g=[],v=[];a=h.exec(e);)if(s=a[0],f)i();else switch(s.charAt(0)){case S.escapeChar:f=!0;break;case S.optionalmarker.end:case S.groupmarker.end:if(void 0!==(l=g.pop()))if(0<g.length){if((u=g[g.length-1]).matches.push(l),u.isAlternator){c=g.pop();for(var y=0;y<c.matches.length;y++)c.matches[y].isGroup=!1;0<g.length?(u=g[g.length-1]).matches.push(c):m.matches.push(c)}}else m.matches.push(l);else i();break;case S.optionalmarker.start:g.push(new t(!1,!0));break;case S.groupmarker.start:g.push(new t(!0));break;case S.quantifiermarker.start:var b=new t(!1,!1,!0),x=(s=s.replace(/[{}]/g,"")).split(","),w=isNaN(x[0])?x[0]:parseInt(x[0]),k=1===x.length?w:isNaN(x[1])?x[1]:parseInt(x[1]);if(("*"===k||"+"===k)&&(w="*"===k?0:1),b.quantifier={min:w,max:k},0<g.length){var C=g[g.length-1].matches;(a=C.pop()).isGroup||((p=new t(!0)).matches.push(a),a=p),C.push(a),C.push(b)}else(a=m.matches.pop()).isGroup||((p=new t(!0)).matches.push(a),a=p),m.matches.push(a),m.matches.push(b);break;case S.alternatormarker:0<g.length?(u=g[g.length-1],d=u.matches.pop()):d=m.matches.pop(),d.isAlternator?g.push(d):((c=new t(!1,!1,!1,!0)).matches.push(d),g.push(c));break;default:i()}for(;0<g.length;)o(l=g.pop(),!0),m.matches.push(l);return 0<m.matches.length&&(o(d=m.matches[m.matches.length-1]),v.push(m)),S.numericInput&&function e(t){for(var n in t.matches=t.matches.reverse(),t.matches){var i=parseInt(n);if(t.matches[n].isQuantifier&&t.matches[i+1]&&t.matches[i+1].isGroup){var r=t.matches[n];t.matches.splice(n,1),t.matches.splice(i+1,0,r)}void 0!==t.matches[n].matches?t.matches[n]=e(t.matches[n]):t.matches[n]=((o=t.matches[n])===S.optionalmarker.start?o=S.optionalmarker.end:o===S.optionalmarker.end?o=S.optionalmarker.start:o===S.groupmarker.start?o=S.groupmarker.end:o===S.groupmarker.end&&(o=S.groupmarker.start),o)}var o;return t}(v[0]),v}(e),validPositions:{},_buffer:void 0,buffer:void 0,tests:{},metadata:t},!0!==r&&(ue.prototype.masksCache[S.numericInput?e.split("").reverse().join(""):e]=i,i=le.extend(!0,{},ue.prototype.masksCache[S.numericInput?e.split("").reverse().join(""):e]))):i=le.extend(!0,{},ue.prototype.masksCache[S.numericInput?e.split("").reverse().join(""):e]),i}}function n(e){return e.toString()}var t;if(le.isFunction(S.mask)&&(S.mask=S.mask(S)),le.isArray(S.mask)){if(1<S.mask.length){S.keepStatic=null===S.keepStatic||S.keepStatic;var i="(";return le.each(S.numericInput?S.mask.reverse():S.mask,function(e,t){1<i.length&&(i+=")|("),i+=n(void 0===t.mask||le.isFunction(t.mask)?t:t.mask)}),e(i+=")",S.mask)}S.mask=S.mask.pop()}return S.mask&&(t=void 0===S.mask.mask||le.isFunction(S.mask.mask)?e(n(S.mask),S.mask):e(n(S.mask.mask),S.mask)),t}function ce(e,t,T){function n(e,t,n){t=t||0;var i,r,o,a=[],s=0,l=I();do{if(!0===e&&R().validPositions[s]){var u=R().validPositions[s];r=u.match,i=u.locator.slice(),a.push(!0===n?u.input:P(s,r))}else r=(o=N(s,i,s-1)).match,i=o.locator.slice(),(!1===T.jitMasking||s<l||isFinite(T.jitMasking)&&T.jitMasking>s)&&a.push(P(s,r));s++}while((void 0===K||s-1<K)&&null!==r.fn||null===r.fn&&""!==r.def||s<=t);return""===a[a.length-1]&&a.pop(),a}function R(){return t}function A(e){var t=R();!(t.buffer=void 0)!==e&&(t.tests={},t._buffer=void 0,t.validPositions={},t.p=0)}function I(e,t,n){var i=-1,r=-1,o=n||R().validPositions;for(var a in void 0===e&&(e=-1),o){var s=parseInt(a);o[s]&&(t||null!==o[s].match.fn)&&(s<=e&&(i=s),e<=s&&(r=s))}return-1!==i&&1<e-i||r<e?i:r}function y(e,t,n,i){if(i||T.insertMode&&void 0!==R().validPositions[e]&&void 0===n){var r,o=le.extend(!0,{},R().validPositions),a=I();for(r=e;r<=a;r++)delete R().validPositions[r];R().validPositions[e]=t;var s,l=!0,u=R().validPositions,c=!1;for(r=s=e;r<=a;r++){var d=o[r];if(void 0!==d)for(var p=s,h=-1;p<S()&&(null==d.match.fn&&u[r]&&(!0===u[r].match.optionalQuantifier||!0===u[r].match.optionality)||null!=d.match.fn);){if(null===d.match.fn||!T.keepStatic&&u[r]&&(void 0!==u[r+1]&&1<x(r+1,u[r].locator.slice(),r).length||void 0!==u[r].alternation)?p++:p=E(s),!1===c&&o[p]&&o[p].match.def===d.match.def){R().validPositions[p]=le.extend(!0,{},o[p]),R().validPositions[p].input=d.input,s=p,l=!0;break}if(m(p,d.match.def)){var f=F(p,d.input,!0,!0);if(l=!1!==f,s=f.caret||f.insert?I():p,c=!0,l)break}else{if(l=null==d.match.fn,h===p)break;h=p}}if(!l)break}if(!l)return R().validPositions=le.extend(!0,{},o),A(!0),!1}else R().validPositions[e]=t;return A(!0),!0}function b(e,t,n,i){function r(e){var t=R().validPositions[e];if(void 0!==t&&null===t.match.fn){var n=R().validPositions[e-1],i=R().validPositions[e+1];return void 0!==n&&void 0!==i}return!1}var o,a=e,s=le.extend(!0,{},R().validPositions),l=!1;for(R().p=e,o=t-1;a<=o;o--)void 0!==R().validPositions[o]&&(!0===n||!r(o)&&!1!==T.canClearPosition(R(),o,I(),i,T))&&delete R().validPositions[o];for(A(!0),o=a+1;o<=I();){for(;void 0!==R().validPositions[a];)a++;var u=R().validPositions[a];if(o<a&&(o=a+1),void 0===R().validPositions[o]&&C(o)||void 0!==u)o++;else{var c=N(o);!1===l&&s[a]&&s[a].match.def===c.match.def?(R().validPositions[a]=le.extend(!0,{},s[a]),R().validPositions[a].input=c.input,delete R().validPositions[o],o++):m(a,c.match.def)?!1!==F(a,c.input||P(o),!0)&&(delete R().validPositions[o],o++,l=!0):C(o)||(o++,a--),a++}}A(!0)}function N(e,t,n){var i=R().validPositions[e];if(void 0===i)for(var r=x(e,t,n),o=I(),a=R().validPositions[o]||x(0)[0],s=void 0!==a.alternation?a.locator[a.alternation].toString().split(","):[],l=0;l<r.length&&!((i=r[l]).match&&(T.greedy&&!0!==i.match.optionalQuantifier||(!1===i.match.optionality||!1===i.match.newBlockMarker)&&!0!==i.match.optionalQuantifier)&&(void 0===a.alternation||a.alternation!==i.alternation||void 0!==i.locator[a.alternation]&&f(i.locator[a.alternation].toString().split(","),s)));l++);return i}function c(e){return R().validPositions[e]?R().validPositions[e].match:x(e)[0].match}function m(e,t){for(var n=!1,i=x(e),r=0;r<i.length;r++)if(i[r].match&&i[r].match.def===t){n=!0;break}return n}function M(e,i){var r,o;return(R().tests[e]||R().validPositions[e])&&le.each(R().tests[e]||[R().validPositions[e]],function(e,t){var n=t.alternation?t.locator[t.alternation].toString().indexOf(i):-1;(void 0===o||n<o)&&-1!==n&&(r=t,o=n)}),r}function x(N,e,t){function F(T,A,e,t){function I(e,n,t){function o(n,i){var r=0===le.inArray(n,i.matches);return r||le.each(i.matches,function(e,t){return(!0!==t.isQuantifier||!(r=o(n,i.matches[e-1])))&&void 0}),r}if(1e4<$)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+R().mask;if($===N&&void 0===e.matches)return D.push({match:e,locator:n.reverse(),cd:O}),!0;if(void 0!==e.matches){if(e.isGroup&&t!==e){if(e=I(T.matches[le.inArray(e,T.matches)+1],n))return!0}else if(e.isOptional){var i=e;if(e=F(e,A,n,t)){if(!o(P=D[D.length-1].match,i))return!0;L=!0,$=N}}else if(e.isAlternator){var r,a=e,s=[],l=D.slice(),u=n.length,c=0<A.length?A.shift():-1;if(-1===c||"string"==typeof c){var d,p=$,h=A.slice(),f=[];if("string"==typeof c)f=c.split(",");else for(d=0;d<a.matches.length;d++)f.push(d);for(var m=0;m<f.length;m++){if(d=parseInt(f[m]),D=[],E=void 0,E=M($,d),A=E?E.locator.slice(E.alternation+1):[],!0!==(e=I(a.matches[d]||T.matches[d],[d].concat(n),t)||e)&&void 0!==e&&f[f.length-1]<a.matches.length){var g=le.inArray(e,T.matches)+1;T.matches.length>g&&((e=I(T.matches[g],[g].concat(n.slice(1,n.length)),t))&&(f.push(g.toString()),le.each(D,function(e,t){t.alternation=n.length-1})))}r=D.slice(),$=p,D=[];for(var v=0;v<h.length;v++)A[v]=h[v];for(var y=0;y<r.length;y++){var b=r[y];b.alternation=b.alternation||u;for(var x=0;x<s.length;x++){var w=s[x];if(b.match.def===w.match.def&&("string"!=typeof c||-1!==le.inArray(b.locator[b.alternation].toString(),f))){b.match.mask===w.match.mask&&(r.splice(y,1),y--),-1===w.locator[b.alternation].toString().indexOf(b.locator[b.alternation])&&(w.locator[b.alternation]=w.locator[b.alternation]+","+b.locator[b.alternation],w.alternation=b.alternation);break}}}s=s.concat(r)}"string"==typeof c&&(s=le.map(s,function(e,t){if(isFinite(t)){var n=e.alternation,i=e.locator[n].toString().split(",");e.locator[n]=void 0,e.alternation=void 0;for(var r=0;r<i.length;r++)-1!==le.inArray(i[r],f)&&(void 0!==e.locator[n]?(e.locator[n]+=",",e.locator[n]+=i[r]):e.locator[n]=parseInt(i[r]),e.alternation=n);if(void 0!==e.locator[n])return e}})),D=l.concat(s),$=N,L=0<D.length}else e=I(a.matches[c]||T.matches[c],[c].concat(n),t);if(e)return!0}else if(e.isQuantifier&&t!==T.matches[le.inArray(e,T.matches)-1])for(var k=e,C=0<A.length?A.shift():0;C<(isNaN(k.quantifier.max)?C+1:k.quantifier.max)&&$<=N;C++){var S=T.matches[le.inArray(k,T.matches)-1];if(e=I(S,[C].concat(n),S)){if((P=D[D.length-1].match).optionalQuantifier=C>k.quantifier.min-1,o(P,S)){if(C>k.quantifier.min-1){L=!0,$=N;break}return!0}return!0}}else if(e=F(e,A,n,t))return!0}else $++;var E}for(var n=0<A.length?A.shift():0;n<T.matches.length;n++)if(!0!==T.matches[n].isQuantifier){var i=I(T.matches[n],[n].concat(e),t);if(i&&$===N)return i;if(N<$)break}}var P,n,i,r=R().maskToken,$=e?t:0,o=e||[0],D=[],L=!1,O=e?e.join(""):"";if(-1<N){if(void 0===e){for(var a,s=N-1;void 0===(a=R().validPositions[s]||R().tests[s])&&-1<s;)s--;void 0!==a&&-1<s&&(n=a,i=[],le.isArray(n)||(n=[n]),void 0===n[0].alternation?i=n[0].locator.slice():le.each(n,function(e,t){if(""!==t.def)if(0===i.length)i=t.locator.slice();else for(var n=0;n<i.length;n++)t.locator[n]&&-1===i[n].toString().indexOf(t.locator[n])&&(i[n]+=","+t.locator[n])}),O=(o=i).join(""),$=s)}if(R().tests[N]&&R().tests[N][0].cd===O)return R().tests[N];for(var l=o.shift();l<r.length;l++){if(F(r[l],o,[l])&&$===N||N<$)break}}return(0===D.length||L)&&D.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:""},locator:[]}),R().tests[N]=le.extend(!0,[],D),R().tests[N]}function h(){return void 0===R()._buffer&&(R()._buffer=n(!1,1)),R()._buffer}function w(e){if(void 0===R().buffer||!0===e){if(!0===e)for(var t in R().tests)void 0===R().validPositions[t]&&delete R().tests[t];R().buffer=n(!0,I(),!0)}return R().buffer}function k(e,t,n){var i;if(n=n,!0===e)A(),e=0,t=n.length;else for(i=e;i<t;i++)delete R().validPositions[i],delete R().tests[i];for(i=e;i<t;i++)A(!0),n[i]!==T.skipOptionalPartCharacter&&F(i,n[i],!0,!0)}function f(e,t){for(var n=T.greedy?t:t.slice(0,1),i=!1,r=0;r<e.length;r++)if(-1!==le.inArray(e[r],n)){i=!0;break}return i}function F(g,e,t,n){function v(e){return Y?1<e.begin-e.end||e.begin-e.end==1&&T.insertMode:1<e.end-e.begin||e.end-e.begin==1&&T.insertMode}function i(d,p,h,f){var m=!1;return le.each(x(d),function(e,t){for(var n=t.match,i=p?1:0,r="",o=n.cardinality;i<o;o--)r+=(a=d-(o-1),void 0===R().validPositions[a]?P(a):R().validPositions[a].input);var a;if(p&&(r+=p),w(!0),!1!==(m=null!=n.fn?n.fn.test(r,R(),d,h,T,v(g)):(p===n.def||p===T.skipOptionalPartCharacter)&&""!==n.def&&{c:n.placeholder||n.def,pos:d})){var s=void 0!==m.c?m.c:p;s=s===T.skipOptionalPartCharacter&&null===n.fn?n.placeholder||n.def:s;var l=d,u=w();if(void 0!==m.remove&&(le.isArray(m.remove)||(m.remove=[m.remove]),le.each(m.remove.sort(function(e,t){return t-e}),function(e,t){b(t,t+1,!0)})),void 0!==m.insert&&(le.isArray(m.insert)||(m.insert=[m.insert]),le.each(m.insert.sort(function(e,t){return e-t}),function(e,t){F(t.pos,t.c,!1,f)})),m.refreshFromBuffer){var c=m.refreshFromBuffer;if(k((h=!0)===c?c:c.start,c.end,u),void 0===m.pos&&void 0===m.c)return m.pos=I(),!1;if((l=void 0!==m.pos?m.pos:d)!==d)return m=le.extend(m,F(l,s,!0,f)),!1}else if(!0!==m&&void 0!==m.pos&&m.pos!==d&&(l=m.pos,k(d,l,w().slice()),l!==d))return m=le.extend(m,F(l,s,!0)),!1;return!0!==m&&void 0===m.pos&&void 0===m.c||(0<e&&A(!0),y(l,le.extend({},t,{input:function(e,t){switch(t.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase()}return e}(s,n)}),f,v(g))||(m=!1)),!1}}),m}function r(e,t){for(var i=R().validPositions[t].locator,r=i.length,n=e;n<t;n++)if(void 0===R().validPositions[n]&&!C(n,!0)){var o=x(n),a=o[0],s=-1;le.each(o,function(e,t){for(var n=0;n<r&&void 0!==t.locator[n]&&f(t.locator[n].toString().split(","),i[n].toString().split(","));n++)s<n&&(s=n,a=t)}),y(n,le.extend({},a,{input:a.match.placeholder||a.match.def}),!0)}}t=!0===t;var o,a=g;void 0!==g.begin&&(a=Y&&!v(g)?g.end:g.begin);for(var s=!1,l=le.extend(!0,{},R().validPositions),u=a-1;-1<u&&!R().validPositions[u];u--);for(u++;u<a;u++)void 0===R().validPositions[u]&&(!1===T.jitMasking||T.jitMasking>u)&&((o=N(u)).match.def===T.radixPointDefinitionSymbol||!C(u,!0)||le.inArray(T.radixPoint,w())<u&&o.match.fn&&o.match.fn.test(P(u),R(),u,!1,T))&&i(I(u,!0)+1,o.match.placeholder||(null==o.match.fn?o.match.def:""!==P(u)?P(u):w()[u]),!0,n);if(v(g)&&(L(void 0,ue.keyCode.DELETE,g),a=R().p),a<S()&&(s=i(a,e,t,n),(!t||!0===n)&&!1===s)){var c=R().validPositions[a];if(!c||null!==c.match.fn||c.match.def!==e&&e!==T.skipOptionalPartCharacter){if((T.insertMode||void 0===R().validPositions[E(a)])&&!C(a,!0)){var d=N(a).match;i(a,d=d.placeholder||d.def,t,n);for(var p=a+1,h=E(a);p<=h;p++)if(!1!==(s=i(p,e,t,n))){r(a,p),a=p;break}}}else s={caret:E(a)}}return!1===s&&T.keepStatic&&(s=function(e,t,n,i){for(var r,o,a,s,l,u,c=le.extend(!0,{},R().validPositions),d=le.extend(!0,{},R().tests),p=I();0<=p&&(!(s=R().validPositions[p])||void 0===s.alternation||(r=p,o=R().validPositions[r].alternation,N(r).locator[s.alternation]===s.locator[s.alternation]));p--);if(void 0!==o)for(var h in r=parseInt(r),R().validPositions)if(h=parseInt(h),s=R().validPositions[h],r<=h&&void 0!==s.alternation){var f;0===r?(f=[],le.each(R().tests[r],function(e,t){void 0!==t.locator[o]&&(f=f.concat(t.locator[o].toString().split(",")))})):f=R().validPositions[r].locator[o].toString().split(",");var m=void 0!==s.locator[o]?s.locator[o]:f[0];0<m.length&&(m=m.split(",")[0]);for(var g=0;g<f.length;g++){var v=[],y=0,b=0;if(m<f[g]){for(var x,w,k=h;0<=k;k--)if(void 0!==(x=R().validPositions[k])){var C=M(k,f[g]);R().validPositions[k].match.def!==C.match.def&&(v.push(R().validPositions[k].input),R().validPositions[k]=C,R().validPositions[k].input=P(k),null===R().validPositions[k].match.fn&&b++,x=C),w=x.locator[o],x.locator[o]=parseInt(f[g]);break}if(m!==x.locator[o]){for(l=h+1;l<I(void 0,!0)+1;l++)(u=R().validPositions[l])&&null!=u.match.fn?v.push(u.input):l<e&&y++,delete R().validPositions[l],delete R().tests[l];for(A(!0),T.keepStatic=!T.keepStatic,a=!0;0<v.length;){var S=v.shift();if(S!==T.skipOptionalPartCharacter&&!(a=F(I(void 0,!0)+1,S,!1,i)))break}if(x.alternation=o,x.locator[o]=w,a){var E=I(e)+1;for(l=h+1;l<I()+1;l++)(void 0===(u=R().validPositions[l])||null==u.match.fn)&&l<e&&b++;a=F(E<(e+=b-y)?E:e,t,n,i)}if(T.keepStatic=!T.keepStatic,a)return a;A(),R().validPositions=le.extend(!0,{},c),R().tests=le.extend(!0,{},d)}}}break}return!1}(a,e,t,n)),!0===s&&(s={pos:a}),le.isFunction(T.postValidation)&&!1!==s&&!t&&!0!==n&&(s=!!T.postValidation(w(!0),s,T)&&s),void 0===s.pos&&(s.pos=a),!1===s&&(A(!0),R().validPositions=le.extend(!0,{},l)),s}function C(e,t){var n;return t?""===(n=N(e).match).def&&(n=c(e)):n=c(e),null!=n.fn?n.fn:!0!==t&&-1<e&&!T.keepStatic&&void 0===R().validPositions[e]&&2<x(e).length}function S(){var e;-1===(K=void 0!==G?G.maxLength:void 0)&&(K=void 0);var t,n=I(),i=R().validPositions[n],r=void 0!==i?i.locator.slice():void 0;for(t=n+1;void 0===i||null!==i.match.fn||null===i.match.fn&&""!==i.match.def;t++)r=(i=N(t,r,t-1)).locator.slice();return e=""!==c(t-1).def?t:t-1,void 0===K||e<K?e:K}function E(e,t){var n=S();if(n<=e)return n;for(var i=e;++i<n&&(!0===t&&(!0!==c(i).newBlockMarker||!C(i))||!0!==t&&!C(i)&&(!0!==T.nojumps||T.nojumpsThreshold>i)););return i}function g(e,t){var n=e;if(n<=0)return 0;for(;0<--n&&(!0===t&&!0!==c(n).newBlockMarker||!0!==t&&!C(n)););return n}function v(e,t,n,i,r){if(i&&le.isFunction(T.onBeforeWrite)){var o=T.onBeforeWrite(i,t,n,T);if(o){if(o.refreshFromBuffer){var a=o.refreshFromBuffer;k(!0===a?a:a.start,a.end,o.buffer||t),t=w(!0)}void 0!==n&&(n=void 0!==o.caret?o.caret:n)}}e.inputmask._valueSet(t.join("")),void 0===n||void 0!==i&&"blur"===i.type||$(e,n),!0===r&&(J=!0,le(e).trigger("input"))}function P(e,t){if(void 0!==(t=t||c(e)).placeholder)return t.placeholder;if(null===t.fn){if(-1<e&&!T.keepStatic&&void 0===R().validPositions[e]){var n,i=x(e),r=[];if(2<i.length)for(var o=0;o<i.length;o++)if(!0!==i[o].match.optionality&&!0!==i[o].match.optionalQuantifier&&(null===i[o].match.fn||void 0===n||!1!==i[o].match.fn.test(n.match.def,R(),e,!0,T))&&(r.push(i[o]),null===i[o].match.fn&&(n=i[o]),1<r.length))return T.placeholder.charAt(e%T.placeholder.length)}return t.def}return T.placeholder.charAt(e%T.placeholder.length)}function d(l,e,u,t){var c,n=t.slice(),d="",p=0;if(A(),R().p=E(-1),!u)if(!0!==T.autoUnmask){var i=h().slice(0,E(-1)).join(""),r=n.join("").match(new RegExp("^"+ue.escapeRegex(i),"g"));r&&0<r.length&&(n.splice(0,r.length*i.length),p=E(p))}else p=E(p);le.each(n,function(e,t){if(void 0!==t){var n=new le.Event("keypress");n.which=t.charCodeAt(0),d+=t;var i=I(void 0,!0),r=R().validPositions[i],o=N(i+1,r?r.locator.slice():void 0,i);if(!function(){var e=!1,t=h().slice(p,E(p)).join("").indexOf(d);if(-1!==t&&!C(p)){e=!0;for(var n=h().slice(p,p+t),i=0;i<n.length;i++)if(" "!==n[i]){e=!1;break}}return e}()||u||T.autoUnmask){var a=u?e:null==o.match.fn&&o.match.optionality&&i+1<R().p?i+1:R().p;c=O.call(l,n,!0,!1,u,a),p=a+1,d=""}else c=O.call(l,n,!0,!1,!0,i+1);if(!u&&le.isFunction(T.onBeforeWrite)&&((c=T.onBeforeWrite(n,w(),c.forwardPosition,T))&&c.refreshFromBuffer)){var s=c.refreshFromBuffer;k(!0===s?s:s.start,s.end,c.buffer),A(!0),c.caret&&(R().p=c.caret)}}}),e&&v(l,w(),document.activeElement===l?E(I(0)):void 0,new le.Event("checkval"))}function i(e){if(e&&void 0===e.inputmask)return e.value;var t=[],n=R().validPositions;for(var i in n)n[i].match&&null!=n[i].match.fn&&t.push(n[i].input);var r=0===t.length?null:(Y?t.reverse():t).join("");if(null!==r){var o=(Y?w().slice().reverse():w()).join("");le.isFunction(T.onUnMask)&&(r=T.onUnMask(o,r,T)||r)}return r}function $(e,t,n,i){function r(e){!0===i||!Y||"number"!=typeof e||T.greedy&&""===T.placeholder||(e=w().join("").length-e);return e}var o;if("number"!=typeof t)return e.setSelectionRange?(t=e.selectionStart,n=e.selectionEnd):window.getSelection?((o=window.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode===e||o.commonAncestorContainer===e)&&(t=o.startOffset,n=o.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(o=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+o.text.length),{begin:r(t),end:r(n)};t=r(t),n="number"==typeof(n=r(n))?n:t;var a=parseInt(((e.ownerDocument.defaultView||window).getComputedStyle?(e.ownerDocument.defaultView||window).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=a>e.scrollWidth?a:0,de||!1!==T.insertMode||t!==n||n++,e.setSelectionRange)e.selectionStart=t,e.selectionEnd=n;else if(window.getSelection){if(o=document.createRange(),void 0===e.firstChild||null===e.firstChild){var s=document.createTextNode("");e.appendChild(s)}o.setStart(e.firstChild,t<e.inputmask._valueGet().length?t:e.inputmask._valueGet().length),o.setEnd(e.firstChild,n<e.inputmask._valueGet().length?n:e.inputmask._valueGet().length),o.collapse(!0);var l=window.getSelection();l.removeAllRanges(),l.addRange(o)}else e.createTextRange&&((o=e.createTextRange()).collapse(!0),o.moveEnd("character",n),o.moveStart("character",t),o.select())}function a(e){var t,n,i=w(),r=i.length,o=I(),a={},s=R().validPositions[o],l=void 0!==s?s.locator.slice():void 0;for(t=o+1;t<i.length;t++)l=(n=N(t,l,t-1)).locator.slice(),a[t]=le.extend(!0,{},n);var u=s&&void 0!==s.alternation?s.locator[s.alternation]:void 0;for(t=r-1;o<t&&(((n=a[t]).match.optionality||n.match.optionalQuantifier||u&&(u!==a[t].locator[s.alternation]&&null!=n.match.fn||null===n.match.fn&&n.locator[s.alternation]&&f(n.locator[s.alternation].toString().split(","),u.toString().split(","))&&""!==x(t)[0].def))&&i[t]===P(t,n.match));t--)r--;return e?{l:r,def:a[r]?a[r].match:void 0}:r}function s(e){for(var t=a(),n=e.length-1;t<n&&!C(n);n--);return e.splice(t,n+1-t),e}function D(e){if(le.isFunction(T.isComplete))return T.isComplete(e,T);if("*"!==T.repeat){var t=!1,n=a(!0),i=g(n.l);if(void 0===n.def||n.def.newBlockMarker||n.def.optionality||n.def.optionalQuantifier){t=!0;for(var r=0;r<=i;r++){var o=N(r).match;if(null!==o.fn&&void 0===R().validPositions[r]&&!0!==o.optionality&&!0!==o.optionalQuantifier||null===o.fn&&e[r]!==P(r,o)){t=!1;break}}}return t}}function L(o,e,t,n){if((T.numericInput||Y)&&(e===ue.keyCode.BACKSPACE?e=ue.keyCode.DELETE:e===ue.keyCode.DELETE&&(e=ue.keyCode.BACKSPACE),Y)){var i=t.end;t.end=t.begin,t.begin=i}e===ue.keyCode.BACKSPACE&&(t.end-t.begin<1||!1===T.insertMode)?(t.begin=g(t.begin),void 0===R().validPositions[t.begin]||R().validPositions[t.begin].input!==T.groupSeparator&&R().validPositions[t.begin].input!==T.radixPoint||t.begin--):e===ue.keyCode.DELETE&&t.begin===t.end&&(t.end=C(t.end)?t.end+1:E(t.end)+1,void 0===R().validPositions[t.begin]||R().validPositions[t.begin].input!==T.groupSeparator&&R().validPositions[t.begin].input!==T.radixPoint||t.end++),b(t.begin,t.end,!1,n),!0!==n&&function(){if(T.keepStatic){A(!0);var e,t=[],n=le.extend(!0,{},R().validPositions);for(e=I();0<=e;e--){var i=R().validPositions[e];if(i&&(null!=i.match.fn&&t.push(i.input),delete R().validPositions[e],void 0!==i.alternation&&i.locator[i.alternation]===N(e).locator[i.alternation]))break}if(-1<e)for(;0<t.length;){R().p=E(I());var r=new le.Event("keypress");r.which=t.pop().charCodeAt(0),O.call(o,r,!0,!1,!1,R().p)}else R().validPositions=le.extend(!0,{},n)}}();var r=I(t.begin);r<t.begin?(-1===r&&A(),R().p=E(r)):!0!==n&&(R().p=t.begin)}function l(e){var t,n,i,r,o=this,a=le(o),s=e.keyCode,l=$(o);if(s===ue.keyCode.BACKSPACE||s===ue.keyCode.DELETE||he&&s===ue.keyCode.BACKSPACE_SAFARI||e.ctrlKey&&s===ue.keyCode.X&&(t="cut",n=document.createElement("input"),(r=(i="on"+t)in n)||(n.setAttribute(i,"return;"),r="function"==typeof n[i]),n=null,!r))e.preventDefault(),L(o,s,l),v(o,w(),R().p,e,V!==w().join("")),o.inputmask._valueGet()===h().join("")?a.trigger("cleared"):!0===D(w())&&a.trigger("complete"),T.showTooltip&&(o.title=T.tooltip||R().mask);else if(s===ue.keyCode.END||s===ue.keyCode.PAGE_DOWN){e.preventDefault();var u=E(I());T.insertMode||u!==S()||e.shiftKey||u--,$(o,e.shiftKey?l.begin:u,u,!0)}else s===ue.keyCode.HOME&&!e.shiftKey||s===ue.keyCode.PAGE_UP?(e.preventDefault(),$(o,0,e.shiftKey?l.begin:0,!0)):(T.undoOnEscape&&s===ue.keyCode.ESCAPE||90===s&&e.ctrlKey)&&!0!==e.altKey?(d(o,!0,!1,V.split("")),a.trigger("click")):s!==ue.keyCode.INSERT||e.shiftKey||e.ctrlKey?!0===T.tabThrough&&s===ue.keyCode.TAB?(!0===e.shiftKey?(null===c(l.begin).fn&&(l.begin=E(l.begin)),l.end=g(l.begin,!0),l.begin=g(l.end,!0)):(l.begin=E(l.begin,!0),l.end=E(l.begin,!0),l.end<S()&&l.end--),l.begin<S()&&(e.preventDefault(),$(o,l.begin,l.end))):!1!==T.insertMode||e.shiftKey||(s===ue.keyCode.RIGHT?setTimeout(function(){var e=$(o);$(o,e.begin)},0):s===ue.keyCode.LEFT&&setTimeout(function(){var e=$(o);$(o,Y?e.begin+1:e.begin-1)},0)):(T.insertMode=!T.insertMode,$(o,T.insertMode||l.begin!==S()?l.begin:l.begin-1));T.onKeyDown.call(this,e,w(),$(o).begin,T),ee=-1!==le.inArray(s,T.ignorables)}function O(e,t,n,i,r){var o=le(this),a=e.which||e.charCode||e.keyCode;if(!(!0===t||e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||ee))return a===ue.keyCode.ENTER&&V!==w().join("")&&(V=w().join(""),setTimeout(function(){o.trigger("change")},0)),!0;if(a){46===a&&!1===e.shiftKey&&","===T.radixPoint&&(a=44);var s,l=t?{begin:r,end:r}:$(this),u=String.fromCharCode(a);R().writeOutBuffer=!0;var c=F(l,u,i);if(!1!==c){var d=c.pos;if(A(!0),void 0!==c.caret)s=c.caret;else{var p=R().validPositions;s=!T.keepStatic&&(void 0!==p[d+1]&&1<x(d+1,p[d].locator.slice(),d).length||void 0!==p[d].alternation)?d+1:E(d)}R().p=s}if(!1!==n){var h=this;if(setTimeout(function(){T.onKeyValidation.call(h,a,c,T)},0),R().writeOutBuffer&&!1!==c){var f=w();v(this,f,T.numericInput&&void 0===c.caret?g(s):s,e,!0!==t),!0!==t&&setTimeout(function(){!0===D(f)&&o.trigger("complete")},0)}}if(T.showTooltip&&(this.title=T.tooltip||R().mask),e.preventDefault(),t)return c.forwardPosition=s,c}}function r(e){var t,n=e.originalEvent||e,i=le(this),r=this.inputmask._valueGet(!0),o=$(this);Y&&(t=o.end,o.end=o.begin,o.begin=t);var a=r.substr(0,o.begin),s=r.substr(o.end,r.length);a===(Y?h().reverse():h()).slice(0,o.begin).join("")&&(a=""),s===(Y?h().reverse():h()).slice(o.end).join("")&&(s=""),Y&&(t=a,a=s,s=t),window.clipboardData&&window.clipboardData.getData?r=a+window.clipboardData.getData("Text")+s:n.clipboardData&&n.clipboardData.getData&&(r=a+n.clipboardData.getData("text/plain")+s);var l=r;if(le.isFunction(T.onBeforePaste)){if(!1===(l=T.onBeforePaste(r,T)))return e.preventDefault();l||(l=r)}return d(this,!1,!1,Y?l.split("").reverse():l.toString().split("")),v(this,w(),E(I()),e,!0),!0===D(w())&&i.trigger("complete"),e.preventDefault()}function o(e){var t=this.inputmask._valueGet();if(w().join("")!==t){var n=$(this);if(t=t.replace(new RegExp("("+ue.escapeRegex(h().join(""))+")*"),""),pe){var i=t.replace(w().join(""),"");if(1===i.length){var r=new le.Event("keypress");return r.which=i.charCodeAt(0),O.call(this,r,!0,!0,!1,R().validPositions[n.begin-1]?n.begin:n.begin-1),!1}}if(n.begin>t.length&&($(this,t.length),n=$(this)),w().length-t.length!=1||t.charAt(n.begin)===w()[n.begin]||t.charAt(n.begin+1)===w()[n.begin]||C(n.begin)){for(var o=I()+1,a=w().slice(o).join("");null===t.match(ue.escapeRegex(a)+"$");)a=a.slice(1);d(this,!0,!1,t=(t=t.replace(a,"")).split("")),!0===D(w())&&le(this).trigger("complete")}else e.keyCode=ue.keyCode.BACKSPACE,l.call(this,e);e.preventDefault()}}function u(e){var t=this.inputmask._valueGet();d(this,!0,!1,(le.isFunction(T.onBeforeMask)&&T.onBeforeMask(t,T)||t).split("")),V=w().join(""),(T.clearMaskOnLostFocus||T.clearIncomplete)&&this.inputmask._valueGet()===h().join("")&&this.inputmask._valueSet("")}function p(e){var t=this,n=t.inputmask._valueGet();T.showMaskOnFocus&&(!T.showMaskOnHover||T.showMaskOnHover&&""===n)?t.inputmask._valueGet()!==w().join("")&&v(t,w(),E(I())):!1===te&&$(t,E(I())),!0===T.positionCaretOnTab&&setTimeout(function(){$(t,E(I()))},0),V=w().join("")}function j(e){if(te=!1,T.clearMaskOnLostFocus&&document.activeElement!==this){var t=w().slice(),n=this.inputmask._valueGet();n!==this.getAttribute("placeholder")&&""!==n&&(-1===I()&&n===h().join("")?t=[]:s(t),v(this,t))}}function _(e){var r=this;setTimeout(function(){if(document.activeElement===r){var e=$(r);if(e.begin===e.end)if(function(e){if(T.radixFocus&&""!==T.radixPoint){var t=R().validPositions;if(void 0===t[e]||t[e].input===P(e)){if(e<E(-1))return!0;var n=le.inArray(T.radixPoint,w());if(-1!==n){for(var i in t)if(n<i&&t[i].input!==P(i))return!1;return!0}}}return!1}(e.begin))$(r,T.numericInput?E(le.inArray(T.radixPoint,w())):le.inArray(T.radixPoint,w()));else{var t=e.begin,n=E(I(t,!0));if(t<n)$(r,C(t)||C(t-1)?t:E(t));else{var i=P(n);(""!==i&&w()[n]!==i||!C(n,!0)&&c(n).def===i)&&(n=E(n)),$(r,n)}}}},0)}function B(e){var t=this;setTimeout(function(){$(t,0,E(I()))},0)}function q(e){var t=le(this),n=$(this),i=e.originalEvent||e,r=window.clipboardData||i.clipboardData,o=Y?w().slice(n.end,n.begin):w().slice(n.begin,n.end);r.setData("text",Y?o.reverse().join(""):o.join("")),document.execCommand&&document.execCommand("copy"),L(this,ue.keyCode.DELETE,n),v(this,w(),R().p,e,V!==w().join("")),this.inputmask._valueGet()===h().join("")&&t.trigger("cleared"),T.showTooltip&&(this.title=T.tooltip||R().mask)}function H(e){var t=le(this);if(this.inputmask){var n=this.inputmask._valueGet(),i=w().slice();V!==i.join("")&&setTimeout(function(){t.trigger("change"),V=i.join("")},0),""!==n&&(T.clearMaskOnLostFocus&&(-1===I()&&n===h().join("")?i=[]:s(i)),!1===D(i)&&(setTimeout(function(){t.trigger("incomplete")},0),T.clearIncomplete&&(A(),i=T.clearMaskOnLostFocus?[]:h().slice())),v(this,i,void 0,e))}}function z(e){te=!0,document.activeElement!==this&&T.showMaskOnHover&&this.inputmask._valueGet()!==w().join("")&&v(this,w())}function U(e){V!==w().join("")&&Q.trigger("change"),T.clearMaskOnLostFocus&&-1===I()&&G.inputmask._valueGet&&G.inputmask._valueGet()===h().join("")&&G.inputmask._valueSet(""),T.removeMaskOnSubmit&&(G.inputmask._valueSet(G.inputmask.unmaskedvalue(),!0),setTimeout(function(){v(G,w())},0))}function W(e){setTimeout(function(){Q.trigger("setvalue")},0)}var V,G,Q,K,X,Y=!1,Z=!1,J=!1,ee=!1,te=!0,ne={on:function(e,t,r){var n=function(e){if(void 0===this.inputmask&&"FORM"!==this.nodeName){var t=le.data(this,"_inputmask_opts");t?new ue(t).mask(this):ne.off(this)}else{if("setvalue"===e.type||!(this.disabled||this.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||!1===T.tabThrough&&e.keyCode===ue.keyCode.TAB))){switch(e.type){case"input":if(!0===J)return J=!1,e.preventDefault();break;case"keydown":J=Z=!1;break;case"keypress":if(!0===Z)return e.preventDefault();Z=!0;break;case"click":if(pe){var n=this;return setTimeout(function(){r.apply(n,arguments)},0),!1}}var i=r.apply(this,arguments);return!1===i&&(e.preventDefault(),e.stopPropagation()),i}e.preventDefault()}};e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(n),-1!==le.inArray(t,["submit","reset"])?null!=e.form&&le(e.form).on(t,n):le(e).on(t,n)},off:function(i,e){var t;i.inputmask&&i.inputmask.events&&(e?(t=[])[e]=i.inputmask.events[e]:t=i.inputmask.events,le.each(t,function(e,t){for(;0<t.length;){var n=t.pop();-1!==le.inArray(e,["submit","reset"])?null!=i.form&&le(i.form).off(e,n):le(i).off(e,n)}delete i.inputmask.events[e]}))}};if(void 0!==e)switch(e.action){case"isComplete":return G=e.el,D(w());case"unmaskedvalue":return void 0!==(G=e.el)&&void 0!==G.inputmask?(t=G.inputmask.maskset,T=G.inputmask.opts,Y=G.inputmask.isRTL):(X=e.value,T.numericInput&&(Y=!0),X=(le.isFunction(T.onBeforeMask)&&T.onBeforeMask(X,T)||X).split(""),d(void 0,!1,!1,Y?X.reverse():X),le.isFunction(T.onBeforeWrite)&&T.onBeforeWrite(void 0,w(),0,T)),i(G);case"mask":G=e.el,t=G.inputmask.maskset,T=G.inputmask.opts,Y=G.inputmask.isRTL,V=w().join(""),function(e){if(Q=le(G=e),T.showTooltip&&(G.title=T.tooltip||R().mask),("rtl"===G.dir||T.rightAlign)&&(G.style.textAlign="right"),("rtl"===G.dir||T.numericInput)&&(G.dir="ltr",G.removeAttribute("dir"),G.inputmask.isRTL=!0,Y=!0),ne.off(G),function(e){function t(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==I()||!0!==T.nullable?document.activeElement===this&&T.clearMaskOnLostFocus?(Y?s(w().slice()).reverse():s(w().slice())).join(""):i.call(this):"":i.call(this)}function n(e){r.call(this,e),this.inputmask&&le(this).trigger("setvalue")}var i,r,o;if(!e.inputmask.__valueGet){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var a=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):void 0;a&&a.get&&a.set?(i=a.get,r=a.set,Object.defineProperty(e,"value",{get:t,set:n,configurable:!0})):"INPUT"!==e.tagName&&(i=function(){return this.textContent},r=function(e){this.textContent=e},Object.defineProperty(e,"value",{get:t,set:n,configurable:!0}))}else document.__lookupGetter__&&e.__lookupGetter__("value")&&(i=e.__lookupGetter__("value"),r=e.__lookupSetter__("value"),e.__defineGetter__("value",t),e.__defineSetter__("value",n));e.inputmask.__valueGet=i,e.inputmask._valueGet=function(e){return Y&&!0!==e?i.call(this.el).split("").reverse().join(""):i.call(this.el)},e.inputmask.__valueSet=r,e.inputmask._valueSet=function(e,t){r.call(this.el,null==e?"":!0!==t&&Y?e.split("").reverse().join(""):e)},void 0===i&&(i=function(){return this.value},r=function(e){this.value=e},function(e){if(le.valHooks&&(void 0===le.valHooks[e]||!0!==le.valHooks[e].inputmaskpatch)){var n=le.valHooks[e]&&le.valHooks[e].get?le.valHooks[e].get:function(e){return e.value},r=le.valHooks[e]&&le.valHooks[e].set?le.valHooks[e].set:function(e,t){return e.value=t,e};le.valHooks[e]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var t=n(e);return-1!==I(void 0,void 0,e.inputmask.maskset.validPositions)||!0!==T.nullable?t:""}return n(e)},set:function(e,t){var n,i=le(e);return n=r(e,t),e.inputmask&&i.trigger("setvalue"),n},inputmaskpatch:!0}}}(e.type),o=e,ne.on(o,"mouseenter",function(e){var t=le(this);this.inputmask._valueGet()!==w().join("")&&t.trigger("setvalue")}))}}(G),function(e,t){var n=e.getAttribute("type"),i="INPUT"===e.tagName&&-1!==le.inArray(n,t.supportsInputType)||e.isContentEditable||"TEXTAREA"===e.tagName;if(!i&&"INPUT"===e.tagName){var r=document.createElement("input");r.setAttribute("type",n),i="text"===r.type,r=null}return i}(G,T)&&(ne.on(G,"submit",U),ne.on(G,"reset",W),ne.on(G,"mouseenter",z),ne.on(G,"blur",H),ne.on(G,"focus",p),ne.on(G,"mouseleave",j),ne.on(G,"click",_),ne.on(G,"dblclick",B),ne.on(G,"paste",r),ne.on(G,"dragdrop",r),ne.on(G,"drop",r),ne.on(G,"cut",q),ne.on(G,"complete",T.oncomplete),ne.on(G,"incomplete",T.onincomplete),ne.on(G,"cleared",T.oncleared),ne.on(G,"keydown",l),ne.on(G,"keypress",O),ne.on(G,"input",o)),ne.on(G,"setvalue",u),""!==G.inputmask._valueGet()||!1===T.clearMaskOnLostFocus||document.activeElement===G){var t=le.isFunction(T.onBeforeMask)&&T.onBeforeMask(G.inputmask._valueGet(),T)||G.inputmask._valueGet();d(G,!0,!1,t.split(""));var n=w().slice();V=n.join(""),!1===D(n)&&T.clearIncomplete&&A(),T.clearMaskOnLostFocus&&document.activeElement!==G&&(-1===I()?n=[]:s(n)),v(G,n),document.activeElement===G&&$(G,E(I()))}}(G);break;case"format":return T.numericInput&&(Y=!0),X=(le.isFunction(T.onBeforeMask)&&T.onBeforeMask(e.value,T)||e.value).split(""),d(void 0,!1,!1,Y?X.reverse():X),le.isFunction(T.onBeforeWrite)&&T.onBeforeWrite(void 0,w(),0,T),e.metadata?{value:Y?w().slice().reverse().join(""):w().join(""),metadata:ce({action:"getmetadata"},t,T)}:Y?w().slice().reverse().join(""):w().join("");case"isValid":T.numericInput&&(Y=!0),e.value?(X=e.value.split(""),d(void 0,!1,!0,Y?X.reverse():X)):e.value=w().join("");for(var ie=w(),re=a(),oe=ie.length-1;re<oe&&!C(oe);oe--);return ie.splice(re,oe+1-re),D(ie)&&e.value===w().join("");case"getemptymask":return h().join("");case"remove":G=e.el,Q=le(G),t=G.inputmask.maskset,T=G.inputmask.opts,G.inputmask._valueSet(i(G)),ne.off(G),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(G),"value")&&G.inputmask.__valueGet&&Object.defineProperty(G,"value",{get:G.inputmask.__valueGet,set:G.inputmask.__valueSet,configurable:!0}):document.__lookupGetter__&&G.__lookupGetter__("value")&&G.inputmask.__valueGet&&(G.__defineGetter__("value",G.inputmask.__valueGet),G.__defineSetter__("value",G.inputmask.__valueSet)),G.inputmask=void 0;break;case"getmetadata":if(le.isArray(t.metadata)){for(var ae,se=I(void 0,!0);0<=se;se--)if(R().validPositions[se]&&void 0!==R().validPositions[se].alternation){ae=R().validPositions[se].alternation;break}return void 0!==ae?t.metadata[R().validPositions[se].locator[ae]]:[]}return t.metadata}}ue.prototype={defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,oncomplete:le.noop,onincomplete:le.noop,oncleared:le.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,aliases:{},alias:null,onKeyDown:le.noop,onBeforeMask:null,onBeforePaste:function(e,t){return le.isFunction(t.onBeforeMask)?t.onBeforeMask(e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:le.noop,skipOptionalPartCharacter:" ",showTooltip:!1,tooltip:void 0,numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:void 0,groupSeparator:"",radixFocus:!1,nojumps:!1,nojumpsThreshold:0,keepStatic:null,positionCaretOnTab:!1,tabThrough:!1,supportsInputType:["text","tel","password"],definitions:{9:{validator:"[0-9]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1}},ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123],isComplete:null,canClearPosition:le.noop,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0},masksCache:{},mask:function(e){var r=this;return"string"==typeof e&&(e=document.getElementById(e)||document.querySelectorAll(e)),e=e.nodeName?[e]:e,le.each(e,function(e,t){var n=le.extend(!0,{},r.opts);!function(n,e,i){function t(e,t){null!==(t=void 0!==t?t:n.getAttribute("data-inputmask-"+e))&&("string"==typeof t&&(0===e.indexOf("on")?t=window[t]:"false"===t?t=!1:"true"===t&&(t=!0)),i[e]=t)}var r,o,a,s,l=n.getAttribute("data-inputmask");if(l&&""!==l&&(l=l.replace(new RegExp("'","g"),'"'),o=JSON.parse("{"+l+"}")),o)for(s in a=void 0,o)if("alias"===s.toLowerCase()){a=o[s];break}for(r in t("alias",a),i.alias&&u(i.alias,i,e),e){if(o)for(s in a=void 0,o)if(s.toLowerCase()===r.toLowerCase()){a=o[s];break}t(r,a)}le.extend(!0,e,i)}(t,n,le.extend(!0,{},r.userOptions));var i=o(n,r.noMasksCache);void 0!==i&&(void 0!==t.inputmask&&t.inputmask.remove(),t.inputmask=new ue,t.inputmask.opts=n,t.inputmask.noMasksCache=r.noMasksCache,t.inputmask.userOptions=le.extend(!0,{},r.userOptions),(t.inputmask.el=t).inputmask.maskset=i,t.inputmask.isRTL=!1,le.data(t,"_inputmask_opts",n),ce({action:"mask",el:t}))}),e&&e[0]&&e[0].inputmask||this},option:function(e,t){return"string"==typeof e?this.opts[e]:"object"==typeof e?(le.extend(this.userOptions,e),this.el&&!0!==t&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return ce({action:"unmaskedvalue",el:this.el,value:e},this.el&&this.el.inputmask?this.el.inputmask.maskset:o(this.opts,this.noMasksCache),this.opts)},remove:function(){return this.el?(ce({action:"remove",el:this.el}),this.el.inputmask=void 0,this.el):void 0},getemptymask:function(){return ce({action:"getemptymask"},this.maskset||o(this.opts,this.noMasksCache),this.opts)},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return ce({action:"isComplete",el:this.el},this.maskset||o(this.opts,this.noMasksCache),this.opts)},getmetadata:function(){return ce({action:"getmetadata"},this.maskset||o(this.opts,this.noMasksCache),this.opts)},isValid:function(e){return ce({action:"isValid",value:e},this.maskset||o(this.opts,this.noMasksCache),this.opts)},format:function(e,t){return ce({action:"format",value:e,metadata:t},this.maskset||o(this.opts,this.noMasksCache),this.opts)}},ue.extendDefaults=function(e){le.extend(!0,ue.prototype.defaults,e)},ue.extendDefinitions=function(e){le.extend(!0,ue.prototype.defaults.definitions,e)},ue.extendAliases=function(e){le.extend(!0,ue.prototype.defaults.aliases,e)},ue.format=function(e,t,n){return ue(t).format(e,n)},ue.unmask=function(e,t){return ue(t).unmaskedvalue(e)},ue.isValid=function(e,t){return ue(t).isValid(e)},ue.remove=function(e){le.each(e,function(e,t){t.inputmask&&t.inputmask.remove()})},ue.escapeRegex=function(e){return e.replace(new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim"),"\\$1")},ue.keyCode={ALT:18,BACKSPACE:8,BACKSPACE_SAFARI:127,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91,X:88};var e=navigator.userAgent,de=/mobile/i.test(e),pe=/iemobile/i.test(e),he=/iphone/i.test(e)&&!pe;/android.*safari.*/i.test(e),window.Inputmask=ue}(jQuery),function(r,o){void 0===r.fn.inputmask&&(r.fn.inputmask=function(e,t){var n,i=this[0];if(void 0===t&&(t={}),"string"==typeof e)switch(e){case"unmaskedvalue":return i&&i.inputmask?i.inputmask.unmaskedvalue():r(i).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return i&&i.inputmask?i.inputmask.getemptymask():"";case"hasMaskedValue":return!(!i||!i.inputmask)&&i.inputmask.hasMaskedValue();case"isComplete":return!i||!i.inputmask||i.inputmask.isComplete();case"getmetadata":return i&&i.inputmask?i.inputmask.getmetadata():void 0;case"setvalue":r(i).val(t),i&&void 0!==i.inputmask&&r(i).triggerHandler("setvalue");break;case"option":if("string"!=typeof t)return this.each(function(){return void 0!==this.inputmask?this.inputmask.option(t):void 0});if(i&&void 0!==i.inputmask)return i.inputmask.option(t);break;default:return t.alias=e,n=new o(t),this.each(function(){n.mask(this)})}else{if("object"==typeof e)return n=new o(e),void 0===e.mask&&void 0===e.alias?this.each(function(){return void 0!==this.inputmask?this.inputmask.option(e):void n.mask(this)}):this.each(function(){n.mask(this)});if(void 0===e)return this.each(function(){(n=new o(t)).mask(this)})}}),r.fn.inputmask}(jQuery,Inputmask),function(a,s){s.extendDefinitions({h:{validator:"[01][0-9]|2[0-3]",cardinality:2,prevalidator:[{validator:"[0-2]",cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:"[0-5]",cardinality:1}]},d:{validator:"0[1-9]|[12][0-9]|3[01]",cardinality:2,prevalidator:[{validator:"[0-3]",cardinality:1}]},m:{validator:"0[1-9]|1[012]",cardinality:2,prevalidator:[{validator:"[01]",cardinality:1}]},y:{validator:"(19|20)\\d{2}",cardinality:4,prevalidator:[{validator:"[12]",cardinality:1},{validator:"(19|20)",cardinality:2},{validator:"(19|20)\\d",cardinality:3}]}}),s.extendAliases({"dd/mm/yyyy":{mask:"1/2/y",placeholder:"dd/mm/yyyy",regex:{val1pre:new RegExp("[0-3]"),val1:new RegExp("0[1-9]|[12][0-9]|3[01]"),val2pre:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[1-9]|[12][0-9]|3[01])"+t+"[01])")},val2:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[1-9]|[12][0-9])"+t+"(0[1-9]|1[012]))|(30"+t+"(0[13-9]|1[012]))|(31"+t+"(0[13578]|1[02]))")}},leapday:"29/02/",separator:"/",yearrange:{minyear:1900,maxyear:2099},isInYearRange:function(e,t,n){if(isNaN(e))return!1;var i=parseInt(e.concat(t.toString().slice(e.length))),r=parseInt(e.concat(n.toString().slice(e.length)));return!isNaN(i)&&(t<=i&&i<=n)||!isNaN(r)&&(t<=r&&r<=n)},determinebaseyear:function(e,t,n){var i=(new Date).getFullYear();if(i<e)return e;if(t<i){for(var r=t.toString().slice(0,2),o=t.toString().slice(2,4);t<r+n;)r--;var a=r+o;return a<e?e:a}if(e<=i&&i<=t){for(var s=i.toString().slice(0,2);t<s+n;)s--;var l=s+n;return l<e?e:l}return i},onKeyDown:function(e,t,n,i){var r=a(this);if(e.ctrlKey&&e.keyCode===s.keyCode.RIGHT){var o=new Date;r.val(o.getDate().toString()+(o.getMonth()+1).toString()+o.getFullYear().toString()),r.trigger("setvalue")}},getFrontValue:function(e,t,n){for(var i=0,r=0,o=0;o<e.length&&"2"!==e.charAt(o);o++){var a=n.definitions[e.charAt(o)];a?(i+=r,r=a.cardinality):r++}return t.join("").substr(i,r)},definitions:{1:{validator:function(e,t,n,i,r){var o=r.regex.val1.test(e);return i||o||e.charAt(1)!==r.separator&&-1==="-./".indexOf(e.charAt(1))||!(o=r.regex.val1.test("0"+e.charAt(0)))?o:(t.buffer[n-1]="0",{refreshFromBuffer:{start:n-1,end:n},pos:n,c:e.charAt(0)})},cardinality:2,prevalidator:[{validator:function(e,t,n,i,r){var o=e;isNaN(t.buffer[n+1])||(o+=t.buffer[n+1]);var a=1===o.length?r.regex.val1pre.test(o):r.regex.val1.test(o);if(!i&&!a){if(a=r.regex.val1.test(e+"0"))return t.buffer[n]=e,t.buffer[++n]="0",{pos:n,c:"0"};if(a=r.regex.val1.test("0"+e))return t.buffer[n]="0",{pos:++n}}return a},cardinality:1}]},2:{validator:function(e,t,n,i,r){var o=r.getFrontValue(t.mask,t.buffer,r);-1!==o.indexOf(r.placeholder[0])&&(o="01"+r.separator);var a=r.regex.val2(r.separator).test(o+e);if(!i&&!a&&(e.charAt(1)===r.separator||-1!=="-./".indexOf(e.charAt(1)))&&(a=r.regex.val2(r.separator).test(o+"0"+e.charAt(0))))return t.buffer[n-1]="0",{refreshFromBuffer:{start:n-1,end:n},pos:n,c:e.charAt(0)};if(r.mask.indexOf("2")===r.mask.length-1&&a){if(t.buffer.join("").substr(4,4)+e!==r.leapday)return!0;var s=parseInt(t.buffer.join("").substr(0,4),10);return s%4==0&&(s%100!=0||s%400==0)}return a},cardinality:2,prevalidator:[{validator:function(e,t,n,i,r){isNaN(t.buffer[n+1])||(e+=t.buffer[n+1]);var o=r.getFrontValue(t.mask,t.buffer,r);-1!==o.indexOf(r.placeholder[0])&&(o="01"+r.separator);var a=1===e.length?r.regex.val2pre(r.separator).test(o+e):r.regex.val2(r.separator).test(o+e);return i||a||!(a=r.regex.val2(r.separator).test(o+"0"+e))?a:(t.buffer[n]="0",{pos:++n})},cardinality:1}]},y:{validator:function(e,t,n,i,r){if(r.isInYearRange(e,r.yearrange.minyear,r.yearrange.maxyear)){if(t.buffer.join("").substr(0,6)!==r.leapday)return!0;var o=parseInt(e,10);return o%4==0&&(o%100!=0||o%400==0)}return!1},cardinality:4,prevalidator:[{validator:function(e,t,n,i,r){var o=r.isInYearRange(e,r.yearrange.minyear,r.yearrange.maxyear);if(!i&&!o){var a=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,e+"0").toString().slice(0,1);if(o=r.isInYearRange(a+e,r.yearrange.minyear,r.yearrange.maxyear))return t.buffer[n++]=a.charAt(0),{pos:n};if(a=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,e+"0").toString().slice(0,2),o=r.isInYearRange(a+e,r.yearrange.minyear,r.yearrange.maxyear))return t.buffer[n++]=a.charAt(0),t.buffer[n++]=a.charAt(1),{pos:n}}return o},cardinality:1},{validator:function(e,t,n,i,r){var o=r.isInYearRange(e,r.yearrange.minyear,r.yearrange.maxyear);if(!i&&!o){var a=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,e).toString().slice(0,2);if(o=r.isInYearRange(e[0]+a[1]+e[1],r.yearrange.minyear,r.yearrange.maxyear))return t.buffer[n++]=a.charAt(1),{pos:n};if(a=r.determinebaseyear(r.yearrange.minyear,r.yearrange.maxyear,e).toString().slice(0,2),r.isInYearRange(a+e,r.yearrange.minyear,r.yearrange.maxyear))if(t.buffer.join("").substr(0,6)!==r.leapday)o=!0;else{var s=parseInt(e,10);o=s%4==0&&(s%100!=0||s%400==0)}else o=!1;if(o)return t.buffer[n-1]=a.charAt(0),t.buffer[n++]=a.charAt(1),t.buffer[n++]=e.charAt(0),{refreshFromBuffer:{start:n-3,end:n},pos:n}}return o},cardinality:2},{validator:function(e,t,n,i,r){return r.isInYearRange(e,r.yearrange.minyear,r.yearrange.maxyear)},cardinality:3}]}},insertMode:!1,autoUnmask:!1},"mm/dd/yyyy":{placeholder:"mm/dd/yyyy",alias:"dd/mm/yyyy",regex:{val2pre:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[13-9]|1[012])"+t+"[0-3])|(02"+t+"[0-2])")},val2:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[1-9]|1[012])"+t+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+t+"30)|((0[13578]|1[02])"+t+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(e,t,n,i){var r=a(this);if(e.ctrlKey&&e.keyCode===s.keyCode.RIGHT){var o=new Date;r.val((o.getMonth()+1).toString()+o.getDate().toString()+o.getFullYear().toString()),r.trigger("setvalue")}}},"yyyy/mm/dd":{mask:"y/1/2",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",leapday:"/02/29",onKeyDown:function(e,t,n,i){var r=a(this);if(e.ctrlKey&&e.keyCode===s.keyCode.RIGHT){var o=new Date;r.val(o.getFullYear().toString()+(o.getMonth()+1).toString()+o.getDate().toString()),r.trigger("setvalue")}}},"dd.mm.yyyy":{mask:"1.2.y",placeholder:"dd.mm.yyyy",leapday:"29.02.",separator:".",alias:"dd/mm/yyyy"},"dd-mm-yyyy":{mask:"1-2-y",placeholder:"dd-mm-yyyy",leapday:"29-02-",separator:"-",alias:"dd/mm/yyyy"},"mm.dd.yyyy":{mask:"1.2.y",placeholder:"mm.dd.yyyy",leapday:"02.29.",separator:".",alias:"mm/dd/yyyy"},"mm-dd-yyyy":{mask:"1-2-y",placeholder:"mm-dd-yyyy",leapday:"02-29-",separator:"-",alias:"mm/dd/yyyy"},"yyyy.mm.dd":{mask:"y.1.2",placeholder:"yyyy.mm.dd",leapday:".02.29",separator:".",alias:"yyyy/mm/dd"},"yyyy-mm-dd":{mask:"y-1-2",placeholder:"yyyy-mm-dd",leapday:"-02-29",separator:"-",alias:"yyyy/mm/dd"},datetime:{mask:"1/2/y h:s",placeholder:"dd/mm/yyyy hh:mm",alias:"dd/mm/yyyy",regex:{hrspre:new RegExp("[012]"),hrs24:new RegExp("2[0-4]|1[3-9]"),hrs:new RegExp("[01][0-9]|2[0-4]"),ampm:new RegExp("^[a|p|A|P][m|M]"),mspre:new RegExp("[0-5]"),ms:new RegExp("[0-5][0-9]")},timeseparator:":",hourFormat:"24",definitions:{h:{validator:function(e,t,n,i,r){if("24"===r.hourFormat&&24===parseInt(e,10))return t.buffer[n-1]="0",{refreshFromBuffer:{start:n-1,end:n},c:t.buffer[n]="0"};var o=r.regex.hrs.test(e);if(!i&&!o&&(e.charAt(1)===r.timeseparator||-1!=="-.:".indexOf(e.charAt(1)))&&(o=r.regex.hrs.test("0"+e.charAt(0))))return t.buffer[n-1]="0",t.buffer[n]=e.charAt(0),{refreshFromBuffer:{start:++n-2,end:n},pos:n,c:r.timeseparator};if(o&&"24"!==r.hourFormat&&r.regex.hrs24.test(e)){var a=parseInt(e,10);return t.buffer[n+5]=24===a?"a":"p",t.buffer[n+6]="m",(a-=12)<10?(t.buffer[n]=a.toString(),t.buffer[n-1]="0"):(t.buffer[n]=a.toString().charAt(1),t.buffer[n-1]=a.toString().charAt(0)),{refreshFromBuffer:{start:n-1,end:n+6},c:t.buffer[n]}}return o},cardinality:2,prevalidator:[{validator:function(e,t,n,i,r){var o=r.regex.hrspre.test(e);return i||o||!(o=r.regex.hrs.test("0"+e))?o:(t.buffer[n]="0",{pos:++n})},cardinality:1}]},s:{validator:"[0-5][0-9]",cardinality:2,prevalidator:[{validator:function(e,t,n,i,r){var o=r.regex.mspre.test(e);return i||o||!(o=r.regex.ms.test("0"+e))?o:(t.buffer[n]="0",{pos:++n})},cardinality:1}]},t:{validator:function(e,t,n,i,r){return r.regex.ampm.test(e+"m")},casing:"lower",cardinality:1}},insertMode:!1,autoUnmask:!1},datetime12:{mask:"1/2/y h:s t\\m",placeholder:"dd/mm/yyyy hh:mm xm",alias:"datetime",hourFormat:"12"},"mm/dd/yyyy hh:mm xm":{mask:"1/2/y h:s t\\m",placeholder:"mm/dd/yyyy hh:mm xm",alias:"datetime12",regex:{val2pre:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[13-9]|1[012])"+t+"[0-3])|(02"+t+"[0-2])")},val2:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[1-9]|1[012])"+t+"(0[1-9]|[12][0-9]))|((0[13-9]|1[012])"+t+"30)|((0[13578]|1[02])"+t+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},leapday:"02/29/",onKeyDown:function(e,t,n,i){var r=a(this);if(e.ctrlKey&&e.keyCode===s.keyCode.RIGHT){var o=new Date;r.val((o.getMonth()+1).toString()+o.getDate().toString()+o.getFullYear().toString()),r.trigger("setvalue")}}},"hh:mm t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"h:s t":{mask:"h:s t\\m",placeholder:"hh:mm xm",alias:"datetime",hourFormat:"12"},"hh:mm:ss":{mask:"h:s:s",placeholder:"hh:mm:ss",alias:"datetime",autoUnmask:!1},"hh:mm":{mask:"h:s",placeholder:"hh:mm",alias:"datetime",autoUnmask:!1},date:{alias:"dd/mm/yyyy"},"mm/yyyy":{mask:"1/y",placeholder:"mm/yyyy",leapday:"donotuse",separator:"/",alias:"mm/dd/yyyy"},shamsi:{regex:{val2pre:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[1-9]|1[012])"+t+"[0-3])")},val2:function(e){var t=s.escapeRegex.call(this,e);return new RegExp("((0[1-9]|1[012])"+t+"(0[1-9]|[12][0-9]))|((0[1-9]|1[012])"+t+"30)|((0[1-6])"+t+"31)")},val1pre:new RegExp("[01]"),val1:new RegExp("0[1-9]|1[012]")},yearrange:{minyear:1300,maxyear:1499},mask:"y/1/2",leapday:"/12/30",placeholder:"yyyy/mm/dd",alias:"mm/dd/yyyy",clearIncomplete:!0}})}(jQuery,Inputmask),function(e,t){t.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Fa-f]",cardinality:1,casing:"upper"}}),t.extendAliases({url:{definitions:{i:{validator:".",cardinality:1}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,n,i,r){return-1<n-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=-1<n-2&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(e)},cardinality:1}},onUnMask:function(e,t,n){return e}},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"},"-":{validator:"[0-9A-Za-z-]",cardinality:1,casing:"lower"}},onUnMask:function(e,t,n){return e}},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",cardinality:1,casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}})}(jQuery,Inputmask),function(m,g){g.extendAliases({numeric:{mask:function(i){function e(e){for(var t="",n=0;n<e.length;n++)t+=i.definitions[e.charAt(n)]||i.optionalmarker.start===e.charAt(n)||i.optionalmarker.end===e.charAt(n)||i.quantifiermarker.start===e.charAt(n)||i.quantifiermarker.end===e.charAt(n)||i.groupmarker.start===e.charAt(n)||i.groupmarker.end===e.charAt(n)||i.alternatormarker===e.charAt(n)?"\\"+e.charAt(n):e.charAt(n);return t}if(0!==i.repeat&&isNaN(i.integerDigits)&&(i.integerDigits=i.repeat),i.repeat=0,i.groupSeparator===i.radixPoint&&("."===i.radixPoint?i.groupSeparator=",":","===i.radixPoint?i.groupSeparator=".":i.groupSeparator="")," "===i.groupSeparator&&(i.skipOptionalPartCharacter=void 0),i.autoGroup=i.autoGroup&&""!==i.groupSeparator,i.autoGroup&&("string"==typeof i.groupSize&&isFinite(i.groupSize)&&(i.groupSize=parseInt(i.groupSize)),isFinite(i.integerDigits))){var t=Math.floor(i.integerDigits/i.groupSize),n=i.integerDigits%i.groupSize;i.integerDigits=parseInt(i.integerDigits)+(0===n?t-1:t),i.integerDigits<1&&(i.integerDigits="*")}1<i.placeholder.length&&(i.placeholder=i.placeholder.charAt(0)),i.radixFocus=i.radixFocus&&""!==i.placeholder&&!0===i.integerOptional,i.definitions[";"]=i.definitions["~"],i.definitions[";"].definitionSymbol="~",!0===i.numericInput&&(i.radixFocus=!1,i.digitsOptional=!1,isNaN(i.digits)&&(i.digits=2),i.decimalProtect=!1);var r=e(i.prefix);return r+="[+]",r+=!0===i.integerOptional?"~{1,"+i.integerDigits+"}":"~{"+i.integerDigits+"}",void 0!==i.digits&&(isNaN(i.digits)||0<parseInt(i.digits))&&(i.decimalProtect&&(i.radixPointDefinitionSymbol=":"),r+=i.digitsOptional?"["+(i.decimalProtect?":":i.radixPoint)+";{1,"+i.digits+"}]":(i.decimalProtect?":":i.radixPoint)+";{"+i.digits+"}"),r+="[-]",r+=e(i.suffix),i.greedy=!1,null!==i.min&&(i.min=i.min.toString().replace(new RegExp(g.escapeRegex(i.groupSeparator),"g"),""),","===i.radixPoint&&(i.min=i.min.replace(i.radixPoint,"."))),null!==i.max&&(i.max=i.max.toString().replace(new RegExp(g.escapeRegex(i.groupSeparator),"g"),""),","===i.radixPoint&&(i.max=i.max.replace(i.radixPoint,"."))),r},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,radixPoint:".",radixFocus:!0,groupSize:3,groupSeparator:"",autoGroup:!1,allowPlus:!0,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,postFormat:function(e,t,n){!0===n.numericInput&&(e=e.reverse(),isFinite(t)&&(t=e.join("").length-t-1));var i,r,o=!1;e.length>=n.suffix.length&&e.join("").indexOf(n.suffix)===e.length-n.suffix.length&&(e.length=e.length-n.suffix.length,o=!0);var a=!1,s=e[t=t>=e.length?e.length-1:t<n.prefix.length?n.prefix.length:t],l=e.slice();s===n.groupSeparator&&(l.splice(t--,1),s=l[t]),s!==n.radixPoint&&s!==n.negationSymbol.front&&s!==n.negationSymbol.back&&(l[t]="?");var u=l.join(""),c=u;if(0<u.length&&n.autoGroup||-1!==u.indexOf(n.groupSeparator)){var d=g.escapeRegex(n.groupSeparator);a=0===u.indexOf(n.groupSeparator);var p=(u=u.replace(new RegExp(d,"g"),"")).split(n.radixPoint);if((u=""===n.radixPoint?u:p[0])!==n.prefix+"?0"&&u.length>=n.groupSize+n.prefix.length)for(var h=new RegExp("([-+]?[\\d?]+)([\\d?]{"+n.groupSize+"})");h.test(u)&&""!==n.groupSeparator;)u=(u=u.replace(h,"$1"+n.groupSeparator+"$2")).replace(n.groupSeparator+n.groupSeparator,n.groupSeparator);""!==n.radixPoint&&1<p.length&&(u+=n.radixPoint+p[1])}for(a=c!==u,e.length=u.length,i=0,r=u.length;i<r;i++)e[i]=u.charAt(i);var f=m.inArray("?",e);if(-1===f&&(f=m.inArray(s,e)),e[f]=s,!a&&o)for(i=0,r=n.suffix.length;i<r;i++)e.push(n.suffix.charAt(i));return f=n.numericInput&&isFinite(t)?e.join("").length-f-1:f,n.numericInput&&(e=e.reverse(),m.inArray(n.radixPoint,e)<f&&e.join("").length-n.suffix.length!==f&&(f-=1)),{pos:f,refreshFromBuffer:a,buffer:e}},onBeforeWrite:function(e,t,n,i){var r;if(e&&("blur"===e.type||"checkval"===e.type||"keydown"===e.type)){var o=i.numericInput?t.slice().reverse().join(""):t.join(""),a=o.replace(i.prefix,"");a=(a=a.replace(i.suffix,"")).replace(new RegExp(g.escapeRegex(i.groupSeparator),"g"),""),","===i.radixPoint&&(a=a.replace(i.radixPoint,"."));var s=a.match(new RegExp("[-"+g.escapeRegex(i.negationSymbol.front)+"]","g"));if(s=null!==s&&1===s.length,a=(a=a.replace(new RegExp("[-"+g.escapeRegex(i.negationSymbol.front)+"]","g"),"")).replace(new RegExp(g.escapeRegex(i.negationSymbol.back)+"$"),""),isNaN(i.placeholder)&&(a=a.replace(new RegExp(g.escapeRegex(i.placeholder),"g"),"")),""!==(a=a===i.negationSymbol.front?a+"0":a)&&isFinite(a)){var l=parseFloat(a),u=s?-1*l:l;if(null!==i.min&&isFinite(i.min)&&u<parseFloat(i.min)?(l=Math.abs(i.min),s=i.min<0,o=void 0):null!==i.max&&isFinite(i.max)&&u>parseFloat(i.max)&&(l=Math.abs(i.max),s=i.max<0,o=void 0),a=l.toString().replace(".",i.radixPoint).split(""),isFinite(i.digits)){var c=m.inArray(i.radixPoint,a),d=m.inArray(i.radixPoint,o);-1===c&&(a.push(i.radixPoint),c=a.length-1);for(var p=1;p<=i.digits;p++)i.digitsOptional||void 0!==a[c+p]&&a[c+p]!==i.placeholder.charAt(0)?-1!==d&&void 0!==o[d+p]&&(a[c+p]=a[c+p]||o[d+p]):a[c+p]="0";a[a.length-1]===i.radixPoint&&delete a[a.length-1]}if(l.toString()!==a&&l.toString()+"."!==a||s)return!s||0===l&&"blur"===e.type||(a.unshift(i.negationSymbol.front),a.push(i.negationSymbol.back)),a=(i.prefix+a.join("")).split(""),i.numericInput&&(a=a.reverse()),(r=i.postFormat(a,i.numericInput?n:n-1,i)).buffer&&(r.refreshFromBuffer=r.buffer.join("")!==t.join("")),r}}return i.autoGroup?((r=i.postFormat(t,i.numericInput?n:n-1,i)).caret=n<=i.prefix.length?r.pos:r.pos+1,r):void 0},regex:{integerPart:function(e){return new RegExp("["+g.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+g.escapeRegex(e.groupSeparator)+g.escapeRegex(e.placeholder.charAt(0))+"]+")}},signHandler:function(e,t,n,i,r){if(!i&&r.allowMinus&&"-"===e||r.allowPlus&&"+"===e){var o=t.buffer.join("").match(r.regex.integerPart(r));if(o&&0<o[0].length)return t.buffer[o.index]===("-"===e?"+":r.negationSymbol.front)?"-"===e?""!==r.negationSymbol.back?{pos:o.index,c:r.negationSymbol.front,remove:o.index,caret:n,insert:{pos:t.buffer.length-r.suffix.length-1,c:r.negationSymbol.back}}:{pos:o.index,c:r.negationSymbol.front,remove:o.index,caret:n}:""!==r.negationSymbol.back?{pos:o.index,c:"+",remove:[o.index,t.buffer.length-r.suffix.length-1],caret:n}:{pos:o.index,c:"+",remove:o.index,caret:n}:t.buffer[o.index]===("-"===e?r.negationSymbol.front:"+")?"-"===e&&""!==r.negationSymbol.back?{remove:[o.index,t.buffer.length-r.suffix.length-1],caret:n-1}:{remove:o.index,caret:n-1}:"-"===e?""!==r.negationSymbol.back?{pos:o.index,c:r.negationSymbol.front,caret:n+1,insert:{pos:t.buffer.length-r.suffix.length,c:r.negationSymbol.back}}:{pos:o.index,c:r.negationSymbol.front,caret:n+1}:{pos:o.index,c:e,caret:n+1}}return!1},radixHandler:function(e,t,n,i,r){if(!i&&!0!==r.numericInput&&e===r.radixPoint&&void 0!==r.digits&&(isNaN(r.digits)||0<parseInt(r.digits))){var o=m.inArray(r.radixPoint,t.buffer),a=t.buffer.join("").match(r.regex.integerPart(r));if(-1!==o&&t.validPositions[o])return t.validPositions[o-1]?{caret:o+1}:{pos:a.index,c:a[0],caret:o+1};if(!a||"0"===a[0]&&a.index+1!==n)return t.buffer[a?a.index:n]="0",{pos:(a?a.index:n)+1,c:r.radixPoint}}return!1},leadingZeroHandler:function(e,t,n,i,r,o){if(!i)if(!0===r.numericInput){var a=t.buffer.slice("").reverse();if("0"===a[r.prefix.length]&&void 0===t.validPositions[n-1])return{pos:n,remove:a.length-r.prefix.length-1}}else{var s=m.inArray(r.radixPoint,t.buffer),l=t.buffer.slice(0,-1!==s?s:void 0).join("").match(r.regex.integerNPart(r));if(l&&(-1===s||n<=s)){var u=-1===s?0:parseInt(t.buffer.slice(s+1).join(""));if(0===l[0].indexOf(""!==r.placeholder?r.placeholder.charAt(0):"0")&&(l.index+1===n||!0!==o&&0===u))return t.buffer.splice(l.index,1),{pos:l.index,remove:l.index};if("0"===e&&n<=l.index&&l[0]!==r.groupSeparator)return!1}}return!0},definitions:{"~":{validator:function(e,t,n,i,r,o){var a=r.signHandler(e,t,n,i,r);if(!a&&(!(a=r.radixHandler(e,t,n,i,r))&&(!0===(a=i?new RegExp("[0-9"+g.escapeRegex(r.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e))&&!0===(a=r.leadingZeroHandler(e,t,n,i,r,o))))){var s=m.inArray(r.radixPoint,t.buffer);a=-1!==s&&(!1===r.digitsOptional||t.validPositions[n])&&!0!==r.numericInput&&s<n&&!i?{pos:n,remove:n}:{pos:n}}return a},cardinality:1},"+":{validator:function(e,t,n,i,r){var o=r.signHandler(e,t,n,i,r);return!o&&(i&&r.allowMinus&&e===r.negationSymbol.front||r.allowMinus&&"-"===e||r.allowPlus&&"+"===e)&&(o=!(!i&&"-"===e)||(""!==r.negationSymbol.back?{pos:n,c:"-"===e?r.negationSymbol.front:"+",caret:n+1,insert:{pos:t.buffer.length,c:r.negationSymbol.back}}:{pos:n,c:"-"===e?r.negationSymbol.front:"+",caret:n+1})),o},cardinality:1,placeholder:""},"-":{validator:function(e,t,n,i,r){var o=r.signHandler(e,t,n,i,r);return!o&&i&&r.allowMinus&&e===r.negationSymbol.back&&(o=!0),o},cardinality:1,placeholder:""},":":{validator:function(e,t,n,i,r){var o=r.signHandler(e,t,n,i,r);if(!o){var a="["+g.escapeRegex(r.radixPoint)+"]";(o=new RegExp(a).test(e))&&t.validPositions[n]&&t.validPositions[n].match.placeholder===r.radixPoint&&(o={caret:n+1})}return o?{c:r.radixPoint}:o},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(e,t,n){var i=e.replace(n.prefix,"");return i=(i=i.replace(n.suffix,"")).replace(new RegExp(g.escapeRegex(n.groupSeparator),"g"),""),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==i.indexOf(n.radixPoint)&&(i=i.replace(g.escapeRegex.call(this,n.radixPoint),".")),Number(i)):i},isComplete:function(e,t){var n=e.join(""),i=e.slice();if(t.postFormat(i,0,t),i.join("")!==n)return!1;var r=n.replace(t.prefix,"");return r=(r=r.replace(t.suffix,"")).replace(new RegExp(g.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(r=r.replace(g.escapeRegex(t.radixPoint),".")),isFinite(r)},onBeforeMask:function(e,t){if(""!==t.radixPoint&&isFinite(e))e=e.toString().replace(".",t.radixPoint);else{var n=e.match(/,/g),i=e.match(/\./g);i&&n?i.length>n.length?e=(e=e.replace(/\./g,"")).replace(",",t.radixPoint):n.length>i.length?e=(e=e.replace(/,/g,"")).replace(".",t.radixPoint):e=e.indexOf(".")<e.indexOf(",")?e.replace(/\./g,""):e=e.replace(/,/g,""):e=e.replace(new RegExp(g.escapeRegex(t.groupSeparator),"g"),"")}if(0===t.digits&&(-1!==e.indexOf(".")?e=e.substring(0,e.indexOf(".")):-1!==e.indexOf(",")&&(e=e.substring(0,e.indexOf(",")))),""!==t.radixPoint&&isFinite(t.digits)&&-1!==e.indexOf(t.radixPoint)){var r=e.split(t.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(t.digits)<r.toString().length){var o=Math.pow(10,parseInt(t.digits));e=e.replace(g.escapeRegex(t.radixPoint),"."),e=(e=Math.round(parseFloat(e)*o)/o).toString().replace(".",t.radixPoint)}}return e.toString()},canClearPosition:function(e,t,n,i,r){var o=e.validPositions[t].input;return o!==r.radixPoint||null!==e.validPositions[t].match.fn&&!1===r.decimalProtect||isFinite(o)||t===n||o===r.groupSeparator||o===r.negationSymbol.front||o===r.negationSymbol.back},onKeyDown:function(e,t,n,i){var r=m(this);if(e.ctrlKey)switch(e.keyCode){case g.keyCode.UP:r.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),r.trigger("setvalue");break;case g.keyCode.DOWN:r.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),r.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowPlus:!1,allowMinus:!1}})}(jQuery,Inputmask),function(e,t){t.extendAliases({phone:{url:"phone-codes/phone-codes.js",countrycode:"",phoneCodeCache:{},mask:function(i){if(void 0===i.phoneCodeCache[i.url]){var t=[];i.definitions["#"]=i.definitions[9],e.ajax({url:i.url,async:!1,type:"get",dataType:"json",success:function(e){t=e},error:function(e,t,n){alert(n+" - "+i.url)}}),i.phoneCodeCache[i.url]=t.sort(function(e,t){return(e.mask||e)<(t.mask||t)?-1:1})}return i.phoneCodeCache[i.url]},keepStatic:!1,nojumps:!0,nojumpsThreshold:1,onBeforeMask:function(e,t){var n=e.replace(/^0{1,2}/,"").replace(/[\s]/g,"");return(1<n.indexOf(t.countrycode)||-1===n.indexOf(t.countrycode))&&(n="+"+t.countrycode+n),n}},phonebe:{alias:"phone",url:"phone-codes/phone-be.js",countrycode:"32",nojumpsThreshold:4}})}(jQuery,Inputmask),function(b,e){e.extendAliases({Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(e,t){return new RegExp(t.regex).test(e.join(""))},definitions:{r:{validator:function(e,t,n,i,u){function c(e,t){this.matches=[],this.isGroup=e||!1,this.isQuantifier=t||!1,this.quantifier={min:1,max:1},this.repeaterPart=void 0}function m(e,t){var n=!1;t&&(v+="(",y++);for(var i=0;i<e.matches.length;i++){var r=e.matches[i];if(!0===r.isGroup)n=m(r,!0);else if(!0===r.isQuantifier){var o=b.inArray(r,e.matches),a=e.matches[o-1],s=v;if(isNaN(r.quantifier.max)){for(;r.repeaterPart&&r.repeaterPart!==v&&r.repeaterPart.length>v.length&&!(n=m(a,!0)););(n=n||m(a,!0))&&(r.repeaterPart=v),v=s+r.quantifier.max}else{for(var l=0,u=r.quantifier.max-1;l<u&&!(n=m(a,!0));l++);v=s+"{"+r.quantifier.min+","+r.quantifier.max+"}"}}else if(void 0!==r.matches)for(var c=0;c<r.length&&!(n=m(r[c],t));c++);else{var d;if("["==r.charAt(0)){d=v,d+=r;for(var p=0;p<y;p++)d+=")";n=new RegExp("^("+d+")$").test(g)}else for(var h=0,f=r.length;h<f;h++)if("\\"!==r.charAt(h)){d=v,d=(d+=r.substr(0,h+1)).replace(/\|$/,"");for(p=0;p<y;p++)d+=")";if(n=new RegExp("^("+d+")$").test(g))break}v+=r}if(n)break}return t&&(v+=")",y--),n}var g,d,r=t.buffer.slice(),v="",o=!1,y=0;null===u.regexTokens&&function(){var e,t,n=new c,i=[];for(u.regexTokens=[];e=u.tokenizer.exec(u.regex);)switch(t=e[0],t.charAt(0)){case"(":i.push(new c(!0));break;case")":d=i.pop(),0<i.length?i[i.length-1].matches.push(d):n.matches.push(d);break;case"{":case"+":case"*":var r=new c(!1,!0),o=(t=t.replace(/[{}]/g,"")).split(","),a=isNaN(o[0])?o[0]:parseInt(o[0]),s=1===o.length?a:isNaN(o[1])?o[1]:parseInt(o[1]);if(r.quantifier={min:a,max:s},0<i.length){var l=i[i.length-1].matches;(e=l.pop()).isGroup||((d=new c(!0)).matches.push(e),e=d),l.push(e),l.push(r)}else(e=n.matches.pop()).isGroup||((d=new c(!0)).matches.push(e),e=d),n.matches.push(e),n.matches.push(r);break;default:0<i.length?i[i.length-1].matches.push(t):n.matches.push(t)}0<n.matches.length&&u.regexTokens.push(n)}(),r.splice(n,0,e),g=r.join("");for(var a=0;a<u.regexTokens.length;a++){var s=u.regexTokens[a];if(o=m(s,s.isGroup))break}return o},cardinality:1}}}})}(jQuery,Inputmask),function(w,k,C){"use strict";!function o(a,s,l){function u(n,e){if(!s[n]){if(!a[n]){var t="function"==typeof require&&require;if(!e&&t)return t(n,!0);if(c)return c(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var r=s[n]={exports:{}};a[n][0].call(r.exports,function(e){var t=a[n][1][e];return u(t||e)},r,r.exports,o,a,s,l)}return s[n].exports}for(var c="function"==typeof require&&require,e=0;e<l.length;e++)u(l[e]);return u}({1:[function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var d,p,r,h,f=e("./modules/handle-dom"),m=e("./modules/utils"),g=e("./modules/handle-swal-dom"),v=e("./modules/handle-click"),y=i(e("./modules/handle-key")),b=i(e("./modules/default-params")),x=i(e("./modules/set-params"));n.default=r=h=function(){function e(e){var t=n;return t[e]===C?b.default[e]:t[e]}var n=arguments[0];if(f.addClass(k.body,"stop-scrolling"),g.resetInput(),n===C)return m.logStr("SweetAlert expects at least 1 attribute!"),!1;var t=m.extend({},b.default);switch(typeof n){case"string":t.title=n,t.text=arguments[1]||"",t.type=arguments[2]||"";break;case"object":if(n.title===C)return m.logStr('Missing "title" argument!'),!1;for(var i in t.title=n.title,b.default)t[i]=e(i);t.confirmButtonText=t.showCancelButton?"Confirm":b.default.confirmButtonText,t.confirmButtonText=e("confirmButtonText"),t.doneFunction=arguments[1]||null;break;default:return m.logStr('Unexpected type of argument! Expected "string" or "object", got '+typeof n),!1}x.default(t),g.fixVerticalPosition(),g.openModal(arguments[1]);for(var r=g.getModal(),o=r.querySelectorAll("button"),a=["onclick","onmouseover","onmouseout","onmousedown","onmouseup","onfocus"],s=function(e){return v.handleButton(e,t,r)},l=0;l<o.length;l++)for(var u=0;u<a.length;u++){var c=a[u];o[l][c]=s}g.getOverlay().onclick=s,d=w.onkeydown;w.onkeydown=function(e){return y.default(e,t,r)},w.onfocus=function(){setTimeout(function(){p!==C&&(p.focus(),p=C)},0)},h.enableButtons()},r.setDefaults=h.setDefaults=function(e){if(!e)throw new Error("userParams is required");if("object"!=typeof e)throw new Error("userParams has to be a object");m.extend(b.default,e)},r.close=h.close=function(){var t=g.getModal();f.fadeOut(g.getOverlay(),5),f.fadeOut(t,5),f.removeClass(t,"showSweetAlert"),f.addClass(t,"hideSweetAlert"),f.removeClass(t,"visible");var e=t.querySelector(".sa-icon.sa-success");f.removeClass(e,"animate"),f.removeClass(e.querySelector(".sa-tip"),"animateSuccessTip"),f.removeClass(e.querySelector(".sa-long"),"animateSuccessLong");var n=t.querySelector(".sa-icon.sa-error");f.removeClass(n,"animateErrorIcon"),f.removeClass(n.querySelector(".sa-x-mark"),"animateXMark");var i=t.querySelector(".sa-icon.sa-warning");return f.removeClass(i,"pulseWarning"),f.removeClass(i.querySelector(".sa-body"),"pulseWarningIns"),f.removeClass(i.querySelector(".sa-dot"),"pulseWarningIns"),setTimeout(function(){var e=t.getAttribute("data-custom-class");f.removeClass(t,e)},300),f.removeClass(k.body,"stop-scrolling"),w.onkeydown=d,w.previousActiveElement&&w.previousActiveElement.focus(),p=C,clearTimeout(t.timeout),!0},r.showInputError=h.showInputError=function(e){var t=g.getModal(),n=t.querySelector(".sa-input-error");f.addClass(n,"show");var i=t.querySelector(".sa-error-container");f.addClass(i,"show"),i.querySelector("p").innerHTML=e,setTimeout(function(){r.enableButtons()},1),t.querySelector("input").focus()},r.resetInputError=h.resetInputError=function(e){if(e&&13===e.keyCode)return!1;var t=g.getModal(),n=t.querySelector(".sa-input-error");f.removeClass(n,"show");var i=t.querySelector(".sa-error-container");f.removeClass(i,"show")},r.disableButtons=h.disableButtons=function(){var e=g.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!0,n.disabled=!0},r.enableButtons=h.enableButtons=function(){var e=g.getModal(),t=e.querySelector("button.confirm"),n=e.querySelector("button.cancel");t.disabled=!1,n.disabled=!1},void 0!==w?w.sweetAlert=w.swal=r:m.logStr("SweetAlert is a frontend module!"),t.exports=n.default},{"./modules/default-params":2,"./modules/handle-click":3,"./modules/handle-dom":4,"./modules/handle-key":5,"./modules/handle-swal-dom":6,"./modules/set-params":8,"./modules/utils":9}],2:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.default={title:"",text:"",type:null,allowOutsideClick:!1,showConfirmButton:!0,showCancelButton:!1,closeOnConfirm:!0,closeOnCancel:!0,confirmButtonText:"OK",confirmButtonColor:"#8CD4F5",cancelButtonText:"Cancel",imageUrl:null,imageSize:null,timer:null,customClass:"",html:!1,animation:!0,allowEscapeKey:!0,inputType:"text",inputPlaceholder:"",inputValue:"",showLoaderOnConfirm:!1},t.exports=n.default},{}],3:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var v=e("./utils"),y=(e("./handle-swal-dom"),e("./handle-dom")),b=function(e,t){var n=!0;y.hasClass(e,"show-input")&&((n=e.querySelector("input").value)||(n="")),t.doneFunction(n),t.closeOnConfirm&&sweetAlert.close(),t.showLoaderOnConfirm&&sweetAlert.disableButtons()},x=function(e,t){var n=String(t.doneFunction).replace(/\s/g,"");"function("===n.substring(0,9)&&")"!==n.substring(9,10)&&t.doneFunction(!1),t.closeOnCancel&&sweetAlert.close()};n.default={handleButton:function(e,t,n){function i(e){u&&t.confirmButtonColor&&(l.style.backgroundColor=e)}var r,o,a,s=e||w.event,l=s.target||s.srcElement,u=-1!==l.className.indexOf("confirm"),c=-1!==l.className.indexOf("sweet-overlay"),d=y.hasClass(n,"visible"),p=t.doneFunction&&"true"===n.getAttribute("data-has-done-function");switch(u&&t.confirmButtonColor&&(r=t.confirmButtonColor,o=v.colorLuminance(r,-.04),a=v.colorLuminance(r,-.14)),s.type){case"mouseover":i(o);break;case"mouseout":i(r);break;case"mousedown":i(a);break;case"mouseup":i(o);break;case"focus":var h=n.querySelector("button.confirm"),f=n.querySelector("button.cancel");u?f.style.boxShadow="none":h.style.boxShadow="none";break;case"click":var m=n===l,g=y.isDescendant(n,l);if(!m&&!g&&d&&!t.allowOutsideClick)break;u&&p&&d?b(n,t):p&&d||c?x(n,t):y.isDescendant(n,l)&&"BUTTON"===l.tagName&&sweetAlert.close()}},handleConfirm:b,handleCancel:x},t.exports=n.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],4:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var i=function(e,t){return new RegExp(" "+t+" ").test(" "+e.className+" ")},r=function(e){e.style.opacity="",e.style.display="block"},o=function(e){e.style.opacity="",e.style.display="none"};n.hasClass=i,n.addClass=function(e,t){i(e,t)||(e.className+=" "+t)},n.removeClass=function(e,t){var n=" "+e.className.replace(/[\t\r\n]/g," ")+" ";if(i(e,t)){for(;0<=n.indexOf(" "+t+" ");)n=n.replace(" "+t+" "," ");e.className=n.replace(/^\s+|\s+$/g,"")}},n.escapeHtml=function(e){var t=k.createElement("div");return t.appendChild(k.createTextNode(e)),t.innerHTML},n._show=r,n.show=function(e){if(e&&!e.length)return r(e);for(var t=0;t<e.length;++t)r(e[t])},n._hide=o,n.hide=function(e){if(e&&!e.length)return o(e);for(var t=0;t<e.length;++t)o(e[t])},n.isDescendant=function(e,t){for(var n=t.parentNode;null!==n;){if(n===e)return!0;n=n.parentNode}return!1},n.getTopMargin=function(e){e.style.left="-9999px",e.style.display="block";var t,n=e.clientHeight;return t="undefined"!=typeof getComputedStyle?parseInt(getComputedStyle(e).getPropertyValue("padding-top"),10):parseInt(e.currentStyle.padding),e.style.left="",e.style.display="none","-"+parseInt((n+t)/2)+"px"},n.fadeIn=function(e,t){if(+e.style.opacity<1){t=t||16,e.style.opacity=0,e.style.display="block";var n=+new Date,i=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity+(new Date-n)/100,n=+new Date,+e.style.opacity<1&&setTimeout(i,t)});i()}e.style.display="block"},n.fadeOut=function(e,t){t=t||16,e.style.opacity=1;var n=+new Date,i=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){e.style.opacity=+e.style.opacity-(new Date-n)/100,n=+new Date,0<+e.style.opacity?setTimeout(i,t):e.style.display="none"});i()},n.fireClick=function(e){if("function"==typeof MouseEvent){var t=new MouseEvent("click",{view:w,bubbles:!1,cancelable:!0});e.dispatchEvent(t)}else if(k.createEvent){var n=k.createEvent("MouseEvents");n.initEvent("click",!1,!1),e.dispatchEvent(n)}else k.createEventObject?e.fireEvent("onclick"):"function"==typeof e.onclick&&e.onclick()},n.stopEventPropagation=function(e){"function"==typeof e.stopPropagation?(e.stopPropagation(),e.preventDefault()):w.event&&w.event.hasOwnProperty("cancelBubble")&&(w.event.cancelBubble=!0)}},{}],5:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var d=e("./handle-dom"),p=e("./handle-swal-dom");n.default=function(e,t,n){var i=e||w.event,r=i.keyCode||i.which,o=n.querySelector("button.confirm"),a=n.querySelector("button.cancel"),s=n.querySelectorAll("button[tabindex]");if(-1!==[9,13,32,27].indexOf(r)){for(var l=i.target||i.srcElement,u=-1,c=0;c<s.length;c++)if(l===s[c]){u=c;break}9===r?(l=-1===u?o:u===s.length-1?s[0]:s[u+1],d.stopEventPropagation(i),l.focus(),t.confirmButtonColor&&p.setFocusStyle(l,t.confirmButtonColor)):13===r?("INPUT"===l.tagName&&(l=o).focus(),l=-1===u?o:C):27===r&&!0===t.allowEscapeKey?(l=a,d.fireClick(l,i)):l=C}},t.exports=n.default},{"./handle-dom":4,"./handle-swal-dom":6}],6:[function(e,t,n){var i=function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var r=e("./utils"),o=e("./handle-dom"),a=i(e("./default-params")),s=i(e("./injected-html")),l=function(){var e=k.createElement("div");for(e.innerHTML=s.default;e.firstChild;)k.body.appendChild(e.firstChild)},u=function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){var e=k.querySelector(".sweet-alert");return e||(l(),e=u()),e}),c=function(){var e=u();return e?e.querySelector("input"):void 0},d=function(){return k.querySelector(".sweet-overlay")},p=function(e){if(e&&13===e.keyCode)return!1;var t=u(),n=t.querySelector(".sa-input-error");o.removeClass(n,"show");var i=t.querySelector(".sa-error-container");o.removeClass(i,"show")};n.sweetAlertInitialize=l,n.getModal=u,n.getOverlay=d,n.getInput=c,n.setFocusStyle=function(e,t){var n=r.hexToRgb(t);e.style.boxShadow="0 0 2px rgba("+n+", 0.8), inset 0 0 0 1px rgba(0, 0, 0, 0.05)"},n.openModal=function(e){var t=u();o.fadeIn(d(),10),o.show(t),o.addClass(t,"showSweetAlert"),o.removeClass(t,"hideSweetAlert"),w.previousActiveElement=k.activeElement,t.querySelector("button.confirm").focus(),setTimeout(function(){o.addClass(t,"visible")},500);var n=t.getAttribute("data-timer");if("null"!==n&&""!==n){var i=e;t.timeout=setTimeout(function(){i&&"true"===t.getAttribute("data-has-done-function")?i(null):sweetAlert.close()},n)}},n.resetInput=function(){var e=u(),t=c();o.removeClass(e,"show-input"),t.value=a.default.inputValue,t.setAttribute("type",a.default.inputType),t.setAttribute("placeholder",a.default.inputPlaceholder),p()},n.resetInputError=p,n.fixVerticalPosition=function(){u().style.marginTop=o.getTopMargin(u())}},{"./default-params":2,"./handle-dom":4,"./injected-html":7,"./utils":9}],7:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.default='<div class="sweet-overlay" tabIndex="-1"></div><div class="sweet-alert"><div class="sa-icon sa-error">\n <span class="sa-x-mark">\n <span class="sa-line sa-left"></span>\n <span class="sa-line sa-right"></span>\n </span>\n </div><div class="sa-icon sa-warning">\n <span class="sa-body"></span>\n <span class="sa-dot"></span>\n </div><div class="sa-icon sa-info"></div><div class="sa-icon sa-success">\n <span class="sa-line sa-tip"></span>\n <span class="sa-line sa-long"></span>\n\n <div class="sa-placeholder"></div>\n <div class="sa-fix"></div>\n </div><div class="sa-icon sa-custom"></div><h2>Title</h2>\n <p>Text</p>\n <fieldset>\n <input type="text" tabIndex="3" />\n <div class="sa-input-error"></div>\n </fieldset><div class="sa-error-container">\n <div class="icon">!</div>\n <p>Not valid!</p>\n </div><div class="sa-button-container">\n <button class="cancel" tabIndex="2">Cancel</button>\n <div class="sa-confirm-button-container">\n <button class="confirm" tabIndex="1">OK</button><div class="la-ball-fall">\n <div></div>\n <div></div>\n <div></div>\n </div>\n </div>\n </div></div>',t.exports=n.default},{}],8:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});var m=e("./utils"),g=e("./handle-swal-dom"),v=e("./handle-dom"),y=["error","warning","info","success","input","prompt"];n.default=function(r){var o=g.getModal(),e=o.querySelector("h2"),t=o.querySelector("p"),n=o.querySelector("button.cancel"),i=o.querySelector("button.confirm");if(e.innerHTML=r.html?r.title:v.escapeHtml(r.title).split("\n").join("<br>"),t.innerHTML=r.html?r.text:v.escapeHtml(r.text||"").split("\n").join("<br>"),r.text&&v.show(t),r.customClass)v.addClass(o,r.customClass),o.setAttribute("data-custom-class",r.customClass);else{var a=o.getAttribute("data-custom-class");v.removeClass(o,a),o.setAttribute("data-custom-class","")}if(v.hide(o.querySelectorAll(".sa-icon")),r.type&&!m.isIE8()){var s=function(){for(var e=!1,t=0;t<y.length;t++)if(r.type===y[t]){e=!0;break}if(!e)return logStr("Unknown alert type: "+r.type),{v:!1};var n=C;-1!==["success","error","warning","info"].indexOf(r.type)&&(n=o.querySelector(".sa-icon.sa-"+r.type),v.show(n));var i=g.getInput();switch(r.type){case"success":v.addClass(n,"animate"),v.addClass(n.querySelector(".sa-tip"),"animateSuccessTip"),v.addClass(n.querySelector(".sa-long"),"animateSuccessLong");break;case"error":v.addClass(n,"animateErrorIcon"),v.addClass(n.querySelector(".sa-x-mark"),"animateXMark");break;case"warning":v.addClass(n,"pulseWarning"),v.addClass(n.querySelector(".sa-body"),"pulseWarningIns"),v.addClass(n.querySelector(".sa-dot"),"pulseWarningIns");break;case"input":case"prompt":i.setAttribute("type",r.inputType),i.value=r.inputValue,i.setAttribute("placeholder",r.inputPlaceholder),v.addClass(o,"show-input"),setTimeout(function(){i.focus(),i.addEventListener("keyup",swal.resetInputError)},400)}}();if("object"==typeof s)return s.v}if(r.imageUrl){var l=o.querySelector(".sa-icon.sa-custom");l.style.backgroundImage="url("+r.imageUrl+")",v.show(l);var u=80,c=80;if(r.imageSize){var d=r.imageSize.toString().split("x"),p=d[0],h=d[1];p&&h?(u=p,c=h):logStr("Parameter imageSize expects value with format WIDTHxHEIGHT, got "+r.imageSize)}l.setAttribute("style",l.getAttribute("style")+"width:"+u+"px; height:"+c+"px")}o.setAttribute("data-has-cancel-button",r.showCancelButton),r.showCancelButton?n.style.display="inline-block":v.hide(n),o.setAttribute("data-has-confirm-button",r.showConfirmButton),r.showConfirmButton?i.style.display="inline-block":v.hide(i),r.cancelButtonText&&(n.innerHTML=v.escapeHtml(r.cancelButtonText)),r.confirmButtonText&&(i.innerHTML=v.escapeHtml(r.confirmButtonText)),r.confirmButtonColor&&(i.style.backgroundColor=r.confirmButtonColor,i.style.borderLeftColor=r.confirmLoadingButtonColor,i.style.borderRightColor=r.confirmLoadingButtonColor,g.setFocusStyle(i,r.confirmButtonColor)),o.setAttribute("data-allow-outside-click",r.allowOutsideClick);var f=!!r.doneFunction;o.setAttribute("data-has-done-function",f),r.animation?"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.setAttribute("data-animation","pop"):o.setAttribute("data-animation","none"),o.setAttribute("data-timer",r.timer)},t.exports=n.default},{"./handle-dom":4,"./handle-swal-dom":6,"./utils":9}],9:[function(e,t,n){Object.defineProperty(n,"__esModule",{value:!0});n.extend=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},n.hexToRgb=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?parseInt(t[1],16)+", "+parseInt(t[2],16)+", "+parseInt(t[3],16):null},n.isIE8=function(){return w.attachEvent&&!w.addEventListener},n.logStr=function(e){w.console&&w.console.log("SweetAlert: "+e)},n.colorLuminance=function(e,t){(e=String(e).replace(/[^0-9a-f]/gi,"")).length<6&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),t=t||0;var n,i,r="#";for(i=0;i<3;i++)n=parseInt(e.substr(2*i,2),16),r+=("00"+(n=Math.round(Math.min(Math.max(0,n+n*t),255)).toString(16))).substr(n.length);return r}},{}]},{},[1]),"function"==typeof define&&define.amd?define(function(){return sweetAlert}):"undefined"!=typeof module&&module.exports&&(module.exports=sweetAlert)}(window,document),function(){var a,t,n,e,d,p,i,r,s=[].slice,o={}.hasOwnProperty;i=function(){},t=function(){function e(){}return e.prototype.addEventListener=e.prototype.on,e.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this},e.prototype.emit=function(){var e,t,n,i,r;if(n=arguments[0],e=2<=arguments.length?s.call(arguments,1):[],this._callbacks=this._callbacks||{},t=this._callbacks[n])for(i=0,r=t.length;i<r;i++)t[i].apply(this,e);return this},e.prototype.removeListener=e.prototype.off,e.prototype.removeAllListeners=e.prototype.off,e.prototype.removeEventListener=e.prototype.off,e.prototype.off=function(e,t){var n,i,r,o;if(!this._callbacks||0===arguments.length)return this._callbacks={},this;if(!(n=this._callbacks[e]))return this;if(1===arguments.length)return delete this._callbacks[e],this;for(i=r=0,o=n.length;r<o;i=++r)if(n[i]===t){n.splice(i,1);break}return this},e}(),(a=function(e){var M,j;function _(e,t){var n,i,r;if(this.element=e,this.version=_.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),this.clickableElements=[],this.listeners=[],this.files=[],"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw new Error("Invalid dropzone element.");if(this.element.dropzone)throw new Error("Dropzone already attached.");if(_.instances.push(this),this.element.dropzone=this,n=null!=(r=_.optionsForElement(this.element))?r:{},this.options=M({},this.defaultOptions,n,null!=t?t:{}),this.options.forceFallback||!_.isBrowserSupported())return this.options.fallback.call(this);if(null==this.options.url&&(this.options.url=this.element.getAttribute("action")),!this.options.url)throw new Error("No URL provided.");if(this.options.acceptedFiles&&this.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");this.options.acceptedMimeTypes&&(this.options.acceptedFiles=this.options.acceptedMimeTypes,delete this.options.acceptedMimeTypes),this.options.method=this.options.method.toUpperCase(),(i=this.getExistingFallback())&&i.parentNode&&i.parentNode.removeChild(i),!1!==this.options.previewsContainer&&(this.options.previewsContainer?this.previewsContainer=_.getElement(this.options.previewsContainer,"previewsContainer"):this.previewsContainer=this.element),this.options.clickable&&(!0===this.options.clickable?this.clickableElements=[this.element]:this.clickableElements=_.getElements(this.options.clickable,"clickable")),this.init()}return function(e,t){for(var n in t)o.call(t,n)&&(e[n]=t[n]);function i(){this.constructor=e}i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype}(_,t),_.prototype.Emitter=t,_.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],_.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,parallelUploads:2,uploadMultiple:!1,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1e3,maxFiles:null,params:{},clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(e,t){return t()},init:function(){return i},forceFallback:!1,fallback:function(){var e,t,n,i,r,o;for(this.element.className=this.element.className+" dz-browser-not-supported",i=0,r=(o=this.element.getElementsByTagName("div")).length;i<r;i++)e=o[i],/(^| )dz-message($| )/.test(e.className)&&((t=e).className="dz-message");return t||(t=_.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t)),(n=t.getElementsByTagName("span")[0])&&(null!=n.textContent?n.textContent=this.options.dictFallbackMessage:null!=n.innerText&&(n.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e){var t,n,i;return t={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},n=e.width/e.height,t.optWidth=this.options.thumbnailWidth,t.optHeight=this.options.thumbnailHeight,null==t.optWidth&&null==t.optHeight?(t.optWidth=t.srcWidth,t.optHeight=t.srcHeight):null==t.optWidth?t.optWidth=n*t.optHeight:null==t.optHeight&&(t.optHeight=1/n*t.optWidth),i=t.optWidth/t.optHeight,e.height<t.optHeight||e.width<t.optWidth?(t.trgHeight=t.srcHeight,t.trgWidth=t.srcWidth):i<n?(t.srcHeight=e.height,t.srcWidth=t.srcHeight*i):(t.srcWidth=e.width,t.srcHeight=t.srcWidth/i),t.srcX=(e.width-t.srcWidth)/2,t.srcY=(e.height-t.srcHeight)/2,t},drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:i,dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:i,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e,n,i,r,o,a,s,l,u,c,d,p,h;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){for(t.previewElement=_.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement),i=0,a=(u=t.previewElement.querySelectorAll("[data-dz-name]")).length;i<a;i++)u[i].textContent=this._renameFilename(t.name);for(r=0,s=(c=t.previewElement.querySelectorAll("[data-dz-size]")).length;r<s;r++)c[r].innerHTML=this.filesize(t.size);for(this.options.addRemoveLinks&&(t._removeLink=_.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),t.previewElement.appendChild(t._removeLink)),h=this,e=function(e){return e.preventDefault(),e.stopPropagation(),t.status===_.UPLOADING?_.confirm(h.options.dictCancelUploadConfirmation,function(){return h.removeFile(t)}):h.options.dictRemoveFileConfirmation?_.confirm(h.options.dictRemoveFileConfirmation,function(){return h.removeFile(t)}):h.removeFile(t)},p=[],o=0,l=(d=t.previewElement.querySelectorAll("[data-dz-remove]")).length;o<l;o++)n=d[o],p.push(n.addEventListener("click",e));return p}},removedfile:function(e){var t;return e.previewElement&&null!=(t=e.previewElement)&&t.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){var n,i,r,o;if(e.previewElement){for(e.previewElement.classList.remove("dz-file-preview"),i=0,r=(o=e.previewElement.querySelectorAll("[data-dz-thumbnail]")).length;i<r;i++)(n=o[i]).alt=e.name,n.src=t;return setTimeout(function(){return e.previewElement.classList.add("dz-image-preview")},1)}},error:function(e,t){var n,i,r,o,a;if(e.previewElement){for(e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error),a=[],i=0,r=(o=e.previewElement.querySelectorAll("[data-dz-errormessage]")).length;i<r;i++)n=o[i],a.push(n.textContent=t);return a}},errormultiple:i,processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.textContent=this.options.dictCancelUpload},processingmultiple:i,uploadprogress:function(e,t,n){var i,r,o,a,s;if(e.previewElement){for(s=[],r=0,o=(a=e.previewElement.querySelectorAll("[data-dz-uploadprogress]")).length;r<o;r++)"PROGRESS"===(i=a[r]).nodeName?s.push(i.value=t):s.push(i.style.width=t+"%");return s}},totaluploadprogress:i,sending:i,sendingmultiple:i,success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:i,canceled:function(e){return this.emit("error",e,"Upload canceled.")},canceledmultiple:i,complete:function(e){if(e._removeLink&&(e._removeLink.textContent=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:i,maxfilesexceeded:i,maxfilesreached:i,queuecomplete:i,addedfiles:i,previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>'},M=function(){var e,t,n,i,r,o,a;for(i=arguments[0],o=0,a=(n=2<=arguments.length?s.call(arguments,1):[]).length;o<a;o++)for(e in t=n[o])r=t[e],i[e]=r;return i},_.prototype.getAcceptedFiles=function(){var e,t,n,i,r;for(r=[],t=0,n=(i=this.files).length;t<n;t++)(e=i[t]).accepted&&r.push(e);return r},_.prototype.getRejectedFiles=function(){var e,t,n,i,r;for(r=[],t=0,n=(i=this.files).length;t<n;t++)(e=i[t]).accepted||r.push(e);return r},_.prototype.getFilesWithStatus=function(e){var t,n,i,r,o;for(o=[],n=0,i=(r=this.files).length;n<i;n++)(t=r[n]).status===e&&o.push(t);return o},_.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(_.QUEUED)},_.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(_.UPLOADING)},_.prototype.getAddedFiles=function(){return this.getFilesWithStatus(_.ADDED)},_.prototype.getActiveFiles=function(){var e,t,n,i,r;for(r=[],t=0,n=(i=this.files).length;t<n;t++)(e=i[t]).status!==_.UPLOADING&&e.status!==_.QUEUED||r.push(e);return r},_.prototype.init=function(){var e,n,r,t,i,o,a,s,l,u,c,d,p,h,f,m,g,v,y;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(_.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&(s=this,(r=function(){return s.hiddenFileInput&&s.hiddenFileInput.parentNode.removeChild(s.hiddenFileInput),s.hiddenFileInput=document.createElement("input"),s.hiddenFileInput.setAttribute("type","file"),(null==s.options.maxFiles||1<s.options.maxFiles)&&s.hiddenFileInput.setAttribute("multiple","multiple"),s.hiddenFileInput.className="dz-hidden-input",null!=s.options.acceptedFiles&&s.hiddenFileInput.setAttribute("accept",s.options.acceptedFiles),null!=s.options.capture&&s.hiddenFileInput.setAttribute("capture",s.options.capture),s.hiddenFileInput.style.visibility="hidden",s.hiddenFileInput.style.position="absolute",s.hiddenFileInput.style.top="0",s.hiddenFileInput.style.left="0",s.hiddenFileInput.style.height="0",s.hiddenFileInput.style.width="0",document.querySelector(s.options.hiddenInputContainer).appendChild(s.hiddenFileInput),s.hiddenFileInput.addEventListener("change",function(){var e,t,n,i;if((t=s.hiddenFileInput.files).length)for(n=0,i=t.length;n<i;n++)e=t[n],s.addFile(e);return s.emit("addedfiles",t),r()})})()),this.URL=null!=(o=window.URL)?o:window.webkitURL,t=0,i=(a=this.events).length;t<i;t++)e=a[t],this.on(e,this.options[e]);return this.on("uploadprogress",(l=this,function(){return l.updateTotalUploadProgress()})),this.on("removedfile",(u=this,function(){return u.updateTotalUploadProgress()})),this.on("canceled",(c=this,function(e){return c.emit("complete",e)})),this.on("complete",(d=this,function(e){if(0===d.getAddedFiles().length&&0===d.getUploadingFiles().length&&0===d.getQueuedFiles().length)return setTimeout(function(){return d.emit("queuecomplete")},0)})),n=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1},this.listeners=[{element:this.element,events:{dragstart:(v=this,function(e){return v.emit("dragstart",e)}),dragenter:(g=this,function(e){return n(e),g.emit("dragenter",e)}),dragover:(m=this,function(e){var t;try{t=e.dataTransfer.effectAllowed}catch(e){}return e.dataTransfer.dropEffect="move"===t||"linkMove"===t?"move":"copy",n(e),m.emit("dragover",e)}),dragleave:(f=this,function(e){return f.emit("dragleave",e)}),drop:(h=this,function(e){return n(e),h.drop(e)}),dragend:(p=this,function(e){return p.emit("dragend",e)})}}],this.clickableElements.forEach((y=this,function(t){return y.listeners.push({element:t,events:{click:function(e){return(t!==y.element||e.target===y.element||_.elementInside(e.target,y.element.querySelector(".dz-message")))&&y.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)},_.prototype.destroy=function(){var e;return this.disable(),this.removeAllFiles(!0),(null!=(e=this.hiddenFileInput)?e.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,_.instances.splice(_.instances.indexOf(this),1)},_.prototype.updateTotalUploadProgress=function(){var e,t,n,i,r,o,a;if(t=n=0,this.getActiveFiles().length){for(r=0,o=(a=this.getActiveFiles()).length;r<o;r++)n+=(e=a[r]).upload.bytesSent,t+=e.upload.total;i=100*n/t}else i=100;return this.emit("totaluploadprogress",i,t,n)},_.prototype._getParamName=function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")},_.prototype._renameFilename=function(e){return"function"!=typeof this.options.renameFilename?e:this.options.renameFilename(e)},_.prototype.getFallbackForm=function(){var e,t,n,i;return(e=this.getExistingFallback())?e:(n='<div class="dz-fallback">',this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>',t=_.createElement(n),"FORM"!==this.element.tagName?(i=_.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(t):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=i?i:t)},_.prototype.getExistingFallback=function(){var e,t,n,i,r,o;for(t=function(e){var t,n,i;for(n=0,i=e.length;n<i;n++)if(t=e[n],/(^| )fallback($| )/.test(t.className))return t},i=0,r=(o=["div","form"]).length;i<r;i++)if(n=o[i],e=t(this.element.getElementsByTagName(n)))return e},_.prototype.setupEventListeners=function(){var n,i,r,e,t,o,a;for(a=[],e=0,t=(o=this.listeners).length;e<t;e++)n=o[e],a.push(function(){var e,t;for(i in t=[],e=n.events)r=e[i],t.push(n.element.addEventListener(i,r,!1));return t}());return a},_.prototype.removeEventListeners=function(){var n,i,r,e,t,o,a;for(a=[],e=0,t=(o=this.listeners).length;e<t;e++)n=o[e],a.push(function(){var e,t;for(i in t=[],e=n.events)r=e[i],t.push(n.element.removeEventListener(i,r,!1));return t}());return a},_.prototype.disable=function(){var e,t,n,i,r;for(this.clickableElements.forEach(function(e){return e.classList.remove("dz-clickable")}),this.removeEventListeners(),r=[],t=0,n=(i=this.files).length;t<n;t++)e=i[t],r.push(this.cancelUpload(e));return r},_.prototype.enable=function(){return this.clickableElements.forEach(function(e){return e.classList.add("dz-clickable")}),this.setupEventListeners()},_.prototype.filesize=function(e){var t,n,i,r,o,a,s;if(i="b",(n=0)<e){for(t=a=0,s=(o=["TB","GB","MB","KB","b"]).length;a<s;t=++a)if(r=o[t],Math.pow(this.options.filesizeBase,4-t)/10<=e){n=e/Math.pow(this.options.filesizeBase,4-t),i=r;break}n=Math.round(10*n)/10}return"<strong>"+n+"</strong> "+i},_.prototype._updateMaxFilesReachedClass=function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")},_.prototype.drop=function(e){var t,n;e.dataTransfer&&(this.emit("drop",e),t=e.dataTransfer.files,this.emit("addedfiles",t),t.length&&((n=e.dataTransfer.items)&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(t)))},_.prototype.paste=function(e){var t,n;if(null!=(null!=e&&null!=(n=e.clipboardData)?n.items:void 0))return this.emit("paste",e),(t=e.clipboardData.items).length?this._addFilesFromItems(t):void 0},_.prototype.handleFiles=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;n<i;n++)t=e[n],r.push(this.addFile(t));return r},_.prototype._addFilesFromItems=function(e){var t,n,i,r,o;for(o=[],i=0,r=e.length;i<r;i++)null!=(n=e[i]).webkitGetAsEntry&&(t=n.webkitGetAsEntry())?t.isFile?o.push(this.addFile(n.getAsFile())):t.isDirectory?o.push(this._addFilesFromDirectory(t,t.name)):o.push(void 0):null!=n.getAsFile&&(null==n.kind||"file"===n.kind)?o.push(this.addFile(n.getAsFile())):o.push(void 0);return o},_.prototype._addFilesFromDirectory=function(e,r){var t,n,o,a;return t=e.createReader(),n=function(e){return"undefined"!=typeof console&&null!==console&&"function"==typeof console.log?console.log(e):void 0},a=this,(o=function(){return t.readEntries(function(e){var t,n,i;if(0<e.length){for(n=0,i=e.length;n<i;n++)(t=e[n]).isFile?t.file(function(e){if(!a.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=r+"/"+e.name,a.addFile(e)}):t.isDirectory&&a._addFilesFromDirectory(t,r+"/"+t.name);o()}return null},n)})()},_.prototype.accept=function(e,t){return e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):_.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)},_.prototype.addFile=function(t){return t.upload={progress:0,total:t.size,bytesSent:0},this.files.push(t),t.status=_.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(n=this,function(e){return e?(t.accepted=!1,n._errorProcessing([t],e)):(t.accepted=!0,n.options.autoQueue&&n.enqueueFile(t)),n._updateMaxFilesReachedClass()}));var n},_.prototype.enqueueFiles=function(e){var t,n,i;for(n=0,i=e.length;n<i;n++)t=e[n],this.enqueueFile(t);return null},_.prototype.enqueueFile=function(e){if(e.status!==_.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=_.QUEUED,this.options.autoProcessQueue)return setTimeout((t=this,function(){return t.processQueue()}),0);var t},_.prototype._thumbnailQueue=[],_.prototype._processingThumbnail=!1,_.prototype._enqueueThumbnail=function(e){if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((t=this,function(){return t._processThumbnailQueue()}),0);var t},_.prototype._processThumbnailQueue=function(){var e;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length)return this._processingThumbnail=!0,this.createThumbnail(this._thumbnailQueue.shift(),(e=this,function(){return e._processingThumbnail=!1,e._processThumbnailQueue()}))},_.prototype.removeFile=function(e){if(e.status===_.UPLOADING&&this.cancelUpload(e),this.files=r(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")},_.prototype.removeAllFiles=function(e){var t,n,i,r;for(null==e&&(e=!1),n=0,i=(r=this.files.slice()).length;n<i;n++)((t=r[n]).status!==_.UPLOADING||e)&&this.removeFile(t);return null},_.prototype.createThumbnail=function(e,t){var n,i;return(n=new FileReader).onload=(i=this,function(){return"image/svg+xml"===e.type?(i.emit("thumbnail",e,n.result),void(null!=t&&t())):i.createThumbnailFromUrl(e,n.result,t)}),n.readAsDataURL(e)},_.prototype.createThumbnailFromUrl=function(l,e,u,t){var c,d;return c=document.createElement("img"),t&&(c.crossOrigin=t),c.onload=(d=this,function(){var e,t,n,i,r,o,a,s;if(l.width=c.width,l.height=c.height,null==(n=d.options.resize.call(d,l)).trgWidth&&(n.trgWidth=n.optWidth),null==n.trgHeight&&(n.trgHeight=n.optHeight),t=(e=document.createElement("canvas")).getContext("2d"),e.width=n.trgWidth,e.height=n.trgHeight,p(t,c,null!=(r=n.srcX)?r:0,null!=(o=n.srcY)?o:0,n.srcWidth,n.srcHeight,null!=(a=n.trgX)?a:0,null!=(s=n.trgY)?s:0,n.trgWidth,n.trgHeight),i=e.toDataURL("image/png"),d.emit("thumbnail",l,i),null!=u)return u()}),null!=u&&(c.onerror=u),c.src=e},_.prototype.processQueue=function(){var e,t,n,i;if(!((t=this.options.parallelUploads)<=(e=n=this.getUploadingFiles().length))&&0<(i=this.getQueuedFiles()).length){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-n));for(;e<t;){if(!i.length)return;this.processFile(i.shift()),e++}}},_.prototype.processFile=function(e){return this.processFiles([e])},_.prototype.processFiles=function(e){var t,n,i;for(n=0,i=e.length;n<i;n++)(t=e[n]).processing=!0,t.status=_.UPLOADING,this.emit("processing",t);return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)},_.prototype._getFilesWithXhr=function(r){var o;return function(){var e,t,n,i;for(i=[],e=0,t=(n=this.files).length;e<t;e++)(o=n[e]).xhr===r&&i.push(o);return i}.call(this)},_.prototype.cancelUpload=function(e){var t,n,i,r,o,a,s;if(e.status===_.UPLOADING){for(i=0,o=(n=this._getFilesWithXhr(e.xhr)).length;i<o;i++)(t=n[i]).status=_.CANCELED;for(e.xhr.abort(),r=0,a=n.length;r<a;r++)t=n[r],this.emit("canceled",t);this.options.uploadMultiple&&this.emit("canceledmultiple",n)}else(s=e.status)!==_.ADDED&&s!==_.QUEUED||(e.status=_.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()},j=function(){var e,t;return t=arguments[0],e=2<=arguments.length?s.call(arguments,1):[],"function"==typeof t?t.apply(this,e):t},_.prototype.uploadFile=function(e){return this.uploadFiles([e])},_.prototype.uploadFiles=function(c){var d,e,n,t,i,r,o,a,s,l,u,p,h,f,m,g,v,y,b,x,w,k,C,S,E,T,A,I,N,F,P,$,D,L,O,R;for(y=new XMLHttpRequest,b=0,C=c.length;b<C;b++)(d=c[b]).xhr=y;for(t in p=j(this.options.method,c),g=j(this.options.url,c),y.open(p,g,!0),y.withCredentials=!!this.options.withCredentials,f=null,n=function(){var e,t,n;for(n=[],e=0,t=c.length;e<t;e++)d=c[e],n.push(L._errorProcessing(c,f||L.options.dictResponseError.replace("{{statusCode}}",y.status),y));return n},O=L=this,m=function(e){var t,n,i,r,o,a,s,l,u;if(null!=e)for(n=100*e.loaded/e.total,i=0,a=c.length;i<a;i++)(d=c[i]).upload={progress:n,total:e.total,bytesSent:e.loaded};else{for(t=!0,n=100,r=0,s=c.length;r<s;r++)100===(d=c[r]).upload.progress&&d.upload.bytesSent===d.upload.total||(t=!1),d.upload.progress=n,d.upload.bytesSent=d.upload.total;if(t)return}for(u=[],o=0,l=c.length;o<l;o++)d=c[o],u.push(O.emit("uploadprogress",d,n,d.upload.bytesSent));return u},y.onload=(R=this,function(t){var e;if(c[0].status!==_.CANCELED&&4===y.readyState){if(f=y.responseText,y.getResponseHeader("content-type")&&~y.getResponseHeader("content-type").indexOf("application/json"))try{f=JSON.parse(f)}catch(e){t=e,f="Invalid JSON response from server."}return m(),200<=(e=y.status)&&e<300?R._finished(c,f,t):n()}}),y.onerror=function(){if(c[0].status!==_.CANCELED)return n()},(null!=(I=y.upload)?I:y).onprogress=m,r={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"},this.options.headers&&M(r,this.options.headers),r)(i=r[t])&&y.setRequestHeader(t,i);if(e=new FormData,this.options.params)for(u in N=this.options.params)v=N[u],e.append(u,v);for(x=0,S=c.length;x<S;x++)d=c[x],this.emit("sending",d,y,e);if(this.options.uploadMultiple&&this.emit("sendingmultiple",c,y,e),"FORM"===this.element.tagName)for(w=0,E=(F=this.element.querySelectorAll("input, textarea, select, button")).length;w<E;w++)if(s=(a=F[w]).getAttribute("name"),l=a.getAttribute("type"),"SELECT"===a.tagName&&a.hasAttribute("multiple"))for(k=0,T=(P=a.options).length;k<T;k++)(h=P[k]).selected&&e.append(s,h.value);else(!l||"checkbox"!==($=l.toLowerCase())&&"radio"!==$||a.checked)&&e.append(s,a.value);for(o=A=0,D=c.length-1;0<=D?A<=D:D<=A;o=0<=D?++A:--A)e.append(this._getParamName(o),c[o],this._renameFilename(c[o].name));return this.submitRequest(y,e,c)},_.prototype.submitRequest=function(e,t,n){return e.send(t)},_.prototype._finished=function(e,t,n){var i,r,o;for(r=0,o=e.length;r<o;r++)(i=e[r]).status=_.SUCCESS,this.emit("success",i,t,n),this.emit("complete",i);if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},_.prototype._errorProcessing=function(e,t,n){var i,r,o;for(r=0,o=e.length;r<o;r++)(i=e[r]).status=_.ERROR,this.emit("error",i,t,n),this.emit("complete",i);if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()},_}()).version="4.3.0",a.options={},a.optionsForElement=function(e){return e.getAttribute("id")?a.options[n(e.getAttribute("id"))]:void 0},a.instances=[],a.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},a.autoDiscover=!0,a.discover=function(){var e,t,o,n,i,r;for(document.querySelectorAll?o=document.querySelectorAll(".dropzone"):(o=[],(e=function(e){var t,n,i,r;for(r=[],n=0,i=e.length;n<i;n++)t=e[n],/(^| )dropzone($| )/.test(t.className)?r.push(o.push(t)):r.push(void 0);return r})(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))),r=[],n=0,i=o.length;n<i;n++)t=o[n],!1!==a.optionsForElement(t)?r.push(new a(t)):r.push(void 0);return r},a.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i],a.isBrowserSupported=function(){var e,t,n,i;if(e=!0,window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(t=0,n=(i=a.blacklistedBrowsers).length;t<n;t++)i[t].test(navigator.userAgent)&&(e=!1);else e=!1;else e=!1;return e},r=function(e,t){var n,i,r,o;for(o=[],i=0,r=e.length;i<r;i++)(n=e[i])!==t&&o.push(n);return o},n=function(e){return e.replace(/[\-_](\w)/g,function(e){return e.charAt(1).toUpperCase()})},a.createElement=function(e){var t;return(t=document.createElement("div")).innerHTML=e,t.childNodes[0]},a.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},a.getElement=function(e,t){var n;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},a.getElements=function(e,t){var n,i,r,o,a,s,l;if(e instanceof Array){i=[];try{for(r=0,a=e.length;r<a;r++)n=e[r],i.push(this.getElement(n,t))}catch(e){e,i=null}}else if("string"==typeof e)for(i=[],o=0,s=(l=document.querySelectorAll(e)).length;o<s;o++)n=l[o],i.push(n);else null!=e.nodeType&&(i=[e]);if(null==i||!i.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i},a.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},a.isValidFile=function(e,t){var n,i,r,o,a;if(!t)return!0;for(t=t.split(","),n=(i=e.type).replace(/\/.*$/,""),o=0,a=t.length;o<a;o++)if("."===(r=(r=t[o]).trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(r.toLowerCase(),e.name.length-r.length))return!0}else if(/\/\*$/.test(r)){if(n===r.replace(/\/.*$/,""))return!0}else if(i===r)return!0;return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each(function(){return new a(this,e)})}),"undefined"!=typeof module&&null!==module?module.exports=a:window.Dropzone=a,a.ADDED="added",a.QUEUED="queued",a.ACCEPTED=a.QUEUED,a.UPLOADING="uploading",a.PROCESSING=a.UPLOADING,a.CANCELED="canceled",a.ERROR="error",a.SUCCESS="success",d=function(e){var t,n,i,r,o,a,s,l;for(e.naturalWidth,o=e.naturalHeight,(t=document.createElement("canvas")).width=1,t.height=o,(n=t.getContext("2d")).drawImage(e,0,0),i=n.getImageData(0,0,1,o).data,l=0,a=r=o;l<a;)0===i[4*(a-1)+3]?r=a:l=a,a=r+l>>1;return 0===(s=a/o)?1:s},p=function(e,t,n,i,r,o,a,s,l,u){var c;return c=d(t),e.drawImage(t,n,i,r,o,a,s,l,u/c)},e=function(t,n){var e,i,r,o,a,s,l,u,c;if(c=!(r=!1),i=t.document,u=i.documentElement,e=i.addEventListener?"addEventListener":"attachEvent",l=i.addEventListener?"removeEventListener":"detachEvent",s=i.addEventListener?"":"on",o=function(e){if("readystatechange"!==e.type||"complete"===i.readyState)return("load"===e.type?t:i)[l](s+e.type,o,!1),!r&&(r=!0)?n.call(t,e.type||e):void 0},a=function(){try{u.doScroll("left")}catch(e){return e,void setTimeout(a,50)}return o("poll")},"complete"!==i.readyState){if(i.createEventObject&&u.doScroll){try{c=!t.frameElement}catch(e){}c&&a()}return i[e](s+"DOMContentLoaded",o,!1),i[e](s+"readystatechange",o,!1),t[e](s+"load",o,!1)}},a._autoDiscoverFunction=function(){if(a.autoDiscover)return a.discover()},e(window,a._autoDiscoverFunction)}.call(this),"undefined"==typeof jQuery)throw new Error("jQuery plugins need to be before this file");$.AdminBSB={},$.AdminBSB.options={colors:{red:"#F44336",pink:"#E91E63",purple:"#9C27B0",deepPurple:"#673AB7",indigo:"#3F51B5",blue:"#2196F3",lightBlue:"#03A9F4",cyan:"#00BCD4",teal:"#009688",green:"#4CAF50",lightGreen:"#8BC34A",lime:"#CDDC39",yellow:"#ffe821",amber:"#FFC107",orange:"#FF9800",deepOrange:"#FF5722",brown:"#795548",grey:"#9E9E9E",blueGrey:"#607D8B",black:"#000000",white:"#ffffff"},leftSideBar:{scrollColor:"rgba(0,0,0,0.5)",scrollWidth:"4px",scrollAlwaysVisible:!1,scrollBorderRadius:"0",scrollRailBorderRadius:"0",scrollActiveItemWhenPageLoad:!0,breakpointWidth:1170},dropdownMenu:{effectIn:"fadeIn",effectOut:"fadeOut"}},$.AdminBSB.leftSideBar={activate:function(){var n=this,i=$("body"),r=$(".overlay");$(window).click(function(e){var t=$(e.target);"i"===e.target.nodeName.toLowerCase()&&(t=$(e.target).parent()),!t.hasClass("bars")&&n.isOpen()&&0===t.parents("#leftsidebar").length&&(t.hasClass("js-right-sidebar")||r.fadeOut(),i.removeClass("overlay-open"))}),$.each($(".menu-toggle.toggled"),function(e,t){$(t).next().slideToggle(0)}),$.each($(".menu .list li.active"),function(e,t){var n=$(t).find("a:eq(0)");n.addClass("toggled"),n.next().show()}),$(".menu-toggle").on("click",function(e){var t=$(this),n=t.next();if($(t.parents("ul")[0]).hasClass("list")){var i=$(e.target).hasClass("menu-toggle")?e.target:$(e.target).parents(".menu-toggle");$.each($(".menu-toggle.toggled").not(i).next(),function(e,t){$(t).is(":visible")&&($(t).prev().toggleClass("toggled"),$(t).slideUp())})}t.toggleClass("toggled"),n.slideToggle(320)}),n.setMenuHeight(),n.checkStatuForResize(!0),$(window).resize(function(){n.setMenuHeight(),n.checkStatuForResize(!1)}),Waves.attach(".menu .list a",["waves-block"]),Waves.init()},setMenuHeight:function(e){if(void 0!==$.fn.slimScroll){var t=$.AdminBSB.options.leftSideBar,n=$(window).height()-($(".legal").outerHeight()+$(".user-info").outerHeight()+$(".navbar").innerHeight());$(".list").slimscroll({height:n+"px",color:t.scrollColor,size:t.scrollWidth,alwaysVisible:t.scrollAlwaysVisible,borderRadius:t.scrollBorderRadius,railBorderRadius:t.scrollRailBorderRadius})}},checkStatuForResize:function(e){var t=$("body"),n=$(".navbar .navbar-header .bars"),i=t.width();e&&t.find(".content, .sidebar").addClass("no-animate").delay(1e3).queue(function(){$(this).removeClass("no-animate").dequeue()}),i<$.AdminBSB.options.leftSideBar.breakpointWidth?(t.addClass("ls-closed"),n.fadeIn()):(t.removeClass("ls-closed"),n.fadeOut())},isOpen:function(){return $("body").hasClass("overlay-open")}},$.AdminBSB.rightSideBar={activate:function(){var n=this,i=$("#rightsidebar"),r=$(".overlay");$(window).click(function(e){var t=$(e.target);"i"===e.target.nodeName.toLowerCase()&&(t=$(e.target).parent()),!t.hasClass("js-right-sidebar")&&n.isOpen()&&0===t.parents("#rightsidebar").length&&(t.hasClass("bars")||r.fadeOut(),i.removeClass("open"))}),$(".js-right-sidebar").on("click",function(){i.toggleClass("open"),n.isOpen()?r.fadeIn():r.fadeOut()})},isOpen:function(){return $(".right-sidebar").hasClass("open")}};var $searchBar=$(".search-bar");$.AdminBSB.search={activate:function(){var t=this;$(".js-search").on("click",function(){t.showSearchBar()}),$searchBar.find(".close-search").on("click",function(){t.hideSearchBar()}),$searchBar.find('input[type="text"]').on("keyup",function(e){27==e.keyCode&&t.hideSearchBar()})},showSearchBar:function(){$searchBar.addClass("open"),$searchBar.find('input[type="text"]').focus()},hideSearchBar:function(){$searchBar.removeClass("open"),$searchBar.find('input[type="text"]').val("")}},$.AdminBSB.navbar={activate:function(){var e=$("body"),t=$(".overlay");$(".bars").on("click",function(){e.toggleClass("overlay-open"),e.hasClass("overlay-open")?t.fadeIn():t.fadeOut()}),$('.nav [data-close="true"]').on("click",function(){var e=$(".navbar-toggle").is(":visible"),t=$(".navbar-collapse");e&&t.slideUp(function(){t.removeClass("in").removeAttr("style")})})}},$.AdminBSB.input={activate:function(){$(".form-control").focus(function(){$(this).parent().addClass("focused")}),$(".form-control").focusout(function(){var e=$(this);e.parents(".form-group").hasClass("form-float")?""==e.val()&&e.parents(".form-line").removeClass("focused"):e.parents(".form-line").removeClass("focused")}),$("body").on("click",".form-float .form-line .form-label",function(){$(this).parent().find("input").focus()}),$(".form-control").each(function(){""!==$(this).val()&&$(this).parents(".form-line").addClass("focused")})}},$.AdminBSB.select={activate:function(){$.fn.selectpicker&&$("select:not(.ms)").selectpicker()}},$.AdminBSB.dropdownMenu={activate:function(){var n=this;$(".dropdown, .dropup, .btn-group").on({"show.bs.dropdown":function(){var e=n.dropdownEffect(this);n.dropdownEffectStart(e,e.effectIn)},"shown.bs.dropdown":function(){var e=n.dropdownEffect(this);e.effectIn&&e.effectOut&&n.dropdownEffectEnd(e,function(){})},"hide.bs.dropdown":function(e){var t=n.dropdownEffect(this);t.effectOut&&(e.preventDefault(),n.dropdownEffectStart(t,t.effectOut),n.dropdownEffectEnd(t,function(){t.dropdown.removeClass("open")}))}}),Waves.attach(".dropdown-menu li a",["waves-block"]),Waves.init()},dropdownEffect:function(e){var t=$.AdminBSB.options.dropdownMenu.effectIn,n=$.AdminBSB.options.dropdownMenu.effectOut,i=$(e),r=$(".dropdown-menu",e);if(0<i.length){var o=i.data("effect-in"),a=i.data("effect-out");void 0!==o&&(t=o),void 0!==a&&(n=a)}return{target:e,dropdown:i,dropdownMenu:r,effectIn:t,effectOut:n}},dropdownEffectStart:function(e,t){t&&(e.dropdown.addClass("dropdown-animating"),e.dropdownMenu.addClass("animated dropdown-animated"),e.dropdownMenu.addClass(t))},dropdownEffectEnd:function(e,t){e.dropdown.one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){e.dropdown.removeClass("dropdown-animating"),e.dropdownMenu.removeClass("animated dropdown-animated"),e.dropdownMenu.removeClass(e.effectIn),e.dropdownMenu.removeClass(e.effectOut),"function"==typeof t&&t()})}};var edge="Microsoft Edge",ie10="Internet Explorer 10",ie11="Internet Explorer 11",opera="Opera",firefox="Mozilla Firefox",chrome="Google Chrome",safari="Safari";function skinChanger(){$(".right-sidebar .demo-choose-skin li").on("click",function(){var e=$("body"),t=$(this),n=$(".right-sidebar .demo-choose-skin li.active").data("theme");$(".right-sidebar .demo-choose-skin li").removeClass("active"),e.removeClass("theme-"+n),t.addClass("active"),e.addClass("theme-"+t.data("theme"))})}function setSkinListHeightAndScroll(e){var t=$(window).height()-($(".navbar").innerHeight()+$(".right-sidebar .nav-tabs").outerHeight()),n=$(".demo-choose-skin");e||(n.slimScroll({destroy:!0}).height("auto"),n.parent().find(".slimScrollBar, .slimScrollRail").remove()),n.slimscroll({height:t+"px",color:"rgba(0,0,0,0.5)",size:"6px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}function setSettingListHeightAndScroll(e){var t=$(window).height()-($(".navbar").innerHeight()+$(".right-sidebar .nav-tabs").outerHeight()),n=$(".right-sidebar .demo-settings");e||(n.slimScroll({destroy:!0}).height("auto"),n.parent().find(".slimScrollBar, .slimScrollRail").remove()),n.slimscroll({height:t+"px",color:"rgba(0,0,0,0.5)",size:"6px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}function activateNotificationAndTasksScroll(){$(".navbar-right .dropdown-menu .body .menu").slimscroll({height:"254px",color:"rgba(0,0,0,0.5)",size:"4px",alwaysVisible:!1,borderRadius:"0",railBorderRadius:"0"})}$.AdminBSB.browser={activate:function(){""!==this.getClassName()&&$("html").addClass(this.getClassName())},getBrowser:function(){var e=navigator.userAgent.toLowerCase();return/edge/i.test(e)?edge:/rv:11/i.test(e)?ie11:/msie 10/i.test(e)?ie10:/opr/i.test(e)?opera:/chrome/i.test(e)?chrome:/firefox/i.test(e)?firefox:navigator.userAgent.match(/Version\/[\d\.]+.*Safari/)?safari:void 0},getClassName:function(){var e=this.getBrowser();return e===edge?"edge":e===ie11?"ie11":e===ie10?"ie10":e===opera?"opera":e===chrome?"chrome":e===firefox?"firefox":e===safari?"safari":""}},$(function(){$.AdminBSB.browser.activate(),$.AdminBSB.leftSideBar.activate(),$.AdminBSB.rightSideBar.activate(),$.AdminBSB.navbar.activate(),$.AdminBSB.dropdownMenu.activate(),$.AdminBSB.input.activate(),$.AdminBSB.select.activate(),$.AdminBSB.search.activate(),setTimeout(function(){$(".page-loader-wrapper").fadeOut()},50)}),$(function(){skinChanger(),activateNotificationAndTasksScroll(),setSkinListHeightAndScroll(!0),setSettingListHeightAndScroll(!0),$(window).resize(function(){setSkinListHeightAndScroll(!1),setSettingListHeightAndScroll(!1)})}),function(v){"use strict";var o={tagClass:function(e){return"label label-info"},itemValue:function(e){return e?e.toString():e},itemText:function(e){return this.itemValue(e)},itemTitle:function(e){return null},freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!1,onTagExists:function(e,t){t.hide().fadeIn()},trimValue:!1,allowDuplicates:!1};function a(e,t){this.isInit=!0,this.itemsArray=[],this.$element=v(e),this.$element.hide(),this.isSelect="SELECT"===e.tagName,this.multiple=this.isSelect&&e.hasAttribute("multiple"),this.objectItems=t&&t.itemValue,this.placeholderText=e.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=v('<div class="bootstrap-tagsinput"></div>'),this.$input=v('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.before(this.$container),this.build(t),this.isInit=!1}function s(e,t){if("function"!=typeof e[t]){var n=e[t];e[t]=function(e){return e[n]}}}function u(e,t){if("function"!=typeof e[t]){var n=e[t];e[t]=function(){return n}}}a.prototype={constructor:a,add:function(e,t,n){var i=this;if(!(i.options.maxTags&&i.itemsArray.length>=i.options.maxTags)&&(!1===e||e)){if("string"==typeof e&&i.options.trimValue&&(e=v.trim(e)),"object"==typeof e&&!i.objectItems)throw"Can't add objects when itemValue option is not set";if(!e.toString().match(/^\s*$/)){if(i.isSelect&&!i.multiple&&0<i.itemsArray.length&&i.remove(i.itemsArray[0]),"string"==typeof e&&"INPUT"===this.$element[0].tagName){var r=i.options.delimiterRegex?i.options.delimiterRegex:i.options.delimiter,o=e.split(r);if(1<o.length){for(var a=0;a<o.length;a++)this.add(o[a],!0);return void(t||i.pushVal())}}var s=i.options.itemValue(e),l=i.options.itemText(e),u=i.options.tagClass(e),c=i.options.itemTitle(e),d=v.grep(i.itemsArray,function(e){return i.options.itemValue(e)===s})[0];if(!d||i.options.allowDuplicates){if(!(i.items().toString().length+e.length+1>i.options.maxInputLength)){var p=v.Event("beforeItemAdd",{item:e,cancel:!1,options:n});if(i.$element.trigger(p),!p.cancel){i.itemsArray.push(e);var h=v('<span class="tag '+y(u)+(null!==c?'" title="'+c:"")+'">'+y(l)+'<span data-role="remove"></span></span>');h.data("item",e),i.findInputWrapper().before(h),h.after(" ");var f=v('option[value="'+encodeURIComponent(s)+'"]',i.$element).length||v('option[value="'+y(s)+'"]',i.$element).length;if(i.isSelect&&!f){var m=v("<option selected>"+y(l)+"</option>");m.data("item",e),m.attr("value",s),i.$element.append(m)}t||i.pushVal(),i.options.maxTags!==i.itemsArray.length&&i.items().toString().length!==i.options.maxInputLength||i.$container.addClass("bootstrap-tagsinput-max"),v(".typeahead, .twitter-typeahead",i.$container).length&&i.$input.typeahead("val",""),this.isInit?i.$element.trigger(v.Event("itemAddedOnInit",{item:e,options:n})):i.$element.trigger(v.Event("itemAdded",{item:e,options:n}))}}}else if(i.options.onTagExists){var g=v(".tag",i.$container).filter(function(){return v(this).data("item")===d});i.options.onTagExists(e,g)}}}},remove:function(t,e,n){var i=this;if(i.objectItems&&(t=(t="object"==typeof t?v.grep(i.itemsArray,function(e){return i.options.itemValue(e)==i.options.itemValue(t)}):v.grep(i.itemsArray,function(e){return i.options.itemValue(e)==t}))[t.length-1]),t){var r=v.Event("beforeItemRemove",{item:t,cancel:!1,options:n});if(i.$element.trigger(r),r.cancel)return;v(".tag",i.$container).filter(function(){return v(this).data("item")===t}).remove(),v("option",i.$element).filter(function(){return v(this).data("item")===t}).remove(),-1!==v.inArray(t,i.itemsArray)&&i.itemsArray.splice(v.inArray(t,i.itemsArray),1)}e||i.pushVal(),i.options.maxTags>i.itemsArray.length&&i.$container.removeClass("bootstrap-tagsinput-max"),i.$element.trigger(v.Event("itemRemoved",{item:t,options:n}))},removeAll:function(){for(v(".tag",this.$container).remove(),v("option",this.$element).remove();0<this.itemsArray.length;)this.itemsArray.pop();this.pushVal()},refresh:function(){var o=this;v(".tag",o.$container).each(function(){var e=v(this),t=e.data("item"),n=o.options.itemValue(t),i=o.options.itemText(t),r=o.options.tagClass(t);(e.attr("class",null),e.addClass("tag "+y(r)),e.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=y(i),o.isSelect)&&v("option",o.$element).filter(function(){return v(this).data("item")===t}).attr("value",n)})},items:function(){return this.itemsArray},pushVal:function(){var t=this,e=v.map(t.items(),function(e){return t.options.itemValue(e).toString()});t.$element.val(e,!0).trigger("change")},build:function(e){var l=this;if(l.options=v.extend({},o,e),l.objectItems&&(l.options.freeInput=!1),s(l.options,"itemValue"),s(l.options,"itemText"),u(l.options,"tagClass"),l.options.typeahead){var i=l.options.typeahead||{};u(i,"source"),l.$input.typeahead(v.extend({},i,{source:function(e,r){function t(e){for(var t=[],n=0;n<e.length;n++){var i=l.options.itemText(e[n]);o[i]=e[n],t.push(i)}r(t)}this.map={};var o=this.map,n=i.source(e);v.isFunction(n.success)?n.success(t):v.isFunction(n.then)?n.then(t):v.when(n).then(t)},updater:function(e){return l.add(this.map[e]),this.map[e]},matcher:function(e){return-1!==e.toLowerCase().indexOf(this.query.trim().toLowerCase())},sorter:function(e){return e.sort()},highlighter:function(e){var t=new RegExp("("+this.query+")","gi");return e.replace(t,"<strong>$1</strong>")}}))}if(l.options.typeaheadjs){var t=null,n={},r=l.options.typeaheadjs;v.isArray(r)?(t=r[0],n=r[1]):n=r,l.$input.typeahead(t,n).on("typeahead:selected",v.proxy(function(e,t){n.valueKey?l.add(t[n.valueKey]):l.add(t),l.$input.typeahead("val","")},l))}l.$container.on("click",v.proxy(function(e){l.$element.attr("disabled")||l.$input.removeAttr("disabled"),l.$input.focus()},l)),l.options.addOnBlur&&l.options.freeInput&&l.$input.on("focusout",v.proxy(function(e){0===v(".typeahead, .twitter-typeahead",l.$container).length&&(l.add(l.$input.val()),l.$input.val(""))},l)),l.$container.on("keydown","input",v.proxy(function(e){var t=v(e.target),n=l.findInputWrapper();if(l.$element.attr("disabled"))l.$input.attr("disabled","disabled");else{switch(e.which){case 8:if(0===c(t[0])){var i=n.prev();i.length&&l.remove(i.data("item"))}break;case 46:if(0===c(t[0])){var r=n.next();r.length&&l.remove(r.data("item"))}break;case 37:var o=n.prev();0===t.val().length&&o[0]&&(o.before(n),t.focus());break;case 39:var a=n.next();0===t.val().length&&a[0]&&(a.after(n),t.focus())}var s=t.val().length;Math.ceil(s/5);t.attr("size",Math.max(this.inputSize,t.val().length))}},l)),l.$container.on("keypress","input",v.proxy(function(e){var t=v(e.target);if(l.$element.attr("disabled"))l.$input.attr("disabled","disabled");else{var o,n,a,i=t.val(),r=l.options.maxChars&&i.length>=l.options.maxChars;l.options.freeInput&&(o=e,n=l.options.confirmKeys,a=!1,v.each(n,function(e,t){if("number"==typeof t&&o.which===t)return!(a=!0);if(o.which===t.which){var n=!t.hasOwnProperty("altKey")||o.altKey===t.altKey,i=!t.hasOwnProperty("shiftKey")||o.shiftKey===t.shiftKey,r=!t.hasOwnProperty("ctrlKey")||o.ctrlKey===t.ctrlKey;if(n&&i&&r)return!(a=!0)}}),a||r)&&(0!==i.length&&(l.add(r?i.substr(0,l.options.maxChars):i),t.val("")),!1===l.options.cancelConfirmKeysOnEmpty&&e.preventDefault());var s=t.val().length;Math.ceil(s/5);t.attr("size",Math.max(this.inputSize,t.val().length))}},l)),l.$container.on("click","[data-role=remove]",v.proxy(function(e){l.$element.attr("disabled")||l.remove(v(e.target).closest(".tag").data("item"))},l)),l.options.itemValue===o.itemValue&&("INPUT"===l.$element[0].tagName?l.add(l.$element.val()):v("option",l.$element).each(function(){l.add(v(this).attr("value"),!0)}))},destroy:function(){this.$container.off("keypress","input"),this.$container.off("click","[role=remove]"),this.$container.remove(),this.$element.removeData("tagsinput"),this.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var e=this.$input[0],t=this.$container[0];e&&e.parentNode!==t;)e=e.parentNode;return v(e)}},v.fn.tagsinput=function(n,i,r){var o=[];return this.each(function(){var e=v(this).data("tagsinput");if(e)if(n||i){if(void 0!==e[n]){if(3===e[n].length&&void 0!==r)var t=e[n](i,null,r);else t=e[n](i);void 0!==t&&o.push(t)}}else o.push(e);else e=new a(this,n),v(this).data("tagsinput",e),o.push(e),"SELECT"===this.tagName&&v("option",v(this)).attr("selected","selected"),v(this).val(v(this).val())}),"string"==typeof n?1<o.length?o:o[0]:o},v.fn.tagsinput.Constructor=a;var t=v("<div />");function y(e){return e?t.text(e).html():""}function c(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);return t}v(function(){v("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(c){c.extend(c.fn,{validate:function(e){if(this.length){var i=c.data(this[0],"validator");return i||(this.attr("novalidate","novalidate"),i=new c.validator(e,this[0]),c.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.settings.submitHandler&&(i.submitButton=e.target),c(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==c(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(n){function e(){var e,t;return!i.settings.submitHandler||(i.submitButton&&(e=c("<input type='hidden'/>").attr("name",i.submitButton.name).val(c(i.submitButton).val()).appendTo(i.currentForm)),t=i.settings.submitHandler.call(i,i.currentForm,n),i.submitButton&&e.remove(),void 0!==t&&t)}return i.settings.debug&&n.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,e()):i.form()?i.pendingRequest?!(i.formSubmitted=!0):e():(i.focusInvalid(),!1)})),i)}e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var e,t,n;return c(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,t=c(this[0].form).validate(),this.each(function(){(e=t.element(this)&&e)||(n=n.concat(t.errorList))}),t.errorList=n),e},rules:function(e,t){var n,i,r,o,a,s,l=this[0];if(null!=l&&null!=l.form){if(e)switch(i=(n=c.data(l.form,"validator").settings).rules,r=c.validator.staticRules(l),e){case"add":c.extend(r,c.validator.normalizeRule(t)),delete r.messages,i[l.name]=r,t.messages&&(n.messages[l.name]=c.extend(n.messages[l.name],t.messages));break;case"remove":return t?(s={},c.each(t.split(/\s/),function(e,t){s[t]=r[t],delete r[t],"required"===t&&c(l).removeAttr("aria-required")}),s):(delete i[l.name],r)}return(o=c.validator.normalizeRules(c.extend({},c.validator.classRules(l),c.validator.attributeRules(l),c.validator.dataRules(l),c.validator.staticRules(l)),l)).required&&(a=o.required,delete o.required,o=c.extend({required:a},o),c(l).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=c.extend(o,{remote:a})),o}}}),c.extend(c.expr[":"],{blank:function(e){return!c.trim(""+c(e).val())},filled:function(e){var t=c(e).val();return null!==t&&!!c.trim(""+t)},unchecked:function(e){return!c(e).prop("checked")}}),c.validator=function(e,t){this.settings=c.extend(!0,{},c.validator.defaults,e),this.currentForm=t,this.init()},c.validator.format=function(n,e){return 1===arguments.length?function(){var e=c.makeArray(arguments);return e.unshift(n),c.validator.format.apply(this,e)}:(void 0===e||(2<arguments.length&&e.constructor!==Array&&(e=c.makeArray(arguments).slice(1)),e.constructor!==Array&&(e=[e]),c.each(e,function(e,t){n=n.replace(new RegExp("\\{"+e+"\\}","g"),function(){return t})})),n)},c.extend(c.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:c([]),errorLabelContainer:c([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(e,t){9===t.which&&""===this.elementValue(e)||-1!==c.inArray(t.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(e.name in this.submitted||e.name in this.invalid)&&this.element(e)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).addClass(t).removeClass(n):c(e).addClass(t).removeClass(n)},unhighlight:function(e,t,n){"radio"===e.type?this.findByName(e.name).removeClass(t).addClass(n):c(e).removeClass(t).addClass(n)}},setDefaults:function(e){c.extend(c.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:c.validator.format("Please enter no more than {0} characters."),minlength:c.validator.format("Please enter at least {0} characters."),rangelength:c.validator.format("Please enter a value between {0} and {1} characters long."),range:c.validator.format("Please enter a value between {0} and {1}."),max:c.validator.format("Please enter a value less than or equal to {0}."),min:c.validator.format("Please enter a value greater than or equal to {0}."),step:c.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=c(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||c(this.currentForm),this.containers=c(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.groups={};function e(e){!this.form&&this.hasAttribute("contenteditable")&&(this.form=c(this).closest("form")[0]);var t=c.data(this.form,"validator"),n="on"+e.type.replace(/^validate/,""),i=t.settings;i[n]&&!c(this).is(i.ignore)&&i[n].call(t,this,e)}c.each(this.settings.groups,function(n,e){"string"==typeof e&&(e=e.split(/\s/)),c.each(e,function(e,t){i[t]=n})}),n=this.settings.rules,c.each(n,function(e,t){n[e]=c.validator.normalizeRule(t)}),c(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":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'], [contenteditable]",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&c(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),c(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),c.extend(this.submitted,this.errorMap),this.invalid=c.extend({},this.errorMap),this.valid()||c(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(e){var t,n,i=this.clean(e),r=this.validationTargetFor(i),o=this,a=!0;return void 0===r?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=c(r),(n=this.groups[r.name])&&c.each(this.groups,function(e,t){t===n&&e!==r.name&&(i=o.validationTargetFor(o.clean(o.findByName(e))))&&i.name in o.invalid&&(o.currentElements.push(i),a=o.check(i)&&a)}),t=!1!==this.check(r),a=a&&t,this.invalid[r.name]=!t,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),c(e).attr("aria-invalid",!t)),a},showErrors:function(t){if(t){var n=this;c.extend(this.errorMap,t),this.errorList=c.map(this.errorMap,function(e,t){return{message:e,element:n.findByName(t)[0]}}),this.successList=c.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){c.fn.resetForm&&c(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var e=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(e)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)e[t]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{c(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===c.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,n={};return c(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var e=this.name||c(this).attr("name");return!e&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=c(this).closest("form")[0]),!(e in n||!t.objectLength(c(this).rules()))&&(n[e]=!0)})},clean:function(e){return c(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return c(this.settings.errorElement+"."+e,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=c([]),this.toHide=c([])},reset:function(){this.resetInternals(),this.currentElements=c([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(e){var t,n,i=c(e),r=e.type;return"radio"===r||"checkbox"===r?this.findByName(e.name).filter(":checked").val():"number"===r&&void 0!==e.validity?e.validity.badInput?"NaN":i.val():(t=e.hasAttribute("contenteditable")?i.text():i.val(),"file"===r?"C:\\fakepath\\"===t.substr(0,12)?t.substr(12):0<=(n=t.lastIndexOf("/"))?t.substr(n+1):0<=(n=t.lastIndexOf("\\"))?t.substr(n+1):t:"string"==typeof t?t.replace(/\r/g,""):t)},check:function(t){t=this.validationTargetFor(this.clean(t));var e,n,i,r=c(t).rules(),o=c.map(r,function(e,t){return t}).length,a=!1,s=this.elementValue(t);if("function"==typeof r.normalizer){if("string"!=typeof(s=r.normalizer.call(t,s)))throw new TypeError("The normalizer should return a string value.");delete r.normalizer}for(n in r){i={method:n,parameters:r[n]};try{if("dependency-mismatch"===(e=c.validator.methods[n].call(this,s,t,i.parameters))&&1===o){a=!0;continue}if(a=!1,"pending"===e)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!e)return this.formatAndAdd(t,i),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+i.method+"' method.",e),e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+i.method+"' method."),e}}if(!a)return this.objectLength(r)&&this.successList.push(t),!0},customDataMessage:function(e,t){return c(e).data("msg"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase())||c(e).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(e,t){"string"==typeof t&&(t={method:t});var n=this.findDefined(this.customMessage(e.name,t.method),this.customDataMessage(e,t.method),!this.settings.ignoreTitle&&e.title||void 0,c.validator.messages[t.method],"<strong>Warning: No message defined for "+e.name+"</strong>"),i=/\$?\{(\d+)\}/g;return"function"==typeof n?n=n.call(this,t.parameters,e):i.test(n)&&(n=c.validator.format(n.replace(i,"{$1}"),t.parameters)),n},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t);this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.validClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],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 c(this.errorList).map(function(){return this.element})},showLabel:function(e,t){var n,i,r,o,a=this.errorsFor(e),s=this.idOrName(e),l=c(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(t)):(n=a=c("<"+this.settings.errorElement+">").attr("id",s+"-error").addClass(this.settings.errorClass).html(t||""),this.settings.wrapper&&(n=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement.call(this,n,c(e)):n.insertAfter(e),a.is("label")?a.attr("for",s):0===a.parents("label[for='"+this.escapeCssMeta(s)+"']").length&&(r=a.attr("id"),l?l.match(new RegExp("\\b"+this.escapeCssMeta(r)+"\\b"))||(l+=" "+r):l=r,c(e).attr("aria-describedby",l),(i=this.groups[e.name])&&(o=this,c.each(o.groups,function(e,t){t===i&&c("[name='"+o.escapeCssMeta(e)+"']",o.currentForm).attr("aria-describedby",a.attr("id"))})))),!t&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var t=this.escapeCssMeta(this.idOrName(e)),n=c(e).attr("aria-describedby"),i="label[for='"+t+"'], label[for='"+t+"'] *";return n&&(i=i+", #"+this.escapeCssMeta(n).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),c(e).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(e){return c(this.currentForm).find("[name='"+this.escapeCssMeta(e)+"']")},getLength:function(e,t){switch(t.nodeName.toLowerCase()){case"select":return c("option:selected",t).length;case"input":if(this.checkable(t))return this.findByName(t.name).filter(":checked").length}return e.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(e,t){return!!c(e,t.form).length},function:function(e,t){return e(t)}},optional:function(e){var t=this.elementValue(e);return!c.validator.methods.required.call(this,t,e)&&"dependency-mismatch"},startRequest:function(e){this.pending[e.name]||(this.pendingRequest++,c(e).addClass(this.settings.pendingClass),this.pending[e.name]=!0)},stopRequest:function(e,t){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],c(e).removeClass(this.settings.pendingClass),t&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(c(this.currentForm).submit(),this.formSubmitted=!1):!t&&0===this.pendingRequest&&this.formSubmitted&&(c(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e,t){return t="string"==typeof t&&t||"remote",c.data(e,"previousValue")||c.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,{method:t})})},destroy:function(){this.resetForm(),c(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},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(e,t){e.constructor===String?this.classRuleSettings[e]=t:c.extend(this.classRuleSettings,e)},classRules:function(e){var t={},n=c(e).attr("class");return n&&c.each(n.split(" "),function(){this in c.validator.classRuleSettings&&c.extend(t,c.validator.classRuleSettings[this])}),t},normalizeAttributeRule:function(e,t,n,i){/min|max|step/.test(n)&&(null===t||/number|range|text/.test(t))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?e[n]=i:t===n&&"range"!==t&&(e[n]=!0)},attributeRules:function(e){var t,n,i={},r=c(e),o=e.getAttribute("type");for(t in c.validator.methods)"required"===t?(""===(n=e.getAttribute(t))&&(n=!0),n=!!n):n=r.attr(t),this.normalizeAttributeRule(i,o,t,n);return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var t,n,i={},r=c(e),o=e.getAttribute("type");for(t in c.validator.methods)n=r.data("rule"+t.charAt(0).toUpperCase()+t.substring(1).toLowerCase()),this.normalizeAttributeRule(i,o,t,n);return i},staticRules:function(e){var t={},n=c.data(e.form,"validator");return n.settings.rules&&(t=c.validator.normalizeRule(n.settings.rules[e.name])||{}),t},normalizeRules:function(i,r){return c.each(i,function(e,t){if(!1!==t){if(t.param||t.depends){var n=!0;switch(typeof t.depends){case"string":n=!!c(t.depends,r.form).length;break;case"function":n=t.depends.call(r,r)}n?i[e]=void 0===t.param||t.param:(c.data(r.form,"validator").resetElements(c(r)),delete i[e])}}else delete i[e]}),c.each(i,function(e,t){i[e]=c.isFunction(t)&&"normalizer"!==e?t(r):t}),c.each(["minlength","maxlength"],function(){i[this]&&(i[this]=Number(i[this]))}),c.each(["rangelength","range"],function(){var e;i[this]&&(c.isArray(i[this])?i[this]=[Number(i[this][0]),Number(i[this][1])]:"string"==typeof i[this]&&(e=i[this].replace(/[\[\]]/g,"").split(/[\s,]+/),i[this]=[Number(e[0]),Number(e[1])]))}),c.validator.autoCreateRanges&&(null!=i.min&&null!=i.max&&(i.range=[i.min,i.max],delete i.min,delete i.max),null!=i.minlength&&null!=i.maxlength&&(i.rangelength=[i.minlength,i.maxlength],delete i.minlength,delete i.maxlength)),i},normalizeRule:function(e){if("string"==typeof e){var t={};c.each(e.split(/\s/),function(){t[this]=!0}),e=t}return e},addMethod:function(e,t,n){c.validator.methods[e]=t,c.validator.messages[e]=void 0!==n?n:c.validator.messages[e],t.length<3&&c.validator.addClassRules(e,c.validator.normalizeRule(e))},methods:{required:function(e,t,n){if(!this.depend(n,t))return"dependency-mismatch";if("select"===t.nodeName.toLowerCase()){var i=c(t).val();return i&&0<i.length}return this.checkable(t)?0<this.getLength(e,t):0<e.length},email:function(e,t){return this.optional(t)||/^[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(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(e,t,n){var i=c.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||n<=i},maxlength:function(e,t,n){var i=c.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i<=n},rangelength:function(e,t,n){var i=c.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i>=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||n<=e},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},step:function(e,t,n){var i,r=c(t).attr("type"),o="Step attribute on input type "+r+" is not supported.",a=new RegExp("\\b"+r+"\\b"),s=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},l=function(e){return Math.round(e*Math.pow(10,i))},u=!0;if(r&&!a.test(["text","number","range"].join()))throw new Error(o);return i=s(n),(s(e)>i||l(e)%l(n)!=0)&&(u=!1),this.optional(t)||u},equalTo:function(e,t,n){var i=c(n);return this.settings.onfocusout&&i.not(".validate-equalTo-blur").length&&i.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){c(t).valid()}),e===i.val()},remote:function(o,a,e,s){if(this.optional(a))return"dependency-mismatch";s="string"==typeof s&&s||"remote";var l,t,n,u=this.previousValue(a,s);return this.settings.messages[a.name]||(this.settings.messages[a.name]={}),u.originalMessage=u.originalMessage||this.settings.messages[a.name][s],this.settings.messages[a.name][s]=u.message,e="string"==typeof e&&{url:e}||e,n=c.param(c.extend({data:o},e.data)),u.old===n?u.valid:(u.old=n,(l=this).startRequest(a),(t={})[a.name]=o,c.ajax(c.extend(!0,{mode:"abort",port:"validate"+a.name,dataType:"json",data:t,context:l.currentForm,success:function(e){var t,n,i,r=!0===e||"true"===e;l.settings.messages[a.name][s]=u.originalMessage,r?(i=l.formSubmitted,l.resetInternals(),l.toHide=l.errorsFor(a),l.formSubmitted=i,l.successList.push(a),l.invalid[a.name]=!1,l.showErrors()):(t={},n=e||l.defaultMessage(a,{method:s,parameters:o}),t[a.name]=u.message=n,l.invalid[a.name]=!0,l.showErrors(t)),u.valid=r,l.stopRequest(a,r)}},e)),"pending")}}});var i,r={};c.ajaxPrefilter?c.ajaxPrefilter(function(e,t,n){var i=e.port;"abort"===e.mode&&(r[i]&&r[i].abort(),r[i]=n)}):(i=c.ajax,c.ajax=function(e){var t=("mode"in e?e:c.ajaxSettings).mode,n=("port"in e?e:c.ajaxSettings).port;return"abort"===t?(r[n]&&r[n].abort(),r[n]=i.apply(this,arguments),r[n]):i.apply(this,arguments)})});
Close