text: (this["webpackJsonp"]=this["webpackJsonp"]||[]).push([["app-service"],{"0138":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uPopup:n("4a1a").default,uLoading:n("7c31").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-popup",{attrs:{zoom:t.zoom,mode:"center",popup:!1,"z-index":t.uZIndex,length:t.width,"mask-close-able":t.maskCloseAble,"border-radius":t.borderRadius,"negative-top":t.negativeTop,_i:1},on:{close:t.popupClose},model:{value:t._$s(1,"v-model",t.value),callback:function(e){t.value=e},expression:"value"}},[n("view",{staticClass:t._$s(2,"sc","u-model"),attrs:{_i:2}},[t._$s(3,"i",t.showTitle)?n("view",{staticClass:t._$s(3,"sc","u-model__title u-line-1"),style:t._$s(3,"s",[t.titleStyle]),attrs:{_i:3}},[t._v(t._$s(3,"t0-0",t._s(t.title)))]):t._e(),n("view",{staticClass:t._$s(4,"sc","u-model__content"),attrs:{_i:4}},[t._$s(5,"i",t.$slots.default||t.$slots.$default)?n("view",{style:t._$s(5,"s",[t.contentStyle]),attrs:{_i:5}},[t._t("default",null,{_i:6})],2):n("view",{staticClass:t._$s(7,"sc","u-model__content__message"),style:t._$s(7,"s",[t.contentStyle]),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.content)))])]),t._$s(8,"i",t.showCancelButton||t.showConfirmButton)?n("view",{staticClass:t._$s(8,"sc","u-model__footer u-border-top"),attrs:{_i:8}},[t._$s(9,"i",t.showCancelButton)?n("view",{staticClass:t._$s(9,"sc","u-model__footer__button"),style:t._$s(9,"s",[t.cancelBtnStyle]),attrs:{_i:9},on:{click:t.cancel}},[t._v(t._$s(9,"t0-0",t._s(t.cancelText)))]):t._e(),t._$s(10,"i",t.showConfirmButton||t.$slots["confirm-button"])?n("view",{staticClass:t._$s(10,"sc","u-model__footer__button hairline-left"),style:t._$s(10,"s",[t.confirmBtnStyle]),attrs:{"hover-class":t._$s(10,"a-hover-class",t.asyncClose?"none":"u-model__btn--hover"),_i:10},on:{click:t.confirm}},[t._$s(11,"i",t.$slots["confirm-button"])?t._t("confirm-button",null,{_i:11}):[t._$s(13,"i",t.loading)?n("u-loading",{attrs:{mode:"circle",color:t.confirmColor,_i:13}}):[t._v(t._$s(14,"t0-0",t._s(t.confirmText)))]]],2):t._e()]):t._e()])])],1)},o=[]},"01b7":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uPopup:n("4a1a").default},i=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("view",[r("view",{staticClass:t._$s(1,"sc","box"),attrs:{_i:1}},[r("view",{staticClass:t._$s(2,"sc","menu"),attrs:{_i:2},on:{click:t.toMenu}},[r("image",{attrs:{src:t._$s(3,"a-src",n("5814")),_i:3}})]),r("view",{staticClass:t._$s(4,"sc","logoword"),attrs:{_i:4}})]),t._t("default",null,{_i:5}),r("u-popup",{attrs:{width:"85%",mode:"left","border-radius":"14",_i:6},model:{value:t._$s(6,"v-model",t.menuShow),callback:function(e){t.menuShow=e},expression:"menuShow"}},[r("view",{staticClass:t._$s(7,"sc","func"),attrs:{_i:7}},[r("view",{staticClass:t._$s(8,"sc","base-padding row"),attrs:{_i:8},on:{click:t.userLoginEvent}},[r("view",{staticClass:t._$s(9,"sc","user"),attrs:{_i:9}},[r("image",{attrs:{src:t._$s(10,"a-src",t.user.avatar),_i:10}}),r("view",{staticClass:t._$s(11,"sc","username font-lv2"),attrs:{_i:11}},[t._v(t._$s(11,"t0-0",t._s(t.user.nickname)))])]),r("view",{staticClass:t._$s(12,"sc","color-grey font-lv3 user-intro"),attrs:{_i:12}},[t._v(t._$s(12,"t0-0",t._s(t.user.intro)))])]),r("view",{staticClass:t._$s(13,"sc","base-padding row base-info font-lv2"),attrs:{_i:13}},[r("navigator",{staticClass:t._$s(14,"sc","col-12"),attrs:{_i:14}},[r("image",{staticClass:t._$s(15,"sc","me-icon"),attrs:{src:t._$s(15,"a-src",n("c41f")),_i:15}}),r("text"),r("image",{staticClass:t._$s(17,"sc","pull-right me-icon"),attrs:{src:t._$s(17,"a-src",n("d2e9")),_i:17}})])]),r("view",{staticClass:t._$s(18,"sc","base-padding row base-info font-lv2"),attrs:{_i:18}},[r("navigator",{staticClass:t._$s(19,"sc","col-12"),attrs:{_i:19}},[r("image",{staticClass:t._$s(20,"sc","me-icon"),attrs:{src:t._$s(20,"a-src",n("a975")),_i:20}}),r("image",{staticClass:t._$s(21,"sc","pull-right me-icon"),attrs:{src:t._$s(21,"a-src",n("d2e9")),_i:21}})]),r("navigator",{staticClass:t._$s(22,"sc","col-12"),attrs:{_i:22}},[r("image",{staticClass:t._$s(23,"sc","me-icon"),attrs:{src:t._$s(23,"a-src",n("a975")),_i:23}}),r("image",{staticClass:t._$s(24,"sc","pull-right me-icon"),attrs:{src:t._$s(24,"a-src",n("d2e9")),_i:24}})])]),t._$s(25,"i","0"!=t.user.uid)?r("view",{staticClass:t._$s(25,"sc","base-padding row base-info font-lv2"),attrs:{_i:25}},[r("view",{staticClass:t._$s(26,"sc","col-12"),attrs:{_i:26},on:{click:t.logout}},[r("image",{staticClass:t._$s(27,"sc","me-icon"),attrs:{src:t._$s(27,"a-src",n("3403")),_i:27}}),r("image",{staticClass:t._$s(28,"sc","pull-right me-icon"),attrs:{_i:28}})])]):t._e()])])],2)},o=[]},"06a4":function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),i=[];if(n=n||r.length,t)for(var o=0;o<t;o++)i[o]=r[0|Math.random()*n];else{var a;i[8]=i[13]=i[18]=i[23]="-",i[14]="4";for(var s=0;s<36;s++)i[s]||(a=0|16*Math.random(),i[s]=r[19==s?3&a|8:a])}return e?(i.shift(),"u"+i.join("")):i.join("")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},"0848":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view")},o=[]},"08b7":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-icon",props:{name:{type:String,default:""},color:{type:String,default:""},size:{type:[Number,String],default:"inherit"},bold:{type:Boolean,default:!1},index:{type:[Number,String],default:""},hoverClass:{type:String,default:""},customPrefix:{type:String,default:"uicon"},label:{type:[String,Number],default:""},labelPos:{type:String,default:"right"},labelSize:{type:[String,Number],default:"28"},labelColor:{type:String,default:"#606266"},marginLeft:{type:[String,Number],default:"6"},marginTop:{type:[String,Number],default:"6"},marginRight:{type:[String,Number],default:"6"},marginBottom:{type:[String,Number],default:"6"},imgMode:{type:String,default:"widthFix"},customStyle:{type:Object,default:function(){return{}}},width:{type:[String,Number],default:""},height:{type:[String,Number],default:""},top:{type:[String,Number],default:0},showDecimalIcon:{type:Boolean,default:!1},inactiveColor:{type:String,default:"#ececec"},percent:{type:[Number,String],default:"50"}},computed:{customClass:function(){var t=[];return t.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?t.push("u-iconfont"):t.push(this.customPrefix),this.showDecimalIcon&&this.inactiveColor&&this.$u.config.type.includes(this.inactiveColor)?t.push("u-icon__icon--"+this.inactiveColor):this.color&&this.$u.config.type.includes(this.color)&&t.push("u-icon__icon--"+this.color),t},iconStyle:function(){var t={};return t={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top)},this.showDecimalIcon&&this.inactiveColor&&!this.$u.config.type.includes(this.inactiveColor)?t.color=this.inactiveColor:this.color&&!this.$u.config.type.includes(this.color)&&(t.color=this.color),t},isImg:function(){return-1!==this.name.indexOf("/")},imgStyle:function(){var t={};return t.width=this.width?this.$u.addUnit(this.width):this.$u.addUnit(this.size),t.height=this.height?this.$u.addUnit(this.height):this.$u.addUnit(this.size),t},decimalIconStyle:function(){var t={};return t={fontSize:"inherit"==this.size?"inherit":this.$u.addUnit(this.size),fontWeight:this.bold?"bold":"normal",top:this.$u.addUnit(this.top),width:this.percent+"%"},this.color&&!this.$u.config.type.includes(this.color)&&(t.color=this.color),t},decimalIconClass:function(){var t=[];return t.push(this.customPrefix+"-"+this.name),"uicon"==this.customPrefix?t.push("u-iconfont"):t.push(this.customPrefix),this.color&&this.$u.config.type.includes(this.color)?t.push("u-icon__icon--"+this.color):t.push("u-icon__icon--primary"),t}},methods:{click:function(){this.$emit("click",this.index)},touchstart:function(){this.$emit("touchstart",this.index)}}};e.default=r},"0a1f":function(t,e,n){"use strict";n("0e66");var r=a(n("8bbf")),i=a(n("3200")),o=a(n("5e8c"));function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function u(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){c(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}r.default.use(o.default),r.default.config.productionTip=!1,i.default.mpType="app";var l=new r.default(u({},i.default));l.$mount()},"0de9":function(t,e,n){"use strict";function r(t){var e=Object.prototype.toString.call(t);return e.substring(8,e.length-1)}function i(){return"string"===typeof __channelId__&&__channelId__}function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];console[t].apply(console,n)}function a(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=e.shift();if(i())return e.push(e.pop().replace("at ","uni-app:///")),console[o].apply(console,e);var a=e.map((function(t){var e=Object.prototype.toString.call(t).toLowerCase();if("[object object]"===e||"[object array]"===e)try{t="---BEGIN:JSON---"+JSON.stringify(t)+"---END:JSON---"}catch(i){t="[object object]"}else if(null===t)t="---NULL---";else if(void 0===t)t="---UNDEFINED---";else{var n=r(t).toUpperCase();t="NUMBER"===n||"BOOLEAN"===n?"---BEGIN:"+n+"---"+t+"---END:"+n+"---":String(t)}return t})),s="";if(a.length>1){var u=a.pop();s=a.join("---COMMA---"),0===u.indexOf(" at ")?s+=u:s+="---COMMA---"+u}else s=a[0];console[o](s)}n.r(e),n.d(e,"log",(function(){return o})),n.d(e,"default",(function(){return a}))},"0e66":function(t,e,n){"undefined"===typeof Promise||Promise.prototype.finally||(Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))}),uni.restoreGlobal&&uni.restoreGlobal(weex,plus,setTimeout,clearTimeout,setInterval,clearInterval),__definePage("pages/index/index",(function(){return Vue.extend(n("bed3").default)})),__definePage("pages/detail/detail",(function(){return Vue.extend(n("e15d").default)})),__definePage("components/photo",(function(){return Vue.extend(n("b8ea").default)})),__definePage("components/meaning",(function(){return Vue.extend(n("c096").default)})),__definePage("pages/dictionary/dictionary",(function(){return Vue.extend(n("ad7a").default)})),__definePage("pages/login/login",(function(){return Vue.extend(n("acef").default)})),__definePage("pages/reg/reg",(function(){return Vue.extend(n("a620").default)})),__definePage("pages/collection/collection",(function(){return Vue.extend(n("f4ef").default)})),__definePage("pages/history/history",(function(){return Vue.extend(n("409d").default)})),__definePage("uview-ui/components/u-full-screen/u-full-screen",(function(){return Vue.extend(n("630b").default)}))},"14ab":function(t,e,n){"use strict";n.r(e);var r=n("0138"),i=n("7acb");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"cfc16b10",null,!1,r["a"],a);e["default"]=u.exports},"14fb":function(t,e,n){"use strict";n.r(e);var r=n("23ea"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"1cb2":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-mask"),class:t._$s(0,"c",{"u-mask-zoom":t.zoom,"u-mask-show":t.show}),style:t._$s(0,"s",[t.maskStyle,t.zoomStyle]),attrs:{_i:0},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault()},click:t.click}},[t._t("default",null,{_i:1})],2)},o=[]},"1d6f":function(t,e,n){"use strict";function r(){return uni.getSystemInfoSync().platform}function i(){return uni.getSystemInfoSync()}Object.defineProperty(e,"__esModule",{value:!0}),e.os=r,e.sys=i},"1da9":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={hchMenu:n("f0cb").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:1}}),t._$s(2,"i",""!=t.mainwords)?n("view",[n("view",{staticClass:t._$s(3,"sc","translate-history"),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","text-history"),attrs:{_i:4}},[n("text")]),t._l(t._$s(6,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(6,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"7-"+o}})]}))],2),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:8}}),n("view",{staticClass:t._$s(9,"sc","translate-history"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","text-history"),attrs:{_i:10}},[n("text")]),t._l(t._$s(12,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(12,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"13-"+o}})]}))],2)],1):t._e(),n("hch-menu",{attrs:{_i:14},on:{returnItem:t.returnItem}})],1)},o=[]},2184:function(t,e,n){"use strict";n.r(e);var r=n("e417"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"239a":function(t,e,n){"use strict";n.r(e);var r=n("8167"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"23ea":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("2e75"));function i(t){return t&&t.__esModule?t:{default:t}}var o={components:{description:r.default},data:function(){return{type:"",word:"",interpretation:"",imgsrc:"",videosrc:""}},methods:{},onLoad:function(e){var n=this;t("log",e," at pages/detail/detail.vue:39"),n.word=e.word,n.type=e.type,n.interpretation=e.interpretation,n.imgsrc=e.imgsrc,n.videosrc=e.videosrc,t("log",n.videosrc," at pages/detail/detail.vue:45")}};e.default=o}).call(this,n("0de9")["default"])},2725:function(t,e,n){"use strict";(function(t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(n("b3f8"));var i=o(n("d5f1"));o(n("cc19"));function o(t){return t&&t.__esModule?t:{default:t}}var a={name:"meaning",data:function(){return{}},onReady:function(){},methods:{toDetail:function(){var e=i.default.getUser(),n=this;uni.navigateTo({url:"/pages/detail/detail?word="+n.word+"&type="+n.type+"&interpretation="+n.interpretation+"&imgsrc="+n.imgsrc+"&videosrc="+n.videosrc}),t.callFunction({name:"getHistory",data:{tel:e.uid},success:function(o){r("log",o," at components/meaning.vue:39"),0==o.result.data.data.length&&t.callFunction({name:"addHistory",data:{tel:e.uid,fid:[]},success:function(t){r("log",t," at components/meaning.vue:50")},fail:function(t){r("log",t," at components/meaning.vue:53")}});var a=[];0!=o.result.data.data.length&&(a=o.result.data.data[0].fid);var s=i.default.getFidByWord(n.word);a.push(s),t.callFunction({name:"updateHistory",data:{tel:e.uid,fid:a},success:function(t){r("log",t," at components/meaning.vue:71")},fail:function(t){r("log",t," at components/meaning.vue:74")}})},fail:function(t){r("log",t," at components/meaning.vue:81")}})}},props:{type:{type:String,default:"adj"},interpretation:{type:String,default:"\u4e00\u624b\u98df\u6307\u6307\u773c\u90e8"},word:{type:String,default:"\u773c\u775b"},imgsrc:{type:String,default:"http://file.bookcodes.cn/pictures/eye.jpg"},videosrc:{type:String,default:"http://file.bookcodes.cn/pictures/eye.jpg"}}};e.default=a}).call(this,n("a9ff")["default"],n("0de9")["default"])},"2bef":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;r(n("b3f8")),r(n("d5f1")),r(n("cc19"));function r(t){return t&&t.__esModule?t:{default:t}}var i={components:{},data:function(){return{}}};e.default=i},"2e75":function(t,e,n){"use strict";n.r(e);var r=n("3037"),i=n("4cc0");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},3037:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uTabs:n("77f3").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","box1"),attrs:{_i:1}},[n("text",[t._v(t._$s(2,"t0-0",t._s(t.word))),n("text",[t._v(t._$s(3,"t0-0",t._s("  "))+t._$s(3,"t0-1",t._s(t.type)))])])]),n("view",{staticClass:t._$s(4,"sc","box2"),attrs:{_i:4}},[n("u-tabs",{attrs:{"active-color":"#b3c5ff",list:t.list,"is-scroll":!1,current:t.current,_i:5},on:{change:t.change}}),t._$s(6,"i",0==t.current)?n("view",{staticClass:t._$s(6,"sc","picture"),attrs:{_i:6}},[n("image",{attrs:{src:t._$s(7,"a-src",t.imgsrc),_i:7}})]):n("view",{staticClass:t._$s(8,"sc","video"),attrs:{_i:8}},[n("video",{attrs:{id:"myVideo",src:t._$s(9,"a-src",t.videosrc),"danmu-list":t._$s(9,"a-danmu-list",t.danmuList),_i:9},on:{error:t.videoErrorCallback}})])],1),n("view",{staticClass:t._$s(10,"sc","box3"),attrs:{_i:10}},[n("view",{staticClass:t._$s(11,"sc","interpretation"),attrs:{_i:11}},[n("text"),t._v(t._$s(11,"t1-0",t._s(t.interpretation)))])])])},o=[]},3200:function(t,e,n){"use strict";n.r(e);var r=n("4143"),i=n("5f46");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},"33ef":function(t,e,n){"use strict";n.r(e);var r=n("01b7"),i=n("2184");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},3403:function(t,e){t.exports="/static/images/login.png"},"36ec":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"meaning",data:function(){return{src:"",danmuList:[{text:"\u7b2c 1s \u51fa\u73b0\u7684\u5f39\u5e55",color:"#ff0000",time:1},{text:"\u7b2c 3s \u51fa\u73b0\u7684\u5f39\u5e55",color:"#ff00ff",time:3}],danmuValue:"",list:[{name:"\u56fe\u7247"},{name:"\u89c6\u9891"}],current:0}},onReady:function(){},methods:{sendDanmu:function(){this.videoContext.sendDanmu({text:this.danmuValue,color:this.getRandomColor()}),this.danmuValue=""},videoErrorCallback:function(t){},getRandomColor:function(){for(var t=[],e=0;e<3;++e){var n=Math.floor(256*Math.random()).toString(16);n=1==n.length?"0"+n:n,t.push(n)}return"#"+t.join("")},change:function(t){this.current=t}},props:{type:{type:String,default:"adj"},interpretation:{type:String,default:"\u4e00\u624b\u98df\u6307\u6307\u773c\u90e8"},word:{type:String,default:"\u773c\u775b"},imgsrc:{type:String,default:"http://file.bookcodes.cn/pictures/eye.jpg"},videosrc:{type:String,default:"https://sllvideo.oss-cn-beijing.aliyuncs.com/test01.mp4"}}};e.default=r},"38f3":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-modal",props:{value:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},title:{type:[String],default:"\u63d0\u793a"},width:{type:[Number,String],default:600},content:{type:String,default:"\u5185\u5bb9"},showTitle:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!1},confirmText:{type:String,default:"\u786e\u8ba4"},cancelText:{type:String,default:"\u53d6\u6d88"},confirmColor:{type:String,default:"#2979ff"},cancelColor:{type:String,default:"#606266"},borderRadius:{type:[Number,String],default:16},titleStyle:{type:Object,default:function(){return{}}},contentStyle:{type:Object,default:function(){return{}}},cancelStyle:{type:Object,default:function(){return{}}},confirmStyle:{type:Object,default:function(){return{}}},zoom:{type:Boolean,default:!0},asyncClose:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!1},negativeTop:{type:[String,Number],default:0}},data:function(){return{loading:!1}},computed:{cancelBtnStyle:function(){return Object.assign({color:this.cancelColor},this.cancelStyle)},confirmBtnStyle:function(){return Object.assign({color:this.confirmColor},this.confirmStyle)},uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{value:function(t){!0===t&&(this.loading=!1)}},methods:{confirm:function(){this.asyncClose?this.loading=!0:this.$emit("input",!1),this.$emit("confirm")},cancel:function(){var t=this;this.$emit("cancel"),this.$emit("input",!1),setTimeout((function(){t.loading=!1}),300)},popupClose:function(){this.$emit("input",!1)},clearLoading:function(){this.loading=!1}}};e.default=r},"3a56":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("cd9c")),i=o(n("a831"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),t}var c=function(){function t(){var e=this;a(this,t),this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"\u8bf7\u6c42\u4e2d...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({method:"GET",url:t,header:r,data:n})},this.post=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"POST",header:r,data:n})},this.put=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"PUT",header:r,data:n})},this.delete=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.request({url:t,method:"DELETE",header:r,data:n})}}return u(t,[{key:"setConfig",value:function(t){this.config=(0,r.default)(this.config,t)}},{key:"request",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.interceptor.request&&"function"===typeof this.interceptor.request){var n=this.interceptor.request(e);if(!1===n)return new Promise((function(){}));this.options=n}return e.dataType=e.dataType||this.config.dataType,e.responseType=e.responseType||this.config.responseType,e.url=e.url||"",e.params=e.params||{},e.header=Object.assign({},this.config.header,e.header),e.method=e.method||this.config.method,new Promise((function(n,r){e.complete=function(e){if(uni.hideLoading(),clearTimeout(t.config.timer),t.config.timer=null,t.config.originalData)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var i=t.interceptor.response(e);!1!==i?n(i):r(e)}else n(e);else if(200==e.statusCode)if(t.interceptor.response&&"function"===typeof t.interceptor.response){var o=t.interceptor.response(e.data);!1!==o?n(o):r(e.data)}else n(e.data);else r(e)},e.url=i.default.url(e.url)?e.url:t.config.baseUrl+(0==e.url.indexOf("/")?e.url:"/"+e.url),t.config.showLoading&&!t.config.timer&&(t.config.timer=setTimeout((function(){uni.showLoading({title:t.config.loadingText,mask:t.config.loadingMask}),t.config.timer=null}),t.config.loadingTime)),uni.request(e)}))}}]),t}(),l=new c;e.default=l},"3a91":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("a34a"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)}))}}var s={name:"u-tabs",props:{isScroll:{type:Boolean,default:!0},list:{type:Array,default:function(){return[]}},current:{type:[Number,String],default:0},height:{type:[String,Number],default:80},fontSize:{type:[String,Number],default:30},duration:{type:[String,Number],default:.5},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#303133"},barWidth:{type:[String,Number],default:40},barHeight:{type:[String,Number],default:6},gutter:{type:[String,Number],default:30},bgColor:{type:String,default:"#ffffff"},name:{type:String,default:"name"},count:{type:String,default:"count"},offset:{type:Array,default:function(){return[5,20]}},bold:{type:Boolean,default:!0},activeItemStyle:{type:Object,default:function(){return{}}},showBar:{type:Boolean,default:!0},barStyle:{type:Object,default:function(){return{}}},itemWidth:{type:[Number,String],default:"auto"}},data:function(){return{scrollLeft:0,tabQueryInfo:[],componentWidth:0,scrollBarLeft:0,parentLeft:0,id:this.$u.guid(),currentIndex:this.current,barFirstTimeMove:!0}},watch:{list:function(t,e){var n=this;t.length!==e.length&&(this.currentIndex=0),this.$nextTick((function(){n.init()}))},current:{immediate:!0,handler:function(t,e){var n=this;this.$nextTick((function(){n.currentIndex=t,n.scrollByIndex()}))}}},computed:{tabBarStyle:function(){var t={width:this.barWidth+"rpx",transform:"translate(".concat(this.scrollBarLeft,"px, -100%)"),"transition-duration":"".concat(this.barFirstTimeMove?0:this.duration,"s"),"background-color":this.activeColor,height:this.barHeight+"rpx","border-radius":"".concat(this.barHeight/2,"px")};return Object.assign(t,this.barStyle),t},tabItemStyle:function(){var t=this;return function(e){var n={height:t.height+"rpx","line-height":t.height+"rpx","font-size":t.fontSize+"rpx","transition-duration":"".concat(t.duration,"s"),padding:t.isScroll?"0 ".concat(t.gutter,"rpx"):"",flex:t.isScroll?"auto":"1",width:t.$u.addUnit(t.itemWidth)};return e==t.currentIndex&&t.bold&&(n.fontWeight="bold"),e==t.currentIndex?(n.color=t.activeColor,n=Object.assign(n,t.activeItemStyle)):n.color=t.inactiveColor,n}}},methods:{init:function(){var t=this;return a(r.default.mark((function e(){var n;return r.default.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$uGetRect("#"+t.id);case 2:n=e.sent,t.parentLeft=n.left,t.componentWidth=n.width,t.getTabRect();case 6:case"end":return e.stop()}}),e)})))()},clickTab:function(t){t!=this.currentIndex&&this.$emit("change",t)},getTabRect:function(){for(var t=uni.createSelectorQuery().in(this),e=0;e<this.list.length;e++)t.select("#u-tab-item-".concat(e)).fields({size:!0,rect:!0});t.exec(function(t){this.tabQueryInfo=t,this.scrollByIndex()}.bind(this))},scrollByIndex:function(){var t=this,e=this.tabQueryInfo[this.currentIndex];if(e){var n=e.width,r=e.left-this.parentLeft,i=r-(this.componentWidth-n)/2;this.scrollLeft=i<0?0:i;var o=e.left+e.width/2-this.parentLeft;this.scrollBarLeft=o-uni.upx2px(this.barWidth)/2,1==this.barFirstTimeMove&&setTimeout((function(){t.barFirstTimeMove=!1}),100)}}},mounted:function(){this.init()}};e.default=s},"3ac8":function(t,e,n){"use strict";function r(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"rgb(0, 0, 0)",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgb(255, 255, 255)",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=i(t,!1),a=r[0],s=r[1],u=r[2],c=i(e,!1),l=c[0],f=c[1],d=c[2],p=(l-a)/n,h=(f-s)/n,v=(d-u)/n,g=[],m=0;m<n;m++){var y=o("rgb("+Math.round(p*m+a)+","+Math.round(h*m+s)+","+Math.round(v*m+u)+")");g.push(y)}return g}function i(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(t=t.toLowerCase(),t&&n.test(t)){if(4===t.length){for(var r="#",i=1;i<4;i+=1)r+=t.slice(i,i+1).concat(t.slice(i,i+1));t=r}for(var o=[],a=1;a<7;a+=2)o.push(parseInt("0x"+t.slice(a,a+2)));return e?"rgb(".concat(o[0],",").concat(o[1],",").concat(o[2],")"):o}if(/^(rgb|RGB)/.test(t)){var s=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(",");return s.map((function(t){return Number(t)}))}return t}function o(t){var e=t,n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/;if(/^(rgb|RGB)/.test(e)){for(var r=e.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),i="#",o=0;o<r.length;o++){var a=Number(r[o]).toString(16);a=1==String(a).length?"0"+a:a,"0"===a&&(a+=a),i+=a}return 7!==i.length&&(i=e),i}if(!n.test(e))return e;var s=e.replace(/#/,"").split("");if(6===s.length)return e;if(3===s.length){for(var u="#",c=0;c<s.length;c+=1)u+=s[c]+s[c];return u}}function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.3;t=o(t);var n=/^#([0-9a-fA-f]{3}|[0-9a-fA-f]{6})$/,r=t.toLowerCase();if(r&&n.test(r)){if(4===r.length){for(var i="#",a=1;a<4;a+=1)i+=r.slice(a,a+1).concat(r.slice(a,a+1));r=i}for(var s=[],u=1;u<7;u+=2)s.push(parseInt("0x"+r.slice(u,u+2)));return"rgba("+s.join(",")+","+e+")"}return r}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s={colorGradient:r,hexToRgb:i,rgbToHex:o,colorToRgba:a};e.default=s},"3b95":function(t,e,n){"use strict";n.r(e);var r=n("acc3"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"3f2c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=uni.getSystemInfoSync(),i={},o={name:"u-navbar",props:{height:{type:[String,Number],default:""},backIconColor:{type:String,default:"#606266"},backIconName:{type:String,default:"nav-back"},backIconSize:{type:[String,Number],default:"44"},backText:{type:String,default:""},backTextStyle:{type:Object,default:function(){return{color:"#606266"}}},title:{type:String,default:""},titleWidth:{type:[String,Number],default:"250"},titleColor:{type:String,default:"#606266"},titleBold:{type:Boolean,default:!1},titleSize:{type:[String,Number],default:32},isBack:{type:[Boolean,String],default:!0},background:{type:Object,default:function(){return{background:"#ffffff"}}},isFixed:{type:Boolean,default:!0},immersive:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},zIndex:{type:[String,Number],default:""},customBack:{type:Function,default:null}},data:function(){return{menuButtonInfo:i,statusBarHeight:r.statusBarHeight}},computed:{navbarInnerStyle:function(){var t={};return t.height=this.navbarHeight+"px",t},navbarStyle:function(){var t={};return t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.navbar,Object.assign(t,this.background),t},titleStyle:function(){var t={};return t.left=(r.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.right=(r.windowWidth-uni.upx2px(this.titleWidth))/2+"px",t.width=uni.upx2px(this.titleWidth)+"px",t},navbarHeight:function(){return this.height?this.height:44}},created:function(){},methods:{goBack:function(){"function"===typeof this.customBack?this.customBack.bind(this.$u.$parent.call(this))():uni.navigateBack()}}};e.default=o},"409d":function(t,e,n){"use strict";n.r(e);var r=n("b1de"),i=n("ac83");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"379a85ce",null,!1,r["a"],a);e["default"]=u.exports},4143:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("camera",{attrs:{_i:1},on:{error:t.error}}),n("button",{attrs:{_i:2},on:{click:t.takePhoto}}),n("view"),n("image",{attrs:{src:t._$s(4,"a-src",t.src),_i:4}})])},o=[]},"41f2":function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.sort((function(){return Math.random()-.5}))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},4233:function(t,e,n){"use strict";n.r(e);var r=n("2bef"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},4432:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-icon"),class:t._$s(0,"c",["u-icon--"+t.labelPos]),style:t._$s(0,"s",[t.customStyle]),attrs:{_i:0},on:{click:t.click}},[t._$s(1,"i",t.isImg)?n("image",{staticClass:t._$s(1,"sc","u-icon__img"),style:t._$s(1,"s",[t.imgStyle]),attrs:{src:t._$s(1,"a-src",t.name),mode:t._$s(1,"a-mode",t.imgMode),_i:1}}):n("text",{staticClass:t._$s(2,"sc","u-icon__icon"),class:t._$s(2,"c",t.customClass),style:t._$s(2,"s",[t.iconStyle]),attrs:{"hover-class":t._$s(2,"a-hover-class",t.hoverClass),_i:2},on:{touchstart:t.touchstart}},[t._$s(3,"i",t.showDecimalIcon)?n("text",{staticClass:t._$s(3,"sc","u-icon__decimal"),class:t._$s(3,"c",t.decimalIconClass),style:t._$s(3,"s",[t.decimalIconStyle]),attrs:{"hover-class":t._$s(3,"a-hover-class",t.hoverClass),_i:3}}):t._e()]),t._$s(4,"i",""!==t.label)?n("text",{staticClass:t._$s(4,"sc","u-icon__label"),style:t._$s(4,"s",{color:t.labelColor,fontSize:t.$u.addUnit(t.labelSize),marginLeft:"right"==t.labelPos?t.$u.addUnit(t.marginLeft):0,marginTop:"bottom"==t.labelPos?t.$u.addUnit(t.marginTop):0,marginRight:"left"==t.labelPos?t.$u.addUnit(t.marginRight):0,marginBottom:"top"==t.labelPos?t.$u.addUnit(t.marginBottom):0}),attrs:{_i:4}},[t._v(t._$s(4,"t0-0",t._s(t.label)))]):t._e()])},o=[]},"48d2":function(t,e,n){"use strict";n.r(e);var r=n("1da9"),i=n("ecdc");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"05bd7b12",null,!1,r["a"],a);e["default"]=u.exports},"4a1a":function(t,e,n){"use strict";n.r(e);var r=n("fb60"),i=n("3b95");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"4b631af3",null,!1,r["a"],a);e["default"]=u.exports},"4cc0":function(t,e,n){"use strict";n.r(e);var r=n("36ec"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"4d0c":function(t,e,n){"use strict";n.r(e);var r=n("c21d"),i=n("d795");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"ab263be0",null,!1,r["a"],a);e["default"]=u.exports},"4ecd":function(t,e,n){"use strict";n.r(e);var r=n("c216"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"521a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var r=i(n("a831"));function i(t){return t&&t.__esModule?t:{default:t}}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"auto",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rpx";return t=String(t),r.default.number(t)?"".concat(t).concat(e):t}},5254:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-loading",props:{mode:{type:String,default:"circle"},color:{type:String,default:"#c7c7c7"},size:{type:[String,Number],default:"34"},show:{type:Boolean,default:!0}},computed:{cricleStyle:function(){var t={};return t.width=this.size+"rpx",t.height=this.size+"rpx","circle"==this.mode&&(t.borderColor="#e4e4e4 #e4e4e4 #e4e4e4 ".concat(this.color?this.color:"#c7c7c7")),t}}};e.default=r},5349:function(t,e,n){"use strict";n.r(e);var r=n("bd70"),i=n("b3f7");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"17daedf7",null,!1,r["a"],a);e["default"]=u.exports},5385:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};e.default=r},5814:function(t,e){t.exports="/static/img/menu.png"},"5e8c":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=P(n("bd69")),i=P(n("3a56")),o=P(n("60cc")),a=P(n("a448")),s=P(n("e5e7")),u=P(n("8e0b")),c=P(n("3ac8")),l=P(n("06a4")),f=P(n("6036")),d=P(n("bee4")),p=P(n("41f2")),h=P(n("8ab6")),v=P(n("cd9c")),g=P(n("521a")),m=P(n("a831")),y=P(n("8263")),_=P(n("9481")),b=P(n("e074")),w=P(n("f720")),S=P(n("72a9")),k=n("1d6f"),x=P(n("a8d5")),O=P(n("b041")),T=P(n("df78")),$=P(n("5385"));function P(t){return t&&t.__esModule?t:{default:t}}function C(t){0}var E={queryParams:o.default,route:a.default,timeFormat:s.default,date:s.default,timeFrom:u.default,colorGradient:c.default.colorGradient,colorToRgba:c.default.colorToRgba,guid:l.default,color:f.default,sys:k.sys,os:k.os,type2icon:d.default,randomArray:p.default,wranning:C,get:i.default.get,post:i.default.post,put:i.default.put,delete:i.default.delete,hexToRgb:c.default.hexToRgb,rgbToHex:c.default.rgbToHex,test:m.default,random:y.default,deepClone:h.default,deepMerge:v.default,getParent:w.default,$parent:S.default,addUnit:g.default,trim:_.default,type:["primary","success","error","warning","info"],http:i.default,toast:b.default,config:T.default,zIndex:$.default,debounce:x.default,throttle:O.default};uni.$u=E;var I=function(t){t.mixin(r.default),t.prototype.openShare&&t.mixin(mpShare),t.filter("timeFormat",(function(t,e){return(0,s.default)(t,e)})),t.filter("date",(function(t,e){return(0,s.default)(t,e)})),t.filter("timeFrom",(function(t,e){return(0,u.default)(t,e)})),t.prototype.$u=E},j={install:I};e.default=j},"5f46":function(t,e,n){"use strict";n.r(e);var r=n("a0ee"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},6036:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={primary:"#2979ff",primaryDark:"#2b85e4",primaryDisabled:"#a0cfff",primaryLight:"#ecf5ff",bgColor:"#f3f4f6",info:"#909399",infoDark:"#82848a",infoDisabled:"#c8c9cc",infoLight:"#f4f4f5",warning:"#ff9900",warningDark:"#f29100",warningDisabled:"#fcbd71",warningLight:"#fdf6ec",error:"#fa3534",errorDark:"#dd6161",errorDisabled:"#fab6b6",errorLight:"#fef0f0",success:"#19be6b",successDark:"#18b566",successDisabled:"#71d5a1",successLight:"#dbf1e1",mainColor:"#303133",contentColor:"#606266",tipsColor:"#909399",lightColor:"#c0c4cc",borderColor:"#e4e7ed"},i=r;e.default=i},"60cc":function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"brackets",r=e?"?":"",i=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");var o=function(e){var r=t[e];if(["",void 0,null].indexOf(r)>=0)return"continue";if(r.constructor===Array)switch(n){case"indices":for(var o=0;o<r.length;o++)i.push(e+"["+o+"]="+r[o]);break;case"brackets":r.forEach((function(t){i.push(e+"[]="+t)}));break;case"repeat":r.forEach((function(t){i.push(e+"="+t)}));break;case"comma":var a="";r.forEach((function(t){a+=(a?",":"")+t})),i.push(e+"="+a);break;default:r.forEach((function(t){i.push(e+"[]="+t)}))}else i.push(e+"="+r)};for(var a in t)o(a);return i.length?r+i.join("&"):""}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},"61f2":function(t,e,n){"use strict";n.r(e);var r=n("c247"),i=n("df84");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},"630b":function(t,e,n){"use strict";n.r(e);var r=n("eafe"),i=n("7919");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"42b25232",null,!1,r["a"],a);e["default"]=u.exports},6345:function(t,e,n){"use strict";(function(t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(n("b3f8"));var i=o(n("d5f1"));o(n("cc19"));function o(t){return t&&t.__esModule?t:{default:t}}var a={name:"meaning",data:function(){return{}},onReady:function(){},methods:{toDetail:function(){var e=i.default.getUser(),n=this;uni.navigateTo({url:"/pages/detail/detail?word="+n.word+"&type="+n.type+"&interpretation="+n.interpretation+"&imgsrc="+n.imgsrc+"&videosrc="+n.videosrc}),t.callFunction({name:"getHistory",data:{tel:e.uid},success:function(o){r("log",o," at components/meaning.vue:39"),0==o.result.data.data.length&&t.callFunction({name:"addHistory",data:{tel:e.uid,fid:[]},success:function(t){r("log",t," at components/meaning.vue:50")},fail:function(t){r("log",t," at components/meaning.vue:53")}});var a=[];0!=o.result.data.data.length&&(a=o.result.data.data[0].fid);var s=i.default.getFidByWord(n.word);a.push(s),t.callFunction({name:"updateHistory",data:{tel:e.uid,fid:a},success:function(t){r("log",t," at components/meaning.vue:71")},fail:function(t){r("log",t," at components/meaning.vue:74")}})},fail:function(t){r("log",t," at components/meaning.vue:81")}})}},props:{type:{type:String,default:"adj"},interpretation:{type:String,default:"\u4e00\u624b\u98df\u6307\u6307\u773c\u90e8"},word:{type:String,default:"\u773c\u775b"},imgsrc:{type:String,default:"http://file.bookcodes.cn/pictures/eye.jpg"},videosrc:{type:String,default:"http://file.bookcodes.cn/pictures/eye.jpg"}}};e.default=a}).call(this,n("a9ff")["default"],n("0de9")["default"])},6400:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","menu-content"),attrs:{_i:0}},[n("image",{staticClass:t._$s(1,"sc","menu icon"),class:t._$s(1,"c",{menuOpen:t.openFlag}),attrs:{_i:1},on:{click:t.clickMenu}}),n("image",{staticClass:t._$s(2,"sc","bg-menu icon"),class:t._$s(2,"c",{"open open1":t.openFlag}),attrs:{_i:2},on:{click:t.clickCamera}}),n("image",{staticClass:t._$s(3,"sc","pic-menu icon"),class:t._$s(3,"c",{"open open2":t.openFlag}),attrs:{_i:3},on:{click:t.clickPicture}})])},o=[]},"6cd7":function(t,e,n){"use strict";n.r(e);var r=n("4432"),i=n("a7ef");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"a8f50df6",null,!1,r["a"],a);e["default"]=u.exports},"6fde":function(t,e,n){"use strict";n.r(e);var r=n("2725"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},7045:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={data:function(){return{show:!1,content:"\n\t\t\t\t1. \u4fee\u590dbadge\u7ec4\u4ef6\u7684size\u53c2\u6570\u65e0\u6548\u95ee\u9898<br>\n\t\t\t\t2. \u65b0\u589eModal\u6a21\u6001\u6846\u7ec4\u4ef6<br>\n\t\t\t\t3. \u65b0\u589e\u538b\u7a97\u5c4f\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u5728APP\u4e0a\u4ee5\u5f39\u7a97\u7684\u5f62\u5f0f\u906e\u76d6\u5bfc\u822a\u680f\u548c\u5e95\u90e8tabbar<br>\n\t\t\t\t4. \u4fee\u590d\u952e\u76d8\u7ec4\u4ef6\u5728\u5fae\u4fe1\u5c0f\u7a0b\u5e8f\u4e0a\u906e\u7f69\u65e0\u6548\u7684\u95ee\u9898\n\t\t\t"}},onReady:function(){this.show=!0},methods:{cancel:function(){this.closeModal()},confirm:function(){this.closeModal()},closeModal:function(){uni.navigateBack()}}};e.default=r},"70f1":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={hchMenu:n("f0cb").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:1}}),t._$s(2,"i",""!=t.mainwords)?n("view",[n("view",{staticClass:t._$s(3,"sc","translate-history"),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","text-history"),attrs:{_i:4}},[n("text")]),t._l(t._$s(6,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(6,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"7-"+o}})]}))],2),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:8}}),n("view",{staticClass:t._$s(9,"sc","translate-history"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","text-history"),attrs:{_i:10}},[n("text")]),t._l(t._$s(12,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(12,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"13-"+o}})]}))],2)],1):t._e(),n("hch-menu",{attrs:{_i:14},on:{returnItem:t.returnItem}})],1)},o=[]},"71b9":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-badge",props:{type:{type:String,default:"error"},size:{type:String,default:"default"},isDot:{type:Boolean,default:!1},count:{type:[Number,String]},overflowCount:{type:Number,default:99},showZero:{type:Boolean,default:!1},offset:{type:Array,default:function(){return[20,20]}},absolute:{type:Boolean,default:!0},fontSize:{type:[String,Number],default:"24"},color:{type:String,default:"#ffffff"},bgColor:{type:String,default:""},isCenter:{type:Boolean,default:!1}},computed:{boxStyle:function(){var t={};return this.isCenter?(t.top=0,t.right=0,t.transform="translateY(-50%) translateX(50%)"):(t.top=this.offset[0]+"rpx",t.right=this.offset[1]+"rpx",t.transform="translateY(0) translateX(0)"),"mini"==this.size&&(t.transform=t.transform+" scale(0.8)"),t},showText:function(){return this.isDot?"":this.count>this.overflowCount?"".concat(this.overflowCount,"+"):this.count},show:function(){return 0!=this.count||0!=this.showZero}}};e.default=r},"71e7":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","box"),attrs:{_i:1},on:{click:t.toDetail}},[n("view",{staticClass:t._$s(2,"sc","word"),attrs:{_i:2}},[n("text",[t._v(t._$s(3,"t0-0",t._s(t.type))+t._$s(3,"t0-1",t._s(t.word)))])]),n("view",{staticClass:t._$s(4,"sc","picture"),attrs:{_i:4}},[n("image",{attrs:{src:t._$s(5,"a-src",t.imgsrc),_i:5}})]),n("view",{staticClass:t._$s(6,"sc","interpretation"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.interpretation)))])])])},o=[]},"724a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("b3f8"));var r=i(n("d5f1"));i(n("cc19"));function i(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{openFlag:!1,filePath:"1.jpg"}},props:{},methods:{clickMenu:function(){this.openFlag=!this.openFlag},clickCamera:function(){var e=this,n={token:"",fileName:"1.jpg"};n.token=r.default.getToken(),uni.chooseImage({sourceType:["camera"],success:function(i){var o=i.tempFilePaths;n.fileName=o[0].substring(o[0].lastIndexOf("/")+1),t("log",n.fileName," at components/hch-menu/hch-menu.vue:44"),t("log","\u6587\u4ef6\u4e0a\u4f20"," at components/hch-menu/hch-menu.vue:46"),uni.uploadFile({url:"http://dactylology.frogking.cn/fileService/uploadFile",filePath:o[0],name:"file",formData:n,header:{"Content-Type":"multipart/form-data"},fail:function(e){t("log",e," at components/hch-menu/hch-menu.vue:54")},success:function(i){t("log",i," at components/hch-menu/hch-menu.vue:57"),"000"==i.data.code&&t("log","\u6587\u4ef6\u4e0a\u4f20\u6210\u529f"," at components/hch-menu/hch-menu.vue:59"),setTimeout((function(){r.default.toastSuccess("\u4e0a\u4f20\u6210\u529f")}),100),e.filePath=n.fileName,e.$emit("returnItem",e.filePath)}})}})},clickPicture:function(){var e=this,n={token:"",fileName:"1.jpg"};n.token=r.default.getToken(),uni.chooseImage({sourceType:["album"],success:function(i){var o=i.tempFilePaths;n.fileName=o[0].substring(o[0].lastIndexOf("/")+1),t("log",n.fileName," at components/hch-menu/hch-menu.vue:87"),t("log","\u6587\u4ef6\u4e0a\u4f20"," at components/hch-menu/hch-menu.vue:89"),uni.uploadFile({url:"http://dactylology.frogking.cn/fileService/uploadFile",filePath:o[0],name:"file",formData:n,header:{"Content-Type":"multipart/form-data"},fail:function(e){t("log",e," at components/hch-menu/hch-menu.vue:97")},success:function(i){t("log",i," at components/hch-menu/hch-menu.vue:100"),"000"==i.data.code&&t("log","\u6587\u4ef6\u4e0a\u4f20\u6210\u529f"," at components/hch-menu/hch-menu.vue:102"),setTimeout((function(){r.default.toastSuccess("\u4e0a\u4f20\u6210\u529f")}),100),e.filePath=n.fileName,e.$emit("returnItem",e.filePath)}})}})}}};e.default=o}).call(this,n("0de9")["default"])},"72a9":function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,e=this.$parent;while(e){if(!e.$options||e.$options.name===t)return e;e=e.$parent}return!1}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},7426:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-sticky",props:{offsetTop:{type:[Number,String],default:0},index:{type:[Number,String],default:""},enable:{type:Boolean,default:!0},h5NavHeight:{type:[Number,String],default:44},bgColor:{type:String,default:"#ffffff"},zIndex:{type:[Number,String],default:""}},data:function(){return{fixed:!1,height:"auto",stickyTop:0,elClass:this.$u.guid(),left:0,width:"auto"}},watch:{offsetTop:function(t){this.initObserver()},enable:function(t){0==t?(this.fixed=!1,this.disconnectObserver("contentObserver")):this.initObserver()}},computed:{uZIndex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.sticky}},mounted:function(){this.initObserver()},methods:{initObserver:function(){var t=this;this.enable&&(this.stickyTop=0!=this.offsetTop?uni.upx2px(this.offsetTop):0,this.disconnectObserver("contentObserver"),this.$uGetRect("."+this.elClass).then((function(e){t.height=e.height,t.left=e.left,t.width=e.width,t.$nextTick((function(){t.observeContent()}))})))},observeContent:function(){var t=this;this.disconnectObserver("contentObserver");var e=this.createIntersectionObserver({thresholds:[.95,.98,1]});e.relativeToViewport({top:-this.stickyTop}),e.observe("."+this.elClass,(function(e){t.enable&&t.setFixed(e.boundingClientRect.top)})),this.contentObserver=e},setFixed:function(t){var e=t<this.stickyTop;e?this.$emit("fixed",this.index):this.fixed&&this.$emit("unfixed",this.index),this.fixed=e},disconnectObserver:function(t){var e=this[t];e&&e.disconnect()}},beforeDestroy:function(){this.disconnectObserver("contentObserver")}};e.default=r},7485:function(t,e,n){"use strict";n.r(e);var r=n("3f2c"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"75de":function(t,e,n){"use strict";(function(t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=f(n("b3f8")),o=f(n("d5f1")),a=(f(n("cc19")),f(n("de48"))),s=f(n("61f2")),u=f(n("48d2")),c=f(n("7e08")),l=f(n("33ef"));function f(t){return t&&t.__esModule?t:{default:t}}var d={components:{meaning:a.default,split:s.default,photo:u.default,videoInspect:c.default,headernav:l.default},data:function(){return{list:[{name:"\u6587\u672c"},{name:"\u56fe\u7247"},{name:"\u89c6\u9891"}],current:0,filePath:"",videoPath:"",tranlateWord:"",relatedwordsid:[],mainwordsid:[],relatedwords:[],mainwords:[],focus:!1,words:[],fids:[],historyfids:[],historywords:[]}},methods:{toHistory:function(t){uni.navigateTo({url:"/pages/history/history"})},change:function(t){this.current=t},textareaInput:function(e){var n=this,r=o.default.getUser();t("log","user: "+r," at pages/index/index.vue:129"),void 0!=r&&void 0!=r.token||(t("log","user == undefined || user.token == undefined"," at pages/index/index.vue:131"),uni.showModal({title:"\u6e29\u99a8\u63d0\u793a",content:"\u5c1a\u672a\u767b\u9646\uff0c\u8bf7\u70b9\u51fb\u786e\u8ba4\u767b\u9646\u8d26\u53f7",success:function(t){t.confirm&&uni.navigateTo({url:"/pages/login/login"})}})),n.words.splice(0,n.words.length),n.relatedwordsid.splice(0,n.relatedwords.length),n.mainwordsid.splice(0,n.mainwords.length),n.relatedwords.splice(0,n.relatedwords.length),n.mainwords.splice(0,n.mainwords.length),this.tranlateWord=e.detail.value,t("log",n.tranlateWord," at pages/index/index.vue:153");var a={sentence:"",token:""};a.sentence=this.tranlateWord,a.token=o.default.getToken(),o.default.request(i.default.api.transfor2,a,"POST").then((function(e){for(var r=0;r<e.item.length;r++){var a=[];"-1"!=e.item[r].result&&(a=e.item[r].result.split(","),t("log",a," at pages/index/index.vue:168")),0!=a.length&&n.mainwordsid.push(a[0]);for(var s=1;s<a.length;s++)a.length>1&&n.relatedwordsid.push(a[s]);for(var u=function(e){var s={token:"",fid:""};s.token=o.default.getToken(),s.fid=a[r],"-1"!=s.fid&&o.default.request(i.default.api.resource3,s,"POST").then((function(e){t("log",e," at pages/index/index.vue:189"),"301"!=e.code&&(t("log",e," at pages/index/index.vue:191"),n.mainwords.push(e),o.default.setFidByWord(e.word,s.fid))})).catch((function(t){n.loading=!1,o.default.toastError(t.data.message||t.errMsg)}))},c=0;c<n.mainwordsid.length;c++)u(c);for(var l=0;l<n.relatedwordsid.length;l++){var f={token:"",fid:""};f.token=o.default.getToken(),f.fid=a[r],"-1"!=f.fid&&o.default.request(i.default.api.resource3,f,"POST").then((function(t){"301"!=t.code&&n.relatedwords.push(t)})).catch((function(t){n.loading=!1,o.default.toastError(t.data.message||t.errMsg)}))}}})).catch((function(t){n.loading=!1,o.default.toastError(t.data.message||t.errMsg)}))},textFocus:function(e){this.focus=!0;var n=o.default.getUser();t("log","user: "+n," at pages/index/index.vue:234"),void 0!=n&&void 0!=n.token||(t("log","user == undefined || user.token == undefined"," at pages/index/index.vue:236"),uni.showModal({title:"\u6e29\u99a8\u63d0\u793a",content:"\u5c1a\u672a\u767b\u9646\uff0c\u8bf7\u70b9\u51fb\u786e\u8ba4\u767b\u9646\u8d26\u53f7",success:function(t){t.confirm&&uni.navigateTo({url:"/pages/login/login"})}}))},textBlur:function(t){this.focus=!1}},onShow:function(){var e=this,n=o.default.getUser(),a=[],s=[];void 0==n||void 0==n.token?n={uid:"0",nickname:"\u8bf7\u70b9\u6211\u767b\u5f55",avatar:"../static/images/logo.jpg",intro:"",token:""}:r.callFunction({name:"getHistory",data:{tel:n.uid},success:function(n){if(t("log",n," at pages/index/index.vue:299"),0!=n.result.data.data.length){t("log",n.result.data.data[0].fid," at pages/index/index.vue:301"),a=n.result.data.data[0].fid;for(var r=0;r<a.length;r++){var u={token:"",fid:""};u.token=o.default.getToken(),u.fid=a[r],"-1"!=u.fid&&o.default.request(i.default.api.resource3,u,"POST").then((function(e){t("log",e," at pages/index/index.vue:314"),"301"!=e.code&&(s.push(e),t("log",s," at pages/index/index.vue:317"))})).catch((function(t){e.loading=!1,o.default.toastError(t.data.message||t.errMsg)}))}}},fail:function(e){t("log",e," at pages/index/index.vue:329")}}),e.historywords=s,e.historyfids=a}};e.default=d}).call(this,n("0de9")["default"],n("a9ff")["default"])},"76ac":function(t,e,n){"use strict";n.r(e);var r=n("ba60"),i=n("7485");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"41f5d90e",null,!1,r["a"],a);e["default"]=u.exports},"77f3":function(t,e,n){"use strict";n.r(e);var r=n("e51b"),i=n("7ff4");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"2c475f74",null,!1,r["a"],a);e["default"]=u.exports},7919:function(t,e,n){"use strict";n.r(e);var r=n("7045"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"7acb":function(t,e,n){"use strict";n.r(e);var r=n("38f3"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"7b1f":function(t,e,n){"use strict";n.r(e);var r=n("ceab"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"7c31":function(t,e,n){"use strict";n.r(e);var r=n("94ad"),i=n("8de5");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"631ca2f1",null,!1,r["a"],a);e["default"]=u.exports},"7e08":function(t,e,n){"use strict";n.r(e);var r=n("da1a"),i=n("abbc");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"16ddf817",null,!1,r["a"],a);e["default"]=u.exports},"7ff4":function(t,e,n){"use strict";n.r(e);var r=n("3a91"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},8167:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("b3f8")),i=o(n("d5f1"));o(n("cc19"));function o(t){return t&&t.__esModule?t:{default:t}}var a={components:{},data:function(){return{loading:!1,about:r.default.info.about,redirect:encodeURIComponent("/pages/index/index"),loadingWechat:!1,waitingtime:"\u53d1\u9001\u9a8c\u8bc1\u7801",telNumber:"",disabledSendCode:!1}},onLoad:function(e){r.default.debug&&t("log","onLoad",e," at pages/login/login.vue:49"),e.redirect&&(this.redirect=e.redirect)},onShow:function(){var t=i.default.getToken();if(t){var e=decodeURIComponent(this.redirect);e.indexOf("?")>-1?uni.redirectTo({url:e}):uni.switchTab({url:e})}},methods:{toReg:function(){uni.navigateTo({url:"/pages/reg/reg?redirect="+this.redirect})},findPassword:function(t){uni.showModal({title:"\u6e29\u99a8\u63d0\u793a",content:"\u76ee\u524d\u6682\u4e0d\u652f\u6301\u627e\u56de\u5bc6\u7801\u7684\u529f\u80fd"})},formSubmit:function(e){var n=this;if(""!=e.detail.value.password&&""!=e.detail.value.username){n.loading=!0;var o={id:e.detail.value.username,password:e.detail.value.password,type:"2"};i.default.request(r.default.api.login,o,"POST").then((function(e){if(t("log",e," at pages/login/login.vue:93"),"000"==e.code){var r={uid:n.telNumber,nickname:"Siller",avatar:"http://file.bookcodes.cn/pictures/logo.jpg",intro:"\u5fc3\u7075\u4e5f\u624b\u5de7",token:""};if(r.token=e.token,t("log","token: "+r.token," at pages/login/login.vue:103"),void 0==r||""==r.token)return i.default.toastError("\u767b\u5f55\u5931\u8d25\uff1a\u672a\u77e5\u9519\u8bef"),void(n.loading=!1);i.default.setUser(r),i.default.toastSuccess("\u767b\u5f55\u6210\u529f"),setTimeout((function(){uni.redirectTo({url:"/pages/index/index"})}),1500),n.loading=!1}})).catch((function(e){r.default.debug&&t("log",e," at pages/login/login.vue:121"),n.loading=!1,i.default.toastError(e.data.message||e.errMsg)}))}else i.default.toastError("\u624b\u673a\u53f7\u6216\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a")},getTelNumber:function(t){var e=this;e.telNumber=t.detail.value},sendCode:function(e){t("log","\u53d1\u9001\u9a8c\u8bc1\u7801"," at pages/login/login.vue:131"),t("log",e," at pages/login/login.vue:132");var n=this;n.disabledSendCode=!0;var o=60;n.waitingtime=o+"\u79d2\u91cd\u65b0\u53d1\u9001";var a=null;a=setInterval((function(){o>0&&o<=60?(o--,n.waitingtime=o+"\u79d2\u91cd\u65b0\u53d1\u9001"):(n.waitingtime="\u53d1\u9001\u9a8c\u8bc1\u7801",o=60,n.disabledSendCode=!1,clearInterval(a))}),1e3),t("log",n.telNumber," at pages/login/login.vue:151");var s={phoneNumber:n.telNumber};i.default.request(r.default.api.sendMessage,s,"POST").then((function(e){t("log","config.api.sendMessage"," at pages/login/login.vue:156"),t("log",e," at pages/login/login.vue:157")})).catch((function(t){i.default.toastError(t.data.message||t.errMsg)}))}}};e.default=a}).call(this,n("0de9")["default"])},8263:function(t,e,n){"use strict";function r(t,e){if(t>=0&&e>0&&e>=t){var n=e-t+1;return Math.floor(Math.random()*n+t)}return 0}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},"834f":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.show)?n("view",{staticClass:t._$s(0,"sc","u-badge"),class:t._$s(0,"c",[t.isDot?"u-badge-dot":"","mini"==t.size?"u-badge-mini":"",t.type?"u-badge--bg--"+t.type:""]),style:t._$s(0,"s",[{top:t.offset[0]+"rpx",right:t.offset[1]+"rpx",fontSize:t.fontSize+"rpx",position:t.absolute?"absolute":"static",color:t.color,backgroundColor:t.bgColor},t.boxStyle]),attrs:{_i:0}},[t._v(t._$s(0,"t0-0",t._s(t.showText)))]):t._e()},o=[]},"891c":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("de48")),i=u(n("61f2")),o=u(n("4d0c")),a=u(n("b3f8")),s=u(n("d5f1"));function u(t){return t&&t.__esModule?t:{default:t}}var c={components:{meaning:r.default,split:i.default,VideoMune:o.default},data:function(){return{imgPath:"",filePath:"",mainwords:[]}},props:{},watch:{filePath:function(e,n){var r=this;t("log","filePath = "+e+" , oldValue = "+n," at components/video.vue:45");var i={token:""};i.token=s.default.getToken(),t("log",i," at components/video.vue:51"),s.default.request(a.default.api.transfor1,i,"POST").then((function(e){var n=e.item;t("log",n.length," at components/video.vue:55");for(var i=0;i<n.length;i++)if(""==n[i].result&&(n[i].result="1"),""!=n[i].result){var o={token:"",fid:""};o.token=s.default.getToken(),o.fid=n[i].result,"-1"!=o.fid&&s.default.request(a.default.api.resource3,o,"POST").then((function(e){t("log",e," at components/video.vue:71"),"301"!=e.code&&(t("log",e," at components/video.vue:73"),r.mainwords.push(e))})).catch((function(t){r.loading=!1,s.default.toastError(t.data.message||t.errMsg)}))}})).catch((function(t){r.loading=!1,s.default.toastError(t.data.message||t.errMsg)}))}},methods:{returnItem:function(e){t("log",e," at components/video.vue:94"),this.filePath=e}},onLoad:function(e){this.imgPath=e.filePath,t("log",e.filePath," at components/video.vue:100")},onShow:function(t){}};e.default=c}).call(this,n("0de9")["default"])},"8ab6":function(t,e,n){"use strict";function r(t){return"[object Array]"===Object.prototype.toString.call(t)}function i(t){if([null,void 0,NaN,!1].includes(t))return t;if("object"!==typeof t&&"function"!==typeof t)return t;var e=r(t)?[]:{};for(var n in t)t.hasOwnProperty(n)&&(e[n]="object"===typeof t[n]?i(t[n]):t[n]);return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i;e.default=o},"8bbf":function(t,e){t.exports=Vue},"8de5":function(t,e,n){"use strict";n.r(e);var r=n("5254"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},"8e0b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("e5e7"));function i(t){return t&&t.__esModule?t:{default:t}}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),10==t.toString().length&&(t*=1e3);var n=+new Date(Number(t)),i=(Number(new Date)-n)/1e3,o="";switch(!0){case i<300:o="\u521a\u521a";break;case i>=300&&i<3600:o=parseInt(i/60)+"\u5206\u949f\u524d";break;case i>=3600&&i<86400:o=parseInt(i/3600)+"\u5c0f\u65f6\u524d";break;case i>=86400&&i<2592e3:o=parseInt(i/86400)+"\u5929\u524d";break;default:o=!1===e?i>=2592e3&&i<31536e3?parseInt(i/2592e3)+"\u4e2a\u6708\u524d":parseInt(i/31536e3)+"\u5e74\u524d":(0,r.default)(n,e)}return o}var a=o;e.default=a},9481:function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";return"both"==e?t.replace(/^\s+|\s+$/g,""):"left"==e?t.replace(/^\s*/,""):"right"==e?t.replace(/(\s*$)/g,""):"all"==e?t.replace(/\s+/g,""):t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},"94ad":function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.show)?n("view",{staticClass:t._$s(0,"sc","u-loading"),class:t._$s(0,"c","circle"==t.mode?"u-loading-circle":"u-loading-flower"),style:t._$s(0,"s",[t.cricleStyle]),attrs:{_i:0}}):t._e()},o=[]},"954a":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;i(n("b3f8"));var r=i(n("d5f1"));i(n("cc19"));function i(t){return t&&t.__esModule?t:{default:t}}var o={data:function(){return{openFlag:!1,filePath:"1.jpg"}},props:{},methods:{clickMenu:function(){this.openFlag=!this.openFlag},clickCamera:function(){},clickPicture:function(){var e=this,n={token:"",fileName:""};n.token=r.default.getToken(),uni.chooseVideo({sourceType:["album"],success:function(i){var o=i.tempFilePath;n.fileName=o.substring(o.lastIndexOf("/")+1),t("log",n.fileName," at components/hch-menu/video-menu.vue:47"),t("log","\u6587\u4ef6\u4e0a\u4f20"," at components/hch-menu/video-menu.vue:49"),uni.uploadFile({url:"http://dactylology.frogking.cn/fileService/uploadFile",filePath:o,name:"file",formData:n,header:{"Content-Type":"multipart/form-data"},fail:function(e){t("log",e," at components/hch-menu/video-menu.vue:57")},success:function(i){t("log",i," at components/hch-menu/video-menu.vue:60"),"000"==i.data.code&&t("log","\u6587\u4ef6\u4e0a\u4f20\u6210\u529f"," at components/hch-menu/video-menu.vue:62"),setTimeout((function(){r.default.toastSuccess("\u4e0a\u4f20\u6210\u529f")}),100),e.filePath=n.fileName,e.$emit("returnItem",e.filePath)}})}})}}};e.default=o}).call(this,n("0de9")["default"])},"96cf":function(t,e){!function(e){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag",c="object"===typeof t,l=e.regeneratorRuntime;if(l)c&&(t.exports=l);else{l=e.regeneratorRuntime=c?t.exports:{},l.wrap=b;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},g={};g[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(j([])));y&&y!==r&&i.call(y,a)&&(g=y);var _=x.prototype=S.prototype=Object.create(g);k.prototype=_.constructor=x,x.constructor=k,x[u]=k.displayName="GeneratorFunction",l.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===k||"GeneratorFunction"===(e.displayName||e.name))},l.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,x):(t.__proto__=x,u in t||(t[u]="GeneratorFunction")),t.prototype=Object.create(_),t},l.awrap=function(t){return{__await:t}},O(T.prototype),T.prototype[s]=function(){return this},l.AsyncIterator=T,l.async=function(t,e,n,r){var i=new T(b(t,e,n,r));return l.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},O(_),_[u]="Generator",_[a]=function(){return this},_.toString=function(){return"[object Generator]"},l.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){while(e.length){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(E),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0],e=t.completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,i){return s.type="throw",s.arg=t,e.next=r,i&&(e.method="next",e.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function b(t,e,n,r){var i=e&&e.prototype instanceof S?e:S,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=$(t,n,a),o}function w(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(r){return{type:"throw",arg:r}}}function S(){}function k(){}function x(){}function O(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function T(t){function e(n,r,o,a){var s=w(t[n],t,r);if("throw"!==s.type){var u=s.arg,c=u.value;return c&&"object"===typeof c&&i.call(c,"__await")?Promise.resolve(c.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(c).then((function(t){u.value=t,o(u)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var n;function r(t,r){function i(){return new Promise((function(n,i){e(t,r,n,i)}))}return n=n?n.then(i,i):i()}this._invoke=r}function $(t,e,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return A()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=w(t,e,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}function P(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,P(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=w(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,v;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function j(t){if(t){var e=t[a];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){while(++r<t.length)if(i.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:n,done:!0}}}(function(){return this||"object"===typeof self&&self}()||Function("return this")())},9714:function(t,e,n){"use strict";n.r(e);var r=n("6345"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},a0ee:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={data:function(){return{src:""}},methods:{takePhoto:function(){var t=this,e=uni.createCameraContext();e.takePhoto({quality:"high",success:function(e){t.src=e.tempImagePath}})},error:function(e){t("log",e.detail," at App.vue:27")}}};e.default=n}).call(this,n("0de9")["default"])},a1ae:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uNavbar:n("76ac").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-navbar",{attrs:{"back-text":"\u8fd4\u56de",title:"\u6ce8\u518c",_i:1}}),n("view",{staticClass:t._$s(2,"sc","base-padding mgt-30"),attrs:{_i:2}},[n("form",{attrs:{_i:3},on:{submit:t.submit}},[n("view",{staticClass:t._$s(4,"sc","form-body"),attrs:{_i:4}},[n("view",{staticClass:t._$s(5,"sc","row font-lv2 overHidden"),attrs:{_i:5}},[n("view",{staticClass:t._$s(6,"sc","col-3"),attrs:{_i:6}}),n("view",{staticClass:t._$s(7,"sc","col-5"),attrs:{_i:7}},[n("input",{attrs:{_i:8},on:{input:t.getTelNumber}})]),n("button",{staticClass:t._$s(9,"sc","col-4 senCode font-lv2"),attrs:{disabled:t._$s(9,"a-disabled",t.disabledSendCode),_i:9},on:{click:t.sendCode}},[t._v(t._$s(9,"t0-0",t._s(t.waitingtime)))])]),n("view",{staticClass:t._$s(10,"sc","row font-lv2"),attrs:{_i:10}},[n("view",{staticClass:t._$s(11,"sc","col-3"),attrs:{_i:11}}),n("view",{staticClass:t._$s(12,"sc","col-9"),attrs:{_i:12}},[n("input",{attrs:{_i:13}})])]),n("view",{staticClass:t._$s(14,"sc","row font-lv2"),attrs:{_i:14}},[n("view",{staticClass:t._$s(15,"sc","col-3"),attrs:{_i:15}}),n("view",{staticClass:t._$s(16,"sc","col-9"),attrs:{_i:16}},[n("input",{attrs:{_i:17}})])]),n("view",{staticClass:t._$s(18,"sc","row font-lv2"),attrs:{_i:18}},[n("view",{staticClass:t._$s(19,"sc","col-3"),attrs:{_i:19}}),n("view",{staticClass:t._$s(20,"sc","col-9"),attrs:{_i:20}},[n("input",{attrs:{_i:21}})])])]),n("view",{staticClass:t._$s(22,"sc","row text-center"),attrs:{_i:22}},[n("view",{staticClass:t._$s(23,"sc","color-grey mgb-30 font-lv3"),attrs:{_i:23}})]),n("view",{staticClass:t._$s(24,"sc","row"),attrs:{_i:24}},[n("button",{staticClass:t._$s(25,"sc","btn-submit btn-block"),attrs:{loading:t._$s(25,"a-loading",t.loading),_i:25}})])])])],1)},o=[]},a34a:function(t,e,n){t.exports=n("bbdd")},a448:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("a34a"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(c){return void n(c)}s.done?e(u):Promise.resolve(u).then(r,i)}function a(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var a=t.apply(e,n);function s(t){o(a,r,i,s,u,"next",t)}function u(t){o(a,r,i,s,u,"throw",t)}s(void 0)}))}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}var l=function(){function t(){s(this,t),this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}return c(t,[{key:"addRootPath",value:function(t){return"/"===t[0]?t:"/".concat(t)}},{key:"mixinParam",value:function(t,e){t=t&&this.addRootPath(t);var n="";return/.*\/.*\?.*=.*/.test(t)?(n=uni.$u.queryParams(e,!1),t+"&"+n):(n=uni.$u.queryParams(e),t+n)}},{key:"route",value:function(){var t=a(r.default.mark((function t(){var e,n,i,o,a=arguments;return r.default.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:{},n=a.length>1&&void 0!==a[1]?a[1]:{},i={},"string"===typeof e?(i.url=this.mixinParam(e,n),i.type="navigateTo"):(i=uni.$u.deepClone(e,this.config),i.url=this.mixinParam(e.url,e.params)),n.intercept&&(this.config.intercept=n.intercept),i.params=n,i=uni.$u.deepMerge(this.config,i),"function"!==typeof uni.$u.routeIntercept){t.next=14;break}return t.next=10,new Promise((function(t,e){uni.$u.routeIntercept(i,t)}));case 10:o=t.sent,o&&this.openPage(i),t.next=15;break;case 14:this.openPage(i);case 15:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},{key:"openPage",value:function(t){var e=t.url,n=(t.type,t.delta),r=t.animationType,i=t.animationDuration;"navigateTo"!=t.type&&"to"!=t.type||uni.navigateTo({url:e,animationType:r,animationDuration:i}),"redirectTo"!=t.type&&"redirect"!=t.type||uni.redirectTo({url:e}),"switchTab"!=t.type&&"tab"!=t.type||uni.switchTab({url:e}),"reLaunch"!=t.type&&"launch"!=t.type||uni.reLaunch({url:e}),"navigateBack"!=t.type&&"back"!=t.type||uni.navigateBack({delta:n})}}]),t}(),f=(new l).route;e.default=f},a620:function(t,e,n){"use strict";n.r(e);var r=n("a1ae"),i=n("4ecd");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"2581cd69",null,!1,r["a"],a);e["default"]=u.exports},a7ef:function(t,e,n){"use strict";n.r(e);var r=n("08b7"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},a831:function(t,e,n){"use strict";function r(t){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(t)}function i(t){return/^1[23456789]\d{9}$/.test(t)}function o(t){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(t)}function a(t){return!/Invalid|NaN/.test(new Date(t).toString())}function s(t){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)}function u(t){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)}function c(t){return/^\d+$/.test(t)}function l(t){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(t)}function f(t){var e=/^[\u4eac\u6d25\u6caa\u6e1d\u5180\u8c6b\u4e91\u8fbd\u9ed1\u6e58\u7696\u9c81\u65b0\u82cf\u6d59\u8d63\u9102\u6842\u7518\u664b\u8499\u9655\u5409\u95fd\u8d35\u7ca4\u9752\u85cf\u5ddd\u5b81\u743c\u4f7f\u9886A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[\u4eac\u6d25\u6caa\u6e1d\u5180\u8c6b\u4e91\u8fbd\u9ed1\u6e58\u7696\u9c81\u65b0\u82cf\u6d59\u8d63\u9102\u6842\u7518\u664b\u8499\u9655\u5409\u95fd\u8d35\u7ca4\u9752\u85cf\u5ddd\u5b81\u743c\u4f7f\u9886A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9\u6302\u5b66\u8b66\u6e2f\u6fb3]{1}$/;return 7===t.length?n.test(t):8===t.length&&e.test(t)}function d(t){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(t)}function p(t){var e=/^[\u4e00-\u9fa5]+$/gi;return e.test(t)}function h(t){return/^[a-zA-Z]*$/.test(t)}function v(t){var e=/^[0-9a-zA-Z]*$/g;return e.test(t)}function g(t,e){return t.indexOf(e)>=0}function m(t,e){return t>=e[0]&&t<=e[1]}function y(t,e){return t.length>=e[0]&&t.length<=e[1]}function _(t){var e=/^\d{3,4}-\d{7,8}(-\d{3,4})?$/;return e.test(t)}function b(t){switch(typeof t){case"undefined":return!0;case"string":if(0==t.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!t)return!0;break;case"number":if(0===t||isNaN(t))return!0;break;case"object":if(null===t||0===t.length)return!0;for(var e in t)return!1;return!0}return!1}function w(t){if("string"==typeof t)try{var e=JSON.parse(t);return!("object"!=typeof e||!e)}catch(n){return!1}return!1}function S(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"[object Object]"===Object.prototype.toString.call(t)}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6;return new RegExp("^\\d{".concat(e,"}$")).test(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var O={email:r,mobile:i,url:o,date:a,dateISO:s,number:u,digits:c,idCard:l,carNo:f,amount:d,chinese:p,letter:h,enOrNum:v,contains:g,range:m,rangeLength:y,empty:b,isEmpty:b,jsonString:w,landline:_,object:k,array:S,code:x};e.default=O},a8d5:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=null;function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(null!==r&&clearTimeout(r),n){var i=!r;r=setTimeout((function(){r=null}),e),i&&"function"===typeof t&&t()}else r=setTimeout((function(){"function"===typeof t&&t()}),e)}var o=i;e.default=o},a975:function(t,e){t.exports="/static/images/about-us.png"},a9ef:function(t,e,n){"use strict";(function(t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=f(n("b3f8")),o=f(n("d5f1")),a=(f(n("cc19")),f(n("de48"))),s=f(n("61f2")),u=f(n("48d2")),c=f(n("7e08")),l=f(n("33ef"));function f(t){return t&&t.__esModule?t:{default:t}}var d={components:{meaning:a.default,split:s.default,photo:u.default,videoInspect:c.default,headernav:l.default},data:function(){return{historywords:[]}},onShow:function(){var e=this,n=o.default.getUser(),a=[],s=[];void 0==n||void 0==n.token?n={uid:"0",nickname:"\u8bf7\u70b9\u6211\u767b\u5f55",avatar:"../static/images/logo.jpg",intro:"",token:""}:t.callFunction({name:"getHistory",data:{tel:n.uid},success:function(t){if(r("log",t," at pages/history/history.vue:55"),0!=t.result.data.data.length){r("log",t.result.data.data[0].fid," at pages/history/history.vue:57"),a=t.result.data.data[0].fid;for(var n=0;n<a.length;n++){var u={token:"",fid:""};u.token=o.default.getToken(),u.fid=a[n],"-1"!=u.fid&&o.default.request(i.default.api.resource3,u,"POST").then((function(t){r("log",t," at pages/history/history.vue:70"),"301"!=t.code&&(s.push(t),r("log",s," at pages/history/history.vue:73"))})).catch((function(t){e.loading=!1,o.default.toastError(t.data.message||t.errMsg)}))}}},fail:function(t){r("log",t," at pages/history/history.vue:85")}}),e.historywords=s,e.historyfids=a}};e.default=d}).call(this,n("a9ff")["default"],n("0de9")["default"])},a9ff:function(t,e,n){"use strict";(function(t,r){function i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function u(t){var e=p();return function(){var n,r=g(t);if(e){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==typeof e&&"function"!==typeof e?l(t):e}function l(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function f(t){var e="function"===typeof Map?new Map:void 0;return f=function(t){if(null===t||!h(t))return t;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,g(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),v(n,t)},f(t)}function d(t,e,n){return d=p()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var i=Function.bind.apply(t,r),o=new i;return n&&v(o,n.prototype),o},d.apply(null,arguments)}function p(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(m){return!1}}function h(t){return-1!==Function.toString.call(t).indexOf("[native code]")}function v(t,e){return v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},v(t,e)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var m="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof t?t:"undefined"!=typeof self?self:{};function y(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _(t,e,n){return t(n={path:e,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&n.path)}},n.exports),n.exports}var b=_((function(t,e){var n;t.exports=(n=n||function(t,e){var n=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(t){var e=n(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=null!=e?e:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var e=this.words,n=t.words,r=this.sigBytes,i=t.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;e[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)e[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(e){for(var n,r=[],i=function(e){e=e;var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(e=18e3*(65535&e)+(e>>16)&r)&r;return i/=4294967296,(i+=.5)*(t.random()>.5?1:-1)}},o=0;o<e;o+=4){var s=i(4294967296*(n||t.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,e)}}),s=r.enc={},u=s.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r+=2)n[r>>>3]|=parseInt(t.substr(r,2),16)<<24-r%8*4;return new a.init(n,e/2)}},c=s.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,r=[],i=0;i<n;i++){var o=e[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(t){for(var e=t.length,n=[],r=0;r<e;r++)n[r>>>2]|=(255&t.charCodeAt(r))<<24-r%4*8;return new a.init(n,e)}},l=s.Utf8={stringify:function(t){try{return decodeURIComponent(escape(c.stringify(t)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(t){return c.parse(unescape(encodeURIComponent(t)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=l.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*o,c=t.min(4*u,i);if(u){for(var l=0;l<u;l+=o)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=c}return new a.init(f,c)},clone:function(){var t=o.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),d=(i.Hasher=f.extend({cfg:o.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new d.HMAC.init(t,n).finalize(e)}}}),r.algo={});return r}(Math),n)})),w=(_((function(t,e){var n;t.exports=(n=b,function(t){var e=n,r=e.lib,i=r.WordArray,o=r.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var r=e+n,i=t[r];t[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=t[e+0],u=t[e+1],p=t[e+2],h=t[e+3],v=t[e+4],g=t[e+5],m=t[e+6],y=t[e+7],_=t[e+8],b=t[e+9],w=t[e+10],S=t[e+11],k=t[e+12],x=t[e+13],O=t[e+14],T=t[e+15],$=o[0],P=o[1],C=o[2],E=o[3];$=c($,P,C,E,a,7,s[0]),E=c(E,$,P,C,u,12,s[1]),C=c(C,E,$,P,p,17,s[2]),P=c(P,C,E,$,h,22,s[3]),$=c($,P,C,E,v,7,s[4]),E=c(E,$,P,C,g,12,s[5]),C=c(C,E,$,P,m,17,s[6]),P=c(P,C,E,$,y,22,s[7]),$=c($,P,C,E,_,7,s[8]),E=c(E,$,P,C,b,12,s[9]),C=c(C,E,$,P,w,17,s[10]),P=c(P,C,E,$,S,22,s[11]),$=c($,P,C,E,k,7,s[12]),E=c(E,$,P,C,x,12,s[13]),C=c(C,E,$,P,O,17,s[14]),$=l($,P=c(P,C,E,$,T,22,s[15]),C,E,u,5,s[16]),E=l(E,$,P,C,m,9,s[17]),C=l(C,E,$,P,S,14,s[18]),P=l(P,C,E,$,a,20,s[19]),$=l($,P,C,E,g,5,s[20]),E=l(E,$,P,C,w,9,s[21]),C=l(C,E,$,P,T,14,s[22]),P=l(P,C,E,$,v,20,s[23]),$=l($,P,C,E,b,5,s[24]),E=l(E,$,P,C,O,9,s[25]),C=l(C,E,$,P,h,14,s[26]),P=l(P,C,E,$,_,20,s[27]),$=l($,P,C,E,x,5,s[28]),E=l(E,$,P,C,p,9,s[29]),C=l(C,E,$,P,y,14,s[30]),$=f($,P=l(P,C,E,$,k,20,s[31]),C,E,g,4,s[32]),E=f(E,$,P,C,_,11,s[33]),C=f(C,E,$,P,S,16,s[34]),P=f(P,C,E,$,O,23,s[35]),$=f($,P,C,E,u,4,s[36]),E=f(E,$,P,C,v,11,s[37]),C=f(C,E,$,P,y,16,s[38]),P=f(P,C,E,$,w,23,s[39]),$=f($,P,C,E,x,4,s[40]),E=f(E,$,P,C,a,11,s[41]),C=f(C,E,$,P,h,16,s[42]),P=f(P,C,E,$,m,23,s[43]),$=f($,P,C,E,b,4,s[44]),E=f(E,$,P,C,k,11,s[45]),C=f(C,E,$,P,T,16,s[46]),$=d($,P=f(P,C,E,$,p,23,s[47]),C,E,a,6,s[48]),E=d(E,$,P,C,y,10,s[49]),C=d(C,E,$,P,O,15,s[50]),P=d(P,C,E,$,g,21,s[51]),$=d($,P,C,E,k,6,s[52]),E=d(E,$,P,C,h,10,s[53]),C=d(C,E,$,P,w,15,s[54]),P=d(P,C,E,$,u,21,s[55]),$=d($,P,C,E,_,6,s[56]),E=d(E,$,P,C,T,10,s[57]),C=d(C,E,$,P,m,15,s[58]),P=d(P,C,E,$,x,21,s[59]),$=d($,P,C,E,v,6,s[60]),E=d(E,$,P,C,S,10,s[61]),C=d(C,E,$,P,p,15,s[62]),P=d(P,C,E,$,b,21,s[63]),o[0]=o[0]+$|0,o[1]=o[1]+P|0,o[2]=o[2]+C|0,o[3]=o[3]+E|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function c(t,e,n,r,i,o,a){var s=t+(e&n|~e&r)+i+a;return(s<<o|s>>>32-o)+e}function l(t,e,n,r,i,o,a){var s=t+(e&r|n&~r)+i+a;return(s<<o|s>>>32-o)+e}function f(t,e,n,r,i,o,a){var s=t+(e^n^r)+i+a;return(s<<o|s>>>32-o)+e}function d(t,e,n,r,i,o,a){var s=t+(n^(e|~r))+i+a;return(s<<o|s>>>32-o)+e}e.MD5=o._createHelper(u),e.HmacMD5=o._createHmacHelper(u)}(Math),n.MD5)})),_((function(t,e){var n,r,i;t.exports=(r=(n=b).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=i.parse(e));var n=t.blockSize,r=4*n;e.sigBytes>r&&(e=t.finalize(e)),e.clamp();for(var o=this._oKey=e.clone(),a=this._iKey=e.clone(),s=o.words,u=a.words,c=0;c<n;c++)s[c]^=1549556828,u[c]^=909522486;o.sigBytes=a.sigBytes=r,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})))})),_((function(t,e){t.exports=b.HmacMD5})));function S(t){return function(e){if(!((e=e||{}).success||e.fail||e.complete))return t.call(this,e);t.call(this,e).then((function(t){e.success&&e.success(t),e.complete&&e.complete(t)})).catch((function(t){e.fail&&e.fail(t),e.complete&&e.complete(t)}))}}var k,x,O,T=function(t){s(n,t);var e=u(n);function n(t){var r;return a(this,n),r=e.call(this,t.message),r.errMsg=t.message||"",Object.defineProperties(l(r),{code:{get:function(){return t.code}},requestId:{get:function(){return t.requestId}},message:{get:function(){return this.errMsg},set:function(t){this.errMsg=t}}}),r}return n}(f(Error));try{k=n("cb28").default||n("cb28")}catch(m){k={appid:""}}function $(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e="";e.length<t;)e+=Math.random().toString(32).substring(2);return e.substring(0,t)}function P(){if("n"===C()){try{x=plus.runtime.getDCloudId()}catch(m){x=""}return x}return x||(x=$(32),uni.setStorage({key:"__DC_CLOUD_UUID",data:x})),x}function C(){return{"app-plus":"n",h5:"h5","mp-weixin":"wx","mp-alipay":"ali","mp-baidu":"bd","mp-toutiao":"tt","mp-qq":"qq","quickapp-native":"qn"}["app-plus"]}var E,I,j={sign:function(t,e){var n="";return Object.keys(t).sort().forEach((function(e){t[e]&&(n=n+"&"+e+"="+t[e])})),n=n.slice(1),w(n,e).toString()},wrappedRequest:function(t,e){return new Promise((function(n,r){e(Object.assign(t,{complete:function(t){t||(t={});var e=t.data&&t.data.header&&t.data.header["x-serverless-request-id"]||t.header&&t.header["request-id"];if(!t.statusCode||t.statusCode>=400)return r(new T({code:"SYS_ERR",message:t.errMsg||"request:fail",requestId:e}));var i=t.data;if(i.error)return r(new T({code:i.error.code,message:i.error.message,requestId:e}));i.result=i.data,i.requestId=e,delete i.data,n(i)}}))}))}},A={request:function(t){return uni.request(t)},uploadFile:function(t){return uni.uploadFile(t)},setStorageSync:function(t,e){return uni.setStorageSync(t,e)},getStorageSync:function(t){return uni.getStorageSync(t)},removeStorageSync:function(t){return uni.removeStorageSync(t)},clearStorageSync:function(){return uni.clearStorageSync()}},N=function(){function t(e){a(this,t),["spaceId","clientSecret"].forEach((function(t){if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error("\u7f3a\u5c11\u53c2\u6570"+t)})),this.config=Object.assign({},{endpoint:"https://api.bspapp.com"},e),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=A}return o(t,[{key:"setAccessToken",value:function(t){this.accessToken=t}},{key:"requestWrapped",value:function(t){return j.wrappedRequest(t,this.adapter.request)}},{key:"requestAuth",value:function(t){return this.requestWrapped(t)}},{key:"request",value:function(t,e){var n=this;return this.hasAccessToken?e?this.requestWrapped(t):this.requestWrapped(t).catch((function(e){return new Promise((function(t,n){!e||"GATEWAY_INVALID_TOKEN"!==e.code&&"InvalidParameter.InvalidToken"!==e.code?n(e):t()})).then((function(){return n.getAccessToken()})).then((function(){var e=n.rebuildRequest(t);return n.request(e,!0)}))})):this.getAccessToken().then((function(){var e=n.rebuildRequest(t);return n.request(e,!0)}))}},{key:"rebuildRequest",value:function(t){var e=Object.assign({},t);return e.data.token=this.accessToken,e.header["x-basement-token"]=this.accessToken,e.header["x-serverless-sign"]=j.sign(e.data,this.config.clientSecret),e}},{key:"setupRequest",value:function(t,e){var n=Object.assign({},t,{spaceId:this.config.spaceId,timestamp:Date.now()}),r={"Content-Type":"application/json"};return"auth"!==e&&(n.token=this.accessToken,r["x-basement-token"]=this.accessToken),r["x-serverless-sign"]=j.sign(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:r}}},{key:"getAccessToken",value:function(){var t=this;return this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((function(e){return new Promise((function(n,r){e.result&&e.result.accessToken?(t.setAccessToken(e.result.accessToken),n(t.accessToken)):r(new T({code:"AUTH_FAILED",message:"\u83b7\u53d6accessToken\u5931\u8d25"}))}))}))}},{key:"authorize",value:function(){this.getAccessToken()}},{key:"callFunction",value:function(t){var e={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:t.name,functionArgs:t.data||{}})};return this.request(this.setupRequest(e))}},{key:"getOSSUploadOptionsFromPath",value:function(t){var e={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFileToOSS",value:function(t){var e=this,n=t.url,r=t.formData,i=t.name,o=t.filePath,a=t.fileType,s=t.onUploadProgress;return new Promise((function(t,u){var c=e.adapter.uploadFile({url:n,formData:r,name:i,filePath:o,fileType:a,header:{"X-OSS-server-side-encrpytion":"AES256"},success:function(e){e&&e.statusCode<400?t(e):u(new T({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))},fail:function(t){u(t)}});"function"==typeof s&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate((function(t){s({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}},{key:"reportOSSUpload",value:function(t){var e={method:"serverless.file.resource.report",params:JSON.stringify(t)};return this.request(this.setupRequest(e))}},{key:"uploadFile",value:function(t){var e=this,n=t.filePath,r=t.cloudPath,i=t.fileType,o=void 0===i?"image":i,a=t.onUploadProgress,s=t.config;if(!r)throw new T({code:"CLOUDPATH_REQUIRED",message:"cloudPath\u4e0d\u53ef\u4e3a\u7a7a"});var u,c,l=s&&s.envType||this.config.envType;return this.getOSSUploadOptionsFromPath({env:l,filename:r}).then((function(t){var r=t.result;u=r.id,c="https://"+r.cdnDomain+"/"+r.ossPath;var i={url:"https://"+r.host,formData:{"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:r.accessKeyId,Signature:r.signature,host:r.host,id:u,key:r.ossPath,policy:r.policy,success_action_status:200},fileName:"file",name:"file",filePath:n,fileType:o};return e.uploadFileToOSS(Object.assign({},i,{onUploadProgress:a}))})).then((function(){return e.reportOSSUpload({id:u})})).then((function(t){return new Promise((function(e,r){t.success?e({success:!0,filePath:n,fileID:c}):r(new T({code:"UPLOAD_FAILED",message:"\u6587\u4ef6\u4e0a\u4f20\u5931\u8d25"}))}))}))}},{key:"deleteFile",value:function(t){var e=t.fileList,n={method:"serverless.file.resource.delete",params:JSON.stringify({id:e[0]})};return this.request(this.setupRequest(n))}},{key:"hasAccessToken",get:function(){return!!this.accessToken}}]),t}(),M={init:function(t){var e=new N(t);["deleteFile"].forEach((function(t){e[t]=S(e[t]).bind(e)}));var n={signInAnonymously:function(){return e.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return e.auth=function(){return n},e}},R=_((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getQuery=function(t,e){if("undefined"==typeof window)return!1;var n=e||window.location.search,r=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),i=n.substr(n.indexOf("?")+1).match(r);return null!=i?i[2]:""},e.getHash=function(t){var e=window.location.hash.match(new RegExp("[#?&/]"+t+"=([^&#]*)"));return e?e[1]:""},e.removeParam=function(t,e){var n=e.split("?")[0],r=[],i=-1!==e.indexOf("?")?e.split("?")[1]:"";if(""!==i){for(var o=(r=i.split("&")).length-1;o>=0;o-=1)r[o].split("=")[0]===t&&r.splice(o,1);n=n+"?"+r.join("&")}return n},e.createPromiseCallback=function(){var t;if(!Promise){(t=function(){}).promise={};var e=function(){throw new Error('Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.')};return Object.defineProperty(t.promise,"then",{get:e}),Object.defineProperty(t.promise,"catch",{get:e}),t}var n=new Promise((function(e,n){t=function(t,r){return t?n(t):e(r)}}));return t.promise=n,t},e.getWeixinCode=function(){return e.getQuery("code")||e.getHash("code")},e.getMiniAppCode=function(){return new Promise((function(t,e){r.login({success:function(e){t(e.code)},fail:function(t){e(t)}})}))},e.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},e.isString=function(t){return"string"==typeof t},e.isUndefined=function(t){return void 0===t},e.isInstanceOf=function(t,e){return t instanceof e},e.isFormData=function(t){return"[object FormData]"===Object.prototype.toString.call(t)},e.genSeqId=function(){return Math.random().toString(16).slice(2)},e.getArgNames=function(t){var e=t.toString();return e.slice(e.indexOf("(")+1,e.indexOf(")")).match(/([^\s,]+)/g)},e.formatUrl=function(t,e,n){void 0===n&&(n={});var r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?\:\/\//.test(e+=i)?e:""+t+e}})),L="dist/index.js",U="./dist/index.d.ts",D={build:"npm run tsc && webpack",tsc:"tsc -p tsconfig.json","tsc:w":"tsc -p tsconfig.json -w",test:"jest --verbose false -i",e2e:'NODE_ENV=e2e webpack && jest --config="./jest.e2e.config.js"  --verbose false -i "e2e"',start:"webpack-dev-server --hot --open",eslint:'eslint "./**/*.js" "./**/*.ts"',"eslint-fix":'eslint --fix "./**/*.js" "./**/*.ts"',test_web:"npm run tsc && webpack-dev-server --devtool eval-source-map --progress --colors --hot --inline --content-base ./dist --host jimmytest-088bef.tcb.qcloud.la --port 80 --disableHostCheck true --mode development --config webpack.test.js"},q={type:"git",url:"https://github.com/TencentCloudBase/tcb-js-sdk"},F=["tcb","js-sdk"],B={"@cloudbase/adapter-interface":"^0.2.0","@cloudbase/adapter-wx_mp":"^0.2.1","@cloudbase/database":"^0.9.8"},z={"@babel/core":"^7.6.2","@babel/plugin-proposal-class-properties":"^7.5.5","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/plugin-transform-runtime":"^7.6.2","@babel/preset-env":"^7.6.2","@babel/preset-typescript":"^7.6.0","@babel/runtime":"^7.6.2","@types/jest":"^23.1.4","@types/node":"^10.14.4","@types/superagent":"^4.1.4",axios:"^0.19.0","babel-eslint":"^10.0.1","babel-loader":"^8.0.6","babel-polyfill":"^6.26.0",eslint:"^5.16.0","eslint-config-alloy":"^1.4.2","eslint-config-prettier":"^4.1.0","eslint-plugin-prettier":"^3.0.1","eslint-plugin-typescript":"^1.0.0-rc.3",express:"^4.17.1",husky:"^3.1.0",jest:"^24.7.1","jest-puppeteer":"^4.3.0","lint-staged":"^9.5.0","power-assert":"^1.6.1",puppeteer:"^1.20.0","serve-static":"^1.14.1","ts-jest":"^23.10.4","ts-loader":"^6.2.1",typescript:"^3.4.3","typescript-eslint-parser":"^22.0.0",webpack:"^4.41.3","webpack-bundle-analyzer":"^3.4.1","webpack-cli":"^3.3.0","webpack-dev-server":"^3.3.1","webpack-merge":"^4.2.2","webpack-visualizer-plugin":"^0.1.11"},H={hooks:{"pre-commit":"lint-staged"}},K={name:"tcb-js-sdk",version:"1.3.5",description:"js sdk for tcb",main:L,types:U,scripts:D,repository:q,keywords:F,author:"jimmyjzhang",license:"ISC",dependencies:B,devDependencies:z,husky:H,"lint-staged":{"*.{js,ts}":["eslint --fix","git add"]}},G=(E=Object.freeze({__proto__:null,name:"tcb-js-sdk",version:"1.3.5",description:"js sdk for tcb",main:L,types:U,scripts:D,repository:q,keywords:F,author:"jimmyjzhang",license:"ISC",dependencies:B,devDependencies:z,husky:H,default:K}))&&E.default||E,W=_((function(t,e){var n=m&&m.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var r=n(G);e.SDK_VERISON=r.version,e.ACCESS_TOKEN="access_token",e.ACCESS_TOKEN_Expire="access_token_expire",e.REFRESH_TOKEN="refresh_token",e.ANONYMOUS_UUID="anonymous_uuid",e.LOGIN_TYPE_KEY="login_type",e.protocol="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:",e.BASE_URL="//tcb-api.tencentcloudapi.com/web"}));!function(t){t.local="local",t.none="none",t.session="session"}(I||(I={}));var V=function(){},Y=function(){},J=Object.freeze({__proto__:null,get StorageType(){return I},AbstractSDKRequest:V,AbstractStorage:Y,formatUrl:function(t,e,n){void 0===n&&(n={});var r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?\:\/\//.test(e+=i)?e:""+t+e}}),Z=_((function(t,e){var n,r=m&&m.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=m&&m.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0});var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.get=function(t){return this._request(i(i({},t),{method:"get"}))},e.prototype.post=function(t){return this._request(i(i({},t),{method:"post"}))},e.prototype.upload=function(t){var e=t.data,n=t.file,r=t.name,o=new FormData;for(var a in e)o.append(a,e[a]);return o.append("key",r),o.append("file",n),this._request(i(i({},t),{data:o,method:"post"}))},e.prototype.download=function(t){return o(this,void 0,void 0,(function(){var e,n;return a(this,(function(r){return e=decodeURIComponent(new URL(t.url).pathname.split("/").pop()||""),(n=document.createElement("a")).href=t.url,n.setAttribute("download",e),n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),[2,new Promise((function(e){e({statusCode:200,tempFilePath:t.url})}))]}))}))},e.prototype._request=function(t){var e=String(t.method).toLowerCase()||"get";return new Promise((function(n){var r=t.url,i=t.headers,o=void 0===i?{}:i,a=t.data,s=t.responseType,u=R.formatUrl(W.protocol,r,"get"===e?a:{}),c=new XMLHttpRequest;for(var l in c.open(e,u),s&&(c.responseType=s),o)c.setRequestHeader(l,o[l]);c.onreadystatechange=function(){if(4===c.readyState){var t={statusCode:c.status};try{t.data=JSON.parse(c.responseText)}catch(t){}n(t)}},c.send("post"===e&&R.isFormData(a)?a:JSON.stringify(a||{}))}))},e}(J.AbstractSDKRequest);e.WebRequest=s,e.genAdapter=function(){return{root:window,reqClass:s,wsClass:WebSocket,localStorage:localStorage,sessionStorage:sessionStorage}}})),X=_((function(t,e){var n=m&&m.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(Z);!function(t){t.WEB="web",t.WX_MP="wx_mp"}(r=e.RUNTIME||(e.RUNTIME={})),e.useAdapters=function(t){for(var e=0,n=R.isArray(t)?t:[t];e<n.length;e++){var r=n[e],i=r.isMatch,o=r.genAdapter,a=r.runtime;if(i())return{adapter:o(),runtime:a}}},e.useDefaultAdapter=function(){return{adapter:i.genAdapter(),runtime:r.WEB}},e.Adapter={adapter:null,runtime:void 0}})),Q=_((function(t,e){var n,r=m&&m.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){switch(X.Adapter.adapter.primaryStorage||t){case"local":this.storageClass=X.Adapter.adapter.localStorage||new o;break;case"none":this.storageClass=new o;break;default:this.storageClass=X.Adapter.adapter.sessionStorage||new o}}return t.prototype.setStore=function(t,e,n){try{if(!this.storageClass)return}catch(t){return}var r,i={};i.version=n||"localCachev1",i.content=e,r=JSON.stringify(i);try{this.storageClass.setItem(t,r)}catch(t){return}},t.prototype.getStore=function(t,e){try{if(!this.storageClass)return}catch(t){return""}e=e||"localCachev1";var n=this.storageClass.getItem(t);return n&&n.indexOf(e)>=0?JSON.parse(n).content:""},t.prototype.removeStore=function(t){this.storageClass.removeItem(t)},t}();e.Cache=i;var o=function(t){function e(){var e=t.call(this)||this;return X.Adapter.adapter.root.tcbObject||(X.Adapter.adapter.root.tcbObject={}),e}return r(e,t),e.prototype.setItem=function(t,e){X.Adapter.adapter.root.tcbObject[t]=e},e.prototype.getItem=function(t){return X.Adapter.adapter.root.tcbObject[t]},e.prototype.removeItem=function(t){delete X.Adapter.adapter.root.tcbObject[t]},e.prototype.clear=function(){delete X.Adapter.adapter.root.tcbObject},e}(J.AbstractStorage)})),tt=_((function(t,e){var n,r=m&&m.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=m&&m.__spreadArrays||function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r};Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){this.data=e||null,this.name=t};e.IEvent=o;var a=function(t){function e(e,n){var r=t.call(this,"error",{error:e,data:n})||this;return r.error=e,r}return r(e,t),e}(o);e.IErrorEvent=a;var s=function(){function t(){this._listeners={}}return t.prototype.on=function(t,e){return function(t,e,n){n[t]=n[t]||[],n[t].push(e)}(t,e,this._listeners),this},t.prototype.off=function(t,e){return function(t,e,n){if(n&&n[t]){var r=n[t].indexOf(e);-1!==r&&n[t].splice(r,1)}}(t,e,this._listeners),this},t.prototype.fire=function(t,e){if(R.isInstanceOf(t,a))return console.error(t.error),this;var n=R.isString(t)?new o(t,e||{}):t,r=n.name;if(this._listens(r)){n.target=this;for(var s=0,u=this._listeners[r]?i(this._listeners[r]):[];s<u.length;s++)u[s].call(this,n)}return this},t.prototype._listens=function(t){return this._listeners[t]&&this._listeners[t].length>0},t}();e.IEventEmitter=s;var u=new s;e.addEventListener=function(t,e){u.on(t,e)},e.activateEvent=function(t,e){void 0===e&&(e={}),u.fire(t,e)},e.removeEventListener=function(t,e){u.off(t,e)},e.EVENTS={LOGIN_STATE_CHANGED:"loginStateChanged",LOGIN_STATE_EXPIRE:"loginStateExpire",LOGIN_TYPE_CHANGE:"loginTypeChanged",ANONYMOUS_CONVERTED:"anonymousConverted",REFRESH_ACCESS_TOKEN:"refreshAccessToken"}})),et=_((function(t,e){var n=m&&m.__assign||function(){return(n=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},r=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},i=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0});var o=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously"],a={"X-SDK-Version":W.SDK_VERISON};function s(t,e,r){var i=t[e];t[e]=function(e){var o={},a={};r.forEach((function(n){var r=n.call(t,e),i=r.data,s=r.headers;Object.assign(o,i),Object.assign(a,s)}));var s=e.data;return s&&function(){if(R.isFormData(s))for(var t in o)s.append(t,o[t]);else e.data=n(n({},s),o)}(),e.headers=n(n({},e.headers||{}),a),i.call(t,e)}}function u(){var t=R.genSeqId();return{data:{seqId:t},headers:n(n({},a),{"x-seqid":t})}}var c=function(){function t(t){void 0===t&&(t={}),this.config=t,this.cache=new Q.Cache(t.persistence),this.accessTokenKey=W.ACCESS_TOKEN+"_"+t.env,this.accessTokenExpireKey=W.ACCESS_TOKEN_Expire+"_"+t.env,this.refreshTokenKey=W.REFRESH_TOKEN+"_"+t.env,this.anonymousUuidKey=W.ANONYMOUS_UUID+"_"+t.env,this.loginTypeKey=W.LOGIN_TYPE_KEY+"_"+t.env,this._reqClass=new X.Adapter.adapter.reqClass,s(this._reqClass,"post",[u]),s(this._reqClass,"upload",[u]),s(this._reqClass,"download",[u])}return t.prototype.post=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._reqClass.post(t)];case 1:return[2,e.sent()]}}))}))},t.prototype.upload=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._reqClass.upload(t)];case 1:return[2,e.sent()]}}))}))},t.prototype.download=function(t){return r(this,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this._reqClass.download(t)];case 1:return[2,e.sent()]}}))}))},t.prototype.refreshAccessToken=function(){return r(this,void 0,void 0,(function(){var t,e,n;return i(this,(function(r){switch(r.label){case 0:this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken()),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._refreshAccessTokenPromise];case 2:return t=r.sent(),[3,4];case 3:return n=r.sent(),e=n,[3,4];case 4:if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,e)throw e;return[2,t]}}))}))},t.prototype._refreshAccessToken=function(){return r(this,void 0,void 0,(function(){var t,e,n,r;return i(this,(function(i){switch(i.label){case 0:if(this.cache.removeStore(this.accessTokenKey),this.cache.removeStore(this.accessTokenExpireKey),!(t=this.cache.getStore(this.refreshTokenKey)))throw new Error("[tcb-js-sdk] \u672a\u767b\u5f55CloudBase");return e={refresh_token:t},this.cache.getStore(this.loginTypeKey)===nt.LOGINTYPE.ANONYMOUS&&(e.anonymous_uuid=this.cache.getStore(this.anonymousUuidKey)),[4,this.request("auth.getJwt",e)];case 1:if((n=i.sent()).data.code)throw"SIGN_PARAM_INVALID"!==(r=n.data.code)&&"REFRESH_TOKEN_EXPIRED"!==r&&"INVALID_REFRESH_TOKEN"!==r||(tt.activateEvent(tt.EVENTS.LOGIN_STATE_EXPIRE),this.cache.removeStore(this.refreshTokenKey)),new Error("[tcb-js-sdk] \u5237\u65b0access token\u5931\u8d25\uff1a"+n.data.code);return n.data.access_token?(tt.activateEvent(tt.EVENTS.REFRESH_ACCESS_TOKEN),this.cache.setStore(this.accessTokenKey,n.data.access_token),this.cache.setStore(this.accessTokenExpireKey,n.data.access_token_expire+Date.now()),tt.activateEvent(tt.EVENTS.LOGIN_TYPE_CHANGE,n.data.login_type),[2,{accessToken:n.data.access_token,accessTokenExpire:n.data.access_token_expire}]):(n.data.refresh_token&&(this.cache.removeStore(this.refreshTokenKey),this.cache.setStore(this.refreshTokenKey,n.data.refresh_token),this._refreshAccessToken()),[2])}}))}))},t.prototype.getAccessToken=function(){return r(this,void 0,void 0,(function(){var t,e,n,r;return i(this,(function(i){switch(i.label){case 0:return t=this.cache.getStore(this.accessTokenKey),e=this.cache.getStore(this.accessTokenExpireKey),n=!0,(r=this._shouldRefreshAccessTokenHook)?[4,this._shouldRefreshAccessTokenHook(t,e)]:[3,2];case 1:r=!i.sent(),i.label=2;case 2:return r&&(n=!1),(!t||!e||e<Date.now())&&n?[2,this.refreshAccessToken()]:[2,{accessToken:t,accessTokenExpire:e}]}}))}))},t.prototype.request=function(t,e,a){return r(this,void 0,void 0,(function(){var r,s,u,c,l,f,d,p,h,v,g,m;return i(this,(function(i){switch(i.label){case 0:return r="application/x-www-form-urlencoded",s=n({action:t,env:this.config.env,dataVersion:"2019-08-16"},e),-1!==o.indexOf(t)?[3,2]:(u=s,[4,this.getAccessToken()]);case 1:u.access_token=i.sent().accessToken,i.label=2;case 2:if("storage.uploadFile"===t){for(l in c=new FormData)c.hasOwnProperty(l)&&void 0!==c[l]&&c.append(l,s[l]);r="multipart/form-data"}else r="application/json;charset=UTF-8",c=s;return f={headers:{"content-type":r}},a&&a.onUploadProgress&&(f.onUploadProgress=a.onUploadProgress),d=e.parse,p=e.query,h=e.search,v={env:this.config.env},d&&(v.parse=!0),p&&(v=n(n({},p),v)),g=R.formatUrl(W.protocol,W.BASE_URL,v),h&&(g+=h),[4,this.post(n({url:g,data:c},f))];case 3:if(m=i.sent(),200!==Number(m.status)&&200!==Number(m.statusCode)||!m.data)throw new Error("network request error");return[2,m]}}))}))},t.prototype.send=function(t,e){return void 0===e&&(e={}),r(this,void 0,void 0,(function(){var n,r,a;return i(this,(function(i){switch(i.label){case 0:return n=setTimeout((function(){console.warn("Database operation is longer than 3s. Please check query performance and your network environment.")}),3e3),[4,this.request(t,e,{onUploadProgress:e.onUploadProgress})];case 1:return r=i.sent(),clearTimeout(n),"ACCESS_TOKEN_EXPIRED"!==r.data.code||-1!==o.indexOf(t)?[3,4]:[4,this.refreshAccessToken()];case 2:return i.sent(),[4,this.request(t,e,{onUploadProgress:e.onUploadProgress})];case 3:if((a=i.sent()).data.code)throw new Error("["+a.data.code+"] "+a.data.message);return[2,a.data];case 4:if(r.data.code)throw new Error("["+r.data.code+"] "+r.data.message);return[2,r.data]}}))}))},t}();e.Request=c})),nt=_((function(t,e){var n,r=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},i=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.ANONYMOUS="ANONYMOUS",t.WECHAT="WECHAT",t.CUSTOM="CUSTOM",t.NULL="NULL"}(n=e.LOGINTYPE||(e.LOGINTYPE={}));var o=function(){function t(t){this._loginType=n.NULL,this.config=t,this.onLoginTypeChanged=this.onLoginTypeChanged.bind(this),tt.addEventListener(tt.EVENTS.LOGIN_TYPE_CHANGE,this.onLoginTypeChanged)}return t.prototype.init=function(){this.httpRequest=new et.Request(this.config),this.cache=new Q.Cache(this.config.persistence),this.accessTokenKey=W.ACCESS_TOKEN+"_"+this.config.env,this.accessTokenExpireKey=W.ACCESS_TOKEN_Expire+"_"+this.config.env,this.refreshTokenKey=W.REFRESH_TOKEN+"_"+this.config.env,this.loginTypeKey=W.LOGIN_TYPE_KEY+"_"+this.config.env},t.prototype.onLoginTypeChanged=function(t){this._loginType=t.data,this.cache.setStore(this.loginTypeKey,this._loginType)},Object.defineProperty(t.prototype,"loginType",{get:function(){return this._loginType},enumerable:!0,configurable:!0}),t.prototype.setRefreshToken=function(t){this.cache.removeStore(this.accessTokenKey),this.cache.removeStore(this.accessTokenExpireKey),this.cache.setStore(this.refreshTokenKey,t)},t.prototype.getRefreshTokenByWXCode=function(t,e,n){return r(this,void 0,void 0,(function(){var r;return i(this,(function(i){return r=X.Adapter.runtime===X.RUNTIME.WX_MP?"1":"0",[2,this.httpRequest.send("auth.getJwt",{appid:t,loginType:e,code:n,hybridMiniapp:r}).then((function(t){if(t.code)throw new Error("[tcb-js-sdk] \u5fae\u4fe1\u767b\u5f55\u5931\u8d25: "+t.code);if(t.refresh_token)return{refreshToken:t.refresh_token,accessToken:t.access_token,accessTokenExpire:t.access_token_expire};throw new Error("[tcb-js-sdk] getJwt\u672a\u8fd4\u56derefreshToken")}))]}))}))},t}();e.default=o})),rt=_((function(t,e){var n,r=m&&m.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},o=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},a=m&&m.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var s,u,c=a(R),l=a(nt);!function(t){t.snsapi_base="snsapi_base",t.snsapi_userinfo="snsapi_userinfo",t.snsapi_login="snsapi_login"}(s||(s={})),function(t){t.redirect="redirect",t.prompt="prompt"}(u||(u={}));var f={},d=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.config=e,a.appid=n,a.scope=X.Adapter.runtime===X.RUNTIME.WX_MP?"snsapi_base":r,a.state=o||"weixin",a.loginMode=i||"redirect",a}return r(e,t),e.prototype.signIn=function(){return i(this,void 0,void 0,(function(){var t,e,n;return o(this,(function(r){switch(r.label){case 0:f[this.config.env]||(f[this.config.env]=this._signIn()),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,f[this.config.env]];case 2:return t=r.sent(),[3,4];case 3:return n=r.sent(),e=n,[3,4];case 4:if(f[this.config.env]=null,e)throw e;return[2,t]}}))}))},e.prototype._signIn=function(){return i(this,void 0,void 0,(function(){var t,e,n,r,i,a;return o(this,(function(o){switch(o.label){case 0:if(t=this.cache.getStore(this.accessTokenKey),e=this.cache.getStore(this.accessTokenExpireKey),t){if(e&&e>Date.now())return[2,{credential:{accessToken:t,refreshToken:this.cache.getStore(this.refreshTokenKey)}}];this.cache.removeStore(this.accessTokenKey),this.cache.removeStore(this.accessTokenExpireKey)}if(!1===Object.values(s).includes(s[this.scope]))throw new Error("\u9519\u8bef\u7684scope\u7c7b\u578b");return X.Adapter.runtime!==X.RUNTIME.WX_MP?[3,2]:[4,c.getMiniAppCode()];case 1:return n=o.sent(),[3,4];case 2:return[4,c.getWeixinCode()];case 3:if(!(n=o.sent()))return[2,this.redirect()];o.label=4;case 4:return r=function(t){switch(t){case s.snsapi_login:return"WECHAT-OPEN";default:return"WECHAT-PUBLIC"}}(this.scope),[4,this.getRefreshTokenByWXCode(this.appid,r,n)];case 5:return i=o.sent(),a=i.refreshToken,this.cache.setStore(this.refreshTokenKey,a),i.accessToken&&this.cache.setStore(this.accessTokenKey,i.accessToken),i.accessTokenExpire&&this.cache.setStore(this.accessTokenExpireKey,i.accessTokenExpire+Date.now()),tt.activateEvent(tt.EVENTS.LOGIN_STATE_CHANGED),tt.activateEvent(tt.EVENTS.LOGIN_TYPE_CHANGE,l.LOGINTYPE.WECHAT),[2,{credential:{refreshToken:a}}]}}))}))},e.prototype.redirect=function(){var t=c.removeParam("code",location.href);t=c.removeParam("state",t),t=encodeURIComponent(t);var e="//open.weixin.qq.com/connect/oauth2/authorize";"snsapi_login"===this.scope&&(e="//open.weixin.qq.com/connect/qrconnect"),"redirect"===u[this.loginMode]&&(location.href=e+"?appid="+this.appid+"&redirect_uri="+t+"&response_type=code&scope="+this.scope+"&state="+this.state+"#wechat_redirect")},e}(l.default);e.default=d})),it=_((function(t,e){var n,r=m&&m.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=m&&m.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=m&&m.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var u=s(nt),c=function(t){function e(e){var n=t.call(this,i(i({},e),{persistence:"local"}))||this;return n._anonymousUuidKey=W.ANONYMOUS_UUID+"_"+n.config.env,n._loginTypeKey=W.LOGIN_TYPE_KEY+"_"+n.config.env,n}return r(e,t),e.prototype.init=function(){t.prototype.init.call(this)},e.prototype.signIn=function(){return o(this,void 0,void 0,(function(){var t,e,n;return a(this,(function(r){switch(r.label){case 0:return t=this.cache.getStore(this._anonymousUuidKey)||void 0,e=this.cache.getStore(this.refreshTokenKey)||void 0,[4,this.httpRequest.send("auth.signInAnonymously",{anonymous_uuid:t,refresh_token:e})];case 1:return(n=r.sent()).uuid&&n.refresh_token?(this._setAnonymousUUID(n.uuid),this.setRefreshToken(n.refresh_token),[4,this.httpRequest.refreshAccessToken()]):[3,3];case 2:return r.sent(),tt.activateEvent(tt.EVENTS.LOGIN_STATE_CHANGED),tt.activateEvent(tt.EVENTS.LOGIN_TYPE_CHANGE,u.LOGINTYPE.ANONYMOUS),[2,{credential:{refreshToken:n.refresh_token}}];case 3:throw new Error("[tcb-js-sdk] \u533f\u540d\u767b\u5f55\u5931\u8d25")}}))}))},e.prototype.linkAndRetrieveDataWithTicket=function(t){return o(this,void 0,void 0,(function(){var e,n,r;return a(this,(function(i){switch(i.label){case 0:return e=this.cache.getStore(this._anonymousUuidKey),n=this.cache.getStore(this.refreshTokenKey),[4,this.httpRequest.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:e,refresh_token:n,ticket:t})];case 1:return(r=i.sent()).refresh_token?(this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),[4,this.httpRequest.refreshAccessToken()]):[3,3];case 2:return i.sent(),tt.activateEvent(tt.EVENTS.ANONYMOUS_CONVERTED,{refresh_token:r.refresh_token}),tt.activateEvent(tt.EVENTS.LOGIN_TYPE_CHANGE,u.LOGINTYPE.CUSTOM),[2,{credential:{refreshToken:r.refresh_token}}];case 3:throw new Error("[tcb-js-sdk] \u533f\u540d\u8f6c\u5316\u5931\u8d25")}}))}))},e.prototype.getAllStore=function(){var t={};return t[this.refreshTokenKey]=this.cache.getStore(this.refreshTokenKey)||"",t[this._loginTypeKey]=this.cache.getStore(this._loginTypeKey)||"",t[this.accessTokenKey]=this.cache.getStore(this.accessTokenKey)||"",t[this.accessTokenExpireKey]=this.cache.getStore(this.accessTokenExpireKey)||"",t},e.prototype._setAnonymousUUID=function(t){this.cache.removeStore(this._anonymousUuidKey),this.cache.setStore(this._anonymousUuidKey,t),this.cache.setStore(this._loginTypeKey,u.LOGINTYPE.ANONYMOUS)},e.prototype._clearAnonymousUUID=function(){this.cache.removeStore(this._anonymousUuidKey)},e}(u.default);e.AnonymousAuthProvider=c})),ot=_((function(t,e){var n,r=m&&m.__extends||(n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),i=m&&m.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},o=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},a=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}},s=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},u=m&&m.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e};Object.defineProperty(e,"__esModule",{value:!0});var c=s(rt),l=u(nt),f=function(t){function e(e){var n=t.call(this,e)||this;return n.config=e,n}return r(e,t),e.prototype.init=function(){t.prototype.init.call(this),this.customAuthProvider=new l.default(this.config),this.customAuthProvider.init()},e.prototype.weixinAuthProvider=function(t){var e=t.appid,n=t.scope,r=t.loginMode,i=t.state,o=new c.default(this.config,e,n,r,i);return o.init(),o},e.prototype.signInAnonymously=function(){return o(this,void 0,void 0,(function(){var t=this;return a(this,(function(e){switch(e.label){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new it.AnonymousAuthProvider(this.config),this._anonymousAuthProvider.init()),tt.addEventListener(tt.EVENTS.LOGIN_TYPE_CHANGE,(function(e){if(e&&e.data===l.LOGINTYPE.ANONYMOUS){var n=t._anonymousAuthProvider.getAllStore();for(var r in n)n[r]&&t.httpRequest.cache.setStore(r,n[r])}})),[4,this._anonymousAuthProvider.signIn()];case 1:return[2,e.sent()]}}))}))},e.prototype.linkAndRetrieveDataWithTicket=function(t){return o(this,void 0,void 0,(function(){var e=this;return a(this,(function(n){switch(n.label){case 0:return this._anonymousAuthProvider||(this._anonymousAuthProvider=new it.AnonymousAuthProvider(this.config),this._anonymousAuthProvider.init()),tt.addEventListener(tt.EVENTS.ANONYMOUS_CONVERTED,(function(t){var n=t.data.refresh_token;n&&e.httpRequest.cache.setStore(e.refreshTokenKey,n)})),[4,this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(t)];case 1:return[2,n.sent()]}}))}))},e.prototype.signOut=function(){return o(this,void 0,void 0,(function(){var t,e,n,r,i,o,s;return a(this,(function(a){switch(a.label){case 0:if(this.loginType===l.LOGINTYPE.ANONYMOUS)throw new Error("[tcb-js-sdk] \u533f\u540d\u7528\u6237\u4e0d\u652f\u6301\u767b\u51fa\u64cd\u4f5c");return t=this.httpRequest,e=t.cache,n=t.refreshTokenKey,r=t.accessTokenKey,i=t.accessTokenExpireKey,(o=e.getStore(n))?[4,this.httpRequest.send("auth.logout",{refresh_token:o})]:[2];case 1:return s=a.sent(),e.removeStore(n),e.removeStore(r),e.removeStore(i),tt.activateEvent(tt.EVENTS.LOGIN_STATE_CHANGED),tt.activateEvent(tt.EVENTS.LOGIN_TYPE_CHANGE,l.LOGINTYPE.NULL),[2,s]}}))}))},e.prototype.getAccessToken=function(){return o(this,void 0,void 0,(function(){var t;return a(this,(function(e){switch(e.label){case 0:return t={},[4,this.httpRequest.getAccessToken()];case 1:return[2,(t.accessToken=e.sent().accessToken,t.env=this.config.env,t)]}}))}))},e.prototype.onLoginStateExpire=function(t){tt.addEventListener("loginStateExpire",t)},e.prototype.getLoginState=function(){return o(this,void 0,void 0,(function(){var t,e,n,r,i;return a(this,(function(o){switch(o.label){case 0:if(t=this.httpRequest,e=t.cache,n=t.refreshTokenKey,r=t.accessTokenKey,!(i=e.getStore(n)))return[3,5];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.httpRequest.refreshAccessToken()];case 2:return o.sent(),[3,4];case 3:return o.sent(),[2,null];case 4:return[2,{isAnonymous:this.loginType===l.LOGINTYPE.ANONYMOUS,credential:{refreshToken:i,accessToken:e.getStore(r)}}];case 5:return[2,null]}}))}))},e.prototype.signInWithTicket=function(t){return o(this,void 0,void 0,(function(){var e,n,r,i;return a(this,(function(o){switch(o.label){case 0:if("string"!=typeof t)throw new Error("ticket must be a string");return e=this.httpRequest,n=e.cache,r=e.refreshTokenKey,[4,this.httpRequest.send("auth.signInWithTicket",{ticket:t,refresh_token:n.getStore(r)||""})];case 1:return(i=o.sent()).refresh_token?(this.customAuthProvider.setRefreshToken(i.refresh_token),[4,this.httpRequest.refreshAccessToken()]):[3,3];case 2:return o.sent(),tt.activateEvent(tt.EVENTS.LOGIN_STATE_CHANGED),tt.activateEvent(tt.EVENTS.LOGIN_TYPE_CHANGE,l.LOGINTYPE.CUSTOM),[2,{credential:{refreshToken:i.refresh_token}}];case 3:throw new Error("[tcb-js-sdk] \u81ea\u5b9a\u4e49\u767b\u5f55\u5931\u8d25")}}))}))},e.prototype.shouldRefreshAccessToken=function(t){this.httpRequest._shouldRefreshAccessTokenHook=t.bind(this)},e.prototype.getUserInfo=function(){return this.httpRequest.send("auth.getUserInfo",{}).then((function(t){return t.code?t:i(i({},t.data),{requestId:t.seqId})}))},e}(l.default);e.default=f})),at=_((function(t,e){var n=m&&m.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))},r=m&&m.__generator||function(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(i=a.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(t){o=[6,t],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}};Object.defineProperty(e,"__esModule",{value:!0}),e.uploadFile=function(t,e){e=e||R.createPromiseCallback();var n=new et.Request(this.config),r=t.cloudPath,i=t.filePath,o=t.onUploadProgress,a=t.fileType||"image";return n.send("storage.getUploadMetadata",{path:r}).then((function(t){var s=t.data,u=s.url,c=s.authorization,l=s.token,f=s.fileId,d=s.cosFileId,p=t.requestId,h={key:r,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};n.upload({url:u,data:h,file:i,name:r,fileType:a,onUploadProgress:o}).then((function(t){201===t.statusCode?e(null,{fileID:f,requestId:p}):e(new Error("STORAGE_REQUEST_FAIL: "+t.data))})).catch((function(t){e(t)}))})).catch((function(t){e(t)})),e.promise},e.deleteFile=function(t,e){var n=t.fileList;if(e=e||R.createPromiseCallback(),!n||!Array.isArray(n))return{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"};for(var r=0,i=n;r<i.length;r++){var o=i[r];if(!o||"string"!=typeof o)return{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u5b57\u7b26\u4e32"}}var a={fileid_list:n};return new et.Request(this.config).send("storage.batchDeleteFile",a).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.delete_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},e.getTempFileURL=function(t,e){var n=t.fileList;e=e||R.createPromiseCallback(),n&&Array.isArray(n)||e(null,{code:"INVALID_PARAM",message:"fileList\u5fc5\u987b\u662f\u975e\u7a7a\u7684\u6570\u7ec4"});for(var r=[],i=0,o=n;i<o.length;i++){var a=o[i];"object"==typeof a?(a.hasOwnProperty("fileID")&&a.hasOwnProperty("maxAge")||e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5305\u542bfileID\u548cmaxAge\u7684\u5bf9\u8c61"}),r.push({fileid:a.fileID,max_age:a.maxAge})):"string"==typeof a?r.push({fileid:a}):e(null,{code:"INVALID_PARAM",message:"fileList\u7684\u5143\u7d20\u5fc5\u987b\u662f\u5b57\u7b26\u4e32"})}var s={file_list:r};return new et.Request(this.config).send("storage.batchGetDownloadUrl",s).then((function(t){t.code?e(null,t):e(null,{fileList:t.data.download_list,requestId:t.requestId})})).catch((function(t){e(t)})),e.promise},e.downloadFile=function(t,i){var o=t.fileID;return n(this,void 0,void 0,(function(){var t,n,a,s,u;return r(this,(function(r){switch(r.label){case 0:return[4,e.getTempFileURL.call(this,{fileList:[{fileID:o,maxAge:600}]})];case 1:return t=r.sent(),"SUCCESS"!==(n=t.fileList[0]).code?[2,i?i(n):new Promise((function(t){t(n)}))]:(a=n.download_url,a=encodeURI(a),s=new et.Request(this.config),i?[4,s.download({url:a})]:[3,3]);case 2:return u=r.sent(),i(u),[3,4];case 3:return[2,s.download({url:a})];case 4:return[2]}}))}))}})),st=_((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.callFunction=function(t,e){var n,r=t.name,i=t.data,o=t.query,a=t.parse,s=t.search,u=e||R.createPromiseCallback();try{n=i?JSON.stringify(i):""}catch(t){return Promise.reject(t)}if(!r)return Promise.reject(new Error("\u51fd\u6570\u540d\u4e0d\u80fd\u4e3a\u7a7a"));var c={query:o,parse:a,search:s,function_name:r,request_data:n};return new et.Request(this.config).send("functions.invokeFunction",c).then((function(t){if(t.code)u(null,t);else{var e=t.data.response_data;if(a)u(null,{result:e,requestId:t.requestId});else try{e=JSON.parse(t.data.response_data),u(null,{result:e,requestId:t.requestId})}catch(t){u(new Error("response data must be json"))}}return u.promise})).catch((function(t){u(t)})),u.promise}})),ut=y(_((function(t){var e=m&&m.__assign||function(){return(e=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},n=m&&m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},r=m&&m.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},i=n(ot),o=r(at),a=r(st),s={timeout:15e3},u=new(function(){function t(t){var e=this;this.config=t||this.config,this.authObj=void 0,tt.addEventListener(tt.EVENTS.LOGIN_TYPE_CHANGE,(function(t){t.data===nt.LOGINTYPE.ANONYMOUS&&(e.config.persistence="local")}))}return t.prototype.init=function(n){return this.config=e(e({},s),n),X.Adapter.adapter||this._useDefaultAdapter(),new t(this.config)},t.prototype.auth=function(t){var n=(void 0===t?{}:t).persistence;return this.authObj||(this.config=e(e({},this.config),{persistence:n||X.Adapter.adapter.primaryStorage||"session"}),this.authObj=new i.default(this.config),this.authObj.init()),this.authObj},t.prototype.on=function(t,e){return tt.addEventListener.apply(this,[t,e])},t.prototype.off=function(t,e){return tt.removeEventListener.apply(this,[t,e])},t.prototype.callFunction=function(t,e){return a.callFunction.apply(this,[t,e])},t.prototype.deleteFile=function(t,e){return o.deleteFile.apply(this,[t,e])},t.prototype.getTempFileURL=function(t,e){return o.getTempFileURL.apply(this,[t,e])},t.prototype.downloadFile=function(t,e){return o.downloadFile.apply(this,[t,e])},t.prototype.uploadFile=function(t,e){return o.uploadFile.apply(this,[t,e])},t.prototype.useAdapters=function(t){var e=X.useAdapters(t)||{},n=e.adapter,r=e.runtime;n&&(X.Adapter.adapter=n),r&&(X.Adapter.runtime=r)},t.prototype._useDefaultAdapter=function(){var t=X.useDefaultAdapter(),e=t.adapter,n=t.runtime;X.Adapter.adapter=e,X.Adapter.runtime=n},t}());try{window.tcb=u}catch(m){}t.exports=u})));function ct(t,e,n){void 0===n&&(n={});var r=/\?/.test(e),i="";for(var o in n)""===i?!r&&(e+="?"):i+="&",i+=o+"="+encodeURIComponent(n[o]);return/^http(s)?:\/\//.test(e+=i)?e:""+t+e}var lt=function(){function t(){a(this,t)}return o(t,[{key:"post",value:function(t){var e=t.url,n=t.data,r=t.headers;return new Promise((function(t,i){A.request({url:ct("https:",e),data:n,method:"POST",header:r,success:function(e){t(e)},fail:function(t){i(t)}})}))}},{key:"upload",value:function(t){return new Promise((function(e,n){var r=t.url,i=t.file,o=t.data,a=t.headers,s=t.fileType,u=A.uploadFile({url:ct("https:",r),name:"file",formData:Object.assign({},o),filePath:i,fileType:s,header:a,success:function(t){var n={statusCode:t.statusCode,data:t.data||{}};200===t.statusCode&&o.success_action_status&&(n.statusCode=parseInt(o.success_action_status,10)),e(n)},fail:function(t){n(new Error(t.errMsg||"uploadFile:fail"))}});"function"==typeof t.onUploadProgress&&u&&"function"==typeof u.onProgressUpdate&&u.onProgressUpdate((function(e){t.onUploadProgress({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}}]),t}(),ft={setItem:function(t,e){A.setStorageSync(t,e)},getItem:function(t){return A.getStorageSync(t)},removeItem:function(t){A.removeStorageSync(t)},clear:function(){A.clearStorageSync()}},dt={genAdapter:function(){return{root:{},reqClass:lt,localStorage:ft,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};ut.useAdapters(dt);var pt,ht,vt=ut,gt=vt.init;function mt(t){pt||(pt={PLATFORM:"app-plus",OS:O,APPID:k.appid,CLIENT_SDK_VERSION:"1.0.0"},ht={ak:k.appid,p:"android"===O?"a":"i",ut:C(),uuid:P()});var e=JSON.parse(JSON.stringify(t.data||{})),n=t.name,r=this.config.spaceId,i={tencent:"t",aliyun:"a"}[this.config.provider],o=Object.assign({},ht,{fn:n,sid:r,pvd:i});Object.assign(e,{clientInfo:pt,uniCloudClientInfo:encodeURIComponent(JSON.stringify(o))});var a=A.getStorageSync("uni_id_token")||A.getStorageSync("uniIdToken");return a&&(e.uniIdToken=a),t.data=e,t}vt.init=function(t){t.env=t.spaceId;var e=gt.call(this,t);e.config.provider="tencent",e.config.spaceId=t.spaceId;var n=e.auth;return e.auth=function(t){var e=n.call(this,t);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((function(t){e[t]=S(e[t]).bind(e)})),e},["deleteFile","getTempFileURL","downloadFile"].forEach((function(t){e[t]=S(e[t]).bind(e)})),e};var yt=new(function(){function t(){a(this,t)}return o(t,[{key:"init",value:function(t){var e={},n=!1!==t.debugFunction&&!1;switch(t.provider){case"tencent":e=vt.init(Object.assign(t,{useDebugFunction:n}));break;case"aliyun":e=M.init(Object.assign(t,{useDebugFunction:n}));break;default:throw new Error("\u672a\u63d0\u4f9b\u6b63\u786e\u7684provider\u53c2\u6570")}e.isReady=!1;var r=e.auth();return e.initSignIn=r.getLoginState().then((function(t){return t?Promise.resolve():r.signInAnonymously()})).then((function(){return new Promise((function(t){setTimeout((function(){O=uni.getSystemInfoSync().platform,x=uni.getStorageSync("__DC_CLOUD_UUID")||$(32),t()}),0)}))})).then((function(){e.isReady=!0})),function(t){var e=t.callFunction;t.callFunction=function(t){var n,r=this;return n=this.isReady?Promise.resolve():this.initSignIn,n.then((function(){var n=mt.call(r,t),i={aliyun:"aliyun",tencent:"tcb"}[r.config.provider];return new Promise((function(o,a){e.call(r,n).then((function(e){if(r.config.useDebugFunction&&e&&e.requestId){var n=JSON.stringify({spaceId:r.config.spaceId,functionName:t.name,requestId:e.requestId});console.log("[".concat(i,"-request]").concat(n,"[/").concat(i,"-request]"))}o(e)})).catch((function(e){if(r.config.useDebugFunction&&e&&e.requestId){var n=JSON.stringify({spaceId:r.config.spaceId,functionName:t.name,requestId:e.requestId});console.log("[".concat(i,"-request]").concat(n,"[/").concat(i,"-request]"))}e&&e.message&&(e.message="[".concat(t.name,"]: ").concat(e.message)),a(e)}))}))}))};var n=t.callFunction;t.callFunction=function(t){return S(n).call(this,t)}}(e),function(t){var e=t.uploadFile;t.uploadFile=function(t){var n,r=this;return n=this.isReady?Promise.resolve():this.initSignIn,n.then((function(){return e.call(r,t)}))};var n=t.uploadFile;t.uploadFile=function(t){return S(n).call(this,t)}}(e),e.init=this.init,e}}]),t}());try{var _t={};1===[{provider:"aliyun",spaceName:"siller",spaceId:"56eec659-05f2-4fcc-b4da-05d802bb72a0",clientSecret:"FJKW5FIajHdtOjhSmfTI/w==",endpoint:"https://api.bspapp.com"}].length&&(_t=[{provider:"aliyun",spaceName:"siller",spaceId:"56eec659-05f2-4fcc-b4da-05d802bb72a0",clientSecret:"FJKW5FIajHdtOjhSmfTI/w==",endpoint:"https://api.bspapp.com"}][0]),yt=yt.init(_t)}catch(m){["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"].forEach((function(t){yt[t]=function(){var t=[{provider:"aliyun",spaceName:"siller",spaceId:"56eec659-05f2-4fcc-b4da-05d802bb72a0",clientSecret:"FJKW5FIajHdtOjhSmfTI/w==",endpoint:"https://api.bspapp.com"}].length>0?"\u5e94\u7528\u6709\u591a\u4e2a\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u901a\u8fc7uniCloud.init\u65b9\u6cd5\u6307\u5b9a\u8981\u4f7f\u7528\u7684\u670d\u52a1\u7a7a\u95f4":"\u5e94\u7528\u672a\u5173\u8054\u670d\u52a1\u7a7a\u95f4\uff0c\u8bf7\u5728cloudfunctions\u76ee\u5f55\u53f3\u952e\u5173\u8054\u670d\u52a1\u7a7a\u95f4";return console.error(t),Promise.reject(new T({code:"SYS_ERR",message:t}))}}))}var bt=yt,wt=bt;e.default=wt}).call(this,n("c8ba"),n("fe07")["default"])},abbc:function(t,e,n){"use strict";n.r(e);var r=n("891c"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},abcc:function(t,e,n){"use strict";n.r(e);var r=n("75de"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},ac83:function(t,e,n){"use strict";n.r(e);var r=n("a9ef"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},acc3:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"u-popup",props:{show:{type:Boolean,default:!1},mode:{type:String,default:"left"},mask:{type:Boolean,default:!0},length:{type:[Number,String],default:"auto"},zoom:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1},maskCloseAble:{type:Boolean,default:!0},customStyle:{type:Object,default:function(){return{}}},value:{type:Boolean,default:!1},popup:{type:Boolean,default:!0},borderRadius:{type:[Number,String],default:0},zIndex:{type:[Number,String],default:""},closeable:{type:Boolean,default:!1},closeIcon:{type:String,default:"close"},closeIconPos:{type:String,default:"top-right"},closeIconColor:{type:String,default:"#909399"},closeIconSize:{type:[String,Number],default:"30"},width:{type:String,default:""},height:{type:String,default:""},negativeTop:{type:[String,Number],default:0},maskCustomStyle:{type:Object,default:function(){return{}}},duration:{type:[String,Number],default:250}},data:function(){return{visibleSync:!1,showDrawer:!1,timer:null,closeFromInner:!1}},computed:{style:function(){var t={};if("left"==this.mode||"right"==this.mode?t={width:this.width?this.getUnitValue(this.width):this.getUnitValue(this.length),height:"100%",transform:"translate3D(".concat("left"==this.mode?"-100%":"100%",",0px,0px)")}:"top"!=this.mode&&"bottom"!=this.mode||(t={width:"100%",height:this.height?this.getUnitValue(this.height):this.getUnitValue(this.length),transform:"translate3D(0px,".concat("top"==this.mode?"-100%":"100%",",0px)")}),t.zIndex=this.uZindex,this.borderRadius){switch(this.mode){case"left":t.borderRadius="0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0");break;case"top":t.borderRadius="0 0 ".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx");break;case"right":t.borderRadius="".concat(this.borderRadius,"rpx 0 0 ").concat(this.borderRadius,"rpx");break;case"bottom":t.borderRadius="".concat(this.borderRadius,"rpx ").concat(this.borderRadius,"rpx 0 0");break;default:}t.overflow="hidden"}return this.duration&&(t.transition="all ".concat(this.duration/1e3,"s linear")),t},centerStyle:function(){var t={};return t.width=this.width?this.getUnitValue(this.width):this.getUnitValue(this.length),t.height=this.height?this.getUnitValue(this.height):"auto",t.zIndex=this.uZindex,t.marginTop="-".concat(this.$u.addUnit(this.negativeTop)),this.borderRadius&&(t.borderRadius="".concat(this.borderRadius,"rpx"),t.overflow="hidden"),t},uZindex:function(){return this.zIndex?this.zIndex:this.$u.zIndex.popup}},watch:{value:function(t){t?this.open():this.closeFromInner||this.close(),this.closeFromInner=!1}},mounted:function(){this.value&&this.open()},methods:{getUnitValue:function(t){return/(%|px|rpx|auto)$/.test(t)?t:t+"rpx"},maskClick:function(){this.close()},close:function(){this.closeFromInner=!0,this.change("showDrawer","visibleSync",!1)},modeCenterClose:function(t){"center"==t&&this.maskCloseAble&&this.close()},open:function(){this.change("visibleSync","showDrawer",!0)},change:function(t,e,n){var r=this;1==this.popup&&this.$emit("input",n),this[t]=n,n?this.$nextTick((function(){r[e]=n,r.$emit(n?"open":"close")})):this.timer=setTimeout((function(){r[e]=n,r.$emit(n?"open":"close")}),this.duration)}}};e.default=r},acef:function(t,e,n){"use strict";n.r(e);var r=n("d5ef"),i=n("239a");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"d198ff8c",null,!1,r["a"],a);e["default"]=u.exports},ad7a:function(t,e,n){"use strict";n.r(e);var r=n("0848"),i=n("7b1f");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},b041:function(t,e,n){"use strict";var r;function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];n?r||(r=!0,"function"===typeof t&&t(),setTimeout((function(){r=!1}),e)):r||(r=!0,setTimeout((function(){r=!1,"function"===typeof t&&t()}),e))}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=i;e.default=o},b1de:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uNavbar:n("76ac").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-navbar",{attrs:{"back-text":"\u8fd4\u56de",title:"\u5386\u53f2",_i:1}}),n("view",[t._l(t._$s(3,"f",{forItems:t.historywords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(3,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"4-"+o}})]})),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:5}})],2)],1)},o=[]},b3f7:function(t,e,n){"use strict";n.r(e);var r=n("7426"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},b3f8:function(t,e){var n="http://dactylology.frogking.cn",r=!1,i={about:"help/about",version:"v1.5.1",copyright:"BookCode.CN",license:"Apache 2.0",author:"Siller"},o={sendMessage:"".concat(n,"/loginService/sendMessage"),register:"".concat(n,"/loginService/register"),login:"".concat(n,"/loginService/login"),unLogin:"".concat(n,"/loginService/unLogin"),transfor2:"".concat(n,"/dactylology/transfor2"),resource3:"".concat(n,"/resourceService/resource3"),transfor1:"".concat(n,"/dactylology/transfor1")};t.exports={api:o,debug:r,info:i}},b8ea:function(t,e,n){"use strict";n.r(e);var r=n("70f1"),i=n("f585");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"633ff547",null,!1,r["a"],a);e["default"]=u.exports},ba60:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uIcon:n("6cd7").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","u-navbar"),class:t._$s(1,"c",{"u-navbar-fixed":t.isFixed,"u-border-bottom":t.borderBottom}),style:t._$s(1,"s",[t.navbarStyle]),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","u-status-bar"),style:t._$s(2,"s",{height:t.statusBarHeight+"px"}),attrs:{_i:2}}),n("view",{staticClass:t._$s(3,"sc","u-navbar-inner"),style:t._$s(3,"s",[t.navbarInnerStyle]),attrs:{_i:3}},[t._$s(4,"i",t.isBack)?n("view",{staticClass:t._$s(4,"sc","u-back-wrap"),attrs:{_i:4},on:{click:t.goBack}},[n("view",{staticClass:t._$s(5,"sc","u-icon-wrap"),attrs:{_i:5}},[n("u-icon",{attrs:{name:t.backIconName,color:t.backIconColor,size:t.backIconSize,_i:6}})],1),t._$s(7,"i",t.backText)?n("view",{staticClass:t._$s(7,"sc","u-icon-wrap u-back-text u-line-1"),style:t._$s(7,"s",[t.backTextStyle]),attrs:{_i:7}},[t._v(t._$s(7,"t0-0",t._s(t.backText)))]):t._e()]):t._e(),t._$s(8,"i",t.title)?n("view",{staticClass:t._$s(8,"sc","u-navbar-content-title"),style:t._$s(8,"s",[t.titleStyle]),attrs:{_i:8}},[n("view",{staticClass:t._$s(9,"sc","u-title u-line-1"),style:t._$s(9,"s",{color:t.titleColor,fontSize:t.titleSize+"rpx",fontWeight:t.titleBold?"bold":"normal"}),attrs:{_i:9}},[t._v(t._$s(9,"t0-0",t._s(t.title)))])]):t._e(),n("view",{staticClass:t._$s(10,"sc","u-slot-content"),attrs:{_i:10}},[t._t("default",null,{_i:11})],2),n("view",{staticClass:t._$s(12,"sc","u-slot-right"),attrs:{_i:12}},[t._t("right",null,{_i:13})],2)])]),t._$s(14,"i",t.isFixed&&!t.immersive)?n("view",{staticClass:t._$s(14,"sc","u-navbar-placeholder"),style:t._$s(14,"s",{width:"100%",height:Number(t.navbarHeight)+t.statusBarHeight+"px"}),attrs:{_i:14}}):t._e()])},o=[]},bbdd:function(t,e,n){var r=function(){return this||"object"===typeof self&&self}()||Function("return this")(),i=r.regeneratorRuntime&&Object.getOwnPropertyNames(r).indexOf("regeneratorRuntime")>=0,o=i&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,t.exports=n("96cf"),i)r.regeneratorRuntime=o;else try{delete r.regeneratorRuntime}catch(a){r.regeneratorRuntime=void 0}},bc43:function(t,e,n){"use strict";n.r(e);var r=n("c705"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},bc55:function(t,e,n){"use strict";n.r(e);var r=n("71b9"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},bd69:function(t,e){t.exports={data:function(){return{}},onLoad:function(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect:function(t,e){var n=this;return new Promise((function(r){uni.createSelectorQuery().in(n)[e?"selectAll":"select"](t).boundingClientRect((function(t){e&&Array.isArray(t)&&t.length&&r(t),!e&&t&&r(t)})).exec()}))},getParentData:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,e),this.parent&&Object.keys(this.parentData).map((function(e){t.parentData[e]=t.parent[e]}))},preventEvent:function(t){t&&t.stopPropagation&&t.stopPropagation()}},onReachBottom:function(){uni.$emit("uOnReachBottom")},beforeDestroy:function(){var t=this;if(this.parent&&uni.$u.test.array(this.parent.children)){var e=this.parent.children;e.map((function(n,r){n===t&&e.splice(r,1)}))}}}},bd70:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","u-sticky-wrap"),class:t._$s(1,"c",[t.elClass]),style:t._$s(1,"s",{height:t.fixed?t.height+"px":"auto",backgroundColor:t.bgColor}),attrs:{_i:1}},[n("view",{staticClass:t._$s(2,"sc","u-sticky"),style:t._$s(2,"s",{position:t.fixed?"fixed":"static",top:t.stickyTop+"px",left:t.left+"px",width:"auto"==t.width?"auto":t.width+"px",zIndex:t.uZIndex}),attrs:{_i:2}},[t._t("default",null,{_i:3})],2)])])},o=[]},bed3:function(t,e,n){"use strict";n.r(e);var r=n("cbfd"),i=n("abcc");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"c09f5082",null,!1,r["a"],a);e["default"]=u.exports},bee4:function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"success",e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];-1==["primary","info","error","warning","success"].indexOf(t)&&(t="success");var n="";switch(t){case"primary":n="info-circle";break;case"info":n="info-circle";break;case"error":n="close-circle";break;case"warning":n="error-circle";break;case"success":n="checkmark-circle";break;default:n="checkmark-circle"}return e&&(n+="-fill"),n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},c096:function(t,e,n){"use strict";n.r(e);var r=n("71e7"),i=n("9714");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},c216:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("b3f8")),i=o(n("d5f1"));o(n("cc19"));function o(t){return t&&t.__esModule?t:{default:t}}var a={components:{},data:function(){return{loading:!1,redirect:encodeURIComponent("/pages/me/me"),loadingWechat:!1,waitingtime:"\u53d1\u9001\u9a8c\u8bc1\u7801",telNumber:"",disabledSendCode:!1}},onLoad:function(e){r.default.debug&&t("log","onLoad",e," at pages/reg/reg.vue:66"),e.redirect&&(this.redirect=e.redirect)},onShow:function(){var t=i.default.getToken();if(t){var e=decodeURIComponent(this.redirect);e.indexOf("?")>-1?uni.redirectTo({url:e}):uni.switchTab({url:e})}},methods:{submit:function(e){var n=this;if(e.detail.value.re_password==e.detail.value.password)if(""!=e.detail.value.password&&""!=e.detail.value.username){n.loading=!0;var o={phoneNumber:e.detail.value.email,code:e.detail.value.code,password:e.detail.value.password,type:"1"};t("log",o," at pages/reg/reg.vue:107"),i.default.request(r.default.api.register,o,"POST").then((function(e){t("log",e," at pages/reg/reg.vue:110"),r.default.debug&&t("log",r.default.api.login,e," at pages/reg/reg.vue:111"),i.default.toastSuccess("\u6ce8\u518c\u6210\u529f"),setTimeout((function(){var t=decodeURIComponent(n.redirect);t.indexOf("?")>-1?uni.redirectTo({url:t}):uni.switchTab({url:t})}),1500)})).catch((function(e){r.default.debug&&t("log",e," at pages/reg/reg.vue:126"),n.loading=!1,i.default.toastError(e.data.message||e.errMsg)}))}else i.default.toastError("\u624b\u673a\u53f7\u6216\u9a8c\u8bc1\u7801\u4e0d\u80fd\u4e3a\u7a7a");else i.default.toastError("\u4e24\u6b21\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u4e00\u6837")},toLogin:function(){uni.navigateTo({url:"/pages/login/login?redirect="+this.redirect})},wechatLogin:function(e){var n=this,o=e.detail;n.loadingWechat||(n.loadingWechat=!0,uni.login({success:function(e){r.default.debug&&t("log","\u5fae\u4fe1\u767b\u5f55",e,o," at pages/reg/reg.vue:145"),e.code?i.default.request(r.default.api.loginByWechat,{code:e.code,userInfo:o.rawData},"POST").then((function(t){var e=t.data.user;if(void 0==e||e.uid<=0||""==e.token)return i.default.toastError("\u767b\u5f55\u5931\u8d25\uff1a\u672a\u77e5\u9519\u8bef"),void(n.loadingWechat=!1);i.default.setUser(e),i.default.toastSuccess("\u767b\u5f55\u6210\u529f"),setTimeout((function(){i.default.redirect(decodeURIComponent(n.redirect))}),1500)})).catch((function(e){r.default.debug&&t("log",e," at pages/reg/reg.vue:163"),401==e.statusCode?(i.default.setWeChatUser(o),uni.navigateTo({url:"/pages/bind/bind?redirect="+n.redirect+"&sess="+encodeURIComponent(e.data.data.sess)})):i.default.toastError(e.data.message||e.errMsg),n.loadingWechat=!1})):i.default.toastError("\u767b\u5f55\u5931\u8d25\uff01"+e.errMsg)},fail:function(t){i.default.toastError(t.errMsg)}}))},getTelNumber:function(t){var e=this;e.telNumber=t.detail.value},sendCode:function(e){t("log","\u53d1\u9001\u9a8c\u8bc1\u7801"," at pages/reg/reg.vue:189"),t("log",e," at pages/reg/reg.vue:190");var n=this;n.disabledSendCode=!0;var o=60;n.waitingtime=o+"\u79d2\u91cd\u65b0\u53d1\u9001";var a=null;a=setInterval((function(){o>0&&o<=60?(o--,n.waitingtime=o+"\u79d2\u91cd\u65b0\u53d1\u9001"):(n.waitingtime="\u53d1\u9001\u9a8c\u8bc1\u7801",o=60,n.disabledSendCode=!1,clearInterval(a))}),1e3);var s={phoneNumber:n.telNumber};t("log",s," at pages/reg/reg.vue:210"),i.default.request(r.default.api.sendMessage,s,"POST").then((function(e){t("log","config.api.sendMessage"," at pages/reg/reg.vue:213"),t("log",e," at pages/reg/reg.vue:214")})).catch((function(t){i.default.toastError(t.data.message||t.errMsg)}))}}};e.default=a}).call(this,n("0de9")["default"])},c21d:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","menu-content"),attrs:{_i:0}},[n("image",{staticClass:t._$s(1,"sc","menu icon"),class:t._$s(1,"c",{menuOpen:t.openFlag}),attrs:{_i:1},on:{click:t.clickMenu}}),n("image",{staticClass:t._$s(2,"sc","bg-menu icon"),class:t._$s(2,"c",{"open open1":t.openFlag}),attrs:{_i:2},on:{click:t.clickCamera}}),n("image",{staticClass:t._$s(3,"sc","pic-menu icon"),class:t._$s(3,"c",{"open open2":t.openFlag}),attrs:{_i:3},on:{click:t.clickPicture}})])},o=[]},c247:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","split"),style:t._$s(1,"s",{height:t.heightSplit,width:t.widthSplit}),attrs:{_i:1}})])},o=[]},c41f:function(t,e){t.exports="/static/images/history.png"},c705:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"u-mask",props:{show:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:""},customStyle:{type:Object,default:function(){return{}}},zoom:{type:Boolean,default:!0},duration:{type:[Number,String],default:300},maskClickAble:{type:Boolean,default:!0}},data:function(){return{zoomStyle:{transform:""},scale:"scale(1.2, 1.2)"}},watch:{show:function(t){t&&this.zoom?this.zoomStyle.transform="scale(1, 1)":!t&&this.zoom&&(this.zoomStyle.transform=this.scale)}},computed:{maskStyle:function(){var t={backgroundColor:"rgba(0, 0, 0, 0.6)"};return this.show?t.zIndex=this.zIndex?this.zIndex:this.$u.zIndex.mask:t.zIndex=-1,t.transition="all ".concat(this.duration/1e3,"s ease-in-out"),Object.keys(this.customStyle).length&&(t=i(i({},t),this.customStyle)),t}},methods:{click:function(){this.maskClickAble&&this.$emit("click")}}};e.default=a},c8ba:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}t.exports=n},cb28:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={appid:"__UNI__B09D251"};e.default=r},cbfd:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uNavbar:n("76ac").default,uSticky:n("5349").default,uTabs:n("77f3").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-navbar",{attrs:{"is-back":!1,"back-text":"",title:"",_i:1}},[n("headernav",{staticClass:t._$s(2,"sc","slot-wrap"),attrs:{_i:2}})],1),n("u-sticky",{attrs:{"offset-top":"140",_i:3}},[n("u-tabs",{attrs:{"active-color":"#b3c5ff",list:t.list,"is-scroll":!1,current:t.current,_i:4},on:{change:t.change}})],1),n("split",{attrs:{heightSplit:"1px",widthSplit:"100%",_i:5}}),t._$s(6,"i",0==t.current)?n("view",[n("view",{staticClass:t._$s(7,"sc","translate-content"),attrs:{_i:7}},[n("textarea",{attrs:{_i:8},on:{input:t.textareaInput,focus:t.textFocus,blur:t.textBlur}})]),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:9}}),n("view",{staticClass:t._$s(10,"sc","translate-history"),attrs:{_i:10}},[t._$s(11,"i",""!=t.tranlateWord&&""!=t.mainwords)?n("view",[n("view",{staticClass:t._$s(12,"sc","text-history"),attrs:{_i:12}},[n("text")]),t._l(t._$s(14,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(14,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"15-"+o}})]})),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:16}})],2):t._e(),t._$s(17,"i",""==t.tranlateWord&&""==t.words)?n("view",[n("view",{staticClass:t._$s(18,"sc","text-history"),attrs:{_i:18},on:{click:t.toHistory}},[n("text",[n("text")])]),t._l(t._$s(21,"f",{forItems:t.historywords}),(function(e,r,i,o){return[t._$s("22-"+o,"i",r<2)?n("view",{key:t._$s(21,"f",{forIndex:i,keyIndex:0,key:r+"_0"})},[n("meaning",{attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"23-"+o}})],1):t._e()]})),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:24}})],2):n("view",[t._$s(26,"i",0!=t.relatedwords.length)?n("view",[n("view",{staticClass:t._$s(27,"sc","text-history"),attrs:{_i:27}},[n("text")]),t._l(t._$s(29,"f",{forItems:t.relatedwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(29,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"30-"+o}})]}))],2):t._e()])]),n("split",{attrs:{heightSplit:"15px",widthSplit:"100%",_i:31}})],1):t._e(),t._$s(32,"i",1==t.current)?n("view",[n("photo",{attrs:{_i:33}})],1):t._e(),t._$s(34,"i",2==t.current)?n("view",[n("videoInspect",{attrs:{videoPath:t.videoPath,_i:35}})],1):t._e()],1)},o=[]},cc19:function(t,e,n){"use strict";(function(e){var r=o(n("b3f8")),i=o(n("d5f1"));function o(t){return t&&t.__esModule?t:{default:t}}var a="categories",s="categories-expire",u=1800,c=function(){return r.default.debug&&e("log",r.default.api.categories," at utils/api.js:10"),new Promise((function(t,n){var o,c=i.default.now(),l=parseInt(uni.getStorageSync(s));if(l>c)try{o=uni.getStorageSync(a),o&&(o=JSON.parse(o))}catch(f){e("log",f," at utils/api.js:22")}o?(r.default.debug&&e("log","\u4ece\u7f13\u5b58\u4e2d\u83b7\u53d6\u5206\u7c7b\u6570\u636e"," at utils/api.js:27"),t(o)):(r.default.debug&&e("log","\u4ece\u63a5\u53e3\u83b7\u53d6\u6570\u636e"," at utils/api.js:30"),i.default.request(r.default.api.categories).then((function(e){var n=i.default.menuToTree(e.data.categories);uni.setStorageSync(a,JSON.stringify(n)),uni.setStorageSync(s,c+u),t(n)})).catch((function(t){n(t)})))}))},l=function(t){return c().then((function(e){for(var n=!1,r={},i=0;0==n&&i<e.length;i++)if(t==e[i].id)n=!0,r=e[i];else if(e[i].children.length>0)for(var o=e[i].children,a=0;0==n&&a<o.length;a++)t==o[a].id&&(n=!0,r=o[a]);return r}))};t.exports={getCategories:c,getCategoryByCid:l}}).call(this,n("0de9")["default"])},cd93:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uNavbar:n("76ac").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-navbar",{attrs:{"back-text":"\u8fd4\u56de",title:"\u542b\u4e49",_i:1}}),n("description",{attrs:{type:t.type,interpretation:t.interpretation,word:t.word,imgsrc:t.imgsrc,videosrc:t.videosrc,_i:2}})],1)},o=[]},cd9c:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=i(n("8ab6"));function i(t){return t&&t.__esModule?t:{default:t}}function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t=(0,r.default)(t),"object"!==typeof t||"object"!==typeof e)return!1;for(var n in e)e.hasOwnProperty(n)&&(n in t?"object"!==typeof t[n]||"object"!==typeof e[n]?t[n]=e[n]:t[n].concat&&e[n].concat?t[n]=t[n].concat(e[n]):t[n]=o(t[n],e[n]):t[n]=e[n]);return t}var a=o;e.default=a},ceab:function(t,e){},d2e9:function(t,e){t.exports="/static/images/right-angle.png"},d367:function(t,e,n){"use strict";n.r(e);var r=n("1cb2"),i=n("bc43");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"0d4c8696",null,!1,r["a"],a);e["default"]=u.exports},d5ef:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uNavbar:n("76ac").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-navbar",{attrs:{"back-text":"\u8fd4\u56de",title:"\u767b\u9646",_i:1}}),n("view",{staticClass:t._$s(2,"sc","base-padding"),attrs:{_i:2}},[n("form",{attrs:{_i:3},on:{submit:t.formSubmit}},[n("view",{staticClass:t._$s(4,"sc","form-body"),attrs:{_i:4}},[n("view",[n("image",{attrs:{_i:6}})]),n("view",{staticClass:t._$s(7,"sc","row font-lv2 overHidden"),attrs:{_i:7}},[n("view",{staticClass:t._$s(8,"sc","col-3"),attrs:{_i:8}}),n("view",{staticClass:t._$s(9,"sc","col-5"),attrs:{_i:9}},[n("input",{attrs:{_i:10},on:{input:t.getTelNumber}})]),n("button",{staticClass:t._$s(11,"sc","col-4 senCode font-lv2"),attrs:{disabled:t._$s(11,"a-disabled",t.disabledSendCode),_i:11},on:{click:t.sendCode}},[t._v(t._$s(11,"t0-0",t._s(t.waitingtime)))])]),n("view",{staticClass:t._$s(12,"sc","row font-lv2"),attrs:{_i:12}},[n("view",{staticClass:t._$s(13,"sc","col-3"),attrs:{_i:13}}),n("view",{staticClass:t._$s(14,"sc","col-9"),attrs:{_i:14}},[n("input",{attrs:{_i:15}})])])]),n("view",{staticClass:t._$s(16,"sc","row mgb-30 font-lv3 color-grey"),attrs:{_i:16}},[n("navigator",{staticClass:t._$s(17,"sc","col"),attrs:{url:t._$s(17,"a-url","/pages/read/read?identify="+t.about),_i:17}}),n("view",{staticClass:t._$s(18,"sc","col text-right"),attrs:{_i:18},on:{click:t.findPassword}})]),n("view",{staticClass:t._$s(19,"sc","row"),attrs:{_i:19}},[n("button",{staticClass:t._$s(20,"sc","btn-submit btn-block login-button"),attrs:{loading:t._$s(20,"a-loading",t.loading),_i:20}})]),n("view",{staticClass:t._$s(21,"sc","row"),attrs:{_i:21}},[n("button",{staticClass:t._$s(22,"sc","btn-login btn-block login-button"),attrs:{_i:22},on:{click:t.toReg}})])])])],1)},o=[]},d5f1:function(t,e,n){(function(e){var n="user",r="wechat-user",i="reader-setting",o="sys-info",a="sign",s=function(t){var e=t.getFullYear(),n=t.getMonth()+1,r=t.getDate(),i=t.getHours(),o=t.getMinutes(),a=t.getSeconds();return[e,n,r].map(c).join("/")+" "+[i,o,a].map(c).join(":")},u=function(t){var e=new Date(1e3*t),n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate();return[n,r,i].map(c).join("/")},c=function(t){return t=t.toString(),t[1]?t:"0"+t},l=function(){return parseInt((new Date).getTime()/1e3)},f=function(t){return parseInt(new Date(t).getTime()/1e3)},d=function(t){var e=f(t),n=l(),r=n-e,i=60,o=60*i,a=24*o,s=30*a,u=r/s,c=r/a,d=r/o,p=r/i;return u>12?parseInt(u/12)+" \u5e74\u524d":u>=1?parseInt(u)+" \u6708\u524d":c>=1?parseInt(c)+" \u5929\u524d":d>=1?parseInt(d)+" \u5c0f\u65f6\u524d":p>=1?parseInt(p)+" \u5206\u949f\u524d":"\u521a\u521a"},p=function(){uni.setStorageSync(n,"{}")},h=function(t){uni.setStorageSync(n,JSON.stringify(t))},v=function(){try{var t=uni.getStorageSync(n);if(t)return JSON.parse(t)}catch(r){return e("log",r," at utils/util.js:85"),{}}},g=function(t){try{var n=uni.getStorageSync(t);if(n)return n}catch(r){return e("log",r," at utils/util.js:97"),{}}},m=function(t,n){try{uni.setStorageSync(t,n)}catch(r){return e("log",r," at utils/util.js:106"),{}}},y=function(t){uni.setStorageSync(r,JSON.stringify(t))},_=function(){try{var t=uni.getStorageSync(r);if(t)return JSON.parse(t)}catch(n){return e("log",n," at utils/util.js:123"),{}}},b=function(){var t=v();return t&&void 0!=t.token?t.token:""},w=function(t){t.indexOf("?")>-1?uni.redirectTo({url:t}):uni.switchTab({url:t})};Promise.prototype.finally=function(t){var e=this.constructor;return this.then((function(n){e.resolve(t()).then((function(){return n}))}),(function(n){e.resolve(t()).then((function(){throw n}))}))};var S=function(){var t=R().appVersion;return void 0!=t&&""!=t?t:""},k=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new Promise((function(i,o){r["content-type"]||(r["content-type"]="application/json"),"POST"==n.toUpperCase()&&(r["content-type"]="application/x-www-form-urlencoded");var a=b();a&&(r["authorization"]=a),r["x-version"]=S(),uni.request({url:t,data:e,method:n,header:r,success:function(t){200==t.statusCode?i(t.data):(401==t.statusCode&&p(),o(t))},fail:function(t){o(t)}})}))},x=function(t){t=t||"\u73a9\u547d\u52a0\u8f7d\u4e2d...",uni.showLoading({title:t,mask:!1})},O=function(t){uni.showToast({title:t,icon:"none",duration:3e3})},T=function(t){uni.showToast({title:t})},$=function(t){return t>1e4?t=(t/1e4).toFixed(1)+"w":t>1e3&&(t=(t/1e3).toFixed(1)+"k"),t};function P(t){var e=/^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;return e.test(t)}var C=function(t){t.forEach((function(t){delete t.children}));var e={};t.forEach((function(t){e[t.id]=t}));var n=[];return t.forEach((function(t){var r=e[t.pid];r?(r.children||(r.children=[])).push(t):n.push(t)})),n},E=function t(e){var n=[];for(var r in e)n.push(e[r].id),e[r].children&&(n=n.concat(t(e[r].children)));return n},I=function t(e,n){for(var r in e){if(e[r].id==n){e[r].readed=!0;break}e[r].children&&(e[r].children=t(e[r].children,n))}return e},j=function(t){uni.setStorageSync(i,JSON.stringify(t))},A=function(){var t=uni.getStorageSync(i);return t?(t=JSON.parse(t),void 0==t.themeIndex&&(t.themeIndex=0),void 0==t.fontIndex&&(t.fontIndex=0),t):{themeIndex:0,fontIndex:0}},N=function(t){uni.setStorageSync(o,JSON.stringify(t))},M=function(t){var e={hour:0,min:0},n=3600;return t<=0||(e.hour=parseInt(t/n),e.min=parseInt((t-n*e.hour)/60)),e},R=function(){var t=uni.getStorageSync(o);return t?JSON.parse(t):{windowWidth:0,windowHeight:0,baseWidth:0,baseHeight:0}},L=function(t){(0==t||t>U())&&uni.setStorageSync(a,t)},U=function(){var t=uni.getStorageSync(a)||0;return parseInt(t)},D=function(){return u(l())==u(U())},q=function(t){for(var e=[],n=0;n<t.length;n++)-1==e.indexOf(t[n])&&e.push(t[n]);return e};t.exports={formatTime:s,now:l,toTimestamp:f,relativeTime:d,request:k,loading:x,toastError:O,toastSuccess:T,setUser:h,setWeChatUser:y,clearUser:p,getUser:v,getWeChatUser:_,getToken:b,menuToTree:C,menuSortIds:E,menuTreeReaded:I,setReaderSetting:j,getReaderSetting:A,isEmail:P,getSysInfo:R,setSysInfo:N,fixView:$,formatReading:M,setSignedAt:L,getSignedAt:U,isSignedToday:D,redirect:w,setFidByWord:m,getFidByWord:g,uniq:q}}).call(this,n("0de9")["default"])},d688:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("de48")),i=u(n("61f2")),o=u(n("f0cb")),a=u(n("b3f8")),s=u(n("d5f1"));function u(t){return t&&t.__esModule?t:{default:t}}var c={components:{meaning:r.default,split:i.default,HchMune:o.default},data:function(){return{imgPath:"",filePath:"",mainwords:[]}},props:{},watch:{filePath:function(e,n){var r=this;t("log","filePath = "+e+" , oldValue = "+n," at components/photo.vue:47");var i={token:""};i.token=s.default.getToken(),t("log",i," at components/photo.vue:53"),s.default.request(a.default.api.transfor1,i,"POST").then((function(e){var n=e.item;t("log",n.length," at components/photo.vue:57");for(var i=0;i<n.length;i++)if(""==n[i].result&&(n[i].result="1"),""!=n[i].result){var o={token:"",fid:""};o.token=s.default.getToken(),o.fid=n[i].result,"-1"!=o.fid&&s.default.request(a.default.api.resource3,o,"POST").then((function(e){t("log",e," at components/photo.vue:73"),"301"!=e.code&&(t("log",e," at components/photo.vue:75"),r.mainwords.push(e))})).catch((function(t){r.loading=!1,s.default.toastError(t.data.message||t.errMsg)}))}})).catch((function(t){r.loading=!1,s.default.toastError(t.data.message||t.errMsg)}))}},methods:{returnItem:function(e){t("log",e," at components/photo.vue:96"),this.filePath=e}},onLoad:function(e){this.imgPath=e.filePath,t("log",e.filePath," at components/photo.vue:102")},onShow:function(t){}};e.default=c}).call(this,n("0de9")["default"])},d795:function(t,e,n){"use strict";n.r(e);var r=n("954a"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},da18:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("view",{staticClass:t._$s(1,"sc","box"),attrs:{_i:1},on:{click:t.toDetail}},[n("view",{staticClass:t._$s(2,"sc","word"),attrs:{_i:2}},[n("text",[t._v(t._$s(3,"t0-0",t._s(t.type))+t._$s(3,"t0-1",t._s(t.word)))])]),n("view",{staticClass:t._$s(4,"sc","picture"),attrs:{_i:4}},[n("image",{attrs:{src:t._$s(5,"a-src",t.imgsrc),_i:5}})]),n("view",{staticClass:t._$s(6,"sc","interpretation"),attrs:{_i:6}},[t._v(t._$s(6,"t0-0",t._s(t.interpretation)))])])])},o=[]},da1a:function(t,e,n){"use strict";var r;n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:1}}),t._$s(2,"i",""!=t.mainwords)?n("view",[n("view",{staticClass:t._$s(3,"sc","translate-history"),attrs:{_i:3}},[n("view",{staticClass:t._$s(4,"sc","text-history"),attrs:{_i:4}},[n("text")]),t._l(t._$s(6,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(6,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"7-"+o}})]}))],2),n("split",{attrs:{heightSplit:"5px",widthSplit:"100%",_i:8}}),n("view",{staticClass:t._$s(9,"sc","translate-history"),attrs:{_i:9}},[n("view",{staticClass:t._$s(10,"sc","text-history"),attrs:{_i:10}},[n("text")]),t._l(t._$s(12,"f",{forItems:t.mainwords}),(function(e,r,i,o){return[n("meaning",{key:t._$s(12,"f",{forIndex:i,keyIndex:0,key:r+"_0"}),attrs:{type:e.pos,interpretation:e.text,imgsrc:e.urlPic,word:e.word,videosrc:e.urlMov,_i:"13-"+o}})]}))],2)],1):t._e(),n("VideoMune",{attrs:{_i:14},on:{returnItem:t.returnItem}})],1)},o=[]},dd90:function(t,e,n){"use strict";n.r(e);var r=n("834f"),i=n("bc55");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"69221dd6",null,!1,r["a"],a);e["default"]=u.exports},de48:function(t,e,n){"use strict";n.r(e);var r=n("da18"),i=n("6fde");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},df78:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r="1.8.3",i={v:r,version:r,type:["primary","success","info","error","warning"]};e.default=i},df84:function(t,e,n){"use strict";n.r(e);var r=n("e326"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},e074:function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1500;uni.showToast({title:t,icon:"none",duration:e})}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r;e.default=i},e15d:function(t,e,n){"use strict";n.r(e);var r=n("cd93"),i=n("14fb");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],a);e["default"]=u.exports},e326:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r={name:"split",data:function(){return{}},props:{heightSplit:{type:String,default:"10px"},widthSplit:{type:String,default:"100%"},colorSplit:{type:String,default:"#fff9f7"}}};e.default=r},e417:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(n("b3f8")),i=o(n("d5f1"));function o(t){return t&&t.__esModule?t:{default:t}}var a={name:"headernav",data:function(){return{menuShow:!1,redirect:encodeURIComponent("/pages/index/index"),info:{},user:{}}},onLoad:function(t){this.info=r.default.info},onShow:function(){this.initUser()},beforeUpdate:function(){t("log","Headernav mounted"," at components/headernav.vue:94"),this.initUser()},methods:{toMenu:function(){var e=this;e.menuShow=!e.menuShow,t("log",e.menuShow," at components/headernav.vue:102")},userLoginEvent:function(e){t("log",this.user.uid," at components/headernav.vue:105");var n=this;0==n.user.uid&&(t("log",this.user.uid," at components/headernav.vue:108"),n.menuShow=!1,uni.navigateTo({url:"/pages/login/login?redirect="+this.redirect}))},logout:function(t){var e=this;uni.showModal({title:"\u6e29\u99a8\u63d0\u793a",content:"\u60a8\u786e\u5b9a\u8981\u9000\u51fa\u767b\u5f55\u5417\uff1f",duration:2e3,image:"../static/img/back.png",success:function(t){if(t.confirm){var n={token:"",type:"1"};n.token=e.user.token,i.default.request(r.default.api.unLogin),i.default.clearUser(),i.default.toastSuccess("\u9000\u51fa\u6210\u529f"),e.initUser(),i.default.setSignedAt(0),e.menuShow=!1,uni.redirectTo({url:"/pages/index/index"})}}})},initUser:function(){var e=this,n=i.default.getUser();t("log","user: "+n," at components/headernav.vue:145"),void 0!=n&&void 0!=n.token||(t("log","user == undefined || user.token == undefined"," at components/headernav.vue:147"),n={uid:"0",nickname:"\u8bf7\u70b9\u6211\u767b\u5f55",avatar:"/static/images/logo.jpg",intro:"\u5fc3\u7075\u4e5f\u624b\u5de7"},e.moreInfo={uid:0,signed_at:0,created_at:0,total_sign:0,total_continuous_sign:0,history_continuous_sign:0,today_reading:0,month_reading:0,total_reading:0,today_reading_hour:0,today_reading_min:0,month_reading_hour:0,month_reading_min:0,total_reading_hour:0,total_reading_min:0,join_day:0}),t("log","user: "+n," at components/headernav.vue:173"),e.user=n}},props:{}};e.default=a}).call(this,n("0de9")["default"])},e51b:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uBadge:n("dd90").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",{staticClass:t._$s(0,"sc","u-tabs"),style:t._$s(0,"s",{background:t.bgColor}),attrs:{_i:0}},[n("view",{attrs:{id:t._$s(1,"a-id",t.id),_i:1}},[n("scroll-view",{staticClass:t._$s(2,"sc","u-scroll-view"),attrs:{"scroll-left":t._$s(2,"a-scroll-left",t.scrollLeft),_i:2}},[n("view",{staticClass:t._$s(3,"sc","u-scroll-box"),class:t._$s(3,"c",{"u-tabs-scorll-flex":!t.isScroll}),attrs:{_i:3}},[t._l(t._$s(4,"f",{forItems:t.list}),(function(e,r,i,o){return n("view",{key:t._$s(4,"f",{forIndex:i,key:r}),staticClass:t._$s("4-"+o,"sc","u-tab-item u-line-1"),style:t._$s("4-"+o,"s",[t.tabItemStyle(r)]),attrs:{id:t._$s("4-"+o,"a-id","u-tab-item-"+r),_i:"4-"+o},on:{click:function(e){return t.clickTab(r)}}},[n("u-badge",{attrs:{count:e[t.count]||e["count"]||0,offset:t.offset,size:"mini",_i:"5-"+o}}),t._v(t._$s("4-"+o,"t1-0",t._s(e[t.name]||e["name"])))],1)})),t._$s(6,"i",t.showBar)?n("view",{staticClass:t._$s(6,"sc","u-tab-bar"),style:t._$s(6,"s",[t.tabBarStyle]),attrs:{_i:6}}):t._e()],2)])])])},o=[]},e5e7:function(t,e,n){"use strict";function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"yyyy-mm-dd";t||(t=Number(new Date)),10==t.toString().length&&(t*=1e3);var n,r=new Date(t),i={"y+":r.getFullYear().toString(),"m+":(r.getMonth()+1).toString(),"d+":r.getDate().toString(),"h+":r.getHours().toString(),"M+":r.getMinutes().toString(),"s+":r.getSeconds().toString()};for(var o in i)n=new RegExp("("+o+")").exec(e),n&&(e=e.replace(n[1],1==n[1].length?i[o]:i[o].padStart(n[1].length,"0")));return e}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,String.prototype.padStart||(String.prototype.padStart=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ";if("[object String]"!==Object.prototype.toString.call(e))throw new TypeError("fillString must be String");var n=this;if(n.length>=t)return String(n);var r=t-n.length,i=Math.ceil(r/e.length);while(i>>=1)e+=e,1===i&&(e+=e);return e.slice(0,r)+n});var i=r;e.default=i},eafe:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uModal:n("14ab").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("u-modal",{attrs:{"show-cancel-button":!0,"confirm-text":"\u5347\u7ea7",title:"\u53d1\u73b0\u65b0\u7248\u672c",_i:0},on:{cancel:t.cancel,confirm:t.confirm},model:{value:t._$s(0,"v-model",t.show),callback:function(e){t.show=e},expression:"show"}},[n("view",{staticClass:t._$s(1,"sc","u-update-content"),attrs:{_i:1}},[n("rich-text",{attrs:{nodes:t._$s(2,"a-nodes",t.content),_i:2}})])])},o=[]},eb1e:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uNavbar:n("76ac").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("view",[n("u-navbar",{attrs:{"back-text":"\u8fd4\u56de",title:"\u6536\u85cf",_i:1}}),n("view")],1)},o=[]},ecdc:function(t,e,n){"use strict";n.r(e);var r=n("d688"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},f0c5:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s,u,c){var l,f="function"===typeof t?t.options:t;if(u){f.components||(f.components={});var d=Object.prototype.hasOwnProperty;for(var p in u)d.call(u,p)&&!d.call(f.components,p)&&(f.components[p]=u[p])}if(c&&((c.beforeCreate||(c.beforeCreate=[])).unshift((function(){this[c.__module]=this})),(f.mixins||(f.mixins=[])).push(c)),e&&(f.render=e,f.staticRenderFns=n,f._compiled=!0),r&&(f.functional=!0),o&&(f._scopeId="data-v-"+o),a?(l=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},f._ssrRegister=l):i&&(l=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(f.functional){f._injectStyles=l;var h=f.render;f.render=function(t,e){return l.call(e),h(t,e)}}else{var v=f.beforeCreate;f.beforeCreate=v?[].concat(v,l):[l]}return{exports:t,options:f}}n.d(e,"a",(function(){return r}))},f0cb:function(t,e,n){"use strict";n.r(e);var r=n("6400"),i=n("fcba");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"3d70e822",null,!1,r["a"],a);e["default"]=u.exports},f17e:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(n("de48")),i=u(n("61f2")),o=u(n("f0cb")),a=u(n("b3f8")),s=u(n("d5f1"));function u(t){return t&&t.__esModule?t:{default:t}}var c={components:{meaning:r.default,split:i.default,HchMune:o.default},data:function(){return{imgPath:"",filePath:"",mainwords:[]}},props:{},watch:{filePath:function(e,n){var r=this;t("log","filePath = "+e+" , oldValue = "+n," at components/photo.vue:47");var i={token:""};i.token=s.default.getToken(),t("log",i," at components/photo.vue:53"),s.default.request(a.default.api.transfor1,i,"POST").then((function(e){var n=e.item;t("log",n.length," at components/photo.vue:57");for(var i=0;i<n.length;i++)if(""==n[i].result&&(n[i].result="1"),""!=n[i].result){var o={token:"",fid:""};o.token=s.default.getToken(),o.fid=n[i].result,"-1"!=o.fid&&s.default.request(a.default.api.resource3,o,"POST").then((function(e){t("log",e," at components/photo.vue:73"),"301"!=e.code&&(t("log",e," at components/photo.vue:75"),r.mainwords.push(e))})).catch((function(t){r.loading=!1,s.default.toastError(t.data.message||t.errMsg)}))}})).catch((function(t){r.loading=!1,s.default.toastError(t.data.message||t.errMsg)}))}},methods:{returnItem:function(e){t("log",e," at components/photo.vue:96"),this.filePath=e}},onLoad:function(e){this.imgPath=e.filePath,t("log",e.filePath," at components/photo.vue:102")},onShow:function(t){}};e.default=c}).call(this,n("0de9")["default"])},f4ef:function(t,e,n){"use strict";n.r(e);var r=n("eb1e"),i=n("4233");for(var o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var a,s=n("f0c5"),u=Object(s["a"])(i["default"],r["b"],r["c"],!1,null,"25ff6537",null,!1,r["a"],a);e["default"]=u.exports},f585:function(t,e,n){"use strict";n.r(e);var r=n("f17e"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},f720:function(t,e,n){"use strict";function r(t,e){var n=this.$parent;while(n)if(n.$options.name!==t)n=n.$parent;else{var r=function(){var t={};if(Array.isArray(e))e.map((function(e){t[e]=n[e]?n[e]:""}));else for(var r in e)Array.isArray(e[r])?e[r].length?t[r]=e[r]:t[r]=n[r]:e[r].constructor===Object?Object.keys(e[r]).length?t[r]=e[r]:t[r]=n[r]:t[r]=e[r]||!1===e[r]?e[r]:n[r];return{v:t}}();if("object"===typeof r)return r.v}return{}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=r},fb60:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r}));var r={uMask:n("d367").default,uIcon:n("6cd7").default},i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t._$s(0,"i",t.visibleSync)?n("view",{staticClass:t._$s(0,"sc","u-drawer"),style:t._$s(0,"s",[t.customStyle,{zIndex:t.uZindex-1}]),attrs:{_i:0}},[n("u-mask",{attrs:{duration:t.duration,"custom-style":t.maskCustomStyle,maskClickAble:t.maskCloseAble,"z-index":t.uZindex-2,show:t.showDrawer&&t.mask,_i:1},on:{click:t.maskClick}}),n("view",{staticClass:t._$s(2,"sc","u-drawer-content"),class:t._$s(2,"c",[t.safeAreaInsetBottom?"safe-area-inset-bottom":"","u-drawer-"+t.mode,t.showDrawer?"u-drawer-content-visible":"",t.zoom&&"center"==t.mode?"u-animation-zoom":""]),style:t._$s(2,"s",[t.style]),attrs:{_i:2},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault()},click:[function(e){return t.modeCenterClose(t.mode)},function(t){t.stopPropagation(),t.preventDefault()}]}},[t._$s(3,"i","center"==t.mode)?n("view",{staticClass:t._$s(3,"sc","u-mode-center-box"),style:t._$s(3,"s",[t.centerStyle]),attrs:{_i:3},on:{touchmove:function(t){t.stopPropagation(),t.preventDefault()},click:function(t){t.stopPropagation(),t.preventDefault()}}},[t._$s(4,"i",t.closeable)?n("u-icon",{staticClass:t._$s(4,"sc","u-close"),class:t._$s(4,"c",["u-close--"+t.closeIconPos]),attrs:{name:t.closeIcon,color:t.closeIconColor,size:t.closeIconSize,_i:4},on:{click:t.close}}):t._e(),n("scroll-view",{staticClass:t._$s(5,"sc","u-drawer__scroll-view"),attrs:{_i:5}},[t._t("default",null,{_i:6})],2)],1):n("scroll-view",{staticClass:t._$s(7,"sc","u-drawer__scroll-view"),attrs:{_i:7}},[t._t("default",null,{_i:8})],2),n("view",{staticClass:t._$s(9,"sc","u-close"),class:t._$s(9,"c",["u-close--"+t.closeIconPos]),attrs:{_i:9},on:{click:t.close}},[t._$s(10,"i","center"!=t.mode&&t.closeable)?n("u-icon",{attrs:{name:t.closeIcon,color:t.closeIconColor,size:t.closeIconSize,_i:10}}):t._e()],1)])],1):t._e()},o=[]},fcba:function(t,e,n){"use strict";n.r(e);var r=n("724a"),i=n.n(r);for(var o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);e["default"]=i.a},fe07:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.Behavior=Ct,e.Component=Pt,e.Page=Tt,e.nextTick=e.default=void 0;var r,i=o(n("8bbf"));function o(t){return t&&t.__esModule?t:{default:t}}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t,e){return d(t)||f(t,e)||c(t,e)||u()}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(t,e){if(t){if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(t,e):void 0}}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),e&&n.length===e)break}catch(u){i=!0,o=u}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}}function d(t){if(Array.isArray(t))return t}function p(t,e){t&&(e.mpOptions.data=t)}function h(e){e.components=t.__wxVueOptions.components}var v=Object.prototype.toString,g=Object.prototype.hasOwnProperty;function m(t){return"function"===typeof t}function y(t){return"[object Object]"===v.call(t)}function _(t,e){return g.call(t,e)}function b(){}function w(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var S=/-(\w)/g,k=w((function(t){return t.replace(S,(function(t,e){return e?e.toUpperCase():""}))})),x="__data__",O={created:"onServiceCreated",attached:"onServiceAttached",ready:"mounted",moved:"moved",detached:"destroyed"},T=Object.keys(O),$={show:"onPageShow",hide:"onPageHide",resize:"onPageResize"},P=Object.keys($),C=["onLoad","onShow","onReady","onHide","onUnload","onPullDownRefresh","onReachBottom","onShareAppMessage","onPageScroll","onResize","onTabItemTap"];function E(t,e){var n=Object.create(null);Object.keys(t).forEach((function(e){var r=t[e];m(r)&&-1===C.indexOf(e)&&(n[e]=r)})),e.methods=n}function I(t,e){Object.keys(t).forEach((function(n){-1!==C.indexOf(n)&&(e[n]=t[n])}))}function j(t){var e={mixins:[],mpOptions:{}};return h(e),p(t.data,e),E(t,e),I(t,e),e}function A(t,e){t&&(e.mpOptions.properties=t)}function N(t,e){t&&(e.mpOptions.options=t)}function M(t,e){t&&(t.$emit&&(console.warn('Method "$emit" conflicts with an existing Vue instance method'),delete t.$emit),e.methods=t)}function R(t,e){T.forEach((function(n){_(t,n)&&(e[O[n]]||(e[O[n]]=[])).push(t[n])}))}var L={"wx://form-field":{},"wx://component-export":{}};function U(t){var e=t.behaviors,n=t.definitionFilter,r=[];if(Array.isArray(e)&&e.forEach((function(e){e="string"===typeof e?L[e]:e,e.definitionFilter&&(r.push(e.definitionFilter),e.definitionFilter.call(null,t,[]))})),m(n))return function(t){n(t,r)}}function D(t,e){U(t)}function q(t){var e=t.data,n=t.methods,r=t.behaviors,i=t.properties,o={watch:{},mpOptions:{mpObservers:[]}};return p(e,o),M(n,o),B(r,o),A(i,o),R(t,o),D(t),o}var F={"wx://form-field":{beforeCreate:function(){var t=this.$options.mpOptions;t.properties||(t.properties=Object.create(null));var e=t.properties;_(e,"name")||(e.name={type:String}),_(e,"value")||(e.value={type:String})}}};function B(t,e){t&&t.forEach((function(t){"string"===typeof t?F[t]&&e.mixins.push(F[t]):e.mixins.push(q(t))}))}function z(t){return t.split(".")}function H(t){return t.split(",").map((function(t){return z(t)}))}function K(t,e){if(t){var n=e.mpOptions.mpObservers;Object.keys(t).forEach((function(e){n.push({paths:H(e),observer:t[e]})}))}}function G(t,e){0===e.indexOf("/")&&(t="");var n=t.split("/"),r=e.split("/");n.pop();while(r.length){var i=r.shift();""!==i&&"."!==i&&(".."!==i?n.push(i):n.pop())}return n.join("/")}function W(e,n){e&&(Object.keys(e).forEach((function(n){var r=e[n];r.name=n,r.target=r.target?String(r.target):G(t.__wxRoute,n)})),n.mpOptions.relations=e)}function V(t,e){t&&(Array.isArray(t)||(t=[t]),e.mpOptions.externalClasses=t,e.mpOptions.properties||(e.mpOptions.properties=Object.create(null)),t.forEach((function(t){e.mpOptions.properties[k(t)]={type:String,value:""}})))}function Y(t,e){t&&R(t,e)}function J(t,e){t&&P.forEach((function(n){var r=t[n];m(r)&&(e[$[n]]=r)}))}function Z(t){var e=t.data,n=t.options,r=t.methods,i=t.behaviors,o=t.lifetimes,a=t.observers,s=t.relations,u=t.properties,c=t.pageLifetimes,l=t.externalClasses,f={mixins:[],props:{},watch:{},mpOptions:{mpObservers:[]}};return h(f),p(e,f),N(n,f),M(r,f),B(i,f),Y(o,f),K(a,f),W(s,f),A(u,f),J(c,f),V(l,f),R(t,f),D(t),f}function X(t,e,n,r){if(e){var i="_$".concat(t,"Handlers");(r[i]||(r[i]=[])).push((function(){e.call(r,n)}))}}function Q(t,e,n){var r="linked",i=t.name,o=n._$relationNodes||(n._$relationNodes=Object.create(null));(o[i]||(o[i]=[])).push(e),X(r,t[r],e,n)}function tt(t,e,n){var r="unlinked";X(r,t[r],e,n)}function et(t,e,n){var r=t&&t.$options.mpOptions&&t.$options.mpOptions.relations;if(!r)return[];var i=Object.keys(r).find((function(t){var i=r[t];return i.target===e&&i.type===n}));return i?[r[i],t]:[]}function nt(t,e,n){var r=n(t,t.$options.mpOptions.path),i=s(r,2),o=i[0],a=i[1];o&&(Q(o,t,a),Q(e,a,t),tt(o,t,a),tt(e,a,t))}function rt(t,e){var n=t.type;"parent"===n?nt(e,t,(function(t,e){return et(t.$parent,e,"child")})):"ancestor"===n&&nt(e,t,(function(t,e){var n=t.$parent;while(n){var r=et(n,e,"descendant");if(r.length)return r;n=n.$parent}return[]}))}function it(t){var e=t.$options.mpOptions||{},n=e.relations;n&&Object.keys(n).forEach((function(e){rt(n[e],t)}))}function ot(t,e){var n=t["_$".concat(e,"Handlers")];n&&n.forEach((function(t){return t()}))}var at={enumerable:!0,configurable:!0,get:b,set:b};function st(t,e,n){at.get=function(){return this[e][n]},at.set=function(t){this[e][n]=t},Object.defineProperty(t,n,at)}function ut(t,e,n){var r=t.replace(/\[(\d+?)\]/g,".$1").split(".");return r.reduce((function(t,n,i){if(i!==r.length-1)return"undefined"===typeof t[n]&&(t[n]={}),t[n];t[n]=e}),n),1===r.length}function ct(t,e){var n=this;y(t)&&(Object.keys(t).forEach((function(e){ut(e,t[e],n.data)&&!_(n,e)&&st(n,x,e)})),this.$forceUpdate(),m(e)&&this.$nextTick(e))}var lt=Object.prototype.toString,ft=function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=lt.call(n);if("[object Array]"===r)return e=n.slice(0),e;if("[object Object]"===r){for(var i in n)e[i]=t(e[i],n[i]);return e}if("[object Date]"===r)return new Date(n.getTime());if("[object RegExp]"===r){var o=String(n),a=o.lastIndexOf("/");return new RegExp(o.slice(1,a),o.slice(a+1))}return n},dt=function(t){return ft("[object Array]"===lt.call(t)?[]:{},t)},pt=(r={},a(r,String,""),a(r,Number,0),a(r,Boolean,!1),a(r,Object,null),a(r,Array,[]),a(r,null,null),r);function ht(t){return pt[t]}function vt(t){return y(t)?_(t,"value")?t.value:ht(t.type):ht(t)}function gt(t){return y(t)?t.type:t}function mt(t,e,n,r){var i=n[t];if(void 0!==i){var o=e[t],a=gt(o);i=yt(i,a);var s=o&&o.observer;return s&&setTimeout((function(){_t(s,r,i)}),4),i}return vt(e[t])}function yt(t,e){return e===Boolean?!!t:e===String?String(t):t}function _t(t,e,n,r){try{"function"===typeof t?t.call(e,n,r):"string"===typeof t&&"function"===typeof e[t]&&e[t](n,r)}catch(i){console.error("execute observer ".concat(t," callback fail! err: ").concat(i))}}function bt(t,e){var n=t.$options.mpOptions.properties;if(n){var r=dt(t.$options.propsData)||{},i=function(i){var o=!!y(n[i])&&n[i].observer,a=mt(i,n,r,t);Object.defineProperty(e,i,{enumerable:!0,configurable:!0,get:function(){return a},set:function(e){var n=a;e===a||e!==e&&a!==a||(a=Array.isArray(e)?e.slice(0):e,o&&_t(o,t,e,n),t.$forceUpdate())}})};for(var o in n)i(o)}}function wt(t){var e=t.$options.mpOptions&&t.$options.mpOptions.properties,n=t.$options.propsData;n&&e&&Object.keys(e).forEach((function(r){_(n,r)&&(t[r]=yt(n[r],gt(e[r])))}))}function St(t){var e=JSON.parse(JSON.stringify(t.$options.mpOptions.data||{}));t[x]=e;var n={get:function(){return t[x]},set:function(e){t[x]=e}};Object.defineProperties(t,{data:n,properties:n}),t.setData=ct,bt(t,e),Object.keys(e).forEach((function(e){st(t,x,e)}))}function kt(t){var e=t.$emit;t.triggerEvent=function(n,r,i){var o={dataset:t.$el.dataset},a={target:o,currentTarget:o,detail:r,preventDefault:b,stopPropagation:b};e.call(t,n,a)},t.$emit=function(){t.triggerEvent.apply(t,arguments)},t.getRelationNodes=function(e){return(t._$relationNodes&&t._$relationNodes[e]||[]).filter((function(t){return!t._isDestroyed}))},t._$updateProperties=wt}function xt(t){var e=t.$options.watch;e&&Object.keys(e).forEach((function(n){var r=e[n];if(r.mounted){var i=t[n],o=r.handler;"string"===typeof o&&(o=t[o]),o&&o.call(t,i,i)}}))}var Ot={beforeCreate:function(){this._renderProxy=this,this._$self=this,this._$noop=b},created:function(){St(this),kt(this),it(this)},mounted:function(){xt(this)},destroyed:function(){ot(this,"unlinked")}};function Tt(e){var n=j(e);n.mixins.unshift(Ot),n.mpOptions.path=t.__wxRoute,t.__wxComponents[t.__wxRoute]=n}function $t(t){t.onServiceAttached||(t.onServiceAttached=[]),t.onServiceAttached.push((function(){ot(this,"linked")}))}function Pt(e){var n=Z(e);n.mixins.unshift(Ot),n.mpOptions.path=t.__wxRoute,$t(n),t.__wxComponents[t.__wxRoute]=n}function Ct(t){return t}t.__wxRoute="",t.__wxComponents=Object.create(null),t.__wxVueOptions=Object.create(null);var Et=i.default.nextTick;e.nextTick=Et;var It=uni.__$wx__,jt=It;e.default=jt}).call(this,n("c8ba"))}},[["0a1f","app-config"]]]);