if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1==t[0]&&9==t[1]&&t[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(void 0!==i.style[n])return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,""));r=n(u);i&&i.preventDefault();r.length||(r=f.closest(".alert"));r.trigger(i=n.Event("close.bs.alert"));i.isDefaultPrevented()||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.3.1";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());setTimeout(n.proxy(function(){i[f](null==u[t]?this.options[t]:u[t]);"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change")):this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.1";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i="prev"==n?-1:1,r=this.getItemIndex(t),u=(r+i)%this.$items.length;return this.$items.eq(u)};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(0>n))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f="next"==i?"left":"right",v="next"==i?"first":"last",a=this,o,s,h,c;if(!u.length){if(!this.options.wrap)return;u=this.$element.find(".item")[v]()}return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),(this.$element.trigger(s),!s.isDefaultPrevented())?((this.sliding=!0,l&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this):void 0)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n(this.options.trigger).filter('[href="#'+i.id+'"], [data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.3.1";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0,trigger:'[data-toggle="collapse"]'};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.find("> .panel").children(".in, .collapsing"),!(r&&r.length&&(f=r.data("bs.collapse"),f&&f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented()))){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented()))return i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},n.support.transition?void this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION):u.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":n.extend({},u.data(),{trigger:this});i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var r=n(this),i=u(r),f={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger("hidden.bs.dropdown",f)))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.1";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s&&27!=t.which||s&&27==t.which)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.divider):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(t.target),38==t.which&&r>0&&r--,40==t.which&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',t.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.1";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(u);this.isShown||u.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"]',n.proxy(this.hide,this)),this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.options.backdrop&&r.adjustBackdrop();r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in").attr("aria-hidden",!1);r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$element.find(".modal-dialog").one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)}))};t.prototype.hide=function(i){i&&i.preventDefault();i=n.Event("hide.bs.modal");this.$element.trigger(i);this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){this.isShown?n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this)):n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){if(r=n.support.transition&&f,this.$backdrop=n('<div class="modal-backdrop '+f+'" />').prependTo(this.$element).on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.options.backdrop&&this.adjustBackdrop();this.adjustDialog()};t.prototype.adjustBackdrop=function(){this.$backdrop.css("height",0).css("height",this.$element[0].scrollHeight)};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){this.bodyIsOverflowing=document.body.scrollHeight>document.documentElement.clientHeight;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.tooltip"),u="object"==typeof i&&i,e=u&&u.selector;(r||"destroy"!=i)&&(e?(r||f.data("bs.tooltip",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.tooltip",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.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}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i&&i.$tip&&i.$tip.is(":visible")?void(i.hoverState="in"):(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent();r.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&r.addClass("fade");var i="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top");r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this);this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;if(y){var w=i,b=this.options.container?n(this.options.container):this.$element.parent(),e=this.getPosition(b);i="bottom"==i&&f.bottom+s>e.bottom?"top":"top"==i&&f.top-s<e.top?"bottom":"right"==i&&f.right+o>e.width?"left":"left"==i&&f.left-o<e.left?"right":i;r.removeClass(w).addClass(i)}p=this.getCalculatedOffset(i,f,o,s);this.applyPlacement(p,i);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;"out"==n&&u.leave(u)};n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?2*u.left-l+h:2*u.top-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function f(){"in"!=r.hoverState&&u.detach();r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type);i&&i()}var r=this,u=this.tip(),e=n.Event("hide.bs."+this.type);return this.$element.trigger(e),e.isDefaultPrevented()?void 0:(u.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?u.one("bsTransitionEnd",f).emulateTransitionEnd(t.TRANSITION_DURATION):f(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var u=t[0],r="BODY"==u.tagName,i=u.getBoundingClientRect();null==i.width&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=r?{top:0,left:0}:t.offset(),e={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},o=r?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,e,o,f)};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type)})};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var f=n(this),r=f.data("bs.popover"),u="object"==typeof i&&i,e=u&&u.selector;(r||"destroy"!=i)&&(e?(r||f.data("bs.popover",r={}),r[e]||(r[e]=new t(this,u))):r||f.data("bs.popover",r=new t(this,u)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.1";t.DEFAULTS=n.extend({},n.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>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(n(i).is("body")?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.3.1";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(!t[n+1]||i<=t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.1";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);o?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu")&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);u&&u()}var f=r.find("> .active"),o=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&o?f.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.3.1";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(null!=i&&"top"==this.affixed)return i>u?"top":!1;if("bottom"==this.affixed)return null!=i?u+this.unpin<=f.top?!1:"bottom":n-r>=u+e?!1:"bottom";var o=null==this.affixed,s=o?u:f.top,h=o?e:t;return null!=i&&i>=s?"top":null!=r&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=n("body").height();if("object"!=typeof r&&(u=f=r),"function"==typeof f&&(f=r.top(this.$element)),"function"==typeof u&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin="bottom"==i?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}"bottom"==i&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom);null!=t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n){var t=function(i){this.defaultOptions=n.extend(!0,{id:t.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},t.defaultOptions);this.indexedButtons={};this.registeredButtonHotkeys={};this.draggableData={isMouseDown:!1,mouseOffset:{}};this.realized=!1;this.opened=!1;this.initOptions(i);this.holdThisInstance()};t.NAMESPACE="bootstrap-dialog";t.TYPE_DEFAULT="type-default";t.TYPE_INFO="type-info";t.TYPE_PRIMARY="type-primary";t.TYPE_SUCCESS="type-success";t.TYPE_WARNING="type-warning";t.TYPE_DANGER="type-danger";t.DEFAULT_TEXTS={};t.DEFAULT_TEXTS[t.TYPE_DEFAULT]="Information";t.DEFAULT_TEXTS[t.TYPE_INFO]="Information";t.DEFAULT_TEXTS[t.TYPE_PRIMARY]="Information";t.DEFAULT_TEXTS[t.TYPE_SUCCESS]="Success";t.DEFAULT_TEXTS[t.TYPE_WARNING]="Warning";t.DEFAULT_TEXTS[t.TYPE_DANGER]="Danger";t.SIZE_NORMAL="size-normal";t.SIZE_LARGE="size-large";t.BUTTON_SIZES={};t.BUTTON_SIZES[t.SIZE_NORMAL]="";t.BUTTON_SIZES[t.SIZE_LARGE]="btn-lg";t.ICON_SPINNER="glyphicon glyphicon-asterisk";t.defaultOptions={type:t.TYPE_PRIMARY,size:t.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!0,closeByKeyboard:!0,spinicon:t.ICON_SPINNER,autodestroy:!0,draggable:!1};t.configDefaultOptions=function(i){t.defaultOptions=n.extend(!0,t.defaultOptions,i)};t.dialogs={};t.openAll=function(){n.each(t.dialogs,function(n,t){t.open()})};t.closeAll=function(){n.each(t.dialogs,function(n,t){t.close()})};t.prototype={constructor:t,initOptions:function(t){return this.options=n.extend(!0,this.defaultOptions,t),this},holdThisInstance:function(){return t.dialogs[this.getId()]=this,this},initModalStuff:function(){return this.setModal(this.createModal()).setModalDialog(this.createModalDialog()).setModalContent(this.createModalContent()).setModalHeader(this.createModalHeader()).setModalBody(this.createModalBody()).setModalFooter(this.createModalFooter()),this.getModal().append(this.getModalDialog()),this.getModalDialog().append(this.getModalContent()),this.getModalContent().append(this.getModalHeader()).append(this.getModalBody()).append(this.getModalFooter()),this},createModal:function(){var t=n('<div class="modal fade" tabindex="-1"><\/div>');return t.prop("id",this.getId()),t},getModal:function(){return this.$modal},setModal:function(n){return this.$modal=n,this},createModalDialog:function(){return n('<div class="modal-dialog"><\/div>')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(n){return this.$modalDialog=n,this},createModalContent:function(){return n('<div class="modal-content"><\/div>')},getModalContent:function(){return this.$modalContent},setModalContent:function(n){return this.$modalContent=n,this},createModalHeader:function(){return n('<div class="modal-header"><\/div>')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(n){return this.$modalHeader=n,this},createModalBody:function(){return n('<div class="modal-body"><\/div>')},getModalBody:function(){return this.$modalBody},setModalBody:function(n){return this.$modalBody=n,this},createModalFooter:function(){return n('<div class="modal-footer"><\/div>')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(n){return this.$modalFooter=n,this},createDynamicContent:function(n){var t=null;return t=typeof n=="function"?n.call(n,this):n,typeof t=="string"&&(t=this.formatStringContent(t)),t},formatStringContent:function(n){return this.options.nl2br?n.replace(/\r\n/g,"<br />").replace(/[\r\n]/g,"<br />"):n},setData:function(n,t){return this.options.data[n]=t,this},getData:function(n){return this.options.data[n]},setId:function(n){return this.options.id=n,this},getId:function(){return this.options.id},getType:function(){return this.options.type},setType:function(n){return this.options.type=n,this},getSize:function(){return this.options.size},setSize:function(n){return this.options.size=n,this},getCssClass:function(){return this.options.cssClass},setCssClass:function(n){return this.options.cssClass=n,this},getTitle:function(){return this.options.title},setTitle:function(n){return this.options.title=n,this.updateTitle(),this},updateTitle:function(){if(this.isRealized()){var n=this.getTitle()!==null?this.createDynamicContent(this.getTitle()):this.getDefaultText();this.getModalHeader().find("."+this.getNamespace("title")).html("").append(n)}return this},getMessage:function(){return this.options.message},setMessage:function(n){return this.options.message=n,this.updateMessage(),this},updateMessage:function(){if(this.isRealized()){var n=this.createDynamicContent(this.getMessage());this.getModalBody().find("."+this.getNamespace("message")).html("").append(n)}return this},isClosable:function(){return this.options.closable},setClosable:function(n){return this.options.closable=n,this.updateClosable(),this},setCloseByBackdrop:function(n){return this.options.closeByBackdrop=n,this},canCloseByBackdrop:function(){return this.options.closeByBackdrop},setCloseByKeyboard:function(n){return this.options.closeByKeyboard=n,this},canCloseByKeyboard:function(){return this.options.closeByKeyboard},getSpinicon:function(){return this.options.spinicon},setSpinicon:function(n){return this.options.spinicon=n,this},addButton:function(n){return this.options.buttons.push(n),this},addButtons:function(t){var i=this;return n.each(t,function(n,t){i.addButton(t)}),this},getButtons:function(){return this.options.buttons},setButtons:function(n){return this.options.buttons=n,this.updateButtons(),this},getButton:function(n){return typeof this.indexedButtons[n]!="undefined"?this.indexedButtons[n]:null},getButtonSize:function(){return typeof t.BUTTON_SIZES[this.getSize()]!="undefined"?t.BUTTON_SIZES[this.getSize()]:""},updateButtons:function(){return this.isRealized()&&(this.getButtons().length===0?this.getModalFooter().hide():this.getModalFooter().find("."+this.getNamespace("footer")).html("").append(this.createFooterButtons())),this},isAutodestroy:function(){return this.options.autodestroy},setAutodestroy:function(n){this.options.autodestroy=n},getDefaultText:function(){return t.DEFAULT_TEXTS[this.getType()]},getNamespace:function(n){return t.NAMESPACE+"-"+n},createHeaderContent:function(){var t=n("<div><\/div>");return t.addClass(this.getNamespace("header")),t.append(this.createTitleContent()),t.append(this.createCloseButton()),t},createTitleContent:function(){var t=n("<div><\/div>");return t.addClass(this.getNamespace("title")),t},createCloseButton:function(){var t=n("<div><\/div>"),i;t.addClass(this.getNamespace("close-button"));i=n('<button class="close">&times;<\/button>');t.append(i);t.on("click",{dialog:this},function(n){n.data.dialog.close()});return t},createBodyContent:function(){var t=n("<div><\/div>");return t.addClass(this.getNamespace("body")),t.append(this.createMessageContent()),t},createMessageContent:function(){var t=n("<div><\/div>");return t.addClass(this.getNamespace("message")),t},createFooterContent:function(){var t=n("<div><\/div>");return t.addClass(this.getNamespace("footer")),t},createFooterButtons:function(){var r=this,i=n("<div><\/div>");return i.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},n.each(this.options.buttons,function(n,u){u.id||(u.id=t.newGuid());var f=r.createButton(u);r.indexedButtons[u.id]=f;i.append(f)}),i},createButton:function(t){var i=n('<button class="btn"><\/button>');i.addClass(this.getButtonSize());i.prop("id",t.id);typeof t.icon!==undefined&&n.trim(t.icon)!==""&&i.append(this.createButtonIcon(t.icon));typeof t.label!==undefined&&i.append(t.label);typeof t.cssClass!==undefined&&n.trim(t.cssClass)!==""?i.addClass(t.cssClass):i.addClass("btn-default");typeof t.hotkey!==undefined&&(this.registeredButtonHotkeys[t.hotkey]=i);i.on("click",{dialog:this,$button:i,button:t},function(n){var r=n.data.dialog,i=n.data.$button,t=n.data.button;typeof t.action=="function"&&t.action.call(i,r);t.autospin&&i.toggleSpin(!0)});return this.enhanceButton(i),i},enhanceButton:function(n){return n.dialog=this,n.toggleEnable=function(n){var t=this;return t.prop("disabled",!n).toggleClass("disabled",!n),t},n.enable=function(){var n=this;return n.toggleEnable(!0),n},n.disable=function(){var n=this;return n.toggleEnable(!1),n},n.toggleSpin=function(t){var i=this,r=i.dialog,u=i.find("."+r.getNamespace("button-icon"));return t?(u.hide(),n.prepend(r.createButtonIcon(r.getSpinicon()).addClass("icon-spin"))):(u.show(),n.find(".icon-spin").remove()),i},n.spin=function(){var n=this;return n.toggleSpin(!0),n},n.stopSpin=function(){var n=this;return n.toggleSpin(!1),n},this},createButtonIcon:function(t){var i=n("<span><\/span>");return i.addClass(this.getNamespace("button-icon")).addClass(t),i},enableButtons:function(t){return n.each(this.indexedButtons,function(n,i){i.toggleEnable(t)}),this},updateClosable:function(){return this.isRealized()&&this.getModalHeader().find("."+this.getNamespace("close-button")).toggle(this.isClosable()),this},onShow:function(n){return this.options.onshow=n,this},onShown:function(n){return this.options.onshown=n,this},onHide:function(n){return this.options.onhide=n,this},onHidden:function(n){return this.options.onhidden=n,this},isRealized:function(){return this.realized},setRealized:function(n){return this.realized=n,this},isOpened:function(){return this.opened},setOpened:function(n){return this.opened=n,this},handleModalEvents:function(){this.getModal().on("show.bs.modal",{dialog:this},function(n){var t=n.data.dialog;typeof t.options.onshow=="function"&&t.options.onshow(t);t.showPageScrollBar(!0)});this.getModal().on("shown.bs.modal",{dialog:this},function(n){var t=n.data.dialog;typeof t.options.onshown=="function"&&t.options.onshown(t);t.showPageScrollBar(!0)});this.getModal().on("hide.bs.modal",{dialog:this},function(n){var t=n.data.dialog;typeof t.options.onhide=="function"&&t.options.onhide(t)});this.getModal().on("hidden.bs.modal",{dialog:this},function(t){var i=t.data.dialog;typeof i.options.onhidden=="function"&&i.options.onhidden(i);i.isAutodestroy()&&n(this).remove();i.showPageScrollBar(!1)});this.getModal().on("click",{dialog:this},function(n){n.target===this&&n.data.dialog.isClosable()&&n.data.dialog.canCloseByBackdrop()&&n.data.dialog.close()});this.getModal().on("keyup",{dialog:this},function(n){n.which===27&&n.data.dialog.isClosable()&&n.data.dialog.canCloseByKeyboard()&&n.data.dialog.close()});this.getModal().on("keyup",{dialog:this},function(t){var r=t.data.dialog,i;typeof r.registeredButtonHotkeys[t.which]!="undefined"&&(i=n(r.registeredButtonHotkeys[t.which]),i.prop("disabled")||i.focus().trigger("click"))});return this},makeModalDraggable:function(){if(this.options.draggable){this.getModalHeader().addClass(this.getNamespace("draggable")).on("mousedown",{dialog:this},function(n){var t=n.data.dialog,i;t.draggableData.isMouseDown=!0;i=t.getModalContent().offset();t.draggableData.mouseOffset={top:n.clientY-i.top,left:n.clientX-i.left}});this.getModal().on("mouseup mouseleave",{dialog:this},function(n){n.data.dialog.draggableData.isMouseDown=!1});n("body").on("mousemove",{dialog:this},function(n){var t=n.data.dialog;t.draggableData.isMouseDown&&t.getModalContent().offset({top:n.clientY-t.draggableData.mouseOffset.top,left:n.clientX-t.draggableData.mouseOffset.left})})}return this},showPageScrollBar:function(t){n(document.body).toggleClass("modal-open",t)},realize:function(){return this.initModalStuff(),this.getModal().addClass(t.NAMESPACE).addClass(this.getType()).addClass(this.getSize()).addClass(this.getCssClass()),this.getModalFooter().append(this.createFooterContent()),this.getModalHeader().append(this.createHeaderContent()),this.getModalBody().append(this.createBodyContent()),this.getModal().modal({backdrop:"static",keyboard:!1,show:!1}),this.makeModalDraggable(),this.handleModalEvents(),this.setRealized(!0),this.updateButtons(),this.updateTitle(),this.updateMessage(),this.updateClosable(),this},open:function(){return this.isRealized()||this.realize(),this.getModal().modal("show"),this.setOpened(!0),this},close:function(){return this.getModal().modal("hide"),this.isAutodestroy()&&delete t.dialogs[this.getId()],this.setOpened(!1),this}};t.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=Math.random()*16|0,i=n==="x"?t:t&3|8;return i.toString(16)})};t.show=function(n){return new t(n).open()};t.alert=function(){var i={},r={type:t.TYPE_PRIMARY,title:null,message:null,closable:!0,buttonLabel:"OK",callback:null};return i=typeof arguments[0]=="object"&&arguments[0].constructor==={}.constructor?n.extend(!0,r,arguments[0]):n.extend(!0,r,{message:arguments[0],closable:!1,buttonLabel:"OK",callback:typeof arguments[1]!="undefined"?arguments[1]:null}),new t({type:i.type,title:i.title,message:i.message,closable:i.closable,data:{callback:i.callback},onhide:function(n){!n.getData("btnClicked")&&n.isClosable()&&typeof n.getData("callback")=="function"&&n.getData("callback")(!1)},buttons:[{label:i.buttonLabel,action:function(n){n.setData("btnClicked",!0);typeof n.getData("callback")=="function"&&n.getData("callback")(!0);n.close()}}]}).open()};t.confirm=function(n,i){return new t({title:"Confirmation",message:n,closable:!1,data:{callback:i},buttons:[{label:"Cancel",action:function(n){typeof n.getData("callback")=="function"&&n.getData("callback")(!1);n.close()}},{label:"OK",cssClass:"btn-primary",action:function(n){typeof n.getData("callback")=="function"&&n.getData("callback")(!0);n.close()}}]}).open()};t.init=function(){var n=typeof module!="undefined"&&module.exports;n?module.exports=t:typeof define=="function"&&define.amd?define("bootstrap-dialog",function(){return t}):window.BootstrapDialog=t};t.init()}(window.jQuery);!function(n){var t=function(t,i){this.$form=n(t);this.options=n.extend({},n.fn.bootstrapValidator.DEFAULT_OPTIONS,i);this.$invalidFields=n([]);this.$submitButton=null;this.STATUS_NOT_VALIDATED="NOT_VALIDATED";this.STATUS_VALIDATING="VALIDATING";this.STATUS_INVALID="INVALID";this.STATUS_VALID="VALID";var r=function(){for(var n=3,t=document.createElement("div"),i=t.all||[];t.innerHTML="<!--[if gt IE "+ ++n+"]><br><![endif]-->",i[0];);return n>4?n:!n}(),u=document.createElement("div");this._changeEvent=9!==r&&"oninput"in u?"input":"keyup";this._submitIfValid=null;this._cacheFields={};this._init()};t.prototype={constructor:t,_init:function(){var t=this,i={excluded:this.$form.attr("data-bv-excluded"),trigger:this.$form.attr("data-bv-trigger"),message:this.$form.attr("data-bv-message"),container:this.$form.attr("data-bv-container"),group:this.$form.attr("data-bv-group"),submitButtons:this.$form.attr("data-bv-submitbuttons"),threshold:this.$form.attr("data-bv-threshold"),live:this.$form.attr("data-bv-live"),onSuccess:this.$form.attr("data-bv-onsuccess"),onError:this.$form.attr("data-bv-onerror"),fields:{},feedbackIcons:{valid:this.$form.attr("data-bv-feedbackicons-valid"),invalid:this.$form.attr("data-bv-feedbackicons-invalid"),validating:this.$form.attr("data-bv-feedbackicons-validating")}},r;this.$form.attr("novalidate","novalidate").addClass(this.options.elementClass).on("submit.bv",function(n){n.preventDefault();t.validate()}).on("click.bv",this.options.submitButtons,function(){t.$submitButton=n(this);t._submitIfValid=!0}).find("[name], [data-bv-field]").each(function(){var r=n(this),u=r.attr("name")||r.attr("data-bv-field"),f=t._parseOptions(r);f&&(r.attr("data-bv-field",u),i.fields[u]=n.extend({},f,i.fields[u]))});this.options=n.extend(!0,this.options,i);for(r in this.options.fields)this._initField(r);this.$form.trigger(n.Event("init.form.bv"),{bv:this,options:this.options});this.options.onSuccess&&this.$form.on("success.form.bv",function(i){n.fn.bootstrapValidator.helpers.call(t.options.onSuccess,[i])});this.options.onError&&this.$form.on("error.form.bv",function(i){n.fn.bootstrapValidator.helpers.call(t.options.onError,[i])})},_parseOptions:function(t){var i,r,o,c,u,s,e,l=t.attr("name")||t.attr("data-bv-field"),f={};for(r in n.fn.bootstrapValidator.validators)if(i=n.fn.bootstrapValidator.validators[r],o=t.attr("data-bv-"+r.toLowerCase())+"",e="function"==typeof i.enableByHtml5?i.enableByHtml5(t):null,e&&"false"!==o||e!==!0&&(""===o||"true"===o)){i.html5Attributes=n.extend({},{message:"message",onerror:"onError",onsuccess:"onSuccess"},i.html5Attributes);f[r]=n.extend({},e===!0?{}:e,f[r]);for(s in i.html5Attributes)c=i.html5Attributes[s],u=t.attr("data-bv-"+r.toLowerCase()+"-"+s),u&&("true"===u?u=!0:"false"===u&&(u=!1),f[r][c]=u)}var h={excluded:t.attr("data-bv-excluded"),feedbackIcons:t.attr("data-bv-feedbackicons"),trigger:t.attr("data-bv-trigger"),message:t.attr("data-bv-message"),container:t.attr("data-bv-container"),group:t.attr("data-bv-group"),selector:t.attr("data-bv-selector"),threshold:t.attr("data-bv-threshold"),onStatus:t.attr("data-bv-onstatus"),onSuccess:t.attr("data-bv-onsuccess"),onError:t.attr("data-bv-onerror"),validators:f},a=n.isEmptyObject(h),v=n.isEmptyObject(f);return!v||!a&&this.options.fields&&this.options.fields[l]?(h.validators=f,h):null},_initField:function(t){var i=n([]),r,v;switch(typeof t){case"object":i=t;t=t.attr("data-bv-field");break;case"string":i=this.getFieldElements(t);i.attr("data-bv-field",t)}if(null!==this.options.fields[t]&&null!==this.options.fields[t].validators){if(0===i.length)return void delete this.options.fields[t];for(r in this.options.fields[t].validators)n.fn.bootstrapValidator.validators[r]||delete this.options.fields[t].validators[r];null===this.options.fields[t].enabled&&(this.options.fields[t].enabled=!0);for(var u=this,l=i.length,e=i.attr("type"),y=1===l||"radio"===e||"checkbox"===e,b="radio"===e||"checkbox"===e||"file"===e||"SELECT"===i.eq(0).get(0).tagName?"change":this._changeEvent,p=(this.options.fields[t].trigger||this.options.trigger||b).split(" "),s=n.map(p,function(n){return n+".update.bv"}).join(" "),h=0;l>h;h++){var f=i.eq(h),w=this.options.fields[t].group||this.options.group,c=f.parents(w),o=this.options.fields[t].container||this.options.container,a=o&&"tooltip"!==o&&"popover"!==o?n(o):this._getMessageContainer(f,w);o&&"tooltip"!==o&&"popover"!==o&&a.addClass("has-error");a.find('.help-block[data-bv-validator][data-bv-for="'+t+'"]').remove();c.find('i[data-bv-icon-for="'+t+'"]').remove();f.off(s).on(s,function(){u.updateStatus(n(this),u.STATUS_NOT_VALIDATED)});f.data("bv.messages",a);for(r in this.options.fields[t].validators)f.data("bv.result."+r,this.STATUS_NOT_VALIDATED),y&&h!==l-1||n("<small/>").css("display","none").addClass("help-block").attr("data-bv-validator",r).attr("data-bv-for",t).attr("data-bv-result",this.STATUS_NOT_VALIDATED).html(this._getMessage(t,r)).appendTo(a),this.options.fields[t].validators[r].onSuccess&&f.on("success.validator.bv",function(i,f){n.fn.bootstrapValidator.helpers.call(u.options.fields[t].validators[r].onSuccess,[i,f])}),this.options.fields[t].validators[r].onError&&f.on("error.validator.bv",function(i,f){n.fn.bootstrapValidator.helpers.call(u.options.fields[t].validators[r].onError,[i,f])});this.options.fields[t].feedbackIcons!==!1&&"false"!==this.options.fields[t].feedbackIcons&&this.options.feedbackIcons&&this.options.feedbackIcons.validating&&this.options.feedbackIcons.invalid&&this.options.feedbackIcons.valid&&(!y||h===l-1)&&(c.removeClass("has-success").removeClass("has-error").addClass("has-feedback"),v=n("<i/>").css("display","none").addClass("form-control-feedback").attr("data-bv-icon-for",t).insertAfter("checkbox"===e||"radio"===e?f.parent():f),0===c.find("label").length&&v.css("top",0),0!==c.find(".input-group").length&&v.css({top:0,"z-index":100}).insertAfter(c.find(".input-group").eq(0)))}switch(this.options.fields[t].onSuccess&&i.on("success.field.bv",function(i,r){n.fn.bootstrapValidator.helpers.call(u.options.fields[t].onSuccess,[i,r])}),this.options.fields[t].onError&&i.on("error.field.bv",function(i,r){n.fn.bootstrapValidator.helpers.call(u.options.fields[t].onError,[i,r])}),this.options.fields[t].onStatus&&i.on("status.field.bv",function(i,r){n.fn.bootstrapValidator.helpers.call(u.options.fields[t].onStatus,[i,r])}),s=n.map(p,function(n){return n+".live.bv"}).join(" "),this.options.live){case"submitted":break;case"disabled":i.off(s);break;case"enabled":default:i.off(s).on(s,function(){u._exceedThreshold(n(this))&&u.validateField(n(this))})}i.trigger(n.Event("init.field.bv"),{bv:this,field:t,element:i})}},_getMessage:function(t,i){if(!(this.options.fields[t]&&n.fn.bootstrapValidator.validators[i]&&this.options.fields[t].validators&&this.options.fields[t].validators[i]))return"";var r=this.options.fields[t].validators[i];switch(!0){case!!r.message:return r.message;case!!this.options.fields[t].message:return this.options.fields[t].message;case!!n.fn.bootstrapValidator.i18n[i]:return n.fn.bootstrapValidator.i18n[i]["default"];default:return this.options.message}},_getMessageContainer:function(n,t){var r=n.parent(),i,f,u;if(r.is(t))return r;if(i=r.attr("class"),!i)return this._getMessageContainer(r,t);for(i=i.split(" "),f=i.length,u=0;f>u;u++)if(/^col-(xs|sm|md|lg)-\d+$/.test(i[u])||/^col-(xs|sm|md|lg)-offset-\d+$/.test(i[u]))return r;return this._getMessageContainer(r,t)},_submit:function(){var i=this.isValid(),r=i?"success.form.bv":"error.form.bv",t=n.Event(r);this.$form.trigger(t);this.$submitButton&&(i?this._onSuccess(t):this._onError(t))},_isExcluded:function(t){var u=t.attr("data-bv-excluded"),i=t.attr("data-bv-field")||t.attr("name"),f,r;switch(!0){case!!i&&this.options.fields&&this.options.fields[i]&&("true"===this.options.fields[i].excluded||this.options.fields[i].excluded===!0):case"true"===u:case""===u:return!0;case!!i&&this.options.fields&&this.options.fields[i]&&("false"===this.options.fields[i].excluded||this.options.fields[i].excluded===!1):case"false"===u:return!1;default:if(this.options.excluded)for("string"==typeof this.options.excluded&&(this.options.excluded=n.map(this.options.excluded.split(","),function(t){return n.trim(t)})),f=this.options.excluded.length,r=0;f>r;r++)if("string"==typeof this.options.excluded[r]&&t.is(this.options.excluded[r])||"function"==typeof this.options.excluded[r]&&this.options.excluded[r].call(this,t,this)===!0)return!0;return!1}},_exceedThreshold:function(t){var u=t.attr("data-bv-field"),i=this.options.fields[u].threshold||this.options.threshold,r;return i?(r=-1!==n.inArray(t.attr("type"),["button","checkbox","file","hidden","image","radio","reset","submit"]),r||t.val().length>=i):!0},_onError:function(t){var i,u,r,e,f;if(!t.isDefaultPrevented()){if("submitted"===this.options.live){this.options.live="enabled";i=this;for(u in this.options.fields)!function(t){var r=i.getFieldElements(t);if(r.length){var f=n(r[0]).attr("type"),o="radio"===f||"checkbox"===f||"file"===f||"SELECT"===n(r[0]).get(0).tagName?"change":i._changeEvent,s=i.options.fields[u].trigger||i.options.trigger||o,e=n.map(s.split(" "),function(n){return n+".live.bv"}).join(" ");r.off(e).on(e,function(){i._exceedThreshold(n(this))&&i.validateField(n(this))})}}(u)}r=this.$invalidFields.eq(0);r&&(f=r.parents(".tab-pane"),f&&(e=f.attr("id"))&&n('a[href="#'+e+'"][data-toggle="tab"]').tab("show"),r.focus())}},_onSuccess:function(n){n.isDefaultPrevented()||this.disableSubmitButtons(!0).defaultSubmit()},_onFieldValidated:function(t,i){var o=t.attr("data-bv-field"),s=this.options.fields[o].validators,r={},h=0,u={bv:this,field:o,element:t,validator:i},f,e;if(i)switch(t.data("bv.result."+i)){case this.STATUS_INVALID:t.trigger(n.Event("error.validator.bv"),u);break;case this.STATUS_VALID:t.trigger(n.Event("success.validator.bv"),u)}r[this.STATUS_NOT_VALIDATED]=0;r[this.STATUS_VALIDATING]=0;r[this.STATUS_INVALID]=0;r[this.STATUS_VALID]=0;for(f in s)s[f].enabled!==!1&&(h++,e=t.data("bv.result."+f),e&&r[e]++);r[this.STATUS_VALID]===h?(this.$invalidFields=this.$invalidFields.not(t),t.trigger(n.Event("success.field.bv"),u)):0===r[this.STATUS_NOT_VALIDATED]&&0===r[this.STATUS_VALIDATING]&&r[this.STATUS_INVALID]>0&&(this.$invalidFields=this.$invalidFields.add(t),t.trigger(n.Event("error.field.bv"),u))},getFieldElements:function(t){return this._cacheFields[t]||(this._cacheFields[t]=this.options.fields[t]&&this.options.fields[t].selector?n(this.options.fields[t].selector):this.$form.find('[name="'+t+'"]')),this._cacheFields[t]},disableSubmitButtons:function(n){return n?"disabled"!==this.options.live&&this.$form.find(this.options.submitButtons).attr("disabled","disabled"):this.$form.find(this.options.submitButtons).removeAttr("disabled"),this},validate:function(){if(!this.options.fields)return this;this.disableSubmitButtons(!0);for(var n in this.options.fields)this.validateField(n);return this._submit(),this},validateField:function(t){var e=n([]),r,l;switch(typeof t){case"object":e=t;t=t.attr("data-bv-field");break;case"string":e=this.getFieldElements(t)}if(this.options.fields[t]&&this.options.fields[t].enabled===!1)return this;for(var i,u,f=this,s=e.attr("type"),a="radio"===s||"checkbox"===s?1:e.length,o="radio"===s||"checkbox"===s,h=this.options.fields[t].validators,c=0;a>c;c++)if(r=e.eq(c),!this._isExcluded(r))for(i in h)r.data("bv.dfs."+i)&&r.data("bv.dfs."+i).reject(),l=r.data("bv.result."+i),l!==this.STATUS_VALID&&l!==this.STATUS_INVALID&&h[i].enabled!==!1?(r.data("bv.result."+i,this.STATUS_VALIDATING),u=n.fn.bootstrapValidator.validators[i].validate(this,r,h[i]),"object"==typeof u&&u.resolve?(this.updateStatus(o?t:r,this.STATUS_VALIDATING,i),r.data("bv.dfs."+i,u),u.done(function(n,t,i,r){n.removeData("bv.dfs."+t);r&&f.updateMessage(n,t,r);f.updateStatus(o?n.attr("data-bv-field"):n,i?f.STATUS_VALID:f.STATUS_INVALID,t);i&&f._submitIfValid===!0&&f._submit()})):"object"==typeof u&&void 0!==u.valid&&void 0!==u.message?(this.updateMessage(o?t:r,i,u.message),this.updateStatus(o?t:r,u.valid?this.STATUS_VALID:this.STATUS_INVALID,i)):"boolean"==typeof u&&this.updateStatus(o?t:r,u?this.STATUS_VALID:this.STATUS_INVALID,i)):this._onFieldValidated(r,i);return this},updateMessage:function(t,i,r){var u=n([]);switch(typeof t){case"object":u=t;t=t.attr("data-bv-field");break;case"string":u=this.getFieldElements(t)}u.each(function(){n(this).data("bv.messages").find('.help-block[data-bv-validator="'+i+'"][data-bv-for="'+t+'"]').html(r)})},updateStatus:function(t,i,r){var c=n([]),f,b,k,o,l;switch(typeof t){case"object":c=t;t=t.attr("data-bv-field");break;case"string":c=this.getFieldElements(t)}i===this.STATUS_NOT_VALIDATED&&(this._submitIfValid=!1);for(var y=this,p=c.attr("type"),d=this.options.fields[t].group||this.options.group,g="radio"===p||"checkbox"===p?1:c.length,a=0;g>a;a++)if(f=c.eq(a),!this._isExcluded(f)){var h=f.parents(d),nt=f.data("bv.messages"),s=nt.find('.help-block[data-bv-validator][data-bv-for="'+t+'"]'),v=r?s.filter('[data-bv-validator="'+r+'"]'):s,u=h.find('.form-control-feedback[data-bv-icon-for="'+t+'"]'),w=this.options.fields[t].container||this.options.container,e=null;if(r)f.data("bv.result."+r,i);else for(b in this.options.fields[t].validators)f.data("bv.result."+b,i);v.attr("data-bv-result",i);l=f.parents(".tab-pane");switch(l&&(k=l.attr("id"))&&(o=n('a[href="#'+k+'"][data-toggle="tab"]').parent()),i){case this.STATUS_VALIDATING:e=null;this.disableSubmitButtons(!0);h.removeClass("has-success").removeClass("has-error");u&&u.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).addClass(this.options.feedbackIcons.validating).show();o&&o.removeClass("bv-tab-success").removeClass("bv-tab-error");break;case this.STATUS_INVALID:e=!1;this.disableSubmitButtons(!0);h.removeClass("has-success").addClass("has-error");u&&u.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.validating).addClass(this.options.feedbackIcons.invalid).show();o&&o.removeClass("bv-tab-success").addClass("bv-tab-error");break;case this.STATUS_VALID:e=0===s.filter('[data-bv-result="'+this.STATUS_NOT_VALIDATED+'"]').length?s.filter('[data-bv-result="'+this.STATUS_VALID+'"]').length===s.length:null;null!==e&&(this.disableSubmitButtons(this.$submitButton?!this.isValid():!e),u&&u.removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).removeClass(this.options.feedbackIcons.valid).addClass(e?this.options.feedbackIcons.valid:this.options.feedbackIcons.invalid).show());h.removeClass("has-error has-success").addClass(this.isValidContainer(h)?"has-success":"has-error");o&&o.removeClass("bv-tab-success").removeClass("bv-tab-error").addClass(this.isValidContainer(l)?"bv-tab-success":"bv-tab-error");break;case this.STATUS_NOT_VALIDATED:default:e=null;this.disableSubmitButtons(!1);h.removeClass("has-success").removeClass("has-error");u&&u.removeClass(this.options.feedbackIcons.valid).removeClass(this.options.feedbackIcons.invalid).removeClass(this.options.feedbackIcons.validating).hide();o&&o.removeClass("bv-tab-success").removeClass("bv-tab-error")}switch(!0){case u&&"tooltip"===w:e===!1?u.css("cursor","pointer").tooltip("destroy").tooltip({html:!0,placement:"top",title:s.filter('[data-bv-result="'+y.STATUS_INVALID+'"]').eq(0).html()}):u.css("cursor","").tooltip("destroy");break;case u&&"popover"===w:e===!1?u.css("cursor","pointer").popover("destroy").popover({content:s.filter('[data-bv-result="'+y.STATUS_INVALID+'"]').eq(0).html(),html:!0,placement:"top",trigger:"hover click"}):u.css("cursor","").popover("destroy");break;default:i===this.STATUS_INVALID?v.show():v.hide()}f.trigger(n.Event("status.field.bv"),{bv:this,field:t,element:f,status:i});this._onFieldValidated(f,r)}return this},isValid:function(){for(var n in this.options.fields)if(!this.isValidField(n))return!1;return!0},isValidField:function(t){var i=n([]);switch(typeof t){case"object":i=t;t=t.attr("data-bv-field");break;case"string":i=this.getFieldElements(t)}if(0===i.length||null===this.options.fields[t]||this.options.fields[t].enabled===!1)return!0;for(var r,u,e,o=i.attr("type"),s="radio"===o||"checkbox"===o?1:i.length,f=0;s>f;f++)if(r=i.eq(f),!this._isExcluded(r))for(u in this.options.fields[t].validators)if(this.options.fields[t].validators[u].enabled!==!1&&(e=r.data("bv.result."+u),e!==this.STATUS_VALID))return!1;return!0},isValidContainer:function(t){var u=this,i={},e="string"==typeof t?n(t):t,f,r;if(0===e.length)return!0;e.find("[data-bv-field]").each(function(){var t=n(this),r=t.attr("data-bv-field");u._isExcluded(t)||i[r]||(i[r]=t)});for(f in i)if(r=i[f],0!==r.data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+f+'"]').filter(function(){var t=n(this).attr("data-bv-validator"),i=n(this).attr("data-bv-for");return u.options.fields[i].validators[t].enabled!==!1&&r.data("bv.result."+t)&&r.data("bv.result."+t)!==u.STATUS_VALID}).length)return!1;return!0},defaultSubmit:function(){this.$submitButton&&n("<input/>").attr("type","hidden").attr("data-bv-submit-hidden","").attr("name",this.$submitButton.attr("name")).val(this.$submitButton.val()).appendTo(this.$form);this.$form.off("submit.bv").submit()},getInvalidFields:function(){return this.$invalidFields},getSubmitButton:function(){return this.$submitButton},getMessages:function(t,i){var o=this,f=[],u=n([]),r,e,s;switch(!0){case t&&"object"==typeof t:u=t;break;case t&&"string"==typeof t:r=this.getFieldElements(t);r.length>0&&(e=r.attr("type"),u="radio"===e||"checkbox"===e?r.eq(0):r);break;default:u=this.$invalidFields}return s=i?'[data-bv-validator="'+i+'"]':"",u.each(function(){f=f.concat(n(this).data("bv.messages").find('.help-block[data-bv-for="'+n(this).attr("data-bv-field")+'"][data-bv-result="'+o.STATUS_INVALID+'"]'+s).map(function(){var t=n(this).attr("data-bv-validator"),i=n(this).attr("data-bv-for");return o.options.fields[i].validators[t].enabled===!1?"":n(this).html()}).get())}),f},getOptions:function(n,t,i){if(!n)return this.options;if("object"==typeof n&&(n=n.attr("data-bv-field")),!this.options.fields[n])return null;var r=this.options.fields[n];return t?r.validators&&r.validators[t]?i?r.validators[t][i]:r.validators[t]:null:r},updateOption:function(n,t,i,r){return"object"==typeof n&&(n=n.attr("data-bv-field")),this.options.fields[n]&&this.options.fields[n].validators[t]&&(this.options.fields[n].validators[t][i]=r,this.updateStatus(n,this.STATUS_NOT_VALIDATED,t)),this},addField:function(t,i){var r=n([]),u,f;switch(typeof t){case"object":r=t;t=t.attr("data-bv-field")||t.attr("name");break;case"string":delete this._cacheFields[t];r=this.getFieldElements(t)}r.attr("data-bv-field",t);for(var e=r.attr("type"),s="radio"===e||"checkbox"===e?1:r.length,o=0;s>o;o++)u=r.eq(o),f=this._parseOptions(u),f=null===f?i:n.extend(!0,i,f),this.options.fields[t]=n.extend(!0,this.options.fields[t],f),this._cacheFields[t]=this._cacheFields[t]?this._cacheFields[t].add(u):u,this._initField("checkbox"===e||"radio"===e?t:u);return this.disableSubmitButtons(!1),this.$form.trigger(n.Event("added.field.bv"),{field:t,element:r,options:this.options.fields[t]}),this},removeField:function(t){var i=n([]),f;switch(typeof t){case"object":i=t;t=t.attr("data-bv-field")||t.attr("name");i.attr("data-bv-field",t);break;case"string":i=this.getFieldElements(t)}if(0===i.length)return this;for(var r=i.attr("type"),e="radio"===r||"checkbox"===r?1:i.length,u=0;e>u;u++)f=i.eq(u),this.$invalidFields=this.$invalidFields.not(f),this._cacheFields[t]=this._cacheFields[t].not(f);return this._cacheFields[t]&&0!==this._cacheFields[t].length||delete this.options.fields[t],("checkbox"===r||"radio"===r)&&this._initField(t),this.disableSubmitButtons(!1),this.$form.trigger(n.Event("removed.field.bv"),{field:t,element:i}),this},resetField:function(t,i){var r=n([]),e,u,o,f;switch(typeof t){case"object":r=t;t=t.attr("data-bv-field");break;case"string":r=this.getFieldElements(t)}if(e=r.length,this.options.fields[t])for(u=0;e>u;u++)for(o in this.options.fields[t].validators)r.eq(u).removeData("bv.dfs."+o);return(this.updateStatus(t,this.STATUS_NOT_VALIDATED),i)&&(f=r.attr("type"),"radio"===f||"checkbox"===f?r.removeAttr("checked").removeAttr("selected"):r.val("")),this},resetForm:function(t){for(var i in this.options.fields)this.resetField(i,t);return this.$invalidFields=n([]),this.$submitButton=null,this.disableSubmitButtons(!1),this},revalidateField:function(n){return this.updateStatus(n,this.STATUS_NOT_VALIDATED).validateField(n),this},enableFieldValidators:function(n,t,i){var r=this.options.fields[n].validators,u;if(i&&r&&r[i]&&r[i].enabled!==t)this.options.fields[n].validators[i].enabled=t,this.updateStatus(n,this.STATUS_NOT_VALIDATED,i);else if(!i&&this.options.fields[n].enabled!==t){this.options.fields[n].enabled=t;for(u in r)this.enableFieldValidators(n,t,u)}return this},getDynamicOption:function(t,i){var r="string"==typeof t?this.getFieldElements(t):t,f=r.val(),u;return"function"==typeof i?n.fn.bootstrapValidator.helpers.call(i,[f,this,r]):"string"==typeof i?(u=this.getFieldElements(i),u.length?u.val():n.fn.bootstrapValidator.helpers.call(i,[f,this,r])):null},destroy:function(){var n,f,t,i,r,o,e,u;for(n in this.options.fields)for(f=this.getFieldElements(n),o=this.options.fields[n].container||this.options.container,e=this.options.fields[n].group||this.options.group,u=0;u<f.length;u++){if(t=f.eq(u),t.data("bv.messages").find('.help-block[data-bv-validator][data-bv-for="'+n+'"]').remove().end().end().removeData("bv.messages").parents(e).removeClass("has-feedback has-error has-success").end().off(".bv").removeAttr("data-bv-field"),r=t.parents(e).find('i[data-bv-icon-for="'+n+'"]'))switch(o){case"tooltip":r.tooltip("destroy").remove();break;case"popover":r.popover("destroy").remove();break;default:r.remove()}for(i in this.options.fields[n].validators)t.data("bv.dfs."+i)&&t.data("bv.dfs."+i).reject(),t.removeData("bv.result."+i).removeData("bv.dfs."+i)}this.disableSubmitButtons(!1);this.$form.removeClass(this.options.elementClass).off(".bv").removeData("bootstrapValidator").find("[data-bv-submit-hidden]").remove()}};n.fn.bootstrapValidator=function(i){var r=arguments;return this.each(function(){var f=n(this),u=f.data("bootstrapValidator"),e="object"==typeof i&&i;u||(u=new t(this,e),f.data("bootstrapValidator",u));"string"==typeof i&&u[i].apply(u,Array.prototype.slice.call(r,1))})};n.fn.bootstrapValidator.DEFAULT_OPTIONS={elementClass:"bv-form",message:"This value is not valid",group:".form-group",container:null,threshold:null,excluded:[":disabled",":hidden",":not(:visible)"],feedbackIcons:{valid:null,invalid:null,validating:null},submitButtons:'[type="submit"]',live:"enabled",fields:null};n.fn.bootstrapValidator.validators={};n.fn.bootstrapValidator.i18n={};n.fn.bootstrapValidator.Constructor=t;n.fn.bootstrapValidator.helpers={call:function(n,t){if("function"==typeof n)return n.apply(this,t);if("string"==typeof n){"()"===n.substring(n.length-2)&&(n=n.substring(0,n.length-2));for(var i=n.split("."),f=i.pop(),r=window,u=0;u<i.length;u++)r=r[i[u]];return r[f].apply(this,t)}},format:function(t,i){n.isArray(i)||(i=[i]);for(var r in i)t=t.replace("%s",i[r]);return t},date:function(n,t,i,r){var u;if(isNaN(n)||isNaN(t)||isNaN(i)||(i=parseInt(i,10),t=parseInt(t,10),n=parseInt(n,10),1e3>n||n>9999||0>=t||t>12)||(u=[31,28,31,30,31,30,31,31,30,31,30,31],(n%400==0||n%100!=0&&n%4==0)&&(u[1]=29),0>=i||i>u[t-1]))return!1;if(r===!0){var f=new Date,e=f.getFullYear(),o=f.getMonth(),s=f.getDate();return e>n||n===e&&o>t-1||n===e&&t-1===o&&s>i}return!0},luhn:function(n){for(var i=n.length,r=0,u=[[0,1,2,3,4,5,6,7,8,9],[0,2,4,6,8,1,3,5,7,9]],t=0;i--;)t+=u[r][parseInt(n.charAt(i),10)],r^=1;return t%10==0&&t>0},mod11And10:function(n){for(var t=5,r=n.length,i=0;r>i;i++)t=(2*(t||10)%11+parseInt(n.charAt(i),10))%10;return 1===t},mod37And36:function(n,t){t=t||"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";for(var i=t.length,f=n.length,r=Math.floor(i/2),u=0;f>u;u++)r=(2*(r||i)%(i+1)+t.indexOf(n.charAt(u)))%i;return 1===r}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.base64=n.extend(n.fn.bootstrapValidator.i18n.base64||{},{"default":"Please enter a valid base 64 encoded"});n.fn.bootstrapValidator.validators.base64={validate:function(n,t){var i=t.val();return""===i?!0:/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/.test(i)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.between=n.extend(n.fn.bootstrapValidator.i18n.between||{},{"default":"Please enter a value between %s and %s",notInclusive:"Please enter a value between %s and %s strictly"});n.fn.bootstrapValidator.validators.between={html5Attributes:{message:"message",min:"min",max:"max",inclusive:"inclusive"},enableByHtml5:function(n){return"range"===n.attr("type")?{min:n.attr("min"),max:n.attr("max")}:!1},validate:function(t,i,r){var u=i.val(),f,e;return""===u?!0:(f=n.isNumeric(r.min)?r.min:t.getDynamicOption(i,r.min),e=n.isNumeric(r.max)?r.max:t.getDynamicOption(i,r.max),u=parseFloat(u),r.inclusive===!0||void 0===r.inclusive?{valid:u>=f&&e>=u,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.between["default"],[f,e])}:{valid:u>f&&e>u,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.between.notInclusive,[f,e])})}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.callback=n.extend(n.fn.bootstrapValidator.i18n.callback||{},{"default":"Please enter a valid value"});n.fn.bootstrapValidator.validators.callback={html5Attributes:{message:"message",callback:"callback"},validate:function(t,i,r){var e=i.val(),f,u;return r.callback?(f=new n.Deferred,u=n.fn.bootstrapValidator.helpers.call(r.callback,[e,t,i]),f.resolve(i,"callback","boolean"==typeof u?u:u.valid,"object"==typeof u&&u.message?u.message:null),f):!0}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.choice=n.extend(n.fn.bootstrapValidator.i18n.choice||{},{"default":"Please enter a valid value",less:"Please choose %s options at minimum",more:"Please choose %s options at maximum",between:"Please choose %s - %s options"});n.fn.bootstrapValidator.validators.choice={html5Attributes:{message:"message",min:"min",max:"max"},validate:function(t,i,r){var o=i.is("select")?t.getFieldElements(i.attr("data-bv-field")).find("option").filter(":selected").length:t.getFieldElements(i.attr("data-bv-field")).filter(":checked").length,u=r.min?n.isNumeric(r.min)?r.min:t.getDynamicOption(i,r.min):null,f=r.max?n.isNumeric(r.max)?r.max:t.getDynamicOption(i,r.max):null,s=!0,e=r.message||n.fn.bootstrapValidator.i18n.choice["default"];switch((u&&o<parseInt(u,10)||f&&o>parseInt(f,10))&&(s=!1),!0){case!!u&&!!f:e=n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.choice.between,[parseInt(u,10),parseInt(f,10)]);break;case!!u:e=n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.choice.less,parseInt(u,10));break;case!!f:e=n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.choice.more,parseInt(f,10))}return{valid:s,message:e}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.creditCard=n.extend(n.fn.bootstrapValidator.i18n.creditCard||{},{"default":"Please enter a valid credit card number"});n.fn.bootstrapValidator.validators.creditCard={validate:function(t,i){var r=i.val(),f,e,u;if(""===r)return!0;if(/[^0-9-\s]+/.test(r)||(r=r.replace(/\D/g,""),!n.fn.bootstrapValidator.helpers.luhn(r)))return!1;u={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}};for(f in u)for(e in u[f].prefix)if(r.substr(0,u[f].prefix[e].length)===u[f].prefix[e]&&-1!==n.inArray(r.length,u[f].length))return!0;return!1}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.cusip=n.extend(n.fn.bootstrapValidator.i18n.cusip||{},{"default":"Please enter a valid CUSIP number"});n.fn.bootstrapValidator.validators.cusip={validate:function(t,i){var r=i.val(),u;if(""===r)return!0;if(r=r.toUpperCase(),!/^[0-9A-Z]{9}$/.test(r))return!1;for(var o=n.map(r.split(""),function(n){var t=n.charCodeAt(0);return t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?t-"A".charCodeAt(0)+10:n}),s=o.length,f=0,e=0;s-1>e;e++)u=parseInt(o[e],10),e%2!=0&&(u*=2),u>9&&(u-=9),f+=u;return f=(10-f%10)%10,f===o[s-1]}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.cvv=n.extend(n.fn.bootstrapValidator.i18n.cvv||{},{"default":"Please enter a valid CVV number"});n.fn.bootstrapValidator.validators.cvv={html5Attributes:{message:"message",ccfield:"creditCardField"},validate:function(t,i,r){var o=i.val(),u,f,h,e,s;if(""===o)return!0;if(!/^[0-9]{3,4}$/.test(o))return!1;if(!r.creditCardField||(u=t.getFieldElements(r.creditCardField).val(),""===u))return!0;u=u.replace(/\D/g,"");e={AMERICAN_EXPRESS:{length:[15],prefix:["34","37"]},DINERS_CLUB:{length:[14],prefix:["300","301","302","303","304","305","36"]},DINERS_CLUB_US:{length:[16],prefix:["54","55"]},DISCOVER:{length:[16],prefix:["6011","622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925","644","645","646","647","648","649","65"]},JCB:{length:[16],prefix:["3528","3529","353","354","355","356","357","358"]},LASER:{length:[16,17,18,19],prefix:["6304","6706","6771","6709"]},MAESTRO:{length:[12,13,14,15,16,17,18,19],prefix:["5018","5020","5038","6304","6759","6761","6762","6763","6764","6765","6766"]},MASTERCARD:{length:[16],prefix:["51","52","53","54","55"]},SOLO:{length:[16,18,19],prefix:["6334","6767"]},UNIONPAY:{length:[16,17,18,19],prefix:["622126","622127","622128","622129","62213","62214","62215","62216","62217","62218","62219","6222","6223","6224","6225","6226","6227","6228","62290","62291","622920","622921","622922","622923","622924","622925"]},VISA:{length:[16],prefix:["4"]}};s=null;for(f in e)for(h in e[f].prefix)if(u.substr(0,e[f].prefix[h].length)===e[f].prefix[h]&&-1!==n.inArray(u.length,e[f].length)){s=f;break}return null===s?!1:"AMERICAN_EXPRESS"===s?4===o.length:3===o.length}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.date=n.extend(n.fn.bootstrapValidator.i18n.date||{},{"default":"Please enter a valid date"});n.fn.bootstrapValidator.validators.date={html5Attributes:{message:"message",format:"format",separator:"separator"},validate:function(t,i,r){var y=i.val(),o;if(""===y)return!0;r.format=r.format||"MM/DD/YYYY";var c=r.format.split(" "),l=c[0],a=c.length>1?c[1]:null,k=c.length>2?c[2]:null,v=y.split(" "),u=v[0],f=v.length>1?v[1]:null;if(c.length!==v.length||(o=r.separator,o||(o=-1!==u.indexOf("/")?"/":-1!==u.indexOf("-")?"-":null),null===o||-1===u.indexOf(o))||(u=u.split(o),l=l.split(o),u.length!==l.length))return!1;var p=u[n.inArray("YYYY",l)],w=u[n.inArray("MM",l)],b=u[n.inArray("DD",l)];if(!p||!w||!b)return!1;var s=null,e=null,h=null;return a&&((a=a.split(":"),f=f.split(":"),a.length!==f.length)||(e=f.length>0?f[0]:null,s=f.length>1?f[1]:null,h=f.length>2?f[2]:null,h&&(h=parseInt(h,10),isNaN(h)||0>h||h>60))||e&&(e=parseInt(e,10),isNaN(e)||0>e||e>=24||k&&e>12)||s&&(s=parseInt(s,10),isNaN(s)||0>s||s>59))?!1:n.fn.bootstrapValidator.helpers.date(p,w,b)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.different=n.extend(n.fn.bootstrapValidator.i18n.different||{},{"default":"Please enter a different value"});n.fn.bootstrapValidator.validators.different={html5Attributes:{message:"message",field:"field"},validate:function(n,t,i){var u=t.val(),r;return""===u?!0:(r=n.getFieldElements(i.field),null===r?!0:u!==r.val()?(n.updateStatus(i.field,n.STATUS_VALID,"different"),!0):!1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.digits=n.extend(n.fn.bootstrapValidator.i18n.digits||{},{"default":"Please enter only digits"});n.fn.bootstrapValidator.validators.digits={validate:function(n,t){var i=t.val();return""===i?!0:/^\d+$/.test(i)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.ean=n.extend(n.fn.bootstrapValidator.i18n.ean||{},{"default":"Please enter a valid EAN number"});n.fn.bootstrapValidator.validators.ean={validate:function(n,t){var i=t.val();if(""===i)return!0;if(!/^(\d{8}|\d{12}|\d{13})$/.test(i))return!1;for(var f=i.length,r=0,e=8===f?[3,1]:[1,3],u=0;f-1>u;u++)r+=parseInt(i.charAt(u),10)*e[u%2];return r=(10-r%10)%10,r+""===i.charAt(f-1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.emailAddress=n.extend(n.fn.bootstrapValidator.i18n.emailAddress||{},{"default":"Please enter a valid email address"});n.fn.bootstrapValidator.validators.emailAddress={enableByHtml5:function(n){return"email"===n.attr("type")},validate:function(n,t){var i=t.val(),r;return""===i?!0:(r=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,r.test(i))}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.file=n.extend(n.fn.bootstrapValidator.i18n.file||{},{"default":"Please choose a valid file"});n.fn.bootstrapValidator.validators.file={html5Attributes:{extension:"extension",maxsize:"maxSize",message:"message",type:"type"},validate:function(t,i,r){var s=i.val();if(""===s)return!0;var e,o=r.extension?r.extension.toLowerCase().split(","):null,h=r.type?r.type.toLowerCase().split(","):null,c=window.File&&window.FileList&&window.FileReader;if(c){for(var f=i.get(0).files,l=f.length,u=0;l>u;u++)if(r.maxSize&&f[u].size>parseInt(r.maxSize,10)||(e=f[u].name.substr(f[u].name.lastIndexOf(".")+1),o&&-1===n.inArray(e.toLowerCase(),o))||h&&-1===n.inArray(f[u].type.toLowerCase(),h))return!1}else if(e=s.substr(s.lastIndexOf(".")+1),o&&-1===n.inArray(e.toLowerCase(),o))return!1;return!0}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.greaterThan=n.extend(n.fn.bootstrapValidator.i18n.greaterThan||{},{"default":"Please enter a value greater than or equal to %s",notInclusive:"Please enter a value greater than %s"});n.fn.bootstrapValidator.validators.greaterThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(n){var t=n.attr("min");return t?{value:t}:!1},validate:function(t,i,r){var u=i.val(),f;return""===u?!0:(f=n.isNumeric(r.value)?r.value:t.getDynamicOption(i,r.value),u=parseFloat(u),r.inclusive===!0||void 0===r.inclusive?{valid:u>=f,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.greaterThan["default"],f)}:{valid:u>f,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.greaterThan.notInclusive,f)})}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.grid=n.extend(n.fn.bootstrapValidator.i18n.grid||{},{"default":"Please enter a valid GRId number"});n.fn.bootstrapValidator.validators.grid={validate:function(t,i){var r=i.val();return""===r?!0:(r=r.toUpperCase(),/^[GRID:]*([0-9A-Z]{2})[-\s]*([0-9A-Z]{5})[-\s]*([0-9A-Z]{10})[-\s]*([0-9A-Z]{1})$/g.test(r)?(r=r.replace(/\s/g,"").replace(/-/g,""),"GRID:"===r.substr(0,5)&&(r=r.substr(5)),n.fn.bootstrapValidator.helpers.mod37And36(r)):!1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.hex=n.extend(n.fn.bootstrapValidator.i18n.hex||{},{"default":"Please enter a valid hexadecimal number"});n.fn.bootstrapValidator.validators.hex={validate:function(n,t){var i=t.val();return""===i?!0:/^[0-9a-fA-F]+$/.test(i)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.hexColor=n.extend(n.fn.bootstrapValidator.i18n.hexColor||{},{"default":"Please enter a valid hex color"});n.fn.bootstrapValidator.validators.hexColor={enableByHtml5:function(n){return"color"===n.attr("type")},validate:function(n,t){var i=t.val();return""===i?!0:/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(i)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.iban=n.extend(n.fn.bootstrapValidator.i18n.iban||{},{"default":"Please enter a valid IBAN number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid IBAN number in %s",countries:{AD:"Andorra",AE:"United Arab Emirates",AL:"Albania",AO:"Angola",AT:"Austria",AZ:"Azerbaijan",BA:"Bosnia and Herzegovina",BE:"Belgium",BF:"Burkina Faso",BG:"Bulgaria",BH:"Bahrain",BI:"Burundi",BJ:"Benin",BR:"Brazil",CH:"Switzerland",CI:"Ivory Coast",CM:"Cameroon",CR:"Costa Rica",CV:"Cape Verde",CY:"Cyprus",CZ:"Czech Republic",DE:"Germany",DK:"Denmark",DO:"Dominican Republic",DZ:"Algeria",EE:"Estonia",ES:"Spain",FI:"Finland",FO:"Faroe Islands",FR:"France",GB:"United Kingdom",GE:"Georgia",GI:"Gibraltar",GL:"Greenland",GR:"Greece",GT:"Guatemala",HR:"Croatia",HU:"Hungary",IE:"Ireland",IL:"Israel",IR:"Iran",IS:"Iceland",IT:"Italy",JO:"Jordan",KW:"Kuwait",KZ:"Kazakhstan",LB:"Lebanon",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MG:"Madagascar",MK:"Macedonia",ML:"Mali",MR:"Mauritania",MT:"Malta",MU:"Mauritius",MZ:"Mozambique",NL:"Netherlands",NO:"Norway",PK:"Pakistan",PL:"Poland",PS:"Palestinian",PT:"Portugal",QA:"Qatar",RO:"Romania",RS:"Serbia",SA:"Saudi Arabia",SE:"Sweden",SI:"Slovenia",SK:"Slovakia",SM:"San Marino",SN:"Senegal",TN:"Tunisia",TR:"Turkey",VG:"Virgin Islands, British"}});n.fn.bootstrapValidator.validators.iban={html5Attributes:{message:"message",country:"country"},REGEX:{AD:"AD[0-9]{2}[0-9]{4}[0-9]{4}[A-Z0-9]{12}",AE:"AE[0-9]{2}[0-9]{3}[0-9]{16}",AL:"AL[0-9]{2}[0-9]{8}[A-Z0-9]{16}",AO:"AO[0-9]{2}[0-9]{21}",AT:"AT[0-9]{2}[0-9]{5}[0-9]{11}",AZ:"AZ[0-9]{2}[A-Z]{4}[A-Z0-9]{20}",BA:"BA[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{8}[0-9]{2}",BE:"BE[0-9]{2}[0-9]{3}[0-9]{7}[0-9]{2}",BF:"BF[0-9]{2}[0-9]{23}",BG:"BG[0-9]{2}[A-Z]{4}[0-9]{4}[0-9]{2}[A-Z0-9]{8}",BH:"BH[0-9]{2}[A-Z]{4}[A-Z0-9]{14}",BI:"BI[0-9]{2}[0-9]{12}",BJ:"BJ[0-9]{2}[A-Z]{1}[0-9]{23}",BR:"BR[0-9]{2}[0-9]{8}[0-9]{5}[0-9]{10}[A-Z][A-Z0-9]",CH:"CH[0-9]{2}[0-9]{5}[A-Z0-9]{12}",CI:"CI[0-9]{2}[A-Z]{1}[0-9]{23}",CM:"CM[0-9]{2}[0-9]{23}",CR:"CR[0-9]{2}[0-9]{3}[0-9]{14}",CV:"CV[0-9]{2}[0-9]{21}",CY:"CY[0-9]{2}[0-9]{3}[0-9]{5}[A-Z0-9]{16}",CZ:"CZ[0-9]{2}[0-9]{20}",DE:"DE[0-9]{2}[0-9]{8}[0-9]{10}",DK:"DK[0-9]{2}[0-9]{14}",DO:"DO[0-9]{2}[A-Z0-9]{4}[0-9]{20}",DZ:"DZ[0-9]{2}[0-9]{20}",EE:"EE[0-9]{2}[0-9]{2}[0-9]{2}[0-9]{11}[0-9]{1}",ES:"ES[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{1}[0-9]{1}[0-9]{10}",FI:"FI[0-9]{2}[0-9]{6}[0-9]{7}[0-9]{1}",FO:"FO[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",FR:"FR[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",GB:"GB[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",GE:"GE[0-9]{2}[A-Z]{2}[0-9]{16}",GI:"GI[0-9]{2}[A-Z]{4}[A-Z0-9]{15}",GL:"GL[0-9]{2}[0-9]{4}[0-9]{9}[0-9]{1}",GR:"GR[0-9]{2}[0-9]{3}[0-9]{4}[A-Z0-9]{16}",GT:"GT[0-9]{2}[A-Z0-9]{4}[A-Z0-9]{20}",HR:"HR[0-9]{2}[0-9]{7}[0-9]{10}",HU:"HU[0-9]{2}[0-9]{3}[0-9]{4}[0-9]{1}[0-9]{15}[0-9]{1}",IE:"IE[0-9]{2}[A-Z]{4}[0-9]{6}[0-9]{8}",IL:"IL[0-9]{2}[0-9]{3}[0-9]{3}[0-9]{13}",IR:"IR[0-9]{2}[0-9]{22}",IS:"IS[0-9]{2}[0-9]{4}[0-9]{2}[0-9]{6}[0-9]{10}",IT:"IT[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",JO:"JO[0-9]{2}[A-Z]{4}[0-9]{4}[0]{8}[A-Z0-9]{10}",KW:"KW[0-9]{2}[A-Z]{4}[0-9]{22}",KZ:"KZ[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LB:"LB[0-9]{2}[0-9]{4}[A-Z0-9]{20}",LI:"LI[0-9]{2}[0-9]{5}[A-Z0-9]{12}",LT:"LT[0-9]{2}[0-9]{5}[0-9]{11}",LU:"LU[0-9]{2}[0-9]{3}[A-Z0-9]{13}",LV:"LV[0-9]{2}[A-Z]{4}[A-Z0-9]{13}",MC:"MC[0-9]{2}[0-9]{5}[0-9]{5}[A-Z0-9]{11}[0-9]{2}",MD:"MD[0-9]{2}[A-Z0-9]{20}",ME:"ME[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",MG:"MG[0-9]{2}[0-9]{23}",MK:"MK[0-9]{2}[0-9]{3}[A-Z0-9]{10}[0-9]{2}",ML:"ML[0-9]{2}[A-Z]{1}[0-9]{23}",MR:"MR13[0-9]{5}[0-9]{5}[0-9]{11}[0-9]{2}",MT:"MT[0-9]{2}[A-Z]{4}[0-9]{5}[A-Z0-9]{18}",MU:"MU[0-9]{2}[A-Z]{4}[0-9]{2}[0-9]{2}[0-9]{12}[0-9]{3}[A-Z]{3}",MZ:"MZ[0-9]{2}[0-9]{21}",NL:"NL[0-9]{2}[A-Z]{4}[0-9]{10}",NO:"NO[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{1}",PK:"PK[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",PL:"PL[0-9]{2}[0-9]{8}[0-9]{16}",PS:"PS[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",PT:"PT[0-9]{2}[0-9]{4}[0-9]{4}[0-9]{11}[0-9]{2}",QA:"QA[0-9]{2}[A-Z]{4}[A-Z0-9]{21}",RO:"RO[0-9]{2}[A-Z]{4}[A-Z0-9]{16}",RS:"RS[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",SA:"SA[0-9]{2}[0-9]{2}[A-Z0-9]{18}",SE:"SE[0-9]{2}[0-9]{3}[0-9]{16}[0-9]{1}",SI:"SI[0-9]{2}[0-9]{5}[0-9]{8}[0-9]{2}",SK:"SK[0-9]{2}[0-9]{4}[0-9]{6}[0-9]{10}",SM:"SM[0-9]{2}[A-Z]{1}[0-9]{5}[0-9]{5}[A-Z0-9]{12}",SN:"SN[0-9]{2}[A-Z]{1}[0-9]{23}",TN:"TN59[0-9]{2}[0-9]{3}[0-9]{13}[0-9]{2}",TR:"TR[0-9]{2}[0-9]{5}[A-Z0-9]{1}[A-Z0-9]{16}",VG:"VG[0-9]{2}[A-Z]{4}[0-9]{16}"},validate:function(t,i,r){var u=i.val(),f;if(""===u)return!0;if(u=u.replace(/[^a-zA-Z0-9]/g,"").toUpperCase(),f=r.country,f?"string"==typeof f&&this.REGEX[f]||(f=t.getDynamicOption(i,f)):f=u.substr(0,2),!this.REGEX[f])return{valid:!1,message:n.fn.bootstrapValidator.helpers.format(n.fn.bootstrapValidator.i18n.iban.countryNotSupported,f)};if(!new RegExp("^"+this.REGEX[f]+"$").test(u))return{valid:!1,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.iban.country,n.fn.bootstrapValidator.i18n.iban.countries[f])};u=u.substr(4)+u.substr(0,4);u=n.map(u.split(""),function(n){var t=n.charCodeAt(0);return t>="A".charCodeAt(0)&&t<="Z".charCodeAt(0)?t-"A".charCodeAt(0)+10:n});u=u.join("");for(var e=parseInt(u.substr(0,1),10),s=u.length,o=1;s>o;++o)e=(10*e+parseInt(u.substr(o,1),10))%97;return{valid:1===e,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.iban.country,n.fn.bootstrapValidator.i18n.iban.countries[f])}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.id=n.extend(n.fn.bootstrapValidator.i18n.id||{},{"default":"Please enter a valid identification number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid %s identification number",countries:{BA:"Bosnia and Herzegovina",BG:"Bulgarian",BR:"Brazilian",CH:"Swiss",CL:"Chilean",CZ:"Czech",DK:"Danish",EE:"Estonian",ES:"Spanish",FI:"Finnish",HR:"Croatian",IE:"Irish",IS:"Iceland",LT:"Lithuanian",LV:"Latvian",ME:"Montenegro",MK:"Macedonian",NL:"Dutch",RO:"Romanian",RS:"Serbian",SE:"Swedish",SI:"Slovenian",SK:"Slovak",SM:"San Marino",ZA:"South African"}});n.fn.bootstrapValidator.validators.id={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["BA","BG","BR","CH","CL","CZ","DK","EE","ES","FI","HR","IE","IS","LT","LV","ME","MK","NL","RO","RS","SE","SI","SK","SM","ZA"],validate:function(t,i,r){var f=i.val(),u,e;return""===f?!0:(u=r.country,u?("string"!=typeof u||-1===n.inArray(u.toUpperCase(),this.COUNTRY_CODES))&&(u=t.getDynamicOption(i,u)):u=f.substr(0,2),-1===n.inArray(u,this.COUNTRY_CODES))?{valid:!1,message:n.fn.bootstrapValidator.helpers.format(n.fn.bootstrapValidator.i18n.id.countryNotSupported,u)}:(e=["_",u.toLowerCase()].join(""),this[e](f)?!0:{valid:!1,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.id.country,n.fn.bootstrapValidator.i18n.id.countries[u.toUpperCase()])})},_validateJMBG:function(n,t){var r,u;if(!/^\d{13}$/.test(n))return!1;var f=parseInt(n.substr(0,2),10),e=parseInt(n.substr(2,2),10),i=(parseInt(n.substr(4,3),10),parseInt(n.substr(7,2),10)),o=parseInt(n.substr(12,1),10);if(f>31||e>12)return!1;for(r=0,u=0;6>u;u++)r+=(7-u)*(parseInt(n.charAt(u),10)+parseInt(n.charAt(u+6),10));if(r=11-r%11,(10===r||11===r)&&(r=0),r!==o)return!1;switch(t.toUpperCase()){case"BA":return i>=10&&19>=i;case"MK":return i>=41&&49>=i;case"ME":return i>=20&&29>=i;case"RS":return i>=70&&99>=i;case"SI":return i>=50&&59>=i;default:return!0}},_ba:function(n){return this._validateJMBG(n,"BA")},_mk:function(n){return this._validateJMBG(n,"MK")},_me:function(n){return this._validateJMBG(n,"ME")},_rs:function(n){return this._validateJMBG(n,"RS")},_si:function(n){return this._validateJMBG(n,"SI")},_bg:function(t){if(!/^\d{10}$/.test(t)&&!/^\d{6}\s\d{3}\s\d{1}$/.test(t))return!1;t=t.replace(/\s/g,"");var f=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10),e=parseInt(t.substr(4,2),10);if(i>40?(f+=100,i-=40):i>20&&(f-=100,i-=20),!n.fn.bootstrapValidator.helpers.date(f,i,e))return!1;for(var r=0,o=[2,4,8,5,10,9,7,3,6],u=0;9>u;u++)r+=parseInt(t.charAt(u),10)*o[u];return r=r%11%10,r+""===t.substr(9,1)},_br:function(n){var i,t,r;if(/^1{11}|2{11}|3{11}|4{11}|5{11}|6{11}|7{11}|8{11}|9{11}|0{11}$/.test(n)||!/^\d{11}$/.test(n)&&!/^\d{3}\.\d{3}\.\d{3}-\d{2}$/.test(n))return!1;for(n=n.replace(/\./g,"").replace(/-/g,""),i=0,t=0;9>t;t++)i+=(10-t)*parseInt(n.charAt(t),10);if(i=11-i%11,(10===i||11===i)&&(i=0),i+""!==n.charAt(9))return!1;for(r=0,t=0;10>t;t++)r+=(11-t)*parseInt(n.charAt(t),10);return r=11-r%11,(10===r||11===r)&&(r=0),r+""===n.charAt(10)},_ch:function(n){if(!/^756[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{4}[\.]{0,1}[0-9]{2}$/.test(n))return!1;n=n.replace(/\D/g,"").substr(3);for(var r=n.length,t=0,u=8===r?[3,1]:[1,3],i=0;r-1>i;i++)t+=parseInt(n.charAt(i),10)*u[i%2];return t=10-t%10,t+""===n.charAt(r-1)},_cl:function(n){if(!/^\d{7,8}[-]{0,1}[0-9K]$/i.test(n))return!1;for(n=n.replace(/\-/g,"");n.length<9;)n="0"+n;for(var t=0,r=[3,2,7,6,5,4,3,2],i=0;8>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=11-t%11,11===t?t=0:10===t&&(t="K"),t+""===n.charAt(8).toUpperCase()},_cz:function(t){var r;if(!/^\d{9,10}$/.test(t))return!1;var i=1900+parseInt(t.substr(0,2),10),u=parseInt(t.substr(2,2),10)%50%20,f=parseInt(t.substr(4,2),10);if(9===t.length){if(i>=1980&&(i-=100),i>1953)return!1}else 1954>i&&(i+=100);return n.fn.bootstrapValidator.helpers.date(i,u,f)?10===t.length?(r=parseInt(t.substr(0,9),10)%11,1985>i&&(r%=10),r+""===t.substr(9,1)):!0:!1},_dk:function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(t))return!1;t=t.replace(/-/g,"");var r=parseInt(t.substr(0,2),10),u=parseInt(t.substr(2,2),10),i=parseInt(t.substr(4,2),10);switch(!0){case-1!=="5678".indexOf(t.charAt(6))&&i>=58:i+=1800;break;case-1!=="0123".indexOf(t.charAt(6)):case-1!=="49".indexOf(t.charAt(6))&&i>=37:i+=1900;break;default:i+=2e3}return n.fn.bootstrapValidator.helpers.date(i,u,r)},_ee:function(n){return this._lt(n)},_es:function(n){var i,t;return!/^[0-9A-Z]{8}[-]{0,1}[0-9A-Z]$/.test(n)&&!/^[XYZ][-]{0,1}[0-9]{7}[-]{0,1}[0-9A-Z]$/.test(n)?!1:(n=n.replace(/-/g,""),i="XYZ".indexOf(n.charAt(0)),-1!==i&&(n=i+n.substr(1)+""),t=parseInt(n.substr(0,8),10),t="TRWAGMYFPDXBNJZSQVHLCKE"[t%23],t===n.substr(8,1))},_fi:function(t){var u,i;if(!/^[0-9]{6}[-+A][0-9]{3}[0-9ABCDEFHJKLMNPRSTUVWXY]$/.test(t))return!1;var f=parseInt(t.substr(0,2),10),e=parseInt(t.substr(2,2),10),r=parseInt(t.substr(4,2),10);return(r={"+":1800,"-":1900,A:2e3}[t.charAt(6)]+r,!n.fn.bootstrapValidator.helpers.date(r,e,f))?!1:(u=parseInt(t.substr(7,3),10),2>u)?!1:(i=t.substr(0,6)+t.substr(7,3)+"",i=parseInt(i,10),"0123456789ABCDEFHJKLMNPRSTUVWXY".charAt(i%31)===t.charAt(10))},_hr:function(t){return/^[0-9]{11}$/.test(t)?n.fn.bootstrapValidator.helpers.mod11And10(t):!1},_ie:function(n){if(!/^\d{7}[A-W][AHWTX]?$/.test(n))return!1;var t=function(n){for(;n.length<7;)n="0"+n;for(var r="WABCDEFGHIJKLMNOPQRSTUV",i=0,t=0;7>t;t++)i+=parseInt(n.charAt(t),10)*(8-t);return i+=9*r.indexOf(n.substr(7)),r[i%23]};return 9!==n.length||"A"!==n.charAt(8)&&"H"!==n.charAt(8)?n.charAt(7)===t(n.substr(0,7)):n.charAt(7)===t(n.substr(0,7)+n.substr(8)+"")},_is:function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{4}$/.test(t))return!1;t=t.replace(/-/g,"");var e=parseInt(t.substr(0,2),10),o=parseInt(t.substr(2,2),10),i=parseInt(t.substr(4,2),10),f=parseInt(t.charAt(9),10);if(i=9===f?1900+i:100*(20+f)+i,!n.fn.bootstrapValidator.helpers.date(i,o,e,!0))return!1;for(var r=0,s=[3,2,7,6,5,4,3,2],u=0;8>u;u++)r+=parseInt(t.charAt(u),10)*s[u];return r=11-r%11,r+""===t.charAt(8)},_lt:function(t){if(!/^[0-9]{11}$/.test(t))return!1;var u=parseInt(t.charAt(0),10),f=parseInt(t.substr(1,2),10),o=parseInt(t.substr(3,2),10),s=parseInt(t.substr(5,2),10),h=u%2==0?17+u/2:17+(u+1)/2;if(f=100*h+f,!n.fn.bootstrapValidator.helpers.date(f,o,s,!0))return!1;for(var i=0,e=[1,2,3,4,5,6,7,8,9,1],r=0;10>r;r++)i+=parseInt(t.charAt(r),10)*e[r];if(i%=11,10!==i)return i+""===t.charAt(10);for(i=0,e=[3,4,5,6,7,8,9,1,2,3],r=0;10>r;r++)i+=parseInt(t.charAt(r),10)*e[r];return i%=11,10===i&&(i=0),i+""===t.charAt(10)},_lv:function(t){if(!/^[0-9]{6}[-]{0,1}[0-9]{5}$/.test(t))return!1;t=t.replace(/\D/g,"");var f=parseInt(t.substr(0,2),10),e=parseInt(t.substr(2,2),10),u=parseInt(t.substr(4,2),10);if(u=u+1800+100*parseInt(t.charAt(6),10),!n.fn.bootstrapValidator.helpers.date(u,e,f,!0))return!1;for(var i=0,o=[10,5,8,4,2,1,6,3,7,9],r=0;10>r;r++)i+=parseInt(t.charAt(r),10)*o[r];return i=(i+1)%11%10,i+""===t.charAt(10)},_nl:function(n){for(;n.length<9;)n="0"+n;if(!/^[0-9]{4}[.]{0,1}[0-9]{2}[.]{0,1}[0-9]{3}$/.test(n)||(n=n.replace(/\./g,""),0===parseInt(n,10)))return!1;for(var t=0,r=n.length,i=0;r-1>i;i++)t+=(9-i)*parseInt(n.charAt(i),10);return t%=11,10===t&&(t=0),t+""===n.charAt(r-1)},_ro:function(t){var i;if(!/^[0-9]{13}$/.test(t)||(i=parseInt(t.charAt(0),10),0===i||7===i||8===i))return!1;var f=parseInt(t.substr(1,2),10),e=parseInt(t.substr(3,2),10),o=parseInt(t.substr(5,2),10);if(o>31&&e>12||9!==i&&(f={1:1900,2:1900,3:1800,4:1800,5:2e3,6:2e3}[i+""]+f,!n.fn.bootstrapValidator.helpers.date(f,e,o)))return!1;for(var r=0,h=[2,7,9,1,4,6,3,5,8,2,7,9],s=t.length,u=0;s-1>u;u++)r+=parseInt(t.charAt(u),10)*h[u];return r%=11,10===r&&(r=1),r+""===t.charAt(s-1)},_se:function(t){if(!/^[0-9]{10}$/.test(t)&&!/^[0-9]{6}[-|+][0-9]{4}$/.test(t))return!1;t=t.replace(/[^0-9]/g,"");var i=parseInt(t.substr(0,2),10)+1900,r=parseInt(t.substr(2,2),10),u=parseInt(t.substr(4,2),10);return n.fn.bootstrapValidator.helpers.date(i,r,u)?n.fn.bootstrapValidator.helpers.luhn(t):!1},_sk:function(n){return this._cz(n)},_sm:function(n){return/^\d{5}$/.test(n)},_za:function(t){if(!/^[0-9]{10}[0|1][8|9][0-9]$/.test(t))return!1;var i=parseInt(t.substr(0,2),10),r=(new Date).getFullYear()%100,u=parseInt(t.substr(2,2),10),f=parseInt(t.substr(4,2),10);return i=i>=r?i+1900:i+2e3,n.fn.bootstrapValidator.helpers.date(i,u,f)?n.fn.bootstrapValidator.helpers.luhn(t):!1}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.identical=n.extend(n.fn.bootstrapValidator.i18n.identical||{},{"default":"Please enter the same value"});n.fn.bootstrapValidator.validators.identical={html5Attributes:{message:"message",field:"field"},validate:function(n,t,i){var u=t.val(),r;return""===u?!0:(r=n.getFieldElements(i.field),null===r?!0:u===r.val()?(n.updateStatus(i.field,n.STATUS_VALID,"identical"),!0):!1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.imei=n.extend(n.fn.bootstrapValidator.i18n.imei||{},{"default":"Please enter a valid IMEI number"});n.fn.bootstrapValidator.validators.imei={validate:function(t,i){var r=i.val();if(""===r)return!0;switch(!0){case/^\d{15}$/.test(r):case/^\d{2}-\d{6}-\d{6}-\d{1}$/.test(r):case/^\d{2}\s\d{6}\s\d{6}\s\d{1}$/.test(r):return r=r.replace(/[^0-9]/g,""),n.fn.bootstrapValidator.helpers.luhn(r);case/^\d{14}$/.test(r):case/^\d{16}$/.test(r):case/^\d{2}-\d{6}-\d{6}(|-\d{2})$/.test(r):case/^\d{2}\s\d{6}\s\d{6}(|\s\d{2})$/.test(r):return!0;default:return!1}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.integer=n.extend(n.fn.bootstrapValidator.i18n.integer||{},{"default":"Please enter a valid number"});n.fn.bootstrapValidator.validators.integer={enableByHtml5:function(n){return"number"===n.attr("type")&&(void 0===n.attr("step")||n.attr("step")%1==0)},validate:function(n,t){var i=t.val();return""===i?!0:/^(?:-?(?:0|[1-9][0-9]*))$/.test(i)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.ip=n.extend(n.fn.bootstrapValidator.i18n.ip||{},{"default":"Please enter a valid IP address",ipv4:"Please enter a valid IPv4 address",ipv6:"Please enter a valid IPv6 address"});n.fn.bootstrapValidator.validators.ip={html5Attributes:{message:"message",ipv4:"ipv4",ipv6:"ipv6"},validate:function(t,i,r){var u=i.val();return""===u?!0:(r=n.extend({},{ipv4:!0,ipv6:!0},r),r.ipv4?{valid:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(u),message:r.message||n.fn.bootstrapValidator.i18n.ip.ipv4}:r.ipv6?{valid:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/.test(u),message:r.message||n.fn.bootstrapValidator.i18n.ip.ipv6}:!1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.isbn=n.extend(n.fn.bootstrapValidator.i18n.isbn||{},{"default":"Please enter a valid ISBN number"});n.fn.bootstrapValidator.validators.isbn={validate:function(n,t){var i=t.val(),s;if(""===i)return!0;switch(!0){case/^\d{9}[\dX]$/.test(i):case 13===i.length&&/^(\d+)-(\d+)-(\d+)-([\dX])$/.test(i):case 13===i.length&&/^(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(i):s="ISBN10";break;case/^(978|979)\d{9}[\dX]$/.test(i):case 17===i.length&&/^(978|979)-(\d+)-(\d+)-(\d+)-([\dX])$/.test(i):case 17===i.length&&/^(978|979)\s(\d+)\s(\d+)\s(\d+)\s([\dX])$/.test(i):s="ISBN13";break;default:return!1}i=i.replace(/[^0-9X]/gi,"");var r,u,f=i.split(""),o=f.length,e=0;switch(s){case"ISBN10":for(e=0,r=0;o-1>r;r++)e+=parseInt(f[r],10)*(10-r);return u=11-e%11,11===u?u=0:10===u&&(u="X"),u+""===f[o-1];case"ISBN13":for(e=0,r=0;o-1>r;r++)e+=r%2==0?parseInt(f[r],10):3*parseInt(f[r],10);return u=10-e%10,10===u&&(u="0"),u+""===f[o-1];default:return!1}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.isin=n.extend(n.fn.bootstrapValidator.i18n.isin||{},{"default":"Please enter a valid ISIN number"});n.fn.bootstrapValidator.validators.isin={COUNTRY_CODES:"AF|AX|AL|DZ|AS|AD|AO|AI|AQ|AG|AR|AM|AW|AU|AT|AZ|BS|BH|BD|BB|BY|BE|BZ|BJ|BM|BT|BO|BQ|BA|BW|BV|BR|IO|BN|BG|BF|BI|KH|CM|CA|CV|KY|CF|TD|CL|CN|CX|CC|CO|KM|CG|CD|CK|CR|CI|HR|CU|CW|CY|CZ|DK|DJ|DM|DO|EC|EG|SV|GQ|ER|EE|ET|FK|FO|FJ|FI|FR|GF|PF|TF|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GU|GT|GG|GN|GW|GY|HT|HM|VA|HN|HK|HU|IS|IN|ID|IR|IQ|IE|IM|IL|IT|JM|JP|JE|JO|KZ|KE|KI|KP|KR|KW|KG|LA|LV|LB|LS|LR|LY|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MH|MQ|MR|MU|YT|MX|FM|MD|MC|MN|ME|MS|MA|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NU|NF|MP|NO|OM|PK|PW|PS|PA|PG|PY|PE|PH|PN|PL|PT|PR|QA|RE|RO|RU|RW|BL|SH|KN|LC|MF|PM|VC|WS|SM|ST|SA|SN|RS|SC|SL|SG|SX|SK|SI|SB|SO|ZA|GS|SS|ES|LK|SD|SR|SJ|SZ|SE|CH|SY|TW|TJ|TZ|TH|TL|TG|TK|TO|TT|TN|TR|TM|TC|TV|UG|UA|AE|GB|US|UM|UY|UZ|VU|VE|VN|VG|VI|WF|EH|YE|ZM|ZW",validate:function(n,t){var r=t.val(),s,e,u;if(""===r)return!0;if(r=r.toUpperCase(),s=new RegExp("^("+this.COUNTRY_CODES+")[0-9A-Z]{10}$"),!s.test(r))return!1;for(var f="",h=r.length,i=0;h-1>i;i++)e=r.charCodeAt(i),f+=e>57?(e-55).toString():r.charAt(i);var o="",c=f.length,l=c%2!=0?0:1;for(i=0;c>i;i++)o+=parseInt(f[i],10)*(i%2===l?2:1)+"";for(u=0,i=0;i<o.length;i++)u+=parseInt(o.charAt(i),10);return u=(10-u%10)%10,u+""===r.charAt(h-1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.ismn=n.extend(n.fn.bootstrapValidator.i18n.ismn||{},{"default":"Please enter a valid ISMN number"});n.fn.bootstrapValidator.validators.ismn={validate:function(n,t){var i=t.val(),f;if(""===i)return!0;switch(!0){case/^M\d{9}$/.test(i):case/^M-\d{4}-\d{4}-\d{1}$/.test(i):case/^M\s\d{4}\s\d{4}\s\d{1}$/.test(i):f="ISMN10";break;case/^9790\d{9}$/.test(i):case/^979-0-\d{4}-\d{4}-\d{1}$/.test(i):case/^979\s0\s\d{4}\s\d{4}\s\d{1}$/.test(i):f="ISMN13";break;default:return!1}"ISMN10"===f&&(i="9790"+i.substr(1));i=i.replace(/[^0-9]/gi,"");for(var e=i.length,r=0,o=[1,3],u=0;e-1>u;u++)r+=parseInt(i.charAt(u),10)*o[u%2];return r=10-r%10,r+""===i.charAt(e-1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.issn=n.extend(n.fn.bootstrapValidator.i18n.issn||{},{"default":"Please enter a valid ISSN number"});n.fn.bootstrapValidator.validators.issn={validate:function(n,t){var i=t.val(),r;if(""===i)return!0;if(!/^\d{4}\-\d{3}[\dX]$/.test(i))return!1;i=i.replace(/[^0-9X]/gi,"");var u=i.split(""),e=u.length,f=0;for("X"===u[7]&&(u[7]=10),r=0;e>r;r++)f+=parseInt(u[r],10)*(8-r);return f%11==0}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.lessThan=n.extend(n.fn.bootstrapValidator.i18n.lessThan||{},{"default":"Please enter a value less than or equal to %s",notInclusive:"Please enter a value less than %s"});n.fn.bootstrapValidator.validators.lessThan={html5Attributes:{message:"message",value:"value",inclusive:"inclusive"},enableByHtml5:function(n){var t=n.attr("max");return t?{value:t}:!1},validate:function(t,i,r){var u=i.val(),f;return""===u?!0:(f=n.isNumeric(r.value)?r.value:t.getDynamicOption(i,r.value),u=parseFloat(u),r.inclusive===!0||void 0===r.inclusive?{valid:f>=u,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.lessThan["default"],f)}:{valid:f>u,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.lessThan.notInclusive,f)})}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.mac=n.extend(n.fn.bootstrapValidator.i18n.mac||{},{"default":"Please enter a valid MAC address"});n.fn.bootstrapValidator.validators.mac={validate:function(n,t){var i=t.val();return""===i?!0:/^([0-9A-F]{2}[:-]){5}([0-9A-F]{2})$/.test(i)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.notEmpty=n.extend(n.fn.bootstrapValidator.i18n.notEmpty||{},{"default":"Please enter a value"});n.fn.bootstrapValidator.validators.notEmpty={enableByHtml5:function(n){var t=n.attr("required")+"";return"required"===t||"true"===t},validate:function(t,i){var r=i.attr("type");return"radio"===r||"checkbox"===r?t.getFieldElements(i.attr("data-bv-field")).filter(":checked").length>0:""!==n.trim(i.val())}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.numeric=n.extend(n.fn.bootstrapValidator.i18n.numeric||{},{"default":"Please enter a valid float number"});n.fn.bootstrapValidator.validators.numeric={html5Attributes:{message:"message",separator:"separator"},enableByHtml5:function(n){return"number"===n.attr("type")&&void 0!==n.attr("step")&&n.attr("step")%1!=0},validate:function(n,t,i){var r=t.val(),u;return""===r?!0:(u=i.separator||".","."!==u&&(r=r.replace(u,".")),!isNaN(parseFloat(r))&&isFinite(r))}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.phone=n.extend(n.fn.bootstrapValidator.i18n.phone||{},{"default":"Please enter a valid phone number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid phone number in %s",countries:{GB:"United Kingdom",US:"USA"}});n.fn.bootstrapValidator.validators.phone={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["GB","US"],validate:function(t,i,r){var f=i.val(),u,e;if(""===f)return!0;if(u=r.country,("string"!=typeof u||-1===n.inArray(u,this.COUNTRY_CODES))&&(u=t.getDynamicOption(i,u)),!u||-1===n.inArray(u.toUpperCase(),this.COUNTRY_CODES))return{valid:!1,message:n.fn.bootstrapValidator.helpers.format(n.fn.bootstrapValidator.i18n.phone.countryNotSupported,u)};e=!0;switch(u.toUpperCase()){case"GB":f=n.trim(f);e=/^\(?(?:(?:0(?:0|11)\)?[\s-]?\(?|\+)44\)?[\s-]?\(?(?:0\)?[\s-]?\(?)?|0)(?:\d{2}\)?[\s-]?\d{4}[\s-]?\d{4}|\d{3}\)?[\s-]?\d{3}[\s-]?\d{3,4}|\d{4}\)?[\s-]?(?:\d{5}|\d{3}[\s-]?\d{3})|\d{5}\)?[\s-]?\d{4,5}|8(?:00[\s-]?11[\s-]?11|45[\s-]?46[\s-]?4\d))(?:(?:[\s-]?(?:x|ext\.?\s?|\#)\d+)?)$/.test(f);break;case"US":default:f=f.replace(/\D/g,"");e=/^(?:(1\-?)|(\+1 ?))?\(?(\d{3})[\)\-\.]?(\d{3})[\-\.]?(\d{4})$/.test(f)&&10===f.length}return{valid:e,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.phone.country,n.fn.bootstrapValidator.i18n.phone.countries[u])}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.regexp=n.extend(n.fn.bootstrapValidator.i18n.regexp||{},{"default":"Please enter a value matching the pattern"});n.fn.bootstrapValidator.validators.regexp={html5Attributes:{message:"message",regexp:"regexp"},enableByHtml5:function(n){var t=n.attr("pattern");return t?{regexp:t}:!1},validate:function(n,t,i){var r=t.val(),u;return""===r?!0:(u="string"==typeof i.regexp?new RegExp(i.regexp):i.regexp,u.test(r))}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.remote=n.extend(n.fn.bootstrapValidator.i18n.remote||{},{"default":"Please enter a valid value"});n.fn.bootstrapValidator.validators.remote={html5Attributes:{message:"message",url:"url",name:"name"},validate:function(t,i,r){var s=i.val(),e,o;if(""===s)return!0;var h=i.attr("data-bv-field"),u=r.data||{},f=r.url,c=r.type||"POST";return"function"==typeof u&&(u=u.call(this,t)),"function"==typeof f&&(f=f.call(this,t)),u[r.name||h]=s,e=new n.Deferred,o=n.ajax({type:c,url:f,dataType:"json",data:u}),o.then(function(n){e.resolve(i,"remote",n.valid===!0||"true"===n.valid,n.message?n.message:null)}),e.fail(function(){o.abort()}),e}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.rtn=n.extend(n.fn.bootstrapValidator.i18n.rtn||{},{"default":"Please enter a valid RTN number"});n.fn.bootstrapValidator.validators.rtn={validate:function(n,t){var i=t.val(),u,r;if(""===i)return!0;if(!/^\d{9}$/.test(i))return!1;for(u=0,r=0;r<i.length;r+=3)u+=3*parseInt(i.charAt(r),10)+7*parseInt(i.charAt(r+1),10)+parseInt(i.charAt(r+2),10);return 0!==u&&u%10==0}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.sedol=n.extend(n.fn.bootstrapValidator.i18n.sedol||{},{"default":"Please enter a valid SEDOL number"});n.fn.bootstrapValidator.validators.sedol={validate:function(n,t){var i=t.val();if(""===i)return!0;if(i=i.toUpperCase(),!/^[0-9A-Z]{7}$/.test(i))return!1;for(var r=0,e=[1,3,1,7,3,9,1],f=i.length,u=0;f-1>u;u++)r+=e[u]*parseInt(i.charAt(u),36);return r=(10-r%10)%10,r+""===i.charAt(f-1)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.siren=n.extend(n.fn.bootstrapValidator.i18n.siren||{},{"default":"Please enter a valid SIREN number"});n.fn.bootstrapValidator.validators.siren={validate:function(t,i){var r=i.val();return""===r?!0:/^\d{9}$/.test(r)?n.fn.bootstrapValidator.helpers.luhn(r):!1}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.siret=n.extend(n.fn.bootstrapValidator.i18n.siret||{},{"default":"Please enter a valid SIRET number"});n.fn.bootstrapValidator.validators.siret={validate:function(n,t){var u=t.val();if(""===u)return!0;for(var i,f=0,e=u.length,r=0;e>r;r++)i=parseInt(u.charAt(r),10),r%2==0&&(i=2*i,i>9&&(i-=9)),f+=i;return f%10==0}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.step=n.extend(n.fn.bootstrapValidator.i18n.step||{},{"default":"Please enter a valid step of %s"});n.fn.bootstrapValidator.validators.step={html5Attributes:{message:"message",base:"baseValue",step:"step"},validate:function(t,i,r){var u=i.val();if(""===u)return!0;if(r=n.extend({},{baseValue:0,step:1},r),u=parseFloat(u),!n.isNumeric(u))return!1;var e=function(n,t){var i=Math.pow(10,t),r,u;return n*=i,r=n>0|-(0>n),u=n%1==.5*r,u?(Math.floor(n)+(r>0))/i:Math.round(n)/i},o=function(n,t){if(0===t)return 1;var i=(n+"").split("."),r=(t+"").split("."),u=(1===i.length?0:i[1].length)+(1===r.length?0:r[1].length);return e(n-t*Math.floor(n/t),u)},f=o(u-r.baseValue,r.step);return{valid:0===f||f===r.step,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.step["default"],[r.step])}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.stringCase=n.extend(n.fn.bootstrapValidator.i18n.stringCase||{},{"default":"Please enter only lowercase characters",upper:"Please enter only uppercase characters"});n.fn.bootstrapValidator.validators.stringCase={html5Attributes:{message:"message","case":"case"},validate:function(t,i,r){var u=i.val(),f;return""===u?!0:(f=(r["case"]||"lower").toLowerCase(),{valid:"upper"===f?u===u.toUpperCase():u===u.toLowerCase(),message:r.message||("upper"===f?n.fn.bootstrapValidator.i18n.stringCase.upper:n.fn.bootstrapValidator.i18n.stringCase["default"])})}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.stringLength=n.extend(n.fn.bootstrapValidator.i18n.stringLength||{},{"default":"Please enter a value with valid length",less:"Please enter less than %s characters",more:"Please enter more than %s characters",between:"Please enter value between %s and %s characters long"});n.fn.bootstrapValidator.validators.stringLength={html5Attributes:{message:"message",min:"min",max:"max"},enableByHtml5:function(n){var t=n.attr("maxlength");return t?{max:parseInt(t,10)}:!1},validate:function(t,i,r){var o=i.val();if(""===o)return!0;var u=n.isNumeric(r.min)?r.min:t.getDynamicOption(i,r.min),f=n.isNumeric(r.max)?r.max:t.getDynamicOption(i,r.max),s=o.length,h=!0,e=r.message||n.fn.bootstrapValidator.i18n.stringLength["default"];switch((u&&s<parseInt(u,10)||f&&s>parseInt(f,10))&&(h=!1),!0){case!!u&&!!f:e=n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.stringLength.between,[parseInt(u,10),parseInt(f,10)]);break;case!!u:e=n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.stringLength.more,parseInt(u,10));break;case!!f:e=n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.stringLength.less,parseInt(f,10))}return{valid:h,message:e}}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.uri=n.extend(n.fn.bootstrapValidator.i18n.uri||{},{"default":"Please enter a valid URI"});n.fn.bootstrapValidator.validators.uri={html5Attributes:{message:"message",allowlocal:"allowLocal"},enableByHtml5:function(n){return"url"===n.attr("type")},validate:function(n,t,i){var r=t.val(),u,f;return""===r?!0:(u=i.allowLocal===!0||"true"===i.allowLocal,f=new RegExp("^(?:(?:https?|ftp)://)(?:\\S+(?::\\S*)?@)?(?:"+(u?"":"(?!(?: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"),f.test(r))}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.uuid=n.extend(n.fn.bootstrapValidator.i18n.uuid||{},{"default":"Please enter a valid UUID number",version:"Please enter a valid UUID version %s number"});n.fn.bootstrapValidator.validators.uuid={html5Attributes:{message:"message",version:"version"},validate:function(t,i,r){var e=i.val(),u,f;return""===e?!0:(u={3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,all:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i},f=r.version?r.version+"":"all",{valid:null===u[f]?!0:u[f].test(e),message:r.version?n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.uuid.version,r.version):r.message||n.fn.bootstrapValidator.i18n.uuid["default"]})}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.vat=n.extend(n.fn.bootstrapValidator.i18n.vat||{},{"default":"Please enter a valid VAT number",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid %s VAT number",countries:{AT:"Austrian",BE:"Belgian",BG:"Bulgarian",CH:"Swiss",CY:"Cypriot",CZ:"Czech",DE:"German",DK:"Danish",EE:"Estonian",ES:"Spanish",FI:"Finnish",FR:"French",GB:"United Kingdom",GR:"Greek",EL:"Greek",HU:"Hungarian",HR:"Croatian",IE:"Irish",IT:"Italian",LT:"Lithuanian",LU:"Luxembourg",LV:"Latvian",MT:"Maltese",NL:"Dutch",NO:"Norwegian",PL:"Polish",PT:"Portuguese",RO:"Romanian",RU:"Russian",RS:"Serbian",SE:"Swedish",SI:"Slovenian",SK:"Slovak"}});n.fn.bootstrapValidator.validators.vat={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["AT","BE","BG","HR","CY","CZ","DK","EE","FI","FR","DE","GR","EL","HU","IE","IT","LV","LT","LU","MT","NL","NO","PL","PT","RO","RU","RS","SK","SI","ES","SE","CH","GB"],validate:function(t,i,r){var f=i.val(),u,e;return""===f?!0:(u=r.country,u?("string"!=typeof u||-1===n.inArray(u.toUpperCase(),this.COUNTRY_CODES))&&(u=t.getDynamicOption(i,u)):u=f.substr(0,2),-1===n.inArray(u,this.COUNTRY_CODES))?{valid:!1,message:n.fn.bootstrapValidator.helpers.format(n.fn.bootstrapValidator.i18n.vat.countryNotSupported,u)}:(e=["_",u.toLowerCase()].join(""),this[e](f)?!0:{valid:!1,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.vat.country,n.fn.bootstrapValidator.i18n.vat.countries[u.toUpperCase()])})},_at:function(n){if(!/^ATU[0-9]{8}$/.test(n))return!1;n=n.substr(3);for(var t=0,u=[1,2,1,2,1,2,1],i=0,r=0;7>r;r++)i=parseInt(n.charAt(r),10)*u[r],i>9&&(i=Math.floor(i/10)+i%10),t+=i;return t=10-(t+4)%10,10===t&&(t=0),t+""===n.substr(7,1)},_be:function(n){if(!/^BE[0]{0,1}[0-9]{9}$/.test(n)||(n=n.substr(2),9===n.length&&(n="0"+n),"0"===n.substr(1,1)))return!1;var t=parseInt(n.substr(0,8),10)+parseInt(n.substr(8,2),10);return t%97==0},_bg:function(t){var r,i;if(!/^BG[0-9]{9,10}$/.test(t))return!1;if(t=t.substr(2),r=0,i=0,9===t.length){for(i=0;8>i;i++)r+=parseInt(t.charAt(i),10)*(i+1);if(r%=11,10===r)for(r=0,i=0;8>i;i++)r+=parseInt(t.charAt(i),10)*(i+3);return r%=10,r+""===t.substr(8)}if(10===t.length){var u=function(t){var f=parseInt(t.substr(0,2),10)+1900,i=parseInt(t.substr(2,2),10),e=parseInt(t.substr(4,2),10);if(i>40?(f+=100,i-=40):i>20&&(f-=100,i-=20),!n.fn.bootstrapValidator.helpers.date(f,i,e))return!1;for(var r=0,o=[2,4,8,5,10,9,7,3,6],u=0;9>u;u++)r+=parseInt(t.charAt(u),10)*o[u];return r=r%11%10,r+""===t.substr(9,1)},f=function(n){for(var i=0,r=[21,19,17,13,11,9,7,3,1],t=0;9>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%=10,i+""===n.substr(9,1)},e=function(n){for(var t=0,r=[4,3,2,7,6,5,4,3,2],i=0;9>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=11-t%11,10===t?!1:(11===t&&(t=0),t+""===n.substr(9,1))};return u(t)||f(t)||e(t)}return!1},_ch:function(n){if(!/^CHE[0-9]{9}(MWST)?$/.test(n))return!1;n=n.substr(3);for(var t=0,r=[5,4,3,2,7,6,5,4],i=0;8>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=11-t%11,10===t?!1:(11===t&&(t=0),t+""===n.substr(8,1))},_cy:function(n){var r;if(!/^CY[0-5|9]{1}[0-9]{7}[A-Z]{1}$/.test(n)||(n=n.substr(2),"12"===n.substr(0,2)))return!1;for(var t=0,u={0:1,1:0,2:5,3:7,4:9,5:13,6:15,7:17,8:19,9:21},i=0;8>i;i++)r=parseInt(n.charAt(i),10),i%2==0&&(r=u[r+""]),t+=r;return t="ABCDEFGHIJKLMNOPQRSTUVWXYZ"[t%26],t+""===n.substr(8,1)},_cz:function(t){var i,r,f;if(!/^CZ[0-9]{8,10}$/.test(t))return!1;if(t=t.substr(2),i=0,r=0,8===t.length){if(t.charAt(0)+""=="9")return!1;for(i=0,r=0;7>r;r++)i+=parseInt(t.charAt(r),10)*(8-r);return i=11-i%11,10===i&&(i=0),11===i&&(i=1),i+""===t.substr(7,1)}if(9===t.length&&t.charAt(0)+""=="6"){for(i=0,r=0;7>r;r++)i+=parseInt(t.charAt(r+1),10)*(8-r);return i=11-i%11,10===i&&(i=0),11===i&&(i=1),i=[8,7,6,5,4,3,2,1,0,9,10][i-1],i+""===t.substr(8,1)}if(9===t.length||10===t.length){var u=1900+parseInt(t.substr(0,2),10),e=parseInt(t.substr(2,2),10)%50%20,o=parseInt(t.substr(4,2),10);if(9===t.length){if(u>=1980&&(u-=100),u>1953)return!1}else 1954>u&&(u+=100);return n.fn.bootstrapValidator.helpers.date(u,e,o)?10===t.length?(f=parseInt(t.substr(0,9),10)%11,1985>u&&(f%=10),f+""===t.substr(9,1)):!0:!1}return!1},_de:function(t){return/^DE[0-9]{9}$/.test(t)?(t=t.substr(2),n.fn.bootstrapValidator.helpers.mod11And10(t)):!1},_dk:function(n){if(!/^DK[0-9]{8}$/.test(n))return!1;n=n.substr(2);for(var i=0,r=[2,7,6,5,4,3,2,1],t=0;8>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%11==0},_ee:function(n){if(!/^EE[0-9]{9}$/.test(n))return!1;n=n.substr(2);for(var i=0,r=[3,7,1,3,7,1,3,7,1],t=0;9>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%10==0},_es:function(n){if(!/^ES[0-9A-Z][0-9]{7}[0-9A-Z]$/.test(n))return!1;n=n.substr(2);var i=function(n){var t=parseInt(n.substr(0,8),10);return t="TRWAGMYFPDXBNJZSQVHLCKE"[t%23],t+""===n.substr(8,1)},r=function(n){var t=["XYZ".indexOf(n.charAt(0)),n.substr(1)].join("");return t=parseInt(t,10),t="TRWAGMYFPDXBNJZSQVHLCKE"[t%23],t+""===n.substr(8,1)},u=function(n){var r,f=n.charAt(0);if(-1!=="KLM".indexOf(f))return r=parseInt(n.substr(1,8),10),r="TRWAGMYFPDXBNJZSQVHLCKE"[r%23],r+""===n.substr(8,1);if(-1!=="ABCDEFGHJNPQRSUVW".indexOf(f)){for(var i=0,e=[2,1,2,1,2,1,2],t=0,u=0;7>u;u++)t=parseInt(n.charAt(u+1),10)*e[u],t>9&&(t=Math.floor(t/10)+t%10),i+=t;return i=10-i%10,i+""===n.substr(8,1)||"JABCDEFGHI"[i]===n.substr(8,1)}return!1},t=n.charAt(0);return/^[0-9]$/.test(t)?i(n):/^[XYZ]$/.test(t)?r(n):u(n)},_fi:function(n){if(!/^FI[0-9]{8}$/.test(n))return!1;n=n.substr(2);for(var i=0,r=[7,9,10,5,8,4,2,1],t=0;8>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%11==0},_fr:function(t){if(!/^FR[0-9A-Z]{2}[0-9]{9}$/.test(t)||(t=t.substr(2),!n.fn.bootstrapValidator.helpers.luhn(t.substr(2))))return!1;if(/^[0-9]{2}$/.test(t.substr(0,2)))return t.substr(0,2)===parseInt(t.substr(2)+"12",10)%97+"";var r,i="0123456789ABCDEFGHJKLMNPQRSTUVWXYZ";return r=/^[0-9]{1}$/.test(t.charAt(0))?24*i.indexOf(t.charAt(0))+i.indexOf(t.charAt(1))-10:34*i.indexOf(t.charAt(0))+i.indexOf(t.charAt(1))-100,(parseInt(t.substr(2),10)+1+Math.floor(r/11))%11==r%11},_gb:function(n){var i,u,f;if(!(/^GB[0-9]{9}$/.test(n)||/^GB[0-9]{12}$/.test(n)||/^GBGD[0-9]{3}$/.test(n)||/^GBHA[0-9]{3}$/.test(n)||/^GB(GD|HA)8888[0-9]{5}$/.test(n)))return!1;if(n=n.substr(2),i=n.length,5===i)return u=n.substr(0,2),f=parseInt(n.substr(2),10),"GD"===u&&500>f||"HA"===u&&f>=500;if(11===i&&("GD8888"===n.substr(0,6)||"HA8888"===n.substr(0,6)))return"GD"===n.substr(0,2)&&parseInt(n.substr(6,3),10)>=500||"HA"===n.substr(0,2)&&parseInt(n.substr(6,3),10)<500?!1:parseInt(n.substr(6,3),10)%97===parseInt(n.substr(9,2),10);if(9===i||12===i){for(var t=0,e=[8,7,6,5,4,3,2,10,1],r=0;9>r;r++)t+=parseInt(n.charAt(r),10)*e[r];return t%=97,parseInt(n.substr(0,3),10)>=100?0===t||42===t||55===t:0===t}return!0},_gr:function(n){if(!/^GR[0-9]{9}$/.test(n))return!1;n=n.substr(2);8===n.length&&(n="0"+n);for(var t=0,r=[256,128,64,32,16,8,4,2],i=0;8>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=t%11%10,t+""===n.substr(8,1)},_el:function(n){return/^EL[0-9]{9}$/.test(n)?(n="GR"+n.substr(2),this._gr(n)):!1},_hu:function(n){if(!/^HU[0-9]{8}$/.test(n))return!1;n=n.substr(2);for(var i=0,r=[9,7,3,1,9,7,3,1],t=0;8>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%10==0},_hr:function(t){return/^HR[0-9]{11}$/.test(t)?(t=t.substr(2),n.fn.bootstrapValidator.helpers.mod11And10(t)):!1},_ie:function(n){if(!/^IE[0-9]{1}[0-9A-Z\*\+]{1}[0-9]{5}[A-Z]{1,2}$/.test(n))return!1;n=n.substr(2);var t=function(n){for(;n.length<7;)n="0"+n;for(var r="WABCDEFGHIJKLMNOPQRSTUV",i=0,t=0;7>t;t++)i+=parseInt(n.charAt(t),10)*(8-t);return i+=9*r.indexOf(n.substr(7)),r[i%23]};return/^[0-9]+$/.test(n.substr(0,7))?n.charAt(7)===t(n.substr(0,7)+n.substr(8)+""):-1!=="ABCDEFGHIJKLMNOPQRSTUVWXYZ+*".indexOf(n.charAt(1))?n.charAt(7)===t(n.substr(2,5)+n.substr(0,1)+""):!0},_it:function(t){if(!/^IT[0-9]{11}$/.test(t)||(t=t.substr(2),0===parseInt(t.substr(0,7),10)))return!1;var i=parseInt(t.substr(7,3),10);return 1>i||i>201&&999!==i&&888!==i?!1:n.fn.bootstrapValidator.helpers.luhn(t)},_lt:function(n){var t,u,i,r;if(!/^LT([0-9]{7}1[0-9]{1}|[0-9]{10}1[0-9]{1})$/.test(n))return!1;for(n=n.substr(2),u=n.length,i=0,t=0;u-1>t;t++)i+=parseInt(n.charAt(t),10)*(1+t%9);if(r=i%11,10===r)for(i=0,t=0;u-1>t;t++)i+=parseInt(n.charAt(t),10)*(1+(t+2)%9);return r=r%11%10,r+""===n.charAt(u-1)},_lu:function(n){return/^LU[0-9]{8}$/.test(n)?(n=n.substr(2),parseInt(n.substr(0,6),10)%89+""===n.substr(6,2)):!1},_lv:function(t){if(!/^LV[0-9]{11}$/.test(t))return!1;t=t.substr(2);var i,o=parseInt(t.charAt(0),10),r=0,u=[],f=t.length;if(o>3){for(r=0,u=[9,1,4,8,3,10,2,5,7,6,1],i=0;f>i;i++)r+=parseInt(t.charAt(i),10)*u[i];return r%=11,3===r}var s=parseInt(t.substr(0,2),10),h=parseInt(t.substr(2,2),10),e=parseInt(t.substr(4,2),10);if(e=e+1800+100*parseInt(t.charAt(6),10),!n.fn.bootstrapValidator.helpers.date(e,h,s))return!1;for(r=0,u=[10,5,8,4,2,1,6,3,7,9],i=0;f-1>i;i++)r+=parseInt(t.charAt(i),10)*u[i];return r=(r+1)%11%10,r+""===t.charAt(f-1)},_mt:function(n){if(!/^MT[0-9]{8}$/.test(n))return!1;n=n.substr(2);for(var i=0,r=[3,4,6,7,8,9,10,1],t=0;8>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%37==0},_nl:function(n){if(!/^NL[0-9]{9}B[0-9]{2}$/.test(n))return!1;n=n.substr(2);for(var t=0,r=[9,8,7,6,5,4,3,2],i=0;8>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t%=11,t>9&&(t=0),t+""===n.substr(8,1)},_no:function(n){if(!/^NO[0-9]{9}$/.test(n))return!1;n=n.substr(2);for(var t=0,r=[3,2,7,6,5,4,3,2],i=0;8>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=11-t%11,11===t&&(t=0),t+""===n.substr(8,1)},_pl:function(n){if(!/^PL[0-9]{10}$/.test(n))return!1;n=n.substr(2);for(var i=0,r=[6,5,7,2,3,4,5,6,7,-1],t=0;10>t;t++)i+=parseInt(n.charAt(t),10)*r[t];return i%11==0},_pt:function(n){if(!/^PT[0-9]{9}$/.test(n))return!1;n=n.substr(2);for(var t=0,r=[9,8,7,6,5,4,3,2],i=0;8>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=11-t%11,t>9&&(t=0),t+""===n.substr(8,1)},_ro:function(n){if(!/^RO[1-9][0-9]{1,9}$/.test(n))return!1;n=n.substr(2);for(var r=n.length,u=[7,5,3,2,1,7,5,3,2].slice(10-r),t=0,i=0;r-1>i;i++)t+=parseInt(n.charAt(i),10)*u[i];return t=10*t%11%10,t+""===n.substr(r-1,1)},_ru:function(n){var t,i,f;if(!/^RU([0-9]{9}|[0-9]{12})$/.test(n))return!1;if(n=n.substr(2),t=0,10===n.length){for(i=0,f=[2,4,10,3,5,9,4,6,8,0],t=0;10>t;t++)i+=parseInt(n.charAt(t),10)*f[t];return i%=11,i>9&&(i%=10),i+""===n.substr(9,1)}if(12===n.length){var r=0,e=[7,2,4,10,3,5,9,4,6,8,0],u=0,o=[3,7,2,4,10,3,5,9,4,6,8,0];for(t=0;11>t;t++)r+=parseInt(n.charAt(t),10)*e[t],u+=parseInt(n.charAt(t),10)*o[t];return r%=11,r>9&&(r%=10),u%=11,u>9&&(u%=10),r+""===n.substr(10,1)&&u+""===n.substr(11,1)}return!1},_rs:function(n){if(!/^RS[0-9]{9}$/.test(n))return!1;n=n.substr(2);for(var i=10,t=0,r=0;8>r;r++)t=(parseInt(n.charAt(r),10)+i)%10,0===t&&(t=10),i=2*t%11;return(i+parseInt(n.substr(8,1),10))%10==1},_se:function(t){return/^SE[0-9]{10}01$/.test(t)?(t=t.substr(2,10),n.fn.bootstrapValidator.helpers.luhn(t)):!1},_si:function(n){if(!/^SI[0-9]{8}$/.test(n))return!1;n=n.substr(2);for(var t=0,r=[8,7,6,5,4,3,2],i=0;7>i;i++)t+=parseInt(n.charAt(i),10)*r[i];return t=11-t%11,10===t&&(t=0),t+""===n.substr(7,1)},_sk:function(n){return/^SK[1-9][0-9][(2-4)|(6-9)][0-9]{7}$/.test(n)?parseInt(n.substr(2),10)%11==0:!1}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.vin=n.extend(n.fn.bootstrapValidator.i18n.vin||{},{"default":"Please enter a valid VIN number"});n.fn.bootstrapValidator.validators.vin={validate:function(n,t){var i=t.val(),u;if(""===i)return!0;if(!/^[a-hj-npr-z0-9]{8}[0-9xX][a-hj-npr-z0-9]{8}$/i.test(i))return!1;i=i.toUpperCase();for(var e={A:1,B:2,C:3,D:4,E:5,F:6,G:7,H:8,J:1,K:2,L:3,M:4,N:5,P:7,R:9,S:2,T:3,U:4,V:5,W:6,X:7,Y:8,Z:9,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,0:0},o=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],f=0,s=i.length,r=0;s>r;r++)f+=e[i.charAt(r)+""]*o[r];return u=f%11,10===u&&(u="X"),u+""===i.charAt(8)}}}(window.jQuery),function(n){n.fn.bootstrapValidator.i18n.zipCode=n.extend(n.fn.bootstrapValidator.i18n.zipCode||{},{"default":"Please enter a valid zip code",countryNotSupported:"The country code %s is not supported",country:"Please enter a valid %s",countries:{CA:"Canadian postal code",DK:"Danish postal code",GB:"United Kingdom postal code",IT:"Italian postal code",NL:"Dutch postal code",SE:"Swiss postal code",SG:"Singapore postal code",US:"US zip code"}});n.fn.bootstrapValidator.validators.zipCode={html5Attributes:{message:"message",country:"country"},COUNTRY_CODES:["CA","DK","GB","IT","NL","SE","SG","US"],validate:function(t,i,r){var e=i.val(),u,f;if(""===e||!r.country)return!0;if(u=r.country,("string"!=typeof u||-1===n.inArray(u,this.COUNTRY_CODES))&&(u=t.getDynamicOption(i,u)),!u||-1===n.inArray(u.toUpperCase(),this.COUNTRY_CODES))return{valid:!1,message:n.fn.bootstrapValidator.helpers.format(n.fn.bootstrapValidator.i18n.zipCode.countryNotSupported,u)};f=!1;switch(u=u.toUpperCase()){case"CA":f=/^(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|X|Y){1}[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}\s?[0-9]{1}(?:A|B|C|E|G|H|J|K|L|M|N|P|R|S|T|V|W|X|Y|Z){1}[0-9]{1}$/i.test(e);break;case"DK":f=/^(DK(-|\s)?)?\d{4}$/i.test(e);break;case"GB":f=this._gb(e);break;case"IT":f=/^(I-|IT-)?\d{5}$/i.test(e);break;case"NL":f=/^[1-9][0-9]{3} ?(?!sa|sd|ss)[a-z]{2}$/i.test(e);break;case"SE":f=/^(S-)?\d{3}\s?\d{2}$/i.test(e);break;case"SG":f=/^([0][1-9]|[1-6][0-9]|[7]([0-3]|[5-9])|[8][0-2])(\d{4})$/i.test(e);break;case"US":default:f=/^\d{4,5}([\-]?\d{4})?$/.test(e)}return{valid:f,message:n.fn.bootstrapValidator.helpers.format(r.message||n.fn.bootstrapValidator.i18n.zipCode.country,n.fn.bootstrapValidator.i18n.zipCode.countries[u])}},_gb:function(n){for(var t="[ABCDEFGHIJKLMNOPRSTUWYZ]",u="[ABCDEFGHKLMNOPQRSTUVWXY]",i="[ABDEFGHJLNPQRSTUWXYZ]",f=[new RegExp("^("+t+"{1}"+u+"?[0-9]{1,2})(\\s*)([0-9]{1}"+i+"{2})$","i"),new RegExp("^("+t+"{1}[0-9]{1}[ABCDEFGHJKPMNRSTUVWXY]{1})(\\s*)([0-9]{1}"+i+"{2})$","i"),new RegExp("^("+t+"{1}"+u+"{1}?[0-9]{1}[ABEHMNPRVWXY]{1})(\\s*)([0-9]{1}"+i+"{2})$","i"),new RegExp("^(BF1)(\\s*)([0-6]{1}[ABDEFGHJLNPQRST]{1}[ABDEFGHJLNPQRSTUWZYZ]{1})$","i"),/^(GIR)(\s*)(0AA)$/i,/^(BFPO)(\s*)([0-9]{1,4})$/i,/^(BFPO)(\s*)(c\/o\s*[0-9]{1,3})$/i,/^([A-Z]{4})(\s*)(1ZZ)$/i,/^(AI-2640)$/i],r=0;r<f.length;r++)if(f[r].test(n))return!0;return!1}}}(window.jQuery)