(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["common/vendor"],[,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.createApp=Mr,t.createComponent=Nr,t.createPage=Rr,t.createPlugin=Ur,t.createSubpackageApp=zr,t.default=void 0;var n,i=r(3),o=a(r(4));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function c(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r-1},e.prototype.uniIDHasPermission=function(e){var t=S(),r=t.permission;return this.uniIDHasRole("admin")||r.indexOf(e)>-1},e.prototype.uniIDTokenValid=function(){var e=S(),t=e.tokenExpired;return t>Date.now()}}n="function"!==typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!w.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var k=Object.prototype.toString,P=Object.prototype.hasOwnProperty;function M(e){return"function"===typeof e}function E(e){return"string"===typeof e}function O(e){return"[object Object]"===k.call(e)}function T(e,t){return P.call(e,t)}function C(){}function I(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var j=/-(\w)/g,B=I((function(e){return e.replace(j,(function(e,t){return t?t.toUpperCase():""}))}));function D(e){var t={};return O(e)&&Object.keys(e).sort().forEach((function(r){t[r]=e[r]})),Object.keys(t)?t:e}var L=["invoke","success","fail","complete","returnValue"],F={},R={};function N(e,t){var r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?z(r):r}function z(e){for(var t=[],r=0;r1&&void 0!==arguments[1]?arguments[1]:{};return["success","fail","complete"].forEach((function(r){if(Array.isArray(e[r])){var n=t[r];t[r]=function(t){K(e[r],t).then((function(e){return M(n)&&n(e)||e}))}}})),t}function X(e,t){var r=[];Array.isArray(F.returnValue)&&r.push.apply(r,p(F.returnValue));var n=R[e];return n&&Array.isArray(n.returnValue)&&r.push.apply(r,p(n.returnValue)),r.forEach((function(e){t=e(t)||t})),t}function Y(e){var t=Object.create(null);Object.keys(F).forEach((function(e){"returnValue"!==e&&(t[e]=F[e].slice())}));var r=R[e];return r&&Object.keys(r).forEach((function(e){"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))})),t}function J(e,t,r){for(var n=arguments.length,i=new Array(n>3?n-3:0),o=3;o0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length,i=new Array(n>1?n-1:0),o=1;o-1?me:e.indexOf("-hant")>-1||Te(e,["-tw","-hk","-mo","-cht"])?xe:me;var r=Ce(e,[we,_e,Se]);return r||void 0}}function je(){var e=getApp({allowDefault:!0});return e&&e.$vm?e.$vm.$locale:Ie(wx.getSystemInfoSync().language)||we}function Be(e){var t=getApp();if(!t)return!1;var r=t.$vm.$locale;return r!==e&&(t.$vm.$locale=e,De.forEach((function(t){return t({locale:e})})),!0)}var De=[];function Le(e){-1===De.indexOf(e)&&De.push(e)}"undefined"!==typeof e&&(e.getLocale=je);var Fe={promiseInterceptor:Z},Re=Object.freeze({__proto__:null,upx2px:ye,getLocale:je,setLocale:Be,onLocaleChange:Le,addInterceptor:H,removeInterceptor:W,interceptors:Fe});function Ne(e){var t=getCurrentPages(),r=t.length;while(r--){var n=t[r];if(n.$page&&n.$page.fullPath===e)return r}return-1}var ze,Ue={name:function(e){return"back"===e.exists&&e.delta?"navigateBack":"redirectTo"},args:function(e){if("back"===e.exists&&e.url){var t=Ne(e.url);if(-1!==t){var r=getCurrentPages().length-1-t;r>0&&(e.delta=r)}}}},qe={args:function(e){var t=parseInt(e.current);if(!isNaN(t)){var r=e.urls;if(Array.isArray(r)){var n=r.length;if(n)return t<0?t=0:t>=n&&(t=n-1),t>0?(e.current=r[t],e.urls=r.filter((function(e,n){return!(n2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(O(t)){var o=!0===i?t:{};for(var a in M(r)&&(r=r(t,o)||{}),t)if(T(r,a)){var s=r[a];M(s)&&(s=s(t[a],t,o)),s?E(s)?o[s]=t[a]:O(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!==ot.indexOf(a)?M(t[a])&&(o[a]=at(e,t[a],n)):i||(o[a]=t[a]);return o}return M(t)&&(t=at(e,t,n)),t}function ct(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return M(rt.returnValue)&&(t=rt.returnValue(e,t)),st(e,t,r,{},n)}function ut(e,t){if(T(rt,e)){var r=rt[e];return r?function(t,n){var i=r;M(r)&&(i=r(t)),t=st(e,t,i.args,i.returnValue);var o=[t];"undefined"!==typeof n&&o.push(n),M(i.name)?e=i.name(t):E(i.name)&&(e=i.name);var a=wx[e].apply(wx,o);return ae(e)?ct(e,a,i.returnValue,oe(e)):a}:function(){console.error("Platform '微信小程序' does not support '".concat(e,"'."))}}return t}var ft=Object.create(null),lt=["onTabBarMidButtonTap","subscribePush","unsubscribePush","onPush","offPush","share"];function dt(e){return function(t){var r=t.fail,n=t.complete,i={errMsg:"".concat(e,":fail method '").concat(e,"' not supported")};M(r)&&r(i),M(n)&&n(i)}}lt.forEach((function(e){ft[e]=dt(e)}));var ht={oauth:["weixin"],share:["weixin"],payment:["wxpay"],push:["weixin"]};function pt(e){var t=e.service,r=e.success,n=e.fail,i=e.complete,o=!1;ht[t]?(o={errMsg:"getProvider:ok",service:t,provider:ht[t]},M(r)&&r(o)):(o={errMsg:"getProvider:fail service not found"},M(n)&&n(o)),M(i)&&i(o)}var vt=Object.freeze({__proto__:null,getProvider:pt}),gt=function(){var e;return function(){return e||(e=new o.default),e}}();function yt(e,t,r){return e[t].apply(e,r)}function bt(){return yt(gt(),"$on",Array.prototype.slice.call(arguments))}function mt(){return yt(gt(),"$off",Array.prototype.slice.call(arguments))}function xt(){return yt(gt(),"$once",Array.prototype.slice.call(arguments))}function wt(){return yt(gt(),"$emit",Array.prototype.slice.call(arguments))}var _t,St,At=Object.freeze({__proto__:null,$on:bt,$off:mt,$once:xt,$emit:wt});function kt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}function Pt(e){var t={};for(var r in e){var n=e[r];M(n)&&(t[r]=kt(n),delete e[r])}return t}function Mt(e){try{return JSON.parse(e)}catch(t){}return e}function Et(e){"clientId"===e.type?(_t=e.cid,St=e.errMsg,Tt(_t,e.errMsg)):"pushMsg"===e.type?It.forEach((function(t){t({type:"receive",data:Mt(e.message)})})):"click"===e.type&&It.forEach((function(t){t({type:"click",data:Mt(e.message)})}))}var Ot=[];function Tt(e,t){Ot.forEach((function(r){r(e,t)})),Ot.length=0}function Ct(e){O(e)||(e={});var t=Pt(e),r=t.success,n=t.fail,i=t.complete,o=M(r),a=M(n),s=M(i);Ot.push((function(e,t){var c;e?(c={errMsg:"getPushClientid:ok",cid:e},o&&r(c)):(c={errMsg:"getPushClientid:fail"+(t?" "+t:"")},a&&n(c)),s&&i(c)})),"undefined"!==typeof _t&&Promise.resolve().then((function(){return Tt(_t,St)}))}var It=[],jt=function(e){-1===It.indexOf(e)&&It.push(e)},Bt=function(e){if(e){var t=It.indexOf(e);t>-1&&It.splice(t,1)}else It.length=0},Dt=Object.freeze({__proto__:null,getPushClientid:Ct,onPushMessage:jt,offPushMessage:Bt,invokePushCallback:Et}),Lt=Page,Ft=Component,Rt=/:/g,Nt=I((function(e){return B(e.replace(Rt,"-"))}));function zt(e){var t=e.triggerEvent,r=function(r){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{};return Ut("onLoad",e),Lt(e)},Page.after=Lt.after,Component=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Ut("created",e),Ft(e)});var qt=["onPullDownRefresh","onReachBottom","onAddToFavorites","onShareTimeline","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function $t(e,t){var r=e.$mp[e.mpType];t.forEach((function(t){T(r,t)&&(e[t]=r[t])}))}function Ht(e,t){if(!t)return!0;if(o.default.options&&Array.isArray(o.default.options[e]))return!0;if(t=t.default||t,M(t))return!!M(t.extendOptions[e])||!!(t.super&&t.super.options&&Array.isArray(t.super.options[e]));if(M(t[e]))return!0;var r=t.mixins;return Array.isArray(r)?!!r.find((function(t){return Ht(e,t)})):void 0}function Wt(e,t,r){t.forEach((function(t){Ht(t,r)&&(e[t]=function(e){return this.$vm&&this.$vm.__call_hook(t,e)})}))}function Qt(e,t){var r;return t=t.default||t,r=M(t)?t:e.extend(t),t=r.options,[r,t]}function Vt(e,t){if(Array.isArray(t)&&t.length){var r=Object.create(null);t.forEach((function(e){r[e]=!0})),e.$scopedSlots=e.$slots=r}}function Kt(e,t){e=(e||"").split(",");var r=e.length;1===r?t._$vueId=e[0]:2===r&&(t._$vueId=e[0],t._$vuePid=e[1])}function Gt(e,t){var r=e.data||{},n=e.methods||{};if("function"===typeof r)try{r=r.call(t)}catch(i){Object({VUE_APP_NAME:"teammodelwxapp",VUE_APP_PLATFORM:"mp-weixin",NODE_ENV:"development",BASE_URL:"/"}).VUE_APP_DEBUG&&console.warn("根据 Vue 的 data 函数初始化小程序 data 失败,请尽量确保 data 函数中不访问 vm 对象,否则可能影响首次数据渲染速度。",r)}else try{r=JSON.parse(JSON.stringify(r))}catch(i){}return O(r)||(r={}),Object.keys(n).forEach((function(e){-1!==t.__lifecycle_hooks__.indexOf(e)||T(r,e)||(r[e]=n[e])})),r}var Xt=[String,Number,Boolean,Object,Array,null];function Yt(e){return function(t,r){this.$vm&&(this.$vm[e]=t)}}function Jt(e,t){var r=e.behaviors,n=e.extends,i=e.mixins,o=e.props;o||(e.props=o=[]);var a=[];return Array.isArray(r)&&r.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:""}))})),O(n)&&n.props&&a.push(t({properties:er(n.props,!0)})),Array.isArray(i)&&i.forEach((function(e){O(e)&&e.props&&a.push(t({properties:er(e.props,!0)}))})),a}function Zt(e,t,r,n){return Array.isArray(t)&&1===t.length?t[0]:t}function er(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={};return t||(r.vueId={type:String,value:""},r.generic={type:Object,value:null},r.scopedSlotsCompiler={type:String,value:""},r.vueSlots={type:null,value:[],observer:function(e,t){var r=Object.create(null);e.forEach((function(e){r[e]=!0})),this.setData({$slots:r})}}),Array.isArray(e)?e.forEach((function(e){r[e]={type:null,observer:Yt(e)}})):O(e)&&Object.keys(e).forEach((function(t){var n=e[t];if(O(n)){var i=n.default;M(i)&&(i=i()),n.type=Zt(t,n.type),r[t]={type:-1!==Xt.indexOf(n.type)?n.type:null,value:i,observer:Yt(t)}}else{var o=Zt(t,n);r[t]={type:-1!==Xt.indexOf(o)?o:null,observer:Yt(t)}}})),r}function tr(e){try{e.mp=JSON.parse(JSON.stringify(e))}catch(t){}return e.stopPropagation=C,e.preventDefault=C,e.target=e.target||{},T(e,"detail")||(e.detail={}),T(e,"markerId")&&(e.detail="object"===typeof e.detail?e.detail:{},e.detail.markerId=e.markerId),O(e.detail)&&(e.target=Object.assign({},e.target,e.detail)),e}function rr(e,t){var r=e;return t.forEach((function(t){var n=t[0],i=t[2];if(n||"undefined"!==typeof i){var o,a=t[1],s=t[3];Number.isInteger(n)?o=n:n?"string"===typeof n&&n&&(o=0===n.indexOf("#s#")?n.substr(3):e.__get_value(n,r)):o=r,Number.isInteger(o)?r=i:a?Array.isArray(o)?r=o.find((function(t){return e.__get_value(a,t)===i})):O(o)?r=Object.keys(o).find((function(t){return e.__get_value(a,o[t])===i})):console.error("v-for 暂不支持循环数据:",o):r=o[i],s&&(r=e.__get_value(s,r))}})),r}function nr(e,t,r){var n={};return Array.isArray(t)&&t.length&&t.forEach((function(t,i){"string"===typeof t?t?"$event"===t?n["$"+i]=r:"arguments"===t?r.detail&&r.detail.__args__?n["$"+i]=r.detail.__args__:n["$"+i]=[r]:0===t.indexOf("$event.")?n["$"+i]=e.__get_value(t.replace("$event.",""),r):n["$"+i]=e.__get_value(t):n["$"+i]=e:n["$"+i]=rr(e,t)})),n}function ir(e){for(var t={},r=1;r2&&void 0!==arguments[2]?arguments[2]:[],n=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;if(i&&(a=t.currentTarget&&t.currentTarget.dataset&&"wx"===t.currentTarget.dataset.comType,!r.length))return a?[t]:t.detail.__args__||t.detail;var s=nr(e,n,t),c=[];return r.forEach((function(e){"$event"===e?"__set_model"!==o||i?i&&!a?c.push(t.detail.__args__[0]):c.push(t):c.push(t.target.value):Array.isArray(e)&&"o"===e[0]?c.push(ir(e)):"string"===typeof e&&T(s,e)?c.push(s[e]):c.push(e)})),c}var ar="~",sr="^";function cr(e,t){return e===t||"regionchange"===t&&("begin"===e||"end"===e)}function ur(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}function fr(e){var t=this;e=tr(e);var r=(e.currentTarget||e.target).dataset;if(!r)return console.warn("事件信息不存在");var n=r.eventOpts||r["event-opts"];if(!n)return console.warn("事件信息不存在");var i=e.type,o=[];return n.forEach((function(r){var n=r[0],a=r[1],s=n.charAt(0)===sr;n=s?n.slice(1):n;var c=n.charAt(0)===ar;n=c?n.slice(1):n,a&&cr(i,n)&&a.forEach((function(r){var n=r[0];if(n){var i=t.$vm;if(i.$options.generic&&(i=ur(i)||i),"$emit"===n)return void i.$emit.apply(i,or(t.$vm,e,r[1],r[2],s,n));var a=i[n];if(!M(a))throw new Error(" _vm.".concat(n," is not a function"));if(c){if(a.once)return;a.once=!0}var u=or(t.$vm,e,r[1],r[2],s,n);u=Array.isArray(u)?u:[],/=\s*\S+\.eventParams\s*\|\|\s*\S+\[['"]event-params['"]\]/.test(a.toString())&&(u=u.concat([,,,,,,,,,,e])),o.push(a.apply(i,u))}}))})),"input"===i&&1===o.length&&"undefined"!==typeof o[0]?o[0]:void 0}var lr={},dr=[];function hr(e){if(e){var t=lr[e];return delete lr[e],t}return dr.shift()}var pr=["onShow","onHide","onError","onPageNotFound","onThemeChange","onUnhandledRejection"];function vr(){o.default.prototype.getOpenerEventChannel=function(){return this.$scope.getOpenerEventChannel()};var e=o.default.prototype.__call_hook;o.default.prototype.__call_hook=function(t,r){return"onLoad"===t&&r&&r.__id__&&(this.__eventChannel__=hr(r.__id__),delete r.__id__),e.call(this,t,r)}}function gr(){var e={},t={};o.default.prototype.$hasScopedSlotsParams=function(r){var n=e[r];return n||(t[r]=this,this.$on("hook:destroyed",(function(){delete t[r]}))),n},o.default.prototype.$getScopedSlotsParams=function(r,n,i){var o=e[r];if(o){var a=o[n]||{};return i?a[i]:a}t[r]=this,this.$on("hook:destroyed",(function(){delete t[r]}))},o.default.prototype.$setScopedSlotsParams=function(r,n){var i=this.$options.propsData.vueId;if(i){var o=i.split(",")[0],a=e[o]=e[o]||{};a[r]=n,t[o]&&t[o].$forceUpdate()}},o.default.mixin({destroyed:function(){var r=this.$options.propsData,n=r&&r.vueId;n&&(delete e[n],delete t[n])}})}function yr(e,t){var r=t.mocks,n=t.initRefs;vr(),gr(),e.$options.store&&(o.default.prototype.$store=e.$options.store),A(o.default),o.default.prototype.mpHost="mp-weixin",o.default.mixin({beforeCreate:function(){if(this.$options.mpType){if(this.mpType=this.$options.mpType,this.$mp=h({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&&(n(this),$t(this,r))}}});var i={onLaunch:function(t){this.$vm||(wx.canIUse&&!wx.canIUse("nextTick")&&console.error("当前微信基础库版本过低,请将 微信开发者工具-详情-项目设置-调试基础库版本 更换为`2.3.0`以上"),this.$vm=e,this.$vm.$mp={app:this},this.$vm.$scope=this,this.$vm.globalData=this.globalData,this.$vm._isMounted=!0,this.$vm.__call_hook("mounted",t),this.$vm.__call_hook("onLaunch",t))}};i.globalData=e.$options.globalData||{};var a=e.$options.methods;return a&&Object.keys(a).forEach((function(e){i[e]=a[e]})),Ee(o.default,e,Ie(wx.getSystemInfoSync().language)||we),Wt(i,pr),i}var br=["__route__","__wxExparserNodeId__","__wxWebviewId__"];function mr(e,t){for(var r,n=e.$children,i=n.length-1;i>=0;i--){var o=n[i];if(o.$scope._$vueId===t)return o}for(var a=n.length-1;a>=0;a--)if(r=mr(n[a],t),r)return r}function xr(e){return Behavior(e)}function wr(){return!!this.route}function _r(e){this.triggerEvent("__l",e)}function Sr(e,t,r){var n=e.selectAllComponents(t);n.forEach((function(e){var n=e.dataset.ref;r[n]=e.$vm||e,"scoped"===e.dataset.vueGeneric&&e.selectAllComponents(".scoped-ref").forEach((function(e){Sr(e,t,r)}))}))}function Ar(e){var t=e.$scope;Object.defineProperty(e,"$refs",{get:function(){var e={};Sr(t,".vue-ref",e);var r=t.selectAllComponents(".vue-ref-in-for");return r.forEach((function(t){var r=t.dataset.ref;e[r]||(e[r]=[]),e[r].push(t.$vm||t)})),e}})}function kr(e){var t,r=e.detail||e.value,n=r.vuePid,i=r.vueOptions;n&&(t=mr(this.$vm,n)),t||(t=this.$vm),i.parent=t}function Pr(e){return yr(e,{mocks:br,initRefs:Ar})}function Mr(e){return App(Pr(e)),e}var Er=/[!'()*]/g,Or=function(e){return"%"+e.charCodeAt(0).toString(16)},Tr=/%2C/g,Cr=function(e){return encodeURIComponent(e).replace(Er,Or).replace(Tr,",")};function Ir(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cr,r=e?Object.keys(e).map((function(r){var n=e[r];if(void 0===n)return"";if(null===n)return t(r);if(Array.isArray(n)){var i=[];return n.forEach((function(e){void 0!==e&&(null===e?i.push(t(r)):i.push(t(r)+"="+t(e)))})),i.join("&")}return t(r)+"="+t(n)})).filter((function(e){return e.length>0})).join("&"):null;return r?"?".concat(r):""}function jr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.isPage,n=t.initRelation,i=Qt(o.default,e),a=u(i,2),s=a[0],f=a[1],l=c({multipleSlots:!0,addGlobalClass:!0},f.options||{});f["mp-weixin"]&&f["mp-weixin"].options&&Object.assign(l,f["mp-weixin"].options);var d={options:l,data:Gt(f,o.default.prototype),behaviors:Jt(f,xr),properties:er(f.props,!1,f.__file),lifetimes:{attached:function(){var e=this.properties,t={mpType:r.call(this)?"page":"component",mpInstance:this,propsData:e};Kt(e.vueId,this),n.call(this,{vuePid:this._$vuePid,vueOptions:t}),this.$vm=new s(t),Vt(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:kr,__e:fr}};return f.externalClasses&&(d.externalClasses=f.externalClasses),Array.isArray(f.wxsCallMethods)&&f.wxsCallMethods.forEach((function(e){d.methods[e]=function(t){return this.$vm[e](t)}})),r?d:[d,s]}function Br(e){return jr(e,{isPage:wr,initRelation:_r})}var Dr=["onShow","onHide","onUnload"];function Lr(e,t){t.isPage,t.initRelation;var r=Br(e);return Wt(r.methods,Dr,e),r.methods.onLoad=function(e){this.options=e;var t=Object.assign({},e);delete t.__id__,this.$page={fullPath:"/"+(this.route||this.is)+Ir(t)},this.$vm.$mp.query=e,this.$vm.__call_hook("onLoad",e)},r}function Fr(e){return Lr(e,{isPage:wr,initRelation:_r})}function Rr(e){return Component(Fr(e))}function Nr(e){return Component(Br(e))}function zr(e){var t=Pr(e),r=getApp({allowDefault:!0});e.$scope=r;var n=r.globalData;if(n&&Object.keys(t.globalData).forEach((function(e){T(n,e)||(n[e]=t.globalData[e])})),Object.keys(t).forEach((function(e){T(r,e)||(r[e]=t[e])})),M(t.onShow)&&wx.onAppShow&&wx.onAppShow((function(){for(var t=arguments.length,r=new Array(t),n=0;ne.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:p;if(!t)return[e];var n=this._caches[e];return n||(n=b(e,r),this._caches[e]=n),m(n,t)}}]),e}();t.Formatter=v;var g=/^(?:\d)+/,y=/^(?:\w)+/;function b(e,t){var r=n(t,2),i=r[0],o=r[1],a=[],s=0,c="";while(s-1?x:e.indexOf("-hant")>-1||E(e,["-tw","-hk","-mo","-cht"])?w:x;var r=O(e,[_,S,A]);return r||void 0}}var C=function(){function e(t){var r=t.locale,n=t.fallbackLocale,i=t.messages,o=t.watcher,a=t.formater;u(this,e),this.locale=_,this.fallbackLocale=_,this.message={},this.messages={},this.watchers=[],n&&(this.fallbackLocale=n),this.formater=a||M,this.messages=i||{},this.setLocale(r||_),o&&this.watchLocale(o)}return l(e,[{key:"setLocale",value:function(e){var t=this,r=this.locale;this.locale=T(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],r!==this.locale&&this.watchers.forEach((function(e){e(t.locale,r)}))}},{key:"getLocale",value:function(){return this.locale}},{key:"watchLocale",value:function(e){var t=this,r=this.watchers.push(e)-1;return function(){t.watchers.splice(r,1)}}},{key:"add",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.messages[e];n?r?Object.assign(n,t):Object.keys(t).forEach((function(e){P(n,e)||(n[e]=t[e])})):this.messages[e]=t}},{key:"f",value:function(e,t,r){return this.formater.interpolate(e,t,r).join("")}},{key:"t",value:function(e,t,r){var n=this.message;return"string"===typeof t?(t=T(t,this.messages),t&&(n=this.messages[t])):r=t,P(n,e)?this.formater.interpolate(n[e],r).join(""):(console.warn("Cannot translate the value of keypath ".concat(e,". Use the value of keypath as default.")),e)}}]),e}();function I(e,t){e.$watchLocale?e.$watchLocale((function(e){t.setLocale(e)})):e.$watch((function(){return e.$locale}),(function(e){t.setLocale(e)}))}function j(){return"undefined"!==typeof e&&e.getLocale?e.getLocale():"undefined"!==typeof r&&r.getLocale?r.getLocale():_}function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0;if("string"!==typeof e){var i=[t,e];e=i[0],t=i[1]}"string"!==typeof e&&(e=j()),"string"!==typeof r&&(r="undefined"!==typeof __uniConfig&&__uniConfig.fallbackLocale||_);var o=new C({locale:e,fallbackLocale:r,messages:t,watcher:n}),a=function(e,t){if("function"!==typeof getApp)a=function(e,t){return o.t(e,t)};else{var r=!1;a=function(e,t){var n=getApp().$vm;return n&&(n.$locale,r||(r=!0,I(n,o))),o.t(e,t)}}return a(e,t)};return{i18n:o,f:function(e,t,r){return o.f(e,t,r)},t:function(e,t){return a(e,t)},add:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return o.add(e,t,r)},watch:function(e){return o.watchLocale(e)},getLocale:function(){return o.getLocale()},setLocale:function(e){return o.setLocale(e)}}}t.I18n=C;var D,L=function(e){return"string"===typeof e};function F(e,t){return D||(D=new v),H(e,(function(e,r){var n=e[r];return L(n)?!!z(n,t)||void 0:F(n,t)}))}function R(e,t,r){return D||(D=new v),H(e,(function(e,n){var i=e[n];L(i)?z(i,r)&&(e[n]=U(i,t,r)):R(i,t,r)})),e}function N(e,t){var r=t.locale,n=t.locales,i=t.delimiters;if(!z(e,i))return e;D||(D=new v);var o=[];Object.keys(n).forEach((function(e){e!==r&&o.push({locale:e,values:n[e]})})),o.unshift({locale:r,values:n[r]});try{return JSON.stringify($(JSON.parse(e),o,i),null,2)}catch(a){}return e}function z(e,t){return e.indexOf(t[0])>-1}function U(e,t,r){return D.interpolate(e,t,r).join("")}function q(e,t,r,n){var i=e[t];if(L(i)){if(z(i,n)&&(e[t]=U(i,r[0].values,n),r.length>1)){var o=e[t+"Locales"]={};r.forEach((function(e){o[e.locale]=U(i,e.values,n)}))}}else $(i,r,n)}function $(e,t,r){return H(e,(function(e,n){q(e,n,t,r)})),e}function H(e,t){if(d(e)){for(var r=0;r-1}))):t}}function Q(e){var t=[],r=e.split("-");while(r.length)t.push(r.join("-")),r.pop();return t}t.isString=L}).call(this,r(1)["default"],r(2))},function(e,t,r){"use strict";r.r(t),function(e){ /*! * Vue.js v2.6.11 * (c) 2014-2022 Evan You * Released under the MIT License. */ var r=Object.freeze({});function n(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!1===e}function s(e){return"string"===typeof e||"number"===typeof e||"symbol"===typeof e||"boolean"===typeof e}function c(e){return null!==e&&"object"===typeof e}var u=Object.prototype.toString;function f(e){return u.call(e).slice(8,-1)}function l(e){return"[object Object]"===u.call(e)}function d(e){return"[object RegExp]"===u.call(e)}function h(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function p(e){return i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||l(e)&&e.toString===u?JSON.stringify(e,null,2):String(e)}function g(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var r=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(r,1)}}var w=Object.prototype.hasOwnProperty;function _(e,t){return w.call(e,t)}function S(e){var t=Object.create(null);return function(r){var n=t[r];return n||(t[r]=e(r))}}var A=/-(\w)/g,k=S((function(e){return e.replace(A,(function(e,t){return t?t.toUpperCase():""}))})),P=S((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),M=/\B([A-Z])/g,E=S((function(e){return e.replace(M,"-$1").toLowerCase()}));function O(e,t){function r(r){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,r):e.call(t)}return r._length=e.length,r}function T(e,t){return e.bind(t)}var C=Function.prototype.bind?T:O;function I(e,t){t=t||0;var r=e.length-t,n=new Array(r);while(r--)n[r]=e[r+t];return n}function j(e,t){for(var r in t)e[r]=t[r];return e}function B(e){for(var t={},r=0;r0),ne=(ee&&ee.indexOf("android"),ee&&/iphone|ipad|ipod|ios/.test(ee)||"ios"===Z),ie=(ee&&/chrome\/\d+/.test(ee),ee&&/phantomjs/.test(ee),ee&&ee.match(/firefox\/(\d+)/),{}.watch);if(Y)try{var oe={};Object.defineProperty(oe,"passive",{get:function(){}}),window.addEventListener("test-passive",null,oe)}catch(Di){}var ae=function(){return void 0===G&&(G=!Y&&!J&&"undefined"!==typeof e&&(e["process"]&&"server"===e["process"].env.VUE_ENV)),G},se=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ce(e){return"function"===typeof e&&/native code/.test(e.toString())}var ue,fe="undefined"!==typeof Symbol&&ce(Symbol)&&"undefined"!==typeof Reflect&&ce(Reflect.ownKeys);ue="undefined"!==typeof Set&&ce(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 le=D,de=D,he=D,pe=D,ve="undefined"!==typeof console,ge=/(?:^|[-_])(\w)/g,ye=function(e){return e.replace(ge,(function(e){return e.toUpperCase()})).replace(/[-_]/g,"")};le=function(e,t){var r=t?he(t):"";$.warnHandler?$.warnHandler.call(null,e,t,r):ve&&!$.silent&&console.error("[Vue warn]: "+e+r)},de=function(e,t){ve&&!$.silent&&console.warn("[Vue tip]: "+e+(t?he(t):""))},pe=function(e,t){if(e.$root===e)return e.$options&&e.$options.__file?""+e.$options.__file:"";var r="function"===typeof e&&null!=e.cid?e.options:e._isVue?e.$options||e.constructor.options:e,n=r.name||r._componentTag,i=r.__file;if(!n&&i){var o=i.match(/([^/\\]+)\.vue$/);n=o&&o[1]}return(n?"<"+ye(n)+">":"")+(i&&!1!==t?" at "+i:"")};var be=function(e,t){var r="";while(t)t%2===1&&(r+=e),t>1&&(e+=e),t>>=1;return r};he=function(e){if(e._isVue&&e.$parent){var t=[],r=0;while(e&&"PageBody"!==e.$options.name){if(t.length>0){var n=t[t.length-1];if(n.constructor===e.constructor){r++,e=e.$parent;continue}r>0&&(t[t.length-1]=[n,r],r=0)}!e.$options.isReserved&&t.push(e),e=e.$parent}return"\n\nfound in\n\n"+t.map((function(e,t){return""+(0===t?"---\x3e ":be(" ",5+2*t))+(Array.isArray(e)?pe(e[0])+"... ("+e[1]+" recursive calls)":pe(e))})).join("\n")}return"\n\n(found in "+pe(e)+")"};var me=0,xe=function(){this.id=me++,this.subs=[]};function we(e){xe.SharedObject.targetStack.push(e),xe.SharedObject.target=e,xe.target=e}function _e(){xe.SharedObject.targetStack.pop(),xe.SharedObject.target=xe.SharedObject.targetStack[xe.SharedObject.targetStack.length-1],xe.target=xe.SharedObject.target}xe.prototype.addSub=function(e){this.subs.push(e)},xe.prototype.removeSub=function(e){x(this.subs,e)},xe.prototype.depend=function(){xe.SharedObject.target&&xe.SharedObject.target.addDep(this)},xe.prototype.notify=function(){var e=this.subs.slice();$.async||e.sort((function(e,t){return e.id-t.id}));for(var t=0,r=e.length;t-1)if(o&&!_(i,"default"))a=!1;else if(""===a||a===E(e)){var c=ft(String,i.type);(c<0||s0&&(a=Yt(a,(t||"")+"_"+r),Xt(a[0])&&Xt(u)&&(f[c]=Pe(u.text+a[0].text),a.shift()),f.push.apply(f,a)):s(a)?Xt(u)?f[c]=Pe(u.text+a):""!==a&&f.push(Pe(a)):Xt(a)&&Xt(u)?f[c]=Pe(u.text+a.text):(o(e._isVList)&&i(a.tag)&&n(a.key)&&i(t)&&(a.key="__vlist"+t+"_"+r+"__"),f.push(a)));return f}function Jt(e){var t=e.$options.provide;t&&(e._provided="function"===typeof t?t.call(e):t)}function Zt(e){var t=er(e.$options.inject,e);t&&(je(!1),Object.keys(t).forEach((function(r){Re(e,r,t[r],(function(){le('Avoid mutating an injected value directly since the changes will be overwritten whenever the provided component re-renders. injection being mutated: "'+r+'"',e)}))})),je(!0))}function er(e,t){if(e){for(var r=Object.create(null),n=fe?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&&n&&n!==r&&s===n.$key&&!o&&!n.$hasNormal)return n;for(var c in i={},e)e[c]&&"$"!==c[0]&&(i[c]=ir(t,c,e[c]))}else i={};for(var u in t)u in i||(i[u]=or(t,u));return e&&Object.isExtensible(e)&&(e._normalized=i),Q(i,"$stable",a),Q(i,"$key",s),Q(i,"$hasNormal",o),i}function ir(e,t,r){var n=function(){var e=arguments.length?r.apply(null,arguments):r({});return e=e&&"object"===typeof e&&!Array.isArray(e)?[e]:Gt(e),e&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return r.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function or(e,t){return function(){return e[t]}}function ar(e,t){var r,n,o,a,s;if(Array.isArray(e)||"string"===typeof e)for(r=new Array(e.length),n=0,o=e.length;n.",e),a=new Se($.parsePlatformTagName(t),r,n,void 0,void 0,e)):a=r&&r.pre||!i(u=rt(e.$options,"components",t))?new Se(t,r,n,void 0,void 0,e):Mr(u,r,e,n,t)):a=Mr(t,r,e,n);return Array.isArray(a)?a:i(a)?(i(c)&&Lr(a,c),i(r)&&Fr(r),a):ke()}function Lr(e,t,r){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,r=!0),i(e.children))for(var a=0,s=e.children.length;a1?I(n):n;for(var i=I(arguments,1),o='event handler for "'+e+'"',a=0,s=n.length;adocument.createEvent("Event").timeStamp&&(mn=function(){return xn.now()})}function wn(){var e,t;for(mn(),gn=!0,ln.sort((function(e,t){return e.id-t.id})),yn=0;ynfn)){le("You may have an infinite update loop "+(e.user?'in watcher with expression "'+e.expression+'"':"in a component render function."),e.vm);break}var r=dn.slice(),n=ln.slice();bn(),An(r),_n(n),se&&$.devtools&&se.emit("flush")}function _n(e){var t=e.length;while(t--){var r=e[t],n=r.vm;n._watcher===r&&n._isMounted&&!n._isDestroyed&&un(n,"updated")}}function Sn(e){e._inactive=!1,dn.push(e)}function An(e){for(var t=0;tyn&&ln[r].id>e.id)r--;ln.splice(r+1,0,e)}else ln.push(e);if(!vn){if(vn=!0,!$.async)return void wn();Et(wn)}}}var Pn=0,Mn=function(e,t,r,n,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=r,this.id=++Pn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ue,this.newDepIds=new ue,this.expression=t.toString(),"function"===typeof t?this.getter=t:(this.getter=K(t),this.getter||(this.getter=D,le('Failed watching path: "'+t+'" Watcher only accepts simple dot-delimited paths. For full control, use a function instead.',e))),this.value=this.lazy?void 0:this.get()};Mn.prototype.get=function(){var e;we(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(Di){if(!this.user)throw Di;vt(Di,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Nt(e),_e(),this.cleanupDeps()}return e},Mn.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},Mn.prototype.cleanupDeps=function(){var e=this.deps.length;while(e--){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var r=this.depIds;this.depIds=this.newDepIds,this.newDepIds=r,this.newDepIds.clear(),r=this.deps,this.deps=this.newDeps,this.newDeps=r,this.newDeps.length=0},Mn.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():kn(this)},Mn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(Di){vt(Di,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},Mn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Mn.prototype.depend=function(){var e=this.deps.length;while(e--)this.deps[e].depend()},Mn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||x(this.vm._watchers,this);var e=this.deps.length;while(e--)this.deps[e].removeSub(this);this.active=!1}};var En={enumerable:!0,configurable:!0,get:D,set:D};function On(e,t,r){En.get=function(){return this[t][r]},En.set=function(e){this[t][r]=e},Object.defineProperty(e,r,En)}function Tn(e){e._watchers=[];var t=e.$options;t.props&&Cn(e,t.props),t.methods&&Nn(e,t.methods),t.data?In(e):Fe(e._data={},!0),t.computed&&Dn(e,t.computed),t.watch&&t.watch!==ie&&zn(e,t.watch)}function Cn(e,t){var r=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[],o=!e.$parent;o||je(!1);var a=function(a){i.push(a);var s=nt(a,t,r,e),c=E(a);(m(c)||$.isReservedAttr(c))&&le('"'+c+'" is a reserved attribute and cannot be used as component prop.',e),Re(n,a,s,(function(){if(!o&&!en){if("mp-baidu"===e.mpHost||"mp-kuaishou"===e.mpHost||"mp-xhs"===e.mpHost)return;if("value"===a&&Array.isArray(e.$options.behaviors)&&-1!==e.$options.behaviors.indexOf("uni://form-field"))return;if(e._getFormData)return;var t=e.$parent;while(t){if(t.__next_tick_pending)return;t=t.$parent}le("Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: \""+a+'"',e)}})),a in e||On(e,"_props",a)};for(var s in t)a(s);je(!0)}function In(e){var t=e.$options.data;t=e._data="function"===typeof t?jn(t,e):t||{},l(t)||(t={},le("data functions should return an object:\nhttps://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",e));var r=Object.keys(t),n=e.$options.props,i=e.$options.methods,o=r.length;while(o--){var a=r[o];i&&_(i,a)&&le('Method "'+a+'" has already been defined as a data property.',e),n&&_(n,a)?le('The data property "'+a+'" is already declared as a prop. Use prop default value instead.',e):W(a)||On(e,"_data",a)}Fe(t,!0)}function jn(e,t){we();try{return e.call(t,t)}catch(Di){return vt(Di,t,"data()"),{}}finally{_e()}}var Bn={lazy:!0};function Dn(e,t){var r=e._computedWatchers=Object.create(null),n=ae();for(var i in t){var o=t[i],a="function"===typeof o?o:o.get;null==a&&le('Getter is missing for computed property "'+i+'".',e),n||(r[i]=new Mn(e,a||D,D,Bn)),i in e?i in e.$data?le('The computed property "'+i+'" is already defined in data.',e):e.$options.props&&i in e.$options.props&&le('The computed property "'+i+'" is already defined as a prop.',e):Ln(e,i,o)}}function Ln(e,t,r){var n=!ae();"function"===typeof r?(En.get=n?Fn(t):Rn(r),En.set=D):(En.get=r.get?n&&!1!==r.cache?Fn(t):Rn(r.get):D,En.set=r.set||D),En.set===D&&(En.set=function(){le('Computed property "'+t+'" was assigned to but it has no setter.',this)}),Object.defineProperty(e,t,En)}function Fn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),xe.SharedObject.target&&t.depend(),t.value}}function Rn(e){return function(){return e.call(this,this)}}function Nn(e,t){var r=e.$options.props;for(var n in t)"function"!==typeof t[n]&&le('Method "'+n+'" has type "'+typeof t[n]+'" in the component definition. Did you reference the function correctly?',e),r&&_(r,n)&&le('Method "'+n+'" has already been defined as a prop.',e),n in e&&W(n)&&le('Method "'+n+'" conflicts with an existing Vue instance method. Avoid defining component methods that start with _ or $.'),e[n]="function"!==typeof t[n]?D:C(t[n],e)}function zn(e,t){for(var r in t){var n=t[r];if(Array.isArray(n))for(var i=0;i-1)return this;var r=I(arguments,1);return r.unshift(this),"function"===typeof e.install?e.install.apply(e,r):"function"===typeof e&&e.apply(null,r),t.push(e),this}}function Xn(e){e.mixin=function(e){return this.options=tt(this.options,e),this}}function Yn(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var r=this,n=r.cid,i=e._Ctor||(e._Ctor={});if(i[n])return i[n];var o=e.name||r.options.name;o&&Xe(o);var a=function(e){this._init(e)};return a.prototype=Object.create(r.prototype),a.prototype.constructor=a,a.cid=t++,a.options=tt(r.options,e),a["super"]=r,a.options.props&&Jn(a),a.options.computed&&Zn(a),a.extend=r.extend,a.mixin=r.mixin,a.use=r.use,U.forEach((function(e){a[e]=r[e]})),o&&(a.options.components[o]=a),a.superOptions=r.options,a.extendOptions=e,a.sealedOptions=j({},a.options),i[n]=a,a}}function Jn(e){var t=e.options.props;for(var r in t)On(e.prototype,"_props",r)}function Zn(e){var t=e.options.computed;for(var r in t)Ln(e.prototype,r,t[r])}function ei(e){U.forEach((function(t){e[t]=function(e,r){return r?("component"===t&&Xe(e),"component"===t&&l(r)&&(r.name=r.name||e,r=this.options._base.extend(r)),"directive"===t&&"function"===typeof r&&(r={bind:r,update:r}),this.options[t+"s"][e]=r,r):this.options[t+"s"][e]}}))}function ti(e){return e&&(e.Ctor.options.name||e.tag)}function ri(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"===typeof e?e.split(",").indexOf(t)>-1:!!d(e)&&e.test(t)}function ni(e,t){var r=e.cache,n=e.keys,i=e._vnode;for(var o in r){var a=r[o];if(a){var s=ti(a.componentOptions);s&&!t(s)&&ii(r,o,n,i)}}}function ii(e,t,r,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,x(r,t)}Hn(Kn),qn(Kn),Jr(Kn),nn(Kn),Ur(Kn);var oi=[String,RegExp,Array],ai={name:"keep-alive",abstract:!0,props:{include:oi,exclude:oi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)ii(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",(function(t){ni(e,(function(e){return ri(t,e)}))})),this.$watch("exclude",(function(t){ni(e,(function(e){return!ri(t,e)}))}))},render:function(){var e=this.$slots.default,t=Qr(e),r=t&&t.componentOptions;if(r){var n=ti(r),i=this,o=i.include,a=i.exclude;if(o&&(!n||!ri(o,n))||a&&n&&ri(a,n))return t;var s=this,c=s.cache,u=s.keys,f=null==t.key?r.Ctor.cid+(r.tag?"::"+r.tag:""):t.key;c[f]?(t.componentInstance=c[f].componentInstance,x(u,f),u.push(f)):(c[f]=t,u.push(f),this.max&&u.length>parseInt(this.max)&&ii(c,u[0],u,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}},si={KeepAlive:ai};function ci(e){var t={get:function(){return $},set:function(){le("Do not replace the Vue.config object, set individual fields instead.")}};Object.defineProperty(e,"config",t),e.util={warn:le,extend:j,mergeOptions:tt,defineReactive:Re},e.set=Ne,e.delete=ze,e.nextTick=Et,e.observable=function(e){return Fe(e),e},e.options=Object.create(null),U.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,j(e.options.components,si),Gn(e),Xn(e),Yn(e),ei(e)}ci(Kn),Object.defineProperty(Kn.prototype,"$isServer",{get:ae}),Object.defineProperty(Kn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Kn,"FunctionalRenderContext",{value:wr}),Kn.version="2.6.11";var ui="[object Array]",fi="[object Object]";function li(e,t){var r={};return di(e,t),hi(e,t,"",r),r}function di(e,t){if(e!==t){var r=vi(e),n=vi(t);if(r==fi&&n==fi){if(Object.keys(e).length>=Object.keys(t).length)for(var i in t){var o=e[i];void 0===o?e[i]=null:di(o,t[i])}}else r==ui&&n==ui&&e.length>=t.length&&t.forEach((function(t,r){di(e[r],t)}))}}function hi(e,t,r,n){if(e!==t){var i=vi(e),o=vi(t);if(i==fi)if(o!=fi||Object.keys(e).length1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Oi(e){return Array.isArray(e)?B(e):"string"===typeof e?Ei(e):e}var Ti=["createSelectorQuery","createIntersectionObserver","selectAllComponents","selectComponent"];function Ci(e,t){var r=t.split("."),n=r[0];return 0===n.indexOf("__$n")&&(n=parseInt(n.replace("__$n",""))),1===r.length?e[n]:Ci(e[n],r.slice(1).join("."))}function Ii(e){e.config.errorHandler=function(t,r,n){e.util.warn("Error in "+n+': "'+t.toString()+'"',r),console.error(t);var i="function"===typeof getApp&&getApp();i&&i.onError&&i.onError(t)};var t=e.prototype.$emit;e.prototype.$emit=function(e){return this.$scope&&e&&(this.$scope["_triggerEvent"]||this.$scope["triggerEvent"]).call(this.$scope,e,{__args__:I(arguments,1)}),t.apply(this,arguments)},e.prototype.$nextTick=function(e){return bi(this,e)},Ti.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=Jt,e.prototype.__init_injections=Zt,e.prototype.__call_hook=function(e,t){var r=this;we();var n,i=r.$options[e],o=e+" hook";if(i)for(var a=0,s=i.length;a0&&void 0!==arguments[0]?arguments[0]:"url",r=this[e];r&&t[this.linkType]({url:r})},$uGetRect:function(e,r){var n=this;return new Promise((function(i){t.createSelectorQuery().in(n)[r?"selectAll":"select"](e).boundingClientRect((function(e){r&&Array.isArray(e)&&e.length&&i(e),!r&&e&&i(e)})).exec()}))},getParentData:function(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent={}),this.parent=t.$u.$parent.call(this,r),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 r=this.parent.children;r.map((function(t,n){t===e&&r.splice(n,1)}))}}}}).call(this,r(1)["default"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={options:{virtualHost:!0}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(16));function i(e){return e&&e.__esModule?e:{default:e}}var o=n.default;t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=u(r(17)),i=u(r(25)),o=u(r(26)),a=u(r(27)),s=r(20),c=u(r(28));function u(e){return e&&e.__esModule?e:{default:e}}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};h(this,e),(0,s.isPlainObject)(t)||(t={},console.warn("设置全局参数必须接收一个Object")),this.config=(0,c.default)(l(l({},a.default),t)),this.interceptors={request:new i.default,response:new i.default}}return v(e,[{key:"setConfig",value:function(e){this.config=e(this.config)}},{key:"middleware",value:function(e){e=(0,o.default)(this.config,e);var t=[n.default,void 0],r=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)r=r.then(t.shift(),t.shift());return r}},{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(l({url:e,method:"GET"},t))}},{key:"post",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"POST"},r))}},{key:"put",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"PUT"},r))}},{key:"delete",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"DELETE"},r))}},{key:"connect",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"CONNECT"},r))}},{key:"head",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"HEAD"},r))}},{key:"options",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"OPTIONS"},r))}},{key:"trace",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.middleware(l({url:e,data:t,method:"TRACE"},r))}},{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},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(18));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(e){return(0,n.default)(e)};t.default=o},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(r(19)),i=s(r(21)),o=s(r(24)),a=r(20);function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.method||e.method||"GET",i={baseURL:e.baseURL||"",method:r,url:t.url||"",params:t.params||{},custom:o(o({},e.custom||{}),t.custom||{}),header:(0,n.deepMerge)(e.header||{},t.header||{})},a=["getTask","validateStatus"];if(i=o(o({},i),s(a,e,t)),"DOWNLOAD"===r);else if("UPLOAD"===r){delete i.header["content-type"],delete i.header["Content-Type"];var c=["filePath","name","formData"];c.forEach((function(e){(0,n.isUndefined)(t[e])||(i[e]=t[e])}))}else{var u=["data","timeout","dataType","responseType"];i=o(o({},i),s(u,e,t))}return i};t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={baseURL:"",header:{},method:"GET",dataType:"json",responseType:"text",custom:{},timeout:6e4,validateStatus:function(e){return e>=200&&e<300}};t.default=n},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(){function t(e,t){return null!=t&&e instanceof t}var r,n,i;try{r=Map}catch(l){r=function(){}}try{n=Set}catch(l){n=function(){}}try{i=Promise}catch(l){i=function(){}}function o(a,s,c,u,l){"object"===typeof s&&(c=s.depth,u=s.prototype,l=s.includeNonEnumerable,s=s.circular);var d=[],h=[],p="undefined"!=typeof e;function v(a,c){if(null===a)return null;if(0===c)return a;var g,y;if("object"!=typeof a)return a;if(t(a,r))g=new r;else if(t(a,n))g=new n;else if(t(a,i))g=new i((function(e,t){a.then((function(t){e(v(t,c-1))}),(function(e){t(v(e,c-1))}))}));else if(o.__isArray(a))g=[];else if(o.__isRegExp(a))g=new RegExp(a.source,f(a)),a.lastIndex&&(g.lastIndex=a.lastIndex);else if(o.__isDate(a))g=new Date(a.getTime());else{if(p&&e.isBuffer(a))return e.from?g=e.from(a):(g=new e(a.length),a.copy(g)),g;t(a,Error)?g=Object.create(a):"undefined"==typeof u?(y=Object.getPrototypeOf(a),g=Object.create(y)):(g=Object.create(u),y=u)}if(s){var b=d.indexOf(a);if(-1!=b)return h[b];d.push(a),h.push(g)}for(var m in t(a,r)&&a.forEach((function(e,t){var r=v(t,c-1),n=v(e,c-1);g.set(r,n)})),t(a,n)&&a.forEach((function(e){var t=v(e,c-1);g.add(t)})),a){var x=Object.getOwnPropertyDescriptor(a,m);x&&(g[m]=v(a[m],c-1));try{var w=Object.getOwnPropertyDescriptor(a,m);if("undefined"===w.set)continue;g[m]=v(a[m],c-1)}catch(M){if(M instanceof TypeError)continue;if(M instanceof ReferenceError)continue}}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(a);for(m=0;m<_.length;m++){var S=_[m],A=Object.getOwnPropertyDescriptor(a,S);(!A||A.enumerable||l)&&(g[S]=v(a[S],c-1),Object.defineProperty(g,S,A))}}if(l){var k=Object.getOwnPropertyNames(a);for(m=0;m * @license MIT */ var n=r(30),i=r(31),o=r(32);function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function m(e){return+e!=e&&(e=0),u.alloc(+e)}function x(e,t){if(u.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 r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return Z(e).length;default:if(n)return X(e).length;t=(""+t).toLowerCase(),n=!0}}function w(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if(r>>>=0,t>>>=0,r<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,r);case"utf8":case"utf-8":return I(this,t,r);case"ascii":return D(this,t,r);case"latin1":case"binary":return L(this,t,r);case"base64":return C(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function _(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function S(e,t,r,n,i){if(0===e.length)return-1;if("string"===typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"===typeof t&&(t=u.from(t,n)),u.isBuffer(t))return 0===t.length?-1:A(e,t,r,n,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):A(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function A(e,t,r,n,i){var o,a=1,s=e.length,c=t.length;if(void 0!==n&&(n=String(n).toLowerCase(),"ucs2"===n||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var f=-1;for(o=r;os&&(r=s-c),o=r;o>=0;o--){for(var l=!0,d=0;di&&(n=i)):n=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var a=0;a239?4:u>223?3:u>191?2:1;if(i+l<=r)switch(l){case 1:u<128&&(f=u);break;case 2:o=e[i+1],128===(192&o)&&(c=(31&u)<<6|63&o,c>127&&(f=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)&&(f=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&&(f=c))}null===f?(f=65533,l=1):f>65535&&(f-=65536,n.push(f>>>10&1023|55296),f=56320|1023&f),n.push(f),i+=l}return B(n)}t.Buffer=u,t.SlowBuffer=m,t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,r){return f(null,e,t,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,r){return d(null,e,t,r)},u.allocUnsafe=function(e){return h(null,e)},u.allocUnsafeSlow=function(e){return h(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),""},u.prototype.compare=function(e,t,r,n,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return-1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var o=i-n,a=r-t,s=Math.min(o,a),c=this.slice(n,i),f=e.slice(t,r),l=0;li)&&(r=i),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return k(this,e,t,r);case"utf8":case"utf-8":return P(this,e,t,r);case"ascii":return M(this,e,t,r);case"latin1":case"binary":return E(this,e,t,r);case"base64":return O(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,t,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function B(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var r="",n=0;while(nn)&&(r=n);for(var i="",o=t;or)throw new RangeError("Trying to access beyond buffer length")}function z(e,t,r,n,i,o){if(!u.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 U(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function q(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>8*(n?i:3-i)&255}function $(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function H(e,t,r,n,o){return o||$(e,t,r,4,34028234663852886e22,-34028234663852886e22),i.write(e,t,r,n,23,4),r+4}function W(e,t,r,n,o){return o||$(e,t,r,8,17976931348623157e292,-17976931348623157e292),i.write(e,t,r,n,52,8),r+8}u.prototype.slice=function(e,t){var r,n=this.length;if(e=~~e,t=void 0===t?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t0&&(i*=256))n+=this[e+--t]*i;return n},u.prototype.readUInt8=function(e,t){return t||N(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||N(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||N(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||N(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||N(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=this[e],i=1,o=0;while(++o=i&&(n-=Math.pow(2,8*t)),n},u.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||N(e,t,this.length);var n=t,i=1,o=this[e+--n];while(n>0&&(i*=256))o+=this[e+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||N(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||N(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(e,t){t||N(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(e,t){return t||N(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||N(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||N(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||N(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t|=0,r|=0,!n){var i=Math.pow(2,8*r)-1;z(this,e,t,r,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+r},u.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):q(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);z(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+r},u.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);z(this,e,t,r,i-1,-i)}var o=r-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+r},u.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):U(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):U(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):q(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||z(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):q(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,r){return H(this,e,t,!0,r)},u.prototype.writeFloatBE=function(e,t,r){return H(this,e,t,!1,r)},u.prototype.writeDoubleLE=function(e,t,r){return W(this,e,t,!0,r)},u.prototype.writeDoubleBE=function(e,t,r){return W(this,e,t,!1,r)},u.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t=0;--i)e[i+t]=this[i+r];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&r<57344){if(!i){if(r>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function Y(e){for(var t=[],r=0;r>8,i=r%256,o.push(i),o.push(n)}return o}function Z(e){return n.toByteArray(V(e))}function ee(e,t,r,n){for(var i=0;i=t.length||i>=e.length)break;t[i+r]=e[i]}return i}function te(e){return e!==e}}).call(this,r(2))},function(e,t,r){"use strict";t.byteLength=f,t.toByteArray=d,t.fromByteArray=v;for(var n=[],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 r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}function f(e){var t=u(e),r=t[0],n=t[1];return 3*(r+n)/4-n}function l(e,t,r){return 3*(t+r)/4-r}function d(e){var t,r,n=u(e),a=n[0],s=n[1],c=new o(l(e,a,s)),f=0,d=s>0?a-4:a;for(r=0;r>16&255,c[f++]=t>>8&255,c[f++]=255&t;return 2===s&&(t=i[e.charCodeAt(r)]<<2|i[e.charCodeAt(r+1)]>>4,c[f++]=255&t),1===s&&(t=i[e.charCodeAt(r)]<<10|i[e.charCodeAt(r+1)]<<4|i[e.charCodeAt(r+2)]>>2,c[f++]=t>>8&255,c[f++]=255&t),c}function h(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function p(e,t,r){for(var n,i=[],o=t;oc?c:s+a));return 1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,c=(1<>1,f=-7,l=r?i-1:0,d=r?-1:1,h=e[t+l];for(l+=d,o=h&(1<<-f)-1,h>>=-f,f+=s;f>0;o=256*o+e[t+l],l+=d,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=256*a+e[t+l],l+=d,f-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),o-=u}return(h?-1:1)*a*Math.pow(2,o-n)},t.write=function(e,t,r,n,i,o){var a,s,c,u=8*o-i-1,f=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,p=n?1:-1,v=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=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),t+=a+l>=1?d/c:d*Math.pow(2,1-l),t*c>=2&&(a++,c/=2),a+l>=f?(s=0,a=f):a+l>=1?(s=(t*c-1)*Math.pow(2,i),a+=l):(s=t*Math.pow(2,l-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=255&s,h+=p,s/=256,i-=8);for(a=a<0;e[r+h]=255&a,h+=p,a/=256,u-=8);e[r+h-p]|=128*v}},function(e,t){var r={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==r.call(e)}},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(34));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}function a(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function s(e){o(a,n,i,s,c,"next",e)}function c(e){o(a,n,i,s,c,"throw",e)}s(void 0)}))}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r0&&void 0!==s[0]?s[0]:{},i=s.length>1&&void 0!==s[1]?s[1]:{},o={},"string"===typeof r?(o.url=this.mixinParam(r,i),o.type="navigateTo"):(o=e.$u.deepClone(r,this.config),o.url=this.mixinParam(r.url,r.params)),o.url!==e.$u.page()){t.next=6;break}return t.abrupt("return");case 6:if(i.intercept&&(this.config.intercept=i.intercept),o.params=i,o=e.$u.deepMerge(this.config,o),"function"!==typeof e.$u.routeIntercept){t.next=16;break}return t.next=12,new Promise((function(t,r){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)})));function r(){return t.apply(this,arguments)}return r}()},{key:"openPage",value:function(t){var r=t.url,n=(t.type,t.delta),i=t.animationType,o=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||e.navigateTo({url:r,animationType:i,animationDuration:o}),"redirectTo"!=t.type&&"redirect"!=t.type||e.redirectTo({url:r}),"switchTab"!=t.type&&"tab"!=t.type||e.switchTab({url:r}),"reLaunch"!=t.type&&"launch"!=t.type||e.reLaunch({url:r}),"navigateBack"!=t.type&&"back"!=t.type||e.navigateBack({delta:n})}}]),t}(),l=(new f).route;t.default=l}).call(this,r(1)["default"])},function(e,t,r){e.exports=r(35)},function(e,t,r){var n=function(){return this||"object"===typeof self&&self}()||Function("return this")(),i=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,o=i&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(36),i)n.regeneratorRuntime=o;else try{delete n.regeneratorRuntime}catch(a){n.regeneratorRuntime=void 0}},function(e,t){!function(t){"use strict";var r,n=Object.prototype,i=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,f=t.regeneratorRuntime;if(f)u&&(e.exports=f);else{f=t.regeneratorRuntime=u?e.exports:{},f.wrap=x;var l="suspendedStart",d="suspendedYield",h="executing",p="completed",v={},g={};g[a]=function(){return this};var y=Object.getPrototypeOf,b=y&&y(y(I([])));b&&b!==n&&i.call(b,a)&&(g=b);var m=A.prototype=_.prototype=Object.create(g);S.prototype=m.constructor=A,A.constructor=S,A[c]=S.displayName="GeneratorFunction",f.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(m),e},f.awrap=function(e){return{__await:e}},k(P.prototype),P.prototype[s]=function(){return this},f.AsyncIterator=P,f.async=function(e,t,r,n){var i=new P(x(e,t,r,n));return f.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(m),m[c]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},f.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){while(t.length){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=r),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;T(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function x(e,t,r,n){var i=t&&t.prototype instanceof _?t:_,o=Object.create(i.prototype),a=new C(n||[]);return o._invoke=M(e,r,a),o}function w(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}function _(){}function S(){}function A(){}function k(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function P(e){function t(r,n,o,a){var s=w(e[r],e,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(u).then((function(e){c.value=e,o(c)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}var r;function n(e,n){function i(){return new Promise((function(r,i){t(e,n,r,i)}))}return r=r?r.then(i,i):i()}this._invoke=n}function M(e,t,r){var n=l;return function(i,o){if(n===h)throw new Error("Generator is already running");if(n===p){if("throw"===i)throw o;return j()}r.method=i,r.arg=o;while(1){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===v)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var c=w(e,t,r);if("normal"===c.type){if(n=r.done?p:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=p,r.method="throw",r.arg=c.arg)}}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function O(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 T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,o=function t(){while(++n0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=i(e,!1),a=n[0],s=n[1],c=n[2],u=i(t,!1),f=u[0],l=u[1],d=u[2],h=(f-a)/r,p=(l-s)/r,v=(d-c)/r,g=[],y=0;y1&&void 0!==arguments[1])||arguments[1],r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(e=String(e).toLowerCase(),e&&r.test(e)){if(4===e.length){for(var n="#",i=1;i<4;i+=1)n+=e.slice(i,i+1).concat(e.slice(i,i+1));e=n}for(var 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 o(e){var t=e,r=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(t)){for(var n=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),i="#",o=0;o=0}function b(e,t){return e>=t[0]&&e<=t[1]}function m(e,t){return e.length>=t[0]&&e.length<=t[1]}function x(e){var t=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return t.test(e)}function w(e){switch(typeof 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 _(e){if("string"===typeof e)try{var t=JSON.parse(e);return!("object"!==typeof t||!t)}catch(r){return!1}return!1}function S(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(t,"}$")).test(e)}function P(e){return"function"===typeof e}function M(e){return A(e)&&P(e.then)&&P(e.catch)}function E(e){var t=e.split("?")[0],r=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;return r.test(t)}function O(e){var t=/\.(mp4|mpg|mpeg|dat|asf|avi|rm|rmvb|mov|wmv|flv|mkv|m3u8)/i;return t.test(e)}function T(e){return e&&"[object RegExp]"===Object.prototype.toString.call(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C={email:n,mobile:i,url:o,date:a,dateISO:s,number:c,digits:f,idCard:l,carNo:d,amount:h,chinese:p,letter:v,enOrNum:g,contains:y,range:b,rangeLength:m,empty:w,isEmpty:w,jsonString:_,landline:x,object:A,array:S,code:k,func:P,promise:M,video:O,image:E,regExp:T,string:u};t.default=C},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=null;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==n&&clearTimeout(n),r){var i=!n;n=setTimeout((function(){n=null}),t),i&&"function"===typeof e&&e()}else n=setTimeout((function(){"function"===typeof e&&e()}),t)}var o=i;t.default=o},function(e,t,r){"use strict";var n;function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];r?n||(n=!0,"function"===typeof e&&e(),setTimeout((function(){n=!1}),t)):n||(n=!0,setTimeout((function(){n=!1,"function"===typeof e&&e()}),t))}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i;t.default=o},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(r(38)),i=r(42);function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){return l(e)||f(e,t)||c(e,t)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return u(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(e,Math.min(t,Number(r)))}function h(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return n.default.number(t)?r?"".concat(t,"px"):Number(t):/(rpx|upx)$/.test(t)?r?"".concat(e.upx2px(parseInt(t)),"px"):Number(e.upx2px(parseInt(t))):r?"".concat(parseInt(t),"px"):parseInt(t)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:30;return new Promise((function(t){setTimeout((function(){t()}),e)}))}function v(){return e.getSystemInfoSync().platform.toLowerCase()}function g(){return e.getSystemInfoSync()}function y(e,t){if(e>=0&&t>0&&t>=e){var r=t-e+1;return Math.floor(Math.random()*r+e)}return 0}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(r=r||n.length,e)for(var 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}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object";if(n.default.empty(e)||"object"===typeof e&&"object"===t||"string"===t&&"string"===typeof e)return e;if("object"===t){e=E(e);for(var r=e.split(";"),i={},o=0;o0&&void 0!==arguments[0]?arguments[0]:"auto",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null!==(t=null===(r=e)||void 0===r||null===(i=r.$u)||void 0===i||null===(o=i.config)||void 0===o?void 0:o.unit)&&void 0!==t?t:"px";return a=String(a),n.default.number(a)?"".concat(a).concat(s):a}function _(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!==typeof e&&"function"!==typeof e)return e;var t=n.default.array(e)?[]:{};for(var r in e)e.hasOwnProperty(r)&&(t[r]="object"===typeof e[r]?_(e[r]):e[r]);return t}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e=_(e),"object"!==typeof e||"object"!==typeof t)return!1;for(var r in t)t.hasOwnProperty(r)&&(r in e?"object"!==typeof e[r]||"object"!==typeof t[r]?e[r]=t[r]:e[r].concat&&t[r].concat?e[r]=e[r].concat(t[r]):e[r]=S(e[r],t[r]):e[r]=t[r]);return e}function A(e){console.error("uView提示:".concat(e))}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.sort((function(){return Math.random()-.5}))}function P(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=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)):new Date("string"===typeof t?t.replace(/-/g,"/"):t):new Date;var n={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 i in n){var o=new RegExp("".concat(i,"+")).exec(r)||[],s=a(o,1),c=s[0];if(c){var u="y"===i&&2===c.length?2:0;r=r.replace(c,n[i].slice(u))}}return r}function M(){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 r=(new Date).getTime()-e;r=parseInt(r/1e3);var n="";switch(!0){case r<300:n="刚刚";break;case r>=300&&r<3600:n="".concat(parseInt(r/60),"分钟前");break;case r>=3600&&r<86400:n="".concat(parseInt(r/3600),"小时前");break;case r>=86400&&r<2592e3:n="".concat(parseInt(r/86400),"天前");break;default:n=!1===t?r>=2592e3&&r<31536e3?"".concat(parseInt(r/2592e3),"个月前"):"".concat(parseInt(r/31536e3),"年前"):P(e,t)}return n}function E(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}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",n=t?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(r)&&(r="brackets");var o=function(t){var n=e[t];if(["",void 0,null].indexOf(n)>=0)return"continue";if(n.constructor===Array)switch(r){case"indices":for(var o=0;o1&&void 0!==arguments[1]?arguments[1]:2e3;e.showToast({title:String(t),icon:"none",duration:r})}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(e)&&(e="success");var r="";switch(e){case"primary":r="info-circle";break;case"info":r="info-circle";break;case"error":r="close-circle";break;case"warning":r="error-circle";break;case"success":r="checkmark-circle";break;default:r="checkmark-circle"}return t&&(r+="-fill"),r}function I(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:",";e="".concat(e).replace(/[^0-9+-Ee.]/g,"");var o=isFinite(+e)?+e:0,a=isFinite(+t)?Math.abs(t):0,s="undefined"===typeof n?",":n,c="undefined"===typeof r?".":r,u="";u=(a?(0,i.round)(o,a)+"":"".concat(Math.round(o))).split(".");var f=/(-?\d+)(\d{3})/;while(f.test(u[0]))u[0]=u[0].replace(f,"$1".concat(s,"$2"));return(u[1]||"").length1&&void 0!==arguments[1])||arguments[1],r=parseInt(e);return t?/s$/.test(e)?e:"".concat(e,e>30?"ms":"s"):/ms$/.test(e)?r:/s$/.test(e)?r>30?r:1e3*r:r}function B(e){return"00".concat(e).slice(-2)}function D(t,r){var n=e.$u.$parent.call(t,"u-form-item"),i=e.$u.$parent.call(t,"u-form");n&&i&&i.validateField(n.prop,(function(){}),r)}function L(e,t){if(e){if("string"!==typeof t||""===t)return"";if(-1!==t.indexOf(".")){for(var r=t.split("."),n=e[r[0]]||{},i=1;i1){var i=r[0];t[i]&&"object"===typeof t[i]||(t[i]={});r.shift();e(t[i],r,n)}else t[r[0]]=n};if("string"!==typeof t||""===t);else if(-1!==t.indexOf(".")){var i=t.split(".");n(e,i,r)}else e[t]=r}}function R(){var e,t,r=getCurrentPages();return"/".concat(null!==(e=null===(t=r[r.length-1])||void 0===t?void 0:t.route)&&void 0!==e?e:"")}function N(){var e=getCurrentPages();return e}function z(t){var r=t.props,n=void 0===r?{}:r,i=t.config,o=void 0===i?{}:i,a=t.color,s=void 0===a?{}:a,c=t.zIndex,u=void 0===c?{}:c,f=e.$u.deepMerge;e.$u.config=f(e.$u.config,o),e.$u.props=f(e.$u.props,n),e.$u.color=f(e.$u.color,s),e.$u.zIndex=f(e.$u.zIndex,u)}String.prototype.padStart||(String.prototype.padStart=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(t))throw new TypeError("fillString must be String");var r=this;if(r.length>=e)return String(r);var n=e-r.length,i=Math.ceil(n/t.length);while(i>>=1)t+=t,1===i&&(t+=t);return t.slice(0,n)+r});var U={range:d,getPx:h,sleep:p,os:v,sys:g,random:y,guid:b,$parent:m,addStyle:x,addUnit:w,deepClone:_,deepMerge:S,error:A,randomArray:k,timeFormat:P,timeFrom:M,trim:E,queryParams:O,toast:T,type2icon:C,priceFormat:I,getDuration:j,padZero:B,formValidate:D,getProperty:L,setProperty:F,page:R,pages:N,setConfig:z};t.default=U}).call(this,r(1)["default"])},function(e,t,r){"use strict";function n(e){return c(e)||s(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1&&void 0!==arguments[1]?arguments[1]:15;return+parseFloat(Number(e).toPrecision(t))}function l(e){var t=e.toString().split(/[eE]/),r=(t[0].split(".")[1]||"").length-+(t[1]||0);return r>0?r:0}function d(e){if(-1===e.toString().indexOf("e"))return Number(e.toString().replace(".",""));var t=l(e);return t>0?f(Number(e)*Math.pow(10,t)):Number(e)}function h(e){u&&(e>Number.MAX_SAFE_INTEGER||e2)return p(t,v);var n=t[0],i=t[1],o=d(n),a=d(i),s=l(n)+l(i),c=o*a;return h(c),c/Math.pow(10,s)}function g(){for(var e=arguments.length,t=new Array(e),r=0;r2)return p(t,g);var n=t[0],i=t[1],o=Math.pow(10,Math.max(l(n),l(i)));return(v(n,o)+v(i,o))/o}function y(){for(var e=arguments.length,t=new Array(e),r=0;r2)return p(t,y);var n=t[0],i=t[1],o=Math.pow(10,Math.max(l(n),l(i)));return(v(n,o)-v(i,o))/o}function b(){for(var e=arguments.length,t=new Array(e),r=0;r2)return p(t,b);var n=t[0],i=t[1],o=d(n),a=d(i);return h(o),h(a),v(o/a,f(Math.pow(10,l(i)-l(n))))}function m(e,t){var r=Math.pow(10,t),n=b(Math.round(Math.abs(v(e,r))),r);return e<0&&0!==n&&(n=v(n,-1)),n}function x(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];u=e}var w={times:v,plus:g,minus:y,divide:b,round:m,enableBoundaryChecking:x};t.default=w},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n="2.0.31";console.log("\n %c uView V".concat(n," %c https://www.uviewui.com/ \n\n"),"color: #ffffff; background: #3c9cff; padding:5px 0;","color: #3c9cff;background: #ffffff; padding:5px 0;");var i={v:n,version:n,type:["primary","success","info","error","warning"],color:{"u-primary":"#2979ff","u-warning":"#ff9900","u-success":"#19be6b","u-error":"#fa3534","u-info":"#909399","u-main-color":"#303133","u-content-color":"#606266","u-tips-color":"#909399","u-light-color":"#c0c4cc"},unit:"px"};t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=Re(r(43)),i=Re(r(45)),o=Re(r(46)),a=Re(r(47)),s=Re(r(48)),c=Re(r(49)),u=Re(r(50)),f=Re(r(51)),l=Re(r(52)),d=Re(r(53)),h=Re(r(54)),p=Re(r(55)),v=Re(r(56)),g=Re(r(57)),y=Re(r(58)),b=Re(r(59)),m=Re(r(60)),x=Re(r(61)),w=Re(r(62)),_=Re(r(63)),S=Re(r(64)),A=Re(r(65)),k=Re(r(66)),P=Re(r(67)),M=Re(r(68)),E=Re(r(69)),O=Re(r(70)),T=Re(r(71)),C=Re(r(72)),I=Re(r(73)),j=Re(r(74)),B=Re(r(75)),D=Re(r(76)),L=Re(r(77)),F=Re(r(78)),R=Re(r(79)),N=Re(r(80)),z=Re(r(81)),U=Re(r(82)),q=Re(r(83)),$=Re(r(84)),H=Re(r(85)),W=Re(r(86)),Q=Re(r(87)),V=Re(r(88)),K=Re(r(89)),G=Re(r(90)),X=Re(r(91)),Y=Re(r(93)),J=Re(r(94)),Z=Re(r(95)),ee=Re(r(96)),te=Re(r(97)),re=Re(r(98)),ne=Re(r(99)),ie=Re(r(100)),oe=Re(r(101)),ae=Re(r(102)),se=Re(r(103)),ce=Re(r(104)),ue=Re(r(105)),fe=Re(r(106)),le=Re(r(107)),de=Re(r(108)),he=Re(r(109)),pe=Re(r(110)),ve=Re(r(111)),ge=Re(r(112)),ye=Re(r(113)),be=Re(r(114)),me=Re(r(115)),xe=Re(r(116)),we=Re(r(117)),_e=Re(r(118)),Se=Re(r(119)),Ae=Re(r(120)),ke=Re(r(121)),Pe=Re(r(122)),Me=Re(r(123)),Ee=Re(r(124)),Oe=Re(r(125)),Te=Re(r(126)),Ce=Re(r(127)),Ie=Re(r(128)),je=Re(r(129)),Be=Re(r(130)),De=Re(r(131)),Le=Re(r(132)),Fe=Re(r(133));function Re(e){return e&&e.__esModule?e:{default:e}}function Ne(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ze(e){for(var t=1;t=2)e.mixin({beforeCreate:n});else{var r=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,r.call(this,e)}}function n(){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)}}var n="undefined"!==typeof window?window:"undefined"!==typeof t?t:{},i=n.__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e){i&&(e._devtoolHook=i,i.emit("vuex:init",e),i.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){i.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){i.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function s(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var r=a(t,(function(t){return t.original===e}));if(r)return r.copy;var n=Array.isArray(e)?[]:{};return t.push({original:e,copy:n}),Object.keys(e).forEach((function(r){n[r]=s(e[r],t)})),n}function c(e,t){Object.keys(e).forEach((function(r){return t(e[r],r)}))}function u(e){return null!==e&&"object"===typeof e}function f(e){return e&&"function"===typeof e.then}function l(e,t){if(!e)throw new Error("[vuex] "+t)}function d(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var r=e.state;this.state=("function"===typeof r?r():r)||{}},p={namespaced:{configurable:!0}};p.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){c(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&c(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&c(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&c(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,p);var v=function(e){this.register([],e,!1)};function g(e,t,r){if(w(e,r),t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return void console.warn("[vuex] trying to add a new module '"+n+"' on hot reloading, manual reload is needed");g(e.concat(n),t.getChild(n),r.modules[n])}}v.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},v.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,r){return t=t.getChild(r),e+(t.namespaced?r+"/":"")}),"")},v.prototype.update=function(e){g([],this.root,e)},v.prototype.register=function(e,t,r){var n=this;void 0===r&&(r=!0),w(e,t);var i=new h(t,r);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&c(t.modules,(function(t,i){n.register(e.concat(i),t,r)}))},v.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1],n=t.getChild(r);n?n.runtime&&t.removeChild(r):console.warn("[vuex] trying to unregister module '"+r+"', which is not registered")},v.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),r=e[e.length-1];return!!t&&t.hasChild(r)};var y,b={assert:function(e){return"function"===typeof e},expected:"function"},m={assert:function(e){return"function"===typeof e||"object"===typeof e&&"function"===typeof e.handler},expected:'function or object with "handler" function'},x={getters:b,mutations:b,actions:m};function w(e,t){Object.keys(x).forEach((function(r){if(t[r]){var n=x[r];c(t[r],(function(t,i){l(n.assert(t),_(e,r,i,t,n.expected))}))}}))}function _(e,t,r,n,i){var o=t+" should be "+i+' but "'+t+"."+r+'"';return e.length>0&&(o+=' in module "'+e.join(".")+'"'),o+=" is "+JSON.stringify(n)+".",o}var S=function e(t){var r=this;void 0===t&&(t={}),!y&&"undefined"!==typeof window&&window.Vue&&F(window.Vue),l(y,"must call Vue.use(Vuex) before creating a store instance."),l("undefined"!==typeof Promise,"vuex requires a Promise polyfill in this browser."),l(this instanceof e,"store must be called with the new operator.");var n=t.plugins;void 0===n&&(n=[]);var i=t.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new v(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var a=this,s=this,c=s.dispatch,u=s.commit;this.dispatch=function(e,t){return c.call(a,e,t)},this.commit=function(e,t,r){return u.call(a,e,t,r)},this.strict=i;var f=this._modules.root.state;E(this,f,[],this._modules.root),M(this,f),n.forEach((function(e){return e(r)}));var d=void 0!==t.devtools?t.devtools:y.config.devtools;d&&o(this)},A={state:{configurable:!0}};function k(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function P(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;E(e,r,[],e._modules.root,!0),M(e,r,t)}function M(e,t,r){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};c(i,(function(t,r){o[r]=d(t,e),Object.defineProperty(e.getters,r,{get:function(){return e._vm[r]},enumerable:!0})}));var a=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:o}),y.config.silent=a,e.strict&&B(e),n&&(r&&e._withCommit((function(){n._data.$$state=null})),y.nextTick((function(){return n.$destroy()})))}function E(e,t,r,n,i){var o=!r.length,a=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[a]&&console.error("[vuex] duplicate namespace "+a+" for the namespaced module "+r.join("/")),e._modulesNamespaceMap[a]=n),!o&&!i){var s=D(t,r.slice(0,-1)),c=r[r.length-1];e._withCommit((function(){c in s&&console.warn('[vuex] state field "'+c+'" was overridden by a module with the same name at "'+r.join(".")+'"'),y.set(s,c,n.state)}))}var u=n.context=O(e,a,r);n.forEachMutation((function(t,r){var n=a+r;C(e,n,t,u)})),n.forEachAction((function(t,r){var n=t.root?r:a+r,i=t.handler||t;I(e,n,i,u)})),n.forEachGetter((function(t,r){var n=a+r;j(e,n,t,u)})),n.forEachChild((function(n,o){E(e,t,r.concat(o),n,i)}))}function O(e,t,r){var n=""===t,i={dispatch:n?e.dispatch:function(r,n,i){var o=L(r,n,i),a=o.payload,s=o.options,c=o.type;if(s&&s.root||(c=t+c,e._actions[c]))return e.dispatch(c,a);console.error("[vuex] unknown local action type: "+o.type+", global type: "+c)},commit:n?e.commit:function(r,n,i){var o=L(r,n,i),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=t+c,e._mutations[c])?e.commit(c,a,s):console.error("[vuex] unknown local mutation type: "+o.type+", global type: "+c)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return T(e,t)}},state:{get:function(){return D(e.state,r)}}}),i}function T(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var o=i.slice(n);Object.defineProperty(r,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function C(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){r.call(e,n.state,t)}))}function I(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return f(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function j(e,t,r,n){e._wrappedGetters[t]?console.error("[vuex] duplicate getter key: "+t):e._wrappedGetters[t]=function(e){return r(n.state,n.getters,e.state,e.getters)}}function B(e){e._vm.$watch((function(){return this._data.$$state}),(function(){l(e._committing,"do not mutate vuex store state outside mutation handlers.")}),{deep:!0,sync:!0})}function D(e,t){return t.reduce((function(e,t){return e[t]}),e)}function L(e,t,r){return u(e)&&e.type&&(r=t,t=e,e=e.type),l("string"===typeof e,"expects string as the type, but found "+typeof e+"."),{type:e,payload:t,options:r}}function F(e){y&&e===y?console.error("[vuex] already installed. Vue.use(Vuex) should be called only once."):(y=e,r(y))}A.state.get=function(){return this._vm._data.$$state},A.state.set=function(e){l(!1,"use store.replaceState() to explicit replace store state.")},S.prototype.commit=function(e,t,r){var n=this,i=L(e,t,r),o=i.type,a=i.payload,s=i.options,c={type:o,payload:a},u=this._mutations[o];u?(this._withCommit((function(){u.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(c,n.state)})),s&&s.silent&&console.warn("[vuex] mutation type: "+o+". Silent option has been removed. Use the filter functionality in the vue-devtools")):console.error("[vuex] unknown mutation type: "+o)},S.prototype.dispatch=function(e,t){var r=this,n=L(e,t),i=n.type,o=n.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,r.state)}))}catch(u){console.warn("[vuex] error in before action subscribers: "),console.error(u)}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{r._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,r.state)}))}catch(u){console.warn("[vuex] error in after action subscribers: "),console.error(u)}e(t)}),(function(e){try{r._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,r.state,e)}))}catch(u){console.warn("[vuex] error in error action subscribers: "),console.error(u)}t(e)}))}))}console.error("[vuex] unknown action type: "+i)},S.prototype.subscribe=function(e,t){return k(e,this._subscribers,t)},S.prototype.subscribeAction=function(e,t){var r="function"===typeof e?{before:e}:e;return k(r,this._actionSubscribers,t)},S.prototype.watch=function(e,t,r){var n=this;return l("function"===typeof e,"store.watch only accepts a function."),this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,r)},S.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},S.prototype.registerModule=function(e,t,r){void 0===r&&(r={}),"string"===typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),l(e.length>0,"cannot register the root module by using registerModule."),this._modules.register(e,t),E(this,this.state,e,this._modules.get(e),r.preserveState),M(this,this.state)},S.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit((function(){var r=D(t.state,e.slice(0,-1));y.delete(r,e[e.length-1])})),P(this)},S.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),l(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},S.prototype[[104,111,116,85,112,100,97,116,101].map((function(e){return String.fromCharCode(e)})).join("")]=function(e){this._modules.update(e),P(this,!0)},S.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(S.prototype,A);var R=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapState: mapper parameter must be either an Array or an Object"),$(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=this.$store.state,r=this.$store.getters;if(e){var n=Q(this.$store,"mapState",e);if(!n)return;t=n.context.state,r=n.context.getters}return"function"===typeof i?i.call(this,t,r):t[i]},r[n].vuex=!0})),r})),N=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),$(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.commit;if(e){var o=Q(this.$store,"mapMutations",e);if(!o)return;n=o.context.commit}return"function"===typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),z=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapGetters: mapper parameter must be either an Array or an Object"),$(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,r[n]=function(){if(!e||Q(this.$store,"mapGetters",e)){if(i in this.$store.getters)return this.$store.getters[i];console.error("[vuex] unknown getter: "+i)}},r[n].vuex=!0})),r})),U=W((function(e,t){var r={};return H(t)||console.error("[vuex] mapActions: mapper parameter must be either an Array or an Object"),$(t).forEach((function(t){var n=t.key,i=t.val;r[n]=function(){var t=[],r=arguments.length;while(r--)t[r]=arguments[r];var n=this.$store.dispatch;if(e){var o=Q(this.$store,"mapActions",e);if(!o)return;n=o.context.dispatch}return"function"===typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),r})),q=function(e){return{mapState:R.bind(null,e),mapGetters:z.bind(null,e),mapMutations:N.bind(null,e),mapActions:U.bind(null,e)}};function $(e){return H(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 H(e){return Array.isArray(e)||u(e)}function W(e){return function(t,r){return"string"!==typeof t?(r=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,r)}}function Q(e,t,r){var n=e._modulesNamespaceMap[r];return n||console.error("[vuex] module namespace not found in "+t+"(): "+r),n}function V(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var r=e.filter;void 0===r&&(r=function(e,t,r){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var f=e.logger;return void 0===f&&(f=console),function(e){var l=s(e.state);"undefined"!==typeof f&&(c&&e.subscribe((function(e,o){var a=s(o);if(r(e,l,a)){var c=X(),u=i(e),d="mutation "+e.type+c;K(f,d,t),f.log("%c prev state","color: #9E9E9E; font-weight: bold",n(l)),f.log("%c mutation","color: #03A9F4; font-weight: bold",u),f.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),G(f)}l=a})),u&&e.subscribeAction((function(e,r){if(o(e,r)){var n=X(),i=a(e),s="action "+e.type+n;K(f,s,t),f.log("%c action","color: #03A9F4; font-weight: bold",i),G(f)}})))}}function K(e,t,r){var n=r?e.groupCollapsed:e.group;try{n.call(e,t)}catch(i){e.log(t)}}function G(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function X(){var e=new Date;return" @ "+J(e.getHours(),2)+":"+J(e.getMinutes(),2)+":"+J(e.getSeconds(),2)+"."+J(e.getMilliseconds(),3)}function Y(e,t){return new Array(t+1).join(e)}function J(e,t){return Y("0",t-e.toString().length)+e}var Z={Store:S,install:F,version:"3.6.2",mapState:R,mapMutations:N,mapGetters:z,mapActions:U,createNamespacedHelpers:q,createLogger:V};e.exports=Z}).call(this,r(2))},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={namespaced:!0,state:function(){return{token:e.getStorageSync("token")||"",parentInfo:JSON.parse(e.getStorageSync("parentInfo")||"{}"),phoneNumber:e.getStorageSync("phoneNumber")||"",childrenData:JSON.parse(e.getStorageSync("childrenData")||"{}"),userData:JSON.parse(e.getStorageSync("userData")||"{}"),classData:JSON.parse(e.getStorageSync("classData")||"{}"),childDailyData:JSON.parse(e.getStorageSync("childDailyData")||"{}")}},mutations:{updateToken:function(t,r){t.token=r,e.setStorageSync("token",t.token)},updateParentInfo:function(t,r){t.parentInfo=r,e.setStorageSync("parentInfo",JSON.stringify(t.parentInfo))},updatePhoneNumber:function(t,r){t.phoneNumber=r,e.setStorageSync("phoneNumber",t.phoneNumber)},updateChildrenData:function(t,r){t.childrenData=r,e.setStorageSync("childrenData",JSON.stringify(t.childrenData))},updateUserData:function(t,r){t.userData=r,e.setStorageSync("userData",JSON.stringify(t.userData))},updateClassData:function(t,r){t.classData=r,e.setStorageSync("classData",JSON.stringify(t.classData))},updateChildDailyData:function(t,r){t.childDailyData=r,e.setStorageSync("childDailyData",JSON.stringify(t.childDailyData))}},getters:{}};t.default=r}).call(this,r(1)["default"])},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={namespaced:!0,state:function(){return{childInfo:JSON.parse(e.getStorageSync("childInfo")||"{}"),classList:"",examData:"",workData:"",swapData:"",clockData:"",medalData:"",examPractice:"",mistakeData:""}},mutations:{updateChildInfo:function(t,r){t.childInfo=r,e.setStorageSync("childInfo",JSON.stringify(t.childInfo))},updateClassList:function(e,t){e.classList=t},updateExamData:function(e,t){e.examData=t},updateWorkData:function(e,t){e.workData=t},updateSwapData:function(e,t){e.swapData=t},updateClockData:function(e,t){e.clockData=t},updateMedalData:function(e,t){e.medalData=t},updateExamPractice:function(e,t){e.examPractice=t},updateMistakeData:function(e,t){e.mistakeData=t}}};t.default=r}).call(this,r(1)["default"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={namespaced:!0,state:function(){return{examChartData:"",workChartData:"",swapChartData:"",subjectExamData:""}},mutations:{updateExamChartData:function(e,t){e.examChartData=t},updateWorkChartData:function(e,t){e.workChartData=t},updateSwapChartData:function(e,t){e.swapChartData=t},updateSubjectExamData:function(e,t){e.subjectExamData=t}},getters:{}};t.default=n},function(e,t,r){"use strict";(function(e){function r(e){var t=this;t.noClick?(t.noClick=!1,e(),setTimeout((function(){t.noClick=!0}),2e3)):console.log("请稍后点击")}function n(e){var t={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};for(var r in/(y+)/.test(e)&&(e=e.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length))),t)new RegExp("("+r+")").test(e)&&(e=e.replace(RegExp.$1,1==RegExp.$1.length?t[r]:("00"+t[r]).substr((""+t[r]).length)));return e}function i(e){for(var t=new Array,r=e;r>0;r--){var n=new Date;n.setDate(n.getDate()-r+1),t.push(n.format("M-dd"))}return t}function o(e){e=e||null;var t=new Date(e),r=(t.getFullYear(),(t.getMonth()+1<10?"0"+(t.getMonth()+1):t.getMonth()+1)+"-"),n=(t.getDate()<10?"0"+t.getDate():t.getDate())+" ",i=(t.getHours()<10?"0"+t.getHours():t.getHours())+":",o=t.getMinutes()<10?"0"+t.getMinutes():t.getMinutes();t.getSeconds(),t.getSeconds();return r+n+i+o}function a(){this.$store.commit("m_parent/updateToken"),this.$store.commit("m_parent/updateParentInfo"),this.$store.commit("m_parent/updatePhoneNumber"),this.$store.commit("m_parent/updateChildrenData"),this.$store.commit("m_parent/updateUserData"),this.$store.commit("m_children/updateChildInfo"),this.$store.commit("m_parent/updateClassData"),this.$store.commit("m_parent/updateChildDailyData"),e.setStorageSync("moduleData"),e.reLaunch({url:"/subpkg/startup/login"})}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s={noMultipleClicks:r,dateUtil:n,getRecentDateArray:i,timeStampToTime:o,logOut:a};t.default=s}).call(this,r(1)["default"])},function(e,t,r){"use strict";(function(e){function r(t){var r=this,n=[];return n.push(new Promise((function(t,n){e.request({url:"https://mock.apifox.cn/m1/1119457-0-default/parentInfo",data:{phoneNumber:17882237075},method:"POST",success:function(e){r.$store.commit("m_parent/updateUserData",e.data),t("请求返回成功!")},fail:function(e){n("请求返回失败!")}})}))),Promise.all(n).then((function(e){console.log("initStart",e)}))}function n(){var t=this,r=[{vote:{owner:"teacher",school:null,name:"投票活动01",creatorId:"张老师",description:"家长参与的投票活动",progress:"going",options:[{code:"A",value:"

一方案富文本

",desc:null},{code:"B",value:"

二方案富文本

",desc:null}],secret:!1,times:"once",voteNum:1,repeat:!1,scope:"private",classes:[],stuLists:["d2bb9111-d6f3-d97f-9a6d-5f6b7e653279","d25f3dbf-c7d5-da58-6155-cc584439aac8"],tchLists:[],groupLists:[],targetType:"student",targets:["d2bb9111-d6f3-d97f-9a6d-5f6b7e653279","d25f3dbf-c7d5-da58-6155-cc584439aac8"],startTime:1647918299414,createTime:1647918299414,endTime:1648051199999,updateTime:0,recordUrl:"/vote/2224ae0f-056b-4188-aa0e-5b5f3806d70f/record.json",status:0,size:0,areaId:null,pId:null,publish:0,id:"2224ae0f-056b-4188-aa0e-5b5f3806d70f",code:"Vote-张老师",pk:"Vote",ttl:-1},status:200},{survey:{owner:"teacher",school:null,name:"问卷活动01",description:"家长问卷示例dawbnduiawhdaw",creatorId:"张老师",progress:"finish",scope:"private",classes:[],stuLists:["285af18b-cc2b-7045-8726-acddd5b1a3c9"],tchLists:[],groupLists:[],targetType:"student",targets:["285af18b-cc2b-7045-8726-acddd5b1a3c9"],startTime:1647934008496,endTime:1648051199999,createTime:1647934021458,updateTime:0,blob:"/survey/710b92d4-803f-3381-cad1-6a5ebc7f7544/index.json",recordUrl:"/survey/710b92d4-803f-3381-cad1-6a5ebc7f7544/record.json",answers:[["A","B","C","D"]],status:0,size:830,areaId:null,pId:null,publish:0,id:"710b92d4-803f-3381-cad1-6a5ebc7f7544",code:"Survey-张老师",pk:"Survey",ttl:-1},status:200},{survey:{owner:"teacher",school:null,name:"问卷活动02",description:"家长问卷示例",creatorId:"张老师",progress:"finish",scope:"private",classes:[],stuLists:["285af18b-cc2b-7045-8726-acddd5b1a3c9"],tchLists:[],groupLists:[],targetType:"student",targets:["285af18b-cc2b-7045-8726-acddd5b1a3c9"],startTime:1647934008496,endTime:1648051199999,createTime:1647934021458,updateTime:0,blob:"/survey/710b92d4-803f-3381-cad1-6a5ebc7f7544/index.json",recordUrl:"/survey/710b92d4-803f-3381-cad1-6a5ebc7f7544/record.json",answers:[["A","B","C","D"]],status:0,size:830,areaId:null,pId:null,publish:0,id:"710b92d4-803f-3381-cad1-6a5ebc7f7544",code:"Survey-张老师",pk:"Survey",ttl:-1},status:200}];this.$store.commit("m_children/updateSwapData",r);var n=[];return n.push(new Promise((function(r,n){e.request({url:"https://mock.apifox.cn/m1/1119457-0-default/exam",data:{childid:0x4fefa45e2edba40},method:"POST",success:function(e){""===e.data&&(e.data="今日无评测"),t.$store.commit("m_children/updateExamData",e.data),r("请求返回成功!")},fail:function(e){n("请求返回失败!")}})}))),n.push(new Promise((function(r,n){e.request({url:"https://mock.apifox.cn/m1/1119457-0-default/work",data:{childid:0x4fefa45e2edba40},method:"POST",success:function(e){""===e.data&&(e.data="今日无作业"),t.$store.commit("m_children/updateWorkData",e.data),r("请求返回成功!")},fail:function(e){n("请求返回失败!")}})}))),Promise.all(n).then((function(e){console.log("initTab",e)}))}function i(){var t=this,r=[];r.push(new Promise((function(r,n){e.request({url:"https://mock.apifox.cn/m1/1119457-0-default/clockData",data:{childid:0x4fefa45e2edba40},method:"POST",success:function(e){t.$store.commit("m_children/updateClockData",e.data),r("请求返回成功!")},fail:function(e){n("请求返回失败!")}})})));var n=[{title:"文章鉴赏",name:"语文",teacher:"王老师",time:"09:00-09:50",timeFrame:"上午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"计算练习",name:"数学",teacher:"李老师",time:"09:50-10:50",timeFrame:"上午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"阅读专项训练",name:"外语",teacher:"张老师",time:"10:50-11:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"思想品德教育",name:"思品",teacher:"史老师",time:"11:55-14:50",timeFrame:"下午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"户外运动锻炼",name:"体育",teacher:"李老师",time:"14:50-16:25",timeFrame:"下午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"科学学习实验",name:"科学",teacher:"张老师",time:"16:55-17:56",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"随堂测验",name:"数学",teacher:"李老师",time:"20:50-21:50",timeFrame:"下午第四节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0}];this.$store.commit("m_children/updateClassList",n);var i=[[{coverImage:"https://marketplace.canva.cn/EAEAoxTcVrg/3/0/1003w/canva-YsJetSS4oHs.jpg",resource:"",title:"应用数学题",classHour:3,learnNum:370,description:"在课程中让孩子练习掌握应用数学题的解法与思路"},{coverImage:"https://marketplace.canva.cn/EADjuhwxZWc/7/0/1003w/canva-xsv0lKONlIA.jpg",resource:"",title:"科学小知识",classHour:6,learnNum:643,description:"通过有趣的讲解与实验带领孩子了解各种科学小知识,激发孩子对科学的兴趣"},{coverImage:"https://marketplace.canva.cn/EAEAo7AZjBQ/2/0/1003w/canva-IoLRlod_dOE.jpg",resource:"",title:"油画基础入门",classHour:2,learnNum:88,description:"油画基础入门课程,细致入微地带领孩子系统的学习油画相关知识与画油画练习"}],[{coverImage:"https://marketplace.canva.cn/EAEAo091-28/2/0/1003w/canva-x9LIziZcH68.jpg",resource:"",title:"小太阳幼儿园",classHour:6,learnNum:334,description:"幼儿园孩子必备课程,在幼儿园阶段为孩子建立起良好的习惯与学习生活小技巧"},{coverImage:"https://marketplace.canva.cn/EAEAowi6rQU/1/0/1003w/canva-RaCVbz0F4sM.jpg",resource:"",title:"刻意学习,持续行动",classHour:3,learnNum:256,description:"怎样才能达到学者的思想境界与知识储备水平?本课程从新颖的角度介绍与论证刻意学习,持续行动的重要性与可行性"},{coverImage:"https://marketplace.canva.cn/EAEAozL5pxw/2/0/1003w/canva-9w9Dy9opNkE.jpg",resource:"",title:"总有一个适合孩子的特长",classHour:7,learnNum:366,description:"在轻松愉快的课程中介绍各种特长的优点与难点,吸引孩子学习兴趣"}],[{coverImage:"https://marketplace.canva.cn/EAEAo9pbRQU/2/0/1003w/canva-L1TJidwAUEA.jpg",resource:"",title:"收益一生的哲理故事",classHour:12,learnNum:1343,description:"以故事启发孩子,以哲理受益人生"},{coverImage:"https://marketplace.canva.cn/EAEAoyJLMsA/2/0/1003w/canva-LSrk4pHUaS4.jpg",resource:"",title:"图解小学数学",classHour:5,learnNum:1230,description:"通过例题与图画全面分析与教学小学数学,提高孩子学习热情"},{coverImage:"https://marketplace.canva.cn/EAEAo2_-R0U/2/0/1003w/canva-Fd092WF6yNA.jpg",resource:"",title:"每日一练随堂检测",classHour:8,learnNum:143,description:"课堂例题引入学习,每日一练提高成绩"}]];return this.$store.commit("m_parent/updateClassData",i),Promise.all(r).then((function(e){console.log("initHome",e)}))}function o(){var e=["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],t=["数学","语文","英语","体育","科学","思品"],r={};r.examList=e,r.subjectList=t,this.$store.commit("m_chart/updateSubjectExamData",r);var n=[{subject:"语文",type:"客观题",title:"阅读理解",modality:"专项训练",amount:15},{subject:"数学",type:"客观题",title:"计算练习",modality:"综合训练",amount:35},{subject:"英语",type:"客观题",title:"语句排序问题",modality:"专项训练",amount:20},{subject:"物理",type:"客观题",title:"牛顿定律问题",modality:"专项训练",amount:25},{subject:"地理",type:"客观题",title:"时区问题",modality:"专项训练",amount:10},{subject:"历史",type:"客观题",title:"历史常识问题",modality:"专项训练",amount:30}];this.$store.commit("m_children/updateExamPractice",n);var i={totalChartData:[{categories:e,series:[{name:"孩子总成绩",data:[556,577,540,588,563,594]},{name:"班级平均分",data:[460,477,455,522,538,511]},{name:"年级平均分",data:[533,476,484,547,485,502]}]},{},{categories:e,series:[{name:t[0],data:[90,95,92,100,88,99]},{name:t[1],data:[95,98,84,92,93,89]},{name:t[2],data:[98,89,97,84,95,89]},{name:t[3],data:[91,72,92,89,97,92]},{name:t[4],data:[95,89,92,87,91,83]},{name:t[5],data:[91,82,87,84,90,85]}]}],singleChartData:[{categories:t,series:[{name:"当前测验成绩",data:[91,92,94,88,88,98]},{name:"上次测验成绩",data:[88,84,97,92,89,93]}]},{categories:t,series:[{name:"当前测验成绩",data:[99,72,84,92,77,93]},{name:"班级平均",data:[88,84,79,82,89,83]},{name:"年级平均",data:[78,74,77,86,78,79]}]},{categories:t,series:[{name:"当前测验成绩",data:[71,62,74,98,58,92]},{name:"上次测验成绩",data:[48,64,57,52,79,93]}]}],rankChartData:[{categories:e,series:[{name:"超过年级中",data:[50,75,62,80,68,39]},{name:"超过班级中",data:[95,98,84,92,93,79]}]},{}],subjectChartData:[{series:[{data:[{name:t[0],value:100},{name:t[1],value:86},{name:t[2],value:100},{name:t[3],value:79},{name:t[4],value:88},{name:t[5],value:95}]}]},{series:[{data:[{name:t[0],value:95},{name:t[1],value:88},{name:t[2],value:99},{name:t[3],value:80},{name:t[4],value:77},{name:t[5],value:95}]}]}],levelChartData:[{categories:t,series:[{name:"开学考试",data:[90,89,98,88,95,89]},{name:"期中考试",data:[94,89,97,91,95,90]},{name:"期末考试",data:[90,90,95,96,90,92]}]},{categories:t,series:[{name:"第一月考",data:[90,100,77,78,75,95]},{name:"第二月考",data:[89,94,75,99,80,92]},{name:"第三月考",data:[79,84,94,73,99,87]}]}]};this.$store.commit("m_chart/updateExamChartData",i)}function a(){function e(e){for(var t=new Array,r=e;r>0;r--){var n=new Date;n.setDate(n.getDate()-r+1),t.push(n.format("M-d"))}return t}var t=[],r=e(6),n={categories:r,series:[{name:"孩子完成率",data:[55,57,54,88,63,94]},{name:"班级平均完成率",data:[60,77,55,44,58,71]}]},i={categories:r,series:[{name:"孩子平均得分率",data:[56,77,40,88,63,94]},{name:"班级平均得分率",data:[60,77,55,22,38,11]}]};t.push(n),t.push(i),this.$store.commit("m_chart/updateWorkChartData",t);var o=[{subject:"语文",amount:20,color:"#4169E1"},{subject:"数学",amount:30,color:"#ff8caf"},{subject:"英语",amount:10,color:"#FF6D31"},{subject:"科学",amount:8,color:"#f9c752"}];this.$store.commit("m_children/updateMistakeData",o)}function s(){if(e.getStorageSync("childDailyData")){console.log("有缓存");var t=JSON.parse(e.getStorageSync("childDailyData"));this.$store.commit("m_parent/updateChildDailyData",t)}else{console.log("没有缓存");var r={study:[2,3,2.5,3,2,1,3],rest:[1,2,.5,3,.5,3.5,2],exercise:[50,77,25,30,55,20,60],sleep:[8,9,8,8.5,7.8,8,7.6]};this.$store.commit("m_parent/updateChildDailyData",r)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var c={initStart:r,initTab:n,initHome:i,initExam:o,initWork:a,initSwap:s};t.default=c}).call(this,r(1)["default"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i(r(144));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r2&&void 0!==arguments[2]?arguments[2]:this._header;return this.requestAll(e,t,r,"GET")}},{key:"postRequest",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._header;return this.requestAll(e,t,r,"POST")}},{key:"putRequest",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._header;return this.requestAll(e,t,r,"PUT")}},{key:"deleteRequest",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._header;return this.requestAll(e,t,r,"DELETE")}}]),t}(),a=o;t.default=a}).call(this,r(1)["default"])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){(function(t){var n=r(206);function i(e,t){this.appId=e,this.sessionKey=t}i.prototype.decryptData=function(e,r){var i=new t(this.sessionKey,"base64");e=new t(e,"base64"),r=new t(r,"base64");try{var o=n.createDecipheriv("aes-128-cbc",i,r);o.setAutoPadding(!0);var a=o.update(e,"binary","utf8");a+=o.final("utf8"),a=JSON.parse(a)}catch(s){throw new Error("Illegal Buffer")}if(a.watermark.appid!==this.appId)throw new Error("Illegal Buffer");return a},e.exports=i}).call(this,r(29).Buffer)},function(e,t,r){"use strict";t.randomBytes=t.rng=t.pseudoRandomBytes=t.prng=r(207),t.createHash=t.Hash=r(211),t.createHmac=t.Hmac=r(246);var n=r(249),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);t.getHashes=function(){return o};var a=r(251);t.pbkdf2=a.pbkdf2,t.pbkdf2Sync=a.pbkdf2Sync;var s=r(257);t.Cipher=s.Cipher,t.createCipher=s.createCipher,t.Cipheriv=s.Cipheriv,t.createCipheriv=s.createCipheriv,t.Decipher=s.Decipher,t.createDecipher=s.createDecipher,t.Decipheriv=s.Decipheriv,t.createDecipheriv=s.createDecipheriv,t.getCiphers=s.getCiphers,t.listCiphers=s.listCiphers;var c=r(286);t.DiffieHellmanGroup=c.DiffieHellmanGroup,t.createDiffieHellmanGroup=c.createDiffieHellmanGroup,t.getDiffieHellman=c.getDiffieHellman,t.createDiffieHellman=c.createDiffieHellman,t.DiffieHellman=c.DiffieHellman;var u=r(296);t.createSign=u.createSign,t.Sign=u.Sign,t.createVerify=u.createVerify,t.Verify=u.Verify,t.createECDH=r(351);var f=r(352);t.publicEncrypt=f.publicEncrypt,t.privateEncrypt=f.privateEncrypt,t.publicDecrypt=f.publicDecrypt,t.privateDecrypt=f.privateDecrypt;var l=r(358);t.randomFill=l.randomFill,t.randomFillSync=l.randomFillSync,t.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},t.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(e,t,r){"use strict";(function(t,n){var i=65536,o=4294967295;function a(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=r(210).Buffer,c=t.crypto||t.msCrypto;function u(e,t){if(e>o)throw new RangeError("requested too many random bytes");var r=s.allocUnsafe(e);if(e>0)if(e>i)for(var a=0;a=0;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){r=t+1;break}}else-1===n&&(i=!1,n=t+1);return-1===n?"":e.slice(r,n)}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n=-1&&!n;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,n="/"===a.charAt(0))}return t=r(i(t.split("/"),(function(e){return!!e})),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),a="/"===o(e,-1);return e=r(i(e.split("/"),(function(e){return!!e})),!n).join("/"),e||n||(e="."),e&&a&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t=0;r--)if(""!==e[r])break;return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var i=n(e.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=n(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){r=a+1;break}}return-1===t||-1===n||0===o||1===o&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(208))},function(e,t,r){var n=r(29),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!==typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"===typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},function(e,t,r){"use strict";var n=r(212),i=r(213),o=r(231),a=r(232),s=r(240);function c(e){s.call(this,"digest"),this._hash=e}n(c,s),c.prototype._update=function(e){this._hash.update(e)},c.prototype._final=function(){return this._hash.digest()},e.exports=function(e){return e=e.toLowerCase(),"md5"===e?new i:"rmd160"===e||"ripemd160"===e?new o:new c(a(e))}},function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";var n=r(212),i=r(214),o=r(210).Buffer,a=new Array(16);function s(){i.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function c(e,t){return e<>>32-t}function u(e,t,r,n,i,o,a){return c(e+(t&r|~t&n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return c(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return c(e+(t^r^n)+i+o|0,a)+t|0}function d(e,t,r,n,i,o,a){return c(e+(r^(t|~n))+i+o|0,a)+t|0}n(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;r=u(r,n,i,o,e[0],3614090360,7),o=u(o,r,n,i,e[1],3905402710,12),i=u(i,o,r,n,e[2],606105819,17),n=u(n,i,o,r,e[3],3250441966,22),r=u(r,n,i,o,e[4],4118548399,7),o=u(o,r,n,i,e[5],1200080426,12),i=u(i,o,r,n,e[6],2821735955,17),n=u(n,i,o,r,e[7],4249261313,22),r=u(r,n,i,o,e[8],1770035416,7),o=u(o,r,n,i,e[9],2336552879,12),i=u(i,o,r,n,e[10],4294925233,17),n=u(n,i,o,r,e[11],2304563134,22),r=u(r,n,i,o,e[12],1804603682,7),o=u(o,r,n,i,e[13],4254626195,12),i=u(i,o,r,n,e[14],2792965006,17),n=u(n,i,o,r,e[15],1236535329,22),r=f(r,n,i,o,e[1],4129170786,5),o=f(o,r,n,i,e[6],3225465664,9),i=f(i,o,r,n,e[11],643717713,14),n=f(n,i,o,r,e[0],3921069994,20),r=f(r,n,i,o,e[5],3593408605,5),o=f(o,r,n,i,e[10],38016083,9),i=f(i,o,r,n,e[15],3634488961,14),n=f(n,i,o,r,e[4],3889429448,20),r=f(r,n,i,o,e[9],568446438,5),o=f(o,r,n,i,e[14],3275163606,9),i=f(i,o,r,n,e[3],4107603335,14),n=f(n,i,o,r,e[8],1163531501,20),r=f(r,n,i,o,e[13],2850285829,5),o=f(o,r,n,i,e[2],4243563512,9),i=f(i,o,r,n,e[7],1735328473,14),n=f(n,i,o,r,e[12],2368359562,20),r=l(r,n,i,o,e[5],4294588738,4),o=l(o,r,n,i,e[8],2272392833,11),i=l(i,o,r,n,e[11],1839030562,16),n=l(n,i,o,r,e[14],4259657740,23),r=l(r,n,i,o,e[1],2763975236,4),o=l(o,r,n,i,e[4],1272893353,11),i=l(i,o,r,n,e[7],4139469664,16),n=l(n,i,o,r,e[10],3200236656,23),r=l(r,n,i,o,e[13],681279174,4),o=l(o,r,n,i,e[0],3936430074,11),i=l(i,o,r,n,e[3],3572445317,16),n=l(n,i,o,r,e[6],76029189,23),r=l(r,n,i,o,e[9],3654602809,4),o=l(o,r,n,i,e[12],3873151461,11),i=l(i,o,r,n,e[15],530742520,16),n=l(n,i,o,r,e[2],3299628645,23),r=d(r,n,i,o,e[0],4096336452,6),o=d(o,r,n,i,e[7],1126891415,10),i=d(i,o,r,n,e[14],2878612391,15),n=d(n,i,o,r,e[5],4237533241,21),r=d(r,n,i,o,e[12],1700485571,6),o=d(o,r,n,i,e[3],2399980690,10),i=d(i,o,r,n,e[10],4293915773,15),n=d(n,i,o,r,e[1],2240044497,21),r=d(r,n,i,o,e[8],1873313359,6),o=d(o,r,n,i,e[15],4264355552,10),i=d(i,o,r,n,e[6],2734768916,15),n=d(n,i,o,r,e[13],1309151649,21),r=d(r,n,i,o,e[4],4149444226,6),o=d(o,r,n,i,e[11],3174756917,10),i=d(i,o,r,n,e[2],718787259,15),n=d(n,i,o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,r){"use strict";var n=r(210).Buffer,i=r(215).Transform,o=r(212);function a(e,t){if(!n.isBuffer(e)&&"string"!==typeof e)throw new TypeError(t+" must be a string or a buffer")}function s(e){i.call(this),this._block=n.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}o(s,i),s.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(i){n=i}r(n)},s.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(r){t=r}e(t)},s.prototype.update=function(e,t){if(a(e,"Data"),this._finalized)throw new Error("Digest already called");n.isBuffer(e)||(e=n.from(e,t));var r=this._block,i=0;while(this._blockOffset+e.length-i>=this._blockSize){for(var o=this._blockOffset;o0;++s)this._length[s]+=c,c=this._length[s]/4294967296|0,c>0&&(this._length[s]-=4294967296*c);return this},s.prototype._update=function(){throw new Error("_update is not implemented")},s.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0),this._blockOffset=0;for(var r=0;r<4;++r)this._length[r]=0;return t},s.prototype._digest=function(){throw new Error("_digest is not implemented")},e.exports=s},function(e,t,r){t=e.exports=r(216),t.Stream=t,t.Readable=t,t.Writable=r(226),t.Duplex=r(225),t.Transform=r(229),t.PassThrough=r(230)},function(e,t,r){"use strict";(function(t,n){var i=r(217);e.exports=_;var o,a=r(32);_.ReadableState=w;r(218).EventEmitter;var s=function(e,t){return e.listeners(t).length},c=r(219),u=r(210).Buffer,f=t.Uint8Array||function(){};function l(e){return u.from(e)}function d(e){return u.isBuffer(e)||e instanceof f}var h=Object.create(r(220));h.inherits=r(212);var p=r(221),v=void 0;v=p&&p.debuglog?p.debuglog("stream"):function(){};var g,y=r(222),b=r(224);h.inherits(_,c);var m=["error","close","destroy","pause","resume"];function x(e,t,r){if("function"===typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}function w(e,t){o=o||r(225),e=e||{};var n=t instanceof o;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=r(228).StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function _(e){if(o=o||r(225),!(this instanceof _))return new _(e);this._readableState=new w(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),c.call(this)}function S(e,t,r,n,i){var o,a=e._readableState;null===t?(a.reading=!1,T(e,a)):(i||(o=k(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===u.prototype||(t=l(t)),n?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):A(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!r?(t=a.decoder.write(t),a.objectMode||0!==t.length?A(e,a,t,!1):j(e,a)):A(e,a,t,!1))):n||(a.reading=!1));return P(a)}function A(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&C(e)),j(e,t)}function k(e,t){var r;return d(t)||"string"===typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk")),r}function P(e){return!e.ended&&(e.needReadable||e.length=M?e=M:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function O(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=E(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function T(e,t){if(!t.ended){if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,C(e)}}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(v("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(I,e):I(e))}function I(e){v("emit readable"),e.emit("readable"),N(e)}function j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(B,e,t))}function B(e,t){var r=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=U(e,t.buffer,t.decoder),r);var r}function U(e,t,r){var n;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++n}return t.length-=n,i}function $(e,t){var r=u.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;while(n=n.next){var o=n.data,a=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,a),e-=a,0===e){a===o.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++i}return t.length-=i,r}function H(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(W,t,e))}function W(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function Q(e,t){for(var r=0,n=e.length;r=t.highWaterMark||t.ended))return v("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?H(this):C(this),null;if(e=O(e,t),0===e&&t.ended)return 0===t.length&&H(this),null;var n,i=t.needReadable;return v("need readable",i),(0===t.length||t.length-e0?z(e,t):null,null===n?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&H(this)),null!==n&&this.emit("data",n),n},_.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(e,t){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,v("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==n.stdout&&e!==n.stderr,c=a?f:w;function u(e,t){v("onunpipe"),e===r&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,h())}function f(){v("onend"),e.end()}o.endEmitted?i.nextTick(c):r.once("end",c),e.on("unpipe",u);var l=D(r);e.on("drain",l);var d=!1;function h(){v("cleanup"),e.removeListener("close",b),e.removeListener("finish",m),e.removeListener("drain",l),e.removeListener("error",y),e.removeListener("unpipe",u),r.removeListener("end",f),r.removeListener("end",w),r.removeListener("data",g),d=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||l()}var p=!1;function g(t){v("ondata"),p=!1;var n=e.write(t);!1!==n||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==Q(o.pipes,e))&&!d&&(v("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,p=!0),r.pause())}function y(t){v("onerror",t),w(),e.removeListener("error",y),0===s(e,"error")&&e.emit("error",t)}function b(){e.removeListener("finish",m),w()}function m(){v("onfinish"),e.removeListener("close",b),w()}function w(){v("unpipe"),r.unpipe(e)}return r.on("data",g),x(e,"error",y),e.once("close",b),e.once("finish",m),e.emit("pipe",r),o.flowing||(v("pipe resume"),r.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o0&&s.length>i&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=s.length,a(c)}return e}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},i=h.bind(n);return i.listener=r,n.wrapFn=i,i}function v(e,t,r){var n=e._events;if(void 0===n)return[];var i=n[t];return void 0===i?[]:"function"===typeof i?r?[i.listener||i]:[i]:r?m(i):y(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var r=t[e];if("function"===typeof r)return 1;if(void 0!==r)return r.length}return 0}function y(e,t){for(var r=new Array(t),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"===typeof c)o(c,this,t);else{var u=c.length,f=y(c,u);for(r=0;r=0;o--)if(r[o]===t||r[o].listener===t){a=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():b(r,i),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,a||t)}return this},c.prototype.off=c.prototype.removeListener,c.prototype.removeAllListeners=function(e){var t,r,n;if(r=this._events,void 0===r)return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete r[e]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n=0;n--)this.removeListener(e,t[n]);return this},c.prototype.listeners=function(e){return v(this,e,!0)},c.prototype.rawListeners=function(e){return v(this,e,!1)},c.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},c.prototype.listenerCount=g,c.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},function(e,t,r){e.exports=r(218).EventEmitter},function(e,t,r){(function(e){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===g(e)}function n(e){return"boolean"===typeof e}function i(e){return null===e}function o(e){return null==e}function a(e){return"number"===typeof e}function s(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function f(e){return"[object RegExp]"===g(e)}function l(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===g(e)}function h(e){return"[object Error]"===g(e)||e instanceof Error}function p(e){return"function"===typeof e}function v(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function g(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=n,t.isNull=i,t.isNullOrUndefined=o,t.isNumber=a,t.isString=s,t.isSymbol=c,t.isUndefined=u,t.isRegExp=f,t.isObject=l,t.isDate=d,t.isError=h,t.isFunction=p,t.isPrimitive=v,t.isBuffer=e.isBuffer}).call(this,r(29).Buffer)},function(e,t){},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=r(210).Buffer,o=r(223);function a(e,t,r){e.copy(t,r)}e.exports=function(){function e(){n(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,r=""+t.data;while(t=t.next)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var t=i.allocUnsafe(e>>>0),r=this.head,n=0;while(r)a(r.data,t,n),n+=r.data.length,r=r.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},function(e,t){},function(e,t,r){"use strict";var n=r(217);function i(e,t){var r=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||n.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?(n.nextTick(a,r,e),r._writableState&&(r._writableState.errorEmitted=!0)):t&&t(e)})),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:o}},function(e,t,r){"use strict";var n=r(217),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=l;var o=Object.create(r(220));o.inherits=r(212);var a=r(216),s=r(226);o.inherits(l,a);for(var c=i(s.prototype),u=0;u-1?setImmediate:i.nextTick;m.WritableState=b;var c=Object.create(r(220));c.inherits=r(212);var u={deprecate:r(227)},f=r(219),l=r(210).Buffer,d=n.Uint8Array||function(){};function h(e){return l.from(e)}function p(e){return l.isBuffer(e)||e instanceof d}var v,g=r(224);function y(){}function b(e,t){a=a||r(225),e=e||{};var n=t instanceof a;this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:n&&(s||0===s)?s:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){M(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function m(e){if(a=a||r(225),!v.call(m,this)&&!(this instanceof a))return new m(e);this._writableState=new b(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function x(e,t){var r=new Error("write after end");e.emit("error",r),i.nextTick(t,r)}function w(e,t,r,n){var o=!0,a=!1;return null===r?a=new TypeError("May not write null values to stream"):"string"===typeof r||void 0===r||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(n,a),o=!1),o}function _(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=l.from(t,r)),t}function S(e,t,r,n,i,o){if(!r){var a=_(t,n,i);n!==a&&(r=!0,i="buffer",n=a)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),m.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},m.prototype._writev=null,m.prototype.end=function(e,t,r){var n=this._writableState;"function"===typeof e?(r=e,e=null,t=null):"function"===typeof t&&(r=t,t=null),null!==e&&void 0!==e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||D(this,n,r)},Object.defineProperty(m.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),m.prototype.destroy=g.destroy,m.prototype._undestroy=g.undestroy,m.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,r(208),r(2))},function(e,t,r){(function(t){function r(e,t){if(n("noDeprecation"))return e;var r=!1;function i(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return i}function n(e){try{if(!t.localStorage)return!1}catch(n){return!1}var r=t.localStorage[e];return null!=r&&"true"===String(r).toLowerCase()}e.exports=r}).call(this,r(2))},function(e,t,r){"use strict";var n=r(210).Buffer,i=n.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){if(!e)return"utf8";var t;while(1)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function a(e){var t=o(e);if("string"!==typeof t&&(n.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}function s(e){var t;switch(this.encoding=a(e),this.encoding){case"utf16le":this.text=p,this.end=v,t=4;break;case"utf8":this.fillLast=l,t=4;break;case"base64":this.text=g,this.end=y,t=3;break;default:return this.write=b,void(this.end=m)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(t)}function c(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function u(e,t,r){var n=t.length-1;if(n=0?(i>0&&(e.lastNeed=i-1),i):--n=0?(i>0&&(e.lastNeed=i-2),i):--n=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function f(e,t,r){if(128!==(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"�"}}function l(e){var t=this.lastTotal-this.lastNeed,r=f(this,e,t);return void 0!==r?r:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function d(e,t){var r=u(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function h(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function p(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function v(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function g(e,t){var r=(e.length-t)%3;return 0===r?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function y(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function b(e){return e.toString(this.encoding)}function m(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r>>32-t}function v(e,t,r,n,i,o,a,s){return p(e+(t^r^n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return p(e+(t&r|~t&n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return p(e+((t|~r)^n)+o+a|0,s)+i|0}function b(e,t,r,n,i,o,a,s){return p(e+(t&n|r&~n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return p(e+(t^(r|~n))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,x=0|this._a,w=0|this._b,_=0|this._c,S=0|this._d,A=0|this._e,k=0;k<80;k+=1){var P,M;k<16?(P=v(r,n,i,o,h,e[s[k]],l[0],u[k]),M=m(x,w,_,S,A,e[c[k]],d[0],f[k])):k<32?(P=g(r,n,i,o,h,e[s[k]],l[1],u[k]),M=b(x,w,_,S,A,e[c[k]],d[1],f[k])):k<48?(P=y(r,n,i,o,h,e[s[k]],l[2],u[k]),M=y(x,w,_,S,A,e[c[k]],d[2],f[k])):k<64?(P=b(r,n,i,o,h,e[s[k]],l[3],u[k]),M=g(x,w,_,S,A,e[c[k]],d[3],f[k])):(P=m(r,n,i,o,h,e[s[k]],l[4],u[k]),M=v(x,w,_,S,A,e[c[k]],d[4],f[k])),r=h,h=o,o=p(i,10),i=n,n=P,x=A,A=S,S=p(_,10),_=w,w=M}var E=this._b+i+S|0;this._b=this._c+o+A|0,this._c=this._d+h+x|0,this._d=this._e+r+w|0,this._e=this._a+n+_|0,this._a=E},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=n.alloc?n.alloc(20):new n(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,r){t=e.exports=function(e){e=e.toLowerCase();var r=t[e];if(!r)throw new Error(e+" is not supported (we accept pull requests)");return new r};t.sha=r(233),t.sha1=r(235),t.sha224=r(236),t.sha256=r(237),t.sha384=r(238),t.sha512=r(239)},function(e,t,r){var n=r(212),i=r(234),o=r(210).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<5|e>>>27}function f(e){return e<<30|e>>>2}function l(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=t[c-3]^t[c-8]^t[c-14]^t[c-16];for(var d=0;d<80;++d){var h=~~(d/20),p=u(r)+l(h,n,i,o)+s+t[d]+a[h]|0;s=o,o=i,i=f(n),n=r,r=p}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(210).Buffer;function i(e,t){this._block=n.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}i.prototype.update=function(e,t){"string"===typeof e&&(t=t||"utf8",e=n.from(e,t));for(var r=this._block,i=this._blockSize,o=e.length,a=this._len,s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=(4294967295&r)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,r){var n=r(212),i=r(234),o=r(210).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e){return e<<1|e>>>31}function f(e){return e<<5|e>>>27}function l(e){return e<<30|e>>>2}function d(e,t,r,n){return 0===e?t&r|~t&n:2===e?t&r|t&n|r&n:t^r^n}n(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0;c<16;++c)t[c]=e.readInt32BE(4*c);for(;c<80;++c)t[c]=u(t[c-3]^t[c-8]^t[c-14]^t[c-16]);for(var h=0;h<80;++h){var p=~~(h/20),v=f(r)+d(p,n,i,o)+s+t[h]+a[p]|0;s=o,o=i,i=l(n),n=r,r=v}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0},c.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,t,r){var n=r(212),i=r(237),o=r(234),a=r(210).Buffer,s=new Array(64);function c(){this.init(),this._w=s,o.call(this,64,56)}n(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,t,r){var n=r(212),i=r(234),o=r(210).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function u(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function d(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function h(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function p(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}n(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._a,n=0|this._b,i=0|this._c,o=0|this._d,s=0|this._e,c=0|this._f,v=0|this._g,g=0|this._h,y=0;y<16;++y)t[y]=e.readInt32BE(4*y);for(;y<64;++y)t[y]=p(t[y-2])+t[y-7]+h(t[y-15])+t[y-16]|0;for(var b=0;b<64;++b){var m=g+d(s)+u(s,c,v)+a[b]+t[b]|0,x=l(r)+f(r,n,i)|0;g=v,v=c,c=s,s=o+m|0,o=i,i=n,n=r,r=m+x|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=o+this._d|0,this._e=s+this._e|0,this._f=c+this._f|0,this._g=v+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,t,r){var n=r(212),i=r(239),o=r(234),a=r(210).Buffer,s=new Array(160);function c(){this.init(),this._w=s,o.call(this,128,112)}n(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},function(e,t,r){var n=r(212),i=r(234),o=r(210).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function u(e,t,r){return r^e&(t^r)}function f(e,t,r){return e&t|r&(e|t)}function l(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function d(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function h(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function v(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function y(e,t){return e>>>0>>0?1:0}n(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,r=0|this._ah,n=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,c=0|this._fh,b=0|this._gh,m=0|this._hh,x=0|this._al,w=0|this._bl,_=0|this._cl,S=0|this._dl,A=0|this._el,k=0|this._fl,P=0|this._gl,M=0|this._hl,E=0;E<32;E+=2)t[E]=e.readInt32BE(4*E),t[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var O=t[E-30],T=t[E-30+1],C=h(O,T),I=p(T,O);O=t[E-4],T=t[E-4+1];var j=v(O,T),B=g(T,O),D=t[E-14],L=t[E-14+1],F=t[E-32],R=t[E-32+1],N=I+L|0,z=C+D+y(N,I)|0;N=N+B|0,z=z+j+y(N,B)|0,N=N+R|0,z=z+F+y(N,R)|0,t[E]=z,t[E+1]=N}for(var U=0;U<160;U+=2){z=t[U],N=t[U+1];var q=f(r,n,i),$=f(x,w,_),H=l(r,x),W=l(x,r),Q=d(s,A),V=d(A,s),K=a[U],G=a[U+1],X=u(s,c,b),Y=u(A,k,P),J=M+V|0,Z=m+Q+y(J,M)|0;J=J+Y|0,Z=Z+X+y(J,Y)|0,J=J+G|0,Z=Z+K+y(J,G)|0,J=J+N|0,Z=Z+z+y(J,N)|0;var ee=W+$|0,te=H+q+y(ee,W)|0;m=b,M=P,b=c,P=k,c=s,k=A,A=S+J|0,s=o+Z+y(A,S)|0,o=i,S=_,i=n,_=w,n=r,w=x,x=J+ee|0,r=Z+te+y(x,J)|0}this._al=this._al+x|0,this._bl=this._bl+w|0,this._cl=this._cl+_|0,this._dl=this._dl+S|0,this._el=this._el+A|0,this._fl=this._fl+k|0,this._gl=this._gl+P|0,this._hl=this._hl+M|0,this._ah=this._ah+r+y(this._al,x)|0,this._bh=this._bh+n+y(this._bl,w)|0,this._ch=this._ch+i+y(this._cl,_)|0,this._dh=this._dh+o+y(this._dl,S)|0,this._eh=this._eh+s+y(this._el,A)|0,this._fh=this._fh+c+y(this._fl,k)|0,this._gh=this._gh+b+y(this._gl,P)|0,this._hh=this._hh+m+y(this._hl,M)|0},c.prototype._hash=function(){var e=o.allocUnsafe(64);function t(t,r,n){e.writeInt32BE(t,n),e.writeInt32BE(r,n+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},function(e,t,r){var n=r(210).Buffer,i=r(241).Transform,o=r(228).StringDecoder,a=r(212);function s(e){i.call(this),this.hashMode="string"===typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}a(s,i),s.prototype.update=function(e,t,r){"string"===typeof e&&(e=n.from(e,t));var i=this._update(e);return this.hashMode?this:(r&&(i=this._toString(i,r)),i)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(i){n=i}finally{r(n)}},s.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(r){t=r}e(t)},s.prototype._finalOrDigest=function(e){var t=this.__final()||n.alloc(0);return e&&(t=this._toString(t,e,!0)),t},s.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},e.exports=s},function(e,t,r){e.exports=o;var n=r(218).EventEmitter,i=r(212);function o(){n.call(this)}i(o,n),o.Readable=r(215),o.Writable=r(242),o.Duplex=r(243),o.Transform=r(244),o.PassThrough=r(245),o.Stream=o,o.prototype.pipe=function(e,t){var r=this;function i(t){e.writable&&!1===e.write(t)&&r.pause&&r.pause()}function o(){r.readable&&r.resume&&r.resume()}r.on("data",i),e.on("drain",o),e._isStdio||t&&!1===t.end||(r.on("end",s),r.on("close",c));var a=!1;function s(){a||(a=!0,e.end())}function c(){a||(a=!0,"function"===typeof e.destroy&&e.destroy())}function u(e){if(f(),0===n.listenerCount(this,"error"))throw e}function f(){r.removeListener("data",i),e.removeListener("drain",o),r.removeListener("end",s),r.removeListener("close",c),r.removeListener("error",u),e.removeListener("error",u),r.removeListener("end",f),r.removeListener("close",f),e.removeListener("close",f)}return r.on("error",u),e.on("error",u),r.on("end",f),r.on("close",f),e.on("close",f),e.emit("pipe",r),e}},function(e,t,r){e.exports=r(226)},function(e,t,r){e.exports=r(225)},function(e,t,r){e.exports=r(215).Transform},function(e,t,r){e.exports=r(215).PassThrough},function(e,t,r){"use strict";var n=r(212),i=r(247),o=r(240),a=r(210).Buffer,s=r(248),c=r(231),u=r(232),f=a.alloc(128);function l(e,t){o.call(this,"digest"),"string"===typeof t&&(t=a.from(t));var r="sha512"===e||"sha384"===e?128:64;if(this._alg=e,this._key=t,t.length>r){var n="rmd160"===e?new c:u(e);t=n.update(t).digest()}else t.lengths?t=e(t):t.lengthr||t!==t)throw new TypeError("Bad key length")}},function(e,t,r){(function(t){var r;if(t.browser)r="utf-8";else if(t.version){var n=parseInt(t.version.split(".")[0].slice(1),10);r=n>=6?"utf-8":"binary"}else r="utf-8";e.exports=r}).call(this,r(208))},function(e,t,r){var n=r(248),i=r(231),o=r(232),a=r(210).Buffer,s=r(253),c=r(254),u=r(256),f=a.alloc(128),l={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(e,t,r){var n=h(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=n(t):t.length>>0},t.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},t.ip=function(e,t,r,n){for(var i=0,o=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},t.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},t.r28shl=function(e,t){return e<>>28-t};var n=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];t.pc2=function(e,t,r,i){for(var o=0,a=0,s=n.length>>>1,c=0;c>>n[c]&1;for(c=s;c>>n[c]&1;r[i+0]=o>>>0,r[i+1]=a>>>0},t.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;o>=15;o-=4)n<<=6,n|=e>>>o&63;for(o=11;o>=3;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];t.substitute=function(e,t){for(var r=0,n=0;n<4;n++){var o=e>>>18-6*n&63,a=i[64*n+o];r<<=4,r|=a}for(n=0;n<4;n++){o=t>>>18-6*n&63,a=i[256+64*n+o];r<<=4,r|=a}return r>>>0};var o=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];t.permute=function(e){for(var t=0,r=0;r>>o[r]&1;return t>>>0},t.padSplit=function(e,t,r){var n=e.toString(2);while(n.length0;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;while(t>>1];r=o.r28shl(r,s),i=o.r28shl(i,s),o.pc2(r,i,e.keys,a)}},c.prototype._update=function(e,t,r,n){var i=this._desState,a=o.readUInt32BE(e,t),s=o.readUInt32BE(e,t+4);o.ip(a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],"encrypt"===this.type?this._encrypt(i,a,s,i.tmp,0):this._decrypt(i,a,s,i.tmp,0),a=i.tmp[0],s=i.tmp[1],o.writeUInt32BE(r,a,n),o.writeUInt32BE(r,s,n+4)},c.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n>>0,a=h}o.rip(s,a,n,i)},c.prototype._decrypt=function(e,t,r,n,i){for(var a=r,s=t,c=e.keys.length-2;c>=0;c-=2){var u=e.keys[c],f=e.keys[c+1];o.expand(a,e.tmp,0),u^=e.tmp[0],f^=e.tmp[1];var l=o.substitute(u,f),d=o.permute(l),h=a;a=(s^d)>>>0,s=h}o.rip(a,s,n,i)}},function(e,t,r){"use strict";var n=r(262),i=r(212),o={};function a(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){var e=16-this.cache.length,t=o.allocUnsafe(e),r=-1;while(++r>s%8,e._prev=o(e._prev,r?i:a);return u}function o(e,t){var r=e.length,i=-1,o=n.allocUnsafe(e.length);e=n.concat([e,n.from([t])]);while(++i>7;return o}t.encrypt=function(e,t,r){var o=t.length,a=n.allocUnsafe(o),s=-1;while(++s>>24]^f[p>>>16&255]^l[v>>>8&255]^d[255&g]^t[y++],a=u[p>>>24]^f[v>>>16&255]^l[g>>>8&255]^d[255&h]^t[y++],s=u[v>>>24]^f[g>>>16&255]^l[h>>>8&255]^d[255&p]^t[y++],c=u[g>>>24]^f[h>>>16&255]^l[p>>>8&255]^d[255&v]^t[y++],h=o,p=a,v=s,g=c;return o=(n[h>>>24]<<24|n[p>>>16&255]<<16|n[v>>>8&255]<<8|n[255&g])^t[y++],a=(n[p>>>24]<<24|n[v>>>16&255]<<16|n[g>>>8&255]<<8|n[255&h])^t[y++],s=(n[v>>>24]<<24|n[g>>>16&255]<<16|n[h>>>8&255]<<8|n[255&p])^t[y++],c=(n[g>>>24]<<24|n[h>>>16&255]<<16|n[p>>>8&255]<<8|n[255&v])^t[y++],o>>>=0,a>>>=0,s>>>=0,c>>>=0,[o,a,s,c]}var s=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,c=0;c<256;++c){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,r[a]=u,n[u]=a;var f=e[a],l=e[f],d=e[l],h=257*e[u]^16843008*u;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*l^257*f^16843008*a,o[0][u]=h<<24|h>>>8,o[1][u]=h<<16|h>>>16,o[2][u]=h<<8|h>>>24,o[3][u]=h,0===a?a=s=1:(a=f^e[e[e[d^f]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function u(e){this._key=i(e),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o>>24,a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=c.SBOX[a>>>24]<<24|c.SBOX[a>>>16&255]<<16|c.SBOX[a>>>8&255]<<8|c.SBOX[255&a]),i[o]=i[o-t]^a}for(var u=[],f=0;f>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(e){return e=i(e),a(e,this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},u.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=n.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},u.prototype.decryptBlock=function(e){e=i(e);var t=e[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),o=n.allocUnsafe(16);return o.writeUInt32BE(r[0],0),o.writeUInt32BE(r[3],4),o.writeUInt32BE(r[2],8),o.writeUInt32BE(r[1],12),o},u.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=u},function(e,t,r){var n=r(210).Buffer,i=n.alloc(16,0);function o(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}function a(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function s(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}s.prototype.ghash=function(e){var t=-1;while(++t0;e--)n[e]=n[e]>>>1|(1&n[e-1])<<31;n[0]=n[0]>>>1,r&&(n[0]=n[0]^225<<24)}this.state=a(i)},s.prototype.update=function(e){var t;this.cache=n.concat([this.cache,e]);while(this.cache.length>=16)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},s.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(a([0,e,0,t])),this.state},e.exports=s},function(e,t,r){var n=r(280),i=r(210).Buffer,o=r(240),a=r(212);function s(e,t,r,a){o.call(this),this._cipher=new n.AES(t),this._prev=i.from(r),this._cache=i.allocUnsafe(0),this._secCache=i.allocUnsafe(0),this._decrypt=a,this._mode=e}a(s,o),s.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},s.prototype._final=function(){this._cipher.scrub()},e.exports=s},function(e,t,r){var n=r(210).Buffer,i=r(213);function o(e,t,r,o){if(n.isBuffer(e)||(e=n.from(e,"binary")),t&&(n.isBuffer(t)||(t=n.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");var a=r/8,s=n.alloc(a),c=n.alloc(o||0),u=n.alloc(0);while(a>0||o>0){var f=new i;f.update(u),f.update(e),t&&f.update(t),u=f.digest();var l=0;if(a>0){var d=s.length-a;l=Math.min(a,u.length),u.copy(s,d,0,l),a-=l}if(l0){var h=c.length-o,p=Math.min(o,u.length-l);u.copy(c,h,l,l+p),o-=p}}return u.fill(0),{key:s,iv:c}}e.exports=o},function(e,t,r){var n=r(279),i=r(210).Buffer,o=r(268),a=r(282),s=r(240),c=r(280),u=r(283),f=r(212);function l(e,t,r){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new c.AES(t),this._prev=i.from(r),this._mode=e,this._autopadding=!0}function d(){this.cache=i.allocUnsafe(0)}function h(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");var r=-1;while(++r16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=v,t.createDecipheriv=p},function(e,t){t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},function(e,t,r){(function(e){var n=r(287),i=r(294),o=r(295);function a(t){var r=new e(i[t].prime,"hex"),n=new e(i[t].gen,"hex");return new o(r,n)}var s={binary:!0,hex:!0,base64:!0};function c(t,r,i,a){return e.isBuffer(r)||void 0===s[r]?c(t,"binary",r,i):(r=r||"binary",a=a||"binary",i=i||new e([2]),e.isBuffer(i)||(i=new e(i,a)),"number"===typeof t?new o(n(t,i),i,!0):(e.isBuffer(t)||(t=new e(t,r)),new o(t,i,!0)))}t.DiffieHellmanGroup=t.createDiffieHellmanGroup=t.getDiffieHellman=a,t.createDiffieHellman=t.DiffieHellman=c}).call(this,r(29).Buffer)},function(e,t,r){var n=r(207);e.exports=m,m.simpleSieve=y,m.fermatTest=b;var i=r(288),o=new i(24),a=r(291),s=new a,c=new i(1),u=new i(2),f=new i(5),l=(new i(16),new i(8),new i(10)),d=new i(3),h=(new i(7),new i(11)),p=new i(4),v=(new i(12),null);function g(){if(null!==v)return v;var e=1048576,t=[];t[0]=2;for(var r=1,n=3;ne)r.ishrn(1);if(r.isEven()&&r.iadd(c),r.testn(1)||r.iadd(u),t.cmp(u)){if(!t.cmp(f))while(r.mod(l).cmp(d))r.iadd(p)}else while(r.mod(o).cmp(h))r.iadd(p);if(a=r.shrn(1),y(a)&&y(r)&&b(a)&&b(r)&&s.test(a)&&s.test(r))return r}}},function(e,t,r){(function(e){(function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function o(e,t,r){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a=r(290).Buffer}catch(O){}function s(e,t,r){for(var i=0,o=Math.min(e.length,r),a=0,s=t;s=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,i|=c,a|=c}return n(!(240&a),"Invalid character in "+e),i}function c(e,t,r,i){for(var o=0,a=0,s=Math.min(e.length,r),c=t;c=49?u-49+10:u>=17?u-17+10:u,n(u>=0&&a"}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36),e=e.toString().replace(/\s+/g,"");var i=0;"-"===e[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this._strip(),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},o.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r=t;r-=6)i=s(e,r,r+6),this.words[n]|=i<>>26-o&4194303,o+=24,o>=26&&(o-=26,n++);r+6!==t&&(i=s(e,t,r+6),this.words[n]|=i<>>26-o&4194303),this._strip()},o.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,f=r;f1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for?o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f:o.prototype.inspect=f;var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var r;if(e=e||10,t=0|t||1,16===e||"hex"===e){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,r=0!==o||a!==this.length-1?l[6-c.length]+c+r:c+r,i+=2,i>=26&&(i-=26,a--)}0!==o&&(r=o.toString(16)+r);while(r.length%t!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var u=d[e],f=h[e];r="";var p=this.clone();p.negative=0;while(!p.isZero()){var v=p.modrn(f).toString(e);p=p.idivn(f),r=p.isZero()?v+r:l[u-v.length]+v+r}this.isZero()&&(r="0"+r);while(r.length%t!==0)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};var p=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)};function v(e){for(var t=new Array(e.bitLength()),r=0;r>>i&1}return t}function g(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,c=a/67108864|0;r.words[0]=s;for(var u=1;u>>26,l=67108863&c,d=Math.min(u,t.length-1),h=Math.max(0,u-e.length+1);h<=d;h++){var p=u-h|0;i=0|e.words[p],o=0|t.words[h],a=i*o+l,f+=a/67108864|0,l=67108863&a}r.words[u]=0|l,c=0|f}return 0!==c?r.words[u]=0|c:r.length--,r._strip()}o.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=p(e,o),s="le"===t?"LE":"BE";return this["_toArrayLike"+s](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,o=0;i>8&255),r>16&255),6===o?(r>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===o?(r>=0&&(e[r--]=a>>24&255),n=0,o=0):(n=a>>>24,o+=2)}if(r>=0){e[r--]=n;while(r>=0)e[r--]=0}},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;re.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;ne.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<e.length?(r=this,n=e):(r=e,n=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(r=this,n=e):(r=e,n=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,v=h>>>13,g=0|a[2],y=8191&g,b=g>>>13,m=0|a[3],x=8191&m,w=m>>>13,_=0|a[4],S=8191&_,A=_>>>13,k=0|a[5],P=8191&k,M=k>>>13,E=0|a[6],O=8191&E,T=E>>>13,C=0|a[7],I=8191&C,j=C>>>13,B=0|a[8],D=8191&B,L=B>>>13,F=0|a[9],R=8191&F,N=F>>>13,z=0|s[0],U=8191&z,q=z>>>13,$=0|s[1],H=8191&$,W=$>>>13,Q=0|s[2],V=8191&Q,K=Q>>>13,G=0|s[3],X=8191&G,Y=G>>>13,J=0|s[4],Z=8191&J,ee=J>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ce=8191&se,ue=se>>>13,fe=0|s[8],le=8191&fe,de=fe>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(l,U),i=Math.imul(l,q),i=i+Math.imul(d,U)|0,o=Math.imul(d,q);var ge=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=Math.imul(p,q),i=i+Math.imul(v,U)|0,o=Math.imul(v,q),n=n+Math.imul(l,H)|0,i=i+Math.imul(l,W)|0,i=i+Math.imul(d,H)|0,o=o+Math.imul(d,W)|0;var ye=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(y,U),i=Math.imul(y,q),i=i+Math.imul(b,U)|0,o=Math.imul(b,q),n=n+Math.imul(p,H)|0,i=i+Math.imul(p,W)|0,i=i+Math.imul(v,H)|0,o=o+Math.imul(v,W)|0,n=n+Math.imul(l,V)|0,i=i+Math.imul(l,K)|0,i=i+Math.imul(d,V)|0,o=o+Math.imul(d,K)|0;var be=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(x,U),i=Math.imul(x,q),i=i+Math.imul(w,U)|0,o=Math.imul(w,q),n=n+Math.imul(y,H)|0,i=i+Math.imul(y,W)|0,i=i+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,n=n+Math.imul(p,V)|0,i=i+Math.imul(p,K)|0,i=i+Math.imul(v,V)|0,o=o+Math.imul(v,K)|0,n=n+Math.imul(l,X)|0,i=i+Math.imul(l,Y)|0,i=i+Math.imul(d,X)|0,o=o+Math.imul(d,Y)|0;var me=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(S,U),i=Math.imul(S,q),i=i+Math.imul(A,U)|0,o=Math.imul(A,q),n=n+Math.imul(x,H)|0,i=i+Math.imul(x,W)|0,i=i+Math.imul(w,H)|0,o=o+Math.imul(w,W)|0,n=n+Math.imul(y,V)|0,i=i+Math.imul(y,K)|0,i=i+Math.imul(b,V)|0,o=o+Math.imul(b,K)|0,n=n+Math.imul(p,X)|0,i=i+Math.imul(p,Y)|0,i=i+Math.imul(v,X)|0,o=o+Math.imul(v,Y)|0,n=n+Math.imul(l,Z)|0,i=i+Math.imul(l,ee)|0,i=i+Math.imul(d,Z)|0,o=o+Math.imul(d,ee)|0;var xe=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(P,U),i=Math.imul(P,q),i=i+Math.imul(M,U)|0,o=Math.imul(M,q),n=n+Math.imul(S,H)|0,i=i+Math.imul(S,W)|0,i=i+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,n=n+Math.imul(x,V)|0,i=i+Math.imul(x,K)|0,i=i+Math.imul(w,V)|0,o=o+Math.imul(w,K)|0,n=n+Math.imul(y,X)|0,i=i+Math.imul(y,Y)|0,i=i+Math.imul(b,X)|0,o=o+Math.imul(b,Y)|0,n=n+Math.imul(p,Z)|0,i=i+Math.imul(p,ee)|0,i=i+Math.imul(v,Z)|0,o=o+Math.imul(v,ee)|0,n=n+Math.imul(l,re)|0,i=i+Math.imul(l,ne)|0,i=i+Math.imul(d,re)|0,o=o+Math.imul(d,ne)|0;var we=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,U),i=Math.imul(O,q),i=i+Math.imul(T,U)|0,o=Math.imul(T,q),n=n+Math.imul(P,H)|0,i=i+Math.imul(P,W)|0,i=i+Math.imul(M,H)|0,o=o+Math.imul(M,W)|0,n=n+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,i=i+Math.imul(A,V)|0,o=o+Math.imul(A,K)|0,n=n+Math.imul(x,X)|0,i=i+Math.imul(x,Y)|0,i=i+Math.imul(w,X)|0,o=o+Math.imul(w,Y)|0,n=n+Math.imul(y,Z)|0,i=i+Math.imul(y,ee)|0,i=i+Math.imul(b,Z)|0,o=o+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,i=i+Math.imul(p,ne)|0,i=i+Math.imul(v,re)|0,o=o+Math.imul(v,ne)|0,n=n+Math.imul(l,oe)|0,i=i+Math.imul(l,ae)|0,i=i+Math.imul(d,oe)|0,o=o+Math.imul(d,ae)|0;var _e=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(I,U),i=Math.imul(I,q),i=i+Math.imul(j,U)|0,o=Math.imul(j,q),n=n+Math.imul(O,H)|0,i=i+Math.imul(O,W)|0,i=i+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,n=n+Math.imul(P,V)|0,i=i+Math.imul(P,K)|0,i=i+Math.imul(M,V)|0,o=o+Math.imul(M,K)|0,n=n+Math.imul(S,X)|0,i=i+Math.imul(S,Y)|0,i=i+Math.imul(A,X)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(x,Z)|0,i=i+Math.imul(x,ee)|0,i=i+Math.imul(w,Z)|0,o=o+Math.imul(w,ee)|0,n=n+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,i=i+Math.imul(b,re)|0,o=o+Math.imul(b,ne)|0,n=n+Math.imul(p,oe)|0,i=i+Math.imul(p,ae)|0,i=i+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0,n=n+Math.imul(l,ce)|0,i=i+Math.imul(l,ue)|0,i=i+Math.imul(d,ce)|0,o=o+Math.imul(d,ue)|0;var Se=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(D,U),i=Math.imul(D,q),i=i+Math.imul(L,U)|0,o=Math.imul(L,q),n=n+Math.imul(I,H)|0,i=i+Math.imul(I,W)|0,i=i+Math.imul(j,H)|0,o=o+Math.imul(j,W)|0,n=n+Math.imul(O,V)|0,i=i+Math.imul(O,K)|0,i=i+Math.imul(T,V)|0,o=o+Math.imul(T,K)|0,n=n+Math.imul(P,X)|0,i=i+Math.imul(P,Y)|0,i=i+Math.imul(M,X)|0,o=o+Math.imul(M,Y)|0,n=n+Math.imul(S,Z)|0,i=i+Math.imul(S,ee)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(x,re)|0,i=i+Math.imul(x,ne)|0,i=i+Math.imul(w,re)|0,o=o+Math.imul(w,ne)|0,n=n+Math.imul(y,oe)|0,i=i+Math.imul(y,ae)|0,i=i+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,n=n+Math.imul(p,ce)|0,i=i+Math.imul(p,ue)|0,i=i+Math.imul(v,ce)|0,o=o+Math.imul(v,ue)|0,n=n+Math.imul(l,le)|0,i=i+Math.imul(l,de)|0,i=i+Math.imul(d,le)|0,o=o+Math.imul(d,de)|0;var Ae=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(R,U),i=Math.imul(R,q),i=i+Math.imul(N,U)|0,o=Math.imul(N,q),n=n+Math.imul(D,H)|0,i=i+Math.imul(D,W)|0,i=i+Math.imul(L,H)|0,o=o+Math.imul(L,W)|0,n=n+Math.imul(I,V)|0,i=i+Math.imul(I,K)|0,i=i+Math.imul(j,V)|0,o=o+Math.imul(j,K)|0,n=n+Math.imul(O,X)|0,i=i+Math.imul(O,Y)|0,i=i+Math.imul(T,X)|0,o=o+Math.imul(T,Y)|0,n=n+Math.imul(P,Z)|0,i=i+Math.imul(P,ee)|0,i=i+Math.imul(M,Z)|0,o=o+Math.imul(M,ee)|0,n=n+Math.imul(S,re)|0,i=i+Math.imul(S,ne)|0,i=i+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(x,oe)|0,i=i+Math.imul(x,ae)|0,i=i+Math.imul(w,oe)|0,o=o+Math.imul(w,ae)|0,n=n+Math.imul(y,ce)|0,i=i+Math.imul(y,ue)|0,i=i+Math.imul(b,ce)|0,o=o+Math.imul(b,ue)|0,n=n+Math.imul(p,le)|0,i=i+Math.imul(p,de)|0,i=i+Math.imul(v,le)|0,o=o+Math.imul(v,de)|0,n=n+Math.imul(l,pe)|0,i=i+Math.imul(l,ve)|0,i=i+Math.imul(d,pe)|0,o=o+Math.imul(d,ve)|0;var ke=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(R,H),i=Math.imul(R,W),i=i+Math.imul(N,H)|0,o=Math.imul(N,W),n=n+Math.imul(D,V)|0,i=i+Math.imul(D,K)|0,i=i+Math.imul(L,V)|0,o=o+Math.imul(L,K)|0,n=n+Math.imul(I,X)|0,i=i+Math.imul(I,Y)|0,i=i+Math.imul(j,X)|0,o=o+Math.imul(j,Y)|0,n=n+Math.imul(O,Z)|0,i=i+Math.imul(O,ee)|0,i=i+Math.imul(T,Z)|0,o=o+Math.imul(T,ee)|0,n=n+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,i=i+Math.imul(M,re)|0,o=o+Math.imul(M,ne)|0,n=n+Math.imul(S,oe)|0,i=i+Math.imul(S,ae)|0,i=i+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(x,ce)|0,i=i+Math.imul(x,ue)|0,i=i+Math.imul(w,ce)|0,o=o+Math.imul(w,ue)|0,n=n+Math.imul(y,le)|0,i=i+Math.imul(y,de)|0,i=i+Math.imul(b,le)|0,o=o+Math.imul(b,de)|0,n=n+Math.imul(p,pe)|0,i=i+Math.imul(p,ve)|0,i=i+Math.imul(v,pe)|0,o=o+Math.imul(v,ve)|0;var Pe=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(R,V),i=Math.imul(R,K),i=i+Math.imul(N,V)|0,o=Math.imul(N,K),n=n+Math.imul(D,X)|0,i=i+Math.imul(D,Y)|0,i=i+Math.imul(L,X)|0,o=o+Math.imul(L,Y)|0,n=n+Math.imul(I,Z)|0,i=i+Math.imul(I,ee)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,ee)|0,n=n+Math.imul(O,re)|0,i=i+Math.imul(O,ne)|0,i=i+Math.imul(T,re)|0,o=o+Math.imul(T,ne)|0,n=n+Math.imul(P,oe)|0,i=i+Math.imul(P,ae)|0,i=i+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,n=n+Math.imul(S,ce)|0,i=i+Math.imul(S,ue)|0,i=i+Math.imul(A,ce)|0,o=o+Math.imul(A,ue)|0,n=n+Math.imul(x,le)|0,i=i+Math.imul(x,de)|0,i=i+Math.imul(w,le)|0,o=o+Math.imul(w,de)|0,n=n+Math.imul(y,pe)|0,i=i+Math.imul(y,ve)|0,i=i+Math.imul(b,pe)|0,o=o+Math.imul(b,ve)|0;var Me=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(R,X),i=Math.imul(R,Y),i=i+Math.imul(N,X)|0,o=Math.imul(N,Y),n=n+Math.imul(D,Z)|0,i=i+Math.imul(D,ee)|0,i=i+Math.imul(L,Z)|0,o=o+Math.imul(L,ee)|0,n=n+Math.imul(I,re)|0,i=i+Math.imul(I,ne)|0,i=i+Math.imul(j,re)|0,o=o+Math.imul(j,ne)|0,n=n+Math.imul(O,oe)|0,i=i+Math.imul(O,ae)|0,i=i+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,n=n+Math.imul(P,ce)|0,i=i+Math.imul(P,ue)|0,i=i+Math.imul(M,ce)|0,o=o+Math.imul(M,ue)|0,n=n+Math.imul(S,le)|0,i=i+Math.imul(S,de)|0,i=i+Math.imul(A,le)|0,o=o+Math.imul(A,de)|0,n=n+Math.imul(x,pe)|0,i=i+Math.imul(x,ve)|0,i=i+Math.imul(w,pe)|0,o=o+Math.imul(w,ve)|0;var Ee=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,Z),i=Math.imul(R,ee),i=i+Math.imul(N,Z)|0,o=Math.imul(N,ee),n=n+Math.imul(D,re)|0,i=i+Math.imul(D,ne)|0,i=i+Math.imul(L,re)|0,o=o+Math.imul(L,ne)|0,n=n+Math.imul(I,oe)|0,i=i+Math.imul(I,ae)|0,i=i+Math.imul(j,oe)|0,o=o+Math.imul(j,ae)|0,n=n+Math.imul(O,ce)|0,i=i+Math.imul(O,ue)|0,i=i+Math.imul(T,ce)|0,o=o+Math.imul(T,ue)|0,n=n+Math.imul(P,le)|0,i=i+Math.imul(P,de)|0,i=i+Math.imul(M,le)|0,o=o+Math.imul(M,de)|0,n=n+Math.imul(S,pe)|0,i=i+Math.imul(S,ve)|0,i=i+Math.imul(A,pe)|0,o=o+Math.imul(A,ve)|0;var Oe=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(R,re),i=Math.imul(R,ne),i=i+Math.imul(N,re)|0,o=Math.imul(N,ne),n=n+Math.imul(D,oe)|0,i=i+Math.imul(D,ae)|0,i=i+Math.imul(L,oe)|0,o=o+Math.imul(L,ae)|0,n=n+Math.imul(I,ce)|0,i=i+Math.imul(I,ue)|0,i=i+Math.imul(j,ce)|0,o=o+Math.imul(j,ue)|0,n=n+Math.imul(O,le)|0,i=i+Math.imul(O,de)|0,i=i+Math.imul(T,le)|0,o=o+Math.imul(T,de)|0,n=n+Math.imul(P,pe)|0,i=i+Math.imul(P,ve)|0,i=i+Math.imul(M,pe)|0,o=o+Math.imul(M,ve)|0;var Te=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(R,oe),i=Math.imul(R,ae),i=i+Math.imul(N,oe)|0,o=Math.imul(N,ae),n=n+Math.imul(D,ce)|0,i=i+Math.imul(D,ue)|0,i=i+Math.imul(L,ce)|0,o=o+Math.imul(L,ue)|0,n=n+Math.imul(I,le)|0,i=i+Math.imul(I,de)|0,i=i+Math.imul(j,le)|0,o=o+Math.imul(j,de)|0,n=n+Math.imul(O,pe)|0,i=i+Math.imul(O,ve)|0,i=i+Math.imul(T,pe)|0,o=o+Math.imul(T,ve)|0;var Ce=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(R,ce),i=Math.imul(R,ue),i=i+Math.imul(N,ce)|0,o=Math.imul(N,ue),n=n+Math.imul(D,le)|0,i=i+Math.imul(D,de)|0,i=i+Math.imul(L,le)|0,o=o+Math.imul(L,de)|0,n=n+Math.imul(I,pe)|0,i=i+Math.imul(I,ve)|0,i=i+Math.imul(j,pe)|0,o=o+Math.imul(j,ve)|0;var Ie=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(R,le),i=Math.imul(R,de),i=i+Math.imul(N,le)|0,o=Math.imul(N,de),n=n+Math.imul(D,pe)|0,i=i+Math.imul(D,ve)|0,i=i+Math.imul(L,pe)|0,o=o+Math.imul(L,ve)|0;var je=(u+n|0)+((8191&i)<<13)|0;u=(o+(i>>>13)|0)+(je>>>26)|0,je&=67108863,n=Math.imul(R,pe),i=Math.imul(R,ve),i=i+Math.imul(N,pe)|0,o=Math.imul(N,ve);var Be=(u+n|0)+((8191&i)<<13)|0;return u=(o+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,c[0]=ge,c[1]=ye,c[2]=be,c[3]=me,c[4]=xe,c[5]=we,c[6]=_e,c[7]=Se,c[8]=Ae,c[9]=ke,c[10]=Pe,c[11]=Me,c[12]=Ee,c[13]=Oe,c[14]=Te,c[15]=Ce,c[16]=Ie,c[17]=je,c[18]=Be,0!==u&&(c[19]=u,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o>>26)|0,i+=a>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r._strip()}function m(e,t,r){return b(e,t,r)}function x(e,t){this.x=e,this.y=t}Math.imul||(y=g),o.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return r=10===this.length&&10===e.length?y(this,e,t):n<63?g(this,e,t):n<1024?b(this,e,t):m(this,e,t),r},x.prototype.makeRBT=function(e){for(var t=new Array(e),r=o.prototype._countBits(e)-1,n=0;n>=1;return n},x.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=v(e);if(0===t.length)return new o(1);for(var r=this,n=0;n=0);var t,r=e%26,i=(e-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,u=0;u=0&&(0!==f||u>=i);u--){var l=0|this.words[u];this.words[u]=f<<26-o|l>>>o,f=l&s}return c&&0!==f&&(c.words[c.length++]=f),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,i=1<=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(c/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var r=this.length-e.length,n=this.clone(),i=e,a=0|i.words[i.length-1],s=this._countBits(a);r=26-s,0!==r&&(i=i.ushln(r),n.iushln(r),a=0|i.words[i.length-1]);var c,u=n.length-i.length;if("mod"!==t){c=new o(null),c.length=u+1,c.words=new Array(c.length);for(var f=0;f=0;d--){var h=67108864*(0|n.words[i.length+d])+(0|n.words[i.length+d-1]);h=Math.min(h/a|0,67108863),n._ishlnsubmul(i,h,d);while(0!==n.negative)h--,n.negative=0,n._ishlnsubmul(i,1,d),n.isZero()||(n.negative^=1);c&&(c.words[d]=h)}return c&&c._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:c||null,mod:n}},o.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/e|0,r=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i=new o(1),a=new o(0),s=new o(0),c=new o(1),u=0;while(t.isEven()&&r.isEven())t.iushrn(1),r.iushrn(1),++u;var f=r.clone(),l=t.clone();while(!t.isZero()){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0){t.iushrn(d);while(d-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(f),a.isub(l)),i.iushrn(1),a.iushrn(1)}for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0){r.iushrn(p);while(p-- >0)(s.isOdd()||c.isOdd())&&(s.iadd(f),c.isub(l)),s.iushrn(1),c.iushrn(1)}t.cmp(r)>=0?(t.isub(r),i.isub(s),a.isub(c)):(r.isub(t),s.isub(i),c.isub(a))}return{a:s,b:c,gcd:r.iushln(u)}},o.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();var i,a=new o(1),s=new o(0),c=r.clone();while(t.cmpn(1)>0&&r.cmpn(1)>0){for(var u=0,f=1;0===(t.words[0]&f)&&u<26;++u,f<<=1);if(u>0){t.iushrn(u);while(u-- >0)a.isOdd()&&a.iadd(c),a.iushrn(1)}for(var l=0,d=1;0===(r.words[0]&d)&&l<26;++l,d<<=1);if(l>0){r.iushrn(l);while(l-- >0)s.isOdd()&&s.iadd(c),s.iushrn(1)}t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return i=0===t.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);do{while(t.isEven())t.iushrn(1);while(r.isEven())r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}while(1);return r.iushln(n)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){ni&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new M(e)},o.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function _(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){M.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},_.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),r=this.imulK(r),r=r.iadd(this.tmp),t=r.bitLength()}while(t>this.n);var n=t0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},_.prototype.split=function(e,t){e.iushrn(this.n,0,t)},_.prototype.imulK=function(e){return e.imul(this.k)},i(S,_),S.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new S;else if("p224"===e)t=new A;else if("p192"===e)t=new k;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new P}return w[e]=t,t},M.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},M.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},M.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(u(e,e.umod(this.m)._forceRed(this)),e)},M.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},M.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},M.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},M.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},M.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},M.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},M.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},M.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},M.prototype.isqr=function(e){return this.imul(e,e.clone())},M.prototype.sqr=function(e){return this.mul(e,e)},M.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new o(1)).iushrn(2);return this.pow(e,r)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);n(!i.isZero());var s=new o(1).toRed(this),c=s.redNeg(),u=this.m.subn(1).iushrn(1),f=this.m.bitLength();f=new o(2*f*f).toRed(this);while(0!==this.pow(f,u).cmp(c))f.redIAdd(c);var l=this.pow(f,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;while(0!==h.cmp(s)){for(var v=h,g=0;0!==v.cmp(s);g++)v=v.redSqr();n(g=0;i--){for(var f=t.words[i],l=u-1;l>=0;l--){var d=f>>l&1;a!==n[0]&&(a=this.sqr(a)),0!==d||0!==s?(s<<=1,s|=d,c++,(c===r||0===i&&0===l)&&(a=this.mul(a,n[s]),c=0,s=0)):c=0}u=26}return a},M.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},M.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,M),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){var t=this.imod(e._invmp(this.m).mul(this.r2));return t._forceRed(this)}})(e,this)}).call(this,r(289)(e))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){},function(e,t,r){var n=r(288),i=r(292);function o(e){this.rand=e||new i.Rand}e.exports=o,o.create=function(e){return new o(e)},o.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var i=new n(this.rand.generate(r))}while(i.cmp(e)>=0);return i},o.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},o.prototype.test=function(e,t,r){var i=e.bitLength(),o=n.mont(e),a=new n(1).toRed(o);t||(t=Math.max(1,i/48|0));for(var s=e.subn(1),c=0;!s.testn(c);c++);for(var u=e.shrn(c),f=s.toRed(o),l=!0;t>0;t--){var d=this._randrange(new n(2),s);r&&r(d);var h=d.toRed(o).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(f)){for(var p=1;p0;t--){var f=this._randrange(new n(2),a),l=e.gcd(f);if(0!==l.cmpn(1))return l;var d=f.toRed(i).redPow(c);if(0!==d.cmp(o)&&0!==d.cmp(u)){for(var h=1;h0&&r.ishrn(n),r}function g(e,t){e=v(e,t),e=e.mod(t);var r=n.from(e.toArray());if(r.length=0||!r.umod(e.prime1)||!r.umod(e.prime2))r=new n(i(t));return r}e.exports=a,a.getr=s}).call(this,r(29).Buffer)},function(e,t,r){"use strict";var n=t;n.version=r(300).version,n.utils=r(301),n.rand=r(292),n.curve=r(303),n.curves=r(308),n.ec=r(322),n.eddsa=r(326)},function(e){e.exports=JSON.parse('{"_args":[["elliptic@6.5.2","/Users/guoshengqiang/Documents/hbx-plugins/uniapp-cli"]],"_from":"elliptic@6.5.2","_id":"elliptic@6.5.2","_inBundle":false,"_integrity":"sha512-f4x70okzZbIQl/NSRLkI/+tteV/9WqL98zx+SQ69KbXxmVrmjwsNUPn/gYJJ0sHvEak24cZgHIPegRePAtA/xw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.2","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.2","saveSpec":null,"fetchSpec":"6.5.2"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.2.tgz","_spec":"6.5.2","_where":"/Users/guoshengqiang/Documents/hbx-plugins/uniapp-cli","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.2"}')},function(e,t,r){"use strict";var n=t,i=r(288),o=r(262),a=r(302);function s(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var i=1<(i>>1)-1?(i>>1)-c:c,o.isubn(s)):s=0,n[a]=s,o.iushrn(1)}return n}function c(e,t){var r=[[],[]];e=e.clone(),t=t.clone();var n=0,i=0;while(e.cmpn(-n)>0||t.cmpn(-i)>0){var o,a,s=e.andln(3)+n&3,c=t.andln(3)+i&3;if(3===s&&(s=-1),3===c&&(c=-1),0===(1&s))o=0;else{var u=e.andln(7)+n&7;o=3!==u&&5!==u||2!==c?s:-s}if(r[0].push(o),0===(1&c))a=0;else{u=t.andln(7)+i&7;a=3!==u&&5!==u||2!==s?c:-c}r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r}function u(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}}function f(e){return"string"===typeof e?n.toArray(e,"hex"):e}function l(e){return new i(e,"hex","le")}n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=s,n.getJSF=c,n.cachedProperty=u,n.parseBytes=f,n.intFromLE=l},function(e,t,r){"use strict";var n=t;function i(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n>8,a=255&i;o?r.push(o,a):r.push(a)}return r}function o(e){return 1===e.length?"0"+e:e}function a(e){for(var t="",r=0;r0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(e,t){s(e.precomputed);var r=e._getDoubles(),n=o(t,1,this._bitLength),i=(1<=c;t--)u=(u<<1)+n[t];a.push(u)}for(var f=this.jpoint(null,null,null),l=this.jpoint(null,null,null),d=i;d>0;d--){for(c=0;c=0;u--){for(t=0;u>=0&&0===a[u];u--)t++;if(u>=0&&t++,c=c.dblp(t),u<0)break;var f=a[u];s(0!==f),c="affine"===e.type?f>0?c.mixedAdd(i[f-1>>1]):c.mixedAdd(i[-f-1>>1].neg()):f>0?c.add(i[f-1>>1]):c.add(i[-f-1>>1].neg())}return"affine"===e.type?c.toP():c},c.prototype._wnafMulAdd=function(e,t,r,n,i){for(var s=this._wnafT1,c=this._wnafT2,u=this._wnafT3,f=0,l=0;l=1;l-=2){var p=l-1,v=l;if(1===s[p]&&1===s[v]){var g=[t[p],null,null,t[v]];0===t[p].y.cmp(t[v].y)?(g[1]=t[p].add(t[v]),g[2]=t[p].toJ().mixedAdd(t[v].neg())):0===t[p].y.cmp(t[v].y.redNeg())?(g[1]=t[p].toJ().mixedAdd(t[v]),g[2]=t[p].add(t[v].neg())):(g[1]=t[p].toJ().mixedAdd(t[v]),g[2]=t[p].toJ().mixedAdd(t[v].neg()));var y=[-3,-1,-5,-7,0,7,5,1,3],b=a(r[p],r[v]);f=Math.max(b[0].length,f),u[p]=new Array(f),u[v]=new Array(f);for(var m=0;m=0;l--){var A=0;while(l>=0){var k=!0;for(m=0;m=0&&A++,_=_.dblp(A),l<0)break;for(m=0;m0?d=c[m][P-1>>1]:P<0&&(d=c[m][-P-1>>1].neg()),_="affine"===d.type?_.mixedAdd(d):_.add(d))}}for(l=0;l=Math.ceil((e.bitLength()+1)/t.step)},u.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i=0&&(a=t,s=r),n.negative&&(n=n.neg(),o=o.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:n,b:o},{a:a,b:s}]},c.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),c=i.mul(r.b),u=o.mul(n.b),f=e.sub(a).sub(s),l=c.add(u).neg();return{k1:f,k2:l}},c.prototype.pointFromX=function(e,t){e=new i(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var o=n.fromRed().isOdd();return(t&&!o||!t&&o)&&(n=n.redNeg()),this.point(e,n)},c.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},c.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},u.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(e){return e=new i(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},u.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},u.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},u.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},u.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var e=this.curve.jpoint(this.x,this.y,this.curve.one);return e},o(f,a.BasePoint),c.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),c=o.redSub(a);if(0===s.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),f=u.redMul(s),l=n.redMul(u),d=c.redSqr().redIAdd(f).redISub(l).redISub(l),h=c.redMul(l.redISub(d)).redISub(o.redMul(f)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=a.redSqr(),u=c.redMul(a),f=r.redMul(c),l=s.redSqr().redIAdd(u).redISub(f).redISub(f),d=s.redMul(f.redISub(l)).redISub(i.redMul(u)),h=this.z.redMul(a);return this.curve.jpoint(l,d,h)},f.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"":""},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(e,t,r){"use strict";var n=r(288),i=r(212),o=r(304),a=r(301);function s(e){o.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){o.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(s,o),e.exports=s,s.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t),i=n.redSqrt();return 0===i.redSqr().cmp(n)},i(c,o.BasePoint),s.prototype.decodePoint=function(e,t){return this.point(a.toArray(e,t),1)},s.prototype.point=function(e,t){return new c(this,e,t)},s.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z),t=e.redSqr(),r=this.x.redSub(this.z),n=r.redSqr(),i=t.redSub(n),o=t.redMul(n),a=i.redMul(n.redAdd(this.curve.a24.redMul(i)));return this.curve.point(o,a)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z),a=o.redMul(r),s=i.redMul(n),c=t.z.redMul(a.redAdd(s).redSqr()),u=t.x.redMul(a.redISub(s).redSqr());return this.curve.point(c,u)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=this,o=[];0!==t.cmpn(0);t.iushrn(1))o.push(t.andln(1));for(var a=o.length-1;a>=0;a--)0===o[a]?(r=r.diffAdd(n,i),n=n.dbl()):(n=r.diffAdd(n,i),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(e,t,r){"use strict";var n=r(301),i=r(288),o=r(212),a=r(304),s=n.assert;function c(e){this.twisted=1!==(0|e.a),this.mOneA=this.twisted&&-1===(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|e.c)}function u(e,t,r,n,o){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=o&&new i(o,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),e.exports=c,c.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){e=new i(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),o=this.one.redSub(this.c2.redMul(this.d).redMul(r)),a=n.redMul(o.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var c=s.fromRed().isOdd();return(t&&!c||!t&&c)&&(s=s.redNeg()),this.point(e,s)},c.prototype.pointFromY=function(e,t){e=new i(e,16),e.red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),o=r.redMul(this.d).redMul(this.c2).redSub(this.a),a=n.redMul(o.redInvm());if(0===a.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==t&&(s=s.redNeg()),this.point(s,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(u,a.BasePoint),c.prototype.pointFromJSON=function(e){return u.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new u(this,e,t,r,n)},u.fromJSON=function(e,t){return new u(e,t[0],t[1],t[2])},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),c=i.redMul(a),u=o.redMul(s),f=i.redMul(s),l=a.redMul(o);return this.curve.point(c,u,l,f)},u.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=this.curve._mulA(i),s=a.redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(s.redSub(this.curve.two)),t=s.redMul(a.redSub(o)),r=s.redSqr().redSub(s).redSub(s);else{var c=this.z.redSqr(),u=s.redSub(c).redISub(c);e=n.redSub(i).redISub(o).redMul(u),t=s.redMul(a.redSub(o)),r=s.redMul(u)}}else{a=i.redAdd(o),c=this.curve._mulC(this.z).redSqr(),u=a.redSub(c).redSub(c);e=this.curve._mulC(n.redISub(a)).redMul(u),t=this.curve._mulC(a).redMul(i.redISub(o)),r=a.redMul(u)}return this.curve.point(e,t,r)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),c=r.redAdd(t),u=o.redMul(a),f=s.redMul(c),l=o.redMul(c),d=a.redMul(s);return this.curve.point(u,f,d,l)},u.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),c=i.redSub(s),u=i.redAdd(s),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),l=n.redMul(c).redMul(f);return this.curve.twisted?(t=n.redMul(u).redMul(a.redSub(this.curve._mulA(o))),r=c.redMul(u)):(t=n.redMul(u).redMul(a.redSub(o)),r=this.curve._mulC(c).redMul(u)),this.curve.point(l,t,r)},u.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},u.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},u.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},u.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},u.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(e,t,r){"use strict";var n,i=t,o=r(309),a=r(303),s=r(301),c=s.assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function f(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var r=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:r}),r}})}i.PresetCurve=u,f("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),f("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),f("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),f("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),f("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),f("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),f("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(321)}catch(l){n=void 0}f("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},function(e,t,r){var n=t;n.utils=r(310),n.common=r(311),n.sha=r(312),n.ripemd=r(319),n.hmac=r(320),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";var n=r(262),i=r(212);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for(e=e.replace(/[^a-z0-9]+/gi,""),e.length%2!==0&&(e="0"+e),i=0;i>6|192,r[n++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(i=0;i>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24;return t>>>0}function u(e,t){for(var r="",n=0;n>>0}return a}function h(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r}function p(e,t){return e>>>t|e<<32-t}function v(e,t){return e<>>32-t}function g(e,t){return e+t>>>0}function y(e,t,r){return e+t+r>>>0}function b(e,t,r,n){return e+t+r+n>>>0}function m(e,t,r,n,i){return e+t+r+n+i>>>0}function x(e,t,r,n){var i=e[t],o=e[t+1],a=n+o>>>0,s=(a>>0,e[t+1]=a}function w(e,t,r,n){var i=t+n>>>0,o=(i>>0}function _(e,t,r,n){var i=t+n;return i>>>0}function S(e,t,r,n,i,o,a,s){var c=0,u=t;u=u+n>>>0,c+=u>>0,c+=u>>0,c+=u>>0}function A(e,t,r,n,i,o,a,s){var c=t+n+o+s;return c>>>0}function k(e,t,r,n,i,o,a,s,c,u){var f=0,l=t;l=l+n>>>0,f+=l>>0,f+=l>>0,f+=l>>0,f+=l>>0}function P(e,t,r,n,i,o,a,s,c,u){var f=t+n+o+s+u;return f>>>0}function M(e,t,r){var n=t<<32-r|e>>>r;return n>>>0}function E(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}function O(e,t,r){return e>>>r}function T(e,t,r){var n=e<<32-r|t>>>r;return n>>>0}t.inherits=i,t.toArray=a,t.toHex=s,t.htonl=c,t.toHex32=u,t.zero2=f,t.zero8=l,t.join32=d,t.split32=h,t.rotr32=p,t.rotl32=v,t.sum32=g,t.sum32_3=y,t.sum32_4=b,t.sum32_5=m,t.sum64=x,t.sum64_hi=w,t.sum64_lo=_,t.sum64_4_hi=S,t.sum64_4_lo=A,t.sum64_5_hi=k,t.sum64_5_lo=P,t.rotr64_hi=M,t.rotr64_lo=E,t.shr64_hi=O,t.shr64_lo=T},function(e,t,r){"use strict";var n=r(310),i=r(262);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){e=this.pending;var r=e.length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var i=0;i>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o>>3}function d(e){return i(e,17)^i(e,19)^e>>>10}t.ft_1=o,t.ch32=a,t.maj32=s,t.p32=c,t.s0_256=u,t.s1_256=f,t.g0_256=l,t.g1_256=d},function(e,t,r){"use strict";var n=r(310),i=r(316);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(310),i=r(311),o=r(314),a=r(262),s=n.sum32,c=n.sum32_4,u=n.sum32_5,f=o.ch32,l=o.maj32,d=o.s0_256,h=o.s1_256,p=o.g0_256,v=o.g1_256,g=i.BlockHash,y=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function b(){if(!(this instanceof b))return new b;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=y,this.W=new Array(64)}n.inherits(b,g),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;nthis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t0))return a.iaddn(1),this.keyFromPrivate(a)}while(1)},l.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},l.prototype.sign=function(e,t,r,o){"object"===typeof r&&(o=r,r=null),o||(o={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new n(e,16));for(var a=this.n.byteLength(),s=t.getPrivate().toArray("be",a),c=e.toArray("be",a),u=new i({hash:this.hash,entropy:s,nonce:c,pers:o.pers,persEnc:o.persEnc||"utf8"}),l=this.n.sub(new n(1)),d=0;1;d++){var h=o.k?o.k(d):new n(u.generate(this.n.byteLength()));if(h=this._truncateToN(h,!0),!(h.cmpn(1)<=0||h.cmp(l)>=0)){var p=this.g.mul(h);if(!p.isInfinity()){var v=p.getX(),g=v.umod(this.n);if(0!==g.cmpn(0)){var y=h.invm(this.n).mul(g.mul(t.getPrivate()).iadd(e));if(y=y.umod(this.n),0!==y.cmpn(0)){var b=(p.getY().isOdd()?1:0)|(0!==v.cmp(g)?2:0);return o.canonical&&y.cmp(this.nh)>0&&(y=this.n.sub(y),b^=1),new f({r:g,s:y,recoveryParam:b})}}}}}},l.prototype.verify=function(e,t,r,i){e=this._truncateToN(new n(e,16)),r=this.keyFromPublic(r,i),t=new f(t,"hex");var o=t.r,a=t.s;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s=a.invm(this.n),c=s.mul(e).umod(this.n),u=s.mul(o).umod(this.n);if(!this.curve._maxwellTrick){var l=this.g.mulAdd(c,r.getPublic(),u);return!l.isInfinity()&&0===l.getX().umod(this.n).cmp(o)}l=this.g.jmulAdd(c,r.getPublic(),u);return!l.isInfinity()&&l.eqXToP(o)},l.prototype.recoverPubKey=function(e,t,r,i){c((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var o=this.n,a=new n(e),s=t.r,u=t.s,l=1&r,d=r>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");s=d?this.curve.pointFromX(s.add(this.curve.n),l):this.curve.pointFromX(s,l);var h=t.r.invm(o),p=o.sub(a).mul(h).umod(o),v=u.mul(h).umod(o);return this.g.mulAdd(p,s,v)},l.prototype.getKeyRecoveryParam=function(e,t,r,n){if(t=new f(t,n),null!==t.recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},function(e,t,r){"use strict";var n=r(309),i=r(302),o=r(262);function a(e){if(!(this instanceof a))return new a(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=i.toArray(e.entropy,e.entropyEnc||"hex"),r=i.toArray(e.nonce,e.nonceEnc||"hex"),n=i.toArray(e.pers,e.persEnc||"hex");o(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}e.exports=a,a.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},a.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=i.toArray(r,n||"hex"),this._update(r));var o=[];while(o.length"}},function(e,t,r){"use strict";var n=r(288),i=r(301),o=i.assert;function a(e,t){if(e instanceof a)return e;this._importDER(e,t)||(o(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function s(){this.place=0}function c(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o>>3);e.push(128|r);while(--r)e.push(t>>>(r<<3)&255);e.push(t)}}e.exports=a,a.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new s;if(48!==e[r.place++])return!1;var o=c(e,r);if(o+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var a=c(e,r),u=e.slice(r.place,a+r.place);if(r.place+=a,2!==e[r.place++])return!1;var f=c(e,r);if(e.length!==f+r.place)return!1;var l=e.slice(r.place,f+r.place);return 0===u[0]&&128&u[1]&&(u=u.slice(1)),0===l[0]&&128&l[1]&&(l=l.slice(1)),this.r=new n(u),this.s=new n(l),this.recoveryParam=null,!0},a.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=u(t),r=u(r);while(!r[0]&&!(128&r[1]))r=r.slice(1);var n=[2];f(n,t.length),n=n.concat(t),n.push(2),f(n,r.length);var o=n.concat(r),a=[48];return f(a,o.length),a=a.concat(o),i.encode(a,e)}},function(e,t,r){"use strict";var n=r(309),i=r(308),o=r(301),a=o.assert,s=o.parseBytes,c=r(327),u=r(328);function f(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=s(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),c=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:c,Rencoded:o})},f.prototype.verify=function(e,t,r){e=s(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S()),a=t.R().add(n.pub().mul(i));return a.eq(o)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t>6],i=0===(32&r);if(31===(31&r)){var o=r;r=0;while(128===(128&o)){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;var a=s.tag[r];return{cls:n,primitive:i,tag:r,tagStr:a}}function l(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0===(128&n))return n;var i=127&n;if(i>4)return e.error("length octect is too long");n=0;for(var o=0;o=31?n.error("Multi-octet tag encoding unsupported"):(t||(i|=32),i|=s.tagClassByName[r||"universal"]<<6,i)}e.exports=c,c.prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(u,a.Node),u.prototype._encodeComposite=function(e,t,r,n){var o=l(e,t,r,this.reporter);if(n.length<128){var a=new i(2);return a[0]=o,a[1]=n.length,this._createEncoderBuffer([a,n])}for(var s=1,c=n.length;c>=256;c>>=8)s++;a=new i(2+s);a[0]=o,a[1]=128|s;c=1+s;for(var u=n.length;u>0;c--,u>>=8)a[c]=255&u;return this._createEncoderBuffer([a,n])},u.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"===t){for(var r=new i(2*e.length),n=0;n=40)return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var o=0;for(n=0;n=128;a>>=7)o++}var s=new i(o),c=s.length-1;for(n=e.length-1;n>=0;n--){a=e[n];s[c--]=127&a;while((a>>=7)>0)s[c--]=128|127&a}return this._createEncoderBuffer(s)},u.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[f(n.getFullYear()),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[f(n.getFullYear()%100),f(n.getUTCMonth()+1),f(n.getUTCDate()),f(n.getUTCHours()),f(n.getUTCMinutes()),f(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},u.prototype._encodeNull=function(){return this._createEncoderBuffer("")},u.prototype._encodeInt=function(e,t){if("string"===typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!==typeof e&&!i.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new i(r)}if(i.isBuffer(e)){var n=e.length;0===e.length&&n++;var o=new i(n);return e.copy(o),0===e.length&&(o[0]=0),this._createEncoderBuffer(o)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var a=e;a>=256;a>>=8)n++;for(o=new Array(n),a=o.length-1;a>=0;a--)o[a]=255&e,e>>=8;return 128&o[0]&&o.unshift(0),this._createEncoderBuffer(new i(o))},u.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},u.prototype._use=function(e,t){return"function"===typeof e&&(e=e(t)),e._getEncoder("der").tree},u.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i["default"])return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i["default"],t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n=t)throw new Error("invalid sig")}e.exports=c},function(e,t,r){(function(t){var n=r(299),i=r(288);e.exports=function(e){return new a(e)};var o={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(e){this.curveType=o[e],this.curveType||(this.curveType={name:e}),this.curve=new n.ec(this.curveType.name),this.keys=void 0}function s(e,r,n){Array.isArray(e)||(e=e.toArray());var i=new t(e);if(n&&i.lengthr-d-2)throw new Error("message too long");var h=l.alloc(r-n-d-2),p=r-f-1,v=i(f),g=s(l.concat([u,h,l.alloc(1,1),t],p),a(v,p)),y=s(v,a(g,f));return new c(l.concat([l.alloc(1),y,g],r))}function h(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(i>o-11)throw new Error("message too long");return n=r?l.alloc(o-i-3,255):p(o-i-3),new c(l.concat([l.from([0,r?1:2]),n,l.alloc(1),t],o))}function p(e){var t,r=l.allocUnsafe(e),n=0,o=i(2*e),a=0;while(n=0)throw new Error("data too long for modulus")}return r?f(o,a):u(o,a)}},function(e,t,r){var n=r(211),i=r(210).Buffer;function o(e){var t=i.allocUnsafe(4);return t.writeUInt32BE(e,0),t}e.exports=function(e,t){var r,a=i.alloc(0),s=0;while(a.length=t.length){o++;break}var a=t.slice(2,i-1);if(("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++,a.length<8&&o++,o)throw new Error("decryption error");return t.slice(i)}function h(e,t){e=f.from(e),t=f.from(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;while(++ih||new a(t).cmp(c.modulus)>=0)throw new Error("decryption error");o=r?u(new a(t),c):s(t,c);var p=f.alloc(h-o.length);if(o=f.concat([p,o],h),4===i)return l(c,o);if(1===i)return d(c,o,r);if(3===i)return o;throw new Error("unknown padding")}},function(e,t,r){"use strict";(function(e,n){function i(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var o=r(210),a=r(207),s=o.Buffer,c=o.kMaxLength,u=e.crypto||e.msCrypto,f=Math.pow(2,32)-1;function l(e,t){if("number"!==typeof e||e!==e)throw new TypeError("offset must be a number");if(e>f||e<0)throw new TypeError("offset must be a uint32");if(e>c||e>t)throw new RangeError("offset out of range")}function d(e,t,r){if("number"!==typeof e||e!==e)throw new TypeError("size must be a number");if(e>f||e<0)throw new TypeError("size must be a uint32");if(e+t>r||e>c)throw new RangeError("buffer too small")}function h(t,r,n,i){if(!s.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof r)i=r,r=0,n=t.length;else if("function"===typeof n)i=n,n=t.length-r;else if("function"!==typeof i)throw new TypeError('"cb" argument must be a function');return l(r,t.length),d(n,r,t.length),p(t,r,n,i)}function p(e,t,r,i){if(n.browser){var o=e.buffer,s=new Uint8Array(o,t,r);return u.getRandomValues(s),i?void n.nextTick((function(){i(null,e)})):e}if(!i){var c=a(r);return c.copy(e,t),e}a(r,(function(r,n){if(r)return i(r);n.copy(e,t),i(null,e)}))}function v(t,r,n){if("undefined"===typeof r&&(r=0),!s.isBuffer(t)&&!(t instanceof e.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return l(r,t.length),void 0===n&&(n=t.length-r),d(n,r,t.length),p(t,r,n)}u&&u.getRandomValues||!n.browser?(t.randomFill=h,t.randomFillSync=v):(t.randomFill=i,t.randomFillSync=i)}).call(this,r(2),r(208))},,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n;function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=[(n={categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"语文成绩",data:[90,95,72,89,88,84]},{name:"班级平均",data:[85,98,84,72,83,89]},{name:"年纪平均",data:[88,79,88,74,81,92]}]},i(n,"categories",["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"]),i(n,"series",[{name:"语文成绩",data:[90,95,92,80,88,99]},{name:"班级平均",data:[85,88,84,42,93,89]},{name:"年纪平均",data:[88,79,77,74,85,59]}]),n),{categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"数学成绩",data:[90,95,62,69,88,99]},{name:"班级平均",data:[85,88,84,92,73,89]},{name:"年纪平均",data:[88,99,77,74,85,89]}]},{categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"英语成绩",data:[90,75,92,77,88,99]},{name:"班级平均",data:[85,48,84,92,93,89]},{name:"年纪平均",data:[88,99,77,74,85,86]}]},{categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"科学成绩",data:[90,95,92,50,56,99]},{name:"班级平均",data:[85,88,84,92,63,89]},{name:"年纪平均",data:[78,79,77,74,85,89]}]},{categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"体育成绩",data:[90,95,92,70,66,99]},{name:"班级平均",data:[85,88,84,92,83,89]},{name:"年纪平均",data:[88,79,87,74,55,89]}]},{categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"思品成绩",data:[90,95,92,60,88,72]},{name:"班级平均",data:[85,88,84,92,93,79]},{name:"年纪平均",data:[88,79,77,74,55,89]}]}],a=[{name:"语文",categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"超过年级中",data:[90,95,82,76,88,99]},{name:"超过班级中",data:[95,58,64,92,93,79]}]},{name:"数学",categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"超过年级中",data:[90,95,82,76,88,99]},{name:"超过班级中",data:[95,58,88,92,93,79]}]},{name:"英语",categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"超过年级中",data:[90,74,82,66,77,99]},{name:"超过班级中",data:[95,89,64,75,93,92]}]},{name:"思品",categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"超过年级中",data:[80,91,82,76,55,99]},{name:"超过班级中",data:[95,92,69,92,93,55]}]},{name:"体育",categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"超过年级中",data:[90,33,82,45,88,99]},{name:"超过班级中",data:[95,99,64,77,93,79]}]},{name:"科学",categories:["开学考试","第一月考","第二月考","期中考试","第三月考","期末考试"],series:[{name:"超过年级中",data:[50,95,55,76,66,99]},{name:"超过班级中",data:[30,58,64,92,22,79]}]}],s={"周四":[{title:"文章鉴赏",name:"语文",teacher:"王老师",time:"09:00-09:50",timeFrame:"上午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"计算练习",name:"数学",teacher:"李老师",time:"09:50-10:50",timeFrame:"上午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"阅读专项训练",name:"外语",teacher:"张老师",time:"10:50-11:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"思想品德教育",name:"思品",teacher:"史老师",time:"11:50-14:50",timeFrame:"下午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"户外运动锻炼",name:"体育",teacher:"李老师",time:"14:50-17:55",timeFrame:"下午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"科学学习实验",name:"科学",teacher:"张老师",time:"17:55-20:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"随堂测验",name:"数学",teacher:"李老师",time:"20:50-21:50",timeFrame:"下午第四节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0}],"周五":[{title:"计算练习",name:"数学",teacher:"李老师",time:"09:00-09:50",timeFrame:"上午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"文言文学习",name:"语文",teacher:"王老师",time:"09:50-10:50",timeFrame:"上午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"阅读专项训练",name:"外语",teacher:"张老师",time:"10:50-11:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"思想品德教育",name:"思品",teacher:"史老师",time:"11:50-14:50",timeFrame:"下午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"户外运动锻炼",name:"体育",teacher:"李老师",time:"14:50-17:55",timeFrame:"下午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"科学学习实验",name:"科学",teacher:"张老师",time:"17:55-20:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"随堂测验",name:"数学",teacher:"李老师",time:"20:50-21:50",timeFrame:"下午第四节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0}],"周六":"","周日":"","周一":[{title:"阅读专项训练",name:"英语",teacher:"张老师",time:"09:00-09:50",timeFrame:"上午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"计算练习",name:"数学",teacher:"李老师",time:"09:50-10:50",timeFrame:"上午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"作文练习",name:"语文",teacher:"王老师",time:"10:50-11:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"思想品德教育",name:"思品",teacher:"史老师",time:"11:50-14:50",timeFrame:"下午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"户外运动锻炼",name:"体育",teacher:"李老师",time:"14:50-17:55",timeFrame:"下午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"科学学习实验",name:"科学",teacher:"张老师",time:"17:55-20:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"随堂测验",name:"数学",teacher:"李老师",time:"20:50-21:50",timeFrame:"下午第四节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0}],"周二":[{title:"文章鉴赏",name:"语文",teacher:"王老师",time:"09:00-09:50",timeFrame:"上午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"计算练习",name:"数学",teacher:"李老师",time:"09:50-10:50",timeFrame:"上午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"阅读专项训练",name:"外语",teacher:"张老师",time:"10:50-11:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"思想品德教育",name:"思品",teacher:"史老师",time:"11:50-14:50",timeFrame:"下午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"户外运动锻炼",name:"体育",teacher:"李老师",time:"14:50-17:55",timeFrame:"下午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"科学学习实验",name:"科学",teacher:"张老师",time:"17:55-20:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"随堂测验",name:"数学",teacher:"李老师",time:"20:50-21:50",timeFrame:"下午第四节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0}],"周三":[{title:"文章鉴赏",name:"语文",teacher:"王老师",time:"09:00-09:50",timeFrame:"上午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"计算练习",name:"数学",teacher:"李老师",time:"09:50-10:50",timeFrame:"上午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"阅读专项训练",name:"外语",teacher:"张老师",time:"10:50-11:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"思想品德教育",name:"思品",teacher:"史老师",time:"11:50-14:50",timeFrame:"下午第一节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg2.mp4",attendance:!0},{title:"户外运动锻炼",name:"体育",teacher:"李老师",time:"14:50-17:55",timeFrame:"下午第二节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0},{title:"科学学习实验",name:"科学",teacher:"张老师",time:"17:55-20:50",timeFrame:"上午第三节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg3.mp4",attendance:!0},{title:"随堂测验",name:"数学",teacher:"李老师",time:"20:50-21:50",timeFrame:"下午第四节",resource:"https://klxxcdn.oss-cn-hangzhou.aliyuncs.com/histudy/hrm/media/bg1.mp4",attendance:!0}]},c={subjectData:o,rankData:a,classData:s};t.default=c},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(r(34)),o=r(3);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(u){return void r(u)}s.done?t(c):Promise.resolve(c).then(n,i)}function c(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){s(o,n,i,a,c,"next",e)}function c(e){s(o,n,i,a,c,"throw",e)}a(void 0)}))}}function u(e){return d(e)||l(e)||p(e)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function d(e){if(Array.isArray(e))return v(e)}function h(e,t){var r;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=p(e))||t&&e&&"number"===typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function p(e,t){if(e){if("string"===typeof e)return v(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r>>2]>>>24-o%4*8&255;t[n+o>>>2]|=a<<24-(n+o)%4*8}else for(o=0;o>>2]=r[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,r=this.sigBytes;t[r>>>2]&=4294967295<<32-r%4*8,t.length=e.ceil(r/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var r,n=[],i=function(t){t=t;var r=987654321,n=4294967295;return function(){var i=((r=36969*(65535&r)+(r>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o>>2]>>>24-i%4*8&255;n.push((o>>>4).toString(16)),n.push((15&o).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new a.init(r,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,r=e.sigBytes,n=[],i=0;i>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(o))}return n.join("")},parse:function(e){for(var t=e.length,r=[],n=0;n>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new a.init(r,t)}},f=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)))}},l=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=f.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var r=this._data,n=r.words,i=r.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 f=0;f>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],c=e[t+1],h=e[t+2],p=e[t+3],v=e[t+4],g=e[t+5],y=e[t+6],b=e[t+7],m=e[t+8],x=e[t+9],w=e[t+10],_=e[t+11],S=e[t+12],A=e[t+13],k=e[t+14],P=e[t+15],M=o[0],E=o[1],O=o[2],T=o[3];M=u(M,E,O,T,a,7,s[0]),T=u(T,M,E,O,c,12,s[1]),O=u(O,T,M,E,h,17,s[2]),E=u(E,O,T,M,p,22,s[3]),M=u(M,E,O,T,v,7,s[4]),T=u(T,M,E,O,g,12,s[5]),O=u(O,T,M,E,y,17,s[6]),E=u(E,O,T,M,b,22,s[7]),M=u(M,E,O,T,m,7,s[8]),T=u(T,M,E,O,x,12,s[9]),O=u(O,T,M,E,w,17,s[10]),E=u(E,O,T,M,_,22,s[11]),M=u(M,E,O,T,S,7,s[12]),T=u(T,M,E,O,A,12,s[13]),O=u(O,T,M,E,k,17,s[14]),M=f(M,E=u(E,O,T,M,P,22,s[15]),O,T,c,5,s[16]),T=f(T,M,E,O,y,9,s[17]),O=f(O,T,M,E,_,14,s[18]),E=f(E,O,T,M,a,20,s[19]),M=f(M,E,O,T,g,5,s[20]),T=f(T,M,E,O,w,9,s[21]),O=f(O,T,M,E,P,14,s[22]),E=f(E,O,T,M,v,20,s[23]),M=f(M,E,O,T,x,5,s[24]),T=f(T,M,E,O,k,9,s[25]),O=f(O,T,M,E,p,14,s[26]),E=f(E,O,T,M,m,20,s[27]),M=f(M,E,O,T,A,5,s[28]),T=f(T,M,E,O,h,9,s[29]),O=f(O,T,M,E,b,14,s[30]),M=l(M,E=f(E,O,T,M,S,20,s[31]),O,T,g,4,s[32]),T=l(T,M,E,O,m,11,s[33]),O=l(O,T,M,E,_,16,s[34]),E=l(E,O,T,M,k,23,s[35]),M=l(M,E,O,T,c,4,s[36]),T=l(T,M,E,O,v,11,s[37]),O=l(O,T,M,E,b,16,s[38]),E=l(E,O,T,M,w,23,s[39]),M=l(M,E,O,T,A,4,s[40]),T=l(T,M,E,O,a,11,s[41]),O=l(O,T,M,E,p,16,s[42]),E=l(E,O,T,M,y,23,s[43]),M=l(M,E,O,T,x,4,s[44]),T=l(T,M,E,O,S,11,s[45]),O=l(O,T,M,E,P,16,s[46]),M=d(M,E=l(E,O,T,M,h,23,s[47]),O,T,a,6,s[48]),T=d(T,M,E,O,b,10,s[49]),O=d(O,T,M,E,k,15,s[50]),E=d(E,O,T,M,g,21,s[51]),M=d(M,E,O,T,S,6,s[52]),T=d(T,M,E,O,p,10,s[53]),O=d(O,T,M,E,w,15,s[54]),E=d(E,O,T,M,c,21,s[55]),M=d(M,E,O,T,m,6,s[56]),T=d(T,M,E,O,P,10,s[57]),O=d(O,T,M,E,y,15,s[58]),E=d(E,O,T,M,A,21,s[59]),M=d(M,E,O,T,v,6,s[60]),T=d(T,M,E,O,_,10,s[61]),O=d(O,T,M,E,h,15,s[62]),E=d(E,O,T,M,x,21,s[63]),o[0]=o[0]+M|0,o[1]=o[1]+E|0,o[2]=o[2]+O|0,o[3]=o[3]+T|0},_doFinalize:function(){var t=this._data,r=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32;var o=e.floor(n/4294967296),a=n;r[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),r[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(r.length+1),this._process();for(var s=this._hash,c=s.words,u=0;u<4;u++){var f=c[u];c[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,r,n,i,o,a){var s=e+(t&r|~t&n)+i+a;return(s<>>32-o)+t}function f(e,t,r,n,i,o,a){var s=e+(t&n|r&~n)+i+a;return(s<>>32-o)+t}function l(e,t,r,n,i,o,a){var s=e+(t^r^n)+i+a;return(s<>>32-o)+t}function d(e,t,r,n,i,o,a){var s=e+(r^(t|~n))+i+a;return(s<>>32-o)+t}t.MD5=o._createHelper(c),t.HmacMD5=o._createHmacHelper(c)}(Math),r.MD5)})),j((function(e,t){var r,n,i;e.exports=(n=(r=B).lib.Base,i=r.enc.Utf8,void(r.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var r=e.blockSize,n=4*r;t.sigBytes>n&&(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;u1&&void 0!==arguments[1]?arguments[1]:{};return t=G,r=e,Object.prototype.hasOwnProperty.call(t,r)||(G[e]=n),G[e]}"app-plus"===$&&(G=n._globalUniCloudObj?n._globalUniCloudObj:n._globalUniCloudObj={});var Y=["invoke","success","fail","complete"],J=X("_globalUniCloudInterceptor");function Z(e,t){J[e]||(J[e]={}),z(t)&&Object.keys(t).forEach((function(r){Y.indexOf(r)>-1&&function(e,t,r){var n=J[e][t];n||(n=J[e][t]=[]),-1===n.indexOf(r)&&"function"==typeof r&&n.push(r)}(e,r,t[r])}))}function ee(e,t){J[e]||(J[e]={}),z(t)?Object.keys(t).forEach((function(r){Y.indexOf(r)>-1&&function(e,t,r){var n=J[e][t];if(n){var i=n.indexOf(r);i>-1&&n.splice(i,1)}}(e,r,t[r])})):delete J[e]}function te(e,t){return e&&0!==e.length?e.reduce((function(e,r){return e.then((function(){return r(t)}))}),Promise.resolve()):Promise.resolve()}function re(e,t){return J[e]&&J[e][t]||[]}var ne=X("_globalUniCloudListener"),ie="response",oe="clientdb",ae="cloudfunction",se="cloudobject";function ce(e){return ne[e]||(ne[e]=[]),ne[e]}function ue(e,t){for(var r=ce(e),n=0;n-1)return;var t=n.getLaunchOptionsSync(),r=t.scene,i=t.channel;e=r||i}}catch(e){}return e}function pe(){var e=n.getLocale&&n.getLocale()||"en";if(le)return m(m({},le),{},{locale:e,LOCALE:e});var t=n.getSystemInfoSync(),r=t.deviceId,i=t.platform,o=t.osName,a=t.uniPlatform,s=t.appId;return le=m({PLATFORM:a||$,OS:o||i,APPID:s||V,DEVICEID:r,channel:he()},t),m(m({},le),{},{locale:e,LOCALE:e})}var ve,ge={sign:function(e,t){var r="";return Object.keys(e).sort().forEach((function(t){e[t]&&(r=r+"&"+t+"="+e[t])})),r=r.slice(1),D(r,t).toString()},wrappedRequest:function(e,t){return new Promise((function(r,n){t(Object.assign(e,{complete:function(e){e||(e={}),q&&"h5"===$&&e.errMsg&&0===e.errMsg.indexOf("request:fail")&&console.warn("发布H5,需要在uniCloud后台操作,绑定安全域名,否则会因为跨域问题而无法访问。教程参考:https://uniapp.dcloud.io/uniCloud/quickstart?id=useinh5");var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return n(new de({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return n(new de({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,r(i)}}))}))}},ye={request:function(e){return n.request(e)},uploadFile:function(e){return n.uploadFile(e)},setStorageSync:function(e,t){return n.setStorageSync(e,t)},getStorageSync:function(e){return n.getStorageSync(e)},removeStorageSync:function(e){return n.removeStorageSync(e)},clearStorageSync:function(){return n.clearStorageSync()}},be={"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},me=(0,o.initVueI18n)({"zh-Hans":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},"zh-Hant":{"uniCloud.init.paramRequired":"缺少参数:{param}","uniCloud.uploadFile.fileError":"filePath应为File对象"},en:be,fr:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},es:{"uniCloud.init.paramRequired":"{param} required","uniCloud.uploadFile.fileError":"filePath should be instance of File"},ja:be},"zh-Hans"),xe=me.t,we=function(){function e(t){w(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error(xe("uniCloud.init.paramRequired",{param:e}))})),this.config=Object.assign({},{endpoint:"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=ye,this._getAccessTokenPromise=null,this._getAccessTokenPromiseStatus=null}return y(e,[{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return ge.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var r=this;return Promise.resolve().then((function(){return r.hasAccessToken?t?r.requestWrapped(e):r.requestWrapped(e).catch((function(t){return new Promise((function(e,r){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?r(t):e()})).then((function(){return r.getAccessToken()})).then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))})):r.getAccessToken().then((function(){var t=r.rebuildRequest(e);return r.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=ge.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ge.sign(r,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:n}}},{key:"getAccessToken",value:function(){var e=this;return"pending"===this._getAccessTokenPromiseStatus||(this._getAccessTokenPromiseStatus="pending",this._getAccessTokenPromise=this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(t){return new Promise((function(r,n){t.result&&t.result.accessToken?(e.setAccessToken(t.result.accessToken),e._getAccessTokenPromiseStatus="fulfilled",r(e.accessToken)):(e._getAccessTokenPromiseStatus="rejected",n(new de({code:"AUTH_FAILED",message:"获取accessToken失败"})))}))}),(function(t){return e._getAccessTokenPromiseStatus="rejected",Promise.reject(t)}))),this._getAccessTokenPromise}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,r=e.url,n=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:r,formData:n,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new de({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(e){var t=this,r=e.filePath,n=e.cloudPath,i=e.fileType,o=void 0===i?"image":i,a=e.onUploadProgress,s=e.config;if("string"!==N(n))throw new de({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(n=n.trim()))throw new de({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});if(/:\/\//.test(n))throw new de({code:"INVALID_PARAM",message:"cloudPath不合法"});var c,u,f=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:f,filename:n}).then((function(e){var n=e.result;c=n.id,u="https://"+n.cdnDomain+"/"+n.ossPath;var i={url:"https://"+n.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:n.accessKeyId,Signature:n.signature,host:n.host,id:c,key:n.ossPath,policy:n.policy,success_action_status:200},fileName:"file",name:"file",filePath:r,fileType:o};return t.uploadFileToOSS(Object.assign({},i,{onUploadProgress:a}))})).then((function(){return t.reportOSSUpload({id:c})})).then((function(e){return new Promise((function(t,n){e.success?t({success:!0,filePath:r,fileID:u}):n(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,r={method:"serverless.file.resource.delete",params:JSON.stringify({id:t[0]})};return this.request(this.setupRequest(r))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,r){Array.isArray(t)&&0!==t.length||r(new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),e}(),_e={init:function(e){var t=new we(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}},Se="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(ve||(ve={}));var Ae,ke=function(){},Pe=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new de({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}var r=new Promise((function(t,r){e=function(e,n){return e?r(e):t(n)}}));return e.promise=r,e};function Me(e){return void 0===e}function Ee(e){return"[object Null]"===Object.prototype.toString.call(e)}function Oe(e){var t,r,n=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=h(n);try{for(i.s();!(r=i.n()).done;){var o=r.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()}}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Ae||(Ae={}));var Te={adapter:null,runtime:void 0},Ce=["anonymousUuidKey"],Ie=function(e){_(r,e);var t=S(r);function r(){var e;return w(this,r),e=t.call(this),Te.adapter.root.tcbObject||(Te.adapter.root.tcbObject={}),e}return y(r,[{key:"setItem",value:function(e,t){Te.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Te.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Te.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Te.adapter.root.tcbObject}}]),r}(ke);function je(e,t){switch(e){case"local":return t.localStorage||new Ie;case"none":return new Ie;default:return t.sessionStorage||new Ie}}var Be=function(){function e(t){if(w(this,e),!this._storage){this._persistence=Te.adapter.primaryStorage||t.persistence,this._storage=je(this._persistence,Te.adapter);var r="access_token_".concat(t.env),n="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:r,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:a,userInfoKey:s}}}return y(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var r=je(e,Te.adapter);for(var n in this.keys){var i=this.keys[n];if(!t||!Ce.includes(n)){var o=this._storage.getItem(i);Me(o)||Ee(o)||(r.setItem(i,o),this._storage.removeItem(i))}}this._storage=r}}},{key:"setStore",value:function(e,t,r){if(this._storage){var n={version:r||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var r=this._storage.getItem(e);return r&&r.indexOf(t)>=0?JSON.parse(r).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),De={},Le={};function Fe(e){return De[e]}var Re=function e(t,r){w(this,e),this.data=r||null,this.name=t},Ne=function(e){_(r,e);var t=S(r);function r(e,n){var i;return w(this,r),i=t.call(this,"error",{error:e,data:n}),i.error=e,i}return r}(Re),ze=new(function(){function e(){w(this,e),this._listeners={}}return y(e,[{key:"on",value:function(e,t){return function(e,t,r){r[e]=r[e]||[],r[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,r){if(r&&r[e]){var n=r[e].indexOf(t);-1!==n&&r[e].splice(n,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ne)return console.error(e.error),this;var r="string"==typeof e?new Re(e,t||{}):e,n=r.name;if(this._listens(n)){r.target=this;var i,o=this._listeners[n]?u(this._listeners[n]):[],a=h(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.call(this,r)}}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 Ue(e,t){ze.on(e,t)}function qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ze.fire(e,t)}function $e(e,t){ze.off(e,t)}var He,We="loginStateChanged",Qe="loginStateExpire",Ve="loginTypeChanged",Ke="anonymousConverted",Ge="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"}(He||(He={}));var Xe=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ye={"X-SDK-Version":"1.3.5"};function Je(e,t,r){var n=e[t];e[t]=function(t){var i={},o={};r.forEach((function(r){var n=r.call(e,t),a=n.data,s=n.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=m(m({},a),i);else for(var r in i)a.append(r,i[r])}(),t.headers=m(m({},t.headers||{}),o),n.call(e,t)}}function Ze(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:m(m({},Ye),{},{"x-seqid":e})}}var et=function(){function e(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,e),this.config=r,this._reqClass=new Te.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=Fe(this.config.env),this._localCache=(t=this.config.env,Le[t]),Je(this._reqClass,"post",[Ze]),Je(this._reqClass,"upload",[Ze]),Je(this._reqClass,"download",[Ze])}return y(e,[{key:"post",value:function(){var e=c(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=c(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"download",value:function(){var e=c(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refreshAccessToken",value:function(){var e=c(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),r=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!r){e.next=12;break}throw r;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));function t(){return e.apply(this,arguments)}return t}()},{key:"_refreshAccessToken",value:function(){var e=c(i.default.mark((function e(){var t,r,n,o,a,s,c,u,f,l,d,h,p;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,o=t.refreshTokenKey,a=t.loginTypeKey,s=t.anonymousUuidKey,this._cache.removeStore(r),this._cache.removeStore(n),c=this._cache.getStore(o),c){e.next=5;break}throw new de({message:"未登录CloudBase"});case 5:return u={refresh_token:c},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(f=e.sent,!f.data.code){e.next=21;break}if(l=f.data.code,"SIGN_PARAM_INVALID"!==l&&"REFRESH_TOKEN_EXPIRED"!==l&&"INVALID_REFRESH_TOKEN"!==l){e.next=20;break}if(this._cache.getStore(a)!==He.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==l){e.next=19;break}return d=this._cache.getStore(s),h=this._cache.getStore(o),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:d,refresh_token:h});case 17:return p=e.sent,e.abrupt("return",(this.setRefreshToken(p.refresh_token),this._refreshAccessToken()));case 19:qe(Qe),this._cache.removeStore(o);case 20:throw new de({code:f.data.code,message:"刷新access token失败:".concat(f.data.code)});case 21:if(!f.data.access_token){e.next=23;break}return e.abrupt("return",(qe(Ge),this._cache.setStore(r,f.data.access_token),this._cache.setStore(n,f.data.access_token_expire+Date.now()),{accessToken:f.data.access_token,accessTokenExpire:f.data.access_token_expire}));case 23:f.data.refresh_token&&(this._cache.removeStore(o),this._cache.setStore(o,f.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getAccessToken",value:function(){var e=c(i.default.mark((function e(){var t,r,n,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,o=t.refreshTokenKey,this._cache.getStore(o)){e.next=3;break}throw new de({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(r),s=this._cache.getStore(n),c=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,s);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}c=!1;case 12:return e.abrupt("return",(!a||!s||s2&&void 0!==arguments[2]?arguments[2]:{},n=/\?/.test(t),i="";for(var o in r)""===i?!n&&(t+="?"):i+="&",i+="".concat(o,"=").concat(encodeURIComponent(r[o]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(Se,"//tcb-api.tencentcloudapi.com/web",y),g&&(b+=g),e.next=22,this.post(m({url:b,data:u},d));case 22:if(x=e.sent,w=x.header&&x.header["x-tcb-trace"],w&&this._localCache.setStore(o,w),(200===Number(x.status)||200===Number(x.statusCode))&&x.data){e.next=26;break}throw new de({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",x);case 27:case"end":return e.stop()}}),e,this)})));function t(t,r,n){return e.apply(this,arguments)}return t}()},{key:"send",value:function(){var e=c(i.default.mark((function e(t){var r,n,o,a=arguments;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,r,{onUploadProgress:r.onUploadProgress});case 3:if(n=e.sent,"ACCESS_TOKEN_EXPIRED"!==n.data.code||-1!==Xe.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,r,{onUploadProgress:r.onUploadProgress});case 9:if(o=e.sent,!o.data.code){e.next=12;break}throw new de({code:o.data.code,message:o.data.message});case 12:return e.abrupt("return",o.data);case 13:if(!n.data.code){e.next=15;break}throw new de({code:n.data.code,message:n.data.message});case 15:return e.abrupt("return",n.data);case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}}]),e}(),tt={};function rt(e){return tt[e]}var nt=function(){function e(t){w(this,e),this.config=t,this._cache=Fe(t.env),this._request=rt(t.env)}return y(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,r=t.accessTokenKey,n=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(r),this._cache.removeStore(n),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var r=this._cache.keys,n=r.accessTokenKey,i=r.accessTokenExpireKey;this._cache.setStore(n,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=c(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),it=function(){function e(t){if(w(this,e),!t)throw new de({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=Fe(this._envId),this._request=rt(this._envId),this.setUserInfo()}return y(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new de({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 de({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}},{key:"getLinkedUidList",value:function(){var e=c(i.default.mark((function e(){var t,r,n,o;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,r=t.data,n=!1,o=r.users,e.abrupt("return",(o.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(n=!0)})),{users:o,hasPrimaryUid:n}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{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=c(i.default.mark((function e(t){var r,n,o,a,s,c,u,f;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.nickName,n=t.gender,o=t.avatarUrl,a=t.province,s=t.country,c=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:r,gender:n,avatarUrl:o,province:a,country:s,city:c});case 8:u=e.sent,f=u.data,this.setLocalUserInfo(f);case 11:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"refresh",value:function(){var e=c(i.default.mark((function e(){var t,r;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,r=t.data,e.abrupt("return",(this.setLocalUserInfo(r),r));case 5:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,r=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=r[t]})),this.location={country:r.country,province:r.province,city:r.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),ot=function(){function e(t){if(w(this,e),!t)throw new de({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Fe(t);var r=this._cache.keys,n=r.refreshTokenKey,i=r.accessTokenKey,o=r.accessTokenExpireKey,a=this._cache.getStore(n),s=this._cache.getStore(i),c=this._cache.getStore(o);this.credential={refreshToken:a,accessToken:s,accessTokenExpire:c},this.user=new it(t)}return y(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===He.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===He.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===He.WECHAT||this.loginType===He.WECHAT_OPEN||this.loginType===He.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),at=function(e){_(r,e);var t=S(r);function r(){return w(this,r),t.apply(this,arguments)}return y(r,[{key:"signIn",value:function(){var e=c(i.default.mark((function e(){var t,r,n,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,r=t.anonymousUuidKey,n=t.refreshTokenKey,o=this._cache.getStore(r)||void 0,a=this._cache.getStore(n)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:o,refresh_token:a});case 8:if(s=e.sent,!s.uuid||!s.refresh_token){e.next=20;break}return this._setAnonymousUUID(s.uuid),this.setRefreshToken(s.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return qe(We),qe(Ve,{env:this.config.env,loginType:He.ANONYMOUS,persistence:"local"}),c=new ot(this.config.env),e.next=19,c.user.refresh();case 19:return e.abrupt("return",c);case 20:throw new de({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=c(i.default.mark((function e(t){var r,n,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=this._cache.keys,n=r.anonymousUuidKey,o=r.refreshTokenKey,a=this._cache.getStore(n),s=this._cache.getStore(o),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,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 qe(Ke,{env:this.config.env}),qe(Ve,{loginType:He.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:c.refresh_token}});case 16:throw new de({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,r=t.anonymousUuidKey,n=t.loginTypeKey;this._cache.removeStore(r),this._cache.setStore(r,e),this._cache.setStore(n,He.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),r}(nt),st=function(e){_(r,e);var t=S(r);function r(){return w(this,r),t.apply(this,arguments)}return y(r,[{key:"signIn",value:function(){var e=c(i.default.mark((function e(t){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({param:"PARAM_ERROR",message:"ticket must be a string"});case 2:return r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(r)||""});case 5:if(n=e.sent,!n.refresh_token){e.next=15;break}return this.setRefreshToken(n.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return qe(We),qe(Ve,{env:this.config.env,loginType:He.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new ot(this.config.env));case 15:throw new de({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()}]),r}(nt),ct=function(e){_(r,e);var t=S(r);function r(){return w(this,r),t.apply(this,arguments)}return y(r,[{key:"signIn",value:function(){var e=c(i.default.mark((function e(t,r){var n,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"email must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:r,refresh_token:this._cache.getStore(n)||""});case 5:if(o=e.sent,a=o.refresh_token,s=o.access_token,c=o.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!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 qe(We),qe(Ve,{env:this.config.env,loginType:He.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 22:throw o.code?new de({code:o.code,message:"邮箱登录失败: ".concat(o.message)}):new de({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"activate",value:function(){var e=c(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"resetPasswordWithToken",value:function(){var e=c(i.default.mark((function e(t,r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:r}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}]),r}(nt),ut=function(e){_(r,e);var t=S(r);function r(){return w(this,r),t.apply(this,arguments)}return y(r,[{key:"signIn",value:function(){var e=c(i.default.mark((function e(t,r){var n,o,a,s,c;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof r&&(r="",console.warn("password is empty")),n=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:He.USERNAME,username:t,password:r,refresh_token:this._cache.getStore(n)||""});case 6:if(o=e.sent,a=o.refresh_token,s=o.access_token_expire,c=o.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!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 qe(We),qe(Ve,{env:this.config.env,loginType:He.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 23:throw o.code?new de({code:o.code,message:"用户名密码登录失败: ".concat(o.message)}):new de({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()}]),r}(nt),ft=function(){function e(t){w(this,e),this.config=t,this._cache=Fe(t.env),this._request=rt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ue(Ve,this._onLoginTypeChanged)}return y(e,[{key:"anonymousAuthProvider",value:function(){return new at(this.config)}},{key:"customAuthProvider",value:function(){return new st(this.config)}},{key:"emailAuthProvider",value:function(){return new ct(this.config)}},{key:"usernameAuthProvider",value:function(){return new ut(this.config)}},{key:"signInAnonymously",value:function(){var e=c(i.default.mark((function e(){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new at(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signInWithEmailAndPassword",value:function(){var e=c(i.default.mark((function e(t,r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ct(this.config).signIn(t,r));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new ut(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=c(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new at(this.config)),Ue(Ke,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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"signOut",value:function(){var e=c(i.default.mark((function e(){var t,r,n,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==He.ANONYMOUS){e.next=2;break}throw new de({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,r=t.refreshTokenKey,n=t.accessTokenKey,o=t.accessTokenExpireKey,a=this._cache.getStore(r),a){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:a});case 7:return s=e.sent,e.abrupt("return",(this._cache.removeStore(r),this._cache.removeStore(n),this._cache.removeStore(o),qe(We),qe(Ve,{env:this.config.env,loginType:He.NULL,persistence:this.config.persistence}),s));case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"signUpWithEmailAndPassword",value:function(){var e=c(i.default.mark((function e(t,r){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:r}));case 1:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"sendPasswordResetEmail",value:function(){var e=c(i.default.mark((function e(t){return i.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)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"onLoginStateChanged",value:function(e){var t=this;Ue(We,(function(){var r=t.hasLoginState();e.call(t,r)}));var r=this.hasLoginState();e.call(this,r)}},{key:"onLoginStateExpired",value:function(e){Ue(Qe,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ue(Ge,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ue(Ke,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ue(Ve,(function(){var r=t.hasLoginState();e.call(t,r)}))}},{key:"getAccessToken",value:function(){var e=c(i.default.mark((function e(){return i.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)})));function t(){return e.apply(this,arguments)}return t}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new ot(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=c(i.default.mark((function e(t){var r,n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new de({code:"PARAM_ERROR",message:"username must be a string"});case 2:return e.next=4,this._request.send("auth.isUsernameRegistered",{username:t});case 4:return r=e.sent,n=r.data,e.abrupt("return",n&&n.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=c(i.default.mark((function e(t){return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new st(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{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:m(m({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,r=e.accessTokenKey,n=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(r)+"/@@/"+n}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,r=t.loginType,n=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,r))}},{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)}}]),e}(),lt=function(e,t){t=t||Pe();var r=rt(this.config.env),n=e.cloudPath,i=e.filePath,o=e.onUploadProgress,a=e.fileType,s=void 0===a?"image":a;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){var a=e.data,c=a.url,u=a.authorization,f=a.token,l=a.fileId,d=a.cosFileId,h=e.requestId,p={key:n,signature:u,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":f};r.upload({url:c,data:p,file:i,name:n,fileType:s,onUploadProgress:o}).then((function(e){201===e.statusCode?t(null,{fileID:l,requestId:h}):t(new de({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},dt=function(e,t){t=t||Pe();var r=rt(this.config.env),n=e.cloudPath;return r.send("storage.getUploadMetadata",{path:n}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},ht=function(e,t){var r=e.fileList;if(t=t||Pe(),!r||!Array.isArray(r))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var n,i=h(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var a={fileid_list:r};return rt(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},pt=function(e,t){var r=e.fileList;t=t||Pe(),r&&Array.isArray(r)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var n,i=[],o=h(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;"object"==typeof 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 rt(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},vt=function(){var e=c(i.default.mark((function e(t,r){var n,o,a,s;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileID,e.next=3,pt.call(this,{fileList:[{fileID:n,maxAge:600}]});case 3:if(o=e.sent.fileList[0],"SUCCESS"===o.code){e.next=6;break}return e.abrupt("return",r?r(o):new Promise((function(e){e(o)})));case 6:if(a=rt(this.config.env),s=o.download_url,s=encodeURI(s),r){e.next=10;break}return e.abrupt("return",a.download({url:s}));case 10:return e.t0=r,e.next=13,a.download({url:s});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,r){return e.apply(this,arguments)}}(),gt=function(e,t){var r,n=e.name,i=e.data,o=e.query,a=e.parse,s=e.search,c=t||Pe();try{r=i?JSON.stringify(i):""}catch(n){return Promise.reject(n)}if(!n)return Promise.reject(new de({code:"PARAM_ERROR",message:"函数名不能为空"}));var u={inQuery:o,parse:a,search:s,function_name:n,request_data:r};return rt(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 de({message:"response data must be json"}))}}return c.promise})).catch((function(e){c(e)})),c.promise},yt={timeout:15e3,persistence:"session"},bt={},mt=function(){function e(t){w(this,e),this.config=t||this.config,this.authObj=void 0}return y(e,[{key:"init",value:function(t){switch(Te.adapter||(this.requestClient=new Te.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=m(m({},yt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var r,n=t||Te.adapter.primaryStorage||yt.persistence;return n!==this.config.persistence&&(this.config.persistence=n),function(e){var t=e.env;De[t]=new Be(e),Le[t]=new Be(m(m({},e),{},{persistence:"local"}))}(this.config),r=this.config,tt[r.env]=new et(r),this.authObj=new ft(this.config),this.authObj}},{key:"on",value:function(e,t){return Ue.apply(this,[e,t])}},{key:"off",value:function(e,t){return $e.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return gt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return ht.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return pt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return vt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return lt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return dt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){bt[e.name]=e}},{key:"invokeExtension",value:function(){var e=c(i.default.mark((function e(t,r){var n;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=bt[t],n){e.next=3;break}throw new de({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,n.invoke(r,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));function t(t,r){return e.apply(this,arguments)}return t}()},{key:"useAdapters",value:function(e){var t=Oe(e)||{},r=t.adapter,n=t.runtime;r&&(Te.adapter=r),n&&(Te.runtime=n)}}]),e}(),xt=new mt;function wt(e,t,r){void 0===r&&(r={});var n=/\?/.test(t),i="";for(var o in r)""===i?!n&&(t+="?"):i+="&",i+=o+"="+encodeURIComponent(r[o]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var _t=function(){function e(){w(this,e)}return y(e,[{key:"post",value:function(e){var t=e.url,r=e.data,n=e.headers;return new Promise((function(e,i){ye.request({url:wt("https:",t),data:r,method:"POST",header:n,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,r){var n=e.url,i=e.file,o=e.data,a=e.headers,s=e.fileType,c=ye.uploadFile({url:wt("https:",n),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(e){var r={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&o.success_action_status&&(r.statusCode=parseInt(o.success_action_status,10)),t(r)},fail:function(e){q&&"mp-alipay"===$&&console.warn("支付宝小程序开发工具上传腾讯云时无法准确判断是否上传成功,请使用真机测试"),r(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}(),St={setItem:function(e,t){ye.setStorageSync(e,t)},getItem:function(e){return ye.getStorageSync(e)},removeItem:function(e){ye.removeStorageSync(e)},clear:function(){ye.clearStorageSync()}},At={genAdapter:function(){return{root:{},reqClass:_t,localStorage:St,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};xt.useAdapters(At);var kt=xt,Pt=kt.init;kt.init=function(e){e.env=e.spaceId;var t=Pt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var r=t.auth;return t.auth=function(e){var t=r.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){t[e]=fe(t[e]).bind(t)})),t},t.customAuth=t.auth,t};var Mt=kt;function Et(){return{token:ye.getStorageSync("uni_id_token")||ye.getStorageSync("uniIdToken"),tokenExpired:ye.getStorageSync("uni_id_token_expired")}}function Ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,r=e.tokenExpired;t&&ye.setStorageSync("uni_id_token",t),r&&ye.setStorageSync("uni_id_token_expired",r)}function Tt(){q&&"h5"===$&&n.getStorageSync("__LAST_DCLOUD_APPID")!==V&&(n.setStorageSync("__LAST_DCLOUD_APPID",V),console.warn("检测到当前项目与上次运行到此端口的项目不一致,自动清理uni-id保存的token信息(仅开发调试时生效)"),ye.removeStorageSync("uni_id_token"),ye.removeStorageSync("uniIdToken"),ye.removeStorageSync("uni_id_token_expired"))}var Ct=function(e){_(r,e);var t=S(r);function r(){return w(this,r),t.apply(this,arguments)}return y(r,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,r){var n="Anonymous_Access_token";e.setAccessToken(n),t(n)}))}},{key:"setupRequest",value:function(e,t){var r=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};"auth"!==t&&(r.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=ge.sign(r,this.config.clientSecret);var i=pe();n["x-client-info"]=JSON.stringify(i);var o=Et(),a=o.token;return n["x-client-token"]=a,{url:this.config.requestUrl,method:"POST",data:r,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"uploadFileToOSS",value:function(e){var t=this,r=e.url,n=e.formData,i=e.name,o=e.filePath,a=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:r,formData:n,name:i,filePath:o,fileType:a,success:function(t){t&&t.statusCode<400?e(t):c(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new de({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,r=this,n=e.filePath,i=e.cloudPath,o=e.fileType,a=void 0===o?"image":o,s=e.onUploadProgress;if(!i)throw new de({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 f={url:o,formData:c,name:u,filePath:n,fileType:a};return r.uploadFileToOSS(Object.assign({},f,{onUploadProgress:s}))})).then((function(){return r.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(r,i){e.success?r({success:!0,filePath:n,fileID:t}):i(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,r={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(r))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(r))}}]),r}(we),It={init:function(e){var t=new Ct(e),r={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return r},t.customAuth=t.auth,t}};function jt(e){var t,r=e.data;t=pe();var n=JSON.parse(JSON.stringify(r||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){var i=Et(),o=i.token;o&&(n.uniIdToken=o)}return n}function Bt(e){var t=this,r=e.name,n=e.data,i=this.localAddress,o=this.localPort,a={aliyun:"aliyun",tencent:"tcb"}[this.config.provider],s=this.config.spaceId,c="http://".concat(i,":").concat(o,"/system/check-function"),u="http://".concat(i,":").concat(o,"/cloudfunctions/").concat(r);return new Promise((function(e,t){ye.request({method:"POST",url:c,data:{name:r,platform:$,provider:a,spaceId:s},timeout:3e3,success:function(t){e(t)},fail:function(){e({data:{code:"NETWORK_ERROR",message:"连接本地调试服务失败,请检查客户端是否和主机在同一局域网下,自动切换为已部署的云函数。"}})}})})).then((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.data,r=t||{},n=r.code,i=r.message;return{code:0===n?0:n||"SYS_ERR",message:i||"SYS_ERR"}})).then((function(e){var i=e.code,o=e.message;if(0!==i){switch(i){case"MODULE_ENCRYPTED":console.error("此云函数(".concat(r,")依赖加密公共模块不可本地调试,自动切换为云端已部署的云函数"));break;case"FUNCTION_ENCRYPTED":console.error("此云函数(".concat(r,")已加密不可本地调试,自动切换为云端已部署的云函数"));break;case"ACTION_ENCRYPTED":console.error(o||"需要访问加密的uni-clientDB-action,自动切换为云端环境");break;case"NETWORK_ERROR":var s="连接本地调试服务失败,请检查客户端是否和主机在同一局域网下";throw console.error(s),new Error(s);case"SWITCH_TO_CLOUD":break;default:var c="检测本地调试服务出现错误:".concat(o,",请检查网络环境或重启客户端再试");throw console.error(c),new Error(c)}return t._originCallFunction({name:r,data:n})}return new Promise((function(e,r){var i=jt.call(t,{data:n});ye.request({method:"POST",url:u,data:{provider:a,platform:$,param:i},success:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.statusCode,i=t.data;return!n||n>=400?r(new de({code:i.code||"SYS_ERR",message:i.message||"request:fail"})):e({result:i})},fail:function(e){r(new de({code:e.code||e.errCode||"SYS_ERR",message:e.message||e.errMsg||"request:fail"}))}})}))}))}var Dt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Lt=/[\\^$.*+?()[\]{}|]/g,Ft=RegExp(Lt.source);function Rt(e,t,r){return e.replace(new RegExp((n=t)&&Ft.test(n)?n.replace(Lt,"\\$&"):n,"g"),r);var n}function Nt(e){var t=e.functionName,r=e.result,n=e.logPvd;if(this.config.useDebugFunction&&r&&r.requestId){var i=JSON.stringify({spaceId:this.config.spaceId,functionName:t,requestId:r.requestId});console.log("[".concat(n,"-request]").concat(i,"[/").concat(n,"-request]"))}}function zt(e){var t=e.callFunction,r=function(r){var n=this,i=r.name;r.data=jt.call(e,{data:r.data});var o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb"}[this.config.provider];return t.call(this,r).then((function(e){return e.errCode=0,Nt.call(n,{functionName:i,result:e,logPvd:o}),Promise.resolve(e)}),(function(e){return Nt.call(n,{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,r=void 0===t?"":t,n=e.extraInfo,i=void 0===n?{}:n,o=e.formatter,a=void 0===o?[]:o,s=0;s-1||e[t].push(r)},off:function(t,r){e[t]=e[t]||[];var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}}var Ht=["db.Geo","db.command","command.aggregate"];function Wt(e,t){return Ht.indexOf("".concat(e,".").concat(t))>-1}function Qt(e){switch(N(e)){case"array":return e.map((function(e){return Qt(e)}));case"object":return e._internalType===Ut||Object.keys(e).forEach((function(t){e[t]=Qt(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}var Vt=function(){function e(t,r,n){w(this,e),this.content=t,this.prevStage=r||null,this.udb=null,this._database=n}return y(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:Qt(e.$param)}}))}}},{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:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",value:function(){return this._send("add",Array.from(arguments))}},{key:"remove",value:function(){return this._send("remove",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",value:function(){throw new Error("clientDB禁止使用set方法")}},{key:"_send",value:function(e,t){var r=this.getAction(),n=this.getCommand();if(n.$db.push({$method:e,$param:Qt(t)}),q){var i=n.$db.find((function(e){return"collection"===e.$method})),o=i&&i.$param;o&&1===o.length&&"string"==typeof i.$param[0]&&i.$param[0].indexOf(",")>-1&&console.warn("检测到使用JQL语法联表查询时,未使用getTemp先过滤主表数据,在主表数据量大的情况下可能会查询缓慢。\n- 如何优化请参考此文档:https://uniapp.dcloud.net.cn/uniCloud/jql?id=lookup-with-temp \n- 如果主表数据量很小请忽略此信息,项目发行时不会出现此提示。")}return this._database._callCloudFunction({action:r,command:n})}},{key:"useAggregate",get:function(){for(var e=this,t=!1;e.prevStage;){e=e.prevStage;var r=e.content.$method;if("aggregate"===r||"pipeline"===r){t=!0;break}}return t}},{key:"count",get:function(){if(!this.useAggregate)return function(){return this._send("count",Array.from(arguments))};var e=this;return function(){return Kt({$method:"count",$param:Qt(Array.from(arguments))},e,this._database)}}}]),e}();function Kt(e,t,r){return qt(new Vt(e,t,r),{get:function(e,t){var n="db";return e&&e.content&&(n=e.content.$method),Wt(n,t)?Kt({$method:t},e,r):function(){return Kt({$method:t,$param:Qt(Array.from(arguments))},e,r)}}})}function Gt(e){var t=e.path,r=e.method;return function(){function e(){w(this,e),this.param=Array.from(arguments)}return y(e,[{key:"toJSON",value:function(){return{$newDb:[].concat(u(t.map((function(e){return{$method:e}}))),[{$method:r,$param:this.param}])}}}]),e}()}var Xt,Yt=function(e){_(r,e);var t=S(r);function r(){return w(this,r),t.apply(this,arguments)}return y(r,[{key:"_callCloudFunction",value:function(e){var t=this,r=e.action,n=e.command,i=e.multiCommand,o=e.queryList;function a(e,t){if(i&&o)for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},r=t.uniClient,n=void 0===r?{}:r;w(this,e),this._uniClient=n,this._authCallBacks={},this._dbCallBacks={},n.isDefault&&(this._dbCallBacks=X("_globalUniCloudDatabaseCallback")),this.auth=$t(this._authCallBacks),Object.assign(this,$t(this._dbCallBacks)),this.env=qt({},{get:function(e,t){return{$env:t}}}),this.Geo=qt({},{get:function(e,t){return Gt({path:["Geo"],method:t})}}),this.serverDate=Gt({path:[],method:"serverDate"}),this.RegExp=Gt({path:[],method:"RegExp"})}return y(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var r=this._dbCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,u(t))}))}},{key:"_callbackAuth",value:function(e,t){var r=this._authCallBacks;r[e]&&r[e].forEach((function(e){e.apply(void 0,u(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),r=e.getCommand();if("getTemp"!==r.$db[r.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:r}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}());function Jt(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return qt(new e(t),{get:function(e,t){return Wt("db",t)?Kt({$method:t},null,e):function(){return Kt({$method:t,$param:Qt(Array.from(arguments))},null,e)}}})}(Yt,{uniClient:e});return this._database=r,r}}function Zt(e){e.onResponse=function(e){!function(e,t){var r=ce(e);r.includes(t)||r.push(t)}(ie,e)},e.offResponse=function(e){!function(e,t){var r=ce(e),n=r.indexOf(t);-1!==n&&r.splice(n,1)}(ie,e)}}var er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",tr=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function rr(){var e,t,r=Et().token||"",n=r.split(".");if(!r||3!==n.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=n[1],decodeURIComponent(Xt(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(r){throw new Error("获取当前用户信息出错,详细错误信息为:"+r.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}Xt="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!tr.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var r,n,i="",o=0;o>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var nr=I(j((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach((function(e,r){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+r+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function a(e,t,n){var i=n.onChooseFile,o=n.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:r,tempFilePaths:[],tempFiles:[]}:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=r;var o=t.tempFiles,a=o.length,s=0;return new Promise((function(r){for(;s=a)!o.find((function(e){return!e.url&&!e.errMsg}))&&r(t);else{var u=o[n];e.uploadFile({filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,onUploadProgress:function(e){e.index=n,e.tempFile=u,e.tempFilePath=u.path,i&&i(e)}}).then((function(e){u.url=e.fileID,n0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?a(e,function(e){var t=e.count,r=e.sizeType,a=e.sourceType,s=void 0===a?["album","camera"]:a,c=e.extension;return new Promise((function(e,a){n.chooseImage({count:t,sizeType:r,sourceType:s,extension:c,success:function(t){e(o(t,"image"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?a(e,function(e){var t=e.camera,r=e.compressed,a=e.maxDuration,s=e.sourceType,c=void 0===s?["album","camera"]:s,u=e.extension;return new Promise((function(e,s){n.chooseVideo({camera:t,compressed:r,maxDuration:a,sourceType:c,extension:u,success:function(t){var r=t.tempFilePath,n=t.duration,i=t.size,a=t.height,s=t.width;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[r],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:r,size:i,type:t.tempFile&&t.tempFile.type||"",width:s,height:a,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):a(e,function(e){var t=e.count,r=e.extension;return new Promise((function(e,a){var s=n.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(s=wx.chooseMessageFile),"function"!=typeof s)return a({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});s({type:"all",count:t,extension:r,success:function(t){e(o(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}}))),ir="manual";function or(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{}}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(r){t.push(e[r])})),t}),(function(t,r){if(e.loadtime!==ir){for(var n=!1,i=[],o=2;o0&&void 0!==arguments[0]?arguments[0]:{},r=t.getone,n=void 0!==r&&r,i=t.success,o=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var r=t.result,o=r.data,a=r.count;e.getcount&&(e.mixinDatacomPage.count=a),e.mixinDatacomHasMore=o.length0&&void 0!==arguments[0]?arguments[0]:{},n=e.database(this.spaceInfo),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,u(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 f=r.groupby||this.groupby;f&&(n=n.groupBy(f));var l=r.groupField||this.groupField;l&&(n=n.groupField(l)),!0===(void 0!==r.distinct?r.distinct:this.distinct)&&(n=n.distinct());var d=r.orderby||this.orderby;d&&(n=n.orderBy(d));var h=void 0!==r.pageCurrent?r.pageCurrent:this.mixinDatacomPage.current,p=void 0!==r.pageSize?r.pageSize:this.mixinDatacomPage.size,v=void 0!==r.getcount?r.getcount:this.getcount,g=void 0!==r.gettree?r.gettree:this.gettree,y=void 0!==r.gettreepath?r.gettreepath:this.gettreepath,b={getCount:v},m={limitLevel:void 0!==r.limitlevel?r.limitlevel:this.limitlevel,startWith:void 0!==r.startwith?r.startwith:this.startwith};return g&&(b.getTree=m),y&&(b.getTreePath=m),n=n.skip(p*(h-1)).limit(p).get(b),n}}}}function ar(e){return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},r);var o=r,a=o.customUI,s=o.loadingOptions,u=o.errorOptions,f=!a;return new Proxy({},{get:function(r,o){return function(){var r=c(i.default.mark((function r(){var l,d,h,p,v,g,y,b,m,x,w,_=arguments;return i.default.wrap((function(r){while(1)switch(r.prev=r.next){case 0:for(f&&n.showLoading({title:s.title,mask:s.mask}),d=_.length,h=new Array(d),p=0;p0&&void 0!==u[0]?u[0]:{},r=t.title,o=t.content,a=t.showCancel,s=t.cancelText,c=t.confirmText,e.abrupt("return",new Promise((function(e,t){n.showModal({title:r,content:o,showCancel:a,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:y,showCancel:u.retry,cancelText:"取消",confirmText:u.retry?"重试":"确定"});case 22:if(m=r.sent,x=m.confirm,!u.retry||!x){r.next=26;break}return r.abrupt("return",a.apply(void 0,h));case 26:throw w=new de({code:g,message:y,requestId:l.requestId}),w.detail=l.result,ue(ie,{type:se,content:w}),w;case 28:return r.abrupt("return",(ue(ie,{type:se,content:l.result}),l.result));case 29:case"end":return r.stop()}}),r,null,[[2,8]])})));function a(){return r.apply(this,arguments)}return a}()}})}}function sr(e,t){return cr.apply(this,arguments)}function cr(){return cr=c(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n="http://".concat(t,":").concat(r,"/system/ping"),e.prev=1,e.next=4,a={url:n,timeout:500},new Promise((function(e,t){ye.request(m(m({},a),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return o=e.sent,e.abrupt("return",!(!o.data||0!==o.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),cr.apply(this,arguments)}function ur(e){if(!e.initUniCloudStatus||"rejected"===e.initUniCloudStatus){var t,r=Promise.resolve();t=1,r=new Promise((function(e,r){setTimeout((function(){e()}),t)})),e.isReady=!1,e.isDefault=!1;var n=e.auth();e.initUniCloudStatus="pending",e.initUniCloud=r.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()})).then((function(){if(!q)return Promise.resolve();if(q&&e.debugInfo){var t=e.debugInfo,r=t.address,n=t.servePort;return function(){var e=c(i.default.mark((function e(t,r){var n,o,a;return i.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:o=0;case 1:if(!(o0&&void 0!==arguments[0]?arguments[0]:{},r=t.address,n=t.port;if(!q)return Promise.resolve();if(r)e.localAddress=r,e.localPort=n;else if(e.debugInfo){var i=console["app-plus"===$?"error":"warn"],o="";"remote"===e.debugInfo.initialLaunchType?(e.debugInfo.forceRemote=!0,o="当前客户端和HBuilderX不在同一局域网下(或其他网络原因无法连接HBuilderX),uniCloud本地调试服务不对当前客户端生效。\n- 如果不使用uniCloud本地调试服务,请直接忽略此信息。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs"):o="无法连接uniCloud本地调试服务,请检查当前客户端是否与主机在同一局域网下。\n- 如需使用uniCloud本地调试服务,请将客户端与主机连接到同一局域网下并重新运行到客户端。\n- 如果在HBuilderX开启的状态下切换过网络环境,请重启HBuilderX后再试\n- 检查系统防火墙是否拦截了HBuilderX自带的nodejs","h5"===$&&(o+="\n- 部分浏览器开启节流模式之后访问本地地址受限,请检查是否启用了节流模式"),i(o)}})).then((function(){Tt(),e.isReady=!0,e.initUniCloudStatus="fulfilled"})).catch((function(t){console.error(t),e.initUniCloudStatus="rejected"}))}}var fr=new(function(){function e(){w(this,e)}return y(e,[{key:"init",value:function(e){var t={},r=!1!==e.debugFunction&&q&&("h5"===$&&navigator.userAgent.indexOf("HBuilderX")>0||"app-plus"===$);switch(e.provider){case"tcb":case"tencent":t=Mt.init(Object.assign(e,{useDebugFunction:r}));break;case"aliyun":t=_e.init(Object.assign(e,{useDebugFunction:r}));break;case"private":t=It.init(Object.assign(e,{useDebugFunction:r}));break;default:throw new Error("未提供正确的provider参数")}var n=H;return q&&n&&!n.code&&(t.debugInfo=n),ur(t),t.reInit=function(){ur(this)},zt(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),Jt(t),function(e){e.getCurrentUserInfo=rr,e.chooseAndUploadFile=nr.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return or(e)}}),e.importObject=ar(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var r=t[e];t[e]=function(){return t.reInit(),r.apply(t,Array.from(arguments))},t[e]=fe(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=W,t={};if(1===e.length)t=e[0],fr=fr.init(t),fr.isDefault=!0;else{var r,n=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];r=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":Q?"应用未关联服务空间,请在uniCloud目录右键关联服务空间":"uni-app cli项目内使用uniCloud需要使用HBuilderX的运行菜单运行项目,且需要在uniCloud目录关联服务空间",n.forEach((function(e){fr[e]=function(){return console.error(r),Promise.reject(new de({code:"SYS_ERR",message:r}))}}))}Object.assign(fr,{get mixinDatacom(){return or(fr)}}),Zt(fr),fr.addInterceptor=Z,fr.removeInterceptor=ee,q&&"h5"===$&&(window.uniCloud=fr)})();var lr=fr;t.default=lr}).call(this,r(2),r(1)["default"])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={appid:"__UNI__74CA2D5"};t.default=n},function(e,t,r){"use strict";function n(e,t){return c(e)||s(e,t)||o(e,t)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r1?t-1:0),n=1;ne.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)*r.eachSpacing);var s=t;return t>=0?(s=0,e.uevent.trigger("scrollLeft"),e.scrollOption.position="left",i.xAxis.scrollPosition="left"):Math.abs(t)>=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 g(e,t,r){function n(e){while(e<0)e+=2*Math.PI;while(e>2*Math.PI)e-=2*Math.PI;return e}return e=n(e),t=n(t),r=n(r),t>r&&(r+=2*Math.PI,e=t&&e<=r}function y(e,t){function r(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].y>=Math.max(e[t-1].y,e[t+1].y)||e[t].y<=Math.min(e[t-1].y,e[t+1].y))}function n(e,t){return!(!e[t-1]||!e[t+1])&&(e[t].x>=Math.max(e[t-1].x,e[t+1].x)||e[t].x<=Math.min(e[t-1].x,e[t+1].x))}var i=.2,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 f=e.length-1;c=e[f].x-(e[f].x-e[f-1].x)*o,u=e[f].y-(e[f].y-e[f-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 r(e,t+1)&&(u=e[t+1].y),r(e,t)&&(s=e[t].y),n(e,t+1)&&(c=e[t+1].x),n(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 b(e,t,r){return{x:r.x+e,y:r.y-t}}function m(e,t){if(t)while(l.isCollision(e,t))e.start.x>0?e.start.y--:e.start.x<0||e.start.y>0?e.start.y++:e.start.y--;return e}function x(e,t,r){var n=[];if(e.length>0&&e[0].data.constructor.toString().indexOf("Array")>-1){t._pieSeries_=e;for(var i=e[0].data,o=0;o=1e4?1e3:n>=1e3?100:n>=100?10:n>=10?5:n>=1?1:n>=.1?.1:n>=.01?.01:n>=.001?.001:n>=1e-4?1e-4:n>=1e-5?1e-5:1e-6,{minRange:h(e,"lower",r),maxRange:h(t,"upper",r)}}function A(e,t,r){var n=0;if(e=String(e),!1!==r&&void 0!==r&&r.setFontSize&&r.measureText)return r.setFontSize(t),r.measureText(e).width;e=e.split("");for(var i=0;i-1;if(o)for(var a=B(e),s=0;s5&&void 0!==arguments[5]?arguments[5]:{},a=t.chartData.calPoints?t.chartData.calPoints:[],s={};if(n.length>0){for(var c=[],u=0;u0&&(n=i[r]),{text:o.formatter?o.formatter(e,n,r,t):e.name+": "+e.data,color:e.color}})),d={x:Math.round(s.x),y:Math.round(s.y)};return{textList:l,offset:d}}function I(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.chartData.xAxisPoints[r]+t.chartData.eachSpacing/2,a=e.map((function(e){return{text:i.formatter?i.formatter(e,n[r],r,t):e.name+": "+e.data,color:e.color,disableLegend:!!e.disableLegend}}));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 j(e,t,r,n,i,o){var a=r.chartData.calPoints,s=o.color.upFill,c=o.color.downFill,u=[s,s,c,s],f=[];t.map((function(t){0==n?t.data[1]-t.data[0]<0?u[1]=c:u[1]=s:(t.data[0]e[n-1][1]&&(u[2]=s),t.data[3]4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=r.chartData.eachSpacing/2,s=[];if(t&&t.length>0){if(r.categories){for(var c=1;ct&&(o.index=r)}));else{for(var u=Array(t.length),f=0;f4&&void 0!==arguments[4]?arguments[4]:0,o={index:-1,group:[]},a=r.chartData.eachSpacing/2,s=r.chartData.yAxisPoints;return t&&t.length>0&&N(e,r,n)&&s.forEach((function(t,r){e.y+i+a>t&&(o.index=r)})),o}function F(e,t,r){var n=-1,i=0;if(R(e,t.area)){for(var o=t.points,a=-1,s=0,c=o.length;sl[0]-i&&e.xl[1]-i&&e.yt.start.x&&e.xt.start.y&&e.y=t.area[3]-10&&e.y>=t.area[0]&&e.y<=t.height-t.area[2]}function z(e,t,r){var n=2*Math.PI/r,i=-1;if(Q(e,t.center,t.radius)){var o=function(e){return e<0&&(e+=2*Math.PI),e>2*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 r=o(e-n/2),s=o(e+n/2);s=r&&a<=s||a+2*Math.PI>=r&&a+2*Math.PI<=s)&&(i=t)}))}return i}function U(e,t){for(var r=-1,n=0,i=t.series.length;no.funnelArea[0]&&e.xo.funnelArea[1]&&e.yo.area[0]&&e.xo.area[1]&&e.yt.width-t.area[1]-t.area[3]?(d.push(v),p.push(h-t.legend.itemGap*t.pix),h=m,v=[y]):(h+=m,v.push(y))}if(v.length){d.push(v),p.push(h-t.legend.itemGap*t.pix),o.widthArr=p;var x=Math.max.apply(null,p);switch(t.legend.float){case"left":o.area.start.x=t.area[3],o.area.end.x=t.area[3]+x+2*a;break;case"right":o.area.start.x=t.width-t.area[1]-x-2*a,o.area.end.x=t.width-t.area[1];break;default:o.area.start.x=(t.width-x)/2-a,o.area.end.x=(t.width+x)/2+a}o.area.width=x+2*a,o.area.wholeWidth=x+2*a,o.area.height=d.length*l+2*a,o.area.wholeHeight=d.length*l+2*a+2*s,o.points=d}}else{var w=e.length,_=t.height-t.area[0]-t.area[2]-2*s-2*a,S=Math.min(Math.floor(_/l),w);switch(o.area.height=S*l+2*a,o.area.wholeHeight=S*l+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 k=w%S===0?w/S:Math.floor(w/S+1),P=[],M=0;MC&&(C=j)}o.widthArr.push(C),o.heightArr.push(T.length*l+2*a)}for(var B=0,D=0;D4&&void 0!==arguments[4]?arguments[4]:-1;i="stack"==n?P(e,t.categories.length):k(e);var a=[];i=i.filter((function(e){return"object"===typeof e&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),i.map((function(e){"object"===typeof e?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){a.push(e)})):a.push(e[0]):a.push(e.value):a.push(e)}));var s=0,c=0;if(a.length>0&&(s=Math.min.apply(this,a),c=Math.max.apply(this,a)),o>-1?("number"===typeof t.xAxis.data[o].min&&(s=Math.min(t.xAxis.data[o].min,s)),"number"===typeof t.xAxis.data[o].max&&(c=Math.max(t.xAxis.data[o].max,c))):("number"===typeof t.xAxis.min&&(s=Math.min(t.xAxis.min,s)),"number"===typeof t.xAxis.max&&(c=Math.max(t.xAxis.max,c))),s===c){var u=c||10;c+=u}for(var f=s,l=c,d=[],h=(l-f)/t.xAxis.splitNumber,p=0;p<=t.xAxis.splitNumber;p++)d.push(f+h*p);return d}function Y(e,t,r,n){var i=f({},{type:""},t.extra.bar),o={angle:0,xAxisHeight:r.xAxisHeight};o.ranges=X(e,t,r,i.type),o.rangesFormat=o.ranges.map((function(e){return e=l.toFixed(e,2),e}));var a=o.ranges.map((function(e){return e=l.toFixed(e,2),e}));o=Object.assign(o,de(a,t,r));var s=o.eachSpacing,c=a.map((function(e){return A(e,t.xAxis.fontSize*t.pix||r.fontSize,n)})),u=Math.max.apply(this,c);return u+2*r.xAxisTextPadding>s&&(o.angle=45*Math.PI/180,o.xAxisHeight=2*r.xAxisTextPadding+u*Math.sin(o.angle)),!0===t.xAxis.disabled&&(o.xAxisHeight=0),o}function J(e,t,r,n,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,k(n))),c=[],u=function(i){var a=n[i],u={};u.color=a.color,u.legendShape=a.legendShape,u.pointShape=a.pointShape,u.data=[],a.data.forEach((function(n,i){var a={};a.angle=e[i],a.proportion=n/s,a.value=n,a.position=b(r*a.proportion*o*Math.cos(a.angle),r*a.proportion*o*Math.sin(a.angle),t),u.data.push(a)})),c.push(u)},f=0;f2&&void 0!==arguments[2]?arguments[2]:1,n=0,i=0,o=0;o4&&void 0!==arguments[4]?arguments[4]:1;e=e.sort((function(e,t){return parseInt(t.data)-parseInt(e.data)}));for(var 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==r&&(r=.999999);for(var n=0;n=2&&(i._proportion_=i._proportion_%2)}return e}function ne(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;1==r&&(r=.999999);for(var n=0;n=2&&(i._proportion_=i._proportion_%2)}return e}function ie(e,t,r){for(var n=t-r+1,i=t,o=0;o=2&&(e[o]._endAngle_=e[o]._endAngle_%2),i=e[o]._endAngle_;return e}function oe(e,t,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=0;i=r.oldData?o._proportion_=(o._endAngle_-o._oldAngle_)*n+r.oldAngle:o._proportion_=o._oldAngle_-(o._oldAngle_-o._endAngle_)*n,o._proportion_>=2&&(o._proportion_=o._proportion_%2)}return e}function ae(e,t,r,n){e=Z(e);for(var i=0,o=0;o0&&(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+=(n+.5-r/2)*(e.width+i),e}))}function ce(e,t,r,n,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/r),a=Math.min(a,t/r),e.width=Math.ceil((t-2*a-i*(r-1))/r),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+=(n+.5-r/2)*(e.width+i),e}))}function ue(e,t,r,n,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)),n>0&&(e.width-=a),e)}))}function fe(e,t,r,n,i,o,a){var s=o.extra.column.categoryGap*o.pix||0;return e.map((function(e,r){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 le(e,t,r,n,i,o,a){var s=o.extra.bar.categoryGap*o.pix||0;return e.map((function(e,r){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 de(e,t,r){var n=t.width-t.area[1]-t.area[3],i=t.enableScroll?Math.min(t.xAxis.itemCount,e.length):e.length;("line"==t.type||"area"==t.type||"scatter"==t.type||"bubble"==t.type||"bar"==t.type)&&i>1&&"justify"==t.xAxis.boundaryGap&&(i-=1);var 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=n/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 he(e,t,r,n,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 f=[];e.forEach((function(e,c){var l={};l.x=n[a]+Math.round(i/2);var d=e.value||e,h=u*(d-t)/(r-t);h*=s,l.y=o.height-Math.round(h)-o.area[2],f.push(l)})),c.push(f)}})),c}function pe(e,t,r,n,i,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:1,c="center";"line"!=o.type&&"area"!=o.type&&"scatter"!=o.type&&"bubble"!=o.type||(c=o.xAxis.boundaryGap);var u=[],f=o.height-o.area[0]-o.area[2],l=o.width-o.area[1]-o.area[3];return e.forEach((function(e,a){if(null===e)u.push(null);else{var d={};d.color=e.color,d.x=n[a];var h,p,v,g=e;if("object"===typeof e&&null!==e)if(e.constructor.toString().indexOf("Array")>-1)h=[].concat(o.chartData.xAxisData.ranges),p=h.shift(),v=h.pop(),g=e[1],d.x=o.area[3]+l*(e[0]-p)/(v-p),"bubble"==o.type&&(d.r=e[2],d.t=e[3]);else g=e.value;"center"==c&&(d.x+=i/2);var y=f*(g-t)/(r-t);y*=s,d.y=o.height-y-o.area[2],u.push(d)}})),u}function ve(e,t,r,n,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],f=(o.width,o.area[1],o.area[3],i*a.widthRatio);return e.forEach((function(e,a){if(null===e)c.push(null);else{var l={};l.color=e.color,l.x=n[a],l.x+=i/2;var d=e.data,h=u*(d-t)/(r-t);h*=s,l.y=o.height-h-o.area[2],l.value=d,l.width=f,c.push(l)}})),c}function ge(e,t,r,n,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],o.width-o.area[1]-o.area[3]);return e.forEach((function(e,i){if(null===e)c.push(null);else{var a={};a.color=e.color,a.y=n[i];var f=e;"object"===typeof e&&null!==e&&(f=e.value);var l=u*(f-t)/(r-t);l*=s,a.height=l,a.value=f,a.x=l+o.area[3],c.push(a)}})),c}function ye(e,t,r,n,i,o,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],l=o.height-o.area[0]-o.area[2];return e.forEach((function(e,a){if(null===e)f.push(null);else{var d={};if(d.color=e.color,d.x=n[a]+Math.round(i/2),s>0){for(var h=0,p=0;p<=s;p++)h+=c[p].data[a];var v=h-e,g=l*(h-t)/(r-t),y=l*(v-t)/(r-t)}else h=e,g=l*(h-t)/(r-t),y=0;var b=y;g*=u,b*=u,d.y=o.height-Math.round(g)-o.area[2],d.y0=o.height-Math.round(b)-o.area[2],f.push(d)}})),f}function be(e,t,r,n,i,o,a,s,c){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:1,f=[],l=o.width-o.area[1]-o.area[3];return e.forEach((function(e,i){if(null===e)f.push(null);else{var a={};if(a.color=e.color,a.y=n[i],s>0){for(var d=0,h=0;h<=s;h++)d+=c[h].data[i];var p=d-e,v=l*(d-t)/(r-t),g=l*(p-t)/(r-t)}else d=e,v=l*(d-t)/(r-t),g=0;var y=g;v*=u,y*=u,a.height=v-y,a.x=o.area[3]+v,a.x0=o.area[3]+y,f.push(a)}})),f}function me(e,t,r,n,i){var o;o="stack"==n?P(e,t.categories.length):k(e);var a=[];o=o.filter((function(e){return"object"===typeof e&&null!==e?e.constructor.toString().indexOf("Array")>-1?null!==e:null!==e.value:null!==e})),o.map((function(e){"object"===typeof e?e.constructor.toString().indexOf("Array")>-1?"candle"==t.type?e.map((function(e){a.push(e)})):a.push(e[1]):a.push(e.value):a.push(e)}));var s=i.min||0,c=i.max||0;a.length>0&&(s=Math.min.apply(this,a),c=Math.max.apply(this,a)),s===c&&(0==c?c=10:s=0);for(var u=S(s,c),f=void 0===i.min||null===i.min?u.minRange:i.min,l=void 0===i.max||null===i.max?u.maxRange:i.max,d=[],h=(l-f)/t.yAxis.splitNumber,p=0;p<=t.yAxis.splitNumber;p++)d.push(f+h*p);return d.reverse()}function xe(e,t,r,n){var i=f({},{type:""},t.extra.column),o=t.yAxis.data.length,a=new Array(o);if(o>0){for(var s=0;s-1?o[s][1]:o[s].value);var f=t.formatter?t.formatter(u,s,t,i):u;n.setTextAlign("center"),n.fillText(String(f),e.x,e.y-4+a*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Me(e,t,r,n,i){t.data;var o=t.textOffset?t.textOffset:0;e.forEach((function(e,a){if(null!==e){n.beginPath();var s=t[a].textSize?t[a].textSize*i.pix:r.fontSize;n.setFontSize(s),n.setFillStyle(t[a].textColor||i.fontColor);var c=e.value,u=t[a].formatter?t[a].formatter(c,a,t,i):c;n.setTextAlign("center"),n.fillText(String(u),e.x,e.y-4+o*i.pix),n.closePath(),n.stroke(),n.setTextAlign("left")}}))}function Ee(e,t,r,n,i){var o=t.data;t.textOffset&&t.textOffset;e.forEach((function(e,a){if(null!==e){n.beginPath();var s=t.textSize?t.textSize*i.pix:r.fontSize;n.setFontSize(s),n.setFillStyle(t.textColor||i.fontColor);var c=o[a];"object"===typeof o[a]&&null!==o[a]&&(c=o[a].value);var u=t.formatter?t.formatter(c,a,t,i):c;n.setTextAlign("left"),n.fillText(String(u),e.x+4*i.pix,e.y+s/2-3),n.closePath(),n.stroke()}}))}function Oe(e,t,r,n,i,o){t-=e.width/2+e.labelOffset*n.pix,t=t<10?10:t;for(var a=e.startAngle-e.endAngle+1,s=a/e.splitLine.splitNumber,c=e.endNumber-e.startNumber,u=c/e.splitLine.splitNumber,f=e.startAngle,l=e.startNumber,d=0;d=2&&(f%=2),l+=u}}function Te(e,t,r,n,i,o){var a=n.extra.radar||{};e.forEach((function(e,s){if(!0===a.labelPointShow&&""!==n.categories[s]){var c={x:t*Math.cos(e),y:t*Math.sin(e)},u=b(c.x,c.y,r);o.setFillStyle(a.labelPointColor),o.beginPath(),o.arc(u.x,u.y,a.labelPointRadius*n.pix,0,2*Math.PI,!1),o.closePath(),o.fill()}var f={x:(t+i.radarLabelTextMargin*n.pix)*Math.cos(e),y:(t+i.radarLabelTextMargin*n.pix)*Math.sin(e)},d=b(f.x,f.y,r),h=d.x,p=d.y;l.approximatelyEqual(f.x,0)?h-=A(n.categories[s]||"",i.fontSize,o)/2:f.x<0&&(h-=A(n.categories[s]||"",i.fontSize,o)),o.beginPath(),o.setFontSize(i.fontSize),o.setFillStyle(a.labelColor||n.fontColor),o.fillText(n.categories[s]||"",h,p+i.fontSize/2),o.closePath(),o.stroke()}))}function Ce(e,t,r,n,i,o){for(var a=r.pieChartLinePadding,s=[],c=null,u=e.map((function(r,n){var i=r.formatter?r.formatter(r,n,e,t):l.toFixed(100*r._proportion_.toFixed(4))+"%";i=r.labelText?r.labelText:i;var o=2*Math.PI-(r._start_+2*Math.PI*r._proportion_/2);r._rose_proportion_&&(o=2*Math.PI-(r._start_+2*Math.PI*r._rose_proportion_/2));var a=r.color,s=r._radius_;return{arc:o,text:i,color:a,radius:s,textColor:r.textColor,textSize:r.textSize,labelShow:r.labelShow}})),f=0;f=0?h+r.pieChartTextPadding:h-r.pieChartTextPadding,x=p,w=A(d.text,d.textSize*t.pix||r.fontSize,n),_=x;c&&l.isSameXCoordinateArea(c.start,{x:y})&&(_=y>0?Math.min(x,c.start.y):h<0||x>0?Math.max(x,c.start.y):Math.min(x,c.start.y)),y<0&&(y-=w);var S={lineStart:{x:v,y:g},lineEnd:{x:h,y:p},start:{x:y,y:_},width:w,height:r.fontSize,text:d.text,color:d.color,textColor:d.textColor,textSize:d.textSize};c=m(S,c),s.push(c)}for(var k=0;ki?i:o.activeWidth;var a=t.area[0],s=t.height-t.area[2];n.beginPath(),n.setFillStyle(d(o.activeBgColor,o.activeBgOpacity)),n.rect(e-o.activeWidth/2,a,o.activeWidth,s-a),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Le(e,t,r,n,i){var o=f({},{activeBgColor:"#000000",activeBgOpacity:.08},t.extra.bar),a=t.area[3],s=t.width-t.area[1];n.beginPath(),n.setFillStyle(d(o.activeBgColor,o.activeBgOpacity)),n.rect(a,e-i/2,s-a,i),n.closePath(),n.fill(),n.setFillStyle("#FFFFFF")}function Fe(e,t,r,n,i,o,a){var s=f({},{showBox:!0,showArrow:!0,showCategory:!1,bgColor:"#000000",bgOpacity:.7,borderColor:"#000000",borderWidth:0,borderRadius:0,borderOpacity:.7,fontColor:"#FFFFFF",splitLine:!0},r.extra.tooltip);1==s.showCategory&&r.categories&&e.unshift({text:r.categories[r.tooltip.index],color:null});var c=4*r.pix,u=5*r.pix,l=s.showArrow?8*r.pix:0,h=!1;"line"!=r.type&&"mount"!=r.type&&"area"!=r.type&&"candle"!=r.type&&"mix"!=r.type||1==s.splitLine&&Ie(r.tooltip.offset.x,r,n,i),t=f({x:0,y:0},t),t.y-=8*r.pix;var p=e.map((function(e){return A(e.text,n.fontSize,i)})),v=c+u+4*n.toolTipPadding+Math.max.apply(null,p),g=2*n.toolTipPadding+e.length*n.toolTipLineHeight;if(0!=s.showBox){t.x-Math.abs(r._scrollDistance_||0)+l+v>r.width&&(h=!0),g+t.y>r.height&&(t.y=r.height-g),i.beginPath(),i.setFillStyle(d(s.bgColor||n.toolTipBackground,s.bgOpacity||n.toolTipOpacity)),i.setLineWidth(s.borderWidth*r.pix),i.setStrokeStyle(d(s.borderColor,s.borderOpacity));var y=s.borderRadius;h?(s.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x-l,t.y+10*r.pix+5*r.pix)),i.arc(t.x-l-y,t.y+g-y,y,0,Math.PI/2,!1),i.arc(t.x-l-Math.round(v)+y,t.y+g-y,y,Math.PI/2,Math.PI,!1),i.arc(t.x-l-Math.round(v)+y,t.y+y,y,-Math.PI,-Math.PI/2,!1),i.arc(t.x-l-y,t.y+y,y,-Math.PI/2,0,!1),s.showArrow&&(i.lineTo(t.x-l,t.y+10*r.pix-5*r.pix),i.lineTo(t.x,t.y+10*r.pix))):(s.showArrow&&(i.moveTo(t.x,t.y+10*r.pix),i.lineTo(t.x+l,t.y+10*r.pix-5*r.pix)),i.arc(t.x+l+y,t.y+y,y,-Math.PI,-Math.PI/2,!1),i.arc(t.x+l+Math.round(v)-y,t.y+y,y,-Math.PI/2,0,!1),i.arc(t.x+l+Math.round(v)-y,t.y+g-y,y,0,Math.PI/2,!1),i.arc(t.x+l+y,t.y+g-y,y,Math.PI/2,Math.PI,!1),s.showArrow&&(i.lineTo(t.x+l,t.y+10*r.pix+5*r.pix),i.lineTo(t.x,t.y+10*r.pix))),i.closePath(),i.fill(),s.borderWidth>0&&i.stroke(),e.forEach((function(e,r){if(null!==e.color){i.beginPath(),i.setFillStyle(e.color);var o=t.x+l+2*n.toolTipPadding,a=t.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*r+n.toolTipPadding+1;h&&(o=t.x-v-l+2*n.toolTipPadding),i.fillRect(o,a,c,n.fontSize),i.closePath()}})),e.forEach((function(e,r){var o=t.x+l+2*n.toolTipPadding+c+u;h&&(o=t.x-v-l+2*n.toolTipPadding+ +c+u);var a=t.y+(n.toolTipLineHeight-n.fontSize)/2+n.toolTipLineHeight*r+n.toolTipPadding;i.beginPath(),i.setFontSize(n.fontSize),i.setFillStyle(s.fontColor),i.fillText(e.text,o,a+n.fontSize),i.closePath(),i.stroke()}))}}function Re(e,t,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,u=f({},{type:"group",width:c/2,meterBorder:4,meterFillColor:"#FFFFFF",barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.column),l=[];i.save();var h=-2,p=s.length+2;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(i.translate(t._scrollDistance_,0),h=Math.floor(-t._scrollDistance_/c)-2,p=h+t.xAxis.itemCount+4),t.tooltip&&t.tooltip.textList&&t.tooltip.textList.length&&1===o&&De(t.tooltip.offset.x,t,r,i,c),u.customColor=_(u.linearType,u.customColor,e,r),e.forEach((function(a,f){var v,g,y;v=[].concat(t.chartData.yAxisData.ranges[a.index]),g=v.pop(),y=v.shift();var b=a.data;switch(u.type){case"group":var m=pe(b,g,y,s,c,t,r,o),x=ye(b,g,y,s,c,t,r,f,e,o);l.push(x),m=se(m,c,e.length,f,r,t);for(var w=0;wh&&wF?F:j,B=B>F?F:B,D=D>F?F:D,L=L>F?F:L,j=j<0?0:j,B=B<0?0:B,D=D<0?0:D,L=L<0?0:L,i.arc(E+j,O+j,j,-Math.PI,-Math.PI/2),i.arc(E+T-B,O+B,B,-Math.PI/2,0),i.arc(E+T-D,O+C-D,D,0,Math.PI/2),i.arc(E+L,O+C-L,L,Math.PI/2,Math.PI)}else i.moveTo(S,_.y),i.lineTo(S+_.width,_.y),i.lineTo(S+_.width,t.height-t.area[2]),i.lineTo(S,t.height-t.area[2]),i.lineTo(S,_.y),i.setLineWidth(1),i.setStrokeStyle(P);i.setFillStyle(k),i.closePath(),i.fill()}}break;case"stack":m=ye(b,g,y,s,c,t,r,f,e,o);l.push(m),m=fe(m,c,e.length,f,r,t,e);for(var R=0;Rh&&R0&&(A-=z),i.setFillStyle(k),i.moveTo(S,N.y),i.fillRect(S,N.y,N.width,A),i.closePath(),i.fill()}}break;case"meter":m=pe(b,g,y,s,c,t,r,o);l.push(m),m=ue(m,c,e.length,f,r,t,u.meterBorder);for(var U=0;Uh&&U0&&(i.setStrokeStyle(a.color),i.setLineWidth(u.meterBorder*t.pix)),0==f?i.setFillStyle(u.meterFillColor):i.setFillStyle(q.color||a.color);S=q.x-q.width/2,A=t.height-q.y-t.area[2];if(u.barBorderRadius&&4===u.barBorderRadius.length||!0===u.barBorderCircle){var $=S,H=q.y,W=q.width,Q=t.height-t.area[2]-q.y;u.barBorderCircle&&(u.barBorderRadius=[W/2,W/2,0,0]);var V=n(u.barBorderRadius,4),K=V[0],G=V[1],X=V[2],Y=V[3],J=Math.min(W/2,Q/2);K=K>J?J:K,G=G>J?J:G,X=X>J?J:X,Y=Y>J?J:Y,K=K<0?0:K,G=G<0?0:G,X=X<0?0:X,Y=Y<0?0:Y,i.arc($+K,H+K,K,-Math.PI,-Math.PI/2),i.arc($+W-G,H+G,G,-Math.PI/2,0),i.arc($+W-X,H+Q-X,X,0,Math.PI/2),i.arc($+Y,H+Q-Y,Y,Math.PI/2,Math.PI),i.fill()}else i.moveTo(S,q.y),i.lineTo(S+q.width,q.y),i.lineTo(S+q.width,t.height-t.area[2]),i.lineTo(S,t.height-t.area[2]),i.lineTo(S,q.y),i.fill();0==f&&u.meterBorder>0&&(i.closePath(),i.stroke())}}break}})),!1!==t.dataLabel&&1===o&&e.forEach((function(n,a){var f,l,d;f=[].concat(t.chartData.yAxisData.ranges[n.index]),l=f.pop(),d=f.shift();var h=n.data;switch(u.type){case"group":var p=pe(h,l,d,s,c,t,r,o);p=se(p,c,e.length,a,r,t),Pe(p,n,r,i,t);break;case"stack":p=ye(h,l,d,s,c,t,r,a,e,o);Pe(p,n,r,i,t);break;case"meter":p=pe(h,l,d,s,c,t,r,o);Pe(p,n,r,i,t);break}})),i.restore(),{xAxisPoints:s,calPoints:l,eachSpacing:c}}function Ne(e,t,r,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,u=f({},{type:"mount",widthRatio:1,borderWidth:1,barBorderCircle:!1,barBorderRadius:[],linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mount);u.widthRatio=u.widthRatio<=0?0:u.widthRatio,u.widthRatio=u.widthRatio>=2?2:u.widthRatio;i.save();var l,h,p,v=-2,g=s.length+2;t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(i.translate(t._scrollDistance_,0),v=Math.floor(-t._scrollDistance_/c)-2,g=v+t.xAxis.itemCount+4),u.customColor=_(u.linearType,u.customColor,e,r),l=[].concat(t.chartData.yAxisData.ranges[0]),h=l.pop(),p=l.shift();var y=ve(e,h,p,s,c,t,u,o);switch(u.type){case"bar":for(var b=0;bv&&bD?D:C,I=I>D?D:I,j=j>D?D:j,B=B>D?D:B,C=C<0?0:C,I=I<0?0:I,j=j<0?0:j,B=B<0?0:B,i.arc(P+C,M+C,C,-Math.PI,-Math.PI/2),i.arc(P+E-I,M+I,I,-Math.PI/2,0),i.arc(P+E-j,M+O-j,j,0,Math.PI/2),i.arc(P+B,M+O-B,B,Math.PI/2,Math.PI)}else i.moveTo(x,m.y),i.lineTo(x+m.width,m.y),i.lineTo(x+m.width,t.height-t.area[2]),i.lineTo(x,t.height-t.area[2]),i.lineTo(x,m.y);i.setStrokeStyle(A),i.setFillStyle(S),u.borderWidth>0&&(i.setLineWidth(u.borderWidth*t.pix),i.closePath(),i.stroke()),i.fill()}}break;case"triangle":for(var L=0;Lv&&L0&&(i.setLineWidth(u.borderWidth*t.pix),i.stroke()),i.fill()}}break;case"mount":for(var R=0;Rv&&R0&&(i.setLineWidth(u.borderWidth*t.pix),i.stroke()),i.fill()}}break;case"sharp":for(var z=0;zv&&z0&&(i.setLineWidth(u.borderWidth*t.pix),i.stroke()),i.fill()}}break}if(!1!==t.dataLabel&&1===o){var q,$,H;q=[].concat(t.chartData.yAxisData.ranges[0]),$=q.pop(),H=q.shift();y=ve(e,$,H,s,c,t,u,o);Me(y,e,r,i,t)}return i.restore(),{xAxisPoints:s,calPoints:y,eachSpacing:c}}function ze(e,t,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=[],s=(t.height-t.area[0]-t.area[2])/t.categories.length,c=0;ch&&wF?F:j,B=B>F?F:B,D=D>F?F:D,L=L>F?F:L,j=j<0?0:j,B=B<0?0:B,D=D<0?0:D,L=L<0?0:L,i.arc(E+L,T+L,L,-Math.PI,-Math.PI/2),i.arc(_.x-j,T+j,j,-Math.PI/2,0),i.arc(_.x-B,T+O-B,B,0,Math.PI/2),i.arc(E+D,T+O-D,D,Math.PI/2,Math.PI)}else i.moveTo(S,A),i.lineTo(_.x,A),i.lineTo(_.x,A+_.width),i.lineTo(S,A+_.width),i.lineTo(S,A),i.setLineWidth(1),i.setStrokeStyle(P);i.setFillStyle(k),i.closePath(),i.fill()}}break;case"stack":m=be(b,g,y,a,s,t,r,f,e,o);l.push(m),m=le(m,s,e.length,f,r,t,e);for(var R=0;Rh&&R5&&void 0!==arguments[5]?arguments[5]:1,a=f({},{color:{},average:{}},r.extra.candle);a.color=f({},{upLine:"#f04864",upFill:"#f04864",downLine:"#2fc25b",downFill:"#2fc25b"},a.color),a.average=f({},{show:!1,name:[],day:[],color:n.color},a.average),r.extra.candle=a;var s=r.chartData.xAxisData,c=s.xAxisPoints,u=s.eachSpacing,l=[];i.save();var d=-2,h=c.length+2,p=0,v=r.width+u;return r._scrollDistance_&&0!==r._scrollDistance_&&!0===r.enableScroll&&(i.translate(r._scrollDistance_,0),d=Math.floor(-r._scrollDistance_/u)-2,h=d+r.xAxis.itemCount+4,p=-r._scrollDistance_-2*u+r.area[3],v=p+(r.xAxis.itemCount+4)*u),(a.average.show||t)&&t.forEach((function(e,t){var a,s,f;a=[].concat(r.chartData.yAxisData.ranges[e.index]),s=a.pop(),f=a.shift();for(var l=e.data,d=pe(l,s,f,c,u,r,n,o),h=V(d,e),g=0;gp&&(i.moveTo(w.x,w.y),m=1),x>0&&w.x>p&&w.xd&&b0?(i.setStrokeStyle(a.color.upLine),i.setFillStyle(a.color.upFill),i.setLineWidth(1*r.pix),i.moveTo(m[3].x,m[3].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[1].x-u/4,m[1].y),i.lineTo(m[0].x-u/4,m[0].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[2].x,m[2].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[0].x+u/4,m[0].y),i.lineTo(m[1].x+u/4,m[1].y),i.lineTo(m[1].x,m[1].y),i.moveTo(m[3].x,m[3].y)):(i.setStrokeStyle(a.color.downLine),i.setFillStyle(a.color.downFill),i.setLineWidth(1*r.pix),i.moveTo(m[3].x,m[3].y),i.lineTo(m[0].x,m[0].y),i.lineTo(m[0].x-u/4,m[0].y),i.lineTo(m[1].x-u/4,m[1].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[2].x,m[2].y),i.lineTo(m[1].x,m[1].y),i.lineTo(m[1].x+u/4,m[1].y),i.lineTo(m[0].x+u/4,m[0].y),i.lineTo(m[0].x,m[0].y),i.moveTo(m[3].x,m[3].y)),i.closePath(),i.fill(),i.stroke()}})),i.restore(),{xAxisPoints:c,calPoints:l,eachSpacing:u}}function qe(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{type:"straight",opacity:.2,addLine:!1,width:2,gradient:!1},t.extra.area),a=t.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,u=t.height-t.area[2],l=[];n.save();var h=0,p=t.width+c;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),h=-t._scrollDistance_-2*c+t.area[3],p=h+(t.xAxis.itemCount+4)*c),e.forEach((function(e,a){var f,v,g;f=[].concat(t.chartData.yAxisData.ranges[e.index]),v=f.pop(),g=f.shift();var b=e.data,m=pe(b,v,g,s,c,t,r,i);l.push(m);for(var x=V(m,e),w=0;w1){var A=_[0],k=_[_.length-1];n.moveTo(A.x,A.y);var P=0;if("curve"===o.type)for(var M=0;M<_.length;M++){var E=_[M];if(0==P&&E.x>h&&(n.moveTo(E.x,E.y),P=1),M>0&&E.x>h&&E.xh&&(n.moveTo(C.x,C.y),P=1),T>0&&C.x>h&&C.xh&&(n.moveTo(j.x,j.y),P=1),I>0&&j.x>h&&j.xh&&(n.moveTo(R.x,R.y),L=1),F>0&&R.x>h&&R.xh&&(n.moveTo(U.x,U.y),L=1),z>0&&U.x>h&&U.xh&&(n.moveTo($.x,$.y),L=1),q>0&&$.x>h&&$.x4&&void 0!==arguments[4]?arguments[4]:1,o=(f({},{type:"circle"},t.extra.scatter),t.chartData.xAxisData),a=o.xAxisPoints,s=o.eachSpacing,c=[];n.save();var u=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),u=-t._scrollDistance_-2*s+t.area[3],u+(t.xAxis.itemCount+4)*s),e.forEach((function(e,o){var c,u,f;c=[].concat(t.chartData.yAxisData.ranges[e.index]),u=c.pop(),f=c.shift();var l=e.data,d=pe(l,u,f,a,s,t,r,i);n.beginPath(),n.setStrokeStyle(e.color),n.setFillStyle(e.color),n.setLineWidth(1*t.pix);var h=e.pointShape;if("diamond"===h)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y),n.lineTo(e.x,e.y+4.5),n.lineTo(e.x+4.5,e.y),n.lineTo(e.x,e.y-4.5))}));else if("circle"===h)d.forEach((function(e,r){null!==e&&(n.moveTo(e.x+2.5*t.pix,e.y),n.arc(e.x,e.y,3*t.pix,0,2*Math.PI,!1))}));else if("square"===h)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x-3.5,e.y-3.5),n.rect(e.x-3.5,e.y-3.5,7,7))}));else if("triangle"===h)d.forEach((function(e,t){null!==e&&(n.moveTo(e.x,e.y-4.5),n.lineTo(e.x-4.5,e.y+4.5),n.lineTo(e.x+4.5,e.y+4.5),n.lineTo(e.x,e.y-4.5))}));else if("triangle"===h)return;n.closePath(),n.fill(),n.stroke()})),!1!==t.dataLabel&&1===i&&e.forEach((function(e,o){var c,u,f;c=[].concat(t.chartData.yAxisData.ranges[e.index]),u=c.pop(),f=c.shift();var l=e.data,d=pe(l,u,f,a,s,t,r,i);Pe(d,e,r,n,t)})),n.restore(),{xAxisPoints:a,calPoints:c,eachSpacing:s}}function He(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{opacity:1,border:2},t.extra.bubble),a=t.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,u=[];n.save();var l=0;t.width;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),l=-t._scrollDistance_-2*c+t.area[3],l+(t.xAxis.itemCount+4)*c),e.forEach((function(a,u){var f,l,h;f=[].concat(t.chartData.yAxisData.ranges[a.index]),l=f.pop(),h=f.shift();var p=a.data,v=pe(p,l,h,s,c,t,r,i);n.beginPath(),n.setStrokeStyle(a.color),n.setLineWidth(o.border*t.pix),n.setFillStyle(d(a.color,o.opacity)),v.forEach((function(e,r){n.moveTo(e.x+e.r,e.y),n.arc(e.x,e.y,e.r*t.pix,0,2*Math.PI,!1)})),n.closePath(),n.fill(),n.stroke(),!1!==t.dataLabel&&1===i&&v.forEach((function(i,o){n.beginPath();var a=e.textSize*t.pix||r.fontSize;n.setFontSize(a),n.setFillStyle(e.textColor||"#FFFFFF"),n.setTextAlign("center"),n.fillText(String(i.t),i.x,i.y+a/2),n.closePath(),n.stroke(),n.setTextAlign("left")}))})),n.restore(),{xAxisPoints:s,calPoints:u,eachSpacing:c}}function We(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{type:"straight",width:2},t.extra.line);o.width*=t.pix;var a=t.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,u=[];n.save();var l=0,d=t.width+c;return t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(n.translate(t._scrollDistance_,0),l=-t._scrollDistance_-2*c+t.area[3],d=l+(t.xAxis.itemCount+4)*c),e.forEach((function(e,a){var f,h,p;f=[].concat(t.chartData.yAxisData.ranges[e.index]),h=f.pop(),p=f.shift();var v=e.data,g=pe(v,h,p,s,c,t,r,i);u.push(g);var b=V(g,e);if("dash"==e.lineType){var m=e.dashLength?e.dashLength:8;m*=t.pix,n.setLineDash([m,m])}n.beginPath(),n.setStrokeStyle(e.color),n.setLineWidth(o.width),b.forEach((function(e,t){if(1===e.length)n.moveTo(e[0].x,e[0].y),n.arc(e[0].x,e[0].y,1,0,2*Math.PI);else{n.moveTo(e[0].x,e[0].y);var r=0;if("curve"===o.type)for(var i=0;il&&(n.moveTo(a.x,a.y),r=1),i>0&&a.x>l&&a.xl&&(n.moveTo(u.x,u.y),r=1),c>0&&u.x>l&&u.xl&&(n.moveTo(h.x,h.y),r=1),f>0&&h.x>l&&h.x4&&void 0!==arguments[4]?arguments[4]:1,a=t.chartData.xAxisData,s=a.xAxisPoints,c=a.eachSpacing,u=f({},{width:c/2,barBorderCircle:!1,barBorderRadius:[],seriesGap:2,linearType:"none",linearOpacity:1,customColor:[],colorStop:0},t.extra.mix.column),l=f({},{opacity:.2,gradient:!1},t.extra.mix.area),h=t.height-t.area[2],p=[],v=0,g=0;e.forEach((function(e,t){"column"==e.type&&(g+=1)})),i.save();var b=-2,m=s.length+2,x=0,w=t.width+c;if(t._scrollDistance_&&0!==t._scrollDistance_&&!0===t.enableScroll&&(i.translate(t._scrollDistance_,0),b=Math.floor(-t._scrollDistance_/c)-2,m=b+t.xAxis.itemCount+4,x=-t._scrollDistance_-2*c+t.area[3],w=x+(t.xAxis.itemCount+4)*c),u.customColor=_(u.linearType,u.customColor,e,r),e.forEach((function(e,a){var f,_,S;f=[].concat(t.chartData.yAxisData.ranges[e.index]),_=f.pop(),S=f.shift();var A=e.data,k=pe(A,_,S,s,c,t,r,o);if(p.push(k),"column"==e.type){k=se(k,c,g,v,r,t);for(var P=0;Pb&&PU?U:F,R=R>U?U:R,N=N>U?U:N,z=z>U?U:z,F=F<0?0:F,R=R<0?0:R,N=N<0?0:N,z=z<0?0:z,i.arc(I+F,j+F,F,-Math.PI,-Math.PI/2),i.arc(I+B-R,j+R,R,-Math.PI/2,0),i.arc(I+B-N,j+D-N,N,0,Math.PI/2),i.arc(I+z,j+D-z,z,Math.PI/2,Math.PI)}else i.moveTo(E,M.y),i.lineTo(E+M.width,M.y),i.lineTo(E+M.width,t.height-t.area[2]),i.lineTo(E,t.height-t.area[2]),i.lineTo(E,M.y),i.setLineWidth(1),i.setStrokeStyle(T);i.setFillStyle(O),i.closePath(),i.fill()}}v+=1}if("area"==e.type)for(var q=V(k,e),$=0;$1){var Q=H[0],K=H[H.length-1];i.moveTo(Q.x,Q.y);var G=0;if("curve"===e.style)for(var X=0;Xx&&(i.moveTo(Y.x,Y.y),G=1),X>0&&Y.x>x&&Y.xx&&(i.moveTo(ee.x,ee.y),G=1),Z>0&&ee.x>x&&ee.xx&&(i.moveTo(c.x,c.y),a=1),s>0&&c.x>x&&c.xx&&(i.moveTo(l.x,l.y),a=1),f>0&&l.x>x&&l.x1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),p+=(t.extra.mount.widthRatio-1)*c);var v=h*h/p,g=0;t._scrollDistance_&&(g=-t._scrollDistance_*h/p),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollBackgroundColor||"#EFEBEF"),n.moveTo(a,d),n.lineTo(s,d),n.stroke(),n.closePath(),n.beginPath(),n.setLineCap("round"),n.setLineWidth(6*t.pix),n.setStrokeStyle(t.xAxis.scrollColor||"#A6A6A6"),n.moveTo(a+g,d),n.lineTo(a+g+v,d),n.stroke(),n.closePath(),n.setLineCap("butt")}if(n.save(),t._scrollDistance_&&0!==t._scrollDistance_&&n.translate(t._scrollDistance_,0),!0===t.xAxis.calibration&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),o.forEach((function(e,r){r>0&&(n.beginPath(),n.moveTo(e-c/2,f),n.lineTo(e-c/2,f+3*t.pix),n.closePath(),n.stroke())}))),!0!==t.xAxis.disableGrid&&(n.setStrokeStyle(t.xAxis.gridColor||"#cccccc"),n.setLineCap("butt"),n.setLineWidth(1*t.pix),"dash"==t.xAxis.gridType&&n.setLineDash([t.xAxis.dashLength*t.pix,t.xAxis.dashLength*t.pix]),t.xAxis.gridEval=t.xAxis.gridEval||1,o.forEach((function(e,r){r%t.xAxis.gridEval==0&&(n.beginPath(),n.moveTo(e,f),n.lineTo(e,l),n.stroke())})),n.setLineDash([])),!0!==t.xAxis.disabled){var y=e.length;t.xAxis.labelCount&&(y=t.xAxis.itemCount?Math.ceil(e.length/t.xAxis.itemCount*t.xAxis.labelCount):t.xAxis.labelCount,y-=1);for(var b=Math.ceil(e.length/y),m=[],x=e.length,w=0;w1&&(t.extra.mount.widthRatio>2&&(t.extra.mount.widthRatio=2),u+=(t.extra.mount.widthRatio-1)*c);var f=a+u,l=[],d=1;!1===t.xAxis.axisLine&&(d=0);for(var h=d;h4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{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==r.pieChartLinePadding&&(r.pieChartLinePadding=o.activeRadius*t.pix);var s=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);s=s<10?10:s,o.customRadius>0&&(s=o.customRadius*t.pix),e=Z(e,s,i);var c=o.activeRadius*t.pix;if(o.customColor=_(o.linearType,o.customColor,e,r),e=e.map((function(e){return e._start_+=o.offsetAngle*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(d(e.color,o.activeOpacity||.5)),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_+c,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=n.createCircularGradient?n.createCircularGradient(a.x,a.y,e._radius_):n.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,d(o.customColor[e.linearIndex],1)),i.addColorStop(1,d(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._proportion_*Math.PI),n.closePath(),n.fill(),1==o.border&&n.stroke()})),"ring"===t.type){var u=.6*s;"number"===typeof o.ringWidth&&o.ringWidth>0&&(u=Math.max(0,s-o.ringWidth*t.pix)),n.beginPath(),n.setFillStyle(o.centerColor),n.moveTo(a.x,a.y),n.arc(a.x,a.y,u,0,2*Math.PI),n.closePath(),n.fill()}return!1!==t.dataLabel&&1===i&&Ce(e,t,r,n,s,a),1===i&&"ring"===t.type&&ke(t,r,n,a),{center:a,radius:s,series:e}}function Ze(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{type:"area",activeOpacity:.5,activeRadius:10,offsetAngle:0,labelWidth:15,border:!1,borderWidth:2,borderColor:"#FFFFFF",linearType:"none",customColor:[]},t.extra.rose);0==r.pieChartLinePadding&&(r.pieChartLinePadding=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},s=Math.min((t.width-t.area[1]-t.area[3])/2-r.pieChartLinePadding-r.pieChartTextPadding-r._pieTextMaxLength_,(t.height-t.area[0]-t.area[2])/2-r.pieChartLinePadding-r.pieChartTextPadding);s=s<10?10:s;var c=o.minRadius||.5*s;e=te(e,o.type,c,s,i);var u=o.activeRadius*t.pix;return o.customColor=_(o.linearType,o.customColor,e,r),e=e.map((function(e){return e._start_+=(o.offsetAngle||0)*Math.PI/180,e})),e.forEach((function(e,r){t.tooltip&&t.tooltip.index==r&&(n.beginPath(),n.setFillStyle(d(e.color,o.activeOpacity||.5)),n.moveTo(a.x,a.y),n.arc(a.x,a.y,u+e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),n.closePath(),n.fill()),n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.lineJoin="round",n.setStrokeStyle(o.borderColor);var i,s=e.color;"custom"==o.linearType&&(i=n.createCircularGradient?n.createCircularGradient(a.x,a.y,e._radius_):n.createRadialGradient(a.x,a.y,0,a.x,a.y,e._radius_),i.addColorStop(0,d(o.customColor[e.linearIndex],1)),i.addColorStop(1,d(e.color,1)),s=i);n.setFillStyle(s),n.moveTo(a.x,a.y),n.arc(a.x,a.y,e._radius_,e._start_,e._start_+2*e._rose_proportion_*Math.PI),n.closePath(),n.fill(),1==o.border&&n.stroke()})),!1!==t.dataLabel&&1===i&&Ce(e,t,r,n,s,a),{center:a,radius:s,series:e}}function et(e,t,r,n){var i,o,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,s=f({},{startAngle:.75,endAngle:.25,type:"default",lineCap:"round",width:12,gap:2,linearType:"none",customColor:[]},t.extra.arcbar);e=re(e,s,a),i=s.centerX||s.centerY?{x:s.centerX?s.centerX:t.width/2,y:s.centerY?s.centerY:t.height/2}:{x:t.width/2,y:t.height/2},s.radius?o=s.radius:(o=Math.min(i.x,i.y),o-=5*t.pix,o-=s.width/2),o=o<10?10:o,s.customColor=_(s.linearType,s.customColor,e,r);for(var c=0;c5&&void 0!==arguments[5]?arguments[5]:1,a=f({},{type:"default",startAngle:.75,endAngle:.25,width:15,labelOffset:13,splitLine:{fixRadius:0,splitNumber:10,width:15,color:"#FFFFFF",childNumber:5,childWidth:5},pointer:{width:15,color:"auto"}},r.extra.gauge);void 0==a.oldAngle&&(a.oldAngle=a.startAngle),void 0==a.oldData&&(a.oldData=0),e=ie(e,a.startAngle,a.endAngle);var s={x:r.width/2,y:r.height/2},c=Math.min(s.x,s.y);c-=5*r.pix,c-=a.width/2,c=c<10?10:c;var u=c-a.width,l=0;if("progress"==a.type){var h=c-3*a.width;i.beginPath();var p=i.createLinearGradient(s.x,s.y-h,s.x,s.y+h);p.addColorStop("0",d(t[0].color,.3)),p.addColorStop("1.0",d("#FFFFFF",.1)),i.setFillStyle(p),i.arc(s.x,s.y,h,0,2*Math.PI,!1),i.fill(),i.setLineWidth(a.width),i.setStrokeStyle(d(t[0].color,.3)),i.setLineCap("round"),i.beginPath(),i.arc(s.x,s.y,u,a.startAngle*Math.PI,a.endAngle*Math.PI,!1),i.stroke(),l=a.startAngle-a.endAngle+1;a.splitLine.splitNumber;var v=l/a.splitLine.splitNumber/a.splitLine.childNumber,g=-c-.5*a.width-a.splitLine.fixRadius,y=-c-a.width-a.splitLine.fixRadius+a.splitLine.width;i.save(),i.translate(s.x,s.y),i.rotate((a.startAngle-1)*Math.PI);for(var b=a.splitLine.splitNumber*a.splitLine.childNumber+1,m=t[0].data*o,x=0;xx/b?i.setStrokeStyle(d(t[0].color,1)):i.setStrokeStyle(d(t[0].color,.3)),i.setLineWidth(3*r.pix),i.moveTo(g,0),i.lineTo(y,0),i.stroke(),i.rotate(v*Math.PI);i.restore(),t=ne(t,a,o),i.setLineWidth(a.width),i.setStrokeStyle(t[0].color),i.setLineCap("round"),i.beginPath(),i.arc(s.x,s.y,u,a.startAngle*Math.PI,t[0]._proportion_*Math.PI,!1),i.stroke();var w=c-2.5*a.width;i.save(),i.translate(s.x,s.y),i.rotate((t[0]._proportion_-1)*Math.PI),i.beginPath(),i.setLineWidth(a.width/3);var _=i.createLinearGradient(0,.6*-w,0,.6*w);_.addColorStop("0",d("#FFFFFF",0)),_.addColorStop("0.5",d(t[0].color,1)),_.addColorStop("1.0",d("#FFFFFF",0)),i.setStrokeStyle(_),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 S=0;S4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{gridColor:"#cccccc",gridType:"radar",gridEval:1,axisLabel:!1,axisLabelTofix:0,labelColor:"#666666",labelPointShow:!1,labelPointRadius:3,labelPointColor:"#cccccc",opacity:.2,gridCount:3,border:!1,borderWidth:2,linearType:"none",customColor:[]},t.extra.radar),a=T(t.categories.length),s={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=(t.width-t.area[1]-t.area[3])/2,u=(t.height-t.area[0]-t.area[2])/2,l=Math.min(c-(O(t.categories,r.fontSize,n)+r.radarLabelTextMargin),u-r.radarLabelTextMargin);l-=r.radarLabelTextMargin*t.pix,l=l<10?10:l,n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.gridColor),a.forEach((function(e,t){var r=b(l*Math.cos(e),l*Math.sin(e),s);n.moveTo(s.x,s.y),t%o.gridEval==0&&n.lineTo(r.x,r.y)})),n.stroke(),n.closePath();for(var h=function(e){var r={};if(n.beginPath(),n.setLineWidth(1*t.pix),n.setStrokeStyle(o.gridColor),"radar"==o.gridType)a.forEach((function(t,i){var a=b(l/o.gridCount*e*Math.cos(t),l/o.gridCount*e*Math.sin(t),s);0===i?(r=a,n.moveTo(a.x,a.y)):n.lineTo(a.x,a.y)})),n.lineTo(r.x,r.y);else{var i=b(l/o.gridCount*e*Math.cos(1.5),l/o.gridCount*e*Math.sin(1.5),s);n.arc(s.x,s.y,s.y-i.y,0,2*Math.PI,!1)}n.stroke(),n.closePath()},p=1;p<=o.gridCount;p++)h(p);o.customColor=_(o.linearType,o.customColor,e,r);var v=J(a,s,l,e,t,i);if(v.forEach((function(r,i){n.beginPath(),n.setLineWidth(o.borderWidth*t.pix),n.setStrokeStyle(r.color);var a,c=d(r.color,o.opacity);"custom"==o.linearType&&(a=n.createCircularGradient?n.createCircularGradient(s.x,s.y,l):n.createRadialGradient(s.x,s.y,0,s.x,s.y,l),a.addColorStop(0,d(o.customColor[e[i].linearIndex],o.opacity)),a.addColorStop(1,d(r.color,o.opacity)),c=a);if(n.setFillStyle(c),r.data.forEach((function(e,t){0===t?n.moveTo(e.position.x,e.position.y):n.lineTo(e.position.x,e.position.y)})),n.closePath(),n.fill(),!0===o.border&&n.stroke(),n.closePath(),!1!==t.dataPointShape){var u=r.data.map((function(e){return e.position}));Ae(u,r.color,r.pointShape,n,t)}})),!0===o.axisLabel){var g=Math.max(o.max,Math.max.apply(null,k(e))),y=l/o.gridCount,m=t.fontSize*t.pix;n.setFontSize(m),n.setFillStyle(t.fontColor),n.setTextAlign("left");for(p=0;pu.x?r.xMax:u.x,r.yMin=r.yMinu.y?r.yMax:u.y}}return r}function ot(e,t,r,n,i,o){return{x:(t-r.xMin)*n+i,y:(r.yMax-e)*n+o}}function at(e,t,r,n,i,o){return{x:(t-i)/n+r.xMin,y:r.yMax-(e-o)/n}}function st(e,t,r){if(t[1]==r[1])return!1;if(t[1]>e[1]&&r[1]>e[1])return!1;if(t[1]e[1])return!1;if(r[1]==e[1]&&t[1]>e[1])return!1;if(t[0]t[o].area[2]||e[1]>t[o].area[3]||e[2]r||e[3]>n){i=!0;break}i=!1}return i}function dt(e,t,r){var n=e.series;switch(t){case"normal":for(var i=0;i.7},p=0;p4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{type:"normal",autoColors:!0},t.extra.word);t.chartData.wordCloudData||(t.chartData.wordCloudData=dt(t,o.type,n)),n.beginPath(),n.setFillStyle(t.background),n.rect(0,0,t.width,t.height),n.fill(),n.save();var a=t.chartData.wordCloudData;n.translate(t.width/2,t.height/2);for(var s=0;s0&&(t.tooltip&&t.tooltip.index==s?n.strokeText(c,(a[s].areav[0]+5-t.width/2)*i-l*(1-i)/2,(a[s].areav[1]+5+u-t.height/2)*i):n.fillText(c,(a[s].areav[0]+5-t.width/2)*i-l*(1-i)/2,(a[s].areav[1]+5+u-t.height/2)*i)):a[s].area[0]>0&&(t.tooltip&&t.tooltip.index==s?n.strokeText(c,(a[s].area[0]+5-t.width/2)*i-l*(1-i)/2,(a[s].area[1]+5+u-t.height/2)*i):n.fillText(c,(a[s].area[0]+5-t.width/2)*i-l*(1-i)/2,(a[s].area[1]+5+u-t.height/2)*i)),n.stroke(),n.restore()}n.restore()}function pt(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=f({},{type:"funnel",activeWidth:10,activeOpacity:.3,border:!1,borderWidth:2,borderColor:"#FFFFFF",fillOpacity:1,labelAlign:"right",linearType:"none",customColor:[]},t.extra.funnel),a=(t.height-t.area[0]-t.area[2])/e.length,s={x:t.area[3]+(t.width-t.area[1]-t.area[3])/2,y:t.height-t.area[2]},c=o.activeWidth*t.pix,u=Math.min((t.width-t.area[1]-t.area[3])/2-c,(t.height-t.area[0]-t.area[2])/2-c);if(e=ee(e,u,o.type,a,i),n.save(),n.translate(s.x,s.y),o.customColor=_(o.linearType,o.customColor,e,r),"pyramid"==o.type)for(var l=0;l0?b[k].width+t.yAxis.padding*t.pix:b[k].width,A+=1):"right"==b[k].position&&(t.area[1]+=S>0?b[k].width+t.yAxis.padding*t.pix:b[k].width,S+=1)}else r.yAxisWidth=b;if(t.chartData.yAxisData=y,t.categories&&t.categories.length&&"radar"!==t.type&&"gauge"!==t.type&&"bar"!==t.type){t.chartData.xAxisData=de(t.categories,t,r);var P=G(t.categories,t,r,t.chartData.xAxisData.eachSpacing,n),M=P.xAxisHeight,E=P.angle;r.xAxisHeight=M,r._xAxisTextAngle_=E,t.area[2]+=M,t.chartData.categoriesData=P}else if("line"===t.type||"area"===t.type||"scatter"===t.type||"bubble"===t.type||"bar"===t.type){t.chartData.xAxisData=Y(o,t,r,n),a=t.chartData.xAxisData.rangesFormat;var O=G(a,t,r,t.chartData.xAxisData.eachSpacing,n),T=O.xAxisHeight,C=O.angle;r.xAxisHeight=T,r._xAxisTextAngle_=C,t.area[2]+=T,t.chartData.categoriesData=O}else t.chartData.xAxisData={xAxisPoints:[]};if(t.enableScroll&&"right"==t.xAxis.scrollAlign&&void 0===t._scrollDistance_){var I=0,j=t.chartData.xAxisData.xAxisPoints,D=t.chartData.xAxisData.startX,L=t.chartData.xAxisData.endX,F=t.chartData.xAxisData.eachSpacing,R=F*(j.length-1),N=L-D;I=N-R,i.scrollOption.currentOffset=I,i.scrollOption.startTouchX=I,i.scrollOption.distance=0,i.scrollOption.lastMoveTime=0,t._scrollDistance_=I}switch("pie"!==e&&"ring"!==e&&"rose"!==e||(r._pieTextMaxLength_=!1===t.dataLabel?0:ae(u,r,n,t)),e){case"word":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),ht(o,t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"map":n.clearRect(0,0,t.width,t.height),ut(o,t,r,n);break;case"funnel":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.funnelData=pt(o,t,r,n,e),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"line":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=We(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"scatter":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=$e(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"bubble":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=He(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"mix":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=Qe(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"column":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=Re(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"mount":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=Ne(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"bar":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ke(a,t,r,n);var i=ze(o,t,r,n,e),s=i.yAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.yAxisPoints=s,t.chartData.xAxisPoints=t.chartData.xAxisData.xAxisPoints,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"area":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=qe(o,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,u=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=u,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e,u,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"ring":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.pieData=Je(o,t,r,n,e),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"pie":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.pieData=Je(o,t,r,n,e),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"rose":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.pieData=Ze(o,t,r,n,e),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"radar":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.radarData=rt(o,t,r,n,e),Ye(t.series,t,r,n,t.chartData),Ve(t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"arcbar":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.arcbarData=et(o,t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"gauge":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),t.chartData.gaugeData=tt(a,o,t,r,n,e),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break;case"candle":this.animationInstance=new bt({timing:t.timing,duration:c,onProcess:function(e){n.clearRect(0,0,t.width,t.height),t.rotate&&Se(n,t),Ge(a,t,r,n),Ke(a,t,r,n);var i=Ue(o,u,t,r,n,e),s=i.xAxisPoints,c=i.calPoints,f=i.eachSpacing;t.chartData.xAxisPoints=s,t.chartData.calPoints=c,t.chartData.eachSpacing=f,Xe(o,t,r,n),!1!==t.enableMarkLine&&1===e&&je(t,r,n),Ye(u||t.series,t,r,n,t.chartData),Ve(t,r,n,e,f,s),gt(t,n)},onAnimationFinish:function(){i.uevent.trigger("renderComplete")}});break}}function xt(){this.events={}}bt.prototype.stop=function(){this.isStop=!0},xt.prototype.addEventListener=function(e,t){this.events[e]=this.events[e]||[],this.events[e].push(t)},xt.prototype.delEventListener=function(e){this.events[e]=[]},xt.prototype.trigger=function(){for(var e=arguments.length,t=Array(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:{};this.opts=f({},this.opts,e),this.opts.updateData=!0;var t=e.scrollPosition||"current";switch(t){case"current":this.opts._scrollDistance_=this.scrollOption.currentOffset;break;case"left":this.opts._scrollDistance_=0,this.scrollOption={currentOffset:0,startTouchX:0,distance:0,lastMoveTime:0};break;case"right":var r=xe(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,o=de(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,c=o.endX,u=o.eachSpacing,l=u*(a.length-1),d=c-s;i=d-l,this.scrollOption={currentOffset:i,startTouchX:i,distance:0,lastMoveTime:0},this.opts._scrollDistance_=i;break}mt.call(this,this.opts.type,this.opts,this.config,this.context)},wt.prototype.zoom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.opts.xAxis.itemCount;if(!0===this.opts.enableScroll){var t=Math.round(Math.abs(this.scrollOption.currentOffset)/this.opts.chartData.eachSpacing)+Math.round(this.opts.xAxis.itemCount/2);this.opts.animation=!1,this.opts.xAxis.itemCount=e.itemCount;var r=xe(this.opts.series,this.opts,this.config,this.context),n=r.yAxisWidth;this.config.yAxisWidth=n;var i=0,o=de(this.opts.categories,this.opts,this.config),a=o.xAxisPoints,s=o.startX,c=o.endX,u=o.eachSpacing,f=u*t,l=c-s,d=l-u*(a.length-1);i=l/2-f,i>0&&(i=0),i=this.opts.categories.length?this.opts.categories.length:l,this.opts.animation=!1,this.opts.xAxis.itemCount=l;var d=0,h=de(this.opts.categories,this.opts,this.config),p=h.xAxisPoints,g=h.startX,y=h.endX,b=h.eachSpacing,m=b*this.scrollOption.moveCurrent1,x=y-g,w=x-b*(p.length-1);d=-m+Math.min(n[0].x,n[1].x)-this.opts.area[3]-b,d>0&&(d=0),d1&&void 0!==arguments[1]?arguments[1]:{},r=null;if(r=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],r){M(r,this.opts,e);var n=this.getLegendDataIndex(e);n>=0&&("candle"==this.opts.type?this.opts.seriesMA[n].show=!this.opts.seriesMA[n].show:this.opts.series[n].show=!this.opts.series[n].show,this.opts.animation=!!t.animation,this.opts._scrollDistance_=this.scrollOption.currentOffset,mt.call(this,this.opts.type,this.opts,this.config,this.context))}},wt.prototype.showToolTip=function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null;n=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0],n||console.log("[uCharts] 未获取到event坐标信息");var i=M(n,this.opts,e),o=this.scrollOption.currentOffset,a=f({},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 s=this.getCurrentDataIndex(e),c=void 0==r.index?s.index:r.index;if(c>-1||c.length>0){var u=E(this.opts.series,c,s.group);if(0!==u.length){var l=C(u,this.opts,c,s.group,this.opts.categories,r),d=l.textList,h=l.offset;h.y=i.y,a.tooltip={textList:void 0!==r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}mt.call(this,a.type,a,this.config,this.context)}if("mount"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e).index:r.index;if(c>-1){a=f({},this.opts,{animation:!1}),u=f({},a._series_[c]),d=[{text:r.formatter?r.formatter(u,void 0,c,a):u.name+": "+u.data,color:u.color}],h={x:a.chartData.calPoints[c].x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}mt.call(this,a.type,a,this.config,this.context)}if("bar"===this.opts.type){s=this.getCurrentDataIndex(e),c=void 0==r.index?s.index:r.index;if(c>-1||c.length>0){u=E(this.opts.series,c,s.group);if(0!==u.length){l=C(u,this.opts,c,s.group,this.opts.categories,r),d=l.textList,h=l.offset;h.x=i.x,a.tooltip={textList:void 0!==r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}mt.call(this,a.type,a,this.config,this.context)}if("mix"===this.opts.type){s=this.getCurrentDataIndex(e),c=void 0==r.index?s.index:r.index;if(c>-1){o=this.scrollOption.currentOffset,a=f({},this.opts,{_scrollDistance_:o,animation:!1}),u=E(this.opts.series,c);if(0!==u.length){var p=I(u,this.opts,c,this.opts.categories,r);d=p.textList,h=p.offset;h.y=i.y,a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}mt.call(this,a.type,a,this.config,this.context)}if("candle"===this.opts.type){s=this.getCurrentDataIndex(e),c=void 0==r.index?s.index:r.index;if(c>-1){o=this.scrollOption.currentOffset,a=f({},this.opts,{_scrollDistance_:o,animation:!1}),u=E(this.opts.series,c);if(0!==u.length){l=j(this.opts.series[0].data,u,this.opts,c,this.opts.categories,this.opts.extra.candle,r),d=l.textList,h=l.offset;h.y=i.y,a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}mt.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){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=f({},this.opts,{animation:!1}),u=f({},a._series_[c]),d=[{text:r.formatter?r.formatter(u,void 0,c,a):u.name+": "+u.data,color:u.color}],h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}mt.call(this,a.type,a,this.config,this.context)}if("map"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=f({},this.opts,{animation:!1}),u=f({},this.opts.series[c]);u.name=u.properties.name;d=[{text:r.formatter?r.formatter(u,void 0,c,this.opts):u.name,color:u.color}],h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}a.updateData=!1,mt.call(this,a.type,a,this.config,this.context)}if("word"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=f({},this.opts,{animation:!1}),u=f({},this.opts.series[c]),d=[{text:r.formatter?r.formatter(u,void 0,c,this.opts):u.name,color:u.color}],h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}a.updateData=!1,mt.call(this,a.type,a,this.config,this.context)}if("radar"===this.opts.type){c=void 0==r.index?this.getCurrentDataIndex(e):r.index;if(c>-1){a=f({},this.opts,{animation:!1}),u=E(this.opts.series,c);if(0!==u.length){d=u.map((function(e){return{text:r.formatter?r.formatter(e,t.opts.categories[c],c,t.opts):e.name+": "+e.data,color:e.color}})),h={x:i.x,y:i.y};a.tooltip={textList:r.textList?r.textList:d,offset:void 0!==r.offset?r.offset:h,option:r,index:c}}}mt.call(this,a.type,a,this.config,this.context)}},wt.prototype.translate=function(e){this.scrollOption={currentOffset:e,startTouchX:e,distance:0,lastMoveTime:0};var t=f({},this.opts,{_scrollDistance_:e,animation:!1});mt.call(this,this.opts.type,t,this.config,this.context)},wt.prototype.scrollStart=function(e){var t=null;t=e.changedTouches?e.changedTouches[0]:e.mp.changedTouches[0];var r=M(t,this.opts,e);t&&!0===this.opts.enableScroll&&(this.scrollOption.startTouchX=r.x)},wt.prototype.scroll=function(e){0===this.scrollOption.lastMoveTime&&(this.scrollOption.lastMoveTime=Date.now());var t=this.opts.touchMoveLimit||60,r=Date.now(),n=r-this.scrollOption.lastMoveTime;if(!(n=10?"分配科学":"运动量少":"运动过量";return"运动占睡眠: "+e.data+"% "+i},subjectRankColum:function(e,t,r,n){return t+" "+e.name+"超过 "+e.data+"% 的学生"},subjectRankArea:function(e,t,r,n){return t+" "+e.name+e.data+"% 的学生"},distributionColumn:function(e,t,r,n){return t+"分 "+e.name+" "+e.data+" 人 "},meritsRadar:function(e,t,r,n){return t+" "+e.name+" "+e.data+" % "},xAxisBar:function(e,t,r){return parseInt(e).toFixed(0)+"%"}},line:{type:"line",animation:!0,timing:"easeOut",duration:500,color:n,padding:c,dataLabel:!1,fontSize:12,xAxis:o,yAxis:a,enableScroll:!0,touchMoveLimit:60,legend:s,extra:{line:{type:"curve",width:2},tooltip:i}},column:{type:"column",animation:!0,timing:"easeOut",duration:500,color:n,padding:c,dataLabel:!1,fontSize:12,xAxis:o,yAxis:a,enableScroll:!0,touchMoveLimit:60,legend:s,extra:{column:{type:"group",width:17,seriesGap:3,categoryGap:5,barBorderCircle:!0},tooltip:i}},area:{type:"area",animation:!0,timing:"easeOut",duration:500,color:n,padding:c,dataLabel:!1,fontSize:12,xAxis:o,yAxis:a,enableScroll:!0,touchMoveLimit:60,legend:s,extra:{area:{type:"curve",opacity:.5,addLine:!0,width:2,gradient:!0},tooltip:i}},rose:{type:"rose",animation:!0,timing:"easeOut",duration:500,color:n,padding:[-20,5,5,5],dataLabel:!1,dataPointShape:!1,dataPointShapeType:"hollow",legend:{show:!0,position:"bottom",float:"center"},extra:{rose:{type:"radius",minRadius:90,border:!0},tooltip:i}},arcbar:{type:"arcbar",animation:!0,timing:"easeOut",duration:500,padding:[30,30,30,30],title:{name:"",fontSize:28,color:"#4169E1",offsetY:-5},subtitle:{name:"",fontSize:15,color:"#909399"},extra:{arcbar:{width:15,type:"circle",backgroundColor:"#F5F5F5"}}},radar:{type:"radar",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,15,10,15],fontSize:13,enableMarkLine:!1,dataLabel:!1,legend:{show:!0,position:"top",float:"center",padding:5,margin:5,fontColor:"#696969"},extra:{radar:{gridType:"circle",gridCount:3,opacity:.2,border:!0,borderWidth:1,labelColor:"#303133",labelPointShow:!0},tooltip:i}},pie:{type:"pie",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,3,0,3],fontSize:12,dataLabel:!1,legend:{show:!1},extra:{pie:{activeOpacity:.5,activeRadius:10,offsetAngle:0,customRadius:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF",linearType:"none"},tooltip:i}},ring:{type:"ring",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,3,0,3],fontSize:12,dataLabel:!1,legend:{show:!1},title:{name:"",fontSize:12,offsetY:-5},subtitle:{name:"",fontSize:16},extra:{ring:{ringWidth:30,centerColor:"#FFFFFF",activeOpacity:.5,activeRadius:10,offsetAngle:0,customRadius:0,labelWidth:15,border:!0,borderWidth:3,borderColor:"#FFFFFF",linearType:"none"},tooltip:i}},mainline:{type:"area",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,-20,10,-20],dataLabel:!1,dataPointShape:!1,tapLegend:!1,xAxis:{disabled:!0,axisLine:!1,disableGrid:!0},yAxis:{disabled:!0,disableGrid:!0},legend:{show:!1},extra:{area:{type:"curve",opacity:.7,addLine:!0,width:3,gradient:!0},tooltip:{showBox:!1,splitLine:!1}}},"mini-column":{type:"column",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,10,10,10],dataLabel:!1,dataPointShape:!1,tapLegend:!1,xAxis:{disabled:!0,axisLine:!1,disableGrid:!0},yAxis:{disabled:!0,disableGrid:!0},legend:{show:!1},extra:{column:{type:"group",width:10,seriesGap:2,categoryGap:3,barBorderCircle:!1,barBorderRadius:[10,10,10,10],linearType:"opacity",linearOpacity:.7,customColor:["#4169E1","#FFFFFF","#ff5959","#FFFFFF","#f9c752","#FFFFFF"],colorStop:.5,meterBorder:1,meterFillColor:"#FFFFFF",activeBgColor:"#FFFFFF",activeBgOpacity:.08,meterBorde:1},tooltip:{showBox:!1,splitLine:!1}}},"mini-area":{type:"area",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,-5,10,-5],dataLabel:!1,dataPointShape:!1,tapLegend:!1,xAxis:{disabled:!0,axisLine:!1,disableGrid:!0},yAxis:{disabled:!0,disableGrid:!0},legend:{show:!1},extra:{area:{type:"curve",opacity:.7,addLine:!0,width:2,gradient:!0},tooltip:{showBox:!1,splitLine:!1}}},"mini-rose":{type:"rose",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,0,0,0],dataLabel:!1,dataPointShape:!1,dataPointShapeType:"hollow",legend:{show:!1},extra:{rose:{type:"radius",minRadius:40,activeRadius:0,opacity:.7,gradient:!0,border:!0,borderWidth:2,borderColor:"#FFFFFF"},tooltip:{showBox:!1,splitLine:!1}}},mount:{type:"mount",animation:!0,timing:"easeOut",duration:500,color:n,padding:[0,20,10,20],dataLabel:!1,dataPointShape:!1,tapLegend:!1,xAxis:{disableGrid:!0,fontSize:11,scrollColor:"#F5F5F5",scrollBackgroundColor:"#D3D3D3",boundaryGap:"center",disabled:!0},yAxis:{disableGrid:!0,data:[{fontSize:11,min:0,disabled:!0}]},legend:{show:!1},extra:{mount:{type:"mount",borderWidth:1.2,widthRatio:1.7,linearType:"opacity",linearOpacity:.1},tooltip:{showBox:!0,showArrow:!1,showCategory:!1,borderRadius:6,bgOpacity:.5,splitLine:!1}}},bar:{type:"bar",timing:"easeOut",duration:1e3,rotate:!1,rotateLock:!1,color:n,padding:[0,30,20,10],fontSize:13,fontColor:"#666666",dataLabel:!1,dataPointShape:!0,dataPointShapeType:"solid",touchMoveLimit:60,enableScroll:!1,enableMarkLine:!1,xAxis:{boundaryGap:"justify",disableGrid:!1,min:0,max:100,axisLine:!1,disabled:!1,axisLineColor:"#CCCCCC",calibration:!1,fontColor:"#666666",fontSize:13,rotateLabel:!1,rotateAngle:45,itemCount:5,splitNumber:5,gridColor:"#CCCCCC",gridType:"dash",dashLength:10,gridEval:1,scrollShow:!1,scrollAlign:"left",scrollColor:"#A6A6A6",scrollBackgroundColor:"#EFEBEF",format:""},yAxis:{disabled:!1,disableGrid:!1,splitNumber:5,gridType:"solid",dashLength:8,gridColor:"#CCCCCC",padding:10,showTitle:!1,data:[]},extra:{bar:{type:"group",width:30,meterBorde:1,activeBgOpacity:.08,seriesGap:2,categoryGap:3,barBorderCircle:!1,barBorderRadius:[6,6,6,6],linearType:"none",linearOpacity:1,colorStop:0},tooltip:i}}},f=u;t.default=f},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{text:{type:[Array,String],default:e.$u.props.noticeBar.text},direction:{type:String,default:e.$u.props.noticeBar.direction},step:{type:Boolean,default:e.$u.props.noticeBar.step},icon:{type:String,default:e.$u.props.noticeBar.icon},mode:{type:String,default:e.$u.props.noticeBar.mode},color:{type:String,default:e.$u.props.noticeBar.color},bgColor:{type:String,default:e.$u.props.noticeBar.bgColor},speed:{type:[String,Number],default:e.$u.props.noticeBar.speed},fontSize:{type:[String,Number],default:e.$u.props.noticeBar.fontSize},duration:{type:[String,Number],default:e.$u.props.noticeBar.duration},disableTouch:{type:Boolean,default:e.$u.props.noticeBar.disableTouch},url:{type:String,default:e.$u.props.noticeBar.url},linkType:{type:String,default:e.$u.props.noticeBar.linkType}}};t.default=r}).call(this,r(1)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={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=r}).call(this,r(1)["default"])},,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{urls:{type:Array,default:e.$u.props.avatarGroup.urls},maxCount:{type:[String,Number],default:e.$u.props.avatarGroup.maxCount},shape:{type:String,default:e.$u.props.avatarGroup.shape},mode:{type:String,default:e.$u.props.avatarGroup.mode},showMore:{type:Boolean,default:e.$u.props.avatarGroup.showMore},size:{type:[String,Number],default:e.$u.props.avatarGroup.size},keyName:{type:String,default:e.$u.props.avatarGroup.keyName},gap:{type:[String,Number],validator:function(e){return e>=0&&e<=1},default:e.$u.props.avatarGroup.gap},extraValue:{type:[Number,String],default:e.$u.props.avatarGroup.extraValue}}};t.default=r}).call(this,r(1)["default"])},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{openType:String},methods:{onGetUserInfo:function(e){this.$emit("getuserinfo",e.detail)},onContact:function(e){this.$emit("contact",e.detail)},onGetPhoneNumber:function(e){this.$emit("getphonenumber",e.detail)},onError:function(e){this.$emit("error",e.detail)},onLaunchApp:function(e){this.$emit("launchapp",e.detail)},onOpenSetting:function(e){this.$emit("opensetting",e.detail)}}};t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={props:{lang:String,sessionFrom:String,sendMessageTitle:String,sendMessagePath:String,sendMessageImg:String,showMessageCard:Boolean,appParameter:String,formType:String,openType:String}};t.default=n},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{show:{type:Boolean,default:e.$u.props.actionSheet.show},title:{type:String,default:e.$u.props.actionSheet.title},description:{type:String,default:e.$u.props.actionSheet.description},actions:{type:Array,default:e.$u.props.actionSheet.actions},cancelText:{type:String,default:e.$u.props.actionSheet.cancelText},closeOnClickAction:{type:Boolean,default:e.$u.props.actionSheet.closeOnClickAction},safeAreaInsetBottom:{type:Boolean,default:e.$u.props.actionSheet.safeAreaInsetBottom},openType:{type:String,default:e.$u.props.actionSheet.openType},closeOnClickOverlay:{type:Boolean,default:e.$u.props.actionSheet.closeOnClickOverlay},round:{type:[Boolean,String,Number],default:e.$u.props.actionSheet.round}}};t.default=r}).call(this,r(1)["default"])},,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={"uicon-level":"","uicon-column-line":"","uicon-checkbox-mark":"","uicon-folder":"","uicon-movie":"","uicon-star-fill":"","uicon-star":"","uicon-phone-fill":"","uicon-phone":"","uicon-apple-fill":"","uicon-chrome-circle-fill":"","uicon-backspace":"","uicon-attach":"","uicon-cut":"","uicon-empty-car":"","uicon-empty-coupon":"","uicon-empty-address":"","uicon-empty-favor":"","uicon-empty-permission":"","uicon-empty-news":"","uicon-empty-search":"","uicon-github-circle-fill":"","uicon-rmb":"","uicon-person-delete-fill":"","uicon-reload":"","uicon-order":"","uicon-server-man":"","uicon-search":"","uicon-fingerprint":"","uicon-more-dot-fill":"","uicon-scan":"","uicon-share-square":"","uicon-map":"","uicon-map-fill":"","uicon-tags":"","uicon-tags-fill":"","uicon-bookmark-fill":"","uicon-bookmark":"","uicon-eye":"","uicon-eye-fill":"","uicon-mic":"","uicon-mic-off":"","uicon-calendar":"","uicon-calendar-fill":"","uicon-trash":"","uicon-trash-fill":"","uicon-play-left":"","uicon-play-right":"","uicon-minus":"","uicon-plus":"","uicon-info":"","uicon-info-circle":"","uicon-info-circle-fill":"","uicon-question":"","uicon-error":"","uicon-close":"","uicon-checkmark":"","uicon-android-circle-fill":"","uicon-android-fill":"","uicon-ie":"","uicon-IE-circle-fill":"","uicon-google":"","uicon-google-circle-fill":"","uicon-setting-fill":"","uicon-setting":"","uicon-minus-square-fill":"","uicon-plus-square-fill":"","uicon-heart":"","uicon-heart-fill":"","uicon-camera":"","uicon-camera-fill":"","uicon-more-circle":"","uicon-more-circle-fill":"","uicon-chat":"","uicon-chat-fill":"","uicon-bag-fill":"","uicon-bag":"","uicon-error-circle-fill":"","uicon-error-circle":"","uicon-close-circle":"","uicon-close-circle-fill":"","uicon-checkmark-circle":"","uicon-checkmark-circle-fill":"","uicon-question-circle-fill":"","uicon-question-circle":"","uicon-share":"","uicon-share-fill":"","uicon-shopping-cart":"","uicon-shopping-cart-fill":"","uicon-bell":"","uicon-bell-fill":"","uicon-list":"","uicon-list-dot":"","uicon-zhihu":"","uicon-zhihu-circle-fill":"","uicon-zhifubao":"","uicon-zhifubao-circle-fill":"","uicon-weixin-circle-fill":"","uicon-weixin-fill":"","uicon-twitter-circle-fill":"","uicon-twitter":"","uicon-taobao-circle-fill":"","uicon-taobao":"","uicon-weibo-circle-fill":"","uicon-weibo":"","uicon-qq-fill":"","uicon-qq-circle-fill":"","uicon-moments-circel-fill":"","uicon-moments":"","uicon-qzone":"","uicon-qzone-circle-fill":"","uicon-baidu-circle-fill":"","uicon-baidu":"","uicon-facebook-circle-fill":"","uicon-facebook":"","uicon-car":"","uicon-car-fill":"","uicon-warning-fill":"","uicon-warning":"","uicon-clock-fill":"","uicon-clock":"","uicon-edit-pen":"","uicon-edit-pen-fill":"","uicon-email":"","uicon-email-fill":"","uicon-minus-circle":"","uicon-minus-circle-fill":"","uicon-plus-circle":"","uicon-plus-circle-fill":"","uicon-file-text":"","uicon-file-text-fill":"","uicon-pushpin":"","uicon-pushpin-fill":"","uicon-grid":"","uicon-grid-fill":"","uicon-play-circle":"","uicon-play-circle-fill":"","uicon-pause-circle-fill":"","uicon-pause":"","uicon-pause-circle":"","uicon-eye-off":"","uicon-eye-off-outline":"","uicon-gift-fill":"","uicon-gift":"","uicon-rmb-circle-fill":"","uicon-rmb-circle":"","uicon-kefu-ermai":"","uicon-server-fill":"","uicon-coupon-fill":"","uicon-coupon":"","uicon-integral":"","uicon-integral-fill":"","uicon-home-fill":"","uicon-home":"","uicon-hourglass-half-fill":"","uicon-hourglass":"","uicon-account":"","uicon-plus-people-fill":"","uicon-minus-people-fill":"","uicon-account-fill":"","uicon-thumb-down-fill":"","uicon-thumb-down":"","uicon-thumb-up":"","uicon-thumb-up-fill":"","uicon-lock-fill":"","uicon-lock-open":"","uicon-lock-opened-fill":"","uicon-lock":"","uicon-red-packet-fill":"","uicon-photo-fill":"","uicon-photo":"","uicon-volume-off-fill":"","uicon-volume-off":"","uicon-volume-fill":"","uicon-volume":"","uicon-red-packet":"","uicon-download":"","uicon-arrow-up-fill":"","uicon-arrow-down-fill":"","uicon-play-left-fill":"","uicon-play-right-fill":"","uicon-rewind-left-fill":"","uicon-rewind-right-fill":"","uicon-arrow-downward":"","uicon-arrow-leftward":"","uicon-arrow-rightward":"","uicon-arrow-upward":"","uicon-arrow-down":"","uicon-arrow-right":"","uicon-arrow-left":"","uicon-arrow-up":"","uicon-skip-back-left":"","uicon-skip-forward-right":"","uicon-rewind-right":"","uicon-rewind-left":"","uicon-arrow-right-double":"","uicon-arrow-left-double":"","uicon-wifi-off":"","uicon-wifi":"","uicon-empty-data":"","uicon-empty-history":"","uicon-empty-list":"","uicon-empty-page":"","uicon-empty-order":"","uicon-man":"","uicon-woman":"","uicon-man-add":"","uicon-man-add-fill":"","uicon-man-delete":"","uicon-man-delete-fill":"","uicon-zh":"","uicon-en":""};t.default=n},function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={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=r}).call(this,r(1)["default"])},,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{show:{type:Boolean,default:e.$u.props.picker.show},showToolbar:{type:Boolean,default:e.$u.props.picker.showToolbar},title:{type:String,default:e.$u.props.picker.title},columns:{type:Array,default:e.$u.props.picker.columns},loading:{type:Boolean,default:e.$u.props.picker.loading},itemHeight:{type:[String,Number],default:e.$u.props.picker.itemHeight},cancelText:{type:String,default:e.$u.props.picker.cancelText},confirmText:{type:String,default:e.$u.props.picker.confirmText},cancelColor:{type:String,default:e.$u.props.picker.cancelColor},confirmColor:{type:String,default:e.$u.props.picker.confirmColor},singleIndex:{type:[String,Number],default:e.$u.props.picker.singleIndex},visibleItemCount:{type:[String,Number],default:e.$u.props.picker.visibleItemCount},keyName:{type:String,default:e.$u.props.picker.keyName},closeOnClickOverlay:{type:Boolean,default:!0},defaultIndex:{type:Array,default:e.$u.props.picker.defaultIndex},immediateChange:{type:Boolean,default:!0}}};t.default=r}).call(this,r(1)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={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=r}).call(this,r(1)["default"])},,,,,,,,function(e,t,r){"use strict";function n(e,t){if(0===arguments.length)return null;if(!e)return"";e.toString().indexOf("-")>0&&(e=e.replace(/-/g,"/"));var r,n=t||"{y}-{m}-{d} {h}:{i}:{s}";"object"===typeof e?r=e:("string"===typeof e&&/^[0-9]+$/.test(e)&&(e=parseInt(e)),"number"===typeof e&&10===e.toString().length&&(e*=1e3),r=new Date(e));var i={y:r.getFullYear(),m:r.getMonth()+1,d:r.getDate(),h:r.getHours(),i:r.getMinutes(),s:r.getSeconds(),a:r.getDay()},o=n.replace(/{([ymdhisa])+}/g,(function(e,t){var r=i[t];return"a"===t?["日","一","二","三","四","五","六"][r]:r.toString().padStart(2,"0")}));return o}function i(e){if(!e&&"object"!==typeof e)throw new Error("error arguments","deepClone");var t="[object Array]"===Object.prototype.toString.call(e)?[]:{};return Object.keys(e).forEach((function(r){e[r]&&"object"===typeof e[r]?t[r]=i(e[r]):t[r]=e[r]})),t}Object.defineProperty(t,"__esModule",{value:!0}),t.parseTime=n,t.deepClone=i},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{list:{type:Array,default:e.$u.props.subsection.list},current:{type:[String,Number],default:e.$u.props.subsection.current},activeColor:{type:String,default:e.$u.props.subsection.activeColor},inactiveColor:{type:String,default:"#909596"},mode:{type:String,default:e.$u.props.subsection.mode},fontSize:{type:[String,Number],default:14},bold:{type:Boolean,default:e.$u.props.subsection.bold},bgColor:{type:String,default:e.$u.props.subsection.bgColor},keyName:{type:String,default:e.$u.props.subsection.keyName}}};t.default=r}).call(this,r(1)["default"])},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{content:String,copyLink:{type:Boolean,default:e.$u.props.parse.copyLink},domain:String,errorImg:{type:String,default:e.$u.props.parse.errorImg},lazyLoad:{type:Boolean,default:e.$u.props.parse.lazyLoad},loadingImg:{type:String,default:e.$u.props.parse.loadingImg},pauseVideo:{type:Boolean,default:e.$u.props.parse.pauseVideo},previewImg:{type:Boolean,default:e.$u.props.parse.previewImg},scrollTable:Boolean,selectable:Boolean,setTitle:{type:Boolean,default:e.$u.props.parse.setTitle},showImgMenu:{type:Boolean,default:e.$u.props.parse.showImgMenu},tagStyle:Object,useAnchor:null}};t.default=r}).call(this,r(1)["default"])},function(e,t,r){"use strict";(function(t){function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function n(e){for(var t=1;t",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…"},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",u:"text-decoration:underline"}},a=t.getSystemInfoSync(),s=a.windowWidth,c=f(" ,\r,\n,\t,\f"),u=0;function f(e){for(var t=Object.create(null),r=e.split(","),n=r.length;n--;)t[r[n]]=!0;return t}function l(e,t){var r=e.indexOf("&");while(-1!=r){var n=e.indexOf(";",r+3),i=void 0;if(-1==n)break;"#"==e[r+1]?(i=parseInt(("x"==e[r+2]?"0":"")+e.substring(r+2,n)),isNaN(i)||(e=e.substr(0,r)+String.fromCharCode(i)+e.substr(n+1))):(i=e.substring(r+1,n),(o.entities[i]||"amp"==i&&t)&&(e=e.substr(0,r)+(o.entities[i]||"&")+e.substr(n+1))),r=e.indexOf("&",r+1)}return e}function d(e){this.options=e||{},this.tagStyle=Object.assign(o.tagStyle,this.options.tagStyle),this.imgList=e.imgList||[],this.plugins=e.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[]}function h(e){this.handler=e}d.prototype.parse=function(e){for(var t=this.plugins.length;t--;)this.plugins[t].onUpdate&&(e=this.plugins[t].onUpdate(e,o)||e);new h(this).parse(e);while(this.stack.length)this.popNode();return this.nodes},d.prototype.expose=function(){for(var e=this.stack.length;e--;){var t=this.stack[e];if("a"==t.name||t.c)return;t.c=1}},d.prototype.hook=function(e){for(var t=this.plugins.length;t--;)if(this.plugins[t].onParse&&0==this.plugins[t].onParse(e,this))return!1;return!0},d.prototype.getUrl=function(e){var t=this.options.domain;return"/"==e[0]?"/"==e[1]?e="".concat(t?t.split("://")[0]:"http",":").concat(e):t&&(e=t+e):!t||e.includes("data:")||e.includes("://")||(e="".concat(t,"/").concat(e)),e},d.prototype.parseStyle=function(e){var t=e.attrs,r=(this.tagStyle[e.name]||"").split(";").concat((t.style||"").split(";")),n={},i="";t.id&&(this.options.useAnchor?this.expose():"img"!=e.name&&"a"!=e.name&&"video"!=e.name&&"audio"!=e.name&&(t.id=void 0)),t.width&&(n.width=parseFloat(t.width)+(t.width.includes("%")?"%":"px"),t.width=void 0),t.height&&(n.height=parseFloat(t.height)+(t.height.includes("%")?"%":"px"),t.height=void 0);for(var o=0,a=r.length;o0||l.includes("safe"))i+=";".concat(f,":").concat(l);else if(!n[f]||l.includes("import")||!n[f].includes("import")){if(l.includes("url")){var d=l.indexOf("(")+1;if(d){while('"'==l[d]||"'"==l[d]||c[l[d]])d++;l=l.substr(0,d)+this.getUrl(l.substr(d))}}else l.includes("rpx")&&(l=l.replace(/[0-9.]+\s*rpx/g,(function(e){return"".concat(parseFloat(e)*s/750,"px")})));n[f]=l}}}return e.attrs.style=i,n},d.prototype.onTagName=function(e){this.tagName=this.xml?e:e.toLowerCase(),"svg"==this.tagName&&(this.xml=!0)},d.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")},d.prototype.onAttrVal=function(e){var t=this.attrName||"";"style"==t||"href"==t?this.attrs[t]=l(e,!0):t.includes("src")?this.attrs[t]=this.getUrl(l(e,!0)):t&&(this.attrs[t]=e)},d.prototype.onOpenTag=function(e){var t=Object.create(null);t.name=this.tagName,t.attrs=this.attrs,this.attrs=Object.create(null);var r=t.attrs,n=this.stack[this.stack.length-1],i=n?n.children:this.nodes,a=this.xml?e:o.voidTags[t.name];if("embed"==t.name){var c=r.src||"";c.includes(".mp4")||c.includes(".3gp")||c.includes(".m3u8")||(r.type||"").includes("video")?t.name="video":(c.includes(".mp3")||c.includes(".wav")||c.includes(".aac")||c.includes(".m4a")||(r.type||"").includes("audio"))&&(t.name="audio"),r.autostart&&(r.autoplay="T"),r.controls="T"}if("video"!=t.name&&"audio"!=t.name||("video"!=t.name||r.id||(r.id="v".concat(u++)),r.controls||r.autoplay||(r.controls="T"),t.src=[],r.src&&(t.src.push(r.src),r.src=void 0),this.expose()),a){if(!this.hook(t)||o.ignoreTags[t.name])return void("base"!=t.name||this.options.domain?"source"==t.name&&n&&("video"==n.name||"audio"==n.name)&&r.src&&n.src.push(r.src):this.options.domain=r.href);var f=this.parseStyle(t);if("img"==t.name){if(r.src&&(r.src.includes("webp")&&(t.webp="T"),r.src.includes("data:")&&!r["original-src"]&&(r.ignore="T"),!r.ignore||t.webp||r.src.includes("cloud://"))){for(var l=this.stack.length;l--;){var d=this.stack[l];if("a"==d.name){t.a=d.attrs;break}var h=d.attrs.style||"";if(!h.includes("flex:")||h.includes("flex:0")||h.includes("flex: 0")||f.width&&f.width.includes("%"))if(h.includes("flex")&&"100%"==f.width)for(var p=l+1;p.5?y[b].toUpperCase():y[b]}m+=y.substr(b),y=m}}this.imgList.push(y)}"inline"==f.display&&(f.display=""),r.ignore&&(f["max-width"]=f["max-width"]||"100%",r.style+=";-webkit-touch-callout:none"),parseInt(f.width)>s&&(f.height=void 0),f.width&&(f.width.includes("auto")?f.width="":(t.w="T",f.height&&!f.height.includes("auto")&&(t.h="T")))}else if("svg"==t.name)return i.push(t),this.stack.push(t),void this.popNode();for(var x in f)f[x]&&(r.style+=";".concat(x,":").concat(f[x].replace(" !important","")));r.style=r.style.substr(1)||void 0}else("pre"==t.name||(r.style||"").includes("white-space")&&r.style.includes("pre"))&&(this.pre=t.pre=!0),t.children=[],this.stack.push(t);i.push(t)},d.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 r=this.stack.length?this.stack[this.stack.length-1].children:this.nodes;r.push({name:e,attrs:{}})}},d.prototype.popNode=function(){var e=this.stack.pop(),r=e.attrs,i=e.children,a=this.stack[this.stack.length-1],c=a?a.children:this.nodes;if(!this.hook(e)||o.ignoreTags[e.name])return"title"==e.name&&i.length&&"text"==i[0].type&&this.options.setTitle&&t.setNavigationBarTitle({title:i[0].text}),void c.pop();if(e.pre){e.pre=this.pre=void 0;for(var u=this.stack.length;u--;)this.stack[u].pre&&(this.pre=!0)}var f={};if("svg"==e.name){var l="",d=r,h=d.style;return r.style="",r.xmlns="http://www.w3.org/2000/svg",function e(t){for(var r in l+="<".concat(t.name),t.attrs){var n=t.attrs[r];n&&("viewbox"==r&&(r="viewBox"),l+=" ".concat(r,'="').concat(n,'"'))}if(t.children){l+=">";for(var i=0;i")}else l+="/>"}(e),e.name="img",e.attrs={src:"data:image/svg+xml;utf8,".concat(l.replace(/#/g,"%23")),style:h,ignore:"T"},e.children=void 0,void(this.xml=!1)}if(r.align&&("table"==e.name?"center"==r.align?f["margin-inline-start"]=f["margin-inline-end"]="auto":f.float=r.align:f["text-align"]=r.align,r.align=void 0),"font"==e.name&&(r.color&&(f.color=r.color,r.color=void 0),r.face&&(f["font-family"]=r.face,r.face=void 0),r.size)){var p=parseInt(r.size);isNaN(p)||(p<1?p=1:p>7&&(p=7),f["font-size"]=["xx-small","x-small","small","medium","large","x-large","xx-large"][p-1]),r.size=void 0}if((r.class||"").includes("align-center")&&(f["text-align"]="center"),Object.assign(f,this.parseStyle(e)),parseInt(f.width)>s&&(f["max-width"]="100%",f["box-sizing"]="border-box"),o.blockTags[e.name]?e.name="div":o.trustTags[e.name]||this.xml||(e.name="span"),"a"==e.name||"ad"==e.name)this.expose();else if("ul"!=e.name&&"ol"!=e.name||!e.c){if("table"==e.name){var v=parseFloat(r.cellpadding),g=parseFloat(r.cellspacing),y=parseFloat(r.border);if(e.c&&(isNaN(v)&&(v=2),isNaN(g)&&(g=2)),y&&(r.style+=";border:".concat(y,"px solid gray")),e.flag&&e.c){f.display="grid",g?(f["grid-gap"]="".concat(g,"px"),f.padding="".concat(g,"px")):y&&(r.style+=";border-left:0;border-top:0");var b=[],m=[],x=[],w={};(function e(t){for(var r=0;r"==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,this.state=this.endTag;var r="--\x3e";"!"==e&&"-"==this.content[this.i+2]&&"-"==this.content[this.i+3]||(r=">"),this.i=this.content.indexOf(r,this.i),-1!=this.i&&(this.i+=r.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++},e.exports=d}).call(this,r(1)["default"])},,,,,,,,function(e,t,r){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{time:{type:[String,Number],default:e.$u.props.countDown.time},format:{type:String,default:e.$u.props.countDown.format},autoStart:{type:Boolean,default:e.$u.props.countDown.autoStart},millisecond:{type:Boolean,default:e.$u.props.countDown.millisecond}}};t.default=r}).call(this,r(1)["default"])},function(e,t,r){"use strict";function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r="".concat(e);while(r.length2){for(var r="",n=0,i=e.length-2;n