| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304 |
- "use strict";
- (wx["webpackJsonp"] = wx["webpackJsonp"] || []).push([["vendors-node_modules_taro_weapp_prebundle_chunk-77KB62LY_js"],{
- /***/ "./node_modules/.taro/weapp/prebundle/chunk-77KB62LY.js":
- /*!**************************************************************!*\
- !*** ./node_modules/.taro/weapp/prebundle/chunk-77KB62LY.js ***!
- \**************************************************************/
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ EMPTY_OBJ: function() { return /* binding */ EMPTY_OBJ; },
- /* harmony export */ Events: function() { return /* binding */ Events; },
- /* harmony export */ capitalize: function() { return /* binding */ capitalize; },
- /* harmony export */ controlledComponent: function() { return /* binding */ controlledComponent; },
- /* harmony export */ ensure: function() { return /* binding */ ensure; },
- /* harmony export */ getComponentsAlias: function() { return /* binding */ getComponentsAlias; },
- /* harmony export */ hooks: function() { return /* binding */ hooks; },
- /* harmony export */ init_shared_esm: function() { return /* binding */ init_shared_esm; },
- /* harmony export */ internalComponents: function() { return /* binding */ internalComponents; },
- /* harmony export */ isArray: function() { return /* binding */ isArray; },
- /* harmony export */ isBoolean: function() { return /* binding */ isBoolean; },
- /* harmony export */ isFunction: function() { return /* binding */ isFunction; },
- /* harmony export */ isNull: function() { return /* binding */ isNull; },
- /* harmony export */ isNumber: function() { return /* binding */ isNumber; },
- /* harmony export */ isObject: function() { return /* binding */ isObject; },
- /* harmony export */ isString: function() { return /* binding */ isString; },
- /* harmony export */ isUndefined: function() { return /* binding */ isUndefined; },
- /* harmony export */ isWebPlatform: function() { return /* binding */ isWebPlatform; },
- /* harmony export */ mergeInternalComponents: function() { return /* binding */ mergeInternalComponents; },
- /* harmony export */ mergeReconciler: function() { return /* binding */ mergeReconciler; },
- /* harmony export */ noop: function() { return /* binding */ noop; },
- /* harmony export */ processApis: function() { return /* binding */ processApis; },
- /* harmony export */ toCamelCase: function() { return /* binding */ toCamelCase; },
- /* harmony export */ toDashed: function() { return /* binding */ toDashed; },
- /* harmony export */ warn: function() { return /* binding */ warn; }
- /* harmony export */ });
- /* harmony import */ var _chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./chunk-P7VEE7PG.js */ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js");
- // node_modules/@tarojs/shared/dist/shared.esm.js
- function singleQuote(s) {
- return `'${s}'`;
- }
- function isString(o) {
- return typeof o === "string";
- }
- function isUndefined(o) {
- return typeof o === "undefined";
- }
- function isNull(o) {
- return o === null;
- }
- function isObject(o) {
- return o !== null && typeof o === "object";
- }
- function isBoolean(o) {
- return o === true || o === false;
- }
- function isFunction(o) {
- return typeof o === "function";
- }
- function isNumber(o) {
- return typeof o === "number";
- }
- function TaroHook(type, initial) {
- return {
- type,
- initial: initial || null
- };
- }
- function toDashed(s) {
- return s.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
- }
- function toCamelCase(s) {
- let camel = "";
- let nextCap = false;
- for(let i = 0; i < s.length; i++){
- if (s[i] !== "-") {
- camel += nextCap ? s[i].toUpperCase() : s[i];
- nextCap = false;
- } else {
- nextCap = true;
- }
- }
- return camel;
- }
- function capitalize(s) {
- return s.charAt(0).toUpperCase() + s.slice(1);
- }
- function ensure(condition, msg) {
- if (!condition) {
- if (true) {
- const reportIssue = "\n\u5982\u6709\u7591\u95EE\uFF0C\u8BF7\u63D0\u4EA4 issue \u81F3\uFF1Ahttps://github.com/nervjs/taro/issues";
- throw new Error(msg + reportIssue);
- } else {}
- }
- }
- function warn(condition, msg) {
- if (true) {
- if (condition) {
- console.warn(`[taro warn] ${msg}`);
- }
- }
- }
- function getUniqueKey() {
- return _loadTime + _uniqueId++;
- }
- function mergeInternalComponents(components) {
- Object.keys(components).forEach((name)=>{
- if (name in internalComponents) {
- Object.assign(internalComponents[name], components[name]);
- } else {
- internalComponents[name] = components[name];
- }
- });
- return internalComponents;
- }
- function getComponentsAlias(origin) {
- const mapping = {};
- const viewAttrs = origin.View;
- const extraList = {
- "#text": {},
- StaticView: viewAttrs,
- StaticImage: origin.Image,
- StaticText: origin.Text,
- PureView: viewAttrs,
- CatchView: viewAttrs
- };
- origin = Object.assign(Object.assign({}, origin), extraList);
- Object.keys(origin).sort((a, b)=>{
- const reg = /^(Static|Pure|Catch)*(View|Image|Text)$/;
- const isACommonly = reg.test(a);
- const isBCommonly = reg.test(b);
- if (isACommonly && isBCommonly) {
- return a > b ? 1 : -1;
- } else if (isACommonly) {
- return -1;
- } else if (isBCommonly) {
- return 1;
- } else {
- return a >= b ? 1 : -1;
- }
- }).forEach((key, num)=>{
- const obj = {
- _num: String(num)
- };
- Object.keys(origin[key]).filter((attr)=>!/^bind/.test(attr) && ![
- "focus",
- "blur"
- ].includes(attr)).sort().forEach((attr, index)=>{
- obj[toCamelCase(attr)] = "p" + index;
- });
- mapping[toDashed(key)] = obj;
- });
- return mapping;
- }
- function mergeReconciler(hostConfig, hooksForTest) {
- const obj = hooksForTest || hooks;
- const keys = Object.keys(hostConfig);
- keys.forEach((key)=>{
- obj.tap(key, hostConfig[key]);
- });
- }
- function nonsupport(api) {
- return function() {
- console.warn(`\u5C0F\u7A0B\u5E8F\u6682\u4E0D\u652F\u6301 ${api}`);
- };
- }
- function setUniqueKeyToRoute(key, obj) {
- const routerParamsPrivateKey = "__key_";
- const useDataCacheApis = [
- "navigateTo",
- "redirectTo",
- "reLaunch",
- "switchTab"
- ];
- if (useDataCacheApis.indexOf(key) > -1) {
- const url = obj.url = obj.url || "";
- const hasMark = url.indexOf("?") > -1;
- const cacheKey = getUniqueKey();
- obj.url += (hasMark ? "&" : "?") + `${routerParamsPrivateKey}=${cacheKey}`;
- }
- }
- function getCanIUseWebp(taro) {
- return function() {
- var _a;
- const res = (_a = taro.getSystemInfoSync) === null || _a === void 0 ? void 0 : _a.call(taro);
- if (!res) {
- if (true) {
- console.error("\u4E0D\u652F\u6301 API canIUseWebp");
- }
- return false;
- }
- const { platform } = res;
- const platformLower = platform.toLowerCase();
- if (platformLower === "android" || platformLower === "devtools") {
- return true;
- }
- return false;
- };
- }
- function getNormalRequest(global) {
- return function request(options) {
- options = options ? isString(options) ? {
- url: options
- } : options : {};
- const originSuccess = options.success;
- const originFail = options.fail;
- const originComplete = options.complete;
- let requestTask;
- const p = new Promise((resolve, reject)=>{
- options.success = (res)=>{
- originSuccess && originSuccess(res);
- resolve(res);
- };
- options.fail = (res)=>{
- originFail && originFail(res);
- reject(res);
- };
- options.complete = (res)=>{
- originComplete && originComplete(res);
- };
- requestTask = global.request(options);
- });
- equipTaskMethodsIntoPromise(requestTask, p);
- p.abort = (cb)=>{
- cb && cb();
- if (requestTask) {
- requestTask.abort();
- }
- return p;
- };
- return p;
- };
- }
- function processApis(taro, global, config = {}) {
- const patchNeedPromiseApis = config.needPromiseApis || [];
- const _needPromiseApis = /* @__PURE__ */ new Set([
- ...patchNeedPromiseApis,
- ...needPromiseApis
- ]);
- const preserved = [
- "getEnv",
- "interceptors",
- "Current",
- "getCurrentInstance",
- "options",
- "nextTick",
- "eventCenter",
- "Events",
- "preload",
- "webpackJsonp"
- ];
- const apis = new Set(!config.isOnlyPromisify ? Object.keys(global).filter((api)=>preserved.indexOf(api) === -1) : patchNeedPromiseApis);
- if (config.modifyApis) {
- config.modifyApis(apis);
- }
- apis.forEach((key)=>{
- if (_needPromiseApis.has(key)) {
- const originKey = key;
- taro[originKey] = (options = {}, ...args)=>{
- let key2 = originKey;
- if (typeof options === "string") {
- if (args.length) {
- return global[key2](options, ...args);
- }
- return global[key2](options);
- }
- if (config.transformMeta) {
- const transformResult = config.transformMeta(key2, options);
- key2 = transformResult.key;
- options = transformResult.options;
- if (!global.hasOwnProperty(key2)) {
- return nonsupport(key2)();
- }
- }
- let task = null;
- const obj = Object.assign({}, options);
- setUniqueKeyToRoute(key2, options);
- const p = new Promise((resolve, reject)=>{
- obj.success = (res)=>{
- var _a, _b;
- (_a = config.modifyAsyncResult) === null || _a === void 0 ? void 0 : _a.call(config, key2, res);
- (_b = options.success) === null || _b === void 0 ? void 0 : _b.call(options, res);
- if (key2 === "connectSocket") {
- resolve(Promise.resolve().then(()=>task ? Object.assign(task, res) : res));
- } else {
- resolve(res);
- }
- };
- obj.fail = (res)=>{
- var _a;
- (_a = options.fail) === null || _a === void 0 ? void 0 : _a.call(options, res);
- reject(res);
- };
- obj.complete = (res)=>{
- var _a;
- (_a = options.complete) === null || _a === void 0 ? void 0 : _a.call(options, res);
- };
- if (args.length) {
- task = global[key2](obj, ...args);
- } else {
- task = global[key2](obj);
- }
- });
- if ([
- "uploadFile",
- "downloadFile"
- ].includes(key2)) {
- equipTaskMethodsIntoPromise(task, p);
- p.progress = (cb)=>{
- task === null || task === void 0 ? void 0 : task.onProgressUpdate(cb);
- return p;
- };
- p.abort = (cb)=>{
- cb === null || cb === void 0 ? void 0 : cb();
- task === null || task === void 0 ? void 0 : task.abort();
- return p;
- };
- }
- return p;
- };
- } else {
- let platformKey = key;
- if (config.transformMeta) {
- platformKey = config.transformMeta(key, {}).key;
- }
- if (!global.hasOwnProperty(platformKey)) {
- taro[key] = nonsupport(key);
- return;
- }
- if (isFunction(global[key])) {
- taro[key] = (...args)=>{
- if (config.handleSyncApis) {
- return config.handleSyncApis(key, global, args);
- } else {
- return global[platformKey].apply(global, args);
- }
- };
- } else {
- taro[key] = global[platformKey];
- }
- }
- });
- !config.isOnlyPromisify && equipCommonApis(taro, global, config);
- }
- function equipCommonApis(taro, global, apis = {}) {
- taro.canIUseWebp = getCanIUseWebp(taro);
- taro.getCurrentPages = getCurrentPages || nonsupport("getCurrentPages");
- taro.getApp = getApp || nonsupport("getApp");
- taro.env = global.env || {};
- try {
- taro.requirePlugin = requirePlugin || nonsupport("requirePlugin");
- } catch (error) {
- taro.requirePlugin = nonsupport("requirePlugin");
- }
- const request = apis.request || getNormalRequest(global);
- function taroInterceptor(chain) {
- return request(chain.requestParams);
- }
- const link = new taro.Link(taroInterceptor);
- taro.request = link.request.bind(link);
- taro.addInterceptor = link.addInterceptor.bind(link);
- taro.cleanInterceptors = link.cleanInterceptors.bind(link);
- taro.miniGlobal = taro.options.miniGlobal = global;
- taro.getAppInfo = function() {
- return {
- platform: "mini",
- taroVersion: "3.6.16",
- designWidth: taro.config.designWidth
- };
- };
- taro.createSelectorQuery = delayRef(taro, global, "createSelectorQuery", "exec");
- taro.createIntersectionObserver = delayRef(taro, global, "createIntersectionObserver", "observe");
- }
- function equipTaskMethodsIntoPromise(task, promise) {
- if (!task || !promise) return;
- const taskMethods = [
- "abort",
- "onHeadersReceived",
- "offHeadersReceived",
- "onProgressUpdate",
- "offProgressUpdate",
- "onChunkReceived",
- "offChunkReceived"
- ];
- task && taskMethods.forEach((method)=>{
- if (method in task) {
- promise[method] = task[method].bind(task);
- }
- });
- }
- function delayRef(taro, global, name, method) {
- return function() {
- const res = global[name]();
- const raw = res[method].bind(res);
- res[method] = function(...args) {
- taro.nextTick(()=>raw(...args));
- };
- return res;
- };
- }
- var DEFAULT_EMPTY_ARRAY, NO_DEFAULT_VALUE, DEFAULT_TRUE, DEFAULT_FALSE, touchEvents, animation, View, Icon, MapComp, Progress, RichText, Text, Button, Checkbox, CheckboxGroup, Form, Input, Label, Picker, PickerView, PickerViewColumn, Radio, RadioGroup, Slider, Switch, Textarea, CoverImage, CoverView, MovableArea, MovableView, ScrollView, Swiper, SwiperItem, Navigator, Audio, Camera, Image, LivePlayer, Video, Canvas, Ad, WebView, Block, SlotView, Slot, NativeSlot, internalComponents, controlledComponent, PLATFORM_TYPE, PLATFORM_CONFIG_MAP, Events, isArray, isWebPlatform, HOOK_TYPE, defaultMiniLifecycle, TaroHooks, hooks, EMPTY_OBJ, noop, _uniqueId, _loadTime, needPromiseApis;
- var init_shared_esm = (0,_chunk_P7VEE7PG_js__WEBPACK_IMPORTED_MODULE_0__.__esm)({
- "node_modules/@tarojs/shared/dist/shared.esm.js" () {
- DEFAULT_EMPTY_ARRAY = "[]";
- NO_DEFAULT_VALUE = "";
- DEFAULT_TRUE = "!0";
- DEFAULT_FALSE = "!1";
- touchEvents = {
- bindTouchStart: NO_DEFAULT_VALUE,
- bindTouchMove: NO_DEFAULT_VALUE,
- bindTouchEnd: NO_DEFAULT_VALUE,
- bindTouchCancel: NO_DEFAULT_VALUE,
- bindLongTap: NO_DEFAULT_VALUE
- };
- animation = {
- animation: NO_DEFAULT_VALUE,
- bindAnimationStart: NO_DEFAULT_VALUE,
- bindAnimationIteration: NO_DEFAULT_VALUE,
- bindAnimationEnd: NO_DEFAULT_VALUE,
- bindTransitionEnd: NO_DEFAULT_VALUE
- };
- View = Object.assign(Object.assign({
- "hover-class": singleQuote("none"),
- "hover-stop-propagation": DEFAULT_FALSE,
- "hover-start-time": "50",
- "hover-stay-time": "400"
- }, touchEvents), animation);
- Icon = {
- type: NO_DEFAULT_VALUE,
- size: "23",
- color: NO_DEFAULT_VALUE
- };
- MapComp = Object.assign({
- longitude: NO_DEFAULT_VALUE,
- latitude: NO_DEFAULT_VALUE,
- scale: "16",
- markers: DEFAULT_EMPTY_ARRAY,
- covers: NO_DEFAULT_VALUE,
- polyline: DEFAULT_EMPTY_ARRAY,
- circles: DEFAULT_EMPTY_ARRAY,
- controls: DEFAULT_EMPTY_ARRAY,
- "include-points": DEFAULT_EMPTY_ARRAY,
- "show-location": NO_DEFAULT_VALUE,
- "layer-style": "1",
- bindMarkerTap: NO_DEFAULT_VALUE,
- bindControlTap: NO_DEFAULT_VALUE,
- bindCalloutTap: NO_DEFAULT_VALUE,
- bindUpdated: NO_DEFAULT_VALUE
- }, touchEvents);
- Progress = {
- percent: NO_DEFAULT_VALUE,
- "stroke-width": "6",
- color: singleQuote("#09BB07"),
- activeColor: singleQuote("#09BB07"),
- backgroundColor: singleQuote("#EBEBEB"),
- active: DEFAULT_FALSE,
- "active-mode": singleQuote("backwards"),
- "show-info": DEFAULT_FALSE
- };
- RichText = {
- nodes: DEFAULT_EMPTY_ARRAY
- };
- Text = {
- selectable: DEFAULT_FALSE,
- space: NO_DEFAULT_VALUE,
- decode: DEFAULT_FALSE
- };
- Button = Object.assign({
- size: singleQuote("default"),
- type: NO_DEFAULT_VALUE,
- plain: DEFAULT_FALSE,
- disabled: NO_DEFAULT_VALUE,
- loading: DEFAULT_FALSE,
- "form-type": NO_DEFAULT_VALUE,
- "open-type": NO_DEFAULT_VALUE,
- "hover-class": singleQuote("button-hover"),
- "hover-stop-propagation": DEFAULT_FALSE,
- "hover-start-time": "20",
- "hover-stay-time": "70",
- name: NO_DEFAULT_VALUE,
- bindagreeprivacyauthorization: NO_DEFAULT_VALUE
- }, touchEvents);
- Checkbox = {
- value: NO_DEFAULT_VALUE,
- disabled: NO_DEFAULT_VALUE,
- checked: DEFAULT_FALSE,
- color: singleQuote("#09BB07"),
- name: NO_DEFAULT_VALUE
- };
- CheckboxGroup = {
- bindChange: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Form = {
- "report-submit": DEFAULT_FALSE,
- bindSubmit: NO_DEFAULT_VALUE,
- bindReset: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Input = {
- value: NO_DEFAULT_VALUE,
- type: singleQuote(NO_DEFAULT_VALUE),
- password: DEFAULT_FALSE,
- placeholder: NO_DEFAULT_VALUE,
- "placeholder-style": NO_DEFAULT_VALUE,
- "placeholder-class": singleQuote("input-placeholder"),
- disabled: NO_DEFAULT_VALUE,
- maxlength: "140",
- "cursor-spacing": "0",
- focus: DEFAULT_FALSE,
- "confirm-type": singleQuote("done"),
- "confirm-hold": DEFAULT_FALSE,
- cursor: "-1",
- "selection-start": "-1",
- "selection-end": "-1",
- bindInput: NO_DEFAULT_VALUE,
- bindFocus: NO_DEFAULT_VALUE,
- bindBlur: NO_DEFAULT_VALUE,
- bindConfirm: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Label = {
- for: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Picker = {
- mode: singleQuote("selector"),
- disabled: NO_DEFAULT_VALUE,
- range: NO_DEFAULT_VALUE,
- "range-key": NO_DEFAULT_VALUE,
- value: NO_DEFAULT_VALUE,
- start: NO_DEFAULT_VALUE,
- end: NO_DEFAULT_VALUE,
- fields: singleQuote("day"),
- "custom-item": NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE,
- bindCancel: NO_DEFAULT_VALUE,
- bindChange: NO_DEFAULT_VALUE,
- bindColumnChange: NO_DEFAULT_VALUE
- };
- PickerView = {
- value: NO_DEFAULT_VALUE,
- "indicator-style": NO_DEFAULT_VALUE,
- "indicator-class": NO_DEFAULT_VALUE,
- "mask-style": NO_DEFAULT_VALUE,
- "mask-class": NO_DEFAULT_VALUE,
- bindChange: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- PickerViewColumn = {
- name: NO_DEFAULT_VALUE
- };
- Radio = {
- value: NO_DEFAULT_VALUE,
- checked: DEFAULT_FALSE,
- disabled: NO_DEFAULT_VALUE,
- color: singleQuote("#09BB07"),
- name: NO_DEFAULT_VALUE
- };
- RadioGroup = {
- bindChange: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Slider = {
- min: "0",
- max: "100",
- step: "1",
- disabled: NO_DEFAULT_VALUE,
- value: "0",
- activeColor: singleQuote("#1aad19"),
- backgroundColor: singleQuote("#e9e9e9"),
- "block-size": "28",
- "block-color": singleQuote("#ffffff"),
- "show-value": DEFAULT_FALSE,
- bindChange: NO_DEFAULT_VALUE,
- bindChanging: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Switch = {
- checked: DEFAULT_FALSE,
- disabled: NO_DEFAULT_VALUE,
- type: singleQuote("switch"),
- color: singleQuote("#04BE02"),
- bindChange: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- Textarea = {
- value: NO_DEFAULT_VALUE,
- placeholder: NO_DEFAULT_VALUE,
- "placeholder-style": NO_DEFAULT_VALUE,
- "placeholder-class": singleQuote("textarea-placeholder"),
- disabled: NO_DEFAULT_VALUE,
- maxlength: "140",
- "auto-focus": DEFAULT_FALSE,
- focus: DEFAULT_FALSE,
- "auto-height": DEFAULT_FALSE,
- fixed: DEFAULT_FALSE,
- "cursor-spacing": "0",
- cursor: "-1",
- "selection-start": "-1",
- "selection-end": "-1",
- bindFocus: NO_DEFAULT_VALUE,
- bindBlur: NO_DEFAULT_VALUE,
- bindLineChange: NO_DEFAULT_VALUE,
- bindInput: NO_DEFAULT_VALUE,
- bindConfirm: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE
- };
- CoverImage = {
- src: NO_DEFAULT_VALUE,
- bindLoad: "eh",
- bindError: "eh"
- };
- CoverView = Object.assign({
- "scroll-top": DEFAULT_FALSE
- }, touchEvents);
- MovableArea = {
- "scale-area": DEFAULT_FALSE
- };
- MovableView = Object.assign(Object.assign({
- direction: "none",
- inertia: DEFAULT_FALSE,
- "out-of-bounds": DEFAULT_FALSE,
- x: NO_DEFAULT_VALUE,
- y: NO_DEFAULT_VALUE,
- damping: "20",
- friction: "2",
- disabled: NO_DEFAULT_VALUE,
- scale: DEFAULT_FALSE,
- "scale-min": "0.5",
- "scale-max": "10",
- "scale-value": "1",
- bindChange: NO_DEFAULT_VALUE,
- bindScale: NO_DEFAULT_VALUE,
- bindHTouchMove: NO_DEFAULT_VALUE,
- bindVTouchMove: NO_DEFAULT_VALUE,
- width: singleQuote("10px"),
- height: singleQuote("10px")
- }, touchEvents), animation);
- ScrollView = Object.assign(Object.assign({
- "scroll-x": DEFAULT_FALSE,
- "scroll-y": DEFAULT_FALSE,
- "upper-threshold": "50",
- "lower-threshold": "50",
- "scroll-top": NO_DEFAULT_VALUE,
- "scroll-left": NO_DEFAULT_VALUE,
- "scroll-into-view": NO_DEFAULT_VALUE,
- "scroll-with-animation": DEFAULT_FALSE,
- "enable-back-to-top": DEFAULT_FALSE,
- bindScrollToUpper: NO_DEFAULT_VALUE,
- bindScrollToLower: NO_DEFAULT_VALUE,
- bindScroll: NO_DEFAULT_VALUE
- }, touchEvents), animation);
- Swiper = Object.assign({
- "indicator-dots": DEFAULT_FALSE,
- "indicator-color": singleQuote("rgba(0, 0, 0, .3)"),
- "indicator-active-color": singleQuote("#000000"),
- autoplay: DEFAULT_FALSE,
- current: "0",
- interval: "5000",
- duration: "500",
- circular: DEFAULT_FALSE,
- vertical: DEFAULT_FALSE,
- "previous-margin": singleQuote("0px"),
- "next-margin": singleQuote("0px"),
- "display-multiple-items": "1",
- bindChange: NO_DEFAULT_VALUE,
- bindTransition: NO_DEFAULT_VALUE,
- bindAnimationFinish: NO_DEFAULT_VALUE
- }, touchEvents);
- SwiperItem = {
- "item-id": NO_DEFAULT_VALUE
- };
- Navigator = {
- url: NO_DEFAULT_VALUE,
- "open-type": singleQuote("navigate"),
- delta: "1",
- "hover-class": singleQuote("navigator-hover"),
- "hover-stop-propagation": DEFAULT_FALSE,
- "hover-start-time": "50",
- "hover-stay-time": "600",
- bindSuccess: NO_DEFAULT_VALUE,
- bindFail: NO_DEFAULT_VALUE,
- bindComplete: NO_DEFAULT_VALUE
- };
- Audio = {
- id: NO_DEFAULT_VALUE,
- src: NO_DEFAULT_VALUE,
- loop: DEFAULT_FALSE,
- controls: DEFAULT_FALSE,
- poster: NO_DEFAULT_VALUE,
- name: NO_DEFAULT_VALUE,
- author: NO_DEFAULT_VALUE,
- bindError: NO_DEFAULT_VALUE,
- bindPlay: NO_DEFAULT_VALUE,
- bindPause: NO_DEFAULT_VALUE,
- bindTimeUpdate: NO_DEFAULT_VALUE,
- bindEnded: NO_DEFAULT_VALUE
- };
- Camera = {
- "device-position": singleQuote("back"),
- flash: singleQuote("auto"),
- bindStop: NO_DEFAULT_VALUE,
- bindError: NO_DEFAULT_VALUE
- };
- Image = Object.assign({
- src: NO_DEFAULT_VALUE,
- mode: singleQuote("scaleToFill"),
- "lazy-load": DEFAULT_FALSE,
- bindError: NO_DEFAULT_VALUE,
- bindLoad: NO_DEFAULT_VALUE
- }, touchEvents);
- LivePlayer = Object.assign({
- src: NO_DEFAULT_VALUE,
- autoplay: DEFAULT_FALSE,
- muted: DEFAULT_FALSE,
- orientation: singleQuote("vertical"),
- "object-fit": singleQuote("contain"),
- "background-mute": DEFAULT_FALSE,
- "min-cache": "1",
- "max-cache": "3",
- bindStateChange: NO_DEFAULT_VALUE,
- bindFullScreenChange: NO_DEFAULT_VALUE,
- bindNetStatus: NO_DEFAULT_VALUE
- }, animation);
- Video = Object.assign({
- src: NO_DEFAULT_VALUE,
- duration: NO_DEFAULT_VALUE,
- controls: DEFAULT_TRUE,
- "danmu-list": NO_DEFAULT_VALUE,
- "danmu-btn": NO_DEFAULT_VALUE,
- "enable-danmu": NO_DEFAULT_VALUE,
- autoplay: DEFAULT_FALSE,
- loop: DEFAULT_FALSE,
- muted: DEFAULT_FALSE,
- "initial-time": "0",
- "page-gesture": DEFAULT_FALSE,
- direction: NO_DEFAULT_VALUE,
- "show-progress": DEFAULT_TRUE,
- "show-fullscreen-btn": DEFAULT_TRUE,
- "show-play-btn": DEFAULT_TRUE,
- "show-center-play-btn": DEFAULT_TRUE,
- "enable-progress-gesture": DEFAULT_TRUE,
- "object-fit": singleQuote("contain"),
- poster: NO_DEFAULT_VALUE,
- "show-mute-btn": DEFAULT_FALSE,
- bindPlay: NO_DEFAULT_VALUE,
- bindPause: NO_DEFAULT_VALUE,
- bindEnded: NO_DEFAULT_VALUE,
- bindTimeUpdate: NO_DEFAULT_VALUE,
- bindFullScreenChange: NO_DEFAULT_VALUE,
- bindWaiting: NO_DEFAULT_VALUE,
- bindError: NO_DEFAULT_VALUE
- }, animation);
- Canvas = Object.assign({
- "canvas-id": NO_DEFAULT_VALUE,
- "disable-scroll": DEFAULT_FALSE,
- bindError: NO_DEFAULT_VALUE
- }, touchEvents);
- Ad = {
- "unit-id": NO_DEFAULT_VALUE,
- "ad-intervals": NO_DEFAULT_VALUE,
- bindLoad: NO_DEFAULT_VALUE,
- bindError: NO_DEFAULT_VALUE,
- bindClose: NO_DEFAULT_VALUE
- };
- WebView = {
- src: NO_DEFAULT_VALUE,
- bindMessage: NO_DEFAULT_VALUE,
- bindLoad: NO_DEFAULT_VALUE,
- bindError: NO_DEFAULT_VALUE
- };
- Block = {};
- SlotView = {
- name: NO_DEFAULT_VALUE
- };
- Slot = {
- name: NO_DEFAULT_VALUE
- };
- NativeSlot = {
- name: NO_DEFAULT_VALUE
- };
- internalComponents = {
- View,
- Icon,
- Progress,
- RichText,
- Text,
- Button,
- Checkbox,
- CheckboxGroup,
- Form,
- Input,
- Label,
- Picker,
- PickerView,
- PickerViewColumn,
- Radio,
- RadioGroup,
- Slider,
- Switch,
- CoverImage,
- Textarea,
- CoverView,
- MovableArea,
- MovableView,
- ScrollView,
- Swiper,
- SwiperItem,
- Navigator,
- Audio,
- Camera,
- Image,
- LivePlayer,
- Video,
- Canvas,
- Ad,
- WebView,
- Block,
- Map: MapComp,
- Slot,
- SlotView,
- NativeSlot
- };
- controlledComponent = /* @__PURE__ */ new Set([
- "input",
- "checkbox",
- "picker",
- "picker-view",
- "radio",
- "slider",
- "switch",
- "textarea"
- ]);
- (function(PLATFORM_TYPE2) {
- PLATFORM_TYPE2["MINI"] = "mini";
- PLATFORM_TYPE2["WEB"] = "web";
- PLATFORM_TYPE2["RN"] = "rn";
- PLATFORM_TYPE2["HARMONY"] = "harmony";
- PLATFORM_TYPE2["QUICK"] = "quickapp";
- })(PLATFORM_TYPE || (PLATFORM_TYPE = {}));
- PLATFORM_CONFIG_MAP = {
- h5: {
- type: PLATFORM_TYPE.WEB
- },
- harmony: {
- type: PLATFORM_TYPE.HARMONY
- },
- mini: {
- type: PLATFORM_TYPE.MINI
- },
- rn: {
- type: PLATFORM_TYPE.RN
- },
- quickapp: {
- type: PLATFORM_TYPE.QUICK
- }
- };
- Events = class {
- on(eventName, callback, context) {
- let event, tail, _eventName;
- if (!callback) {
- return this;
- }
- if (typeof eventName === "symbol") {
- _eventName = [
- eventName
- ];
- } else {
- _eventName = eventName.split(Events.eventSplitter);
- }
- this.callbacks || (this.callbacks = {});
- const calls = this.callbacks;
- while(event = _eventName.shift()){
- const list = calls[event];
- const node = list ? list.tail : {};
- node.next = tail = {};
- node.context = context;
- node.callback = callback;
- calls[event] = {
- tail,
- next: list ? list.next : node
- };
- }
- return this;
- }
- once(events, callback, context) {
- const wrapper = (...args)=>{
- callback.apply(this, args);
- this.off(events, wrapper, context);
- };
- this.on(events, wrapper, context);
- return this;
- }
- off(events, callback, context) {
- let event, calls, _events;
- if (!(calls = this.callbacks)) {
- return this;
- }
- if (!(events || callback || context)) {
- delete this.callbacks;
- return this;
- }
- if (typeof events === "symbol") {
- _events = [
- events
- ];
- } else {
- _events = events ? events.split(Events.eventSplitter) : Object.keys(calls);
- }
- while(event = _events.shift()){
- let node = calls[event];
- delete calls[event];
- if (!node || !(callback || context)) {
- continue;
- }
- const tail = node.tail;
- while((node = node.next) !== tail){
- const cb = node.callback;
- const ctx = node.context;
- if (callback && cb !== callback || context && ctx !== context) {
- this.on(event, cb, ctx);
- }
- }
- }
- return this;
- }
- trigger(events, ...args) {
- let event, node, calls, _events;
- if (!(calls = this.callbacks)) {
- return this;
- }
- if (typeof events === "symbol") {
- _events = [
- events
- ];
- } else {
- _events = events.split(Events.eventSplitter);
- }
- while(event = _events.shift()){
- if (node = calls[event]) {
- const tail = node.tail;
- while((node = node.next) !== tail){
- node.callback.apply(node.context || this, args);
- }
- }
- }
- return this;
- }
- constructor(opts){
- var _a;
- this.callbacks = (_a = opts === null || opts === void 0 ? void 0 : opts.callbacks) !== null && _a !== void 0 ? _a : {};
- }
- };
- Events.eventSplitter = ",";
- isArray = Array.isArray;
- isWebPlatform = ()=>false;
- (function(HOOK_TYPE2) {
- HOOK_TYPE2[HOOK_TYPE2["SINGLE"] = 0] = "SINGLE";
- HOOK_TYPE2[HOOK_TYPE2["MULTI"] = 1] = "MULTI";
- HOOK_TYPE2[HOOK_TYPE2["WATERFALL"] = 2] = "WATERFALL";
- })(HOOK_TYPE || (HOOK_TYPE = {}));
- defaultMiniLifecycle = {
- app: [
- "onLaunch",
- "onShow",
- "onHide"
- ],
- page: [
- "onLoad",
- "onUnload",
- "onReady",
- "onShow",
- "onHide",
- [
- "onPullDownRefresh",
- "onReachBottom",
- "onPageScroll",
- "onResize",
- "defer:onTabItemTap",
- "onTitleClick",
- "onOptionMenuClick",
- "onPopMenuClick",
- "onPullIntercept",
- "onAddToFavorites"
- ],
- [
- "onShareAppMessage",
- "onShareTimeline"
- ]
- ],
- component: [
- "attached",
- "detached"
- ]
- };
- TaroHooks = class extends Events {
- tapOneOrMany(hookName, callback) {
- const list = isFunction(callback) ? [
- callback
- ] : callback;
- list.forEach((cb)=>this.on(hookName, cb));
- }
- tap(hookName, callback) {
- const hooks2 = this.hooks;
- const { type , initial } = hooks2[hookName];
- if (type === HOOK_TYPE.SINGLE) {
- this.off(hookName);
- this.on(hookName, isFunction(callback) ? callback : callback[callback.length - 1]);
- } else {
- initial && this.off(hookName, initial);
- this.tapOneOrMany(hookName, callback);
- }
- }
- call(hookName, ...rest) {
- var _a;
- const hook = this.hooks[hookName];
- if (!hook) return;
- const { type } = hook;
- const calls = this.callbacks;
- if (!calls) return;
- const list = calls[hookName];
- if (list) {
- const tail = list.tail;
- let node = list.next;
- let args = rest;
- let res;
- while(node !== tail){
- res = (_a = node.callback) === null || _a === void 0 ? void 0 : _a.apply(node.context || this, args);
- if (type === HOOK_TYPE.WATERFALL) {
- const params = [
- res
- ];
- args = params;
- }
- node = node.next;
- }
- return res;
- }
- }
- isExist(hookName) {
- var _a;
- return Boolean((_a = this.callbacks) === null || _a === void 0 ? void 0 : _a[hookName]);
- }
- constructor(hooks2, opts){
- super(opts);
- this.hooks = hooks2;
- for(const hookName in hooks2){
- const { initial } = hooks2[hookName];
- if (isFunction(initial)) {
- this.on(hookName, initial);
- }
- }
- }
- };
- hooks = new TaroHooks({
- getMiniLifecycle: TaroHook(HOOK_TYPE.SINGLE, (defaultConfig)=>defaultConfig),
- getMiniLifecycleImpl: TaroHook(HOOK_TYPE.SINGLE, function() {
- return this.call("getMiniLifecycle", defaultMiniLifecycle);
- }),
- getLifecycle: TaroHook(HOOK_TYPE.SINGLE, (instance, lifecycle)=>instance[lifecycle]),
- getPathIndex: TaroHook(HOOK_TYPE.SINGLE, (indexOfNode)=>`[${indexOfNode}]`),
- getEventCenter: TaroHook(HOOK_TYPE.SINGLE, (Events2)=>new Events2()),
- isBubbleEvents: TaroHook(HOOK_TYPE.SINGLE, (eventName)=>{
- const BUBBLE_EVENTS = /* @__PURE__ */ new Set([
- "touchstart",
- "touchmove",
- "touchcancel",
- "touchend",
- "touchforcechange",
- "tap",
- "longpress",
- "longtap",
- "transitionend",
- "animationstart",
- "animationiteration",
- "animationend"
- ]);
- return BUBBLE_EVENTS.has(eventName);
- }),
- getSpecialNodes: TaroHook(HOOK_TYPE.SINGLE, ()=>[
- "view",
- "text",
- "image"
- ]),
- onRemoveAttribute: TaroHook(HOOK_TYPE.SINGLE),
- batchedEventUpdates: TaroHook(HOOK_TYPE.SINGLE),
- mergePageInstance: TaroHook(HOOK_TYPE.SINGLE),
- modifyPageObject: TaroHook(HOOK_TYPE.SINGLE),
- createPullDownComponent: TaroHook(HOOK_TYPE.SINGLE),
- getDOMNode: TaroHook(HOOK_TYPE.SINGLE),
- modifyHydrateData: TaroHook(HOOK_TYPE.SINGLE),
- modifySetAttrPayload: TaroHook(HOOK_TYPE.SINGLE),
- modifyRmAttrPayload: TaroHook(HOOK_TYPE.SINGLE),
- onAddEvent: TaroHook(HOOK_TYPE.SINGLE),
- proxyToRaw: TaroHook(HOOK_TYPE.SINGLE, function(proxyObj) {
- return proxyObj;
- }),
- modifyMpEvent: TaroHook(HOOK_TYPE.MULTI),
- modifyMpEventImpl: TaroHook(HOOK_TYPE.SINGLE, function(e) {
- try {
- this.call("modifyMpEvent", e);
- } catch (error) {
- console.warn("[Taro modifyMpEvent hook Error]: " + (error === null || error === void 0 ? void 0 : error.message));
- }
- }),
- injectNewStyleProperties: TaroHook(HOOK_TYPE.SINGLE),
- modifyTaroEvent: TaroHook(HOOK_TYPE.MULTI),
- dispatchTaroEvent: TaroHook(HOOK_TYPE.SINGLE, (e, node)=>{
- node.dispatchEvent(e);
- }),
- dispatchTaroEventFinish: TaroHook(HOOK_TYPE.MULTI),
- modifyDispatchEvent: TaroHook(HOOK_TYPE.MULTI),
- initNativeApi: TaroHook(HOOK_TYPE.MULTI),
- patchElement: TaroHook(HOOK_TYPE.MULTI)
- });
- EMPTY_OBJ = {};
- noop = (..._)=>{};
- _uniqueId = 1;
- _loadTime = new Date().getTime().toString();
- needPromiseApis = /* @__PURE__ */ 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"
- ]);
- }
- });
- /***/ }),
- /***/ "./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js":
- /*!**************************************************************!*\
- !*** ./node_modules/.taro/weapp/prebundle/chunk-P7VEE7PG.js ***!
- \**************************************************************/
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
- /* harmony export */ __commonJS: function() { return /* binding */ __commonJS; },
- /* harmony export */ __esm: function() { return /* binding */ __esm; },
- /* harmony export */ __export: function() { return /* binding */ __export; },
- /* harmony export */ __toCommonJS: function() { return /* binding */ __toCommonJS; },
- /* harmony export */ __toESM: function() { return /* binding */ __toESM; }
- /* harmony export */ });
- var __create = Object.create;
- var __defProp = Object.defineProperty;
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
- var __getOwnPropNames = Object.getOwnPropertyNames;
- var __getProtoOf = Object.getPrototypeOf;
- var __hasOwnProp = Object.prototype.hasOwnProperty;
- var __esm = (fn, res)=>function __init() {
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
- };
- var __commonJS = (cb, mod)=>function __require() {
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
- exports: {}
- }).exports, mod), mod.exports;
- };
- var __export = (target, all)=>{
- for(var name in all)__defProp(target, name, {
- get: all[name],
- enumerable: true
- });
- };
- var __copyProps = (to, from, except, desc)=>{
- if (from && typeof from === "object" || typeof from === "function") {
- for (let key of __getOwnPropNames(from))if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
- get: ()=>from[key],
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
- });
- }
- return to;
- };
- var __toESM = (mod, isNodeMode, target)=>(target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
- value: mod,
- enumerable: true
- }) : target, mod));
- var __toCommonJS = (mod)=>__copyProps(__defProp({}, "__esModule", {
- value: true
- }), mod);
- /***/ })
- }]);
|