2022-09-15 19:59:19 +08:00

1 line
16 KiB
JavaScript

"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([[31],{868:function(e,t,n){n.d(t,{Ee:function(){return u},lS:function(){return b},r2:function(){return d},v:function(){return p},vd:function(){return l}});var o=Object.create,i=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t)=>function(){return e&&(t=(0,e[a(e)[0]])(e=0)),t},u=(e,t)=>function(){return t||(0,e[a(e)[0]])((t={exports:{}}).exports,t),t.exports},d=(e,t)=>{for(var n in t)i(e,n,{get:t[n],enumerable:!0})},h=(e,t,n,o)=>{if(t&&"object"===typeof t||"function"===typeof t)for(let s of a(t))c.call(e,s)||s===n||i(e,s,{get:()=>t[s],enumerable:!(o=r(t,s))||o.enumerable});return e},p=(e,t,n)=>(n=null!=e?o(s(e)):{},h(!t&&e&&e.__esModule?n:i(n,"default",{value:e,enumerable:!0}),e)),b=e=>h(i({},"__esModule",{value:!0}),e)},31:function(e,t,n){n.d(t,{CA:function(){return ye},Ft:function(){return he},HD:function(){return ue},Ig:function(){return xe},Kn:function(){return pe},PT:function(){return te},W:function(){return Ee},Z6:function(){return oe},ZT:function(){return ie},_c:function(){return Z},dZ:function(){return Me},eu:function(){return ve},hj:function(){return ge},jn:function(){return be},kC:function(){return Se},kJ:function(){return Q},kT:function(){return ne},ku:function(){return Ce},mf:function(){return fe},o8:function(){return de},rD:function(){return J},xi:function(){return Le},zW:function(){return K},zx:function(){return we}});var o,i,r,a,s,c,l,u,d,h,p,b,f,g,m,v,y,S,w,k,C,E,L,T,I,B,P,x,O,A,M,j,N,D,G,F,R,U,V,q,W,_,z,H,$,J,Z,K,Q,X,Y,ee,te,ne,oe,ie,re,ae,se,ce=n(868);function le(e){return`'${e}'`}function ue(e){return"string"===typeof e}function de(e){return"undefined"===typeof e}function he(e){return null===e}function pe(e){return null!==e&&"object"===typeof e}function be(e){return!0===e||!1===e}function fe(e){return"function"===typeof e}function ge(e){return"number"===typeof e}function me(e,t){return{type:e,initial:t||null}}function ve(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function ye(e){let t="",n=!1;for(let o=0;o<e.length;o++)"-"!==e[o]?(t+=n?e[o].toUpperCase():e[o],n=!1):n=!0;return t}function Se(e){return e.charAt(0).toUpperCase()+e.slice(1)}function we(e,t){if(!e)throw new Error(t)}function ke(){return ae+re++}function Ce(e){return Object.keys(e).forEach((t=>{t in J?Object.assign(J[t],e[t]):J[t]=e[t]})),J}function Ee(e){const t={},n=e.View,o={"#text":{},StaticView:n,StaticImage:e.Image,StaticText:e.Text,PureView:n,CatchView:n};return e=Object.assign(Object.assign({},e),o),Object.keys(e).sort(((e,t)=>{const n=/^(Static|Pure|Catch)*(View|Image|Text)$/,o=n.test(e),i=n.test(t);return o&&i?e>t?1:-1:o?-1:i||e>=t?1:-1})).forEach(((n,o)=>{const i={_num:String(o)};Object.keys(e[n]).filter((e=>!/^bind/.test(e)&&!["focus","blur"].includes(e))).sort().forEach(((e,t)=>{i[ye(e)]="p"+t})),t[ve(n)]=i})),t}function Le(e,t){const n=t||te,o=Object.keys(e);o.forEach((t=>{n.tap(t,e[t])}))}function Te(e){return function(){console.warn(`\u5c0f\u7a0b\u5e8f\u6682\u4e0d\u652f\u6301 ${e}`)}}function Ie(e,t){const n="__key_",o=["navigateTo","redirectTo","reLaunch","switchTab"];if(o.indexOf(e)>-1){const e=t.url=t.url||"",o=e.indexOf("?")>-1,i=ke();t.url+=(o?"&":"?")+`${n}=${i}`}}function Be(e){return function(){var t;const n=null===(t=e.getSystemInfoSync)||void 0===t?void 0:t.call(e);if(!n)return!1;const{platform:o}=n,i=o.toLowerCase();return"android"===i||"devtools"===i}}function Pe(e){return function(t){t=t?ue(t)?{url:t}:t:{};const n=t.success,o=t.fail,i=t.complete;let r;const a=new Promise(((a,s)=>{t.success=e=>{n&&n(e),a(e)},t.fail=e=>{o&&o(e),s(e)},t.complete=e=>{i&&i(e)},r=e.request(t)}));return Ae(r,a),a.abort=e=>(e&&e(),r&&r.abort(),a),a}}function xe(e,t,n={}){const o=n.needPromiseApis||[],i=new Set([...o,...se]),r=["getEnv","interceptors","Current","getCurrentInstance","options","nextTick","eventCenter","Events","preload","webpackJsonp"],a=new Set(n.isOnlyPromisify?o:Object.keys(t).filter((e=>-1===r.indexOf(e))));n.modifyApis&&n.modifyApis(a),a.forEach((o=>{if(i.has(o)){const i=o;e[i]=(e={},...o)=>{let r=i;if("string"===typeof e)return o.length?t[r](e,...o):t[r](e);if(n.transformMeta){const o=n.transformMeta(r,e);if(r=o.key,e=o.options,!t.hasOwnProperty(r))return Te(r)()}let a=null;const s=Object.assign({},e);Ie(r,e);const c=new Promise(((i,c)=>{s.success=t=>{var o,s;null===(o=n.modifyAsyncResult)||void 0===o||o.call(n,r,t),null===(s=e.success)||void 0===s||s.call(e,t),i("connectSocket"===r?Promise.resolve().then((()=>a?Object.assign(a,t):t)):t)},s.fail=t=>{var n;null===(n=e.fail)||void 0===n||n.call(e,t),c(t)},s.complete=t=>{var n;null===(n=e.complete)||void 0===n||n.call(e,t)},a=o.length?t[r](s,...o):t[r](s)}));return["uploadFile","downloadFile"].includes(r)&&(Ae(a,c),c.progress=e=>(null===a||void 0===a||a.onProgressUpdate(e),c),c.abort=e=>(null===e||void 0===e||e(),null===a||void 0===a||a.abort(),c)),c}}else{let i=o;if(n.transformMeta&&(i=n.transformMeta(o,{}).key),!t.hasOwnProperty(i))return void(e[o]=Te(o));fe(t[o])?e[o]=(...e)=>n.handleSyncApis?n.handleSyncApis(o,t,e):t[i].apply(t,e):e[o]=t[i]}})),!n.isOnlyPromisify&&Oe(e,t,n)}function Oe(e,t,n={}){e.canIUseWebp=Be(e),e.getCurrentPages=getCurrentPages||Te("getCurrentPages"),e.getApp=getApp||Te("getApp"),e.env=t.env||{};try{e.requirePlugin=requirePlugin||Te("requirePlugin")}catch(t){e.requirePlugin=Te("requirePlugin")}const o=n.request||Pe(t);function i(e){return o(e.requestParams)}const r=new e.Link(i);e.request=r.request.bind(r),e.addInterceptor=r.addInterceptor.bind(r),e.cleanInterceptors=r.cleanInterceptors.bind(r),e.miniGlobal=e.options.miniGlobal=t}function Ae(e,t){if(!e||!t)return;const n=["abort","onHeadersReceived","offHeadersReceived","onProgressUpdate","offProgressUpdate","onChunkReceived","offChunkReceived"];e&&n.forEach((n=>{n in e&&(t[n]=e[n].bind(e))}))}var Me=(0,ce.vd)({"node_modules/@tarojs/shared/dist/shared.esm.js"(){o="[]",i="",r="!0",a="!1",s={bindTouchStart:i,bindTouchMove:i,bindTouchEnd:i,bindTouchCancel:i,bindLongTap:i},c={animation:i,bindAnimationStart:i,bindAnimationIteration:i,bindAnimationEnd:i,bindTransitionEnd:i},l=Object.assign(Object.assign({"hover-class":le("none"),"hover-stop-propagation":a,"hover-start-time":"50","hover-stay-time":"400"},s),c),u={type:i,size:"23",color:i},d=Object.assign({longitude:i,latitude:i,scale:"16",markers:o,covers:i,polyline:o,circles:o,controls:o,"include-points":o,"show-location":i,"layer-style":"1",bindMarkerTap:i,bindControlTap:i,bindCalloutTap:i,bindUpdated:i},s),h={percent:i,"stroke-width":"6",color:le("#09BB07"),activeColor:le("#09BB07"),backgroundColor:le("#EBEBEB"),active:a,"active-mode":le("backwards"),"show-info":a},p={nodes:o},b={selectable:a,space:i,decode:a},f=Object.assign({size:le("default"),type:i,plain:a,disabled:i,loading:a,"form-type":i,"open-type":i,"hover-class":le("button-hover"),"hover-stop-propagation":a,"hover-start-time":"20","hover-stay-time":"70",name:i},s),g={value:i,disabled:i,checked:a,color:le("#09BB07"),name:i},m={bindChange:i,name:i},v={"report-submit":a,bindSubmit:i,bindReset:i,name:i},y={value:i,type:le(i),password:a,placeholder:i,"placeholder-style":i,"placeholder-class":le("input-placeholder"),disabled:i,maxlength:"140","cursor-spacing":"0",focus:a,"confirm-type":le("done"),"confirm-hold":a,cursor:"i.value.length","selection-start":"-1","selection-end":"-1",bindInput:i,bindFocus:i,bindBlur:i,bindConfirm:i,name:i},S={for:i,name:i},w={mode:le("selector"),disabled:i,range:i,"range-key":i,value:i,start:i,end:i,fields:le("day"),"custom-item":i,name:i,bindCancel:i,bindChange:i,bindColumnChange:i},k={value:i,"indicator-style":i,"indicator-class":i,"mask-style":i,"mask-class":i,bindChange:i,name:i},C={name:i},E={value:i,checked:a,disabled:i,color:le("#09BB07"),name:i},L={bindChange:i,name:i},T={min:"0",max:"100",step:"1",disabled:i,value:"0",activeColor:le("#1aad19"),backgroundColor:le("#e9e9e9"),"block-size":"28","block-color":le("#ffffff"),"show-value":a,bindChange:i,bindChanging:i,name:i},I={checked:a,disabled:i,type:le("switch"),color:le("#04BE02"),bindChange:i,name:i},B={value:i,placeholder:i,"placeholder-style":i,"placeholder-class":le("textarea-placeholder"),disabled:i,maxlength:"140","auto-focus":a,focus:a,"auto-height":a,fixed:a,"cursor-spacing":"0",cursor:"-1","selection-start":"-1","selection-end":"-1",bindFocus:i,bindBlur:i,bindLineChange:i,bindInput:i,bindConfirm:i,name:i},P={src:i,bindLoad:"eh",bindError:"eh"},x=Object.assign({"scroll-top":a},s),O={"scale-area":a},A=Object.assign(Object.assign({direction:"none",inertia:a,"out-of-bounds":a,x:i,y:i,damping:"20",friction:"2",disabled:i,scale:a,"scale-min":"0.5","scale-max":"10","scale-value":"1",bindChange:i,bindScale:i,bindHTouchMove:i,bindVTouchMove:i,width:le("10px"),height:le("10px")},s),c),M=Object.assign(Object.assign({"scroll-x":a,"scroll-y":a,"upper-threshold":"50","lower-threshold":"50","scroll-top":i,"scroll-left":i,"scroll-into-view":i,"scroll-with-animation":a,"enable-back-to-top":a,bindScrollToUpper:i,bindScrollToLower:i,bindScroll:i},s),c),j=Object.assign({"indicator-dots":a,"indicator-color":le("rgba(0, 0, 0, .3)"),"indicator-active-color":le("#000000"),autoplay:a,current:"0",interval:"5000",duration:"500",circular:a,vertical:a,"previous-margin":le("0px"),"next-margin":le("0px"),"display-multiple-items":"1",bindChange:i,bindTransition:i,bindAnimationFinish:i},s),N={"item-id":i},D={url:i,"open-type":le("navigate"),delta:"1","hover-class":le("navigator-hover"),"hover-stop-propagation":a,"hover-start-time":"50","hover-stay-time":"600",bindSuccess:i,bindFail:i,bindComplete:i},G={id:i,src:i,loop:a,controls:a,poster:i,name:i,author:i,bindError:i,bindPlay:i,bindPause:i,bindTimeUpdate:i,bindEnded:i},F={"device-position":le("back"),flash:le("auto"),bindStop:i,bindError:i},R=Object.assign({src:i,mode:le("scaleToFill"),"lazy-load":a,bindError:i,bindLoad:i},s),U=Object.assign({src:i,autoplay:a,muted:a,orientation:le("vertical"),"object-fit":le("contain"),"background-mute":a,"min-cache":"1","max-cache":"3",bindStateChange:i,bindFullScreenChange:i,bindNetStatus:i},c),V=Object.assign({src:i,duration:i,controls:r,"danmu-list":i,"danmu-btn":i,"enable-danmu":i,autoplay:a,loop:a,muted:a,"initial-time":"0","page-gesture":a,direction:i,"show-progress":r,"show-fullscreen-btn":r,"show-play-btn":r,"show-center-play-btn":r,"enable-progress-gesture":r,"object-fit":le("contain"),poster:i,"show-mute-btn":a,bindPlay:i,bindPause:i,bindEnded:i,bindTimeUpdate:i,bindFullScreenChange:i,bindWaiting:i,bindError:i},c),q=Object.assign({"canvas-id":i,"disable-scroll":a,bindError:i},s),W={"unit-id":i,"ad-intervals":i,bindLoad:i,bindError:i,bindClose:i},_={src:i,bindMessage:i,bindLoad:i,bindError:i},z={},H={name:i},$={name:i},J={View:l,Icon:u,Progress:h,RichText:p,Text:b,Button:f,Checkbox:g,CheckboxGroup:m,Form:v,Input:y,Label:S,Picker:w,PickerView:k,PickerViewColumn:C,Radio:E,RadioGroup:L,Slider:T,Switch:I,CoverImage:P,Textarea:B,CoverView:x,MovableArea:O,MovableView:A,ScrollView:M,Swiper:j,SwiperItem:N,Navigator:D,Audio:G,Camera:F,Image:R,LivePlayer:U,Video:V,Canvas:q,Ad:W,WebView:_,Block:z,Map:d,Slot:$,SlotView:H},Z=new Set(["input","checkbox","picker","picker-view","radio","slider","switch","textarea"]),K=class{on(e,t,n){let o,i,r,a;if(!t)return this;e=e.split(K.eventSplitter),this.callbacks||(this.callbacks={});const s=this.callbacks;while(o=e.shift())a=s[o],i=a?a.tail:{},i.next=r={},i.context=n,i.callback=t,s[o]={tail:r,next:a?a.next:i};return this}once(e,t,n){const o=(...i)=>{t.apply(this,i),this.off(e,o,n)};return this.on(e,o,n),this}off(e,t,n){let o,i,r,a,s,c;if(!(i=this.callbacks))return this;if(!(e||t||n))return delete this.callbacks,this;e=e?e.split(K.eventSplitter):Object.keys(i);while(o=e.shift())if(r=i[o],delete i[o],r&&(t||n)){a=r.tail;while((r=r.next)!==a)s=r.callback,c=r.context,(t&&s!==t||n&&c!==n)&&this.on(o,s,c)}return this}trigger(e){let t,n,o,i;if(!(o=this.callbacks))return this;e=e.split(K.eventSplitter);const r=[].slice.call(arguments,1);while(t=e.shift())if(n=o[t]){i=n.tail;while((n=n.next)!==i)n.callback.apply(n.context||this,r)}return this}constructor(e){var t;this.callbacks=null!==(t=null===e||void 0===e?void 0:e.callbacks)&&void 0!==t?t:{}}},K.eventSplitter=/\s+/,Q=Array.isArray,function(e){e[e["SINGLE"]=0]="SINGLE",e[e["MULTI"]=1]="MULTI",e[e["WATERFALL"]=2]="WATERFALL"}(X||(X={})),Y={app:["onLaunch","onShow","onHide"],page:["onLoad","onUnload","onReady","onShow","onHide",["onPullDownRefresh","onReachBottom","onPageScroll","onResize","onTabItemTap","onTitleClick","onOptionMenuClick","onPopMenuClick","onPullIntercept","onAddToFavorites"],["onShareAppMessage","onShareTimeline"]]},ee=class extends K{tapOneOrMany(e,t){const n=fe(t)?[t]:t;n.forEach((t=>this.on(e,t)))}tap(e,t){const n=this.hooks,{type:o,initial:i}=n[e];o===X.SINGLE?(this.off(e),this.on(e,fe(t)?t:t[t.length-1])):(i&&this.off(e,i),this.tapOneOrMany(e,t))}call(e,...t){var n;const o=this.hooks[e];if(!o)return;const{type:i}=o,r=this.callbacks;if(!r)return;const a=r[e];if(a){const e=a.tail;let o,r=a.next,s=t;while(r!==e){if(o=null===(n=r.callback)||void 0===n?void 0:n.apply(r.context||this,s),i===X.WATERFALL){const e=[o];s=e}r=r.next}return o}}isExist(e){var t;return Boolean(null===(t=this.callbacks)||void 0===t?void 0:t[e])}constructor(e,t){super(t),this.hooks=e;for(const t in e){const{initial:n}=e[t];fe(n)&&this.on(t,n)}}},te=new ee({getMiniLifecycle:me(X.SINGLE,(e=>e)),getMiniLifecycleImpl:me(X.SINGLE,(function(){return this.call("getMiniLifecycle",Y)})),getLifecycle:me(X.SINGLE,((e,t)=>e[t])),getPathIndex:me(X.SINGLE,(e=>`[${e}]`)),getEventCenter:me(X.SINGLE,(e=>new e)),isBubbleEvents:me(X.SINGLE,(e=>{const t=new Set(["touchstart","touchmove","touchcancel","touchend","touchforcechange","tap","longpress","longtap","transitionend","animationstart","animationiteration","animationend"]);return t.has(e)})),getSpecialNodes:me(X.SINGLE,(()=>["view","text","image"])),onRemoveAttribute:me(X.SINGLE),batchedEventUpdates:me(X.SINGLE),mergePageInstance:me(X.SINGLE),modifyPageObject:me(X.SINGLE),createPullDownComponent:me(X.SINGLE),getDOMNode:me(X.SINGLE),modifyHydrateData:me(X.SINGLE),modifySetAttrPayload:me(X.SINGLE),modifyRmAttrPayload:me(X.SINGLE),onAddEvent:me(X.SINGLE),modifyMpEvent:me(X.MULTI),modifyMpEventImpl:me(X.SINGLE,(function(e){try{this.call("modifyMpEvent",e)}catch(e){console.warn("[Taro modifyMpEvent hook Error]: ",e)}})),modifyTaroEvent:me(X.MULTI),modifyDispatchEvent:me(X.MULTI),initNativeApi:me(X.MULTI),patchElement:me(X.MULTI)}),ne={},oe=[],ie=(...e)=>{},re=1,ae=(new Date).getTime().toString(),se=new Set(["addPhoneContact","authorize","canvasGetImageData","canvasPutImageData","canvasToTempFilePath","checkSession","chooseAddress","chooseImage","chooseInvoiceTitle","chooseLocation","chooseVideo","clearStorage","closeBLEConnection","closeBluetoothAdapter","closeSocket","compressImage","connectSocket","createBLEConnection","downloadFile","exitMiniProgram","getAvailableAudioSources","getBLEDeviceCharacteristics","getBLEDeviceServices","getBatteryInfo","getBeacons","getBluetoothAdapterState","getBluetoothDevices","getClipboardData","getConnectedBluetoothDevices","getConnectedWifi","getExtConfig","getFileInfo","getImageInfo","getLocation","getNetworkType","getSavedFileInfo","getSavedFileList","getScreenBrightness","getSetting","getStorage","getStorageInfo","getSystemInfo","getUserInfo","getWifiList","hideHomeButton","hideShareMenu","hideTabBar","hideTabBarRedDot","loadFontFace","login","makePhoneCall","navigateBack","navigateBackMiniProgram","navigateTo","navigateToBookshelf","navigateToMiniProgram","notifyBLECharacteristicValueChange","hideKeyboard","hideLoading","hideNavigationBarLoading","hideToast","openBluetoothAdapter","openDocument","openLocation","openSetting","pageScrollTo","previewImage","queryBookshelf","reLaunch","readBLECharacteristicValue","redirectTo","removeSavedFile","removeStorage","removeTabBarBadge","requestSubscribeMessage","saveFile","saveImageToPhotosAlbum","saveVideoToPhotosAlbum","scanCode","sendSocketMessage","setBackgroundColor","setBackgroundTextStyle","setClipboardData","setEnableDebug","setInnerAudioOption","setKeepScreenOn","setNavigationBarColor","setNavigationBarTitle","setScreenBrightness","setStorage","setTabBarBadge","setTabBarItem","setTabBarStyle","showActionSheet","showFavoriteGuide","showLoading","showModal","showShareMenu","showTabBar","showTabBarRedDot","showToast","startBeaconDiscovery","startBluetoothDevicesDiscovery","startDeviceMotionListening","startPullDownRefresh","stopBeaconDiscovery","stopBluetoothDevicesDiscovery","stopCompass","startCompass","startAccelerometer","stopAccelerometer","showNavigationBarLoading","stopDeviceMotionListening","stopPullDownRefresh","switchTab","uploadFile","vibrateLong","vibrateShort","writeBLECharacteristicValue"])}})}}]);