diff --git a/dist/vfg-core.js b/dist/vfg-core.js index d5dd695e..7158b890 100644 --- a/dist/vfg-core.js +++ b/dist/vfg-core.js @@ -1,9 +1,7 @@ /** - * vue-form-generator v2.2.2 - * https://github.com/icebob/vue-form-generator + * vue-form-generator v2.3.0 + * https://github.com/vue-generators/vue-form-generator/ * Released under the MIT License. */ -!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueFormGenerator=e():t.VueFormGenerator=e()}(this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,o){r.apply(this,[t,e,o].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){"use strict";t.exports={component:n(1),schema:n(162),validators:n(226),abstractField:n(222).default,install:function(e){e.component("VueFormGenerator",t.exports.component)}}},function(t,e,n){n(2);var r=n(3)(n(4),n(310),null,null);t.exports=r.exports},function(t,e){},function(t,e){t.exports=function(t,e,n,r){var o,i=t=t||{},a=typeof t.default;"object"!==a&&"function"!==a||(o=t,i=t.default);var u="function"==typeof i?i.options:i;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns),n&&(u._scopeId=n),r){var s=u.computed||(u.computed={});Object.keys(r).forEach(function(t){var e=r[t];s[t]=function(){return e}})}return{esModule:o,exports:i,options:u}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),i=r(o),a=n(76),u=r(a),s=n(80),c=r(s),f=n(87),l=r(f),d=n(89),p=r(d),h=n(90),v=r(h),m=n(92),b=r(m),y=n(120),g=r(y),x=n(162),_={},j=n(218);(0,b.default)(j.keys(),function(t){var e=t.replace(/^\.\//,"").replace(/\.vue/,"");_[e]=j(t)});e.default={components:_,props:{schema:Object,model:Object,options:{type:Object,default:function(){return{validateAfterLoad:!1,validateAsync:!1,validateAfterChanged:!1,validationErrorClass:"error",validationSuccessClass:""}}},multiple:{type:Boolean,default:!1},isNewModel:{type:Boolean,default:!1},tag:{type:String,default:"fieldset",validator:function(t){return t.length>0}}},data:function(){return{errors:[]}},computed:{fields:function(){var t=this,e=[];return this.schema&&this.schema.fields&&(0,b.default)(this.schema.fields,function(n){t.multiple&&n.multi!==!0||e.push(n)}),e},groups:function(){var t=[];return this.schema&&this.schema.groups&&(0,b.default)(this.schema.groups,function(e){t.push(e)}),t}},watch:{model:function(t,e){var n=this;e!=t&&null!=t&&this.$nextTick(function(){n.options.validateAfterLoad===!0&&n.isNewModel!==!0?n.validate():n.clearValidationErrors()})}},mounted:function(){var t=this;this.$nextTick(function(){t.model&&(t.options.validateAfterLoad===!0&&t.isNewModel!==!0?t.validate():t.clearValidationErrors())})},methods:{getFieldRowClasses:function(t){var e,n=this.fieldErrors(t).length>0,r=(e={},(0,u.default)(e,(0,g.default)(this.options,"validationErrorClass","error"),n),(0,u.default)(e,(0,g.default)(this.options,"validationSuccessClass","valid"),!n),(0,u.default)(e,"disabled",this.fieldDisabled(t)),(0,u.default)(e,"readonly",this.fieldReadonly(t)),(0,u.default)(e,"featured",this.fieldFeatured(t)),(0,u.default)(e,"required",this.fieldRequired(t)),e);return(0,l.default)(t.styleClasses)?(0,b.default)(t.styleClasses,function(t){return r[t]=!0}):(0,c.default)(t.styleClasses)&&(r[t.styleClasses]=!0),(0,p.default)(t.type)||(r["field-"+t.type]=!0),r},getFieldType:function(t){return"field-"+t.type},fieldTypeHasLabel:function(t){if((0,p.default)(t.label))return!1;var e="";switch(e="input"===t.type?t.inputType:t.type){case"button":case"submit":case"reset":return!1;default:return!0}},fieldDisabled:function(t){return(0,v.default)(t.disabled)?t.disabled.call(this,this.model,t,this):!(0,p.default)(t.disabled)&&t.disabled},fieldRequired:function(t){return(0,v.default)(t.required)?t.required.call(this,this.model,t,this):!(0,p.default)(t.required)&&t.required},fieldVisible:function(t){return(0,v.default)(t.visible)?t.visible.call(this,this.model,t,this):!!(0,p.default)(t.visible)||t.visible},fieldReadonly:function(t){return(0,v.default)(t.readonly)?t.readonly.call(this,this.model,t,this):!(0,p.default)(t.readonly)&&t.readonly},fieldFeatured:function(t){return(0,v.default)(t.featured)?t.featured.call(this,this.model,t,this):!(0,p.default)(t.featured)&&t.featured},fieldHint:function(t){return(0,v.default)(t.hint)?t.hint.call(this,this.model,t,this):t.hint},buttonClickHandler:function(t,e,n){return t.onclick.call(this,this.model,e,n,this)},onFieldValidated:function(t,e,n){var r=this;this.errors=this.errors.filter(function(t){return t.field!=n.schema}),!t&&e&&e.length>0&&(0,b.default)(e,function(t){r.errors.push({field:n.schema,error:t})});var o=0==this.errors.length;this.$emit("validated",o,this.errors)},validate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e&&(e=(0,g.default)(this.options,"validateAsync",!1)),this.clearValidationErrors();var n=[],r=[];(0,b.default)(this.$children,function(t){(0,v.default)(t.validate)&&(n.push(t),r.push(t.validate(!0)))});var o=function(r){var o=[];(0,b.default)(r,function(t,e){(0,l.default)(t)&&t.length>0&&(0,b.default)(t,function(t){o.push({field:n[e].schema,error:t})})}),t.errors=o;var i=0==o.length;return t.$emit("validated",i,o),e?o:i};return e?i.default.all(r).then(o):o(r)},clearValidationErrors:function(){this.errors.splice(0),(0,b.default)(this.$children,function(t){t.clearValidationErrors()})},modelUpdated:function(t,e){this.$emit("model-updated",t,e)},buttonVisibility:function(t){return t.buttons&&t.buttons.length>0},fieldErrors:function(t){var e=this.errors.filter(function(e){return e.field==t});return e.map(function(t){return t.error})},getFieldID:function(t){var e=this.options&&this.options.fieldIdPrefix?this.options.fieldIdPrefix:"";return(0,x.slugifyFormID)(t,e)}}}},function(t,e,n){t.exports={default:n(6),__esModule:!0}},function(t,e,n){n(7),n(8),n(52),n(56),n(74),n(75),t.exports=n(16).Promise},function(t,e){},function(t,e,n){"use strict";var r=n(9)(!0);n(12)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(10),o=n(11);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):(i-55296<<10)+(a-56320)+65536)}}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){"use strict";var r=n(13),o=n(14),i=n(30),a=n(19),u=n(31),s=n(32),c=n(48),f=n(50),l=n(49)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};t.exports=function(t,e,n,b,y,g,x){s(n,e,b);var _,j,w,O=function(t){if(!d&&t in S)return S[t];switch(t){case h:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},M=e+" Iterator",C=y==v,F=!1,S=t.prototype,T=S[l]||S[p]||y&&S[y],I=T||O(y),k=y?C?O("entries"):I:void 0,A="Array"==e?S.entries||T:T;if(A&&(w=f(A.call(new t)),w!==Object.prototype&&w.next&&(c(w,M,!0),r||"function"==typeof w[l]||a(w,l,m))),C&&T&&T.name!==v&&(F=!0,I=function(){return T.call(this)}),r&&!x||!d&&!F&&S[l]||a(S,l,I),u[e]=I,u[M]=m,y)if(_={values:C?I:O(v),keys:g?I:O(h),entries:k},x)for(j in _)j in S||i(S,j,_[j]);else o(o.P+o.F*(d||F),e,_);return _}},function(t,e){t.exports=!0},function(t,e,n){var r=n(15),o=n(16),i=n(17),a=n(19),u=n(29),s="prototype",c=function(t,e,n){var f,l,d,p=t&c.F,h=t&c.G,v=t&c.S,m=t&c.P,b=t&c.B,y=t&c.W,g=h?o:o[e]||(o[e]={}),x=g[s],_=h?r:v?r[e]:(r[e]||{})[s];h&&(n=e);for(f in n)l=!p&&_&&void 0!==_[f],l&&u(g,f)||(d=l?_[f]:n[f],g[f]=h&&"function"!=typeof _[f]?n[f]:b&&l?i(d,r):y&&_[f]==d?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[s]=t[s],e}(d):m&&"function"==typeof d?i(Function.call,d):d,m&&((g.virtual||(g.virtual={}))[f]=d,t&c.R&&x&&!x[f]&&a(x,f,d)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=t.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(18);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(20),o=n(28);t.exports=n(24)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(21),o=n(23),i=n(27),a=Object.defineProperty;e.f=n(24)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(22);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){t.exports=!n(24)&&!n(25)(function(){return 7!=Object.defineProperty(n(26)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){t.exports=!n(25)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(22),o=n(15).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(22);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){t.exports=n(19)},function(t,e){t.exports={}},function(t,e,n){"use strict";var r=n(33),o=n(28),i=n(48),a={};n(19)(a,n(49)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(21),o=n(34),i=n(46),a=n(43)("IE_PROTO"),u=function(){},s="prototype",c=function(){var t,e=n(26)("iframe"),r=i.length,o="<",a=">";for(e.style.display="none",n(47).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(o+"script"+a+"document.F=Object"+o+"/script"+a),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u[s]=r(t),n=new u,u[s]=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(20),o=n(21),i=n(35);t.exports=n(24)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,s=0;u>s;)r.f(t,n=a[s++],e[n]);return t}},function(t,e,n){var r=n(36),o=n(46);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(29),o=n(37),i=n(40)(!1),a=n(43)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),s=0,c=[];for(n in u)n!=a&&r(u,n)&&c.push(n);for(;e.length>s;)r(u,n=e[s++])&&(~i(c,n)||c.push(n));return c}},function(t,e,n){var r=n(38),o=n(11);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(39);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var r=n(37),o=n(41),i=n(42);t.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(10),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(10),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(44)("keys"),o=n(45);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(16),o=n(15),i="__core-js_shared__",a=o[i]||(o[i]={});(t.exports=function(t,e){return a[t]||(a[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(13)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(15).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(20).f,o=n(29),i=n(49)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(44)("wks"),o=n(45),i=n(15).Symbol,a="function"==typeof i,u=t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))};u.store=r},function(t,e,n){var r=n(29),o=n(51),i=n(43)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(11);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(53);for(var r=n(15),o=n(19),i=n(31),a=n(49)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s=t.length?(this._t=void 0,o(1)):"keys"==e?o(0,n):"values"==e?o(0,t[n]):o(0,[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){"use strict";var r,o,i,a,u=n(13),s=n(15),c=n(17),f=n(57),l=n(14),d=n(22),p=n(18),h=n(58),v=n(59),m=n(63),b=n(64).set,y=n(66)(),g=n(67),x=n(68),_=n(69),j=n(70),w="Promise",O=s.TypeError,M=s.process,C=M&&M.versions,F=C&&C.v8||"",S=s[w],T="process"==f(M),I=function(){},k=o=g.f,A=!!function(){try{var t=S.resolve(1),e=(t.constructor={})[n(49)("species")]=function(t){t(I,I)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(I)instanceof e&&0!==F.indexOf("6.6")&&_.indexOf("Chrome/66")===-1}catch(t){}}(),P=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},D=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var r=t._v,o=1==t._s,i=0,a=function(e){var n,i,a,u=o?e.ok:e.fail,s=e.resolve,c=e.reject,f=e.domain;try{u?(o||(2==t._h&&V(t),t._h=1),u===!0?n=r:(f&&f.enter(),n=u(r),f&&(f.exit(),a=!0)),n===e.promise?c(O("Promise-chain cycle")):(i=P(n))?i.call(n,s,c):s(n)):c(r)}catch(t){f&&!a&&f.exit(),c(t)}};n.length>i;)a(n[i++]);t._c=[],t._n=!1,e&&!t._h&&E(t)})}},E=function(t){b.call(s,function(){var e,n,r,o=t._v,i=N(t);if(i&&(e=x(function(){T?M.emit("unhandledRejection",o,t):(n=s.onunhandledrejection)?n({promise:t,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),t._h=T||N(t)?2:1),t._a=void 0,i&&e.e)throw e.v})},N=function(t){return 1!==t._h&&0===(t._a||t._c).length},V=function(t){b.call(s,function(){var e;T?M.emit("rejectionHandled",t):(e=s.onrejectionhandled)&&e({promise:t,reason:t._v})})},L=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),D(e,!0))},R=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw O("Promise can't be resolved itself");(e=P(t))?y(function(){var r={_w:n,_d:!1};try{e.call(t,c(R,r,1),c(L,r,1))}catch(t){L.call(r,t)}}):(n._v=t,n._s=1,D(n,!1))}catch(t){L.call({_w:n,_d:!1},t)}}};A||(S=function(t){h(this,S,w,"_h"),p(t),r.call(this);try{t(c(R,this,1),c(L,this,1))}catch(t){L.call(this,t)}},r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n(71)(S.prototype,{then:function(t,e){var n=k(m(this,S));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=T?M.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&D(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new r;this.promise=t,this.resolve=c(R,t,1),this.reject=c(L,t,1)},g.f=k=function(t){return t===S||t===a?new i(t):o(t)}),l(l.G+l.W+l.F*!A,{Promise:S}),n(48)(S,w),n(72)(w),a=n(16)[w],l(l.S+l.F*!A,w,{reject:function(t){var e=k(this),n=e.reject;return n(t),e.promise}}),l(l.S+l.F*(u||!A),w,{resolve:function(t){return j(u&&this===a?S:this,t)}}),l(l.S+l.F*!(A&&n(73)(function(t){S.all(t).catch(I)})),w,{all:function(t){var e=this,n=k(e),r=n.resolve,o=n.reject,i=x(function(){var n=[],i=0,a=1;v(t,!1,function(t){var u=i++,s=!1;n.push(void 0),a++,e.resolve(t).then(function(t){s||(s=!0,n[u]=t,--a||r(n))},o)}),--a||r(n)});return i.e&&o(i.v),n.promise},race:function(t){var e=this,n=k(e),r=n.reject,o=x(function(){v(t,!1,function(t){e.resolve(t).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(t,e,n){var r=n(39),o=n(49)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e,n){var r=n(17),o=n(60),i=n(61),a=n(21),u=n(41),s=n(62),c={},f={},e=t.exports=function(t,e,n,l,d){var p,h,v,m,b=d?function(){return t}:s(t),y=r(n,l,e?2:1),g=0;if("function"!=typeof b)throw TypeError(t+" is not iterable!");if(i(b)){for(p=u(t.length);p>g;g++)if(m=e?y(a(h=t[g])[0],h[1]):y(t[g]),m===c||m===f)return m}else for(v=b.call(t);!(h=v.next()).done;)if(m=o(v,y,h.value,e),m===c||m===f)return m};e.BREAK=c,e.RETURN=f},function(t,e,n){var r=n(21);t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},function(t,e,n){var r=n(31),o=n(49)("iterator"),i=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||i[o]===t)}},function(t,e,n){var r=n(57),o=n(49)("iterator"),i=n(31);t.exports=n(16).getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},function(t,e,n){var r=n(21),o=n(18),i=n(49)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(17),u=n(65),s=n(47),c=n(26),f=n(15),l=f.process,d=f.setImmediate,p=f.clearImmediate,h=f.MessageChannel,v=f.Dispatch,m=0,b={},y="onreadystatechange",g=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},x=function(t){g.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete b[t]},"process"==n(39)(l)?r=function(t){l.nextTick(a(g,t,1))}:v&&v.now?r=function(t){v.now(a(g,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=x,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",x,!1)):r=y in c("script")?function(t){s.appendChild(c("script"))[y]=function(){s.removeChild(this),g.call(t)}}:function(t){setTimeout(a(g,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){t.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var r=n(15),o=n(64).set,i=r.MutationObserver||r.WebKitMutationObserver,a=r.process,u=r.Promise,s="process"==n(39)(a);t.exports=function(){var t,e,n,c=function(){var r,o;for(s&&(r=a.domain)&&r.exit();t;){o=t.fn,t=t.next;try{o()}catch(r){throw t?n():e=void 0,r}}e=void 0,r&&r.enter()};if(s)n=function(){a.nextTick(c)};else if(!i||r.navigator&&r.navigator.standalone)if(u&&u.resolve){var f=u.resolve(void 0);n=function(){f.then(c)}}else n=function(){o.call(r,c)};else{var l=!0,d=document.createTextNode("");new i(c).observe(d,{characterData:!0}),n=function(){d.data=l=!l}}return function(r){var o={fn:r,next:void 0};e&&(e.next=o),t||(t=o,n()),e=o}}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(18);t.exports.f=function(t){return new r(t)}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(15),o=r.navigator;t.exports=o&&o.userAgent||""},function(t,e,n){var r=n(21),o=n(22),i=n(67);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t),a=n.resolve;return a(e),n.promise}},function(t,e,n){var r=n(19);t.exports=function(t,e,n){for(var o in e)n&&t[o]?t[o]=e[o]:r(t,o,e[o]);return t}},function(t,e,n){"use strict";var r=n(15),o=n(16),i=n(20),a=n(24),u=n(49)("species");t.exports=function(t){var e="function"==typeof o[t]?o[t]:r[t];a&&e&&!e[u]&&i.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(49)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},t(i)}catch(t){}return n}},function(t,e,n){"use strict";var r=n(14),o=n(16),i=n(15),a=n(63),u=n(70);r(r.P+r.R,"Promise",{finally:function(t){var e=a(this,o.Promise||i.Promise),n="function"==typeof t;return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}})},function(t,e,n){"use strict";var r=n(14),o=n(67),i=n(68);r(r.S,"Promise",{try:function(t){var e=o.f(this),n=i(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(77),i=r(o);e.default=function(t,e,n){return e in t?(0,i.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){n(79);var r=n(16).Object;t.exports=function(t,e,n){return r.defineProperty(t,e,n)}},function(t,e,n){var r=n(14);r(r.S+r.F*!n(24),"Object",{defineProperty:n(20).f})},function(t,e,n){function r(t){return"string"==typeof t||!i(t)&&a(t)&&o(t)==u}var o=n(81),i=n(87),a=n(88),u="[object String]";t.exports=r},function(t,e,n){function r(t){return null==t?void 0===t?s:u:c&&c in Object(t)?i(t):a(t)}var o=n(82),i=n(85),a=n(86),u="[object Null]",s="[object Undefined]",c=o?o.toStringTag:void 0;t.exports=r},function(t,e,n){var r=n(83),o=r.Symbol;t.exports=o},function(t,e,n){var r=n(84),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=a.call(t,s),n=t[s];try{t[s]=void 0;var r=!0}catch(t){}var o=u.call(t);return r&&(e?t[s]=n:delete t[s]),o}var o=n(82),i=Object.prototype,a=i.hasOwnProperty,u=i.toString,s=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e){var n=Array.isArray;t.exports=n},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e){function n(t){return null==t}t.exports=n},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==u||e==s||e==a||e==c}var o=n(81),i=n(91),a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){function r(t,e){var n=u(t)?o:i;return n(t,a(e))}var o=n(93),i=n(94),a=n(118),u=n(87);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n-1&&t%1==0&&t-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(84),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,u=a&&r.process,s=function(){try{return u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=s}).call(e,n(104)(t))},function(t,e,n){function r(t){if(!o(t))return i(t);var e=[];for(var n in Object(t))u.call(t,n)&&"constructor"!=n&&e.push(n);return e}var o=n(113),i=n(114),a=Object.prototype,u=a.hasOwnProperty;t.exports=r},function(t,e){function n(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||r;return t===n}var r=Object.prototype;t.exports=n},function(t,e,n){var r=n(115),o=r(Object.keys,Object);t.exports=o},function(t,e){function n(t,e){return function(n){return t(e(n))}}t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(90),i=n(109);t.exports=r},function(t,e,n){function r(t,e){return function(n,r){if(null==n)return n;if(!o(n))return t(n,r);for(var i=n.length,a=e?i:-1,u=Object(n);(e?a--:++a-1}var o=n(146);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(146);t.exports=r},function(t,e,n){var r=n(133),o=n(83),i=r(o,"Map");t.exports=i},function(t,e,n){function r(t){var e=o(this,t).delete(t);return this.size-=e?1:0,e}var o=n(153);t.exports=r},function(t,e,n){function r(t,e){var n=t.__data__;return o(e)?n["string"==typeof e?"string":"hash"]:n.map}var o=n(154);t.exports=r},function(t,e){function n(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}t.exports=n},function(t,e,n){function r(t){return o(this,t).get(t)}var o=n(153);t.exports=r},function(t,e,n){function r(t){return o(this,t).has(t)}var o=n(153);t.exports=r},function(t,e,n){function r(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var o=n(153);t.exports=r},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(159);t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(a(t))return i(t,r)+"";if(u(t))return f?f.call(t):"";var e=t+"";return"0"==e&&1/t==-s?"-0":e}var o=n(82),i=n(160),a=n(87),u=n(124),s=1/0,c=o?o.prototype:void 0,f=c?c.toString:void 0;t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n1&&void 0!==arguments[1]?arguments[1]:{};return(0,p.default)(t.fields,function(n){void 0===(0,b.default)(e,n.model)&&void 0!==n.default&&((0,u.default)(n.default)?(0,v.default)(e,n.model,n.default(n,t,e)):(0,l.default)(n.default)||(0,c.default)(n.default)?(0,v.default)(e,n.model,(0,i.default)(n.default)):(0,v.default)(e,n.model,n.default))}),e},t.exports.getMultipleFields=function(t){var e=[];return(0,p.default)(t.fields,function(t){t.multi===!0&&e.push(t)}),e},t.exports.mergeMultiObjectFields=function(e,n){var r={},o=t.exports.getMultipleFields(e);return(0,p.default)(o,function(t){var e=void 0,o=!0,i=t.model;(0,p.default)(n,function(t){var n=(0,b.default)(t,i);o?(e=n,o=!1):e!=n&&(e=void 0)}),(0,v.default)(r,i,e)}),r},t.exports.slugifyFormID=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"undefined"!=typeof t.id?e+t.id:e+(t.inputName||t.label||t.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")},t.exports.slugify=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t.toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_\/.\/:]+)/g,"")}},function(t,e,n){function r(t){return o(t,i|a)}var o=n(164),i=1,a=4;t.exports=r},function(t,e,n){function r(t,e,n,F,S,T){var I,P=e&w,D=e&O,N=e&M;if(n&&(I=S?n(t,F,S,T):n(t)),void 0!==I)return I;if(!_(t))return t;var V=g(t);if(V){if(I=m(t),!P)return f(t,I)}else{var L=v(t),R=L==k||L==A;if(x(t))return c(t,P);if(L==E||L==C||R&&!S){if(I=D||R?{}:y(t),!P)return D?d(t,s(I,t)):l(t,u(I,t))}else{if(!Q[L])return S?t:{};I=b(t,L,r,P)}}T||(T=new o);var Y=T.get(t);if(Y)return Y;T.set(t,I);var $=N?D?h:p:D?keysIn:j,z=V?void 0:$(t);return i(z||t,function(o,i){z&&(i=o,o=t[i]),a(I,i,r(o,e,n,i,t,T))}),I}var o=n(165),i=n(93),a=n(171),u=n(174),s=n(176),c=n(180),f=n(181),l=n(182),d=n(186),p=n(190),h=n(192),v=n(193),m=n(198),b=n(199),y=n(213),g=n(87),x=n(103),_=n(91),j=n(98),w=1,O=2,M=4,C="[object Arguments]",F="[object Array]",S="[object Boolean]",T="[object Date]",I="[object Error]",k="[object Function]",A="[object GeneratorFunction]",P="[object Map]",D="[object Number]",E="[object Object]",N="[object RegExp]",V="[object Set]",L="[object String]",R="[object Symbol]",Y="[object WeakMap]",$="[object ArrayBuffer]",z="[object DataView]",H="[object Float32Array]",q="[object Float64Array]",U="[object Int8Array]",B="[object Int16Array]",G="[object Int32Array]",Z="[object Uint8Array]",W="[object Uint8ClampedArray]",J="[object Uint16Array]",K="[object Uint32Array]",Q={};Q[C]=Q[F]=Q[$]=Q[z]=Q[S]=Q[T]=Q[H]=Q[q]=Q[U]=Q[B]=Q[G]=Q[P]=Q[D]=Q[E]=Q[N]=Q[V]=Q[L]=Q[R]=Q[Z]=Q[W]=Q[J]=Q[K]=!0,Q[I]=Q[k]=Q[Y]=!1,t.exports=r},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(143),i=n(166),a=n(167),u=n(168),s=n(169),c=n(170);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=u,r.prototype.has=s,r.prototype.set=c,t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(143);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length0?r=r.concat(t):(0,d.default)(t)&&r.push(t)}),(0,h.default)(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,r,e.schema);var o=0==r.length;return t||e.$emit("validated",o,r,e),e.errors=r,r};return n?a.default.all(r).then(u):u(r)},debouncedValidate:function(){(0,h.default)(this.debouncedValidateFunc)||(this.debouncedValidateFunc=(0,s.default)(this.validate.bind(this),(0,y.default)(this,"$parent.options.validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(t,e){var n=!1;(0,h.default)(this.schema.set)?(this.schema.set(this.model,t),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,t),n=!0),n&&(this.$emit("model-updated",t,this.schema.model),(0,h.default)(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,e,this.schema),this.$parent.options&&this.$parent.options.validateAfterChanged===!0&&(this.$parent.options.validateDebounceTime>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(t,e){var n=t.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");for(var r=this.model,o=n.split("."),i=0,a=o.length;i=e||n<0||C&&r>=x}function p(){var t=i();return d(t)?h(t):void(j=setTimeout(p,l(t)))}function h(t){return j=void 0,F&&y?r(t):(y=g=void 0,_)}function v(){void 0!==j&&clearTimeout(j),O=0,y=w=g=j=void 0}function m(){return void 0===j?_:h(i())}function b(){var t=i(),n=d(t);if(y=arguments,g=this,w=t,n){if(void 0===j)return f(w);if(C)return j=setTimeout(p,e),r(w)}return void 0===j&&(j=setTimeout(p,e)),_}var y,g,x,_,j,w,O=0,M=!1,C=!1,F=!0;if("function"!=typeof t)throw new TypeError(u);return e=a(e)||0,o(n)&&(M=!!n.leading,C="maxWait"in n,x=C?s(a(n.maxWait)||0,e):x,F="trailing"in n?!!n.trailing:F),b.cancel=v,b.flush=m,b}var o=n(91),i=n(224),a=n(225),u="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){var r=n(83),o=function(){return r.Date.now()};t.exports=o},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var n=c.test(t);return n||f.test(t)?l(t.slice(2),n?2:8):s.test(t)?a:+t}var o=n(91),i=n(124),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:O;return(0,g.default)(t)||""===t?e?[i(n.fieldIsRequired)]:[]:null}function i(t){if(null!=t&&arguments.length>1)for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:O;return o(t,e.required,r)},number:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=[];return(0,b.default)(t)?(!(0,g.default)(e.min)&&te.max&&u.push(i(r.numberTooBig,e.max))):u.push(i(r.invalidNumber)),u},integer:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=M.number(t,e,n,r);return(0,v.default)(t)||u.push(i(r.invalidInteger)),u},double:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);return null!=a?a:!(0,b.default)(t)||isNaN(t)?[i(r.invalidNumber)]:void 0},string:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=[];return(0,p.default)(t)?(!(0,g.default)(e.min)&&t.lengthe.max&&u.push(i(r.textTooBig,t.length,e.max))):u.push(i(r.thisNotText)),u},array:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O;if(e.required){if(!(0,l.default)(t))return[i(r.thisNotArray)];if(0==t.length)return[i(r.fieldIsRequired)]}if(!(0,g.default)(t)){if(!(0,g.default)(e.min)&&t.lengthe.max)return[i(r.selectMaxItems,e.max)]}},date:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=new Date(t);if(!u)return[i(r.invalidDate)];var s=[];if(!(0,g.default)(e.min)){var c=new Date(e.min);u.valueOf()f.valueOf()&&s.push(i(r.dateIsLate,w.default.format(u),w.default.format(f)))}return s},regexp:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;if(!(0,g.default)(e.pattern)){var u=new RegExp(e.pattern);if(!u.test(t))return[i(r.invalidFormat)]}},email:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return u.test(t)?void 0:[i(r.invalidEmail)]},url:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g;return u.test(t)?void 0:[i(r.invalidURL)]},creditCard:function t(e,n,r){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,u=o(e,n.required,a);if(null!=u)return u;var t=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,s=e.replace(/[^0-9]+/g,"");if(!t.test(s))return[i(a.invalidCard)];for(var c=0,f=void 0,l=void 0,d=void 0,p=s.length-1;p>=0;p--)f=s.substring(p,p+1),l=parseInt(f,10),d?(l*=2,c+=l>=10?l%10+1:l):c+=l,d=!d;return c%10===0&&s?void 0:[i(a.invalidCardNumber)]},alpha:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/^[a-zA-Z]*$/;return u.test(t)?void 0:[i(r.invalidTextContainNumber)]},alphaNumeric:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:O,a=o(t,e.required,r);if(null!=a)return a;var u=/^[a-zA-Z0-9]*$/;return u.test(t)?void 0:[i(r.invalidTextContainSpec)]}};t.exports=M,(0,u.default)(t.exports).forEach(function(e){var n=t.exports[e];(0,c.default)(n)&&(n.locale=function(t){return function(e,r,o){return n(e,r,o,(0,_.default)(t,O))}})})},function(t,e,n){t.exports={default:n(228),__esModule:!0}},function(t,e,n){n(229),t.exports=n(16).Object.keys},function(t,e,n){var r=n(51),o=n(35);n(230)("keys",function(){return function(t){return o(r(t))}})},function(t,e,n){var r=n(14),o=n(16),i=n(25);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){function r(t){return"number"==typeof t&&t==o(t)}var o=n(232);t.exports=r},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(233);t.exports=r},function(t,e,n){function r(t){if(!t)return 0===t?t:0;if(t=o(t),t===i||t===-i){var e=t<0?-1:1;return e*a}return t===t?t:0}var o=n(225),i=1/0,a=1.7976931348623157e308;t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||i(t)&&o(t)==a}var o=n(81),i=n(88),a="[object Number]";t.exports=r},function(t,e,n){var r=n(236),o=n(237),i=n(239),a=n(246),u=i(function(t){return t.push(void 0,a),r(o,void 0,t)});t.exports=u},function(t,e){function n(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}t.exports=n},function(t,e,n){var r=n(175),o=n(238),i=n(177),a=o(function(t,e,n,o){r(e,i(e),t,o)});t.exports=a},function(t,e,n){function r(t){return o(function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,u=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,u&&i(n[0],n[1],u)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;t.exports=n},function(t,e,n){function r(t,e,n){if(!u(n))return!1;var r=typeof e;return!!("number"==r?i(n)&&a(e,n.length):"string"==r&&e in n)&&o(n[e],t)}var o=n(147),i=n(116),a=n(106),u=n(91);t.exports=r},function(t,e,n){function r(t,e,n,r){return void 0===t||o(t,i[n])&&!a.call(r,n)?e:t}var o=n(147),i=Object.prototype,a=i.hasOwnProperty;t.exports=r},function(t,e,n){var r;!function(o){"use strict";function i(t,e){for(var n=[],r=0,o=t.length;r3?0:(t-t%10!==10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return u(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return u(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return u(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return t.getFullYear()},h:function(t){return t.getHours()%12||12},hh:function(t){return u(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return u(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return u(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return u(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return u(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return u(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+u(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},_={D:[f,function(t,e){t.day=e}],Do:[new RegExp(f.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[f,function(t,e){t.month=e-1}],YY:[f,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[f,function(t,e){t.hour=e}],m:[f,function(t,e){t.minute=e}],s:[f,function(t,e){t.second=e}],YYYY:[d,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[l,function(t,e){t.millisecond=e}],d:[f,v],ddd:[p,v],MMM:[p,a("monthNamesShort")],MMMM:[p,a("monthNames")],a:[p,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=+(60*r[1])+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,s.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},s.format=function(t,e,n){var r=n||s.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=s.masks[e]||e||s.masks.default; -var o=[];return e=e.replace(h,function(t,e){return o.push(e),"??"}),e=e.replace(c,function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return o.shift()})},s.parse=function(t,e,n){var r=n||s.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=s.masks[e]||e,t.length>1e3)return!1;var o=!0,i={};if(e.replace(c,function(e){if(_[e]){var n=_[e],a=t.search(n[0]);~a?t.replace(n[0],function(e){return n[1](i,e,r),t=t.substr(a+e.length),e}):o=!1}return _[e]?"":e.slice(1,e.length-1)}),!o)return!1;var a=new Date;i.isPm===!0&&null!=i.hour&&12!==+i.hour?i.hour=+i.hour+12:i.isPm===!1&&12===+i.hour&&(i.hour=0);var u;return null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,u=new Date(Date.UTC(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):u=new Date(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),u},"undefined"!=typeof t&&t.exports?t.exports=s:(r=function(){return s}.call(e,n,e,t),!(void 0!==r&&(t.exports=r)))}(this)},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"checkbox",autocomplete:t.schema.autocomplete,disabled:t.disabled,name:t.schema.inputName},domProps:{checked:Array.isArray(t.value)?t._i(t.value,null)>-1:t.value},on:{click:function(e){var n=t.value,r=e.target,o=!!r.checked;if(Array.isArray(n)){var i=null,a=t._i(n,i);o?a<0&&(t.value=n.concat(i)):a>-1&&(t.value=n.slice(0,a).concat(n.slice(a+1)))}else t.value=o}}})},staticRenderFns:[]}},function(t,e,n){n(250);var r=n(3)(n(251),n(253),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(252),i=r(o),a=n(89),u=r(a),s=n(91),c=r(s),f=n(222),l=r(f),d=n(162);e.default={mixins:[l.default],data:function(){return{comboExpanded:!1}},computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},selectedCount:function(){return this.value?this.value.length:0}},methods:{getInputName:function(t){return this.schema&&this.schema.inputName&&this.schema.inputName.length>0?(0,d.slugify)(this.schema.inputName+"_"+this.getItemValue(t)):(0,d.slugify)(this.getItemValue(t))},getItemValue:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.checklistOptions&&"undefined"!=typeof this.schema.checklistOptions.value)return t[this.schema.checklistOptions.value];if("undefined"!=typeof t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},getItemName:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.checklistOptions&&"undefined"!=typeof this.schema.checklistOptions.name)return t[this.schema.checklistOptions.name];if("undefined"!=typeof t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},isItemChecked:function(t){return this.value&&this.value.indexOf(this.getItemValue(t))!=-1},onChanged:function(t,e){if(!(0,u.default)(this.value)&&Array.isArray(this.value)||(this.value=[]),t.target.checked){var n=(0,i.default)(this.value);n.push(this.getItemValue(e)),this.value=n}else{var r=(0,i.default)(this.value);r.splice(this.value.indexOf(this.getItemValue(e)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}}},function(t,e,n){function r(t){return o(t,i)}var o=n(164),i=4;t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[t.schema.listBox?n("div",{staticClass:"listbox form-control",attrs:{disabled:t.disabled}},t._l(t.items,function(e){return n("div",{staticClass:"list-row",class:{"is-checked":t.isItemChecked(e)}},[n("label",[n("input",{attrs:{id:t.getFieldID(t.schema),type:"checkbox",disabled:t.disabled,name:t.getInputName(e)},domProps:{checked:t.isItemChecked(e)},on:{change:function(n){t.onChanged(n,e)}}}),t._v(t._s(t.getItemName(e)))])])})):t._e(),t.schema.listBox?t._e():n("div",{staticClass:"combobox form-control",attrs:{disabled:t.disabled}},[n("div",{staticClass:"mainRow",class:{expanded:t.comboExpanded},on:{click:t.onExpandCombo}},[n("div",{staticClass:"info"},[t._v(t._s(t.selectedCount)+" selected")]),n("div",{staticClass:"arrow"})]),n("div",{staticClass:"dropList"},t._l(t.items,function(e){return t.comboExpanded?n("div",{staticClass:"list-row",class:{"is-checked":t.isItemChecked(e)}},[n("label",[n("input",{attrs:{id:t.getFieldID(t.schema),type:"checkbox",disabled:t.disabled,name:t.getInputName(e)},domProps:{checked:t.isItemChecked(e)},on:{change:function(n){t.onChanged(n,e)}}}),t._v(t._s(t.getItemName(e)))])]):t._e()}))])])},staticRenderFns:[]}},function(t,e,n){n(255);var r=n(3)(n(256),n(257),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(234),i=r(o),a=n(90),u=r(a),s=n(120),c=r(s),f=n(223),l=r(f),d=n(222),p=r(d),h=n(247),v=r(h),m={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};e.default={mixins:[p.default],methods:{formatValueToModel:function(t){var e=this;if(null!=t)switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,r){e.debouncedFormatFunc(t,r)}}return t},formatDatetimeToModel:function(t,e){var n=m[this.schema.inputType.toLowerCase()],r=v.default.parse(t,n);r!==!1&&(t=this.schema.format?v.default.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,e)},formatNumberToModel:function(t,e){(0,i.default)(t)||(t=NaN),this.updateModelValue(t,e)},onInput:function(t){var e=t.target.value;switch(this.schema.inputType.toLowerCase()){case"number":case"range":(0,i.default)(t.target.valueAsNumber)&&(e=t.target.valueAsNumber)}this.value=e},onBlur:function(){(0,u.default)(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var t=this;switch(this.schema.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=(0,l.default)(function(e,n){t.formatNumberToModel(e,n)},parseInt((0,c.default)(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=(0,l.default)(function(e,n){t.formatDatetimeToModel(e,n)},parseInt((0,c.default)(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1})}},created:function(){"file"==this.schema.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("input",{staticClass:"form-control",class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:t.schema.inputType.toLowerCase(),disabled:t.disabled,accept:t.schema.accept,alt:t.schema.alt,autocomplete:t.schema.autocomplete,dirname:t.schema.dirname,formaction:t.schema.formaction,formenctype:t.schema.formenctype,formmethod:t.schema.formmethod,formnovalidate:t.schema.formnovalidate,formtarget:t.schema.formtarget,height:t.schema.height,list:t.schema.list,max:t.schema.max,maxlength:t.schema.maxlength,min:t.schema.min,minlength:t.schema.minlength,multiple:t.schema.multiple,name:t.schema.inputName,pattern:t.schema.pattern,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,size:t.schema.size,src:t.schema.src,step:t.schema.step,width:t.schema.width,files:t.schema.files},domProps:{value:t.value,checked:t.schema.checked},on:{input:t.onInput,blur:t.onBlur,change:function(e){t.schema.onChange||null}}}),"color"===t.schema.inputType.toLowerCase()||"range"===t.schema.inputType.toLowerCase()?n("span",{staticClass:"helper"},[t._v(t._s(t.value))]):t._e()])},staticRenderFns:[]}},function(t,e,n){n(259);var r=n(3)(n(260),n(261),null,null);t.exports=r.exports},2,221,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema)}},[t._v(t._s(t.value))])},staticRenderFns:[]}},function(t,e,n){n(263);var r=n(3)(n(264),n(265),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(91),i=r(o),a=n(222),u=r(a);e.default={mixins:[u.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},id:function(){return this.schema.model}},methods:{getItemValue:function(t){if((0,i.default)(t)){if("undefined"!=typeof this.schema.radiosOptions&&"undefined"!=typeof this.schema.radiosOptions.value)return t[this.schema.radiosOptions.value];if("undefined"!=typeof t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemName:function(t){if((0,i.default)(t)){if("undefined"!=typeof this.schema.radiosOptions&&"undefined"!=typeof this.schema.radiosOptions.name)return t[this.schema.radiosOptions.name];if("undefined"!=typeof t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){var e=this.getItemValue(t);return e===this.value}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"radio-list",attrs:{disabled:t.disabled}},t._l(t.items,function(e){return n("label",{class:{"is-checked":t.isItemChecked(e)}},[n("input",{class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"radio",disabled:t.disabled,name:t.id},domProps:{value:t.getItemValue(e),checked:t.isItemChecked(e)},on:{click:function(n){t.onSelection(e)}}}),t._v(t._s(t.getItemName(e)))])}))},staticRenderFns:[]}},function(t,e,n){n(267);var r=n(3)(n(268),n(296),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(269),i=r(o),a=n(89),u=r(a),s=n(91),c=r(s),f=n(222),l=r(f);e.default={mixins:[l.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},items:function(){var t=this.schema.values;return"function"==typeof t?this.groupValues(t.apply(this,[this.model,this.schema])):this.groupValues(t)}},methods:{formatValueToField:function(t){return(0,u.default)(t)?null:t},groupValues:function(t){var e=[],n={};return t.forEach(function(t){n=null,t.group&&(0,c.default)(t)?(n=(0,i.default)(e,function(e){return e.group==t.group}),n?n.ops.push({id:t.id,name:t.name}):(n={group:"",ops:[]},n.group=t.group,n.ops.push({id:t.id,name:t.name}),e.push(n))):e.push(t)}),e},getGroupName:function(t){if(t&&t.group)return t.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.selectOptions&&"undefined"!=typeof this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if("undefined"!=typeof t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if((0,c.default)(t)){if("undefined"!=typeof this.schema.selectOptions&&"undefined"!=typeof this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if("undefined"!=typeof t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}}}},function(t,e,n){var r=n(270),o=n(294),i=r(o);t.exports=i},function(t,e,n){function r(t){return function(e,n,r){var u=Object(e);if(!i(e)){var s=o(n,3);e=a(e),n=function(t){return s(u[t],t,u)}}var c=t(e,n,r);return c>-1?u[s?e[c]:c]:void 0}}var o=n(271),i=n(116),a=n(98);t.exports=r},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?u(t)?i(t[0],t[1]):o(t):s(t)}var o=n(272),i=n(287),a=n(119),u=n(87),s=n(291);t.exports=r},function(t,e,n){function r(t){var e=i(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(n){return n===t||o(n,t,e)}}var o=n(273),i=n(284),a=n(286);t.exports=r},function(t,e,n){function r(t,e,n,r){var s=n.length,c=s,f=!r;if(null==t)return!c;for(t=Object(t);s--;){var l=n[s];if(f&&l[2]?l[1]!==t[l[0]]:!(l[0]in t))return!1}for(;++sd))return!1;var h=f.get(t);if(h&&f.get(e))return h==e;var v=-1,m=!0,b=n&s?new o:void 0;for(f.set(t,e),f.set(e,t);++v"))]),t._l(t.items,function(e){return[e.group?n("optgroup",{attrs:{label:t.getGroupName(e)}},t._l(e.ops,function(r){return e.ops?n("option",{domProps:{value:t.getItemValue(r)}},[t._v(t._s(t.getItemName(r)))]):t._e()})):t._e(),e.group?t._e():n("option",{domProps:{value:t.getItemValue(e)}},[t._v(t._s(t.getItemName(e)))])]})],2)},staticRenderFns:[]}},function(t,e,n){n(298);var r=n(3)(n(299),n(301),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(300),i=r(o),a=n(90),u=r(a),s=n(222),c=r(s);e.default={mixins:[c.default],methods:{onClick:function(t){var e=this;if(this.schema.validateBeforeSubmit===!0){t.preventDefault();var n=this.$parent.validate(),r=function(n){!(0,i.default)(n)&&(0,u.default)(e.schema.onValidationError)?e.schema.onValidationError(e.model,e.schema,n,t):(0,u.default)(e.schema.onSubmit)&&e.schema.onSubmit(e.model,e.schema,t)};n&&(0,u.default)(n.then)?n.then(r):r(n)}else(0,u.default)(this.schema.onSubmit)&&this.schema.onSubmit(this.model,this.schema,t)}}}},function(t,e,n){function r(t){if(null==t)return!0;if(s(t)&&(u(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||l(t)||a(t)))return!t.length;var e=i(t);if(e==d||e==p)return!t.size;if(f(t))return!o(t).length;for(var n in t)if(v.call(t,n))return!1;return!0}var o=n(112),i=n(193),a=n(101),u=n(87),s=n(116),c=n(103),f=n(113),l=n(107),d="[object Map]",p="[object Set]",h=Object.prototype,v=h.hasOwnProperty;t.exports=r},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("input",{class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),type:"submit",name:t.schema.inputName,disabled:t.disabled},domProps:{value:t.schema.buttonText},on:{click:t.onClick}})},staticRenderFns:[]}},function(t,e,n){n(303);var r=n(3)(n(304),n(305),null,null);t.exports=r.exports},2,221,function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.value,expression:"value"}],staticClass:"form-control",class:t.schema.fieldClasses,attrs:{id:t.getFieldID(t.schema),disabled:t.disabled,maxlength:t.schema.max,minlength:t.schema.min,placeholder:t.schema.placeholder,readonly:t.schema.readonly,rows:t.schema.rows||2,name:t.schema.inputName},domProps:{value:t._s(t.value)},on:{input:function(e){e.target.composing||(t.value=e.target.value)}}})},staticRenderFns:[]}},function(t,e,n){n(307);var r=n(3)(n(308),n(309),null,null);t.exports=r.exports},2,function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(90),i=r(o),a=n(222),u=r(a);e.default={mixins:[u.default],methods:{onChange:function(t){(0,i.default)(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,this.schema,t,this)}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"wrapper"},[n("input",{staticClass:"form-control",attrs:{id:t.getFieldID(t.schema),type:"file",name:t.schema.inputName,accept:t.schema.accept,multiple:t.schema.multiple,placeholder:t.schema.placeholder,readonly:t.schema.readonly,required:t.schema.required,disabled:t.disabled},on:{change:t.onChange}})])},staticRenderFns:[]}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return null!=t.schema?n("div",{staticClass:"vue-form-generator"},[t.schema.fields?n(t.tag,{tag:"fieldset"},[t._l(t.fields,function(e){return[t.fieldVisible(e)?n("div",{staticClass:"form-group",class:t.getFieldRowClasses(e)},[t.fieldTypeHasLabel(e)?n("label",{class:e.labelClasses,attrs:{for:t.getFieldID(e)}},[t._v(t._s(e.label)),e.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),n("div",{staticClass:"helpText",domProps:{innerHTML:t._s(e.help)}})]):t._e()]):t._e(),n("div",{staticClass:"field-wrap"},[n(t.getFieldType(e),{tag:"component",attrs:{disabled:t.fieldDisabled(e),model:t.model,schema:e,formOptions:t.options},on:{"model-updated":t.modelUpdated,validated:t.onFieldValidated}}),t.buttonVisibility(e)?n("div",{staticClass:"buttons"},t._l(e.buttons,function(r){return n("button",{class:r.classes,on:{click:function(n){t.buttonClickHandler(r,e,n)}}},[t._v(t._s(r.label))])})):t._e()],1),e.hint?n("div",{staticClass:"hint"},[t._v(t._s(t.fieldHint(e)))]):t._e(),t.fieldErrors(e).length>0?n("div",{staticClass:"errors help-block"},t._l(t.fieldErrors(e),function(e,r){return n("span",{attrs:{"track-by":"index"},domProps:{innerHTML:t._s(e)}})})):t._e()]):t._e()]})],2):t._e(),t._l(t.groups,function(e){return[n(t.tag,{tag:"fieldset",class:t.getFieldRowClasses(e)},[e.legend?n("legend",[t._v(t._s(e.legend))]):t._e(),t._l(e.fields,function(e){return[t.fieldVisible(e)?n("div",{staticClass:"form-group",class:t.getFieldRowClasses(e)},[t.fieldTypeHasLabel(e)?n("label",{class:e.labelClasses,attrs:{for:t.getFieldID(e)}},[t._v(t._s(e.label)),e.help?n("span",{staticClass:"help"},[n("i",{staticClass:"icon"}),n("div",{staticClass:"helpText",domProps:{innerHTML:t._s(e.help)}})]):t._e()]):t._e(),n("div",{staticClass:"field-wrap"},[n(t.getFieldType(e),{tag:"component",attrs:{disabled:t.fieldDisabled(e),model:t.model,schema:e,formOptions:t.options},on:{"model-updated":t.modelUpdated,validated:t.onFieldValidated}}),t.buttonVisibility(e)?n("div",{staticClass:"buttons"},t._l(e.buttons,function(r){return n("button",{class:r.classes,on:{click:function(n){t.buttonClickHandler(r,e,n)}}},[t._v(t._s(r.label))])})):t._e()],1),e.hint?n("div",{staticClass:"hint"},[t._v(t._s(e.hint))]):t._e(),t.fieldErrors(e).length>0?n("div",{staticClass:"errors help-block"},t._l(t.fieldErrors(e),function(e,r){return n("span",{attrs:{"track-by":"index"},domProps:{innerHTML:t._s(e)}})})):t._e()]):t._e()]})],2)]})],2):t._e()},staticRenderFns:[]}}]))}); \ No newline at end of file +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.VueFormGenerator=e():t.VueFormGenerator=e()}("undefined"!=typeof self?self:this,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=123)}([function(t,e){var n=Array.isArray;t.exports=n},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){var r=n(74)("wks"),o=n(75),i=n(2).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==u||e==s||e==a||e==c}var o=n(11),i=n(1),a="[object AsyncFunction]",u="[object Function]",s="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(84),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){"use strict";function r(t,e,n,r,o,i,a,u){t=t||{};var s=typeof t.default;"object"!==s&&"function"!==s||(t=t.default);var c="function"==typeof t?t.options:t;e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),i&&(c._scopeId=i);var f;if(a?(f=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=f):o&&(f=u?function(){o.call(this,this.$root.$options.shadowRoot)}:o),f)if(c.functional){c._injectStyles=f;var l=c.render;c.render=function(t,e){return f.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,f):[f]}return{exports:t,options:c}}e.a=r},function(t,e,n){"use strict";function r(t){return d()(t)?null!=g.default[t]?g.default[t]:(console.warn("'"+t+"' is not a validator function!"),null):t}function o(t,e,n){var r=y()(n.context,"schema.attributes",{}),o=e.value||"input";d()(o)&&(r=y()(r,o)||r),m()(r,function(e,n){t.setAttribute(n,e)})}Object.defineProperty(e,"__esModule",{value:!0});var i=n(68),a=n.n(i),u=n(104),s=n.n(u),c=n(0),f=n.n(c),l=n(61),d=n.n(l),p=n(4),h=n.n(p),v=n(24),m=n.n(v),b=n(12),y=n.n(b),g=n(106),x=n(41);e.default={props:["model","schema","formOptions","disabled"],data:function(){return{errors:[],debouncedValidateFunc:null,debouncedFormatFunction:null}},directives:{attributes:{bind:o,updated:o,componentUpdated:o}},computed:{value:{cache:!1,get:function(){var t=void 0;return t=h()(y()(this.schema,"get"))?this.schema.get(this.model):y()(this.model,this.schema.model),this.formatValueToField(t)},set:function(t){var e=this.value;t=this.formatValueToModel(t),h()(t)?t(t,e):this.updateModelValue(t,e)}}},methods:{validate:function(t){var e=this;this.clearValidationErrors();var n=y()(this.formOptions,"validateAsync",!1),o=[];if(this.schema.validator&&!0!==this.schema.readonly&&!0!==this.disabled){var i=[];f()(this.schema.validator)?m()(this.schema.validator,function(t){i.push(r(t).bind(e))}):i.push(r(this.schema.validator).bind(this)),m()(i,function(t){if(n)o.push(t(e.value,e.schema,e.model));else{var r=t(e.value,e.schema,e.model);r&&h()(r.then)?r.then(function(t){t&&(e.errors=e.errors.concat(t));var n=0===e.errors.length;e.$emit("validated",n,e.errors,e)}):r&&(o=o.concat(r))}})}var u=function(n){var r=[];m()(n,function(t){f()(t)&&t.length>0?r=r.concat(t):d()(t)&&r.push(t)}),h()(e.schema.onValidated)&&e.schema.onValidated.call(e,e.model,r,e.schema);var o=0===r.length;return t||e.$emit("validated",o,r,e),e.errors=r,r};return n?a.a.all(o).then(u):u(o)},debouncedValidate:function(){h()(this.debouncedValidateFunc)||(this.debouncedValidateFunc=s()(this.validate.bind(this),y()(this,"$parent.options.validateDebounceTime",500))),this.debouncedValidateFunc()},updateModelValue:function(t,e){var n=!1;h()(this.schema.set)?(this.schema.set(this.model,t),n=!0):this.schema.model&&(this.setModelValueByPath(this.schema.model,t),n=!0),n&&(this.$emit("model-updated",t,this.schema.model),h()(this.schema.onChanged)&&this.schema.onChanged.call(this,this.model,t,e,this.schema),!0===y()(this.$parent,"options.validateAfterChanged",!1)&&(y()(this.$parent,"options.validateDebounceTime",0)>0?this.debouncedValidate():this.validate()))},clearValidationErrors:function(){this.errors.splice(0)},setModelValueByPath:function(t,e){var n=t.replace(/\[(\w+)\]/g,".$1");n=n.replace(/^\./,"");for(var r=this.model,o=n.split("."),i=0,a=o.length;i-1&&t%1==0&&t1&&void 0!==arguments[1]?arguments[1]:{};return d()(t.fields,function(n){void 0===m()(e,n.model)&&void 0!==n.default&&(a()(n.default)?h()(e,n.model,n.default(n,t,e)):f()(n.default)||s()(n.default)?h()(e,n.model,o()(n.default)):h()(e,n.model,n.default))}),e},y=function(t){var e=[];return d()(t.fields,function(t){!0===t.multi&&e.push(t)}),e},g=function(t,e){var n={},r=y(t);return d()(r,function(t){var r=void 0,o=!0,i=t.model;d()(e,function(t){var e=m()(t,i);o?(r=e,o=!1):r!==e&&(r=void 0)}),h()(n,i,r)}),n},x=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return void 0!==t.id?e+t.id:e+(t.inputName||t.label||t.model||"").toString().trim().toLowerCase().replace(/ |_/g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-]+)/g,"")},_=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toString().trim().replace(/ /g,"-").replace(/-{2,}/g,"-").replace(/^-+|-+$/g,"").replace(/([^a-zA-Z0-9-_\/.\/:]+)/g,"")}},function(t,e,n){function r(t,e,n,r){var a=!n;n||(n={});for(var u=-1,s=e.length;++u0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var r=n(21),o=n(2).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){var r=n(137),o=n(44);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(74)("keys"),o=n(75);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(20).f,o=n(30),i=n(3)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){"use strict";function r(t){var e,n;this.promise=new t(function(t,r){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=r}),this.resolve=o(e),this.reject=o(n)}var o=n(29);t.exports.f=function(t){return new r(t)}},function(t,e,n){var r=n(166),o=n(9),i=Object.prototype,a=i.hasOwnProperty,u=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!u.call(t,"callee")};t.exports=s},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(168),o=n(55),i=n(56),a=i&&i.isTypedArray,u=a?o(a):r;t.exports=u},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){(function(t){var r=n(84),o="object"==typeof e&&e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o,u=a&&r.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=s}).call(e,n(52)(t))},function(t,e,n){function r(t,e){return o(t)?t:i(t,e)?[t]:a(u(t))}var o=n(0),i=n(58),a=n(172),u=n(196);t.exports=r},function(t,e,n){function r(t,e){if(o(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||(u.test(t)||!a.test(t)||null!=e&&t in Object(e))}var o=n(0),i=n(36),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0}}},data:function(){return{errors:[]}},computed:{fields:function(){var t=this,e=[];return this.schema&&this.schema.fields&&d()(this.schema.fields,function(n){t.multiple&&!0!==n.multi||e.push(n)}),e},groups:function(){var t=[];return this.schema&&this.schema.groups&&d()(this.schema.groups.slice(0),function(e){t.push(e)}),t}},watch:{model:function(t,e){var n=this;e!==t&&null!=t&&this.$nextTick(function(){!0===n.options.validateAfterLoad&&!0!==n.isNewModel?n.validate():n.clearValidationErrors()})}},mounted:function(){var t=this;this.$nextTick(function(){t.model&&(!0===t.options.validateAfterLoad&&!0!==t.isNewModel?t.validate():t.clearValidationErrors())})},methods:{fieldVisible:function(t){return f()(t.visible)?t.visible.call(this,this.model,t,this):!!s()(t.visible)||t.visible},onFieldValidated:function(t,e,n){var r=this;this.errors=this.errors.filter(function(t){return t.field!==n.schema}),!t&&e&&e.length>0&&d()(e,function(t){r.errors.push({field:n.schema,error:t})});var o=0===this.errors.length;this.$emit("validated",o,this.errors,this)},validate:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;null===e&&(e=h()(this.options,"validateAsync",!1)),this.clearValidationErrors();var n=[],r=[];d()(this.$children,function(t){f()(t.validate)&&(n.push(t.$refs.child),r.push(t.validate(!0)))});var i=function(r){var o=[];d()(r,function(t,e){a()(t)&&t.length>0&&d()(t,function(t){o.push({field:n[e].schema,error:t})})}),t.errors=o;var i=0===o.length;return t.$emit("validated",i,o,t),e?o:i};return e?o.a.all(r).then(i):i(r)},clearValidationErrors:function(){this.errors.splice(0),d()(this.$children,function(t){t.clearValidationErrors()})}}}},function(t,e,n){t.exports={default:n(126),__esModule:!0}},function(t,e,n){"use strict";var r=n(70),o=n(14),i=n(132),a=n(15),u=n(30),s=n(22),c=n(133),f=n(49),l=n(140),d=n(3)("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,m,b,y){c(n,e,v);var g,x,_,j=function(t){if(!p&&t in C)return C[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",O="values"==m,M=!1,C=t.prototype,S=C[d]||C["@@iterator"]||m&&C[m],T=S||j(m),F=m?O?j("entries"):T:void 0,I="Array"==e?C.entries||S:S;if(I&&(_=l(I.call(new t)))!==Object.prototype&&_.next&&(f(_,w,!0),r||u(_,d)||a(_,d,h)),O&&S&&"values"!==S.name&&(M=!0,T=function(){return S.call(this)}),r&&!y||!p&&!M&&C[d]||a(C,d,T),s[e]=T,s[w]=h,m)if(g={values:O?T:j("values"),keys:b?T:j("keys"),entries:F},y)for(x in g)x in C||i(C,x,g[x]);else o(o.P+o.F*(p||M),e,g);return g}},function(t,e){t.exports=!0},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var r=n(136),o=n(76);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(43),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(2),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(2).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(44);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(31),o=n(3)("toStringTag"),i="Arguments"==r(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),o))?n:i?r(e):"Object"==(u=r(e))&&"function"==typeof e.callee?"Arguments":u}},function(t,e,n){var r=n(10),o=n(29),i=n(3)("species");t.exports=function(t,e){var n,a=r(t).constructor;return void 0===a||void 0==(n=r(a)[i])?e:o(n)}},function(t,e,n){var r,o,i,a=n(28),u=n(151),s=n(77),c=n(46),f=n(2),l=f.process,d=f.setImmediate,p=f.clearImmediate,h=f.MessageChannel,v=f.Dispatch,m=0,b={},y=function(){var t=+this;if(b.hasOwnProperty(t)){var e=b[t];delete b[t],e()}},g=function(t){y.call(t.data)};d&&p||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return b[++m]=function(){u("function"==typeof t?t:Function(t),e)},r(m),m},p=function(t){delete b[t]},"process"==n(31)(l)?r=function(t){l.nextTick(a(y,t,1))}:v&&v.now?r=function(t){v.now(a(y,t,1))}:h?(o=new h,i=o.port2,o.port1.onmessage=g,r=a(i.postMessage,i,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",g,!1)):r="onreadystatechange"in c("script")?function(t){s.appendChild(c("script")).onreadystatechange=function(){s.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:p}},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,n){var r=n(10),o=n(21),i=n(50);t.exports=function(t,e){if(r(t),o(e)&&e.constructor===t)return e;var n=i.f(t);return(0,n.resolve)(e),n.promise}},function(t,e,n){(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.exports=n}).call(e,n(158))},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length;++n0,r=(e={},o()(e,m()(this.options,"validationErrorClass","error"),n),o()(e,m()(this.options,"validationSuccessClass","valid"),!n),o()(e,"disabled",this.fieldDisabled(t)),o()(e,"readonly",this.fieldReadonly(t)),o()(e,"featured",this.fieldFeatured(t)),o()(e,"required",this.fieldRequired(t)),e);return f()(t.styleClasses)?h()(t.styleClasses,function(t){return r[t]=!0}):s()(t.styleClasses)&&(r[t.styleClasses]=!0),d()(t.type)||(r["field-"+t.type]=!0),r},fieldErrors:function(t){return this.errors.filter(function(e){return e.field===t}).map(function(t){return t.error})},fieldDisabled:function(t){return a()(t.disabled)?t.disabled.call(this,this.model,t,this):!d()(t.disabled)&&t.disabled},fieldReadonly:function(t){return a()(t.readonly)?t.readonly.call(this,this.model,t,this):!d()(t.readonly)&&t.readonly},fieldFeatured:function(t){return a()(t.featured)?t.featured.call(this,this.model,t,this):!d()(t.featured)&&t.featured},fieldRequired:function(t){return a()(t.required)?t.required.call(this,this.model,t,this):!d()(t.required)&&t.required}}}},function(t,e,n){"use strict";var r=n(4),o=n.n(r),i=n(17),a=n.n(i),u=n(24),s=n.n(u),c=n(12),f=n.n(c),l=n(41),d=n(91),p={},h=n(240);s()(h.keys(),function(t){var e=t.replace(/^\.\//,"").replace(/\.vue/,"");p[e]=h(t).default});e.a={name:"form-group",components:p,mixins:[d.a],props:{model:Object,options:{type:Object},field:{type:Object,required:!0},errors:{type:Array,default:function(){return[]}}},methods:{fieldTypeHasLabel:function(t){if(a()(t.label))return!1;switch("input"===t.type?t.inputType:t.type){case"button":case"submit":case"reset":return!1;default:return!0}},getFieldID:function(t){var e=f()(this.options,"fieldIdPrefix","");return Object(l.slugifyFormID)(t,e)},getFieldType:function(t){return"field-"+t.type},onFieldValidated:function(t,e,n){this.$emit("validated",t,e,n)},buttonVisibility:function(t){return t.buttons&&t.buttons.length>0},buttonClickHandler:function(t,e,n){return t.onclick.call(this,this.model,e,n,this)},fieldHint:function(t){return o()(t.hint)?t.hint.call(this,this.model,t,this):t.hint},fieldErrors:function(t){return this.errors.filter(function(e){return e.field===t}).map(function(t){return t.error})},modelUpdated:function(t,e){this.$emit("model-updated",t,e)},validate:function(t){return this.$refs.child.validate(t)},clearValidationErrors:function(){if(this.$refs.child)return this.$refs.child.clearValidationErrors()}}}},function(t,e,n){function r(t,e,n,A,D,N){var E,V=e&M,L=e&C,$=e&S;if(n&&(E=D?n(t,A,D,N):n(t)),void 0!==E)return E;if(!j(t))return t;var Y=g(t);if(Y){if(E=m(t),!V)return f(t,E)}else{var z=v(t),R=z==F||z==I;if(x(t))return c(t,V);if(z==P||z==T||R&&!D){if(E=L||R?{}:y(t),!V)return L?d(t,s(E,t)):l(t,u(E,t))}else{if(!k[z])return D?t:{};E=b(t,z,V)}}N||(N=new o);var H=N.get(t);if(H)return H;if(N.set(t,E),w(t))return t.forEach(function(o){E.add(r(o,e,n,o,t,N))}),E;if(_(t))return t.forEach(function(o,i){E.set(i,r(o,e,n,i,t,N))}),E;var q=$?L?h:p:L?keysIn:O,U=Y?void 0:q(t);return i(U||t,function(o,i){U&&(i=o,o=t[i]),a(E,i,r(o,e,n,i,t,N))}),E}var o=n(62),i=n(85),a=n(63),u=n(211),s=n(212),c=n(215),f=n(216),l=n(217),d=n(219),p=n(100),h=n(220),v=n(27),m=n(225),b=n(226),y=n(231),g=n(0),x=n(32),_=n(233),j=n(1),w=n(235),O=n(18),M=1,C=2,S=4,T="[object Arguments]",F="[object Function]",I="[object GeneratorFunction]",P="[object Object]",k={};k[T]=k["[object Array]"]=k["[object ArrayBuffer]"]=k["[object DataView]"]=k["[object Boolean]"]=k["[object Date]"]=k["[object Float32Array]"]=k["[object Float64Array]"]=k["[object Int8Array]"]=k["[object Int16Array]"]=k["[object Int32Array]"]=k["[object Map]"]=k["[object Number]"]=k[P]=k["[object RegExp]"]=k["[object Set]"]=k["[object String]"]=k["[object Symbol]"]=k["[object Uint8Array]"]=k["[object Uint8ClampedArray]"]=k["[object Uint16Array]"]=k["[object Uint32Array]"]=!0,k["[object Error]"]=k[F]=k["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){function r(t,e,n){"__proto__"==e&&o?o(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var o=n(95);t.exports=r},function(t,e,n){var r=n(13),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e){function n(){return[]}t.exports=n},function(t,e,n){var r=n(98),o=n(99),i=n(65),a=n(96),u=Object.getOwnPropertySymbols,s=u?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e){function n(t,e){for(var n=-1,r=e.length,o=t.length;++n=e||n<0||C&&r>=x}function p(){var t=i();if(d(t))return h(t);j=setTimeout(p,l(t))}function h(t){return j=void 0,S&&y?r(t):(y=g=void 0,_)}function v(){void 0!==j&&clearTimeout(j),O=0,y=w=g=j=void 0}function m(){return void 0===j?_:h(i())}function b(){var t=i(),n=d(t);if(y=arguments,g=this,w=t,n){if(void 0===j)return f(w);if(C)return j=setTimeout(p,e),r(w)}return void 0===j&&(j=setTimeout(p,e)),_}var y,g,x,_,j,w,O=0,M=!1,C=!1,S=!0;if("function"!=typeof t)throw new TypeError(u);return e=a(e)||0,o(n)&&(M=!!n.leading,C="maxWait"in n,x=C?s(a(n.maxWait)||0,e):x,S="trailing"in n?!!n.trailing:S),b.cancel=v,b.flush=m,b}var o=n(1),i=n(243),a=n(105),u="Expected a function",s=Math.max,c=Math.min;t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(u,"");var n=c.test(t);return n||f.test(t)?l(t.slice(2),n?2:8):s.test(t)?a:+t}var o=n(1),i=n(36),a=NaN,u=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,f=/^0o[0-7]+$/i,l=parseInt;t.exports=r},function(t,e,n){"use strict";function r(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w;return y()(t)||""===t?e?[o(n.fieldIsRequired)]:[]:null}function o(t){if(null!=t&&arguments.length>1)for(var e=1;e3&&void 0!==arguments[3]?arguments[3]:w;return r(t,e.required,o)},number:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=[];return m()(t)?(!y()(e.min)&&te.max&&u.push(o(i.numberTooBig,e.max))):u.push(o(i.invalidNumber)),u},integer:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=O.number(t,e,n,i);return h()(t)||u.push(o(i.invalidInteger)),u},double:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:!m()(t)||isNaN(t)?[o(i.invalidNumber)]:void 0},string:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=[];return d()(t)?(!y()(e.min)&&t.lengthe.max&&u.push(o(i.textTooBig,t.length,e.max))):u.push(o(i.thisNotText)),u},array:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w;if(e.required){if(!f()(t))return[o(r.thisNotArray)];if(0===t.length)return[o(r.fieldIsRequired)]}if(!y()(t)){if(!y()(e.min)&&t.lengthe.max)return[o(r.selectMaxItems,e.max)]}},date:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=new Date(t);if(!u)return[o(i.invalidDate)];var s=[];if(!y()(e.min)){var c=new Date(e.min);u.valueOf()f.valueOf()&&s.push(o(i.dateIsLate,j.a.format(u),j.a.format(f)))}return s},regexp:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;if(!y()(e.pattern)){if(!new RegExp(e.pattern).test(t))return[o(i.invalidFormat)]}},email:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)?void 0:[o(i.invalidEmail)]},url:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&\/\/=]*)/g.test(t)?void 0:[o(i.invalidURL)]},creditCard:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);if(null!=a)return a;var u=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,s=t.replace(/[^0-9]+/g,"");if(!u.test(s))return[o(i.invalidCard)];for(var c=0,f=void 0,l=void 0,d=void 0,p=s.length-1;p>=0;p--)f=s.substring(p,p+1),l=parseInt(f,10),d?(l*=2,c+=l>=10?l%10+1:l):c+=l,d=!d;return c%10==0&&s?void 0:[o(i.invalidCardNumber)]},alpha:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/^[a-zA-Z]*$/.test(t)?void 0:[o(i.invalidTextContainNumber)]},alphaNumeric:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:w,a=r(t,e.required,i);return null!=a?a:/^[a-zA-Z0-9]*$/.test(t)?void 0:[o(i.invalidTextContainSpec)]}};a()(O).forEach(function(t){var e=O[t];s()(e)&&(e.locale=function(t){return function(n,r,o){return e(n,r,o,x()(t,w))}})}),e.default=O},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(249);t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||i(t)&&o(t)==a}var o=n(11),i=n(9),a="[object Number]";t.exports=r},function(t,e,n){var r;!function(o){"use strict";function i(t,e){for(var n=[],r=0,o=t.length;r3?0:(t-t%10!=10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return u(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return u(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return u(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return String(t.getFullYear()).substr(2)},YYYY:function(t){return u(t.getFullYear(),4)},h:function(t){return t.getHours()%12||12},hh:function(t){return u(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return u(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return u(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return u(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return u(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return u(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+u(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},_={D:[f,function(t,e){t.day=e}],Do:[new RegExp(f.source+p.source),function(t,e){t.day=parseInt(e,10)}],M:[f,function(t,e){t.month=e-1}],YY:[f,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[f,function(t,e){t.hour=e}],m:[f,function(t,e){t.minute=e}],s:[f,function(t,e){t.second=e}],YYYY:[d,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[l,function(t,e){t.millisecond=e}],d:[f,v],ddd:[p,v],MMM:[p,a("monthNamesShort")],MMMM:[p,a("monthNames")],a:[p,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,s.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},s.format=function(t,e,n){var r=n||s.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=s.masks[e]||e||s.masks.default;var o=[];return e=e.replace(h,function(t,e){return o.push(e),"??"}),e=e.replace(c,function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return o.shift()})},s.parse=function(t,e,n){var r=n||s.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=s.masks[e]||e,t.length>1e3)return!1;var o=!0,i={};if(e.replace(c,function(e){if(_[e]){var n=_[e],a=t.search(n[0]);~a?t.replace(n[0],function(e){return n[1](i,e,r),t=t.substr(a+e.length),e}):o=!1}return _[e]?"":e.slice(1,e.length-1)}),!o)return!1;var a=new Date;!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0);var u;return null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,u=new Date(Date.UTC(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):u=new Date(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),u},void 0!==t&&t.exports?t.exports=s:void 0!==(r=function(){return s}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){"use strict";var r=n(262),o=n.n(r),i=n(17),a=n.n(i),u=n(1),s=n.n(u),c=n(7),f=n(41);e.a={mixins:[c.default],data:function(){return{comboExpanded:!1}},computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},selectedCount:function(){return this.value?this.value.length:0}},methods:{getInputName:function(t){return this.schema&&this.schema.inputName&&this.schema.inputName.length>0?Object(f.slugify)(this.schema.inputName+"_"+this.getItemValue(t)):Object(f.slugify)(this.getItemValue(t))},getItemValue:function(t){if(s()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.value)return t[this.schema.checklistOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},getItemName:function(t){if(s()(t)){if(void 0!==this.schema.checklistOptions&&void 0!==this.schema.checklistOptions.name)return t[this.schema.checklistOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `checklistOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/checklist.html#checklist-field-with-object-values"}return t},isItemChecked:function(t){return this.value&&-1!==this.value.indexOf(this.getItemValue(t))},onChanged:function(t,e){if(!a()(this.value)&&Array.isArray(this.value)||(this.value=[]),t.target.checked){var n=o()(this.value);n.push(this.getItemValue(e)),this.value=n}else{var r=o()(this.value);r.splice(this.value.indexOf(this.getItemValue(e)),1),this.value=r}},onExpandCombo:function(){this.comboExpanded=!this.comboExpanded}}}},function(t,e,n){"use strict";var r=n(108),o=n.n(r),i=n(4),a=n.n(i),u=n(12),s=n.n(u),c=n(104),f=n.n(c),l=n(7),d=n(109),p=n.n(d),h={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss","datetime-local":"YYYY-MM-DDTHH:mm:ss"};e.a={mixins:[l.default],methods:{formatValueToModel:function(t){var e=this;if(null!=t)switch(this.schema.inputType.toLowerCase()){case"date":case"datetime":case"datetime-local":case"number":case"range":return function(n,r){e.debouncedFormatFunc(t,r)}}return t},formatDatetimeToModel:function(t,e){var n=h[this.schema.inputType.toLowerCase()],r=p.a.parse(t,n);!1!==r&&(t=this.schema.format?p.a.format(r,this.schema.format):r.valueOf()),this.updateModelValue(t,e)},formatNumberToModel:function(t,e){o()(t)||(t=NaN),this.updateModelValue(t,e)},onInput:function(t){var e=t.target.value;switch(this.schema.inputType.toLowerCase()){case"number":case"range":o()(t.target.valueAsNumber)&&(e=t.target.valueAsNumber)}this.value=e},onBlur:function(){a()(this.debouncedFormatFunc)&&this.debouncedFormatFunc.flush()}},mounted:function(){var t=this;switch(this.schema.inputType.toLowerCase()){case"number":case"range":this.debouncedFormatFunc=f()(function(e,n){t.formatNumberToModel(e,n)},parseInt(s()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1});break;case"date":case"datetime":case"datetime-local":this.debouncedFormatFunc=f()(function(e,n){t.formatDatetimeToModel(e,n)},parseInt(s()(this.schema,"debounceFormatTimeout",1e3)),{trailing:!0,leading:!1})}},created:function(){"file"===this.schema.inputType.toLowerCase()&&console.warn("The 'file' type in input field is deprecated. Use 'file' field instead.")}}},function(t,e,n){"use strict";var r=n(7);e.a={mixins:[r.default]}},function(t,e,n){"use strict";var r=n(1),o=n.n(r),i=n(7);e.a={mixins:[i.default],computed:{items:function(){var t=this.schema.values;return"function"==typeof t?t.apply(this,[this.model,this.schema]):t},id:function(){return this.schema.model}},methods:{getItemValue:function(t){if(o()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.value)return t[this.schema.radiosOptions.value];if(void 0!==t.value)return t.value;throw"`value` is not defined. If you want to use another key name, add a `value` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},getItemName:function(t){if(o()(t)){if(void 0!==this.schema.radiosOptions&&void 0!==this.schema.radiosOptions.name)return t[this.schema.radiosOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `radiosOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/radios.html#radios-field-with-object-values"}return t},onSelection:function(t){this.value=this.getItemValue(t)},isItemChecked:function(t){return this.getItemValue(t)===this.value}}}},function(t,e,n){"use strict";var r=n(275),o=n.n(r),i=n(17),a=n.n(i),u=n(1),s=n.n(u),c=n(7);e.a={mixins:[c.default],computed:{selectOptions:function(){return this.schema.selectOptions||{}},items:function(){var t=this.schema.values;return"function"==typeof t?this.groupValues(t.apply(this,[this.model,this.schema])):this.groupValues(t)}},methods:{formatValueToField:function(t){return a()(t)?null:t},groupValues:function(t){var e=[],n={};return t.forEach(function(t){n=null,t.group&&s()(t)?(n=o()(e,function(e){return e.group===t.group}),n?n.ops.push({id:t.id,name:t.name}):(n={group:"",ops:[]},n.group=t.group,n.ops.push({id:t.id,name:t.name}),e.push(n))):e.push(t)}),e},getGroupName:function(t){if(t&&t.group)return t.group;throw"Group name is missing! https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"},getItemValue:function(t){if(s()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.value)return t[this.schema.selectOptions.value];if(void 0!==t.id)return t.id;throw"`id` is not defined. If you want to use another key name, add a `value` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t},getItemName:function(t){if(s()(t)){if(void 0!==this.schema.selectOptions&&void 0!==this.schema.selectOptions.name)return t[this.schema.selectOptions.name];if(void 0!==t.name)return t.name;throw"`name` is not defined. If you want to use another key name, add a `name` property under `selectOptions` in the schema. https://icebob.gitbooks.io/vueformgenerator/content/fields/select.html#select-field-with-object-items"}return t}}}},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?u(t)?i(t[0],t[1]):o(t):s(t)}var o=n(277),i=n(290),a=n(35),u=n(0),s=n(294);t.exports=r},function(t,e,n){function r(t,e,n,a,u){return t===e||(null==t||null==e||!i(t)&&!i(e)?t!==t&&e!==e:o(t,e,n,a,r,u))}var o=n(279),i=n(9);t.exports=r},function(t,e,n){function r(t,e,n,r,c,f){var l=n&u,d=t.length,p=e.length;if(d!=p&&!(l&&p>d))return!1;var h=f.get(t);if(h&&f.get(e))return h==e;var v=-1,m=!0,b=n&s?new o:void 0;for(f.set(t,e),f.set(e,t);++v=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(43),o=n(44);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),s=r(n),c=u.length;return s<0||s>=c?t?"":void 0:(i=u.charCodeAt(s),i<55296||i>56319||s+1===c||(a=u.charCodeAt(s+1))<56320||a>57343?t?u.charAt(s):i:t?u.slice(s,s+2):a-56320+(i-55296<<10)+65536)}}},function(t,e,n){t.exports=!n(16)&&!n(45)(function(){return 7!=Object.defineProperty(n(46)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(21);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){t.exports=n(15)},function(t,e,n){"use strict";var r=n(134),o=n(71),i=n(49),a={};n(15)(a,n(3)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(10),o=n(135),i=n(76),a=n(48)("IE_PROTO"),u=function(){},s=function(){var t,e=n(46)("iframe"),r=i.length;for(e.style.display="none",n(77).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("