text: /*!
   * vuelette v0.1.0 
   * (c) 2019 
   * Released under the undefined License.
   */
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define(["vue"],e):(t=t||self,t.Vuelette=e(t.Vue))}(this,function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function n(t,e,n,r,i,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,i)}function r(t){return function(){var e=this,r=arguments;return new Promise(function(i,o){function a(t){n(c,i,o,a,s,"next",t)}function s(t){n(c,i,o,a,s,"throw",t)}var c=t.apply(e,r);a(void 0)})}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){return c(t)||u(t)||l()}function c(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function u(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function f(t){return h.apply(this,arguments)}function h(){return h=r(v.mark(function t(e){return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,n){setTimeout(function(){t()},e)}));case 1:case"end":return t.stop()}},t)})),h.apply(this,arguments)}function p(t,e,n,r,i,o,a,s,c,u){"boolean"!=typeof a&&(c=s,s=a,a=!1);var l="function"==typeof n?n.options:n;t&&t.render&&(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),r&&(l._scopeId=r);var f;if(o?(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__),e&&e.call(this,c(t)),t&&t._registeredComponents&&t._registeredComponents.add(o)},l._ssrRegister=f):e&&(f=a?function(){e.call(this,u(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),f)if(l.functional){var h=l.render;l.render=function(t,e){return f.call(e),h(t,e)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,f):[f]}return n}function d(t){return function(t,e){return m(t,e)}}function m(t,e){var n=x?e.media||"default":t,r=E[n]||(E[n]={ids:new Set,styles:[]});if(!r.ids.has(t)){r.ids.add(t);var i=e.source;if(e.map&&(i+="\n/*# sourceURL="+e.map.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",e.media&&r.element.setAttribute("media",e.media),_.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(i),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var o=r.ids.size-1,a=document.createTextNode(i),s=r.element.childNodes;s[o]&&r.element.removeChild(s[o]),s.length?r.element.insertBefore(a,s[o]):r.element.appendChild(a)}}}t=t&&t.hasOwnProperty("default")?t.default:t;var y=function(t,e){return e={exports:{}},t(e,e.exports),e.exports}(function(t){var n=function(t){function n(t,e,n,r){var o=e&&e.prototype instanceof i?e:i,a=Object.create(o.prototype),s=new p(r||[]);return a._invoke=u(t,n,s),a}function r(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function o(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){function n(i,o,a,s){var c=r(t[i],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"===e(l)&&g.call(l,"__await")?Promise.resolve(l.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):Promise.resolve(l).then(function(t){u.value=t,a(u)},function(t){return n("throw",t,a,s)})}s(c.arg)}function i(t,e){function r(){return new Promise(function(r,i){n(t,e,r,i)})}return o=o?o.then(r,r):r()}var o;this._invoke=i}function u(t,e,n){var i=E;return function(o,a){if(i===L)throw new Error("Generator is already running");if(i===I){if("throw"===o)throw a;return m()}for(n.method=o,n.arg=a;;){var s=n.delegate;if(s){var c=l(s,n);if(c){if(c===O)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===E)throw i=I,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=L;var u=r(t,e,n);if("normal"===u.type){if(i=n.done?I:k,u.arg===O)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=I,n.method="throw",n.arg=u.arg)}}}function l(t,e){var n=t.iterator[e.method];if(n===y){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=y,l(t,e),"throw"===e.method))return O;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return O}var i=r(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,O;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=y),e.delegate=null,O):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,O)}function f(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function p(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(f,this),this.reset(!0)}function d(t){if(t){var e=t[w];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(g.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=y,e.done=!0,e};return r.next=r}}return{next:m}}function m(){return{value:y,done:!0}}var y,v=Object.prototype,g=v.hasOwnProperty,b="function"==typeof Symbol?Symbol:{},w=b.iterator||"@@iterator",x=b.asyncIterator||"@@asyncIterator",_=b.toStringTag||"@@toStringTag";t.wrap=n;var E="suspendedStart",k="suspendedYield",L="executing",I="completed",O={},S={};S[w]=function(){return this};var T=Object.getPrototypeOf,R=T&&T(T(d([])));R&&R!==v&&g.call(R,w)&&(S=R);var j=a.prototype=i.prototype=Object.create(S);return o.prototype=j.constructor=a,a.constructor=o,a[_]=o.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===o||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,a):(t.__proto__=a,_ in t||(t[_]="GeneratorFunction")),t.prototype=Object.create(j),t},t.awrap=function(t){return{__await:t}},s(c.prototype),c.prototype[x]=function(){return this},t.AsyncIterator=c,t.async=function(e,r,i,o){var a=new c(n(e,r,i,o));return t.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},s(j),j[_]="Generator",j[w]=function(){return this},j.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=d,p.prototype={constructor:p,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=y,this.done=!1,this.delegate=null,this.method="next",this.arg=y,this.tryEntries.forEach(h),!t)for(var e in this)"t"===e.charAt(0)&&g.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=y)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){function e(e,r){return o.type="throw",o.arg=t,n.next=e,r&&(n.method="next",n.arg=y),!!r}if(this.done)throw t;for(var n=this,r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return e("end");if(i.tryLoc<=this.prev){var a=g.call(i,"catchLoc"),s=g.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return e(i.catchLoc,!0);if(this.prev<i.finallyLoc)return e(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return e(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return e(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&g.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,O):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),O},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),h(n),O}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;h(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:d(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=y),O}},t}(t.exports);try{regeneratorRuntime=n}catch(t){Function("r","regeneratorRuntime = r")(n)}}),v=y,g=function(){function t(e,n){i(this,t),this.timer=0,this.fn=e,this.fnOrg=e,this.interval=n}return a(t,[{key:"run",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.fn=this.fnOrg,e||this.fn(),this.timer&&clearInterval(this.timer),this.timer=setInterval(function(){t.fn()},this.interval)}},{key:"stop",value:function(){function t(){return e.apply(this,arguments)}var e=r(v.mark(function t(){var e=this;return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t){e.fn=function(){e.fnOrg(),e.timer&&clearInterval(e.timer),e.timer=0,e.fn=e.fnOrg,t()}}));case 1:case"end":return t.stop()}},t)}));return t}()},{key:"dispose",value:function(){this.timer&&clearInterval(this.timer)}}]),t}(),b=t.extend({props:{value:{type:Boolean,default:!1},target:{type:Number,default:7},fastStop:{type:Boolean,default:!1}},data:function(){return{player:null,toggled:!1,timing:"easeIn"}},computed:{items:function(){var t=this;return[9,8,7,6,5,4,3,2,1,0].map(function(e){return(t.target+e)%10})},gradInterval:function(){return 1e3},linearInterval:function(){return.3*this.gradInterval}},watch:{value:function(){this.value?this.run():this.stop()}},created:function(){this.initPlayer()},mounted:function(){this.value&&this.run()},beforeDestroy:function(){this.disposePlayer()},methods:{initPlayer:function(){var t=this;this.disposePlayer(),this.player=new g(function(){t.step()},this.linearInterval)},disposePlayer:function(){this.player&&this.player.dispose()},run:function(){function t(){return e.apply(this,arguments)}var e=r(v.mark(function t(){return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.player){t.next=2;break}return t.abrupt("return");case 2:return this.timing="easeIn",this.step(),t.next=6,f(this.gradInterval);case 6:if(this.value){t.next=8;break}return t.abrupt("return");case 8:this.timing="linear",this.player.run();case 10:case"end":return t.stop()}},t,this)}));return t}(),step:function(){this.toggled=!this.toggled},stop:function(){function t(){return e.apply(this,arguments)}var e=r(v.mark(function t(){return v.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.player){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.player.stop();case 4:if(!this.fastStop){t.next=6;break}return t.abrupt("return");case 6:return t.next=8,f(this.linearInterval);case 8:this.timing="easeOut",this.step();case 10:case"end":return t.stop()}},t,this)}));return t}()}}),w=p,x="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase()),_=document.head||document.getElementsByTagName("head")[0],E={},k=d;const L=b;var I=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:t.$style.item},[n("transition",{attrs:{"enter-active-class":t.$style[t.timing],"enter-class":t.$style.enter,"leave-active-class":t.$style[t.timing],"leave-to-class":t.$style.leaveTo}},[t.toggled?n("span",{key:"bach",class:t.$style.board},t._l(t.items,function(e,r){return n("span",{key:r,class:t.$style.boardItem},[t._t("default",[t._v(t._s(e))],{item:e})],2)}),0):n("span",{key:"front",class:t.$style.board},t._l(t.items,function(e,r){return n("span",{key:r,class:t.$style.boardItem},[t._t("default",[t._v(t._s(e))],{item:e})],2)}),0)])],1)},O=[];const S=function(t){t&&(t("data-v-708e0bd7_0",{source:".src-components-item-pC-Z{position:relative;min-width:.8em;height:1em;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.src-components-board-3hpx{position:absolute;display:flex;flex-direction:column;justify-content:center;overflow:visible;bottom:0}.src-components-boardItem-3alb{line-height:1em}.src-components-easeIn-1HZh{transition-property:all;transition-duration:1s;transition-timing-function:cubic-bezier(1,0,1,1)}.src-components-easeOut-1kgB{transition-property:all;transition-duration:1s;transition-timing-function:cubic-bezier(0,0,0,1)}.src-components-linear-14H5{transition-property:all;transition-duration:.3s;transition-timing-function:linear}.src-components-enter-rb8N{transform:translateY(-10em)}.src-components-leaveTo-2AAQ{transform:translateY(10em)}",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{item:"src-components-item-pC-Z",board:"src-components-board-3hpx",boardItem:"src-components-boardItem-3alb",easeIn:"src-components-easeIn-1HZh",easeOut:"src-components-easeOut-1kgB",linear:"src-components-linear-14H5",enter:"src-components-enter-rb8N",leaveTo:"src-components-leaveTo-2AAQ"}}))};var T=w({render:I,staticRenderFns:O},S,L,void 0,!1,void 0,k,void 0),R=t.extend({components:{VReel:T},props:{running:{type:Boolean,required:!0},digit:{type:Number,default:4},delay:{type:Number,default:500},value:{type:Number,default:7777},fastStop:{type:Boolean,default:!1}},data:function(){return{reels:s(Array(this.digit)).map(function(){return!1}),resetReels:!1,timestamp:0}},computed:{targets:function(){var t="".concat(Math.floor(this.value)).padStart(this.digit,"0");return Array.from(t).map(function(t){return parseInt(t)})}},watch:{running:function(t){var e=this;t?(this.resetReels=!0,this.$nextTick(function(){e.resetReels=!1,e.gradToggle(t)})):this.gradToggle(t)},digit:function(){this.initReels(this.digit)},value:function(){this.digit<this.targets.length&&this.initReels(this.targets.length)}},mounted:function(){this.running&&this.gradToggle(!0)},methods:{initReels:function(t){var e=this;this.reels=s(Array(t)).map(function(){return e.running})},gradToggle:function(e){var n=this,i=Date.now();this.timestamp=i,this.reels.forEach(function(){var o=r(v.mark(function r(o,a){return v.wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,f(e?n.easeIn(a):n.easeOut(a));case 2:if(i===n.timestamp){r.next=4;break}return r.abrupt("return");case 4:t.set(n.reels,a,e);case 5:case"end":return r.stop()}},r)}));return function(t,e){return o.apply(this,arguments)}}())},easeIn:function(t){return this.delay*t*(1-t/2/(this.digit-1))},easeOut:function(t){return this.delay*(t+1)-this.easeIn(t)}}});const j=R;var $=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{class:t.$style.container},[t.resetReels?t._e():t._l(t.reels,function(e,r){return n("VReel",{key:r,attrs:{value:e,target:t.targets[r],fastStop:t.fastStop},scopedSlots:t._u([{key:"default",fn:function(e){var n=e.item;return[t._t("default",[t._v(t._s(n))],{item:n})]}}],null,!0)})})],2)},N=[];return w({render:$,staticRenderFns:N},function(t){t&&(t("data-v-1f0c6540_0",{source:".src-components-container-3wph{display:inline-flex}",map:void 0,media:void 0}),Object.defineProperty(this,"$style",{value:{container:"src-components-container-3wph"}}))},j,void 0,!1,void 0,k,void 0)});