Socket
Socket
Sign inDemoInstall

vee-validate

Package Overview
Dependencies
Maintainers
2
Versions
339
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vee-validate - npm Package Compare versions

Comparing version 2.1.0-beta.2 to 2.1.0-beta.3

2

dist/vee-validate.minimal.min.js

@@ -1,1 +0,1 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VeeValidate=e()}(this,function(){"use strict";var s=!0,a=function(t,e,i){t.addEventListener(e,i,!!s&&{passive:!0})},u=function(t){return-1!==["text","password","search","email","tel","url","textarea"].indexOf(t.type)},o=function(t){return-1!==["radio","checkbox"].indexOf(t.type)},l=function(t,e){return t.getAttribute("data-vv-"+e)},c=function(t){return null==t},d=function(e,i){if(e instanceof RegExp&&i instanceof RegExp)return d(e.source,i.source)&&d(e.flags,i.flags);if(Array.isArray(e)&&Array.isArray(i)){if(e.length!==i.length)return!1;for(var t=0;t<e.length;t++)if(!d(e[t],i[t]))return!1;return!0}return g(e)&&g(i)?Object.keys(e).every(function(t){return d(e[t],i[t])})&&Object.keys(i).every(function(t){return d(e[t],i[t])}):e===i},r=function(t){return c(t)?null:"FORM"===t.tagName?t:c(t.form)?c(t.parentNode)?null:r(t.parentNode):t.form},f=function(t,e,i){if(void 0===i&&(i=void 0),!t||!e)return i;var n=e;return t.split(".").every(function(t){return t in n?(n=n[t],!0):(n=i,!1)}),n},h=function(n,r,a,s){return void 0===r&&(r=0),void 0===a&&(a=!1),void 0===s&&(s={cancelled:!1}),0===r?n:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||s.cancelled||n.apply(void 0,t)},r),i&&n.apply(void 0,t)};var o},p=function(t,e){return e?t?"string"==typeof e?e+"|"+t:x({},e,v(t)):e:t},v=function(n){return n?g(n)?Object.keys(n).reduce(function(t,e){var i=[];return i=!0===n[e]?[]:Array.isArray(n[e])?n[e]:[n[e]],!1!==n[e]&&(t[e]=i),t},{}):"string"!=typeof n?(i("rules must be either a string or an object."),{}):n.split("|").reduce(function(t,e){var i,n,r,a=(n=[],r=(i=e).split(":")[0],~i.indexOf(":")&&(n=i.split(":").slice(1).join(":").split(",")),{name:r,params:n});return a.name&&(t[a.name]=a.params),t},{}):{}},i=function(t){console.warn("[vee-validate] "+t)},m=function(t){return new Error("[vee-validate] "+t)},g=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},y=function(t){return"function"==typeof t},$=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},b=function(e,t,i){var n,r;if(e&&t){if(!Array.isArray(t))return i?(r=t,void((n=e).classList?n.classList.add(r):$(n,r)||(n.className+=" "+r))):void function(t,e){if(t.classList)t.classList.remove(e);else if($(t,e)){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ")}}(e,t);t.forEach(function(t){return b(e,t,i)})}},_=function(t){if(y(Array.from))return Array.from(t);for(var e=[],i=t.length,n=0;n<i;n++)e.push(t[n]);return e},x=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];if(y(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");var n=Object(t);return e.forEach(function(e){null!=e&&Object.keys(e).forEach(function(t){n[t]=e[t]})}),n},e=0,n="{id}",w=function(t,e){for(var i=Array.isArray(t)?t:_(t),n=0;n<i.length;n++)if(e(i[n]))return i[n]},A=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/^(keep-alive|transition|transition-group)$/.test(e)},E=function(t){if("number"==typeof t)return t;if("string"==typeof t)return parseInt(t);var e={};for(var i in t)e[i]=parseInt(t[i]);return e},O=function(n,r){return g(n)&&g(r)&&Object.keys(r).forEach(function(t){var e,i;if(g(r[t]))return n[t]||x(n,((e={})[t]={},e)),void O(n[t],r[t]);x(n,((i={})[t]=r[t],i))}),n},F=function(){this.items=[]};F.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},F.prototype.add=function(t){var e;1<arguments.length&&(t={field:t,msg:arguments[1],rule:arguments[2],scope:c(arguments[3])?null:arguments[3],regenerate:null}),(e=this.items).push.apply(e,this._normalizeError(t))},F.prototype._normalizeError=function(t){return Array.isArray(t)?t.map(function(t){return t.scope=c(t.scope)?null:t.scope,t}):(t.scope=c(t.scope)?null:t.scope,[t])},F.prototype.regenerate=function(){this.items.forEach(function(t){t.msg=y(t.regenerate)?t.regenerate():t.msg})},F.prototype.update=function(e,t){var i=w(this.items,function(t){return t.id===e});if(i){var n=this.items.indexOf(i);this.items.splice(n,1),i.scope=t.scope,this.items.push(i)}},F.prototype.all=function(e){return c(e)?this.items.map(function(t){return t.msg}):this.items.filter(function(t){return t.scope===e}).map(function(t){return t.msg})},F.prototype.any=function(e){return c(e)?!!this.items.length:!!this.items.filter(function(t){return t.scope===e}).length},F.prototype.clear=function(t){c(t)&&(t=null);for(var e=0;e<this.items.length;++e)this.items[e].scope===t&&(this.items.splice(e,1),--e)},F.prototype.collect=function(t,e,r){void 0===r&&(r=!0);var i=function(t){var e,i=0,n=t.reduce(function(t,e){return t[e.field]||(t[e.field]=[],i++),t[e.field].push(r?e.msg:e),t},{});return i<=1?(e=n,y(Object.values)?Object.values(e):e[Object.keys(e)[0]])[0]||[]:n};if(c(t))return i(this.items);var n=c(e)?String(t):e+"."+t,a=this._makeCandidateFilters(n),s=a.isPrimary,o=a.isAlt,l=this.items.reduce(function(t,e){return s(e)&&t.primary.push(e),o(e)&&t.alt.push(e),t},{primary:[],alt:[]});return i(l=l.primary.length?l.primary:l.alt)},F.prototype.count=function(){return this.items.length},F.prototype.firstById=function(e){var t=w(this.items,function(t){return t.id===e});return t?t.msg:void 0},F.prototype.first=function(t,e){void 0===e&&(e=null);var i=c(e)?t:e+"."+t,n=this._match(i);return n&&n.msg},F.prototype.firstRule=function(t,e){var i=this.collect(t,e,!1);return i.length&&i[0].rule||void 0},F.prototype.has=function(t,e){return void 0===e&&(e=null),!!this.first(t,e)},F.prototype.firstByRule=function(t,e,i){void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule===e})[0];return n&&n.msg||void 0},F.prototype.firstNot=function(t,e,i){void 0===e&&(e="required"),void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule!==e})[0];return n&&n.msg||void 0},F.prototype.removeById=function(e){if(Array.isArray(e))this.items=this.items.filter(function(t){return-1===e.indexOf(t.id)});else for(var t=0;t<this.items.length;++t)this.items[t].id===e&&(this.items.splice(t,1),--t)},F.prototype.remove=function(t,e){if(!c(t))for(var i=c(e)?String(t):e+"."+t,n=this._makeCandidateFilters(i).isPrimary,r=0;r<this.items.length;++r)n(this.items[r])&&(this.items.splice(r,1),--r)},F.prototype._makeCandidateFilters=function(e){var i=function(){return!0},n=function(){return!0},r=function(){return!0},t=e.match(/((?:[\w-\s])+\.)?((?:[\w-.*\s])+)(:\w+)?/),a=t[1],s=t[2],o=t[3];if(o&&(o=o.replace(":",""),i=function(t){return t.rule===o}),e.startsWith("#"))return{isPrimary:function(t){return i(t)&&function(t){return e.slice(1).startsWith(t.id)}},isAlt:function(){return!1}};c(a)?n=function(t){return c(t.scope)}:(a=a.replace(".",""),n=function(t){return t.scope===a}),c(s)||"*"===s||(r=function(t){return t.field===s});return{isPrimary:function(t){return r(t)&&i(t)&&n(t)},isAlt:function(t){return i(t)&&t.field===a+"."+s}}},F.prototype._match=function(t){if(!c(t)){var e=this._makeCandidateFilters(t),a=e.isPrimary,s=e.isAlt;return this.items.reduce(function(t,e,i,n){var r=i===n.length-1;return t.primary?r?t.primary:t:(a(e)&&(t.primary=e),s(e)&&(t.alt=e),r?t.primary||t.alt:t)},{})}};var j="en",t=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},I={locale:{configurable:!0}};I.locale.get=function(){return j},I.locale.set=function(t){j=t||"en"},t.prototype.hasLocale=function(t){return!!this.container[t]},t.prototype.setDateFormat=function(t,e){this.container[t]||(this.container[t]={}),this.container[t].dateFormat=e},t.prototype.getDateFormat=function(t){return this.container[t]&&this.container[t].dateFormat?this.container[t].dateFormat:null},t.prototype.getMessage=function(t,e,i){var n=null;return n=this.hasMessage(t,e)?this.container[t].messages[e]:this._getDefaultMessage(t),y(n)?n.apply(void 0,i):n},t.prototype.getFieldMessage=function(t,e,i,n){if(!this.hasLocale(t))return this.getMessage(t,i,n);var r=this.container[t].custom&&this.container[t].custom[e];if(!r||!r[i])return this.getMessage(t,i,n);var a=r[i];return y(a)?a.apply(void 0,n):a},t.prototype._getDefaultMessage=function(t){return this.hasMessage(t,"_default")?this.container[t].messages._default:this.container.en.messages._default},t.prototype.getAttribute=function(t,e,i){return void 0===i&&(i=""),this.hasAttribute(t,e)?this.container[t].attributes[e]:i},t.prototype.hasMessage=function(t,e){return!!(this.hasLocale(t)&&this.container[t].messages&&this.container[t].messages[e])},t.prototype.hasAttribute=function(t,e){return!!(this.hasLocale(t)&&this.container[t].attributes&&this.container[t].attributes[e])},t.prototype.merge=function(t){O(this.container,t)},t.prototype.setMessage=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].messages[e]=i},t.prototype.setAttribute=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].attributes[e]=i},Object.defineProperties(t.prototype,I);var N=function(i){return g(i)?Object.keys(i).reduce(function(t,e){return t[e]=N(i[e]),t},{}):y(i)?i("{0}",["{1}","{2}","{3}"]):i},k=function(t,e){this.i18n=t,this.rootKey=e},L={locale:{configurable:!0}};L.locale.get=function(){return this.i18n.locale},L.locale.set=function(t){i("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},k.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},k.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},k.prototype.getMessage=function(t,e,i){var n=this.rootKey+".messages."+e;return this.i18n.te(n)?this.i18n.t(n,t,i):this.i18n.t(this.rootKey+".messages._default",t,i)},k.prototype.getAttribute=function(t,e,i){void 0===i&&(i="");var n=this.rootKey+".attributes."+e;return this.i18n.te(n)?this.i18n.t(n,t):i},k.prototype.getFieldMessage=function(t,e,i,n){var r=this.rootKey+".custom."+e+"."+i;return this.i18n.te(r)?this.i18n.t(r):this.getMessage(t,i,n)},k.prototype.merge=function(a){var s=this;Object.keys(a).forEach(function(t){var e,i,n=O({},f(t+"."+s.rootKey,s.i18n.messages,{})),r=O(n,(i=a[t],{messages:N(i.messages),custom:N(i.custom),attributes:i.attributes,dateFormat:i.dateFormat}));s.i18n.mergeLocaleMessage(t,((e={})[s.rootKey]=r,e)),r.dateFormat&&s.i18n.setDateTimeFormat(t,r.dateFormat)})},k.prototype.setMessage=function(t,e,i){var n,r;this.merge(((r={})[t]={messages:(n={},n[e]=i,n)},r))},k.prototype.setAttribute=function(t,e,i){var n,r;this.merge(((r={})[t]={attributes:(n={},n[e]=i,n)},r))},Object.defineProperties(k.prototype,L);var V={locale:"en",delay:0,errorBagName:"errors",dictionary:null,strict:!0,fieldsBagName:"fields",classes:!1,classNames:null,events:"input|blur",inject:!0,fastExit:!0,aria:!0,validity:!1,i18n:null,i18nRootKey:"validation"},C=x({},V),M={dictionary:new t({en:{messages:{},attributes:{},custom:{}}})},D=function(){},P={default:{configurable:!0},current:{configurable:!0}};P.default.get=function(){return V},P.current.get=function(){return C},D.dependency=function(t){return M[t]},D.merge=function(t){(C=x({},C,t)).i18n&&D.register("dictionary",new k(C.i18n,C.i18nRootKey))},D.register=function(t,e){M[t]=e},D.resolve=function(t){var e=f("$options.$_veeValidate",t,{});return x({},D.current,e)},Object.defineProperties(D,P);var R=function(){};R.generate=function(t,e,i){var n=R.resolveModel(e,i),r=D.resolve(i.context);return{name:R.resolveName(t,i),el:t,listen:!e.modifiers.disable,scope:R.resolveScope(t,e,i),vm:R.makeVM(i.context),expression:e.value,component:i.componentInstance,classes:r.classes,classNames:r.classNames,getter:R.resolveGetter(t,i,n),events:R.resolveEvents(t,i)||r.events,model:n,delay:R.resolveDelay(t,i,r),rules:R.resolveRules(t,e,i),initial:!!e.modifiers.initial,validity:r.validity,aria:r.aria,initialValue:R.resolveInitialValue(i)}},R.getCtorConfig=function(t){return t.componentInstance?f("componentInstance.$options.$_veeValidate",t):null},R.resolveRules=function(t,e,i){var n="";return e.value||e&&e.expression||(n=l(t,"rules")),e.value&&~["string","object"].indexOf(typeof e.value.rules)?n=e.value.rules:e.value&&(n=e.value),i.componentInstance?n:function(t,e){if(t.required&&(e=p("required",e)),u(t))return"email"===t.type&&(e=p("email"+(t.multiple?":multiple":""),e)),t.pattern&&(e=p("regex:"+t.pattern,e)),0<=t.maxLength&&t.maxLength<524288&&(e=p("max:"+t.maxLength,e)),0<t.minLength&&(e=p("min:"+t.minLength,e)),e;if("number"===t.type)return e=p("decimal",e),""!==t.min&&(e=p("min_value:"+t.min,e)),""!==t.max&&(e=p("max_value:"+t.max,e)),e;if(-1!==["date","week","month","datetime-local","time"].indexOf(t.type)){var i=t.step&&Number(t.step)<60?"HH:mm:ss":"HH:mm";if("date"===t.type)return p("date_format:YYYY-MM-DD",e);if("datetime-local"===t.type)return p("date_format:YYYY-MM-DDT"+i,e);if("month"===t.type)return p("date_format:YYYY-MM",e);if("week"===t.type)return p("date_format:YYYY-[W]WW",e);if("time"===t.type)return p("date_format:"+i,e)}return e}(t,n)},R.resolveInitialValue=function(t){var e=t.data.model||w(t.data.directives,function(t){return"model"===t.name});return e&&e.value},R.makeVM=function(t){return{get $el(){return t.$el},get $refs(){return t.$refs},$watch:t.$watch?t.$watch.bind(t):function(){},$validator:t.$validator?{errors:t.$validator.errors,validate:t.$validator.validate.bind(t.$validator),update:t.$validator.update.bind(t.$validator)}:null}},R.resolveDelay=function(t,e,i){var n=l(t,"delay"),r=i&&"delay"in i?i.delay:0;return!n&&e.componentInstance&&e.componentInstance.$attrs&&(n=e.componentInstance.$attrs["data-vv-delay"]),g(r)?(c(n)||(r.input=n),E(r)):E(n||r)},R.resolveEvents=function(t,e){var i=l(t,"validate-on");if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-validate-on"]),!i&&e.componentInstance){var n=R.getCtorConfig(e);i=n&&n.events}!i&&e.componentInstance&&(i=(e.componentInstance.$options.model||{event:"input"}).event);return i},R.resolveScope=function(t,e,i){void 0===i&&(i={});var n=null;return i.componentInstance&&c(n)&&(n=i.componentInstance.$attrs&&i.componentInstance.$attrs["data-vv-scope"]),c(n)?function(t){var e=l(t,"scope");if(c(e)){var i=r(t);i&&(e=l(i,"scope"))}return c(e)?null:e}(t):n},R.resolveModel=function(t,e){if(t.arg)return{expression:t.arg};var i=e.data.model||w(e.data.directives,function(t){return"model"===t.name});if(!i)return null;var n,r,a,s=!/[^\w.$]/.test(i.expression)&&(n=i.expression,r=e.context,a=r,n.split(".").every(function(t){return t in a&&(a=a[t],!0)})),o=!(!i.modifiers||!i.modifiers.lazy);return s?{expression:i.expression,lazy:o}:{expression:null,lazy:o}},R.resolveName=function(t,e){var i=l(t,"name");if(!i&&!e.componentInstance)return t.name;if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-name"]||e.componentInstance.$attrs.name),!i&&e.componentInstance){var n=R.getCtorConfig(e);return n&&y(n.name)?n.name.bind(e.componentInstance)():e.componentInstance.name}return i};var S={targetOf:null,initial:!(R.resolveGetter=function(i,t,e){if(e&&e.expression)return function(){return f(e.expression,t.context)};if(t.componentInstance){var n=l(i,"value-path")||t.componentInstance.$attrs&&t.componentInstance.$attrs["data-vv-value-path"];if(n)return function(){return f(n,t.componentInstance)};var r=R.getCtorConfig(t);if(r&&y(r.value)){var a=r.value.bind(t.componentInstance);return function(){return a()}}var s=(t.componentInstance.$options.model||{prop:"value"}).prop;return function(){return t.componentInstance[s]}}switch(i.type){case"checkbox":return function(){var t=document.querySelectorAll('input[name="'+i.name+'"]');if((t=_(t).filter(function(t){return t.checked})).length)return t.map(function(t){return t.value})};case"radio":return function(){var t=document.querySelectorAll('input[name="'+i.name+'"]'),e=w(t,function(t){return t.checked});return e&&e.value};case"file":return function(t){return _(i.files)};case"select-multiple":return function(){return _(i.options).filter(function(t){return t.selected}).map(function(t){return t.value})};default:return function(){return i&&i.value}}}),scope:null,listen:!0,name:null,rules:{},vm:null,classes:!1,validity:!0,aria:!0,events:"input|blur",delay:0,classNames:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"}},q=function(t){void 0===t&&(t={}),this.id=(9999<=e&&(e=0,n=n.replace("{id}","_{id}")),e++,n.replace("{id}",String(e))),this.el=t.el,this.updated=!1,this.dependencies=[],this.watchers=[],this.events=[],this.delay=0,this.rules={},this._cacheId(t),this.classNames=x({},S.classNames),t=x({},S,t),this._delay=c(t.delay)?0:t.delay,this.validity=t.validity,this.aria=t.aria,this.flags={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1},this.vm=t.vm,this.component=t.component,this.ctorConfig=this.component?f("$options.$_veeValidate",this.component):void 0,this.update(t),this.initialValue=this.value,this.updated=!1},T={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},rejectsFalse:{configurable:!0}};T.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:{validate:function(){}}},T.isRequired.get=function(){return!!this.rules.required},T.isDisabled.get=function(){return!(!this.component||!this.component.disabled)||!(!this.el||!this.el.disabled)},T.alias.get=function(){if(this._alias)return this._alias;var t=null;return this.el&&(t=l(this.el,"as")),!t&&this.component?this.component.$attrs&&this.component.$attrs["data-vv-as"]:t},T.value.get=function(){if(y(this.getter))return this.getter()},T.rejectsFalse.get=function(){return this.component&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},q.prototype.matches=function(t){return!t||(t.id?this.id===t.id:void 0===t.name&&void 0===t.scope||(void 0===t.scope?this.name===t.name:void 0===t.name?this.scope===t.scope:t.name===this.name&&t.scope===this.scope))},q.prototype._cacheId=function(t){this.el&&!t.targetOf&&(this.el._veeValidateId=this.id)},q.prototype.update=function(t){var e,i,n,r;this.targetOf=t.targetOf||null,this.initial=t.initial||this.initial||!1,!c(t.scope)&&t.scope!==this.scope&&y(this.validator.update)&&this.validator.update(this.id,{scope:t.scope}),this.scope=c(t.scope)?c(this.scope)?null:this.scope:t.scope,this.name=(c(t.name)?t.name:String(t.name))||this.name||null,this.rules=void 0!==t.rules?v(t.rules):this.rules,this.model=t.model||this.model,this.listen=void 0!==t.listen?t.listen:this.listen,this.classes=!(!t.classes&&!this.classes)&&!this.component,this.classNames=g(t.classNames)?O(this.classNames,t.classNames):this.classNames,this.getter=y(t.getter)?t.getter:this.getter,this._alias=t.alias||this._alias,this.events=t.events?"string"==typeof(e=t.events)&&e.length?e.split("|"):[]:this.events,this.delay=(i=this.events,n=t.delay||this.delay,r=this._delay,"number"==typeof n?i.reduce(function(t,e){return t[e]=n,t},{}):i.reduce(function(t,e){return t[e]="object"==typeof n&&e in n?n[e]:"number"==typeof r?r:r&&r[e]||0,t},{})),this.updateDependencies(),this.addActionListeners(),void 0!==t.rules&&(this.flags.required=this.isRequired),this.flags.validated&&void 0!==t.rules&&this.updated&&this.validator.validate("#"+this.id),this.updated=!0,this.addValueListeners(),this.el&&(this.updateClasses(),this.updateAriaAttrs())},q.prototype.reset=function(){var e=this;this._cancellationToken&&(this._cancellationToken.cancelled=!0,delete this._cancellationToken);var i={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1};Object.keys(this.flags).filter(function(t){return"required"!==t}).forEach(function(t){e.flags[t]=i[t]}),this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},q.prototype.setFlags=function(e){var i=this,n={pristine:"dirty",dirty:"pristine",valid:"invalid",invalid:"valid",touched:"untouched",untouched:"touched"};Object.keys(e).forEach(function(t){i.flags[t]=e[t],n[t]&&void 0===e[n[t]]&&(i.flags[n[t]]=!e[t])}),void 0===e.untouched&&void 0===e.touched&&void 0===e.dirty&&void 0===e.pristine||this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},q.prototype.updateDependencies=function(){var s=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var t=Object.keys(this.rules).reduce(function(t,e){return W.isTargetRule(e)&&t.push({selector:s.rules[e][0],name:e}),t},[]);t.length&&this.vm&&this.vm.$el&&t.forEach(function(t){var e=t.selector,i=t.name,n=s.vm.$refs[e],r=Array.isArray(n)?n[0]:n;if(r){var a={vm:s.vm,classes:s.classes,classNames:s.classNames,delay:s.delay,scope:s.scope,events:s.events.join("|"),initial:s.initial,targetOf:s.id};y(r.$watch)?(a.component=r,a.el=r.$el,a.getter=R.resolveGetter(r.$el,r.$vnode)):(a.el=r,a.getter=R.resolveGetter(r,{})),s.dependencies.push({name:i,field:new q(a)})}})},q.prototype.unwatch=function(e){if(void 0===e&&(e=null),!e)return this.watchers.forEach(function(t){return t.unwatch()}),void(this.watchers=[]);this.watchers.filter(function(t){return e.test(t.tag)}).forEach(function(t){return t.unwatch()}),this.watchers=this.watchers.filter(function(t){return!e.test(t.tag)})},q.prototype.updateClasses=function(){var e=this;if(this.classes&&!this.isDisabled){var t=function(t){b(t,e.classNames.dirty,e.flags.dirty),b(t,e.classNames.pristine,e.flags.pristine),b(t,e.classNames.touched,e.flags.touched),b(t,e.classNames.untouched,e.flags.untouched),!c(e.flags.valid)&&e.flags.validated&&b(t,e.classNames.valid,e.flags.valid),!c(e.flags.invalid)&&e.flags.validated&&b(t,e.classNames.invalid,e.flags.invalid)};if(o(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');_(i).forEach(t)}else t(this.el)}},q.prototype.addActionListeners=function(){var t=this;if(this.unwatch(/class/),this.el){var e=function(){t.flags.touched=!0,t.flags.untouched=!1,t.classes&&(b(t.el,t.classNames.touched,!0),b(t.el,t.classNames.untouched,!1)),t.unwatch(/^class_blur$/)},i=u(this.el)?"input":"change",n=function(){t.flags.dirty=!0,t.flags.pristine=!1,t.classes&&(b(t.el,t.classNames.pristine,!1),b(t.el,t.classNames.dirty,!0)),t.unwatch(/^class_input$/)};if(this.component&&y(this.component.$once))return this.component.$once("input",n),this.component.$once("blur",e),this.watchers.push({tag:"class_input",unwatch:function(){t.component.$off("input",n)}}),void this.watchers.push({tag:"class_blur",unwatch:function(){t.component.$off("blur",e)}});if(this.el){a(this.el,i,n);var r=o(this.el)?"change":"blur";a(this.el,r,e),this.watchers.push({tag:"class_input",unwatch:function(){t.el.removeEventListener(i,n)}}),this.watchers.push({tag:"class_blur",unwatch:function(){t.el.removeEventListener(r,e)}})}}},q.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!u(this.el))&&this.value!==this.initialValue},q.prototype.addValueListeners=function(){var n=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var r={cancelled:!1},a=this.targetOf?function(){n.flags.changed=n.checkValueChanged(),n.validator.validate("#"+n.targetOf)}:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];(0===t.length||y(Event)&&t[0]instanceof Event||t[0]&&t[0].srcElement)&&(t[0]=n.value),n.flags.changed=n.checkValueChanged(),n.validator.validate("#"+n.id,t[0])},e=this.component||u(this.el)?"input":"change";e=this.model&&this.model.lazy?"change":e,this.component&&this.component.$options.model&&(e=this.component.$options.model.event);var t=!this.events.length||this.component||u(this.el)?this.events:["change"];if(this.model&&-1!==t.indexOf(e)){var i=null,s=this.model.expression;if(this.model.expression&&(i=this.vm,s=this.model.expression),!s&&this.component&&this.component.$options.model&&(i=this.component,s=this.component.$options.model.prop||"value"),i&&s){var o=h(a,this.delay[e],!1,r),l=i.$watch(s,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,n._cancellationToken=r,o.apply(void 0,t)});this.watchers.push({tag:"input_model",unwatch:l}),t=t.filter(function(t){return t!==e})}}t.forEach(function(t){var i=h(a,n.delay[t],!1,r),e=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];n.flags.pending=!0,n._cancellationToken=r,i.apply(void 0,t)};n._addComponentEventListener(t,e),n._addHTMLEventListener(t,e)})}},q.prototype._addComponentEventListener=function(t,e){var i=this;this.component&&(this.component.$on(t,e),this.watchers.push({tag:"input_vue",unwatch:function(){i.component.$off(t,e)}}))},q.prototype._addHTMLEventListener=function(e,i){var n=this;if(this.el&&!this.component){var r=function(t){a(t,e,i),n.watchers.push({tag:"input_native",unwatch:function(){t.removeEventListener(e,i)}})};if(r(this.el),o(this.el)){var t=document.querySelectorAll('input[name="'+this.el.name+'"]');_(t).forEach(function(t){t._veeValidateId&&t!==n.el||r(t)})}}},q.prototype.updateAriaAttrs=function(){var e=this;if(this.aria&&this.el&&y(this.el.setAttribute)){var t=function(t){t.setAttribute("aria-required",e.isRequired?"true":"false"),t.setAttribute("aria-invalid",e.flags.invalid?"true":"false")};if(o(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');_(i).forEach(t)}else t(this.el)}},q.prototype.updateCustomValidity=function(){this.validity&&this.el&&y(this.el.setCustomValidity)&&this.validator.errors&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},q.prototype.destroy=function(){this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(q.prototype,T);var Y=function(){this.items=[]},z={length:{configurable:!0}};Y.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},z.length.get=function(){return this.items.length},Y.prototype.find=function(e){return w(this.items,function(t){return t.matches(e)})},Y.prototype.filter=function(i){return Array.isArray(i)?this.items.filter(function(e){return i.some(function(t){return e.matches(t)})}):this.items.filter(function(t){return t.matches(i)})},Y.prototype.map=function(t){return this.items.map(t)},Y.prototype.remove=function(t){var e=null;if(!(e=t instanceof q?t:this.find(t)))return null;var i=this.items.indexOf(e);return this.items.splice(i,1),e},Y.prototype.push=function(t){if(!(t instanceof q))throw m("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw m("Field id must be defined.");if(this.find({id:t.id}))throw m("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(Y.prototype,z);var B={},K=!0,H=["confirmed","after","before"],W=function(t,e){var i=this;void 0===e&&(e={fastExit:!0}),this.strict=K,this.errors=new F,this.fields=new Y,this.flags={},this._createFields(t),this.paused=!1,this.fastExit=e.fastExit||!1,this.ownerId=e.vm&&e.vm._uid,this._localeListener=function(){i.errors.regenerate()},this._vm&&"undefined"!=typeof window&&this._vm.$on("localeChanged",this._localeListener)},G={dictionary:{configurable:!0},_vm:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}},U={dictionary:{configurable:!0},locale:{configurable:!0},rules:{configurable:!0}};G.dictionary.get=function(){return D.dependency("dictionary")},G._vm.get=function(){return D.dependency("vm")},U.dictionary.get=function(){return D.dependency("dictionary")},G.locale.get=function(){return this.dictionary.locale},G.locale.set=function(t){W.locale=t},U.locale.get=function(){return W.dictionary.locale},U.locale.set=function(t){var e=t!==W.dictionary.locale;W.dictionary.locale=t,e&&D.dependency("vm")&&D.dependency("vm").$emit("localeChanged")},G.rules.get=function(){return B},U.rules.get=function(){return B},W.create=function(t,e){return new W(t,e)},W.extend=function(t,e,i){void 0===i&&(i={}),W._guardExtend(t,e),W._merge(t,e),i&&i.hasTarget&&H.push(t)},W.remove=function(t){delete B[t];var e=H.indexOf(t);-1!==e&&H.splice(e,1)},W.isTargetRule=function(t){return-1!==H.indexOf(t)},W.setStrictMode=function(t){void 0===t&&(t=!0),K=t},W.prototype.localize=function(t,e){W.localize(t,e)},W.localize=function(t,e){var i;if(g(t))W.dictionary.merge(t);else{if(e){var n=t||e.name;e=x({},e),W.dictionary.merge(((i={})[n]=e,i))}t&&(W.locale=t)}},W.prototype.attach=function(e){1<arguments.length&&(e=x({},{name:e,rules:arguments[1]},arguments[2]||{vm:{$validator:this}}));var t=e.initialValue;return e instanceof q||(e=new q(e)),this.fields.push(e),e.initial?this.validate("#"+e.id,t||e.value):this._validate(e,t||e.value,!0).then(function(t){e.flags.valid=t.valid,e.flags.invalid=!t.valid}),this._addFlag(e,e.scope),e},W.prototype.flag=function(t,e){var i=this._resolveField(t);i&&e&&i.setFlags(e)},W.prototype.detach=function(t,e){var i=t instanceof q?t:this._resolveField(t,e);if(i){i.destroy(),this.errors.remove(i.name,i.scope,i.id),this.fields.remove(i);var n=this.flags;!c(i.scope)&&n["$"+i.scope]?delete n["$"+i.scope][i.name]:c(i.scope)&&delete n[i.name],this.flags=x({},n)}},W.prototype.extend=function(t,e,i){void 0===i&&(i={}),W.extend(t,e,i)},W.prototype.reset=function(t){var e=this;return this._vm.$nextTick().then(function(){return e._vm.$nextTick()}).then(function(){e.fields.filter(t).forEach(function(t){t.reset(),e.errors.remove(t.name,t.scope,t.id)})})},W.prototype.update=function(t,e){var i=e.scope,n=this._resolveField("#"+t);n&&(this.errors.update(t,{scope:i}),!c(n.scope)&&this.flags["$"+n.scope]?delete this.flags["$"+n.scope][n.name]:c(n.scope)&&delete this.flags[n.name],this._addFlag(n,i))},W.prototype.remove=function(t){W.remove(t)},W.prototype.validate=function(t,e,i,n){var r=this;if(void 0===i&&(i=null),void 0===n&&(n=!1),this.paused)return Promise.resolve(!0);if(0===arguments.length)return this.validateScopes();if(1===arguments.length&&"*"===t)return this.validateAll();if(1===arguments.length&&"string"==typeof t&&/^(.+)\.\*$/.test(t)){var a=t.match(/^(.+)\.\*$/)[1];return this.validateAll(a)}var s=this._resolveField(t,i);return s?(n||(s.flags.pending=!0),1===arguments.length&&(e=s.value),this._validate(s,e).then(function(t){return n||r._handleValidationResults([t]),t.valid})):this._handleFieldNotFound(t,i)},W.prototype.pause=function(){return this.paused=!0,this},W.prototype.resume=function(){return this.paused=!1,this},W.prototype.validateAll=function(e,i,n){var r=this;if(void 0===i&&(i=null),void 0===n&&(n=!1),this.paused)return Promise.resolve(!0);var t=null,a=!1;return"string"==typeof e?t={scope:e}:g(e)?(t=Object.keys(e).map(function(t){return{name:t,scope:i}}),a=!0):t=Array.isArray(e)?e.map(function(t){return{name:t,scope:i}}):{scope:i},Promise.all(this.fields.filter(t).map(function(t){return r._validate(t,a?e[t.name]:t.value)})).then(function(t){return n||r._handleValidationResults(t),t.every(function(t){return t.valid})})},W.prototype.validateScopes=function(e){var i=this;return void 0===e&&(e=!1),this.paused?Promise.resolve(!0):Promise.all(this.fields.map(function(t){return i._validate(t,t.value)})).then(function(t){return e||i._handleValidationResults(t),t.every(function(t){return t.valid})})},W.prototype.destroy=function(){this._vm.$off("localeChanged",this._localeListener)},W.prototype._createFields=function(i){var n=this;i&&Object.keys(i).forEach(function(t){var e=x({},{name:t,rules:i[t]});n.attach(e)})},W.prototype._getDateFormat=function(t){var e=null;return t.date_format&&Array.isArray(t.date_format)&&(e=t.date_format[0]),e||this.dictionary.getDateFormat(this.locale)},W.prototype._isADateRule=function(t){return!!~["after","before","date_between","date_format"].indexOf(t)},W.prototype._formatErrorMessage=function(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n=null);var r=this._getFieldDisplayName(t),a=this._getLocalizedParams(e,n);return this.dictionary.getFieldMessage(this.locale,t.name,e.name,[r,a,i])},W.prototype._getLocalizedParams=function(t,e){return void 0===e&&(e=null),~H.indexOf(t.name)&&t.params&&t.params[0]?[e||this.dictionary.getAttribute(this.locale,t.params[0],t.params[0])].concat(t.params.slice(1)):t.params},W.prototype._getFieldDisplayName=function(t){return t.alias||this.dictionary.getAttribute(this.locale,t.name,t.name)},W.prototype._addFlag=function(t,e){var i,n,r;if(void 0===e&&(e=null),c(e))this.flags=x({},this.flags,((i={})[""+t.name]=t.flags,i));else{var a=x({},this.flags["$"+e]||{},((n={})[""+t.name]=t.flags,n));this.flags=x({},this.flags,((r={})["$"+e]=a,r))}},W.prototype._test=function(n,t,r){var a=this,e=B[r.name],i=Array.isArray(r.params)?_(r.params):[],s=null;if(!e||"function"!=typeof e)return Promise.reject(m("No such validator '"+r.name+"' exists."));if(-1!==H.indexOf(r.name)){var o=w(n.dependencies,function(t){return t.name===r.name});o&&(s=o.field.alias,i=[o.field.value].concat(i.slice(1)))}else"required"===r.name&&n.rejectsFalse&&(i=i.length?i:[!0]);if(this._isADateRule(r.name)){var l=this._getDateFormat(n.rules);"date_format"!==r.name&&i.push(l)}var u=e(t,i);return y(u.then)?u.then(function(t){var e=!0,i={};return Array.isArray(t)?e=t.every(function(t){return g(t)?t.valid:t}):(e=g(t)?t.valid:t,i=t.data),{valid:e,errors:e?[]:[a._createFieldError(n,r,i,s)]}}):(g(u)||(u={valid:u,data:{}}),{valid:u.valid,errors:u.valid?[]:[this._createFieldError(n,r,u.data,s)]})},W._merge=function(t,e){y(e)?B[t]=e:(B[t]=e.validate,e.getMessage&&W.dictionary.setMessage(this.locale,t,e.getMessage))},W._guardExtend=function(t,e){if(!y(e)&&!y(e.validate))throw m("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},W.prototype._createFieldError=function(t,e,i,n){var r=this;return{id:t.id,field:t.name,msg:this._formatErrorMessage(t,e,i,n),rule:e.name,scope:t.scope,regenerate:function(){return r._formatErrorMessage(t,e,i,n)}}},W.prototype._resolveField=function(t,e){if(!c(e))return this.fields.find({name:t,scope:e});if("#"===t[0])return this.fields.find({id:t.slice(1)});if(-1<t.indexOf(".")){var i=t.split("."),n=i[0],r=i.slice(1),a=this.fields.find({name:r.join("."),scope:n});if(a)return a}return this.fields.find({name:t,scope:null})},W.prototype._handleFieldNotFound=function(t,e){if(!this.strict)return Promise.resolve(!0);var i=c(e)?t:(c(e)?"":e+".")+t;return Promise.reject(m('Validating a non-existent field: "'+i+'". Use "attach()" first.'))},W.prototype._handleValidationResults=function(i){var e=this,t=i.map(function(t){return{id:t.id}});this.errors.removeById(t.map(function(t){return t.id})),i.forEach(function(t){e.errors.remove(t.field,t.scope)});var n=i.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(n),this.fields.filter(t).forEach(function(e){var t=w(i,function(t){return t.id===e.id});e.setFlags({pending:!1,valid:t.valid,validated:!0})})},W.prototype._validate=function(i,n){var r=this;if(i.isDisabled||!i.isRequired&&(c(n)||""===n))return Promise.resolve({valid:!0,id:i.id,field:i.name,scope:i.scope,errors:[]});var a=[],s=[],o=!1;return Object.keys(i.rules).some(function(t){var e=r._test(i,n,{name:t,params:i.rules[t]});return y(e.then)?a.push(e):r.fastExit&&!e.valid?(s.push.apply(s,e.errors),o=!0):a.push(new Promise(function(t){return t(e)})),o}),o?Promise.resolve({valid:!1,errors:s,id:i.id,field:i.name,scope:i.scope}):Promise.all(a).then(function(t){return t.reduce(function(t,e){var i;return e.valid||(i=t.errors).push.apply(i,e.errors),t.valid=t.valid&&e.valid,t},{valid:!0,errors:s,id:i.id,field:i.name,scope:i.scope})})},Object.defineProperties(W.prototype,G),Object.defineProperties(W,U);var J=function(t,e){return new W(null,{vm:t,fastExit:e.fastExit})},Q={provide:function(){return this.$validator&&!A(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!A(this.$vnode)){this.$parent||D.merge(this.$options.$_veeValidate||{});var t=D.resolve(this),e=this.$options._base;(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=J(this,t));var i,n=(i=this.$options.inject,!(!g(i)||!i.$validator));this.$validator||!t.inject||n||(this.$validator=J(this,t)),(n||this.$validator)&&(!n&&this.$validator&&(e.util.defineReactive(this.$validator,"errors",this.$validator.errors),e.util.defineReactive(this.$validator,"flags",this.$validator.flags)),this.$options.computed||(this.$options.computed={}),this.$options.computed[t.errorBagName||"errors"]=function(){return this.$validator.errors},this.$options.computed[t.fieldsBagName||"fields"]=function(){return this.$validator.flags})}},beforeDestroy:function(){A(this.$vnode)||this.$validator&&this.$validator.ownerId===this._uid&&(this.$validator.pause(),this.$validator.destroy())}};function X(t,e){return e&&e.$validator?e.$validator.fields.find({id:t._veeValidateId}):null}var Z,tt={bind:function(t,e,i){var n=i.context.$validator;if(n){var r=R.generate(t,e,i);n.attach(r)}},inserted:function(t,e,i){var n=X(t,i.context),r=R.resolveScope(t,e,i);n&&r!==n.scope&&(n.update({scope:r}),n.updated=!1)},update:function(t,e,i){var n=X(t,i.context);if(!(!n||n.updated&&d(e.value,e.oldValue))){var r=R.resolveScope(t,e,i),a=R.resolveRules(t,e,i);n.update({scope:r,rules:a})}},unbind:function(t,e,i){var n=i.context,r=X(t,n);r&&n.$validator.detach(r)}};var et=function(i,n){var r={pristine:function(t,e){return t&&e},dirty:function(t,e){return t||e},touched:function(t,e){return t||e},untouched:function(t,e){return t&&e},valid:function(t,e){return t&&e},invalid:function(t,e){return t||e},pending:function(t,e){return t||e},required:function(t,e){return t||e},validated:function(t,e){return t&&e}};return Object.keys(r).reduce(function(t,e){return t[e]=r[e](i[e],n[e]),t},{})},it=function(n,r){return void 0===r&&(r=!0),Object.keys(n).reduce(function(t,e){if(!t)return t=x({},n[e]);var i=0===e.indexOf("$");return r&&i?et(it(n[e]),t):!r&&i?t:t=et(t,n[e])},null)},nt={name:"vv-error",inject:["$validator"],functional:!0,props:{for:{type:String,required:!0},tag:{type:String,default:"span"}},render:function(t,e){var i=e.props,n=e.injections;return t(i.tag,n.$validator.errors.first(i.for))}};return{install:function(t,e){if(void 0===e&&(e={}),!Z||t!==Z){!function(){try{var t=Object.defineProperty({},"passive",{get:function(){s=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){s=!1}}();var i=new(Z=t);D.register("vm",i),D.merge(e);var n=D.current,r=n.dictionary,a=n.i18n;r&&W.localize(r),a&&a._vm&&y(a._vm.$watch)&&a._vm.$watch("locale",function(){i.$emit("localeChanged")}),!a&&e.locale&&W.localize(e.locale),W.setStrictMode(D.current.strict),Z.mixin(Q),Z.directive("validate",tt)}},use:function(t,e){if(void 0===e&&(e={}),!y(t))return i("The plugin must be a callable function");t({Validator:W,ErrorBag:F,Rules:W.rules},e)},directive:tt,mixin:Q,mapFields:function(t){if(!t)return function(){return it(this.$validator.flags)};var e,a=(e=t,Array.isArray(e)?e.reduce(function(t,e){return~e.indexOf(".")?t[e.split(".")[1]]=e:t[e]=e,t},{}):e);return Object.keys(a).reduce(function(t,n){var r=a[n];return t[n]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===a[n])return it(this.$validator.flags,!1);if(r.indexOf(".")<=0)return{};var t=r.split("."),e=t[0],i=t.slice(1);return e=this.$validator.flags["$"+e],"*"===(i=i.join("."))&&e?it(e):e&&e[i]?e[i]:{}},t},{})},Validator:W,ErrorBag:F,ErrorComponent:nt,version:"2.1.0-beta.1"}});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.VeeValidate=e()}(this,function(){"use strict";var u=!0,a=function(t,e,n){t.addEventListener(e,n,!!u&&{passive:!0})},s=function(t){return-1!==["text","password","search","email","tel","url","textarea"].indexOf(t.type)},o=function(t){return-1!==["radio","checkbox"].indexOf(t.type)},l=function(t,e){return t.getAttribute("data-vv-"+e)},d=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.every(function(t){return null==t})},c=function(e,n){if(e instanceof RegExp&&n instanceof RegExp)return c(e.source,n.source)&&c(e.flags,n.flags);if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;for(var t=0;t<e.length;t++)if(!c(e[t],n[t]))return!1;return!0}return g(e)&&g(n)?Object.keys(e).every(function(t){return c(e[t],n[t])})&&Object.keys(n).every(function(t){return c(e[t],n[t])}):e===n},r=function(t){return d(t)?null:"FORM"===t.tagName?t:d(t.form)?d(t.parentNode)?null:r(t.parentNode):t.form},f=function(t,e,n){if(void 0===n&&(n=void 0),!t||!e)return n;var i=e;return t.split(".").every(function(t){return t in i?(i=i[t],!0):(i=n,!1)}),i},p=function(i,r,a,s){return void 0===r&&(r=0),void 0===a&&(a=!1),void 0===s&&(s={cancelled:!1}),0===r?i:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=a&&!o;clearTimeout(o),o=setTimeout(function(){o=null,a||s.cancelled||i.apply(void 0,t)},r),n&&i.apply(void 0,t)};var o},h=function(t,e){return e?t?"string"==typeof e?e+"|"+t:I({},e,v(t)):e:t},v=function(i){return i?g(i)?Object.keys(i).reduce(function(t,e){var n=[];return n=!0===i[e]?[]:Array.isArray(i[e])?i[e]:[i[e]],!1!==i[e]&&(t[e]=n),t},{}):"string"!=typeof i?(n("rules must be either a string or an object."),{}):i.split("|").reduce(function(t,e){var n,i,r,a=(i=[],r=(n=e).split(":")[0],~n.indexOf(":")&&(i=n.split(":").slice(1).join(":").split(",")),{name:r,params:i});return a.name&&(t[a.name]=a.params),t},{}):{}},n=function(t){console.warn("[vee-validate] "+t)},m=function(t){return new Error("[vee-validate] "+t)},g=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},y=function(t){return"function"==typeof t},b=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},_=function(e,t,n){var i,r;if(e&&t){if(!Array.isArray(t))return n?(r=t,void((i=e).classList?i.classList.add(r):b(i,r)||(i.className+=" "+r))):void function(t,e){if(t.classList)t.classList.remove(e);else if(b(t,e)){var n=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(n," ")}}(e,t);t.forEach(function(t){return _(e,t,n)})}},$=function(t){if(y(Array.from))return Array.from(t);for(var e=[],n=t.length,i=0;i<n;i++)e.push(t[i]);return e},I=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];if(y(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");var i=Object(t);return e.forEach(function(e){null!=e&&Object.keys(e).forEach(function(t){i[t]=e[t]})}),i},e=0,i="{id}",x=function(t,e){for(var n=Array.isArray(t)?t:$(t),i=0;i<n.length;i++)if(e(n[i]))return n[i]},w=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/^(keep-alive|transition|transition-group)$/.test(e)},A=function(t){if("number"==typeof t)return t;if("string"==typeof t)return parseInt(t);var e={};for(var n in t)e[n]=parseInt(t[n]);return e},E=function(i,r){return g(i)&&g(r)&&Object.keys(r).forEach(function(t){var e,n;if(g(r[t]))return i[t]||I(i,((e={})[t]={},e)),void E(i[t],r[t]);I(i,((n={})[t]=r[t],n))}),i},O="en",t=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},j={locale:{configurable:!0}};j.locale.get=function(){return O},j.locale.set=function(t){O=t||"en"},t.prototype.hasLocale=function(t){return!!this.container[t]},t.prototype.setDateFormat=function(t,e){this.container[t]||(this.container[t]={}),this.container[t].dateFormat=e},t.prototype.getDateFormat=function(t){return this.container[t]&&this.container[t].dateFormat?this.container[t].dateFormat:null},t.prototype.getMessage=function(t,e,n){var i=null;return i=this.hasMessage(t,e)?this.container[t].messages[e]:this._getDefaultMessage(t),y(i)?i.apply(void 0,n):i},t.prototype.getFieldMessage=function(t,e,n,i){if(!this.hasLocale(t))return this.getMessage(t,n,i);var r=this.container[t].custom&&this.container[t].custom[e];if(!r||!r[n])return this.getMessage(t,n,i);var a=r[n];return y(a)?a.apply(void 0,i):a},t.prototype._getDefaultMessage=function(t){return this.hasMessage(t,"_default")?this.container[t].messages._default:this.container.en.messages._default},t.prototype.getAttribute=function(t,e,n){return void 0===n&&(n=""),this.hasAttribute(t,e)?this.container[t].attributes[e]:n},t.prototype.hasMessage=function(t,e){return!!(this.hasLocale(t)&&this.container[t].messages&&this.container[t].messages[e])},t.prototype.hasAttribute=function(t,e){return!!(this.hasLocale(t)&&this.container[t].attributes&&this.container[t].attributes[e])},t.prototype.merge=function(t){E(this.container,t)},t.prototype.setMessage=function(t,e,n){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].messages[e]=n},t.prototype.setAttribute=function(t,e,n){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].attributes[e]=n},Object.defineProperties(t.prototype,j);var F=function(n){return g(n)?Object.keys(n).reduce(function(t,e){return t[e]=F(n[e]),t},{}):y(n)?n("{0}",["{1}","{2}","{3}"]):n},N=function(t,e){this.i18n=t,this.rootKey=e},k={locale:{configurable:!0}};k.locale.get=function(){return this.i18n.locale},k.locale.set=function(t){n("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},N.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},N.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},N.prototype.getMessage=function(t,e,n){var i=this.rootKey+".messages."+e;return this.i18n.te(i)?this.i18n.t(i,t,n):this.i18n.t(this.rootKey+".messages._default",t,n)},N.prototype.getAttribute=function(t,e,n){void 0===n&&(n="");var i=this.rootKey+".attributes."+e;return this.i18n.te(i)?this.i18n.t(i,t):n},N.prototype.getFieldMessage=function(t,e,n,i){var r=this.rootKey+".custom."+e+"."+n;return this.i18n.te(r)?this.i18n.t(r):this.getMessage(t,n,i)},N.prototype.merge=function(s){var o=this;Object.keys(s).forEach(function(t){var e,n,i,r=E({},f(t+"."+o.rootKey,o.i18n.messages,{})),a=E(r,(n=s[t],i={},n.messages&&(i.messages=F(n.messages)),n.custom&&(i.custom=F(n.custom)),n.attributes&&(i.attributes=n.attributes),d(n.dateFormat)||(i.dateFormat=n.dateFormat),i));o.i18n.mergeLocaleMessage(t,((e={})[o.rootKey]=a,e)),a.dateFormat&&o.i18n.setDateTimeFormat(t,a.dateFormat)})},N.prototype.setMessage=function(t,e,n){var i,r;this.merge(((r={})[t]={messages:(i={},i[e]=n,i)},r))},N.prototype.setAttribute=function(t,e,n){var i,r;this.merge(((r={})[t]={attributes:(i={},i[e]=n,i)},r))},Object.defineProperties(N.prototype,k);var L={locale:"en",delay:0,errorBagName:"errors",dictionary:null,strict:!0,fieldsBagName:"fields",classes:!1,classNames:null,events:"input|blur",inject:!0,fastExit:!0,aria:!0,validity:!1,i18n:null,i18nRootKey:"validation"},V=I({},L),M={dictionary:new t({en:{messages:{},attributes:{},custom:{}}})},C=function(){},P={default:{configurable:!0},current:{configurable:!0}};P.default.get=function(){return L},P.current.get=function(){return V},C.dependency=function(t){return M[t]},C.merge=function(t){(V=I({},V,t)).i18n&&C.register("dictionary",new N(V.i18n,V.i18nRootKey))},C.register=function(t,e){M[t]=e},C.resolve=function(t){var e=f("$options.$_veeValidate",t,{});return I({},C.current,e)},Object.defineProperties(C,P);var D=function t(e,n){void 0===e&&(e=null),void 0===n&&(n=null),this.vmId=n||null,this.items=e&&e instanceof t?e.items:[]};D.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},D.prototype.add=function(t){var e;(e=this.items).push.apply(e,this._normalizeError(t))},D.prototype._normalizeError=function(t){var e=this;return Array.isArray(t)?t.map(function(t){return t.scope=d(t.scope)?null:t.scope,t.vmId=d(t.vmId)?e.vmId||null:t.vmId,t}):(t.scope=d(t.scope)?null:t.scope,[t])},D.prototype.regenerate=function(){this.items.forEach(function(t){t.msg=y(t.regenerate)?t.regenerate():t.msg})},D.prototype.update=function(e,t){var n=x(this.items,function(t){return t.id===e});if(n){var i=this.items.indexOf(n);this.items.splice(i,1),n.scope=t.scope,this.items.push(n)}},D.prototype.all=function(n){var i=this;return this.items.filter(function(t){var e=!0;return d(n)||(e=t.scope===n),d(i.vmId)||(e=t.vmId===i.vmId),e}).map(function(t){return t.msg})},D.prototype.any=function(n){var i=this;return!!this.items.filter(function(t){var e=!0;return d(n)||(e=t.scope===n),d(i.vmId)||(e=t.vmId===i.vmId),e}).length},D.prototype.clear=function(t){var e=this,n=d(this.id)?function(){return!0}:function(t){return t.vmId===e.vmId};d(t)&&(t=null);for(var i=0;i<this.items.length;++i)n(e.items[i])&&e.items[i].scope===t&&(e.items.splice(i,1),--i)},D.prototype.collect=function(t,e,r){void 0===r&&(r=!0);var n=function(t){var e,n=0,i=t.reduce(function(t,e){return t[e.field]||(t[e.field]=[],n++),t[e.field].push(r?e.msg:e),t},{});return n<=1?(e=i,y(Object.values)?Object.values(e):e[Object.keys(e)[0]])[0]||[]:i};if(d(t))return n(this.items);var i=d(e)?String(t):e+"."+t,a=this._makeCandidateFilters(i),s=a.isPrimary,o=a.isAlt,u=this.items.reduce(function(t,e){return s(e)&&t.primary.push(e),o(e)&&t.alt.push(e),t},{primary:[],alt:[]});return n(u=u.primary.length?u.primary:u.alt)},D.prototype.count=function(){var e=this;return this.vmId?this.items.filter(function(t){return t.vmId===e.vmId}).length:this.items.length},D.prototype.firstById=function(e){var t=x(this.items,function(t){return t.id===e});return t?t.msg:void 0},D.prototype.first=function(t,e){void 0===e&&(e=null);var n=d(e)?t:e+"."+t,i=this._match(n);return i&&i.msg},D.prototype.firstRule=function(t,e){var n=this.collect(t,e,!1);return n.length&&n[0].rule||void 0},D.prototype.has=function(t,e){return void 0===e&&(e=null),!!this.first(t,e)},D.prototype.firstByRule=function(t,e,n){void 0===n&&(n=null);var i=this.collect(t,n,!1).filter(function(t){return t.rule===e})[0];return i&&i.msg||void 0},D.prototype.firstNot=function(t,e,n){void 0===e&&(e="required"),void 0===n&&(n=null);var i=this.collect(t,n,!1).filter(function(t){return t.rule!==e})[0];return i&&i.msg||void 0},D.prototype.removeById=function(e){var t=function(t){return t.id===e};Array.isArray(e)&&(t=function(t){return-1!==e.indexOf(t.id)});for(var n=0;n<this.items.length;++n)t(this.items[n])&&(this.items.splice(n,1),--n)},D.prototype.remove=function(t,e){if(!d(t))for(var n=d(e)?String(t):e+"."+t,i=this._makeCandidateFilters(n).isPrimary,r=0;r<this.items.length;++r)i(this.items[r])&&(this.items.splice(r,1),--r)},D.prototype._makeCandidateFilters=function(t){var e=this,n=function(){return!0},i=function(){return!0},r=function(){return!0},a=function(){return!0},s=function(t){var e=null;if(-1!==t.indexOf(":")&&(e=t.split(":").pop(),t=t.replace(":"+e,"")),"#"===t[0])return{id:t.slice(1),rule:e,name:null,scope:null};var n=null,i=t;if(-1!==t.indexOf(".")){var r=t.split(".");n=r[0],i=r.slice(1).join(".")}return{id:null,scope:n,name:i,rule:e}}(t),o=s.id,u=s.rule,l=s.scope,c=s.name;if(u&&(n=function(t){return t.rule===u}),o)return{isPrimary:function(t){return n(t)&&function(t){return o===t.id}},isAlt:function(){return!1}};i=d(l)?function(t){return d(t.scope)}:function(t){return t.scope===l},d(c)||"*"===c||(r=function(t){return t.field===c}),d(this.vmId)||(a=function(t){return t.vmId===e.vmId});return{isPrimary:function(t){return a(t)&&r(t)&&n(t)&&i(t)},isAlt:function(t){return a(t)&&n(t)&&t.field===l+"."+c}}},D.prototype._match=function(t){if(!d(t)){var e=this._makeCandidateFilters(t),a=e.isPrimary,s=e.isAlt;return this.items.reduce(function(t,e,n,i){var r=n===i.length-1;return t.primary?r?t.primary:t:(a(e)&&(t.primary=e),s(e)&&(t.alt=e),r?t.primary||t.alt:t)},{})}};var S=function(){};S.generate=function(t,e,n){var i=S.resolveModel(e,n),r=C.resolve(n.context);return{name:S.resolveName(t,n),el:t,listen:!e.modifiers.disable,scope:S.resolveScope(t,e,n),vm:S.makeVM(n.context),expression:e.value,component:n.componentInstance,classes:r.classes,classNames:r.classNames,getter:S.resolveGetter(t,n,i),events:S.resolveEvents(t,n)||r.events,model:i,delay:S.resolveDelay(t,n,r),rules:S.resolveRules(t,e,n),immediate:!!e.modifiers.initial||!!e.modifiers.immediate,validity:r.validity,aria:r.aria,initialValue:S.resolveInitialValue(n)}},S.getCtorConfig=function(t){return t.componentInstance?f("componentInstance.$options.$_veeValidate",t):null},S.resolveRules=function(t,e,n){var i="";return e.value||e&&e.expression||(i=l(t,"rules")),e.value&&~["string","object"].indexOf(typeof e.value.rules)?i=e.value.rules:e.value&&(i=e.value),n.componentInstance?i:function(t,e){if(t.required&&(e=h("required",e)),s(t))return"email"===t.type&&(e=h("email"+(t.multiple?":multiple":""),e)),t.pattern&&(e=h("regex:"+t.pattern,e)),0<=t.maxLength&&t.maxLength<524288&&(e=h("max:"+t.maxLength,e)),0<t.minLength&&(e=h("min:"+t.minLength,e)),e;if("number"===t.type)return e=h("decimal",e),""!==t.min&&(e=h("min_value:"+t.min,e)),""!==t.max&&(e=h("max_value:"+t.max,e)),e;if(-1!==["date","week","month","datetime-local","time"].indexOf(t.type)){var n=t.step&&Number(t.step)<60?"HH:mm:ss":"HH:mm";if("date"===t.type)return h("date_format:YYYY-MM-DD",e);if("datetime-local"===t.type)return h("date_format:YYYY-MM-DDT"+n,e);if("month"===t.type)return h("date_format:YYYY-MM",e);if("week"===t.type)return h("date_format:YYYY-[W]WW",e);if("time"===t.type)return h("date_format:"+n,e)}return e}(t,i)},S.resolveInitialValue=function(t){var e=t.data.model||x(t.data.directives,function(t){return"model"===t.name});return e&&e.value},S.makeVM=function(t){return{get $el(){return t.$el},get $refs(){return t.$refs},$watch:t.$watch?t.$watch.bind(t):function(){},$validator:t.$validator?{errors:t.$validator.errors,validate:t.$validator.validate.bind(t.$validator),update:t.$validator.update.bind(t.$validator)}:null}},S.resolveDelay=function(t,e,n){var i=l(t,"delay"),r=n&&"delay"in n?n.delay:0;return!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-delay"]),g(r)?(d(i)||(r.input=i),A(r)):A(i||r)},S.resolveEvents=function(t,e){var n=l(t,"validate-on");if(!n&&e.componentInstance&&e.componentInstance.$attrs&&(n=e.componentInstance.$attrs["data-vv-validate-on"]),!n&&e.componentInstance){var i=S.getCtorConfig(e);n=i&&i.events}!n&&e.componentInstance&&(n=(e.componentInstance.$options.model||{event:"input"}).event);return n},S.resolveScope=function(t,e,n){void 0===n&&(n={});var i=null;return n.componentInstance&&d(i)&&(i=n.componentInstance.$attrs&&n.componentInstance.$attrs["data-vv-scope"]),d(i)?function(t){var e=l(t,"scope");if(d(e)){var n=r(t);n&&(e=l(n,"scope"))}return d(e)?null:e}(t):i},S.resolveModel=function(t,e){if(t.arg)return{expression:t.arg};var n=e.data.model||x(e.data.directives,function(t){return"model"===t.name});if(!n)return null;var i,r,a,s=!/[^\w.$]/.test(n.expression)&&(i=n.expression,r=e.context,a=r,i.split(".").every(function(t){return t in a&&(a=a[t],!0)})),o=!(!n.modifiers||!n.modifiers.lazy);return s?{expression:n.expression,lazy:o}:{expression:null,lazy:o}},S.resolveName=function(t,e){var n=l(t,"name");if(!n&&!e.componentInstance)return t.name;if(!n&&e.componentInstance&&e.componentInstance.$attrs&&(n=e.componentInstance.$attrs["data-vv-name"]||e.componentInstance.$attrs.name),!n&&e.componentInstance){var i=S.getCtorConfig(e);return i&&y(i.name)?i.name.bind(e.componentInstance)():e.componentInstance.name}return n},S.resolveGetter=function(n,t,e){if(e&&e.expression)return function(){return f(e.expression,t.context)};if(t.componentInstance){var i=l(n,"value-path")||t.componentInstance.$attrs&&t.componentInstance.$attrs["data-vv-value-path"];if(i)return function(){return f(i,t.componentInstance)};var r=S.getCtorConfig(t);if(r&&y(r.value)){var a=r.value.bind(t.componentInstance);return function(){return a()}}var s=(t.componentInstance.$options.model||{prop:"value"}).prop;return function(){return t.componentInstance[s]}}switch(n.type){case"checkbox":return function(){var t=document.querySelectorAll('input[name="'+n.name+'"]');if((t=$(t).filter(function(t){return t.checked})).length)return t.map(function(t){return t.value})};case"radio":return function(){var t=document.querySelectorAll('input[name="'+n.name+'"]'),e=x(t,function(t){return t.checked});return e&&e.value};case"file":return function(t){return $(n.files)};case"select-multiple":return function(){return $(n.options).filter(function(t){return t.selected}).map(function(t){return t.value})};default:return function(){return n&&n.value}}};var R={},T=!0,q=function(t,e){void 0===e&&(e={fastExit:!0}),this.strict=T,this.errors=new D,this.fields=new G,this._createFields(t),this.paused=!1,this.fastExit=e.fastExit||!1},Y={rules:{configurable:!0},flags:{configurable:!0},dictionary:{configurable:!0},_vm:{configurable:!0},locale:{configurable:!0}},z={rules:{configurable:!0},dictionary:{configurable:!0},locale:{configurable:!0}};z.rules.get=function(){return R},Y.rules.get=function(){return R},Y.flags.get=function(){return this.fields.items.reduce(function(t,e){var n;return e.scope?t["$"+e.scope]=((n={})[e.name]=e.flags,n):t[e.name]=e.flags,t},{})},Y.dictionary.get=function(){return C.dependency("dictionary")},z.dictionary.get=function(){return C.dependency("dictionary")},Y._vm.get=function(){return C.dependency("vm")},Y.locale.get=function(){return q.locale},Y.locale.set=function(t){q.locale=t},z.locale.get=function(){return this.dictionary.locale},z.locale.set=function(t){var e=t!==q.dictionary.locale;q.dictionary.locale=t,e&&C.dependency("vm")&&C.dependency("vm").$emit("localeChanged")},q.create=function(t,e){return new q(t,e)},q.extend=function(t,e,n){void 0===n&&(n={}),q._guardExtend(t,e),q._merge(t,{validator:e,options:I({},{hasTarget:!1,immediate:!0},n||{})})},q.remove=function(t){delete R[t]},q.isTargetRule=function(t){return!!R[t]&&R[t].options.hasTarget},q.setStrictMode=function(t){void 0===t&&(t=!0),T=t},q.prototype.localize=function(t,e){q.localize(t,e)},q.localize=function(t,e){var n;if(g(t))q.dictionary.merge(t);else{if(e){var i=t||e.name;e=I({},e),q.dictionary.merge(((n={})[i]=e,n))}t&&(q.locale=t)}},q.prototype.attach=function(t){var e=t.initialValue,n=new K(t);return this.fields.push(n),n.immediate?this.validate("#"+n.id,e||n.value):this._validate(n,e||n.value,{initial:!0}).then(function(t){n.flags.valid=t.valid,n.flags.invalid=!t.valid}),n},q.prototype.flag=function(t,e,n){void 0===n&&(n=null);var i=this._resolveField(t,void 0,n);i&&e&&i.setFlags(e)},q.prototype.detach=function(t,e,n){var i=y(t.destroy)?t:this._resolveField(t,e,n);i&&(i.destroy(),this.errors.remove(i.name,i.scope,i.id),this.fields.remove(i))},q.prototype.extend=function(t,e,n){void 0===n&&(n={}),q.extend(t,e,n)},q.prototype.reset=function(t){var e=this;return this._vm.$nextTick().then(function(){return e._vm.$nextTick()}).then(function(){e.fields.filter(t).forEach(function(t){t.reset(),e.errors.remove(t.name,t.scope,t.id)})})},q.prototype.update=function(t,e){var n=e.scope;this._resolveField("#"+t)&&this.errors.update(t,{scope:n})},q.prototype.remove=function(t){q.remove(t)},q.prototype.validate=function(t,e,n){var i=this;void 0===n&&(n={});var r=n.silent,a=n.vmId;if(this.paused)return Promise.resolve(!0);if(d(t))return this.validateScopes({silent:r,vmId:a});if("*"===t)return this.validateAll(void 0,{silent:r,vmId:a});if(/^(.+)\.\*$/.test(t)){var s=t.match(/^(.+)\.\*$/)[1];return this.validateAll(s)}var o=this._resolveField(t);return o?(r||(o.flags.pending=!0),void 0===e&&(e=o.value),this._validate(o,e).then(function(t){return r||i._handleValidationResults([t]),t.valid})):this._handleFieldNotFound(name)},q.prototype.pause=function(){return this.paused=!0,this},q.prototype.resume=function(){return this.paused=!1,this},q.prototype.validateAll=function(e,t){var n=this;void 0===t&&(t={});var i=t.silent,r=t.vmId;if(this.paused)return Promise.resolve(!0);var a=null,s=!1;return"string"==typeof e?a={scope:e,vmId:r}:g(e)?(a=Object.keys(e).map(function(t){return{name:t,vmId:r,scope:null}}),s=!0):a=Array.isArray(e)?e.map(function(t){return{name:t,vmId:r}}):{scope:null,vmId:r},Promise.all(this.fields.filter(a).map(function(t){return n._validate(t,s?e[t.name]:t.value)})).then(function(t){return i||n._handleValidationResults(t),t.every(function(t){return t.valid})})},q.prototype.validateScopes=function(t){var e=this;void 0===t&&(t={});var n=t.silent,i=t.vmId;return this.paused?Promise.resolve(!0):Promise.all(this.fields.filter({vmId:i}).map(function(t){return e._validate(t,t.value)})).then(function(t){return n||e._handleValidationResults(t),t.every(function(t){return t.valid})})},q.prototype.destroy=function(){this._vm.$off("localeChanged")},q.prototype._createFields=function(n){var i=this;n&&Object.keys(n).forEach(function(t){var e=I({},{name:t,rules:n[t]});i.attach(e)})},q.prototype._getDateFormat=function(t){var e=null;return t.date_format&&Array.isArray(t.date_format)&&(e=t.date_format[0]),e||this.dictionary.getDateFormat(this.locale)},q.prototype._formatErrorMessage=function(t,e,n,i){void 0===n&&(n={}),void 0===i&&(i=null);var r=this._getFieldDisplayName(t),a=this._getLocalizedParams(e,i);return this.dictionary.getFieldMessage(this.locale,t.name,e.name,[r,a,n])},q.prototype._getLocalizedParams=function(t,e){return void 0===e&&(e=null),t.options.hasTarget&&t.params&&t.params[0]?[e||this.dictionary.getAttribute(this.locale,t.params[0],t.params[0])].concat(t.params.slice(1)):t.params},q.prototype._getFieldDisplayName=function(t){return t.alias||this.dictionary.getAttribute(this.locale,t.name,t.name)},q.prototype._test=function(i,t,r){var a=this,e=R[r.name]?R[r.name].validate:null,n=Array.isArray(r.params)?$(r.params):[],s=null;if(!e||"function"!=typeof e)return Promise.reject(m("No such validator '"+r.name+"' exists."));if(r.options.hasTarget){var o=x(i.dependencies,function(t){return t.name===r.name});o&&(s=o.field.alias,n=[o.field.value].concat(n.slice(1)))}else"required"===r.name&&i.rejectsFalse&&(n=n.length?n:[!0]);if(r.options.isDate){var u=this._getDateFormat(i.rules);"date_format"!==r.name&&n.push(u)}var l=e(t,n);return y(l.then)?l.then(function(t){var e=!0,n={};return Array.isArray(t)?e=t.every(function(t){return g(t)?t.valid:t}):(e=g(t)?t.valid:t,n=t.data),{valid:e,errors:e?[]:[a._createFieldError(i,r,n,s)]}}):(g(l)||(l={valid:l,data:{}}),{valid:l.valid,errors:l.valid?[]:[this._createFieldError(i,r,l.data,s)]})},q._merge=function(t,e){var n=e.validator,i=e.options,r=y(n)?n:n.validate;n.getMessage&&q.dictionary.setMessage(q.locale,t,n.getMessage),R[t]={validate:r,options:i}},q._guardExtend=function(t,e){if(!y(e)&&!y(e.validate))throw m("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},q.prototype._createFieldError=function(t,e,n,i){var r=this;return{id:t.id,vmId:t.vmId,field:t.name,msg:this._formatErrorMessage(t,e,n,i),rule:e.name,scope:t.scope,regenerate:function(){return r._formatErrorMessage(t,e,n,i)}}},q.prototype._resolveField=function(t,e,n){if("#"===t[0])return this.fields.find({id:t.slice(1)});if(!d(e))return this.fields.find({name:t,scope:e,vmId:n});if(-1<t.indexOf(".")){var i=t.split("."),r=i[0],a=i.slice(1),s=this.fields.find({name:a.join("."),scope:r,vmId:n});if(s)return s}return this.fields.find({name:t,scope:null,vmId:n})},q.prototype._handleFieldNotFound=function(t,e){if(!this.strict)return Promise.resolve(!0);var n=d(e)?t:(d(e)?"":e+".")+t;return Promise.reject(m('Validating a non-existent field: "'+n+'". Use "attach()" first.'))},q.prototype._handleValidationResults=function(n){var e=this,t=n.map(function(t){return{id:t.id}});this.errors.removeById(t.map(function(t){return t.id})),n.forEach(function(t){e.errors.remove(t.field,t.scope)});var i=n.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(i),this.fields.filter(t).forEach(function(e){var t=x(n,function(t){return t.id===e.id});e.setFlags({pending:!1,valid:t.valid,validated:!0})})},q.prototype._validate=function(i,r,t){var a=this;void 0===t&&(t={});var e=t.initial;if(i.isDisabled||!i.isRequired&&(d(r)||""===r))return Promise.resolve({valid:!0,id:i.id,field:i.name,scope:i.scope,errors:[]});var s=[],o=[],u=!1;return Object.keys(i.rules).filter(function(t){return!e||R[t].options.immediate}).some(function(t){var e=R[t]?R[t].options:{},n=a._test(i,r,{name:t,params:i.rules[t],options:e});return y(n.then)?s.push(n):a.fastExit&&!n.valid?(o.push.apply(o,n.errors),u=!0):s.push(new Promise(function(t){return t(n)})),u}),u?Promise.resolve({valid:!1,errors:o,id:i.id,field:i.name,scope:i.scope}):Promise.all(s).then(function(t){return t.reduce(function(t,e){var n;return e.valid||(n=t.errors).push.apply(n,e.errors),t.valid=t.valid&&e.valid,t},{valid:!0,errors:o,id:i.id,field:i.name,scope:i.scope})})},Object.defineProperties(q.prototype,Y),Object.defineProperties(q,z);var B={targetOf:null,immediate:!1,scope:null,listen:!0,name:null,rules:{},vm:null,classes:!1,validity:!0,aria:!0,events:"input|blur",delay:0,classNames:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"}},K=function(t){void 0===t&&(t={}),this.id=(9999<=e&&(e=0,i=i.replace("{id}","_{id}")),e++,i.replace("{id}",String(e))),this.el=t.el,this.updated=!1,this.dependencies=[],this.vmId=t.vmId,this.watchers=[],this.events=[],this.delay=0,this.rules={},this._cacheId(t),this.classNames=I({},B.classNames),t=I({},B,t),this._delay=d(t.delay)?0:t.delay,this.validity=t.validity,this.aria=t.aria,this.flags={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1},this.vm=t.vm,this.component=t.component,this.ctorConfig=this.component?f("$options.$_veeValidate",this.component):void 0,this.update(t),this.initialValue=this.value,this.updated=!1},H={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},rejectsFalse:{configurable:!0}};H.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:{validate:function(){}}},H.isRequired.get=function(){return!!this.rules.required},H.isDisabled.get=function(){return!(!this.component||!this.component.disabled)||!(!this.el||!this.el.disabled)},H.alias.get=function(){if(this._alias)return this._alias;var t=null;return this.el&&(t=l(this.el,"as")),!t&&this.component?this.component.$attrs&&this.component.$attrs["data-vv-as"]:t},H.value.get=function(){if(y(this.getter))return this.getter()},H.rejectsFalse.get=function(){return this.component&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},K.prototype.matches=function(t){var e=this;return!t||(t.id?this.id===t.id:!!(d(t.vmId)?function(){return!0}:function(t){return t===e.vmId})(t.vmId)&&(void 0===t.name&&void 0===t.scope||(void 0===t.scope?this.name===t.name:void 0===t.name?this.scope===t.scope:t.name===this.name&&t.scope===this.scope)))},K.prototype._cacheId=function(t){this.el&&!t.targetOf&&(this.el._veeValidateId=this.id)},K.prototype.update=function(t){var e,n,i,r;this.targetOf=t.targetOf||null,this.immediate=t.immediate||this.immediate||!1,!d(t.scope)&&t.scope!==this.scope&&y(this.validator.update)&&this.validator.update(this.id,{scope:t.scope}),this.scope=d(t.scope)?d(this.scope)?null:this.scope:t.scope,this.name=(d(t.name)?t.name:String(t.name))||this.name||null,this.rules=void 0!==t.rules?v(t.rules):this.rules,this.model=t.model||this.model,this.listen=void 0!==t.listen?t.listen:this.listen,this.classes=!(!t.classes&&!this.classes)&&!this.component,this.classNames=g(t.classNames)?E(this.classNames,t.classNames):this.classNames,this.getter=y(t.getter)?t.getter:this.getter,this._alias=t.alias||this._alias,this.events=t.events?"string"==typeof(e=t.events)&&e.length?e.split("|"):[]:this.events,this.delay=(n=this.events,i=t.delay||this.delay,r=this._delay,"number"==typeof i?n.reduce(function(t,e){return t[e]=i,t},{}):n.reduce(function(t,e){return t[e]="object"==typeof i&&e in i?i[e]:"number"==typeof r?r:r&&r[e]||0,t},{})),this.updateDependencies(),this.addActionListeners(),void 0!==t.rules&&(this.flags.required=this.isRequired),this.flags.validated&&void 0!==t.rules&&this.updated&&this.validator.validate("#"+this.id),this.updated=!0,this.addValueListeners(),this.el&&(this.updateClasses(),this.updateAriaAttrs())},K.prototype.reset=function(){var e=this;this._cancellationToken&&(this._cancellationToken.cancelled=!0,delete this._cancellationToken);var n={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1};Object.keys(this.flags).filter(function(t){return"required"!==t}).forEach(function(t){e.flags[t]=n[t]}),this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},K.prototype.setFlags=function(e){var n=this,i={pristine:"dirty",dirty:"pristine",valid:"invalid",invalid:"valid",touched:"untouched",untouched:"touched"};Object.keys(e).forEach(function(t){n.flags[t]=e[t],i[t]&&void 0===e[i[t]]&&(n.flags[i[t]]=!e[t])}),void 0===e.untouched&&void 0===e.touched&&void 0===e.dirty&&void 0===e.pristine||this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},K.prototype.updateDependencies=function(){var s=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var t=Object.keys(this.rules).reduce(function(t,e){return q.isTargetRule(e)&&t.push({selector:s.rules[e][0],name:e}),t},[]);t.length&&this.vm&&this.vm.$el&&t.forEach(function(t){var e=t.selector,n=t.name,i=s.vm.$refs[e],r=Array.isArray(i)?i[0]:i;if(r){var a={vm:s.vm,classes:s.classes,classNames:s.classNames,delay:s.delay,scope:s.scope,events:s.events.join("|"),immediate:s.immediate,targetOf:s.id};y(r.$watch)?(a.component=r,a.el=r.$el,a.getter=S.resolveGetter(r.$el,r.$vnode)):(a.el=r,a.getter=S.resolveGetter(r,{})),s.dependencies.push({name:n,field:new K(a)})}})},K.prototype.unwatch=function(e){if(void 0===e&&(e=null),!e)return this.watchers.forEach(function(t){return t.unwatch()}),void(this.watchers=[]);this.watchers.filter(function(t){return e.test(t.tag)}).forEach(function(t){return t.unwatch()}),this.watchers=this.watchers.filter(function(t){return!e.test(t.tag)})},K.prototype.updateClasses=function(){var e=this;if(this.classes&&!this.isDisabled){var t=function(t){_(t,e.classNames.dirty,e.flags.dirty),_(t,e.classNames.pristine,e.flags.pristine),_(t,e.classNames.touched,e.flags.touched),_(t,e.classNames.untouched,e.flags.untouched),!d(e.flags.valid)&&e.flags.validated&&_(t,e.classNames.valid,e.flags.valid),!d(e.flags.invalid)&&e.flags.validated&&_(t,e.classNames.invalid,e.flags.invalid)};if(o(this.el)){var n=document.querySelectorAll('input[name="'+this.el.name+'"]');$(n).forEach(t)}else t(this.el)}},K.prototype.addActionListeners=function(){var t=this;if(this.unwatch(/class/),this.el){var e=function(){t.flags.touched=!0,t.flags.untouched=!1,t.classes&&(_(t.el,t.classNames.touched,!0),_(t.el,t.classNames.untouched,!1)),t.unwatch(/^class_blur$/)},n=s(this.el)?"input":"change",i=function(){t.flags.dirty=!0,t.flags.pristine=!1,t.classes&&(_(t.el,t.classNames.pristine,!1),_(t.el,t.classNames.dirty,!0)),t.unwatch(/^class_input$/)};if(this.component&&y(this.component.$once))return this.component.$once("input",i),this.component.$once("blur",e),this.watchers.push({tag:"class_input",unwatch:function(){t.component.$off("input",i)}}),void this.watchers.push({tag:"class_blur",unwatch:function(){t.component.$off("blur",e)}});if(this.el){a(this.el,n,i);var r=o(this.el)?"change":"blur";a(this.el,r,e),this.watchers.push({tag:"class_input",unwatch:function(){t.el.removeEventListener(n,i)}}),this.watchers.push({tag:"class_blur",unwatch:function(){t.el.removeEventListener(r,e)}})}}},K.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!s(this.el))&&this.value!==this.initialValue},K.prototype._determineInputEvent=function(){return this.component?this.component.$options.model&&this.component.$options.model.event||"input":this.model?this.model.lazy?"change":"input":s(this.el)?"input":"change"},K.prototype._determineEventList=function(e){return!this.events.length||this.component||s(this.el)?[].concat(this.events):this.events.map(function(t){return"input"===t?e:t})},K.prototype.addValueListeners=function(){var i=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var r={cancelled:!1},a=this.targetOf?function(){i.flags.changed=i.checkValueChanged(),i.validator.validate("#"+i.targetOf)}:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];(0===t.length||y(Event)&&t[0]instanceof Event||t[0]&&t[0].srcElement)&&(t[0]=i.value),i.flags.changed=i.checkValueChanged(),i.validator.validate("#"+i.id,t[0])},e=this._determineInputEvent(),t=this._determineEventList(e);if(this.model&&-1!==t.indexOf(e)){var n=null,s=this.model.expression;if(this.model.expression&&(n=this.vm,s=this.model.expression),!s&&this.component&&this.component.$options.model&&(n=this.component,s=this.component.$options.model.prop||"value"),n&&s){var o=p(a,this.delay[e],!1,r),u=n.$watch(s,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];i.flags.pending=!0,i._cancellationToken=r,o.apply(void 0,t)});this.watchers.push({tag:"input_model",unwatch:u}),t=t.filter(function(t){return t!==e})}}t.forEach(function(t){var n=p(a,i.delay[t],!1,r),e=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];i.flags.pending=!0,i._cancellationToken=r,n.apply(void 0,t)};i._addComponentEventListener(t,e),i._addHTMLEventListener(t,e)})}},K.prototype._addComponentEventListener=function(t,e){var n=this;this.component&&(this.component.$on(t,e),this.watchers.push({tag:"input_vue",unwatch:function(){n.component.$off(t,e)}}))},K.prototype._addHTMLEventListener=function(e,n){var i=this;if(this.el&&!this.component){var r=function(t){a(t,e,n),i.watchers.push({tag:"input_native",unwatch:function(){t.removeEventListener(e,n)}})};if(r(this.el),o(this.el)){var t=document.querySelectorAll('input[name="'+this.el.name+'"]');$(t).forEach(function(t){t._veeValidateId&&t!==i.el||r(t)})}}},K.prototype.updateAriaAttrs=function(){var e=this;if(this.aria&&this.el&&y(this.el.setAttribute)){var t=function(t){t.setAttribute("aria-required",e.isRequired?"true":"false"),t.setAttribute("aria-invalid",e.flags.invalid?"true":"false")};if(o(this.el)){var n=document.querySelectorAll('input[name="'+this.el.name+'"]');$(n).forEach(t)}else t(this.el)}},K.prototype.updateCustomValidity=function(){this.validity&&this.el&&y(this.el.setCustomValidity)&&this.validator.errors&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},K.prototype.destroy=function(){this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(K.prototype,H);var G=function(t){void 0===t&&(t=[]),this.items=t||[]},W={length:{configurable:!0}};G.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},W.length.get=function(){return this.items.length},G.prototype.find=function(e){return x(this.items,function(t){return t.matches(e)})},G.prototype.filter=function(n){return Array.isArray(n)?this.items.filter(function(e){return n.some(function(t){return e.matches(t)})}):this.items.filter(function(t){return t.matches(n)})},G.prototype.map=function(t){return this.items.map(t)},G.prototype.remove=function(t){var e=null;if(!(e=t instanceof K?t:this.find(t)))return null;var n=this.items.indexOf(e);return this.items.splice(n,1),e},G.prototype.push=function(t){if(!(t instanceof K))throw m("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw m("Field id must be defined.");if(this.find({id:t.id}))throw m("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(G.prototype,W);var U=function(t,e){this.id=e._uid,this._base=t,this.errors=new D(t.errors,this.id)},J={flags:{configurable:!0},rules:{configurable:!0},fields:{configurable:!0},dictionary:{configurable:!0},locale:{configurable:!0}};J.flags.get=function(){var e=this;return this._base.fields.items.filter(function(t){return t.vmId===e.id}).reduce(function(t,e){var n;return e.scope?t["$"+e.scope]=((n={})[e.name]=e.flags,n):t[e.name]=e.flags,t},{})},J.rules.get=function(){return this._base.rules},J.fields.get=function(){return new G(this._base.fields.filter({vmId:this.id}))},J.dictionary.get=function(){return this._base.dictionary},J.locale.get=function(){return this._base.locale},J.locale.set=function(t){this._base.locale=t},U.prototype.localize=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];return(t=this._base).localize.apply(t,e)},U.prototype.update=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];return(t=this._base).update.apply(t,e)},U.prototype.attach=function(t){var e=I({},t,{vmId:this.id});return this._base.attach(e)},U.prototype.remove=function(t){return this._base.remove(t)},U.prototype.detach=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];return(t=this._base).detach.apply(t,e.concat([this.id]))},U.prototype.extend=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];return(t=this._base).extend.apply(t,e)},U.prototype.validate=function(t,e,n){return void 0===n&&(n={}),this._base.validate(t,e,I({},{vmId:this.id},n||{}))},U.prototype.validateAll=function(t,e){return void 0===e&&(e={}),this._base.validateAll(t,I({},{vmId:this.id},e||{}))},U.prototype.validateScopes=function(t){return void 0===t&&(t={}),this._base.validateScopes(I({},{vmId:this.id},t||{}))},U.prototype.destroy=function(){delete this.id,delete this._base},U.prototype.reset=function(t){return this._base.reset(Object.assign({},t||{},{vmId:this.id}))},U.prototype.flag=function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];return(t=this._base).flag.apply(t,e.concat([this.id]))},Object.defineProperties(U.prototype,J);var Q={provide:function(){return this.$validator&&!w(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!w(this.$vnode)){this.$parent||C.merge(this.$options.$_veeValidate||{});var t=C.resolve(this);(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=new U(C.dependency("validator"),this));var e,n=(e=this.$options.inject,!(!g(e)||!e.$validator));this.$validator||!t.inject||n||(this.$validator=new U(C.dependency("validator"),this)),(n||this.$validator)&&(this.$options.computed||(this.$options.computed={}),this.$options.computed[t.errorBagName||"errors"]=function(){return this.$validator.errors},this.$options.computed[t.fieldsBagName||"fields"]=function(){var e=this;return this.$validator.fields.items.filter(function(t){return t.vmId===e._uid}).reduce(function(t,e){var n;return e.scope?t["$"+e.scope]=((n={})[e.name]=e.flags,n):t[e.name]=e.flags,t},{})})}},beforeDestroy:function(){this._uid===this.$validator.id&&this.$validator.errors.clear()}};function X(t,e){return e&&e.$validator?e.$validator.fields.find({id:t._veeValidateId}):null}var Z,tt={bind:function(t,e,n){var i=n.context.$validator;if(i){var r=S.generate(t,e,n);i.attach(r)}},inserted:function(t,e,n){var i=X(t,n.context),r=S.resolveScope(t,e,n);i&&r!==i.scope&&(i.update({scope:r}),i.updated=!1)},update:function(t,e,n){var i=X(t,n.context);if(!(!i||i.updated&&c(e.value,e.oldValue))){var r=S.resolveScope(t,e,n),a=S.resolveRules(t,e,n);i.update({scope:r,rules:a})}},unbind:function(t,e,n){var i=n.context,r=X(t,i);r&&i.$validator.detach(r)}};var et=function(n,i){var r={pristine:function(t,e){return t&&e},dirty:function(t,e){return t||e},touched:function(t,e){return t||e},untouched:function(t,e){return t&&e},valid:function(t,e){return t&&e},invalid:function(t,e){return t||e},pending:function(t,e){return t||e},required:function(t,e){return t||e},validated:function(t,e){return t&&e}};return Object.keys(r).reduce(function(t,e){return t[e]=r[e](n[e],i[e]),t},{})},nt=function(i,r){return void 0===r&&(r=!0),Object.keys(i).reduce(function(t,e){if(!t)return t=I({},i[e]);var n=0===e.indexOf("$");return r&&n?et(nt(i[e]),t):!r&&n?t:t=et(t,i[e])},null)},it={name:"vv-error",inject:["$validator"],functional:!0,props:{for:{type:String,required:!0},tag:{type:String,default:"span"}},render:function(t,e){var n=e.props,i=e.injections;return t(n.tag,i.$validator.errors.first(n.for))}};return{install:function(t,e){if(void 0===e&&(e={}),!Z||t!==Z){!function(){try{var t=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){u=!1}}(),Z=t;var n=new q(e),i=new Z({data:function(){return{errors:n.errors,fields:n.fields}}});C.register("vm",i),C.register("validator",n),C.merge(e);var r=C.current,a=r.dictionary,s=r.i18n;a&&n.localize(a);var o=function(){n.errors.regenerate()};s?s._vm.$watch("locale",o):"undefined"!=typeof window&&i.$on("localeChanged",o),!s&&e.locale&&n.localize(e.locale),q.setStrictMode(C.current.strict),Z.mixin(Q),Z.directive("validate",tt)}},use:function(t,e){if(void 0===e&&(e={}),!y(t))return n("The plugin must be a callable function");t({Validator:q,ErrorBag:D,Rules:q.rules},e)},directive:tt,mixin:Q,mapFields:function(t){if(!t)return function(){return nt(this.$validator.flags)};var e,a=(e=t,Array.isArray(e)?e.reduce(function(t,e){return~e.indexOf(".")?t[e.split(".")[1]]=e:t[e]=e,t},{}):e);return Object.keys(a).reduce(function(t,i){var r=a[i];return t[i]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===a[i])return nt(this.$validator.flags,!1);if(r.indexOf(".")<=0)return{};var t=r.split("."),e=t[0],n=t.slice(1);return e=this.$validator.flags["$"+e],"*"===(n=n.join("."))&&e?nt(e):e&&e[n]?e[n]:{}},t},{})},Validator:q,ErrorBag:D,ErrorComponent:it,version:"2.1.0-beta.3"}});
{
"name": "vee-validate",
"version": "2.1.0-beta.2",
"version": "2.1.0-beta.3",
"description": "Simple Vue.js input validation plugin",

@@ -15,3 +15,3 @@ "author": "Abdelrahman Awad <logaretm1@gmail.com>",

"test": "jest",
"lint": "eslint ./src --fix",
"lint": "eslint src tests --fix",
"flow": "flow",

@@ -26,3 +26,4 @@ "docs:dev": "vuepress dev docs",

"cover": "jest --coverage",
"precommit": "npm run lint && npm run flow && npm run test"
"precommit": "npm run lint && npm run flow && npm run test",
"release": "./scripts/release.sh"
},

@@ -43,12 +44,12 @@ "keywords": [

"devDependencies": {
"@babel/core": "^7.0.0-beta.49",
"@babel/node": "^7.0.0-beta.49",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.49",
"@babel/preset-env": "^7.0.0-beta.49",
"@babel/core": "^7.0.0-beta.51",
"@babel/node": "^7.0.0-beta.51",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.51",
"@babel/preset-env": "^7.0.0-beta.51",
"@vue/test-utils": "1.0.0-beta.12",
"babel-core": "^7.0.0-0",
"babel-eslint": "^8.2.3",
"babel-eslint": "^8.2.4",
"babel-jest": "^23.0.1",
"chalk": "^2.4.1",
"cross-env": "^5.1.6",
"cross-env": "^5.2.0",
"date-fns": "2.0.0-alpha.7",

@@ -59,2 +60,3 @@ "eslint": "^4.19.1",

"eslint-plugin-import": "^2.12.0",
"eslint-plugin-jest": "^21.17.0",
"eslint-plugin-node": "^6.0.1",

@@ -64,3 +66,3 @@ "eslint-plugin-promise": "^3.7.0",

"filesize": "^3.6.1",
"flow-bin": "^0.74.0",
"flow-bin": "^0.75.0",
"flush-promises": "^1.0.0",

@@ -71,3 +73,3 @@ "gzip-size": "^4.1.0",

"regenerator-runtime": "^0.11.0",
"rollup": "^0.60.1",
"rollup": "^0.61.1",
"rollup-plugin-buble": "^0.19.2",

@@ -78,12 +80,11 @@ "rollup-plugin-commonjs": "^9.1.3",

"rollup-plugin-replace": "^2.0.0",
"uglify-js": "^3.4.0",
"uglify-js": "^3.4.1",
"validator": "^10.3.0",
"vue": "^2.5.16",
"vue-i18n": "^7.8.0",
"vue-i18n": "^7.8.1",
"vue-jest": "^2.6.0",
"vue-template-compiler": "^2.5.16",
"vuepress": "^0.10.1"
"vuepress": "^0.10.2"
},
"eslintIgnore": [
"tests",
"locale",

@@ -90,0 +91,0 @@ "dist",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc