1/*1790708748000*/ 2function cookie_encode(t){return encodeURIComponent(t).replace(/(%7B|%7D|%3A|%22|%23|%5B|%5D)/g,(function(t){return decodeURIComponent(t)}))}!function(t){t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",(function(){i=!0}));return setTimeout((function(){i||t(n).trigger(t.support.transition.end)}),e),this},t((function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})}))}(jQuery),function(t){var e='[data-dismiss="alert"]',i=function(i){t(i).on("click",e,this.close)};i.VERSION="3.3.4",i.TRANSITION_DURATION=150,i.prototype.close=function(e){var n=t(this),s=n.attr("data-target");s||(s=(s=n.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,""));var o=t(s);function a(){o.detach().trigger("closed.bs.alert").remove()}
vendor: 4,556 bytes, line 2
2e&&e.preventDefault(),o.length||(o=n.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(i.TRANSITION_DURATION):a())};var n=t.fn.alert;t.fn.alert=function(e){return this.each((function(){var n=t(this),s=n.data("bs.alert");s||n.data("bs.alert",s=new i(this)),"string"==typeof e&&s[e].call(n)}))},t.fn.alert.Constructor=i,t.fn.alert.noConflict=function(){return t.fn.alert=n,this},t(document).on("click.bs.alert.data-api",e,i.prototype.close)}(jQuery),function(t){var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.isLoading=!1};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof i&&i;s||n.data("bs.button",s=new e(this,o)),"toggle"==i?s.toggle():i&&s.setState(i)}))}e.VERSION="3.3.4",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy((function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))}),this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active"));t&&this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=i,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var n=t(e.target);n.hasClass("btn")||(n=n.closest(".btn")),i.call(n,"toggle"),e.preventDefault()})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))}))}(jQuery),function(t){var e=function(e,i){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i),a="string"==typeof i?i:o.slide;s||n.data("bs.carousel",s=new e(this,o)),"number"==typeof i?s.to(i):a?s[a]():o.interval&&s.pause().cycle()}))}e.VERSION="3.3.4",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n=(i+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(n)},e.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){e.to(t)})):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")}
2,e.prototype.slide=function(i,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(i,s),a=this.interval,r="next"==i?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var h=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var u=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(i),o[0].offsetWidth,s.addClass(r),o.addClass(r),s.one("bsTransitionEnd",(function(){o.removeClass([i,r].join(" ")).addClass("active"),s.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout((function(){l.$element.trigger(u)}),0)})).emulateTransitionEnd(e.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(u)),a&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=i,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(e){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),s.data()),r=s.attr("data-slide-to");r&&(a.interval=!1),i.call(o,a),r&&o.data("bs.carousel").to(r),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",(function(){t('[data-ride="carousel"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(jQuery),function(t){var e=function(i,n){this.$element=t(i),this.options=t.extend({},e.DEFAULTS,n),this.$trigger=t('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][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()};function i(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function n(i){return this.each((function(){var n=t(this),s=n.data("bs.collapse"),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);!s&&o.toggle&&/show|hide/.test(i)&&(o.toggle=!1),s||n.data("bs.collapse",s=new e(this,o)),"string"==typeof i&&s[i]()}))}e.VERSION="3.3.4",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(i=s.data("bs.collapse"))&&i.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(n.call(s,"hide"),i||s.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",a].join("-")),h=e.TRANSITION_DURATION,c=this.$element.get()[0].tagName.toLowerCase();"tr"!==c&&"tbody"!==c||(h=0),this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(h)[a](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var i=t.Event("hide.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return s.call(this);var o=e.TRANSITION_DURATION,a=this.$element.get()[0].tagName.toLowerCase();"tr"!==a&&"tbody"!==a||(o=0),this.$element[n](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(o)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy((function(e,n){var s=t(n);this.addAriaAndCollapsedClass(i(s),s)}),this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){var s=t(this);s.attr("data-target")||e.preventDefault();var o=i(s),a=o.data("bs.collapse")?"toggle":s.data();n.call(o,a)}))}(jQuery),function(t){var e='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function n(i){i&&3===i.which||(t(".dropdown-backdrop").remove(),t(e).each((function(){var e=t(this),n=s(e),o={relatedTarget:this};
2n.hasClass("open")&&(n.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger("hidden.bs.dropdown",o)))})))}function s(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}i.VERSION="3.3.4",i.prototype.toggle=function(e){var i=t(this);if(!i.is(".disabled, :disabled")){var o=s(i),a=o.hasClass("open");if(n(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",n);var r={relatedTarget:this};if(o.trigger(e=t.Event("show.bs.dropdown",r)),e.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",r)}return!1}},i.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var o=s(n),a=o.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&o.find(e).trigger("focus"),n.trigger("click");var r=" li:not(.disabled):visible a",l=o.find('[role="menu"]'+r+', [role="listbox"]'+r);if(l.length){var h=l.index(i.target);38==i.which&&h>0&&h--,40==i.which&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=function(e){return this.each((function(){var n=t(this),s=n.data("bs.dropdown");s||n.data("bs.dropdown",s=new i(this)),"string"==typeof e&&s[e].call(n)}))},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",n).on("click.bs.dropdown.data-api",".dropdown form",(function(t){t.stopPropagation()})).on("click.bs.dropdown.data-api",e,i.prototype.toggle).on("keydown.bs.dropdown.data-api",e,i.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="menu"]',i.prototype.keydown).on("keydown.bs.dropdown.data-api",'[role="listbox"]',i.prototype.keydown)}(jQuery),function(t){var e=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function i(i,n){return this.each((function(){var s=t(this),o=s.data("bs.modal"),a=t.extend({},e.DEFAULTS,s.data(),"object"==typeof i&&i);o||s.data("bs.modal",o=new e(this,a)),"string"==typeof i?o[i](n):a.show&&o.show(n)}))}e.VERSION="3.3.4",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(i){var n=this,s=t.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(s),this.isShown||s.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"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){n.$element.one("mouseup.dismiss.bs.modal",(function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in").attr("aria-hidden",!1),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:i});s?n.$dialog.one("bsTransitionEnd",(function(){n.$element.trigger("focus").trigger(o)})).emulateTransitionEnd(e.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)})))},e.prototype.hide=function(i){i&&i.preventDefault(),i=t.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy((function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")}),this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
2down.dismiss.bs.modal",t.proxy((function(t){27==t.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop((function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")}))},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(i){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&s;if(this.$backdrop=t('<div class="modal-backdrop '+s+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy((function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;o?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){n.removeBackdrop(),i&&i()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else i&&i()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=i,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var n=t(this),s=n.attr("href"),o=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),a=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},o.data(),n.data());n.is("a")&&e.preventDefault(),o.one("show.bs.modal",(function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",(function(){n.is(":visible")&&n.trigger("focus")}))})),i.call(o,a,this)}))}(jQuery),function(t){var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.init("tooltip",t,e)};e.VERSION="3.3.4",e.TRANSITION_DURATION=150,e.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}},e.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport),this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var s=this.options.trigger.split(" "),o=s.length;o--;){var a=s[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return(e=t.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();
vendor: 12,848 bytes, line 2
2return this._options&&t.each(this._options,(function(t,n){i[t]!=n&&(e[t]=n)})),e},e.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i&&i.$tip&&i.$tip.is(":visible"))i.hoverState="in";else{if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout((function(){"in"==i.hoverState&&i.show()}),i.options.delay.show)}},e.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout((function(){"out"==i.hoverState&&i.hide()}),i.options.delay.hide)},e.prototype.show=function(){var i=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(i);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(i.isDefaultPrevented()||!n)return;var s=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(r);h&&(r=r.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),d=o[0].offsetWidth,u=o[0].offsetHeight;if(h){var p=r,f=this.options.container?t(this.options.container):this.$element.parent(),g=this.getPosition(f);r="bottom"==r&&c.bottom+u>g.bottom?"top":"top"==r&&c.top-u<g.top?"bottom":"right"==r&&c.right+d>g.width?"left":"left"==r&&c.left-d<g.left?"right":r,o.removeClass(p).addClass(r)}var m=this.getCalculatedOffset(r,c,d,u);this.applyPlacement(m,r);var v=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",v).emulateTransitionEnd(e.TRANSITION_DURATION):v()}},e.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,o=n[0].offsetHeight,a=parseInt(n.css("margin-top"),10),r=parseInt(n.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(r)&&(r=0),e.top=e.top+a,e.left=e.left+r,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(i),u=d?2*c.left-s+l:2*c.top-o+h,p=d?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(u,n[0][p],d)},e.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(i){var n=this,s=t(this.$tip),o=t.Event("hide.bs."+this.type);function a(){"in"!=n.hoverState&&s.detach(),n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),i&&i()}if(this.$element.trigger(o),!o.isDefaultPrevented())return s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),this.hoverState=null,this},e.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){var i=(e=e||this.$element)[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var o=n?{top:0,left:0}:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},r=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,a,r,o)},e.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var r=e.top-o-a.scroll,l=e.top+o-a.scroll+n;r<a.top?s.top=a.top-r:l>a.top+a.height&&(s.top=a.top+a.height-l)}else{var h=e.left-o,c=e.left+o+i;h<a.left?s.left=a.left-h:c>a.width&&(s.left=a.left+a.width-c)}return s},e.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},e.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},e.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide((function(){t.$element.off("."+t.type).removeData("bs."+t.type)}))};var i=t.fn.tooltip;t.fn.tooltip=function(i){return this.each((function(){var n=t(this),s=n.data("bs.tooltip"),o="object"==typeof i&&i;!s&&/destroy|hide/.test(i)||(s||n.data("bs.tooltip",s=new e(this,o)),"string"==typeof i&&s[i]())}))},t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=i,this}}(jQuery),function(t){var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.4",e.DEFAULTS=t.extend({},t.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>'}),(e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype)).constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var i=t.fn.popover;t.fn.popover=function(i){return this.each((function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof i&&i;!s&&/destroy|hide/.test(i)||(s||n.data("bs.popover",s=new e(this,o)),"string"==typeof i&&s[i]())}))},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=i,this}}(jQuery),function(t){function e(i,n){this.$body=t(document.body),this.$scrollElement=t(i).is(document.body)?t(window):t(i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each((function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()}))}e.VERSION="3.3.4",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var e=t(this),s=e.data("target")||e.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,s]]||null})).sort((function(t,e){return t[0]-e[0]})).each((function(){e.offsets.push(this[0]),e.targets.push(this[1])}))},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)a!=o[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",(function(){t('[data-spy="scroll"]').each((function(){var e=t(this);i.call(e,e.data())}))}))}(jQuery),function(t){var e=function(e){this.element=t(e)};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new e(this)),"string"==typeof i&&s[i]()}))}e.VERSION="3.3.4",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var r=t(n);this.activate(e.closest("li"),i),this.activate(r,r.parent(),(function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})}))}}},e.prototype.activate=function(i,n,s){var o=n.find("> .active"),a=s&&t.support.transition&&(o.length&&o.hasClass("fade")||!!n.find("> .fade").length);function r(){o.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),a?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}o.length&&a?o.one("bsTransitionEnd",r).emulateTransitionEnd(e.TRANSITION_DURATION):r(),o.removeClass("in")};var n=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(e){e.preventDefault(),i.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),function(t){var e=function(i,n){this.options=t.extend({},e.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function i(i){return this.each((function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof i&&i;s||n.data("bs.affix",s=new e(this,o)),"string"==typeof i&&s[i]()}))}e.VERSION="3.3.4",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window}
2,e.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(s+a<=t-n)&&"bottom";var r=null==this.affixed,l=r?s:o.top;return null!=i&&s<=i?"top":null!=n&&l+(r?a:e)>=t-n&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var i=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,a=t(document.body).height();"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var r=this.getState(a,i,s,o);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:a-i-o})}};var n=t.fn.affix;t.fn.affix=i,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",(function(){t('[data-spy="affix"]').each((function(){var e=t(this),n=e.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),i.call(e,n)}))}))}(jQuery),function(t){var e,i,n,s;function o(e){return t.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],(function(){e=e.replace(this.re,this.ch)})),e}function a(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},i="(?:"+Object.keys(e).join("|")+")",n=new RegExp(i),s=new RegExp(i,"g"),o=null==t?"":""+t;return n.test(o)?o.replace(s,(function(t){return e[t]})):o}String.prototype.includes||(e={}.toString,i=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),n="".indexOf,s=function(t){if(null==this)throw TypeError();var i=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var s=i.length,o=String(t),a=o.length,r=arguments.length>1?arguments[1]:void 0,l=r?Number(r):0;return l!=l&&(l=0),!(a+Math.min(Math.max(l,0),s)>s)&&-1!=n.call(i,o,l)},i?i(String.prototype,"includes",{value:s,configurable:!0,writable:!0}):String.prototype.includes=s),String.prototype.startsWith||function(){var t=function(){try{var t={},e=Object.defineProperty,i=e(t,t,t)&&e}catch(t){}return i}(),e={}.toString,i=function(t){if(null==this)throw TypeError();var i=String(this);if(t&&"[object RegExp]"==e.call(t))throw TypeError();var n=i.length,s=String(t),o=s.length,a=arguments.length>1?arguments[1]:void 0,r=a?Number(a):0;r!=r&&(r=0);var l=Math.min(Math.max(r,0),n);if(o+l>n)return!1;for(var h=-1;++h<o;)if(i.charCodeAt(l+h)!=s.charCodeAt(h))return!1;return!0};t?t(String.prototype,"startsWith",{value:i,configurable:!0,writable:!0}):String.prototype.startsWith=i}(),Object.keys||(Object.keys=function(t,e,i){for(e in i=[],t)i.hasOwnProperty.call(t,e)&&i.push(e);return i}),t.expr[":"].icontains=function(e,i,n){var s=t(e);return(s.data("tokens")||s.text()).toUpperCase().includes(n[3].toUpperCase())},t.expr[":"].ibegins=function(e,i,n){var s=t(e);return(s.data("tokens")||s.text()).toUpperCase().startsWith(n[3].toUpperCase())},t.expr[":"].aicontains=function(e,i,n){var s=t(e);return(s.data("tokens")||s.data("normalizedText")||s.text()).toUpperCase().includes(n[3].toUpperCase())},t.expr[":"].aibegins=function(e,i,n){var s=t(e);return(s.data("tokens")||s.data("normalizedText")||s.text()).toUpperCase().startsWith(n[3].toUpperCase())};var r=function(e,i,n){n&&(n.stopPropagation(),n.preventDefault()),this.$element=t(e),this.$newElement=null,this.$button=null,this.$menu=null,this.$lis=null,this.options=i,null===this.options.title&&(this.options.title=this.$element.attr("title")),this.val=r.prototype.val,this.render=r.prototype.render,this.refresh=r.prototype.refresh,this.setStyle=r.prototype.setStyle,this.selectAll=r.prototype.selectAll,this.deselectAll=r.prototype.deselectAll,this.destroy=r.prototype.remove,this.remove=r.prototype.remove,this.show=r.prototype.show,this.hide=r.prototype.hide,this.init()};function l(e,i){var n,s=arguments,o=e,a=i;[].shift.apply(s);var l=this.each((function(){var e=t(this);if(e.is("select")){var i=e.data("selectpicker"),l="object"==typeof o&&o;if(i){if(l)for(var h in l)l.hasOwnProperty(h)&&(i.options[h]=l[h])}else{var c=t.extend({},r.DEFAULTS,t.fn.selectpicker.defaults||{},e.data(),l);e.data("selectpicker",i=new r(this,c,a))}"string"==typeof o&&(n=i[o]instanceof Function?i[o].apply(i,s):i.options[o])}}));return void 0!==n?n:l}r.VERSION="1.7.2",r.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(t,e){return 1==t?"{0} item selected":"{0} items selected"},maxOptionsText:function(t,e){return[1==t?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==e?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,nav:!1},r.prototype={constructor:r,init:function(){var e=this,i=this.$element.attr("id");this.$element.addClass("bs-select-hidden"),this.liObj={},this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),this.$newElement=this.createView(),this.$element.after(this.$newElement),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(".dropdown-menu"),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right"),void 0!==i&&(this.$button.attr("data-id",i),t('label[for="'+i+'"]').click((function(t){t.preventDefault(),e.$button.focus()}))),this.checkDisabled(),this.clickListener(),this.options.liveSearch&&this.liveSearchListener(),this.render(),this.setStyle(),this.setWidth(),this.options.container&&this.selectPosition(),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on("hide.bs.dropdown",(function(t){e.$element.trigger("hide.bs.select",t)})),this.$newElement.on("hidden.bs.dropdown",(function(t){e.$element.trigger("hidden.bs.select",t)})),this.$newElement.on("show.bs.dropdown",(function(t){e.$element.trigger("show.bs.select",t)})),this.$newElement.on("shown.bs.dropdown",(function(t){e.$element.trigger("shown.bs.select",t)})),setTimeout((function(){e.$element.trigger("loaded.bs.select")}))},createDropdown:function(){var e=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",n=this.autofocus?" autofocus":"",s=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>":"",o=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+a(this.options.liveSearchPlaceholder)+'"')+"></div>":"",r=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button></div></div>":"",l=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button></div></div>":"",h='<div class="btn-group bootstrap-select'+e+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+n+'><span class="filter-option pull-left"></span> <span class="caret"></span></button><div class="dropdown-menu open">'+s+o+r+'<ul class="dropdown-menu inner" role="menu"></ul>'+l+"</div></div>";return t(h)},createView:function(){var t=this.createDropdown(),e=this.createLi();return t.find("ul")[0].innerHTML=e,t},reloadLi:function(){this.destroyLi();var t=this.createLi();this.$menuInner[0].innerHTML=t},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var e=this,i=[],n=0,s=document.createElement("option"),r=-1,l=function(t,e,
2i,n){return"<li"+(void 0!==i&""!==i?' class="'+i+'"':"")+(void 0!==e&null!==e?' data-original-index="'+e+'"':"")+(void 0!==n&null!==n?'data-optgroup="'+n+'"':"")+">"+t+"</li>"},h=function(t,i,n,s){return'<a tabindex="0"'+(void 0!==i?' class="'+i+'"':"")+(void 0!==n?' style="'+n+'"':"")+(e.options.liveSearchNormalize?' data-normalized-text="'+o(a(t))+'"':"")+(void 0!==s||null!==s?' data-tokens="'+s+'"':"")+">"+t+'<span class="'+e.options.iconBase+" "+e.options.tickIcon+' check-mark"></span></a>'};if(this.options.title&&!this.multiple&&(r--,!this.$element.find(".bs-title-option").length)){var c=this.$element[0];s.className="bs-title-option",s.appendChild(document.createTextNode(this.options.title)),s.value="",c.insertBefore(s,c.firstChild),null===c.options[c.selectedIndex].getAttribute("selected")&&(s.selected=!0)}return this.$element.find("option").each((function(s){var o=t(this);if(r++,!o.hasClass("bs-title-option")){var a=this.className||"",c=this.style.cssText,d=o.data("content")?o.data("content"):o.html(),u=o.data("tokens")?o.data("tokens"):null,p=void 0!==o.data("subtext")?'<small class="text-muted">'+o.data("subtext")+"</small>":"",f=void 0!==o.data("icon")?'<span class="'+e.options.iconBase+" "+o.data("icon")+'"></span> ':"",g=this.disabled||"OPTGROUP"===this.parentElement.tagName&&this.parentElement.disabled;if(""!==f&&g&&(f="<span>"+f+"</span>"),e.options.hideDisabled&&g)r--;else{if(o.data("content")||(d='<span class="text">'+d+p+f+"</span>"),"OPTGROUP"===this.parentElement.tagName&&!0!==o.data("divider")){if(0===o.index()){n+=1;var m=this.parentElement.label,v=void 0!==o.parent().data("subtext")?'<small class="text-muted">'+o.parent().data("subtext")+"</small>":"",b=o.parent().data("icon")?'<span class="'+e.options.iconBase+" "+o.parent().data("icon")+'"></span> ':"",y=" "+this.parentElement.className||"";m=b+'<span class="text">'+m+v+"</span>",0!==s&&i.length>0&&(r++,i.push(l("",null,"divider",n+"div"))),r++,i.push(l(m,null,"dropdown-header"+y,n))}i.push(l(h(d,"opt "+a+y,c,u),s,"",n))}else!0===o.data("divider")?i.push(l("",s,"divider")):!0===o.data("hidden")?i.push(l(h(d,a,c,u),s,"hidden is-hidden")):(this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName&&(r++,i.push(l("",null,"divider",n+"div"))),i.push(l(h(d,a,c,u),s)));e.liObj[s]=r}}})),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),i.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(e){var i,n=this;!1!==e&&this.$element.find("option").each((function(t){var e=n.findLis().eq(n.liObj[t]);n.setDisabled(t,this.disabled||"OPTGROUP"===this.parentElement.tagName&&this.parentElement.disabled,e),n.setSelected(t,this.selected,e)})),this.tabIndex();var s=this.$element.find("option").map((function(){if(this.selected){if(n.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentElement.tagName&&this.parentElement.disabled))return!1;var e,i=t(this),s=i.data("icon")&&n.options.showIcon?'<i class="'+n.options.iconBase+" "+i.data("icon")+'"></i> ':"";return e=n.options.showSubtext&&i.data("subtext")&&!n.multiple?' <small class="text-muted">'+i.data("subtext")+"</small>":"",void 0!==i.attr("title")?i.attr("title"):i.data("content")&&n.options.showContent?i.data("content"):s+i.html()+e}})).toArray(),o=this.multiple?s.join(this.options.multipleSeparator):s[0];if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var a=this.options.selectedTextFormat.split(">");if(a.length>1&&s.length>a[1]||1==a.length&&s.length>=2){i=this.options.hideDisabled?", [disabled]":"";var r=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+i).length;o=("function"==typeof this.options.countSelectedText?this.options.countSelectedText(s.length,r):this.options.countSelectedText).replace("{0}",s.length.toString()).replace("{1}",r.toString())}}null==this.options.title&&(this.options.title=this.$element.attr("title")),"static"==this.options.selectedTextFormat&&(o=this.options.title),o||(o=void 0!==this.options.title?this.options.title:this.options.noneSelectedText),this.$button.attr("title",t.trim(o.replace(/<[^>]*>?/g,""))),this.$button.children(".filter-option").html(o),this.$element.trigger("rendered.bs.select")},setStyle:function(t,e){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=t||this.options.style;"add"==e?this.$button.addClass(i):"remove"==e?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(e){if(e||!1!==this.options.size&&!this.sizeInfo){var i=document.createElement("div"),n=document.createElement("div"),s=document.createElement("ul"),o=document.createElement("li"),a=document.createElement("li"),r=document.createElement("a"),l=document.createElement("span"),h=this.options.header?this.$menu.find(".popover-title")[0].cloneNode(!0):null,c=this.options.liveSearch?document.createElement("div"):null,d=this.options.actionsBox&&this.multiple?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,u=this.options.doneButton&&this.multiple?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;if(l.className="text",i.className=this.$menu[0].parentNode.className+" open",n.className="dropdown-menu open",s.className="dropdown-menu inner",o.className="divider",l.appendChild(document.createTextNode("Inner text")),r.appendChild(l),a.appendChild(r),s.appendChild(a),s.appendChild(o),h&&n.appendChild(h),c){var p=document.createElement("span");c.className="bs-searchbox",p.className="form-control",c.appendChild(p),n.appendChild(c)}d&&n.appendChild(d),n.appendChild(s),u&&n.appendChild(u),i.appendChild(n),document.body.appendChild(i);var f=r.offsetHeight,g=h?h.offsetHeight:0,m=c?c.offsetHeight:0,v=d?d.offsetHeight:0,b=u?u.offsetHeight:0,y=t(o).outerHeight(!0),w=!!getComputedStyle&&getComputedStyle(n),C=w?t(n):null,x=parseInt(w?w.paddingTop:C.css("paddingTop"))+parseInt(w?w.paddingBottom:C.css("paddingBottom"))+parseInt(w?w.borderTopWidth:C.css("borderTopWidth"))+parseInt(w?w.borderBottomWidth:C.css("borderBottomWidth")),D=x+parseInt(w?w.marginTop:C.css("marginTop"))+parseInt(w?w.marginBottom:C.css("marginBottom"))+2;document.body.removeChild(i),this.sizeInfo={liHeight:f,headerHeight:g,searchHeight:m,actionsHeight:v,doneButtonHeight:b,dividerHeight:y,menuPadding:x,menuExtras:D}}},setSize:function(){this.findLis(),this.liHeight();var e,i,n,s,o=this,a=this.$menu,r=this.$menuInner,l=t(window),h=this.$newElement[0].offsetHeight,c=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,u=this.sizeInfo.searchHeight,p=this.sizeInfo.actionsHeight,f=this.sizeInfo.doneButtonHeight,g
2=this.sizeInfo.dividerHeight,m=this.sizeInfo.menuPadding,v=this.sizeInfo.menuExtras,b=this.options.hideDisabled?".disabled":"",y=function(){n=o.$newElement.offset().top-l.scrollTop(),s=l.height()-n-h};if(y(),this.options.header&&a.css("padding-top",0),"auto"===this.options.size){var w=function(){var l,h=function(e,i){return function(n){return i?n.classList?n.classList.contains(e):t(n).hasClass(e):!(n.classList?n.classList.contains(e):t(n).hasClass(e))}},g=o.$menuInner[0].getElementsByTagName("li"),b=Array.prototype.filter?Array.prototype.filter.call(g,h("hidden",!1)):o.$lis.not(".hidden"),w=Array.prototype.filter?Array.prototype.filter.call(b,h("dropdown-header",!0)):b.filter(".dropdown-header");y(),e=s-v;var C=0;0!=o.options.nav&&0!=t(o.options.nav).length&&(C=t(o.options.nav).height()+t(o.options.nav).position().top,"fixed"!=t(o.options.nav).css("position")&&(C=Math.max(C-t(document).scrollTop(),0))),o.options.container?(a.data("height")||a.data("height",a.height()),i=a.data("height")):i=a.height(),o.options.dropupAuto&&o.$newElement.toggleClass("dropup",n>s&&e-v-C<i),o.$newElement.hasClass("dropup")&&(e=n-v-C),l=b.length+w.length>3?3*c+v-2:0,a.css({"max-height":e+"px",overflow:"hidden","min-height":l+d+u+p+f+"px"}),r.css({"max-height":e-d-u-p-f-m+"px","overflow-y":"auto","min-height":Math.max(l-m,0)+"px"})};w(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",w),l.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",w)}else if(this.options.size&&"auto"!=this.options.size&&this.$lis.not(b).length>this.options.size){var C=this.$lis.not(".divider").not(b).children().slice(0,this.options.size).last().parent().index(),x=this.$lis.slice(0,C+1).filter(".divider").length;e=c*this.options.size+x*g+m,o.options.container?(a.data("height")||a.data("height",a.height()),i=a.data("height")):i=a.height(),o.options.dropupAuto&&this.$newElement.toggleClass("dropup",n>s&&e-v<i),a.css({"max-height":e+d+u+p+f+"px",overflow:"hidden","min-height":""}),r.css({"max-height":e-m+"px","overflow-y":"auto","min-height":""})}},setWidth:function(){if("auto"===this.options.width){this.$menu.css("min-width","0");var t=this.$menu.parent().clone().appendTo("body"),e=this.options.container?this.$newElement.clone().appendTo("body"):t,i=t.children(".dropdown-menu").outerWidth(),n=e.css("width","auto").children("button").outerWidth();t.remove(),e.remove(),this.$newElement.css("width",Math.max(i,n)+"px")}else"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var e,i,n=this,s=t("<div />"),o=function(t){s.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",t.hasClass("dropup")),e=t.offset(),i=t.hasClass("dropup")?0:t[0].offsetHeight,s.css({top:e.top+i,left:e.left,width:t[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",(function(){n.isDisabled()||(o(t(this)),s.appendTo(n.options.container),s.toggleClass("open",!t(this).hasClass("open")),s.append(n.$menu))})),t(window).on("resize scroll",(function(){o(n.$newElement)})),this.$element.on("hide.bs.select",(function(){n.$menu.data("height",n.$menu.height()),s.detach()}))},setSelected:function(t,e,i){if(!i)i=this.findLis().eq(this.liObj[t]);i.toggleClass("selected",e)},setDisabled:function(t,e,i){if(!i)i=this.findLis().eq(this.liObj[t]);e?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var t=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex")),this.$button.click((function(){return!t.isDisabled()}))},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var e=this,i=t(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",(function(t){t.stopPropagation()})),i.data("spaceSelect",!1),this.$button.on("keyup",(function(t){/(32)/.test(t.keyCode.toString(10))&&i.data("spaceSelect")&&(t.preventDefault(),i.data("spaceSelect",!1))})),this.$newElement.on("click",(function(){e.setSize(),e.$element.on("shown.bs.select",(function(){if(e.options.liveSearch||e.multiple){if(!e.multiple){var t=e.liObj[e.$element[0].selectedIndex];if("number"!=typeof t)return;var i=e.$lis.eq(t)[0].offsetTop-e.$menuInner[0].offsetTop;i=i-e.$menuInner[0].offsetHeight/2+e.sizeInfo.liHeight/2,e.$menuInner[0].scrollTop=i}}else e.$menu.find(".selected a").focus()}))})),this.$menu.on("click","li a",(function(i){var n=t(this),s=n.parent().data("originalIndex"),o=e.$element.val(),a=e.$element.prop("selectedIndex");if(e.multiple&&i.stopPropagation(),i.preventDefault(),!e.isDisabled()&&!n.parent().hasClass("disabled")){var r=e.$element.find("option"),l=r.eq(s),h=l.prop("selected"),c=l.parent("optgroup"),d=e.options.maxOptions,u=c.data("maxOptions")||!1;if(e.multiple){if(l.prop("selected",!h),e.setSelected(s,!h),n.blur(),!1!==d||!1!==u){var p=d<r.filter(":selected").length,f=u<c.find("option:selected").length;if(d&&p||u&&f)if(d&&1==d)r.prop("selected",!1),l.prop("selected",!0),e.$menu.find(".selected").removeClass("selected"),e.setSelected(s,!0);else if(u&&1==u){c.find("option:selected").prop("selected",!1),l.prop("selected",!0);var g=n.parent().data("optgroup");e.$menu.find('[data-optgroup="'+g+'"]').removeClass("selected"),e.setSelected(s,!0)}
2else{var m="function"==typeof e.options.maxOptionsText?e.options.maxOptionsText(d,u):e.options.maxOptionsText,v=m[0].replace("{n}",d),b=m[1].replace("{n}",u),y=t('<div class="notify"></div>');m[2]&&(v=v.replace("{var}",m[2][d>1?0:1]),b=b.replace("{var}",m[2][u>1?0:1])),l.prop("selected",!1),e.$menu.append(y),d&&p&&(y.append(t("<div>"+v+"</div>")),e.$element.trigger("maxReached.bs.select")),u&&f&&(y.append(t("<div>"+b+"</div>")),e.$element.trigger("maxReachedGrp.bs.select")),setTimeout((function(){e.setSelected(s,!1)}),10),y.delay(750).fadeOut(300,(function(){t(this).remove()}))}}}else r.prop("selected",!1),l.prop("selected",!0),e.$menu.find(".selected").removeClass("selected"),e.setSelected(s,!0);e.multiple?e.options.liveSearch&&e.$searchbox.focus():e.$button.focus(),(o!=e.$element.val()&&e.multiple||a!=e.$element.prop("selectedIndex")&&!e.multiple)&&(e.$element.change(),e.$element.trigger("changed.bs.select",[s,l.prop("selected"),h]))}})),this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",(function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),e.options.liveSearch&&!t(i.target).hasClass("close")?e.$searchbox.focus():e.$button.focus())})),this.$menu.on("click","li.divider, li.dropdown-header",(function(t){t.preventDefault(),t.stopPropagation(),e.options.liveSearch?e.$searchbox.focus():e.$button.focus()})),this.$menu.on("click",".popover-title .close",(function(){e.$button.click()})),this.$searchbox.on("click",(function(t){t.stopPropagation()})),this.$menu.on("click",".actions-btn",(function(i){e.options.liveSearch?e.$searchbox.focus():e.$button.focus(),i.preventDefault(),i.stopPropagation(),t(this).hasClass("bs-select-all")?e.selectAll():e.deselectAll(),e.$element.change()})),this.$element.change((function(){e.render(!1)}))},liveSearchListener:function(){var e=this,i=t('<li class="no-results"></li>');this.$newElement.on("click.dropdown.data-api touchstart.dropdown.data-api",(function(){e.$menuInner.find(".active").removeClass("active"),e.$searchbox.val()&&(e.$searchbox.val(""),e.$lis.not(".is-hidden").removeClass("hidden"),i.parent().length&&i.remove()),e.multiple||e.$menuInner.find(".selected").addClass("active"),setTimeout((function(){e.$searchbox.focus()}),10)})),this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",(function(t){t.stopPropagation()})),this.$searchbox.on("input propertychange",(function(){if(e.$searchbox.val()){var n=e.$lis.not(".is-hidden").removeClass("hidden").children("a");(n=e.options.liveSearchNormalize?n.not(":a"+e._searchStyle()+"("+o(e.$searchbox.val())+")"):n.not(":"+e._searchStyle()+"("+e.$searchbox.val()+")")).parent().addClass("hidden"),e.$lis.filter(".dropdown-header").each((function(){var i=t(this),n=i.data("optgroup");0===e.$lis.filter("[data-optgroup="+n+"]").not(i).not(".hidden").length&&(i.addClass("hidden"),e.$lis.filter("[data-optgroup="+n+"div]").addClass("hidden"))}));var s=e.$lis.not(".hidden");s.each((function(e){var i=t(this);i.hasClass("divider")&&(i.index()===s.eq(0).index()||i.index()===s.last().index()||s.eq(e+1).hasClass("divider"))&&i.addClass("hidden")})),e.$lis.not(".hidden, .no-results").length?i.parent().length&&i.remove():(i.parent().length&&i.remove(),i.html(e.options.noneResultsText.replace("{0}",'"'+a(e.$searchbox.val())+'"')).show(),e.$menuInner.append(i))}else e.$lis.not(".is-hidden").removeClass("hidden"),i.parent().length&&i.remove();e.$lis.filter(".active").removeClass("active"),e.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus(),t(this).focus()}))},_searchStyle:function(){var t="icontains";switch(this.options.liveSearchStyle){case"begins":case"startsWith":t="ibegins"}return t},val:function(t){return void 0!==t?(this.$element.val(t),this.render(),this.$element):this.$element.val()},selectAll:function(){this.findLis(),this.$element.find("option:enabled").not("[data-divider], [data-hidden]").prop("selected",!0),this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").addClass("selected"),this.render(!1)},deselectAll:function(){this.findLis(),this.$element.find("option:enabled").not("[data-divider], [data-hidden]").prop("selected",!1),this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").removeClass("selected"),this.render(!1)},keydown:function(e){var i,n,s,a,r,l,h,c,d,u=t(this),p=u.is("input")?u.parent().parent():u.parent(),f=p.data("this"),g=":not(.disabled, .hidden, .dropdown-header, .divider)",m={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(f.options.liveSearch&&(p=u.parent().parent()),f.options.container&&(p=f.$menu),i=t("[role=menu] li a",p),!(d=f.$menu.parent().hasClass("open"))&&(e.keyCode>=48&&e.keyCode<=57||event.keyCode>=65&&event.keyCode<=90)&&(f.options.container?f.$newElement.trigger("click"):(f.setSize(),f.$menu.parent().addClass("open"),d=!0),f.$searchbox.focus()),f.options.liveSearch&&(/(^9$|27)/.test(e.keyCode.toString(10))&&d&&0===f.$menu.find(".active").length&&(e.preventDefault(),f.$menu.parent().removeClass("open"),f.options.container&&f.$newElement.removeClass("open"),f.$button.focus()),i=t("[role=menu] li:not(.disabled, .hidden, .dropdown-header, .divider)",p),u.val()||/(38|40)/.test(e.keyCode.toString(10))||0===i.filter(".active").length&&(i=f.$newElement.find("li"),i=f.options.liveSearchNormalize?i.filter(":a"+f._searchStyle()+"("+o(m[e.keyCode])+")"):i.filter(":"+f._searchStyle()+"("+m[e.keyCode]+")"))),i.length){if(
2/(38|40)/.test(e.keyCode.toString(10)))n=i.index(i.filter(":focus")),a=i.parent(g).first().data("originalIndex"),r=i.parent(g).last().data("originalIndex"),s=i.eq(n).parent().nextAll(g).eq(0).data("originalIndex"),l=i.eq(n).parent().prevAll(g).eq(0).data("originalIndex"),h=i.eq(s).parent().prevAll(g).eq(0).data("originalIndex"),f.options.liveSearch&&(i.each((function(e){t(this).hasClass("disabled")||t(this).data("index",e)})),n=i.index(i.filter(".active")),a=i.first().data("index"),r=i.last().data("index"),s=i.eq(n).nextAll().eq(0).data("index"),l=i.eq(n).prevAll().eq(0).data("index"),h=i.eq(s).prevAll().eq(0).data("index")),c=u.data("prevIndex"),38==e.keyCode?(f.options.liveSearch&&(n-=1),n!=h&&n>l&&(n=l),n<a&&(n=a),n==c&&(n=r)):40==e.keyCode&&(f.options.liveSearch&&(n+=1),-1==n&&(n=0),n!=h&&n<s&&(n=s),n>r&&(n=r),n==c&&(n=a)),u.data("prevIndex",n),f.options.liveSearch?(e.preventDefault(),u.hasClass("dropdown-toggle")||(i.removeClass("active").eq(n).addClass("active").children("a").focus(),u.focus())):i.eq(n).focus();else if(!u.is("input")){var v,b=[];i.each((function(){t(this).parent().hasClass("disabled")||t.trim(t(this).text().toLowerCase()).substring(0,1)==m[e.keyCode]&&b.push(t(this).parent().index())})),v=t(document).data("keycount"),v++,t(document).data("keycount",v),t.trim(t(":focus").text().toLowerCase()).substring(0,1)!=m[e.keyCode]?(v=1,t(document).data("keycount",v)):v>=b.length&&(t(document).data("keycount",0),v>b.length&&(v=1)),i.eq(b[v-1]).focus()}if((/(13|32)/.test(e.keyCode.toString(10))||/(^9$)/.test(e.keyCode.toString(10))&&f.options.selectOnTab)&&d){if(/(32)/.test(e.keyCode.toString(10))||e.preventDefault(),f.options.liveSearch)/(32)/.test(e.keyCode.toString(10))||(f.$menu.find(".active a").click(),u.focus());else{var y=t(":focus");y.click(),y.focus(),e.preventDefault(),t(document).data("spaceSelect",!0)}t(document).data("keycount",0)}(/(^9$|27)/.test(e.keyCode.toString(10))&&d&&(f.multiple||f.options.liveSearch)||/(27)/.test(e.keyCode.toString(10))&&!d)&&(f.$menu.parent().removeClass("open"),f.options.container&&f.$newElement.removeClass("open"),f.$button.focus())}},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement),this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null,this.reloadLi(),this.render(),this.checkDisabled(),this.liHeight(!0),this.setStyle(),this.setWidth(),this.$lis&&this.$searchbox.trigger("propertychange"),this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()}};var h=t.fn.selectpicker;t.fn.selectpicker=l,t.fn.selectpicker.Constructor=r,t.fn.selectpicker.noConflict=function(){return t.fn.selectpicker=h,this},t(document).data("keycount",0).on("keydown",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',r.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',(function(t){t.stopPropagation()})),t(window).on("load.bs.select.data-api",(function(){t(".selectpicker").each((function(){var e=t(this);l.call(e,e.data())}))}))}(jQuery), 3/*! 4 * typeahead.js 0.10.5 5 * https://github.com/twitter/typeahead.js 6 * Copyright 2013-2014 Twitter, Inc. and other contributors; Licensed MIT 7 */ 8function(t){var e,i,n={isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return void 0===t},toStr:function(t){return n.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,i){t.each(e,(function(t,e){return i(e,t)}))},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,(function(t,s){if(!(n=i.call(null,s,t,e)))return!1})),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,(function(t,s){if(n=i.call(null,s,t,e))return!1})),!!n):n},mixin:t.extend,getUniqueId:(e=0,function(){return e++}),templatify:function(e){return t.isFunction(e)?e:function(){return String(e)}},defer:function(t){setTimeout(t,0)}
8,debounce:function(t,e,i){var n,s;return function(){var o,a,r=this,l=arguments;return o=function(){n=null,i||(s=t.apply(r,l))},a=i&&!n,clearTimeout(n),n=setTimeout(o,e),a&&(s=t.apply(r,l)),s}},throttle:function(t,e){var i,n,s,o,a,r;return a=0,r=function(){a=new Date,s=null,o=t.apply(i,n)},function(){var l=new Date,h=e-(l-a);return i=this,n=arguments,h<=0?(clearTimeout(s),s=null,a=l,o=t.apply(i,n)):s||(s=setTimeout(r,h)),o}},noop:function(){}},s={wrapper:'<span class="twitter-typeahead"></span>',dropdown:'<span class="tt-dropdown-menu"></span>',dataset:'<div class="tt-dataset-%CLASS%"></div>',suggestions:'<span class="tt-suggestions"></span>',suggestion:'<div class="tt-suggestion"></div>'},o=(i={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}},n.isMsie()&&n.mixin(i.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n.isMsie()&&n.isMsie()<=7&&n.mixin(i.input,{marginTop:"-1px"}),i),a=function(){function e(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}return n.mixin(e.prototype,{trigger:function(t){var e=[].slice.call(arguments,1);this.$el.trigger("typeahead:"+t,e)}}),e}(),r=function(){var t=/\s+/,e=function(){var t;t=window.setImmediate?function(t){setImmediate((function(){t()}))}:function(t){setTimeout((function(){t()}),0)};return t}();return{onSync:function(t,e,n){return i.call(this,"sync",t,e,n)},onAsync:function(t,e,n){return i.call(this,"async",t,e,n)},off:function(e){var i;if(!this._callbacks)return this;e=e.split(t);for(;i=e.shift();)delete this._callbacks[i];return this},trigger:function(i){var s,o,a,r,l;if(!this._callbacks)return this;i=i.split(t),a=[].slice.call(arguments,1);for(;(s=i.shift())&&(o=this._callbacks[s]);)r=n(o.sync,this,[s].concat(a)),l=n(o.async,this,[s].concat(a)),r()&&e(l);return this}};function i(e,i,n,s){var o;if(!n)return this;for(i=i.split(t),n=s?function(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}(n,s):n,this._callbacks=this._callbacks||{};o=i.shift();)this._callbacks[o]=this._callbacks[o]||{sync:[],async:[]},this._callbacks[o][e].push(n);return this}function n(t,e,i){return function(){for(var n,s=0,o=t.length;!n&&s<o;s+=1)n=!1===t[s].apply(e,i);return!n}}}(),l=function(t){var e={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(i){var s;(i=n.mixin({},e,i)).node&&i.pattern&&(i.pattern=n.isArray(i.pattern)?i.pattern:[i.pattern],s=function(t,e,i){for(var s,o=[],a=0,r=t.length;a<r;a++)o.push(n.escapeRegExChars(t[a]));return s=i?"\\b("+o.join("|")+")\\b":"("+o.join("|")+")",e?new RegExp(s):new RegExp(s,"i")}(i.pattern,i.caseSensitive,i.wordsOnly),function t(e,i){for(var n,s=0;s<e.childNodes.length;s++)3===(n=e.childNodes[s]).nodeType?s+=i(n)?1:0:t(n,i)}(i.node,(function(e){var n,o,a;(n=s.exec(e.data))&&(a=t.createElement(i.tagName),i.className&&(a.className=i.className),(o=e.splitText(n.index)).splitText(n[0].length),a.appendChild(o.cloneNode(!0)),e.parentNode.replaceChild(a,o));return!!n})))}}(window.document),h=function(){var e;function i(i){var s,o,a,r,l=this;(i=i||{}).input||t.error("input is missing"),s=n.bind(this._onBlur,this),o=n.bind(this._onFocus,this),a=n.bind(this._onKeydown,this),r=n.bind(this._onInput,this),this.$hint=t(i.hint),this.$input=t(i.input).on("blur.tt",s).on("focus.tt",o).on("keydown.tt",a),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=n.noop),n.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",(function(t){e[t.which||t.keyCode]||n.defer(n.bind(l._onInput,l,t))})):this.$input.on("input.tt",r),this.query=this.$input.val(),this.$overflowHelper=function(e){return t('<pre aria-hidden="true"></pre>
8').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}(this.$input)}return e={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},n.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var i=e[t.which||t.keyCode];this._managePreventDefault(i,t),i&&this._shouldTrigger(i,t)&&this.trigger(i+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var i,n,o;switch(t){case"tab":n=this.getHint(),o=this.getInputValue(),i=n&&n!==o&&!s(e);break;case"up":case"down":i=!s(e);break;default:i=!1}i&&e.preventDefault()},_shouldTrigger:function(t,e){var i;if("tab"===t)i=!s(e);else i=!0;return i},_checkInputValue:function(){var t,e,n;n=!!(e=function(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}(t=this.getInputValue(),this.query))&&this.query.length!==t.length,this.query=t,e?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){this.$input.val(t),e?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,i;i=(t=this.getInputValue())!==(e=this.getHint())&&0===e.indexOf(t),!(""!==t&&i&&!this.hasOverflow())&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,e,i;return t=this.$input.val().length,e=this.$input[0].selectionStart,n.isNumber(e)?e===t:!document.selection||((i=document.selection.createRange()).moveStart("character",-t),t===i.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$hint=this.$input=this.$overflowHelper=null}}),i;function s(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}}(),c=function(){var e="ttDataset",i="ttValue",a="ttDatum";function h(e){(e=e||{}).templates=e.templates||{},e.source||t.error("missing source"),e.name&&!function(t){return/^[_a-zA-Z0-9-]+$/.test(t)}(e.name)&&t.error("invalid dataset name: "+e.name),this.query=null,this.highlight=!!e.highlight,this.name=e.name||n.getUniqueId(),this.source=e.source,this.displayFn=function(t){return t=t||"value",n.isFunction(t)?t:e;function e(e){return e[t]}}(e.display||e.displayKey),this.templates=function(t,e){return{empty:t.empty&&n.templatify(t.empty),header:t.header&&n.templatify(t.header),footer:t.footer&&n.templatify(t.footer),suggestion:t.suggestion||i};function i(t){return"<p>"+e(t)+"</p>"}}(e.templates,this.displayFn),this.$el=t(s.dataset.replace("%CLASS%",this.name))}return h.extractDatasetName=function(i){return t(i).data(e)},h.extractValue=function(e){return t(e).data(i)},h.extractDatum=function(e){return t(e).data(a)},n.mixin(h.prototype,r,{_render:function(r,h){if(this.$el){var c,d=this;this.$el.empty(),!(c=h&&h.length)&&this.templates.empty?this.$el.html(d.templates.empty({query:r,isEmpty:!0})).prepend(d.templates.header?u():null).append(d.templates.footer?p():null):c&&this.$el.html(function(){var c,u;return c=t(s.suggestions).css(o.suggestions),u=n.map(h,p),c.append.apply(c,u),d.highlight&&l({className:"tt-highlight",node:c[0],pattern:r}),c;function p(n){var r;return(r=t(s.suggestion).append(d.templates.suggestion(n)).data(e,d.name).data(i,d.displayFn(n)).data(a,n)).children().each((function(){t(this).css(o.suggestionChild)})),r}}()).prepend(d.templates.header?u():null).append(d.templates.footer?p():null),this.trigger("rendered")}function u(){return d.templates.header({query:r,isEmpty:!c})}function p(){return d.templates.footer({query:r,isEmpty:!c})}},getRoot:function(){return this.$el},update:function(t){var e=this;this.query=t,this.canceled=!1,this.source(t,(function(i){e.canceled||t!==e.query||e._render(t,i)}))},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),h}(),d=function(){function e(e){var s,o,a,r=this;(e=e||{}).menu||t.error("menu is required"),this.isOpen=!1,this.isEmpty=!0,this.datasets=n.map(e.datasets,i),s=n.bind(this._onSuggestionClick,this),o=n.bind(this._onSuggestionMouseEnter,this),a=n.bind(this._onSuggestionMouseLeave,this),this.$menu=t(e.menu).on("click.tt",".tt-suggestion",s).on("mouseenter.tt",".tt-suggestion",o).on("mouseleave.tt",".tt-suggestion",a),n.each(this.datasets,(function(t){r.$menu.append(t.getRoot()),t.onSync("rendered",r._onRendered,r)}))}
8return n.mixin(e.prototype,r,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",t(e.currentTarget))},_onSuggestionMouseEnter:function(e){this._removeCursor(),this._setCursor(t(e.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){this.isEmpty=n.every(this.datasets,(function(t){return t.isEmpty()})),this.isEmpty?this._hide():this.isOpen&&this._show(),this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(t,e){t.first().addClass("tt-cursor"),!e&&this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(t){var e,i,n,s;this.isOpen&&(i=this._getCursor(),e=this._getSuggestions(),this._removeCursor(),-1!==(n=((n=e.index(i)+t)+1)%(e.length+1)-1)?(n<-1&&(n=e.length-1),this._setCursor(s=e.eq(n)),this._ensureVisible(s)):this.trigger("cursorRemoved"))},_ensureVisible:function(t){var e,i,n,s;i=(e=t.position().top)+t.outerHeight(!0),n=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),e<0?this.$menu.scrollTop(n+e):s<i&&this.$menu.scrollTop(n+(i-s))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?o.ltr:o.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:c.extractDatum(t),value:c.extractValue(t),datasetName:c.extractDatasetName(t)}),e},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(t){n.each(this.datasets,(function(e){e.update(t)}))},empty:function(){n.each(this.datasets,(function(t){t.clear()})),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".tt"),this.$menu=null,n.each(this.datasets,(function(t){t.destroy()}))}}),e;function i(t){return new c(t)}}(),u=function(){var e="ttAttrs";function i(i){var r,l,c;(i=i||{}).input||t.error("missing input"),this.isActivated=!1,this.autoselect=!!i.autoselect,this.minLength=n.isNumber(i.minLength)?i.minLength:1,this.$node=function(i,n){var a,r,l,h;a=t(i),r=t(s.wrapper).css(o.wrapper),l=t(s.dropdown).css(o.dropdown),h=a.clone().css(o.hint).css(function(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}(a)),h.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1}),a.data(e,{dir:a.attr("dir"),autocomplete:a.attr("autocomplete"),spellcheck:a.attr("spellcheck"),style:a.attr("style")}),a.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(n?o.input:o.inputWithNoHint);try{!a.attr("dir")&&a.attr("dir","auto")}catch(t){}return a.wrap(r).parent().prepend(n?h:null).append(l)}(i.input,i.withHint),r=this.$node.find(".tt-dropdown-menu"),l=this.$node.find(".tt-input"),c=this.$node.find(".tt-hint"),l.on("blur.tt",(function(t){var e,i,s;e=document.activeElement,i=r.is(e),s=r.has(e).length>0,n.isMsie()&&(i||s)&&(t.preventDefault(),t.stopImmediatePropagation(),n.defer((function(){l.focus()})))})),r.on("mousedown.tt",(function(t){t.preventDefault()})),this.eventBus=i.eventBus||new a({el:l}),this.dropdown=new d({menu:r,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new h({input:l,hint:c}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._setLanguageDirection()}
8return n.mixin(i.prototype,{_onSuggestionClicked:function(t,e){var i;(i=this.dropdown.getDatumForSuggestion(e))&&this._select(i)},_onCursorMoved:function(){var t=this.dropdown.getDatumForCursor();this.input.setInputValue(t.value,!0),this.eventBus.trigger("cursorchanged",t.raw,t.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint(),this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0,this.dropdown.open()},_onBlurred:function(){this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()},_onEnterKeyed:function(t,e){var i,n;i=this.dropdown.getDatumForCursor(),n=this.dropdown.getDatumForTopSuggestion(),i?(this._select(i),e.preventDefault()):this.autoselect&&n&&(this._select(n),e.preventDefault())},_onTabKeyed:function(t,e){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),e.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t;this.dir!==(t=this.input.getLanguageDirection())&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,e,i,s,o;(t=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(e=this.input.getInputValue(),i=h.normalizeQuery(e),s=n.escapeRegExChars(i),(o=new RegExp("^(?:"+s+")(.+$)","i").exec(t.value))?this.input.setHint(e+o[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,i,n,s;e=this.input.getHint(),i=this.input.getQuery(),n=t||this.input.isCursorAtEnd(),e&&i!==e&&n&&((s=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t){this.input.setQuery(t.value),this.input.setInputValue(t.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",t.raw,t.datasetName),this.dropdown.close(),n.defer(n.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=n.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var t,i;this.input.destroy(),this.dropdown.destroy(),t=this.$node,i=t.find(".tt-input"),n.each(i.data(e),(function(t,e){n.isUndefined(t)?i.removeAttr(e):i.attr(e,t)})),i.detach().removeData(e).removeClass("tt-input").insertAfter(t),t.remove(),this.$node=null}}),i}();!function(){var e,i,s;e=t.fn.typeahead,i="ttTypeahead",s={initialize:function(e,s){return s=n.isArray(s)?s:[].slice.call(arguments,1),e=e||{},this.each((function(){var o,r=t(this);n.each(s,(function(t){t.highlight=!!e.highlight})),o=new u({input:r,eventBus:new a({el:r}),withHint:!!n.isUndefined(e.hint)||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,datasets:s}),r.data(i,o)}))},open:function(){return this.each((function(){var e,n=t(this);(e=n.data(i))&&e.open()}))},close:function(){return this.each((function(){var e,n=t(this);(e=n.data(i))&&e.close()}))},val:function(e){return arguments.length?this.each((function(){var n,s=t(this);(n=s.data(i))&&n.setVal(e)})):function(t){var e,n;(e=t.data(i))&&(n=e.getVal());return n}(this.first())},destroy:function(){return this.each((function(){var e,n=t(this);(e=n.data(i))&&(e.destroy(),n.removeData(i))}))}},t.fn.typeahead=function(e){var n;return s[e]&&"initialize"!==e?(n=this.filter((function(){return!!t(this).data(i)}
8)),s[e].apply(n,[].slice.call(arguments,1))):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=e,this}}()}(window.jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t){return function(){return this[t].apply(this,arguments)}}var o,a=(o={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(this[i].valueOf()===e)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new a;return t.replace(this),t}},function(){var e=[];return e.push.apply(e,arguments),t.extend(e,o),e}),r=function(e,i){this._process_options(i),this.dates=new a,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=t(f.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot .today, tfoot .clear").attr("colspan",(function(t,e){return parseInt(e)+1})),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};r.prototype={constructor:r,_process_options:function(s){this._o=t.extend({},this._o,s);var o=this.o=t.extend({},this._o),a=o.language;switch(p[a]||(a=a.split("-")[0],p[a]||(a=d.language)),o.language=a,o.startView){case 2:case"decade":o.startView=2;break;case 1:case"year":o.startView=1;break;default:o.startView=0}switch(o.minViewMode){case 1:case"months":o.minViewMode=1;break;case 2:case"years":o.minViewMode=2;break;default:o.minViewMode=0}switch(o.maxViewMode){case 0:case"days":o.maxViewMode=0;break;case 1:case"months":o.maxViewMode=1;break;default:o.maxViewMode=2}o.startView=Math.min(o.startView,o.maxViewMode),o.startView=Math.max(o.startView,o.minViewMode),!0!==o.multidate&&(o.multidate=Number(o.multidate)||!1,!1!==o.multidate&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var r=f.parseFormat(o.format);if(o.startDate!==-1/0&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=f.parseDate(o.startDate,r,o.language):o.startDate=-1/0),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=f.parseDate(o.endDate,r,o.language):o.endDate=1/0),o.daysOfWeekDisabled=o.daysOfWeekDisabled||[],t.isArray(o.daysOfWeekDisabled)||(o.daysOfWeekDisabled=o.daysOfWeekDisabled.split(/[,\s]*/)),o.daysOfWeekDisabled=t.map(o.daysOfWeekDisabled,(function(t){return parseInt(t,10)})),o.daysOfWeekHighlighted=o.daysOfWeekHighlighted||[],t.isArray(o.daysOfWeekHighlighted)||(o.daysOfWeekHighlighted=o.daysOfWeekHighlighted.split(/[,\s]*/)),o.daysOfWeekHighlighted=t.map(o.daysOfWeekHighlighted,(function(t){return parseInt(t,10)})),o.datesDisabled=o.datesDisabled||[],!t.isArray(o.datesDisabled)){var l=[];l.push(f.parseDate(o.datesDisabled,r,o.language)),o.datesDisabled=l}o.datesDisabled=t.map(o.datesDisabled,(function(t){return f.parseDate(t,r,o.language)}));var h=String(o.orientation).toLowerCase().split(/\s+/g),c=o.orientation.toLowerCase();if(h=t.grep(h,(function(t){return/^auto|left|right|top|bottom$/.test(t)})),o.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===h.length)switch(h[0]){case"top":case"bottom":o.orientation.y=h[0];break;case"left":case"right":o.orientation.x=h[0]}else c=t.grep(h,(function(t){return/^left|right$/.test(t)})),o.orientation.x=c[0]||"auto",c=t.grep(h,(function(t){return/^top|bottom$/.test(t)})),o.orientation.y=c[0]||"auto";else;if(o.defaultViewDate){var u=o.defaultViewDate.year||(new Date).getFullYear(),g=o.defaultViewDate.month||0,m=o.defaultViewDate.day||1;o.defaultViewDate=i(u,g,m)}else o.defaultViewDate=n();o.showOnFocus=o.showOnFocus===e||o.showOnFocus},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var i,n,s,o=0;o<t.length;
8o++)i=t[o][0],2===t[o].length?(n=e,s=t[o][1]):3===t[o].length&&(n=t[o][1],s=t[o][2]),i.on(s,n)},_unapplyEvents:function(t){for(var i,n,s,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(s=e,n=t[o][1]):3===t[o].length&&(s=t[o][1],n=t[o][2]),i.off(n,s)},_buildEvents:function(){var e={keyup:t.proxy((function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()}),this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),e],[this.component,{click:t.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:t.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:t.proxy((function(t){this._focused_from=t.target}),this)}],[this.element,{blur:t.proxy((function(t){this._focused_from=t.target}),this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy((function(t){this.update(t.date)}),this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{mousedown:t.proxy((function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.hide()}),this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var n=i||this.dates.get(-1),s=this._utc_to_local(n);this.element.trigger({type:e,date:s,dates:t.map(this.dates,this._utc_to_local),format:t.proxy((function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return f.formatDate(i,e,this.o.language)}),this)})},show:function(){if(!this.element.attr("readonly")||!1!==this.o.enableOnReadonly)return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this},hide:function(){return this.isInline?this:this.picker.is(":visible")?(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"),this):this},remove:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){return t&&new Date(t.getTime()+6e4*t.getTimezoneOffset())},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,(function(t){return new Date(t)}))},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return void 0!==t?new Date(t):null},clearDates:function(){var t;this.isInput?t=this.element:this.component&&(t=this.element.find("input")),t&&t.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t.map(e,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:s("setDates"),setUTCDate:s("setUTCDates"),setValue:function(){var t=this.getFormattedDate();return this.isInput?this.element.val(t):this.component&&this.element.find("input").val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var n=this.o.language;return t.map(this.dates,(function(t){return f.formatDate(t,i,n)})).join(this.o.multidateSeparator)},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){this._process_options({datesDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),n=t(this.o.container),s=n.width(),o=n.height(),a=n.scrollTop(),r=n.offset(),l=[];this.element.parents().each((function(){var e=t(this).css("z-index");"auto"!==e&&0!==e&&l.push(parseInt(e))}));var h=Math.max.apply(Math,l)+10,c=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),u=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),p=c.left-r.left,f=c.top-r.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(p-=e-u)):c.left<0?(this.picker.addClass("datepicker-orient-left"),p-=c.left-10):p+e>s?(this.picker.addClass("datepicker-orient-right"),p=c.left+u-e):this.picker.addClass("datepicker-orient-left");var g,m,v=this.o.orientation.y;if("auto"===v&&(g=-a+f-i,m=a+o-(f+d+i),v=Math.max(g,m)===m?"top":"bottom"),this.picker.addClass("datepicker-orient-"+v),"top"===v?f+=d:f-=i+parseInt(this.picker.css("padding-top")),this.o.rtl){var b=s-(p+u);this.picker.css({top:f,right:b,zIndex:h})}else this.picker.css({top:f,left:p,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],n=!1;return arguments.length?(t.each(arguments,t.proxy((function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)}),this)),n=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy((function(t){return f.parseDate(t,this.o.format,this.o.language)}),this)),i=t.grep(i,t.proxy((function(t){return t<this.o.startDate||t>this.o.endDate||!t}),this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,n?this.setValue():i.length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&e.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var t=this.o.weekStart,e="<tr>";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days thead tr:first-child .datepicker-switch").attr("colspan",(function(t,e){return parseInt(e)+1})),e+='<th class="cw"> </th>');t<this.o.weekStart+7;)e+='<th class="dow">'+p[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;
8)t+='<span class="month">'+p[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=t.map(e,(function(t){return t.valueOf()})):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),o=new Date;return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<s?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>s)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===o.getFullYear()&&e.getUTCMonth()===o.getMonth()&&e.getUTCDate()===o.getDate()&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),(e.valueOf()<this.o.startDate||e.valueOf()>this.o.endDate||-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled))&&i.push("disabled"),(e.valueOf()<this.o.startDate||e.valueOf()>this.o.endDate||-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted))&&i.push("highlighted"),this.o.datesDisabled.length>0&&t.grep(this.o.datesDisabled,(function(t){return function(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}(e,t)})).length>0&&i.push("disabled","disabled-date"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected")),i},fill:function(){var n,s=new Date(this.viewDate),o=s.getUTCFullYear(),a=s.getUTCMonth(),r=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,l=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,d=p[this.o.language].today||p.en.today||"",u=p[this.o.language].clear||p.en.clear||"";if(!isNaN(o)&&!isNaN(a)){this.picker.find(".datepicker-days thead .datepicker-switch").text(p[this.o.language].months[a]+" "+(this.o.maxViewMode<2?"":o)),this.picker.find("tfoot .today").text(d).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot .clear").text(u).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var g=i(o,a-1,28),m=f.getDaysInMonth(g.getUTCFullYear(),g.getUTCMonth());g.setUTCDate(m),g.setUTCDate(m-(g.getUTCDay()-this.o.weekStart+7)%7);var v=new Date(g);v.setUTCDate(v.getUTCDate()+42),v=v.valueOf();for(var b,y=[];g.valueOf()<v;){if(g.getUTCDay()===this.o.weekStart&&(y.push("<tr>"),this.o.calendarWeeks)){var w=new Date(+g+(this.o.weekStart-g.getUTCDay()-7)%7*864e5),C=new Date(Number(w)+(11-w.getUTCDay())%7*864e5),x=new Date(Number(x=i(C.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),D=(C-x)/864e5/7+1;y.push('<td class="cw">'+D+"</td>")}if((b=this.getClassNames(g)).push("day"),this.o.beforeShowDay!==t.noop){var k=this.o.beforeShowDay(this._utc_to_local(g));k===e?k={}:"boolean"==typeof k?k={enabled:k}:"string"==typeof k&&(k={classes:k}),!1===k.enabled&&b.push("disabled"),k.classes&&(b=b.concat(k.classes.split(/\s+/))),k.tooltip&&(n=k.tooltip)}b=t.unique(b),y.push('<td class="'+b.join(" ")+'"'+(n?' title="'+n+'"':"")+">"+g.getUTCDate()+"</td>"),n=null,g.getUTCDay()===this.o.weekEnd&&y.push("</tr>"),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(y.join(""));var T=this.picker.find(".datepicker-months").find("th:eq(1)").text(this.o.maxViewMode<2?"Months":o).end().find("span").removeClass("active");if(t.each(this.dates,(function(t,e){e.getUTCFullYear()===o&&T.eq(e.getUTCMonth()).addClass("active")})),(o<r||o>h)&&T.addClass("disabled"),o===r&&T.slice(0,l).addClass("disabled"),o===h&&T.slice(c+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var $=this;t.each(T,(function(e,i){if(!t(i).hasClass("disabled")){var n=new Date(o,e,1);!1===$.o.beforeShowMonth(n)&&t(i).addClass("disabled")}}))}y="",o=10*parseInt(o/10,10);var E=this.picker.find(".datepicker-years").find("th:eq(1)").text(o+"-"+(o+9)).end().find("td");o-=1;for(var S,_=t.map(this.dates,(function(t){return t.getUTCFullYear()})),O=-1;O<11;O++)S=["year"],-1===O?S.push("old"):10===O&&S.push("new"),-1!==t.inArray(o,_)&&S.push("active"),(o<r||o>h)&&S.push("disabled"),y+='<span class="'+S.join(" ")+'">'+o+"</span>",o+=1;E.html(y)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(e){e.preventDefault(),e.stopPropagation();var n,s,o,a=t(e.target).closest("span, td, th");if(1===a.length)switch(a[0].nodeName.toLowerCase()){case"th":switch(a[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=f.modes[this.viewMode].navStep*("prev"===a[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var l=new Date;l=i(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0),this.showMode(-2);var h="linked"===this.o.todayBtn?null:"view";this._setDate(l,h);break;case"clear":this.clearDates()}break;case"span":a.hasClass("disabled")||(this.viewDate.setUTCDate(1),a.hasClass("month")?(o=1,s=a.parent().find("span").index(a),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(s),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(i(n,s,o)),this.showMode()):this.showMode(-1)):(o=1,s=0,n=parseInt(a.text(),10)||0,this.viewDate.setUTCFullYear(n),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(i(n,s,o)),this.showMode(-1)),this.fill());break;case"td":a.hasClass("day")&&!a.hasClass("disabled")&&(o=parseInt(a.text(),10)||1,n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),a.hasClass("old")?0===s?(s=11,n-=1):s-=1:a.hasClass("new")&&(11===s?(s=0,n+=1):s+=1),this._setDate(i(n,s,o)))}this.picker.is(":visible")&&this._focused_from&&t(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):!1===this.o.multidate?(this.dates.clear(),this.dates.push(t)):this.dates.push(t),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){var i;e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,i){if(!t)return e;if(!i)return t;var n,s,o=new Date(t.valueOf()),a=o.getUTCDate(),r=o.getUTCMonth(),l=Math.abs(i);if(i=i>
80?1:-1,1===l)s=-1===i?function(){return o.getUTCMonth()===r}:function(){return o.getUTCMonth()!==n},n=r+i,o.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var h=0;h<l;h++)o=this.moveMonth(o,i);n=o.getUTCMonth(),o.setUTCDate(a),s=function(){return n!==o.getUTCMonth()}}for(;s();)o.setUTCDate(--a),o.setUTCMonth(n);return o},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":visible")){var e,i,s,o,a=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||n(),e),s=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||n(),e),s=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||n())).setUTCDate(i.getUTCDate()+e),(s=new Date(r)).setUTCDate(r.getUTCDate()+e)),this.dateWithinRange(s)&&(this.focusDate=this.viewDate=s,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||n(),e),s=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||n(),e),s=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):((i=new Date(this.dates.get(-1)||n())).setUTCDate(i.getUTCDate()+7*e),(s=new Date(r)).setUTCDate(r.getUTCDate()+7*e)),this.dateWithinRange(s)&&(this.focusDate=this.viewDate=s,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),a=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),"function"==typeof t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(a)this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?o=this.element:this.component&&(o=this.element.find("input")),o&&o.change()}else 40!==t.keyCode&&27!==t.keyCode||this.show()},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+t))),this.picker.children("div").hide().filter(".datepicker-"+f.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var l=function(e,i){this.element=t(e),this.inputs=t.map(i.inputs,(function(t){return t.jquery?t[0]:t})),delete i.inputs,c.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,(function(e){return t(e).data("datepicker")})),this.updateDates()};l.prototype={updateDates:function(){this.dates=t.map(this.pickers,(function(t){return t.getUTCDate()})),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,(function(t){return t.valueOf()}));t.each(this.pickers,(function(t,i){i.setRange(e)}))},dateUpdated:function(e){if(!this.updating){this.updating=!0;var i=t(e.target).data("datepicker").getUTCDate(),n=t.inArray(e.target,this.inputs),s=n-1,o=n+1,a=this.inputs.length;if(-1!==n){if(t.each(this.pickers,(function(t,e){e.getUTCDate()||e.setUTCDate(i)})),i<this.dates[s])for(;s>=0&&i<this.dates[s];)this.pickers[s--].setUTCDate(i);else if(i>this.dates[o])for(;o<a&&i>this.dates[o];)this.pickers[o++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){t.map(this.pickers,(function(t){t.remove()})),delete this.element.data().datepicker}};var h=t.fn.datepicker,c=function(i){var n,s=Array.apply(null,arguments);return s.shift(),this.each((function(){var o=t(this),a=o.data("datepicker"),h="object"==typeof i&&i;if(!a){var c=function(e,i){var n=t(e).data(),s={},o=new RegExp("^"+i.toLowerCase()+"([A-Z])");function a(t,e){return e.toLowerCase()}for(var r in i=new RegExp("^"+i.toLowerCase()),n)i.test(r)&&(s[r.replace(o,a)]=n[r]);return s}(this,"date"),f=function(e){var i={};if(p[e]||(e=e.split("-")[0],p[e])){var n=p[e];return t.each(u,(function(t,e){e in n&&(i[e]=n[e])})),i}}(t.extend({},d,c,h).language),g=t.extend({},d,f,c,h);
8if(o.hasClass("input-daterange")||g.inputs){var m={inputs:g.inputs||o.find("input").toArray()};o.data("datepicker",a=new l(this,t.extend(g,m)))}else o.data("datepicker",a=new r(this,g))}if("string"==typeof i&&"function"==typeof a[i]&&(n=a[i].apply(a,s))!==e)return!1})),n!==e?n:this};t.fn.datepicker=c;var d=t.fn.datepicker.defaults={autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:2,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,container:"body",immediateUpdates:!1},u=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=r;var p=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},f={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,f.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(n,s,o){if(!n)return e;if(n instanceof Date)return n;"string"==typeof s&&(s=f.parseFormat(s));var a,l,h,c=/([\-+]\d+)([dmwy])/,d=n.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(n)){for(n=new Date,h=0;h<d.length;h++)switch(a=c.exec(d[h]),l=parseInt(a[1]),a[2]){case"d":n.setUTCDate(n.getUTCDate()+l);break;case"m":n=r.prototype.moveMonth.call(r.prototype,n,l);break;case"w":n.setUTCDate(n.getUTCDate()+7*l);break;case"y":n=r.prototype.moveYear.call(r.prototype,n,l)}return i(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),0,0,0)}d=n&&n.match(this.nonpunctuation)||[],n=new Date;var u,g,m={},v=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};b.M=b.MM=b.mm=b.m,b.dd=b.d,n=i(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0);var y=s.parts.slice();function w(){var t=this.slice(0,d[h].length),e=d[h].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(d.length!==y.length&&(y=t(y).filter((function(e,i){return-1!==t.inArray(i,v)})).toArray()),d.length===y.length){var C,x,D;for(h=0,C=y.length;h<C;h++){if(u=parseInt(d[h],10),a=y[h],isNaN(u))switch(a){case"MM":g=t(p[o].months).filter(w),u=t.inArray(g[0],p[o].months)+1;break;case"M":g=t(p[o].monthsShort).filter(w),u=t.inArray(g[0],p[o].monthsShort)+1}m[a]=u}for(h=0;h<v.length;h++)(D=v[h])in m&&!isNaN(m[D])&&(x=new Date(n),b[D](x,m[D]),isNaN(x)||(n=x))}return n},formatDate:function(e,i,n){if(!e)return"";"string"==typeof i&&(i=f.parseFormat(i));var s={d:e.getUTCDate(),D:p[n].daysShort[e.getUTCDay()],DD:p[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:p[n].monthsShort[e.getUTCMonth()],MM:p[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var o=t.extend([],i.separators),a=0,r=i.parts.length;a<=r;a++)o.length&&e.push(o.shift()),e.push(s[i.parts[a]]);return e.join("")},headTemplate:'<thead><tr><th class="prev">«</th><th colspan="5" class="datepicker-switch"></th><th class="next">»</th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};f.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+f.headTemplate+"<tbody></tbody>"+f.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+f.headTemplate+f.contTemplate+f.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+f.headTemplate+f.contTemplate+f.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=f,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=h,this},t.fn.datepicker.version="1.4.1-dev",t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',(function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),c.call(i,"show"))})),t((function(){c.call(t('[data-provide="datepicker-inline"]'))}))}
8)),jQuery.fn.datepicker.dates.cs={days:["NedÄle","PondÄlÃÂ","Ãterý","StÅeda","Ätvrtek","Pátek","Sobota"],daysShort:["Ned","Pon","Ãte","StÅ","Ätv","Pát","Sob"],daysMin:["Ne","Po","Ãt","St","Ät","Pá","So"],months:["Leden","Ãnor","BÅezen","Duben","KvÄten","Äerven","Äervenec","Srpen","ZáÅÃÂ","ÅÃjen","Listopad","Prosinec"],monthsShort:["Led","Ãno","BÅe","Dub","KvÄ","Äer","Änc","Srp","ZáÅ","ÅÃj","Lis","Pro"],today:"Dnes",clear:"Vymazat",weekStart:1,format:"d.m.yyyy"},jQuery.cookie=function(t,e,i){if(arguments.length>1&&"[object Object]"!==String(e)){if(i=jQuery.extend({},i),null==e&&(i.expires=-1),"number"==typeof i.expires){var n=i.expires,s=i.expires=new Date;s.setDate(s.getDate()+n)}return e=String(e),document.cookie=[encodeURIComponent(t),"=",i.raw?e:cookie_encode(e),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}var o,a=(i=e||{}).raw?function(t){return t}:decodeURIComponent;return(o=new RegExp("(?:^|; )"+encodeURIComponent(t)+"=([^;]*)").exec(document.cookie))?a(o[1]):null},function(t,e,i){"function"==typeof define&&define.amd?define(["jquery"],(function(n){return i(n,t,e),n.mobile})):i(t.jQuery,t,e)}(this,document,(function(t,e,i,n){!function(t,e,i){var n,s,o="virtualMouseBindings",a="virtualTouchID",r="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),l="clientX clientY pageX pageY screenX screenY".split(" "),h=t.event.mouseHooks?t.event.mouseHooks.props:[],c=c=(t.event.props||[]).concat(h),d={},u=0,p=0,f=0,g=!1,m=[],v=!1,b=!1,y="addEventListener"in i,w=t(i),C=1,x=0;function D(t){for(;t&&void 0!==t.originalEvent;)t=t.originalEvent;return t}function k(e){for(var i,n,s={};e;){for(n in i=t.data(e,o))i[n]&&(s[n]=s.hasVirtualBinding=!0);e=e.parentNode}return s}function T(){b=!0}function $(){b=!1}function E(){S(),u=setTimeout((function(){u=0,x=0,m.length=0,v=!1,T()}),t.vmouse.resetTimerDuration)}function S(){u&&(clearTimeout(u),u=0)}function _(e,i,n){var s;return(n&&n[e]||!n&&function(e,i){for(var n;e;){if((n=t.data(e,o))&&(!i||n[i]))return e;e=e.parentNode}return null}(i.target,e))&&(s=function(e,i){var n,s,o,a,r,h,d,u,p,f=e.type;if((e=t.Event(e)).type=i,n=e.originalEvent,s=t.event.props,f.search(/^(mouse|click)/)>-1&&(s=c),n)for(d=s.length;d;)e[a=s[--d]]=n[a];if(f.search(/mouse(down|up)|click/)>-1&&!e.which&&(e.which=1),-1!==f.search(/^touch/)&&(f=(o=D(n)).touches,r=o.changedTouches,h=f&&f.length?f[0]:r&&r.length?r[0]:void 0))for(u=0,p=l.length;u<p;u++)e[a=l[u]]=h[a];return e}(i,e),t(i.target).trigger(s)),s}function O(e){var i,n=t.data(e.target,a);v||x&&x===n||(i=_("v"+e.type,e))&&(i.isDefaultPrevented()&&e.preventDefault(),i.isPropagationStopped()&&e.stopPropagation(),i.isImmediatePropagationStopped()&&e.stopImmediatePropagation())}function A(e){var i,n,s,o=D(e).touches;o&&1===o.length&&(n=k(i=e.target)).hasVirtualBinding&&(x=C++,t.data(i,a,x),S(),$(),g=!1,s=D(e).touches[0],p=s.pageX,f=s.pageY,_("vmouseover",e,n),_("vmousedown",e,n))}function I(t){b||(g||_("vmousecancel",t,k(t.target)),g=!0,E())}function N(e){if(!b){var i=D(e).touches[0],n=g,s=t.vmouse.moveDistanceThreshold,o=k(e.target);(g=g||Math.abs(i.pageX-p)>s||Math.abs(i.pageY-f)>s)&&!n&&_("vmousecancel",e,o),_("vmousemove",e,o),E()}}function M(t){if(!b){T();var e,i,n=k(t.target);_("vmouseup",t,n),g||(e=_("vclick",t,n))&&e.isDefaultPrevented()&&(i=D(t).changedTouches[0],m.push({touchID:x,x:i.clientX,y:i.clientY}),v=!0),_("vmouseout",t,n),g=!1,E()}}function U(e){var i,n=t.data(e,o);if(n)for(i in n)if(n[i])return!0;return!1}function F(){}function R(e){var i=e.substr(1);return{setup:function(){U(this)||t.data(this,o,{}),t.data(this,o)[e]=!0,d[e]=(d[e]||0)+1,1===d[e]&&w.bind(i,O),t(this).bind(i,F),y&&(d.touchstart=(d.touchstart||0)+1,1===d.touchstart&&w.bind("touchstart",A).bind("touchend",M).bind("touchmove",N).bind("scroll",I))},teardown:function(){--d[e],d[e]||w.unbind(i,O),y&&(--d.touchstart,d.touchstart||w.unbind("touchstart",A).unbind("touchmove",N).unbind("touchend",M).unbind("scroll",I));var n=t(this),s=t.data(this,o);s&&(s[e]=!1),n.unbind(i,F),U(this)||n.removeData(o)}}}for(t.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},s=0;s<r.length;s++)t.event.special[r[s]]=R(r[s]);y&&i.addEventListener("click",(function(e){var i,s,o,r,l,h=m.length,c=e.target;if(h)for(i=e.clientX,s=e.clientY,n=t.vmouse.clickDistanceThreshold,o=c;o;){for(r=0;r<h;
8r++)if(l=m[r],o===c&&Math.abs(l.x-i)<n&&Math.abs(l.y-s)<n||t.data(o,a)===l.touchID)return e.preventDefault(),void e.stopPropagation();o=o.parentNode}}),!0)}(t,0,i),t.mobile={},function(t){var e={touch:"ontouchend"in i};t.mobile.support=t.mobile.support||{},t.extend(t.support,e),t.extend(t.mobile.support,e)}(t),function(t,e){var n=t(i),s=t.mobile.support.touch,o="touchmove scroll",a=s?"touchstart":"mousedown",r=s?"touchend":"mouseup",l=s?"touchmove":"mousemove";function h(e,i,n,s){var o=n.type;n.type=i,s?t.event.trigger(n,undefined,e):t.event.dispatch.call(e,n),n.type=o}t.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),(function(e,i){t.fn[i]=function(t){return t?this.bind(i,t):this.trigger(i)},t.attrFn&&(t.attrFn[i]=!0)})),t.event.special.scrollstart={enabled:!0,setup:function(){var e,i,n=this;function s(t,i){h(n,(e=i)?"scrollstart":"scrollstop",t)}t(n).bind(o,(function(n){t.event.special.scrollstart.enabled&&(e||s(n,!0),clearTimeout(i),i=setTimeout((function(){s(n,!1)}),50))}))},teardown:function(){t(this).unbind(o)}},t.event.special.tap={tapholdThreshold:750,emitTapOnTaphold:!0,setup:function(){var e=this,i=t(e),s=!1;i.bind("vmousedown",(function(o){if(s=!1,o.which&&1!==o.which)return!1;var a,r=o.target;function l(){clearTimeout(a)}function c(){l(),i.unbind("vclick",d).unbind("vmouseup",l),n.unbind("vmousecancel",c)}function d(t){c(),s||r!==t.target?s&&t.preventDefault():h(e,"tap",t)}i.bind("vmouseup",l).bind("vclick",d),n.bind("vmousecancel",c),a=setTimeout((function(){t.event.special.tap.emitTapOnTaphold||(s=!0),h(e,"taphold",t.Event("taphold",{target:r}))}),t.event.special.tap.tapholdThreshold)}))},teardown:function(){t(this).unbind("vmousedown").unbind("vclick").unbind("vmouseup"),n.unbind("vmousecancel")}},t.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:30,getLocation:function(t){var i=e.pageXOffset,n=e.pageYOffset,s=t.clientX,o=t.clientY;return 0===t.pageY&&Math.floor(o)>Math.floor(t.pageY)||0===t.pageX&&Math.floor(s)>Math.floor(t.pageX)?(s-=i,o-=n):(o<t.pageY-n||s<t.pageX-i)&&(s=t.pageX-i,o=t.pageY-n),{x:s,y:o}},start:function(e){var i=e.originalEvent.touches?e.originalEvent.touches[0]:e,n=t.event.special.swipe.getLocation(i);return{time:(new Date).getTime(),coords:[n.x,n.y],origin:t(e.target)}},stop:function(e){var i=e.originalEvent.touches?e.originalEvent.touches[0]:e,n=t.event.special.swipe.getLocation(i);return{time:(new Date).getTime(),coords:[n.x,n.y]}},handleSwipe:function(e,i,n,s){if(i.time-e.time<t.event.special.swipe.durationThreshold&&Math.abs(e.coords[0]-i.coords[0])>t.event.special.swipe.horizontalDistanceThreshold&&Math.abs(e.coords[1]-i.coords[1])<t.event.special.swipe.verticalDistanceThreshold){var o=e.coords[0]>i.coords[0]?"swipeleft":"swiperight";return h(n,"swipe",t.Event("swipe",{target:s,swipestart:e,swipestop:i}),!0),h(n,o,t.Event(o,{target:s,swipestart:e,swipestop:i}),!0),!0}return!1},eventInProgress:!1,setup:function(){var e,i=this,s=t(i),o={};(e=t.data(this,"mobile-events"))||(e={length:0},t.data(this,"mobile-events",e)),e.length++,e.swipe=o,o.start=function(e){if(!t.event.special.swipe.eventInProgress){t.event.special.swipe.eventInProgress=!0;var s,a=t.event.special.swipe.start(e),h=e.target,c=!1;o.move=function(e){a&&!e.isDefaultPrevented()&&(s=t.event.special.swipe.stop(e),c||(c=t.event.special.swipe.handleSwipe(a,s,i,h))&&(t.event.special.swipe.eventInProgress=!1),Math.abs(a.coords[0]-s.coords[0])>t.event.special.swipe.scrollSupressionThreshold&&e.preventDefault())},o.stop=function(){c=!0,t.event.special.swipe.eventInProgress=!1,n.off(l,o.move),o.move=null},n.on(l,o.move).one(r,o.stop)}},s.on(a,o.start)},teardown:function(){var e,i;(e=t.data(this,"mobile-events"))&&(i=e.swipe,delete e.swipe,e.length--,0===e.length&&t.removeData(this,"mobile-events")),i&&(i.start&&t(this).off(a,i.start),i.move&&n.off(l,i.move),i.stop&&n.off(r,i.stop))}},t.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe.left",swiperight:"swipe.right"},(function(e,i){t.event.special[e]={setup:function(){t(this).bind(i,t.noop)},teardown:function(){t(this).unbind(i)}}}))}(t,this)})),function(t,e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,(function t(e,i){var n={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>
8",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>×</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},s={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},o={};function a(t){var e=p[s.locale];return e?e[t]:p.en[t]}function r(t,i,n){t.stopPropagation(),t.preventDefault(),e.isFunction(n)&&!1===n.call(i,t)||i.modal("hide")}function l(t,i){var n=0;e.each(t,(function(t,e){i(t,e,n++)}))}function h(t,i,n){return e.extend(!0,{},t,function(t,e){var i=t.length,n={};if(i<1||i>2)throw new Error("Invalid argument length");return 2===i||"string"==typeof t[0]?(n[e[0]]=t[0],n[e[1]]=t[1]):n=t[0],n}(i,n))}function c(t,e,i,n){return u(h({className:"bootbox-"+t,buttons:d.apply(null,e)},n,i),e)}function d(){for(var t={},e=0,i=arguments.length;e<i;e++){var n=arguments[e],s=n.toLowerCase(),o=n.toUpperCase();t[s]={label:a(o)}}return t}function u(t,e){var n={};return l(e,(function(t,e){n[e]=!0})),l(t.buttons,(function(t){if(n[t]===i)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")})),t}o.alert=function(){var t;if((t=c("alert",["ok"],["message","callback"],arguments)).callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return!e.isFunction(t.callback)||t.callback.call(this)},o.dialog(t)},o.confirm=function(){var t;if((t=c("confirm",["cancel","confirm"],["message","callback"],arguments)).buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!e.isFunction(t.callback))throw new Error("confirm requires a callback");return o.dialog(t)},o.prompt=function(){var t,s,a,r,c,p,f;if(r=e(n.form),s={className:"bootbox-prompt",buttons:d("cancel","confirm"),value:"",inputType:"text"},p=(t=u(h(s,arguments,["title","callback"]),["cancel","confirm"])).show===i||t.show,t.message=r,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var i;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":i=c.val();break;case"checkbox":var n=c.find("input:checked");i=[],l(n,(function(t,n){i.push(e(n).val())}))}return t.callback.call(this,i)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!e.isFunction(t.callback))throw new Error("prompt requires a callback");if(!n.inputs[t.inputType])throw new Error("invalid prompt type");switch(c=e(n.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":c.val(t.value);break;case"select":var g={};if(f=t.inputOptions||[],!e.isArray(f))throw new Error("Please pass an array of input options");if(!f.length)throw new Error("prompt with select requires options");l(f,(function(t,n){var s=c;if(n.value===i||n.text===i)throw new Error("given options in wrong format");n.group&&(g[n.group]||(g[n.group]=e("<optgroup/>").attr("label",n.group)),s=g[n.group]),s.append("<option value='"+n.value+"'>"+n.text+"</option>")})),l(g,(function(t,e){c.append(e)})),c.val(t.value);break;case"checkbox":var m=e.isArray(t.value)?t.value:[t.value];if(!(f=t.inputOptions||[]).length)throw new Error("prompt with checkbox requires options");
8if(!f[0].value||!f[0].text)throw new Error("given options in wrong format");c=e("<div/>"),l(f,(function(i,s){var o=e(n.inputs[t.inputType]);o.find("input").attr("value",s.value),o.find("label").append(s.text),l(m,(function(t,e){e===s.value&&o.find("input").prop("checked",!0)})),c.append(o)}))}return t.placeholder&&c.attr("placeholder",t.placeholder),t.pattern&&c.attr("pattern",t.pattern),t.maxlength&&c.attr("maxlength",t.maxlength),r.append(c),r.on("submit",(function(t){t.preventDefault(),t.stopPropagation(),a.find(".btn-primary").click()})),(a=o.dialog(t)).off("shown.bs.modal"),a.on("shown.bs.modal",(function(){c.focus()})),!0===p&&a.modal("show"),a},o.dialog=function(t){t=function(t){var i,n;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return(t=e.extend({},s,t)).buttons||(t.buttons={}),i=t.buttons,n=function(t){var e,i=0;for(e in t)i++;return i}(i),l(i,(function(t,s,o){if(e.isFunction(s)&&(s=i[t]={callback:s}),"object"!==e.type(s))throw new Error("button with key "+t+" must be an object");s.label||(s.label=t),s.className||(s.className=n<=2&&o===n-1?"btn-primary":"btn-default")})),t}(t);var o=e(n.dialog),a=o.find(".modal-dialog"),h=o.find(".modal-body"),c=t.buttons,d="",u={onEscape:t.onEscape};if(e.fn.modal===i)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(l(c,(function(t,e){d+="<button data-bb-handler='"+t+"' type='button' class='btn "+e.className+"'>"+e.label+"</button>",u[t]=e.callback})),t.message&&"string"!=typeof t.message&&(t.message.parentNode||t.message.jquery)){var p=t.message.jquery?t.message[0]:t.message,f={};e(window).data("bootbox.history",f),f.el=p,f.parent=p.parentNode,f.display=p.style.display,f.position=p.style.position,f.parent&&f.parent.removeChild(p),t.placeContentBackIn&&(f.newParent=document.getElementById(t.placeContentBackIn.substr(1)))}if(h.find(".bootbox-body").html(t.message),!0===t.animate&&o.addClass("fade"),t.className&&o.addClass(t.className),"large"===t.size?a.addClass("modal-lg"):"small"===t.size&&a.addClass("modal-sm"),t.title&&h.before(n.header),t.closeButton){var g=e(n.closeButton);t.title?o.find(".modal-header").prepend(g):g.css("margin-top","-10px").prependTo(h)}return t.title&&o.find(".modal-title").html(t.title),d.length&&(h.after(n.footer),o.find(".modal-footer").html(d)),o.on("hidden.bs.modal",(function(t){if(t.target===this){var n=e(window).data("bootbox.history"),s=o.find(".bootbox-body").children().attr("id");n&&n.el&&n.el.id===s&&(n.el.style.display=n.display,n.el.style.position=n.position,null!==n.newParent&&n.newParent!==i?n.newParent.appendChild(n.el):n.parent&&n.parent.appendChild(n.el),e(window).removeData("bootbox.history")),o.remove()}})),"static"!==t.backdrop&&o.on("click.dismiss.bs.modal",(function(t){o.children(".modal-backdrop").length&&(t.currentTarget=o.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&o.trigger("escape.close.bb")})),o.on("escape.close.bb",(function(t){u.onEscape&&r(t,o,u.onEscape)})),o.on("click",".modal-footer button",(function(t){var i=e(this).data("bb-handler");r(t,o,u[i])})),o.on("click",".bootbox-close-button",(function(t){r(t,o,u.onEscape)})),o.on("keyup",(function(t){27===t.which&&o.trigger("escape.close.bb")})),e(t.container).append(o),o.modal({backdrop:!!t.backdrop&&"static",keyboard:!1,show:!1}),t.show&&o.modal("show"),o},o.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],e.extend(s,t)},o.hideAll=function(){return e(".bootbox").modal("hide"),o};var p={bg_BG:{OK:"ÄžÄÅ",CANCEL:"ÄžÅâÄÅİķ",CONFIRM:"ğľÅâÄËÅÅ Åâ¬Ä¶Ä´Ä°ÄËİļ"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"ZruĹËit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Ãâ¢ÃËÄâÃ¬ÃľÃµÃÄ
",CANCEL:"ÃâÃÅÄŤÄÂÄâ°ÄÂ÷",CONFIRM:"Ãâ¢Äâ¬ÃÄ
ÃËõÃËñÃÅ»Äâ°ÄÂ÷"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"Å®âŨŮÂÅ®â",CANCEL:"Å®âÅÅÅ®Â",CONFIRM:"ÅÅŧŰÅŰÅÅÅ»"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"ÃÂÃâ¢Ã©Ãâ¢Ã¨",CANCEL:"ÃâÃâ¢ÃÂÃâ¢ÃÅ",CONFIRM:"ÃÂÃâ¢Ã©Ãâ¢Ã¨"},hu:{OK:"OK",CANCEL:"MÄ©gsem",CONFIRM:"MegerĹâsÄÂt"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"ÄâÂÄÂÅÄÂÅÄâ»Ä«",CONFIRM:"çËÅÄÅŤ"},lt:{OK:"Gerai",CANCEL:"AtĹËaukti",CONFIRM:"Patvirtinti"}
8,lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"ApstiprinÃÂt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"PotwierdĹÅ"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"ÄžÅâļĵÄËİ",CONFIRM:"ÄźÅâ¬Ä¸ÄĽÄµÄËĸÅâÅÅ"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"Ÿâ¢Å¸ÂŸÄŸâ¡",CANCEL:"ŸËŸÂÅÄ
â¬Å¸ÄŸ´Å¸Â",CONFIRM:"ŸËŸ·Å¸â¢Å¸ËŸ±Å¸â¢"},tr:{OK:"Tamam",CANCEL:"ðptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"ĺŹâĶÂ",CONFIRM:"çˮĮ¤"},zh_TW:{OK:"OK",CANCEL:"ĺŹâĶÂ",CONFIRM:"çËÅÄÅŤ"}};return o.addLocale=function(t,i){return e.each(["OK","CANCEL","CONFIRM"],(function(t,e){if(!i[e])throw new Error("Please supply a translation for '"+e+"'")})),p[t]={OK:i.OK,CANCEL:i.CANCEL,CONFIRM:i.CONFIRM},o},o.removeLocale=function(t){return delete p[t],o},o.setLocale=function(t){return o.setDefaults("locale",t)},o.init=function(i){return t(i||e)},o})),function(){var t=[];function e(){for(;t.length;)t[0](),t.shift()}if(window.MutationObserver){var i=document.createElement("div");new MutationObserver(e).observe(i,{attributes:!0});var n=function(){i.setAttribute("x",0)}}else n=function(){setTimeout(e)};function s(t){this.a=o,this.b=void 0,this.f=[];var e=this;try{t((function(t){a(e,t)}),(function(t){r(e,t)}))}catch(t){r(e,t)}}var o=2;function a(t,e){if(t.a===o){if(e===t)throw new TypeError("Promise settled with itself.");var i=!1;try{var n=e&&e.then;if(null!==e&&"object"==typeof e&&"function"==typeof n)return void n.call(e,(function(e){i||a(t,e),i=!0}),(function(e){i||r(t,e),i=!0}))}catch(e){return void(i||r(t,e))}t.a=0,t.b=e,l(t)}}function r(t,e){if(t.a===o){if(e===t)throw new TypeError("Promise settled with itself.");t.a=1,t.b=e,l(t)}}function l(e){!function(e){t.push(e),1===t.length&&n()}((function(){if(e.a!==o)for(;e.f.length;){var t=(s=e.f.shift())[0],i=s[1],n=s[2],s=s[3];try{0===e.a?n("function"==typeof t?t.call(void 0,e.b):e.b):1===e.a&&("function"==typeof i?n(i.call(void 0,e.b)):s(e.b))}catch(t){s(t)}}}))}s.prototype.g=function(t){return this.c(void 0,t)},s.prototype.c=function(t,e){var i=this;return new s((function(n,s){i.f.push([t,e,n,s]),l(i)}))},window.Promise||(window.Promise=s,window.Promise.resolve=function(t){return new s((function(e){e(t)}))},window.Promise.reject=function(t){return new s((function(e,i){i(t)}))},window.Promise.race=function(t){return new s((function(e,i){for(var n=0;n<t.length;n+=1)t[n].c(e,i)}))},window.Promise.all=function(t){return new s((function(e,i){function n(i){return function(n){o[i]=n,(s+=1)===t.length&&e(o)}}var s=0,o=[];0===t.length&&e(o);for(var a=0;a<t.length;a+=1)t[a].c(n(a),i)}))},window.Promise.prototype.then=s.prototype.c,window.Promise.prototype.catch=s.prototype.g)}(),function(){var t=[];function e(){for(;t.length;)t[0](),t.shift()}if(window.MutationObserver){var i=document.createElement("div");new MutationObserver(e).observe(i,{attributes:!0});var n=function(){i.setAttribute("x",0)}}else n=function(){setTimeout(e)};function s(t){this.a=o,this.b=void 0,this.f=[];var e=this;try{t((function(t){a(e,t)}),(function(t){r(e,t)}))}catch(t){r(e,t)}}var o=2;function a(t,e){if(t.a===o){if(e===t)throw new TypeError("Promise settled with itself.");var i=!1;try{var n=e&&e.then;if(null!==e&&"object"==typeof e&&"function"==typeof n)return void n.call(e,(function(e){i||a(t,e),i=!0}),(function(e){i||r(t,e),i=!0}))}catch(e){return void(i||r(t,e))}t.a=0,t.b=e,l(t)}}function r(t,e){if(t.a===o){if(e===t)throw new TypeError("Promise settled with itself.");t.a=1,t.b=e,l(t)}}function l(e){!function(e){t.push(e),1===t.length&&n()}((function(){if(e.a!==o)for(;e.f.length;){var t=(s=e.f.shift())[0],i=s[1],n=s[2],s=s[3];try{0===e.a?n("function"==typeof t?t.call(void 0,e.b):e.b):1===e.a&&("function"==typeof i?n(i.call(void 0,e.b)):s(e.b))}catch(t){s(t)}}}))}s.prototype.g=function(t){return this.c(void 0,t)},s.prototype.c=function(t,e){var i=this;return new s((function(n,s){i.f.push([t,e,n,s]),l(i)}))},window.Promise||(window.Promise=s,window.Promise.resolve=function(t){return new s((function(e){e(t)}))},window.Promise.reject=function(t){return new s((function(e,i){i(t)}))},window.Promise.race=function(t){return new s((function(e,i){for(var n=0;n<t.length;n+=1)t[n].c(e,i)}))},window.Promise.all=function(t){return new s((function(e,i){function n(i){return function(n){o[i]=n,(s+=1)===t.length&&e(o)}}var s=0,o=[];0===t.length&&e(o);for(var a=0;a<t.length;a+=1)t[a].c(n(a),i)}))},window.Promise.prototype.then=s.prototype.c,window.Promise.prototype.catch=s.prototype.g)}(),function(){function t(t){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(t)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.g=document.createElement("span"),this.f=-1,this.b.style.cssText="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.g.style.cssText="display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;",this.b.appendChild(this.h),this.c.appendChild(this.g),this.a.appendChild(this.b),this.a.appendChild(this.c)}function e(t,e,i){t.a.style.cssText="min-width:20px;min-height:20px;
8display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;left:-999px;white-space:nowrap;font-size:100px;font-family:"+e+";"+i}function i(t){var e=t.a.offsetWidth,i=e+100;return t.g.style.width=i+"px",t.c.scrollLeft=i,t.b.scrollLeft=t.b.scrollWidth+100,t.f!==e&&(t.f=e,!0)}function n(t,e){t.b.addEventListener("scroll",(function(){i(t)&&null!==t.a.parentNode&&e(t.f)}),!1),t.c.addEventListener("scroll",(function(){i(t)&&null!==t.a.parentNode&&e(t.f)}),!1),i(t)}function s(t,e){var i=e||{};this.family=t,this.style=i.style||"normal",this.variant=i.variant||"normal",this.weight=i.weight||"normal",this.stretch=i.stretch||"stretch",this.featureSettings=i.featureSettings||"normal"}var o=null;s.prototype.a=function(i,s){var a=i||"BESbswy",r=s||3e3,l="font-style:"+this.style+";font-variant:"+this.variant+";font-weight:"+this.weight+";font-stretch:"+this.stretch+";font-feature-settings:"+this.featureSettings+";-moz-font-feature-settings:"+this.featureSettings+";-webkit-font-feature-settings:"+this.featureSettings+";",h=document.createElement("div"),c=new t(a),d=new t(a),u=new t(a),p=-1,f=-1,g=-1,m=-1,v=-1,b=-1,y=this;return new Promise((function(t,i){function s(){null!==h.parentNode&&h.parentNode.removeChild(h)}function a(){if((-1!==p&&-1!==f||-1!==p&&-1!==g||-1!==f&&-1!==g)&&(p===f||p===g||f===g)){if(null===o){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);o=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}o&&(p===m&&f===m&&g===m||p===v&&f===v&&g===v||p===b&&f===b&&g===b)||(s(),t(y))}}!function(t){!function e(){document.body?t():setTimeout(e,0)}()}((function(){var t=Date.now();e(c,"sans-serif",l),e(d,"serif",l),e(u,"monospace",l),h.appendChild(c.a),h.appendChild(d.a),h.appendChild(u.a),document.body.appendChild(h),m=c.a.offsetWidth,v=d.a.offsetWidth,b=u.a.offsetWidth,function e(){if(Date.now()-t>=r)s(),i(y);else{var n=document.hidden;!0!==n&&void 0!==n||(p=c.a.offsetWidth,f=d.a.offsetWidth,g=u.a.offsetWidth,a()),setTimeout(e,50)}}(),n(c,(function(t){p=t,a()})),e(c,y.family+",sans-serif",l),n(d,(function(t){f=t,a()})),e(d,y.family+",serif",l),n(u,(function(t){g=t,a()})),e(u,y.family+",monospace",l)}))}))},window.FontFaceObserver=s,window.FontFaceObserver.prototype.check=s.prototype.a}(), 9/*! 10 * jQuery throttle / debounce - v1.1 - 3/7/2010 11 * http://benalman.com/projects/jquery-throttle-debounce-plugin/ 12 * 13 * Copyright (c) 2010 "Cowboy" Ben Alman 14 * Dual licensed under the MIT and GPL licenses. 15 * http://benalman.com/about/license/ 16 */ 17function(t,e){var i,n=t.jQuery||t.Cowboy||(t.Cowboy={});n.throttle=i=function(t,i,s,o){var a,r=0;function l(){var n=this,l=+new Date-r,h=arguments;function c(){r=+new Date,s.apply(n,h)}o&&!a&&c(),a&&clearTimeout(a),o===e&&l>t?c():!0!==i&&(a=setTimeout(o?function(){a=e}:c,o===e?t-l:t))}return"boolean"!=typeof i&&(o=s,s=i,i=e),n.guid&&(l.guid=s.guid=s.guid||n.guid++),l},n.debounce=function(t,n,s){return s===e?i(t,n,!1):i(t,s,!1!==n)}}(this),function(t){var e={},i={};t.ajaxq=function(n,s){if(void 0===s)throw"AjaxQ: queue name is not provided";var o=t.Deferred(),a=o.promise();a.success=a.done,a.error=a.fail,a.complete=a.always;var r=t.extend(!0,{},s);return function(t){if(e[n])e[n].push(t);else{e[n]=[];var s=t();i[n]=s}}((function(){var e=t.ajax.apply(window,[r]);return e.done((function(){o.resolve.apply(this,arguments)})),e.fail((function(){o.reject.apply(this,arguments)})),e.always(l),e})),a;function l(){if(e[n]){var t=e[n].shift();if(t){var s=t();i[n]=s}else delete e[n],delete i[n]}}},t.each(["getq","postq"],(function(e,i){t[i]=function(e,n,s,o,a){return t.isFunction(s)&&(a=a||o,o=s,s=void 0),t.ajaxq(e,{type:"postq"===i?"post":"get",url:n,data:s,success:o,dataType:a})}}));var n=function(t){return e.hasOwnProperty(t)};t.ajaxq.isRunning=function(t){return t?n(t):function(){for(var t in e)if(n(t))return!0;return!1}()},t.ajaxq.getActiveRequest=function(t){if(!t)throw"AjaxQ: queue name is required";return i[t]},t.ajaxq.abort=function(n){if(!n)throw"AjaxQ: queue name is required";var s=t.ajaxq.getActiveRequest(n);delete e[n],delete i[n],s&&s.abort()},t.ajaxq.clear=function(t){if(t)e[t]&&(e[t]=[]);else for(var i in e)e.hasOwnProperty(i)&&(e[i]=[])}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?t(require("jquery")):t(jQuery)}((function(t){var e,i=navigator.userAgent,n=/iphone/i.test(i),s=/chrome/i.test(i),o=/android/i.test(i);t.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},t.fn.extend({caret:function(t,e){var i;if(0!==this.length&&!this.is(":hidden")&&this.get(0)===document.activeElement)return"number"==typeof t?(e="number"==typeof e?e:t,this.each((function(){this.setSelectionRange?this.setSelectionRange(t,e):this.createTextRange&&((i=this.createTextRange()).collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select())}))):(this[0].setSelectionRange?(t=this[0].selectionStart,e=this[0].selectionEnd):document.selection&&document.selection.createRange&&(i=document.selection.createRange(),t=0-i.duplicate().moveStart("character",-1e5),e=t+i.text.length),{begin:t,end:e})},unmask:function(){return this.trigger("unmask")},mask:function(i,a){var r,l,h,c,d,u,p;if(!i&&this.length>0){var f=t(this[0]).data(t.mask.dataName);return f?f():void 0}return a=t.extend({autoclear:t.mask.autoclear,placeholder:t.mask.placeholder,completed:null},a),r=t.mask.definitions,l=[],h=u=i.length,c=null,i=String(i),t.each(i.split(""),(function(t,e){"?"==e?(u--,h=t):r[e]?(l.push(new RegExp(r[e])),null===c&&(c=l.length-1),t<h&&(d=l.length-1)):l.push(null)})),this.trigger("unmask").each((function(){var f=t(this),g=t.map(i.split(""),(function(t,e){if("?"!=t)return r[t]?y(e):t})),m=g.join(""),v=f.val();function b(){if(a.completed){for(var t=c;t<=d;t++)if(l[t]&&g[t]===y(t))return;a.completed.call(f)}}function y(t){return t<a.placeholder.length?a.placeholder.charAt(t):a.placeholder.charAt(0)}function w(t){for(;++t<u&&!l[t];);return t}function C(t,e){var i,n;if(!(t<0)){for(i=t,n=w(e);i<u;
17i++)if(l[i]){if(!(n<u&&l[i].test(g[n])))break;g[i]=g[n],g[n]=y(n),n=w(n)}k(),f.caret(Math.max(c,t))}}function x(t){T(),f.val()!=v&&f.change()}function D(t,e){var i;for(i=t;i<e&&i<u;i++)l[i]&&(g[i]=y(i))}function k(){f.val(g.join(""))}function T(t){var e,i,n,s=f.val(),o=-1;for(e=0,n=0;e<u;e++)if(l[e]){for(g[e]=y(e);n++<s.length;)if(i=s.charAt(n-1),l[e].test(i)){g[e]=i,o=e;break}if(n>s.length){D(e+1,u);break}}else g[e]===s.charAt(n)&&n++,e<h&&(o=e);return t?k():o+1<h?a.autoclear||g.join("")===m?(f.val()&&f.val(""),D(0,u)):k():(k(),f.val(f.val().substring(0,o+1))),h?e:c}f.data(t.mask.dataName,(function(){return t.map(g,(function(t,e){return l[e]&&t!=y(e)?t:null})).join("")})),f.one("unmask",(function(){f.off(".mask").removeData(t.mask.dataName)})).on("focus.mask",(function(){var t;f.prop("readonly")||(clearTimeout(e),v=f.val(),t=T(),e=setTimeout((function(){f.get(0)===document.activeElement&&(k(),t==i.replace("?","").length?f.caret(0,t):f.caret(t))}),10))})).on("blur.mask",x).on("keydown.mask",(function(t){if(!f.prop("readonly")){var e,i,s,o=t.which||t.keyCode;if(p=f.val(),8===o||46===o||n&&127===o)i=(e=f.caret()).begin,(s=e.end)-i==0&&(i=46!==o?function(t){for(;--t>=0&&!l[t];);return t}(i):s=w(i-1),s=46===o?w(s):s),D(i,s),C(i,s-1),t.preventDefault();else if(13===o)x.call(this,t);else if(27===o)f.val(v),f.caret(0,T()),t.preventDefault();else{var a;if(o>=37&&o<=40)return(a=jQuery.Event("keypress")).which=o,void f.trigger(a);if(o>=37&&o<=40)return(a=jQuery.Event("keypress")).which=o,void f.trigger(a)}}})).on("keypress.mask",(function(e){if(!f.prop("readonly")){var i,n,s,a=e.which||e.keyCode,r=f.caret();if(!(e.ctrlKey||e.altKey||e.metaKey||a<32)&&!(a>=37&&a<=40)&&!(a>=112&&a<=123)&&a&&13!==a){if(r.end-r.begin!=0&&(D(r.begin,r.end),C(r.begin,r.end-1)),(i=w(r.begin-1))<u&&(n=String.fromCharCode(a),l[i].test(n))){if(function(t){var e,i,n,s;for(e=t,i=y(t);e<u;e++)if(l[e]){if(n=w(e),s=g[e],g[e]=i,!(n<u&&l[n].test(s)))break;i=s}}(i),g[i]=n,k(),s=w(i),o){setTimeout((function(){t.proxy(t.fn.caret,f,s)()}),0)}else f.caret(s);r.begin<=d&&b()}e.preventDefault()}}})).on("keyup.mask",(function(t){var e=f.caret().begin,i=T();e>=i?f.caret(i):f.caret(e),f.val()!=v&&f.change()})).on("input.mask paste.mask",(function(){f.prop("readonly")||setTimeout((function(){var t=T(!0);f.caret(t),b()}),0)})),s&&o&&f.off("input.mask").on("input.mask",(function(t){var e=f.val(),i=f.caret();if(p&&p.length&&p.length>e.length){for(T(!0);i.begin>0&&!l[i.begin-1];)i.begin--;if(0===i.begin)for(;i.begin<c&&!l[i.begin];)i.begin++;f.caret(i.begin,i.begin)}else{T(!0);var n=e.charAt(i.begin);i.begin<u&&(l[i.begin]||i.begin++,l[i.begin].test(n)&&i.begin++),f.caret(i.begin,i.begin)}b()})),T()}))}})})),function(t,e,i,n){var s="disturber",o={scenes:[],offset:-130,classHolder:"out-of-view",mobile:!0};function a(e,i){this.element=e,this.settings=t.extend({},o,i),this._defaults=o,this._name=s,this.elements=[],this.view={},this.scrollTimer,this.scrollDelay=500,this.init()}t.extend(a.prototype,{init:function(){this.isDeviceCompatible()&&(this.mapScenes(),this.attachEvents(),this.handleChange())},mapScenes:function(){var t=this;this.settings.scenes.forEach((function(e){t.identifyScene(t,e)}))},identifyScene:function(e,i){t(i.selector).each((function(n){var s={selector:i.selector,index:n,action:i.action,position:t(this).offset(),height:t(this).height()};e.elements.push(s)}))},attachEvents:function(){var i=this;t(e).on("scroll.disturber",(function(){i.scrollTimer||(i.scrollTimer=setTimeout((function(){i.handleChange()}),i.scrollDelay))})),t(e).on("resize.disturber",(function(){i.handleChange()}))},detachEvents:function(){this.scrollTimer=null,t(e).unbind("scroll.disturber"),t(e).unbind("resize.disturber")},isDeviceCompatible:function(){var t=this;return!(!this.settings.mobile&&this.isMobile())||(jQuery("body ."+t.settings.classHolder).each((function(){jQuery(this).removeClass(t.settings.classHolder)})),!1)},handleChange:function(){this.scrollTimer=null,this.updateView(),this.getVisibleScenes(),this.handleStateChange()},handleStateChange:function(){var t=!0;this.elements.forEach((function(e,i){if(e.visible===n)return t=!1,!1})),t&&this.detachEvents()},getVisibleScenes:function(){var t=this;
17this.elements.forEach((function(e,i){(e.height+t.view.boundaries.bottom>=t.view.document.height||e.position.top<t.view.boundaries.bottom+t.settings.offset)&&e.visible===n&&(e.visible=!0,t.updateScene(e))}))},updateScene:function(e){t(e.selector).eq(e.index).removeClass(this.settings.classHolder),e.action.css!=n&&t(e.selector).eq(e.index).addClass(e.action.css),e.action.js!=n&&e.action.js.call(t(e.selector).eq(e.index))},updateView:function(){this.view.document={height:t(i).height()},this.view.boundaries={top:t(i).scrollTop(),bottom:t(i).scrollTop()+t(e).height()}},isMobile:function(){return/Android|iPad|iPod|webOS|iPhone|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}}),t.fn[s]=function(e){return this.each((function(){t.data(this,"plugin_"+s)||t.data(this,"plugin_"+s,new a(this,e))}))}}(jQuery,window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.