716.8e7f0ce2.js 111 KB

1234567891011
  1. (self["webpackChunkRaingad_IM"]=self["webpackChunkRaingad_IM"]||[]).push([[716],{9716:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return d}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"m-20"},[e("el-tabs",{attrs:{type:"border-card"}},[e("el-tab-pane",[e("span",{attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"el-icon-setting"}),t._v(" 基础设置")]),e("el-form",{ref:"sysInfo",staticStyle:{width:"600px"},attrs:{model:t.sysInfo,rules:t.rules,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"系统名称",prop:"name"}},[e("el-input",{attrs:{placeholder:"请输入系统名称"},model:{value:t.sysInfo.name,callback:function(e){t.$set(t.sysInfo,"name",e)},expression:"sysInfo.name"}})],1),e("el-form-item",{attrs:{label:"系统描述",prop:"description"}},[e("el-input",{attrs:{placeholder:"请输入系统描述"},model:{value:t.sysInfo.description,callback:function(e){t.$set(t.sysInfo,"description",e)},expression:"sysInfo.description"}})],1),e("el-form-item",{attrs:{label:"系统LOGO",prop:"logo"}},[e("el-upload",{staticClass:"avatar-uploader",attrs:{headers:t.getToken,action:t.getUrl,"show-file-list":!1,"on-success":t.uploadSuccess,"on-change":t.change,"before-upload":t.beforeAvatarUpload}},[t.sysInfo.logo?e("img",{staticClass:"avatar",attrs:{src:t.sysInfo.logo}}):e("i",{staticClass:"el-icon-plus avatar-uploader-icon"})]),e("el-input",{staticStyle:{display:"none"},model:{value:t.sysInfo.logo,callback:function(e){t.$set(t.sysInfo,"logo",e)},expression:"sysInfo.logo"}})],1),e("el-form-item",{attrs:{label:"注册方式",prop:"regtype"}},[e("el-radio-group",{model:{value:t.sysInfo.regtype,callback:function(e){t.$set(t.sysInfo,"regtype",e)},expression:"sysInfo.regtype"}},[e("el-radio",{attrs:{label:"1",border:""}},[t._v("开启注册")]),e("el-radio",{attrs:{label:"2",border:""}},[t._v("邀请注册")])],1),e("div",{directives:[{name:"show",rawName:"v-show",value:2==t.sysInfo.regtype,expression:"sysInfo.regtype==2"}],staticClass:"mt-15"},[e("el-input",{staticClass:"input-with-select",model:{value:t.inviteUrl,callback:function(e){t.inviteUrl=e},expression:"inviteUrl"}},[e("el-button",{attrs:{slot:"append"},on:{click:t.copyUrl},slot:"append"},[t._v("复制链接")])],1),e("div",{staticClass:"mt-15"},[e("span",{staticClass:"c-999 f-12 mr-10"},[t._v("邀请链接有效期:48小时")]),t._v(" "),e("el-button",{on:{click:t.resetInviteUrl}},[t._v("重新生成")])],1),e("vue-qr",{ref:"qrCode",attrs:{text:t.inviteUrl,width:"200",height:"200",logoSrc:t.logo}})],1)],1),e("el-form-item",{attrs:{label:"注册认证",prop:"regauth"}},[e("el-radio-group",{model:{value:t.sysInfo.regauth,callback:function(e){t.$set(t.sysInfo,"regauth",e)},expression:"sysInfo.regauth"}},[e("el-radio",{attrs:{label:"0",border:""}},[t._v("关闭")]),e("el-radio",{attrs:{label:"1",border:""}},[t._v("手机号")]),e("el-radio",{attrs:{label:"2",border:""}},[t._v("邮箱")]),e("el-radio",{attrs:{label:"3",border:""}},[t._v("手机号+邮箱")])],1)],1),e("el-form-item",{attrs:{label:"开启IP定位",prop:"ipregion"}},[e("el-radio-group",{model:{value:t.sysInfo.ipregion,callback:function(e){t.$set(t.sysInfo,"ipregion",e)},expression:"sysInfo.ipregion"}},[e("el-radio",{attrs:{label:"0",border:""}},[t._v("关闭")]),e("el-radio",{attrs:{label:"1",border:""}},[t._v("开启")])],1)],1),e("el-form-item",{attrs:{label:"运行模式",prop:"regtype"}},[e("el-radio-group",{model:{value:t.sysInfo.runMode,callback:function(e){t.$set(t.sysInfo,"runMode",e)},expression:"sysInfo.runMode"}},[e("el-radio",{attrs:{label:"1",border:""}},[t._v("企业模式")]),e("el-radio",{attrs:{label:"2",border:""}},[t._v("社区模式")])],1)],1),e("el-form-item",{attrs:{label:"系统状态",prop:"state"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.sysInfo.state,callback:function(e){t.$set(t.sysInfo,"state",e)},expression:"sysInfo.state"}}),e("div",{directives:[{name:"show",rawName:"v-show",value:0==t.sysInfo.state,expression:"sysInfo.state==0"}]},[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("关闭提示语")]),e("el-input",{attrs:{placeholder:"请输入系统关闭后的提示语",type:"textarea"},model:{value:t.sysInfo.closeTips,callback:function(e){t.$set(t.sysInfo,"closeTips",e)},expression:"sysInfo.closeTips"}})],1)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("sysInfo")}}},[t._v("保存")])],1)],1)],1),e("el-tab-pane",[e("span",{attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"el-icon-chat-line-square"}),t._v(" 聊天设置")]),e("el-form",{ref:"chatInfo",staticClass:"demo-chatInfo",attrs:{model:t.chatInfo,rules:t.chatRules,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"允许用户私聊",prop:"simpleChat"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.chatInfo.simpleChat,callback:function(e){t.$set(t.chatInfo,"simpleChat",e)},expression:"chatInfo.simpleChat"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("关闭后,用户将无法私聊")])],1),e("el-form-item",{attrs:{label:"允许用户建群",prop:"groupChat"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.chatInfo.groupChat,callback:function(e){t.$set(t.chatInfo,"groupChat",e)},expression:"chatInfo.groupChat"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("关闭后,用户将无法创建群聊")])],1),e("el-form-item",{attrs:{label:"群聊最多人数",prop:"groupChat"}},[e("el-input",{staticClass:"ml-10",staticStyle:{width:"120px"},attrs:{type:"text"},model:{value:t.chatInfo.groupUserMax,callback:function(e){t.$set(t.chatInfo,"groupUserMax",e)},expression:"chatInfo.groupUserMax"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("人,0表示不限制")])],1),e("el-form-item",{attrs:{label:"开启在线状态",prop:"online"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.chatInfo.online,callback:function(e){t.$set(t.chatInfo,"online",e)},expression:"chatInfo.online"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("开启后,用户可以看到联系人的在线状态")])],1),e("el-form-item",{attrs:{label:"消息自动清理",prop:"msgClear"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.chatInfo.msgClear,callback:function(e){t.$set(t.chatInfo,"msgClear",e)},expression:"chatInfo.msgClear"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("开启后,将会自动删除系统内的聊天记录")]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.chatInfo.msgClear,expression:"chatInfo.msgClear==1"}]},[e("span",{staticClass:"c-999 f-12"},[t._v("消息最大保留天数")]),e("el-input",{staticClass:"ml-10",staticStyle:{width:"120px"},attrs:{type:"text"},model:{value:t.chatInfo.msgClearDay,callback:function(e){t.$set(t.chatInfo,"msgClearDay",e)},expression:"chatInfo.msgClearDay"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("系统在每日凌晨2点自动清理该天数以前的消息")])],1)],1),e("el-form-item",{attrs:{label:"音视频通话",prop:"webrtc"}},[e("el-switch",{attrs:{"active-value":"1","inactive-value":"0"},model:{value:t.chatInfo.webrtc,callback:function(e){t.$set(t.chatInfo,"webrtc",e)},expression:"chatInfo.webrtc"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("开启后,可以进行音视频通话,仅支持1对1音视频")]),e("div",{directives:[{name:"show",rawName:"v-show",value:1==t.chatInfo.webrtc,expression:"chatInfo.webrtc==1"}]},[e("div",{staticClass:"mt-15"},[e("span",{staticClass:"c-999 f-12"},[t._v("stun服务器")]),e("el-input",{staticClass:"ml-10",staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"请输入stun服务器"},model:{value:t.chatInfo.stun,callback:function(e){t.$set(t.chatInfo,"stun",e)},expression:"chatInfo.stun"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("音视频通话需要有Stun服务器才可以进行")])],1),e("div",{staticClass:"mt-15"},[e("span",{staticClass:"c-999 f-12"},[t._v("stun用户名")]),e("el-input",{staticClass:"ml-10",staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"请输入stun用户名"},model:{value:t.chatInfo.stunUser,callback:function(e){t.$set(t.chatInfo,"stunUser",e)},expression:"chatInfo.stunUser"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("如果是公开的则可以不填写")])],1),e("div",{staticClass:"mt-15"},[e("span",{staticClass:"c-999 f-12"},[t._v("stun密码")]),e("el-input",{staticClass:"ml-10",staticStyle:{width:"300px"},attrs:{type:"text",placeholder:"请输入stun服务器密码"},model:{value:t.chatInfo.stunPass,callback:function(e){t.$set(t.chatInfo,"stunPass",e)},expression:"chatInfo.stunPass"}}),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("如果是公开的则可以不填写")])],1)])],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("chatInfo")}}},[t._v("保存")])],1)],1)],1),e("el-tab-pane",[e("span",{attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"el-icon-message"}),t._v(" 邮件短信设置")]),e("div",{staticClass:"m-20"},[e("el-alert",{attrs:{title:"系统支持短信验证码,请到项目:[根目录/config/sms.php] 中配置短信开放平台的参数,支持阿里云、腾讯云、七牛云、又拍云、Ucloud和华为云。",type:"warning"}})],1),e("el-form",{ref:"smtp",staticStyle:{width:"500px"},attrs:{model:t.smtp,rules:t.smtpRules,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"邮件服务器",prop:"host"}},[e("el-input",{attrs:{placeholder:"请输入邮件服务器,如:smtp.mail.qq.com"},model:{value:t.smtp.host,callback:function(e){t.$set(t.smtp,"host",e)},expression:"smtp.host"}})],1),e("el-form-item",{attrs:{label:"端口号",prop:"port"}},[e("el-input-number",{attrs:{min:0,max:99999},model:{value:t.smtp.port,callback:function(e){t.$set(t.smtp,"port",e)},expression:"smtp.port"}})],1),e("el-form-item",{attrs:{label:"加密方式",prop:"security"}},[e("el-radio-group",{model:{value:t.smtp.security,callback:function(e){t.$set(t.smtp,"security",e)},expression:"smtp.security"}},[e("el-radio",{attrs:{label:"ssl",border:""}},[t._v("SSL")]),e("el-radio",{attrs:{label:"tls",border:""}},[t._v("TLS")])],1)],1),e("el-form-item",{attrs:{label:"发件人邮箱",prop:"addr"}},[e("el-input",{attrs:{placeholder:"请输入发件人的邮箱"},model:{value:t.smtp.addr,callback:function(e){t.$set(t.smtp,"addr",e)},expression:"smtp.addr"}})],1),e("el-form-item",{attrs:{label:"发件人密码",prop:"pass"}},[e("el-input",{attrs:{"show-password":"",placeholder:"请输入发件人的密码"},model:{value:t.smtp.pass,callback:function(e){t.$set(t.smtp,"pass",e)},expression:"smtp.pass"}})],1),e("el-form-item",{attrs:{label:"发件人签名",prop:"sign"}},[e("el-input",{attrs:{placeholder:"请输入发件人签名"},model:{value:t.smtp.sign,callback:function(e){t.$set(t.smtp,"sign",e)},expression:"smtp.sign"}})],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("smtp")}}},[t._v("保存")])],1),e("el-form-item",{attrs:{label:"测试邮件"}},[e("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入邮件地址"},model:{value:t.textEmail,callback:function(e){t.textEmail=e},expression:"textEmail"}},[e("el-button",{attrs:{slot:"append",icon:"el-icon-s-promotion",loading:t.loadding},on:{click:t.sendEmail},slot:"append"},[t._v("发送")])],1)],1)],1)],1),e("el-tab-pane",[e("span",{attrs:{slot:"label"},slot:"label"},[e("i",{staticClass:"el-icon-upload"}),t._v(" 文件上传设置")]),e("div",{staticClass:"mb-20"},[e("el-alert",{attrs:{title:"一旦设置了储存位置,就不能再进行更改,否则之前的文件或者图片加载就会出错!此修改会变更环境变量中的参数,请慎重操作!",type:"warning","show-icon":"",closable:!1}})],1),e("el-form",{ref:"fileUpload",staticStyle:{width:"600px"},attrs:{model:t.fileUpload,rules:t.fileRules,"label-width":"120px"}},[e("el-form-item",{attrs:{label:"储存位置",prop:"disk"}},[e("el-radio-group",{model:{value:t.fileUpload.disk,callback:function(e){t.$set(t.fileUpload,"disk",e)},expression:"fileUpload.disk"}},[e("el-radio",{attrs:{label:"local",border:""}},[t._v("本地")]),e("el-radio",{attrs:{label:"aliyun",border:""}},[t._v("阿里云")]),e("el-radio",{attrs:{label:"qiniu",border:""}},[t._v("七牛云")]),e("el-radio",{attrs:{label:"qcloud",border:""}},[t._v("腾讯云")])],1)],1),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"aliyun"==t.fileUpload.disk,expression:"fileUpload.disk=='aliyun'"}],attrs:{label:"阿里云配置"}},[e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("accessId")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入阿里云OSS平台的accessId"},model:{value:t.fileUpload.aliyun.accessId,callback:function(e){t.$set(t.fileUpload.aliyun,"accessId",e)},expression:"fileUpload.aliyun.accessId"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("accessSecret")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入阿里云OSS平台的accessSecret"},model:{value:t.fileUpload.aliyun.accessSecret,callback:function(e){t.$set(t.fileUpload.aliyun,"accessSecret",e)},expression:"fileUpload.aliyun.accessSecret"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("endpoint")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入阿里云OSS平台的endpoint"},model:{value:t.fileUpload.aliyun.endpoint,callback:function(e){t.$set(t.fileUpload.aliyun,"endpoint",e)},expression:"fileUpload.aliyun.endpoint"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("bucket")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入阿里云OSS平台的bucket"},model:{value:t.fileUpload.aliyun.bucket,callback:function(e){t.$set(t.fileUpload.aliyun,"bucket",e)},expression:"fileUpload.aliyun.bucket"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("url")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入阿里云OSS平台的域名"},model:{value:t.fileUpload.aliyun.url,callback:function(e){t.$set(t.fileUpload.aliyun,"url",e)},expression:"fileUpload.aliyun.url"}})],1)]),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"qiniu"==t.fileUpload.disk,expression:"fileUpload.disk=='qiniu'"}],attrs:{label:"七牛云配置"}},[e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("accessKey")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入七牛云平台的accessKey"},model:{value:t.fileUpload.qiniu.accessKey,callback:function(e){t.$set(t.fileUpload.qiniu,"accessKey",e)},expression:"fileUpload.qiniu.accessKey"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("secretKey")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入七牛云平台的secretKey"},model:{value:t.fileUpload.qiniu.secretKey,callback:function(e){t.$set(t.fileUpload.qiniu,"secretKey",e)},expression:"fileUpload.qiniu.secretKey"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("bucket")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入七牛云平台的bucket"},model:{value:t.fileUpload.qiniu.bucket,callback:function(e){t.$set(t.fileUpload.qiniu,"bucket",e)},expression:"fileUpload.qiniu.bucket"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("url")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入七牛云平台的域名"},model:{value:t.fileUpload.qiniu.url,callback:function(e){t.$set(t.fileUpload.qiniu,"url",e)},expression:"fileUpload.qiniu.url"}})],1)]),e("el-form-item",{directives:[{name:"show",rawName:"v-show",value:"qcloud"==t.fileUpload.disk,expression:"fileUpload.disk=='qcloud'"}],attrs:{label:"腾讯云配置"}},[e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("appId")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入腾讯云平台的appId"},model:{value:t.fileUpload.qcloud.appId,callback:function(e){t.$set(t.fileUpload.qcloud,"appId",e)},expression:"fileUpload.qcloud.appId"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("secretId")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入腾讯云平台的secretId"},model:{value:t.fileUpload.qcloud.secretId,callback:function(e){t.$set(t.fileUpload.qcloud,"secretId",e)},expression:"fileUpload.qcloud.secretId"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("secretKey")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入腾讯云平台的secretKey"},model:{value:t.fileUpload.qcloud.secretKey,callback:function(e){t.$set(t.fileUpload.qcloud,"secretKey",e)},expression:"fileUpload.qcloud.secretKey"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("region")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入腾讯云平台的region"},model:{value:t.fileUpload.qcloud.region,callback:function(e){t.$set(t.fileUpload.qcloud,"region",e)},expression:"fileUpload.qcloud.region"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("bucket")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入腾讯云平台的bucket"},model:{value:t.fileUpload.qiniu.bucket,callback:function(e){t.$set(t.fileUpload.qiniu,"bucket",e)},expression:"fileUpload.qiniu.bucket"}})],1),e("div",[e("span",{staticClass:"mr-10 c-999 f-12"},[t._v("cdn")]),t._v(" "),e("el-input",{attrs:{placeholder:"请输入腾讯云平台的域名"},model:{value:t.fileUpload.qiniu.cdn,callback:function(e){t.$set(t.fileUpload.qiniu,"cdn",e)},expression:"fileUpload.qiniu.cdn"}})],1)]),e("el-form-item",{attrs:{label:"文件预览地址",prop:"preview"}},[e("el-input",{attrs:{placeholder:"请输入文件预览的地址,若无则使用默认预览工具"},model:{value:t.fileUpload.preview,callback:function(e){t.$set(t.fileUpload,"preview",e)},expression:"fileUpload.preview"}})],1),e("el-form-item",{attrs:{label:"文件大小限制",prop:"size"}},[e("el-input-number",{attrs:{min:0,max:100,label:""},model:{value:t.fileUpload.size,callback:function(e){t.$set(t.fileUpload,"size",e)},expression:"fileUpload.size"}}),t._v(" "),e("span",{staticClass:"ml-10 c-999 f-12"},[t._v("MB")])],1),e("el-form-item",{attrs:{label:"文件格式限制",prop:"fileExt"}},[e("el-select",{staticStyle:{width:"480px"},attrs:{multiple:"",filterable:"","allow-create":"","default-first-option":"",placeholder:"请输入允许上传的文件格式"},model:{value:t.fileUpload.fileExt,callback:function(e){t.$set(t.fileUpload,"fileExt",e)},expression:"fileUpload.fileExt"}},t._l(t.options,(function(t){return e("el-option",{key:t,attrs:{label:t,value:t}})})),1)],1),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.submitForm("fileUpload")}}},[t._v("保存")])],1)],1)],1)],1)],1)},i=[],o=r(4462),a=r.n(o),s=r(8867),l=r.n(s),u=r(5080),c={components:{VueQr:l()},data(){return{logo:u,loadding:!1,sysInfo:{name:"",description:"",logo:"",regtype:"1",regauth:"2",ipregion:"1",runMode:"1",state:!0,closeTips:""},chatInfo:{simpleChat:!0,groupChat:!0,groupUserMax:0,online:!0,msgClear:!0,msgClearDay:0,webrtc:!0,stun:"",stunUser:"",stunPass:""},smtp:{host:"",port:465,security:"ssl",addr:"",pass:"",sign:""},fileUpload:{disk:"local",aliyun:{accessId:"",accessSecret:"",endpoint:"",bucket:"",url:""},qiniu:{accessKey:"",secretKey:"",bucket:"",url:""},qcloud:{appId:"",secretId:"",secretKey:"",region:"",bucket:"",cdn:""},preview:"",size:0,fileExt:""},options:["jpg","png"],inviteUrl:"https://im.raingad.com/#/invite/JSYEHNSH233K",textEmail:"",rules:{name:[{required:!0,message:"请输入系统名称",trigger:"blur"},{min:4,max:32,message:"长度在 4 到 32 个字符",trigger:"blur"}],description:[{required:!0,message:"请输入系统描述",trigger:"blur"}]},chatRules:{groupUserMax:[{required:!0,message:"请输入群组人数上限",trigger:"blur"}],msgClearDay:[{required:!0,message:"请输入消息保存天数",trigger:"blur"}]},smtpRules:{host:[{required:!0,pattern:"^[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}$",message:"请输入SMTP服务器地址",trigger:"blur"}],port:[{required:!0,type:"number",message:"请输入SMTP服务器端口",trigger:"blur"}],addr:[{required:!0,type:"email",message:"请输入SMTP邮箱",trigger:["blur","change"]}],pass:[{required:!0,message:"请输入SMTP邮箱密码",trigger:"blur"}]},fileRules:{size:[{required:!0,type:"number",message:"请输入文件大小限制",trigger:"blur"}],fileExt:[{required:!0,message:"请输入文件格式限制",trigger:"blur"}]}}},computed:{getToken(){const t=a().get("authToken");return{Authorization:t}},getUrl(){return window.BASE_URL+"/common/upload/uploadImage"}},mounted(){this.initConfig(),this.resetInviteUrl()},methods:{initConfig(){this.$api.configApi.getAllConfig({}).then((t=>{0==t.code&&t.data.forEach((t=>{switch(t.name){case"sysInfo":t.value&&(this.sysInfo=t.value);break;case"chatInfo":t.value&&(this.chatInfo=t.value);break;case"smtp":t.value&&(this.smtp=t.value);break;case"fileUpload":t.value&&(this.fileUpload=t.value);break}}))}))},submitForm(t){this.$refs[t].validate((e=>{if(!e)return console.log("error submit!!"),!1;var r={};switch(r.name=t,t){case"sysInfo":r.value=this.sysInfo;break;case"chatInfo":r.value=this.chatInfo;break;case"smtp":r.value=this.smtp;break;case"fileUpload":r.value=this.fileUpload;break}this.$api.configApi.setConfig(r).then((t=>{0==t.code&&this.$message({message:t.msg,type:"success"})}))}))},resetForm(t){this.$refs[t].resetFields()},uploadSuccess(t,e){console.log(t),this.sysInfo.logo=t.data},beforeAvatarUpload(t){},change(t,e){},copyUrl(){this.$clipboard(this.inviteUrl),this.$message({message:"复制成功",type:"success"})},resetInviteUrl(){this.$api.configApi.getInviteLink({}).then((t=>{0==t.code&&(this.inviteUrl=t.data)}))},sendEmail(){this.textEmail?(this.loadding=!0,this.$confirm("确定发送测试邮件吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((()=>{this.$api.configApi.sendTestEmail({email:this.textEmail}).then((t=>{this.loadding=!1,this.textEmail="",0==t.code&&this.$message({message:t.msg,type:"success"})}))})).catch((()=>{this.loadding=!1}))):this.$message({message:"请输入邮箱地址",type:"warning"})}}},f=c,h=r(1001),p=(0,h.Z)(f,n,i,!1,null,"e9889860",null),d=p.exports},8867:function(t,e,r){r(7658),r(541),r(3408),r(4590),r(2801),function(e,r){t.exports=r()}(0,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(n,i,function(e){return t[e]}.bind(null,i));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="/dist/",r(r.s=13)}([function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e){return t.exports=r="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.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(14)()},function(t,e,r){"use strict";r.d(e,"a",(function(){return u})),r.d(e,"b",(function(){return c})),r.d(e,"c",(function(){return p}));var n=r(0),i=r.n(n),o=r(1),a=r.n(o);function s(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=Number(t)?3:0)}var l=function(){function t(e){i()(this,t),this.mode=f.MODE_8BIT_BYTE,this.parsedData=[],this.data=e;for(var r=[],n=0,o=this.data.length;n<o;n++){var a=[],s=this.data.charCodeAt(n);s>65536?(a[0]=240|(1835008&s)>>>18,a[1]=128|(258048&s)>>>12,a[2]=128|(4032&s)>>>6,a[3]=128|63&s):s>2048?(a[0]=224|(61440&s)>>>12,a[1]=128|(4032&s)>>>6,a[2]=128|63&s):s>128?(a[0]=192|(1984&s)>>>6,a[1]=128|63&s):a[0]=s,r.push(a)}this.parsedData=Array.prototype.concat.apply([],r),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return a()(t,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}}]),t}(),u=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.L;i()(this,t),this.moduleCount=0,this.dataList=[],this.typeNumber=e,this.errorCorrectLevel=r,this.moduleCount=0,this.dataList=[]}return a()(t,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(t,e){for(var r=1,n=s(t),i=0,o=y.length;i<o;i++){var a=0;switch(e){case c.L:a=y[i][0];break;case c.M:a=y[i][1];break;case c.Q:a=y[i][2];break;case c.H:a=y[i][3]}if(n<=a)break;r++}if(r>y.length)throw new Error("Too long data");return r}(t,this.errorCorrectLevel);else{if(this.typeNumber>40)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(t,e,r){var n=s(e),i=t-1,o=0;switch(r){case c.L:o=y[i][0];break;case c.M:o=y[i][1];break;case c.Q:o=y[i][2];break;case c.H:o=y[i][3]}return n<=o}(this.typeNumber,t,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new l(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(e,r){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[n][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,r),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=t.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)}},{key:"setupPositionProbePattern",value:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(h).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=p.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var t=p.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],i=t[r];if(null==this.modules[n][i])for(var o=-2;o<=2;o++)for(var a=-2;a<=2;a++)this.modules[n+o][i+a]=-2==o||2==o||-2==a||2==a||0==o&&0==a}}},{key:"setupTypeNumber",value:function(t){for(var e=p.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},{key:"setupTypeInfo",value:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=p.getBCHTypeInfo(r),i=0;i<15;i++){var o=!t&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++)o=!t&&1==(n>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2)for(6==a&&a--;;){for(var s=0;s<2;s++)if(null==this.modules[n][a-s]){var l=!1;o<t.length&&(l=1==(t[o]>>>i&1)),p.getMask(e,n,a-s)&&(l=!l),this.modules[n][a-s]=l,-1==--i&&(o++,i=7)}if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}}],[{key:"createData",value:function(e,r,n){for(var i=m.getRSBlocks(e,r),o=new v,a=0;a<n.length;a++){var s=n[a];o.put(s.mode,4),o.put(s.getLength(),p.getLengthInBits(s.mode,e)),s.write(o)}var l=0;for(a=0;a<i.length;a++)l+=i[a].dataCount;if(o.getLengthInBits()>8*l)throw new Error("code length overflow. (".concat(o.getLengthInBits(),">").concat(8*l,")"));for(o.getLengthInBits()+4<=8*l&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*l||(o.put(t.PAD0,8),o.getLengthInBits()>=8*l));)o.put(t.PAD1,8);return t.createBytes(o,i)}},{key:"createBytes",value:function(t,e){for(var r=0,n=0,i=0,o=new Array(e.length),a=new Array(e.length),s=0;s<e.length;s++){var l=e[s].dataCount,u=e[s].totalCount-l;n=Math.max(n,l),i=Math.max(i,u),o[s]=new Array(l);for(var c=0;c<o[s].length;c++)o[s][c]=255&t.buffer[c+r];r+=l;var f=p.getErrorCorrectPolynomial(u),h=new g(o[s],f.getLength()-1).mod(f);for(a[s]=new Array(f.getLength()-1),c=0;c<a[s].length;c++){var d=c+h.getLength()-a[s].length;a[s][c]=d>=0?h.get(d):0}}var m=0;for(c=0;c<e.length;c++)m+=e[c].totalCount;var v=new Array(m),y=0;for(c=0;c<n;c++)for(s=0;s<e.length;s++)c<o[s].length&&(v[y++]=o[s][c]);for(c=0;c<i;c++)for(s=0;s<e.length;s++)c<a[s].length&&(v[y++]=a[s][c]);return v}}]),t}();u.PAD0=236,u.PAD1=17;var c={L:1,M:0,Q:3,H:2},f={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},h={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},p=function(){function t(){i()(this,t)}return a()(t,null,[{key:"getBCHTypeInfo",value:function(e){for(var r=e<<10;t.getBCHDigit(r)-t.getBCHDigit(t.G15)>=0;)r^=t.G15<<t.getBCHDigit(r)-t.getBCHDigit(t.G15);return(e<<10|r)^t.G15_MASK}},{key:"getBCHTypeNumber",value:function(e){for(var r=e<<12;t.getBCHDigit(r)-t.getBCHDigit(t.G18)>=0;)r^=t.G18<<t.getBCHDigit(r)-t.getBCHDigit(t.G18);return e<<12|r}},{key:"getBCHDigit",value:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e}},{key:"getPatternPosition",value:function(e){return t.PATTERN_POSITION_TABLE[e-1]}},{key:"getMask",value:function(t,e,r){switch(t){case h.PATTERN000:return(e+r)%2==0;case h.PATTERN001:return e%2==0;case h.PATTERN010:return r%3==0;case h.PATTERN011:return(e+r)%3==0;case h.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case h.PATTERN101:return e*r%2+e*r%3==0;case h.PATTERN110:return(e*r%2+e*r%3)%2==0;case h.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new g([1],0),r=0;r<t;r++)e=e.multiply(new g([1,d.gexp(r)],0));return e}},{key:"getLengthInBits",value:function(t,e){if(1<=e&&e<10)switch(t){case f.MODE_NUMBER:return 10;case f.MODE_ALPHA_NUM:return 9;case f.MODE_8BIT_BYTE:case f.MODE_KANJI:return 8;default:throw new Error("mode:".concat(t))}else if(e<27)switch(t){case f.MODE_NUMBER:return 12;case f.MODE_ALPHA_NUM:return 11;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 10;default:throw new Error("mode:".concat(t))}else{if(!(e<41))throw new Error("type:".concat(e));switch(t){case f.MODE_NUMBER:return 14;case f.MODE_ALPHA_NUM:return 13;case f.MODE_8BIT_BYTE:return 16;case f.MODE_KANJI:return 12;default:throw new Error("mode:".concat(t))}}}},{key:"getLostPoint",value:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var i=0;i<e;i++){for(var o=0,a=t.isDark(n,i),s=-1;s<=1;s++)if(!(n+s<0||e<=n+s))for(var l=-1;l<=1;l++)i+l<0||e<=i+l||0==s&&0==l||a==t.isDark(n+s,i+l)&&o++;o>5&&(r+=3+o-5)}for(n=0;n<e-1;n++)for(i=0;i<e-1;i++){var u=0;t.isDark(n,i)&&u++,t.isDark(n+1,i)&&u++,t.isDark(n,i+1)&&u++,t.isDark(n+1,i+1)&&u++,0!=u&&4!=u||(r+=3)}for(n=0;n<e;n++)for(i=0;i<e-6;i++)t.isDark(n,i)&&!t.isDark(n,i+1)&&t.isDark(n,i+2)&&t.isDark(n,i+3)&&t.isDark(n,i+4)&&!t.isDark(n,i+5)&&t.isDark(n,i+6)&&(r+=40);for(i=0;i<e;i++)for(n=0;n<e-6;n++)t.isDark(n,i)&&!t.isDark(n+1,i)&&t.isDark(n+2,i)&&t.isDark(n+3,i)&&t.isDark(n+4,i)&&!t.isDark(n+5,i)&&t.isDark(n+6,i)&&(r+=40);var c=0;for(i=0;i<e;i++)for(n=0;n<e;n++)t.isDark(n,i)&&c++;return r+Math.abs(100*c/e/e-50)/5*10}}]),t}();p.PATTERN_POSITION_TABLE=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],p.G15=1335,p.G18=7973,p.G15_MASK=21522;var d=function(){function t(){i()(this,t)}return a()(t,null,[{key:"glog",value:function(e){if(e<1)throw new Error("glog(".concat(e,")"));return t.LOG_TABLE[e]}},{key:"gexp",value:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return t.EXP_TABLE[e]}}]),t}();d.EXP_TABLE=new Array(256),d.LOG_TABLE=new Array(256),d._constructor=function(){for(var t=0;t<8;t++)d.EXP_TABLE[t]=1<<t;for(t=8;t<256;t++)d.EXP_TABLE[t]=d.EXP_TABLE[t-4]^d.EXP_TABLE[t-5]^d.EXP_TABLE[t-6]^d.EXP_TABLE[t-8];for(t=0;t<255;t++)d.LOG_TABLE[d.EXP_TABLE[t]]=t}();var g=function(){function t(e,r){if(i()(this,t),null==e.length)throw new Error("".concat(e.length,"/").concat(r));for(var n=0;n<e.length&&0==e[n];)n++;this.num=new Array(e.length-n+r);for(var o=0;o<e.length-n;o++)this.num[o]=e[o+n]}return a()(t,[{key:"get",value:function(t){return this.num[t]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(e){for(var r=new Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)r[n+i]^=d.gexp(d.glog(this.get(n))+d.glog(e.get(i)));return new t(r,0)}},{key:"mod",value:function(e){if(this.getLength()-e.getLength()<0)return this;for(var r=d.glog(this.get(0))-d.glog(e.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<e.getLength();i++)n[i]^=d.gexp(d.glog(e.get(i))+r);return new t(n,0).mod(e)}}]),t}(),m=function(){function t(e,r){i()(this,t),this.totalCount=e,this.dataCount=r}return a()(t,null,[{key:"getRSBlocks",value:function(e,r){var n=t.getRsBlockTable(e,r);if(null==n)throw new Error("bad rs block @ typeNumber:".concat(e,"/errorCorrectLevel:").concat(r));for(var i=n.length/3,o=[],a=0;a<i;a++)for(var s=n[3*a+0],l=n[3*a+1],u=n[3*a+2],c=0;c<s;c++)o.push(new t(l,u));return o}},{key:"getRsBlockTable",value:function(e,r){switch(r){case c.L:return t.RS_BLOCK_TABLE[4*(e-1)+0];case c.M:return t.RS_BLOCK_TABLE[4*(e-1)+1];case c.Q:return t.RS_BLOCK_TABLE[4*(e-1)+2];case c.H:return t.RS_BLOCK_TABLE[4*(e-1)+3];default:return}}}]),t}();m.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];var v=function(){function t(){i()(this,t),this.buffer=[],this.length=0}return a()(t,[{key:"get",value:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)}},{key:"put",value:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}]),t}(),y=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]]},function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return l})),r.d(e,"a",(function(){return u}));var n=r(2),i=r.n(n);function o(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var r,n="",i=0,o=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(o===s-1||1===a);else if(o!==s-1&&2===a){if(n.length<2||2!==i||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(n.length>2){var l=n.lastIndexOf("/");if(l!==n.length-1){-1===l?(n="",i=0):i=(n=n.slice(0,l)).length-1-n.lastIndexOf("/"),o=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=0,o=s,a=0;continue}e&&(n.length>0?n+="/..":n="..",i=2)}else n.length>0?n+="/"+t.slice(o+1,s):n=t.slice(o+1,s),i=s-o-1;o=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var s={resolve:function(){for(var e,r="",n=!1,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(void 0===e&&(e=t.cwd()),s=e),o(s),0!==s.length&&(r=s+"/"+r,n=47===s.charCodeAt(0))}return r=a(r,!n),n?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(t){if(o(t),0===t.length)return".";var e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1);return 0!==(t=a(t,!e)).length||e||(t="."),t.length>0&&r&&(t+="/"),e?"/"+t:t},isAbsolute:function(t){return o(t),t.length>0&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var r=arguments[e];o(r),r.length>0&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":s.normalize(t)},relative:function(t,e){if(o(t),o(e),t===e)return"";if((t=s.resolve(t))===(e=s.resolve(e)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var n=t.length,i=n-r,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var l=e.length-a,u=i<l?i:l,c=-1,f=0;f<=u;++f){if(f===u){if(l>u){if(47===e.charCodeAt(a+f))return e.slice(a+f+1);if(0===f)return e.slice(a+f)}else i>u&&(47===t.charCodeAt(r+f)?c=f:0===f&&(c=0));break}var h=t.charCodeAt(r+f);if(h!==e.charCodeAt(a+f))break;47===h&&(c=f)}var p="";for(f=r+c+1;f<=n;++f)f!==n&&47!==t.charCodeAt(f)||(0===p.length?p+="..":p+="/..");return p.length>0?p+e.slice(a+c):(a+=c,47===e.charCodeAt(a)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(o(t),0===t.length)return".";for(var e=t.charCodeAt(0),r=47===e,n=-1,i=!0,a=t.length-1;a>=1;--a)if(47===(e=t.charCodeAt(a))){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"//":t.slice(0,n)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');o(t);var r,n=0,i=-1,a=!0;if(void 0!==e&&e.length>0&&e.length<=t.length){if(e.length===t.length&&e===t)return"";var s=e.length-1,l=-1;for(r=t.length-1;r>=0;--r){var u=t.charCodeAt(r);if(47===u){if(!a){n=r+1;break}}else-1===l&&(a=!1,l=r+1),s>=0&&(u===e.charCodeAt(s)?-1==--s&&(i=r):(s=-1,i=l))}return n===i?i=l:-1===i&&(i=t.length),t.slice(n,i)}for(r=t.length-1;r>=0;--r)if(47===t.charCodeAt(r)){if(!a){n=r+1;break}}else-1===i&&(a=!1,i=r+1);return-1===i?"":t.slice(n,i)},extname:function(t){o(t);for(var e=-1,r=0,n=-1,i=!0,a=0,s=t.length-1;s>=0;--s){var l=t.charCodeAt(s);if(47!==l)-1===n&&(i=!1,n=s+1),46===l?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!i){r=s+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!==i()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+i()(t));return function(t,e){var r=e.dir||e.root,n=e.base||(e.name||"")+(e.ext||"");return r?r===e.root?r+n:r+t+n:n}("/",t)},parse:function(t){o(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0===t.length)return e;var r,n=t.charCodeAt(0),i=47===n;i?(e.root="/",r=1):r=0;for(var a=-1,s=0,l=-1,u=!0,c=t.length-1,f=0;c>=r;--c)if(47!==(n=t.charCodeAt(c)))-1===l&&(u=!1,l=c+1),46===n?-1===a?a=c:1!==f&&(f=1):-1!==a&&(f=-1);else if(!u){s=c+1;break}return-1===a||-1===l||0===f||1===f&&a===l-1&&a===s+1?-1!==l&&(e.base=e.name=0===s&&i?t.slice(1,l):t.slice(s,l)):(0===s&&i?(e.name=t.slice(1,a),e.base=t.slice(1,l)):(e.name=t.slice(s,a),e.base=t.slice(s,l)),e.ext=t.slice(a,l)),s>0?e.dir=t.slice(0,s-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};s.posix=s;var l=s.extname,u=s.basename}).call(this,r(19))},function(t,e){function r(t,e,r,n,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void r(t)}s.done?e(l):Promise.resolve(l).then(n,i)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(i,o){var a=t.apply(e,n);function s(t){r(a,i,o,s,l,"next",t)}function l(t){r(a,i,o,s,l,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"b",(function(){return b})),r.d(e,"a",(function(){return x}));const n=(t,e,r={},i=r)=>{if(Array.isArray(e))e.forEach((e=>n(t,e,r,i)));else if("function"==typeof e)e(t,r,i,n);else{const o=Object.keys(e)[0];Array.isArray(e[o])?(i[o]={},n(t,e[o],r,i[o])):i[o]=e[o](t,r,i,n)}return r},i=(t,e)=>(r,n,i,o)=>{e(r,n,i)&&o(r,t,n,i)},o=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),s=t=>e=>e.data.subarray(e.pos,e.pos+t),l=t=>e=>Array.from(a(t)(e)).map((t=>String.fromCharCode(t))).join(""),u=t=>e=>{const r=a(2)(e);return t?(r[1]<<8)+r[0]:(r[0]<<8)+r[1]},c=(t,e)=>(r,n,i)=>{const o="function"==typeof e?e(r,n,i):e,s=a(t),l=new Array(o);for(var u=0;u<o;u++)l[u]=s(r);return l},f=t=>e=>{const r=(t=>t.data[t.pos++])(e),n=new Array(8);for(var i=0;i<8;i++)n[7-i]=!!(r&1<<i);return Object.keys(t).reduce(((e,r)=>{const i=t[r];return i.length?e[r]=((t,e,r)=>{for(var n=0,i=0;i<r;i++)n+=t[e+i]&&2**(r-i-1);return n})(n,i.index,i.length):e[r]=n[i.index],e}),{})};var h={blocks:t=>{const e=[],r=t.data.length;for(var n=0,i=(t=>t.data[t.pos++])(t);0!==i&&i;i=(t=>t.data[t.pos++])(t)){if(t.pos+i>=r){const i=r-t.pos;e.push(a(i)(t)),n+=i;break}e.push(a(i)(t)),n+=i}const o=new Uint8Array(n);for(var s=0,l=0;l<e.length;l++)o.set(e[l],s),s+=e[l].length;return o}};const p=i({gce:[{codes:a(2)},{byteSize:t=>t.data[t.pos++]},{extras:f({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:u(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},(t=>{var e=s(2)(t);return 33===e[0]&&249===e[1]})),d=i({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:u(!0)},{top:u(!0)},{width:u(!0)},{height:u(!0)},{lct:f({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},i({lct:c(3,((t,e,r)=>Math.pow(2,r.descriptor.lct.size+1)))},((t,e,r)=>r.descriptor.lct.exists)),{data:[{minCodeSize:t=>t.data[t.pos++]},h]}]},(t=>44===o()(t))),g=i({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,r)=>a(r.text.blockSize)(t)},h]},(t=>{var e=s(2)(t);return 33===e[0]&&1===e[1]})),m=i({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>l(r.blockSize)(t)},h]},(t=>{var e=s(2)(t);return 33===e[0]&&255===e[1]})),v=i({comment:[{codes:a(2)},h]},(t=>{var e=s(2)(t);return 33===e[0]&&254===e[1]}));var y=[{header:[{signature:l(3)},{version:l(3)}]},{lsd:[{width:u(!0)},{height:u(!0)},{gct:f({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},i({gct:c(3,((t,e)=>Math.pow(2,e.lsd.gct.size+1)))},((t,e)=>e.lsd.gct.exists)),{frames:((t,e)=>(r,n,i,o)=>{const a=[];let s=r.pos;for(;e(r,n,i);){const e={};if(o(r,t,n,e),r.pos===s)break;s=r.pos,a.push(e)}return a})([p,m,v,d,g],(t=>{var e=o()(t);return 33===e||44===e}))}],b=function(t){var e=new Uint8Array(t);return n({data:e,pos:0},y)},w=function(t,e,r){if(t.image){var n=t.image,i=n.descriptor.width*n.descriptor.height,o=function(t,e,r){var n,i,o,a,s,l,u,c,f,h,p,d,g,m,v,y,b=r,w=new Array(r),x=new Array(4096),C=new Array(4096),k=new Array(4097);for(s=1+(i=1<<(h=t)),n=i+2,u=-1,o=(1<<(a=h+1))-1,c=0;c<i;c++)x[c]=0,C[c]=c;for(p=d=g=m=v=y=0,f=0;f<b;){if(0===m){if(d<a){p+=e[y]<<d,d+=8,y++;continue}if(c=p&o,p>>=a,d-=a,c>n||c==s)break;if(c==i){o=(1<<(a=h+1))-1,n=i+2,u=-1;continue}if(-1==u){k[m++]=C[c],u=c,g=c;continue}for(l=c,c==n&&(k[m++]=g,c=u);c>i;)k[m++]=C[c],c=x[c];g=255&C[c],k[m++]=g,n<4096&&(x[n]=u,C[n]=g,0==(++n&o)&&n<4096&&(a++,o+=n)),u=l}m--,w[v++]=k[m],f++}for(f=v;f<b;f++)w[f]=0;return w}(n.data.minCodeSize,n.data.blocks,i);n.descriptor.lct.interlaced&&(o=function(t,e){for(var r=new Array(t.length),n=t.length/e,i=function(n,i){var o=t.slice(i*e,(i+1)*e);r.splice.apply(r,[n*e,e].concat(o))},o=[0,4,2,1],a=[8,8,4,2],s=0,l=0;l<4;l++)for(var u=o[l];u<n;u+=a[l])i(u,s),s++;return r}(o,n.descriptor.width));var a={pixels:o,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return n.descriptor.lct&&n.descriptor.lct.exists?a.colorTable=n.lct:a.colorTable=e,t.gce&&(a.delay=10*(t.gce.delay||10),a.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(a.transparentIndex=t.gce.transparentColorIndex)),r&&(a.patch=function(t){for(var e=t.pixels.length,r=new Uint8ClampedArray(4*e),n=0;n<e;n++){var i=4*n,o=t.pixels[n],a=t.colorTable[o];r[i]=a[0],r[i+1]=a[1],r[i+2]=a[2],r[i+3]=o!==t.transparentIndex?255:0}return r}(a)),a}console.warn("gif frame does not have associated image.")},x=function(t,e){return t.frames.filter((function(t){return t.image})).map((function(r){return w(r,t.gct,e)}))}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return y}));var n=r(2),i=r.n(n),o=r(0),a=r.n(o),s=r(1),l=r.n(s),u=r(3),c=r.n(u),f=r(10),h=r(7),p=r(4),d=r(12),g=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function a(t){try{l(n.next(t))}catch(t){o(t)}}function s(t){try{l(n.throw(t))}catch(t){o(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(a,s)}l((n=n.apply(t,e||[])).next())}))},m=f.a.Canvas;function v(t){if(t)return new Promise((function(r,n){if("data"==t.slice(0,4)){var i=new Image;return i.onload=function(){r(i),e(i)},i.onerror=function(){n("Image load error"),e(i)},void(i.src=t)}var o=new Image;o.setAttribute("crossOrigin","Anonymous"),o.onload=function(){r(o)},o.onerror=function(){n("Image load error")},o.src=t}));function e(t){t.onload=null,t.onerror=null}}var y=function(){function e(t){a()(this,e);var r=Object.assign({},t);if(Object.keys(e.defaultOptions).forEach((function(t){t in r||Object.defineProperty(r,t,{value:e.defaultOptions[t],enumerable:!0,writable:!0})})),r.components?"object"===i()(r.components)&&Object.keys(e.defaultComponentOptions).forEach((function(t){t in r.components?Object.defineProperty(r.components,t,{value:Object.assign(Object.assign({},e.defaultComponentOptions[t]),r.components[t]),enumerable:!0,writable:!0}):Object.defineProperty(r.components,t,{value:e.defaultComponentOptions[t],enumerable:!0,writable:!0})})):r.components=e.defaultComponentOptions,null!==r.dotScale&&void 0!==r.dotScale){if(r.dotScale<=0||r.dotScale>1)throw new Error("dotScale should be in range (0, 1].");r.components.data.scale=r.dotScale,r.components.timing.scale=r.dotScale,r.components.alignment.scale=r.dotScale}this.options=r,this.canvas=new m(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new p.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}return l()(e,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var r,n,i,o,a,s,l,u,f,y,w,x,C,k,_,A,E,I,T;return g(this,void 0,void 0,c.a.mark((function g(){var P,S,B,R,U,D,L,M,O,N,j,q,$,F,z,Y,G,K,H,Q,X,V,J,Z,W,tt,et,rt,nt,it,ot,at,st,lt,ut,ct,ft,ht,pt,dt,gt,mt,vt,yt,bt,wt,xt,Ct,kt,_t,At,Et,It,Tt,Pt,St,Bt,Rt,Ut,Dt,Lt,Mt,Ot,Nt,jt,qt,$t,Ft,zt,Yt,Gt,Kt;return c.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(P=null===(r=this.qrCode)||void 0===r?void 0:r.moduleCount,S=this.options.size,((B=this.options.margin)<0||2*B>=S)&&(B=0),R=Math.ceil(B),U=S-2*B,D=this.options.whiteMargin,L=this.options.backgroundDimming,M=Math.ceil(U/P),j=new m(N=(O=M*P)+2*R,N),q=j.getContext("2d"),this._clear(),q.save(),q.translate(R,R),$=new m(N,N),F=$.getContext("2d"),z=null,Y=[],!this.options.gifBackground){c.next=47;break}if(G=Object(h.b)(this.options.gifBackground),z=G,Y=Object(h.a)(G,!0),!this.options.autoColor){c.next=45;break}K=0,H=0,Q=0,X=0,V=0;case 28:if(!(V<Y[0].colorTable.length)){c.next=41;break}if(!((J=Y[0].colorTable[V])[0]>200||J[1]>200||J[2]>200)){c.next=32;break}return c.abrupt("continue",38);case 32:if(0!==J[0]||0!==J[1]||0!==J[2]){c.next=34;break}return c.abrupt("continue",38);case 34:X++,K+=J[0],H+=J[1],Q+=J[2];case 38:V++,c.next=28;break;case 41:K=~~(K/X),H=~~(H/X),Q=~~(Q/X),this.options.colorDark="rgb(".concat(K,",").concat(H,",").concat(Q,")");case 45:c.next=61;break;case 47:if(!this.options.backgroundImage){c.next=58;break}return c.next=50,v(this.options.backgroundImage);case 50:Z=c.sent,this.options.autoColor&&(W=e._getAverageRGB(Z),this.options.colorDark="rgb(".concat(W.r,",").concat(W.g,",").concat(W.b,")")),F.drawImage(Z,0,0,Z.width,Z.height,0,0,N,N),F.rect(0,0,N,N),F.fillStyle=L,F.fill(),c.next=61;break;case 58:F.rect(0,0,N,N),F.fillStyle=this.options.colorLight,F.fill();case 61:for(tt=p.c.getPatternPosition(this.qrCode.typeNumber),et=(null===(i=null===(n=this.options.components)||void 0===n?void 0:n.data)||void 0===i?void 0:i.scale)||.4,rt=.5*(1-et),nt=0;nt<P;nt++)for(it=0;it<P;it++){for(ot=this.qrCode.isDark(nt,it),at=6==nt&&it>=8&&it<=P-8||6==it&&nt>=8&&nt<=P-8,st=it<8&&(nt<8||nt>=P-8)||it>=P-8&&nt<8||at,lt=1;lt<tt.length-1;lt++)st=st||nt>=tt[lt]-2&&nt<=tt[lt]+2&&it>=tt[lt]-2&&it<=tt[lt]+2;ut=it*M+(st?0:rt*M),ct=nt*M+(st?0:rt*M),q.strokeStyle=ot?this.options.colorDark:this.options.colorLight,q.lineWidth=.5,q.fillStyle=ot?this.options.colorDark:this.options.colorLight,0===tt.length?st||q.fillRect(ut,ct,(st?1:et)*M,(st?1:et)*M):(ft=it<P-4&&it>=P-4-5&&nt<P-4&&nt>=P-4-5,st||ft||q.fillRect(ut,ct,(st?1:et)*M,(st?1:et)*M))}if(ht=tt[tt.length-1],pt=this.options.colorLight,q.fillStyle=pt,q.fillRect(0,0,8*M,8*M),q.fillRect(0,(P-8)*M,8*M,8*M),q.fillRect((P-8)*M,0,8*M,8*M),(null===(a=null===(o=this.options.components)||void 0===o?void 0:o.timing)||void 0===a?void 0:a.protectors)&&(q.fillRect(8*M,6*M,(P-8-8)*M,M),q.fillRect(6*M,8*M,M,(P-8-8)*M)),(null===(l=null===(s=this.options.components)||void 0===s?void 0:s.cornerAlignment)||void 0===l?void 0:l.protectors)&&e._drawAlignProtector(q,ht,ht,M),!(null===(f=null===(u=this.options.components)||void 0===u?void 0:u.alignment)||void 0===f?void 0:f.protectors)){c.next=99;break}dt=0;case 75:if(!(dt<tt.length)){c.next=99;break}gt=0;case 77:if(!(gt<tt.length)){c.next=96;break}if(mt=tt[gt],vt=tt[dt],6!==mt||6!==vt&&vt!==ht){c.next=84;break}return c.abrupt("continue",93);case 84:if(6!==vt||6!==mt&&mt!==ht){c.next=88;break}return c.abrupt("continue",93);case 88:if(mt!==ht||vt!==ht){c.next=92;break}return c.abrupt("continue",93);case 92:e._drawAlignProtector(q,mt,vt,M);case 93:gt++,c.next=77;break;case 96:dt++,c.next=75;break;case 99:for(q.fillStyle=this.options.colorDark,q.fillRect(0,0,7*M,M),q.fillRect((P-7)*M,0,7*M,M),q.fillRect(0,6*M,7*M,M),q.fillRect((P-7)*M,6*M,7*M,M),q.fillRect(0,(P-7)*M,7*M,M),q.fillRect(0,(P-7+6)*M,7*M,M),q.fillRect(0,0,M,7*M),q.fillRect(6*M,0,M,7*M),q.fillRect((P-7)*M,0,M,7*M),q.fillRect((P-7+6)*M,0,M,7*M),q.fillRect(0,(P-7)*M,M,7*M),q.fillRect(6*M,(P-7)*M,M,7*M),q.fillRect(2*M,2*M,3*M,3*M),q.fillRect((P-7+2)*M,2*M,3*M,3*M),q.fillRect(2*M,(P-7+2)*M,3*M,3*M),yt=(null===(w=null===(y=this.options.components)||void 0===y?void 0:y.timing)||void 0===w?void 0:w.scale)||.4,bt=.5*(1-yt),wt=0;wt<P-8;wt+=2)e._drawDot(q,8+wt,6,M,bt,yt),e._drawDot(q,6,8+wt,M,bt,yt);xt=(null===(C=null===(x=this.options.components)||void 0===x?void 0:x.cornerAlignment)||void 0===C?void 0:C.scale)||.4,Ct=.5*(1-xt),e._drawAlign(q,ht,ht,M,Ct,xt,this.options.colorDark,(null===(_=null===(k=this.options.components)||void 0===k?void 0:k.cornerAlignment)||void 0===_?void 0:_.protectors)||!1),kt=(null===(E=null===(A=this.options.components)||void 0===A?void 0:A.alignment)||void 0===E?void 0:E.scale)||.4,_t=.5*(1-kt),At=0;case 124:if(!(At<tt.length)){c.next=148;break}Et=0;case 126:if(!(Et<tt.length)){c.next=145;break}if(It=tt[Et],Tt=tt[At],6!==It||6!==Tt&&Tt!==ht){c.next=133;break}return c.abrupt("continue",142);case 133:if(6!==Tt||6!==It&&It!==ht){c.next=137;break}return c.abrupt("continue",142);case 137:if(It!==ht||Tt!==ht){c.next=141;break}return c.abrupt("continue",142);case 141:e._drawAlign(q,It,Tt,M,_t,kt,this.options.colorDark,(null===(T=null===(I=this.options.components)||void 0===I?void 0:I.alignment)||void 0===T?void 0:T.protectors)||!1);case 142:Et++,c.next=126;break;case 145:At++,c.next=124;break;case 148:if(D&&(q.fillStyle=this.options.backgroundColor,q.fillRect(-R,-R,N,R),q.fillRect(-R,O,N,R),q.fillRect(O,-R,R,N),q.fillRect(-R,-R,R,N)),!this.options.logoImage){c.next=179;break}return c.next=152,v(this.options.logoImage);case 152:Pt=c.sent,St=this.options.logoScale,Bt=this.options.logoMargin,Rt=this.options.logoCornerRadius,(St<=0||St>=1)&&(St=.2),Bt<0&&(Bt=0),Rt<0&&(Rt=0),Lt=Dt=.5*(N-(Ut=O*St)),q.restore(),q.fillStyle=this.options.logoBackgroundColor,q.save(),e._prepareRoundedCornerClip(q,Dt-Bt,Lt-Bt,Ut+2*Bt,Ut+2*Bt,Rt+Bt),q.clip(),Mt=q.globalCompositeOperation,q.globalCompositeOperation="destination-out",q.fill(),q.globalCompositeOperation=Mt,q.restore(),q.save(),e._prepareRoundedCornerClip(q,Dt,Lt,Ut,Ut,Rt),q.clip(),q.drawImage(Pt,Dt,Lt,Ut,Ut),q.restore(),q.save(),q.translate(R,R);case 179:if(!z){c.next=191;break}if(Y.forEach((function(t){Ot||((Ot=new d.a(S,S)).setDelay(t.delay),Ot.setRepeat(0));var e=t.dims,r=e.width,n=e.height;Nt||(Nt=new m(r,n),(jt=Nt.getContext("2d")).rect(0,0,Nt.width,Nt.height),jt.fillStyle="#ffffff",jt.fill()),qt&&Ft&&r===qt.width&&n===qt.height||(qt=new m(r,n),$t=qt.getContext("2d"),Ft=$t.createImageData(r,n)),Ft.data.set(t.patch),$t.putImageData(Ft,0,0),jt.drawImage(qt.getContext("2d").canvas,t.dims.left,t.dims.top);var i=new m(N,N),o=i.getContext("2d");o.drawImage(Nt.getContext("2d").canvas,0,0,N,N),o.rect(0,0,N,N),o.fillStyle=L,o.fill(),o.drawImage(j.getContext("2d").canvas,0,0,N,N);var a=new m(S,S),s=a.getContext("2d");s.drawImage(i.getContext("2d").canvas,0,0,S,S),Ot.addFrame(s.getImageData(0,0,a.width,a.height).data)})),Ot){c.next=183;break}throw new Error("No frames.");case 183:if(Ot.finish(),!b(this.canvas)){c.next=188;break}return zt=Ot.stream().toFlattenUint8Array(),Yt=zt.reduce((function(t,e){return t+String.fromCharCode(e)}),""),c.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(Yt))));case 188:return c.abrupt("return",Promise.resolve(t.from(Ot.stream().toFlattenUint8Array())));case 191:if(F.drawImage(j.getContext("2d").canvas,0,0,N,N),q.drawImage($.getContext("2d").canvas,-R,-R,N,N),Gt=new m(S,S),Gt.getContext("2d").drawImage(j.getContext("2d").canvas,0,0,S,S),this.canvas=Gt,Kt=this.options.gifBackground?"gif":"png",!b(this.canvas)){c.next=200;break}return c.abrupt("return",Promise.resolve(this.canvas.toDataURL(Kt)));case 200:return c.abrupt("return",Promise.resolve(this.canvas.toBuffer(Kt)));case 201:case"end":return c.stop()}}),g,this)})))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,r,n,i,o){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+i,o),t.arcTo(e+n,r+i,e,r+i,o),t.arcTo(e,r+i,e,r,o),t.arcTo(e,r,e+n,r,o),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,r,n={r:0,g:0,b:0},i=-4,o={r:0,g:0,b:0},a=0;r=t.naturalHeight||t.height,e=t.naturalWidth||t.width;var s,l=new m(e,r).getContext("2d");if(!l)return n;l.drawImage(t,0,0);try{s=l.getImageData(0,0,e,r)}catch(t){return n}for(;(i+=20)<s.data.length;)s.data[i]>200||s.data[i+1]>200||s.data[i+2]>200||(++a,o.r+=s.data[i],o.g+=s.data[i+1],o.b+=s.data[i+2]);return o.r=~~(o.r/a),o.g=~~(o.g/a),o.b=~~(o.b/a),o}},{key:"_drawDot",value:function(t,e,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+i)*n,(r+i)*n,o*n,o*n)}},{key:"_drawAlignProtector",value:function(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}},{key:"_drawAlign",value:function(t,r,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=t.fillStyle;t.fillStyle=s,new Array(4).fill(0).map((function(s,l){e._drawDot(t,r-2+l,n-2,i,o,a),e._drawDot(t,r+2,n-2+l,i,o,a),e._drawDot(t,r+2-l,n+2,i,o,a),e._drawDot(t,r-2,n+2-l,i,o,a)})),e._drawDot(t,r,n,i,o,a),l||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(s,l){e._drawDot(t,r-1+l,n-1,i,o,a),e._drawDot(t,r+1,n-1+l,i,o,a),e._drawDot(t,r+1-l,n+1,i,o,a),e._drawDot(t,r-1,n+1-l,i,o,a)}))),t.fillStyle=u}}]),e}();function b(t){try{return t instanceof HTMLElement}catch(e){return"object"===i()(t)&&1===t.nodeType&&"object"===i()(t.style)&&"object"===i()(t.ownerDocument)}}y.CorrectLevel=p.b,y.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},y.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:p.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:y.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,r(15).Buffer)},function(t,e,r){"use strict";var n=r(11);const{asBuffer:i,asDownload:o,asZipDownload:a,atScale:s,options:l}=n.a,u=Symbol.for("toDataURL"),{CanvasRenderingContext2D:c,CanvasGradient:f,CanvasPattern:h,Image:p,ImageData:d,Path2D:g,DOMMatrix:m,DOMRect:v,DOMPoint:y}=window,b={Canvas:class{constructor(t,e){let r=document.createElement("canvas"),n=[];for(var[c,f]of(Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>i(r,"image/png"),jpg:()=>i(r,"image/jpeg"),pages:()=>n.concat(r).map((t=>t.getContext("2d")))})))Object.defineProperty(r,c,{get:f});return Object.assign(r,{width:t,height:e,newPage(...t){var{width:e,height:i}=r,o=Object.assign(document.createElement("canvas"),{width:e,height:i});o.getContext("2d").drawImage(r,0,0),n.push(o);var[e,i]=t.length?t:[e,i];return Object.assign(r,{width:e,height:i}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;let r=l(this.pages,{filename:t,...e}),{pattern:n,padding:i,mime:u,quality:c,matte:f,density:h,archive:p}=r,d=s(r.pages,h);return null==i?o(d[0],u,c,f,t):a(d,u,c,f,p,n,i)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;let r=l(this.pages,{extension:t,...e}),{mime:n,quality:o,matte:a,pages:u,density:c}=r,f=s(u,c,a)[0];return i(f,n,o,a)},[u]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;let n=l(this.pages,{extension:t,...e}),{mime:i,quality:o,matte:a,pages:c,density:f}=n,h=s(c,f,a)[0],p=h[h===r?u:"toDataURL"](i,o);return Promise.resolve(p)}})}},loadImage:t=>new Promise(((e,r)=>Object.assign(new p,{crossOrigin:"Anonymous",onload:e,onerror:r,src:t}))),CanvasRenderingContext2D:c,CanvasGradient:f,CanvasPattern:h,Image:p,ImageData:d,Path2D:g,DOMMatrix:m,DOMRect:v,DOMPoint:y};e.a=b},function(t,e,r){"use strict";(function(t){var n=r(5);class i{constructor(){let e=void 0===t,r="image/png",n="image/jpeg",i="application/pdf",o="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:r,jpg:n,jpeg:"image/jpeg",webp:"image/webp"}:{png:r,jpg:n,jpeg:"image/jpeg",pdf:i,svg:o},mimes:e?{[r]:"png",[n]:"jpg","image/webp":"webp"}:{[r]:"png",[n]:"jpg",[i]:"pdf",[o]:"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class o{static for(t){return(new o).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,r=this.table,n=0,i=0|t.length;n<i;n++)e=e>>>8^r[255&(e^t[n])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),r=new DataView(e.buffer),n={array:e,view:r,size:t,set8:(t,e)=>(r.setUint8(t,e),n),set16:(t,e)=>(r.setUint16(t,e,!0),n),set32:(t,e)=>(r.setUint32(t,e,!0),n),bytes:(t,r)=>(e.set(r,t),n)};return n}o.prototype.table=(()=>{var t,e,r,n=[];for(t=0;t<256;t++){for(r=t,e=0;e<8;e++)r=1&r?r>>>1^3988292384:r>>>1;n[t]=r}return n})();class s{constructor(t){let e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){let r=!e,n=s.encoder.encode(`${this.directory}/${r?"":t}`),i=new Uint8Array(r?0:await e.arrayBuffer()),l=30+n.length,u=l+i.length,{offset:c}=this,f=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,o.for(i)).set32(14,i.length).set32(18,i.length).set16(22,n.length);c+=l;let h=a(l+i.length+16).set32(0,67324752).bytes(4,f.array).bytes(30,n).bytes(l,i);c+=i.length,h.set32(u,134695760).bytes(u+4,f.array.slice(10,22)),c+=16,this.files.push({offset:c,folder:r,name:n,header:f,payload:h}),this.offset=c}toBuffer(){let t=this.files.reduce(((t,{name:e})=>46+e.length+t),0),e=a(t+22),r=0;for(var{offset:n,name:i,header:o,folder:s}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,o.array).set8(r+38,s?16:0).set32(r+42,n).bytes(r+46,i),r+=46+i.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let l=new Uint8Array(this.offset+e.size),u=0;for(var{payload:c}of this.files)l.set(c.array,u),u+=c.size;return l.set(e.array,u),l}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}s.encoder=new TextEncoder;const l=(t,e,r,n)=>{if(n){let{width:e,height:r}=t,i=Object.assign(document.createElement("canvas"),{width:e,height:r}),o=i.getContext("2d");o.fillStyle=n,o.fillRect(0,0,e,r),o.drawImage(t,0,0),t=i}return new Promise(((n,i)=>t.toBlob(n,e,r)))},u=(t,e)=>{const r=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout((()=>window.URL.revokeObjectURL(r)),100)},c={asBuffer:(...t)=>l(...t).then((t=>t.arrayBuffer())),asDownload:async(t,e,r,n,i)=>{u(i,await l(t,e,r,n))},asZipDownload:async(t,e,r,i,o,a,c)=>{let f=Object(n.a)(o,".zip")||"archive",h=new s(f);await Promise.all(t.map((async(t,n)=>{let o=(t=>a.replace("{}",String(t+1).padStart(c,"0")))(n);await h.add(o,await l(t,e,r,i))}))),u(f+".zip",h.blob)},atScale:(t,e,r)=>t.map((t=>{if(1==e&&!r)return t.canvas;let n=document.createElement("canvas"),i=n.getContext("2d"),o=t.canvas?t.canvas:t;return n.width=o.width*e,n.height=o.height*e,r&&(i.fillStyle=r,i.fillRect(0,0,n.width,n.height)),i.scale(e,e),i.drawImage(o,0,0),n})),options:function(t,{filename:e="",extension:r="",format:o,page:a,quality:s,matte:l,density:u,outline:c,archive:f}={}){var{fromMime:h,toMime:p,expected:d}=new i,g=(f=f||"canvas",o||r.replace(/@\d+x$/i,"")||Object(n.b)(e)),m=(o=h(p(g)||g),p(o)),v=t.length;if(!g)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!o)throw new Error(`Unsupported file format "${g}" (expected ${d})`);if(!v)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let y,b,w=e.replace(/{(\d*)}/g,((t,e)=>(b=!0,e=parseInt(e,10),y=isFinite(e)?e:isFinite(y)?y:-1,"{}"))),x=a>0?a-1:a<0?v+a:void 0;if(isFinite(x)&&x<0||x>=v)throw new RangeError(1==v?`Canvas only has a ‘page 1’ (${x} is out of bounds)`:`Canvas has pages 1–${v} (${x} is out of bounds)`);if(t=isFinite(x)?[t[x]]:b||"pdf"==o?t:t.slice(-1),void 0===s)s=.92;else if("number"!=typeof s||!isFinite(s)||s<0||s>1)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===u){let t=(r||Object(n.a)(e,g)).match(/@(\d+)x$/i);u=t?parseInt(t[1],10):1}else if("number"!=typeof u||!Number.isInteger(u)||u<1)throw new TypeError("The density option must be a non-negative integer");return void 0===c?c=!0:"svg"==o&&(c=!!c),{filename:e,pattern:w,format:o,mime:m,pages:t,padding:y,quality:s,matte:l,density:u,outline:c,archive:f}}};e.a=c}).call(this,r(8))},function(t,e,r){"use strict";var n=function(t,e){var r,n,i,o,a;function s(t,e,n,i,o){r[e][0]-=t*(r[e][0]-n)/1024,r[e][1]-=t*(r[e][1]-i)/1024,r[e][2]-=t*(r[e][2]-o)/1024}function l(t,e,n,i,o){for(var s,l,u=Math.abs(e-t),c=Math.min(e+t,256),f=e+1,h=e-1,p=1;f<c||h>u;)l=a[p++],f<c&&((s=r[f++])[0]-=l*(s[0]-n)/(1<<18),s[1]-=l*(s[1]-i)/(1<<18),s[2]-=l*(s[2]-o)/(1<<18)),h>u&&((s=r[h--])[0]-=l*(s[0]-n)/(1<<18),s[1]-=l*(s[1]-i)/(1<<18),s[2]-=l*(s[2]-o)/(1<<18))}function u(t,e,n){var a,s,l,u,c,f=~(1<<31),h=f,p=-1,d=p;for(a=0;a<256;a++)s=r[a],(l=Math.abs(s[0]-t)+Math.abs(s[1]-e)+Math.abs(s[2]-n))<f&&(f=l,p=a),(u=l-(i[a]>>12))<h&&(h=u,d=a),c=o[a]>>10,o[a]-=c,i[a]+=c<<10;return o[p]+=64,i[p]-=65536,d}this.buildColormap=function(){!function(){var t,e;for(r=[],n=new Int32Array(256),i=new Int32Array(256),o=new Int32Array(256),a=new Int32Array(32),t=0;t<256;t++)e=(t<<12)/256,r[t]=new Float64Array([e,e,e,0]),o[t]=256,i[t]=0}(),function(){var r,n,i,o,c,f,h=t.length,p=30+(e-1)/3,d=h/(3*e),g=~~(d/100),m=1024,v=2048,y=v>>6;for(y<=1&&(y=0),r=0;r<y;r++)a[r]=m*(256*(y*y-r*r)/(y*y));h<1509?(e=1,n=3):n=h%499!=0?1497:h%491!=0?1473:h%487!=0?1461:1509;var b=0;for(r=0;r<d;)if(s(m,f=u(i=(255&t[b])<<4,o=(255&t[b+1])<<4,c=(255&t[b+2])<<4),i,o,c),0!==y&&l(y,f,i,o,c),(b+=n)>=h&&(b-=h),0===g&&(g=1),++r%g==0)for(m-=m/p,(y=(v-=v/30)>>6)<=1&&(y=0),f=0;f<y;f++)a[f]=m*(256*(y*y-f*f)/(y*y))}(),function(){for(var t=0;t<256;t++)r[t][0]>>=4,r[t][1]>>=4,r[t][2]>>=4,r[t][3]=t}(),function(){var t,e,i,o,a,s,l=0,u=0;for(t=0;t<256;t++){for(a=t,s=(i=r[t])[1],e=t+1;e<256;e++)(o=r[e])[1]<s&&(a=e,s=o[1]);if(o=r[a],t!=a&&(e=o[0],o[0]=i[0],i[0]=e,e=o[1],o[1]=i[1],i[1]=e,e=o[2],o[2]=i[2],i[2]=e,e=o[3],o[3]=i[3],i[3]=e),s!=l){for(n[l]=u+t>>1,e=l+1;e<s;e++)n[e]=t;l=s,u=t}}for(n[l]=u+255>>1,e=l+1;e<256;e++)n[e]=255}()},this.getColormap=function(){for(var t=[],e=[],n=0;n<256;n++)e[r[n][3]]=n;for(var i=0,o=0;o<256;o++){var a=e[o];t[i++]=r[a][0],t[i++]=r[a][1],t[i++]=r[a][2]}return t},this.lookupRGB=function(t,e,i){for(var o,a,s,l=1e3,u=-1,c=n[e],f=c-1;c<256||f>=0;)c<256&&((s=(a=r[c])[1]-e)>=l?c=256:(c++,s<0&&(s=-s),(o=a[0]-t)<0&&(o=-o),(s+=o)<l&&((o=a[2]-i)<0&&(o=-o),(s+=o)<l&&(l=s,u=a[3])))),f>=0&&((s=e-(a=r[f])[1])>=l?f=-1:(f--,s<0&&(s=-s),(o=a[0]-t)<0&&(o=-o),(s+=o)<l&&((o=a[2]-i)<0&&(o=-o),(s+=o)<l&&(l=s,u=a[3]))));return u}},i=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],o=function(t,e,r,n){var o,a,s,l,u,c,f,h,p,d=Math.max(2,n),g=new Uint8Array(256),m=new Int32Array(5003),v=new Int32Array(5003),y=0,b=0,w=!1;function x(t,e){g[a++]=t,a>=254&&_(e)}function C(t){k(5003),b=u+2,w=!0,I(u,t)}function k(t){for(var e=0;e<t;++e)m[e]=-1}function _(t){a>0&&(t.writeByte(a),t.writeBytes(g,0,a),a=0)}function A(t){return(1<<t)-1}function E(){return 0===f?-1:(--f,255&r[h++])}function I(t,e){for(o&=i[y],y>0?o|=t<<y:o=t,y+=p;y>=8;)x(255&o,e),o>>=8,y-=8;if((b>s||w)&&(w?(s=A(p=l),w=!1):(++p,s=12==p?4096:A(p))),t==c){for(;y>0;)x(255&o,e),o>>=8,y-=8;_(e)}}this.encode=function(r){r.writeByte(d),f=t*e,h=0,function(t,e){var r,n,i,o,f,h;for(w=!1,s=A(p=l=t),c=1+(u=1<<t-1),b=u+2,a=0,o=E(),h=0,r=5003;r<65536;r*=2)++h;h=8-h,k(5003),I(u,e);t:for(;-1!=(n=E());)if(r=(n<<12)+o,m[i=n<<h^o]!==r){if(m[i]>=0){f=5003-i,0===i&&(f=1);do{if((i-=f)<0&&(i+=5003),m[i]===r){o=v[i];continue t}}while(m[i]>=0)}I(o,e),o=n,b<4096?(v[i]=b++,m[i]=r):C(e)}else o=v[i];I(o,e),I(c,e)}(d+1,r),r.writeByte(0)}};function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var s=0;s<256;s++)a.charMap[s]=String.fromCharCode(s);function l(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var r=0;r<a.pageSize;r++)t+=a.charMap[this.pages[e][r]];return t},a.prototype.toFlattenUint8Array=function(){for(var t=[],e=0;e<this.pages.length;e++)if(e===this.pages.length-1){var r=Uint8Array.from(this.pages[e].slice(0,this.cursor));t.push(r)}else t.push(this.pages[e]);var n=new Uint8Array(t.reduce((function(t,e){return t+e.length}),0));return t.reduce((function(t,e){return n.set(e,t),t+e.length}),0),n},a.prototype.writeByte=function(t){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r<e;r++)this.writeByte(t.charCodeAt(r))},a.prototype.writeBytes=function(t,e,r){for(var n=r||t.length,i=e||0;i<n;i++)this.writeByte(t[i])},l.prototype.setDelay=function(t){this.delay=Math.round(t/10)},l.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},l.prototype.setDispose=function(t){t>=0&&(this.dispose=t)},l.prototype.setRepeat=function(t){this.repeat=t},l.prototype.setTransparent=function(t){this.transparent=t},l.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),this.repeat>=0&&this.writeNetscapeExt()),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},l.prototype.finish=function(){this.out.writeByte(59)},l.prototype.setQuality=function(t){t<1&&(t=1),this.sample=t},l.prototype.setDither=function(t){!0===t&&(t="FloydSteinberg"),this.dither=t},l.prototype.setGlobalPalette=function(t){this.globalPalette=t},l.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},l.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},l.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},l.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n<e;n++){var i=this.findClosestRGB(255&this.pixels[r++],255&this.pixels[r++],255&this.pixels[r++]);this.usedEntry[i]=!0,this.indexedPixels[n]=i}},l.prototype.ditherPixels=function(t,e){var r={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[2/8,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!r[t])throw"Unknown dithering kernel: "+t;var n=r[t],i=0,o=this.height,a=this.width,s=this.pixels,l=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var u=0;u<o;u++){e&&(l*=-1);for(var c=1==l?0:a-1,f=1==l?a:0;c!==f;c+=l){var h=3*(i=u*a+c),p=s[h],d=s[h+1],g=s[h+2];h=this.findClosestRGB(p,d,g),this.usedEntry[h]=!0,this.indexedPixels[i]=h,h*=3;for(var m=p-this.colorTab[h],v=d-this.colorTab[h+1],y=g-this.colorTab[h+2],b=1==l?0:n.length-1,w=1==l?n.length:0;b!==w;b+=l){var x=n[b][1],C=n[b][2];if(x+c>=0&&x+c<a&&C+u>=0&&C+u<o){var k=n[b][0];h=i+x+C*a,s[h*=3]=Math.max(0,Math.min(255,s[h]+m*k)),s[h+1]=Math.max(0,Math.min(255,s[h+1]+v*k)),s[h+2]=Math.max(0,Math.min(255,s[h+2]+y*k))}}}}},l.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},l.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var i=0,o=16777216,a=this.colorTab.length,s=0,l=0;s<a;l++){var u=t-(255&this.colorTab[s++]),c=e-(255&this.colorTab[s++]),f=r-(255&this.colorTab[s++]),h=u*u+c*c+f*f;(!n||this.usedEntry[l])&&h<o&&(o=h,i=l)}return i},l.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var r=this.image,n=0,i=0,o=0;o<e;o++)for(var a=0;a<t;a++)this.pixels[i++]=r[n++],this.pixels[i++]=r[n++],this.pixels[i++]=r[n++],n++},l.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),null===this.transparent?(t=0,e=0):(t=1,e=2),this.dispose>=0&&(e=7&this.dispose),e<<=2,this.out.writeByte(0|e|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},l.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},l.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},l.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},l.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},l.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},l.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},l.prototype.stream=function(){return this.out},e.a=l},function(t,e,r){t.exports=r(20)},function(t,e,r){var n=r(2).default;function i(){"use strict";
  2. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=i=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,o=Object.create(i.prototype),a=new E(n||[]);return o._invoke=function(t,e,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return T()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=k(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=h(t,e,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===p)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(t,r,a),o}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p={};function d(){}function g(){}function m(){}var v={};c(v,s,(function(){return this}));var y=Object.getPrototypeOf,b=y&&y(y(I([])));b&&b!==r&&o.call(b,s)&&(v=b);var w=m.prototype=d.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function C(t,e){var r;this._invoke=function(i,a){function s(){return new e((function(r,s){!function r(i,a,s,l){var u=h(t[i],t,a);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==n(f)&&o.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,s,l)}),(function(t){r("throw",t,s,l)})):e.resolve(f).then((function(t){c.value=t,s(c)}),(function(t){return r("throw",t,s,l)}))}l(u.arg)}(i,a,r,s)}))}return r=r?r.then(s,s):s()}}function k(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,k(t,e),"throw"===e.method))return p;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=h(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,p;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function _(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 A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(_,this),this.reset(!0)}function I(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:T}}function T(){return{value:void 0,done:!0}}return g.prototype=m,c(w,"constructor",m),c(m,"constructor",g),g.displayName=c(m,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,c(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(C.prototype),c(C.prototype,l,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new C(f(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(w),c(w,u,"Generator"),c(w,s,(function(){return this})),c(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=I,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(a)},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),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;A(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:I(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},e}t.exports=i,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){
  3. /*!
  4. * The buffer module from node.js, for the browser.
  5. *
  6. * @author Feross Aboukhadijeh <http://feross.org>
  7. * @license MIT
  8. */
  9. var n=r(16),i=r(17),o=r(18);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,r){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(t,e,r);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return f(this,t)}return u(this,t,e,r)}function u(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,r,n){if(e.byteLength,r<0||e.byteLength<r)throw new RangeError("'offset' is out of bounds");if(e.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return e=void 0===r&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,r):new Uint8Array(e,r,n),l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=h(t,e),t}(t,e,r,n):"string"==typeof e?function(t,e,r){if("string"==typeof r&&""!==r||(r="utf8"),!l.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(e,r),i=(t=s(t,n)).write(e,r);return i!==n&&(t=t.slice(0,i)),t}(t,e,r):function(t,e){if(l.isBuffer(e)){var r=0|p(e.length);return 0===(t=s(t,r)).length||e.copy(t,0,0,r),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(n=e.length)!=n?s(t,0):h(t,e);if("Buffer"===e.type&&o(e.data))return h(t,e.data)}var n;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function f(t,e){if(c(e),t=s(t,e<0?0:0|p(e)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function h(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function d(t,e){if(l.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var r=t.length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return q(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(n)return q(t).length;e=(""+e).toLowerCase(),n=!0}}function g(t,e,r){var n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,r);case"utf8":case"utf-8":return E(this,e,r);case"ascii":return I(this,e,r);case"latin1":case"binary":return T(this,e,r);case"base64":return A(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function m(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function v(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:y(t,e,r,n,i);if("number"==typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):y(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function y(t,e,r,n,i){var o,a=1,s=t.length,l=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,r/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=r;o<s;o++)if(u(t,o)===u(e,-1===c?0:o-c)){if(-1===c&&(c=o),o-c+1===l)return c*a}else-1!==c&&(o-=o-c),c=-1}else for(r+l>s&&(r=s-l),o=r;o>=0;o--){for(var f=!0,h=0;h<l;h++)if(u(t,o+h)!==u(e,h)){f=!1;break}if(f)return o}return-1}function b(t,e,r,n){r=Number(r)||0;var i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[r+a]=s}return a}function w(t,e,r,n){return F(q(e,t.length-r),t,r,n)}function x(t,e,r,n){return F(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function C(t,e,r,n){return x(t,e,r,n)}function k(t,e,r,n){return F($(e),t,r,n)}function _(t,e,r,n){return F(function(t,e){for(var r,n,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)r=t.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function A(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function E(t,e,r){r=Math.min(t.length,r);for(var n=[],i=e;i<r;){var o,a,s,l,u=t[i],c=null,f=u>239?4:u>223?3:u>191?2:1;if(i+f<=r)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(o=t[i+1]))&&(l=(31&u)<<6|63&o)>127&&(c=l);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(l=(15&u)<<12|(63&o)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var r="",n=0;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=4096));return r}(n)}function I(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function T(t,e,r){var n="";r=Math.min(t.length,r);for(var i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function P(t,e,r){var n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);for(var i="",o=e;o<r;++o)i+=j(t[o]);return i}function S(t,e,r){for(var n=t.slice(e,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function B(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,r,n,i,o){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function U(t,e,r,n){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-r,2);i<o;++i)t[r+i]=(e&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function D(t,e,r,n){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-r,4);i<o;++i)t[r+i]=e>>>8*(n?i:3-i)&255}function L(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function M(t,e,r,n,o){return o||L(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function O(t,e,r,n,o){return o||L(t,0,r,8),i.write(t,e,r,n,52,8),r+8}e.Buffer=l,e.SlowBuffer=function(t){return+t!=t&&(t=0),l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,r){return u(null,t,e,r)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,r){return function(t,e,r,n){return c(e),e<=0?s(t,e):void 0!==r?"string"==typeof n?s(t,e).fill(r,n):s(t,e).fill(r):s(t,e)}(null,t,e,r)},l.allocUnsafe=function(t){return f(null,t)},l.allocUnsafeSlow=function(t){return f(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;var n=l.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){var a=t[r];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(n,i),i+=a.length}return n},l.byteLength=d,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)m(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)m(this,e,e+3),m(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)m(this,e,e+7),m(this,e+1,e+6),m(this,e+2,e+5),m(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?E(this,0,t):g.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,r,n,i){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(n,i),c=t.slice(e,r),f=0;f<s;++f)if(u[f]!==c[f]){o=u[f],a=c[f];break}return o<a?-1:a<o?1:0},l.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return v(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return v(this,t,e,r,!1)},l.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return b(this,t,e,r);case"utf8":case"utf-8":return w(this,t,e,r);case"ascii":return x(this,t,e,r);case"latin1":case"binary":return C(this,t,e,r);case"base64":return k(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){var r,n=this.length;if((t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(t,e)).__proto__=l.prototype;else{var i=e-t;r=new l(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+t]}return r},l.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n},l.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t+--e],i=1;e>0&&(i*=256);)n+=this[t+--e]*i;return n},l.prototype.readUInt8=function(t,e){return e||B(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||B(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||B(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||B(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||B(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=this[t],i=1,o=0;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||B(t,e,this.length);for(var n=e,i=1,o=this[t+--n];n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return e||B(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||B(t,2,this.length);var r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(t,e){e||B(t,2,this.length);var r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(t,e){return e||B(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||B(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||B(t,4,this.length),i.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||B(t,4,this.length),i.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||B(t,8,this.length),i.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||B(t,8,this.length),i.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},l.prototype.writeUIntBE=function(t,e,r,n){t=+t,e|=0,r|=0,n||R(this,t,e,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<r&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e|=0,!n){var i=Math.pow(2,8*r-1);R(this,t,e,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):U(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):U(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,r){return M(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return M(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return O(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return O(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);var i,o=n-r;if(this===t&&r<e&&e<n)for(i=o-1;i>=0;--i)t[i+e]=this[i+r];else if(o<1e3||!l.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+o),e);return o},l.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;var o;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(o=e;o<r;++o)this[o]=t;else{var a=l.isBuffer(t)?t:q(new l(t,n).toString()),s=a.length;for(o=0;o<r-e;++o)this[o+e]=a[o%s]}return this};var N=/[^+\/0-9A-Za-z-_]/g;function j(t){return t<16?"0"+t.toString(16):t.toString(16)}function q(t,e){var r;e=e||1/0;for(var n=t.length,i=null,o=[],a=0;a<n;++a){if((r=t.charCodeAt(a))>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $(t){return n.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(N,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,r,n){for(var i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}}).call(this,r(8))},function(t,e,r){"use strict";e.byteLength=function(t){var e=u(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,n=u(t),a=n[0],s=n[1],l=new o(function(t,e,r){return 3*(e+r)/4-r}(0,a,s)),c=0,f=s>0?a-4:a;for(r=0;r<f;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,l[c++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e),l},e.fromByteArray=function(t){for(var e,r=t.length,i=r%3,o=[],a=0,s=r-i;a<s;a+=16383)o.push(c(t,a,a+16383>s?s:a+16383));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")};for(var n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function c(t,e,r){for(var i,o,a=[],s=e;s<r;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){
  10. /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
  11. e.read=function(t,e,r,n,i){var o,a,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,f=r?i-1:0,h=r?-1:1,p=t[e+f];for(f+=h,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t[e+f],f+=h,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=n;c>0;a=256*a+t[e+f],f+=h,c-=8);if(0===o)o=1-u;else{if(o===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,n),o-=u}return(p?-1:1)*a*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var a,s,l,u=8*o-i-1,c=(1<<u)-1,f=c>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:o-1,d=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+f>=1?h/l:h*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(e*l-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[r+p]=255&s,p+=d,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[r+p]=255&a,p+=d,a/=256,u-=8);t[r+p-d]|=128*g}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r,n,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(t){n=a}}();var l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++f<e;)l&&l[f].run();f=-1,e=u.length}l=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new d(t,e)),1!==u.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,r){"use strict";r.r(e);var n=r(6),i=r.n(n),o=r(3),a=r.n(o);function s(t){return""===t?t:"true"===t||"1"==t}var l=function(t,e){return new Promise((function(e,r){var n=new XMLHttpRequest;n.responseType="blob",n.onload=function(){var t=new FileReader;t.onloadend=function(){e(t.result)},t.readAsArrayBuffer(n.response)},n.open("GET",t),n.send()}))},u=r(9),c=function(t,e,r,n,i,o,a,s){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=r,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(l=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(a)},u._ssrRegister=l):i&&(l=s?function(){i.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,l):[l]}return{exports:t,options:u}}({props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:function(){return{imgUrl:""}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.main()},methods:{main:function(){var t=this;return i()(a.a.mark((function e(){var r,n,i,o;return a.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.gifBgSrc){e.next=7;break}return e.next=3,l(t.gifBgSrc);case 3:return r=e.sent,n=t.logoSrc,t.render(void 0,n,r),e.abrupt("return");case 7:i=t.bgSrc,o=t.logoSrc,t.render(i,o);case 10:case"end":return e.stop()}}),e)})))()},render:function(t,e,r){var n=this;return i()(a.a.mark((function i(){var o;return a.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=n,new u.a({gifBackground:r,text:o.text,size:o.size,margin:o.margin,colorDark:o.colorDark,colorLight:o.colorLight,backgroundColor:o.backgroundColor,backgroundImage:t,backgroundDimming:o.backgroundDimming,logoImage:e,logoScale:o.logoScale,logoBackgroundColor:o.logoBackgroundColor,correctLevel:o.correctLevel,logoMargin:o.logoMargin,logoCornerRadius:o.logoCornerRadius,whiteMargin:s(o.whiteMargin),dotScale:o.dotScale,autoColor:s(o.autoColor),binarize:s(o.binarize),binarizeThreshold:o.binarizeThreshold,components:o.components}).draw().then((function(t){n.imgUrl=t,o.callback&&o.callback(t,o.qid)}));case 2:case"end":return i.stop()}}),i)})))()}}},(function(){var t=this.$createElement,e=this._self._c||t;return this.bindElement?e("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()}),[],!1,null,null,null).exports;c.install=function(t){return t.component(c.name,c)};var f=c,h=[f];"undefined"!=typeof window&&window.Vue&&function(t){h.map((function(e){t.component(e.name,e)}))}(window.Vue),e.default=f}])}))},5080:function(t,e,r){"use strict";t.exports=r.p+"assets/img/logo.e8099414.png"}}]);