text: /*!
  * Vue Tk
  */   
  !(function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["vue-tk"]=e():t["vue-tk"]=e()})(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=317)})({0: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)},1:function(t,e,n){t.exports=!n(10)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},10:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},11:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},12:function(t,e,n){var r=n(32),o=n(23);t.exports=function(t){return r(o(t))}},13:function(t,e,n){var r=n(14);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)}}},14:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},15:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},17:function(t,e,n){var r=n(5),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},18:function(t,e,n){var r=n(5);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")}},19:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},2:function(t,e){var n=t.exports={version:"2.5.1"};"number"==typeof __e&&(__e=n)},20:function(t,e,n){t.exports=!n(1)&&!n(10)((function(){return 7!=Object.defineProperty(n(17)("div"),"a",{get:function(){return 7}}).a}))},21:function(t,e,n){var r=n(37),o=n(27);t.exports=Object.keys||function(t){return r(t,o)}},22:function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},23:function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},24:function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},26:function(t,e,n){var r=n(28)("keys"),o=n(24);t.exports=function(t){return r[t]||(r[t]=o(t))}},27:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},28:function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},3:function(t,e){t.exports=function(t,e,n,r,o){var i,u=t=t||{},f=typeof t.default;"object"!==f&&"function"!==f||(i=t,u=t.default);var s="function"==typeof u?u.options:u;e&&(s.render=e.render,s.staticRenderFns=e.staticRenderFns),r&&(s._scopeId=r);var c;if(o?(c=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__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},s._ssrRegister=c):n&&(c=n),c){var a=s.functional,p=a?s.render:s.beforeCreate;a?s.render=function(t,e){return c.call(e),p(t,e)}:s.beforeCreate=p?[].concat(p,c):[c]}return{esModule:i,exports:u,options:s}}},317:function(t,e,n){t.exports=n(318)},318:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.default=void 0;var r=n(319),o=(function(t){return t&&t.__esModule?t:{default:t}})(r),i=function(t){t.component("tk-viewer",t.extend(o.default))};o.default.install=i,e.default=o.default,e.install=i},319:function(t,e,n){"use strict";function r(t){n(320)}Object.defineProperty(e,"__esModule",{value:!0});var o=n(321),i=n.n(o),u=n(322),f=n(3),s=r,c=f(i.a,u.a,s,"data-v-46b2a6d8",null);e.default=c.exports},32:function(t,e,n){var r=n(19);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},320:function(t,e){},321:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(53),o=(function(t){return t&&t.__esModule?t:{default:t}})(r);e.default={name:"tk-viewer",data:function(){return{isShow:this.show,replaceWidth:null,replaceHeight:null,wrapperOffset:null,wrapperOffsetStore:null,onClose:!1,ready:!1}},computed:{backdropStyle:function(){return{"background-color":this.color}},wrapperStyle:function(){if(this.isShow){if(this.wrapperOffset){if(!this.onClose){var t=this;setTimeout((function(){t.wrapperOffset=null}),100),setTimeout((function(){t.ready=!0,t.$emit("ready")}),400)}return(0,o.default)({position:"fixed"},this.wrapperOffset)}return{position:"fixed",top:0,left:0,right:0,bottom:0}}return{}},viewerStyle:function(){return this.isShow?{width:this.replaceWidth+"px",height:this.replaceHeight+"px"}:{}},style:function(){return{}}},props:{color:String,show:Boolean,hideOnClick:{type:Boolean,default:!0}},watch:{show:function(){if(this.show){this.replaceWidth=this.$el.offsetWidth,this.replaceHeight=this.$el.offsetHeight;var t=this.$refs.wrapper.offsetParent?this.$refs.wrapper.offsetParent.scrollTop:0;this.wrapperOffsetStore={width:this.$refs.wrapper.offsetWidth+"px",height:this.$refs.wrapper.offsetHeight+"px",left:this.$refs.wrapper.offsetLeft+"px",top:this.$refs.wrapper.offsetTop+t+"px"},this.wrapperOffset=(0,o.default)({},this.wrapperOffsetStore),this.isShow=this.show}else this.close()}},methods:{change:function(t){this.isShow&&!t&&(this.wrapperOffset=(0,o.default)({},this.wrapperOffsetStore),this.onClose=!0,this.ready=!1);var e=this;setTimeout((function(){e.isShow=t,e.onClose=!1,e.$emit("change",t)}),400)},close:function(){this.change(!1)},autoHide:function(){this.hideOnClick&&this.close()}}},t.exports=e.default},322:function(t,e,n){"use strict";var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"tk-viewer",style:t.viewerStyle},[n("div",{ref:"wrapper",staticClass:"tk-viewer-wrapper",class:{wrapper:t.isShow},style:t.wrapperStyle},[t._t("default")],2),t._v(" "),t.isShow?n("span",{staticClass:"backdrop",style:t.backdropStyle,on:{click:t.autoHide}}):t._e()])},o=[],i={render:r,staticRenderFns:o};e.a=i},33:function(t,e){e.f={}.propertyIsEnumerable},35:function(t,e,n){var r=n(22),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},37:function(t,e,n){var r=n(11),o=n(12),i=n(41)(!1),u=n(26)("IE_PROTO");t.exports=function(t,e){var n,f=o(t),s=0,c=[];for(n in f)n!=u&&r(f,n)&&c.push(n);for(;e.length>s;)r(f,n=e[s++])&&(~i(c,n)||c.push(n));return c}},38:function(t,e){e.f=Object.getOwnPropertySymbols},39:function(t,e,n){var r=n(23);t.exports=function(t){return Object(r(t))}},4:function(t,e,n){var r=n(6),o=n(20),i=n(18),u=Object.defineProperty;e.f=n(1)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(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}},41:function(t,e,n){var r=n(12),o=n(35),i=n(42);t.exports=function(t){return function(e,n,u){var f,s=r(e),c=o(s.length),a=i(u,c);if(t&&n!=n){for(;c>a;)if((f=s[a++])!=f)return!0}else for(;c>a;a++)if((t||a in s)&&s[a]===n)return t||a||0;return!t&&-1}}},42:function(t,e,n){var r=n(22),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},5:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},53:function(t,e,n){t.exports={default:n(61),__esModule:!0}},6:function(t,e,n){var r=n(5);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},61:function(t,e,n){n(62),t.exports=n(2).Object.assign},62:function(t,e,n){var r=n(8);r(r.S+r.F,"Object",{assign:n(63)})},63:function(t,e,n){"use strict";var r=n(21),o=n(38),i=n(33),u=n(39),f=n(32),s=Object.assign;t.exports=!s||n(10)((function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!=s({},t)[n]||Object.keys(s({},e)).join("")!=r}))?function(t,e){for(var n=u(t),s=arguments.length,c=1,a=o.f,p=i.f;s>c;)for(var l,h=f(arguments[c++]),d=a?r(h).concat(a(h)):r(h),v=d.length,y=0;v>y;)p.call(h,l=d[y++])&&(n[l]=h[l]);return n}:s},8:function(t,e,n){var r=n(0),o=n(2),i=n(13),u=n(9),f=function(t,e,n){var s,c,a,p=t&f.F,l=t&f.G,h=t&f.S,d=t&f.P,v=t&f.B,y=t&f.W,w=l?o:o[e]||(o[e]={}),x=w.prototype,_=l?r:h?r[e]:(r[e]||{}).prototype;l&&(n=e);for(s in n)(c=!p&&_&&void 0!==_[s])&&s in w||(a=c?_[s]:n[s],w[s]=l&&"function"!=typeof _[s]?n[s]:v&&c?i(a,r):y&&_[s]==a?(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})(a):d&&"function"==typeof a?i(Function.call,a):a,d&&((w.virtual||(w.virtual={}))[s]=a,t&f.R&&x&&!x[s]&&u(x,s,a)))};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},9:function(t,e,n){var r=n(4),o=n(15);t.exports=n(1)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}}})}));