(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],{"00d4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={skeleton:{loading:!0,animate:!0,rows:0,rowsWidth:"100%",rowsHeight:18,title:!0,titleWidth:"50%",titleHeight:18,avatar:!1,avatarSize:32,avatarShape:"circle"}}},"00f4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={cellGroup:{title:"",border:!0,customStyle:{}}}},"011a":function(e,t){function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(e.exports=n=function(){return!!t},e.exports.__esModule=!0,e.exports["default"]=e.exports)()}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},"0130":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{model:{type:Object,default:e.$u.props.form.model},rules:{type:[Object,Function,Array],default:e.$u.props.form.rules},errorType:{type:String,default:e.$u.props.form.errorType},borderBottom:{type:Boolean,default:e.$u.props.form.borderBottom},labelPosition:{type:String,default:e.$u.props.form.labelPosition},labelWidth:{type:[String,Number],default:e.$u.props.form.labelWidth},labelAlign:{type:String,default:e.$u.props.form.labelAlign},labelStyle:{type:Object,default:e.$u.props.form.labelStyle}}};t.default=n}).call(this,n("df3c")["default"])},"032b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toolbar:{show:!0,cancelText:"取消",confirmText:"确认",cancelColor:"#909193",confirmColor:"#3c9cff",title:""}}},"0344":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={code:{seconds:60,startText:"获取验证码",changeText:"X秒重新获取",endText:"重新获取",keepRunning:!1,uniqueKey:""}}},"035c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={computed:{value:function(){var t=this.text,n=this.mode,r=this.format,i=this.href;return"price"===n?(/^\d+(\.\d+)?$/.test(t)||e.$u.error("金额模式下,text参数需要为金额格式"),e.$u.test.func(r)?r(t):e.$u.priceFormat(t,2)):"date"===n?(!e.$u.test.date(t)&&e.$u.error("日期模式下,text参数需要为日期或时间戳格式"),e.$u.test.func(r)?r(t):r?e.$u.timeFormat(t,r):e.$u.timeFormat(t,"yyyy-mm-dd")):"phone"===n?e.$u.test.func(r)?r(t):"encrypt"===r?"".concat(t.substr(0,3),"****").concat(t.substr(7)):t:"name"===n?("string"!==typeof t&&e.$u.error("姓名模式下,text参数需要为字符串格式"),e.$u.test.func(r)?r(t):"encrypt"===r?this.formatName(t):t):"link"===n?(!e.$u.test.url(i)&&e.$u.error("超链接模式下,href参数需要为URL格式"),t):t}},methods:{formatName:function(e){var t="";if(2===e.length)t=e.substr(0,1)+"*";else if(e.length>2){for(var n="",r=0,i=e.length-2;r0&&void 0!==s[0]?s[0]:{},r=s.length>1&&void 0!==s[1]?s[1]:{},o={},"string"===typeof n?(o.url=this.mixinParam(n,r),o.type="navigateTo"):(o=e.$u.deepMerge(this.config,n),o.url=this.mixinParam(n.url,n.params)),o.url!==e.$u.page()){t.next=6;break}return t.abrupt("return");case 6:if(r.intercept&&(this.config.intercept=r.intercept),o.params=r,o=e.$u.deepMerge(this.config,o),"function"!==typeof e.$u.routeIntercept){t.next=16;break}return t.next=12,new Promise((function(t,n){e.$u.routeIntercept(o,t)}));case 12:a=t.sent,a&&this.openPage(o),t.next=17;break;case 16:this.openPage(o);case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"openPage",value:function(t){var n=t.url,r=(t.type,t.delta),i=t.animationType,o=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:n,animationType:i,animationDuration:o}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:n}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:n}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:n}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:r})}}]),t}(),u=(new c).route;t.default=u}).call(this,n("df3c")["default"])},"0bbb":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),o=r(n("3e46")),a=r(n("aeae")),s=r(n("8fe3")),c=r(n("2d32")),u=r(n("4a26")),l=r(n("b64e")),f=r(n("2dd1")),d=r(n("ff58")),p=r(n("6cb5")),h=r(n("bc55")),g=r(n("e669")),v=r(n("c50e")),y=r(n("00f4")),m=r(n("c95c")),b=r(n("d6b1")),x=r(n("34bf")),w=r(n("0344")),S=r(n("dc41")),A=r(n("6230")),_=r(n("e22e")),P=r(n("f542")),k=r(n("3354")),T=r(n("a86f")),O=r(n("32ed")),C=r(n("2734")),I=r(n("9394")),M=r(n("df5a")),E=r(n("1b44")),j=r(n("39bf")),D=r(n("a822")),B=r(n("bc1f")),L=r(n("f5ee")),F=r(n("9eb1")),$=r(n("c4fa")),N=r(n("8d63")),R=r(n("4721")),z=r(n("8fdb")),U=r(n("2d78")),q=r(n("9bd5")),W=r(n("8c3d")),Q=r(n("7c3c")),H=r(n("621c")),V=r(n("c77c")),G=r(n("3212")),Y=r(n("db2e")),J=r(n("8966")),K=r(n("47b2")),X=r(n("32c1")),Z=r(n("3f21")),ee=r(n("78c9")),te=r(n("9edb")),ne=r(n("28f2")),re=r(n("84ad")),ie=r(n("9185")),oe=r(n("6599")),ae=r(n("3abb")),se=r(n("c1e3")),ce=r(n("9427")),ue=r(n("843a")),le=r(n("c0ac")),fe=r(n("314d")),de=r(n("5920")),pe=r(n("3457")),he=r(n("f9dc")),ge=r(n("df1b")),ve=r(n("f867")),ye=r(n("00d4")),me=r(n("bac2")),be=r(n("5619")),xe=r(n("aadf")),we=r(n("dc60")),Se=r(n("812d")),Ae=r(n("2a8b")),_e=r(n("30b7")),Pe=r(n("678f")),ke=r(n("f6a1")),Te=r(n("6c06")),Oe=r(n("f313")),Ce=r(n("9916")),Ie=r(n("c288")),Me=r(n("ec64")),Ee=r(n("7161")),je=r(n("be61")),De=r(n("5431")),Be=r(n("4bb3")),Le=r(n("032b")),Fe=r(n("f463")),$e=r(n("d2e0")),Ne=r(n("1885"));function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e){for(var t=1;t0?a-4:a;for(n=0;n>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function l(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function f(e,t,n){for(var r,i=[],o=t;o * @license MIT */ var r=n("10ab"),i=n("ba37"),o=n("b0e4");function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return R(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return R(e).length;t=(""+t).toLowerCase(),r=!0}}function g(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return C(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return P(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,a=1,s=e.length,c=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-c),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r)}return o}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);var r=[],i=t;while(i239?4:u>223?3:u>191?2:1;if(i+f<=n)switch(f){case 1:u<128&&(l=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(l=c));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a,c>2047&&(c<55296||c>57343)&&(l=c));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s,c>65535&&c<1114112&&(l=c))}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;while(r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),u=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function E(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function B(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(e,t,n,r,o){return o||B(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,o){return o||B(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||M(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||M(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||M(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||M(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;E(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);E(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);E(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function z(e){return r.toByteArray(function(e){if(e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace($,""),e.length<2)return"";while(e.length%4!==0)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}}).call(this,n("0ee4"))},"15a1":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{activeColor:{type:String,default:e.$u.props.lineProgress.activeColor},inactiveColor:{type:String,default:e.$u.props.lineProgress.color},percentage:{type:[String,Number],default:e.$u.props.lineProgress.inactiveColor},showText:{type:Boolean,default:e.$u.props.lineProgress.showText},height:{type:[String,Number],default:e.$u.props.lineProgress.height}}};t.default=n}).call(this,n("df3c")["default"])},"17cd":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{list:{type:Array,default:e.$u.props.swiper.list},indicator:{type:Boolean,default:e.$u.props.swiper.indicator},indicatorActiveColor:{type:String,default:e.$u.props.swiper.indicatorActiveColor},indicatorInactiveColor:{type:String,default:e.$u.props.swiper.indicatorInactiveColor},indicatorStyle:{type:[String,Object],default:e.$u.props.swiper.indicatorStyle},indicatorMode:{type:String,default:e.$u.props.swiper.indicatorMode},autoplay:{type:Boolean,default:e.$u.props.swiper.autoplay},current:{type:[String,Number],default:e.$u.props.swiper.current},currentItemId:{type:String,default:e.$u.props.swiper.currentItemId},interval:{type:[String,Number],default:e.$u.props.swiper.interval},duration:{type:[String,Number],default:e.$u.props.swiper.duration},circular:{type:Boolean,default:e.$u.props.swiper.circular},previousMargin:{type:[String,Number],default:e.$u.props.swiper.previousMargin},nextMargin:{type:[String,Number],default:e.$u.props.swiper.nextMargin},acceleration:{type:Boolean,default:e.$u.props.swiper.acceleration},displayMultipleItems:{type:Number,default:e.$u.props.swiper.displayMultipleItems},easingFunction:{type:String,default:e.$u.props.swiper.easingFunction},keyName:{type:String,default:e.$u.props.swiper.keyName},imgMode:{type:String,default:e.$u.props.swiper.imgMode},height:{type:[String,Number],default:e.$u.props.swiper.height},bgColor:{type:String,default:e.$u.props.swiper.bgColor},radius:{type:[String,Number],default:e.$u.props.swiper.radius},loading:{type:Boolean,default:e.$u.props.swiper.loading},showTitle:{type:Boolean,default:e.$u.props.swiper.showTitle}}};t.default=n}).call(this,n("df3c")["default"])},1885:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={upload:{accept:"image",capture:function(){return["album","camera"]},compressed:!0,camera:"back",maxDuration:60,uploadIcon:"camera-fill",uploadIconColor:"#D3D4D6",useBeforeRead:!1,previewFullImage:!0,maxCount:52,disabled:!1,imageMode:"aspectFill",name:"",sizeType:function(){return["original","compressed"]},multiple:!1,deletable:!0,maxSize:Number.MAX_VALUE,fileList:function(){return[]},uploadText:"",width:80,height:80,previewImage:!0}};t.default=r},"19a8":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={options:{virtualHost:!0}}},"1a16":function(e){e.exports=JSON.parse('{"uni-popup.cancel":"取消","uni-popup.ok":"確定","uni-popup.placeholder":"請輸入","uni-popup.title":"提示","uni-popup.shareTitle":"分享到"}')},"1b44":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={form:{model:function(){return{}},rules:function(){return{}},errorType:"message",borderBottom:!0,labelPosition:"left",labelWidth:45,labelAlign:"left",labelStyle:function(){return{}}}}},"1de7":function(e,t,n){(function(t){e.exports={onLoad:function(e){e&&e.invite_code&&t.setStorageSync("invite_code",e.invite_code),t.$u.mpShare={title:"羿充电",path:"",imageUrl:""}},onShareAppMessage:function(){var e=t.getStorageSync("user"),n=e?e.invite_code:"";return t.$u.mpShare.path=t.$u.page()+"?invite_code="+n,t.$u.mpShare},onShareTimeline:function(){var e=t.getStorageSync("user"),n=e?e.invite_code:"";return t.$u.mpShare.path=t.$u.page()+"?invite_code="+n,t.$u.mpShare}}}).call(this,n("df3c")["default"])},"20e6":function(e,t,n){(function(t){e.exports={props:{customStyle:{type:[Object,String],default:function(){return{}}},customClass:{type:String,default:""},url:{type:String,default:""},linkType:{type:String,default:"navigateTo"}},data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},created:function(){this.$u.getRect=this.$uGetRect},computed:{$u:function(){return t.$u.deepMerge(t.$u,{props:void 0,http:void 0,mixin:void 0})},bem:function(){return function(e,t,n){var r=this,i="u-".concat(e,"--"),o={};return t&&t.map((function(e){o[i+r[e]]=!0})),n&&n.map((function(e){r[e]?o[i+e]=r[e]:delete o[i+e]})),Object.keys(o)}}},methods:{openPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"url",n=this[e];n&&t[this.linkType]({url:n})},$uGetRect:function(e,n){var r=this;return new Promise((function(i){t.createSelectorQuery().in(r)[n?"selectAll":"select"](e).boundingClientRect((function(e){n&&Array.isArray(e)&&e.length&&i(e),!n&&e&&i(e)})).exec()}))},getParentData:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=t.$u.$parent.call(this,n),this.parent.children&&-1===this.parent.children.indexOf(this)&&this.parent.children.push(this),this.parent&&this.parentData&&Object.keys(this.parentData).map((function(t){e.parentData[t]=e.parent[t]}))},preventEvent:function(e){e&&"function"===typeof e.stopPropagation&&e.stopPropagation()},noop:function(e){this.preventEvent(e)}},onReachBottom:function(){t.$emit("uOnReachBottom")},beforeDestroy:function(){var e=this;if(this.parent&&t.$u.test.array(this.parent.children)){var n=this.parent.children;n.map((function(t,r){t===e&&n.splice(r,1)}))}}}}).call(this,n("df3c")["default"])},"21de":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.getAuth=function(){return{token:e.getStorageSync("token"),user:e.getStorageSync("user")}},t.getToken=function(){return e.getStorageSync("token")},t.getUser=function(){return e.getStorageSync("user")},t.removeAuth=function(){e.removeStorageSync("token"),e.removeStorageSync("user")},t.setAuth=function(t){e.setStorageSync("token",t.token),e.setStorageSync("user",t.user)},t.setToken=function(t){e.setStorageSync("token",t)},t.setUser=function(t){e.setStorageSync("user",t)}}).call(this,n("df3c")["default"])},2438:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={props:{}}},"259a":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7eb4")),o=r(n("ee10")),a=(r(n("6695")),function(e){return{enter:"u-".concat(e,"-enter u-").concat(e,"-enter-active"),"enter-to":"u-".concat(e,"-enter-to u-").concat(e,"-enter-active"),leave:"u-".concat(e,"-leave u-").concat(e,"-leave-active"),"leave-to":"u-".concat(e,"-leave-to u-").concat(e,"-leave-active")}}),s={methods:{clickHandler:function(){this.$emit("click")},vueEnter:function(){var e=this,t=a(this.mode);this.status="enter",this.$emit("beforeEnter"),this.inited=!0,this.display=!0,this.classes=t.enter,this.$nextTick((0,o.default)(i.default.mark((function n(){return i.default.wrap((function(n){while(1)switch(n.prev=n.next){case 0:e.$emit("enter"),e.transitionEnded=!1,e.$emit("afterEnter"),e.classes=t["enter-to"];case 4:case"end":return n.stop()}}),n)}))))},vueLeave:function(){var e=this;if(this.display){var t=a(this.mode);this.status="leave",this.$emit("beforeLeave"),this.classes=t.leave,this.$nextTick((function(){e.transitionEnded=!1,e.$emit("leave"),setTimeout(e.onTransitionEnd,e.duration),e.classes=t["leave-to"]}))}},onTransitionEnd:function(){this.transitionEnded||(this.transitionEnded=!0,this.$emit("leave"===this.status?"afterLeave":"afterEnter"),!this.show&&this.display&&(this.display=!1,this.inited=!1))}}};t.default=s},2734:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={datetimePicker:{show:!1,showToolbar:!0,value:"",title:"",mode:"datetime",maxDate:new Date((new Date).getFullYear()+10,0,1).getTime(),minDate:new Date((new Date).getFullYear()-10,0,1).getTime(),minHour:0,maxHour:23,minMinute:0,maxMinute:59,filter:null,formatter:null,loading:!1,itemHeight:44,cancelText:"取消",confirmText:"确认",cancelColor:"#909193",confirmColor:"#3c9cff",visibleItemCount:5,closeOnClickOverlay:!1,defaultIndex:function(){return[]}}};t.default=r},"287c":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{shape:{type:String,default:e.$u.props.search.shape},bgColor:{type:String,default:e.$u.props.search.bgColor},placeholder:{type:String,default:e.$u.props.search.placeholder},clearabled:{type:Boolean,default:e.$u.props.search.clearabled},focus:{type:Boolean,default:e.$u.props.search.focus},showAction:{type:Boolean,default:e.$u.props.search.showAction},actionStyle:{type:Object,default:e.$u.props.search.actionStyle},actionText:{type:String,default:e.$u.props.search.actionText},inputAlign:{type:String,default:e.$u.props.search.inputAlign},inputStyle:{type:Object,default:e.$u.props.search.inputStyle},disabled:{type:Boolean,default:e.$u.props.search.disabled},borderColor:{type:String,default:e.$u.props.search.borderColor},searchIconColor:{type:String,default:e.$u.props.search.searchIconColor},color:{type:String,default:e.$u.props.search.color},placeholderColor:{type:String,default:e.$u.props.search.placeholderColor},searchIcon:{type:String,default:e.$u.props.search.searchIcon},searchIconSize:{type:[Number,String],default:e.$u.props.search.searchIconSize},margin:{type:String,default:e.$u.props.search.margin},animation:{type:Boolean,default:e.$u.props.search.animation},value:{type:String,default:e.$u.props.search.value},maxlength:{type:[String,Number],default:e.$u.props.search.maxlength},height:{type:[String,Number],default:e.$u.props.search.height},label:{type:[String,Number,null],default:e.$u.props.search.label}}};t.default=n}).call(this,n("df3c")["default"])},"28d0":function(e,t,n){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,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("a3fc")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"28f2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={numberBox:{name:"",value:0,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,asyncChange:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:null,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",cursorSpacing:100,disableMinus:!1,disablePlus:!1,iconStyle:""}};t.default=r},"2a8b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={subsection:{list:[],current:0,activeColor:"#3c9cff",inactiveColor:"#303133",mode:"button",fontSize:12,bold:!0,bgColor:"#eeeeef",keyName:"name"}}},"2b7b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}}},"2d32":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={alert:{title:"",type:"warning",description:"",closable:!1,showIcon:!1,effect:"light",center:!1,fontSize:14}}},"2d78":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={keyboard:{mode:"number",dotDisabled:!1,tooltip:!0,showTips:!0,tips:"",showCancel:!0,showConfirm:!0,random:!1,safeAreaInsetBottom:!0,closeOnClickOverlay:!0,show:!1,overlay:!0,zIndex:10075,cancelText:"取消",confirmText:"确定",autoChange:!1}}},"2dd1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={backtop:{mode:"circle",icon:"arrow-upward",text:"",duration:100,scrollTop:0,top:400,bottom:100,right:20,zIndex:9,iconStyle:function(){return{color:"#909399",fontSize:"19px"}}}}},"303b":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{show:{type:Boolean,default:e.$u.props.loadingIcon.show},color:{type:String,default:e.$u.props.loadingIcon.color},textColor:{type:String,default:e.$u.props.loadingIcon.textColor},vertical:{type:Boolean,default:e.$u.props.loadingIcon.vertical},mode:{type:String,default:e.$u.props.loadingIcon.mode},size:{type:[String,Number],default:e.$u.props.loadingIcon.size},textSize:{type:[String,Number],default:e.$u.props.loadingIcon.textSize},text:{type:[String,Number],default:e.$u.props.loadingIcon.text},timingFunction:{type:String,default:e.$u.props.loadingIcon.timingFunction},duration:{type:[String,Number],default:e.$u.props.loadingIcon.duration},inactiveColor:{type:String,default:e.$u.props.loadingIcon.inactiveColor}}};t.default=n}).call(this,n("df3c")["default"])},"30b7":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={swipeAction:{autoClose:!0}}},"314d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={readMore:{showHeight:400,toggle:!1,closeText:"展开阅读全文",openText:"收起",color:"#2979ff",fontSize:14,textIndent:"2em",name:""}}},3191:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("36a5"));t.default=function(e){return(0,i.default)(e)}},3212:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3e46")),o=i.default.color,a={loadingIcon:{show:!0,color:o["u-tips-color"],textColor:o["u-tips-color"],vertical:!1,mode:"spinner",size:24,textSize:15,text:"",timingFunction:"ease-in-out",duration:1200,inactiveColor:""}};t.default=a},3223:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=["qy","env","error","version","lanDebug","cloud","serviceMarket","router","worklet","__webpack_require_UNI_MP_PLUGIN__"],i=["lanDebug","router","worklet"],o="undefined"!==typeof globalThis?globalThis:function(){return this}(),a=["w","x"].join(""),s=o[a],c=s.getLaunchOptionsSync?s.getLaunchOptionsSync():null;function u(e){return(!c||1154!==c.scene||!i.includes(e))&&(r.indexOf(e)>-1||"function"===typeof s[e])}o[a]=function(){var e={};for(var t in s)u(t)&&(e[t]=s[t]);return e}();var l=o[a];t.default=l},3240:function(e,t,n){"use strict";n.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2023 Evan You * Released under the MIT License. */ var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){return void 0!==e&&null!==e}function o(e){return!0===e}function a(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function s(e){return null!==e&&"object"===typeof e}var c=Object.prototype.toString;function u(e){return"[object Object]"===c.call(e)}function l(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 d(e){return null==e?"":Array.isArray(e)||u(e)&&e.toString===c?JSON.stringify(e,null,2):String(e)}function p(e){var t=parseFloat(e);return isNaN(t)?e:t}function h(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var y=Object.prototype.hasOwnProperty;function m(e,t){return y.call(e,t)}function b(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var x=/-(\w)/g,w=b((function(e){return e.replace(x,(function(e,t){return t?t.toUpperCase():""}))})),S=b((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),A=/\B([A-Z])/g,_=b((function(e){return e.replace(A,"-$1").toLowerCase()}));var P=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;var n=e.length-t,r=new Array(n);while(n--)r[n]=e[n+t];return r}function T(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n0),J=(V&&V.indexOf("android"),V&&/iphone|ipad|ipod|ios/.test(V)||"ios"===H),K=(V&&/chrome\/\d+/.test(V),V&&/phantomjs/.test(V),V&&V.match(/firefox\/(\d+)/),{}.watch);if(W)try{var X={};Object.defineProperty(X,"passive",{get:function(){}}),window.addEventListener("test-passive",null,X)}catch(Fn){}var Z=function(){return void 0===U&&(U=!W&&!Q&&"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 ne,re="undefined"!==typeof Symbol&&te(Symbol)&&"undefined"!==typeof Reflect&&te(Reflect.ownKeys);ne="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=C,oe=0,ae=function(){this.id=oe++,this.subs=[]};function se(e){ae.SharedObject.targetStack.push(e),ae.SharedObject.target=e,ae.target=e}function ce(){ae.SharedObject.targetStack.pop(),ae.SharedObject.target=ae.SharedObject.targetStack[ae.SharedObject.targetStack.length-1],ae.target=ae.SharedObject.target}ae.prototype.addSub=function(e){this.subs.push(e)},ae.prototype.removeSub=function(e){v(this.subs,e)},ae.prototype.depend=function(){ae.SharedObject.target&&ae.SharedObject.target.addDep(this)},ae.prototype.notify=function(){var e=this.subs.slice();for(var t=0,n=e.length;t-1)if(o&&!m(i,"default"))a=!1;else if(""===a||a===_(e)){var c=Le(String,i.type);(c<0||s0&&(c=e(c,(n||"")+"_"+s),rt(c[0])&&rt(l)&&(f[u]=de(l.text+c[0].text),c.shift()),f.push.apply(f,c)):a(c)?rt(l)?f[u]=de(l.text+c):""!==c&&f.push(de(c)):rt(c)&&rt(l)?f[u]=de(l.text+c.text):(o(t._isVList)&&i(c.tag)&&r(c.key)&&i(n)&&(c.key="__vlist"+n+"_"+s+"__"),f.push(c)));return f}(e):void 0}function rt(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 ot(e){var t=at(e.$options.inject,e);t&&(ye(!1),Object.keys(t).forEach((function(n){we(e,n,t[n])})),ye(!0))}function at(e,t){if(e){for(var n=Object.create(null),r=re?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=e?!!e.$stable:!o,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&r&&r!==n&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=lt(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=ft(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),R(i,"$stable",a),R(i,"$key",s),R(i,"$hasNormal",o),i}function lt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:nt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function ft(e,t){return function(){return e[t]}}function dt(e,t){var n,r,o,a,c;if(Array.isArray(e)||"string"===typeof e)for(n=new Array(e.length),r=0,o=e.length;rdocument.createEvent("Event").timeStamp&&(Zt=function(){return en.now()})}function tn(){var e,t;for(Zt(),Kt=!0,Vt.sort((function(e,t){return e.id-t.id})),Xt=0;XtXt&&Vt[n].id>e.id)n--;Vt.splice(n+1,0,e)}else Vt.push(e);Jt||(Jt=!0,Ye(tn))}}(this)},rn.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(Fn){Fe(Fn,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},rn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},rn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},rn.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 on={enumerable:!0,configurable:!0,get:C,set:C};function an(e,t,n){on.get=function(){return this[t][n]},on.set=function(e){this[t][n]=e},Object.defineProperty(e,n,on)}function sn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||ye(!1);var a=function(o){i.push(o);var a=je(o,t,n,e);we(r,o,a),o in e||an(e,"_props",o)};for(var s in t)a(s);ye(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!==typeof t[n]?C:P(t[n],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(Fn){return Fe(Fn,t,"data()"),{}}finally{ce()}}(t,e):t||{},u(t)||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);while(i--){var o=n[i];0,r&&m(r,o)||N(o)||an(e,"_data",o)}xe(t,!0)}(e):xe(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Z();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;0,r||(n[i]=new rn(e,a||C,C,cn)),i in e||un(e,i,o)}}(e,t.computed),t.watch&&t.watch!==K&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!function(e){return"[object RegExp]"===c.call(e)}(e)&&e.test(t)}function bn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!t(s)&&xn(n,o,r,i)}}}function xn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,v(n,t)}(function(e){e.prototype._init=function(e){var t=this;t._uid=pn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Me(hn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){while(n.$options.abstract&&n.$parent)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$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,r=e.$vnode=t._parentVnode,i=r&&r.context;e.$slots=st(t._renderChildren,i),e.$scopedSlots=n,e._c=function(t,n,r,i){return Dt(e,t,n,r,i,!1)},e.$createElement=function(t,n,r,i){return Dt(e,t,n,r,i,!0)};var o=r&&r.data;we(e,"$attrs",o&&o.attrs||n,null,!0),we(e,"$listeners",t._parentListeners||n,null,!0)}(t),Ht(t,"beforeCreate"),!t._$fallback&&ot(t),sn(t),!t._$fallback&&it(t),!t._$fallback&&Ht(t,"created"),t.$options.el&&t.$mount(t.$options.el)}})(gn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Se,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(u(t))return dn(this,e,t,n);n=n||{},n.user=!0;var r=new rn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(i){Fe(i,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(gn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?k(n):n;for(var r=k(arguments,1),i='event handler for "'+e+'"',o=0,a=n.length;oparseInt(this.max)&&xn(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},An={KeepAlive:Sn};(function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:T,mergeOptions:Me,defineReactive:we},e.set=Se,e.delete=Ae,e.nextTick=Ye,e.observable=function(e){return xe(e),e},e.options=Object.create(null),B.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,T(e.options.components,An),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"===typeof e.install?e.install.apply(e,n):"function"===typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Me(this.options,e),this}}(e),vn(e),function(e){B.forEach((function(t){e[t]=function(e,n){return n?("component"===t&&u(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"===typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)})(gn),Object.defineProperty(gn.prototype,"$isServer",{get:Z}),Object.defineProperty(gn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(gn,"FunctionalRenderContext",{value:Tt}),gn.version="2.6.11";var _n="[object Array]",Pn="[object Object]";function kn(e,t){var n={};return function e(t,n){if(t===n)return;var r=On(t),i=On(n);if(r==Pn&&i==Pn){if(Object.keys(t).length>=Object.keys(n).length)for(var o in n){var a=t[o];void 0===a?t[o]=null:e(a,n[o])}}else r==_n&&i==_n&&t.length>=n.length&&n.forEach((function(n,r){e(t[r],n)}))}(e,t),function e(t,n,r,i){if(t===n)return;var o=On(t),a=On(n);if(o==Pn)if(a!=Pn||Object.keys(t).length1&&(t[r[0].trim()]=r[1].trim())}})),t}));var Bn=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];var Ln=["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"];gn.prototype.__patch__=function(e,t){var n=this;if(null!==t&&("page"===this.mpType||"component"===this.mpType)){var r=this.$scope,i=Object.create(null);try{i=function(e){var t=Object.create(null),n=[].concat(Object.keys(e._data||{}),Object.keys(e._computedWatchers||{}));n.reduce((function(t,n){return t[n]=e[n],t}),t);var r=e.__composition_api_state__||e.__secret_vfa_state__,i=r&&r.rawBindings;return i&&Object.keys(i).forEach((function(n){t[n]=e[n]})),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,Mn))}(this)}catch(s){console.error(s)}i.__webviewId__=r.data.__webviewId__;var o=Object.create(null);Object.keys(i).forEach((function(e){o[e]=r.data[e]}));var a=!1===this.$shouldDiffData?i:kn(i,o);Object.keys(a).length?(Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"羿充电",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.log("["+ +new Date+"]["+(r.is||r.route)+"]["+this._uid+"]差量更新",JSON.stringify(a)),this.__next_tick_pending=!0,r.setData(a,(function(){n.__next_tick_pending=!1,Cn(n)}))):Cn(this)}},gn.prototype.$mount=function(e,t){return function(e,t,n){return e.mpType?("app"===e.mpType&&(e.$options.render=En),e.$options.render||(e.$options.render=En),!e._$fallback&&Ht(e,"beforeMount"),new rn(e,(function(){e._update(e._render(),n)}),C,{before:function(){e._isMounted&&!e._isDestroyed&&Ht(e,"beforeUpdate")}},!0),n=!1,e):e}(this,0,t)},function(e){var t=e.extend;e.extend=function(e){e=e||{};var n=e.methods;return n&&Object.keys(n).forEach((function(t){-1!==Ln.indexOf(t)&&(e[t]=n[t],delete n[t])})),t.call(this,e)};var n=e.config.optionMergeStrategies,r=n.created;Ln.forEach((function(e){n[e]=r})),e.prototype.__lifecycle_hooks__=Ln}(gn),function(e){e.config.errorHandler=function(t,n,r){e.util.warn("Error in "+r+': "'+t.toString()+'"',n),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 n=this.$scope["_triggerEvent"]||this.$scope["triggerEvent"];if(n)try{n.call(this.$scope,e,{__args__:k(arguments,1)})}catch(r){}}return t.apply(this,arguments)},e.prototype.$nextTick=function(e){return In(this,e)},Bn.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=ot,e.prototype.__call_hook=function(e,t){var n=this;se();var r,i=n.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=String(e).toLowerCase(),e&&n.test(e)){if(4===e.length){for(var r="#",i=1;i<4;i+=1)r+=e.slice(i,i+1).concat(e.slice(i,i+1));e=r}for(var o=[],a=1;a<7;a+=2)o.push(parseInt("0x".concat(e.slice(a,a+2))));return t?"rgb(".concat(o[0],",").concat(o[1],",").concat(o[2],")"):o}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 n=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),r="#",i=0;i0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,o=r(e,!1),a=o[0],s=o[1],c=o[2],u=r(t,!1),l=u[0],f=u[1],d=u[2],p=(l-a)/n,h=(f-s)/n,g=(d-c)/n,v=[],y=0;y1?t-1:0),r=1;re.end.x||t.end.xe.start.y||t.start.y1&&(i.extra.mount.widthRatio>2&&(i.extra.mount.widthRatio=2),a+=(i.extra.mount.widthRatio-1)*n.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=a-o?(s=o-a,e.uevent.trigger("scrollRight"),e.scrollOption.position="right",i.xAxis.scrollPosition="right"):(e.scrollOption.position=t,i.xAxis.scrollPosition=t),s}function d(e,t,n){function r(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=r(e),t=r(t),n=r(n),t>n&&(n+=2*Math.PI,e=t&&e<=n}function p(e,t){function n(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 r(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,o=.2,a=null,s=null,c=null,u=null;if(t<1?(a=e[0].x+(e[1].x-e[0].x)*i,s=e[0].y+(e[1].y-e[0].y)*i):(a=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 l=e.length-1;c=e[l].x-(e[l].x-e[l-1].x)*o,u=e[l].y-(e[l].y-e[l-1].y)*o}else c=e[t+1].x-(e[t+2].x-e[t].x)*o,u=e[t+1].y-(e[t+2].y-e[t].y)*o;return n(e,t+1)&&(u=e[t+1].y),n(e,t)&&(s=e[t].y),r(e,t+1)&&(c=e[t+1].x),r(e,t)&&(a=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),(u>=Math.max(e[t].y,e[t+1].y)||u<=Math.min(e[t].y,e[t+1].y))&&(u=e[t+1].y),(a>=Math.max(e[t].x,e[t+1].x)||a<=Math.min(e[t].x,e[t+1].x))&&(a=e[t].x),(c>=Math.max(e[t].x,e[t+1].x)||c<=Math.min(e[t].x,e[t+1].x))&&(c=e[t+1].x),{ctrA:{x:a,y:s},ctrB:{x:c,y:u}}}function h(e,t,n){return{x:n.x+e,y:n.y-t}}function g(e,t){if(t)while(c.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,n){for(var r=0,i=0;i=1e4?1e3:r>=1e3?100:r>=100?10:r>=10?5:r>=1?1:r>=.1?.1:r>=.01?.01:r>=.001?.001:r>=1e-4?1e-4:r>=1e-5?1e-5:1e-6,{minRange:l(e,"lower",n),maxRange:l(t,"upper",n)}}function b(e,t,n){var r=0;if(e=String(e),!1!==n&&void 0!==n&&n.setFontSize&&n.measureText)return n.setFontSize(t),n.measureText(e).width;e=e.split("");for(var i=0;i-1;if(o)for(var a=C(e),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},a=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(r.length>0){for(var c=[],u=0;u0&&(r=i[n]),{text:o.formatter?o.formatter(e,r,n,t):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:f,offset:d}}function T(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.chartData.xAxisPoints[n]+t.chartData.eachSpacing/2,a=e.map((function(e){return{text:i.formatter?i.formatter(e,r[n],n,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend,legendShape:"auto"==t.extra.tooltip.legendShape?e.legendShape:t.extra.tooltip.legendShape}}));a=a.filter((function(e){if(!0!==e.disableLegend)return e}));var s={x:Math.round(o),y:0};return{textList:a,offset:s}}function O(e,t,n,r,i,o){var a=n.chartData.calPoints,s=o.color.upFill,c=o.color.downFill,u=[s,s,c,s],l=[];t.map((function(t){0==r?t.data[1]-t.data[0]<0?u[1]=c:u[1]=s:(t.data[0]e[r-1][1]&&(u[2]=s),t.data[3]=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function M(e,t,n){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n,2)}function E(e,t){var n=[],r=[];return e.forEach((function(e,i){t.connectNulls?null!==e&&r.push(e):null!==e?r.push(e):(r.length&&n.push(r),r=[])})),r.length&&n.push(r),n}function j(e,t,n,r,i){var o={angle:0,xAxisHeight:t.xAxis.lineHeight*t.pix+t.xAxis.marginTop*t.pix},a=t.xAxis.fontSize*t.pix,s=e.map((function(e,n){var r=t.xAxis.formatter?t.xAxis.formatter(e,n,t):e;return b(String(r),a,i)})),c=Math.max.apply(this,s);if(1==t.xAxis.rotateLabel){o.angle=t.xAxis.rotateAngle*Math.PI/180;var u=t.xAxis.marginTop*t.pix*2+Math.abs(c*Math.sin(o.angle));u=u4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==r?w(e,t.categories.length):x(e);var s=[];i=i.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===(0,o.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 c=0,u=0;if(s.length>0&&(c=Math.min.apply(this,s),u=Math.max.apply(this,s)),a>-1?("number"===typeof t.xAxis.data[a].min&&(c=Math.min(t.xAxis.data[a].min,c)),"number"===typeof t.xAxis.data[a].max&&(u=Math.max(t.xAxis.data[a].max,u))):("number"===typeof t.xAxis.min&&(c=Math.min(t.xAxis.min,c)),"number"===typeof t.xAxis.max&&(u=Math.max(t.xAxis.max,u))),c===u){var l=u||10;u+=l}for(var f=c,d=u,p=[],h=(d-f)/t.xAxis.splitNumber,g=0;g<=t.xAxis.splitNumber;g++)p.push(f+h*g);return p}(e,t,n,i.type),a.rangesFormat=a.ranges.map((function(e){return e=c.toFixed(e,2),e}));var u=a.ranges.map((function(e){return e=c.toFixed(e,2),e}));a=Object.assign(a,G(u,t,n));a.eachSpacing,u.map((function(e){return b(e,t.xAxis.fontSize*t.pix,r)}));return!0===t.xAxis.disabled&&(a.xAxisHeight=0),a}function B(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,a=i.extra.radar||{};a.max=a.max||0;for(var s=Math.max(a.max,Math.max.apply(null,x(r))),c=[],u=function(i){var a=r[i],u={};u.color=a.color,u.legendShape=a.legendShape,u.pointShape=a.pointShape,u.data=[],a.data.forEach((function(r,i){var a={};a.angle=e[i],a.proportion=r/s,a.value=r,a.position=h(n*a.proportion*o*Math.cos(a.angle),n*a.proportion*o*Math.sin(a.angle),t),u.data.push(a)})),c.push(u)},l=0;l2&&void 0!==arguments[2]?arguments[2]:1,r=0,i=0,o=0;o4&&void 0!==arguments[4]?arguments[4]:1,o=0;o4&&void 0!==arguments[4]?arguments[4]:1,o=0,a=0,s=[],c=0;c2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r=2&&(i._proportion_=i._proportion_%2)}return e}function R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==n&&(n=.999999);for(var r=0;r=2&&(i._proportion_=i._proportion_%2)}return e}function z(e,t,n){var r;r=n=2&&(e[o]._endAngle_=e[o]._endAngle_%2),i=e[o]._endAngle_;return e}function U(e,t,n){for(var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i=n.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*r+n.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*r,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return e}function q(e,t,n,r,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return"mix"==o.type?(i=o.extra.mix.column.seriesGap*o.pix||0,a=o.extra.mix.column.categoryGap*o.pix||0):(i=o.extra.column.seriesGap*o.pix||0,a=o.extra.column.categoryGap*o.pix||0),i=Math.min(i,t/n),a=Math.min(a,t/n),e.width=Math.ceil((t-2*a-i*(n-1))/n),o.extra.mix&&o.extra.mix.column.width&&+o.extra.mix.column.width>0&&(e.width=Math.min(e.width,+o.extra.mix.column.width*o.pix)),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e.x+=(r+.5-n/2)*(e.width+i),e}))}function W(e,t,n,r,i,o){return e.map((function(e){if(null===e)return null;var i=0,a=0;return i=o.extra.bar.seriesGap*o.pix||0,a=o.extra.bar.categoryGap*o.pix||0,i=Math.min(i,t/n),a=Math.min(a,t/n),e.width=Math.ceil((t-2*a-i*(n-1))/n),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e.y+=(r+.5-n/2)*(e.width+i),e}))}function Q(e,t,n,r,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e){return null===e?null:(e.width=t-2*s,o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),r>0&&(e.width-=a),e)}))}function H(e,t,n,r,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.column&&o.extra.column.width&&+o.extra.column.width>0&&(e.width=Math.min(e.width,+o.extra.column.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function V(e,t,n,r,i,o,a){var s=o.extra.bar.categoryGap*o.pix||0;return e.map((function(e,n){return null===e?null:(e.width=Math.ceil(t-2*s),o.extra.bar&&o.extra.bar.width&&+o.extra.bar.width>0&&(e.width=Math.min(e.width,+o.extra.bar.width*o.pix)),e.width<=0&&(e.width=1),e)}))}function G(e,t,n){var r=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 o=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),o=t.extra.mount.widthRatio-1,i+=o);var a=r/i,s=[],c=t.area[3],u=t.width-t.area[1];return e.forEach((function(e,t){s.push(c+o/2*a+t*a)})),"justify"!==t.xAxis.boundaryGap&&(!0===t.enableScroll?s.push(c+o*a+e.length*a):s.push(u)),{xAxisPoints:s,startX:c,endX:u,eachSpacing:a}}function Y(e,t,n,r,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c=[],u=o.height-o.area[0]-o.area[2];return e.forEach((function(e,a){if(null===e)c.push(null);else{var l=[];e.forEach((function(e,c){var f={};f.x=r[a]+Math.round(i/2);var d=e.value||e,p=u*(d-t)/(n-t);p*=s,f.y=o.height-Math.round(p)-o.area[2],l.push(f)})),c.push(l)}})),c}function J(e,t,n,r,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u="center";"line"!=a.type&&"area"!=a.type&&"scatter"!=a.type&&"bubble"!=a.type||(u=a.xAxis.boundaryGap);var l=[],f=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var p={};p.color=e.color,p.x=r[s];var h,g,v,y=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)h=[].concat(a.chartData.xAxisData.ranges),g=h.shift(),v=h.pop(),y=e[1],p.x=a.area[3]+d*(e[0]-g)/(v-g),"bubble"==a.type&&(p.r=e[2],p.t=e[3]);else y=e.value;"center"==u&&(p.x+=i/2);var m=f*(y-t)/(n-t);m*=c,p.y=a.height-m-a.area[2],l.push(p)}})),l}function K(e,t,n,r,i,a,s,c,u){u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=a.xAxis.boundaryGap,f=[],d=a.height-a.area[0]-a.area[2],p=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)f.push(null);else{var h={};if(h.color=e.color,"vertical"==c.animation){h.x=r[s];var g,v,y,m=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)g=[].concat(a.chartData.xAxisData.ranges),v=g.shift(),y=g.pop(),m=e[1],h.x=a.area[3]+p*(e[0]-v)/(y-v);else m=e.value;"center"==l&&(h.x+=i/2);var b=d*(m-t)/(n-t);b*=u,h.y=a.height-b-a.area[2],f.push(h)}else{h.x=r[0]+i*s*u;m=e;"center"==l&&(h.x+=i/2);b=d*(m-t)/(n-t);h.y=a.height-b-a.area[2],f.push(h)}}})),f}function X(e,t,n,r,i,a,s,c,u){u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1;var l=[],f=a.height-a.area[0]-a.area[2],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,s){if(null===e)l.push(null);else{var c={};c.color=e.color,c.x=r[s];var p,h,g,v=e;if("object"===(0,o.default)(e)&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)p=[].concat(a.chartData.xAxisData.ranges),h=p.shift(),g=p.pop(),v=e[1],c.x=a.area[3]+d*(e[0]-h)/(g-h);else v=e.value;c.x+=i/2;var y=f*(v*u-t)/(n-t);c.y=a.height-y-a.area[2],l.push(c)}})),l}function Z(e,t,n,r,i,o,a,s){var c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:1,u=[],l=o.height-o.area[0]-o.area[2],f=(o.width,o.area[1],o.area[3],i*a.widthRatio);return e.forEach((function(e,a){if(null===e)u.push(null);else{var s={};s.color=e.color,s.x=r[a],s.x+=i/2;var d=e.data,p=l*(d*c-t)/(n-t);s.y=o.height-p-o.area[2],s.value=d,s.width=f,u.push(s)}})),u}function ee(e,t,n,r,i,a,s){var c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,u=[],l=(a.height,a.area[0],a.area[2],a.width-a.area[1]-a.area[3]);return e.forEach((function(e,i){if(null===e)u.push(null);else{var s={};s.color=e.color,s.y=r[i];var f=e;"object"===(0,o.default)(e)&&null!==e&&(f=e.value);var d=l*(f-t)/(n-t);d*=c,s.height=d,s.value=f,s.x=d+a.area[3],u.push(s)}})),u}function te(e,t,n,r,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],d=a.height-a.area[0]-a.area[2];return e.forEach((function(e,s){if(null===e)f.push(null);else{var p={};if(p.color=e.color,p.x=r[s]+Math.round(i/2),c>0){for(var h=0,g=0;g<=c;g++)h+=u[g].data[s];var v=h-e,y=d*(h-t)/(n-t),m=d*(v-t)/(n-t)}else{h=e;"object"===(0,o.default)(e)&&null!==e&&(h=e.value);y=d*(h-t)/(n-t),m=0}var b=m;y*=l,b*=l,p.y=a.height-Math.round(y)-a.area[2],p.y0=a.height-Math.round(b)-a.area[2],f.push(p)}})),f}function ne(e,t,n,r,i,a,s,c,u){var l=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],d=a.width-a.area[1]-a.area[3];return e.forEach((function(e,i){if(null===e)f.push(null);else{var s={};if(s.color=e.color,s.y=r[i],c>0){for(var p=0,h=0;h<=c;h++)p+=u[h].data[i];var g=p-e,v=d*(p-t)/(n-t),y=d*(g-t)/(n-t)}else{p=e;"object"===(0,o.default)(e)&&null!==e&&(p=e.value);v=d*(p-t)/(n-t),y=0}var m=y;v*=l,m*=l,s.height=v-m,s.x=a.area[3]+v,s.x0=a.area[3]+m,f.push(s)}})),f}function re(e,t,n,r,i){var a;a="stack"==r?w(e,t.categories.length):x(e);var s=[];a=a.filter((function(e){return"object"===(0,o.default)(e)&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),a.map((function(e){"object"===(0,o.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 c=i.min||0,u=i.max||0;s.length>0&&(c=Math.min.apply(this,s),u=Math.max.apply(this,s)),c===u&&(0==u?u=10:c=0);for(var l=m(c,u),f=void 0===i.min||null===i.min?l.minRange:i.min,d=void 0===i.max||null===i.max?l.maxRange:i.max,p=(d-f)/t.yAxis.splitNumber,h=[],g=0;g<=t.yAxis.splitNumber;g++)h.push(f+p*g);return h.reverse()}function ie(e,t,n,r){var i=s({},{type:""},t.extra.column),o=t.yAxis.data.length,a=new Array(o);if(o>0){for(var u=0;u0&&0==i.tooltip.group.includes(a))){var s="number"===typeof i.tooltip.index?i.tooltip.index:i.tooltip.index[i.tooltip.group.indexOf(a)];if(r.beginPath(),"hollow"==o.activeType?(r.setStrokeStyle(t),r.setFillStyle(i.background),r.setLineWidth(2*i.pix)):(r.setStrokeStyle("#ffffff"),r.setFillStyle(t),r.setLineWidth(1*i.pix)),"diamond"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x+2.5*i.pix,e.y),r.arc(e.x,e.y,3*i.pix,0,2*Math.PI,!1))}));else if("square"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===n)e.forEach((function(e,t){null!==e&&s==t&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("none"===n)return;r.closePath(),r.fill(),r.stroke()}}function ce(e,t,n,r){var i=e.title.fontSize||t.titleFontSize,o=e.subtitle.fontSize||t.subtitleFontSize,a=e.title.name||"",s=e.subtitle.name||"",c=e.title.color||e.fontColor,u=e.subtitle.color||e.fontColor,l=a?i:0,f=s?o:0;if(s){var d=b(s,o*e.pix,n),p=r.x-d/2+(e.subtitle.offsetX||0)*e.pix,h=r.y+o*e.pix/2+(e.subtitle.offsetY||0)*e.pix;a&&(h+=(l*e.pix+5)/2),n.beginPath(),n.setFontSize(o*e.pix),n.setFillStyle(u),n.fillText(s,p,h),n.closePath(),n.stroke()}if(a){var g=b(a,i*e.pix,n),v=r.x-g/2+(e.title.offsetX||0),y=r.y+i*e.pix/2+(e.title.offsetY||0)*e.pix;s&&(y-=(f*e.pix+5)/2),n.beginPath(),n.setFontSize(i*e.pix),n.setFillStyle(c),n.fillText(a,v,y),n.closePath(),n.stroke()}}function ue(e,t,n,r,i){var a=t.data,s=t.textOffset?t.textOffset:0;e.forEach((function(e,c){if(null!==e){r.beginPath();var u=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(u),r.setFillStyle(t.textColor||i.fontColor);var l=a[c];"object"===(0,o.default)(a[c])&&null!==a[c]&&(l=a[c].constructor.toString().indexOf("Array")>-1?a[c][1]:a[c].value);var f=t.formatter?t.formatter(l,c,t,i):l;r.setTextAlign("center"),r.fillText(String(f),e.x,e.y-4+s*i.pix),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function le(e,t,n,r,i){var a=t.data,s=t.textOffset?t.textOffset:0,c=i.extra.column.labelPosition;e.forEach((function(e,u){if(null!==e){r.beginPath();var l=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(l),r.setFillStyle(t.textColor||i.fontColor);var f=a[u];"object"===(0,o.default)(a[u])&&null!==a[u]&&(f=a[u].constructor.toString().indexOf("Array")>-1?a[u][1]:a[u].value);var d=t.formatter?t.formatter(f,u,t,i):f;r.setTextAlign("center");var p=e.y-4*i.pix+s*i.pix;e.y>t.zeroPoints&&(p=e.y+s*i.pix+l),"insideTop"==c&&(p=e.y+l+s*i.pix,e.y>t.zeroPoints&&(p=e.y-s*i.pix-4*i.pix)),"center"==c&&(p=e.y+s*i.pix+(i.height-i.area[2]-e.y+l)/2,t.zeroPointst.zeroPoints&&(p=e.y-s*i.pix-(e.y-t.zeroPoints-l)/2),"stack"==i.extra.column.type&&(p=e.y+s*i.pix+(e.y0-e.y+l)/2)),"bottom"==c&&(p=i.height-i.area[2]+s*i.pix-4*i.pix,t.zeroPointst.zeroPoints&&(p=t.zeroPoints-s*i.pix+l+2*i.pix),"stack"==i.extra.column.type&&(p=e.y0+s*i.pix-4*i.pix)),r.fillText(String(d),e.x,p),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function fe(e,t,n,r,i,o){t.data;var a=t.textOffset?t.textOffset:0;i.extra.mount.labelPosition;e.forEach((function(e,s){if(null!==e){r.beginPath();var c=t[s].textSize?t[s].textSize*i.pix:n.fontSize;r.setFontSize(c),r.setFillStyle(t[s].textColor||i.fontColor);var u=e.value,l=t[s].formatter?t[s].formatter(u,s,t,i):u;r.setTextAlign("center");var f=e.y-4*i.pix+a*i.pix;e.y>o&&(f=e.y+a*i.pix+c),r.fillText(String(l),e.x,f),r.closePath(),r.stroke(),r.setTextAlign("left")}}))}function de(e,t,n,r,i){var a=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,s){if(null!==e){r.beginPath();var c=t.textSize?t.textSize*i.pix:n.fontSize;r.setFontSize(c),r.setFillStyle(t.textColor||i.fontColor);var u=a[s];"object"===(0,o.default)(a[s])&&null!==a[s]&&(u=a[s].value);var l=t.formatter?t.formatter(u,s,t,i):u;r.setTextAlign("left"),r.fillText(String(l),e.x+4*i.pix,e.y+c/2-3),r.closePath(),r.stroke()}}))}function pe(e,t,n,r,i,o){var a;t-=e.width/2+e.labelOffset*r.pix,t=t<10?10:t,a=e.endAngle=2&&(l%=2),f+=u}}function he(e,t,n,r,i,o){var a=r.extra.radar||{};e.forEach((function(e,s){if(!0===a.labelPointShow&&""!==r.categories[s]){var u={x:t*Math.cos(e),y:t*Math.sin(e)},l=h(u.x,u.y,n);o.setFillStyle(a.labelPointColor),o.beginPath(),o.arc(l.x,l.y,a.labelPointRadius*r.pix,0,2*Math.PI,!1),o.closePath(),o.fill()}if(!0===a.labelShow){var f={x:(t+i.radarLabelTextMargin*r.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*r.pix)*Math.sin(e)},d=h(f.x,f.y,n),p=d.x,g=d.y;c.approximatelyEqual(f.x,0)?p-=b(r.categories[s]||"",i.fontSize,o)/2:f.x<0&&(p-=b(r.categories[s]||"",i.fontSize,o)),o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(a.labelColor||r.fontColor),o.fillText(r.categories[s]||"",p,g+i.fontSize/2),o.closePath(),o.stroke()}}))}function ge(e,t,n,r,i,o){for(var a=n.pieChartLinePadding,s=[],u=null,l=e.map((function(n,r){var i=n.formatter?n.formatter(n,r,e,t):c.toFixed(100*n._proportion_.toFixed(4))+"%";i=n.labelText?n.labelText:i;var o=2*Math.PI-(n._start_+2*Math.PI*n._proportion_/2);n._rose_proportion_&&(o=2*Math.PI-(n._start_+2*Math.PI*n._rose_proportion_/2));var a=n.color,s=n._radius_;return{arc:o,text:i,color:a,radius:s,textColor:n.textColor,textSize:n.textSize,labelShow:n.labelShow}})),f=0;f=0?p+n.pieChartTextPadding:p-n.pieChartTextPadding,w=v,S=b(d.text,d.textSize*t.pix||n.fontSize,r),A=w;u&&c.isSameXCoordinateArea(u.start,{x:x})&&(A=x>0?Math.min(w,u.start.y):p<0||w>0?Math.max(w,u.start.y):Math.min(w,u.start.y)),x<0&&(x-=S);var _={lineStart:{x:y,y:m},lineEnd:{x:p,y:v},start:{x:x,y:A},width:S,height:n.fontSize,text:d.text,color:d.color,textColor:d.textColor,textSize:d.textSize};u=g(_,u),s.push(u)}for(var P=0;Pi?i:o.activeWidth;var a=t.area[0],c=t.height-t.area[2];r.beginPath(),r.setFillStyle(u(o.activeBgColor,o.activeBgOpacity)),r.rect(e-o.activeWidth/2,a,o.activeWidth,c-a),r.closePath(),r.fill(),r.setFillStyle("#FFFFFF")}function be(e,t,n,r,i){var o=s({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),a=t.area[3],c=t.width-t.area[1];r.beginPath(),r.setFillStyle(u(o.activeBgColor,o.activeBgOpacity)),r.rect(a,e-i/2,c-a,i),r.closePath(),r.fill(),r.setFillStyle("#FFFFFF")}function xe(e,t,n,r,i,o,a){var c=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},n.extra.tooltip);1==c.showCategory&&n.categories&&e.unshift({text:n.categories[n.tooltip.index],color:null});var l=c.fontSize*n.pix,f=c.lineHeight*n.pix,d=c.boxPadding*n.pix,p=l,h=5*n.pix;0==c.legendShow&&(p=0,h=0);var g=c.showArrow?8*n.pix:0,v=!1;"line"!=n.type&&"mount"!=n.type&&"area"!=n.type&&"candle"!=n.type&&"mix"!=n.type||1==c.splitLine&&function(e,t,n,r){var i=t.extra.tooltip||{};i.gridType=void 0==i.gridType?"solid":i.gridType,i.dashLength=void 0==i.dashLength?4:i.dashLength;var o=t.area[0],a=t.height-t.area[2];if("dash"==i.gridType&&r.setLineDash([i.dashLength,i.dashLength]),r.setStrokeStyle(i.gridColor||"#cccccc"),r.setLineWidth(1*t.pix),r.beginPath(),r.moveTo(e,o),r.lineTo(e,a),r.stroke(),r.setLineDash([]),i.xAxisLabel){var s=t.categories[t.tooltip.index];r.setFontSize(n.fontSize);var c=b(s,n.fontSize,r),l=e-.5*c,f=a+2*t.pix;r.beginPath(),r.setFillStyle(u(i.labelBgColor||n.toolTipBackground,i.labelBgOpacity||n.toolTipOpacity)),r.setStrokeStyle(i.labelBgColor||n.toolTipBackground),r.setLineWidth(1*t.pix),r.rect(l-i.boxPadding*t.pix,f,c+2*i.boxPadding*t.pix,n.fontSize+2*i.boxPadding*t.pix),r.closePath(),r.stroke(),r.fill(),r.beginPath(),r.setFontSize(n.fontSize),r.setFillStyle(i.labelFontColor||t.fontColor),r.fillText(String(s),l,f+i.boxPadding*t.pix+n.fontSize),r.closePath(),r.stroke()}}(n.tooltip.offset.x,n,r,i),t=s({x:0,y:0},t),t.y-=8*n.pix;var y=e.map((function(e){return b(e.text,l,i)})),m=p+h+4*d+Math.max.apply(null,y),x=2*d+e.length*f;if(0!=c.showBox){t.x-Math.abs(n._scrollDistance_||0)+g+m>n.width&&(v=!0),x+t.y>n.height&&(t.y=n.height-x),i.beginPath(),i.setFillStyle(u(c.bgColor,c.bgOpacity)),i.setLineWidth(c.borderWidth*n.pix),i.setStrokeStyle(u(c.borderColor,c.borderOpacity));var w=c.borderRadius;v?(m+g>n.width&&(t.x=n.width+Math.abs(n._scrollDistance_||0)+g+(m-n.width)),m>t.x&&(t.x=n.width+Math.abs(n._scrollDistance_||0)+g+(m-n.width)),c.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x-g,t.y+10*n.pix+5*n.pix)),i.arc(t.x-g-w,t.y+x-w,w,0,Math.PI/2,!1),i.arc(t.x-g-Math.round(m)+w,t.y+x-w,w,Math.PI/2,Math.PI,!1),i.arc(t.x-g-Math.round(m)+w,t.y+w,w,-Math.PI,-Math.PI/2,!1),i.arc(t.x-g-w,t.y+w,w,-Math.PI/2,0,!1),c.showArrow&&(i.lineTo(t.x-g,t.y+10*n.pix-5*n.pix),i.lineTo(t.x,t.y+10*n.pix))):(c.showArrow&&(i.moveTo(t.x,t.y+10*n.pix),i.lineTo(t.x+g,t.y+10*n.pix-5*n.pix)),i.arc(t.x+g+w,t.y+w,w,-Math.PI,-Math.PI/2,!1),i.arc(t.x+g+Math.round(m)-w,t.y+w,w,-Math.PI/2,0,!1),i.arc(t.x+g+Math.round(m)-w,t.y+x-w,w,0,Math.PI/2,!1),i.arc(t.x+g+w,t.y+x-w,w,Math.PI/2,Math.PI,!1),c.showArrow&&(i.lineTo(t.x+g,t.y+10*n.pix+5*n.pix),i.lineTo(t.x,t.y+10*n.pix))),i.closePath(),i.fill(),c.borderWidth>0&&i.stroke(),c.legendShow&&e.forEach((function(e,r){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var o=t.x+g+2*d,a=t.y+(f-l)/2+f*r+d+1;switch(v&&(o=t.x-m-g+2*d),e.legendShape){case"line":i.moveTo(o,a+.5*p-2*n.pix),i.fillRect(o,a+.5*p-2*n.pix,p,4*n.pix);break;case"triangle":i.moveTo(o+7.5*n.pix,a+.5*p-5*n.pix),i.lineTo(o+2.5*n.pix,a+.5*p+5*n.pix),i.lineTo(o+12.5*n.pix,a+.5*p+5*n.pix),i.lineTo(o+7.5*n.pix,a+.5*p-5*n.pix);break;case"diamond":i.moveTo(o+7.5*n.pix,a+.5*p-5*n.pix),i.lineTo(o+2.5*n.pix,a+.5*p),i.lineTo(o+7.5*n.pix,a+.5*p+5*n.pix),i.lineTo(o+12.5*n.pix,a+.5*p),i.lineTo(o+7.5*n.pix,a+.5*p-5*n.pix);break;case"circle":i.moveTo(o+7.5*n.pix,a+.5*p),i.arc(o+7.5*n.pix,a+.5*p,5*n.pix,0,2*Math.PI);break;case"rect":i.moveTo(o,a+.5*p-5*n.pix),i.fillRect(o,a+.5*p-5*n.pix,15*n.pix,10*n.pix);break;case"square":i.moveTo(o+2*n.pix,a+.5*p-5*n.pix),i.fillRect(o+2*n.pix,a+.5*p-5*n.pix,10*n.pix,10*n.pix);break;default:i.moveTo(o,a+.5*p-5*n.pix),i.fillRect(o,a+.5*p-5*n.pix,15*n.pix,10*n.pix)}i.closePath(),i.fill()}})),e.forEach((function(e,n){var r=t.x+g+2*d+p+h;v&&(r=t.x-m-g+2*d+p+h);var o=t.y+f*n+(f-l)/2-1+d+l;i.beginPath(),i.setFontSize(l),i.setTextBaseline("normal"),i.setFillStyle(c.fontColor),i.fillText(e.text,r,o),i.closePath(),i.stroke()}))}}function we(e,t,n,r,i,o){var a=e.extra.tooltip||{};a.horizentalLine&&e.tooltip&&1===r&&("line"==e.type||"area"==e.type||"column"==e.type||"mount"==e.type||"candle"==e.type||"mix"==e.type)&&ye(e,t,n),n.save(),e._scrollDistance_&&0!==e._scrollDistance_&&!0===e.enableScroll&&n.translate(e._scrollDistance_,0),e.tooltip&&e.tooltip.textList&&e.tooltip.textList.length&&1===r&&xe(e.tooltip.textList,e.tooltip.offset,e,t,n),n.restore()}function Se(e,t,n,r){var i=t.chartData.xAxisData,o=i.xAxisPoints,a=i.startX,s=i.endX,c=i.eachSpacing,u="center";"bar"!=t.type&&"line"!=t.type&&"area"!=t.type&&"scatter"!=t.type&&"bubble"!=t.type||(u=t.xAxis.boundaryGap);var l=t.height-t.area[2],f=t.area[0];if(t.enableScroll&&t.xAxis.scrollShow){var d=t.height-t.area[2]+n.xAxisHeight,p=s-a,h=c*(o.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),h+=(t.extra.mount.widthRatio-1)*c);var g=p*p/h,v=0;t._scrollDistance_&&(v=-t._scrollDistance_*p/h),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),r.moveTo(a,d),r.lineTo(s,d),r.stroke(),r.closePath(),r.beginPath(),r.setLineCap("round"),r.setLineWidth(6*t.pix),r.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),r.moveTo(a+v,d),r.lineTo(a+v+g,d),r.stroke(),r.closePath(),r.setLineCap("butt")}if(r.save(),t._scrollDistance_&&0!==t._scrollDistance_&&r.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),o.forEach((function(e,n){n>0&&(r.beginPath(),r.moveTo(e-c/2,l),r.lineTo(e-c/2,l+3*t.pix),r.closePath(),r.stroke())}))),!0!==t.xAxis.disableGrid&&(r.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),r.setLineCap("butt"),r.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&r.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,o.forEach((function(e,n){n%t.xAxis.gridEval==0&&(r.beginPath(),r.moveTo(e,l),r.lineTo(e,f),r.stroke())})),r.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 m=Math.ceil(e.length/y),x=[],w=e.length,S=0;S=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1&&(r.beginPath(),r.setFontSize(A),r.setFillStyle(t.xAxis.fontColor||t.fontColor),r.fillText(String(i),o[n]+a,l+t.xAxis.marginTop*t.pix+(t.xAxis.lineHeight-t.xAxis.fontSize)*t.pix/2+t.xAxis.fontSize*t.pix),r.closePath(),r.stroke())})):x.forEach((function(e,i){var a=t.xAxis.formatter?t.xAxis.formatter(e):e,s=t._scrollDistance_||0,f="center"==u?o[i]+c/2:o[i];if(f-Math.abs(s)>=t.area[3]-1&&f-Math.abs(s)<=t.width-t.area[1]+1){r.save(),r.beginPath(),r.setFontSize(A),r.setFillStyle(t.xAxis.fontColor||t.fontColor);var d=b(String(a),A,r),p=o[i];"center"==u&&(p=o[i]+c/2);t.xAxis.scrollShow&&6*t.pix;var h=l+t.xAxis.marginTop*t.pix+A-A*Math.abs(Math.sin(n._xAxisTextAngle_));t.xAxis.rotateAngle<0?(p-=A/2,d=0):(p+=A/2,d=-d),r.translate(p,h),r.rotate(-1*n._xAxisTextAngle_),r.fillText(String(a),d,0),r.closePath(),r.stroke(),r.restore()}}))}r.restore(),t.xAxis.title&&(r.beginPath(),r.setFontSize(t.xAxis.titleFontSize*t.pix),r.setFillStyle(t.xAxis.titleFontColor),r.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),r.closePath(),r.stroke()),t.xAxis.axisLine&&(r.beginPath(),r.setStrokeStyle(t.xAxis.axisLineColor),r.setLineWidth(1*t.pix),r.moveTo(a,t.height-t.area[2]),r.lineTo(s,t.height-t.area[2]),r.stroke())}function Ae(e,t,n,r){if(!0!==t.yAxis.disableGrid){var i=t.height-t.area[0]-t.area[2],o=i/t.yAxis.splitNumber,a=t.area[3],s=t.chartData.xAxisData.xAxisPoints,c=t.chartData.xAxisData.eachSpacing,u=c*(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),u+=(t.extra.mount.widthRatio-1)*c);var l=a+u,f=[],d=1;!1===t.xAxis.axisLine&&(d=0);for(var p=d;p4&&void 0!==arguments[4]?arguments[4]:1,o=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),a={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==n.pieChartLinePadding&&(n.pieChartLinePadding=o.activeRadius*t.pix);var c=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);c=c<10?10:c,o.customRadius>0&&(c=o.customRadius*t.pix),e=L(e,c,i);var l=o.activeRadius*t.pix;if(o.customColor=y(o.linearType,o.customColor,e,n),e=e.map((function(e){return e._start_+=o.offsetAngle*Math.PI/180,e})),e.forEach((function(e,n){t.tooltip&&t.tooltip.index==n&&(r.beginPath(),r.setFillStyle(u(e.color,o.activeOpacity||.5)),r.moveTo(a.x,a.y),r.arc(a.x,a.y,e._radius_+l,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill()),r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.lineJoin="round",r.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=r.createCircularGradient?r.createCircularGradient(a.x,a.y,e._radius_):r.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,u(o.customColor[e.linearIndex],1)),i.addColorStop(1,u(e.color,1)),s=i);r.setFillStyle(s),r.moveTo(a.x,a.y),r.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),r.closePath(),r.fill(),1==o.border&&r.stroke()})),"ring"===t.type){var f=.6*c;"number"===typeof o.ringWidth&&o.ringWidth>0&&(f=Math.max(0,c-o.ringWidth*t.pix)),r.beginPath(),r.setFillStyle(o.centerColor),r.moveTo(a.x,a.y),r.arc(a.x,a.y,f,0,2*Math.PI),r.closePath(),r.fill()}return!1!==t.dataLabel&&1===i&&ge(e,t,n,r,0,a),1===i&&"ring"===t.type&&ce(t,n,r,a),{center:a,radius:c,series:e}}function Te(e,t){var n=Array(2),r=20037508.34*e/180,i=Math.log(Math.tan((90+t)*Math.PI/360))/(Math.PI/180);return i=20037508.34*i/180,n[0]=r,n[1]=i,n}function Oe(e,t,n,r,i,o){return{x:(t-n.xMin)*r+i,y:(n.yMax-e)*r+o}}function Ce(e,t,n){if(t[1]==n[1])return!1;if(t[1]>e[1]&&n[1]>e[1])return!1;if(t[1]e[1])return!1;if(n[1]==e[1]&&t[1]>e[1])return!1;if(t[0]t[o].area[2]||e[1]>t[o].area[3]||e[2]n||e[3]>r){i=!0;break}i=!1}return i}function je(e,t,n){var r=e.series;switch(t){case"normal":for(var i=0;i.7},h=0;h0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,o=0;ot.width-t.area[1]-t.area[3]?(d.push(g),h.push(p-t.legend.itemGap*t.pix),p=x,g=[y]):(p+=x,g.push(y))}if(g.length){d.push(g),h.push(p-t.legend.itemGap*t.pix),o.widthArr=h;var w=Math.max.apply(null,h);switch(t.legend.float){case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+w+2*a;break;case"right":o.area.start.x=t.width-t.area[1]-w-2*a,o.area.end.x=t.width-t.area[1];break;default:o.area.start.x=(t.width-w)/2-a,o.area.end.x=(t.width+w)/2+a}o.area.width=w+2*a,o.area.wholeWidth=w+2*a,o.area.height=d.length*f+2*a,o.area.wholeHeight=d.length*f+2*a+2*s,o.points=d}}else{var S=e.length,A=t.height-t.area[0]-t.area[2]-2*s-2*a,_=Math.min(Math.floor(A/f),S);switch(o.area.height=_*f+2*a,o.area.wholeHeight=_*f+2*a,t.legend.float){case"top":o.area.start.y=t.area[0]+s,o.area.end.y=t.area[0]+s+o.area.height;break;case"bottom":o.area.start.y=t.height-t.area[2]-s-o.area.height,o.area.end.y=t.height-t.area[2]-s;break;default:o.area.start.y=(t.height-o.area.height)/2,o.area.end.y=(t.height+o.area.height)/2}for(var P=S%_===0?S/_:Math.floor(S/_+1),k=[],T=0;TM&&(M=j)}o.widthArr.push(M),o.heightArr.push(I.length*f+2*a)}for(var D=0,B=0;B0?I[Ce].width+t.yAxis.padding*t.pix:I[Ce].width,xe+=1):"right"==I[Ce].position&&(t.area[1]+=ye>0?I[Ce].width+t.yAxis.padding*t.pix:I[Ce].width,ye+=1)}else n.yAxisWidth=I;if(t.chartData.yAxisData=O,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=G(t.categories,t);var Ie=j(t.categories,t,0,t.chartData.xAxisData.eachSpacing,r),Me=Ie.xAxisHeight,Ee=Ie.angle;n.xAxisHeight=Me,n._xAxisTextAngle_=Ee,t.area[2]+=Me,t.chartData.categoriesData=Ie}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=D(l,t,n,r),f=t.chartData.xAxisData.rangesFormat;var Fe=j(f,t,0,t.chartData.xAxisData.eachSpacing,r),Ne=Fe.xAxisHeight,Re=Fe.angle;n.xAxisHeight=Ne,n._xAxisTextAngle_=Re,t.area[2]+=Ne,t.chartData.categoriesData=Fe}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var ze,Ue=t.chartData.xAxisData.xAxisPoints,qe=t.chartData.xAxisData.startX,We=t.chartData.xAxisData.endX,Qe=t.chartData.xAxisData.eachSpacing,He=Qe*(Ue.length-1),Ve=We-qe;ze=Ve-He,a.scrollOption.currentOffset=ze,a.scrollOption.startTouchX=ze,a.scrollOption.distance=0,a.scrollOption.lastMoveTime=0,t._scrollDistance_=ze}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(n._pieTextMaxLength_=!1===t.dataLabel?0:function(e,t,n,r){e=L(e);for(var i=0,o=0;o4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=je(t,o.type,r)),r.beginPath(),r.setFillStyle(t.background),r.rect(0,0,t.width,t.height),r.fill(),r.save();var a=t.chartData.wordCloudData;r.translate(t.width/2,t.height/2);for(var c=0;c0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(u,(a[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].areav[1]+5+l-t.height/2)*i):r.fillText(u,(a[c].areav[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].areav[1]+5+l-t.height/2)*i)):a[c].area[0]>0&&(t.tooltip&&t.tooltip.index==c?r.strokeText(u,(a[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].area[1]+5+l-t.height/2)*i):r.fillText(u,(a[c].area[0]+5-t.width/2)*i-f*(1-i)/2,(a[c].area[1]+5+l-t.height/2)*i)),r.stroke(),r.restore()}r.restore()}(l,t,n,r,e),Le(0,r)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"map":r.clearRect(0,0,t.width,t.height),function(e,t,n,r){var i,o,a=s({},{border:!0,mercator:!1,borderWidth:1,active:!0,borderColor:"#666666",fillOpacity:.6,activeBorderColor:"#f04864",activeFillColor:"#facc14",activeFillOpacity:1},t.extra.map),c=e,l=function(e){for(var t,n={xMin:180,xMax:0,yMin:90,yMax:0},r=0;ru.x?n.xMax:u.x,n.yMin=n.yMinu.y?n.yMax:u.y}}return n}(c);if(a.mercator){var f=Te(l.xMax,l.yMax),d=Te(l.xMin,l.yMin);l.xMax=f[0],l.yMax=f[1],l.xMin=d[0],l.yMin=d[1]}for(var p=t.width/Math.abs(l.xMax-l.xMin),h=t.height/Math.abs(l.yMax-l.yMin),g=p4&&void 0!==arguments[4]?arguments[4]:1,o=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),a=(t.height-t.area[0]-t.area[2])/e.length,c={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},l=o.activeWidth*t.pix,f=Math.min((t.width-t.area[1]-t.area[3])/2-l,(t.height-t.area[0]-t.area[2])/2-l),d=F(e,f,o,a,i);if(r.save(),r.translate(c.x,c.y),o.customColor=y(o.linearType,o.customColor,e,n),"pyramid"==o.type)for(var p=0;p4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",width:2,activeType:"none",linearType:"none",onShadow:!1,animation:"vertical"},t.extra.line);o.width*=t.pix;var a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=[];r.save();var d=0,h=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),d=-t._scrollDistance_-2*l+t.area[3],h=d+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,g,v;r.beginPath(),r.setStrokeStyle(e.color),r.moveTo(-1e4,-1e4),r.lineTo(-10001,-10001),r.stroke(),s=[].concat(t.chartData.yAxisData.ranges[e.index]),g=s.pop(),v=s.shift();var y=e.data,m=K(y,g,v,c,l,t,n,o,i);f.push(m);var b=E(m,e);if("dash"==e.lineType){var x=e.dashLength?e.dashLength:8;x*=t.pix,r.setLineDash([x,x])}r.beginPath();var w=e.color;if("none"!==o.linearType&&e.linearColor&&e.linearColor.length>0){for(var S=r.createLinearGradient(t.chartData.xAxisData.startX,t.height/2,t.chartData.xAxisData.endX,t.height/2),A=0;A0?r.setShadow(e.setShadow[0],e.setShadow[1],e.setShadow[2],e.setShadow[3]):r.setShadow(0,0,0,"rgba(0,0,0,0)"),r.setLineWidth(o.width),b.forEach((function(e,t){if(1===e.length)r.moveTo(e[0].x,e[0].y);else{r.moveTo(e[0].x,e[0].y);var n=0;if("curve"===o.type)for(var i=0;id&&(r.moveTo(a.x,a.y),n=1),i>0&&a.x>d&&a.xd&&(r.moveTo(u.x,u.y),n=1),c>0&&u.x>d&&u.xd&&(r.moveTo(f.x,f.y),n=1),l>0&&f.x>d&&f.x4&&void 0!==arguments[4]?arguments[4]:1,o=(s({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),a=o.xAxisPoints,c=o.eachSpacing,u=[];r.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),-t._scrollDistance_-2*c+t.area[3],t.xAxis.itemCount),e.forEach((function(e,o){var s,u,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),u=s.pop(),l=s.shift();var f=e.data,d=J(f,u,l,a,c,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setFillStyle(e.color),r.setLineWidth(1*t.pix);var p=e.pointShape;if("diamond"===p)d.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y),r.lineTo(e.x,e.y+4.5),r.lineTo(e.x+4.5,e.y),r.lineTo(e.x,e.y-4.5))}));else if("circle"===p)d.forEach((function(e,n){null!==e&&(r.moveTo(e.x+2.5*t.pix,e.y),r.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===p)d.forEach((function(e,t){null!==e&&(r.moveTo(e.x-3.5,e.y-3.5),r.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===p)d.forEach((function(e,t){null!==e&&(r.moveTo(e.x,e.y-4.5),r.lineTo(e.x-4.5,e.y+4.5),r.lineTo(e.x+4.5,e.y+4.5),r.lineTo(e.x,e.y-4.5))}));else if("triangle"===p)return;r.closePath(),r.fill(),r.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var s,u,l;s=[].concat(t.chartData.yAxisData.ranges[e.index]),u=s.pop(),l=s.shift();var f=e.data,d=J(f,u,l,a,c,t,n,i);ue(d,e,n,r,t)})),r.restore(),{xAxisPoints:a,calPoints:u,eachSpacing:c}}(l,t,n,r,e),o=i.xAxisPoints,a=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=c,_e(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Pe(t.series,t,n,r,t.chartData),we(t,n,r,e),Le(0,r)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&oe(r,t),Ae(0,t,0,r),Se(f,t,n,r);var i=function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{opacity:1,border:2},t.extra.bubble),a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=[];r.save();return t.width,t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),-t._scrollDistance_-2*l+t.area[3],t.xAxis.itemCount),e.forEach((function(e,a){var s,f,d;s=[].concat(t.chartData.yAxisData.ranges[e.index]),f=s.pop(),d=s.shift();var p=e.data,h=J(p,f,d,c,l,t,n,i);r.beginPath(),r.setStrokeStyle(e.color),r.setLineWidth(o.border*t.pix),r.setFillStyle(u(e.color,o.opacity)),h.forEach((function(e,n){r.moveTo(e.x+e.r,e.y),r.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),r.closePath(),r.fill(),r.stroke(),!1!==t.dataLabel&&1===i&&h.forEach((function(i,o){r.beginPath();var a=e.textSize*t.pix||n.fontSize;r.setFontSize(a),r.setFillStyle(e.textColor||"#FFFFFF"),r.setTextAlign("center"),r.fillText(String(i.t),i.x,i.y+a/2),r.closePath(),r.stroke(),r.setTextAlign("left")}))})),r.restore(),{xAxisPoints:c,calPoints:f,eachSpacing:l}}(l,t,n,r,e),o=i.xAxisPoints,a=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=c,_e(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Pe(t.series,t,n,r,t.chartData),we(t,n,r,e),Le(0,r)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&oe(r,t),Ae(0,t,0,r),Se(f,t,n,r);var o=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{width:l/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),d=s({},{opacity:.2,gradient:!1},t.extra.mix.area),h=s({},{width:2},t.extra.mix.line),g=t.height-t.area[2],v=[],m=0,b=0;e.forEach((function(e,t){"column"==e.type&&(b+=1)})),r.save();var x=-2,w=c.length+2,S=0,A=t.width+l;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),x=Math.floor(-t._scrollDistance_/l)-2,w=x+t.xAxis.itemCount+4,S=-t._scrollDistance_-2*l+t.area[3],A=S+(t.xAxis.itemCount+4)*l),f.customColor=y(f.linearType,f.customColor,e,n),e.forEach((function(e,a){var s,y,_;s=[].concat(t.chartData.yAxisData.ranges[e.index]),y=s.pop(),_=s.shift();var P=e.data,k=J(P,y,_,c,l,t,n,o);if(v.push(k),"column"==e.type){k=q(k,l,b,m,0,t);for(var T=0;Tx&&TW?W:N,R=R>W?W:R,z=z>W?W:z,U=U>W?W:U,N=N<0?0:N,R=R<0?0:R,z=z<0?0:z,U=U<0?0:U,r.arc(D+N,B+N,N,-Math.PI,-Math.PI/2),r.arc(D+L-R,B+R,R,-Math.PI/2,0),r.arc(D+L-z,B+F-z,z,0,Math.PI/2),r.arc(D+U,B+F-U,U,Math.PI/2,Math.PI)}else r.moveTo(C,O.y),r.lineTo(C+O.width,O.y),r.lineTo(C+O.width,t.height-t.area[2]),r.lineTo(C,t.height-t.area[2]),r.lineTo(C,O.y),r.setLineWidth(1),r.setStrokeStyle(M);r.setFillStyle(I),r.closePath(),r.fill()}}m+=1}if("area"==e.type)for(var Q=E(k,e),H=0;H1){var Y=V[0],K=V[V.length-1];r.moveTo(Y.x,Y.y);var X=0;if("curve"===e.style)for(var Z=0;ZS&&(r.moveTo(ee.x,ee.y),X=1),Z>0&&ee.x>S&&ee.xS&&(r.moveTo(re.x,re.y),X=1),ne>0&&re.x>S&&re.xS&&(r.moveTo(c.x,c.y),a=1),s>0&&c.x>S&&c.xS&&(r.moveTo(f.x,f.y),a=1),l>0&&f.x>S&&f.x4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=s({},{type:"group",width:l/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0,labelPosition:"outside"},t.extra.column),d=[];r.save();var p=-2,h=c.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),p=Math.floor(-t._scrollDistance_/l)-2,h=p+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&me(t.tooltip.offset.x,t,0,r,l),f.customColor=y(f.linearType,f.customColor,e,n),e.forEach((function(a,s){var g,v,y;g=[].concat(t.chartData.yAxisData.ranges[a.index]),v=g.pop(),y=g.shift();var m=t.height-t.area[0]-t.area[2],b=m*(0-v)/(y-v),x=t.height-Math.round(b)-t.area[2];a.zeroPoints=x;var w=a.data;switch(f.type){case"group":var S=X(w,v,y,c,l,t,n,x,o),A=te(w,v,y,c,l,t,n,s,e,o);d.push(A),S=q(S,l,e.length,s,0,t);for(var _=0;_p&&_x?x:P.y,j=P.width,D=Math.abs(x-P.y);f.barBorderCircle&&(f.barBorderRadius=[j/2,j/2,0,0]),P.y>x&&(f.barBorderRadius=[0,0,j/2,j/2]);var B=(0,i.default)(f.barBorderRadius,4),L=B[0],F=B[1],$=B[2],N=B[3],R=Math.min(j/2,D/2);L=L>R?R:L,F=F>R?R:F,$=$>R?R:$,N=N>R?R:N,L=L<0?0:L,F=F<0?0:F,$=$<0?0:$,N=N<0?0:N,r.arc(M+L,E+L,L,-Math.PI,-Math.PI/2),r.arc(M+j-F,E+F,F,-Math.PI/2,0),r.arc(M+j-$,E+D-$,$,0,Math.PI/2),r.arc(M+N,E+D-N,N,Math.PI/2,Math.PI)}else r.moveTo(k,P.y),r.lineTo(k+P.width,P.y),r.lineTo(k+P.width,x),r.lineTo(k,x),r.lineTo(k,P.y),r.setLineWidth(1),r.setStrokeStyle(C);r.setFillStyle(O),r.closePath(),r.fill()}}break;case"stack":S=te(w,v,y,c,l,t,n,s,e,o);d.push(S),S=H(S,l,e.length,0,0,t);for(var z=0;zp&&z0&&(T-=W),r.setFillStyle(O),r.moveTo(k,U.y),r.fillRect(k,U.y,U.width,T),r.closePath(),r.fill()}}break;case"meter":S=J(w,v,y,c,l,t,n,o);d.push(S),S=Q(S,l,e.length,s,0,t,f.meterBorder);for(var V=0;Vp&&V0&&(r.setStrokeStyle(a.color),r.setLineWidth(f.meterBorder*t.pix)),0==s?r.setFillStyle(f.meterFillColor):r.setFillStyle(G.color||a.color);k=G.x-G.width/2,T=t.height-G.y-t.area[2];if(f.barBorderRadius&&4===f.barBorderRadius.length||!0===f.barBorderCircle){var Y=k,K=G.y,Z=G.width,ee=x-G.y;f.barBorderCircle&&(f.barBorderRadius=[Z/2,Z/2,0,0]);var ne=(0,i.default)(f.barBorderRadius,4),re=ne[0],ie=ne[1],oe=ne[2],ae=ne[3],se=Math.min(Z/2,ee/2);re=re>se?se:re,ie=ie>se?se:ie,oe=oe>se?se:oe,ae=ae>se?se:ae,re=re<0?0:re,ie=ie<0?0:ie,oe=oe<0?0:oe,ae=ae<0?0:ae,r.arc(Y+re,K+re,re,-Math.PI,-Math.PI/2),r.arc(Y+Z-ie,K+ie,ie,-Math.PI/2,0),r.arc(Y+Z-oe,K+ee-oe,oe,0,Math.PI/2),r.arc(Y+ae,K+ee-ae,ae,Math.PI/2,Math.PI),r.fill()}else r.moveTo(k,G.y),r.lineTo(k+G.width,G.y),r.lineTo(k+G.width,x),r.lineTo(k,x),r.lineTo(k,G.y),r.fill();0==s&&f.meterBorder>0&&(r.closePath(),r.stroke())}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(i,a){var s,u,d;s=[].concat(t.chartData.yAxisData.ranges[i.index]),u=s.pop(),d=s.shift();var p=i.data;switch(f.type){case"group":var h=X(p,u,d,c,l,t,n,o);h=q(h,l,e.length,a,0,t),le(h,i,n,r,t);break;case"stack":h=te(p,u,d,c,l,t,n,a,e,o);le(h,i,n,r,t);break;case"meter":h=J(p,u,d,c,l,t,n,o);le(h,i,n,r,t);break}})),r.restore(),{xAxisPoints:c,calPoints:d,eachSpacing:l}}(l,t,n,r,e),a=o.xAxisPoints,c=o.calPoints,d=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=c,t.chartData.eachSpacing=d,_e(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Pe(t.series,t,n,r,t.chartData),we(t,n,r,e),Le(0,r)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&oe(r,t),Ae(0,t,0,r),Se(f,t,n,r);var o=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.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,r.save();var d,p,h,g=-2,v=c.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),g=Math.floor(-t._scrollDistance_/l)-2,v=g+t.xAxis.itemCount+4),f.customColor=y(f.linearType,f.customColor,e,n),d=[].concat(t.chartData.yAxisData.ranges[0]),p=d.pop(),h=d.shift();var m=t.height-t.area[0]-t.area[2],b=m*(0-p)/(h-p),x=t.height-Math.round(b)-t.area[2],w=Z(e,p,h,c,l,t,f,x,o);switch(f.type){case"bar":for(var S=0;Sg&&Sx?x:A.y,M=A.width,E=Math.abs(x-A.y);f.barBorderCircle&&(f.barBorderRadius=[M/2,M/2,0,0]),A.y>x&&(f.barBorderRadius=[0,0,M/2,M/2]);var j=(0,i.default)(f.barBorderRadius,4),D=j[0],B=j[1],L=j[2],F=j[3],$=Math.min(M/2,E/2);D=D>$?$:D,B=B>$?$:B,L=L>$?$:L,F=F>$?$:F,D=D<0?0:D,B=B<0?0:B,L=L<0?0:L,F=F<0?0:F,r.arc(C+D,I+D,D,-Math.PI,-Math.PI/2),r.arc(C+M-B,I+B,B,-Math.PI/2,0),r.arc(C+M-L,I+E-L,L,0,Math.PI/2),r.arc(C+F,I+E-F,F,Math.PI/2,Math.PI)}else r.moveTo(_,A.y),r.lineTo(_+A.width,A.y),r.lineTo(_+A.width,x),r.lineTo(_,x),r.lineTo(_,A.y);r.setStrokeStyle(T),r.setFillStyle(k),f.borderWidth>0&&(r.setLineWidth(f.borderWidth*t.pix),r.closePath(),r.stroke()),r.fill()}}break;case"triangle":for(var N=0;Ng&&N0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break;case"mount":for(var z=0;zg&&z0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break;case"sharp":for(var q=0;qg&&q0&&(r.setLineWidth(f.borderWidth*t.pix),r.stroke()),r.fill()}}break}if(!1!==t.dataLabel&&1===o){var Q,H,V;Q=[].concat(t.chartData.yAxisData.ranges[0]),H=Q.pop(),V=Q.shift();w=Z(e,H,V,c,l,t,f,x,o);fe(w,e,n,r,t,x)}return r.restore(),{xAxisPoints:c,calPoints:w,eachSpacing:l}}(l,t,n,r,e),a=o.xAxisPoints,c=o.calPoints,d=o.eachSpacing;t.chartData.xAxisPoints=a,t.chartData.calPoints=c,t.chartData.eachSpacing=d,_e(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Pe(t.series,t,n,r,t.chartData),we(t,n,r,e),Le(0,r)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new $e({timing:t.timing,duration:g,onProcess:function(e){r.clearRect(0,0,t.width,t.height),t.rotate&&oe(r,t),Se(f,t,n,r);var o=function(e,t,n,r){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],c=(t.height-t.area[0]-t.area[2])/t.categories.length,l=0;lp&&wF?F:j,D=D>F?F:D,B=B>F?F:B,L=L>F?F:L,j=j<0?0:j,D=D<0?0:D,B=B<0?0:B,L=L<0?0:L,r.arc(O+L,I+L,L,-Math.PI,-Math.PI/2),r.arc(S.x-j,I+j,j,-Math.PI/2,0),r.arc(S.x-D,I+C-D,D,0,Math.PI/2),r.arc(O+B,I+C-B,B,Math.PI/2,Math.PI)}else r.moveTo(A,_),r.lineTo(S.x,_),r.lineTo(S.x,_+S.width),r.lineTo(A,_+S.width),r.lineTo(A,_),r.setLineWidth(1),r.setStrokeStyle(k);r.setFillStyle(P),r.closePath(),r.fill()}}break;case"stack":b=ne(m,v,y,a,c,t,n,l,e,o);d.push(b),b=V(b,c,e.length,0,0,t);for(var $=0;$p&&$4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1,activeType:"none"},t.extra.area),a=t.chartData.xAxisData,c=a.xAxisPoints,l=a.eachSpacing,f=t.height-t.area[2],d=[];r.save();var h=0,g=t.width+l;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(r.translate(t._scrollDistance_,0),h=-t._scrollDistance_-2*l+t.area[3],g=h+(t.xAxis.itemCount+4)*l),e.forEach((function(e,a){var s,v,y;s=[].concat(t.chartData.yAxisData.ranges[e.index]),v=s.pop(),y=s.shift();var m=e.data,b=J(m,v,y,c,l,t,n,i);d.push(b);for(var x=E(b,e),w=0;w1){var _=S[0],P=S[S.length-1];r.moveTo(_.x,_.y);var k=0;if("curve"===o.type)for(var T=0;Th&&(r.moveTo(O.x,O.y),k=1),T>0&&O.x>h&&O.xh&&(r.moveTo(M.x,M.y),k=1),I>0&&M.x>h&&M.xh&&(r.moveTo(D.x,D.y),k=1),j>0&&D.x>h&&D.xh&&(r.moveTo(N.x,N.y),F=1),$>0&&N.x>h&&N.xh&&(r.moveTo(U.x,U.y),F=1),z>0&&U.x>h&&U.xh&&(r.moveTo(W.x,W.y),F=1),q>0&&W.x>h&&W.x4&&void 0!==arguments[4]?arguments[4]:1,o=s({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==n.pieChartLinePadding&&(n.pieChartLinePadding=o.activeRadius*t.pix);var a={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},c=Math.min((t.width-t.area[1]-t.area[3])/2-n.pieChartLinePadding-n.pieChartTextPadding-n._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-n.pieChartLinePadding-n.pieChartTextPadding);c=c<10?10:c;var l=o.minRadius||.5*c;c4&&void 0!==arguments[4]?arguments[4]:1,o=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),a=P(t.categories.length),c={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=(t.width-t.area[1]-t.area[3])/2,f=(t.height-t.area[0]-t.area[2])/2,d=Math.min(l-(_(t.categories,n.fontSize,r)+n.radarLabelTextMargin),f-n.radarLabelTextMargin);d-=n.radarLabelTextMargin*t.pix,d=d<10?10:d,d=o.radius?o.radius:d,r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.gridColor),a.forEach((function(e,t){var n=h(d*Math.cos(e),d*Math.sin(e),c);r.moveTo(c.x,c.y),t%o.gridEval==0&&r.lineTo(n.x,n.y)})),r.stroke(),r.closePath();for(var p=function(e){var n={};if(r.beginPath(),r.setLineWidth(1*t.pix),r.setStrokeStyle(o.gridColor),"radar"==o.gridType)a.forEach((function(t,i){var a=h(d/o.gridCount*e*Math.cos(t),d/o.gridCount*e*Math.sin(t),c);0===i?(n=a,r.moveTo(a.x,a.y)):r.lineTo(a.x,a.y)})),r.lineTo(n.x,n.y);else{var i=h(d/o.gridCount*e*Math.cos(1.5),d/o.gridCount*e*Math.sin(1.5),c);r.arc(c.x,c.y,c.y-i.y,0,2*Math.PI,!1)}r.stroke(),r.closePath()},g=1;g<=o.gridCount;g++)p(g);o.customColor=y(o.linearType,o.customColor,e,n);var v=B(a,c,d,e,t,i);if(v.forEach((function(n,i){r.beginPath(),r.setLineWidth(o.borderWidth*t.pix),r.setStrokeStyle(n.color);var a,s=u(n.color,o.opacity);"custom"==o.linearType&&(a=r.createCircularGradient?r.createCircularGradient(c.x,c.y,d):r.createRadialGradient(c.x,c.y,0,c.x,c.y,d),a.addColorStop(0,u(o.customColor[e[i].linearIndex],o.opacity)),a.addColorStop(1,u(n.color,o.opacity)),s=a);if(r.setFillStyle(s),n.data.forEach((function(e,t){0===t?r.moveTo(e.position.x,e.position.y):r.lineTo(e.position.x,e.position.y)})),r.closePath(),r.fill(),!0===o.border&&r.stroke(),r.closePath(),!1!==t.dataPointShape){var l=n.data.map((function(e){return e.position}));ae(l,n.color,n.pointShape,r,t)}})),!0===o.axisLabel){var m=Math.max(o.max,Math.max.apply(null,x(e))),b=d/o.gridCount,w=t.fontSize*t.pix;r.setFontSize(w),r.setFillStyle(t.fontColor),r.setTextAlign("left");for(g=0;g4&&void 0!==arguments[4]?arguments[4]:1,c=s({},{startAngle:.75,endAngle:.25,type:"default",direction:"cw",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=N(e,c,a),i=c.centerX||c.centerY?{x:c.centerX?c.centerX:t.width/2,y:c.centerY?c.centerY:t.height/2}:{x:t.width/2,y:t.height/2},c.radius?o=c.radius:(o=Math.min(i.x,i.y),o-=5*t.pix,o-=c.width/2),o=o<10?10:o,c.customColor=y(c.linearType,c.customColor,e,n);for(var l=0;l5&&void 0!==arguments[5]?arguments[5]:1,a=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"}},n.extra.gauge);void 0==a.oldAngle&&(a.oldAngle=a.startAngle),void 0==a.oldData&&(a.oldData=0),e=z(e,a.startAngle,a.endAngle);var c={x:n.width/2,y:n.height/2},l=Math.min(c.x,c.y);l-=5*n.pix,l-=a.width/2,l=l<10?10:l;var f=l-a.width,d=0;if("progress"==a.type){var p=l-3*a.width;i.beginPath();var h=i.createLinearGradient(c.x,c.y-p,c.x,c.y+p);h.addColorStop("0",u(t[0].color,.3)),h.addColorStop("1.0",u("#FFFFFF",.1)),i.setFillStyle(h),i.arc(c.x,c.y,p,0,2*Math.PI,!1),i.fill(),i.setLineWidth(a.width),i.setStrokeStyle(u(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,a.startAngle*Math.PI,a.endAngle*Math.PI,!1),i.stroke(),d=a.endAnglex/m?i.setStrokeStyle(u(t[0].color,1)):i.setStrokeStyle(u(t[0].color,.3)),i.setLineWidth(3*n.pix),i.moveTo(v,0),i.lineTo(y,0),i.stroke(),i.rotate(g*Math.PI);i.restore(),t=R(t,a,o),i.setLineWidth(a.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(c.x,c.y,f,a.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var w=l-2.5*a.width;i.save(),i.translate(c.x,c.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(a.width/3);var S=i.createLinearGradient(0,.6*-w,0,.6*w);S.addColorStop("0",u("#FFFFFF",0)),S.addColorStop("0.5",u(t[0].color,1)),S.addColorStop("1.0",u("#FFFFFF",0)),i.setStrokeStyle(S),i.arc(0,0,w,.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(-w-a.width/3/2,-4),i.lineTo(-w-a.width/3/2-4,0),i.lineTo(-w-a.width/3/2,4),i.lineTo(-w-a.width/3/2,-4),i.stroke(),i.fill(),i.restore()}else{i.setLineWidth(a.width),i.setLineCap("butt");for(var A=0;A5&&void 0!==arguments[5]?arguments[5]:1,a=s({},{color:{},average:{}},n.extra.candle);a.color=s({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},a.color),a.average=s({},{show:!1,name:[],day:[],color:r.color},a.average),n.extra.candle=a;var c=n.chartData.xAxisData,u=c.xAxisPoints,l=c.eachSpacing,f=[];i.save();var d=-2,h=u.length+2,g=0,v=n.width+l;return n._scrollDistance_&&0!==n._scrollDistance_&&!0===n.enableScroll&&(i.translate(n._scrollDistance_,0),d=Math.floor(-n._scrollDistance_/l)-2,h=d+n.xAxis.itemCount+4,g=-n._scrollDistance_-2*l+n.area[3],v=g+(n.xAxis.itemCount+4)*l),(a.average.show||t)&&t.forEach((function(e,t){var a,s,c;a=[].concat(n.chartData.yAxisData.ranges[e.index]),s=a.pop(),c=a.shift();for(var f=e.data,d=J(f,s,c,u,l,n,r,o),h=E(d,e),y=0;yg&&(i.moveTo(w.x,w.y),b=1),x>0&&w.x>g&&w.xd&&m0?(i.setStrokeStyle(a.color.upLine),i.setFillStyle(a.color.upFill),i.setLineWidth(1*n.pix),i.moveTo(b[3].x,b[3].y),i.lineTo(b[1].x,b[1].y),i.lineTo(b[1].x-l/4,b[1].y),i.lineTo(b[0].x-l/4,b[0].y),i.lineTo(b[0].x,b[0].y),i.lineTo(b[2].x,b[2].y),i.lineTo(b[0].x,b[0].y),i.lineTo(b[0].x+l/4,b[0].y),i.lineTo(b[1].x+l/4,b[1].y),i.lineTo(b[1].x,b[1].y),i.moveTo(b[3].x,b[3].y)):(i.setStrokeStyle(a.color.downLine),i.setFillStyle(a.color.downFill),i.setLineWidth(1*n.pix),i.moveTo(b[3].x,b[3].y),i.lineTo(b[0].x,b[0].y),i.lineTo(b[0].x-l/4,b[0].y),i.lineTo(b[1].x-l/4,b[1].y),i.lineTo(b[1].x,b[1].y),i.lineTo(b[2].x,b[2].y),i.lineTo(b[1].x,b[1].y),i.lineTo(b[1].x+l/4,b[1].y),i.lineTo(b[0].x+l/4,b[0].y),i.lineTo(b[0].x,b[0].y),i.moveTo(b[3].x,b[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:u,calPoints:f,eachSpacing:l}}(l,m,t,n,r,e),o=i.xAxisPoints,a=i.calPoints,c=i.eachSpacing;t.chartData.xAxisPoints=o,t.chartData.calPoints=a,t.chartData.eachSpacing=c,_e(0,t,n,r),!1!==t.enableMarkLine&&1===e&&ve(t,0,r),Pe(m?0:t.series,t,n,r,t.chartData),we(t,n,r,e),Le(0,r)},onAnimationFinish:function(){a.uevent.trigger("renderComplete")}});break}}function Re(){this.events={}}$e.prototype.stop=function(){this.isStop=!0},Re.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},Re.prototype.delEventListener=function(e){this.events[e]=[]},Re.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),n=0;n0&&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 n=ie(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=G(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,c=o.startX,u=o.endX,l=o.eachSpacing,f=l*(a.length-1),d=u-c;i=d-f,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}Ne.call(this,this.opts.type,this.opts,this.config,this.context)},ze.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 n=ie(this.opts.series,this.opts,this.config,this.context),r=n.yAxisWidth;this.config.yAxisWidth=r;var i=0,o=G(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,c=o.endX,u=o.eachSpacing,l=u*t,d=c-s,p=d-u*(a.length-1);i=d/2-l,i>0&&(i=0),i=this.opts.categories.length?this.opts.categories.length:d,this.opts.animation=!1,this.opts.xAxis.itemCount=d;var p=0,h=G(this.opts.categories,this.opts,this.config),g=h.xAxisPoints,v=h.startX,y=h.endX,m=h.eachSpacing,b=m*this.scrollOption.moveCurrent1,x=y-v,w=x-m*(g.length-1);p=-b+Math.min(r[0].x,r[1].x)-this.opts.area[3]-m,p>0&&(p=0),p2*Math.PI&&(e-=2*Math.PI),e},a=Math.atan2(t.center.y-e.y,e.x-t.center.x);a*=-1,a<0&&(a+=2*Math.PI);var s=t.angleList.map((function(e){return e=o(-1*e),e}));s.forEach((function(e,t){var n=o(e-r/2),s=o(e+r/2);s=n&&a<=s||a+2*Math.PI>=n&&a+2*Math.PI<=s)&&(i=t)}))}return i}({x:n.x,y:n.y},this.opts.chartData.radarData,this.opts.categories.length):"funnel"===this.opts.type?function(e,t){for(var n=-1,r=0,i=t.series.length;ro.funnelArea[0]&&e.xo.funnelArea[1]&&e.yo.area[0]&&e.xo.area[1]&&e.y4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=n.chartData.eachSpacing/2,s=n.chartData.yAxisPoints;return t&&t.length>0&&I(e,n,r)&&s.forEach((function(t,n){e.y+i+a>t&&(o.index=n)})),o}({x:n.x,y:n.y},this.opts.chartData.calPoints,this.opts,this.config,Math.abs(this.scrollOption.currentOffset)):function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=n.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(n.categories){for(var c=1;ct&&(o.index=n)}));else{for(var u=Array(t.length),l=0;lt.start.x&&e.xt.start.y&&e.yl[0]-0&&e.xl[1]-0&&e.y1&&void 0!==arguments[1]?arguments[1]:{},n=null;if(n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n){S(n,this.opts,e);var r=this.getLegendDataIndex(e);r>=0&&("candle"==this.opts.type?this.opts.seriesMA[r].show=!this.opts.seriesMA[r].show:this.opts.series[r].show=!this.opts.series[r].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,Ne.call(this,this.opts.type,this.opts,this.config,this.context))}},ze.prototype.showToolTip=function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null;r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r||console.log("[uCharts] 未获取到event坐标信息");var i=S(r,this.opts,e),o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1});if("line"===this.opts.type||"area"===this.opts.type||"column"===this.opts.type||"scatter"===this.opts.type||"bubble"===this.opts.type){var c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){var l=A(this.opts.series,u,c.group);if(0!==l.length){var f=k(l,this.opts,u,c.group,this.opts.categories,n),d=f.textList,p=f.offset;p.y=i.y,a.tooltip={textList:void 0!==n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u,group:c.group}}}Ne.call(this,a.type,a,this.config,this.context)}if("mount"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e).index:n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},a._series_[u]),d=[{text:n.formatter?n.formatter(l,void 0,u,a):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:a.chartData.calPoints[u].x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}Ne.call(this,a.type,a,this.config,this.context)}if("bar"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1||u.length>0){l=A(this.opts.series,u,c.group);if(0!==l.length){f=k(l,this.opts,u,c.group,this.opts.categories,n),d=f.textList,p=f.offset;p.x=i.x,a.tooltip={textList:void 0!==n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}Ne.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),l=A(this.opts.series,u);if(0!==l.length){var h=T(l,this.opts,u,this.opts.categories,n);d=h.textList,p=h.offset;p.y=i.y,a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}Ne.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){c=this.getCurrentDataIndex(e),u=void 0==n.index?c.index:n.index;if(u>-1){o=this.scrollOption.currentOffset,a=s({},this.opts,{_scrollDistance_:o,animation:!1}),l=A(this.opts.series,u);if(0!==l.length){f=O(this.opts.series[0].data,l,this.opts,u,this.opts.categories,this.opts.extra.candle,n),d=f.textList,p=f.offset;p.y=i.y,a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}Ne.call(this,a.type,a,this.config,this.context)}if("pie"===this.opts.type||"ring"===this.opts.type||"rose"===this.opts.type||"funnel"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},a._series_[u]),d=[{text:n.formatter?n.formatter(l,void 0,u,a):l.name+": "+l.data,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}Ne.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},this.opts.series[u]);l.name=l.properties.name;d=[{text:n.formatter?n.formatter(l,void 0,u,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}a.updateData=!1,Ne.call(this,a.type,a,this.config,this.context)}if("word"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=s({},this.opts.series[u]),d=[{text:n.formatter?n.formatter(l,void 0,u,this.opts):l.name,color:l.color,legendShape:"auto"==this.opts.extra.tooltip.legendShape?l.legendShape:this.opts.extra.tooltip.legendShape}],p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}a.updateData=!1,Ne.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){u=void 0==n.index?this.getCurrentDataIndex(e):n.index;if(u>-1){a=s({},this.opts,{animation:!1}),l=A(this.opts.series,u);if(0!==l.length){d=l.map((function(e){return{text:n.formatter?n.formatter(e,t.opts.categories[u],u,t.opts):e.name+": "+e.data,color:e.color,legendShape:"auto"==t.opts.extra.tooltip.legendShape?e.legendShape:t.opts.extra.tooltip.legendShape}})),p={x:i.x,y:i.y};a.tooltip={textList:n.textList?n.textList:d,offset:void 0!==n.offset?n.offset:p,option:n,index:u}}}Ne.call(this,a.type,a,this.config,this.context)}},ze.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=s({},this.opts,{_scrollDistance_:e,animation:!1});Ne.call(this,this.opts.type,t,this.config,this.context)},ze.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var n=S(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=n.x)},ze.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,n=Date.now(),r=n-this.scrollOption.lastMoveTime;if(!(r1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(e).toPrecision(t))}function s(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function c(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=s(e);return t>0?a(Number(e)*Math.pow(10,t)):Number(e)}function u(e){o&&(e>Number.MAX_SAFE_INTEGER||e2)return l(t,f);var r=t[0],i=t[1],o=c(r),a=c(i),d=s(r)+s(i),p=o*a;return u(p),p/Math.pow(10,d)}function d(){for(var e=arguments.length,t=new Array(e),n=0;n2)return l(t,d);var r=t[0],i=t[1],o=Math.pow(10,Math.max(s(r),s(i)));return(f(r,o)+f(i,o))/o}function p(){for(var e=arguments.length,t=new Array(e),n=0;n2)return l(t,p);var r=t[0],i=t[1],o=Math.pow(10,Math.max(s(r),s(i)));return(f(r,o)-f(i,o))/o}function h(){for(var e=arguments.length,t=new Array(e),n=0;n2)return l(t,h);var r=t[0],i=t[1],o=c(r),d=c(i);return u(o),u(d),f(o/d,a(Math.pow(10,s(i)-s(r))))}function g(e,t){var n=Math.pow(10,t),r=h(Math.round(Math.abs(f(e,n))),n);return e<0&&0!==r&&(r=f(r,-1)),r}function v(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o=e}var y={times:f,plus:d,minus:p,divide:h,round:g,enableBoundaryChecking:v};t.default=y},"467f":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3b2d"));function o(e){return/^[\+-]?(\d+\.?\d*|\.\d+|\d\.\d+e\+\d+)$/.test(e)}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 s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e){return"function"===typeof e}var u={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([3589]\d|4[5-9]|6[1-2,4-7]|7[0-8])\d{8}$/.test(e)},url:function(e){return/^((https|http|ftp|rtsp|mms):\/\/)(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?(([0-9]{1,3}.){3}[0-9]{1,3}|([0-9a-zA-Z_!~*'()-]+.)*([0-9a-zA-Z][0-9a-zA-Z-]{0,61})?[0-9a-zA-Z].[a-zA-Z]{2,6})(:[0-9]{1,4})?((\/?)|(\/[0-9a-zA-Z_!~*'().;?:@&=+$,%#-]+)+\/?)$/.test(e)},date:function(e){return!!e&&(o(e)&&(e=+e),!/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:o,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(n){return!1}return!1},landline:function(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)},object:s,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:c,promise:function(e){return s(e)&&c(e.then)&&c(e.catch)},video:function(e){return/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i.test(e)},image:function(e){var t=e.split("?")[0];return/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i.test(t)},regExp:function(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)},string:function(e){return"string"===typeof e}};t.default=u},4721:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={indexList:{inactiveColor:"#606266",activeColor:"#5677fc",indexList:function(){return[]},sticky:!0,customNavHeight:0}}},"47a9":function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"47b2":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={modal:{show:!1,title:"",content:"",confirmText:"确认",cancelText:"取消",showConfirmButton:!0,showCancelButton:!1,confirmColor:"#2979ff",cancelColor:"#606266",buttonReverse:!1,zoom:!0,asyncClose:!1,closeOnClickOverlay:!1,negativeTop:0,width:"650rpx",confirmButtonShape:""}}},"491f":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{bgColor:{type:String,default:e.$u.props.statusBar.bgColor}}};t.default=n}).call(this,n("df3c")["default"])},4965:function(e,t){e.exports=function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"===typeof e}},e.exports.__esModule=!0,e.exports["default"]=e.exports},"4a26":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={avatar:{src:"",shape:"circle",size:40,mode:"scaleToFill",text:"",bgColor:"#c0c4cc",color:"#ffffff",fontSize:18,icon:"",mpAvatar:!1,randomBgColor:!1,defaultUrl:"",colorIndex:"",name:""}}},"4bb3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={toast:{zIndex:10090,loading:!1,text:"",icon:"",type:"",loadingMode:"",show:"",overlay:!1,position:"center",params:function(){},duration:2e3,isTab:!1,url:"",callback:null,back:!1}}},"4bb5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={auth:function(e){return e.auth.token},location:function(e){return e.location},ws:function(e){return e.ws},policy:function(e){return e.policy}};t.default=r},"4bd6":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{duration:{type:Number,default:e.$u.props.tabs.duration},list:{type:Array,default:e.$u.props.tabs.list},lineColor:{type:String,default:e.$u.props.tabs.lineColor},activeStyle:{type:[String,Object],default:e.$u.props.tabs.activeStyle},inactiveStyle:{type:[String,Object],default:e.$u.props.tabs.inactiveStyle},lineWidth:{type:[String,Number],default:e.$u.props.tabs.lineWidth},lineHeight:{type:[String,Number],default:e.$u.props.tabs.lineHeight},lineBgSize:{type:String,default:e.$u.props.tabs.lineBgSize},itemStyle:{type:[String,Object],default:e.$u.props.tabs.itemStyle},scrollable:{type:Boolean,default:e.$u.props.tabs.scrollable},current:{type:[Number,String],default:e.$u.props.tabs.current},keyName:{type:String,default:e.$u.props.tabs.keyName}}};t.default=n}).call(this,n("df3c")["default"])},"4cda":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={namespaced:!0,state:function(){return{is_buy:0,is_trusteeship:0,is_give:0,is_mianze:0}}(),mutations:{setBuy:function(e,t){e.is_buy=t},setTrusteeship:function(e,t){e.is_trusteeship=t},setGive:function(e,t){e.is_give=t},setMianze:function(e,t){e.is_mianze=t}},actions:{},getters:{}};t.default=r},"4ffb":function(e,t,n){var r=n("3b2d")["default"],i=n("3352");e.exports=function(e,t){if(t&&("object"===r(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},"511d":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{name:{type:String,default:e.$u.props.checkboxGroup.name},value:{type:Array,default:e.$u.props.checkboxGroup.value},shape:{type:String,default:e.$u.props.checkboxGroup.shape},disabled:{type:Boolean,default:e.$u.props.checkboxGroup.disabled},activeColor:{type:String,default:e.$u.props.checkboxGroup.activeColor},inactiveColor:{type:String,default:e.$u.props.checkboxGroup.inactiveColor},size:{type:[String,Number],default:e.$u.props.checkboxGroup.size},placement:{type:String,default:e.$u.props.checkboxGroup.placement},labelSize:{type:[String,Number],default:e.$u.props.checkboxGroup.labelSize},labelColor:{type:[String],default:e.$u.props.checkboxGroup.labelColor},labelDisabled:{type:Boolean,default:e.$u.props.checkboxGroup.labelDisabled},iconColor:{type:String,default:e.$u.props.checkboxGroup.iconColor},iconSize:{type:[String,Number],default:e.$u.props.checkboxGroup.iconSize},iconPlacement:{type:String,default:e.$u.props.checkboxGroup.iconPlacement},borderBottom:{type:Boolean,default:e.$u.props.checkboxGroup.borderBottom}}};t.default=n}).call(this,n("df3c")["default"])},"532e":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e&&!(0,i.default)(t))return(0,o.default)(e,t);return t};var i=r(n("81ce")),o=r(n("f61b"))},5431:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={textarea:{value:"",placeholder:"",placeholderClass:"textarea-placeholder",placeholderStyle:"color: #c0c4cc",height:70,confirmType:"done",disabled:!1,count:!1,focus:!1,autoHeight:!1,fixed:!1,cursorSpacing:0,cursor:"",showConfirmBar:!0,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,disableDefaultPadding:!1,holdKeyboard:!1,maxlength:140,border:"surround",formatter:null}}},"54a1":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{dashed:{type:Boolean,default:e.$u.props.divider.dashed},hairline:{type:Boolean,default:e.$u.props.divider.hairline},dot:{type:Boolean,default:e.$u.props.divider.dot},textPosition:{type:String,default:e.$u.props.divider.textPosition},text:{type:[String,Number],default:e.$u.props.divider.text},textSize:{type:[String,Number],default:e.$u.props.divider.textSize},textColor:{type:String,default:e.$u.props.divider.textColor},lineColor:{type:String,default:e.$u.props.divider.lineColor}}};t.default=n}).call(this,n("df3c")["default"])},5619:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={statusBar:{bgColor:"transparent"}}},5756:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),o=r(n("af34"));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof e&&e(),setTimeout((function(){r=!1}),t)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof e&&e()}),t))};t.default=i},"81ce":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},"826b":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("c277")),o=i.default;t.default=o},"828b":function(e,t,n){"use strict";function r(e,t,n,r,i,o,a,s,c,u){var l,f="function"===typeof e?e.options:e;if(c){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in c)d.call(c,p)&&!d.call(f.components,p)&&(f.components[p]=c[p])}if(u&&("function"===typeof u.beforeCreate&&(u.beforeCreate=[u.beforeCreate]),(u.beforeCreate||(u.beforeCreate=[])).unshift((function(){this[u.__module]=this})),(f.mixins||(f.mixins=[])).push(u)),t&&(f.render=t,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),a?(l=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(a)},f._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var h=f.render;f.render=function(e,t){return l.call(t),h(e,t)}}else{var g=f.beforeCreate;f.beforeCreate=g?[].concat(g,l):[l]}return{exports:e,options:f}}n.d(t,"a",(function(){return r}))},"82c3":function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{hairline:{type:Boolean,default:e.$u.props.button.hairline},type:{type:String,default:e.$u.props.button.type},size:{type:String,default:e.$u.props.button.size},shape:{type:String,default:e.$u.props.button.shape},plain:{type:Boolean,default:e.$u.props.button.plain},disabled:{type:Boolean,default:e.$u.props.button.disabled},loading:{type:Boolean,default:e.$u.props.button.loading},loadingText:{type:[String,Number],default:e.$u.props.button.loadingText},loadingMode:{type:String,default:e.$u.props.button.loadingMode},loadingSize:{type:[String,Number],default:e.$u.props.button.loadingSize},openType:{type:String,default:e.$u.props.button.openType},formType:{type:String,default:e.$u.props.button.formType},appParameter:{type:String,default:e.$u.props.button.appParameter},hoverStopPropagation:{type:Boolean,default:e.$u.props.button.hoverStopPropagation},lang:{type:String,default:e.$u.props.button.lang},sessionFrom:{type:String,default:e.$u.props.button.sessionFrom},sendMessageTitle:{type:String,default:e.$u.props.button.sendMessageTitle},sendMessagePath:{type:String,default:e.$u.props.button.sendMessagePath},sendMessageImg:{type:String,default:e.$u.props.button.sendMessageImg},showMessageCard:{type:Boolean,default:e.$u.props.button.showMessageCard},dataName:{type:String,default:e.$u.props.button.dataName},throttleTime:{type:[String,Number],default:e.$u.props.button.throttleTime},hoverStartTime:{type:[String,Number],default:e.$u.props.button.hoverStartTime},hoverStayTime:{type:[String,Number],default:e.$u.props.button.hoverStayTime},text:{type:[String,Number],default:e.$u.props.button.text},icon:{type:String,default:e.$u.props.button.icon},iconColor:{type:String,default:e.$u.props.button.icon},color:{type:String,default:e.$u.props.button.color}}};t.default=n}).call(this,n("df3c")["default"])},"841f":function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("34cf")),o=r(n("3b2d")),a=r(n("467f")),s=n("4312");function c(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==(0,o.default)(e))return e;if(n.has(e))return n.get(e);if(e instanceof Date)t=new Date(e.getTime());else if(e instanceof RegExp)t=new RegExp(e);else if(e instanceof Map)t=new Map(Array.from(e,(function(e){var t=(0,i.default)(e,2),r=t[0],o=t[1];return[r,c(o,n)]})));else if(e instanceof Set)t=new Set(Array.from(e,(function(e){return c(e,n)})));else if(Array.isArray(e))t=e.map((function(e){return c(e,n)}));else if("[object Object]"===Object.prototype.toString.call(e)){t=Object.create(Object.getPrototypeOf(e)),n.set(e,t);for(var r=0,a=Object.entries(e);r0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";e=t?/^\d{10}$/.test(null===t||void 0===t?void 0:t.toString().trim())?new Date(1e3*t):"string"===typeof t&&/^\d+$/.test(t.trim())?new Date(Number(t)):"string"===typeof t&&t.includes("-")&&!t.includes("T")?new Date(t.replace(/-/g,"/")):new Date(t):new Date;var r={y:e.getFullYear().toString(),m:(e.getMonth()+1).toString().padStart(2,"0"),d:e.getDate().toString().padStart(2,"0"),h:e.getHours().toString().padStart(2,"0"),M:e.getMinutes().toString().padStart(2,"0"),s:e.getSeconds().toString().padStart(2,"0")};for(var o in r){var a=new RegExp("".concat(o,"+")).exec(n)||[],s=(0,i.default)(a,1),c=s[0];if(c){var u="y"===o&&2===c.length?2:0;n=n.replace(c,r[o].slice(u))}}return n}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return e=String(e),"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}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 n=this;if(n.length>=e)return String(n);var r=e-n.length,i=Math.ceil(r/t.length);while(i>>=1)t+=t,1===i&&(t+=t);return t.slice(0,r)+n});var f={range:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(e,Math.min(t,Number(n)))},getPx:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return a.default.number(t)?n?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?n?"".concat(e.upx2px(parseInt(t)),"px"):Number(e.upx2px(parseInt(t))):n?"".concat(parseInt(t),"px"):parseInt(t)},sleep:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(t){setTimeout((function(){t()}),e)}))},os:function(){return e.getSystemInfoSync().platform.toLowerCase()},sys:function(){return e.getSystemInfoSync()},random:function(e,t){if(e>=0&&t>0&&t>=e){var n=t-e+1;return Math.floor(Math.random()*n+e)}return 0},guid:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(n=n||r.length,e)for(var o=0;o0&&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},addStyle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(a.default.empty(e)||"object"===(0,o.default)(e)&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=l(e);for(var n=e.split(";"),r={},i=0;i0&&void 0!==arguments[0]?arguments[0]:"auto",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=null===(n=e)||void 0===n||null===(r=n.$u)||void 0===r||null===(i=r.config)||void 0===i?void 0:i.unit)&&void 0!==t?t:"px";return o=String(o),a.default.number(o)?"".concat(o).concat(s):o},deepClone:c,deepMerge:function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=c(t),"object"!==(0,o.default)(t)||null===t||"object"!==(0,o.default)(n)||null===n)return t;var r=Array.isArray(t)?t.slice():Object.assign({},t);for(var i in n)if(n.hasOwnProperty(i)){var a=n[i],s=r[i];a instanceof Date?r[i]=new Date(a):a instanceof RegExp?r[i]=new RegExp(a):a instanceof Map?r[i]=new Map(a):a instanceof Set?r[i]=new Set(a):"object"===(0,o.default)(a)&&null!==a?r[i]=e(s,a):r[i]=a}return r},error:function(e){0},randomArray:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))},timeFormat:u,timeFrom: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";null==e&&(e=Number(new Date)),e=parseInt(e),10==e.toString().length&&(e*=1e3);var n=(new Date).getTime()-e;n=parseInt(n/1e3);var r="";switch(!0){case n<300:r="刚刚";break;case n>=300&&n<3600:r="".concat(parseInt(n/60),"分钟前");break;case n>=3600&&n<86400:r="".concat(parseInt(n/3600),"小时前");break;case n>=86400&&n<2592e3:r="".concat(parseInt(n/86400),"天前");break;default:r=!1===t?n>=2592e3&&n<31536e3?"".concat(parseInt(n/2592e3),"个月前"):"".concat(parseInt(n/31536e3),"年前"):u(e,t)}return r},trim:l,queryParams:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var o=function(t){var r=e[t];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:2e3;e.showToast({title:String(t),icon:"none",duration:n})},type2icon: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 n="";switch(e){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return t&&(n+="-fill"),n},priceFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";e="".concat(e).replace(/[^0-9+-Ee.]/g,"");var i=isFinite(+e)?+e:0,o=isFinite(+t)?Math.abs(t):0,a="undefined"===typeof r?",":r,c="undefined"===typeof n?".":n,u="";u=(o?(0,s.round)(i,o)+"":"".concat(Math.round(i))).split(".");var l=/(-?\d+)(\d{3})/;while(l.test(u[0]))u[0]=u[0].replace(l,"$1".concat(a,"$2"));return(u[1]||"").length1&&void 0!==arguments[1])||arguments[1],n=parseInt(e);return t?/s$/.test(e)?e:"".concat(e,e>30?"ms":"s"):/ms$/.test(e)?n:/s$/.test(e)?n>30?n:1e3*n:n},padZero:function(e){return"00".concat(e).slice(-2)},formValidate:function(t,n){var r=e.$u.$parent.call(t,"u-form-item"),i=e.$u.$parent.call(t,"u-form");r&&i&&i.validateField(r.prop,(function(){}),n)},getProperty:function(e,t){if(e){if("string"!==typeof t||""===t)return"";if(-1!==t.indexOf(".")){for(var n=t.split("."),r=e[n[0]]||{},i=1;i1){var i=n[0];t[i]&&"object"===(0,o.default)(t[i])||(t[i]={});n.shift();e(t[i],n,r)}else t[n[0]]=r})(e,r,n)}else e[t]=n}},page:function(){var e,t,n=getCurrentPages();return"/".concat(null!==(e=null===(t=n[n.length-1])||void 0===t?void 0:t.route)&&void 0!==e?e:"")},pages:function(){var e=getCurrentPages();return e},getHistoryPage:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=getCurrentPages(),n=t.length;return t[n-1+e]},setConfig:function(t){var n=t.props,r=void 0===n?{}:n,i=t.config,o=void 0===i?{}:i,a=t.color,s=void 0===a?{}:a,c=t.zIndex,u=void 0===c?{}:c,l=e.$u.deepMerge;e.$u.config=l(e.$u.config,o),e.$u.props=l(e.$u.props,r),e.$u.color=l(e.$u.color,s),e.$u.zIndex=l(e.$u.zIndex,u)}};t.default=f}).call(this,n("df3c")["default"])},"843a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={radioGroup:{value:"",disabled:!1,shape:"circle",activeColor:"#2979ff",inactiveColor:"#c8c9cc",name:"",size:18,placement:"row",label:"",labelColor:"#303133",labelSize:14,labelDisabled:!1,iconColor:"#ffffff",iconSize:12,borderBottom:!1,iconPlacement:"left"}}},"84ad":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={numberKeyboard:{mode:"number",dotDisabled:!1,random:!1}}},"861b":function(e,t,n){"use strict";(function(e,r,i){var o=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n("7eb4")),s=o(n("3352")),c=o(n("34cf")),u=o(n("3b2d")),l=o(n("af34")),f=o(n("ee10")),d=o(n("7ca3")),p=o(n("8ffa")),h=o(n("4ffb")),g=o(n("b4d2")),v=o(n("7ce1")),y=o(n("67ad")),m=o(n("0bdb")),b=o(n("6df5"));function x(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},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 o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,u=e.min(4*c,i);if(c){for(var l=0;l>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],g=e[t+4],v=e[t+5],y=e[t+6],m=e[t+7],b=e[t+8],x=e[t+9],w=e[t+10],S=e[t+11],A=e[t+12],_=e[t+13],P=e[t+14],k=e[t+15],T=o[0],O=o[1],C=o[2],I=o[3];T=u(T,O,C,I,a,7,s[0]),I=u(I,T,O,C,c,12,s[1]),C=u(C,I,T,O,p,17,s[2]),O=u(O,C,I,T,h,22,s[3]),T=u(T,O,C,I,g,7,s[4]),I=u(I,T,O,C,v,12,s[5]),C=u(C,I,T,O,y,17,s[6]),O=u(O,C,I,T,m,22,s[7]),T=u(T,O,C,I,b,7,s[8]),I=u(I,T,O,C,x,12,s[9]),C=u(C,I,T,O,w,17,s[10]),O=u(O,C,I,T,S,22,s[11]),T=u(T,O,C,I,A,7,s[12]),I=u(I,T,O,C,_,12,s[13]),C=u(C,I,T,O,P,17,s[14]),T=l(T,O=u(O,C,I,T,k,22,s[15]),C,I,c,5,s[16]),I=l(I,T,O,C,y,9,s[17]),C=l(C,I,T,O,S,14,s[18]),O=l(O,C,I,T,a,20,s[19]),T=l(T,O,C,I,v,5,s[20]),I=l(I,T,O,C,w,9,s[21]),C=l(C,I,T,O,k,14,s[22]),O=l(O,C,I,T,g,20,s[23]),T=l(T,O,C,I,x,5,s[24]),I=l(I,T,O,C,P,9,s[25]),C=l(C,I,T,O,h,14,s[26]),O=l(O,C,I,T,b,20,s[27]),T=l(T,O,C,I,_,5,s[28]),I=l(I,T,O,C,p,9,s[29]),C=l(C,I,T,O,m,14,s[30]),T=f(T,O=l(O,C,I,T,A,20,s[31]),C,I,v,4,s[32]),I=f(I,T,O,C,b,11,s[33]),C=f(C,I,T,O,S,16,s[34]),O=f(O,C,I,T,P,23,s[35]),T=f(T,O,C,I,c,4,s[36]),I=f(I,T,O,C,g,11,s[37]),C=f(C,I,T,O,m,16,s[38]),O=f(O,C,I,T,w,23,s[39]),T=f(T,O,C,I,_,4,s[40]),I=f(I,T,O,C,a,11,s[41]),C=f(C,I,T,O,h,16,s[42]),O=f(O,C,I,T,y,23,s[43]),T=f(T,O,C,I,x,4,s[44]),I=f(I,T,O,C,A,11,s[45]),C=f(C,I,T,O,k,16,s[46]),T=d(T,O=f(O,C,I,T,p,23,s[47]),C,I,a,6,s[48]),I=d(I,T,O,C,m,10,s[49]),C=d(C,I,T,O,P,15,s[50]),O=d(O,C,I,T,v,21,s[51]),T=d(T,O,C,I,A,6,s[52]),I=d(I,T,O,C,h,10,s[53]),C=d(C,I,T,O,w,15,s[54]),O=d(O,C,I,T,c,21,s[55]),T=d(T,O,C,I,b,6,s[56]),I=d(I,T,O,C,k,10,s[57]),C=d(C,I,T,O,y,15,s[58]),O=d(O,C,I,T,_,21,s[59]),T=d(T,O,C,I,g,6,s[60]),I=d(I,T,O,C,S,10,s[61]),C=d(C,I,T,O,p,15,s[62]),O=d(O,C,I,T,x,21,s[63]),o[0]=o[0]+T|0,o[1]=o[1]+O|0,o[2]=o[2]+C|0,o[3]=o[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),n.MD5)})),P((function(e,t){var n;e.exports=(n=T,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,c=a.words,u=0;u>>6-a%4*2;i[o>>>2]|=(s|c)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var c=r.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?R:r;(0,y.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,m.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case R:return this.status===B;case z:return this.status!==j}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=j,this.promise=this.createPromise().then((function(t){return e.status=D,Promise.resolve(t)}),(function(t){return e.status=B,Promise.reject(t)})),this.promise):this.promise}}]),e}();function q(e){return e&&"string"==typeof e?JSON.parse(e):e}var W="mp-weixin",Q=q([]),H=W,V=(q(void 0),q([])||[]);try{(n("fdf7").default||n("fdf7")).appid}catch(gr){}var G={};function Y(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=G,n=e,Object.prototype.hasOwnProperty.call(t,n)||(G[e]=r),G[e]}"app"===H&&(G=r._globalUniCloudObj?r._globalUniCloudObj:r._globalUniCloudObj={});var J=["invoke","success","fail","complete"],K=Y("_globalUniCloudInterceptor");function X(e,t){K[e]||(K[e]={}),F(t)&&Object.keys(t).forEach((function(n){J.indexOf(n)>-1&&function(e,t,n){var r=K[e][t];r||(r=K[e][t]=[]),-1===r.indexOf(n)&&$(n)&&r.push(n)}(e,n,t[n])}))}function Z(e,t){K[e]||(K[e]={}),F(t)?Object.keys(t).forEach((function(n){J.indexOf(n)>-1&&function(e,t,n){var r=K[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete K[e]}function ee(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function te(e,t){return K[e]&&K[e][t]||[]}function ne(e){X("callObject",e)}var re=Y("_globalUniCloudListener"),ie="response",oe="needLogin",ae="refreshToken",se="clientdb",ce="cloudfunction",ue="cloudobject";function le(e){return re[e]||(re[e]=[]),re[e]}function fe(e,t){var n=le(e);n.includes(t)||n.push(t)}function de(e,t){var n=le(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function pe(e,t){for(var n=le(e),r=0;r0&&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}}}]),n}((0,v.default)(Error)),we={request:function(e){return r.request(e)},uploadFile:function(e){return r.uploadFile(e)},setStorageSync:function(e,t){return r.setStorageSync(e,t)},getStorageSync:function(e){return r.getStorageSync(e)},removeStorageSync:function(e){return r.removeStorageSync(e)},clearStorageSync:function(){return r.clearStorageSync()},connectSocket:function(e){return r.connectSocket(e)}};function Se(){return{token:we.getStorageSync("uni_id_token")||we.getStorageSync("uniIdToken"),tokenExpired:we.getStorageSync("uni_id_token_expired")}}function Ae(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&we.setStorageSync("uni_id_token",t),n&&we.setStorageSync("uni_id_token_expired",n)}function _e(){return me||(me=r.getSystemInfoSync()),me}var Pe={};function ke(){var e=r.getLocale&&r.getLocale()||"en";if(be)return A(A(A({},Pe),be),{},{locale:e,LOCALE:e});var t=_e(),n=t.deviceId,i=t.osName,o=t.uniPlatform,a=t.appId,s=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var c in t)Object.hasOwnProperty.call(t,c)&&-1===s.indexOf(c)&&delete t[c];return be=A(A({PLATFORM:o,OS:i,APPID:a,DEVICEID:n},function(){var e,t;try{if(r.getLaunchOptionsSync){if(r.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=r.getLaunchOptionsSync(),i=n.scene,o=n.channel;e=o,t=i}}catch(e){}return{channel:e,scene:t}}()),t),A(A(A({},Pe),be),{},{locale:e,LOCALE:e})}var Te,Oe={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),O(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){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){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return r(new xe({code:i,message:o,requestId:t}))}var a=e.data;if(a.error)return r(new xe({code:a.error.code,message:a.error.message,requestId:t}));a.result=a.data,a.requestId=t,delete a.data,n(a)}}))}))},toBase64:function(e){return I.stringify(C.parse(e))}},Ce=function(){function e(t){var n=this;(0,y.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),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 U({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new xe({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:z})}return(0,m.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return Oe.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.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"]=Oe.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Oe.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.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,n=e.url,r=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new xe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.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)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l,f,d,p,h,g,v,y,m,b,x,w,S,A,_;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,s=t.cloudPathAsRealPath,c=void 0!==s&&s,u=t.onUploadProgress,l=t.config,"string"===L(r)){e.next=3;break}throw new xe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new xe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new xe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(c&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new xe({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:c?r.split("/").pop():r,fileId:c?r:void 0});case 12:return d=e.sent.result,p="https://"+d.cdnDomain+"/"+d.ossPath,h=d.securityToken,g=d.accessKeyId,v=d.signature,y=d.host,m=d.ossPath,b=d.id,x=d.policy,w=d.ossCallbackUrl,S={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:y,id:b,key:m,policy:x,success_action_status:200},h&&(S["x-oss-security-token"]=h),w&&(A=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:b,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),S.callback=Oe.toBase64(A)),_={url:"https://"+d.host,formData:S,fileName:"file",name:"file",filePath:n,fileType:o},e.next=27,this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:u}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 29:return e.next=31,this.reportOSSUpload({id:b});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 33:throw new xe({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,n){Array.isArray(t)&&0!==t.length||n(new xe({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)(a.default.mark((function e(){var t,n,r,i=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new xe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));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 Ce(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Me="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(Te||(Te={}));var Ee,je=function(){},De=P((function(e,t){var n;e.exports=(n=T,function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,a=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),c[i]=n(e.pow(r,1/3)),i++),r++}();var u=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],g=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,v=u[p-2],y=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;u[p]=g+u[p-7]+y+u[p-16]}var m=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),x=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+c[p]+u[p];d=f,f=l,l=s,s=a+x|0,a=o,o=i,i=r,r=x+(b+m)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),n.SHA256)})),Be=De,Le=P((function(e,t){e.exports=T.HmacSHA256})),Fe=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new xe({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 n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function $e(e){return void 0===e}function Ne(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ee||(Ee={}));var Re={adapter:null,runtime:void 0},ze=["anonymousUuidKey"],Ue=function(e){(0,p.default)(n,e);var t=_(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),Re.adapter.root.tcbObject||(Re.adapter.root.tcbObject={}),e}return(0,m.default)(n,[{key:"setItem",value:function(e,t){Re.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Re.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Re.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Re.adapter.root.tcbObject}}]),n}(je);function qe(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=Re.adapter.primaryStorage||t.persistence,this._storage=qe(this._persistence,Re.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),o="anonymous_uuid_".concat(t.env),a="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:s}}}return(0,m.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=qe(e,Re.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!ze.includes(r)){var o=this._storage.getItem(i);$e(o)||Ne(o)||(n.setItem(i,o),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);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 n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),Qe={},He={};function Ve(e){return Qe[e]}var Ge=(0,m.default)((function e(t,n){(0,y.default)(this,e),this.data=n||null,this.name=t})),Ye=function(e){(0,p.default)(n,e);var t=_(n);function n(e,r){var i;return(0,y.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,m.default)(n)}(Ge),Je=new(function(){function e(){(0,y.default)(this,e),this._listeners={}}return(0,m.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ye)return console.error(e.error),this;var n="string"==typeof e?new Ge(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,o=this._listeners[r]?(0,l.default)(this._listeners[r]):[],a=x(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,n)}}catch(c){a.e(c)}finally{a.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ke(e,t){Je.on(e,t)}function Xe(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",nt="loginStateExpire",rt="loginTypeChanged",it="anonymousConverted",ot="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 at=["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 ct(e,t,n){var r=e[t];e[t]=function(t){var i={},o={};n.forEach((function(n){var r=n.call(e,t),a=r.data,s=r.headers;Object.assign(i,a),Object.assign(o,s)}));var a=t.data;return a&&function(){var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data=A(A({},a),i);else for(var n in i)a.append(n,i[n])}(),t.headers=A(A({},t.headers||{}),o),r.call(e,t)}}function ut(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:A(A({},st),{},{"x-seqid":e})}}var lt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,y.default)(this,e),this.config=n,this._reqClass=new Re.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Ve(this.config.env),this._localCache=(t=this.config.env,He[t]),ct(this._reqClass,"post",[ut]),ct(this._reqClass,"upload",[ut]),ct(this._reqClass,"download",[ut])}return(0,m.default)(e,[{key:"post",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.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)(a.default.mark((function e(t){return a.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)(a.default.mark((function e(t){return a.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)(a.default.mark((function e(){var t,n;return a.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),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;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)(a.default.mark((function e(){var t,n,r,i,o,s,c,u,l,f,d,p,h;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,o=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),c=this._cache.getStore(i),c){e.next=5;break}throw new xe({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(o)!==et.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(s),p=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:Xe(nt),this._cache.removeStore(i);case 20:throw new xe({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(Xe(ot),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.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)(a.default.mark((function e(){var t,n,r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new xe({message:"refresh token不存在,登录状态异常"});case 3:if(o=this._cache.getStore(n),s=this._cache.getStore(r),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(o,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!o||!s||s2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(n[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Me,"//tcb-api.tencentcloudapi.com/web",y),v&&(m+=v),e.next=22,this.post(A({url:m,data:u},d));case 22:if(b=e.sent,x=b.header&&b.header["x-tcb-trace"],x&&this._localCache.setStore(i,x),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){e.next=26;break}throw new xe({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==at.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new xe({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new xe({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.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,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),ft={};function dt(e){return ft[e]}var pt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ve(t.env),this._request=dt(t.env)}return(0,m.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n;return a.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,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));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}(),ht=function(){function e(t){if((0,y.default)(this,e),!t)throw new xe({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Ve(this._envId),this._request=dt(this._envId),this.setUserInfo()}return(0,m.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new xe({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 xe({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)(a.default.mark((function e(){var t,n,r,i;return a.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,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));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)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,o=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:o,country:s,city:c});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);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)(a.default.mark((function e(){var t,n;return a.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,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));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,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.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 xe({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Ve(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,o=n.accessTokenExpireKey,a=this._cache.getStore(r),s=this._cache.getStore(i),c=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new ht(t)}return(0,m.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,p.default)(n,e);var t=_(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(){var t,n,r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,o=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:o});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 Xe(tt),Xe(rt,{env:this.config.env,loginType:et.ANONYMOUS,persistence:"local"}),c=new gt(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new xe({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)(a.default.mark((function e(t){var n,r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,o=this._cache.getStore(r),s=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:o,refresh_token:s,ticket:t});case 7:if(c=e.sent,!c.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(c.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Xe(it,{env:this.config.env}),Xe(rt,{loginType:et.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new xe({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,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,et.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(pt),yt=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new xe({code:"PARAM_ERROR",message:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Xe(tt),Xe(rt,{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 xe({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(pt),mt=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new xe({code:"PARAM_ERROR",message:"email must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,o=i.refresh_token,s=i.access_token,c=i.access_token_expire,!o){e.next=22;break}if(this.setRefreshToken(o),!s||!c){e.next=15;break}this.setAccessToken(s,c),e.next=17;break;case 15:return e.next=17,this._request.refreshAccessToken();case 17:return e.next=19,this.refreshUserInfo();case 19:return Xe(tt),Xe(rt,{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 xe({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new xe({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.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)(a.default.mark((function e(t,n){return a.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:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(pt),bt=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"signIn",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s,c;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new xe({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:et.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,o=i.refresh_token,s=i.access_token_expire,c=i.access_token,!o){e.next=23;break}if(this.setRefreshToken(o),!c||!s){e.next=16;break}this.setAccessToken(c,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 Xe(tt),Xe(rt,{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 xe({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new xe({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(pt),xt=function(){function e(t){(0,y.default)(this,e),this.config=t,this._cache=Ve(t.env),this._request=dt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ke(rt,this._onLoginTypeChanged)}return(0,m.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 mt(this.config)}},{key:"usernameAuthProvider",value:function(){return new bt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.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)(a.default.mark((function e(t,n){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new mt(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new bt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new vt(this.config)),Ke(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)(a.default.mark((function e(){var t,n,r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==et.ANONYMOUS){e.next=2;break}throw new xe({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,o=this._cache.getStore(n),o){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:o});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Xe(tt),Xe(rt,{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)(a.default.mark((function e(t,n){return a.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:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,f.default)(a.default.mark((function e(t){return a.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;Ke(tt,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Ke(nt,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ke(ot,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ke(it,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ke(rt,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,f.default)(a.default.mark((function e(){return a.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)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new xe({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 n=e.sent,r=n.data,e.abrupt("return",r&&r.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)(a.default.mark((function e(t){return a.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:A(A({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{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,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),wt=function(e,t){t=t||Fe();var n=dt(this.config.env),r=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var a=e.data,c=a.url,u=a.authorization,l=a.token,f=a.fileId,d=a.cosFileId,p=e.requestId,h={key:r,signature:u,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:h,file:i,name:r,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:f,requestId:p}):t(new xe({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},St=function(e,t){t=t||Fe();var n=dt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},At=function(e,t){var n=e.fileList;if(t=t||Fe(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=x(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:n};return dt(this.config.env).send("storage.batchDeleteFile",a).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},_t=function(e,t){var n=e.fileList;t=t||Fe(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],o=x(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;"object"==(0,u.default)(a)?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?i.push({fileid:a}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(c){o.e(c)}finally{o.f()}var s={file_list:i};return dt(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},Pt=function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r,i,o,s;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,_t.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(o=dt(this.config.env),s=i.download_url,s=encodeURI(s),n){e.next=10;break}return e.abrupt("return",o.download({url:s}));case 10:return e.t0=n,e.next=13,o.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,n){return e.apply(this,arguments)}}(),kt=function(e,t){var n,r=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,c=t||Fe();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new xe({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:o,parse:a,search:s,function_name:r,request_data:n};return dt(this.config.env).send("functions.invokeFunction",u).then((function(e){if(e.code)c(null,e);else{var t=e.data.response_data;if(a)c(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),c(null,{result:t,requestId:e.requestId})}catch(e){c(new xe({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},Tt={timeout:15e3,persistence:"session"},Ot={},Ct=function(){function e(t){(0,y.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,m.default)(e,[{key:"init",value:function(t){switch(Re.adapter||(this.requestClient=new Re.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=A(A({},Tt),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 n,r=t||Re.adapter.primaryStorage||Tt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;Qe[t]=new We(e),He[t]=new We(A(A({},e),{},{persistence:"local"}))}(this.config),n=this.config,ft[n.env]=new lt(n),this.authObj=new xt(this.config),this.authObj}},{key:"on",value:function(e,t){return Ke.apply(this,[e,t])}},{key:"off",value:function(e,t){return Ze.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return kt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return At.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return _t.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return Pt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return wt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return St.apply(this,[e,t])}},{key:"registerExtension",value:function(e){Ot[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,f.default)(a.default.mark((function e(t,n){var r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=Ot[t],r){e.next=3;break}throw new xe({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=x(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.isMatch,s=o.genAdapter,c=o.runtime;if(a())return{adapter:s(),runtime:c}}}catch(u){i.e(u)}finally{i.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Re.adapter=n),r&&(Re.runtime=r)}}]),e}(),It=new Ct;function Mt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var o in n)""===i?!r&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Et=function(){function e(){(0,y.default)(this,e)}return(0,m.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,i){we.request({url:Mt("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,c=we.uploadFile({url:Mt("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),jt={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()}},Dt={genAdapter:function(){return{root:{},reqClass:Et,localStorage:jt,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};It.useAdapters(Dt);var Bt=It,Lt=Bt.init;Bt.init=function(e){e.env=e.spaceId;var t=Lt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ye(e),r=t.success,i=t.fail,o=t.complete;if(!(r||i||o))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),o&&o(e)}),(function(e){i&&i(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Ft=Bt,$t=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=Oe.sign(n,this.config.clientSecret);var i=ke();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var o=Se(),a=o.token;return r["x-client-token"]=a,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,success:function(t){t&&t.statusCode<400?e(t):c(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new xe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new xe({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getOSSUploadOptionsFromPath({cloudPath:i}).then((function(e){var i=e.result,o=i.url,c=i.formData,u=i.name;t=e.result.fileUrl;var l={url:o,formData:c,name:u,filePath:r,fileType:a};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new xe({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new xe({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};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 xe({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(Ce),Nt={init:function(e){var t=new $t(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Rt=P((function(e,t){e.exports=T.enc.Hex}));function zt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Ut(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,o=t.headers,a=t.signHeaderKeys,s=void 0===a?[]:a,u=t.config,l=Date.now(),f=zt(),d=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),p=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(s),h=e.split("?")||[],g=(0,c.default)(h,2),v=g[0],y=void 0===v?"":v,m=g[1],b=void 0===m?"":m,x=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Be(e.body).toString(Rt),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),o=Be(i).toString(Rt),a="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(o,"\n"),s=Le(a,e.secretKey).toString(Rt);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:y,query:b,method:i,headers:d,timestamp:l,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:p.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},d,{Authorization:x})}}function qt(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,o=e.headers,a=void 0===o?{}:o;return new Promise((function(e,r){we.request({url:t,method:i,data:"object"==(0,u.default)(n)?JSON.stringify(n):n,header:a,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=a["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},o=i.message,s=i.errMsg,c=i.trace_id;return r(new xe({code:"SYS_ERR",message:o||s||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Wt(e,t){var n=e.path,r=e.data,i=e.method,o=void 0===i?"GET":i,a=Ut(n,{functionName:"",data:r,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=a.url,c=a.headers;return qt({url:s,data:r,method:o,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new xe({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new xe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Qt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new xe({code:"INVALID_PARAM",message:"fileID不合法"});var r=t.substring(0,n),i=t.substring(n+1);return r!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Vt=function(){function e(t){(0,y.default)(this,e),this.config=t}return(0,m.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),r=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:zt(),timestamp:""+Date.now()}),o=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(r)].join("\n"),a=["HMAC-SHA256",Be(o).toString(Rt)].join("\n"),s=Le(a,this.config.secretKey).toString(Rt),c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(c,"&signature=").concat(s)}}]),e}(),Gt=function(){function e(t){if((0,y.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new Vt(this.config)}return(0,m.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i=e.async,o=void 0!==i&&i,a="POST",s={"x-to-function-name":n};o&&(s["x-function-invoke-type"]="async");var c=Ut("/functions/invokeFunction",{functionName:n,data:r,method:a,headers:s,signHeaderKeys:["x-to-function-name"],config:t}),u=c.url,l=c.headers;return qt({url:u,data:r,method:a,headers:l}).then((function(e){var t=0;if(o){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new xe({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new xe({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,o=e.onUploadProgress;return new Promise((function(e,a){var s=we.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):a(new xe({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){a(new xe({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r,i,o,s,c,u,l,f,d,p;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,o=t.fileType,s=void 0===o?"image":o,c=t.onUploadProgress,"string"===L(i)){e.next=3;break}throw new xe({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new xe({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new xe({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Wt({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,f=u.upload_url,d=u.form_data,p=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:n,fileType:s,formData:p,onUploadProgress:c}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r=this;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new xe({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new xe({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,o=[],a=x(n);try{for(a.s();!(i=a.n()).done;){var s=i.value;"string"!==L(s)&&t(new xe({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var c=Qt.call(r,s);o.push({file_id:c,expire:600})}}catch(u){a.e(u)}finally{a.f()}Wt({path:"/?download_url",data:{file_list:o},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:Ht.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var e=(0,f.default)(a.default.mark((function e(t){var n,r;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,r=t.query,e.abrupt("return",we.connectSocket({url:this._websocket.signedURL(n,r),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Yt={init:function(e){e.provider="alipay";var t=new Gt(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Jt(e){var t,n=e.data;t=ke();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=Se(),o=i.token;o&&(r.uniIdToken=o)}return r}var Kt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Xt=/[\\^$.*+?()[\]{}|]/g,Zt=RegExp(Xt.source);function en(e,t,n){return e.replace(new RegExp((r=t)&&Zt.test(r)?r.replace(Xt,"\\$&"):r,"g"),n);var r}var tn="request",nn="response";var rn;rn="0123456789abcdef";var on={code:2e4,message:"System error"},an={code:20101,message:"Invalid client"};function sn(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,o=t.errMsg,a=t.code,s=t.message,c=t.cause;return new xe({subject:n||r||"uni-secure-network",code:i||a||on.code,message:o||s,cause:c})}var cn;function un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===tn||t===nn||"both"===t}function ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===H&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function fn(e){e.functionName,e.result,e.logPvd}function dn(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=Jt.call(e,{data:n.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],a=un(n),s=ln(n),c=a||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&fn.call(r,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return!c&&fn.call(r,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,o=e.formatter,a=void 0===o?[]:o,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=_e(),o=i.appId,a=i.uniPlatform,s=i.osName,c=a;"app"===a&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=Q;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var d=function(e,t){for(var n,r,i,o=0;o-1&&(r=a):i=a:n=a}return n||r||i}(f,r);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===o&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(o,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),sn(an)}({provider:a,spaceId:s,functionName:c})?new cn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}cn="mp-weixin"!==H&&"app"!==H?function(){return(0,m.default)((function e(){throw(0,y.default)(this,e),sn({message:"Platform ".concat(H," is not supported by secure network")})}))}():function(){return(0,m.default)((function e(){throw(0,y.default)(this,e),sn({message:"Platform ".concat(H," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var pn=Symbol("CLIENT_DB_INTERNAL");function hn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=pn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,u.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function gn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var vn=["db.Geo","db.command","command.aggregate"];function yn(e,t){return vn.indexOf("".concat(e,".").concat(t))>-1}function mn(e){switch(L(e)){case"array":return e.map((function(e){return mn(e)}));case"object":return e._internalType===pn||Object.keys(e).forEach((function(t){e[t]=mn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function bn(e){return e&&e.content&&e.content.$method}var xn=function(){function e(t,n,r){(0,y.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,m.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:mn(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=bn(e),n=bn(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===bn(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=bn(e),n=bn(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return wn({$method:e,$param:mn(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 n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:mn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function wn(e,t,n){return hn(new xn(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),yn(r,t)?wn({$method:t},e,n):function(){return wn({$method:t,$param:mn(Array.from(arguments))},e,n)}}})}function Sn(e){var t=e.path,n=e.method;return function(){function e(){(0,y.default)(this,e),this.param=Array.from(arguments)}return(0,m.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,l.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function An(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return hn(new e(t),{get:function(e,t){return yn("db",t)?wn({$method:t},null,e):function(){return wn({$method:t,$param:mn(Array.from(arguments))},null,e)}}})}var _n=function(e){(0,p.default)(n,e);var t=_(n);function n(){return(0,y.default)(this,n),t.apply(this,arguments)}return(0,m.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,o=void 0!==i&&i;(0,y.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=Y("_globalUniCloudDatabaseCallback")),o||(this.auth=gn(this._authCallBacks)),this._isJQL=o,Object.assign(this,gn(this._dbCallBacks)),this.env=hn({},{get:function(e,t){return{$env:t}}}),this.Geo=hn({},{get:function(e,t){return Sn({path:["Geo"],method:t})}}),this.serverDate=Sn({path:[],method:"serverDate"}),this.RegExp=Sn({path:[],method:"RegExp"})}return(0,m.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 n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,l.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),Pn="token无效,跳转登录页面",kn="token过期,跳转登录页面",Tn={TOKEN_INVALID_TOKEN_EXPIRED:kn,TOKEN_INVALID_INVALID_CLIENTID:Pn,TOKEN_INVALID:Pn,TOKEN_INVALID_WRONG_TOKEN:Pn,TOKEN_INVALID_ANONYMOUS_USER:Pn},On={"uni-id-token-expired":kn,"uni-id-check-token-failed":Pn,"uni-id-token-not-exist":Pn,"uni-id-check-device-feature-failed":Pn};function Cn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function In(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(Cn(t,e.path)):!1===e.needLogin&&r.push(Cn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function Mn(e){return e.split("?")[0].replace(/^\//,"")}function En(){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 jn(){return Mn(En())}function Dn(){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 n=t.list,r=Mn(e);return n.some((function(e){return e.pagePath===r}))}var Bn,Ln=!!b.default.uniIdRouter,Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,o=e.uniIdRouter,a=void 0===o?{}:o,s=e.tabBar,c=void 0===s?{}:s,u=a.loginPage,f=a.needLogin,d=void 0===f?[]:f,p=a.resToLogin,h=void 0===p||p,g=In(n),v=g.needLoginPage,y=g.notNeedLoginPage,m=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,o=void 0===i?[]:i,a=In(o,r),s=a.needLoginPage,c=a.notNeedLoginPage;t.push.apply(t,(0,l.default)(s)),n.push.apply(n,(0,l.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),x=m.needLoginPage,w=m.notNeedLoginPage;return{loginPage:u,routerNeedLogin:d,resToLogin:h,needLoginPage:[].concat((0,l.default)(v),(0,l.default)(x)),notNeedLoginPage:[].concat((0,l.default)(y),(0,l.default)(w)),loginPageInTabBar:Dn(u,c)}}(),$n=Fn.loginPage,Nn=Fn.routerNeedLogin,Rn=Fn.resToLogin,zn=Fn.needLoginPage,Un=Fn.notNeedLoginPage,qn=Fn.loginPageInTabBar;if(zn.indexOf($n)>-1)throw new Error("Login page [".concat($n,'] should not be "needLogin", please check your pages.json'));function Wn(e){var t=jn();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,c.default)(n,2),i=r[0],o=r[1],a=i.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(var u=0;u-1)&&(zn.indexOf(t)>-1||Nn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Hn(e){var t=e.redirect,n=Mn(t),r=Mn($n);return jn()!==r&&n!==r}function Vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Hn({redirect:n})){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}($n,n);qn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var o={navigateTo:r.navigateTo,redirectTo:r.redirectTo,switchTab:r.switchTab,reLaunch:r.reLaunch};setTimeout((function(){o[t]({url:i})}),0)}}function Gn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=Se(),n=t.token,r=t.tokenExpired;if(n){if(r0)return setTimeout((function(){pe(oe,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Yn(){!function(){var e=En(),t=Gn({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&Vn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];r.addInterceptor(n,{invoke:function(e){var t=Gn({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(Vn({api:n,redirect:Wn(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=le(oe);ve().then((function(){var n=En();if(n&&Hn({redirect:n}))return t.length>0?pe(oe,Object.assign({uniIdRedirectUrl:n},e)):void($n&&Vn({api:"navigateTo",redirect:n}))}))}(n)}))}function Kn(e){!function(e){e.onResponse=function(e){fe(ie,e)},e.offResponse=function(e){de(ie,e)}}(e),function(e){e.onNeedLogin=function(e){fe(oe,e)},e.offNeedLogin=function(e){de(oe,e)},Ln&&(Y("_globalUniCloudStatus").needLoginInit||(Y("_globalUniCloudStatus").needLoginInit=!0,ve().then((function(){Yn.call(e)})),Rn&&Jn.call(e)))}(e),function(e){e.onRefreshToken=function(e){fe(ae,e)},e.offRefreshToken=function(e){de(ae,e)}}(e)}var Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Zn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function er(){var e,t,n=Se().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(Bn(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Bn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Zn.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 n,r,i="",o=0;o>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var tr=P((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function s(e,t,r){var i=r.onChooseFile,o=r.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:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(n){for(;s=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=o[r];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=u,e.tempFilePath=u.path,i&&i(e)}}).then((function(e){u.url=e.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?s(e,function(e){var t=e.count,n=e.sizeType,i=e.sourceType,s=void 0===i?["album","camera"]:i,c=e.extension;return new Promise((function(e,i){r.chooseImage({count:t,sizeType:n,sourceType:s,extension:c,success:function(t){e(a(t,"image"))},fail:function(e){i({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})}))}(t),t):"video"===t.type?s(e,function(e){var t=e.camera,n=e.compressed,i=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,u=e.extension;return new Promise((function(e,s){r.chooseVideo({camera:t,compressed:n,maxDuration:i,sourceType:c,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,i=t.size,o=t.height,s=t.width;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})}))}(t),t):s(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,s){var c=r.chooseFile;if("undefined"!=typeof i&&"function"==typeof i.chooseMessageFile&&(c=i.chooseMessageFile),"function"!=typeof c)return s({errMsg:o+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});c({type:"all",count:t,extension:n,success:function(t){e(a(t))},fail:function(e){s({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})}))}(t),t)}}})),nr=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(tr);function rr(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:{},mixinDatacomError:null}},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(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var r=!1,i=[],o=2;o0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,o=n.data,a=n.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length0&&void 0!==arguments[0]?arguments[0]:{};r=r||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=r.action||this.action;i&&(n=n.action(i));var o=r.collection||this.collection;n=Array.isArray(o)?(t=n).collection.apply(t,(0,l.default)(o)):n.collection(o);var a=r.where||this.where;a&&Object.keys(a).length&&(n=n.where(a));var s=r.field||this.field;s&&(n=n.field(s));var c=r.foreignKey||this.foreignKey;c&&(n=n.foreignKey(c));var u=r.groupby||this.groupby;u&&(n=n.groupBy(u));var f=r.groupField||this.groupField;f&&(n=n.groupField(f)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var d=r.orderby||this.orderby;d&&(n=n.orderBy(d));var p=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,h=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,m={getCount:g},b={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return v&&(m.getTree=b),y&&(m.getTreePath=b),n=n.skip(h*(p-1)).limit(h).get(m),n}}}}function ir(e){return Y("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function or(){return ar.apply(this,arguments)}function ar(){return ar=(0,f.default)(a.default.mark((function e(){var t,n,i,o,s,c,u,l=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=l.length>0&&void 0!==l[0]?l[0]:{},n=t.openid,i=t.callLoginByWeixin,o=void 0!==i&&i,s=ir(this),"mp-weixin"===H){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(H,"`"));case 4:if(!n||!o){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(s.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){r.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return c=e.sent,u=this.importObject("uni-id-co",{customUI:!0}),e.next=14,u.secureNetworkHandshakeByWeixin({code:c,callLoginByWeixin:o});case 14:return s.mpWeixinCode=c,e.abrupt("return",{code:c});case 16:case"end":return e.stop()}}),e,this)}))),ar.apply(this,arguments)}function sr(e){return cr.apply(this,arguments)}function cr(){return cr=(0,f.default)(a.default.mark((function e(t){var n;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=ir(this),e.abrupt("return",(n.initPromise||(n.initPromise=or.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),cr.apply(this,arguments)}function ur(e){!function(e){Pe=e}(e)}function lr(e){var t={getSystemInfo:r.getSystemInfo,getPushClientId:r.getPushClientId};return function(n){return new Promise((function(r,i){t[e](A(A({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var fr=function(e){(0,p.default)(n,e);var t=_(n);function n(){var e;return(0,y.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,s.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,m.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([lr("getSystemInfo")(),lr("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,c.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var a=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!a)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=a,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)(a.default.mark((function e(){return a.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,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,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,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{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(){r.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){r.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")}}]),n}(function(){function e(){(0,y.default)(this,e),this._callback={}}return(0,m.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 n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,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],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0)return e.init(t).database();if(this._database)return this._database;var n=An(_n,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=An(_n,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=er,e.chooseAndUploadFile=nr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return rr(e)}}),e.SSEChannel=fr,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return sr.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.setCustomClientInfo=ur,e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=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,u.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var i=n,o=i.customUI,s=i.loadingOptions,c=i.errorOptions,l=i.parseSystemError,d=!o;return new Proxy({},{get:function(i,o){switch(o){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,f.default)(a.default.mark((function e(){var i,o,s,c,u,l,f=arguments;return a.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,o=new Array(i),s=0;s0&&void 0!==u[0]?u[0]:{},n=t.title,i=t.content,o=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){r.showModal({title:n,content:i,showCancel:o,cancelText:s,confirmText:c,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:k,showCancel:c.retry,cancelText:"取消",confirmText:c.retry?"重试":"确定"});case 33:if(T=i.sent,O=T.confirm,!c.retry||!O){i.next=37;break}return i.abrupt("return",p.apply(void 0,v));case 37:throw C=new xe({subject:w,code:S,message:_,requestId:h.requestId}),C.detail=h.result,pe(ie,{type:ue,content:C}),C;case 39:return i.abrupt("return",(pe(ie,{type:ue,content:h.result}),h.result));case 40:case"end":return i.stop()}}),i,null,[[5,11]])})));function p(){return i.apply(this,arguments)}return p}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:o,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var o=n&&n.type||M;i=o!==M}var a="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var c=ye(n),u=c.success,l=c.fail,f=c.complete,d=s.then((function(){return i?Promise.resolve():ee(te(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):ee(te(t,"success"),e).then((function(){return ee(te(t,"complete"),e)})).then((function(){return a&&pe(ie,{type:ce,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):ee(te(t,"fail"),e).then((function(){return ee(te(t,"complete"),e)})).then((function(){return pe(ie,{type:ce,content:e}),Promise.reject(e)}))}));if(!(u||l||f))return d;d.then((function(e){u&&u(e),f&&f(e),a&&pe(ie,{type:ce,content:e})}),(function(e){l&&l(e),f&&f(e),a&&pe(ie,{type:ce,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=V,t={};if(e&&1===e.length)t=e[0],pr=pr.init(t),pr._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){pr[e]=function(){return console.error(n),Promise.reject(new xe({code:"SYS_ERR",message:n}))}}))}Object.assign(pr,{get mixinDatacom(){return rr(pr)}}),Kn(pr),pr.addInterceptor=X,pr.removeInterceptor=Z,pr.interceptObject=ne})();var hr=pr;t.default=hr}).call(this,n("0ee4"),n("df3c")["default"],n("3223")["default"])},"871c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={namespaced:!0,state:function(){return{data:{city:"郑州市",city_code:"410100",lat:"34.789049",lng:"113.684792",time:""},current:{lat:"34.789049",lng:"113.684792",city:"郑州市",city_code:"410100",time:""}}}(),mutations:{setStateData:function(e,t){e.data=t},resetStateData:function(e){},setStateCurrent:function(e,t){e.current=t},resetStateCurrent:function(e){}},actions:{setStateDataAction:function(e,t){e.commit("setStateData",t)},resetStateDataAction:function(e){context.commit("resetStateData")},setStateCurrentAction:function(e,t){e.commit("setStateCurrent",t)},resetStateCurrentAction:function(e){context.commit("resetStateCurrent")}},getters:{}};t.default=r},8966:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={loadmore:{status:"loadmore",bgColor:"transparent",icon:!0,fontSize:14,iconSize:17,color:"#606266",loadingIcon:"spinner",loadmoreText:"加载更多",loadingText:"正在加载...",nomoreText:"没有更多了",isDot:!1,iconColor:"#b7b7b7",marginTop:10,marginBottom:10,height:"auto",line:!1,lineColor:"#E6E8EB",dashed:!1}}},"8aed":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),o=n("c2ed");function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.method||e.method||"GET",r={baseURL:e.baseURL||"",method:n,url:t.url||"",params:t.params||{},custom:s(s({},e.custom||{}),t.custom||{}),header:(0,o.deepMerge)(e.header||{},t.header||{})},i=["getTask","validateStatus"];if(r=s(s({},r),c(i,e,t)),"DOWNLOAD"===n);else if("UPLOAD"===n){delete r.header["content-type"],delete r.header["Content-Type"];var a=["filePath","name","formData"];a.forEach((function(e){(0,o.isUndefined)(t[e])||(r[e]=t[e])}))}else{var u=["data","timeout","dataType","responseType"];r=s(s({},r),c(u,e,t))}return r}},"8c3d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={lineProgress:{activeColor:"#19be6b",inactiveColor:"#ececec",percentage:0,showText:!0,height:12}}},"8d63":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={indexAnchor:{text:"",color:"#606266",size:14,bgColor:"#dedede",height:32}}},"8e06":function(e,t,n){(function(t){var r=n("3b2d");!function(n,r){e.exports=function(e,n){if(!e)return void console.warn("can't use weixin-js-sdk in server side");var r,i,o,a,s,c,u,l,f,d,p,h,g,v,y,m,b,x,w,S,A,_;return e.jWeixin?e.jWeixin:(r={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},i=function(){var e,t={};for(e in r)t[r[e]]=e;return t}(),o=e.document,a=o.title,s=navigator.userAgent.toLowerCase(),h=navigator.platform.toLowerCase(),c=!(!h.match("mac")&&!h.match("win")),u=-1!=s.indexOf("wxdebugger"),l=-1!=s.indexOf("micromessenger"),f=-1!=s.indexOf("android"),d=-1!=s.indexOf("iphone")||-1!=s.indexOf("ipad"),p=(h=s.match(/micromessenger\/(\d+\.\d+\.\d+)/)||s.match(/micromessenger\/(\d+\.\d+)/))?h[1]:"",g={initStartTime:j(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},v={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:d?1:f?2:-1,clientVersion:p,url:encodeURIComponent(location.href)},y={},m={_completes:[]},b={state:0,data:{}},D((function(){g.initEndTime=j()})),x=!1,w=[],S={config:function(t){M("config",y=t);var n=!1!==y.check;D((function(){if(n)P(r.config,{verifyJsApiList:I(y.jsApiList),verifyOpenTagList:I(y.openTagList)},(m._complete=function(e){g.preVerifyEndTime=j(),b.state=1,b.data=e},m.success=function(e){v.isPreVerifyOk=0},m.fail=function(e){m._fail?m._fail(e):b.state=-1},(o=m._completes).push((function(){E()})),m.complete=function(e){for(var t=0,n=o.length;t-1&&t.splice(n,1)}}function h(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;v(e,n,[],e._modules.root,!0),g(e,n,t)}function g(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};o(i,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=l.config.silent;l.config.silent=!0,e._vm=new l({data:{$$state:t},computed:a}),l.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),l.nextTick((function(){return r.$destroy()})))}function v(e,t,n,r,i){var o=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!o&&!i){var s=y(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){l.set(s,c,r.state)}))}var u=r.context=function(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,i){var o=m(n,r,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return y(e.state,n)}}}),i}(e,a,n);r.forEachMutation((function(t,n){var r=a+n;(function(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))})(e,r,t,u)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,i=t.handler||t;(function(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return function(e){return e&&"function"===typeof e.then}(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))})(e,r,i,u)})),r.forEachGetter((function(t,n){var r=a+n;(function(e,t,n,r){if(e._wrappedGetters[t])return void 0;e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)}})(e,r,t,u)})),r.forEachChild((function(r,o){v(e,t,n.concat(o),r,i)}))}function y(e,t){return t.reduce((function(e,t){return e[t]}),e)}function m(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function b(e){l&&e===l||(l=e, /*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT */ function(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(l))}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(e){0},f.prototype.commit=function(e,t,n){var r=this,i=m(e,t,n),o=i.type,a=i.payload,s=(i.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},f.prototype.dispatch=function(e,t){var n=this,r=m(e,t),i=r.type,o=r.payload,a={type:i,payload:o},s=this._actions[i];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(u){0}var c=s.length>1?Promise.all(s.map((function(e){return e(o)}))):s[0](o);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(u){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(u){0}t(e)}))}))}},f.prototype.subscribe=function(e,t){return p(e,this._subscribers,t)},f.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return p(n,this._actionSubscribers,t)},f.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},f.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},f.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),v(this,this.state,e,this._modules.get(e),n.preserveState),g(this,this.state)},f.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=y(t.state,e.slice(0,-1));l.delete(n,e[e.length-1])})),h(this)},f.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},f.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),h(this,!0)},f.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(f.prototype,d);var x=P((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=k(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),w=P((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=k(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),S=P((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||k(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),A=P((function(e,t){var n={};return _(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=k(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n}));function _(e){return function(e){return Array.isArray(e)||a(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function P(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function k(e,t,n){var r=e._modulesNamespaceMap[n];return r}function T(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function O(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function C(){var e=new Date;return" @ "+I(e.getHours(),2)+":"+I(e.getMinutes(),2)+":"+I(e.getSeconds(),2)+"."+I(e.getMilliseconds(),3)}function I(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var M={Store:f,install:b,version:"3.6.2",mapState:x,mapMutations:w,mapGetters:S,mapActions:A,createNamespacedHelpers:function(e){return{mapState:x.bind(null,e),mapGetters:S.bind(null,e),mapMutations:w.bind(null,e),mapActions:A.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var o=e.mutationTransformer;void 0===o&&(o=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var f=i(e.state);"undefined"!==typeof l&&(c&&e.subscribe((function(e,a){var s=i(a);if(n(e,f,s)){var c=C(),u=o(e),d="mutation "+e.type+c;T(l,d,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(f)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),O(l)}f=s})),u&&e.subscribeAction((function(e,n){if(a(e,n)){var r=C(),i=s(e),o="action "+e.type+r;T(l,o,t),l.log("%c action","color: #03A9F4; font-weight: bold",i),O(l)}})))}}};e.exports=M}).call(this,n("0ee4"))},"8f6b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lYearDays:function(e){var t,n=348;for(t=32768;t>8;t>>=1)n+=this.lunarInfo[e-1900]&t?1:0;return n+this.leapDays(e)},leapMonth:function(e){return 15&this.lunarInfo[e-1900]},leapDays:function(e){return this.leapMonth(e)?65536&this.lunarInfo[e-1900]?30:29:0},monthDays:function(e,t){return t>12||t<1?-1:this.lunarInfo[e-1900]&65536>>t?30:29},solarDays:function(e,t){if(t>12||t<1)return-1;var n=t-1;return 1==n?e%4==0&&e%100!=0||e%400==0?29:28:this.solarMonth[n]},toGanZhiYear:function(e){var t=(e-3)%10,n=(e-3)%12;return 0==t&&(t=10),0==n&&(n=12),this.Gan[t-1]+this.Zhi[n-1]},toAstro:function(e,t){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*e-(t<[20,19,21,21,21,22,23,23,23,23,22,22][e-1]?2:0),2)+"座"},toGanZhi:function(e){return this.Gan[e%10]+this.Zhi[e%12]},getTerm:function(e,t){if(e<1900||e>2100)return-1;if(t<1||t>24)return-1;var n=this.sTermInfo[e-1900],r=[parseInt("0x"+n.substr(0,5)).toString(),parseInt("0x"+n.substr(5,5)).toString(),parseInt("0x"+n.substr(10,5)).toString(),parseInt("0x"+n.substr(15,5)).toString(),parseInt("0x"+n.substr(20,5)).toString(),parseInt("0x"+n.substr(25,5)).toString()],i=[r[0].substr(0,1),r[0].substr(1,2),r[0].substr(3,1),r[0].substr(4,2),r[1].substr(0,1),r[1].substr(1,2),r[1].substr(3,1),r[1].substr(4,2),r[2].substr(0,1),r[2].substr(1,2),r[2].substr(3,1),r[2].substr(4,2),r[3].substr(0,1),r[3].substr(1,2),r[3].substr(3,1),r[3].substr(4,2),r[4].substr(0,1),r[4].substr(1,2),r[4].substr(3,1),r[4].substr(4,2),r[5].substr(0,1),r[5].substr(1,2),r[5].substr(3,1),r[5].substr(4,2)];return parseInt(i[t-1])},toChinaMonth:function(e){if(e>12||e<1)return-1;var t=this.nStr3[e-1];return t+="月",t},toChinaDay:function(e){var t;switch(e){case 10:t="初十";break;case 20:t="二十";break;case 30:t="三十";break;default:t=this.nStr2[Math.floor(e/10)],t+=this.nStr1[e%10]}return t},getAnimal:function(e){return this.Animals[(e-4)%12]},solar2lunar:function(e,t,n){if(e<1900||e>2100)return-1;if(1900==e&&1==t&&n<31)return-1;if(e)r=new Date(e,parseInt(t)-1,n);else var r=new Date;var i,o=0,a=(e=r.getFullYear(),t=r.getMonth()+1,n=r.getDate(),(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&a>0;i++)o=this.lYearDays(i),a-=o;a<0&&(a+=o,i--);var s=new Date,c=!1;s.getFullYear()==e&&s.getMonth()+1==t&&s.getDate()==n&&(c=!0);var u=r.getDay(),l=this.nStr1[u];0==u&&(u=7);var f=i,d=this.leapMonth(i),p=!1;for(i=1;i<13&&a>0;i++)d>0&&i==d+1&&0==p?(--i,p=!0,o=this.leapDays(f)):o=this.monthDays(f,i),1==p&&i==d+1&&(p=!1),a-=o;0==a&&d>0&&i==d+1&&(p?p=!1:(p=!0,--i)),a<0&&(a+=o,--i);var h=i,g=a+1,v=t-1,y=this.toGanZhiYear(f),m=this.getTerm(e,2*t-1),b=this.getTerm(e,2*t),x=this.toGanZhi(12*(e-1900)+t+11);n>=m&&(x=this.toGanZhi(12*(e-1900)+t+12));var w=!1,S=null;m==n&&(w=!0,S=this.solarTerm[2*t-2]),b==n&&(w=!0,S=this.solarTerm[2*t-1]);var A=Date.UTC(e,v,1,0,0,0,0)/864e5+25567+10,_=this.toGanZhi(A+n-1),P=this.toAstro(t,n);return{lYear:f,lMonth:h,lDay:g,Animal:this.getAnimal(f),IMonthCn:(p?"闰":"")+this.toChinaMonth(h),IDayCn:this.toChinaDay(g),cYear:e,cMonth:t,cDay:n,gzYear:y,gzMonth:x,gzDay:_,isToday:c,isLeap:p,nWeek:u,ncWeek:"星期"+l,isTerm:w,Term:S,astro:P}},lunar2solar:function(e,t,n,r){r=!!r;var i=this.leapMonth(e);this.leapDays(e);if(r&&i!=t)return-1;if(2100==e&&12==t&&n>1||1900==e&&1==t&&n<31)return-1;var o=this.monthDays(e,t),a=o;if(r&&(a=this.leapDays(e,t)),e<1900||e>2100||n>a)return-1;for(var s=0,c=1900;c0&&(s+=this.leapDays(e),l=!0),s+=this.monthDays(e,c);r&&(s+=o);var f=Date.UTC(1900,1,30,0,0,0),d=new Date(864e5*(s+n-31)+f),p=d.getUTCFullYear(),h=d.getUTCMonth()+1,g=d.getUTCDate();return this.solar2lunar(p,h,g)}},i=r;t.default=i},"8fdb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={input:{value:"",type:"text",fixed:!1,disabled:!1,disabledColor:"#f5f7fa",clearable:!1,password:!1,maxlength:-1,placeholder:null,placeholderClass:"input-placeholder",placeholderStyle:"color: #c0c4cc",showWordLimit:!1,confirmType:"done",confirmHold:!1,holdKeyboard:!1,focus:!1,autoBlur:!1,disableDefaultPadding:!1,cursor:-1,cursorSpacing:30,selectionStart:-1,selectionEnd:-1,adjustPosition:!0,inputAlign:"left",fontSize:"15px",color:"#303133",prefixIcon:"",prefixIconStyle:"",suffixIcon:"",suffixIconStyle:"",border:"surround",readonly:!1,shape:"square",formatter:null}}},"8fe3":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={album:{urls:function(){return[]},keyName:"",singleSize:180,multipleSize:70,space:6,singleMode:"scaleToFill",multipleMode:"aspectFill",maxCount:9,previewFullImage:!0,rowCount:3,showMore:!0}}},"8ffa":function(e,t,n){var r=n("7647");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&&r(e,t)},e.exports.__esModule=!0,e.exports["default"]=e.exports},9008: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},"906f":function(e,t,n){var r,i,o=n("3b2d");!function(a,s){"object"===o(t)&&"undefined"!==typeof e?e.exports=s():(r=s,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i))}(0,(function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",a="week",s="month",c="quarter",u="year",l="date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(e,t,n){var r=String(e);return!r||r.length>=t?e:"".concat(Array(t+1-r.length).join(n)).concat(e)},g={s:h,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return"".concat((t<=0?"+":"-")+h(r,2,"0"),":").concat(h(i,2,"0"))},m:function e(t,n){if(t.date()=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}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,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",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",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur",foreignobject:"foreignObject"}},a={},s=e.getSystemInfoSync(),c=s.windowWidth,u=s.system,l=d(" ,\r,\n,\t,\f"),f=0;function d(e){for(var t=Object.create(null),n=e.split(","),r=n.length;r--;)t[n[r]]=!0;return t}function p(e,t){var n=e.indexOf("&");while(-1!==n){var r=e.indexOf(";",n+3),i=void 0;if(-1===r)break;"#"===e[n+1]?(i=parseInt(("x"===e[n+2]?"0":"")+e.substring(n+2,r)),isNaN(i)||(e=e.substr(0,n)+String.fromCharCode(i)+e.substr(r+1))):(i=e.substring(n+1,r),(o.entities[i]||"amp"===i&&t)&&(e=e.substr(0,n)+(o.entities[i]||"&")+e.substr(r+1))),n=e.indexOf("&",n+1)}return e}function h(e){for(var t=e.length-1,n=t;n>=-1;n--)(-1===n||e[n].c||!e[n].name||"div"!==e[n].name&&"p"!==e[n].name&&"h"!==e[n].name[0]||(e[n].attrs.style||"").includes("inline"))&&(t-n>=5&&e.splice(n+1,t-n,{name:"div",attrs:{},children:e.slice(n+1,t+1)}),t=n-1)}function g(e){this.options=e||{},this.tagStyle=Object.assign({},o.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.imgList._unloadimgs=0,this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function v(e){this.handler=e}g.prototype.parse=function(e){for(var t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,o)||e);new v(this).parse(e);while(this.stack.length)this.popNode();return this.nodes.length>50&&h(this.nodes),this.nodes},g.prototype.expose=function(){for(var e=this.stack.length;e--;){var t=this.stack[e];if(t.c||"a"===t.name||"video"===t.name||"audio"===t.name)return;t.c=1}},g.prototype.hook=function(e){for(var t=this.plugins.length;t--;)if(this.plugins[t].onParse&&!1===this.plugins[t].onParse(e,this))return!1;return!0},g.prototype.getUrl=function(e){var t=this.options.domain;return"/"===e[0]?"/"===e[1]?e=(t?t.split("://")[0]:"http")+":"+e:t&&(e=t+e):e.includes("data:")||e.includes("://")||t&&(e=t+"/"+e),e},g.prototype.parseStyle=function(e){var t=e.attrs,n=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),r={},i="";t.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==e.name&&"a"!==e.name&&"video"!==e.name&&"audio"!==e.name&&(t.id=void 0)),t.width&&(r.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(r.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(var o=0,a=n.length;o0||f.includes("safe"))i+=";".concat(u,":").concat(f);else if(!r[u]||f.includes("import")||!r[u].includes("import")){if(f.includes("url")){var d=f.indexOf("(")+1;if(d){while('"'===f[d]||"'"===f[d]||l[f[d]])d++;f=f.substr(0,d)+this.getUrl(f.substr(d))}}else f.includes("rpx")&&(f=f.replace(/[0-9.]+\s*rpx/g,(function(e){return parseFloat(e)*c/750+"px"})));r[u]=f}}}return e.attrs.style=i,r},g.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1,o.ignoreTags.style=void 0)},g.prototype.onAttrName=function(e){e=this.xml?e:e.toLowerCase(),"data-"===e.substr(0,5)?"data-src"!==e||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=e:this.attrName=void 0:this.attrName="src":(this.attrName=e,this.attrs[e]="T")},g.prototype.onAttrVal=function(e){var t=this.attrName||"";"style"===t||"href"===t?this.attrs[t]=p(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(p(e,!0)):t&&(this.attrs[t]=e)},g.prototype.onOpenTag=function(e){var t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.options.nodes.length&&(t.type="node"),this.attrs=Object.create(null);var n=t.attrs,r=this.stack[this.stack.length-1],i=r?r.children:this.nodes,s=this.xml?e:o.voidTags[t.name];if(a[t.name]&&(n.class=a[t.name]+(n.class?" "+n.class:"")),"embed"===t.name){var u=n.src||"";u.includes(".mp4")||u.includes(".3gp")||u.includes(".m3u8")||(n.type||"").includes("video")?t.name="video":(u.includes(".mp3")||u.includes(".wav")||u.includes(".aac")||u.includes(".m4a")||(n.type||"").includes("audio"))&&(t.name="audio"),n.autostart&&(n.autoplay="T"),n.controls="T"}if("video"!==t.name&&"audio"!==t.name||("video"!==t.name||n.id||(n.id="v"+f++),n.controls||n.autoplay||(n.controls="T"),t.src=[],n.src&&(t.src.push(n.src),n.src=void 0),this.expose()),s){if(!this.hook(t)||o.ignoreTags[t.name])return void("base"!==t.name||this.options.domain?"source"===t.name&&r&&("video"===r.name||"audio"===r.name)&&n.src&&r.src.push(n.src):this.options.domain=n.href);var l=this.parseStyle(t);if("img"===t.name){if(n.src&&(n.src.includes("webp")&&(t.webp="T"),n.src.includes("data:")&&"all"!==this.options.previewImg&&!n["original-src"]&&(n.ignore="T"),!n.ignore||t.webp||n.src.includes("cloud://"))){for(var d=this.stack.length;d--;){var p=this.stack[d];"a"===p.name&&(t.a=p.attrs),"table"!==p.name||t.webp||n.src.includes("cloud://")||(!l.display||l.display.includes("inline")?t.t="inline-block":t.t=l.display,l.display=void 0);var h=p.attrs.style||"";if(!h.includes("flex:")||h.includes("flex:0")||h.includes("flex: 0")||l.width&&!(parseInt(l.width)>100))if(h.includes("flex")&&"100%"===l.width)for(var g=d+1;g.5?m[b].toUpperCase():m[b]}x+=m.substr(b),m=x}}this.imgList.push(m),t.t||(this.imgList._unloadimgs+=1)}"inline"===l.display&&(l.display=""),n.ignore&&(l["max-width"]=l["max-width"]||"100%",n.style+=";-webkit-touch-callout:none"),parseInt(l.width)>c&&(l.height=void 0),isNaN(parseInt(l.width))||(t.w="T"),!isNaN(parseInt(l.height))&&(!l.height.includes("%")||r&&(r.attrs.style||"").includes("height"))&&(t.h="T"),t.w&&t.h&&l["object-fit"]&&("contain"===l["object-fit"]?t.m="aspectFit":"cover"===l["object-fit"]&&(t.m="aspectFill"))}else if("svg"===t.name)return i.push(t),this.stack.push(t),void this.popNode();for(var w in l)l[w]&&(n.style+=";".concat(w,":").concat(l[w].replace(" !important","")));n.style=n.style.substr(1)||void 0}else("pre"===t.name||(n.style||"").includes("white-space")&&n.style.includes("pre"))&&2!==this.pre&&(this.pre=t.pre=1),t.children=[],this.stack.push(t);i.push(t)},g.prototype.onCloseTag=function(e){var t;for(e=this.xml?e:e.toLowerCase(),t=this.stack.length;t--;)if(this.stack[t].name===e)break;if(-1!==t)while(this.stack.length>t)this.popNode();else if("p"===e||"br"===e){var n=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;n.push({name:e,attrs:{class:a[e]||"",style:this.tagStyle[e]||""}})}},g.prototype.popNode=function(){var t=this.stack.pop(),i=t.attrs,a=t.children,s=this.stack[this.stack.length-1],u=s?s.children:this.nodes;if(!this.hook(t)||o.ignoreTags[t.name])return"title"===t.name&&a.length&&"text"===a[0].type&&this.options.setTitle&&e.setNavigationBarTitle({title:a[0].text}),void u.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(var l=this.stack.length;l--;)this.stack[l].pre&&(this.pre=1)}var f={};if("svg"===t.name){if(this.xml>1)return void this.xml--;var d="",p=i.style;return i.style="",i.xmlns="http://www.w3.org/2000/svg",function e(t){if("text"!==t.type){var n=o.svgDict[t.name]||t.name;if("foreignObject"===n){var i,a=r(t.children||[]);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(s.attrs&&!s.attrs.xmlns){s.attrs.xmlns="http://www.w3.org/1999/xhtml";break}}}catch(f){a.e(f)}finally{a.f()}}for(var c in d+="<"+n,t.attrs){var u=t.attrs[c];u&&(d+=" ".concat(o.svgDict[c]||c,'="').concat(u.replace(/"/g,""),'"'))}if(t.children){d+=">";for(var l=0;l"}else d+="/>"}else d+=t.text}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+d.replace(/#/g,"%23"),style:p,ignore:"T"},t.children=void 0,this.xml=!1,void(o.ignoreTags.style=!0)}if(i.align&&("table"===t.name?"center"===i.align?f["margin-inline-start"]=f["margin-inline-end"]="auto":f.float=i.align:f["text-align"]=i.align,i.align=void 0),i.dir&&(f.direction=i.dir,i.dir=void 0),"font"===t.name&&(i.color&&(f.color=i.color,i.color=void 0),i.face&&(f["font-family"]=i.face,i.face=void 0),i.size)){var g=parseInt(i.size);isNaN(g)||(g<1?g=1:g>7&&(g=7),f["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][g-1]),i.size=void 0}if((i.class||"").includes("align-center")&&(f["text-align"]="center"),Object.assign(f,this.parseStyle(t)),"table"!==t.name&&parseInt(f.width)>c&&(f["max-width"]="100%",f["box-sizing"]="border-box"),o.blockTags[t.name]?t.name="div":o.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name)this.expose();else if("video"===t.name)(f.height||"").includes("auto")&&(f.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c)if("table"===t.name){var v=parseFloat(i.cellpadding),y=parseFloat(i.cellspacing),m=parseFloat(i.border),b=f["border-color"],x=f["border-style"];if(t.c&&(isNaN(v)&&(v=2),isNaN(y)&&(y=2)),m&&(i.style+=";border:".concat(m,"px ").concat(x||"solid"," ").concat(b||"gray")),t.flag&&t.c){f.display="grid","collapse"===f["border-collapse"]&&(f["border-collapse"]=void 0,y=0),y?(f["grid-gap"]=y+"px",f.padding=y+"px"):m&&(i.style+=";border-left:0;border-top:0");var w=[],S=[],A=[],_={};(function e(t){for(var n=0;n=50&&t.c&&!(f.display||"").includes("flex")&&h(a),f)if(f[H]){var V=";".concat(H,":").concat(f[H].replace(" !important",""));Q&&(H.includes("flex")&&"flex-direction"!==H||"align-self"===H||H.includes("grid")||"-"===f[H][0]||H.includes("width")&&V.includes("%"))?(t.f+=V,"width"===H&&(i.style+=";width:100%")):i.style+=V}i.style=i.style.substr(1)||void 0},g.prototype.onText=function(t){if(!this.pre){for(var n,r="",i=0,o=t.length;i"===this.content[this.i]||t&&">"===this.content[this.i+1])&&(e&&this.handler[e](this.content.substring(this.start,this.i)),this.i+=t?2:1,this.start=this.i,this.handler.onOpenTag(t),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&e<="z"||e>="A"&&e<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===e||"!"===e||"?"===e){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));var t=this.content[this.i+2];if("/"===e&&(t>="a"&&t<="z"||t>="A"&&t<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);var n="--\x3e";"!"===e&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(n=">"),this.i=this.content.indexOf(n,this.i),-1!==this.i&&(this.i+=n.length,this.start=this.i)}else this.i++}else this.start"===e||"/"===e){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==e&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};var y=g;t.default=y}).call(this,n("df3c")["default"],n("3223")["default"])},"9bd5":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={line:{color:"#d6d7d9",length:"100%",direction:"row",hairline:!0,margin:0,dashed:!1}}},"9c92":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3240")),o=r(n("8f59")),a=r(n("4bb5")),s=r(n("0c2e")),c=r(n("871c")),u=r(n("e5c6")),l=r(n("4cda"));i.default.use(o.default);var f=new o.default.Store({modules:{auth:s.default,location:c.default,ws:u.default,policy:l.default},getters:a.default});t.default=f},"9c93":function(e,t,n){(function(e){var t=n("3b2d");e.addInterceptor({returnValue:function(e){return!e||"object"!==t(e)&&"function"!==typeof e||"function"!==typeof e.then?e:new Promise((function(t,n){e.then((function(e){return e[0]?n(e[0]):t(e[1])}))}))}})}).call(this,n("df3c")["default"])},"9eb1":function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("3e46")),o=i.default.color,a={icon:{name:"",color:o["u-content-color"],size:"16px",bold:!1,index:"",hoverClass:"",customPrefix:"uicon",label:"",labelPos:"right",labelSize:"15px",labelColor:o["u-content-color"],space:"3px",imgMode:"",width:"",height:"",top:0,stop:!1}};t.default=a},"9edb":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={notify:{top:0,type:"primary",color:"#ffffff",bgColor:"",message:"",duration:3e3,fontSize:15,safeAreaInsetTop:!1}}},"9fc1":function(e,t,n){var r=n("3b2d")["default"];function i(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return n},e.exports.__esModule=!0,e.exports["default"]=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,s=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(t){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,o=Object.create(i.prototype),a=new E(r||[]);return s(o,"_invoke",{value:O(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=p;var g="suspendedStart",v="executing",y="completed",m={};function b(){}function x(){}function w(){}var S={};d(S,u,(function(){return this}));var A=Object.getPrototypeOf,_=A&&A(A(j([])));_&&_!==o&&a.call(_,u)&&(S=_);var P=w.prototype=b.prototype=Object.create(S);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function T(e,t){function n(i,o,s,c){var u=h(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==r(f)&&a.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;s(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function O(e,n,r){var i=g;return function(o,a){if(i===v)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var c=C(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===g)throw i=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=v;var u=h(e,n,r);if("normal"===u.type){if(i=r.done?y:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(i=y,r.method="throw",r.arg=u.arg)}}}function C(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator["return"]&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function I(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(c&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},n}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},a20d:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{color:{type:String,default:e.$u.props.link.color},fontSize:{type:[String,Number],default:e.$u.props.link.fontSize},underLine:{type:Boolean,default:e.$u.props.link.underLine},href:{type:String,default:e.$u.props.link.href},mpTips:{type:String,default:e.$u.props.link.mpTips},lineColor:{type:String,default:e.$u.props.link.lineColor},text:{type:String,default:e.$u.props.link.text}}};t.default=n}).call(this,n("df3c")["default"])},a35d:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=null;var i=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var i=!r;r=setTimeout((function(){r=null}),t),i&&"function"===typeof e&&e()}else r=setTimeout((function(){"function"===typeof e&&e()}),t)};t.default=i},a3fc:function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,i="/"===a.charAt(0))}return t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"),(i?"/":"")+t||"."},t.normalize=function(e){var o=t.isAbsolute(e),a="/"===i(e,-1);return e=n(r(e.split("/"),(function(e){return!!e})),!o).join("/"),e||o||(e="."),e&&a&&(e+="/"),(o?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(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,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("28d0"))},a5f8:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{isDot:{type:Boolean,default:e.$u.props.badge.isDot},value:{type:[Number,String],default:e.$u.props.badge.value},show:{type:Boolean,default:e.$u.props.badge.show},max:{type:[Number,String],default:e.$u.props.badge.max},type:{type:String,default:e.$u.props.badge.type},showZero:{type:Boolean,default:e.$u.props.badge.showZero},bgColor:{type:[String,null],default:e.$u.props.badge.bgColor},color:{type:[String,null],default:e.$u.props.badge.color},shape:{type:String,default:e.$u.props.badge.shape},numberType:{type:String,default:e.$u.props.badge.numberType},offset:{type:Array,default:e.$u.props.badge.offset},inverted:{type:Boolean,default:e.$u.props.badge.inverted},absolute:{type:Boolean,default:e.$u.props.badge.absolute}}};t.default=n}).call(this,n("df3c")["default"])},a60c:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}};t.default=r},a6f7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default="mp"},a708:function(e,t,n){var r=n("6454");e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports},a822:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={gap:{bgColor:"transparent",height:20,marginTop:0,marginBottom:0,customStyle:{}}}},a86f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={countDown:{time:0,format:"HH:mm:ss",autoStart:!0,millisecond:!1}}},a9c4:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{col:{type:[String,Number],default:e.$u.props.grid.col},border:{type:Boolean,default:e.$u.props.grid.border},align:{type:String,default:e.$u.props.grid.align}}};t.default=n}).call(this,n("df3c")["default"])},aadf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={steps:{direction:"row",current:0,activeColor:"#3c9cff",inactiveColor:"#969799",activeIcon:"",inactiveIcon:"",dot:!1}}},aeae:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={actionSheet:{show:!1,title:"",description:"",actions:function(){return[]},index:"",cancelText:"",closeOnClickAction:!0,safeAreaInsetBottom:!0,openType:"",closeOnClickOverlay:!0,round:0}}},af34:function(e,t,n){var r=n("a708"),i=n("b893"),o=n("6382"),a=n("9008");e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports["default"]=e.exports},b0e4:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},b126:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("6f64")),o=r(n("7ea6")),a=r(n("1a16")),s={en:i.default,"zh-Hans":o.default,"zh-Hant":a.default};t.default=s},b49e:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{value:{type:[String,Number],default:e.$u.props.input.value},type:{type:String,default:e.$u.props.input.type},fixed:{type:Boolean,default:e.$u.props.input.fixed},disabled:{type:Boolean,default:e.$u.props.input.disabled},disabledColor:{type:String,default:e.$u.props.input.disabledColor},clearable:{type:Boolean,default:e.$u.props.input.clearable},password:{type:Boolean,default:e.$u.props.input.password},maxlength:{type:[String,Number],default:e.$u.props.input.maxlength},placeholder:{type:String,default:e.$u.props.input.placeholder},placeholderClass:{type:String,default:e.$u.props.input.placeholderClass},placeholderStyle:{type:[String,Object],default:e.$u.props.input.placeholderStyle},showWordLimit:{type:Boolean,default:e.$u.props.input.showWordLimit},confirmType:{type:String,default:e.$u.props.input.confirmType},confirmHold:{type:Boolean,default:e.$u.props.input.confirmHold},holdKeyboard:{type:Boolean,default:e.$u.props.input.holdKeyboard},focus:{type:Boolean,default:e.$u.props.input.focus},autoBlur:{type:Boolean,default:e.$u.props.input.autoBlur},disableDefaultPadding:{type:Boolean,default:e.$u.props.input.disableDefaultPadding},cursor:{type:[String,Number],default:e.$u.props.input.cursor},cursorSpacing:{type:[String,Number],default:e.$u.props.input.cursorSpacing},selectionStart:{type:[String,Number],default:e.$u.props.input.selectionStart},selectionEnd:{type:[String,Number],default:e.$u.props.input.selectionEnd},adjustPosition:{type:Boolean,default:e.$u.props.input.adjustPosition},inputAlign:{type:String,default:e.$u.props.input.inputAlign},fontSize:{type:[String,Number],default:e.$u.props.input.fontSize},color:{type:String,default:e.$u.props.input.color},prefixIcon:{type:String,default:e.$u.props.input.prefixIcon},prefixIconStyle:{type:[String,Object],default:e.$u.props.input.prefixIconStyle},suffixIcon:{type:String,default:e.$u.props.input.suffixIcon},suffixIconStyle:{type:[String,Object],default:e.$u.props.input.suffixIconStyle},border:{type:String,default:e.$u.props.input.border},readonly:{type:Boolean,default:e.$u.props.input.readonly},shape:{type:String,default:e.$u.props.input.shape},formatter:{type:[Function,null],default:e.$u.props.input.formatter},ignoreCompositionEvent:{type:Boolean,default:!0}}};t.default=n}).call(this,n("df3c")["default"])},b4d2:function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},b4f7:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{length:{type:[String,Number],default:e.$u.props.swiperIndicator.length},current:{type:[String,Number],default:e.$u.props.swiperIndicator.current},indicatorActiveColor:{type:String,default:e.$u.props.swiperIndicator.indicatorActiveColor},indicatorInactiveColor:{type:String,default:e.$u.props.swiperIndicator.indicatorInactiveColor},indicatorMode:{type:String,default:e.$u.props.swiperIndicator.indicatorMode}}};t.default=n}).call(this,n("df3c")["default"])},b59c:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{show:{type:Boolean,default:e.$u.props.modal.show},title:{type:[String],default:e.$u.props.modal.title},content:{type:String,default:e.$u.props.modal.content},confirmText:{type:String,default:e.$u.props.modal.confirmText},cancelText:{type:String,default:e.$u.props.modal.cancelText},showConfirmButton:{type:Boolean,default:e.$u.props.modal.showConfirmButton},showCancelButton:{type:Boolean,default:e.$u.props.modal.showCancelButton},confirmColor:{type:String,default:e.$u.props.modal.confirmColor},cancelColor:{type:String,default:e.$u.props.modal.cancelColor},buttonReverse:{type:Boolean,default:e.$u.props.modal.buttonReverse},zoom:{type:Boolean,default:e.$u.props.modal.zoom},asyncClose:{type:Boolean,default:e.$u.props.modal.asyncClose},closeOnClickOverlay:{type:Boolean,default:e.$u.props.modal.closeOnClickOverlay},negativeTop:{type:[String,Number],default:e.$u.props.modal.negativeTop},width:{type:[String,Number],default:e.$u.props.modal.width},confirmButtonShape:{type:String,default:e.$u.props.modal.confirmButtonShape}}};t.default=n}).call(this,n("df3c")["default"])},b64e:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={avatarGroup:{urls:function(){return[]},maxCount:5,shape:"circle",mode:"scaleToFill",showMore:!0,size:40,keyName:"",gap:.5,extraValue:0}}},b893: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},b9d8:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{name:{type:String,default:e.$u.props.icon.name},color:{type:String,default:e.$u.props.icon.color},size:{type:[String,Number],default:e.$u.props.icon.size},bold:{type:Boolean,default:e.$u.props.icon.bold},index:{type:[String,Number],default:e.$u.props.icon.index},hoverClass:{type:String,default:e.$u.props.icon.hoverClass},customPrefix:{type:String,default:e.$u.props.icon.customPrefix},label:{type:[String,Number],default:e.$u.props.icon.label},labelPos:{type:String,default:e.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:e.$u.props.icon.labelSize},labelColor:{type:String,default:e.$u.props.icon.labelColor},space:{type:[String,Number],default:e.$u.props.icon.space},imgMode:{type:String,default:e.$u.props.icon.imgMode},width:{type:[String,Number],default:e.$u.props.icon.width},height:{type:[String,Number],default:e.$u.props.icon.height},top:{type:[String,Number],default:e.$u.props.icon.top},stop:{type:Boolean,default:e.$u.props.icon.stop}}};t.default=n}).call(this,n("df3c")["default"])},ba37:function(e,t){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+f>=1?d/c:d*Math.pow(2,1-f),t*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*g}},baa6:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{show:{type:Boolean,default:e.$u.props.popup.show},overlay:{type:Boolean,default:e.$u.props.popup.overlay},mode:{type:String,default:e.$u.props.popup.mode},duration:{type:[String,Number],default:e.$u.props.popup.duration},closeable:{type:Boolean,default:e.$u.props.popup.closeable},overlayStyle:{type:[Object,String],default:e.$u.props.popup.overlayStyle},closeOnClickOverlay:{type:Boolean,default:e.$u.props.popup.closeOnClickOverlay},zIndex:{type:[String,Number],default:e.$u.props.popup.zIndex},safeAreaInsetBottom:{type:Boolean,default:e.$u.props.popup.safeAreaInsetBottom},safeAreaInsetTop:{type:Boolean,default:e.$u.props.popup.safeAreaInsetTop},closeIconPos:{type:String,default:e.$u.props.popup.closeIconPos},round:{type:[Boolean,String,Number],default:e.$u.props.popup.round},zoom:{type:Boolean,default:e.$u.props.popup.zoom},bgColor:{type:String,default:e.$u.props.popup.bgColor},overlayOpacity:{type:[Number,String],default:e.$u.props.popup.overlayOpacity}}};t.default=n}).call(this,n("df3c")["default"])},bac2:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={slider:{value:0,blockSize:18,min:0,max:100,step:1,activeColor:"#2979ff",inactiveColor:"#c0c4cc",blockColor:"#ffffff",showValue:!1,disabled:!1,blockStyle:function(){}}}},bc1f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={grid:{col:3,border:!1,align:"left"}}},bc29:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{safeAreaInsetTop:{type:Boolean,default:e.$u.props.navbar.safeAreaInsetTop},placeholder:{type:Boolean,default:e.$u.props.navbar.placeholder},fixed:{type:Boolean,default:e.$u.props.navbar.fixed},border:{type:Boolean,default:e.$u.props.navbar.border},leftIcon:{type:String,default:e.$u.props.navbar.leftIcon},leftText:{type:String,default:e.$u.props.navbar.leftText},rightText:{type:String,default:e.$u.props.navbar.rightText},rightIcon:{type:String,default:e.$u.props.navbar.rightIcon},title:{type:[String,Number],default:e.$u.props.navbar.title},bgColor:{type:String,default:e.$u.props.navbar.bgColor},titleWidth:{type:[String,Number],default:e.$u.props.navbar.titleWidth},height:{type:[String,Number],default:e.$u.props.navbar.height},leftIconSize:{type:[String,Number],default:e.$u.props.navbar.leftIconSize},leftIconColor:{type:String,default:e.$u.props.navbar.leftIconColor},autoBack:{type:Boolean,default:e.$u.props.navbar.autoBack},titleStyle:{type:[String,Object],default:e.$u.props.navbar.titleStyle}}};t.default=n}).call(this,n("df3c")["default"])},bc55:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={calendar:{title:"日期选择",showTitle:!0,showSubtitle:!0,mode:"single",startText:"开始",endText:"结束",customList:function(){return[]},color:"#3c9cff",minDate:0,maxDate:0,defaultDate:null,maxCount:Number.MAX_SAFE_INTEGER,rowHeight:56,formatter:null,showLunar:!1,showMark:!0,confirmText:"确定",confirmDisabledText:"确定",show:!1,closeOnClickOverlay:!1,readonly:!1,showConfirm:!0,maxRange:Number.MAX_SAFE_INTEGER,rangePrompt:"",showRangePrompt:!0,allowSameDay:!1,round:0,monthNum:3}};t.default=r},bd3d:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),o=r(n("9c92")),a=n("599f");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},n=o.default.state.auth.token;o.default.state.location.current;return t.header={"Content-Type":"application/x-www-form-urlencoded",Accept:"application/json",Authorization:n.token_type+" "+n.access_token},new Promise((function(n,r){401==u&&(u=0);var i=t.url;-1==t.url.indexOf("https://")&&(i=a.API_URL+t.url),e.request({url:i||"",method:t.type||"GET",data:c({},t.data)||{},timeout:5e4,header:t.header||{},success:function(t){void 0!=t&&401==t.statusCode&&(0==u&&(o.default.commit("auth/resetUser"),o.default.commit("auth/resetToken"),e.clearStorageSync(),e.showModal({title:"提示",content:"为提供更好的服务,请登录后继续",confirmText:"立即登录",cancelText:"随便逛逛",success:function(t){t.confirm?e.navigateTo({url:"/pages/me/login"}):t.cancel&&console.log("用户点击取消")}})),u=401),void 0!=t&&429==t.statusCode&&e.showToast({icon:"none",title:t.data.msg,duration:3e3}),void 0==t||200!=t.statusCode||t.data.success||e.showToast({icon:"none",title:t.data.msg,duration:3e3}),200==t.statusCode&&t.data.success&&1==t.data.show&&e.showToast({icon:"none",title:t.data.msg,duration:3e3}),n(t.data)},fail:function(t){e.showToast({title:t.errMsg,icon:"error"}),r(t)}})}))},f={request:l,get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.type="GET",n.data=t,n.url=e,l(n)},post:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.type="POST",n.data=t,n.url=e,l(n)}};t.default=f}).call(this,n("df3c")["default"])},be61:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={text:{type:"",show:!0,text:"",prefixIcon:"",suffixIcon:"",mode:"",href:"",format:"",call:!1,openType:"",bold:!1,block:!1,lines:"",color:"#303133",size:15,iconStyle:function(){return{fontSize:"15px"}},decoration:"none",margin:0,lineHeight:"",align:"left",wordWrap:"normal"}}},c0ac:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={rate:{value:1,count:5,disabled:!1,size:18,inactiveColor:"#b2b2b2",activeColor:"#FA3534",gutter:4,minCount:1,allowHalf:!1,activeIcon:"star-fill",inactiveIcon:"star",touchable:!0}}},c1e3:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={popup:{show:!1,overlay:!0,mode:"bottom",duration:300,closeable:!1,overlayStyle:function(){},closeOnClickOverlay:!0,zIndex:10075,safeAreaInsetBottom:!0,safeAreaInsetTop:!1,closeIconPos:"top-right",round:0,zoom:!0,bgColor:"",overlayOpacity:.5}}},c243:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("7ca3")),o=r(n("3b2d"));function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=o)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(n){return"[Circular]"}break;default:return e}})),s=t[r];r()\[\]\\.,;:\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},b={integer:function(e){return/^(-)?\d+$/.test(e)},float:function(e){return/^(-)?\d+(\.\d+)?$/.test(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,o.default)(e)&&!b.array(e)},method:function(e){return"function"===typeof e},email:function(e){return"string"===typeof e&&!!e.match(m.email)&&e.length<255},url:function(e){return"string"===typeof e&&!!e.match(m.url)},hex:function(e){return"string"===typeof e&&!!e.match(m.hex)}};var x={required:y,whitespace:function(e,t,n,r,i){(/^\s+$/.test(t)||""===t)&&r.push(f(i.messages.whitespace,e.fullField))},type:function(e,t,n,r,i){if(e.required&&void 0===t)y(e,t,n,r,i);else{var a=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(a)>-1?b[a](t)||r.push(f(i.messages.types[a],e.fullField,e.type)):a&&(0,o.default)(t)!==e.type&&r.push(f(i.messages.types[a],e.fullField,e.type))}},range:function(e,t,n,r,i){var o="number"===typeof e.len,a="number"===typeof e.min,s="number"===typeof e.max,c=t,u=null,l="number"===typeof t,d="string"===typeof t,p=Array.isArray(t);if(l?u="number":d?u="string":p&&(u="array"),!u)return!1;p&&(c=t.length),d&&(c=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?c!==e.len&&r.push(f(i.messages[u].len,e.fullField,e.len)):a&&!s&&ce.max?r.push(f(i.messages[u].max,e.fullField,e.max)):a&&s&&(ce.max)&&r.push(f(i.messages[u].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,i){e["enum"]=Array.isArray(e["enum"])?e["enum"]:[],-1===e["enum"].indexOf(t)&&r.push(f(i.messages["enum"],e.fullField,e["enum"].join(", ")))},pattern:function(e,t,n,r,i){if(e.pattern)if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||r.push(f(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if("string"===typeof e.pattern){var o=new RegExp(e.pattern);o.test(t)||r.push(f(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}};function w(e,t,n,r,i){var o=e.type,a=[],s=e.required||!e.required&&r.hasOwnProperty(e.field);if(s){if(d(t,o)&&!e.required)return n();x.required(e,t,r,a,i,o),d(t,o)||x.type(e,t,r,a,i)}n(a)}var S={string:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();x.required(e,t,r,o,i,"string"),d(t,"string")||(x.type(e,t,r,o,i),x.range(e,t,r,o,i),x.pattern(e,t,r,o,i),!0===e.whitespace&&x.whitespace(e,t,r,o,i))}n(o)},method:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.type(e,t,r,o,i)}n(o)},number:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(""===t&&(t=void 0),d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},boolean:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.type(e,t,r,o,i)}n(o)},regexp:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),d(t)||x.type(e,t,r,o,i)}n(o)},integer:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},float:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},array:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t,"array")&&!e.required)return n();x.required(e,t,r,o,i,"array"),d(t,"array")||(x.type(e,t,r,o,i),x.range(e,t,r,o,i))}n(o)},object:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x.type(e,t,r,o,i)}n(o)},enum:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i),void 0!==t&&x["enum"](e,t,r,o,i)}n(o)},pattern:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t,"string")&&!e.required)return n();x.required(e,t,r,o,i),d(t,"string")||x.pattern(e,t,r,o,i)}n(o)},date:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();var s;if(x.required(e,t,r,o,i),!d(t))s="number"===typeof t?new Date(t):t,x.type(e,s,r,o,i),s&&x.range(e,s.getTime(),r,o,i)}n(o)},url:w,hex:w,email:w,required:function(e,t,n,r,i){var a=[],s=Array.isArray(t)?"array":(0,o.default)(t);x.required(e,t,r,a,i,s),n(a)},any:function(e,t,n,r,i){var o=[],a=e.required||!e.required&&r.hasOwnProperty(e.field);if(a){if(d(t)&&!e.required)return n();x.required(e,t,r,o,i)}n(o)}};function A(){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 _=A();function P(e){this.rules=null,this._messages=_,this.define(e)}P.prototype={messages:function(e){return e&&(this._messages=v(A(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(0,o.default)(e)||Array.isArray(e))throw new Error("Rules must be an object");var t,n;for(t in this.rules={},e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=function(){});var i,a,c=e,u=t,d=n;if("function"===typeof u&&(d=u,u={}),!this.rules||0===Object.keys(this.rules).length)return d&&d(),Promise.resolve();if(u.messages){var p=this.messages();p===_&&(p=A()),v(p,u.messages),u.messages=p}else u.messages=this.messages();var y={},m=u.keys||Object.keys(this.rules);m.forEach((function(t){i=r.rules[t],a=c[t],i.forEach((function(n){var i=n;"function"===typeof i.transform&&(c===e&&(c=s({},c)),a=c[t]=i.transform(a)),i="function"===typeof i?{validator:i}:s({},i),i.validator=r.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=r.getType(i),i.validator&&(y[t]=y[t]||[],y[t].push({rule:i,value:a,source:c,field:t}))}))}));var b={};return h(y,u,(function(e,t){var n,r=e.rule,i=("object"===r.type||"array"===r.type)&&("object"===(0,o.default)(r.fields)||"object"===(0,o.default)(r.defaultField));function a(e,t){return s(s({},t),{},{fullField:"".concat(r.fullField,".").concat(e)})}function c(n){void 0===n&&(n=[]);var o=n;if(Array.isArray(o)||(o=[o]),!u.suppressWarning&&o.length&&P.warning("async-validator:",o),o.length&&r.message&&(o=[].concat(r.message)),o=o.map(g(r)),u.first&&o.length)return b[r.field]=1,t(o);if(i){if(r.required&&!e.value)return o=r.message?[].concat(r.message).map(g(r)):u.error?[u.error(r,f(u.messages.required,r.field))]:[],t(o);var c={};if(r.defaultField)for(var l in e.value)e.value.hasOwnProperty(l)&&(c[l]=r.defaultField);for(var d in c=s(s({},c),e.rule.fields),c)if(c.hasOwnProperty(d)){var p=Array.isArray(c[d])?c[d]:[c[d]];c[d]=p.map(a.bind(null,d))}var h=new P(c);h.messages(u.messages),e.rule.options&&(e.rule.options.messages=u.messages,e.rule.options.error=u.error),h.validate(e.value,e.rule.options||u,(function(e){var n=[];o&&o.length&&n.push.apply(n,o),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(o)}i=i&&(r.required||!r.required&&e.value),r.field=e.field,r.asyncValidator?n=r.asyncValidator(r,e.value,c,e.source,u):r.validator&&(n=r.validator(r,e.value,c,e.source,u),!0===n?c():!1===n?c(r.message||"".concat(r.field," fails")):n instanceof Array?c(n):n instanceof Error&&c(n.message)),n&&n.then&&n.then((function(){return c()}),(function(e){return c(e)}))}),(function(e){(function(e){var t,n=[],r={};function i(e){var t;Array.isArray(e)?n=(t=n).concat.apply(t,e):n.push(e)}for(t=0;t0&&void 0!==arguments[0]?arguments[0]:{};(0,o.default)(this,e),(0,f.isPlainObject)(t)||(t={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,d.default)(h(h({},l.default),t)),this.interceptors={request:new c.default,response:new c.default}}return(0,a.default)(e,[{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"middleware",value:function(e){e=(0,u.default)(this.config,e);var t=[s.default,void 0],n=Promise.resolve(e);this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));while(t.length)n=n.then(t.shift(),t.shift());return n}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.middleware(e)}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.middleware(h({url:e,method:"GET"},t))}},{key:"post",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"POST"},n))}},{key:"put",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"PUT"},n))}},{key:"delete",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"DELETE"},n))}},{key:"connect",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"CONNECT"},n))}},{key:"head",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"HEAD"},n))}},{key:"options",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"OPTIONS"},n))}},{key:"trace",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(h({url:e,data:t,method:"TRACE"},n))}},{key:"upload",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="UPLOAD",this.middleware(t)}},{key:"download",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url=e,t.method="DOWNLOAD",this.middleware(t)}}]),e}();t.default=g},c288:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={tabbarItem:{name:null,icon:"",badge:null,dot:!1,text:"",badgeStyle:"top: 6px;right:2px;"}}},c2ed:function(e,t,n){"use strict";var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.deepMerge=function e(){var t={};function n(n,r){"object"===(0,i.default)(t[r])&&"object"===(0,i.default)(n)?t[r]=e(t[r],n):"object"===(0,i.default)(n)?t[r]=e({},n):t[r]=n}for(var r=0,o=arguments.length;r0&&void 0!==arguments[0]?arguments[0]:"uniPopup",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};t.default=r},d003:function(e,t,n){"use strict";(function(e){var r=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("9c92")),o={token:function(){var t=e.getStorageSync("token");if(!t.access_token)return e.showModal({title:"提示",content:"为提供更好的服务,请登录后继续",cancelText:"随便逛逛",confirmText:"立即登录",success:function(t){t.confirm?e.navigateTo({url:"/pages/me/login"}):t.cancel}}),!0},tn:function(t,n){var r=e.getStorageSync("token");if(n&&!r.access_token)return this.token();e.navigateTo({url:t})},logOut:function(){var t=e.getStorageSync("token");t.access_token?e.showModal({title:"提示",content:"是否确认退出登录",cancelText:"取消",confirmText:"确定",success:function(t){t.confirm?(i.default.commit("auth/resetUser"),i.default.commit("auth/resetToken"),e.navigateTo({url:"/pages/me/login"})):t.cancel}}):e.showModal({title:"提示",content:"您还未进行登录,是否前往登录?",cancelText:"取消",confirmText:"确定",success:function(t){t.confirm?e.navigateTo({url:"/pages/me/login"}):t.cancel}})},call:function(t){e.makePhoneCall({phoneNumber:t})},copy:function(t,n){e.setClipboardData({data:t,success:function(){e.showToast({title:n||"复制成功",icon:"none"})}})}};t.default=o}).call(this,n("df3c")["default"])},d2e0:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={transition:{show:!1,mode:"fade",duration:"300",timingFunction:"ease-out"}}},d3b4:function(e,t,n){"use strict";(function(e,r){var i=n("47a9");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 n=t.locale,r=t.locales,i=t.delimiters;if(!P(e,i))return e;A||(A=new f);var o=[];Object.keys(r).forEach((function(e){e!==n&&o.push({locale:e,values:r[e]})})),o.unshift({locale:n,values:r[n]});try{return JSON.stringify(T(JSON.parse(e),o,i),null,2)}catch(a){}return e},t.hasI18nJson=function e(t,n){A||(A=new f);return O(t,(function(t,r){var i=t[r];return _(i)?!!P(i,n)||void 0:e(i,n)}))},t.initVueI18n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=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=S());"string"!==typeof n&&(n="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||"en");var o=new x({locale:e,fallbackLocale:n,messages:t,watcher:r}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var n=!1;a=function(e,t){var r=getApp().$vm;return r&&(r.$locale,n||(n=!0,w(r,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,n){return o.f(e,t,n)},t:function(e,t){return a(e,t)},add:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,n)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}},t.isI18nStr=P,t.isString=void 0,t.normalizeLocale=b,t.parseI18nJson=function e(t,n,r){A||(A=new f);return O(t,(function(t,i){var o=t[i];_(o)?P(o,r)&&(t[i]=k(o,n,r)):e(o,n,r)})),t},t.resolveLocale=function(e){return function(t){return t?(t=b(t)||t,function(e){var t=[],n=e.split("-");while(n.length)t.push(n.join("-")),n.pop();return t}(t).find((function(t){return e.indexOf(t)>-1}))):t}};var o=i(n("34cf")),a=i(n("67ad")),s=i(n("0bdb")),c=i(n("3b2d")),u=function(e){return null!==e&&"object"===(0,c.default)(e)},l=["{","}"],f=function(){function e(){(0,a.default)(this,e),this._caches=Object.create(null)}return(0,s.default)(e,[{key:"interpolate",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l;if(!t)return[e];var r=this._caches[e];return r||(r=h(e,n),this._caches[e]=r),g(r,t)}}]),e}();t.Formatter=f;var d=/^(?:\d)+/,p=/^(?:\w)+/;function h(e,t){var n=(0,o.default)(t,2),r=n[0],i=n[1],a=[],s=0,c="";while(s-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 n=["en","fr","es"];t&&Object.keys(t).length>0&&(n=Object.keys(t));var r=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,n);return r||void 0}}var x=function(){function e(t){var n=t.locale,r=t.fallbackLocale,i=t.messages,o=t.watcher,s=t.formater;(0,a.default)(this,e),this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],r&&(this.fallbackLocale=r),this.formater=s||m,this.messages=i||{},this.setLocale(n||"en"),o&&this.watchLocale(o)}return(0,s.default)(e,[{key:"setLocale",value:function(e){var t=this,n=this.locale;this.locale=b(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],n!==this.locale&&this.watchers.forEach((function(e){e(t.locale,n)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,n=this.watchers.push(e)-1;return function(){t.watchers.splice(n,1)}}},{key:"add",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.messages[e];r?n?Object.assign(r,t):Object.keys(t).forEach((function(e){y(r,e)||(r[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,n){return this.formater.interpolate(e,t,n).join("")}},{key:"t",value:function(e,t,n){var r=this.message;return"string"===typeof t?(t=b(t,this.messages),t&&(r=this.messages[t])):n=t,y(r,e)?this.formater.interpolate(r[e],n).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function w(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function S(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():"en"}t.I18n=x;var A,_=function(e){return"string"===typeof e};function P(e,t){return e.indexOf(t[0])>-1}function k(e,t,n){return A.interpolate(e,t,n).join("")}function T(e,t,n){return O(e,(function(e,r){(function(e,t,n,r){var i=e[t];if(_(i)){if(P(i,r)&&(e[t]=k(i,n[0].values,r),n.length>1)){var o=e[t+"Locales"]={};n.forEach((function(e){o[e.locale]=k(i,e.values,r)}))}}else T(i,n,r)})(e,r,t,n)})),e}function O(e,t){if(Array.isArray(e)){for(var n=0;n>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var m=Object.prototype.toString,b=Object.prototype.hasOwnProperty;function x(e){return"function"===typeof e}function w(e){return"string"===typeof e}function S(e){return"[object Object]"===m.call(e)}function A(e,t){return b.call(e,t)}function _(){}function P(e){var t=Object.create(null);return function(n){var r=t[n];return r||(t[n]=e(n))}}var k=/-(\w)/g,T=P((function(e){return e.replace(k,(function(e,t){return t?t.toUpperCase():""}))}));function O(e){var t={};return S(e)&&Object.keys(e).sort().forEach((function(n){t[n]=e[n]})),Object.keys(t)?t:e}var C=["invoke","success","fail","complete","returnValue"],I={},M={};function E(e,t){Object.keys(t).forEach((function(n){-1!==C.indexOf(n)&&x(t[n])&&(e[n]=function(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(n){if(Array.isArray(e[n])){var r=t[n];t[n]=function(i){L(e[n],i,t).then((function(e){return x(r)&&r(e)||e}))}}})),t}function $(e,t){var n=[];Array.isArray(I.returnValue)&&n.push.apply(n,(0,u.default)(I.returnValue));var r=M[e];return r&&Array.isArray(r.returnValue)&&n.push.apply(n,(0,u.default)(r.returnValue)),n.forEach((function(e){t=e(t)||t})),t}function N(e){var t=Object.create(null);Object.keys(I).forEach((function(e){"returnValue"!==e&&(t[e]=I[e].slice())}));var n=M[e];return n&&Object.keys(n).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function R(e,t,n){for(var r=arguments.length,i=new Array(r>3?r-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length,i=new Array(r>1?r-1:0),o=1;o-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 n=function(e,t){return t.find((function(t){return 0===e.indexOf(t)}))}(e,["en","fr","es"]);return n||void 0}}function ae(){if(x(getApp)){var t=getApp({allowDefault:!0});if(t&&t.$vm)return t.$vm.$locale}return oe(e.getSystemInfoSync().language)||"en"}var se=[];"undefined"!==typeof r&&(r.getLocale=ae);var ce={promiseInterceptor:z},ue=Object.freeze({__proto__:null,upx2px:function(t,n){if(0===Z&&function(){var t=e.getSystemInfoSync(),n=t.platform,r=t.pixelRatio,i=t.windowWidth;Z=i,ee=r,X="ios"===n}(),t=Number(t),0===t)return 0;var r=t/750*(n||Z);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r&&(r=1!==ee&&X?.5:1),t<0?-r:r},getLocale:ae,setLocale:function(e){var t=!!x(getApp)&&getApp();if(!t)return!1;var n=t.$vm.$locale;return n!==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&&S(t)?E(M[e]||(M[e]={}),t):S(e)&&E(I,e)},removeInterceptor:function(e,t){"string"===typeof e?S(t)?j(M[e],t):delete M[e]:S(e)&&j(I,e)},interceptors:ce});var le,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(),n=t.length;while(n--){var r=t[n];if(r.$page&&r.$page.fullPath===e)return n}return-1}(e.url);if(-1!==t){var n=getCurrentPages().length-1-t;n>0&&(e.delta=n)}}}},de={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var n=e.urls;if(Array.isArray(n)){var r=n.length;if(r)return t<0?t=0:t>=r&&(t=r-1),t>0?(e.current=n[t],e.urls=n.filter((function(e,r){return!(r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(S(t)){var o=!0===i?t:{};for(var a in x(n)&&(n=n(t,o)||{}),t)if(A(n,a)){var s=n[a];x(s)&&(s=s(t[a],t,o)),s?w(s)?o[s]=t[a]:S(s)&&(o[s.name?s.name:a]=s.value):console.warn("The '".concat(e,"' method of platform '微信小程序' does not support option '").concat(a,"'"))}else-1!==Pe.indexOf(a)?x(t[a])&&(o[a]=ke(e,t[a],r)):i||(o[a]=t[a]);return o}return x(t)&&(t=ke(e,t,r)),t}function Oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return x(_e.returnValue)&&(t=_e.returnValue(e,t)),Te(e,t,n,{},r)}function Ce(t,n){if(A(_e,t)){var r=_e[t];return r?function(n,i){var o=r;x(r)&&(o=r(n)),n=Te(t,n,o.args,o.returnValue);var a=[n];"undefined"!==typeof i&&a.push(i),x(o.name)?t=o.name(n):w(o.name)&&(t=o.name);var s=e[t].apply(e,a);return G(t)?Oe(t,s,o.returnValue,V(t)):s}:function(){console.error("Platform '微信小程序' does not support '".concat(t,"'."))}}return n}var Ie=Object.create(null);["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"].forEach((function(e){Ie[e]=function(e){return function(t){var n=t.fail,r=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};x(n)&&n(i),x(r)&&r(i)}}(e)}));var Me={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};var Ee=Object.freeze({__proto__:null,getProvider:function(e){var t=e.service,n=e.success,r=e.fail,i=e.complete,o=!1;Me[t]?(o={errMsg:"getProvider:ok",service:t,provider:Me[t]},x(n)&&n(o)):(o={errMsg:"getProvider:fail service not found"},x(r)&&r(o)),x(i)&&i(o)}}),je=function(){var e;return function(){return e||(e=new d.default),e}}();function De(e,t,n){return e[t].apply(e,n)}var Be,Le,Fe,$e=Object.freeze({__proto__:null,$on:function(){return De(je(),"$on",Array.prototype.slice.call(arguments))},$off:function(){return De(je(),"$off",Array.prototype.slice.call(arguments))},$once:function(){return De(je(),"$once",Array.prototype.slice.call(arguments))},$emit:function(){return De(je(),"$emit",Array.prototype.slice.call(arguments))}});function Ne(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Re(e){try{return JSON.parse(e)}catch(t){}return e}var ze=[];function Ue(e,t){ze.forEach((function(n){n(e,t)})),ze.length=0}var qe=[],We=e.getAppBaseInfo&&e.getAppBaseInfo();We||(We=e.getSystemInfoSync());var Qe=We?We.host:null,He=Qe&&"SAAASDK"===Qe.env?e.miniapp.shareVideoMessage:e.shareVideoMessage,Ve=Object.freeze({__proto__:null,shareVideoMessage:He,getPushClientId:function(e){S(e)||(e={});var t=function(e){var t={};for(var n in e){var r=e[n];x(r)&&(t[n]=Ne(r),delete e[n])}return t}(e),n=t.success,r=t.fail,i=t.complete,o=x(n),a=x(r),s=x(i);Promise.resolve().then((function(){"undefined"===typeof Fe&&(Fe=!1,Be="",Le="uniPush is not enabled"),ze.push((function(e,t){var c;e?(c={errMsg:"getPushClientId:ok",cid:e},o&&n(c)):(c={errMsg:"getPushClientId:fail"+(t?" "+t:"")},a&&r(c)),s&&i(c)})),"undefined"!==typeof Be&&Ue(Be,Le)}))},onPushMessage:function(e){-1===qe.indexOf(e)&&qe.push(e)},offPushMessage:function(e){if(e){var t=qe.indexOf(e);t>-1&&qe.splice(t,1)}else qe.length=0},invokePushCallback:function(e){if("enabled"===e.type)Fe=!0;else if("clientId"===e.type)Be=e.cid,Le=e.errMsg,Ue(Be,e.errMsg);else if("pushMsg"===e.type)for(var t={type:"receive",data:Re(e.message)},n=0;n=0;o--){var a=i[o];if(a.$scope._$vueId===n)return a}for(var s=i.length-1;s>=0;s--)if(r=e(i[s],n),r)return r}(this.$vm,r)),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,l.default)(e)}(e)&&Object.isExtensible(e)&&Object.defineProperty(e,"__ob__",{configurable:!0,enumerable:!1,value:(0,s.default)({},"__v_skip",!0)}),e}var nt=/_(.*)_worklet_factory_/;var rt=Page,it=Component,ot=/:/g,at=P((function(e){return T(e.replace(ot,"-"))}));function st(e){var t=e.triggerEvent,n=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};return ct("onLoad",e),rt(e)},Page.after=rt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ct("created",e),it(e)});function ut(e,t,n){t.forEach((function(t){(function e(t,n){if(!n)return!0;if(d.default.options&&Array.isArray(d.default.options[t]))return!0;if(n=n.default||n,x(n))return!!x(n.extendOptions[t])||!!(n.super&&n.super.options&&Array.isArray(n.super.options[t]));if(x(n[t])||Array.isArray(n[t]))return!0;var r=n.mixins;return Array.isArray(r)?!!r.find((function(n){return e(t,n)})):void 0})(t,n)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];ft(t).forEach((function(t){return dt(e,t,n)}))}function ft(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&Object.keys(e).forEach((function(n){0===n.indexOf("on")&&x(e[n])&&t.push(n)})),t}function dt(e,t,n){-1!==n.indexOf(t)||A(e,t)||(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}function pt(e,t){var n;return t=t.default||t,n=x(t)?t:e.extend(t),t=n.options,[n,t]}function ht(e,t){if(Array.isArray(t)&&t.length){var n=Object.create(null);t.forEach((function(e){n[e]=!0})),e.$scopedSlots=e.$slots=n}}function gt(e,t){e=(e||"").split(",");var n=e.length;1===n?t._$vueId=e[0]:2===n&&(t._$vueId=e[0],t._$vuePid=e[1])}function vt(e,t){var n=e.data||{},r=e.methods||{};if("function"===typeof n)try{n=n.call(t)}catch(i){Object({NODE_ENV:"production",VUE_APP_DARK_MODE:"false",VUE_APP_NAME:"羿充电",VUE_APP_PLATFORM:"mp-weixin",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",n)}else try{n=JSON.parse(JSON.stringify(n))}catch(i){}return S(n)||(n={}),Object.keys(r).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||A(n,e)||(n[e]=r[e])})),n}var yt=[String,Number,Boolean,Object,Array,null];function mt(e){return function(t,n){this.$vm&&(this.$vm[e]=t)}}function bt(e,t){var n=e.behaviors,r=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(n)&&n.forEach((function(e){a.push(e.replace("uni://","wx".concat("://"))),"uni://form-field"===e&&(Array.isArray(o)?(o.push("name"),o.push("value")):(o.name={type:String,default:""},o.value={type:[String,Number,Boolean,Array,Object,Date],default:""}))})),S(r)&&r.props&&a.push(t({properties:wt(r.props,!0)})),Array.isArray(i)&&i.forEach((function(e){S(e)&&e.props&&a.push(t({properties:wt(e.props,!0)}))})),a}function xt(e,t,n,r){return Array.isArray(t)&&1===t.length?t[0]:t}function wt(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>3?arguments[3]:void 0,r={};return t||(r.vueId={type:String,value:""},n.virtualHost&&(r.virtualHostStyle={type:null,value:""},r.virtualHostClass={type:null,value:""}),r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var n=Object.create(null);e.forEach((function(e){n[e]=!0})),this.setData({$slots:n})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:mt(e)}})):S(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(S(n)){var i=n.default;x(i)&&(i=i()),n.type=xt(0,n.type),r[t]={type:-1!==yt.indexOf(n.type)?n.type:null,value:i,observer:mt(t)}}else{var o=xt(0,n);r[t]={type:-1!==yt.indexOf(o)?o:null,observer:mt(t)}}})),r}function St(e,t,n,r){var i={};return Array.isArray(t)&&t.length&&t.forEach((function(t,o){"string"===typeof t?t?"$event"===t?i["$"+o]=n:"arguments"===t?i["$"+o]=n.detail&&n.detail.__args__||r:0===t.indexOf("$event.")?i["$"+o]=e.__get_value(t.replace("$event.",""),n):i["$"+o]=e.__get_value(t):i["$"+o]=e:i["$"+o]=function(e,t){var n=e;return t.forEach((function(t){var r=t[0],i=t[2];if(r||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(r)?o=r:r?"string"===typeof r&&r&&(o=0===r.indexOf("#s#")?r.substr(3):e.__get_value(r,n)):o=n,Number.isInteger(o)?n=i:a?Array.isArray(o)?n=o.find((function(t){return e.__get_value(a,t)===i})):S(o)?n=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):n=o[i],s&&(n=e.__get_value(s,n))}})),n}(e,t)})),i}function At(e){for(var t={},n=1;n2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=!1,s=S(t.detail)&&t.detail.__args__||[t.detail];if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!n.length))return a?[t]:s;var c=St(e,r,t,s),u=[];return n.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?u.push(s[0]):u.push(t):u.push(t.target.value):Array.isArray(e)&&"o"===e[0]?u.push(At(e)):"string"===typeof e&&A(c,e)?u.push(c[e]):u.push(e)})),u}function Pt(e){var t=this;e=function(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=_,e.preventDefault=_,e.target=e.target||{},A(e,"detail")||(e.detail={}),A(e,"markerId")&&(e.detail="object"===(0,l.default)(e.detail)?e.detail:{},e.detail.markerId=e.markerId),S(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}(e);var n=(e.currentTarget||e.target).dataset;if(!n)return console.warn("事件信息不存在");var r=n.eventOpts||n["event-opts"];if(!r)return console.warn("事件信息不存在");var i=e.type,o=[];return r.forEach((function(n){var r=n[0],a=n[1],s="^"===r.charAt(0);r=s?r.slice(1):r;var c="~"===r.charAt(0);r=c?r.slice(1):r,a&&function(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}(i,r)&&a.forEach((function(n){var r=n[0];if(r){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"===r)return void i.$emit.apply(i,_t(t.$vm,e,n[1],n[2],s,r));var a=i[r];if(!x(a)){var u="page"===t.$vm.mpType?"Page":"Component",l=t.route||t.is;throw new Error("".concat(u,' "').concat(l,'" does not have a method "').concat(r,'"'))}if(c){if(a.once)return;a.once=!0}var f=_t(t.$vm,e,n[1],n[2],s,r);f=Array.isArray(f)?f:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(f=f.concat([,,,,,,,,,,e])),o.push(a.apply(i,f))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var kt={};var Tt=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function Ot(){d.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=d.default.prototype.__call_hook;d.default.prototype.__call_hook=function(t,n){return"onLoad"===t&&n&&n.__id__&&(this.__eventChannel__=function(e){var t=kt[e];return delete kt[e],t}(n.__id__),delete n.__id__),e.call(this,t,n)}}function Ct(t,n){var r=n.mocks,i=n.initRefs;Ot(),function(){var e={},t={};function n(e){var t=this.$options.propsData.vueId;if(t){var n=t.split(",")[0];e(n)}}d.default.prototype.$hasSSP=function(n){var r=e[n];return r||(t[n]=this,this.$on("hook:destroyed",(function(){delete t[n]}))),r},d.default.prototype.$getSSP=function(t,n,r){var i=e[t];if(i){var o=i[n]||[];return r?o:o[0]}},d.default.prototype.$setSSP=function(t,r){var i=0;return n.call(this,(function(n){var o=e[n],a=o[t]=o[t]||[];a.push(r),i=a.length-1})),i},d.default.prototype.$initSSP=function(){n.call(this,(function(t){e[t]={}}))},d.default.prototype.$callSSP=function(){n.call(this,(function(e){t[e]&&t[e].$forceUpdate()}))},d.default.mixin({destroyed:function(){var n=this.$options.propsData,r=n&&n.vueId;r&&(delete e[r],delete t[r])}})}(),t.$options.store&&(d.default.prototype.$store=t.$options.store),function(e){e.prototype.uniIDHasRole=function(e){var t=y(),n=t.role;return n.indexOf(e)>-1},e.prototype.uniIDHasPermission=function(e){var t=y(),n=t.permission;return this.uniIDHasRole("admin")||n.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=y(),t=e.tokenExpired;return t>Date.now()}}(d.default),d.default.prototype.mpHost="mp-weixin",d.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 n=e.$mp[e.mpType];t.forEach((function(t){A(n,t)&&(e[t]=n[t])}))}(this,r))}}});var o={onLaunch:function(n){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",n),this.$vm.__call_hook("onLaunch",n))}};o.globalData=t.$options.globalData||{};var a=t.$options.methods;return a&&Object.keys(a).forEach((function(e){o[e]=a[e]})),function(e,t,n){var r=e.observable({locale:n||re.getLocale()}),i=[];t.$watchLocale=function(e){i.push(e)},Object.defineProperty(t,"$locale",{get:function(){return r.locale},set:function(e){r.locale=e,i.forEach((function(t){return t(e)}))}})}(d.default,t,oe(e.getSystemInfoSync().language)||"en"),ut(o,Tt),lt(o,t.$options),o}function It(e){return Ct(e,{mocks:Ge,initRefs:Xe})}function Mt(e){return App(It(e)),e}var Et=/[!'()*]/g,jt=function(e){return"%"+e.charCodeAt(0).toString(16)},Dt=/%2C/g,Bt=function(e){return encodeURIComponent(e).replace(Et,jt).replace(Dt,",")};function Lt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bt,n=e?Object.keys(e).map((function(n){var r=e[n];if(void 0===r)return"";if(null===r)return t(n);if(Array.isArray(r)){var i=[];return r.forEach((function(e){void 0!==e&&(null===e?i.push(t(n)):i.push(t(n)+"="+t(e)))})),i.join("&")}return t(n)+"="+t(r)})).filter((function(e){return e.length>0})).join("&"):null;return n?"?".concat(n):""}function Ft(e,t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isPage,r=t.initRelation,i=arguments.length>2?arguments[2]:void 0,o=pt(d.default,e),s=(0,a.default)(o,2),c=s[0],u=s[1],l=h({multipleSlots:!0,addGlobalClass:!0},u.options||{});u["mp-weixin"]&&u["mp-weixin"].options&&Object.assign(l,u["mp-weixin"].options);var f={options:l,data:vt(u,d.default.prototype),behaviors:bt(u,Ye),properties:wt(u.props,!1,u.__file,l),lifetimes:{attached:function(){var e=this.properties,t={mpType:n.call(this)?"page":"component",mpInstance:this,propsData:e};gt(e.vueId,this),r.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new c(t),ht(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:Pt}};return u.externalClasses&&(f.externalClasses=u.externalClasses),Array.isArray(u.wxsCallMethods)&&u.wxsCallMethods.forEach((function(e){f.methods[e]=function(t){return this.$vm[e](t)}})),i?[f,u,c]:n?f:[f,c]}(e,{isPage:Je,initRelation:Ke},t)}var $t=["onShow","onHide","onUnload"];function Nt(e){var t=Ft(e,!0),n=(0,a.default)(t,2),r=n[0],i=n[1];return ut(r.methods,$t,i),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Lt(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},lt(r.methods,e,["onReady"]),function(e,t){t&&Object.keys(t).forEach((function(n){var r=n.match(nt);if(r){var i=r[1];e[n]=t[n],e[i]=t[i]}}))}(r.methods,i.methods),r}function Rt(e){return Component(function(e){return Nt(e)}(e))}function zt(e){return Component(Ft(e))}function Ut(t){var n=It(t),r=getApp({allowDefault:!0});t.$scope=r;var i=r.globalData;if(i&&Object.keys(n.globalData).forEach((function(e){A(i,e)||(i[e]=n.globalData[e])})),Object.keys(n).forEach((function(e){A(r,e)||(r[e]=n[e])})),x(n.onShow)&&e.onAppShow&&e.onAppShow((function(){for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(r,i){nvueAnimation.transition(n,c({styles:e},t),(function(e){r()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,i=e[n];if(i){var o=i.styles,a=i.config;this._animateRun(o,a).then((function(){n+=1,t._nvueNextAnimate(e,n,r)}))}else this.currentStepAnimates={},"function"===typeof r&&r(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),t}(),l=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];l.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(e){u.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))}).call(this,n("df3c")["default"])},ed45:function(e,t){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports["default"]=e.exports},ee10:function(e,t){function n(e,t,n,r,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void n(u)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function s(e){n(a,i,o,s,c,"next",e)}function c(e){n(a,i,o,s,c,"throw",e)}s(void 0)}))}},e.exports.__esModule=!0,e.exports["default"]=e.exports},eeb0:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{type:{type:String,default:e.$u.props.tag.type},disabled:{type:[Boolean,String],default:e.$u.props.tag.disabled},size:{type:String,default:e.$u.props.tag.size},shape:{type:String,default:e.$u.props.tag.shape},text:{type:[String,Number],default:e.$u.props.tag.text},bgColor:{type:String,default:e.$u.props.tag.bgColor},color:{type:String,default:e.$u.props.tag.color},borderColor:{type:String,default:e.$u.props.tag.borderColor},closeColor:{type:String,default:e.$u.props.tag.closeColor},name:{type:[String,Number],default:e.$u.props.tag.name},plainFill:{type:Boolean,default:e.$u.props.tag.plainFill},plain:{type:Boolean,default:e.$u.props.tag.plain},closable:{type:Boolean,default:e.$u.props.tag.closable},show:{type:Boolean,default:e.$u.props.tag.show},icon:{type:String,default:e.$u.props.tag.icon}}};t.default=n}).call(this,n("df3c")["default"])},eeb5:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{bgColor:{type:String,default:e.$u.props.gap.bgColor},height:{type:[String,Number],default:e.$u.props.gap.height},marginTop:{type:[String,Number],default:e.$u.props.gap.marginTop},marginBottom:{type:[String,Number],default:e.$u.props.gap.marginBottom}}};t.default=n}).call(this,n("df3c")["default"])},f313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={switch:{loading:!1,disabled:!1,size:25,activeColor:"#2979ff",inactiveColor:"#ffffff",value:!1,activeValue:!0,inactiveValue:!1,asyncChange:!1,space:0}}},f463:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={tooltip:{text:"",copyText:"",size:14,color:"#606266",bgColor:"transparent",direction:"top",zIndex:10071,showCopy:!0,buttons:function(){return[]},overlay:!0,showToast:!0}}},f542:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={collapseItem:{title:"",value:"",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0,align:"left",name:"",icon:"",duration:300}}},f5ee:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={gridItem:{name:null,bgColor:"transparent"}}},f61b:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return t?"".concat(e.replace(/\/+$/,""),"/").concat(t.replace(/^\/+/,"")):e}},f6a1:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={swiper:{list:function(){return[]},indicator:!1,indicatorActiveColor:"#FFFFFF",indicatorInactiveColor:"rgba(255, 255, 255, 0.35)",indicatorStyle:"",indicatorMode:"line",autoplay:!0,current:0,currentItemId:"",interval:3e3,duration:300,circular:!1,previousMargin:0,nextMargin:0,acceleration:!1,displayMultipleItems:1,easingFunction:"default",keyName:"url",imgMode:"aspectFill",height:130,bgColor:"#f3f4f6",radius:4,loading:!1,showTitle:!1}}},f827:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{label:{type:String,default:e.$u.props.formItem.label},prop:{type:String,default:e.$u.props.formItem.prop},borderBottom:{type:[String,Boolean],default:e.$u.props.formItem.borderBottom},labelPosition:{type:String,default:e.$u.props.formItem.labelPosition},labelWidth:{type:[String,Number],default:e.$u.props.formItem.labelWidth},rightIcon:{type:String,default:e.$u.props.formItem.rightIcon},leftIcon:{type:String,default:e.$u.props.formItem.leftIcon},required:{type:Boolean,default:e.$u.props.formItem.required},leftIconStyle:{type:[String,Object],default:e.$u.props.formItem.leftIconStyle}}};t.default=n}).call(this,n("df3c")["default"])},f867:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={section:{title:"",subTitle:"更多",right:!0,fontSize:15,bold:!0,color:"#303133",subColor:"#909399",showLine:!0,lineColor:"",arrow:!0}}},f9dc:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={scrollList:{indicatorWidth:50,indicatorBarWidth:20,indicator:!0,indicatorColor:"#f2f2f2",indicatorActiveColor:"#3c9cff",indicatorStyle:""}}},fd66:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={primary:"#3c9cff",info:"#909399",default:"#909399",warning:"#f9ae3d",error:"#f56c6c",success:"#5ac725",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"};t.default=r},fdf7:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={appid:"__UNI__7D80022"}},ff58:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={badge:{isDot:!1,value:"",show:!0,max:999,type:"error",showZero:!1,bgColor:null,color:null,shape:"circle",numberType:"overflow",offset:function(){return[]},inverted:!1,absolute:!1}}}}]);