!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("VueElementUiPlus",[],e):"object"==typeof exports?exports.VueElementUiPlus=e():t.VueElementUiPlus=e()}(self,()=>{return n={6552:t=>{t.exports=function(i,r,s,l){var c,a=0;return"boolean"!=typeof r&&(l=s,s=r,r=void 0),function(){var t=this,e=Number(new Date)-a,n=arguments;function o(){a=Number(new Date),s.apply(t,n)}l&&!c&&o(),c&&clearTimeout(c),void 0===l&&i<e?o():!0!==r&&(c=setTimeout(l?function(){c=void 0}:o,void 0===l?i-e:i))}}},1900:(t,e,n)=>{"use strict";n.d(e,{Z:()=>function(t,e,n,o,i,r,s,l){var c,a="function"==typeof t?t.options:t;e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0);o&&(a.functional=!0);r&&(a._scopeId="data-v-"+r);s?(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__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},a._ssrRegister=c):i&&(c=l?function(){i.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:i);{var u;c&&(a.functional?(a._injectStyles=c,u=a.render,a.render=function(t,e){return c.call(e),u(t,e)}):(e=a.beforeCreate,a.beforeCreate=e?[].concat(e,c):[c]))}return{exports:t,options:a}}})}},o={},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),l={},(()=>{"use strict";r.d(l,{default:()=>i});function t(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"el-fade-in"}},[e.visible?n("div",{staticClass:"el-backtop",style:{right:e.styleRight,bottom:e.styleBottom},on:{click:function(t){return t.stopPropagation(),e.handleClick.apply(null,arguments)}}},[e._t("default",function(){return[n("el-icon",{attrs:{name:"caret-top"}})]})],2):e._e()])}t._withStripped=!0;var e=r(6552),n=r.n(e),s=function(t){return Math.pow(t,3)},e={name:"ElBacktop",props:{visibilityHeight:{type:Number,default:200},target:[String],right:{type:Number,default:40},bottom:{type:Number,default:40}},data:function(){return{el:null,container:null,visible:!1}},computed:{styleBottom:function(){return"".concat(this.bottom,"px")},styleRight:function(){return"".concat(this.right,"px")}},mounted:function(){this.init(),this.throttledScrollHandler=n()(300,this.onScroll),this.container.addEventListener("scroll",this.throttledScrollHandler)},methods:{init:function(){if(this.container=document,this.el=document.documentElement,this.target){if(this.el=document.querySelector(this.target),!this.el)throw new Error("target is not existed: ".concat(this.target));this.container=this.el}},onScroll:function(){var t=this.el.scrollTop;this.visible=t>=this.visibilityHeight},handleClick:function(t){this.scrollToTop(),this.$emit("click",t)},scrollToTop:function(){var n=this.el,o=Date.now(),i=n.scrollTop,r=window.requestAnimationFrame||function(t){return setTimeout(t,16)};r(function t(){var e=(Date.now()-o)/500;e<1?(n.scrollTop=i*(1-((e=e)<.5?s(2*e)/2:1-s(2*(1-e))/2)),r(t)):n.scrollTop=0})}},beforeDestroy:function(){this.container.removeEventListener("scroll",this.throttledScrollHandler)}},e=(0,r(1900).Z)(e,t,[],!1,null,null,null);e.options.__file="packages/backtop/src/main.vue";const o=e.exports,i=(o.install=function(t){t.component(o.name,o)},o)})(),l.default;function r(t){var e=o[t];return void 0!==e||(e=o[t]={exports:{}},n[t](e,e.exports,r)),e.exports}var n,o,l});