(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-trading_hall-index"],{"026a":function(e,t,n){"use strict";var r=n("356f"),i=n.n(r);i.a},"05127":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.content-header[data-v-581daed2]{position:absolute;position:fixed;top:0;z-index:8888}.header[data-v-581daed2]{width:100%;display:flex;justify-content:flex-start;align-items:center;background-color:#fff}.header .top-header[data-v-581daed2]{width:80%}.header .top-header .search[data-v-581daed2]{padding:%?17?% %?30?%}.header .top-header .search .search-content[data-v-581daed2]{width:100%;height:%?60?%;padding-left:%?30?%;border-radius:%?30?%;background-color:#f5f5f5;font-size:%?26?%}.header .top-header .search .iconfont[data-v-581daed2]{margin-right:%?10?%;font-size:%?26?%;color:#999}.header .top-header .search .input-placeholder[data-v-581daed2]{font-size:%?26?%;color:#999}.header .top-header .search .input[data-v-581daed2]{flex:1}.header .top-header .search .search_btn[data-v-581daed2]{width:%?98?%;height:%?60?%;margin-left:%?20?%}.header .top-header .search .search_btn uni-image[data-v-581daed2]{width:100%;height:100%}.header .recom[data-v-581daed2]{width:%?200?%;margin-right:%?39?%;height:%?60?%;text-align:center;border-radius:30px;border:1px solid #f84221;display:flex;justify-content:center;align-items:center}.header .recom .recom_bnt[data-v-581daed2]{font-size:%?32?%;font-family:PingFang SC;font-weight:400}.header .recom .recom_bnt .recom_sym[data-v-581daed2]{width:%?28?%;height:%?28?%;margin-left:%?0?%}.header .recom .recom_bnt .recom_sym uni-image[data-v-581daed2]{width:%?28?%;height:%?28?%;margin-left:%?10?%}.type_switch[data-v-581daed2]{display:flex;justify-content:space-around;padding-top:%?17?%;font-size:%?32?%;background-color:#fff;font-weight:500;color:#999;padding-bottom:%?10?%}.type_switch .tradcolor[data-v-581daed2]{color:#f84221}.type_switch .tradline[data-v-581daed2]{width:%?26?%;height:%?4?%;opacity:1;background-color:#f84221;margin:0 auto}.tardimg_add[data-v-581daed2]{position:absolute;bottom:%?193?%;right:%?0?%;position:fixed;width:%?176?%;height:%?176?%}.tardimg_add uni-image[data-v-581daed2]{width:100%;width:100%}.list[data-v-581daed2]{width:%?694.74?%;margin:0 auto;display:flex;margin-bottom:%?21?%;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:%?170?%}.list .item[data-v-581daed2]{width:%?336?%;height:%?561?%;background-color:#fff;margin-top:%?21?%;border-radius:%?14?% %?14?% 0 0}.list .item .shopimg[data-v-581daed2]{width:%?336?%;height:%?314?%}.list .item .item_text[data-v-581daed2]{width:100%;padding-left:%?25?%;padding-right:%?25?%;margin-top:%?19?%;margin-bottom:%?20?%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.list .item .item_text span[data-v-581daed2]{height:%?35?%;width:100%;padding:3px;margin:2px;background:linear-gradient(180deg,#f98649,#f34e45);border-radius:7px 0 7px 0;font-weight:400;color:#fff;font-size:%?25?%;margin-right:%?15?%}.list .item .item_prices[data-v-581daed2]{font-size:18px;color:#f84221;padding-left:15px;padding-bottom:%?18?%;border-bottom:1px solid #707070}.list .item .item_name[data-v-581daed2]{width:100%;padding-left:%?15?%;display:flex;font-size:%?28?%;font-family:PingFang SC;font-weight:400;color:#333}.list .item .item_name .avater[data-v-581daed2]{width:%?60?%;height:%?60?%;border-radius:50%;margin-top:%?19?%;margin-right:%?10?%}.list .item .item_name .avater uni-image[data-v-581daed2]{width:100%;height:100%;display:block}.list .item .item_name .item_name_text[data-v-581daed2]{margin-top:%?30?%}',""]),e.exports=t},"090f":function(e,t,n){"use strict";n.r(t);var r=n("ac2b"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},1028:function(e,t,n){"use strict";(function(e){n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3"),n("7db0"),n("d3b7"),n("159b"),n("c975"),n("99af");var r={name:"uni-stat-select",mixins:[e.mixinDatacom||{}],data:function(){return{showSelector:!1,current:"",mixinDatacomResData:[],apps:[],channels:[]}},props:{localdata:{type:Array,default:function(){return[]}},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},label:{type:String,default:""},placeholder:{type:String,default:"..."},emptyTips:{type:String,default:"无选项"},clear:{type:Boolean,default:!0},defItem:{type:Number,default:0}},created:function(){this.last="".concat(this.collection,"_last_selected_option_value"),this.collection&&!this.localdata.length&&this.mixinDatacomEasyGet()},computed:{typePlaceholder:function(){var e={"opendb-stat-app-versions":"版本","opendb-app-channels":"渠道","opendb-app-list":"应用"}[this.collection];return e?"请选择"+e:"请选择"}},watch:{localdata:{immediate:!0,handler:function(e,t){Array.isArray(e)&&(this.mixinDatacomResData=e)}},value:function(){this.initDefVal()},mixinDatacomResData:{immediate:!0,handler:function(e){e.length&&this.initDefVal()}}},methods:{initDefVal:function(){var e="";if(!this.value&&0!==this.value||this.isDisabled(this.value))if(!this.modelValue&&0!==this.modelValue||this.isDisabled(this.modelValue)){var t;if(this.collection&&(t=uni.getStorageSync(this.last)),t||0===t)e=t;else{var n="";this.defItem>0&&this.defItem0?"".concat(t,"(").concat(n,")"):t||"未命名".concat(r)}}};t.default=r}).call(this,n("a9ff")["default"])},1219:function(e,t,n){var r=n("ba25");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("3be07f42",r,!0,{sourceMap:!1,shadowMode:!1})},"14ea":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3");var r={props:{icon:{type:String,default:uni.$u.props.empty.icon},text:{type:String,default:uni.$u.props.empty.text},textColor:{type:String,default:uni.$u.props.empty.textColor},textSize:{type:[String,Number],default:uni.$u.props.empty.textSize},iconColor:{type:String,default:uni.$u.props.empty.iconColor},iconSize:{type:[String,Number],default:uni.$u.props.empty.iconSize},mode:{type:String,default:uni.$u.props.empty.mode},width:{type:[String,Number],default:uni.$u.props.empty.width},height:{type:[String,Number],default:uni.$u.props.empty.height},show:{type:Boolean,default:uni.$u.props.empty.show},marginTop:{type:[String,Number],default:uni.$u.props.empty.marginTop}}};t.default=r},"18ea":function(e,t,n){"use strict";n.r(t);var r=n("1028"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"1aed":function(e,t,n){"use strict";n.r(t);var r=n("baed"),i=n("3ba7f");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("98ca");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"25886798",null,!1,r["a"],void 0);t["default"]=s.exports},"1e9b":function(e,t,n){var r=n("5e9a");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("7684bad0",r,!0,{sourceMap:!1,shadowMode:!1})},2286:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("a9e3");var r={props:{name:{type:String,default:uni.$u.props.icon.name},color:{type:String,default:uni.$u.props.icon.color},size:{type:[String,Number],default:uni.$u.props.icon.size},bold:{type:Boolean,default:uni.$u.props.icon.bold},index:{type:[String,Number],default:uni.$u.props.icon.index},hoverClass:{type:String,default:uni.$u.props.icon.hoverClass},customPrefix:{type:String,default:uni.$u.props.icon.customPrefix},label:{type:[String,Number],default:uni.$u.props.icon.label},labelPos:{type:String,default:uni.$u.props.icon.labelPos},labelSize:{type:[String,Number],default:uni.$u.props.icon.labelSize},labelColor:{type:String,default:uni.$u.props.icon.labelColor},space:{type:[String,Number],default:uni.$u.props.icon.space},imgMode:{type:String,default:uni.$u.props.icon.imgMode},width:{type:[String,Number],default:uni.$u.props.icon.width},height:{type:[String,Number],default:uni.$u.props.icon.height},top:{type:[String,Number],default:uni.$u.props.icon.top},stop:{type:Boolean,default:uni.$u.props.icon.stop}}};t.default=r},"257e":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},n("d9e2"),n("d401")},2615:function(e,t,n){"use strict";n.r(t);var r=n("b791"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},"262e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.default)(e,t)},n("d9e2"),n("d401"),n("7a82");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("b380"))},"27fd":function(e,t,n){e.exports=n.p+"static/img/trad-add.b860ca48.png"},2909:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)||(0,i.default)(e)||(0,a.default)(e)||(0,o.default)()};var r=s(n("6005")),i=s(n("db90")),a=s(n("06c5")),o=s(n("3427"));function s(e){return e&&e.__esModule?e:{default:e}}},"2caf":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,i.default)();return function(){var n,i=(0,r.default)(e);if(t){var o=(0,r.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,a.default)(this,n)}},n("4ae1"),n("d3b7"),n("f8c9");var r=o(n("7e84")),i=o(n("d967")),a=o(n("99de"));function o(e){return e&&e.__esModule?e:{default:e}}},"2e25":function(e,t,n){var r=n("5525");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("b3a1479c",r,!0,{sourceMap:!1,shadowMode:!1})},3114:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-stat__select"},[e.label?n("span",{staticClass:"uni-label-text hide-on-phone"},[e._v(e._s(e.label+":"))]):e._e(),n("v-uni-view",{staticClass:"uni-select"},[n("v-uni-view",{staticClass:"uni-select__input-box",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}},[e._t("default")],2),e.showSelector?n("v-uni-view",{staticClass:"uni-select--mask",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.toggleSelector.apply(void 0,arguments)}}}):e._e(),e.showSelector?n("v-uni-view",{staticClass:"uni-select__selector"},[n("v-uni-view",{staticClass:"uni-popper__arrow"}),n("v-uni-scroll-view",{staticClass:"uni-select__selector-scroll",attrs:{"scroll-y":"true"}},[0===e.mixinDatacomResData.length?n("v-uni-view",{staticClass:"uni-select__selector-empty"},[n("v-uni-text",[e._v(e._s(e.emptyTips))])],1):e._l(e.mixinDatacomResData,(function(t,r){return n("v-uni-view",{key:r,staticClass:"uni-select__selector-item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.change(t)}}},[n("v-uni-text",{class:{"uni-select__selector__disabled":t.disable}},[e._v(e._s(e.formatItemName(t)))])],1)}))],2)],1):e._e()],1)],1)},i=[]},3427:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n("d9e2"),n("d401")},"356f":function(e,t,n){var r=n("6cc6");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("1128a35a",r,!0,{sourceMap:!1,shadowMode:!1})},"3ba7f":function(e,t,n){"use strict";n.r(t);var r=n("f700"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},4478:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,n("4ae1"),n("d3b7"),n("f8c9"),n("14d9");var r=a(n("b380")),i=a(n("d967"));function a(e){return e&&e.__esModule?e:{default:e}}function o(e,n,a){return(0,i.default)()?t.default=o=Reflect.construct.bind():t.default=o=function(e,t,n){var i=[null];i.push.apply(i,t);var a=Function.bind.apply(e,i),o=new a;return n&&(0,r.default)(o,n.prototype),o},o.apply(null,arguments)}},5089:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAi0lEQVQ4T2NkoBAwUqifYRAZ8MtRzpht/6OzxHgJWS3YC78cZE3+MbGc/s/wv4Nz34NKfIZ8d1JoZ2RgrGD6/9cEZCE8DGAS+AzBpgYlEPEZgksOIxawKcRnMNZoRNYACg+Qn3F5DWc6gBkCMgBfuOBNSD8dFWtBBrDvv9+MK2YGUUokJgViU0OxFwAmvFYRK7JjlQAAAABJRU5ErkJggg=="},5377:function(e,t,n){var r=n("da84"),i=n("83ab"),a=n("edd0"),o=n("ad6d"),s=n("d039"),u=r.RegExp,c=u.prototype,l=i&&s((function(){var e=!0;try{u(".","d")}catch(l){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",i=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},a={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(a.hasIndices="d"),a)i(o,a[o]);var s=Object.getOwnPropertyDescriptor(c,"flags").get.call(t);return s!==r||n!==r}));l&&a(c,"flags",{configurable:!0,get:o})},5465:function(e,t,n){"use strict";n.r(t);var r=n("96ea"),i=n.n(r);for(var a in r)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return r[e]}))}(a);t["default"]=i.a},5525:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-6fa087a0], uni-scroll-view[data-v-6fa087a0], uni-swiper-item[data-v-6fa087a0]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-empty[data-v-6fa087a0]{display:flex;flex-direction:row;flex-direction:column;justify-content:center;align-items:center}.u-empty__text[data-v-6fa087a0]{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}.u-slot-wrap[data-v-6fa087a0]{display:flex;flex-direction:row;justify-content:center;align-items:center;margin-top:%?20?%}',""]),e.exports=t},5600:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getCommunityList=function(e){return i.default.get("community/lst",e,{noAuth:!0})},t.getCommunityUpdate=function(e){return i.default.post("community/update",e,{login:!0})},t.getCommunityaddCart=function(e){return i.default.post("community/addCart",e,{noAuth:!0})},t.getCommunitycreate=function(e){return i.default.post("community/create",e,{login:!0})},t.getCommunitygetOrderList=function(e){return i.default.get("community/product/lst",e,{noAuth:!0})},t.getCommunityshow=function(e){return i.default.get("community/show/"+e,{},{noAuth:!0})},t.getProductDetail=function(e){return i.default.get("store/product/detail/"+e)},t.getresaleDetail=function(e){return i.default.get("community/resale/"+e)},t.getresaleEdit=function(e,t){return i.default.post("community/resale/edit/"+e,t)};var i=r(n("6860"))},"56fc":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAA3CAYAAAC8TkynAAAPH0lEQVRoQ71bC3BUVZr+/nNvP/MgIQ9e8lAMDoMBxADKQ3TGVwlOuVU7jDtjDbXDKpSsrx3dGR+McaesHZyphZkREIEFHUSXMIwICvhCZhQ3iEAIuEwgPEQIkBed7vTz3vNvndvppJPuJN1N4q3qSvW95/7//33/4/znnA6hD6/6Y8dynE5tLRHvzx455qU+FJ2yKONwyY8BeoUZVSTwqnZ9zQYicHcCKGXJvQw8v3+/Oyff8TmYxgNcn3NtaXFfyU5VDh8aM8wUdBjAwI535Bv6+OMP9CsBvGmT5i29eguYfqAUEeFCztiyIaka3lfjjOoxlWCa0lUem/JO2w3HP0imp08iwHvo04VMWBlTQIJ25ZROv7uvgKUiJ1I1ppyInk8+1rhHH1+7o18ICFTuujqi6bXMyvHK/WCT5Y35k+84mIrhfTGGj46aaJr2zwFyJsiTvF6fWPPP/ZICZ/ducuXCXQVQSbsCQsOAm2cX7d69W588cvD3SGiTTZajCZRPgmqyR475RV+Ajsng3dCNgdd9RYQOG9oVcK0WNm6kspOefiHAt2fzYybTsnjhQhMLRP6wgyaJ7SB0LoQEmTu2TOtLAozqMWvAND9RJktpGFPtk07u70lfxjWgZctrBTJXrwPD1u4NRl3eoMISb1hrZnTc7zCA5YDJd/QZAcbB0fdBaJtBlCCTWT5nm3D8xd7IzpyAHavnSynWdFJAeEg4c/4qhTiWtOAQwgNm/aOjN6NSeX75byPyc/KcNcxUmFD1wV/oWs0MGodwb7IyIoC5XHjeKTrHTIPjFDTl3/dwQfO76yYSjIMsJSAlSG8PEDA4kD/7QXdvRqXyPHK45BOCmJUk9IOaZpbSuNoTqcjJiIDLf156DZtcG6+ACDv1a8t2md6Gh6WnvoQ9lyA9DRADikH2dqc35s99MsFjqRgaP8asLnmEmX5vdRxdLinN+faJJ/47VZkZEdD4xot3EWhnvBKteNQyKhr+uGypB3vURxFQD1JRkJ0fHSpo4cB5/7EqVeOSjeP/GzXKjDiqAWQnPpebtS3Hf0TlkKnqyIiApnWLXwTomXgltqn3HuFw8Pp4AhQRMA1AaMpZhwsW/WFCqoZ1N848fF01A9cnCf16Lez7LpWdb0hHR2YErH7qHWa6N16RfdLdF1i3De4goD4iG7/eiVDITUTb/9i6/g/laXgmGQijqmQlSCxMGhlsfN82ofbjdMCrsRkR0LD80X3EmGylILOVipyd9xv7xNtvZ09DKbdcqow0Nf6q6KfP7EnXoO7GR6qunklk/whJpleCXKaNP/5EJroyIqBx2UP7mGlyvEIm8Z2ix1f+Xd1jZs1bvffn3Hxhrmyuc6G57vOw5+Kzgx5fczETI/ko7KY55ixACStMIj4hRPMNNK7el4nszAh4ad4uBu5sV8jwF/7itazY9+CZmmsinksrzca6SfLyxUJuroNsutBQ9OTaokyMNA6P2Q7Q7CR5L6URmWSfdKoqE7kppUDzvvcnkhH+CQVbXRTyHYw0tlbwmb1LQNSRi4wzhc++OSpmRON77+Vq2aGFHPQNpYCvWPqaiQMtWwbuqt1CFRVmOsYaVSX/BKINAImu7xGbi7QJJ1akIy9BRk8ve498sYhDrS9z0AfrE/CBQ60+vnTmM26uuyv2LoP/p+iZt+5vOXnkQQr5Z5mB1vXwem7kkO8nCHhLOeAFAl4lw4+g96WCJ9a8kIrRLfuHFrrt2bUA5Sbx/l+1cM3tVIZIKrK6G9NtCnhrDt/CRmgPgq1R4G0EINRGhKfBmusBaWjhYEnuTwtn+/mh72fziz5Q6yMI2wfR2PdqmrauGE8B379w0DeP/d5cJUf6fTOLn3vz094MjxwafRsJ7cOu3idwQOih0fTdM3W9yejteVICmFn4Th07ykHfdxBojYLvSoD67m+BiDRtzZnj+6MuuBSg0QyaC/BlivjvNG3u8XrJ9m3KiN3l5fqEYs9cDvqKmlq+WVdSvqOlN+P4+Jy3pAzO5UgjQfrjhhv/oI+vfbu391N5npQAz9mjAyminUTIRwj4TiPoq+WAL8RBnwIgYhEB5c2AL+ge0/J319gwIXvKWMqaqHH9ujpi4ysEQ/Op9P2zqRjSdYxRM3u2EGIrGNZKj00/OHzeAJmbtetrftzTRmc6+tKaBS5vX72JQ60/jCdAH9AM2yA/bIMMaEVTAPcNQMMaE2x8SoRKhCJLaNyupsCBNSNFJDzdJEwTjBnMnKXp/IC97F8ruxrMR2/NZnuOCu+4dpd3UOOx+9GEEN1zIpQOyJ7GpkVA87ZXf42w/7l4Ajjig3vcZUAS7MMNkA5JAt+wMdBjBq7bYxoFhYCcDsbwqCFtO9SqgYp+X+XMaXiUxpW3L13l8TmVQKfNzQhJDKXrtqXV5qZCUnoEbF0xD0Z4fScCAj5ARpA11Q0zUAC9OBeQ+SxZtC3V2MLMJCDdxWDHQMiswWBHPvTGaoimr1QjWS8N88Gs6Y9tNY/P+TcCfhe/0pPgB/SS7W+kAijdMWkRcH7j7wqddn0DGYE7SJdCODWILBdEljuuqW4DrNnBrkJIZyHYXWQBT7J6BUIe2Or2QgQaQPrlCnte5Q8Aits04S/pWt9NRJ8Y6YJLZXyvBKg9/0hJa6khxQwVygTczMwj28O5LZTZlg3pKmoDXQDYk6xWe7BINFQjy1wKEvHTOjOFg6No3IdfpwImkzEJBHDV61mtJt9MjOkgmg7mqQRua0Ri4UxgZwGkq9DyLDvzAC31na6IIWHTOzd2Ts8K2MOfd8JgGq5y29hNKTVNmYBX75D/0GvDYGozoGE6gOmQrI629A4Pq28uSOdAK2/ZmQ925CXrTLu1QTIjHGGEIhJhg2HTCXlZbSoAaKEjcLe8pI4U2mWYhhPhpmmmAJU7Ha4lVLbgijq+7oyj4KE/LWAWL7MC3RbO0jHAAhnzMPTE84aeGFdiTCkRagNtSsBhE3DYCDaNEDKiZLjsAg7dQE7DAhA6p3iD9hTownE4zBb1zhHJxs+ypj/5Raae7pYA9SBYtfFuKWUFwNnKCdJZAGPQZEDr2NDsTTErLxvqEwVORHDoZIFWVwy0IidGhl0XcDc/D9042Um8T78TPvt91j2tsRoOTw0cQsnkpQ6vuZjueqq1N3tSfd5eA3wH/jSBgPcIGKrmLalnwRhyE2BrX+UmyFSgg2FpgVMhbtcJ9jZPG2bUy4oMTaj7BKdNQNcIqgao+zJyAcNCv+y0K2MiC/Xu/wSog3zy18N+sRIu9quJ5JwNtECf/sS7qYLsaVynImjVAyneBrjMalGEDUZxmTWNJbsUAf6QtECpj5XjkWgkKMAxTyslsXRQzxQhKjLsOhCqugtDhg+2IkZdDc6nYWgjEtSpd5wNX8LuOWHVCmJsDPq8jwy4u7zpSohImAUu7V6enT0gZyOAe1UkMASMwlJwbvtyP0GfP2TCH5QWYAVchbYpY+mgCp8K+zZCdLLAqlS5eHg5Ln75AvKLBmLMjEWAXgSf/d72fkHTNGiabn1iBImW07Cd/wxkBhURzZL5qSUftq4rLy9PeSc4HkDy1eDucj2Qe80yEC+KFmaGkVcCWTCuR7Kj+R8N7665LiUj1Bb6KgoUIcffHG51iSNvWwv3kJlt6aIhy2WHrneATlBqhmH75hNo3mh7IMAfmhHjQddtT59ONxp6bIT8B17/OZh/qxpZJdh0D4apiqPa5k5yKQJUCihwVq631QF1T/FopURbnTDDXlRXzMSQW98CO4epcge3ywanXYNNE0mbxq4qReNXsF3cB5IRRWQIxM85nAN+n86U2Wsn2Lp//WxB2MyA00oJWw4iQ2egu6lR1YVASKI1JKFpKh06ip9FooqEiER9TQXsQ+fA7XTApUC3pUbaHlSt9NmPIYIN1g41EQ6RjMy33/LsgVRk9UqAEuI7sHaCYKF+YlJkLWw0O4wh06ymqLviqDweWw7FgHtaDRgS1mzgVLXClrDNl4rNiWNYQr+4H1pDFUiRAJhgLLW7/c9TWXn8TkrCuykRoN7y/+/qq8iu72SJcVYkkAaj+EZwzlUpGa0iI2LNDn0EOolW8p2D/Zs9oIg3tuw+CcbDzlt+uas7I1MmQAlo2r9qgAv2jQy+JybQyB8LWTA2JRK+lUFmBHrdXujNx2IpwZL5DaeDH6epzzR2tSEtAqz5YP8qm5/1l4nooehCn2HmjIgWx8TD2m8FczIlwnPKminUdBm9uJ6IHnPMfPrN+PFpE2CJYqbAwfX/Dil/07F+GAhj2My02ud+YUcaEN6vIS7XQvOeic4QUQJif95nmAtdsxafUjcyIiBmuH/f6h9B0AYwdKsuaC5ErpoF2HP6BVu3Qi3QZ6F5ai3wUdDRpXs78LitOAJamflXjlnGsisiQIkP71s30RDmbjDnWQaSQETNEFn9/DtJaUL4FOhTEN7TIGlED2o7eVt9T3bPIsYnCIuvmAAlyr935TDYdHUSPDqqkGAU3gCZf23fRoIF+hy0lpMQLcnCOx5sYgQQuAWgd8Hm5ku2ph3Dpy0N9AkBCmX9p2tzsh3yHQbfGgs9M68EZvGkKyOBZRS05ySEldNq3yBhZ7nN8YneJuIWybxNQFbYh+TupJJHO22p9xkBVlAd3WQP+i+vZMbPlJFKuOkqhqHqQuLZZvfEsISa0zXPaQifyumwhbljx6hnAoi4GczbGKLCMdj5QVfQVzwL9ORSNUMEv1j1LIN+HWU3urcQGXFHt+1zdBhHQXvPxIV3nEd7IYCAJjC/zSy3OC4EP6C5HecMPdnbpxEQryiw75UHAPG6dWLSdi4QHnE74Iz7JbsC3XoeWsuZbsK7NwLQQMTvsJQVDteJj6js1bT3DfuNAKs4Vr5yMxE+AsMV3VsgGIOnWJGgiljHlBWNgB4reEcEqNOhvwDGZkfY/zHdVn5F5wX9SoAV2fuWDw6yth9gteZNq4DFTWGXIPEXCFnhDHn3XCnofq0ByfKN9/6XKyBcnxBhSsoVHHyBGH9WOb3t3N49c+em98uSVKeefo+AmCG86YdacNT3NoD5/ljRS4gI5joCtjBQseT9pr9lus2VKng17lsjIFbog5XLXwDR4o6cl3UEqtBAFbabFn0W17qlgyPjsd8qATErA5Ur5jHLiZBU4Z62SJ2HdftfXRkjS/HF/wfk8WbRsEL6AwAAAABJRU5ErkJggg=="},"582a":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={"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":""}},"5a59":function(e,t,n){"use strict";n.r(t);var r=n("7fb1"),i=n("2615");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("a912");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"6fa087a0",null,!1,r["a"],void 0);t["default"]=s.exports},"5e9a":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.empty-box[data-v-25886798]{display:flex;flex-direction:column;justify-content:center;align-items:center;margin-top:%?200?%}.empty-box uni-image[data-v-25886798]{width:%?414?%;height:%?240?%}.empty-box .txt[data-v-25886798]{font-size:%?26?%;color:#999}',""]),e.exports=t},6005:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(Array.isArray(e))return(0,r.default)(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(n("6b75"))},"6a8f":function(e,t,n){"use strict";n.r(t);var r=n("3114"),i=n("18ea");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("026a");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"53a29a19",null,!1,r["a"],void 0);t["default"]=s.exports},"6c57":function(e,t,n){var r=n("23e7"),i=n("da84");r({global:!0,forced:i.globalThis!==i},{globalThis:i})},"6cc6":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */@media screen and (max-width:100%){.hide-on-phone[data-v-53a29a19]{display:none}}.uni-stat__select[data-v-53a29a19]{display:flex;align-items:center;cursor:pointer}.uni-label-text[data-v-53a29a19]{font-size:14px;font-weight:700;color:#6a6a6a;margin:auto 0;margin-right:5px}.uni-select[data-v-53a29a19]{font-size:14px;box-sizing:border-box;border-radius:1px;padding:0 5px;position:relative;display:flex;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center}.uni-select__label[data-v-53a29a19]{font-size:16px;line-height:22px;padding-right:10px;color:#909399}.uni-select__input-box[data-v-53a29a19]{min-height:20px;position:relative;display:flex;flex:1;flex-direction:row;align-items:center}.uni-select__input[data-v-53a29a19]{flex:1;font-size:14px;height:22px;line-height:22px}.uni-select__input-plac[data-v-53a29a19]{font-size:14px;color:#909399}.uni-select__selector[data-v-53a29a19]{box-sizing:border-box;position:absolute;top:calc(100% + 12px);right:0;width:auto;background-color:#fff;border:1px solid #ebeef5;border-radius:6px;box-shadow:0 2px 12px 0 rgba(0,0,0,.1);z-index:2;padding:4px 0}.uni-select__selector-scroll[data-v-53a29a19]{max-height:200px;box-sizing:border-box}.uni-select__selector-empty[data-v-53a29a19],\r\n.uni-select__selector-item[data-v-53a29a19]{display:flex;cursor:pointer;line-height:20px;font-size:14px;text-align:center;\r\n /* border-bottom: solid 1px $uni-border-3; */padding:10px 20px;width:auto;white-space:nowrap;flex-wrap:nowrap}.uni-select__selector-item[data-v-53a29a19]:hover{background-color:#f9f9f9}.uni-select__selector-empty[data-v-53a29a19]:last-child,\r\n.uni-select__selector-item[data-v-53a29a19]:last-child{border-bottom:none}.uni-select__selector__disabled[data-v-53a29a19]{opacity:.4;cursor:default}\r\n/* picker 弹出层通用的指示小三角 */.uni-popper__arrow[data-v-53a29a19],\r\n.uni-popper__arrow[data-v-53a29a19]::after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid;border-width:6px}.uni-popper__arrow[data-v-53a29a19]{-webkit-filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));filter:drop-shadow(0 2px 12px rgba(0,0,0,.03));top:-6px;right:10%;margin-right:3px;border-top-width:0;border-bottom-color:#ebeef5}.uni-popper__arrow[data-v-53a29a19]::after{content:" ";top:1px;margin-left:-6px;border-top-width:0;border-bottom-color:#fff}.uni-select__input-text[data-v-53a29a19]{color:#3a3a3a;white-space:nowrap;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden;width:auto}.uni-select__input-placeholder[data-v-53a29a19]{color:#6a6a6a}.uni-select--mask[data-v-53a29a19]{position:fixed;top:0;bottom:0;right:0;left:0}',""]),e.exports=t},"7b0d":function(e,t,n){var r=n("8112");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("d37e43f0",r,!0,{sourceMap:!1,shadowMode:!1})},"7e84":function(e,t,n){"use strict";function r(e){return t.default=r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,n("131a"),n("3410")},"7fb1":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={uIcon:n("f8c8").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.show?n("v-uni-view",{staticClass:"u-empty",style:[e.emptyStyle]},[e.isSrc?n("v-uni-image",{style:{width:e.$u.addUnit(e.width),height:e.$u.addUnit(e.height)},attrs:{src:e.icon,mode:"widthFix"}}):n("u-icon",{attrs:{name:"message"===e.mode?"chat":"empty-"+e.mode,size:e.iconSize,color:e.iconColor,"margin-top":"14"}}),n("v-uni-text",{staticClass:"u-empty__text",style:[e.textStyle]},[e._v(e._s(e.text?e.text:e.icons[e.mode]))]),e.$slots.default||e.$slots.$default?n("v-uni-view",{staticClass:"u-empty__wrap"},[e._t("default")],2):e._e()],1):e._e()},a=[]},"802d":function(e,t,n){"use strict";var r=n("f384"),i=n.n(r);i.a},8112:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.mark[data-v-762c2530]{position:fixed;width:100%;height:100%;background-color:rgba(0,0,0,.3);left:0;bottom:0;top:0;right:0;display:flex;justify-content:center;align-items:center}.release[data-v-762c2530]{position:absolute;bottom:0}.release_content[data-v-762c2530]{width:%?694?%;height:%?137?%;background:#fcf3ee;border-radius:%?14?% %?14?% %?14?% %?14?%;opacity:1;margin-bottom:%?21?%;display:flex;justify-content:space-between;padding:0 %?26?%}.release_content .release_content_left[data-v-762c2530]{display:flex}.release_content .release_content_right[data-v-762c2530]{height:%?137?%;line-height:%?137?%}.release_content .release_img[data-v-762c2530]{width:%?111?%;height:%?96?%;margin-top:%?21?%;margin-right:%?19?%}.release_content .release_img uni-image[data-v-762c2530]{width:%?111?%;height:%?96?%}.release_content .release_imga[data-v-762c2530]{width:%?76?%;height:%?113?%;margin-top:%?5?%;margin-right:%?50?%}.release_content .release_imga uni-image[data-v-762c2530]{width:%?76?%;height:%?113?%}.release_content .title[data-v-762c2530]{margin-top:%?23?%}.release_content .title1[data-v-762c2530]{font-size:%?32?%;font-family:PingFang SC-Medium,PingFang SC;font-weight:500;color:#333}.release_content .title2[data-v-762c2530]{font-size:%?28?%;font-family:PingFang SC-Regular,PingFang SC;font-weight:400;color:#666;margin-top:%?11?%}.release_close[data-v-762c2530]{width:%?248?%;height:%?248?%;margin:0 auto}.release_close uni-image[data-v-762c2530]{width:%?248?%;height:%?248?%}',""]),e.exports=t},"8a24":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAiCAYAAAAKyxrjAAAFfklEQVRYR9VZW2xUVRRd+9w7M51WbCRQsGA7A5ooGB5RlPKcgQ8ML0EMFooBGogG+yG0saDBDykgEghKCAbKw0TUAGlKAT8w0hZ5aFFLQJT4gCkveSjaVjqPO3O2uYODTNvp3OncUTi/Z+21z9r7nH3P2ZeQwGjJ691L2NRJLHg4gfqD4QQoAwRLAjTGoQwN4JsgnGPwaZJ0JKSFqjKOXLhslISMAFtcjqGKQCkzTQRBNWKTMgwjCOa9EngnvcbzZTw/HQr0uno6CGlrQZgCIkPBiOfQtHlmBqOS4Vtkr7niicUbc9Etbud0hbCJgUzTFpUCIgIaQ6HQ/PTa87vao29XoN/lKGXCyrsua7ECpGdTcmlabcPq1pA2Av0ux2IWtDIFwU45JUleYqvxvH2noyiBfnfOdIb45J7JXOuQMTNB5tuqz++MTN0W6BuR0wdWpR7A/aaEOisbysQZEENGg3L6AlYb8NsVyO/rIQ9UQH5VbYqbdkiaOCgH2Q81nNPnbgv0ux17mGhy0l6FgDJzAZSCV0BWG1hK4PqvYF8LKCsbZM8Iu5Cnv0FwVQn4UkPSLtsQMFelVXuevS1Qc+cMD5FyOGlPQkBdvBbK2Mngpj8R2rEBoQMVQNMft6iFAA14GuqLRRCD8sCNN6CVzAKfPZO069YEMiiHpx9qOBrOoM/tqARRWHEyQ5lVBHXuIsizZ6AtKQxvyVhDz7BaWAy+ehmBec8ALX8l47odW65MO+iZSs0je3a3qPbLSd9QsrJh/eBzwOdFYP74DsVFVqO+ugzKpAIEP9qI0JY2FT45wQxNC3p7UcDlmC0FbU+ODVAKS6AWLEBwYxlCu7cao8voAuvHhwFmBJ5/CtACxuwMooTkOeR3O7Yy0VyDNjFhlverQH37ITBtyL9nzgCp+tpqKOOmIbAwH3yyzoCFcQgxbyPvGEcdgYYYN2sfad1/Gmi8gcDMkQlRialzYCl6E9q6pZB7dyRkGw9M4DryuZ3XQOgeDxxv3vrZz+ALv0ArHBcPGjUvxr8AS/FKBDcsQ6hiW0K2BsDXyDfG6QNgMwDuEBI+S10yEZg8ENC/fQZH5OxqbxVB1n5q0MogjNlnmkB16XoorgkIFBeATxwzuALAsmk/RN/H4J8xArhm+B1rlN+vb9HrIHQzahELJ4a6YVm+BbL+GLSSAkN0Im8sLGWbIU/WQVuYb8gmIRDjOvndzuNMeDIhwxhgy3u7IPo/geDWNeFbTIcjOxfWd3eCHuh2q4KeOm7GEqI4mPG1XkW3EWiOKey9HLCu3w3K7IpQ1YcIlq8Gbja3odYzpy5aAeraHfLCOWgvTQD8eikwdzB4u2kf+sjSqM+jsJSVg3pkg282Qx4+APnTd+EbDj2YA30r62dO/7jLix6Ih5yQ9UehvTHPdJHhD33zsB5ZFlv6paSvancGP6MLlBkvh69hdF/b15d+5vRtzD+egmV5OcTgYeaLZAS1oDc7fNn2ux2VbMJlu80Gs1hB/QaDch8GqVbw71chfzgRXS1taakRybwnrdozJSzQ68oZQUL5wtwTkABbCkRGPZf+yaI5D94EdEVB7xT57RFopbMTujC0Kp/RD95wFkflOkkVJ0xrWXRGqC6ybDPokccRyB8WLkydGE0seaC9xhPuld59TSchbvVvOiOuo6ZTJFJ+d+7rTGJ5JyL3v5vEbRtGVuh1ORYTYcU90z7UM8fQe6KrWkc5dut+VO5zQhX60/yubt0DaJQsC9OrGyra20Jxfr44HERYZ0ZDKjX7lytZYmGkoCQsMGLQMjo3TxEoZhKTAFhTs1jDrH6w3Ccl1qTXNsR9lyX0S6wxr3dXu11MYBZjmTDgv/wBSoyTEvJgwCf3ZR67eMNoOP4GoL0u0Px+LCoAAAAASUVORK5CYII="},"8cf8":function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-icon",class:["u-icon--"+e.labelPos],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clickHandler.apply(void 0,arguments)}}},[e.isImg?n("v-uni-image",{staticClass:"u-icon__img",style:[e.imgStyle,e.$u.addStyle(e.customStyle)],attrs:{src:e.name,mode:e.imgMode}}):n("v-uni-text",{staticClass:"u-icon__icon",class:e.uClasses,style:[e.iconStyle,e.$u.addStyle(e.customStyle)],attrs:{"hover-class":e.hoverClass}},[e._v(e._s(e.icon))]),""!==e.label?n("v-uni-text",{staticClass:"u-icon__label",style:{color:e.labelColor,fontSize:e.$u.addUnit(e.labelSize),marginLeft:"right"==e.labelPos?e.$u.addUnit(e.space):0,marginTop:"bottom"==e.labelPos?e.$u.addUnit(e.space):0,marginRight:"left"==e.labelPos?e.$u.addUnit(e.space):0,marginBottom:"top"==e.labelPos?e.$u.addUnit(e.space):0}},[e._v(e._s(e.label))]):e._e()],1)},i=[]},"8e1a1":function(e,t,n){"use strict";n.r(t);var r=n("b4f2"),i=n("5465");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("e872");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"762c2530",null,!1,r["a"],void 0);t["default"]=s.exports},"8f39":function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("14d9"),n("caad"),n("2532"),n("c975");var i=r(n("582a")),a=r(n("2286")),o={name:"u-icon",data:function(){return{}},mixins:[uni.$u.mpMixin,uni.$u.mixin,a.default],computed:{uClasses:function(){var e=[];return e.push(this.customPrefix+"-"+this.name),this.color&&uni.$u.config.type.includes(this.color)&&e.push("u-icon__icon--"+this.color),e},iconStyle:function(){var e={};return e={fontSize:uni.$u.addUnit(this.size),lineHeight:uni.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:uni.$u.addUnit(this.top)},this.color&&!uni.$u.config.type.includes(this.color)&&(e.color=this.color),e},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var e={};return e.width=this.width?uni.$u.addUnit(this.width):uni.$u.addUnit(this.size),e.height=this.height?uni.$u.addUnit(this.height):uni.$u.addUnit(this.size),e},icon:function(){return i.default["uicon-"+this.name]||this.name}},methods:{clickHandler:function(e){this.$emit("click",this.index),this.stop&&this.preventEvent(e)}}};t.default=o},9072:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=u,n("4ec9"),n("d3b7"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var r=s(n("7e84")),i=s(n("b380")),a=s(n("fa95")),o=s(n("4478"));function s(e){return e&&e.__esModule?e:{default:e}}function u(e){var n="function"===typeof Map?new Map:void 0;return t.default=u=function(e){if(null===e||!(0,a.default)(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return(0,o.default)(e,arguments,(0,r.default)(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(t,e)},u(e)}},"96ea":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;n("f89e");var r={props:{isShow:{type:Boolean,default:!1},bottom:{type:Boolean,default:!1}},data:function(){return{list:[{img:n("56fc"),title1:"发布调货商品",title2:"镇街店铺快捷调货"},{img:n("d2dc3"),title1:"发布打折商品",title2:"发布店铺打折商品"}]}},methods:{navigtion:function(e){"发布调货商品"==e.title1?uni.navigateTo({url:"/pages/trading_hall/transfer_goods/index"}):uni.navigateTo({url:"/pages/trading_hall/adddiscounts/index"})},close:function(){this.$emit("close")},cancel:function(){this.$emit("cancel")},confirm:function(){this.$emit("confirm")}}};t.default=r},"98ca":function(e,t,n){"use strict";var r=n("1e9b"),i=n.n(r);i.a},"99de":function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t&&("object"===(0,r.default)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.default)(e)},n("d9e2"),n("d401");var r=a(n("53ca")),i=a(n("257e"));function a(e){return e&&e.__esModule?e:{default:e}}},a912:function(e,t,n){"use strict";var r=n("2e25"),i=n.n(r);i.a},a9ff:function(e,t,n){"use strict";(function(e){var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("257e")),a=r(n("3835")),o=r(n("53ca")),s=r(n("2909")),u=r(n("b85c")),c=r(n("c7eb")),l=r(n("1da1")),f=r(n("5530")),d=r(n("262e")),h=r(n("2caf")),p=r(n("9072")),g=r(n("d4ec")),v=r(n("bee2"));n("6c57"),n("d9e2"),n("d401"),n("d3b7"),n("25f0"),n("fb6a"),n("14d9"),n("e25e"),n("99af"),n("a434"),n("c975"),n("159b"),n("b64b"),n("13d5"),n("caad"),n("2532"),n("4e82"),n("ac1f"),n("e9c4"),n("498a"),n("00b4"),n("d81d"),n("7a82"),n("ddb0"),n("841c"),n("a9e3"),n("5319"),n("4d63"),n("c607"),n("2c3e"),n("ace4"),n("5cc6"),n("907a"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("986a"),n("1d02"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("b39a"),n("72f7"),n("a4d3"),n("e01a"),n("aff5"),n("7db0"),n("466d"),n("5377"),n("26e9"),n("f4b3"),n("bf19"),n("4de4"),n("a630"),n("3ca3"),n("81b2"),n("0eb6"),n("b7ef"),n("8bd4"),n("baa5");var m=r(n("0f76"));function y(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof e||"undefined"!=typeof self&&self;var w=y((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},a=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},o=i.WordArray=a.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var a=0;a>>2]>>>24-a%4*8&255;t[r+a>>>2]|=o<<24-(r+a)%4*8}else for(a=0;a>>2]=n[a>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=a.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){t=t;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},a=0;a>>2]>>>24-i%4*8&255;r.push((a>>>4).toString(16)),r.push((15&a).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new o.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(a))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new o.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new o.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,a=this.blockSize,s=i/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,i);if(u){for(var l=0;l>>24)|4278255360&(i<<24|i>>>8)}var a=this._hash.words,o=e[t+0],u=e[t+1],h=e[t+2],p=e[t+3],g=e[t+4],v=e[t+5],m=e[t+6],y=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],k=e[t+11],x=e[t+12],A=e[t+13],S=e[t+14],I=e[t+15],T=a[0],P=a[1],C=a[2],O=a[3];T=c(T,P,C,O,o,7,s[0]),O=c(O,T,P,C,u,12,s[1]),C=c(C,O,T,P,h,17,s[2]),P=c(P,C,O,T,p,22,s[3]),T=c(T,P,C,O,g,7,s[4]),O=c(O,T,P,C,v,12,s[5]),C=c(C,O,T,P,m,17,s[6]),P=c(P,C,O,T,y,22,s[7]),T=c(T,P,C,O,w,7,s[8]),O=c(O,T,P,C,b,12,s[9]),C=c(C,O,T,P,_,17,s[10]),P=c(P,C,O,T,k,22,s[11]),T=c(T,P,C,O,x,7,s[12]),O=c(O,T,P,C,A,12,s[13]),C=c(C,O,T,P,S,17,s[14]),T=l(T,P=c(P,C,O,T,I,22,s[15]),C,O,u,5,s[16]),O=l(O,T,P,C,m,9,s[17]),C=l(C,O,T,P,k,14,s[18]),P=l(P,C,O,T,o,20,s[19]),T=l(T,P,C,O,v,5,s[20]),O=l(O,T,P,C,_,9,s[21]),C=l(C,O,T,P,I,14,s[22]),P=l(P,C,O,T,g,20,s[23]),T=l(T,P,C,O,b,5,s[24]),O=l(O,T,P,C,S,9,s[25]),C=l(C,O,T,P,p,14,s[26]),P=l(P,C,O,T,w,20,s[27]),T=l(T,P,C,O,A,5,s[28]),O=l(O,T,P,C,h,9,s[29]),C=l(C,O,T,P,y,14,s[30]),T=f(T,P=l(P,C,O,T,x,20,s[31]),C,O,v,4,s[32]),O=f(O,T,P,C,w,11,s[33]),C=f(C,O,T,P,k,16,s[34]),P=f(P,C,O,T,S,23,s[35]),T=f(T,P,C,O,u,4,s[36]),O=f(O,T,P,C,g,11,s[37]),C=f(C,O,T,P,y,16,s[38]),P=f(P,C,O,T,_,23,s[39]),T=f(T,P,C,O,A,4,s[40]),O=f(O,T,P,C,o,11,s[41]),C=f(C,O,T,P,p,16,s[42]),P=f(P,C,O,T,m,23,s[43]),T=f(T,P,C,O,b,4,s[44]),O=f(O,T,P,C,x,11,s[45]),C=f(C,O,T,P,I,16,s[46]),T=d(T,P=f(P,C,O,T,h,23,s[47]),C,O,o,6,s[48]),O=d(O,T,P,C,y,10,s[49]),C=d(C,O,T,P,S,15,s[50]),P=d(P,C,O,T,v,21,s[51]),T=d(T,P,C,O,x,6,s[52]),O=d(O,T,P,C,p,10,s[53]),C=d(C,O,T,P,_,15,s[54]),P=d(P,C,O,T,u,21,s[55]),T=d(T,P,C,O,w,6,s[56]),O=d(O,T,P,C,I,10,s[57]),C=d(C,O,T,P,m,15,s[58]),P=d(P,C,O,T,A,21,s[59]),T=d(T,P,C,O,g,6,s[60]),O=d(O,T,P,C,k,10,s[61]),C=d(C,O,T,P,h,15,s[62]),P=d(P,C,O,T,b,21,s[63]),a[0]=a[0]+T|0,a[1]=a[1]+P|0,a[2]=a[2]+C|0,a[3]=a[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var a=e.floor(r/4294967296),o=r;n[15+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),n[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,a,o){var s=e+(t&n|~t&r)+i+o;return(s<>>32-a)+t}function l(e,t,n,r,i,a,o){var s=e+(t&r|n&~r)+i+o;return(s<>>32-a)+t}function f(e,t,n,r,i,a,o){var s=e+(t^n^r)+i+o;return(s<>>32-a)+t}function d(e,t,n,r,i,a,o){var s=e+(n^(t|~r))+i+o;return(s<>>32-a)+t}t.MD5=a._createHelper(u),t.HmacMD5=a._createHmacHelper(u)}(Math),n.MD5)})),y((function(e,t){var n;e.exports=(n=b,void function(){var e=n,t=e.lib.Base,r=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var a=this._oKey=t.clone(),o=this._iKey=t.clone(),s=a.words,u=o.words,c=0;c>>6-o%4*2;i[a>>>2]|=(s|u)<<24-a%4*8,a++}return t.create(i,a)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],a=0;a>>2]>>>24-a%4*8&255)<<16|(t[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|t[a+2>>>2]>>>24-(a+2)%4*8&255,s=0;s<4&&a+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,r=t.retryRule,i=void 0===r?R:r;(0,g.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,v.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case R:return this.status===P;case M:return this.status!==I}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=I,this.promise=this.createPromise().then((function(t){return e.status=T,Promise.resolve(t)}),(function(t){return e.status=P,Promise.reject(t)})),this.promise):this.promise}}]),e}();function N(e){return e&&"string"==typeof e?JSON.parse(e):e}var U=N([]),j="web",q=(N(void 0),N([])||[]);try{(n("adbc").default||n("adbc")).appid}catch(rr){}var F={};function B(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=F,n=e,Object.prototype.hasOwnProperty.call(t,n)||(F[e]=r),F[e]}"app"===j&&(F=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var K=["invoke","success","fail","complete"],Q=B("_globalUniCloudInterceptor");function J(e,t){Q[e]||(Q[e]={}),O(t)&&Object.keys(t).forEach((function(n){K.indexOf(n)>-1&&function(e,t,n){var r=Q[e][t];r||(r=Q[e][t]=[]),-1===r.indexOf(n)&&E(n)&&r.push(n)}(e,n,t[n])}))}function z(e,t){Q[e]||(Q[e]={}),O(t)?Object.keys(t).forEach((function(n){K.indexOf(n)>-1&&function(e,t,n){var r=Q[e][t];if(r){var i=r.indexOf(n);i>-1&&r.splice(i,1)}}(e,n,t[n])})):delete Q[e]}function H(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function W(e,t){return Q[e]&&Q[e][t]||[]}function V(e){J("callObject",e)}var $=B("_globalUniCloudListener"),G="response",Y="needLogin",Z="refreshToken",X="clientdb",ee="cloudfunction",te="cloudobject";function ne(e){return $[e]||($[e]=[]),$[e]}function re(e,t){var n=ne(e);n.includes(t)||n.push(t)}function ie(e,t){var n=ne(e),r=n.indexOf(t);-1!==r&&n.splice(r,1)}function ae(e,t){for(var n=ne(e),r=0;r0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,p.default)(Error)),he={request:function(e){return uni.request(e)},uploadFile:function(e){return uni.uploadFile(e)},setStorageSync:function(e,t){return uni.setStorageSync(e,t)},getStorageSync:function(e){return uni.getStorageSync(e)},removeStorageSync:function(e){return uni.removeStorageSync(e)},clearStorageSync:function(){return uni.clearStorageSync()}};function pe(){return{token:he.getStorageSync("uni_id_token")||he.getStorageSync("uniIdToken"),tokenExpired:he.getStorageSync("uni_id_token_expired")}}function ge(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&he.setStorageSync("uni_id_token",t),n&&he.setStorageSync("uni_id_token_expired",n)}function ve(){return le||(le=uni.getSystemInfoSync()),le}function me(){var e=uni.getLocale&&uni.getLocale()||"en";if(fe)return(0,f.default)((0,f.default)({},fe),{},{locale:e,LOCALE:e});for(var t=ve(),n=t.deviceId,r=t.osName,i=t.uniPlatform,a=t.appId,o=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"],s=0;s-1)return;var n=uni.getLaunchOptionsSync(),r=n.scene,i=n.channel;e=i,t=r}}catch(e){}return{channel:e,scene:t}}()),t),(0,f.default)((0,f.default)({},fe),{},{locale:e,LOCALE:e})}var ye,we={sign:function(e,t){var n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),_(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,r){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400)return r(new de({code:"SYS_ERR",message:e.errMsg||"request:fail",requestId:t}));var i=e.data;if(i.error)return r(new de({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,n(i)}}))}))},toBase64:function(e){return x.stringify(k.parse(e))}},be=function(){function e(t){var n=this;(0,g.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),this.config=Object.assign({},{endpoint:0===t.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},t),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=he,this._getAccessTokenPromiseHub=new L({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new de({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:M})}return(0,v.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return we.wrappedRequest(e,this.adapter.request)}},{key:"requestAuth",value:function(e){return this.requestWrapped(e)}},{key:"request",value:function(e,t){var n=this;return Promise.resolve().then((function(){return n.hasAccessToken?t?n.requestWrapped(e):n.requestWrapped(e).catch((function(t){return new Promise((function(e,n){!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((function(){return n.getAccessToken()})).then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))})):n.getAccessToken().then((function(){var t=n.rebuildRequest(e);return n.request(t,!0)}))}))}},{key:"rebuildRequest",value:function(e){var t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=we.sign(t.data,this.config.clientSecret),t}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=we.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.getAccessToken();case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"callFunction",value:function(e){var t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}},{key:"getOSSUploadOptionsFromPath",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):u(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new de({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,h,p,g,v,m,y,w,b,_,k,x,A;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=t.fileType,a=void 0===i?"image":i,o=t.cloudPathAsRealPath,s=void 0!==o&&o,u=t.onUploadProgress,l=t.config,"string"===C(r)){e.next=3;break}throw new de({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(r=r.trim()){e.next=5;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(r)){e.next=7;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(f=l&&l.envType||this.config.envType,!(s&&("/"!==r[0]&&(r="/"+r),r.indexOf("\\")>-1))){e.next=10;break}throw new de({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:f,filename:s?r.split("/").pop():r,fileId:s?r:void 0});case 12:return d=e.sent.result,h="https://"+d.cdnDomain+"/"+d.ossPath,p=d.securityToken,g=d.accessKeyId,v=d.signature,m=d.host,y=d.ossPath,w=d.id,b=d.policy,_=d.ossCallbackUrl,k={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:g,Signature:v,host:m,id:w,key:y,policy:b,success_action_status:200},p&&(k["x-oss-security-token"]=p),_&&(x=JSON.stringify({callbackUrl:_,callbackBody:JSON.stringify({fileId:w,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),k.callback=we.toBase64(x)),A={url:"https://"+d.host,formData:k,fileName:"file",name:"file",filePath:n,fileType:a},e.next=27,this.uploadFileToOSS(Object.assign({},A,{onUploadProgress:u}));case 27:if(!_){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 29:return e.next=31,this.reportOSSUpload({id:w});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:h});case 33:throw new de({code:"UPLOAD_FAILED",message:"文件上传失败"});case 34:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList;return new Promise((function(e,n){Array.isArray(t)&&0!==t.length||n(new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),e({fileList:t.map((function(e){return{fileID:e,tempFileURL:e}}))})}))}},{key:"getFileInfo",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=i.length>0&&void 0!==i[0]?i[0]:{},n=t.fileList,Array.isArray(n)&&0!==n.length){e.next=3;break}throw new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return r={method:"serverless.file.resource.info",params:JSON.stringify({id:n.map((function(e){return e.split("?")[0]})).join(",")})},e.next=6,this.request(this.setupRequest(r));case 6:return e.t0=e.sent.result,e.abrupt("return",{fileList:e.t0});case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),_e={init:function(e){var t=new be(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},ke="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";!function(e){e.local="local",e.none="none",e.session="session"}(ye||(ye={}));var xe,Ae=function(){},Se=y((function(e,t){var n;e.exports=(n=b,function(e){var t=n,r=t.lib,i=r.WordArray,a=r.Hasher,o=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],l=o.SHA256=a.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],l=n[5],f=n[6],d=n[7],h=0;h<64;h++){if(h<16)c[h]=0|e[t+h];else{var p=c[h-15],g=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,v=c[h-2],m=(v<<15|v>>>17)^(v<<13|v>>>19)^v>>>10;c[h]=g+c[h-7]+m+c[h-16]}var y=r&i^r&a^i&a,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[h]+c[h];d=f,f=l,l=s,s=o+b|0,o=a,a=i,i=r,r=b+(w+y)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+a|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=a.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=a._createHelper(l),t.HmacSHA256=a._createHmacHelper(l)}(Math),n.SHA256)})),Ie=Se,Te=y((function(e,t){e.exports=b.HmacSHA256})),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 n=new Promise((function(t,n){e=function(e,r){return e?n(e):t(r)}}));return e.promise=n,e};function Ce(e){return void 0===e}function Oe(e){return"[object Null]"===Object.prototype.toString.call(e)}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(xe||(xe={}));var Ee={adapter:null,runtime:void 0},De=["anonymousUuidKey"],Re=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){var e;return(0,g.default)(this,n),e=t.call(this),Ee.adapter.root.tcbObject||(Ee.adapter.root.tcbObject={}),e}return(0,v.default)(n,[{key:"setItem",value:function(e,t){Ee.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Ee.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Ee.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Ee.adapter.root.tcbObject}}]),n}(Ae);function Me(e,t){switch(e){case"local":return t.localStorage||new Re;case"none":return new Re;default:return t.sessionStorage||new Re}}var Le=function(){function e(t){if((0,g.default)(this,e),!this._storage){this._persistence=Ee.adapter.primaryStorage||t.persistence,this._storage=Me(this._persistence,Ee.adapter);var n="access_token_".concat(t.env),r="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),a="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:r,refreshTokenKey:i,anonymousUuidKey:a,loginTypeKey:o,userInfoKey:s}}}return(0,v.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Me(e,Ee.adapter);for(var r in this.keys){var i=this.keys[r];if(!t||!De.includes(r)){var a=this._storage.getItem(i);Ce(a)||Oe(a)||(n.setItem(i,a),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var r={version:n||"localCachev1",content:t},i=JSON.stringify(r);try{this._storage.setItem(e,i)}catch(e){throw e}}}},{key:"getStore",value:function(e,t){try{if(!this._storage)return}catch(e){return""}t=t||"localCachev1";var n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}},{key:"removeStore",value:function(e){this._storage.removeItem(e)}}]),e}(),Ne={},Ue={};function je(e){return Ne[e]}var qe=(0,v.default)((function e(t,n){(0,g.default)(this,e),this.data=n||null,this.name=t})),Fe=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(e,r){var i;return(0,g.default)(this,n),i=t.call(this,"error",{error:e,data:r}),i.error=e,i}return(0,v.default)(n)}(qe),Be=new(function(){function e(){(0,g.default)(this,e),this._listeners={}}return(0,v.default)(e,[{key:"on",value:function(e,t){return function(e,t,n){n[e]=n[e]||[],n[e].push(t)}(e,t,this._listeners),this}},{key:"off",value:function(e,t){return function(e,t,n){if(n&&n[e]){var r=n[e].indexOf(t);-1!==r&&n[e].splice(r,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Fe)return this;var n="string"==typeof e?new qe(e,t||{}):e,r=n.name;if(this._listens(r)){n.target=this;var i,a=this._listeners[r]?(0,s.default)(this._listeners[r]):[],o=(0,u.default)(a);try{for(o.s();!(i=o.n()).done;){var c=i.value;c.call(this,n)}}catch(l){o.e(l)}finally{o.f()}}return this}},{key:"_listens",value:function(e){return this._listeners[e]&&this._listeners[e].length>0}}]),e}());function Ke(e,t){Be.on(e,t)}function Qe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Be.fire(e,t)}function Je(e,t){Be.off(e,t)}var ze,He="loginStateChanged",We="loginStateExpire",Ve="loginTypeChanged",$e="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"}(ze||(ze={}));var Ye=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],Ze={"X-SDK-Version":"1.3.5"};function Xe(e,t,n){var r=e[t];e[t]=function(t){var i={},a={};n.forEach((function(n){var r=n.call(e,t),o=r.data,s=r.headers;Object.assign(i,o),Object.assign(a,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,f.default)((0,f.default)({},o),i);else for(var n in i)o.append(n,i[n])}(),t.headers=(0,f.default)((0,f.default)({},t.headers||{}),a),r.call(e,t)}}function et(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,f.default)((0,f.default)({},Ze),{},{"x-seqid":e})}}var tt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,g.default)(this,e),this.config=n,this._reqClass=new Ee.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=je(this.config.env),this._localCache=(t=this.config.env,Ue[t]),Xe(this._reqClass,"post",[et]),Xe(this._reqClass,"upload",[et]),Xe(this._reqClass,"download",[et])}return(0,v.default)(e,[{key:"post",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.post(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"upload",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.upload(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"download",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._reqClass.download(t);case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),e.prev=1,e.next=4,this._refreshAccessTokenPromise;case 4:t=e.sent,e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](1),n=e.t0;case 10:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,!n){e.next=12;break}throw n;case 12:return e.abrupt("return",t);case 13:case"end":return e.stop()}}),e,this,[[1,7]])})));return function(){return e.apply(this,arguments)}}()},{key:"_refreshAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s,u,l,f,d,h,p;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,a=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(r),s=this._cache.getStore(i),s){e.next=5;break}throw new de({message:"未登录CloudBase"});case 5:return u={refresh_token:s},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",u);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(f=l.data.code,"SIGN_PARAM_INVALID"!==f&&"REFRESH_TOKEN_EXPIRED"!==f&&"INVALID_REFRESH_TOKEN"!==f){e.next=20;break}if(this._cache.getStore(a)!==ze.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==f){e.next=19;break}return d=this._cache.getStore(o),h=this._cache.getStore(i),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(We),this._cache.removeStore(i);case 20:throw new de({code:l.data.code,message:"刷新access token失败:".concat(l.data.code)});case 21:if(!l.data.access_token){e.next=23;break}return e.abrupt("return",(Qe(Ge),this._cache.setStore(n,l.data.access_token),this._cache.setStore(r,l.data.access_token_expire+Date.now()),{accessToken:l.data.access_token,accessTokenExpire:l.data.access_token_expire}));case 23:l.data.refresh_token&&(this._cache.removeStore(i),this._cache.setStore(i,l.data.refresh_token),this._refreshAccessToken());case 24:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new de({message:"refresh token不存在,登录状态异常"});case 3:if(a=this._cache.getStore(n),o=this._cache.getStore(r),s=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(a,o);case 8:e.t0=!e.sent;case 9:if(e.t1=e.t0,!e.t1){e.next=12;break}s=!1;case 12:return e.abrupt("return",(!a||!o||o2&&void 0!==arguments[2]?arguments[2]:{},r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+="".concat(a,"=").concat(encodeURIComponent(n[a]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(ke,"//tcb-api.tencentcloudapi.com/web",y),m&&(w+=m),e.next=22,this.post((0,f.default)({url:w,data:u},h));case 22:if(b=e.sent,_=b.header&&b.header["x-tcb-trace"],_&&this._localCache.setStore(i,_),(200===Number(b.status)||200===Number(b.statusCode))&&b.data){e.next=26;break}throw new de({code:"NETWORK_ERROR",message:"network request error"});case 26:return e.abrupt("return",b);case 27:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.next=3,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 3:if(r=e.sent,"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==Ye.indexOf(t)){e.next=13;break}return e.next=7,this.refreshAccessToken();case 7:return e.next=9,this.request(t,n,{onUploadProgress:n.onUploadProgress});case 9:if(i=e.sent,!i.data.code){e.next=12;break}throw new de({code:i.data.code,message:i.data.message});case 12:return e.abrupt("return",i.data);case 13:if(!r.data.code){e.next=15;break}throw new de({code:r.data.code,message:r.data.message});case 15:return e.abrupt("return",r.data);case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}}]),e}(),nt={};function rt(e){return nt[e]}var it=function(){function e(t){(0,g.default)(this,e),this.config=t,this._cache=je(t.env),this._request=rt(t.env)}return(0,v.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,r=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(r),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,r=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(r,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e)}}]),e}(),at=function(){function e(t){if((0,g.default)(this,e),!t)throw new de({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=je(this._envId),this._request=rt(this._envId),this.setUserInfo()}return(0,v.default)(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=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getLinkedUidList",{});case 2:return t=e.sent,n=t.data,r=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(r=!0)})),{users:i,hasPrimaryUid:r}));case 7:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setPrimaryUid",value:function(e){return this._request.send("auth.setPrimaryUid",{uid:e})}},{key:"unlink",value:function(e){return this._request.send("auth.unlink",{platform:e})}},{key:"update",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s,u,l;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,r=t.gender,i=t.avatarUrl,a=t.province,o=t.country,s=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:r,avatarUrl:i,province:a,country:o,city:s});case 8:u=e.sent,l=u.data,this.setLocalUserInfo(l);case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"refresh",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.send("auth.getUserInfo",{});case 2:return t=e.sent,n=t.data,e.abrupt("return",(this.setLocalUserInfo(n),n));case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"setUserInfo",value:function(){var e=this,t=this._cache.keys.userInfoKey,n=this._cache.getStore(t);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((function(t){e[t]=n[t]})),this.location={country:n.country,province:n.province,city:n.city}}},{key:"setLocalUserInfo",value:function(e){var t=this._cache.keys.userInfoKey;this._cache.setStore(t,e),this.setUserInfo()}}]),e}(),ot=function(){function e(t){if((0,g.default)(this,e),!t)throw new de({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=je(t);var n=this._cache.keys,r=n.refreshTokenKey,i=n.accessTokenKey,a=n.accessTokenExpireKey,o=this._cache.getStore(r),s=this._cache.getStore(i),u=this._cache.getStore(a);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:u},this.user=new at(t)}return(0,v.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===ze.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===ze.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===ze.WECHAT||this.loginType===ze.WECHAT_OPEN||this.loginType===ze.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),st=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),t=this._cache.keys,n=t.anonymousUuidKey,r=t.refreshTokenKey,i=this._cache.getStore(n)||void 0,a=this._cache.getStore(r)||void 0,e.next=8,this._request.send("auth.signInAnonymously",{anonymous_uuid:i,refresh_token:a});case 8:if(o=e.sent,!o.uuid||!o.refresh_token){e.next=20;break}return this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),e.next=14,this._request.refreshAccessToken();case 14:return Qe(He),Qe(Ve,{env:this.config.env,loginType:ze.ANONYMOUS,persistence:"local"}),s=new ot(this.config.env),e.next=19,s.user.refresh();case 19:return e.abrupt("return",s);case 20:throw new de({message:"匿名登录失败"});case 21:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,r=n.anonymousUuidKey,i=n.refreshTokenKey,a=this._cache.getStore(r),o=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:a,refresh_token:o,ticket:t});case 7:if(s=e.sent,!s.refresh_token){e.next=16;break}return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),e.next=13,this._request.refreshAccessToken();case 13:return Qe($e,{env:this.config.env}),Qe(Ve,{loginType:ze.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new de({message:"匿名转化失败"});case 17:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"_setAnonymousUUID",value:function(e){var t=this._cache.keys,n=t.anonymousUuidKey,r=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(r,ze.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(it),ut=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r;return(0,c.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:"ticket must be a string"});case 2:return n=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signInWithTicket",{ticket:t,refresh_token:this._cache.getStore(n)||""});case 5:if(r=e.sent,!r.refresh_token){e.next=15;break}return this.setRefreshToken(r.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return Qe(He),Qe(Ve,{env:this.config.env,loginType:ze.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)})));return function(t){return e.apply(this,arguments)}}()}]),n}(it),ct=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r,i,a,o,s;return(0,c.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 r=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(r)||""});case 5:if(i=e.sent,a=i.refresh_token,o=i.access_token,s=i.access_token_expire,!a){e.next=22;break}if(this.setRefreshToken(a),!o||!s){e.next=15;break}this.setAccessToken(o,s),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(He),Qe(Ve,{env:this.config.env,loginType:ze.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 22:throw i.code?new de({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new de({message:"邮箱登录失败"});case 23:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"activate",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.activateEndUserMail",{token:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"resetPasswordWithToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.resetPasswordWithToken",{token:t,newPassword:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(it),lt=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r,i,a,o,s;return(0,c.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 n&&(n=""),r=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:ze.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(r)||""});case 6:if(i=e.sent,a=i.refresh_token,o=i.access_token_expire,s=i.access_token,!a){e.next=23;break}if(this.setRefreshToken(a),!s||!o){e.next=16;break}this.setAccessToken(s,o),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(He),Qe(Ve,{env:this.config.env,loginType:ze.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new ot(this.config.env));case 23:throw i.code?new de({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new de({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(it),ft=function(){function e(t){(0,g.default)(this,e),this.config=t,this._cache=je(t.env),this._request=rt(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Ke(Ve,this._onLoginTypeChanged)}return(0,v.default)(e,[{key:"currentUser",get:function(){var e=this.hasLoginState();return e&&e.user||null}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}},{key:"anonymousAuthProvider",value:function(){return new st(this.config)}},{key:"customAuthProvider",value:function(){return new ut(this.config)}},{key:"emailAuthProvider",value:function(){return new ct(this.config)}},{key:"usernameAuthProvider",value:function(){return new lt(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new st(this.config).signIn());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signInWithEmailAndPassword",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ct(this.config).signIn(t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"signInWithUsernameAndPassword",value:function(e,t){return new lt(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new st(this.config)),Ke($e,this._onAnonymousConverted),e.next=3,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"signOut",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==ze.ANONYMOUS){e.next=2;break}throw new de({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,a=this._cache.getStore(n),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 o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(r),this._cache.removeStore(i),Qe(He),Qe(Ve,{env:this.config.env,loginType:ze.NULL,persistence:this.config.persistence}),o));case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"signUpWithEmailAndPassword",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.signUpWithEmailAndPassword",{email:t,password:n}));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"sendPasswordResetEmail",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._request.send("auth.sendPasswordResetEmail",{email:t}));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"onLoginStateChanged",value:function(e){var t=this;Ke(He,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){Ke(We,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){Ke(Ge,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){Ke($e,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;Ke(Ve,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.getAccessToken();case 2:return e.t0=e.sent.accessToken,e.t1=this.config.env,e.abrupt("return",{accessToken:e.t0,env:e.t1});case 5:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"hasLoginState",value:function(){var e=this._cache.keys.refreshTokenKey;return this._cache.getStore(e)?new ot(this.config.env):null}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r;return(0,c.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 n=e.sent,r=n.data,e.abrupt("return",r&&r.isRegistered);case 7:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getLoginState",value:function(){return Promise.resolve(this.hasLoginState())}},{key:"signInWithTicket",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ut(this.config).signIn(t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"shouldRefreshAccessToken",value:function(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}},{key:"getUserInfo",value:function(){return this._request.send("auth.getUserInfo",{}).then((function(e){return e.code?e:(0,f.default)((0,f.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,r=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+r}}},{key:"_onAnonymousConverted",value:function(e){var t=e.data.env;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}},{key:"_onLoginTypeChanged",value:function(e){var t=e.data,n=t.loginType,r=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(r),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),dt=function(e,t){t=t||Pe();var n=rt(this.config.env),r=e.cloudPath,i=e.filePath,a=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){var o=e.data,u=o.url,c=o.authorization,l=o.token,f=o.fileId,d=o.cosFileId,h=e.requestId,p={key:r,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:p,file:i,name:r,fileType:s,onUploadProgress:a}).then((function(e){201===e.statusCode?t(null,{fileID:f,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},ht=function(e,t){t=t||Pe();var n=rt(this.config.env),r=e.cloudPath;return n.send("storage.getUploadMetadata",{path:r}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},pt=function(e,t){var n=e.fileList;if(t=t||Pe(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var r,i=(0,u.default)(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(!a||"string"!=typeof a)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:n};return rt(this.config.env).send("storage.batchDeleteFile",o).then((function(e){e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((function(e){t(e)})),t.promise},gt=function(e,t){var n=e.fileList;t=t||Pe(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var r,i=[],a=(0,u.default)(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;"object"==(0,o.default)(s)?(s.hasOwnProperty("fileID")&&s.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),i.push({fileid:s.fileID,max_age:s.maxAge})):"string"==typeof s?i.push({fileid:s}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"})}}catch(l){a.e(l)}finally{a.f()}var c={file_list:i};return rt(this.config.env).send("storage.batchGetDownloadUrl",c).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=(0,l.default)((0,c.default)().mark((function e(t,n){var r,i,a,o;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r=t.fileID,e.next=3,gt.call(this,{fileList:[{fileID:r,maxAge:600}]});case 3:if(i=e.sent.fileList[0],"SUCCESS"===i.code){e.next=6;break}return e.abrupt("return",n?n(i):new Promise((function(e){e(i)})));case 6:if(a=rt(this.config.env),o=i.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",a.download({url:o}));case 10:return e.t0=n,e.next=13,a.download({url:o});case 13:e.t1=e.sent,(0,e.t0)(e.t1);case 15:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}(),mt=function(e,t){var n,r=e.name,i=e.data,a=e.query,o=e.parse,s=e.search,u=t||Pe();try{n=i?JSON.stringify(i):""}catch(r){return Promise.reject(r)}if(!r)return Promise.reject(new de({code:"PARAM_ERROR",message:"函数名不能为空"}));var c={inQuery:a,parse:o,search:s,function_name:r,request_data:n};return rt(this.config.env).send("functions.invokeFunction",c).then((function(e){if(e.code)u(null,e);else{var t=e.data.response_data;if(o)u(null,{result:t,requestId:e.requestId});else try{t=JSON.parse(e.data.response_data),u(null,{result:t,requestId:e.requestId})}catch(e){u(new de({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},yt={timeout:15e3,persistence:"session"},wt={},bt=function(){function e(t){(0,g.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,v.default)(e,[{key:"init",value:function(t){switch(Ee.adapter||(this.requestClient=new Ee.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,f.default)((0,f.default)({},yt),t),!0){case this.config.timeout>6e5:this.config.timeout=6e5;break;case this.config.timeout<100:this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,r=t||Ee.adapter.primaryStorage||yt.persistence;return r!==this.config.persistence&&(this.config.persistence=r),function(e){var t=e.env;Ne[t]=new Le(e),Ue[t]=new Le((0,f.default)((0,f.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,nt[n.env]=new tt(n),this.authObj=new ft(this.config),this.authObj}},{key:"on",value:function(e,t){return Ke.apply(this,[e,t])}},{key:"off",value:function(e,t){return Je.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return mt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return pt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return gt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return vt.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return dt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return ht.apply(this,[e,t])}},{key:"registerExtension",value:function(e){wt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t,n){var r;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(r=wt[t],r){e.next=3;break}throw new de({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,r.invoke(n,this);case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"useAdapters",value:function(e){var t=function(e){var t,n,r=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=(0,u.default)(r);try{for(i.s();!(n=i.n()).done;){var a=n.value,o=a.isMatch,s=a.genAdapter,c=a.runtime;if(o())return{adapter:s(),runtime:c}}}catch(l){i.e(l)}finally{i.f()}}(e)||{},n=t.adapter,r=t.runtime;n&&(Ee.adapter=n),r&&(Ee.runtime=r)}}]),e}(),_t=new bt;function kt(e,t,n){void 0===n&&(n={});var r=/\?/.test(t),i="";for(var a in n)""===i?!r&&(t+="?"):i+="&",i+=a+"="+encodeURIComponent(n[a]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var xt=function(){function e(){(0,g.default)(this,e)}return(0,v.default)(e,[{key:"post",value:function(e){var t=e.url,n=e.data,r=e.headers;return new Promise((function(e,i){he.request({url:kt("https:",t),data:n,method:"POST",header:r,success:function(t){e(t)},fail:function(e){i(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var r=e.url,i=e.file,a=e.data,o=e.headers,s=e.fileType,u=he.uploadFile({url:kt("https:",r),name:"file",formData:Object.assign({},a),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&a.success_action_status&&(n.statusCode=parseInt(a.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),At={setItem:function(e,t){he.setStorageSync(e,t)},getItem:function(e){return he.getStorageSync(e)},removeItem:function(e){he.removeStorageSync(e)},clear:function(){he.clearStorageSync()}},St={genAdapter:function(){return{root:{},reqClass:xt,localStorage:At,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};_t.useAdapters(St);var It=_t,Tt=It.init;It.init=function(e){e.env=e.spaceId;var t=Tt.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;var n=t.auth;return t.auth=function(e){var t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(e){var n;t[e]=(n=t[e],function(e){e=e||{};var t=ce(e),r=t.success,i=t.fail,a=t.complete;if(!(r||i||a))return n.call(this,e);n.call(this,e).then((function(e){r&&r(e),a&&a(e)}),(function(e){i&&i(e),a&&a(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Pt=It,Ct=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"getAccessToken",value:function(){var e=this;return new Promise((function(t,n){var r="Anonymous_Access_token";e.setAccessToken(r),t(r)}))}},{key:"setupRequest",value:function(e,t){var n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=we.sign(n,this.config.clientSecret);var i=me();r["x-client-info"]=encodeURIComponent(JSON.stringify(i));var a=pe(),o=a.token;return r["x-client-token"]=o,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(r))}}},{key:"uploadFileToOSS",value:function(e){var t=this,n=e.url,r=e.formData,i=e.name,a=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,u){var c=t.adapter.uploadFile({url:n,formData:r,name:i,filePath:a,fileType:o,success:function(t){t&&t.statusCode<400?e(t):u(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){u(new de({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(e){var t,n=this,r=e.filePath,i=e.cloudPath,a=e.fileType,o=void 0===a?"image":a,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,a=i.url,u=i.formData,c=i.name;t=e.result.fileUrl;var l={url:a,formData:u,name:c,filePath:r,fileType:o};return n.uploadFileToOSS(Object.assign({},l,{onUploadProgress:s}))})).then((function(){return n.reportOSSUpload({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:r,fileID:t}):i(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))}))}},{key:"deleteFile",value:function(e){var t=e.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:t})};return this.request(this.setupRequest(n)).then((function(e){if(e.success)return e.result;throw new de({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}},{key:"getTempFileURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fileList,n=e.maxAge;if(!Array.isArray(t)||0===t.length)throw new de({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var r={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(this.setupRequest(r)).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new de({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),n}(be),Ot={init:function(e){var t=new Ct(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Et=y((function(e,t){e.exports=b.enc.Hex}));function Dt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,r=t.functionName,i=t.method,o=t.headers,s=t.signHeaderKeys,u=void 0===s?[]:s,c=t.config,l=Date.now(),f="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),d=Object.assign({},o,{"x-from-app-id":c.spaceAppId,"x-from-env-id":c.spaceId,"x-to-env-id":c.spaceId,"x-from-instance-id":l,"x-from-function-name":r,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":f,"x-alipay-callid":f,"x-trace-id":f}),h=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(u),p=e.split("?")||[],g=(0,a.default)(p,2),v=g[0],m=void 0===v?"":v,y=g[1],w=void 0===y?"":y,b=function(e){var t=e.signedHeaders.join(";"),n=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),r=Ie(e.body).toString(Et),i="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(n,"\n").concat(t,"\n").concat(r,"\n"),a=Ie(i).toString(Et),o="HMAC-SHA256\n".concat(e.timestamp,"\n").concat(a,"\n"),s=Te(o,e.secretKey).toString(Et);return"HMAC-SHA256 Credential=".concat(e.secretId,", SignedHeaders=").concat(t,", Signature=").concat(s)}({path:m,query:w,method:i,headers:d,timestamp:l,body:JSON.stringify(n),secretId:c.accessKey,secretKey:c.secretKey,signedHeaders:h.sort()});return{url:"".concat(c.endpoint).concat(e),headers:Object.assign({},d,{Authorization:b})}}function Rt(e){var t=e.url,n=e.data,r=e.method,i=void 0===r?"POST":r,a=e.headers,o=void 0===a?{}:a;return new Promise((function(e,r){he.request({url:t,method:i,data:n,header:o,dataType:"json",complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=o["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},a=i.message,s=i.errMsg,u=i.trace_id;return r(new de({code:"SYS_ERR",message:a||s||"request:fail",requestId:u||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function Mt(e,t){var n=e.path,r=e.data,i=e.method,a=void 0===i?"GET":i,o=Dt(n,{functionName:"",data:r,method:a,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t}),s=o.url,u=o.headers;return Rt({url:s,data:r,method:a,headers:u}).then((function(e){var t=e.data||{};if(!t.success)throw new de({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new de({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Lt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new de({code:"INVALID_PARAM",message:"fileID不合法"});t.substring(0,n);var r=t.substring(n+1);return this.config.spaceId,r}function Nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Ut=function(){function e(t){if((0,g.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")})}return(0,v.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,r=e.data,i="POST",a=Dt("/functions/invokeFunction",{functionName:n,data:r,method:i,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t}),o=a.url,s=a.headers;return Rt({url:o,data:r,method:i,headers:s}).then((function(e){return{errCode:0,success:!0,requestId:e.requestId,result:e.data}})).catch((function(e){throw new de({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,r=e.fileType,i=e.formData,a=e.onUploadProgress;return new Promise((function(e,o){var s=he.uploadFile({url:t,filePath:n,fileType:r,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new de({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){o(new de({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof a&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){a({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r,i,a,o,s,u,l,f,d,h;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,r=t.cloudPath,i=void 0===r?"":r,a=t.fileType,o=void 0===a?"image":a,s=t.onUploadProgress,"string"===C(i)){e.next=3;break}throw new de({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new de({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,Mt({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return u=e.sent,l=u.file_id,f=u.upload_url,d=u.form_data,h=d&&d.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:f,filePath:n,fileType:o,formData:h,onUploadProgress:s}).then((function(){return{fileID:l}})));case 15:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"getTempFileURL",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(t){var n,r=this;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.fileList,e.abrupt("return",new Promise((function(e,t){(!n||n.length<0)&&t(new de({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),n.length>50&&t(new de({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));var i,a=[],o=(0,u.default)(n);try{for(o.s();!(i=o.n()).done;){var s=i.value;"string"!==C(s)&&t(new de({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));var c=Lt.call(r,s);a.push({file_id:c,expire:600})}}catch(l){o.e(l)}finally{o.f()}Mt({path:"/?download_url",data:{file_list:a},method:"POST"},r.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:Nt.call(r,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),jt={init:function(e){e.provider="alipay";var t=new Ut(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function qt(e){var t,n=e.data;t=me();var r=JSON.parse(JSON.stringify(n||{}));if(Object.assign(r,{clientInfo:t}),!r.uniIdToken){var i=pe(),a=i.token;a&&(r.uniIdToken=a)}return r}var Ft=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Bt=/[\\^$.*+?()[\]{}|]/g,Kt=RegExp(Bt.source);function Qt(e,t,n){return e.replace(new RegExp((r=t)&&Kt.test(r)?r.replace(Bt,"\\$&"):r,"g"),n);var r}var Jt="request",zt="response";var Ht;Ht="0123456789abcdef";var Wt={code:2e4,message:"System error"},Vt={code:20101,message:"Invalid client"};function $t(e){var t=e||{},n=t.errSubject,r=t.subject,i=t.errCode,a=t.errMsg,o=t.code,s=t.message,u=t.cause;return new de({subject:n||r||"uni-secure-network",code:i||o||Wt.code,message:a||s,cause:u})}var Gt;function Yt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===Jt||t===zt||"both"===t}function Zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,r=void 0===n?{}:n;return"app"===j&&"DCloud-clientDB"===t&&"encryption"===r.redirectTo&&"getAppClientKey"===r.action}function Xt(e){e.functionName,e.result,e.logPvd}function en(e){var t=e.callFunction,n=function(n){var r=this,i=n.name;n.data=qt.call(e,{data:n.data});var a={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],o=Yt(n),s=Zt(n),u=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!u&&Xt.call(r,{functionName:i,result:e,logPvd:a}),Promise.resolve(e)}),(function(e){return!u&&Xt.call(r,{functionName:i,result:e,logPvd:a}),e&&e.message&&(e.message=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.message,n=void 0===t?"":t,r=e.extraInfo,i=void 0===r?{}:r,a=e.formatter,o=void 0===a?[]:a,s=0;s0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=e.functionName,i=ve(),a=i.appId,o=i.uniPlatform,s=i.osName,u=o;"app"===o&&(u=s);var c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,r=U;if(!r)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=r.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!c||!c.accessControl||!c.accessControl.enable)return!1;var l=c.accessControl.function||{},f=Object.keys(l);if(0===f.length)return!0;var d=function(e,t){for(var n,r,i,a=0;a-1&&(r=o):i=o:n=o}return n||r||i}(f,r);if(!d)return!1;if((l[d]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===a&&(e.platform||"").toLowerCase()===u.toLowerCase()})))return!0;throw $t(Vt)}({provider:o,spaceId:s,functionName:u})?new Gt({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):r(t),Object.defineProperty(i,"result",{get:function(){return{}}}),i}}Gt="mp-weixin"!==j&&"app"!==j?function(){return(0,v.default)((function e(){throw(0,g.default)(this,e),$t({message:"Platform ".concat(j," is not supported by secure network")})}))}():function(){return(0,v.default)((function e(){throw(0,g.default)(this,e),$t({message:"Platform ".concat(j," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var tn=Symbol("CLIENT_DB_INTERNAL");function nn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=tn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,r){if("_uniClient"===n)return null;if("symbol"==(0,o.default)(n))return e[n];if(n in e||"string"!=typeof n){var i=e[n];return"function"==typeof i?i.bind(e):i}return t.get(e,n,r)}})}function rn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var r=e[t].indexOf(n);-1!==r&&e[t].splice(r,1)}}}var an=["db.Geo","db.command","command.aggregate"];function on(e,t){return an.indexOf("".concat(e,".").concat(t))>-1}function sn(e){switch(C(e)){case"array":return e.map((function(e){return sn(e)}));case"object":return e._internalType===tn||Object.keys(e).forEach((function(t){e[t]=sn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function un(e){return e&&e.content&&e.content.$method}var cn=function(){function e(t,n,r){(0,g.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=r}return(0,v.default)(e,[{key:"toJSON",value:function(){for(var e=this,t=[e.content];e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((function(e){return{$method:e.$method,$param:sn(e.$param)}}))}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}},{key:"getAction",value:function(){var e=this.toJSON().$db.find((function(e){return"action"===e.$method}));return e&&e.$param&&e.$param[0]}},{key:"getCommand",value:function(){return{$db:this.toJSON().$db.filter((function(e){return"action"!==e.$method}))}}},{key:"isAggregate",get:function(){for(var e=this;e;){var t=un(e),n=un(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}},{key:"isCommand",get:function(){for(var e=this;e;){if("command"===un(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=un(e),n=un(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}},{key:"getNextStageFn",value:function(e){var t=this;return function(){return ln({$method:e,$param:sn(Array.from(arguments))},t,t._database)}}},{key:"count",get:function(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}},{key:"remove",get:function(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}},{key:"get",value:function(){return this._send("get",Array.from(arguments))}},{key:"add",get:function(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}},{key:"update",value:function(){return this._send("update",Array.from(arguments))}},{key:"end",value:function(){return this._send("end",Array.from(arguments))}},{key:"set",get:function(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}},{key:"_send",value:function(e,t){var n=this.getAction(),r=this.getCommand();return r.$db.push({$method:e,$param:sn(t)}),this._database._callCloudFunction({action:n,command:r})}}]),e}();function ln(e,t,n){return nn(new cn(e,t,n),{get:function(e,t){var r="db";return e&&e.content&&(r=e.content.$method),on(r,t)?ln({$method:t},e,n):function(){return ln({$method:t,$param:sn(Array.from(arguments))},e,n)}}})}function fn(e){var t=e.path,n=e.method;return function(){function e(){(0,g.default)(this,e),this.param=Array.from(arguments)}return(0,v.default)(e,[{key:"toJSON",value:function(){return{$newDb:[].concat((0,s.default)(t.map((function(e){return{$method:e}}))),[{$method:n,$param:this.param}])}}},{key:"toString",value:function(){return JSON.stringify(this.toJSON())}}]),e}()}function dn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return nn(new e(t),{get:function(e,t){return on("db",t)?ln({$method:t},null,e):function(){return ln({$method:t,$param:sn(Array.from(arguments))},null,e)}}})}var hn=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){return(0,g.default)(this,n),t.apply(this,arguments)}return(0,v.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,r=e.command,i=e.multiCommand,a=e.queryList;function o(e,t){if(i&&a)for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,r=void 0===n?{}:n,i=t.isJQL,a=void 0!==i&&i;(0,g.default)(this,e),this._uniClient=r,this._authCallBacks={},this._dbCallBacks={},r._isDefault&&(this._dbCallBacks=B("_globalUniCloudDatabaseCallback")),a||(this.auth=rn(this._authCallBacks)),this._isJQL=a,Object.assign(this,rn(this._dbCallBacks)),this.env=nn({},{get:function(e,t){return{$env:t}}}),this.Geo=nn({},{get:function(e,t){return fn({path:["Geo"],method:t})}}),this.serverDate=fn({path:[],method:"serverDate"}),this.RegExp=fn({path:[],method:"RegExp"})}return(0,v.default)(e,[{key:"getCloudEnv",value:function(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}},{key:"_callback",value:function(e,t){var n=this._dbCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,s.default)(t))}))}},{key:"_callbackAuth",value:function(e,t){var n=this._authCallBacks;n[e]&&n[e].forEach((function(e){e.apply(void 0,(0,s.default)(t))}))}},{key:"multiSend",value:function(){var e=Array.from(arguments),t=e.map((function(e){var t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}]),e}()),pn="token无效,跳转登录页面",gn="token过期,跳转登录页面",vn={TOKEN_INVALID_TOKEN_EXPIRED:gn,TOKEN_INVALID_INVALID_CLIENTID:pn,TOKEN_INVALID:pn,TOKEN_INVALID_WRONG_TOKEN:pn,TOKEN_INVALID_ANONYMOUS_USER:pn},mn={"uni-id-token-expired":gn,"uni-id-check-token-failed":pn,"uni-id-token-not-exist":pn,"uni-id-check-device-feature-failed":pn};function yn(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function wn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],r=[];return e.forEach((function(e){!0===e.needLogin?n.push(yn(t,e.path)):!1===e.needLogin&&r.push(yn(t,e.path))})),{needLoginPage:n,notNeedLoginPage:r}}function bn(e){return e.split("?")[0].replace(/^\//,"")}function _n(){return function(e){var t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){var e=getCurrentPages();return e[e.length-1]}())}function kn(){return bn(_n())}function xn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;var n=t.list,r=bn(e);return n.some((function(e){return e.pagePath===r}))}var An,Sn=!!m.default.uniIdRouter,In=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.default,t=e.pages,n=void 0===t?[]:t,r=e.subPackages,i=void 0===r?[]:r,a=e.uniIdRouter,o=void 0===a?{}:a,u=e.tabBar,c=void 0===u?{}:u,l=o.loginPage,f=o.needLogin,d=void 0===f?[]:f,h=o.resToLogin,p=void 0===h||h,g=wn(n),v=g.needLoginPage,y=g.notNeedLoginPage,w=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var r=e.root,i=e.pages,a=void 0===i?[]:i,o=wn(a,r),u=o.needLoginPage,c=o.notNeedLoginPage;t.push.apply(t,(0,s.default)(u)),n.push.apply(n,(0,s.default)(c))})),{needLoginPage:t,notNeedLoginPage:n}}(i),b=w.needLoginPage,_=w.notNeedLoginPage;return{loginPage:l,routerNeedLogin:d,resToLogin:p,needLoginPage:[].concat((0,s.default)(v),(0,s.default)(b)),notNeedLoginPage:[].concat((0,s.default)(y),(0,s.default)(_)),loginPageInTabBar:xn(l,c)}}(),Tn=In.loginPage,Pn=In.routerNeedLogin,Cn=In.resToLogin,On=In.needLoginPage,En=In.notNeedLoginPage,Dn=In.loginPageInTabBar;if(On.indexOf(Tn)>-1)throw new Error("Login page [".concat(Tn,'] should not be "needLogin", please check your pages.json'));function Rn(e){var t=kn();if("/"===e.charAt(0))return e;var n=e.split("?"),r=(0,a.default)(n,2),i=r[0],o=r[1],s=i.replace(/^\//,"").split("/"),u=t.split("/");u.pop();for(var c=0;c-1)&&(On.indexOf(t)>-1||Pn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Ln(e){var t=e.redirect,n=bn(t),r=bn(Tn);return kn()!==r&&n!==r}function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Ln({redirect:n})){var r=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(Tn,n);Dn?"navigateTo"!==t&&"redirectTo"!==t||(t="switchTab"):"switchTab"===t&&(t="navigateTo");var i={navigateTo:uni.navigateTo,redirectTo:uni.redirectTo,switchTab:uni.switchTab,reLaunch:uni.reLaunch};setTimeout((function(){i[t]({url:r})}))}}function Un(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},r=function(){var e,t=pe(),n=t.token,r=t.tokenExpired;if(n){if(r0)return setTimeout((function(){ae(Y,r)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function jn(){!function(){var e=_n(),t=Un({url:e}),n=t.abortLoginPageJump,r=t.autoToLoginPage;n||r&&Nn({api:"redirectTo",redirect:e})}();for(var e=["navigateTo","redirectTo","reLaunch","switchTab"],t=function(t){var n=e[t];uni.addInterceptor(n,{invoke:function(e){var t=Un({url:e.url}),r=t.abortLoginPageJump,i=t.autoToLoginPage;return r?e:i?(Nn({api:n,redirect:Rn(e.url)}),!1):e}})},n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=ne(Y);ue().then((function(){var n=_n();if(n&&Ln({redirect:n}))return t.length>0?ae(Y,Object.assign({uniIdRedirectUrl:n},e)):void(Tn&&Nn({api:"navigateTo",redirect:n}))}))}(n)}))}function Fn(e){!function(e){e.onResponse=function(e){re(G,e)},e.offResponse=function(e){ie(G,e)}}(e),function(e){e.onNeedLogin=function(e){re(Y,e)},e.offNeedLogin=function(e){ie(Y,e)},Sn&&(B("_globalUniCloudStatus").needLoginInit||(B("_globalUniCloudStatus").needLoginInit=!0,ue().then((function(){jn.call(e)})),Cn&&qn.call(e)))}(e),function(e){e.onRefreshToken=function(e){re(Z,e)},e.offRefreshToken=function(e){ie(Z,e)}}(e)}var Bn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Kn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Qn(){var e,t,n=pe().token||"",r=n.split(".");if(!n||3!==r.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=r[1],decodeURIComponent(An(t).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(n){throw new Error("获取当前用户信息出错,详细错误信息为:"+n.message)}return e.tokenExpired=1e3*e.exp,delete e.exp,delete e.iat,e}An="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Kn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,r,i="",a=0;a>16&255):64===r?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var Jn=y((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",r="chooseAndUploadFile:fail";function i(e,t){return e.tempFiles.forEach((function(e,n){e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((function(e){return e.path}))),e}function a(e,t,r){var i=r.onChooseFile,a=r.onUploadProgress;return t.then((function(e){if(i){var t=i(e);if(void 0!==t)return Promise.resolve(t).then((function(t){return void 0===t?e:t}))}return e})).then((function(t){return!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5,i=arguments.length>3?arguments[3]:void 0;(t=Object.assign({},t)).errMsg=n;var a=t.tempFiles,o=a.length,s=0;return new Promise((function(n){for(;s=o)!a.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var c=a[r];e.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress:function(e){e.index=r,e.tempFile=c,e.tempFilePath=c.path,i&&i(e)}}).then((function(e){c.url=e.fileID,r0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?a(e,function(e){var t=e.count,n=e.sizeType,a=e.sourceType,o=void 0===a?["album","camera"]:a,s=e.extension;return new Promise((function(e,a){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:s,success:function(t){e(i(t,"image"))},fail:function(e){a({errMsg:e.errMsg.replace("chooseImage:fail",r)})}})}))}(t),t):"video"===t.type?a(e,function(e){var t=e.camera,n=e.compressed,a=e.maxDuration,o=e.sourceType,s=void 0===o?["album","camera"]:o,u=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:a,sourceType:s,extension:u,success:function(t){var n=t.tempFilePath,r=t.duration,a=t.size,o=t.height,s=t.width;e(i({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:a,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:r,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",r)})}})}))}(t),t):a(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,a){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return a({errMsg:r+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(i(t))},fail:function(e){a({errMsg:e.errMsg.replace("chooseFile:fail",r)})}})}))}(t),t)}}})),zn=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Jn);function Hn(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(n){t.push(e[n])})),t}),(function(t,n){if("manual"!==e.loadtime){for(var r=!1,i=[],a=2;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,r=void 0!==n&&n,i=t.success,a=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,a=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=a.length0&&void 0!==arguments[0]?arguments[0]:{},r=e.database(this.spaceInfo),i=n.action||this.action;i&&(r=r.action(i));var a=n.collection||this.collection;r=Array.isArray(a)?(t=r).collection.apply(t,(0,s.default)(a)):r.collection(a);var o=n.where||this.where;o&&Object.keys(o).length&&(r=r.where(o));var u=n.field||this.field;u&&(r=r.field(u));var c=n.foreignKey||this.foreignKey;c&&(r=r.foreignKey(c));var l=n.groupby||this.groupby;l&&(r=r.groupBy(l));var f=n.groupField||this.groupField;f&&(r=r.groupField(f)),!0===(void 0!==n.distinct?n.distinct:this.distinct)&&(r=r.distinct());var d=n.orderby||this.orderby;d&&(r=r.orderBy(d));var h=void 0!==n.pageCurrent?n.pageCurrent:this.mixinDatacomPage.current,p=void 0!==n.pageSize?n.pageSize:this.mixinDatacomPage.size,g=void 0!==n.getcount?n.getcount:this.getcount,v=void 0!==n.gettree?n.gettree:this.gettree,m=void 0!==n.gettreepath?n.gettreepath:this.gettreepath,y={getCount:g},w={limitLevel:void 0!==n.limitlevel?n.limitlevel:this.limitlevel,startWith:void 0!==n.startwith?n.startwith:this.startwith};return v&&(y.getTree=w),m&&(y.getTreePath=w),r=r.skip(p*(h-1)).limit(p).get(y),r}}}}function Wn(e){return B("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}function Vn(){return $n.apply(this,arguments)}function $n(){return $n=(0,l.default)((0,c.default)().mark((function e(){var t,n,r,i,a,o,s,u=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=u.length>0&&void 0!==u[0]?u[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r,a=Wn(this),"mp-weixin"===j){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(j,"`"));case 4:if(!n||!i){e.next=6;break}throw new Error("[SecureNetwork] openid and callLoginByWeixin cannot be passed at the same time");case 6:if(!n){e.next=8;break}return e.abrupt("return",(a.mpWeixinOpenid=n,{}));case 8:return e.next=10,new Promise((function(e,t){uni.login({success:function(t){e(t.code)},fail:function(e){t(new Error(e.errMsg))}})}));case 10:return o=e.sent,s=this.importObject("uni-id-co",{customUI:!0}),e.next=14,s.secureNetworkHandshakeByWeixin({code:o,callLoginByWeixin:i});case 14:return a.mpWeixinCode=o,e.abrupt("return",{code:o});case 16:case"end":return e.stop()}}),e,this)}))),$n.apply(this,arguments)}function Gn(e){return Yn.apply(this,arguments)}function Yn(){return Yn=(0,l.default)((0,c.default)().mark((function e(t){var n;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=Wn(this),e.abrupt("return",(n.initPromise||(n.initPromise=Vn.call(this,t)),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),Yn.apply(this,arguments)}function Zn(e){var t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((function(r,i){t[e]((0,f.default)((0,f.default)({},n),{},{success:function(e){r(e)},fail:function(e){i(e)}}))}))}}var Xn=function(e){(0,d.default)(n,e);var t=(0,h.default)(n);function n(){var e;return(0,g.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,i.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,v.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([Zn("getSystemInfo")(),Zn("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,a.default)(t,2),r=n[0];r=void 0===r?{}:r;var i=r.appId,o=n[1];o=void 0===o?{}:o;var s=o.cid;if(!i)throw new Error("Invalid appId, please check the manifest.json file");if(!s)throw new Error("Invalid push client id");e._appId=i,e._pushClientId=s,e._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),e.emit("open"),e._initMessageListener()}),(function(t){throw e.emit("error",t),e.close(),t}))}},{key:"open",value:function(){var e=(0,l.default)((0,c.default)().mark((function e(){return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this.init());case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_isUniCloudSSE",value:function(e){if("receive"!==e.type)return!1;var t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}},{key:"_receivePushMessage",value:function(e){if(this._isUniCloudSSE(e)){var t=e&&e.data&&e.data.payload,n=t.action,r=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:r,message:i}),this._consumMessage()}}},{key:"_consumMessage",value:function(){for(var e=this;;){var t=this._payloadQueue.find((function(t){return t.messageId===e._currentMessageId+1}));if(!t)break;this._currentMessageId++,this._parseMessagePayload(t)}}},{key:"_parseMessagePayload",value:function(e){var t=e.action,n=e.messageId,r=e.message;"end"===t?this._end({messageId:n,message:r}):"message"===t&&this._appendMessage({messageId:n,message:r})}},{key:"_appendMessage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("message",t)}},{key:"_end",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(e.messageId,e.message);this.emit("end",t),this.close()}},{key:"_initMessageListener",value:function(){uni.onPushMessage(this._uniPushMessageCallback)}},{key:"_destroy",value:function(){uni.offPushMessage(this._uniPushMessageCallback)}},{key:"toJSON",value:function(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}},{key:"close",value:function(){this._destroy(),this.emit("close")}}]),n}(function(){function e(){(0,g.default)(this,e),this._callback={}}return(0,v.default)(e,[{key:"addListener",value:function(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}},{key:"on",value:function(e,t){return this.addListener(e,t)}},{key:"removeListener",value:function(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');var n=this._callback[e];if(n){var r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(r,1)}}},{key:"off",value:function(e,t){return this.removeListener(e,t)}},{key:"removeAllListener",value:function(e){delete this._callback[e]}},{key:"emit",value:function(e){for(var t=this._callback[e],n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0)return e.init(t).database();if(this._database)return this._database;var n=dn(hn,{uniClient:e});return this._database=n,n},e.databaseForJQL=function(t){if(t&&Object.keys(t).length>0)return e.init(t).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;var n=dn(hn,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=Qn,e.chooseAndUploadFile=zn.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Hn(e)}}),e.SSEChannel=Xn,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,r=t.callLoginByWeixin,i=void 0!==r&&r;return Gn.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.importObject=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==(0,o.default)(t.secretMethods)&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);var r=n,i=r.customUI,a=r.loadingOptions,s=r.errorOptions,u=r.parseSystemError,d=!i;return new Proxy({},{get:function(r,i){switch(i){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.fn,n=e.interceptorName,r=e.getCallbackArgs;return(0,l.default)((0,c.default)().mark((function e(){var i,a,o,s,u,l,d=arguments;return(0,c.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=d.length,a=new Array(i),o=0;o0&&void 0!==s[0]?s[0]:{},n=t.title,r=t.content,i=t.showCancel,a=t.cancelText,o=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:r,showCancel:i,cancelText:a,confirmText:o,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:I,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});case 33:if(T=r.sent,P=T.confirm,!s.retry||!P){r.next=37;break}return r.abrupt("return",h.apply(void 0,v));case 37:throw C=new de({subject:_,code:k,message:x,requestId:p.requestId}),C.detail=p.result,ae(G,{type:te,content:C}),C;case 39:return r.abrupt("return",(ae(G,{type:te,content:p.result}),p.result));case 40:case"end":return r.stop()}}),r,null,[[5,11]])})));function h(){return r.apply(this,arguments)}return h}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName:i,params:n}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((function(e){if(t[e]){var n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){var r=this,i=!1;if("callFunction"===t){var a=n&&n.type||A;i=a!==A}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var u=ce(n),c=u.success,l=u.fail,f=u.complete,d=s.then((function(){return i?Promise.resolve():H(W(t,"invoke"),n)})).then((function(){return e.call(r,n)})).then((function(e){return i?Promise.resolve(e):H(W(t,"success"),e).then((function(){return H(W(t,"complete"),e)})).then((function(){return o&&ae(G,{type:ee,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):H(W(t,"fail"),e).then((function(){return H(W(t,"complete"),e)})).then((function(){return ae(G,{type:ee,content:e}),Promise.reject(e)}))}));if(!(c||l||f))return d;d.then((function(e){c&&c(e),f&&f(e),o&&ae(G,{type:ee,content:e})}),(function(e){l&&l(e),f&&f(e),o&&ae(G,{type:ee,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());(function(){var e=q,t={};if(e&&1===e.length)t=e[0],tr=tr.init(t),tr._isDefault=!0;else{var n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){tr[e]=function(){return Promise.reject(new de({code:"SYS_ERR",message:n}))}}))}Object.assign(tr,{get mixinDatacom(){return Hn(tr)}}),Fn(tr),tr.addInterceptor=J,tr.removeInterceptor=z,tr.interceptObject=V})();var nr=tr;t.default=nr}).call(this,n("c8ba"))},aa98:function(e,t,n){e.exports=n.p+"static/img/trad-close.60094d87.png"},ac2b:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n("2909"));n("e9c4"),n("14d9");var a=n("5600"),o=(n("665e"),r(n("8e1a1"))),s=r(n("1aed")),u={components:{release:o.default,emptyPage:s.default},data:function(){return{status:"loadmore",where:{page:1,limit:10,is_type:3,keyword:""},visible:!1,num:0,options:[{value:"0",text:"推荐"},{value:"1",text:"调货"},{value:"2",text:"打折专区"}],datatlist:[],recomname:"",emptyShow:!1}},onLoad:function(){this.getlist()},onReachBottom:function(){"nomore"!=this.status&&(this.status="loading",this.where.page=++this.where.page,this.getlist(this.num))},methods:{btntap:function(e){this.num=e,this.getlist()},shopping:function(e){var t={type:e.resale_type,id:e.community_id};uni.navigateTo({url:"/pages/trading_hall/product_details/index?key="+encodeURIComponent(JSON.stringify(t))})},open:function(){this.visible=!0},handleSearch:function(){var e=this;0==this.num?this.where.resale_type="":1==this.num?this.where.resale_type=1:this.where.resale_type=2,(0,a.getCommunityList)(this.where).then((function(t){var n;200==t.status&&((n=e.datatlist).push.apply(n,(0,i.default)(t.data.list)),t.data.list.length=0}}};t.default=a},b85c:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.default)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,a=function(){};return{s:a,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:a}}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,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,o=e},f:function(){try{s||null==n["return"]||n["return"]()}finally{if(u)throw o}}}},n("a4d3"),n("e01a"),n("d3b7"),n("d28b"),n("3ca3"),n("ddb0"),n("d9e2"),n("d401");var r=function(e){return e&&e.__esModule?e:{default:e}}(n("06c5"))},ba25:function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-59765974], uni-scroll-view[data-v-59765974], uni-swiper-item[data-v-59765974]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}@font-face{font-family:uicon-iconfont;src:url(https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf) format("truetype")}.u-icon[data-v-59765974]{display:flex;align-items:center}.u-icon--left[data-v-59765974]{flex-direction:row-reverse;align-items:center}.u-icon--right[data-v-59765974]{flex-direction:row;align-items:center}.u-icon--top[data-v-59765974]{flex-direction:column-reverse;justify-content:center}.u-icon--bottom[data-v-59765974]{flex-direction:column;justify-content:center}.u-icon__icon[data-v-59765974]{font-family:uicon-iconfont;position:relative;display:flex;flex-direction:row;align-items:center}.u-icon__icon--primary[data-v-59765974]{color:#3c9cff}.u-icon__icon--success[data-v-59765974]{color:#5ac725}.u-icon__icon--error[data-v-59765974]{color:#f56c6c}.u-icon__icon--warning[data-v-59765974]{color:#f9ae3d}.u-icon__icon--info[data-v-59765974]{color:#909399}.u-icon__img[data-v-59765974]{height:auto;will-change:transform}.u-icon__label[data-v-59765974]{line-height:1}',""]),e.exports=t},baed:function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var r=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"empty-box",style:{"margin-top":this.mt}},[t("v-uni-image",{attrs:{src:"/static/images/empty-box.png"}}),t("v-uni-view",{staticClass:"txt",style:{color:this.color}},[this._v(this._s(this.title))])],1)},i=[]},bf19:function(e,t,n){"use strict";var r=n("23e7"),i=n("c65b");r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return i(URL.prototype.toString,this)}})},d2dc3:function(e,t,n){e.exports=n.p+"static/img/discounts.9b6a3571.png"},d967:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},n("d3b7"),n("f8c9"),n("4ae1")},e800:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return r}));var r={rudonRowMenuDotDotDot:n("6a8f").default,release:n("8e1a1").default,uEmpty:n("5a59").default,uLoadmore:n("39c7").default},i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-uni-view",[r("v-uni-view",{staticClass:"content-header"},[r("v-uni-view",{staticClass:"header"},[r("v-uni-view",{staticClass:"top-header"},[r("v-uni-view",{staticClass:"search"},[r("v-uni-view",{staticClass:"search-content acea-row row-middle"},[r("v-uni-text",{staticClass:"iconfont icon-sousuo"}),r("v-uni-input",{staticClass:"input",attrs:{"confirm-type":"search",placeholder:"请输入关键字"},model:{value:e.where.keyword,callback:function(t){e.$set(e.where,"keyword",t)},expression:"where.keyword"}}),r("v-uni-view",{staticClass:"search_btn"},[r("v-uni-image",{attrs:{src:n("8a24"),mode:"aspectFit"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleSearch.apply(void 0,arguments)}}})],1)],1)],1)],1),r("v-uni-view",{staticClass:"recom"},[r("v-uni-view",{staticClass:"recom_bnt"},[r("rudon-rowMenuDotDotDot",{staticStyle:{color:"#000000"},attrs:{localdata:e.options},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.menuAction(t)}}},[r("v-uni-view",{staticStyle:{color:"#F84221"}},[e._v(e._s(this.recomname))]),r("v-uni-view",{staticClass:"recom_sym"},[r("v-uni-image",{attrs:{src:n("5089"),mode:"aspectFit"}})],1)],1)],1)],1)],1),r("v-uni-view",{staticClass:"type_switch"},e._l(e.options,(function(t,n){return r("v-uni-view",{key:n,staticClass:"recom_mend",class:n==e.num?"tradcolor":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.btntap(n)}}},[e._v(e._s(t.text)),r("v-uni-view",{class:n==e.num?"tradline":""})],1)})),1)],1),r("v-uni-view",{staticClass:"list"},e._l(e.datatlist,(function(t,n){return r("v-uni-view",{key:n,staticClass:"item",on:{click:function(n){arguments[0]=n=e.$handleEvent(n),e.shopping(t)}}},[r("v-uni-image",{staticClass:"shopimg",attrs:{src:t.image[0],mode:"aspectFit"}}),r("v-uni-view",{staticClass:"item_text"},[1==t.resale_type?r("span",[e._v("调货")]):r("span",[e._v("打折")]),e._v(e._s(t.title))]),r("v-uni-view",{staticClass:"item_prices"},[r("span",[e._v("¥")]),e._v(e._s(t.total_price))]),r("v-uni-view",{staticClass:"item_name"},[r("v-uni-image",{staticClass:"avater",attrs:{src:t.mer_avatar,mode:"aspectFit"}}),r("v-uni-view",{staticClass:"item_name_text"},[e._v(e._s(t.mer_name))])],1)],1)})),1),r("v-uni-view",{staticClass:"tardimg_add",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.open.apply(void 0,arguments)}}},[r("v-uni-image",{attrs:{src:n("27fd"),mode:"aspectFit"}})],1),r("release",{staticStyle:{"z-index":"999999!important"},attrs:{isShow:e.visible,bottom:!0},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.closeMadle.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancel.apply(void 0,arguments)},confirm:function(t){arguments[0]=t=e.$handleEvent(t),e.confirm.apply(void 0,arguments)}}}),e.emptyShow?r("v-uni-view",{staticClass:"empty_wrapper"},[r("u-empty",{attrs:{show:e.emptyShow,mode:"list",icon:"http://cdn.uviewui.com/uview/empty/list.png"}})],1):e._e(),e.datatlist.length>0?r("u-loadmore",{attrs:{status:e.status}}):e._e()],1)},a=[]},e872:function(e,t,n){"use strict";var r=n("7b0d"),i=n.n(r);i.a},ecd6:function(e,t,n){"use strict";n.r(t);var r=n("e800"),i=n("090f");for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);n("802d");var o=n("f0c5"),s=Object(o["a"])(i["default"],r["b"],r["c"],!1,null,"581daed2",null,!1,r["a"],void 0);t["default"]=s.exports},eefa:function(e,t,n){"use strict";var r=n("1219"),i=n.n(r);i.a},f384:function(e,t,n){var r=n("05127");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("4f06").default;i("691375c8",r,!0,{sourceMap:!1,shadowMode:!1})},f4b3:function(e,t,n){"use strict";var r=n("23e7"),i=n("d039"),a=n("7b0b"),o=n("c04e"),s=i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));r({target:"Date",proto:!0,arity:1,forced:s},{toJSON:function(e){var t=a(this),n=o(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},f700:function(e,t,n){"use strict";n("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={props:{title:{type:String,default:"暂无记录"},color:{type:String,default:"#999"},mt:{type:String,default:"200rpx"}}};t.default=r},f89e:function(e,t,n){"use strict";n("7a82");var r=n("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.ActionSheet=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#000000";return new Promise((function(n,r){uni.showActionSheet({itemList:e,itemColor:t,success:function(e){n(e.tapIndex)},fail:function(e){r(e.errMsg)}})}))},t.Authorize=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scope.userInfo";return new Promise((function(t,n){uni.authorize({scope:e,success:function(e){t(e)},fail:function(e){n(e)}})}))},t.GetUserInfo=function(){return new Promise((function(e,t){uni.getUserInfo({success:function(t){e(t)},fail:function(e){t(e)}})}))},t.Loading=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"正在加载...",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};uni.showLoading((0,a.default)({title:e,mask:!0},t))},t.Modal=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"提示",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"这是一个模态弹窗!",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{showCancel:!0,cancelText:"取消",confirmText:"确定"};return new Promise((function(r,i){uni.showModal((0,a.default)((0,a.default)({},n),{},{title:e,content:t,success:function(e){e.confirm&&r(),e.cancel&&i()}}))}))},t.ScrollTo=function(e){uni.pageScrollTo({scrollTop:e,duration:300})},t.Toast=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:800,i=(0,a.default)({title:e,duration:r,position:"center",mask:!0,icon:t||"none"},n);uni.showToast(i)},t.chooseImage=function(e){return new Promise((function(t,n){uni.chooseImage({count:e,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){t(e)},fail:function(e){n(e)}})}))},t.clearStorage=function(){try{uni.clearStorageSync()}catch(e){throw new Error("处理失败")}},t.convertObj=o,t.formatDate=s,t.getQuarterStartDate=function(){var e=new Date(l,function(){var e=0;c<3&&(e=0);28&&(e=9);return e}(),1);return s(e,"yyyy-MM-dd")},t.getStorage=function(e){var t=uni.getStorageSync(e);try{"number"!=typeof JSON.parse(t)&&(t=JSON.parse(t))}catch(n){}return t},t.hideLoading=function(){try{uni.hideLoading()}catch(e){throw new Error("处理失败")}},t.navigateBack=function(e){uni.navigateBack({delta:e})},t.navigateTo=function(e,t,n){var r=t,i="navigateTo";switch(r=n?r+"?"+o(n):r,e){case 1:i="navigateTo";break;case 2:i="redirectTo";break;case 3:i="reLaunch";break;case 4:i="switchTab";break;default:i="navigateTo";break}uni[i]({url:r,animationType:"slide-in-right",animationDuration:200})},t.pathToBase64=function(e){return new Promise((function(t,n){if("object"===("undefined"===typeof window?"undefined":(0,i.default)(window))&&"document"in window){if("function"===typeof FileReader){var r=new XMLHttpRequest;return r.open("GET",e,!0),r.responseType="blob",r.onload=function(){if(200===this.status){var e=new FileReader;e.onload=function(e){t(e.target.result)},e.onerror=n,e.readAsDataURL(this.response)}},r.onerror=n,void r.send()}var a=document.createElement("canvas"),o=a.getContext("2d"),s=new Image;return s.onload=function(){a.width=s.width,a.height=s.height,o.drawImage(s,0,0),t(a.toDataURL()),a.height=a.width=0},s.onerror=n,void(s.src=e)}"object"!==("undefined"===typeof plus?"undefined":(0,i.default)(plus))?"object"===("undefined"===typeof wx?"undefined":(0,i.default)(wx))&&wx.canIUse("getFileSystemManager")?wx.getFileSystemManager().readFile({filePath:e,encoding:"base64",success:function(e){t("data:image/png;base64,"+e.data)},fail:function(e){n(e)}}):n(new Error("not support")):plus.io.resolveLocalFileSystemURL(getLocalFilePath(e),(function(e){e.file((function(e){var r=new plus.io.FileReader;r.onload=function(e){t(e.target.result)},r.onerror=function(e){n(e)},r.readAsDataURL(e)}),(function(e){n(e)}))}),(function(e){n(e)}))}))},t.removeStorage=function(e){e&&uni.removeStorageSync(e)},t.serialize=function(e){if(null!=e&&""!=e)try{return JSON.parse(JSON.stringify(e))}catch(t){return e instanceof Array?[]:{}}return e},t.setStorage=function(e,t){if("string"==typeof t)return uni.setStorageSync(e,t),t;uni.setStorageSync(e,JSON.stringify(t))},t.showMonthFirstDay=function(){var e=(new Date).setDate(1);return s(new Date(e).getTime(),"yyyy-MM-dd")},t.showWeekFirstDay=function(){var e=new Date,t=e.getDay()||7;return e.setDate(e.getDate()-t+1),s(e,"yyyy-MM-dd")},t.throttle=function(e,t){var n,r;t=t||200;return function(){for(var i=this,a=arguments.length,o=new Array(a),s=0;s