var dsl=function(){"use strict";const e={initApp:"quickapp.app.initApp",initPage:"quickapp.page.initPage",destroyPage:"quickapp.page.destroyPage",fireEvent:"quickapp.page.fireEvent",onShow:"quickapp.page.onShow",onHide:"quickapp.page.onHide",onBackPress:"quickapp.page.onBackPress",onMenuPress:"quickapp.page.onMenuPress",onOrientationChange:"quickapp.page.onOrientationChange",onConfigurationChanged:"quickapp.page.onConfigurationChanged",onRefresh:"quickapp.page.onRefresh",callbackDone:"quickapp.page.callbackDone"},t=/^@(app)-application\//,n=/^@(app)-component\//,r=/^@(app)-module\//;function o(e){return e.replace(t,"").replace(n,"").replace(r,"")}var i={};function a(e,t,n){return"function"==typeof global.compileAndRunScript?function(e,t,n){let r="(function (";const o=[],i=[];for(const t in e)o.push(t),i.push(e[t]);for(let e=0;e=0&&Math.floor(t)===t&&isFinite(e)}function d(e){return i(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function v(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===l?JSON.stringify(e,null,2):String(e)}function h(e){var t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){for(var n=Object.create(null),r=e.split(","),o=0;o-1)return e.splice(n,1)}}var _=Object.prototype.hasOwnProperty;function b(e,t){return _.call(e,t)}function $(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var A=/-(\w)/g,k=$(function(e){return e.replace(A,function(e,t){return t?t.toUpperCase():""})}),w=$(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),O=/\B([A-Z])/g,x=$(function(e){return e.replace(O,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function S(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function j(e,t){for(var n in t)e[n]=t[n];return e}function E(e,t,n){}var P=function(e,t,n){return!1},I=function(e){return e};function D(e,t){if(e===t)return!0;var n=c(e),r=c(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var o=Array.isArray(e),i=Array.isArray(t);if(o&&i)return e.length===t.length&&e.every(function(e,n){return D(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(o||i)return!1;var a=Object.keys(e),s=Object.keys(t);return a.length===s.length&&a.every(function(n){return D(e[n],t[n])})}catch(e){return!1}}function F(e,t){for(var n=0;n0,X=W&&W.indexOf("edge/")>0,G=(W&&W.indexOf("android"),W&&/iphone|ipad|ipod|ios/.test(W)||"ios"===K),Z=(W&&/chrome\/\d+/.test(W),W&&/phantomjs/.test(W),W&&W.match(/firefox\/(\d+)/),{}.watch);if(U)try{var Y={};Object.defineProperty(Y,"passive",{get:function(){}}),window.addEventListener("test-passive",null,Y)}catch(e){}var ee=function(){return void 0===B&&(B=!U&&!z&&void 0!==u&&(u.process&&"server"===u.process.env.VUE_ENV)),B},te=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,oe="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);re="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ie=E,ae=0,se=function(){"undefined"!=typeof SharedObject?this.id=SharedObject.uid++:this.id=ae++,this.subs=[]};function ce(e){se.SharedObject.targetStack.push(e),se.SharedObject.target=e}function ue(){se.SharedObject.targetStack.pop(),se.SharedObject.target=se.SharedObject.targetStack[se.SharedObject.targetStack.length-1]}se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){g(this.subs,e)},se.prototype.depend=function(){se.SharedObject.target&&se.SharedObject.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(i&&!b(o,"default"))a=!1;else if(""===a||a===x(e)){var c=Me(String,o.type);(c<0||s0&&(it((u=e(u,(n||"")+"_"+c))[0])&&it(p)&&(r[l]=de(p.text+u[0].text),u.shift()),r.push.apply(r,u)):s(u)?it(p)?r[l]=de(p.text+u):""!==u&&r.push(de(u)):it(u)&&it(p)?r[l]=de(p.text+u.text):(a(t._isVList)&&i(u.tag)&&o(u.key)&&i(n)&&(u.key="__vlist"+n+"_"+c+"__"),r.push(u)));return r}(e):void 0}function it(e){return i(e)&&i(e.text)&&!1===e.isComment}function at(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),o=0;o0,a=e?!!e.$stable:!i,s=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(a&&n&&n!==r&&s===n.$key&&!i&&!n.$hasNormal)return n;for(var c in o={},e)e[c]&&"$"!==c[0]&&(o[c]=lt(t,c,e[c]))}else o={};for(var u in t)u in o||(o[u]=pt(t,u));return e&&Object.isExtensible(e)&&(e._normalized=o),R(o,"$stable",a),R(o,"$key",s),R(o,"$hasNormal",i),o}function lt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function pt(e,t){return function(){return e[t]}}function ft(e,t){var n,r,o,a,s;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,o=e.length;rt.createEvent("Event").timeStamp&&(en=function(){return tn.now()})}function nn(){var e,t;for(en(),Zt=!0,Jt.sort(function(e,t){return e.id-t.id}),Yt=0;YtYt&&Jt[n].id>e.id;)n--;Jt.splice(n+1,0,e)}else Jt.push(e);Gt||(Gt=!0,Qe(nn))}}(this)},on.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||c(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ne(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},on.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},on.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},on.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||g(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var an={enumerable:!0,configurable:!0,get:E,set:E};function sn(e,t,n){an.get=function(){return this[t][n]},an.set=function(e){this[t][n]=e},Object.defineProperty(e,n,an)}function cn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},o=e.$options._propKeys=[];e.$parent&&_e(!1);var i=function(i){o.push(i);var a=De(i,t,n,e);Ae(r,i,a),i in e||sn(e,"_props",i)};for(var a in t)i(a);_e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?E:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;p(t=e._data="function"==typeof t?function(e,t){ce();try{return e.call(t,t)}catch(e){return Ne(e,t,"data()"),{}}finally{ue()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,o=(e.$options.methods,n.length);for(;o--;){var i=n[o];r&&b(r,i)||(a=void 0,36!==(a=(i+"").charCodeAt(0))&&95!==a&&sn(e,"_data",i))}var a;$e(t,!0)}(e):$e(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ee();for(var o in t){var i=t[o],a="function"==typeof i?i:i.get;r||(n[o]=new on(e,a||E,E,un)),o in e||ln(e,o,i)}}(e,t.computed),t.watch&&t.watch!==Z&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var o=0;o-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===l.call(n)&&e.test(t));var n}function bn(e,t){var n=e.cache,r=e.keys,o=e._vnode;for(var i in n){var a=n[i];if(a){var s=gn(a.componentOptions);s&&!t(s)&&$n(n,i,r,o)}}}function $n(e,t,n,r){var o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,g(n,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=vn++,t._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Pe(hn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Ht(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=st(t._renderChildren,o),e.$scopedSlots=r,e._c=function(t,n,r,o){return Mt(e,t,n,r,o,!1)},e.$createElement=function(t,n,r,o){return Mt(e,t,n,r,o,!0)};var i=n&&n.data;Ae(e,"$attrs",i&&i.attrs||r,null,!0),Ae(e,"$listeners",t._parentListeners||r,null,!0)}(t),Wt(t,"beforeCreate"),"mp-toutiao"!==t.mpHost&&function(e){var t=at(e.$options.inject,e);t&&(_e(!1),Object.keys(t).forEach(function(n){Ae(e,n,t[n])}),_e(!0))}(t),cn(t),"mp-toutiao"!==t.mpHost&&function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),"mp-toutiao"!==t.mpHost&&Wt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(yn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=we,e.prototype.$watch=function(e,t,n){if(p(t))return dn(this,e,t,n);(n=n||{}).user=!0;var r=new on(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Ne(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(yn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var o=0,i=e.length;o1?S(t):t;for(var n=S(arguments,1),r='event handler for "'+e+'"',o=0,i=t.length;oparseInt(this.max)&&$n(s,c[0],c,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return L}};Object.defineProperty(e,"config",t),e.util={warn:ie,extend:j,mergeOptions:Pe,defineReactive:Ae},e.set=ke,e.delete=we,e.nextTick=Qe,e.observable=function(e){return $e(e),e},e.options=Object.create(null),N.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,j(e.options.components,kn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=S(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Pe(this.options,e),this}}(e),mn(e),function(e){N.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(yn),Object.defineProperty(yn.prototype,"$isServer",{get:ee}),Object.defineProperty(yn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(yn,"FunctionalRenderContext",{value:Ct}),yn.version="2.6.11";function wn(e,t,r){n.setElementAttr(e,t,r)}var On=Object.freeze({namespaceMap:{},createElement:function(e){var r=t.createElement(e);return n.bindElementMethods(r),r},createElementNS:function(e,n){return t.createElement(e+":"+n)},createTextNode:function(e){return t.createTextNode(e)},createComment:function(e){return t.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){n.setElementAttr(e.parentNode,"value",t)},setAttribute:wn}),xn={create:function(e,t){Cn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Cn(e,!0),Cn(t))},destroy:function(e){Cn(e,!0)}};function Cn(e,t){var n=e.data.ref;if(i(n)){var r=e.context,o=e.componentInstance||e.elm,a=r.$refs;t?Array.isArray(a[n])?g(a[n],o):a[n]===o&&(a[n]=void 0):e.data.refInFor?Array.isArray(a[n])?a[n].indexOf(o)<0&&a[n].push(o):a[n]=[o]:a[n]=o}}y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0);var Sn=y("text,number,password,search,email,tel,url"),jn=new le("",{},[]),En=["create","activate","update","remove","destroy"];function Pn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&i(e.data)===i(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=i(n=e.data)&&i(n=n.attrs)&&n.type,o=i(n=t.data)&&i(n=n.attrs)&&n.type;return r===o||Sn(r)&&Sn(o)}(e,t)||a(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&o(t.asyncFactory.error))}function In(e,t,n){var r,o,a={};for(r=t;r<=n;++r)i(o=e[r].key)&&(a[o]=r);return a}var Dn={create:Fn,update:Fn,destroy:function(e){Fn(e,jn)}};function Fn(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,o,i=e===jn,a=t===jn,s=Mn(e.data.directives,e.context),c=Mn(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],o=c[n],r?(o.oldValue=r.value,o.oldArg=r.arg,qn(o,"update",t,e),o.def&&o.def.componentUpdated&&l.push(o)):(qn(o,"bind",t,e),o.def&&o.def.inserted&&u.push(o));if(u.length){var p=function(){for(var n=0;n1,P=t.context.$options.style||{},I=P[$],D=P["@TRANSITION"]&&P["@TRANSITION"][k]||{},F=function(e,t,n,r,o,i){var a={},s=t[n],c=t[r],u=t[o];if(s)for(var l in s)a[l]=e.style[l];if(u)for(var p in u)0!==p.indexOf("transition")&&(a[p]=u[p]);c&&j(a,c);return a}(n,P,$,A,k,t.context),M=Object.keys(F).length>0,N=n._enterCb=T(function(){N.cancelled?C&&C(n):x&&x(n),n._enterCb=null});if(setTimeout(function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];(r&&r.context===t.context&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),O&&O(n,N),M)?t.context.$requireQuickappModule("animation").transition(n.ref,{styles:F,duration:D.duration||0,delay:D.delay||0,timingFunction:D.timingFunction||"linear"},S?E:N):S||N()},16),w&&w(n),I)for(var q in I)n.setStyle(q,I[q]);M||S||N()}}}function ur(e,t){if(!o(e.data.domProps)||!o(t.data.domProps)){var n,r,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in i(c.__ob__)&&(c=t.data.domProps=j({},c)),s)o(c[n])&&wn(a,n,"");for(n in c){if(r=c[n],"value"===n)wn(a,n,o(r)?"":String(r));else wn(a,n,r)}}}var lr=function(e){var t,n,r={},c=e.modules,u=e.nodeOps;for(t=0;tv?_(e,o(n[m+1])?null:n[m+1].elm,n,d,m,r):d>m&&$(t,f,v)}(f,y,m,n,l):i(m)?(i(e.text)&&u.setTextContent(f,""),_(f,null,m,0,m.length-1,n)):i(y)?$(y,0,y.length-1):i(e.text)&&u.setTextContent(f,""):e.text!==t.text&&u.setTextContent(f,t.text),i(v)&&i(d=v.hook)&&i(d=d.postpatch)&&d(e,t)}}}function O(e,t,n){if(a(n)&&i(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r1,d=e.context.$options.style||{},v=d[o],h=d[i]||d[a],y=d["@TRANSITION"]&&d["@TRANSITION"][a]||{},m=n._leaveCb=T(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),m.cancelled?l&&l(n):(t(),u&&u(n)),n._leaveCb=null});p?p(g):g();function g(){var t=e.context.$requireQuickappModule("animation");function r(){t.transition(n.ref,{styles:h,duration:y.duration||0,delay:y.delay||0,timingFunction:y.timingFunction||"linear"},f?E:m)}m.cancelled||(e.data.show||((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),s&&s(n),v?t.transition(n.ref,{styles:v},r):r(),c&&c(n,m),h||f||m())}}}].concat(Ln),LONG_LIST_THRESHOLD:10}),pr={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?tt(n,"postpatch",function(){pr.componentUpdated(e,t,n)}):fr(e,t,n.context),e._vOptions=[].map.call(e.options,vr)):("textarea"===n.tag||Jn(e.attr.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||e.addEventListener("change",hr))},componentUpdated:function(e,t,n){if("select"===n.tag){fr(e,t,n.context);var r=e._vOptions,o=e._vOptions=[].map.call(e.options,vr);if(o.some(function(e,t){return!D(e,r[t])}))(e.multiple?t.value.some(function(e){return dr(e,o)}):t.value!==t.oldValue&&dr(t.value,o))&&yr(e,"change")}}};function fr(e,t,n){!function(e,t,n){var r,o,i=t.value,a=e.multiple;if(a&&!Array.isArray(i))return;for(var s=0,c=e.options.length;s-1,o.selected!==r&&(o.selected=r);else if(D(vr(o),i))return void(e.selectedIndex!==s&&(e.selectedIndex=s));a||(e.selectedIndex=-1)}(e,t)}function dr(e,t){return t.every(function(t){return!D(t,e)})}function vr(e){return"_value"in e?e._value:e.value}function hr(e){e.target.composing=!1,yr(e.target,"input")}function yr(e,n){var r=t.createEvent(n);e.dispatchEvent(r)}var mr={model:pr,show:{bind:function(e,t,r){var o=t.value,i=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display||"";n.setElementStyle(e,"display",o?i:"none")},update:function(e,t,r){var o=t.value;o!==t.oldValue&&n.setElementStyle(e,"display",o?e.__vOriginalDisplay:"none")},unbind:function(e,t,r,o,i){i||n.setElementStyle(e,"display",e.__vOriginalDisplay)}}};j(yn.options.directives,mr),j(yn.options.components,{});var gr=["public","protected","private"];yn.config.mustUseProp=function(){},yn.config.isReservedTag=Kn,yn.config.isRuntimeComponent=Wn,yn.config.isUnknownElement=function(){},yn.prototype.__patch__=lr,yn.prototype.$mount=function(e,t){var n=this.$options.type;void 0===n&&(n="component");var r=function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=fe),Wt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new on(e,r,E,{before:function(){e._isMounted&&!e._isDestroyed&&Wt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(Wt(e,"onServiceCreated"),Wt(e,"onServiceAttached"),e._isMounted=!0,Wt(e,"mounted")),e}(this,e&&function(e,t){if("object"==typeof e&&null!==e)return e;var n=t.body,r=t.createElement("div");return n.appendChild(r),r}.bind(this)(e,this.$document),t);return"page"===n&&(this._connectVm2Page&&this._connectVm2Page(),this._registerPageLifecycle&&this._registerPageLifecycle()),r},yn.prototype._initExternalData=function(){var e=yn.config.externalData;if("page"===this.$options.type&&e)if(this.$options._descriptor){var t=this._page.intent&&this._page.intent.fromExternal;for(var n in this._page.intent&&void 0!==this._page.intent.fromExternal||(t=!0),global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 页面VM中声明的权限定义:"+JSON.stringify(this.$options._descriptor)),this.$options.$props&&!function(e){for(var t in e)return!1;return!0}(e)&&console.warn("### App Framework ### 页面VM中不支持props,推荐在public或protected中声明参数"),e){var r=this.$options._descriptor[n];if(r){var o=t&&gr.indexOf(r.access)>0,i=!t&&gr.indexOf(r.access)>1;o||i?console.warn("### App Framework ### 传递外部数据"+n+"在VM中声明为"+r.access+",放弃更新"):(global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 传递外部数据"+n+",原值为:"+JSON.stringify(this._data[n])),global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 传递外部数据"+n+",新值为:"+JSON.stringify(e[n])),this.$options.data[n]=e[n])}else global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 传递外部数据"+n+"在VM中未声明,放弃更新")}}else(function e(t){for(var n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];if("function"==typeof Object.assign)Object.assign.apply(Object,[t].concat(n));else{var o=n.shift();for(var i in o)t[i]=o[i];n.length&&e.apply(void 0,[t].concat(n))}return t})(this.$options.data,e)},yn.prototype._mergeAccess2Data=function(e){if("function"==typeof e.data&&(e.data=e.data()),e.data&&gr.some(function(t){return e[t]}))throw new Error("页面VM对象中的属性data不可与"+gr.join(",")+"同时存在,请使用private替换data名称");e.data||(e.data={},e._descriptor={},gr.forEach(function(t){var n=typeof e[t];if("object"===n)for(var r in e.data=Object.assign(e.data,e[t]),e[t])e._descriptor[r]={access:t};else"function"===n&&console.warn("页面VM对象中的属性"+t+"的值不能是函数,请使用对象")}))};var _r=yn.prototype._init;yn.prototype._init=function(e){var t=this.constructor.options;"page"===t.type&&(this._connectLifecycle&&this._connectLifecycle(t),this._mergeAccess2Data&&this._mergeAccess2Data(t)),_r.call(this,e)},yn.prototype._connectLifecycle=function(e){var t=this;e.mounted=e.mounted||[],e.mounted=Array.isArray(e.mounted)?e.mounted:[e.mounted],e.mounted.push(function(){t._ready=!0});e.created=e.created||[],e.created=Array.isArray(e.created)?e.created:[e.created],e.created.push(function(){t._initExternalData()}),e.created.unshift(function(){var e=t.$options.onInit;e&&"function"==typeof e&&e.call(t,t._page._meta.query)})},e.Vue=yn}}(l={exports:{}},l.exports),l.exports),d=(p=f)&&p.__esModule?p.default:p;const v={onShow:"onShow",onHide:"onHide",onBackPress:"onBackPress",onMenuPress:"onMenuPress",onDestroy:"onDestroy",onConfigurationChanged:"onConfigurationChanged",onOrientationChange:"onOrientationChange",onRefresh:"onRefresh"},h={};let y=null;let m,g=null;function _(e,t,n,r,o){const a=function(e,t){return i.quickapp.runtime.helper.getDocumentNodeByRef(e,t)}(e.doc,t);if(a){return function(e,t,n,r){if(!e)return;const o=i.quickapp.runtime.helper.createEvent(t);if(Object.assign(o,n),global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### fireEventWrap():事件(${t})的参数:${JSON.stringify(n)}, ${JSON.stringify(r)}`),r){const t=r.attr||{};for(const n in t)i.quickapp.runtime.helper.setElementAttr(e,n,t[n],!0);const n=r.style||{};for(const t in n)i.quickapp.runtime.helper.setElementStyle(e,t,n[t],!0)}return e.dispatchEvent(o)}(a,n,r,{attr:o})}return new Error(`fireEvent: 无效element索引 "${t}"`)}function b(e){g||(g=Promise.resolve().then(()=>{e.doc.listener.updateFinish(),g=null}))}function $(e,t,n,r){const s=e.id,c=e.doc.listener,u=c.addActions;c.addActions=((...t)=>{b(e),u.apply(c,t)});const l=e.doc,p=l.createElement("div");l.documentElement.appendChild(p);const f=h[s]={instanceId:s,document:l},g=f.Vue=function(e,t,n){const r=t.page,o=t.appRequireModule,a={setElementAttr(e,t,n){i.quickapp.runtime.helper.setElementAttr(e,t,n)},setElementStyle(e,t,n){"number"==typeof n&&(n+=""),i.quickapp.runtime.helper.setElementStyle(e,t,n)},bindElementMethods(e){i.quickapp.dock.bindComponentMethods(r,e)}},s={};d(s,r.doc,a);const c=s.Vue;global.Vue=!0;const u=h[e],l=/^quickapp:/i,p=c.config.isReservedTag||function(){return!1},f=c.config.isRuntimeComponent||function(){return!1};return c.config.externalData=n,c.config.isReservedTag=function(e){return f(e),p(e)||l.test(e)},c.config.parsePlatformTagName=function(e){return e.replace(l,"")},c.prototype.$instanceId=e,c.prototype.$document=u.document,c.prototype._connectVm2Page=function(){r.vm=this},Object.defineProperty(c.prototype,"$app",{get(){if(!this._isDestroyed)return r.app}}),Object.defineProperty(c.prototype,"$page",{get(){if(this._isDestroyed)return;const e=r.app;return Object.assign({setTitleBar:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 setTitleBar ----`),i.quickapp.runtime.helper.updatePageTitleBar(r.doc,e))},scrollTo:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 scrollTo ----`),i.quickapp.runtime.helper.scrollTo(r.doc,e))},scrollBy:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 scrollBy ----`),i.quickapp.runtime.helper.scrollBy(r.doc,e))},exitFullscreen:function(){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 exitFullscreen ----`),i.quickapp.runtime.helper.exitFullscreen(r.doc))},setStatusBar:function(e){r&&r.doc&&(console.log(`### App Framework ### 页面 ${r.id} 调用 setStatusBar ----`),i.quickapp.runtime.helper.updatePageStatusBar(r.doc,e))},finish:function(){r&&r.doc&&(null===y&&(y=i.quickapp.platform.requireModule(e,"system.page")),y.finishPage(r.id))}},r&&r._meta)}}),Object.defineProperties(c.prototype,{$valid:{get:()=>!!r&&r._valid,configurable:!1},$visible:{get:()=>!!r&&r._valid&&r._visible,configurable:!1},$destroyed:{get:()=>!!r&&r.vm&&r.vm._isDestroyed,configurable:!1}}),c.prototype._registerPageLifecycle=function(){Object.keys(v).forEach(e=>{this.$on(`xlc:${e}`,(...t)=>{let n=!1;const r=this.$options[e];if(!r||"function"!=typeof r)return;const o=Array.isArray(r)?r:[r];if(o&&o.length)for(let e=0;e{},$app_bootstrap$:()=>{},$app_define_wrap$:()=>{},$app_require$:t=>i.quickapp.platform.requireModule(e,o(t)),$app_evaluate$:i.quickapp.dock.makeEvaluateBuildScript(r)},r);let $;"function"==typeof m&&m(_),$="(function(global){"+($=t.toString())+"\n })(Object.create(this))";{const t=e.pageName?`${e.pageName}/${e.pageComponent}.js`:"";global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### bundleUrl----",t),a(_,$,t)}return e.doc.listener.createFinish(),f}function A(e,t,n,...r){let o=!1;return t.vm&&t.vm._ready?(t.vm.$emit(`xlc:${e}`,n,...r),o=t.vm._events[`xlc:${e}`].result,b(t),global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### ${e} (${t.id})----`)):global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### ${e} 页面(${t.id})创建失败, 无法响应事件---- `),o}return{init:function(t){i.quickapp=t,global.process=global.process||{},global.process.env={},t.subscribe(e.initApp,e=>(function(e,t){global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### 开始初始化App(${e.id})`);const n=t=>i.quickapp.platform.requireModule(e,o(t)),r=t=>{e.$def=t,"function"==typeof c&&c(t)},u=()=>{global.Env&&"trace"===global.Env.logLevel&&console.trace(`### App Framework ### 调用App(${e.name})生命周期---- onCreate`),e.$emit("applc:onCreate")};"function"==typeof s&&s({context:i,inst:e,instRequireModule:n});const l=i.quickapp.dock.makeEvaluateBuildScript(null);let p;p=`(function(global){"use strict"; ${p=t.toString()}; \n })(Object.create(this))`,global.Env&&"trace"===global.Env.logLevel&&console.trace("### App Framework ### 开始编译代码----"),a({$app_define$:r,$app_require$:n,$app_bootstrap$:u,$app_evaluate$:l},p,"app.js")})(...e)),t.subscribe(e.initPage,e=>$(...e)),t.subscribe(e.destroyPage,e=>{!function(e){e.vm&&(e.vm.$emit("xlc:onDestroy"),e.vm.$destroy())}(...e)}),t.subscribe(e.fireEvent,e=>{const t=_(...e);return b(e[0]),t}),t.subscribe(e.callbackDone,e=>{b(e[0])}),t.subscribe(e.onShow,e=>A(v.onShow,...e)),t.subscribe(e.onHide,e=>A(v.onHide,...e)),t.subscribe(e.onBackPress,e=>A(v.onBackPress,...e)),t.subscribe(e.onMenuPress,e=>(A(v.onMenuPress,...e),function(e){let t=!1;if(e.vm&&e.vm._ready){const n=e.vm._events,r=n&&n["xlc:onMenuPress"]&&n["xlc:onMenuPress"].handlers;r&&r.length&&(t=!0)}return t}(...e))),t.subscribe(e.onConfigurationChanged,e=>A(v.onConfigurationChanged,...e)),t.subscribe(e.onOrientationChange,e=>A(v.onOrientationChange,...e)),t.subscribe(e.onRefresh,e=>A(v.onRefresh,...e))},onInitApp:function(e){s=e},onDefineApp:function(e){c=e},onInitPage:function(e){m=e}}}(); !function(){"use strict";class e{constructor(){this._events=Object.create(null)}on(e,t){const n=this;if(Array.isArray(e))for(let s=0,r=e.length;se);const n=r;!function(){"use strict";var t=["base64ToArrayBuffer","arrayBufferToBase64","addInterceptor","removeInterceptor","request","uploadFile","downloadFile","connectSocket","onSocketOpen","onSocketError","sendSocketMessage","onSocketMessage","closeSocket","onSocketClose","navigateTo","redirectTo","reLaunch","switchTab","navigateBack","setStorage","setStorageSync","getStorage","getStorageSync","getStorageInfo","getStorageInfoSync","removeStorage","removeStorageSync","clearStorage","clearStorageSync","getLocation","chooseLocation","openLocation","createMapContext","chooseImage","previewImage","getImageInfo","saveImageToPhotosAlbum","compressImage","getRecorderManager","getBackgroundAudioManager","createInnerAudioContext","chooseVideo","saveVideoToPhotosAlbum","createVideoContext","createCameraContext","createLivePlayerContext","createLivePusherContext","getSystemInfo","getSystemInfoSync","canIUse","onMemoryWarning","getNetworkType","onNetworkStatusChange","onAccelerometerChange","startAccelerometer","stopAccelerometer","onCompassChange","startCompass","stopCompass","onGyroscopeChange","startGyroscope","stopGyroscope","makePhoneCall","scanCode","setClipboardData","getClipboardData","setScreenBrightness","getScreenBrightness","setKeepScreenOn","onUserCaptureScreen","vibrateLong","vibrateShort","addPhoneContact","openBluetoothAdapter","startBluetoothDevicesDiscovery","onBluetoothDeviceFound","stopBluetoothDevicesDiscovery","onBluetoothAdapterStateChange","getConnectedBluetoothDevices","getBluetoothDevices","getBluetoothAdapterState","closeBluetoothAdapter","writeBLECharacteristicValue","readBLECharacteristicValue","onBLEConnectionStateChange","onBLECharacteristicValueChange","notifyBLECharacteristicValueChange","getBLEDeviceServices","getBLEDeviceCharacteristics","createBLEConnection","closeBLEConnection","onBeaconServiceChange","onBeaconUpdate","getBeacons","startBeaconDiscovery","stopBeaconDiscovery","checkIsSupportSoterAuthentication","checkIsSoterEnrolledInDevice","startSoterAuthentication","hideKeyboard","onKeyboardHeightChange","showToast","hideToast","showLoading","hideLoading","showModal","showActionSheet","setNavigationBarTitle","setNavigationBarColor","showNavigationBarLoading","hideNavigationBarLoading","setTabBarItem","setTabBarStyle","hideTabBar","showTabBar","setTabBarBadge","removeTabBarBadge","showTabBarRedDot","hideTabBarRedDot","onTabBarMidButtonTap","setBackgroundColor","setBackgroundTextStyle","createAnimation","pageScrollTo","onWindowResize","offWindowResize","loadFontFace","startPullDownRefresh","stopPullDownRefresh","createSelectorQuery","createIntersectionObserver","$emit","$on","$once","$off","saveFile","getSavedFileList","getSavedFileInfo","removeSavedFile","getFileInfo","openDocument","getFileSystemManager","createOffscreenCanvas","createCanvasContext","canvasToTempFilePath","canvasPutImageData","canvasGetImageData","getProvider","login","checkSession","getUserInfo","share","showShareMenu","hideShareMenu","requestPayment","subscribePush","unsubscribePush","onPush","offPush","requireNativePlugin","upx2px","restoreGlobal","getSubNVueById","getCurrentSubNVue","setPageMeta","createRewardedVideoAd"];let r=!1;try{const e={};Object.defineProperty(e,"passive",{get(){r=!0}}),window.addEventListener("test-passive",null,e)}catch(e){}const o=Object.prototype.toString,a=Object.prototype.hasOwnProperty;function i(e){return"function"==typeof e}function c(e){return"[object Object]"===o.call(e)}function s(e,t){return a.call(e,t)}const u=decodeURIComponent;function l(e){const t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(e=>{const r=e.replace(/\+/g," ").split("="),n=u(r.shift()),o=r.length>0?u(r.join("=")):null;void 0===t[n]?t[n]=o:Array.isArray(t[n])?t[n].push(o):t[n]=[t[n],o]}),t):t}function d(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}function p(e){return function(){try{return e.apply(e,arguments)}catch(e){console.error(e)}}}const f=["invoke","success","fail","complete","returnValue"],g={},y={};function h(e,t){Object.keys(t).forEach(r=>{-1!==f.indexOf(r)&&i(t[r])&&(e[r]=function(e,t){const r=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return r?function(e){const t=[];for(let r=0;r{-1!==f.indexOf(r)&&i(t[r])&&function(e,t){const r=e.indexOf(t);-1!==r&&e.splice(r,1)}(e[r],t[r])})}function m(e){return function(t){return e(t)||t}}function v(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function S(e,t){let r=!1;for(let n=0;ne(t)}}function _(e,t={}){return["success","fail","complete"].forEach(r=>{if(Array.isArray(e[r])){const n=t[r];t[r]=function(t){S(e[r],t).then(e=>i(n)&&n(e)||e)}}}),t}function O(e,t){const r=[];Array.isArray(g.returnValue)&&r.push(...g.returnValue);const n=y[e];return n&&Array.isArray(n.returnValue)&&r.push(...n.returnValue),r.forEach(e=>{t=e(t)||t}),t}function T(e,t,r,...n){const o=function(e){const t=Object.create(null);Object.keys(g).forEach(e=>{"returnValue"!==e&&(t[e]=g[e].slice())});const r=y[e];return r&&Object.keys(r).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(r[e]))}),t}(e);if(o&&Object.keys(o).length){if(Array.isArray(o.invoke)){return S(o.invoke,r).then(e=>t(_(o,e),...n))}return t(_(o,r),...n)}return t(r,...n)}const j={returnValue:e=>v(e)?e.then(e=>e[1]).catch(e=>e[0]):e},C=/^\$|restoreGlobal|getCurrentSubNVue|getMenuButtonBoundingClientRect|^report|interceptors|Interceptor$|getSubNVueById|requireNativePlugin|upx2px|hideKeyboard|canIUse|^create|Sync$|Manager$|base64ToArrayBuffer|arrayBufferToBase64/,k=/^create|Manager$/,B=["request","downloadFile","uploadFile","connectSocket"],A=/^on/;function x(e){return C.test(e)}function w(e){return A.test(e)&&"onPush"!==e}function E(e){return!(function(e){return k.test(e)}(e)||x(e)||w(e))}const I=[{name:"base64",type:String,required:!0}],q=[{name:"arrayBuffer",type:[ArrayBuffer,Uint8Array],required:!0}];var N=Object.freeze({__proto__:null,base64ToArrayBuffer:I,arrayBufferToBase64:q});const P=[{name:"schema",type:String,required:!0}];var M=Object.freeze({__proto__:null,canIUse:P});const D=[{name:"event",type:[String,Array],required:!0},{name:"callback",type:Function,required:!0}],L=D,z=[{name:"event",type:[String,Array]},{name:"callback",type:Function}],U=[{name:"event",type:String,required:!0}];var $=Object.freeze({__proto__:null,$on:D,$once:L,$off:z,$emit:U});const F=[{name:"method",type:[String,Object],required:!0}],R=F;var V=Object.freeze({__proto__:null,addInterceptor:F,removeInterceptor:R});const G=[{name:"upx",type:[Number,String],required:!0}];var H=Object.freeze({__proto__:null,upx2px:G});function W(e){return function(t,r){t&&(r[e]=Math.round(t))}}const J={canvasId:{type:String,required:!0},x:{type:Number,required:!0,validator:W("x")},y:{type:Number,required:!0,validator:W("y")},width:{type:Number,required:!0,validator:W("width")},height:{type:Number,required:!0,validator:W("height")}},K={canvasId:{type:String,required:!0},data:{type:Uint8ClampedArray,required:!0},x:{type:Number,required:!0,validator:W("x")},y:{type:Number,required:!0,validator:W("y")},width:{type:Number,required:!0,validator:W("width")},height:{type:Number,validator:W("height")}},Y={PNG:"png",JPG:"jpeg"},X={x:{type:Number,default:0,validator:W("x")},y:{type:Number,default:0,validator:W("y")},width:{type:Number,validator:W("width")},height:{type:Number,validator:W("height")},destWidth:{type:Number,validator:W("destWidth")},destHeight:{type:Number,validator:W("destHeight")},canvasId:{type:String,require:!0},fileType:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.fileType=e in Y?Y[e]:Y.PNG}},quality:{type:Number,validator(e,t){e=Math.floor(e),t.quality=e>0&&e<1?e:1}}},Q={canvasId:{type:String,require:!0},actions:{type:Array,require:!0},reserve:{type:Boolean,default:!1}};var Z=Object.freeze({__proto__:null,canvasGetImageData:J,canvasPutImageData:K,canvasToTempFilePath:X,drawCanvas:Q});const ee=[{name:"id",type:String,required:!0}],te=ee,re=ee,ne=ee,oe=[{name:"canvasId",type:String,required:!0},{name:"componentInstance",type:Object}];var ae=Object.freeze({__proto__:null,createAudioContext:te,createVideoContext:re,createMapContext:ne,createCanvasContext:oe});const ie={phoneNumber:{type:String,required:!0,validator(e){if(!e)return"makePhoneCall:fail parameter error: parameter.phoneNumber should not be empty String;"}}};var ce=Object.freeze({__proto__:null,makePhoneCall:ie});const se={beforeSuccess(){uni.showToast({title:"内容已复制",icon:"success",mask:!1})}};var ue=Object.freeze({__proto__:null,setClipboardData:se});const le={filePath:{type:String,required:!0},fileType:{type:String}};var de=Object.freeze({__proto__:null,openDocument:le});const pe={keyword:{type:String}};var fe=Object.freeze({__proto__:null,chooseLocation:pe});const ge={WGS84:"WGS84",GCJ02:"GCJ02"},ye={type:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.type=Object.values(ge).indexOf(e)<0?ge.WGS84:e},default:ge.WGS84},altitude:{altitude:Boolean,default:!1}};var he=Object.freeze({__proto__:null,getLocation:ye});const be={latitude:{type:Number,required:!0},longitude:{type:Number,required:!0},scale:{type:Number,validator(e,t){e=Math.floor(e),t.scale=e>=5&&e<=18?e:18},default:18},name:{type:String},address:{type:String}};var me=Object.freeze({__proto__:null,openLocation:be});const ve=["original","compressed"],Se=["album","camera"],_e={count:{type:Number,required:!1,default:9,validator(e,t){e<=0&&(t.count=9)}},sizeType:{type:[Array,String],required:!1,default:ve,validator(e,t){const r=e.length;if(r){if("string"==typeof e)~ve.indexOf(e)||(t.sizeType=ve);else for(let n=0;n0?e.split("/"):[];return a.splice(a.length-o-1,o+1),"/"+a.concat(r).join("/")}const Be=/^([a-z-]+:)?\/\//i,Ae=/^data:.*,.*/;function xe(e){return __uniConfig.router.base?__uniConfig.router.base+e:e}function we(e){if(0===e.indexOf("/")){if(0!==e.indexOf("//"))return xe(e.substr(1));e="https:"+e}if(Be.test(e)||Ae.test(e)||0===e.indexOf("blob:"))return e;const t=getCurrentPages();return t.length?xe(ke(t[t.length-1].$page.route,e).substr(1)):e}const Ee={src:{type:String,required:!0,validator(e,t){t.src=we(e)}}};var Ie=Object.freeze({__proto__:null,getImageInfo:Ee});const qe={urls:{type:Array,required:!0,validator(e,t){var r;if(t.urls=e.map(e=>{if("string"==typeof e)return we(e);r=!0}),r)return"url is not string"}},current:{type:[String,Number],validator(e,t){"number"==typeof e?t.current=e>0&&ee);o={},a.forEach(e=>{e=e.split("="),o[e[0]]=e[1]});for(let e in t)t.hasOwnProperty(e)&&(c(t[e])?o[Ue(e)]=Ue(JSON.stringify(t[e])):o[Ue(e)]=Ue(t[e]));return o=Object.keys(o).map(e=>`${e}=${o[e]}`).join("&"),e+(o?"?"+o:"")+(n?"#"+n:"")}(e,t.data))}},header:{type:Object,validator(e,t){const r=t.header=e||{};t.method!==De.GET&&(Object.keys(r).find(e=>"content-type"===e.toLowerCase())||(r["Content-Type"]="application/json"))}},dataType:{type:String,validator(e,t){t.dataType=(e||Le).toLowerCase()}},responseType:{type:String,validator(e,t){e=(e||"").toLowerCase(),t.responseType=Object.values(ze).indexOf(e)<0?ze.TEXT:e}}};var Fe=Object.freeze({__proto__:null,request:$e});const Re={OPTIONS:"OPTIONS",GET:"GET",HEAD:"HEAD",POST:"POST",PUT:"PUT",DELETE:"DELETE",TRACE:"TRACE",CONNECT:"CONNECT"},Ve={url:{type:String,required:!0},header:{type:Object,validator(e,t){t.header=e||{}}},method:{type:String,validator(e,t){e=(e||"").toUpperCase(),t.method=Object.values(Re).indexOf(e)<0?Re.GET:e}},protocols:{type:Array,validator(e,t){t.protocols=(e||[]).filter(e=>"string"==typeof e)}}},Ge={data:{type:[String,ArrayBuffer]}},He={code:{type:Number},reason:{type:String}};var We=Object.freeze({__proto__:null,connectSocket:Ve,sendSocketMessage:Ge,closeSocket:He});const Je={url:{type:String,required:!0},files:{type:Array},filePath:{type:String,validator(e,t){e&&(t.type=we(e))}},name:{type:String},header:{type:Object,validator(e,t){t.header=e||{}}},formData:{type:Object,validator(e,t){t.formData=e||{}}}};var Ke=Object.freeze({__proto__:null,uploadFile:Je});const Ye={OAUTH:"OAUTH",SHARE:"SHARE",PAYMENT:"PAYMENT",PUSH:"PUSH"},Xe={service:{type:String,required:!0,validator(e,t){if((e=(e||"").toUpperCase())&&Object.values(Ye).indexOf(e)<0)return"service error"}}};var Qe=Object.freeze({__proto__:null,getProvider:Xe});function Ze(e){return function(t,r){const n=(t=ke(t)).split("?")[0],o=__uniRoutes.find(({path:e,alias:t})=>e===n||t===n);if(!o)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(o.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!o.meta.isTabBar)return"can not switch to no-tabBar page";o.meta.isTabBar&&(t=n),o.meta.isEntry&&(t=t.replace(o.alias,"/")),r.url=function(e){if("string"!=typeof e)return e;const t=e.indexOf("?");if(-1===t)return e;const r=e.substr(t+1).trim().replace(/^(\?|#|&)/,"");if(!r)return e;e=e.substr(0,t);const n=[];return r.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),r=t.shift(),o=t.length>0?t.join("="):"";n.push(r+"="+encodeURIComponent(o))}),n.length?e+"?"+n.join("&"):e}(t)}}function et(e,t={}){return Object.assign({url:{type:String,required:!0,validator:Ze(e)}},t)}function tt(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}const rt=et("redirectTo"),nt=et("reLaunch"),ot=et("navigateTo",tt(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"])),at=et("switchTab"),it=Object.assign({delta:{type:Number,validator(e,t){e=parseInt(e)||1,t.delta=Math.min(getCurrentPages().length-1,e)}}},tt(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]));var ct=Object.freeze({__proto__:null,redirectTo:rt,reLaunch:nt,navigateTo:ot,switchTab:at,navigateBack:it});const st={key:{type:String,required:!0}},ut=[{name:"key",type:String,required:!0}],lt={key:{type:String,required:!0},data:{required:!0}},dt=[{name:"key",type:String,required:!0},{name:"data",required:!0}],pt=st,ft=ut;var gt=Object.freeze({__proto__:null,getStorage:st,getStorageSync:ut,setStorage:lt,setStorageSync:dt,removeStorage:pt,removeStorageSync:ft});const yt={family:{type:String,required:!0},source:{type:String,required:!0},desc:{type:Object,required:!1},success:{type:Function,required:!1},fail:{type:Function,required:!1},complete:{type:Function,required:!1}};var ht=Object.freeze({__proto__:null,loadFontFace:yt});const bt=["#ffffff","#000000"],mt={frontColor:{type:String,required:!0,validator(e,t){if(-1===bt.indexOf(e))return`invalid frontColor "${e}"`}},backgroundColor:{type:String,required:!0},animation:{type:Object,default:()=>({duration:0,timingFunc:"linear"}),validator(e={},t){t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},vt={title:{type:String,required:!0}};var St=Object.freeze({__proto__:null,setNavigationBarColor:mt,setNavigationBarTitle:vt});const _t={scrollTop:{type:Number,required:!0},duration:{type:Number,default:300,validator(e,t){t.duration=Math.max(0,e)}}};var Ot=Object.freeze({__proto__:null,pageScrollTo:_t});const Tt={title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"取消"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"确定"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean,default:!0}},jt={title:{type:String,default:""},icon:{default:"success",validator(e,t){-1===["success","loading","none"].indexOf(e)&&(t.icon="success")}},image:{type:String,default:"",validator(e,t){e&&(t.image=we(e))}},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},Ct={title:{type:String,default:""},icon:{type:String,default:"loading"},duration:{type:Number,default:1e8},mask:{type:Boolean,default:!1},visible:{type:Boolean,default:!0}},kt={itemList:{type:Array,required:!0,validator(e,t){if(!e.length)return"parameter.itemList should have at least 1 item"}},itemColor:{type:String,default:"#000000"},visible:{type:Boolean,default:!0}};var Bt=Object.freeze({__proto__:null,showModal:Tt,showToast:jt,showLoading:Ct,showActionSheet:kt});const At={type:Number,required:!0},xt={index:At,text:{type:String},iconPath:{type:String},selectedIconPath:{type:String}},wt={color:{type:String},selectedColor:{type:String},backgroundColor:{type:String},borderStyle:{type:String,validator(e,t){e&&(t.borderStyle="black"===e?"black":"white")}}},Et={animation:{type:Boolean,default:!1}},It={animation:{type:Boolean,default:!1}},qt={index:At},Nt={index:At},Pt={index:At},Mt={index:At,text:{type:String,required:!0,validator(e,t){(function(e=""){return(""+e).replace(/[^\x00-\xff]/g,"**").length})(e)>=4&&(t.text="...")}}};var Dt=Object.freeze({__proto__:null,setTabBarItem:xt,setTabBarStyle:wt,hideTabBar:Et,showTabBar:It,hideTabBarRedDot:qt,showTabBarRedDot:Nt,removeTabBarBadge:Pt,setTabBarBadge:Mt});const Lt=Object.create(null),zt=(Ut={"./base/base64.js":N,"./base/can-i-use.js":M,"./base/event-bus.js":$,"./base/interceptor.js":V,"./base/upx2px.js":H,"./context/canvas.js":Z,"./context/context.js":ae,"./device/make-phone-call.js":ce,"./device/set-clipboard-data.js":ue,"./file/open-document.js":de,"./location/choose-location.js":fe,"./location/get-location.js":he,"./location/open-location.js":me,"./media/choose-image.js":Oe,"./media/choose-video.js":Ce,"./media/get-image-info.js":Ie,"./media/preview-image.js":Ne,"./network/download-file.js":Me,"./network/request.js":Fe,"./network/socket.js":We,"./network/upload-file.js":Ke,"./plugin/get-provider.js":Qe,"./route/route.js":ct,"./storage/storage.js":gt,"./ui/load-font-face.js":ht,"./ui/navigation-bar.js":St,"./ui/page-scroll-to.js":Ot,"./ui/popup.js":Bt,"./ui/tab-bar.js":Dt},($t=function(e){return Ut[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}).keys=function(){return Object.keys(Ut)},$t);var Ut,$t;function Ft(e,t,r){const n=t[e],a=!s(r,e);let c=r[e];if(function(e,t){if(!Array.isArray(t))return Ht(t,e)?0:-1;for(let r=0,n=t.length;r-1&&a&&!s(n,"default")&&(c=!1),void 0===c&&s(n,"default")){const t=n.default;c=i(t)?t():t,r[e]=c}return function(e,t,r,n,a){if(e.required&&n)return`Missing required parameter \`${t}\``;if(null==r&&!e.required){const t=e.validator;return t?t(r,a):void 0}let i=e.type,c=!i||!0===i;const s=[];if(i){Array.isArray(i)||(i=[i]);for(let e=0;e"boolean"===e.toLowerCase())}(a,i)&&(n+=` with value ${c}`);n+=`, got ${i} `,Kt(i)&&(n+=`with value ${s}.`);return n}(t,r,s);const u=e.validator;if(u)return u(r,a)}(n,e,c,a,r)}zt.keys().forEach((function(e){Object.assign(Lt,zt(e))}));const Rt=/^(String|Number|Boolean|Function|Symbol)$/;function Vt(e,t){let r;const n=Gt(t);if(Rt.test(n)){const o=typeof e;r=o===n.toLowerCase(),r||"object"!==o||(r=e instanceof t)}else r="Object"===n?c(e):"Array"===n?Array.isArray(e):e instanceof t;return{valid:r,expectedType:n}}function Gt(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function Ht(e,t){return Gt(e)===Gt(t)}function Wt(e,t){return"String"===t?`"${e}"`:"Number"===t?`${Number(e)}`:`${e}`}const Jt=["string","number","boolean"];function Kt(e){return Jt.some(t=>e.toLowerCase()===t)}function Yt(e,t,r){const n=`${t}:fail ${e}`;if(console.error(n),-1===r)throw new Error(n);return"number"==typeof r&&rr(r,{errMsg:n}),!1}const Xt=[{name:"callback",type:Function,required:!0}];function Qt(e,t,r){let n=Lt[e];if(!n&&w(e)&&(n=Xt),n){if(Array.isArray(n)&&Array.isArray(t)){const e=Object.create(null),r=Object.create(null),o=t.length;n.forEach((n,a)=>{e[n.name]=n,o>a&&(r[n.name]=t[a])}),n=e,t=r}if(i(n.beforeValidate)){const o=n.beforeValidate(t);if(o)return Yt(o,e,r)}const o=Object.keys(n);for(let a=0;a-1&&(r=t.errMsg.substr(n)),t.errMsg=e+":fail"+r}const r=t.errMsg;0===r.indexOf(e+":ok")?(i(b)&&b(t),l&&o(t),i(m)&&m(t)):0===r.indexOf(e+":cancel")?(t.errMsg=t.errMsg.replace(e+":cancel",e+":fail cancel"),f&&a(t),i(_)&&_(t),g&&s(t),i(O)&&O(t)):0===r.indexOf(e+":fail")&&(i(v)&&v(t),f&&a(t),i(S)&&S(t)),y&&u(t),i(T)&&T(t)}},{params:t,callbackId:j}}(e,t,r);return c(n)&&!Qt(e,n,o)?{params:n,callbackId:!1}:{params:n,callbackId:o}}function rr(e,t){if("number"==typeof e){const r=er[e];if(r)return r.keepAlive||delete er[e],r.callback(t)}return t}function nr(e,t,r={}){return i(t)?(function(e,t){const r=Lt[e];r&&i(r.beforeSuccess)&&(t.beforeSuccess=r.beforeSuccess)}(e,r),function(...n){if(x(e)){if(Qt(e,n,-1))return t.apply(null,n)}else if(w(e)){if(Qt(e,n,-1))return t(function(e,t){const r=Zt++,n="api."+e+"."+r;return er[r]={name:n,keepAlive:!0,callback:function(e){t(e)}},r}(e,n[0]))}else{let o={};n.length&&(o=n[0]);const{params:a,callbackId:s}=tr(e,o,r);if(!1!==s){let r;return r=i(a)?t(s):t(a,s),r&&!function(e){return-1!==B.indexOf(e)}(e)&&(r=rr(s,r),c(r)&&(r.errMsg=r.errMsg||e+":ok")),r}}}):t}var or,ar=(function(e,t){!function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r=new Uint8Array(256),n=0;n>2],a+=e[(3&n[r])<<4|n[r+1]>>4],a+=e[(15&n[r+1])<<2|n[r+2]>>6],a+=e[63&n[r+2]];return o%3==2?a=a.substring(0,a.length-1)+"=":o%3==1&&(a=a.substring(0,a.length-2)+"=="),a},t.decode=function(e){var t,n,o,a,i,c=.75*e.length,s=e.length,u=0;"="===e[e.length-1]&&(c--,"="===e[e.length-2]&&c--);var l=new ArrayBuffer(c),d=new Uint8Array(l);for(t=0;t>4,d[u++]=(15&o)<<4|a>>2,d[u++]=(3&a)<<6|63&i;return l}}()}(or={exports:{}},or.exports),or.exports),ir=ar.encode,cr=ar.decode;var sr={};const ur={promiseInterceptor:j};let lr=!1,dr=0,pr=0;var fr=n("@app-module/system.router");function gr(e){return e.substr(0,e.lastIndexOf("/"))}var yr=n("@app-module/system.router");var hr=n("@app-module/system.router");var br=Object.freeze({__proto__:null,navigateBack:function({delta:e}){return fr.back(),{errMsg:"navigateBack:ok"}},navigateTo:function({url:e}){const t=e.split("?"),r=t[0],n=l(t[1]||"");return yr.push({uri:gr(r),params:n}),{errMsg:"navigateTo:ok"}},redirectTo:function({url:e}){const t=e.split("?"),r=t[0],n=l(t[1]||"");return hr.replace({uri:gr(r),params:n}),{errMsg:"redirectTo:ok"}}});function mr(e,...t){return br[e].apply(null,t)}function vr(e,t){return UniServiceJSBridge.on("api."+e,t)}const Sr=["canplay","play","pause","stop","ended","timeUpdate","error","waiting","seeking","seeked"],_r=[{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"autoplay",default:!1,cache:!0},{name:"loop",default:!1,cache:!0},{name:"obeyMuteSwitch",default:!0,readonly:!0,cache:!0},{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"buffered",readonly:!0},{name:"volume"}];class Or{constructor(e){this.id=e,this._callbacks={},this._options={},Sr.forEach(e=>{this._callbacks[e.toLowerCase()]=[]}),_r.forEach(e=>{const t=e.name,r={get(){const r=e.cache?this._options:mr("getAudioState",{audioId:this.id}),n=t in r?r[t]:e.default;return"number"==typeof n&&"volume"!==t?n/1e3:n}};e.readonly||(r.set=function(e){this._options[t]=e,mr("setAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(this,t,r)})}play(){this._operate("play")}pause(){this._operate("pause")}stop(){this._operate("stop")}seek(e){this._operate("seek",{currentTime:1e3*e})}destroy(){clearInterval(this.__timing),mr("destroyAudioInstance",{audioId:this.id}),delete jr[this.id]}_operate(e,t){mr("operateAudio",Object.assign({},t,{audioId:this.id,operationType:e}))}}function Tr(e,t,r,n){e._callbacks[t].forEach(e=>{"function"==typeof e&&e("error"===t?{errMsg:r,errCode:n}:{})})}Sr.forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);e=e.toLowerCase(),Or.prototype[`on${t}`]=function(t){this._callbacks[e].push(t)},Or.prototype[`off${t}`]=function(t){const r=this._callbacks[e],n=r.indexOf(t);n>=0&&r.splice(n,1)}}),vr("onAudioStateChange",({state:e,audioId:t,errMsg:r,errCode:n})=>{const o=jr[t];if(o)if(Tr(o,e,r,n),"play"===e){const e=o.currentTime;o.__timing=setInterval(()=>{o.currentTime!==e&&Tr(o,"timeupdate")},200)}else"pause"!==e&&"stop"!==e&&"error"!==e||clearInterval(o.__timing)});const jr=Object.create(null);const Cr=["canplay","play","pause","stop","ended","timeUpdate","prev","next","error","waiting"],kr={};Cr.forEach(e=>{kr[e]=[]});const Br=[{name:"duration",readonly:!0},{name:"currentTime",readonly:!0},{name:"paused",readonly:!0},{name:"src",cache:!0},{name:"startTime",default:0,cache:!0},{name:"buffered",readonly:!0},{name:"title",cache:!0},{name:"epname",cache:!0},{name:"singer",cache:!0},{name:"coverImgUrl",cache:!0},{name:"webUrl",cache:!0},{name:"protocol",readonly:!0,default:"http"}];class Ar{constructor(){this._options={},vr("onBackgroundAudioStateChange",({state:e,errMsg:t,errCode:r})=>{kr[e].forEach(n=>{"function"==typeof n&&n("error"===e?{errMsg:t,errCode:r}:{})})}),Br.forEach(e=>{const t=e.name,r={get(){const r=e.cache?this._options:mr("getBackgroundAudioState");return t in r?r[t]:e.default}};e.readonly||(r.set=function(e){this._options[t]=e,mr("setBackgroundAudioState",Object.assign({},this._options,{audioId:this.id}))}),Object.defineProperty(this,t,r)})}play(){this._operate("play")}pause(){this._operate("pause")}stop(){this._operate("stop")}seek(e){this._operate("seek",{currentTime:e})}_operate(e,t){mr("operateBackgroundAudio",Object.assign({},t,{operationType:e}))}}let xr;Cr.forEach(e=>{const t=e[0].toUpperCase()+e.substr(1);Ar.prototype[`on${t}`]=function(t){kr[e].push(t)}});var wr={...Object.freeze({__proto__:null,base64ToArrayBuffer:function(e){return cr(e)},arrayBufferToBase64:function(e){return ir(e)},canIUse:function(e){return!s(sr,e)||sr[e]},interceptors:ur,addInterceptor:function(e,t){"string"==typeof e&&c(t)?h(y[e]||(y[e]={}),t):c(e)&&h(g,e)},removeInterceptor:function(e,t){"string"==typeof e?c(t)?b(y[e],t):delete y[e]:c(e)&&b(g,e)},upx2px:function(e,t){if(0===dr&&function(){const{platform:e,pixelRatio:t,windowWidth:r}=uni.getSystemInfoSync();dr=r,pr=t,lr="ios"===e}(),0===(e=Number(e)))return 0;let r=e/750*(t||dr);return r<0&&(r=-r),r=Math.floor(r+1e-4),0===r?1!==pr&&lr?.5:1:e<0?-r:r},createInnerAudioContext:function(){const{audioId:e}=mr("createAudioInstance"),t=new Or(e);return jr[e]=t,t},getBackgroundAudioManager:function(){return xr||(xr=new Ar)}}),...br};const Er=Object.create(null);t.forEach(e=>{wr[e]?Er[e]=function(e,t){return E(e)?function(r={},...n){return i(r.success)||i(r.fail)||i(r.complete)?O(e,T(e,t,r,...n)):O(e,new Promise((o,a)=>{T(e,t,Object.assign({},r,{success:o,fail:a}),...n),Promise.prototype.finally||(Promise.prototype.finally=function(e){const t=this.constructor;return this.then(r=>t.resolve(e()).then(()=>r),r=>t.resolve(e()).then(()=>{throw r}))})}).then(e=>[null,e]).catch(e=>[e]))}:t}(e,nr(e,wr[e])):Er[e]=function(e){return function(t){console.error("API `"+e+"` is not yet implemented")}}(e)});const Ir=Object.getPrototypeOf(global)||global,qr=Object.create(null);function Nr(e){e&&e.store&&(qr.store=e.store)}Nr.use=function(e){(qr.uses||(qr.uses=[])).push(e)},Nr.mixin=function(e){(qr.mixins||(qr.mixins=[])).push(e)},Nr.component=function(){},Ir.__VueOptions=qr;const Pr={globalData:{}};global.UniServiceJSBridge.invokeCallbackHandler=rr;var Mr={uni:Er,Vue:Nr,getApp:function({allowDefault:t=!1}={}){return e.$def?function(e){if(e.__$processed)return e;const t=e.methods;return t&&(Object.keys(t).forEach(r=>{e[r]=t[r]}),delete e.methods),Object.keys(Pr).forEach(t=>{"globalData"!==t&&(e[t]=Pr[t])}),e.globalData||(e.globalData={}),Object.assign(e.globalData,Pr.globalData),e.__$processed=!0,e}(e.$def):t?Pr:void 0},getCurrentPages:function(){return[]}};const Dr=Object.getPrototypeOf(global)||global;dsl.onDefineApp(t=>{const r="function"==typeof t.onLaunch,n="function"==typeof t.onShow;(r||n)&&(e._events["applc:onCreate"]||(e._events["applc:onCreate"]=[])).push(()=>{r&&t.onLaunch(),n&&t.onShow()}),Dr.__uniRoutes=function({pages:e}){const t=[];return Object.keys(e).forEach(r=>{const n=e[r];t.push({path:"/"+r+"/"+n.component,meta:{}})}),t}(t.manifest.router)}),Object.assign(Dr,Mr)}()})); dsl.onInitPage((function({$app_require$:e,Vue:i}){!function(){"use strict";if("undefined"!=typeof __VueOptions){const{uses:e,mixins:n,store:o}=__VueOptions;e&&e.forEach(e=>{i.use(e)}),n&&n.forEach(e=>{i.mixin(e)}),o&&(i.prototype.$store=o)}}()}));