var card,objectFitImages;(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)})(function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=n.data(this[0],"validator");if(i)return i;if(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.settings.submitHandler&&(i.submitButton=t.target);n(this).hasClass("cancel")&&(i.cancelSubmit=!0);n(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)});this.on("submit.validate",function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),r!==undefined)?r:!1:!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})}return 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 r=this[0],e,s,f,u,o,h;if(r!=null&&r.form!=null){if(t){e=n.data(r.form,"validator").settings;s=e.rules;f=n.validator.staticRules(r);switch(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(t,i){h[i]=f[i];delete f[i];i==="required"&&n(r).removeAttr("aria-required")}),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),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}});n.extend(n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){var i=n(t).val();return i!==null&&!!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 arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:i===undefined?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){(i.which!==9||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){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?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]);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 r=this.groups={},t;n.each(this.settings.groups,function(t,i){typeof i=="string"&&(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]",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);if(this.settings.invalidHandler)n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},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 i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0,e,o;return r===undefined?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=0;for(var i in n)n[i]&&t++;return t},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text("");this.addWrapper(n).hide()},valid:function(){return this.size()===0},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&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&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]),r in i||!t.objectLength(n(this).rules()))?!1:(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 f=n(t),u=t.type,i,r;return u==="radio"||u==="checkbox"?this.findByName(t.name).filter(":checked").val():u==="number"&&typeof t.validity!="undefined"?t.validity.badInput?"NaN":f.val():(i=t.hasAttribute("contenteditable")?f.text():f.val(),u==="file")?i.substr(0,12)==="C:\\fakepath\\"?i.substr(12):(r=i.lastIndexOf("/"),r>=0)?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0)?i.substr(r+1):i:typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){t=this.validationTargetFor(this.clean(t));var i=n(t).rules(),h=n.map(i,function(n,t){return t}).length,s=!1,u=this.elementValue(t),f,e,r;if(typeof i.normalizer=="function"){if(u=i.normalizer.call(t,u),typeof u!="string")throw new TypeError("The normalizer should return a string value.");delete i.normalizer}for(e in i){r={method:e,parameters:i[e]};try{if(f=n.validator.methods[e].call(this,u,t,r.parameters),f==="dependency-mismatch"&&h===1){s=!0;continue}if(s=!1,f==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!f)return this.formatAndAdd(t,r),!1}catch(o){this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o);o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.");throw o;}}if(!s)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(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){typeof i=="string"&&(i={method:i});var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return typeof r=="function"?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):r.parents("label[for='"+this.escapeCssMeta(h)+"']").length===0&&(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(""),typeof this.settings.success=="string"?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):!0},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&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i=typeof i=="string"&&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)&&(t===null||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=undefined));r||r===0?n[i]=r:t===i&&t!=="range"&&(n[i]=!0)},attributeRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),u,i;for(u in n.validator.methods)u==="required"?(i=t.getAttribute(u),i===""&&(i=!0),i=!!i):i=f.attr(u),this.normalizeAttributeRule(r,e,u,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),i,u;for(i in n.validator.methods)u=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,e,i,u);return r},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){delete t[r];return}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]=u.param!==undefined?u.param:!0:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&r!=="normalizer"?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])]:typeof t[this]=="string"&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min!=null&&t.max!=null&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength!=null&&t.maxlength!=null&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if(typeof t=="string"){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]=r!==undefined?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(i.nodeName.toLowerCase()==="select"){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=n(i).attr("type"),h="Step attribute on input type "+u+" is not supported.",c=new RegExp("\\b"+u+"\\b"),l=u&&!c.test("text,number,range"),e=function(n){var t=(""+n).match(/(?:\.(\d+))?$/);return t?t[1]?t[1].length:0:0},o=function(n){return Math.round(n*Math.pow(10,f))},s=!0,f;if(l)throw new Error(h);return f=e(r),(e(t)>f||o(t)%o(r)!=0)&&(s=!1),this.optional(i)||s},equalTo:function(t,i,r){var u=n(r);if(this.settings.onfocusout&&u.not(".validate-equalTo-blur").length)u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()});return t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u=typeof u=="string"&&u||"remote";var e=this.previousValue(i,u),f,o,s;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=typeof r=="string"&&{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=n===!0||n==="true",o,s,h;f.settings.messages[i.name][u]=e.originalMessage;r?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(o={},s=n||f.defaultMessage(i,{method:u,parameters:t}),o[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(o));e.valid=r;f.stopRequest(i,r)}},r)),"pending")}}});var t={},i;n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(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 f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)})}),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 n.indexOf("*.")===0&&(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=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(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 r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__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)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&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){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&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)});n(function(){r.unobtrusive.parse(document)})}(jQuery);card=function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=2)}([function(n){var t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n){(function(){var t,i,r;(t=function(n){return t.isDOMElement(n)?n:document.querySelectorAll(n)}).isDOMElement=function(n){return n&&null!=n.nodeName};r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(n){return null===n?"":(n+"").replace(r,"")};i=/\r/g;t.val=function(n,t){var r;return arguments.length>1?n.value=t:"string"==typeof(r=n.value)?r.replace(i,""):null===r?"":r};t.preventDefault=function(n){if("function"!=typeof n.preventDefault)return n.returnValue=!1,!1;n.preventDefault()};t.normalizeEvent=function(n){var i;return null==(n={which:null!=(i=n).which?i.which:void 0,target:i.target||i.srcElement,preventDefault:function(){return t.preventDefault(i)},originalEvent:i,data:i.data||i.detail}).which&&(n.which=null!=i.charCode?i.charCode:i.keyCode),n};t.on=function(n,i,r){var e,u,f,o,s,h,c,l;if(n.length)for(u=0,o=n.length;u<o;u++)e=n[u],t.on(e,i,r);else{if(!i.match(" "))return c=r,r=function(n){return n=t.normalizeEvent(n),c(n)},n.addEventListener?n.addEventListener(i,r,!1):n.attachEvent?(i="on"+i,n.attachEvent(i,r)):void(n["on"+i]=r);for(f=0,s=(l=i.split(" ")).length;f<s;f++)h=l[f],t.on(n,h,r)}};t.addClass=function(n,i){var r;return n.length?function(){var u,e,f;for(f=[],u=0,e=n.length;u<e;u++)r=n[u],f.push(t.addClass(r,i));return f}():n.classList?n.classList.add(i):n.className+=" "+i};t.hasClass=function(n,i){var f,r,u,e;if(n.length){for(r=!0,u=0,e=n.length;u<e;u++)f=n[u],r=r&&t.hasClass(f,i);return r}return n.classList?n.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(n.className)};t.removeClass=function(n,i){var f,e,r,o,s,u;if(n.length)return function(){var r,f,u;for(u=[],r=0,f=n.length;r<f;r++)e=n[r],u.push(t.removeClass(e,i));return u}();if(n.classList){for(u=[],r=0,o=(s=i.split(" ")).length;r<o;r++)f=s[r],u.push(n.classList.remove(f));return u}return n.className=n.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};t.toggleClass=function(n,i,r){var u;return n.length?function(){var f,o,e;for(e=[],f=0,o=n.length;f<o;f++)u=n[f],e.push(t.toggleClass(u,i,r));return e}():r?t.hasClass(n,i)?void 0:t.addClass(n,i):t.removeClass(n,i)};t.append=function(n,i){var r;return n.length?function(){var u,e,f;for(f=[],u=0,e=n.length;u<e;u++)r=n[u],f.push(t.append(r,i));return f}():n.insertAdjacentHTML("beforeend",i)};t.find=function(n,t){return(n instanceof NodeList||n instanceof Array)&&(n=n[0]),n.querySelectorAll(t)};t.trigger=function(n,t,i){var u,r;try{r=new CustomEvent(t,{detail:i})}catch(u){u;(r=document.createEvent("CustomEvent")).initCustomEvent?r.initCustomEvent(t,!0,!0,i):r.initEvent(t,!0,!0,i)}return n.dispatchEvent(r)};n.exports=t}).call(this)},function(n,t,i){var r,u,f=[].slice;u=i(3);(r=i(15)).card={};r.card.fn={};r.fn.card=function(n){return r.card.fn.construct.apply(this,n)};r.fn.extend({card:function(){var t,n;return n=arguments[0],t=2<=arguments.length?f.call(arguments,1):[],this.each(function(){var f,i;if((i=(f=r(this)).data("card"))||(r.each(n,function(t,i){if(i instanceof jQuery)return n[t]=i[0]}),n.form=this,f.data("card",i=new u(n))),"string"==typeof n)return i[n].apply(i,t)})}})},function(n,t,i){(function(t){var u,r,f;i(4);r=i(1);i(8);f=i(9);u=function(){function n(n){var t,i,u;this.maskCardNumber=(t=this.maskCardNumber,i=this,function(){return t.apply(i,arguments)});this.options=f(!0,this.defaults,n);this.options.form?(this.$el=r(this.options.form),this.options.container?(this.$container=r(this.options.container),(u=r.isDOMElement(this.$container)?this.$container:this.$container[0]).getAttribute(this.initializedDataAttr)||(u.setAttribute(this.initializedDataAttr,!0),this.render(),this.attachHandlers(),this.handleInitialPlaceholders())):console.log("Please provide a container")):console.log("Please provide a form")}var t,i;return n.prototype.initializedDataAttr="data-jp-card-initialized",n.prototype.cardTemplate='<div class="jp-card-container"><div class="jp-card"><div class="jp-card-front"><div class="jp-card-logo jp-card-elo"><div class="e">e<\/div><div class="l">l<\/div><div class="o">o<\/div><\/div><div class="jp-card-logo jp-card-visa">Visa<\/div><div class="jp-card-logo jp-card-visaelectron">Visa<div class="elec">Electron<\/div><\/div><div class="jp-card-logo jp-card-mastercard">Mastercard<\/div><div class="jp-card-logo jp-card-maestro">Maestro<\/div><div class="jp-card-logo jp-card-amex"><\/div><div class="jp-card-logo jp-card-discover">discover<\/div><div class="jp-card-logo jp-card-unionpay">UnionPay<\/div><div class="jp-card-logo jp-card-dinersclub"><\/div><div class="jp-card-logo jp-card-hipercard">Hipercard<\/div><div class="jp-card-logo jp-card-troy">troy<\/div><div class="jp-card-logo jp-card-dankort"><div class="dk"><div class="d"><\/div><div class="k"><\/div><\/div><\/div><div class="jp-card-logo jp-card-jcb"><div class="j">J<\/div><div class="c">C<\/div><div class="b">B<\/div><\/div><div class="jp-card-lower"><div class="jp-card-shiny"><\/div><div class="jp-card-cvc jp-card-display">{{cvc}}<\/div><div class="jp-card-number jp-card-display">{{number}}<\/div><div class="jp-card-name jp-card-display">{{name}}<\/div><div class="jp-card-expiry jp-card-display" data-before="{{monthYear}}" data-after="{{validDate}}">{{expiry}}<\/div><\/div><\/div><div class="jp-card-back"><div class="jp-card-bar"><\/div><div class="jp-card-cvc jp-card-display">{{cvc}}<\/div><div class="jp-card-shiny"><\/div><\/div><\/div><\/div>',n.prototype.template=function(n,t){return n.replace(/\{\{(.*?)\}\}/g,function(n,i){return t[i]})},n.prototype.cardTypes=["jp-card-amex","jp-card-dankort","jp-card-dinersclub","jp-card-discover","jp-card-unionpay","jp-card-jcb","jp-card-laser","jp-card-maestro","jp-card-mastercard","jp-card-troy","jp-card-unionpay","jp-card-visa","jp-card-visaelectron","jp-card-elo","jp-card-hipercard"],n.prototype.defaults={formatting:!0,formSelectors:{numberInput:'input[name="number"]',expiryInput:'input[name="expiry"]',cvcInput:'input[name="cvc"]',nameInput:'input[name="name"]'},cardSelectors:{cardContainer:".jp-card-container",card:".jp-card",numberDisplay:".jp-card-number",expiryDisplay:".jp-card-expiry",cvcDisplay:".jp-card-cvc",nameDisplay:".jp-card-name"},messages:{validDate:"valid\nthru",monthYear:"month/year"},placeholders:{number:"&bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull;",cvc:"&bull;&bull;&bull;",expiry:"&bull;&bull;/&bull;&bull;",name:"Full Name"},masks:{cardNumber:!1},classes:{valid:"jp-card-valid",invalid:"jp-card-invalid"},debug:!1},n.prototype.render=function(){var i,u,n,e,o,s,t,h;for(n in r.append(this.$container,this.template(this.cardTemplate,f({},this.options.messages,this.options.placeholders))),o=this.options.cardSelectors)t=o[n],this["$"+n]=r.find(this.$container,t);for(n in s=this.options.formSelectors)t=s[n],t=this.options[n]?this.options[n]:t,!(e=r.find(this.$el,t)).length&&this.options.debug&&console.error("Card can't find a "+n+" in your form."),this["$"+n]=e;if(this.options.formatting&&(Payment.formatCardNumber(this.$numberInput),Payment.formatCardCVC(this.$cvcInput),Payment.formatCardExpiry(this.$expiryInput)),this.options.width&&(i=r(this.options.cardSelectors.cardContainer)[0],u=parseInt(i.clientWidth||window.getComputedStyle(i).width),i.style.transform="scale("+this.options.width/u+")"),("undefined"!=typeof navigator&&null!==navigator?navigator.userAgent:void 0)&&-1!==(h=navigator.userAgent.toLowerCase()).indexOf("safari")&&-1===h.indexOf("chrome")&&r.addClass(this.$card,"jp-card-safari"),/MSIE 10\./i.test(navigator.userAgent)&&r.addClass(this.$card,"jp-card-ie-10"),/rv:11.0/i.test(navigator.userAgent))return r.addClass(this.$card,"jp-card-ie-11")},n.prototype.attachHandlers=function(){var i,n;return n=[this.validToggler("cardNumber")],this.options.masks.cardNumber&&n.push(this.maskCardNumber),t(this.$numberInput,this.$numberDisplay,{fill:!1,filters:n}),r.on(this.$numberInput,"payment.cardType",this.handle("setCardType")),(i=[function(n){return n.replace(/(\s+)/g,"")}]).push(this.validToggler("cardExpiry")),t(this.$expiryInput,this.$expiryDisplay,{join:function(n){return 2===n[0].length||n[1]?"/":""},filters:i}),t(this.$cvcInput,this.$cvcDisplay,{filters:this.validToggler("cardCVC")}),r.on(this.$cvcInput,"focus",this.handle("flipCard")),r.on(this.$cvcInput,"blur",this.handle("unflipCard")),t(this.$nameInput,this.$nameDisplay,{fill:!1,filters:this.validToggler("cardHolderName"),join:" "})},n.prototype.handleInitialPlaceholders=function(){var n,i,u,t;for(i in t=[],u=this.options.formSelectors)u[i],(n=this["$"+i])instanceof NodeList&&(n=n[0]),r.val(n)?(r.trigger(n,"paste"),t.push(function(n){return setTimeout(function(){return r.trigger(n,"keyup")})}(n))):t.push(void 0);return t},n.prototype.handle=function(n){return t=this,function(i){var r;return(r=Array.prototype.slice.call(arguments)).unshift(i.target),t.handlers[n].apply(t,r)};var t},n.prototype.validToggler=function(n){var t,i;return"cardExpiry"===n?t=function(n){var t;return t=Payment.fns.cardExpiryVal(n),Payment.fns.validateCardExpiry(t.month,t.year)}:"cardCVC"===n?(i=this,t=function(n){return Payment.fns.validateCardCVC(n,i.cardType)}):"cardNumber"===n?t=function(n){return Payment.fns.validateCardNumber(n)}:"cardHolderName"===n&&(t=function(n){return""!==n}),function(n){return function(i,r,u){var f;return f=t(i),n.toggleValidClass(r,f),n.toggleValidClass(u,f),i}}(this)},n.prototype.toggleValidClass=function(n,t){return r.toggleClass(n,this.options.classes.valid,t),r.toggleClass(n,this.options.classes.invalid,!t)},n.prototype.maskCardNumber=function(n){var i,t;return i=this.options.masks.cardNumber,(t=n.split(" ")).length>=3?(t.forEach(function(n,r){if(r!==t.length-1)return t[r]=t[r].replace(/\d/g,i)}),t.join(" ")):n.replace(/\d/g,i)},n.prototype.handlers={setCardType:function(n,t){var i;if(i=t.data,!r.hasClass(this.$card,i))return r.removeClass(this.$card,"jp-card-unknown"),r.removeClass(this.$card,this.cardTypes.join(" ")),r.addClass(this.$card,"jp-card-"+i),r.toggleClass(this.$card,"jp-card-identified","unknown"!==i),this.cardType=i},flipCard:function(){return r.addClass(this.$card,"jp-card-flipped")},unflipCard:function(){return r.removeClass(this.$card,"jp-card-flipped")}},t=function(n,t,u){var e,o,f;return null==u&&(u={}),u.fill=u.fill||!1,u.filters=u.filters||[],u.filters instanceof Array||(u.filters=[u.filters]),u.join=u.join||"","function"!=typeof u.join&&(e=u.join,u.join=function(){return e}),f=function(){var n,r,i;for(i=[],n=0,r=t.length;n<r;n++)o=t[n],i.push(o.textContent);return i}(),i(n,t,f,u),r.on(n,"focus",function(){return r.addClass(t,"jp-card-focused")}),r.on(n,"blur",function(){return r.removeClass(t,"jp-card-focused")}),r.on(n,"keyup change paste",function(){return i(n,t,f,u)}),n},i=function(n,t,i,u){var l,e,o,s,h,a,v,y,p,w,c,f;for(f=function(){var t,u,i;for(i=[],t=0,u=n.length;t<u;t++)l=n[t],i.push(r.val(l));return i}(),s=u.join(f),(f=f.join(s))===s&&(f=""),o=0,a=(w=u.filters).length;o<a;o++)f=w[o](f,n,t);for(c=[],e=h=0,v=t.length;h<v;e=++h)y=t[e],p=u.fill?f+i[e].substring(f.length):f||i[e],c.push(y.textContent=p);return c},n}();n.exports=u;t.Card=u}).call(this,i(0))},function(n,t,i){var r=i(5);"string"==typeof r&&(r=[[n.i,r,""]]);i(7)(r,{});r.locals&&(n.exports=r.locals)},function(n,t,i){(n.exports=i(6)()).push([n.i,'.jp-card.jp-card-safari.jp-card-identified .jp-card-front:before,.jp-card.jp-card-safari.jp-card-identified .jp-card-back:before{background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),-webkit-linear-gradient(-245deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),linear-gradient(-25deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%)}.jp-card.jp-card-ie-10.jp-card-flipped,.jp-card.jp-card-ie-11.jp-card-flipped{-webkit-transform:0deg;-moz-transform:0deg;-ms-transform:0deg;-o-transform:0deg;transform:0deg}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-front,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-front{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);-ms-transform:rotateY(0deg);-o-transform:rotateY(0deg);transform:rotateY(0deg)}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);-ms-transform:rotateY(0deg);-o-transform:rotateY(0deg);transform:rotateY(0deg)}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back:after,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back:after{left:18%}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back .jp-card-cvc,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back .jp-card-cvc{-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg);left:5%}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back .jp-card-shiny,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back .jp-card-shiny{left:84%}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back .jp-card-shiny:after,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back .jp-card-shiny:after{left:-480%;-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg)}.jp-card.jp-card-ie-10.jp-card-amex .jp-card-back,.jp-card.jp-card-ie-11.jp-card-amex .jp-card-back{display:none}.jp-card-logo{height:36px;width:60px;font-style:italic}.jp-card-logo,.jp-card-logo:before,.jp-card-logo:after{box-sizing:border-box}.jp-card-logo.jp-card-amex{text-transform:uppercase;font-size:4px;font-weight:bold;color:white;background-image:repeating-radial-gradient(circle at center, #fff 1px, #999 2px);background-image:repeating-radial-gradient(circle at center, #fff 1px, #999 2px);border:1px solid #EEE}.jp-card-logo.jp-card-amex:before,.jp-card-logo.jp-card-amex:after{width:28px;display:block;position:absolute;left:16px}.jp-card-logo.jp-card-amex:before{height:28px;content:"american";top:3px;text-align:left;padding-left:2px;padding-top:11px;background:#267AC3}.jp-card-logo.jp-card-amex:after{content:"express";bottom:11px;text-align:right;padding-right:2px}.jp-card.jp-card-amex.jp-card-flipped{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.jp-card.jp-card-amex.jp-card-identified .jp-card-front:before,.jp-card.jp-card-amex.jp-card-identified .jp-card-back:before{background-color:#108168}.jp-card.jp-card-amex.jp-card-identified .jp-card-front .jp-card-logo.jp-card-amex{opacity:1}.jp-card.jp-card-amex.jp-card-identified .jp-card-front .jp-card-cvc{visibility:visible}.jp-card.jp-card-amex.jp-card-identified .jp-card-front:after{opacity:1}.jp-card-logo.jp-card-discover{background:#f60;color:#111;text-transform:uppercase;font-style:normal;font-weight:bold;font-size:10px;text-align:center;overflow:hidden;z-index:1;padding-top:9px;letter-spacing:.03em;border:1px solid #EEE}.jp-card-logo.jp-card-discover:before,.jp-card-logo.jp-card-discover:after{content:" ";display:block;position:absolute}.jp-card-logo.jp-card-discover:before{background:white;width:200px;height:200px;border-radius:200px;bottom:-5%;right:-80%;z-index:-1}.jp-card-logo.jp-card-discover:after{width:8px;height:8px;border-radius:4px;top:10px;left:27px;background-color:#f60;background-image:-webkit-radial-gradient(#f60,#fff);background-image:radial-gradient(  #f60,#fff);content:"network";font-size:4px;line-height:24px;text-indent:-7px}.jp-card .jp-card-front .jp-card-logo.jp-card-discover{right:12%;top:18%}.jp-card.jp-card-discover.jp-card-identified .jp-card-front:before,.jp-card.jp-card-discover.jp-card-identified .jp-card-back:before{background-color:#86B8CF}.jp-card.jp-card-discover.jp-card-identified .jp-card-logo.jp-card-discover{opacity:1}.jp-card.jp-card-discover.jp-card-identified .jp-card-front:after{-webkit-transition:400ms;-moz-transition:400ms;transition:400ms;content:" ";display:block;background-color:#f60;background-image:-webkit-linear-gradient(#f60,#ffa366,#f60);background-image:linear-gradient(#f60,#ffa366,#f60);height:50px;width:50px;border-radius:25px;position:absolute;left:100%;top:15%;margin-left:-25px;box-shadow:inset 1px 1px 3px 1px rgba(0,0,0,0.5)}.jp-card-logo.jp-card-unionpay{width:60px;display:block;height:40px;background:#e21836;-webkit-transform:skew(-15deg);-moz-transform:skew(20deg);-o-transform:skew(20deg);border-radius:5px;font-size:10px;z-index:1;line-height:33px;color:#fff;text-align:center;font-family:"Sans-serif", "Microsoft Yahei", "\\5FAE\\8F6F\\96C5\\9ED1", "Hiragino Sans", "Gulim", "\\5B8B\\4F53";font-weight:bold}.jp-card-logo.jp-card-unionpay:after,.jp-card-logo.jp-card-unionpay:before{display:block;margin:0 auto;position:absolute;height:40px;top:0;z-index:-1}.jp-card-logo.jp-card-unionpay:before{content:" ";width:28px;background:#00447c;left:14px;border-top-left-radius:5px;border-bottom-left-radius:5px}.jp-card-logo.jp-card-unionpay:after{content:"\\94F6\\8054";width:26px;background:#007b84;left:34px;border-radius:5px;font-size:10px;line-height:54px;text-indent:-17px}.jp-card.jp-card-unionpay.jp-card-identified .jp-card-back:before,.jp-card.jp-card-unionpay.jp-card-identified .jp-card-front:before{background-color:#987c00}.jp-card.jp-card-unionpay.jp-card-identified .jp-card-logo.jp-card-unionpay{opacity:1}.jp-card-logo.jp-card-visa{text-transform:uppercase;color:white;text-align:center;font-weight:bold;font-size:24px;line-height:18px;margin-top:5px}.jp-card-logo.jp-card-visa:before,.jp-card-logo.jp-card-visa:after{content:" ";display:block;width:100%;height:25%}.jp-card-logo.jp-card-visa:before{position:absolute;left:-4px;width:0;height:0;border-style:solid;border-width:0 12px 6px 0;border-color:transparent #ffffff transparent transparent}.jp-card.jp-card-visa.jp-card-identified .jp-card-front:before,.jp-card.jp-card-visa.jp-card-identified .jp-card-back:before{background-color:#191278}.jp-card.jp-card-visa.jp-card-identified .jp-card-logo.jp-card-visa{opacity:1;box-shadow:none}.jp-card-logo.jp-card-visaelectron{background:white;text-transform:uppercase;color:#1A1876;text-align:center;font-weight:bold;font-size:15px;line-height:18px}.jp-card-logo.jp-card-visaelectron:before,.jp-card-logo.jp-card-visaelectron:after{content:" ";display:block;width:100%;height:25%}.jp-card-logo.jp-card-visaelectron:before{background:#1A1876}.jp-card-logo.jp-card-visaelectron:after{background:#E79800}.jp-card-logo.jp-card-visaelectron .elec{float:right;font-family:arial;font-size:9px;margin-right:1px;margin-top:-5px;text-transform:none}.jp-card.jp-card-visaelectron.jp-card-identified .jp-card-front:before,.jp-card.jp-card-visaelectron.jp-card-identified .jp-card-back:before{background-color:#191278}.jp-card.jp-card-visaelectron.jp-card-identified .jp-card-logo.jp-card-visaelectron{opacity:1}.jp-card-logo.jp-card-mastercard{color:white;font-style:normal;text-transform:lowercase;font-weight:bold;text-align:center;font-size:9px;line-height:84px;z-index:1;text-shadow:1px 1px rgba(0,0,0,0.6)}.jp-card-logo.jp-card-mastercard:before,.jp-card-logo.jp-card-mastercard:after{content:" ";display:block;width:36px;top:0;position:absolute;height:36px;border-radius:18px}.jp-card-logo.jp-card-mastercard:before{left:0;background:#EB001B;z-index:-1;opacity:0.9}.jp-card-logo.jp-card-mastercard:after{right:0;background:#FF5F00;z-index:-2}.jp-card.jp-card-mastercard.jp-card-identified .jp-card-front .jp-card-logo.jp-card-mastercard,.jp-card.jp-card-mastercard.jp-card-identified .jp-card-back .jp-card-logo.jp-card-mastercard{box-shadow:none}.jp-card.jp-card-mastercard.jp-card-identified .jp-card-front:before,.jp-card.jp-card-mastercard.jp-card-identified .jp-card-back:before{background-color:#0061A8}.jp-card.jp-card-mastercard.jp-card-identified .jp-card-logo.jp-card-mastercard{opacity:1}.jp-card-logo.jp-card-maestro{color:white;font-style:normal;text-transform:lowercase;font-weight:bold;text-align:center;font-size:14px;line-height:84px;z-index:1;text-shadow:1px 1px rgba(0,0,0,0.6)}.jp-card-logo.jp-card-maestro:before,.jp-card-logo.jp-card-maestro:after{content:" ";display:block;width:36px;top:0;position:absolute;height:36px;border-radius:18px}.jp-card-logo.jp-card-maestro:before{left:0;background:#EB001B;z-index:-2}.jp-card-logo.jp-card-maestro:after{right:0;background:#00A2E5;z-index:-1;opacity:0.8}.jp-card.jp-card-maestro.jp-card-identified .jp-card-front .jp-card-logo.jp-card-maestro,.jp-card.jp-card-maestro.jp-card-identified .jp-card-back .jp-card-logo.jp-card-maestro{box-shadow:none}.jp-card.jp-card-maestro.jp-card-identified .jp-card-front:before,.jp-card.jp-card-maestro.jp-card-identified .jp-card-back:before{background-color:#0B2C5F}.jp-card.jp-card-maestro.jp-card-identified .jp-card-logo.jp-card-maestro{opacity:1}.jp-card-logo.jp-card-dankort{width:60px;height:36px;padding:3px;border-radius:8px;border:#000 1px solid;background-color:#fff}.jp-card-logo.jp-card-dankort .dk{position:relative;width:100%;height:100%;overflow:hidden}.jp-card-logo.jp-card-dankort .dk:before{background-color:#ED1C24;content:\'\';position:absolute;width:100%;height:100%;display:block;border-radius:6px}.jp-card-logo.jp-card-dankort .dk:after{content:\'\';position:absolute;top:50%;margin-top:-7.7px;right:0;width:0;height:0;border-style:solid;border-width:7px 7px 10px 0;border-color:transparent #ED1C24 transparent transparent;z-index:1}.jp-card-logo.jp-card-dankort .d,.jp-card-logo.jp-card-dankort .k{position:absolute;top:50%;width:50%;display:block;height:15.4px;margin-top:-7.7px;background:white}.jp-card-logo.jp-card-dankort .d{left:0;border-radius:0 8px 10px 0}.jp-card-logo.jp-card-dankort .d:before{content:\'\';position:absolute;top:50%;left:50%;display:block;background:#ED1C24;border-radius:2px 4px 6px 0px;height:5px;width:7px;margin:-3px 0 0 -4px}.jp-card-logo.jp-card-dankort .k{right:0}.jp-card-logo.jp-card-dankort .k:before,.jp-card-logo.jp-card-dankort .k:after{content:\'\';position:absolute;right:50%;width:0;height:0;border-style:solid;margin-right:-1px}.jp-card-logo.jp-card-dankort .k:before{top:0;border-width:8px 5px 0 0;border-color:#ED1C24 transparent transparent transparent}.jp-card-logo.jp-card-dankort .k:after{bottom:0;border-width:0 5px 8px 0;border-color:transparent transparent #ED1C24 transparent}.jp-card.jp-card-dankort.jp-card-identified .jp-card-front:before,.jp-card.jp-card-dankort.jp-card-identified .jp-card-back:before{background-color:#0055C7}.jp-card.jp-card-dankort.jp-card-identified .jp-card-logo.jp-card-dankort{opacity:1}.jp-card-logo.jp-card-elo{height:50px;width:50px;border-radius:100%;background:black;color:white;text-align:center;text-transform:lowercase;font-size:21px;font-style:normal;letter-spacing:1px;font-weight:bold;padding-top:13px}.jp-card-logo.jp-card-elo .e,.jp-card-logo.jp-card-elo .l,.jp-card-logo.jp-card-elo .o{display:inline-block;position:relative}.jp-card-logo.jp-card-elo .e{-webkit-transform:rotate(-15deg);-moz-transform:rotate(-15deg);-ms-transform:rotate(-15deg);-o-transform:rotate(-15deg);transform:rotate(-15deg)}.jp-card-logo.jp-card-elo .o{position:relative;display:inline-block;width:12px;height:12px;right:0;top:7px;border-radius:100%;background-image:-webkit-linear-gradient( #ff0 50%,red 50%);background-image:linear-gradient( #ff0 50%,red 50%);-webkit-transform:rotate(40deg);-moz-transform:rotate(40deg);-ms-transform:rotate(40deg);-o-transform:rotate(40deg);transform:rotate(40deg);text-indent:-9999px}.jp-card-logo.jp-card-elo .o:before{content:"";position:absolute;width:49%;height:49%;background:black;border-radius:100%;text-indent:-99999px;top:25%;left:25%}.jp-card.jp-card-elo.jp-card-identified .jp-card-front:before,.jp-card.jp-card-elo.jp-card-identified .jp-card-back:before{background-color:#6F6969}.jp-card.jp-card-elo.jp-card-identified .jp-card-logo.jp-card-elo{opacity:1}.jp-card-logo.jp-card-jcb{border-radius:5px 0px 5px 0px;-moz-border-radius:5px 0px 5px 0px;-webkit-border-radius:5px 0px 5px 0px;background-color:white;font-style:normal;color:white;width:50px;padding:2px 0 0 2px}.jp-card-logo.jp-card-jcb>div{width:15px;margin-right:1px;display:inline-block;text-align:center;text-shadow:1px 1px rgba(0,0,0,0.6);border-radius:5px 0px 5px 0px;-moz-border-radius:5px 0px 5px 0px;-webkit-border-radius:5px 0px 5px 0px}.jp-card-logo.jp-card-jcb>div:before,.jp-card-logo.jp-card-jcb>div:after{content:" ";display:block;height:8px}.jp-card-logo.jp-card-jcb>div.j{background-color:#000063;background-image:-webkit-linear-gradient(left, #000063,#008cff);background-image:linear-gradient(to right,#000063,#008cff)}.jp-card-logo.jp-card-jcb>div.c{background-color:#630000;background-image:-webkit-linear-gradient(left, #630000,#ff008d);background-image:linear-gradient(to right,#630000,#ff008d)}.jp-card-logo.jp-card-jcb>div.b{background-color:#006300;background-image:-webkit-linear-gradient(left, #006300,lime);background-image:linear-gradient(to right,#006300,lime)}.jp-card.jp-card-jcb.jp-card-identified .jp-card-front:before,.jp-card.jp-card-jcb.jp-card-identified .jp-card-back:before{background-color:#CB8000}.jp-card.jp-card-jcb.jp-card-identified .jp-card-logo.jp-card-jcb{opacity:1;box-shadow:none}.jp-card-logo.jp-card-dinersclub{font-family:serif;height:40px;width:100px;color:white;font-size:17px;font-style:normal;letter-spacing:1px}.jp-card-logo.jp-card-dinersclub::before,.jp-card-logo.jp-card-dinersclub::after{display:block;position:relative}.jp-card-logo.jp-card-dinersclub::before{content:\'Diners Club\'}.jp-card-logo.jp-card-dinersclub::after{content:\'International\';text-transform:uppercase;font-size:0.6em}.jp-card.jp-card-dinersclub .jp-card-front .jp-card-logo{box-shadow:none !important}.jp-card.jp-card-dinersclub.jp-card-identified .jp-card-front:before,.jp-card.jp-card-dinersclub.jp-card-identified .jp-card-back:before{background-color:#999}.jp-card.jp-card-dinersclub.jp-card-identified .jp-card-logo.jp-card-dinersclub{opacity:1}.jp-card-logo.jp-card-hipercard{height:20px;width:100px;color:white;font-size:21px;font-style:italic;font-weight:bold}.jp-card-logo.jp-card-hipercard::before,.jp-card-logo.jp-card-hipercard::after{display:block;position:relative}.jp-card.jp-card-hipercard.jp-card-identified .jp-card-front:before,.jp-card.jp-card-hipercard.jp-card-identified .jp-card-back:before{background-color:#770304}.jp-card.jp-card-hipercard.jp-card-identified .jp-card-logo.jp-card-hipercard{opacity:1;box-shadow:none}.jp-card-logo.jp-card-troy{text-transform:lowercase;color:#fff;text-align:center;font-weight:700;font-size:24px;line-height:18px;margin-top:5px}.jp-card-logo.jp-card-troy:before,.jp-card-logo.jp-card-troy:after{content:\\"\\";display:block;width:26%;height:6%;background:#22b8c3;right:32%;top:24%;position:absolute;transform:rotate(105deg)}.jp-card.jp-card-troy.jp-card-identified .jp-card-front:before,.jp-card.jp-card-troy.jp-card-identified .jp-card-back:before{background-color:#01adba}.jp-card.jp-card-troy.jp-card-identified .jp-card-logo.jp-card-troy{opacity:1;box-shadow:none}.jp-card-container{-webkit-perspective:1000px;-moz-perspective:1000px;perspective:1000px;width:350px;max-width:100%;height:200px;margin:auto;z-index:1;position:relative}.jp-card{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1;position:relative;width:100%;height:100%;min-width:315px;border-radius:10px;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:all 400ms linear;-moz-transition:all 400ms linear;transition:all 400ms linear}.jp-card>*,.jp-card>*:after,.jp-card>*:before{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:inherit}.jp-card.jp-card-flipped{-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg)}.jp-card .jp-card-back,.jp-card .jp-card-front{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:all 400ms linear;-moz-transition:all 400ms linear;transition:all 400ms linear;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;border-radius:10px;background:#ddd}.jp-card .jp-card-back:before,.jp-card .jp-card-front:before{content:" ";display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0;border-radius:10px;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;transition:all 400ms ease}.jp-card .jp-card-back:after,.jp-card .jp-card-front:after{content:" ";display:block}.jp-card .jp-card-back .jp-card-display,.jp-card .jp-card-front .jp-card-display{color:#fff;font-weight:normal;opacity:0.5;-webkit-transition:opacity 400ms linear;-moz-transition:opacity 400ms linear;transition:opacity 400ms linear}.jp-card .jp-card-back .jp-card-display.jp-card-focused,.jp-card .jp-card-front .jp-card-display.jp-card-focused{opacity:1;font-weight:700}.jp-card .jp-card-back .jp-card-cvc,.jp-card .jp-card-front .jp-card-cvc{font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;font-size:14px}.jp-card .jp-card-back .jp-card-shiny,.jp-card .jp-card-front .jp-card-shiny{width:50px;height:35px;border-radius:5px;background:#ccc;position:relative}.jp-card .jp-card-back .jp-card-shiny:before,.jp-card .jp-card-front .jp-card-shiny:before{content:" ";display:block;width:70%;height:60%;border-top-right-radius:5px;border-bottom-right-radius:5px;background:#d9d9d9;position:absolute;top:20%}.jp-card .jp-card-front .jp-card-logo{position:absolute;opacity:0;right:5%;top:8%;-webkit-transition:400ms;-moz-transition:400ms;transition:400ms}.jp-card .jp-card-front .jp-card-lower{width:80%;position:absolute;left:10%;bottom:30px}@media only screen and (max-width: 480px){.jp-card .jp-card-front .jp-card-lower{width:90%;left:5%}}.jp-card .jp-card-front .jp-card-lower .jp-card-cvc{visibility:hidden;float:right;position:relative;bottom:5px}.jp-card .jp-card-front .jp-card-lower .jp-card-number{font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;font-size:24px;clear:both;margin-bottom:30px}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry{font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;letter-spacing:0;position:relative;float:right;width:25%}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:after,.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:before{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold;font-size:7px;white-space:pre;display:block;opacity:0.5}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:before{content:attr(data-before);margin-bottom:2px;font-size:7px;text-transform:uppercase}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:after{position:absolute;content:attr(data-after);text-align:right;right:100%;margin-right:5px;margin-top:2px;bottom:0}.jp-card .jp-card-front .jp-card-lower .jp-card-name{text-transform:uppercase;font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;font-size:20px;max-height:45px;position:absolute;bottom:0;width:190px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:horizontal;overflow:hidden;text-overflow:ellipsis}.jp-card .jp-card-back{-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg)}.jp-card .jp-card-back .jp-card-bar{background-color:#444;background-image:-webkit-linear-gradient(#444,#333);background-image:linear-gradient(#444,#333);width:100%;height:20%;position:absolute;top:10%}.jp-card .jp-card-back:after{content:" ";display:block;background-color:#fff;background-image:-webkit-linear-gradient(#fff,#fff);background-image:linear-gradient(#fff,#fff);width:80%;height:16%;position:absolute;top:40%;left:2%}.jp-card .jp-card-back .jp-card-cvc{position:absolute;top:40%;left:85%;-webkit-transition-delay:600ms;-moz-transition-delay:600ms;transition-delay:600ms}.jp-card .jp-card-back .jp-card-shiny{position:absolute;top:66%;left:2%}.jp-card .jp-card-back .jp-card-shiny:after{content:"This card has been issued by Jesse Pollak and is licensed for anyone to use anywhere for free. It comes with no warranty. For support issues, please visit: github.com/jessepollak/card.";position:absolute;left:120%;top:5%;color:white;font-size:7px;width:230px;opacity:0.5}.jp-card.jp-card-identified{box-shadow:0 0 20px rgba(0,0,0,0.3)}.jp-card.jp-card-identified .jp-card-back,.jp-card.jp-card-identified .jp-card-front{background-color:#000;background-color:rgba(0,0,0,0.5)}.jp-card.jp-card-identified .jp-card-back:before,.jp-card.jp-card-identified .jp-card-front:before{-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;transition:all 400ms ease;background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 70% 70%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 90% 20%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 15% 80%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),-webkit-linear-gradient(-245deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 70% 70%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 90% 20%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 15% 80%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),linear-gradient(-25deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);opacity:1}.jp-card.jp-card-identified .jp-card-back .jp-card-logo,.jp-card.jp-card-identified .jp-card-front .jp-card-logo{box-shadow:0 0 0 2px rgba(255,255,255,0.3)}.jp-card.jp-card-identified.no-radial-gradient .jp-card-back:before,.jp-card.jp-card-identified.no-radial-gradient .jp-card-front:before{background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),-webkit-linear-gradient(-245deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),linear-gradient(-25deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%)}@media (max-width: 450px){.card-wrapper{max-width:80vw;width:100%;margin:20px auto;overflow-x:hidden}.card-wrapper>.jp-card-container{transform:scale(0.625);transform-origin:left center}}\n',""])},function(n){n.exports=function(){var n=[];return n.toString=function(){for(var n,t=[],i=0;i<this.length;i++)n=this[i],n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1]);return t.join("")},n.i=function(t,i){var f,r,e,u;for("string"==typeof t&&(t=[[null,t,""]]),f={},r=0;r<this.length;r++)e=this[r][0],"number"==typeof e&&(f[e]=!0);for(r=0;r<t.length;r++)u=t[r],"number"==typeof u[0]&&f[u[0]]||(i&&!u[2]?u[2]=i:i&&(u[2]="("+u[2]+") and ("+i+")"),n.push(u))},n}},function(n){function e(n,t){for(var u,f,r,o,e=0;e<n.length;e++)if(u=n[e],f=i[u.id],f){for(f.refs++,r=0;r<f.parts.length;r++)f.parts[r](u.parts[r]);for(;r<u.parts.length;r++)f.parts.push(l(u.parts[r],t))}else{for(o=[],r=0;r<u.parts.length;r++)o.push(l(u.parts[r],t));i[u.id]={id:u.id,refs:1,parts:o}}}function o(n){for(var f=[],r={},u=0;u<n.length;u++){var t=n[u],i=t[0],e={css:t[1],media:t[2],sourceMap:t[3]};r[i]?r[i].parts.push(e):f.push(r[i]={id:i,parts:[e]})}return f}function s(n,i){var r=p(),u=t[t.length-1];if("top"===n.insertAt)u?u.nextSibling?r.insertBefore(i,u.nextSibling):r.appendChild(i):r.insertBefore(i,r.firstChild),t.push(i);else{if("bottom"!==n.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(i)}}function h(n){n.parentNode.removeChild(n);var i=t.indexOf(n);i>=0&&t.splice(i,1)}function c(n){var t=document.createElement("style");return t.type="text/css",s(n,t),t}function l(n,t){var i,r,u,e;return t.singleton?(e=w++,i=f||(f=c(t)),r=v.bind(null,i,e,!1),u=v.bind(null,i,e,!0)):n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(n){var t=document.createElement("link");return t.rel="stylesheet",s(n,t),t}(t),r=k.bind(null,i),u=function(){h(i);i.href&&URL.revokeObjectURL(i.href)}):(i=c(t),r=b.bind(null,i),u=function(){h(i)}),r(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;r(n=t)}else u()}}function v(n,t,i,r){var e=i?"":r.css,f,u;n.styleSheet?n.styleSheet.cssText=a(t,e):(f=document.createTextNode(e),u=n.childNodes,u[t]&&n.removeChild(u[t]),u.length?n.insertBefore(f,u[t]):n.appendChild(f))}function b(n,t){var i=t.css,r=t.media;if(r&&n.setAttribute("media",r),n.styleSheet)n.styleSheet.cssText=i;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(i))}}function k(n,t){var r=t.css,u=t.sourceMap,f,i;u&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(u))))+" */");f=new Blob([r],{type:"text/css"});i=n.href;n.href=URL.createObjectURL(f);i&&URL.revokeObjectURL(i)}var i={},u=function(n){var t;return function(){return void 0===t&&(t=n.apply(this,arguments)),t}},y=u(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),p=u(function(){return document.head||document.getElementsByTagName("head")[0]}),f=null,w=0,t=[],r,a;n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(t=t||{}).singleton&&(t.singleton=y());void 0===t.insertAt&&(t.insertAt="bottom");var r=o(n);return e(r,t),function(n){for(var c,f,h,s=[],u=0;u<r.length;u++)c=r[u],(f=i[c.id]).refs--,s.push(f);for(n&&e(o(n),t),u=0;u<s.length;u++)if(0===(f=s[u]).refs){for(h=0;h<f.parts.length;h++)f.parts[h]();delete i[f.id]}}};a=(r=[],function(n,t){return r[n]=t,r.filter(Boolean).join("\n")})},function(n,t,i){(function(t){(function(){var s,r,o,c,u,f,v,y,p,w,b,k,d,e,g,l,nt,tt,it,h,rt,ut,ft,et,a=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1};r=i(1);u=[{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[4],luhn:!0},{type:"dankort",pattern:/^5019/,format:f=/(\d{1,4})/g,length:[16],cvcLength:[3],luhn:!0},{type:"dinersclub",pattern:/^(36|38|30[0-5])/,format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"elo",pattern:/^401178|^401179|^431274|^438935|^451416|^457393|^457631|^457632|^504175|^627780|^636297|^636369|^636368|^(506699|5067[0-6]\d|50677[0-8])|^(50900\d|5090[1-9]\d|509[1-9]\d{2})|^65003[1-3]|^(65003[5-9]|65004\d|65005[0-1])|^(65040[5-9]|6504[1-3]\d)|^(65048[5-9]|65049\d|6505[0-2]\d|65053[0-8])|^(65054[1-9]|6505[5-8]\d|65059[0-8])|^(65070\d|65071[0-8])|^65072[0-7]|^(65090[1-9]|65091\d|650920)|^(65165[2-9]|6516[6-7]\d)|^(65500\d|65501\d)|^(65502[1-9]|6550[3-4]\d|65505[0-8])|^(65092[1-9]|65097[0-8])/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"hipercard",pattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,format:f,length:[14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"jcb",pattern:/^(308[8-9]|309[0-3]|3094[0]{4}|309[6-9]|310[0-2]|311[2-9]|3120|315[8-9]|333[7-9]|334[0-9]|352[8-9]|35[3-8][0-9])/,format:f,length:[16,19],cvcLength:[3],luhn:!0},{type:"laser",pattern:/^(6706|6771|6709)/,format:f,length:[16,17,18,19],cvcLength:[3],luhn:!0},{type:"maestro",pattern:/^(5018|5020|5038|5078|5[6-9]|6304|6703|6708|6759|676[1-3])/,format:f,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"mir",pattern:/^220[0-4][0-9][0-9]\d{10}$/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"troy",pattern:/^9792/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^62/,format:f,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"visaelectron",pattern:/^4(026|17500|405|508|844|91[37])/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"visa",pattern:/^4/,format:f,length:[13,16,19],cvcLength:[3],luhn:!0}];o=function(n){var r,t,i,e,f;for(n=(n+"").replace(/\D/g,""),t=void 0,i=0,e=u.length;i<e;i++)r=u[i],(f=n.match(r.pattern))&&(!t||f[0].length>t[1][0].length)&&(t=[r,f]);return t&&t[0]};c=function(n){for(var i,t=0,r=u.length;t<r;t++)if((i=u[t]).type===n)return i};g=function(n){var t,f,i,e,r,u;for(r=!0,u=0,i=0,e=(f=(n+"").split("").reverse()).length;i<e;i++)t=f[i],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),u+=t;return u%10==0};e=function(n){var i,t;try{if(null!=n.selectionStart&&n.selectionStart!==n.selectionEnd||null!=("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)&&document.selection.createRange().text)return!0}catch(i){i}return!1};l=function(n){return setTimeout(function(){var t,i;return t=n.target,i=r.val(t),i=s.fns.formatCardNumber(i),r.val(t,i),r.trigger(t,"change")})};p=function(n){return function(t){var u,f,c,l,v,a,s,y,i,h;if(f=String.fromCharCode(t.which),/^\d+$/.test(f)){for(s=t.target,h=r.val(s),u=o(h+f),a=(h.replace(/\D/g,"")+f).length,i=[16],u&&(i=u.length),n&&(i=i.filter(function(t){return t<=n})),c=l=0,v=i.length;l<v;c=++l)if(!(a>=(y=i[c])&&i[c+1])&&a>=y)return;if(!e(s))return(u&&"amex"===u.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(h)?(t.preventDefault(),r.val(s,h+" "+f),r.trigger(s,"change")):void 0}}};v=function(n){var t,i;if(t=n.target,i=r.val(t),!n.meta&&8===n.which&&!e(t))return/\d\s$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\d\s$/,"")),r.trigger(t,"change")):/\s\d?$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\s\d?$/,"")),r.trigger(t,"change")):void 0};w=function(n){var u,i,t;if(u=String.fromCharCode(n.which),/^\d+$/.test(u))return i=n.target,t=r.val(i)+u,/^\d$/.test(t)&&"0"!==t&&"1"!==t?(n.preventDefault(),r.val(i,"0"+t+" / "),r.trigger(i,"change")):/^\d\d$/.test(t)?(n.preventDefault(),r.val(i,t+" / "),r.trigger(i,"change")):void 0};d=function(n){var u,i,t;if(u=String.fromCharCode(n.which),/^\d+$/.test(u))return i=n.target,t=r.val(i)+u,/^\d$/.test(t)&&"0"!==t&&"1"!==t?(n.preventDefault(),r.val(i,"0"+t),r.trigger(i,"change")):/^\d\d$/.test(t)?(n.preventDefault(),r.val(i,""+t),r.trigger(i,"change")):void 0};b=function(n){var u,t,i;if(u=String.fromCharCode(n.which),/^\d+$/.test(u))return t=n.target,i=r.val(t),/^\d\d$/.test(i)?(r.val(t,i+" / "),r.trigger(t,"change")):void 0};k=function(n){var t,i;if("/"===String.fromCharCode(n.which))return t=n.target,i=r.val(t),/^\d$/.test(i)&&"0"!==i?(r.val(t,"0"+i+" / "),r.trigger(t,"change")):void 0};y=function(n){var t,i;if(!n.metaKey&&(t=n.target,i=r.val(t),8===n.which&&!e(t)))return/\d(\s|\/)+$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\d(\s|\/)*$/,"")),r.trigger(t,"change")):/\s\/\s?\d?$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\s\/\s?\d?$/,"")),r.trigger(t,"change")):void 0};ut=function(n){var t;return!(!n.metaKey&&!n.ctrlKey)||(32===n.which?n.preventDefault():0===n.which||n.which<33||(t=String.fromCharCode(n.which),/[\d\s]/.test(t)?void 0:n.preventDefault()))};tt=function(n){return function(t){var u,f,i,s,h;if(s=t.target,f=String.fromCharCode(t.which),/^\d+$/.test(f)&&!e(s))return h=(r.val(s)+f).replace(/\D/g,""),i=16,(u=o(h))&&(i=u.length[u.length.length-1]),n&&(i=Math.min(i,n)),h.length<=i?void 0:t.preventDefault()}};h=function(n,t){var i,u;if(u=n.target,i=String.fromCharCode(n.which),/^\d+$/.test(i)&&!e(u))return(r.val(u)+i).replace(/\D/g,"").length>t?n.preventDefault():void 0};it=function(n){return h(n,6)};rt=function(n){return h(n,2)};ft=function(n){return h(n,4)};nt=function(n){var t,i;if(i=n.target,t=String.fromCharCode(n.which),/^\d+$/.test(t)&&!e(i))return(r.val(i)+t).length<=4?void 0:n.preventDefault()};et=function(n){var f,e,i,t,o;if(t=n.target,o=r.val(t),i=s.fns.cardType(o)||"unknown",!r.hasClass(t,i))return f=function(){var n,i,t;for(t=[],n=0,i=u.length;n<i;n++)e=u[n],t.push(e.type);return t}(),r.removeClass(t,"unknown"),r.removeClass(t,f.join(" ")),r.addClass(t,i),r.toggleClass(t,"identified","unknown"!==i),r.trigger(t,"payment.cardType",i)};s=function(){function n(){}return n.fns={cardExpiryVal:function(n){var i,r,t;return i=(r=(n=n.replace(/\s/g,"")).split("/",2))[0],2===(null!=(t=r[1])?t.length:void 0)&&/^\d+$/.test(t)&&(t=(new Date).getFullYear().toString().slice(0,2)+t),{month:i=parseInt(i,10),year:t=parseInt(t,10)}},validateCardNumber:function(n){var t,i;return n=(n+"").replace(/\s+|-/g,""),!!/^\d+$/.test(n)&&!!(t=o(n))&&(i=n.length,a.call(t.length,i)>=0&&(!1===t.luhn||g(n)))},validateCardExpiry:function(t,i){var f,u,e,o;return"object"==typeof t&&"month"in t?(t=(e=t).month,i=e.year):"string"==typeof t&&a.call(t,"/")>=0&&(t=(o=n.fns.cardExpiryVal(t)).month,i=o.year),!(!t||!i)&&(t=r.trim(t),i=r.trim(i),!!/^\d+$/.test(t)&&!!/^\d+$/.test(i)&&!!((t=parseInt(t,10))&&t<=12)&&(2===i.length&&(i=(new Date).getFullYear().toString().slice(0,2)+i),u=new Date(i,t),f=new Date,u.setMonth(u.getMonth()-1),u.setMonth(u.getMonth()+1,1),u>f))},validateCardCVC:function(n,t){var i,u;return n=r.trim(n),!!/^\d+$/.test(n)&&(t&&c(t)?(i=n.length,a.call(null!=(u=c(t))?u.cvcLength:void 0,i)>=0):n.length>=3&&n.length<=4)},cardType:function(n){var t;return n&&(null!=(t=o(n))?t.type:void 0)||null},formatCardNumber:function(n){var t,i,r,u;return(t=o(n))?(u=t.length[t.length.length-1],n=(n=n.replace(/\D/g,"")).slice(0,u),t.format.global?null!=(r=n.match(t.format))?r.join(" "):void 0:null!=(i=t.format.exec(n))?(i.shift(),(i=i.filter(function(n){return n})).join(" ")):void 0):n}},n.restrictNumeric=function(n){return r.on(n,"keypress",ut)},n.cardExpiryVal=function(t){return n.fns.cardExpiryVal(r.val(t))},n.formatCardCVC=function(t){return n.restrictNumeric(t),r.on(t,"keypress",nt),t},n.formatCardExpiry=function(t){var i,u;return n.restrictNumeric(t),t.length&&2===t.length?(i=t[0],u=t[1],this.formatCardExpiryMultiple(i,u)):(r.on(t,"keypress",it),r.on(t,"keypress",w),r.on(t,"keypress",k),r.on(t,"keypress",b),r.on(t,"keydown",y)),t},n.formatCardExpiryMultiple=function(n,t){return r.on(n,"keypress",rt),r.on(n,"keypress",d),r.on(t,"keypress",ft)},n.formatCardNumber=function(t,i){return n.restrictNumeric(t),r.on(t,"keypress",tt(i)),r.on(t,"keypress",p(i)),r.on(t,"keydown",v),r.on(t,"keyup blur",et),r.on(t,"paste",l),r.on(t,"input",l),t},n.getCardArray=function(){return u},n.setCardArray=function(n){return u=n,!0},n.addToCardArray=function(n){return u.push(n)},n.removeFromCardArray=function(n){for(var t in u)u[t].type===n&&u.splice(t,1);return!0},n}();n.exports=s;t.Payment=s}).call(this)}).call(this,i(0))},function(n,t,i){"use strict";n.exports=i(10)},function(n,t,i){"use strict";function u(){var f,e,t,i,c,l,n=arguments[0]||{},h=1,v=arguments.length,a=!1;for("boolean"==typeof n&&(a=n,n=arguments[1]||{},h=2),"object"==typeof n||r.fn(n)||(n={});h<v;h++)if(null!=(f=arguments[h]))for(e in"string"==typeof f&&(f=f.split("")),f)t=s(n,e),n!==(i=s(f,e))&&(a&&i&&(r.hash(i)||(c=r.array(i)))?(c?(c=!1,l=t&&r.array(t)?t:[]):l=t&&r.hash(t)?t:{},o(n,e,u(a,l,i))):void 0!==i&&o(n,e,i));return n}var r=i(11),h=i(12),f=Object.defineProperty,e=Object.getOwnPropertyDescriptor,o=function(n,t,i){f&&"__proto__"===t?f(n,t,{enumerable:!0,configurable:!0,value:i,writable:!0}):n[t]=i},s=function(n,t){if("__proto__"===t){if(!h(n,t))return;if(e)return e(n,t).value}return n[t]};u.version="1.1.7";n.exports=u},function(n){"use strict";var u,f,e=Object.prototype,o=e.hasOwnProperty,r=e.toString;"function"==typeof Symbol&&(u=Symbol.prototype.valueOf);"function"==typeof BigInt&&(f=BigInt.prototype.valueOf);var i=function(n){return n!=n},s={boolean:1,number:1,string:1,undefined:1},h=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/,c=/^[A-Fa-f0-9]+$/,t={};t.a=t.type=function(n,t){return typeof n===t};t.defined=function(n){return void 0!==n};t.empty=function(n){var i,t=r.call(n);if("[object Array]"===t||"[object Arguments]"===t||"[object String]"===t)return 0===n.length;if("[object Object]"===t){for(i in n)if(o.call(n,i))return!1;return!0}return!n};t.equal=function(n,i){if(n===i)return!0;var u,f=r.call(n);if(f!==r.call(i))return!1;if("[object Object]"===f){for(u in n)if(!t.equal(n[u],i[u])||!(u in i))return!1;for(u in i)if(!t.equal(n[u],i[u])||!(u in n))return!1;return!0}if("[object Array]"===f){if((u=n.length)!==i.length)return!1;for(;u--;)if(!t.equal(n[u],i[u]))return!1;return!0}return"[object Function]"===f?n.prototype===i.prototype:"[object Date]"===f&&n.getTime()===i.getTime()};t.hosted=function(n,t){var i=typeof t[n];return"object"===i?!!t[n]:!s[i]};t.instance=t.instanceof=function(n,t){return n instanceof t};t.nil=t.null=function(n){return null===n};t.undef=t.undefined=function(n){return void 0===n};t.args=t.arguments=function(n){var i="[object Arguments]"===r.call(n),u=!t.array(n)&&t.arraylike(n)&&t.object(n)&&t.fn(n.callee);return i||u};t.array=Array.isArray||function(n){return"[object Array]"===r.call(n)};t.args.empty=function(n){return t.args(n)&&0===n.length};t.array.empty=function(n){return t.array(n)&&0===n.length};t.arraylike=function(n){return!!n&&!t.bool(n)&&o.call(n,"length")&&isFinite(n.length)&&t.number(n.length)&&n.length>=0};t.bool=t.boolean=function(n){return"[object Boolean]"===r.call(n)};t.false=function(n){return t.bool(n)&&!1===Boolean(Number(n))};t.true=function(n){return t.bool(n)&&!0===Boolean(Number(n))};t.date=function(n){return"[object Date]"===r.call(n)};t.date.valid=function(n){return t.date(n)&&!isNaN(Number(n))};t.element=function(n){return void 0!==n&&"undefined"!=typeof HTMLElement&&n instanceof HTMLElement&&1===n.nodeType};t.error=function(n){return"[object Error]"===r.call(n)};t.fn=t.function=function(n){if("undefined"!=typeof window&&n===window.alert)return!0;var t=r.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t};t.number=function(n){return"[object Number]"===r.call(n)};t.infinite=function(n){return n===1/0||n===-1/0};t.decimal=function(n){return t.number(n)&&!i(n)&&!t.infinite(n)&&n%1!=0};t.divisibleBy=function(n,r){var u=t.infinite(n),f=t.infinite(r),e=t.number(n)&&!i(n)&&t.number(r)&&!i(r)&&0!==r;return u||f||e&&n%r==0};t.integer=t.int=function(n){return t.number(n)&&!i(n)&&n%1==0};t.maximum=function(n,r){if(i(n))throw new TypeError("NaN is not a valid value");if(!t.arraylike(r))throw new TypeError("second argument must be array-like");for(var u=r.length;--u>=0;)if(n<r[u])return!1;return!0};t.minimum=function(n,r){if(i(n))throw new TypeError("NaN is not a valid value");if(!t.arraylike(r))throw new TypeError("second argument must be array-like");for(var u=r.length;--u>=0;)if(n>r[u])return!1;return!0};t.nan=function(n){return!t.number(n)||n!=n};t.even=function(n){return t.infinite(n)||t.number(n)&&n==n&&n%2==0};t.odd=function(n){return t.infinite(n)||t.number(n)&&n==n&&n%2!=0};t.ge=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n>=r};t.gt=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n>r};t.le=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n<=r};t.lt=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n<r};t.within=function(n,r,u){if(i(n)||i(r)||i(u))throw new TypeError("NaN is not a valid value");if(!t.number(n)||!t.number(r)||!t.number(u))throw new TypeError("all arguments must be numbers");return t.infinite(n)||t.infinite(r)||t.infinite(u)||n>=r&&n<=u};t.object=function(n){return"[object Object]"===r.call(n)};t.primitive=function(n){return!n||!("object"==typeof n||t.object(n)||t.fn(n)||t.array(n))};t.hash=function(n){return t.object(n)&&n.constructor===Object&&!n.nodeType&&!n.setInterval};t.regexp=function(n){return"[object RegExp]"===r.call(n)};t.string=function(n){return"[object String]"===r.call(n)};t.base64=function(n){return t.string(n)&&(!n.length||h.test(n))};t.hex=function(n){return t.string(n)&&(!n.length||c.test(n))};t.symbol=function(n){return"function"==typeof Symbol&&"[object Symbol]"===r.call(n)&&"symbol"==typeof u.call(n)};t.bigint=function(n){return"function"==typeof BigInt&&"[object BigInt]"===r.call(n)&&"bigint"==typeof f.call(n)};n.exports=t},function(n,t,i){"use strict";var r=i(13);n.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(n,t,i){"use strict";var r=i(14);n.exports=Function.prototype.bind||r},function(n){"use strict";var i="Function.prototype.bind called on incompatible ",t=Array.prototype.slice,r=Object.prototype.toString;n.exports=function(n){var u=this,e;if("function"!=typeof u||"[object Function]"!==r.call(u))throw new TypeError(i+u);for(var f,o=t.call(arguments,1),c=function(){if(this instanceof f){var i=u.apply(this,o.concat(t.call(arguments)));return Object(i)===i?i:this}return u.apply(n,o.concat(t.call(arguments)))},l=Math.max(0,u.length-o.length),h=[],s=0;s<l;s++)h.push("$"+s);return(f=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(c),u.prototype)&&(e=function(){},e.prototype=u.prototype,f.prototype=new e,e.prototype=null),f}},function(n){n.exports=jQuery}]);card=function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=2)}([function(n){var t=function(){return this}();try{t=t||new Function("return this")()}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(n){(function(){var t,i,r;(t=function(n){return t.isDOMElement(n)?n:document.querySelectorAll(n)}).isDOMElement=function(n){return n&&null!=n.nodeName};r=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;t.trim=function(n){return null===n?"":(n+"").replace(r,"")};i=/\r/g;t.val=function(n,t){var r;return arguments.length>1?n.value=t:"string"==typeof(r=n.value)?r.replace(i,""):null===r?"":r};t.preventDefault=function(n){if("function"!=typeof n.preventDefault)return n.returnValue=!1,!1;n.preventDefault()};t.normalizeEvent=function(n){var i;return null==(n={which:null!=(i=n).which?i.which:void 0,target:i.target||i.srcElement,preventDefault:function(){return t.preventDefault(i)},originalEvent:i,data:i.data||i.detail}).which&&(n.which=null!=i.charCode?i.charCode:i.keyCode),n};t.on=function(n,i,r){var e,u,f,o,s,h,c,l;if(n.length)for(u=0,o=n.length;u<o;u++)e=n[u],t.on(e,i,r);else{if(!i.match(" "))return c=r,r=function(n){return n=t.normalizeEvent(n),c(n)},n.addEventListener?n.addEventListener(i,r,!1):n.attachEvent?(i="on"+i,n.attachEvent(i,r)):void(n["on"+i]=r);for(f=0,s=(l=i.split(" ")).length;f<s;f++)h=l[f],t.on(n,h,r)}};t.addClass=function(n,i){var r;return n.length?function(){var u,e,f;for(f=[],u=0,e=n.length;u<e;u++)r=n[u],f.push(t.addClass(r,i));return f}():n.classList?n.classList.add(i):n.className+=" "+i};t.hasClass=function(n,i){var f,r,u,e;if(n.length){for(r=!0,u=0,e=n.length;u<e;u++)f=n[u],r=r&&t.hasClass(f,i);return r}return n.classList?n.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(n.className)};t.removeClass=function(n,i){var f,e,r,o,s,u;if(n.length)return function(){var r,f,u;for(u=[],r=0,f=n.length;r<f;r++)e=n[r],u.push(t.removeClass(e,i));return u}();if(n.classList){for(u=[],r=0,o=(s=i.split(" ")).length;r<o;r++)f=s[r],u.push(n.classList.remove(f));return u}return n.className=n.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," ")};t.toggleClass=function(n,i,r){var u;return n.length?function(){var f,o,e;for(e=[],f=0,o=n.length;f<o;f++)u=n[f],e.push(t.toggleClass(u,i,r));return e}():r?t.hasClass(n,i)?void 0:t.addClass(n,i):t.removeClass(n,i)};t.append=function(n,i){var r;return n.length?function(){var u,e,f;for(f=[],u=0,e=n.length;u<e;u++)r=n[u],f.push(t.append(r,i));return f}():n.insertAdjacentHTML("beforeend",i)};t.find=function(n,t){return(n instanceof NodeList||n instanceof Array)&&(n=n[0]),n.querySelectorAll(t)};t.trigger=function(n,t,i){var u,r;try{r=new CustomEvent(t,{detail:i})}catch(u){u;(r=document.createEvent("CustomEvent")).initCustomEvent?r.initCustomEvent(t,!0,!0,i):r.initEvent(t,!0,!0,i)}return n.dispatchEvent(r)};n.exports=t}).call(this)},function(n,t,i){(function(t){var u,r,f;i(3);r=i(1);i(7);f=i(8);u=function(){function n(n){var t,i,u;this.maskCardNumber=(t=this.maskCardNumber,i=this,function(){return t.apply(i,arguments)});this.options=f(!0,this.defaults,n);this.options.form?(this.$el=r(this.options.form),this.options.container?(this.$container=r(this.options.container),(u=r.isDOMElement(this.$container)?this.$container:this.$container[0]).getAttribute(this.initializedDataAttr)||(u.setAttribute(this.initializedDataAttr,!0),this.render(),this.attachHandlers(),this.handleInitialPlaceholders())):console.log("Please provide a container")):console.log("Please provide a form")}var t,i;return n.prototype.initializedDataAttr="data-jp-card-initialized",n.prototype.cardTemplate='<div class="jp-card-container"><div class="jp-card"><div class="jp-card-front"><div class="jp-card-logo jp-card-elo"><div class="e">e<\/div><div class="l">l<\/div><div class="o">o<\/div><\/div><div class="jp-card-logo jp-card-visa">Visa<\/div><div class="jp-card-logo jp-card-visaelectron">Visa<div class="elec">Electron<\/div><\/div><div class="jp-card-logo jp-card-mastercard">Mastercard<\/div><div class="jp-card-logo jp-card-maestro">Maestro<\/div><div class="jp-card-logo jp-card-amex"><\/div><div class="jp-card-logo jp-card-discover">discover<\/div><div class="jp-card-logo jp-card-unionpay">UnionPay<\/div><div class="jp-card-logo jp-card-dinersclub"><\/div><div class="jp-card-logo jp-card-hipercard">Hipercard<\/div><div class="jp-card-logo jp-card-troy">troy<\/div><div class="jp-card-logo jp-card-dankort"><div class="dk"><div class="d"><\/div><div class="k"><\/div><\/div><\/div><div class="jp-card-logo jp-card-jcb"><div class="j">J<\/div><div class="c">C<\/div><div class="b">B<\/div><\/div><div class="jp-card-lower"><div class="jp-card-shiny"><\/div><div class="jp-card-cvc jp-card-display">{{cvc}}<\/div><div class="jp-card-number jp-card-display">{{number}}<\/div><div class="jp-card-name jp-card-display">{{name}}<\/div><div class="jp-card-expiry jp-card-display" data-before="{{monthYear}}" data-after="{{validDate}}">{{expiry}}<\/div><\/div><\/div><div class="jp-card-back"><div class="jp-card-bar"><\/div><div class="jp-card-cvc jp-card-display">{{cvc}}<\/div><div class="jp-card-shiny"><\/div><\/div><\/div><\/div>',n.prototype.template=function(n,t){return n.replace(/\{\{(.*?)\}\}/g,function(n,i){return t[i]})},n.prototype.cardTypes=["jp-card-amex","jp-card-dankort","jp-card-dinersclub","jp-card-discover","jp-card-unionpay","jp-card-jcb","jp-card-laser","jp-card-maestro","jp-card-mastercard","jp-card-troy","jp-card-unionpay","jp-card-visa","jp-card-visaelectron","jp-card-elo","jp-card-hipercard"],n.prototype.defaults={formatting:!0,formSelectors:{numberInput:'input[name="number"]',expiryInput:'input[name="expiry"]',cvcInput:'input[name="cvc"]',nameInput:'input[name="name"]'},cardSelectors:{cardContainer:".jp-card-container",card:".jp-card",numberDisplay:".jp-card-number",expiryDisplay:".jp-card-expiry",cvcDisplay:".jp-card-cvc",nameDisplay:".jp-card-name"},messages:{validDate:"valid\nthru",monthYear:"month/year"},placeholders:{number:"&bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull; &bull;&bull;&bull;&bull;",cvc:"&bull;&bull;&bull;",expiry:"&bull;&bull;/&bull;&bull;",name:"Full Name"},masks:{cardNumber:!1},classes:{valid:"jp-card-valid",invalid:"jp-card-invalid"},debug:!1},n.prototype.render=function(){var i,u,n,e,o,s,t,h;for(n in r.append(this.$container,this.template(this.cardTemplate,f({},this.options.messages,this.options.placeholders))),o=this.options.cardSelectors)t=o[n],this["$"+n]=r.find(this.$container,t);for(n in s=this.options.formSelectors)t=s[n],t=this.options[n]?this.options[n]:t,!(e=r.find(this.$el,t)).length&&this.options.debug&&console.error("Card can't find a "+n+" in your form."),this["$"+n]=e;if(this.options.formatting&&(Payment.formatCardNumber(this.$numberInput),Payment.formatCardCVC(this.$cvcInput),Payment.formatCardExpiry(this.$expiryInput)),this.options.width&&(i=r(this.options.cardSelectors.cardContainer)[0],u=parseInt(i.clientWidth||window.getComputedStyle(i).width),i.style.transform="scale("+this.options.width/u+")"),("undefined"!=typeof navigator&&null!==navigator?navigator.userAgent:void 0)&&-1!==(h=navigator.userAgent.toLowerCase()).indexOf("safari")&&-1===h.indexOf("chrome")&&r.addClass(this.$card,"jp-card-safari"),/MSIE 10\./i.test(navigator.userAgent)&&r.addClass(this.$card,"jp-card-ie-10"),/rv:11.0/i.test(navigator.userAgent))return r.addClass(this.$card,"jp-card-ie-11")},n.prototype.attachHandlers=function(){var i,n;return n=[this.validToggler("cardNumber")],this.options.masks.cardNumber&&n.push(this.maskCardNumber),t(this.$numberInput,this.$numberDisplay,{fill:!1,filters:n}),r.on(this.$numberInput,"payment.cardType",this.handle("setCardType")),(i=[function(n){return n.replace(/(\s+)/g,"")}]).push(this.validToggler("cardExpiry")),t(this.$expiryInput,this.$expiryDisplay,{join:function(n){return 2===n[0].length||n[1]?"/":""},filters:i}),t(this.$cvcInput,this.$cvcDisplay,{filters:this.validToggler("cardCVC")}),r.on(this.$cvcInput,"focus",this.handle("flipCard")),r.on(this.$cvcInput,"blur",this.handle("unflipCard")),t(this.$nameInput,this.$nameDisplay,{fill:!1,filters:this.validToggler("cardHolderName"),join:" "})},n.prototype.handleInitialPlaceholders=function(){var n,i,u,t;for(i in t=[],u=this.options.formSelectors)u[i],(n=this["$"+i])instanceof NodeList&&(n=n[0]),r.val(n)?(r.trigger(n,"paste"),t.push(function(n){return setTimeout(function(){return r.trigger(n,"keyup")})}(n))):t.push(void 0);return t},n.prototype.handle=function(n){return t=this,function(i){var r;return(r=Array.prototype.slice.call(arguments)).unshift(i.target),t.handlers[n].apply(t,r)};var t},n.prototype.validToggler=function(n){var t,i;return"cardExpiry"===n?t=function(n){var t;return t=Payment.fns.cardExpiryVal(n),Payment.fns.validateCardExpiry(t.month,t.year)}:"cardCVC"===n?(i=this,t=function(n){return Payment.fns.validateCardCVC(n,i.cardType)}):"cardNumber"===n?t=function(n){return Payment.fns.validateCardNumber(n)}:"cardHolderName"===n&&(t=function(n){return""!==n}),function(n){return function(i,r,u){var f;return f=t(i),n.toggleValidClass(r,f),n.toggleValidClass(u,f),i}}(this)},n.prototype.toggleValidClass=function(n,t){return r.toggleClass(n,this.options.classes.valid,t),r.toggleClass(n,this.options.classes.invalid,!t)},n.prototype.maskCardNumber=function(n){var i,t;return i=this.options.masks.cardNumber,(t=n.split(" ")).length>=3?(t.forEach(function(n,r){if(r!==t.length-1)return t[r]=t[r].replace(/\d/g,i)}),t.join(" ")):n.replace(/\d/g,i)},n.prototype.handlers={setCardType:function(n,t){var i;if(i=t.data,!r.hasClass(this.$card,i))return r.removeClass(this.$card,"jp-card-unknown"),r.removeClass(this.$card,this.cardTypes.join(" ")),r.addClass(this.$card,"jp-card-"+i),r.toggleClass(this.$card,"jp-card-identified","unknown"!==i),this.cardType=i},flipCard:function(){return r.addClass(this.$card,"jp-card-flipped")},unflipCard:function(){return r.removeClass(this.$card,"jp-card-flipped")}},t=function(n,t,u){var e,o,f;return null==u&&(u={}),u.fill=u.fill||!1,u.filters=u.filters||[],u.filters instanceof Array||(u.filters=[u.filters]),u.join=u.join||"","function"!=typeof u.join&&(e=u.join,u.join=function(){return e}),f=function(){var n,r,i;for(i=[],n=0,r=t.length;n<r;n++)o=t[n],i.push(o.textContent);return i}(),i(n,t,f,u),r.on(n,"focus",function(){return r.addClass(t,"jp-card-focused")}),r.on(n,"blur",function(){return r.removeClass(t,"jp-card-focused")}),r.on(n,"keyup change paste",function(){return i(n,t,f,u)}),n},i=function(n,t,i,u){var l,e,o,s,h,a,v,y,p,w,c,f;for(f=function(){var t,u,i;for(i=[],t=0,u=n.length;t<u;t++)l=n[t],i.push(r.val(l));return i}(),s=u.join(f),(f=f.join(s))===s&&(f=""),o=0,a=(w=u.filters).length;o<a;o++)f=w[o](f,n,t);for(c=[],e=h=0,v=t.length;h<v;e=++h)y=t[e],p=u.fill?f+i[e].substring(f.length):f||i[e],c.push(y.textContent=p);return c},n}();n.exports=u;t.Card=u}).call(this,i(0))},function(n,t,i){var r=i(4);"string"==typeof r&&(r=[[n.i,r,""]]);i(6)(r,{});r.locals&&(n.exports=r.locals)},function(n,t,i){(n.exports=i(5)()).push([n.i,'.jp-card.jp-card-safari.jp-card-identified .jp-card-front:before,.jp-card.jp-card-safari.jp-card-identified .jp-card-back:before{background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),-webkit-linear-gradient(-245deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),linear-gradient(-25deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%)}.jp-card.jp-card-ie-10.jp-card-flipped,.jp-card.jp-card-ie-11.jp-card-flipped{-webkit-transform:0deg;-moz-transform:0deg;-ms-transform:0deg;-o-transform:0deg;transform:0deg}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-front,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-front{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);-ms-transform:rotateY(0deg);-o-transform:rotateY(0deg);transform:rotateY(0deg)}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back{-webkit-transform:rotateY(0deg);-moz-transform:rotateY(0deg);-ms-transform:rotateY(0deg);-o-transform:rotateY(0deg);transform:rotateY(0deg)}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back:after,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back:after{left:18%}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back .jp-card-cvc,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back .jp-card-cvc{-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg);left:5%}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back .jp-card-shiny,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back .jp-card-shiny{left:84%}.jp-card.jp-card-ie-10.jp-card-flipped .jp-card-back .jp-card-shiny:after,.jp-card.jp-card-ie-11.jp-card-flipped .jp-card-back .jp-card-shiny:after{left:-480%;-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg)}.jp-card.jp-card-ie-10.jp-card-amex .jp-card-back,.jp-card.jp-card-ie-11.jp-card-amex .jp-card-back{display:none}.jp-card-logo{height:36px;width:60px;font-style:italic}.jp-card-logo,.jp-card-logo:before,.jp-card-logo:after{box-sizing:border-box}.jp-card-logo.jp-card-amex{text-transform:uppercase;font-size:4px;font-weight:bold;color:white;background-image:repeating-radial-gradient(circle at center, #fff 1px, #999 2px);background-image:repeating-radial-gradient(circle at center, #fff 1px, #999 2px);border:1px solid #EEE}.jp-card-logo.jp-card-amex:before,.jp-card-logo.jp-card-amex:after{width:28px;display:block;position:absolute;left:16px}.jp-card-logo.jp-card-amex:before{height:28px;content:"american";top:3px;text-align:left;padding-left:2px;padding-top:11px;background:#267AC3}.jp-card-logo.jp-card-amex:after{content:"express";bottom:11px;text-align:right;padding-right:2px}.jp-card.jp-card-amex.jp-card-flipped{-webkit-transform:none;-moz-transform:none;-ms-transform:none;-o-transform:none;transform:none}.jp-card.jp-card-amex.jp-card-identified .jp-card-front:before,.jp-card.jp-card-amex.jp-card-identified .jp-card-back:before{background-color:#108168}.jp-card.jp-card-amex.jp-card-identified .jp-card-front .jp-card-logo.jp-card-amex{opacity:1}.jp-card.jp-card-amex.jp-card-identified .jp-card-front .jp-card-cvc{visibility:visible}.jp-card.jp-card-amex.jp-card-identified .jp-card-front:after{opacity:1}.jp-card-logo.jp-card-discover{background:#f60;color:#111;text-transform:uppercase;font-style:normal;font-weight:bold;font-size:10px;text-align:center;overflow:hidden;z-index:1;padding-top:9px;letter-spacing:.03em;border:1px solid #EEE}.jp-card-logo.jp-card-discover:before,.jp-card-logo.jp-card-discover:after{content:" ";display:block;position:absolute}.jp-card-logo.jp-card-discover:before{background:white;width:200px;height:200px;border-radius:200px;bottom:-5%;right:-80%;z-index:-1}.jp-card-logo.jp-card-discover:after{width:8px;height:8px;border-radius:4px;top:10px;left:27px;background-color:#f60;background-image:-webkit-radial-gradient(#f60,#fff);background-image:radial-gradient(  #f60,#fff);content:"network";font-size:4px;line-height:24px;text-indent:-7px}.jp-card .jp-card-front .jp-card-logo.jp-card-discover{right:12%;top:18%}.jp-card.jp-card-discover.jp-card-identified .jp-card-front:before,.jp-card.jp-card-discover.jp-card-identified .jp-card-back:before{background-color:#86B8CF}.jp-card.jp-card-discover.jp-card-identified .jp-card-logo.jp-card-discover{opacity:1}.jp-card.jp-card-discover.jp-card-identified .jp-card-front:after{-webkit-transition:400ms;-moz-transition:400ms;transition:400ms;content:" ";display:block;background-color:#f60;background-image:-webkit-linear-gradient(#f60,#ffa366,#f60);background-image:linear-gradient(#f60,#ffa366,#f60);height:50px;width:50px;border-radius:25px;position:absolute;left:100%;top:15%;margin-left:-25px;box-shadow:inset 1px 1px 3px 1px rgba(0,0,0,0.5)}.jp-card-logo.jp-card-unionpay{width:60px;display:block;height:40px;background:#e21836;-webkit-transform:skew(-15deg);-moz-transform:skew(20deg);-o-transform:skew(20deg);border-radius:5px;font-size:10px;z-index:1;line-height:33px;color:#fff;text-align:center;font-family:"Sans-serif", "Microsoft Yahei", "\\5FAE\\8F6F\\96C5\\9ED1", "Hiragino Sans", "Gulim", "\\5B8B\\4F53";font-weight:bold}.jp-card-logo.jp-card-unionpay:after,.jp-card-logo.jp-card-unionpay:before{display:block;margin:0 auto;position:absolute;height:40px;top:0;z-index:-1}.jp-card-logo.jp-card-unionpay:before{content:" ";width:28px;background:#00447c;left:14px;border-top-left-radius:5px;border-bottom-left-radius:5px}.jp-card-logo.jp-card-unionpay:after{content:"\\94F6\\8054";width:26px;background:#007b84;left:34px;border-radius:5px;font-size:10px;line-height:54px;text-indent:-17px}.jp-card.jp-card-unionpay.jp-card-identified .jp-card-back:before,.jp-card.jp-card-unionpay.jp-card-identified .jp-card-front:before{background-color:#987c00}.jp-card.jp-card-unionpay.jp-card-identified .jp-card-logo.jp-card-unionpay{opacity:1}.jp-card-logo.jp-card-visa{text-transform:uppercase;color:white;text-align:center;font-weight:bold;font-size:24px;line-height:18px;margin-top:5px}.jp-card-logo.jp-card-visa:before,.jp-card-logo.jp-card-visa:after{content:" ";display:block;width:100%;height:25%}.jp-card-logo.jp-card-visa:before{position:absolute;left:-4px;width:0;height:0;border-style:solid;border-width:0 12px 6px 0;border-color:transparent #ffffff transparent transparent}.jp-card.jp-card-visa.jp-card-identified .jp-card-front:before,.jp-card.jp-card-visa.jp-card-identified .jp-card-back:before{background-color:#191278}.jp-card.jp-card-visa.jp-card-identified .jp-card-logo.jp-card-visa{opacity:1;box-shadow:none}.jp-card-logo.jp-card-visaelectron{background:white;text-transform:uppercase;color:#1A1876;text-align:center;font-weight:bold;font-size:15px;line-height:18px}.jp-card-logo.jp-card-visaelectron:before,.jp-card-logo.jp-card-visaelectron:after{content:" ";display:block;width:100%;height:25%}.jp-card-logo.jp-card-visaelectron:before{background:#1A1876}.jp-card-logo.jp-card-visaelectron:after{background:#E79800}.jp-card-logo.jp-card-visaelectron .elec{float:right;font-family:arial;font-size:9px;margin-right:1px;margin-top:-5px;text-transform:none}.jp-card.jp-card-visaelectron.jp-card-identified .jp-card-front:before,.jp-card.jp-card-visaelectron.jp-card-identified .jp-card-back:before{background-color:#191278}.jp-card.jp-card-visaelectron.jp-card-identified .jp-card-logo.jp-card-visaelectron{opacity:1}.jp-card-logo.jp-card-mastercard{color:white;font-style:normal;text-transform:lowercase;font-weight:bold;text-align:center;font-size:9px;line-height:84px;z-index:1;text-shadow:1px 1px rgba(0,0,0,0.6)}.jp-card-logo.jp-card-mastercard:before,.jp-card-logo.jp-card-mastercard:after{content:" ";display:block;width:36px;top:0;position:absolute;height:36px;border-radius:18px}.jp-card-logo.jp-card-mastercard:before{left:0;background:#EB001B;z-index:-1;opacity:0.9}.jp-card-logo.jp-card-mastercard:after{right:0;background:#FF5F00;z-index:-2}.jp-card.jp-card-mastercard.jp-card-identified .jp-card-front .jp-card-logo.jp-card-mastercard,.jp-card.jp-card-mastercard.jp-card-identified .jp-card-back .jp-card-logo.jp-card-mastercard{box-shadow:none}.jp-card.jp-card-mastercard.jp-card-identified .jp-card-front:before,.jp-card.jp-card-mastercard.jp-card-identified .jp-card-back:before{background-color:#0061A8}.jp-card.jp-card-mastercard.jp-card-identified .jp-card-logo.jp-card-mastercard{opacity:1}.jp-card-logo.jp-card-maestro{color:white;font-style:normal;text-transform:lowercase;font-weight:bold;text-align:center;font-size:14px;line-height:84px;z-index:1;text-shadow:1px 1px rgba(0,0,0,0.6)}.jp-card-logo.jp-card-maestro:before,.jp-card-logo.jp-card-maestro:after{content:" ";display:block;width:36px;top:0;position:absolute;height:36px;border-radius:18px}.jp-card-logo.jp-card-maestro:before{left:0;background:#EB001B;z-index:-2}.jp-card-logo.jp-card-maestro:after{right:0;background:#00A2E5;z-index:-1;opacity:0.8}.jp-card.jp-card-maestro.jp-card-identified .jp-card-front .jp-card-logo.jp-card-maestro,.jp-card.jp-card-maestro.jp-card-identified .jp-card-back .jp-card-logo.jp-card-maestro{box-shadow:none}.jp-card.jp-card-maestro.jp-card-identified .jp-card-front:before,.jp-card.jp-card-maestro.jp-card-identified .jp-card-back:before{background-color:#0B2C5F}.jp-card.jp-card-maestro.jp-card-identified .jp-card-logo.jp-card-maestro{opacity:1}.jp-card-logo.jp-card-dankort{width:60px;height:36px;padding:3px;border-radius:8px;border:#000 1px solid;background-color:#fff}.jp-card-logo.jp-card-dankort .dk{position:relative;width:100%;height:100%;overflow:hidden}.jp-card-logo.jp-card-dankort .dk:before{background-color:#ED1C24;content:\'\';position:absolute;width:100%;height:100%;display:block;border-radius:6px}.jp-card-logo.jp-card-dankort .dk:after{content:\'\';position:absolute;top:50%;margin-top:-7.7px;right:0;width:0;height:0;border-style:solid;border-width:7px 7px 10px 0;border-color:transparent #ED1C24 transparent transparent;z-index:1}.jp-card-logo.jp-card-dankort .d,.jp-card-logo.jp-card-dankort .k{position:absolute;top:50%;width:50%;display:block;height:15.4px;margin-top:-7.7px;background:white}.jp-card-logo.jp-card-dankort .d{left:0;border-radius:0 8px 10px 0}.jp-card-logo.jp-card-dankort .d:before{content:\'\';position:absolute;top:50%;left:50%;display:block;background:#ED1C24;border-radius:2px 4px 6px 0px;height:5px;width:7px;margin:-3px 0 0 -4px}.jp-card-logo.jp-card-dankort .k{right:0}.jp-card-logo.jp-card-dankort .k:before,.jp-card-logo.jp-card-dankort .k:after{content:\'\';position:absolute;right:50%;width:0;height:0;border-style:solid;margin-right:-1px}.jp-card-logo.jp-card-dankort .k:before{top:0;border-width:8px 5px 0 0;border-color:#ED1C24 transparent transparent transparent}.jp-card-logo.jp-card-dankort .k:after{bottom:0;border-width:0 5px 8px 0;border-color:transparent transparent #ED1C24 transparent}.jp-card.jp-card-dankort.jp-card-identified .jp-card-front:before,.jp-card.jp-card-dankort.jp-card-identified .jp-card-back:before{background-color:#0055C7}.jp-card.jp-card-dankort.jp-card-identified .jp-card-logo.jp-card-dankort{opacity:1}.jp-card-logo.jp-card-elo{height:50px;width:50px;border-radius:100%;background:black;color:white;text-align:center;text-transform:lowercase;font-size:21px;font-style:normal;letter-spacing:1px;font-weight:bold;padding-top:13px}.jp-card-logo.jp-card-elo .e,.jp-card-logo.jp-card-elo .l,.jp-card-logo.jp-card-elo .o{display:inline-block;position:relative}.jp-card-logo.jp-card-elo .e{-webkit-transform:rotate(-15deg);-moz-transform:rotate(-15deg);-ms-transform:rotate(-15deg);-o-transform:rotate(-15deg);transform:rotate(-15deg)}.jp-card-logo.jp-card-elo .o{position:relative;display:inline-block;width:12px;height:12px;right:0;top:7px;border-radius:100%;background-image:-webkit-linear-gradient( #ff0 50%,red 50%);background-image:linear-gradient( #ff0 50%,red 50%);-webkit-transform:rotate(40deg);-moz-transform:rotate(40deg);-ms-transform:rotate(40deg);-o-transform:rotate(40deg);transform:rotate(40deg);text-indent:-9999px}.jp-card-logo.jp-card-elo .o:before{content:"";position:absolute;width:49%;height:49%;background:black;border-radius:100%;text-indent:-99999px;top:25%;left:25%}.jp-card.jp-card-elo.jp-card-identified .jp-card-front:before,.jp-card.jp-card-elo.jp-card-identified .jp-card-back:before{background-color:#6F6969}.jp-card.jp-card-elo.jp-card-identified .jp-card-logo.jp-card-elo{opacity:1}.jp-card-logo.jp-card-jcb{border-radius:5px 0px 5px 0px;-moz-border-radius:5px 0px 5px 0px;-webkit-border-radius:5px 0px 5px 0px;background-color:white;font-style:normal;color:white;width:50px;padding:2px 0 0 2px}.jp-card-logo.jp-card-jcb>div{width:15px;margin-right:1px;display:inline-block;text-align:center;text-shadow:1px 1px rgba(0,0,0,0.6);border-radius:5px 0px 5px 0px;-moz-border-radius:5px 0px 5px 0px;-webkit-border-radius:5px 0px 5px 0px}.jp-card-logo.jp-card-jcb>div:before,.jp-card-logo.jp-card-jcb>div:after{content:" ";display:block;height:8px}.jp-card-logo.jp-card-jcb>div.j{background-color:#000063;background-image:-webkit-linear-gradient(left, #000063,#008cff);background-image:linear-gradient(to right,#000063,#008cff)}.jp-card-logo.jp-card-jcb>div.c{background-color:#630000;background-image:-webkit-linear-gradient(left, #630000,#ff008d);background-image:linear-gradient(to right,#630000,#ff008d)}.jp-card-logo.jp-card-jcb>div.b{background-color:#006300;background-image:-webkit-linear-gradient(left, #006300,lime);background-image:linear-gradient(to right,#006300,lime)}.jp-card.jp-card-jcb.jp-card-identified .jp-card-front:before,.jp-card.jp-card-jcb.jp-card-identified .jp-card-back:before{background-color:#CB8000}.jp-card.jp-card-jcb.jp-card-identified .jp-card-logo.jp-card-jcb{opacity:1;box-shadow:none}.jp-card-logo.jp-card-dinersclub{font-family:serif;height:40px;width:100px;color:white;font-size:17px;font-style:normal;letter-spacing:1px}.jp-card-logo.jp-card-dinersclub::before,.jp-card-logo.jp-card-dinersclub::after{display:block;position:relative}.jp-card-logo.jp-card-dinersclub::before{content:\'Diners Club\'}.jp-card-logo.jp-card-dinersclub::after{content:\'International\';text-transform:uppercase;font-size:0.6em}.jp-card.jp-card-dinersclub .jp-card-front .jp-card-logo{box-shadow:none !important}.jp-card.jp-card-dinersclub.jp-card-identified .jp-card-front:before,.jp-card.jp-card-dinersclub.jp-card-identified .jp-card-back:before{background-color:#999}.jp-card.jp-card-dinersclub.jp-card-identified .jp-card-logo.jp-card-dinersclub{opacity:1}.jp-card-logo.jp-card-hipercard{height:20px;width:100px;color:white;font-size:21px;font-style:italic;font-weight:bold}.jp-card-logo.jp-card-hipercard::before,.jp-card-logo.jp-card-hipercard::after{display:block;position:relative}.jp-card.jp-card-hipercard.jp-card-identified .jp-card-front:before,.jp-card.jp-card-hipercard.jp-card-identified .jp-card-back:before{background-color:#770304}.jp-card.jp-card-hipercard.jp-card-identified .jp-card-logo.jp-card-hipercard{opacity:1;box-shadow:none}.jp-card-logo.jp-card-troy{text-transform:lowercase;color:#fff;text-align:center;font-weight:700;font-size:24px;line-height:18px;margin-top:5px}.jp-card-logo.jp-card-troy:before,.jp-card-logo.jp-card-troy:after{content:\\"\\";display:block;width:26%;height:6%;background:#22b8c3;right:32%;top:24%;position:absolute;transform:rotate(105deg)}.jp-card.jp-card-troy.jp-card-identified .jp-card-front:before,.jp-card.jp-card-troy.jp-card-identified .jp-card-back:before{background-color:#01adba}.jp-card.jp-card-troy.jp-card-identified .jp-card-logo.jp-card-troy{opacity:1;box-shadow:none}.jp-card-container{-webkit-perspective:1000px;-moz-perspective:1000px;perspective:1000px;width:350px;max-width:100%;height:200px;margin:auto;z-index:1;position:relative}.jp-card{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;line-height:1;position:relative;width:100%;height:100%;min-width:315px;border-radius:10px;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:all 400ms linear;-moz-transition:all 400ms linear;transition:all 400ms linear}.jp-card>*,.jp-card>*:after,.jp-card>*:before{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;font-family:inherit}.jp-card.jp-card-flipped{-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg)}.jp-card .jp-card-back,.jp-card .jp-card-front{-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-style:preserve-3d;-moz-transform-style:preserve-3d;-ms-transform-style:preserve-3d;-o-transform-style:preserve-3d;transform-style:preserve-3d;-webkit-transition:all 400ms linear;-moz-transition:all 400ms linear;transition:all 400ms linear;width:100%;height:100%;position:absolute;top:0;left:0;overflow:hidden;border-radius:10px;background:#ddd}.jp-card .jp-card-back:before,.jp-card .jp-card-front:before{content:" ";display:block;position:absolute;width:100%;height:100%;top:0;left:0;opacity:0;border-radius:10px;-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;transition:all 400ms ease}.jp-card .jp-card-back:after,.jp-card .jp-card-front:after{content:" ";display:block}.jp-card .jp-card-back .jp-card-display,.jp-card .jp-card-front .jp-card-display{color:#fff;font-weight:normal;opacity:0.5;-webkit-transition:opacity 400ms linear;-moz-transition:opacity 400ms linear;transition:opacity 400ms linear}.jp-card .jp-card-back .jp-card-display.jp-card-focused,.jp-card .jp-card-front .jp-card-display.jp-card-focused{opacity:1;font-weight:700}.jp-card .jp-card-back .jp-card-cvc,.jp-card .jp-card-front .jp-card-cvc{font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;font-size:14px}.jp-card .jp-card-back .jp-card-shiny,.jp-card .jp-card-front .jp-card-shiny{width:50px;height:35px;border-radius:5px;background:#ccc;position:relative}.jp-card .jp-card-back .jp-card-shiny:before,.jp-card .jp-card-front .jp-card-shiny:before{content:" ";display:block;width:70%;height:60%;border-top-right-radius:5px;border-bottom-right-radius:5px;background:#d9d9d9;position:absolute;top:20%}.jp-card .jp-card-front .jp-card-logo{position:absolute;opacity:0;right:5%;top:8%;-webkit-transition:400ms;-moz-transition:400ms;transition:400ms}.jp-card .jp-card-front .jp-card-lower{width:80%;position:absolute;left:10%;bottom:30px}@media only screen and (max-width: 480px){.jp-card .jp-card-front .jp-card-lower{width:90%;left:5%}}.jp-card .jp-card-front .jp-card-lower .jp-card-cvc{visibility:hidden;float:right;position:relative;bottom:5px}.jp-card .jp-card-front .jp-card-lower .jp-card-number{font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;font-size:24px;clear:both;margin-bottom:30px}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry{font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;letter-spacing:0;position:relative;float:right;width:25%}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:after,.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:before{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:bold;font-size:7px;white-space:pre;display:block;opacity:0.5}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:before{content:attr(data-before);margin-bottom:2px;font-size:7px;text-transform:uppercase}.jp-card .jp-card-front .jp-card-lower .jp-card-expiry:after{position:absolute;content:attr(data-after);text-align:right;right:100%;margin-right:5px;margin-top:2px;bottom:0}.jp-card .jp-card-front .jp-card-lower .jp-card-name{text-transform:uppercase;font-family:"Bitstream Vera Sans Mono",Consolas,Courier,monospace;font-size:20px;max-height:45px;position:absolute;bottom:0;width:190px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:horizontal;overflow:hidden;text-overflow:ellipsis}.jp-card .jp-card-back{-webkit-transform:rotateY(180deg);-moz-transform:rotateY(180deg);-ms-transform:rotateY(180deg);-o-transform:rotateY(180deg);transform:rotateY(180deg)}.jp-card .jp-card-back .jp-card-bar{background-color:#444;background-image:-webkit-linear-gradient(#444,#333);background-image:linear-gradient(#444,#333);width:100%;height:20%;position:absolute;top:10%}.jp-card .jp-card-back:after{content:" ";display:block;background-color:#fff;background-image:-webkit-linear-gradient(#fff,#fff);background-image:linear-gradient(#fff,#fff);width:80%;height:16%;position:absolute;top:40%;left:2%}.jp-card .jp-card-back .jp-card-cvc{position:absolute;top:40%;left:85%;-webkit-transition-delay:600ms;-moz-transition-delay:600ms;transition-delay:600ms}.jp-card .jp-card-back .jp-card-shiny{position:absolute;top:66%;left:2%}.jp-card .jp-card-back .jp-card-shiny:after{content:"This card has been issued by Jesse Pollak and is licensed for anyone to use anywhere for free. It comes with no warranty. For support issues, please visit: github.com/jessepollak/card.";position:absolute;left:120%;top:5%;color:white;font-size:7px;width:230px;opacity:0.5}.jp-card.jp-card-identified{box-shadow:0 0 20px rgba(0,0,0,0.3)}.jp-card.jp-card-identified .jp-card-back,.jp-card.jp-card-identified .jp-card-front{background-color:#000;background-color:rgba(0,0,0,0.5)}.jp-card.jp-card-identified .jp-card-back:before,.jp-card.jp-card-identified .jp-card-front:before{-webkit-transition:all 400ms ease;-moz-transition:all 400ms ease;transition:all 400ms ease;background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 70% 70%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 90% 20%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 15% 80%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),-webkit-linear-gradient(-245deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 30% 30%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 70% 70%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 90% 20%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-radial-gradient(circle at 15% 80%, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),linear-gradient(-25deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);opacity:1}.jp-card.jp-card-identified .jp-card-back .jp-card-logo,.jp-card.jp-card-identified .jp-card-front .jp-card-logo{box-shadow:0 0 0 2px rgba(255,255,255,0.3)}.jp-card.jp-card-identified.no-radial-gradient .jp-card-back:before,.jp-card.jp-card-identified.no-radial-gradient .jp-card-front:before{background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),-webkit-linear-gradient(-245deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%);background-image:repeating-linear-gradient(45deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 1px, rgba(255,255,255,0) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.03) 4px),repeating-linear-gradient(90deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),repeating-linear-gradient(210deg, rgba(255,255,255,0) 1px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.04) 3px, rgba(255,255,255,0.05) 4px),linear-gradient(-25deg, rgba(255,255,255,0) 50%,rgba(255,255,255,0.2) 70%,rgba(255,255,255,0) 90%)}@media (max-width: 450px){.card-wrapper{max-width:80vw;width:100%;margin:20px auto;overflow-x:hidden}.card-wrapper>.jp-card-container{transform:scale(0.625);transform-origin:left center}}\n',""])},function(n){n.exports=function(){var n=[];return n.toString=function(){for(var n,t=[],i=0;i<this.length;i++)n=this[i],n[2]?t.push("@media "+n[2]+"{"+n[1]+"}"):t.push(n[1]);return t.join("")},n.i=function(t,i){var f,r,e,u;for("string"==typeof t&&(t=[[null,t,""]]),f={},r=0;r<this.length;r++)e=this[r][0],"number"==typeof e&&(f[e]=!0);for(r=0;r<t.length;r++)u=t[r],"number"==typeof u[0]&&f[u[0]]||(i&&!u[2]?u[2]=i:i&&(u[2]="("+u[2]+") and ("+i+")"),n.push(u))},n}},function(n){function e(n,t){for(var u,f,r,o,e=0;e<n.length;e++)if(u=n[e],f=i[u.id],f){for(f.refs++,r=0;r<f.parts.length;r++)f.parts[r](u.parts[r]);for(;r<u.parts.length;r++)f.parts.push(l(u.parts[r],t))}else{for(o=[],r=0;r<u.parts.length;r++)o.push(l(u.parts[r],t));i[u.id]={id:u.id,refs:1,parts:o}}}function o(n){for(var f=[],r={},u=0;u<n.length;u++){var t=n[u],i=t[0],e={css:t[1],media:t[2],sourceMap:t[3]};r[i]?r[i].parts.push(e):f.push(r[i]={id:i,parts:[e]})}return f}function s(n,i){var r=p(),u=t[t.length-1];if("top"===n.insertAt)u?u.nextSibling?r.insertBefore(i,u.nextSibling):r.appendChild(i):r.insertBefore(i,r.firstChild),t.push(i);else{if("bottom"!==n.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");r.appendChild(i)}}function h(n){n.parentNode.removeChild(n);var i=t.indexOf(n);i>=0&&t.splice(i,1)}function c(n){var t=document.createElement("style");return t.type="text/css",s(n,t),t}function l(n,t){var i,r,u,e;return t.singleton?(e=w++,i=f||(f=c(t)),r=v.bind(null,i,e,!1),u=v.bind(null,i,e,!0)):n.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(i=function(n){var t=document.createElement("link");return t.rel="stylesheet",s(n,t),t}(t),r=k.bind(null,i),u=function(){h(i);i.href&&URL.revokeObjectURL(i.href)}):(i=c(t),r=b.bind(null,i),u=function(){h(i)}),r(n),function(t){if(t){if(t.css===n.css&&t.media===n.media&&t.sourceMap===n.sourceMap)return;r(n=t)}else u()}}function v(n,t,i,r){var e=i?"":r.css,f,u;n.styleSheet?n.styleSheet.cssText=a(t,e):(f=document.createTextNode(e),u=n.childNodes,u[t]&&n.removeChild(u[t]),u.length?n.insertBefore(f,u[t]):n.appendChild(f))}function b(n,t){var i=t.css,r=t.media;if(r&&n.setAttribute("media",r),n.styleSheet)n.styleSheet.cssText=i;else{for(;n.firstChild;)n.removeChild(n.firstChild);n.appendChild(document.createTextNode(i))}}function k(n,t){var r=t.css,u=t.sourceMap,f,i;u&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(u))))+" */");f=new Blob([r],{type:"text/css"});i=n.href;n.href=URL.createObjectURL(f);i&&URL.revokeObjectURL(i)}var i={},u=function(n){var t;return function(){return void 0===t&&(t=n.apply(this,arguments)),t}},y=u(function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())}),p=u(function(){return document.head||document.getElementsByTagName("head")[0]}),f=null,w=0,t=[],r,a;n.exports=function(n,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(t=t||{}).singleton&&(t.singleton=y());void 0===t.insertAt&&(t.insertAt="bottom");var r=o(n);return e(r,t),function(n){for(var c,f,h,s=[],u=0;u<r.length;u++)c=r[u],(f=i[c.id]).refs--,s.push(f);for(n&&e(o(n),t),u=0;u<s.length;u++)if(0===(f=s[u]).refs){for(h=0;h<f.parts.length;h++)f.parts[h]();delete i[f.id]}}};a=(r=[],function(n,t){return r[n]=t,r.filter(Boolean).join("\n")})},function(n,t,i){(function(t){(function(){var s,r,o,c,u,f,v,y,p,w,b,k,d,e,g,l,nt,tt,it,h,rt,ut,ft,et,a=[].indexOf||function(n){for(var t=0,i=this.length;t<i;t++)if(t in this&&this[t]===n)return t;return-1};r=i(1);u=[{type:"amex",pattern:/^3[47]/,format:/(\d{1,4})(\d{1,6})?(\d{1,5})?/,length:[15],cvcLength:[4],luhn:!0},{type:"dankort",pattern:/^5019/,format:f=/(\d{1,4})/g,length:[16],cvcLength:[3],luhn:!0},{type:"dinersclub",pattern:/^(36|38|30[0-5])/,format:/(\d{1,4})(\d{1,6})?(\d{1,4})?/,length:[14],cvcLength:[3],luhn:!0},{type:"discover",pattern:/^(6011|65|64[4-9]|622)/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"elo",pattern:/^401178|^401179|^431274|^438935|^451416|^457393|^457631|^457632|^504175|^627780|^636297|^636369|^636368|^(506699|5067[0-6]\d|50677[0-8])|^(50900\d|5090[1-9]\d|509[1-9]\d{2})|^65003[1-3]|^(65003[5-9]|65004\d|65005[0-1])|^(65040[5-9]|6504[1-3]\d)|^(65048[5-9]|65049\d|6505[0-2]\d|65053[0-8])|^(65054[1-9]|6505[5-8]\d|65059[0-8])|^(65070\d|65071[0-8])|^65072[0-7]|^(65090[1-9]|65091\d|650920)|^(65165[2-9]|6516[6-7]\d)|^(65500\d|65501\d)|^(65502[1-9]|6550[3-4]\d|65505[0-8])|^(65092[1-9]|65097[0-8])/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"hipercard",pattern:/^(384100|384140|384160|606282|637095|637568|60(?!11))/,format:f,length:[14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"jcb",pattern:/^(308[8-9]|309[0-3]|3094[0]{4}|309[6-9]|310[0-2]|311[2-9]|3120|315[8-9]|333[7-9]|334[0-9]|352[8-9]|35[3-8][0-9])/,format:f,length:[16,19],cvcLength:[3],luhn:!0},{type:"laser",pattern:/^(6706|6771|6709)/,format:f,length:[16,17,18,19],cvcLength:[3],luhn:!0},{type:"maestro",pattern:/^(5018|5020|5038|5078|5[6-9]|6304|6703|6708|6759|676[1-3])/,format:f,length:[12,13,14,15,16,17,18,19],cvcLength:[3],luhn:!0},{type:"mastercard",pattern:/^(5[1-5]|677189)|^(222[1-9]|2[3-6]\d{2}|27[0-1]\d|2720)/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"mir",pattern:/^220[0-4][0-9][0-9]\d{10}$/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"troy",pattern:/^9792/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"unionpay",pattern:/^62/,format:f,length:[16,17,18,19],cvcLength:[3],luhn:!1},{type:"visaelectron",pattern:/^4(026|17500|405|508|844|91[37])/,format:f,length:[16],cvcLength:[3],luhn:!0},{type:"visa",pattern:/^4/,format:f,length:[13,16,19],cvcLength:[3],luhn:!0}];o=function(n){var r,t,i,e,f;for(n=(n+"").replace(/\D/g,""),t=void 0,i=0,e=u.length;i<e;i++)r=u[i],(f=n.match(r.pattern))&&(!t||f[0].length>t[1][0].length)&&(t=[r,f]);return t&&t[0]};c=function(n){for(var i,t=0,r=u.length;t<r;t++)if((i=u[t]).type===n)return i};g=function(n){var t,f,i,e,r,u;for(r=!0,u=0,i=0,e=(f=(n+"").split("").reverse()).length;i<e;i++)t=f[i],t=parseInt(t,10),(r=!r)&&(t*=2),t>9&&(t-=9),u+=t;return u%10==0};e=function(n){var i,t;try{if(null!=n.selectionStart&&n.selectionStart!==n.selectionEnd||null!=("undefined"!=typeof document&&null!==document&&null!=(t=document.selection)?t.createRange:void 0)&&document.selection.createRange().text)return!0}catch(i){i}return!1};l=function(n){return setTimeout(function(){var t,i;return t=n.target,i=r.val(t),i=s.fns.formatCardNumber(i),r.val(t,i),r.trigger(t,"change")})};p=function(n){return function(t){var u,f,c,l,v,a,s,y,i,h;if(f=String.fromCharCode(t.which),/^\d+$/.test(f)){for(s=t.target,h=r.val(s),u=o(h+f),a=(h.replace(/\D/g,"")+f).length,i=[16],u&&(i=u.length),n&&(i=i.filter(function(t){return t<=n})),c=l=0,v=i.length;l<v;c=++l)if(!(a>=(y=i[c])&&i[c+1])&&a>=y)return;if(!e(s))return(u&&"amex"===u.type?/^(\d{4}|\d{4}\s\d{6})$/:/(?:^|\s)(\d{4})$/).test(h)?(t.preventDefault(),r.val(s,h+" "+f),r.trigger(s,"change")):void 0}}};v=function(n){var t,i;if(t=n.target,i=r.val(t),!n.meta&&8===n.which&&!e(t))return/\d\s$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\d\s$/,"")),r.trigger(t,"change")):/\s\d?$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\s\d?$/,"")),r.trigger(t,"change")):void 0};w=function(n){var u,i,t;if(u=String.fromCharCode(n.which),/^\d+$/.test(u))return i=n.target,t=r.val(i)+u,/^\d$/.test(t)&&"0"!==t&&"1"!==t?(n.preventDefault(),r.val(i,"0"+t+" / "),r.trigger(i,"change")):/^\d\d$/.test(t)?(n.preventDefault(),r.val(i,t+" / "),r.trigger(i,"change")):void 0};d=function(n){var u,i,t;if(u=String.fromCharCode(n.which),/^\d+$/.test(u))return i=n.target,t=r.val(i)+u,/^\d$/.test(t)&&"0"!==t&&"1"!==t?(n.preventDefault(),r.val(i,"0"+t),r.trigger(i,"change")):/^\d\d$/.test(t)?(n.preventDefault(),r.val(i,""+t),r.trigger(i,"change")):void 0};b=function(n){var u,t,i;if(u=String.fromCharCode(n.which),/^\d+$/.test(u))return t=n.target,i=r.val(t),/^\d\d$/.test(i)?(r.val(t,i+" / "),r.trigger(t,"change")):void 0};k=function(n){var t,i;if("/"===String.fromCharCode(n.which))return t=n.target,i=r.val(t),/^\d$/.test(i)&&"0"!==i?(r.val(t,"0"+i+" / "),r.trigger(t,"change")):void 0};y=function(n){var t,i;if(!n.metaKey&&(t=n.target,i=r.val(t),8===n.which&&!e(t)))return/\d(\s|\/)+$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\d(\s|\/)*$/,"")),r.trigger(t,"change")):/\s\/\s?\d?$/.test(i)?(n.preventDefault(),r.val(t,i.replace(/\s\/\s?\d?$/,"")),r.trigger(t,"change")):void 0};ut=function(n){var t;return!(!n.metaKey&&!n.ctrlKey)||(32===n.which?n.preventDefault():0===n.which||n.which<33||(t=String.fromCharCode(n.which),/[\d\s]/.test(t)?void 0:n.preventDefault()))};tt=function(n){return function(t){var u,f,i,s,h;if(s=t.target,f=String.fromCharCode(t.which),/^\d+$/.test(f)&&!e(s))return h=(r.val(s)+f).replace(/\D/g,""),i=16,(u=o(h))&&(i=u.length[u.length.length-1]),n&&(i=Math.min(i,n)),h.length<=i?void 0:t.preventDefault()}};h=function(n,t){var i,u;if(u=n.target,i=String.fromCharCode(n.which),/^\d+$/.test(i)&&!e(u))return(r.val(u)+i).replace(/\D/g,"").length>t?n.preventDefault():void 0};it=function(n){return h(n,6)};rt=function(n){return h(n,2)};ft=function(n){return h(n,4)};nt=function(n){var t,i;if(i=n.target,t=String.fromCharCode(n.which),/^\d+$/.test(t)&&!e(i))return(r.val(i)+t).length<=4?void 0:n.preventDefault()};et=function(n){var f,e,i,t,o;if(t=n.target,o=r.val(t),i=s.fns.cardType(o)||"unknown",!r.hasClass(t,i))return f=function(){var n,i,t;for(t=[],n=0,i=u.length;n<i;n++)e=u[n],t.push(e.type);return t}(),r.removeClass(t,"unknown"),r.removeClass(t,f.join(" ")),r.addClass(t,i),r.toggleClass(t,"identified","unknown"!==i),r.trigger(t,"payment.cardType",i)};s=function(){function n(){}return n.fns={cardExpiryVal:function(n){var i,r,t;return i=(r=(n=n.replace(/\s/g,"")).split("/",2))[0],2===(null!=(t=r[1])?t.length:void 0)&&/^\d+$/.test(t)&&(t=(new Date).getFullYear().toString().slice(0,2)+t),{month:i=parseInt(i,10),year:t=parseInt(t,10)}},validateCardNumber:function(n){var t,i;return n=(n+"").replace(/\s+|-/g,""),!!/^\d+$/.test(n)&&!!(t=o(n))&&(i=n.length,a.call(t.length,i)>=0&&(!1===t.luhn||g(n)))},validateCardExpiry:function(t,i){var f,u,e,o;return"object"==typeof t&&"month"in t?(t=(e=t).month,i=e.year):"string"==typeof t&&a.call(t,"/")>=0&&(t=(o=n.fns.cardExpiryVal(t)).month,i=o.year),!(!t||!i)&&(t=r.trim(t),i=r.trim(i),!!/^\d+$/.test(t)&&!!/^\d+$/.test(i)&&!!((t=parseInt(t,10))&&t<=12)&&(2===i.length&&(i=(new Date).getFullYear().toString().slice(0,2)+i),u=new Date(i,t),f=new Date,u.setMonth(u.getMonth()-1),u.setMonth(u.getMonth()+1,1),u>f))},validateCardCVC:function(n,t){var i,u;return n=r.trim(n),!!/^\d+$/.test(n)&&(t&&c(t)?(i=n.length,a.call(null!=(u=c(t))?u.cvcLength:void 0,i)>=0):n.length>=3&&n.length<=4)},cardType:function(n){var t;return n&&(null!=(t=o(n))?t.type:void 0)||null},formatCardNumber:function(n){var t,i,r,u;return(t=o(n))?(u=t.length[t.length.length-1],n=(n=n.replace(/\D/g,"")).slice(0,u),t.format.global?null!=(r=n.match(t.format))?r.join(" "):void 0:null!=(i=t.format.exec(n))?(i.shift(),(i=i.filter(function(n){return n})).join(" ")):void 0):n}},n.restrictNumeric=function(n){return r.on(n,"keypress",ut)},n.cardExpiryVal=function(t){return n.fns.cardExpiryVal(r.val(t))},n.formatCardCVC=function(t){return n.restrictNumeric(t),r.on(t,"keypress",nt),t},n.formatCardExpiry=function(t){var i,u;return n.restrictNumeric(t),t.length&&2===t.length?(i=t[0],u=t[1],this.formatCardExpiryMultiple(i,u)):(r.on(t,"keypress",it),r.on(t,"keypress",w),r.on(t,"keypress",k),r.on(t,"keypress",b),r.on(t,"keydown",y)),t},n.formatCardExpiryMultiple=function(n,t){return r.on(n,"keypress",rt),r.on(n,"keypress",d),r.on(t,"keypress",ft)},n.formatCardNumber=function(t,i){return n.restrictNumeric(t),r.on(t,"keypress",tt(i)),r.on(t,"keypress",p(i)),r.on(t,"keydown",v),r.on(t,"keyup blur",et),r.on(t,"paste",l),r.on(t,"input",l),t},n.getCardArray=function(){return u},n.setCardArray=function(n){return u=n,!0},n.addToCardArray=function(n){return u.push(n)},n.removeFromCardArray=function(n){for(var t in u)u[t].type===n&&u.splice(t,1);return!0},n}();n.exports=s;t.Payment=s}).call(this)}).call(this,i(0))},function(n,t,i){"use strict";n.exports=i(9)},function(n,t,i){"use strict";function u(){var f,e,t,i,c,l,n=arguments[0]||{},h=1,v=arguments.length,a=!1;for("boolean"==typeof n&&(a=n,n=arguments[1]||{},h=2),"object"==typeof n||r.fn(n)||(n={});h<v;h++)if(null!=(f=arguments[h]))for(e in"string"==typeof f&&(f=f.split("")),f)t=s(n,e),n!==(i=s(f,e))&&(a&&i&&(r.hash(i)||(c=r.array(i)))?(c?(c=!1,l=t&&r.array(t)?t:[]):l=t&&r.hash(t)?t:{},o(n,e,u(a,l,i))):void 0!==i&&o(n,e,i));return n}var r=i(10),h=i(11),f=Object.defineProperty,e=Object.getOwnPropertyDescriptor,o=function(n,t,i){f&&"__proto__"===t?f(n,t,{enumerable:!0,configurable:!0,value:i,writable:!0}):n[t]=i},s=function(n,t){if("__proto__"===t){if(!h(n,t))return;if(e)return e(n,t).value}return n[t]};u.version="1.1.7";n.exports=u},function(n){"use strict";var u,f,e=Object.prototype,o=e.hasOwnProperty,r=e.toString;"function"==typeof Symbol&&(u=Symbol.prototype.valueOf);"function"==typeof BigInt&&(f=BigInt.prototype.valueOf);var i=function(n){return n!=n},s={boolean:1,number:1,string:1,undefined:1},h=/^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$/,c=/^[A-Fa-f0-9]+$/,t={};t.a=t.type=function(n,t){return typeof n===t};t.defined=function(n){return void 0!==n};t.empty=function(n){var i,t=r.call(n);if("[object Array]"===t||"[object Arguments]"===t||"[object String]"===t)return 0===n.length;if("[object Object]"===t){for(i in n)if(o.call(n,i))return!1;return!0}return!n};t.equal=function(n,i){if(n===i)return!0;var u,f=r.call(n);if(f!==r.call(i))return!1;if("[object Object]"===f){for(u in n)if(!t.equal(n[u],i[u])||!(u in i))return!1;for(u in i)if(!t.equal(n[u],i[u])||!(u in n))return!1;return!0}if("[object Array]"===f){if((u=n.length)!==i.length)return!1;for(;u--;)if(!t.equal(n[u],i[u]))return!1;return!0}return"[object Function]"===f?n.prototype===i.prototype:"[object Date]"===f&&n.getTime()===i.getTime()};t.hosted=function(n,t){var i=typeof t[n];return"object"===i?!!t[n]:!s[i]};t.instance=t.instanceof=function(n,t){return n instanceof t};t.nil=t.null=function(n){return null===n};t.undef=t.undefined=function(n){return void 0===n};t.args=t.arguments=function(n){var i="[object Arguments]"===r.call(n),u=!t.array(n)&&t.arraylike(n)&&t.object(n)&&t.fn(n.callee);return i||u};t.array=Array.isArray||function(n){return"[object Array]"===r.call(n)};t.args.empty=function(n){return t.args(n)&&0===n.length};t.array.empty=function(n){return t.array(n)&&0===n.length};t.arraylike=function(n){return!!n&&!t.bool(n)&&o.call(n,"length")&&isFinite(n.length)&&t.number(n.length)&&n.length>=0};t.bool=t.boolean=function(n){return"[object Boolean]"===r.call(n)};t.false=function(n){return t.bool(n)&&!1===Boolean(Number(n))};t.true=function(n){return t.bool(n)&&!0===Boolean(Number(n))};t.date=function(n){return"[object Date]"===r.call(n)};t.date.valid=function(n){return t.date(n)&&!isNaN(Number(n))};t.element=function(n){return void 0!==n&&"undefined"!=typeof HTMLElement&&n instanceof HTMLElement&&1===n.nodeType};t.error=function(n){return"[object Error]"===r.call(n)};t.fn=t.function=function(n){if("undefined"!=typeof window&&n===window.alert)return!0;var t=r.call(n);return"[object Function]"===t||"[object GeneratorFunction]"===t||"[object AsyncFunction]"===t};t.number=function(n){return"[object Number]"===r.call(n)};t.infinite=function(n){return n===1/0||n===-1/0};t.decimal=function(n){return t.number(n)&&!i(n)&&!t.infinite(n)&&n%1!=0};t.divisibleBy=function(n,r){var u=t.infinite(n),f=t.infinite(r),e=t.number(n)&&!i(n)&&t.number(r)&&!i(r)&&0!==r;return u||f||e&&n%r==0};t.integer=t.int=function(n){return t.number(n)&&!i(n)&&n%1==0};t.maximum=function(n,r){if(i(n))throw new TypeError("NaN is not a valid value");if(!t.arraylike(r))throw new TypeError("second argument must be array-like");for(var u=r.length;--u>=0;)if(n<r[u])return!1;return!0};t.minimum=function(n,r){if(i(n))throw new TypeError("NaN is not a valid value");if(!t.arraylike(r))throw new TypeError("second argument must be array-like");for(var u=r.length;--u>=0;)if(n>r[u])return!1;return!0};t.nan=function(n){return!t.number(n)||n!=n};t.even=function(n){return t.infinite(n)||t.number(n)&&n==n&&n%2==0};t.odd=function(n){return t.infinite(n)||t.number(n)&&n==n&&n%2!=0};t.ge=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n>=r};t.gt=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n>r};t.le=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n<=r};t.lt=function(n,r){if(i(n)||i(r))throw new TypeError("NaN is not a valid value");return!t.infinite(n)&&!t.infinite(r)&&n<r};t.within=function(n,r,u){if(i(n)||i(r)||i(u))throw new TypeError("NaN is not a valid value");if(!t.number(n)||!t.number(r)||!t.number(u))throw new TypeError("all arguments must be numbers");return t.infinite(n)||t.infinite(r)||t.infinite(u)||n>=r&&n<=u};t.object=function(n){return"[object Object]"===r.call(n)};t.primitive=function(n){return!n||!("object"==typeof n||t.object(n)||t.fn(n)||t.array(n))};t.hash=function(n){return t.object(n)&&n.constructor===Object&&!n.nodeType&&!n.setInterval};t.regexp=function(n){return"[object RegExp]"===r.call(n)};t.string=function(n){return"[object String]"===r.call(n)};t.base64=function(n){return t.string(n)&&(!n.length||h.test(n))};t.hex=function(n){return t.string(n)&&(!n.length||c.test(n))};t.symbol=function(n){return"function"==typeof Symbol&&"[object Symbol]"===r.call(n)&&"symbol"==typeof u.call(n)};t.bigint=function(n){return"function"==typeof BigInt&&"[object BigInt]"===r.call(n)&&"bigint"==typeof f.call(n)};n.exports=t},function(n,t,i){"use strict";var r=i(12);n.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},function(n,t,i){"use strict";var r=i(13);n.exports=Function.prototype.bind||r},function(n){"use strict";var i="Function.prototype.bind called on incompatible ",t=Array.prototype.slice,r=Object.prototype.toString;n.exports=function(n){var u=this,e;if("function"!=typeof u||"[object Function]"!==r.call(u))throw new TypeError(i+u);for(var f,o=t.call(arguments,1),c=function(){if(this instanceof f){var i=u.apply(this,o.concat(t.call(arguments)));return Object(i)===i?i:this}return u.apply(n,o.concat(t.call(arguments)))},l=Math.max(0,u.length-o.length),h=[],s=0;s<l;s++)h.push("$"+s);return(f=Function("binder","return function ("+h.join(",")+"){ return binder.apply(this,arguments); }")(c),u.prototype)&&(e=function(){},e.prototype=u.prototype,f.prototype=new e,e.prototype=null),f}}]);!function(n){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=n();else if("function"==typeof define&&define.amd)define([],n);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this;t.Chart=n()}}(function(){return function n(t,i,r){function u(f,o){var h,c,s;if(!i[f]){if(!t[f]){if(h="function"==typeof require&&require,!o&&h)return h(f,!0);if(e)return e(f,!0);c=new Error("Cannot find module '"+f+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[f]={exports:{}};t[f][0].call(s.exports,function(n){var i=t[f][1][n];return u(i?i:n)},s,s.exports,n,t,i,r)}return i[f].exports}for(var e="function"==typeof require&&require,f=0;f<r.length;f++)u(r[f]);return u}({1:[function(){},{}],2:[function(n,t){function r(n){var t;if(n){var u=[0,0,0],f=1,r=n.match(/^#([a-fA-F0-9]{3})$/);if(r)for(r=r[1],t=0;t<u.length;t++)u[t]=parseInt(r[t]+r[t],16);else if(r=n.match(/^#([a-fA-F0-9]{6})$/))for(r=r[1],t=0;t<u.length;t++)u[t]=parseInt(r.slice(2*t,2*t+2),16);else if(r=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<u.length;t++)u[t]=parseInt(r[t+1]);f=parseFloat(r[4])}else if(r=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<u.length;t++)u[t]=Math.round(2.55*parseFloat(r[t+1]));f=parseFloat(r[4])}else if(r=n.match(/(\w+)/)){if("transparent"==r[1])return[0,0,0,0];if(u=e[r[1]],!u)return}for(t=0;t<u.length;t++)u[t]=i(u[t],0,255);return f=f||0==f?i(f,0,1):1,u[3]=f,u}}function u(n){var r,t;if(n&&(r=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function h(n){var r,t;if(n&&(r=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function v(n){var t=r(n);return t&&t.slice(0,3)}function y(n){var t=u(n);return t&&t.slice(0,3)}function p(n){var t=r(n);return t?t[3]:(t=u(n))?t[3]:(t=h(n))?t[3]:void 0}function w(n){return"#"+f(n[0])+f(n[1])+f(n[2])}function b(n,t){return t<1||n[3]&&n[3]<1?c(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"}function c(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function k(n,t){if(t<1||n[3]&&n[3]<1)return l(n,t);var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgb("+i+"%, "+r+"%, "+u+"%)"}function l(n,t){var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgba("+i+"%, "+r+"%, "+u+"%, "+(t||n[3]||1)+")"}function d(n,t){return t<1||n[3]&&n[3]<1?a(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"}function a(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function g(n,t){return void 0===t&&(t=void 0!==n[3]?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(void 0!==t&&1!==t?", "+t:"")+")"}function nt(n){return o[n.slice(0,3)]}function i(n,t,i){return Math.min(Math.max(t,n),i)}function f(n){var t=n.toString(16).toUpperCase();return t.length<2?"0"+t:t}var e=n(6),o,s;t.exports={getRgba:r,getHsla:u,getRgb:v,getHsl:y,getHwb:h,getAlpha:p,hexString:w,rgbString:b,rgbaString:c,percentString:k,percentaString:l,hslString:d,hslaString:a,hwbString:g,keyword:nt};o={};for(s in e)o[e[s]]=s},{6:6}],3:[function(n,t){var u=n(5),r=n(2),i=function(n){if(n instanceof i)return n;if(!(this instanceof i))return new i(n);this.valid=!1;this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1};var t;"string"==typeof n?(t=r.getRgba(n),t?this.setValues("rgb",t):(t=r.getHsla(n))?this.setValues("hsl",t):(t=r.getHwb(n))&&this.setValues("hwb",t)):"object"==typeof n&&(t=n,void 0!==t.r||void 0!==t.red?this.setValues("rgb",t):void 0!==t.l||void 0!==t.lightness?this.setValues("hsl",t):void 0!==t.v||void 0!==t.value?this.setValues("hsv",t):void 0!==t.w||void 0!==t.whiteness?this.setValues("hwb",t):void 0===t.c&&void 0===t.cyan||this.setValues("cmyk",t))};i.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var n=this.values;return 1!==n.alpha?n.hwb.concat([n.alpha]):n.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var n=this.values;return n.rgb.concat([n.alpha])},hslaArray:function(){var n=this.values;return n.hsl.concat([n.alpha])},alpha:function(n){return void 0===n?this.values.alpha:(this.setValues("alpha",n),this)},red:function(n){return this.setChannel("rgb",0,n)},green:function(n){return this.setChannel("rgb",1,n)},blue:function(n){return this.setChannel("rgb",2,n)},hue:function(n){return n&&(n%=360,n=n<0?360+n:n),this.setChannel("hsl",0,n)},saturation:function(n){return this.setChannel("hsl",1,n)},lightness:function(n){return this.setChannel("hsl",2,n)},saturationv:function(n){return this.setChannel("hsv",1,n)},whiteness:function(n){return this.setChannel("hwb",1,n)},blackness:function(n){return this.setChannel("hwb",2,n)},value:function(n){return this.setChannel("hsv",2,n)},cyan:function(n){return this.setChannel("cmyk",0,n)},magenta:function(n){return this.setChannel("cmyk",1,n)},yellow:function(n){return this.setChannel("cmyk",2,n)},black:function(n){return this.setChannel("cmyk",3,n)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var n=this.values.rgb;return n[0]<<16|n[1]<<8|n[2]},luminosity:function(){for(var i,r=this.values.rgb,n=[],t=0;t<r.length;t++)i=r[t]/255,n[t]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*n[0]+.7152*n[1]+.0722*n[2]},contrast:function(n){var t=this.luminosity(),i=n.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(n){var t=this.contrast(n);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var n=this.values.rgb,t=(299*n[0]+587*n[1]+114*n[2])/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var t=[],n=0;n<3;n++)t[n]=255-this.values.rgb[n];return this.setValues("rgb",t),this},lighten:function(n){var t=this.values.hsl;return t[2]+=t[2]*n,this.setValues("hsl",t),this},darken:function(n){var t=this.values.hsl;return t[2]-=t[2]*n,this.setValues("hsl",t),this},saturate:function(n){var t=this.values.hsl;return t[1]+=t[1]*n,this.setValues("hsl",t),this},desaturate:function(n){var t=this.values.hsl;return t[1]-=t[1]*n,this.setValues("hsl",t),this},whiten:function(n){var t=this.values.hwb;return t[1]+=t[1]*n,this.setValues("hwb",t),this},blacken:function(n){var t=this.values.hwb;return t[2]+=t[2]*n,this.setValues("hwb",t),this},greyscale:function(){var n=this.values.rgb,t=.3*n[0]+.59*n[1]+.11*n[2];return this.setValues("rgb",[t,t,t]),this},clearer:function(n){var t=this.values.alpha;return this.setValues("alpha",t-t*n),this},opaquer:function(n){var t=this.values.alpha;return this.setValues("alpha",t+t*n),this},rotate:function(n){var t=this.values.hsl,i=(t[0]+n)%360;return t[0]=i<0?360+i:i,this.setValues("hsl",t),this},mix:function(n,t){var i=this,r=n,e=void 0===t?.5:t,u=2*e-1,o=i.alpha()-r.alpha(),f=((u*o==-1?u:(u+o)/(1+u*o))+1)/2,s=1-f;return this.rgb(f*i.red()+s*r.red(),f*i.green()+s*r.green(),f*i.blue()+s*r.blue()).alpha(i.alpha()*e+r.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var n,r,f=new i,u=this.values,e=f.values;for(var t in u)u.hasOwnProperty(t)&&(n=u[t],r={}.toString.call(n),"[object Array]"===r?e[t]=n.slice(0):"[object Number]"===r?e[t]=n:console.error("unexpected color value:",n));return f}};i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]};i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]};i.prototype.getValues=function(n){for(var i=this.values,r={},t=0;t<n.length;t++)r[n.charAt(t)]=i[n][t];return 1!==i.alpha&&(r.a=i.alpha),r};i.prototype.setValues=function(n,t){var i,r=this.values,o=this.spaces,c=this.maxes,f=1,s,h,e;if(this.valid=!0,"alpha"===n)f=t;else if(t.length)r[n]=t.slice(0,n.length),f=t[n.length];else if(void 0!==t[n.charAt(0)]){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];f=t.a}else if(void 0!==t[o[n][0]]){for(s=o[n],i=0;i<n.length;i++)r[n][i]=t[s[i]];f=t.alpha}if(r.alpha=Math.max(0,Math.min(1,void 0===f?r.alpha:f)),"alpha"===n)return!1;for(i=0;i<n.length;i++)h=Math.max(0,Math.min(c[n][i],r[n][i])),r[n][i]=Math.round(h);for(e in o)e!==n&&(r[e]=u[n][e](r[n]));return!0};i.prototype.setSpace=function(n,t){var i=t[0];return void 0===i?this.getValues(n):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)};i.prototype.setChannel=function(n,t,i){var r=this.values[n];return void 0===i?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)};"undefined"!=typeof window&&(window.Color=i);t.exports=i},{2:2,5:5}],4:[function(n,t){function u(n){var t,h,s,u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),i=Math.max(u,f,e),o=i-r;return i==r?t=0:u==i?t=(f-e)/o:f==i?t=2+(e-u)/o:e==i&&(t=4+(u-f)/o),t=Math.min(60*t,360),t<0&&(t+=360),s=(r+i)/2,h=i==r?0:s<=.5?o/(i+r):o/(2-i-r),[t,100*h,100*s]}function c(n){var t,o,s,r=n[0],u=n[1],f=n[2],h=Math.min(r,u,f),i=Math.max(r,u,f),e=i-h;return o=0==i?0:e/i*100,i==h?t=0:r==i?t=(u-f)/e:u==i?t=2+(f-r)/e:f==i&&(t=4+(r-u)/e),t=Math.min(60*t,360),t<0&&(t+=360),s=i/255*100,[t,o,s]}function f(n){var i=n[0],r=n[1],t=n[2],f=u(n)[0],e=1/255*Math.min(i,Math.min(r,t)),t=1-1/255*Math.max(i,Math.max(r,t));return[f,100*e,100*t]}function e(n){var i,r,u,t,f=n[0]/255,e=n[1]/255,o=n[2]/255;return t=Math.min(1-f,1-e,1-o),i=(1-f-t)/(1-t)||0,r=(1-e-t)/(1-t)||0,u=(1-o-t)/(1-t)||0,[100*i,100*r,100*u,100*t]}function o(n){return nt[JSON.stringify(n)]}function y(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var u=.4124*t+.3576*i+.1805*r,f=.2126*t+.7152*i+.0722*r,e=.0193*t+.1192*i+.9505*r;return[100*u,100*f,100*e]}function p(n){var f,e,o,u=y(n),i=u[0],t=u[1],r=u[2];return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,f=116*t-16,e=500*(i-t),o=200*(t-r),[f,e,o]}function ft(n){return k(p(n))}function l(n){var i,f,t,s,r,h=n[0]/360,o=n[1]/100,u=n[2]/100,e;if(0==o)return r=255*u,[r,r,r];for(f=u<.5?u*(1+o):u+o-u*o,i=2*u-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,r=6*t<1?i+6*(f-i)*t:2*t<1?f:3*t<2?i+(f-i)*(2/3-t)*6:i,s[e]=255*r;return s}function et(n){var r,u,f=n[0],i=n[1]/100,t=n[2]/100;return 0===t?[0,0,0]:(t*=2,i*=t<=1?t:2-t,u=(t+i)/2,r=2*i/(t+i),[f,100*r,100*u])}function ot(n){return f(l(n))}function st(n){return e(l(n))}function ht(n){return o(l(n))}function a(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o)),t=255*t;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}}function ct(n){var i,t,f=n[0],r=n[1]/100,u=n[2]/100;return t=(2-r)*u,i=r*u,i/=t<=1?t:2-t,i=i||0,t/=2,[f,100*i,100*t]}function lt(n){return f(a(n))}function at(n){return e(a(n))}function vt(n){return o(a(n))}function s(n){var f,i,e,u,h=n[0]/360,t=n[1]/100,o=n[2]/100,s=t+o;switch(s>1&&(t/=s,o/=s),f=Math.floor(6*h),i=1-o,e=6*h-f,0!=(1&f)&&(e=1-e),u=t+e*(i-t),f){default:case 6:case 0:r=i;g=u;b=t;break;case 1:r=u;g=i;b=t;break;case 2:r=t;g=i;b=u;break;case 3:r=t;g=u;b=i;break;case 4:r=u;g=t;b=i;break;case 5:r=i;g=t;b=u}return[255*r,255*g,255*b]}function yt(n){return u(s(n))}function pt(n){return c(s(n))}function wt(n){return e(s(n))}function bt(n){return o(s(n))}function h(n){var i,r,u,f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[255*i,255*r,255*u]}function kt(n){return u(h(n))}function dt(n){return c(h(n))}function gt(n){return f(h(n))}function ni(n){return o(h(n))}function it(n){var t,i,r,u=n[0]/100,f=n[1]/100,e=n[2]/100;return t=3.2406*u+f*-1.5372+e*-.4986,i=u*-.9689+1.8758*f+.0415*e,r=.0557*u+f*-.204+1.057*e,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r*=12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[255*t,255*i,255*r]}function rt(n){var u,f,e,i=n[0],t=n[1],r=n[2];return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]}function ti(n){return k(rt(n))}function w(n){var r,i,u,t,f=n[0],e=n[1],o=n[2];return f<=8?(i=100*f/903.3,t=7.787*(i/100)+16/116):(i=100*Math.pow((f+16)/116,3),t=Math.pow(i/100,1/3)),r=r/95.047<=.008856?r=95.047*(e/500+t-16/116)/7.787:95.047*Math.pow(e/500+t,3),u=u/108.883<=.008859?u=108.883*(t-o/200-16/116)/7.787:108.883*Math.pow(t-o/200,3),[r,i,u]}function k(n){var u,t,f,e=n[0],i=n[1],r=n[2];return u=Math.atan2(r,i),t=180*u/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]}function ut(n){return it(w(n))}function d(n){var i,r,t,f=n[0],u=n[1],e=n[2];return t=e/180*Math.PI,i=u*Math.cos(t),r=u*Math.sin(t),[f,i,r]}function ii(n){return w(d(n))}function ri(n){return ut(d(n))}function i(n){return v[n]}function ui(n){return u(i(n))}function fi(n){return c(i(n))}function ei(n){return f(i(n))}function oi(n){return e(i(n))}function si(n){return p(i(n))}function hi(n){return y(i(n))}var v,nt,tt;t.exports={rgb2hsl:u,rgb2hsv:c,rgb2hwb:f,rgb2cmyk:e,rgb2keyword:o,rgb2xyz:y,rgb2lab:p,rgb2lch:ft,hsl2rgb:l,hsl2hsv:et,hsl2hwb:ot,hsl2cmyk:st,hsl2keyword:ht,hsv2rgb:a,hsv2hsl:ct,hsv2hwb:lt,hsv2cmyk:at,hsv2keyword:vt,hwb2rgb:s,hwb2hsl:yt,hwb2hsv:pt,hwb2cmyk:wt,hwb2keyword:bt,cmyk2rgb:h,cmyk2hsl:kt,cmyk2hsv:dt,cmyk2hwb:gt,cmyk2keyword:ni,keyword2rgb:i,keyword2hsl:ui,keyword2hsv:fi,keyword2hwb:ei,keyword2cmyk:oi,keyword2lab:si,keyword2xyz:hi,xyz2rgb:it,xyz2lab:rt,xyz2lch:ti,lab2xyz:w,lab2rgb:ut,lab2lch:k,lch2lab:d,lch2xyz:ii,lch2rgb:ri};v={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};nt={};for(tt in v)nt[JSON.stringify(v[tt])]=tt},{}],5:[function(n,t){var f=n(4),i=function(){return new u},r,u;for(r in f){i[r+"Raw"]=function(n){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),f[n](t)}}(r);var o=/(\w+)2(\w+)/.exec(r),e=o[1],s=o[2];i[e]=i[e]||{};i[e][s]=i[r]=function(n){return function(t){var i,r;if("number"==typeof t&&(t=Array.prototype.slice.call(arguments)),i=f[n](t),"string"==typeof i||void 0===i)return i;for(r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(r)}u=function(){this.convs={}};u.prototype.routeSpace=function(n,t){var i=t[0];return void 0===i?this.getValues(n):("number"==typeof i&&(i=Array.prototype.slice.call(t)),this.setValues(n,i))};u.prototype.setValues=function(n,t){return this.space=n,this.convs={},this.convs[n]=t,this};u.prototype.getValues=function(n){var t=this.convs[n],r,u;return t||(r=this.space,u=this.convs[r],t=i[r][n](u),this.convs[n]=t),t};["rgb","hsl","hsv","cmyk","keyword"].forEach(function(n){u.prototype[n]=function(){return this.routeSpace(n,arguments)}});t.exports=i},{4:4}],6:[function(n,t){t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(n,t){var i=n(28)(),r;n(26)(i);n(40)(i);n(22)(i);n(25)(i);n(30)(i);n(21)(i);n(23)(i);n(24)(i);n(29)(i);n(32)(i);n(33)(i);n(31)(i);n(27)(i);n(34)(i);n(35)(i);n(36)(i);n(37)(i);n(38)(i);n(46)(i);n(44)(i);n(45)(i);n(47)(i);n(48)(i);n(49)(i);n(15)(i);n(16)(i);n(17)(i);n(18)(i);n(19)(i);n(20)(i);n(8)(i);n(9)(i);n(10)(i);n(11)(i);n(12)(i);n(13)(i);n(14)(i);r=[];r.push(n(41)(i),n(42)(i),n(43)(i));i.plugins.register(r);t.exports=i;"undefined"!=typeof window&&(window.Chart=i)},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,37:37,38:38,40:40,41:41,42:42,43:43,44:44,45:45,46:46,47:47,48:48,49:49,8:8,9:9}],8:[function(n,t){"use strict";t.exports=function(n){n.Bar=function(t,i){return i.type="bar",new n(t,i)}}},{}],9:[function(n,t){"use strict";t.exports=function(n){n.Bubble=function(t,i){return i.type="bubble",new n(t,i)}}},{}],10:[function(n,t){"use strict";t.exports=function(n){n.Doughnut=function(t,i){return i.type="doughnut",new n(t,i)}}},{}],11:[function(n,t){"use strict";t.exports=function(n){n.Line=function(t,i){return i.type="line",new n(t,i)}}},{}],12:[function(n,t){"use strict";t.exports=function(n){n.PolarArea=function(t,i){return i.type="polarArea",new n(t,i)}}},{}],13:[function(n,t){"use strict";t.exports=function(n){n.Radar=function(t,i){return i.type="radar",new n(t,i)}}},{}],14:[function(n,t){"use strict";t.exports=function(n){var t={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}};n.defaults.scatter=t;n.controllers.scatter=n.controllers.line;n.Scatter=function(t,i){return i.type="scatter",new n(t,i)}}},{}],15:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}};n.controllers.bar=n.DatasetController.extend({dataElementType:n.elements.Rectangle,initialize:function(){var t,i=this;n.DatasetController.prototype.initialize.apply(i,arguments);t=i.getMeta();t.stack=i.getDataset().stack;t.bar=!0},update:function(n){var t,r,i=this,u=i.getMeta().data;for(i._ruler=i.getRuler(),t=0,r=u.length;t<r;++t)i.updateElement(u[t],t,n)},updateElement:function(n,i,r){var f=this,s=f.chart,h=f.getMeta(),e=f.getDataset(),u=n.custom||{},o=s.options.elements.rectangle;n._xScale=f.getScaleForId(h.xAxisID);n._yScale=f.getScaleForId(h.yAxisID);n._datasetIndex=f.index;n._index=i;n._model={datasetLabel:e.label,label:s.data.labels[i],borderSkipped:u.borderSkipped?u.borderSkipped:o.borderSkipped,backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(e.borderColor,i,o.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)};f.updateElementGeometry(n,i,r);n.pivot()},updateElementGeometry:function(n,t,i){var r=this,u=n._model,h=r.getValueScale(),o=h.getBasePixel(),f=h.isHorizontal(),c=r._ruler||r.getRuler(),s=r.calculateBarValuePixels(r.index,t),e=r.calculateBarIndexPixels(r.index,t,c);u.horizontal=f;u.base=i?o:s.base;u.x=f?i?o:s.head:e.center;u.y=f?e.center:i?o:s.head;u.height=f?e.size:void 0;u.width=f?void 0:e.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(n){for(var t,e=this,u=e.chart,o=e.getIndexScale(),f=o.options.stacked,s=void 0===n?u.data.datasets.length:n+1,r=[],i=0;i<s;++i)t=u.getDatasetMeta(i),t.bar&&u.isDatasetVisible(i)&&(f===!1||f===!0&&r.indexOf(t.stack)===-1||void 0===f&&(void 0===t.stack||r.indexOf(t.stack)===-1))&&r.push(t.stack);return r.length},getStackIndex:function(n){return this.getStackCount(n)-1},getRuler:function(){var o=this,n=o.getIndexScale(),i=n.options,s=o.getStackCount(),h=n.isHorizontal()?n.width:n.height,u=h/n.ticks.length,f=u*i.categoryPercentage,e=f/s,r=e*i.barPercentage;return r=Math.min(t.getValueOrDefault(i.barThickness,r),t.getValueOrDefault(i.maxBarThickness,1/0)),{stackCount:s,tickSize:u,categorySize:f,categorySpacing:u-f,fullBarSize:e,barSize:r,barSpacing:e-r,scale:n}},calculateBarValuePixels:function(n,t){var i,r,u,o,f,s,h=this,c=h.chart,w=h.getMeta(),e=h.getValueScale(),v=c.data.datasets,l=Number(v[n].data[t]),y=e.options.stacked,p=w.stack,a=0;if(y||void 0===y&&void 0!==p)for(i=0;i<n;++i)r=c.getDatasetMeta(i),r.bar&&r.stack===p&&r.controller.getValueScaleId()===e.id&&c.isDatasetVisible(i)&&(u=Number(v[i].data[t]),(l<0&&u<0||l>=0&&u>0)&&(a+=u));return o=e.getPixelForValue(a),f=e.getPixelForValue(a+l),s=(f-o)/2,{size:s,base:o,head:f,center:f+s/2}},calculateBarIndexPixels:function(n,t,i){var f=this,o=i.scale,e=f.chart.isCombo,s=f.getStackIndex(n),r=o.getPixelForValue(null,t,n,e),u=i.barSize;return r-=e?i.tickSize/2:0,r+=i.fullBarSize*s,r+=i.categorySpacing/2,r+=i.barSpacing/2,{size:u,base:r,head:r+u,center:r+u/2}},draw:function(){var n,r=this,u=r.chart,f=r.getMeta().data,e=r.getDataset(),o=f.length,i=0;for(t.canvas.clipArea(u.ctx,u.chartArea);i<o;++i)n=e.data[i],null===n||void 0===n||isNaN(n)||f[i].draw();t.canvas.unclipArea(u.ctx)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.hoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.hoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.hoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,i=n.custom||{},f=n._model,e=this.chart.options.elements.rectangle;f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.backgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.borderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.borderWidth,u,e.borderWidth)}});n.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(n,t){var i="";return n.length>0&&(n[0].yLabel?i=n[0].yLabel:t.labels.length>0&&n[0].index<t.labels.length&&(i=t.labels[n[0].index])),i},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i+": "+n.xLabel}}}};n.controllers.horizontalBar=n.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bubble={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"",r=t.datasets[n.datasetIndex].data[n.index];return i+": ("+n.xLabel+", "+n.yLabel+", "+r.r+")"}}}};n.controllers.bubble=n.DatasetController.extend({dataElementType:n.elements.Point,update:function(n){var i=this,r=i.getMeta(),u=r.data;t.each(u,function(t,r){i.updateElement(t,r,n)})},updateElement:function(i,r,u){var f=this,a=f.getMeta(),h=f.getScaleForId(a.xAxisID),c=f.getScaleForId(a.yAxisID),e=i.custom||{},v=f.getDataset(),o=v.data[r],y=f.chart.options.elements.point,l=f.index,s;t.extend(i,{_xScale:h,_yScale:c,_datasetIndex:l,_index:r,_model:{x:u?h.getPixelForDecimal(.5):h.getPixelForValue("object"==typeof o?o:NaN,r,l,f.chart.isCombo),y:u?c.getBasePixel():c.getPixelForValue(o,r,l),radius:u?0:e.radius?e.radius:f.getRadius(o),hitRadius:e.hitRadius?e.hitRadius:t.getValueAtIndexOrDefault(v.hitRadius,r,y.hitRadius)}});n.DatasetController.prototype.removeHoverStyle.call(f,i,y);s=i._model;s.skip=e.skip?e.skip:isNaN(s.x)||isNaN(s.y);i.pivot()},getRadius:function(n){return n.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var r=this;n.DatasetController.prototype.setHoverStyle.call(r,i);var u=r.chart.data.datasets[i._datasetIndex],f=i._index,e=i.custom||{},o=i._model;o.radius=e.hoverRadius?e.hoverRadius:t.getValueAtIndexOrDefault(u.hoverRadius,f,r.chart.options.elements.point.hoverRadius)+r.getRadius(u.data[f])},removeHoverStyle:function(t){var i=this;n.DatasetController.prototype.removeHoverStyle.call(i,t,i.chart.options.elements.point);var u=i.chart.data.datasets[t._datasetIndex].data[t._index],r=t.custom||{},f=t._model;f.radius=r.radius?r.radius:i.getRadius(u)}})}},{}],17:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c&&c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var r,u=t.index,f=this.chart,i=0,e=(f.data.datasets||[]).length;i<e;++i)r=f.getDatasetMeta(i),r.data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(n,i){var r=i.labels[n.index],u=": "+i.datasets[n.datasetIndex].data[n.index];return t.isArray(r)?(r=r.slice(),r[0]+=u):r+=u,r}}}};i.pie=t.clone(i.doughnut);t.extend(i.pie,{cutoutPercentage:0});n.controllers.doughnut=n.controllers.pie=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,getRingIndex:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&++i;return i},update:function(n){var u=this,i=u.chart,h=i.chartArea,c=i.options,w=c.elements.arc,b=h.right-h.left-w.borderWidth,k=h.bottom-h.top-w.borderWidth,d=Math.min(b,k),v={x:0,y:0},y=u.getMeta(),p=c.cutoutPercentage,g=c.circumference,r;if(g<2*Math.PI){r=c.rotation%(2*Math.PI)+2*Math.PI*(r>=Math.PI?-1:r<-Math.PI?1:0);var f=r+g,e={x:Math.cos(r),y:Math.sin(r)},o={x:Math.cos(f),y:Math.sin(f)},tt=r<=0&&0<=f||r<=2*Math.PI&&2*Math.PI<=f,it=r<=.5*Math.PI&&.5*Math.PI<=f||r<=2.5*Math.PI&&2.5*Math.PI<=f,rt=r<=-Math.PI&&-Math.PI<=f||r<=Math.PI&&Math.PI<=f,ut=r<=.5*-Math.PI&&.5*-Math.PI<=f||r<=1.5*Math.PI&&1.5*Math.PI<=f,s=p/100,l={x:rt?-1:Math.min(e.x*(e.x<0?1:s),o.x*(o.x<0?1:s)),y:ut?-1:Math.min(e.y*(e.y<0?1:s),o.y*(o.y<0?1:s))},a={x:tt?1:Math.max(e.x*(e.x>0?1:s),o.x*(o.x>0?1:s)),y:it?1:Math.max(e.y*(e.y>0?1:s),o.y*(o.y>0?1:s))},nt={width:.5*(a.x-l.x),height:.5*(a.y-l.y)};d=Math.min(b/nt.width,k/nt.height);v={x:(a.x+l.x)*-.5,y:(a.y+l.y)*-.5}}i.borderWidth=u.getMaxBorderWidth(y.data);i.outerRadius=Math.max((d-i.borderWidth)/2,0);i.innerRadius=Math.max(p?i.outerRadius/100*p:0,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();i.offsetX=v.x*i.outerRadius;i.offsetY=v.y*i.outerRadius;y.total=u.calculateTotal();u.outerRadius=i.outerRadius-i.radiusLength*u.getRingIndex(u.index);u.innerRadius=Math.max(u.outerRadius-i.radiusLength,0);t.each(y.data,function(t,i){u.updateElement(t,i,n)})},updateElement:function(n,i,r){var u=this,f=u.chart,s=f.chartArea,e=f.options,h=e.animation,l=(s.left+s.right)/2,a=(s.top+s.bottom)/2,v=e.rotation,y=e.rotation,c=u.getDataset(),p=r&&h.animateRotate?0:n.hidden?0:u.calculateCircumference(c.data[i])*(e.circumference/(2*Math.PI)),w=r&&h.animateScale?0:u.innerRadius,b=r&&h.animateScale?0:u.outerRadius,k=t.getValueAtIndexOrDefault,o;t.extend(n,{_datasetIndex:u.index,_index:i,_model:{x:l+f.offsetX,y:a+f.offsetY,startAngle:v,endAngle:y,circumference:p,outerRadius:b,innerRadius:w,label:k(c.label,i,f.data.labels[i])}});o=n._model;this.removeHoverStyle(n);r&&h.animateRotate||(o.startAngle=0===i?e.rotation:u.getMeta().data[i-1]._model.endAngle,o.endAngle=o.startAngle+o.circumference);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var n,r=this.getDataset(),u=this.getMeta(),i=0;return t.each(u.data,function(t,u){n=r.data[u];isNaN(n)||t.hidden||(i+=Math.abs(n))}),i},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?2*Math.PI*(n/t):0},getMaxBorderWidth:function(n){for(var r,u,t=0,f=this.index,e=n.length,i=0;i<e;i++)r=n[i]._model?n[i]._model.borderWidth:0,u=n[i]._chart?n[i]._chart.config.data.datasets[f].hoverBorderWidth:0,t=r>t?r:t,t=u>t?u:t;return t}})}},{}],18:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.getValueOrDefault(n.showLine,i.showLines)}var t=n.helpers;n.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}};n.controllers.line=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,update:function(n){var e,c,r,o=this,l=o.getMeta(),s=l.dataset,h=l.data||[],a=o.chart.options,f=a.elements.line,y=o.getScaleForId(l.yAxisID),u=o.getDataset(),v=i(u,a);for(v&&(r=s.custom||{},void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),s._scale=y,s._datasetIndex=o.index,s._children=h,s._model={spanGaps:u.spanGaps?u.spanGaps:a.spanGaps,tension:r.tension?r.tension:t.getValueOrDefault(u.lineTension,f.tension),backgroundColor:r.backgroundColor?r.backgroundColor:u.backgroundColor||f.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:u.borderWidth||f.borderWidth,borderColor:r.borderColor?r.borderColor:u.borderColor||f.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:u.borderCapStyle||f.borderCapStyle,borderDash:r.borderDash?r.borderDash:u.borderDash||f.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:u.borderDashOffset||f.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:u.borderJoinStyle||f.borderJoinStyle,fill:r.fill?r.fill:void 0!==u.fill?u.fill:f.fill,steppedLine:r.steppedLine?r.steppedLine:t.getValueOrDefault(u.steppedLine,f.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:t.getValueOrDefault(u.cubicInterpolationMode,f.cubicInterpolationMode)},s.pivot()),e=0,c=h.length;e<c;++e)o.updateElement(h[e],e,n);for(v&&0!==s._model.tension&&o.updateBezierControlPoints(),e=0,c=h.length;e<c;++e)h[e].pivot()},getPointBackgroundColor:function(n,i){var r=this.chart.options.elements.point.backgroundColor,u=this.getDataset(),f=n.custom||{};return f.backgroundColor?r=f.backgroundColor:u.pointBackgroundColor?r=t.getValueAtIndexOrDefault(u.pointBackgroundColor,i,r):u.backgroundColor&&(r=u.backgroundColor),r},getPointBorderColor:function(n,i){var r=this.chart.options.elements.point.borderColor,u=this.getDataset(),f=n.custom||{};return f.borderColor?r=f.borderColor:u.pointBorderColor?r=t.getValueAtIndexOrDefault(u.pointBorderColor,i,r):u.borderColor&&(r=u.borderColor),r},getPointBorderWidth:function(n,i){var r=this.chart.options.elements.point.borderWidth,u=this.getDataset(),f=n.custom||{};return isNaN(f.borderWidth)?isNaN(u.pointBorderWidth)?isNaN(u.borderWidth)||(r=u.borderWidth):r=t.getValueAtIndexOrDefault(u.pointBorderWidth,i,r):r=f.borderWidth,r},updateElement:function(n,i,r){var s,h,f=this,e=f.getMeta(),o=n.custom||{},u=f.getDataset(),c=f.index,l=u.data[i],v=f.getScaleForId(e.yAxisID),y=f.getScaleForId(e.xAxisID),a=f.chart.options.elements.point,p=f.chart.data.labels||[],w=1===p.length||1===u.data.length||f.chart.isCombo;void 0!==u.radius&&void 0===u.pointRadius&&(u.pointRadius=u.radius);void 0!==u.hitRadius&&void 0===u.pointHitRadius&&(u.pointHitRadius=u.hitRadius);s=y.getPixelForValue("object"==typeof l?l:NaN,i,c,w);h=r?v.getBasePixel():f.calculatePointY(l,i,c);n._xScale=y;n._yScale=v;n._datasetIndex=c;n._index=i;n._model={x:s,y:h,skip:o.skip||isNaN(s)||isNaN(h),radius:o.radius||t.getValueAtIndexOrDefault(u.pointRadius,i,a.radius),pointStyle:o.pointStyle||t.getValueAtIndexOrDefault(u.pointStyle,i,a.pointStyle),backgroundColor:f.getPointBackgroundColor(n,i),borderColor:f.getPointBorderColor(n,i),borderWidth:f.getPointBorderWidth(n,i),tension:e.dataset._model?e.dataset._model.tension:0,steppedLine:!!e.dataset._model&&e.dataset._model.steppedLine,hitRadius:o.hitRadius||t.getValueAtIndexOrDefault(u.pointHitRadius,i,a.hitRadius)}},calculatePointY:function(n,t,i){var u,c,o,s=this,h=s.chart,v=s.getMeta(),r=s.getScaleForId(v.yAxisID),l=0,a=0,f,e;if(r.options.stacked){for(u=0;u<i;u++)(c=h.data.datasets[u],o=h.getDatasetMeta(u),"line"===o.type&&o.yAxisID===r.id&&h.isDatasetVisible(u))&&(f=Number(r.getRightValue(c.data[t])),f<0?a+=f||0:l+=f||0);return e=Number(r.getRightValue(n)),e<0?r.getPixelForValue(a+e):r.getPixelForValue(l+e)}return r.getPixelForValue(n)},updateBezierControlPoints:function(){function e(n,t,i){return Math.max(Math.min(n,i),t)}var i,o,c,n,f,h=this,s=h.getMeta(),u=h.chart.chartArea,r=s.data||[];if(s.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),"monotone"===s.dataset._model.cubicInterpolationMode)t.splineCurveMonotone(r);else for(i=0,o=r.length;i<o;++i)c=r[i],n=c._model,f=t.splineCurve(t.previousItem(r,i)._model,n,t.nextItem(r,i)._model,s.dataset._model.tension),n.controlPointPreviousX=f.previous.x,n.controlPointPreviousY=f.previous.y,n.controlPointNextX=f.next.x,n.controlPointNextY=f.next.y;if(h.chart.options.elements.line.capBezierPoints)for(i=0,o=r.length;i<o;++i)n=r[i]._model,n.controlPointPreviousX=e(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=e(n.controlPointPreviousY,u.top,u.bottom),n.controlPointNextX=e(n.controlPointNextX,u.left,u.right),n.controlPointNextY=e(n.controlPointNextY,u.top,u.bottom)},draw:function(){var r=this,t=r.chart,f=r.getMeta(),e=f.data||[],o=t.chartArea,s=e.length,u=0;for(n.canvasHelpers.clipArea(t.ctx,o),i(r.getDataset(),t.options)&&f.dataset.draw(),n.canvasHelpers.unclipArea(t.ctx);u<s;++u)e[u].draw(o)},setHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,f=n.custom||{},i=n._model;i.radius=f.hoverRadius||t.getValueAtIndexOrDefault(r.pointHoverRadius,u,this.chart.options.elements.point.hoverRadius);i.backgroundColor=f.hoverBackgroundColor||t.getValueAtIndexOrDefault(r.pointHoverBackgroundColor,u,t.getHoverColor(i.backgroundColor));i.borderColor=f.hoverBorderColor||t.getValueAtIndexOrDefault(r.pointHoverBorderColor,u,t.getHoverColor(i.borderColor));i.borderWidth=f.hoverBorderWidth||t.getValueAtIndexOrDefault(r.pointHoverBorderWidth,u,i.borderWidth)},removeHoverStyle:function(n){var i=this,r=i.chart.data.datasets[n._datasetIndex],u=n._index,e=n.custom||{},f=n._model;void 0!==r.radius&&void 0===r.pointRadius&&(r.pointRadius=r.radius);f.radius=e.radius||t.getValueAtIndexOrDefault(r.pointRadius,u,i.chart.options.elements.point.radius);f.backgroundColor=i.getPointBackgroundColor(n,u);f.borderColor=i.getPointBorderColor(n,u);f.borderWidth=i.getPointBorderWidth(n,u)}})}},{}],19:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.polarArea={scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,aspectRatio:1,legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var r,e=t.index,u=this.chart,i=0,f=(u.data.datasets||[]).length;i<f;++i)r=u.getDatasetMeta(i),r.data[e].hidden=!r.data[e].hidden;u.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}};n.controllers.polarArea=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,update:function(n){var r=this,i=r.chart,u=i.chartArea,e=r.getMeta(),f=i.options,o=f.elements.arc,s=Math.min(u.right-u.left,u.bottom-u.top);i.outerRadius=Math.max((s-o.borderWidth/2)/2,0);i.innerRadius=Math.max(f.cutoutPercentage?i.outerRadius/100*f.cutoutPercentage:1,0);i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount();r.outerRadius=i.outerRadius-i.radiusLength*r.index;r.innerRadius=r.outerRadius-i.radiusLength;e.count=r.countVisibleElements();t.each(e.data,function(t,i){r.updateElement(t,i,n)})},updateElement:function(n,i,r){for(var u=this,s=u.chart,e=u.getDataset(),l=s.options,h=l.animation,f=s.scale,w=t.getValueAtIndexOrDefault,a=s.data.labels,v=u.calculateCircumference(e.data[i]),b=f.xCenter,k=f.yCenter,y=0,d=u.getMeta(),o=0;o<i;++o)isNaN(e.data[o])||d.data[o].hidden||++y;var c=l.startAngle,g=n.hidden?0:f.getDistanceFromCenterForValue(e.data[i]),p=c+v*y,nt=p+(n.hidden?0:v),tt=h.animateScale?0:f.getDistanceFromCenterForValue(e.data[i]);t.extend(n,{_datasetIndex:u.index,_index:i,_scale:f,_model:{x:b,y:k,innerRadius:0,outerRadius:r?tt:g,startAngle:r&&h.animateRotate?c:p,endAngle:r&&h.animateRotate?c:nt,label:w(a,i,a[i])}});u.removeHoverStyle(n);n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),r=this.getMeta(),n=0;return t.each(r.data,function(t,r){isNaN(i.data[r])||t.hidden||n++}),n},calculateCircumference:function(n){var t=this.getMeta().count;return t>0&&!isNaN(n)?2*Math.PI/t:0}})}},{}],20:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}};n.controllers.radar=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,linkScales:t.noop,update:function(n){var f=this,e=f.getMeta(),s=e.dataset,o=e.data,i=s.custom||{},r=f.getDataset(),u=f.chart.options.elements.line,h=f.chart.scale;void 0!==r.tension&&void 0===r.lineTension&&(r.lineTension=r.tension);t.extend(e.dataset,{_datasetIndex:f.index,_scale:h,_children:o,_loop:!0,_model:{tension:i.tension?i.tension:t.getValueOrDefault(r.lineTension,u.tension),backgroundColor:i.backgroundColor?i.backgroundColor:r.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:r.borderWidth||u.borderWidth,borderColor:i.borderColor?i.borderColor:r.borderColor||u.borderColor,fill:i.fill?i.fill:void 0!==r.fill?r.fill:u.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:r.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash?i.borderDash:r.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:r.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:r.borderJoinStyle||u.borderJoinStyle}});e.dataset.pivot();t.each(o,function(t,i){f.updateElement(t,i,n)},f);f.updateBezierControlPoints()},updateElement:function(n,i,r){var o=this,u=n.custom||{},f=o.getDataset(),s=o.chart.scale,e=o.chart.options.elements.point,h=s.getPointPositionForValue(i,f.data[i]);void 0!==f.radius&&void 0===f.pointRadius&&(f.pointRadius=f.radius);void 0!==f.hitRadius&&void 0===f.pointHitRadius&&(f.pointHitRadius=f.hitRadius);t.extend(n,{_datasetIndex:o.index,_index:i,_scale:s,_model:{x:r?s.xCenter:h.x,y:r?s.yCenter:h.y,tension:u.tension?u.tension:t.getValueOrDefault(f.lineTension,o.chart.options.elements.line.tension),radius:u.radius?u.radius:t.getValueAtIndexOrDefault(f.pointRadius,i,e.radius),backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(f.pointBackgroundColor,i,e.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(f.pointBorderColor,i,e.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(f.pointBorderWidth,i,e.borderWidth),pointStyle:u.pointStyle?u.pointStyle:t.getValueAtIndexOrDefault(f.pointStyle,i,e.pointStyle),hitRadius:u.hitRadius?u.hitRadius:t.getValueAtIndexOrDefault(f.pointHitRadius,i,e.hitRadius)}});n._model.skip=u.skip?u.skip:isNaN(n._model.x)||isNaN(n._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,i=this.getMeta();t.each(i.data,function(r,u){var f=r._model,e=t.splineCurve(t.previousItem(i.data,u,!0)._model,f,t.nextItem(i.data,u,!0)._model,f.tension);f.controlPointPreviousX=Math.max(Math.min(e.previous.x,n.right),n.left);f.controlPointPreviousY=Math.max(Math.min(e.previous.y,n.bottom),n.top);f.controlPointNextX=Math.max(Math.min(e.next.x,n.right),n.left);f.controlPointNextY=Math.max(Math.min(e.next.y,n.bottom),n.top);r.pivot()})},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},f=n._index,r=n._model;r.radius=i.hoverRadius?i.hoverRadius:t.getValueAtIndexOrDefault(u.pointHoverRadius,f,this.chart.options.elements.point.hoverRadius);r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.pointHoverBackgroundColor,f,t.getHoverColor(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.pointHoverBorderColor,f,t.getHoverColor(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.pointHoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},u=n._index,f=n._model,e=this.chart.options.elements.point;f.radius=i.radius?i.radius:t.getValueAtIndexOrDefault(r.pointRadius,u,e.radius);f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.pointBackgroundColor,u,e.backgroundColor);f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.pointBorderColor,u,e.borderColor);f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.pointBorderWidth,u,e.borderWidth)}})}},{}],21:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop};n.Animation=n.Element.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null});n.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(n,t,i,r){var u,e,f=this.animations;for(t.chart=n,r||(n.animating=!0),u=0,e=f.length;u<e;++u)if(f[u].chart===n)return void(f[u]=t);f.push(t);1===f.length&&this.requestAnimationFrame()},cancelAnimation:function(n){var i=t.findIndex(this.animations,function(t){return t.chart===n});i!==-1&&(this.animations.splice(i,1),n.animating=!1)},requestAnimationFrame:function(){var n=this;null===n.request&&(n.request=t.requestAnimFrame.call(window,function(){n.request=null;n.startDigest()}))},startDigest:function(){var n=this,r=Date.now(),t=0,i;n.dropFrames>1&&(t=Math.floor(n.dropFrames),n.dropFrames=n.dropFrames%1);n.advance(1+t);i=Date.now();n.dropFrames+=(i-r)/n.frameDuration;n.animations.length>0&&n.requestAnimationFrame()},advance:function(n){for(var i,r,f=this.animations,u=0;u<f.length;)i=f[u],r=i.chart,i.currentStep=(i.currentStep||0)+n,i.currentStep=Math.min(i.currentStep,i.numSteps),t.callback(i.render,[r,i],r),t.callback(i.onAnimationProgress,[i],r),i.currentStep>=i.numSteps?(t.callback(i.onAnimationComplete,[i],r),r.animating=!1,f.splice(u,1)):++u}};Object.defineProperty(n.Animation.prototype,"animationObject",{get:function(){return this}});Object.defineProperty(n.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(n){this.chart=n}})}},{}],22:[function(n,t){"use strict";t.exports=function(n){var t=n.canvasHelpers={};t.drawPoint=function(t,i,r,u,f){var l,h,o,s,c,e;if("object"==typeof i&&(l=i.toString(),"[object HTMLImageElement]"===l||"[object HTMLCanvasElement]"===l))return void t.drawImage(i,u-i.width/2,f-i.height/2,i.width,i.height);if(!(isNaN(r)||r<=0)){switch(i){default:t.beginPath();t.arc(u,f,r,0,2*Math.PI);t.closePath();t.fill();break;case"triangle":t.beginPath();h=3*r/Math.sqrt(3);c=h*Math.sqrt(3)/2;t.moveTo(u-h/2,f+c/3);t.lineTo(u+h/2,f+c/3);t.lineTo(u,f-2*c/3);t.closePath();t.fill();break;case"rect":e=1/Math.SQRT2*r;t.beginPath();t.fillRect(u-e,f-e,2*e,2*e);t.strokeRect(u-e,f-e,2*e,2*e);break;case"rectRounded":var a=r/Math.SQRT2,y=u-a,p=f-a,v=Math.SQRT2*r;n.helpers.drawRoundedRectangle(t,y,p,v,v,r/2);t.fill();break;case"rectRot":e=1/Math.SQRT2*r;t.beginPath();t.moveTo(u-e,f);t.lineTo(u,f+e);t.lineTo(u+e,f);t.lineTo(u,f-e);t.closePath();t.fill();break;case"cross":t.beginPath();t.moveTo(u,f+r);t.lineTo(u,f-r);t.moveTo(u-r,f);t.lineTo(u+r,f);t.closePath();break;case"crossRot":t.beginPath();o=Math.cos(Math.PI/4)*r;s=Math.sin(Math.PI/4)*r;t.moveTo(u-o,f-s);t.lineTo(u+o,f+s);t.moveTo(u-o,f+s);t.lineTo(u+o,f-s);t.closePath();break;case"star":t.beginPath();t.moveTo(u,f+r);t.lineTo(u,f-r);t.moveTo(u-r,f);t.lineTo(u+r,f);o=Math.cos(Math.PI/4)*r;s=Math.sin(Math.PI/4)*r;t.moveTo(u-o,f-s);t.lineTo(u+o,f+s);t.moveTo(u-o,f+s);t.lineTo(u+o,f-s);t.closePath();break;case"line":t.beginPath();t.moveTo(u-r,f);t.lineTo(u+r,f);t.closePath();break;case"dash":t.beginPath();t.moveTo(u,f);t.lineTo(u+r,f);t.closePath()}t.stroke()}};t.clipArea=function(n,t){n.save();n.beginPath();n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top);n.clip()};t.unclipArea=function(n){n.restore()};t.lineTo=function(n,t,i,r){return i.steppedLine?("after"===i.steppedLine?n.lineTo(t.x,i.y):n.lineTo(i.x,t.y),void n.lineTo(i.x,i.y)):i.tension?void n.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?i.controlPointNextX:i.controlPointPreviousX,r?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):void n.lineTo(i.x,i.y)};n.helpers.canvas=t}},{}],23:[function(n,t){"use strict";t.exports=function(n){function f(i){i=i||{};var r=i.data=i.data||{};return r.datasets=r.datasets||[],r.labels=r.labels||[],i.options=t.configMerge(n.defaults.global,n.defaults[i.type],i.options||{}),i}function e(n){var t=n.options;t.scale?n.scale.options=t.scale:t.scales&&t.scales.xAxes.concat(t.scales.yAxes).forEach(function(t){n.scales[t.id].options=t});n.tooltip._options=t.tooltips}function u(n){return"top"===n||"bottom"===n}var t=n.helpers,i=n.plugins,r=n.platform;n.types={};n.instances={};n.controllers={};t.extend(n.prototype,{construct:function(i,u){var e=this;u=f(u);var s=r.acquireContext(i,u),o=s&&s.canvas,h=o&&o.height,c=o&&o.width;return e.id=t.uid(),e.ctx=s,e.canvas=o,e.config=u,e.width=c,e.height=h,e.aspectRatio=h?c/h:null,e.options=u.options,e._bufferedRender=!1,e.chart=e,e.controller=e,n.instances[e.id]=e,Object.defineProperty(e,"data",{get:function(){return e.config.data},set:function(n){e.config.data=n}}),s&&o?(e.initialize(),void e.update()):void console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var n=this;return i.notify(n,"beforeInit"),t.retinaScale(n),n.bindEvents(),n.options.responsive&&n.resize(!0),n.ensureScalesHaveIDs(),n.buildScales(),n.initToolTip(),i.notify(n,"afterInit"),n},clear:function(){return t.clear(this),this},stop:function(){return n.animationService.cancelAnimation(this),this},resize:function(n){var r=this,h=r.options,u=r.canvas,s=h.maintainAspectRatio&&r.aspectRatio||null,f=Math.floor(t.getMaximumWidth(u)),e=Math.floor(s?f/s:t.getMaximumHeight(u)),o;r.width===f&&r.height===e||(u.width=r.width=f,u.height=r.height=e,u.style.width=f+"px",u.style.height=e+"px",t.retinaScale(r),n)||(o={width:f,height:e},i.notify(r,"resize",[o]),r.options.onResize&&r.options.onResize(r,o),r.stop(),r.update(r.options.responsiveAnimationDuration))},ensureScalesHaveIDs:function(){var i=this.options,r=i.scales||{},n=i.scale;t.each(r.xAxes,function(n,t){n.id=n.id||"x-axis-"+t});t.each(r.yAxes,function(n,t){n.id=n.id||"y-axis-"+t});n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,r=i.options,e=i.scales={},f=[];r.scales&&(f=f.concat((r.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category",dposition:"bottom"}}),(r.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear",dposition:"left"}})));r.scale&&f.push({options:r.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"});t.each(f,function(r){var f=r.options,h=t.getValueOrDefault(f.type,r.dtype),s=n.scaleService.getScaleConstructor(h),o;s&&(u(f.position)!==u(r.dposition)&&(f.position=r.dposition),o=new s({id:f.id,options:f,ctx:i.ctx,chart:i}),e[o.id]=o,r.isDefault&&(i.scale=o))});n.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,r=[],f=[],u;if(t.each(i.data.datasets,function(t,u){var e=i.getDatasetMeta(u),o;if(e.type||(e.type=t.type||i.config.type),r.push(e.type),e.controller)e.controller.updateIndex(u);else{if(o=n.controllers[e.type],void 0===o)throw new Error('"'+e.type+'" is not a chart type.');e.controller=new o(i,u);f.push(e.controller)}},i),r.length>1)for(u=1;u<r.length;u++)if(r[u]!==r[u-1]){i.isCombo=!0;break}return f},resetElements:function(){var n=this;t.each(n.data.datasets,function(t,i){n.getDatasetMeta(i).controller.reset()},n)},reset:function(){this.resetElements();this.tooltip.initialize()},update:function(n,r){var u=this,f;(e(u),i.notify(u,"beforeUpdate")!==!1)&&(u.tooltip._data=u.data,f=u.buildOrUpdateControllers(),t.each(u.data.datasets,function(n,t){u.getDatasetMeta(t).controller.buildOrUpdateElements()},u),u.updateLayout(),t.each(f,function(n){n.reset()}),u.updateDatasets(),i.notify(u,"afterUpdate"),u._bufferedRender?u._bufferedRequest={lazy:r,duration:n}:u.render(n,r))},updateLayout:function(){var t=this;i.notify(t,"beforeLayout")!==!1&&(n.layoutService.update(this,this.width,this.height),i.notify(t,"afterScaleUpdate"),i.notify(t,"afterLayout"))},updateDatasets:function(){var n=this,t,r;if(i.notify(n,"beforeDatasetsUpdate")!==!1){for(t=0,r=n.data.datasets.length;t<r;++t)n.updateDataset(t);i.notify(n,"afterDatasetsUpdate")}},updateDataset:function(n){var t=this,r=t.getDatasetMeta(n),u={meta:r,index:n};i.notify(t,"beforeDatasetUpdate",[u])!==!1&&(r.controller.update(),i.notify(t,"afterDatasetUpdate",[u]))},render:function(r,u){var f=this,e,o,s;if(i.notify(f,"beforeRender")!==!1)return e=f.options.animation,o=function(n){i.notify(f,"afterRender");t.callback(e&&e.onComplete,[n],f)},e&&("undefined"!=typeof r&&0!==r||"undefined"==typeof r&&0!==e.duration)?(s=new n.Animation({numSteps:(r||e.duration)/16.66,easing:e.easing,render:function(n,i){var f=t.easingEffects[i.easing],r=i.currentStep,u=r/i.numSteps;n.draw(f(u),u,r)},onAnimationProgress:e.onProgress,onAnimationComplete:o}),n.animationService.addAnimation(f,s,r,u)):(f.draw(),o(new n.Animation({numSteps:0,chart:f}))),f},draw:function(n){var r=this;r.clear();void 0!==n&&null!==n||(n=1);r.transition(n);i.notify(r,"beforeDraw",[n])!==!1&&(t.each(r.boxes,function(n){n.draw(r.chartArea)},r),r.scale&&r.scale.draw(),r.drawDatasets(n),r.tooltip.draw(),i.notify(r,"afterDraw",[n]))},transition:function(n){for(var t=this,i=0,r=(t.data.datasets||[]).length;i<r;++i)t.isDatasetVisible(i)&&t.getDatasetMeta(i).controller.transition(n);t.tooltip.transition(n)},drawDatasets:function(n){var t=this,r;if(i.notify(t,"beforeDatasetsDraw",[n])!==!1){for(r=(t.data.datasets||[]).length-1;r>=0;--r)t.isDatasetVisible(r)&&t.drawDataset(r,n);i.notify(t,"afterDatasetsDraw",[n])}},drawDataset:function(n,t){var r=this,u=r.getDatasetMeta(n),f={meta:u,index:n,easingValue:t};i.notify(r,"beforeDatasetDraw",[f])!==!1&&(u.controller.draw(t),i.notify(r,"afterDatasetDraw",[f]))},getElementAtEvent:function(t){return n.Interaction.modes.single(this,t)},getElementsAtEvent:function(t){return n.Interaction.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return n.Interaction.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,i,r){var u=n.Interaction.modes[i];return"function"==typeof u?u(this,t,r):[]},getDatasetAtEvent:function(t){return n.Interaction.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(n){var r=this,t=r.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[r.id],i||(i=t._meta[r.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,n=0,i=this.data.datasets.length;n<i;++n)this.isDatasetVisible(n)&&t++;return t},isDatasetVisible:function(n){var t=this.getDatasetMeta(n);return"boolean"==typeof t.hidden?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var f,e,o,u=this,s=u.canvas;for(u.stop(),e=0,o=u.data.datasets.length;e<o;++e)f=u.getDatasetMeta(e),f.controller&&(f.controller.destroy(),f.controller=null);s&&(u.unbindEvents(),t.clear(u),r.releaseContext(u.ctx),u.canvas=null,u.ctx=null);i.notify(u,"destroy");delete n.instances[u.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new n.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t);t.tooltip.initialize()},bindEvents:function(){var n=this,u=n._listeners={},i=function(){n.eventHandler.apply(n,arguments)};t.each(n.options.events,function(t){r.addEventListener(n,t,i);u[t]=i});n.options.responsive&&(i=function(){n.resize()},r.addEventListener(n,"resize",i),u.resize=i)},unbindEvents:function(){var n=this,i=n._listeners;i&&(delete n._listeners,t.each(i,function(t,i){r.removeEventListener(n,i,t)}))},updateHoverStyle:function(n,t,i){for(var r,e=i?"setHoverStyle":"removeHoverStyle",u=0,f=n.length;u<f;++u)r=n[u],r&&this.getDatasetMeta(r._datasetIndex).controller[e](r)},eventHandler:function(n){var t=this,f=t.tooltip,u,r;if(i.notify(t,"beforeEvent",[n])!==!1)return t._bufferedRender=!0,t._bufferedRequest=null,u=t.handleEvent(n),u|=f&&f.handleEvent(n),i.notify(t,"afterEvent",[n]),r=t._bufferedRequest,r?t.render(r.duration,r.lazy):u&&!t.animating&&(t.stop(),t.render(t.options.hover.animationDuration,!0)),t._bufferedRender=!1,t._bufferedRequest=null,t},handleEvent:function(n){var i=this,u=i.options||{},r=u.hover,f=!1;return i.lastActive=i.lastActive||[],i.active="mouseout"===n.type?[]:i.getElementsAtEventForMode(n,r.mode,r),r.onHover&&r.onHover.call(i,n.native,i.active),"mouseup"!==n.type&&"click"!==n.type||u.onClick&&u.onClick.call(i,n.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,r.mode,!1),i.active.length&&r.mode&&i.updateHoverStyle(i.active,r.mode,!0),f=!t.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,f}});n.Controller=n}},{}],24:[function(n,t){"use strict";t.exports=function(n){function u(n,i){return n._chartjs?void n._chartjs.listeners.push(i):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[i]}}),void r.forEach(function(i){var r="onData"+i.charAt(0).toUpperCase()+i.slice(1),u=n[i];Object.defineProperty(n,i,{configurable:!0,enumerable:!1,value:function(){var i=Array.prototype.slice.call(arguments),f=u.apply(this,i);return t.each(n._chartjs.listeners,function(n){"function"==typeof n[r]&&n[r].apply(n,i)}),f}})}))}function i(n,t){var f=n._chartjs,i,u;f&&(i=f.listeners,u=i.indexOf(t),u!==-1&&i.splice(u,1),i.length>0||(r.forEach(function(t){delete n[t]}),delete n._chartjs))}var t=n.helpers,r=["push","pop","shift","splice","unshift"];n.DatasetController=function(n,t){this.initialize(n,t)};t.extend(n.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(n,t){var i=this;i.chart=n;i.index=t;i.linkScales();i.addElements()},updateIndex:function(n){this.index=n},linkScales:function(){var n=this,t=n.getMeta(),i=n.getDataset();null===t.xAxisID&&(t.xAxisID=i.xAxisID||n.chart.options.scales.xAxes[0].id);null===t.yAxisID&&(t.yAxisID=i.yAxisID||n.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(n){return this.chart.scales[n]},reset:function(){this.update(!0)},destroy:function(){this._data&&i(this._data,this)},createMetaDataset:function(){var n=this,t=n.datasetElementType;return t&&new t({_chart:n.chart,_datasetIndex:n.index})},createMetaData:function(n){var t=this,i=t.dataElementType;return i&&new i({_chart:t.chart,_datasetIndex:t.index,_index:n})},addElements:function(){for(var t=this,i=t.getMeta(),f=t.getDataset().data||[],u=i.data,n=0,r=f.length;n<r;++n)u[n]=u[n]||t.createMetaData(n);i.dataset=i.dataset||t.createMetaDataset()},addElementAndReset:function(n){var t=this.createMetaData(n);this.getMeta().data.splice(n,0,t);this.updateElement(t,n,!0)},buildOrUpdateElements:function(){var n=this,r=n.getDataset(),t=r.data||(r.data=[]);n._data!==t&&(n._data&&i(n._data,n),u(t,n),n._data=t);n.resyncElements()},update:t.noop,transition:function(n){for(var t=this.getMeta(),r=t.data||[],u=r.length,i=0;i<u;++i)r[i].transition(n);t.dataset&&t.dataset.transition(n)},draw:function(){var n=this.getMeta(),i=n.data||[],r=i.length,t=0;for(n.dataset&&n.dataset.draw();t<r;++t)i[t].draw()},removeHoverStyle:function(n,i){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,r=n.custom||{},e=t.getValueAtIndexOrDefault,o=n._model;o.backgroundColor=r.backgroundColor?r.backgroundColor:e(u.backgroundColor,f,i.backgroundColor);o.borderColor=r.borderColor?r.borderColor:e(u.borderColor,f,i.borderColor);o.borderWidth=r.borderWidth?r.borderWidth:e(u.borderWidth,f,i.borderWidth)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},e=t.getValueAtIndexOrDefault,o=t.getHoverColor,r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e(u.hoverBackgroundColor,f,o(r.backgroundColor));r.borderColor=i.hoverBorderColor?i.hoverBorderColor:e(u.hoverBorderColor,f,o(r.borderColor));r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e(u.hoverBorderWidth,f,r.borderWidth)},resyncElements:function(){var i=this,r=i.getMeta(),u=i.getDataset().data,n=r.data.length,t=u.length;t<n?r.data.splice(t,n-t):t>n&&i.insertElements(n,t-n)},insertElements:function(n,t){for(var i=0;i<t;++i)this.addElementAndReset(n+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(n,t){this.getMeta().data.splice(n,t);this.insertElements(n,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}});n.DatasetController.extend=t.inherits}},{}],25:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function r(n,t,r,u){for(var f,c,o,e,h,l,a,y=Object.keys(r),s=0,v=y.length;s<v;++s)if(f=y[s],e=r[f],t.hasOwnProperty(f)||(t[f]=e),c=t[f],c!==e&&"_"!==f[0]){if(n.hasOwnProperty(f)||(n[f]=c),o=n[f],h=typeof e,h===typeof o)if("string"===h){if(l=i(o),l.valid&&(a=i(e),a.valid)){t[f]=a.mix(l,u).rgbString();continue}}else if("number"===h&&isFinite(o)&&isFinite(e)){t[f]=o+(e-o)*u;continue}t[f]=e}}var t=n.helpers;n.elements={};n.Element=function(n){t.extend(this,n);this.initialize.apply(this,arguments)};t.extend(n.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var n=this;return n._view||(n._view=t.clone(n._model)),n._start={},n},transition:function(n){var t=this,i=t._model,u=t._start,f=t._view;return i&&1!==n?(f||(f=t._view={}),u||(u=t._start={}),r(u,f,i,n),t):(t._view=i,t._start=null,t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}});n.Element.extend=t.inherits}},{3:3}],26:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function u(n,t,i){var r;return"string"==typeof n?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[i])):r=n,r}function f(n){return void 0!==n&&null!==n&&"none"!==n}function e(n,t,i){var r=document.defaultView,e=n.parentNode,o=r.getComputedStyle(n)[t],s=r.getComputedStyle(e)[t],h=f(o),c=f(s),l=Number.POSITIVE_INFINITY;return h||c?Math.min(h?u(o,n,i):l,c?u(s,e,i):l):"none"}var t=n.helpers={},r;t.each=function(n,i,r,u){var f,e,o;if(t.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)i.call(r,n[f],f);else for(f=0;f<e;f++)i.call(r,n[f],f);else if("object"==typeof n)for(o=Object.keys(n),e=o.length,f=0;f<e;f++)i.call(r,n[o[f]],o[f])};t.clone=function(n){var i={};return t.each(n,function(n,r){i[r]=t.isArray(n)?n.slice(0):"object"==typeof n&&null!==n?t.clone(n):n}),i};t.extend=function(n){for(var r=function(t,i){n[i]=t},i=1,u=arguments.length;i<u;i++)t.each(arguments[i],r);return n};t.configMerge=function(i){var r=t.clone(i);return t.each(Array.prototype.slice.call(arguments,1),function(i){t.each(i,function(i,u){var e=r.hasOwnProperty(u),f=e?r[u]:{};r[u]="scales"===u?t.scaleMerge(f,i):"scale"===u?t.configMerge(f,n.scaleService.getScaleDefaults(i.type),i):!e||"object"!=typeof f||t.isArray(f)||null===f||"object"!=typeof i||t.isArray(i)?i:t.configMerge(f,i)})}),r};t.scaleMerge=function(i,r){var u=t.clone(i);return t.each(r,function(i,r){"xAxes"===r||"yAxes"===r?u.hasOwnProperty(r)?t.each(i,function(i,f){var o=t.getValueOrDefault(i.type,"xAxes"===r?"category":"linear"),e=n.scaleService.getScaleDefaults(o);f>=u[r].length||!u[r][f].type?u[r].push(t.configMerge(e,i)):u[r][f]=i.type&&i.type!==u[r][f].type?t.configMerge(u[r][f],e,i):t.configMerge(u[r][f],i)}):(u[r]=[],t.each(i,function(i){var f=t.getValueOrDefault(i.type,"xAxes"===r?"category":"linear");u[r].push(t.configMerge(n.scaleService.getScaleDefaults(f),i))})):u[r]=u.hasOwnProperty(r)&&"object"==typeof u[r]&&null!==u[r]&&"object"==typeof i?t.configMerge(u[r],i):i}),u};t.getValueAtIndexOrDefault=function(n,i,r){return void 0===n||null===n?r:t.isArray(n)?i<n.length?n[i]:r:n};t.getValueOrDefault=function(n,t){return void 0===n?t:n};t.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i]===t)return i;return-1};t.where=function(n,i){if(t.isArray(n)&&Array.prototype.filter)return n.filter(i);var r=[];return t.each(n,function(n){i(n)&&r.push(n)}),r};t.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=void 0===i?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1};t.findNextWhere=function(n,t,i){var r,u;for(void 0!==i&&null!==i||(i=-1),r=i+1;r<n.length;r++)if(u=n[r],t(u))return u};t.findPreviousWhere=function(n,t,i){var r,u;for(void 0!==i&&null!==i||(i=n.length),r=i-1;r>=0;r--)if(u=n[r],t(u))return u};t.inherits=function(n){var r=this,i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return r.apply(this,arguments)},u=function(){this.constructor=i};return u.prototype=r.prototype,i.prototype=new u,i.extend=t.inherits,n&&t.extend(i.prototype,n),i.__super__=r.prototype,i};t.noop=function(){};t.uid=function(){var n=0;return function(){return n++}}();t.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)};t.almostEquals=function(n,t,i){return Math.abs(n-t)<i};t.almostWhole=function(n,t){var i=Math.round(n);return i-t<n&&i+t>n};t.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)};t.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)};t.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return n=+n,0===n||isNaN(n)?n:n>0?1:-1};t.log10=Math.log10?function(n){return Math.log10(n)}:function(n){return Math.log(n)/Math.LN10};t.toRadians=function(n){return n*(Math.PI/180)};t.toDegrees=function(n){return n*(180/Math.PI)};t.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=Math.atan2(r,i);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:f}};t.distanceBetweenPoints=function(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))};t.aliasPixel=function(n){return n%2==0?0:.5};t.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,h=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),c=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),o=h/(h+c),s=c/(h+c),l,a;return o=isNaN(o)?0:o,s=isNaN(s)?0:s,l=r*o,a=r*s,{previous:{x:u.x-l*(e.x-f.x),y:u.y-l*(e.y-f.y)},next:{x:u.x+a*(e.x-f.x),y:u.y+a*(e.y-f.y)}}};t.EPSILON=Number.EPSILON||1e-14;t.splineCurveMonotone=function(n){for(var f,i,u,e=(n||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,h,c,l,a,v,o,r=0;r<s;++r)(i=e[r],i.model.skip)||((f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,u&&!u.model.skip)&&(h=u.model.x-i.model.x,i.deltaK=0!==h?(u.model.y-i.model.y)/h:0),i.mK=!f||f.model.skip?i.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(i.deltaK)?0:(f.deltaK+i.deltaK)/2);for(r=0;r<s-1;++r)i=e[r],u=e[r+1],i.model.skip||u.model.skip||(t.almostEquals(i.deltaK,0,this.EPSILON)?i.mK=u.mK=0:(c=i.mK/i.deltaK,l=u.mK/i.deltaK,v=Math.pow(c,2)+Math.pow(l,2),v<=9||(a=3/Math.sqrt(v),i.mK=c*a*i.deltaK,u.mK=l*a*i.deltaK)));for(r=0;r<s;++r)i=e[r],i.model.skip||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(i.model.x-f.model.x)/3,i.model.controlPointPreviousX=i.model.x-o,i.model.controlPointPreviousY=i.model.y-o*i.mK),u&&!u.model.skip&&(o=(u.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+o,i.model.controlPointNextY=i.model.y+o*i.mK))};t.nextItem=function(n,t,i){return i?t>=n.length-1?n[0]:n[t+1]:t>=n.length-1?n[n.length-1]:n[t+1]};t.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]};t.niceNum=function(n,i){var u,f=Math.floor(t.log10(n)),r=n/Math.pow(10,f);return u=i?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,u*Math.pow(10,f)};r=t.easingEffects={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-1*n*(n-2)},easeInOutQuad:function(n){return(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1*((n=n/1-1)*n*n+1)},easeInOutCubic:function(n){return(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-1*((n=n/1-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2)},easeInQuint:function(n){return 1*(n/=1)*n*n*n*n},easeOutQuint:function(n){return 1*((n=n/1-1)*n*n*n*n+1)},easeInOutQuint:function(n){return(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-1*Math.cos(n/1*(Math.PI/2))+1},easeOutSine:function(n){return 1*Math.sin(n/1*(Math.PI/2))},easeInOutSine:function(n){return-.5*(Math.cos(Math.PI*n/1)-1)},easeInExpo:function(n){return 0===n?1:1*Math.pow(2,10*(n/1-1))},easeOutExpo:function(n){return 1===n?1:1*(-Math.pow(2,-10*n)+1)},easeInOutExpo:function(n){return 0===n?0:1===n?1:(n/=.5)<1?.5*Math.pow(2,10*(n-1)):.5*(-Math.pow(2,-10*--n)+2)},easeInCirc:function(n){return n>=1?n:-1*(Math.sqrt(1-(n/=1)*n)-1)},easeOutCirc:function(n){return 1*Math.sqrt(1-(n=n/1-1)*n)},easeInOutCirc:function(n){return(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1==(n/=1)?1:(t||(t=.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(n-=1))*Math.sin((1*n-r)*2*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:1==(n/=1)?1:(t||(t=.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((1*n-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return 0===n?0:2==(n/=.5)?1:(t||(t=1*.3*1.5),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1?-.5*i*Math.pow(2,10*(n-=1))*Math.sin((1*n-r)*2*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin((1*n-r)*2*Math.PI/t)*.5+1)},easeInBack:function(n){var t=1.70158;return 1*(n/=1)*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return 1*((n=n/1-1)*n*((t+1)*n+t)+1)},easeInOutBack:function(n){var t=1.70158;return(n/=.5)<1?.5*n*n*(((t*=1.525)+1)*n-t):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:function(n){return 1-r.easeOutBounce(1-n)},easeOutBounce:function(n){return(n/=1)<1/2.75?1*7.5625*n*n:n<2/2.75?1*(7.5625*(n-=1.5/2.75)*n+.75):n<2.5/2.75?1*(7.5625*(n-=2.25/2.75)*n+.9375):1*(7.5625*(n-=2.625/2.75)*n+.984375)},easeInOutBounce:function(n){return n<.5?.5*r.easeInBounce(2*n):.5*r.easeOutBounce(2*n-1)+.5}};t.requestAnimFrame=function(){return"undefined"==typeof window?function(n){n()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}();t.getRelativePosition=function(n,i){var f,e,s=n.originalEvent||n,r=n.currentTarget||n.srcElement,u=r.getBoundingClientRect(),o=s.touches;o&&o.length>0?(f=o[0].clientX,e=o[0].clientY):(f=s.clientX,e=s.clientY);var h=parseFloat(t.getStyle(r,"padding-left")),c=parseFloat(t.getStyle(r,"padding-top")),l=parseFloat(t.getStyle(r,"padding-right")),a=parseFloat(t.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return f=Math.round((f-u.left-h)/v*r.width/i.currentDevicePixelRatio),e=Math.round((e-u.top-c)/y*r.height/i.currentDevicePixelRatio),{x:f,y:e}};t.addEvent=function(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i};t.removeEvent=function(n,i,r){n.removeEventListener?n.removeEventListener(i,r,!1):n.detachEvent?n.detachEvent("on"+i,r):n["on"+i]=t.noop};t.getConstraintWidth=function(n){return e(n,"max-width","clientWidth")};t.getConstraintHeight=function(n){return e(n,"max-height","clientHeight")};t.getMaximumWidth=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-left"),10),e=parseInt(t.getStyle(i,"padding-right"),10),r=i.clientWidth-f-e,u=t.getConstraintWidth(n);return isNaN(u)?r:Math.min(r,u)};t.getMaximumHeight=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-top"),10),e=parseInt(t.getStyle(i,"padding-bottom"),10),r=i.clientHeight-f-e,u=t.getConstraintHeight(n);return isNaN(u)?r:Math.min(r,u)};t.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)};t.retinaScale=function(n){var t=n.currentDevicePixelRatio=window.devicePixelRatio||1;if(1!==t){var i=n.canvas,r=n.height,u=n.width;i.height=r*t;i.width=u*t;n.ctx.scale(t,t);i.style.height=r+"px";i.style.width=u+"px"}};t.clear=function(n){n.ctx.clearRect(0,0,n.width,n.height)};t.fontString=function(n,t,i){return t+" "+n+"px "+i};t.longestText=function(n,i,r,u){var o,f,e,s,h;if(u=u||{},o=u.data=u.data||{},f=u.garbageCollect=u.garbageCollect||[],u.font!==i&&(o=u.data={},f=u.garbageCollect=[],u.font=i),n.font=i,e=0,t.each(r,function(i){void 0!==i&&null!==i&&t.isArray(i)!==!0?e=t.measureText(n,o,f,e,i):t.isArray(i)&&t.each(i,function(i){void 0===i||null===i||t.isArray(i)||(e=t.measureText(n,o,f,e,i))})}),s=f.length/2,s>r.length){for(h=0;h<s;h++)delete o[f[h]];f.splice(0,s)}return e};t.measureText=function(n,t,i,r,u){var f=t[u];return f||(f=t[u]=n.measureText(u).width,i.push(u)),f>r&&(r=f),r};t.numberOfLabelLines=function(n){var i=1;return t.each(n,function(n){t.isArray(n)&&n.length>i&&(i=n.length)}),i};t.drawRoundedRectangle=function(n,t,i,r,u,f){n.beginPath();n.moveTo(t+f,i);n.lineTo(t+r-f,i);n.quadraticCurveTo(t+r,i,t+r,i+f);n.lineTo(t+r,i+u-f);n.quadraticCurveTo(t+r,i+u,t+r-f,i+u);n.lineTo(t+f,i+u);n.quadraticCurveTo(t,i+u,t,i+u-f);n.lineTo(t,i+f);n.quadraticCurveTo(t,i,t+f,i);n.closePath()};t.color=i?function(t){return t instanceof CanvasGradient&&(t=n.defaults.global.defaultColor),i(t)}:function(n){return console.error("Color.js not found!"),n};t.isArray=Array.isArray?function(n){return Array.isArray(n)}:function(n){return"[object Array]"===Object.prototype.toString.call(n)};t.arrayEquals=function(n,i){var r,e,u,f;if(!n||!i||n.length!==i.length)return!1;for(r=0,e=n.length;r<e;++r)if(u=n[r],f=i[r],u instanceof Array&&f instanceof Array){if(!t.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0};t.callback=function(n,t,i){n&&"function"==typeof n.call&&n.apply(i,t)};t.getHoverColor=function(n){return n instanceof CanvasPattern?n:t.color(n).saturate(.5).darken(.1).rgbString()};t.callCallback=t.callback}},{3:3}],27:[function(n,t){"use strict";t.exports=function(n){function t(n,t){return n.native?{x:n.x,y:n.y}:e.getRelativePosition(n,t)}function i(n,t){for(var u,r,o,s=n.data.datasets,f,i=0,e=s.length;i<e;++i)if(n.isDatasetVisible(i))for(u=n.getDatasetMeta(i),r=0,o=u.data.length;r<o;++r)f=u.data[r],f._view.skip||t(f)}function r(n,t){var r=[];return i(n,function(n){n.inRange(t.x,t.y)&&r.push(n)}),r}function u(n,t,r,u){var f=Number.POSITIVE_INFINITY,o=[];return u||(u=e.distanceBetweenPoints),i(n,function(n){if(!r||n.inRange(t.x,t.y)){var e=n.getCenterPoint(),i=u(t,e);i<f?(o=[n],f=i):i===f&&o.push(n)}}),o}function f(n,i,f){var e=t(i,n),h=function(n,t){return Math.abs(n.x-t.x)},o=f.intersect?r(n,e):u(n,e,!1,h),s=[];return o.length?(n.data.datasets.forEach(function(t,i){if(n.isDatasetVisible(i)){var u=n.getDatasetMeta(i),r=u.data[o[0]._index];r&&!r._view.skip&&s.push(r)}}),s):[]}var e=n.helpers;n.Interaction={modes:{single:function(n,r){var f=t(r,n),u=[];return i(n,function(n){if(n.inRange(f.x,f.y))return u.push(n),u}),u.slice(0,1)},label:f,index:f,dataset:function(n,i,f){var o=t(i,n),e=f.intersect?r(n,o):u(n,o,!1);return e.length>0&&(e=n.getDatasetMeta(e[0]._datasetIndex).data),e},"x-axis":function(n,t){return f(n,t,!0)},point:function(n,i){var u=t(i,n);return r(n,u)},nearest:function(n,i,r){var e=t(i,n),f=u(n,e,r.intersect);return f.length>1&&f.sort(function(n,t){var r=n.getArea(),u=t.getArea(),i=r-u;return 0===i&&(i=n._datasetIndex-t._datasetIndex),i}),f.slice(0,1)},x:function(n,r,u){var f=t(r,n),e=[],o=!1;return i(n,function(n){n.inXRange(f.x)&&e.push(n);n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e},y:function(n,r,u){var f=t(r,n),e=[],o=!1;return i(n,function(n){n.inYRange(f.y)&&e.push(n);n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e}}}}},{}],28:[function(n,t){"use strict";t.exports=function(){var n=function(n,t){return this.construct(n,t),this};return n.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(n){var t=[],i;for(t.push('<ul class="'+n.id+'-legend">'),i=0;i<n.data.datasets.length;i++)t.push('<li><span style="background-color:'+n.data.datasets[i].backgroundColor+'"><\/span>'),n.data.datasets[i].label&&t.push(n.data.datasets[i].label),t.push("<\/li>");return t.push("<\/ul>"),t.join("")}}},n.Chart=n,n}},{}],29:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.where(n,function(n){return n.position===i})}function r(n,t){n.forEach(function(n,t){return n._tmpIndex_=t,n});n.sort(function(n,i){var r=t?i:n,u=t?n:i;return r.weight===u.weight?r._tmpIndex_-u._tmpIndex_:r.weight-u.weight});n.forEach(function(n){delete n._tmpIndex_})}var t=n.helpers;n.layoutService={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]);t.fullWidth=t.fullWidth||!1;t.position=t.position||"top";t.weight=t.weight||0;n.boxes.push(t)},removeBox:function(n,t){var i=n.boxes?n.boxes.indexOf(t):-1;i!==-1&&n.boxes.splice(i,1)},configure:function(n,t,i){for(var r,f=["fullWidth","position","weight"],e=f.length,u=0;u<e;++u)r=f[u],i.hasOwnProperty(r)&&(t[r]=i[r])},update:function(n,u,f){function bt(n){var t,i=n.isHorizontal();i?(t=n.update(n.fullWidth?ut:v,ti),y-=t.height):(t=n.update(ni,wt),v-=t.width);ht.push({horizontal:i,minSize:t,box:n})}function yt(n){var i=t.findNextWhere(ht,function(t){return t.box===n}),r;i&&(n.isHorizontal()?(r={left:Math.max(e,ft),right:Math.max(w,et),top:0,bottom:0},n.update(n.fullWidth?ut:v,st/2,r)):n.update(i.minSize.width,y))}function kt(n){var i=t.findNextWhere(ht,function(t){return t.box===n}),r={left:0,right:0,top:o,bottom:b};i&&n.update(i.minSize.width,y,r)}function ot(n){n.isHorizontal()?(n.left=n.fullWidth?p:e,n.right=n.fullWidth?u-k:e+v,n.top=rt,n.bottom=rt+n.height,rt=n.bottom):(n.left=it,n.right=it+n.width,n.top=o,n.bottom=o+y,it=n.right)}var at,vt,nt,tt,it,rt;if(n){var pt=n.options.layout,c=pt?pt.padding:null,p=0,k=0,d=0,g=0;isNaN(c)?(p=c.left||0,k=c.right||0,d=c.top||0,g=c.bottom||0):(p=c,k=c,d=c,g=c);var s=i(n.boxes,"left"),h=i(n.boxes,"right"),l=i(n.boxes,"top"),a=i(n.boxes,"bottom"),dt=i(n.boxes,"chartArea");r(s,!0);r(h,!1);r(l,!0);r(a,!1);var ut=u-p-k,st=f-d-g,gt=ut/2,wt=st/2,ni=(u-gt)/(s.length+h.length),ti=(f-wt)/(l.length+a.length),v=ut,y=st,ht=[];t.each(s.concat(h,l,a),bt);var ft=0,et=0,ct=0,lt=0;t.each(l.concat(a),function(n){if(n.getPadding){var t=n.getPadding();ft=Math.max(ft,t.left);et=Math.max(et,t.right)}});t.each(s.concat(h),function(n){if(n.getPadding){var t=n.getPadding();ct=Math.max(ct,t.top);lt=Math.max(lt,t.bottom)}});var e=p,w=k,o=d,b=g;t.each(s.concat(h),yt);t.each(s,function(n){e+=n.width});t.each(h,function(n){w+=n.width});t.each(l.concat(a),yt);t.each(l,function(n){o+=n.height});t.each(a,function(n){b+=n.height});t.each(s.concat(h),kt);e=p;w=k;o=d;b=g;t.each(s,function(n){e+=n.width});t.each(h,function(n){w+=n.width});t.each(l,function(n){o+=n.height});t.each(a,function(n){b+=n.height});at=Math.max(ft-e,0);e+=at;w+=Math.max(et-w,0);vt=Math.max(ct-o,0);o+=vt;b+=Math.max(lt-b,0);nt=f-o-b;tt=u-e-w;tt===v&&nt===y||(t.each(s,function(n){n.height=nt}),t.each(h,function(n){n.height=nt}),t.each(l,function(n){n.fullWidth||(n.width=tt)}),t.each(a,function(n){n.fullWidth||(n.width=tt)}),y=nt,v=tt);it=p+at;rt=d+vt;t.each(s.concat(l),ot);it+=v;rt+=y;t.each(h,ot);t.each(a,ot);n.chartArea={left:e,top:o,right:e+v,bottom:o+y};t.each(dt,function(t){t.left=n.chartArea.left;t.top=n.chartArea.top;t.right=n.chartArea.right;t.bottom=n.chartArea.bottom;t.update(v,y)})}}}}},{}],30:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.plugins={};n.plugins={_plugins:[],_cacheId:0,register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){t.indexOf(n)===-1&&t.push(n)});this._cacheId++},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)});this._cacheId++},clear:function(){this._plugins=[];this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t,i){for(var u,f,e,o,s=this.descriptors(n),h=s.length,r=0;r<h;++r)if(u=s[r],f=u.plugin,o=f[t],"function"==typeof o&&(e=[n].concat(i||[]),e.push(u.options),o.apply(f,e)===!1))return!1;return!0},descriptors:function(i){var r=i._plugins||(i._plugins={});if(r.id===this._cacheId)return r.descriptors;var e=[],u=[],f=i&&i.config||{},o=n.defaults.global.plugins,s=f.options&&f.options.plugins||{};return this._plugins.concat(f.plugins||[]).forEach(function(n){var f=e.indexOf(n),r,i;f===-1&&(r=n.id,i=s[r],i!==!1&&(i===!0&&(i=t.clone(o[r])),e.push(n),u.push({plugin:n,options:i||{}})))}),r.descriptors=u,r.id=this._cacheId,u}};n.pluginService=n.plugins;n.PluginBase=n.Element.extend({})}},{}],31:[function(n,t){"use strict";t.exports=function(n){function r(n,i,r){return t.isArray(i)?t.longestText(n,r,i):n.measureText(i).width}function i(i){var r=t.getValueOrDefault,u=n.defaults.global,f=r(i.fontSize,u.defaultFontSize),e=r(i.fontStyle,u.defaultFontStyle),o=r(i.fontFamily,u.defaultFontFamily);return{size:f,style:e,family:o,font:t.fontString(f,e,o)}}var t=n.helpers;n.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:n.Ticks.formatters.values}};n.Scale=n.Element.extend({getPadding:function(){var n=this;return{left:n.paddingLeft||0,top:n.paddingTop||0,right:n.paddingRight||0,bottom:n.paddingBottom||0}},beforeUpdate:function(){t.callback(this.options.beforeUpdate,[this])},update:function(n,i,r){var u=this;return u.beforeUpdate(),u.maxWidth=n,u.maxHeight=i,u.margins=t.extend({left:0,right:0,top:0,bottom:0},r),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),u.buildTicks(),u.afterBuildTicks(),u.beforeTickToLabelConversion(),u.convertTicksToLabels(),u.afterTickToLabelConversion(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){t.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){t.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0},afterSetDimensions:function(){t.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this,t=n.options.ticks;n.ticks=n.ticks.map(t.userCallback||t.callback)},afterTickToLabelConversion:function(){t.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var n=this,o=n.ctx,u=n.options.ticks,s=i(u),r,e;if(o.font=s.font,r=u.minRotation||0,n.options.display&&n.isHorizontal())for(var h,c,f=t.longestText(o,s.font,n.ticks,n.longestTextCache),l=f,a=n.getPixelForTick(1)-n.getPixelForTick(0)-6;l>a&&r<u.maxRotation;){if(e=t.toRadians(r),h=Math.cos(e),c=Math.sin(e),c*f>n.maxHeight){r--;break}r++;l=h*f}n.labelRotation=r},afterCalculateTickRotation:function(){t.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callback(this.options.beforeFit,[this])},fit:function(){var n=this,u=n.minSize={width:0,height:0},e=n.options,l=e.ticks,v=e.scaleLabel,y=e.gridLines,s=e.display,h=n.isHorizontal(),f=i(l),p=1.5*i(v).size,w=e.gridLines.tickMarkLength;if(u.width=h?n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:s&&y.drawTicks?w:0,u.height=h?s&&y.drawTicks?w:0:n.maxHeight,v.display&&s&&(h?u.height+=p:u.width+=p),l.display&&s){var o=t.longestText(n.ctx,f.font,n.ticks,n.longestTextCache),b=t.numberOfLabelLines(n.ticks),a=.5*f.size;if(h){n.longestLabelWidth=o;var k=t.toRadians(n.labelRotation),c=Math.cos(k),nt=Math.sin(k),tt=nt*o+f.size*b+a*b;u.height=Math.min(n.maxHeight,u.height+tt);n.ctx.font=f.font;var it=n.ticks[0],d=r(n.ctx,it,f.font),rt=n.ticks[n.ticks.length-1],g=r(n.ctx,rt,f.font);0!==n.labelRotation?(n.paddingLeft="bottom"===e.position?c*d+3:c*a+3,n.paddingRight="bottom"===e.position?c*a+3:c*g+3):(n.paddingLeft=d/2+3,n.paddingRight=g/2+3)}else l.mirror?o=0:o+=n.options.ticks.padding,u.width=Math.min(n.maxWidth,u.width+o),n.paddingTop=f.size/2,n.paddingBottom=f.size/2}n.handleMargins();n.width=u.width;n.height=u.height},handleMargins:function(){var n=this;n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingTop=Math.max(n.paddingTop-n.margins.top,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0),n.paddingBottom=Math.max(n.paddingBottom-n.margins.bottom,0))},afterFit:function(){t.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){return null===n||"undefined"==typeof n?NaN:"number"!=typeof n||isFinite(n)?"object"==typeof n?n instanceof Date||n.isValid?n:this.getRightValue(this.isHorizontal()?n.x:n.y):n:NaN},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(n,t){var i=this,f,e;if(i.isHorizontal()){var o=i.width-(i.paddingLeft+i.paddingRight),r=o/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),u=r*n+i.paddingLeft;return t&&(u+=r/2),f=i.left+Math.round(u),f+(i.isFullWidth()?i.margins.left:0)}return e=i.height-(i.paddingTop+i.paddingBottom),i.top+n*(e/(i.ticks.length-1))},getPixelForDecimal:function(n){var t=this;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i*n+t.paddingLeft,u=t.left+Math.round(r);return u+(t.isFullWidth()?t.margins.left:0)}return t.top+n*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var n=this,t=n.min,i=n.max;return n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0},draw:function(r){var u=this,o=u.options,k,d,g,nt,tt;if(o.display){var s,a,f=u.ctx,v=n.defaults.global,h=o.ticks,e=o.gridLines,y=o.scaleLabel,p=0!==u.labelRotation,ht=h.autoSkip,w=u.isHorizontal();h.maxTicksLimit&&(a=h.maxTicksLimit);var ct=t.getValueOrDefault(h.fontColor,v.defaultFontColor),et=i(h),c=e.drawTicks?e.tickMarkLength:0,lt=t.getValueOrDefault(y.fontColor,v.defaultFontColor),l=i(y),ot=t.toRadians(u.labelRotation),at=Math.cos(ot),st=u.longestLabelWidth*at;if(f.fillStyle=ct,k=[],w){if(s=!1,(st+h.autoSkipPadding)*u.ticks.length>u.width-(u.paddingLeft+u.paddingRight)&&(s=1+Math.floor((st+h.autoSkipPadding)*u.ticks.length/(u.width-(u.paddingLeft+u.paddingRight)))),a&&u.ticks.length>a)for(;!s||u.ticks.length/(s||1)>a;)s||(s=1),s+=1;ht||(s=!1)}var vt="right"===o.position?u.left:u.right-c,yt="right"===o.position?u.left+c:u.right,pt="bottom"===o.position?u.top:u.bottom-c,wt="bottom"===o.position?u.top+c:u.bottom;if((t.each(u.ticks,function(n,i){var kt,dt,l,g,nt,tt,it,rt,ut,ft,et,st,ht,ct,lt,a,f,y,gt,b,d,at,bt;void 0!==n&&null!==n&&(kt=u.ticks.length===i+1,dt=s>1&&i%s>0||i%s==0&&i+s>=u.ticks.length,(!dt||kt)&&void 0!==n&&null!==n&&(i===("undefined"!=typeof u.zeroLineIndex?u.zeroLineIndex:0)?(l=e.zeroLineWidth,g=e.zeroLineColor,nt=e.zeroLineBorderDash,tt=e.zeroLineBorderDashOffset):(l=t.getValueAtIndexOrDefault(e.lineWidth,i),g=t.getValueAtIndexOrDefault(e.color,i),nt=t.getValueOrDefault(e.borderDash,v.borderDash),tt=t.getValueOrDefault(e.borderDashOffset,v.borderDashOffset)),f="middle",y="middle",w?("bottom"===o.position?(y=p?"middle":"top",f=p?"right":"center",a=u.top+c):(y=p?"middle":"bottom",f=p?"left":"center",a=u.bottom-c),gt=u.getPixelForTick(i)+t.aliasPixel(l),lt=u.getPixelForTick(i,e.offsetGridLines)+h.labelOffset,it=ut=et=ht=gt,rt=pt,ft=wt,st=r.top,ct=r.bottom):(d="left"===o.position,at=h.padding,h.mirror?(f=d?"left":"right",b=at):(f=d?"right":"left",b=c+at),lt=d?u.right-b:u.left+b,bt=u.getPixelForTick(i),bt+=t.aliasPixel(l),a=u.getPixelForTick(i,e.offsetGridLines),it=vt,ut=yt,et=r.left,ht=r.right,rt=ft=st=ct=bt),k.push({tx1:it,ty1:rt,tx2:ut,ty2:ft,x1:et,y1:st,x2:ht,y2:ct,labelX:lt,labelY:a,glWidth:l,glColor:g,glBorderDash:nt,glBorderDashOffset:tt,rotation:-1*ot,label:n,textBaseline:y,textAlign:f})))}),t.each(k,function(n){var i,r,u;if(e.display&&(f.save(),f.lineWidth=n.glWidth,f.strokeStyle=n.glColor,f.setLineDash&&(f.setLineDash(n.glBorderDash),f.lineDashOffset=n.glBorderDashOffset),f.beginPath(),e.drawTicks&&(f.moveTo(n.tx1,n.ty1),f.lineTo(n.tx2,n.ty2)),e.drawOnChartArea&&(f.moveTo(n.x1,n.y1),f.lineTo(n.x2,n.y2)),f.stroke(),f.restore()),h.display){if(f.save(),f.translate(n.labelX,n.labelY),f.rotate(n.rotation),f.font=et.font,f.textBaseline=n.textBaseline,f.textAlign=n.textAlign,i=n.label,t.isArray(i))for(r=0,u=0;r<i.length;++r)f.fillText(""+i[r],0,u),u+=1.5*et.size;else f.fillText(i,0,0);f.restore()}}),y.display)&&(nt=0,w?(d=u.left+(u.right-u.left)/2,g="bottom"===o.position?u.bottom-l.size/2:u.top+l.size/2):(tt="left"===o.position,d=tt?u.left+l.size/2:u.right-l.size/2,g=u.top+(u.bottom-u.top)/2,nt=tt?-.5*Math.PI:.5*Math.PI),f.save(),f.translate(d,g),f.rotate(nt),f.textAlign="center",f.textBaseline="middle",f.fillStyle=lt,f.font=l.font,f.fillText(y.labelString,0,0),f.restore()),e.drawBorder){f.lineWidth=t.getValueAtIndexOrDefault(e.lineWidth,0);f.strokeStyle=t.getValueAtIndexOrDefault(e.color,0);var it=u.left,rt=u.right,ut=u.top,ft=u.bottom,b=t.aliasPixel(f.lineWidth);w?(ut=ft="top"===o.position?u.bottom:u.top,ut+=b,ft+=b):(it=rt="left"===o.position?u.right:u.left,it+=b,rt+=b);f.beginPath();f.moveTo(it,ut);f.lineTo(rt,ft);f.stroke()}}}})}},{}],32:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.scaleService={constructors:{},defaults:{},registerScaleType:function(n,i,r){this.constructors[n]=i;this.defaults[n]=t.clone(r)},getScaleConstructor:function(n){if(this.constructors.hasOwnProperty(n))return this.constructors[n]},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?t.scaleMerge(n.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(n,i){var r=this.defaults;r.hasOwnProperty(n)&&(r[n]=t.extend(r[n],i))},addScalesToLayout:function(i){t.each(i.scales,function(t){t.fullWidth=t.options.fullWidth;t.position=t.options.position;t.weight=t.options.weight;n.layoutService.addBox(i,t)})}}}},{}],33:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.Ticks={generators:{linear:function(n,i){var r,e=[],h,f,o,u,s;for(n.stepSize&&n.stepSize>0?r=n.stepSize:(h=t.niceNum(i.max-i.min,!1),r=t.niceNum(h/(n.maxTicks-1),!0)),f=Math.floor(i.min/r)*r,o=Math.ceil(i.max/r)*r,n.min&&n.max&&n.stepSize&&t.almostWhole((n.max-n.min)/n.stepSize,r/1e3)&&(f=n.min,o=n.max),u=(o-f)/r,u=t.almostEquals(u,Math.round(u),r/1e3)?Math.round(u):Math.ceil(u),e.push(void 0!==n.min?n.min:f),s=1;s<u;++s)e.push(f+s*r);return e.push(void 0!==n.max?n.max:o),e},logarithmic:function(n,i){var r,u,e=[],s=t.getValueOrDefault,f=s(n.min,Math.pow(10,Math.floor(t.log10(i.min)))),o=Math.floor(t.log10(i.max)),c=Math.ceil(i.max/Math.pow(10,o)),h;0===f?(r=Math.floor(t.log10(i.minNotZero)),u=Math.floor(i.minNotZero/Math.pow(10,r)),e.push(f),f=u*Math.pow(10,r)):(r=Math.floor(t.log10(f)),u=Math.floor(f/Math.pow(10,r)));do e.push(f),++u,10===u&&(u=1,++r),f=u*Math.pow(10,r);while(r<o||r===o&&u<c);return h=s(n.max,f),e.push(h),e}},formatters:{values:function(n){return t.isArray(n)?n:""+n},linear:function(n,i,r){var e=r.length>3?r[2]-r[1]:r[1]-r[0],o,u,f;return Math.abs(e)>1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),o=t.log10(Math.abs(e)),u="",0!==n?(f=-1*Math.floor(o),f=Math.max(Math.min(f,20),0),u=n.toFixed(f)):u="0",u},logarithmic:function(n,i,r){var u=n/Math.pow(10,Math.floor(t.log10(n)));return 0===n?"0":1===u||2===u||5===u||0===i||i===r.length-1?n.toExponential():""}}}}},{}],34:[function(n,t){"use strict";t.exports=function(n){function r(n,i){var r=t.color(n);return r.alpha(i*r.alpha()).rgbaString()}function i(n,i){return i&&(t.isArray(i)?Array.prototype.push.apply(n,i):n.push(i)),n}function f(n){var r=n._xScale,u=n._yScale||n._scale,t=n._index,i=n._datasetIndex;return{xLabel:r?r.getLabelForIndex(t,i):"",yLabel:u?u.getLabelForIndex(t,i):"",index:t,datasetIndex:i,x:n._model.x,y:n._model.y}}function u(i){var r=n.defaults.global,u=t.getValueOrDefault;return{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:u(i.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:u(i.bodyFontStyle,r.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:u(i.bodyFontSize,r.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:u(i.titleFontFamily,r.defaultFontFamily),_titleFontStyle:u(i.titleFontStyle,r.defaultFontStyle),titleFontSize:u(i.titleFontSize,r.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:u(i.footerFontFamily,r.defaultFontFamily),_footerFontStyle:u(i.footerFontStyle,r.defaultFontStyle),footerFontSize:u(i.footerFontSize,r.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground,displayColors:i.displayColors,borderColor:i.borderColor,borderWidth:i.borderWidth}}function e(n,i){var f=n._chart.ctx,r=2*i.yPadding,e=0,a=i.body,o=a.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),c,u;o+=i.beforeBody.length+i.afterBody.length;var s=i.title.length,h=i.footer.length,v=i.titleFontSize,l=i.bodyFontSize,y=i.footerFontSize;return r+=s*v,r+=s?(s-1)*i.titleSpacing:0,r+=s?i.titleMarginBottom:0,r+=o*l,r+=o?(o-1)*i.bodySpacing:0,r+=h?i.footerMarginTop:0,r+=h*y,r+=h?(h-1)*i.footerSpacing:0,c=0,u=function(n){e=Math.max(e,f.measureText(n).width+c)},f.font=t.fontString(v,i._titleFontStyle,i._titleFontFamily),t.each(i.title,u),f.font=t.fontString(l,i._bodyFontStyle,i._bodyFontFamily),t.each(i.beforeBody.concat(i.afterBody),u),c=i.displayColors?l+2:0,t.each(a,function(n){t.each(n.before,u);t.each(n.lines,u);t.each(n.after,u)}),c=0,f.font=t.fontString(y,i._footerFontStyle,i._footerFontFamily),t.each(i.footer,u),e+=2*i.xPadding,{width:e,height:r}}function o(n,t){var i=n._model,o=n._chart,e=n._chart.chartArea,u="center",r="center",s,h,a,v,c,l,y,f;return i.y<t.height?r="top":i.y>o.height-t.height&&(r="bottom"),l=(e.left+e.right)/2,y=(e.top+e.bottom)/2,"center"===r?(s=function(n){return n<=l},h=function(n){return n>l}):(s=function(n){return n<=t.width/2},h=function(n){return n>=o.width-t.width/2}),a=function(n){return n+t.width>o.width},v=function(n){return n-t.width<0},c=function(n){return n<=y?"top":"bottom"},s(i.x)?(u="left",a(i.x)&&(u="center",r=c(i.y))):h(i.x)&&(u="right",v(i.x)&&(u="center",r=c(i.y))),f=n._options,{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:r}}function s(n,t,i){var r=n.x,e=n.y,c=n.caretSize,s=n.caretPadding,l=n.cornerRadius,u=i.xAlign,o=i.yAlign,f=c+s,h=l+s;return"right"===u?r-=t.width:"center"===u&&(r-=t.width/2),"top"===o?e+=f:e-="bottom"===o?t.height+f:t.height/2,"center"===o?"left"===u?r+=f:"right"===u&&(r-=f):"left"===u?r-=h:"right"===u&&(r+=h),{x:r,y:e}}var t=n.helpers;n.defaults.global.tooltips={enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:t.noop,title:function(n,t){var r="",u=t.labels,f=u?u.length:0,i;return n.length>0&&(i=n[0],i.xLabel?r=i.xLabel:f>0&&i.index<f&&(r=u[i.index])),r},afterTitle:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i&&(i+=": "),i+n.yLabel},labelColor:function(n,t){var r=t.getDatasetMeta(n.datasetIndex),u=r.data[n.index],i=u._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}};n.Tooltip=n.Element.extend({initialize:function(){this._model=u(this._options)},getTitle:function(){var t=this,u=t._options,r=u.callbacks,f=r.beforeTitle.apply(t,arguments),e=r.title.apply(t,arguments),o=r.afterTitle.apply(t,arguments),n=[];return n=i(n,f),n=i(n,e),n=i(n,o)},getBeforeBody:function(){var n=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(n)?n:void 0!==n?[n]:[]},getBody:function(n,r){var u=this,f=u._options.callbacks,e=[];return t.each(n,function(n){var t={before:[],lines:[],after:[]};i(t.before,f.beforeLabel.call(u,n,r));i(t.lines,f.label.call(u,n,r));i(t.after,f.afterLabel.call(u,n,r));e.push(t)}),e},getAfterBody:function(){var n=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(n)?n:void 0!==n?[n]:[]},getFooter:function(){var t=this,r=t._options.callbacks,u=r.beforeFooter.apply(t,arguments),f=r.footer.apply(t,arguments),e=r.afterFooter.apply(t,arguments),n=[];return n=i(n,u),n=i(n,f),n=i(n,e)},update:function(i){var w,nt,h=this,l=h._options,a=h._model,r=h._model=u(l),b=h._active,v=h._data,k={xAlign:a.xAlign,yAlign:a.yAlign},d={x:a.x,y:a.y},y={width:a.width,height:a.height},p={x:a.caretX,y:a.caretY},g,c;if(b.length){for(r.opacity=1,g=[],p=n.Tooltip.positioners[l.position](b,h._eventPosition),c=[],w=0,nt=b.length;w<nt;++w)c.push(f(b[w]));l.filter&&(c=c.filter(function(n){return l.filter(n,v)}));l.itemSort&&(c=c.sort(function(n,t){return l.itemSort(n,t,v)}));t.each(c,function(n){g.push(l.callbacks.labelColor.call(h,n,h._chart))});r.title=h.getTitle(c,v);r.beforeBody=h.getBeforeBody(c,v);r.body=h.getBody(c,v);r.afterBody=h.getAfterBody(c,v);r.footer=h.getFooter(c,v);r.x=Math.round(p.x);r.y=Math.round(p.y);r.caretPadding=l.caretPadding;r.labelColors=g;r.dataPoints=c;y=e(this,r);k=o(this,y);d=s(r,y,k)}else r.opacity=0;return r.xAlign=k.xAlign,r.yAlign=k.yAlign,r.x=d.x,r.y=d.y,r.width=y.width,r.height=y.height,r.caretX=p.x,r.caretY=p.y,h._model=r,i&&l.custom&&l.custom.call(h,r),h},drawCaret:function(n,t){var r=this._chart.ctx,u=this._view,i=this.getCaretPosition(n,t,u);r.lineTo(i.x1,i.y1);r.lineTo(i.x2,i.y2);r.lineTo(i.x3,i.y3)},getCaretPosition:function(n,t,i){var u,f,o,e,s,h,r=i.caretSize,y=i.cornerRadius,l=i.xAlign,p=i.yAlign,c=n.x,a=n.y,v=t.width,w=t.height,b;return"center"===p?(s=a+w/2,"left"===l?(u=c,f=u-r,o=u,e=s+r,h=s-r):(u=c+v,f=u+r,o=u,e=s-r,h=s+r)):("left"===l?(f=c+y+r,u=f-r,o=f+r):"right"===l?(f=c+v-y-r,u=f-r,o=f+r):(f=c+v/2,u=f-r,o=f+r),"top"===p)?(e=a,s=e-r,h=e):(e=a+w,s=e+r,h=e,b=o,o=u,u=b),{x1:u,x2:f,x3:o,y1:e,y2:s,y3:h}},drawTitle:function(n,i,u,f){var o=i.title,s,h,e,c;if(o.length)for(u.textAlign=i._titleAlign,u.textBaseline="top",s=i.titleFontSize,h=i.titleSpacing,u.fillStyle=r(i.titleFontColor,f),u.font=t.fontString(s,i._titleFontStyle,i._titleFontFamily),e=0,c=o.length;e<c;++e)u.fillText(o[e],n.x,n.y),n.y+=s+h,e+1===o.length&&(n.y+=i.titleMarginBottom-h)},drawBody:function(n,i,u,f){var e=i.bodyFontSize,l=i.bodySpacing,a=i.body,h,s,o,c;u.textAlign=i._bodyAlign;u.textBaseline="top";h=r(i.bodyFontColor,f);u.fillStyle=h;u.font=t.fontString(e,i._bodyFontStyle,i._bodyFontFamily);s=0;o=function(t){u.fillText(t,n.x+s,n.y);n.y+=e+l};t.each(i.beforeBody,o);c=i.displayColors;s=c?e+2:0;t.each(a,function(s,l){t.each(s.before,o);t.each(s.lines,function(t){c&&(u.fillStyle=r(i.legendColorBackground,f),u.fillRect(n.x,n.y,e,e),u.strokeStyle=r(i.labelColors[l].borderColor,f),u.strokeRect(n.x,n.y,e,e),u.fillStyle=r(i.labelColors[l].backgroundColor,f),u.fillRect(n.x+1,n.y+1,e-2,e-2),u.fillStyle=h);o(t)});t.each(s.after,o)});s=0;t.each(i.afterBody,o);n.y-=l},drawFooter:function(n,i,u,f){var e=i.footer;e.length&&(n.y+=i.footerMarginTop,u.textAlign=i._footerAlign,u.textBaseline="top",u.fillStyle=r(i.footerFontColor,f),u.font=t.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),t.each(e,function(t){u.fillText(t,n.x,n.y);n.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(n,t,i,u,f){i.fillStyle=r(t.backgroundColor,f);i.strokeStyle=r(t.borderColor,f);i.lineWidth=t.borderWidth;var a=t.xAlign,l=t.yAlign,e=n.x,o=n.y,h=u.width,c=u.height,s=t.cornerRadius;i.beginPath();i.moveTo(e+s,o);"top"===l&&this.drawCaret(n,u);i.lineTo(e+h-s,o);i.quadraticCurveTo(e+h,o,e+h,o+s);"center"===l&&"right"===a&&this.drawCaret(n,u);i.lineTo(e+h,o+c-s);i.quadraticCurveTo(e+h,o+c,e+h-s,o+c);"bottom"===l&&this.drawCaret(n,u);i.lineTo(e+s,o+c);i.quadraticCurveTo(e,o+c,e,o+c-s);"center"===l&&"left"===a&&this.drawCaret(n,u);i.lineTo(e,o+s);i.quadraticCurveTo(e,o,e+s,o);i.closePath();i.fill();t.borderWidth>0&&i.stroke()},draw:function(){var i=this._chart.ctx,n=this._view;if(0!==n.opacity){var u={width:n.width,height:n.height},t={x:n.x,y:n.y},r=Math.abs(n.opacity<.001)?0:n.opacity,f=n.title.length||n.beforeBody.length||n.body.length||n.afterBody.length||n.footer.length;this._options.enabled&&f&&(this.drawBackground(t,n,i,u,r),t.x+=n.xPadding,t.y+=n.yPadding,this.drawTitle(t,n,i,r),this.drawBody(t,n,i,r),this.drawFooter(t,n,i,r))}},handleEvent:function(n){var i=this,r=i._options,u=!1,f;return(i._lastActive=i._lastActive||[],i._active="mouseout"===n.type?[]:i._chart.getElementsAtEventForMode(n,r.mode,r),u=!t.arrayEquals(i._active,i._lastActive),!u)?!1:((i._lastActive=i._active,r.enabled||r.custom)&&(i._eventPosition={x:n.x,y:n.y},f=i._model,i.update(!0),i.pivot(),u|=f.x!==i._model.x||f.y!==i._model.y),u)}});n.Tooltip.positioners={average:function(n){var i,u;if(!n.length)return!1;for(var e=0,o=0,r=0,t=0,f=n.length;t<f;++t)i=n[t],i&&i.hasValue()&&(u=i.tooltipPosition(),e+=u.x,o+=u.y,++r);return{x:Math.round(e/r),y:Math.round(o/r)}},nearest:function(n,i){for(var f,h=i.x,c=i.y,l=Number.POSITIVE_INFINITY,r,a,e,o,u=0,s=n.length;u<s;++u)r=n[u],r&&r.hasValue()&&(a=r.getCenterPoint(),e=t.distanceBetweenPoints(i,a),e<l&&(l=e,f=r));return f&&(o=f.tooltipPosition(),h=o.x,c=o.y),{x:h,y:c}}}}},{}],35:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;t.elements.arc={backgroundColor:t.defaultColor,borderColor:"#fff",borderWidth:2};n.elements.Arc=n.Element.extend({inLabelRange:function(n){var t=this._view;return!!t&&Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2)},inRange:function(n,t){var r=this._view,h,c;if(r){for(var o=i.getAngleFromPoint(r,{x:n,y:t}),u=o.angle,s=o.distance,e=r.startAngle,f=r.endAngle;f<e;)f+=2*Math.PI;for(;u>f;)u-=2*Math.PI;for(;u<e;)u+=2*Math.PI;return h=u>=e&&u<=f,c=s>=r.innerRadius&&s<=r.outerRadius,h&&c}return!1},getCenterPoint:function(){var n=this._view,t=(n.startAngle+n.endAngle)/2,i=(n.innerRadius+n.outerRadius)/2;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},getArea:function(){var n=this._view;return Math.PI*((n.endAngle-n.startAngle)/(2*Math.PI))*(Math.pow(n.outerRadius,2)-Math.pow(n.innerRadius,2))},tooltipPosition:function(){var n=this._view,t=n.startAngle+(n.endAngle-n.startAngle)/2,i=(n.outerRadius-n.innerRadius)/2+n.innerRadius;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},draw:function(){var t=this._chart.ctx,n=this._view,i=n.startAngle,r=n.endAngle;t.beginPath();t.arc(n.x,n.y,n.outerRadius,i,r);t.arc(n.x,n.y,n.innerRadius,r,i,!0);t.closePath();t.strokeStyle=n.borderColor;t.lineWidth=n.borderWidth;t.fillStyle=n.backgroundColor;t.fill();t.lineJoin="bevel";n.borderWidth&&t.stroke()}})}},{}],36:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;n.defaults.global.elements.line={tension:.4,backgroundColor:t.defaultColor,borderWidth:3,borderColor:t.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0};n.elements.Line=n.Element.extend({draw:function(){var r,l,h,u,c=this,f=c._view,n=c._chart.ctx,a=f.spanGaps,e=c._children.slice(),s=t.elements.line,o=-1;for(c._loop&&e.length&&e.push(e[0]),n.save(),n.lineCap=f.borderCapStyle||s.borderCapStyle,n.setLineDash&&n.setLineDash(f.borderDash||s.borderDash),n.lineDashOffset=f.borderDashOffset||s.borderDashOffset,n.lineJoin=f.borderJoinStyle||s.borderJoinStyle,n.lineWidth=f.borderWidth||s.borderWidth,n.strokeStyle=f.borderColor||t.defaultColor,n.beginPath(),o=-1,r=0;r<e.length;++r)l=e[r],h=i.previousItem(e,r),u=l._view,0===r?u.skip||(n.moveTo(u.x,u.y),o=r):(h=o===-1?h:e[o],u.skip||(o!==r-1&&!a||o===-1?n.moveTo(u.x,u.y):i.canvas.lineTo(n,h._view,l._view),o=r));n.stroke();n.restore()}})}},{}],37:[function(n,t){"use strict";t.exports=function(n){function r(n){var t=this._view;return!!t&&Math.pow(n-t.x,2)<Math.pow(t.radius+t.hitRadius,2)}function u(n){var t=this._view;return!!t&&Math.pow(n-t.y,2)<Math.pow(t.radius+t.hitRadius,2)}var f=n.helpers,i=n.defaults.global,t=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:t,borderWidth:1,borderColor:t,hitRadius:1,hoverRadius:4,hoverBorderWidth:1};n.elements.Point=n.Element.extend({inRange:function(n,t){var i=this._view;return!!i&&Math.pow(n-i.x,2)+Math.pow(t-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:r,inXRange:r,inYRange:u,getCenterPoint:function(){var n=this._view;return{x:n.x,y:n.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(r){var e=this._view,u=this._model,o=this._chart.ctx,v=e.pointStyle,y=e.radius,c=e.x,l=e.y,a=n.helpers.color,h=1.01,s=0;e.skip||(o.strokeStyle=e.borderColor||t,o.lineWidth=f.getValueOrDefault(e.borderWidth,i.elements.point.borderWidth),o.fillStyle=e.backgroundColor||t,void 0!==r&&(u.x<r.left||r.right*h<u.x||u.y<r.top||r.bottom*h<u.y)&&(u.x<r.left?s=(c-u.x)/(r.left-u.x):r.right*h<u.x?s=(u.x-c)/(u.x-r.right):u.y<r.top?s=(l-u.y)/(r.top-u.y):r.bottom*h<u.y&&(s=(u.y-l)/(u.y-r.bottom)),s=Math.round(100*s)/100,o.strokeStyle=a(o.strokeStyle).alpha(s).rgbString(),o.fillStyle=a(o.fillStyle).alpha(s).rgbString()),n.canvasHelpers.drawPoint(o,v,y,c,l))}})}},{}],38:[function(n,t){"use strict";t.exports=function(n){function i(n){return void 0!==n._view.width}function t(n){var r,u,f,e,t=n._view,o,s;return i(n)?(o=t.width/2,r=t.x-o,u=t.x+o,f=Math.min(t.y,t.base),e=Math.max(t.y,t.base)):(s=t.height/2,r=Math.min(t.x,t.base),u=Math.max(t.x,t.base),f=t.y-s,e=t.y+s),{left:r,top:f,right:u,bottom:e}}var r=n.defaults.global;r.elements.rectangle={backgroundColor:r.defaultColor,borderWidth:0,borderColor:r.defaultColor,borderSkipped:"bottom"};n.elements.Rectangle=n.Element.extend({draw:function(){function p(n){return g[(y+n)%4]}var t,i,r,u,h,c,e,f=this._chart.ctx,n=this._view,o=n.borderWidth,v,s,a;if(n.horizontal?(t=n.base,i=n.x,r=n.y-n.height/2,u=n.y+n.height/2,h=i>t?1:-1,c=1,e=n.borderSkipped||"left"):(t=n.x-n.width/2,i=n.x+n.width/2,r=n.y,u=n.base,h=1,c=u>r?1:-1,e=n.borderSkipped||"bottom"),o){v=Math.min(Math.abs(t-i),Math.abs(r-u));o=o>v?v:o;var l=o/2,w=t+("left"!==e?l*h:0),b=i+("right"!==e?-l*h:0),k=r+("top"!==e?l*c:0),d=u+("bottom"!==e?-l*c:0);w!==b&&(r=k,u=d);k!==d&&(t=w,i=b)}f.beginPath();f.fillStyle=n.backgroundColor;f.strokeStyle=n.borderColor;f.lineWidth=o;var g=[[t,u],[t,r],[i,r],[i,u]],y=["bottom","left","top","right"].indexOf(e,0);for(y===-1&&(y=0),s=p(0),f.moveTo(s[0],s[1]),a=1;a<4;a++)s=p(a),f.lineTo(s[0],s[1]);f.fill();o&&f.stroke()},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,i){var u=!1,r;return this._view&&(r=t(this),u=n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom),u},inLabelRange:function(n,r){var f=this,e,u;return f._view?(e=!1,u=t(f),i(f)?n>=u.left&&n<=u.right:r>=u.top&&r<=u.bottom):!1},inXRange:function(n){var i=t(this);return n>=i.left&&n<=i.right},inYRange:function(n){var i=t(this);return n>=i.top&&n<=i.bottom},getCenterPoint:function(){var t,r,n=this._view;return i(this)?(t=n.x,r=(n.y+n.base)/2):(t=(n.x+n.base)/2,r=n.y),{x:t,y:r}},getArea:function(){var n=this._view;return n.width*Math.abs(n.y-n.base)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}})}},{}],39:[function(n,t){"use strict";t.exports=function(n){function i(n,i){var r=t.getStyle(n,i),u=r&&r.match(/^(\d+)(\.\d+)?px$/);if(u)return Number(u[1])}function u(n,t){var r=n.style,f=n.getAttribute("height"),e=n.getAttribute("width"),u,o;return(n._chartjs={initial:{height:f,width:e,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",null===e||""===e)&&(u=i(n,"width"),void 0!==u&&(n.width=u)),(null===f||""===f)&&(""===n.style.height?n.height=n.width/(t.options.aspectRatio||2):(o=i(n,"height"),void 0!==u&&(n.height=o))),n}function r(n,t,i,r,u){return{type:n,chart:t,"native":u||null,x:void 0!==i?i:null,y:void 0!==r?r:null}}function f(n,i){var f=h[n.type]||n.type,u=t.getRelativePosition(n,i);return r(f,i,u.x,u.y,n)}function e(n){var i=document.createElement("iframe");return i.className="chartjs-hidden-iframe",i.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",i.tabIndex=-1,t.addEvent(i,"load",function(){t.addEvent(i.contentWindow||i,"resize",n);n()}),i}function o(n,i,u){var f=n._chartjs={ticking:!1},o=function(){f.ticking||(f.ticking=!0,t.requestAnimFrame.call(window,function(){if(f.resizer)return f.ticking=!1,i(r("resize",u))}))};f.resizer=e(o);n.insertBefore(f.resizer,n.firstChild)}function s(n){if(n&&n._chartjs){var t=n._chartjs.resizer;t&&(t.parentNode.removeChild(t),n._chartjs.resizer=null);delete n._chartjs}}var t=n.helpers,h={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(n,t){"string"==typeof n?n=document.getElementById(n):n.length&&(n=n[0]);n&&n.canvas&&(n=n.canvas);var i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(u(n,t),i):null},releaseContext:function(n){var i=n.canvas,r;i._chartjs&&(r=i._chartjs.initial,["height","width"].forEach(function(n){var t=r[n];void 0===t||null===t?i.removeAttribute(n):i.setAttribute(n,t)}),t.each(r.style||{},function(n,t){i.style[t]=n}),i.width=i.width,delete i._chartjs)},addEventListener:function(n,i,r){var u=n.canvas;if("resize"===i)return void o(u.parentNode,r,n);var e=r._chartjs||(r._chartjs={}),s=e.proxies||(e.proxies={}),h=s[n.id+"_"+i]=function(t){r(f(t,n))};t.addEvent(u,i,h)},removeEventListener:function(n,i,r){var u=n.canvas;if("resize"===i)return void s(u.parentNode,r);var e=r._chartjs||{},o=e.proxies||{},f=o[n.id+"_"+i];f&&t.removeEvent(u,i,f)}}}},{}],40:[function(n,t){"use strict";var i=n(39);t.exports=function(n){n.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}};n.helpers.extend(n.platform,i(n))}},{39:39}],41:[function(n,t){"use strict";t.exports=function(n){function u(n,t,i){var r,f=n._model||{},u=f.fill;if(void 0===u&&(u=!!f.backgroundColor),u===!1||null===u)return!1;if(u===!0)return"origin";if(r=parseFloat(u,10),isFinite(r)&&Math.floor(r)===r)return"-"!==u[0]&&"+"!==u[0]||(r=t+r),!(r===t||r<0||r>=i)&&r;switch(u){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return u;default:return!1}}function f(n){var u,r=n.el._model||{},i=n.el._scale||{},f=n.fill,t=null;if(isFinite(f))return null;if("start"===f?t=void 0===r.scaleBottom?i.bottom:r.scaleBottom:"end"===f?t=void 0===r.scaleTop?i.top:r.scaleTop:void 0!==r.scaleZero?t=r.scaleZero:i.getBasePosition?t=i.getBasePosition():i.getBasePixel&&(t=i.getBasePixel()),void 0!==t&&null!==t){if(void 0!==t.x&&void 0!==t.y)return t;if("number"==typeof t&&isFinite(t))return u=i.isHorizontal(),{x:u?t:null,y:u?null:t}}return null}function e(n,t,i){var u,e=n[t],r=e.fill,f=[t];if(!i)return r;for(;r!==!1&&f.indexOf(r)===-1;){if(!isFinite(r))return r;if(u=n[r],!u)return!1;if(u.visible)return r;f.push(r);r=u.fill}return!1}function o(n){var t=n.fill,i="dataset";return t===!1?null:(isFinite(t)||(i="boundary"),c[i](n))}function t(n){return n&&!n.skip}function i(n,t,i,u,f){var e;if(u&&f){for(n.moveTo(t[0].x,t[0].y),e=1;e<u;++e)r.canvas.lineTo(n,t[e-1],t[e]);for(n.lineTo(i[f-1].x,i[f-1].y),e=f-1;e>0;--e)r.canvas.lineTo(n,i[e],i[e-1],!0)}}function s(n,r,u,f,e,o){var v,k,p,s,y,w,b,d=r.length,g=f.spanGaps,h=[],c=[],l=0,a=0;for(n.beginPath(),v=0,k=d+!!o;v<k;++v)p=v%d,s=r[p]._view,y=u(s,p,f),w=t(s),b=t(y),w&&b?(l=h.push(s),a=c.push(y)):l&&a&&(g?(w&&h.push(s),b&&c.push(y)):(i(n,h,c,l,a),l=a=0,h=[],c=[]));i(n,h,c,l,a);n.closePath();n.fillStyle=e;n.fill()}n.defaults.global.plugins.filler={propagate:!0};var h=n.defaults,r=n.helpers,c={dataset:function(n){var t=n.fill,i=n.chart,r=i.getDatasetMeta(t),f=r&&i.isDatasetVisible(t),u=f&&r.dataset._children||[];return u.length?function(n,t){return u[t]._view||null}:null},boundary:function(n){var t=n.boundary,i=t?t.x:null,r=t?t.y:null;return function(n){return{x:null===i?n.x:i,y:null===r?n.y:r}}}};return{id:"filler",afterDatasetsUpdate:function(t,i){for(var c,h,s,l=(t.data.datasets||[]).length,v=i.propagate,a=[],r=0;r<l;++r)c=t.getDatasetMeta(r),h=c.dataset,s=null,h&&h._model&&h instanceof n.elements.Line&&(s={visible:t.isDatasetVisible(r),fill:u(h,r,l),chart:t,el:h}),c.$filler=s,a.push(s);for(r=0;r<l;++r)s=a[r],s&&(s.fill=e(a,r,v),s.boundary=f(s),s.mapper=o(s))},beforeDatasetDraw:function(n,t){var i=t.meta.$filler;if(i){var r=i.el,u=r._view,f=r._children||[],e=i.mapper,o=u.backgroundColor||h.global.defaultColor;e&&o&&f.length&&s(n.ctx,f,e,u,o,r._loop)}}}}},{}],42:[function(n,t){"use strict";t.exports=function(n){function u(n,t){return n.usePointStyle?t*Math.SQRT2:n.boxWidth}function f(t,i){var u=new n.Legend({ctx:t.ctx,options:i,chart:t});r.configure(t,u,i);r.addBox(t,u);t.legend=u}var t=n.helpers,r=n.layoutService,i=t.noop;return n.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=null===u.hidden?!i.data.datasets[r].hidden:null;i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data;return t.isArray(i.datasets)?i.datasets.map(function(i,r){return{text:i.label,fillStyle:t.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!n.isDatasetVisible(r),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:r}},this):[]}}},n.Legend=n.Element.extend({initialize:function(n){t.extend(this,n);this.legendHitBoxes=[];this.doughnutMode=!1},beforeUpdate:i,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var n=this,i=n.options.labels,t=i.generateLabels.call(n,n.chart);i.filter&&(t=t.filter(function(t){return i.filter(t,n.chart.data)}));n.options.reverse&&t.reverse();n.legendItems=t},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,w=i.options,r=w.labels,c=w.display,h=i.ctx,l=n.defaults.global,a=t.getValueOrDefault,f=a(r.fontSize,l.defaultFontSize),nt=a(r.fontStyle,l.defaultFontStyle),tt=a(r.fontFamily,l.defaultFontFamily),it=t.fontString(f,nt,tt),b=i.legendHitBoxes=[],e=i.minSize,k=i.isHorizontal(),o,v;if(k?(e.width=i.maxWidth,e.height=c?10:0):(e.width=c?10:0,e.height=i.maxHeight),c)if(h.font=it,k)o=i.lineWidths=[0],v=i.legendItems.length?f+r.padding:0,h.textAlign="left",h.textBaseline="top",t.each(i.legendItems,function(n,t){var s=u(r,f),e=s+f/2+h.measureText(n.text).width;o[o.length-1]+e+r.padding>=i.width&&(v+=f+r.padding,o[o.length]=i.left);b[t]={left:0,top:0,width:e,height:f};o[o.length-1]+=e+r.padding}),e.height+=v;else{var rt=r.padding,d=i.columnWidths=[],y=r.padding,s=0,p=0,g=f+rt;t.each(i.legendItems,function(n,t){var o=u(r,f),i=o+f/2+h.measureText(n.text).width;p+g>e.height&&(y+=s+r.padding,d.push(s),s=0,p=0);s=Math.max(s,i);p+=g;b[t]={left:0,top:0,width:i,height:f}});y+=s;d.push(s);e.width+=y}i.width=e.width;i.height=e.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var r=this,a=r.options,e=a.labels,c=n.defaults.global,l=c.elements.line,y=r.width,w=r.lineWidths,v;if(a.display){var f,i=r.ctx,o=t.getValueOrDefault,b=o(e.fontColor,c.defaultFontColor),s=o(e.fontSize,c.defaultFontSize),d=o(e.fontStyle,c.defaultFontStyle),g=o(e.fontFamily,c.defaultFontFamily),nt=t.fontString(s,d,g);i.textAlign="left";i.textBaseline="top";i.lineWidth=.5;i.strokeStyle=b;i.fillStyle=b;i.font=nt;var h=u(e,s),k=r.legendHitBoxes,tt=function(t,r,u){var f;if(!(isNaN(h)||h<=0)){if(i.save(),i.fillStyle=o(u.fillStyle,c.defaultColor),i.lineCap=o(u.lineCap,l.borderCapStyle),i.lineDashOffset=o(u.lineDashOffset,l.borderDashOffset),i.lineJoin=o(u.lineJoin,l.borderJoinStyle),i.lineWidth=o(u.lineWidth,l.borderWidth),i.strokeStyle=o(u.strokeStyle,c.defaultColor),f=0===o(u.lineWidth,l.borderWidth),i.setLineDash&&i.setLineDash(o(u.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var e=s*Math.SQRT2/2,v=e/Math.SQRT2,y=t+v,p=r+v;n.canvasHelpers.drawPoint(i,u.pointStyle,e,y,p)}else f||i.strokeRect(t,r,h,s),i.fillRect(t,r,h,s);i.restore()}},it=function(n,t,r,u){i.fillText(r.text,h+s/2+n,t);r.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(h+s/2+n,t+s/2),i.lineTo(h+s/2+n+u,t+s/2),i.stroke())},p=r.isHorizontal();f=p?{x:r.left+(y-w[0])/2,y:r.top+e.padding,line:0}:{x:r.left+e.padding,y:r.top+e.padding,line:0};v=s+e.padding;t.each(r.legendItems,function(n,t){var c=i.measureText(n.text).width,l=h+s/2+c,u=f.x,o=f.y;p?u+l>=y&&(o=f.y+=v,f.line++,u=f.x=r.left+(y-w[f.line])/2):o+v>r.bottom&&(u=f.x=u+r.columnWidths[f.line]+e.padding,o=f.y=r.top+e.padding,f.line++);tt(u,o,n);k[t].left=u;k[t].top=o;it(u,o,n,c);p?f.x+=l+e.padding:f.y+=v})}},handleEvent:function(n){var t=this,e=t.options,o="mouseup"===n.type?"click":n.type,s=!1,u,f,h,r,i;if("mousemove"===o){if(!e.onHover)return}else{if("click"!==o)return;if(!e.onClick)return}if(u=n.x,f=n.y,u>=t.left&&u<=t.right&&f>=t.top&&f<=t.bottom)for(h=t.legendHitBoxes,r=0;r<h.length;++r)if(i=h[r],u>=i.left&&u<=i.left+i.width&&f>=i.top&&f<=i.top+i.height){if("click"===o){e.onClick.call(t,n.native,t.legendItems[r]);s=!0;break}if("mousemove"===o){e.onHover.call(t,n.native,t.legendItems[r]);s=!0;break}}return s}}),{id:"legend",beforeInit:function(n){var t=n.options.legend;t&&f(n,t)},beforeUpdate:function(i){var u=i.options.legend,e=i.legend;u?(u=t.configMerge(n.defaults.global.legend,u),e?(r.configure(i,e,u),e.options=u):f(i,u)):e&&(r.removeBox(i,e),delete i.legend)},afterEvent:function(n,t){var i=n.legend;i&&i.handleEvent(t)}}}},{}],43:[function(n,t){"use strict";t.exports=function(n){function u(t,i){var u=new n.Title({ctx:t.ctx,options:i,chart:t});r.configure(t,u,i);r.addBox(t,u);t.titleBlock=u}var i=n.helpers,r=n.layoutService,t=i.noop;return n.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},n.Title=n.Element.extend({initialize:function(n){var t=this;i.extend(t,n);t.legendHitBoxes=[]},beforeUpdate:t,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height);n.paddingLeft=0;n.paddingTop=0;n.paddingRight=0;n.paddingBottom=0;n.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,o=i.getValueOrDefault,u=t.options,s=n.defaults.global,f=u.display,e=o(u.fontSize,s.defaultFontSize),r=t.minSize;t.isHorizontal()?(r.width=t.maxWidth,r.height=f?e+2*u.padding:0):(r.width=f?e+2*u.padding:0,r.height=t.maxHeight);t.width=r.width;t.height=r.height},afterFit:t,isHorizontal:function(){var n=this.options.position;return"top"===n||"bottom"===n},draw:function(){var u=this,t=u.ctx,e=i.getValueOrDefault,r=u.options,o=n.defaults.global;if(r.display){var h,c,l,a=e(r.fontSize,o.defaultFontSize),w=e(r.fontStyle,o.defaultFontStyle),b=e(r.fontFamily,o.defaultFontFamily),k=i.fontString(a,w,b),p=0,f=u.top,s=u.left,v=u.bottom,y=u.right;t.fillStyle=e(r.fontColor,o.defaultFontColor);t.font=k;u.isHorizontal()?(h=s+(y-s)/2,c=f+(v-f)/2,l=y-s):(h="left"===r.position?s+a/2:y-a/2,c=f+(v-f)/2,l=v-f,p=Math.PI*("left"===r.position?-.5:.5));t.save();t.translate(h,c);t.rotate(p);t.textAlign="center";t.textBaseline="middle";t.fillText(r.text,0,0,l);t.restore()}}}),{id:"title",beforeInit:function(n){var t=n.options.title;t&&u(n,t)},beforeUpdate:function(t){var f=t.options.title,e=t.titleBlock;f?(f=i.configMerge(n.defaults.global.title,f),e?(r.configure(t,e,f),e.options=f):u(t,f)):e&&(n.layoutService.removeBox(t,e),delete t.titleBlock)}}}},{}],44:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.Scale.extend({getLabels:function(){var n=this.chart.data;return(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels},determineDataLimits:function(){var n=this,r=n.getLabels(),i;n.minIndex=0;n.maxIndex=r.length-1;void 0!==n.options.ticks.min&&(i=t.indexOf(r,n.options.ticks.min),n.minIndex=i!==-1?i:n.minIndex);void 0!==n.options.ticks.max&&(i=t.indexOf(r,n.options.ticks.max),n.maxIndex=i!==-1?i:n.maxIndex);n.min=r[n.minIndex];n.max=r[n.maxIndex]},buildTicks:function(){var n=this,t=n.getLabels();n.ticks=0===n.minIndex&&n.maxIndex===t.length-1?t:t.slice(n.minIndex,n.maxIndex+1)},getLabelForIndex:function(n,t){var i=this,r=i.chart.data,u=i.isHorizontal();return r.yLabels&&!u?i.getRightValue(r.datasets[t].data[n]):i.ticks[n-i.minIndex]},getPixelForValue:function(n,t,i,r){var f,u=this,l=Math.max(u.maxIndex+1-u.minIndex-(u.options.gridLines.offsetGridLines?0:1),1),a,e,o,s,h,c;return((void 0!==n&&null!==n&&(f=u.isHorizontal()?n.x:n.y),void 0!==f||void 0!==n&&isNaN(t))&&(a=u.getLabels(),n=f||n,e=a.indexOf(n),t=e!==-1?e:t),u.isHorizontal())?(o=u.width/l,s=o*(t-u.minIndex),(u.options.gridLines.offsetGridLines&&r||u.maxIndex===u.minIndex&&r)&&(s+=o/2),u.left+Math.round(s)):(h=u.height/l,c=h*(t-u.minIndex),u.options.gridLines.offsetGridLines&&r&&(c+=h/2),u.top+Math.round(c))},getPixelForTick:function(n,t){return this.getPixelForValue(this.ticks[n],n+this.minIndex,null,t)},getValueForPixel:function(n){var u,t=this,f=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),i=t.isHorizontal(),r=(i?t.width:t.height)/f;return n-=i?t.left:t.top,t.options.gridLines.offsetGridLines&&(n-=r/2),u=n<=0?0:Math.round(n/r)},getBasePixel:function(){return this.bottom}});n.scaleService.registerScaleType("category",i,{position:"bottom"})}},{}],45:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:n.Ticks.formatters.linear}},r=n.LinearScaleBase.extend({determineDataLimits:function(){function e(t){return h?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,f=n.options,i=n.chart,s=i.data,o=s.datasets,h=n.isHorizontal(),u,r;n.min=null;n.max=null;u=f.stacked;(void 0===u&&t.each(o,function(n,t){if(!u){var r=i.getDatasetMeta(t);i.isDatasetVisible(t)&&e(r)&&void 0!==r.stack&&(u=!0)}}),f.stacked||u)?(r={},t.each(o,function(u,o){var s=i.getDatasetMeta(o),c=[s.type,void 0===f.stacked&&void 0===s.stack?o:"",s.stack].join("."),h,l;void 0===r[c]&&(r[c]={positiveValues:[],negativeValues:[]});h=r[c].positiveValues;l=r[c].negativeValues;i.isDatasetVisible(o)&&e(s)&&t.each(u.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||s.data[i].hidden||(h[i]=h[i]||0,l[i]=l[i]||0,f.relativePoints?h[i]=100:r<0?l[i]+=r:h[i]+=r)})}),t.each(r,function(i){var r=i.positiveValues.concat(i.negativeValues),u=t.min(r),f=t.max(r);n.min=null===n.min?u:Math.min(n.min,u);n.max=null===n.max?f:Math.max(n.max,f)})):t.each(o,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&e(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(null===n.min?n.min=r:r<n.min&&(n.min=r),null===n.max?n.max=r:r>n.max&&(n.max=r))})});n.min=isFinite(n.min)?n.min:0;n.max=isFinite(n.max)?n.max:1;this.handleTickRangeOptions()},getTickLimit:function(){var u,r=this,i=r.options.ticks,f;return r.isHorizontal()?u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50)):(f=t.getValueOrDefault(i.fontSize,n.defaults.global.defaultFontSize),u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*f)))),u},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForValue:function(n){var i,t=this,r=t.start,u=+t.getRightValue(n),f=t.end-r;return t.isHorizontal()?(i=t.left+t.width/f*(u-r),Math.round(i)):(i=t.bottom-t.height/f*(u-r),Math.round(i))},getValueForPixel:function(n){var t=this,i=t.isHorizontal(),r=i?t.width:t.height,u=(i?n-t.left:t.bottom-n)/r;return t.start+(t.end-t.start)*u},getPixelForTick:function(n){return this.getPixelForValue(this.ticksAsNumbers[n])}});n.scaleService.registerScaleType("linear",r,i)}},{}],46:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.LinearScaleBase=n.Scale.extend({handleTickRangeOptions:function(){var n=this,f=n.options,i=f.ticks,r,u;i.beginAtZero&&(r=t.sign(n.min),u=t.sign(n.max),r<0&&u<0?n.max=0:r>0&&u>0&&(n.min=0));void 0!==i.min?n.min=i.min:void 0!==i.suggestedMin&&(n.min=null===n.min?i.suggestedMin:Math.min(n.min,i.suggestedMin));void 0!==i.max?n.max=i.max:void 0!==i.suggestedMax&&(n.max=null===n.max?i.suggestedMax:Math.max(n.max,i.suggestedMax));n.min===n.max&&(n.max++,i.beginAtZero||n.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var i=this,o=i.options,r=o.ticks,f=i.getTickLimit(),e,u;f=Math.max(2,f);e={maxTicks:f,min:r.min,max:r.max,stepSize:t.getValueOrDefault(r.fixedStepSize,r.stepSize)};u=i.ticks=n.Ticks.generators.linear(e,i);i.handleDirectionalChanges();i.max=t.max(u);i.min=t.min(u);r.reverse?(u.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice();t.zeroLineIndex=t.ticks.indexOf(0);n.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],47:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:n.Ticks.formatters.logarithmic}},r=n.Scale.extend({determineDataLimits:function(){function e(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,s=r.ticks,i=n.chart,c=i.data,o=c.datasets,h=t.getValueOrDefault,l=n.isHorizontal(),u,f;n.min=null;n.max=null;n.minNotZero=null;u=r.stacked;(void 0===u&&t.each(o,function(n,t){if(!u){var r=i.getDatasetMeta(t);i.isDatasetVisible(t)&&e(r)&&void 0!==r.stack&&(u=!0)}}),r.stacked||u)?(f={},t.each(o,function(u,o){var s=i.getDatasetMeta(o),h=[s.type,void 0===r.stacked&&void 0===s.stack?o:"",s.stack].join(".");i.isDatasetVisible(o)&&e(s)&&(void 0===f[h]&&(f[h]=[]),t.each(u.data,function(t,i){var u=f[h],e=+n.getRightValue(t);isNaN(e)||s.data[i].hidden||(u[i]=u[i]||0,r.relativePoints?u[i]=100:u[i]+=e)}))}),t.each(f,function(i){var r=t.min(i),u=t.max(i);n.min=null===n.min?r:Math.min(n.min,r);n.max=null===n.max?u:Math.max(n.max,u)})):t.each(o,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&e(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(null===n.min?n.min=r:r<n.min&&(n.min=r),null===n.max?n.max=r:r>n.max&&(n.max=r),0!==r&&(null===n.minNotZero||r<n.minNotZero)&&(n.minNotZero=r))})});n.min=h(s.min,n.min);n.max=h(s.max,n.max);n.min===n.max&&(0!==n.min&&null!==n.min?(n.min=Math.pow(10,Math.floor(t.log10(n.min))-1),n.max=Math.pow(10,Math.floor(t.log10(n.max))+1)):(n.min=1,n.max=10))},buildTicks:function(){var i=this,f=i.options,u=f.ticks,e={min:u.min,max:u.max},r=i.ticks=n.Ticks.generators.logarithmic(e,i);i.isHorizontal()||r.reverse();i.max=t.max(r);i.min=t.min(r);u.reverse?(r.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice();n.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForTick:function(n){return this.getPixelForValue(this.tickValues[n])},getPixelForValue:function(n){var r,e,f,i=this,o=i.start,u=+i.getRightValue(n),h=i.options,s=h.ticks;return i.isHorizontal()?(f=t.log10(i.end)-t.log10(o),0===u?e=i.left:(r=i.width,e=i.left+r/f*(t.log10(u)-t.log10(o)))):(r=i.height,0!==o||s.reverse?0===i.end&&s.reverse?(f=t.log10(i.start)-t.log10(i.minNotZero),e=u===i.end?i.top:u===i.minNotZero?i.top+.02*r:i.top+.02*r+.98*r/f*(t.log10(u)-t.log10(i.minNotZero))):0===u?e=s.reverse?i.top:i.bottom:(f=t.log10(i.end)-t.log10(o),r=i.height,e=i.bottom-r/f*(t.log10(u)-t.log10(o))):(f=t.log10(i.end)-t.log10(i.minNotZero),e=u===o?i.bottom:u===i.minNotZero?i.bottom-.02*r:i.bottom-.02*r-.98*r/f*(t.log10(u)-t.log10(i.minNotZero)))),e},getValueForPixel:function(n){var u,r,i=this,f=t.log10(i.end)-t.log10(i.start);return i.isHorizontal()?(r=i.width,u=i.start*Math.pow(10,(n-i.left)*f/r)):(r=i.height,u=Math.pow(10,(i.bottom-n)*f/r)/i.start),u}});n.scaleService.registerScaleType("logarithmic",r,i)}},{}],48:[function(n,t){"use strict";t.exports=function(n){function r(n){var t=n.options;return t.angleLines.display||t.pointLabels.display?n.chart.data.labels.length:0}function f(n){var r=n.options.pointLabels,u=t.getValueOrDefault(r.fontSize,i.defaultFontSize),f=t.getValueOrDefault(r.fontStyle,i.defaultFontStyle),e=t.getValueOrDefault(r.fontFamily,i.defaultFontFamily),o=t.fontString(u,f,e);return{size:u,style:f,family:e,font:o}}function o(n,i,r){return t.isArray(r)?{w:t.longestText(n,n.font,r),h:r.length*i+1.5*(r.length-1)*i}:{w:n.measureText(r).width,h:i}}function e(n,t,i,r,u){return n===r||n===u?{start:t-i/2,end:t+i/2}:n<r||n>u?{start:t-i-5,end:t}:{start:t,end:t+i+5}}function s(n){var u,c,v,y=f(n),p=Math.min(n.height/2,n.width/2),i={r:n.width,l:0,t:n.height,b:0},s={},w;for(n.ctx.font=y.font,n._pointLabelSizes=[],w=r(n),u=0;u<w;u++){v=n.getPointPosition(u,p);c=o(n.ctx,y.size,n.pointLabels[u]||"");n._pointLabelSizes[u]=c;var h=n.getIndexAngle(u),b=t.toDegrees(h)%360,l=e(b,v.x,c.w,0,180),a=e(b,v.y,c.h,90,270);l.start<i.l&&(i.l=l.start,s.l=h);l.end>i.r&&(i.r=l.end,s.r=h);a.start<i.t&&(i.t=a.start,s.t=h);a.end>i.b&&(i.b=a.end,s.b=h)}n.setReductions(p,i,s)}function h(n){var t=Math.min(n.height/2,n.width/2);n.drawingArea=Math.round(t);n.setCenterPoint(0,0,0,0)}function c(n){return 0===n||180===n?"center":n<180?"left":"right"}function l(n,i,r,u){if(t.isArray(i))for(var e=r.y,o=1.5*u,f=0;f<i.length;++f)n.fillText(i[f],r.x,e),e+=o;else n.fillText(i,r.x,r.y)}function a(n,t,i){90===n||270===n?i.y-=t.h/2:(n>270||n<90)&&(i.y-=t.h)}function v(n){var u=n.ctx,g=t.getValueOrDefault,o=n.options,s=o.angleLines,b=o.pointLabels,h,v,e,y,p,k,d,w;for(u.lineWidth=s.lineWidth,u.strokeStyle=s.color,h=n.getDistanceFromCenterForValue(o.reverse?n.min:n.max),v=f(n),u.textBaseline="top",e=r(n)-1;e>=0;e--)s.display&&(y=n.getPointPosition(e,h),u.beginPath(),u.moveTo(n.xCenter,n.yCenter),u.lineTo(y.x,y.y),u.stroke(),u.closePath()),b.display&&(p=n.getPointPosition(e,h+5),k=g(b.fontColor,i.defaultFontColor),u.font=v.font,u.fillStyle=k,d=n.getIndexAngle(e),w=t.toDegrees(d),u.textAlign=c(w),a(w,n._pointLabelSizes[e],p),l(u,n.pointLabels[e]||"",p,v.size))}function y(n,i,u,f){var e=n.ctx,h,o,s;if(e.strokeStyle=t.getValueAtIndexOrDefault(i.color,f-1),e.lineWidth=t.getValueAtIndexOrDefault(i.lineWidth,f-1),n.options.gridLines.circular)e.beginPath(),e.arc(n.xCenter,n.yCenter,u,0,2*Math.PI),e.closePath(),e.stroke();else{if(h=r(n),0===h)return;for(e.beginPath(),o=n.getPointPosition(0,u),e.moveTo(o.x,o.y),s=1;s<h;s++)o=n.getPointPosition(s,u),e.lineTo(o.x,o.y);e.closePath();e.stroke()}}function u(n){return t.isNumber(n)?n:0}var t=n.helpers,i=n.defaults.global,p={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:n.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(n){return n}}},w=n.LinearScaleBase.extend({setDimensions:function(){var n=this,u=n.options,f=u.ticks,r,e;n.width=n.maxWidth;n.height=n.maxHeight;n.xCenter=Math.round(n.width/2);n.yCenter=Math.round(n.height/2);r=t.min([n.height,n.width]);e=t.getValueOrDefault(f.fontSize,i.defaultFontSize);n.drawingArea=u.display?r/2-(e/2+f.backdropPaddingY):r/2},determineDataLimits:function(){var n=this,u=n.chart,i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;t.each(u.data.datasets,function(f,e){if(u.isDatasetVisible(e)){var o=u.getDatasetMeta(e);t.each(f.data,function(t,u){var f=+n.getRightValue(t);isNaN(f)||o.data[u].hidden||(i=Math.min(f,i),r=Math.max(f,r))})}});n.min=i===Number.POSITIVE_INFINITY?0:i;n.max=r===Number.NEGATIVE_INFINITY?0:r;n.handleTickRangeOptions()},getTickLimit:function(){var n=this.options.ticks,r=t.getValueOrDefault(n.fontSize,i.defaultFontSize);return Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var t=this;n.LinearScaleBase.prototype.convertTicksToLabels.call(t);t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},fit:function(){this.options.pointLabels.display?s(this):h(this)},setReductions:function(n,t,i){var r=this,f=t.l/Math.sin(i.l),e=Math.max(t.r-r.width,0)/Math.sin(i.r),o=-t.t/Math.cos(i.t),s=-Math.max(t.b-r.height,0)/Math.cos(i.b);f=u(f);e=u(e);o=u(o);s=u(s);r.drawingArea=Math.min(Math.round(n-(f+e)/2),Math.round(n-(o+s)/2));r.setCenterPoint(f,e,o,s)},setCenterPoint:function(n,t,i,r){var u=this,f=u.width-t-u.drawingArea,e=n+u.drawingArea,o=i+u.drawingArea,s=u.height-r-u.drawingArea;u.xCenter=Math.round((e+f)/2+u.left);u.yCenter=Math.round((o+s)/2+u.top)},getIndexAngle:function(n){var t=2*Math.PI/r(this),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,u=i*Math.PI/180;return n*t+u},getDistanceFromCenterForValue:function(n){var t=this,i;return null===n?0:(i=t.drawingArea/(t.max-t.min),t.options.reverse?(t.max-n)*i:(n-t.min)*i)},getPointPosition:function(n,t){var i=this,r=i.getIndexAngle(n)-Math.PI/2;return{x:Math.round(Math.cos(r)*t)+i.xCenter,y:Math.round(Math.sin(r)*t)+i.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var n=this,t=n.min,i=n.max;return n.getPointPositionForValue(0,n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(){var r=this,f=r.options,s=f.gridLines,n=f.ticks,e=t.getValueOrDefault;if(f.display){var u=r.ctx,o=e(n.fontSize,i.defaultFontSize),h=e(n.fontStyle,i.defaultFontStyle),c=e(n.fontFamily,i.defaultFontFamily),l=t.fontString(o,h,c);t.each(r.ticks,function(t,h){var c,a,p,v;(h>0||f.reverse)&&(c=r.getDistanceFromCenterForValue(r.ticksAsNumbers[h]),a=r.yCenter-c,(s.display&&0!==h&&y(r,s,c,h),n.display)&&(p=e(n.fontColor,i.defaultFontColor),(u.font=l,n.showLabelBackdrop)&&(v=u.measureText(t).width,u.fillStyle=n.backdropColor,u.fillRect(r.xCenter-v/2-n.backdropPaddingX,a-o/2-n.backdropPaddingY,v+2*n.backdropPaddingX,o+2*n.backdropPaddingY)),u.textAlign="center",u.textBaseline="middle",u.fillStyle=p,u.fillText(t,r.xCenter,a)))});(f.angleLines.display||f.pointLabels.display)&&v(r)}}});n.scaleService.registerScaleType("radialLinear",w,p)}},{}],49:[function(n,t){"use strict";var i=n(1);i="function"==typeof i?i:window.moment;t.exports=function(n){function r(n,t){var r=n.options.time,u;return"string"==typeof r.parser?i(t,r.parser):"function"==typeof r.parser?r.parser(t):"function"==typeof t.getMonth||"number"==typeof t?i(t):t.isValid&&t.isValid()?t:(u=r.format,"string"!=typeof u&&u.call?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),u(t)):i(t,u))}function e(n,t,i,r){for(var f,h,e,o=Object.keys(u),c=o.length,s=o.indexOf(n);s<c;s++)if(e=o[s],f=u[e],h=f.steps&&f.steps[f.steps.length-1]||f.maxStep,void 0===h||Math.ceil((i-t)/(h*f.size))<=r)break;return e}function o(n,t,i,r){var e=u[i],h=e.size,o=Math.ceil((t-n)/h),f=1,c=t-n,l,s;if(e.steps)for(l=e.steps.length,s=0;s<l&&o>r;s++)f=e.steps[s],o=Math.ceil(c/(h*f));else for(;o>r&&r>0;)++f,o=Math.ceil(c/(h*f));return f}function s(n,t,r){var u=[],o,f,e;if(n.maxTicks){for(o=n.stepSize,u.push(void 0!==n.min?n.min:r.min),f=i(r.min);f.add(o,n.unit).valueOf()<r.max;)u.push(f.valueOf());e=n.max||r.max;u[u.length-1]!==e&&u.push(e)}return u}var t=n.helpers,u={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},f;n.Ticks.generators.time=function(n,t){var u,r,f=n.isoWeekday;return"week"===n.unit&&f!==!1?(u=i(t.min).startOf("isoWeek").isoWeekday(f).valueOf(),r=i(t.max).startOf("isoWeek").isoWeekday(f),t.max-r>0&&r.add(1,"week"),r=r.valueOf()):(u=i(t.min).startOf(n.unit).valueOf(),r=i(t.max).startOf(n.unit),t.max-r>0&&r.add(1,n.unit),r=r.valueOf()),s(n,t,{min:u,max:r})};f=n.Scale.extend({initialize:function(){if(!i)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");n.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var i,n=this,e=n.options.time,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER,s=n.chart.data,o={labels:[],datasets:[]};t.each(s.labels,function(t,s){var h=r(n,t);h.isValid()&&(e.round&&h.startOf(e.round),i=h.valueOf(),u=Math.min(i,u),f=Math.max(i,f),o.labels[s]=i)});t.each(s.datasets,function(s,h){var c=[];"object"==typeof s.data[0]&&null!==s.data[0]&&n.chart.isDatasetVisible(h)?t.each(s.data,function(t,o){var s=r(n,n.getRightValue(t));s.isValid()&&(e.round&&s.startOf(e.round),i=s.valueOf(),u=Math.min(i,u),f=Math.max(i,f),c[o]=i)}):c=o.labels.slice();o.datasets[h]=c});n.dataMin=u;n.dataMax=f;n._parsedData=o},buildTicks:function(){var f,s,i=this,u=i.options.time,h=i.dataMin,a=i.dataMax,v,c,l,y;u.min&&(v=r(i,u.min),u.round&&v.round(u.round),f=v.valueOf());u.max&&(s=r(i,u.max).valueOf());c=i.getLabelCapacity(f||h);l=u.unit||e(u.minUnit,f||h,s||a,c);i.displayFormat=u.displayFormats[l];y=u.stepSize||o(f||h,s||a,l,c);i.ticks=n.Ticks.generators.time({maxTicks:c,min:f,max:s,stepSize:y,unit:l,isoWeekday:u.isoWeekday},{min:h,max:a});i.max=t.max(i.ticks);i.min=t.min(i.ticks)},getLabelForIndex:function(n,t){var i=this,u=i.chart.data.labels&&n<i.chart.data.labels.length?i.chart.data.labels[n]:"",f=i.chart.data.datasets[t].data[n];return null!==f&&"object"==typeof f&&(u=i.getRightValue(f)),i.options.time.tooltipFormat&&(u=r(i,u).format(i.options.time.tooltipFormat)),u},tickFormatFunction:function(n,i,r){var u=n.format(this.displayFormat),f=this.options.ticks,e=t.getValueOrDefault(f.callback,f.userCallback);return e?e(u,i,r):u},convertTicksToLabels:function(){var n=this;n.ticksAsTimestamps=n.ticks;n.ticks=n.ticks.map(function(n){return i(n)}).map(n.tickFormatFunction,n)},getPixelForOffset:function(n){var t=this,i=t.max-t.min,r=i?(n-t.min)/i:0,u,f;return t.isHorizontal()?(u=t.width*r,t.left+Math.round(u)):(f=t.height*r,t.top+Math.round(f))},getPixelForValue:function(n,t,i){var f=this,u=null;if(void 0!==t&&void 0!==i&&(u=f._parsedData.datasets[i][t]),null===u&&(n&&n.isValid||(n=r(f,f.getRightValue(n))),n&&n.isValid&&n.isValid()&&(u=n.valueOf())),null!==u)return f.getPixelForOffset(u)},getPixelForTick:function(n){return this.getPixelForOffset(this.ticksAsTimestamps[n])},getValueForPixel:function(n){var t=this,r=t.isHorizontal()?t.width:t.height,u=(n-(t.isHorizontal()?t.left:t.top))/r;return i(t.min+u*(t.max-t.min))},getLabelWidth:function(i){var u=this,r=u.options.ticks,f=u.ctx.measureText(i).width,e=Math.cos(t.toRadians(r.maxRotation)),o=Math.sin(t.toRadians(r.maxRotation)),s=t.getValueOrDefault(r.fontSize,n.defaults.global.defaultFontSize);return f*e+s*o},getLabelCapacity:function(n){var t=this;t.displayFormat=t.options.time.displayFormats.millisecond;var r=t.tickFormatFunction(i(n),0,[]),u=t.getLabelWidth(r),f=t.isHorizontal()?t.width:t.height;return f/u}});n.scaleService.registerScaleType("time",f,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{1:1}]},{},[7])(7)});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((n=n||self).FilePond={})}(this,function(n){"use strict";function fh(n){this.wrapped=n}function oi(n){function r(t,i){try{var e=n[t](i),f=e.value,o=f instanceof fh;Promise.resolve(o?f.wrapped:f).then(function(n){o?r("next",n):u(e.done?"return":"normal",n)},function(n){r("throw",n)})}catch(n){u("throw",n)}}function u(n,u){switch(n){case"return":t.resolve({value:u,done:!0});break;case"throw":t.reject(u);break;default:t.resolve({value:u,done:!1})}(t=t.next)?r(t.key,t.arg):i=null}var t,i;this._invoke=function(n,u){return new Promise(function(f,e){var o={key:n,arg:u,resolve:f,reject:e,next:null};i?i=i.next=o:(t=i=o,r(n,u))})};"function"!=typeof n.return&&(this.return=void 0)}function eh(n,t){var i,r,u,f;if(null==n)return{};if(u=function(n,t){if(null==n)return{};for(var i,u={},f=Object.keys(n),r=0;r<f.length;r++)i=f[r],t.indexOf(i)>=0||(u[i]=n[i]);return u}(n,t),Object.getOwnPropertySymbols)for(f=Object.getOwnPropertySymbols(n),r=0;r<f.length;r++)i=f[r],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(n,i)&&(u[i]=n[i]);return u}function of(n){return function(n){if(Array.isArray(n)){for(var t=0,i=new Array(n.length);t<n.length;t++)i[t]=n[t];return i}}(n)||oh(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance");}()}function oh(n){if(Symbol.iterator in Object(n)||"[object Arguments]"===Object.prototype.toString.call(n))return Array.from(n)}var r=function(n,t){for(var i in n)n.hasOwnProperty(i)&&t(i,n[i])},nt=function(n){var t={};return r(n,function(i){!function(n,t,i){"function"!=typeof i?Object.defineProperty(n,t,Object.assign({},i)):n[t]=i}(t,i,n[i])}),t},f=function(n,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===i)return n.getAttribute(t)||n.hasAttribute(t);n.setAttribute(t,i)},ss=["svg","path"],cu=function(n){return ss.includes(n)},ii=function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i;return"object"==typeof t&&(u=t,t=null),i=cu(n)?document.createElementNS("http://www.w3.org/2000/svg",n):document.createElement(n),t&&(cu(n)?f(i,"class",t):i.className=t),r(u,function(n,t){f(i,n,t)}),i},hs=function(n,t){return function(n,i){return void 0!==i?t.splice(i,0,n):t.push(n),n}},cs=function(n,t){return function(i){return t.splice(t.indexOf(i),1),i.element.parentNode&&n.removeChild(i.element),i}},ls="undefined"!=typeof window&&void 0!==window.document,lu=function(){return ls},as="children"in(lu()?ii("svg"):{})?function(n){return n.children.length}:function(n){return n.childNodes.length},au=function(n,t,i,r){var f=i[0]||n.left,e=i[1]||n.top,o=f+n.width,s=e+n.height*(r[1]||1),u={element:Object.assign({},n),inner:{left:n.left,top:n.top,right:n.right,bottom:n.bottom},outer:{left:f,top:e,right:o,bottom:s}};return t.filter(function(n){return!n.isRectIgnored()}).map(function(n){return n.rect}).forEach(function(n){vu(u.inner,Object.assign({},n.inner));vu(u.outer,Object.assign({},n.outer))}),yu(u.inner),u.outer.bottom+=u.element.marginBottom,u.outer.right+=u.element.marginRight,yu(u.outer),u},vu=function(n,t){t.top+=n.top;t.right+=n.left;t.bottom+=n.top;t.left+=n.left;t.bottom>n.bottom&&(n.bottom=t.bottom);t.right>n.right&&(n.right=t.right)},yu=function(n){n.width=n.right-n.left;n.height=n.bottom-n.top},it=function(n){return"number"==typeof n},vs=function(n){return n<.5?2*n*n:(4-2*n)*n-1},pu={spring:function(){var f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=f.stiffness,h=void 0===e?.5:e,o=f.damping,c=void 0===o?.75:o,s=f.mass,l=void 0===s?10:s,t=null,n=null,u=0,i=!1,r=nt({interpolate:function(f,e){if(!i){if(!it(t)||!it(n))return i=!0,void(u=0);(function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(n-t)<r&&Math.abs(i)<r})(n+=u+=-(n-t)*h/l,t,u*=c)||e?(n=t,u=0,i=!0,r.onupdate(n),r.oncomplete(n)):r.onupdate(n)}},target:{set:function(f){if(it(f)&&!it(n)&&(n=f),null===t&&(t=f,n=f),n===(t=f)||void 0===t)return i=!0,u=0,r.onupdate(n),void r.oncomplete(n);i=!1},get:function(){return t}},resting:{get:function(){return i}},onupdate:function(){},oncomplete:function(){}});return r},tween:function(){var f,t,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=o.duration,h=void 0===s?500:s,c=o.easing,v=void 0===c?vs:c,l=o.delay,a=void 0===l?0:l,r=null,e=!0,u=!1,n=null,i=nt({interpolate:function(o,s){e||null===n||(null===r&&(r=o),o-r<a||((f=o-r-a)>=h||s?(f=1,t=u?0:1,i.onupdate(t*n),i.oncomplete(t*n),e=!0):(t=f/h,i.onupdate((f>=0?v(u?1-t:t):0)*n))))},target:{get:function(){return u?0:n},set:function(t){if(null===n)return n=t,i.onupdate(t),void i.oncomplete(t);t<n?(n=1,u=!0):(u=!1,n=t);e=!1;r=null}},resting:{get:function(){return e}},onupdate:function(){},oncomplete:function(){}});return i}},ys=function(n,t,i){var r=n[t]&&"object"==typeof n[t][i]?n[t][i]:n[t]||n,u="string"==typeof r?r:r.type,f="object"==typeof r?Object.assign({},r):{};return pu[u]?pu[u](f):null},di=function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach(function(t){n.forEach(function(n){var u=n,f=function(){return i[n]},e=function(t){return i[n]=t};"object"==typeof n&&(u=n.key,f=n.getter||f,e=n.setter||e);t[u]&&!r||(t[u]={get:f,set:e})})})},h=function(n){return null!=n},ps={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},ws=function(n,t){if(Object.keys(n).length!==Object.keys(t).length)return!0;for(var i in t)if(t[i]!==n[i])return!0;return!1},bs=function(n,t){var u=t.opacity,s=t.perspective,c=t.translateX,l=t.translateY,f=t.scaleX,e=t.scaleY,a=t.rotateX,v=t.rotateY,y=t.rotateZ,p=t.originX,w=t.originY,b=t.width,k=t.height,r="",i="",o;(h(p)||h(w))&&(i+="transform-origin: "+(p||0)+"px "+(w||0)+"px;");h(s)&&(r+="perspective("+s+"px) ");(h(c)||h(l))&&(r+="translate3d("+(c||0)+"px, "+(l||0)+"px, 0) ");(h(f)||h(e))&&(r+="scale3d("+(h(f)?f:1)+", "+(h(e)?e:1)+", 1) ");h(y)&&(r+="rotateZ("+y+"rad) ");h(a)&&(r+="rotateX("+a+"rad) ");h(v)&&(r+="rotateY("+v+"rad) ");r.length&&(i+="transform:"+r+";");h(u)&&(i+="opacity:"+u+";",0===u&&(i+="visibility:hidden;"),u<1&&(i+="pointer-events:none;"));h(k)&&(i+="height:"+k+"px;");h(b)&&(i+="width:"+b+"px;");o=n.elementCurrentStyle||"";i.length===o.length&&i===o||(n.style.cssText=i,n.elementCurrentStyle=i)},ks={styles:function(n){var u=n.mixinConfig,t=n.viewProps,f=n.viewInternalAPI,e=n.viewExternalAPI,i=n.view,o=Object.assign({},t),s={},r;return di(u,[f,e],t),r=function(){return i.rect?au(i.rect,i.childViews,[t.translateX||0,t.translateY||0],[t.scaleX||0,t.scaleY||0]):null},f.rect={get:r},e.rect={get:r},u.forEach(function(n){t[n]=void 0===o[n]?ps[n]:o[n]}),{write:function(){if(ws(s,t))return bs(i.element,t),Object.assign(s,Object.assign({},t)),!0},destroy:function(){}}},listeners:function(n){n.mixinConfig;n.viewProps;n.viewInternalAPI;var i,r=n.viewExternalAPI,u=(n.viewState,n.view),t=[],e=(i=u.element,function(n,t){i.addEventListener(n,t)}),f=function(n){return function(t,i){n.removeEventListener(t,i)}}(u.element);return r.on=function(n,i){t.push({type:n,fn:i});e(n,i)},r.off=function(n,i){t.splice(t.findIndex(function(t){return t.type===n&&t.fn===i}),1);f(n,i)},{write:function(){return!0},destroy:function(){t.forEach(function(n){f(n.type,n.fn)})}}},animations:function(n){var u=n.mixinConfig,t=n.viewProps,f=n.viewInternalAPI,e=n.viewExternalAPI,o=Object.assign({},t),i=[];return r(u,function(n,r){var u=ys(r);u&&(u.onupdate=function(i){t[n]=i},u.target=o[n],di([{key:n,setter:function(n){u.target!==n&&(u.target=n)},getter:function(){return t[n]}}],[f,e],t,!0),i.push(u))}),{write:function(n){var r=document.hidden,t=!0;return i.forEach(function(i){i.resting||(t=!1);i.interpolate(n,r)}),t},destroy:function(){}}},apis:function(n){var t=n.mixinConfig,i=n.viewProps,r=n.viewExternalAPI;di(t,r,i)}},wu=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(n.paddingTop=parseInt(i.paddingTop,10)||0,n.marginTop=parseInt(i.marginTop,10)||0,n.marginRight=parseInt(i.marginRight,10)||0,n.marginBottom=parseInt(i.marginBottom,10)||0,n.marginLeft=parseInt(i.marginLeft,10)||0,t.layoutCalculated=!0),n.left=t.offsetLeft||0,n.top=t.offsetTop||0,n.width=t.offsetWidth||0,n.height=t.offsetHeight||0,n.right=n.left+n.width,n.bottom=n.top+n.height,n.scrollTop=t.scrollTop,n.hidden=null===t.offsetParent,n},e=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=n.tag,b=void 0===t?"div":t,i=n.name,r=void 0===i?null:i,u=n.attributes,k=void 0===u?{}:u,f=n.read,d=void 0===f?function(){}:f,e=n.write,g=void 0===e?function(){}:e,o=n.create,tt=void 0===o?function(){}:o,s=n.destroy,it=void 0===s?function(){}:s,h=n.filterFrameActionsForChild,c=void 0===h?function(n,t){return t}:h,l=n.didCreateView,rt=void 0===l?function(){}:l,a=n.didWriteView,ut=void 0===a?function(){}:a,v=n.ignoreRect,ft=void 0!==v&&v,y=n.ignoreRectUpdate,et=void 0!==y&&y,p=n.mixins,w=void 0===p?[]:p;return function(n){var o,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=ii(b,"filepond--"+r,k),l=window.getComputedStyle(u,null),e=wu(),s=null,a=!1,t=[],h=[],yt={},pt={},v=[g],y=[d],p=[it],ot=function(){return u},st=function(){return t.concat()},ht=function(){return s||(s=au(e,t,[0,0],[1,1]))},ct={element:{get:ot},style:{get:function(){return l}},childViews:{get:st}},lt=Object.assign({},ct,{rect:{get:ht},ref:{get:function(){return yt}},is:function(n){return r===n},appendChild:(o=u,function(n,t){void 0!==t&&o.children[t]?o.insertBefore(n,o.children[t]):o.appendChild(n)}),createChildView:function(n){return function(t,i){return t(n,i)}}(n),linkView:function(n){return t.push(n),n},unlinkView:function(n){t.splice(t.indexOf(n),1)},appendChildView:hs(0,t),removeChildView:cs(u,t),registerWriter:function(n){return v.push(n)},registerReader:function(n){return y.push(n)},registerDestroyer:function(n){return p.push(n)},invalidateLayout:function(){return u.layoutCalculated=!1},dispatch:n.dispatch,query:n.query}),at={element:{get:ot},childViews:{get:st},rect:{get:ht},resting:{get:function(){return a}},isRectIgnored:function(){return ft},_read:function(){s=null;t.forEach(function(n){return n._read()});!(et&&e.width&&e.height)&&wu(e,u,l);var n={root:i,props:f,rect:e};y.forEach(function(t){return t(n)})},_write:function(n,r,u){var e=0===r.length;return v.forEach(function(t){!1===t({props:f,root:i,actions:r,timestamp:n,shouldOptimize:u})&&(e=!1)}),h.forEach(function(t){!1===t.write(n)&&(e=!1)}),t.filter(function(n){return!!n.element.parentNode}).forEach(function(t){t._write(n,c(t,r),u)||(e=!1)}),t.forEach(function(t,f){t.element.parentNode||(i.appendChild(t.element,f),t._read(),t._write(n,c(t,r),u),e=!1)}),a=e,ut({props:f,root:i,actions:r,timestamp:n}),e},_destroy:function(){h.forEach(function(n){return n.destroy()});p.forEach(function(n){n({root:i,props:f})});t.forEach(function(n){return n._destroy()})}},wt=Object.assign({},ct,{rect:{get:function(){return e}}}),i,vt;return Object.keys(w).sort(function(n,t){return"styles"===n?1:"styles"===t?-1:0}).forEach(function(n){var t=ks[n]({mixinConfig:w[n],viewProps:f,viewState:pt,viewInternalAPI:lt,viewExternalAPI:at,view:nt(wt)});t&&h.push(t)}),i=nt(lt),tt({root:i,props:f}),vt=as(u),t.forEach(function(n,t){i.appendChild(n.element,vt+t)}),rt(i),nt(at)}},c=function(n,t){return function(i){var r=i.root,u=i.props,f=i.actions,e=void 0===f?[]:f,o=i.timestamp,s=i.shouldOptimize;e.filter(function(t){return n[t.type]}).forEach(function(t){return n[t.type]({root:r,props:u,action:t.data,timestamp:o,shouldOptimize:s})});t&&t({root:r,props:u,actions:e,timestamp:o,shouldOptimize:s})}},bu=function(n,t){return t.parentNode.insertBefore(n,t)},ku=function(n,t){return t.parentNode.insertBefore(n,t.nextSibling)},ri=function(n){return Array.isArray(n)},d=function(n){return null==n},ds=function(n){return n.trim()},ui=function(n){return""+n},du=function(n){return"boolean"==typeof n},gu=function(n){return du(n)?n:"true"===n},a=function(n){return"string"==typeof n},nf=function(n){return it(n)?n:a(n)?ui(n).replace(/[a-z]+/gi,""):0},fi=function(n){return parseInt(nf(n),10)},tf=function(n){return parseFloat(nf(n))},ht=function(n){return it(n)&&isFinite(n)&&Math.floor(n)===n},rf=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,t;return ht(n)?n:(t=ui(n).trim(),/MB$/i.test(t)?(t=t.replace(/MB$i/,"").trim(),fi(t)*i*i):/KB/i.test(t)?(t=t.replace(/KB$i/,"").trim(),fi(t)*i):fi(t))},ct=function(n){return"function"==typeof n},uf={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},gs=function(n,t,i,r,u){var f,e;return null===t?null:"function"==typeof t?t:(f={url:"GET"===i||"PATCH"===i?"?"+n+"=":"",method:i,headers:u,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null},a(t))?(f.url=t,f):((Object.assign(f,t),a(f.headers))&&(e=f.headers.split(/:(.+)/),f.headers={header:e[0],value:e[1]}),f.withCredentials=gu(f.withCredentials),f)},s=function(n){return"object"==typeof n&&null!==n},gi=function(n){return ri(n)?"array":function(n){return null===n}(n)?"null":ht(n)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(n)?"bytes":function(n){return s(n)&&a(n.url)&&s(n.process)&&s(n.revert)&&s(n.restore)&&s(n.fetch)}(n)?"api":typeof n},nh={array:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return d(n)?[]:ri(n)?n:ui(n).split(t).map(ds).filter(function(n){return n.length})},boolean:gu,int:function(n){return"bytes"===gi(n)?rf(n):fi(n)},number:tf,float:tf,bytes:rf,string:function(n){return ct(n)?n:ui(n)},"function":function(n){return function(n){for(var t=self,r=n.split("."),i=null;i=r.shift();)if(!(t=t[i]))return null;return t}(n)},serverapi:function(n){return(i={}).url=a(t=n)?t:t.url||"",i.timeout=t.timeout?parseInt(t.timeout,10):0,i.headers=t.headers?t.headers:{},r(uf,function(n){i[n]=gs(n,t[n],uf[n],i.timeout,i.headers)}),i.remove=t.remove||null,delete i.headers,i;var t,i},object:function(n){try{return JSON.parse(n.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'))}catch(n){return null}}},ff=function(n,t,i){var f,u,r;if(n===t)return n;if(u=gi(n),u!==i){if(r=(f=n,nh[i](f)),u=gi(r),null===r)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+i+'"';n=r}return n},th=function(n){var t={};return r(n,function(i){var r,f,u,e=n[i];t[i]=(r=e[0],f=e[1],u=r,{enumerable:!0,get:function(){return u},set:function(n){u=ff(n,r,f)}})}),nt(t)},ei=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return n.split(/(?=[A-Z])/).map(function(n){return n.toLowerCase()}).join(t)},ih=function(n){return function(t,i,u){var f={};return r(n,function(n){var i=ei(n,"_").toUpperCase();f["SET_"+i]=function(r){try{u.options[n]=r.value}catch(n){}t("DID_SET_"+i,{value:u.options[n]})}}),f}},rh=function(n){return function(t){var i={};return r(n,function(n){i["GET_"+ei(n,"_").toUpperCase()]=function(){return t.options[n]}}),i}},nr=1,ef=2,tr=3,uh=4,ir=5,rr=function(){return Math.random().toString(36).substr(2,9)},su,hu;"function"==typeof Symbol&&Symbol.asyncIterator&&(oi.prototype[Symbol.asyncIterator]=function(){return this});oi.prototype.next=function(n){return this._invoke("next",n)};oi.prototype.throw=function(n){return this._invoke("throw",n)};oi.prototype.return=function(n){return this._invoke("return",n)};var sf,ur,fr=function(n,t){return n.splice(t,1)},si=function(){var n=[],t=function(t,i){fr(n,n.findIndex(function(n){return n.event===t&&(n.cb===i||!i)}))},i=function(t,i,r){n.filter(function(n){return n.event===t}).map(function(n){return n.cb}).forEach(function(n){return function(n,t){t?n():document.hidden?Promise.resolve(1).then(n):setTimeout(n,0)}(function(){return n.apply(void 0,of(i))},r)})};return{fireSync:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),t=1;t<r;t++)u[t-1]=arguments[t];i(n,u,!0)},fire:function(n){for(var r=arguments.length,u=new Array(r>1?r-1:0),t=1;t<r;t++)u[t-1]=arguments[t];i(n,u,!1)},on:function(t,i){n.push({event:t,cb:i})},onOnce:function(i,r){n.push({event:i,cb:function(){t(i,r);r.apply(void 0,arguments)}})},off:t}},hf=function(n,t,i){Object.getOwnPropertyNames(n).filter(function(n){return!i.includes(n)}).forEach(function(i){return Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})},sh=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],v=function(n){var t={};return hf(n,t,sh),t},i={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},l={INPUT:1,LIMBO:2,LOCAL:3},cf=function(n){return/[^0-9]+/.exec(n)},lf=function(){return cf(1.1.toLocaleString())[0]},t={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},er=[],w=function(n,t,i){return new Promise(function(r,u){var f=er.filter(function(t){return t.key===n}).map(function(n){return n.cb}),e;0!==f.length?(e=f.shift(),f.reduce(function(n,t){return n.then(function(n){return t(n,i)})},e(t,i)).then(function(n){return r(n)}).catch(function(n){return u(n)})):r(t)})},rt=function(n,t,i){return er.filter(function(t){return t.key===n}).map(function(n){return n.cb(t,i)})},hh=function(n,t){return er.push({key:n,cb:t})},hi=function(){return Object.assign({},lt)},lt={id:[null,t.STRING],name:["filepond",t.STRING],disabled:[!1,t.BOOLEAN],className:[null,t.STRING],required:[!1,t.BOOLEAN],captureMethod:[null,t.STRING],allowSyncAcceptAttribute:[!0,t.BOOLEAN],allowDrop:[!0,t.BOOLEAN],allowBrowse:[!0,t.BOOLEAN],allowPaste:[!0,t.BOOLEAN],allowMultiple:[!1,t.BOOLEAN],allowReplace:[!0,t.BOOLEAN],allowRevert:[!0,t.BOOLEAN],allowRemove:[!0,t.BOOLEAN],allowProcess:[!0,t.BOOLEAN],allowReorder:[!1,t.BOOLEAN],allowDirectoriesOnly:[!1,t.BOOLEAN],forceRevert:[!1,t.BOOLEAN],maxFiles:[null,t.INT],checkValidity:[!1,t.BOOLEAN],itemInsertLocationFreedom:[!0,t.BOOLEAN],itemInsertLocation:["before",t.STRING],itemInsertInterval:[75,t.INT],dropOnPage:[!1,t.BOOLEAN],dropOnElement:[!0,t.BOOLEAN],dropValidation:[!1,t.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],t.ARRAY],instantUpload:[!0,t.BOOLEAN],maxParallelUploads:[2,t.INT],chunkUploads:[!1,t.BOOLEAN],chunkForce:[!1,t.BOOLEAN],chunkSize:[5e6,t.INT],chunkRetryDelays:[[500,1e3,3e3],t.Array],server:[null,t.SERVER_API],fileSizeBase:[1e3,t.INT],labelDecimalSeparator:[lf(),t.STRING],labelThousandsSeparator:[(sf=lf(),ur=1e3.toLocaleString(),ur!==1e3.toString()?cf(ur)[0]:"."===sf?",":"."),t.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse<\/span>',t.STRING],labelInvalidField:["Field contains invalid files",t.STRING],labelFileWaitingForSize:["Waiting for size",t.STRING],labelFileSizeNotAvailable:["Size not available",t.STRING],labelFileCountSingular:["file in list",t.STRING],labelFileCountPlural:["files in list",t.STRING],labelFileLoading:["Loading",t.STRING],labelFileAdded:["Added",t.STRING],labelFileLoadError:["Error during load",t.STRING],labelFileRemoved:["Removed",t.STRING],labelFileRemoveError:["Error during remove",t.STRING],labelFileProcessing:["Uploading",t.STRING],labelFileProcessingComplete:["Upload complete",t.STRING],labelFileProcessingAborted:["Upload cancelled",t.STRING],labelFileProcessingError:["Error during upload",t.STRING],labelFileProcessingRevertError:["Error during revert",t.STRING],labelTapToCancel:["tap to cancel",t.STRING],labelTapToRetry:["tap to retry",t.STRING],labelTapToUndo:["tap to undo",t.STRING],labelButtonRemoveItem:["Remove",t.STRING],labelButtonAbortItemLoad:["Abort",t.STRING],labelButtonRetryItemLoad:["Retry",t.STRING],labelButtonAbortItemProcessing:["Cancel",t.STRING],labelButtonUndoItemProcessing:["Undo",t.STRING],labelButtonRetryItemProcessing:["Retry",t.STRING],labelButtonProcessItem:["Upload",t.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/><\/svg>',t.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/><\/svg>',t.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/><\/svg>',t.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/><\/svg>',t.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/><\/svg>',t.STRING],oninit:[null,t.FUNCTION],onwarning:[null,t.FUNCTION],onerror:[null,t.FUNCTION],onactivatefile:[null,t.FUNCTION],oninitfile:[null,t.FUNCTION],onaddfilestart:[null,t.FUNCTION],onaddfileprogress:[null,t.FUNCTION],onaddfile:[null,t.FUNCTION],onprocessfilestart:[null,t.FUNCTION],onprocessfileprogress:[null,t.FUNCTION],onprocessfileabort:[null,t.FUNCTION],onprocessfilerevert:[null,t.FUNCTION],onprocessfile:[null,t.FUNCTION],onprocessfiles:[null,t.FUNCTION],onremovefile:[null,t.FUNCTION],onpreparefile:[null,t.FUNCTION],onupdatefiles:[null,t.FUNCTION],onreorderfiles:[null,t.FUNCTION],beforeDropFile:[null,t.FUNCTION],beforeAddFile:[null,t.FUNCTION],beforeRemoveFile:[null,t.FUNCTION],beforePrepareFile:[null,t.FUNCTION],stylePanelLayout:[null,t.STRING],stylePanelAspectRatio:[null,t.STRING],styleItemPanelAspectRatio:[null,t.STRING],styleButtonRemoveItemPosition:["left",t.STRING],styleButtonProcessItemPosition:["right",t.STRING],styleLoadIndicatorPosition:["right",t.STRING],styleProgressIndicatorPosition:["right",t.STRING],styleButtonRemoveItemAlign:[!1,t.BOOLEAN],files:[[],t.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],t.ARRAY]},ut=function(n,t){return d(t)?n[0]||null:ht(t)?n[t]||null:("object"==typeof t&&(t=t.id),n.find(function(n){return n.id===t})||null)},af=function(n){if(d(n))return n;if(/:/.test(n)){var t=n.split(":");return t[1]/t[0]}return parseFloat(n)},b=function(n){return n.filter(function(n){return!n.archived})},at={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},ch=[i.LOAD_ERROR,i.PROCESSING_ERROR,i.PROCESSING_REVERT_ERROR],lh=[i.LOADING,i.PROCESSING,i.PROCESSING_QUEUED,i.INIT],ah=[i.PROCESSING_COMPLETE],vh=function(n){return ch.includes(n.status)},yh=function(n){return lh.includes(n.status)},ph=function(n){return ah.includes(n.status)},wh=function(n){return{GET_STATUS:function(){var t=b(n.items),i=at.EMPTY,r=at.ERROR,u=at.BUSY,f=at.IDLE,e=at.READY;return 0===t.length?i:t.some(vh)?r:t.some(yh)?u:t.some(ph)?e:f},GET_ITEM:function(t){return ut(n.items,t)},GET_ACTIVE_ITEM:function(t){return ut(b(n.items),t)},GET_ACTIVE_ITEMS:function(){return b(n.items)},GET_ITEMS:function(){return n.items},GET_ITEM_NAME:function(t){var i=ut(n.items,t);return i?i.filename:null},GET_ITEM_SIZE:function(t){var i=ut(n.items,t);return i?i.fileSize:null},GET_STYLES:function(){return Object.keys(n.options).filter(function(n){return/^style/.test(n)}).map(function(t){return{name:t,value:n.options[t]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(n.options.stylePanelLayout)?1:af(n.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return n.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return b(n.items).filter(function(n){return n.status===t})},GET_TOTAL_ITEMS:function(){return b(n.items).length},IS_ASYNC:function(){return s(n.options.server)&&(s(n.options.server.process)||ct(n.options.server.process))}}},vf=function(n,t,i){return Math.max(Math.min(i,n),t)},or=function(n){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(n)},kt=function(n){return n.split("/").pop().split("?").shift()},ci=function(n){return n.split(".").pop()},dt=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+n).slice(-t.length)},yf=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return n.getFullYear()+"-"+dt(n.getMonth()+1,"00")+"-"+dt(n.getDate(),"00")+"_"+dt(n.getHours(),"00")+"-"+dt(n.getMinutes(),"00")+"-"+dt(n.getSeconds(),"00")},vt=function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="string"==typeof u?n.slice(0,n.size,u):n.slice(0,n.size,n.type);return i.lastModifiedDate=new Date,n._relativePath&&(i._relativePath=n._relativePath),a(t)||(t=yf()),t&&null===r&&ci(t)?i.name=t:(r=r||function(n){if("string"!=typeof n)return"";var t=n.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""}(i.type),i.name=t+(r?"."+r:"")),i},pf=function(n,t){var r=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,i;return r?(i=new r,i.append(n),i.getBlob(t)):new Blob([n],{type:t})},wf=function(n){return(/^data:(.+);/.exec(n)||[])[1]||null},bh=function(n){var t=wf(n);return function(n,t){for(var r=new ArrayBuffer(n.length),u=new Uint8Array(r),i=0;i<n.length;i++)u[i]=n.charCodeAt(i);return pf(r,t)}(function(n){return atob(function(n){return n.split(",")[1].replace(/\s/g,"")}(n))}(n),t)},kh=function(n){if(!/^content-disposition:/i.test(n))return null;var t=n.split(/filename=|filename\*=.+''/).splice(1).map(function(n){return n.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(n){return n.length});return t.length?decodeURI(t[t.length-1]):null},dh=function(n){if(/content-length:/i.test(n)){var t=n.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},gh=function(n){return/x-content-transfer-id:/i.test(n)&&(n.split(":")[1]||"").trim()||null},sr=function(n){var t={source:null,name:null,size:null},l=n.split("\n"),u=!0,s=!1,h=void 0,c,i,r,f,e,o;try{for(i=l[Symbol.iterator]();!(u=(c=i.next()).done);u=!0)r=c.value,f=kh(r),f?t.name=f:(e=dh(r),e?t.size=e:(o=gh(r),o&&(t.source=o)))}catch(n){s=!0;h=n}finally{try{u||null==i.return||i.return()}finally{if(s)throw h;}}return t},nc=function(n){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},r=function(r){n?(t.timestamp=Date.now(),t.request=n(r,function(n){t.duration=Date.now()-t.timestamp;t.complete=!0;n instanceof Blob&&(n=vt(n,n.name||kt(r)));i.fire("load",n instanceof Blob?n:n?n.body:null)},function(n){i.fire("error","string"==typeof n?{type:"error",code:0,body:n}:n)},function(n,r,u){u&&(t.size=u);t.duration=Date.now()-t.timestamp;n?(t.progress=r/u,i.fire("progress",t.progress)):t.progress=null},function(){i.fire("abort")},function(n){var r=sr("string"==typeof n?n:n.headers);i.fire("meta",{size:t.size||r.size,filename:r.name,source:r.source})})):i.fire("error",{type:"error",body:"Can't load URL",code:400})},i=Object.assign({},si(),{setSource:function(n){return t.source=n},getProgress:function(){return t.progress},abort:function(){t.request&&t.request.abort&&t.request.abort()},load:function(){var u,f,n=t.source;i.fire("init",n);n instanceof File?i.fire("load",n):n instanceof Blob?i.fire("load",vt(n,n.name)):or(n)?i.fire("load",vt(bh(n),u,null,f)):r(n)}});return i},bf=function(n){return/GET|HEAD/.test(n)},ft=function(n,t,i){var u={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){f=!0;r.abort()}},f=!1,e=!1,r;return i=Object.assign({method:"POST",headers:{},withCredentials:!1},i),t=encodeURI(t),bf(i.method)&&n&&(t=""+t+encodeURIComponent("string"==typeof n?n:JSON.stringify(n))),r=new XMLHttpRequest,(bf(i.method)?r:r.upload).onprogress=function(n){f||u.onprogress(n.lengthComputable,n.loaded,n.total)},r.onreadystatechange=function(){r.readyState<2||4===r.readyState&&0===r.status||e||(e=!0,u.onheaders(r))},r.onload=function(){r.status>=200&&r.status<300?u.onload(r):u.onerror(r)},r.onerror=function(){return u.onerror(r)},r.onabort=function(){f=!0;u.onabort()},r.ontimeout=function(){return u.ontimeout(r)},r.open(i.method,t,!0),ht(i.timeout)&&(r.timeout=i.timeout),Object.keys(i.headers).forEach(function(n){var t=unescape(encodeURIComponent(i.headers[n]));r.setRequestHeader(n,t)}),i.responseType&&(r.responseType=i.responseType),i.withCredentials&&(r.withCredentials=!0),r.send(n),u},o=function(n,t,i,r){return{type:n,code:t,body:i,headers:r}},et=function(n){return function(t){n(o("error",0,"Timeout",t.getAllResponseHeaders()))}},kf=function(n){return/\?/.test(n)},gt=function(){for(var t="",i=arguments.length,r=new Array(i),n=0;n<i;n++)r[n]=arguments[n];return r.forEach(function(n){t+=kf(t)&&kf(n)?n.replace(/\?/,"&"):n}),t},df=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,t,i;return"function"==typeof n?n:!n||!a(n.url)?null:(t=n.onload||function(n){return n},i=n.onerror||function(){return null},function(u,f,e,s,h,c){var l=ft(u,gt(r,n.url),Object.assign({},n,{responseType:"blob"}));return l.onload=function(i){var r=i.getAllResponseHeaders(),e=sr(r).name||kt(u);f(o("load",i.status,"HEAD"===n.method?null:vt(t(i.response),e),r))},l.onerror=function(n){e(o("error",n.status,i(n.response)||n.statusText,n.getAllResponseHeaders()))},l.onheaders=function(n){c(o("headers",n.status,null,n.getAllResponseHeaders()))},l.ontimeout=et(e),l.onprogress=s,l.onabort=h,l})},hr=0,cr=1,gf=2,lr=3,tc=4,ic=function(n,t,i,r,u,f,e,h,c,l,a){for(var b,d,y=[],ct=a.chunkTransferId,p=a.chunkServer,k=a.chunkSize,lt=a.chunkRetryDelays,v={serverId:ct,aborted:!1},at=t.ondata||function(n){return n},it=t.onload||function(n,t){return"HEAD"===t?n.getResponseHeader("Upload-Offset"):n.response},rt=t.onerror||function(){return null},vt=Math.floor(r.size/k),w=0;w<=vt;w++)b=w*k,d=r.slice(b,b+k,"application/offset+octet-stream"),y[w]={index:w,size:d.size,offset:b,data:d,file:r,progress:0,retries:of(lt),status:hr,error:null,request:null,timeout:null};var ut,ot,g,nt,yt=function(n){return n.status===hr||n.status===lr},st=function(t){if(!v.aborted)if(t=t||y.find(yt)){t.status=gf;t.progress=null;var s=p.ondata||function(n){return n},u=p.onerror||function(){return null},h=gt(n,p.url,v.serverId),l="function"==typeof p.headers?p.headers(t):Object.assign({},p.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),i=t.request=ft(s(t.data),h,Object.assign({},p,{headers:l}));i.onload=function(){t.status=cr;t.request=null;tt()};i.onprogress=function(n,i){t.progress=n?i:null;pt()};i.onerror=function(n){t.status=lr;t.request=null;t.error=u(n.response)||n.statusText;ht(t)||e(o("error",n.status,u(n.response)||n.statusText,n.getAllResponseHeaders()))};i.ontimeout=function(n){t.status=lr;t.request=null;ht(t)||et(e)(n)};i.onabort=function(){t.status=hr;t.request=null;c()}}else y.every(function(n){return n.status===cr})&&f(v.serverId)},ht=function(n){return 0!==n.retries.length&&(n.status=tc,clearTimeout(n.timeout),n.timeout=setTimeout(function(){st(n)},n.retries.shift()),!0)},pt=function(){var n=y.reduce(function(n,t){return null===n||null===t.progress?null:n+t.progress},0),t;if(null===n)return h(!1,0,0);t=y.reduce(function(n,t){return n+t.size},0);h(!0,n,t)},tt=function(){y.filter(function(n){return n.status===gf}).length>=1||st()};return v.serverId?(ut=function(n){v.aborted||(y.filter(function(t){return t.offset<n}).forEach(function(n){n.status=cr;n.progress=n.size}),tt())},ot=gt(n,p.url,v.serverId),g={headers:"function"==typeof t.headers?t.headers(v.serverId):Object.assign({},t.headers),method:"HEAD"},(nt=ft(null,ot,g)).onload=function(n){return ut(it(n,g.method))},nt.onerror=function(n){return e(o("error",n.status,rt(n.response)||n.statusText,n.getAllResponseHeaders()))},nt.ontimeout=et(e)):function(f){var c=new FormData;s(u)&&c.append(i,JSON.stringify(u));var a="function"==typeof t.headers?t.headers(r,u):Object.assign({},t.headers,{"Upload-Length":r.size}),l=Object.assign({},t,{headers:a}),h=ft(at(c),gt(n,t.url),l);h.onload=function(n){return f(it(n,l.method))};h.onerror=function(n){return e(o("error",n.status,rt(n.response)||n.statusText,n.getAllResponseHeaders()))};h.ontimeout=et(e)}(function(n){v.aborted||(l(n),v.serverId=n,tt())}),{abort:function(){v.aborted=!0;y.forEach(function(n){clearTimeout(n.timeout);n.request&&n.request.abort()})}}},rc=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0;return"function"==typeof n?function(){for(var u=arguments.length,f=new Array(u),r=0;r<u;r++)f[r]=arguments[r];return n.apply(void 0,[t].concat(f,[i]))}:n&&a(n.url)?function(n,t,i,r){return function(u,f,e,h,c,l,a){var v;if(u){var p=r.chunkUploads,w=p&&u.size>r.chunkSize,b=p&&(w||r.chunkForce);if(u instanceof Blob&&b)return ic(n,t,i,u,f,e,h,c,l,a,r);var k=t.ondata||function(n){return n},d=t.onload||function(n){return n},g=t.onerror||function(){return null},y=new FormData;return s(f)&&y.append(i,JSON.stringify(f)),(u instanceof Blob?[{name:null,file:u}]:u).forEach(function(n){y.append(i,n.file,null===n.name?n.file.name:""+n.name+n.file.name)}),v=ft(k(y),gt(n,t.url),t),v.onload=function(n){e(o("load",n.status,d(n.response),n.getAllResponseHeaders()))},v.onerror=function(n){h(o("error",n.status,g(n.response)||n.statusText,n.getAllResponseHeaders()))},v.ontimeout=et(h),v.onprogress=c,v.onabort=l,v}}}(r,n,t,i):null},ni=function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1?arguments[1]:void 0,t,i;return"function"==typeof n?n:!n||!a(n.url)?function(n,t){return t()}:(t=n.onload||function(n){return n},i=n.onerror||function(){return null},function(u,f,e){var s=ft(u,r+n.url,n);return s.onload=function(n){f(o("load",n.status,t(n.response),n.getAllResponseHeaders()))},s.onerror=function(n){e(o("error",n.status,i(n.response)||n.statusText,n.getAllResponseHeaders()))},s.ontimeout=et(e),s})},ne=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n+Math.random()*(t-n)},uc=function(n){var t={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=function(){t.request&&(t.perceivedPerformanceUpdater.clear(),t.request.abort&&t.request.abort(),t.complete=!0)},i=Object.assign({},si(),{process:function(r,u){var f=function(){0!==t.duration&&null!==t.progress&&i.fire("progress",i.getProgress())},e=function(){t.complete=!0;i.fire("load-perceived",t.response.body)};i.fire("start");t.timestamp=Date.now();t.perceivedPerformanceUpdater=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,r=(arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:25),u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=null,f=Date.now();return function e(){var s=Date.now()-f,o=ne(r,u),h;s+o>t&&(o=s+o-t);h=s/t;h>=1||document.hidden?n(1):(n(h),i=setTimeout(e,o))}(),{clear:function(){clearTimeout(i)}}}(function(n){t.perceivedProgress=n;t.perceivedDuration=Date.now()-t.timestamp;f();t.response&&1===t.perceivedProgress&&!t.complete&&e()},ne(750,1500));t.request=n(r,u,function(n){t.response=s(n)?n:{type:"load",code:200,body:""+n,headers:{}};t.duration=Date.now()-t.timestamp;t.progress=1;i.fire("load",t.response.body);1===t.perceivedProgress&&e()},function(n){t.perceivedPerformanceUpdater.clear();i.fire("error",s(n)?n:{type:"error",code:0,body:""+n})},function(n,i,r){t.duration=Date.now()-t.timestamp;t.progress=n?i/r:null;f()},function(){t.perceivedPerformanceUpdater.clear();i.fire("abort",t.response?t.response.body:null)},function(n){i.fire("transfer",n)})},abort:r,getProgress:function(){return t.progress?Math.min(t.progress,t.perceivedProgress):null},getDuration:function(){return Math.min(t.duration,t.perceivedDuration)},reset:function(){r();t.complete=!1;t.perceivedProgress=0;t.progress=0;t.timestamp=null;t.perceivedDuration=0;t.duration=0;t.request=null;t.response=null}});return i},te=function(n){return n.substr(0,n.lastIndexOf("."))||n},yt=function(n){return!!(n instanceof File||n instanceof Blob&&n.name)},fc=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,h=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,y=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,p=rr(),n={archived:!1,frozen:!1,released:!1,source:null,file:y,serverFileReference:h,transferId:null,processingAborted:!1,status:h?i.PROCESSING_COMPLETE:i.INIT,activeLoader:null,activeProcessor:null},o=null,f={},r=function(t){return n.status=t},t=function(t){if(!n.released&&!n.frozen){for(var r=arguments.length,f=new Array(r>1?r-1:0),i=1;i<r;i++)f[i-1]=arguments[i];u.fire.apply(u,[t].concat(f))}},c=function(n,i,r){var e=n.split("."),o=e[0],s=e.pop(),u=f;e.forEach(function(n){return u=u[n]});JSON.stringify(u[s])!==JSON.stringify(i)&&(u[s]=i,r||t("metadata-update",{key:o,value:f[o]}))},u=Object.assign({id:{get:function(){return p}},origin:{get:function(){return e}},serverId:{get:function(){return n.serverFileReference}},transferId:{get:function(){return n.transferId}},status:{get:function(){return n.status}},filename:{get:function(){return n.file.name}},filenameWithoutExtension:{get:function(){return te(n.file.name)}},fileExtension:{get:function(){return ci(n.file.name)}},fileType:{get:function(){return n.file.type}},fileSize:{get:function(){return n.file.size}},file:{get:function(){return n.file}},relativePath:{get:function(){return n.file._relativePath}},source:{get:function(){return n.source}},getMetadata:function(n){return function n(t){var u,r,i;if(!s(t))return t;u=ri(t)?[]:{};for(r in t)t.hasOwnProperty(r)&&(i=t[r],u[r]=i&&s(i)?n(i):i);return u}(n?f[n]:f)},setMetadata:function(n,t,i){if(s(n)){var r=n;return Object.keys(r).forEach(function(n){c(n,r[n],t)}),n}return c(n,t,i),t},extend:function(n,t){return v[n]=t},abortLoad:function(){n.activeLoader?n.activeLoader.abort():(r(i.INIT),t("load-abort"))},retryLoad:function(){n.activeLoader&&n.activeLoader.load()},requestProcessing:function(){n.processingAborted=!1;r(i.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(u){if(!n.activeProcessor)return n.processingAborted=!0,r(i.IDLE),t("process-abort"),void u();o=function(){u()};n.activeProcessor.abort()})},load:function(f,o,s){n.source=f;u.fireSync("init");n.file?u.fireSync("load-skip"):(n.file=function(n){var t=[n.name,n.size,n.type];return n instanceof Blob||or(n)?t[0]=n.name||yf():or(n)?(t[1]=n.length,t[2]=wf(n)):a(n)&&(t[0]=kt(n),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}}(f),o.on("init",function(){t("load-init")}),o.on("meta",function(r){n.file.size=r.size;n.file.filename=r.filename;r.source&&(e=l.LIMBO,n.serverFileReference=r.source,n.status=i.PROCESSING_COMPLETE);t("load-meta")}),o.on("progress",function(n){r(i.LOADING);t("load-progress",n)}),o.on("error",function(n){r(i.LOAD_ERROR);t("load-request-error",n)}),o.on("abort",function(){r(i.INIT);t("load-abort")}),o.on("load",function(u){n.activeLoader=null;var f=function(u){n.file=yt(u)?u:n.file;e===l.LIMBO&&n.serverFileReference?r(i.PROCESSING_COMPLETE):r(i.IDLE);t("load")};n.serverFileReference?f(u):s(u,f,function(f){n.file=u;t("load-meta");r(i.LOAD_ERROR);t("load-file-error",f)})}),o.setSource(f),n.activeLoader=o,o.load())},process:function e(s,h){if(n.processingAborted)n.processingAborted=!1;else if(r(i.PROCESSING),o=null,n.file instanceof Blob){s.on("load",function(t){n.transferId=null;n.serverFileReference=t});s.on("transfer",function(t){n.transferId=t});s.on("load-perceived",function(u){n.activeProcessor=null;n.transferId=null;n.serverFileReference=u;r(i.PROCESSING_COMPLETE);t("process-complete",u)});s.on("start",function(){t("process-start")});s.on("error",function(u){n.activeProcessor=null;r(i.PROCESSING_ERROR);t("process-error",u)});s.on("abort",function(u){n.activeProcessor=null;n.transferId=null;n.serverFileReference=u;r(i.IDLE);t("process-abort");o&&o()});s.on("progress",function(n){t("process-progress",n)});var c=console.error;h(n.file,function(t){n.archived||s.process(t,Object.assign({},f))},c);n.activeProcessor=s}else u.on("load",function(){e(s,h)})},revert:function(u,f){return new Promise(function(e,o){null!==n.serverFileReference?(u(n.serverFileReference,function(){n.serverFileReference=null;e()},function(n){f?(r(i.PROCESSING_REVERT_ERROR),t("process-revert-error"),o(n)):e()}),r(i.IDLE),t("process-revert")):e()})}},si(),{freeze:function(){return n.frozen=!0},release:function(){return n.released=!0},released:{get:function(){return n.released}},archive:function(){return n.archived=!0},archived:{get:function(){return n.archived}}}),v=nt(u);return v},ie=function(n,t){var i=function(n,t){return d(t)?0:a(t)?n.findIndex(function(n){return n.id===t}):-1}(n,t);if(!(i<0))return n[i]||null},ec=function(n,t,i,r,u,f){var e=ft(null,n,{method:"GET",responseType:"blob"});return e.onload=function(i){var r=i.getAllResponseHeaders(),u=sr(r).name||kt(n);t(o("load",i.status,vt(i.response,u),r))},e.onerror=function(n){i(o("error",n.status,n.statusText,n.getAllResponseHeaders()))},e.onheaders=function(n){f(o("headers",n.status,null,n.getAllResponseHeaders()))},e.ontimeout=et(i),e.onprogress=r,e.onabort=u,e},re=function(n){return 0===n.indexOf("//")&&(n=location.protocol+n),n.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},li=function(n){return function(){return ct(n)?n.apply(void 0,arguments):n}},ar=function(n,t){clearTimeout(t.listUpdateTimeout);t.listUpdateTimeout=setTimeout(function(){n("DID_UPDATE_ITEMS",{items:b(t.items)})},0)},ue=function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),t=1;t<i;t++)r[t-1]=arguments[t];return new Promise(function(t){if(!n)return t(!0);var i=n.apply(void 0,r);return null==i?t(!0):"boolean"==typeof i?t(i):void("function"==typeof i.then&&i.then(t))})},vr=function(n,t){n.items.sort(function(n,i){return t(v(n),v(i))})},p=function(n,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.query,r=i.success,h=void 0===r?function(){}:r,u=i.failure,f=void 0===u?function(){}:u,c=eh(i,["query","success","failure"]),e=ut(n.items,s);e?t(e,h,f,c||{}):f({error:o("error",0,"Item not found"),file:null})}},oc=function(n,t,u){return{ABORT_ALL:function(){b(u.items).forEach(function(n){n.freeze();n.abortLoad();n.abortProcessing()})},DID_SET_FILES:function(t){var r=t.value,f=(void 0===r?[]:r).map(function(n){return{source:n.source?n.source:n,options:n.options}}),i=b(u.items);i.forEach(function(t){f.find(function(n){return n.source===t.source||n.source===t.file})||n("REMOVE_ITEM",{query:t,remove:!1})});i=b(u.items);f.forEach(function(t,r){i.find(function(n){return n.source===t.source||n.file===t.source})||n("ADD_ITEM",Object.assign({},t,{interactionMethod:ir,index:r}))})},DID_UPDATE_ITEM_METADATA:function(r){var f=r.id,e=r.action;clearTimeout(u.itemUpdateTimeout);u.itemUpdateTimeout=setTimeout(function(){var r=ie(u.items,f),s,o;if(t("IS_ASYNC"))return o=function(){setTimeout(function(){n("REQUEST_ITEM_PROCESSING",{query:f})},32)},r.status===i.PROCESSING_COMPLETE?(s=u.options.instantUpload,void r.revert(ni(u.options.server.url,u.options.server.revert),t("GET_FORCE_REVERT")).then(s?o:function(){}).catch(function(){})):r.status===i.PROCESSING?function(n){r.abortProcessing().then(n?o:function(){})}(u.options.instantUpload):void(u.options.instantUpload&&o());w("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t,action:e}).then(function(i){var u=t("GET_BEFORE_PREPARE_FILE");u&&(i=u(r,i));i&&n("REQUEST_PREPARE_OUTPUT",{query:f,item:r,success:function(t){n("DID_PREPARE_OUTPUT",{id:f,file:t})}},!0)})},0)},MOVE_ITEM:function(n){var f=n.query,t=n.index,r=ut(u.items,f),i;r&&(i=u.items.indexOf(r),i!==(t=vf(t,0,u.items.length-1))&&u.items.splice(t,0,u.items.splice(i,1)[0]))},SORT:function(i){var r=i.compare;vr(u,r);n("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(i){var l=i.items,r=i.index,a=i.interactionMethod,u=i.success,v=void 0===u?function(){}:u,f=i.failure,y=void 0===f?function(){}:f,e=r,o,s,h,c;(-1===r||void 0===r)&&(o=t("GET_ITEM_INSERT_LOCATION"),s=t("GET_TOTAL_ITEMS"),e="before"===o?0:s);h=t("GET_IGNORED_FILES");c=l.filter(function(n){return yt(n)?!h.includes(n.name.toLowerCase()):!d(n)}).map(function(t){return new Promise(function(i,r){n("ADD_ITEM",{interactionMethod:a,source:t.source||t,success:i,failure:r,index:e++,options:t.options||{}})})});Promise.all(c).then(v).catch(y)},ADD_ITEM:function(r){var s=r.source,ft=r.index,k=void 0===ft?-1:ft,et=r.interactionMethod,ot=r.success,it=void 0===ot?function(){}:ot,st=r.failure,c=void 0===st?function(){}:st,ht=r.options,h=void 0===ht?{}:ht,ut,y,g,p,f,nt,e;if(d(s))c({error:o("error",0,"No source"),file:null});else if(!yt(s)||!u.options.ignoredFiles.includes(s.name.toLowerCase())){if(!function(n){var i=b(n.items).length,t;return n.options.allowMultiple?(t=n.options.maxFiles,null===t||i<t):0===i}(u)){if(u.options.allowMultiple||!u.options.allowMultiple&&!u.options.allowReplace)return ut=o("warning",0,"Max files"),n("DID_THROW_MAX_FILES",{source:s,error:ut}),void c({error:ut,file:null});if(y=b(u.items)[0],(y.status===i.PROCESSING_COMPLETE||y.status===i.PROCESSING_REVERT_ERROR)&&(g=t("GET_FORCE_REVERT"),y.revert(ni(u.options.server.url,u.options.server.revert),g).then(function(){g&&n("ADD_ITEM",{source:s,index:k,interactionMethod:et,success:it,failure:c,options:h})}).catch(function(){}),g))return;n("REMOVE_ITEM",{query:y.id})}p="local"===h.type?l.LOCAL:"limbo"===h.type?l.LIMBO:l.INPUT;f=fc(p,p===l.INPUT?null:s,h.file);Object.keys(h.metadata||{}).forEach(function(n){f.setMetadata(n,h.metadata[n])});rt("DID_CREATE_ITEM",f,{query:t,dispatch:n});nt=t("GET_ITEM_INSERT_LOCATION");u.options.itemInsertLocationFreedom||(k="before"===nt?-1:u.items.length),function(n,t,i){d(t)||(void 0===i?n.push(t):function(n,t,i){n.splice(t,0,i)}(n,i=vf(i,0,n.length),t))}(u.items,f,k);ct(nt)&&s&&vr(u,nt);e=f.id;f.on("init",function(){n("DID_INIT_ITEM",{id:e})});f.on("load-init",function(){n("DID_START_ITEM_LOAD",{id:e})});f.on("load-meta",function(){n("DID_UPDATE_ITEM_META",{id:e})});f.on("load-progress",function(t){n("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:e,progress:t})});f.on("load-request-error",function(t){var i=li(u.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return n("DID_THROW_ITEM_INVALID",{id:e,error:t,status:{main:i,sub:t.code+" ("+t.body+")"}}),void c({error:t,file:v(f)});n("DID_THROW_ITEM_LOAD_ERROR",{id:e,error:t,status:{main:i,sub:u.options.labelTapToRetry}})});f.on("load-file-error",function(t){n("DID_THROW_ITEM_INVALID",{id:e,error:t.status,status:t.status});c({error:t.status,file:v(f)})});f.on("load-abort",function(){n("REMOVE_ITEM",{query:e})});f.on("load-skip",function(){n("COMPLETE_LOAD_ITEM",{query:e,item:f,data:{source:s,success:it}})});f.on("load",function(){var i=function(i){i?(f.on("metadata-update",function(t){n("DID_UPDATE_ITEM_METADATA",{id:e,change:t})}),w("SHOULD_PREPARE_OUTPUT",!1,{item:f,query:t}).then(function(i){var o=t("GET_BEFORE_PREPARE_FILE"),r;o&&(i=o(f,i));r=function(){n("COMPLETE_LOAD_ITEM",{query:e,item:f,data:{source:s,success:it}});ar(n,u)};i?n("REQUEST_PREPARE_OUTPUT",{query:e,item:f,success:function(t){n("DID_PREPARE_OUTPUT",{id:e,file:t});r()}},!0):r()})):n("REMOVE_ITEM",{query:e})};w("DID_LOAD_ITEM",f,{query:t,dispatch:n}).then(function(){ue(t("GET_BEFORE_ADD_FILE"),v(f)).then(i)}).catch(function(){i(!1)})});f.on("process-start",function(){n("DID_START_ITEM_PROCESSING",{id:e})});f.on("process-progress",function(t){n("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:e,progress:t})});f.on("process-error",function(t){n("DID_THROW_ITEM_PROCESSING_ERROR",{id:e,error:t,status:{main:li(u.options.labelFileProcessingError)(t),sub:u.options.labelTapToRetry}})});f.on("process-revert-error",function(t){n("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:e,error:t,status:{main:li(u.options.labelFileProcessingRevertError)(t),sub:u.options.labelTapToRetry}})});f.on("process-complete",function(t){n("DID_COMPLETE_ITEM_PROCESSING",{id:e,error:null,serverFileReference:t});n("DID_DEFINE_VALUE",{id:e,value:t})});f.on("process-abort",function(){n("DID_ABORT_ITEM_PROCESSING",{id:e})});f.on("process-revert",function(){n("DID_REVERT_ITEM_PROCESSING",{id:e});n("DID_DEFINE_VALUE",{id:e,value:null})});n("DID_ADD_ITEM",{id:e,index:k,interactionMethod:et});ar(n,u);var tt=u.options.server||{},lt=tt.url,vt=tt.load,pt=tt.restore,at=tt.fetch;f.load(s,nc(p===l.INPUT?a(s)&&function(n){return(n.indexOf(":")>-1||n.indexOf("//")>-1)&&re(location.href)!==re(n)}(s)&&at?df(lt,at):ec:df(lt,p===l.LIMBO?pt:vt)),function(n,i,r){w("LOAD_FILE",n,{query:t}).then(i).catch(r)})}},REQUEST_PREPARE_OUTPUT:function(n){var i=n.item,e=n.success,r=n.failure,u=void 0===r?function(){}:r,f={error:o("error",0,"Item not found"),file:null};if(i.archived)return u(f);w("PREPARE_OUTPUT",i.file,{query:t,item:i}).then(function(n){w("COMPLETE_PREPARE_OUTPUT",n,{query:t,item:i}).then(function(n){if(i.archived)return u(f);e(n)})})},COMPLETE_LOAD_ITEM:function(i){var r=i.item,e=i.data,s=e.success,f=e.source,o=t("GET_ITEM_INSERT_LOCATION");if(ct(o)&&f&&vr(u,o),n("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.origin===l.INPUT?null:f}),s(v(r)),r.origin!==l.LOCAL)return r.origin===l.LIMBO?(n("DID_COMPLETE_ITEM_PROCESSING",{id:r.id,error:null,serverFileReference:f}),void n("DID_DEFINE_VALUE",{id:r.id,value:f})):void(t("IS_ASYNC")&&u.options.instantUpload&&n("REQUEST_ITEM_PROCESSING",{query:r.id}));n("DID_LOAD_LOCAL_ITEM",{id:r.id})},RETRY_ITEM_LOAD:p(u,function(n){n.retryLoad()}),REQUEST_ITEM_PREPARE:p(u,function(t,i,r){n("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){n("DID_PREPARE_OUTPUT",{id:t.id,file:r});i({file:t,output:r})},failure:r},!0)}),REQUEST_ITEM_PROCESSING:p(u,function(r,f,e){if(r.status===i.IDLE||r.status===i.PROCESSING_ERROR)r.status!==i.PROCESSING_QUEUED&&(r.requestProcessing(),n("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),n("PROCESS_ITEM",{query:r,success:f,failure:e},!0));else{var o=function(){return n("REQUEST_ITEM_PROCESSING",{query:r,success:f,failure:e})},s=function(){return document.hidden?o():setTimeout(o,32)};r.status===i.PROCESSING_COMPLETE||r.status===i.PROCESSING_REVERT_ERROR?r.revert(ni(u.options.server.url,u.options.server.revert),t("GET_FORCE_REVERT")).then(s).catch(function(){}):r.status===i.PROCESSING&&r.abortProcessing().then(s)}}),PROCESS_ITEM:p(u,function(r,f,e){var h=t("GET_MAX_PARALLEL_UPLOADS"),s,o;t("GET_ITEMS_BY_STATUS",i.PROCESSING).length!==h?r.status!==i.PROCESSING&&(s=function r(){var t=u.processingQueue.shift();if(t){var i=t.id,e=t.success,o=t.failure,f=ut(u.items,i);f&&!f.archived?n("PROCESS_ITEM",{query:i,success:e,failure:o},!0):r()}},r.onOnce("process-complete",function(){f(v(r));s();t("GET_ITEMS_BY_STATUS",i.PROCESSING_COMPLETE).length===u.items.length&&n("DID_COMPLETE_ITEM_PROCESSING_ALL")}),r.onOnce("process-error",function(n){e({error:n,file:v(r)});s()}),o=u.options,r.process(uc(rc(o.server.url,o.server.process,o.name,{chunkTransferId:r.transferId,chunkServer:o.server.patch,chunkUploads:o.chunkUploads,chunkForce:o.chunkForce,chunkSize:o.chunkSize,chunkRetryDelays:o.chunkRetryDelays})),function(i,u,f){w("PREPARE_OUTPUT",i,{query:t,item:r}).then(function(t){n("DID_PREPARE_OUTPUT",{id:r.id,file:t});u(t)}).catch(f)})):u.processingQueue.push({id:r.id,success:f,failure:e})}),RETRY_ITEM_PROCESSING:p(u,function(t){n("REQUEST_ITEM_PROCESSING",{query:t})}),REQUEST_REMOVE_ITEM:p(u,function(i){ue(t("GET_BEFORE_REMOVE_FILE"),v(i)).then(function(t){t&&n("REMOVE_ITEM",{query:i})})}),RELEASE_ITEM:p(u,function(n){n.release()}),REMOVE_ITEM:p(u,function(i,r,f,e){var h=function(){var t=i.id;ie(u.items,t).archive();n("DID_REMOVE_ITEM",{error:null,id:t,item:i});ar(n,u);r(v(i))},s=u.options.server;i.origin===l.LOCAL&&s&&ct(s.remove)&&!1!==e.remove?(n("DID_START_ITEM_REMOVE",{id:i.id}),s.remove(i.source,function(){return h()},function(t){n("DID_THROW_ITEM_REMOVE_ERROR",{id:i.id,error:o("error",0,t,null),status:{main:li(u.options.labelFileRemoveError)(t),sub:u.options.labelTapToRetry}})})):(e.revert&&i.origin!==l.LOCAL&&null!==i.serverId&&i.revert(ni(u.options.server.url,u.options.server.revert),t("GET_FORCE_REVERT")),h())}),ABORT_ITEM_LOAD:p(u,function(n){n.abortLoad()}),ABORT_ITEM_PROCESSING:p(u,function(t){t.serverId?n("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then(function(){u.options.instantUpload&&n("REMOVE_ITEM",{query:t.id})})}),REQUEST_REVERT_ITEM_PROCESSING:p(u,function(i){var f,e,r;if(u.options.instantUpload)return(f=function(t){t&&n("REVERT_ITEM_PROCESSING",{query:i})},e=t("GET_BEFORE_REMOVE_FILE"),!e)?f(!0):(r=e(v(i)),null==r?f(!0):"boolean"==typeof r?f(r):void("function"==typeof r.then&&r.then(f)));n("REVERT_ITEM_PROCESSING",{query:i})}),REVERT_ITEM_PROCESSING:p(u,function(i){i.revert(ni(u.options.server.url,u.options.server.revert),t("GET_FORCE_REVERT")).then(function(){(u.options.instantUpload||function(n){return!yt(n.file)}(i))&&n("REMOVE_ITEM",{query:i.id})}).catch(function(){})}),SET_OPTIONS:function(t){var i=t.options;r(i,function(t,i){n("SET_"+ei(t,"_").toUpperCase(),{value:i})})}}},yr=function(n){return n},g=function(n){return document.createElement(n)},u=function(n,t){var i=n.childNodes[0];i?t!==i.nodeValue&&(i.nodeValue=t):(i=document.createTextNode(t),n.appendChild(i))},fe=function(n,t,i,r){var u=(r%360-90)*Math.PI/180;return{x:n+i*Math.cos(u),y:t+i*Math.sin(u)}},sc=function(n,t,i,r,u){var f=1;return u>r&&u-r<=.5&&(f=0),r>u&&r-u>=.5&&(f=0),function(n,t,i,r,u,f){var e=fe(n,t,i,u),o=fe(n,t,i,r);return["M",e.x,e.y,"A",i,i,0,f,0,o.x,o.y].join(" ")}(n,t,i,360*Math.min(.9999,r),360*Math.min(.9999,u),f)},ee=e({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(n){var t=n.root,r=n.props,i;r.spin=!1;r.progress=0;r.opacity=0;i=ii("svg");t.ref.path=ii("path",{"stroke-width":2,"stroke-linecap":"round"});i.appendChild(t.ref.path);t.ref.svg=i;t.appendChild(i)},write:function(n){var i=n.root,t=n.props,o;if(0!==t.opacity){t.align&&(i.element.dataset.align=t.align);var s=parseInt(f(i.ref.path,"stroke-width"),10),r=.5*i.rect.element.width,u=0,e=0;t.spin?(u=0,e=.5):(u=0,e=t.progress);o=sc(r,r,r-s,u,e);f(i.ref.path,"d",o);f(i.ref.path,"stroke-opacity",t.spin||t.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),oe=e({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:function(n){var i=n.root,t=n.props;i.element.innerHTML=(t.icon||"")+"<span>"+t.label+"<\/span>";t.isDisabled=!1},write:function(n){var i=n.root,t=n.props,r=t.isDisabled,u=i.query("GET_DISABLED")||0===t.opacity;u&&!r?(t.isDisabled=!0,f(i.element,"disabled","disabled")):!u&&r&&(t.isDisabled=!1,i.element.removeAttribute("disabled"))}}),se=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=t,u=t*t,f=t*t*t;return(n=Math.round(Math.abs(n)))<r?n+" bytes":n<u?Math.floor(n/r)+" KB":n<f?he(n/u,1,i)+" MB":he(n/f,2,i)+" GB"},he=function(n,t,i){return n.toFixed(t).split(".").filter(function(n){return"0"!==n}).join(i)},ce=function(n){var t=n.root,i=n.props;u(t.ref.fileSize,se(t.query("GET_ITEM_SIZE",i.id),".",t.query("GET_FILE_SIZE_BASE")));u(t.ref.fileName,yr(t.query("GET_ITEM_NAME",i.id)))},le=function(n){var t=n.root,i=n.props;ht(t.query("GET_ITEM_SIZE",i.id))||u(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},hc=e({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:c({DID_LOAD_ITEM:ce,DID_UPDATE_ITEM_META:ce,DID_THROW_ITEM_LOAD_ERROR:le,DID_THROW_ITEM_INVALID:le}),didCreateView:function(n){rt("CREATE_VIEW",Object.assign({},n,{view:n}))},create:function(n){var t=n.root,e=n.props,i=g("span"),r;i.className="filepond--file-info-main";f(i,"aria-hidden","true");t.appendChild(i);t.ref.fileName=i;r=g("span");r.className="filepond--file-info-sub";t.appendChild(r);t.ref.fileSize=r;u(r,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE"));u(i,yr(t.query("GET_ITEM_NAME",e.id)))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),ae=function(n){return Math.round(100*n)},ve=function(n){var t=n.root,i=n.action,r=null===i.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+ae(i.progress)+"%";u(t.ref.main,r);u(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},ye=function(n){var t=n.root;u(t.ref.main,"");u(t.ref.sub,"")},ti=function(n){var t=n.root,i=n.action;u(t.ref.main,i.status.main);u(t.ref.sub,i.status.sub)},cc=e({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:c({DID_LOAD_ITEM:ye,DID_REVERT_ITEM_PROCESSING:ye,DID_REQUEST_ITEM_PROCESSING:function(n){var t=n.root;u(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING"));u(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(n){var t=n.root;u(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED"));u(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(n){var t=n.root;u(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE"));u(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(n){var t=n.root,i=n.action,r=null===i.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+ae(i.progress)+"%";u(t.ref.main,r);u(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:ve,DID_THROW_ITEM_LOAD_ERROR:ti,DID_THROW_ITEM_INVALID:ti,DID_THROW_ITEM_PROCESSING_ERROR:ti,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:ti,DID_THROW_ITEM_REMOVE_ERROR:ti}),didCreateView:function(n){rt("CREATE_VIEW",Object.assign({},n,{view:n}))},create:function(n){var t=n.root,r=g("span"),i;r.className="filepond--file-status-main";t.appendChild(r);t.ref.main=r;i=g("span");i.className="filepond--file-status-sub";t.appendChild(i);t.ref.sub=i;ve({root:t,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),pt={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},pr=[];r(pt,function(n){pr.push(n)});var pe,y=function(n){var t=n.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},lc=function(n){return n.ref.buttonAbortItemLoad.rect.element.width},ai=function(n){return Math.floor(n.ref.buttonRemoveItem.rect.element.height/4)},ac=function(n){return Math.floor(n.ref.buttonRemoveItem.rect.element.left/2)},we=function(n){return n.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},vc={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(n){return n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(n){return n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},be={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:y},status:{translateX:y}},wr={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},wt={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:y},status:{translateX:y,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:y},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:we},info:{translateX:y},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:we},buttonRemoveItem:{opacity:1},info:{translateX:y},status:{opacity:1,translateX:y}},DID_LOAD_ITEM:be,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:y},status:{translateX:y}},DID_START_ITEM_PROCESSING:wr,DID_REQUEST_ITEM_PROCESSING:wr,DID_UPDATE_ITEM_PROCESS_PROGRESS:wr,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:y}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:y},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:be},yc=e({create:function(n){var t=n.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),pc=c({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(n){var t=n.root,i=n.action;t.ref.buttonAbortItemProcessing.label=i.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(n){var t=n.root,i=n.action;t.ref.buttonAbortItemLoad.label=i.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(n){var t=n.root,i=n.action;t.ref.buttonAbortItemRemoval.label=i.value},DID_REQUEST_ITEM_PROCESSING:function(n){var t=n.root;t.ref.processProgressIndicator.spin=!0;t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(n){var t=n.root;t.ref.loadProgressIndicator.spin=!0;t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(n){var t=n.root;t.ref.processProgressIndicator.spin=!0;t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(n){var t=n.root,i=n.action;t.ref.loadProgressIndicator.spin=!1;t.ref.loadProgressIndicator.progress=i.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(n){var t=n.root,i=n.action;t.ref.processProgressIndicator.spin=!1;t.ref.processProgressIndicator.progress=i.progress}}),wc=e({create:function(n){var i,t=n.root,s=n.props.id,u=t.query("GET_ALLOW_REVERT"),v=t.query("GET_ALLOW_REMOVE"),e=t.query("GET_ALLOW_PROCESS"),p=t.query("GET_INSTANT_UPLOAD"),h=t.query("IS_ASYNC"),w=t.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN"),a,f,o,c,l;h?e&&!u?i=function(n){return!/RevertItemProcessing/.test(n)}:!e&&u?i=function(n){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(n)}:e||u||(i=function(n){return!/Process/.test(n)}):i=function(n){return!/Process/.test(n)};a=i?pr.filter(i):pr.concat();(p&&u&&(pt.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",pt.RevertItemProcessing.icon="GET_ICON_REMOVE"),h&&!u)&&(f=wt.DID_COMPLETE_ITEM_PROCESSING,f.info.translateX=ac,f.info.translateY=ai,f.status.translateY=ai,f.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1});(h&&!e&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(n){wt[n].status.translateY=ai}),wt.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=lc),w&&u)&&(pt.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION",o=wt.DID_COMPLETE_ITEM_PROCESSING,o.info.translateX=y,o.status.translateY=ai,o.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1});v||(pt.RemoveItem.disabled=!0);r(pt,function(n,i){var r=t.createChildView(oe,{label:t.query(i.label),icon:t.query(i.icon),opacity:0});a.includes(n)&&t.appendChildView(r);i.disabled&&(r.element.setAttribute("disabled","disabled"),r.element.setAttribute("hidden","hidden"));r.element.dataset.align=t.query("GET_STYLE_"+i.align);r.element.classList.add(i.className);r.on("click",function(n){n.stopPropagation();i.disabled||t.dispatch(i.action,{query:s})});t.ref["button"+n]=r});t.ref.processingCompleteIndicator=t.appendChildView(t.createChildView(yc));t.ref.processingCompleteIndicator.element.dataset.align=t.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION");t.ref.info=t.appendChildView(t.createChildView(hc,{id:s}));t.ref.status=t.appendChildView(t.createChildView(cc,{id:s}));c=t.appendChildView(t.createChildView(ee,{opacity:0,align:t.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));c.element.classList.add("filepond--load-indicator");t.ref.loadProgressIndicator=c;l=t.appendChildView(t.createChildView(ee,{opacity:0,align:t.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));l.element.classList.add("filepond--process-indicator");t.ref.processProgressIndicator=l;t.ref.activeStyles=[]},write:function(n){var t=n.root,f=n.actions,e=n.props,u,i;pc({root:t,actions:f,props:e});u=f.concat().filter(function(n){return/^DID_/.test(n.type)}).reverse().find(function(n){return wt[n.type]});u&&(t.ref.activeStyles=[],i=wt[u.type],r(vc,function(n,u){var f=t.ref[n];r(u,function(r,u){var e=i[n]&&void 0!==i[n][r]?i[n][r]:u;t.ref.activeStyles.push({control:f,key:r,value:e})})}));t.ref.activeStyles.forEach(function(n){var r=n.control,u=n.key,i=n.value;r[u]="function"==typeof i?i(t):i})},didCreateView:function(n){rt("CREATE_VIEW",Object.assign({},n,{view:n}))},name:"file"}),bc=e({create:function(n){var t=n.root,i=n.props;t.ref.fileName=g("legend");t.appendChild(t.ref.fileName);t.ref.file=t.appendChildView(t.createChildView(wc,{id:i.id}));t.ref.data=!1},ignoreRect:!0,write:c({DID_LOAD_ITEM:function(n){var t=n.root,i=n.props;u(t.ref.fileName,yr(t.query("GET_ITEM_NAME",i.id)))}}),didCreateView:function(n){rt("CREATE_VIEW",Object.assign({},n,{view:n}))},tag:"fieldset",name:"file-wrapper"}),ke={type:"spring",damping:.6,mass:7},kc=function(n,t,i){var r=e({name:"panel-"+t.name+" filepond--"+i,mixins:t.mixins,ignoreRectUpdate:!0}),u=n.createChildView(r,t.props);n.ref[t.name]=n.appendChildView(u)},de=e({name:"panel",read:function(n){var t=n.root;return n.props.heightCurrent=t.ref.bottom.translateY},write:function(n){var t=n.root,i=n.props;if(null!==t.ref.scalable&&i.scalable===t.ref.scalable||(t.ref.scalable=!du(i.scalable)||i.scalable,t.element.dataset.scalable=t.ref.scalable),i.height){var r=t.ref.top.rect.element,u=t.ref.bottom.rect.element,f=Math.max(r.height+u.height,i.height);t.ref.center.translateY=r.height;t.ref.center.scaleY=(f-r.height-u.height)/100;t.ref.bottom.translateY=f-u.height}},create:function(n){var t=n.root,i=n.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ke},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ke},styles:["translateY"]}}].forEach(function(n){kc(t,n,i.name)});t.element.classList.add("filepond--"+i.name);t.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","heightCurrent","scalable"]}}),ge={type:"spring",stiffness:.75,damping:.45,mass:10},no={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},dc=c({DID_UPDATE_PANEL_HEIGHT:function(n){var t=n.root,i=n.action;t.height=i.height}}),gc=c({DID_GRAB_ITEM:function(n){var t=n.root;n.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(n){n.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(n){var i=n.root,t=n.props;t.dragOffset=null;t.dragOrigin=null;i.element.dataset.dragState="drop"}},function(n){var t=n.root,f=n.actions,i=n.props,e=n.shouldOptimize,r,u;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");r=f.concat().filter(function(n){return/^DID_/.test(n.type)}).reverse().find(function(n){return no[n.type]});r&&r.type!==i.currentState&&(i.currentState=r.type,t.element.dataset.filepondItemState=no[i.currentState]||"");u=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");u?e||(t.height=t.rect.element.width*u):(dc({root:t,actions:f,props:i}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height));e&&(t.ref.panel.height=null);t.ref.panel.height=t.height}),nl=e({create:function(n){var t=n.root,i=n.props;t.ref.handleClick=function(){return t.dispatch("DID_ACTIVATE_ITEM",{id:i.id})};t.element.id="filepond--item-"+i.id;t.element.addEventListener("click",t.ref.handleClick);t.ref.container=t.appendChildView(t.createChildView(bc,{id:i.id}));t.ref.panel=t.appendChildView(t.createChildView(de,{name:"item-panel"}));t.ref.panel.height=null;i.markedForRemoval=!1;t.query("GET_ALLOW_REORDER")&&(t.element.dataset.dragState="idle",t.element.addEventListener("pointerdown",function(n){var h,c,f,r,e;if(n.isPrimary){var u=!1,o=n.pageX,s=n.pageY;i.dragOrigin={x:t.translateX,y:t.translateY};i.dragCenter={x:n.offsetX,y:n.offsetY};r=(h=t.query("GET_ACTIVE_ITEMS"),c=h.map(function(n){return n.id}),f=void 0,{setIndex:function(n){f=n},getIndex:function(){return f},getItemIndex:function(n){return c.indexOf(n.id)}});t.dispatch("DID_GRAB_ITEM",{id:i.id,dragState:r});e=function(n){n.isPrimary&&(n.stopPropagation(),n.preventDefault(),i.dragOffset={x:n.pageX-o,y:n.pageY-s},i.dragOffset.x*i.dragOffset.x+i.dragOffset.y*i.dragOffset.y>16&&!u&&(u=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:i.id,dragState:r}))};document.addEventListener("pointermove",e);document.addEventListener("pointerup",function n(f){f.isPrimary&&(document.removeEventListener("pointermove",e),document.removeEventListener("pointerup",n),i.dragOffset={x:f.pageX-o,y:f.pageY-s},t.dispatch("DID_DROP_ITEM",{id:i.id,dragState:r}),u&&setTimeout(function(){return t.element.addEventListener("click",t.ref.handleClick)},0))})}}))},write:gc,destroy:function(n){var t=n.root,i=n.props;t.element.removeEventListener("click",t.ref.handleClick);t.dispatch("RELEASE_ITEM",{query:i.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:"spring",scaleY:"spring",translateX:ge,translateY:ge,opacity:{type:"tween",duration:150}}}}),br=function(n,t,i){var e,c,l;if(i){var y=n.rect.element.width,f=t.length,o=null;if(0===f||i.top<t[0].rect.element.top)return-1;var r=t[0].rect.element,p=r.marginLeft+r.marginRight,s=r.width+p,h=Math.round(y/s);if(1===h){for(e=0;e<f;e++)if(c=t[e],l=c.rect.outer.top+.5*c.rect.element.height,i.top<l)return e;return f}for(var w=r.marginTop+r.marginBottom,a=r.height+w,u=0;u<f;u++){var b=u%h*s,v=Math.floor(u/h)*a,k=v-r.marginTop,d=b+s,g=v+a+r.marginBottom;if(i.top<g&&i.top>k){if(i.left<d)return u;o=u!==f-1?u:null}}return null!==o?o:f}},vi={height:0,width:0,get getHeight(){return this.height},set setHeight(n){0!==this.height&&0!==n||(this.height=n)},get getWidth(){return this.width},set setWidth(n){0!==this.width&&0!==n||(this.width=n)},setDimensions:function(n,t){0!==this.height&&0!==n||(this.height=n);0!==this.width&&0!==t||(this.width=t)}},to=function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;n.dragOffset?(n.translateX=null,n.translateY=null,n.translateX=n.dragOrigin.x+n.dragOffset.x,n.translateY=n.dragOrigin.y+n.dragOffset.y,n.scaleX=1.025,n.scaleY=1.025):(n.translateX=t,n.translateY=i,Date.now()>n.spawnDate&&(0===n.opacity&&tl(n,t,i,r,u),n.scaleX=1,n.scaleY=1,n.opacity=1))},tl=function(n,t,i,r,u){n.interactionMethod===ir?(n.translateX=null,n.translateX=t,n.translateY=null,n.translateY=i):n.interactionMethod===ef?(n.translateX=null,n.translateX=t-20*r,n.translateY=null,n.translateY=i-10*u,n.scaleX=.8,n.scaleY=.8):n.interactionMethod===tr?(n.translateY=null,n.translateY=i-30):n.interactionMethod===nr&&(n.translateX=null,n.translateX=t-30,n.translateY=null)},kr=function(n){return n.rect.element.height+.5*n.rect.element.marginBottom+.5*n.rect.element.marginTop},il=c({DID_ADD_ITEM:function(n){var t=n.root,r=n.action,c=r.id,o=r.index,s=r.interactionMethod,f,e;t.ref.addIndex=o;var i=Date.now(),u=i,h=1;s!==ir&&(h=0,f=t.query("GET_ITEM_INSERT_INTERVAL"),e=i-t.ref.lastItemSpanwDate,u=e<f?i+(f-e):i);t.ref.lastItemSpanwDate=u;t.appendChildView(t.createChildView(nl,{spawnDate:u,id:c,opacity:h,interactionMethod:s}),o)},DID_REMOVE_ITEM:function(n){var i=n.root,r=n.action.id,t=i.childViews.find(function(n){return n.id===r});t&&(t.scaleX=.9,t.scaleY=.9,t.opacity=0,t.markedForRemoval=!0)},DID_DRAG_ITEM:function(n){var i=n.root,v=n.action,y=v.id,o=v.dragState,k=i.query("GET_ITEM",{id:y}),t=i.childViews.find(function(n){return n.id===y}),s=i.childViews.length,p=o.getItemIndex(k),b,a,f,e;if(t){var h,c=t.dragOrigin.x+t.dragOffset.x+t.dragCenter.x,u=t.dragOrigin.y+t.dragOffset.y+t.dragCenter.y,w=kr(t),l=(h=t).rect.element.width+.5*h.rect.element.marginLeft+.5*h.rect.element.marginRight,r=Math.floor(i.rect.outer.width/l);if(r>s&&(r=s),b=Math.floor(s/r+1),vi.setHeight=w*b,vi.setWidth=l*r,a={y:Math.floor(u/w),x:Math.floor(c/l),getGridIndex:function(){return u>vi.getHeight||u<0||c>vi.getWidth||c<0?p:this.y*r+this.x},getColIndex:function(){for(var c=i.query("GET_ACTIVE_ITEMS"),l=i.childViews.filter(function(n){return n.rect.element.height}),r=c.map(function(n){return l.find(function(t){return t.id===n.id})}),a=r.findIndex(function(n){return n===t}),v=kr(t),e=r.length,f=e,o=0,s=0,h=0,n=0;n<e;n++)if(o=kr(r[n]),u<(s=(h=s)+o)){if(a>n){if(u<h+v){f=n;break}continue}f=n;break}return f}},f=r>1?a.getGridIndex():a.getColIndex(),i.dispatch("MOVE_ITEM",{query:t,index:f}),e=o.getIndex(),void 0===e||e!==f){if(o.setIndex(f),void 0===e)return;i.dispatch("DID_REORDER_ITEMS",{items:i.query("GET_ACTIVE_ITEMS"),origin:p,target:f})}}}}),rl=e({create:function(n){var t=n.root;f(t.element,"role","list");t.ref.lastItemSpanwDate=Date.now()},write:function(n){var t=n.root,l=n.props,k=n.actions,a=n.shouldOptimize,o,s,h,c;il({root:t,props:l,actions:k});var v=l.dragCoordinates,d=t.rect.element.width,g=t.childViews.filter(function(n){return n.rect.element.height}),u=t.query("GET_ACTIVE_ITEMS").map(function(n){return g.find(function(t){return t.id===n.id})}).filter(function(n){return n}),f=v?br(t,u,v):null,nt=t.ref.addIndex||null;t.ref.addIndex=null;var y=0,p=0,w=0;if(0!==u.length){var i=u[0].rect.element,r=i.marginTop+i.marginBottom,tt=i.marginLeft+i.marginRight,b=i.width+tt,it=i.height+r,e=Math.round(d/b);1===e?(o=0,s=0,u.forEach(function(n,t){var i,u;f&&(i=t-f,s=-2===i?.25*-r:-1===i?.75*-r:0===i?.75*r:1===i?.25*r:0);a&&(n.translateX=null,n.translateY=null);n.markedForRemoval||to(n,0,o+s);u=(n.rect.element.height+r)*(n.markedForRemoval?n.opacity:1);o+=u})):(h=0,c=0,u.forEach(function(n,t){t===f&&(y=1);t===nt&&(w+=1);n.markedForRemoval&&n.opacity<.5&&(p-=1);var u=t+w+y+p,o=u%e,s=Math.floor(u/e),i=o*b,r=s*it,l=Math.sign(i-h),v=Math.sign(r-c);h=i;c=r;n.markedForRemoval||(a&&(n.translateX=null,n.translateY=null),to(n,i,r,l,v))}))}},tag:"ul",name:"list",didWriteView:function(n){var t=n.root;t.childViews.filter(function(n){return n.markedForRemoval&&0===n.opacity&&n.resting}).forEach(function(n){n._destroy();t.removeChildView(n)})},filterFrameActionsForChild:function(n,t){return t.filter(function(t){return!t.data||!t.data.id||n.id===t.data.id})},mixins:{apis:["dragCoordinates"]}}),ul=c({DID_DRAG:function(n){var t=n.root,r=n.props,i=n.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(r.dragCoordinates={left:i.position.scopeLeft-t.ref.list.rect.element.left,top:i.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},DID_END_DRAG:function(n){n.props.dragCoordinates=null}}),fl=e({create:function(n){var t=n.root,i=n.props;t.ref.list=t.appendChildView(t.createChildView(rl));i.dragCoordinates=null;i.overflowing=!1},write:function(n){var i=n.root,t=n.props,u=n.actions,r;(ul({root:i,props:t,actions:u}),i.ref.list.dragCoordinates=t.dragCoordinates,t.overflowing&&!t.overflow&&(t.overflowing=!1,i.element.dataset.state="",i.height=null),t.overflow)&&(r=Math.round(t.overflow),r!==i.height&&(t.overflowing=!0,i.element.dataset.state="overflow",i.height=r))},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),k=function(n,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";i?f(n,t,r):n.removeAttribute(t)},io=function(n){var i=n.root,t=n.action;i.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&k(i.element,"accept",!!t.value,t.value?t.value.join(","):"")},ro=function(n){var t=n.root,i=n.action;k(t.element,"multiple",i.value)},uo=function(n){var t=n.root,i=n.action;k(t.element,"webkitdirectory",i.value)},dr=function(n){var t=n.root,i=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),u=i||!r;k(t.element,"disabled",u)},fo=function(n){var t=n.root;n.action.value?0===t.query("GET_TOTAL_ITEMS")&&k(t.element,"required",!0):k(t.element,"required",!1)},eo=function(n){var i=n.root,t=n.action;k(i.element,"capture",!!t.value,!0===t.value?"":t.value)},oo=function(n){var t=n.root,i=t.element;t.query("GET_TOTAL_ITEMS")>0?(k(i,"required",!1),k(i,"name",!1)):(k(i,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&i.setCustomValidity(""),t.query("GET_REQUIRED")&&k(i,"required",!0))},el=e({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(n){var t=n.root,i=n.props;t.element.id="filepond--browser-"+i.id;f(t.element,"name",t.query("GET_NAME"));f(t.element,"aria-controls","filepond--assistant-"+i.id);f(t.element,"aria-labelledby","filepond--drop-label-"+i.id);io({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}});ro({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}});uo({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}});dr({root:t});fo({root:t,action:{value:t.query("GET_REQUIRED")}});eo({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}});t.ref.handleChange=function(){if(t.element.value){var n=Array.from(t.element.files).map(function(n){return n._relativePath=n.webkitRelativePath,n});setTimeout(function(){i.onload(n),function(n){if(n&&""!==n.value){try{n.value=""}catch(n){}if(n.value){var t=g("form"),i=n.parentNode,r=n.nextSibling;t.appendChild(n);t.reset();r?i.insertBefore(n,r):i.appendChild(n)}}}(t.element)},250)}};t.element.addEventListener("change",t.ref.handleChange)},destroy:function(n){var t=n.root;t.element.removeEventListener("change",t.ref.handleChange)},write:c({DID_LOAD_ITEM:oo,DID_REMOVE_ITEM:oo,DID_THROW_ITEM_INVALID:function(n){var t=n.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:dr,DID_SET_ALLOW_BROWSE:dr,DID_SET_ALLOW_DIRECTORIES_ONLY:uo,DID_SET_ALLOW_MULTIPLE:ro,DID_SET_ACCEPTED_FILE_TYPES:io,DID_SET_CAPTURE_METHOD:eo,DID_SET_REQUIRED:fo})}),ol=13,sl=32,so=function(n,t){n.innerHTML=t;var i=n.querySelector(".filepond--label-action");return i&&f(i,"tabindex","0"),t},hl=e({name:"drop-label",ignoreRect:!0,create:function(n){var t=n.root,r=n.props,i=g("label");f(i,"for","filepond--browser-"+r.id);f(i,"id","filepond--drop-label-"+r.id);f(i,"aria-hidden","true");t.ref.handleKeyDown=function(n){(n.keyCode===ol||n.keyCode===sl)&&(n.preventDefault(),t.ref.label.click())};t.ref.handleClick=function(n){n.target===i||i.contains(n.target)||t.ref.label.click()};i.addEventListener("keydown",t.ref.handleKeyDown);t.element.addEventListener("click",t.ref.handleClick);so(i,r.caption);t.appendChild(i);t.ref.label=i},destroy:function(n){var t=n.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown);t.element.removeEventListener("click",t.ref.handleClick)},write:c({DID_SET_LABEL_IDLE:function(n){var t=n.root,i=n.action;so(t.ref.label,i.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),cl=e({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),ll=c({DID_DRAG:function(n){var t=n.root,i=n.action;t.ref.blob?(t.ref.blob.translateX=i.position.scopeLeft,t.ref.blob.translateY=i.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):function(n){var t=n.root,i=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(cl,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:i,translateY:r}))}({root:t})},DID_DROP:function(n){var t=n.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},DID_END_DRAG:function(n){var t=n.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),al=e({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(n){var t=n.root,u=n.props,r=n.actions,i;ll({root:t,props:u,actions:r});i=t.ref.blob;0===r.length&&i&&0===i.opacity&&(t.removeChildView(i),t.ref.blob=null)}}),gr=function(n,t){return n.ref.fields[t]},nu=function(n){n.query("GET_ACTIVE_ITEMS").forEach(function(t){n.ref.fields[t.id]&&n.element.appendChild(n.ref.fields[t.id])})},ho=function(n){var t=n.root;return nu(t)},vl=c({DID_SET_DISABLED:function(n){var t=n.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(n){var t=n.root,r=n.action,i=g("input");i.type="hidden";i.name=t.query("GET_NAME");i.disabled=t.query("GET_DISABLED");t.ref.fields[r.id]=i;nu(t)},DID_LOAD_ITEM:function(n){var r=n.root,t=n.action,i=gr(r,t.id);i&&null!==t.serverFileReference&&(i.value=t.serverFileReference)},DID_REMOVE_ITEM:function(n){var i=n.root,r=n.action,t=gr(i,r.id);t&&(t.parentNode&&t.parentNode.removeChild(t),delete i.ref.fields[r.id])},DID_DEFINE_VALUE:function(n){var r=n.root,t=n.action,i=gr(r,t.id);i&&(null===t.value?i.removeAttribute("value"):i.value=t.value,nu(r))},DID_REORDER_ITEMS:ho,DID_SORT_ITEMS:ho}),yl=e({tag:"fieldset",name:"data",create:function(n){return n.root.ref.fields={}},write:vl,ignoreRect:!0}),pl=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],wl=["css","csv","html","txt"],bl={zip:"zip|compressed",epub:"application/epub+zip"},co=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return n=n.toLowerCase(),pl.includes(n)?"image/"+("jpg"===n?"jpeg":"svg"===n?"svg+xml":n):wl.includes(n)?"text/"+n:bl[n]||""},tu=function(n){return new Promise(function(t){var i=ua(n);if(i.length&&!kl(n))return t(i);dl(n).then(t)})},kl=function(n){return!!n.files&&n.files.length>0},dl=function(n){return new Promise(function(t){var i=(n.items?Array.from(n.items):[]).filter(function(n){return gl(n)}).map(function(n){return na(n)});i.length?Promise.all(i).then(function(n){var i=[];n.forEach(function(n){i.push.apply(i,n)});t(i.filter(function(n){return n}).map(function(n){return n._relativePath||(n._relativePath=n.webkitRelativePath),n}))}).catch(console.error):t(n.files?Array.from(n.files):[])})},gl=function(n){if(lo(n)){var t=iu(n);if(t)return t.isFile||t.isDirectory}return"file"===n.kind},na=function(n){return new Promise(function(t,i){ra(n)?ta(iu(n)).then(t).catch(i):t([n.getAsFile()])})},ta=function(n){return new Promise(function(t,i){var f=[],r=0,u=0,e=function(){0===u&&0===r&&t(f)};!function n(t){r++;var o=t.createReader();!function t(){o.readEntries(function(i){if(0===i.length)return r--,void e();i.forEach(function(t){t.isDirectory?n(t):(u++,t.file(function(n){var i=ia(n);t.fullPath&&(i._relativePath=t.fullPath);f.push(i);u--;e()}))});t()},i)}()}(n)})},ia=function(n){if(n.type.length)return n;var i=n.lastModifiedDate,r=n.name,t=co(ci(n.name));return t.length?((n=n.slice(0,n.size,t)).name=r,n.lastModifiedDate=i,n):n},ra=function(n){return lo(n)&&(iu(n)||{}).isDirectory},lo=function(n){return"webkitGetAsEntry"in n},iu=function(n){return n.webkitGetAsEntry()},ua=function(n){var t=[];try{if((t=ea(n)).length)return t;t=fa(n)}catch(n){}return t},fa=function(n){var t=n.getData("url");return"string"==typeof t&&t.length?[t]:[]},ea=function(n){var t=n.getData("text/html"),i;return"string"==typeof t&&t.length&&(i=t.match(/src\s*=\s*"(.+?)"/),i)?[i[1]]:[]},yi=[],ot=function(n){return{pageLeft:n.pageX,pageTop:n.pageY,scopeLeft:n.offsetX||n.layerX,scopeTop:n.offsetY||n.layerY}},oa=function(n){var i=yi.find(function(t){return t.element===n}),t;return i?i:(t=sa(n),yi.push(t),t)},sa=function(n){var t=[],u={dragenter:ha,dragover:ca,dragleave:aa,drop:la},i={},f;return r(u,function(r,u){i[r]=u(n,t);n.addEventListener(r,i[r],!1)}),f={element:n,addListener:function(e){return t.push(e),function(){t.splice(t.indexOf(e),1);0===t.length&&(yi.splice(yi.indexOf(f),1),r(u,function(t){n.removeEventListener(t,i[t],!1)}))}}}},ru=function(n,t){var i,r=function(n,t){return"elementFromPoint"in n||(n=document),n.elementFromPoint(t.x,t.y)}("getRootNode"in(i=t)?i.getRootNode():document,{x:n.pageX-window.pageXOffset,y:n.pageY-window.pageYOffset});return r===t||t.contains(r)},ao=null,pi=function(n,t){try{n.dropEffect=t}catch(n){}},ha=function(n,t){return function(n){n.preventDefault();ao=n.target;t.forEach(function(t){var i=t.element,r=t.onenter;ru(n,i)&&(t.state="enter",r(ot(n)))})}},ca=function(n,t){return function(n){n.preventDefault();var i=n.dataTransfer;tu(i).then(function(r){var u=!1;t.some(function(t){var e=t.filterElement,o=t.element,s=t.onenter,h=t.onexit,c=t.ondrag,l=t.allowdrop,f;if(pi(i,"copy"),f=l(r),f)if(ru(n,o)){if(u=!0,null===t.state)return t.state="enter",void s(ot(n));if(t.state="over",e&&!f)return void pi(i,"none");c(ot(n))}else e&&!u&&pi(i,"none"),t.state&&(t.state=null,h(ot(n)));else pi(i,"none")})})}},la=function(n,t){return function(n){n.preventDefault();var i=n.dataTransfer;tu(i).then(function(i){t.forEach(function(t){var r=t.filterElement,u=t.element,f=t.ondrop,e=t.onexit,o=t.allowdrop;if(t.state=null,!r||ru(n,u))return o(i)?void f(ot(n),i):e(ot(n))})})}},aa=function(n,t){return function(n){ao===n.target&&t.forEach(function(t){var i=t.onexit;t.state=null;i(ot(n))})}},va=function(n,t,i){var f;n.classList.add("filepond--hopper");var h=i.catchesDropsOnPage,c=i.requiresDropOnElement,e=i.filterItems,o=void 0===e?function(n){return n}:e,r=function(n,t,i){var u=oa(t),r={element:n,filterElement:i,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return r.destroy=u.addListener(r),r}(n,h?document.documentElement:n,c),s="",u="";return r.allowdrop=function(n){return t(o(n))},r.ondrop=function(n,i){var r=o(i);t(r)?(u="drag-drop",f.onload(r,n)):f.ondragend(n)},r.ondrag=function(n){f.ondrag(n)},r.onenter=function(n){u="drag-over";f.ondragstart(n)},r.onexit=function(n){u="drag-exit";f.ondragend(n)},f={updateHopperState:function(){s!==u&&(n.dataset.hopperState=u,s=u)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){r.destroy()}}},uu=!1,bt=[],vo=function(n){var i=document.activeElement,r,t;if(i&&/textarea|input/i.test(i.nodeName)){for(r=!1,t=i;t!==document.body;){if(t.classList.contains("filepond--root")){r=!0;break}t=t.parentNode}if(!r)return}tu(n.clipboardData).then(function(n){n.length&&bt.forEach(function(t){return t(n)})})},ya=function(){var n=function(n){t.onload(n)},t={destroy:function(){var t;t=n;fr(bt,bt.indexOf(t));0===bt.length&&(document.removeEventListener("paste",vo),uu=!1)},onload:function(){}};return function(n){bt.includes(n)||(bt.push(n),uu||(uu=!0,document.addEventListener("paste",vo)))}(n),t},yo=null,po=null,fu=[],wi=function(n,t){n.element.textContent=t},wo=function(n,t,i){var r=n.query("GET_TOTAL_ITEMS");wi(n,i+" "+t+", "+r+" "+(1===r?n.query("GET_LABEL_FILE_COUNT_SINGULAR"):n.query("GET_LABEL_FILE_COUNT_PLURAL")));clearTimeout(po);po=setTimeout(function(){!function(n){n.element.textContent=""}(n)},1500)},bo=function(n){return n.element.parentNode.contains(document.activeElement)},ko=function(n){var t=n.root,i=n.action,r=t.query("GET_ITEM",i.id).filename,u=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");wi(t,r+" "+u)},bi=function(n){var i=n.root,t=n.action,r=i.query("GET_ITEM",t.id).filename;wi(i,t.status.main+" "+r+" "+t.status.sub)},pa=e({create:function(n){var t=n.root,i=n.props;t.element.id="filepond--assistant-"+i.id;f(t.element,"role","status");f(t.element,"aria-live","polite");f(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:c({DID_LOAD_ITEM:function(n){var t=n.root,r=n.action,i;bo(t)&&(t.element.textContent="",i=t.query("GET_ITEM",r.id),fu.push(i.filename),clearTimeout(yo),yo=setTimeout(function(){wo(t,fu.join(", "),t.query("GET_LABEL_FILE_ADDED"));fu.length=0},750))},DID_REMOVE_ITEM:function(n){var t=n.root,r=n.action,i;bo(t)&&(i=r.item,wo(t,i.filename,t.query("GET_LABEL_FILE_REMOVED")))},DID_COMPLETE_ITEM_PROCESSING:function(n){var t=n.root,i=n.action,r=t.query("GET_ITEM",i.id).filename,u=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");wi(t,r+" "+u)},DID_ABORT_ITEM_PROCESSING:ko,DID_REVERT_ITEM_PROCESSING:ko,DID_THROW_ITEM_REMOVE_ERROR:bi,DID_THROW_ITEM_LOAD_ERROR:bi,DID_THROW_ITEM_INVALID:bi,DID_THROW_ITEM_PROCESSING_ERROR:bi}),tag:"span",name:"assistant"}),go=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return n.replace(new RegExp(t+".","g"),function(n){return n.charAt(1).toUpperCase()})},ns=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,u=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=Date.now(),r=null;return function(){for(var e,o,s=arguments.length,h=new Array(s),f=0;f<s;f++)h[f]=arguments[f];clearTimeout(r);e=Date.now()-i;o=function(){i=Date.now();n.apply(void 0,h)};e<t?u||(r=setTimeout(o,t-e)):o()}},ki=function(n){return n.preventDefault()},wa=function(n){var t=n.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},ba=function(n){var u=0,r=0,e=n.ref.list,f=e.childViews[0],c=f.childViews.filter(function(n){return n.rect.element.height}),t=n.query("GET_ACTIVE_ITEMS").map(function(n){return c.find(function(t){return t.id===n.id})}).filter(function(n){return n});if(0===t.length)return{visual:u,bounds:r};var l=f.rect.element.width,o=br(f,t,e.dragCoordinates),i=t[0].rect.element,s=i.marginTop+i.marginBottom,a=i.marginLeft+i.marginRight,v=i.width+a,y=i.height+s,p=void 0!==o&&o>=0?1:0,w=t.find(function(n){return n.markedForRemoval&&n.opacity<.45})?-1:0,b=t.length+p+w,h=Math.round(l/v);return 1===h?t.forEach(function(n){var t=n.rect.element.height+s;r+=t;u+=t*n.opacity}):(r=Math.ceil(b/h)*y,u=r),{visual:u,bounds:r}},ka=function(n){var t=n.ref.measureHeight||null;return{cappedHeight:parseInt(n.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},eu=function(n,t){var f=n.query("GET_ALLOW_REPLACE"),r=n.query("GET_ALLOW_MULTIPLE"),e=n.query("GET_TOTAL_ITEMS"),i=n.query("GET_MAX_FILES"),u=t.length;return!r&&u>1||!!(ht(i=r?i:f?i:1)&&e+u>i)&&(n.dispatch("DID_THROW_MAX_FILES",{source:t,error:o("warning",0,"Max files")}),!0)},da=function(n,t,i){var r=n.childViews[0];return br(r,t,{left:i.scopeLeft-r.rect.element.left,top:i.scopeTop-(n.rect.outer.top+n.rect.element.marginTop+n.rect.element.scrollTop)})},ts=function(n){var r=n.query("GET_ALLOW_DROP"),u=n.query("GET_DISABLED"),i=r&&!u,t;i&&!n.ref.hopper?(t=va(n.element,function(t){var i=n.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!n.query("GET_DROP_VALIDATION")||t.every(function(t){return rt("ALLOW_HOPPER_ITEM",t,{query:n.query}).every(function(n){return!0===n})&&i(t)})},{filterItems:function(t){var i=n.query("GET_IGNORED_FILES");return t.filter(function(n){return!yt(n)||!i.includes(n.name.toLowerCase())})},catchesDropsOnPage:n.query("GET_DROP_ON_PAGE"),requiresDropOnElement:n.query("GET_DROP_ON_ELEMENT")}),t.onload=function(t,i){var r=n.ref.list.childViews[0].childViews.filter(function(n){return n.rect.element.height}),u=n.query("GET_ACTIVE_ITEMS").map(function(n){return r.find(function(t){return t.id===n.id})}).filter(function(n){return n});w("ADD_ITEMS",t,{dispatch:n.dispatch}).then(function(t){if(eu(n,t))return!1;n.dispatch("ADD_ITEMS",{items:t,index:da(n.ref.list,u,i),interactionMethod:ef})});n.dispatch("DID_DROP",{position:i});n.dispatch("DID_END_DRAG",{position:i})},t.ondragstart=function(t){n.dispatch("DID_START_DRAG",{position:t})},t.ondrag=ns(function(t){n.dispatch("DID_DRAG",{position:t})}),t.ondragend=function(t){n.dispatch("DID_END_DRAG",{position:t})},n.ref.hopper=t,n.ref.drip=n.appendChildView(n.createChildView(al))):!i&&n.ref.hopper&&(n.ref.hopper.destroy(),n.ref.hopper=null,n.removeChildView(n.ref.drip))},is=function(n,t){var r=n.query("GET_ALLOW_BROWSE"),u=n.query("GET_DISABLED"),i=r&&!u;i&&!n.ref.browser?n.ref.browser=n.appendChildView(n.createChildView(el,Object.assign({},t,{onload:function(t){w("ADD_ITEMS",t,{dispatch:n.dispatch}).then(function(t){if(eu(n,t))return!1;n.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:tr})})}})),0):!i&&n.ref.browser&&(n.removeChildView(n.ref.browser),n.ref.browser=null)},rs=function(n){var i=n.query("GET_ALLOW_PASTE"),r=n.query("GET_DISABLED"),t=i&&!r;t&&!n.ref.paster?(n.ref.paster=ya(),n.ref.paster.onload=function(t){w("ADD_ITEMS",t,{dispatch:n.dispatch}).then(function(t){if(eu(n,t))return!1;n.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:uh})})}):!t&&n.ref.paster&&(n.ref.paster.destroy(),n.ref.paster=null)},ga=c({DID_SET_ALLOW_BROWSE:function(n){var t=n.root,i=n.props;is(t,i)},DID_SET_ALLOW_DROP:function(n){var t=n.root;ts(t)},DID_SET_ALLOW_PASTE:function(n){var t=n.root;rs(t)},DID_SET_DISABLED:function(n){var t=n.root,i=n.props;ts(t);rs(t);is(t,i);t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),nv=e({name:"root",read:function(n){var t=n.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(n){var t=n.root,u=n.props,e=t.query("GET_ID"),f,o,s,r,i;e&&(t.element.id=e);f=t.query("GET_CLASS_NAME");f&&f.split(" ").filter(function(n){return n.length}).forEach(function(n){t.element.classList.add(n)});t.ref.label=t.appendChildView(t.createChildView(hl,Object.assign({},u,{translateY:null,caption:t.query("GET_LABEL_IDLE")})));t.ref.list=t.appendChildView(t.createChildView(fl,{translateY:null}));t.ref.panel=t.appendChildView(t.createChildView(de,{name:"panel-root"}));t.ref.assistant=t.appendChildView(t.createChildView(pa,Object.assign({},u)));t.ref.data=t.appendChildView(t.createChildView(yl,Object.assign({},u)));t.ref.measure=g("div");t.ref.measure.style.height="100%";t.element.appendChild(t.ref.measure);t.ref.bounds=null;t.query("GET_STYLES").filter(function(n){return!d(n.value)}).map(function(n){var i=n.name,r=n.value;t.element.dataset[i]=r});t.ref.widthPrevious=null;t.ref.widthUpdated=ns(function(){t.ref.updateHistory=[];t.dispatch("DID_RESIZE_ROOT")},250);t.ref.previousAspectRatio=null;t.ref.updateHistory=[];o=window.matchMedia("(pointer: fine) and (hover: hover)").matches;s="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&s&&!o&&(t.element.addEventListener("touchmove",ki,{passive:!1}),t.element.addEventListener("gesturestart",ki));r=t.query("GET_CREDITS");2===r.length&&(i=document.createElement("a"),i.className="filepond--credits",i.setAttribute("aria-hidden","true"),i.href=r[0],i.tabindex=-1,i.target="_blank",i.rel="noopener noreferrer",i.textContent=r[1],t.element.appendChild(i),t.ref.credits=i)},write:function(n){var t=n.root,pt=n.props,g=n.actions,i,it,ut,w,h,ft,et,yt,k,ot,st;if(ga({root:t,props:pt,actions:g}),g.filter(function(n){return/^DID_SET_STYLE_/.test(n.type)}).filter(function(n){return!d(n.data.value)}).map(function(n){var i=n.type,r=n.data,u=go(i.substr(8).toLowerCase(),"_");t.element.dataset[u]=r.value;t.invalidateLayout()}),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());i=t.ref.bounds;i||(i=t.ref.bounds=ka(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var v=t.ref,ht=v.hopper,f=v.label,e=v.list,u=v.panel;ht&&ht.updateHopperState();var y=t.query("GET_PANEL_ASPECT_RATIO"),nt=t.query("GET_ALLOW_MULTIPLE"),tt=t.query("GET_TOTAL_ITEMS"),o=tt===(nt?t.query("GET_MAX_FILES")||1e6:1),ct=g.find(function(n){return"DID_ADD_ITEM"===n.type});o&&ct?(it=ct.data.interactionMethod,f.opacity=0,nt?f.translateY=-40:it===nr?f.translateX=40:f.translateY=it===tr?40:30):o||(f.opacity=1,f.translateX=0,f.translateY=0);var r=wa(t),c=ba(t),rt=f.rect.element.height,s=!nt||o?0:rt,l=o?e.rect.element.marginTop:0,a=0===tt?0:e.rect.element.marginBottom,p=s+l+c.visual+a,lt=s+l+c.bounds+a;if(e.translateY=Math.max(0,s-e.rect.element.marginTop)-r.top,y){if(ut=t.rect.element.width,w=ut*y,y!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=y,t.ref.updateHistory=[]),h=t.ref.updateHistory,h.push(ut),h.length>4)for(var at=h.length,wt=at-10,vt=0,b=at;b>=wt;b--)if(h[b]===h[b-2]&&vt++,vt>=2)return;u.scalable=!1;u.height=w;ft=w-s-(a-r.bottom)-(o?l:0);e.overflow=c.visual>ft?ft:null;t.height=w}else i.fixedHeight?(u.scalable=!1,et=i.fixedHeight-s-(a-r.bottom)-(o?l:0),e.overflow=c.visual>et?et:null):i.cappedHeight?(yt=p>=i.cappedHeight,k=Math.min(i.cappedHeight,p),u.scalable=!0,u.height=yt?k:k-r.top-r.bottom,ot=k-s-(a-r.bottom)-(o?l:0),e.overflow=p>i.cappedHeight&&c.visual>ot?ot:null,t.height=Math.min(i.cappedHeight,lt-r.top-r.bottom)):(st=tt>0?r.top+r.bottom:0,u.scalable=!0,u.height=Math.max(rt,p-st),t.height=Math.max(rt,lt-st));t.ref.credits&&u.heightCurrent&&(t.ref.credits.style.transform="translateY("+u.heightCurrent+"px)")}},destroy:function(n){var t=n.root;t.ref.paster&&t.ref.paster.destroy();t.ref.hopper&&t.ref.hopper.destroy();t.element.removeEventListener("touchmove",ki);t.element.removeEventListener("gesturestart",ki)},mixins:{styles:["height"]}}),tv=function(){var ot=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=null,h=hi(),t=function(n){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},n),u=[],f=[],e=function(n,i,r){!r||document.hidden?(t[n]&&t[n](i),u.push({type:n,data:i})):f.push({type:n,data:i})},o=function(n){for(var u,r=arguments.length,f=new Array(r>1?r-1:0),t=1;t<r;t++)f[t-1]=arguments[t];return i[n]?(u=i)[n].apply(u,f):null},c={getState:function(){return Object.assign({},r)},processActionQueue:function(){var n=[].concat(u);return u.length=0,n},processDispatchQueue:function(){var n=[].concat(f);f.length=0;n.forEach(function(n){var t=n.type,i=n.data;e(t,i)})},dispatch:e,query:o},i={},t;return s.forEach(function(n){i=Object.assign({},n(r),{},i)}),t={},h.forEach(function(n){t=Object.assign({},n(e,o,r),{},t)}),c}({items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:th(h)},[wh,rh(h)],[oc,ih(h)]),w;t.dispatch("SET_OPTIONS",{options:ot});w=function(){document.hidden||t.dispatch("KICK")};document.addEventListener("visibilitychange",w);var d=null,c=!1,o=!1,a=null,y=null,g=function(){c||(c=!0);clearTimeout(d);d=setTimeout(function(){c=!1;a=null;y=null;o&&(o=!1,t.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",g);var u=nv(t,{id:rr()}),f=!1,tt=!1,st={_read:function(){c&&(y=window.innerWidth,a||(a=y),o||y===a||(t.dispatch("DID_START_RESIZE"),o=!0));tt&&f&&(f=null===u.element.offsetParent);f||(u._read(),tt=u.rect.element.hidden)},_write:function(n){var r,i=t.processActionQueue().filter(function(n){return!/^SET_/.test(n.type)});f&&!i.length||(ht(i),f=u._write(n,i,o),(r=t.query("GET_ITEMS")).forEach(function(n,t){n.released&&fr(r,t)}),f&&t.processDispatchQueue())}},n=function(n){return function(i){var r={type:n},u;return i?((i.hasOwnProperty("error")&&(r.error=i.error?Object.assign({},i.error):null),i.status&&(r.status=Object.assign({},i.status)),i.file&&(r.output=i.file),i.source)?r.file=i.source:(i.item||i.id)&&(u=i.item?i.item:t.query("GET_ITEM",i.id),r.file=u?v(u):null),i.items&&(r.items=i.items.map(v)),/progress/.test(n)&&(r.progress=i.progress),i.hasOwnProperty("origin")&&i.hasOwnProperty("target")&&(r.origin=i.origin,r.target=i.target),r):r}},rt={DID_DESTROY:n("destroy"),DID_INIT:n("init"),DID_THROW_MAX_FILES:n("warning"),DID_INIT_ITEM:n("initfile"),DID_START_ITEM_LOAD:n("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:n("addfileprogress"),DID_LOAD_ITEM:n("addfile"),DID_THROW_ITEM_INVALID:[n("error"),n("addfile")],DID_THROW_ITEM_LOAD_ERROR:[n("error"),n("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[n("error"),n("removefile")],DID_PREPARE_OUTPUT:n("preparefile"),DID_START_ITEM_PROCESSING:n("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:n("processfileprogress"),DID_ABORT_ITEM_PROCESSING:n("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:n("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:n("processfiles"),DID_REVERT_ITEM_PROCESSING:n("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[n("error"),n("processfile")],DID_REMOVE_ITEM:n("removefile"),DID_UPDATE_ITEMS:n("updatefiles"),DID_ACTIVATE_ITEM:n("activatefile"),DID_REORDER_ITEMS:n("reorderfiles")},ut=function(n){var f=Object.assign({pond:s},n),i,e,r;delete f.type;u.element.dispatchEvent(new CustomEvent("FilePond:"+n.type,{detail:f,bubbles:!0,cancelable:!0,composed:!0}));i=[];n.hasOwnProperty("error")&&i.push(n.error);n.hasOwnProperty("file")&&i.push(n.file);e=["type","error","file"];Object.keys(n).filter(function(n){return!e.includes(n)}).forEach(function(t){return i.push(n[t])});s.fire.apply(s,[n.type].concat(i));r=t.query("GET_ON"+n.type.toUpperCase());r&&r.apply(void 0,i)},ht=function(n){n.length&&n.filter(function(n){return rt[n.type]}).forEach(function(n){var t=rt[n.type];(Array.isArray(t)?t:[t]).forEach(function(t){"DID_INIT_ITEM"===n.type?ut(t(n.data)):setTimeout(function(){ut(t(n.data))},0)})})},ft=function(n){return new Promise(function(i,r){t.dispatch("REQUEST_ITEM_PREPARE",{query:n,success:function(n){i(n)},failure:function(n){r(n)}})})},b=function(n,i){var r;return"object"!=typeof n||(r=n).file&&r.id||i||(i=n,n=void 0),t.dispatch("REMOVE_ITEM",Object.assign({},i,{query:n})),null===t.query("GET_ACTIVE_ITEM",n)},et=function(){for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];return new Promise(function(i,r){var u=[],f={},e;ri(n[0])?(u.push.apply(u,n[0]),Object.assign(f,n[1]||{})):(e=n[n.length-1],"object"!=typeof e||e instanceof Blob||Object.assign(f,n.pop()),u.push.apply(u,n));t.dispatch("ADD_ITEMS",{items:u,index:f.index,interactionMethod:nr,success:i,failure:r})})},p=function(){return t.query("GET_ACTIVE_ITEMS")},k=function(n){return new Promise(function(i,r){t.dispatch("REQUEST_ITEM_PROCESSING",{query:n,success:function(n){i(n)},failure:function(n){r(n)}})})},s=Object.assign({},si(),{},st,{},function(n,t){var i={};return r(t,function(t){i[t]={get:function(){return n.getState().options[t]},set:function(i){n.dispatch("SET_"+ei(t,"_").toUpperCase(),{value:i})}}}),i}(t,h),{setOptions:function(n){return t.dispatch("SET_OPTIONS",{options:n})},addFile:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(i,r){et([{source:n,options:t}],{index:t.index}).then(function(n){return i(n&&n[0])}).catch(r)})},addFiles:et,getFile:function(n){return t.query("GET_ACTIVE_ITEM",n)},processFile:k,prepareFile:ft,removeFile:b,moveFile:function(n,i){return t.dispatch("MOVE_ITEM",{query:n,index:i})},getFiles:p,processFiles:function(){for(var r,f,u=arguments.length,n=new Array(u),t=0;t<u;t++)n[t]=arguments[t];return(r=Array.isArray(n[0])?n[0]:n,!r.length)?(f=p().filter(function(n){return!(n.status===i.IDLE&&n.origin===l.LOCAL)&&n.status!==i.PROCESSING&&n.status!==i.PROCESSING_COMPLETE&&n.status!==i.PROCESSING_REVERT_ERROR}),Promise.all(f.map(k))):Promise.all(r.map(k))},removeFiles:function(){for(var r,t,u,f=arguments.length,n=new Array(f),i=0;i<f;i++)n[i]=arguments[i];return t=Array.isArray(n[0])?n[0]:n,"object"==typeof t[t.length-1]?r=t.pop():Array.isArray(n[0])&&(r=n[1]),u=p(),t.length?t.map(function(n){return it(n)?u[n]?u[n].id:null:n}).filter(function(n){return n}).map(function(n){return b(n,r)}):Promise.all(u.map(function(n){return b(n,r)}))},prepareFiles:function(){for(var i,u,r=arguments.length,n=new Array(r),t=0;t<r;t++)n[t]=arguments[t];return i=Array.isArray(n[0])?n[0]:n,u=i.length?i:p(),Promise.all(u.map(ft))},sort:function(n){return t.dispatch("SORT",{compare:n})},browse:function(){var n=u.element.querySelector("input[type=file]");n&&n.click()},destroy:function(){s.fire("destroy",u.element);t.dispatch("ABORT_ALL");u._destroy();window.removeEventListener("resize",g);document.removeEventListener("visibilitychange",w);t.dispatch("DID_DESTROY")},insertBefore:function(n){return bu(u.element,n)},insertAfter:function(n){return ku(u.element,n)},appendTo:function(n){return n.appendChild(u.element)},replaceElement:function(n){bu(u.element,n);n.parentNode.removeChild(n);e=n},restoreElement:function(){e&&(ku(e,u.element),u.element.parentNode.removeChild(u.element),e=null)},isAttachedTo:function(n){return u.element===n||e===n},element:{get:function(){return u.element}},status:{get:function(){return t.query("GET_STATUS")}}});return t.dispatch("DID_INIT"),nt(s)},us=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={};return r(hi(),function(t,i){n[t]=i[0]}),tv(Object.assign({},n,{},t))},iv=function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],t;return r(n.attributes,function(t){i.push(n.attributes[t])}),t=i.filter(function(n){return n.name}).reduce(function(t,i){var r,u=f(n,i.name);return t[(r=i.name,go(r.replace(/^data-/,"")))]=u===i.name||u,t},{}),function n(t,i){r(i,function(i,u){r(t,function(n,r){var o=new RegExp(i),e,f;o.test(n)&&(delete t[n],!1!==u)&&(a(u)?t[u]=r:(f=u.group,s(u)&&!t[f]&&(t[f]={}),t[f][(e=n.replace(o,""),e.charAt(0).toLowerCase()+e.slice(1))]=r))});u.mapping&&n(t[u.group],u.mapping)})}(t,u),t},rv=function(){return(arguments.length<=0?void 0:arguments[0])instanceof HTMLElement?function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1},t,i,r;return rt("SET_ATTRIBUTE_TO_OPTION_MAP",f),t=Object.assign({},u),i=iv("FIELDSET"===n.nodeName?n.querySelector("input[type=file]"):n,f),Object.keys(i).forEach(function(n){s(i[n])?(s(t[n])||(t[n]={}),Object.assign(t[n],i[n])):t[n]=i[n]}),t.files=(u.files||[]).concat(Array.from(n.querySelectorAll("input:not([type=file])")).map(function(n){return{source:n.value,options:{type:n.dataset.type}}})),r=us(t),n.files&&Array.from(n.files).forEach(function(n){r.addFile(n)}),r.replaceElement(n),r}.apply(void 0,arguments):us.apply(void 0,arguments)},uv=["fire","_read","_write"],fs=function(n){var t={};return hf(n,t,uv),t},fv=function(n,t){return n.replace(/(?:{([a-zA-Z]+)})/g,function(n,i){return t[i]})},ev=function(n){var r=new Blob(["(",n.toString(),")()"],{type:"application/javascript"}),i=URL.createObjectURL(r),t=new Worker(i);return{transfer:function(){},post:function(n,i,r){var u=rr();t.onmessage=function(n){n.data.id===u&&i(n.data.message)};t.postMessage({id:u,message:n},r)},terminate:function(){t.terminate();URL.revokeObjectURL(i)}}},ov=function(n){return new Promise(function(t,i){var r=new Image;r.onload=function(){t(r)};r.onerror=function(n){i(n)};r.src=n})},es=function(n,t){var i=n.slice(0,n.size,n.type);return i.lastModifiedDate=n.lastModifiedDate,i.name=t,i},sv=function(n){return es(n,n.name)},os=[],hv=function(n){if(!os.includes(n)){os.push(n);var i,f=n({addFilter:hh,utils:{Type:t,forin:r,isString:a,isFile:yt,toNaturalFileSize:se,replaceInString:fv,getExtensionFromFilename:ci,getFilenameWithoutExtension:te,guesstimateMimeType:co,getFileFromBlob:vt,getFilenameFromURL:kt,createRoute:c,createWorker:ev,createView:e,createItemAPI:v,loadImage:ov,copyFile:sv,renameFile:es,createBlob:pf,applyFilterChain:w,text:u,getNumericAspectRatioFromString:af},views:{fileActionButton:oe}});i=f.options;Object.assign(lt,i)}},ou=(pe=lu()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return pe}),tt={apps:[]},st=function(){};(n.Status={},n.FileStatus={},n.FileOrigin={},n.OptionTypes={},n.create=st,n.destroy=st,n.parse=st,n.find=st,n.registerPlugin=st,n.getOptions=st,n.setOptions=st,ou())&&(!function(n,t){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i="__framePainter",r;if(window[i])return window[i].readers.push(n),void window[i].writers.push(t);window[i]={readers:[n],writers:[t]};var h=window[i],e=1e3/l,u=null,o=null,s=null,f=null,c=function(){document.hidden?(s=function(){return window.setTimeout(function(){return r(performance.now())},e)},f=function(){return window.clearTimeout(o)}):(s=function(){return window.requestAnimationFrame(r)},f=function(){return window.cancelAnimationFrame(o)})};document.addEventListener("visibilitychange",function(){f&&f();c();r(performance.now())});r=function n(t){o=s(n);u||(u=t);var i=t-u;i<=e||(u=t-i%e,h.readers.forEach(function(n){return n()}),h.writers.forEach(function(n){return n(t)}))};c();r(performance.now())}(function(){tt.apps.forEach(function(n){return n._read()})},function(n){tt.apps.forEach(function(t){return t._write(n)})}),su=function r(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:ou,create:n.create,destroy:n.destroy,parse:n.parse,find:n.find,registerPlugin:n.registerPlugin,setOptions:n.setOptions}}));document.removeEventListener("DOMContentLoaded",r)},"loading"!==document.readyState?setTimeout(function(){return su()},0):document.addEventListener("DOMContentLoaded",su),hu=function(){return r(hi(),function(t,i){n.OptionTypes[t]=i[1]})},n.Status=Object.assign({},at),n.FileOrigin=Object.assign({},l),n.FileStatus=Object.assign({},i),n.OptionTypes={},hu(),n.create=function(){var t=rv.apply(void 0,arguments);return t.on("destroy",n.destroy),tt.apps.push(t),fs(t)},n.destroy=function(n){var t=tt.apps.findIndex(function(t){return t.isAttachedTo(n)});return t>=0&&(tt.apps.splice(t,1)[0].restoreElement(),!0)},n.parse=function(t){return Array.from(t.querySelectorAll(".filepond")).filter(function(n){return!tt.apps.find(function(t){return t.isAttachedTo(n)})}).map(function(t){return n.create(t)})},n.find=function(n){var t=tt.apps.find(function(t){return t.isAttachedTo(n)});return t?fs(t):null},n.registerPlugin=function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];i.forEach(hv);hu()},n.getOptions=function(){var n={};return r(hi(),function(t,i){n[t]=i[0]}),n},n.setOptions=function(t){return s(t)&&(tt.apps.forEach(function(n){n.setOptions(t)}),function(n){r(n,function(n,t){lt[n]&&(lt[n][0]=ff(t,lt[n][0],lt[n][1]))})}(t)),n.getOptions()});n.supported=ou;Object.defineProperty(n,"__esModule",{value:!0})}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.FilePondPluginFileEncode=t())}(this,function(){"use strict";var t=function(){self.onmessage=function(t){n(t.data.message,function(n){self.postMessage({id:t.data.id,message:n})})};var n=function(n,t){var r=n.file,i=new FileReader;i.onloadend=function(){t(i.result.replace("data:","").replace(/^.+,/,""))};i.readAsDataURL(r)}},n=function(n){var r=n.addFilter,u=n.utils,f=u.Type,e=u.createWorker,o=u.createRoute,s=u.isFile,h=function(n){var i=n.name,r=n.file;return new Promise(function(n){var u=e(t);u.post({file:r},function(t){n({name:i,data:t});u.terminate()})})},i=[];return r("DID_CREATE_ITEM",function(n,t){var r=t.query;r("GET_ALLOW_FILE_ENCODE")&&(n.extend("getFileEncodeBase64String",function(){return i[n.id]&&i[n.id].data}),n.extend("getFileEncodeDataURL",function(){return"data:".concat(n.fileType,";base64,").concat(i[n.id].data)}))}),r("SHOULD_PREPARE_OUTPUT",function(n,t){var i=t.query;return new Promise(function(n){n(i("GET_ALLOW_FILE_ENCODE"))})}),r("COMPLETE_PREPARE_OUTPUT",function(n,t){var r=t.item,u=t.query;return new Promise(function(t){if(!u("GET_ALLOW_FILE_ENCODE")||!s(n)&&!Array.isArray(n))return t(n);i[r.id]={metadata:r.getMetadata(),data:null};Promise.all((n instanceof Blob?[{name:null,file:n}]:n).map(h)).then(function(u){i[r.id].data=n instanceof Blob?u[0].data:u;t(n)})})}),r("CREATE_VIEW",function(n){var r=n.is,u=n.view,t=n.query;r("file-wrapper")&&t("GET_ALLOW_FILE_ENCODE")&&u.registerWriter(o({DID_PREPARE_OUTPUT:function(n){var u=n.root,o=n.action,r;if(!t("IS_ASYNC")&&(r=t("GET_ITEM",o.id),r)){var f=i[r.id],s=f.metadata,h=f.data,e=JSON.stringify({id:r.id,name:r.file.name,type:r.file.type,size:r.file.size,metadata:s,data:h});u.ref.data?u.ref.data.value=e:u.dispatch("DID_DEFINE_VALUE",{id:r.id,value:e})}},DID_REMOVE_ITEM:function(n){var u=n.action,r=t("GET_ITEM",u.id);r&&delete i[r.id]}}))}),{options:{allowFileEncode:[!0,f.BOOLEAN]}}},i=typeof window!="undefined"&&typeof document!="undefined";return i&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:n})),n}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.FilePondPluginFileValidateType=t())}(this,function(){"use strict";var n=function(n){var r=n.addFilter,t=n.utils,i=t.Type,e=t.isString,o=t.replaceInString,s=t.guesstimateMimeType,h=t.getExtensionFromFilename,c=t.getFilenameFromURL,l=function(n,t){var i=(/^[^/]+/.exec(n)||[]).pop(),r=t.slice(0,-2);return i===r},u=function(n,t){return n.some(function(n){return/\*$/.test(n)?l(t,n):n===t})},a=function(n){var t="",r,i;return e(n)?(r=c(n),i=h(r),i&&(t=s(i))):t=n.type,t},f=function(n,t,i){if(t.length===0)return!0;var r=a(n);return i?new Promise(function(f,e){i(n,r).then(function(n){u(t,n)?f():e()}).catch(e)}):u(t,r)},v=function(n){return function(t){return n[t]===null?!1:n[t]||t}};return r("SET_ATTRIBUTE_TO_OPTION_MAP",function(n){return Object.assign(n,{accept:"acceptedFileTypes"})}),r("ALLOW_HOPPER_ITEM",function(n,t){var i=t.query;return i("GET_ALLOW_FILE_TYPE_VALIDATION")?f(n,i("GET_ACCEPTED_FILE_TYPES")):!0}),r("LOAD_FILE",function(n,t){var i=t.query;return new Promise(function(t,r){if(!i("GET_ALLOW_FILE_TYPE_VALIDATION")){t(n);return}var e=i("GET_ACCEPTED_FILE_TYPES"),h=i("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),u=f(n,e,h),s=function(){var n=e.map(v(i("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter(function(n){return n!==!1});r({status:{main:i("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:o(i("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:n.join(", "),allButLastType:n.slice(0,-1).join(", "),lastType:n[n.length-1]})}})};if(typeof u=="boolean")return u?t(n):s();u.then(function(){t(n)}).catch(s)})}),{options:{allowFileTypeValidation:[!0,i.BOOLEAN],acceptedFileTypes:[[],i.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",i.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",i.STRING],fileValidateTypeLabelExpectedTypesMap:[{},i.OBJECT],fileValidateTypeDetectType:[null,i.FUNCTION]}}},t=typeof window!="undefined"&&typeof document!="undefined";return t&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:n})),n}),function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(n=n||self,n.FilePondPluginImageCrop=t())}(this,function(){"use strict";var n=function(n){return/^image/.test(n.type)},t=function(t){var e=t.addFilter,u=t.utils,o=u.Type,c=u.isFile,s=u.getNumericAspectRatioFromString,i=function(t,i){return!(!n(t.file)||!i("GET_ALLOW_IMAGE_CROP"))},f=function(n){return typeof n=="object"},h=function(n){return typeof n=="number"},r=function(n,t){return n.setMetadata("crop",Object.assign({},n.getMetadata("crop"),t))};return e("DID_CREATE_ITEM",function(n,t){var u=t.query;n.extend("setImageCrop",function(t){if(i(n,u)&&f(center))return n.setMetadata("crop",t),t});n.extend("setImageCropCenter",function(t){if(i(n,u)&&f(t))return r(n,{center:t})});n.extend("setImageCropZoom",function(t){if(i(n,u)&&h(t))return r(n,{zoom:Math.max(1,t)})});n.extend("setImageCropRotation",function(t){if(i(n,u)&&h(t))return r(n,{rotation:t})});n.extend("setImageCropFlip",function(t){if(i(n,u)&&f(t))return r(n,{flip:t})});n.extend("setImageCropAspectRatio",function(t){if(i(n,u)&&typeof t!="undefined"){var r=n.getMetadata("crop"),e=s(t),f={center:{x:.5,y:.5},flip:r?Object.assign({},r.flip):{horizontal:!1,vertical:!1},rotation:0,zoom:1,aspectRatio:e};return n.setMetadata("crop",f),f}})}),e("DID_LOAD_ITEM",function(t,i){var r=i.query;return new Promise(function(i){var f=t.file,e,u;if(!c(f)||!n(f)||!r("GET_ALLOW_IMAGE_CROP")||(e=t.getMetadata("crop"),e))return i(t);u=r("GET_IMAGE_CROP_ASPECT_RATIO");t.setMetadata("crop",{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},rotation:0,zoom:1,aspectRatio:u?s(u):null});i(t)})}),{options:{allowImageCrop:[!0,o.BOOLEAN],imageCropAspectRatio:[null,o.STRING]}}},i=typeof window!="undefined"&&typeof document!="undefined";return i&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:t})),t});!function(n,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(n=n||self).FilePondPluginImagePreview=t()}(this,function(){"use strict";function a(n){this.wrapped=n}function o(n){function r(t,i){try{var e=n[t](i),f=e.value,o=f instanceof a;Promise.resolve(o?f.wrapped:f).then(function(n){o?r("next",n):u(e.done?"return":"normal",n)},function(n){r("throw",n)})}catch(a){u("throw",a)}}function u(n,u){switch(n){case"return":t.resolve({value:u,done:!0});break;case"throw":t.reject(u);break;default:t.resolve({value:u,done:!1})}(t=t.next)?r(t.key,t.arg):i=null}var t,i;this._invoke=function(n,u){return new Promise(function(f,e){var o={key:n,arg:u,resolve:f,reject:e,next:null};i?i=i.next=o:(t=i=o,r(n,u))})};"function"!=typeof n.return&&(this.return=void 0)}function v(n,t){return ut(n)||function(n,t){var r=[],u=!0,f=!1,e=void 0,o,i;try{for(i=n[Symbol.iterator]();!(u=(o=i.next()).done)&&(r.push(o.value),!t||r.length!==t);u=!0);}catch(n){f=!0;e=n}finally{try{u||null==i.return||i.return()}finally{if(f)throw e;}}return r}(n,t)||ft()}function ut(n){if(Array.isArray(n))return n}function ft(){throw new TypeError("Invalid attempt to destructure non-iterable instance");}"function"==typeof Symbol&&Symbol.asyncIterator&&(o.prototype[Symbol.asyncIterator]=function(){return this});o.prototype.next=function(n){return this._invoke("next",n)};o.prototype.throw=function(n){return this._invoke("throw",n)};o.prototype.return=function(n){return this._invoke("return",n)};var y=function(n,t){return f(n.x*t,n.y*t)},p=function(n,t){return f(n.x+t.x,n.y+t.y)},s=function(n,t,i){var u=Math.cos(t),e=Math.sin(t),r=f(n.x-i.x,n.y-i.y);return f(i.x+u*r.x-e*r.y,i.y+e*r.x+u*r.y)},f=function(){return{x:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,y:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0}},n=function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0;return"string"==typeof n?parseFloat(n)*r:"number"==typeof n?n*(i?t[i]:Math.min(t.width,t.height)):void 0},t=function(n){return null!=n},i=function(n,t){return Object.keys(t).forEach(function(i){return n.setAttribute(i,t[i])})},u=function(n,t){var r=document.createElementNS("http://www.w3.org/2000/svg",n);return t&&i(r,t),r},et={contain:"xMidYMid meet",cover:"xMidYMid slice"},ot={left:"start",center:"middle",right:"end"},h=function(n){return function(t){return u(n,{id:t.id})}},st={image:function(n){var t=u("image",{id:n.id,"stroke-linecap":"round","stroke-linejoin":"round",opacity:"0"});return t.onload=function(){t.setAttribute("opacity",n.opacity||1)},t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n.src),t},rect:h("rect"),ellipse:h("ellipse"),text:h("text"),path:h("path"),line:function(n){var t=u("g",{id:n.id,"stroke-linecap":"round","stroke-linejoin":"round"}),f=u("line"),i,r;return t.appendChild(f),i=u("path"),t.appendChild(i),r=u("path"),t.appendChild(r),t}},ht={rect:function(n){return i(n,Object.assign({},n.rect,n.styles))},ellipse:function(n){var t=n.rect.x+.5*n.rect.width,r=n.rect.y+.5*n.rect.height,u=.5*n.rect.width,f=.5*n.rect.height;return i(n,Object.assign({cx:t,cy:r,rx:u,ry:f},n.styles))},image:function(n,t){i(n,Object.assign({},n.rect,n.styles,{preserveAspectRatio:et[t.fit]||"none"}))},text:function(t,r,u,f){var e=n(r.fontSize,u,f),o=r.fontFamily||"sans-serif",s=r.fontWeight||"normal",h=ot[r.textAlign]||"start";i(t,Object.assign({},t.rect,t.styles,{"stroke-width":0,"font-weight":s,"font-size":e,"font-family":o,"text-anchor":h}));t.text!==r.text&&(t.text=r.text,t.textContent=r.text.length?r.text:" ")},path:function(t,r,u,f){var e;i(t,Object.assign({},t.styles,{fill:"none",d:(e=r.points.map(function(t){return{x:n(t.x,u,f,"width"),y:n(t.y,u,f,"height")}}),e.map(function(n,t){return"".concat(0===t?"M":"L"," ").concat(n.x," ").concat(n.y)}).join(" "))}))},line:function(t,r,u,e){var c,l;i(t,Object.assign({},t.rect,t.styles,{fill:"none"}));var tt=t.childNodes[0],a=t.childNodes[1],v=t.childNodes[2],o=t.rect,h={x:t.rect.x+t.rect.width,y:t.rect.y+t.rect.height};if(i(tt,{x1:o.x,y1:o.y,x2:h.x,y2:h.y}),r.lineDecoration){if(a.style.display="none",v.style.display="none",c=function(n){var t=Math.sqrt(n.x*n.x+n.y*n.y);return 0===t?{x:0,y:0}:f(n.x/t,n.y/t)}({x:h.x-o.x,y:h.y-o.y}),l=n(.05,u,e),-1!==r.lineDecoration.indexOf("arrow-begin")){var it=y(c,l),w=p(o,it),b=s(o,2,w),k=s(o,-2,w);i(a,{style:"display:block;",d:"M".concat(b.x,",").concat(b.y," L").concat(o.x,",").concat(o.y," L").concat(k.x,",").concat(k.y)})}if(-1!==r.lineDecoration.indexOf("arrow-end")){var rt=y(c,-l),d=p(h,rt),g=s(h,2,d),nt=s(h,-2,d);i(v,{style:"display:block;",d:"M".concat(g.x,",").concat(g.y," L").concat(h.x,",").concat(h.y," L").concat(nt.x,",").concat(nt.y)})}}}},ct=function(i,r,u,f,e){"path"!==r&&(i.rect=function(i,r){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,f=n(i.x,r,u,"width")||n(i.left,r,u,"width"),e=n(i.y,r,u,"height")||n(i.top,r,u,"height"),o=n(i.width,r,u,"width"),s=n(i.height,r,u,"height"),h=n(i.right,r,u,"width"),c=n(i.bottom,r,u,"height");return t(e)||(e=t(s)&&t(c)?r.height-s-c:c),t(f)||(f=t(o)&&t(h)?r.width-o-h:h),t(o)||(o=t(f)&&t(h)?r.width-f-h:0),t(s)||(s=t(e)&&t(c)?r.height-e-c:0),{x:f||0,y:e||0,width:o||0,height:s||0}}(u,f,e));i.styles=function(t,i,r){var u=t.borderStyle||t.lineStyle||"solid",f=t.backgroundColor||t.fontColor||"transparent",e=t.borderColor||t.lineColor||"transparent",o=n(t.borderWidth||t.lineWidth,i,r);return{"stroke-linecap":t.lineCap||"round","stroke-linejoin":t.lineJoin||"round","stroke-width":o||0,"stroke-dasharray":"string"==typeof u?"":u.map(function(t){return n(t,i,r)}).join(","),stroke:e,fill:f,opacity:t.opacity||1}}(u,f,e);ht[r](i,u,f,e)},lt=["x","y","left","top","right","bottom","width","height"],at=function(n){var i=v(n,2),r=i[0],t=i[1],u=t.points?{}:lt.reduce(function(n,i){var r;return n[i]="string"==typeof(r=t[i])&&/%/.test(r)?parseFloat(r)/100:r,n},{});return[r,Object.assign({zIndex:0},t,u)]},vt=function(n,t){return n[1].zIndex>t[1].zIndex?1:n[1].zIndex<t[1].zIndex?-1:0},yt=function(n){return n.utils.createView({name:"image-preview-markup",tag:"svg",ignoreRect:!0,mixins:{apis:["width","height","crop","markup","resize","dirty"]},write:function(n){var u=n.root,r=n.props,a,h,y,p,c,d,g;if(r.dirty){var w=r.crop,o=r.resize,nt=r.markup,b=r.width,k=r.height,f=w.width,e=w.height;if(o){var s=o.size,t=s&&s.width,i=s&&s.height,l=o.mode,tt=o.upscale;t&&!i&&(i=t);i&&!t&&(t=i);a=f<t&&e<i;(!a||a&&tt)&&(y=t/f,p=i/e,"force"===l?(f=t,e=i):("cover"===l?h=Math.max(y,p):"contain"===l&&(h=Math.min(y,p)),f*=h,e*=h))}c={width:b,height:k};u.element.setAttribute("width",c.width);u.element.setAttribute("height",c.height);d=Math.min(b/f,k/e);u.element.innerHTML="";g=u.query("GET_IMAGE_PREVIEW_MARKUP_FILTER");nt.filter(g).map(at).sort(vt).forEach(function(n){var t=v(n,2),i=t[0],r=t[1],f=function(n,t){return st[n](t)}(i,r);ct(f,i,r,c,d);u.element.appendChild(f)})}}})},e=function(n,t){return{x:n,y:t}},w=function(n,t){return e(n.x-t.x,n.y-t.y)},b=function(n,t){return Math.sqrt(function(n,t){return function(n,t){return n.x*t.x+n.y*t.y}(w(n,t),w(n,t))}(n,t))},k=function(n,t){var f=n,o=t,i=1.5707963267948966-t,s=Math.sin(1.5707963267948966),h=Math.sin(o),c=Math.sin(i),r=Math.cos(i),u=f/s;return e(r*u*h,r*u*c)},d=function(n,t,i,r){var f=r.x>.5?1-r.x:r.x,o=r.y>.5?1-r.y:r.y,s=2*f*n.width,h=2*o*n.height,u=function(n,t){var f=n.width,o=n.height,r=k(f,t),i=k(o,t),u=e(n.x+Math.abs(r.x),n.y-Math.abs(r.y)),s=e(n.x+n.width+Math.abs(i.y),n.y+Math.abs(i.x)),h=e(n.x-Math.abs(i.y),n.y+n.height-Math.abs(i.x));return{width:b(u,s),height:b(u,h)}}(t,i);return Math.max(u.width/s,u.height/h)},g=function(n,t){var i=n.width,r=i*t;return r>n.height&&(i=(r=n.height)/t),{x:.5*(n.width-i),y:.5*(n.height-r),width:i,height:r}},pt=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=i.zoom,e=i.rotation,o=i.center,r=i.aspectRatio;r||(r=n.height/n.width);var t=function(n,t){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,e=n.height/n.width,i=t,r=1,u=e,o,f;return u>i&&(r=(u=i)/e),o=Math.max(1/r,i/u),f=n.width/(s*o*r),{width:f,height:f*t}}(n,r,f),s={x:.5*t.width,y:.5*t.height},h={x:0,y:0,width:t.width,height:t.height,center:s},c=void 0===i.scaleToFit||i.scaleToFit,u=f*d(n,g(h,r),e,c?o:{x:.5,y:.5});return{widthFloat:t.width/u,heightFloat:t.height/u,width:Math.round(t.width/u),height:Math.round(t.height/u)}},r={type:"spring",stiffness:.5,damping:.45,mass:10},wt=function(n){return n.utils.createView({name:"image-clip",tag:"div",ignoreRect:!0,mixins:{apis:["crop","markup","resize","width","height","dirty","background"],styles:["width","height","opacity"],animations:{opacity:{type:"tween",duration:250}}},didWriteView:function(n){var i=n.root,t=n.props;t.background&&(i.element.style.backgroundColor=t.background)},create:function(t){var i=t.root,f=t.props,u;i.ref.image=i.appendChildView(i.createChildView(function(n){return n.utils.createView({name:"image-canvas-wrapper",tag:"div",ignoreRect:!0,mixins:{apis:["crop","width","height"],styles:["originX","originY","translateX","translateY","scaleX","scaleY","rotateZ"],animations:{originX:r,originY:r,scaleX:r,scaleY:r,translateX:r,translateY:r,rotateZ:r}},create:function(t){var r=t.root,i=t.props;i.width=i.image.width;i.height=i.image.height;r.ref.bitmap=r.appendChildView(r.createChildView(function(n){return n.utils.createView({name:"image-bitmap",ignoreRect:!0,mixins:{styles:["scaleX","scaleY"]},create:function(n){var t=n.root,i=n.props;t.appendChild(i.image)}})}(n),{image:i.image}))},write:function(n){var r=n.root,t=n.props.crop.flip,i=r.ref.bitmap;i.scaleX=t.horizontal?-1:1;i.scaleY=t.vertical?-1:1}})}(n),Object.assign({},f)));i.ref.createMarkup=function(){i.ref.markup||(i.ref.markup=i.appendChildView(i.createChildView(yt(n),Object.assign({},f))))};i.ref.destroyMarkup=function(){i.ref.markup&&(i.removeChildView(i.ref.markup),i.ref.markup=null)};u=i.query("GET_IMAGE_PREVIEW_TRANSPARENCY_INDICATOR");null!==u&&(i.element.dataset.transparencyIndicator="grid"===u?u:"color")},write:function(n){var i=n.root,f=n.props,y=n.shouldOptimize,r=f.crop,e=f.markup,p=f.resize,w=f.dirty,o=f.width,s=f.height,t;i.ref.image.crop=r;var h={x:0,y:0,width:o,height:s,center:{x:.5*o,y:.5*s}},u={width:i.ref.image.width,height:i.ref.image.height},c={x:r.center.x*u.width,y:r.center.y*u.height},l={x:h.center.x-u.width*r.center.x,y:h.center.y-u.height*r.center.y},a=2*Math.PI+r.rotation%(2*Math.PI),b=r.aspectRatio||u.height/u.width,k=void 0===r.scaleToFit||r.scaleToFit,nt=d(u,g(h,b),a,k?r.center:{x:.5,y:.5}),v=r.zoom*nt;if(e&&e.length?(i.ref.createMarkup(),i.ref.markup.width=o,i.ref.markup.height=s,i.ref.markup.resize=p,i.ref.markup.dirty=w,i.ref.markup.markup=e,i.ref.markup.crop=pt(u,r)):i.ref.markup&&i.ref.destroyMarkup(),t=i.ref.image,y)return t.originX=null,t.originY=null,t.translateX=null,t.translateY=null,t.rotateZ=null,t.scaleX=null,void(t.scaleY=null);t.originX=c.x;t.originY=c.y;t.translateX=l.x;t.translateY=l.y;t.rotateZ=a;t.scaleX=v;t.scaleY=v}})},c='<svg width="500" height="200" viewBox="0 0 500 200" preserveAspectRatio="none">\n    <defs>\n        <radialGradient id="gradient-__UID__" cx=".5" cy="1.25" r="1.15">\n            <stop offset=\'50%\' stop-color=\'#000000\'/>\n            <stop offset=\'56%\' stop-color=\'#0a0a0a\'/>\n            <stop offset=\'63%\' stop-color=\'#262626\'/>\n            <stop offset=\'69%\' stop-color=\'#4f4f4f\'/>\n            <stop offset=\'75%\' stop-color=\'#808080\'/>\n            <stop offset=\'81%\' stop-color=\'#b1b1b1\'/>\n            <stop offset=\'88%\' stop-color=\'#dadada\'/>\n            <stop offset=\'94%\' stop-color=\'#f6f6f6\'/>\n            <stop offset=\'100%\' stop-color=\'#ffffff\'/>\n        <\/radialGradient>\n        <mask id="mask-__UID__">\n            <rect x="0" y="0" width="500" height="200" fill="url(#gradient-__UID__)"><\/rect>\n        <\/mask>\n    <\/defs>\n    <rect x="0" width="500" height="200" fill="currentColor" mask="url(#mask-__UID__)"><\/rect>\n<\/svg>',nt=!1,tt=0,bt=function(){self.onmessage=function(n){createImageBitmap(n.data.message.file).then(function(t){self.postMessage({id:n.data.id,message:t},[t])})}},kt=function(){self.onmessage=function(n){for(var s=n.data.message.imageData,t=n.data.message.colorMatrix,r=s.data,h=r.length,c=t[0],l=t[1],a=t[2],v=t[3],y=t[4],p=t[5],w=t[6],b=t[7],k=t[8],d=t[9],g=t[10],nt=t[11],tt=t[12],it=t[13],rt=t[14],ut=t[15],ft=t[16],et=t[17],ot=t[18],st=t[19],i=0,u=0,f=0,e=0,o=0;i<h;i+=4)u=r[i]/255,f=r[i+1]/255,e=r[i+2]/255,o=r[i+3]/255,r[i]=Math.max(0,Math.min(255*(u*c+f*l+e*a+o*v+y),255)),r[i+1]=Math.max(0,Math.min(255*(u*p+f*w+e*b+o*k+d),255)),r[i+2]=Math.max(0,Math.min(255*(u*g+f*nt+e*tt+o*it+rt),255)),r[i+3]=Math.max(0,Math.min(255*(u*ut+f*ft+e*et+o*ot+st),255));self.postMessage({id:n.data.id,message:s},[s.data.buffer])}},dt={1:function(){return[1,0,0,1,0,0]},2:function(n){return[-1,0,0,1,n,0]},3:function(n,t){return[-1,0,0,-1,n,t]},4:function(n,t){return[1,0,0,-1,0,t]},5:function(){return[0,1,1,0,0,0]},6:function(n,t){return[0,1,-1,0,t,0]},7:function(n,t){return[0,-1,-1,0,t,n]},8:function(n){return[0,-1,1,0,0,n]}},gt=function(n,t,i,r){var u,f,e;return t=Math.round(t),i=Math.round(i),u=document.createElement("canvas"),u.width=t,u.height=i,f=u.getContext("2d"),r>=5&&r<=8&&(e=[i,t],t=e[0],i=e[1]),function(n,t,i,r){-1!==r&&n.transform.apply(n,dt[r](t,i))}(f,t,i,r),f.drawImage(n,0,0,t,i),u},it=function(n){return/^image/.test(n.type)&&!/svg/.test(n.type)},ni=function(n){var s=Math.min(10/n.width,10/n.height),u=document.createElement("canvas"),h=u.getContext("2d"),c=u.width=Math.ceil(n.width*s),a=u.height=Math.ceil(n.height*s),t;h.drawImage(n,0,0,c,a);t=null;try{t=h.getImageData(0,0,c,a).data}catch(n){return null}for(var r=t.length,f=0,e=0,o=0,i=0;i<r;i+=4)f+=t[i]*t[i],e+=t[i+1]*t[i+1],o+=t[i+2]*t[i+2];return{r:f=l(f,r),g:e=l(e,r),b:o=l(o,r)}},l=function(n,t){return Math.floor(Math.sqrt(n/(t/4)))},ti=function(n){var t=n.utils.createView({name:"image-preview-overlay",tag:"div",ignoreRect:!0,create:function(n){var t=n.root,i=n.props;!nt&&document.querySelector("base")&&(c=c.replace(/url\(\#/g,"url("+window.location.href.replace(window.location.hash,"")+"#"),nt=!0);tt++;t.element.classList.add("filepond--image-preview-overlay-".concat(i.status));t.element.innerHTML=c.replace(/__UID__/g,tt)},mixins:{styles:["opacity"],animations:{opacity:{type:"spring",mass:25}}}}),s=function(n){return n.utils.createView({name:"image-preview",tag:"div",ignoreRect:!0,mixins:{apis:["image","crop","markup","resize","dirty","background"],styles:["translateY","scaleX","scaleY","opacity"],animations:{scaleX:r,scaleY:r,translateY:r,opacity:{type:"tween",duration:400}}},create:function(t){var r=t.root,i=t.props;r.ref.clip=r.appendChildView(r.createChildView(wt(n),{id:i.id,image:i.image,crop:i.crop,markup:i.markup,resize:i.resize,dirty:i.dirty,background:i.background}))},write:function(n){var t=n.root,u=n.props,l=n.shouldOptimize,i=t.ref.clip,a=u.image,v=u.crop,y=u.markup,p=u.resize,w=u.dirty,r,e;if(i.crop=v,i.markup=y,i.resize=p,i.dirty=w,i.opacity=l?0:1,!l&&!t.rect.element.hidden){var b=a.height/a.width,f=v.aspectRatio||b,o=t.rect.inner.width,s=t.rect.inner.height,h=t.query("GET_IMAGE_PREVIEW_HEIGHT"),k=t.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),d=t.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),c=t.query("GET_PANEL_ASPECT_RATIO"),g=t.query("GET_ALLOW_MULTIPLE");c&&!g&&(h=o*c,f=c);r=null!==h?h:Math.max(k,Math.min(o*f,d));e=r/f;e>o&&(r=(e=o)*f);r>s&&(r=s,e=s/f);i.width=e;i.height=r}}})}(n),u=n.utils.createWorker,f=function(n,t,i){return new Promise(function(r){var f,e;if(n.ref.imageData||(n.ref.imageData=i.getContext("2d").getImageData(0,0,i.width,i.height)),f=function(n){var t;try{t=new ImageData(n.width,n.height)}catch(i){t=document.createElement("canvas").getContext("2d").createImageData(n.width,n.height)}return t.data.set(new Uint8ClampedArray(n.data)),t}(n.ref.imageData),!t||20!==t.length)return i.getContext("2d").putImageData(f,0,0),r();e=u(kt);e.post({imageData:f,colorMatrix:t},function(n){i.getContext("2d").putImageData(n,0,0);e.terminate();r()},[f.data.buffer])})},e=function(n){var t=n.root,h=n.props,c=n.image,u=h.id,r=t.query("GET_ITEM",{id:u}),i;if(r){var f,e,l=r.getMetadata("crop")||{center:{x:.5,y:.5},flip:{horizontal:!1,vertical:!1},zoom:1,rotation:0,aspectRatio:null},a=t.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),o=!1;t.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(f=r.getMetadata("markup")||[],e=r.getMetadata("resize"),o=!0);i=t.appendChildView(t.createChildView(s,{id:u,image:c,crop:l,resize:e,markup:f,dirty:o,background:a,opacity:0,scaleX:1.15,scaleY:1.15,translateY:15}),t.childViews.length);t.ref.images.push(i);i.opacity=1;i.scaleX=1;i.scaleY=1;i.translateY=0;setTimeout(function(){t.dispatch("DID_IMAGE_PREVIEW_SHOW",{id:u})},250)}},o=function(n){var t=n.root;t.ref.overlayShadow.opacity=1;t.ref.overlayError.opacity=0;t.ref.overlaySuccess.opacity=0},i=function(n){var t=n.root;t.ref.overlayShadow.opacity=.25;t.ref.overlayError.opacity=1};return n.utils.createView({name:"image-preview-wrapper",create:function(n){var i=n.root;i.ref.images=[];i.ref.imageData=null;i.ref.imageViewBin=[];i.ref.overlayShadow=i.appendChildView(i.createChildView(t,{opacity:0,status:"idle"}));i.ref.overlaySuccess=i.appendChildView(i.createChildView(t,{opacity:0,status:"success"}));i.ref.overlayError=i.appendChildView(i.createChildView(t,{opacity:0,status:"failure"}))},styles:["height"],apis:["height"],destroy:function(n){n.root.ref.images.forEach(function(n){n.image.width=1;n.image.height=1})},didWriteView:function(n){n.root.ref.images.forEach(function(n){n.dirty=!1})},write:n.utils.createRoute({DID_IMAGE_PREVIEW_DRAW:function(n){var i=n.root,t=i.ref.images[i.ref.images.length-1];t.translateY=0;t.scaleX=1;t.scaleY=1;t.opacity=1},DID_IMAGE_PREVIEW_CONTAINER_CREATE:function(n){var i=n.root,r=n.props.id,u=i.query("GET_ITEM",r),f,e,t,o;u&&(o=URL.createObjectURL(u.file),f=o,e=function(n,t){i.dispatch("DID_IMAGE_PREVIEW_CALCULATE_SIZE",{id:r,width:n,height:t})},(t=new Image).onload=function(){var n=t.naturalWidth,i=t.naturalHeight;t=null;e(n,i)},t.src=f)},DID_FINISH_CALCULATE_PREVIEWSIZE:function(n){var t=n.root,o=n.props,v=o.id,i=t.query("GET_ITEM",v),r;if(i){var s,h,c=URL.createObjectURL(i.file),l=function(){var n;(n=c,new Promise(function(t,i){var r=new Image;r.crossOrigin="Anonymous";r.onload=function(){t(r)};r.onerror=function(n){i(n)};r.src=n})).then(a)},a=function(n){var a;URL.revokeObjectURL(c);var l=(i.getMetadata("exif")||{}).orientation||-1,r=n.width,u=n.height;l>=5&&l<=8&&(a=[u,r],r=a[0],u=a[1]);var d=Math.max(1,.75*window.devicePixelRatio),y=t.query("GET_IMAGE_PREVIEW_ZOOM_FACTOR")*d,s=u/r,p=t.rect.element.width,g=t.rect.element.height,h=p,v=h*s;s>1?v=(h=Math.min(r,p*y))*s:h=(v=Math.min(u,g*y))/s;var w=gt(n,h,v,l),b=function(){var r=t.query("GET_IMAGE_PREVIEW_CALCULATE_AVERAGE_IMAGE_COLOR")?ni(data):null;i.setMetadata("color",r,!0);"close"in n&&n.close();t.ref.overlayShadow.opacity=1;e({root:t,props:o,image:w})},k=i.getMetadata("filter");k?f(t,k,w).then(b):b()};(s=i.file,!(((h=window.navigator.userAgent.match(/Firefox\/([0-9]+)\./))?parseInt(h[1]):null)<=58)&&"createImageBitmap"in window&&it(s))?(r=u(bt),r.post({file:i.file},function(n){r.terminate();n?a(n):l()})):l()}},DID_UPDATE_ITEM_METADATA:function(n){var t=n.root,o=n.props,r=n.action,s,h,c,l,a,u,i;/crop|filter|markup|resize/.test(r.change.key)&&t.ref.images.length&&(s=t.query("GET_ITEM",{id:o.id}),s&&(/filter/.test(r.change.key)?(h=t.ref.images[t.ref.images.length-1],f(t,r.change.value,h.image)):/crop|markup|resize/.test(r.change.key)&&(c=s.getMetadata("crop"),l=t.ref.images[t.ref.images.length-1],Math.abs(c.aspectRatio-l.crop.aspectRatio)>1e-5?(a=function(n){var i=n.root,t=i.ref.images.shift();return t.opacity=0,t.translateY=-15,i.ref.imageViewBin.push(t),t}({root:t}),e({root:t,props:o,image:(u=a.image,(i=i||document.createElement("canvas")).width=u.width,i.height=u.height,i.getContext("2d").drawImage(u,0,0),i)})):!function(n){var i=n.root,u=n.props,r=i.query("GET_ITEM",{id:u.id}),t;r&&(t=i.ref.images[i.ref.images.length-1],t.crop=r.getMetadata("crop"),t.background=i.query("GET_IMAGE_TRANSFORM_CANVAS_BACKGROUND_COLOR"),i.query("GET_IMAGE_PREVIEW_MARKUP_SHOW")&&(t.dirty=!0,t.resize=r.getMetadata("resize"),t.markup=r.getMetadata("markup")))}({root:t,props:o}))))},DID_THROW_ITEM_LOAD_ERROR:i,DID_THROW_ITEM_PROCESSING_ERROR:i,DID_THROW_ITEM_INVALID:i,DID_COMPLETE_ITEM_PROCESSING:function(n){var t=n.root;t.ref.overlayShadow.opacity=.25;t.ref.overlaySuccess.opacity=1},DID_START_ITEM_PROCESSING:o,DID_REVERT_ITEM_PROCESSING:o},function(n){var t=n.root,i=t.ref.imageViewBin.filter(function(n){return 0===n.opacity});t.ref.imageViewBin=t.ref.imageViewBin.filter(function(n){return n.opacity>0});i.forEach(function(n){return function(n,t){n.removeChildView(t);t.image.width=1;t.image.height=1;t._destroy()}(t,n)});i.length=0})})},rt=function(n){var r=n.addFilter,i=n.utils,t=i.Type,u=i.createRoute,f=i.isFile,e=ti(n);return r("CREATE_VIEW",function(n){var o=n.is,i=n.view,t=n.query,r;o("file")&&t("GET_ALLOW_IMAGE_PREVIEW")&&(r=function(n){n.root.ref.shouldRescale=!0},i.registerWriter(u({DID_RESIZE_ROOT:r,DID_STOP_RESIZE:r,DID_LOAD_ITEM:function(n){var u=n.root,s=n.props.id,r=t("GET_ITEM",s),o,h,c,l,a;r&&f(r.file)&&!r.archived&&(o=r.file,function(n){return/^image/.test(n.type)}(o)&&t("GET_IMAGE_PREVIEW_FILTER_ITEM")(r)&&(h="createImageBitmap"in(window||{}),c=t("GET_IMAGE_PREVIEW_MAX_FILE_SIZE"),!h&&c&&o.size>c||(u.ref.imagePreview=i.appendChildView(i.createChildView(e,{id:s})),l=u.query("GET_IMAGE_PREVIEW_HEIGHT"),l&&u.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:r.id,height:l}),a=!h&&o.size>t("GET_IMAGE_PREVIEW_MAX_INSTANT_PREVIEW_FILE_SIZE"),u.dispatch("DID_IMAGE_PREVIEW_CONTAINER_CREATE",{id:s},a))))},DID_IMAGE_PREVIEW_CALCULATE_SIZE:function(n){var t=n.root,i=n.action;t.ref.imageWidth=i.width;t.ref.imageHeight=i.height;t.ref.shouldRescale=!0;t.ref.shouldDrawPreview=!0;t.dispatch("KICK")},DID_UPDATE_ITEM_METADATA:function(n){var t=n.root;"crop"===n.action.change.key&&(t.ref.shouldRescale=!0)}},function(n){var t=n.root,i=n.props;t.ref.imagePreview&&(t.rect.element.hidden||(t.ref.shouldRescale&&(!function(n,t){var o,i,f,e;if(n.ref.imagePreview&&(o=t.id,i=n.query("GET_ITEM",{id:o}),i)){var c=n.query("GET_PANEL_ASPECT_RATIO"),l=n.query("GET_ITEM_PANEL_ASPECT_RATIO"),a=n.query("GET_IMAGE_PREVIEW_HEIGHT");if(!(c||l||a)){var s=n.ref,r=s.imageWidth,u=s.imageHeight;if(r&&u){var v=n.query("GET_IMAGE_PREVIEW_MIN_HEIGHT"),y=n.query("GET_IMAGE_PREVIEW_MAX_HEIGHT"),h=(i.getMetadata("exif")||{}).orientation||-1;h>=5&&h<=8&&(f=[u,r],r=f[0],u=f[1]);(!it(i.file)||n.query("GET_IMAGE_PREVIEW_UPSCALE"))&&(e=2048/r,r*=e,u*=e);var p=u/r,w=(i.getMetadata("crop")||{}).aspectRatio||p,b=Math.max(v,Math.min(u,y)),k=n.rect.element.width,d=Math.min(k*w,b);n.dispatch("DID_UPDATE_PANEL_HEIGHT",{id:i.id,height:d})}}}}(t,i),t.ref.shouldRescale=!1),t.ref.shouldDrawPreview&&(requestAnimationFrame(function(){t.dispatch("DID_FINISH_CALCULATE_PREVIEWSIZE",{id:i.id})}),t.ref.shouldDrawPreview=!1)))})))}),{options:{allowImagePreview:[!0,t.BOOLEAN],imagePreviewFilterItem:[function(){return!0},t.FUNCTION],imagePreviewHeight:[null,t.INT],imagePreviewMinHeight:[44,t.INT],imagePreviewMaxHeight:[256,t.INT],imagePreviewMaxFileSize:[null,t.INT],imagePreviewZoomFactor:[2,t.INT],imagePreviewUpscale:[!1,t.BOOLEAN],imagePreviewMaxInstantPreviewFileSize:[1e6,t.INT],imagePreviewTransparencyIndicator:[null,t.STRING],imagePreviewCalculateAverageImageColor:[!1,t.BOOLEAN],imagePreviewMarkupShow:[!0,t.BOOLEAN],imagePreviewMarkupFilter:[function(){return!0},t.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:rt})),rt}),function(n){"use strict";n.fn.fitVids=function(t){var i={customSelector:null,ignore:null};if(!document.getElementById("fit-vids-style")){var u=document.head||document.getElementsByTagName("head")[0],r=document.createElement("div");r.innerHTML='<p>x<\/p><style id="fit-vids-style">.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}<\/style>';u.appendChild(r.childNodes[1])}return t&&n.extend(i,t),this.each(function(){var u=['iframe[src*="player.vimeo.com"]','iframe[src*="youtube.com"]','iframe[src*="youtube-nocookie.com"]','iframe[src*="kickstarter.com"][src*="video.html"]',"object","embed"],r,t;i.customSelector&&u.push(i.customSelector);r=".fitvidsignore";i.ignore&&(r=r+", "+i.ignore);t=n(this).find(u.join(","));t=t.not("object object");t=t.not(r);t.each(function(t){var i=n(this),u;if(!(i.parents(r).length>0)&&(this.tagName.toLowerCase()!=="embed"||!i.parent("object").length)&&!i.parent(".fluid-width-video-wrapper").length){i.css("height")||i.css("width")||!(isNaN(i.attr("height"))||isNaN(i.attr("width")))||(i.attr("height",9),i.attr("width",16));var f=this.tagName.toLowerCase()==="object"||i.attr("height")&&!isNaN(parseInt(i.attr("height"),10))?parseInt(i.attr("height"),10):i.height(),e=isNaN(parseInt(i.attr("width"),10))?i.width():parseInt(i.attr("width"),10),o=f/e;i.attr("id")||(u="fitvid"+t,i.attr("id",u));i.wrap('<div class="fluid-width-video-wrapper"><\/div>').parent(".fluid-width-video-wrapper").css("padding-top",o*100+"%");i.removeAttr("height").removeAttr("width")}})})}}(window.jQuery||window.Zepto),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(window.jQuery||window.Zepto)}(function(n){var c="Close",lt="BeforeClose",bt="AfterClose",kt="BeforeAppend",d="MarkupParse",g="Open",at="Change",nt="mfp",u="."+nt,tt="mfp-ready",vt="mfp-removing",it="mfp-prevent-close",t,v=function(){},rt=!!window.jQuery,ut,o=n(window),f,y,s,yt,r=function(n,i){t.ev.on(nt+n+u,i)},l=function(t,i,r,u){var f=document.createElement("div");return f.className="mfp-"+t,r&&(f.innerHTML=r),u?i&&i.appendChild(f):(f=n(f),i&&f.appendTo(i)),f},i=function(i,r){t.ev.triggerHandler(nt+i,r);t.st.callbacks&&(i=i.charAt(0).toLowerCase()+i.slice(1),t.st.callbacks[i]&&t.st.callbacks[i].apply(t,n.isArray(r)?r:[r]))},ft=function(i){return i===yt&&t.currTemplate.closeBtn||(t.currTemplate.closeBtn=n(t.st.closeMarkup.replace("%title%",t.st.tClose)),yt=i),t.currTemplate.closeBtn},et=function(){n.magnificPopup.instance||(t=new v,t.init(),n.magnificPopup.instance=t)},dt=function(){var n=document.createElement("p").style,t=["ms","O","Moz","Webkit"];if(n.transition!==undefined)return!0;while(t.length)if(t.pop()+"Transition"in n)return!0;return!1},p,a,w,b,ot,e,pt,st,wt,k,ct;v.prototype={constructor:v,init:function(){var i=navigator.appVersion;t.isLowIE=t.isIE8=document.all&&!document.addEventListener;t.isAndroid=/android/gi.test(i);t.isIOS=/iphone|ipad|ipod/gi.test(i);t.supportsTransition=dt();t.probablyMobile=t.isAndroid||t.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent);f=n(document);t.popupsCache={}},open:function(e){var h,p,c,w,a,b,v,k,y;if(e.isObj===!1){for(t.items=e.items.toArray(),t.index=0,p=e.items,h=0;h<p.length;h++)if(c=p[h],c.parsed&&(c=c.el[0]),c===e.el[0]){t.index=h;break}}else t.items=n.isArray(e.items)?e.items:[e.items],t.index=e.index||0;if(t.isOpen){t.updateItemHTML();return}for(t.types=[],s="",t.ev=e.mainEl&&e.mainEl.length?e.mainEl.eq(0):f,e.key?(t.popupsCache[e.key]||(t.popupsCache[e.key]={}),t.currTemplate=t.popupsCache[e.key]):t.currTemplate={},t.st=n.extend(!0,{},n.magnificPopup.defaults,e),t.fixedContentPos=t.st.fixedContentPos==="auto"?!t.probablyMobile:t.st.fixedContentPos,t.st.modal&&(t.st.closeOnContentClick=!1,t.st.closeOnBgClick=!1,t.st.showCloseBtn=!1,t.st.enableEscapeKey=!1),t.bgOverlay||(t.bgOverlay=l("bg").on("click"+u,function(){t.close()}),t.wrap=l("wrap").attr("tabindex",-1).on("click"+u,function(n){t._checkIfClose(n.target)&&t.close()}),t.container=l("container",t.wrap)),t.contentContainer=l("content"),t.st.preloader&&(t.preloader=l("preloader",t.container,t.st.tLoading)),w=n.magnificPopup.modules,h=0;h<w.length;h++)a=w[h],a=a.charAt(0).toUpperCase()+a.slice(1),t["init"+a].call(t);return i("BeforeOpen"),t.st.showCloseBtn&&(t.st.closeBtnInside?(r(d,function(n,t,i,r){i.close_replaceWith=ft(r.type)}),s+=" mfp-close-btn-in"):t.wrap.append(ft())),t.st.alignTop&&(s+=" mfp-align-top"),t.fixedContentPos?t.wrap.css({overflow:t.st.overflowY,overflowX:"hidden",overflowY:t.st.overflowY}):t.wrap.css({top:o.scrollTop(),position:"absolute"}),(t.st.fixedBgPos===!1||t.st.fixedBgPos==="auto"&&!t.fixedContentPos)&&t.bgOverlay.css({height:f.height(),position:"absolute"}),t.st.enableEscapeKey&&f.on("keyup"+u,function(n){n.keyCode===27&&t.close()}),o.on("resize"+u,function(){t.updateSize()}),t.st.closeOnContentClick||(s+=" mfp-auto-cursor"),s&&t.wrap.addClass(s),b=t.wH=o.height(),v={},t.fixedContentPos&&t._hasScrollBar(b)&&(k=t._getScrollbarSize(),k&&(v.marginRight=k)),t.fixedContentPos&&(t.isIE7?n("body, html").css("overflow","hidden"):v.overflow="hidden"),y=t.st.mainClass,t.isIE7&&(y+=" mfp-ie7"),y&&t._addClassToMFP(y),t.updateItemHTML(),i("BuildControls"),n("html").css(v),t.bgOverlay.add(t.wrap).prependTo(t.st.prependTo||n(document.body)),t._lastFocusedEl=document.activeElement,setTimeout(function(){t.content?(t._addClassToMFP(tt),t._setFocus()):t.bgOverlay.addClass(tt);f.on("focusin"+u,t._onFocusIn)},16),t.isOpen=!0,t.updateSize(b),i(g),e},close:function(){t.isOpen&&(i(lt),t.isOpen=!1,t.st.removalDelay&&!t.isLowIE&&t.supportsTransition?(t._addClassToMFP(vt),setTimeout(function(){t._close()},t.st.removalDelay)):t._close())},_close:function(){var r,e;i(c);r=vt+" "+tt+" ";t.bgOverlay.detach();t.wrap.detach();t.container.empty();t.st.mainClass&&(r+=t.st.mainClass+" ");t._removeClassFromMFP(r);t.fixedContentPos&&(e={marginRight:""},t.isIE7?n("body, html").css("overflow",""):e.overflow="",n("html").css(e));f.off("keyup"+u+" focusin"+u);t.ev.off(u);t.wrap.attr("class","mfp-wrap").removeAttr("style");t.bgOverlay.attr("class","mfp-bg");t.container.attr("class","mfp-container");t.st.showCloseBtn&&(!t.st.closeBtnInside||t.currTemplate[t.currItem.type]===!0)&&t.currTemplate.closeBtn&&t.currTemplate.closeBtn.detach();t.st.autoFocusLast&&t._lastFocusedEl&&n(t._lastFocusedEl).focus();t.currItem=null;t.content=null;t.currTemplate=null;t.prevHeight=0;i(bt)},updateSize:function(n){if(t.isIOS){var u=document.documentElement.clientWidth/window.innerWidth,r=window.innerHeight*u;t.wrap.css("height",r);t.wH=r}else t.wH=n||o.height();t.fixedContentPos||t.wrap.css("height",t.wH);i("Resize")},updateItemHTML:function(){var u=t.items[t.index],r,f,e;t.contentContainer.detach();t.content&&t.content.detach();u.parsed||(u=t.parseEl(t.index));r=u.type;i("BeforeChange",[t.currItem?t.currItem.type:"",r]);t.currItem=u;t.currTemplate[r]||(f=t.st[r]?t.st[r].markup:!1,i("FirstMarkupParse",f),t.currTemplate[r]=f?n(f):!0);y&&y!==u.type&&t.container.removeClass("mfp-"+y+"-holder");e=t["get"+r.charAt(0).toUpperCase()+r.slice(1)](u,t.currTemplate[r]);t.appendContent(e,r);u.preloaded=!0;i(at,u);y=u.type;t.container.prepend(t.contentContainer);i("AfterChange")},appendContent:function(n,r){t.content=n;n?t.st.showCloseBtn&&t.st.closeBtnInside&&t.currTemplate[r]===!0?t.content.find(".mfp-close").length||t.content.append(ft()):t.content=n:t.content="";i(kt);t.container.addClass("mfp-"+r+"-holder");t.contentContainer.append(t.content)},parseEl:function(r){var u=t.items[r],o,e,f;if(u.tagName?u={el:n(u)}:(o=u.type,u={data:u,src:u.src}),u.el){for(e=t.types,f=0;f<e.length;f++)if(u.el.hasClass("mfp-"+e[f])){o=e[f];break}u.src=u.el.attr("data-mfp-src");u.src||(u.src=u.el.attr("href"))}return u.type=o||t.st.type||"inline",u.index=r,u.parsed=!0,t.items[r]=u,i("ElementParse",u),t.items[r]},addGroup:function(n,i){var u=function(r){r.mfpEl=this;t._openClick(r,n,i)},r;i||(i={});r="click.magnificPopup";i.mainEl=n;i.items?(i.isObj=!0,n.off(r).on(r,u)):(i.isObj=!1,i.delegate?n.off(r).on(r,i.delegate,u):(i.items=n,n.off(r).on(r,u)))},_openClick:function(i,r,u){var e=u.midClick!==undefined?u.midClick:n.magnificPopup.defaults.midClick,f;if(e||!(i.which===2||i.ctrlKey||i.metaKey||i.altKey||i.shiftKey)){if(f=u.disableOn!==undefined?u.disableOn:n.magnificPopup.defaults.disableOn,f)if(n.isFunction(f)){if(!f.call(t))return!0}else if(o.width()<f)return!0;i.type&&(i.preventDefault(),t.isOpen&&i.stopPropagation());u.el=n(i.mfpEl);u.delegate&&(u.items=r.find(u.delegate));t.open(u)}},updateStatus:function(n,r){if(t.preloader){ut!==n&&t.container.removeClass("mfp-s-"+ut);r||n!=="loading"||(r=t.st.tLoading);var u={status:n,text:r};i("UpdateStatus",u);n=u.status;r=u.text;t.preloader.html(r);t.preloader.find("a").on("click",function(n){n.stopImmediatePropagation()});t.container.addClass("mfp-s-"+n);ut=n}},_checkIfClose:function(i){if(!n(i).hasClass(it)){var r=t.st.closeOnContentClick,u=t.st.closeOnBgClick;if(r&&u||!t.content||n(i).hasClass("mfp-close")||t.preloader&&i===t.preloader[0])return!0;if(i===t.content[0]||n.contains(t.content[0],i)){if(r)return!0}else if(u&&n.contains(document,i))return!0;return!1}},_addClassToMFP:function(n){t.bgOverlay.addClass(n);t.wrap.addClass(n)},_removeClassFromMFP:function(n){this.bgOverlay.removeClass(n);t.wrap.removeClass(n)},_hasScrollBar:function(n){return(t.isIE7?f.height():document.body.scrollHeight)>(n||o.height())},_setFocus:function(){(t.st.focus?t.content.find(t.st.focus).eq(0):t.wrap).focus()},_onFocusIn:function(i){if(i.target!==t.wrap[0]&&!n.contains(t.wrap[0],i.target))return t._setFocus(),!1},_parseMarkup:function(t,r,f){var e;f.data&&(r=n.extend(f.data,r));i(d,[t,r,f]);n.each(r,function(i,r){var f,o;if(r===undefined||r===!1)return!0;e=i.split("_");e.length>1?(f=t.find(u+"-"+e[0]),f.length>0&&(o=e[1],o==="replaceWith"?f[0]!==r[0]&&f.replaceWith(r):o==="img"?f.is("img")?f.attr("src",r):f.replaceWith(n("<img>").attr("src",r).attr("class",f.attr("class"))):f.attr(e[1],r))):t.find(u+"-"+i).html(r)})},_getScrollbarSize:function(){if(t.scrollbarSize===undefined){var n=document.createElement("div");n.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;";document.body.appendChild(n);t.scrollbarSize=n.offsetWidth-n.clientWidth;document.body.removeChild(n)}return t.scrollbarSize}};n.magnificPopup={instance:null,proto:v.prototype,modules:[],open:function(t,i){return et(),t=t?n.extend(!0,{},t):{},t.isObj=!0,t.index=i||0,this.instance.open(t)},close:function(){return n.magnificPopup.instance&&n.magnificPopup.instance.close()},registerModule:function(t,i){i.options&&(n.magnificPopup.defaults[t]=i.options);n.extend(this.proto,i.proto);this.modules.push(t)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&#215;<\/button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}};n.fn.magnificPopup=function(i){var r,u,f,e;return et(),r=n(this),typeof i=="string"?i==="open"?(f=rt?r.data("magnificPopup"):r[0].magnificPopup,e=parseInt(arguments[1],10)||0,f.items?u=f.items[e]:(u=r,f.delegate&&(u=u.find(f.delegate)),u=u.eq(e)),t._openClick({mfpEl:u},r,f)):t.isOpen&&t[i].apply(t,Array.prototype.slice.call(arguments,1)):(i=n.extend(!0,{},i),rt?r.data("magnificPopup",i):r[0].magnificPopup=i,t.addGroup(r,i)),r};p="inline";ot=function(){b&&(w.after(b.addClass(a)).detach(),b=null)};n.magnificPopup.registerModule(p,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){t.types.push(p);r(c+"."+p,function(){ot()})},getInline:function(i,r){var f,u,e;return(ot(),i.src)?(f=t.st.inline,u=n(i.src),u.length?(e=u[0].parentNode,e&&e.tagName&&(w||(a=f.hiddenClass,w=l(a),a="mfp-"+a),b=u.after(w).detach().removeClass(a)),t.updateStatus("ready")):(t.updateStatus("error",f.tNotFound),u=n("<div>")),i.inlineElement=u,u):(t.updateStatus("ready"),t._parseMarkup(r,{},i),r)}}});pt=function(i){if(i.data&&i.data.title!==undefined)return i.data.title;var r=t.st.image.titleSrc;if(r){if(n.isFunction(r))return r.call(t,i);if(i.el)return i.el.attr(r)||""}return""};n.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"><\/div><figure><div class="mfp-img"><\/div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"><\/div><div class="mfp-counter"><\/div><\/div><\/figcaption><\/figure><\/div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image<\/a> could not be loaded.'},proto:{initImage:function(){var i=t.st.image,f=".image";t.types.push("image");r(g+f,function(){t.currItem.type==="image"&&i.cursor&&n(document.body).addClass(i.cursor)});r(c+f,function(){i.cursor&&n(document.body).removeClass(i.cursor);o.off("resize"+u)});r("Resize"+f,t.resizeImage);t.isLowIE&&r("AfterChange",t.resizeImage)},resizeImage:function(){var n=t.currItem,i;n&&n.img&&t.st.image.verticalFit&&(i=0,t.isLowIE&&(i=parseInt(n.img.css("padding-top"),10)+parseInt(n.img.css("padding-bottom"),10)),n.img.css("max-height",t.wH-i))},_onImageHasSize:function(n){n.img&&(n.hasSize=!0,e&&clearInterval(e),n.isCheckingImgSize=!1,i("ImageHasSize",n),n.imgHidden&&(t.content&&t.content.removeClass("mfp-loading"),n.imgHidden=!1))},findImageSize:function(n){var i=0,u=n.img[0],r=function(f){e&&clearInterval(e);e=setInterval(function(){if(u.naturalWidth>0){t._onImageHasSize(n);return}i>200&&clearInterval(e);i++;i===3?r(10):i===40?r(50):i===100&&r(500)},f)};r(1)},getImage:function(r,u){var o=0,s=function(){r&&(r.img[0].complete?(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("ready")),r.hasSize=!0,r.loaded=!0,i("ImageLoadComplete")):(o++,o<200?setTimeout(s,100):h()))},h=function(){r&&(r.img.off(".mfploader"),r===t.currItem&&(t._onImageHasSize(r),t.updateStatus("error",c.tError.replace("%url%",r.src))),r.hasSize=!0,r.loaded=!0,r.loadError=!0)},c=t.st.image,l=u.find(".mfp-img"),f;return l.length&&(f=document.createElement("img"),f.className="mfp-img",r.el&&r.el.find("img").length&&(f.alt=r.el.find("img").attr("alt")),r.img=n(f).on("load.mfploader",s).on("error.mfploader",h),f.src=r.src,l.is("img")&&(r.img=r.img.clone()),f=r.img[0],f.naturalWidth>0?r.hasSize=!0:f.width||(r.hasSize=!1)),t._parseMarkup(u,{title:pt(r),img_replaceWith:r.img},r),t.resizeImage(),r.hasSize?(e&&clearInterval(e),r.loadError?(u.addClass("mfp-loading"),t.updateStatus("error",c.tError.replace("%url%",r.src))):(u.removeClass("mfp-loading"),t.updateStatus("ready")),u):(t.updateStatus("loading"),r.loading=!0,r.hasSize||(r.imgHidden=!0,u.addClass("mfp-loading"),t.findImageSize(r)),u)}}});wt=function(){return st===undefined&&(st=document.createElement("p").style.MozTransform!==undefined),st};n.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(n){return n.is("img")?n:n.find("img")}},proto:{initZoom:function(){var f=t.st.zoom,o=".zoom",u;if(f.enabled&&t.supportsTransition){var h=f.duration,l=function(n){var r=n.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),u="all "+f.duration/1e3+"s "+f.easing,t={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},i="transition";return t["-webkit-"+i]=t["-moz-"+i]=t["-o-"+i]=t[i]=u,r.css(t),r},s=function(){t.content.css("visibility","visible")},e,n;r("BuildControls"+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.content.css("visibility","hidden"),u=t._getItemToZoom(),!u){s();return}n=l(u);n.css(t._getOffset());t.wrap.append(n);e=setTimeout(function(){n.css(t._getOffset(!0));e=setTimeout(function(){s();setTimeout(function(){n.remove();u=n=null;i("ZoomAnimationEnded")},16)},h)},16)}});r(lt+o,function(){if(t._allowZoom()){if(clearTimeout(e),t.st.removalDelay=h,!u){if(u=t._getItemToZoom(),!u)return;n=l(u)}n.css(t._getOffset(!0));t.wrap.append(n);t.content.css("visibility","hidden");setTimeout(function(){n.css(t._getOffset())},16)}});r(c+o,function(){t._allowZoom()&&(s(),n&&n.remove(),u=null)})}},_allowZoom:function(){return t.currItem.type==="image"},_getItemToZoom:function(){return t.currItem.hasSize?t.currItem.img:!1},_getOffset:function(i){var r,u;r=i?t.currItem.img:t.st.zoom.opener(t.currItem.el||t.currItem);var f=r.offset(),e=parseInt(r.css("padding-top"),10),o=parseInt(r.css("padding-bottom"),10);return f.top-=n(window).scrollTop()-e,u={width:r.width(),height:(rt?r.innerHeight():r[0].offsetHeight)-o-e},wt()?u["-moz-transform"]=u.transform="translate("+f.left+"px,"+f.top+"px)":(u.left=f.left,u.top=f.top),u}}});var h="iframe",gt="//about:blank",ht=function(n){if(t.currTemplate[h]){var i=t.currTemplate[h].find("iframe");i.length&&(n||(i[0].src=gt),t.isIE8&&i.css("display",n?"block":"none"))}};n.magnificPopup.registerModule(h,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"><\/div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen><\/iframe><\/div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){t.types.push(h);r("BeforeChange",function(n,t,i){t!==i&&(t===h?ht():i===h&&ht(!0))});r(c+"."+h,function(){ht()})},getIframe:function(i,r){var u=i.src,f=t.st.iframe,e;return n.each(f.patterns,function(){if(u.indexOf(this.index)>-1)return this.id&&(u=typeof this.id=="string"?u.substr(u.lastIndexOf(this.id)+this.id.length,u.length):this.id.call(this,u)),u=this.src.replace("%id%",u),!1}),e={},f.srcAction&&(e[f.srcAction]=u),t._parseMarkup(r,e,i),t.updateStatus("ready"),r}}});k=function(n){var i=t.items.length;return n>i-1?n-i:n<0?i+n:n};ct=function(n,t,i){return n.replace(/%curr%/gi,t+1).replace(/%total%/gi,i)};n.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"><\/button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var u=t.st.gallery,i=".mfp-gallery";if(t.direction=!0,!u||!u.enabled)return!1;s+=" mfp-gallery";r(g+i,function(){u.navigateByImgClick&&t.wrap.on("click"+i,".mfp-img",function(){if(t.items.length>1)return t.next(),!1});f.on("keydown"+i,function(n){n.keyCode===37?t.prev():n.keyCode===39&&t.next()})});r("UpdateStatus"+i,function(n,i){i.text&&(i.text=ct(i.text,t.currItem.index,t.items.length))});r(d+i,function(n,i,r,f){var e=t.items.length;r.counter=e>1?ct(u.tCounter,f.index,e):""});r("BuildControls"+i,function(){if(t.items.length>1&&u.arrows&&!t.arrowLeft){var i=u.arrowMarkup,r=t.arrowLeft=n(i.replace(/%title%/gi,u.tPrev).replace(/%dir%/gi,"left")).addClass(it),f=t.arrowRight=n(i.replace(/%title%/gi,u.tNext).replace(/%dir%/gi,"right")).addClass(it);r.click(function(){t.prev()});f.click(function(){t.next()});t.container.append(r.add(f))}});r(at+i,function(){t._preloadTimeout&&clearTimeout(t._preloadTimeout);t._preloadTimeout=setTimeout(function(){t.preloadNearbyImages();t._preloadTimeout=null},16)});r(c+i,function(){f.off(i);t.wrap.off("click"+i);t.arrowRight=t.arrowLeft=null})},next:function(){t.direction=!0;t.index=k(t.index+1);t.updateItemHTML()},prev:function(){t.direction=!1;t.index=k(t.index-1);t.updateItemHTML()},goTo:function(n){t.direction=n>=t.index;t.index=n;t.updateItemHTML()},preloadNearbyImages:function(){for(var i=t.st.gallery.preload,r=Math.min(i[0],t.items.length),u=Math.min(i[1],t.items.length),n=1;n<=(t.direction?u:r);n++)t._preloadItem(t.index+n);for(n=1;n<=(t.direction?r:u);n++)t._preloadItem(t.index-n)},_preloadItem:function(r){if(r=k(r),!t.items[r].preloaded){var u=t.items[r];u.parsed||(u=t.parseEl(r));i("LazyLoad",u);u.type==="image"&&(u.img=n('<img class="mfp-img" />').on("load.mfploader",function(){u.hasSize=!0}).on("error.mfploader",function(){u.hasSize=!0;u.loadError=!0;i("LazyLoadError",u)}).attr("src",u.src));u.preloaded=!0}}}});et()}),function(n){var f=-1,r=-1,i=function(n){return parseFloat(n)||0},o=function(t){var f=1,e=n(t),u=null,r=[];return e.each(function(){var t=n(this),e=t.offset().top-i(t.css("margin-top")),o=r.length>0?r[r.length-1]:null;o===null?r.push(t):Math.floor(Math.abs(u-e))<=f?r[r.length-1]=o.add(t):r.push(t);u=e}),r},e=function(t){var i={byRow:!0,property:"height",target:null,remove:!1};return typeof t=="object"?n.extend(i,t):(typeof t=="boolean"?i.byRow=t:t==="remove"&&(i.remove=!0),i)},t=n.fn.matchHeight=function(i){var r=e(i),u;return r.remove?(u=this,this.css(r.property,""),n.each(t._groups,function(n,t){t.elements=t.elements.not(u)}),this):this.length<=1&&!r.target?this:(t._groups.push({elements:this,options:r}),t._apply(this,r),this)},u;t._groups=[];t._throttle=80;t._maintainScroll=!1;t._beforeUpdate=null;t._afterUpdate=null;t._apply=function(r,u){var f=e(u),s=n(r),c=[s],l=n(window).scrollTop(),a=n("html").outerHeight(!0),h=s.parents().filter(":hidden");return h.each(function(){var t=n(this);t.data("style-cache",t.attr("style"))}),h.css("display","block"),f.byRow&&!f.target&&(s.each(function(){var t=n(this),i=t.css("display");i!=="inline-block"&&i!=="inline-flex"&&(i="block");t.data("style-cache",t.attr("style"));t.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px"})}),c=o(s),s.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||"")})),n.each(c,function(t,r){var u=n(r),e=0;if(f.target)e=f.target.outerHeight(!1);else{if(f.byRow&&u.length<=1){u.css(f.property,"");return}u.each(function(){var t=n(this),i=t.css("display"),r;i!=="inline-block"&&i!=="inline-flex"&&(i="block");r={display:i};r[f.property]="";t.css(r);t.outerHeight(!1)>e&&(e=t.outerHeight(!1));t.css("display","")})}u.each(function(){var t=n(this),r=0;f.target&&t.is(f.target)||(t.css("box-sizing")!=="border-box"&&(r+=i(t.css("border-top-width"))+i(t.css("border-bottom-width")),r+=i(t.css("padding-top"))+i(t.css("padding-bottom"))),t.css(f.property,e-r+"px"))})}),h.each(function(){var t=n(this);t.attr("style",t.data("style-cache")||null)}),t._maintainScroll&&n(window).scrollTop(l/a*n("html").outerHeight(!0)),this};t._applyDataApi=function(){var t={};n("[data-match-height], [data-mh]").each(function(){var i=n(this),r=i.attr("data-mh")||i.attr("data-match-height");t[r]=r in t?t[r].add(i):i});n.each(t,function(){this.matchHeight(!0)})};u=function(i){t._beforeUpdate&&t._beforeUpdate(i,t._groups);n.each(t._groups,function(){t._apply(this.elements,this.options)});t._afterUpdate&&t._afterUpdate(i,t._groups)};t._update=function(i,e){if(e&&e.type==="resize"){var o=n(window).width();if(o===f)return;f=o}i?r===-1&&(r=setTimeout(function(){u(e);r=-1},t._throttle)):u(e)};n(t._applyDataApi);n(window).bind("load",function(n){t._update(!1,n)});n(window).bind("resize orientationchange",function(n){t._update(!0,n)})}(jQuery),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports!="undefined"?module.exports=n(require("jquery")):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function i(i,r){var u=this,f;u.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:n(i),appendDots:n(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return n('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3};u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1};n.extend(u,u.initials);u.activeBreakpoint=null;u.animType=null;u.animProp=null;u.breakpoints=[];u.breakpointSettings=[];u.cssTransitions=!1;u.focussed=!1;u.interrupted=!1;u.hidden="hidden";u.paused=!0;u.positionProp=null;u.respondTo=null;u.rowCount=1;u.shouldClick=!0;u.$slider=n(i);u.$slidesCache=null;u.transformType=null;u.transitionType=null;u.visibilityChange="visibilitychange";u.windowWidth=0;u.windowTimer=null;f=n(i).data("slick")||{};u.options=n.extend({},u.defaults,r,f);u.currentSlide=u.options.initialSlide;u.originalSettings=u.options;typeof document.mozHidden!="undefined"?(u.hidden="mozHidden",u.visibilityChange="mozvisibilitychange"):typeof document.webkitHidden!="undefined"&&(u.hidden="webkitHidden",u.visibilityChange="webkitvisibilitychange");u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.changeSlide=n.proxy(u.changeSlide,u);u.clickHandler=n.proxy(u.clickHandler,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.instanceUid=t++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.registerBreakpoints();u.init(!0)}var t=0;return i}();t.prototype.activateADA=function(){var n=this;n.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})};t.prototype.addSlide=t.prototype.slickAdd=function(t,i,r){var u=this;if(typeof i=="boolean")r=i,i=null;else if(i<0||i>=u.slideCount)return!1;u.unload();typeof i=="number"?i===0&&u.$slides.length===0?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("data-slick-index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateHeight=function(){var n=this,t;n.options.slidesToShow===1&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.animate({height:t},n.options.speed))};t.prototype.animateSlide=function(t,i){var u={},r=this;r.animateHeight();r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?(r.options.rtl===!0&&(r.currentLeft=-r.currentLeft),n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){n=Math.ceil(n);r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}})):(r.applyTransition(),t=Math.ceil(t),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.getNavTarget=function(){var i=this,t=i.options.asNavFor;return t&&t!==null&&(t=n(t).not(i.$slider)),t};t.prototype.asNavFor=function(t){var r=this,i=r.getNavTarget();i!==null&&typeof i=="object"&&i.each(function(){var i=n(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)})};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayClear();n.slideCount>n.options.slidesToShow&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var n=this,t=n.currentSlide+n.options.slidesToScroll;n.paused||n.interrupted||n.focussed||(n.options.infinite===!1&&(n.direction===1&&n.currentSlide+1===n.slideCount-1?n.direction=0:n.direction===0&&(t=n.currentSlide-n.options.slidesToScroll,n.currentSlide-1==0&&(n.direction=1))),n.slideHandler(t))};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&(t.$prevArrow=n(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=n(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))};t.prototype.buildDots=function(){var t=this,i,r;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(t.$slider.addClass("slick-dotted"),r=n("<ul />").addClass(t.options.dotsClass),i=0;i<=t.getDotCount();i+=1)r.append(n("<li />").append(t.options.customPaging.call(this,t,i)));t.$dots=r.appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("data-slick-index",t).data("originalStyling",n(i).attr("style")||"")});t.$slider.addClass("slick-slider");t.$slideTrack=t.slideCount===0?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);(t.options.centerMode===!0||t.options.swipeToSlide===!0)&&(t.options.slidesToScroll=1);n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.buildRows=function(){var n=this,t,i,r,f,c,u,e,o,s,h;if(f=document.createDocumentFragment(),u=n.$slider.children(),n.options.rows>1){for(e=n.options.slidesPerRow*n.options.rows,c=Math.ceil(u.length/e),t=0;t<c;t++){for(o=document.createElement("div"),i=0;i<n.options.rows;i++){for(s=document.createElement("div"),r=0;r<n.options.slidesPerRow;r++)h=t*e+(i*n.options.slidesPerRow+r),u.get(h)&&s.appendChild(u.get(h));o.appendChild(s)}f.appendChild(o)}n.$slider.empty().append(f);n.$slider.children().children().children().css({width:100/n.options.slidesPerRow+"%",display:"inline-block"})}};t.prototype.checkResponsive=function(t,i){var r=this,f,u,e,o=!1,s=r.$slider.width(),h=window.innerWidth||n(window).width();if(r.respondTo==="window"?e=h:r.respondTo==="slider"?e=s:r.respondTo==="min"&&(e=Math.min(h,s)),r.options.responsive&&r.options.responsive.length&&r.options.responsive!==null){u=null;for(f in r.breakpoints)r.breakpoints.hasOwnProperty(f)&&(r.originalSettings.mobileFirst===!1?e<r.breakpoints[f]&&(u=r.breakpoints[f]):e>r.breakpoints[f]&&(u=r.breakpoints[f]));u!==null?r.activeBreakpoint!==null?(u!==r.activeBreakpoint||i)&&(r.activeBreakpoint=u,r.breakpointSettings[u]==="unslick"?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):(r.activeBreakpoint=u,r.breakpointSettings[u]==="unslick"?r.unslick(u):(r.options=n.extend({},r.originalSettings,r.breakpointSettings[u]),t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),o=u):r.activeBreakpoint!==null&&(r.activeBreakpoint=null,r.options=r.originalSettings,t===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(t),o=u);t||o===!1||r.$slider.trigger("breakpoint",[r,o])}};t.prototype.changeSlide=function(t,i){var r=this,u=n(t.currentTarget),f,e,o,s;u.is("a")&&t.preventDefault();u.is("li")||(u=u.closest("li"));o=r.slideCount%r.options.slidesToScroll!=0;f=o?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll;switch(t.data.message){case"previous":e=f===0?r.options.slidesToScroll:r.options.slidesToShow-f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-e,!1,i);break;case"next":e=f===0?r.options.slidesToScroll:f;r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+e,!1,i);break;case"index":s=t.data.index===0?0:t.data.index||u.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(s),!1,i);u.children().trigger("focus");break;default:return}};t.prototype.checkNavigable=function(n){var u=this,t,i,r;if(t=u.getNavigableIndexes(),i=0,n>t[t.length-1])n=t[t.length-1];else for(r in t){if(n<t[r]){n=i;break}i=t[r]}return n};t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&t.$dots!==null&&n("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",n.proxy(t.interrupt,t,!0)).off("mouseleave.slick",n.proxy(t.interrupt,t,!1));t.$slider.off("focus.slick blur.slick");t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide));t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler);t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler);t.$list.off("touchend.slick mouseup.slick",t.swipeHandler);t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler);t.$list.off("click.slick",t.clickHandler);n(document).off(t.visibilityChange,t.visibility);t.cleanUpSlideEvents();t.options.accessibility===!0&&t.$list.off("keydown.slick",t.keyHandler);t.options.focusOnSelect===!0&&n(t.$slideTrack).children().off("click.slick",t.selectHandler);n(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange);n(window).off("resize.slick.slick-"+t.instanceUid,t.resize);n("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault);n(window).off("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.off("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.cleanUpRows=function(){var n=this,t;n.options.rows>1&&(t=n.$slides.children().children(),t.removeAttr("style"),n.$slider.empty().append(t))};t.prototype.clickHandler=function(n){var t=this;t.shouldClick===!1&&(n.stopImmediatePropagation(),n.stopPropagation(),n.preventDefault())};t.prototype.destroy=function(t){var i=this;i.autoPlayClear();i.touchObject={};i.cleanUpEvents();n(".slick-cloned",i.$slider).detach();i.$dots&&i.$dots.remove();i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove());i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove());i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){n(this).attr("style",n(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides));i.cleanUpRows();i.$slider.removeClass("slick-slider");i.$slider.removeClass("slick-initialized");i.$slider.removeClass("slick-dotted");i.unslicked=!0;t||i.$slider.trigger("destroy",[i])};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(n).css({zIndex:i.options.zIndex}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.fadeSlideOut=function(n){var t=this;t.cssTransitions===!1?t.$slides.eq(n).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(n),t.$slides.eq(n).css({opacity:0,zIndex:t.options.zIndex-2}))};t.prototype.filterSlides=t.prototype.slickFilter=function(n){var t=this;n!==null&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(i){i.stopImmediatePropagation();var r=n(this);setTimeout(function(){t.options.pauseOnFocus&&(t.focussed=r.is(":focus"),t.autoPlay())},0)})};t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){var n=this,i=0,r=0,t=0;if(n.options.infinite===!0)while(i<n.slideCount)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else if(n.options.centerMode===!0)t=n.slideCount;else if(n.options.asNavFor)while(i<n.slideCount)++t,i=r+n.options.slidesToScroll,r+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;else t=1+Math.ceil((n.slideCount-n.options.slidesToShow)/n.options.slidesToScroll);return t-1};t.prototype.getLeft=function(n){var t=this,f,r,u=0,i;return t.slideOffset=0,r=t.$slides.first().outerHeight(!0),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,u=r*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(n>t.slideCount?(t.slideOffset=(t.options.slidesToShow-(n-t.slideCount))*t.slideWidth*-1,u=(t.options.slidesToShow-(n-t.slideCount))*r*-1):(t.slideOffset=t.slideCount%t.options.slidesToScroll*t.slideWidth*-1,u=t.slideCount%t.options.slidesToScroll*r*-1))):n+t.options.slidesToShow>t.slideCount&&(t.slideOffset=(n+t.options.slidesToShow-t.slideCount)*t.slideWidth,u=(n+t.options.slidesToShow-t.slideCount)*r),t.slideCount<=t.options.slidesToShow&&(t.slideOffset=0,u=0),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset=0,t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),f=t.options.vertical===!1?n*t.slideWidth*-1+t.slideOffset:n*r*-1+u,t.options.variableWidth===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow),f=t.options.rtl===!0?i[0]?(t.$slideTrack.width()-i[0].offsetLeft-i.width())*-1:0:i[0]?i[0].offsetLeft*-1:0,t.options.centerMode===!0&&(i=t.slideCount<=t.options.slidesToShow||t.options.infinite===!1?t.$slideTrack.children(".slick-slide").eq(n):t.$slideTrack.children(".slick-slide").eq(n+t.options.slidesToShow+1),f=(t.options.rtl===!0?i[0]?(t.$slideTrack.width()-i[0].offsetLeft-i.width())*-1:0:i[0]?i[0].offsetLeft*-1:0)+(t.$list.width()-i.outerWidth())/2)),f};t.prototype.getOption=t.prototype.slickGetOption=function(n){var t=this;return t.options[n]};t.prototype.getNavigableIndexes=function(){var n=this,t=0,i=0,u=[],r;for(n.options.infinite===!1?r=n.slideCount:(t=n.options.slidesToScroll*-1,i=n.options.slidesToScroll*-1,r=n.slideCount*2);t<r;)u.push(t),t=i+n.options.slidesToScroll,i+=n.options.slidesToScroll<=n.options.slidesToShow?n.options.slidesToScroll:n.options.slidesToShow;return u};t.prototype.getSlick=function(){return this};t.prototype.getSlideCount=function(){var t=this,i,r;return r=t.options.centerMode===!0?t.slideWidth*Math.floor(t.options.slidesToShow/2):0,t.options.swipeToSlide===!0?(t.$slideTrack.find(".slick-slide").each(function(u,f){if(f.offsetLeft-r+n(f).outerWidth()/2>t.swipeLeft*-1)return i=f,!1}),Math.abs(n(i).attr("data-slick-index")-t.currentSlide)||1):t.options.slidesToScroll};t.prototype.goTo=t.prototype.slickGoTo=function(n,t){var i=this;i.changeSlide({data:{message:"index",index:parseInt(n)}},t)};t.prototype.init=function(t){var i=this;n(i.$slider).hasClass("slick-initialized")||(n(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler());t&&i.$slider.trigger("init",[i]);i.options.accessibility===!0&&i.initADA();i.options.autoplay&&(i.paused=!1,i.autoPlay())};t.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"});t.$slideTrack.attr("role","listbox");t.$slides.not(t.$slideTrack.find(".slick-cloned")).each(function(i){n(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+i+""})});t.$dots!==null&&t.$dots.attr("role","tablist").find("li").each(function(i){n(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+i+"",id:"slick-slide"+t.instanceUid+i+""})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar");t.activateADA()};t.prototype.initArrowEvents=function(){var n=this;if(n.options.arrows===!0&&n.slideCount>n.options.slidesToShow){n.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},n.changeSlide);n.$nextArrow.off("click.slick").on("click.slick",{message:"next"},n.changeSlide)}};t.prototype.initDotEvents=function(){var t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow)n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);if(t.options.dots===!0&&t.options.pauseOnDotsHover===!0)n("li",t.$dots).on("mouseenter.slick",n.proxy(t.interrupt,t,!0)).on("mouseleave.slick",n.proxy(t.interrupt,t,!1))};t.prototype.initSlideEvents=function(){var t=this;if(t.options.pauseOnHover){t.$list.on("mouseenter.slick",n.proxy(t.interrupt,t,!0));t.$list.on("mouseleave.slick",n.proxy(t.interrupt,t,!1))}};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.initSlideEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);t.$list.on("click.slick",t.clickHandler);n(document).on(t.visibilityChange,n.proxy(t.visibility,t));if(t.options.accessibility===!0)t.$list.on("keydown.slick",t.keyHandler);if(t.options.focusOnSelect===!0)n(t.$slideTrack).children().on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,n.proxy(t.orientationChange,t));n(window).on("resize.slick.slick-"+t.instanceUid,n.proxy(t.resize,t));n("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault);n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show()};t.prototype.keyHandler=function(n){var t=this;n.target.tagName.match("TEXTAREA|INPUT|SELECT")||(n.keyCode===37&&t.options.accessibility===!0?t.changeSlide({data:{message:t.options.rtl===!0?"next":"previous"}}):n.keyCode===39&&t.options.accessibility===!0&&t.changeSlide({data:{message:t.options.rtl===!0?"previous":"next"}}))};t.prototype.lazyLoad=function(){function f(i){n("img[data-lazy]",i).each(function(){var i=n(this),r=n(this).attr("data-lazy"),u=document.createElement("img");u.onload=function(){i.animate({opacity:0},100,function(){i.attr("src",r).animate({opacity:1},200,function(){i.removeAttr("data-lazy").removeClass("slick-loading")});t.$slider.trigger("lazyLoaded",[t,i,r])})};u.onerror=function(){i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error");t.$slider.trigger("lazyLoadError",[t,i,r])};u.src=r})}var t=this,e,r,i,u;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=Math.ceil(i+t.options.slidesToShow),t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount<=t.options.slidesToShow?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):t.currentSlide===0&&(r=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();n.options.lazyLoad==="progressive"&&n.progressiveLazyLoad()};t.prototype.next=t.prototype.slickNext=function(){var n=this;n.changeSlide({data:{message:"next"}})};t.prototype.orientationChange=function(){var n=this;n.checkResponsive();n.setPosition()};t.prototype.pause=t.prototype.slickPause=function(){var n=this;n.autoPlayClear();n.paused=!0};t.prototype.play=t.prototype.slickPlay=function(){var n=this;n.autoPlay();n.options.autoplay=!0;n.paused=!1;n.focussed=!1;n.interrupted=!1};t.prototype.postSlide=function(n){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,n]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.options.accessibility===!0&&t.initADA())};t.prototype.prev=t.prototype.slickPrev=function(){var n=this;n.changeSlide({data:{message:"previous"}})};t.prototype.preventDefault=function(n){n.preventDefault()};t.prototype.progressiveLazyLoad=function(t){t=t||1;var i=this,e=n("img[data-lazy]",i.$slider),r,u,f;e.length?(r=e.first(),u=r.attr("data-lazy"),f=document.createElement("img"),f.onload=function(){r.attr("src",u).removeAttr("data-lazy").removeClass("slick-loading");i.options.adaptiveHeight===!0&&i.setPosition();i.$slider.trigger("lazyLoaded",[i,r,u]);i.progressiveLazyLoad()},f.onerror=function(){t<3?setTimeout(function(){i.progressiveLazyLoad(t+1)},500):(r.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),i.$slider.trigger("lazyLoadError",[i,r,u]),i.progressiveLazyLoad())},f.src=u):i.$slider.trigger("allImagesLoaded",[i])};t.prototype.refresh=function(t){var i=this,r,u;u=i.slideCount-i.options.slidesToShow;!i.options.infinite&&i.currentSlide>u&&(i.currentSlide=u);i.slideCount<=i.options.slidesToShow&&(i.currentSlide=0);r=i.currentSlide;i.destroy(!0);n.extend(i,i.initials,{currentSlide:r});i.init();t||i.changeSlide({data:{message:"index",index:r}},!1)};t.prototype.registerBreakpoints=function(){var t=this,u,f,i,r=t.options.responsive||null;if(n.type(r)==="array"&&r.length){t.respondTo=t.options.respondTo||"window";for(u in r)if(i=t.breakpoints.length-1,f=r[u].breakpoint,r.hasOwnProperty(u)){while(i>=0)t.breakpoints[i]&&t.breakpoints[i]===f&&t.breakpoints.splice(i,1),i--;t.breakpoints.push(f);t.breakpointSettings[f]=r[u].settings}t.breakpoints.sort(function(n,i){return t.options.mobileFirst?n-i:i-n})}};t.prototype.reinit=function(){var t=this;if(t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&t.currentSlide!==0&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),t.options.focusOnSelect===!0)n(t.$slideTrack).children().on("click.slick",t.selectHandler);t.setSlideClasses(typeof t.currentSlide=="number"?t.currentSlide:0);t.setPosition();t.focusHandler();t.paused=!t.options.autoplay;t.autoPlay();t.$slider.trigger("reInit",[t])};t.prototype.resize=function(){var t=this;n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.unslicked||t.setPosition()},50))};t.prototype.removeSlide=t.prototype.slickRemove=function(n,t,i){var r=this;if(typeof n=="boolean"?(t=n,n=t===!0?0:r.slideCount-1):n=t===!0?--n:n,r.slideCount<1||n<0||n>r.slideCount-1)return!1;r.unload();i===!0?r.$slideTrack.children().remove():r.$slideTrack.children(this.options.slide).eq(n).remove();r.$slides=r.$slideTrack.children(this.options.slide);r.$slideTrack.children(this.options.slide).detach();r.$slideTrack.append(r.$slides);r.$slidesCache=r.$slides;r.reinit()};t.prototype.setCSS=function(n){var t=this,i={},r,u;t.options.rtl===!0&&(n=-n);r=t.positionProp=="left"?Math.ceil(n)+"px":"0px";u=t.positionProp=="top"?Math.ceil(n)+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;n.options.vertical===!1?n.options.centerMode===!0&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),n.options.centerMode===!0&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();n.options.vertical===!1&&n.options.variableWidth===!1?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):n.options.variableWidth===!0?n.$slideTrack.width(5e3*n.slideCount):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();n.options.variableWidth===!1&&n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var t=this,i;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;t.options.rtl===!0?n(u).css({position:"relative",right:i,top:0,zIndex:t.options.zIndex-2,opacity:0}):n(u).css({position:"relative",left:i,top:0,zIndex:t.options.zIndex-2,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:t.options.zIndex-1,opacity:1})};t.prototype.setHeight=function(){var n=this,t;n.options.slidesToShow===1&&n.options.adaptiveHeight===!0&&n.options.vertical===!1&&(t=n.$slides.eq(n.currentSlide).outerHeight(!0),n.$list.css("height",t))};t.prototype.setOption=t.prototype.slickSetOption=function(){var t=this,u,f,e,i,o=!1,r;if(n.type(arguments[0])==="object"?(e=arguments[0],o=arguments[1],r="multiple"):n.type(arguments[0])==="string"&&(e=arguments[0],i=arguments[1],o=arguments[2],arguments[0]==="responsive"&&n.type(arguments[1])==="array"?r="responsive":typeof arguments[1]!="undefined"&&(r="single")),r==="single")t.options[e]=i;else if(r==="multiple")n.each(e,function(n,i){t.options[n]=i});else if(r==="responsive")for(f in i)if(n.type(t.options.responsive)!=="array")t.options.responsive=[i[f]];else{for(u=t.options.responsive.length-1;u>=0;)t.options.responsive[u].breakpoint===i[f].breakpoint&&t.options.responsive.splice(u,1),u--;t.options.responsive.push(i[f])}o&&(t.unload(),t.reinit())};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.setHeight();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade();n.$slider.trigger("setPosition",[n])};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";n.positionProp==="top"?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(t.WebkitTransition!==undefined||t.MozTransition!==undefined||t.msTransition!==undefined)&&n.options.useCSS===!0&&(n.cssTransitions=!0);n.options.fade&&(typeof n.options.zIndex=="number"?n.options.zIndex<3&&(n.options.zIndex=3):n.options.zIndex=n.defaults.zIndex);t.OTransform!==undefined&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(n.animType=!1));t.MozTransform!==undefined&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",t.perspectiveProperty===undefined&&t.MozPerspective===undefined&&(n.animType=!1));t.webkitTransform!==undefined&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(n.animType=!1));t.msTransform!==undefined&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",t.msTransform===undefined&&(n.animType=!1));t.transform!==undefined&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.options.useTransform&&n.animType!==null&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var t=this,u,i,r,f;i=t.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true");t.$slides.eq(n).addClass("slick-current");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active").attr("aria-hidden","false"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active").attr("aria-hidden","false")),n===0?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=t.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active").attr("aria-hidden","false"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));t.options.lazyLoad==="ondemand"&&t.lazyLoad()};t.prototype.setupInfinite=function(){var t=this,i,r,u;if(t.options.fade===!0&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r-t.slideCount).prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;i<u;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").attr("data-slick-index",r+t.slideCount).appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.interrupt=function(n){var t=this;n||t.autoPlay();t.interrupted=n};t.prototype.selectHandler=function(t){var i=this,u=n(t.target).is(".slick-slide")?n(t.target):n(t.target).parents(".slick-slide"),r=parseInt(u.attr("data-slick-index"));if(r||(r=0),i.slideCount<=i.options.slidesToShow){i.setSlideClasses(r);i.asNavFor(r);return}i.slideHandler(r)};t.prototype.slideHandler=function(n,t,i){var u,f,s,o,h=null,r=this,e;if((t=t||!1,r.animating!==!0||r.options.waitForAnimate!==!0)&&(r.options.fade!==!0||r.currentSlide!==n)&&!(r.slideCount<=r.options.slidesToShow)){if(t===!1&&r.asNavFor(n),u=n,h=r.getLeft(u),o=r.getLeft(r.currentSlide),r.currentLeft=r.swipeLeft===null?o:r.swipeLeft,r.options.infinite===!1&&r.options.centerMode===!1&&(n<0||n>r.getDotCount()*r.options.slidesToScroll)){r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u));return}if(r.options.infinite===!1&&r.options.centerMode===!0&&(n<0||n>r.slideCount-r.options.slidesToScroll)){r.options.fade===!1&&(u=r.currentSlide,i!==!0?r.animateSlide(o,function(){r.postSlide(u)}):r.postSlide(u));return}if(r.options.autoplay&&clearInterval(r.autoPlayTimer),f=u<0?r.slideCount%r.options.slidesToScroll!=0?r.slideCount-r.slideCount%r.options.slidesToScroll:r.slideCount+u:u>=r.slideCount?r.slideCount%r.options.slidesToScroll!=0?0:u-r.slideCount:u,r.animating=!0,r.$slider.trigger("beforeChange",[r,r.currentSlide,f]),s=r.currentSlide,r.currentSlide=f,r.setSlideClasses(r.currentSlide),r.options.asNavFor&&(e=r.getNavTarget(),e=e.slick("getSlick"),e.slideCount<=e.options.slidesToShow&&e.setSlideClasses(r.currentSlide)),r.updateDots(),r.updateArrows(),r.options.fade===!0){i!==!0?(r.fadeSlideOut(s),r.fadeSlide(f,function(){r.postSlide(f)})):r.postSlide(f);r.animateHeight();return}i!==!0?r.animateSlide(h,function(){r.postSlide(f)}):r.postSlide(f)}};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return(i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(u*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0)?t.options.rtl===!1?"left":"right":n<=360&&n>=315?t.options.rtl===!1?"left":"right":n>=135&&n<=225?t.options.rtl===!1?"right":"left":t.options.verticalSwiping===!0?n>=35&&n<=135?"down":"up":"vertical"};t.prototype.swipeEnd=function(){var n=this,i,t;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=n.touchObject.swipeLength>10?!1:!0,n.touchObject.curX===undefined)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){t=n.swipeDirection();switch(t){case"left":case"down":i=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount();n.currentDirection=0;break;case"right":case"up":i=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount();n.currentDirection=1}t!="vertical"&&(n.slideHandler(i),n.touchObject={},n.$slider.trigger("swipe",[n,t]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(t.options.swipe!==!1&&(!("ontouchend"in document)||t.options.swipe!==!1)&&(t.options.draggable!==!1||n.type.indexOf("mouse")===-1)){t.touchObject.fingerCount=n.originalEvent&&n.originalEvent.touches!==undefined?n.originalEvent.touches.length:1;t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold;t.options.verticalSwiping===!0&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold);switch(n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}}};t.prototype.swipeMove=function(n){var t=this,f,e,r,u,i;if(i=n.originalEvent!==undefined?n.originalEvent.touches:null,!t.dragging||i&&i.length!==1)return!1;if(f=t.getLeft(t.currentSlide),t.touchObject.curX=i!==undefined?i[0].pageX:n.clientX,t.touchObject.curY=i!==undefined?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),t.options.verticalSwiping===!0&&(t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curY-t.touchObject.startY,2)))),e=t.swipeDirection(),e!=="vertical"){if(n.originalEvent!==undefined&&t.touchObject.swipeLength>4&&n.preventDefault(),u=(t.options.rtl===!1?1:-1)*(t.touchObject.curX>t.touchObject.startX?1:-1),t.options.verticalSwiping===!0&&(u=t.touchObject.curY>t.touchObject.startY?1:-1),r=t.touchObject.swipeLength,t.touchObject.edgeHit=!1,t.options.infinite===!1&&(t.currentSlide===0&&e==="right"||t.currentSlide>=t.getDotCount()&&e==="left")&&(r=t.touchObject.swipeLength*t.options.edgeFriction,t.touchObject.edgeHit=!0),t.swipeLeft=t.options.vertical===!1?f+r*u:f+r*(t.$list.height()/t.listWidth)*u,t.options.verticalSwiping===!0&&(t.swipeLeft=f+r*u),t.options.fade===!0||t.options.touchMove===!1)return!1;if(t.animating===!0)return t.swipeLeft=null,!1;t.setCSS(t.swipeLeft)}};t.prototype.swipeStart=function(n){var t=this,i;if(t.interrupted=!0,t.touchObject.fingerCount!==1||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;n.originalEvent!==undefined&&n.originalEvent.touches!==undefined&&(i=n.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=i!==undefined?i.pageX:n.clientX;t.touchObject.startY=t.touchObject.curY=i!==undefined?i.pageY:n.clientY;t.dragging=!0};t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var n=this;n.$slidesCache!==null&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove();t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove();t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")};t.prototype.unslick=function(n){var t=this;t.$slider.trigger("unslick",[t,n]);t.destroy()};t.prototype.updateArrows=function(){var n=this,t;t=Math.floor(n.options.slidesToShow/2);n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&!n.options.infinite&&(n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),n.currentSlide===0?(n.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&n.options.centerMode===!1?(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):n.currentSlide>=n.slideCount-1&&n.options.centerMode===!0&&(n.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),n.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))};t.prototype.updateDots=function(){var n=this;n.$dots!==null&&(n.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))};t.prototype.visibility=function(){var n=this;n.options.autoplay&&(n.interrupted=document[n.hidden]?!0:!1)};n.fn.slick=function(){for(var i=this,r=arguments[0],f=Array.prototype.slice.call(arguments,1),e=i.length,u,n=0;n<e;n++)if(typeof r=="object"||typeof r=="undefined"?i[n].slick=new t(i[n],r):u=i[n].slick[r].apply(i[n].slick,f),typeof u!="undefined")return u;return i}}),function(n){var t=!1,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,c,l,s,v,e,h;if(typeof document!="undefined"){if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(c=new Date,c.setMilliseconds(c.getMilliseconds()+f.expires*864e5),f.expires=c);f.expires=f.expires?f.expires.toUTCString():"";try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(w){}u=i.write?i.write(u,t):encodeURIComponent(String(u)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t));t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent);t=t.replace(/[\(\)]/g,escape);l="";for(s in f)f[s]&&(l+="; "+s,f[s]!==!0)&&(l+="="+f[s]);return document.cookie=t+"="+u+l}t||(o={});for(var y=document.cookie?document.cookie.split("; "):[],p=/(%[0-9A-Z]{2})+/g,a=0;a<y.length;a++){v=y[a].split("=");e=v.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(h=v[0].replace(p,decodeURIComponent),e=i.read?i.read(e,h):i(e,h)||e.replace(p,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(w){}if(t===h){o=e;break}t||(o[h]=e)}catch(w){}}return o}}return r.set=r,r.get=function(n){return r.call(r,n)},r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t(function(){})});!function(n,t){"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():n.WhenInViewport=t()}(this,function(){function t(t,r,u){i.setup();this.registryItem=n.addItem(t,"function"==typeof r?s(u||{},{callback:r}):r);n.processItem(this.registryItem)}function o(){return"innerHeight"in window?window.innerHeight:document.documentElement.offsetHeight}function r(){return"pageYOffset"in window?window.pageYOffset:document.documentElement.scrollTop||document.body.scrollTop}function h(n){return n.getBoundingClientRect().top+r()}function u(n,t,i){for(var r in n)if(n.hasOwnProperty(r)&&t.call(i,n[r],r)===!1)break}function s(n){for(var t=1;t<arguments.length;t++)u(arguments[t],function(t,i){n[i]=t});return n}var f,e;t.prototype.stopListening=function(){n.removeItem(this.registryItem);i.removeIfStoreEmpty()};t.defaults={threshold:0,context:null};s(t,{setRateLimiter:function(n,t){return i.rateLimiter=n,t&&(i.rateLimitDelay=t),this},checkAll:function(){return e=r(),f=o(),n.adjustPositions(n.processItem),i.removeIfStoreEmpty(),this},destroy:function(){return n.store={},i.remove(),delete i.scrollHandler,delete i.resizeHandler,this},registerAsJqueryPlugin:function(n){return n.fn.whenInViewport=function(i,r){var u,f=function(t){return function(i){t.call(this,n(i))}};return u="function"==typeof i?n.extend({},r,{callback:f(i)}):n.extend(i,{callback:f(i.callback)}),this.each(function(){u.setupOnce?!n.data(this,"whenInViewport")&&n.data(this,"whenInViewport",new t(this,u)):n.data(this,"whenInViewport",new t(this,u))})},this}});var n={store:{},counter:0,addItem:function(n,i){var r="whenInViewport"+ ++this.counter,u=s({},t.defaults,i,{storeKey:r,element:n,topOffset:h(n)});return this.store[r]=u},adjustPositions:function(t){u(this.store,function(i){i.topOffset=h(i.element);t&&t.call(n,i)})},processAll:function(){u(this.store,this.processItem,this)},processItem:function(n){e+f>=n.topOffset-n.threshold&&(this.removeItem(n),n.callback.call(n.context||window,n.element))},removeItem:function(n){delete this.store[n.storeKey]},isEmpty:function(){var n=!0;return u(this.store,function(){return n=!1}),n}},i={setuped:!1,rateLimiter:function(n){return n},rateLimitDelay:100,on:function(n,t){return window.addEventListener?window.addEventListener(n,t,!1):window.attachEvent&&window.attachEvent(n,t),this},off:function(n,t){return window.removeEventListener?window.removeEventListener(n,t,!1):window.detachEvent&&window.detachEvent("on"+n,t),this},setup:function(){var t=this;this.setuped||(e=r(),f=o(),this.scrollHandler=this.scrollHandler||this.rateLimiter(function(){e=r();n.processAll();t.removeIfStoreEmpty()},this.rateLimitDelay),this.resizeHandler=this.resizeHandler||this.rateLimiter(function(){f=o();n.adjustPositions(n.processItem);t.removeIfStoreEmpty()},this.rateLimitDelay),this.on("scroll",this.scrollHandler).on("resize",this.resizeHandler),this.setuped=!0)},removeIfStoreEmpty:function(){n.isEmpty()&&this.remove()},remove:function(){this.setuped&&(this.off("scroll",this.scrollHandler).off("resize",this.resizeHandler),this.setuped=!1)}},c=window.jQuery||window.$;return c&&t.registerAsJqueryPlugin(c),t});!function(n,t){"function"==typeof define&&define.amd?define(["when-in-viewport"],t):"object"==typeof module&&module.exports?module.exports=t(require("when-in-viewport")):n.LateImage=t(n.WhenInViewport)}(this,function(n){function t(i,r){this.el=i;r=c({},t.defaults,r,{context:this});r.enableViewportCheck?this.inViewportListener=new n(i,function(){u(i,r)},{threshold:r.threshold}):u(i,r)}function u(n,t){var i=n.getAttribute(t.srcAttribute);t.loadingCallback&&t.loadingCallback(n,t.context);r(n,t.loadingClass);h(i,function(u){n.setAttribute("src",i);e(n,t.loadingClass);r(n,t.loadedClass);n.getAttribute(t.altAttribute)&&n.setAttribute("alt",n.getAttribute(t.altAttribute));t.doneCallback&&t.doneCallback(n,u,t.context)},function(i){e(n,t.loadingClass);r(n,t.errorClass);t.failCallback&&t.failCallback(n,i,t.context)})}function h(n,t,i){var r=new Image;r.onload=t;r.onerror=i;r.src=n}function c(n){for(var t=1;t<arguments.length;t++)f(arguments[t],function(t,i){n[i]=t});return n}function f(n,t,i){var f,r,u;if(n instanceof Array)for(f=n.length,r=0;r<f;r++)t.call(i,n[r],r);else for(u in n)n.hasOwnProperty(u)&&t.call(i,n[u],u)}function r(n,t){o(n,"add",t,function(t,i){i.indexOf(t)<0&&(i.push(t),n.className=i.join(" "))})}function e(n,t){o(n,"remove",t,function(t,i){var r=i.indexOf(t);r>=0&&(i.splice(r,1),n.className=i.join(" "))})}function o(n,r,u,e){f(i(u),function(u){t.useClassList&&n.classList?n.classList[r](u):e(u,i(n.className))})}function i(n){return i.trimRE=i.trimRE||/^\s+|\s+$/g,i.spacesRE=i.spacesRE||/\s\s+/g,n?n.replace(i.trimRE,"").replace(i.spacesRE," ").split(" "):[]}t.defaults={srcAttribute:"data-src",altAttribute:"data-alt",loadingCallback:null,doneCallback:null,failCallback:null,threshold:0,loadingClass:"lateImageLoading",loadedClass:"lateImageLoaded",errorClass:"lateImageError",enableViewportCheck:!0};t.prototype.destroy=function(){this.inViewportListener&&this.inViewportListener.stopListening()};t.registerAsJqueryPlugin=function(n){n.fn.lateImages=function(i){return this.each(function(){n.data(this,"lateImage")||n.data(this,"lateImage",new t(this,i))})}};t.useClassList=!0;var s=window.jQuery||window.$;return s&&t.registerAsJqueryPlugin(s),t});window.Modernizr=function(n,t,i){function c(n){h.cssText=n}function et(n,t){return c(l.join(n+";")+(t||""))}function o(n,t){return typeof n===t}function p(n,t){return!!~(""+n).indexOf(t)}function tt(n,t){var u,r;for(u in n)if(r=n[u],!p(r,"-")&&h[r]!==i)return t=="pfx"?r:!0;return!1}function ot(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:o(u,"function")?u.bind(r||t):u;return!1}function f(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ut.join(r+" ")+r).split(" ");return o(t,"string")||o(t,"undefined")?tt(u,t):(u=(n+" "+ft.join(r+" ")+r).split(" "),ot(u,t,i))}var u={},w=!0,e=t.documentElement,s="modernizr",it=t.createElement(s),h=it.style,st,ht={}.toString,l=" -webkit- -moz- -o- -ms- ".split(" "),rt="Webkit Moz O ms",ut=rt.split(" "),ft=rt.toLowerCase().split(" "),b={svg:"http://www.w3.org/2000/svg"},r={},k=[],d=k.slice,a,v=function(n,i,r,u){var l,a,c,v,f=t.createElement("div"),h=t.body,o=h||t.createElement("body");if(parseInt(r,10))while(r--)c=t.createElement("div"),c.id=u?u[r]:s+(r+1),f.appendChild(c);return l=["&#173;",'<style id="s',s,'">',n,"<\/style>"].join(""),f.id=s,(h?f:o).innerHTML+=l,o.appendChild(f),h||(o.style.background="",o.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(o)),a=i(f,n),h?f.parentNode.removeChild(f):(o.parentNode.removeChild(o),e.style.overflow=v),!!a},g={}.hasOwnProperty,nt,y;nt=!o(g,"undefined")&&!o(g.call,"undefined")?function(n,t){return g.call(n,t)}:function(n,t){return t in n&&o(n.constructor.prototype[t],"undefined")};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=d.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(d.call(arguments))),Object(u)===u?u:e):t.apply(n,i.concat(d.call(arguments)))},r});r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:v(["@media (",l.join("touch-enabled),("),s,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.rgba=function(){return c("background-color:rgba(150,255,150,.5)"),p(h.backgroundColor,"rgba")};r.backgroundsize=function(){return f("backgroundSize")};r.borderradius=function(){return f("borderRadius")};r.boxshadow=function(){return f("boxShadow")};r.textshadow=function(){return t.createElement("div").style.textShadow===""};r.opacity=function(){return et("opacity:.55"),/^0.55$/.test(h.opacity)};r.cssanimations=function(){return f("animationName")};r.cssgradients=function(){var n="background-image:";return c((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+l.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),p(h.backgroundImage,"gradient")};r.csstransforms=function(){return!!f("transform")};r.csstransforms3d=function(){var n=!!f("perspective");return n&&"webkitPerspective"in e.style&&v("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return f("transition")};r.fontface=function(){var n;return v('@font-face {font-family:"font";src:url("https://")}',function(i,r){var f=t.getElementById("smodernizr"),u=f.sheet||f.styleSheet,e=u?u.cssRules&&u.cssRules[0]?u.cssRules[0].cssText:u.cssText||"":"";n=/src/i.test(e)&&e.indexOf(r.split(" ")[0])===0}),n};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(b.svg,"svg").createSVGRect};r.inlinesvg=function(){var n=t.createElement("div");return n.innerHTML="<svg/>",(n.firstChild&&n.firstChild.namespaceURI)==b.svg};r.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(ht.call(t.createElementNS(b.svg,"clipPath")))};for(y in r)nt(r,y)&&(a=y.toLowerCase(),u[a]=r[y](),k.push((u[a]?"":"no-")+a));return u.addTest=function(n,t){if(typeof n=="object")for(var r in n)nt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof w!="undefined"&&w&&(e.className+=" "+(t?"":"no-")+n);u[n]=t}return u},c(""),it=st=null,u._version="2.6.2",u._prefixes=l,u._domPrefixes=ft,u._cssomPrefixes=ut,u.testProp=function(n){return tt([n])},u.testAllProps=f,u.testStyles=v,e.className=e.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+(w?" js "+k.join(" "):""),u}(this,this.document),function(n,t,i){function h(n){return"[object Function]"==y.call(n)}function c(n){return"string"==typeof n}function l(){}function w(n){return!n||"loaded"==n||"complete"==n||"uninitialized"==n}function f(){var n=a.shift();v=1;n?n.t?s(function(){("c"==n.t?u.injectCss:u.injectJs)(n.s,0,n.a,n.x,n.e,1)},0):(n(),f()):v=0}function ut(n,i,o,h,c,l,y){function k(t){if(!nt&&w(p.readyState)&&(tt.r=nt=1,!v&&f(),p.onload=p.onreadystatechange=null,t)){"img"!=n&&s(function(){g.removeChild(p)},50);for(var u in r[i])r[i].hasOwnProperty(u)&&r[i][u].onload()}}var y=y||u.errorTimeout,p=t.createElement(n),nt=0,b=0,tt={t:o,s:i,e:c,a:l,x:y};1===r[i]&&(b=1,r[i]=[]);"object"==n?p.data=i:(p.src=i,p.type=n);p.width=p.height="0";p.onerror=p.onload=p.onreadystatechange=function(){k.call(this,b)};a.splice(h,0,tt);"img"!=n&&(b||2===r[i]?(g.insertBefore(p,d?null:e),s(k,y)):r[i].push(p))}function ft(n,t,i,r,u){return v=0,t=t||"j",c(n)?ut("c"==t?et:nt,n,t,this.i++,i,r,u):(a.splice(this.i++,0,n),1==a.length&&f()),this}function b(){var n=u;return n.loader={load:ft,i:0},n}var o=t.documentElement,s=n.setTimeout,e=t.getElementsByTagName("script")[0],y={}.toString,a=[],v=0,k="MozAppearance"in o.style,d=k&&!!t.createRange().compareNode,g=d?o:e.parentNode,o=n.opera&&"[object Opera]"==y.call(n.opera),o=!!t.attachEvent&&!o,nt=k?"object":o?"script":"img",et=o?"script":nt,tt=Array.isArray||function(n){return"[object Array]"==y.call(n)},p=[],r={},it={timeout:function(n,t){return t.length&&(n.timeout=t[0]),n}},rt,u;u=function(n){function a(n){for(var n=n.split("!"),f=p.length,i=n.pop(),e=n.length,i={url:i,origUrl:i,prefixes:n},u,r,t=0;t<e;t++)r=n[t].split("="),(u=it[r.shift()])&&(i=u(i,r));for(t=0;t<f;t++)i=p[t](i);return i}function f(n,t,u,f,e){var o=a(n),s=o.autoCallback;o.url.split(".").pop().split("?").shift();o.bypass||(t&&(t=h(t)?t:t[n]||t[f]||t[n.split("/").pop().split("?")[0]]),o.instead?o.instead(n,t,u,f,e):(r[o.url]?o.noexec=!0:r[o.url]=1,u.load(o.url,o.forceCSS||!o.forceJS&&"css"==o.url.split(".").pop().split("?").shift()?"c":i,o.noexec,o.attrs,o.timeout),(h(t)||h(s))&&u.load(function(){b();t&&t(o.origUrl,e,f);s&&s(o.origUrl,e,f);r[o.url]=2})))}function s(n,t){function a(n,o){if(n){if(c(n))o||(i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}),f(n,i,t,0,e);else if(Object(n)===n)for(r in v=function(){var t=0;for(var i in n)n.hasOwnProperty(i)&&t++;return t}(),n)n.hasOwnProperty(r)&&(!o&&!--v&&(h(i)?i=function(){var n=[].slice.call(arguments);s.apply(this,n);u()}:i[r]=function(n){return function(){var t=[].slice.call(arguments);n&&n.apply(this,t);u()}}(s[r])),f(n[r],i,t,r,e))}else o||u()}var e=!!n.test,o=n.load||n.both,i=n.callback||l,s=i,u=n.complete||l,v,r;a(e?n.yep:n.nope,!!o);o&&a(o)}var e,t,o=this.yepnope.loader;if(c(n))f(n,0,o,0);else if(tt(n))for(e=0;e<n.length;e++)t=n[e],c(t)?f(t,0,o,0):tt(t)?u(t):Object(t)===t&&s(t,o);else Object(n)===n&&s(n,o)};u.addPrefix=function(n,t){it[n]=t};u.addFilter=function(n){p.push(n)};u.errorTimeout=1e4;null==t.readyState&&t.addEventListener&&(t.readyState="loading",t.addEventListener("DOMContentLoaded",rt=function(){t.removeEventListener("DOMContentLoaded",rt,0);t.readyState="complete"},0));n.yepnope=b();n.yepnope.executeStack=f;n.yepnope.injectJs=function(n,i,r,o,h,c){var a=t.createElement("script"),v,y,o=o||u.errorTimeout;a.src=n;for(y in r)a.setAttribute(y,r[y]);i=c?f:i||l;a.onreadystatechange=a.onload=function(){!v&&w(a.readyState)&&(v=1,i(),a.onload=a.onreadystatechange=null)};s(function(){v||(v=1,i(1))},o);h?a.onload():e.parentNode.insertBefore(a,e)};n.yepnope.injectCss=function(n,i,r,u,o,h){var u=t.createElement("link"),c,i=h?f:i||l;u.href=n;u.rel="stylesheet";u.type="text/css";for(c in r)u.setAttribute(c,r[c]);o||(e.parentNode.insertBefore(u,e),s(i,0))}}(this,document);Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0))};objectFitImages=function(){"use strict";function p(n){if(n.srcset&&!y&&window.picturefill){var t=window.picturefill._;n[t.ns]&&n[t.ns].evaled||t.fillImg(n,{reselect:!0});n[t.ns].curSrc||(n[t.ns].supported=!1,t.fillImg(n,{reselect:!0}));n.currentSrc=n[t.ns].curSrc||n.src}}function w(n){for(var r=getComputedStyle(n).fontFamily,t,i={};(t=a.exec(r))!==null;)i[t[1]]=t[2];return i}function c(i,u,f){t.width=u||1;t.height=f||1;(i[n].width!==t.width||i[n].height!==t.height)&&(i[n].width=t.width,i[n].height=t.height,r.call(i,"src",t.toDataURL()))}function o(n,t){n.naturalWidth?t(n):setTimeout(o,100,n,t)}function l(t){var u=w(t),i=t[n];if(u["object-fit"]=u["object-fit"]||"fill",!i.img){if(u["object-fit"]==="fill")return;if(!i.skipTest&&s&&!u["object-position"])return}if(!i.img){i.img=new Image(t.width,t.height);i.img.srcset=e.call(t,"data-ofi-srcset")||t.srcset;i.img.src=e.call(t,"data-ofi-src")||t.src;r.call(t,"data-ofi-src",t.src);r.call(t,"data-ofi-srcset",t.srcset);c(t,t.naturalWidth||t.width,t.naturalHeight||t.height);t.srcset&&(t.srcset="");try{b(t)}catch(f){window.console&&console.log("http://bit.ly/ofi-old-browser")}}p(i.img);t.style.backgroundImage="url("+(i.img.currentSrc||i.img.src).replace("(","%28").replace(")","%29")+")";t.style.backgroundPosition=u["object-position"]||"center";t.style.backgroundRepeat="no-repeat";/scale-down/.test(u["object-fit"])?o(i.img,function(){t.style.backgroundSize=i.img.naturalWidth>t.width||i.img.naturalHeight>t.height?"contain":"auto"}):t.style.backgroundSize=u["object-fit"].replace("none","auto").replace("fill","100% 100%");o(i.img,function(n){c(t,n.naturalWidth,n.naturalHeight)})}function b(t){var i={get:function(i){return t[n].img[i?i:"src"]},set:function(i,u){return t[n].img[u?u:"src"]=i,r.call(t,"data-ofi-"+u,i),l(t),i}};Object.defineProperty(t,"src",i);Object.defineProperty(t,"currentSrc",{get:function(){return i.get("currentSrc")}});Object.defineProperty(t,"srcset",{get:function(){return i.get("srcset")},set:function(n){return i.set(n,"srcset")}})}function k(){function t(t,i){return t[n]&&t[n].img&&(i==="src"||i==="srcset")?t[n].img:t}f||(HTMLImageElement.prototype.getAttribute=function(n){return e.call(t(this,n),n)},HTMLImageElement.prototype.setAttribute=function(n,i){return r.call(t(this,n),n,String(i))})}function u(t,i){var e=!h&&!t,r;if(i=i||{},t=t||"img",f&&!i.skipTest||!v)return!1;for(typeof t=="string"?t=document.querySelectorAll(t):("length"in t)||(t=[t]),r=0;r<t.length;r++)t[r][n]=t[r][n]||{skipTest:i.skipTest},l(t[r]);e&&(document.body.addEventListener("load",function(n){n.target.tagName==="IMG"&&u(n.target,{skipTest:i.skipTest})},!0),h=!0,t="img");i.watchMQ&&window.addEventListener("resize",u.bind(null,t,{skipTest:i.skipTest}))}var n="bfred-it:object-fit-images",a=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g,i=new Image,t=document.createElement("canvas"),s="object-fit"in i.style,f="object-position"in i.style,v="background-size"in i.style&&window.HTMLCanvasElement,y=typeof i.currentSrc=="string",e=i.getAttribute,r=i.setAttribute,h=!1;return u.supportsObjectFit=s,u.supportsObjectPosition=f,k(),u}(),function(){"use strict";if(window&&window.addEventListener){var n=Object.create(null),r,u,t=function(){clearTimeout(u);u=setTimeout(r,100)},i=function(){return},e=function(){var n;window.addEventListener("resize",t,!1);window.addEventListener("orientationchange",t,!1);window.MutationObserver?(n=new MutationObserver(t),n.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0}),i=function(){try{n.disconnect();window.removeEventListener("resize",t,!1);window.removeEventListener("orientationchange",t,!1)}catch(i){}}):(document.documentElement.addEventListener("DOMSubtreeModified",t,!1),i=function(){document.documentElement.removeEventListener("DOMSubtreeModified",t,!1);window.removeEventListener("resize",t,!1);window.removeEventListener("orientationchange",t,!1)})},o=function(n){function r(n){var t;return n.protocol!==undefined?t=n:(t=document.createElement("a"),t.href=n),t.protocol.replace(/:/g,"")+t.host}var t,u,i;return window.XMLHttpRequest&&(t=new XMLHttpRequest,u=r(location),i=r(n),t=t.withCredentials===undefined&&i!==""&&i!==u?XDomainRequest||undefined:XMLHttpRequest),t},f="http://www.w3.org/1999/xlink";r=function(){function w(){a-=1;a===0&&(i(),e())}function k(t){return function(){n[t.base]!==!0&&t.useEl.setAttributeNS(f,"xlink:href","#"+t.hash)}}function g(n){return function(){var i=document.body,r=document.createElement("x"),t;n.onload=null;r.innerHTML=n.responseText;t=r.getElementsByTagName("svg")[0];t&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",i.insertBefore(t,i.firstChild));w()}}function d(n){return function(){n.onerror=null;n.ontimeout=null;w()}}var t,u,b="",c,l,s,a=0,v,y,p,h,r;for(i(),h=document.getElementsByTagName("use"),s=0;s<h.length;s+=1){try{u=h[s].getBoundingClientRect()}catch(nt){u=!1}l=h[s].getAttributeNS(f,"href");p=l&&l.split?l.split("#"):["",""];t=p[0];c=p[1];v=u&&u.left===0&&u.right===0&&u.top===0&&u.bottom===0;u&&u.width===0&&u.height===0&&!v?(b&&!t.length&&c&&!document.getElementById(c)&&(t=b),t.length&&(r=n[t],r!==!0&&setTimeout(k({useEl:h[s],base:t,hash:c}),0),r===undefined&&(y=o(t),y!==undefined&&(r=new y,n[t]=r,r.onload=g(r),r.onerror=d(r),r.ontimeout=d(r),r.open("GET",t),r.send(),a+=1)))):v?t.length&&n[t]&&k({useEl:h[s],base:t,hash:c})():n[t]===undefined?n[t]=!0:n[t].onload&&(n[t].abort(),delete n[t].onload,n[t]=!0)}h="";a+=1;w()};window.addEventListener("load",function s(){window.removeEventListener("load",s,!1);u=setTimeout(r,0)},!1)}}();!function(n){n(["jquery"],function(n){return function(){function v(n,t,r){return u({type:f.error,iconClass:i().iconClasses.error,message:n,optionsOverride:r,title:t})}function r(r,u){return r||(r=i()),t=n("#"+r.containerId),t.length?t:(u&&(t=nt(r)),t)}function y(n,t,r){return u({type:f.info,iconClass:i().iconClasses.info,message:n,optionsOverride:r,title:t})}function p(n){o=n}function w(n,t,r){return u({type:f.success,iconClass:i().iconClasses.success,message:n,optionsOverride:r,title:t})}function b(n,t,r){return u({type:f.warning,iconClass:i().iconClasses.warning,message:n,optionsOverride:r,title:t})}function k(n,u){var f=i();t||r(f);h(n,f,u)||g(f)}function d(u){var f=i();return t||r(f),u&&0===n(":focus",u).length?void e(u):void(t.children().length&&t.remove())}function g(i){for(var u=t.children(),r=u.length-1;r>=0;r--)h(n(u[r]),i)}function h(t,i,r){var u=!(!r||!r.force)&&r.force;return!(!t||!u&&0!==n(":focus",t).length)&&(t[i.hideMethod]({duration:i.hideDuration,easing:i.hideEasing,complete:function(){e(t)}}),!0)}function nt(i){return t=n("<div/>").attr("id",i.containerId).addClass(i.positionClass),t.appendTo(n(i.target)),t}function tt(){return{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;<\/button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1}}function c(n){o&&o(n)}function u(u){function k(n){return null==n&&(n=""),n.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function nt(){ut();et();ot();st();ht();ct();ft();tt()}function tt(){var n="";switch(u.iconClass){case"toast-success":case"toast-info":n="polite";break;default:n="assertive"}o.attr("aria-live",n)}function it(){f.closeOnHover&&o.hover(vt,at);!f.onclick&&f.tapToDismiss&&o.click(v);f.closeButton&&p&&p.click(function(n){n.stopPropagation?n.stopPropagation():void 0!==n.cancelBubble&&n.cancelBubble!==!0&&(n.cancelBubble=!0);f.onCloseClick&&f.onCloseClick(n);v(!0)});f.onclick&&o.click(function(n){f.onclick(n);v()})}function rt(){o.hide();o[f.showMethod]({duration:f.showDuration,easing:f.showEasing,complete:f.onShown});f.timeOut>0&&(y=setTimeout(v,f.timeOut),h.maxHideTime=parseFloat(f.timeOut),h.hideEta=(new Date).getTime()+h.maxHideTime,f.progressBar&&(h.intervalId=setInterval(yt,10)))}function ut(){u.iconClass&&o.addClass(f.toastClass).addClass(w)}function ft(){f.newestOnTop?t.prepend(o):t.append(o)}function et(){if(u.title){var n=u.title;f.escapeHtml&&(n=k(u.title));d.append(n).addClass(f.titleClass);o.append(d)}}function ot(){if(u.message){var n=u.message;f.escapeHtml&&(n=k(u.message));g.append(n).addClass(f.messageClass);o.append(g)}}function st(){f.closeButton&&(p.addClass(f.closeClass).attr("role","button"),o.prepend(p))}function ht(){f.progressBar&&(b.addClass(f.progressClass),o.prepend(b))}function ct(){f.rtl&&o.addClass("rtl")}function lt(n,t){if(n.preventDuplicates){if(t.message===s)return!0;s=t.message}return!1}function v(t){var i=t&&f.closeMethod!==!1?f.closeMethod:f.hideMethod,r=t&&f.closeDuration!==!1?f.closeDuration:f.hideDuration,u=t&&f.closeEasing!==!1?f.closeEasing:f.hideEasing;if(!n(":focus",o).length||t)return clearTimeout(h.intervalId),o[i]({duration:r,easing:u,complete:function(){e(o);clearTimeout(y);f.onHidden&&"hidden"!==a.state&&f.onHidden();a.state="hidden";a.endTime=new Date;c(a)}})}function at(){(f.timeOut>0||f.extendedTimeOut>0)&&(y=setTimeout(v,f.extendedTimeOut),h.maxHideTime=parseFloat(f.extendedTimeOut),h.hideEta=(new Date).getTime()+h.maxHideTime)}function vt(){clearTimeout(y);h.hideEta=0;o.stop(!0,!0)[f.showMethod]({duration:f.showDuration,easing:f.showEasing})}function yt(){var n=(h.hideEta-(new Date).getTime())/h.maxHideTime*100;b.width(n+"%")}var f=i(),w=u.iconClass||f.iconClass;if("undefined"!=typeof u.optionsOverride&&(f=n.extend(f,u.optionsOverride),w=u.optionsOverride.iconClass||w),!lt(f,u)){l++;t=r(f,!0);var y=null,o=n("<div/>"),d=n("<div/>"),g=n("<div/>"),b=n("<div/>"),p=n(f.closeHtml),h={intervalId:null,hideEta:null,maxHideTime:null},a={toastId:l,state:"visible",startTime:new Date,options:f,map:u};return nt(),rt(),it(),c(a),f.debug&&console&&console.log(a),o}}function i(){return n.extend({},tt(),a.options)}function e(n){t||(t=r());n.is(":visible")||(n.remove(),n=null,0===t.children().length&&(t.remove(),s=void 0))}var t,o,s,l=0,f={error:"error",info:"info",success:"success",warning:"warning"},a={clear:k,remove:d,error:v,getContainer:r,info:y,options:{},subscribe:p,success:w,version:"2.1.3",warning:b};return a}()})}("function"==typeof define&&define.amd?define:function(n,t){"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):window.toastr=t(window.jQuery)});toastr.options={closeButton:!0,progressBar:!0,positionClass:"toast-top-center"};toastr.error_=toastr.error;toastr.error=function(n,t,i){var r=toastr.options.timeOut;toastr.options.timeOut=0;toastr.error_(n,t,i);toastr.options.timeOut=r},function(n,t){"use strict";var rt="",g="?",nt="function",k="undefined",tt="object",ut="string",i="model",f="name",u="type",r="vendor",e="version",a="architecture",w="console",s="mobile",o="tablet",v="smarttv",d="wearable",l={extend:function(n,t){var r={};for(var i in n)r[i]=t[i]&&t[i].length%2==0?t[i].concat(n[i]):n[i];return r},has:function(n,t){return typeof n=="string"?t.toLowerCase().indexOf(n.toLowerCase())!==-1:!1},lowerize:function(n){return n.toLowerCase()},major:function(n){return typeof n===ut?n.replace(/[^\d\.]/g,"").split(".")[0]:t},trim:function(n){return n.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},c={rgx:function(n,i){for(var e=0,s,l,o,r,f,u,h,c;e<i.length&&!f;){for(h=i[e],c=i[e+1],s=l=0;s<h.length&&!f;)if(f=h[s++].exec(n),!!f)for(o=0;o<c.length;o++)u=f[++l],r=c[o],typeof r===tt&&r.length>0?r.length==2?this[r[0]]=typeof r[1]==nt?r[1].call(this,u):r[1]:r.length==3?this[r[0]]=typeof r[1]!==nt||r[1].exec&&r[1].test?u?u.replace(r[1],r[2]):t:u?r[1].call(this,u,r[2]):t:r.length==4&&(this[r[0]]=u?r[3].call(this,u.replace(r[1],r[2])):t):this[r]=u?u:t;e+=2}},str:function(n,i){var r,u;for(r in i)if(typeof i[r]===tt&&i[r].length>0){for(u=0;u<i[r].length;u++)if(l.has(i[r][u],n))return r===g?t:r}else if(l.has(i[r],n))return r===g?t:r;return n}},p={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},it={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[f,e],[/(opios)[\/\s]+([\w\.]+)/i],[[f,"Opera Mini"],e],[/\s(opr)\/([\w\.]+)/i],[[f,"Opera"],e],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\s]?([\w\.]*)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[f,e],[/(konqueror)\/([\w\.]+)/i],[[f,"Konqueror"],e],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[f,"IE"],e],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[f,"Edge"],e],[/(yabrowser)\/([\w\.]+)/i],[[f,"Yandex"],e],[/(puffin)\/([\w\.]+)/i],[[f,"Puffin"],e],[/(focus)\/([\w\.]+)/i],[[f,"Firefox Focus"],e],[/(opt)\/([\w\.]+)/i],[[f,"Opera Touch"],e],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[f,"UCBrowser"],e],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],e],[/(windowswechat qbcore)\/([\w\.]+)/i],[[f,"WeChat(Win) Desktop"],e],[/(micromessenger)\/([\w\.]+)/i],[[f,"WeChat"],e],[/(brave)\/([\w\.]+)/i],[[f,"Brave"],e],[/(qqbrowserlite)\/([\w\.]+)/i],[f,e],[/(QQ)\/([\d\.]+)/i],[f,e],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[f,e],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[f,e],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[f,e],[/(MetaSr)[\/\s]?([\w\.]+)/i],[f],[/(LBBROWSER)/i],[f],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[e,[f,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[e,[f,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[f,e],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[e,[f,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[f,/(.+)/,"$1 WebView"],e],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[f,/(.+(?:g|us))(.+)/,"$1 $2"],e],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[e,[f,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[f,"Sailfish Browser"],e],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[f,e],[/(dolfin)\/([\w\.]+)/i],[[f,"Dolphin"],e],[/((?:android.+)crmo|crios)\/([\w\.]+)/i],[[f,"Chrome"],e],[/(coast)\/([\w\.]+)/i],[[f,"Opera Coast"],e],[/fxios\/([\w\.-]+)/i],[e,[f,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[e,[f,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[e,f],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[f,"GSA"],e],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[f,[e,c.str,p.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[f,e],[/(navigator|netscape)\/([\w\.-]+)/i],[[f,"Netscape"],e],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)$/i,/(mozilla)\/([\w\.]+).+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[f,e]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[a,"amd64"]],[/(ia32(?=;))/i],[[a,l.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[a,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[a,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[a,/ower/,"",l.lowerize]],[/(sun4\w)[;\)]/i],[[a,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[a,l.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[i,r,[u,o]],[/applecoremedia\/[\w\.]+ \((ipad)/],[i,[r,"Apple"],[u,o]],[/(apple\s{0,1}tv)/i],[[i,"Apple TV"],[r,"Apple"]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[r,i,[u,o]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[i,[r,"Amazon"],[u,o]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[i,c.str,p.device.amazon.model],[r,"Amazon"],[u,s]],[/android.+aft([bms])\sbuild/i],[i,[r,"Amazon"],[u,v]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[i,r,[u,s]],[/\((ip[honed|\s\w*]+);/i],[i,[r,"Apple"],[u,s]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[r,i,[u,s]],[/\(bb10;\s(\w+)/i],[i,[r,"BlackBerry"],[u,s]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[i,[r,"Asus"],[u,o]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[r,"Sony"],[i,"Xperia Tablet"],[u,o]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[i,[r,"Sony"],[u,s]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[r,i,[u,w]],[/android.+;\s(shield)\sbuild/i],[i,[r,"Nvidia"],[u,w]],[/(playstation\s[34portablevi]+)/i],[i,[r,"Sony"],[u,w]],[/(sprint\s(\w+))/i],[[r,c.str,p.device.sprint.vendor],[i,c.str,p.device.sprint.model],[u,s]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[r,[i,/_/g," "],[u,s]],[/(nexus\s9)/i],[i,[r,"HTC"],[u,o]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[i,[r,"Huawei"],[u,s]],[/(microsoft);\s(lumia[\s\w]+)/i],[r,i,[u,s]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[i,[r,"Microsoft"],[u,w]],[/(kin\.[onetw]{3})/i],[[i,/\./g," "],[r,"Microsoft"],[u,s]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[i,[r,"Motorola"],[u,s]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[i,[r,"Motorola"],[u,o]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[r,l.trim],[i,l.trim],[u,v]],[/hbbtv.+maple;(\d+)/i],[[i,/^/,"SmartTV"],[r,"Samsung"],[u,v]],[/\(dtv[\);].+(aquos)/i],[i,[r,"Sharp"],[u,v]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[r,"Samsung"],i,[u,o]],[/smart-tv.+(samsung)/i],[r,[u,v],i],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[r,"Samsung"],i,[u,s]],[/sie-(\w*)/i],[i,[r,"Siemens"],[u,s]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[r,"Nokia"],i,[u,s]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[i,[r,"Acer"],[u,o]],[/android.+([vl]k\-?\d{3})\s+build/i],[i,[r,"LG"],[u,o]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[r,"LG"],i,[u,o]],[/(lg) netcast\.tv/i],[r,i,[u,v]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[i,[r,"LG"],[u,s]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[r,i,[u,o]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[i,[r,"Lenovo"],[u,o]],[/(lenovo)[_\s-]?([\w-]+)/i],[r,i,[u,s]],[/linux;.+((jolla));/i],[r,i,[u,s]],[/((pebble))app\/[\d\.]+\s/i],[r,i,[u,d]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[r,i,[u,s]],[/crkey/i],[[i,"Chromecast"],[r,"Google"]],[/android.+;\s(glass)\s\d/i],[i,[r,"Google"],[u,d]],[/android.+;\s(pixel c)[\s)]/i],[i,[r,"Google"],[u,o]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[i,[r,"Google"],[u,s]],[/android.+;\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[i,/_/g," "],[r,"Xiaomi"],[u,s]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[i,/_/g," "],[r,"Xiaomi"],[u,o]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[i,[r,"Meizu"],[u,s]],[/(mz)-([\w-]{2,})/i],[[r,"Meizu"],i,[u,s]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[i,[r,"OnePlus"],[u,s]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[i,[r,"RCA"],[u,o]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[i,[r,"Dell"],[u,o]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[i,[r,"Verizon"],[u,o]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[r,"Barnes & Noble"],i,[u,o]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[i,[r,"NuVision"],[u,o]],[/android.+;\s(k88)\sbuild/i],[i,[r,"ZTE"],[u,o]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[i,[r,"Swiss"],[u,s]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[i,[r,"Swiss"],[u,o]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[i,[r,"Zeki"],[u,o]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[r,"Dragon Touch"],i,[u,o]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[i,[r,"Insignia"],[u,o]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[i,[r,"NextBook"],[u,o]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[r,"Voice"],i,[u,s]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[r,"LvTel"],i,[u,s]],[/android.+;\s(PH-1)\s/i],[i,[r,"Essential"],[u,s]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[i,[r,"Envizen"],[u,o]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[r,i,[u,o]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[i,[r,"MachSpeed"],[u,o]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[r,i,[u,o]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[i,[r,"Rotor"],[u,o]],[/android.+(KS(.+))\s+build/i],[i,[r,"Amazon"],[u,o]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[r,i,[u,o]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[u,l.lowerize],r,i],[/[\s\/\(](smart-?tv)[;\)]/i],[[u,v]],[/(android[\w\.\s\-]{0,9});.+build/i],[i,[r,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[e,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[f,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[f,e],[/rv\:([\w\.]{1,9}).+(gecko)/i],[e,f]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[f,e],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[f,[e,c.str,p.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[f,"Windows"],[e,c.str,p.os.windows.version]],[/\((bb)(10);/i],[[f,"BlackBerry"],e],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[f,e],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[f,"Symbian"],e],[/\((series40);/i],[f],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[f,"Firefox OS"],e],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[f,e],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[f,"Chromium OS"],e],[/(sunos)\s?([\w\.\d]*)/i],[[f,"Solaris"],e],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[f,e],[/(haiku)\s(\w+)/i],[f,e],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[e,/_/g,"."],[f,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[f,"Mac OS"],[e,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[f,e]]},h=function(i,r){if(typeof i=="object"&&(r=i,i=t),!(this instanceof h))return new h(i,r).getResult();var u=i||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:rt),f=r?l.extend(it,r):it;return this.getBrowser=function(){var n={name:t,version:t};return c.rgx.call(n,u,f.browser),n.major=l.major(n.version),n},this.getCPU=function(){var n={architecture:t};return c.rgx.call(n,u,f.cpu),n},this.getDevice=function(){var n={vendor:t,model:t,type:t};return c.rgx.call(n,u,f.device),n},this.getEngine=function(){var n={name:t,version:t};return c.rgx.call(n,u,f.engine),n},this.getOS=function(){var n={name:t,version:t};return c.rgx.call(n,u,f.os),n},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return u},this.setUA=function(n){return u=n,this},this},y,b;h.VERSION="0.7.20";h.BROWSER={NAME:f,MAJOR:"major",VERSION:e};h.CPU={ARCHITECTURE:a};h.DEVICE={MODEL:i,VENDOR:r,TYPE:u,CONSOLE:w,MOBILE:s,SMARTTV:v,TABLET:o,WEARABLE:d,EMBEDDED:"embedded"};h.ENGINE={NAME:f,VERSION:e};h.OS={NAME:f,VERSION:e};typeof exports!==k?(typeof module!==k&&module.exports&&(exports=module.exports=h),exports.UAParser=h):typeof define=="function"&&define.amd?define(function(){return h}):n&&(n.UAParser=h);y=n&&(n.jQuery||n.Zepto);typeof y===k||y.ua||(b=new h,y.ua=b.getResult(),y.ua.get=function(){return b.getUA()},y.ua.set=function(n){var t,i;b.setUA(n);t=b.getResult();for(i in t)y.ua[i]=t[i]})}(typeof window=="object"?window:this)