function progressHandlingFunction(n){if(n.lengthComputable){var t=Math.round(n.loaded*100/n.total);$("#FileProgress").css("width",t+"%").attr("aria-valuenow",t);$("#FileProgress span").text(t+"%")}else $("#FileProgress span").text("unable to compute")}function completeHandler(){$("#createView").empty();$(".CreateLink").show();$.unblockUI()}function successHandler(n){n.statusCode==200?($("#FilesList tr:last").after(n.NewRow),alert(n.status)):alert(n.status)}function errorHandler(n,t,i){alert("There was an error attempting to upload the file. ("+i+")")}function OnDeleteAttachmentSuccess(n){n.ID&&n.ID!=""?$("#Attachment_"+n.ID).fadeOut("slow"):(alter("Unable to Delete"),console.log(n.message))}function Cancel_btn_handler(){$("#createView").empty();$(".CreateLink").show();$.unblockUI()}function Init_Upload(){$("#FormUpload input[name=UploadedFile]").change(function(n){singleFileSelected(n)})}function Init_UploadPdf(){$("#FormUpload input[name=UploadedPdf]").change(function(n){singlePdfFileSelected(n)})}function Init_UploadFileType(){$("#FormUpload input[name=UploadedFileType]").change(function(n){singleFileMultiTypeSelected(n)})}function singleFileSelected(){var n,i,r,t;$(".InfoContainer").show();$(".InfoContainerError").hide();n=$("#UploadedFile")[0].files[0];n&&(i=0,r=/image.*/,i=n.size>1048576?Math.round(n.size*100/1048576)/100+" MB":n.size>1024?Math.round(n.size*100/1024)/100+" KB":n.size+" Bytes",n.type.match(r)?(t=new FileReader,t.onload=function(){$("#Imagecontainer").empty();var i=t.result,n=new Image;n.src=i;n.className="img-thumbnail float-right";$("#Imagecontainer").append(n)},t.readAsDataURL(n)):($(".InfoContainer").hide(),$(".InfoContainerError").show(),$("#UploadedFile").val("")),$("#FileName").text("Name : "+n.name),$("#FileType").text("type : "+n.type),$("#FileSize").text("Size : "+i))}function singlePdfFileSelected(){var n,t,i,r;$(".InfoContainerPdf").show();$(".InfoContainerPdfError").hide();n=$("#UploadedPdf")[0].files[0];n&&(t=0,i="application/pdf",t=n.size>1048576?Math.round(n.size*100/1048576)/100+" MB":n.size>1024?Math.round(n.size*100/1024)/100+" KB":n.size+" Bytes",n.type.match(i)?(r=new FileReader,r.onload=function(){}):($(".InfoContainerPdfError").show(),$(".InfoContainerPdf").hide()),$("#FileNamePdf").text("Name : "+n.name),$("#FileTypePdf").text("type : "+n.type),$("#FileSizePdf").text("Size : "+t))}function singleFileMultiTypeSelected(){var n,t,i;$(".InfoContainerFileType").show();$(".InfoContainerFileTypeError").hide();n=$("#UploadedFileType")[0].files[0];n&&(t=0,t=n.size>1048576?Math.round(n.size*100/1048576)/100+" MB":n.size>1024?Math.round(n.size*100/1024)/100+" KB":n.size+" Bytes",i=$("#UploadedFileType").val().split(".").pop().toLowerCase(),$.inArray(i,["docx","doc","xls","xlsx","pdf","zip"])==-1&&($(".InfoContainerFileTypeError").show(),$("#UploadedFileType").val(""),$(".InfoContainerFileType").hide()),$("#FileNameFileType").text("Name : "+n.name),$("#FileTypeFileType").text("type : "+n.type),$("#FileSizeFileType").text("Size : "+t))}var defaultSettings,thumbs;!function(n){function i(n,t){for(var i=window,r=(n||"").split(".");i&&r.length;)i=i[r.shift()];return"function"==typeof i?i:(t.push(n),Function.constructor.apply(null,t))}function u(n){return"GET"===n||"POST"===n}function e(n,t){u(t)||n.setRequestHeader("X-HTTP-Method-Override",t)}function o(t,i,r){var u;r.indexOf("application/x-javascript")===-1&&(u=(t.getAttribute("data-ajax-mode")||"").toUpperCase(),n(t.getAttribute("data-ajax-update")).each(function(t,r){switch(u){case"BEFORE":n(r).prepend(i);break;case"AFTER":n(r).append(i);break;case"REPLACE-WITH":n(r).replaceWith(i);break;default:n(r).html(i)}}))}function f(t,r){var s,h,f,c;s=t.getAttribute("data-ajax-confirm");s&&!window.confirm(s)||(h=n(t.getAttribute("data-ajax-loading")),c=parseInt(t.getAttribute("data-ajax-loading-duration"),10)||0,n.extend(r,{type:t.getAttribute("data-ajax-method")||void 0,url:t.getAttribute("data-ajax-url")||void 0,cache:"true"===(t.getAttribute("data-ajax-cache")||"").toLowerCase(),beforeSend:function(n){var r;return e(n,f),r=i(t.getAttribute("data-ajax-begin"),["xhr"]).apply(t,arguments),r!==!1&&h.show(c),r},complete:function(){h.hide(c);i(t.getAttribute("data-ajax-complete"),["xhr","status"]).apply(t,arguments)},success:function(n,r,u){o(t,n,u.getResponseHeader("Content-Type")||"text/html");i(t.getAttribute("data-ajax-success"),["data","status","xhr"]).apply(t,arguments)},error:function(){i(t.getAttribute("data-ajax-failure"),["xhr","status","error"]).apply(t,arguments)}}),r.data.push({name:"X-Requested-With",value:"XMLHttpRequest"}),f=r.type.toUpperCase(),u(f)||(r.type="POST",r.data.push({name:"X-HTTP-Method-Override",value:f})),n.ajax(r))}function s(t){var i=n(t).data(h);return!i||!i.validate||i.validate()}var t="unobtrusiveAjaxClick",r="unobtrusiveAjaxClickTarget",h="unobtrusiveValidation";n(document).on("click","a[data-ajax=true]",function(n){n.preventDefault();f(this,{url:this.href,type:"GET",data:[]})});n(document).on("click","form[data-ajax=true] input[type=image]",function(i){var r=i.target.name,u=n(i.target),f=n(u.parents("form")[0]),e=u.offset();f.data(t,[{name:r+".x",value:Math.round(i.pageX-e.left)},{name:r+".y",value:Math.round(i.pageY-e.top)}]);setTimeout(function(){f.removeData(t)},0)});n(document).on("click","form[data-ajax=true] :submit",function(i){var f=i.currentTarget.name,e=n(i.target),u=n(e.parents("form")[0]);u.data(t,f?[{name:f,value:i.currentTarget.value}]:[]);u.data(r,e);setTimeout(function(){u.removeData(t);u.removeData(r)},0)});n(document).on("submit","form[data-ajax=true]",function(i){var e=n(this).data(t)||[],u=n(this).data(r),o=u&&(u.hasClass("cancel")||void 0!==u.attr("formnovalidate"));i.preventDefault();(o||s(this))&&f(this,{url:this.action,type:this.method||"GET",data:e.concat(n(this).serializeArray())})})}(jQuery);!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){n.extend(n.fn,{validate:function(t){if(!this.length)return void(t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=n.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(t){i.submitButton=t.currentTarget;n(this).hasClass("cancel")&&(i.cancelSubmit=!0);void 0!==n(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(t){function r(){var r,u;return i.submitButton&&(i.settings.submitHandler||i.formSubmitted)&&(r=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),!i.settings.submitHandler||(u=i.settings.submitHandler.call(i,i.currentForm,t),r&&r.remove(),void 0!==u&&u)}return i.settings.debug&&t.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})),i)},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t;t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){var e,s,f,u,o,h,r=this[0];if(null!=r&&(!r.form&&r.hasAttribute("contenteditable")&&(r.form=this.closest("form")[0],r.name=this.attr("name")),null!=r.form)){if(t)switch(e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r),t){case"add":n.extend(f,n.validator.normalizeRule(i));delete f.messages;s[r.name]=f;i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(n,t){h[t]=f[t];delete f[t]}),h):(delete s[r.name],f)}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u)),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}});n.extend(n.expr.pseudos||n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){var i=n(t).val();return null!==i&&!!n.trim(""+i)},unchecked:function(t){return!n(t).prop("checked")}});n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t);this.currentForm=i;this.init()};n.validator.format=function(t,i){return 1===arguments.length?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:void 0===i?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)};n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n;this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){9===i.which&&""===this.elementValue(t)||n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])!==-1||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){"radio"===t.type?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){!this.form&&this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0],this.name=n(this).attr("name"));var r=n.data(this.form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!n(this).is(i.ignore)&&i[u].call(r,this,t)}this.labelContainer=n(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm);this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var t,r=this.groups={};n.each(this.settings.groups,function(t,i){"string"==typeof i&&(i=i.split(/\s/));n.each(i,function(n,i){r[i]=t})});t=this.settings.rules;n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);this.settings.invalidHandler&&n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var e,o,i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0;return void 0===r?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=u.check(i)&&f))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t);this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}});this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t,i=0;for(t in n)void 0!==n[t]&&null!==n[t]&&n[t]!==!1&&i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&1===n.grep(this.errorList,function(n){return n.element.name===t.name}).length&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name");return!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0],this.name=r),!(r in i||!t.objectLength(n(this).rules()))&&(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=n([]);this.toHide=n([])},reset:function(){this.resetInternals();this.currentElements=n([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset();this.toHide=this.errorsFor(n)},elementValue:function(t){var i,r,f=n(t),u=t.type;return"radio"===u||"checkbox"===u?this.findByName(t.name).filter(":checked").val():"number"===u&&"undefined"!=typeof t.validity?t.validity.badInput?"NaN":f.val():(i=t.hasAttribute("contenteditable")?f.text():f.val(),"file"===u?"C:\\fakepath\\"===i.substr(0,12)?i.substr(12):(r=i.lastIndexOf("/"),r>=0?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0?i.substr(r+1):i)):"string"==typeof i?i.replace(/\r/g,""):i)},check:function(t){t=this.validationTargetFor(this.clean(t));var u,f,r,e,i=n(t).rules(),c=n.map(i,function(n,t){return t}).length,h=!1,o=this.elementValue(t);if("function"==typeof i.normalizer?e=i.normalizer:"function"==typeof this.settings.normalizer&&(e=this.settings.normalizer),e){if(o=e.call(t,o),"string"!=typeof o)throw new TypeError("The normalizer should return a string value.");delete i.normalizer}for(f in i){r={method:f,parameters:i[f]};try{if(u=n.validator.methods[f].call(this,o,t,r.parameters),"dependency-mismatch"===u&&1===c){h=!0;continue}if(h=!1,"pending"===u)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!u)return this.formatAndAdd(t,r),!1}catch(s){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",s),s instanceof TypeError&&(s.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),s;}}if(!h)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(void 0!==arguments[n])return arguments[n]},defaultMessage:function(t,i){"string"==typeof i&&(i={method:i});var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||void 0,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return"function"==typeof r?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method});this.errorMap[n.name]=i;this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement.call(this,u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):0===r.parents("label[for='"+this.escapeCssMeta(h)+"']").length&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))}))));!i&&this.settings.success&&(r.text(""),"string"==typeof this.settings.success?r.addClass(this.settings.success):this.settings.success(r,t));this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return n.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return!this.dependTypes[typeof n]||this.dependTypes[typeof n](n,t)},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--;this.pendingRequest<0&&(this.pendingRequest=0);delete this.pending[t.name];n(t).removeClass(this.settings.pendingClass);i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.submitButton&&n("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i="string"==typeof i&&i||"remote",n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm();n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(null===t||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=void 0));r||0===r?n[i]=r:t===i&&"range"!==t&&(n[i]=!0)},attributeRules:function(t){var r,i,u={},f=n(t),e=t.getAttribute("type");for(r in n.validator.methods)"required"===r?(i=t.getAttribute(r),""===i&&(i=!0),i=!!i):i=f.attr(r),this.normalizeAttributeRule(u,e,r,i);return u.maxlength&&/-1|2147483647|524288/.test(u.maxlength)&&delete u.maxlength,u},dataRules:function(t){var i,r,u={},f=n(t),e=t.getAttribute("type");for(i in n.validator.methods)r=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(u,e,i,r);return u},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1)return void delete t[r];if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=void 0===u.param||u.param:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&"normalizer"!==r?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var i={};n.each(t.split(/\s/),function(){i[this]=!0});t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i;n.validator.messages[t]=void 0!==r?r:n.validator.messages[t];i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u,f=n(i).attr("type"),h="Step attribute on input type "+f+" is not supported.",c=new RegExp("\\b"+f+"\\b"),l=f&&!c.test("text,number,range"),e=function(n){var t=(""+n).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},o=function(n){return Math.round(n*Math.pow(10,u))},s=!0;if(l)throw new Error(h);return u=e(r),(e(t)>u||o(t)%o(r)!=0)&&(s=!1),this.optional(i)||s},equalTo:function(t,i,r){var u=n(r);return this.settings.onfocusout&&u.not(".validate-equalTo-blur").length&&u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()}),t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u="string"==typeof u&&u||"remote";var f,o,s,e=this.previousValue(i,u);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r="string"==typeof r&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r,s,h,o=n===!0||"true"===n;f.settings.messages[i.name][u]=e.originalMessage;o?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(r={},s=n||f.defaultMessage(i,{method:u,parameters:t}),r[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(r));e.valid=o;f.stopRequest(i,o)}},r)),"pending")}}});var i,t={};return n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;"abort"===n.mode&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return"abort"===f?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)}),n});!function(n){"function"==typeof define&&define.amd?define("jquery.validate.unobtrusive",["jquery-validation"],n):"object"==typeof module&&module.exports?module.exports=n(require("jquery-validation")):jQuery.validator.unobtrusive=n(jQuery)}(function(n){function i(n,t,i){n.rules[t]=i;n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,.\/:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return 0===n.indexOf("*.")&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error");t.data("unobtrusiveContainer",r);e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r,u;i&&(r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null,i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this),i="__jquery_unobtrusive_validation_form_reset";if(!t.data(i)){t.data(i,!0);try{t.data("validator").resetForm()}finally{t.removeData(i)}t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments);o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments);o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments);o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var t,r=n.validator,u="unobtrusiveValidation";return r.unobtrusive={adapters:[],parseElement:function(t,i){var r,u,o,f=n(t),e=f.parents("form")[0];e&&(r=s(e),r.options.rules[t.name]=u={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=f.attr(i),s={};void 0!==r&&(i+="-",n.each(this.params,function(){s[this]=f.attr(i+this)}),this.adapt({element:t,form:e,message:r,params:s,rules:u,messages:o}))}),n.extend(u,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)});u.each(function(){var n=s(this);n&&n.attachValidation()})}},t=r.unobtrusive.adapters,t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this},t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})},t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})},t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})},r.addMethod("__dummy__",function(){return!0}),r.addMethod("regex",function(n,t,i){var r;return!!this.optional(t)||(r=new RegExp(i).exec(n),r&&0===r.index&&r[0].length===n.length)}),r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r}),r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept"),t.addSingleVal("regex","pattern"),t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)}),t.add("required",function(n){"INPUT"===n.element.tagName.toUpperCase()&&"CHECKBOX"===n.element.type.toUpperCase()||i(n,"required",!0)}),t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){var i=n(t.form).find(":input").filter("[name='"+f(s)+"']");return i.is(":checkbox")?i.filter(":checked").val()||i.filter(":hidden").val()||"":i.is(":radio")?i.filter(":checked").val()||"":i.val()}});i(t,"remote",r)}),t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min);n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin);n.params.regex&&i(n,"regex",n.params.regex)}),t.add("fileextensions",["extensions"],function(n){i(n,"extension",n.params.extensions)}),n(function(){r.unobtrusive.parse(document)}),r.unobtrusive}),function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):n.Popper=t()}(this,function(){"use strict";function et(n){return n&&"[object Function]"==={}.toString.call(n)}function r(n,t){if(1!==n.nodeType)return[];var i=getComputedStyle(n,null);return t?i[t]:i}function p(n){return"HTML"===n.nodeName?n:n.parentNode||n.host}function s(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var t=r(n),i=t.overflow,u=t.overflowX,f=t.overflowY;return/(auto|scroll|overlay)/.test(i+f+u)?n:s(p(n))}function u(n){return 11===n?ui:10===n?fi:ui||fi}function f(n){var e,t,i;if(!n)return document.documentElement;for(e=u(10)?document.body:null,t=n.offsetParent;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;return i=t&&t.nodeName,i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(t.nodeName)&&"static"===r(t,"position")?f(t):t:n?n.ownerDocument.documentElement:document.documentElement}function oi(n){var t=n.nodeName;return"BODY"!==t&&("HTML"===t||f(n.firstElementChild)===n)}function w(n){return null===n.parentNode?n:w(n.parentNode)}function c(n,t){var i,u;if(!n||!n.nodeType||!t||!t.nodeType)return document.documentElement;var e=n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,o=e?n:t,s=e?t:n,r=document.createRange();return(r.setStart(o,0),r.setEnd(s,0),i=r.commonAncestorContainer,n!==i&&t!==i||o.contains(s))?oi(i)?i:f(i):(u=w(n),u.host?c(u.host,t):c(n,w(t).host))}function e(n){var f=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",t="top"===f?"scrollTop":"scrollLeft",i=n.nodeName,r,u;return"BODY"===i||"HTML"===i?(r=n.ownerDocument.documentElement,u=n.ownerDocument.scrollingElement||r,u[t]):n[t]}function si(n,t){var f=2<arguments.length&&void 0!==arguments[2]&&arguments[2],r=e(t,"top"),u=e(t,"left"),i=f?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=u*i,n.right+=u*i,n}function ot(n,t){var i="x"===t?"Left":"Top",r="Left"==i?"Right":"Bottom";return parseFloat(n["border"+i+"Width"],10)+parseFloat(n["border"+r+"Width"],10)}function st(n,i,r,f){return t(i["offset"+n],i["scroll"+n],r["client"+n],r["offset"+n],r["scroll"+n],u(10)?r["offset"+n]+f["margin"+("Height"===n?"Top":"Left")]+f["margin"+("Height"===n?"Bottom":"Right")]:0)}function ht(){var t=document.body,n=document.documentElement,i=u(10)&&getComputedStyle(n);return{height:st("Height",t,n,i),width:st("Width",t,n,i)}}function i(t){return n({},t,{right:t.left+t.width,bottom:t.top+t.height})}function b(n){var t={},o,s,l;try{u(10)?(t=n.getBoundingClientRect(),o=e(n,"top"),s=e(n,"left"),t.top+=o,t.left+=s,t.bottom+=o,t.right+=s):t=n.getBoundingClientRect()}catch(r){}var f={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},a="HTML"===n.nodeName?ht():{},v=a.width||n.clientWidth||f.right-f.left,y=a.height||n.clientHeight||f.bottom-f.top,h=n.offsetWidth-v,c=n.offsetHeight-y;return(h||c)&&(l=r(n),h-=ot(l,"x"),c-=ot(l,"y"),f.width-=h,f.height-=c),i(f)}function k(n,f){var w=2<arguments.length&&void 0!==arguments[2]&&arguments[2],k=u(10),d="HTML"===f.nodeName,h=b(n),o=b(f),v=s(n),c=r(f),y=parseFloat(c.borderTopWidth,10),p=parseFloat(c.borderLeftWidth,10),e,l,a;return w&&"HTML"===f.nodeName&&(o.top=t(o.top,0),o.left=t(o.left,0)),e=i({top:h.top-o.top-y,left:h.left-o.left-p,width:h.width,height:h.height}),(e.marginTop=0,e.marginLeft=0,!k&&d)&&(l=parseFloat(c.marginTop,10),a=parseFloat(c.marginLeft,10),e.top-=y-l,e.bottom-=y-l,e.left-=p-a,e.right-=p-a,e.marginTop=l,e.marginLeft=a),(k&&!w?f.contains(v):f===v&&"BODY"!==v.nodeName)&&(e=si(e,f)),e}function hi(n){var f=1<arguments.length&&void 0!==arguments[1]&&arguments[1],r=n.ownerDocument.documentElement,u=k(n,r),o=t(r.clientWidth,window.innerWidth||0),s=t(r.clientHeight,window.innerHeight||0),h=f?0:e(r),c=f?0:e(r,"left"),l={top:h-u.top+u.marginTop,left:c-u.left+u.marginLeft,width:o,height:s};return i(l)}function ct(n){var t=n.nodeName;return"BODY"===t||"HTML"===t?!1:"fixed"===r(n,"position")||ct(p(n))}function lt(n){if(!n||!n.parentElement||u())return document.documentElement;for(var t=n.parentElement;t&&"none"===r(t,"transform");)t=t.parentElement;return t||document.documentElement}function d(n,t,i,r){var o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},h=o?lt(n):c(n,t),e,f;if("viewport"===r)u=hi(h,o);else if("scrollParent"===r?(e=s(p(t)),"BODY"===e.nodeName&&(e=n.ownerDocument.documentElement)):e="window"===r?n.ownerDocument.documentElement:r,f=k(e,h,o),"HTML"!==e.nodeName||ct(h))u=f;else{var l=ht(),a=l.height,v=l.width;u.top+=f.top-f.marginTop;u.bottom=a+f.top;u.left+=f.left-f.marginLeft;u.right=v+f.left}return u.left+=i,u.top+=i,u.right-=i,u.bottom-=i,u}function ci(n){var t=n.width,i=n.height;return t*i}function at(t,i,r,u,f){var l=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var e=d(r,u,l,f),o={top:{width:e.width,height:i.top-e.top},right:{width:e.right-i.right,height:e.height},bottom:{width:e.width,height:e.bottom-i.bottom},left:{width:i.left-e.left,height:e.height}},s=Object.keys(o).map(function(t){return n({key:t},o[t],{area:ci(o[t])})}).sort(function(n,t){return t.area-n.area}),h=s.filter(function(n){var t=n.width,i=n.height;return t>=r.clientWidth&&i>=r.clientHeight}),a=0<h.length?h[0].key:s[0].key,c=t.split("-")[1];return a+(c?"-"+c:"")}function vt(n,t,i){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null,u=r?lt(t):c(t,i);return k(i,u,r)}function yt(n){var t=getComputedStyle(n),i=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:n.offsetWidth+r,height:n.offsetHeight+i}}function l(n){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(n){return t[n]})}function pt(n,t,i){i=i.split("-")[0];var r=yt(n),e={width:r.width,height:r.height},u=-1!==["right","left"].indexOf(i),o=u?"top":"left",f=u?"left":"top",s=u?"height":"width",h=u?"width":"height";return e[o]=t[o]+t[s]/2-r[s]/2,e[f]=i===f?t[f]-r[h]:t[l(f)],e}function h(n,t){return Array.prototype.find?n.find(t):n.filter(t)[0]}function li(n,t,i){if(Array.prototype.findIndex)return n.findIndex(function(n){return n[t]===i});var r=h(n,function(n){return n[t]===i});return n.indexOf(r)}function wt(n,t,r){var u=void 0===r?n:n.slice(0,li(n,"name",r));return u.forEach(function(n){n["function"]&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var r=n["function"]||n.fn;n.enabled&&et(r)&&(t.offsets.popper=i(t.offsets.popper),t.offsets.reference=i(t.offsets.reference),t=r(t,n))}),t}function ai(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=vt(this.state,this.popper,this.reference,this.options.positionFixed);n.placement=at(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);n.originalPlacement=n.placement;n.positionFixed=this.options.positionFixed;n.offsets.popper=pt(this.popper,n.offsets.reference,n.placement);n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";n=wt(this.modifiers,n);this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function bt(n,t){return n.some(function(n){var i=n.name,r=n.enabled;return r&&i===t})}function g(n){for(var i,r,u=[!1,"ms","Webkit","Moz","O"],f=n.charAt(0).toUpperCase()+n.slice(1),t=0;t<u.length;t++)if(i=u[t],r=i?""+i+f:n,"undefined"!=typeof document.body.style[r])return r;return null}function vi(){return this.state.isDestroyed=!0,bt(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[g("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function kt(n){var t=n.ownerDocument;return t?t.defaultView:window}function dt(n,t,i,r){var f="BODY"===n.nodeName,u=f?n.ownerDocument.defaultView:n;u.addEventListener(t,i,{passive:!0});f||dt(s(u.parentNode),t,i,r);r.push(u)}function yi(n,t,i,r){i.updateBound=r;kt(n).addEventListener("resize",i.updateBound,{passive:!0});var u=s(n);return dt(u,"scroll",i.updateBound,i.scrollParents),i.scrollElement=u,i.eventsEnabled=!0,i}function pi(){this.state.eventsEnabled||(this.state=yi(this.reference,this.options,this.state,this.scheduleUpdate))}function wi(n,t){return kt(n).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(n){n.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}function bi(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=wi(this.reference,this.state))}function nt(n){return""!==n&&!isNaN(parseFloat(n))&&isFinite(n)}function tt(n,t){Object.keys(t).forEach(function(i){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&nt(t[i])&&(r="px");n.style[i]=t[i]+r})}function ki(n,t){Object.keys(t).forEach(function(i){var r=t[i];!1===r?n.removeAttribute(i):n.setAttribute(i,t[i])})}function gt(n,t,i){var u=h(n,function(n){var i=n.name;return i===t}),f=!!u&&n.some(function(n){return n.name===i&&n.enabled&&n.order<u.order}),r;return f||(r="`"+t+"`",console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")),f}function di(n){return"end"===n?"start":"start"===n?"end":n}function ni(n){var r=1<arguments.length&&void 0!==arguments[1]&&arguments[1],t=ut.indexOf(n),i=ut.slice(t+1).concat(ut.slice(0,t));return r?i.reverse():i}function gi(n,r,u,f){var h=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+h[1],e=h[2],s,c,l;if(!o)return n;if(0===e.indexOf("%")){switch(e){case"%p":s=u;break;case"%":case"%r":default:s=f}return c=i(s),c[r]/100*o}return"vh"===e||"vw"===e?(l="vh"===e?t(document.documentElement.clientHeight,window.innerHeight||0):t(document.documentElement.clientWidth,window.innerWidth||0),l/100*o):o}function nr(n,t,i,r){var s=[0,0],c=-1!==["right","left"].indexOf(r),u=n.split(/(\+|\-)/).map(function(n){return n.trim()}),f=u.indexOf(h(u,function(n){return-1!==n.search(/,|\s/)})),o,e;return u[f]&&-1===u[f].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),o=/\s*,\s*|\s+/,e=-1===f?[u]:[u.slice(0,f).concat([u[f].split(o)[0]]),[u[f].split(o)[1]].concat(u.slice(f+1))],e=e.map(function(n,r){var f=(1===r?!c:c)?"height":"width",u=!1;return n.reduce(function(n,t){return""===n[n.length-1]&&-1!==["+","-"].indexOf(t)?(n[n.length-1]=t,u=!0,n):u?(n[n.length-1]+=t,u=!1,n):n.concat(t)},[]).map(function(n){return gi(n,f,t,i)})}),e.forEach(function(n,t){n.forEach(function(i,r){nt(i)&&(s[t]+=i*("-"===n[r-1]?-1:1))})}),s}function tr(n,t){var r,f=t.offset,o=n.placement,e=n.offsets,i=e.popper,s=e.reference,u=o.split("-")[0];return r=nt(+f)?[+f,0]:nr(f,i,s,u),"left"===u?(i.top+=r[0],i.left-=r[1]):"right"===u?(i.top+=r[0],i.left+=r[1]):"top"===u?(i.left+=r[0],i.top-=r[1]):"bottom"===u&&(i.left+=r[0],i.top+=r[1]),n.popper=i,n}for(var ti=Math.min,it=Math.round,a=Math.floor,t=Math.max,v="undefined"!=typeof window&&"undefined"!=typeof document,ii=["Edge","Trident","Firefox"],ri=0,rt=0;rt<ii.length;rt+=1)if(v&&0<=navigator.userAgent.indexOf(ii[rt])){ri=1;break}var ir=v&&window.Promise,rr=ir?function(n){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1;n()}))}}:function(n){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1;n()},ri))}},ui=v&&!!(window.MSInputMethodContext&&document.documentMode),fi=v&&/MSIE 10/.test(navigator.userAgent),ur=function(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");},fr=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),o=function(n,t,i){return t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n},n=Object.assign||function(n){for(var t,r,i=1;i<arguments.length;i++)for(r in t=arguments[i],t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n},ei=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ut=ei.slice(3),ft={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},y=function(){function t(i,r){var u=this,f=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},e;ur(this,t);this.scheduleUpdate=function(){return requestAnimationFrame(u.update)};this.update=rr(this.update.bind(this));this.options=n({},t.Defaults,f);this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]};this.reference=i&&i.jquery?i[0]:i;this.popper=r&&r.jquery?r[0]:r;this.options.modifiers={};Object.keys(n({},t.Defaults.modifiers,f.modifiers)).forEach(function(i){u.options.modifiers[i]=n({},t.Defaults.modifiers[i]||{},f.modifiers?f.modifiers[i]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(t){return n({name:t},u.options.modifiers[t])}).sort(function(n,t){return n.order-t.order});this.modifiers.forEach(function(n){n.enabled&&et(n.onLoad)&&n.onLoad(u.reference,u.popper,u.options,n,u.state)});this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners();this.state.eventsEnabled=e}return fr(t,[{key:"update",value:function(){return ai.call(this)}},{key:"destroy",value:function(){return vi.call(this)}},{key:"enableEventListeners",value:function(){return pi.call(this)}},{key:"disableEventListeners",value:function(){return bi.call(this)}}]),t}();return y.Utils=("undefined"==typeof window?global:window).PopperUtils,y.placements=ei,y.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var u=t.placement,l=u.split("-")[0],f=u.split("-")[1];if(f){var e=t.offsets,r=e.reference,s=e.popper,h=-1!==["bottom","top"].indexOf(l),i=h?"left":"top",c=h?"width":"height",a={start:o({},i,r[i]),end:o({},i,r[i]+r[c]-s[c])};t.offsets.popper=n({},s,a[f])}return t}},offset:{order:200,enabled:!0,fn:tr,offset:0},preventOverflow:{order:300,enabled:!0,fn:function(i,r){var h=r.boundariesElement||f(i.instance.popper),s;i.instance.reference===h&&(h=f(h));var c=g("transform"),e=i.instance.popper.style,l=e.top,a=e.left,v=e[c];e.top="";e.left="";e[c]="";s=d(i.instance.popper,i.instance.reference,r.padding,h,i.positionFixed);e.top=l;e.left=a;e[c]=v;r.boundaries=s;var y=r.priority,u=i.offsets.popper,p={primary:function(n){var i=u[n];return u[n]<s[n]&&!r.escapeWithReference&&(i=t(u[n],s[n])),o({},n,i)},secondary:function(n){var t="right"===n?"left":"top",i=u[t];return u[n]>s[n]&&!r.escapeWithReference&&(i=ti(u[t],s[n]-("right"===n?u.width:u.height))),o({},t,i)}};return y.forEach(function(t){var i=-1===["left","top"].indexOf(t)?"secondary":"primary";u=n({},u,p[i](t))}),i.offsets.popper=u,i},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(n){var o=n.offsets,u=o.popper,i=o.reference,s=n.placement.split("-")[0],r=a,f=-1!==["top","bottom"].indexOf(s),e=f?"right":"bottom",t=f?"left":"top",h=f?"width":"height";return u[e]<r(i[t])&&(n.offsets.popper[t]=r(i[t])-u[h]),u[t]>r(i[e])&&(n.offsets.popper[t]=r(i[e])),n}},arrow:{order:500,enabled:!0,fn:function(n,u){var l,e;if(!gt(n.instance.modifiers,"arrow","keepTogether"))return n;if(e=u.element,"string"==typeof e){if(e=n.instance.popper.querySelector(e),!e)return n}else if(!n.instance.popper.contains(e))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var d=n.placement.split("-")[0],b=n.offsets,c=b.popper,s=b.reference,a=-1!==["left","right"].indexOf(d),y=a?"height":"width",p=a?"Top":"Left",f=p.toLowerCase(),g=a?"left":"top",v=a?"bottom":"right",h=yt(e)[y];s[v]-h<c[f]&&(n.offsets.popper[f]-=c[f]-(s[v]-h));s[f]+h>c[v]&&(n.offsets.popper[f]+=s[f]+h-c[v]);n.offsets.popper=i(n.offsets.popper);var nt=s[f]+s[y]/2-h/2,k=r(n.instance.popper),tt=parseFloat(k["margin"+p],10),rt=parseFloat(k["border"+p+"Width"],10),w=nt-n.offsets.popper[f]-tt-rt;return w=t(ti(c[y]-h,w),0),n.arrowElement=e,n.offsets.arrow=(l={},o(l,f,it(w)),o(l,g,""),l),n},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,i){if(bt(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var e=d(t.instance.popper,t.instance.reference,i.padding,i.boundariesElement,t.positionFixed),r=t.placement.split("-")[0],o=l(r),u=t.placement.split("-")[1]||"",f=[];switch(i.behavior){case ft.FLIP:f=[r,o];break;case ft.CLOCKWISE:f=ni(r);break;case ft.COUNTERCLOCKWISE:f=ni(r,!0);break;default:f=i.behavior}return f.forEach(function(s,h){if(r!==s||f.length===h+1)return t;r=t.placement.split("-")[0];o=l(r);var v=t.offsets.popper,y=t.offsets.reference,c=a,w="left"===r&&c(v.right)>c(y.left)||"right"===r&&c(v.left)<c(y.right)||"top"===r&&c(v.bottom)>c(y.top)||"bottom"===r&&c(v.top)<c(y.bottom),b=c(v.left)<c(e.left),k=c(v.right)>c(e.right),d=c(v.top)<c(e.top),g=c(v.bottom)>c(e.bottom),nt="left"===r&&b||"right"===r&&k||"top"===r&&d||"bottom"===r&&g,p=-1!==["top","bottom"].indexOf(r),tt=!!i.flipVariations&&(p&&"start"===u&&b||p&&"end"===u&&k||!p&&"start"===u&&d||!p&&"end"===u&&g);(w||nt||tt)&&(t.flipped=!0,(w||nt)&&(r=f[h+1]),tt&&(u=di(u)),t.placement=r+(u?"-"+u:""),t.offsets.popper=n({},t.offsets.popper,pt(t.instance.popper,t.offsets.reference,t.placement)),t=wt(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(n){var u=n.placement,t=u.split("-")[0],f=n.offsets,r=f.popper,o=f.reference,e=-1!==["left","right"].indexOf(t),s=-1===["top","left"].indexOf(t);return r[e?"left":"top"]=o[t]-(s?r[e?"width":"height"]:0),n.placement=l(u),n.offsets.popper=i(r),n}},hide:{order:800,enabled:!0,fn:function(n){if(!gt(n.instance.modifiers,"hide","preventOverflow"))return n;var t=n.offsets.reference,i=h(n.instance.modifiers,function(n){return"preventOverflow"===n.name}).boundaries;if(t.bottom<i.top||t.left>i.right||t.top>i.bottom||t.right<i.left){if(!0===n.hide)return n;n.hide=!0;n.attributes["x-out-of-boundaries"]=""}else{if(!1===n.hide)return n;n.hide=!1;n.attributes["x-out-of-boundaries"]=!1}return n}},computeStyle:{order:850,enabled:!0,fn:function(t,i){var nt=i.x,tt=i.y,u=t.offsets.popper,c=h(t.instance.modifiers,function(n){return"applyStyle"===n.name}).gpuAcceleration,w,k,d;void 0!==c&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var l,v,rt=void 0===c?i.gpuAcceleration:c,ut=f(t.instance.popper),y=b(ut),r={position:u.position},s={left:a(u.left),top:it(u.top),bottom:it(u.bottom),right:a(u.right)},e="bottom"===nt?"top":"bottom",o="right"===tt?"left":"right",p=g("transform");return(v="bottom"==e?-y.height+s.bottom:s.top,l="right"==o?-y.width+s.right:s.left,rt&&p)?(r[p]="translate3d("+l+"px, "+v+"px, 0)",r[e]=0,r[o]=0,r.willChange="transform"):(w="bottom"==e?-1:1,k="right"==o?-1:1,r[e]=v*w,r[o]=l*k,r.willChange=e+", "+o),d={"x-placement":t.placement},t.attributes=n({},d,t.attributes),t.styles=n({},r,t.styles),t.arrowStyles=n({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(n){return tt(n.instance.popper,n.styles),ki(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tt(n.arrowElement,n.arrowStyles),n},onLoad:function(n,t,i,r,u){var f=vt(u,t,n,i.positionFixed),e=at(i.placement,f,t,n,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return t.setAttribute("x-placement",e),tt(t,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},y});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t(n.bootstrap={},n.jQuery,n.Popper)}(this,function(n,t,i){"use strict";function uf(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function nt(n,t,i){return t&&uf(n.prototype,t),i&&uf(n,i),n}function v(n){for(var i,r,t=1;t<arguments.length;t++)i=null!=arguments[t]?arguments[t]:{},r=Object.keys(i),"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter(function(n){return Object.getOwnPropertyDescriptor(i,n).enumerable}))),r.forEach(function(t){var r,u,f;r=n;f=i[u=t];u in r?Object.defineProperty(r,u,{value:f,enumerable:!0,configurable:!0,writable:!0}):r[u]=f});return n}t=t&&t.hasOwnProperty("default")?t.default:t;i=i&&i.hasOwnProperty("default")?i.default:i;var y,ti,hr,cr,ff,lr,ef,of,sf,at,c,ii,ar,vr,yr,hf,ri,cf,lf,hu,af,vf,yf,cu,lu,ui,f,vt,ki,tt,au,pf,pr,wf,di,gi,bf,kf,it,df,ot,gf,ne,te,ie,re,rt,yt,s,pt,wt,fi,ue,wr,fe,ei,st,nr,tr,br,vu,ee,kr,oi,e,bt,ir,ut,dr,oe,se,b,yu,ht,he,ce,le,pu,ae,rr,ve,gr,ye,pe,we,be,ke,de,ge,no,to,io,et,r,kt,ur,w,ro,nu,uo,a,fo,eo,wu,dt,fr,ft,si,u,ct,tu,k,oo,bu,so,ho,co,lo,hi,iu,ao,ci,li,vo,yo,ai,ru,po,wo,er,g,gt,uu,d,bo,ku,ko,go,ns,ts,is,rs,us,fs,or,l,lt,fu,sr,es,du,os,eu,ss,ni,p,hs,gu,vi,h,ou,yi,cs,pi,ls,wi,as,vs,nf,ys,ps,tf,rf,ws,bs,ks,bi,o=function(n){function r(i){var u=this,r=!1;return n(this).one(t.TRANSITION_END,function(){r=!0}),setTimeout(function(){r||t.triggerTransitionEnd(u)},i),this}var i="transitionend",t={TRANSITION_END:"bsTransitionEnd",getUID:function(n){for(;n+=~~(1e6*Math.random()),document.getElementById(n););return n},getSelectorFromElement:function(t){var i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||"");try{return 0<n(document).find(i).length?i:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var i=n(t).css("transition-duration");return parseFloat(i)?(i=i.split(",")[0],1e3*parseFloat(i)):0},reflow:function(n){return n.offsetHeight},triggerTransitionEnd:function(t){n(t).trigger(i)},supportsTransitionEnd:function(){return Boolean(i)},isElement:function(n){return(n[0]||n).nodeType},typeCheckConfig:function(n,i,r){var u,s;for(u in r)if(Object.prototype.hasOwnProperty.call(r,u)){var e=r[u],f=i[u],o=f&&t.isElement(f)?"element":(s=f,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(e).test(o))throw new Error(n.toUpperCase()+': Option "'+u+'" provided type "'+o+'" but expected type "'+e+'".');}}};return n.fn.emulateTransitionEnd=r,n.event.special[t.TRANSITION_END]={bindType:i,delegateType:i,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},t}(t),ds=(ti="alert",cr="."+(hr="bs.alert"),ff=(y=t).fn[ti],lr={CLOSE:"close"+cr,CLOSED:"closed"+cr,CLICK_DATA_API:"click"+cr+".data-api"},ef="alert",of="fade",sf="show",at=function(){function n(n){this._element=n}var t=n.prototype;return t.close=function(n){var t=this._element;n&&(t=this._getRootElement(n));this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){y.removeData(this._element,hr);this._element=null},t._getRootElement=function(n){var i=o.getSelectorFromElement(n),t=!1;return i&&(t=y(i)[0]),t||(t=y(n).closest("."+ef)[0]),t},t._triggerCloseEvent=function(n){var t=y.Event(lr.CLOSE);return y(n).trigger(t),t},t._removeElement=function(n){var i=this,t;(y(n).removeClass(sf),y(n).hasClass(of))?(t=o.getTransitionDurationFromElement(n),y(n).one(o.TRANSITION_END,function(t){return i._destroyElement(n,t)}).emulateTransitionEnd(t)):this._destroyElement(n)},t._destroyElement=function(n){y(n).detach().trigger(lr.CLOSED).remove()},n._jQueryInterface=function(t){return this.each(function(){var r=y(this),i=r.data(hr);i||(i=new n(this),r.data(hr,i));"close"===t&&i[t](this)})},n._handleDismiss=function(n){return function(t){t&&t.preventDefault();n.close(this)}},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),n}(),y(document).on(lr.CLICK_DATA_API,'[data-dismiss="alert"]',at._handleDismiss(new at)),y.fn[ti]=at._jQueryInterface,y.fn[ti].Constructor=at,y.fn[ti].noConflict=function(){return y.fn[ti]=ff,at._jQueryInterface},at),gs=(ii="button",vr="."+(ar="bs.button"),yr=".data-api",hf=(c=t).fn[ii],ri="active",cf="btn",hu='[data-toggle^="button"]',af='[data-toggle="buttons"]',vf="input",yf=".active",cu=".btn",lu={CLICK_DATA_API:"click"+vr+yr,FOCUS_BLUR_DATA_API:(lf="focus")+vr+yr+" blur"+vr+yr},ui=function(){function n(n){this._element=n}var t=n.prototype;return t.toggle=function(){var i=!0,u=!0,t=c(this._element).closest(af)[0],n,r;if(t&&(n=c(this._element).find(vf)[0],n)){if("radio"===n.type&&(n.checked&&c(this._element).hasClass(ri)?i=!1:(r=c(t).find(yf)[0],r&&c(r).removeClass(ri))),i){if(n.hasAttribute("disabled")||t.hasAttribute("disabled")||n.classList.contains("disabled")||t.classList.contains("disabled"))return;n.checked=!c(this._element).hasClass(ri);c(n).trigger("change")}n.focus();u=!1}u&&this._element.setAttribute("aria-pressed",!c(this._element).hasClass(ri));i&&c(this._element).toggleClass(ri)},t.dispose=function(){c.removeData(this._element,ar);this._element=null},n._jQueryInterface=function(t){return this.each(function(){var i=c(this).data(ar);i||(i=new n(this),c(this).data(ar,i));"toggle"===t&&i[t]()})},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),n}(),c(document).on(lu.CLICK_DATA_API,hu,function(n){n.preventDefault();var t=n.target;c(t).hasClass(cf)||(t=c(t).closest(cu));ui._jQueryInterface.call(c(t),"toggle")}).on(lu.FOCUS_BLUR_DATA_API,hu,function(n){var t=c(n.target).closest(cu)[0];c(t).toggleClass(lf,/^focus(in)?$/.test(n.type))}),c.fn[ii]=ui._jQueryInterface,c.fn[ii].Constructor=ui,c.fn[ii].noConflict=function(){return c.fn[ii]=hf,ui._jQueryInterface},ui),nh=(vt="carousel",tt="."+(ki="bs.carousel"),au=".data-api",pf=(f=t).fn[vt],pr={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},wf={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},di="next",gi="prev",bf="left",kf="right",it={SLIDE:"slide"+tt,SLID:"slid"+tt,KEYDOWN:"keydown"+tt,MOUSEENTER:"mouseenter"+tt,MOUSELEAVE:"mouseleave"+tt,TOUCHEND:"touchend"+tt,LOAD_DATA_API:"load"+tt+au,CLICK_DATA_API:"click"+tt+au},df="carousel",ot="active",gf="slide",ne="carousel-item-right",te="carousel-item-left",ie="carousel-item-next",re="carousel-item-prev",rt={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},yt=function(){function t(n,t){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=!1;this._isSliding=!1;this.touchTimeout=null;this._config=this._getConfig(t);this._element=f(n)[0];this._indicatorsElement=f(this._element).find(rt.INDICATORS)[0];this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide(di)},n.nextWhenVisible=function(){!document.hidden&&f(this._element).is(":visible")&&"hidden"!==f(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(gi)},n.pause=function(n){n||(this._isPaused=!0);f(this._element).find(rt.NEXT_PREV)[0]&&(o.triggerTransitionEnd(this._element),this.cycle(!0));clearInterval(this._interval);this._interval=null},n.cycle=function(n){n||(this._isPaused=!1);this._interval&&(clearInterval(this._interval),this._interval=null);this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(n){var r=this,t,i;if(this._activeElement=f(this._element).find(rt.ACTIVE_ITEM)[0],t=this._getItemIndex(this._activeElement),!(n>this._items.length-1||n<0))if(this._isSliding)f(this._element).one(it.SLID,function(){return r.to(n)});else{if(t===n)return this.pause(),void this.cycle();i=t<n?di:gi;this._slide(i,this._items[n])}},n.dispose=function(){f(this._element).off(tt);f.removeData(this._element,ki);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null},n._getConfig=function(n){return n=v({},pr,n),o.typeCheckConfig(vt,n,wf),n},n._addEventListeners=function(){var n=this;this._config.keyboard&&f(this._element).on(it.KEYDOWN,function(t){return n._keydown(t)});"hover"===this._config.pause&&(f(this._element).on(it.MOUSEENTER,function(t){return n.pause(t)}).on(it.MOUSELEAVE,function(t){return n.cycle(t)}),"ontouchstart"in document.documentElement&&f(this._element).on(it.TOUCHEND,function(){n.pause();n.touchTimeout&&clearTimeout(n.touchTimeout);n.touchTimeout=setTimeout(function(t){return n.cycle(t)},500+n._config.interval)}))},n._keydown=function(n){if(!/input|textarea/i.test(n.target.tagName))switch(n.which){case 37:n.preventDefault();this.prev();break;case 39:n.preventDefault();this.next()}},n._getItemIndex=function(n){return this._items=f.makeArray(f(n).parent().find(rt.ITEM)),this._items.indexOf(n)},n._getItemByDirection=function(n,t){var u=n===di,f=n===gi,i=this._getItemIndex(t),e=this._items.length-1,r;return(f&&0===i||u&&i===e)&&!this._config.wrap?t:(r=(i+(n===gi?-1:1))%this._items.length,-1===r?this._items[this._items.length-1]:this._items[r])},n._triggerSlideEvent=function(n,t){var r=this._getItemIndex(n),u=this._getItemIndex(f(this._element).find(rt.ACTIVE_ITEM)[0]),i=f.Event(it.SLIDE,{relatedTarget:n,direction:t,from:u,to:r});return f(this._element).trigger(i),i},n._setActiveIndicatorElement=function(n){if(this._indicatorsElement){f(this._indicatorsElement).find(rt.ACTIVE).removeClass(ot);var t=this._indicatorsElement.children[this._getItemIndex(n)];t&&f(t).addClass(ot)}},n._slide=function(n,t){var u,e,s,c=this,r=f(this._element).find(rt.ACTIVE_ITEM)[0],v=this._getItemIndex(r),i=t||r&&this._getItemByDirection(n,r),y=this._getItemIndex(i),l=Boolean(this._interval),h,a;(n===di?(u=te,e=ie,s=bf):(u=ne,e=re,s=kf),i&&f(i).hasClass(ot))?this._isSliding=!1:!this._triggerSlideEvent(i,s).isDefaultPrevented()&&r&&i&&(this._isSliding=!0,l&&this.pause(),this._setActiveIndicatorElement(i),h=f.Event(it.SLID,{relatedTarget:i,direction:s,from:v,to:y}),f(this._element).hasClass(gf)?(f(i).addClass(e),o.reflow(i),f(r).addClass(u),f(i).addClass(u),a=o.getTransitionDurationFromElement(r),f(r).one(o.TRANSITION_END,function(){f(i).removeClass(u+" "+e).addClass(ot);f(r).removeClass(ot+" "+e+" "+u);c._isSliding=!1;setTimeout(function(){return f(c._element).trigger(h)},0)}).emulateTransitionEnd(a)):(f(r).removeClass(ot),f(i).addClass(ot),this._isSliding=!1,f(this._element).trigger(h)),l&&this.cycle())},t._jQueryInterface=function(n){return this.each(function(){var i=f(this).data(ki),r=v({},pr,f(this).data()),u;if("object"==typeof n&&(r=v({},r,n)),u="string"==typeof n?n:r.slide,i||(i=new t(this,r),f(this).data(ki,i)),"number"==typeof n)i.to(n);else if("string"==typeof u){if("undefined"==typeof i[u])throw new TypeError('No method named "'+u+'"');i[u]()}else r.interval&&(i.pause(),i.cycle())})},t._dataApiClickHandler=function(n){var e=o.getSelectorFromElement(this),i,u,r;e&&(i=f(e)[0],i&&f(i).hasClass(df)&&(u=v({},f(i).data(),f(this).data()),r=this.getAttribute("data-slide-to"),r&&(u.interval=!1),t._jQueryInterface.call(f(i),u),r&&f(i).data(ki).to(r),n.preventDefault()))},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return pr}}]),t}(),f(document).on(it.CLICK_DATA_API,rt.DATA_SLIDE,yt._dataApiClickHandler),f(window).on(it.LOAD_DATA_API,function(){f(rt.DATA_RIDE).each(function(){var n=f(this);yt._jQueryInterface.call(n,n.data())})}),f.fn[vt]=yt._jQueryInterface,f.fn[vt].Constructor=yt,f.fn[vt].noConflict=function(){return f.fn[vt]=pf,yt._jQueryInterface},yt),th=(pt="collapse",fi="."+(wt="bs.collapse"),ue=(s=t).fn[pt],wr={toggle:!0,parent:""},fe={toggle:"boolean",parent:"(string|element)"},ei={SHOW:"show"+fi,SHOWN:"shown"+fi,HIDE:"hide"+fi,HIDDEN:"hidden"+fi,CLICK_DATA_API:"click"+fi+".data-api"},st="show",nr="collapse",tr="collapsing",br="collapsed",vu="width",ee="height",kr={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},oi=function(){function t(n,t){var u,i,f,r;for(this._isTransitioning=!1,this._element=n,this._config=this._getConfig(t),this._triggerArray=s.makeArray(s('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]')),u=s(kr.DATA_TOGGLE),i=0;i<u.length;i++)f=u[i],r=o.getSelectorFromElement(f),null!==r&&0<s(r).filter(n).length&&(this._selector=r,this._triggerArray.push(f));this._parent=this._config.parent?this._getParent():null;this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray);this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){s(this._element).hasClass(st)?this.hide():this.show()},n.show=function(){var n,u,r=this,f,i,e,h;this._isTransitioning||s(this._element).hasClass(st)||(this._parent&&0===(n=s.makeArray(s(this._parent).find(kr.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(n=null),n&&(u=s(n).not(this._selector).data(wt))&&u._isTransitioning)||(f=s.Event(ei.SHOW),(s(this._element).trigger(f),f.isDefaultPrevented())||(n&&(t._jQueryInterface.call(s(n).not(this._selector),"hide"),u||s(n).data(wt,null)),i=this._getDimension(),s(this._element).removeClass(nr).addClass(tr),(this._element.style[i]=0)<this._triggerArray.length&&s(this._triggerArray).removeClass(br).attr("aria-expanded",!0),this.setTransitioning(!0),e="scroll"+(i[0].toUpperCase()+i.slice(1)),h=o.getTransitionDurationFromElement(this._element),s(this._element).one(o.TRANSITION_END,function(){s(r._element).removeClass(tr).addClass(nr).addClass(st);r._element.style[i]="";r.setTransitioning(!1);s(r._element).trigger(ei.SHOWN)}).emulateTransitionEnd(h),this._element.style[i]=this._element[e]+"px"))},n.hide=function(){var f=this,i,n,t,r,u,e;if(!this._isTransitioning&&s(this._element).hasClass(st)&&(i=s.Event(ei.HIDE),s(this._element).trigger(i),!i.isDefaultPrevented())){if(n=this._getDimension(),this._element.style[n]=this._element.getBoundingClientRect()[n]+"px",o.reflow(this._element),s(this._element).addClass(tr).removeClass(nr).removeClass(st),0<this._triggerArray.length)for(t=0;t<this._triggerArray.length;t++)r=this._triggerArray[t],u=o.getSelectorFromElement(r),null!==u&&(s(u).hasClass(st)||s(r).addClass(br).attr("aria-expanded",!1));this.setTransitioning(!0);this._element.style[n]="";e=o.getTransitionDurationFromElement(this._element);s(this._element).one(o.TRANSITION_END,function(){f.setTransitioning(!1);s(f._element).removeClass(tr).addClass(nr).trigger(ei.HIDDEN)}).emulateTransitionEnd(e)}},n.setTransitioning=function(n){this._isTransitioning=n},n.dispose=function(){s.removeData(this._element,wt);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null},n._getConfig=function(n){return(n=v({},wr,n)).toggle=Boolean(n.toggle),o.typeCheckConfig(pt,n,fe),n},n._getDimension=function(){return s(this._element).hasClass(vu)?vu:ee},n._getParent=function(){var r=this,n=null,i;return o.isElement(this._config.parent)?(n=this._config.parent,"undefined"!=typeof this._config.parent.jquery&&(n=this._config.parent[0])):n=s(this._config.parent)[0],i='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s(n).find(i).each(function(n,i){r._addAriaAndCollapsedClass(t._getTargetFromElement(i),[i])}),n},n._addAriaAndCollapsedClass=function(n,t){if(n){var i=s(n).hasClass(st);0<t.length&&s(t).toggleClass(br,!i).attr("aria-expanded",i)}},t._getTargetFromElement=function(n){var t=o.getSelectorFromElement(n);return t?s(t)[0]:null},t._jQueryInterface=function(n){return this.each(function(){var r=s(this),i=r.data(wt),u=v({},wr,r.data(),"object"==typeof n&&n?n:{});if(!i&&u.toggle&&/show|hide/.test(n)&&(u.toggle=!1),i||(i=new t(this,u),r.data(wt,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return wr}}]),t}(),s(document).on(ei.CLICK_DATA_API,kr.DATA_TOGGLE,function(n){"A"===n.currentTarget.tagName&&n.preventDefault();var t=s(this),i=o.getSelectorFromElement(this);s(i).each(function(){var n=s(this),i=n.data(wt)?"toggle":t.data();oi._jQueryInterface.call(n,i)})}),s.fn[pt]=oi._jQueryInterface,s.fn[pt].Constructor=oi,s.fn[pt].noConflict=function(){return s.fn[pt]=ue,oi._jQueryInterface},oi),ih=(bt="dropdown",ut="."+(ir="bs.dropdown"),dr=".data-api",oe=(e=t).fn[bt],se=new RegExp("38|40|27"),b={HIDE:"hide"+ut,HIDDEN:"hidden"+ut,SHOW:"show"+ut,SHOWN:"shown"+ut,CLICK:"click"+ut,CLICK_DATA_API:"click"+ut+dr,KEYDOWN_DATA_API:"keydown"+ut+dr,KEYUP_DATA_API:"keyup"+ut+dr},yu="disabled",ht="show",he="dropup",ce="dropright",le="dropleft",pu="dropdown-menu-right",ae="position-static",rr='[data-toggle="dropdown"]',ve=".dropdown form",gr=".dropdown-menu",ye=".navbar-nav",pe=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",we="top-start",be="top-end",ke="bottom-start",de="bottom-end",ge="right-start",no="left-start",to={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},io={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},et=function(){function n(n,t){this._element=n;this._popper=null;this._config=this._getConfig(t);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners()}var t=n.prototype;return t.toggle=function(){var t,s,u,f,r;if(!this._element.disabled&&!e(this._element).hasClass(yu)&&(t=n._getParentFromElement(this._element),s=e(this._menu).hasClass(ht),(n._clearMenus(),!s)&&(u={relatedTarget:this._element},f=e.Event(b.SHOW,u),e(t).trigger(f),!f.isDefaultPrevented()))){if(!this._inNavbar){if("undefined"==typeof i)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");r=this._element;"parent"===this._config.reference?r=t:o.isElement(this._config.reference)&&(r=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(r=this._config.reference[0]));"scrollParent"!==this._config.boundary&&e(t).addClass(ae);this._popper=new i(r,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(t).closest(ye).length&&e(document.body).children().on("mouseover",null,e.noop);this._element.focus();this._element.setAttribute("aria-expanded",!0);e(this._menu).toggleClass(ht);e(t).toggleClass(ht).trigger(e.Event(b.SHOWN,u))}},t.dispose=function(){e.removeData(this._element,ir);e(this._element).off(ut);this._element=null;(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar();null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var n=this;e(this._element).on(b.CLICK,function(t){t.preventDefault();t.stopPropagation();n.toggle()})},t._getConfig=function(n){return n=v({},this.constructor.Default,e(this._element).data(),n),o.typeCheckConfig(bt,n,this.constructor.DefaultType),n},t._getMenuElement=function(){if(!this._menu){var t=n._getParentFromElement(this._element);this._menu=e(t).find(gr)[0]}return this._menu},t._getPlacement=function(){var t=e(this._element).parent(),n=ke;return t.hasClass(he)?(n=we,e(this._menu).hasClass(pu)&&(n=be)):t.hasClass(ce)?n=ge:t.hasClass(le)?n=no:e(this._menu).hasClass(pu)&&(n=de),n},t._detectNavbar=function(){return 0<e(this._element).closest(".navbar").length},t._getPopperConfig=function(){var i=this,n={},t;return"function"==typeof this._config.offset?n.fn=function(n){return n.offsets=v({},n.offsets,i._config.offset(n.offsets)||{}),n}:n.offset=this._config.offset,t={placement:this._getPlacement(),modifiers:{offset:n,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}},"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},n._jQueryInterface=function(t){return this.each(function(){var i=e(this).data(ir);if(i||(i=new n(this,"object"==typeof t?t:null),e(this).data(ir,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},n._clearMenus=function(t){var r,i,h,f;if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(r=e.makeArray(e(rr)),i=0;i<r.length;i++){var u=n._getParentFromElement(r[i]),o=e(r[i]).data(ir),s={relatedTarget:r[i]};o&&(h=o._menu,!e(u).hasClass(ht)||t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&e.contains(u,t.target)||(f=e.Event(b.HIDE,s),e(u).trigger(f),f.isDefaultPrevented()||("ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),r[i].setAttribute("aria-expanded","false"),e(h).removeClass(ht),e(u).removeClass(ht).trigger(e.Event(b.HIDDEN,s)))))}},n._getParentFromElement=function(n){var t,i=o.getSelectorFromElement(n);return i&&(t=e(i)[0]),t||n.parentNode},n._dataApiKeydownHandler=function(t){var u,f,r,i,o;(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||e(t.target).closest(gr).length):!se.test(t.which))||(t.preventDefault(),t.stopPropagation(),this.disabled||e(this).hasClass(yu))||(u=n._getParentFromElement(this),f=e(u).hasClass(ht),(f||27===t.which&&32===t.which)&&(!f||27!==t.which&&32!==t.which)?(r=e(u).find(pe).get(),0!==r.length&&(i=r.indexOf(t.target),38===t.which&&0<i&&i--,40===t.which&&i<r.length-1&&i++,i<0&&(i=0),r[i].focus())):(27===t.which&&(o=e(u).find(rr)[0],e(o).trigger("focus")),e(this).trigger("click")))},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return to}},{key:"DefaultType",get:function(){return io}}]),n}(),e(document).on(b.KEYDOWN_DATA_API,rr,et._dataApiKeydownHandler).on(b.KEYDOWN_DATA_API,gr,et._dataApiKeydownHandler).on(b.CLICK_DATA_API+" "+b.KEYUP_DATA_API,et._clearMenus).on(b.CLICK_DATA_API,rr,function(n){n.preventDefault();n.stopPropagation();et._jQueryInterface.call(e(this),"toggle")}).on(b.CLICK_DATA_API,ve,function(n){n.stopPropagation()}),e.fn[bt]=et._jQueryInterface,e.fn[bt].Constructor=et,e.fn[bt].noConflict=function(){return e.fn[bt]=oe,et._jQueryInterface},et),rh=(kt="modal",w="."+(ur="bs.modal"),ro=(r=t).fn[kt],nu={backdrop:!0,keyboard:!0,focus:!0,show:!0},uo={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},a={HIDE:"hide"+w,HIDDEN:"hidden"+w,SHOW:"show"+w,SHOWN:"shown"+w,FOCUSIN:"focusin"+w,RESIZE:"resize"+w,CLICK_DISMISS:"click.dismiss"+w,KEYDOWN_DISMISS:"keydown.dismiss"+w,MOUSEUP_DISMISS:"mouseup.dismiss"+w,MOUSEDOWN_DISMISS:"mousedown.dismiss"+w,CLICK_DATA_API:"click"+w+".data-api"},fo="modal-scrollbar-measure",eo="modal-backdrop",wu="modal-open",dt="fade",fr="show",ft={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},si=function(){function t(n,t){this._config=this._getConfig(t);this._element=n;this._dialog=r(n).find(ft.DIALOG)[0];this._backdrop=null;this._isShown=!1;this._isBodyOverflowing=!1;this._ignoreBackdropClick=!1;this._scrollbarWidth=0}var n=t.prototype;return n.toggle=function(n){return this._isShown?this.hide():this.show(n)},n.show=function(n){var t=this,i;this._isTransitioning||this._isShown||(r(this._element).hasClass(dt)&&(this._isTransitioning=!0),i=r.Event(a.SHOW,{relatedTarget:n}),r(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),r(document.body).addClass(wu),this._setEscapeEvent(),this._setResizeEvent(),r(this._element).on(a.CLICK_DISMISS,ft.DATA_DISMISS,function(n){return t.hide(n)}),r(this._dialog).on(a.MOUSEDOWN_DISMISS,function(){r(t._element).one(a.MOUSEUP_DISMISS,function(n){r(n.target).is(t._element)&&(t._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return t._showElement(n)})))},n.hide=function(n){var f=this,t,i,u;(n&&n.preventDefault(),!this._isTransitioning&&this._isShown)&&(t=r.Event(a.HIDE),(r(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented())&&(this._isShown=!1,i=r(this._element).hasClass(dt),(i&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r(document).off(a.FOCUSIN),r(this._element).removeClass(fr),r(this._element).off(a.CLICK_DISMISS),r(this._dialog).off(a.MOUSEDOWN_DISMISS),i)?(u=o.getTransitionDurationFromElement(this._element),r(this._element).one(o.TRANSITION_END,function(n){return f._hideModal(n)}).emulateTransitionEnd(u)):this._hideModal()))},n.dispose=function(){r.removeData(this._element,ur);r(window,document,this._element,this._backdrop).off(w);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(n){return n=v({},nu,n),o.typeCheckConfig(kt,n,uo),n},n._showElement=function(n){var t=this,u=r(this._element).hasClass(dt),f,i,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element);this._element.style.display="block";this._element.removeAttribute("aria-hidden");this._element.scrollTop=0;u&&o.reflow(this._element);r(this._element).addClass(fr);this._config.focus&&this._enforceFocus();f=r.Event(a.SHOWN,{relatedTarget:n});i=function(){t._config.focus&&t._element.focus();t._isTransitioning=!1;r(t._element).trigger(f)};u?(e=o.getTransitionDurationFromElement(this._element),r(this._dialog).one(o.TRANSITION_END,i).emulateTransitionEnd(e)):i()},n._enforceFocus=function(){var n=this;r(document).off(a.FOCUSIN).on(a.FOCUSIN,function(t){document!==t.target&&n._element!==t.target&&0===r(n._element).has(t.target).length&&n._element.focus()})},n._setEscapeEvent=function(){var n=this;this._isShown&&this._config.keyboard?r(this._element).on(a.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),n.hide())}):this._isShown||r(this._element).off(a.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var n=this;this._isShown?r(window).on(a.RESIZE,function(t){return n.handleUpdate(t)}):r(window).off(a.RESIZE)},n._hideModal=function(){var n=this;this._element.style.display="none";this._element.setAttribute("aria-hidden",!0);this._isTransitioning=!1;this._showBackdrop(function(){r(document.body).removeClass(wu);n._resetAdjustments();n._resetScrollbar();r(n._element).trigger(a.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(r(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(n){var t=this,i=r(this._element).hasClass(dt)?dt:"",f,u,e;if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className=eo,i&&r(this._backdrop).addClass(i),r(this._backdrop).appendTo(document.body),r(this._element).on(a.CLICK_DISMISS,function(n){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:n.target===n.currentTarget&&("static"===t._config.backdrop?t._element.focus():t.hide())}),i&&o.reflow(this._backdrop),r(this._backdrop).addClass(fr),!n)return;if(!i)return void n();f=o.getTransitionDurationFromElement(this._backdrop);r(this._backdrop).one(o.TRANSITION_END,n).emulateTransitionEnd(f)}else!this._isShown&&this._backdrop?(r(this._backdrop).removeClass(fr),u=function(){t._removeBackdrop();n&&n()},r(this._element).hasClass(dt)?(e=o.getTransitionDurationFromElement(this._backdrop),r(this._backdrop).one(o.TRANSITION_END,u).emulateTransitionEnd(e)):u()):n&&n()},n._adjustDialog=function(){var n=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&n&&(this._element.style.paddingLeft=this._scrollbarWidth+"px");this._isBodyOverflowing&&!n&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="";this._element.style.paddingRight=""},n._checkScrollbar=function(){var n=document.body.getBoundingClientRect();this._isBodyOverflowing=n.left+n.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var n=this,t,i;this._isBodyOverflowing&&(r(ft.FIXED_CONTENT).each(function(t,i){var u=r(i)[0].style.paddingRight,f=r(i).css("padding-right");r(i).data("padding-right",u).css("padding-right",parseFloat(f)+n._scrollbarWidth+"px")}),r(ft.STICKY_CONTENT).each(function(t,i){var u=r(i)[0].style.marginRight,f=r(i).css("margin-right");r(i).data("margin-right",u).css("margin-right",parseFloat(f)-n._scrollbarWidth+"px")}),r(ft.NAVBAR_TOGGLER).each(function(t,i){var u=r(i)[0].style.marginRight,f=r(i).css("margin-right");r(i).data("margin-right",u).css("margin-right",parseFloat(f)+n._scrollbarWidth+"px")}),t=document.body.style.paddingRight,i=r(document.body).css("padding-right"),r(document.body).data("padding-right",t).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px"))},n._resetScrollbar=function(){r(ft.FIXED_CONTENT).each(function(n,t){var i=r(t).data("padding-right");"undefined"!=typeof i&&r(t).css("padding-right",i).removeData("padding-right")});r(ft.STICKY_CONTENT+", "+ft.NAVBAR_TOGGLER).each(function(n,t){var i=r(t).data("margin-right");"undefined"!=typeof i&&r(t).css("margin-right",i).removeData("margin-right")});var n=r(document.body).data("padding-right");"undefined"!=typeof n&&r(document.body).css("padding-right",n).removeData("padding-right")},n._getScrollbarWidth=function(){var n=document.createElement("div"),t;return n.className=fo,document.body.appendChild(n),t=n.getBoundingClientRect().width-n.clientWidth,document.body.removeChild(n),t},t._jQueryInterface=function(n,i){return this.each(function(){var u=r(this).data(ur),f=v({},nu,r(this).data(),"object"==typeof n&&n?n:{});if(u||(u=new t(this,f),r(this).data(ur,u)),"string"==typeof n){if("undefined"==typeof u[n])throw new TypeError('No method named "'+n+'"');u[n](i)}else f.show&&u.show(i)})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return nu}}]),t}(),r(document).on(a.CLICK_DATA_API,ft.DATA_TOGGLE,function(n){var t,i=this,u=o.getSelectorFromElement(this),f,e;u&&(t=r(u)[0]);f=r(t).data(ur)?"toggle":v({},r(t).data(),r(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||n.preventDefault();e=r(t).one(a.SHOW,function(n){n.isDefaultPrevented()||e.one(a.HIDDEN,function(){r(i).is(":visible")&&i.focus()})});si._jQueryInterface.call(r(t),f,this)}),r.fn[kt]=si._jQueryInterface,r.fn[kt].Constructor=si,r.fn[kt].noConflict=function(){return r.fn[kt]=ro,si._jQueryInterface},si),su=(ct="tooltip",k="."+(tu="bs.tooltip"),oo=(u=t).fn[ct],bu="bs-tooltip",so=new RegExp("(^|\\s)"+bu+"\\S+","g"),lo={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!(co={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(ho={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},iu="out",ao={HIDE:"hide"+k,HIDDEN:"hidden"+k,SHOW:(hi="show")+k,SHOWN:"shown"+k,INSERTED:"inserted"+k,CLICK:"click"+k,FOCUSIN:"focusin"+k,FOCUSOUT:"focusout"+k,MOUSEENTER:"mouseenter"+k,MOUSELEAVE:"mouseleave"+k},ci="fade",li="show",vo=".tooltip-inner",yo=".arrow",ai="hover",ru="focus",po="click",wo="manual",er=function(){function t(n,t){if("undefined"==typeof i)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0;this._timeout=0;this._hoverState="";this._activeTrigger={};this._popper=null;this.element=n;this.config=this._getConfig(t);this.tip=null;this._setListeners()}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(n){if(this._isEnabled)if(n){var i=this.constructor.DATA_KEY,t=u(n.currentTarget).data(i);t||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));t._activeTrigger.click=!t._activeTrigger.click;t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(u(this.getTipElement()).hasClass(li))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout);u.removeData(this.element,this.constructor.DATA_KEY);u(this.element).off(this.constructor.EVENT_KEY);u(this.element).closest(".modal").off("hide.bs.modal");this.tip&&u(this.tip).remove();this._isEnabled=null;this._timeout=null;this._hoverState=null;(this._activeTrigger=null)!==this._popper&&this._popper.destroy();this._popper=null;this.element=null;this.config=null;this.tip=null},n.show=function(){var n=this,r,h,t,f,c,e,l,s,a;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");if(r=u.Event(this.constructor.Event.SHOW),this.isWithContent()&&this._isEnabled){if(u(this.element).trigger(r),h=u.contains(this.element.ownerDocument.documentElement,this.element),r.isDefaultPrevented()||!h)return;t=this.getTipElement();f=o.getUID(this.constructor.NAME);t.setAttribute("id",f);this.element.setAttribute("aria-describedby",f);this.setContent();this.config.animation&&u(t).addClass(ci);c="function"==typeof this.config.placement?this.config.placement.call(this,t,this.element):this.config.placement;e=this._getAttachment(c);this.addAttachmentClass(e);l=!1===this.config.container?document.body:u(this.config.container);u(t).data(this.constructor.DATA_KEY,this);u.contains(this.element.ownerDocument.documentElement,this.tip)||u(t).appendTo(l);u(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new i(this.element,t,{placement:e,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:yo},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&n._handlePopperPlacementChange(t)},onUpdate:function(t){n._handlePopperPlacementChange(t)}});u(t).addClass(li);"ontouchstart"in document.documentElement&&u(document.body).children().on("mouseover",null,u.noop);s=function(){n.config.animation&&n._fixTransition();var t=n._hoverState;n._hoverState=null;u(n.element).trigger(n.constructor.Event.SHOWN);t===iu&&n._leave(null,n)};u(this.tip).hasClass(ci)?(a=o.getTransitionDurationFromElement(this.tip),u(this.tip).one(o.TRANSITION_END,s).emulateTransitionEnd(a)):s()}},n.hide=function(n){var t=this,i=this.getTipElement(),r=u.Event(this.constructor.Event.HIDE),f=function(){t._hoverState!==hi&&i.parentNode&&i.parentNode.removeChild(i);t._cleanTipClass();t.element.removeAttribute("aria-describedby");u(t.element).trigger(t.constructor.Event.HIDDEN);null!==t._popper&&t._popper.destroy();n&&n()},e;(u(this.element).trigger(r),r.isDefaultPrevented())||((u(i).removeClass(li),"ontouchstart"in document.documentElement&&u(document.body).children().off("mouseover",null,u.noop),this._activeTrigger[po]=!1,this._activeTrigger[ru]=!1,this._activeTrigger[ai]=!1,u(this.tip).hasClass(ci))?(e=o.getTransitionDurationFromElement(i),u(i).one(o.TRANSITION_END,f).emulateTransitionEnd(e)):f(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(n){u(this.getTipElement()).addClass(bu+"-"+n)},n.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},n.setContent=function(){var n=u(this.getTipElement());this.setElementContent(n.find(vo),this.getTitle());n.removeClass(ci+" "+li)},n.setElementContent=function(n,t){var i=this.config.html;"object"==typeof t&&(t.nodeType||t.jquery)?i?u(t).parent().is(n)||n.empty().append(t):n.text(u(t).text()):n[i?"html":"text"](t)},n.getTitle=function(){var n=this.element.getAttribute("data-original-title");return n||(n="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),n},n._getAttachment=function(n){return co[n.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==wo){var i=t===ai?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,r=t===ai?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(i,n.config.selector,function(t){return n._enter(t)}).on(r,n.config.selector,function(t){return n._leave(t)})}u(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})});this.config.selector?this.config=v({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var n=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==n)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(n,t){var i=this.constructor.DATA_KEY;(t=t||u(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusin"===n.type?ru:ai]=!0);u(t.getTipElement()).hasClass(li)||t._hoverState===hi?t._hoverState=hi:(clearTimeout(t._timeout),t._hoverState=hi,t.config.delay&&t.config.delay.show?t._timeout=setTimeout(function(){t._hoverState===hi&&t.show()},t.config.delay.show):t.show())},n._leave=function(n,t){var i=this.constructor.DATA_KEY;(t=t||u(n.currentTarget).data(i))||(t=new this.constructor(n.currentTarget,this._getDelegateConfig()),u(n.currentTarget).data(i,t));n&&(t._activeTrigger["focusout"===n.type?ru:ai]=!1);t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=iu,t.config.delay&&t.config.delay.hide?t._timeout=setTimeout(function(){t._hoverState===iu&&t.hide()},t.config.delay.hide):t.hide())},n._isWithActiveTrigger=function(){for(var n in this._activeTrigger)if(this._activeTrigger[n])return!0;return!1},n._getConfig=function(n){return"number"==typeof(n=v({},this.constructor.Default,u(this.element).data(),"object"==typeof n&&n?n:{})).delay&&(n.delay={show:n.delay,hide:n.delay}),"number"==typeof n.title&&(n.title=n.title.toString()),"number"==typeof n.content&&(n.content=n.content.toString()),o.typeCheckConfig(ct,n,this.constructor.DefaultType),n},n._getDelegateConfig=function(){var t={},n;if(this.config)for(n in this.config)this.constructor.Default[n]!==this.config[n]&&(t[n]=this.config[n]);return t},n._cleanTipClass=function(){var t=u(this.getTipElement()),n=t.attr("class").match(so);null!==n&&0<n.length&&t.removeClass(n.join(""))},n._handlePopperPlacementChange=function(n){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(n.placement))},n._fixTransition=function(){var n=this.getTipElement(),t=this.config.animation;null===n.getAttribute("x-placement")&&(u(n).removeClass(ci),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},t._jQueryInterface=function(n){return this.each(function(){var i=u(this).data(tu),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,r),u(this).data(tu,i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return lo}},{key:"NAME",get:function(){return ct}},{key:"DATA_KEY",get:function(){return tu}},{key:"Event",get:function(){return ao}},{key:"EVENT_KEY",get:function(){return k}},{key:"DefaultType",get:function(){return ho}}]),t}(),u.fn[ct]=er._jQueryInterface,u.fn[ct].Constructor=er,u.fn[ct].noConflict=function(){return u.fn[ct]=oo,er._jQueryInterface},er),uh=(gt="popover",d="."+(uu="bs.popover"),bo=(g=t).fn[gt],ku="bs-popover",ko=new RegExp("(^|\\s)"+ku+"\\S+","g"),go=v({},su.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-header"><\/h3><div class="popover-body"><\/div><\/div>'}),ns=v({},su.DefaultType,{content:"(string|element|function)"}),ts="fade",rs=".popover-header",us=".popover-body",fs={HIDE:"hide"+d,HIDDEN:"hidden"+d,SHOW:(is="show")+d,SHOWN:"shown"+d,INSERTED:"inserted"+d,CLICK:"click"+d,FOCUSIN:"focusin"+d,FOCUSOUT:"focusout"+d,MOUSEENTER:"mouseenter"+d,MOUSELEAVE:"mouseleave"+d},or=function(n){function i(){return n.apply(this,arguments)||this}var r,u,t;return u=n,(r=i).prototype=Object.create(u.prototype),(r.prototype.constructor=r).__proto__=u,t=i.prototype,t.isWithContent=function(){return this.getTitle()||this._getContent()},t.addAttachmentClass=function(n){g(this.getTipElement()).addClass(ku+"-"+n)},t.getTipElement=function(){return this.tip=this.tip||g(this.config.template)[0],this.tip},t.setContent=function(){var t=g(this.getTipElement()),n;this.setElementContent(t.find(rs),this.getTitle());n=this._getContent();"function"==typeof n&&(n=n.call(this.element));this.setElementContent(t.find(us),n);t.removeClass(ts+" "+is)},t._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},t._cleanTipClass=function(){var t=g(this.getTipElement()),n=t.attr("class").match(ko);null!==n&&0<n.length&&t.removeClass(n.join(""))},i._jQueryInterface=function(n){return this.each(function(){var t=g(this).data(uu),r="object"==typeof n?n:null;if((t||!/destroy|hide/.test(n))&&(t||(t=new i(this,r),g(this).data(uu,t)),"string"==typeof n)){if("undefined"==typeof t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},nt(i,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return go}},{key:"NAME",get:function(){return gt}},{key:"DATA_KEY",get:function(){return uu}},{key:"Event",get:function(){return fs}},{key:"EVENT_KEY",get:function(){return d}},{key:"DefaultType",get:function(){return ns}}]),i}(su),g.fn[gt]=or._jQueryInterface,g.fn[gt].Constructor=or,g.fn[gt].noConflict=function(){return g.fn[gt]=bo,or._jQueryInterface},or),fh=(lt="scrollspy",sr="."+(fu="bs.scrollspy"),es=(l=t).fn[lt],du={offset:10,method:"auto",target:""},os={offset:"number",method:"string",target:"(string|element)"},eu={ACTIVATE:"activate"+sr,SCROLL:"scroll"+sr,LOAD_DATA_API:"load"+sr+".data-api"},ss="dropdown-item",ni="active",p={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},hs="offset",gu="position",vi=function(){function t(n,t){var i=this;this._element=n;this._scrollElement="BODY"===n.tagName?window:n;this._config=this._getConfig(t);this._selector=this._config.target+" "+p.NAV_LINKS+","+this._config.target+" "+p.LIST_ITEMS+","+this._config.target+" "+p.DROPDOWN_ITEMS;this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;l(this._scrollElement).on(eu.SCROLL,function(n){return i._process(n)});this.refresh();this._process()}var n=t.prototype;return n.refresh=function(){var n=this,i=this._scrollElement===this._scrollElement.window?hs:gu,t="auto"===this._config.method?i:this._config.method,r=t===gu?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();l.makeArray(l(this._selector)).map(function(n){var i,u=o.getSelectorFromElement(n),f;return(u&&(i=l(u)[0]),i)&&(f=i.getBoundingClientRect(),f.width||f.height)?[l(i)[t]().top+r,u]:null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n._offsets.push(t[0]);n._targets.push(t[1])})},n.dispose=function(){l.removeData(this._element,fu);l(this._scrollElement).off(sr);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null},n._getConfig=function(n){if("string"!=typeof(n=v({},du,"object"==typeof n&&n?n:{})).target){var t=l(n.target).attr("id");t||(t=o.getUID(lt),l(n.target).attr("id",t));n.target="#"+t}return o.typeCheckConfig(lt,n,os),n},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,r=this._getScrollHeight(),u=this._config.offset+r-this._getOffsetHeight(),i,n;if(this._scrollHeight!==r&&this.refresh(),u<=t)i=this._targets[this._targets.length-1],this._activeTarget!==i&&this._activate(i);else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(n=this._offsets.length;n--;)this._activeTarget!==this._targets[n]&&t>=this._offsets[n]&&("undefined"==typeof this._offsets[n+1]||t<this._offsets[n+1])&&this._activate(this._targets[n])}},n._activate=function(n){var i,t;this._activeTarget=n;this._clear();i=this._selector.split(",");i=i.map(function(t){return t+'[data-target="'+n+'"],'+t+'[href="'+n+'"]'});t=l(i.join(","));t.hasClass(ss)?(t.closest(p.DROPDOWN).find(p.DROPDOWN_TOGGLE).addClass(ni),t.addClass(ni)):(t.addClass(ni),t.parents(p.NAV_LIST_GROUP).prev(p.NAV_LINKS+", "+p.LIST_ITEMS).addClass(ni),t.parents(p.NAV_LIST_GROUP).prev(p.NAV_ITEMS).children(p.NAV_LINKS).addClass(ni));l(this._scrollElement).trigger(eu.ACTIVATE,{relatedTarget:n})},n._clear=function(){l(this._selector).filter(p.ACTIVE).removeClass(ni)},t._jQueryInterface=function(n){return this.each(function(){var i=l(this).data(fu);if(i||(i=new t(this,"object"==typeof n&&n),l(this).data(fu,i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},nt(t,null,[{key:"VERSION",get:function(){return"4.1.1"}},{key:"Default",get:function(){return du}}]),t}(),l(window).on(eu.LOAD_DATA_API,function(){for(var i,n=l.makeArray(l(p.DATA_SPY)),t=n.length;t--;)i=l(n[t]),vi._jQueryInterface.call(i,i.data())}),l.fn[lt]=vi._jQueryInterface,l.fn[lt].Constructor=vi,l.fn[lt].noConflict=function(){return l.fn[lt]=es,vi._jQueryInterface},vi),eh=(yi="."+(ou="bs.tab"),cs=(h=t).fn.tab,pi={HIDE:"hide"+yi,HIDDEN:"hidden"+yi,SHOW:"show"+yi,SHOWN:"shown"+yi,CLICK_DATA_API:"click"+yi+".data-api"},ls="dropdown-menu",wi="active",as="disabled",vs="fade",nf="show",ys=".dropdown",ps=".nav, .list-group",tf=".active",rf="> li > .active",ws='[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',bs=".dropdown-toggle",ks="> .dropdown-menu .active",bi=function(){function n(n){this._element=n}var t=n.prototype;return t.show=function(){var s=this,i,n,t,r,c,u,f,e;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&h(this._element).hasClass(wi)||h(this._element).hasClass(as)||(t=h(this._element).closest(ps)[0],r=o.getSelectorFromElement(this._element),t&&(c="UL"===t.nodeName?rf:tf,n=(n=h.makeArray(h(t).find(c)))[n.length-1]),u=h.Event(pi.HIDE,{relatedTarget:this._element}),f=h.Event(pi.SHOW,{relatedTarget:n}),(n&&h(n).trigger(u),h(this._element).trigger(f),f.isDefaultPrevented()||u.isDefaultPrevented())||(r&&(i=h(r)[0]),this._activate(this._element,t),e=function(){var t=h.Event(pi.HIDDEN,{relatedTarget:s._element}),i=h.Event(pi.SHOWN,{relatedTarget:n});h(n).trigger(t);h(s._element).trigger(i)},i?this._activate(i,i.parentNode,e):e()))},t.dispose=function(){h.removeData(this._element,ou);this._element=null},t._activate=function(n,t,i){var e=this,r=("UL"===t.nodeName?h(t).find(rf):h(t).children(tf))[0],s=i&&r&&h(r).hasClass(vs),u=function(){return e._transitionComplete(n,r,i)},f;r&&s?(f=o.getTransitionDurationFromElement(r),h(r).one(o.TRANSITION_END,u).emulateTransitionEnd(f)):u()},t._transitionComplete=function(n,t,i){var r,u;t&&(h(t).removeClass(nf+" "+wi),r=h(t.parentNode).find(ks)[0],r&&h(r).removeClass(wi),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1));(h(n).addClass(wi),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!0),o.reflow(n),h(n).addClass(nf),n.parentNode&&h(n.parentNode).hasClass(ls))&&(u=h(n).closest(ys)[0],u&&h(u).find(bs).addClass(wi),n.setAttribute("aria-expanded",!0));i&&i()},n._jQueryInterface=function(t){return this.each(function(){var r=h(this),i=r.data(ou);if(i||(i=new n(this),r.data(ou,i)),"string"==typeof t){if("undefined"==typeof i[t])throw new TypeError('No method named "'+t+'"');i[t]()}})},nt(n,null,[{key:"VERSION",get:function(){return"4.1.1"}}]),n}(),h(document).on(pi.CLICK_DATA_API,ws,function(n){n.preventDefault();bi._jQueryInterface.call(h(this),"show")}),h.fn.tab=bi._jQueryInterface,h.fn.tab.Constructor=bi,h.fn.tab.noConflict=function(){return h.fn.tab=cs,bi._jQueryInterface},bi);!function(n){if("undefined"==typeof n)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0");}(t);n.Util=o;n.Alert=ds;n.Button=gs;n.Carousel=nh;n.Collapse=th;n.Dropdown=ih;n.Modal=rh;n.Popover=uh;n.Scrollspy=fh;n.Tab=eh;n.Tooltip=su;Object.defineProperty(n,"__esModule",{value:!0})}),function(n){n.fn.pgwSlider=function(t){var o={mainClassName:"pgwSlider",listPosition:"left",selectionMode:"click",transitionEffect:"fading",autoSlide:!0,displayList:!0,displayControls:!1,touchControls:!0,verticalCentering:!1,adaptiveHeight:!1,maxHeight:null,beforeSlide:null,afterSlide:null,adaptiveDuration:200,transitionDuration:500,intervalDuration:3e3},i;if(this.length==0)return this;if(this.length>1)return this.each(function(){n(this).pgwSlider(t)}),this;i=this;i.plugin=this;i.data=[];i.config={};i.currentSlide=0;i.slideCount=0;i.resizeEvent=null;i.intervalEvent=null;i.touchFirstPosition=null;i.transitionInProgress=!1;i.window=n(window);var c=function(){return i.config=n.extend({},o,t),h(),i.config.autoSlide&&u(),!0},l=function(n){var t={},s=n.find("a").attr("href"),r,u,f,i,e,o;return typeof s!="undefined"&&s!=""&&(t.link=s,r=n.find("a").attr("target"),typeof r!="undefined"&&r!=""&&(t.linkTarget=r)),u=n.find("img").attr("src"),typeof u!="undefined"&&u!=""&&(t.thumbnail=u),f=n.find("img").attr("data-large-src"),typeof f!="undefined"&&f!=""&&(t.image=f),i=n.find("span").text(),typeof i!="undefined"&&i!=""&&i!=null?t.title=i:(e=n.find("img").attr("alt"),typeof e!="undefined"&&e!=""&&(t.title=e)),o=n.find("img").attr("data-description"),typeof o!="undefined"&&o!=""&&(t.description=o),t},f=function(t,r){return i.config.maxHeight&&(i.plugin.width()>480&&t>i.config.maxHeight?t=i.config.maxHeight:i.plugin.width()<=480&&t+i.plugin.find(".ps-list").height()>i.config.maxHeight&&(t=i.config.maxHeight-i.plugin.find(".ps-list").height())),clearTimeout(i.resizeEvent),i.resizeEvent=setTimeout(function(){var u=(t-(i.slideCount-1)*6)/i.slideCount,f=100/i.slideCount;i.plugin.find(".ps-list > li").css({width:f+"%"});typeof r!="undefined"&&r&&i.config.maxHeight==null?typeof i.plugin.find(".ps-current").animate=="function"?i.plugin.find(".ps-current").animate({height:t},i.config.adaptiveDuration,function(){i.plugin.find(".ps-list > li").animate({height:u},i.config.adaptiveDuration)}):(i.plugin.find(".ps-current").css("height",t),i.plugin.find(".ps-list > li").css("height",u)):(i.plugin.find(".ps-current").css("height",t),i.plugin.find(".ps-list > li").css("height",u));i.config.verticalCentering&&(i.plugin.find(".ps-list > li").each(function(){var t;u>50&&n(this).find("img").height()>u?(t=Math.round((n(this).find("img").height()-u)/2),n(this).find("img").css("margin-top",-t)):n(this).find("img").height()<u?(t=Math.round((u-n(this).find("img").height())/2),n(this).find("img").css("margin-top",t)):n(this).find("img").css("margin-top","")}),i.plugin.find(".ps-current > ul > li").each(function(){var r=n(this).css("display")=="none"?!1:!0,i;r||n(this).show();n(this).show().find("img").height()>t?(i=Math.round((n(this).find("img").height()-t)/2),n(this).find("img").css("margin-top",-i)):n(this).show().find("img").height()<t?(i=Math.round((t-n(this).find("img").height())/2),n(this).find("img").css("margin-top",i)):n(this).find("img").css("margin-top","");r||n(this).hide()}))},100),!0},s=function(){return i.plugin.width()<=480?i.plugin.addClass("narrow").removeClass("wide"):i.plugin.addClass("wide").removeClass("narrow"),!0},h=function(){if(i.plugin.removeClass(i.config.mainClassName).addClass("ps-list"),i.plugin.wrap('<div class="'+i.config.mainClassName+'"><\/div>'),i.plugin=i.plugin.parent(),i.plugin.prepend('<div class="ps-current"><ul><\/ul><span class="ps-caption"><\/span><\/div>'),i.slideCount=i.plugin.find(".ps-list > li").length,i.slideCount==0)throw new Error("PgwSlider - No slider item has been found");i.config.displayControls&&i.slideCount>1&&(i.plugin.find(".ps-current").prepend('<span class="ps-prev"><span class="ps-prevIcon"><\/span><\/span>'),i.plugin.find(".ps-current").append('<span class="ps-next"><span class="ps-nextIcon"><\/span><\/span>'),i.plugin.find(".ps-current .ps-prev").click(function(){i.previousSlide()}),i.plugin.find(".ps-current .ps-next").click(function(){i.nextSlide()}));i.config.displayList||(i.plugin.find(".ps-current").css("width","100%"),i.plugin.find(".ps-list").hide());var t=1;if(i.plugin.find(".ps-list > li").each(function(){var u=l(n(this)),f;u.id=t;i.data.push(u);n(this).addClass("elt_"+u.id);u.title&&(n(this).find("span").length==1?n(this).find("span").text()==""&&n(this).find("span").text(u.title):n(this).find("img").after("<span>"+u.title+"<\/span>"));f=n('<li class="elt_'+t+'"><\/li>');u.image?f.html('<img src="'+u.image+'" alt="'+(u.title?u.title:"")+'">'):u.thumbnail&&f.html('<img src="'+u.thumbnail+'" alt="'+(u.title?u.title:"")+'">');u.link&&f.html('<a href="'+u.link+'"'+(u.linkTarget?' target="'+u.linkTarget+'"':"")+">"+f.html()+"<\/a>");i.plugin.find(".ps-current > ul").append(f);i.config.selectionMode=="mouseOver"&&i.config.transitionEffect=="fading"?(n(this).css("cursor","default").click(function(n){n.preventDefault()}).bind("mouseenter",function(){r(u.id)}),n(this).find("a").css("cursor","default")):n(this).css("cursor","pointer").click(function(n){n.preventDefault();r(u.id)});t++}),i.config.listPosition=="left"&&i.plugin.addClass("listOnTheLeft"),i.config.autoSlide)i.plugin.on("mouseenter",function(){clearInterval(i.intervalEvent);i.intervalEvent=null}).on("mouseleave",function(){u()});r(1);i.plugin.find(".ps-current > ul > li.elt_1 img").on("load",function(){s();var n=i.plugin.find(".ps-current > ul > li.elt_1 img").height();f(n);i.window.resize(function(){s();var n=i.plugin.find(".ps-current > ul > li.elt_"+i.currentSlide+" img").height();f(n,i.config.adaptiveHeight)})});if(i.config.touchControls&&i.slideCount>1){i.plugin.find(".ps-current").on("touchstart",function(n){try{n.originalEvent.touches[0].clientX&&i.touchFirstPosition==null&&(i.touchFirstPosition=n.originalEvent.touches[0].clientX)}catch(n){i.touchFirstPosition=null}});i.plugin.find(".ps-current").on("touchmove",function(n){try{n.originalEvent.touches[0].clientX&&i.touchFirstPosition!=null&&(n.originalEvent.touches[0].clientX>i.touchFirstPosition+50?(i.touchFirstPosition=null,i.previousSlide()):n.originalEvent.touches[0].clientX<i.touchFirstPosition-50&&(i.touchFirstPosition=null,i.nextSlide()))}catch(n){i.touchFirstPosition=null}});i.plugin.find(".ps-current").on("touchend",function(){i.touchFirstPosition=null})}return!0},e=function(n){var t="",r;return n.title&&(t+="<b>"+n.title+"<\/b>"),n.description&&(t!=""&&(t+="<br>"),t+=n.description),t!=""&&(n.link&&(t='<a href="'+n.link+'"'+(n.linkTarget?' target="'+n.linkTarget+'"':"")+">"+t+"<\/a>"),typeof i.plugin.find(".ps-caption").fadeIn=="function"?(i.plugin.find(".ps-caption").html(t),i.plugin.find(".ps-caption").fadeIn(i.config.transitionDuration/2)):(i.plugin.find(".ps-caption").html(t),i.plugin.find(".ps-caption").show())),i.config.displayControls&&(typeof i.plugin.find(".ps-current > .ps-prev").fadeIn=="function"?i.plugin.find(".ps-current > .ps-prev, .ps-current > .ps-next").fadeIn(i.config.transitionDuration/2):i.plugin.find(".ps-current > .ps-prev, .ps-current > .ps-next").show()),typeof i.config.afterSlide=="function"&&i.config.afterSlide(n.id),i.config.adaptiveHeight&&(r=i.plugin.find(".ps-current .elt_"+n.id+" img").height(),f(r,!0)),!0},a=function(t){var f=i.plugin.find(".ps-current > ul"),r,u;return i.plugin.find(".ps-list > li").css("opacity","0.6"),i.plugin.find(".ps-list > li.elt_"+t.id).css("opacity","1"),f.find("li").not(".elt_"+i.currentSlide).not(".elt_"+t.id).each(function(){typeof n(this).stop=="function"&&n(this).stop();n(this).css("position","").css("z-index",1).hide()}),i.currentSlide>0&&(r=f.find(".elt_"+i.currentSlide),typeof r.animate!="function"&&(r.animate=function(n,t,i){r.css(n);i&&i()}),typeof r.stop=="function"&&r.stop(),r.css("position","absolute").animate({opacity:0},i.config.transitionDuration,function(){r.css("position","").css("z-index",1).hide()})),i.currentSlide=t.id,u=f.find(".elt_"+t.id),typeof u.animate!="function"&&(u.animate=function(n,t,i){u.css(n);i&&i()}),typeof u.stop=="function"&&u.stop(),u.css("position","absolute").show().animate({opacity:1},i.config.transitionDuration,function(){u.css("position","").css("z-index",2).show();e(t)}),!0},v=function(n,t){var o=i.plugin.find(".ps-current > ul"),f,s,h,r,u;if(typeof t=="undefined"&&(t="left"),i.currentSlide==0)o.find(".elt_1").css({position:"",left:"",opacity:1,"z-index":2}).show(),i.plugin.find(".ps-list > li.elt_1").css("opacity","1"),e(n);else{if(i.transitionInProgress)return!1;i.transitionInProgress=!0;f=o.width();t=="left"?(s=-f,h=f):(s=f,h=-f);r=o.find(".elt_"+i.currentSlide);typeof r.animate!="function"&&(r.animate=function(n,t,i){r.css(n);i&&i()});r.css("position","absolute").animate({left:s},i.config.transitionDuration,function(){r.css("position","").css("z-index",1).css("left","").css("opacity",0).hide()});u=o.find(".elt_"+n.id);typeof u.animate!="function"&&(u.animate=function(n,t,i){u.css(n);i&&i()});u.css("position","absolute").css("left",h).css("opacity",1).show().animate({left:0},i.config.transitionDuration,function(){u.css("position","").css("left","").css("z-index",2).show();i.transitionInProgress=!1;i.plugin.find(".ps-list > li").css("opacity","0.6");i.plugin.find(".ps-list > li.elt_"+n.id).css("opacity","1");e(n)})}return i.currentSlide=n.id,!0},r=function(n,t,r){if(n==i.currentSlide)return!1;var f=i.data[n-1];if(typeof f=="undefined")throw new Error("PgwSlider - The element "+n+" is undefined");return typeof r=="undefined"&&(r="left"),typeof i.config.beforeSlide=="function"&&i.config.beforeSlide(n),typeof i.plugin.find(".ps-caption").fadeOut=="function"?i.plugin.find(".ps-caption, .ps-prev, .ps-next").fadeOut(i.config.transitionDuration/2):i.plugin.find(".ps-caption, .ps-prev, .ps-next").hide(),i.config.transitionEffect=="sliding"?v(f,r):a(f),typeof t!="undefined"&&i.config.autoSlide&&u(),!0},u=function(){return clearInterval(i.intervalEvent),i.slideCount>1&&i.config.autoSlide&&(i.intervalEvent=setInterval(function(){var n;n=i.currentSlide+1<=i.slideCount?i.currentSlide+1:1;r(n)},i.config.intervalDuration)),!0};return i.startSlide=function(){return i.config.autoSlide=!0,u(),!0},i.stopSlide=function(){return i.config.autoSlide=!1,clearInterval(i.intervalEvent),!0},i.getCurrentSlide=function(){return i.currentSlide},i.getSlideCount=function(){return i.slideCount},i.displaySlide=function(n){return r(n,!0),!0},i.nextSlide=function(){var n;return n=i.currentSlide+1<=i.slideCount?i.currentSlide+1:1,r(n,!0,"left"),!0},i.previousSlide=function(){var n;return n=i.currentSlide-1>=1?i.currentSlide-1:i.slideCount,r(n,!0,"right"),!0},i.destroy=function(t){return clearInterval(i.intervalEvent),typeof t!="undefined"?(i.plugin.find(".ps-list > li").each(function(){n(this).attr("style",null).removeClass().css("cursor","").unbind("click").unbind("mouseenter");n(this).find("a").css("cursor","");n(this).find("img").attr("style",null)}),i.plugin.find(".ps-list").addClass(i.config.mainClassName).removeClass("ps-list"),i.plugin.find(".ps-current").unwrap().remove(),i.hide()):i.parent().remove(),i.plugin=null,i.data=[],i.config={},i.currentSlide=0,i.slideCount=0,i.resizeEvent=null,i.intervalEvent=null,i.touchFirstPosition=null,i.transitionInProgress=!1,i.window=null,!0},i.reload=function(t){return i.destroy(!0),i=this,i.plugin=this,i.window=n(window),i.plugin.show(),i.config=n.extend({},o,t),h(),i.config.autoSlide&&u(),!0},c(),this}}(window.Zepto||window.jQuery);Object.create||(Object.create=function(){function n(){}return function(t){if(arguments.length!=1)throw new Error("Object.create implementation only accepts one parameter.");return n.prototype=t,new n}}()),function(n,t,i){"use strict";function r(t){var i=n.data(n(t)[0],"dbpasCarousel");i?(clearInterval(i.timerHandle),n(t).parent().parent().find("*").off(".dbpasCarousel"),n(t).unwrap().unwrap().siblings("[data-carousel-control]").remove(),n(t).find(".caption").remove(),n(t).removeAttr("style").children().removeAttr("style"),n(t).removeData("dbpasCarousel")):console.log("dbpasCarousel: unable to destroy selected element!")}var u={init:function(t,i){var r=this;r.elem=i;r.$elem=n(i);r.options=n.extend({},n.fn.dbpasCarousel.options,t);r.timerHandle=null;r.$queue=n({});r.build();r.$wrapper=r.$elem.parent();r.$controlLeft=r.$wrapper.siblings('[data-carousel-control="left"]');r.$controlRight=r.$wrapper.siblings('[data-carousel-control="right"]');r.$li=r.$elem.find("li");r.maxOuterWidth=0;r.maxWidth=0;r.$li.each(function(){n(this).outerWidth()>=r.maxOuterWidth&&(r.maxOuterWidth=n(this).outerWidth(),r.maxWidth=n(this).width());r.options.imgCaption&&n(this).find("img:first").attr("alt")&&n(this).append(n("<p/>").addClass("caption").html(n(this).find("img:first").attr("alt")))});r.$li.css({width:r.maxWidth+"px"});r.$wrapper.css({"max-width":r.maxOuterWidth*r.options.itemsVisible+"px"});r.$elem.css({left:"-"+r.maxOuterWidth+"px"});r.$elem.find("li:first").before(n(r.$elem.find("li:last")));r.events();r.complete()},build:function(){var t=this;t.$elem.wrap(n("<div />").attr("data-carousel-name",t.$elem.attr("id")||"")).wrap(n("<div />").attr("data-carousel-control","wrapper"));t.$elem.parent().parent().prepend(n("<div />").attr("data-carousel-control","left").html("&laquo;")).append(n("<div />").attr("data-carousel-control","right").html("&raquo;"))},navigation:function(t){var i=this;i.leftIndent=0;t=="right"?(i.leftIndent=parseInt(i.$elem.css("left"))+i.maxOuterWidth,i.$queue.queue("dbpasCarouselMove",function(t){i.$elem.find("li:first").before(n(i.$elem.find("li:last")));t()})):(i.leftIndent=parseInt(i.$elem.css("left"))-i.maxOuterWidth,i.$queue.queue("dbpasCarouselMove",function(t){i.$elem.find("li:last").after(n(i.$elem.find("li:first")));t()}));i.$elem.not(":animated").animate({left:i.leftIndent},i.options.slideDelay,function(){i.$queue.dequeue("dbpasCarouselMove");i.$elem.css({left:"-"+i.maxOuterWidth+"px"})})},timer:function(n){var t=this;n=="start"?t.timerHandle=setInterval(function(){t.navigation("left")},t.options.autoDelay):clearInterval(t.timerHandle)},events:function(){var t=this,r=".dbpasCarousel",f,e,u;if("ontouchstart"in i.documentElement?(u="touchstart"+r,f="touchstart"+r,e="touchend"+r):(u="click"+r,f="mouseenter"+r,e="mouseleave"+r,n("body").addClass("no-touch")),t.options.autoSlide&&(t.timer("start"),t.options.hoverPause)){t.$wrapper.parent().on(f,function(){t.timer("stop")});t.$wrapper.parent().on(e,function(){t.timer("start")})}t.$controlLeft.on(u,function(){t.navigation("left")});t.$controlRight.on(u,function(){t.navigation("right")})},complete:function(){var n=this;typeof n.options.onComplete=="function"&&n.options.onComplete.apply(n.$elem)}};n.fn.dbpasCarousel=function(t){return this.each(function(){if(this.tagName.toLowerCase()=="ul")if(typeof t=="string")switch(t.toLowerCase()){case"destroy":r(this);break;default:console.log('dbpasCarousel: "'+t+'" is an invalid method!')}else{var i=Object.create(u);i.init(t,this);n.data(this,"dbpasCarousel",i)}else console.log('dbpasCarousel: selected element is not a "UL"!')})};n.fn.dbpasCarousel.options={itemsVisible:2,slideDelay:500,autoSlide:0,autoDelay:5e3,hoverPause:1,imgCaption:1,onComplete:null}}(jQuery,window,document);+function(){"use strict";function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var n=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}(),i=function(i){var r="ekkoLightbox",e=i.fn[r],f={title:"",footer:"",maxWidth:9999,maxHeight:9999,showArrows:!0,wrapping:!0,type:null,alwaysShowClose:!1,loadingMessage:'<div class="ekko-lightbox-loader"><div><div><\/div><div><\/div><\/div><\/div>',leftArrow:"<span>&#10094;<\/span>",rightArrow:"<span>&#10095;<\/span>",strings:{close:"Close",fail:"Failed to load image:",type:"Could not detect remote target type. Force the type using data-type"},doc:document,onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}},u=function(){function r(n,u){var e=this;t(this,r);this._config=i.extend({},f,u);this._$modalArrows=null;this._galleryIndex=0;this._galleryName=null;this._padding=null;this._border=null;this._titleIsShown=!1;this._footerIsShown=!1;this._wantedWidth=0;this._wantedHeight=0;this._touchstartX=0;this._touchendX=0;this._modalId="ekkoLightbox-"+Math.floor(Math.random()*1e3+1);this._$element=n instanceof jQuery?n:i(n);this._isBootstrap3=i.fn.modal.Constructor.VERSION[0]==3;var o='<h4 class="modal-title">'+(this._config.title||"&nbsp;")+"<\/h4>",s='<button type="button" class="close" data-dismiss="modal" aria-label="'+this._config.strings.close+'"><span aria-hidden="true">&times;<\/span><\/button>',h='<div class="modal-header'+(this._config.title||this._config.alwaysShowClose?"":" hide")+'">'+(this._isBootstrap3?s+o:o+s)+"<\/div>",c='<div class="modal-footer'+(this._config.footer?"":" hide")+'">'+(this._config.footer||"&nbsp;")+"<\/div>",l='<div class="modal-dialog" role="document"><div class="modal-content">'+h+'<div class="modal-body"><div class="ekko-lightbox-container"><div class="ekko-lightbox-item fade in show"><\/div><div class="ekko-lightbox-item fade"><\/div><\/div><\/div>'+c+"<\/div><\/div>";if(i(this._config.doc.body).append('<div id="'+this._modalId+'" class="ekko-lightbox modal fade" tabindex="-1" tabindex="-1" role="dialog" aria-hidden="true">'+l+"<\/div>"),this._$modal=i("#"+this._modalId,this._config.doc),this._$modalDialog=this._$modal.find(".modal-dialog").first(),this._$modalContent=this._$modal.find(".modal-content").first(),this._$modalBody=this._$modal.find(".modal-body").first(),this._$modalHeader=this._$modal.find(".modal-header").first(),this._$modalFooter=this._$modal.find(".modal-footer").first(),this._$lightboxContainer=this._$modalBody.find(".ekko-lightbox-container").first(),this._$lightboxBodyOne=this._$lightboxContainer.find("> div:first-child").first(),this._$lightboxBodyTwo=this._$lightboxContainer.find("> div:last-child").first(),this._border=this._calculateBorders(),this._padding=this._calculatePadding(),this._galleryName=this._$element.data("gallery"),this._galleryName){this._$galleryItems=i(document.body).find('*[data-gallery="'+this._galleryName+'"]');this._galleryIndex=this._$galleryItems.index(this._$element);i(document).on("keydown.ekkoLightbox",this._navigationalBinder.bind(this));if(this._config.showArrows&&this._$galleryItems.length>1){this._$lightboxContainer.append('<div class="ekko-lightbox-nav-overlay"><a href="#">'+this._config.leftArrow+'<\/a><a href="#">'+this._config.rightArrow+"<\/a><\/div>");this._$modalArrows=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay").first();this._$lightboxContainer.on("click","a:first-child",function(n){return n.preventDefault(),e.navigateLeft()});this._$lightboxContainer.on("click","a:last-child",function(n){return n.preventDefault(),e.navigateRight()});this.updateNavigation()}}this._$modal.on("show.bs.modal",this._config.onShow.bind(this)).on("shown.bs.modal",function(){return e._toggleLoading(!0),e._handle(),e._config.onShown.call(e)}).on("hide.bs.modal",this._config.onHide.bind(this)).on("hidden.bs.modal",function(){return e._galleryName&&(i(document).off("keydown.ekkoLightbox"),i(window).off("resize.ekkoLightbox")),e._$modal.remove(),e._config.onHidden.call(e)}).modal(this._config);i(window).on("resize.ekkoLightbox",function(){e._resize(e._wantedWidth,e._wantedHeight)});this._$lightboxContainer.on("touchstart",function(){e._touchstartX=event.changedTouches[0].screenX}).on("touchend",function(){e._touchendX=event.changedTouches[0].screenX;e._swipeGesure()})}return n(r,null,[{key:"Default",get:function(){return f}}]),n(r,[{key:"element",value:function(){return this._$element}},{key:"modal",value:function(){return this._$modal}},{key:"navigateTo",value:function(n){if(n<0||n>this._$galleryItems.length-1)return this;this._galleryIndex=n;this.updateNavigation();this._$element=i(this._$galleryItems.get(this._galleryIndex));this._handle()}},{key:"navigateLeft",value:function(){if(this._$galleryItems&&this._$galleryItems.length!==1){if(this._galleryIndex===0)if(this._config.wrapping)this._galleryIndex=this._$galleryItems.length-1;else return;else this._galleryIndex--;return this._config.onNavigate.call(this,"left",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"navigateRight",value:function(){if(this._$galleryItems&&this._$galleryItems.length!==1){if(this._galleryIndex===this._$galleryItems.length-1)if(this._config.wrapping)this._galleryIndex=0;else return;else this._galleryIndex++;return this._config.onNavigate.call(this,"right",this._galleryIndex),this.navigateTo(this._galleryIndex)}}},{key:"updateNavigation",value:function(){if(!this._config.wrapping){var n=this._$lightboxContainer.find("div.ekko-lightbox-nav-overlay");this._galleryIndex===0?n.find("a:first-child").addClass("disabled"):n.find("a:first-child").removeClass("disabled");this._galleryIndex===this._$galleryItems.length-1?n.find("a:last-child").addClass("disabled"):n.find("a:last-child").removeClass("disabled")}}},{key:"close",value:function(){return this._$modal.modal("hide")}},{key:"_navigationalBinder",value:function(n){return(n=n||window.event,n.keyCode===39)?this.navigateRight():n.keyCode===37?this.navigateLeft():void 0}},{key:"_detectRemoteType",value:function(n,t){return t=t||!1,!t&&this._isImage(n)&&(t="image"),!t&&this._getYoutubeId(n)&&(t="youtube"),!t&&this._getVimeoId(n)&&(t="vimeo"),!t&&this._getInstagramId(n)&&(t="instagram"),(!t||["image","youtube","vimeo","instagram","video","url"].indexOf(t)<0)&&(t="url"),t}},{key:"_isImage",value:function(n){return n&&n.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)}},{key:"_containerToUse",value:function(){var n=this,t=this._$lightboxBodyTwo,i=this._$lightboxBodyOne;return this._$lightboxBodyTwo.hasClass("in")&&(t=this._$lightboxBodyOne,i=this._$lightboxBodyTwo),i.removeClass("in show"),setTimeout(function(){n._$lightboxBodyTwo.hasClass("in")||n._$lightboxBodyTwo.empty();n._$lightboxBodyOne.hasClass("in")||n._$lightboxBodyOne.empty()},500),t.addClass("in show"),t}},{key:"_handle",value:function(){var t=this._containerToUse(),n,i;if(this._updateTitleAndFooter(),n=this._$element.attr("data-remote")||this._$element.attr("href"),i=this._detectRemoteType(n,this._$element.attr("data-type")||!1),["image","youtube","vimeo","instagram","video","url"].indexOf(i)<0)return this._error(this._config.strings.type);switch(i){case"image":this._preloadImage(n,t);this._preloadImageByIndex(this._galleryIndex,3);break;case"youtube":this._showYoutubeVideo(n,t);break;case"vimeo":this._showVimeoVideo(this._getVimeoId(n),t);break;case"instagram":this._showInstagramVideo(this._getInstagramId(n),t);break;case"video":this._showHtml5Video(n,t);break;default:this._loadRemoteContent(n,t)}return this}},{key:"_getYoutubeId",value:function(n){if(!n)return!1;var t=n.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/);return t&&t[2].length===11?t[2]:!1}},{key:"_getVimeoId",value:function(n){return n&&n.indexOf("vimeo")>0?n:!1}},{key:"_getInstagramId",value:function(n){return n&&n.indexOf("instagram")>0?n:!1}},{key:"_toggleLoading",value:function(n){return n=n||!1,n?(this._$modalDialog.css("display","none"),this._$modal.removeClass("in show"),i(".modal-backdrop").append(this._config.loadingMessage)):(this._$modalDialog.css("display","block"),this._$modal.addClass("in show"),i(".modal-backdrop").find(".ekko-lightbox-loader").remove()),this}},{key:"_calculateBorders",value:function(){return{top:this._totalCssByAttribute("border-top-width"),right:this._totalCssByAttribute("border-right-width"),bottom:this._totalCssByAttribute("border-bottom-width"),left:this._totalCssByAttribute("border-left-width")}}},{key:"_calculatePadding",value:function(){return{top:this._totalCssByAttribute("padding-top"),right:this._totalCssByAttribute("padding-right"),bottom:this._totalCssByAttribute("padding-bottom"),left:this._totalCssByAttribute("padding-left")}}},{key:"_totalCssByAttribute",value:function(n){return parseInt(this._$modalDialog.css(n),10)+parseInt(this._$modalContent.css(n),10)+parseInt(this._$modalBody.css(n),10)}},{key:"_updateTitleAndFooter",value:function(){var n=this._$element.data("title")||"",t=this._$element.data("footer")||"";return this._titleIsShown=!1,n||this._config.alwaysShowClose?(this._titleIsShown=!0,this._$modalHeader.css("display","").find(".modal-title").html(n||"&nbsp;")):this._$modalHeader.css("display","none"),this._footerIsShown=!1,t?(this._footerIsShown=!0,this._$modalFooter.css("display","").html(t)):this._$modalFooter.css("display","none"),this}},{key:"_showYoutubeVideo",value:function(n,t){var r=this._getYoutubeId(n),u=n.indexOf("&")>0?n.substr(n.indexOf("&")):"",i=this._$element.data("width")||560,f=this._$element.data("height")||i/(560/315);return this._showVideoIframe("//www.youtube.com/embed/"+r+"?badge=0&autoplay=1&html5=1"+u,i,f,t)}},{key:"_showVimeoVideo",value:function(n,t){var i=this._$element.data("width")||500,r=this._$element.data("height")||i/(560/315);return this._showVideoIframe(n+"?autoplay=1",i,r,t)}},{key:"_showInstagramVideo",value:function(n,t){var i=this._$element.data("width")||612,r=i+80;return n=n.substr(-1)!=="/"?n+"/":n,t.html('<iframe width="'+i+'" height="'+r+'" src="'+n+'embed/" frameborder="0" allowfullscreen><\/iframe>'),this._resize(i,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showVideoIframe",value:function(n,t,i,r){return i=i||t,r.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+t+'" height="'+i+'" src="'+n+'" frameborder="0" allowfullscreen class="embed-responsive-item"><\/iframe><\/div>'),this._resize(t,i),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_showHtml5Video",value:function(n,t){var i=this._$element.data("width")||560,r=this._$element.data("height")||i/(560/315);return t.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+i+'" height="'+r+'" src="'+n+'" preload="auto" autoplay controls class="embed-responsive-item"><\/video><\/div>'),this._resize(i,r),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(n,t){var r=this,u=this._$element.data("width")||560,f=this._$element.data("height")||560,e=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),e||this._isExternal(n)?(t.html('<iframe src="'+n+'" frameborder="0" allowfullscreen><\/iframe>'),this._config.onContentLoaded.call(this)):t.load(n,i.proxy(function(){return r._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(u,f),this}},{key:"_isExternal",value:function(n){var t=n.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return typeof t[1]=="string"&&t[1].length>0&&t[1].toLowerCase()!==location.protocol?!0:typeof t[2]=="string"&&t[2].length>0&&t[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host?!0:!1}},{key:"_error",value:function(n){return console.error(n),this._containerToUse().html(n),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(n,t){var r,u;if(this._$galleryItems)return(r=i(this._$galleryItems.get(n),!1),typeof r=="undefined")?void 0:(u=r.attr("data-remote")||r.attr("href"),(r.attr("data-type")==="image"||this._isImage(u))&&this._preloadImage(u,!1),t>0?this._preloadImageByIndex(n+1,t-1):void 0)}},{key:"_preloadImage",value:function(n,t){var r=this,u;return t=t||!1,u=new Image,t&&function(){var f=setTimeout(function(){t.append(r._config.loadingMessage)},200);u.onload=function(){f&&clearTimeout(f);f=null;var n=i("<img />");return n.attr("src",u.src),n.addClass("img-fluid"),n.css("width","100%"),t.html(n),r._$modalArrows&&r._$modalArrows.css("display",""),r._resize(u.width,u.height),r._toggleLoading(!1),r._config.onContentLoaded.call(r)};u.onerror=function(){return r._toggleLoading(!1),r._error(r._config.strings.fail+("  "+n))}}(),u.src=n,u}},{key:"_swipeGesure",value:function(){return this._touchendX<this._touchstartX?this.navigateRight():this._touchendX>this._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(n,t){var u,f,e;t=t||n;this._wantedWidth=n;this._wantedHeight=t;var h=n/t,r=this._padding.left+this._padding.right+this._border.left+this._border.right,l=this._config.doc.body.clientWidth>575?20:0,a=this._config.doc.body.clientWidth>575?0:20,o=Math.min(n+r,this._config.doc.body.clientWidth-l,this._config.maxWidth);n+r>o?(t=(o-r-a)/h,n=o):n=n+r;u=0;f=0;this._footerIsShown&&(f=this._$modalFooter.outerHeight(!0)||55);this._titleIsShown&&(u=this._$modalHeader.outerHeight(!0)||67);var c=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,v=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),s=Math.min(t,i(window).height()-c-v-u-f,this._config.maxHeight-c-u-f);if(t>s&&(n=Math.ceil(s*h)+r),this._$lightboxContainer.css("height",s),this._$modalDialog.css("flex",1).css("maxWidth",n),e=this._$modal.data("bs.modal"),e)try{e._handleUpdate()}catch(y){e.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(n){var t=this;return n=n||{},this.each(function(){var u=i(t),f=i.extend({},r.Default,u.data(),typeof n=="object"&&n);new r(t,f)})}}]),r}();return i.fn[r]=u._jQueryInterface,i.fn[r].Constructor=u,i.fn[r].noConflict=function(){return i.fn[r]=e,u._jQueryInterface},u}(jQuery)}(jQuery),function(n){"use strict";var t;t={slippryWrapper:'<div class="sy-box" />',slideWrapper:'<div class="sy-slides-wrap" />',slideCrop:'<div class="sy-slides-crop" />',boxClass:"sy-list",elements:"li",activeClass:"sy-active",fillerClass:"sy-filler",loadingClass:"sy-loading",adaptiveHeight:!0,start:1,loop:!0,captionsSrc:"img",captions:"overlay",captionsEl:".sy-caption",initSingle:!0,responsive:!0,preload:"visible",pager:!0,pagerClass:"sy-pager",controls:!0,controlClass:"sy-controls",prevClass:"sy-prev",prevText:"Previous",nextClass:"sy-next",nextText:"Next",hideOnEnd:!0,transition:"fade",kenZoom:120,slideMargin:0,transClass:"transition",speed:800,easing:"swing",continuous:!0,useCSS:!0,auto:!0,autoDirection:"next",autoHover:!0,autoHoverDelay:100,autoDelay:500,pause:4e3,onSliderLoad:function(){return this},onSlideBefore:function(){return this},onSlideAfter:function(){return this}};n.fn.slippry=function(i){var r,u,b,s,h,k,d,g,c,f,nt,tt,l,a,it,o,e,v,rt,ut,ft,y,p,w;return(u=this,u.length===0)?this:u.length>1?(u.each(function(){n(this).slippry(i)}),this):(r={},r.vars={},nt=function(){var n,i,t;i=document.createElement("div");t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",MSTransition:"msTransitionEnd",OTransition:"oTransitionEnd",transition:"transitionEnd transitionend"};for(n in t)if(i.style[n]!==undefined)return t[n]},ut=function(){var n=document.createElement("div"),t=["Khtml","Ms","O","Moz","Webkit"],i=t.length;return function(r){if(r in n.style)return!0;for(r=r.replace(/^[a-z]/,function(n){return n.toUpperCase()});i--;)if(t[i]+r in n.style)return!0;return!1}}(),p=function(t,i){var e,r,u,f;return e=i.split("."),r=n(t),u="",f="",n.each(e,function(n,t){t.indexOf("#")>=0?u+=t.replace(/^#/,""):f+=t+" "}),u.length&&r.attr("id",u),f.length&&r.attr("class",n.trim(f)),r},w=function(){var i,u,t,n;t={};n={};i=100-r.settings.kenZoom;n.width=r.settings.kenZoom+"%";r.vars.active.index()%2==0?(n.left=i+"%",n.top=i+"%",t.left="0%",t.top="0%"):(n.left="0%",n.top="0%",t.left=i+"%",t.top=i+"%");u=r.settings.pause+r.settings.speed*2;r.vars.active.css(n);r.vars.active.animate(t,{duration:u,easing:r.settings.easing,queue:!1})},c=function(){r.vars.fresh?(r.vars.slippryWrapper.removeClass(r.settings.loadingClass),r.vars.fresh=!1,r.settings.auto&&u.startAuto(),r.settings.useCSS||r.settings.transition!=="kenburns"||w(),r.settings.onSliderLoad.call(undefined,r.vars.active.index())):n("."+r.settings.fillerClass,r.vars.slideWrapper).addClass("ready")},a=function(t,i){var u,f,e;u=t/i;f=100/u+"%";e=n("."+r.settings.fillerClass,r.vars.slideWrapper);e.css({paddingTop:f});c()},s=function(t){var i,r;n("img",t).attr("src")!==undefined?n("<img />").on("load",function(){i=t.width();r=t.height();a(i,r)}).attr("src",n("img",t).attr("src")):(i=t.width(),r=t.height(),a(i,r))},b=function(){if(n("."+r.settings.fillerClass,r.vars.slideWrapper).length===0&&r.vars.slideWrapper.append(n('<div class="'+r.settings.fillerClass+'" />')),r.settings.adaptiveHeight===!0)s(n("."+r.settings.activeClass,u));else{var t,f,i;f=0;i=0;n(r.vars.slides).each(function(){n(this).height()>f&&(t=n(this),f=t.height());i=i+1;i===r.vars.count&&(t===undefined&&(t=n(n(r.vars.slides)[0])),s(t))})}},l=function(){r.settings.pager&&(n("."+r.settings.pagerClass+" li",r.vars.slippryWrapper).removeClass(r.settings.activeClass),n(n("."+r.settings.pagerClass+" li",r.vars.slippryWrapper)[r.vars.active.index()]).addClass(r.settings.activeClass))},v=function(){!r.settings.loop&&r.settings.hideOnEnd&&(n("."+r.settings.prevClass,r.vars.slippryWrapper)[r.vars.first?"hide":"show"](),n("."+r.settings.nextClass,r.vars.slippryWrapper)[r.vars.last?"hide":"show"]())},k=function(){var t,i;r.settings.captions!==!1&&(t=r.settings.captionsSrc!=="img"?r.vars.active.attr("title"):n("img",r.vars.active).attr("title")!==undefined?n("img",r.vars.active).attr("title"):n("img",r.vars.active).attr("alt"),i=r.settings.captions!=="custom"?n(r.settings.captionsEl,r.vars.slippryWrapper):n(r.settings.captionsEl),t!==undefined&&t!==""?i.html(t).show():i.hide())},u.startAuto=function(){r.vars.timer===undefined&&r.vars.delay===undefined&&(r.vars.delay=window.setTimeout(function(){r.vars.autodelay=!1;r.vars.timer=window.setInterval(function(){r.vars.trigger="auto";e(r.settings.autoDirection)},r.settings.pause)},r.vars.autodelay?r.settings.autoHoverDelay:r.settings.autoDelay),r.settings.autoHover&&r.vars.slideWrapper.unbind("mouseenter").unbind("mouseleave").bind("mouseenter",function(){r.vars.timer!==undefined?(r.vars.hoverStop=!0,u.stopAuto()):r.vars.hoverStop=!1}).bind("mouseleave",function(){r.vars.hoverStop&&(r.vars.autodelay=!0,u.startAuto())}))},u.stopAuto=function(){window.clearInterval(r.vars.timer);r.vars.timer=undefined;window.clearTimeout(r.vars.delay);r.vars.delay=undefined},u.refresh=function(){r.vars.slides.removeClass(r.settings.activeClass);r.vars.active.addClass(r.settings.activeClass);r.settings.responsive?b():c();v();l();k()},o=function(){u.refresh()},f=function(){r.vars.moving=!1;r.vars.active.removeClass(r.settings.transClass);r.vars.fresh||r.vars.old.removeClass("sy-ken");r.vars.old.removeClass(r.settings.transClass);r.settings.onSlideAfter.call(undefined,r.vars.active,r.vars.old.index(),r.vars.active.index());r.settings.auto&&(r.vars.hoverStop&&r.vars.hoverStop!==undefined||u.startAuto())},it=function(){var e,h,s,c,l,t,i;if(r.settings.onSlideBefore.call(undefined,r.vars.active,r.vars.old.index(),r.vars.active.index()),r.settings.transition!==!1){if(r.vars.moving=!0,r.settings.transition==="fade"||r.settings.transition==="kenburns"){if(r.vars.fresh)r.settings.useCSS?r.vars.slides.css({transitionDuration:r.settings.speed+"ms",opacity:0}):r.vars.slides.css({opacity:0}),r.vars.active.css("opacity",1),r.settings.transition==="kenburns"&&r.settings.useCSS&&(l=r.settings.pause+r.settings.speed*2,r.vars.slides.css({animationDuration:l+"ms"}),r.vars.active.addClass("sy-ken")),f();else if(r.settings.useCSS){r.vars.old.addClass(r.settings.transClass).css("opacity",0);r.vars.active.addClass(r.settings.transClass).css("opacity",1);r.settings.transition==="kenburns"&&r.vars.active.addClass("sy-ken");n(window).off("focus").on("focus",function(){r.vars.moving&&r.vars.old.trigger(r.vars.transition)});r.vars.old.one(r.vars.transition,function(){return f(),this})}else r.settings.transition==="kenburns"&&w(),r.vars.old.addClass(r.settings.transClass).animate({opacity:0},r.settings.speed,r.settings.easing,function(){f()}),r.vars.active.addClass(r.settings.transClass).css("opacity",0).animate({opacity:1},r.settings.speed,r.settings.easing);o()}else if(r.settings.transition==="horizontal"||r.settings.transition==="vertical"){if(t=r.settings.transition==="horizontal"?"left":"top",e="-"+r.vars.active.index()*(100+r.settings.slideMargin)+"%",r.vars.fresh)u.css(t,e),f();else if(i={},r.settings.continuous&&r.vars.jump&&(r.vars.trigger==="controls"||r.vars.trigger==="auto")&&(h=!0,c=e,r.vars.first?(s=0,r.vars.active.css(t,r.vars.count*(100+r.settings.slideMargin)+"%"),e="-"+r.vars.count*(100+r.settings.slideMargin)+"%"):(s=(r.vars.count-1)*(100+r.settings.slideMargin)+"%",r.vars.active.css(t,-(100+r.settings.slideMargin)+"%"),e=100+r.settings.slideMargin+"%")),r.vars.active.addClass(r.settings.transClass),r.settings.useCSS){i[t]=e;i.transitionDuration=r.settings.speed+"ms";u.addClass(r.settings.transition);u.css(i);n(window).off("focus").on("focus",function(){r.vars.moving&&u.trigger(r.vars.transition)});u.one(r.vars.transition,function(){return u.removeClass(r.settings.transition),h&&(r.vars.active.css(t,s),i[t]=c,i.transitionDuration="0ms",u.css(i)),f(),this})}else i[t]=e,u.stop().animate(i,r.settings.speed,r.settings.easing,function(){return h&&(r.vars.active.css(t,s),u.css(t,c)),f(),this});o()}}else o(),f()},rt=function(n){r.vars.first=r.vars.last=!1;n==="prev"||n===0?r.vars.first=!0:(n==="next"||n===r.vars.count-1)&&(r.vars.last=!0)},e=function(t){var i,f;r.vars.moving||(r.vars.trigger!=="auto"&&u.stopAuto(),i=r.vars.active.index(),t==="prev"?(f=t,i>0?t=i-1:r.settings.loop&&(t=r.vars.count-1)):t==="next"?(f=t,i<r.vars.count-1?t=i+1:r.settings.loop&&(t=0)):(t=t-1,f=t<i?"prev":"next"),r.vars.jump=!1,t!=="prev"&&t!=="next"&&(t!==i||r.vars.fresh)&&(rt(t),r.vars.old=r.vars.active,r.vars.active=n(r.vars.slides[t]),(i===0&&f==="prev"||i===r.vars.count-1&&f==="next")&&(r.vars.jump=!0),it()))},u.goToNextSlide=function(){r.vars.trigger="external";e("next")},u.goToPrevSlide=function(){r.vars.trigger="external";e("prev")},d=function(){if(r.settings.pager&&r.vars.count>1){var u,t,i;for(u=r.vars.slides.length,i=n('<ul class="'+r.settings.pagerClass+'" />'),t=1;t<u+1;t=t+1)i.append(n("<li />").append(n('<a href="#'+t+'">'+t+"<\/a>")));r.vars.slippryWrapper.append(i);n("."+r.settings.pagerClass+" a",r.vars.slippryWrapper).click(function(){return r.vars.trigger="pager",e(parseInt(this.hash.split("#")[1],10)),!1});l()}},g=function(){r.settings.controls&&r.vars.count>1&&(r.vars.slideWrapper.append(n('<ul class="'+r.settings.controlClass+'" />').append('<li class="'+r.settings.prevClass+'"><a href="#next" class="bg-transparent"><\/a><\/li>').append('<li class="'+r.settings.nextClass+'"><a href="#prev"><\/a><\/li>')),n("."+r.settings.controlClass+" a",r.vars.slippryWrapper).click(function(){return r.vars.trigger="controls",e(this.hash.split("#")[1]),!1}),v())},tt=function(){r.settings.captions!==!1&&(r.settings.captions==="overlay"?r.vars.slideWrapper.append(n('<div class="sy-caption-wrap" />').html(p("<div />",r.settings.captionsEl))):r.settings.captions==="below"&&r.vars.slippryWrapper.append(n('<div class="sy-caption-wrap" />').html(p("<div />",r.settings.captionsEl))))},y=function(){e(r.vars.active.index()+1)},ft=function(t){var i,f,u,e;if(e=r.settings.preload==="all"?t:r.vars.active,u=n("img, iframe",e),i=u.length,i===0){y();return}f=0;u.each(function(){n(this).one("load error",function(){++f===i&&y()}).each(function(){this.complete&&n(this).trigger("load")})})},u.getCurrentSlide=function(){return r.vars.active},u.getSlideCount=function(){return r.vars.count},u.destroySlider=function(){r.vars.fresh===!1&&(u.stopAuto(),r.vars.moving=!1,r.vars.slides.each(function(){n(this).data("sy-cssBckup")!==undefined?n(this).attr("style",n(this).data("sy-cssBckup")):n(this).removeAttr("style");n(this).data("sy-classBckup")!==undefined?n(this).attr("class",n(this).data("sy-classBckup")):n(this).removeAttr("class")}),u.data("sy-cssBckup")!==undefined?u.attr("style",u.data("sy-cssBckup")):u.removeAttr("style"),u.data("sy-classBckup")!==undefined?u.attr("class",u.data("sy-classBckup")):u.removeAttr("class"),r.vars.slippryWrapper.before(u),r.vars.slippryWrapper.remove(),r.vars.fresh=undefined)},u.reloadSlider=function(){u.destroySlider();h()},h=function(){var f;if(r.settings=n.extend({},t,i),r.vars.slides=n(r.settings.elements,u),r.vars.count=r.vars.slides.length,r.settings.useCSS&&(ut("transition")||(r.settings.useCSS=!1),r.vars.transition=nt()),u.data("sy-cssBckup",u.attr("style")),u.data("sy-classBackup",u.attr("class")),u.addClass(r.settings.boxClass).wrap(r.settings.slippryWrapper).wrap(r.settings.slideWrapper).wrap(r.settings.slideCrop),r.vars.slideWrapper=u.parent().parent(),r.vars.slippryWrapper=r.vars.slideWrapper.parent().addClass(r.settings.loadingClass),r.vars.fresh=!0,r.vars.slides.each(function(){n(this).addClass("sy-slide "+r.settings.transition);r.settings.useCSS&&n(this).addClass("useCSS");r.settings.transition==="horizontal"?n(this).css("left",n(this).index()*(100+r.settings.slideMargin)+"%"):r.settings.transition==="vertical"&&n(this).css("top",n(this).index()*(100+r.settings.slideMargin)+"%")}),r.vars.count>1||r.settings.initSingle)n("."+r.settings.activeClass,u).index()===-1?(f=r.settings.start==="random"?Math.round(Math.random()*(r.vars.count-1)):r.settings.start>0&&r.settings.start<=r.vars.count?r.settings.start-1:0,r.vars.active=n(r.vars.slides[f]).addClass(r.settings.activeClass)):r.vars.active=n("."+r.settings.activeClass,u),g(),d(),tt(),ft(r.vars.slides);else return this},h(),this)}}(jQuery);jQuery(document).on("click",".dropdown",function(n){n.stopPropagation()});(function(n){n.fn.flexisel=function(t){var v=n.extend({visibleItems:4,itemsToScroll:3,animationSpeed:400,infinite:!0,navigationTargetSelector:null,autoPlay:{enable:!1,interval:5e3,pauseOnHover:!0},responsiveBreakpoints:{portrait:{changePoint:480,visibleItems:1,itemsToScroll:1},landscape:{changePoint:640,visibleItems:2,itemsToScroll:2},tablet:{changePoint:768,visibleItems:3,itemsToScroll:3}},loaded:function(){},before:function(){},after:function(){},resize:function(){}},t),i=n(this),r=n.extend(v,t),f,e=!0,c,h=r.visibleItems,o=r.itemsToScroll,s=[],l,a,u={init:function(){return this.each(function(){u.appendHTML();u.setEventHandlers();u.initializeItems()})},initializeItems:function(){var e=r.responsiveBreakpoints,o,t;for(o in e)s.push(e[o]);s.sort(function(n,t){return n.changePoint-t.changePoint});t=i.children();t.first().addClass("index");f=u.getCurrentItemWidth();c=t.length;t.width(f);r.infinite&&(u.offsetItemsToBeginning(Math.floor(t.length/2)),i.css({left:-f*Math.floor(t.length/2)}));n(window).trigger("resize");i.fadeIn();r.loaded.call(this,i)},appendHTML:function(){if(i.addClass("nbs-flexisel-ul"),i.wrap("<div class='nbs-flexisel-container'><div class='nbs-flexisel-inner ltr'><\/div><\/div>"),i.find("li").addClass("nbs-flexisel-item"),r.navigationTargetSelector&&n(r.navigationTargetSelector).length>0?n("<div class='nbs-flexisel-nav-left'><\/div><div class='nbs-flexisel-nav-right'><\/div>").appendTo(r.navigationTargetSelector):(r.navigationTargetSelector=i.parent(),n("<div class='nbs-flexisel-nav-left'><\/div><div class='nbs-flexisel-nav-right'><\/div>").insertAfter(i)),r.infinite){var t=i.children(),u=t.clone(),f=t.clone();i.prepend(u);i.append(f)}},setEventHandlers:function(){var o=this,t=i.children();n(window).on("resize",function(){e=!1;clearTimeout(l);l=setTimeout(function(){e=!0;u.calculateDisplay();f=u.getCurrentItemWidth();t.width(f);r.infinite?i.css({left:-f*Math.floor(t.length/2)}):(u.clearDisabled(),n(r.navigationTargetSelector).find(".nbs-flexisel-nav-left").addClass("disabled"),i.css({left:0}));r.resize.call(o,i)},100)});n(r.navigationTargetSelector).find(".nbs-flexisel-nav-left").on("click",function(){u.scroll(!0)});n(r.navigationTargetSelector).find(".nbs-flexisel-nav-right").on("click",function(){u.scroll(!1)});if(r.autoPlay.enable&&(u.setAutoplayInterval(),r.autoPlay.pauseOnHover===!0))i.on({mouseenter:function(){e=!1},mouseleave:function(){e=!0}});i[0].addEventListener("touchstart",u.touchHandler.handleTouchStart,!1);i[0].addEventListener("touchmove",u.touchHandler.handleTouchMove,!1)},calculateDisplay:function(){var i=n("html").width(),u=s[s.length-1].changePoint;for(var t in s)if(i>=u){h=r.visibleItems;o=r.itemsToScroll;break}else if(i<s[t].changePoint){h=s[t].visibleItems;o=s[t].itemsToScroll;break}else continue},scroll:function(n){if(typeof n=="undefined"&&(n=!0),e==!0){if(e=!1,r.before.call(this,i),f=u.getCurrentItemWidth(),r.autoPlay.enable&&clearInterval(a),r.infinite)i.animate({left:n?"+="+f*o:"-="+f*o},r.animationSpeed,function(){r.after.call(this,i);e=!0;n?u.offsetItemsToBeginning(o):u.offsetItemsToEnd(o);u.offsetSliderPosition(n)});else{var t=f*o;n?i.animate({left:u.calculateNonInfiniteLeftScroll(t)},r.animationSpeed,function(){r.after.call(this,i);e=!0}):i.animate({left:u.calculateNonInfiniteRightScroll(t)},r.animationSpeed,function(){r.after.call(this,i);e=!0})}r.autoPlay.enable&&u.setAutoplayInterval()}},touchHandler:{xDown:null,yDown:null,handleTouchStart:function(n){this.xDown=n.touches[0].clientX;this.yDown=n.touches[0].clientY},handleTouchMove:function(n){if(this.xDown&&this.yDown){var i=n.touches[0].clientX,r=n.touches[0].clientY,t=this.xDown-i,f=this.yDown-r;Math.abs(t)>0&&(t>0?u.scroll(!1):u.scroll(!0));this.xDown=null;this.yDown=null;e=!0}}},getCurrentItemWidth:function(){return i.parent().width()/h},offsetItemsToBeginning:function(n){typeof n=="undefined"&&(n=1);for(var t=0;t<n;t++)i.children().last().insertBefore(i.children().first())},offsetItemsToEnd:function(n){typeof n=="undefined"&&(n=1);for(var t=0;t<n;t++)i.children().first().insertAfter(i.children().last())},offsetSliderPosition:function(n){var t=parseInt(i.css("left").replace("px",""));t=n?t-f*o:t+f*o;i.css({left:t})},getOffsetPosition:function(){return parseInt(i.css("left").replace("px",""))},calculateNonInfiniteLeftScroll:function(t){return u.clearDisabled(),u.getOffsetPosition()+t>=0?(n(r.navigationTargetSelector).find(".nbs-flexisel-nav-left").addClass("disabled"),0):u.getOffsetPosition()+t},calculateNonInfiniteRightScroll:function(t){u.clearDisabled();var i=c*f-h*f;return u.getOffsetPosition()-t<=-i?(n(r.navigationTargetSelector).find(".nbs-flexisel-nav-right").addClass("disabled"),-i):u.getOffsetPosition()-t},setAutoplayInterval:function(){a=setInterval(function(){e&&u.scroll(!1)},r.autoPlay.interval)},clearDisabled:function(){var t=n(r.navigationTargetSelector);t.find(".nbs-flexisel-nav-left").removeClass("disabled");t.find(".nbs-flexisel-nav-right").removeClass("disabled")}};if(u[t])return u[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t!="object"&&t)n.error('Method "'+method+'" does not exist in flexisel plugin!');else return u.init.apply(this)}})(jQuery),function(n){"use strict";function i(t){var i=n("");try{i=n(t).clone()}catch(r){i=n("<span />").html(t)}return i}function r(t,i,r){var f=n.Deferred(),u,e,o;try{t=t.contentWindow||t.contentDocument||t;u=t.document||t.contentDocument||t;r.doctype&&u.write(r.doctype);u.write(i);u.close();e=!1;o=function(){if(!e){t.focus();try{t.document.execCommand("print",!1,null)||t.print();n("body").focus()}catch(i){t.print()}t.close();e=!0;f.resolve()}};n(t).on("load",o);setTimeout(o,r.timeout)}catch(s){f.reject(s)}return f}function f(i,u){var f=n(u.iframe+""),e=f.length,o;return e===0&&(f=n('<iframe height="0" width="0" border="0" wmode="Opaque"/>').prependTo("body").css({position:"absolute",top:-999,left:-999})),o=f.get(0),r(o,i,u).done(function(){setTimeout(function(){e===0&&f.remove()},1e3)}).fail(function(n){console.error("Failed to print from iframe",n);t(i,u)}).always(function(){try{u.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}})}function t(n,t){var i=window.open();return r(i,n,t).always(function(){try{t.deferred.resolve()}catch(n){console.warn("Error notifying deferred",n)}})}function u(n){return!!(typeof Node=="object"?n instanceof Node:n&&typeof n=="object"&&typeof n.nodeType=="number"&&typeof n.nodeName=="string")}n.print=n.fn.print=function(){var r,o,h=this,a,s,e,c,l;h instanceof n&&(h=h.get(0));u(h)?(o=n(h),arguments.length>0&&(r=arguments[0])):arguments.length>0?(o=n(arguments[0]),u(o[0])?arguments.length>1&&(r=arguments[1]):(r=arguments[0],o=n("html"))):o=n("html");a={globalStyles:!0,mediaPrint:!1,stylesheet:null,noPrintSelector:".no-print",iframe:!0,append:null,prepend:null,manuallyCopyFormValues:!0,deferred:n.Deferred(),timeout:750,title:null,doctype:"<!doctype html>"};r=n.extend({},a,r||{});s=n("");r.globalStyles?s=n("style, link, meta, base, title"):r.mediaPrint&&(s=n("link[media=print]"));r.stylesheet&&(s=n.merge(s,n('<link rel="stylesheet" href="'+r.stylesheet+'">')));e=o.clone();e=n("<span/>").append(e);e.find(r.noPrintSelector).remove();e.append(s.clone());r.title&&(c=n("title",e),c.length===0&&(c=n("<title />"),e.append(c)),c.text(r.title));e.append(i(r.append));e.prepend(i(r.prepend));r.manuallyCopyFormValues&&(e.find("input").each(function(){var t=n(this);t.is("[type='radio']")||t.is("[type='checkbox']")?t.prop("checked")&&t.attr("checked","checked"):t.attr("value",t.val())}),e.find("select").each(function(){var t=n(this);t.find(":selected").attr("selected","selected")}),e.find("textarea").each(function(){var t=n(this);t.text(t.val())}));l=e.html();try{r.deferred.notify("generated_markup",l,e)}catch(y){console.warn("Error notifying deferred",y)}if(e.remove(),r.iframe)try{f(l,r)}catch(v){console.error("Failed to print from iframe",v.stack,v.message);t(l,r)}else t(l,r);return this}}(jQuery);defaultSettings="fa",function(n){n.fn.persiaNumber=function(t){function r(n,t){n.find("*:not([lang='en'])").addBack().contents().each(function(){this.nodeType===3&&this.parentNode.localName!="style"&&this.parentNode.localName!="script"&&(this.nodeValue=this.nodeValue.replace(this.nodeValue.match(/[0-9]*\.[0-9]+/),function(n){return n.replace(/\./,",")}),this.nodeValue=this.nodeValue.replace(/\d/g,function(n){return String.fromCharCode(n.charCodeAt(0)+t)}))})}typeof t=="string"&&t.length>0&&(defaultSettings=t);var i=1728;t=="ar"&&(i=1584);window.persiaNumberedDOM=this;r(this,i);n(document).ajaxComplete(function(){var n=window.persiaNumberedDOM;r(n,i)})}}(jQuery);origParseInt=parseInt;origParseFloat=parseFloat;parseFloat=function(n){return n=n&&n.toString().replace(/[\u06F0\u06F1\u06F2\u06F3\u06F4\u06F5\u06F6\u06F7\u06F8\u06F9]/g,function(n){return String.fromCharCode(n.charCodeAt(0)-1728)}).replace(/[\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669]/g,function(n){return String.fromCharCode(n.charCodeAt(0)-1584)}).replace(/[\u066B]/g,"."),origParseFloat(n)};$(document).ready(function(){var n=$.connection.counterHub;n.client.UpdateCount=function(n){$("#OnlineUsers").text(n)};$.connection.hub.start().done(function(){});$('[data-toggle="tooltip"]').tooltip();$(".pgwSlider").pgwSlider();$("#myCarousel").dbpasCarousel({itemsVisible:3,autoSlide:1});$("#flexiselDemo3").flexisel({visibleItems:6,itemsToScroll:1,autoPlay:{enable:!0,interval:5e3,pauseOnHover:!0}});$("*:not([lang='en'])").persiaNumber();$(document).on("click",'[data-toggle="lightbox"]:not([data-gallery="navigateTo"]):not([data-gallery="example-gallery-11"])',function(n){return n.preventDefault(),$(this).ekkoLightbox({onShown:function(){if(window.console)return console.log("Checking our the events huh?")},onNavigate:function(n,t){if(window.console)return console.log("Navigating "+n+". Current item: "+t)}})})});thumbs=jQuery("#thumbnails").slippry({slippryWrapper:'<div class="slippry_box thumbnails" />',transition:"horizontal",pager:!1,auto:!0,onSlideBefore:function(n,t,i){jQuery(".thumbs a img").removeClass("active");jQuery("img",jQuery(".thumbs a")[i]).addClass("active")}});jQuery(".thumbs a").click(function(){return thumbs.goToSlide($(this).data("slide")),!1}),function(n,t,i){function v(t,i){var u,f;if(n.isArray(t)){for(u=t.length-1;u>=0;u--)f=t[u],n.type(f)==="string"&&r.transports[f]||(i.log("Invalid transport: "+f+", removing it from the transports list."),t.splice(u,1));t.length===0&&(i.log("No transports remain within the specified transport array."),t=null)}else if(r.transports[t]||t==="auto"){if(t==="auto"&&r._.ieVersion<=8)return["longPolling"]}else i.log("Invalid transport: "+t.toString()+"."),t=null;return t}function y(n){return n==="http:"?80:n==="https:"?443:void 0}function h(n,t){return t.match(/:\d+$/)?t:t+":"+y(n)}function p(t,i){var u=this,r=[];u.tryBuffer=function(i){return t.state===n.signalR.connectionState.connecting?(r.push(i),!0):!1};u.drain=function(){if(t.state===n.signalR.connectionState.connected)while(r.length>0)i(r.shift())};u.clear=function(){r=[]}}var f={nojQuery:"jQuery was not found. Please ensure jQuery is referenced before the SignalR client JavaScript file.",noTransportOnInit:"No transport could be initialized successfully. Try specifying a different transport or none at all for auto initialization.",errorOnNegotiate:"Error during negotiation request.",stoppedWhileLoading:"The connection was stopped during page load.",stoppedWhileNegotiating:"The connection was stopped during the negotiate request.",errorParsingNegotiateResponse:"Error parsing negotiate response.",errorDuringStartRequest:"Error during start request. Stopping the connection.",stoppedDuringStartRequest:"The connection was stopped during the start request.",errorParsingStartResponse:"Error parsing start response: '{0}'. Stopping the connection.",invalidStartResponse:"Invalid start response: '{0}'. Stopping the connection.",protocolIncompatible:"You are using a version of the client that isn't compatible with the server. Client version {0}, server version {1}.",sendFailed:"Send failed.",parseFailed:"Failed at parsing response: {0}",longPollFailed:"Long polling request failed.",eventSourceFailedToConnect:"EventSource failed to connect.",eventSourceError:"Error raised by EventSource",webSocketClosed:"WebSocket closed.",pingServerFailedInvalidResponse:"Invalid ping response when pinging server: '{0}'.",pingServerFailed:"Failed to ping server.",pingServerFailedStatusCode:"Failed to ping server.  Server responded with status code {0}, stopping the connection.",pingServerFailedParse:"Failed to parse ping server response, stopping the connection.",noConnectionTransport:"Connection is in an invalid state, there is no transport active.",webSocketsInvalidState:"The Web Socket transport is in an invalid state, transitioning into reconnecting.",reconnectTimeout:"Couldn't reconnect within the configured timeout of {0} ms, disconnecting.",reconnectWindowTimeout:"The client has been inactive since {0} and it has exceeded the inactivity timeout of {1} ms. Stopping the connection."};if(typeof n!="function")throw new Error(f.nojQuery);var r,c,o=t.document.readyState==="complete",e=n(t),l="__Negotiate Aborted__",u={onStart:"onStart",onStarting:"onStarting",onReceived:"onReceived",onError:"onError",onConnectionSlow:"onConnectionSlow",onReconnecting:"onReconnecting",onReconnect:"onReconnect",onStateChanged:"onStateChanged",onDisconnect:"onDisconnect"},w=function(n,i){if(i!==!1){var r;typeof t.console!="undefined"&&(r="["+(new Date).toTimeString()+"] SignalR: "+n,t.console.debug?t.console.debug(r):t.console.log&&t.console.log(r))}},s=function(t,i,r){return i===t.state?(t.state=r,n(t).triggerHandler(u.onStateChanged,[{oldState:i,newState:r}]),!0):!1},b=function(n){return n.state===r.connectionState.disconnected},a=function(n){return n._.keepAliveData.activated&&n.transport.supportsKeepAlive(n)},k=function(i){var f,e;i._.configuredStopReconnectingTimeout||(e=function(t){var i=r._.format(r.resources.reconnectTimeout,t.disconnectTimeout);t.log(i);n(t).triggerHandler(u.onError,[r._.error(i,"TimeoutException")]);t.stop(!1,!1)},i.reconnecting(function(){var n=this;n.state===r.connectionState.reconnecting&&(f=t.setTimeout(function(){e(n)},n.disconnectTimeout))}),i.stateChanged(function(n){n.oldState===r.connectionState.reconnecting&&t.clearTimeout(f)}),i._.configuredStopReconnectingTimeout=!0)};if(r=function(n,t,i){return new r.fn.init(n,t,i)},r._={defaultContentType:"application/x-www-form-urlencoded; charset=UTF-8",ieVersion:function(){var i,n;return t.navigator.appName==="Microsoft Internet Explorer"&&(n=/MSIE ([0-9]+\.[0-9]+)/.exec(t.navigator.userAgent),n&&(i=t.parseFloat(n[1]))),i}(),error:function(n,t,i){var r=new Error(n);return r.source=t,typeof i!="undefined"&&(r.context=i),r},transportError:function(n,t,r,u){var f=this.error(n,r,u);return f.transport=t?t.name:i,f},format:function(){for(var t=arguments[0],n=0;n<arguments.length-1;n++)t=t.replace("{"+n+"}",arguments[n+1]);return t},firefoxMajorVersion:function(n){var t=n.match(/Firefox\/(\d+)/);return!t||!t.length||t.length<2?0:parseInt(t[1],10)},configurePingInterval:function(i){var f=i._.config,e=function(t){n(i).triggerHandler(u.onError,[t])};f&&!i._.pingIntervalId&&f.pingInterval&&(i._.pingIntervalId=t.setInterval(function(){r.transports._logic.pingServer(i).fail(e)},f.pingInterval))}},r.events=u,r.resources=f,r.ajaxDefaults={processData:!0,timeout:null,async:!0,global:!1,cache:!1},r.changeState=s,r.isDisconnecting=b,r.connectionState={connecting:0,connected:1,reconnecting:2,disconnected:4},r.hub={start:function(){throw new Error("SignalR: Error loading hubs. Ensure your hubs reference is correct, e.g. <script src='/signalr/js'><\/script>.");}},typeof e.on=="function")e.on("load",function(){o=!0});else e.load(function(){o=!0});r.fn=r.prototype={init:function(t,i,r){var f=n(this);this.url=t;this.qs=i;this.lastError=null;this._={keepAliveData:{},connectingMessageBuffer:new p(this,function(n){f.triggerHandler(u.onReceived,[n])}),lastMessageAt:(new Date).getTime(),lastActiveAt:(new Date).getTime(),beatInterval:5e3,beatHandle:null,totalTransportConnectTimeout:0};typeof r=="boolean"&&(this.logging=r)},_parseResponse:function(n){var t=this;return n?typeof n=="string"?t.json.parse(n):n:n},_originalJson:t.JSON,json:t.JSON,isCrossDomain:function(i,r){var u;return(i=n.trim(i),r=r||t.location,i.indexOf("http")!==0)?!1:(u=t.document.createElement("a"),u.href=i,u.protocol+h(u.protocol,u.host)!==r.protocol+h(r.protocol,r.host))},ajaxDataType:"text",contentType:"application/json; charset=UTF-8",logging:!1,state:r.connectionState.disconnected,clientProtocol:"1.5",reconnectDelay:2e3,transportConnectTimeout:0,disconnectTimeout:3e4,reconnectWindow:3e4,keepAliveWarnAt:2/3,start:function(i,h){var c=this,y={pingInterval:3e5,waitForPageLoad:!0,transport:"auto",jsonp:!1},d,p=c._deferral||n.Deferred(),w=t.document.createElement("a"),b,g;if(c.lastError=null,c._deferral=p,!c.json)throw new Error("SignalR: No JSON parser found. Please ensure json2.js is referenced before the SignalR.js file if you need to support clients without native JSON parsing support, e.g. IE<8.");if(n.type(i)==="function"?h=i:n.type(i)==="object"&&(n.extend(y,i),n.type(y.callback)==="function"&&(h=y.callback)),y.transport=v(y.transport,c),!y.transport)throw new Error("SignalR: Invalid transport(s) specified, aborting start.");return(c._.config=y,!o&&y.waitForPageLoad===!0)?(c._.deferredStartHandler=function(){c.start(i,h)},e.bind("load",c._.deferredStartHandler),p.promise()):c.state===r.connectionState.connecting?p.promise():s(c,r.connectionState.disconnected,r.connectionState.connecting)===!1?(p.resolve(c),p.promise()):(k(c),w.href=c.url,w.protocol&&w.protocol!==":"?(c.protocol=w.protocol,c.host=w.host):(c.protocol=t.document.location.protocol,c.host=w.host||t.document.location.host),c.baseUrl=c.protocol+"//"+c.host,c.wsProtocol=c.protocol==="https:"?"wss://":"ws://",y.transport==="auto"&&y.jsonp===!0&&(y.transport="longPolling"),c.url.indexOf("//")===0&&(c.url=t.location.protocol+c.url,c.log("Protocol relative URL detected, normalizing it to '"+c.url+"'.")),this.isCrossDomain(c.url)&&(c.log("Auto detected cross domain url."),y.transport==="auto"&&(y.transport=["webSockets","serverSentEvents","longPolling"]),typeof y.withCredentials=="undefined"&&(y.withCredentials=!0),y.jsonp||(y.jsonp=!n.support.cors,y.jsonp&&c.log("Using jsonp because this browser doesn't support CORS.")),c.contentType=r._.defaultContentType),c.withCredentials=y.withCredentials,c.ajaxDataType=y.jsonp?"jsonp":"text",n(c).bind(u.onStart,function(){n.type(h)==="function"&&h.call(c);p.resolve(c)}),c._.initHandler=r.transports._logic.initHandler(c),d=function(i,o){var l=r._.error(f.noTransportOnInit);if(o=o||0,o>=i.length){o===0?c.log("No transports supported by the server were selected."):o===1?c.log("No fallback transports were selected."):c.log("Fallback transports exhausted.");n(c).triggerHandler(u.onError,[l]);p.reject(l);c.stop();return}if(c.state!==r.connectionState.disconnected){var y=i[o],h=r.transports[y],v=function(){d(i,o+1)};c.transport=h;try{c._.initHandler.start(h,function(){var i=r._.firefoxMajorVersion(t.navigator.userAgent)>=11,f=!!c.withCredentials&&i;c.log("The start request succeeded. Transitioning to the connected state.");a(c)&&r.transports._logic.monitorKeepAlive(c);r.transports._logic.startHeartbeat(c);r._.configurePingInterval(c);s(c,r.connectionState.connecting,r.connectionState.connected)||c.log("WARNING! The connection was not in the connecting state.");c._.connectingMessageBuffer.drain();n(c).triggerHandler(u.onStart);e.bind("unload",function(){c.log("Window unloading, stopping the connection.");c.stop(f)});i&&e.bind("beforeunload",function(){t.setTimeout(function(){c.stop(f)},0)})},v)}catch(w){c.log(h.name+" transport threw '"+w.message+"' when attempting to start.");v()}}},b=c.url+"/negotiate",g=function(t,i){var e=r._.error(f.errorOnNegotiate,t,i._.negotiateRequest);n(i).triggerHandler(u.onError,e);p.reject(e);i.stop()},n(c).triggerHandler(u.onStarting),b=r.transports._logic.prepareQueryString(c,b),c.log("Negotiating with '"+b+"'."),c._.negotiateRequest=r.transports._logic.ajax(c,{url:b,error:function(n,t){t!==l?g(n,c):p.reject(r._.error(f.stoppedWhileNegotiating,null,c._.negotiateRequest))},success:function(t){var i,e,h,o=[],s=[];try{i=c._parseResponse(t)}catch(l){g(r._.error(f.errorParsingNegotiateResponse,l),c);return}if(e=c._.keepAliveData,c.appRelativeUrl=i.Url,c.id=i.ConnectionId,c.token=i.ConnectionToken,c.webSocketServerUrl=i.WebSocketServerUrl,c._.pollTimeout=i.ConnectionTimeout*1e3+1e4,c.disconnectTimeout=i.DisconnectTimeout*1e3,c._.totalTransportConnectTimeout=c.transportConnectTimeout+i.TransportConnectTimeout*1e3,i.KeepAliveTimeout?(e.activated=!0,e.timeout=i.KeepAliveTimeout*1e3,e.timeoutWarning=e.timeout*c.keepAliveWarnAt,c._.beatInterval=(e.timeout-e.timeoutWarning)/3):e.activated=!1,c.reconnectWindow=c.disconnectTimeout+(e.timeout||0),!i.ProtocolVersion||i.ProtocolVersion!==c.clientProtocol){h=r._.error(r._.format(f.protocolIncompatible,c.clientProtocol,i.ProtocolVersion));n(c).triggerHandler(u.onError,[h]);p.reject(h);return}n.each(r.transports,function(n){if(n.indexOf("_")===0||n==="webSockets"&&!i.TryWebSockets)return!0;s.push(n)});n.isArray(y.transport)?n.each(y.transport,function(t,i){n.inArray(i,s)>=0&&o.push(i)}):y.transport==="auto"?o=s:n.inArray(y.transport,s)>=0&&o.push(y.transport);d(o)}}),p.promise())},starting:function(t){var i=this;return n(i).bind(u.onStarting,function(){t.call(i)}),i},send:function(n){var t=this;if(t.state===r.connectionState.disconnected)throw new Error("SignalR: Connection must be started before data can be sent. Call .start() before .send()");if(t.state===r.connectionState.connecting)throw new Error("SignalR: Connection has not been fully initialized. Use .start().done() or .start().fail() to run logic after the connection has started.");return t.transport.send(t,n),t},received:function(t){var i=this;return n(i).bind(u.onReceived,function(n,r){t.call(i,r)}),i},stateChanged:function(t){var i=this;return n(i).bind(u.onStateChanged,function(n,r){t.call(i,r)}),i},error:function(t){var i=this;return n(i).bind(u.onError,function(n,r,u){i.lastError=r;t.call(i,r,u)}),i},disconnected:function(t){var i=this;return n(i).bind(u.onDisconnect,function(){t.call(i)}),i},connectionSlow:function(t){var i=this;return n(i).bind(u.onConnectionSlow,function(){t.call(i)}),i},reconnecting:function(t){var i=this;return n(i).bind(u.onReconnecting,function(){t.call(i)}),i},reconnected:function(t){var i=this;return n(i).bind(u.onReconnect,function(){t.call(i)}),i},stop:function(i,h){var c=this,v=c._deferral;if(c._.deferredStartHandler&&e.unbind("load",c._.deferredStartHandler),delete c._.config,delete c._.deferredStartHandler,!o&&(!c._.config||c._.config.waitForPageLoad===!0)){c.log("Stopping connection prior to negotiate.");v&&v.reject(r._.error(f.stoppedWhileLoading));return}if(c.state!==r.connectionState.disconnected)return c.log("Stopping connection."),t.clearTimeout(c._.beatHandle),t.clearInterval(c._.pingIntervalId),c.transport&&(c.transport.stop(c),h!==!1&&c.transport.abort(c,i),a(c)&&r.transports._logic.stopMonitoringKeepAlive(c),c.transport=null),c._.negotiateRequest&&(c._.negotiateRequest.abort(l),delete c._.negotiateRequest),c._.initHandler&&c._.initHandler.stop(),delete c._deferral,delete c.messageId,delete c.groupsToken,delete c.id,delete c._.pingIntervalId,delete c._.lastMessageAt,delete c._.lastActiveAt,c._.connectingMessageBuffer.clear(),n(c).unbind(u.onStart),s(c,c.state,r.connectionState.disconnected),n(c).triggerHandler(u.onDisconnect),c},log:function(n){w(n,this.logging)}};r.fn.init.prototype=r.fn;r.noConflict=function(){return n.connection===r&&(n.connection=c),r};n.connection&&(c=n.connection);n.connection=n.signalR=r}(window.jQuery,window),function(n,t,i){function o(n){n._.keepAliveData.monitoring&&c(n);u.markActive(n)&&(n._.beatHandle=t.setTimeout(function(){o(n)},n._.beatInterval))}function c(t){var i=t._.keepAliveData,u;t.state===r.connectionState.connected&&(u=(new Date).getTime()-t._.lastMessageAt,u>=i.timeout?(t.log("Keep alive timed out.  Notifying transport that connection has been lost."),t.transport.lostConnection(t)):u>=i.timeoutWarning?i.userNotified||(t.log("Keep alive has been missed, connection may be dead/slow."),n(t).triggerHandler(f.onConnectionSlow),i.userNotified=!0):i.userNotified=!1)}function e(n,t){var i=n.url+t;return n.transport&&(i+="?transport="+n.transport.name),u.prepareQueryString(n,i)}function s(n){this.connection=n;this.startRequested=!1;this.startCompleted=!1;this.connectionStopped=!1}var r=n.signalR,f=n.signalR.events,l=n.signalR.changeState,h="__Start Aborted__",u;r.transports={};s.prototype={start:function(n,r,u){var f=this,e=f.connection,o=!1;if(f.startRequested||f.connectionStopped){e.log("WARNING! "+n.name+" transport cannot be started. Initialization ongoing or completed.");return}e.log(n.name+" transport starting.");n.start(e,function(){o||f.initReceived(n,r)},function(t){return o||(o=!0,f.transportFailed(n,t,u)),!f.startCompleted||f.connectionStopped});f.transportTimeoutHandle=t.setTimeout(function(){o||(o=!0,e.log(n.name+" transport timed out when trying to connect."),f.transportFailed(n,i,u))},e._.totalTransportConnectTimeout)},stop:function(){this.connectionStopped=!0;t.clearTimeout(this.transportTimeoutHandle);r.transports._logic.tryAbortStartRequest(this.connection)},initReceived:function(n,i){var u=this,f=u.connection;if(u.startRequested){f.log("WARNING! The client received multiple init messages.");return}u.connectionStopped||(u.startRequested=!0,t.clearTimeout(u.transportTimeoutHandle),f.log(n.name+" transport connected. Initiating start request."),r.transports._logic.ajaxStart(f,function(){u.startCompleted=!0;i()}))},transportFailed:function(i,u,e){var o=this.connection,h=o._deferral,s;this.connectionStopped||(t.clearTimeout(this.transportTimeoutHandle),this.startRequested?this.startCompleted||(s=r._.error(r.resources.errorDuringStartRequest,u),o.log(i.name+" transport failed during the start request. Stopping the connection."),n(o).triggerHandler(f.onError,[s]),h&&h.reject(s),o.stop()):(i.stop(o),o.log(i.name+" transport failed to connect. Attempting to fall back."),e()))}};u=r.transports._logic={ajax:function(t,i){return n.ajax(n.extend(!0,{},n.signalR.ajaxDefaults,{type:"GET",data:{},xhrFields:{withCredentials:t.withCredentials},contentType:t.contentType,dataType:t.ajaxDataType},i))},pingServer:function(t){var e,f,i=n.Deferred();return t.transport?(e=t.url+"/ping",e=u.addQs(e,t.qs),f=u.ajax(t,{url:e,success:function(n){var u;try{u=t._parseResponse(n)}catch(e){i.reject(r._.transportError(r.resources.pingServerFailedParse,t.transport,e,f));t.stop();return}u.Response==="pong"?i.resolve():i.reject(r._.transportError(r._.format(r.resources.pingServerFailedInvalidResponse,n),t.transport,null,f))},error:function(n){n.status===401||n.status===403?(i.reject(r._.transportError(r._.format(r.resources.pingServerFailedStatusCode,n.status),t.transport,n,f)),t.stop()):i.reject(r._.transportError(r.resources.pingServerFailed,t.transport,n,f))}})):i.reject(r._.transportError(r.resources.noConnectionTransport,t.transport)),i.promise()},prepareQueryString:function(n,i){var r;return r=u.addQs(i,"clientProtocol="+n.clientProtocol),r=u.addQs(r,n.qs),n.token&&(r+="&connectionToken="+t.encodeURIComponent(n.token)),n.data&&(r+="&connectionData="+t.encodeURIComponent(n.data)),r},addQs:function(t,i){var r=t.indexOf("?")!==-1?"&":"?",u;if(!i)return t;if(typeof i=="object")return t+r+n.param(i);if(typeof i=="string")return u=i.charAt(0),(u==="?"||u==="&")&&(r=""),t+r+i;throw new Error("Query string property must be either a string or object.");},getUrl:function(n,i,r,f,e){var h=i==="webSockets"?"":n.baseUrl,o=h+n.appRelativeUrl,s="transport="+i;return!e&&n.groupsToken&&(s+="&groupsToken="+t.encodeURIComponent(n.groupsToken)),r?(o+=f?"/poll":"/reconnect",!e&&n.messageId&&(s+="&messageId="+t.encodeURIComponent(n.messageId))):o+="/connect",o+="?"+s,o=u.prepareQueryString(n,o),e||(o+="&tid="+Math.floor(Math.random()*11)),o},maximizePersistentResponse:function(n){return{MessageId:n.C,Messages:n.M,Initialized:typeof n.S!="undefined"?!0:!1,ShouldReconnect:typeof n.T!="undefined"?!0:!1,LongPollDelay:n.L,GroupsToken:n.G}},updateGroups:function(n,t){t&&(n.groupsToken=t)},stringifySend:function(n,t){return typeof t=="string"||typeof t=="undefined"||t===null?t:n.json.stringify(t)},ajaxSend:function(t,i){var h=u.stringifySend(t,i),c=e(t,"/send"),o,s=function(t,u){n(u).triggerHandler(f.onError,[r._.transportError(r.resources.sendFailed,u.transport,t,o),i])};return o=u.ajax(t,{url:c,type:t.ajaxDataType==="jsonp"?"GET":"POST",contentType:r._.defaultContentType,data:{data:h},success:function(n){var i;if(n){try{i=t._parseResponse(n)}catch(r){s(r,t);t.stop();return}u.triggerReceived(t,i)}},error:function(n,i){i!=="abort"&&i!=="parsererror"&&s(n,t)}})},ajaxAbort:function(n,t){if(typeof n.transport!="undefined"){t=typeof t=="undefined"?!0:t;var i=e(n,"/abort");u.ajax(n,{url:i,async:t,timeout:1e3,type:"POST"});n.log("Fired ajax abort async = "+t+".")}},ajaxStart:function(t,i){var s=function(n){var i=t._deferral;i&&i.reject(n)},o=function(i){t.log("The start request failed. Stopping the connection.");n(t).triggerHandler(f.onError,[i]);s(i);t.stop()};t._.startRequest=u.ajax(t,{url:e(t,"/start"),success:function(n,u,f){var e;try{e=t._parseResponse(n)}catch(s){o(r._.error(r._.format(r.resources.errorParsingStartResponse,n),s,f));return}e.Response==="started"?i():o(r._.error(r._.format(r.resources.invalidStartResponse,n),null,f))},error:function(n,i,u){i!==h?o(r._.error(r.resources.errorDuringStartRequest,u,n)):(t.log("The start request aborted because connection.stop() was called."),s(r._.error(r.resources.stoppedDuringStartRequest,null,n)))}})},tryAbortStartRequest:function(n){n._.startRequest&&(n._.startRequest.abort(h),delete n._.startRequest)},tryInitialize:function(n,t,i){t.Initialized&&i?i():t.Initialized&&n.log("WARNING! The client received an init message after reconnecting.")},triggerReceived:function(t,i){t._.connectingMessageBuffer.tryBuffer(i)||n(t).triggerHandler(f.onReceived,[i])},processMessages:function(t,i,r){var f;u.markLastMessage(t);i&&(f=u.maximizePersistentResponse(i),u.updateGroups(t,f.GroupsToken),f.MessageId&&(t.messageId=f.MessageId),f.Messages&&(n.each(f.Messages,function(n,i){u.triggerReceived(t,i)}),u.tryInitialize(t,f,r)))},monitorKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring?t.log("Tried to monitor keep alive but it's already being monitored."):(i.monitoring=!0,u.markLastMessage(t),t._.keepAliveData.reconnectKeepAliveUpdate=function(){u.markLastMessage(t)},n(t).bind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t.log("Now monitoring keep alive with a warning timeout of "+i.timeoutWarning+", keep alive timeout of "+i.timeout+" and disconnecting timeout of "+t.disconnectTimeout))},stopMonitoringKeepAlive:function(t){var i=t._.keepAliveData;i.monitoring&&(i.monitoring=!1,n(t).unbind(f.onReconnect,t._.keepAliveData.reconnectKeepAliveUpdate),t._.keepAliveData={},t.log("Stopping the monitoring of the keep alive."))},startHeartbeat:function(n){n._.lastActiveAt=(new Date).getTime();o(n)},markLastMessage:function(n){n._.lastMessageAt=(new Date).getTime()},markActive:function(n){return u.verifyLastActive(n)?(n._.lastActiveAt=(new Date).getTime(),!0):!1},isConnectedOrReconnecting:function(n){return n.state===r.connectionState.connected||n.state===r.connectionState.reconnecting},ensureReconnectingState:function(t){return l(t,r.connectionState.connected,r.connectionState.reconnecting)===!0&&n(t).triggerHandler(f.onReconnecting),t.state===r.connectionState.reconnecting},clearReconnectTimeout:function(n){n&&n._.reconnectTimeout&&(t.clearTimeout(n._.reconnectTimeout),delete n._.reconnectTimeout)},verifyLastActive:function(t){if((new Date).getTime()-t._.lastActiveAt>=t.reconnectWindow){var i=r._.format(r.resources.reconnectWindowTimeout,new Date(t._.lastActiveAt),t.reconnectWindow);return t.log(i),n(t).triggerHandler(f.onError,[r._.error(i,"TimeoutException")]),t.stop(!1,!1),!1}return!0},reconnect:function(n,i){var f=r.transports[i];if(u.isConnectedOrReconnecting(n)&&!n._.reconnectTimeout){if(!u.verifyLastActive(n))return;n._.reconnectTimeout=t.setTimeout(function(){u.verifyLastActive(n)&&(f.stop(n),u.ensureReconnectingState(n)&&(n.log(i+" reconnecting."),f.start(n)))},n.reconnectDelay)}},handleParseFailure:function(t,i,u,e,o){var s=r._.transportError(r._.format(r.resources.parseFailed,i),t.transport,u,o);e&&e(s)?t.log("Failed to parse server response while attempting to connect."):(n(t).triggerHandler(f.onError,[s]),t.stop())},initHandler:function(n){return new s(n)},foreverFrame:{count:0,connections:{}}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,f=n.signalR.changeState,i=r.transports._logic;r.transports.webSockets={name:"webSockets",supportsKeepAlive:function(){return!0},send:function(t,f){var e=i.stringifySend(t,f);try{t.socket.send(e)}catch(o){n(t).triggerHandler(u.onError,[r._.transportError(r.resources.webSocketsInvalidState,t.transport,o,t.socket),f])}},start:function(e,o,s){var h,c=!1,l=this,a=!o,v=n(e);if(!t.WebSocket){s();return}e.socket||(h=e.webSocketServerUrl?e.webSocketServerUrl:e.wsProtocol+e.host,h+=i.getUrl(e,this.name,a),e.log("Connecting to websocket endpoint '"+h+"'."),e.socket=new t.WebSocket(h),e.socket.onopen=function(){c=!0;e.log("Websocket opened.");i.clearReconnectTimeout(e);f(e,r.connectionState.reconnecting,r.connectionState.connected)===!0&&v.triggerHandler(u.onReconnect)},e.socket.onclose=function(t){var i;this===e.socket&&(c&&typeof t.wasClean!="undefined"&&t.wasClean===!1?(i=r._.transportError(r.resources.webSocketClosed,e.transport,t),e.log("Unclean disconnect from websocket: "+(t.reason||"[no reason given]."))):e.log("Websocket closed."),s&&s(i)||(i&&n(e).triggerHandler(u.onError,[i]),l.reconnect(e)))},e.socket.onmessage=function(t){var r;try{r=e._parseResponse(t.data)}catch(u){i.handleParseFailure(e,t.data,u,s,t);return}r&&(n.isEmptyObject(r)||r.M?i.processMessages(e,r,o):i.triggerReceived(e,r))})},reconnect:function(n){i.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},stop:function(n){i.clearReconnectTimeout(n);n.socket&&(n.log("Closing the Websocket."),n.socket.close(),n.socket=null)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var i=n.signalR,u=n.signalR.events,e=n.signalR.changeState,r=i.transports._logic,f=function(n){t.clearTimeout(n._.reconnectAttemptTimeoutHandle);delete n._.reconnectAttemptTimeoutHandle};i.transports.serverSentEvents={name:"serverSentEvents",supportsKeepAlive:function(){return!0},timeOut:3e3,start:function(o,s,h){var c=this,l=!1,a=n(o),v=!s,y;if(o.eventSource&&(o.log("The connection already has an event source. Stopping it."),o.stop()),!t.EventSource){h&&(o.log("This browser doesn't support SSE."),h());return}y=r.getUrl(o,this.name,v);try{o.log("Attempting to connect to SSE endpoint '"+y+"'.");o.eventSource=new t.EventSource(y,{withCredentials:o.withCredentials})}catch(p){o.log("EventSource failed trying to connect with error "+p.Message+".");h?h():(a.triggerHandler(u.onError,[i._.transportError(i.resources.eventSourceFailedToConnect,o.transport,p)]),v&&c.reconnect(o));return}v&&(o._.reconnectAttemptTimeoutHandle=t.setTimeout(function(){l===!1&&o.eventSource.readyState!==t.EventSource.OPEN&&c.reconnect(o)},c.timeOut));o.eventSource.addEventListener("open",function(){o.log("EventSource connected.");f(o);r.clearReconnectTimeout(o);l===!1&&(l=!0,e(o,i.connectionState.reconnecting,i.connectionState.connected)===!0&&a.triggerHandler(u.onReconnect))},!1);o.eventSource.addEventListener("message",function(n){var t;if(n.data!=="initialized"){try{t=o._parseResponse(n.data)}catch(i){r.handleParseFailure(o,n.data,i,h,n);return}r.processMessages(o,t,s)}},!1);o.eventSource.addEventListener("error",function(n){var r=i._.transportError(i.resources.eventSourceError,o.transport,n);this===o.eventSource&&(h&&h(r)||(o.log("EventSource readyState: "+o.eventSource.readyState+"."),n.eventPhase===t.EventSource.CLOSED?(o.log("EventSource reconnecting due to the server connection ending."),c.reconnect(o)):(o.log("EventSource error."),a.triggerHandler(u.onError,[r]))))},!1)},reconnect:function(n){r.reconnect(n,this.name)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){r.ajaxSend(n,t)},stop:function(n){f(n);r.clearReconnectTimeout(n);n&&n.eventSource&&(n.log("EventSource calling close()."),n.eventSource.close(),n.eventSource=null,delete n.eventSource)},abort:function(n,t){r.ajaxAbort(n,t)}}}(window.jQuery,window),function(n,t){var r=n.signalR,e=n.signalR.events,o=n.signalR.changeState,i=r.transports._logic,u=function(){var n=t.document.createElement("iframe");return n.setAttribute("style","position:absolute;top:0;left:0;width:0;height:0;visibility:hidden;"),n},f=function(){var i=null,f=1e3,n=0;return{prevent:function(){r._.ieVersion<=8&&(n===0&&(i=t.setInterval(function(){var n=u();t.document.body.appendChild(n);t.document.body.removeChild(n);n=null},f)),n++)},cancel:function(){n===1&&t.clearInterval(i);n>0&&n--}}}();r.transports.foreverFrame={name:"foreverFrame",supportsKeepAlive:function(){return!0},iframeClearThreshold:50,start:function(n,r,e){var l=this,s=i.foreverFrame.count+=1,h,o=u(),c=function(){n.log("Forever frame iframe finished loading and is no longer receiving messages.");e&&e()||l.reconnect(n)};if(t.EventSource){e&&(n.log("Forever Frame is not supported by SignalR on browsers with SSE support."),e());return}o.setAttribute("data-signalr-connection-id",n.id);f.prevent();h=i.getUrl(n,this.name);h+="&frameId="+s;t.document.documentElement.appendChild(o);n.log("Binding to iframe's load event.");o.addEventListener?o.addEventListener("load",c,!1):o.attachEvent&&o.attachEvent("onload",c);o.src=h;i.foreverFrame.connections[s]=n;n.frame=o;n.frameId=s;r&&(n.onSuccess=function(){n.log("Iframe transport started.");r()})},reconnect:function(n){var r=this;i.isConnectedOrReconnecting(n)&&i.verifyLastActive(n)&&t.setTimeout(function(){if(i.verifyLastActive(n)&&n.frame&&i.ensureReconnectingState(n)){var u=n.frame,t=i.getUrl(n,r.name,!0)+"&frameId="+n.frameId;n.log("Updating iframe src to '"+t+"'.");u.src=t}},n.reconnectDelay)},lostConnection:function(n){this.reconnect(n)},send:function(n,t){i.ajaxSend(n,t)},receive:function(t,u){var f,e,o;if(t.json!==t._originalJson&&(u=t._originalJson.stringify(u)),o=t._parseResponse(u),i.processMessages(t,o,t.onSuccess),t.state===n.signalR.connectionState.connected&&(t.frameMessageCount=(t.frameMessageCount||0)+1,t.frameMessageCount>r.transports.foreverFrame.iframeClearThreshold&&(t.frameMessageCount=0,f=t.frame.contentWindow||t.frame.contentDocument,f&&f.document&&f.document.body)))for(e=f.document.body;e.firstChild;)e.removeChild(e.firstChild)},stop:function(n){var r=null;if(f.cancel(),n.frame){if(n.frame.stop)n.frame.stop();else try{r=n.frame.contentWindow||n.frame.contentDocument;r.document&&r.document.execCommand&&r.document.execCommand("Stop")}catch(u){n.log("Error occurred when stopping foreverFrame transport. Message = "+u.message+".")}n.frame.parentNode===t.document.documentElement&&t.document.documentElement.removeChild(n.frame);delete i.foreverFrame.connections[n.frameId];n.frame=null;n.frameId=null;delete n.frame;delete n.frameId;delete n.onSuccess;delete n.frameMessageCount;n.log("Stopping forever frame.")}},abort:function(n,t){i.ajaxAbort(n,t)},getConnection:function(n){return i.foreverFrame.connections[n]},started:function(t){o(t,r.connectionState.reconnecting,r.connectionState.connected)===!0&&n(t).triggerHandler(e.onReconnect)}}}(window.jQuery,window),function(n,t){var r=n.signalR,u=n.signalR.events,e=n.signalR.changeState,f=n.signalR.isDisconnecting,i=r.transports._logic;r.transports.longPolling={name:"longPolling",supportsKeepAlive:function(){return!1},reconnectDelay:3e3,start:function(o,s,h){var a=this,v=function(){v=n.noop;o.log("LongPolling connected.");s?s():o.log("WARNING! The client received an init message after reconnecting.")},y=function(n){return h(n)?(o.log("LongPolling failed to connect."),!0):!1},c=o._,l=0,p=function(i){t.clearTimeout(c.reconnectTimeoutId);c.reconnectTimeoutId=null;e(i,r.connectionState.reconnecting,r.connectionState.connected)===!0&&(i.log("Raising the reconnect event"),n(i).triggerHandler(u.onReconnect))},w=36e5;o.pollXhr&&(o.log("Polling xhr requests already exists, aborting."),o.stop());o.messageId=null;c.reconnectTimeoutId=null;c.pollTimeoutId=t.setTimeout(function(){(function e(s,h){var g=s.messageId,nt=g===null,k=!nt,tt=!h,d=i.getUrl(s,a.name,k,tt,!0),b={};(s.messageId&&(b.messageId=s.messageId),s.groupsToken&&(b.groupsToken=s.groupsToken),f(s)!==!0)&&(o.log("Opening long polling request to '"+d+"'."),s.pollXhr=i.ajax(o,{xhrFields:{onprogress:function(){i.markLastMessage(o)}},url:d,type:"POST",contentType:r._.defaultContentType,data:b,timeout:o._.pollTimeout,success:function(r){var h,w=0,u,a;o.log("Long poll complete.");l=0;try{h=o._parseResponse(r)}catch(b){i.handleParseFailure(s,r,b,y,s.pollXhr);return}(c.reconnectTimeoutId!==null&&p(s),h&&(u=i.maximizePersistentResponse(h)),i.processMessages(s,h,v),u&&n.type(u.LongPollDelay)==="number"&&(w=u.LongPollDelay),f(s)!==!0)&&(a=u&&u.ShouldReconnect,!a||i.ensureReconnectingState(s))&&(w>0?c.pollTimeoutId=t.setTimeout(function(){e(s,a)},w):e(s,a))},error:function(f,h){var v=r._.transportError(r.resources.longPollFailed,o.transport,f,s.pollXhr);if(t.clearTimeout(c.reconnectTimeoutId),c.reconnectTimeoutId=null,h==="abort"){o.log("Aborted xhr request.");return}if(!y(v)){if(l++,o.state!==r.connectionState.reconnecting&&(o.log("An error occurred using longPolling. Status = "+h+".  Response = "+f.responseText+"."),n(s).triggerHandler(u.onError,[v])),(o.state===r.connectionState.connected||o.state===r.connectionState.reconnecting)&&!i.verifyLastActive(o))return;if(!i.ensureReconnectingState(s))return;c.pollTimeoutId=t.setTimeout(function(){e(s,!0)},a.reconnectDelay)}}}),k&&h===!0&&(c.reconnectTimeoutId=t.setTimeout(function(){p(s)},Math.min(1e3*(Math.pow(2,l)-1),w))))})(o)},250)},lostConnection:function(n){n.pollXhr&&n.pollXhr.abort("lostConnection")},send:function(n,t){i.ajaxSend(n,t)},stop:function(n){t.clearTimeout(n._.pollTimeoutId);t.clearTimeout(n._.reconnectTimeoutId);delete n._.pollTimeoutId;delete n._.reconnectTimeoutId;n.pollXhr&&(n.pollXhr.abort(),n.pollXhr=null,delete n.pollXhr)},abort:function(n,t){i.ajaxAbort(n,t)}}}(window.jQuery,window),function(n){function r(n){return n+s}function e(n,t,i){for(var f=n.length,u=[],r=0;r<f;r+=1)n.hasOwnProperty(r)&&(u[r]=t.call(i,n[r],r,n));return u}function o(t){return n.isFunction(t)?null:n.type(t)==="undefined"?null:t}function u(n){for(var t in n)if(n.hasOwnProperty(t))return!0;return!1}function f(n,t){var i=n._.invocationCallbacks,r,f;u(i)&&n.log("Clearing hub invocation callbacks with error: "+t+".");n._.invocationCallbackId=0;delete n._.invocationCallbacks;n._.invocationCallbacks={};for(f in i)r=i[f],r.method.call(r.scope,{E:t})}function i(n,t){return new i.fn.init(n,t)}function t(i,r){var u={qs:null,logging:!1,useDefaultPath:!0};return n.extend(u,r),(!i||u.useDefaultPath)&&(i=(i||"")+"/signalr"),new t.fn.init(i,u)}var s=".hubProxy",h=n.signalR;i.fn=i.prototype={init:function(n,t){this.state={};this.connection=n;this.hubName=t;this._={callbackMap:{}}},constructor:i,hasSubscriptions:function(){return u(this._.callbackMap)},on:function(t,i){var u=this,f=u._.callbackMap;return t=t.toLowerCase(),f[t]||(f[t]={}),f[t][i]=function(n,t){i.apply(u,t)},n(u).bind(r(t),f[t][i]),u},off:function(t,i){var e=this,o=e._.callbackMap,f;return t=t.toLowerCase(),f=o[t],f&&(f[i]?(n(e).unbind(r(t),f[i]),delete f[i],u(f)||delete o[t]):i||(n(e).unbind(r(t)),delete o[t])),e},invoke:function(t){var i=this,r=i.connection,s=n.makeArray(arguments).slice(1),c=e(s,o),f={H:i.hubName,M:t,A:c,I:r._.invocationCallbackId},u=n.Deferred(),l=function(f){var e=i._maximizeHubResponse(f),s,o;n.extend(i.state,e.State);e.Progress?u.notifyWith?u.notifyWith(i,[e.Progress.Data]):r._.progressjQueryVersionLogged||(r.log("A hub method invocation progress update was received but the version of jQuery in use ("+n.prototype.jquery+") does not support progress updates. Upgrade to jQuery 1.7+ to receive progress notifications."),r._.progressjQueryVersionLogged=!0):e.Error?(e.StackTrace&&r.log(e.Error+"\n"+e.StackTrace+"."),s=e.IsHubException?"HubException":"Exception",o=h._.error(e.Error,s),o.data=e.ErrorData,r.log(i.hubName+"."+t+" failed to execute. Error: "+o.message),u.rejectWith(i,[o])):(r.log("Invoked "+i.hubName+"."+t),u.resolveWith(i,[e.Result]))};return r._.invocationCallbacks[r._.invocationCallbackId.toString()]={scope:i,method:l},r._.invocationCallbackId+=1,n.isEmptyObject(i.state)||(f.S=i.state),r.log("Invoking "+i.hubName+"."+t),r.send(f),u.promise()},_maximizeHubResponse:function(n){return{State:n.S,Result:n.R,Progress:n.P?{Id:n.P.I,Data:n.P.D}:null,Id:n.I,IsHubException:n.H,Error:n.E,StackTrace:n.T,ErrorData:n.D}}};i.fn.init.prototype=i.fn;t.fn=t.prototype=n.connection();t.fn.init=function(t,i){var e={qs:null,logging:!1,useDefaultPath:!0},u=this;n.extend(e,i);n.signalR.fn.init.call(u,t,e.qs,e.logging);u.proxies={};u._.invocationCallbackId=0;u._.invocationCallbacks={};u.received(function(t){var f,o,e,i,s,h;t&&(typeof t.P!="undefined"?(e=t.P.I.toString(),i=u._.invocationCallbacks[e],i&&i.method.call(i.scope,t)):typeof t.I!="undefined"?(e=t.I.toString(),i=u._.invocationCallbacks[e],i&&(u._.invocationCallbacks[e]=null,delete u._.invocationCallbacks[e],i.method.call(i.scope,t))):(f=this._maximizeClientHubInvocation(t),u.log("Triggering client hub event '"+f.Method+"' on hub '"+f.Hub+"'."),s=f.Hub.toLowerCase(),h=f.Method.toLowerCase(),o=this.proxies[s],n.extend(o.state,f.State),n(o).triggerHandler(r(h),[f.Args])))});u.error(function(n,t){var i,r;t&&(i=t.I,r=u._.invocationCallbacks[i],r&&(u._.invocationCallbacks[i]=null,delete u._.invocationCallbacks[i],r.method.call(r.scope,{E:n})))});u.reconnecting(function(){u.transport&&u.transport.name==="webSockets"&&f(u,"Connection started reconnecting before invocation result was received.")});u.disconnected(function(){f(u,"Connection was disconnected before invocation result was received.")})};t.fn._maximizeClientHubInvocation=function(n){return{Hub:n.H,Method:n.M,Args:n.A,State:n.S}};t.fn._registerSubscribedHubs=function(){var t=this;t._subscribedToHubs||(t._subscribedToHubs=!0,t.starting(function(){var i=[];n.each(t.proxies,function(n){this.hasSubscriptions()&&(i.push({name:n}),t.log("Client subscribed to hub '"+n+"'."))});i.length===0&&t.log("No hubs have been subscribed to.  The client will not receive data from hubs.  To fix, declare at least one client side function prior to connection start for each hub you wish to subscribe to.");t.data=t.json.stringify(i)}))};t.fn.createHubProxy=function(n){n=n.toLowerCase();var t=this.proxies[n];return t||(t=i(this,n),this.proxies[n]=t),this._registerSubscribedHubs(),t};t.fn.init.prototype=t.fn;n.hubConnection=t}(window.jQuery,window),function(n){n.signalR.version="2.2.3"}(window.jQuery)