vue-clock-lonlyape
Version:
a clock component for vue
1 lines • 29.9 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("vue-clock",[],e):"object"==typeof exports?exports["vue-clock"]=e():t["vue-clock"]=e()}("undefined"!=typeof self?self:this,function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=39)}([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={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){var n=t.exports={version:"2.6.1"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(4),i=n(12);t.exports=n(5)?function(t,e,n){return r.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(11),i=n(30),o=n(19),s=Object.defineProperty;e.f=n(5)?Object.defineProperty:function(t,e,n){if(r(t),e=o(e,!0),r(n),i)try{return s(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){t.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(35),i=n(17);t.exports=function(t){return r(i(t))}},function(t,e,n){var r=n(22)("wks"),i=n(14),o=n(0).Symbol,s="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=s&&o[t]||(s?o:i)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=!0},function(t,e,n){var r=n(8);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},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(34),i=n(23);t.exports=Object.keys||function(t){return r(t,i)}},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){e.f={}.propertyIsEnumerable},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){var r=n(0),i=n(2),o=n(53),s=n(3),a=n(1),u=function(t,e,n){var c,f,l,h=t&u.F,d=t&u.G,p=t&u.S,v=t&u.P,y=t&u.B,m=t&u.W,g=d?i:i[e]||(i[e]={}),b=g.prototype,w=d?r:p?r[e]:(r[e]||{}).prototype;for(c in d&&(n=e),n)(f=!h&&w&&void 0!==w[c])&&a(g,c)||(l=f?w[c]:n[c],g[c]=d&&"function"!=typeof w[c]?n[c]:y&&f?o(l,r):m&&w[c]==l?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.prototype=t.prototype,e}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((g.virtual||(g.virtual={}))[c]=l,t&u.R&&b&&!b[c]&&s(b,c,l)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var r=n(8);t.exports=function(t,e){if(!r(t))return t;var n,i;if(e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;if("function"==typeof(n=t.valueOf)&&!r(i=n.call(t)))return i;if(!e&&"function"==typeof(n=t.toString)&&!r(i=n.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var r=n(22)("keys"),i=n(14);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,e,n){var r=n(2),i=n(0),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:r.version,mode:n(10)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(4).f,i=n(1),o=n(7)("toStringTag");t.exports=function(t,e,n){t&&!i(t=n?t:t.prototype,o)&&r(t,o,{configurable:!0,value:e})}},function(t,e,n){e.f=n(7)},function(t,e,n){var r=n(0),i=n(2),o=n(10),s=n(25),a=n(4).f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){"use strict";var r=n(48),i=n.n(r),o=n(77),s=n.n(o),a=n(79),u=n.n(a);e.a={name:"vueClock",data:function(){return{clockBoxStyle:{},canvas:{},context:{},timeAngle:{},timeInterval:{},transitionOption:{},defOption:{time:{isStatic:!1,timestamp:0},border:{type:"circle",width:300,height:300,lineWidth:2,color:"#bbb"},background:{color:"",image:""},dial:{isDial:!0,distance:0,maxLength:8,minLength:5,maxWidth:3,minWidth:2,color:"#888"},number:{isNumber:!0,type:"arabic",color:"#777",fontSize:"19px",fontWeight:"normal",fontFamily:"微软雅黑",radius:125},needle:{second:{length:100,color:"#aaa",lineWidth:3,longOut:5},minute:{length:110,color:"#999",lineWidth:4,longOut:5},hour:{length:70,color:"#888",lineWidth:4,longOut:5}}}}},props:{width:{default:""},height:{default:""},adaptive:{type:Boolean,default:!0},timezone:{default:""},time:{type:Object},border:{type:Object},background:{type:Object},dial:{type:Object},number:{type:Object},needle:{type:Object,default:function(){return{second:{},minute:{},hour:{}}}}},computed:{drawOption:function(){return{time:u()({},this.defOption.time,this.time),border:u()({},this.defOption.border,this.border),background:u()({},this.defOption.background,this.background),dial:u()({},this.defOption.dial,this.dial),number:u()({},this.defOption.number,this.number),needle:{second:u()({},this.defOption.needle.second,this.needle.second),minute:u()({},this.defOption.needle.minute,this.needle.minute),hour:u()({},this.defOption.needle.hour,this.needle.hour)}}}},watch:{drawOption:{handler:function(t){t.time.isStatic&&clearInterval(this.timeInterval),this.draw()},deep:!0},timeAngle:function(){this.draw()}},created:function(){var t=this;this.$nextTick(function(){t.canvas=t.$el.querySelector("canvas"),t.context=t.canvas.getContext("2d"),t.setClockBoxStyle(),t.newData(),t.drawOption.time.isStatic||(t.timeInterval=setInterval(t.newData,1e3)),t.draw(),setTimeout(t.drawAsResize,100)})},methods:{drawAsResize:function(){var t=this,e=JSON.parse(s()(this.drawOption)),n=e.border.width;new ResizeObserver(function(r){r.forEach(function(r){var i=r.contentRect,o=t.drawOption;t.setNumberValue(o,e,i.width-6,n),t.setClockBoxStyle(),t.draw()})}).observe(this.$el)},setNumberValue:function(t,e,n,r){var o=this;if(this.adaptive){var s=function(s){var a=t[s],u=e[s],c=n/r<1?n/r:1;"number"==typeof a?t[s]=u*c:"object"==(void 0===a?"undefined":i()(a))?o.setNumberValue(a,u,n,r):"fontSize"==s&&(t[s]=u.replace(/^\d*/,function(t){return t*c}))};for(var a in t)s(a)}},draw:function(){this.clear(),this.setNumberValue(this.drawOption,this.drawOption,this.canvas.width-6,this.drawOption.border.width),this.drawBackground(),this.drawBorder(),this.drawDial(),this.drawNumber(),this.drawNeedle()},clear:function(){this.context.clearRect(0,0,this.canvas.width,this.canvas.width)},setClockBoxStyle:function(){var t={};""===this.width||/%$/.test(this.width)?t.width=this.width:t.width=Number(this.width)+"px",""===this.height&&(""===this.width||/%$/.test(this.width)?(t.height=this.$el.clientWidth+"px",this.clockBoxStyle=t):t.height=this.width),this.canvas.width=this.$el.clientWidth,this.canvas.height=Number(t.height.split("px")[0])},drawBorder:function(){this.context.save(),this.context.translate(this.canvas.width/2,this.canvas.height/2),this.context.beginPath(),"rectangle"==this.drawOption.border.type?this.context.rect(-this.drawOption.border.width/2,-this.drawOption.border.height/2,this.drawOption.border.width,this.drawOption.border.height):this.context.arc(0,0,this.drawOption.border.width/2,0,2*Math.PI,!0),this.context.closePath(),this.context.strokeStyle=this.drawOption.border.color,this.context.lineWidth=this.drawOption.border.lineWidth,this.context.stroke(),this.context.restore()},drawBackground:function(){var t,e;if(this.context.save(),this.context.beginPath(),this.context.translate(this.canvas.width/2,this.canvas.height/2),"rectangle"==this.drawOption.border.type?(this.context.rect(-this.drawOption.border.width/2,-this.drawOption.border.height/2,this.drawOption.border.width,this.drawOption.border.height),t=-this.drawOption.border.width/2,e=-this.drawOption.border.height/2):(this.context.arc(0,0,this.drawOption.border.width/2,0,2*Math.PI,!0),t=-this.drawOption.border.width/2,e=-this.drawOption.border.width/2),this.drawOption.background.color&&(this.context.fillStyle=this.drawOption.background.color,this.context.fill()),this.drawOption.background.image){var n,r,i,o=new Image;if(this.transitionOption.bgImg)o=this.transitionOption.bgImg;else{var s=this;o.src=this.drawOption.background.image,o.onload=function(){console.log("img loaded"),s.$set(s.transitionOption,"bgImg",o)}}o.width>=o.height?(n=(o.width-o.height)/2,r=0,i=o.height):(n=0,r=(o.height-o.width)/2,i=o.width),this.context.clip(),this.context.drawImage(o,n,r,i,i,t,e,2*-t,2*-e)}this.context.closePath(),this.context.restore()},drawDial:function(){if(this.drawOption.dial.isDial){var t=2*Math.PI/60,e=0,n=this.drawOption.dial.distance?this.drawOption.dial.distance+this.drawOption.border.lineWidth/2:this.drawOption.border.lineWidth/2;0==this.drawOption.dial.distance&&(n=this.drawOption.border.lineWidth/2);for(var r={x:0,y:this.drawOption.border.width/2-n},i=0;i<60;i++)e=t*i,this.context.save(),this.context.translate(this.canvas.width/2,this.canvas.height/2),i%5==0?this.line(r,e,this.drawOption.dial.maxLength-r.y,this.drawOption.dial.color,this.drawOption.dial.maxWidth):this.line(r,e,this.drawOption.dial.minLength-r.y,this.drawOption.dial.color,this.drawOption.dial.minWidth),this.context.restore()}},drawNumber:function(){if(this.drawOption.number.isNumber){for(var t=[],e=1;e<13;e++)t[e-1]=e+3,e+3>12&&(t[e-1]=3-(12-e));if("roman"==this.drawOption.number.type)for(var n=0;n<12;n++)t[n]=this.intToRoman(t[n]);var r=Math.PI/6;this.context.save(),this.context.fillStyle=this.drawOption.number.color,this.context.font=this.drawOption.number.fontWeight+" "+this.drawOption.number.fontSize+" "+this.drawOption.number.fontFamily,this.context.textBaseline="middle",this.context.textAlign="center",this.context.translate(this.canvas.width/2,this.canvas.height/2);for(var i=0;i<t.length;i++)this.context.fillText(t[i],this.drawOption.number.radius*Math.cos(r*(i+1)),this.drawOption.number.radius*Math.sin(r*(i+1)));this.context.restore()}},intToRoman:function(t){for(var e=["I","V","X","L","C","D","M"],n=t.toString().split(""),r=0;r<n.length;r++){var i=Number(n[n.length-1-r]);if(n[n.length-1-r]="",i>=5&&i<9){n[n.length-1-r]=e[2*r+1];for(var o=0;o<i-5;o++)n[n.length-1-r]+=e[2*r]}else if(9==i)n[n.length-1-r]=e[2*r]+e[2*r+2];else if(4==i)n[n.length-1-r]=e[2*r]+e[2*r+1];else for(var s=0;s<i;s++)n[n.length-1-r]+=e[2*r]}return n.join("")},drawNeedle:function(){var t=this.timeAngle.hAngle,e=this.timeAngle.mAngle,n=this.timeAngle.sAngle;this.context.save(),this.context.translate(this.canvas.width/2,this.canvas.height/2),this.line({x:0,y:this.drawOption.needle.hour.longOut},t,this.drawOption.needle.hour.length,this.drawOption.needle.hour.color,this.drawOption.needle.hour.lineWidth),this.line({x:0,y:this.drawOption.needle.minute.longOut},e,this.drawOption.needle.minute.length,this.drawOption.needle.minute.color,this.drawOption.needle.minute.lineWidth),this.line({x:0,y:this.drawOption.needle.second.longOut},n,this.drawOption.needle.second.length,this.drawOption.needle.second.color,this.drawOption.needle.second.lineWidth),this.context.restore()},selectTimezone:function(){var t,e=this.drawOption.time.isStatic?new Date(this.drawOption.time.timestamp):new Date,n=e.getTime();t=""===this.timezone?-e.getTimezoneOffset()/60:Number(this.timezone);var r=6e4*e.getTimezoneOffset();return new Date(n+r+36e5*t)},newData:function(){var t=this.selectTimezone(),e=t.getHours(),n=t.getMinutes(),r=t.getSeconds(),i=2*Math.PI*(r%60)/60,o=2*Math.PI*(n%60)/60+i/60,s=2*Math.PI*(e%12)/12+o/12;this.timeAngle={sAngle:i,mAngle:o,hAngle:s},this.$emit("timeChange",t)},line:function(t,e,n,r,i){this.context.save(),this.context.beginPath(),this.context.rotate(e),this.context.moveTo(t.x,t.y),this.context.lineTo(0,-n),this.context.strokeStyle=r,this.context.lineWidth=i,this.context.stroke(),this.context.restore()}}}},function(t,e,n){"use strict";var r=n(10),i=n(18),o=n(32),s=n(3),a=n(20),u=n(55),c=n(24),f=n(61),l=n(7)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,e,n,p,v,y,m){u(n,e,p);var g,b,w,O=function(t){if(!h&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},x=e+" Iterator",S="values"==v,_=!1,j=t.prototype,k=j[l]||j["@@iterator"]||v&&j[v],M=k||O(v),P=v?S?O("entries"):M:void 0,T="Array"==e&&j.entries||k;if(T&&(w=f(T.call(new t)))!==Object.prototype&&w.next&&(c(w,x,!0),r||"function"==typeof w[l]||s(w,l,d)),S&&k&&"values"!==k.name&&(_=!0,M=function(){return k.call(this)}),r&&!m||!h&&!_&&j[l]||s(j,l,M),a[e]=M,a[x]=d,v)if(g={values:S?M:O("values"),keys:y?M:O("keys"),entries:P},m)for(b in g)b in j||o(j,b,g[b]);else i(i.P+i.F*(h||_),e,g);return g}},function(t,e,n){t.exports=!n(5)&&!n(9)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(8),i=n(0).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,e,n){t.exports=n(3)},function(t,e,n){var r=n(11),i=n(56),o=n(23),s=n(21)("IE_PROTO"),a=function(){},u=function(){var t,e=n(31)("iframe"),r=o.length;for(e.style.display="none",n(60).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),u=t.F;r--;)delete u.prototype[o[r]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[s]=t):n=u(),void 0===e?n:i(n,e)}},function(t,e,n){var r=n(1),i=n(6),o=n(57)(!1),s=n(21)("IE_PROTO");t.exports=function(t,e){var n,a=i(t),u=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;e.length>u;)r(a,n=e[u++])&&(~o(c,n)||c.push(n));return c}},function(t,e,n){var r=n(36);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(17);t.exports=function(t){return Object(r(t))}},function(t,e,n){var r=n(34),i=n(23).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"install",function(){return o});var r=n(40);n.d(e,"vueClock",function(){return r.a});var i=[r.a],o=function(t,e){i.map(function(e){t.component(e.name,e)})};"undefined"!=typeof window&&window.Vue&&o(window.Vue),e.default={install:o}},function(t,e,n){"use strict";var r=n(41);r.a.install=function(t){return t.component(r.a.name,r.a)},e.a=r.a},function(t,e,n){"use strict";var r=n(28),i=n(84),o=!1;var s=function(t){o||n(42)},a=n(47)(r.a,i.a,!1,s,"data-v-78f2126d",null);a.options.__file="src/components/clock/clock.vue",e.a=a.exports},function(t,e,n){var r=n(43);"string"==typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);n(45)("e4d2bf46",r,!1,{})},function(t,e,n){(t.exports=n(44)(!0)).push([t.i,"","",{version:3,sources:[],names:[],mappings:"",file:"clock.vue",sourceRoot:""}])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(s=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(s))))+" */"),o=r.sources.map(function(t){return"/*# sourceURL="+r.sourceRoot+t+" */"});return[n].concat(o).concat([i]).join("\n")}var s;return[n].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&r[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),e.push(s))}},e}},function(t,e,n){var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)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=n(46),o={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,u=0,c=!1,f=function(){},l=null,h="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t){for(var e=0;e<t.length;e++){var n=t[e],r=o[n.id];if(r){r.refs++;for(var i=0;i<r.parts.length;i++)r.parts[i](n.parts[i]);for(;i<n.parts.length;i++)r.parts.push(y(n.parts[i]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var s=[];for(i=0;i<n.parts.length;i++)s.push(y(n.parts[i]));o[n.id]={id:n.id,refs:1,parts:s}}}}function v(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function y(t){var e,n,r=document.querySelector("style["+h+'~="'+t.id+'"]');if(r){if(c)return f;r.parentNode.removeChild(r)}if(d){var i=u++;r=a||(a=v()),e=b.bind(null,r,i,!1),n=b.bind(null,r,i,!0)}else r=v(),e=function(t,e){var n=e.css,r=e.media,i=e.sourceMap;r&&t.setAttribute("media",r);l.ssrId&&t.setAttribute(h,e.id);i&&(n+="\n/*# sourceURL="+i.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");if(t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,r),n=function(){r.parentNode.removeChild(r)};return e(t),function(r){if(r){if(r.css===t.css&&r.media===t.media&&r.sourceMap===t.sourceMap)return;e(t=r)}else n()}}t.exports=function(t,e,n,r){c=n,l=r||{};var s=i(t,e);return p(s),function(e){for(var n=[],r=0;r<s.length;r++){var a=s[r];(u=o[a.id]).refs--,n.push(u)}e?p(s=i(t,e)):s=[];for(r=0;r<n.length;r++){var u;if(0===(u=n[r]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete o[u.id]}}}};var m,g=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});function b(t,e,n,r){var i=n?"":r.css;if(t.styleSheet)t.styleSheet.cssText=g(e,i);else{var o=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}},function(t,e){t.exports=function(t,e){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],s=o[0],a={id:t+":"+i,css:o[1],media:o[2],sourceMap:o[3]};r[s]?r[s].parts.push(a):n.push(r[s]={id:s,parts:[a]})}return n}},function(t,e){t.exports=function(t,e,n,r,i,o){var s,a=t=t||{},u=typeof t.default;"object"!==u&&"function"!==u||(s=t,a=t.default);var c,f="function"==typeof a?a.options:a;if(e&&(f.render=e.render,f.staticRenderFns=e.staticRenderFns,f._compiled=!0),n&&(f.functional=!0),i&&(f._scopeId=i),o?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},f._ssrRegister=c):r&&(c=r),c){var l=f.functional,h=l?f.render:f.beforeCreate;l?(f._injectStyles=c,f.render=function(t,e){return c.call(e),h(t,e)}):f.beforeCreate=h?[].concat(h,c):[c]}return{esModule:s,exports:a,options:f}}},function(t,e,n){"use strict";e.__esModule=!0;var r=s(n(49)),i=s(n(66)),o="function"==typeof i.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":typeof t};function s(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof i.default&&"symbol"===o(r.default)?function(t){return void 0===t?"undefined":o(t)}:function(t){return t&&"function"==typeof i.default&&t.constructor===i.default&&t!==i.default.prototype?"symbol":void 0===t?"undefined":o(t)}},function(t,e,n){t.exports={default:n(50),__esModule:!0}},function(t,e,n){n(51),n(62),t.exports=n(25).f("iterator")},function(t,e,n){"use strict";var r=n(52)(!0);n(29)(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(16),i=n(17);t.exports=function(t){return function(e,n){var o,s,a=String(i(e)),u=r(n),c=a.length;return u<0||u>=c?t?"":void 0:(o=a.charCodeAt(u))<55296||o>56319||u+1===c||(s=a.charCodeAt(u+1))<56320||s>57343?t?a.charAt(u):o:t?a.slice(u,u+2):s-56320+(o-55296<<10)+65536}}},function(t,e,n){var r=n(54);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,i){return t.call(e,n,r,i)}}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){"use strict";var r=n(33),i=n(12),o=n(24),s={};n(3)(s,n(7)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(s,{next:i(1,n)}),o(t,e+" Iterator")}},function(t,e,n){var r=n(4),i=n(11),o=n(13);t.exports=n(5)?Object.defineProperties:function(t,e){i(t);for(var n,s=o(e),a=s.length,u=0;a>u;)r.f(t,n=s[u++],e[n]);return t}},function(t,e,n){var r=n(6),i=n(58),o=n(59);t.exports=function(t){return function(e,n,s){var a,u=r(e),c=i(u.length),f=o(s,c);if(t&&n!=n){for(;c>f;)if((a=u[f++])!=a)return!0}else for(;c>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(16),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,e,n){var r=n(16),i=Math.max,o=Math.min;t.exports=function(t,e){return(t=r(t))<0?i(t+e,0):o(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(1),i=n(37),o=n(21)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e,n){n(63);for(var r=n(0),i=n(3),o=n(20),s=n(7)("toStringTag"),a="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(","),u=0;u<a.length;u++){var c=a[u],f=r[c],l=f&&f.prototype;l&&!l[s]&&i(l,s,c),o[c]=o.Array}},function(t,e,n){"use strict";var r=n(64),i=n(65),o=n(20),s=n(6);t.exports=n(29)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,i(1)):i(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.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){t.exports={default:n(67),__esModule:!0}},function(t,e,n){n(68),n(74),n(75),n(76),t.exports=n(2).Symbol},function(t,e,n){"use strict";var r=n(0),i=n(1),o=n(5),s=n(18),a=n(32),u=n(69).KEY,c=n(9),f=n(22),l=n(24),h=n(14),d=n(7),p=n(25),v=n(26),y=n(70),m=n(71),g=n(11),b=n(8),w=n(6),O=n(19),x=n(12),S=n(33),_=n(72),j=n(73),k=n(4),M=n(13),P=j.f,T=k.f,N=_.f,C=r.Symbol,E=r.JSON,L=E&&E.stringify,A=d("_hidden"),I=d("toPrimitive"),R={}.propertyIsEnumerable,W=f("symbol-registry"),D=f("symbols"),F=f("op-symbols"),B=Object.prototype,z="function"==typeof C,V=r.QObject,$=!V||!V.prototype||!V.prototype.findChild,U=o&&c(function(){return 7!=S(T({},"a",{get:function(){return T(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=P(B,e);r&&delete B[e],T(t,e,n),r&&t!==B&&T(B,e,r)}:T,G=function(t){var e=D[t]=S(C.prototype);return e._k=t,e},J=z&&"symbol"==typeof C.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof C},H=function(t,e,n){return t===B&&H(F,e,n),g(t),e=O(e,!0),g(n),i(D,e)?(n.enumerable?(i(t,A)&&t[A][e]&&(t[A][e]=!1),n=S(n,{enumerable:x(0,!1)})):(i(t,A)||T(t,A,x(1,{})),t[A][e]=!0),U(t,e,n)):T(t,e,n)},q=function(t,e){g(t);for(var n,r=y(e=w(e)),i=0,o=r.length;o>i;)H(t,n=r[i++],e[n]);return t},K=function(t){var e=R.call(this,t=O(t,!0));return!(this===B&&i(D,t)&&!i(F,t))&&(!(e||!i(this,t)||!i(D,t)||i(this,A)&&this[A][t])||e)},X=function(t,e){if(t=w(t),e=O(e,!0),t!==B||!i(D,e)||i(F,e)){var n=P(t,e);return!n||!i(D,e)||i(t,A)&&t[A][e]||(n.enumerable=!0),n}},Y=function(t){for(var e,n=N(w(t)),r=[],o=0;n.length>o;)i(D,e=n[o++])||e==A||e==u||r.push(e);return r},Q=function(t){for(var e,n=t===B,r=N(n?F:w(t)),o=[],s=0;r.length>s;)!i(D,e=r[s++])||n&&!i(B,e)||o.push(D[e]);return o};z||(a((C=function(){if(this instanceof C)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),e=function(n){this===B&&e.call(F,n),i(this,A)&&i(this[A],t)&&(this[A][t]=!1),U(this,t,x(1,n))};return o&&$&&U(B,t,{configurable:!0,set:e}),G(t)}).prototype,"toString",function(){return this._k}),j.f=X,k.f=H,n(38).f=_.f=Y,n(15).f=K,n(27).f=Q,o&&!n(10)&&a(B,"propertyIsEnumerable",K,!0),p.f=function(t){return G(d(t))}),s(s.G+s.W+s.F*!z,{Symbol:C});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Z.length>tt;)d(Z[tt++]);for(var et=M(d.store),nt=0;et.length>nt;)v(et[nt++]);s(s.S+s.F*!z,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=C(t)},keyFor:function(t){if(!J(t))throw TypeError(t+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){$=!0},useSimple:function(){$=!1}}),s(s.S+s.F*!z,"Object",{create:function(t,e){return void 0===e?S(t):q(S(t),e)},defineProperty:H,defineProperties:q,getOwnPropertyDescriptor:X,getOwnPropertyNames:Y,getOwnPropertySymbols:Q}),E&&s(s.S+s.F*(!z||c(function(){var t=C();return"[null]"!=L([t])||"{}"!=L({a:t})||"{}"!=L(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=e=r[1],(b(e)||void 0!==t)&&!J(t))return m(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,L.apply(E,r)}}),C.prototype[I]||n(3)(C.prototype,I,C.prototype.valueOf),l(C,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(14)("meta"),i=n(8),o=n(1),s=n(4).f,a=0,u=Object.isExtensible||function(){return!0},c=!n(9)(function(){return u(Object.preventExtensions({}))}),f=function(t){s(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,r)){if(!u(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!o(t,r)){if(!u(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return c&&l.NEED&&u(t)&&!o(t,r)&&f(t),t}}},function(t,e,n){var r=n(13),i=n(27),o=n(15);t.exports=function(t){var e=r(t),n=i.f;if(n)for(var s,a=n(t),u=o.f,c=0;a.length>c;)u.call(t,s=a[c++])&&e.push(s);return e}},function(t,e,n){var r=n(36);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(6),i=n(38).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return s.slice()}}(t):i(r(t))}},function(t,e,n){var r=n(15),i=n(12),o=n(6),s=n(19),a=n(1),u=n(30),c=Object.getOwnPropertyDescriptor;e.f=n(5)?c:function(t,e){if(t=o(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(a(t,e))return i(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(26)("asyncIterator")},function(t,e,n){n(26)("observable")},function(t,e,n){t.exports={default:n(78),__esModule:!0}},function(t,e,n){var r=n(2),i=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return i.stringify.apply(i,arguments)}},function(t,e,n){"use strict";e.__esModule=!0;var r,i=n(80),o=(r=i)&&r.__esModule?r:{default:r};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){t.exports={default:n(81),__esModule:!0}},function(t,e,n){n(82),t.exports=n(2).Object.assign},function(t,e,n){var r=n(18);r(r.S+r.F,"Object",{assign:n(83)})},function(t,e,n){"use strict";var r=n(13),i=n(27),o=n(15),s=n(37),a=n(35),u=Object.assign;t.exports=!u||n(9)(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=s(t),u=arguments.length,c=1,f=i.f,l=o.f;u>c;)for(var h,d=a(arguments[c++]),p=f?r(d).concat(f(d)):r(d),v=p.length,y=0;v>y;)l.call(d,h=p[y++])&&(n[h]=d[h]);return n}:u},function(t,e,n){"use strict";var r=function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"lonlyape_clock",style:this.clockBoxStyle},[e("canvas")])};r._withStripped=!0;var i={render:r,staticRenderFns:[]};e.a=i}])});