(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["home"],{"066f":function(t,e,i){},"0b53":function(t,e,i){},"1c81":function(t,e,i){},2017:function(t,e,i){"use strict";i("3b76")},2943:function(t,e,i){"use strict";i("6b56")},"3b76":function(t,e,i){},"4e8f":function(t,e,i){"use strict";i("0b53")},"5bc0":function(t,e,i){"use strict";i("76af")},"6b56":function(t,e,i){},"70f5":function(t,e,i){},"76af":function(t,e,i){},"7a6e":function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"error401"},[i("div",{staticClass:"error401-body-con"},[t._m(0),i("p",{staticClass:"error401-body-con-message"},[t._v("You don't have permission")]),i("div",{staticClass:"error401-btn-con"},[i("a",{staticClass:"error401-home-button",attrs:{href:"/"}},[t._v("返回首页")]),i("div",{staticClass:"error401-block-button",on:{click:t.backPage}},[t._v("返回上一页")])])])])},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"error401-body-con-title"},[t._v("4"),i("span",{staticClass:"error401-0-span"},[t._v("0")]),i("span",{staticClass:"error401-key-span"},[t._v("3")])])}],s={name:"Error401",methods:{backPage:function(){this.$router.go(-1)}}},o=s,a=(i("2943"),i("2877")),l=Object(a["a"])(o,r,n,!1,null,null,null);e["default"]=l.exports},"7c8c":function(t,e,i){"use strict";i("066f")},"97cd":function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"ms-doc"})])}],s={data:function(){return{}}},o=s,a=(i("7c8c"),i("2877")),l=Object(a["a"])(o,r,n,!1,null,"53300195",null);e["default"]=l.exports},"9ed6":function(t,e,i){"use strict";i.r(e);var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"login-container"},[r("el-form",{ref:"ruleForm",staticClass:"card-box login-form",attrs:{autocomplete:"on",model:t.ruleForm,rules:t.rules,"label-position":"left"}},[r("el-card",{staticClass:"box-card"},[r("div",{staticStyle:{"text-align":"center","margin-top":"10px"}},[r("img",{attrs:{alt:"element-logo",src:i("cf05")}})]),r("h3",{staticClass:"title"},[t._v("用户登录")]),r("el-form-item",{staticClass:"item",staticStyle:{"margin-top":"-20px"},attrs:{prop:"username"}},[r("el-input",{attrs:{placeholder:"账号",name:"userName",autocomplete:"on"},model:{value:t.ruleForm.userName,callback:function(e){t.$set(t.ruleForm,"userName",e)},expression:"ruleForm.userName"}},[r("i",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[r("icon-svg",{attrs:{"icon-class":"user"}})],1)])],1),r("el-form-item",{staticClass:"item",attrs:{prop:"password"}},[r("el-input",{attrs:{placeholder:"密码",name:"pwd",type:t.isShowPwd?"text":"password",autocomplete:"on"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.handleLogin.apply(null,arguments)}},model:{value:t.ruleForm.pwd,callback:function(e){t.$set(t.ruleForm,"pwd",e)},expression:"ruleForm.pwd"}},[r("i",{staticClass:"el-input__icon",attrs:{slot:"prefix"},slot:"prefix"},[r("icon-svg",{attrs:{"icon-class":"pwd"}})],1),r("i",{staticClass:"el-input__icon",attrs:{slot:"suffix"},on:{click:function(e){t.isShowPwd=!t.isShowPwd}},slot:"suffix"},[r("icon-svg",{attrs:{"icon-class":"eye"}})],1)])],1),r("el-form-item",{staticClass:"item",staticStyle:{"background-color":"white"},attrs:{prop:"verificationCode"}},[r("Verify",{ref:"checkV",attrs:{showButton:!1,barSize:{width:"305px",height:"37px"},vOffset:5,type:3},on:{success:function(e){return t.verifyAlert("success")},error:function(e){return t.verifyAlert("error")}}})],1),r("div",{staticStyle:{"text-align":"center","margin-top":"15px"}},[r("el-button",{staticStyle:{width:"60%","margin-bottom":"30px"},attrs:{type:"primary",loading:t.loading},nativeOn:{click:function(e){return t.handleLogin()}}},[t._v("登录\n ")])],1),r("div",{staticStyle:{"margin-top":"-15px"}},[r("a",{staticStyle:{"margin-left":"50%","font-size":"12px"},attrs:{href:"#/register"}},[t._v("立即注册")]),r("a",{staticStyle:{"margin-left":"5%","font-size":"12px"},attrs:{href:"#/forgetPasswd"}},[t._v("忘记密码")])])],1)],1),t._m(0)],1)},n=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{position:"absolute",bottom:"0",left:"50%",transform:"translate(-50%, -50%)"}},[i("a",{staticStyle:{color:"white","font-size":"12px"},attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo"}},[t._v("\n 厦门高立新鹏软件科技有限公司   闽公网安备35020302034269号 \n ")]),i("a",{staticStyle:{color:"white","font-size":"10px"},attrs:{href:"http://beian.miit.gov.cn"}},[t._v("闽ICP备17019234号")])])}],s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[t.componentType?i(t.componentType,{ref:"instance",tag:"components",attrs:{type:t.verifyType,figure:t.figure,arith:t.arith,width:t.width,height:t.height,fontSize:t.fontSize,codeLength:t.codeLength,mode:t.mode,vOffset:t.vOffset,vSpace:t.vSpace,explain:t.explain,imgUrl:t.imgUrl,imgName:t.imgName,showButton:t.showButton,imgSize:t.imgSize,blockSize:t.blockSize,barSize:t.barSize,defaultNum:t.defaultNum,checkNum:t.checkNum}}):t._e(),i("div",{directives:[{name:"show",rawName:"v-show",value:t.showButton,expression:"showButton"}],staticStyle:{width:"0",height:"0"},on:{click:t.checkCode}},[t._t("check",(function(){return[i("button",{staticClass:"verify-btn"},[t._v(t._s(t.i18n("ok")))])]}))],2)],1)},o=[],a=(i("6b54"),i("c5f6"),function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"cerify-code-panel"},[i("div",{staticClass:"verify-code",style:{width:t.width,height:t.height,"line-height":t.height,"font-size":t.fontSize,"background-color":t.containerBackgroundColor,color:t.containerColor},on:{click:t.setCode}},t._l(t.codeShow,(function(e){return i("span",{style:e.style},[t._v("\n "+t._s(e.char||e)+"\n ")])})),0),i("div",{staticClass:"verify-code-area",style:{width:t.width}},[i("div",{staticClass:"verify-input-area"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.inputValue,expression:"inputValue"}],staticClass:"varify-input-code",attrs:{type:"text"},domProps:{value:t.inputValue},on:{input:function(e){e.target.composing||(t.inputValue=e.target.value)}}})]),i("div",{staticClass:"verify-change-area",on:{click:t.setCode}},[i("a",{staticClass:"verify-change-code"},[t._v("换一张")])])])])}),l=[];i("28a5");function c(t){var e,i,r,n,s=t.$el.parentNode.offsetWidth||window.offsetWidth,o=t.$el.parentNode.offsetHeight||window.offsetHeight;return e=-1!=t.imgSize.width.indexOf("%")?parseInt(this.imgSize.width)/100*s+"px":this.imgSize.width,i=-1!=t.imgSize.height.indexOf("%")?parseInt(this.imgSize.height)/100*o+"px":this.imgSize.height,r=-1!=t.barSize.width.indexOf("%")?parseInt(this.barSize.width)/100*s+"px":this.barSize.width,n=-1!=t.barSize.height.indexOf("%")?parseInt(this.barSize.height)/100*o+"px":this.barSize.height,{imgWidth:e,imgHeight:i,barWidth:r,barHeight:n}}const u=[1,2,3,4,5,6,7,8,9,"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],p=["#fffff0","#f0ffff","#f0fff0","#fff0f0"],h=["#FF0033","#006699","#993366","#FF9900","#66CC66","#FF33CC"];var d={name:"VerifyCode",props:{type:{type:String,default:"1"},figure:{type:Number,default:100},arith:{type:Number,default:0},width:{type:String,default:"200px"},height:{type:String,default:"60px"},fontSize:{type:String,default:"30px"},codeLength:{type:Number,default:6}},data:function(){return{isEnd:!1,inputValue:"",containerBackgroundColor:"#fff",containerColor:"#fff",codeChose:"",codeShow:[]}},methods:{init:function(){this.setCode(),this.$parent.$emit("ready",this)},setCode:function(){if(0==this.isEnd)if(this.containerBackgroundColor=p[Math.floor(3*Math.random())],this.containerColor=h[Math.floor(5*Math.random())],this.inputValue="",this.codeShow=[],this.codeChose="","1"===this.type)for(var t=0;t=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2&&(r=this.barArea.offsetWidth-parseInt(parseInt(this.blockSize.width)/2)-2):r>=this.barArea.offsetWidth-parseInt(parseInt(this.barSize.height)/2)+3?(this.finishText="松开验证",r=this.barArea.offsetWidth-parseInt(parseInt(this.barSize.height)/2)+3):this.finishText="",r<=0&&(r=parseInt(parseInt(this.blockSize.width)/2)),this.moveBlockLeft=r-parseInt(parseInt(this.blockSize.width)/2)+"px",this.leftBarWidth=r-parseInt(parseInt(this.blockSize.width)/2)+"px"}},end:function(){var t=this;if(this.status&&0==this.isEnd){if("1"!==this.type){var e=parseInt(this.vOffset);parseInt(this.left)>=parseInt((this.moveBlockLeft||"").replace("px",""))-e&&parseInt(this.left)<=parseInt((this.moveBlockLeft||"").replace("px",""))+e?(this.moveBlockBackgroundColor="#5cb85c",this.leftBarBorderColor="#5cb85c",this.iconColor="#fff",this.iconClass="icon-check",this.showRefresh=!1,this.isEnd=!0,this.$parent.$emit("success",this)):(this.moveBlockBackgroundColor="#d9534f",this.leftBarBorderColor="#d9534f",this.iconColor="#fff",this.iconClass="icon-close",setTimeout((function(){t.refresh()}),400),this.$parent.$emit("error",this))}else parseInt((this.moveBlockLeft||"").replace("px",""))>=parseInt(this.setSize.barWidth)-parseInt(this.barSize.height)-parseInt(this.vOffset)?(this.moveBlockBackgroundColor="#5cb85c",this.leftBarBorderColor="#5cb85c",this.iconColor="#fff",this.iconClass="icon-check",this.showRefresh=!1,this.finishText="验证成功",this.isEnd=!0,this.$parent.$emit("success",this)):(this.finishText="",this.moveBlockBackgroundColor="#d9534f",this.leftBarBorderColor="#d9534f",this.iconColor="#fff",this.iconClass="icon-close",this.isEnd=!0,setTimeout((function(){t.finishText="",t.refresh(),t.isEnd=!1}),400),this.$parent.$emit("error",this));this.status=!1}},randSet:function(){var t=Math.floor(9*Math.random()+1),e=Math.floor(9*Math.random()+1),i=t*parseInt(this.setSize.imgHeight)/15+.1*parseInt(this.setSize.imgHeight),r=e*parseInt(this.setSize.imgWidth)/15+.1*parseInt(this.setSize.imgWidth);this.top=i,this.left=r},refresh:function(){var t=this;this.showRefresh=!0,this.finishText="",this.transitionLeft="left .3s",this.moveBlockLeft=0,this.leftBarWidth=void 0,this.transitionWidth="width .3s",this.leftBarBorderColor="#ddd",this.moveBlockBackgroundColor="#fff",this.iconColor="#000",this.iconClass="icon-right",this.randSet(),this.imgRand=Math.floor(Math.random()*this.imgName.length),this.isEnd=!1,setTimeout((function(){t.transitionWidth="",t.transitionLeft="",t.text=t.explain}),300)},getLeft:function(t){var e=0;while(t)e+=t.offsetLeft,t=t.offsetParent;var i=e;return i}},watch:{type:{immediate:!0,handler:function(){this.init()}}},mounted:function(){this.$el.onselectstart=function(){return!1}},i18n:{messages:{"en-US":{},"zh-CN":{}}}}),k=w,C=Object(m["a"])(k,v,b,!1,null,null,null),x=C.exports,S=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticStyle:{position:"relative"},on:{mouseover:function(e){"pop"===t.mode&&(t.showImage=!0)},mouseout:function(e){"pop"===t.mode&&(t.showImage=!1)}}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showImage,expression:"showImage"}],staticClass:"verify-img-out",style:"pop"===t.mode?{display:"none",position:"absolute",bottom:"42px",height:parseInt(t.setSize.imgHeight)+t.vSpace+"px"}:{position:"relative",height:parseInt(t.setSize.imgHeight)+t.vSpace+"px"},on:{mouseover:function(e){"pop"===t.mode&&(t.showImage=!0)},mouseout:function(e){"pop"===t.mode&&(t.showImage=!1)}}},[i("div",{staticClass:"verify-img-panel",style:{width:t.setSize.imgWidth,height:t.setSize.imgHeight,"background-size":t.setSize.imgWidth+" "+t.setSize.imgHeight,"margin-bottom":t.vSpace+"px"}},[i("div",{directives:[{name:"show",rawName:"v-show",value:t.showRefresh,expression:"showRefresh"}],staticClass:"verify-refresh",staticStyle:{"z-index":"3"},on:{click:t.refresh}},[i("i",{staticClass:"iconfont icon-refresh"})]),i("canvas",{ref:"canvas",attrs:{width:t.setSize.imgWidth,height:t.setSize.imgHeight},on:{click:function(e){t.bindingClick&&t.canvasClick(e)}}}),t._l(t.tempPoints,(function(e,r){return i("div",{key:r,staticClass:"point-area",style:{"background-color":"#1abd6c",color:"#fff","z-index":9999,width:"30px",height:"30px","text-align":"center","line-height":"30px","border-radius":"50%",position:"absolute",top:parseInt(e.y-10)+"px",left:parseInt(e.x-10)+"px"}},[t._v("\n "+t._s(r+1)+"\n ")])}))],2)]),i("div",{staticClass:"verify-bar-area",style:{width:this.barSize.width,height:this.barSize.height,color:this.barAreaColor,"border-color":this.barAreaBorderColor,"line-height":this.barSize.height}},[i("span",{staticClass:"verify-msg"},[t._v(t._s(t.text))])])])},z=[];var _={name:"VerifyPoints",props:{mode:{type:String,default:"fixed"},defaultNum:{type:Number,default:4},checkNum:{type:Number,default:3},vSpace:{type:Number,default:5},imgUrl:{type:String,default:"http://via.placeholder.com/"},imgName:{type:Array,default:function(){return["350x150","350x450"]}},imgSize:{type:Object,default:function(){return{width:"400px",height:"200px"}}},barSize:{type:Object,default:function(){return{width:"400px",height:"40px"}}}},data:function(){return{fontPos:[],checkPosArr:[],num:1,imgRand:0,setSize:{imgHeight:0,imgWidth:0,barHeight:0,barWidth:0},showImage:!0,tempPoints:[],text:"",barAreaColor:void 0,barAreaBorderColor:void 0,showRefresh:!0,bindingClick:!0}},computed:{resetSize:function(){return c}},methods:{init:function(){var t=this;this.fontPos.splice(0,this.fontPos.length),this.checkPosArr.splice(0,this.checkPosArr.length),this.num=1,this.imgRand=Math.floor(Math.random()*this.imgName.length),this.$nextTick((function(){t.setSize=t.resetSize(t),t.refresh(),t.$parent.$emit("ready",t)}))},canvasClick:function(t){var e=this;this.checkPosArr.push(this.getMousePos(this.$refs.canvas,t)),this.num==this.checkNum&&(this.num=this.createPoint(this.getMousePos(this.$refs.canvas,t)),setTimeout((function(){var t=e.comparePos(e.fontPos,e.checkPosArr);0==t?(e.$parent.$emit("error",e),e.barAreaColor="#d9534f",e.barAreaBorderColor="#d9534f",e.text="验证失败",setTimeout((function(){e.refresh()}),400)):(e.barAreaColor="#4cae4c",e.barAreaBorderColor="#5cb85c",e.text="验证成功",e.showRefresh=!1,e.bindingClick=!1,e.$parent.$emit("success",e))}),400)),this.num0&&(i-=1);var r=t.charAt(i);return-1==e.indexOf(r)?r:this.getChars(t,e)},shuffle:function(t){var e,i,r=t.length;while(r)e=Math.random()*r-->>>0,i=t[r],t[r]=t[e],t[e]=i;return t},createPoint:function(t){return this.tempPoints.push(Object.assign({},t)),++this.num},comparePos:function(t,e){for(var i=!0,r=0;rt[r].x&&parseInt(e[r].x)-40t[r].y&&parseInt(e[r].y)-400&&void 0!==arguments[0]?arguments[0]:{};this.action=t.action,this.container=t.container,this.emitter=t.emitter,this.target=t.target,this.text=t.text,this.trigger=t.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"createFakeElement",value:function(){var t="rtl"===document.documentElement.getAttribute("dir");this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var e=window.pageYOffset||document.documentElement.scrollTop;return this.fakeElem.style.top="".concat(e,"px"),this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.fakeElem}},{key:"selectFake",value:function(){var t=this,e=this.createFakeElement();this.fakeHandlerCallback=function(){return t.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.container.appendChild(e),this.selectedText=l()(e),this.copyText(),this.removeFake()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=l()(this.target),this.copyText()}},{key:"copyText",value:function(){var t;try{t=document.execCommand(this.action)}catch(e){t=!1}this.handleResult(t)}},{key:"handleResult",value:function(t){this.emitter.emit(t?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=t,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(t){if(void 0!==t){if(!t||"object"!==c(t)||1!==t.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&t.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(t.hasAttribute("readonly")||t.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=t}},get:function(){return this._target}}]),t}(),f=d;function m(t){return m="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},m(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===m(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=o()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new f({action:this.action(e),target:this.target(e),text:this.text(e),container:this.container,trigger:e,emitter:this})}},{key:"defaultAction",value:function(t){return _("action",t)}},{key:"defaultTarget",value:function(t){var e=_("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return _("text",t)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,i=!!document.queryCommandSupported;return e.forEach((function(t){i=i&&!!document.queryCommandSupported(t)})),i}}]),i}(n()),Q=N},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var i=Element.prototype;i.matches=i.matchesSelector||i.mozMatchesSelector||i.msMatchesSelector||i.oMatchesSelector||i.webkitMatchesSelector}function r(t,i){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(i))return t;t=t.parentNode}}t.exports=r},438:function(t,e,i){var r=i(828);function n(t,e,i,r,n){var s=o.apply(this,arguments);return t.addEventListener(i,s,n),{destroy:function(){t.removeEventListener(i,s,n)}}}function s(t,e,i,r,s){return"function"===typeof t.addEventListener?n.apply(null,arguments):"function"===typeof i?n.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return n(t,e,i,r,s)})))}function o(t,e,i,n){return function(i){i.delegateTarget=r(i.target,e),i.delegateTarget&&n.call(t,i)}}t.exports=s},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var i=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===i||"[object HTMLCollection]"===i)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,i){var r=i(879),n=i(438);function s(t,e,i){if(!t&&!e&&!i)throw new Error("Missing required arguments");if(!r.string(e))throw new TypeError("Second argument must be a String");if(!r.fn(i))throw new TypeError("Third argument must be a Function");if(r.node(t))return o(t,e,i);if(r.nodeList(t))return a(t,e,i);if(r.string(t))return l(t,e,i);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function o(t,e,i){return t.addEventListener(e,i),{destroy:function(){t.removeEventListener(e,i)}}}function a(t,e,i){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,i)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,i)}))}}}function l(t,e,i){return n(document.body,t,e,i)}t.exports=s},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var i=t.hasAttribute("readonly");i||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),i||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var r=window.getSelection(),n=document.createRange();n.selectNodeContents(t),r.removeAllRanges(),r.addRange(n),e=r.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,i){var r=this.e||(this.e={});return(r[t]||(r[t]=[])).push({fn:e,ctx:i}),this},once:function(t,e,i){var r=this;function n(){r.off(t,n),e.apply(i,arguments)}return n._=e,this.on(t,n,i)},emit:function(t){var e=[].slice.call(arguments,1),i=((this.e||(this.e={}))[t]||[]).slice(),r=0,n=i.length;for(r;r