1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["uni_modules-uni-pay-pages-pay-desk-pay-desk"],{"0958":function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-list[data-v-6fce09b0]{display:flex;background-color:#fff;position:relative;flex-direction:column}.uni-list--border[data-v-6fce09b0]{position:relative;z-index:-1}.uni-list--border-top[data-v-6fce09b0]{position:absolute;top:0;right:0;left:0;height:1px;-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#e5e5e5;z-index:1}.uni-list--border-bottom[data-v-6fce09b0]{position:absolute;bottom:0;right:0;left:0;height:1px;-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#e5e5e5}',""]),e.exports=t},"0afc":function(e,t,n){var a=n("c86c"),i=n("2ec5"),r=n("18f4");t=a(!1);var o=i(r);t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uniui-cart-filled[data-v-45a6b600]:before{content:"\\e6d0"}.uniui-gift-filled[data-v-45a6b600]:before{content:"\\e6c4"}.uniui-color[data-v-45a6b600]:before{content:"\\e6cf"}.uniui-wallet[data-v-45a6b600]:before{content:"\\e6b1"}.uniui-settings-filled[data-v-45a6b600]:before{content:"\\e6ce"}.uniui-auth-filled[data-v-45a6b600]:before{content:"\\e6cc"}.uniui-shop-filled[data-v-45a6b600]:before{content:"\\e6cd"}.uniui-staff-filled[data-v-45a6b600]:before{content:"\\e6cb"}.uniui-vip-filled[data-v-45a6b600]:before{content:"\\e6c6"}.uniui-plus-filled[data-v-45a6b600]:before{content:"\\e6c7"}.uniui-folder-add-filled[data-v-45a6b600]:before{content:"\\e6c8"}.uniui-color-filled[data-v-45a6b600]:before{content:"\\e6c9"}.uniui-tune-filled[data-v-45a6b600]:before{content:"\\e6ca"}.uniui-calendar-filled[data-v-45a6b600]:before{content:"\\e6c0"}.uniui-notification-filled[data-v-45a6b600]:before{content:"\\e6c1"}.uniui-wallet-filled[data-v-45a6b600]:before{content:"\\e6c2"}.uniui-medal-filled[data-v-45a6b600]:before{content:"\\e6c3"}.uniui-fire-filled[data-v-45a6b600]:before{content:"\\e6c5"}.uniui-refreshempty[data-v-45a6b600]:before{content:"\\e6bf"}.uniui-location-filled[data-v-45a6b600]:before{content:"\\e6af"}.uniui-person-filled[data-v-45a6b600]:before{content:"\\e69d"}.uniui-personadd-filled[data-v-45a6b600]:before{content:"\\e698"}.uniui-arrowthinleft[data-v-45a6b600]:before{content:"\\e6d2"}.uniui-arrowthinup[data-v-45a6b600]:before{content:"\\e6d3"}.uniui-arrowthindown[data-v-45a6b600]:before{content:"\\e6d4"}.uniui-back[data-v-45a6b600]:before{content:"\\e6b9"}.uniui-forward[data-v-45a6b600]:before{content:"\\e6ba"}.uniui-arrow-right[data-v-45a6b600]:before{content:"\\e6bb"}.uniui-arrow-left[data-v-45a6b600]:before{content:"\\e6bc"}.uniui-arrow-up[data-v-45a6b600]:before{content:"\\e6bd"}.uniui-arrow-down[data-v-45a6b600]:before{content:"\\e6be"}.uniui-arrowthinright[data-v-45a6b600]:before{content:"\\e6d1"}.uniui-down[data-v-45a6b600]:before{content:"\\e6b8"}.uniui-bottom[data-v-45a6b600]:before{content:"\\e6b8"}.uniui-arrowright[data-v-45a6b600]:before{content:"\\e6d5"}.uniui-right[data-v-45a6b600]:before{content:"\\e6b5"}.uniui-up[data-v-45a6b600]:before{content:"\\e6b6"}.uniui-top[data-v-45a6b600]:before{content:"\\e6b6"}.uniui-left[data-v-45a6b600]:before{content:"\\e6b7"}.uniui-arrowup[data-v-45a6b600]:before{content:"\\e6d6"}.uniui-eye[data-v-45a6b600]:before{content:"\\e651"}.uniui-eye-filled[data-v-45a6b600]:before{content:"\\e66a"}.uniui-eye-slash[data-v-45a6b600]:before{content:"\\e6b3"}.uniui-eye-slash-filled[data-v-45a6b600]:before{content:"\\e6b4"}.uniui-info-filled[data-v-45a6b600]:before{content:"\\e649"}.uniui-reload[data-v-45a6b600]:before{content:"\\e6b2"}.uniui-micoff-filled[data-v-45a6b600]:before{content:"\\e6b0"}.uniui-map-pin-ellipse[data-v-45a6b600]:before{content:"\\e6ac"}.uniui-map-pin[data-v-45a6b600]:before{content:"\\e6ad"}.uniui-location[data-v-45a6b600]:before{content:"\\e6ae"}.uniui-starhalf[data-v-45a6b600]:before{content:"\\e683"}.uniui-star[data-v-45a6b600]:before{content:"\\e688"}.uniui-star-filled[data-v-45a6b600]:before{content:"\\e68f"}.uniui-calendar[data-v-45a6b600]:before{content:"\\e6a0"}.uniui-fire[data-v-45a6b600]:before{content:"\\e6a1"}.uniui-medal[data-v-45a6b600]:before{content:"\\e6a2"}.uniui-font[data-v-45a6b600]:before{content:"\\e6a3"}.uniui-gift[data-v-45a6b600]:before{content:"\\e6a4"}.uniui-link[data-v-45a6b600]:before{content:"\\e6a5"}.uniui-notification[data-v-45a6b600]:before{content:"\\e6a6"}.uniui-staff[data-v-45a6b600]:before{content:"\\e6a7"}.uniui-vip[data-v-45a6b600]:before{content:"\\e6a8"}.uniui-folder-add[data-v-45a6b600]:before{content:"\\e6a9"}.uniui-tune[data-v-45a6b600]:before{content:"\\e6aa"}.uniui-auth[data-v-45a6b600]:before{content:"\\e6ab"}.uniui-person[data-v-45a6b600]:before{content:"\\e699"}.uniui-email-filled[data-v-45a6b600]:before{content:"\\e69a"}.uniui-phone-filled[data-v-45a6b600]:before{content:"\\e69b"}.uniui-phone[data-v-45a6b600]:before{content:"\\e69c"}.uniui-email[data-v-45a6b600]:before{content:"\\e69e"}.uniui-personadd[data-v-45a6b600]:before{content:"\\e69f"}.uniui-chatboxes-filled[data-v-45a6b600]:before{content:"\\e692"}.uniui-contact[data-v-45a6b600]:before{content:"\\e693"}.uniui-chatbubble-filled[data-v-45a6b600]:before{content:"\\e694"}.uniui-contact-filled[data-v-45a6b600]:before{content:"\\e695"}.uniui-chatboxes[data-v-45a6b600]:before{content:"\\e696"}.uniui-chatbubble[data-v-45a6b600]:before{content:"\\e697"}.uniui-upload-filled[data-v-45a6b600]:before{content:"\\e68e"}.uniui-upload[data-v-45a6b600]:before{content:"\\e690"}.uniui-weixin[data-v-45a6b600]:before{content:"\\e691"}.uniui-compose[data-v-45a6b600]:before{content:"\\e67f"}.uniui-qq[data-v-45a6b600]:before{content:"\\e680"}.uniui-download-filled[data-v-45a6b600]:before{content:"\\e681"}.uniui-pyq[data-v-45a6b600]:before{content:"\\e682"}.uniui-sound[data-v-45a6b600]:before{content:"\\e684"}.uniui-trash-filled[data-v-45a6b600]:before{content:"\\e685"}.uniui-sound-filled[data-v-45a6b600]:before{content:"\\e686"}.uniui-trash[data-v-45a6b600]:before{content:"\\e687"}.uniui-videocam-filled[data-v-45a6b600]:before{content:"\\e689"}.uniui-spinner-cycle[data-v-45a6b600]:before{content:"\\e68a"}.uniui-weibo[data-v-45a6b600]:before{content:"\\e68b"}.uniui-videocam[data-v-45a6b600]:before{content:"\\e68c"}.uniui-download[data-v-45a6b600]:before{content:"\\e68d"}.uniui-help[data-v-45a6b600]:before{content:"\\e679"}.uniui-navigate-filled[data-v-45a6b600]:before{content:"\\e67a"}.uniui-plusempty[data-v-45a6b600]:before{content:"\\e67b"}.uniui-smallcircle[data-v-45a6b600]:before{content:"\\e67c"}.uniui-minus-filled[data-v-45a6b600]:before{content:"\\e67d"}.uniui-micoff[data-v-45a6b600]:before{content:"\\e67e"}.uniui-closeempty[data-v-45a6b600]:before{content:"\\e66c"}.uniui-clear[data-v-45a6b600]:before{content:"\\e66d"}.uniui-navigate[data-v-45a6b600]:before{content:"\\e66e"}.uniui-minus[data-v-45a6b600]:before{content:"\\e66f"}.uniui-image[data-v-45a6b600]:before{content:"\\e670"}.uniui-mic[data-v-45a6b600]:before{content:"\\e671"}.uniui-paperplane[data-v-45a6b600]:before{content:"\\e672"}.uniui-close[data-v-45a6b600]:before{content:"\\e673"}.uniui-help-filled[data-v-45a6b600]:before{content:"\\e674"}.uniui-paperplane-filled[data-v-45a6b600]:before{content:"\\e675"}.uniui-plus[data-v-45a6b600]:before{content:"\\e676"}.uniui-mic-filled[data-v-45a6b600]:before{content:"\\e677"}.uniui-image-filled[data-v-45a6b600]:before{content:"\\e678"}.uniui-locked-filled[data-v-45a6b600]:before{content:"\\e668"}.uniui-info[data-v-45a6b600]:before{content:"\\e669"}.uniui-locked[data-v-45a6b600]:before{content:"\\e66b"}.uniui-camera-filled[data-v-45a6b600]:before{content:"\\e658"}.uniui-chat-filled[data-v-45a6b600]:before{content:"\\e659"}.uniui-camera[data-v-45a6b600]:before{content:"\\e65a"}.uniui-circle[data-v-45a6b600]:before{content:"\\e65b"}.uniui-checkmarkempty[data-v-45a6b600]:before{content:"\\e65c"}.uniui-chat[data-v-45a6b600]:before{content:"\\e65d"}.uniui-circle-filled[data-v-45a6b600]:before{content:"\\e65e"}.uniui-flag[data-v-45a6b600]:before{content:"\\e65f"}.uniui-flag-filled[data-v-45a6b600]:before{content:"\\e660"}.uniui-gear-filled[data-v-45a6b600]:before{content:"\\e661"}.uniui-home[data-v-45a6b600]:before{content:"\\e662"}.uniui-home-filled[data-v-45a6b600]:before{content:"\\e663"}.uniui-gear[data-v-45a6b600]:before{content:"\\e664"}.uniui-smallcircle-filled[data-v-45a6b600]:before{content:"\\e665"}.uniui-map-filled[data-v-45a6b600]:before{content:"\\e666"}.uniui-map[data-v-45a6b600]:before{content:"\\e667"}.uniui-refresh-filled[data-v-45a6b600]:before{content:"\\e656"}.uniui-refresh[data-v-45a6b600]:before{content:"\\e657"}.uniui-cloud-upload[data-v-45a6b600]:before{content:"\\e645"}.uniui-cloud-download-filled[data-v-45a6b600]:before{content:"\\e646"}.uniui-cloud-download[data-v-45a6b600]:before{content:"\\e647"}.uniui-cloud-upload-filled[data-v-45a6b600]:before{content:"\\e648"}.uniui-redo[data-v-45a6b600]:before{content:"\\e64a"}.uniui-images-filled[data-v-45a6b600]:before{content:"\\e64b"}.uniui-undo-filled[data-v-45a6b600]:before{content:"\\e64c"}.uniui-more[data-v-45a6b600]:before{content:"\\e64d"}.uniui-more-filled[data-v-45a6b600]:before{content:"\\e64e"}.uniui-undo[data-v-45a6b600]:before{content:"\\e64f"}.uniui-images[data-v-45a6b600]:before{content:"\\e650"}.uniui-paperclip[data-v-45a6b600]:before{content:"\\e652"}.uniui-settings[data-v-45a6b600]:before{content:"\\e653"}.uniui-search[data-v-45a6b600]:before{content:"\\e654"}.uniui-redo-filled[data-v-45a6b600]:before{content:"\\e655"}.uniui-list[data-v-45a6b600]:before{content:"\\e644"}.uniui-mail-open-filled[data-v-45a6b600]:before{content:"\\e63a"}.uniui-hand-down-filled[data-v-45a6b600]:before{content:"\\e63c"}.uniui-hand-down[data-v-45a6b600]:before{content:"\\e63d"}.uniui-hand-up-filled[data-v-45a6b600]:before{content:"\\e63e"}.uniui-hand-up[data-v-45a6b600]:before{content:"\\e63f"}.uniui-heart-filled[data-v-45a6b600]:before{content:"\\e641"}.uniui-mail-open[data-v-45a6b600]:before{content:"\\e643"}.uniui-heart[data-v-45a6b600]:before{content:"\\e639"}.uniui-loop[data-v-45a6b600]:before{content:"\\e633"}.uniui-pulldown[data-v-45a6b600]:before{content:"\\e632"}.uniui-scan[data-v-45a6b600]:before{content:"\\e62a"}.uniui-bars[data-v-45a6b600]:before{content:"\\e627"}.uniui-checkbox[data-v-45a6b600]:before{content:"\\e62b"}.uniui-checkbox-filled[data-v-45a6b600]:before{content:"\\e62c"}.uniui-shop[data-v-45a6b600]:before{content:"\\e62f"}.uniui-headphones[data-v-45a6b600]:before{content:"\\e630"}.uniui-cart[data-v-45a6b600]:before{content:"\\e631"}@font-face{font-family:uniicons;src:url('+o+")}.uni-icons[data-v-45a6b600]{font-family:uniicons;text-decoration:none;text-align:center}",""]),e.exports=t},"0efa":function(e,t,n){var a=n("0afc");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("646651b4",a,!0,{sourceMap:!1,shadowMode:!1})},"0f86":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var a={uniTransition:n("b500").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.showPopup?n("v-uni-view",{staticClass:"uni-popup",class:[e.popupstyle,e.isDesktop?"fixforpc-z-index":""]},[n("v-uni-view",{on:{touchstart:function(t){arguments[0]=t=e.$handleEvent(t),e.touchstart.apply(void 0,arguments)}}},[e.maskShow?n("uni-transition",{key:"1",attrs:{name:"mask","mode-class":"fade",styles:e.maskClass,duration:e.duration,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}}):e._e(),n("uni-transition",{key:"2",attrs:{"mode-class":e.ani,name:"content",styles:e.transClass,duration:e.duration,show:e.showTrans},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"uni-popup__wrapper",class:[e.popupstyle],style:e.getStyles,on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.clear.apply(void 0,arguments)}}},[e._t("default")],2)],1)],1),e.maskShow?n("keypress",{on:{esc:function(t){arguments[0]=t=e.$handleEvent(t),e.onTap.apply(void 0,arguments)}}}):e._e()],1):e._e()},r=[]},1505:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a={name:"uniList","mp-weixin":{options:{multipleSlots:!1}},props:{stackFromEnd:{type:Boolean,default:!1},enableBackToTop:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},border:{type:Boolean,default:!0},renderReverse:{type:Boolean,default:!1}},created:function(){this.firstChildAppend=!1},methods:{loadMore:function(e){this.$emit("scrolltolower")},scroll:function(e){this.$emit("scroll",e)}}};t.default=a},1673:function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-list-item[data-v-4573fa13]{display:flex;font-size:16px;position:relative;justify-content:space-between;align-items:center;background-color:#fff;flex-direction:row;cursor:pointer}.uni-list-item--disabled[data-v-4573fa13]{opacity:.3}.uni-list-item--hover[data-v-4573fa13]{background-color:#f1f1f1!important}.uni-list-item__container[data-v-4573fa13]{position:relative;display:flex;flex-direction:row;padding:12px 15px;padding-left:15px;flex:1;overflow:hidden}.container--right[data-v-4573fa13]{padding-right:0}.uni-list--border[data-v-4573fa13]{position:absolute;top:0;right:0;left:0}.uni-list--border[data-v-4573fa13]:after{position:absolute;top:0;right:0;left:0;height:1px;content:"";-webkit-transform:scaleY(.5);transform:scaleY(.5);background-color:#e5e5e5}.uni-list-item__content[data-v-4573fa13]{display:flex;padding-right:8px;flex:1;color:#3b4144;flex-direction:column;justify-content:space-between;overflow:hidden}.uni-list-item__content--center[data-v-4573fa13]{justify-content:center}.uni-list-item__content-title[data-v-4573fa13]{font-size:14px;color:#3b4144;overflow:hidden}.uni-list-item__content-note[data-v-4573fa13]{margin-top:%?6?%;color:#999;font-size:12px;overflow:hidden}.uni-list-item__extra[data-v-4573fa13]{display:flex;flex-direction:row;justify-content:flex-end;align-items:center}.uni-list-item__header[data-v-4573fa13]{display:flex;flex-direction:row;align-items:center}.uni-list-item__icon[data-v-4573fa13]{margin-right:%?18?%;flex-direction:row;justify-content:center;align-items:center}.uni-list-item__icon-img[data-v-4573fa13]{display:block;height:26px;width:26px;margin-right:10px}.uni-icon-wrapper[data-v-4573fa13]{display:flex;align-items:center;padding:0 10px}.flex--direction[data-v-4573fa13]{flex-direction:column;align-items:normal}.flex--justify[data-v-4573fa13]{justify-content:normal}.uni-list--lg[data-v-4573fa13]{height:40px;width:40px}.uni-list--base[data-v-4573fa13]{height:26px;width:26px}.uni-list--sm[data-v-4573fa13]{height:20px;width:20px}.uni-list-item__extra-text[data-v-4573fa13]{color:#999;font-size:12px}.uni-ellipsis-1[data-v-4573fa13]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.uni-ellipsis-2[data-v-4573fa13]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}',""]),e.exports=t},"18f4":function(e,t,n){e.exports=n.p+"assets/uniicons.2579c7da.ttf"},"20f3":function(e,t,n){"use strict";var a=n("8bdb"),i=n("5145");a({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},"21b6":function(e,t,n){"use strict";n.r(t);var a=n("2c23"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"27da":function(e,t,n){"use strict";n.r(t);var a=n("9ba4"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"2b33":function(e,t,n){"use strict";n.r(t);var a=n("6000"),i=n("549f");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("7acc");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"45a6b600",null,!1,a["a"],void 0);t["default"]=s.exports},"2c23":function(e,t,n){"use strict";(function(e){n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("d4b5"),n("fd3c"),n("5ef2"),n("aa9c"),n("01a2"),n("e39c"),n("c223"),n("aa77"),n("bf0f"),n("bd06"),n("dd2b");var i=a(n("2634")),r=a(n("2fdc")),o=a(n("8f46")),s=e.importObject("uni-pay-co"),c={name:"uni-pay",emits:["success","cancel","fail","create","mounted","qrcode"],props:{adpid:{Type:String,default:""},toSuccessPage:{Type:Boolean,default:!0},returnUrl:{Type:String,default:""},mainColor:{Type:String,default:""},mode:{Type:String,default:""},logo:{Type:String,default:"/static/logo.png"},height:{Type:[String],default:"70vh"},debug:{Type:Boolean,default:!1}},data:function(){return{options:{},res:{},images:{wxpay:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABC9JREFUeF7tWk1a20AMlUzv0bDr13AAYAOcpLCBcoqQU1DYEE6C2QAHIP26q3sPPOqniU2cZMYj+SeGxN5kEXlm9ObpjaQxwpY/uOX+Qw9Az4AtR6APgS0nQC+CfQi0FQLfrvcHXwAGPP4bQMK/fy5f7O9HehphwPfb/dOIogEhHQHBcamDCDESPoIxMQPTNSi1ABj+OrwDpNMaO5og4P2bMZOugFADwNTewWhU0/FVzAgnKZnxuoFQAbB3vX9MET7U2PHgq4R09vv8ZRI0bMhADMDw9uAhGN8NLQrWyAYRAGt1PgcRIU5TOms7JIIAdOL8nElJauikTRBKAdi7ObwioFFTzHaMw3mBzRV8DwKOXy+ertpagxcAq/YR/g2d6TlNrUDu4EiiE0Why4T1rgyINoXRC4DgjE+mF8+7RYAkp4RrRyVztRUKTgCkuz89fz4pAiB5z7WbklBrKxScAEgWxI6joZPXy5c4B0H0nkPdhzcHFIxxhHgZ8OA7AgMnAMObA479UnF6H5twQpF5RBMdibPDvB4AAAL6IZ0rNbTb9IngAyC8IwJ0K5okQBgzqFEKSV4wcXg17bxl8fIiJXFc0bHAgYLjYlHEFaZlVUQDoAIbcVZaN1VRrgAgUfImASiKW6Yh4pAohmHVQqpLABI0dMYiKhJPCeoV0ueuQsDmEJrkSeJ/bqNJnOqfApqVzWznzrdYWkvzhnUDYGnPKLTdV5gpfLiOqJUIaTefF8RKH6wxtAOX2IdA8NcCmmRItmBLfVF5jRBnR58kGQtWlGUJlBeAxpQ5A4eFKTu/ufLzPQv1f2mRRDiZ/nyyYwYrypI0OlQOc/9PsgshDsh2v+BUwTFnD3K5DglVlD4WlDZEsqywNgiK2F9gQBkLi7EtyV59WhBsiTURCjy5QZMgYRn9cxbZWgCQ+IKlnH2sFQYTURHmCYMgAJaKs9aYPkXNXGK6QhQdt9xeC4UhTC+eV/wVASASmrKj6IMA4NIBMQDsX1VN4IlbuU0K7vmiQS0G5EOpmiW6I1Dpjtp8pYc5yxYVj0RtXcMJcwDFSiqYLh2x+QgqAJwnAuEEydxbkZtdj+fKPVfwbPIq7KngqvMVX4WoAmDBAcH9HTMmXw23s0LJSlPOOsZx0l8VAu/0Fzjuc2Td3aY5zf1VoZgBvPgmvuhoIrFSMSXQThcDoJo0YLxGLfBSv5IINgVC1XxCOb/oZrkTBtRJqkQgKG6ROgPgPbGq/6HVIiYK51WngAj5ikbBhoZi3FALbHmozhlQXFChTc75g6wRM2ufzb9N/IwMcG0wg8HZJf9HBF/tFZnBBBH+cW/BpBDnd4XLDNJcon4oBiiY7jS194mEI0IaSz+12ygAclSYEcXvFsqA3UgANEzqAdCgtYm2PQM2cVc1PvUM0KC1ibY9AzZxVzU+bT0D/gPs/oxfcUEcJAAAAABJRU5ErkJggg==",alipay:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAAA2FJREFUeF7tmU122jAQx2cMB2hp9yULeK+naHISwhJyiIRDBJaQkwRO0fdgEWff0h4ANH0yFc+m+hhbckKNvJUsaX76z4ckhAv/8MLthwggKuDCCUQXuHABxCAYXSC6wIUTiC7wFgL4MPveTaj9optrO+696ya8yeQRQFRAdIEYAxoVBD/PNtdCwHWpDIJwr+1PMCk1DgAkCSx/jHrLsv/p+lfKAp3HzQOYDAqxKtcYBJPtXe/B1Y3TXgmATGst0WIrgAC7JmBINOQsNN8HE0zfVQFlFxzrgFgHNLQOkNJuQ7vrcgkS1CXEua5fgnDj+l+172CX/h59Tbn9Of0qBUE1cGe2ngPhLWeiEH0krFDBT63HC8Cnx/VtFuFDfgl90UOldDvuX4WcSo7lBSD0YuR4H6ebZwRNkRUw9xdSah1G+IzZmW5IW7ERDX/e9Rc+YwerBEMvQo1nrhfqkf/ZuYCxxK5J/t4AjkFQBi71CXxFoFSWq2XTlkn+AndXodNf5SwgT4J7gnttoNL6BqUEmCZET/tkvzQZYj5g1Sf/0goIkfcJYIkEK5HsFnkYnen6BXQptUb5lwJgMz4zCihXD/BqAwVDuoy+Uqx399kACrkZaYECVjY5qxJZXpoQwrcDHB6UghfVvPssAMo35W4R7oZVg5EMmAJxUCZ2CNzfVJ2Pm6qdleDBNwFClaHZdRrQAEhWe25VSPCuAMo1tnQhdIzMNUixfDYBqAOGVQEKQB15OFMCwXPV3QsFww7g73E39Pudr/Gn0EyplQPXCkBF/5AKsBtPKRA+AdKAEx/0BhYLL9nHFkhZLiBvbkOcxFzG5wPtoe7gBUrrTiMttqO+8ebZCkAtWErs17jHvrrSLcj+lkCpKeV5g/ABIA05lqgVM4Er2nPhZgev7DHGnToLG+ALIC9budgWwoRzyuMUPlzj8waVBuELIFOB5iksi7xIKQh8PS4wu8/j+a3vBScbRAgABVfg5BZbH6SFgP0kVIl7UCjNja4RCkAGwecaPLDhp4yNsSYkADlp/mncdNLLu8fpud9XQK7//wERGoBrAefSfgRBsLI9pTtPg+diUNV1yLuJypVg1Un/p/8arwDXZkQALkJNb48KaPoOu+yLCnARanp7VEDTd9hlX1SAi1DT2/8AaakVXysj5qkAAAAASUVORK5CYII="},originalRroviders:["wxpay","alipay"],currentProviders:["wxpay","alipay"],openid:""}},mounted:function(){var e=this;return(0,r.default)((0,i.default)().mark((function t(){var n;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=3,e.getPayProviderFromCloud();case 3:n=t.sent,0===n.errCode&&(e.originalRroviders=n.provider,e.currentProviders=JSON.parse(JSON.stringify(e.originalRroviders))),e.$emit("mounted",{images:e.images,originalRroviders:e.originalRroviders,currentProviders:e.currentProviders});case 6:case"end":return t.stop()}}),t)})))()},methods:{open:function(){var e=arguments,t=this;return(0,r.default)((0,i.default)().mark((function n(){var a,r;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:a=e.length>0&&void 0!==e[0]?e[0]:{},a.provider?(r=[],t.originalRroviders.map((function(e,t){a.provider.indexOf(e)>-1&&r.push(e)})),t.currentProviders=r,delete a.provider):t.currentProviders=JSON.parse(JSON.stringify(t.originalRroviders)),t.options=a,1===t.currentProviders.length?t.createOrder({provider:t.currentProviders[0]}):("pc"===t.modeCom&&t._pcChooseProvider(t.currentProviders[0]),t.openPopup("payPopup"));case 4:case"end":return n.stop()}}),n)})))()},createOrder:function(){var e=arguments,t=this;return(0,r.default)((0,i.default)().mark((function n(){var a,r,c,u;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e.length>0&&void 0!==e[0]?e[0]:{},r=t.options,Object.assign(r,a),"appleiap"!==r.provider){n.next=5;break}return n.abrupt("return",t._appleiapCreateOrder(r));case 5:return["pc","pc-weixin"].indexOf(o.default.checkPlatform())>-1&&(r.qr_code=!0),c={provider:r.provider,total_fee:r.total_fee,openid:void 0,order_no:r.order_no,out_trade_no:r.out_trade_no,description:r.description,type:r.type,qr_code:r.qr_code,custom:r.custom,other:r.other,wxpay_virtual:r.wxpay_virtual},r.openid&&"wxpay"===r.provider&&(c.openid=r.openid),n.prev=9,n.next=12,s.createOrder(c);case 12:u=n.sent,u.errCode?t.$emit("fail",u):(t.$emit("create",u),u.qr_code&&!r.cancel_popup?(t.res=u,"pc"===t.modeCom?(t.openPopup("payPopup"),t._pcChooseProvider(r.provider)):t.openPopup("qrcodePopup")):t.orderPayment(u)),n.next=19;break;case 16:n.prev=16,n.t0=n["catch"](9),t.$emit("fail",n.t0);case 19:case"end":return n.stop()}}),n,null,[[9,16]])})))()},orderPayment:function(e){var t=this;if(this.res=e,e.qr_code)this.$emit("qrcode",e);else if(e.order)if("jsapi"===e.provider_pay_type)WeixinJSBridge.invoke("getBrandWCPayRequest",e.order,(function(e){"get_brand_wcpay_request:ok"==e.err_msg?t._getOrder():"get_brand_wcpay_request:cancel"==e.err_msg?t.$emit("cancel",e):"get_brand_wcpay_request:fail"==e.err_msg&&(console.error("getBrandWCPayRequest-fail: ",e),t.$emit("fail",e))}));else{var n=e.order.codeUrl,a=e.order.mwebUrl||e.order.mweb_url;setTimeout((function(){t.openPopup("payConfirmPopup"),window.location.href=n||a}),200)}},openPopup:function(e){this.$refs[e].showPopup||this.$refs[e].open()},closePopup:function(e){this.$refs[e].close()},getOrder:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.getOrder(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},refund:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.refund(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},getRefund:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.getRefund(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},closeOrder:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.closeOrder(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},getPayProviderFromCloud:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.getPayProviderFromCloud(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},getProviderAppId:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.getProviderAppId(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},getOpenid:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.getOpenid(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},verifyReceiptFromAppleiap:function(){var e=arguments;return(0,r.default)((0,i.default)().mark((function t(){var n,a;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.length>0&&void 0!==e[0]?e[0]:{},t.prev=1,t.next=4,s.verifyReceiptFromAppleiap(n);case 4:return a=t.sent,"function"===typeof n.success&&n.success(a),t.abrupt("return",a);case 9:t.prev=9,t.t0=t["catch"](1),"function"===typeof n.fail&&n.fail(t.t0);case 12:case"end":return t.stop()}}),t,null,[[1,9]])})))()},getCode:function(){return(0,r.default)((0,i.default)().mark((function e(){return(0,i.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()},paySuccess:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.closePopup("payPopup"),this.closePopup("payConfirmPopup"),this.clearQrcode(),this.toSuccessPage&&this.pageToSuccess(e),this.$emit("success",e)},pageToSuccess:function(e){if("pc"!==this.modeCom)uni.navigateTo({url:"/uni_modules/uni-pay/pages/success/success?out_trade_no=".concat(e.out_trade_no,"&order_no=").concat(e.pay_order.order_no,"&pay_date=").concat(e.pay_order.pay_date,"&total_fee=").concat(e.pay_order.total_fee,"&adpid=").concat(this.adpid,"&return_url=").concat(this.returnUrl,"&main_color=").concat(this.mainColor)});else if(this.returnUrl){var t=this.returnUrl+"?out_trade_no=".concat(e.out_trade_no,"&order_no=").concat(e.pay_order.order_no);0!==t.indexOf("/")&&(t="/".concat(t)),uni.navigateTo({url:t})}},clearQrcode:function(){this.res.codeUrl="",this.res.qr_code_image=""},_getOrder:function(){var e=this;return(0,r.default)((0,i.default)().mark((function t(){return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:e.getOrder({out_trade_no:e.res.out_trade_no,await_notify:!0,success:function(t){t.has_paid&&(e.closePopup("qrcodePopup"),e.paySuccess(t))}});case 1:case"end":return t.stop()}}),t)})))()},_afreshPayment:function(){this.orderPayment(this.res)},_pcChooseProvider:function(e){if(e!==this.options.provider)return this.createOrder({provider:e})},_appleiapCreateOrder:function(e){var t=this;return(0,r.default)((0,i.default)().mark((function n(){var a,r,o,c,u,l,d,f;return(0,i.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return a=new appleiapSdk.Iap({products:[e.productid]}),uni.showLoading({title:"加载中..."}),n.next=4,a.init();case 4:return n.next=6,a.getProduct();case 6:return r=n.sent,o=r[0],e.total_fee=100*o.price,e.description=o.description,c={provider:e.provider,total_fee:e.total_fee,order_no:e.order_no,out_trade_no:e.out_trade_no,description:e.description,type:e.type,custom:e.custom},n.next=13,s.createOrder(c);case 13:if(u=n.sent,0!==u.errCode){n.next=49;break}return t.$emit("create",u),t.res=u,uni.showLoading({title:"支付请求中..."}),n.prev=18,t.debug&&console.log("正在请求苹果服务器",e.productid,u.out_trade_no),n.next=22,a.requestPayment({productid:e.productid,username:u.out_trade_no});case 22:if(l=n.sent,t.debug&&console.log("用户支付成功",l),uni.showLoading({title:"正在处理支付结果..."}),l.payment.username||(l.payment.username=t.getAppleiapUserName(l)),l.payment.username){n.next=32;break}return n.next=29,a.finishTransaction(l);case 29:return uni.hideLoading(),console.log("您可能已支付成功,但很抱歉丢单了,请联系客服处理。",l),n.abrupt("return",!1);case 32:return t.addAppleiapOrder(l),n.next=35,t.verifyReceiptFromAppleiap({out_trade_no:l.payment.username,transaction_receipt:l.transactionReceipt,transaction_identifier:l.transactionIdentifier});case 35:if(d=n.sent,0!==d.errCode){n.next=42;break}return n.next=39,a.finishTransaction(l);case 39:t.removeAppleiapOrder(l),uni.hideLoading(),t.paySuccess(d);case 42:n.next=49;break;case 44:n.prev=44,n.t0=n["catch"](18),f=n.t0.errCode||n.t0.code,2===f?(t.debug&&console.log("用户取消支付"),t.$emit("cancel",n.t0)):(console.error("appleiapCreateOrder:fail",n.t0),t.$emit("fail",n.t0)),uni.hideLoading();case 49:case"end":return n.stop()}}),n,null,[[18,44]])})))()},appleiapRestore:function(){var e=this;return(0,r.default)((0,i.default)().mark((function t(){var n,a,r,o,s;return(0,i.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return uni.showLoading({title:"检测支付环境..."}),n=new appleiapSdk.Iap,t.next=4,n.init();case 4:return t.prev=4,e.debug&&console.log("正在查询是否有漏单信息"),t.next=8,n.restoreCompletedTransactions({username:""});case 8:if(a=t.sent,e.debug&&console.log("漏单查询结果:"+(0===a.length?"未漏单":"有漏单"),a),a.length){t.next=12;break}return t.abrupt("return");case 12:r=0;case 13:if(!(r<a.length)){t.next=42;break}o=a[r],t.t0=o.transactionState,t.next=t.t0===appleiapSdk.IapTransactionState.purchased?18:t.t0===appleiapSdk.IapTransactionState.failed?35:38;break;case 18:if(o.payment.username||(o.payment.username=e.getAppleiapUserName(o)),o.payment.username){t.next=24;break}return t.next=22,n.finishTransaction(o);case 22:return console.log("您可能已支付成功,但很抱歉丢单了,请联系客服处理。",o),t.abrupt("continue",39);case 24:return console.log("requestPaymentRes: ",o),t.next=27,e.verifyReceiptFromAppleiap({out_trade_no:o.payment.username,transaction_receipt:o.transactionReceipt,transaction_identifier:o.transactionIdentifier});case 27:if(s=t.sent,console.log("verifyRes: ",s),0!==s.errCode){t.next=34;break}return console.log("完结订单:"+o.payment.username),t.next=33,n.finishTransaction(o);case 33:e.removeAppleiapOrder(o);case 34:return t.abrupt("break",39);case 35:return t.next=37,n.finishTransaction(o);case 37:return t.abrupt("break",39);case 38:return t.abrupt("break",39);case 39:r++,t.next=13;break;case 42:t.next=47;break;case 44:t.prev=44,t.t1=t["catch"](4),console.error(t.t1);case 47:return t.prev=47,uni.hideLoading(),t.finish(47);case 50:case"end":return t.stop()}}),t,null,[[4,44,47,50]])})))()},addAppleiapOrder:function(e){var t="uni-pay-appleiap-order",n=uni.getStorageSync(t)||[];n.push(e),uni.setStorageSync(t,n)},getAppleiapUserName:function(e){var t=uni.getStorageSync("uni-pay-appleiap-order")||[],n=t.find((function(t){return t.transactionIdentifier===e.transactionIdentifier&&t.transactionDate===e.transactionDate})),a=n&&n.payment&&n.payment.username;return a},removeAppleiapOrder:function(e){var t="uni-pay-appleiap-order",n=uni.getStorageSync(t)||[],a=n.findIndex((function(t){return t.transactionIdentifier===e.transactionIdentifier&&t.transactionDate===e.transactionDate}));a>-1&&n.splice(a,1),uni.setStorageSync(t,n)}},watch:{},computed:{modeCom:function(){if(this.mode)return this.mode;var e=uni.getSystemInfoSync();return e&&"pc"===e.deviceType?"pc":"mobile"}}};t.default=c}).call(this,n("861b")["uniCloud"])},"2ec5":function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),e=e&&e.__esModule?e.default:e,"string"!==typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}},"2ed1":function(e,t,n){"use strict";var a=n("6c34"),i=n.n(a);i.a},"311c":function(e,t,n){"use strict";n.r(t);var a=n("cce3a"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},3741:function(e,t,n){"use strict";n.r(t);var a=n("5845"),i=n("27da");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("ed17");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"1693f0ea",null,!1,a["a"],void 0);t["default"]=s.exports},"3a1f":function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement,t=this._self._c||e;return t("v-uni-view",{staticClass:"uni-list uni-border-top-bottom"},[this.border?t("v-uni-view",{staticClass:"uni-list--border-top"}):this._e(),this._t("default"),this.border?t("v-uni-view",{staticClass:"uni-list--border-bottom"}):this._e()],2)},i=[]},"3f5b":function(e,t,n){"use strict";n.r(t);var a=n("4db3"),i=n("21b6");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("2ed1");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"364386d9",null,!1,a["a"],void 0);t["default"]=s.exports},"462c":function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("5de6"));n("64aa"),n("5ef2");var r={name:"UniListItem",emits:["click","switchChange"],props:{direction:{type:String,default:"row"},title:{type:String,default:""},note:{type:String,default:""},ellipsis:{type:[Number,String],default:0},disabled:{type:[Boolean,String],default:!1},clickable:{type:Boolean,default:!1},showArrow:{type:[Boolean,String],default:!1},link:{type:[Boolean,String],default:!1},to:{type:String,default:""},showBadge:{type:[Boolean,String],default:!1},showSwitch:{type:[Boolean,String],default:!1},switchChecked:{type:[Boolean,String],default:!1},badgeText:{type:String,default:""},badgeType:{type:String,default:"success"},badgeStyle:{type:Object,default:function(){return{}}},rightText:{type:String,default:""},thumb:{type:String,default:""},thumbSize:{type:String,default:"base"},showExtraIcon:{type:[Boolean,String],default:!1},extraIcon:{type:Object,default:function(){return{type:"",color:"#000000",size:20,customPrefix:""}}},border:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{padding:"",backgroundColor:"#FFFFFF"}}},keepScrollPosition:{type:Boolean,default:!1}},watch:{"customStyle.padding":{handler:function(e){"number"==typeof e&&(e+="");var t=e.split(" ");if(1===t.length){var n=t[0];this.padding={top:n,right:n,bottom:n,left:n}}else if(2===t.length){var a=(0,i.default)(t,2),r=a[0],o=a[1];this.padding={top:r,right:o,bottom:r,left:o}}else if(4===t.length){var s=(0,i.default)(t,4),c=s[0],u=s[1],l=s[2],d=s[3];this.padding={top:c,right:u,bottom:l,left:d}}},immediate:!0}},data:function(){return{isFirstChild:!1,padding:{top:"",right:"",bottom:"",left:""}}},mounted:function(){this.list=this.getForm(),this.list&&(this.list.firstChildAppend||(this.list.firstChildAppend=!0,this.isFirstChild=!0))},methods:{getForm:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"uniList",t=this.$parent,n=t.$options.name;while(n!==e){if(t=t.$parent,!t)return!1;n=t.$options.name}return t},onClick:function(){""===this.to?(this.clickable||this.link)&&this.$emit("click",{data:{}}):this.openPage()},onSwitchChange:function(e){this.$emit("switchChange",e.detail)},openPage:function(){-1!==["navigateTo","redirectTo","reLaunch","switchTab"].indexOf(this.link)?this.pageApi(this.link):this.pageApi("navigateTo")},pageApi:function(e){var t=this,n={url:this.to,success:function(e){t.$emit("click",{data:e})},fail:function(e){t.$emit("click",{data:e})}};switch(e){case"navigateTo":uni.navigateTo(n);break;case"redirectTo":uni.redirectTo(n);break;case"reLaunch":uni.reLaunch(n);break;case"switchTab":uni.switchTab(n);break;default:uni.navigateTo(n)}}}};t.default=r},4711:function(e,t,n){var a=n("85a1");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("c35c862a",a,!0,{sourceMap:!1,shadowMode:!1})},"4a6e":function(e,t,n){"use strict";var a=n("cb74"),i=n.n(a);i.a},"4b3a":function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-badge--x[data-v-1693f0ea]{display:inline-block;position:relative}.uni-badge--absolute[data-v-1693f0ea]{position:absolute}.uni-badge--small[data-v-1693f0ea]{-webkit-transform:scale(.8);transform:scale(.8);-webkit-transform-origin:center center;transform-origin:center center}.uni-badge[data-v-1693f0ea]{display:flex;overflow:hidden;box-sizing:border-box;-webkit-font-feature-settings:"tnum";font-feature-settings:"tnum";min-width:20px;justify-content:center;flex-direction:row;height:20px;padding:0 4px;line-height:18px;color:#fff;border-radius:100px;background-color:#909399;background-color:initial;border:1px solid #fff;text-align:center;font-family:Helvetica Neue,Helvetica,sans-serif;font-size:12px;z-index:999;cursor:pointer}.uni-badge--info[data-v-1693f0ea]{color:#fff;background-color:#909399}.uni-badge--primary[data-v-1693f0ea]{background-color:#2979ff}.uni-badge--success[data-v-1693f0ea]{background-color:#4cd964}.uni-badge--warning[data-v-1693f0ea]{background-color:#f0ad4e}.uni-badge--error[data-v-1693f0ea]{background-color:#dd524d}.uni-badge--inverted[data-v-1693f0ea]{padding:0 5px 0 0;color:#909399}.uni-badge--info-inverted[data-v-1693f0ea]{color:#909399;background-color:initial}.uni-badge--primary-inverted[data-v-1693f0ea]{color:#2979ff;background-color:initial}.uni-badge--success-inverted[data-v-1693f0ea]{color:#4cd964;background-color:initial}.uni-badge--warning-inverted[data-v-1693f0ea]{color:#f0ad4e;background-color:initial}.uni-badge--error-inverted[data-v-1693f0ea]{color:#dd524d;background-color:initial}',""]),e.exports=t},"4b77":function(e,t,n){"use strict";var a=n("abad"),i=n.n(a);i.a},"4c30":function(e,t,n){var a=n("4b3a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("45bfe85d",a,!0,{sourceMap:!1,shadowMode:!1})},"4da93":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("c223");var a={data:function(){return{options:{total_fee:""},insideData:{},adpid:"",return_url:"",main_color:""}},onLoad:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=JSON.parse(decodeURI(e.options)),this.options=e},onReady:function(){},onShow:function(){},onHide:function(){},methods:{onMounted:function(e){this.insideData=e},createOrder:function(e){Object.assign(this.options,e),this.$refs.uniPay.createOrder(this.options)},onSuccess:function(e){console.log("success: ",e),e.user_order_success&&uni.redirectTo({url:"/uni_modules/uni-pay/pages/success/success?out_trade_no=".concat(e.out_trade_no,"&order_no=").concat(e.pay_order.order_no,"&pay_date=").concat(e.pay_order.pay_date,"&total_fee=").concat(e.pay_order.total_fee,"&adpid=").concat(this.adpid,"&return_url=").concat(this.return_url,"&main_color=").concat(this.main_color)})}},watch:{},computed:{}};t.default=a},"4db3":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var a={uniPopup:n("a7ac").default,uniList:n("75e1").default,uniListItem:n("8ffd").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-pay"},["pc"===e.modeCom?n("uni-popup",{ref:"payPopup",attrs:{type:"center","safe-area":!1}},[n("v-uni-view",{staticClass:"pc-pay-popup"},[n("v-uni-view",{staticClass:"pc-pay-popup-title"},[e._v("收银台")]),n("v-uni-view",{staticClass:"pc-pay-popup-flex"},[n("v-uni-view",{staticClass:"pc-pay-popup-qrcode-box"},[n("v-uni-image",{staticClass:"pc-pay-popup-qrcode-image",attrs:{src:e.res.qr_code_image}}),n("v-uni-view",{staticClass:"pc-pay-popup-amount-box"},[n("v-uni-view",{staticClass:"pc-pay-popup-amount-tips"},[e._v("扫一扫付款")]),n("v-uni-view",{staticClass:"pc-pay-popup-amount"},[e._v(e._s((e.options.total_fee/100).toFixed(2)))])],1),e.res.qr_code_image?n("v-uni-view",{staticClass:"pc-pay-popup-complete-button"},[n("v-uni-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._getOrder()}}},[e._v("我已完成支付")])],1):e._e()],1),n("v-uni-view",{staticClass:"pc-pay-popup-provider-list"},[e.currentProviders.indexOf("wxpay")>-1?n("v-uni-view",{staticClass:"pc-pay-popup-provider-item",class:"wxpay"==e.options.provider?"active":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._pcChooseProvider("wxpay")}}},[n("v-uni-image",{staticClass:"pc-pay-popup-provider-image",attrs:{src:e.images.wxpay}}),n("v-uni-text",{staticClass:"pc-pay-popup-provider-text"},[e._v("微信支付")])],1):e._e(),e.currentProviders.indexOf("alipay")>-1?n("v-uni-view",{staticClass:"pc-pay-popup-provider-item",class:"alipay"==e.options.provider?"active":"",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._pcChooseProvider("alipay")}}},[n("v-uni-image",{staticClass:"pc-pay-popup-provider-image",attrs:{src:e.images.alipay}}),n("v-uni-text",{staticClass:"pc-pay-popup-provider-text"},[e._v("支付宝支付")])],1):e._e(),n("v-uni-view",{staticClass:"pc-pay-popup-logo"},[n("v-uni-image",{attrs:{src:e.logo,mode:"widthFix"}})],1)],1)],1)],1)],1):n("uni-popup",{ref:"payPopup",attrs:{type:"bottom","safe-area":!1}},[n("v-uni-view",{staticClass:"mobile-pay-popup",style:"min-height: "+e.height+";"},[n("v-uni-view",{staticClass:"mobile-pay-popup-title"},[e._v("收银台")]),n("v-uni-view",{staticClass:"mobile-pay-popup-amount-box"},[n("v-uni-view",[e._v("待支付金额:")]),n("v-uni-view",{staticClass:"mobile-pay-popup-amount"},[e._v(e._s((e.options.total_fee/100).toFixed(2)))])],1),n("v-uni-view",{staticClass:"mobile-pay-popup-provider-list"},[n("uni-list",[e.currentProviders.indexOf("wxpay")>-1?n("uni-list-item",{attrs:{thumb:e.images.wxpay,title:"微信支付",clickable:!0,link:!0},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.createOrder({provider:"wxpay"})}}}):e._e(),e.currentProviders.indexOf("alipay")>-1?n("uni-list-item",{attrs:{thumb:e.images.alipay,title:"支付宝",clickable:!0,link:!0},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.createOrder({provider:"alipay"})}}}):e._e()],1)],1)],1)],1),n("uni-popup",{ref:"qrcodePopup",attrs:{type:"center","safe-area":!1,animation:!1,"mask-click":!1},on:{close:function(t){arguments[0]=t=e.$handleEvent(t),e.clearQrcode.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"qrcode-popup-content"},[n("v-uni-image",{staticClass:"qrcode-image",attrs:{src:e.res.qr_code_image}}),n("v-uni-view",{staticClass:"qrcode-popup-info"},[n("v-uni-view",[n("v-uni-text",{staticClass:"qrcode-popup-info-fee"},[e._v(e._s((e.options.total_fee/100).toFixed(2)))]),n("v-uni-text",[e._v("元")])],1),"wxpay"==e.options.provider?n("v-uni-view",[e._v("请用微信扫码支付")]):"alipay"==e.options.provider?n("v-uni-view",[e._v("请用支付宝扫码支付")]):e._e()],1),n("v-uni-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._getOrder()}}},[e._v("我已完成支付")]),n("v-uni-view",{staticClass:"qrcode-popup-cancel",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closePopup("qrcodePopup")}}},[e._v("暂不支付")])],1)],1),n("uni-popup",{ref:"payConfirmPopup",attrs:{type:"center","safe-area":!1,animation:!1,"mask-click":!1}},[n("v-uni-view",{staticClass:"pay-confirm-popup-content"},[n("v-uni-view",{staticClass:"pay-confirm-popup-title"},[e._v("请确认支付是否已完成")]),n("v-uni-view",[n("v-uni-button",{attrs:{type:"primary"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._getOrder()}}},[e._v("已完成支付")])],1),n("v-uni-view",{staticClass:"pay-confirm-popup-refresh"},[n("v-uni-button",{attrs:{type:"default"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._afreshPayment()}}},[e._v("支付遇到问题,重新支付")])],1),n("v-uni-view",{staticClass:"pay-confirm-popup-cancel",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.closePopup("payConfirmPopup")}}},[e._v("暂不支付")])],1)],1)],1)},r=[]},"549f":function(e,t,n){"use strict";n.r(t);var a=n("8c26"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"56c6":function(e,t,n){"use strict";var a=n("4711"),i=n.n(a);i.a},5845:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-badge--x"},[e._t("default"),e.text?n("v-uni-text",{staticClass:"uni-badge",class:e.classNames,style:[e.positionStyle,e.customStyle,e.dotStyle],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick()}}},[e._v(e._s(e.displayValue))]):e._e()],2)},i=[]},6e3:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-text",{staticClass:"uni-icons",class:["uniui-"+e.type,e.customPrefix,e.customPrefix?e.type:""],style:e.styleObj,on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e._onClick.apply(void 0,arguments)}}},[e._t("default")],2)},i=[]},"62b0":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(t&&("object"===(0,a.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("7a76"),n("c9b5");var a=r(n("fcf3")),i=r(n("f478"));function r(e){return e&&e.__esModule?e:{default:e}}},"68ef":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=c,n("c1a3"),n("bf0f"),n("18f7"),n("de6c"),n("7a76"),n("c9b5");var a=s(n("f1f8")),i=s(n("e668")),r=s(n("d441")),o=s(n("d2c4"));function s(e){return e&&e.__esModule?e:{default:e}}function c(e){var n="function"===typeof Map?new Map:void 0;return t.default=c=function(e){if(null===e||!(0,r.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,a.default)(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,i.default)(t,e)},c(e)}},"6c31":function(e,t,n){"use strict";n("6a54"),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("bf0f"),n("7996"),n("6a88")},"6c34":function(e,t,n){var a=n("7f08");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("0d4233b7",a,!0,{sourceMap:!1,shadowMode:!1})},"70dc":function(e,t,n){"use strict";n.r(t);var a=n("1505"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"75e1":function(e,t,n){"use strict";n.r(t);var a=n("3a1f"),i=n("70dc");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("4b77");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"6fce09b0",null,!1,a["a"],void 0);t["default"]=s.exports},"79ac":function(e,t,n){"use strict";n.r(t);var a=n("f25f"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"7acc":function(e,t,n){"use strict";var a=n("0efa"),i=n.n(a);i.a},"7ed2":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var a={uniList:n("75e1").default,uniListItem:n("8ffd").default,uniPay:n("3f5b").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-pay"},[e.insideData&&e.insideData.currentProviders?n("v-uni-view",{staticClass:"mobile-pay-popup"},[n("v-uni-view",{staticClass:"mobile-pay-popup-amount-box"},[n("v-uni-view",[e._v("待支付金额:")]),n("v-uni-view",{staticClass:"mobile-pay-popup-amount"},[e._v(e._s((e.options.total_fee/100).toFixed(2)))])],1),n("v-uni-view",{staticClass:"mobile-pay-popup-provider-list"},[n("uni-list",[e.insideData.currentProviders.indexOf("wxpay")>-1?n("uni-list-item",{attrs:{thumb:e.insideData.images.wxpay,title:"微信支付",clickable:!0,link:!0},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.createOrder({provider:"wxpay"})}}}):e._e(),e.insideData.currentProviders.indexOf("alipay")>-1?n("uni-list-item",{attrs:{thumb:e.insideData.images.alipay,title:"支付宝",clickable:!0,link:!0},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.createOrder({provider:"alipay"})}}}):e._e()],1)],1)],1):e._e(),n("uni-pay",{ref:"uniPay",attrs:{"to-success-page":!1},on:{mounted:function(t){arguments[0]=t=e.$handleEvent(t),e.onMounted.apply(void 0,arguments)},success:function(t){arguments[0]=t=e.$handleEvent(t),e.onSuccess.apply(void 0,arguments)}}})],1)},r=[]},"7f08":function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-pay[data-v-364386d9]{--bgcolor:#f3f3f3}\n/* 手机版收银台弹窗开始 */.mobile-pay-popup[data-v-364386d9]{min-height:70vh;background-color:var(--bgcolor);border-radius:%?30?% %?30?% 0 0;overflow:hidden}.mobile-pay-popup .mobile-pay-popup-title[data-v-364386d9]{background-color:#fff;text-align:center;font-weight:700;font-size:%?40?%;padding:%?20?%}.mobile-pay-popup .mobile-pay-popup-amount-box[data-v-364386d9]{background-color:#fff;padding:%?30?%}.mobile-pay-popup .mobile-pay-popup-amount-box .mobile-pay-popup-amount[data-v-364386d9]{color:#e43d33;font-size:%?60?%;margin-top:%?20?%}.mobile-pay-popup .mobile-pay-popup-provider-list[data-v-364386d9]{background-color:#fff;margin-top:%?20?%}\n/* 手机版收银台弹窗结束 */\n/* PC版收银台弹窗开始 */.pc-pay-popup[data-v-364386d9]{width:800px;height:600px;background-color:var(--bgcolor);border-radius:10px;overflow:hidden}.pc-pay-popup .pc-pay-popup-title[data-v-364386d9]{background-color:#fff;text-align:center;font-weight:700;font-size:20px;height:66px;line-height:66px}.pc-pay-popup .pc-pay-popup-flex[data-v-364386d9]{width:100%;display:flex}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-qrcode-box[data-v-364386d9]{height:534px;flex:1;background-color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-qrcode-box .pc-pay-popup-qrcode-image[data-v-364386d9]{width:225px;height:225px}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-qrcode-box .pc-pay-popup-amount-box[data-v-364386d9]{text-align:center}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-qrcode-box .pc-pay-popup-amount-box .pc-pay-popup-amount-tips[data-v-364386d9]{color:#333;font-size:20px;margin-top:20px}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-qrcode-box .pc-pay-popup-amount-box .pc-pay-popup-amount[data-v-364386d9]{color:#dd524d;font-weight:700;font-size:32px;margin-top:20px}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-qrcode-box .pc-pay-popup-complete-button[data-v-364386d9]{margin-top:20px}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list[data-v-364386d9]{width:300px;display:flex;flex-direction:column}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-provider-item[data-v-364386d9]{padding:20px;display:flex;align-items:center}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-provider-item .pc-pay-popup-provider-image[data-v-364386d9]{width:60px;height:60px}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-provider-item .pc-pay-popup-provider-text[data-v-364386d9]{color:#333;font-size:20px;margin-left:10px}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-provider-item.active[data-v-364386d9]{background-color:#fff}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-provider-item[data-v-364386d9]:hover{background-color:#fff;cursor:pointer}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-logo[data-v-364386d9]{flex:1;display:flex;align-items:center;justify-content:center}.pc-pay-popup .pc-pay-popup-flex .pc-pay-popup-provider-list .pc-pay-popup-logo uni-image[data-v-364386d9]{width:120px}\n/* PC版收银台弹窗结束 */\n/* 二维码支付弹窗开始 */.qrcode-popup-content[data-v-364386d9]{width:%?600?%;background-color:#fff;border-radius:%?10?%;padding:%?40?%;box-sizing:border-box;text-align:center}.qrcode-popup-content .qrcode-image[data-v-364386d9]{width:%?450?%;height:%?450?%}.qrcode-popup-content .qrcode-popup-info[data-v-364386d9]{text-align:center;padding:%?20?%}.qrcode-popup-content .qrcode-popup-info .qrcode-popup-info-fee[data-v-364386d9]{color:red;font-size:%?60?%;font-weight:700}.qrcode-popup-content .qrcode-popup-cancel[data-v-364386d9]{margin-top:%?20?%;text-align:center}\n/* 二维码支付弹窗结束 */\n/* 外部浏览器H5支付弹窗确认开始 */.pay-confirm-popup-content[data-v-364386d9]{width:%?550?%;background-color:#fff;border-radius:%?10?%;padding:%?40?%}.pay-confirm-popup-content .pay-confirm-popup-title[data-v-364386d9]{text-align:center;padding:%?20?% 0;margin-bottom:%?30?%}.pay-confirm-popup-content .pay-confirm-popup-refresh[data-v-364386d9]{margin-top:%?20?%}.pay-confirm-popup-content .pay-confirm-popup-cancel[data-v-364386d9]{margin-top:%?20?%;text-align:center}\n/* 外部浏览器H5支付弹窗确认结束 */',""]),e.exports=t},"85a1":function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.uni-popup[data-v-bfae1f7c]{position:fixed;z-index:99}.uni-popup.top[data-v-bfae1f7c], .uni-popup.left[data-v-bfae1f7c], .uni-popup.right[data-v-bfae1f7c]{top:var(--window-top)}.uni-popup .uni-popup__wrapper[data-v-bfae1f7c]{display:block;position:relative\n /* iphonex 等安全区设置,底部安全区适配 */}.uni-popup .uni-popup__wrapper.left[data-v-bfae1f7c], .uni-popup .uni-popup__wrapper.right[data-v-bfae1f7c]{padding-top:var(--window-top);flex:1}.fixforpc-z-index[data-v-bfae1f7c]{z-index:999}.fixforpc-top[data-v-bfae1f7c]{top:0}',""]),e.exports=t},"861b":function(e,t,n){"use strict";(function(e){var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.uniCloud=t.default=t.UniCloudError=void 0;var i=a(n("f478")),r=a(n("5de6")),o=a(n("fcf3")),s=a(n("b7c7")),c=a(n("3471")),u=a(n("2634")),l=a(n("2fdc")),d=a(n("9b1b")),f=a(n("acb1")),p=a(n("cad9")),h=a(n("68ef")),v=a(n("80b1")),g=a(n("efe5"));n("4085"),n("7a76"),n("c9b5"),n("bf0f"),n("ab80"),n("f7a5"),n("aa9c"),n("e966"),n("c223"),n("dd2b"),n("5ef2"),n("2797"),n("dc8a"),n("473f"),n("4626"),n("5ac7"),n("4100"),n("5c47"),n("d4b5"),n("0c26"),n("0506"),n("fd3c"),n("6a54"),n("a1c1"),n("de6c"),n("c1a3"),n("18f7"),n("af8f"),n("64aa"),n("8f71"),n("23f4"),n("7d2f"),n("9c4e"),n("4db2"),n("c976"),n("4d8f"),n("7b97"),n("668a"),n("c5b7"),n("8ff5"),n("2378"),n("641a"),n("64e0"),n("cce3"),n("efba"),n("d009"),n("bd7d"),n("7edd"),n("d798"),n("f547"),n("5e54"),n("b60a"),n("8c18"),n("12973"),n("f991"),n("198e"),n("8557"),n("63b1"),n("1954"),n("1cf1"),n("01a2"),n("e39c"),n("e062"),n("aa77"),n("2c10"),n("f555"),n("dc69"),n("9370"),n("6730"),n("08eb"),n("15d1"),n("d5c6"),n("5a56"),n("f074"),n("20f3");var m=a(n("b87f"));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 b=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}}(),a={},i=a.lib={},r=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=r.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,a=this.sigBytes,i=e.sigBytes;if(this.clamp(),a%4)for(var r=0;r<i;r++){var o=n[r>>>2]>>>24-r%4*8&255;t[a+r>>>2]|=o<<24-(a+r)%4*8}else for(r=0;r<i;r+=4)t[a+r>>>2]=n[r>>>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=r.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,a=[],i=function(t){var n=987654321,a=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&a)<<16)+(t=18e3*(65535&t)+(t>>16)&a)&a;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},r=0;r<t;r+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),a.push(4294967296*s()|0)}return new o.init(a,t)}}),s=a.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;a.push((r>>>4).toString(16)),a.push((15&r).toString(16))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a+=2)n[a>>>3]|=parseInt(e.substr(a,2),16)<<24-a%8*4;return new o.init(n,t/2)}},u=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,a=[],i=0;i<n;i++){var r=t[i>>>2]>>>24-i%4*8&255;a.push(String.fromCharCode(r))}return a.join("")},parse:function(e){for(var t=e.length,n=[],a=0;a<t;a++)n[a>>>2]|=(255&e.charCodeAt(a))<<24-a%4*8;return new o.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(u.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return u.parse(unescape(encodeURIComponent(e)))}},d=i.BufferedBlockAlgorithm=r.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,a=n.words,i=n.sigBytes,r=this.blockSize,s=i/(4*r),c=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*r,u=e.min(4*c,i);if(c){for(var l=0;l<c;l+=r)this._doProcessBlock(a,l);var d=a.splice(0,c);n.sigBytes-=u}return new o.init(d,u)},clone:function(){var e=r.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=d.extend({cfg:r.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=a.algo={};return a}(Math),n)})),_=b,w=(y((function(e,t){var n;e.exports=(n=_,function(e){var t=n,a=t.lib,i=a.WordArray,r=a.Hasher,o=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var a=t+n,i=e[a];e[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],g=e[t+5],m=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],k=e[t+11],x=e[t+12],T=e[t+13],S=e[t+14],A=e[t+15],P=r[0],C=r[1],I=r[2],O=r[3];P=u(P,C,I,O,o,7,s[0]),O=u(O,P,C,I,c,12,s[1]),I=u(I,O,P,C,p,17,s[2]),C=u(C,I,O,P,h,22,s[3]),P=u(P,C,I,O,v,7,s[4]),O=u(O,P,C,I,g,12,s[5]),I=u(I,O,P,C,m,17,s[6]),C=u(C,I,O,P,y,22,s[7]),P=u(P,C,I,O,b,7,s[8]),O=u(O,P,C,I,_,12,s[9]),I=u(I,O,P,C,w,17,s[10]),C=u(C,I,O,P,k,22,s[11]),P=u(P,C,I,O,x,7,s[12]),O=u(O,P,C,I,T,12,s[13]),I=u(I,O,P,C,S,17,s[14]),P=l(P,C=u(C,I,O,P,A,22,s[15]),I,O,c,5,s[16]),O=l(O,P,C,I,m,9,s[17]),I=l(I,O,P,C,k,14,s[18]),C=l(C,I,O,P,o,20,s[19]),P=l(P,C,I,O,g,5,s[20]),O=l(O,P,C,I,w,9,s[21]),I=l(I,O,P,C,A,14,s[22]),C=l(C,I,O,P,v,20,s[23]),P=l(P,C,I,O,_,5,s[24]),O=l(O,P,C,I,S,9,s[25]),I=l(I,O,P,C,h,14,s[26]),C=l(C,I,O,P,b,20,s[27]),P=l(P,C,I,O,T,5,s[28]),O=l(O,P,C,I,p,9,s[29]),I=l(I,O,P,C,y,14,s[30]),P=d(P,C=l(C,I,O,P,x,20,s[31]),I,O,g,4,s[32]),O=d(O,P,C,I,b,11,s[33]),I=d(I,O,P,C,k,16,s[34]),C=d(C,I,O,P,S,23,s[35]),P=d(P,C,I,O,c,4,s[36]),O=d(O,P,C,I,v,11,s[37]),I=d(I,O,P,C,y,16,s[38]),C=d(C,I,O,P,w,23,s[39]),P=d(P,C,I,O,T,4,s[40]),O=d(O,P,C,I,o,11,s[41]),I=d(I,O,P,C,h,16,s[42]),C=d(C,I,O,P,m,23,s[43]),P=d(P,C,I,O,_,4,s[44]),O=d(O,P,C,I,x,11,s[45]),I=d(I,O,P,C,A,16,s[46]),P=f(P,C=d(C,I,O,P,p,23,s[47]),I,O,o,6,s[48]),O=f(O,P,C,I,y,10,s[49]),I=f(I,O,P,C,S,15,s[50]),C=f(C,I,O,P,g,21,s[51]),P=f(P,C,I,O,x,6,s[52]),O=f(O,P,C,I,h,10,s[53]),I=f(I,O,P,C,w,15,s[54]),C=f(C,I,O,P,c,21,s[55]),P=f(P,C,I,O,b,6,s[56]),O=f(O,P,C,I,A,10,s[57]),I=f(I,O,P,C,m,15,s[58]),C=f(C,I,O,P,T,21,s[59]),P=f(P,C,I,O,v,6,s[60]),O=f(O,P,C,I,k,10,s[61]),I=f(I,O,P,C,p,15,s[62]),C=f(C,I,O,P,_,21,s[63]),r[0]=r[0]+P|0,r[1]=r[1]+C|0,r[2]=r[2]+I|0,r[3]=r[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var r=e.floor(a/4294967296),o=a;n[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>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,c=s.words,u=0;u<4;u++){var l=c[u];c[u]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function u(e,t,n,a,i,r,o){var s=e+(t&n|~t&a)+i+o;return(s<<r|s>>>32-r)+t}function l(e,t,n,a,i,r,o){var s=e+(t&a|n&~a)+i+o;return(s<<r|s>>>32-r)+t}function d(e,t,n,a,i,r,o){var s=e+(t^n^a)+i+o;return(s<<r|s>>>32-r)+t}function f(e,t,n,a,i,r,o){var s=e+(n^(t|~a))+i+o;return(s<<r|s>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),n.MD5)})),y((function(e,t){var n;e.exports=(n=_,void function(){var e=n,t=e.lib.Base,a=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=a.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),s=r.words,c=o.words,u=0;u<n;u++)s[u]^=1549556828,c[u]^=909522486;r.sigBytes=o.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())})),y((function(e,t){e.exports=_.HmacMD5}))),k=y((function(e,t){e.exports=_.enc.Utf8})),x=y((function(e,t){var n;e.exports=(n=_,function(){var e=n,t=e.lib.WordArray;function a(e,n,a){for(var i=[],r=0,o=0;o<n;o++)if(o%4){var s=a[e.charCodeAt(o-1)]<<o%4*2,c=a[e.charCodeAt(o)]>>>6-o%4*2;i[r>>>2]|=(s|c)<<24-r%4*8,r++}return t.create(i,r)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,a=this._map;e.clamp();for(var i=[],r=0;r<n;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s<n;s++)i.push(a.charAt(o>>>6*(3-s)&63));var c=a.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var r=0;r<n.length;r++)i[n.charCodeAt(r)]=r}var o=n.charAt(64);if(o){var s=e.indexOf(o);-1!==s&&(t=s)}return a(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)})),T="uni_id_token",S="uni_id_token_expired",A={DEFAULT:"FUNCTION",FUNCTION:"FUNCTION",OBJECT:"OBJECT",CLIENT_DB:"CLIENT_DB"},P="pending",C="fulfilled",I="rejected";function O(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function E(e){return"object"===O(e)}function N(e){return"function"==typeof e}function B(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}var R="REJECTED",L="NOT_PENDING",U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.createPromise,a=t.retryRule,i=void 0===a?R:a;(0,v.default)(this,e),this.createPromise=n,this.status=null,this.promise=null,this.retryRule=i}return(0,g.default)(e,[{key:"needRetry",get:function(){if(!this.status)return!0;switch(this.retryRule){case R:return this.status===I;case L:return this.status!==P}}},{key:"exec",value:function(){var e=this;return this.needRetry?(this.status=P,this.promise=this.createPromise().then((function(t){return e.status=C,Promise.resolve(t)}),(function(t){return e.status=I,Promise.reject(t)})),this.promise):this.promise}}]),e}(),D=function(){function e(){(0,v.default)(this,e),this._callback={}}return(0,g.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 a=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(a,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,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];if(t)for(var r=0;r<t.length;r++)t[r].apply(t,a)}}]),e}();function M(e){return e&&"string"==typeof e?JSON.parse(e):e}var F=M([]),q="web",j=(M(void 0),M([])||[]);try{(n("dd71").default||n("dd71")).appid}catch(ya){}var K,V={};function $(e){var t,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=V,n=e,Object.prototype.hasOwnProperty.call(t,n)||(V[e]=a),V[e]}"app"===q&&(V=uni._globalUniCloudObj?uni._globalUniCloudObj:uni._globalUniCloudObj={});var H=["invoke","success","fail","complete"],z=$("_globalUniCloudInterceptor");function J(e,t){z[e]||(z[e]={}),E(t)&&Object.keys(t).forEach((function(n){H.indexOf(n)>-1&&function(e,t,n){var a=z[e][t];a||(a=z[e][t]=[]),-1===a.indexOf(n)&&N(n)&&a.push(n)}(e,n,t[n])}))}function W(e,t){z[e]||(z[e]={}),E(t)?Object.keys(t).forEach((function(n){H.indexOf(n)>-1&&function(e,t,n){var a=z[e][t];if(a){var i=a.indexOf(n);i>-1&&a.splice(i,1)}}(e,n,t[n])})):delete z[e]}function Y(e,t){return e&&0!==e.length?e.reduce((function(e,n){return e.then((function(){return n(t)}))}),Promise.resolve()):Promise.resolve()}function Q(e,t){return z[e]&&z[e][t]||[]}function X(e){J("callObject",e)}var G=$("_globalUniCloudListener"),Z={RESPONSE:"response",NEED_LOGIN:"needLogin",REFRESH_TOKEN:"refreshToken"},ee={CLIENT_DB:"clientdb",CLOUD_FUNCTION:"cloudfunction",CLOUD_OBJECT:"cloudobject"};function te(e){return G[e]||(G[e]=[]),G[e]}function ne(e,t){var n=te(e);n.includes(t)||n.push(t)}function ae(e,t){var n=te(e),a=n.indexOf(t);-1!==a&&n.splice(a,1)}function ie(e,t){for(var n=te(e),a=0;a<n.length;a++)(0,n[a])(t)}var re,oe=!1;function se(){return re||(re=new Promise((function(e){oe&&e(),function t(){if("function"==typeof getCurrentPages){var n=getCurrentPages();n&&n[0]&&(oe=!0,e())}oe||setTimeout((function(){t()}),30)}()})),re)}function ce(e){var t={};for(var n in e){var a=e[n];N(a)&&(t[n]=B(a))}return t}var ue=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(e){var a;return(0,v.default)(this,n),a=t.call(this,e.message),a.errMsg=e.message||e.errMsg||"unknown system error",a.code=a.errCode=e.code||e.errCode||"SYSTEM_ERROR",a.errSubject=a.subject=e.subject||e.errSubject,a.cause=e.cause,a.requestId=e.requestId,a}return(0,g.default)(n,[{key:"toJson",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}]),n}((0,h.default)(Error));t.UniCloudError=ue;var le,de,fe={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()},connectSocket:function(e){return uni.connectSocket(e)}};function pe(){return{token:fe.getStorageSync(T)||fe.getStorageSync("uniIdToken"),tokenExpired:fe.getStorageSync(S)}}function he(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.token,n=e.tokenExpired;t&&fe.setStorageSync(T,t),n&&fe.setStorageSync(S,n)}function ve(){return le||(le=uni.getSystemInfoSync()),le}var ge={};function me(){var e=uni.getLocale&&uni.getLocale()||"en";if(de)return(0,d.default)((0,d.default)((0,d.default)({},ge),de),{},{locale:e,LOCALE:e});var t=ve(),n=t.deviceId,a=t.osName,i=t.uniPlatform,r=t.appId,o=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(var s in t)Object.hasOwnProperty.call(t,s)&&-1===o.indexOf(s)&&delete t[s];return de=(0,d.default)((0,d.default)({PLATFORM:i,OS:a,APPID:r,DEVICEID:n},function(){var e,t;try{if(uni.getLaunchOptionsSync){if(uni.getLaunchOptionsSync.toString().indexOf("not yet implemented")>-1)return;var n=uni.getLaunchOptionsSync(),a=n.scene,i=n.channel;e=i,t=a}}catch(e){}return{channel:e,scene:t}}()),t),(0,d.default)((0,d.default)((0,d.default)({},ge),de),{},{locale:e,LOCALE:e})}var ye,be={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),w(n,t).toString()},wrappedRequest:function(e,t){return new Promise((function(n,a){t(Object.assign(e,{complete:function(e){e||(e={});var t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){var i=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",r=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return a(new ue({code:i,message:r,requestId:t}))}var o=e.data;if(o.error)return a(new ue({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},toBase64:function(e){return x.stringify(k.parse(e))}},_e=function(){function e(t){var n=this;(0,v.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=fe,this._getAccessTokenPromiseHub=new U({createPromise:function(){return n.requestAuth(n.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){if(!e.result||!e.result.accessToken)throw new ue({code:"AUTH_FAILED",message:"获取accessToken失败"});n.setAccessToken(e.result.accessToken)}))},retryRule:L})}return(0,g.default)(e,[{key:"hasAccessToken",get:function(){return!!this.accessToken}},{key:"setAccessToken",value:function(e){this.accessToken=e}},{key:"requestWrapped",value:function(e){return be.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"]=be.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()}),a={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,a["x-basement-token"]=this.accessToken),a["x-serverless-sign"]=be.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:a}}},{key:"getAccessToken",value:function(){return this._getAccessTokenPromiseHub.exec()}},{key:"authorize",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.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((0,d.default)((0,d.default)({},this.setupRequest(t)),{},{timeout:e.timeout}))}},{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,a=e.formData,i=e.name,r=e.filePath,o=e.fileType,s=e.onUploadProgress;return new Promise((function(e,c){var u=t.adapter.uploadFile({url:n,formData:a,name:i,filePath:r,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(t){t&&t.statusCode<400?e(t):c(new ue({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){c(new ue({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a,i,r,o,s,c,l,d,f,p,h,v,g,m,y,b,_,w,k,x,T;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,a=t.cloudPath,i=t.fileType,r=void 0===i?"image":i,o=t.cloudPathAsRealPath,s=void 0!==o&&o,c=t.onUploadProgress,l=t.config,"string"===O(a)){e.next=3;break}throw new ue({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(a=a.trim()){e.next=5;break}throw new ue({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(a)){e.next=7;break}throw new ue({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:if(d=l&&l.envType||this.config.envType,!(s&&("/"!==a[0]&&(a="/"+a),a.indexOf("\\")>-1))){e.next=10;break}throw new ue({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});case 10:return e.next=12,this.getOSSUploadOptionsFromPath({env:d,filename:s?a.split("/").pop():a,fileId:s?a:void 0});case 12:return f=e.sent.result,p="https://"+f.cdnDomain+"/"+f.ossPath,h=f.securityToken,v=f.accessKeyId,g=f.signature,m=f.host,y=f.ossPath,b=f.id,_=f.policy,w=f.ossCallbackUrl,k={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:v,Signature:g,host:m,id:b,key:y,policy:_,success_action_status:200},h&&(k["x-oss-security-token"]=h),w&&(x=JSON.stringify({callbackUrl:w,callbackBody:JSON.stringify({fileId:b,spaceId:this.config.spaceId}),callbackBodyType:"application/json"}),k.callback=be.toBase64(x)),T={url:"https://"+f.host,formData:k,fileName:"file",name:"file",filePath:n,fileType:r},e.next=27,this.uploadFileToOSS(Object.assign({},T,{onUploadProgress:c}));case 27:if(!w){e.next=29;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 29:return e.next=31,this.reportOSSUpload({id:b});case 31:if(!e.sent.success){e.next=33;break}return e.abrupt("return",{success:!0,filePath:n,fileID:p});case 33:throw new ue({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 ue({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,u.default)().mark((function e(){var t,n,a,i=arguments;return(0,u.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 ue({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});case 3:return a={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(a));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}(),we={init:function(e){var t=new _e(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,Te=function(){},Se=y((function(e,t){var n;e.exports=(n=_,function(e){var t=n,a=t.lib,i=a.WordArray,r=a.Hasher,o=t.algo,s=[],c=[];!function(){function t(t){for(var n=e.sqrt(t),a=2;a<=n;a++)if(!(t%a))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var a=2,i=0;i<64;)t(a)&&(i<8&&(s[i]=n(e.pow(a,.5))),c[i]=n(e.pow(a,1/3)),i++),a++}();var u=[],l=o.SHA256=r.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,a=n[0],i=n[1],r=n[2],o=n[3],s=n[4],l=n[5],d=n[6],f=n[7],p=0;p<64;p++){if(p<16)u[p]=0|e[t+p];else{var h=u[p-15],v=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,g=u[p-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[p]=v+u[p-7]+m+u[p-16]}var y=a&i^a&r^i&r,b=(a<<30|a>>>2)^(a<<19|a>>>13)^(a<<10|a>>>22),_=f+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&d)+c[p]+u[p];f=d,d=l,l=s,s=o+_|0,o=r,r=i,i=a,a=_+(b+y)|0}n[0]=n[0]+a|0,n[1]=n[1]+i|0,n[2]=n[2]+r|0,n[3]=n[3]+o|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+d|0,n[7]=n[7]+f|0},_doFinalize:function(){var t=this._data,n=t.words,a=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(a/4294967296),n[15+(i+64>>>9<<4)]=a,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(l),t.HmacSHA256=r._createHmacHelper(l)}(Math),n.SHA256)})),Ae=Se,Pe=y((function(e,t){e.exports=_.HmacSHA256})),Ce=function(){var e;if(!Promise){e=function(){},e.promise={};var t=function(){throw new ue({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,a){return e?n(e):t(a)}}));return e.promise=n,e};function Ie(e){return void 0===e}function Oe(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ee(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/([\s\S]+)\s+(请前往云开发AI小助手查看问题:.*)/,"$1")}function Ne(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n="",a=0;a<e;a++)n+=t.charAt(Math.floor(62*Math.random()));return n}!function(e){e.WEB="web",e.WX_MP="wx_mp"}(xe||(xe={}));var Be={adapter:null,runtime:void 0},Re=["anonymousUuidKey"],Le=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),Be.adapter.root.tcbObject||(Be.adapter.root.tcbObject={}),e}return(0,g.default)(n,[{key:"setItem",value:function(e,t){Be.adapter.root.tcbObject[e]=t}},{key:"getItem",value:function(e){return Be.adapter.root.tcbObject[e]}},{key:"removeItem",value:function(e){delete Be.adapter.root.tcbObject[e]}},{key:"clear",value:function(){delete Be.adapter.root.tcbObject}}]),n}(Te);function Ue(e,t){switch(e){case"local":return t.localStorage||new Le;case"none":return new Le;default:return t.sessionStorage||new Le}}var De=function(){function e(t){if((0,v.default)(this,e),!this._storage){this._persistence=Be.adapter.primaryStorage||t.persistence,this._storage=Ue(this._persistence,Be.adapter);var n="access_token_".concat(t.env),a="access_token_expire_".concat(t.env),i="refresh_token_".concat(t.env),r="anonymous_uuid_".concat(t.env),o="login_type_".concat(t.env),s="token_type_".concat(t.env),c="user_info_".concat(t.env);this.keys={accessTokenKey:n,accessTokenExpireKey:a,refreshTokenKey:i,anonymousUuidKey:r,loginTypeKey:o,userInfoKey:c,deviceIdKey:"device_id",tokenTypeKey:s}}}return(0,g.default)(e,[{key:"updatePersistence",value:function(e){if(e!==this._persistence){var t="local"===this._persistence;this._persistence=e;var n=Ue(e,Be.adapter);for(var a in this.keys){var i=this.keys[a];if(!t||!Re.includes(a)){var r=this._storage.getItem(i);Ie(r)||Oe(r)||(n.setItem(i,r),this._storage.removeItem(i))}}this._storage=n}}},{key:"setStore",value:function(e,t,n){if(this._storage){var a={version:n||"localCachev1",content:t},i=JSON.stringify(a);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}(),Me={},Fe={};function qe(e){return Me[e]}var je=(0,g.default)((function e(t,n){(0,v.default)(this,e),this.data=n||null,this.name=t})),Ke=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(e,a){var i;return(0,v.default)(this,n),i=t.call(this,"error",{error:e,data:a}),i.error=e,i}return(0,g.default)(n)}(je),Ve=new(function(){function e(){(0,v.default)(this,e),this._listeners={}}return(0,g.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 a=n[e].indexOf(t);-1!==a&&n[e].splice(a,1)}}(e,t,this._listeners),this}},{key:"fire",value:function(e,t){if(e instanceof Ke)return console.error(e.error),this;var n="string"==typeof e?new je(e,t||{}):e,a=n.name;if(this._listens(a)){n.target=this;var i,r=this._listeners[a]?(0,s.default)(this._listeners[a]):[],o=(0,c.default)(r);try{for(o.s();!(i=o.n()).done;){var u=i.value;u.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 $e(e,t){Ve.on(e,t)}function He(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ve.fire(e,t)}function ze(e,t){Ve.off(e,t)}var Je,We="loginStateChanged",Ye="loginStateExpire",Qe="loginTypeChanged",Xe="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"}(Je||(Je={}));var Ze=function(){function e(){(0,v.default)(this,e),this._fnPromiseMap=new Map}return(0,g.default)(e,[{key:"run",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i=this;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=this._fnPromiseMap.get(t),e.abrupt("return",(a||(a=new Promise(function(){var e=(0,l.default)((0,u.default)().mark((function e(a,r){var o;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i._runIdlePromise();case 3:return o=n(),e.t0=a,e.next=7,o;case 7:e.t1=e.sent,(0,e.t0)(e.t1),e.next=14;break;case 11:e.prev=11,e.t2=e["catch"](0),r(e.t2);case 14:return e.prev=14,i._fnPromiseMap.delete(t),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,11,14,17]])})));return function(t,n){return e.apply(this,arguments)}}()),this._fnPromiseMap.set(t,a)),a));case 2:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_runIdlePromise",value:function(){return Promise.resolve()}}]),e}(),et=function(){function e(t){(0,v.default)(this,e),this._singlePromise=new Ze,this._cache=qe(t.env),this._baseURL="https://".concat(t.env,".ap-shanghai.tcb-api.tencentcloudapi.com"),this._reqClass=new Be.adapter.reqClass({timeout:t.timeout,timeoutMsg:"请求在".concat(t.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]})}return(0,g.default)(e,[{key:"_getDeviceId",value:function(){if(this._deviceID)return this._deviceID;var e=this._cache.keys.deviceIdKey,t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Ne(),this._cache.setStore(e,t)),this._deviceID=t,t}},{key:"_request",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i,r,o,s,c=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=c.length>2&&void 0!==c[2]?c[2]:{},i={"x-request-id":Ne(),"x-device-id":this._getDeviceId()},!a.withAccessToken){e.next=9;break}return r=this._cache.keys.tokenTypeKey,e.next=6,this.getAccessToken();case 6:o=e.sent,s=this._cache.getStore(r),i.authorization="".concat(s," ").concat(o);case 9:return e.abrupt("return",this._reqClass["get"===a.method?"get":"post"]({url:"".concat(this._baseURL).concat(t),data:n,headers:i}));case 10:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_fetchAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,a,i,r,o,s,c,d,f,p=this;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.loginTypeKey,a=t.accessTokenKey,i=t.accessTokenExpireKey,r=t.tokenTypeKey,o=this._cache.getStore(n),!o||o===Je.ANONYMOUS){e.next=3;break}throw new ue({code:"INVALID_OPERATION",message:"非匿名登录不支持刷新 access token"});case 3:return e.next=5,this._singlePromise.run("fetchAccessToken",(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p._request("/auth/v1/signin/anonymously",{},{method:"post"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)}))));case 5:return s=e.sent,c=s.access_token,d=s.expires_in,f=s.token_type,e.abrupt("return",(this._cache.setStore(r,f),this._cache.setStore(a,c),this._cache.setStore(i,Date.now()+1e3*d),c));case 10:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"isAccessTokenExpired",value:function(e,t){var n=!0;return e&&t&&(n=t<Date.now()),n}},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,a,i,r;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,i=this._cache.getStore(n),r=this._cache.getStore(a),e.abrupt("return",this.isAccessTokenExpired(i,r)?this._fetchAccessToken():i);case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"refreshAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n,a,i;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,i=t.loginTypeKey,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(a),this._cache.setStore(i,Je.ANONYMOUS),this.getAccessToken()));case 2:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getUserInfo",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t=this;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",this._singlePromise.run("getUserInfo",(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e)})))));case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()}]),e}(),tt=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],nt={"X-SDK-Version":"1.3.5"};function at(e,t,n){var a=e[t];e[t]=function(t){var i={},r={};n.forEach((function(n){var a=n.call(e,t),o=a.data,s=a.headers;Object.assign(i,o),Object.assign(r,s)}));var o=t.data;return o&&function(){var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data=(0,d.default)((0,d.default)({},o),i);else for(var n in i)o.append(n,i[n])}(),t.headers=(0,d.default)((0,d.default)({},t.headers||{}),r),a.call(e,t)}}function it(){var e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:(0,d.default)((0,d.default)({},nt),{},{"x-seqid":e})}}var rt=function(){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,v.default)(this,e),this.config=n,this._reqClass=new Be.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:"请求在".concat(this.config.timeout/1e3,"s内未完成,已中断"),restrictedMethods:["post"]}),this._cache=qe(this.config.env),this._localCache=(t=this.config.env,Fe[t]),this.oauth=new et(this.config),at(this._reqClass,"post",[it]),at(this._reqClass,"upload",[it]),at(this._reqClass,"download",[it])}return(0,g.default)(e,[{key:"post",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.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,u.default)().mark((function e(t){return(0,u.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,u.default)().mark((function e(t){return(0,u.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,u.default)().mark((function e(){var t,n;return(0,u.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,u.default)().mark((function e(){var t,n,a,i,r,o,s,c,l,d,f,p,h;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,i=t.refreshTokenKey,r=t.loginTypeKey,o=t.anonymousUuidKey,this._cache.removeStore(n),this._cache.removeStore(a),s=this._cache.getStore(i),s){e.next=5;break}throw new ue({message:"未登录CloudBase"});case 5:return c={refresh_token:s},e.next=8,this.request("auth.fetchAccessTokenWithRefreshToken",c);case 8:if(l=e.sent,!l.data.code){e.next=21;break}if(d=l.data.code,"SIGN_PARAM_INVALID"!==d&&"REFRESH_TOKEN_EXPIRED"!==d&&"INVALID_REFRESH_TOKEN"!==d){e.next=20;break}if(this._cache.getStore(r)!==Je.ANONYMOUS||"INVALID_REFRESH_TOKEN"!==d){e.next=19;break}return f=this._cache.getStore(o),p=this._cache.getStore(i),e.next=17,this.send("auth.signInAnonymously",{anonymous_uuid:f,refresh_token:p});case 17:return h=e.sent,e.abrupt("return",(this.setRefreshToken(h.refresh_token),this._refreshAccessToken()));case 19:He(Ye),this._cache.removeStore(i);case 20:throw new ue({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",(He(Ge),this._cache.setStore(n,l.data.access_token),this._cache.setStore(a,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,u.default)().mark((function e(){var t,n,a,i,r,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,i=t.refreshTokenKey,this._cache.getStore(i)){e.next=3;break}throw new ue({message:"refresh token不存在,登录状态异常"});case 3:if(r=this._cache.getStore(n),o=this._cache.getStore(a),s=!0,e.t0=this._shouldRefreshAccessTokenHook,!e.t0){e.next=9;break}return e.next=8,this._shouldRefreshAccessTokenHook(r,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",(!r||!o||o<Date.now())&&s?this.refreshAccessToken():{accessToken:r,accessTokenExpire:o});case 13:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"request",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n,a){var i,r,o,s,c,l,f,p,h,v,g,m,y,b,_;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i="x-tcb-trace_".concat(this.config.env),r="application/x-www-form-urlencoded",o=(0,d.default)({action:t,env:this.config.env,dataVersion:"2019-08-16"},n),e.t0=-1===tt.indexOf(t),!e.t0){e.next=9;break}return this._cache.keys,e.next=8,this.oauth.getAccessToken();case 8:o.access_token=e.sent;case 9:if("storage.uploadFile"!==t){e.next=15;break}for(c in s=new FormData,s)s.hasOwnProperty(c)&&void 0!==s[c]&&s.append(c,o[c]);r="multipart/form-data",e.next=17;break;case 15:for(l in r="application/json",s={},o)void 0!==o[l]&&(s[l]=o[l]);case 17:return f={headers:{"content-type":r}},a&&a.timeout&&(f.timeout=a.timeout),a&&a.onUploadProgress&&(f.onUploadProgress=a.onUploadProgress),p=this._localCache.getStore(i),p&&(f.headers["X-TCB-Trace"]=p),h=n.parse,v=n.inQuery,g=n.search,m={env:this.config.env},h&&(m.parse=!0),v&&(m=(0,d.default)((0,d.default)({},v),m)),y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=/\?/.test(t),i="";for(var r in n)""===i?!a&&(t+="?"):i+="&",i+="".concat(r,"=").concat(encodeURIComponent(n[r]));return/^http(s)?\:\/\//.test(t+=i)?t:"".concat(e).concat(t)}(ke,"//tcb-api.tencentcloudapi.com/web",m),g&&(y+=g),e.next=28,this.post((0,d.default)({url:y,data:s},f));case 28: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=32;break}throw new ue({code:"NETWORK_ERROR",message:"network request error"});case 32:return e.abrupt("return",b);case 33:case"end":return e.stop()}}),e,this)})));return function(t,n,a){return e.apply(this,arguments)}}()},{key:"send",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a,i,r,o=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},a=o.length>2&&void 0!==o[2]?o[2]:{},e.next=4,this.request(t,n,(0,d.default)((0,d.default)({},a),{},{onUploadProgress:n.onUploadProgress}));case 4:if(i=e.sent,"ACCESS_TOKEN_DISABLED"!==i.data.code&&"ACCESS_TOKEN_EXPIRED"!==i.data.code||-1!==tt.indexOf(t)){e.next=14;break}return e.next=8,this.oauth.refreshAccessToken();case 8:return e.next=10,this.request(t,n,(0,d.default)((0,d.default)({},a),{},{onUploadProgress:n.onUploadProgress}));case 10:if(r=e.sent,!r.data.code){e.next=13;break}throw new ue({code:r.data.code,message:Ee(r.data.message)});case 13:return e.abrupt("return",r.data);case 14:if(!i.data.code){e.next=16;break}throw new ue({code:i.data.code,message:Ee(i.data.message)});case 16:return e.abrupt("return",i.data);case 17: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,a=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(a),this._cache.setStore(i,e)}}]),e}(),ot={};function st(e){return ot[e]}var ct=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=qe(t.env),this._request=st(t.env)}return(0,g.default)(e,[{key:"setRefreshToken",value:function(e){var t=this._cache.keys,n=t.accessTokenKey,a=t.accessTokenExpireKey,i=t.refreshTokenKey;this._cache.removeStore(n),this._cache.removeStore(a),this._cache.setStore(i,e)}},{key:"setAccessToken",value:function(e,t){var n=this._cache.keys,a=n.accessTokenKey,i=n.accessTokenExpireKey;this._cache.setStore(a,e),this._cache.setStore(i,t)}},{key:"refreshUserInfo",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t,n;return(0,u.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}(),ut=function(){function e(t){if((0,v.default)(this,e),!t)throw new ue({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=t,this._cache=qe(this._envId),this._request=st(this._envId),this.setUserInfo()}return(0,g.default)(e,[{key:"linkWithTicket",value:function(e){if("string"!=typeof e)throw new ue({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 ue({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,u.default)().mark((function e(){var t,n,a,i;return(0,u.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,a=!1,i=n.users,e.abrupt("return",(i.forEach((function(e){e.wxOpenId&&e.wxPublicId&&(a=!0)})),{users:i,hasPrimaryUid:a}));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,u.default)().mark((function e(t){var n,a,i,r,o,s,c,l;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.nickName,a=t.gender,i=t.avatarUrl,r=t.province,o=t.country,s=t.city,e.next=8,this._request.send("auth.updateUserInfo",{nickName:n,gender:a,avatarUrl:i,province:r,country:o,city:s});case 8:c=e.sent,l=c.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,u.default)().mark((function e(){var t;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this._request.oauth.getUserInfo();case 2:return t=e.sent,e.abrupt("return",(this.setLocalUserInfo(t),t));case 4: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}(),lt=function(){function e(t){if((0,v.default)(this,e),!t)throw new ue({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=qe(t);var n=this._cache.keys,a=n.refreshTokenKey,i=n.accessTokenKey,r=n.accessTokenExpireKey,o=this._cache.getStore(a),s=this._cache.getStore(i),c=this._cache.getStore(r);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:c},this.user=new ut(t)}return(0,g.default)(e,[{key:"isAnonymousAuth",get:function(){return this.loginType===Je.ANONYMOUS}},{key:"isCustomAuth",get:function(){return this.loginType===Je.CUSTOM}},{key:"isWeixinAuth",get:function(){return this.loginType===Je.WECHAT||this.loginType===Je.WECHAT_OPEN||this.loginType===Je.WECHAT_PUBLIC}},{key:"loginType",get:function(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}]),e}(),dt=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,g.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){var t;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._cache.updatePersistence("local"),e.next=3,this._request.oauth.getAccessToken();case 3:return He(We),He(Qe,{env:this.config.env,loginType:Je.ANONYMOUS,persistence:"local"}),t=new lt(this.config.env),e.next=8,t.user.refresh();case 8:return e.abrupt("return",t);case 9:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a,i,r,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=this._cache.keys,a=n.anonymousUuidKey,i=n.refreshTokenKey,r=this._cache.getStore(a),o=this._cache.getStore(i),e.next=7,this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:r,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 He(Xe,{env:this.config.env}),He(Qe,{loginType:Je.CUSTOM,persistence:"local"}),e.abrupt("return",{credential:{refreshToken:s.refresh_token}});case 16:throw new ue({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,a=t.loginTypeKey;this._cache.removeStore(n),this._cache.setStore(n,e),this._cache.setStore(a,Je.ANONYMOUS)}},{key:"_clearAnonymousUUID",value:function(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}]),n}(ct),ft=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,g.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ue({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(a=e.sent,!a.refresh_token){e.next=15;break}return this.setRefreshToken(a.refresh_token),e.next=10,this._request.refreshAccessToken();case 10:return He(We),He(Qe,{env:this.config.env,loginType:Je.CUSTOM,persistence:this.config.persistence}),e.next=14,this.refreshUserInfo();case 14:return e.abrupt("return",new lt(this.config.env));case 15:throw new ue({message:"自定义登录失败"});case 16:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(ct),pt=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,g.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i,r,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ue({code:"PARAM_ERROR",message:"email must be a string"});case 2:return a=this._cache.keys.refreshTokenKey,e.next=5,this._request.send("auth.signIn",{loginType:"EMAIL",email:t,password:n,refresh_token:this._cache.getStore(a)||""});case 5:if(i=e.sent,r=i.refresh_token,o=i.access_token,s=i.access_token_expire,!r){e.next=22;break}if(this.setRefreshToken(r),!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 He(We),He(Qe,{env:this.config.env,loginType:Je.EMAIL,persistence:this.config.persistence}),e.abrupt("return",new lt(this.config.env));case 22:throw i.code?new ue({code:i.code,message:"邮箱登录失败: ".concat(i.message)}):new ue({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,u.default)().mark((function e(t){return(0,u.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,u.default)().mark((function e(t,n){return(0,u.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}(ct),ht=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,g.default)(n,[{key:"signIn",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i,r,o,s;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ue({code:"PARAM_ERROR",message:"username must be a string"});case 2:return"string"!=typeof n&&(n="",console.warn("password is empty")),a=this._cache.keys.refreshTokenKey,e.next=6,this._request.send("auth.signIn",{loginType:Je.USERNAME,username:t,password:n,refresh_token:this._cache.getStore(a)||""});case 6:if(i=e.sent,r=i.refresh_token,o=i.access_token_expire,s=i.access_token,!r){e.next=23;break}if(this.setRefreshToken(r),!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 He(We),He(Qe,{env:this.config.env,loginType:Je.USERNAME,persistence:this.config.persistence}),e.abrupt("return",new lt(this.config.env));case 23:throw i.code?new ue({code:i.code,message:"用户名密码登录失败: ".concat(i.message)}):new ue({message:"用户名密码登录失败"});case 24:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()}]),n}(ct),vt=function(){function e(t){(0,v.default)(this,e),this.config=t,this._cache=qe(t.env),this._request=st(t.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),$e(Qe,this._onLoginTypeChanged)}return(0,g.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 dt(this.config)}},{key:"customAuthProvider",value:function(){return new ft(this.config)}},{key:"emailAuthProvider",value:function(){return new pt(this.config)}},{key:"usernameAuthProvider",value:function(){return new ht(this.config)}},{key:"signInAnonymously",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new dt(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,u.default)().mark((function e(t,n){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new pt(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 ht(this.config).signIn(e,t)}},{key:"linkAndRetrieveDataWithTicket",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new dt(this.config)),$e(Xe,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,u.default)().mark((function e(){var t,n,a,i,r,o;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(this.loginType!==Je.ANONYMOUS){e.next=2;break}throw new ue({message:"匿名用户不支持登出操作"});case 2:if(t=this._cache.keys,n=t.refreshTokenKey,a=t.accessTokenKey,i=t.accessTokenExpireKey,r=this._cache.getStore(n),r){e.next=5;break}return e.abrupt("return");case 5:return e.next=7,this._request.send("auth.logout",{refresh_token:r});case 7:return o=e.sent,e.abrupt("return",(this._cache.removeStore(n),this._cache.removeStore(a),this._cache.removeStore(i),He(We),He(Qe,{env:this.config.env,loginType:Je.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,u.default)().mark((function e(t,n){return(0,u.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,u.default)().mark((function e(t){return(0,u.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;$e(We,(function(){var n=t.hasLoginState();e.call(t,n)}));var n=this.hasLoginState();e.call(this,n)}},{key:"onLoginStateExpired",value:function(e){$e(Ye,e.bind(this))}},{key:"onAccessTokenRefreshed",value:function(e){$e(Ge,e.bind(this))}},{key:"onAnonymousConverted",value:function(e){$e(Xe,e.bind(this))}},{key:"onLoginTypeChanged",value:function(e){var t=this;$e(Qe,(function(){var n=t.hasLoginState();e.call(t,n)}))}},{key:"getAccessToken",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(){return(0,u.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,t=e.accessTokenKey,n=e.accessTokenExpireKey,a=this._cache.getStore(t),i=this._cache.getStore(n);return this._request.oauth.isAccessTokenExpired(a,i)?null:new lt(this.config.env)}},{key:"isUsernameRegistered",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if("string"==typeof t){e.next=2;break}throw new ue({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,a=n.data,e.abrupt("return",a&&a.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,u.default)().mark((function e(t){return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",new ft(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,d.default)((0,d.default)({},e.data),{},{requestId:e.seqId})}))}},{key:"getAuthHeader",value:function(){var e=this._cache.keys,t=e.refreshTokenKey,n=e.accessTokenKey,a=this._cache.getStore(t);return{"x-cloudbase-credentials":this._cache.getStore(n)+"/@@/"+a}}},{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,a=t.persistence,i=t.env;i===this.config.env&&(this._cache.updatePersistence(a),this._cache.setStore(this._cache.keys.loginTypeKey,n))}}]),e}(),gt=function(e,t){t=t||Ce();var n=st(this.config.env),a=e.cloudPath,i=e.filePath,r=e.onUploadProgress,o=e.fileType,s=void 0===o?"image":o;return n.send("storage.getUploadMetadata",{path:a}).then((function(e){var o=e.data,c=o.url,u=o.authorization,l=o.token,d=o.fileId,f=o.cosFileId,p=e.requestId,h={key:a,signature:u,"x-cos-meta-fileid":f,success_action_status:"201","x-cos-security-token":l};n.upload({url:c,data:h,file:i,name:a,fileType:s,onUploadProgress:r}).then((function(e){201===e.statusCode?t(null,{fileID:d,requestId:p}):t(new ue({code:"STORAGE_REQUEST_FAIL",message:"STORAGE_REQUEST_FAIL: ".concat(e.data)}))})).catch((function(e){t(e)}))})).catch((function(e){t(e)})),t.promise},mt=function(e,t){t=t||Ce();var n=st(this.config.env),a=e.cloudPath;return n.send("storage.getUploadMetadata",{path:a}).then((function(e){t(null,e)})).catch((function(e){t(e)})),t.promise},yt=function(e,t){var n=e.fileList;if(t=t||Ce(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};var a,i=(0,c.default)(n);try{for(i.s();!(a=i.n()).done;){var r=a.value;if(!r||"string"!=typeof r)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"}}}catch(s){i.e(s)}finally{i.f()}var o={fileid_list:n};return st(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},bt=function(e,t){var n=e.fileList;t=t||Ce(),n&&Array.isArray(n)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});var a,i=[],r=(0,c.default)(n);try{for(r.s();!(a=r.n()).done;){var s=a.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){r.e(l)}finally{r.f()}var u={file_list:i};return st(this.config.env).send("storage.batchGetDownloadUrl",u).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},_t=function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i,r,o;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a=t.fileID,e.next=3,bt.call(this,{fileList:[{fileID:a,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(r=st(this.config.env),o=i.download_url,o=encodeURI(o),n){e.next=10;break}return e.abrupt("return",r.download({url:o}));case 10:return e.t0=n,e.next=13,r.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)}}(),wt=function(e,t){var n,a=e.name,i=e.data,r=e.query,o=e.parse,s=e.search,c=e.timeout,u=t||Ce();try{n=i?JSON.stringify(i):""}catch(a){return Promise.reject(a)}if(!a)return Promise.reject(new ue({code:"PARAM_ERROR",message:"函数名不能为空"}));var l={inQuery:r,parse:o,search:s,function_name:a,request_data:n};return st(this.config.env).send("functions.invokeFunction",l,{timeout: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 ue({message:"response data must be json"}))}}return u.promise})).catch((function(e){u(e)})),u.promise},kt={timeout:15e3,persistence:"session"},xt={},Tt=function(){function e(t){(0,v.default)(this,e),this.config=t||this.config,this.authObj=void 0}return(0,g.default)(e,[{key:"init",value:function(t){switch(Be.adapter||(this.requestClient=new Be.adapter.reqClass({timeout:t.timeout||5e3,timeoutMsg:"请求在".concat((t.timeout||5e3)/1e3,"s内未完成,已中断")})),this.config=(0,d.default)((0,d.default)({},kt),t),!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new e(this.config)}},{key:"auth",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.persistence;if(this.authObj)return this.authObj;var n,a=t||Be.adapter.primaryStorage||kt.persistence;return a!==this.config.persistence&&(this.config.persistence=a),function(e){var t=e.env;Me[t]=new De(e),Fe[t]=new De((0,d.default)((0,d.default)({},e),{},{persistence:"local"}))}(this.config),n=this.config,ot[n.env]=new rt(n),this.authObj=new vt(this.config),this.authObj}},{key:"on",value:function(e,t){return $e.apply(this,[e,t])}},{key:"off",value:function(e,t){return ze.apply(this,[e,t])}},{key:"callFunction",value:function(e,t){return wt.apply(this,[e,t])}},{key:"deleteFile",value:function(e,t){return yt.apply(this,[e,t])}},{key:"getTempFileURL",value:function(e,t){return bt.apply(this,[e,t])}},{key:"downloadFile",value:function(e,t){return _t.apply(this,[e,t])}},{key:"uploadFile",value:function(e,t){return gt.apply(this,[e,t])}},{key:"getUploadMetadata",value:function(e,t){return mt.apply(this,[e,t])}},{key:"registerExtension",value:function(e){xt[e.name]=e}},{key:"invokeExtension",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t,n){var a;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=xt[t],a){e.next=3;break}throw new ue({message:"扩展".concat(t," 必须先注册")});case 3:return e.next=5,a.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,a=(t=e,"[object Array]"===Object.prototype.toString.call(t)?e:[e]),i=(0,c.default)(a);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.isMatch,s=r.genAdapter,u=r.runtime;if(o())return{adapter:s(),runtime:u}}}catch(l){i.e(l)}finally{i.f()}}(e)||{},n=t.adapter,a=t.runtime;n&&(Be.adapter=n),a&&(Be.runtime=a)}}]),e}(),St=new Tt;function At(e,t,n){void 0===n&&(n={});var a=/\?/.test(t),i="";for(var r in n)""===i?!a&&(t+="?"):i+="&",i+=r+"="+encodeURIComponent(n[r]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}var Pt=function(){function e(){(0,v.default)(this,e)}return(0,g.default)(e,[{key:"get",value:function(e){var t=e.url,n=e.data,a=e.headers,i=e.timeout;return new Promise((function(e,r){fe.request({url:At("https:",t),data:n,method:"GET",header:a,timeout:i,success:function(t){e(t)},fail:function(e){r(e)}})}))}},{key:"post",value:function(e){var t=e.url,n=e.data,a=e.headers,i=e.timeout;return new Promise((function(e,r){fe.request({url:At("https:",t),data:n,method:"POST",header:a,timeout:i,success:function(t){e(t)},fail:function(e){r(e)}})}))}},{key:"upload",value:function(e){return new Promise((function(t,n){var a=e.url,i=e.file,r=e.data,o=e.headers,s=e.fileType,c=fe.uploadFile({url:At("https:",a),name:"file",formData:Object.assign({},r),filePath:i,fileType:s,header:o,success:function(e){var n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(n.statusCode=parseInt(r.success_action_status,10)),t(n)},fail:function(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}]),e}(),Ct={setItem:function(e,t){fe.setStorageSync(e,t)},getItem:function(e){return fe.getStorageSync(e)},removeItem:function(e){fe.removeStorageSync(e)},clear:function(){fe.clearStorageSync()}},It={genAdapter:function(){return{root:{},reqClass:Pt,localStorage:Ct,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};St.useAdapters(It);var Ot=St,Et=Ot.init;Ot.init=function(e){e.env=e.spaceId;var t=Et.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),a=t.success,i=t.fail,r=t.complete;if(!(a||i||r))return n.call(this,e);n.call(this,e).then((function(e){a&&a(e),r&&r(e)}),(function(e){i&&i(e),r&&r(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Nt=Ot;function Bt(e,t){return Rt.apply(this,arguments)}function Rt(){return Rt=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i,r;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return a="http://".concat(t,":").concat(n,"/system/ping"),e.prev=1,e.next=4,r={url:a,timeout:500},new Promise((function(e,t){fe.request((0,d.default)((0,d.default)({},r),{},{success:function(t){e(t)},fail:function(e){t(e)}}))}));case 4:return i=e.sent,e.abrupt("return",!(!i.data||0!==i.data.code));case 8:return e.prev=8,e.t0=e["catch"](1),e.abrupt("return",!1);case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))),Rt.apply(this,arguments)}function Lt(e,t){return Ut.apply(this,arguments)}function Ut(){return Ut=(0,l.default)((0,u.default)().mark((function e(t,n){var a,i,r;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=0;case 1:if(!(i<t.length)){e.next=11;break}return r=t[i],e.next=5,Bt(r,n);case 5:if(!e.sent){e.next=8;break}return a=r,e.abrupt("break",11);case 8:i++,e.next=1;break;case 11:return e.abrupt("return",{address:a,port:n});case 12:case"end":return e.stop()}}),e)}))),Ut.apply(this,arguments)}var Dt={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"},Mt=function(){function e(t){if((0,v.default)(this,e),["spaceId","clientSecret"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),!t.endpoint)throw new Error("集群空间未配置ApiEndpoint,配置后需要重新关联服务空间后生效");this.config=Object.assign({},t),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=fe}return(0,g.default)(e,[{key:"request",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a=this,i=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!(i.length>1&&void 0!==i[1])||i[1],n=!1,!n){e.next=8;break}return e.next=5,this.setupLocalRequest(t);case 5:e.t0=e.sent,e.next=9;break;case 8:e.t0=this.setupRequest(t);case 9:return t=e.t0,e.abrupt("return",Promise.resolve().then((function(){return n?a.requestLocal(t):be.wrappedRequest(t,a.adapter.request)})));case 11:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()},{key:"requestLocal",value:function(e){var t=this;return new Promise((function(n,a){t.adapter.request(Object.assign(e,{complete:function(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){var t=e.data&&e.data.code||"SYS_ERR",i=e.data&&e.data.message||"request:fail";return a(new ue({code:t,message:i}))}n({success:!0,result:e.data})}}))}))}},{key:"setupRequest",value:function(e){var t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};n["x-serverless-sign"]=be.sign(t,this.config.clientSecret);var a=me();n["x-client-info"]=encodeURIComponent(JSON.stringify(a));var i=pe(),r=i.token;return n["x-client-token"]=r,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(n))}}},{key:"setupLocalRequest",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a,i,r,o,s,c,l,d;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=me(),a=pe(),i=a.token,r=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:n,token:i}),o=this.__dev__&&this.__dev__.debugInfo||{},s=o.address,c=o.servePort,e.next=9,Lt(s,c);case 9:return l=e.sent,d=l.address,e.abrupt("return",{url:"http://".concat(d,":").concat(c,"/").concat(Dt[t.method]),method:"POST",data:r,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))});case 12:case"end":return e.stop()}}),e,this)})));return function(t){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(t,!1)}},{key:"getUploadFileOptions",value:function(e){var t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}},{key:"reportUploadFile",value:function(e){var t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}},{key:"uploadFile",value:function(e){var t,n=this,a=e.filePath,i=e.cloudPath,r=e.fileType,o=void 0===r?"image":r,s=e.onUploadProgress;if(!i)throw new ue({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});return this.getUploadFileOptions({cloudPath:i}).then((function(e){var i=e.result,r=i.url,c=i.formData,u=i.name;return t=e.result.fileUrl,new Promise((function(e,t){var i=n.adapter.uploadFile({url:r,formData:c,name:u,filePath:a,fileType:o,success:function(n){n&&n.statusCode<400?e(n):t(new ue({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){t(new ue({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&i&&"function"==typeof i.onProgressUpdate&&i.onProgressUpdate((function(e){s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))})).then((function(){return n.reportUploadFile({cloudPath:i})})).then((function(e){return new Promise((function(n,i){e.success?n({success:!0,filePath:a,fileID:t}):i(new ue({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(n).then((function(e){if(e.success)return e.result;throw new ue({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 ue({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});var a={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:t,maxAge:n})};return this.request(a).then((function(e){if(e.success)return{fileList:e.result.fileList.map((function(e){return{fileID:e.fileID,tempFileURL:e.tempFileURL}}))};throw new ue({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}}]),e}(),Ft={init:function(e){var t=new Mt(e),n={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},qt=y((function(e,t){e.exports=_.enc.Hex}));function jt(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function Kt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.data,a=t.functionName,i=t.method,o=t.headers,s=t.signHeaderKeys,c=void 0===s?[]:s,u=t.config,l=String(Date.now()),d=jt(),f=Object.assign({},o,{"x-from-app-id":u.spaceAppId,"x-from-env-id":u.spaceId,"x-to-env-id":u.spaceId,"x-from-instance-id":l,"x-from-function-name":a,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":d,"x-alipay-callid":d,"x-trace-id":d}),p=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(c),h=e.split("?")||[],v=(0,r.default)(h,2),g=v[0],m=void 0===g?"":g,y=v[1],b=void 0===y?"":y,_=function(e){var t="HMAC-SHA256",n=e.signedHeaders.join(";"),a=e.signedHeaders.map((function(t){return"".concat(t.toLowerCase(),":").concat(e.headers[t],"\n")})).join(""),i=Ae(e.body).toString(qt),r="".concat(e.method.toUpperCase(),"\n").concat(e.path,"\n").concat(e.query,"\n").concat(a,"\n").concat(n,"\n").concat(i,"\n"),o=Ae(r).toString(qt),s="".concat(t,"\n").concat(e.timestamp,"\n").concat(o,"\n"),c=Pe(s,e.secretKey).toString(qt);return"".concat(t," Credential=").concat(e.secretId,", SignedHeaders=").concat(n,", Signature=").concat(c)}({path:m,query:b,method:i,headers:f,timestamp:l,body:JSON.stringify(n),secretId:u.accessKey,secretKey:u.secretKey,signedHeaders:p.sort()});return{url:"".concat(u.endpoint).concat(e),headers:Object.assign({},f,{Authorization:_})}}function Vt(e){var t=e.url,n=e.data,a=e.method,i=void 0===a?"POST":a,r=e.headers,s=void 0===r?{}:r,c=e.timeout;return new Promise((function(e,a){fe.request({url:t,method:i,data:"object"==(0,o.default)(n)?JSON.stringify(n):n,header:s,dataType:"json",timeout:c,complete:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=s["x-trace-id"]||"";if(!t.statusCode||t.statusCode>=400){var i=t.data||{},r=i.message,o=i.errMsg,c=i.trace_id;return a(new ue({code:"SYS_ERR",message:r||o||"request:fail",requestId:c||n}))}e({status:t.statusCode,data:t.data,headers:t.header,requestId:n})}})}))}function $t(e,t){var n=e.path,a=e.data,i=e.method,r=void 0===i?"GET":i,o=Kt(n,{functionName:"",data:a,method:r,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,c=o.headers;return Vt({url:s,data:a,method:r,headers:c}).then((function(e){var t=e.data||{};if(!t.success)throw new ue({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((function(e){throw new ue({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function Ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new ue({code:"INVALID_PARAM",message:"fileID不合法"});var a=t.substring(0,n),i=t.substring(n+1);return a!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Jt=function(){function e(t){(0,v.default)(this,e),this.config=t}return(0,g.default)(e,[{key:"signedURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="/ws/function/".concat(e),a=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:jt(),timestamp:""+Date.now()}),r=[n,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map((function(e){return i[e]?"".concat(e,"=").concat(i[e]):null})).filter(Boolean).join("&"),"host:".concat(a)].join("\n"),o=["HMAC-SHA256",Ae(r).toString(qt)].join("\n"),s=Pe(o,this.config.secretKey).toString(qt),c=Object.keys(i).map((function(e){return"".concat(e,"=").concat(encodeURIComponent(i[e]))})).join("&");return"".concat(this.config.wsEndpoint).concat(n,"?").concat(c,"&signature=").concat(s)}}]),e}(),Wt=function(){function e(t){if((0,v.default)(this,e),["spaceId","spaceAppId","accessKey","secretKey"].forEach((function(e){if(!Object.prototype.hasOwnProperty.call(t,e))throw new Error("".concat(e," required"))})),t.endpoint){if("string"!=typeof t.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(t.endpoint))throw new Error("endpoint must start with https://");t.endpoint=t.endpoint.replace(/\/$/,"")}this.config=Object.assign({},t,{endpoint:t.endpoint||"https://".concat(t.spaceId,".api-hz.cloudbasefunction.cn"),wsEndpoint:t.wsEndpoint||"wss://".concat(t.spaceId,".api-hz.cloudbasefunction.cn")}),this._websocket=new Jt(this.config)}return(0,g.default)(e,[{key:"callFunction",value:function(e){return function(e,t){var n=e.name,a=e.data,i=e.async,r=void 0!==i&&i,o=e.timeout,s="POST",c={"x-to-function-name":n};r&&(c["x-function-invoke-type"]="async");var u=Kt("/functions/invokeFunction",{functionName:n,data:a,method:s,headers:c,signHeaderKeys:["x-to-function-name"],config:t}),l=u.url,d=u.headers;return Vt({url:l,data:a,method:s,headers:d,timeout:o}).then((function(e){var t=0;if(r){var n=e.data||{};t="200"===n.errCode?0:n.errCode,e.data=n.data||{},e.errMsg=n.errMsg}if(0!==t)throw new ue({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}})).catch((function(e){throw new ue({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}},{key:"uploadFileToOSS",value:function(e){var t=e.url,n=e.filePath,a=e.fileType,i=e.formData,r=e.onUploadProgress;return new Promise((function(e,o){var s=fe.uploadFile({url:t,filePath:n,fileType:a,formData:i,name:"file",success:function(t){t&&t.statusCode<400?e(t):o(new ue({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail:function(e){o(new ue({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof r&&s&&"function"==typeof s.onProgressUpdate&&s.onProgressUpdate((function(e){r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}},{key:"uploadFile",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a,i,r,o,s,c,l,d,f,p;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(n=t.filePath,a=t.cloudPath,i=void 0===a?"":a,r=t.fileType,o=void 0===r?"image":r,s=t.onUploadProgress,"string"===O(i)){e.next=3;break}throw new ue({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});case 3:if(i=i.trim()){e.next=5;break}throw new ue({code:"INVALID_PARAM",message:"cloudPath不可为空"});case 5:if(!/:\/\//.test(i)){e.next=7;break}throw new ue({code:"INVALID_PARAM",message:"cloudPath不合法"});case 7:return e.next=9,$t({path:"/".concat(i.replace(/^\//,""),"?post_url")},this.config);case 9:return c=e.sent,l=c.file_id,d=c.upload_url,f=c.form_data,p=f&&f.reduce((function(e,t){return e[t.key]=t.value,e}),{}),e.abrupt("return",this.uploadFileToOSS({url:d,filePath:n,fileType:o,formData:p,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,u.default)().mark((function e(t){var n,a=this;return(0,u.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)&&e({code:"INVALID_PARAM",message:"fileList不能为空数组"}),n.length>50&&e({code:"INVALID_PARAM",message:"fileList数组长度不能超过50"});var i,r=[],o=(0,c.default)(n);try{for(o.s();!(i=o.n()).done;){var s=i.value,u=void 0;"string"!==O(s)&&e({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});try{u=Ht.call(a,s)}catch(e){console.warn(e.errCode,e.errMsg),u=s}r.push({file_id:u,expire:600})}}catch(l){o.e(l)}finally{o.f()}$t({path:"/?download_url",data:{file_list:r},method:"POST"},a.config).then((function(t){var n=t.file_list,i=void 0===n?[]:n;e({fileList:i.map((function(e){return{fileID:zt.call(a,e.file_id),tempFileURL:e.download_url}}))})})).catch((function(e){return t(e)}))})));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},{key:"connectWebSocket",value:function(){var e=(0,l.default)((0,u.default)().mark((function e(t){var n,a;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=t.name,a=t.query,e.abrupt("return",fe.connectSocket({url:this._websocket.signedURL(n,a),complete:function(){}}));case 2:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),e}(),Yt={init:function(e){e.provider="alipay";var t=new Wt(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 a=JSON.parse(JSON.stringify(n||{}));if(Object.assign(a,{clientInfo:t}),!a.uniIdToken){var i=pe(),r=i.token;r&&(a.uniIdToken=r)}return a}var Xt=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}],Gt=/[\\^$.*+?()[\]{}|]/g,Zt=RegExp(Gt.source);function en(e,t,n){return e.replace(new RegExp((a=t)&&Zt.test(a)?a.replace(Gt,"\\$&"):a,"g"),n);var a}var tn={NONE:"none",REQUEST:"request",RESPONSE:"response",BOTH:"both"},nn="_globalUniCloudStatus",an="_globalUniCloudSecureNetworkCache__{spaceId}";var rn;rn="0123456789abcdef";var on="uni-secure-network",sn={SYSTEM_ERROR:{code:2e4,message:"System error"},APP_INFO_INVALID:{code:20101,message:"Invalid client"},GET_ENCRYPT_KEY_FAILED:{code:20102,message:"Get encrypt key failed"}};function cn(e){var t=e||{},n=t.errSubject,a=t.subject,i=t.errCode,r=t.errMsg,o=t.code,s=t.message,c=t.cause;return new ue({subject:n||a||on,code:i||o||sn.SYSTEM_ERROR.code,message:r||s,cause:c})}var un;function ln(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.secretType;return t===tn.REQUEST||t===tn.RESPONSE||t===tn.BOTH}function dn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=e.data,a=void 0===n?{}:n;return"app"===q&&"DCloud-clientDB"===t&&"encryption"===a.redirectTo&&"getAppClientKey"===a.action}function fn(e){e.functionName,e.result,e.logPvd}function pn(e){var t=e.callFunction,n=function(n){var a=this,i=n.name;n.data=Qt.call(e,{data:n.data});var r={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],o=ln(n),s=dn(n),c=o||s;return t.call(this,n).then((function(e){return e.errCode=0,!c&&fn.call(a,{functionName:i,result:e,logPvd:r}),Promise.resolve(e)}),(function(e){return!c&&fn.call(a,{functionName:i,result:e,logPvd:r}),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,a=e.extraInfo,i=void 0===a?{}:a,r=e.formatter,o=void 0===r?[]:r,s=0;s<o.length;s++){var c=o[s],u=c.rule,l=c.content,d=c.mode,f=n.match(u);if(f){for(var p=l,h=1;h<f.length;h++)p=en(p,"{$".concat(h,"}"),f[h]);for(var v in i)p=en(p,"{".concat(v,"}"),i[v]);return"replace"===d?p:n+p}}return n}({message:"[".concat(n.name,"]: ").concat(e.message),formatter:Xt,extraInfo:{functionName:i}})),Promise.reject(e)}))};e.callFunction=function(t){var a,i,r=e.config,o=r.provider,s=r.spaceId,c=t.name;return t.data=t.data||{},a=n,a=a.bind(e),i=dn(t)?n.call(e,t):function(e){var t=e.name,n=e.data,a=void 0===n?{}:n;return"mp-weixin"===q&&"uni-id-co"===t&&"secureNetworkHandshakeByWeixin"===a.method}(t)?a.call(e,t):ln(t)?new un({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,a=e.functionName,i=ve(),r=i.appId,o=i.uniPlatform,s=i.osName,c=o;"app"===o&&(c=s);var u=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.provider,n=e.spaceId,a=F;if(!a)return{};t=function(e){return"tencent"===e?"tcb":e}(t);var i=a.find((function(e){return e.provider===t&&e.spaceId===n}));return i&&i.config}({provider:t,spaceId:n});if(!u||!u.accessControl||!u.accessControl.enable)return!1;var l=u.accessControl.function||{},d=Object.keys(l);if(0===d.length)return!0;var f=function(e,t){for(var n,a,i,r=0;r<e.length;r++){var o=e[r];o!==t?"*"!==o?o.split(",").map((function(e){return e.trim()})).indexOf(t)>-1&&(a=o):i=o:n=o}return n||a||i}(d,a);if(!f)return!1;if((l[f]||[]).find((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.appId===r&&(e.platform||"").toLowerCase()===c.toLowerCase()})))return!0;throw console.error("此应用[appId: ".concat(r,", platform: ").concat(c,"]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client")),cn(sn.APP_INFO_INVALID)}({provider:o,spaceId:s,functionName:c})?new un({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):a(t),Object.defineProperty(i,"result",{get:function(){return console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{}}}),i.then((function(e){return"undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e}))}}un="mp-weixin"!==q&&"app"!==q?function(){return(0,g.default)((function e(){throw(0,v.default)(this,e),cn({message:"Platform ".concat(q," is not supported by secure network")})}))}():function(){return(0,g.default)((function e(){throw(0,v.default)(this,e),cn({message:"Platform ".concat(q," is not enabled, please check whether secure network module is enabled in your manifest.json")})}))}();var hn=Symbol("CLIENT_DB_INTERNAL");function vn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=hn,e.inspect=null,e.__ob__=void 0,new Proxy(e,{get:function(e,n,a){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,a)}})}function gn(e){return{on:function(t,n){e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:function(t,n){e[t]=e[t]||[];var a=e[t].indexOf(n);-1!==a&&e[t].splice(a,1)}}}var mn=["db.Geo","db.command","command.aggregate"];function yn(e,t){return mn.indexOf("".concat(e,".").concat(t))>-1}function bn(e){switch(O(e)){case"array":return e.map((function(e){return bn(e)}));case"object":return e._internalType===hn||Object.keys(e).forEach((function(t){e[t]=bn(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function _n(e){return e&&e.content&&e.content.$method}var wn=function(){function e(t,n,a){(0,v.default)(this,e),this.content=t,this.prevStage=n||null,this.udb=null,this._database=a}return(0,g.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:bn(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=_n(e),n=_n(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"===_n(e))return!0;e=e.prevStage}return!1}},{key:"isAggregateCommand",get:function(){for(var e=this;e;){var t=_n(e),n=_n(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 kn({$method:e,$param:bn(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(),a=this.getCommand();return a.$db.push({$method:e,$param:bn(t)}),this._database._callCloudFunction({action:n,command:a})}}]),e}();function kn(e,t,n){return vn(new wn(e,t,n),{get:function(e,t){var a="db";return e&&e.content&&(a=e.content.$method),yn(a,t)?kn({$method:t},e,n):function(){return kn({$method:t,$param:bn(Array.from(arguments))},e,n)}}})}function xn(e){var t=e.path,n=e.method;return function(){function e(){(0,v.default)(this,e),this.param=Array.from(arguments)}return(0,g.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}()}var Tn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.uniClient,a=void 0===n?{}:n,i=t.isJQL,r=void 0!==i&&i;(0,v.default)(this,e),this._uniClient=a,this._authCallBacks={},this._dbCallBacks={},a._isDefault&&(this._dbCallBacks=$("_globalUniCloudDatabaseCallback")),r||(this.auth=gn(this._authCallBacks)),this._isJQL=r,Object.assign(this,gn(this._dbCallBacks)),this.env=vn({},{get:function(e,t){return{$env:t}}}),this.Geo=vn({},{get:function(e,t){return xn({path:["Geo"],method:t})}}),this.serverDate=xn({path:[],method:"serverDate"}),this.RegExp=xn({path:[],method:"RegExp"})}return(0,g.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}();function Sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return vn(new e(t),{get:function(e,t){return yn("db",t)?kn({$method:t},null,e):function(){return kn({$method:t,$param:bn(Array.from(arguments))},null,e)}}})}var An=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){return(0,v.default)(this,n),t.apply(this,arguments)}return(0,g.default)(n,[{key:"_parseResult",value:function(e){return this._isJQL?e.result:e}},{key:"_callCloudFunction",value:function(e){var t=this,n=e.action,a=e.command,i=e.multiCommand,r=e.queryList;function o(e,t){if(i&&r)for(var n=0;n<r.length;n++){var a=r[n];a.udb&&"function"==typeof a.udb.setResult&&(t?a.udb.setResult(t):a.udb.setResult(e.result.dataList[n]))}}var s=this,c=this._isJQL?"databaseForJQL":"database";function u(e){return s._callback("error",[e]),Y(Q(c,"fail"),e).then((function(){return Y(Q(c,"complete"),e)})).then((function(){return o(null,e),ie(Z.RESPONSE,{type:ee.CLIENT_DB,content:e}),Promise.reject(e)}))}var l=Y(Q(c,"invoke")),d=this._uniClient;return l.then((function(){return d.callFunction({name:"DCloud-clientDB",type:A.CLIENT_DB,data:{action:n,command:a,multiCommand:i}})})).then((function(e){var n=e.result,a=n.code,i=n.message,r=n.token,l=n.tokenExpired,d=n.systemInfo,f=void 0===d?[]:d;if(f)for(var p=0;p<f.length;p++){var h=f[p],v=h.level,g=h.message,m=h.detail,y="[System Info]"+g;m&&(y="".concat(y,"\n详细信息:").concat(m)),(console["app"===q&&"warn"===v?"error":v]||console.log)(y)}if(a)return u(new ue({code:a,message:i,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,r&&l&&(he({token:r,tokenExpired:l}),t._callbackAuth("refreshToken",[{token:r,tokenExpired:l}]),t._callback("refreshToken",[{token:r,tokenExpired:l}]),ie(Z.REFRESH_TOKEN,{token:r,tokenExpired:l}));for(var b=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}],_=function(t){var n=b[t],a=n.prop,i=n.tips;if(a in e.result){var r=e.result[a];Object.defineProperty(e.result,a,{get:function(){return console.warn(i),r}})}},w=0;w<b.length;w++)_(w);return function(e){return Y(Q(c,"success"),e).then((function(){return Y(Q(c,"complete"),e)})).then((function(){o(e,null);var t=s._parseResult(e);return ie(Z.RESPONSE,{type:ee.CLIENT_DB,content:t}),Promise.resolve(t)}))}(e)}),(function(e){return/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),u(new ue({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))}))}}]),n}(Tn),Pn="token无效,跳转登录页面",Cn="token过期,跳转登录页面",In={TOKEN_INVALID_TOKEN_EXPIRED:Cn,TOKEN_INVALID_INVALID_CLIENTID:Pn,TOKEN_INVALID:Pn,TOKEN_INVALID_WRONG_TOKEN:Pn,TOKEN_INVALID_ANONYMOUS_USER:Pn},On={"uni-id-token-expired":Cn,"uni-id-check-token-failed":Pn,"uni-id-token-not-exist":Pn,"uni-id-check-device-feature-failed":Pn};function En(e,t){var n="";return n=e?"".concat(e,"/").concat(t):t,n.replace(/^\//,"")}function Nn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=[],a=[];return e.forEach((function(e){!0===e.needLogin?n.push(En(t,e.path)):!1===e.needLogin&&a.push(En(t,e.path))})),{needLoginPage:n,notNeedLoginPage:a}}function Bn(e){return e.split("?")[0].replace(/^\//,"")}function Rn(){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 Ln(){return Bn(Rn())}function Un(){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,a=Bn(e);return n.some((function(e){return e.pagePath===a}))}var Dn,Mn=!!m.default.uniIdRouter,Fn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m.default,t=e.pages,n=void 0===t?[]:t,a=e.subPackages,i=void 0===a?[]:a,r=e.uniIdRouter,o=void 0===r?{}:r,c=e.tabBar,u=void 0===c?{}:c,l=o.loginPage,d=o.needLogin,f=void 0===d?[]:d,p=o.resToLogin,h=void 0===p||p,v=Nn(n),g=v.needLoginPage,y=v.notNeedLoginPage,b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=[];return e.forEach((function(e){var a=e.root,i=e.pages,r=void 0===i?[]:i,o=Nn(r,a),c=o.needLoginPage,u=o.notNeedLoginPage;t.push.apply(t,(0,s.default)(c)),n.push.apply(n,(0,s.default)(u))})),{needLoginPage:t,notNeedLoginPage:n}}(i),_=b.needLoginPage,w=b.notNeedLoginPage;return{loginPage:l,routerNeedLogin:f,resToLogin:h,needLoginPage:[].concat((0,s.default)(g),(0,s.default)(_)),notNeedLoginPage:[].concat((0,s.default)(y),(0,s.default)(w)),loginPageInTabBar:Un(l,u)}}(),qn=Fn.loginPage,jn=Fn.routerNeedLogin,Kn=Fn.resToLogin,Vn=Fn.needLoginPage,$n=Fn.notNeedLoginPage,Hn=Fn.loginPageInTabBar;if(Vn.indexOf(qn)>-1)throw new Error("Login page [".concat(qn,'] should not be "needLogin", please check your pages.json'));function zn(e){var t=Ln();if("/"===e.charAt(0))return e;var n=e.split("?"),a=(0,r.default)(n,2),i=a[0],o=a[1],s=i.replace(/^\//,"").split("/"),c=t.split("/");c.pop();for(var u=0;u<s.length;u++){var l=s[u];".."===l?c.pop():"."!==l&&c.push(l)}return""===c[0]&&c.shift(),"/"+c.join("/")+(o?"?"+o:"")}function Jn(e){var t=Bn(zn(e));return!($n.indexOf(t)>-1)&&(Vn.indexOf(t)>-1||jn.some((function(t){return function(e,t){return new RegExp(t).test(e)}(e,t)})))}function Wn(e){var t=e.redirect,n=Bn(t),a=Bn(qn);return Ln()!==a&&n!==a}function Yn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.api,n=e.redirect;if(n&&Wn({redirect:n})){var a=function(e,t){return"/"!==e.charAt(0)&&(e="/"+e),t?e.indexOf("?")>-1?e+"&uniIdRedirectUrl=".concat(encodeURIComponent(t)):e+"?uniIdRedirectUrl=".concat(encodeURIComponent(t)):e}(qn,n);Hn?"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:a})}),0)}}function Qn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n={abortLoginPageJump:!1,autoToLoginPage:!1},a=function(){var e,t=pe(),n=t.token,a=t.tokenExpired;if(n){if(a<Date.now()){var i="uni-id-token-expired";e={errCode:i,errMsg:On[i]}}}else{var r="uni-id-check-token-failed";e={errCode:r,errMsg:On[r]}}return e}();if(Jn(t)&&a){if(a.uniIdRedirectUrl=t,te(Z.NEED_LOGIN).length>0)return setTimeout((function(){ie(Z.NEED_LOGIN,a)}),0),n.abortLoginPageJump=!0,n;n.autoToLoginPage=!0}return n}function Xn(){!function(){var e=Rn(),t=Qn({url:e}),n=t.abortLoginPageJump,a=t.autoToLoginPage;n||a&&Yn({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=Qn({url:e.url}),a=t.abortLoginPageJump,i=t.autoToLoginPage;return a?e:i?(Yn({api:n,redirect:zn(e.url)}),!1):e}})},n=0;n<e.length;n++)t(n)}function Gn(){this.onResponse((function(e){var t=e.type,n=e.content,a=!1;switch(t){case"cloudobject":a=function(e){if("object"!=(0,o.default)(e))return!1;var t=e||{},n=t.errCode;return n in On}(n);break;case"clientdb":a=function(e){if("object"!=(0,o.default)(e))return!1;var t=e||{},n=t.errCode;return n in In}(n)}a&&function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=te(Z.NEED_LOGIN);se().then((function(){var n=Rn();if(n&&Wn({redirect:n}))return t.length>0?ie(Z.NEED_LOGIN,Object.assign({uniIdRedirectUrl:n},e)):void(qn&&Yn({api:"navigateTo",redirect:n}))}))}(n)}))}function Zn(e){!function(e){e.onResponse=function(e){ne(Z.RESPONSE,e)},e.offResponse=function(e){ae(Z.RESPONSE,e)}}(e),function(e){e.onNeedLogin=function(e){ne(Z.NEED_LOGIN,e)},e.offNeedLogin=function(e){ae(Z.NEED_LOGIN,e)},Mn&&($(nn).needLoginInit||($(nn).needLoginInit=!0,se().then((function(){Xn.call(e)})),Kn&&Gn.call(e)))}(e),function(e){e.onRefreshToken=function(e){ne(Z.REFRESH_TOKEN,e)},e.offRefreshToken=function(e){ae(Z.REFRESH_TOKEN,e)}}(e)}var ea="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",ta=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function na(){var e,t,n=pe().token||"",a=n.split(".");if(!n||3!==a.length)return{uid:null,role:[],permission:[],tokenExpired:0};try{e=JSON.parse((t=a[1],decodeURIComponent(Dn(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}Dn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!ta.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,a,i="",r=0;r<e.length;)t=ea.indexOf(e.charAt(r++))<<18|ea.indexOf(e.charAt(r++))<<12|(n=ea.indexOf(e.charAt(r++)))<<6|(a=ea.indexOf(e.charAt(r++))),i+=64===n?String.fromCharCode(t>>16&255):64===a?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var aa=y((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="chooseAndUploadFile:ok",a="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 r(e,t,a){var i=a.onChooseFile,r=a.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 a=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 r=t.tempFiles,o=r.length,s=0;return new Promise((function(n){for(;s<a;)c();function c(){var a=s++;if(a>=o)!r.find((function(e){return!e.url&&!e.errMsg}))&&n(t);else{var u=r[a];e.uploadFile({provider:u.provider,filePath:u.path,cloudPath:u.cloudPath,fileType:u.fileType,cloudPathAsRealPath:u.cloudPathAsRealPath,onUploadProgress:function(e){e.index=a,e.tempFile=u,e.tempFilePath=u.path,i&&i(e)}}).then((function(e){u.url=e.fileID,a<o&&c()})).catch((function(e){u.errMsg=e.errMsg||e.message,a<o&&c()}))}}}))}(e,t,5,r)}))}t.initChooseAndUploadFile=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{type:"all"};return"image"===t.type?r(e,function(e){var t=e.count,n=e.sizeType,r=e.sourceType,o=void 0===r?["album","camera"]:r,s=e.extension;return new Promise((function(e,r){uni.chooseImage({count:t,sizeType:n,sourceType:o,extension:s,success:function(t){e(i(t,"image"))},fail:function(e){r({errMsg:e.errMsg.replace("chooseImage:fail",a)})}})}))}(t),t):"video"===t.type?r(e,function(e){var t=e.camera,n=e.compressed,r=e.maxDuration,o=e.sourceType,s=void 0===o?["album","camera"]:o,c=e.extension;return new Promise((function(e,o){uni.chooseVideo({camera:t,compressed:n,maxDuration:r,sourceType:s,extension:c,success:function(t){var n=t.tempFilePath,a=t.duration,r=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:r,type:t.tempFile&&t.tempFile.type||"",width:s,height:o,duration:a,fileType:"video",cloudPath:""}]},"video"))},fail:function(e){o({errMsg:e.errMsg.replace("chooseVideo:fail",a)})}})}))}(t),t):r(e,function(e){var t=e.count,n=e.extension;return new Promise((function(e,r){var o=uni.chooseFile;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(o=wx.chooseMessageFile),"function"!=typeof o)return r({errMsg:a+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});o({type:"all",count:t,extension:n,success:function(t){e(i(t))},fail:function(e){r({errMsg:e.errMsg.replace("chooseFile:fail",a)})}})}))}(t),t)}}})),ia=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(aa),ra={auto:"auto",onready:"onready",manual:"manual"};function oa(e){return{props:{localdata:{type:Array,default:function(){return[]}},options:{type:[Object,Array],default:function(){return{}}},spaceInfo:{type:Object,default:function(){return{}}},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:function(){return{mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}},created:function(){var e=this;this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((function(){var t=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((function(n){t.push(e[n])})),t}),(function(t,n){if(e.loadtime!==ra.manual){for(var a=!1,i=[],r=2;r<t.length;r++)t[r]!==n[r]&&(i.push(t[r]),a=!0);t[0]!==n[0]&&(e.mixinDatacomPage.current=e.pageCurrent),e.mixinDatacomPage.size=e.pageSize,e.onMixinDatacomPropsChange(a,i)}}))},methods:{onMixinDatacomPropsChange:function(e,t){},mixinDatacomEasyGet:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getone,a=void 0!==n&&n,i=t.success,r=t.fail;this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((function(t){e.mixinDatacomLoading=!1;var n=t.result,r=n.data,o=n.count;e.getcount&&(e.mixinDatacomPage.count=o),e.mixinDatacomHasMore=r.length<e.pageSize;var s=a?r.length?r[0]:void 0:r;e.mixinDatacomResData=s,i&&i(s)})).catch((function(t){e.mixinDatacomLoading=!1,e.mixinDatacomErrorMessage=t,e.mixinDatacomError=t,r&&r(t)})))},mixinDatacomGet:function(){var t,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a=a||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);var i=a.action||this.action;i&&(n=n.action(i));var r=a.collection||this.collection;n=Array.isArray(r)?(t=n).collection.apply(t,(0,s.default)(r)):n.collection(r);var o=a.where||this.where;o&&Object.keys(o).length&&(n=n.where(o));var c=a.field||this.field;c&&(n=n.field(c));var u=a.foreignKey||this.foreignKey;u&&(n=n.foreignKey(u));var l=a.groupby||this.groupby;l&&(n=n.groupBy(l));var d=a.groupField||this.groupField;d&&(n=n.groupField(d)),!0===(void 0!==a.distinct?a.distinct:this.distinct)&&(n=n.distinct());var f=a.orderby||this.orderby;f&&(n=n.orderBy(f));var p=void 0!==a.pageCurrent?a.pageCurrent:this.mixinDatacomPage.current,h=void 0!==a.pageSize?a.pageSize:this.mixinDatacomPage.size,v=void 0!==a.getcount?a.getcount:this.getcount,g=void 0!==a.gettree?a.gettree:this.gettree,m=void 0!==a.gettreepath?a.gettreepath:this.gettreepath,y={getCount:v},b={limitLevel:void 0!==a.limitlevel?a.limitlevel:this.limitlevel,startWith:void 0!==a.startwith?a.startwith:this.startwith};return g&&(y.getTree=b),m&&(y.getTreePath=b),n=n.skip(h*(p-1)).limit(h).get(y),n}}}}function sa(e){return $(an.replace("{spaceId}",e.config.spaceId))}function ca(){return ua.apply(this,arguments)}function ua(){return ua=(0,l.default)((0,u.default)().mark((function e(){var t,n,a,i,r,o,s,c=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=c.length>0&&void 0!==c[0]?c[0]:{},n=t.openid,a=t.callLoginByWeixin,i=void 0!==a&&a,r=sa(this),"mp-weixin"===q){e.next=4;break}throw new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `".concat(q,"`"));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",(r.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 r.mpWeixinCode=o,e.abrupt("return",{code:o});case 16:case"end":return e.stop()}}),e,this)}))),ua.apply(this,arguments)}function la(e){return da.apply(this,arguments)}function da(){return da=(0,l.default)((0,u.default)().mark((function e(t){var n;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return n=sa(this),e.abrupt("return",(n.initPromise||(n.initPromise=ca.call(this,t).then((function(e){return e})).catch((function(e){throw delete n.initPromise,e}))),n.initPromise));case 2:case"end":return e.stop()}}),e,this)}))),da.apply(this,arguments)}function fa(e){!function(e){ge=e}(e)}function pa(e){var t={getSystemInfo:uni.getSystemInfo,getPushClientId:uni.getPushClientId};return function(n){return new Promise((function(a,i){t[e]((0,d.default)((0,d.default)({},n),{},{success:function(e){a(e)},fail:function(e){i(e)}}))}))}}var ha=function(e){(0,f.default)(n,e);var t=(0,p.default)(n);function n(){var e;return(0,v.default)(this,n),e=t.call(this),e._uniPushMessageCallback=e._receivePushMessage.bind((0,i.default)(e)),e._currentMessageId=-1,e._payloadQueue=[],e}return(0,g.default)(n,[{key:"init",value:function(){var e=this;return Promise.all([pa("getSystemInfo")(),pa("getPushClientId")()]).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=(0,r.default)(t,2),a=n[0];a=void 0===a?{}:a;var i=a.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,u.default)().mark((function e(){return(0,u.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,a=t.messageId,i=t.message;this._payloadQueue.push({action:n,messageId:a,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,a=e.message;"end"===t?this._end({messageId:n,message:a}):"message"===t&&this._appendMessage({messageId:n,message:a})}},{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}(D);var va={tcb:Nt,tencent:Nt,aliyun:we,private:Ft,dcloud:Ft,alipay:Yt},ga=new(function(){function e(){(0,v.default)(this,e)}return(0,g.default)(e,[{key:"init",value:function(e){var t={},n=va[e.provider];if(!n)throw new Error("未提供正确的provider参数");return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new U({createPromise:function(){var t=Promise.resolve();t=new Promise((function(e){setTimeout((function(){e()}),1)}));var n=e.auth();return t.then((function(){return n.getLoginState()})).then((function(e){return e?Promise.resolve():n.signInAnonymously()}))}}))}(t),pn(t),function(e){var t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),function(e){e.database=function(t){if(t&&Object.keys(t).length>0)return e.init(t).database();if(this._database)return this._database;var n=Sn(An,{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=Sn(An,{uniClient:e,isJQL:!0});return this._databaseForJQL=n,n}}(t),function(e){e.getCurrentUserInfo=na,e.chooseAndUploadFile=ia.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return oa(e)}}),e.SSEChannel=ha,e.initSecureNetworkByWeixin=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.openid,a=t.callLoginByWeixin,i=void 0!==a&&a;return la.call(e,{openid:n,callLoginByWeixin:i})}}(e),e.setCustomClientInfo=fa,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 a=n,i=a.customUI,r=a.loadingOptions,s=a.errorOptions,c=a.parseSystemError,f=!i;return new Proxy({},{get:function(a,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,a=e.getCallbackArgs;return(0,l.default)((0,u.default)().mark((function e(){var i,r,o,s,c,l,f=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:for(i=f.length,r=new Array(i),o=0;o<i;o++)r[o]=f[o];return s=a?a({params:r}):{},e.prev=2,e.next=5,Y(Q(n,"invoke"),(0,d.default)({},s));case 5:return e.next=7,t.apply(void 0,r);case 7:return c=e.sent,e.next=10,Y(Q(n,"success"),(0,d.default)((0,d.default)({},s),{},{result:c}));case 10:return e.abrupt("return",c);case 13:return e.prev=13,e.t0=e["catch"](2),l=e.t0,e.next=18,Y(Q(n,"fail"),(0,d.default)((0,d.default)({},s),{},{error:l}));case 18:throw l;case 19:return e.prev=19,e.next=22,Y(Q(n,"complete"),l?(0,d.default)((0,d.default)({},s),{},{error:l}):(0,d.default)((0,d.default)({},s),{},{result:c}));case 22:return e.finish(19);case 23:case"end":return e.stop()}}),e,null,[[2,13,19,23]])})))}({fn:function(){var a=(0,l.default)((0,u.default)().mark((function a(){var h,v,g,m,y,b,_,w,k,x,T,S,P,C,I,O=arguments;return(0,u.default)().wrap((function(a){while(1)switch(a.prev=a.next){case 0:for(f&&uni.showLoading({title:r.title,mask:r.mask}),v=O.length,g=new Array(v),m=0;m<v;m++)g[m]=O[m];return y={name:t,type:A.OBJECT,data:{method:i,params:g}},"object"==(0,o.default)(n.secretMethods)&&function(e,t){var n=t.data.method,a=e.secretMethods||{},i=a[n]||a["*"];i&&(t.secretType=i)}(n,y),b=!1,a.prev=5,a.next=8,e.callFunction(y);case 8:h=a.sent,a.next=14;break;case 11:a.prev=11,a.t0=a["catch"](5),b=!0,h={result:new ue(a.t0)};case 14:if(_=h.result||{},w=_.errSubject,k=_.errCode,x=_.errMsg,T=_.newToken,f&&uni.hideLoading(),T&&T.token&&T.tokenExpired&&(he(T),ie(Z.REFRESH_TOKEN,(0,d.default)({},T))),!k){a.next=39;break}if(S=x,!b||!c){a.next=24;break}return a.next=20,c({objectName:t,methodName:i,params:g,errSubject:w,errCode:k,errMsg:x});case 20:if(a.t1=a.sent.errMsg,a.t1){a.next=23;break}a.t1=x;case 23:S=a.t1;case 24:if(!f){a.next=37;break}if("toast"!==s.type){a.next=29;break}uni.showToast({title:S,icon:"none"}),a.next=37;break;case 29:if("modal"===s.type){a.next=31;break}throw new Error("Invalid errorOptions.type: ".concat(s.type));case 31:return a.next=33,(0,l.default)((0,u.default)().mark((function e(){var t,n,a,i,r,o,s=arguments;return(0,u.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},n=t.title,a=t.content,i=t.showCancel,r=t.cancelText,o=t.confirmText,e.abrupt("return",new Promise((function(e,t){uni.showModal({title:n,content:a,showCancel:i,cancelText:r,confirmText:o,success:function(t){e(t)},fail:function(){e({confirm:!1,cancel:!0})}})})));case 2:case"end":return e.stop()}}),e)})))({title:"提示",content:S,showCancel:s.retry,cancelText:"取消",confirmText:s.retry?"重试":"确定"});case 33:if(P=a.sent,C=P.confirm,!s.retry||!C){a.next=37;break}return a.abrupt("return",p.apply(void 0,g));case 37:throw I=new ue({subject:w,code:k,message:x,requestId:h.requestId}),I.detail=h.result,ie(Z.RESPONSE,{type:ee.CLOUD_OBJECT,content:I}),I;case 39:return a.abrupt("return",(ie(Z.RESPONSE,{type:ee.CLOUD_OBJECT,content:h.result}),h.result));case 40:case"end":return a.stop()}}),a,null,[[5,11]])})));function p(){return a.apply(this,arguments)}return p}(),interceptorName:"callObject",getCallbackArgs:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.params;return{objectName:t,methodName: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 a=this,i=!1;if("callFunction"===t){var r=n&&n.type||A.DEFAULT;i=r!==A.DEFAULT}var o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};var c=ce(n),u=c.success,l=c.fail,d=c.complete,f=s.then((function(){return i?Promise.resolve():Y(Q(t,"invoke"),n)})).then((function(){return e.call(a,n)})).then((function(e){return i?Promise.resolve(e):Y(Q(t,"success"),e).then((function(){return Y(Q(t,"complete"),e)})).then((function(){return o&&ie(Z.RESPONSE,{type:ee.CLOUD_FUNCTION,content:e}),Promise.resolve(e)}))}),(function(e){return i?Promise.reject(e):Y(Q(t,"fail"),e).then((function(){return Y(Q(t,"complete"),e)})).then((function(){return ie(Z.RESPONSE,{type:ee.CLOUD_FUNCTION,content:e}),Promise.reject(e)}))}));if(!(u||l||d))return f;f.then((function(e){u&&u(e),d&&d(e),o&&ie(Z.RESPONSE,{type:ee.CLOUD_FUNCTION,content:e})}),(function(e){l&&l(e),d&&d(e),o&&ie(Z.RESPONSE,{type:ee.CLOUD_FUNCTION,content:e})}))}}(t[e],e).bind(t)}})),t.init=this.init,t}}]),e}());t.uniCloud=ga,function(){var e=j,n={};if(e&&1===e.length)n=e[0],t.uniCloud=ga=ga.init(n),ga._isDefault=!0;else{var a;a=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"].forEach((function(e){ga[e]=function(){return console.error(a),Promise.reject(new ue({code:"SYS_ERR",message:a}))}}))}if(Object.assign(ga,{get mixinDatacom(){return oa(ga)}}),Zn(ga),ga.addInterceptor=J,ga.removeInterceptor=W,ga.interceptObject=X,"app"===q&&(uni.__uniCloud=ga),"app"===q||"web"===q){var i=function(){return K||(K=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),K)}();i.uniCloud=ga,i.UniCloudError=ue}}();var ma=ga;t.default=ma}).call(this,n("0ee4"))},"8c26":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("5c47"),n("0506"),n("64aa"),n("aa77"),n("bf0f"),n("c223");var a=n("b363"),i={name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:function(){return{icons:a.fontData}},computed:{unicode:function(){var e=this,t=this.icons.find((function(t){return t.font_class===e.type}));return t?t.unicode:""},iconSize:function(){return function(e){return"number"===typeof e||/^[0-9]*$/g.test(e)?e+"px":e}(this.size)},styleObj:function(){return""!==this.fontFamily?"color: ".concat(this.color,"; font-size: ").concat(this.iconSize,"; font-family: ").concat(this.fontFamily,";"):"color: ".concat(this.color,"; font-size: ").concat(this.iconSize,";")}},methods:{_onClick:function(){this.$emit("click")}}};t.default=i},"8d02":function(e,t,n){"use strict";n.r(t);var a=n("462c"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},"8f46":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("bf0f"),n("5ef2"),n("5c47"),n("2c10"),n("64aa"),n("c9b5"),n("ab80"),n("0506"),n("a1c1"),n("23f4"),n("7d2f"),n("9c4e");var a={getWeixinCode:function(){return new Promise((function(e,t){}))},getAlipayCode:function(){},checkPlatform:function(){var e={win:!1,mac:!1,xll:!1},t=navigator.platform;if(e.win=0==t.indexOf("Win"),e.mac=0==t.indexOf("Mac"),e.x11="X11"==t||0==t.indexOf("Linux"),e.win||e.mac||e.xll){var n=navigator.userAgent.toLowerCase();return n.indexOf("micromessenger")>-1?"pc-weixin":"pc"}return t.indexOf("iPhone")>-1||t.indexOf("iPad")>-1?"ios":"android"},getH5Env:function(){var e=window.navigator.userAgent.toLowerCase();return"micromessenger"==e.match(/MicroMessenger/i)&&"miniprogram"==e.match(/miniprogram/i)?"mp-weixin":"micromessenger"==e.match(/MicroMessenger/i)?"h5-weixin":"alipay"==e.match(/alipay/i)&&"miniprogram"==e.match(/miniprogram/i)?"mp-alipay":"alipay"==e.match(/alipay/i)?"h5-alipay":"h5"},timeFormat:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-MM-dd hh:mm:ss",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8;try{if(!e)return"";var a;"string"!==typeof e||isNaN(e)||(e=Number(e)),"number"===typeof e?(10==e.toString().length&&(e*=1e3),a=new Date(e)):a=e;var i=a.getTimezoneOffset(),r=60*i*1e3+60*n*60*1e3,o=a.getTime()+r;a=new Date(o);var s={"M+":a.getMonth()+1,"d+":a.getDate(),"h+":a.getHours(),"m+":a.getMinutes(),"s+":a.getSeconds(),"q+":Math.floor((a.getMonth()+3)/3),S:a.getMilliseconds()};for(var c in/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(a.getFullYear()+"").substr(4-RegExp.$1.length))),s)new RegExp("("+c+")").test(t)&&(t=t.replace(RegExp.$1,1==RegExp.$1.length?s[c]:("00"+s[c]).substr((""+s[c]).length)));return t}catch(u){return e}}},i=a;t.default=i},"8ffd":function(e,t,n){"use strict";n.r(t);var a=n("c840"),i=n("8d02");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("abd9");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"4573fa13",null,!1,a["a"],void 0);t["default"]=s.exports},"9ba4":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("64aa");var a={name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:function(){return[0,0]}},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:function(){return{}}}},data:function(){return{}},computed:{width:function(){return 8*String(this.text).length+12},classNames:function(){var e=this.inverted,t=this.type,n=this.size,a=this.absolute;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+n,a?"uni-badge--absolute":""].join(" ")},positionStyle:function(){if(!this.absolute)return{};var e=this.width/2,t=10;this.isDot&&(e=5,t=5);var n="".concat(-e+this.offset[0],"px"),a="".concat(-t+this.offset[1],"px"),i={rightTop:{right:n,top:a},rightBottom:{right:n,bottom:a},leftBottom:{left:n,bottom:a},leftTop:{left:n,top:a}},r=i[this.absolute];return r||i["rightTop"]},dotStyle:function(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue:function(){var e=this.isDot,t=this.text,n=this.maxNum;return e?"":Number(t)>n?"".concat(n,"+"):t}},methods:{onClick:function(){this.$emit("click")}}};t.default=a},a7ac:function(e,t,n){"use strict";n.r(t);var a=n("0f86"),i=n("311c");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("56c6");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"bfae1f7c",null,!1,a["a"],void 0);t["default"]=s.exports},a869:function(e,t,n){"use strict";n.r(t);var a=n("4da93"),i=n.n(a);for(var r in a)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(r);t["default"]=i.a},abad:function(e,t,n){var a=n("0958");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("521113a5",a,!0,{sourceMap:!1,shadowMode:!1})},abd9:function(e,t,n){"use strict";var a=n("e163"),i=n.n(a);i.a},acb1: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,a.default)(e,t)},n("7a76"),n("c9b5"),n("6a54");var a=function(e){return e&&e.__esModule?e:{default:e}}(n("e668"))},b363:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.fontData=void 0;t.fontData=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}]},b500:function(e,t,n){"use strict";n.r(t);var a=n("fb8d"),i=n("79ac");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"46fcc0af",null,!1,a["a"],void 0);t["default"]=s.exports},b87f:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={easycom:{autoscan:!0,custom:{"^model-(.*)":"@/components/model-$1/model-$1.vue","^uni-list-i(.*)":"@/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue","^uni-(.*)":"@/uni_modules/uni-$1/components/uni-$1/uni-$1.vue","^vue-file-(.*)":"packageName/path/to/vue-file-$1.vue","^u-(.*)":"uview-ui/components/u-$1/u-$1.vue"}},pages:[{path:"pages/index/index",style:{navigationBarTitleText:"大菠萝city","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/identify/identify",style:{navigationBarTitleText:"商户",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/identify/city",style:{navigationBarTitleText:"选择所在市",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/order/order",style:{navigationBarTitleText:"订单",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/my",style:{navigationBarTitleText:"我的",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/withdraw",style:{navigationBarTitleText:"提现",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/add_blank",style:{navigationBarTitleText:"绑定银行卡",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/history",style:{navigationBarTitleText:"提现记录",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/bill",style:{navigationBarTitleText:"账单",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/login/wxLogin",style:{navigationBarTitleText:"","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/login/agreement",style:{navigationBarTitleText:"","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/login/privacy",style:{navigationBarTitleText:"","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/index/details",style:{navigationBarTitleText:"项目详情",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/identify/details",style:{navigationBarTitleText:"商户",navigationBarBackgroundColor:"#2cb8d4",enablePullDownRefresh:!1,navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/identify/approve_data",style:{navigationBarTitleText:"认证信息",navigationBarBackgroundColor:"#2cb8d4",enablePullDownRefresh:!1,navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/identify/pay_order",style:{navigationBarTitleText:"支付订单",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/order/order_detail",style:{navigationBarTitleText:"订单详情",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/order/comment",style:{navigationBarTitleText:"评论",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/add_address",style:{navigationBarTitleText:"添加地址",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/select_position",style:{navigationBarTitleText:"选择地址",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/remember",style:{navigationBarTitleText:"评论商户",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/js_user",style:{navigationBarTitleText:"评论客户",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/collect",style:{navigationBarTitleText:"我的收藏",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/coupon",style:{navigationBarTitleText:"我的优惠券",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/engineerCenter",style:{navigationBarTitleText:"商户中心",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/join/teamwork",style:{navigationBarTitleText:"招商合作",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/join/first_join",style:{navigationBarTitleText:"商户入驻",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/indent",style:{navigationBarTitleText:"编辑资料",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/free_fare",style:{navigationBarTitleText:"免车费设置",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/js_order",style:{navigationBarTitleText:"订单",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/join/feedback",style:{navigationBarTitleText:"投诉举报",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"pages/my/pay",style:{navigationBarTitleText:"充值",navigationBarBackgroundColor:"#2cb8d4",navigationBarTextStyle:"white","app-plus":{softinputNavBar:"none",titleNView:!1}}},{path:"uni_modules/uni-pay/pages/success/success",style:{backgroundColor:"#F8F8F8",navigationBarTitleText:"支付成功"}},{path:"uni_modules/uni-pay/pages/ad-interactive-webview/ad-interactive-webview",style:{backgroundColor:"#F8F8F8",navigationBarTitleText:"ad"}},{path:"uni_modules/uni-pay/pages/pay-desk/pay-desk",style:{backgroundColor:"#F8F8F8",navigationBarTitleText:"收银台"}},{path:"components/select_time",style:{navigationBarTitleText:""}}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"uni-app",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8"},tabBar:{color:"#ADB4B8",selectedColor:"#333333",backgroundColor:"#FFFFFF",list:[{text:"首页",pagePath:"pages/index/index",iconPath:"static/identify/index.png",selectedIconPath:"static/identify/index-cur.png"},{text:"商户",pagePath:"pages/identify/identify",iconPath:"static/identify/people.png",selectedIconPath:"static/identify/people-cur.png"},{text:"订单",pagePath:"pages/order/order",iconPath:"static/identify/order.png",selectedIconPath:"static/identify/order-cur.png"},{text:"我的",pagePath:"pages/my/my",iconPath:"static/identify/mine.png",selectedIconPath:"static/identify/mine-cur.png"}]},uniIdRouter:{}}},c840:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return a}));var a={uniIcons:n("2b33").default,uniBadge:n("3741").default},i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"uni-list-item",class:{"uni-list-item--disabled":e.disabled},style:{"background-color":e.customStyle.backgroundColor},attrs:{"hover-class":!e.clickable&&!e.link||e.disabled||e.showSwitch?"":"uni-list-item--hover"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick.apply(void 0,arguments)}}},[e.isFirstChild?e._e():n("v-uni-view",{staticClass:"border--left",class:{"uni-list--border":e.border}}),n("v-uni-view",{staticClass:"uni-list-item__container",class:{"container--right":e.showArrow||e.link,"flex--direction":"column"===e.direction},style:{paddingTop:e.padding.top,paddingLeft:e.padding.left,paddingRight:e.padding.right,paddingBottom:e.padding.bottom}},[e._t("header",[n("v-uni-view",{staticClass:"uni-list-item__header"},[e.thumb?n("v-uni-view",{staticClass:"uni-list-item__icon"},[n("v-uni-image",{staticClass:"uni-list-item__icon-img",class:["uni-list--"+e.thumbSize],attrs:{src:e.thumb}})],1):e.showExtraIcon?n("v-uni-view",{staticClass:"uni-list-item__icon"},[n("uni-icons",{attrs:{customPrefix:e.extraIcon.customPrefix,color:e.extraIcon.color,size:e.extraIcon.size,type:e.extraIcon.type}})],1):e._e()],1)]),e._t("body",[n("v-uni-view",{staticClass:"uni-list-item__content",class:{"uni-list-item__content--center":e.thumb||e.showExtraIcon||e.showBadge||e.showSwitch}},[e.title?n("v-uni-text",{staticClass:"uni-list-item__content-title",class:[0!==e.ellipsis&&e.ellipsis<=2?"uni-ellipsis-"+e.ellipsis:""]},[e._v(e._s(e.title))]):e._e(),e.note?n("v-uni-text",{staticClass:"uni-list-item__content-note"},[e._v(e._s(e.note))]):e._e()],1)]),e._t("footer",[e.rightText||e.showBadge||e.showSwitch?n("v-uni-view",{staticClass:"uni-list-item__extra",class:{"flex--justify":"column"===e.direction}},[e.rightText?n("v-uni-text",{staticClass:"uni-list-item__extra-text"},[e._v(e._s(e.rightText))]):e._e(),e.showBadge?n("uni-badge",{attrs:{type:e.badgeType,text:e.badgeText,"custom-style":e.badgeStyle}}):e._e(),e.showSwitch?n("v-uni-switch",{attrs:{disabled:e.disabled,checked:e.switchChecked},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.onSwitchChange.apply(void 0,arguments)}}}):e._e()],1):e._e()])],2),e.showArrow||e.link?n("uni-icons",{staticClass:"uni-icon-wrapper",attrs:{size:16,color:"#bbb",type:"arrowright"}}):e._e()],1)},r=[]},cad9:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=(0,i.default)();return function(){var n,i=(0,a.default)(e);if(t){var o=(0,a.default)(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return(0,r.default)(this,n)}},n("6a88"),n("bf0f"),n("7996");var a=o(n("f1f8")),i=o(n("6c31")),r=o(n("62b0"));function o(e){return e&&e.__esModule?e:{default:e}}},cb74:function(e,t,n){var a=n("eb2a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("10dd5bd7",a,!0,{sourceMap:!1,shadowMode:!1})},cce3a:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("5ef2");var i=a(n("fe2b")),r={name:"uniPopup",components:{keypress:i.default},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup:function(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles:function(){var e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop:function(){return this.popupWidth>=500&&this.popupHeight>=500},bg:function(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted:function(){var e=this;(function(){var t=uni.getSystemInfoSync(),n=t.windowWidth,a=t.windowHeight,i=t.windowTop,r=t.safeArea,o=(t.screenHeight,t.safeAreaInsets);e.popupWidth=n,e.popupHeight=a+(i||0),r&&e.safeArea?e.safeAreaInsets=o.bottom:e.safeAreaInsets=0})()},destroyed:function(){this.setH5Visible()},activated:function(){this.setH5Visible(!this.showPopup)},deactivated:function(){this.setH5Visible(!0)},created:function(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];document.getElementsByTagName("body")[0].style.overflow=e?"visible":"hidden"},closeMask:function(){this.maskShow=!1},disableMask:function(){this.mkclick=!1},clear:function(e){e.stopPropagation(),this.clearPropagation=!0},open:function(e){if(!this.showPopup){e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)}},close:function(e){var t=this;this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((function(){t.showPopup=!1}),300)},touchstart:function(){this.clearPropagation=!1},onTap:function(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top:function(e){var t=this;this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((function(){t.messageChild&&"message"===t.type&&t.messageChild.timerClose()})))},bottom:function(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center:function(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left:function(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right:function(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};t.default=r},d2c4:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=o,n("6a88"),n("bf0f"),n("7996"),n("aa9c");var a=r(n("e668")),i=r(n("6c31"));function r(e){return e&&e.__esModule?e:{default:e}}function o(e,n,r){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 r=Function.bind.apply(e,i),o=new r;return n&&(0,a.default)(o,n.prototype),o},o.apply(null,arguments)}},d441:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},n("5ef2"),n("c9b5"),n("bf0f"),n("ab80")},d521:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.createAnimation=function(e,t){if(!t)return;return clearTimeout(t.timer),new s(e,t)},n("4626"),n("5ac7"),n("c223"),n("bf0f"),n("2797");var i=a(n("9b1b")),r=a(n("80b1")),o=a(n("efe5")),s=function(){function e(t,n){(0,r.default)(this,e),this.options=t,this.animation=uni.createAnimation((0,i.default)({},t)),this.currentStepAnimates={},this.next=0,this.$=n}return(0,o.default)(e,[{key:"_nvuePushAnimates",value:function(e,t){var n=this.currentStepAnimates[this.next],a={};if(a=n||{styles:{},config:{}},c.includes(e)){a.styles.transform||(a.styles.transform="");var i="";"rotate"===e&&(i="deg"),a.styles.transform+="".concat(e,"(").concat(t+i,") ")}else a.styles[e]="".concat(t);this.currentStepAnimates[this.next]=a}},{key:"_animateRun",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.$.$refs["ani"].ref;if(n)return new Promise((function(a,r){nvueAnimation.transition(n,(0,i.default)({styles:e},t),(function(e){a()}))}))}},{key:"_nvueNextAnimate",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=arguments.length>2?arguments[2]:void 0,i=e[n];if(i){var r=i.styles,o=i.config;this._animateRun(r,o).then((function(){n+=1,t._nvueNextAnimate(e,n,a)}))}else this.currentStepAnimates={},"function"===typeof a&&a(),this.isEnd=!0}},{key:"step",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.animation.step(e),this}},{key:"run",value:function(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((function(){"function"===typeof e&&e()}),this.$.durationTime)}}]),e}(),c=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];c.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((function(e){s.prototype[e]=function(){var t;return(t=this.animation)[e].apply(t,arguments),this}}))},d6b4:function(e,t,n){"use strict";n.r(t);var a=n("7ed2"),i=n("a869");for(var r in i)["default"].indexOf(r)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(r);n("4a6e");var o=n("828b"),s=Object(o["a"])(i["default"],a["b"],a["c"],!1,null,"6cb2943c",null,!1,a["a"],void 0);t["default"]=s.exports},dd71:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={appid:"__UNI__F9027B9"}},e062:function(e,t,n){"use strict";var a=n("8bdb");a({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},e163:function(e,t,n){var a=n("1673");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[e.i,a,""]]),a.locals&&(e.exports=a.locals);var i=n("967d").default;i("e214f828",a,!0,{sourceMap:!1,shadowMode:!1})},e668:function(e,t,n){"use strict";function a(e,n){return t.default=a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,n)}n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,n("8a8d")},eb2a:function(e,t,n){var a=n("c86c");t=a(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.mobile-pay-popup[data-v-6cb2943c]{min-height:calc(100vh - var(--window-bottom) - var(--window-top));background-color:#f3f3f3;border-radius:%?30?% %?30?% 0 0;overflow:hidden}.mobile-pay-popup .mobile-pay-popup-title[data-v-6cb2943c]{background-color:#fff;text-align:center;font-weight:700;font-size:%?40?%;padding:%?20?%}.mobile-pay-popup .mobile-pay-popup-amount-box[data-v-6cb2943c]{background-color:#fff;padding:%?30?%}.mobile-pay-popup .mobile-pay-popup-amount-box .mobile-pay-popup-amount[data-v-6cb2943c]{color:#e43d33;font-size:%?60?%;margin-top:%?20?%}.mobile-pay-popup .mobile-pay-popup-provider-list[data-v-6cb2943c]{background-color:#fff;margin-top:%?20?%}',""]),e.exports=t},ed17:function(e,t,n){"use strict";var a=n("4c30"),i=n.n(a);i.a},f1f8:function(e,t,n){"use strict";function a(e){return t.default=a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=a,n("8a8d"),n("926e")},f25f:function(e,t,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("b7c7")),r=a(n("fcf3")),o=a(n("9b1b"));n("64aa"),n("bf0f"),n("2797"),n("c223"),n("5c47"),n("a1c1");var s=n("d521"),c={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:function(){return"fade"}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:function(){return{isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}},watch:{show:{handler:function(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject:function(){var e=(0,o.default)((0,o.default)({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),t="";for(var n in e){var a=this.toLine(n);t+=a+":"+e[n]+";"}return t},transformStyles:function(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created:function(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.duration&&(this.durationTime=e.duration),this.animation=(0,s.createAnimation)(Object.assign(this.config,e),this)},onClick:function(){this.$emit("click",{detail:this.isShow})},step:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.animation){for(var n in e)try{var a;if("object"===(0,r.default)(e[n]))(a=this.animation)[n].apply(a,(0,i.default)(e[n]));else this.animation[n](e[n])}catch(o){console.error("方法 ".concat(n," 不存在"))}return this.animation.step(t),this}},run:function(e){this.animation&&this.animation.run(e)},open:function(){var e=this;clearTimeout(this.timer),this.transform="",this.isShow=!0;var t=this.styleInit(!1),n=t.opacity,a=t.transform;"undefined"!==typeof n&&(this.opacity=n),this.transform=a,this.$nextTick((function(){e.timer=setTimeout((function(){e.animation=(0,s.createAnimation)(e.config,e),e.tranfromInit(!1).step(),e.animation.run(),e.$emit("change",{detail:e.isShow})}),20)}))},close:function(e){var t=this;this.animation&&this.tranfromInit(!0).step().run((function(){t.isShow=!1,t.animationData=null,t.animation=null;var e=t.styleInit(!1),n=e.opacity,a=e.transform;t.opacity=n||1,t.transform=a,t.$emit("change",{detail:t.isShow})}))},styleInit:function(e){var t=this,n={transform:""},a=function(e,a){"fade"===a?n.opacity=t.animationType(e)[a]:n.transform+=t.animationType(e)[a]+" "};return"string"===typeof this.modeClass?a(e,this.modeClass):this.modeClass.forEach((function(t){a(e,t)})),n},tranfromInit:function(e){var t=this,n=function(e,n){var a=null;"fade"===n?a=e?0:1:(a=e?"-100%":"0","zoom-in"===n&&(a=e?.8:1),"zoom-out"===n&&(a=e?1.2:1),"slide-right"===n&&(a=e?"100%":"0"),"slide-bottom"===n&&(a=e?"100%":"0")),t.animation[t.animationMode()[n]](a)};return"string"===typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((function(t){n(e,t)})),this.animation},animationType:function(e){return{fade:e?0:1,"slide-top":"translateY(".concat(e?"0":"-100%",")"),"slide-right":"translateX(".concat(e?"0":"100%",")"),"slide-bottom":"translateY(".concat(e?"0":"100%",")"),"slide-left":"translateX(".concat(e?"0":"-100%",")"),"zoom-in":"scaleX(".concat(e?1:.8,") scaleY(").concat(e?1:.8,")"),"zoom-out":"scaleX(".concat(e?1:1.2,") scaleY(").concat(e?1:1.2,")")}},animationMode:function(){return{fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}},toLine:function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}}};t.default=c},f478:function(e,t,n){"use strict";n("6a54"),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("7a76"),n("c9b5")},f555:function(e,t,n){"use strict";var a=n("85c1"),i=n("ab4a"),r=n("e4ca"),o=n("471d"),s=n("af9e"),c=a.RegExp,u=c.prototype,l=i&&s((function(){var e=!0;try{c(".","d")}catch(l){e=!1}var t={},n="",a=e?"dgimsy":"gimsy",i=function(e,a){Object.defineProperty(t,e,{get:function(){return n+=a,!0}})},r={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var o in e&&(r.hasIndices="d"),r)i(o,r[o]);var s=Object.getOwnPropertyDescriptor(u,"flags").get.call(t);return s!==a||n!==a}));l&&r(u,"flags",{configurable:!0,get:o})},fb8d:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{directives:[{name:"show",rawName:"v-show",value:e.isShow,expression:"isShow"}],ref:"ani",class:e.customClass,style:e.transformStyles,attrs:{animation:e.animationData},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick.apply(void 0,arguments)}}},[e._t("default")],2)},i=[]},fe2b:function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("aa77"),n("bf0f"),n("dc8a"),n("4626"),n("5ac7");var a={name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted:function(){var e=this,t={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(function(n){if(!e.disable){var a=Object.keys(t).find((function(e){var a=n.key,i=t[e];return i===a||Array.isArray(i)&&i.includes(a)}));a&&setTimeout((function(){e.$emit(a,{})}),0)}}))},render:function(){}};t.default=a}}]);
|