vendor.js 430 KB

12345678
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"0676":function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"0714":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965}},"110f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAHDklEQVR4Xs1bfYhVRRQ/565uGSomWX8kFQlhmq28ObOsq0mitiFhYiSVUFFa4T+aEIaE2hdKkUYQfWBlJaWpRQlZoSmEtrt37t21WrOMRJCiDJfUlF323ROjd2Vddt+dmTvv7Q68v+45v3POb2bOfJx5CBVoR48evby9vf1GZta/cQAwPv31tn4EAL4MgmB/oVA4UQHXAMtpJI7jWUmS3AMA+jfGxhYz7waA/Yi4hYgO2+jayHonoKWlZVSxWFyUBl1n40w/skUA2MrMW6WUX3jAuwTCKwFKqXkAsBoAJvt2VOMhYlgsFlfV1tZ+5QvfCwG615MkWc3My3w5loGzkojW+rCVmwClVAEA3ilXr5cIcjszr5BS/p6HiFwExHE8PUmSDwHgujxO5NBtC4JgQaFQOOSK4UxAGIZzgiDYzMxXuhr3pJeLBCcCdLJj5u2IWOUpiLwwziRYE5Auc3sHYM5nkdQybNiw6RMnTjyTJdjzuzUBURRtqGC2t4lFy64lopU2SlYEpOv8ZzYGKi2LiNOFEN+Z2rUiIIqikJnJFHwg5BBxlxBijqltYwLCMHwQEd83BS4htw0AtgVB0NbZ2Xlcy1VXV49NkmQiANyb/vKaeZiIjHw1JkAppRPf7Tk8WwcAHxHRj6UwmpqaplRVVT2Zhwhm3imlnGviqxEBURTNZ+YdJoD9yCwgIt3zxi0MwzWIqM8VTi0IgsmFQuFglrIRAUqpnQBwVxaYr+C7ccIwnI2I3zjafZ6IVmXpZhLAzFVxHJ9w3PFZ93xvh5VS+tDzdFYgvb8j4iEhhM4rJVsmAXEcT0mS5EAWUO/vzLxBSrncVq+3fBzHY5Ik+R4A9E2SVWPmOVLKXaWUMglQSi0FgFetLAOcHjp06ISamprzWT5vU0otAYDXHXAyN0aZBERRpA88Cy2N7yOiGZY6/Yq3trZe29XV5ULmB0T0UK4REIbhAUScYhMMMz8rpVxjo5MlG0XRQWa+NUuu53dm3iOlnJWLAKWUXrdvsTS8SEqpL0m8NaXUJw57g8NEdHNeAo7ZXngg4p1CiK+9RQ8AYRiuR0S9QTJuzHxaSjkyFwFRFJ20XQKZeYaUcp+xpwaCjqfQf4io5HV8ZhIMw7DL9uKjHAQopfQpVN8627T9RDQt1whQSv0EAJkbil7Jx3sSVEr9ZrsXQMR3hRCP5iVgIwCUBOnDQBsRWSXOUk4qpXQp7Webrtey6a3xS3kJeAIA3rA1joiPCyHettXrS951OxwEwd2FQqFkNSkzBzQ3N9frYqVDIBER5b48SesOeit+ma0PzDxeSvlLrhGwd+/e4cOHDz+GiKNtHdAXH0S0wEHvoorLRqxbmYgyOzhTQIMppTYDgO12+LwfeXaFOe8EPiaiB7LINyIgiqKFzKxJcGqIuAkRXzat4Ohhz8xPIeJ9TgYvED9PSvl5lr4RAW1tbaPPnj17xHEadPtwSh+Ri8Xip3V1dT/0k+wmAYDuNb3js57zPTD/6+zsHFNfX3/OCwF5p0EfTuxj5uOIqE94IxFxbHrQuSHLYZPviPieEOIRI1kTIS2TdxqY2vEhx8z3Sym3mGAZTQEN5GkamPiUSwYR/+jo6JhUX19/0gTImAANFobhm3qDYwI8UDK2q44VAU1NTTVVVVXNupYxUAGWsqt7X1euiOhPU/+sCEiTob4f1PeEg67Z9r4OwJqA1tbWm7q6ukKdvQcTAy6970RAmgvWIeKKwUSAS+87E6CU0m+C9Ci4ejCQ4Nr7zgSkoyBX7c4nca69n4uANCHqut1sn8HYYjGzKhaLM+vq6k7Z6uYmoLGxsW7IkCF7AOAKF+OedBqIyLWAar8K9HY6juPlSZK84ikYW5jVRPScrVJPeetlsC9jURTtYOb5eRyx1WXmXVJK46cw/eF7ISCO4wlJknwLANfYBuIo387MM6WULY76F9W8EKDRoihazMxeLkENglpCRNYXtX3heiMgXRU2AUDJaqxBcFkimRXfLADvOaAbUCl1FQDot/zCxglTWWZura6ubqipqfnbVCdLzusISKfCbcysSfC9NOoSXYMQQucab807ASkJjzHzW968vAC0lIhe84yZfx/Qn0NhGG5ARF//INlIRIt9B6/xyjICeuQEPRUacjreSERWL1Rs7JWVgCiK9OuMXcx8vY1TPWTPdHR0jJs6daq3pNfbj7ISoI01NzfPD4LA6ZVpkiRza2tr9SPNsrWyE5AmxWW6KGITBSK+KIR4xkbHRbYiBKQkrGdmozc+iLhbCFGRY3bFCEhJ0H9103+jLdUy3/W49HR/OhUlQJfaR4wYoe8PaksEMYqI/vUZZCmsihKgHUmfu+gH0Jc8eGLmv4IguEMI0WfhtFyEVJyA7kB0rREAZjHzKET89dy5cy9MmzbtdLkC7Q/3fxMowF8w/lVXAAAAAElFTkSuQmCC"},"11b0":function(e,t){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},1340:function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("4b0b")),a=n(r("2957")),o=n(r("dc32")),s=n(r("86c8")),l=n(r("ab2a")),c=n(r("2ed4")),u=n(r("ac2a")),f=n(r("e27a")),h=n(r("5ae5")),d=n(r("a342")),p=n(r("23d9")),g=n(r("6a7f")),v=n(r("6a11")),y=n(r("2ed8")),x=n(r("5084")),m=n(r("eea4")),b=n(r("4da9")),_=n(r("6091")),w=n(r("6b02")),A=n(r("cbeb")),S=r("f471"),k=n(r("bcde")),T=n(r("1407")),P=n(r("fbb2")),C=n(r("7cdc")),O=n(r("0714"));var L={queryParams:o.default,route:s.default,timeFormat:l.default,date:l.default,timeFrom:c.default,colorGradient:u.default.colorGradient,colorToRgba:u.default.colorToRgba,guid:f.default,color:h.default,sys:S.sys,os:S.os,type2icon:d.default,randomArray:p.default,wranning:function(e){0},get:a.default.get,post:a.default.post,put:a.default.put,delete:a.default.delete,hexToRgb:u.default.hexToRgb,rgbToHex:u.default.rgbToHex,test:x.default,random:m.default,deepClone:g.default,deepMerge:v.default,getParent:w.default,$parent:A.default,addUnit:y.default,trim:b.default,type:["primary","success","error","warning","info"],http:a.default,toast:_.default,config:C.default,zIndex:O.default,debounce:k.default,throttle:T.default,addStyle:P.default};e.$u=L;var D={install:function(e){e.mixin(i.default),e.prototype.openShare&&e.mixin(mpShare),e.filter("timeFormat",(function(e,t){return(0,l.default)(e,t)})),e.filter("date",(function(e,t){return(0,l.default)(e,t)})),e.filter("timeFrom",(function(e,t){return(0,c.default)(e,t)})),e.prototype.$u=L}};t.default=D}).call(this,r("543d")["default"])},1407:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=[],i=[];var a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"default";n[a]||(n[a]=null),r?i[a]||(i[a]=!0,"function"===typeof e&&e(),n[a]=setTimeout((function(){i[a]=!1}),t)):i[a]||(i[a]=!0,n[a]=setTimeout((function(){i[a]=!1,"function"===typeof e&&e()}),t))};t.default=a},"190c":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={errorImg:null,filter:null,highlight:null,onText:null,entities:{quot:'"',apos:"'",semi:";",nbsp:" ",ensp:" ",emsp:" ",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},blankChar:n(" , ,\t,\r,\n,\f"),boolAttrs:n("allowfullscreen,autoplay,autostart,controls,ignore,loop,muted"),blockTags:n("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:n("area,base,canvas,frame,iframe,input,link,map,meta,param,script,source,style,svg,textarea,title,track,wbr"),richOnlyTags:n("a,colgroup,fieldset,legend"),selfClosingTags:n("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),trustTags:n("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),userAgentStyles:{address:"font-style:italic",big:"display:inline;font-size:1.2em",blockquote:"background-color:#f6f6f6;border-left:3px solid #dbdbdb;color:#6c6c6c;padding:5px 0 5px 10px",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre;overflow:scroll",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",u:"text-decoration:underline"}};function n(e){for(var t=Object.create(null),r=e.split(","),n=r.length;n--;)t[r[n]]=!0;return t}e.canIUse("editor")&&(r.blockTags.pre=void 0,r.ignoreTags.rp=!0,Object.assign(r.richOnlyTags,n("bdi,bdo,caption,rt,ruby")),Object.assign(r.trustTags,n("bdi,bdo,caption,pre,rt,ruby")));var i=r;t.default=i}).call(this,r("bc2e")["default"])},"1af9":function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.base64ToPath=function(t){return new Promise((function(r,n){if("object"===("undefined"===typeof window?"undefined":(0,i.default)(window))&&"document"in window){t=t.split(",");var s=t[0].match(/:(.*?);/)[1],l=atob(t[1]),c=l.length,u=new Uint8Array(c);while(c--)u[c]=l.charCodeAt(c);return r((window.URL||window.webkitURL).createObjectURL(new Blob([u],{type:s})))}var f=t.split(",")[0].match(/data\:\S+\/(\S+);/);f?f=f[1]:n(new Error("base64 error"));var h=function(){return Date.now()+String(o++)}()+"."+f;if("object"!==("undefined"===typeof plus?"undefined":(0,i.default)(plus)))if("object"===("undefined"===typeof e?"undefined":(0,i.default)(e))&&e.canIUse("getFileSystemManager")){d=e.env.USER_DATA_PATH+"/"+h;e.getFileSystemManager().writeFile({filePath:d,data:a(t),encoding:"base64",success:function(){r(d)},fail:function(e){n(e)}})}else n(new Error("not support"));else{var d="_doc/uniapp_temp/"+h;if(!function(e,t){for(var r=e.split("."),n=t.split("."),i=!1,a=0;a<n.length;a++){var o=r[a]-n[a];if(0!==o){i=o>0;break}}return i}("Android"===plus.os.name?"1.9.9.80627":"1.9.9.80472",plus.runtime.innerVersion))return void plus.io.resolveLocalFileSystemURL("_doc",(function(e){e.getDirectory("uniapp_temp",{create:!0,exclusive:!1},(function(e){e.getFile(h,{create:!0,exclusive:!1},(function(e){e.createWriter((function(e){e.onwrite=function(){r(d)},e.onerror=n,e.seek(0),e.writeAsBinary(a(t))}),n)}),n)}),n)}),n);var p=new plus.nativeObj.Bitmap(h);p.loadBase64Data(t,(function(){p.save(d,{},(function(){p.clear(),r(d)}),(function(e){p.clear(),n(e)}))}),(function(e){p.clear(),n(e)}))}}))},t.pathToBase64=function(t){return new Promise((function(r,n){if("object"===("undefined"===typeof window?"undefined":(0,i.default)(window))&&"document"in window){if("function"===typeof FileReader){var a=new XMLHttpRequest;return a.open("GET",t,!0),a.responseType="blob",a.onload=function(){if(200===this.status){var e=new FileReader;e.onload=function(e){r(e.target.result)},e.onerror=n,e.readAsDataURL(this.response)}},a.onerror=n,void a.send()}var o=document.createElement("canvas"),s=o.getContext("2d"),l=new Image;return l.onload=function(){o.width=l.width,o.height=l.height,s.drawImage(l,0,0),r(o.toDataURL()),o.height=o.width=0},l.onerror=n,void(l.src=t)}"object"!==("undefined"===typeof plus?"undefined":(0,i.default)(plus))?"object"===("undefined"===typeof e?"undefined":(0,i.default)(e))&&e.canIUse("getFileSystemManager")?e.getFileSystemManager().readFile({filePath:t,encoding:"base64",success:function(e){r("data:image/png;base64,"+e.data)},fail:function(e){n(e)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(function(e){if(0===e.indexOf("_www")||0===e.indexOf("_doc")||0===e.indexOf("_documents")||0===e.indexOf("_downloads"))return e;if(0===e.indexOf("file://"))return e;if(0===e.indexOf("/storage/emulated/0/"))return e;if(0===e.indexOf("/")){var t=plus.io.convertAbsoluteFileSystem(e);if(t!==e)return t;e=e.substr(1)}return"_www/"+e}(t),(function(e){e.file((function(e){var t=new plus.io.FileReader;t.onload=function(e){r(e.target.result)},t.onerror=function(e){n(e)},t.readAsDataURL(e)}),(function(e){n(e)}))}),(function(e){n(e)}))}))};var i=n(r("7037"));function a(e){var t=e.split(",");return t[t.length-1]}var o=0}).call(this,r("bc2e")["default"])},"1bf8":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t){var r=t.content,n=t.success,i=t.error;if(!r)return i("复制的内容不能为空 !");r="string"===typeof r?r:r.toString(),e.setClipboardData({data:r,success:function(){n("复制成功~"),console.log("success")},fail:function(){n("复制失败~")}})}}).call(this,r("543d")["default"])},2236:function(e,t,r){var n=r("5a43");e.exports=function(e){if(Array.isArray(e))return n(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"23d9":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))};t.default=n},"278c":function(e,t,r){var n=r("c135"),i=r("9b42"),a=r("6613"),o=r("c240");e.exports=function(e,t){return n(e)||i(e,t)||a(e,t)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports},2957:function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("970b")),a=n(r("5bc3")),o=n(r("6a11")),s=n(r("5084")),l=function(){function t(){var e=this;(0,i.default)(this,t),this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"请求中...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({method:"GET",url:t,header:n,data:r})},this.post=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"POST",header:n,data:r})},this.put=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"PUT",header:n,data:r})},this.delete=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"DELETE",header:n,data:r})}}return(0,a.default)(t,[{key:"setConfig",value:function(e){this.config=(0,o.default)(this.config,e)}},{key:"request",value:function(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var n=this.interceptor.request(r);if(!1===n)return new Promise((function(){}));this.options=n}return r.dataType=r.dataType||this.config.dataType,r.responseType=r.responseType||this.config.responseType,r.url=r.url||"",r.params=r.params||{},r.header=Object.assign({},this.config.header,r.header),r.method=r.method||this.config.method,new Promise((function(n,i){r.complete=function(r){if(e.hideLoading(),clearTimeout(t.config.timer),t.config.timer=null,t.config.originalData)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var a=t.interceptor.response(r);!1!==a?n(a):i(r)}else n(r);else if(200==r.statusCode)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var o=t.interceptor.response(r.data);!1!==o?n(o):i(r.data)}else n(r.data);else i(r)},r.url=s.default.url(r.url)?r.url:t.config.baseUrl+(0==r.url.indexOf("/")?r.url:"/"+r.url),t.config.showLoading&&!t.config.timer&&(t.config.timer=setTimeout((function(){e.showLoading({title:t.config.loadingText,mask:t.config.loadingMask}),t.config.timer=null}),t.config.loadingTime)),e.request(r)}))}}]),t}(),c=new l;t.default=c}).call(this,r("543d")["default"])},"2ab2":function(e,t){},"2ed4":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("ab2a"));var a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var r=+new Date(Number(e)),n=(Number(new Date)-r)/1e3,a="";switch(!0){case n<300:a="刚刚";break;case n>=300&&n<3600:a=parseInt(n/60)+"分钟前";break;case n>=3600&&n<86400:a=parseInt(n/3600)+"小时前";break;case n>=86400&&n<2592e3:a=parseInt(n/86400)+"天前";break;default:a=!1===t?n>=2592e3&&n<31536e3?parseInt(n/2592e3)+"个月前":parseInt(n/31536e3)+"年前":(0,i.default)(r,t)}return a};t.default=a},"2ed8":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return e=String(e),i.default.number(e)?"".concat(e).concat(t):e};var i=n(r("5084"))},"2eee":function(e,t,r){var n=r("7ec2")();e.exports=n},"36c6":function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"37dc":function(e,t,r){"use strict";(function(e,n){var i=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.LOCALE_ZH_HANT=t.LOCALE_ZH_HANS=t.LOCALE_FR=t.LOCALE_ES=t.LOCALE_EN=t.I18n=t.Formatter=void 0,t.compileI18nJsonStr=function(e,t){var r=t.locale,n=t.locales,i=t.delimiters;if(!k(e,i))return e;A||(A=new f);var a=[];Object.keys(n).forEach((function(e){e!==r&&a.push({locale:e,values:n[e]})})),a.unshift({locale:r,values:n[r]});try{return JSON.stringify(P(JSON.parse(e),a,i),null,2)}catch(o){}return e},t.hasI18nJson=function e(t,r){A||(A=new f);return C(t,(function(t,n){var i=t[n];return S(i)?!!k(i,r)||void 0:e(i,r)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=w());"string"!==typeof r&&(r="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var a=new b({locale:e,fallbackLocale:r,messages:t,watcher:n}),o=function(e,t){if("function"!==typeof getApp)o=function(e,t){return a.t(e,t)};else{var r=!1;o=function(e,t){var n=getApp().$vm;return n&&(n.$locale,r||(r=!0,_(n,a))),a.t(e,t)}}return o(e,t)};return{i18n:a,f:function(e,t,r){return a.f(e,t,r)},t:function(e,t){return o(e,t)},add:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return a.add(e,t,r)},watch:function(e){return a.watchLocale(e)},getLocale:function(){return a.getLocale()},setLocale:function(e){return a.setLocale(e)}}},t.isI18nStr=k,t.isString=void 0,t.normalizeLocale=m,t.parseI18nJson=function e(t,r,n){A||(A=new f);return C(t,(function(t,i){var a=t[i];S(a)?k(a,n)&&(t[i]=T(a,r,n)):e(a,r,n)})),t},t.resolveLocale=function(e){return function(t){return t?(t=m(t)||t,function(e){var t=[],r=e.split("-");while(r.length)t.push(r.join("-")),r.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var a=i(r("278c")),o=i(r("970b")),s=i(r("5bc3")),l=i(r("7037")),c=function(e){return null!==e&&"object"===(0,l.default)(e)},u=["{","}"],f=function(){function e(){(0,o.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u;if(!t)return[e];var n=this._caches[e];return n||(n=p(e,r),this._caches[e]=n),g(n,t)}}]),e}();t.Formatter=f;var h=/^(?:\d)+/,d=/^(?:\w)+/;function p(e,t){var r=(0,a.default)(t,2),n=r[0],i=r[1],o=[],s=0,l="";while(s<e.length){var c=e[s++];if(c===n){l&&o.push({type:"text",value:l}),l="";var u="";c=e[s++];while(void 0!==c&&c!==i)u+=c,c=e[s++];var f=c===i,p=h.test(u)?"list":f&&d.test(u)?"named":"unknown";o.push({value:u,type:p})}else l+=c}return l&&o.push({type:"text",value:l}),o}function g(e,t){var r=[],n=0,i=Array.isArray(t)?"list":c(t)?"named":"unknown";if("unknown"===i)return r;while(n<e.length){var a=e[n];switch(a.type){case"text":r.push(a.value);break;case"list":r.push(t[parseInt(a.value,10)]);break;case"named":"named"===i&&r.push(t[a.value]);break;case"unknown":0;break}n++}return r}t.LOCALE_ZH_HANS="zh-Hans";t.LOCALE_ZH_HANT="zh-Hant";t.LOCALE_EN="en";t.LOCALE_FR="fr";t.LOCALE_ES="es";var v=Object.prototype.hasOwnProperty,y=function(e,t){return v.call(e,t)},x=new f;function m(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var r=["en","fr","es"];t&&Object.keys(t).length>0&&(r=Object.keys(t));var n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,r);return n||void 0}}var b=function(){function e(t){var r=t.locale,n=t.fallbackLocale,i=t.messages,a=t.watcher,s=t.formater;(0,o.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=s||x,this.messages=i||{},this.setLocale(r||"en"),a&&this.watchLocale(a)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,r=this.locale;this.locale=m(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach((function(e){e(t.locale,r)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,r=this.watchers.push(e)-1;return function(){t.watchers.splice(r,1)}}},{key:"add",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[e];n?r?Object.assign(n,t):Object.keys(t).forEach((function(e){y(n,e)||(n[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,r){return this.formater.interpolate(e,t,r).join("")}},{key:"t",value:function(e,t,r){var n=this.message;return"string"===typeof t?(t=m(t,this.messages),t&&(n=this.messages[t])):r=t,y(n,e)?this.formater.interpolate(n[e],r).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function _(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function w(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof n&&n.getLocale?n.getLocale():"en"}t.I18n=b;var A,S=function(e){return"string"===typeof e};function k(e,t){return e.indexOf(t[0])>-1}function T(e,t,r){return A.interpolate(e,t,r).join("")}function P(e,t,r){return C(e,(function(e,n){(function(e,t,r,n){var i=e[t];if(S(i)){if(k(i,n)&&(e[t]=T(i,r[0].values,n),r.length>1)){var a=e[t+"Locales"]={};r.forEach((function(e){a[e.locale]=T(i,e.values,n)}))}}else P(i,r,n)})(e,n,t,r)})),e}function C(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e,r))return!0}else if(c(e))for(var n in e)if(t(e,n))return!0;return!1}t.isString=S}).call(this,r("543d")["default"],r("c8ba"))},"3af8":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("4482"),i={apicustomerlist:function(e){return(0,n.request)("api/customer/list",e)},apicustomeradd:function(e){return(0,n.request)("api/customer/add",e,"loading")},apicustomeredit:function(e){return(0,n.request)("api/customer/edit",e,"loading")},apicustomerdel:function(e){return(0,n.request)("api/customer/del",e,"loading")},apicustomerdetail:function(e){return(0,n.request)("api/customer/detail",e,"loading")},apireportvisitchange:function(e){return(0,n.request)("api/report/visit/change",e,"loading")},apireportvisitdetail:function(e){return(0,n.request)("api/report/visit/detail",e,"loading")},apireportvisit:function(e){return(0,n.request)("api/report/visit",e,"loading")},apireportverify:function(e){return(0,n.request)("api/report/verify",e,"loading")},apideptuserlist:function(e){return(0,n.request)("api/dept/user/list",e,"loading")},apiprivatecustomerlist:function(e){return(0,n.request)("api/private/customer/list",e)},apiprivatecustomeradd:function(e){return(0,n.request)("api/private/customer/add",e,"loading")},apiprivatecustomeredit:function(e){return(0,n.request)("api/private/customer/edit",e,"loading")},apiprivatecustomerdel:function(e){return(0,n.request)("api/private/customer/del",e,"loading")},apiprivatecustomerdetail:function(e){return(0,n.request)("api/private/customer/detail",e,"loading")},apiprivaterecordlist:function(e){return(0,n.request)("api/private/record/list",e)},apiprivaterecordadd:function(e){return(0,n.request)("api/private/record/add",e,"loading")},apiprivaterecordedit:function(e){return(0,n.request)("api/private/record/edit",e,"loading")},apiprivaterecorddel:function(e){return(0,n.request)("api/private/record/del",e,"loading")},apirecordremindcount:function(e){return(0,n.request)("api/record/remind/count",e,"loading")},apitradelist:function(e){return(0,n.request)("api/trade/list",e)},apitradeadd:function(e){return(0,n.request)("api/trade/add",e,"loading")},apitradeedit:function(e){return(0,n.request)("api/trade/edit",e,"loading")},apitradedetail:function(e){return(0,n.request)("api/trade/detail",e,"loading")},apitradedel:function(e){return(0,n.request)("api/trade/del",e,"loading")},apitraderecordlist:function(e){return(0,n.request)("api/trade/record/list",e)},apitraderecordadd:function(e){return(0,n.request)("api/trade/record/add",e,"loading")},apitraderecordedit:function(e){return(0,n.request)("api/trade/record/edit",e,"loading")},apitraderecorddel:function(e){return(0,n.request)("api/trade/record/del",e,"loading")},apitradesubmit:function(e){return(0,n.request)("api/trade/submit",e,"loading")},apitradereview:function(e){return(0,n.request)("api/trade/review",e,"loading")},apitradesubtotal:function(e){return(0,n.request)("api/trade/subtotal",e,"loading")},apiactivitylist:function(e){return(0,n.request)("api/activity/list",e,"loading")},apiactivityinfo:function(e){return(0,n.request)("api/activity/info",e,"loading")},apiactivityenroll:function(e){return(0,n.request)("api/activity/enroll",e,"loading")},apiactivitysign:function(e){return(0,n.request)("api/activity/sign",e,"loading")},apitradestepinfo:function(e){return(0,n.request)("api/trade/step/info",e,"loading")},apitradecontractedit:function(e){return(0,n.request)("api/trade/contract/edit",e,"loading")},apitradestepedit:function(e){return(0,n.request)("api/trade/step/edit",e,"loading")},apitradehouselist:function(e){return(0,n.request)("api/trade/house/list",e,"loading")}};t.default=i},"3c96":function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},4362:function(e,t,r){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,n="/";t.cwd=function(){return n},t.chdir=function(t){e||(e=r("df7c")),n=e.resolve(t,n)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},4482:function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.request=function(t,r,n,i){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{data:{}};return new Promise((function(r,n){"loading"===t.loadingStr&&e.showLoading({mask:!0,title:"加载中.."});var i=e.getStorageSync("MD_token")||"",o={"Content-Type":"application/json",token:i},l=s({},t.data);for(var c in e.getStorageSync("APP_token")&&(l.token=e.getStorageSync("APP_token")),t.data)void 0!==t.data[c]&&"undefined"!==t.data[c]||(l[c]="");var u=e.baseUrl+t.url;if(t.queryData){var f="";for(var h in t.queryData)f+="".concat(h,"=").concat(t.queryData[h],"&");f=f.substr(0,f.length-1),u+="?".concat(f)}e.request({url:u,data:s({},l),header:o,method:t.method||"POST",complete:function(r){"loading"===t.loadingStr&&e.hideLoading()},success:function(t){var i=t.data,o=i.errno;switch(o){case 0:return r((0,a.noEmpty)(i.data)?i.data:i);case 401:case 404:case 405:e.removeStorageSync("MD_userInfo");var l=e.getStorageSync("MD_userInfo2");"1"===l.bind_wechat&&e.getStorageSync("MD_token")?e.login({success:function(t){t.code&&e.api.base.apiwxautologin({code:t.code}).then((function(t){"error"===t.token?e.removeStorageSync("MD_token"):(e.setStorageSync("MD_userInfo",t),e.setStorageSync("MD_token",t.token),e.api.base.apidicttree().then((function(t){var r=t||{},n={};for(var i in r){var a=r[i].map((function(e){return s(s({},e),{},{key:e.dict_label,val:e.dict_value})}));n[i]=a}e.setStorageSync("MD_dict",n)})),e.api.base.apiuserinfo().then((function(t){e.setStorageSync("MD_userInfo2",t),e.reLaunch({url:"/pages/index/index"})})))}))}}):(e.showToast({title:"请先登录~",icon:"none"}),e.navigateTo({url:"/pages/user/login/login"}));break;default:return e.showModal({title:"提示",content:"".concat(i.errmsg,"(").concat(o,")")}),n(i)}},fail:function(e){console.log(e),n(e)}})}))}({url:t,data:r,loadingStr:n,queryData:i})};var i=n(r("9523")),a=r("66f6");function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,i.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}}).call(this,r("543d")["default"])},"448a":function(e,t,r){var n=r("2236"),i=r("11b0"),a=r("6613"),o=r("0676");e.exports=function(e){return n(e)||i(e)||a(e)||o()},e.exports.__esModule=!0,e.exports["default"]=e.exports},"4a4b":function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t,n)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"4b0b":function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect:function(t,r){var n=this;return new Promise((function(i){e.createSelectorQuery().in(n)[r?"selectAll":"select"](t).boundingClientRect((function(e){r&&Array.isArray(e)&&e.length&&i(e),!r&&e&&i(e)})).exec()}))},getParentData:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,t),this.parent&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom:function(){e.$emit("uOnReachBottom")},beforeDestroy:function(){var t=this;if(this.parent&&e.$u.test.array(this.parent.children)){var r=this.parent.children;r.map((function(e,n){e===t&&r.splice(n,1)}))}}};t.default=r}).call(this,r("543d")["default"])},"4da9":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e};t.default=n},"4ea4":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},5084:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7037"));function a(e){switch((0,i.default)(e)){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function o(e){return"[object Object]"===Object.prototype.toString.call(e)}function s(e){return"function"===typeof e}var l={email:function(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)},mobile:function(e){return/^1[23456789]\d{9}$/.test(e)},url:function(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)},date:function(e){return!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e){return/^\d+$/.test(e)},idCard:function(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)},carNo:function(e){return 7===e.length?/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/.test(e):8===e.length&&/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/.test(e)},amount:function(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)},chinese:function(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)},letter:function(e){return/^[a-zA-Z]*$/.test(e)},enOrNum:function(e){return/^[0-9a-zA-Z]*$/g.test(e)},contains:function(e,t){return e.indexOf(t)>=0},range:function(e,t){return e>=t[0]&&e<=t[1]},rangeLength:function(e,t){return e.length>=t[0]&&e.length<=t[1]},empty:a,isEmpty:a,jsonString:function(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=(0,i.default)(t)||!t)}catch(r){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:o,array:function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)},code:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)},func:s,promise:function(e){return o(e)&&s(e.then)&&s(e.catch)},video:function(e){var t=e.split("?")[0];return new RegExp(/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8|3gp)$/).test(t)},image:function(e){var t=e.split("?")[0];return new RegExp(/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)$/).test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"===typeof e}};t.default=l},"543d":function(e,t,r){"use strict";(function(e,n){var i=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Dt,t.createComponent=qt,t.createPage=Bt,t.createPlugin=zt,t.createSubpackageApp=Ut,t.default=void 0;var a,o=i(r("278c")),s=i(r("9523")),l=i(r("b17c")),c=i(r("448a")),u=i(r("7037")),f=r("37dc"),h=i(r("66fd"));function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,s.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",v=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function y(){var t,r=e.getStorageSync("uni_id_token")||"",n=r.split(".");if(!r||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{t=JSON.parse(function(e){return decodeURIComponent(a(e).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}(n[1]))}catch(i){throw new Error("获取当前用户信息出错,详细错误信息为:"+i.message)}return t.tokenExpired=1e3*t.exp,delete t.exp,delete t.iat,t}a="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!v.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",a=0;a<e.length;)t=g.indexOf(e.charAt(a++))<<18|g.indexOf(e.charAt(a++))<<12|(r=g.indexOf(e.charAt(a++)))<<6|(n=g.indexOf(e.charAt(a++))),i+=64===r?String.fromCharCode(t>>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var x=Object.prototype.toString,m=Object.prototype.hasOwnProperty;function b(e){return"function"===typeof e}function _(e){return"string"===typeof e}function w(e){return"[object Object]"===x.call(e)}function A(e,t){return m.call(e,t)}function S(){}function k(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var T=/-(\w)/g,P=k((function(e){return e.replace(T,(function(e,t){return t?t.toUpperCase():""}))}));function C(e){var t={};return w(e)&&Object.keys(e).sort().forEach((function(r){t[r]=e[r]})),Object.keys(t)?t:e}var O=["invoke","success","fail","complete","returnValue"],L={},D={};function M(e,t){Object.keys(t).forEach((function(r){-1!==O.indexOf(r)&&b(t[r])&&(e[r]=function(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r):r}(e[r],t[r]))}))}function I(e,t){e&&t&&Object.keys(t).forEach((function(r){-1!==O.indexOf(r)&&b(t[r])&&function(e,t){var r=e.indexOf(t);-1!==r&&e.splice(r,1)}(e[r],t[r])}))}function E(e,t){return function(r){return e(r,t)||r}}function F(e){return!!e&&("object"===(0,u.default)(e)||"function"===typeof e)&&"function"===typeof e.then}function j(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];if(n)n=Promise.resolve(E(a,r));else{var o=a(t,r);if(F(o)&&(n=Promise.resolve(o)),!1===o)return{then:function(){}}}}return n||{then:function(e){return e(t)}}}function R(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(r){if(Array.isArray(e[r])){var n=t[r];t[r]=function(i){j(e[r],i,t).then((function(e){return b(n)&&n(e)||e}))}}})),t}function N(e,t){var r=[];Array.isArray(L.returnValue)&&r.push.apply(r,(0,c.default)(L.returnValue));var n=D[e];return n&&Array.isArray(n.returnValue)&&r.push.apply(r,(0,c.default)(n.returnValue)),r.forEach((function(e){t=e(t)||t})),t}function $(e){var t=Object.create(null);Object.keys(L).forEach((function(e){"returnValue"!==e&&(t[e]=L[e].slice())}));var r=D[e];return r&&Object.keys(r).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))})),t}function B(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),a=3;a<n;a++)i[a-3]=arguments[a];var o=$(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){var s=j(o.invoke,r);return s.then((function(r){return t.apply(void 0,[R($(e),r)].concat(i))}))}return t.apply(void 0,[R(o,r)].concat(i))}return t.apply(void 0,[r].concat(i))}var q={returnValue:function(e){return F(e)?new Promise((function(t,r){e.then((function(e){e[0]?r(e[0]):t(e[1])}))})):e}},U=/^\$|Window$|WindowStyle$|sendHostEvent|sendNativeEvent|restoreGlobal|requireGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64|getLocale|setLocale|invokePushCallback|getWindowInfo|getDeviceInfo|getAppBaseInfo|getSystemSetting|getAppAuthorizeSetting|initUTS|requireUTS|registerUTS/,z=/^create|Manager$/,W=["createBLEConnection"],H=["createBLEConnection","createPushMessage"],V=/^on|^off/;function K(e){return z.test(e)&&-1===W.indexOf(e)}function G(e){return U.test(e)&&-1===H.indexOf(e)}function X(e){return e.then((function(e){return[null,e]})).catch((function(e){return[e]}))}function J(e){return!(K(e)||G(e)||function(e){return V.test(e)&&"onPush"!==e}(e))}function Y(e,t){return J(e)&&b(t)?function(){for(var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return b(r.success)||b(r.fail)||b(r.complete)?N(e,B.apply(void 0,[e,t,r].concat(i))):N(e,X(new Promise((function(n,a){B.apply(void 0,[e,t,Object.assign({},r,{success:n,fail:a})].concat(i))}))))}:t}Promise.prototype.finally||(Promise.prototype.finally=function(e){var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))});var Q=!1,Z=0,ee=0;var te,re={};te=ae(e.getSystemInfoSync().language)||"en",function(){if(function(){return"undefined"!==typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length}()){var e=Object.keys(__uniConfig.locales);e.length&&e.forEach((function(e){var t=re[e],r=__uniConfig.locales[e];t?Object.assign(t,r):re[e]=r}))}}();var ne=(0,f.initVueI18n)(te,{}),ie=ne.t;ne.mixin={beforeCreate:function(){var e=this,t=ne.i18n.watchLocale((function(){e.$forceUpdate()}));this.$once("hook:beforeDestroy",(function(){t()}))},methods:{$$t:function(e,t){return ie(e,t)}}},ne.setLocale,ne.getLocale;function ae(e,t){if(e){if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if(e=e.toLowerCase(),"chinese"===e)return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1||function(e,t){return!!t.find((function(t){return-1!==e.indexOf(t)}))}(e,["-tw","-hk","-mo","-cht"])?"zh-Hant":"zh-Hans";var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return r||void 0}}function oe(){if(b(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return ae(e.getSystemInfoSync().language)||"en"}var se=[];"undefined"!==typeof n&&(n.getLocale=oe);var le={promiseInterceptor:q},ce=Object.freeze({__proto__:null,upx2px:function(t,r){if(0===Z&&function(){var t=e.getSystemInfoSync(),r=t.platform,n=t.pixelRatio,i=t.windowWidth;Z=i,ee=n,Q="ios"===r}(),t=Number(t),0===t)return 0;var n=t/750*(r||Z);return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==ee&&Q?.5:1),t<0?-n:n},getLocale:oe,setLocale:function(e){var t=!!b(getApp)&&getApp();if(!t)return!1;var r=t.$vm.$locale;return r!==e&&(t.$vm.$locale=e,se.forEach((function(t){return t({locale:e})})),!0)},onLocaleChange:function(e){-1===se.indexOf(e)&&se.push(e)},addInterceptor:function(e,t){"string"===typeof e&&w(t)?M(D[e]||(D[e]={}),t):w(e)&&M(L,e)},removeInterceptor:function(e,t){"string"===typeof e?w(t)?I(D[e],t):delete D[e]:w(e)&&I(L,e)},interceptors:le});var ue,fe={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=function(e){var t=getCurrentPages(),r=t.length;while(r--){var n=t[r];if(n.$page&&n.$page.fullPath===e)return r}return-1}(e.url);if(-1!==t){var r=getCurrentPages().length-1-t;r>0&&(e.delta=r)}}}},he={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var r=e.urls;if(Array.isArray(r)){var n=r.length;if(n)return t<0?t=0:t>=n&&(t=n-1),t>0?(e.current=r[t],e.urls=r.filter((function(e,n){return!(n<t)||e!==r[t]}))):e.current=r[0],{indicator:!1,loop:!1}}}}};function de(t){ue=ue||e.getStorageSync("__DC_STAT_UUID"),ue||(ue=Date.now()+""+Math.floor(1e7*Math.random()),e.setStorage({key:"__DC_STAT_UUID",data:ue})),t.deviceId=ue}function pe(e){if(e.safeArea){var t=e.safeArea;e.safeAreaInsets={top:t.top,left:t.left,right:e.windowWidth-t.right,bottom:e.screenHeight-t.bottom}}}function ge(e,t){for(var r=e.deviceType||"phone",n={ipad:"pad",windows:"pc",mac:"pc"},i=Object.keys(n),a=t.toLocaleLowerCase(),o=0;o<i.length;o++){var s=i[o];if(-1!==a.indexOf(s)){r=n[s];break}}return r}function ve(e){var t=e;return t&&(t=e.toLocaleLowerCase()),t}function ye(e){return oe?oe():e}function xe(e){var t=e.hostName||"WeChat";return e.environment?t=e.environment:e.host&&e.host.env&&(t=e.host.env),t}var me={returnValue:function(e){de(e),pe(e),function(e){var t,r=e.brand,n=void 0===r?"":r,i=e.model,a=void 0===i?"":i,o=e.system,s=void 0===o?"":o,l=e.language,c=void 0===l?"":l,u=e.theme,f=e.version,h=(e.platform,e.fontSizeSetting),d=e.SDKVersion,p=e.pixelRatio,g=e.deviceOrientation,v="";v=s.split(" ")[0]||"",t=s.split(" ")[1]||"";var y=f,x=ge(e,a),m=ve(n),b=xe(e),_=g,w=p,A=d,S=c.replace(/_/g,"-"),k={appId:"__UNI__1C40FB4",appName:"房票科技",appVersion:"1.0.0",appVersionCode:"100",appLanguage:ye(S),uniCompileVersion:"3.8.12",uniRuntimeVersion:"3.8.12",uniPlatform:"mp-weixin",deviceBrand:m,deviceModel:a,deviceType:x,devicePixelRatio:w,deviceOrientation:_,osName:v.toLocaleLowerCase(),osVersion:t,hostTheme:u,hostVersion:y,hostLanguage:S,hostName:b,hostSDKVersion:A,hostFontSizeSetting:h,windowTop:0,windowBottom:0,osLanguage:void 0,osTheme:void 0,ua:void 0,hostPackageName:void 0,browserName:void 0,browserVersion:void 0};Object.assign(e,k,{})}(e)}},be={args:function(e){"object"===(0,u.default)(e)&&(e.alertText=e.title)}},_e={returnValue:function(e){var t=e,r=t.version,n=t.language,i=t.SDKVersion,a=t.theme,o=xe(e),s=n.replace("_","-");e=C(Object.assign(e,{appId:"__UNI__1C40FB4",appName:"房票科技",appVersion:"1.0.0",appVersionCode:"100",appLanguage:ye(s),hostVersion:r,hostLanguage:s,hostName:o,hostSDKVersion:i,hostTheme:a}))}},we={returnValue:function(e){var t=e,r=t.brand,n=t.model,i=ge(e,n),a=ve(r);de(e),e=C(Object.assign(e,{deviceType:i,deviceBrand:a,deviceModel:n}))}},Ae={returnValue:function(e){pe(e),e=C(Object.assign(e,{windowTop:0,windowBottom:0}))}},Se={redirectTo:fe,previewImage:he,getSystemInfo:me,getSystemInfoSync:me,showActionSheet:be,getAppBaseInfo:_e,getDeviceInfo:we,getWindowInfo:Ae,getAppAuthorizeSetting:{returnValue:function(e){var t=e.locationReducedAccuracy;e.locationAccuracy="unsupported",!0===t?e.locationAccuracy="reduced":!1===t&&(e.locationAccuracy="full")}},compressImage:{args:function(e){e.compressedHeight&&!e.compressHeight&&(e.compressHeight=e.compressedHeight),e.compressedWidth&&!e.compressWidth&&(e.compressWidth=e.compressedWidth)}}},ke=["success","fail","cancel","complete"];function Te(e,t,r){return function(n){return t(Ce(e,n,r))}}function Pe(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(w(t)){var a=!0===i?t:{};for(var o in b(r)&&(r=r(t,a)||{}),t)if(A(r,o)){var s=r[o];b(s)&&(s=s(t[o],t,a)),s?_(s)?a[s]=t[o]:w(s)&&(a[s.name?s.name:o]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(o,"'"))}else-1!==ke.indexOf(o)?b(t[o])&&(a[o]=Te(e,t[o],n)):i||(a[o]=t[o]);return a}return b(t)&&(t=Te(e,t,n)),t}function Ce(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return b(Se.returnValue)&&(t=Se.returnValue(e,t)),Pe(e,t,r,{},n)}function Oe(t,r){if(A(Se,t)){var n=Se[t];return n?function(r,i){var a=n;b(n)&&(a=n(r)),r=Pe(t,r,a.args,a.returnValue);var o=[r];"undefined"!==typeof i&&o.push(i),b(a.name)?t=a.name(r):_(a.name)&&(t=a.name);var s=e[t].apply(e,o);return G(t)?Ce(t,s,a.returnValue,K(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return r}var Le=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Le[e]=function(e){return function(t){var r=t.fail,n=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};b(r)&&r(i),b(n)&&n(i)}}(e)}));var De={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Me=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,r=e.success,n=e.fail,i=e.complete,a=!1;De[t]?(a={errMsg:"getProvider:ok",service:t,provider:De[t]},b(r)&&r(a)):(a={errMsg:"getProvider:fail service not found"},b(n)&&n(a)),b(i)&&i(a)}}),Ie=function(){var e;return function(){return e||(e=new h.default),e}}();function Ee(e,t,r){return e[t].apply(e,r)}var Fe,je,Re,Ne=Object.freeze({__proto__:null,$on:function(){return Ee(Ie(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return Ee(Ie(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return Ee(Ie(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return Ee(Ie(),"$emit",Array.prototype.slice.call(arguments))}});function $e(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Be(e){try{return JSON.parse(e)}catch(t){}return e}var qe=[];function Ue(e,t){qe.forEach((function(r){r(e,t)})),qe.length=0}var ze=[],We=e.getAppBaseInfo&&e.getAppBaseInfo();We||(We=e.getSystemInfoSync());var He=We?We.host:null,Ve=He&&"SAAASDK"===He.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Ke=Object.freeze({__proto__:null,shareVideoMessage:Ve,getPushClientId:function(e){w(e)||(e={});var t=function(e){var t={};for(var r in e){var n=e[r];b(n)&&(t[r]=$e(n),delete e[r])}return t}(e),r=t.success,n=t.fail,i=t.complete,a=b(r),o=b(n),s=b(i);Promise.resolve().then((function(){"undefined"===typeof Re&&(Re=!1,Fe="",je="uniPush is not enabled"),qe.push((function(e,t){var l;e?(l={errMsg:"getPushClientId:ok",cid:e},a&&r(l)):(l={errMsg:"getPushClientId:fail"+(t?" "+t:"")},o&&n(l)),s&&i(l)})),"undefined"!==typeof Fe&&Ue(Fe,je)}))},onPushMessage:function(e){-1===ze.indexOf(e)&&ze.push(e)},offPushMessage:function(e){if(e){var t=ze.indexOf(e);t>-1&&ze.splice(t,1)}else ze.length=0},invokePushCallback:function(e){if("enabled"===e.type)Re=!0;else if("clientId"===e.type)Fe=e.cid,je=e.errMsg,Ue(Fe,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Be(e.message)},r=0;r<ze.length;r++){var n=ze[r];if(n(t),t.stopped)break}else"click"===e.type&&ze.forEach((function(t){t({type:"click",data:Be(e.message)})}))}}),Ge=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function Xe(e){return Behavior(e)}function Je(){return!!this.route}function Ye(e){this.triggerEvent("__l",e)}function Qe(e){var t=e.$scope,r={};Object.defineProperty(e,"$refs",{get:function(){var e={};(function e(t,r,n){var i=t.selectAllComponents(r)||[];i.forEach((function(t){var i=t.dataset.ref;n[i]=t.$vm||tt(t),"scoped"===t.dataset.vueGeneric&&t.selectAllComponents(".scoped-ref").forEach((function(t){e(t,r,n)}))}))})(t,".vue-ref",e);var n=t.selectAllComponents(".vue-ref-in-for")||[];return n.forEach((function(t){var r=t.dataset.ref;e[r]||(e[r]=[]),e[r].push(t.$vm||tt(t))})),function(e,t){var r=(0,l.default)(Set,(0,c.default)(Object.keys(e))),n=Object.keys(t);return n.forEach((function(n){var i=e[n],a=t[n];Array.isArray(i)&&Array.isArray(a)&&i.length===a.length&&a.every((function(e){return i.includes(e)}))||(e[n]=a,r.delete(n))})),r.forEach((function(t){delete e[t]})),e}(r,e)}})}function Ze(e){var t,r=e.detail||e.value,n=r.vuePid,i=r.vueOptions;n&&(t=function e(t,r){for(var n,i=t.$children,a=i.length-1;a>=0;a--){var o=i[a];if(o.$scope._$vueId===r)return o}for(var s=i.length-1;s>=0;s--)if(n=e(i[s],r),n)return n}(this.$vm,n)),t||(t=this.$vm),i.parent=t}function et(e){return Object.defineProperty(e,"__v_isMPComponent",{configurable:!0,enumerable:!1,value:!0}),e}function tt(e){return function(e){return null!==e&&"object"===(0,u.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var rt=/_(.*)_worklet_factory_/;var nt=Page,it=Component,at=/:/g,ot=k((function(e){return P(e.replace(at,"-"))}));function st(e){var t=e.triggerEvent,r=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(this.$vm||this.dataset&&this.dataset.comType)e=ot(e);else{var a=ot(e);a!==e&&t.apply(this,[a].concat(n))}return t.apply(this,[e].concat(n))};try{e.triggerEvent=r}catch(n){e._triggerEvent=r}}function lt(e,t,r){var n=t[e];t[e]=function(){if(et(this),st(this),n){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n.apply(this,t)}}}nt.__$wrappered||(nt.__$wrappered=!0,Page=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return lt("onLoad",e),nt(e)},Page.after=nt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return lt("created",e),it(e)});function ct(e,t,r){t.forEach((function(t){(function e(t,r){if(!r)return!0;if(h.default.options&&Array.isArray(h.default.options[t]))return!0;if(r=r.default||r,b(r))return!!b(r.extendOptions[t])||!!(r.super&&r.super.options&&Array.isArray(r.super.options[t]));if(b(r[t])||Array.isArray(r[t]))return!0;var n=r.mixins;return Array.isArray(n)?!!n.find((function(r){return e(t,r)})):void 0})(t,r)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function ut(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ft(t).forEach((function(t){return ht(e,t,r)}))}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(r){0===r.indexOf("on")&&b(e[r])&&t.push(r)})),t}function ht(e,t,r){-1!==r.indexOf(t)||A(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function dt(e,t){var r;return t=t.default||t,r=b(t)?t:e.extend(t),t=r.options,[r,t]}function pt(e,t){if(Array.isArray(t)&&t.length){var r=Object.create(null);t.forEach((function(e){r[e]=!0})),e.$scopedSlots=e.$slots=r}}function gt(e,t){e=(e||"").split(",");var r=e.length;1===r?t._$vueId=e[0]:2===r&&(t._$vueId=e[0],t._$vuePid=e[1])}function vt(e,t){var r=e.data||{},n=e.methods||{};if("function"===typeof r)try{r=r.call(t)}catch(i){Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"房票科技",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",r)}else try{r=JSON.parse(JSON.stringify(r))}catch(i){}return w(r)||(r={}),Object.keys(n).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||A(r,e)||(r[e]=n[e])})),r}var yt=[String,Number,Boolean,Object,Array,null];function xt(e){return function(t,r){this.$vm&&(this.$vm[e]=t)}}function mt(e,t){var r=e.behaviors,n=e.extends,i=e.mixins,a=e.props;a||(e.props=a=[]);var o=[];return Array.isArray(r)&&r.forEach((function(e){o.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(a)?(a.push("name"),a.push("value")):(a.name={type:String,default:""},a.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),w(n)&&n.props&&o.push(t({properties:_t(n.props,!0)})),Array.isArray(i)&&i.forEach((function(e){w(e)&&e.props&&o.push(t({properties:_t(e.props,!0)}))})),o}function bt(e,t,r,n){return Array.isArray(t)&&1===t.length?t[0]:t}function _t(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>3?arguments[3]:void 0,n={};return t||(n.vueId={type:String,value:""},r.virtualHost&&(n.virtualHostStyle={type:null,value:""},n.virtualHostClass={type:null,value:""}),n.scopedSlotsCompiler={type:String,value:""},n.vueSlots={type:null,value:[],observer:function(e,t){var r=Object.create(null);e.forEach((function(e){r[e]=!0})),this.setData({$slots:r})}}),Array.isArray(e)?e.forEach((function(e){n[e]={type:null,observer:xt(e)}})):w(e)&&Object.keys(e).forEach((function(t){var r=e[t];if(w(r)){var i=r.default;b(i)&&(i=i()),r.type=bt(0,r.type),n[t]={type:-1!==yt.indexOf(r.type)?r.type:null,value:i,observer:xt(t)}}else{var a=bt(0,r);n[t]={type:-1!==yt.indexOf(a)?a:null,observer:xt(t)}}})),n}function wt(e,t,r,n){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,a){"string"===typeof t?t?"$event"===t?i["$"+a]=r:"arguments"===t?i["$"+a]=r.detail&&r.detail.__args__||n:0===t.indexOf("$event.")?i["$"+a]=e.__get_value(t.replace("$event.",""),r):i["$"+a]=e.__get_value(t):i["$"+a]=e:i["$"+a]=function(e,t){var r=e;return t.forEach((function(t){var n=t[0],i=t[2];if(n||"undefined"!==typeof i){var a,o=t[1],s=t[3];Number.isInteger(n)?a=n:n?"string"===typeof n&&n&&(a=0===n.indexOf("#s#")?n.substr(3):e.__get_value(n,r)):a=r,Number.isInteger(a)?r=i:o?Array.isArray(a)?r=a.find((function(t){return e.__get_value(o,t)===i})):w(a)?r=Object.keys(a).find((function(t){return e.__get_value(o,a[t])===i})):console.error("v-for 暂不支持循环数据:",a):r=a[i],s&&(r=e.__get_value(s,r))}})),r}(e,t)})),i}function At(e){for(var t={},r=1;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}function St(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=!1,s=w(t.detail)&&t.detail.__args__||[t.detail];if(i&&(o=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!r.length))return o?[t]:s;var l=wt(e,n,t,s),c=[];return r.forEach((function(e){"$event"===e?"__set_model"!==a||i?i&&!o?c.push(s[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(At(e)):"string"===typeof e&&A(l,e)?c.push(l[e]):c.push(e)})),c}function kt(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=S,e.preventDefault=S,e.target=e.target||{},A(e,"detail")||(e.detail={}),A(e,"markerId")&&(e.detail="object"===(0,u.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),w(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var r=(e.currentTarget||e.target).dataset;if(!r)return console.warn("事件信息不存在");var n=r.eventOpts||r["event-opts"];if(!n)return console.warn("事件信息不存在");var i=e.type,a=[];return n.forEach((function(r){var n=r[0],o=r[1],s="^"===n.charAt(0);n=s?n.slice(1):n;var l="~"===n.charAt(0);n=l?n.slice(1):n,o&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(i,n)&&o.forEach((function(r){var n=r[0];if(n){var i=t.$vm;if(i.$options.generic&&(i=function(e){var t=e.$parent;while(t&&t.$parent&&(t.$options.generic||t.$parent.$options.generic||t.$scope._$vuePid))t=t.$parent;return t&&t.$parent}(i)||i),"$emit"===n)return void i.$emit.apply(i,St(t.$vm,e,r[1],r[2],s,n));var o=i[n];if(!b(o)){var c="page"===t.$vm.mpType?"Page":"Component",u=t.route||t.is;throw new Error("".concat(c,' "').concat(u,'" does not have a method "').concat(n,'"'))}if(l){if(o.once)return;o.once=!0}var f=St(t.$vm,e,r[1],r[2],s,n);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(o.toString())&&(f=f.concat([,,,,,,,,,,e])),a.push(o.apply(i,f))}}))})),"input"===i&&1===a.length&&"undefined"!==typeof a[0]?a[0]:void 0}var Tt={};var Pt=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ct(){h.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=h.default.prototype.__call_hook;h.default.prototype.__call_hook=function(t,r){return"onLoad"===t&&r&&r.__id__&&(this.__eventChannel__=function(e){var t=Tt[e];return delete Tt[e],t}(r.__id__),delete r.__id__),e.call(this,t,r)}}function Ot(t,r){var n=r.mocks,i=r.initRefs;Ct(),function(){var e={},t={};function r(e){var t=this.$options.propsData.vueId;if(t){var r=t.split(",")[0];e(r)}}h.default.prototype.$hasSSP=function(r){var n=e[r];return n||(t[r]=this,this.$on("hook:destroyed",(function(){delete t[r]}))),n},h.default.prototype.$getSSP=function(t,r,n){var i=e[t];if(i){var a=i[r]||[];return n?a:a[0]}},h.default.prototype.$setSSP=function(t,n){var i=0;return r.call(this,(function(r){var a=e[r],o=a[t]=a[t]||[];o.push(n),i=o.length-1})),i},h.default.prototype.$initSSP=function(){r.call(this,(function(t){e[t]={}}))},h.default.prototype.$callSSP=function(){r.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},h.default.mixin({destroyed:function(){var r=this.$options.propsData,n=r&&r.vueId;n&&(delete e[n],delete t[n])}})}(),t.$options.store&&(h.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=y(),r=t.role;return r.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=y(),r=t.permission;return this.uniIDHasRole("admin")||r.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}(h.default),h.default.prototype.mpHost="mp-weixin",h.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=(0,s.default)({data:{}},this.mpType,this.$options.mpInstance),this.$scope=this.$options.mpInstance,delete this.$options.mpType,delete this.$options.mpInstance,"page"===this.mpType&&"function"===typeof getApp){var e=getApp();e.$vm&&e.$vm.$i18n&&(this._i18n=e.$vm.$i18n)}"app"!==this.mpType&&(i(this),function(e,t){var r=e.$mp[e.mpType];t.forEach((function(t){A(r,t)&&(e[t]=r[t])}))}(this,n))}}});var a={onLaunch:function(r){this.$vm||(e.canIUse&&!e.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=t,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",r),this.$vm.__call_hook("onLaunch",r))}};a.globalData=t.$options.globalData||{};var o=t.$options.methods;return o&&Object.keys(o).forEach((function(e){a[e]=o[e]})),function(e,t,r){var n=e.observable({locale:r||ne.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return n.locale},set:function(e){n.locale=e,i.forEach((function(t){return t(e)}))}})}(h.default,t,ae(e.getSystemInfoSync().language)||"en"),ct(a,Pt),ut(a,t.$options),a}function Lt(e){return Ot(e,{mocks:Ge,initRefs:Qe})}function Dt(e){return App(Lt(e)),e}var Mt=/[!'()*]/g,It=function(e){return"%"+e.charCodeAt(0).toString(16)},Et=/%2C/g,Ft=function(e){return encodeURIComponent(e).replace(Mt,It).replace(Et,",")};function jt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ft,r=e?Object.keys(e).map((function(r){var n=e[r];if(void 0===n)return"";if(null===n)return t(r);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(t(r)):i.push(t(r)+"="+t(e)))})),i.join("&")}return t(r)+"="+t(n)})).filter((function(e){return e.length>0})).join("&"):null;return r?"?".concat(r):""}function Rt(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPage,n=t.initRelation,i=arguments.length>2?arguments[2]:void 0,a=dt(h.default,e),s=(0,o.default)(a,2),l=s[0],c=s[1],u=p({multipleSlots:!0,addGlobalClass:!0},c.options||{});c["mp-weixin"]&&c["mp-weixin"].options&&Object.assign(u,c["mp-weixin"].options);var f={options:u,data:vt(c,h.default.prototype),behaviors:mt(c,Xe),properties:_t(c.props,!1,c.__file,u),lifetimes:{attached:function(){var e=this.properties,t={mpType:r.call(this)?"page":"component",mpInstance:this,propsData:e};gt(e.vueId,this),n.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new l(t),pt(this.$vm,e.vueSlots),this.$vm.$mount()},ready:function(){this.$vm&&(this.$vm._isMounted=!0,this.$vm.__call_hook("mounted"),this.$vm.__call_hook("onReady"))},detached:function(){this.$vm&&this.$vm.$destroy()}},pageLifetimes:{show:function(e){this.$vm&&this.$vm.__call_hook("onPageShow",e)},hide:function(){this.$vm&&this.$vm.__call_hook("onPageHide")},resize:function(e){this.$vm&&this.$vm.__call_hook("onPageResize",e)}},methods:{__l:Ze,__e:kt}};return c.externalClasses&&(f.externalClasses=c.externalClasses),Array.isArray(c.wxsCallMethods)&&c.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),i?[f,c,l]:r?f:[f,l]}(e,{isPage:Je,initRelation:Ye},t)}var Nt=["onShow","onHide","onUnload"];function $t(e){var t=Rt(e,!0),r=(0,o.default)(t,2),n=r[0],i=r[1];return ct(n.methods,Nt,i),n.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+jt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},ut(n.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(r){var n=r.match(rt);if(n){var i=n[1];e[r]=t[r],e[i]=t[i]}}))}(n.methods,i.methods),n}function Bt(e){return Component(function(e){return $t(e)}(e))}function qt(e){return Component(Rt(e))}function Ut(t){var r=Lt(t),n=getApp({allowDefault:!0});t.$scope=n;var i=n.globalData;if(i&&Object.keys(r.globalData).forEach((function(e){A(i,e)||(i[e]=r.globalData[e])})),Object.keys(r).forEach((function(e){A(n,e)||(n[e]=r[e])})),b(r.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onShow",r)})),b(r.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onHide",r)})),b(r.onLaunch)){var a=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",a)}return t}function zt(t){var r=Lt(t);if(b(r.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onShow",r)})),b(r.onHide)&&e.onAppHide&&e.onAppHide((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];t.__call_hook("onHide",r)})),b(r.onLaunch)){var n=e.getLaunchOptionsSync&&e.getLaunchOptionsSync();t.__call_hook("onLaunch",n)}return t}Nt.push.apply(Nt,["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"]),["vibrate","preloadPage","unPreloadPage","loadSubPackage"].forEach((function(e){Se[e]=!1})),[].forEach((function(t){var r=Se[t]&&Se[t].name?Se[t].name:t;e.canIUse(r)||(Se[t]=!1)}));var Wt={};"undefined"!==typeof Proxy?Wt=new Proxy({},{get:function(t,r){return A(t,r)?t[r]:ce[r]?ce[r]:Ke[r]?Y(r,Ke[r]):Me[r]?Y(r,Me[r]):Le[r]?Y(r,Le[r]):Ne[r]?Ne[r]:Y(r,Oe(r,e[r]))},set:function(e,t,r){return e[t]=r,!0}}):(Object.keys(ce).forEach((function(e){Wt[e]=ce[e]})),Object.keys(Le).forEach((function(e){Wt[e]=Y(e,Le[e])})),Object.keys(Me).forEach((function(e){Wt[e]=Y(e,Me[e])})),Object.keys(Ne).forEach((function(e){Wt[e]=Ne[e]})),Object.keys(Ke).forEach((function(e){Wt[e]=Y(e,Ke[e])})),Object.keys(e).forEach((function(t){(A(e,t)||A(Se,t))&&(Wt[t]=Y(t,Oe(t,e[t])))}))),e.createApp=Dt,e.createPage=Bt,e.createComponent=qt,e.createSubpackageApp=Ut,e.createPlugin=zt;var Ht=Wt,Vt=Ht;t.default=Vt}).call(this,r("bc2e")["default"],r("c8ba"))},"5a43":function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},e.exports.__esModule=!0,e.exports["default"]=e.exports},"5ae5":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"};t.default=n},"5bc3":function(e,t,r){var n=r("a395");function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n(i.key),i)}}e.exports=function(e,t,r){return t&&i(e.prototype,t),r&&i(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports["default"]=e.exports},6091:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;e.showToast({title:t,icon:"none",duration:r})};t.default=r}).call(this,r("543d")["default"])},6613:function(e,t,r){var n=r("5a43");e.exports=function(e,t){if(e){if("string"===typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"66f6":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrToObj=function(e){var t={};"[object Array]"===Object.prototype.toString.call(e)&&e.length>0&&e.forEach((function(e){t[e.val]=e.key}));return t},t.comGetTime=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.getFullYear(),n=e.getMonth()+1;n=n>9?n:"0"+n;var i=e.getDate();i=i>9?i:"0"+i;var a=e.getHours();a=a>9?a:"0"+a;var o=e.getMinutes();o=o>9?o:"0"+o;var s=e.getSeconds();s=s>9?s:"0"+s;var l=e.getMilliseconds();return l=l>100?l:l>10?"0"+l:"00"+l,t?"".concat(r,"-").concat(n,"-").concat(i):"".concat(r).concat(n).concat(i).concat(a).concat(o).concat(s).concat(l)},t.noEmpty=function(e){return null!==e&&void 0!==e&&""!==e},t.numFormat3=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=Number(e).toFixed(t).toString().split("."),n=r[0].split("").reverse(),i=[],a=0;a<n.length;a++)a%3===0&&0!==a&&i.push(","),i.push(n[a]);i.reverse(),i=r[1]?i.join("").concat("."+r[1]):i.join("");return i},t.strTrim=function(e){return e.replace(/(^\s*)|(\s*$)/g,"")}},"66fd":function(e,t,r){"use strict";r.r(t),function(e){
  2. /*!
  3. * Vue.js v2.6.11
  4. * (c) 2014-2023 Evan You
  5. * Released under the MIT License.
  6. */
  7. var r=Object.freeze({});function n(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function a(e){return!0===e}function o(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var l=Object.prototype.toString;function c(e){return"[object Object]"===l.call(e)}function u(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function f(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||c(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function d(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i<n.length;i++)r[n[i]]=!0;return t?function(e){return r[e.toLowerCase()]}:function(e){return r[e]}}p("slot,component",!0);var g=p("key,ref,slot,slot-scope,is");function v(e,t){if(e.length){var r=e.indexOf(t);if(r>-1)return e.splice(r,1)}}var y=Object.prototype.hasOwnProperty;function x(e,t){return y.call(e,t)}function m(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var b=/-(\w)/g,_=m((function(e){return e.replace(b,(function(e,t){return t?t.toUpperCase():""}))})),w=m((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,S=m((function(e){return e.replace(A,"-$1").toLowerCase()}));var k=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r};function T(e,t){t=t||0;var r=e.length-t,n=new Array(r);while(r--)n[r]=e[r+t];return n}function P(e,t){for(var r in t)e[r]=t[r];return e}function C(e){for(var t={},r=0;r<e.length;r++)e[r]&&P(t,e[r]);return t}function O(e,t,r){}var L=function(e,t,r){return!1},D=function(e){return e};function M(e,t){if(e===t)return!0;var r=s(e),n=s(t);if(!r||!n)return!r&&!n&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every((function(e,r){return M(e,t[r])}));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var o=Object.keys(e),l=Object.keys(t);return o.length===l.length&&o.every((function(r){return M(e[r],t[r])}))}catch(c){return!1}}function I(e,t){for(var r=0;r<e.length;r++)if(M(e[r],t))return r;return-1}function E(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var F=["component","directive","filter"],j=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],R={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:O,parsePlatformTagName:D,mustUseProp:L,async:!0,_lifecycleHooks:j},N=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function $(e){var t=(e+"").charCodeAt(0);return 36===t||95===t}function B(e,t,r,n){Object.defineProperty(e,t,{value:r,enumerable:!!n,writable:!0,configurable:!0})}var q=new RegExp("[^"+N.source+".$_\\d]");var U,z="__proto__"in{},W="undefined"!==typeof window,H="undefined"!==typeof WXEnvironment&&!!WXEnvironment.platform,V=H&&WXEnvironment.platform.toLowerCase(),K=W&&window.navigator.userAgent.toLowerCase(),G=K&&/msie|trident/.test(K),X=(K&&K.indexOf("msie 9.0"),K&&K.indexOf("edge/")>0),J=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===V),Y=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/),{}.watch);if(W)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Q)}catch(jr){}var Z=function(){return void 0===U&&(U=!W&&!H&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),U},ee=W&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function te(e){return"function"===typeof e&&/native code/.test(e.toString())}var re,ne="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);re="undefined"!==typeof Set&&te(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=O,ae=0,oe=function(){this.id=ae++,this.subs=[]};function se(e){oe.SharedObject.targetStack.push(e),oe.SharedObject.target=e,oe.target=e}function le(){oe.SharedObject.targetStack.pop(),oe.SharedObject.target=oe.SharedObject.targetStack[oe.SharedObject.targetStack.length-1],oe.target=oe.SharedObject.target}oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){v(this.subs,e)},oe.prototype.depend=function(){oe.SharedObject.target&&oe.SharedObject.target.addDep(this)},oe.prototype.notify=function(){var e=this.subs.slice();for(var t=0,r=e.length;t<r;t++)e[t].update()},oe.SharedObject={},oe.SharedObject.target=null,oe.SharedObject.targetStack=[];var ce=function(e,t,r,n,i,a,o,s){this.tag=e,this.data=t,this.children=r,this.text=n,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ue={child:{configurable:!0}};ue.child.get=function(){return this.componentInstance},Object.defineProperties(ce.prototype,ue);var fe=function(e){void 0===e&&(e="");var t=new ce;return t.text=e,t.isComment=!0,t};function he(e){return new ce(void 0,void 0,void 0,String(e))}var de=Array.prototype,pe=Object.create(de);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){var t=de[e];B(pe,e,(function(){var r=[],n=arguments.length;while(n--)r[n]=arguments[n];var i,a=t.apply(this,r),o=this.__ob__;switch(e){case"push":case"unshift":i=r;break;case"splice":i=r.slice(2);break}return i&&o.observeArray(i),o.dep.notify(),a}))}));var ge=Object.getOwnPropertyNames(pe),ve=!0;function ye(e){ve=e}var xe=function(e){this.value=e,this.dep=new oe,this.vmCount=0,B(e,"__ob__",this),Array.isArray(e)?(z?e.push!==e.__proto__.push?me(e,pe,ge):function(e,t){e.__proto__=t}(e,pe):me(e,pe,ge),this.observeArray(e)):this.walk(e)};function me(e,t,r){for(var n=0,i=r.length;n<i;n++){var a=r[n];B(e,a,t[a])}}function be(e,t){var r;if(s(e)&&!(e instanceof ce))return x(e,"__ob__")&&e.__ob__ instanceof xe?r=e.__ob__:!ve||Z()||!Array.isArray(e)&&!c(e)||!Object.isExtensible(e)||e._isVue||e.__v_isMPComponent||(r=new xe(e)),t&&r&&r.vmCount++,r}function _e(e,t,r,n,i){var a=new oe,o=Object.getOwnPropertyDescriptor(e,t);if(!o||!1!==o.configurable){var s=o&&o.get,l=o&&o.set;s&&!l||2!==arguments.length||(r=e[t]);var c=!i&&be(r);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):r;return oe.SharedObject.target&&(a.depend(),c&&(c.dep.depend(),Array.isArray(t)&&Se(t))),t},set:function(t){var n=s?s.call(e):r;t===n||t!==t&&n!==n||s&&!l||(l?l.call(e,t):r=t,c=!i&&be(t),a.notify())}})}}function we(e,t,r){if(Array.isArray(e)&&u(t))return e.length=Math.max(e.length,t),e.splice(t,1,r),r;if(t in e&&!(t in Object.prototype))return e[t]=r,r;var n=e.__ob__;return e._isVue||n&&n.vmCount?r:n?(_e(n.value,t,r),n.dep.notify(),r):(e[t]=r,r)}function Ae(e,t){if(Array.isArray(e)&&u(t))e.splice(t,1);else{var r=e.__ob__;e._isVue||r&&r.vmCount||x(e,t)&&(delete e[t],r&&r.dep.notify())}}function Se(e){for(var t=void 0,r=0,n=e.length;r<n;r++)t=e[r],t&&t.__ob__&&t.__ob__.dep.depend(),Array.isArray(t)&&Se(t)}xe.prototype.walk=function(e){for(var t=Object.keys(e),r=0;r<t.length;r++)_e(e,t[r])},xe.prototype.observeArray=function(e){for(var t=0,r=e.length;t<r;t++)be(e[t])};var ke=R.optionMergeStrategies;function Te(e,t){if(!t)return e;for(var r,n,i,a=ne?Reflect.ownKeys(t):Object.keys(t),o=0;o<a.length;o++)r=a[o],"__ob__"!==r&&(n=e[r],i=t[r],x(e,r)?n!==i&&c(n)&&c(i)&&Te(n,i):we(e,r,i));return e}function Pe(e,t,r){return r?function(){var n="function"===typeof t?t.call(r,r):t,i="function"===typeof e?e.call(r,r):e;return n?Te(n,i):i}:t?e?function(){return Te("function"===typeof t?t.call(this,this):t,"function"===typeof e?e.call(this,this):e)}:t:e}function Ce(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){for(var t=[],r=0;r<e.length;r++)-1===t.indexOf(e[r])&&t.push(e[r]);return t}(r):r}function Oe(e,t,r,n){var i=Object.create(e||null);return t?P(i,t):i}ke.data=function(e,t,r){return r?Pe(e,t,r):t&&"function"!==typeof t?e:Pe(e,t)},j.forEach((function(e){ke[e]=Ce})),F.forEach((function(e){ke[e+"s"]=Oe})),ke.watch=function(e,t,r,n){if(e===Y&&(e=void 0),t===Y&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var a in P(i,e),t){var o=i[a],s=t[a];o&&!Array.isArray(o)&&(o=[o]),i[a]=o?o.concat(s):Array.isArray(s)?s:[s]}return i},ke.props=ke.methods=ke.inject=ke.computed=function(e,t,r,n){if(!e)return t;var i=Object.create(null);return P(i,e),t&&P(i,t),i},ke.provide=Pe;var Le=function(e,t){return void 0===t?e:t};function De(e,t,r){if("function"===typeof t&&(t=t.options),function(e,t){var r=e.props;if(r){var n,i,a,o={};if(Array.isArray(r)){n=r.length;while(n--)i=r[n],"string"===typeof i&&(a=_(i),o[a]={type:null})}else if(c(r))for(var s in r)i=r[s],a=_(s),o[a]=c(i)?i:{type:i};else 0;e.props=o}}(t),function(e,t){var r=e.inject;if(r){var n=e.inject={};if(Array.isArray(r))for(var i=0;i<r.length;i++)n[r[i]]={from:r[i]};else if(c(r))for(var a in r){var o=r[a];n[a]=c(o)?P({from:a},o):{from:o}}else 0}}(t),function(e){var t=e.directives;if(t)for(var r in t){var n=t[r];"function"===typeof n&&(t[r]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=De(e,t.extends,r)),t.mixins))for(var n=0,i=t.mixins.length;n<i;n++)e=De(e,t.mixins[n],r);var a,o={};for(a in e)s(a);for(a in t)x(e,a)||s(a);function s(n){var i=ke[n]||Le;o[n]=i(e[n],t[n],r,n)}return o}function Me(e,t,r,n){if("string"===typeof r){var i=e[t];if(x(i,r))return i[r];var a=_(r);if(x(i,a))return i[a];var o=w(a);if(x(i,o))return i[o];var s=i[r]||i[a]||i[o];return s}}function Ie(e,t,r,n){var i=t[e],a=!x(r,e),o=r[e],s=je(Boolean,i.type);if(s>-1)if(a&&!x(i,"default"))o=!1;else if(""===o||o===S(e)){var l=je(String,i.type);(l<0||s<l)&&(o=!0)}if(void 0===o){o=function(e,t,r){if(!x(t,"default"))return;var n=t.default;0;if(e&&e.$options.propsData&&void 0===e.$options.propsData[r]&&void 0!==e._props[r])return e._props[r];return"function"===typeof n&&"Function"!==Ee(t.type)?n.call(e):n}(n,i,e);var c=ve;ye(!0),be(o),ye(c)}return o}function Ee(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Fe(e,t){return Ee(e)===Ee(t)}function je(e,t){if(!Array.isArray(t))return Fe(t,e)?0:-1;for(var r=0,n=t.length;r<n;r++)if(Fe(t[r],e))return r;return-1}function Re(e,t,r){se();try{if(t){var n=t;while(n=n.$parent){var i=n.$options.errorCaptured;if(i)for(var a=0;a<i.length;a++)try{var o=!1===i[a].call(n,e,t,r);if(o)return}catch(jr){$e(jr,n,"errorCaptured hook")}}}$e(e,t,r)}finally{le()}}function Ne(e,t,r,n,i){var a;try{a=r?e.apply(t,r):e.call(t),a&&!a._isVue&&f(a)&&!a._handled&&(a.catch((function(e){return Re(e,n,i+" (Promise/async)")})),a._handled=!0)}catch(jr){Re(jr,n,i)}return a}function $e(e,t,r){if(R.errorHandler)try{return R.errorHandler.call(null,e,t,r)}catch(jr){jr!==e&&Be(jr,null,"config.errorHandler")}Be(e,t,r)}function Be(e,t,r){if(!W&&!H||"undefined"===typeof console)throw e;console.error(e)}var qe,Ue=[],ze=!1;function We(){ze=!1;var e=Ue.slice(0);Ue.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!==typeof Promise&&te(Promise)){var He=Promise.resolve();qe=function(){He.then(We),J&&setTimeout(O)}}else if(G||"undefined"===typeof MutationObserver||!te(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())qe="undefined"!==typeof setImmediate&&te(setImmediate)?function(){setImmediate(We)}:function(){setTimeout(We,0)};else{var Ve=1,Ke=new MutationObserver(We),Ge=document.createTextNode(String(Ve));Ke.observe(Ge,{characterData:!0}),qe=function(){Ve=(Ve+1)%2,Ge.data=String(Ve)}}function Xe(e,t){var r;if(Ue.push((function(){if(e)try{e.call(t)}catch(jr){Re(jr,t,"nextTick")}else r&&r(t)})),ze||(ze=!0,qe()),!e&&"undefined"!==typeof Promise)return new Promise((function(e){r=e}))}var Je=new re;function Ye(e){(function e(t,r){var n,i,a=Array.isArray(t);if(!a&&!s(t)||Object.isFrozen(t)||t instanceof ce)return;if(t.__ob__){var o=t.__ob__.dep.id;if(r.has(o))return;r.add(o)}if(a){n=t.length;while(n--)e(t[n],r)}else{i=Object.keys(t),n=i.length;while(n--)e(t[i[n]],r)}})(e,Je),Je.clear()}var Qe=m((function(e){var t="&"===e.charAt(0);e=t?e.slice(1):e;var r="~"===e.charAt(0);e=r?e.slice(1):e;var n="!"===e.charAt(0);return e=n?e.slice(1):e,{name:e,once:r,capture:n,passive:t}}));function Ze(e,t){function r(){var e=arguments,n=r.fns;if(!Array.isArray(n))return Ne(n,null,arguments,t,"v-on handler");for(var i=n.slice(),a=0;a<i.length;a++)Ne(i[a],null,e,t,"v-on handler")}return r.fns=e,r}function et(e,t,r,a){var o=t.options.mpOptions&&t.options.mpOptions.properties;if(n(o))return r;var s=t.options.mpOptions.externalClasses||[],l=e.attrs,c=e.props;if(i(l)||i(c))for(var u in o){var f=S(u),h=tt(r,c,u,f,!0)||tt(r,l,u,f,!1);h&&r[u]&&-1!==s.indexOf(f)&&a[_(r[u])]&&(r[u]=a[_(r[u])])}return r}function tt(e,t,r,n,a){if(i(t)){if(x(t,r))return e[r]=t[r],a||delete t[r],!0;if(x(t,n))return e[r]=t[n],a||delete t[n],!0}return!1}function rt(e){return o(e)?[he(e)]:Array.isArray(e)?function e(t,r){var s,l,c,u,f=[];for(s=0;s<t.length;s++)l=t[s],n(l)||"boolean"===typeof l||(c=f.length-1,u=f[c],Array.isArray(l)?l.length>0&&(l=e(l,(r||"")+"_"+s),nt(l[0])&&nt(u)&&(f[c]=he(u.text+l[0].text),l.shift()),f.push.apply(f,l)):o(l)?nt(u)?f[c]=he(u.text+l):""!==l&&f.push(he(l)):nt(l)&&nt(u)?f[c]=he(u.text+l.text):(a(t._isVList)&&i(l.tag)&&n(l.key)&&i(r)&&(l.key="__vlist"+r+"_"+s+"__"),f.push(l)));return f}(e):void 0}function nt(e){return i(e)&&i(e.text)&&function(e){return!1===e}(e.isComment)}function it(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function at(e){var t=ot(e.$options.inject,e);t&&(ye(!1),Object.keys(t).forEach((function(r){_e(e,r,t[r])})),ye(!0))}function ot(e,t){if(e){for(var r=Object.create(null),n=ne?Reflect.ownKeys(e):Object.keys(e),i=0;i<n.length;i++){var a=n[i];if("__ob__"!==a){var o=e[a].from,s=t;while(s){if(s._provided&&x(s._provided,o)){r[a]=s._provided[o];break}s=s.$parent}if(!s)if("default"in e[a]){var l=e[a].default;r[a]="function"===typeof l?l.call(t):l}else 0}}return r}}function st(e,t){if(!e||!e.length)return{};for(var r={},n=0,i=e.length;n<i;n++){var a=e[n],o=a.data;if(o&&o.attrs&&o.attrs.slot&&delete o.attrs.slot,a.context!==t&&a.fnContext!==t||!o||null==o.slot)a.asyncMeta&&a.asyncMeta.data&&"page"===a.asyncMeta.data.slot?(r["page"]||(r["page"]=[])).push(a):(r.default||(r.default=[])).push(a);else{var s=o.slot,l=r[s]||(r[s]=[]);"template"===a.tag?l.push.apply(l,a.children||[]):l.push(a)}}for(var c in r)r[c].every(lt)&&delete r[c];return r}function lt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ct(e,t,n){var i,a=Object.keys(t).length>0,o=e?!!e.$stable:!a,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(o&&n&&n!==r&&s===n.$key&&!a&&!n.$hasNormal)return n;for(var l in i={},e)e[l]&&"$"!==l[0]&&(i[l]=ut(t,l,e[l]))}else i={};for(var c in t)c in i||(i[c]=ft(t,c));return e&&Object.isExtensible(e)&&(e._normalized=i),B(i,"$stable",o),B(i,"$key",s),B(i,"$hasNormal",a),i}function ut(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:rt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function ft(e,t){return function(){return e[t]}}function ht(e,t){var r,n,a,o,l;if(Array.isArray(e)||"string"===typeof e)for(r=new Array(e.length),n=0,a=e.length;n<a;n++)r[n]=t(e[n],n,n,n);else if("number"===typeof e)for(r=new Array(e),n=0;n<e;n++)r[n]=t(n+1,n,n,n);else if(s(e))if(ne&&e[Symbol.iterator]){r=[];var c=e[Symbol.iterator](),u=c.next();while(!u.done)r.push(t(u.value,r.length,n,n++)),u=c.next()}else for(o=Object.keys(e),r=new Array(o.length),n=0,a=o.length;n<a;n++)l=o[n],r[n]=t(e[l],l,n,n);return i(r)||(r=[]),r._isVList=!0,r}function dt(e,t,r,n){var i,a=this.$scopedSlots[e];a?(r=r||{},n&&(r=P(P({},n),r)),i=a(r,this,r._i)||t):i=this.$slots[e]||t;var o=r&&r.slot;return o?this.$createElement("template",{slot:o},i):i}function pt(e){return Me(this.$options,"filters",e)||D}function gt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function vt(e,t,r,n,i){var a=R.keyCodes[t]||r;return i&&n&&!R.keyCodes[t]?gt(i,n):a?gt(a,e):n?S(n)!==t:void 0}function yt(e,t,r,n,i){if(r)if(s(r)){var a;Array.isArray(r)&&(r=C(r));var o=function(o){if("class"===o||"style"===o||g(o))a=e;else{var s=e.attrs&&e.attrs.type;a=n||R.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var l=_(o),c=S(o);if(!(l in a)&&!(c in a)&&(a[o]=r[o],i)){var u=e.on||(e.on={});u["update:"+o]=function(e){r[o]=e}}};for(var l in r)o(l)}else;return e}function xt(e,t){var r=this._staticTrees||(this._staticTrees=[]),n=r[e];return n&&!t||(n=r[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),bt(n,"__static__"+e,!1)),n}function mt(e,t,r){return bt(e,"__once__"+t+(r?"_"+r:""),!0),e}function bt(e,t,r){if(Array.isArray(e))for(var n=0;n<e.length;n++)e[n]&&"string"!==typeof e[n]&&_t(e[n],t+"_"+n,r);else _t(e,t,r)}function _t(e,t,r){e.isStatic=!0,e.key=t,e.isOnce=r}function wt(e,t){if(t)if(c(t)){var r=e.on=e.on?P({},e.on):{};for(var n in t){var i=r[n],a=t[n];r[n]=i?[].concat(i,a):a}}else;return e}function At(e,t,r,n){t=t||{$stable:!r};for(var i=0;i<e.length;i++){var a=e[i];Array.isArray(a)?At(a,t,r):a&&(a.proxy&&(a.fn.proxy=!0),t[a.key]=a.fn)}return n&&(t.$key=n),t}function St(e,t){for(var r=0;r<t.length;r+=2){var n=t[r];"string"===typeof n&&n&&(e[t[r]]=t[r+1])}return e}function kt(e,t){return"string"===typeof e?t+e:e}function Tt(e){e._o=mt,e._n=d,e._s=h,e._l=ht,e._t=dt,e._q=M,e._i=I,e._m=xt,e._f=pt,e._k=vt,e._b=yt,e._v=he,e._e=fe,e._u=At,e._g=wt,e._d=St,e._p=kt}function Pt(e,t,n,i,o){var s,l=this,c=o.options;x(i,"_uid")?(s=Object.create(i),s._original=i):(s=i,i=i._original);var u=a(c._compiled),f=!u;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=ot(c.inject,i),this.slots=function(){return l.$slots||ct(e.scopedSlots,l.$slots=st(n,i)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return ct(e.scopedSlots,this.slots())}}),u&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=ct(e.scopedSlots,this.$slots)),c._scopeId?this._c=function(e,t,r,n){var a=Et(s,e,t,r,n,f);return a&&!Array.isArray(a)&&(a.fnScopeId=c._scopeId,a.fnContext=i),a}:this._c=function(e,t,r,n){return Et(s,e,t,r,n,f)}}function Ct(e,t,r,n,i){var a=function(e){var t=new ce(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}(e);return a.fnContext=r,a.fnOptions=n,t.slot&&((a.data||(a.data={})).slot=t.slot),a}function Ot(e,t){for(var r in t)e[_(r)]=t[r]}Tt(Pt.prototype);var Lt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var r=e;Lt.prepatch(r,r)}else{var n=e.componentInstance=function(e,t){var r={_isComponent:!0,_parentVnode:e,parent:t},n=e.data.inlineTemplate;i(n)&&(r.render=n.render,r.staticRenderFns=n.staticRenderFns);return new e.componentOptions.Ctor(r)}(e,zt);n.$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions,i=t.componentInstance=e.componentInstance;(function(e,t,n,i,a){0;var o=i.data.scopedSlots,s=e.$scopedSlots,l=!!(o&&!o.$stable||s!==r&&!s.$stable||o&&e.$scopedSlots.$key!==o.$key),c=!!(a||e.$options._renderChildren||l);e.$options._parentVnode=i,e.$vnode=i,e._vnode&&(e._vnode.parent=i);if(e.$options._renderChildren=a,e.$attrs=i.data.attrs||r,e.$listeners=n||r,t&&e.$options.props){ye(!1);for(var u=e._props,f=e.$options._propKeys||[],h=0;h<f.length;h++){var d=f[h],p=e.$options.props;u[d]=Ie(d,p,t,e)}ye(!0),e.$options.propsData=t}e._$updateProperties&&e._$updateProperties(e),n=n||r;var g=e.$options._parentListeners;e.$options._parentListeners=n,Ut(e,n,g),c&&(e.$slots=st(a,i.context),e.$forceUpdate());0})(i,n.propsData,n.listeners,t,n.children)},insert:function(e){var t=e.context,r=e.componentInstance;r._isMounted||(Vt(r,"onServiceCreated"),Vt(r,"onServiceAttached"),r._isMounted=!0,Vt(r,"mounted")),e.data.keepAlive&&(t._isMounted?function(e){e._inactive=!1,Gt.push(e)}(r):Ht(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,r){if(r&&(t._directInactive=!0,Wt(t)))return;if(!t._inactive){t._inactive=!0;for(var n=0;n<t.$children.length;n++)e(t.$children[n]);Vt(t,"deactivated")}}(t,!0):t.$destroy())}},Dt=Object.keys(Lt);function Mt(e,t,o,l,c){if(!n(e)){var u=o.$options._base;if(s(e)&&(e=u.extend(e)),"function"===typeof e){var h;if(n(e.cid)&&(h=e,e=function(e,t){if(a(e.error)&&i(e.errorComp))return e.errorComp;if(i(e.resolved))return e.resolved;var r=jt;r&&i(e.owners)&&-1===e.owners.indexOf(r)&&e.owners.push(r);if(a(e.loading)&&i(e.loadingComp))return e.loadingComp;if(r&&!i(e.owners)){var o=e.owners=[r],l=!0,c=null,u=null;r.$on("hook:destroyed",(function(){return v(o,r)}));var h=function(e){for(var t=0,r=o.length;t<r;t++)o[t].$forceUpdate();e&&(o.length=0,null!==c&&(clearTimeout(c),c=null),null!==u&&(clearTimeout(u),u=null))},d=E((function(r){e.resolved=Rt(r,t),l?o.length=0:h(!0)})),p=E((function(t){i(e.errorComp)&&(e.error=!0,h(!0))})),g=e(d,p);return s(g)&&(f(g)?n(e.resolved)&&g.then(d,p):f(g.component)&&(g.component.then(d,p),i(g.error)&&(e.errorComp=Rt(g.error,t)),i(g.loading)&&(e.loadingComp=Rt(g.loading,t),0===g.delay?e.loading=!0:c=setTimeout((function(){c=null,n(e.resolved)&&n(e.error)&&(e.loading=!0,h(!1))}),g.delay||200)),i(g.timeout)&&(u=setTimeout((function(){u=null,n(e.resolved)&&p(null)}),g.timeout)))),l=!1,e.loading?e.loadingComp:e.resolved}}(h,u),void 0===e))return function(e,t,r,n,i){var a=fe();return a.asyncFactory=e,a.asyncMeta={data:t,context:r,children:n,tag:i},a}(h,t,o,l,c);t=t||{},dr(e),i(t.model)&&function(e,t){var r=e.model&&e.model.prop||"value",n=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[r]=t.model.value;var a=t.on||(t.on={}),o=a[n],s=t.model.callback;i(o)?(Array.isArray(o)?-1===o.indexOf(s):o!==s)&&(a[n]=[s].concat(o)):a[n]=s}(e.options,t);var d=function(e,t,r,a){var o=t.options.props;if(n(o))return et(e,t,{},a);var s={},l=e.attrs,c=e.props;if(i(l)||i(c))for(var u in o){var f=S(u);tt(s,c,u,f,!0)||tt(s,l,u,f,!1)}return et(e,t,s,a)}(t,e,0,o);if(a(e.options.functional))return function(e,t,n,a,o){var s=e.options,l={},c=s.props;if(i(c))for(var u in c)l[u]=Ie(u,c,t||r);else i(n.attrs)&&Ot(l,n.attrs),i(n.props)&&Ot(l,n.props);var f=new Pt(n,l,o,a,e),h=s.render.call(null,f._c,f);if(h instanceof ce)return Ct(h,n,f.parent,s,f);if(Array.isArray(h)){for(var d=rt(h)||[],p=new Array(d.length),g=0;g<d.length;g++)p[g]=Ct(d[g],n,f.parent,s,f);return p}}(e,d,t,o,l);var p=t.on;if(t.on=t.nativeOn,a(e.options.abstract)){var g=t.slot;t={},g&&(t.slot=g)}(function(e){for(var t=e.hook||(e.hook={}),r=0;r<Dt.length;r++){var n=Dt[r],i=t[n],a=Lt[n];i===a||i&&i._merged||(t[n]=i?It(a,i):a)}})(t);var y=e.options.name||c,x=new ce("vue-component-"+e.cid+(y?"-"+y:""),t,void 0,void 0,void 0,o,{Ctor:e,propsData:d,listeners:p,tag:c,children:l},h);return x}}}function It(e,t){var r=function(r,n){e(r,n),t(r,n)};return r._merged=!0,r}function Et(e,t,r,l,c,u){return(Array.isArray(r)||o(r))&&(c=l,l=r,r=void 0),a(u)&&(c=2),function(e,t,r,o,l){if(i(r)&&i(r.__ob__))return fe();i(r)&&i(r.is)&&(t=r.is);if(!t)return fe();0;Array.isArray(o)&&"function"===typeof o[0]&&(r=r||{},r.scopedSlots={default:o[0]},o.length=0);2===l?o=rt(o):1===l&&(o=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(o));var c,u;if("string"===typeof t){var f;u=e.$vnode&&e.$vnode.ns||R.getTagNamespace(t),c=R.isReservedTag(t)?new ce(R.parsePlatformTagName(t),r,o,void 0,void 0,e):r&&r.pre||!i(f=Me(e.$options,"components",t))?new ce(t,r,o,void 0,void 0,e):Mt(f,r,e,o,t)}else c=Mt(t,r,e,o);return Array.isArray(c)?c:i(c)?(i(u)&&function e(t,r,o){t.ns=r,"foreignObject"===t.tag&&(r=void 0,o=!0);if(i(t.children))for(var s=0,l=t.children.length;s<l;s++){var c=t.children[s];i(c.tag)&&(n(c.ns)||a(o)&&"svg"!==c.tag)&&e(c,r,o)}}(c,u),i(r)&&function(e){s(e.style)&&Ye(e.style);s(e.class)&&Ye(e.class)}(r),c):fe()}(e,t,r,l,c)}var Ft,jt=null;function Rt(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e)?t.extend(e):e}function Nt(e){return e.isComment&&e.asyncFactory}function $t(e,t){Ft.$on(e,t)}function Bt(e,t){Ft.$off(e,t)}function qt(e,t){var r=Ft;return function n(){var i=t.apply(null,arguments);null!==i&&r.$off(e,n)}}function Ut(e,t,r){Ft=e,function(e,t,r,i,o,s){var l,c,u,f;for(l in e)c=e[l],u=t[l],f=Qe(l),n(c)||(n(u)?(n(c.fns)&&(c=e[l]=Ze(c,s)),a(f.once)&&(c=e[l]=o(f.name,c,f.capture)),r(f.name,c,f.capture,f.passive,f.params)):c!==u&&(u.fns=c,e[l]=u));for(l in t)n(e[l])&&(f=Qe(l),i(f.name,t[l],f.capture))}(t,r||{},$t,Bt,qt,e),Ft=void 0}var zt=null;function Wt(e){while(e&&(e=e.$parent))if(e._inactive)return!0;return!1}function Ht(e,t){if(t){if(e._directInactive=!1,Wt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var r=0;r<e.$children.length;r++)Ht(e.$children[r]);Vt(e,"activated")}}function Vt(e,t){se();var r=e.$options[t],n=t+" hook";if(r)for(var i=0,a=r.length;i<a;i++)Ne(r[i],e,null,e,n);e._hasHookEvent&&e.$emit("hook:"+t),le()}var Kt=[],Gt=[],Xt={},Jt=!1,Yt=!1,Qt=0;var Zt=Date.now;if(W&&!G){var er=window.performance;er&&"function"===typeof er.now&&Zt()>document.createEvent("Event").timeStamp&&(Zt=function(){return er.now()})}function tr(){var e,t;for(Zt(),Yt=!0,Kt.sort((function(e,t){return e.id-t.id})),Qt=0;Qt<Kt.length;Qt++)e=Kt[Qt],e.before&&e.before(),t=e.id,Xt[t]=null,e.run();var r=Gt.slice(),n=Kt.slice();(function(){Qt=Kt.length=Gt.length=0,Xt={},Jt=Yt=!1})(),function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Ht(e[t],!0)}(r),function(e){var t=e.length;while(t--){var r=e[t],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&Vt(n,"updated")}}(n),ee&&R.devtools&&ee.emit("flush")}var rr=0,nr=function(e,t,r,n,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++rr,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new re,this.newDepIds=new re,this.expression="","function"===typeof t?this.getter=t:(this.getter=function(e){if(!q.test(e)){var t=e.split(".");return function(e){for(var r=0;r<t.length;r++){if(!e)return;e=e[t[r]]}return e}}}(t),this.getter||(this.getter=O)),this.value=this.lazy?void 0:this.get()};nr.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(jr){if(!this.user)throw jr;Re(jr,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ye(e),le(),this.cleanupDeps()}return e},nr.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},nr.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},nr.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==Xt[t]){if(Xt[t]=!0,Yt){var r=Kt.length-1;while(r>Qt&&Kt[r].id>e.id)r--;Kt.splice(r+1,0,e)}else Kt.push(e);Jt||(Jt=!0,Xe(tr))}}(this)},nr.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||s(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(jr){Re(jr,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},nr.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},nr.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},nr.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||v(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var ir={enumerable:!0,configurable:!0,get:O,set:O};function ar(e,t,r){ir.get=function(){return this[t][r]},ir.set=function(e){this[t][r]=e},Object.defineProperty(e,r,ir)}function or(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[],a=!e.$parent;a||ye(!1);var o=function(a){i.push(a);var o=Ie(a,t,r,e);_e(n,a,o),a in e||ar(e,"_props",a)};for(var s in t)o(s);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var r in t)e[r]="function"!==typeof t[r]?O:k(t[r],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;t=e._data="function"===typeof t?function(e,t){se();try{return e.call(t,t)}catch(jr){return Re(jr,t,"data()"),{}}finally{le()}}(t,e):t||{},c(t)||(t={});var r=Object.keys(t),n=e.$options.props,i=(e.$options.methods,r.length);while(i--){var a=r[i];0,n&&x(n,a)||$(a)||ar(e,"_data",a)}be(t,!0)}(e):be(e._data={},!0),t.computed&&function(e,t){var r=e._computedWatchers=Object.create(null),n=Z();for(var i in t){var a=t[i],o="function"===typeof a?a:a.get;0,n||(r[i]=new nr(e,o||O,O,sr)),i in e||lr(e,i,a)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i<n.length;i++)fr(e,r,n[i]);else fr(e,r,n)}}(e,t.watch)}var sr={lazy:!0};function lr(e,t,r){var n=!Z();"function"===typeof r?(ir.get=n?cr(t):ur(r),ir.set=O):(ir.get=r.get?n&&!1!==r.cache?cr(t):ur(r.get):O,ir.set=r.set||O),Object.defineProperty(e,t,ir)}function cr(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),oe.SharedObject.target&&t.depend(),t.value}}function ur(e){return function(){return e.call(this,this)}}function fr(e,t,r,n){return c(r)&&(n=r,r=r.handler),"string"===typeof r&&(r=e[r]),e.$watch(t,r,n)}var hr=0;function dr(e){var t=e.options;if(e.super){var r=dr(e.super),n=e.superOptions;if(r!==n){e.superOptions=r;var i=function(e){var t,r=e.options,n=e.sealedOptions;for(var i in r)r[i]!==n[i]&&(t||(t={}),t[i]=r[i]);return t}(e);i&&P(e.extendOptions,i),t=e.options=De(r,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function pr(e){this._init(e)}function gr(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var a=e.name||r.options.name;var o=function(e){this._init(e)};return o.prototype=Object.create(r.prototype),o.prototype.constructor=o,o.cid=t++,o.options=De(r.options,e),o["super"]=r,o.options.props&&function(e){var t=e.options.props;for(var r in t)ar(e.prototype,"_props",r)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var r in t)lr(e.prototype,r,t[r])}(o),o.extend=r.extend,o.mixin=r.mixin,o.use=r.use,F.forEach((function(e){o[e]=r[e]})),a&&(o.options.components[a]=o),o.superOptions=r.options,o.extendOptions=e,o.sealedOptions=P({},o.options),i[n]=o,o}}function vr(e){return e&&(e.Ctor.options.name||e.tag)}function yr(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===l.call(e)}(e)&&e.test(t)}function xr(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var a in r){var o=r[a];if(o){var s=vr(o.componentOptions);s&&!t(s)&&mr(r,a,n,i)}}}function mr(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,v(r,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=hr++,t._isVue=!0,e&&e._isComponent?function(e,t){var r=e.$options=Object.create(e.constructor.options),n=t._parentVnode;r.parent=t.parent,r._parentVnode=n;var i=n.componentOptions;r.propsData=i.propsData,r._parentListeners=i.listeners,r._renderChildren=i.children,r._componentTag=i.tag,t.render&&(r.render=t.render,r.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=De(dr(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,r=t.parent;if(r&&!t.abstract){while(r.$options.abstract&&r.$parent)r=r.$parent;r.$children.push(e)}e.$parent=r,e.$root=r?r.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ut(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,i=n&&n.context;e.$slots=st(t._renderChildren,i),e.$scopedSlots=r,e._c=function(t,r,n,i){return Et(e,t,r,n,i,!1)},e.$createElement=function(t,r,n,i){return Et(e,t,r,n,i,!0)};var a=n&&n.data;_e(e,"$attrs",a&&a.attrs||r,null,!0),_e(e,"$listeners",t._parentListeners||r,null,!0)}(t),Vt(t,"beforeCreate"),!t._$fallback&&at(t),or(t),!t._$fallback&&it(t),!t._$fallback&&Vt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(pr),function(e){var t={get:function(){return this._data}},r={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",r),e.prototype.$set=we,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,r){if(c(t))return fr(this,e,t,r);r=r||{},r.user=!0;var n=new nr(this,e,t,r);if(r.immediate)try{t.call(this,n.value)}catch(i){Re(i,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(pr),function(e){var t=/^hook:/;e.prototype.$on=function(e,r){var n=this;if(Array.isArray(e))for(var i=0,a=e.length;i<a;i++)n.$on(e[i],r);else(n._events[e]||(n._events[e]=[])).push(r),t.test(e)&&(n._hasHookEvent=!0);return n},e.prototype.$once=function(e,t){var r=this;function n(){r.$off(e,n),t.apply(r,arguments)}return n.fn=t,r.$on(e,n),r},e.prototype.$off=function(e,t){var r=this;if(!arguments.length)return r._events=Object.create(null),r;if(Array.isArray(e)){for(var n=0,i=e.length;n<i;n++)r.$off(e[n],t);return r}var a,o=r._events[e];if(!o)return r;if(!t)return r._events[e]=null,r;var s=o.length;while(s--)if(a=o[s],a===t||a.fn===t){o.splice(s,1);break}return r},e.prototype.$emit=function(e){var t=this,r=t._events[e];if(r){r=r.length>1?T(r):r;for(var n=T(arguments,1),i='event handler for "'+e+'"',a=0,o=r.length;a<o;a++)Ne(r[a],t,n,t,i)}return t}}(pr),function(e){e.prototype._update=function(e,t){var r=this,n=r.$el,i=r._vnode,a=function(e){var t=zt;return zt=e,function(){zt=t}}(r);r._vnode=e,r.$el=i?r.__patch__(i,e):r.__patch__(r.$el,e,t,!1),a(),n&&(n.__vue__=null),r.$el&&(r.$el.__vue__=r),r.$vnode&&r.$parent&&r.$vnode===r.$parent._vnode&&(r.$parent.$el=r.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Vt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||v(t.$children,e),e._watcher&&e._watcher.teardown();var r=e._watchers.length;while(r--)e._watchers[r].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Vt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(pr),function(e){Tt(e.prototype),e.prototype.$nextTick=function(e){return Xe(e,this)},e.prototype._render=function(){var e,t=this,r=t.$options,n=r.render,i=r._parentVnode;i&&(t.$scopedSlots=ct(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{jt=t,e=n.call(t._renderProxy,t.$createElement)}catch(jr){Re(jr,t,"render"),e=t._vnode}finally{jt=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof ce||(e=fe()),e.parent=i,e}}(pr);var br=[String,RegExp,Array],_r={name:"keep-alive",abstract:!0,props:{include:br,exclude:br,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)mr(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){xr(e,(function(e){return yr(t,e)}))})),this.$watch("exclude",(function(t){xr(e,(function(e){return!yr(t,e)}))}))},render:function(){var e=this.$slots.default,t=function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];if(i(r)&&(i(r.componentOptions)||Nt(r)))return r}}(e),r=t&&t.componentOptions;if(r){var n=vr(r),a=this.include,o=this.exclude;if(a&&(!n||!yr(a,n))||o&&n&&yr(o,n))return t;var s=this.cache,l=this.keys,c=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;s[c]?(t.componentInstance=s[c].componentInstance,v(l,c),l.push(c)):(s[c]=t,l.push(c),this.max&&l.length>parseInt(this.max)&&mr(s,l[0],l,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},wr={KeepAlive:_r};(function(e){var t={get:function(){return R}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:P,mergeOptions:De,defineReactive:_e},e.set=we,e.delete=Ae,e.nextTick=Xe,e.observable=function(e){return be(e),e},e.options=Object.create(null),F.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,P(e.options.components,wr),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var r=T(arguments,1);return r.unshift(this),"function"===typeof e.install?e.install.apply(e,r):"function"===typeof e&&e.apply(null,r),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),gr(e),function(e){F.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&c(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"===typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}(e)})(pr),Object.defineProperty(pr.prototype,"$isServer",{get:Z}),Object.defineProperty(pr.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(pr,"FunctionalRenderContext",{value:Pt}),pr.version="2.6.11";var Ar="[object Array]",Sr="[object Object]";function kr(e,t){var r={};return function e(t,r){if(t===r)return;var n=Pr(t),i=Pr(r);if(n==Sr&&i==Sr){if(Object.keys(t).length>=Object.keys(r).length)for(var a in r){var o=t[a];void 0===o?t[a]=null:e(o,r[a])}}else n==Ar&&i==Ar&&t.length>=r.length&&r.forEach((function(r,n){e(t[n],r)}))}(e,t),function e(t,r,n,i){if(t===r)return;var a=Pr(t),o=Pr(r);if(a==Sr)if(o!=Sr||Object.keys(t).length<Object.keys(r).length)Tr(i,n,t);else{var s=function(a){var o=t[a],s=r[a],l=Pr(o),c=Pr(s);if(l!=Ar&&l!=Sr)o!==r[a]&&function(e,t){if(("[object Null]"===e||"[object Undefined]"===e)&&("[object Null]"===t||"[object Undefined]"===t))return!1;return!0}(l,c)&&Tr(i,(""==n?"":n+".")+a,o);else if(l==Ar)c!=Ar||o.length<s.length?Tr(i,(""==n?"":n+".")+a,o):o.forEach((function(t,r){e(t,s[r],(""==n?"":n+".")+a+"["+r+"]",i)}));else if(l==Sr)if(c!=Sr||Object.keys(o).length<Object.keys(s).length)Tr(i,(""==n?"":n+".")+a,o);else for(var u in o)e(o[u],s[u],(""==n?"":n+".")+a+"."+u,i)};for(var l in t)s(l)}else a==Ar?o!=Ar||t.length<r.length?Tr(i,n,t):t.forEach((function(t,a){e(t,r[a],n+"["+a+"]",i)})):Tr(i,n,t)}(e,t,"",r),r}function Tr(e,t,r){e[t]=r}function Pr(e){return Object.prototype.toString.call(e)}function Cr(e){if(e.__next_tick_callbacks&&e.__next_tick_callbacks.length){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"房票科技",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var t=e.$scope;console.log("["+ +new Date+"]["+(t.is||t.route)+"]["+e._uid+"]:flushCallbacks["+e.__next_tick_callbacks.length+"]")}var r=e.__next_tick_callbacks.slice(0);e.__next_tick_callbacks.length=0;for(var n=0;n<r.length;n++)r[n]()}}function Or(e,t){if(!e.__next_tick_pending&&!function(e){return Kt.find((function(t){return e._watcher===t}))}(e)){if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"房票科技",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var r=e.$scope;console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+e._uid+"]:nextVueTick")}return Xe(t,e)}if(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"房票科技",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG){var n=e.$scope;console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+e._uid+"]:nextMPTick")}var i;if(e.__next_tick_callbacks||(e.__next_tick_callbacks=[]),e.__next_tick_callbacks.push((function(){if(t)try{t.call(e)}catch(jr){Re(jr,e,"nextTick")}else i&&i(e)})),!t&&"undefined"!==typeof Promise)return new Promise((function(e){i=e}))}function Lr(e,t){return t&&(t._isVue||t.__v_isMPComponent)?{}:t}function Dr(){}function Mr(e){return Array.isArray(e)?function(e){for(var t,r="",n=0,a=e.length;n<a;n++)i(t=Mr(e[n]))&&""!==t&&(r&&(r+=" "),r+=t);return r}(e):s(e)?function(e){var t="";for(var r in e)e[r]&&(t&&(t+=" "),t+=r);return t}(e):"string"===typeof e?e:""}var Ir=m((function(e){var t={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(r);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));var Er=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Fr=["onLaunch","onShow","onHide","onUniNViewMessage","onPageNotFound","onThemeChange","onError","onUnhandledRejection","onInit","onLoad","onReady","onUnload","onPullDownRefresh","onReachBottom","onTabItemTap","onAddToFavorites","onShareTimeline","onShareAppMessage","onResize","onPageScroll","onNavigationBarButtonTap","onBackPress","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputClicked","onUploadDouyinVideo","onNFCReadMessage","onPageShow","onPageHide","onPageResize"];pr.prototype.__patch__=function(e,t){var r=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var n=this.$scope,i=Object.create(null);try{i=function(e){var t=Object.create(null),r=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));r.reduce((function(t,r){return t[r]=e[r],t}),t);var n=e.__composition_api_state__||e.__secret_vfa_state__,i=n&&n.rawBindings;return i&&Object.keys(i).forEach((function(r){t[r]=e[r]})),Object.assign(t,e.$mp.data||{}),Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field")&&(t["name"]=e.name,t["value"]=e.value),JSON.parse(JSON.stringify(t,Lr))}(this)}catch(s){console.error(s)}i.__webviewId__=n.data.__webviewId__;var a=Object.create(null);Object.keys(i).forEach((function(e){a[e]=n.data[e]}));var o=!1===this.$shouldDiffData?i:kr(i,a);Object.keys(o).length?(Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"房票科技",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(n.is||n.route)+"]["+this._uid+"]差量更新",JSON.stringify(o)),this.__next_tick_pending=!0,n.setData(o,(function(){r.__next_tick_pending=!1,Cr(r)}))):Cr(this)}},pr.prototype.$mount=function(e,t){return function(e,t,r){return e.mpType?("app"===e.mpType&&(e.$options.render=Dr),e.$options.render||(e.$options.render=Dr),!e._$fallback&&Vt(e,"beforeMount"),new nr(e,(function(){e._update(e._render(),r)}),O,{before:function(){e._isMounted&&!e._isDestroyed&&Vt(e,"beforeUpdate")}},!0),r=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var r=e.methods;return r&&Object.keys(r).forEach((function(t){-1!==Fr.indexOf(t)&&(e[t]=r[t],delete r[t])})),t.call(this,e)};var r=e.config.optionMergeStrategies,n=r.created;Fr.forEach((function(e){r[e]=n})),e.prototype.__lifecycle_hooks__=Fr}(pr),function(e){e.config.errorHandler=function(t,r,n){e.util.warn("Error in "+n+': "'+t.toString()+'"',r),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){if(this.$scope&&e){var r=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(r)try{r.call(this.$scope,e,{__args__:T(arguments,1)})}catch(n){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return Or(this,e)},Er.forEach((function(t){e.prototype[t]=function(e){return this.$scope&&this.$scope[t]?this.$scope[t](e):"undefined"!==typeof my?"createSelectorQuery"===t?my.createSelectorQuery(e):"createIntersectionObserver"===t?my.createIntersectionObserver(e):void 0:void 0}})),e.prototype.__init_provide=it,e.prototype.__init_injections=at,e.prototype.__call_hook=function(e,t){var r=this;se();var n,i=r.$options[e],a=e+" hook";if(i)for(var o=0,s=i.length;o<s;o++)n=Ne(i[o],r,t?[t]:null,r,a);return r._hasHookEvent&&r.$emit("hook:"+e,t),le(),n},e.prototype.__set_model=function(t,r,n,i){Array.isArray(i)&&(-1!==i.indexOf("trim")&&(n=n.trim()),-1!==i.indexOf("number")&&(n=this._n(n))),t||(t=this),e.set(t,r,n)},e.prototype.__set_sync=function(t,r,n){t||(t=this),e.set(t,r,n)},e.prototype.__get_orig=function(e){return c(e)&&e["$orig"]||e},e.prototype.__get_value=function(e,t){return function e(t,r){var n=r.split("."),i=n[0];return 0===i.indexOf("__$n")&&(i=parseInt(i.replace("__$n",""))),1===n.length?t[i]:e(t[i],n.slice(1).join("."))}(t||this,e)},e.prototype.__get_class=function(e,t){return function(e,t){return i(e)||i(t)?function(e,t){return e?t?e+" "+t:e:t||""}(e,Mr(t)):""}(t,e)},e.prototype.__get_style=function(e,t){if(!e&&!t)return"";var r=function(e){return Array.isArray(e)?C(e):"string"===typeof e?Ir(e):e}(e),n=t?P(t,r):r;return Object.keys(n).map((function(e){return S(e)+":"+n[e]})).join(";")},e.prototype.__map=function(e,t){var r,n,i,a,o;if(Array.isArray(e)){for(r=new Array(e.length),n=0,i=e.length;n<i;n++)r[n]=t(e[n],n);return r}if(s(e)){for(a=Object.keys(e),r=Object.create(null),n=0,i=a.length;n<i;n++)o=a[n],r[o]=t(e[o],o,n);return r}if("number"===typeof e){for(r=new Array(e),n=0,i=e;n<i;n++)r[n]=t(n,n);return r}return[]}}(pr),t["default"]=pr}.call(this,r("c8ba"))},"675e":function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;for(var i=n(r("970b")),a=n(r("5bc3")),o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},s={L:1,M:0,Q:3,H:2},l={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},c={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]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){var t=e<<10;while(c.getBCHDigit(t)-c.getBCHDigit(c.G15)>=0)t^=c.G15<<c.getBCHDigit(t)-c.getBCHDigit(c.G15);return(e<<10|t)^c.G15_MASK},getBCHTypeNumber:function(e){var t=e<<12;while(c.getBCHDigit(t)-c.getBCHDigit(c.G18)>=0)t^=c.G18<<c.getBCHDigit(t)-c.getBCHDigit(c.G18);return e<<12|t},getBCHDigit:function(e){var t=0;while(0!=e)t++,e>>>=1;return t},getPatternPosition:function(e){return c.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,r){switch(e){case l.PATTERN000:return(t+r)%2==0;case l.PATTERN001:return t%2==0;case l.PATTERN010:return r%3==0;case l.PATTERN011:return(t+r)%3==0;case l.PATTERN100:return(Math.floor(t/2)+Math.floor(r/3))%2==0;case l.PATTERN101:return t*r%2+t*r%3==0;case l.PATTERN110:return(t*r%2+t*r%3)%2==0;case l.PATTERN111:return(t*r%3+(t+r)%2)%2==0;default:w("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new v([1],0),r=0;r<e;r++)t=t.multiply(new v([1,u.gexp(r)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:return 8;case o.MODE_KANJI:return 8;default:w("mode:"+e)}else if(t<27)switch(e){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:w("mode:"+e)}else if(t<41)switch(e){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:w("mode:"+e)}else w("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),r=0,n=0;n<t;n++)for(var i=0;i<t;i++){for(var a=0,o=e.isDark(n,i),s=-1;s<=1;s++)if(!(n+s<0||t<=n+s))for(var l=-1;l<=1;l++)i+l<0||t<=i+l||0==s&&0==l||o==e.isDark(n+s,i+l)&&a++;a>5&&(r+=3+a-5)}for(n=0;n<t-1;n++)for(i=0;i<t-1;i++){var c=0;e.isDark(n,i)&&c++,e.isDark(n+1,i)&&c++,e.isDark(n,i+1)&&c++,e.isDark(n+1,i+1)&&c++,0!=c&&4!=c||(r+=3)}for(n=0;n<t;n++)for(i=0;i<t-6;i++)e.isDark(n,i)&&!e.isDark(n,i+1)&&e.isDark(n,i+2)&&e.isDark(n,i+3)&&e.isDark(n,i+4)&&!e.isDark(n,i+5)&&e.isDark(n,i+6)&&(r+=40);for(i=0;i<t;i++)for(n=0;n<t-6;n++)e.isDark(n,i)&&!e.isDark(n+1,i)&&e.isDark(n+2,i)&&e.isDark(n+3,i)&&e.isDark(n+4,i)&&!e.isDark(n+5,i)&&e.isDark(n+6,i)&&(r+=40);var u=0;for(i=0;i<t;i++)for(n=0;n<t;n++)e.isDark(n,i)&&u++;var f=Math.abs(100*u/t/t-50)/5;return r+=10*f,r}},u={glog:function(e){return e<1&&w("glog("+e+")"),u.LOG_TABLE[e]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return u.EXP_TABLE[e]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},f=0;f<8;f++)u.EXP_TABLE[f]=1<<f;for(var h=8;h<256;h++)u.EXP_TABLE[h]=u.EXP_TABLE[h-4]^u.EXP_TABLE[h-5]^u.EXP_TABLE[h-6]^u.EXP_TABLE[h-8];for(var d=0;d<255;d++)u.LOG_TABLE[u.EXP_TABLE[d]]=d;var p=function(){function e(t){(0,i.default)(this,e),this.mode=o.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var r=0,n=this.data.length;r<n;r++){var a=[],s=this.data.charCodeAt(r);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,this.parsedData.push(a)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!==this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}return(0,a.default)(e,[{key:"getLength",value:function(e){return this.parsedData.length}},{key:"write",value:function(e){for(var t=0,r=this.parsedData.length;t<r;t++)e.put(this.parsedData[t],8)}}]),e}(),g=function(){function e(t,r){(0,i.default)(this,e),this.typeNumber=t,this.errorCorrectLevel=r,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}return(0,a.default)(e,[{key:"addData",value:function(e){var t=new p(e);this.dataList.push(t),this.dataCache=null}},{key:"isDark",value:function(e,t){return(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)&&w(e+","+t),this.modules[e][t]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(t,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(t,r),this.typeNumber>=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=e.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)}},{key:"setupPositionProbePattern",value:function(e,t){for(var r=-1;r<=7;r++)if(!(e+r<=-1||this.moduleCount<=e+r))for(var n=-1;n<=7;n++)t+n<=-1||this.moduleCount<=t+n||(this.modules[e+r][t+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(){for(var e=0,t=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=c.getLostPoint(this);(0==r||e>n)&&(e=n,t=r)}return t}},{key:"setupTimingPattern",value:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var e=c.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var r=0;r<e.length;r++){var n=e[t],i=e[r];if(null==this.modules[n][i])for(var a=-2;a<=2;a++)for(var o=-2;o<=2;o++)this.modules[n+a][i+o]=-2==a||2==a||-2==o||2==o||0==a&&0==o}}},{key:"setupTypeNumber",value:function(e){for(var t=c.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++)this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=!e&&1==(t>>r&1);for(var n=0;n<18;n++)this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=!e&&1==(t>>n&1)}},{key:"setupTypeInfo",value:function(e,t){for(var r=this.errorCorrectLevel<<3|t,n=c.getBCHTypeInfo(r),i=0;i<15;i++){var a=!e&&1==(n>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(var o=0;o<15;o++){var s=!e&&1==(n>>o&1);o<8?this.modules[8][this.moduleCount-o-1]=s:o<9?this.modules[8][15-o-1+1]=s:this.modules[8][15-o-1]=s}this.modules[this.moduleCount-8][8]=!e}},{key:"mapData",value:function(e,t){for(var r=-1,n=this.moduleCount-1,i=7,a=0,o=this.moduleCount-1;o>0;o-=2){6==o&&o--;while(1){for(var s=0;s<2;s++)if(null==this.modules[n][o-s]){var l=!1;a<e.length&&(l=1==(e[a]>>>i&1));var u=c.getMask(t,n,o-s);u&&(l=!l),this.modules[n][o-s]=l,i--,-1==i&&(a++,i=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}}}]),e}();g.PAD0=236,g.PAD1=17,g.createData=function(e,t,r){for(var n=y.getRSBlocks(e,t),i=new x,a=0;a<r.length;a++){var o=r[a];i.put(o.mode,4),i.put(o.getLength(),c.getLengthInBits(o.mode,e)),o.write(i)}for(var s=0,l=0;l<n.length;l++)s+=n[l].dataCount;i.getLengthInBits()>8*s&&w("code length overflow. ("+i.getLengthInBits()+">"+8*s+")"),i.getLengthInBits()+4<=8*s&&i.put(0,4);while(i.getLengthInBits()%8!=0)i.putBit(!1);while(1){if(i.getLengthInBits()>=8*s)break;if(i.put(g.PAD0,8),i.getLengthInBits()>=8*s)break;i.put(g.PAD1,8)}return g.createBytes(i,n)},g.createBytes=function(e,t){for(var r=0,n=0,i=0,a=new Array(t.length),o=new Array(t.length),s=0;s<t.length;s++){var l=t[s].dataCount,u=t[s].totalCount-l;n=Math.max(n,l),i=Math.max(i,u),a[s]=new Array(l);for(var f=0;f<a[s].length;f++)a[s][f]=255&e.buffer[f+r];r+=l;var h=c.getErrorCorrectPolynomial(u),d=new v(a[s],h.getLength()-1),p=d.mod(h);o[s]=new Array(h.getLength()-1);for(var g=0;g<o[s].length;g++){var y=g+p.getLength()-o[s].length;o[s][g]=y>=0?p.get(y):0}}for(var x=0,m=0;m<t.length;m++)x+=t[m].totalCount;for(var b=new Array(x),_=0,w=0;w<n;w++)for(var A=0;A<t.length;A++)w<a[A].length&&(b[_++]=a[A][w]);for(var S=0;S<i;S++)for(var k=0;k<t.length;k++)S<o[k].length&&(b[_++]=o[k][S]);return b};var v=function(){function e(t,r){(0,i.default)(this,e),void 0==t.length&&w(t.length+"/"+r);var n=0;while(n<t.length&&0==t[n])n++;this.num=new Array(t.length-n+r);for(var a=0;a<t.length-n;a++)this.num[a]=t[a+n]}return(0,a.default)(e,[{key:"get",value:function(e){return this.num[e]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(t){for(var r=new Array(this.getLength()+t.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<t.getLength();i++)r[n+i]^=u.gexp(u.glog(this.get(n))+u.glog(t.get(i)));return new e(r,0)}},{key:"mod",value:function(t){if(this.getLength()-t.getLength()<0)return this;for(var r=u.glog(this.get(0))-u.glog(t.get(0)),n=new Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(var a=0;a<t.getLength();a++)n[a]^=u.gexp(u.glog(t.get(a))+r);return new e(n,0).mod(t)}}]),e}(),y=(0,a.default)((function e(t,r){(0,i.default)(this,e),this.totalCount=t,this.dataCount=r}));y.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]],y.getRSBlocks=function(e,t){var r=y.getRsBlockTable(e,t);r||w("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var n=r.length/3,i=[],a=0;a<n;a++)for(var o=r[3*a],s=r[3*a+1],l=r[3*a+2],c=0;c<o;c++)i.push(new y(s,l));return i},y.getRsBlockTable=function(e,t){switch(t){case s.L:return y.RS_BLOCK_TABLE[4*(e-1)];case s.M:return y.RS_BLOCK_TABLE[4*(e-1)+1];case s.Q:return y.RS_BLOCK_TABLE[4*(e-1)+2];case s.H:return y.RS_BLOCK_TABLE[4*(e-1)+3];default:return}};var x=function(){function e(){(0,i.default)(this,e),this.buffer=[],this.length=0}return(0,a.default)(e,[{key:"get",value:function(e){var t=Math.floor(e/8);return 1==(this.buffer[t]>>>7-e%8&1)}},{key:"put",value:function(e,t){for(var r=0;r<t;r++)this.putBit(1==(e>>>t-r-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}}]),e}(),m=function(){function t(r,n){(0,i.default)(this,t),this._opts=n,this._el=r,this._ctx=e.createCanvasContext(r)}return(0,a.default)(t,[{key:"draw",value:function(t){var r=this._ctx,n=this._opts,i=n.width/20,a=t.getModuleCount(),o=(n.width-2*i)/a,s=(n.height-2*i)/a,l=Math.round(o),c=Math.round(s);this.clear(),r.setFillStyle("#fff"),r.fillRect(0,0,this._opts.width+4*i,this._opts.width+4*i);for(var u=0;u<a;u++)for(var f=0;f<a;f++){var h=t.isDark(u,f),d=f*o+i,p=u*s+i;r.setStrokeStyle(h?n.colorDark:n.colorLight),r.setLineWidth(1),r.setFillStyle(h?n.colorDark:n.colorLight),r.fillRect(d,p,o,s),r.strokeRect(Math.floor(d)+.5,Math.floor(p)+.5,l,c),r.strokeRect(Math.ceil(d)-.5,Math.ceil(p)-.5,l,c)}this._opts.logo&&this.drawImg(this._opts.logo,this._opts.width,r),r.draw(),this._bIsPainted=!0,this._opts.successTips&&_&&(e.hideLoading(),e.showToast({title:"生成成功",icon:"success",duration:1e3})),_=!0}},{key:"clear",value:function(){this._ctx.clearRect(0,0,this._opts.width,this._opts.height)}},{key:"drawImg",value:function(e,t,r){var n=t/5,i=t/5*2,a=t/80;r.setFillStyle("#fff"),r.fillRect(i-a,i-a,n+2*a,n+2*a),r.beginPath(),r.moveTo(i-a,i-a),r.stroke(),r.closePath(),r.drawImage(e,i,i,n,n),r.beginPath()}}]),t}(),b=function(){function e(e,t){for(var r=1,n=function(e){var t=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return t.length+(t.length!=e?3:0)}(e),i=[[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]],a=0,o=i.length;a<=o;a++){var l=0;switch(t){case s.L:l=i[a][0];break;case s.M:l=i[a][1];break;case s.Q:l=i[a][2];break;case s.H:l=i[a][3];break}if(n<=l)break;r++}return r>i.length&&w("Too long data"),r}var t=function(){function t(e,r){if((0,i.default)(this,t),this._opts={width:300,height:300,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:t.correctLevel.H,logo:!1,successTips:!1},"string"===typeof r&&(r={text:r}),r)for(var n in r)r.hasOwnProperty(n)&&(this._opts[n]=r[n]);this._el=e,this._QRCode=null,this._drawing=new m(this._el,this._opts),this._opts.text&&this.makeCode(this._opts.text)}return(0,a.default)(t,[{key:"makeCode",value:function(t){this._QRCode=new g(e(t,this._opts.correctLevel),this._opts.correctLevel),this._QRCode.addData(t),this._QRCode.make(),this._drawing.draw(this._QRCode)}},{key:"clear",value:function(){this._drawing.clear()}}]),t}();return t.correctLevel=s,t}(),_=!0;function w(t){e.hideLoading(),e.showToast({title:"有字符暂不支持",icon:"none",duration:2e3}),_=!1}var A=b;t.default=A}).call(this,r("543d")["default"])},"6a11":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7037")),a=n(r("6a7f"));var o=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=(0,a.default)(t),"object"!==(0,i.default)(t)||"object"!==(0,i.default)(r))return!1;for(var n in r)r.hasOwnProperty(n)&&(n in t?"object"!==(0,i.default)(t[n])||"object"!==(0,i.default)(r[n])?t[n]=r[n]:t[n].concat&&r[n].concat?t[n]=t[n].concat(r[n]):t[n]=e(t[n],r[n]):t[n]=r[n]);return t};t.default=o},"6a7f":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7037"));var a=function e(t){if([null,void 0,NaN,!1].includes(t))return t;if("object"!==(0,i.default)(t)&&"function"!==typeof t)return t;var r=function(e){return"[object Array]"===Object.prototype.toString.call(e)}(t)?[]:{};for(var n in t)t.hasOwnProperty(n)&&(r[n]="object"===(0,i.default)(t[n])?e(t[n]):t[n]);return r};t.default=a},"6b02":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=this.$parent;while(r)if(r.$options.name!==e)r=r.$parent;else{var n=function(){var e={};if(Array.isArray(t))t.map((function(t){e[t]=r[t]?r[t]:""}));else for(var n in t)Array.isArray(t[n])?t[n].length?e[n]=t[n]:e[n]=r[n]:t[n].constructor===Object?Object.keys(t[n]).length?e[n]=t[n]:e[n]=r[n]:e[n]=t[n]||!1===t[n]?t[n]:r[n];return{v:e}}();if("object"===(0,i.default)(n))return n.v}return{}};var i=n(r("7037"))},"6b1f":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"首页"}},{path:"pages/index/web",style:{navigationBarTitleText:"小程序使用说明",enablePullDownRefresh:!1}},{path:"pages/user/login/login",style:{navigationBarTitleText:"登录",enablePullDownRefresh:!1}},{path:"pages/user/login/register",style:{navigationBarTitleText:"注册",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/create",style:{navigationBarTitleText:"客户推荐",enablePullDownRefresh:!1}},{path:"pages/agent/activity/list",style:{navigationBarTitleText:"活动列表",enablePullDownRefresh:!1}},{path:"pages/agent/activity/join",style:{navigationBarTitleText:"活动报名",enablePullDownRefresh:!1}},{path:"pages/agent/activity/join2",style:{navigationBarTitleText:"踩盘报名",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/createin",style:{navigationBarTitleText:"内部报备",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/list",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/agent/recommend/estate",style:{navigationStyle:"custom",enablePullDownRefresh:!0}},{path:"pages/agent/recommend/check",style:{navigationBarTitleText:"报备审核",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/detail",style:{navigationBarTitleText:"报备详情",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/detailGovern",style:{navigationBarTitleText:"报备详情",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/visitimg",style:{navigationBarTitleText:"到访凭证和认购资料",enablePullDownRefresh:!1}},{path:"pages/agent/recommend/detail2",style:{navigationBarTitleText:"客户详情-案场",enablePullDownRefresh:!1}},{path:"pages/cust/create",style:{navigationBarTitleText:"添加客户",enablePullDownRefresh:!1}},{path:"pages/cust/list",style:{navigationBarTitleText:"客户列表",enablePullDownRefresh:!0}},{path:"pages/cust/mycreate",style:{navigationBarTitleText:"添加我的客户",enablePullDownRefresh:!1}},{path:"pages/cust/myrecord",style:{navigationBarTitleText:"客户跟进记录",enablePullDownRefresh:!1}},{path:"pages/cust/myrecordedit",style:{navigationBarTitleText:"客户跟进记录添加",enablePullDownRefresh:!1}},{path:"pages/cust/my",style:{navigationBarTitleText:"我的客户列表",enablePullDownRefresh:!0}},{path:"pages/user/setting/setting",style:{navigationBarTitleText:"设置",enablePullDownRefresh:!1}},{path:"pages/user/setting/profile",style:{navigationBarTitleText:"个人信息",enablePullDownRefresh:!1}},{path:"pages/user/setting/bank",style:{navigationBarTitleText:"认证身份信息",enablePullDownRefresh:!1}},{path:"pages/saler/list",style:{navigationBarTitleText:"我的门店",enablePullDownRefresh:!1}},{path:"pages/saler/check",style:{navigationBarTitleText:"认证审核列表",enablePullDownRefresh:!1}},{path:"pages/saler/deal",style:{navigationBarTitleText:"认证审核",enablePullDownRefresh:!1}},{path:"pages/agreement/agreement",style:{navigationBarTitleText:"用户协议",enablePullDownRefresh:!1}},{path:"pages/agreement/agreement2",style:{navigationBarTitleText:"隐私协议",enablePullDownRefresh:!1}},{path:"pages/estate/list",style:{navigationBarTitleText:"楼盘列表",enablePullDownRefresh:!1}},{path:"pages/estate/dtl",style:{navigationBarTitleText:"楼盘详情",enablePullDownRefresh:!1}},{path:"pages/estate/libPre",style:{navigationBarTitleText:"选择区域",enablePullDownRefresh:!1}},{path:"pages/estate/lib",style:{navigationBarTitleText:"内部各楼盘各平台佣金汇集(请勿外传)",enablePullDownRefresh:!1}},{path:"pages/agent/report/buycheck",style:{navigationBarTitleText:"认购审核列表",enablePullDownRefresh:!1}},{path:"pages/agent/report/deal",style:{navigationBarTitleText:"认购审核操作",enablePullDownRefresh:!1}},{path:"pages/user/setting/avatar",style:{navigationBarTitleText:"头像",enablePullDownRefresh:!1}},{path:"pages/trade/list",style:{navigationBarTitleText:"成交单列表",enablePullDownRefresh:!1}},{path:"pages/trade/create",style:{navigationBarTitleText:"添加成交单",enablePullDownRefresh:!1}},{path:"pages/trade/record",style:{navigationBarTitleText:"成交单详情",enablePullDownRefresh:!1}},{path:"pages/trade/check",style:{navigationBarTitleText:"成交单审核",enablePullDownRefresh:!1}},{path:"pages/trade/recordedit",style:{navigationBarTitleText:"成交单详情编辑",enablePullDownRefresh:!1}},{path:"pages/trade/recordTrade1",style:{navigationBarTitleText:"签订合同",enablePullDownRefresh:!1}},{path:"pages/trade/recordTrade2",style:{navigationBarTitleText:"合同流程",enablePullDownRefresh:!1}},{path:"pages/shop/chart",style:{navigationBarTitleText:"门店统计",enablePullDownRefresh:!1}},{path:"pages/shop/map",style:{navigationBarTitleText:"门店地图",enablePullDownRefresh:!1}}],globalStyle:{navigationBarTextStyle:"white",navigationBarBackgroundColor:"#2080f0",navigationBarTitleText:"",backgroundColor:"#F8F8F8"}}},"6b58":function(e,t,r){var n=r("7037")["default"],i=r("3c96");e.exports=function(e,t){if(t&&("object"===n(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},"6e1f":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAADqklEQVR4Xu1b71XbMBDXWQOUDQoTNH4+8xWYoGUDmKCwQTsBMEHTCcoGha9EfqYTlE7QZID4+o7KeY5t2VaebJxE/kZ8Pt39dLp/OkDs+QN7rr/wAHgL2HME/BHYcwOwc4JPT0+TIAhOAOCgb+CIaJ5l2ePx8fFzn2t1PgKz2ewGAK76FKaONxHdxnF83de6nQBIkuSKiG76EqKNLwBcR1F020a3yftOACilUiHEZJMFHH3zjIihI15rbLoCQH0sbsMTETvJasOTaTsxVUp5AJqQBYDHLMu+5DRBEEyafAYRfRVCPOT02rl+bFpjzBawkFIehmE4LyqglGKn9blGqe+IeFH+XSn1IoR4bwJhtADw7kdRdFoWfDabnQLAz/LvvPtxHK+sJX+fJMkDEZ14AAwIjNYChBAviHhUltuUO+ycBWjFrxDxLgchTdPD5XLJ5n9Ys6Gc4p4VU9wkSS6I6FtLCJsi4qVtmGuj35ow2KaIjir3xY3o8M325AFdlNE0VpaySxawwoiIzuI4XuUZjTlMF2THkAl2kTOnMTnaOh47aQGm3KRvABYA8ExE3Cz50GHHfgHAnIg4UhgzwA58KiSDAwAAl1EUTUthkM9gnWKcOk/CMOTU9/VRSn0SQvzYRNnaXTVkp31ZwB9ErMR714mQDTiDWsBQtYAHwAKBQS1ACDGXUh45KId/G1JnC9X/kw4NAK/Jpewtt7L5DynlKRFVSt5CnGbaey3sAQBwf4AdoZPnLQBwIrgrJh6AgcOgq41zxsdbgLeA+j5lX5kg810IIaZ5FAiCgKOAscGp2+jFtjhHAWf1wOBHQOcBq9xe5/cc5iq9/jrh0jQ9WC6X/P07F45gUABMi5kKnE2bojbAjAIA1/cCowVACFF7c2vq9O6cBfDOZFkWlic5lFLcFq/cGDFgUsqzYu2gJ0+Y3snkyaBHQJsm1wDFURbuD9TdCeSWzA6v6DR59sCk/ILrjOJlqq4huHbg6FFxnG8BgM0RtaJt6vCami47BUDTnaDJ0XoAdikV9hbQMBvkj4BhCMP7AO8Dhi+HrWK7DfGbO0Fdqv61EdolbV2pnfM3VZzOfIBWnmeEK2NtLpVs4fUgpTwv3zvoMRy+TzSN8J4j4mvrvelZXY/rgoSVrStg2vhsw3u+iZ6WJ89XACilajs426CZpYxrluEByNHjIyCl5CsrYzPTEumxkb82bhFx7Z8+Oo3IjE0Tl/J4AFyiuY28vAVs4665lHnvLeAf8XaCXwWtufUAAAAASUVORK5CYII="},"6f8f":function(e,t){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports["default"]=e.exports},7037:function(e,t){function r(t){return e.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports["default"]=e.exports},"72ca":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],i={type:["pie","ring","rose","word","funnel","map","arcbar","line","column","mount","bar","area","radar","gauge","candle","mix","tline","tarea","scatter","bubble","demotype"],range:["饼状图","圆环图","玫瑰图","词云图","漏斗图","地图","圆弧进度条","折线图","柱状图","山峰图","条状图","区域图","雷达图","仪表盘","K线图","混合图","时间轴折线","时间轴区域","散点图","气泡图","自定义类型"],categories:["line","column","mount","bar","area","radar","gauge","candle","mix","demotype"],instance:{},option:{},formatter:{yAxisDemo1:function(e,t,r){return e+"元"},yAxisDemo2:function(e,t,r){return e.toFixed(2)},xAxisDemo1:function(e,t,r){return e+"年"},xAxisDemo2:function(e,t,r){return function(e,t){var r=new Date;r.setTime(1e3*e);var n=r.getFullYear(),i=r.getMonth()+1;i=i<10?"0"+i:i;var a=r.getDate();a=a<10?"0"+a:a;var o=r.getHours();o=o<10?"0"+o:o;var s=r.getMinutes(),l=r.getSeconds();return s=s<10?"0"+s:s,l=l<10?"0"+l:l,"full"==t?n+"-"+i+"-"+a+" "+o+":"+s+":"+l:"y-m-d"==t?n+"-"+i+"-"+a:"h:m"==t?o+":"+s:"h:m:s"==t?o+":"+s+":"+l:[n,i,a,o,s,l]}(e,"h:m")},seriesDemo1:function(e,t,r,n){return e+"元"},tooltipDemo1:function(e,t,r,n){return 0==r?"随便用"+e.data+"年":"其他我没改"+e.data+"天"},pieDemo:function(e,t,r,n){if(void 0!==t)return r[t].name+":"+r[t].data+"元"}},demotype:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"curve",width:2}}},pie:{type:"pie",color:n,padding:[5,5,5,5],extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},ring:{type:"ring",color:n,padding:[5,5,5,5],rotate:!1,dataLabel:!0,legend:{show:!0,position:"right",lineHeight:25},title:{name:"收益率",fontSize:15,color:"#666666"},subtitle:{name:"70%",fontSize:25,color:"#7cb5ec"},extra:{ring:{ringWidth:30,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF"}}},rose:{type:"rose",color:n,padding:[5,5,5,5],legend:{show:!0,position:"left",lineHeight:25},extra:{rose:{type:"area",minRadius:50,activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF"}}},word:{type:"word",color:n,extra:{word:{type:"normal",autoColors:!1}}},funnel:{type:"funnel",color:n,padding:[15,15,0,15],extra:{funnel:{activeOpacity:.3,activeWidth:10,border:!0,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right"}}},map:{type:"map",color:n,padding:[0,0,0,0],dataLabel:!0,extra:{map:{border:!0,borderWidth:1,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#F04864",activeFillColor:"#FACC14",activeFillOpacity:1}}},arcbar:{type:"arcbar",color:n,title:{name:"百分比",fontSize:25,color:"#00FF00"},subtitle:{name:"默认标题",fontSize:15,color:"#666666"},extra:{arcbar:{type:"default",width:12,backgroundColor:"#E9E9E9",startAngle:.75,endAngle:.25,gap:2}}},line:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{line:{type:"straight",width:2,activeType:"hollow"}}},tline:{type:"line",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!1,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{line:{type:"curve",width:2,activeType:"hollow"}}},tarea:{type:"area",color:n,padding:[15,10,0,15],xAxis:{disableGrid:!0,boundaryGap:"justify"},yAxis:{gridType:"dash",dashLength:2,data:[{min:0,max:80}]},legend:{},extra:{area:{type:"curve",opacity:.2,addLine:!0,width:2,gradient:!0,activeType:"hollow"}}},column:{type:"column",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{column:{type:"group",width:30,activeBgColor:"#000000",activeBgOpacity:.08}}},mount:{type:"mount",color:n,padding:[15,15,0,5],xAxis:{disableGrid:!0},yAxis:{data:[{min:0}]},legend:{},extra:{mount:{type:"mount",widthRatio:1.5}}},bar:{type:"bar",color:n,padding:[15,30,0,5],xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,axisLine:!1},yAxis:{},legend:{},extra:{bar:{type:"group",width:30,meterBorde:1,meterFillColor:"#FFFFFF",activeBgColor:"#000000",activeBgOpacity:.08}}},area:{type:"area",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{gridType:"dash",dashLength:2},legend:{},extra:{area:{type:"straight",opacity:.2,addLine:!0,width:2,gradient:!1,activeType:"hollow"}}},radar:{type:"radar",color:n,padding:[5,5,5,5],dataLabel:!1,legend:{show:!0,position:"right",lineHeight:25},extra:{radar:{gridType:"radar",gridColor:"#CCCCCC",gridCount:3,opacity:.2,max:200,labelShow:!0}}},gauge:{type:"gauge",color:n,title:{name:"66Km/H",fontSize:25,color:"#2fc25b",offsetY:50},subtitle:{name:"实时速度",fontSize:15,color:"#1890ff",offsetY:-50},extra:{gauge:{type:"default",width:30,labelColor:"#666666",startAngle:.75,endAngle:.25,startNumber:0,endNumber:100,labelFormat:"",splitLine:{fixRadius:0,splitNumber:10,width:30,color:"#FFFFFF",childNumber:5,childWidth:12},pointer:{width:24,color:"auto"}}}},candle:{type:"candle",color:n,padding:[15,15,0,15],enableScroll:!0,enableMarkLine:!0,dataLabel:!1,xAxis:{labelCount:4,itemCount:40,disableGrid:!0,gridColor:"#CCCCCC",gridType:"solid",dashLength:4,scrollShow:!0,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF"},yAxis:{},legend:{},extra:{candle:{color:{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},average:{show:!0,name:["MA5","MA10","MA30"],day:[5,10,20],color:["#1890ff","#2fc25b","#facc14"]}},markLine:{type:"dash",dashLength:5,data:[{value:2150,lineColor:"#f04864",showLabel:!0},{value:2350,lineColor:"#f04864",showLabel:!0}]}}},mix:{type:"mix",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!0},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"dash",dashLength:4,gridColor:"#CCCCCC",padding:10,showTitle:!0,data:[]},legend:{},extra:{mix:{column:{width:20}}}},scatter:{type:"scatter",color:n,padding:[15,15,0,15],dataLabel:!1,xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0},yAxis:{disableGrid:!1,gridType:"dash"},legend:{},extra:{scatter:{}}},bubble:{type:"bubble",color:n,padding:[15,15,0,15],xAxis:{disableGrid:!1,gridType:"dash",splitNumber:5,boundaryGap:"justify",min:0,max:250},yAxis:{disableGrid:!1,gridType:"dash",data:[{min:0,max:150}]},legend:{},extra:{bubble:{border:2,opacity:.5}}}},a=i;t.default=a},"7cdc":function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={v:"1.10.1",version:"1.10.1",type:["primary","success","info","error","warning"]};t.default=n},"7ec2":function(e,t,r){var n=r("7037")["default"];function i(){"use strict";
  8. /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t={},r=Object.prototype,a=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(D){f=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new C(n||[]);return o(a,"_invoke",{value:S(e,r,s)}),a}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(D){return{type:"throw",arg:D}}}t.wrap=h;var p={};function g(){}function v(){}function y(){}var x={};f(x,l,(function(){return this}));var m=Object.getPrototypeOf,b=m&&m(m(O([])));b&&b!==r&&a.call(b,l)&&(x=b);var _=y.prototype=g.prototype=Object.create(x);function w(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){var r;o(this,"_invoke",{value:function(i,o){function s(){return new t((function(r,s){(function r(i,o,s,l){var c=d(e[i],e,o);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==n(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(f).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,l)}))}l(c.arg)})(i,o,r,s)}))}return r=r?r.then(s,s):s()}})}function S(e,t,r){var n="suspendedStart";return function(i,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw a;return L()}for(r.method=i,r.arg=a;;){var o=r.delegate;if(o){var s=k(o,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=d(e,t,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)}}}function k(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator["return"]&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var i=d(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function O(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(a.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:L}}function L(){return{value:void 0,done:!0}}return v.prototype=y,o(_,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:v,configurable:!0}),v.displayName=f(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,u,"GeneratorFunction")),e.prototype=Object.create(_),e},t.awrap=function(e){return{__await:e}},w(A.prototype),f(A.prototype,c,(function(){return this})),t.AsyncIterator=A,t.async=function(e,r,n,i,a){void 0===a&&(a=Promise);var o=new A(h(e,r,n,i),a);return t.isGeneratorFunction(r)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},w(_),f(_,u,"Generator"),f(_,l,(function(){return this})),f(_,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=O,C.prototype={constructor:C,reset:function(e){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(P),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return o.type="throw",o.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],o=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.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(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),P(r),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;P(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:O(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},t}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},"7fa0":function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("190c")),a=n(r("cd1b")),o=i.default.blankChar,s=e.getSystemInfoSync().windowWidth;function l(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.attrs={},this.CssHandler=new a.default(r.tagStyle,s),this.data=e,this.domain=r.domain,this.DOM=[],this.i=this.start=this.audioNum=this.imgNum=this.videoNum=0,r.prot=(this.domain||"").includes("://")?this.domain.split("://")[0]:"http",this.options=r,this.state=this.Text,this.STACK=[],this.bubble=function(){for(var e,r=t.STACK.length;e=t.STACK[--r];){if(i.default.richOnlyTags[e.name])return!1;e.c=1}return!0},this.decode=function(e,t){var r,n,a=-1;while(1){if(-1==(a=e.indexOf("&",a+1)))break;if(-1==(r=e.indexOf(";",a+2)))break;"#"==e[a+1]?(n=parseInt(("x"==e[a+2]?"0":"")+e.substring(a+2,r)),isNaN(n)||(e=e.substr(0,a)+String.fromCharCode(n)+e.substr(r+1))):(n=e.substring(a+1,r),(i.default.entities[n]||n==t)&&(e=e.substr(0,a)+(i.default.entities[n]||"&")+e.substr(r+1)))}return e},this.getUrl=function(e){return"/"==e[0]?"/"==e[1]?e=t.options.prot+":"+e:t.domain&&(e=t.domain+e):t.domain&&0!=e.indexOf("data:")&&!e.includes("://")&&(e=t.domain+"/"+e),e},this.isClose=function(){return">"==t.data[t.i]||"/"==t.data[t.i]&&">"==t.data[t.i+1]},this.section=function(){return t.data.substring(t.start,t.i)},this.parent=function(){return t.STACK[t.STACK.length-1]},this.siblings=function(){return t.STACK.length?t.parent().children:t.DOM}}l.prototype.parse=function(){for(var e;e=this.data[this.i];this.i++)this.state(e);this.state==this.Text&&this.setText();while(this.STACK.length)this.popNode(this.STACK.pop());return this.DOM},l.prototype.setAttr=function(){var e=this.attrName.toLowerCase(),t=this.attrVal;i.default.boolAttrs[e]?this.attrs[e]="T":t&&("src"==e||"data-src"==e&&!this.attrs.src?this.attrs.src=this.getUrl(this.decode(t,"amp")):"href"==e||"style"==e?this.attrs[e]=this.decode(t,"amp"):"data-"!=e.substr(0,5)&&(this.attrs[e]=t)),this.attrVal="";while(o[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)},l.prototype.setText=function(){var e,t=this.section();if(t)if(t=i.default.onText&&i.default.onText(t,(function(){return e=!0}))||t,e){this.data=this.data.substr(0,this.start)+t+this.data.substr(this.i);var r=this.start+t.length;for(this.i=this.start;this.i<r;this.i++)this.state(this.data[this.i])}else{if(!this.pre){for(var n,a,s=[],l=t.length;a=t[--l];)o[a]?(" "!=s[0]&&s.unshift(" "),"\n"==a&&void 0==n&&(n=0)):(s.unshift(a),n||(n=1));if(0==n)return;t=s.join("")}this.siblings().push({type:"text",text:this.decode(t)})}},l.prototype.setNode=function(){var e={name:this.tagName.toLowerCase(),attrs:this.attrs},t=i.default.selfClosingTags[e.name];if(this.options.nodes.length&&(e.type="node"),this.attrs={},i.default.ignoreTags[e.name])if(t)if("source"==e.name){var r=this.parent();r&&("video"==r.name||"audio"==r.name)&&e.attrs.src&&r.attrs.source.push(e.attrs.src)}else"base"!=e.name||this.domain||(this.domain=e.attrs.href);else this.remove(e);else{var n=e.attrs,a=this.CssHandler.match(e.name,n,e)+(n.style||""),l={};switch(n.id&&(1&this.options.compress?n.id=void 0:this.options.useAnchor&&this.bubble()),2&this.options.compress&&n.class&&(n.class=void 0),e.name){case"a":case"ad":this.bubble();break;case"font":if(n.color&&(l["color"]=n.color,n.color=void 0),n.face&&(l["font-family"]=n.face,n.face=void 0),n.size){var c=parseInt(n.size);c<1?c=1:c>7&&(c=7);l["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][c-1],n.size=void 0}break;case"embed":var u=e.attrs.src||"",f=e.attrs.type||"";if(f.includes("video")||u.includes(".mp4")||u.includes(".3gp")||u.includes(".m3u8"))e.name="video";else{if(!(f.includes("audio")||u.includes(".m4a")||u.includes(".wav")||u.includes(".mp3")||u.includes(".aac")))break;e.name="audio"}e.attrs.autostart&&(e.attrs.autoplay="T"),e.attrs.controls="T";case"video":case"audio":n.id?this["".concat(e.name,"Num")]++:n.id=e.name+ ++this["".concat(e.name,"Num")],"video"==e.name&&(this.videoNum>3&&(e.lazyLoad=1),n.width&&(l.width=parseFloat(n.width)+(n.width.includes("%")?"%":"px"),n.width=void 0),n.height&&(l.height=parseFloat(n.height)+(n.height.includes("%")?"%":"px"),n.height=void 0)),n.controls||n.autoplay||(n.controls="T"),n.source=[],n.src&&(n.source.push(n.src),n.src=void 0),this.bubble();break;case"td":case"th":if(n.colspan||n.rowspan)for(var h,d=this.STACK.length;h=this.STACK[--d];)if("table"==h.name){h.flag=1;break}}n.align&&("table"==e.name?"center"==n.align?l["margin-inline-start"]=l["margin-inline-end"]="auto":l["float"]=n.align:l["text-align"]=n.align,n.align=void 0);var p,g=a.split(";");a="";for(var v=0,y=g.length;v<y;v++){var x=g[v].split(":");if(!(x.length<2)){var m=x[0].trim().toLowerCase(),b=x.slice(1).join(":").trim();"-"==b[0]||b.includes("safe")?a+=";".concat(m,":").concat(b):l[m]&&!b.includes("import")&&l[m].includes("import")||(l[m]=b)}}if("img"==e.name)n.src&&!n.ignore&&(this.bubble()?n.i=(this.imgNum++).toString():n.ignore="T"),n.ignore&&(a+=";-webkit-touch-callout:none",l["max-width"]="100%"),l.width?p=l.width:n.width&&(p=n.width.includes("%")?n.width:parseFloat(n.width)+"px"),p&&(l.width=p,n.width="100%",parseInt(p)>s&&(l.height="",n.height&&(n.height=void 0))),l.height?(n.height=l.height,l.height=""):n.height&&!n.height.includes("%")&&(n.height=parseFloat(n.height)+"px");for(var _ in l){var w=l[_];if(w){if((_.includes("flex")||"order"==_||"self-align"==_)&&(e.c=1),w.includes("url")){var A=w.indexOf("(");if(-1!=A++){while('"'==w[A]||"'"==w[A]||o[w[A]])A++;w=w.substr(0,A)+this.getUrl(w.substr(A))}}else w.includes("rpx")?w=w.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*s/750+"px"})):"white-space"==_&&w.includes("pre")&&!t&&(this.pre=e.pre=!0);a+=";".concat(_,":").concat(w)}}a=a.substr(1),a&&(n.style=a),t?i.default.filter&&0==i.default.filter(e,this)||this.siblings().push(e):(e.children=[],"pre"==e.name&&i.default.highlight&&(this.remove(e),this.pre=e.pre=!0),this.siblings().push(e),this.STACK.push(e))}"/"==this.data[this.i]&&this.i++,this.start=this.i+1,this.state=this.Text},l.prototype.remove=function(e){var t=this,r=e.name,n=this.i,a=function(){var r=t.data.substring(n,t.i+1);for(var i in e.attrs.xmlns="http://www.w3.org/2000/svg",e.attrs)"viewbox"==i?r=' viewBox="'.concat(e.attrs.viewbox,'"')+r:"style"!=i&&(r=" ".concat(i,'="').concat(e.attrs[i],'"')+r);r="<svg"+r;var a=t.parent();"100%"==e.attrs.width&&a&&(a.attrs.style||"").includes("inline")&&(a.attrs.style="width:300px;max-width:100%;"+a.attrs.style),t.siblings().push({name:"img",attrs:{src:"data:image/svg+xml;utf8,"+r.replace(/#/g,"%23"),style:e.attrs.style,ignore:"T"}})};if("svg"==e.name&&"/"==this.data[n])return a(this.i++);while(1){if(-1==(this.i=this.data.indexOf("</",this.i+1)))return void(this.i="pre"==r||"svg"==r?n:this.data.length);this.start=this.i+=2;while(!o[this.data[this.i]]&&!this.isClose())this.i++;if(this.section().toLowerCase()==r)return"pre"==r?(this.data=this.data.substr(0,n+1)+i.default.highlight(this.data.substring(n+1,this.i-5),e.attrs)+this.data.substr(this.i-5),this.i=n):("style"==r?this.CssHandler.getStyle(this.data.substring(n+1,this.i-7)):"title"==r&&(this.DOM.title=this.data.substring(n+1,this.i-7)),-1==(this.i=this.data.indexOf(">",this.i))&&(this.i=this.data.length),void("svg"==r&&a()))}},l.prototype.popNode=function(e){if(e.pre){e.pre=this.pre=void 0;for(var t=this.STACK.length;t--;)this.STACK[t].pre&&(this.pre=!0)}var r=this.siblings(),n=r.length,a=e.children;if("head"==e.name||i.default.filter&&0==i.default.filter(e,this))return r.pop();var o=e.attrs;if(i.default.blockTags[e.name]?e.name="div":i.default.trustTags[e.name]||(e.name="span"),e.c&&("ul"==e.name||"ol"==e.name))if((e.attrs.style||"").includes("list-style:none"))for(var s,l=0;s=a[l++];)"li"==s.name&&(s.name="div");else if("ul"==e.name){for(var c=1,u=this.STACK.length;u--;)"ul"==this.STACK[u].name&&c++;if(1!=c)for(var f=a.length;f--;)a[f].floor=c}else for(var h,d=0,p=1;h=a[d++];)"li"==h.name&&(h.type="ol",h.num=function(e,t){if("a"==t)return String.fromCharCode(97+(e-1)%26);if("A"==t)return String.fromCharCode(65+(e-1)%26);if("i"==t||"I"==t){e=(e-1)%99+1;var r=(["X","XX","XXX","XL","L","LX","LXX","LXXX","XC"][Math.floor(e/10)-1]||"")+(["I","II","III","IV","V","VI","VII","VIII","IX"][e%10-1]||"");return"i"==t?r.toLowerCase():r}return e}(p++,o.type)+".");if("table"==e.name){var g=parseFloat(o.cellpadding),v=parseFloat(o.cellspacing),y=parseFloat(o.border);if(e.c&&(isNaN(g)&&(g=2),isNaN(v)&&(v=2)),y&&(o.style="border:".concat(y,"px solid gray;").concat(o.style||"")),e.flag&&e.c){o.style="".concat(o.style||"",";").concat(v?";grid-gap:".concat(v,"px"):";border-left:0;border-top:0");var x,m=1,b=1,_=[],w=[],A={};(function e(t){for(var r=0;r<t.length;r++)"tr"==t[r].name?_.push(t[r]):e(t[r].children||[])})(e.children);for(var S=0;S<_.length;S++){for(var k,T=0;k=_[S].children[T];T++)if("td"==k.name||"th"==k.name){while(A[m+"."+b])b++;var P={name:"div",c:1,attrs:{style:(k.attrs.style||"")+(y?";border:".concat(y,"px solid gray")+(v?"":";border-right:0;border-bottom:0"):"")+(g?";padding:".concat(g,"px"):"")},children:k.children};if(k.attrs.colspan&&(P.attrs.style+=";grid-column-start:"+b+";grid-column-end:"+(b+parseInt(k.attrs.colspan)),k.attrs.rowspan||(P.attrs.style+=";grid-row-start:"+m+";grid-row-end:"+(m+1)),b+=parseInt(k.attrs.colspan)-1),k.attrs.rowspan){P.attrs.style+=";grid-row-start:"+m+";grid-row-end:"+(m+parseInt(k.attrs.rowspan)),k.attrs.colspan||(P.attrs.style+=";grid-column-start:"+b+";grid-column-end:"+(b+1));for(var C=1;C<k.attrs.rowspan;C++)A[m+C+"."+b]=1}w.push(P),b++}x||(x=b-1,o.style+=";grid-template-columns:repeat(".concat(x,",auto)")),b=1,m++}e.children=w}else o.style="border-spacing:".concat(v,"px;").concat(o.style||""),(y||g)&&function e(t){for(var r,n=0;r=t[n];n++)"th"==r.name||"td"==r.name?(y&&(r.attrs.style="border:".concat(y,"px solid gray;").concat(r.attrs.style||"")),g&&(r.attrs.style="padding:".concat(g,"px;").concat(r.attrs.style||""))):e(r.children||[])}(a);if(this.options.autoscroll){var O=Object.assign({},e);e.name="div",e.attrs={style:"overflow:scroll"},e.children=[O]}}this.CssHandler.pop&&this.CssHandler.pop(e),"div"!=e.name||Object.keys(o).length||1!=a.length||"div"!=a[0].name||(r[n-1]=a[0])},l.prototype.Text=function(e){if("<"==e){var t=this.data[this.i+1],r=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"};r(t)?(this.setText(),this.start=this.i+1,this.state=this.TagName):"/"==t?(this.setText(),r(this.data[1+ ++this.i])?(this.start=this.i+1,this.state=this.EndTag):this.Comment()):"!"!=t&&"?"!=t||(this.setText(),this.Comment())}},l.prototype.Comment=function(){var e;e="--"==this.data.substring(this.i+2,this.i+4)?"--\x3e":"[CDATA["==this.data.substring(this.i+2,this.i+9)?"]]>":">",-1==(this.i=this.data.indexOf(e,this.i+2))?this.i=this.data.length:this.i+=e.length-1,this.start=this.i+1,this.state=this.Text},l.prototype.TagName=function(e){if(o[e]){this.tagName=this.section();while(o[this.data[this.i]])this.i++;this.isClose()?this.setNode():(this.start=this.i,this.state=this.AttrName)}else this.isClose()&&(this.tagName=this.section(),this.setNode())},l.prototype.AttrName=function(e){if("="==e||o[e]||this.isClose()){if(this.attrName=this.section(),o[e])while(o[this.data[++this.i]]);if("="==this.data[this.i]){while(o[this.data[++this.i]]);this.start=this.i--,this.state=this.AttrValue}else this.setAttr()}},l.prototype.AttrValue=function(e){if('"'==e||"'"==e){if(this.start++,-1==(this.i=this.data.indexOf(e,this.i+1)))return this.i=this.data.length;this.attrVal=this.section(),this.i++}else{for(;!o[this.data[this.i]]&&!this.isClose();this.i++);this.attrVal=this.section()}this.setAttr()},l.prototype.EndTag=function(e){if(o[e]||">"==e||"/"==e){for(var t=this.section().toLowerCase(),r=this.STACK.length;r--;)if(this.STACK[r].name==t)break;if(-1!=r){var n;while((n=this.STACK.pop()).name!=t)this.popNode(n);this.popNode(n)}else"p"!=t&&"br"!=t||this.siblings().push({name:t,attrs:{}});this.i=this.data.indexOf(">",this.i),this.start=this.i+1,-1==this.i?this.i=this.data.length:this.state=this.Text}};var c=l;t.default=c}).call(this,r("543d")["default"])},8410:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("278c")),a=n(r("7037")),o={version:"v2.5.0-20230101",yAxisWidth:15,xAxisHeight:22,padding:[10,10,10,10],rotate:!1,fontSize:13,fontColor:"#666666",dataPointShape:["circle","circle","circle","circle"],color:["#1890FF","#91CB74","#FAC858","#EE6666","#73C0DE","#3CA272","#FC8452","#9A60B4","#ea7ccc"],linearColor:["#0EE2F8","#2BDCA8","#FA7D8D","#EB88E2","#2AE3A0","#0EE2F8","#EB88E2","#6773E3","#F78A85"],pieChartLinePadding:15,pieChartTextPadding:5,titleFontSize:20,subtitleFontSize:15,radarLabelTextMargin:13},s=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(null==e)throw new TypeError("[uCharts] Cannot convert undefined or null to object");if(!r||r.length<=0)return e;function i(e,t){for(var r in t)e[r]=e[r]&&"[object Object]"===e[r].toString()?i(e[r],t[r]):e[r]=t[r];return e}return r.forEach((function(t){e=i(e,t)})),e},l={toFixed:function(e,t){return t=t||2,this.isFloat(e)&&(e=e.toFixed(t)),e},isFloat:function(e){return e%1!==0},approximatelyEqual:function(e,t){return Math.abs(e-t)<1e-10},isSameSign:function(e,t){return Math.abs(e)===e&&Math.abs(t)===t||Math.abs(e)!==e&&Math.abs(t)!==t},isSameXCoordinateArea:function(e,t){return this.isSameSign(e.x,t.x)},isCollision:function(e,t){e.end={},e.end.x=e.start.x+e.width,e.end.y=e.start.y-e.height,t.end={},t.end.x=t.start.x+t.width,t.end.y=t.start.y-t.height;var r=t.start.x>e.end.x||t.end.x<e.start.x||t.end.y>e.start.y||t.start.y<e.end.y;return!r}};function c(e,t){var r=e.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(function(e,t,r,n){return t+t+r+r+n+n})),n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(r),i=parseInt(n[1],16),a=parseInt(n[2],16),o=parseInt(n[3],16);return"rgba("+i+","+a+","+o+","+t+")"}function u(e,t,r){if(isNaN(e))throw new Error("[uCharts] series数据需为Number格式");r=r||10,t=t||"upper";var n=1;while(r<1)r*=10,n*=10;e="upper"===t?Math.ceil(e*n):Math.floor(e*n);while(e%r!==0)if("upper"===t){if(e==e+1)break;e++}else e--;return e/n}function f(e,t,r,n,i){var a=i.width-i.area[1]-i.area[3],o=r.eachSpacing*(i.chartData.xAxisData.xAxisPoints.length-1);"mount"==i.type&&i.extra&&i.extra.mount&&i.extra.mount.widthRatio&&i.extra.mount.widthRatio>1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),o+=(i.extra.mount.widthRatio-1)*r.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=o-a?(s=a-o,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}function h(e,t,r){function n(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=n(e),t=n(t),r=n(r),t>r&&(r+=2*Math.PI,e<t&&(e+=2*Math.PI)),e>=t&&e<=r}function d(e,t){function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,a=.2,o=null,s=null,l=null,c=null;if(t<1?(o=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(o=e[t].x+(e[t+1].x-e[t-1].x)*i,s=e[t].y+(e[t+1].y-e[t-1].y)*i),t>e.length-3){var u=e.length-1;l=e[u].x-(e[u].x-e[u-1].x)*a,c=e[u].y-(e[u].y-e[u-1].y)*a}else l=e[t+1].x-(e[t+2].x-e[t].x)*a,c=e[t+1].y-(e[t+2].y-e[t].y)*a;return r(e,t+1)&&(c=e[t+1].y),r(e,t)&&(s=e[t].y),n(e,t+1)&&(l=e[t+1].x),n(e,t)&&(o=e[t].x),(s>=Math.max(e[t].y,e[t+1].y)||s<=Math.min(e[t].y,e[t+1].y))&&(s=e[t].y),(c>=Math.max(e[t].y,e[t+1].y)||c<=Math.min(e[t].y,e[t+1].y))&&(c=e[t+1].y),(o>=Math.max(e[t].x,e[t+1].x)||o<=Math.min(e[t].x,e[t+1].x))&&(o=e[t].x),(l>=Math.max(e[t].x,e[t+1].x)||l<=Math.min(e[t].x,e[t+1].x))&&(l=e[t+1].x),{ctrA:{x:o,y:s},ctrB:{x:l,y:c}}}function p(e,t,r){return{x:r.x+e,y:r.y-t}}function g(e,t){if(t)while(l.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function v(e,t,r){for(var n=0,i=0;i<e.length;i++){var a=e[i];if(a.color||(a.color=r.color[n],n=(n+1)%r.color.length),a.linearIndex||(a.linearIndex=i),a.index||(a.index=0),a.type||(a.type=t.type),"undefined"==typeof a.show&&(a.show=!0),a.type||(a.type=t.type),a.pointShape||(a.pointShape="circle"),!a.legendShape)switch(a.type){case"line":a.legendShape="line";break;case"column":case"bar":a.legendShape="rect";break;case"area":case"mount":a.legendShape="triangle";break;default:a.legendShape="circle"}}return e}function y(e,t,r,n){var i=t||[];if("custom"==e&&0==i.length&&(i=n.linearColor),"custom"==e&&i.length<r.length)for(var a=r.length-i.length,o=0;o<a;o++)i.push(n.linearColor[(o+1)%n.linearColor.length]);return i}function x(e,t){var r=0,n=t-e;return r=n>=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:u(e,"lower",r),maxRange:u(t,"upper",r)}}function m(e,t,r){var n=0;if(e=String(e),!1!==r&&void 0!==r&&r.setFontSize&&r.measureText)return r.setFontSize(t),r.measureText(e).width;e=e.split("");for(var i=0;i<e.length;i++){var a=e[i];/[a-zA-Z]/.test(a)?n+=7:/[0-9]/.test(a)?n+=5.5:/\./.test(a)?n+=2.7:/-/.test(a)?n+=3.25:/:/.test(a)?n+=2.5:/[\u4e00-\u9fa5]/.test(a)?n+=10:/\(|\)/.test(a)?n+=3.73:/\s/.test(a)?n+=2.5:/%/.test(a)?n+=8:n+=10}return n*t/10}function b(e){return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data)}),[])}function _(e,t){for(var r=new Array(t),n=0;n<r.length;n++)r[n]=0;for(var i=0;i<e.length;i++)for(n=0;n<r.length;n++)r[n]+=e[i].data[n];return e.reduce((function(e,t){return(e.data?e.data:e).concat(t.data).concat(r)}),[])}function w(e,t,r){var n,i;return e.clientX?t.rotate?(i=t.height-e.clientX*t.pix,n=(e.pageY-r.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):(n=e.clientX*t.pix,i=(e.pageY-r.currentTarget.offsetTop-t.height/t.pix/2*(t.pix-1))*t.pix):t.rotate?(i=t.height-e.x*t.pix,n=e.y*t.pix):(n=e.x*t.pix,i=e.y*t.pix),{x:n,y:i}}function A(e,t,r){var n=[],i=[],a=t.constructor.toString().indexOf("Array")>-1;if(a)for(var o=O(e),s=0;s<r.length;s++)i.push(o[r[s]]);else i=e;for(var l=0;l<i.length;l++){var c=i[l],u=-1;if(u=a?t[l]:t,null!==c.data[u]&&"undefined"!==typeof c.data[u]&&c.show){var f={};f.color=c.color,f.type=c.type,f.style=c.style,f.pointShape=c.pointShape,f.disableLegend=c.disableLegend,f.legendShape=c.legendShape,f.name=c.name,f.show=c.show,f.data=c.formatter?c.formatter(c.data[u]):c.data[u],n.push(f)}}return n}function S(e,t,r){var n=e.map((function(e){return m(e,t,r)}));return Math.max.apply(null,n)}function k(e){for(var t=2*Math.PI/e,r=[],n=0;n<e;n++)r.push(t*n);return r.map((function(e){return-1*e+Math.PI/2}))}function T(e,t,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},o=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(n.length>0){for(var l=[],c=0;c<n.length;c++)l.push(o[n[c]]);s=l[0][r[0]]}else for(var u=0;u<o.length;u++)if(o[u][r]){s=o[u][r];break}var f=e.map((function(e){var n=null;return t.categories&&t.categories.length>0&&(n=i[r]),{text:a.formatter?a.formatter(e,n,r,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),h={x:Math.round(s.x),y:Math.round(s.y)};return{textList:f,offset:h}}function P(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=t.chartData.xAxisPoints[r]+t.chartData.eachSpacing/2,o=e.map((function(e){return{text:i.formatter?i.formatter(e,n[r],r,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));o=o.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(a),y:0};return{textList:o,offset:s}}function C(e,t,r,n,i,a){var o=r.chartData.calPoints,s=a.color.upFill,l=a.color.downFill,c=[s,s,l,s],u=[];t.map((function(t){0==n?t.data[1]-t.data[0]<0?c[1]=l:c[1]=s:(t.data[0]<e[n-1][1]&&(c[0]=l),t.data[1]<t.data[0]&&(c[1]=l),t.data[2]>e[n-1][1]&&(c[2]=s),t.data[3]<e[n-1][1]&&(c[3]=l));var i={text:"开盘:"+t.data[0],color:c[0],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape},a={text:"收盘:"+t.data[1],color:c[1],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape},o={text:"最低:"+t.data[2],color:c[2],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape},f={text:"最高:"+t.data[3],color:c[3],legendShape:"auto"==r.extra.tooltip.legendShape?t.legendShape:r.extra.tooltip.legendShape};u.push(i,a,o,f)}));for(var f=[],h={x:0,y:0},d=0;d<o.length;d++){var p=o[d];"undefined"!==typeof p[n]&&null!==p[n]&&f.push(p[n])}return h.x=Math.round(f[0][0].x),{textList:u,offset:h}}function O(e){for(var t=[],r=0;r<e.length;r++)1==e[r].show&&t.push(e[r]);return t}function L(e,t,r){return e.x<=t.width-t.area[1]+10&&e.x>=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function D(e,t,r){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(r,2)}function M(e,t){var r=[],n=[];return e.forEach((function(e,i){t.connectNulls?null!==e&&n.push(e):null!==e?n.push(e):(n.length&&r.push(n),n=[])})),n.length&&r.push(n),r}function I(e,t,r,n,i){var a={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix},o=t.xAxis.fontSize*t.pix,s=e.map((function(e,r){var n=t.xAxis.formatter?t.xAxis.formatter(e,r,t):e;return m(String(n),o,i)})),l=Math.max.apply(this,s);if(1==t.xAxis.rotateLabel){a.angle=t.xAxis.rotateAngle*Math.PI/180;var c=t.xAxis.marginTop*t.pix*2+Math.abs(l*Math.sin(a.angle));c=c<o+t.xAxis.marginTop*t.pix*2?c+t.xAxis.marginTop*t.pix*2:c,a.xAxisHeight=c}return t.enableScroll&&t.xAxis.scrollShow&&(a.xAxisHeight+=6*t.pix),t.xAxis.disabled&&(a.xAxisHeight=0),a}function E(e,t,r,n){var i=s({},{type:""},t.extra.bar),o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix};o.ranges=function(e,t,r,n){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?_(e,t.categories.length):b(e);var s=[];i=i.filter((function(e){return"object"===(0,a.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,a.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[0]):s.push(e.value):s.push(e)}));var l=0,c=0;if(s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),o>-1?("number"===typeof t.xAxis.data[o].min&&(l=Math.min(t.xAxis.data[o].min,l)),"number"===typeof t.xAxis.data[o].max&&(c=Math.max(t.xAxis.data[o].max,c))):("number"===typeof t.xAxis.min&&(l=Math.min(t.xAxis.min,l)),"number"===typeof t.xAxis.max&&(c=Math.max(t.xAxis.max,c))),l===c){var u=c||10;c+=u}for(var f=l,h=c,d=[],p=(h-f)/t.xAxis.splitNumber,g=0;g<=t.xAxis.splitNumber;g++)d.push(f+p*g);return d}(e,t,r,i.type),o.rangesFormat=o.ranges.map((function(e){return e=l.toFixed(e,2),e}));var c=o.ranges.map((function(e){return e=l.toFixed(e,2),e}));o=Object.assign(o,G(c,t,r));o.eachSpacing,c.map((function(e){return m(e,t.xAxis.fontSize*t.pix,n)}));return!0===t.xAxis.disabled&&(o.xAxisHeight=0),o}function F(e,t,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=i.extra.radar||{};o.max=o.max||0;for(var s=Math.max(o.max,Math.max.apply(null,b(n))),l=[],c=function(i){var o=n[i],c={};c.color=o.color,c.legendShape=o.legendShape,c.pointShape=o.pointShape,c.data=[],o.data.forEach((function(n,i){var o={};o.angle=e[i],o.proportion=n/s,o.value=n,o.position=p(r*o.proportion*a*Math.cos(o.angle),r*o.proportion*a*Math.sin(o.angle),t),c.data.push(o)})),l.push(c)},u=0;u<n.length;u++)c(u);return l}function j(e,t){for(var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=0,i=0,a=0;a<e.length;a++){var o=e[a];o.data=null===o.data?0:o.data,n+=o.data}for(var s=0;s<e.length;s++){var l=e[s];l.data=null===l.data?0:l.data,l._proportion_=0===n?1/e.length*r:l.data/n*r,l._radius_=t}for(var c=0;c<e.length;c++){var u=e[c];u._start_=i,i+=2*u._proportion_*Math.PI}return e}function R(e,t,r,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=0;a<e.length;a++)"funnel"==r.type?e[a].radius=e[a].data/e[0].data*t*i:e[a].radius=n*(e.length-a)/(n*e.length)*t*i,e[a]._proportion_=e[a].data/e[0].data;return e}function N(e,t,r,n){for(var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=0,o=0,s=[],l=0;l<e.length;l++){var c=e[l];c.data=null===c.data?0:c.data,a+=c.data,s.push(c.data)}for(var u=Math.min.apply(null,s),f=Math.max.apply(null,s),h=n-r,d=0;d<e.length;d++){var p=e[d];p.data=null===p.data?0:p.data,0===a?(p._proportion_=1/e.length*i,p._rose_proportion_=1/e.length*i):(p._proportion_=p.data/a*i,p._rose_proportion_="area"==t?1/e.length*i:p.data/a*i),p._radius_=r+h*((p.data-u)/(f-u))||n}for(var g=0;g<e.length;g++){var v=e[g];v._start_=o,o+=2*v._rose_proportion_*Math.PI}return e}function $(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n<e.length;n++){var i=e[n];i.data=null===i.data?0:i.data;var a=void 0;a="circle"==t.type?2:"ccw"==t.direction?t.startAngle<t.endAngle?2+t.startAngle-t.endAngle:t.startAngle-t.endAngle:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=a*i.data*r+t.startAngle,"ccw"==t.direction&&(i._proportion_=t.startAngle-a*i.data*r),i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function B(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n<e.length;n++){var i=e[n];i.data=null===i.data?0:i.data;var a=void 0;a="circle"==t.type?2:t.endAngle<t.startAngle?2+t.endAngle-t.startAngle:t.startAngle-t.endAngle,i._proportion_=a*i.data*r+t.startAngle,i._proportion_>=2&&(i._proportion_=i._proportion_%2)}return e}function q(e,t,r){var n;n=r<t?2+r-t:t-r;for(var i=t,a=0;a<e.length;a++)e[a].value=null===e[a].value?0:e[a].value,e[a]._startAngle_=i,e[a]._endAngle_=n*e[a].value+t,e[a]._endAngle_>=2&&(e[a]._endAngle_=e[a]._endAngle_%2),i=e[a]._endAngle_;return e}function U(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i<e.length;i++){var a=e[i];if(a.data=null===a.data?0:a.data,"auto"==r.pointer.color){for(var o=0;o<t.length;o++)if(a.data<=t[o].value){a.color=t[o].color;break}}else a.color=r.pointer.color;var s=void 0;s=r.endAngle<r.startAngle?2+r.endAngle-r.startAngle:r.startAngle-r.endAngle,a._endAngle_=s*a.data+r.startAngle,a._oldAngle_=r.oldAngle,r.oldAngle<r.endAngle&&(a._oldAngle_+=2),a.data>=r.oldData?a._proportion_=(a._endAngle_-a._oldAngle_)*n+r.oldAngle:a._proportion_=a._oldAngle_-(a._oldAngle_-a._endAngle_)*n,a._proportion_>=2&&(a._proportion_=a._proportion_%2)}return e}function z(e,t,r,n,i,a){return e.map((function(e){if(null===e)return null;var i=0,o=0;return"mix"==a.type?(i=a.extra.mix.column.seriesGap*a.pix||0,o=a.extra.mix.column.categoryGap*a.pix||0):(i=a.extra.column.seriesGap*a.pix||0,o=a.extra.column.categoryGap*a.pix||0),i=Math.min(i,t/r),o=Math.min(o,t/r),e.width=Math.ceil((t-2*o-i*(r-1))/r),a.extra.mix&&a.extra.mix.column.width&&+a.extra.mix.column.width>0&&(e.width=Math.min(e.width,+a.extra.mix.column.width*a.pix)),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),e.width<=0&&(e.width=1),e.x+=(n+.5-r/2)*(e.width+i),e}))}function W(e,t,r,n,i,a){return e.map((function(e){if(null===e)return null;var i=0,o=0;return i=a.extra.bar.seriesGap*a.pix||0,o=a.extra.bar.categoryGap*a.pix||0,i=Math.min(i,t/r),o=Math.min(o,t/r),e.width=Math.ceil((t-2*o-i*(r-1))/r),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(e.width=Math.min(e.width,+a.extra.bar.width*a.pix)),e.width<=0&&(e.width=1),e.y+=(n+.5-r/2)*(e.width+i),e}))}function H(e,t,r,n,i,a,o){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e){return null===e?null:(e.width=t-2*s,a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),n>0&&(e.width-=o),e)}))}function V(e,t,r,n,i,a,o){var s=a.extra.column.categoryGap*a.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.column&&a.extra.column.width&&+a.extra.column.width>0&&(e.width=Math.min(e.width,+a.extra.column.width*a.pix)),e.width<=0&&(e.width=1),e)}))}function K(e,t,r,n,i,a,o){var s=a.extra.bar.categoryGap*a.pix||0;return e.map((function(e,r){return null===e?null:(e.width=Math.ceil(t-2*s),a.extra.bar&&a.extra.bar.width&&+a.extra.bar.width>0&&(e.width=Math.min(e.width,+a.extra.bar.width*a.pix)),e.width<=0&&(e.width=1),e)}))}function G(e,t,r){var n=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var a=0;"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),a=t.extra.mount.widthRatio-1,i+=a);var o=n/i,s=[],l=t.area[3],c=t.width-t.area[1];return e.forEach((function(e,t){s.push(l+a/2*o+t*o)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(l+a*o+e.length*o):s.push(c)),{xAxisPoints:s,startX:l,endX:c,eachSpacing:o}}function X(e,t,r,n,i,a,o){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,l=[],c=a.height-a.area[0]-a.area[2];return e.forEach((function(e,o){if(null===e)l.push(null);else{var u=[];e.forEach((function(e,l){var f={};f.x=n[o]+Math.round(i/2);var h=e.value||e,d=c*(h-t)/(r-t);d*=s,f.y=a.height-Math.round(d)-a.area[2],u.push(f)})),l.push(u)}})),l}function J(e,t,r,n,i,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(c=o.xAxis.boundaryGap);var u=[],f=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)u.push(null);else{var d={};d.color=e.color,d.x=n[s];var p,g,v,y=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(o.chartData.xAxisData.ranges),g=p.shift(),v=p.pop(),y=e[1],d.x=o.area[3]+h*(e[0]-g)/(v-g),"bubble"==o.type&&(d.r=e[2],d.t=e[3]);else y=e.value;"center"==c&&(d.x+=i/2);var x=f*(y-t)/(r-t);x*=l,d.y=o.height-x-o.area[2],u.push(d)}})),u}function Y(e,t,r,n,i,o,s,l,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var u=o.xAxis.boundaryGap,f=[],h=o.height-o.area[0]-o.area[2],d=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var p={};if(p.color=e.color,"vertical"==l.animation){p.x=n[s];var g,v,y,x=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)g=[].concat(o.chartData.xAxisData.ranges),v=g.shift(),y=g.pop(),x=e[1],p.x=o.area[3]+d*(e[0]-v)/(y-v);else x=e.value;"center"==u&&(p.x+=i/2);var m=h*(x-t)/(r-t);m*=c,p.y=o.height-m-o.area[2],f.push(p)}else{p.x=n[0]+i*s*c;x=e;"center"==u&&(p.x+=i/2);m=h*(x-t)/(r-t);p.y=o.height-m-o.area[2],f.push(p)}}})),f}function Q(e,t,r,n,i,o,s,l,c){c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var u=[],f=o.height-o.area[0]-o.area[2],h=o.width-o.area[1]-o.area[3];return e.forEach((function(e,s){if(null===e)u.push(null);else{var l={};l.color=e.color,l.x=n[s];var d,p,g,v=e;if("object"===(0,a.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)d=[].concat(o.chartData.xAxisData.ranges),p=d.shift(),g=d.pop(),v=e[1],l.x=o.area[3]+h*(e[0]-p)/(g-p);else v=e.value;l.x+=i/2;var y=f*(v*c-t)/(r-t);l.y=o.height-y-o.area[2],u.push(l)}})),u}function Z(e,t,r,n,i,a,o,s){var l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,c=[],u=a.height-a.area[0]-a.area[2],f=(a.width,a.area[1],a.area[3],i*o.widthRatio);return e.forEach((function(e,o){if(null===e)c.push(null);else{var s={};s.color=e.color,s.x=n[o],s.x+=i/2;var h=e.data,d=u*(h*l-t)/(r-t);s.y=a.height-d-a.area[2],s.value=h,s.width=f,c.push(s)}})),c}function ee(e,t,r,n,i,o,s){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],u=(o.height,o.area[0],o.area[2],o.width-o.area[1]-o.area[3]);return e.forEach((function(e,i){if(null===e)c.push(null);else{var s={};s.color=e.color,s.y=n[i];var f=e;"object"===(0,a.default)(e)&&null!==e&&(f=e.value);var h=u*(f-t)/(r-t);h*=l,s.height=h,s.value=f,s.x=h+o.area[3],c.push(s)}})),c}function te(e,t,r,n,i,o,s,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],h=o.height-o.area[0]-o.area[2];return e.forEach((function(e,s){if(null===e)f.push(null);else{var d={};if(d.color=e.color,d.x=n[s]+Math.round(i/2),l>0){for(var p=0,g=0;g<=l;g++)p+=c[g].data[s];var v=p-e,y=h*(p-t)/(r-t),x=h*(v-t)/(r-t)}else{p=e;"object"===(0,a.default)(e)&&null!==e&&(p=e.value);y=h*(p-t)/(r-t),x=0}var m=x;y*=u,m*=u,d.y=o.height-Math.round(y)-o.area[2],d.y0=o.height-Math.round(m)-o.area[2],f.push(d)}})),f}function re(e,t,r,n,i,o,s,l,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],h=o.width-o.area[1]-o.area[3];return e.forEach((function(e,i){if(null===e)f.push(null);else{var s={};if(s.color=e.color,s.y=n[i],l>0){for(var d=0,p=0;p<=l;p++)d+=c[p].data[i];var g=d-e,v=h*(d-t)/(r-t),y=h*(g-t)/(r-t)}else{d=e;"object"===(0,a.default)(e)&&null!==e&&(d=e.value);v=h*(d-t)/(r-t),y=0}var x=y;v*=u,x*=u,s.height=v-x,s.x=o.area[3]+v,s.x0=o.area[3]+x,f.push(s)}})),f}function ne(e,t,r,n,i){var o;o="stack"==n?_(e,t.categories.length):b(e);var s=[];o=o.filter((function(e){return"object"===(0,a.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),o.map((function(e){"object"===(0,a.default)(e)?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){s.push(e)})):s.push(e[1]):s.push(e.value):s.push(e)}));var l=i.min||0,c=i.max||0;s.length>0&&(l=Math.min.apply(this,s),c=Math.max.apply(this,s)),l===c&&(0==c?c=10:l=0);for(var u=x(l,c),f=void 0===i.min||null===i.min?u.minRange:i.min,h=void 0===i.max||null===i.max?u.maxRange:i.max,d=(h-f)/t.yAxis.splitNumber,p=[],g=0;g<=t.yAxis.splitNumber;g++)p.push(f+d*g);return p.reverse()}function ie(e,t,r,n){var i=s({},{type:""},t.extra.column),a=t.yAxis.data.length,o=new Array(a);if(a>0){for(var c=0;c<a;c++){o[c]=[];for(var u=0;u<e.length;u++)e[u].index==c&&o[c].push(e[u])}for(var f=new Array(a),h=new Array(a),d=new Array(a),p=function(e){var a=t.yAxis.data[e];1==t.yAxis.disabled&&(a.disabled=!0),"categories"===a.type?(a.formatter||(a.formatter=function(e,t,r){return e+(a.unit||"")}),a.categories=a.categories||t.categories,f[e]=a.categories):(a.formatter||(a.formatter=function(e,t,r){return l.toFixed(e,a.tofix||0)+(a.unit||"")}),f[e]=ne(o[e],t,r,i.type,a,e));var s=a.fontSize*t.pix||r.fontSize;d[e]={position:a.position?a.position:"left",width:0},h[e]=f[e].map((function(r,i){return r=a.formatter(r,i,t),d[e].width=Math.max(d[e].width,m(r,s,n)+5),r}));var c=a.calibration?4*t.pix:0;d[e].width+=c+3*t.pix,!0===a.disabled&&(d[e].width=0)},g=0;g<a;g++)p(g)}else{f=new Array(1),h=new Array(1),d=new Array(1);"bar"===t.type?(f[0]=t.categories,t.yAxis.formatter||(t.yAxis.formatter=function(e,t,r){return e+(r.yAxis.unit||"")})):(t.yAxis.formatter||(t.yAxis.formatter=function(e,t,r){return e.toFixed(r.yAxis.tofix)+(r.yAxis.unit||"")}),f[0]=ne(e,t,r,i.type,{})),d[0]={position:"left",width:0};var v=t.yAxis.fontSize*t.pix||r.fontSize;h[0]=f[0].map((function(e,r){return e=t.yAxis.formatter(e,r,t),d[0].width=Math.max(d[0].width,m(e,v,n)+5),e})),d[0].width+=3*t.pix,!0===t.yAxis.disabled?(d[0]={position:"left",width:0},t.yAxis.data[0]={disabled:!0}):(t.yAxis.data[0]={disabled:!1,position:"left",max:t.yAxis.max,min:t.yAxis.min,formatter:t.yAxis.formatter},"bar"===t.type&&(t.yAxis.data[0].categories=t.categories,t.yAxis.data[0].type="categories"))}return{rangesFormat:h,ranges:f,yAxisWidth:d}}function ae(e,t){!0!==t.rotateLock?(e.translate(t.height,0),e.rotate(90*Math.PI/180)):!0!==t._rotate_&&(e.translate(t.height,0),e.rotate(90*Math.PI/180),t._rotate_=!0)}function oe(e,t,r,n,i){if(n.beginPath(),"hollow"==i.dataPointShapeType?(n.setStrokeStyle(t),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(t),n.setLineWidth(1*i.pix)),"diamond"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x+2.5*i.pix,e.y),n.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===r)e.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("none"===r)return;n.closePath(),n.fill(),n.stroke()}function se(e,t,r,n,i,a,o){if(i.tooltip&&!(i.tooltip.group.length>0&&0==i.tooltip.group.includes(o))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(o)];if(n.beginPath(),"hollow"==a.activeType?(n.setStrokeStyle(t),n.setFillStyle(i.background),n.setLineWidth(2*i.pix)):(n.setStrokeStyle("#ffffff"),n.setFillStyle(t),n.setLineWidth(1*i.pix)),"diamond"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x+2.5*i.pix,e.y),n.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===r)e.forEach((function(e,t){null!==e&&s==t&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("none"===r)return;n.closePath(),n.fill(),n.stroke()}}function le(e,t,r,n){var i=e.title.fontSize||t.titleFontSize,a=e.subtitle.fontSize||t.subtitleFontSize,o=e.title.name||"",s=e.subtitle.name||"",l=e.title.color||e.fontColor,c=e.subtitle.color||e.fontColor,u=o?i:0,f=s?a:0;if(s){var h=m(s,a*e.pix,r),d=n.x-h/2+(e.subtitle.offsetX||0)*e.pix,p=n.y+a*e.pix/2+(e.subtitle.offsetY||0)*e.pix;o&&(p+=(u*e.pix+5)/2),r.beginPath(),r.setFontSize(a*e.pix),r.setFillStyle(c),r.fillText(s,d,p),r.closePath(),r.stroke()}if(o){var g=m(o,i*e.pix,r),v=n.x-g/2+(e.title.offsetX||0),y=n.y+i*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(y-=(f*e.pix+5)/2),r.beginPath(),r.setFontSize(i*e.pix),r.setFillStyle(l),r.fillText(o,v,y),r.closePath(),r.stroke()}}function ce(e,t,r,n,i){var o=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,l){if(null!==e){n.beginPath();var c=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(c),n.setFillStyle(t.textColor||i.fontColor);var u=o[l];"object"===(0,a.default)(o[l])&&null!==o[l]&&(u=o[l].constructor.toString().indexOf("Array")>-1?o[l][1]:o[l].value);var f=t.formatter?t.formatter(u,l,t,i):u;n.setTextAlign("center"),n.fillText(String(f),e.x,e.y-4+s*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function ue(e,t,r,n,i){var o=t.data,s=t.textOffset?t.textOffset:0,l=i.extra.column.labelPosition;e.forEach((function(e,c){if(null!==e){n.beginPath();var u=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(u),n.setFillStyle(t.textColor||i.fontColor);var f=o[c];"object"===(0,a.default)(o[c])&&null!==o[c]&&(f=o[c].constructor.toString().indexOf("Array")>-1?o[c][1]:o[c].value);var h=t.formatter?t.formatter(f,c,t,i):f;n.setTextAlign("center");var d=e.y-4*i.pix+s*i.pix;e.y>t.zeroPoints&&(d=e.y+s*i.pix+u),"insideTop"==l&&(d=e.y+u+s*i.pix,e.y>t.zeroPoints&&(d=e.y-s*i.pix-4*i.pix)),"center"==l&&(d=e.y+s*i.pix+(i.height-i.area[2]-e.y+u)/2,t.zeroPoints<i.height-i.area[2]&&(d=e.y+s*i.pix+(t.zeroPoints-e.y+u)/2),e.y>t.zeroPoints&&(d=e.y-s*i.pix-(e.y-t.zeroPoints-u)/2),"stack"==i.extra.column.type&&(d=e.y+s*i.pix+(e.y0-e.y+u)/2)),"bottom"==l&&(d=i.height-i.area[2]+s*i.pix-4*i.pix,t.zeroPoints<i.height-i.area[2]&&(d=t.zeroPoints+s*i.pix-4*i.pix),e.y>t.zeroPoints&&(d=t.zeroPoints-s*i.pix+u+2*i.pix),"stack"==i.extra.column.type&&(d=e.y0+s*i.pix-4*i.pix)),n.fillText(String(h),e.x,d),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function fe(e,t,r,n,i,a){t.data;var o=t.textOffset?t.textOffset:0;i.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){n.beginPath();var l=t[s].textSize?t[s].textSize*i.pix:r.fontSize;n.setFontSize(l),n.setFillStyle(t[s].textColor||i.fontColor);var c=e.value,u=t[s].formatter?t[s].formatter(c,s,t,i):c;n.setTextAlign("center");var f=e.y-4*i.pix+o*i.pix;e.y>a&&(f=e.y+o*i.pix+l),n.fillText(String(u),e.x,f),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function he(e,t,r,n,i){var o=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){n.beginPath();var l=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(l),n.setFillStyle(t.textColor||i.fontColor);var c=o[s];"object"===(0,a.default)(o[s])&&null!==o[s]&&(c=o[s].value);var u=t.formatter?t.formatter(c,s,t,i):c;n.setTextAlign("left"),n.fillText(String(u),e.x+4*i.pix,e.y+l/2-3),n.closePath(),n.stroke()}}))}function de(e,t,r,n,i,a){var o;t-=e.width/2+e.labelOffset*n.pix,t=t<10?10:t,o=e.endAngle<e.startAngle?2+e.endAngle-e.startAngle:e.startAngle-e.endAngle;for(var s=o/e.splitLine.splitNumber,l=e.endNumber-e.startNumber,c=l/e.splitLine.splitNumber,u=e.startAngle,f=e.startNumber,h=0;h<e.splitLine.splitNumber+1;h++){var d={x:t*Math.cos(u*Math.PI),y:t*Math.sin(u*Math.PI)},p=e.formatter?e.formatter(f,h,n):f;d.x+=r.x-m(p,i.fontSize,a)/2,d.y+=r.y;var g=d.x,v=d.y;a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(e.labelColor||n.fontColor),a.fillText(p,g,v+i.fontSize/2),a.closePath(),a.stroke(),u+=s,u>=2&&(u%=2),f+=c}}function pe(e,t,r,n,i,a){var o=n.extra.radar||{};e.forEach((function(e,s){if(!0===o.labelPointShow&&""!==n.categories[s]){var c={x:t*Math.cos(e),y:t*Math.sin(e)},u=p(c.x,c.y,r);a.setFillStyle(o.labelPointColor),a.beginPath(),a.arc(u.x,u.y,o.labelPointRadius*n.pix,0,2*Math.PI,!1),a.closePath(),a.fill()}if(!0===o.labelShow){var f={x:(t+i.radarLabelTextMargin*n.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*n.pix)*Math.sin(e)},h=p(f.x,f.y,r),d=h.x,g=h.y;l.approximatelyEqual(f.x,0)?d-=m(n.categories[s]||"",i.fontSize,a)/2:f.x<0&&(d-=m(n.categories[s]||"",i.fontSize,a)),a.beginPath(),a.setFontSize(i.fontSize),a.setFillStyle(o.labelColor||n.fontColor),a.fillText(n.categories[s]||"",d,g+i.fontSize/2),a.closePath(),a.stroke()}}))}function ge(e,t,r,n,i,a){for(var o=r.pieChartLinePadding,s=[],c=null,u=e.map((function(r,n){var i=r.formatter?r.formatter(r,n,e,t):l.toFixed(100*r._proportion_.toFixed(4))+"%";i=r.labelText?r.labelText:i;var a=2*Math.PI-(r._start_+2*Math.PI*r._proportion_/2);r._rose_proportion_&&(a=2*Math.PI-(r._start_+2*Math.PI*r._rose_proportion_/2));var o=r.color,s=r._radius_;return{arc:a,text:i,color:o,radius:s,textColor:r.textColor,textSize:r.textSize,labelShow:r.labelShow}})),f=0;f<u.length;f++){var h=u[f],d=Math.cos(h.arc)*(h.radius+o),v=Math.sin(h.arc)*(h.radius+o),y=Math.cos(h.arc)*h.radius,x=Math.sin(h.arc)*h.radius,b=d>=0?d+r.pieChartTextPadding:d-r.pieChartTextPadding,_=v,w=m(h.text,h.textSize*t.pix||r.fontSize,n),A=_;c&&l.isSameXCoordinateArea(c.start,{x:b})&&(A=b>0?Math.min(_,c.start.y):d<0||_>0?Math.max(_,c.start.y):Math.min(_,c.start.y)),b<0&&(b-=w);var S={lineStart:{x:y,y:x},lineEnd:{x:d,y:v},start:{x:b,y:A},width:w,height:r.fontSize,text:h.text,color:h.color,textColor:h.textColor,textSize:h.textSize};c=g(S,c),s.push(c)}for(var k=0;k<s.length;k++)if(!1!==u[k].labelShow){var T=s[k],P=p(T.lineStart.x,T.lineStart.y,a),C=p(T.lineEnd.x,T.lineEnd.y,a),O=p(T.start.x,T.start.y,a);n.setLineWidth(1*t.pix),n.setFontSize(T.textSize*t.pix||r.fontSize),n.beginPath(),n.setStrokeStyle(T.color),n.setFillStyle(T.color),n.moveTo(P.x,P.y);var L=T.start.x<0?O.x+T.width:O.x,D=T.start.x<0?O.x-5:O.x+5;n.quadraticCurveTo(C.x,C.y,L,O.y),n.moveTo(P.x,P.y),n.stroke(),n.closePath(),n.beginPath(),n.moveTo(O.x+T.width,O.y),n.arc(L,O.y,2*t.pix,0,2*Math.PI),n.closePath(),n.fill(),n.beginPath(),n.setFontSize(T.textSize*t.pix||r.fontSize),n.setFillStyle(T.textColor||t.fontColor),n.fillText(T.text,D,O.y+3),n.closePath(),n.stroke(),n.closePath()}}function ve(e,t,r){for(var n=s({},{type:"solid",dashLength:4,data:[]},e.extra.markLine),i=e.area[3],a=e.width-e.area[1],o=function(e,t){for(var r,n,i=t.height-t.area[0]-t.area[2],a=0;a<e.length;a++){e[a].yAxisIndex=e[a].yAxisIndex?e[a].yAxisIndex:0;var o=[].concat(t.chartData.yAxisData.ranges[e[a].yAxisIndex]);r=o.pop(),n=o.shift();var s=i*(e[a].value-r)/(n-r);e[a].y=t.height-Math.round(s)-t.area[2]}return e}(n.data,e),l=0;l<o.length;l++){var u=s({},{lineColor:"#DE4A42",showLabel:!1,labelFontSize:13,labelPadding:6,labelFontColor:"#666666",labelBgColor:"#DFE8FF",labelBgOpacity:.8,labelAlign:"left",labelOffsetX:0,labelOffsetY:0},o[l]);if("dash"==n.type&&r.setLineDash([n.dashLength,n.dashLength]),r.setStrokeStyle(u.lineColor),r.setLineWidth(1*e.pix),r.beginPath(),r.moveTo(i,u.y),r.lineTo(a,u.y),r.stroke(),r.setLineDash([]),u.showLabel){var f=u.labelFontSize*e.pix,h=u.labelText?u.labelText:u.value;r.setFontSize(f);var d=m(h,f,r),p=d+u.labelPadding*e.pix*2,g="left"==u.labelAlign?e.area[3]-p:e.width-e.area[1];g+=u.labelOffsetX;var v=u.y-.5*f-u.labelPadding*e.pix;v+=u.labelOffsetY;var y=g+u.labelPadding*e.pix;u.y;r.setFillStyle(c(u.labelBgColor,u.labelBgOpacity)),r.setStrokeStyle(u.labelBgColor),r.setLineWidth(1*e.pix),r.beginPath(),r.rect(g,v,p,f+2*u.labelPadding*e.pix),r.closePath(),r.stroke(),r.fill(),r.setFontSize(f),r.setTextAlign("left"),r.setFillStyle(u.labelFontColor),r.fillText(String(h),y,v+f+u.labelPadding*e.pix/2),r.stroke(),r.setTextAlign("left")}}}function ye(e,t,r,n,i){var a=s({},{gridType:"solid",dashLength:4},e.extra.tooltip),o=e.area[3],l=e.width-e.area[1];if("dash"==a.gridType&&r.setLineDash([a.dashLength,a.dashLength]),r.setStrokeStyle(a.gridColor||"#cccccc"),r.setLineWidth(1*e.pix),r.beginPath(),r.moveTo(o,e.tooltip.offset.y),r.lineTo(l,e.tooltip.offset.y),r.stroke(),r.setLineDash([]),a.yAxisLabel)for(var u=a.boxPadding*e.pix,f=function(e,t,r,n,i){for(var a=[].concat(r.chartData.yAxisData.ranges),o=r.height-r.area[0]-r.area[2],s=r.area[0],l=[],c=0;c<a.length;c++){var u=Math.max.apply(this,a[c]),f=Math.min.apply(this,a[c]),h=u-(u-f)*(e-s)/o;h=r.yAxis.data&&r.yAxis.data[c].formatter?r.yAxis.data[c].formatter(h,c,r):h.toFixed(0),l.push(String(h))}return l}(e.tooltip.offset.y,e.series,e),h=e.chartData.yAxisData.yAxisWidth,d=e.area[3],p=e.width-e.area[1],g=0;g<f.length;g++){r.setFontSize(a.fontSize*e.pix);var v,y=m(f[g],a.fontSize*e.pix,r),x=void 0,b=void 0;"left"==h[g].position?(x=d-(y+2*u)-2*e.pix,b=Math.max(x,x+y+2*u)):(x=p+2*e.pix,b=Math.max(x+h[g].width,x+y+2*u)),v=b-x;var _=x+(v-y)/2,w=e.tooltip.offset.y;r.beginPath(),r.setFillStyle(c(a.labelBgColor||t.toolTipBackground,a.labelBgOpacity||t.toolTipOpacity)),r.setStrokeStyle(a.labelBgColor||t.toolTipBackground),r.setLineWidth(1*e.pix),r.rect(x,w-.5*t.fontSize-u,v,t.fontSize+2*u),r.closePath(),r.stroke(),r.fill(),r.beginPath(),r.setFontSize(t.fontSize),r.setFillStyle(a.labelFontColor||e.fontColor),r.fillText(f[g],_,w+.5*t.fontSize),r.closePath(),r.stroke(),"left"==h[g].position?d-=h[g].width+e.yAxis.padding*e.pix:p+=h[g].width+e.yAxis.padding*e.pix}}function xe(e,t,r,n,i){var a=s({},{activeBgColor:"#000000",activeBgOpacity:.08,activeWidth:i},t.extra.column);a.activeWidth=a.activeWidth>i?i:a.activeWidth;var o=t.area[0],l=t.height-t.area[2];n.beginPath(),n.setFillStyle(c(a.activeBgColor,a.activeBgOpacity)),n.rect(e-a.activeWidth/2,o,a.activeWidth,l-o),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function me(e,t,r,n,i){var a=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),o=t.area[3],l=t.width-t.area[1];n.beginPath(),n.setFillStyle(c(a.activeBgColor,a.activeBgOpacity)),n.rect(o,e-i/2,l-o,i),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function be(e,t,r,n,i,a,o){var l=s({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,boxPadding:3,fontColor:"#FFFFFF",fontSize:13,lineHeight:20,legendShow:!0,legendShape:"auto",splitLine:!0},r.extra.tooltip);1==l.showCategory&&r.categories&&e.unshift({text:r.categories[r.tooltip.index],color:null});var u=l.fontSize*r.pix,f=l.lineHeight*r.pix,h=l.boxPadding*r.pix,d=u,p=5*r.pix;0==l.legendShow&&(d=0,p=0);var g=l.showArrow?8*r.pix:0,v=!1;"line"!=r.type&&"mount"!=r.type&&"area"!=r.type&&"candle"!=r.type&&"mix"!=r.type||1==l.splitLine&&function(e,t,r,n){var i=t.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var a=t.area[0],o=t.height-t.area[2];if("dash"==i.gridType&&n.setLineDash([i.dashLength,i.dashLength]),n.setStrokeStyle(i.gridColor||"#cccccc"),n.setLineWidth(1*t.pix),n.beginPath(),n.moveTo(e,a),n.lineTo(e,o),n.stroke(),n.setLineDash([]),i.xAxisLabel){var s=t.categories[t.tooltip.index];n.setFontSize(r.fontSize);var l=m(s,r.fontSize,n),u=e-.5*l,f=o+2*t.pix;n.beginPath(),n.setFillStyle(c(i.labelBgColor||r.toolTipBackground,i.labelBgOpacity||r.toolTipOpacity)),n.setStrokeStyle(i.labelBgColor||r.toolTipBackground),n.setLineWidth(1*t.pix),n.rect(u-i.boxPadding*t.pix,f,l+2*i.boxPadding*t.pix,r.fontSize+2*i.boxPadding*t.pix),n.closePath(),n.stroke(),n.fill(),n.beginPath(),n.setFontSize(r.fontSize),n.setFillStyle(i.labelFontColor||t.fontColor),n.fillText(String(s),u,f+i.boxPadding*t.pix+r.fontSize),n.closePath(),n.stroke()}}(r.tooltip.offset.x,r,n,i),t=s({x:0,y:0},t),t.y-=8*r.pix;var y=e.map((function(e){return m(e.text,u,i)})),x=d+p+4*h+Math.max.apply(null,y),b=2*h+e.length*f;if(0!=l.showBox){t.x-Math.abs(r._scrollDistance_||0)+g+x>r.width&&(v=!0),b+t.y>r.height&&(t.y=r.height-b),i.beginPath(),i.setFillStyle(c(l.bgColor,l.bgOpacity)),i.setLineWidth(l.borderWidth*r.pix),i.setStrokeStyle(c(l.borderColor,l.borderOpacity));var _=l.borderRadius;v?(x+g>r.width&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(x-r.width)),x>t.x&&(t.x=r.width+Math.abs(r._scrollDistance_||0)+g+(x-r.width)),l.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x-g,t.y+10*r.pix+5*r.pix)),i.arc(t.x-g-_,t.y+b-_,_,0,Math.PI/2,!1),i.arc(t.x-g-Math.round(x)+_,t.y+b-_,_,Math.PI/2,Math.PI,!1),i.arc(t.x-g-Math.round(x)+_,t.y+_,_,-Math.PI,-Math.PI/2,!1),i.arc(t.x-g-_,t.y+_,_,-Math.PI/2,0,!1),l.showArrow&&(i.lineTo(t.x-g,t.y+10*r.pix-5*r.pix),i.lineTo(t.x,t.y+10*r.pix))):(l.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x+g,t.y+10*r.pix-5*r.pix)),i.arc(t.x+g+_,t.y+_,_,-Math.PI,-Math.PI/2,!1),i.arc(t.x+g+Math.round(x)-_,t.y+_,_,-Math.PI/2,0,!1),i.arc(t.x+g+Math.round(x)-_,t.y+b-_,_,0,Math.PI/2,!1),i.arc(t.x+g+_,t.y+b-_,_,Math.PI/2,Math.PI,!1),l.showArrow&&(i.lineTo(t.x+g,t.y+10*r.pix+5*r.pix),i.lineTo(t.x,t.y+10*r.pix))),i.closePath(),i.fill(),l.borderWidth>0&&i.stroke(),l.legendShow&&e.forEach((function(e,n){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var a=t.x+g+2*h,o=t.y+(f-u)/2+f*n+h+1;switch(v&&(a=t.x-x-g+2*h),e.legendShape){case"line":i.moveTo(a,o+.5*d-2*r.pix),i.fillRect(a,o+.5*d-2*r.pix,d,4*r.pix);break;case"triangle":i.moveTo(a+7.5*r.pix,o+.5*d-5*r.pix),i.lineTo(a+2.5*r.pix,o+.5*d+5*r.pix),i.lineTo(a+12.5*r.pix,o+.5*d+5*r.pix),i.lineTo(a+7.5*r.pix,o+.5*d-5*r.pix);break;case"diamond":i.moveTo(a+7.5*r.pix,o+.5*d-5*r.pix),i.lineTo(a+2.5*r.pix,o+.5*d),i.lineTo(a+7.5*r.pix,o+.5*d+5*r.pix),i.lineTo(a+12.5*r.pix,o+.5*d),i.lineTo(a+7.5*r.pix,o+.5*d-5*r.pix);break;case"circle":i.moveTo(a+7.5*r.pix,o+.5*d),i.arc(a+7.5*r.pix,o+.5*d,5*r.pix,0,2*Math.PI);break;case"rect":i.moveTo(a,o+.5*d-5*r.pix),i.fillRect(a,o+.5*d-5*r.pix,15*r.pix,10*r.pix);break;case"square":i.moveTo(a+2*r.pix,o+.5*d-5*r.pix),i.fillRect(a+2*r.pix,o+.5*d-5*r.pix,10*r.pix,10*r.pix);break;default:i.moveTo(a,o+.5*d-5*r.pix),i.fillRect(a,o+.5*d-5*r.pix,15*r.pix,10*r.pix)}i.closePath(),i.fill()}})),e.forEach((function(e,r){var n=t.x+g+2*h+d+p;v&&(n=t.x-x-g+2*h+d+p);var a=t.y+f*r+(f-u)/2-1+h+u;i.beginPath(),i.setFontSize(u),i.setTextBaseline("normal"),i.setFillStyle(l.fontColor),i.fillText(e.text,n,a),i.closePath(),i.stroke()}))}}function _e(e,t,r,n,i,a){var o=e.extra.tooltip||{};o.horizentalLine&&e.tooltip&&1===n&&("line"==e.type||"area"==e.type||"column"==e.type||"mount"==e.type||"candle"==e.type||"mix"==e.type)&&ye(e,t,r),r.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&r.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===n&&be(e.tooltip.textList,e.tooltip.offset,e,t,r),r.restore()}function we(e,t,r,n){var i=t.chartData.xAxisData,a=i.xAxisPoints,o=i.startX,s=i.endX,l=i.eachSpacing,c="center";"bar"!=t.type&&"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(c=t.xAxis.boundaryGap);var u=t.height-t.area[2],f=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var h=t.height-t.area[2]+r.xAxisHeight,d=s-o,p=l*(a.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),p+=(t.extra.mount.widthRatio-1)*l);var g=d*d/p,v=0;t._scrollDistance_&&(v=-t._scrollDistance_*d/p),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(o,h),n.lineTo(s,h),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),n.moveTo(o+v,h),n.lineTo(o+v+g,h),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),a.forEach((function(e,r){r>0&&(n.beginPath(),n.moveTo(e-l/2,u),n.lineTo(e-l/2,u+3*t.pix),n.closePath(),n.stroke())}))),!0!==t.xAxis.disableGrid&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&n.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,a.forEach((function(e,r){r%t.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(e,u),n.lineTo(e,f),n.stroke())})),n.setLineDash([])),!0!==t.xAxis.disabled){var y=e.length;t.xAxis.labelCount&&(y=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,y-=1);for(var x=Math.ceil(e.length/y),b=[],_=e.length,w=0;w<_;w++)w%x!==0?b.push(""):b.push(e[w]);b[_-1]=e[_-1];var A=t.xAxis.fontSize*t.pix||r.fontSize;0===r._xAxisTextAngle_?b.forEach((function(e,r){var i=t.xAxis.formatter?t.xAxis.formatter(e,r,t):e,o=-m(String(i),A,n)/2;"center"==c&&(o+=l/2);t.xAxis.scrollShow&&t.pix;var s=t._scrollDistance_||0,f="center"==c?a[r]+l/2:a[r];f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1&&(n.beginPath(),n.setFontSize(A),n.setFillStyle(t.xAxis.fontColor||t.fontColor),n.fillText(String(i),a[r]+o,u+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),n.closePath(),n.stroke())})):b.forEach((function(e,i){var o=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,f="center"==c?a[i]+l/2:a[i];if(f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1){n.save(),n.beginPath(),n.setFontSize(A),n.setFillStyle(t.xAxis.fontColor||t.fontColor);var h=m(String(o),A,n),d=a[i];"center"==c&&(d=a[i]+l/2);t.xAxis.scrollShow&&6*t.pix;var p=u+t.xAxis.marginTop*t.pix+A-A*Math.abs(Math.sin(r._xAxisTextAngle_));t.xAxis.rotateAngle<0?(d-=A/2,h=0):(d+=A/2,h=-h),n.translate(d,p),n.rotate(-1*r._xAxisTextAngle_),n.fillText(String(o),h,0),n.closePath(),n.stroke(),n.restore()}}))}n.restore(),t.xAxis.title&&(n.beginPath(),n.setFontSize(t.xAxis.titleFontSize*t.pix),n.setFillStyle(t.xAxis.titleFontColor),n.fillText(String(t.xAxis.title),t.width-t.area[1]+t.xAxis.titleOffsetX*t.pix,t.height-t.area[2]+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.titleFontSize)*t.pix/2+(t.xAxis.titleFontSize+t.xAxis.titleOffsetY)*t.pix),n.closePath(),n.stroke()),t.xAxis.axisLine&&(n.beginPath(),n.setStrokeStyle(t.xAxis.axisLineColor),n.setLineWidth(1*t.pix),n.moveTo(o,t.height-t.area[2]),n.lineTo(s,t.height-t.area[2]),n.stroke())}function Ae(e,t,r,n){if(!0!==t.yAxis.disableGrid){var i=t.height-t.area[0]-t.area[2],a=i/t.yAxis.splitNumber,o=t.area[3],s=t.chartData.xAxisData.xAxisPoints,l=t.chartData.xAxisData.eachSpacing,c=l*(s.length-1);"mount"==t.type&&t.extra&&t.extra.mount&&t.extra.mount.widthRatio&&t.extra.mount.widthRatio>1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),c+=(t.extra.mount.widthRatio-1)*l);var u=o+c,f=[],h=1;!1===t.xAxis.axisLine&&(h=0);for(var d=h;d<t.yAxis.splitNumber+1;d++)f.push(t.height-t.area[2]-a*d);n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),"dash"==t.yAxis.gridType&&n.setLineDash([t.yAxis.dashLength*t.pix,t.yAxis.dashLength*t.pix]),n.setStrokeStyle(t.yAxis.gridColor),n.setLineWidth(1*t.pix),f.forEach((function(e,t){n.beginPath(),n.moveTo(o,e),n.lineTo(u,e),n.stroke()})),n.setLineDash([]),n.restore()}}function Se(e,t,r,n){if(!0!==t.yAxis.disabled){var i=t.height-t.area[0]-t.area[2],a=i/t.yAxis.splitNumber,o=t.area[3],s=t.width-t.area[1],l=t.height-t.area[2];n.beginPath(),n.setFillStyle(t.background),1==t.enableScroll&&t.xAxis.scrollPosition&&"left"!==t.xAxis.scrollPosition&&n.fillRect(0,0,o,l+2*t.pix),1==t.enableScroll&&t.xAxis.scrollPosition&&"right"!==t.xAxis.scrollPosition&&n.fillRect(s,0,t.width,l+2*t.pix),n.closePath(),n.stroke();var c=t.area[3],u=t.width-t.area[1],f=t.area[3]+(t.width-t.area[1]-t.area[3])/2;if(t.yAxis.data)for(var h=function(e){var o=t.yAxis.data[e];if(p=[],"categories"===o.type)for(var s=0;s<=o.categories.length;s++)p.push(t.area[0]+i/o.categories.length/2+i/o.categories.length*s);else for(var l=0;l<=t.yAxis.splitNumber;l++)p.push(t.area[0]+a*l);if(!0!==o.disabled){var h=t.chartData.yAxisData.rangesFormat[e],d=o.fontSize?o.fontSize*t.pix:r.fontSize,g=t.chartData.yAxisData.yAxisWidth[e],v=o.textAlign||"right";if(h.forEach((function(e,r){var i=p[r];n.beginPath(),n.setFontSize(d),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setFillStyle(o.fontColor||t.fontColor);var a=0,s=4*t.pix;if("left"==g.position){switch(1==o.calibration&&(n.moveTo(c,i),n.lineTo(c-3*t.pix,i),s+=3*t.pix),v){case"left":n.setTextAlign("left"),a=c-g.width;break;case"right":n.setTextAlign("right"),a=c-s;break;default:n.setTextAlign("center"),a=c-g.width/2}n.fillText(String(e),a,i+d/2-3*t.pix)}else if("right"==g.position){switch(1==o.calibration&&(n.moveTo(u,i),n.lineTo(u+3*t.pix,i),s+=3*t.pix),v){case"left":n.setTextAlign("left"),a=u+s;break;case"right":n.setTextAlign("right"),a=u+g.width;break;default:n.setTextAlign("center"),a=u+g.width/2}n.fillText(String(e),a,i+d/2-3*t.pix)}else if("center"==g.position){switch(1==o.calibration&&(n.moveTo(f,i),n.lineTo(f-3*t.pix,i),s+=3*t.pix),v){case"left":n.setTextAlign("left"),a=f-g.width;break;case"right":n.setTextAlign("right"),a=f-s;break;default:n.setTextAlign("center"),a=f-g.width/2}n.fillText(String(e),a,i+d/2-3*t.pix)}n.closePath(),n.stroke(),n.setTextAlign("left")})),!1!==o.axisLine&&(n.beginPath(),n.setStrokeStyle(o.axisLineColor||"#cccccc"),n.setLineWidth(1*t.pix),"left"==g.position?(n.moveTo(c,t.height-t.area[2]),n.lineTo(c,t.area[0])):"right"==g.position?(n.moveTo(u,t.height-t.area[2]),n.lineTo(u,t.area[0])):"center"==g.position&&(n.moveTo(f,t.height-t.area[2]),n.lineTo(f,t.area[0])),n.stroke()),t.yAxis.showTitle){var y=o.titleFontSize*t.pix||r.fontSize,x=o.title;n.beginPath(),n.setFontSize(y),n.setFillStyle(o.titleFontColor||t.fontColor),"left"==g.position?n.fillText(x,c-m(x,y,n)/2+(o.titleOffsetX||0),t.area[0]-(10-(o.titleOffsetY||0))*t.pix):"right"==g.position?n.fillText(x,u-m(x,y,n)/2+(o.titleOffsetX||0),t.area[0]-(10-(o.titleOffsetY||0))*t.pix):"center"==g.position&&n.fillText(x,f-m(x,y,n)/2+(o.titleOffsetX||0),t.area[0]-(10-(o.titleOffsetY||0))*t.pix),n.closePath(),n.stroke()}"left"==g.position?c-=g.width+t.yAxis.padding*t.pix:u+=g.width+t.yAxis.padding*t.pix}},d=0;d<t.yAxis.data.length;d++){var p;h(d)}}}function ke(e,t,r,n,i){if(!1!==t.legend.show){var a=i.legendData,o=a.points,s=a.area,l=t.legend.padding*t.pix,c=t.legend.fontSize*t.pix,u=15*t.pix,f=5*t.pix,h=t.legend.itemGap*t.pix,d=Math.max(t.legend.lineHeight*t.pix,c);n.beginPath(),n.setLineWidth(t.legend.borderWidth*t.pix),n.setStrokeStyle(t.legend.borderColor),n.setFillStyle(t.legend.backgroundColor),n.moveTo(s.start.x,s.start.y),n.rect(s.start.x,s.start.y,s.width,s.height),n.closePath(),n.fill(),n.stroke(),o.forEach((function(e,i){var o,p=0;p=a.widthArr[i],o=a.heightArr[i];var g=0,v=0;if("top"==t.legend.position||"bottom"==t.legend.position){switch(t.legend.float){case"left":g=s.start.x+l;break;case"right":g=s.start.x+s.width-p;break;default:g=s.start.x+(s.width-p)/2}v=s.start.y+l+i*d}else p=0==i?0:a.widthArr[i-1],g=s.start.x+l+p,v=s.start.y+l+(s.height-o)/2;n.setFontSize(r.fontSize);for(var y=0;y<e.length;y++){var x=e[y];switch(x.area=[0,0,0,0],x.area[0]=g,x.area[1]=v,x.area[3]=v+d,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(x.show?x.color:t.legend.hiddenColor),n.setFillStyle(x.show?x.color:t.legend.hiddenColor),x.legendShape){case"line":n.moveTo(g,v+.5*d-2*t.pix),n.fillRect(g,v+.5*d-2*t.pix,15*t.pix,4*t.pix);break;case"triangle":n.moveTo(g+7.5*t.pix,v+.5*d-5*t.pix),n.lineTo(g+2.5*t.pix,v+.5*d+5*t.pix),n.lineTo(g+12.5*t.pix,v+.5*d+5*t.pix),n.lineTo(g+7.5*t.pix,v+.5*d-5*t.pix);break;case"diamond":n.moveTo(g+7.5*t.pix,v+.5*d-5*t.pix),n.lineTo(g+2.5*t.pix,v+.5*d),n.lineTo(g+7.5*t.pix,v+.5*d+5*t.pix),n.lineTo(g+12.5*t.pix,v+.5*d),n.lineTo(g+7.5*t.pix,v+.5*d-5*t.pix);break;case"circle":n.moveTo(g+7.5*t.pix,v+.5*d),n.arc(g+7.5*t.pix,v+.5*d,5*t.pix,0,2*Math.PI);break;case"rect":n.moveTo(g,v+.5*d-5*t.pix),n.fillRect(g,v+.5*d-5*t.pix,15*t.pix,10*t.pix);break;case"square":n.moveTo(g+5*t.pix,v+.5*d-5*t.pix),n.fillRect(g+5*t.pix,v+.5*d-5*t.pix,10*t.pix,10*t.pix);break;case"none":break;default:n.moveTo(g,v+.5*d-5*t.pix),n.fillRect(g,v+.5*d-5*t.pix,15*t.pix,10*t.pix)}n.closePath(),n.fill(),n.stroke(),g+=u+f;var b=.5*d+.5*c-2,_=x.legendText?x.legendText:x.name;n.beginPath(),n.setFontSize(c),n.setFillStyle(x.show?t.legend.fontColor:t.legend.hiddenColor),n.fillText(_,g,v+b),n.closePath(),n.stroke(),"top"==t.legend.position||"bottom"==t.legend.position?(g+=m(_,c,n)+h,x.area[2]=g):(x.area[2]=g+m(_,c,n)+h,g-=u+f,v+=d)}}))}}function Te(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,ringWidth:30,customRadius:0,border:!1,borderWidth:2,borderColor:"#FFFFFF",centerColor:"#FFFFFF",linearType:"none",customColor:[]},"pie"==t.type?t.extra.pie:t.extra.ring),o={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2};0==r.pieChartLinePadding&&(r.pieChartLinePadding=a.activeRadius*t.pix);var l=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);l=l<10?10:l,a.customRadius>0&&(l=a.customRadius*t.pix),e=j(e,l,i);var u=a.activeRadius*t.pix;if(a.customColor=y(a.linearType,a.customColor,e,r),e=e.map((function(e){return e._start_+=a.offsetAngle*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(c(e.color,a.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,e._radius_+u,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var i,s=e.color;"custom"==a.linearType&&(i=n.createCircularGradient?n.createCircularGradient(o.x,o.y,e._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,e._radius_),i.addColorStop(0,c(a.customColor[e.linearIndex],1)),i.addColorStop(1,c(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),"ring"===t.type){var f=.6*l;"number"===typeof a.ringWidth&&a.ringWidth>0&&(f=Math.max(0,l-a.ringWidth*t.pix)),n.beginPath(),n.setFillStyle(a.centerColor),n.moveTo(o.x,o.y),n.arc(o.x,o.y,f,0,2*Math.PI),n.closePath(),n.fill()}return!1!==t.dataLabel&&1===i&&ge(e,t,r,n,0,o),1===i&&"ring"===t.type&&le(t,r,n,o),{center:o,radius:l,series:e}}function Pe(e,t){var r=Array(2),n=20037508.34*e/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=20037508.34*i/180,r[0]=n,r[1]=i,r}function Ce(e,t,r,n,i,a){return{x:(t-r.xMin)*n+i,y:(r.yMax-e)*n+a}}function Oe(e,t,r){if(t[1]==r[1])return!1;if(t[1]>e[1]&&r[1]>e[1])return!1;if(t[1]<e[1]&&r[1]<e[1])return!1;if(t[1]==e[1]&&r[1]>e[1])return!1;if(r[1]==e[1]&&t[1]>e[1])return!1;if(t[0]<e[0]&&r[1]<e[1])return!1;var n=r[0]-(r[0]-t[0])*(r[1]-e[1])/(r[1]-t[1]);return!(n<e[0])}function Le(e,t,r){for(var n=0,i=0;i<t.length;i++){var a=t[i][0];1==t.length&&(a=t[i][0]);for(var o=0;o<a.length-1;o++){var s=a[o],l=a[o+1];r&&(s=Pe(a[o][0],a[o][1]),l=Pe(a[o+1][0],a[o+1][1])),Oe(e,s,l)&&(n+=1)}}return n%2==1}function De(e,t,r){r=0==r?1:r;for(var n=[],i=0;i<r;i++)n[i]=Math.random();return Math.floor(n.reduce((function(e,t){return e+t}))/r*(t-e))+e}function Me(e,t,r,n){for(var i=!1,a=0;a<t.length;a++)if(t[a].area){if(!(e[3]<t[a].area[1]||e[0]>t[a].area[2]||e[1]>t[a].area[3]||e[2]<t[a].area[0])){i=!0;break}if(e[0]<0||e[1]<0||e[2]>r||e[3]>n){i=!0;break}i=!1}return i}function Ie(e,t,r){var n=e.series;switch(t){case"normal":for(var i=0;i<n.length;i++){var a=n[i].name,o=n[i].textSize*e.pix,s=m(a,o,r),l=void 0,c=void 0,u=void 0,f=0;while(1){f++,l=De(-e.width/2,e.width/2,5)-s/2,c=De(-e.height/2,e.height/2,5)+o/2,u=[l-5+e.width/2,c-5-o+e.height/2,l+s+5+e.width/2,c+5+e.height/2];var h=Me(u,n,e.width,e.height);if(!h)break;if(1e3==f){u=[-100,-100,-100,-100];break}}n[i].area=u}break;case"vertical":for(var d=function(){return Math.random()>.7},p=0;p<n.length;p++){var g=n[p].name,v=n[p].textSize*e.pix,y=m(g,v,r),x=d(),b=void 0,_=void 0,w=void 0,A=void 0,S=0;while(1){S++;var k=void 0;if(x?(b=De(-e.width/2,e.width/2,5)-y/2,_=De(-e.height/2,e.height/2,5)+v/2,w=[_-5-y+e.width/2,-b-5+e.height/2,_+5+e.width/2,-b+v+5+e.height/2],A=[e.width-(e.width/2-e.height/2)-(-b+v+5+e.height/2)-5,e.height/2-e.width/2+(_-5-y+e.width/2)-5,e.width-(e.width/2-e.height/2)-(-b+v+5+e.height/2)+v,e.height/2-e.width/2+(_-5-y+e.width/2)+y+5],k=Me(A,n,e.height,e.width)):(b=De(-e.width/2,e.width/2,5)-y/2,_=De(-e.height/2,e.height/2,5)+v/2,w=[b-5+e.width/2,_-5-v+e.height/2,b+y+5+e.width/2,_+5+e.height/2],k=Me(w,n,e.width,e.height)),!k)break;if(1e3==S){w=[-1e3,-1e3,-1e3,-1e3];break}}x?(n[p].area=A,n[p].areav=w):n[p].area=w,n[p].rotate=x}break}return n}function Ee(e,t,r,n,i,a,o){for(var s=0;s<e.length;s++){var c=e[s];if(!1!==c.labelShow){var u=void 0,f=void 0,h=void 0,d=void 0,p=c.formatter?c.formatter(c,s,e,t):l.toFixed(100*c._proportion_)+"%";p=c.labelText?c.labelText:p,"right"==i&&(u=s==e.length-1?(c.funnelArea[2]+o.x)/2:(c.funnelArea[2]+e[s+1].funnelArea[2])/2,f=u+2*a,h=c.funnelArea[1]+n/2,d=c.textSize*t.pix||t.fontSize*t.pix,r.setLineWidth(1*t.pix),r.setStrokeStyle(c.color),r.setFillStyle(c.color),r.beginPath(),r.moveTo(u,h),r.lineTo(f,h),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(f,h),r.arc(f,h,2*t.pix,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(d),r.setFillStyle(c.textColor||t.fontColor),r.fillText(p,f+5,h+d/2-2),r.closePath(),r.stroke(),r.closePath()),"left"==i&&(u=s==e.length-1?(c.funnelArea[0]+o.x)/2:(c.funnelArea[0]+e[s+1].funnelArea[0])/2,f=u-2*a,h=c.funnelArea[1]+n/2,d=c.textSize*t.pix||t.fontSize*t.pix,r.setLineWidth(1*t.pix),r.setStrokeStyle(c.color),r.setFillStyle(c.color),r.beginPath(),r.moveTo(u,h),r.lineTo(f,h),r.stroke(),r.closePath(),r.beginPath(),r.moveTo(f,h),r.arc(f,h,2,0,2*Math.PI),r.closePath(),r.fill(),r.beginPath(),r.setFontSize(d),r.setFillStyle(c.textColor||t.fontColor),r.fillText(p,f-5-m(p,d,r),h+d/2-2),r.closePath(),r.stroke(),r.closePath())}}}function Fe(e,t,r,n,i,a,o){for(var s=0;s<e.length;s++){var l=e[s],c=void 0,u=void 0;l.centerText&&(c=l.funnelArea[1]+n/2,u=l.centerTextSize*t.pix||t.fontSize*t.pix,r.beginPath(),r.setFontSize(u),r.setFillStyle(l.centerTextColor||"#FFFFFF"),r.fillText(l.centerText,o.x-m(l.centerText,u,r)/2,c+u/2-2),r.closePath(),r.stroke(),r.closePath())}}function je(e,t){t.save(),t.translate(0,.5),t.restore(),t.draw()}var Re={easeIn:function(e){return Math.pow(e,3)},easeOut:function(e){return Math.pow(e-1,3)+1},easeInOut:function(e){return(e/=.5)<1?.5*Math.pow(e,3):.5*(Math.pow(e-2,3)+2)},linear:function(e){return e}};function Ne(e){this.isStop=!1,e.duration="undefined"===typeof e.duration?1e3:e.duration,e.timing=e.timing||"easeInOut";var t=function(){return"undefined"!==typeof setTimeout?function(e,t){setTimeout((function(){var t=+new Date;e(t)}),t)}:"undefined"!==typeof requestAnimationFrame?requestAnimationFrame:function(e){e(null)}}(),r=null,n=function(i){if(null===i||!0===this.isStop)return e.onProcess&&e.onProcess(1),void(e.onAnimationFinish&&e.onAnimationFinish());if(null===r&&(r=i),i-r<e.duration){var a=(i-r)/e.duration,o=Re[e.timing];a=o(a),e.onProcess&&e.onProcess(a),t(n,17)}else e.onProcess&&e.onProcess(1),e.onAnimationFinish&&e.onAnimationFinish()};n=n.bind(this),t(n,17)}function $e(e,t,r,n){var a=this,o=this,u=t.series;"pie"!==e&&"ring"!==e&&"mount"!==e&&"rose"!==e&&"funnel"!==e||(u=function(e,t,r){var n=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,a=0;a<i.length;a++)i[a].formatter=e[0].formatter,i[a].data=i[a].value,n.push(i[a]);t.series=n}else n=e;return n}(u,t));var f=t.categories;if("mount"===e){f=[];for(var h=0;h<u.length;h++)!1!==u[h].show&&f.push(u[h].name);t.categories=f}u=v(u,t,r);var g=t.animation?t.duration:0;o.animationInstance&&o.animationInstance.stop();var x=null;if("candle"==e){var _=s({},t.extra.candle.average);_.show?(x=function(e,t,r,n){for(var i=[],a=0;a<e.length;a++){for(var o={data:[],name:t[a],color:r[a]},s=0,l=n.length;s<l;s++)if(s<e[a])o.data.push(null);else{for(var c=0,u=0;u<e[a];u++)c+=n[s-u][1];o.data.push(+(c/e[a]).toFixed(3))}i.push(o)}return i}(_.day,_.name,_.color,u[0].data),x=v(x,t,r),t.seriesMA=x):x=t.seriesMA?t.seriesMA=v(t.seriesMA,t,r):u}else x=u;t._series_=u=O(u),t.area=new Array(4);for(var w=0;w<4;w++)t.area[w]=t.padding[w]*t.pix;var A=function(e,t,r,n,i){var a={area:{start:{x:0,y:0},end:{x:0,y:0},width:0,height:0,wholeWidth:0,wholeHeight:0},points:[],widthArr:[],heightArr:[]};if(!1===t.legend.show)return n.legendData=a,a;var o=t.legend.padding*t.pix,s=t.legend.margin*t.pix,l=t.legend.fontSize?t.legend.fontSize*t.pix:r.fontSize,c=15*t.pix,u=5*t.pix,f=Math.max(t.legend.lineHeight*t.pix,l);if("top"==t.legend.position||"bottom"==t.legend.position){for(var h=[],d=0,p=[],g=[],v=0;v<e.length;v++){var y=e[v],x=y.legendText?y.legendText:y.name,b=c+u+m(x||"undefined",l,i)+t.legend.itemGap*t.pix;d+b>t.width-t.area[1]-t.area[3]?(h.push(g),p.push(d-t.legend.itemGap*t.pix),d=b,g=[y]):(d+=b,g.push(y))}if(g.length){h.push(g),p.push(d-t.legend.itemGap*t.pix),a.widthArr=p;var _=Math.max.apply(null,p);switch(t.legend.float){case"left":a.area.start.x=t.area[3],a.area.end.x=t.area[3]+_+2*o;break;case"right":a.area.start.x=t.width-t.area[1]-_-2*o,a.area.end.x=t.width-t.area[1];break;default:a.area.start.x=(t.width-_)/2-o,a.area.end.x=(t.width+_)/2+o}a.area.width=_+2*o,a.area.wholeWidth=_+2*o,a.area.height=h.length*f+2*o,a.area.wholeHeight=h.length*f+2*o+2*s,a.points=h}}else{var w=e.length,A=t.height-t.area[0]-t.area[2]-2*s-2*o,S=Math.min(Math.floor(A/f),w);switch(a.area.height=S*f+2*o,a.area.wholeHeight=S*f+2*o,t.legend.float){case"top":a.area.start.y=t.area[0]+s,a.area.end.y=t.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=t.height-t.area[2]-s-a.area.height,a.area.end.y=t.height-t.area[2]-s;break;default:a.area.start.y=(t.height-a.area.height)/2,a.area.end.y=(t.height+a.area.height)/2}for(var k=w%S===0?w/S:Math.floor(w/S+1),T=[],P=0;P<k;P++){var C=e.slice(P*S,P*S+S);T.push(C)}if(a.points=T,T.length){for(var O=0;O<T.length;O++){for(var L=T[O],D=0,M=0;M<L.length;M++){var I=c+u+m(L[M].name||"undefined",l,i)+t.legend.itemGap*t.pix;I>D&&(D=I)}a.widthArr.push(D),a.heightArr.push(L.length*f+2*o)}for(var E=0,F=0;F<a.widthArr.length;F++)E+=a.widthArr[F];a.area.width=E-t.legend.itemGap*t.pix+2*o,a.area.wholeWidth=a.area.width+o}}switch(t.legend.position){case"top":a.area.start.y=t.area[0]+s,a.area.end.y=t.area[0]+s+a.area.height;break;case"bottom":a.area.start.y=t.height-t.area[2]-a.area.height-s,a.area.end.y=t.height-t.area[2]-s;break;case"left":a.area.start.x=t.area[3],a.area.end.x=t.area[3]+a.area.width;break;case"right":a.area.start.x=t.width-t.area[1]-a.area.width,a.area.end.x=t.width-t.area[1];break}return n.legendData=a,a}(x,t,r,t.chartData,n),T=A.area.wholeHeight,P=A.area.wholeWidth;switch(t.legend.position){case"top":t.area[0]+=T;break;case"bottom":t.area[2]+=T;break;case"left":t.area[3]+=P;break;case"right":t.area[1]+=P;break}var C={},L=0;if("line"===t.type||"column"===t.type||"mount"===t.type||"area"===t.type||"mix"===t.type||"candle"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){if(C=ie(u,t,r,n),L=C.yAxisWidth,t.yAxis.showTitle){for(var D=0,ne=0;ne<t.yAxis.data.length;ne++)D=Math.max(D,t.yAxis.data[ne].titleFontSize?t.yAxis.data[ne].titleFontSize*t.pix:r.fontSize);t.area[0]+=D}for(var ye=0,be=0,Oe=0;Oe<L.length;Oe++)"left"==L[Oe].position?(t.area[3]+=be>0?L[Oe].width+t.yAxis.padding*t.pix:L[Oe].width,be+=1):"right"==L[Oe].position&&(t.area[1]+=ye>0?L[Oe].width+t.yAxis.padding*t.pix:L[Oe].width,ye+=1)}else r.yAxisWidth=L;if(t.chartData.yAxisData=C,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=G(t.categories,t);var Le=I(t.categories,t,0,t.chartData.xAxisData.eachSpacing,n),De=Le.xAxisHeight,Me=Le.angle;r.xAxisHeight=De,r._xAxisTextAngle_=Me,t.area[2]+=De,t.chartData.categoriesData=Le}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=E(u,t,r,n),f=t.chartData.xAxisData.rangesFormat;var Re=I(f,t,0,t.chartData.xAxisData.eachSpacing,n),$e=Re.xAxisHeight,Be=Re.angle;r.xAxisHeight=$e,r._xAxisTextAngle_=Be,t.area[2]+=$e,t.chartData.categoriesData=Re}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var qe,Ue=t.chartData.xAxisData.xAxisPoints,ze=t.chartData.xAxisData.startX,We=t.chartData.xAxisData.endX,He=t.chartData.xAxisData.eachSpacing,Ve=He*(Ue.length-1),Ke=We-ze;qe=Ke-Ve,o.scrollOption.currentOffset=qe,o.scrollOption.startTouchX=qe,o.scrollOption.distance=0,o.scrollOption.lastMoveTime=0,t._scrollDistance_=qe}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(r._pieTextMaxLength_=!1===t.dataLabel?0:function(e,t,r,n){e=j(e);for(var i=0,a=0;a<e.length;a++){var o=e[a],s=o.formatter?o.formatter(+o._proportion_.toFixed(2)):l.toFixed(100*o._proportion_)+"%";i=Math.max(i,m(s,o.textSize*n.pix||t.fontSize,r))}return i}(x,r,n,t)),e){case"word":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=Ie(t,a.type,n)),n.beginPath(),n.setFillStyle(t.background),n.rect(0,0,t.width,t.height),n.fill(),n.save();var o=t.chartData.wordCloudData;n.translate(t.width/2,t.height/2);for(var l=0;l<o.length;l++){n.save(),o[l].rotate&&n.rotate(90*Math.PI/180);var c=o[l].name,u=o[l].textSize*t.pix,f=m(c,u,n);n.beginPath(),n.setStrokeStyle(o[l].color),n.setFillStyle(o[l].color),n.setFontSize(u),o[l].rotate?o[l].areav[0]>0&&(t.tooltip&&t.tooltip.index==l?n.strokeText(c,(o[l].areav[0]+5-t.width/2)*i-f*(1-i)/2,(o[l].areav[1]+5+u-t.height/2)*i):n.fillText(c,(o[l].areav[0]+5-t.width/2)*i-f*(1-i)/2,(o[l].areav[1]+5+u-t.height/2)*i)):o[l].area[0]>0&&(t.tooltip&&t.tooltip.index==l?n.strokeText(c,(o[l].area[0]+5-t.width/2)*i-f*(1-i)/2,(o[l].area[1]+5+u-t.height/2)*i):n.fillText(c,(o[l].area[0]+5-t.width/2)*i-f*(1-i)/2,(o[l].area[1]+5+u-t.height/2)*i)),n.stroke(),n.restore()}n.restore()}(u,t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,t.width,t.height),function(e,t,r,n){var i,a,o=s({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},t.extra.map),l=e,u=function(e){for(var t,r={xMin:180,xMax:0,yMin:90,yMax:0},n=0;n<e.length;n++)for(var i=e[n].geometry.coordinates,a=0;a<i.length;a++){t=i[a],1==t.length&&(t=t[0]);for(var o=0;o<t.length;o++){var s=t[o][0],l=t[o][1],c={x:s,y:l};r.xMin=r.xMin<c.x?r.xMin:c.x,r.xMax=r.xMax>c.x?r.xMax:c.x,r.yMin=r.yMin<c.y?r.yMin:c.y,r.yMax=r.yMax>c.y?r.yMax:c.y}}return r}(l);if(o.mercator){var f=Pe(u.xMax,u.yMax),h=Pe(u.xMin,u.yMin);u.xMax=f[0],u.yMax=f[1],u.xMin=h[0],u.yMin=h[1]}for(var d=t.width/Math.abs(u.xMax-u.xMin),p=t.height/Math.abs(u.yMax-u.yMin),g=d<p?d:p,v=t.width/2-Math.abs(u.xMax-u.xMin)/2*g,y=t.height/2-Math.abs(u.yMax-u.yMin)/2*g,x=0;x<l.length;x++){n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(o.borderColor),n.setFillStyle(c(e[x].color,e[x].fillOpacity||o.fillOpacity)),1==o.active&&t.tooltip&&t.tooltip.index==x&&(n.setStrokeStyle(o.activeBorderColor),n.setFillStyle(c(o.activeFillColor,o.activeFillOpacity)));for(var b=l[x].geometry.coordinates,_=0;_<b.length;_++){i=b[_],1==i.length&&(i=i[0]);for(var w=0;w<i.length;w++){var A=Array(2);A=o.mercator?Pe(i[w][0],i[w][1]):i[w],a=Ce(A[1],A[0],u,g,v,y),0===w?(n.beginPath(),n.moveTo(a.x,a.y)):n.lineTo(a.x,a.y)}n.fill(),1==o.border&&n.stroke()}}if(1==t.dataLabel)for(x=0;x<l.length;x++){var S=l[x].properties.centroid;if(S){o.mercator&&(S=Pe(l[x].properties.centroid[0],l[x].properties.centroid[1])),a=Ce(S[1],S[0],u,g,v,y);var k=l[x].textSize*t.pix||r.fontSize,T=l[x].textColor||t.fontColor;o.active&&o.activeTextColor&&t.tooltip&&t.tooltip.index==x&&(T=o.activeTextColor);var P=l[x].properties.name;n.beginPath(),n.setFontSize(k),n.setFillStyle(T),n.fillText(P,a.x-m(P,k,n)/2,a.y+k/2),n.closePath(),n.stroke()}}t.chartData.mapData={bounds:u,scale:g,xoffset:v,yoffset:y,mercator:o.mercator},_e(t,r,n,1),n.draw()}(u,t,r,n),setTimeout((function(){a.uevent.trigger("renderComplete")}),50);break;case"funnel":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.funnelData=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,minSize:0,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),o=(t.height-t.area[0]-t.area[2])/e.length,l={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},u=a.activeWidth*t.pix,f=Math.min((t.width-t.area[1]-t.area[3])/2-u,(t.height-t.area[0]-t.area[2])/2-u),h=R(e,f,a,o,i);if(n.save(),n.translate(l.x,l.y),a.customColor=y(a.linearType,a.customColor,e,r),"pyramid"==a.type)for(var d=0;d<h.length;d++){if(d==h.length-1){t.tooltip&&t.tooltip.index==d&&(n.beginPath(),n.setFillStyle(c(h[d].color,a.activeOpacity)),n.moveTo(-u,-o),n.lineTo(-h[d].radius-u,0),n.lineTo(h[d].radius+u,0),n.lineTo(u,-o),n.lineTo(-u,-o),n.closePath(),n.fill()),h[d].funnelArea=[l.x-h[d].radius,l.y-o*(d+1),l.x+h[d].radius,l.y-o*d],n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(a.borderColor);var p=c(h[d].color,a.fillOpacity);if("custom"==a.linearType){var g=n.createLinearGradient(h[d].radius,-o,-h[d].radius,-o);g.addColorStop(0,c(h[d].color,a.fillOpacity)),g.addColorStop(.5,c(a.customColor[h[d].linearIndex],a.fillOpacity)),g.addColorStop(1,c(h[d].color,a.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,-o),n.lineTo(-h[d].radius,0),n.lineTo(h[d].radius,0),n.lineTo(0,-o),n.closePath(),n.fill(),1==a.border&&n.stroke()}else{t.tooltip&&t.tooltip.index==d&&(n.beginPath(),n.setFillStyle(c(h[d].color,a.activeOpacity)),n.moveTo(0,0),n.lineTo(-h[d].radius-u,0),n.lineTo(-h[d+1].radius-u,-o),n.lineTo(h[d+1].radius+u,-o),n.lineTo(h[d].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),h[d].funnelArea=[l.x-h[d].radius,l.y-o*(d+1),l.x+h[d].radius,l.y-o*d],n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(a.borderColor);p=c(h[d].color,a.fillOpacity);if("custom"==a.linearType){g=n.createLinearGradient(h[d].radius,-o,-h[d].radius,-o);g.addColorStop(0,c(h[d].color,a.fillOpacity)),g.addColorStop(.5,c(a.customColor[h[d].linearIndex],a.fillOpacity)),g.addColorStop(1,c(h[d].color,a.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-h[d].radius,0),n.lineTo(-h[d+1].radius,-o),n.lineTo(h[d+1].radius,-o),n.lineTo(h[d].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}n.translate(0,-o)}else{n.translate(0,-(h.length-1)*o);for(var v=0;v<h.length;v++){if(v==h.length-1){t.tooltip&&t.tooltip.index==v&&(n.beginPath(),n.setFillStyle(c(h[v].color,a.activeOpacity)),n.moveTo(-u-a.minSize/2,0),n.lineTo(-h[v].radius-u,-o),n.lineTo(h[v].radius+u,-o),n.lineTo(u+a.minSize/2,0),n.lineTo(-u-a.minSize/2,0),n.closePath(),n.fill()),h[v].funnelArea=[l.x-h[v].radius,l.y-o,l.x+h[v].radius,l.y],n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(a.borderColor);p=c(h[v].color,a.fillOpacity);if("custom"==a.linearType){g=n.createLinearGradient(h[v].radius,-o,-h[v].radius,-o);g.addColorStop(0,c(h[v].color,a.fillOpacity)),g.addColorStop(.5,c(a.customColor[h[v].linearIndex],a.fillOpacity)),g.addColorStop(1,c(h[v].color,a.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-a.minSize/2,0),n.lineTo(-h[v].radius,-o),n.lineTo(h[v].radius,-o),n.lineTo(a.minSize/2,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}else{t.tooltip&&t.tooltip.index==v&&(n.beginPath(),n.setFillStyle(c(h[v].color,a.activeOpacity)),n.moveTo(0,0),n.lineTo(-h[v+1].radius-u,0),n.lineTo(-h[v].radius-u,-o),n.lineTo(h[v].radius+u,-o),n.lineTo(h[v+1].radius+u,0),n.lineTo(0,0),n.closePath(),n.fill()),h[v].funnelArea=[l.x-h[v].radius,l.y-o*(h.length-v),l.x+h[v].radius,l.y-o*(h.length-v-1)],n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(a.borderColor);p=c(h[v].color,a.fillOpacity);if("custom"==a.linearType){g=n.createLinearGradient(h[v].radius,-o,-h[v].radius,-o);g.addColorStop(0,c(h[v].color,a.fillOpacity)),g.addColorStop(.5,c(a.customColor[h[v].linearIndex],a.fillOpacity)),g.addColorStop(1,c(h[v].color,a.fillOpacity)),p=g}n.setFillStyle(p),n.moveTo(0,0),n.lineTo(-h[v+1].radius,0),n.lineTo(-h[v].radius,-o),n.lineTo(h[v].radius,-o),n.lineTo(h[v+1].radius,0),n.lineTo(0,0),n.closePath(),n.fill(),1==a.border&&n.stroke()}n.translate(0,o)}}return n.restore(),!1!==t.dataLabel&&1===i&&Ee(h,t,n,o,a.labelAlign,u,l),1===i&&Fe(h,t,n,o,a.labelAlign,u,l),{center:l,radius:f,series:h}}(u,t,r,n,e),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);a.width*=t.pix;var o=t.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,f=[];n.save();var h=0,p=t.width+u;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),h=-t._scrollDistance_-2*u+t.area[3],p=h+(t.xAxis.itemCount+4)*u),e.forEach((function(e,o){var s,g,v;n.beginPath(),n.setStrokeStyle(e.color),n.moveTo(-1e4,-1e4),n.lineTo(-10001,-10001),n.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),v=s.shift();var y=e.data,x=Y(y,g,v,l,u,t,r,a,i);f.push(x);var m=M(x,e);if("dash"==e.lineType){var b=e.dashLength?e.dashLength:8;b*=t.pix,n.setLineDash([b,b])}n.beginPath();var _=e.color;if("none"!==a.linearType&&e.linearColor&&e.linearColor.length>0){for(var w=n.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),A=0;A<e.linearColor.length;A++)w.addColorStop(e.linearColor[A][0],c(e.linearColor[A][1],1));_=w}n.setStrokeStyle(_),1==a.onShadow&&e.setShadow&&e.setShadow.length>0?n.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):n.setShadow(0,0,0,"rgba(0,0,0,0)"),n.setLineWidth(a.width),m.forEach((function(e,t){if(1===e.length)n.moveTo(e[0].x,e[0].y);else{n.moveTo(e[0].x,e[0].y);var r=0;if("curve"===a.type)for(var i=0;i<e.length;i++){var o=e[i];if(0==r&&o.x>h&&(n.moveTo(o.x,o.y),r=1),i>0&&o.x>h&&o.x<p){var s=d(e,i-1);n.bezierCurveTo(s.ctrA.x,s.ctrA.y,s.ctrB.x,s.ctrB.y,o.x,o.y)}}if("straight"===a.type)for(var l=0;l<e.length;l++){var c=e[l];0==r&&c.x>h&&(n.moveTo(c.x,c.y),r=1),l>0&&c.x>h&&c.x<p&&n.lineTo(c.x,c.y)}if("step"===a.type)for(var u=0;u<e.length;u++){var f=e[u];0==r&&f.x>h&&(n.moveTo(f.x,f.y),r=1),u>0&&f.x>h&&f.x<p&&(n.lineTo(f.x,e[u-1].y),n.lineTo(f.x,f.y))}n.moveTo(e[0].x,e[0].y)}})),n.stroke(),n.setLineDash([]),!1!==t.dataPointShape&&oe(x,e.color,e.pointShape,n,t),se(x,e.color,e.pointShape,n,t,a)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var o,s,c;o=[].concat(t.chartData.yAxisData.ranges[e.index]),s=o.pop(),c=o.shift();var f=e.data,h=J(f,s,c,l,u,t,r,i);ce(h,e,r,n,t)})),n.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:u}}(u,t,r,n,e),a=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=l,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),o=a.xAxisPoints,l=a.eachSpacing,c=[];n.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),-t._scrollDistance_-2*l+t.area[3],t.xAxis.itemCount),e.forEach((function(e,a){var s,c,u;s=[].concat(t.chartData.yAxisData.ranges[e.index]),c=s.pop(),u=s.shift();var f=e.data,h=J(f,c,u,o,l,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setFillStyle(e.color),n.setLineWidth(1*t.pix);var d=e.pointShape;if("diamond"===d)h.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===d)h.forEach((function(e,r){null!==e&&(n.moveTo(e.x+2.5*t.pix,e.y),n.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===d)h.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===d)h.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("triangle"===d)return;n.closePath(),n.fill(),n.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var s,c,u;s=[].concat(t.chartData.yAxisData.ranges[e.index]),c=s.pop(),u=s.shift();var f=e.data,h=J(f,c,u,o,l,t,r,i);ce(h,e,r,n,t)})),n.restore(),{xAxisPoints:o,calPoints:c,eachSpacing:l}}(u,t,r,n,e),a=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=l,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{opacity:1,border:2},t.extra.bubble),o=t.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,f=[];n.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),-t._scrollDistance_-2*u+t.area[3],t.xAxis.itemCount),e.forEach((function(e,o){var s,f,h;s=[].concat(t.chartData.yAxisData.ranges[e.index]),f=s.pop(),h=s.shift();var d=e.data,p=J(d,f,h,l,u,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(a.border*t.pix),n.setFillStyle(c(e.color,a.opacity)),p.forEach((function(e,r){n.moveTo(e.x+e.r,e.y),n.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==t.dataLabel&&1===i&&p.forEach((function(i,a){n.beginPath();var o=e.textSize*t.pix||r.fontSize;n.setFontSize(o),n.setFillStyle(e.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(i.t),i.x,i.y+o/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:l,calPoints:f,eachSpacing:u}}(u,t,r,n,e),a=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=l,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var a=function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=t.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,f=s({},{width:u/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),h=s({},{opacity:.2,gradient:!1},t.extra.mix.area),p=s({},{width:2},t.extra.mix.line),g=t.height-t.area[2],v=[],x=0,m=0;e.forEach((function(e,t){"column"==e.type&&(m+=1)})),n.save();var b=-2,_=l.length+2,w=0,A=t.width+u;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),b=Math.floor(-t._scrollDistance_/u)-2,_=b+t.xAxis.itemCount+4,w=-t._scrollDistance_-2*u+t.area[3],A=w+(t.xAxis.itemCount+4)*u),f.customColor=y(f.linearType,f.customColor,e,r),e.forEach((function(e,o){var s,y,S;s=[].concat(t.chartData.yAxisData.ranges[e.index]),y=s.pop(),S=s.shift();var k=e.data,T=J(k,y,S,l,u,t,r,a);if(v.push(T),"column"==e.type){T=z(T,u,m,x,0,t);for(var P=0;P<T.length;P++){var C=T[P];if(null!==C&&P>b&&P<_){var O=C.x-C.width/2;t.height,C.y,t.area[2];n.beginPath();var L=C.color||e.color,D=C.color||e.color;if("none"!==f.linearType){var I=n.createLinearGradient(O,C.y,O,t.height-t.area[2]);"opacity"==f.linearType?(I.addColorStop(0,c(L,f.linearOpacity)),I.addColorStop(1,c(L,1))):(I.addColorStop(0,c(f.customColor[e.linearIndex],f.linearOpacity)),I.addColorStop(f.colorStop,c(f.customColor[e.linearIndex],f.linearOpacity)),I.addColorStop(1,c(L,1))),L=I}if(f.barBorderRadius&&4===f.barBorderRadius.length||f.barBorderCircle){var E=O,F=C.y,j=C.width,R=t.height-t.area[2]-C.y;f.barBorderCircle&&(f.barBorderRadius=[j/2,j/2,0,0]);var N=(0,i.default)(f.barBorderRadius,4),$=N[0],B=N[1],q=N[2],U=N[3],W=Math.min(j/2,R/2);$=$>W?W:$,B=B>W?W:B,q=q>W?W:q,U=U>W?W:U,$=$<0?0:$,B=B<0?0:B,q=q<0?0:q,U=U<0?0:U,n.arc(E+$,F+$,$,-Math.PI,-Math.PI/2),n.arc(E+j-B,F+B,B,-Math.PI/2,0),n.arc(E+j-q,F+R-q,q,0,Math.PI/2),n.arc(E+U,F+R-U,U,Math.PI/2,Math.PI)}else n.moveTo(O,C.y),n.lineTo(O+C.width,C.y),n.lineTo(O+C.width,t.height-t.area[2]),n.lineTo(O,t.height-t.area[2]),n.lineTo(O,C.y),n.setLineWidth(1),n.setStrokeStyle(D);n.setFillStyle(L),n.closePath(),n.fill()}}x+=1}if("area"==e.type)for(var H=M(T,e),V=0;V<H.length;V++){var K=H[V];if(n.beginPath(),n.setStrokeStyle(e.color),n.setStrokeStyle(c(e.color,h.opacity)),h.gradient){var G=n.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);G.addColorStop("0",c(e.color,h.opacity)),G.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(G)}else n.setFillStyle(c(e.color,h.opacity));if(n.setLineWidth(2*t.pix),K.length>1){var X=K[0],Y=K[K.length-1];n.moveTo(X.x,X.y);var Q=0;if("curve"===e.style)for(var Z=0;Z<K.length;Z++){var ee=K[Z];if(0==Q&&ee.x>w&&(n.moveTo(ee.x,ee.y),Q=1),Z>0&&ee.x>w&&ee.x<A){var te=d(K,Z-1);n.bezierCurveTo(te.ctrA.x,te.ctrA.y,te.ctrB.x,te.ctrB.y,ee.x,ee.y)}}else for(var re=0;re<K.length;re++){var ne=K[re];0==Q&&ne.x>w&&(n.moveTo(ne.x,ne.y),Q=1),re>0&&ne.x>w&&ne.x<A&&n.lineTo(ne.x,ne.y)}n.lineTo(Y.x,g),n.lineTo(X.x,g),n.lineTo(X.x,X.y)}else{var ie=K[0];n.moveTo(ie.x-u/2,ie.y)}n.closePath(),n.fill()}if("line"==e.type){var ae=M(T,e);ae.forEach((function(r,i){if("dash"==e.lineType){var a=e.dashLength?e.dashLength:8;a*=t.pix,n.setLineDash([a,a])}if(n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(p.width*t.pix),1===r.length)n.moveTo(r[0].x,r[0].y);else{n.moveTo(r[0].x,r[0].y);var o=0;if("curve"==e.style)for(var s=0;s<r.length;s++){var l=r[s];if(0==o&&l.x>w&&(n.moveTo(l.x,l.y),o=1),s>0&&l.x>w&&l.x<A){var c=d(r,s-1);n.bezierCurveTo(c.ctrA.x,c.ctrA.y,c.ctrB.x,c.ctrB.y,l.x,l.y)}}else for(var u=0;u<r.length;u++){var f=r[u];0==o&&f.x>w&&(n.moveTo(f.x,f.y),o=1),u>0&&f.x>w&&f.x<A&&n.lineTo(f.x,f.y)}n.moveTo(r[0].x,r[0].y)}n.stroke(),n.setLineDash([])}))}"point"==e.type&&(e.addPoint=!0),1==e.addPoint&&"column"!==e.type&&oe(T,e.color,e.pointShape,n,t)})),!1!==t.dataLabel&&1===a){x=0;e.forEach((function(e,i){var o,s,c;o=[].concat(t.chartData.yAxisData.ranges[e.index]),s=o.pop(),c=o.shift();var f=e.data,h=J(f,s,c,l,u,t,r,a);"column"!==e.type?ce(h,e,r,n,t):(h=z(h,u,m,x,0,t),ce(h,e,r,n,t),x+=1)}))}return n.restore(),{xAxisPoints:l,calPoints:v,eachSpacing:u}}(u,t,r,n,e),o=a.xAxisPoints,l=a.calPoints,h=a.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=l,t.chartData.eachSpacing=h,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var a=function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=t.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,f=s({},{type:"group",width:u/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),h=[];n.save();var d=-2,p=l.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),d=Math.floor(-t._scrollDistance_/u)-2,p=d+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&xe(t.tooltip.offset.x,t,0,n,u),f.customColor=y(f.linearType,f.customColor,e,r),e.forEach((function(o,s){var g,v,y;g=[].concat(t.chartData.yAxisData.ranges[o.index]),v=g.pop(),y=g.shift();var x=t.height-t.area[0]-t.area[2],m=x*(0-v)/(y-v),b=t.height-Math.round(m)-t.area[2];o.zeroPoints=b;var _=o.data;switch(f.type){case"group":var w=Q(_,v,y,l,u,t,r,b,a),A=te(_,v,y,l,u,t,r,s,e,a);h.push(A),w=z(w,u,e.length,s,0,t);for(var S=0;S<w.length;S++){var k=w[S];if(null!==k&&S>d&&S<p){var T=k.x-k.width/2,P=t.height-k.y-t.area[2];n.beginPath();var C=k.color||o.color,O=k.color||o.color;if("none"!==f.linearType){var L=n.createLinearGradient(T,k.y,T,b);"opacity"==f.linearType?(L.addColorStop(0,c(C,f.linearOpacity)),L.addColorStop(1,c(C,1))):(L.addColorStop(0,c(f.customColor[o.linearIndex],f.linearOpacity)),L.addColorStop(f.colorStop,c(f.customColor[o.linearIndex],f.linearOpacity)),L.addColorStop(1,c(C,1))),C=L}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var D=T,M=k.y>b?b:k.y,I=k.width,E=Math.abs(b-k.y);f.barBorderCircle&&(f.barBorderRadius=[I/2,I/2,0,0]),k.y>b&&(f.barBorderRadius=[0,0,I/2,I/2]);var F=(0,i.default)(f.barBorderRadius,4),j=F[0],R=F[1],N=F[2],$=F[3],B=Math.min(I/2,E/2);j=j>B?B:j,R=R>B?B:R,N=N>B?B:N,$=$>B?B:$,j=j<0?0:j,R=R<0?0:R,N=N<0?0:N,$=$<0?0:$,n.arc(D+j,M+j,j,-Math.PI,-Math.PI/2),n.arc(D+I-R,M+R,R,-Math.PI/2,0),n.arc(D+I-N,M+E-N,N,0,Math.PI/2),n.arc(D+$,M+E-$,$,Math.PI/2,Math.PI)}else n.moveTo(T,k.y),n.lineTo(T+k.width,k.y),n.lineTo(T+k.width,b),n.lineTo(T,b),n.lineTo(T,k.y),n.setLineWidth(1),n.setStrokeStyle(O);n.setFillStyle(C),n.closePath(),n.fill()}}break;case"stack":w=te(_,v,y,l,u,t,r,s,e,a);h.push(w),w=V(w,u,e.length,0,0,t);for(var q=0;q<w.length;q++){var U=w[q];if(null!==U&&q>d&&q<p){n.beginPath();C=U.color||o.color,T=U.x-U.width/2+1,P=t.height-U.y-t.area[2];var W=t.height-U.y0-t.area[2];s>0&&(P-=W),n.setFillStyle(C),n.moveTo(T,U.y),n.fillRect(T,U.y,U.width,P),n.closePath(),n.fill()}}break;case"meter":w=J(_,v,y,l,u,t,r,a);h.push(w),w=H(w,u,e.length,s,0,t,f.meterBorder);for(var K=0;K<w.length;K++){var G=w[K];if(null!==G&&K>d&&K<p){n.beginPath(),0==s&&f.meterBorder>0&&(n.setStrokeStyle(o.color),n.setLineWidth(f.meterBorder*t.pix)),0==s?n.setFillStyle(f.meterFillColor):n.setFillStyle(G.color||o.color);T=G.x-G.width/2,P=t.height-G.y-t.area[2];if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var X=T,Y=G.y,Z=G.width,ee=b-G.y;f.barBorderCircle&&(f.barBorderRadius=[Z/2,Z/2,0,0]);var re=(0,i.default)(f.barBorderRadius,4),ne=re[0],ie=re[1],ae=re[2],oe=re[3],se=Math.min(Z/2,ee/2);ne=ne>se?se:ne,ie=ie>se?se:ie,ae=ae>se?se:ae,oe=oe>se?se:oe,ne=ne<0?0:ne,ie=ie<0?0:ie,ae=ae<0?0:ae,oe=oe<0?0:oe,n.arc(X+ne,Y+ne,ne,-Math.PI,-Math.PI/2),n.arc(X+Z-ie,Y+ie,ie,-Math.PI/2,0),n.arc(X+Z-ae,Y+ee-ae,ae,0,Math.PI/2),n.arc(X+oe,Y+ee-oe,oe,Math.PI/2,Math.PI),n.fill()}else n.moveTo(T,G.y),n.lineTo(T+G.width,G.y),n.lineTo(T+G.width,b),n.lineTo(T,b),n.lineTo(T,G.y),n.fill();0==s&&f.meterBorder>0&&(n.closePath(),n.stroke())}}break}})),!1!==t.dataLabel&&1===a&&e.forEach((function(i,o){var s,c,h;s=[].concat(t.chartData.yAxisData.ranges[i.index]),c=s.pop(),h=s.shift();var d=i.data;switch(f.type){case"group":var p=Q(d,c,h,l,u,t,r,a);p=z(p,u,e.length,o,0,t),ue(p,i,r,n,t);break;case"stack":p=te(d,c,h,l,u,t,r,o,e,a);ue(p,i,r,n,t);break;case"meter":p=J(d,c,h,l,u,t,r,a);ue(p,i,r,n,t);break}})),n.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:u}}(u,t,r,n,e),o=a.xAxisPoints,l=a.calPoints,h=a.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=l,t.chartData.eachSpacing=h,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var a=function(e,t,r,n){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=t.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,f=s({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);f.widthRatio=f.widthRatio<=0?0:f.widthRatio,f.widthRatio=f.widthRatio>=2?2:f.widthRatio,n.save();var h,d,p,g=-2,v=l.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),g=Math.floor(-t._scrollDistance_/u)-2,v=g+t.xAxis.itemCount+4),f.customColor=y(f.linearType,f.customColor,e,r),h=[].concat(t.chartData.yAxisData.ranges[0]),d=h.pop(),p=h.shift();var x=t.height-t.area[0]-t.area[2],m=x*(0-d)/(p-d),b=t.height-Math.round(m)-t.area[2],_=Z(e,d,p,l,u,t,f,b,a);switch(f.type){case"bar":for(var w=0;w<_.length;w++){var A=_[w];if(null!==A&&w>g&&w<v){var S=A.x-u*f.widthRatio/2,k=t.height-A.y-t.area[2];n.beginPath();var T=A.color||e[w].color,P=A.color||e[w].color;if("none"!==f.linearType){var C=n.createLinearGradient(S,A.y,S,b);"opacity"==f.linearType?(C.addColorStop(0,c(T,f.linearOpacity)),C.addColorStop(1,c(T,1))):(C.addColorStop(0,c(f.customColor[e[w].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,c(f.customColor[e[w].linearIndex],f.linearOpacity)),C.addColorStop(1,c(T,1))),T=C}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var O=S,L=A.y>b?b:A.y,D=A.width,M=Math.abs(b-A.y);f.barBorderCircle&&(f.barBorderRadius=[D/2,D/2,0,0]),A.y>b&&(f.barBorderRadius=[0,0,D/2,D/2]);var I=(0,i.default)(f.barBorderRadius,4),E=I[0],F=I[1],j=I[2],R=I[3],N=Math.min(D/2,M/2);E=E>N?N:E,F=F>N?N:F,j=j>N?N:j,R=R>N?N:R,E=E<0?0:E,F=F<0?0:F,j=j<0?0:j,R=R<0?0:R,n.arc(O+E,L+E,E,-Math.PI,-Math.PI/2),n.arc(O+D-F,L+F,F,-Math.PI/2,0),n.arc(O+D-j,L+M-j,j,0,Math.PI/2),n.arc(O+R,L+M-R,R,Math.PI/2,Math.PI)}else n.moveTo(S,A.y),n.lineTo(S+A.width,A.y),n.lineTo(S+A.width,b),n.lineTo(S,b),n.lineTo(S,A.y);n.setStrokeStyle(P),n.setFillStyle(T),f.borderWidth>0&&(n.setLineWidth(f.borderWidth*t.pix),n.closePath(),n.stroke()),n.fill()}}break;case"triangle":for(var $=0;$<_.length;$++){var B=_[$];if(null!==B&&$>g&&$<v){S=B.x-u*f.widthRatio/2,k=t.height-B.y-t.area[2];n.beginPath();T=B.color||e[$].color,P=B.color||e[$].color;if("none"!==f.linearType){C=n.createLinearGradient(S,B.y,S,b);"opacity"==f.linearType?(C.addColorStop(0,c(T,f.linearOpacity)),C.addColorStop(1,c(T,1))):(C.addColorStop(0,c(f.customColor[e[$].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,c(f.customColor[e[$].linearIndex],f.linearOpacity)),C.addColorStop(1,c(T,1))),T=C}n.moveTo(S,b),n.lineTo(B.x,B.y),n.lineTo(S+B.width,b),n.setStrokeStyle(P),n.setFillStyle(T),f.borderWidth>0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"mount":for(var q=0;q<_.length;q++){var U=_[q];if(null!==U&&q>g&&q<v){S=U.x-u*f.widthRatio/2,k=t.height-U.y-t.area[2];n.beginPath();T=U.color||e[q].color,P=U.color||e[q].color;if("none"!==f.linearType){C=n.createLinearGradient(S,U.y,S,b);"opacity"==f.linearType?(C.addColorStop(0,c(T,f.linearOpacity)),C.addColorStop(1,c(T,1))):(C.addColorStop(0,c(f.customColor[e[q].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,c(f.customColor[e[q].linearIndex],f.linearOpacity)),C.addColorStop(1,c(T,1))),T=C}n.moveTo(S,b),n.bezierCurveTo(U.x-U.width/4,b,U.x-U.width/4,U.y,U.x,U.y),n.bezierCurveTo(U.x+U.width/4,U.y,U.x+U.width/4,b,S+U.width,b),n.setStrokeStyle(P),n.setFillStyle(T),f.borderWidth>0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break;case"sharp":for(var z=0;z<_.length;z++){var W=_[z];if(null!==W&&z>g&&z<v){S=W.x-u*f.widthRatio/2,k=t.height-W.y-t.area[2];n.beginPath();T=W.color||e[z].color,P=W.color||e[z].color;if("none"!==f.linearType){C=n.createLinearGradient(S,W.y,S,b);"opacity"==f.linearType?(C.addColorStop(0,c(T,f.linearOpacity)),C.addColorStop(1,c(T,1))):(C.addColorStop(0,c(f.customColor[e[z].linearIndex],f.linearOpacity)),C.addColorStop(f.colorStop,c(f.customColor[e[z].linearIndex],f.linearOpacity)),C.addColorStop(1,c(T,1))),T=C}n.moveTo(S,b),n.quadraticCurveTo(W.x-0,b-k/4,W.x,W.y),n.quadraticCurveTo(W.x+0,b-k/4,S+W.width,b),n.setStrokeStyle(P),n.setFillStyle(T),f.borderWidth>0&&(n.setLineWidth(f.borderWidth*t.pix),n.stroke()),n.fill()}}break}if(!1!==t.dataLabel&&1===a){var H,V,K;H=[].concat(t.chartData.yAxisData.ranges[0]),V=H.pop(),K=H.shift();_=Z(e,V,K,l,u,t,f,b,a);fe(_,e,r,n,t,b)}return n.restore(),{xAxisPoints:l,calPoints:_,eachSpacing:u}}(u,t,r,n,e),o=a.xAxisPoints,l=a.calPoints,h=a.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=l,t.chartData.eachSpacing=h,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),we(f,t,r,n);var a=function(e,t,r,n){for(var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=[],l=(t.height-t.area[0]-t.area[2])/t.categories.length,u=0;u<t.categories.length;u++)o.push(t.area[0]+l/2+l*u);var f=s({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.bar),h=[];n.save();var d=-2,p=o.length+2;return t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===a&&me(t.tooltip.offset.y,t,0,n,l),f.customColor=y(f.linearType,f.customColor,e,r),e.forEach((function(s,u){var g,v,y;g=[].concat(t.chartData.xAxisData.ranges),y=g.pop(),v=g.shift();var x=s.data;switch(f.type){case"group":var m=ee(x,v,y,o,l,t,r,a),b=re(x,v,y,o,l,t,r,u,e,a);h.push(b),m=W(m,l,e.length,u,0,t);for(var _=0;_<m.length;_++){var w=m[_];if(null!==w&&_>d&&_<p){var A=t.area[3],S=w.y-w.width/2;w.height;n.beginPath();var k=w.color||s.color,T=w.color||s.color;if("none"!==f.linearType){var P=n.createLinearGradient(A,w.y,w.x,w.y);"opacity"==f.linearType?(P.addColorStop(0,c(k,f.linearOpacity)),P.addColorStop(1,c(k,1))):(P.addColorStop(0,c(f.customColor[s.linearIndex],f.linearOpacity)),P.addColorStop(f.colorStop,c(f.customColor[s.linearIndex],f.linearOpacity)),P.addColorStop(1,c(k,1))),k=P}if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var C=A,O=w.width,L=w.y-w.width/2,D=w.height;f.barBorderCircle&&(f.barBorderRadius=[O/2,O/2,0,0]);var M=(0,i.default)(f.barBorderRadius,4),I=M[0],E=M[1],F=M[2],j=M[3],R=Math.min(O/2,D/2);I=I>R?R:I,E=E>R?R:E,F=F>R?R:F,j=j>R?R:j,I=I<0?0:I,E=E<0?0:E,F=F<0?0:F,j=j<0?0:j,n.arc(C+j,L+j,j,-Math.PI,-Math.PI/2),n.arc(w.x-I,L+I,I,-Math.PI/2,0),n.arc(w.x-E,L+O-E,E,0,Math.PI/2),n.arc(C+F,L+O-F,F,Math.PI/2,Math.PI)}else n.moveTo(A,S),n.lineTo(w.x,S),n.lineTo(w.x,S+w.width),n.lineTo(A,S+w.width),n.lineTo(A,S),n.setLineWidth(1),n.setStrokeStyle(T);n.setFillStyle(k),n.closePath(),n.fill()}}break;case"stack":m=re(x,v,y,o,l,t,r,u,e,a);h.push(m),m=K(m,l,e.length,0,0,t);for(var N=0;N<m.length;N++){var $=m[N];if(null!==$&&N>d&&N<p){n.beginPath();k=$.color||s.color,A=$.x0;n.setFillStyle(k),n.moveTo(A,$.y-$.width/2),n.fillRect(A,$.y-$.width/2,$.height,$.width),n.closePath(),n.fill()}}break}})),!1!==t.dataLabel&&1===a&&e.forEach((function(i,s){var c,u,h;c=[].concat(t.chartData.xAxisData.ranges),h=c.pop(),u=c.shift();var d=i.data;switch(f.type){case"group":var p=ee(d,u,h,o,l,t,r,a);p=W(p,l,e.length,s,0,t),he(p,i,r,n,t);break;case"stack":p=re(d,u,h,o,l,t,r,s,e,a);he(p,i,r,n,t);break}})),{yAxisPoints:o,calPoints:h,eachSpacing:l}}(u,t,r,n,e),o=a.yAxisPoints,l=a.calPoints,h=a.eachSpacing;t.chartData.yAxisPoints=o,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=l,t.chartData.eachSpacing=h,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var i=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),o=t.chartData.xAxisData,l=o.xAxisPoints,u=o.eachSpacing,f=t.height-t.area[2],h=[];n.save();var p=0,g=t.width+u;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),p=-t._scrollDistance_-2*u+t.area[3],g=p+(t.xAxis.itemCount+4)*u),e.forEach((function(e,o){var s,v,y;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),y=s.shift();var x=e.data,m=J(x,v,y,l,u,t,r,i);h.push(m);for(var b=M(m,e),_=0;_<b.length;_++){var w=b[_];if(n.beginPath(),n.setStrokeStyle(c(e.color,a.opacity)),a.gradient){var A=n.createLinearGradient(0,t.area[0],0,t.height-t.area[2]);A.addColorStop("0",c(e.color,a.opacity)),A.addColorStop("1.0",c("#FFFFFF",.1)),n.setFillStyle(A)}else n.setFillStyle(c(e.color,a.opacity));if(n.setLineWidth(a.width*t.pix),w.length>1){var S=w[0],k=w[w.length-1];n.moveTo(S.x,S.y);var T=0;if("curve"===a.type)for(var P=0;P<w.length;P++){var C=w[P];if(0==T&&C.x>p&&(n.moveTo(C.x,C.y),T=1),P>0&&C.x>p&&C.x<g){var O=d(w,P-1);n.bezierCurveTo(O.ctrA.x,O.ctrA.y,O.ctrB.x,O.ctrB.y,C.x,C.y)}}if("straight"===a.type)for(var L=0;L<w.length;L++){var D=w[L];0==T&&D.x>p&&(n.moveTo(D.x,D.y),T=1),L>0&&D.x>p&&D.x<g&&n.lineTo(D.x,D.y)}if("step"===a.type)for(var I=0;I<w.length;I++){var E=w[I];0==T&&E.x>p&&(n.moveTo(E.x,E.y),T=1),I>0&&E.x>p&&E.x<g&&(n.lineTo(E.x,w[I-1].y),n.lineTo(E.x,E.y))}n.lineTo(k.x,f),n.lineTo(S.x,f),n.lineTo(S.x,S.y)}else{var F=w[0];n.moveTo(F.x-u/2,F.y)}if(n.closePath(),n.fill(),a.addLine){if("dash"==e.lineType){var j=e.dashLength?e.dashLength:8;j*=t.pix,n.setLineDash([j,j])}if(n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(a.width*t.pix),1===w.length)n.moveTo(w[0].x,w[0].y);else{n.moveTo(w[0].x,w[0].y);var R=0;if("curve"===a.type)for(var N=0;N<w.length;N++){var $=w[N];if(0==R&&$.x>p&&(n.moveTo($.x,$.y),R=1),N>0&&$.x>p&&$.x<g){var B=d(w,N-1);n.bezierCurveTo(B.ctrA.x,B.ctrA.y,B.ctrB.x,B.ctrB.y,$.x,$.y)}}if("straight"===a.type)for(var q=0;q<w.length;q++){var U=w[q];0==R&&U.x>p&&(n.moveTo(U.x,U.y),R=1),q>0&&U.x>p&&U.x<g&&n.lineTo(U.x,U.y)}if("step"===a.type)for(var z=0;z<w.length;z++){var W=w[z];0==R&&W.x>p&&(n.moveTo(W.x,W.y),R=1),z>0&&W.x>p&&W.x<g&&(n.lineTo(W.x,w[z-1].y),n.lineTo(W.x,W.y))}n.moveTo(w[0].x,w[0].y)}n.stroke(),n.setLineDash([])}}!1!==t.dataPointShape&&oe(m,e.color,e.pointShape,n,t),se(m,e.color,e.pointShape,n,t,a,o)})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,a){var o,s,c;o=[].concat(t.chartData.yAxisData.ranges[e.index]),s=o.pop(),c=o.shift();var f=e.data,h=J(f,s,c,l,u,t,r,i);ce(h,e,r,n,t)})),n.restore(),{xAxisPoints:l,calPoints:h,eachSpacing:u}}(u,t,r,n,e),a=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=l,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.pieData=Te(u,t,r,n,e),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.pieData=Te(u,t,r,n,e),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.pieData=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==r.pieChartLinePadding&&(r.pieChartLinePadding=a.activeRadius*t.pix);var o={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},l=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);l=l<10?10:l;var u=a.minRadius||.5*l;l<u&&(l=u+10),e=N(e,a.type,u,l,i);var f=a.activeRadius*t.pix;return a.customColor=y(a.linearType,a.customColor,e,r),e=e.map((function(e){return e._start_+=(a.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(c(e.color,a.activeOpacity||.5)),n.moveTo(o.x,o.y),n.arc(o.x,o.y,f+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(a.borderColor);var i,s=e.color;"custom"==a.linearType&&(i=n.createCircularGradient?n.createCircularGradient(o.x,o.y,e._radius_):n.createRadialGradient(o.x,o.y,0,o.x,o.y,e._radius_),i.addColorStop(0,c(a.customColor[e.linearIndex],1)),i.addColorStop(1,c(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(o.x,o.y),n.arc(o.x,o.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==a.border&&n.stroke()})),!1!==t.dataLabel&&1===i&&ge(e,t,r,n,0,o),{center:o,radius:l,series:e}}(u,t,r,n,e),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.radarData=function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=s({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelShow:!0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),o=k(t.categories.length),l={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.area[0]+(t.height-t.area[0]-t.area[2])/2},u=(t.width-t.area[1]-t.area[3])/2,f=(t.height-t.area[0]-t.area[2])/2,h=Math.min(u-(S(t.categories,r.fontSize,n)+r.radarLabelTextMargin),f-r.radarLabelTextMargin);h-=r.radarLabelTextMargin*t.pix,h=h<10?10:h,h=a.radius?a.radius:h,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(a.gridColor),o.forEach((function(e,t){var r=p(h*Math.cos(e),h*Math.sin(e),l);n.moveTo(l.x,l.y),t%a.gridEval==0&&n.lineTo(r.x,r.y)})),n.stroke(),n.closePath();for(var d=function(e){var r={};if(n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(a.gridColor),"radar"==a.gridType)o.forEach((function(t,i){var o=p(h/a.gridCount*e*Math.cos(t),h/a.gridCount*e*Math.sin(t),l);0===i?(r=o,n.moveTo(o.x,o.y)):n.lineTo(o.x,o.y)})),n.lineTo(r.x,r.y);else{var i=p(h/a.gridCount*e*Math.cos(1.5),h/a.gridCount*e*Math.sin(1.5),l);n.arc(l.x,l.y,l.y-i.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},g=1;g<=a.gridCount;g++)d(g);a.customColor=y(a.linearType,a.customColor,e,r);var v=F(o,l,h,e,t,i);if(v.forEach((function(r,i){n.beginPath(),n.setLineWidth(a.borderWidth*t.pix),n.setStrokeStyle(r.color);var o,s=c(r.color,a.opacity);"custom"==a.linearType&&(o=n.createCircularGradient?n.createCircularGradient(l.x,l.y,h):n.createRadialGradient(l.x,l.y,0,l.x,l.y,h),o.addColorStop(0,c(a.customColor[e[i].linearIndex],a.opacity)),o.addColorStop(1,c(r.color,a.opacity)),s=o);if(n.setFillStyle(s),r.data.forEach((function(e,t){0===t?n.moveTo(e.position.x,e.position.y):n.lineTo(e.position.x,e.position.y)})),n.closePath(),n.fill(),!0===a.border&&n.stroke(),n.closePath(),!1!==t.dataPointShape){var u=r.data.map((function(e){return e.position}));oe(u,r.color,r.pointShape,n,t)}})),!0===a.axisLabel){var x=Math.max(a.max,Math.max.apply(null,b(e))),m=h/a.gridCount,_=t.fontSize*t.pix;n.setFontSize(_),n.setFillStyle(t.fontColor),n.setTextAlign("left");for(g=0;g<a.gridCount+1;g++){var w=g*x/a.gridCount;w=w.toFixed(a.axisLabelTofix),n.fillText(String(w),l.x+3*t.pix,l.y-g*m+_/2)}}return pe(o,h,l,t,r,n),!1!==t.dataLabel&&1===i&&(v.forEach((function(e,i){n.beginPath();var a=e.textSize*t.pix||r.fontSize;n.setFontSize(a),n.setFillStyle(e.textColor||t.fontColor),e.data.forEach((function(e,t){Math.abs(e.position.x-l.x)<2?e.position.y<l.y?(n.setTextAlign("center"),n.fillText(e.value,e.position.x,e.position.y-4)):(n.setTextAlign("center"),n.fillText(e.value,e.position.x,e.position.y+a+2)):e.position.x<l.x?(n.setTextAlign("right"),n.fillText(e.value,e.position.x-4,e.position.y+a/2-2)):(n.setTextAlign("left"),n.fillText(e.value,e.position.x+4,e.position.y+a/2-2))})),n.closePath(),n.stroke()})),n.setTextAlign("left")),{center:l,radius:h,angleList:o}}(u,t,r,n,e),ke(t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.arcbarData=function(e,t,r,n){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=$(e,l,o),i=l.centerX||l.centerY?{x:l.centerX?l.centerX:t.width/2,y:l.centerY?l.centerY:t.height/2}:{x:t.width/2,y:t.height/2},l.radius?a=l.radius:(a=Math.min(i.x,i.y),a-=5*t.pix,a-=l.width/2),a=a<10?10:a,l.customColor=y(l.linearType,l.customColor,e,r);for(var u=0;u<e.length;u++){var f=e[u];n.setLineWidth(l.width*t.pix),n.setStrokeStyle(l.backgroundColor||"#E9E9E9"),n.setLineCap(l.lineCap),n.beginPath(),"default"==l.type?n.arc(i.x,i.y,a-(l.width*t.pix+l.gap*t.pix)*u,l.startAngle*Math.PI,l.endAngle*Math.PI,"ccw"==l.direction):n.arc(i.x,i.y,a-(l.width*t.pix+l.gap*t.pix)*u,0,2*Math.PI,"ccw"==l.direction),n.stroke();var h=f.color;if("custom"==l.linearType){var d=n.createLinearGradient(i.x-a,i.y,i.x+a,i.y);d.addColorStop(1,c(l.customColor[f.linearIndex],1)),d.addColorStop(0,c(f.color,1)),h=d}n.setLineWidth(l.width*t.pix),n.setStrokeStyle(h),n.setLineCap(l.lineCap),n.beginPath(),n.arc(i.x,i.y,a-(l.width*t.pix+l.gap*t.pix)*u,l.startAngle*Math.PI,f._proportion_*Math.PI,"ccw"==l.direction),n.stroke()}return le(t,r,n,i),{center:i,radius:a,series:e}}(u,t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),t.chartData.gaugeData=function(e,t,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=s({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},r.extra.gauge);void 0==o.oldAngle&&(o.oldAngle=o.startAngle),void 0==o.oldData&&(o.oldData=0),e=q(e,o.startAngle,o.endAngle);var l={x:r.width/2,y:r.height/2},u=Math.min(l.x,l.y);u-=5*r.pix,u-=o.width/2,u=u<10?10:u;var f=u-o.width,h=0;if("progress"==o.type){var d=u-3*o.width;i.beginPath();var p=i.createLinearGradient(l.x,l.y-d,l.x,l.y+d);p.addColorStop("0",c(t[0].color,.3)),p.addColorStop("1.0",c("#FFFFFF",.1)),i.setFillStyle(p),i.arc(l.x,l.y,d,0,2*Math.PI,!1),i.fill(),i.setLineWidth(o.width),i.setStrokeStyle(c(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(l.x,l.y,f,o.startAngle*Math.PI,o.endAngle*Math.PI,!1),i.stroke(),h=o.endAngle<o.startAngle?2+o.endAngle-o.startAngle:o.startAngle-o.endAngle;o.splitLine.splitNumber;var g=h/o.splitLine.splitNumber/o.splitLine.childNumber,v=-u-.5*o.width-o.splitLine.fixRadius,y=-u-o.width-o.splitLine.fixRadius+o.splitLine.width;i.save(),i.translate(l.x,l.y),i.rotate((o.startAngle-1)*Math.PI);for(var x=o.splitLine.splitNumber*o.splitLine.childNumber+1,m=t[0].data*a,b=0;b<x;b++)i.beginPath(),m>b/x?i.setStrokeStyle(c(t[0].color,1)):i.setStrokeStyle(c(t[0].color,.3)),i.setLineWidth(3*r.pix),i.moveTo(v,0),i.lineTo(y,0),i.stroke(),i.rotate(g*Math.PI);i.restore(),t=B(t,o,a),i.setLineWidth(o.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(l.x,l.y,f,o.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var _=u-2.5*o.width;i.save(),i.translate(l.x,l.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(o.width/3);var w=i.createLinearGradient(0,.6*-_,0,.6*_);w.addColorStop("0",c("#FFFFFF",0)),w.addColorStop("0.5",c(t[0].color,1)),w.addColorStop("1.0",c("#FFFFFF",0)),i.setStrokeStyle(w),i.arc(0,0,_,.85*Math.PI,1.15*Math.PI,!1),i.stroke(),i.beginPath(),i.setLineWidth(1),i.setStrokeStyle(t[0].color),i.setFillStyle(t[0].color),i.moveTo(-_-o.width/3/2,-4),i.lineTo(-_-o.width/3/2-4,0),i.lineTo(-_-o.width/3/2,4),i.lineTo(-_-o.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(o.width),i.setLineCap("butt");for(var A=0;A<e.length;A++){var S=e[A];i.beginPath(),i.setStrokeStyle(S.color),i.arc(l.x,l.y,u,S._startAngle_*Math.PI,S._endAngle_*Math.PI,!1),i.stroke()}i.save(),h=o.endAngle<o.startAngle?2+o.endAngle-o.startAngle:o.startAngle-o.endAngle;var k=h/o.splitLine.splitNumber,T=h/o.splitLine.splitNumber/o.splitLine.childNumber,P=-u-.5*o.width-o.splitLine.fixRadius,C=-u-.5*o.width-o.splitLine.fixRadius+o.splitLine.width,O=-u-.5*o.width-o.splitLine.fixRadius+o.splitLine.childWidth;i.translate(l.x,l.y),i.rotate((o.startAngle-1)*Math.PI);for(var L=0;L<o.splitLine.splitNumber+1;L++)i.beginPath(),i.setStrokeStyle(o.splitLine.color),i.setLineWidth(2*r.pix),i.moveTo(P,0),i.lineTo(C,0),i.stroke(),i.rotate(k*Math.PI);i.restore(),i.save(),i.translate(l.x,l.y),i.rotate((o.startAngle-1)*Math.PI);for(var D=0;D<o.splitLine.splitNumber*o.splitLine.childNumber+1;D++)i.beginPath(),i.setStrokeStyle(o.splitLine.color),i.setLineWidth(1*r.pix),i.moveTo(P,0),i.lineTo(O,0),i.stroke(),i.rotate(T*Math.PI);i.restore(),t=U(t,e,o,a);for(var M=0;M<t.length;M++){var I=t[M];i.save(),i.translate(l.x,l.y),i.rotate((I._proportion_-1)*Math.PI),i.beginPath(),i.setFillStyle(I.color),i.moveTo(o.pointer.width,0),i.lineTo(0,-o.pointer.width/2),i.lineTo(-f,0),i.lineTo(0,o.pointer.width/2),i.lineTo(o.pointer.width,0),i.closePath(),i.fill(),i.beginPath(),i.setFillStyle("#FFFFFF"),i.arc(0,0,o.pointer.width/6,0,2*Math.PI,!1),i.fill(),i.restore()}!1!==r.dataLabel&&de(o,u,l,r,n,i)}return le(r,n,i,l),1===a&&"gauge"===r.type&&(r.extra.gauge.oldAngle=t[0]._proportion_,r.extra.gauge.oldData=t[0].data),{center:l,radius:u,innerRadius:f,categories:e,totalAngle:h}}(f,u,t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new Ne({timing:t.timing,duration:g,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&ae(n,t),Ae(0,t,0,n),we(f,t,r,n);var i=function(e,t,r,n,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,o=s({},{color:{},average:{}},r.extra.candle);o.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},o.color),o.average=s({},{show:!1,name:[],day:[],color:n.color},o.average),r.extra.candle=o;var l=r.chartData.xAxisData,c=l.xAxisPoints,u=l.eachSpacing,f=[];i.save();var h=-2,p=c.length+2,g=0,v=r.width+u;return r._scrollDistance_&&0!==r._scrollDistance_&&!0===r.enableScroll&&(i.translate(r._scrollDistance_,0),h=Math.floor(-r._scrollDistance_/u)-2,p=h+r.xAxis.itemCount+4,g=-r._scrollDistance_-2*u+r.area[3],v=g+(r.xAxis.itemCount+4)*u),(o.average.show||t)&&t.forEach((function(e,t){var o,s,l;o=[].concat(r.chartData.yAxisData.ranges[e.index]),s=o.pop(),l=o.shift();for(var f=e.data,h=J(f,s,l,c,u,r,n,a),p=M(h,e),y=0;y<p.length;y++){var x=p[y];if(i.beginPath(),i.setStrokeStyle(e.color),i.setLineWidth(1),1===x.length)i.moveTo(x[0].x,x[0].y),i.arc(x[0].x,x[0].y,1,0,2*Math.PI);else{i.moveTo(x[0].x,x[0].y);for(var m=0,b=0;b<x.length;b++){var _=x[b];if(0==m&&_.x>g&&(i.moveTo(_.x,_.y),m=1),b>0&&_.x>g&&_.x<v){var w=d(x,b-1);i.bezierCurveTo(w.ctrA.x,w.ctrA.y,w.ctrB.x,w.ctrB.y,_.x,_.y)}}i.moveTo(x[0].x,x[0].y)}i.closePath(),i.stroke()}})),e.forEach((function(e,t){var s,l,d;s=[].concat(r.chartData.yAxisData.ranges[e.index]),l=s.pop(),d=s.shift();var g=e.data,v=X(g,l,d,c,u,r,n,a);f.push(v);for(var y=M(v,e),x=0;x<y[0].length;x++)if(x>h&&x<p){var m=y[0][x];i.beginPath(),g[x][1]-g[x][0]>0?(i.setStrokeStyle(o.color.upLine),i.setFillStyle(o.color.upFill),i.setLineWidth(1*r.pix),i.moveTo(m[3].x,m[3].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[1].x-u/4,m[1].y),i.lineTo(m[0].x-u/4,m[0].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[2].x,m[2].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[0].x+u/4,m[0].y),i.lineTo(m[1].x+u/4,m[1].y),i.lineTo(m[1].x,m[1].y),i.moveTo(m[3].x,m[3].y)):(i.setStrokeStyle(o.color.downLine),i.setFillStyle(o.color.downFill),i.setLineWidth(1*r.pix),i.moveTo(m[3].x,m[3].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[0].x-u/4,m[0].y),i.lineTo(m[1].x-u/4,m[1].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[2].x,m[2].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[1].x+u/4,m[1].y),i.lineTo(m[0].x+u/4,m[0].y),i.lineTo(m[0].x,m[0].y),i.moveTo(m[3].x,m[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:u}}(u,x,t,r,n,e),a=i.xAxisPoints,o=i.calPoints,l=i.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=o,t.chartData.eachSpacing=l,Se(0,t,r,n),!1!==t.enableMarkLine&&1===e&&ve(t,0,n),ke(x?0:t.series,t,r,n,t.chartData),_e(t,r,n,e),je(0,n)},onAnimationFinish:function(){o.uevent.trigger("renderComplete")}});break}}function Be(){this.events={}}Ne.prototype.stop=function(){this.isStop=!0},Be.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},Be.prototype.delEventListener=function(e){this.events[e]=[]},Be.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],i=t.slice(1);this.events[n]&&this.events[n].forEach((function(e){try{e.apply(null,i)}catch(t){}}))};var qe=function(e){e.pix=e.pixelRatio?e.pixelRatio:1,e.fontSize=e.fontSize?e.fontSize:13,e.fontColor=e.fontColor?e.fontColor:o.fontColor,""!=e.background&&"none"!=e.background||(e.background="#FFFFFF"),e.title=s({},e.title),e.subtitle=s({},e.subtitle),e.duration=e.duration?e.duration:1e3,e.yAxis=s({},{data:[],showTitle:!1,disabled:!1,disableGrid:!1,gridSet:"number",splitNumber:5,gridType:"solid",dashLength:4*e.pix,gridColor:"#cccccc",padding:10,fontColor:"#666666"},e.yAxis),e.xAxis=s({},{rotateLabel:!1,rotateAngle:45,disabled:!1,disableGrid:!1,splitNumber:5,calibration:!1,fontColor:"#666666",fontSize:13,lineHeight:20,marginTop:0,gridType:"solid",dashLength:4,scrollAlign:"left",boundaryGap:"center",axisLine:!0,axisLineColor:"#cccccc",titleFontSize:13,titleOffsetY:0,titleOffsetX:0,titleFontColor:"#666666"},e.xAxis),e.xAxis.scrollPosition=e.xAxis.scrollAlign,e.legend=s({},{show:!0,position:"bottom",float:"center",backgroundColor:"rgba(0,0,0,0)",borderColor:"rgba(0,0,0,0)",borderWidth:0,padding:5,margin:5,itemGap:10,fontSize:e.fontSize,lineHeight:e.fontSize,fontColor:e.fontColor,formatter:{},hiddenColor:"#CECECE"},e.legend),e.extra=s({tooltip:{legendShape:"auto"}},e.extra),e.rotate=!!e.rotate,e.animation=!!e.animation,e.rotate=!!e.rotate,e.canvas2d=!!e.canvas2d;var t=s({},o);if(t.color=e.color?e.color:t.color,"pie"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.pie.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"ring"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.ring.labelWidth*e.pix||t.pieChartLinePadding*e.pix),"rose"==e.type&&(t.pieChartLinePadding=!1===e.dataLabel?0:e.extra.rose.labelWidth*e.pix||t.pieChartLinePadding*e.pix),t.pieChartTextPadding=!1===e.dataLabel?0:t.pieChartTextPadding*e.pix,t.rotate=e.rotate,e.rotate){var r=e.width,n=e.height;e.width=n,e.height=r}if(e.padding=e.padding?e.padding:t.padding,t.yAxisWidth=o.yAxisWidth*e.pix,t.fontSize=e.fontSize*e.pix,t.titleFontSize=o.titleFontSize*e.pix,t.subtitleFontSize=o.subtitleFontSize*e.pix,!e.context)throw new Error("[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!");this.context=e.context,this.context.setTextAlign||(this.context.setStrokeStyle=function(e){return this.strokeStyle=e},this.context.setLineWidth=function(e){return this.lineWidth=e},this.context.setLineCap=function(e){return this.lineCap=e},this.context.setFontSize=function(e){return this.font=e+"px sans-serif"},this.context.setFillStyle=function(e){return this.fillStyle=e},this.context.setTextAlign=function(e){return this.textAlign=e},this.context.setTextBaseline=function(e){return this.textBaseline=e},this.context.setShadow=function(e,t,r,n){this.shadowColor=n,this.shadowOffsetX=e,this.shadowOffsetY=t,this.shadowBlur=r},this.context.draw=function(){}),this.context.setLineDash||(this.context.setLineDash=function(e){}),e.chartData={},this.uevent=new Be,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0},this.opts=e,this.config=t,$e.call(this,e.type,e,t,this.context)};qe.prototype.updateData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.opts=s({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var r=ie(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,a=G(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,l=a.startX,c=a.endX,u=a.eachSpacing,f=u*(o.length-1),h=c-l;i=h-f,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}$e.call(this,this.opts.type,this.opts,this.config,this.context)},qe.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var r=ie(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,a=G(this.opts.categories,this.opts,this.config),o=a.xAxisPoints,s=a.startX,l=a.endX,c=a.eachSpacing,u=c*t,h=l-s,d=h-c*(o.length-1);i=h/2-u,i>0&&(i=0),i<d&&(i=d),this.scrollOption={currentOffset:i,startTouchX:0,distance:0,lastMoveTime:0},f(this,i,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=i,$e.call(this,this.opts.type,this.opts,this.config,this.context)}else console.log("[uCharts] 请启用滚动条后使用")},qe.prototype.dobuleZoom=function(e){if(!0===this.opts.enableScroll){var t=e.changedTouches;if(!(t.length<2)){for(var r=0;r<t.length;r++)t[r].x=t[r].x?t[r].x:t[r].clientX,t[r].y=t[r].y?t[r].y:t[r].clientY;var n=[w(t[0],this.opts,e),w(t[1],this.opts,e)],i=Math.abs(n[0].x-n[1].x);if(!this.scrollOption.moveCount){var a={changedTouches:[{x:t[0].x,y:this.opts.area[0]/this.opts.pix+2}]},o={changedTouches:[{x:t[1].x,y:this.opts.area[0]/this.opts.pix+2}]};this.opts.rotate&&(a={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[0].y}]},o={changedTouches:[{x:this.opts.height/this.opts.pix-this.opts.area[0]/this.opts.pix-2,y:t[1].y}]});var s=this.getCurrentDataIndex(a).index,l=this.getCurrentDataIndex(o).index,c=Math.abs(s-l);return this.scrollOption.moveCount=c,this.scrollOption.moveCurrent1=Math.min(s,l),void(this.scrollOption.moveCurrent2=Math.max(s,l))}var u=i/this.scrollOption.moveCount,h=(this.opts.width-this.opts.area[1]-this.opts.area[3])/u;h=h<=2?2:h,h=h>=this.opts.categories.length?this.opts.categories.length:h,this.opts.animation=!1,this.opts.xAxis.itemCount=h;var d=0,p=G(this.opts.categories,this.opts,this.config),g=p.xAxisPoints,v=p.startX,y=p.endX,x=p.eachSpacing,m=x*this.scrollOption.moveCurrent1,b=y-v,_=b-x*(g.length-1);d=-m+Math.min(n[0].x,n[1].x)-this.opts.area[3]-x,d>0&&(d=0),d<_&&(d=_),this.scrollOption.currentOffset=d,this.scrollOption.startTouchX=0,this.scrollOption.distance=0,f(this,d,this.opts.chartData,this.config,this.opts),this.opts._scrollDistance_=d,$e.call(this,this.opts.type,this.opts,this.config,this.context)}}else console.log("[uCharts] 请启用滚动条后使用")},qe.prototype.stopAnimation=function(){this.animationInstance&&this.animationInstance.stop()},qe.prototype.addEventListener=function(e,t){this.uevent.addEventListener(e,t)},qe.prototype.delEventListener=function(e){this.uevent.delEventListener(e)},qe.prototype.getCurrentDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var r=w(t,this.opts,e);return"pie"===this.opts.type||"ring"===this.opts.type?function(e,t,r){var n=-1,i=j(t.series);if(t&&t.center&&D(e,t.center,t.radius)){var a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a=-a,r.extra.pie&&r.extra.pie.offsetAngle&&(a-=r.extra.pie.offsetAngle*Math.PI/180),r.extra.ring&&r.extra.ring.offsetAngle&&(a-=r.extra.ring.offsetAngle*Math.PI/180);for(var o=0,s=i.length;o<s;o++)if(h(a,i[o]._start_,i[o]._start_+2*i[o]._proportion_*Math.PI)){n=o;break}}return n}({x:r.x,y:r.y},this.opts.chartData.pieData,this.opts):"rose"===this.opts.type?function(e,t,r){var n=-1,i=N(r._series_,r.extra.rose.type,t.radius,t.radius);if(t&&t.center&&D(e,t.center,t.radius)){var a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a=-a,r.extra.rose&&r.extra.rose.offsetAngle&&(a-=r.extra.rose.offsetAngle*Math.PI/180);for(var o=0,s=i.length;o<s;o++)if(h(a,i[o]._start_,i[o]._start_+2*i[o]._rose_proportion_*Math.PI)){n=o;break}}return n}({x:r.x,y:r.y},this.opts.chartData.pieData,this.opts):"radar"===this.opts.type?function(e,t,r){var n=2*Math.PI/r,i=-1;if(D(e,t.center,t.radius)){var a=function(e){return e<0&&(e+=2*Math.PI),e>2*Math.PI&&(e-=2*Math.PI),e},o=Math.atan2(t.center.y-e.y,e.x-t.center.x);o*=-1,o<0&&(o+=2*Math.PI);var s=t.angleList.map((function(e){return e=a(-1*e),e}));s.forEach((function(e,t){var r=a(e-n/2),s=a(e+n/2);s<r&&(s+=2*Math.PI),(o>=r&&o<=s||o+2*Math.PI>=r&&o+2*Math.PI<=s)&&(i=t)}))}return i}({x:r.x,y:r.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(e,t){for(var r=-1,n=0,i=t.series.length;n<i;n++){var a=t.series[n];if(e.x>a.funnelArea[0]&&e.x<a.funnelArea[2]&&e.y>a.funnelArea[1]&&e.y<a.funnelArea[3]){r=n;break}}return r}({x:r.x,y:r.y},this.opts.chartData.funnelData):"map"===this.opts.type?function(e,t){for(var r=-1,n=t.chartData.mapData,i=t.series,a=function(e,t,r,n,i,a){return{x:(t-i)/n+r.xMin,y:r.yMax-(e-a)/n}}(e.y,e.x,n.bounds,n.scale,n.xoffset,n.yoffset),o=[a.x,a.y],s=0,l=i.length;s<l;s++){var c=i[s].geometry.coordinates;if(Le(o,c,t.chartData.mapData.mercator)){r=s;break}}return r}({x:r.x,y:r.y},this.opts):"word"===this.opts.type?function(e,t){for(var r=-1,n=0,i=t.length;n<i;n++){var a=t[n];if(e.x>a.area[0]&&e.x<a.area[2]&&e.y>a.area[1]&&e.y<a.area[3]){r=n;break}}return r}({x:r.x,y:r.y},this.opts.chartData.wordCloudData):"bar"===this.opts.type?function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=r.chartData.eachSpacing/2,s=r.chartData.yAxisPoints;return t&&t.length>0&&L(e,r,n)&&s.forEach((function(t,r){e.y+i+o>t&&(a.index=r)})),a}({x:r.x,y:r.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a={index:-1,group:[]},o=r.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(r.categories){for(var l=1;l<r.chartData.xAxisPoints.length;l++)s.push(r.chartData.xAxisPoints[l]-o);"line"!=r.type&&"area"!=r.type||"justify"!=r.xAxis.boundaryGap||(s=r.chartData.xAxisPoints)}else o=0;if(L(e,r,n))if(r.categories)s.forEach((function(t,r){e.x+i+o>t&&(a.index=r)}));else{for(var c=Array(t.length),u=0;u<t.length;u++){c[u]=Array(t[u].length);for(var f=0;f<t[u].length;f++)c[u][f]=Math.abs(t[u][f].x-e.x)}for(var h=Array(c.length),d=Array(c.length),p=0;p<c.length;p++)h[p]=Math.min.apply(null,c[p]),d[p]=c[p].indexOf(h[p]);var g=Math.min.apply(null,h);a.index=[];for(var v=0;v<h.length;v++)h[v]==g&&(a.group.push(v),a.index.push(d[v]))}}return a}({x:r.x,y:r.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset))}return-1},qe.prototype.getLegendDataIndex=function(e){var t=null;if(t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],t){var r=w(t,this.opts,e);return function(e,t,r){var n=-1;if(function(e,t){return e.x>t.start.x&&e.x<t.end.x&&e.y>t.start.y&&e.y<t.end.y}(e,t.area)){for(var i=t.points,a=-1,o=0,s=i.length;o<s;o++)for(var l=i[o],c=0;c<l.length;c++){a+=1;var u=l[c]["area"];if(u&&e.x>u[0]-0&&e.x<u[2]+0&&e.y>u[1]-0&&e.y<u[3]+0){n=a;break}}return n}return n}({x:r.x,y:r.y},this.opts.chartData.legendData)}return-1},qe.prototype.touchLegend=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;if(r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r){w(r,this.opts,e);var n=this.getLegendDataIndex(e);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,$e.call(this,this.opts.type,this.opts,this.config,this.context))}},qe.prototype.showToolTip=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n||console.log("[uCharts] 未获取到event坐标信息");var i=w(n,this.opts,e),a=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:a,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var l=this.getCurrentDataIndex(e),c=void 0==r.index?l.index:r.index;if(c>-1||c.length>0){var u=A(this.opts.series,c,l.group);if(0!==u.length){var f=T(u,this.opts,c,l.group,this.opts.categories,r),h=f.textList,d=f.offset;d.y=i.y,o.tooltip={textList:void 0!==r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c,group:l.group}}}$e.call(this,o.type,o,this.config,this.context)}if("mount"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e).index:r.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},o._series_[c]),h=[{text:r.formatter?r.formatter(u,void 0,c,o):u.name+": "+u.data,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:o.chartData.calPoints[c].x,y:i.y};o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}$e.call(this,o.type,o,this.config,this.context)}if("bar"===this.opts.type){l=this.getCurrentDataIndex(e),c=void 0==r.index?l.index:r.index;if(c>-1||c.length>0){u=A(this.opts.series,c,l.group);if(0!==u.length){f=T(u,this.opts,c,l.group,this.opts.categories,r),h=f.textList,d=f.offset;d.x=i.x,o.tooltip={textList:void 0!==r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}$e.call(this,o.type,o,this.config,this.context)}if("mix"===this.opts.type){l=this.getCurrentDataIndex(e),c=void 0==r.index?l.index:r.index;if(c>-1){a=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:a,animation:!1}),u=A(this.opts.series,c);if(0!==u.length){var p=P(u,this.opts,c,this.opts.categories,r);h=p.textList,d=p.offset;d.y=i.y,o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}$e.call(this,o.type,o,this.config,this.context)}if("candle"===this.opts.type){l=this.getCurrentDataIndex(e),c=void 0==r.index?l.index:r.index;if(c>-1){a=this.scrollOption.currentOffset,o=s({},this.opts,{_scrollDistance_:a,animation:!1}),u=A(this.opts.series,c);if(0!==u.length){f=C(this.opts.series[0].data,u,this.opts,c,this.opts.categories,this.opts.extra.candle,r),h=f.textList,d=f.offset;d.y=i.y,o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}$e.call(this,o.type,o,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},o._series_[c]),h=[{text:r.formatter?r.formatter(u,void 0,c,o):u.name+": "+u.data,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.x,y:i.y};o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}$e.call(this,o.type,o,this.config,this.context)}if("map"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},this.opts.series[c]);u.name=u.properties.name;h=[{text:r.formatter?r.formatter(u,void 0,c,this.opts):u.name,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.x,y:i.y};o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}o.updateData=!1,$e.call(this,o.type,o,this.config,this.context)}if("word"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=s({},this.opts.series[c]),h=[{text:r.formatter?r.formatter(u,void 0,c,this.opts):u.name,color:u.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?u.legendShape:this.opts.extra.tooltip.legendShape}],d={x:i.x,y:i.y};o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}o.updateData=!1,$e.call(this,o.type,o,this.config,this.context)}if("radar"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){o=s({},this.opts,{animation:!1}),u=A(this.opts.series,c);if(0!==u.length){h=u.map((function(e){return{text:r.formatter?r.formatter(e,t.opts.categories[c],c,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),d={x:i.x,y:i.y};o.tooltip={textList:r.textList?r.textList:h,offset:void 0!==r.offset?r.offset:d,option:r,index:c}}}$e.call(this,o.type,o,this.config,this.context)}},qe.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});$e.call(this,this.opts.type,t,this.config,this.context)},qe.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var r=w(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=r.x)},qe.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,r=Date.now(),n=r-this.scrollOption.lastMoveTime;if(!(n<Math.floor(1e3/t))&&0!=this.scrollOption.startTouchX){this.scrollOption.lastMoveTime=r;var i=null;if(i=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],i&&!0===this.opts.enableScroll){var a,o=w(i,this.opts,e);a=o.x-this.scrollOption.startTouchX;var l=this.scrollOption.currentOffset,c=f(this,l+a,this.opts.chartData,this.config,this.opts);this.scrollOption.distance=a=c-l;var u=s({},this.opts,{_scrollDistance_:l+a,animation:!1});return this.opts=u,$e.call(this,u.type,u,this.config,this.context),l+a}}},qe.prototype.scrollEnd=function(e){if(!0===this.opts.enableScroll){var t=this.scrollOption,r=t.currentOffset,n=t.distance;this.scrollOption.currentOffset=r+n,this.scrollOption.distance=0,this.scrollOption.moveCount=0}};var Ue=qe;t.default=Ue},"86c8":function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("2eee")),a=n(r("c973")),o=n(r("970b")),s=n(r("5bc3")),l=function(){function t(){(0,o.default)(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return(0,s.default)(t,[{key:"addRootPath",value:function(e){return"/"===e[0]?e:"/".concat(e)}},{key:"mixinParam",value:function(t,r){t=t&&this.addRootPath(t);var n="";return/.*\/.*\?.*=.*/.test(t)?(n=e.$u.queryParams(r,!1),t+"&"+n):(n=e.$u.queryParams(r),t+n)}},{key:"route",value:function(){var t=(0,a.default)(i.default.mark((function t(){var r,n,a,o,s=arguments;return i.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(r=s.length>0&&void 0!==s[0]?s[0]:{},n=s.length>1&&void 0!==s[1]?s[1]:{},a={},"string"===typeof r?(a.url=this.mixinParam(r,n),a.type="navigateTo"):(a=e.$u.deepClone(r,this.config),a.url=this.mixinParam(r.url,r.params)),n.intercept&&(this.config.intercept=n.intercept),a.params=n,a=e.$u.deepMerge(this.config,a),"function"!==typeof e.$u.routeIntercept){t.next=14;break}return t.next=10,new Promise((function(t,r){e.$u.routeIntercept(a,t)}));case 10:o=t.sent,o&&this.openPage(a),t.next=15;break;case 14:this.openPage(a);case 15:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"openPage",value:function(t){var r=t.url,n=(t.type,t.delta),i=t.animationType,a=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:r,animationType:i,animationDuration:a}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:r}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:r}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:r}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:n})}}]),t}(),c=(new l).route;t.default=c}).call(this,r("543d")["default"])},"8f86":function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("c671")),a=n(r("f566")),o=n(r("3af8")),s={base:i.default,estate:a.default,cust:o.default};t.default=s},9523:function(e,t,r){var n=r("a395");e.exports=function(e,t,r){return t=n(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},e.exports.__esModule=!0,e.exports["default"]=e.exports},"970b":function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports["default"]=e.exports},"9b42":function(e,t){e.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,c=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(u){c=!0,i=u}finally{try{if(!l&&null!=r["return"]&&(o=r["return"](),Object(o)!==o))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports["default"]=e.exports},a128:function(e,t,r){var n=r("36c6"),i=r("4a4b"),a=r("c5f7"),o=r("b17c");function s(t){var r="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!a(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof r){if(r.has(e))return r.get(e);r.set(e,t)}function t(){return o(e,arguments,n(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports["default"]=e.exports},a342:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var r="";switch(e){case"primary":r="info-circle";break;case"info":r="info-circle";break;case"error":r="close-circle";break;case"warning":r="error-circle";break;case"success":r="checkmark-circle";break;default:r="checkmark-circle"}return t&&(r+="-fill"),r};t.default=n},a395:function(e,t,r){var n=r("7037")["default"],i=r("e50d");e.exports=function(e){var t=i(e,"string");return"symbol"===n(t)?t:String(t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a9ff:function(e,t,r){"use strict";(function(e,n,i){var a=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=a(r("2eee")),s=a(r("3c96")),l=a(r("278c")),c=a(r("7037")),u=a(r("448a")),f=a(r("c973")),h=a(r("9523")),d=a(r("ed6d")),p=a(r("6b58")),g=a(r("36c6")),v=a(r("a128")),y=a(r("970b")),x=a(r("5bc3")),m=r("37dc"),b=a(r("6b1f"));function _(e,t){var r="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return w(e,t)}(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function S(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?A(Object(r),!0).forEach((function(t){(0,h.default)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function k(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=(0,g.default)(e);if(t){var i=(0,g.default)(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return(0,p.default)(this,r)}}function T(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&r.path)}},r.exports),r.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var P=T((function(e,t){var r;e.exports=(r=r||function(e,t){var r=Object.create||function(){function e(){}return function(t){var r;return e.prototype=t,r=new e,e.prototype=null,r}}(),n={},i=n.lib={},a=i.Base={extend:function(e){var t=r(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,r=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var a=0;a<i;a++){var o=r[a>>>2]>>>24-a%4*8&255;t[n+a>>>2]|=o<<24-(n+a)%4*8}else for(a=0;a<i;a+=4)t[n+a>>>2]=r[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a<t;a+=4){var s=i(4294967296*(r||e.random()));r=987654071*s(),n.push(4294967296*s()|0)}return new o.init(n,t)}}),s=n.enc={},l=s.Hex={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push((a>>>4).toString(16)),n.push((15&a).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n+=2)r[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new o.init(r,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i<r;i++){var a=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(a))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n<t;n++)r[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new o.init(r,t)}},u=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.sigBytes,a=this.blockSize,s=i/(4*a),l=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*l,i);if(l){for(var u=0;u<l;u+=a)this._doProcessBlock(n,u);var f=n.splice(0,l);r.sigBytes-=c}return new o.init(f,c)},clone:function(){var e=a.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=f.extend({cfg:a.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,r){return new e.init(r).finalize(t)}},_createHmacHelper:function(e){return function(t,r){return new h.HMAC.init(e,r).finalize(t)}}});var h=n.algo={};return n}(Math),r)})),C=P,O=(T((function(e,t){var r;e.exports=(r=C,function(e){var t=r,n=t.lib,i=n.WordArray,a=n.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=o.MD5=a.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var r=0;r<16;r++){var n=t+r,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],l=e[t+1],d=e[t+2],p=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],x=e[t+7],m=e[t+8],b=e[t+9],_=e[t+10],w=e[t+11],A=e[t+12],S=e[t+13],k=e[t+14],T=e[t+15],P=a[0],C=a[1],O=a[2],L=a[3];P=c(P,C,O,L,o,7,s[0]),L=c(L,P,C,O,l,12,s[1]),O=c(O,L,P,C,d,17,s[2]),C=c(C,O,L,P,p,22,s[3]),P=c(P,C,O,L,g,7,s[4]),L=c(L,P,C,O,v,12,s[5]),O=c(O,L,P,C,y,17,s[6]),C=c(C,O,L,P,x,22,s[7]),P=c(P,C,O,L,m,7,s[8]),L=c(L,P,C,O,b,12,s[9]),O=c(O,L,P,C,_,17,s[10]),C=c(C,O,L,P,w,22,s[11]),P=c(P,C,O,L,A,7,s[12]),L=c(L,P,C,O,S,12,s[13]),O=c(O,L,P,C,k,17,s[14]),P=u(P,C=c(C,O,L,P,T,22,s[15]),O,L,l,5,s[16]),L=u(L,P,C,O,y,9,s[17]),O=u(O,L,P,C,w,14,s[18]),C=u(C,O,L,P,o,20,s[19]),P=u(P,C,O,L,v,5,s[20]),L=u(L,P,C,O,_,9,s[21]),O=u(O,L,P,C,T,14,s[22]),C=u(C,O,L,P,g,20,s[23]),P=u(P,C,O,L,b,5,s[24]),L=u(L,P,C,O,k,9,s[25]),O=u(O,L,P,C,p,14,s[26]),C=u(C,O,L,P,m,20,s[27]),P=u(P,C,O,L,S,5,s[28]),L=u(L,P,C,O,d,9,s[29]),O=u(O,L,P,C,x,14,s[30]),P=f(P,C=u(C,O,L,P,A,20,s[31]),O,L,v,4,s[32]),L=f(L,P,C,O,m,11,s[33]),O=f(O,L,P,C,w,16,s[34]),C=f(C,O,L,P,k,23,s[35]),P=f(P,C,O,L,l,4,s[36]),L=f(L,P,C,O,g,11,s[37]),O=f(O,L,P,C,x,16,s[38]),C=f(C,O,L,P,_,23,s[39]),P=f(P,C,O,L,S,4,s[40]),L=f(L,P,C,O,o,11,s[41]),O=f(O,L,P,C,p,16,s[42]),C=f(C,O,L,P,y,23,s[43]),P=f(P,C,O,L,b,4,s[44]),L=f(L,P,C,O,A,11,s[45]),O=f(O,L,P,C,T,16,s[46]),P=h(P,C=f(C,O,L,P,d,23,s[47]),O,L,o,6,s[48]),L=h(L,P,C,O,x,10,s[49]),O=h(O,L,P,C,k,15,s[50]),C=h(C,O,L,P,v,21,s[51]),P=h(P,C,O,L,A,6,s[52]),L=h(L,P,C,O,p,10,s[53]),O=h(O,L,P,C,_,15,s[54]),C=h(C,O,L,P,l,21,s[55]),P=h(P,C,O,L,m,6,s[56]),L=h(L,P,C,O,T,10,s[57]),O=h(O,L,P,C,y,15,s[58]),C=h(C,O,L,P,S,21,s[59]),P=h(P,C,O,L,g,6,s[60]),L=h(L,P,C,O,w,10,s[61]),O=h(O,L,P,C,d,15,s[62]),C=h(C,O,L,P,b,21,s[63]),a[0]=a[0]+P|0,a[1]=a[1]+C|0,a[2]=a[2]+O|0,a[3]=a[3]+L|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var a=e.floor(n/4294967296),o=n;r[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),r[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,l=s.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,r,n,i,a,o){var s=e+(t&r|~t&n)+i+o;return(s<<a|s>>>32-a)+t}function u(e,t,r,n,i,a,o){var s=e+(t&n|r&~n)+i+o;return(s<<a|s>>>32-a)+t}function f(e,t,r,n,i,a,o){var s=e+(t^r^n)+i+o;return(s<<a|s>>>32-a)+t}function h(e,t,r,n,i,a,o){var s=e+(r^(t|~n))+i+o;return(s<<a|s>>>32-a)+t}t.MD5=a._createHelper(l),t.HmacMD5=a._createHmacHelper(l)}(Math),r.MD5)})),T((function(e,t){var r;e.exports=(r=C,void function(){var e=r,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,l=o.words,c=0;c<r;c++)s[c]^=1549556828,l[c]^=909522486;a.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,r=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(r))}})}())})),T((function(e,t){e.exports=C.HmacMD5}))),L=T((function(e,t){e.exports=C.enc.Utf8})),D=T((function(e,t){var r;e.exports=(r=C,function(){var e=r,t=e.lib.WordArray;function n(e,r,n){for(var i=[],a=0,o=0;o<r;o++)if(o%4){var s=n[e.charCodeAt(o-1)]<<o%4*2,l=n[e.charCodeAt(o)]>>>6-o%4*2;i[a>>>2]|=(s|l)<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,r=e.sigBytes,n=this._map;e.clamp();for(var i=[],a=0;a<r;a+=3)for(var o=(t[a>>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s<r;s++)i.push(n.charAt(o>>>6*(3-s)&63));var l=n.charAt(64);if(l)for(;i.length%4;)i.push(l);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a<r.length;a++)i[r.charCodeAt(a)]=a}var o=r.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),r.enc.Base64)})),M="FUNCTION",I="OBJECT",E="pending",F="fullfilled",j="rejected";function R(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function N(e){return"object"===R(e)}function $(e){return"function"==typeof e}function B(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var q="REJECTED",U="NOT_PENDING",z=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.createPromise,n=t.retryRule,i=void 0===n?q:n;(0,y.default)(this,e),this.createPromise=r,this.status=null,this.promise=null,this.retryRule=i}return(0,x.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case q:return this.status===j;case U:return this.status!==E}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=E,this.promise=this.createPromise().then((function(t){return e.status=F,Promise.resolve(t)}),(function(t){return e.status=j,Promise.reject(t)})),this.promise):this.promise}}]),e}();function W(e){return e&&"string"==typeof e?JSON.parse(e):e}var H="mp-weixin",V=W([]),K=H,G=(W(void 0),W([])||[]);try{(r("c344").default||r("c344")).appid}catch(nn){}var X={};function J(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=X,r=e,Object.prototype.hasOwnProperty.call(t,r)||(X[e]=n),X[e]}"app"===K&&(X=n._globalUniCloudObj?n._globalUniCloudObj:n._globalUniCloudObj={});var Y=["invoke","success","fail","complete"],Q=J("_globalUniCloudInterceptor");function Z(e,t){Q[e]||(Q[e]={}),N(t)&&Object.keys(t).forEach((function(r){Y.indexOf(r)>-1&&function(e,t,r){var n=Q[e][t];n||(n=Q[e][t]=[]),-1===n.indexOf(r)&&$(r)&&n.push(r)}(e,r,t[r])}))}function ee(e,t){Q[e]||(Q[e]={}),N(t)?Object.keys(t).forEach((function(r){Y.indexOf(r)>-1&&function(e,t,r){var n=Q[e][t];if(n){var i=n.indexOf(r);i>-1&&n.splice(i,1)}}(e,r,t[r])})):delete Q[e]}function te(e,t){return e&&0!==e.length?e.reduce((function(e,r){return e.then((function(){return r(t)}))}),Promise.resolve()):Promise.resolve()}function re(e,t){return Q[e]&&Q[e][t]||[]}function ne(e){Z("callObject",e)}var ie=J("_globalUniCloudListener"),ae="response",oe="needLogin",se="refreshToken",le="clientdb",ce="cloudfunction",ue="cloudobject";function fe(e){return ie[e]||(ie[e]=[]),ie[e]}function he(e,t){var r=fe(e);r.includes(t)||r.push(t)}function de(e,t){var r=fe(e),n=r.indexOf(t);-1!==n&&r.splice(n,1)}function pe(e,t){for(var r=fe(e),n=0;n<r.length;n++)(0,r[n])(t)}var ge,ve=!1;function ye(){return ge||(ge=new Promise((function(e){ve&&e(),function t(){if("function"==typeof getCurrentPages){var r=getCurrentPages();r&&r[0]&&(ve=!0,e())}ve||setTimeout((function(){t()}),30)}()})),ge)}function xe(e){var t={};for(var r in e){var n=e[r];$(n)&&(t[r]=B(n))}return t}var me,be,_e=function(e){(0,d.default)(r,e);var t=k(r);function r(e){var n;return(0,y.default)(this,r),n=t.call(this,e.message),n.errMsg=e.message||e.errMsg||"unknown system error",n.code=n.errCode=e.code||e.errCode||"SYSTEM_ERROR",n.errSubject=n.subject=e.subject||e.errSubject,n.cause=e.cause,n.requestId=e.requestId,n}return(0,x.default)(r,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),r}((0,v.default)(Error)),we={request:function(e){return n.request(e)},uploadFile:function(e){return n.uploadFile(e)},setStorageSync:function(e,t){return n.setStorageSync(e,t)},getStorageSync:function(e){return n.getStorageSync(e)},removeStorageSync:function(e){return n.removeStorageSync(e)},clearStorageSync:function(){return n.clearStorageSync()}};function Ae(){return{token:we.getStorageSync("uni_id_token")||we.getStorageSync("uniIdToken"),tokenExpired:we.getStorageSync("uni_id_token_expired")}}function Se(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,r=e.tokenExpired;t&&we.setStorageSync("uni_id_token",t),r&&we.setStorageSync("uni_id_token_expired",r)}function ke(){return me||(me=n.getSystemInfoSync()),me}function Te(){var e=n.getLocale&&n.getLocale()||"en";if(be)return S(S({},be),{},{locale:e,LOCALE:e});for(var t=ke(),r=t.deviceId,i=t.osName,a=t.uniPlatform,o=t.appId,s=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],l=0;l<s.length;l++)delete t[s[l]];return be=S(S({PLATFORM:a,OS:i,APPID:o,DEVICEID:r},function(){var e,t;try{if(n.getLaunchOptionsSync){if(n.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var r=n.getLaunchOptionsSync(),i=r.scene,a=r.channel;e=a,t=i}}catch(e){}return{channel:e,scene:t}}()),t),S(S({},be),{},{locale:e,LOCALE:e})}var Pe,Ce={sign:function(e,t){var r="";return Object.keys(e).sort().forEach((function(t){e[t]&&(r=r+"&"+t+"="+e[t])})),r=r.slice(1),O(r,t).toString()},wrappedRequest:function(e,t){return new Promise((function(r,n){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return n(new _e({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return n(new _e({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,r(i)}}))}))},toBase64:function(e){return D.stringify(L.parse(e))}},Oe={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},Le=(0,m.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:Oe,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:Oe},"zh-Hans"),De=Le.t,Me=function(){function e(t){var r=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(De("uniCloud.init.paramRequired",{param:e}))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=we,this._getAccessTokenPromiseHub=new z({createPromise:function(){return r.requestAuth(r.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new _e({code:"AUTH_FAILED",message:"获取accessToken失败"});r.setAccessToken(e.result.accessToken)}))},retryRule:U})}return(0,x.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Ce.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var r=this;return Promise.resolve().then((function(){return r.hasAccessToken?t?r.requestWrapped(e):r.requestWrapped(e).catch((function(t){return new Promise((function(e,r){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?r(t):e()})).then((function(){return r.getAccessToken()})).then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))})):r.getAccessToken().then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Ce.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=Ce.sign(r,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,r=e.url,n=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,l){var c=t.adapter.uploadFile({url:r,formData:n,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):l(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){l(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var r,n,i,a,s,l,c,u,f,h,d,p,g,v,y,x,m,b,_,w,A,S;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=t.filePath,n=t.cloudPath,i=t.fileType,a=void 0===i?"image":i,s=t.cloudPathAsRealPath,l=void 0!==s&&s,c=t.onUploadProgress,u=t.config,"string"===R(n)){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(n=n.trim()){e.next=5;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(n)){e.next=7;break}throw new _e({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=u&&u.envType||this.config.envType,!(l&&("/"!==n[0]&&(n="/"+n),n.indexOf("\\")>-1))){e.next=10;break}throw new _e({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:l?n.split("/").pop():n,fileId:l?n:void 0});case 12:return h=e.sent.result,d="https://"+h.cdnDomain+"/"+h.ossPath,p=h.securityToken,g=h.accessKeyId,v=h.signature,y=h.host,x=h.ossPath,m=h.id,b=h.policy,_=h.ossCallbackUrl,w={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:y,id:m,key:x,policy:b,success_action_status:200},p&&(w["x-oss-security-token"]=p),_&&(A=JSON.stringify({callbackUrl:_,callbackBody:JSON.stringify({fileId:m,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),w.callback=Ce.toBase64(A)),S={url:"https://"+h.host,formData:w,fileName:"file",name:"file",filePath:r,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},S,{onUploadProgress:c}));case 27:if(!_){e.next=29;break}return e.abrupt("return",{success:!0,filePath:r,fileID:d});case 29:return e.next=31,this.reportOSSUpload({id:m});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:r,fileID:d});case 33:throw new _e({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,r){Array.isArray(t)&&0!==t.length||r(new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r,n,i=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},r=t.fileList,Array.isArray(r)&&0!==r.length){e.next=3;break}throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return n={method:"serverless.file.resource.info",params:JSON.stringify({id:r.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(n));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),Ie={init:function(e){var t=new Me(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},Ee="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Pe||(Pe={}));var Fe,je=function(){},Re=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new _e({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var r=new Promise((function(t,r){e=function(e,n){return e?r(e):t(n)}}));return e.promise=r,e};function Ne(e){return void 0===e}function $e(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Fe||(Fe={}));var Be={adapter:null,runtime:void 0},qe=["anonymousUuidKey"],Ue=function(e){(0,d.default)(r,e);var t=k(r);function r(){var e;return(0,y.default)(this,r),e=t.call(this),Be.adapter.root.tcbObject||(Be.adapter.root.tcbObject={}),e}return(0,x.default)(r,[{key:"setItem",value:function(e,t){Be.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Be.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Be.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Be.adapter.root.tcbObject}}]),r}(je);function ze(e,t){switch(e){case"local":return t.localStorage||new Ue;case"none":return new Ue;default:return t.sessionStorage||new Ue}}var We=function(){function e(t){if((0,y.default)(this,e),!this._storage){this._persistence=Be.adapter.primaryStorage||t.persistence,this._storage=ze(this._persistence,Be.adapter);var r="access_token_".concat(t.env),n="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),a="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:r,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return(0,x.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var r=ze(e,Be.adapter);for(var n in this.keys){var i=this.keys[n];if(!t||!qe.includes(n)){var a=this._storage.getItem(i);Ne(a)||$e(a)||(r.setItem(i,a),this._storage.removeItem(i))}}this._storage=r}}},{key:"setStore",value:function(e,t,r){if(this._storage){var n={version:r||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var r=this._storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),He={},Ve={};function Ke(e){return He[e]}var Ge=(0,x.default)((function e(t,r){(0,y.default)(this,e),this.data=r||null,this.name=t})),Xe=function(e){(0,d.default)(r,e);var t=k(r);function r(e,n){var i;return(0,y.default)(this,r),i=t.call(this,"error",{error:e,data:n}),i.error=e,i}return(0,x.default)(r)}(Ge),Je=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,x.default)(e,[{key:"on",value:function(e,t){return function(e,t,r){r[e]=r[e]||[],r[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,r){if(r&&r[e]){var n=r[e].indexOf(t);-1!==n&&r[e].splice(n,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Xe)return console.error(e.error),this;var r="string"==typeof e?new Ge(e,t||{}):e,n=r.name;if(this._listens(n)){r.target=this;var i,a=this._listeners[n]?(0,u.default)(this._listeners[n]):[],o=_(a);try{for(o.s();!(i=o.n()).done;){var s=i.value;s.call(this,r)}}catch(l){o.e(l)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ye(e,t){Je.on(e,t)}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Je.fire(e,t)}function Ze(e,t){Je.off(e,t)}var et,tt="loginStateChanged",rt="loginStateExpire",nt="loginTypeChanged",it="anonymousConverted",at="refreshAccessToken";!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(et||(et={}));var ot=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],st={"X-SDK-Version":"1.3.5"};function lt(e,t,r){var n=e[t];e[t]=function(t){var i={},a={};r.forEach((function(r){var n=r.call(e,t),o=n.data,s=n.headers;Object.assign(i,o),Object.assign(a,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=S(S({},o),i);else for(var r in i)o.append(r,i[r])}(),t.headers=S(S({},t.headers||{}),a),n.call(e,t)}}function ct(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:S(S({},st),{},{"x-seqid":e})}}var ut=function(){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=r,this._reqClass=new Be.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Ke(this.config.env),this._localCache=(t=this.config.env,Ve[t]),lt(this._reqClass,"post",[ct]),lt(this._reqClass,"upload",[ct]),lt(this._reqClass,"download",[ct])}return(0,x.default)(e,[{key:"post",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),r=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!r){e.next=12;break}throw r;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r,n,i,a,s,l,c,u,f,h,d,p;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(r),this._cache.removeStore(n),l=this._cache.getStore(i),l){e.next=5;break}throw new _e({message:"未登录CloudBase"});case 5:return c={refresh_token:l},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(u=e.sent,!u.data.code){e.next=21;break}if(f=u.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(a)!==et.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return h=this._cache.getStore(s),d=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:h,refresh_token:d});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:Qe(rt),this._cache.removeStore(i);case 20:throw new _e({code:u.data.code,message:"刷新access token失败:".concat(u.data.code)});case 21:if(!u.data.access_token){e.next=23;break}return e.abrupt("return",(Qe(at),this._cache.setStore(r,u.data.access_token),this._cache.setStore(n,u.data.access_token_expire+Date.now()),{accessToken:u.data.access_token,accessTokenExpire:u.data.access_token_expire}));case 23:u.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,u.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r,n,i,a,s,l;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new _e({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(r),s=this._cache.getStore(n),l=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}l=!1;case 12:return e.abrupt("return",(!a||!s||s<Date.now())&&l?this.refreshAccessToken():{accessToken:a,accessTokenExpire:s});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r,n){var i,a,s,l,c,u,f,h,d,p,g,v,y,x,m,b;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),a="application/x-www-form-urlencoded",s=S({action:t,env:this.config.env,dataVersion:"2019-08-16"},r),-1!==ot.indexOf(t)){e.next=10;break}if(l=this._cache.keys.refreshTokenKey,e.t0=this._cache.getStore(l),!e.t0){e.next=10;break}return e.next=9,this.getAccessToken();case 9:s.access_token=e.sent.accessToken;case 10:if("storage.uploadFile"===t){for(u in c=new FormData,c)c.hasOwnProperty(u)&&void 0!==c[u]&&c.append(u,s[u]);a="multipart/form-data"}else for(f in a="application/json",c={},s)void 0!==s[f]&&(c[f]=s[f]);return h={headers:{"content-type":a}},n&&n.onUploadProgress&&(h.onUploadProgress=n.onUploadProgress),d=this._localCache.getStore(i),d&&(h.headers["X-TCB-Trace"]=d),p=r.parse,g=r.inQuery,v=r.search,y={env:this.config.env},p&&(y.parse=!0),g&&(y=S(S({},g),y)),x=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(t),i="";for(var a in r)""===i?!n&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(r[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Ee,"//tcb-api.tencentcloudapi.com/web",y),v&&(x+=v),e.next=22,this.post(S({url:x,data:c},h));case 22:if(m=e.sent,b=m.header&&m.header["x-tcb-trace"],b&&this._localCache.setStore(i,b),(200===Number(m.status)||200===Number(m.statusCode))&&m.data){e.next=26;break}throw new _e({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",m);case 27:case"end":return e.stop()}}),e,this)})));return function(t,r,n){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var r,n,i,a=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,r,{onUploadProgress:r.onUploadProgress});case 3:if(n=e.sent,"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==ot.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,r,{onUploadProgress:r.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new _e({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!n.data.code){e.next=15;break}throw new _e({code:n.data.code,message:n.data.message});case 15:return e.abrupt("return",n.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}}]),e}(),ft={};function ht(e){return ft[e]}var dt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=ht(t.env)}return(0,x.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var r=this._cache.keys,n=r.accessTokenKey,i=r.accessTokenExpireKey;this._cache.setStore(n,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),pt=function(){function e(t){if((0,y.default)(this,e),!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ke(this._envId),this._request=ht(this._envId),this.setUserInfo()}return(0,x.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new _e({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}},{key:"linkWithRedirect",value:function(e){e.signInWithRedirect()}},{key:"updatePassword",value:function(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}},{key:"updateEmail",value:function(e){return this._request.send("auth.updateEmail",{newEmail:e})}},{key:"updateUsername",value:function(e){if("string"!=typeof e)throw new _e({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r,n,i;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,r=t.data,n=!1,i=r.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(n=!0)})),{users:i,hasPrimaryUid:n}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var r,n,i,a,s,l,c,u;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.nickName,n=t.gender,i=t.avatarUrl,a=t.province,s=t.country,l=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:r,gender:n,avatarUrl:i,province:a,country:s,city:l});case 8:c=e.sent,u=c.data,this.setLocalUserInfo(u);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,r=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=r[t]})),this.location={country:r.country,province:r.province,city:r.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),gt=function(){function e(t){if((0,y.default)(this,e),!t)throw new _e({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ke(t);var r=this._cache.keys,n=r.refreshTokenKey,i=r.accessTokenKey,a=r.accessTokenExpireKey,o=this._cache.getStore(n),s=this._cache.getStore(i),l=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:l},this.user=new pt(t)}return(0,x.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===et.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===et.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===et.WECHAT||this.loginType===et.WECHAT_OPEN||this.loginType===et.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),vt=function(e){(0,d.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,x.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r,n,i,a,s,l;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,r=t.anonymousUuidKey,n=t.refreshTokenKey,i=this._cache.getStore(r)||void 0,a=this._cache.getStore(n)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:a});case 8:if(s=e.sent,!s.uuid||!s.refresh_token){e.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Qe(tt),Qe(nt,{env:this.config.env,loginType:et.ANONYMOUS,persistence:"local"}),l=new gt(this.config.env),e.next=19,l.user.refresh();case 19:return e.abrupt("return",l);case 20:throw new _e({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var r,n,i,a,s,l;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._cache.keys,n=r.anonymousUuidKey,i=r.refreshTokenKey,a=this._cache.getStore(n),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:s,ticket:t});case 7:if(l=e.sent,!l.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(l.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Qe(it,{env:this.config.env}),Qe(nt,{loginType:et.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:l.refresh_token}});case 16:throw new _e({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,r=t.anonymousUuidKey,n=t.loginTypeKey;this._cache.removeStore(r),this._cache.setStore(r,e),this._cache.setStore(n,et.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),r}(dt),yt=function(e){(0,d.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,x.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var r,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(r)||""});case 5:if(n=e.sent,!n.refresh_token){e.next=15;break}return this.setRefreshToken(n.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Qe(tt),Qe(nt,{env:this.config.env,loginType:et.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new gt(this.config.env));case 15:throw new _e({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),r}(dt),xt=function(e){(0,d.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,x.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r){var n,i,a,s,l;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"email must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:r,refresh_token:this._cache.getStore(n)||""});case 5:if(i=e.sent,a=i.refresh_token,s=i.access_token,l=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!s||!l){e.next=15;break}this.setAccessToken(s,l),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Qe(tt),Qe(nt,{env:this.config.env,loginType:et.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new gt(this.config.env));case 22:throw i.code?new _e({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new _e({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:r}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(dt),mt=function(e){(0,d.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,x.default)(r,[{key:"signIn",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r){var n,i,a,s,l;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof r&&(r="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:et.USERNAME,username:t,password:r,refresh_token:this._cache.getStore(n)||""});case 6:if(i=e.sent,a=i.refresh_token,s=i.access_token_expire,l=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!l||!s){e.next=16;break}this.setAccessToken(l,s),e.next=18;break;case 16:return e.next=18,this._request.refreshAccessToken();case 18:return e.next=20,this.refreshUserInfo();case 20:return Qe(tt),Qe(nt,{env:this.config.env,loginType:et.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new gt(this.config.env));case 23:throw i.code?new _e({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new _e({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()}]),r}(dt),bt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ke(t.env),this._request=ht(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ye(nt,this._onLoginTypeChanged)}return(0,x.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new vt(this.config)}},{key:"customAuthProvider",value:function(){return new yt(this.config)}},{key:"emailAuthProvider",value:function(){return new xt(this.config)}},{key:"usernameAuthProvider",value:function(){return new mt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new vt(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new xt(this.config).signIn(t,r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new mt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new vt(this.config)),Ye(it,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,f.default)(o.default.mark((function e(){var t,r,n,i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==et.ANONYMOUS){e.next=2;break}throw new _e({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,r=t.refreshTokenKey,n=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(r),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(r),this._cache.removeStore(n),this._cache.removeStore(i),Qe(tt),Qe(nt,{env:this.config.env,loginType:et.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:r}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Ye(tt,(function(){var r=t.hasLoginState();e.call(t,r)}));var r=this.hasLoginState();e.call(this,r)}},{key:"onLoginStateExpired",value:function(e){Ye(rt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ye(at,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ye(it,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ye(nt,(function(){var r=t.hasLoginState();e.call(t,r)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new gt(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,f.default)(o.default.mark((function e(t){var r,n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new _e({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return r=e.sent,n=r.data,e.abrupt("return",n&&n.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,f.default)(o.default.mark((function e(t){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new yt(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:S(S({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,r=e.accessTokenKey,n=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(r)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,r=t.loginType,n=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,r))}}]),e}(),_t=function(e,t){t=t||Re();var r=ht(this.config.env),n=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){var o=e.data,l=o.url,c=o.authorization,u=o.token,f=o.fileId,h=o.cosFileId,d=e.requestId,p={key:n,signature:c,"x-cos-meta-fileid":h,success_action_status:"201","x-cos-security-token":u};r.upload({url:l,data:p,file:i,name:n,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:d}):t(new _e({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},wt=function(e,t){t=t||Re();var r=ht(this.config.env),n=e.cloudPath;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},At=function(e,t){var r=e.fileList;if(t=t||Re(),!r||!Array.isArray(r))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,i=_(r);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:r};return ht(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},St=function(e,t){var r=e.fileList;t=t||Re(),r&&Array.isArray(r)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,i=[],a=_(r);try{for(a.s();!(n=a.n()).done;){var o=n.value;"object"==(0,c.default)(o)?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?i.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){a.e(l)}finally{a.f()}var s={file_list:i};return ht(this.config.env).send("storage.batchGetDownloadUrl",s).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},kt=function(){var e=(0,f.default)(o.default.mark((function e(t,r){var n,i,a,s;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileID,e.next=3,St.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",r?r(i):new Promise((function(e){e(i)})));case 6:if(a=ht(this.config.env),s=i.download_url,s=encodeURI(s),r){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=r,e.next=13,a.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),Tt=function(e,t){var r,n=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,l=t||Re();try{r=i?JSON.stringify(i):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new _e({code:"PARAM_ERROR",message:"函数名不能为空"}));var c={inQuery:a,parse:o,search:s,function_name:n,request_data:r};return ht(this.config.env).send("functions.invokeFunction",c).then((function(e){if(e.code)l(null,e);else{var t=e.data.response_data;if(o)l(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),l(null,{result:t,requestId:e.requestId})}catch(e){l(new _e({message:"response data must be json"}))}}return l.promise})).catch((function(e){l(e)})),l.promise},Pt={timeout:15e3,persistence:"session"},Ct={},Ot=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,x.default)(e,[{key:"init",value:function(t){switch(Be.adapter||(this.requestClient=new Be.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=S(S({},Pt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var r,n=t||Be.adapter.primaryStorage||Pt.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(e){var t=e.env;He[t]=new We(e),Ve[t]=new We(S(S({},e),{},{persistence:"local"}))}(this.config),r=this.config,ft[r.env]=new ut(r),this.authObj=new bt(this.config),this.authObj}},{key:"on",value:function(e,t){return Ye.apply(this,[e,t])}},{key:"off",value:function(e,t){return Ze.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return Tt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return At.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return St.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return kt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return _t.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return wt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ct[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(o.default.mark((function e(t,r){var n;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=Ct[t],n){e.next=3;break}throw new _e({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,n.invoke(r,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,r,n=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=_(n);try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.isMatch,s=a.genAdapter,l=a.runtime;if(o())return{adapter:s(),runtime:l}}}catch(c){i.e(c)}finally{i.f()}}(e)||{},r=t.adapter,n=t.runtime;r&&(Be.adapter=r),n&&(Be.runtime=n)}}]),e}(),Lt=new Ot;function Dt(e,t,r){void 0===r&&(r={});var n=/\?/.test(t),i="";for(var a in r)""===i?!n&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(r[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Mt=function(){function e(){(0,y.default)(this,e)}return(0,x.default)(e,[{key:"post",value:function(e){var t=e.url,r=e.data,n=e.headers;return new Promise((function(e,i){we.request({url:Dt("https:",t),data:r,method:"POST",header:n,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,r){var n=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,l=we.uploadFile({url:Dt("https:",n),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var r={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(r.statusCode=parseInt(a.success_action_status,10)),t(r)},fail:function(e){r(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),It={setItem:function(e,t){we.setStorageSync(e,t)},getItem:function(e){return we.getStorageSync(e)},removeItem:function(e){we.removeStorageSync(e)},clear:function(){we.clearStorageSync()}},Et={genAdapter:function(){return{root:{},reqClass:Mt,localStorage:It,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Lt.useAdapters(Et);var Ft=Lt,jt=Ft.init;Ft.init=function(e){e.env=e.spaceId;var t=jt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var r=t.auth;return t.auth=function(e){var t=r.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var r;t[e]=(r=t[e],function(e){e=e||{};var t=xe(e),n=t.success,i=t.fail,a=t.complete;if(!(n||i||a))return r.call(this,e);r.call(this,e).then((function(e){n&&n(e),a&&a(e)}),(function(e){i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Rt=Ft,Nt=function(e){(0,d.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,x.default)(r,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,r){var n="Anonymous_Access_token";e.setAccessToken(n),t(n)}))}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=Ce.sign(r,this.config.clientSecret);var i=Te();n["x-client-info"]=encodeURIComponent(JSON.stringify(i));var a=Ae(),o=a.token;return n["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"uploadFileToOSS",value:function(e){var t=this,r=e.url,n=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,l){var c=t.adapter.uploadFile({url:r,formData:n,name:i,filePath:a,fileType:o,success:function(t){t&&t.statusCode<400?e(t):l(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){l(new _e({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,r=this,n=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,s=e.onUploadProgress;if(!i)throw new _e({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,a=i.url,l=i.formData,c=i.name;t=e.result.fileUrl;var u={url:a,formData:l,name:c,filePath:n,fileType:o};return r.uploadFileToOSS(Object.assign({},u,{onUploadProgress:s}))})).then((function(){return r.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(r,i){e.success?r({success:!0,filePath:n,fileID:t}):i(new _e({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,r={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return e.result;throw new _e({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;if(!Array.isArray(t)||0===t.length)throw new _e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new _e({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),r}(Me),$t={init:function(e){var t=new Nt(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}};function Bt(e){var t,r=e.data;t=Te();var n=JSON.parse(JSON.stringify(r||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){var i=Ae(),a=i.token;a&&(n.uniIdToken=a)}return n}var qt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Ut=/[\\^$.*+?()[\]{}|]/g,zt=RegExp(Ut.source);function Wt(e,t,r){return e.replace(new RegExp((n=t)&&zt.test(n)?n.replace(Ut,"\\$&"):n,"g"),r);var n}var Ht="request",Vt="response";var Kt;Kt="0123456789abcdef";var Gt={code:2e4,message:"System error"},Xt={code:20101,message:"Invalid client"};function Jt(e){var t=e||{},r=t.errSubject,n=t.subject,i=t.errCode,a=t.errMsg,o=t.code,s=t.message,l=t.cause;return new _e({subject:r||n||"uni-secure-network",code:i||o||Gt.code,message:a||s,cause:l})}var Yt;function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Ht||t===Vt||"both"===t}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,r=e.data,n=void 0===r?{}:r;return"app"===K&&"DCloud-clientDB"===t&&"encryption"===n.redirectTo&&"getAppClientKey"===n.action}function er(e){e.functionName,e.result,e.logPvd}function tr(e){var t=e.callFunction,r=function(r){var n=this,i=r.name;r.data=Bt.call(e,{data:r.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider],o=Qt(r),s=Zt(r),l=o||s;return t.call(this,r).then((function(e){return e.errCode=0,!l&&er.call(n,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!l&&er.call(n,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,r=void 0===t?"":t,n=e.extraInfo,i=void 0===n?{}:n,a=e.formatter,o=void 0===a?[]:a,s=0;s<o.length;s++){var l=o[s],c=l.rule,u=l.content,f=l.mode,h=r.match(c);if(h){for(var d=u,p=1;p<h.length;p++)d=Wt(d,"{$".concat(p,"}"),h[p]);for(var g in i)d=Wt(d,"{".concat(g,"}"),i[g]);return"replace"===f?d:r+d}}return r}({message:"[".concat(r.name,"]: ").concat(e.message),formatter:qt,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var n,i,a=e.config,o=a.provider,s=a.spaceId,l=t.name;return t.data=t.data||{},n=r,n=n.bind(e),i=Zt(t)?r.call(e,t):function(e){var t=e.name,r=e.data,n=void 0===r?{}:r;return"mp-weixin"===K&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===n.method}(t)?n.call(e,t):Qt(t)?new Yt({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(r.bind(e))(t):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=e.functionName,i=ke(),a=i.appId,o=i.uniPlatform,s=i.osName,l=o;"app"===o&&(l=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,r=e.spaceId,n=V;if(!n)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=n.find((function(e){return e.provider===t&&e.spaceId===r}));return i&&i.config}({provider:t,spaceId:r});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var u=c.accessControl.function||{},f=Object.keys(u);if(0===f.length)return!0;var h=function(e,t){for(var r,n,i,a=0;a<e.length;a++){var o=e[a];o!==t?"*"!==o?o.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(n=o):i=o:r=o}return r||n||i}(f,n);if(!h)return!1;if((u[h]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===l.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(a,", platform: ").concat(l,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),Jt(Xt)}({provider:o,spaceId:s,functionName:l})?new Yt({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(r.bind(e))(t):n(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i}}Yt="mp-weixin"!==K&&"app"!==K?function(){return(0,x.default)((function e(){throw(0,y.default)(this,e),Jt({message:"Platform ".concat(K," is not supported by secure network")})}))}():function(){return(0,x.default)((function e(){throw(0,y.default)(this,e),Jt({message:"Platform ".concat(K," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var rr=Symbol("CLIENT_DB_INTERNAL");function nr(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=rr,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,r,n){if("_uniClient"===r)return null;if("symbol"==(0,c.default)(r))return e[r];if(r in e||"string"!=typeof r){var i=e[r];return"function"==typeof i?i.bind(e):i}return t.get(e,r,n)}})}function ir(e){return{on:function(t,r){e[t]=e[t]||[],e[t].indexOf(r)>-1||e[t].push(r)},off:function(t,r){e[t]=e[t]||[];var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}}var ar=["db.Geo","db.command","command.aggregate"];function or(e,t){return ar.indexOf("".concat(e,".").concat(t))>-1}function sr(e){switch(R(e)){case"array":return e.map((function(e){return sr(e)}));case"object":return e._internalType===rr||Object.keys(e).forEach((function(t){e[t]=sr(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function lr(e){return e&&e.content&&e.content.$method}var cr=function(){function e(t,r,n){(0,y.default)(this,e),this.content=t,this.prevStage=r||null,this.udb=null,this._database=n}return(0,x.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:sr(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=lr(e),r=lr(e.prevStage);if("aggregate"===t&&"collection"===r||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===lr(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=lr(e),r=lr(e.prevStage);if("aggregate"===t&&"command"===r)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return ur({$method:e,$param:sr(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var r=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:sr(t)}),this._database._callCloudFunction({action:r,command:n})}}]),e}();function ur(e,t,r){return nr(new cr(e,t,r),{get:function(e,t){var n="db";return e&&e.content&&(n=e.content.$method),or(n,t)?ur({$method:t},e,r):function(){return ur({$method:t,$param:sr(Array.from(arguments))},e,r)}}})}function fr(e){var t=e.path,r=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,x.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,u.default)(t.map((function(e){return{$method:e}}))),[{$method:r,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function hr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nr(new e(t),{get:function(e,t){return or("db",t)?ur({$method:t},null,e):function(){return ur({$method:t,$param:sr(Array.from(arguments))},null,e)}}})}var dr=function(e){(0,d.default)(r,e);var t=k(r);function r(){return(0,y.default)(this,r),t.apply(this,arguments)}return(0,x.default)(r,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,r=e.action,n=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var r=0;r<a.length;r++){var n=a[r];n.udb&&"function"==typeof n.udb.setResult&&(t?n.udb.setResult(t):n.udb.setResult(e.result.dataList[r]))}}var s=this,l=this._isJQL?"databaseForJQL":"database";function c(e){return s._callback("error",[e]),te(re(l,"fail"),e).then((function(){return te(re(l,"complete"),e)})).then((function(){return o(null,e),pe(ae,{type:le,content:e}),Promise.reject(e)}))}var u=te(re(l,"invoke")),f=this._uniClient;return u.then((function(){return f.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:r,command:n,multiCommand:i}})})).then((function(e){var r=e.result,n=r.code,i=r.message,a=r.token,u=r.tokenExpired,f=r.systemInfo,h=void 0===f?[]:f;if(h)for(var d=0;d<h.length;d++){var p=h[d],g=p.level,v=p.message,y=p.detail,x=console["app"===K&&"warn"===g?"error":g]||console.log,m="[System Info]"+v;y&&(m="".concat(m,"\n详细信息:").concat(y)),x(m)}if(n)return c(new _e({code:n,message:i,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,a&&u&&(Se({token:a,tokenExpired:u}),t._callbackAuth("refreshToken",[{token:a,tokenExpired:u}]),t._callback("refreshToken",[{token:a,tokenExpired:u}]),pe(se,{token:a,tokenExpired:u}));for(var b=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],_=function(t){var r=b[t],n=r.prop,i=r.tips;if(n in e.result){var a=e.result[n];Object.defineProperty(e.result,n,{get:function(){return console.warn(i),a}})}},w=0;w<b.length;w++)_(w);return function(e){return te(re(l,"success"),e).then((function(){return te(re(l,"complete"),e)})).then((function(){o(e,null);var t=s._parseResult(e);return pe(ae,{type:le,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),c(new _e({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),r}(function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.uniClient,n=void 0===r?{}:r,i=t.isJQL,a=void 0!==i&&i;(0,y.default)(this,e),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n._isDefault&&(this._dbCallBacks=J("_globalUniCloudDatabaseCallback")),a||(this.auth=ir(this._authCallBacks)),this._isJQL=a,Object.assign(this,ir(this._dbCallBacks)),this.env=nr({},{get:function(e,t){return{$env:t}}}),this.Geo=nr({},{get:function(e,t){return fr({path:["Geo"],method:t})}}),this.serverDate=fr({path:[],method:"serverDate"}),this.RegExp=fr({path:[],method:"RegExp"})}return(0,x.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var r=this._dbCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var r=this._authCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,(0,u.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),r=e.getCommand();if("getTemp"!==r.$db[r.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:r}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),pr="token无效,跳转登录页面",gr="token过期,跳转登录页面",vr={TOKEN_INVALID_TOKEN_EXPIRED:gr,TOKEN_INVALID_INVALID_CLIENTID:pr,TOKEN_INVALID:pr,TOKEN_INVALID_WRONG_TOKEN:pr,TOKEN_INVALID_ANONYMOUS_USER:pr},yr={"uni-id-token-expired":gr,"uni-id-check-token-failed":pr,"uni-id-token-not-exist":pr,"uni-id-check-device-feature-failed":pr};function xr(e,t){var r="";return r=e?"".concat(e,"/").concat(t):t,r.replace(/^\//,"")}function mr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[],n=[];return e.forEach((function(e){!0===e.needLogin?r.push(xr(t,e.path)):!1===e.needLogin&&n.push(xr(t,e.path))})),{needLoginPage:r,notNeedLoginPage:n}}function br(e){return e.split("?")[0].replace(/^\//,"")}function _r(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function wr(){return br(_r())}function Ar(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var r=t.list,n=br(e);return r.some((function(e){return e.pagePath===n}))}var Sr,kr=!!b.default.uniIdRouter,Tr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default,t=e.pages,r=void 0===t?[]:t,n=e.subPackages,i=void 0===n?[]:n,a=e.uniIdRouter,o=void 0===a?{}:a,s=e.tabBar,l=void 0===s?{}:s,c=o.loginPage,f=o.needLogin,h=void 0===f?[]:f,d=o.resToLogin,p=void 0===d||d,g=mr(r),v=g.needLoginPage,y=g.notNeedLoginPage,x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],r=[];return e.forEach((function(e){var n=e.root,i=e.pages,a=void 0===i?[]:i,o=mr(a,n),s=o.needLoginPage,l=o.notNeedLoginPage;t.push.apply(t,(0,u.default)(s)),r.push.apply(r,(0,u.default)(l))})),{needLoginPage:t,notNeedLoginPage:r}}(i),m=x.needLoginPage,_=x.notNeedLoginPage;return{loginPage:c,routerNeedLogin:h,resToLogin:p,needLoginPage:[].concat((0,u.default)(v),(0,u.default)(m)),notNeedLoginPage:[].concat((0,u.default)(y),(0,u.default)(_)),loginPageInTabBar:Ar(c,l)}}(),Pr=Tr.loginPage,Cr=Tr.routerNeedLogin,Or=Tr.resToLogin,Lr=Tr.needLoginPage,Dr=Tr.notNeedLoginPage,Mr=Tr.loginPageInTabBar;if(Lr.indexOf(Pr)>-1)throw new Error("Login page [".concat(Pr,'] should not be "needLogin", please check your pages.json'));function Ir(e){var t=wr();if("/"===e.charAt(0))return e;var r=e.split("?"),n=(0,l.default)(r,2),i=n[0],a=n[1],o=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var c=0;c<o.length;c++){var u=o[c];".."===u?s.pop():"."!==u&&s.push(u)}return""===s[0]&&s.shift(),"/"+s.join("/")+(a?"?"+a:"")}function Er(e){var t=br(Ir(e));return!(Dr.indexOf(t)>-1)&&(Lr.indexOf(t)>-1||Cr.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Fr(e){var t=e.redirect,r=br(t),n=br(Pr);return wr()!==n&&r!==n}function jr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,r=e.redirect;if(r&&Fr({redirect:r})){var i=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Pr,r);Mr?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var a={navigateTo:n.navigateTo,redirectTo:n.redirectTo,switchTab:n.switchTab,reLaunch:n.reLaunch};setTimeout((function(){a[t]({url:i})}))}}function Rr(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,r={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){var e,t=Ae(),r=t.token,n=t.tokenExpired;if(r){if(n<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:yr[i]}}}else{var a="uni-id-check-token-failed";e={errCode:a,errMsg:yr[a]}}return e}();if(Er(t)&&n){if(n.uniIdRedirectUrl=t,fe(oe).length>0)return setTimeout((function(){pe(oe,n)}),0),r.abortLoginPageJump=!0,r;r.autoToLoginPage=!0}return r}function Nr(){!function(){var e=_r(),t=Rr({url:e}),r=t.abortLoginPageJump,n=t.autoToLoginPage;r||n&&jr({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var r=e[t];n.addInterceptor(r,{invoke:function(e){var t=Rr({url:e.url}),n=t.abortLoginPageJump,i=t.autoToLoginPage;return n?e:i?(jr({api:r,redirect:Ir(e.url)}),!1):e}})},r=0;r<e.length;r++)t(r)}function $r(){this.onResponse((function(e){var t=e.type,r=e.content,n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},r=t.errCode;return r in yr}(r);break;case"clientdb":n=function(e){if("object"!=(0,c.default)(e))return!1;var t=e||{},r=t.errCode;return r in vr}(r)}n&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=fe(oe);ye().then((function(){var r=_r();if(r&&Fr({redirect:r}))return t.length>0?pe(oe,Object.assign({uniIdRedirectUrl:r},e)):void(Pr&&jr({api:"navigateTo",redirect:r}))}))}(r)}))}function Br(e){!function(e){e.onResponse=function(e){he(ae,e)},e.offResponse=function(e){de(ae,e)}}(e),function(e){e.onNeedLogin=function(e){he(oe,e)},e.offNeedLogin=function(e){de(oe,e)},kr&&(J("_globalUniCloudStatus").needLoginInit||(J("_globalUniCloudStatus").needLoginInit=!0,ye().then((function(){Nr.call(e)})),Or&&$r.call(e)))}(e),function(e){e.onRefreshToken=function(e){he(se,e)},e.offRefreshToken=function(e){de(se,e)}}(e)}var qr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Ur=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function zr(){var e,t,r=Ae().token||"",n=r.split(".");if(!r||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=n[1],decodeURIComponent(Sr(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Sr="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Ur.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",a=0;a<e.length;)t=qr.indexOf(e.charAt(a++))<<18|qr.indexOf(e.charAt(a++))<<12|(r=qr.indexOf(e.charAt(a++)))<<6|(n=qr.indexOf(e.charAt(a++))),i+=64===r?String.fromCharCode(t>>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Wr=T((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="chooseAndUploadFile:ok",a="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach((function(e,r){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+r+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,n){var i=n.onChooseFile,a=n.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:r,tempFilePaths:[],tempFiles:[]}:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=r;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(r){for(;s<n;)l();function l(){var n=s++;if(n>=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&r(t);else{var c=a[n];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:function(e){e.index=n,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((function(e){c.url=e.fileID,n<o&&l()})).catch((function(e){c.errMsg=e.errMsg||e.message,n<o&&l()}))}}}))}(e,t,5,a)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,r=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,l=e.extension;return new Promise((function(e,i){n.chooseImage({count:t,sizeType:r,sourceType:s,extension:l,success:function(t){e(o(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,r=e.compressed,i=e.maxDuration,s=e.sourceType,l=void 0===s?["album","camera"]:s,c=e.extension;return new Promise((function(e,s){n.chooseVideo({camera:t,compressed:r,maxDuration:i,sourceType:l,extension:c,success:function(t){var r=t.tempFilePath,n=t.duration,i=t.size,a=t.height,s=t.width;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[r],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:r,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):s(e,function(e){var t=e.count,r=e.extension;return new Promise((function(e,s){var l=n.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(l=i.chooseMessageFile),"function"!=typeof l)return s({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});l({type:"all",count:t,extension:r,success:function(t){e(o(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),Hr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Wr);function Vr(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(r){t.push(e[r])})),t}),(function(t,r){if("manual"!==e.loadtime){for(var n=!1,i=[],a=2;a<t.length;a++)t[a]!==r[a]&&(i.push(t[a]),n=!0);t[0]!==r[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(n,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.getone,n=void 0!==r&&r,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var r=t.result,a=r.data,o=r.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length<e.pageSize;var s=n?a.length?a[0]:void 0:a;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,a&&a(t)})))},mixinDatacomGet:function(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.database(this.spaceInfo),i=r.action||this.action;i&&(n=n.action(i));var a=r.collection||this.collection;n=Array.isArray(a)?(t=n).collection.apply(t,(0,u.default)(a)):n.collection(a);var o=r.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var s=r.field||this.field;s&&(n=n.field(s));var l=r.foreignKey||this.foreignKey;l&&(n=n.foreignKey(l));var c=r.groupby||this.groupby;c&&(n=n.groupBy(c));var f=r.groupField||this.groupField;f&&(n=n.groupField(f)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var h=r.orderby||this.orderby;h&&(n=n.orderBy(h));var d=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,p=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,g=void 0!==r.getcount?r.getcount:this.getcount,v=void 0!==r.gettree?r.gettree:this.gettree,y=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,x={getCount:g},m={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return v&&(x.getTree=m),y&&(x.getTreePath=m),n=n.skip(p*(d-1)).limit(p).get(x),n}}}}function Kr(e){return J("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Gr(){return Xr.apply(this,arguments)}function Xr(){return Xr=(0,f.default)(o.default.mark((function e(){var t,r,i,a,s,l,c,u=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},r=t.openid,i=t.callLoginByWeixin,a=void 0!==i&&i,s=Kr(this),"mp-weixin"===K){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(K,"`"));case 4:if(!r||!a){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!r){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=r,{}));case 8:return e.next=10,new Promise((function(e,t){n.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return l=e.sent,c=this.importObject("uni-id-co",{customUI:!0}),e.next=14,c.secureNetworkHandshakeByWeixin({code:l,callLoginByWeixin:a});case 14:return s.mpWeixinCode=l,e.abrupt("return",{code:l});case 16:case"end":return e.stop()}}),e,this)}))),Xr.apply(this,arguments)}function Jr(e){return Yr.apply(this,arguments)}function Yr(){return Yr=(0,f.default)(o.default.mark((function e(t){var r;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=Kr(this),e.abrupt("return",(r.initPromise||(r.initPromise=Gr.call(this,t)),r.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Yr.apply(this,arguments)}function Qr(e){var t={getSystemInfo:n.getSystemInfo,getPushClientId:n.getPushClientId};return function(r){return new Promise((function(n,i){t[e](S(S({},r),{},{success:function(e){n(e)},fail:function(e){i(e)}}))}))}}var Zr=function(e){(0,d.default)(r,e);var t=k(r);function r(){var e;return(0,y.default)(this,r),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,x.default)(r,[{key:"init",value:function(){var e=this;return Promise.all([Qr("getSystemInfo")(),Qr("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(0,l.default)(t,2),n=r[0];n=void 0===n?{}:n;var i=n.appId,a=r[1];a=void 0===a?{}:a;var o=a.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!o)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=o,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,f.default)(o.default.mark((function e(){return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,r=t.action,n=t.messageId,i=t.message;this._payloadQueue.push({action:r,messageId:n,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,r=e.messageId,n=e.message;"end"===t?this._end({messageId:r,message:n}):"message"===t&&this._appendMessage({messageId:r,message:n})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){n.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){n.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),r}(function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,x.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var r=this._callback[e];if(r){var n=function(e,t){for(var r=e.length-1;r>=0;r--)if(e[r]===t)return r;return-1}(r,t);r.splice(n,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];if(t)for(var a=0;a<t.length;a++)t[a].apply(t,n)}}]),e}());var en={tcb:Rt,tencent:Rt,aliyun:Ie,private:$t},tn=new(function(){function e(){(0,y.default)(this,e)}return(0,x.default)(e,[{key:"init",value:function(e){var t={},r=en[e.provider];if(!r)throw new Error("未提供正确的provider参数");return t=r.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new z({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var r=e.auth();return t.then((function(){return r.getLoginState()})).then((function(e){return e?Promise.resolve():r.signInAnonymously()}))}}))}(t),tr(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var r=hr(dr,{uniClient:e});return this._database=r,r},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var r=hr(dr,{uniClient:e,isJQL:!0});return this._databaseForJQL=r,r}}(t),function(e){e.getCurrentUserInfo=zr,e.chooseAndUploadFile=Hr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Vr(e)}}),e.SSEChannel=Zr,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.openid,n=t.callLoginByWeixin,i=void 0!==n&&n;return Jr.call(e,{openid:r,callLoginByWeixin:i})}}(e),e.importObject=function(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,c.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},r);var i=r,a=i.customUI,s=i.loadingOptions,l=i.errorOptions,u=i.parseSystemError,h=!a;return new Proxy({},{get:function(i,a){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,r=e.interceptorName,n=e.getCallbackArgs;return(0,f.default)(o.default.mark((function e(){var i,a,s,l,c,u,f=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,a=new Array(i),s=0;s<i;s++)a[s]=f[s];return l=n?n({params:a}):{},e.prev=2,e.next=5,te(re(r,"invoke"),S({},l));case 5:return e.next=7,t.apply(void 0,a);case 7:return c=e.sent,e.next=10,te(re(r,"success"),S(S({},l),{},{result:c}));case 10:return e.abrupt("return",c);case 13:return e.prev=13,e.t0=e["catch"](2),u=e.t0,e.next=18,te(re(r,"fail"),S(S({},l),{},{error:u}));case 18:throw u;case 19:return e.prev=19,e.next=22,te(re(r,"complete"),S(S({},l),{},u?{error:u}:{result:c}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var i=(0,f.default)(o.default.mark((function i(){var p,g,v,y,x,m,b,_,w,A,k,T,P,C,O,L=arguments;return o.default.wrap((function(i){while(1)switch(i.prev=i.next){case 0:for(h&&n.showLoading({title:s.title,mask:s.mask}),g=L.length,v=new Array(g),y=0;y<g;y++)v[y]=L[y];return x={name:t,type:I,data:{method:a,params:v}},"object"==(0,c.default)(r.secretMethods)&&function(e,t){var r=t.data.method,n=e.secretMethods||{},i=n[r]||n["*"];i&&(t.secretType=i)}(r,x),m=!1,i.prev=5,i.next=8,e.callFunction(x);case 8:p=i.sent,i.next=14;break;case 11:i.prev=11,i.t0=i["catch"](5),m=!0,p={result:new _e(i.t0)};case 14:if(b=p.result||{},_=b.errSubject,w=b.errCode,A=b.errMsg,k=b.newToken,h&&n.hideLoading(),k&&k.token&&k.tokenExpired&&(Se(k),pe(se,S({},k))),!w){i.next=39;break}if(T=A,!m||!u){i.next=24;break}return i.next=20,u({objectName:t,methodName:a,params:v,errSubject:_,errCode:w,errMsg:A});case 20:if(i.t1=i.sent.errMsg,i.t1){i.next=23;break}i.t1=A;case 23:T=i.t1;case 24:if(!h){i.next=37;break}if("toast"!==l.type){i.next=29;break}n.showToast({title:T,icon:"none"}),i.next=37;break;case 29:if("modal"===l.type){i.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(l.type));case 31:return i.next=33,(0,f.default)(o.default.mark((function e(){var t,r,i,a,s,l,c=arguments;return o.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=t.title,i=t.content,a=t.showCancel,s=t.cancelText,l=t.confirmText,e.abrupt("return",new Promise((function(e,t){n.showModal({title:r,content:i,showCancel:a,cancelText:s,confirmText:l,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:T,showCancel:l.retry,cancelText:"取消",confirmText:l.retry?"重试":"确定"});case 33:if(P=i.sent,C=P.confirm,!l.retry||!C){i.next=37;break}return i.abrupt("return",d.apply(void 0,v));case 37:throw O=new _e({subject:_,code:w,message:A,requestId:p.requestId}),O.detail=p.result,pe(ae,{type:ue,content:O}),O;case 39:return i.abrupt("return",(pe(ae,{type:ue,content:p.result}),p.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function d(){return i.apply(this,arguments)}return d}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.params;return{objectName:t,methodName:a,params:r}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var r=t[e];t[e]=function(){return r.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(r){var n=this,i=!1;if("callFunction"===t){var a=r&&r.type||M;i=a!==M}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();r=r||{};var l=xe(r),c=l.success,u=l.fail,f=l.complete,h=s.then((function(){return i?Promise.resolve():te(re(t,"invoke"),r)})).then((function(){return e.call(n,r)})).then((function(e){return i?Promise.resolve(e):te(re(t,"success"),e).then((function(){return te(re(t,"complete"),e)})).then((function(){return o&&pe(ae,{type:ce,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):te(re(t,"fail"),e).then((function(){return te(re(t,"complete"),e)})).then((function(){return pe(ae,{type:ce,content:e}),Promise.reject(e)}))}));if(!(c||u||f))return h;h.then((function(e){c&&c(e),f&&f(e),o&&pe(ae,{type:ce,content:e})}),(function(e){u&&u(e),f&&f(e),o&&pe(ae,{type:ce,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=G,t={};if(e&&1===e.length)t=e[0],tn=tn.init(t),tn._isDefault=!0;else{var r;r=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){tn[e]=function(){return console.error(r),Promise.reject(new _e({code:"SYS_ERR",message:r}))}}))}Object.assign(tn,{get mixinDatacom(){return Vr(tn)}}),Br(tn),tn.addInterceptor=Z,tn.removeInterceptor=ee,tn.interceptObject=ne})();var rn=tn;t.default=rn}).call(this,r("c8ba"),r("543d")["default"],r("bc2e")["default"])},ab2a:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var r=this;if(r.length>=e)return String(r);var n=e-r.length,i=Math.ceil(n/t.length);while(i>>=1)t+=t,1===i&&(t+=t);return t.slice(0,n)+r});var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);var r,n=new Date(e),i={"y+":n.getFullYear().toString(),"m+":(n.getMonth()+1).toString(),"d+":n.getDate().toString(),"h+":n.getHours().toString(),"M+":n.getMinutes().toString(),"s+":n.getSeconds().toString()};for(var a in i)r=new RegExp("("+a+")").exec(t),r&&(t=t.replace(r[1],1==r[1].length?i[a]:i[a].padStart(r[1].length,"0")));return t};t.default=n},ac2a:function(e,t,r){"use strict";function n(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=e.toLowerCase(),e&&r.test(e)){if(4===e.length){for(var n="#",i=1;i<4;i+=1)n+=e.slice(i,i+1).concat(e.slice(i,i+1));e=n}for(var a=[],o=1;o<7;o+=2)a.push(parseInt("0x"+e.slice(o,o+2)));return t?"rgb(".concat(a[0],",").concat(a[1],",").concat(a[2],")"):a}if(/^(rgb|RGB)/.test(e)){var s=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(e){return Number(e)}))}return e}function i(e){var t=e;if(/^(rgb|RGB)/.test(t)){for(var r=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#",i=0;i<r.length;i++){var a=Number(r[i]).toString(16);a=1==String(a).length?"0"+a:a,"0"===a&&(a+=a),n+=a}return 7!==n.length&&(n=t),n}if(!/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/.test(t))return t;var o=t.replace(/#/,"").split("");if(6===o.length)return t;if(3===o.length){for(var s="#",l=0;l<o.length;l+=1)s+=o[l]+o[l];return s}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={colorGradient:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,a=n(e,!1),o=a[0],s=a[1],l=a[2],c=n(t,!1),u=c[0],f=c[1],h=c[2],d=(u-o)/r,p=(f-s)/r,g=(h-l)/r,v=[],y=0;y<r;y++){var x=i("rgb("+Math.round(d*y+o)+","+Math.round(p*y+s)+","+Math.round(g*y+l)+")");v.push(x)}return v},hexToRgb:n,rgbToHex:i,colorToRgba:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;e=i(e);var r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,n=e.toLowerCase();if(n&&r.test(n)){if(4===n.length){for(var a="#",o=1;o<4;o+=1)a+=n.slice(o,o+1).concat(n.slice(o,o+1));n=a}for(var s=[],l=1;l<7;l+=2)s.push(parseInt("0x"+n.slice(l,l+2)));return"rgba("+s.join(",")+","+t+")"}return n}};t.default=a},b17c:function(e,t,r){var n=r("4a4b"),i=r("6f8f");function a(t,r,o){return i()?(e.exports=a=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports["default"]=e.exports):(e.exports=a=function(e,t,r){var i=[null];i.push.apply(i,t);var a=Function.bind.apply(e,i),o=new a;return r&&n(o,r.prototype),o},e.exports.__esModule=!0,e.exports["default"]=e.exports),a.apply(null,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports["default"]=e.exports},b1c8:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.msgBase=t.getRandomNum=t.confirmMsgFn=void 0;t.getRandomNum=function(e,t){var r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),n=[];if(t=t||r.length,e)for(var i=0;i<e;i++)n[i]=r[0|Math.random()*t];else{var a;n[8]=n[13]=n[18]=n[23]="-",n[14]="4";for(var o=0;o<36;o++)n[o]||(a=0|16*Math.random(),n[o]=r[19===o?3&a|8:a])}return n.join("")+(new Date).getTime()};t.msgBase=function(t,r){e.showToast({title:t,icon:"none",duration:2e3}).then((function(){r&&r()}))};t.confirmMsgFn=function(t,r,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"提示";e.showModal({title:i,content:t,success:function(e){e.confirm?r&&r():e.cancel&&n&&n()}})}}).call(this,r("543d")["default"])},bc2e:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],a="undefined"!==typeof globalThis?globalThis:function(){return this}(),o=["w","x"].join(""),s=a[o],l=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function c(e){return(!l||1154!==l.scene||!i.includes(e))&&(n.indexOf(e)>-1||"function"===typeof s[e])}a[o]=function(){var e={};for(var t in s)c(t)&&(e[t]=s[t]);return e}();var u=a[o];t.default=u},bcde:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=null;var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==n&&clearTimeout(n),r){var i=!n;n=setTimeout((function(){n=null}),t),i&&"function"===typeof e&&e()}else n=setTimeout((function(){"function"===typeof e&&e()}),t)};t.default=i},c135:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},c240:function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports["default"]=e.exports},c344:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={appid:"__UNI__1C40FB4"}},c5f7:function(e,t){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports["default"]=e.exports},c671:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("4482"),i={apilogin:function(e){return(0,n.request)("api/login",e,"loading")},apiregister:function(e){return(0,n.request)("api/register",e,"loading")},apisendsms:function(e){return(0,n.request)("api/send/sms",e,"loading")},apicaptcha:function(e){return(0,n.request)("api/captcha",e,"loading")},apicheckcaptcha:function(e){return(0,n.request)("api/check/captcha",e)},apiwxlogin:function(e){return(0,n.request)("api/wx/login",e,"loading")},apiwxautologin:function(e){return(0,n.request)("api/wx/autologin",e,"loading")},apiuserinfo:function(e){return(0,n.request)("api/user/info",e,"loading")},apiuseredit:function(e){return(0,n.request)("api/user/edit",e,"loading")},apiuserbindwechat:function(e){return(0,n.request)("api/user/bind/wechat",e,"loading")},apiuserauthadd:function(e){return(0,n.request)("api/user/auth/add",e,"loading")},apiuserauthinfo:function(e){return(0,n.request)("api/user/auth/info",e,"loading")},apiuploadcloudpiv:function(e){return(0,n.request)("api/upload/cloudpiv",e,"loading")},apidicttree:function(e){return(0,n.request)("api/dict/tree",e,"loading")},apiuserauthlist:function(e){return(0,n.request)("api/user/auth/list",e,"loading")},apiuserauthedit:function(e){return(0,n.request)("api/user/auth/edit",e,"loading")},apideptauthedit:function(e){return(0,n.request)("api/dept/auth/edit",e,"loading")},apiuserreferreredit:function(e){return(0,n.request)("api/user/referrer/edit",e,"loading")},apiusernoticeopen:function(e){return(0,n.request)("api/user/notice/open",e,"loading")},apiusernoticeclose:function(e){return(0,n.request)("api/user/notice/close",e,"loading")}};t.default=i},c8ba:function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},c973:function(e,t){function r(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void r(c)}s.done?t(l):Promise.resolve(l).then(n,i)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise((function(i,a){var o=e.apply(t,n);function s(e){r(o,i,a,s,l,"next",e)}function l(e){r(o,i,a,s,l,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports},cbeb:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this.$parent;while(t){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}},cd1b:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("190c")),a=function(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"};function o(e){var t=Object.assign(Object.create(null),i.default.userAgentStyles);for(var r in e)t[r]=(t[r]?t[r]+";":"")+e[r];this.styles=t}o.prototype.getStyle=function(e){this.styles=new l(e,this.styles).parse()},o.prototype.match=function(e,t){var r,n=(r=this.styles[e])?r+";":"";if(t.class)for(var i,a=t.class.split(" "),o=0;i=a[o];o++)(r=this.styles["."+i])&&(n+=r+";");return(r=this.styles["#"+t.id])&&(n+=r+";"),n};var s=o;function l(e,t){this.data=e,this.floor=0,this.i=0,this.list=[],this.res=t,this.state=this.Space}t.default=s,l.prototype.parse=function(){for(var e;e=this.data[this.i];this.i++)this.state(e);return this.res},l.prototype.section=function(){return this.data.substring(this.start,this.i)},l.prototype.Space=function(e){"."==e||"#"==e||a(e)?(this.start=this.i,this.state=this.Name):"/"==e&&"*"==this.data[this.i+1]?this.Comment():i.default.blankChar[e]||";"==e||(this.state=this.Ignore)},l.prototype.Comment=function(){this.i=this.data.indexOf("*/",this.i)+1,this.i||(this.i=this.data.length),this.state=this.Space},l.prototype.Ignore=function(e){"{"==e?this.floor++:"}"!=e||--this.floor||(this.list=[],this.state=this.Space)},l.prototype.Name=function(e){i.default.blankChar[e]?(this.list.push(this.section()),this.state=this.NameSpace):"{"==e?(this.list.push(this.section()),this.Content()):","==e?(this.list.push(this.section()),this.Comma()):!a(e)&&(e<"0"||e>"9")&&"-"!=e&&"_"!=e&&(this.state=this.Ignore)},l.prototype.NameSpace=function(e){"{"==e?this.Content():","==e?this.Comma():i.default.blankChar[e]||(this.state=this.Ignore)},l.prototype.Comma=function(){while(i.default.blankChar[this.data[++this.i]]);"{"==this.data[this.i]?this.Content():(this.start=this.i--,this.state=this.Name)},l.prototype.Content=function(){this.start=++this.i,-1==(this.i=this.data.indexOf("}",this.i))&&(this.i=this.data.length);for(var e,t=this.section(),r=0;e=this.list[r++];)this.res[e]?this.res[e]+=";"+t:this.res[e]=t;this.list=[],this.state=this.Space}},dc32:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",n=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(r)&&(r="brackets");var a=function(t){var n=e[t];if(["",void 0,null].indexOf(n)>=0)return"continue";if(n.constructor===Array)switch(r){case"indices":for(var a=0;a<n.length;a++)i.push(t+"["+a+"]="+n[a]);break;case"brackets":n.forEach((function(e){i.push(t+"[]="+e)}));break;case"repeat":n.forEach((function(e){i.push(t+"="+e)}));break;case"comma":var o="";n.forEach((function(e){o+=(o?",":"")+e})),i.push(t+"="+o);break;default:n.forEach((function(e){i.push(t+"[]="+e)}))}else i.push(t+"="+n)};for(var o in e)a(o);return i.length?n+i.join("&"):""};t.default=n},df7c:function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",i=!1,a=arguments.length-1;a>=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!==typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return t=r(n(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return e=r(n(e.split("/"),(function(e){return!!e})),!a).join("/"),e||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length;t++)if(""!==e[t])break;for(var r=e.length-1;r>=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),a=n(r.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l<o;l++)if(i[l]!==a[l]){s=l;break}var c=[];for(l=s;l<i.length;l++)c.push("..");return c=c.concat(a.slice(s)),c.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,i=!0,a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),47===t){if(!i){n=a;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===n&&(i=!1,n=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){r=o+1;break}}return-1===t||-1===n||0===a||1===a&&t===n-1&&t===r+1?"":e.slice(t,n)};var i="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r("4362"))},e1df:function(e,t,r){"use strict";(function(e){var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7037"));function a(){return a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},a.apply(this,arguments)}var o=/%[sdj%]/g,s=function(){};function l(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var r=e.field;t[r]=t[r]||[],t[r].push(e)})),t}function c(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=1,i=t[0],a=t.length;if("function"===typeof i)return i.apply(null,t.slice(1));if("string"===typeof i){for(var s=String(i).replace(o,(function(e){if("%%"===e)return"%";if(n>=a)return e;switch(e){case"%s":return String(t[n++]);case"%d":return Number(t[n++]);case"%j":try{return JSON.stringify(t[n++])}catch(r){return"[Circular]"}break;default:return e}})),l=t[n];n<a;l=t[++n])s+=" "+l;return s}return i}function u(e,t){return void 0===e||null===e||(!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!==typeof e||e))}function f(e,t,r){var n=0,i=e.length;(function a(o){if(o&&o.length)r(o);else{var s=n;n+=1,s<i?t(e[s],a):r([])}})([])}function h(e,t,r,n){if(t.first){var i=new Promise((function(t,i){var a=function(e){var t=[];return Object.keys(e).forEach((function(r){t.push.apply(t,e[r])})),t}(e);f(a,r,(function(e){return n(e),e.length?i({errors:e,fields:l(e)}):t()}))}));return i["catch"]((function(e){return e})),i}var a=t.firstFields||[];!0===a&&(a=Object.keys(e));var o=Object.keys(e),s=o.length,c=0,u=[],h=new Promise((function(t,i){var h=function(e){if(u.push.apply(u,e),c++,c===s)return n(u),u.length?i({errors:u,fields:l(u)}):t()};o.length||(n(u),t()),o.forEach((function(t){var n=e[t];-1!==a.indexOf(t)?f(n,r,h):function(e,t,r){var n=[],i=0,a=e.length;function o(e){n.push.apply(n,e),i++,i===a&&r(n)}e.forEach((function(e){t(e,o)}))}(n,r,h)}))}));return h["catch"]((function(e){return e})),h}function d(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"===typeof t?t():t,field:t.field||e.fullField}}}function p(e,t){if(t)for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];"object"===(0,i.default)(n)&&"object"===(0,i.default)(e[r])?e[r]=a({},e[r],{},n):e[r]=n}return e}function g(e,t,r,n,i,a){!e.required||r.hasOwnProperty(e.field)&&!u(t,a||e.type)||n.push(c(i.messages.required,e.fullField))}"undefined"!==typeof e&&Object({VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"房票科技",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"production",BASE_URL:"/"});var v={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},y={integer:function(e){return y.number(e)&&parseInt(e,10)===e},float:function(e){return y.number(e)&&!y.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(t){return!1}},date:function(e){return"function"===typeof e.getTime&&"function"===typeof e.getMonth&&"function"===typeof e.getYear},number:function(e){return!isNaN(e)&&"number"===typeof+e},object:function(e){return"object"===(0,i.default)(e)&&!y.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(v.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(v.url)},hex:function(e){return"string"===typeof e&&!!e.match(v.hex)}};var x={required:g,whitespace:function(e,t,r,n,i){(/^\s+$/.test(t)||""===t)&&n.push(c(i.messages.whitespace,e.fullField))},type:function(e,t,r,n,a){if(e.required&&void 0===t)g(e,t,r,n,a);else{var o=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?y[o](t)||n.push(c(a.messages.types[o],e.fullField,e.type)):o&&(0,i.default)(t)!==e.type&&n.push(c(a.messages.types[o],e.fullField,e.type))}},range:function(e,t,r,n,i){var a="number"===typeof e.len,o="number"===typeof e.min,s="number"===typeof e.max,l=t,u=null,f="number"===typeof t,h="string"===typeof t,d=Array.isArray(t);if(f?u="number":h?u="string":d&&(u="array"),!u)return!1;d&&(l=t.length),h&&(l=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?l!==e.len&&n.push(c(i.messages[u].len,e.fullField,e.len)):o&&!s&&l<e.min?n.push(c(i.messages[u].min,e.fullField,e.min)):s&&!o&&l>e.max?n.push(c(i.messages[u].max,e.fullField,e.max)):o&&s&&(l<e.min||l>e.max)&&n.push(c(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,r,n,i){e["enum"]=Array.isArray(e["enum"])?e["enum"]:[],-1===e["enum"].indexOf(t)&&n.push(c(i.messages["enum"],e.fullField,e["enum"].join(", ")))},pattern:function(e,t,r,n,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||n.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var a=new RegExp(e.pattern);a.test(t)||n.push(c(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function m(e,t,r,n,i){var a=e.type,o=[],s=e.required||!e.required&&n.hasOwnProperty(e.field);if(s){if(u(t,a)&&!e.required)return r();x.required(e,t,n,o,i,a),u(t,a)||x.type(e,t,n,o,i)}r(o)}var b={string:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t,"string")&&!e.required)return r();x.required(e,t,n,a,i,"string"),u(t,"string")||(x.type(e,t,n,a,i),x.range(e,t,n,a,i),x.pattern(e,t,n,a,i),!0===e.whitespace&&x.whitespace(e,t,n,a,i))}r(a)},method:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&x.type(e,t,n,a,i)}r(a)},number:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(""===t&&(t=void 0),u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&(x.type(e,t,n,a,i),x.range(e,t,n,a,i))}r(a)},boolean:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&x.type(e,t,n,a,i)}r(a)},regexp:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),u(t)||x.type(e,t,n,a,i)}r(a)},integer:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&(x.type(e,t,n,a,i),x.range(e,t,n,a,i))}r(a)},float:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&(x.type(e,t,n,a,i),x.range(e,t,n,a,i))}r(a)},array:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t,"array")&&!e.required)return r();x.required(e,t,n,a,i,"array"),u(t,"array")||(x.type(e,t,n,a,i),x.range(e,t,n,a,i))}r(a)},object:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&x.type(e,t,n,a,i)}r(a)},enum:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i),void 0!==t&&x["enum"](e,t,n,a,i)}r(a)},pattern:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t,"string")&&!e.required)return r();x.required(e,t,n,a,i),u(t,"string")||x.pattern(e,t,n,a,i)}r(a)},date:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();var s;if(x.required(e,t,n,a,i),!u(t))s="number"===typeof t?new Date(t):t,x.type(e,s,n,a,i),s&&x.range(e,s.getTime(),n,a,i)}r(a)},url:m,hex:m,email:m,required:function(e,t,r,n,a){var o=[],s=Array.isArray(t)?"array":(0,i.default)(t);x.required(e,t,n,o,a,s),r(o)},any:function(e,t,r,n,i){var a=[],o=e.required||!e.required&&n.hasOwnProperty(e.field);if(o){if(u(t)&&!e.required)return r();x.required(e,t,n,a,i)}r(a)}};function _(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var w=_();function A(e){this.rules=null,this._messages=w,this.define(e)}A.prototype={messages:function(e){return e&&(this._messages=p(_(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,i.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,r;for(t in this.rules={},e)e.hasOwnProperty(t)&&(r=e[t],this.rules[t]=Array.isArray(r)?r:[r])},validate:function(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r=function(){});var o,s,u=e,f=t,g=r;if("function"===typeof f&&(g=f,f={}),!this.rules||0===Object.keys(this.rules).length)return g&&g(),Promise.resolve();if(f.messages){var v=this.messages();v===w&&(v=_()),p(v,f.messages),f.messages=v}else f.messages=this.messages();var y={},x=f.keys||Object.keys(this.rules);x.forEach((function(t){o=n.rules[t],s=u[t],o.forEach((function(r){var i=r;"function"===typeof i.transform&&(u===e&&(u=a({},u)),s=u[t]=i.transform(s)),i="function"===typeof i?{validator:i}:a({},i),i.validator=n.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=n.getType(i),i.validator&&(y[t]=y[t]||[],y[t].push({rule:i,value:s,source:u,field:t}))}))}));var m={};return h(y,f,(function(e,t){var r,n=e.rule,o=("object"===n.type||"array"===n.type)&&("object"===(0,i.default)(n.fields)||"object"===(0,i.default)(n.defaultField));function s(e,t){return a({},t,{fullField:n.fullField+"."+e})}function l(r){void 0===r&&(r=[]);var i=r;if(Array.isArray(i)||(i=[i]),!f.suppressWarning&&i.length&&A.warning("async-validator:",i),i.length&&n.message&&(i=[].concat(n.message)),i=i.map(d(n)),f.first&&i.length)return m[n.field]=1,t(i);if(o){if(n.required&&!e.value)return i=n.message?[].concat(n.message).map(d(n)):f.error?[f.error(n,c(f.messages.required,n.field))]:[],t(i);var l={};if(n.defaultField)for(var u in e.value)e.value.hasOwnProperty(u)&&(l[u]=n.defaultField);for(var h in l=a({},l,{},e.rule.fields),l)if(l.hasOwnProperty(h)){var p=Array.isArray(l[h])?l[h]:[l[h]];l[h]=p.map(s.bind(null,h))}var g=new A(l);g.messages(f.messages),e.rule.options&&(e.rule.options.messages=f.messages,e.rule.options.error=f.error),g.validate(e.value,e.rule.options||f,(function(e){var r=[];i&&i.length&&r.push.apply(r,i),e&&e.length&&r.push.apply(r,e),t(r.length?r:null)}))}else t(i)}o=o&&(n.required||!n.required&&e.value),n.field=e.field,n.asyncValidator?r=n.asyncValidator(n,e.value,l,e.source,f):n.validator&&(r=n.validator(n,e.value,l,e.source,f),!0===r?l():!1===r?l(n.message||n.field+" fails"):r instanceof Array?l(r):r instanceof Error&&l(r.message)),r&&r.then&&r.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){(function(e){var t,r=[],n={};function i(e){var t;Array.isArray(e)?r=(t=r).concat.apply(t,e):r.push(e)}for(t=0;t<e.length;t++)i(e[t]);r.length?n=l(r):(r=null,n=null),g(r,n)})(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!==typeof e.validator&&e.type&&!b.hasOwnProperty(e.type))throw new Error(c("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"===typeof e.validator)return e.validator;var t=Object.keys(e),r=t.indexOf("message");return-1!==r&&t.splice(r,1),1===t.length&&"required"===t[0]?b.required:b[this.getType(e)]||!1}},A.register=function(e,t){if("function"!==typeof t)throw new Error("Cannot register a validator by type, validator is not a function");b[e]=t},A.warning=s,A.messages=w;var S=A;t.default=S}).call(this,r("4362"))},e27a:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(r=r||n.length,e)for(var a=0;a<e;a++)i[a]=n[0|Math.random()*r];else{var o;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var s=0;s<36;s++)i[s]||(o=0|16*Math.random(),i[s]=n[19==s?3&o|8:o])}return t?(i.shift(),"u"+i.join("")):i.join("")};t.default=n},e50d:function(e,t,r){var n=r("7037")["default"];e.exports=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t||"default");if("object"!==n(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},ed6d:function(e,t,r){var n=r("4a4b");e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},eea4:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if(e>=0&&t>0&&t>=e){var r=t-e+1;return Math.floor(Math.random()*r+e)}return 0};t.default=n},f0c5:function(e,t,r){"use strict";function n(e,t,r,n,i,a,o,s,l,c){var u,f="function"===typeof e?e.options:e;if(l){f.components||(f.components={});var h=Object.prototype.hasOwnProperty;for(var d in l)h.call(l,d)&&!h.call(f.components,d)&&(f.components[d]=l[d])}if(c&&("function"===typeof c.beforeCreate&&(c.beforeCreate=[c.beforeCreate]),(c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),t&&(f.render=t,f.staticRenderFns=r,f._compiled=!0),n&&(f.functional=!0),a&&(f._scopeId="data-v-"+a),o?(u=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},f._ssrRegister=u):i&&(u=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),u)if(f.functional){f._injectStyles=u;var p=f.render;f.render=function(e,t){return u.call(t),p(e,t)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,u):[u]}return{exports:e,options:f}}r.d(t,"a",(function(){return n}))},f471:function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.os=function(){return e.getSystemInfoSync().platform},t.sys=function(){return e.getSystemInfoSync()}}).call(this,r("543d")["default"])},f566:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r("4482"),i={apiestatelist:function(e){return(0,n.request)("api/estate/list",e,"loading")},apiestatecontentdetail:function(e){return(0,n.request)("api/estate/content/detail",e,"loading")},apireportadd:function(e){return(0,n.request)("api/report/add",e,"loading")},apireportlist:function(e){return(0,n.request)("api/report/list",e,"loading")},apireportdetail:function(e){return(0,n.request)("api/report/detail",e,"loading")},apireport2detail:function(e){return(0,n.request)("api/report2/detail",e,"loading")},apigoverndetail:function(e){return(0,n.request)("api/govern/detail",e,"loading")},apireportsite:function(e){return(0,n.request)("api/report/site",e,"loading")},apireportconfirm:function(e){return(0,n.request)("api/report/confirm",e,"loading")},apireportcount:function(e){return(0,n.request)("api/report/count",e,"loading")},apireportgroupcount:function(e){return(0,n.request)("api/report/group/count",e,"loading")},apiestateinfodetail:function(e){return(0,n.request)("api/estate/info/detail",e,"loading")},apiestatedetail:function(e){return(0,n.request)("api/estate/detail",e,"loading")},apigovernlist:function(e){return(0,n.request)("api/govern/list",e,"loading")},apireportedit:function(e){return(0,n.request)("api/report/edit",e,"loading")},apireportsubscrlist:function(e){return(0,n.request)("api/report/subscr/list",e,"loading")},apireportsubscrDeal:function(e){return(0,n.request)("api/report/subscr",e,"loading")},apireportsignupDeal:function(e){return(0,n.request)("api/report/signup",e,"loading")},apiestateliblist:function(e){return(0,n.request)("api/estate/lib/list",e,"loading")},apiestatelibdetail:function(e){return(0,n.request)("api/estate/lib/detail",e,"loading")},apideptstorelist:function(e){return(0,n.request)("api/dept/store/list",e,"loading")},apideptstorecount:function(e){return(0,n.request)("api/dept/store/count",e,"loading")},apistorechart:function(e){return(0,n.request)("api/store/chart",e,"loading")}};t.default=i},fbb2:function(e,t,r){"use strict";var n=r("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(r("7037")),a=n(r("5084"));var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(a.default.empty(e)||"object"===(0,i.default)(e)&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=trim(e);for(var r=e.split(";"),n={},o=0;o<r.length;o++)if(r[o]){var s=r[o].split(":");n[trim(s[0])]=trim(s[1])}return n}var l="";for(var c in e){var u=c.replace(/([A-Z])/g,"-$1").toLowerCase();l+="".concat(u,":").concat(e[c],";")}return trim(l)};t.default=o},fd44:function(e,t,r){"use strict";function n(e,t,r){var i;i=this.$children,i.map((function(i){e===i.$options.name?i.$emit.apply(i,[t].concat(r)):n.apply(i,[e,t].concat(r))}))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i={methods:{dispatch:function(e,t,r){var n=this.$parent||this.$root,i=n.$options.name;while(n&&(!i||i!==e))n=n.$parent,n&&(i=n.$options.name);n&&n.$emit.apply(n,[t].concat(r))},broadcast:function(e,t,r){n.call(this,e,t,r)}}};t.default=i}}]);