vue-fake-input
Version:
Custom input for individual characters
2 lines • 34.6 kB
JavaScript
(function(t,n){"object"===typeof exports&&"object"===typeof module?module.exports=n():"function"===typeof define&&define.amd?define([],n):"object"===typeof exports?exports["vue-fake-input"]=n():t["vue-fake-input"]=n()})("undefined"!==typeof self?self:this,function(){return function(t){var n={};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}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(n){return t[n]}.bind(null,o));return 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,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s="fb15")}({"0029":function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"0185":function(t,n,e){var r=e("e5fa");t.exports=function(t){return Object(r(t))}},"02f4":function(t,n,e){var r=e("4588"),o=e("be13");t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},"0390":function(t,n,e){"use strict";var r=e("02f4")(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},"0a91":function(t,n,e){e("b42c"),e("93c4"),t.exports=e("b77f")},"0bfb":function(t,n,e){"use strict";var r=e("cb7c");t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},"0d58":function(t,n,e){var r=e("ce10"),o=e("e11e");t.exports=Object.keys||function(t){return r(t,o)}},"0f89":function(t,n,e){var r=e("6f8a");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},"103a":function(t,n,e){var r=e("da3c").document;t.exports=r&&r.documentElement},"11e9":function(t,n,e){var r=e("52a7"),o=e("4630"),i=e("6821"),u=e("6a99"),c=e("69a8"),a=e("c69a"),f=Object.getOwnPropertyDescriptor;n.f=e("9e1e")?f:function(t,n){if(t=i(t),n=u(n,!0),a)try{return f(t,n)}catch(e){}if(c(t,n))return o(!r.f.call(t,n),t[n])}},"12fd":function(t,n,e){var r=e("6f8a"),o=e("da3c").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},1495:function(t,n,e){var r=e("86cc"),o=e("cb7c"),i=e("0d58");t.exports=e("9e1e")?Object.defineProperties:function(t,n){o(t);var e,u=i(n),c=u.length,a=0;while(c>a)r.f(t,e=u[a++],n[e]);return t}},1938:function(t,n,e){var r=e("d13f");r(r.S,"Array",{isArray:e("b5aa")})},"1b55":function(t,n,e){var r=e("7772")("wks"),o=e("7b00"),i=e("da3c").Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},"1b8f":function(t,n,e){var r=e("a812"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},"214f":function(t,n,e){"use strict";e("b0c5");var r=e("2aba"),o=e("32e9"),i=e("79e5"),u=e("be13"),c=e("2b4c"),a=e("520a"),f=c("species"),s=!i(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var p=c(t),d=!i(function(){var n={};return n[p]=function(){return 7},7!=""[t](n)}),v=d?!i(function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[f]=function(){return e}),e[p](""),!n}):void 0;if(!d||!v||"replace"===t&&!s||"split"===t&&!l){var h=/./[p],b=e(u,p,""[t],function(t,n,e,r,o){return n.exec===a?d&&!o?{done:!0,value:h.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}}),y=b[0],g=b[1];r(String.prototype,t,y),o(RegExp.prototype,p,2==n?function(t,n){return g.call(t,this,n)}:function(t){return g.call(t,this)})}}},"230e":function(t,n,e){var r=e("d3f4"),o=e("7726").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},2312:function(t,n,e){t.exports=e("8ce0")},2350:function(t,n){function e(t,n){var e=t[1]||"",o=t[3];if(!o)return e;if(n&&"function"===typeof btoa){var i=r(o),u=o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"});return[e].concat(u).concat([i]).join("\n")}return[e].join("\n")}function r(t){var n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),e="sourceMappingURL=data:application/json;charset=utf-8;base64,"+n;return"/*# "+e+" */"}t.exports=function(t){var n=[];return n.toString=function(){return this.map(function(n){var r=e(n,t);return n[2]?"@media "+n[2]+"{"+r+"}":r}).join("")},n.i=function(t,e){"string"===typeof t&&(t=[[null,t,""]]);for(var r={},o=0;o<this.length;o++){var i=this[o][0];"number"===typeof i&&(r[i]=!0)}for(o=0;o<t.length;o++){var u=t[o];"number"===typeof u[0]&&r[u[0]]||(e&&!u[2]?u[2]=e:e&&(u[2]="("+u[2]+") and ("+e+")"),n.push(u))}},n}},"23c6":function(t,n,e){var r=e("2d95"),o=e("2b4c")("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},2418:function(t,n,e){var r=e("6a9b"),o=e("a5ab"),i=e("1b8f");t.exports=function(t){return function(n,e,u){var c,a=r(n),f=o(a.length),s=i(u,f);if(t&&e!=e){while(f>s)if(c=a[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}}},"245b":function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},2695:function(t,n,e){var r=e("43c8"),o=e("6a9b"),i=e("2418")(!1),u=e("5d8f")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,f=[];for(e in c)e!=u&&r(c,e)&&f.push(e);while(n.length>a)r(c,e=n[a++])&&(~i(f,e)||f.push(e));return f}},"28a5":function(t,n,e){"use strict";var r=e("aae3"),o=e("cb7c"),i=e("ebd6"),u=e("0390"),c=e("9def"),a=e("5f1b"),f=e("520a"),s=e("79e5"),l=Math.min,p=[].push,d="split",v="length",h="lastIndex",b=4294967295,y=!s(function(){RegExp(b,"y")});e("214f")("split",2,function(t,n,e,s){var g;return g="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[v]||2!="ab"[d](/(?:ab)*/)[v]||4!="."[d](/(.?)(.?)/)[v]||"."[d](/()()/)[v]>1||""[d](/.?/)[v]?function(t,n){var o=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(o,t,n);var i,u,c,a=[],s=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===n?b:n>>>0,y=new RegExp(t.source,s+"g");while(i=f.call(y,o)){if(u=y[h],u>l&&(a.push(o.slice(l,i.index)),i[v]>1&&i.index<o[v]&&p.apply(a,i.slice(1)),c=i[0][v],l=u,a[v]>=d))break;y[h]===i.index&&y[h]++}return l===o[v]?!c&&y.test("")||a.push(""):a.push(o.slice(l)),a[v]>d?a.slice(0,d):a}:"0"[d](void 0,0)[v]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var o=t(this),i=void 0==e?void 0:e[n];return void 0!==i?i.call(e,o,r):g.call(String(o),e,r)},function(t,n){var r=s(g,t,this,n,g!==e);if(r.done)return r.value;var f=o(t),p=String(this),d=i(f,RegExp),v=f.unicode,h=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(y?"y":"g"),x=new d(y?f:"^(?:"+f.source+")",h),m=void 0===n?b:n>>>0;if(0===m)return[];if(0===p.length)return null===a(x,p)?[p]:[];var S=0,w=0,_=[];while(w<p.length){x.lastIndex=y?w:0;var O,E=a(x,y?p:p.slice(w));if(null===E||(O=l(c(x.lastIndex+(y?0:w)),p.length))===S)w=u(p,w,v);else{if(_.push(p.slice(S,w)),_.length===m)return _;for(var j=1;j<=E.length-1;j++)if(_.push(E[j]),_.length===m)return _;w=S=O}}return _.push(p.slice(S)),_}]})},"2a4e":function(t,n,e){var r=e("a812"),o=e("e5fa");t.exports=function(t){return function(n,e){var i,u,c=String(o(n)),a=r(e),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a),i<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536)}}},"2aba":function(t,n,e){var r=e("7726"),o=e("32e9"),i=e("69a8"),u=e("ca5a")("src"),c=e("fa5b"),a="toString",f=(""+c).split(a);e("8378").inspectSource=function(t){return c.call(t)},(t.exports=function(t,n,e,c){var a="function"==typeof e;a&&(i(e,"name")||o(e,"name",n)),t[n]!==e&&(a&&(i(e,u)||o(e,u,t[n]?""+t[n]:f.join(String(n)))),t===r?t[n]=e:c?t[n]?t[n]=e:o(t,n,e):(delete t[n],o(t,n,e)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||c.call(this)})},"2aeb":function(t,n,e){var r=e("cb7c"),o=e("1495"),i=e("e11e"),u=e("613b")("IE_PROTO"),c=function(){},a="prototype",f=function(){var t,n=e("230e")("iframe"),r=i.length,o="<",u=">";n.style.display="none",e("fab2").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),f=t.F;while(r--)delete f[a][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[a]=r(t),e=new c,c[a]=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},"2b4c":function(t,n,e){var r=e("5537")("wks"),o=e("ca5a"),i=e("7726").Symbol,u="function"==typeof i,c=t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))};c.store=r},"2d00":function(t,n){t.exports=!1},"2d95":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"2ea1":function(t,n,e){var r=e("6f8a");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"32e9":function(t,n,e){var r=e("86cc"),o=e("4630");t.exports=e("9e1e")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},"3adc":function(t,n,e){var r=e("0f89"),o=e("a47f"),i=e("2ea1"),u=Object.defineProperty;n.f=e("7d95")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"3b34":function(t,n,e){n=t.exports=e("2350")(!1),n.push([t.i,".fk-input-container[data-v-22f539f4]{display:inline-block}.fk-input-container input[data-v-22f539f4]{border:none;margin-left:10px;text-align:center}.fk-input-container input[data-v-22f539f4]:first-child{margin-left:0}.fk-input-container input[data-v-22f539f4]:focus{outline:none}",""])},"43c8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},4588:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},4630:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},"476d":function(t,n,e){var r=e("3b34");"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=e("499e").default;o("b4f9884a",r,!0,{sourceMap:!1,shadowMode:!1})},"499e":function(t,n,e){"use strict";function r(t,n){for(var e=[],r={},o=0;o<n.length;o++){var i=n[o],u=i[0],c=i[1],a=i[2],f=i[3],s={id:t+":"+o,css:c,media:a,sourceMap:f};r[u]?r[u].parts.push(s):e.push(r[u]={id:u,parts:[s]})}return e}e.r(n),e.d(n,"default",function(){return v});var o="undefined"!==typeof document;if("undefined"!==typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},u=o&&(document.head||document.getElementsByTagName("head")[0]),c=null,a=0,f=!1,s=function(){},l=null,p="data-vue-ssr-id",d="undefined"!==typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function v(t,n,e,o){f=e,l=o||{};var u=r(t,n);return h(u),function(n){for(var e=[],o=0;o<u.length;o++){var c=u[o],a=i[c.id];a.refs--,e.push(a)}n?(u=r(t,n),h(u)):u=[];for(o=0;o<e.length;o++){a=e[o];if(0===a.refs){for(var f=0;f<a.parts.length;f++)a.parts[f]();delete i[a.id]}}}}function h(t){for(var n=0;n<t.length;n++){var e=t[n],r=i[e.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](e.parts[o]);for(;o<e.parts.length;o++)r.parts.push(y(e.parts[o]));r.parts.length>e.parts.length&&(r.parts.length=e.parts.length)}else{var u=[];for(o=0;o<e.parts.length;o++)u.push(y(e.parts[o]));i[e.id]={id:e.id,refs:1,parts:u}}}}function b(){var t=document.createElement("style");return t.type="text/css",u.appendChild(t),t}function y(t){var n,e,r=document.querySelector("style["+p+'~="'+t.id+'"]');if(r){if(f)return s;r.parentNode.removeChild(r)}if(d){var o=a++;r=c||(c=b()),n=x.bind(null,r,o,!1),e=x.bind(null,r,o,!0)}else r=b(),n=m.bind(null,r),e=function(){r.parentNode.removeChild(r)};return n(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;n(t=r)}else e()}}var g=function(){var t=[];return function(n,e){return t[n]=e,t.filter(Boolean).join("\n")}}();function x(t,n,e,r){var o=e?"":r.css;if(t.styleSheet)t.styleSheet.cssText=g(n,o);else{var i=document.createTextNode(o),u=t.childNodes;u[n]&&t.removeChild(u[n]),u.length?t.insertBefore(i,u[n]):t.appendChild(i)}}function m(t,n){var e=n.css,r=n.media,o=n.sourceMap;if(r&&t.setAttribute("media",r),l.ssrId&&t.setAttribute(p,n.id),o&&(e+="\n/*# sourceURL="+o.sources[0]+" */",e+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=e;else{while(t.firstChild)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},"520a":function(t,n,e){"use strict";var r=e("0bfb"),o=RegExp.prototype.exec,i=String.prototype.replace,u=o,c="lastIndex",a=function(){var t=/a/,n=/b*/g;return o.call(t,"a"),o.call(n,"a"),0!==t[c]||0!==n[c]}(),f=void 0!==/()??/.exec("")[1],s=a||f;s&&(u=function(t){var n,e,u,s,l=this;return f&&(e=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),a&&(n=l[c]),u=o.call(l,t),a&&u&&(l[c]=l.global?u.index+u[0].length:n),f&&u&&u.length>1&&i.call(u[0],e,function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(u[s]=void 0)}),u}),t.exports=u},"52a7":function(t,n){n.f={}.propertyIsEnumerable},5537:function(t,n,e){var r=e("8378"),o=e("7726"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("2d00")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"5ca1":function(t,n,e){var r=e("7726"),o=e("8378"),i=e("32e9"),u=e("2aba"),c=e("9b43"),a="prototype",f=function(t,n,e){var s,l,p,d,v=t&f.F,h=t&f.G,b=t&f.S,y=t&f.P,g=t&f.B,x=h?r:b?r[n]||(r[n]={}):(r[n]||{})[a],m=h?o:o[n]||(o[n]={}),S=m[a]||(m[a]={});for(s in h&&(e=n),e)l=!v&&x&&void 0!==x[s],p=(l?x:e)[s],d=g&&l?c(p,r):y&&"function"==typeof p?c(Function.call,p):p,x&&u(x,s,p,t&f.U),m[s]!=p&&i(m,s,d),y&&S[s]!=p&&(S[s]=p)};r.core=o,f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},"5ce7":function(t,n,e){"use strict";var r=e("7108"),o=e("f845"),i=e("c0d8"),u={};e("8ce0")(u,e("1b55")("iterator"),function(){return this}),t.exports=function(t,n,e){t.prototype=r(u,{next:o(1,e)}),i(t,n+" Iterator")}},"5d73":function(t,n,e){t.exports=e("0a91")},"5d8f":function(t,n,e){var r=e("7772")("keys"),o=e("7b00");t.exports=function(t){return r[t]||(r[t]=o(t))}},"5dbc":function(t,n,e){var r=e("d3f4"),o=e("8b97").set;t.exports=function(t,n,e){var i,u=n.constructor;return u!==e&&"function"==typeof u&&(i=u.prototype)!==e.prototype&&r(i)&&o&&o(t,i),t}},"5f1b":function(t,n,e){"use strict";var r=e("23c6"),o=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"===typeof e){var i=e.call(t,n);if("object"!==typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(t,n)}},"613b":function(t,n,e){var r=e("5537")("keys"),o=e("ca5a");t.exports=function(t){return r[t]||(r[t]=o(t))}},"626a":function(t,n,e){var r=e("2d95");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},6821:function(t,n,e){var r=e("626a"),o=e("be13");t.exports=function(t){return r(o(t))}},"69a8":function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},"6a99":function(t,n,e){var r=e("d3f4");t.exports=function(t,n){if(!r(t))return t;var e,o;if(n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;if("function"==typeof(e=t.valueOf)&&!r(o=e.call(t)))return o;if(!n&&"function"==typeof(e=t.toString)&&!r(o=e.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},"6a9b":function(t,n,e){var r=e("8bab"),o=e("e5fa");t.exports=function(t){return r(o(t))}},"6e1f":function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},"6f8a":function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},7108:function(t,n,e){var r=e("0f89"),o=e("f568"),i=e("0029"),u=e("5d8f")("IE_PROTO"),c=function(){},a="prototype",f=function(){var t,n=e("12fd")("iframe"),r=i.length,o="<",u=">";n.style.display="none",e("103a").appendChild(n),n.src="javascript:",t=n.contentWindow.document,t.open(),t.write(o+"script"+u+"document.F=Object"+o+"/script"+u),t.close(),f=t.F;while(r--)delete f[a][i[r]];return f()};t.exports=Object.create||function(t,n){var e;return null!==t?(c[a]=r(t),e=new c,c[a]=null,e[u]=t):e=f(),void 0===n?e:o(e,n)}},7633:function(t,n,e){var r=e("2695"),o=e("0029");t.exports=Object.keys||function(t){return r(t,o)}},7726:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},7772:function(t,n,e){var r=e("a7d3"),o=e("da3c"),i="__core-js_shared__",u=o[i]||(o[i]={});(t.exports=function(t,n){return u[t]||(u[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e("b457")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},"77f1":function(t,n,e){var r=e("4588"),o=Math.max,i=Math.min;t.exports=function(t,n){return t=r(t),t<0?o(t+n,0):i(t,n)}},"79e5":function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},"7b00":function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},"7d8a":function(t,n,e){var r=e("6e1f"),o=e("1b55")("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,n){try{return t[n]}catch(e){}};t.exports=function(t){var n,e,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=u(n=Object(t),o))?e:i?r(n):"Object"==(c=r(n))&&"function"==typeof n.callee?"Arguments":c}},"7d95":function(t,n,e){t.exports=!e("d782")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"7f7f":function(t,n,e){var r=e("86cc").f,o=Function.prototype,i=/^\s*function ([^ (]*)/,u="name";u in o||e("9e1e")&&r(o,u,{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(t){return""}}})},8378:function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},"86cc":function(t,n,e){var r=e("cb7c"),o=e("c69a"),i=e("6a99"),u=Object.defineProperty;n.f=e("9e1e")?Object.defineProperty:function(t,n,e){if(r(t),n=i(n,!0),r(e),o)try{return u(t,n,e)}catch(c){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},"8b97":function(t,n,e){var r=e("d3f4"),o=e("cb7c"),i=function(t,n){if(o(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{r=e("9b43")(Function.call,e("11e9").f(Object.prototype,"__proto__").set,2),r(t,[]),n=!(t instanceof Array)}catch(o){n=!0}return function(t,e){return i(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:i}},"8bab":function(t,n,e){var r=e("6e1f");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},"8ce0":function(t,n,e){var r=e("3adc"),o=e("f845");t.exports=e("7d95")?function(t,n,e){return r.f(t,n,o(1,e))}:function(t,n,e){return t[n]=e,t}},9093:function(t,n,e){var r=e("ce10"),o=e("e11e").concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},"93c4":function(t,n,e){"use strict";var r=e("2a4e")(!0);e("e4a9")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,n=this._t,e=this._i;return e>=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})})},"9b43":function(t,n,e){var r=e("d8e8");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},"9def":function(t,n,e){var r=e("4588"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},"9e1e":function(t,n,e){t.exports=!e("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},a47f:function(t,n,e){t.exports=!e("7d95")&&!e("d782")(function(){return 7!=Object.defineProperty(e("12fd")("div"),"a",{get:function(){return 7}}).a})},a5ab:function(t,n,e){var r=e("a812"),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},a745:function(t,n,e){t.exports=e("d604")},a7d3:function(t,n){var e=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=e)},a812:function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:e)(t)}},aa77:function(t,n,e){var r=e("5ca1"),o=e("be13"),i=e("79e5"),u=e("fdef"),c="["+u+"]",a="
",f=RegExp("^"+c+c+"*"),s=RegExp(c+c+"*$"),l=function(t,n,e){var o={},c=i(function(){return!!u[t]()||a[t]()!=a}),f=o[t]=c?n(p):u[t];e&&(o[e]=f),r(r.P+r.F*c,"String",o)},p=l.trim=function(t,n){return t=String(o(t)),1&n&&(t=t.replace(f,"")),2&n&&(t=t.replace(s,"")),t};t.exports=l},aae3:function(t,n,e){var r=e("d3f4"),o=e("2d95"),i=e("2b4c")("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[i])?!!n:"RegExp"==o(t))}},b0c5:function(t,n,e){"use strict";var r=e("520a");e("5ca1")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},b22a:function(t,n){t.exports={}},b3e7:function(t,n){t.exports=function(){}},b42c:function(t,n,e){e("fa54");for(var r=e("da3c"),o=e("8ce0"),i=e("b22a"),u=e("1b55")("toStringTag"),c="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(","),a=0;a<c.length;a++){var f=c[a],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},b457:function(t,n){t.exports=!0},b5aa:function(t,n,e){var r=e("6e1f");t.exports=Array.isArray||function(t){return"Array"==r(t)}},b77f:function(t,n,e){var r=e("0f89"),o=e("f159");t.exports=e("a7d3").getIterator=function(t){var n=o(t);if("function"!=typeof n)throw TypeError(t+" is not iterable!");return r(n.call(t))}},bc25:function(t,n,e){var r=e("f2fe");t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,o){return t.call(n,e,r,o)}}return function(){return t.apply(n,arguments)}}},be13:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},c0d8:function(t,n,e){var r=e("3adc").f,o=e("43c8"),i=e("1b55")("toStringTag");t.exports=function(t,n,e){t&&!o(t=e?t:t.prototype,i)&&r(t,i,{configurable:!0,value:n})}},c366:function(t,n,e){var r=e("6821"),o=e("9def"),i=e("77f1");t.exports=function(t){return function(n,e,u){var c,a=r(n),f=o(a.length),s=i(u,f);if(t&&e!=e){while(f>s)if(c=a[s++],c!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===e)return t||s||0;return!t&&-1}}},c5a7:function(t,n,e){"use strict";var r=e("476d"),o=e.n(r);o.a},c5f6:function(t,n,e){"use strict";var r=e("7726"),o=e("69a8"),i=e("2d95"),u=e("5dbc"),c=e("6a99"),a=e("79e5"),f=e("9093").f,s=e("11e9").f,l=e("86cc").f,p=e("aa77").trim,d="Number",v=r[d],h=v,b=v.prototype,y=i(e("2aeb")(b))==d,g="trim"in String.prototype,x=function(t){var n=c(t,!1);if("string"==typeof n&&n.length>2){n=g?n.trim():p(n,3);var e,r,o,i=n.charCodeAt(0);if(43===i||45===i){if(e=n.charCodeAt(2),88===e||120===e)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+n}for(var u,a=n.slice(2),f=0,s=a.length;f<s;f++)if(u=a.charCodeAt(f),u<48||u>o)return NaN;return parseInt(a,r)}}return+n};if(!v(" 0o1")||!v("0b1")||v("+0x1")){v=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof v&&(y?a(function(){b.valueOf.call(e)}):i(e)!=d)?u(new h(x(n)),e,v):x(n)};for(var m,S=e("9e1e")?f(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)o(h,m=S[w])&&!o(v,m)&&l(v,m,s(h,m));v.prototype=b,b.constructor=v,e("2aba")(r,d,v)}},c69a:function(t,n,e){t.exports=!e("9e1e")&&!e("79e5")(function(){return 7!=Object.defineProperty(e("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},cb7c:function(t,n,e){var r=e("d3f4");t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},ce10:function(t,n,e){var r=e("69a8"),o=e("6821"),i=e("c366")(!1),u=e("613b")("IE_PROTO");t.exports=function(t,n){var e,c=o(t),a=0,f=[];for(e in c)e!=u&&r(c,e)&&f.push(e);while(n.length>a)r(c,e=n[a++])&&(~i(f,e)||f.push(e));return f}},d13f:function(t,n,e){var r=e("da3c"),o=e("a7d3"),i=e("bc25"),u=e("8ce0"),c=e("43c8"),a="prototype",f=function(t,n,e){var s,l,p,d=t&f.F,v=t&f.G,h=t&f.S,b=t&f.P,y=t&f.B,g=t&f.W,x=v?o:o[n]||(o[n]={}),m=x[a],S=v?r:h?r[n]:(r[n]||{})[a];for(s in v&&(e=n),e)l=!d&&S&&void 0!==S[s],l&&c(x,s)||(p=l?S[s]:e[s],x[s]=v&&"function"!=typeof S[s]?e[s]:y&&l?i(p,r):g&&S[s]==p?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n[a]=t[a],n}(p):b&&"function"==typeof p?i(Function.call,p):p,b&&((x.virtual||(x.virtual={}))[s]=p,t&f.R&&m&&!m[s]&&u(m,s,p)))};f.F=1,f.G=2,f.S=4,f.P=8,f.B=16,f.W=32,f.U=64,f.R=128,t.exports=f},d3f4:function(t,n){t.exports=function(t){return"object"===typeof t?null!==t:"function"===typeof t}},d604:function(t,n,e){e("1938"),t.exports=e("a7d3").Array.isArray},d782:function(t,n){t.exports=function(t){try{return!!t()}catch(n){return!0}}},d8e8:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},da3c:function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},e11e:function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e4a9:function(t,n,e){"use strict";var r=e("b457"),o=e("d13f"),i=e("2312"),u=e("8ce0"),c=e("b22a"),a=e("5ce7"),f=e("c0d8"),s=e("ff0c"),l=e("1b55")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",v="keys",h="values",b=function(){return this};t.exports=function(t,n,e,y,g,x,m){a(e,n,y);var S,w,_,O=function(t){if(!p&&t in T)return T[t];switch(t){case v:return function(){return new e(this,t)};case h:return function(){return new e(this,t)}}return function(){return new e(this,t)}},E=n+" Iterator",j=g==h,I=!1,T=t.prototype,k=T[l]||T[d]||g&&T[g],C=k||O(g),P=g?j?O("entries"):C:void 0,M="Array"==n&&T.entries||k;if(M&&(_=s(M.call(new t)),_!==Object.prototype&&_.next&&(f(_,E,!0),r||"function"==typeof _[l]||u(_,l,b))),j&&k&&k.name!==h&&(I=!0,C=function(){return k.call(this)}),r&&!m||!p&&!I&&T[l]||u(T,l,C),c[n]=C,c[E]=b,g)if(S={values:j?C:O(h),keys:x?C:O(v),entries:P},m)for(w in S)w in T||i(T,w,S[w]);else o(o.P+o.F*(p||I),n,S);return S}},e5fa:function(t,n){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},ebd6:function(t,n,e){var r=e("cb7c"),o=e("d8e8"),i=e("2b4c")("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||void 0==(e=r(u)[i])?n:o(e)}},f159:function(t,n,e){var r=e("7d8a"),o=e("1b55")("iterator"),i=e("b22a");t.exports=e("a7d3").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},f2fe:function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},f568:function(t,n,e){var r=e("3adc"),o=e("0f89"),i=e("7633");t.exports=e("7d95")?Object.defineProperties:function(t,n){o(t);var e,u=i(n),c=u.length,a=0;while(c>a)r.f(t,e=u[a++],n[e]);return t}},f6fd:function(t,n){(function(t){var n="currentScript",e=t.getElementsByTagName("script");n in t||Object.defineProperty(t,n,{get:function(){try{throw new Error}catch(r){var t,n=(/.*at [^\(]*\((.*):.+:.+\)$/gi.exec(r.stack)||[!1])[1];for(t in e)if(e[t].src==n||"interactive"==e[t].readyState)return e[t];return null}}})})(document)},f845:function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},fa54:function(t,n,e){"use strict";var r=e("b3e7"),o=e("245b"),i=e("b22a"),u=e("6a9b");t.exports=e("e4a9")(Array,"Array",function(t,n){this._t=u(t),this._i=0,this._k=n},function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,o(1)):o(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},fa5b:function(t,n,e){t.exports=e("5537")("native-function-to-string",Function.toString)},fab2:function(t,n,e){var r=e("7726").document;t.exports=r&&r.documentElement},fb15:function(t,n,e){"use strict";var r;(e.r(n),"undefined"!==typeof window)&&(e("f6fd"),(r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^\/]+\.js(\?.*)?$/))&&(e.p=r[1]));e("7f7f");var o=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"fk-input-container"},t._l(t.length,function(n,r){return e("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValues[r],expression:"inputValues[index]"}],key:r,ref:t.generateInputId(r),refInFor:!0,style:{fontSize:t.fkFontSize,borderBottom:t.fkInputColor(r),color:t.fontColor,width:t.fkWidth},attrs:{id:t.generateInputId(r),type:"text",maxlength:"1",contenteditable:"true"},domProps:{value:t.inputValues[r]},on:{keyup:function(n){return t.handleInputFocus(r)},paste:function(n){return n.preventDefault(),t.handlePastedValues(n)},input:[function(n){n.target.composing||t.$set(t.inputValues,r,n.target.value)},function(n){return t.returnFullString()}]}})}),0)},i=[],u=(e("28a5"),e("a745")),c=e.n(u);function a(t){if(c()(t))return t}var f=e("5d73"),s=e.n(f);function l(t,n){var e=[],r=!0,o=!1,i=void 0;try{for(var u,c=s()(t);!(r=(u=c.next()).done);r=!0)if(e.push(u.value),n&&e.length===n)break}catch(a){o=!0,i=a}finally{try{r||null==c["return"]||c["return"]()}finally{if(o)throw i}}return e}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function d(t,n){return a(t)||l(t,n)||p()}e("c5f6");var v={name:"vue-fake-input",props:{length:{type:Number,required:!0},fontSize:{type:Number,default:22,required:!1},inputColor:{type:String,default:"#42b983",required:!1},fontColor:{type:String,default:"#444444",required:!1},allowPaste:{type:Boolean,default:!0,required:!1}},data:function(){return{inputValues:[]}},computed:{fkFontSize:function(){return"".concat(this.fontSize,"px")},fkWidth:function(){var t=this.fontSize+8;return"".concat(t,"px")}},methods:{generateInputId:function(t){return"fk_".concat(t+1)},fkInputColor:function(t){var n=this.inputValues[t]?this.inputColor:"#eeeeee";return"3px solid ".concat(n)},handleInputFocus:function(t){if(this.inputValues[t]&&""!==this.inputValues[t]&&t<this.length-1){var n=d(this.$refs["fk_".concat(t+2)],1),e=n[0];e.focus()}else if(t>0&&(!this.inputValues[t]||""===this.inputValues[t])){var r=d(this.$refs["fk_".concat(t)],1),o=r[0];o.focus()}},handlePastedValues:function(t){if(this.allowPaste){for(var n=t.clipboardData.getData("text/plain"),e=n.split(""),r=this,o=0;o<this.length;o++)r.updateInputValue(o,e[o]);var i=d(this.$refs["fk_".concat(this.length)],1),u=i[0];u.focus()}},updateInputValue:function(t,n){this.$set(this.inputValues,t,n)},returnFullString:function(){this.$emit("input",this.inputValues.join(""))}}},h=v;e("c5a7");function b(t,n,e,r,o,i,u,c){var a,f="function"===typeof t?t.options:t;if(n&&(f.render=n,f.staticRenderFns=e,f._compiled=!0),r&&(f.functional=!0),i&&(f._scopeId="data-v-"+i),u?(a=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(u)},f._ssrRegister=a):o&&(a=c?function(){o.call(this,this.$root.$options.shadowRoot)}:o),a)if(f.functional){f._injectStyles=a;var s=f.render;f.render=function(t,n){return a.call(n),s(t,n)}}else{var l=f.beforeCreate;f.beforeCreate=l?[].concat(l,a):[a]}return{exports:t,options:f}}var y=b(h,o,i,!1,null,"22f539f4",null),g=y.exports,x=function(t){return t.component(g.name,g)};"undefined"!==typeof window&&window.Vue&&(window.VueFakeInput=g,window.Vue.use(g)),g.install=x;var m=g;e.d(n,"VueFakeInput",function(){return g});n["default"]=m},fdef:function(t,n){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},ff0c:function(t,n,e){var r=e("43c8"),o=e("0185"),i=e("5d8f")("IE_PROTO"),u=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?u:null}}})});
//# sourceMappingURL=vue-fake-input.umd.min.js.map