| | |
| | | # å¼åç¯å¢APIå°å |
| | | VITE_APP_BASE_API = 'http://www.qdopo.com:9095' |
| | | # VITE_APP_BASE_API = 'http://192.168.100.10:8080' |
| | | # VITE_APP_BASE_API = 'http://www.qdopo.com:9095' |
| | | VITE_APP_BASE_API = 'http://192.168.100.10:8080' |
| | | VUE_APP_PLATFORM = 'h5' |
| | |
| | | # ç产ç¯å¢APIå°å |
| | | VITE_APP_BASE_API = 'http://www.qdopo.com:9095' |
| | | # VITE_APP_BASE_API = 'http://192.168.100.10:8080' |
| | | # VITE_APP_BASE_API = 'http://www.qdopo.com:9095' |
| | | VITE_APP_BASE_API = 'http://192.168.100.10:8080' |
| | | VUE_APP_PLATFORM = 'h5' |
| | |
| | | <script setup> |
| | | import { onLaunch } from '@dcloudio/uni-app' |
| | | import { getToken } from '@/utils/auth' |
| | | import { useUserStore } from '@/stores/user' |
| | | import { onLaunch } from '@dcloudio/uni-app'; |
| | | import { getToken } from '@/utils/auth'; |
| | | import { useUserStore } from '@/stores/user'; |
| | | |
| | | // å®ä¹é¡µé¢ç½åå - è¿äºé¡µé¢ä¸éè¦tokenæ ¡éª |
| | | // å®ä¹é¡µé¢ç½åå |
| | | const pageWhiteList = [ |
| | | 'pages/login/Login', |
| | | 'pages/login/DingTalkLogin' |
| | | ] |
| | | ]; |
| | | |
| | | // æ¹è¿çç½ååæ£æ¥æ¹æ³ |
| | | // ç½ååæ£æ¥ |
| | | const isPageInWhiteList = (currentPage) => { |
| | | return pageWhiteList.some(path => currentPage.includes(path)) |
| | | return pageWhiteList.some(path => currentPage.includes(path)); |
| | | } |
| | | |
| | | onLaunch(async () => { |
| | | console.log('App Launch') |
| | | // å
¨å±æ è®° |
| | | let isProcessingSSO = false; |
| | | |
| | | onLaunch(() => { |
| | | console.log('App Launch'); |
| | | |
| | | const userStore = useUserStore() |
| | | const launchOptions = uni.getLaunchOptionsSync(); |
| | | const currentPage = launchOptions.path || ''; |
| | | const query = launchOptions.query || {}; |
| | | console.log('å¯å¨åæ°:', { currentPage, query, launchOptions }); |
| | | |
| | | // â
ç¬¬ä¸æ¥ï¼æ£æ¥æ¯å¦SSO龿¥ |
| | | if (query.userName && query.passWord) { |
| | | console.log('æ£æµå°SSOåæ°ï¼å¤çä¸...'); |
| | | |
| | | // 妿已ç»å¨ç»å½é¡µï¼ç´æ¥å¤ç |
| | | if (currentPage.includes('login/Login')) { |
| | | console.log('å½åå·²å¨ç»å½é¡µï¼çå¾
login.vueå¤çSSO'); |
| | | return; |
| | | } |
| | | |
| | | // 鲿¢éå¤å¤ç |
| | | if (isProcessingSSO) { |
| | | console.log('æ£å¨å¤çSSOä¸ï¼è·³è¿'); |
| | | return; |
| | | } |
| | | |
| | | isProcessingSSO = true; |
| | | |
| | | // â
æå»ºç»å½é¡µURLï¼æºå¸¦ææåå§åæ° |
| | | const queryParams = []; |
| | | |
| | | // æºå¸¦åå§é¡µé¢è·¯å¾ |
| | | if (currentPage) { |
| | | queryParams.push(`redirect=${encodeURIComponent('/' + currentPage)}`); |
| | | } |
| | | |
| | | // æºå¸¦æææ¥è¯¢åæ° |
| | | for (const key in query) { |
| | | if (query[key]) { |
| | | queryParams.push(`${key}=${encodeURIComponent(query[key])}`); |
| | | } |
| | | } |
| | | |
| | | console.log('跳转å°ç»å½é¡µï¼åæ°:', queryParams); |
| | | |
| | | // å»¶è¿è·³è½¬ï¼é¿å
å²çª |
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | | url: `/pages/login/Login?${queryParams.join('&')}`, |
| | | success: () => { |
| | | console.log('SSO跳转æå'); |
| | | isProcessingSSO = false; |
| | | }, |
| | | fail: () => { |
| | | console.log('SSO跳转失败'); |
| | | isProcessingSSO = false; |
| | | } |
| | | }); |
| | | }, 200); |
| | | |
| | | return; |
| | | } |
| | | |
| | | // ç¬¬äºæ¥ï¼æ£å¸¸tokenæ£æ¥ |
| | | handleTokenCheck(); |
| | | }); |
| | | |
| | | // tokenæ£æ¥å½æ° |
| | | const handleTokenCheck = async () => { |
| | | const userStore = useUserStore(); |
| | | const token = getToken(); |
| | | const launchOptions = uni.getLaunchOptionsSync(); |
| | | const currentPage = launchOptions.path || ''; |
| | | const query = launchOptions.query || {}; |
| | | |
| | | console.log('tokenæ£æ¥:', { |
| | | hasToken: !!token, |
| | | currentPage, |
| | | query |
| | | }); |
| | | |
| | | // 妿æSSOåæ°ï¼å·²å¨ä¸ä¸æ¥å¤ç |
| | | if (query.userName && query.passWord) { |
| | | return; |
| | | } |
| | | |
| | | if (!token) { |
| | | if (!isPageInWhiteList(currentPage)) { |
| | | console.log('æ tokenä¸ä¸å¨ç½ååï¼è·³è½¬ç»å½é¡µ'); |
| | | |
| | | // æå»ºè·³è½¬URLï¼æºå¸¦å½å页é¢ä¿¡æ¯ |
| | | let loginUrl = '/pages/login/Login'; |
| | | if (currentPage) { |
| | | const queryParams = []; |
| | | queryParams.push(`redirect=${encodeURIComponent('/' + currentPage)}`); |
| | | |
| | | // æºå¸¦å
¶ä»åæ° |
| | | for (const key in query) { |
| | | if (query[key]) { |
| | | queryParams.push(`${key}=${encodeURIComponent(query[key])}`); |
| | | } |
| | | } |
| | | |
| | | if (queryParams.length > 0) { |
| | | loginUrl += `?${queryParams.join('&')}`; |
| | | } |
| | | } |
| | | |
| | | setTimeout(() => { |
| | | uni.redirectTo({ url: loginUrl }); |
| | | }, 100); |
| | | } |
| | | return; |
| | | } |
| | | |
| | | try { |
| | | const token = getToken() |
| | | const launchOptions = uni.getLaunchOptionsSync() |
| | | const currentPage = launchOptions.path || '' |
| | | console.log(launchOptions); |
| | | console.log(launchOptions.path); |
| | | const current = await uni.$uapi.get("/getInfo"); |
| | | |
| | | if (!token) { |
| | | if (!isPageInWhiteList(currentPage)) { |
| | | console.log('æªéè¿ç½åå跳转ç»å½é¡µ') |
| | | return uni.redirectTo({ url: '/pages/login/Login' }) |
| | | } |
| | | return |
| | | } |
| | | |
| | | // æ ¡éªtokenæææ§ï¼éè¿è°ç¨/current/user/current_rolesæ¥å£ |
| | | const current = await uni.$uapi.get("/getInfo"); |
| | | |
| | | // 妿æ¥å£è¿åæåï¼è¯´ætokenææï¼ç»§ç»è·åç¨æ·ä¿¡æ¯ |
| | | if (current) { |
| | | // const resuser = await uni.$uapi.get("/system/user/profile"); |
| | | if (current && current.user) { |
| | | userStore.setUserInfo(current.user); |
| | | userStore.setroleKey(current.roles); |
| | | if (current.roles) { |
| | | userStore.setroleKey(current.roles); |
| | | } |
| | | |
| | | // 妿å½åæ¯ç»å½é¡µï¼è·³è½¬é¦é¡µ |
| | | if (isPageInWhiteList(currentPage)) { |
| | | uni.switchTab({ url: '/pages/index/index' }) |
| | | uni.switchTab({ url: '/pages/index/index' }); |
| | | } |
| | | } else { |
| | | // æ¥å£è¿åä½è§è²ä¿¡æ¯ä¸ºç©ºï¼è§ä¸ºtokenæ æ |
| | | console.error('è§è²ä¿¡æ¯è·å失败ï¼tokenå¯è½æ æ') |
| | | userStore.clearUser() // æ¸
餿¬å°ç¨æ·ä¿¡æ¯ |
| | | uni.redirectTo({ url: '/pages/login/Login' }) |
| | | console.error('tokenæ æ'); |
| | | userStore.clearUser(); |
| | | if (!isPageInWhiteList(currentPage)) { |
| | | uni.redirectTo({ url: '/pages/login/Login' }); |
| | | } |
| | | } |
| | | |
| | | } catch (error) { |
| | | console.error('åå§å失败:', error) |
| | | // tokenæ ææå
¶ä»éè¯¯ï¼æ¸
餿¬å°ç¨æ·ä¿¡æ¯å¹¶è·³è½¬ç»å½é¡µ |
| | | userStore.clearUser() |
| | | uni.redirectTo({ url: '/pages/login/Login' }) |
| | | console.error('åå§å失败:', error); |
| | | userStore.clearUser(); |
| | | if (!isPageInWhiteList(currentPage)) { |
| | | uni.redirectTo({ url: '/pages/login/Login' }); |
| | | } |
| | | } |
| | | }) |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | |
| | | '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + |
| | | (coverSupport ? ', viewport-fit=cover' : '') + '" />') |
| | | </script> |
| | | <title>ééé¢OPO管çå¹³å°</title> |
| | | <title>é大éé¢OPO管çå¹³å°</title> |
| | | <link rel="icon" href="/static/avatar/logo.png"> <!-- å¼ç¨æ ¹ç®å½ç徿 --> |
| | | <!--preload-links--> |
| | | <!--app-context--> |
| | |
| | | "disableHostCheck": true, |
| | | "proxy": { |
| | | "/api": { |
| | | "target": "http://www.qdopo.com:9095", |
| | | // "target": "http://192.168.100.10:8080", |
| | | // "target": "http://www.qdopo.com:9095", |
| | | "target": "http://192.168.100.10:8080", |
| | | "changeOrigin": true |
| | | } |
| | | } |
| | |
| | | { |
| | | "path": "pages/index/index", |
| | | "style": { |
| | | "navigationBarTitleText": "ééé¢OPO管çå¹³å°", |
| | | "navigationBarTitleText": "é大éé¢OPO管çå¹³å°", |
| | | "enablePullDownRefresh": true |
| | | } |
| | | }, |
| | |
| | | <view class="login-container"> |
| | | <view class="header"> |
| | | <image src="/static/avatar/logo.png" class="logo" /> |
| | | <text class="hospital-name">ééé¢OPO管çå¹³å°</text> |
| | | <text class="hospital-name">é大éé¢OPO管çå¹³å°</text> |
| | | </view> |
| | | |
| | | <view class="form-container"> |
| | |
| | | |
| | | <script setup> |
| | | import { ref } from "vue"; |
| | | import { onLoad } from "@dcloudio/uni-app"; |
| | | import { onLoad, onShow } from "@dcloudio/uni-app"; |
| | | import { useUserStore } from "@/stores/user"; |
| | | import { getToken, setToken } from "@/utils/auth"; |
| | | import { encrypt } from "@/utils/crypto"; |
| | | |
| | | let isAutoLogining = false; |
| | | let hasAutoLogin = false; |
| | | |
| | | const username = ref(""); |
| | | const password = ref(""); |
| | | const showPassword = ref(false); |
| | | const isHarmonyOS = ref(false); |
| | | const redirect = ref("/pages/index/index"); // é»è®¤è·³è½¬é¦é¡µ |
| | | const redirect = ref(""); |
| | | |
| | | onLoad((options) => { |
| | | // æ ¼å¼åå½åæ¥æä¸º YYYYMMDD |
| | | const getCurrentDate = () => { |
| | | const now = new Date(); |
| | | const year = now.getFullYear(); |
| | | const month = String(now.getMonth() + 1).padStart(2, "0"); |
| | | const day = String(now.getDate()).padStart(2, "0"); |
| | | return `${year}${month}${day}`; |
| | | }; |
| | | console.log("ç»å½é¡µonLoadï¼å®æ´åæ°:", options); |
| | | console.log("页颿 :", getCurrentPages()); |
| | | |
| | | // èªå¨çæå¯ç 彿° |
| | | const generatePassword = () => { |
| | | const currentDate = getCurrentDate(); // ç´æ¥è°ç¨å½æ° |
| | | return `Hrs#${currentDate}*`; |
| | | }; |
| | | // uni.$uapi.post("/getToken", { |
| | | // userName: "æµè¯å´é¾", |
| | | // passWord: "13803963330", |
| | | // }); |
| | | // â
è·å宿´URLåæ° |
| | | const pages = getCurrentPages(); |
| | | if (pages.length > 0) { |
| | | const currentPage = pages[pages.length - 1]; |
| | | console.log("å½å页é¢å¯¹è±¡:", currentPage); |
| | | } |
| | | |
| | | // å¤çredirectåæ° |
| | | if (options.redirect) { |
| | | redirect.value = decodeURIComponent(options.redirect); |
| | | } else if (options.userName && options.passWord) { |
| | | // å¦ææ²¡æredirect使SSOåæ°ï¼å°è¯ä»referrerè·å |
| | | const launchOptions = uni.getLaunchOptionsSync(); |
| | | if (launchOptions.referrerInfo && launchOptions.referrerInfo.extraData) { |
| | | const referrer = launchOptions.referrerInfo.extraData; |
| | | console.log("referrerä¿¡æ¯:", referrer); |
| | | } |
| | | } |
| | | // password.value = generatePassword(); // ç´æ¥è°ç¨å½æ° |
| | | password.value = ""; // ç´æ¥è°ç¨å½æ° |
| | | username.value = ""; |
| | | // æ£æµæ¯å¦é¸¿èç³»ç» |
| | | // #ifdef HARMONY |
| | | isHarmonyOS.value = true; |
| | | |
| | | // #endif |
| | | // æ£æ¥æ¯å¦å·²ætoken |
| | | if (getToken()) { |
| | | console.log("å·²åå¨tokenï¼ç´æ¥è·³è½¬"); |
| | | setTimeout(() => { |
| | | navigateToTarget(); |
| | | }, 100); |
| | | return; |
| | | } |
| | | |
| | | // â
SSOç»å½ï¼æ£æ¥ææå¯è½çåæ°ä½ç½® |
| | | let ssoUserName = options.userName; |
| | | let ssoPassWord = options.passWord; |
| | | |
| | | // å¦ææ²¡æä»optionsè·åå°ï¼å°è¯ä»å¯å¨åæ°è·å |
| | | if (!ssoUserName || !ssoPassWord) { |
| | | const launchOptions = uni.getLaunchOptionsSync(); |
| | | if (launchOptions.query) { |
| | | ssoUserName = ssoUserName || launchOptions.query.userName; |
| | | ssoPassWord = ssoPassWord || launchOptions.query.passWord; |
| | | } |
| | | } |
| | | |
| | | if (ssoUserName && ssoPassWord) { |
| | | console.log("æ£æµå°SSOåæ°ï¼èªå¨ç»å½", { ssoUserName }); |
| | | |
| | | // åå¹¶ææé¡µé¢åæ° |
| | | const pageParams = { ...options }; |
| | | delete pageParams.userName; |
| | | delete pageParams.passWord; |
| | | delete pageParams.redirect; |
| | | |
| | | handleSSOLogin(ssoUserName, ssoPassWord, pageParams); |
| | | } else { |
| | | // æ®éç»å½ |
| | | password.value = ""; |
| | | username.value = ""; |
| | | } |
| | | }); |
| | | |
| | | onShow(() => { |
| | | console.log("ç»å½é¡µonShow"); |
| | | if (hasAutoLogin) { |
| | | hasAutoLogin = false; |
| | | } |
| | | }); |
| | | |
| | | // â
æ¹è¿çSSOç»å½å½æ° |
| | | const handleSSOLogin = async (userName, passWord, pageParams = {}) => { |
| | | if (isAutoLogining) { |
| | | console.log("æ£å¨èªå¨ç»å½ä¸ï¼è·³è¿"); |
| | | return; |
| | | } |
| | | |
| | | isAutoLogining = true; |
| | | console.log("å¼å§SSOå
ç»:", { userName, pageParams }); |
| | | |
| | | uni.showLoading({ title: "èªå¨ç»å½ä¸...", mask: true }); |
| | | |
| | | try { |
| | | console.log(11); |
| | | |
| | | // 1. è·åtoken |
| | | const tokenRes = await uni.$uapi.post("/getToken", { |
| | | userName, |
| | | passWord, |
| | | }); |
| | | console.log(tokenRes.data); |
| | | |
| | | uni.hideLoading(); |
| | | |
| | | if (!tokenRes.data.token) { |
| | | throw new Error("è·åtoken失败"); |
| | | } |
| | | |
| | | console.log("è·åå°tokenæå"); |
| | | |
| | | // 2. ä¿åtoken |
| | | setToken(tokenRes.data.token); |
| | | |
| | | // 3. è·åç¨æ·ä¿¡æ¯ |
| | | const userStore = useUserStore(); |
| | | const userInfo = await uni.$uapi.get("/getInfo"); |
| | | if (userInfo) { |
| | | userStore.setUserInfo(userInfo); |
| | | } |
| | | |
| | | // 4. æå»ºç®æ 页é¢URL |
| | | let targetPage = redirect.value; |
| | | if (!targetPage && Object.keys(pageParams).length > 0) { |
| | | // å°è¯ä»åå§è®¿é®è·¯å¾æå»º |
| | | const launchOptions = uni.getLaunchOptionsSync(); |
| | | if (launchOptions.path && !launchOptions.path.includes("login/Login")) { |
| | | targetPage = "/" + launchOptions.path; |
| | | } |
| | | } |
| | | |
| | | // 5. 跳转 |
| | | hasAutoLogin = true; |
| | | await navigateToTargetPage(targetPage, pageParams); |
| | | } catch (err) { |
| | | uni.hideLoading(); |
| | | console.error("SSOå
ç»å¤±è´¥:", err); |
| | | uni.showToast({ |
| | | title: "èªå¨ç»å½å¤±è´¥ï¼è¯·æå¨ç»å½", |
| | | icon: "none", |
| | | duration: 3000, |
| | | }); |
| | | |
| | | uni.removeStorageSync("token"); |
| | | } finally { |
| | | isAutoLogining = false; |
| | | } |
| | | }; |
| | | |
| | | // æ®éç»å½ |
| | | const handleLogin = async () => { |
| | | try { |
| | | const userStore = useUserStore(); |
| | | if (!username.value || !password.value) { |
| | | uni.showToast({ title: "请è¾å
¥è´¦å·å¯ç ", icon: "none" }); |
| | | return; |
| | | } |
| | | |
| | | // â
å¯ç å å¯ |
| | | uni.showLoading({ title: "ç»å½ä¸...", mask: true }); |
| | | |
| | | const userStore = useUserStore(); |
| | | const encryptedPassword = encrypt(password.value); |
| | | const encryptedUsername = encrypt(username.value); |
| | | |
| | | const loginRes = await uni.$uapi.post("/login", { |
| | | username: encryptedUsername, |
| | | password: encryptedPassword, // â ï¸ ä¼ å¯æ |
| | | password: encryptedPassword, |
| | | }); |
| | | |
| | | userStore.setToken(loginRes.token); |
| | | if (!loginRes || !loginRes.token) { |
| | | throw new Error("ç»å½å¤±è´¥"); |
| | | } |
| | | |
| | | setToken(loginRes.token); |
| | | |
| | | const userInfo = await uni.$uapi.get("/getInfo"); |
| | | userStore.setUserInfo(userInfo); |
| | | |
| | | const redirects = redirect.value || "/pages/index/index"; |
| | | |
| | | const tabBarPages = [ |
| | | "/pages/index/index", |
| | | "/pages/appointment/index", |
| | | "/pages/consultation/index", |
| | | "/pages/my/index", |
| | | ]; |
| | | |
| | | if (tabBarPages.includes(redirects)) { |
| | | uni.switchTab({ url: redirects }); |
| | | } else { |
| | | uni.redirectTo({ url: redirects }); |
| | | if (userInfo) { |
| | | userStore.setUserInfo(userInfo); |
| | | } |
| | | |
| | | uni.hideLoading(); |
| | | await navigateToTarget(); |
| | | } catch (err) { |
| | | uni.hideLoading(); |
| | | console.error("ç»å½å¤±è´¥:", err); |
| | | uni.showToast({ |
| | | title: err.message || "ç»å½å¤±è´¥", |
| | | icon: "none", |
| | | duration: 3000, |
| | | }); |
| | | } |
| | | }; |
| | | |
| | | const gotoRegister = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/login/Register", |
| | | }); |
| | | // â
æ¹è¿çè·³è½¬å½æ° |
| | | const navigateToTarget = () => { |
| | | return navigateToTargetPage(redirect.value, {}); |
| | | }; |
| | | |
| | | const gotoForgetPassword = () => { |
| | | uni.navigateTo({ |
| | | url: "/pages/login/ForgetPwd", |
| | | }); |
| | | }; |
| | | const navigateToTargetPage = (targetPage, pageParams = {}) => { |
| | | return new Promise((resolve) => { |
| | | setTimeout(() => { |
| | | let targetUrl = targetPage || "/pages/index/index"; |
| | | |
| | | const appleLogin = () => { |
| | | uni.showToast({ |
| | | title: "ææªå¼é Apple ç»å½", |
| | | icon: "none", |
| | | }); |
| | | }; |
| | | // å¤ç页é¢åæ° |
| | | const paramKeys = Object.keys(pageParams).filter( |
| | | (key) => |
| | | pageParams[key] !== undefined && |
| | | pageParams[key] !== null && |
| | | key !== "userName" && |
| | | key !== "passWord" && |
| | | key !== "redirect", |
| | | ); |
| | | |
| | | const harmonyLogin = () => { |
| | | // è°ç¨é¸¿èç»å½æä»¶ |
| | | // #ifdef HARMONY |
| | | const harmonyAuth = uni.requireNativePlugin("Harmony-Auth"); |
| | | harmonyAuth.login((result) => { |
| | | console.log("鸿èç»å½ç»æ:", result); |
| | | if (paramKeys.length > 0) { |
| | | const queryStr = paramKeys |
| | | .map((key) => `${key}=${encodeURIComponent(pageParams[key])}`) |
| | | .join("&"); |
| | | |
| | | targetUrl = targetUrl.includes("?") |
| | | ? `${targetUrl}&${queryStr}` |
| | | : `${targetUrl}?${queryStr}`; |
| | | } |
| | | |
| | | console.log("æç»è·³è½¬ç®æ :", targetUrl); |
| | | |
| | | const tabBarPages = [ |
| | | "/pages/index/index", |
| | | "/pages/appointment/index", |
| | | "/pages/consultation/index", |
| | | "/pages/my/index", |
| | | ]; |
| | | |
| | | const baseUrl = targetUrl.split("?")[0]; |
| | | const isTabBar = tabBarPages.includes(baseUrl); |
| | | |
| | | if (isTabBar) { |
| | | uni.switchTab({ |
| | | url: baseUrl, |
| | | success: () => resolve(true), |
| | | fail: () => { |
| | | uni.redirectTo({ url: "/pages/index/index" }); |
| | | resolve(false); |
| | | }, |
| | | }); |
| | | } else { |
| | | uni.redirectTo({ |
| | | url: targetUrl, |
| | | success: () => resolve(true), |
| | | fail: (err) => { |
| | | console.error("跳转失败:", err); |
| | | // å¦æç®æ 页跳转失败ï¼è·³é¦é¡µ |
| | | uni.redirectTo({ url: "/pages/index/index" }); |
| | | resolve(false); |
| | | }, |
| | | }); |
| | | } |
| | | }, 300); |
| | | }); |
| | | // #endif |
| | | }; |
| | | </script> |
| | | |
| | |
| | | <!-- ç¨æ·ä¿¡æ¯å¡ç --> |
| | | <view class="user-card"> |
| | | <view class="user-info" @tap="navigateTo('/pages/my/profile')"> |
| | | <image src="@/static/avatar/default.png" mode="aspectFill" class="avatar" /> |
| | | <image |
| | | src="@/static/avatar/default.png" |
| | | mode="aspectFill" |
| | | class="avatar" |
| | | /> |
| | | <view class="info"> |
| | | <text class="name">{{ userInfo.name }}</text> |
| | | <text class="id">å°±è¯å¡å·ï¼{{ userInfo.cardNo }}</text> |
| | |
| | | // åè½å表 |
| | | const functionList = ref([ |
| | | { |
| | | title: "就廿å¡", |
| | | title: "æ¡ä¾æå¡", |
| | | items: [ |
| | | { |
| | | label: "æå·è®°å½", |
| | | label: "䏿¥æ¡ä¾", |
| | | icon: "icon-record", |
| | | path: "/pages/appointment/record", |
| | | path: "/pages/case/CaseDetails", |
| | | }, |
| | | { |
| | | label: "缴费记å½", |
| | | label: "æç䏿¥", |
| | | icon: "icon-payment", |
| | | path: "/pages/payment/record", |
| | | path: "/pages/case/index", |
| | | }, |
| | | { |
| | | label: "å°±å»è®°å½", |
| | | label: "转è¿ç»è®°", |
| | | icon: "icon-medical", |
| | | path: "/pages/records/medical", |
| | | path: "/pages/case/transfer", |
| | | }, |
| | | { |
| | | label: "å°±è¯äººç®¡ç", |
| | | label: "审æ¥è®°å½", |
| | | icon: "icon-contacts", |
| | | path: "/pages/patient/list", |
| | | value: "已添å 3人", |
| | | path: "/pages/ethicalReview/index", |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | title: "å¥åº·æå¡", |
| | | items: [ |
| | | { |
| | | label: "å¥åº·æ¡£æ¡", |
| | | icon: "icon-health", |
| | | path: "/pages/my/health-records", |
| | | }, |
| | | { |
| | | label: "æ£æ¥æ¥å", |
| | | icon: "icon-report", |
| | | path: "/pages/records/reports", |
| | | tag: "æ°", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // title: "å¥åº·æå¡", |
| | | // items: [ |
| | | // { |
| | | // label: "å¥åº·æ¡£æ¡", |
| | | // icon: "icon-health", |
| | | // path: "/pages/my/health-records", |
| | | // }, |
| | | // { |
| | | // label: "æ£æ¥æ¥å", |
| | | // icon: "icon-report", |
| | | // path: "/pages/records/reports", |
| | | // tag: "æ°", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | title: "è´¦æ·è®¾ç½®", |
| | | items: [ |
| | | { |
| | | label: "å®å认è¯", |
| | | icon: "icon-verify", |
| | | path: "/pages/my/verify", |
| | | value: "已认è¯", |
| | | }, |
| | | { |
| | | label: "æ¯ä»æ¹å¼", |
| | | icon: "icon-wallet", |
| | | path: "/pages/my/payment-method", |
| | | }, |
| | | // { |
| | | // label: "å®å认è¯", |
| | | // icon: "icon-verify", |
| | | // path: "/pages/my/verify", |
| | | // value: "已认è¯", |
| | | // }, |
| | | // { |
| | | // label: "æ¯ä»æ¹å¼", |
| | | // icon: "icon-wallet", |
| | | // path: "/pages/my/payment-method", |
| | | // }, |
| | | { |
| | | label: "æ¶æ¯éç¥", |
| | | icon: "icon-notification", |
| | |
| | | }, |
| | | ], |
| | | }, |
| | | { |
| | | items: [ |
| | | { |
| | | label: "客æä¸å¿", |
| | | icon: "icon-service", |
| | | path: "/pages/my/service", |
| | | }, |
| | | { |
| | | label: "设置", |
| | | icon: "icon-settings", |
| | | path: "/pages/my/settings", |
| | | }, |
| | | ], |
| | | }, |
| | | // { |
| | | // items: [ |
| | | // { |
| | | // label: "客æä¸å¿", |
| | | // icon: "icon-service", |
| | | // path: "/pages/my/service", |
| | | // }, |
| | | // { |
| | | // label: "设置", |
| | | // icon: "icon-settings", |
| | | // path: "/pages/my/settings", |
| | | // }, |
| | | // ], |
| | | // }, |
| | | ]); |
| | | |
| | | // 页é¢è·³è½¬ |
| | |
| | | |
| | | .function-list { |
| | | margin-top: 20rpx; |
| | | |
| | | margin-left: 5rpx; |
| | | .section { |
| | | margin-bottom: 20rpx; |
| | | |
| | |
| | | const userInfo = ref(null); |
| | | const roleKeyInfo = ref(null); |
| | | // const baseUrlHt = ref(window.location.origin+'/api'); |
| | | const baseUrlHt = ref('http://www.qdopo.com:9095'); |
| | | // const baseUrlHt = ref('http://192.168.100.10:8080'); |
| | | // const baseUrlHt = ref('http://www.qdopo.com:9095'); |
| | | const baseUrlHt = ref('http://192.168.100.10:8080'); |
| | | |
| | | // getters |
| | | const isLoggedIn = computed(() => !!token.value); |
| | |
| | | * vue-router v4.3.0 |
| | | * (c) 2024 Eduardo San Martin Morote |
| | | * @license MIT |
| | | */(e);if(!o)return;const i=t._component;g(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const ms="undefined"!=typeof document;const gs=Object.assign;function ys(e,t){const n={};for(const o in t){const i=t[o];n[o]=vs(i)?i.map(e):e(i)}return n}const bs=()=>{},vs=Array.isArray,_s=/#/g,ws=/&/g,xs=/\//g,Ss=/=/g,Cs=/\?/g,ks=/\+/g,As=/%5B/g,Ts=/%5D/g,Is=/%5E/g,Es=/%60/g,Bs=/%7B/g,Ms=/%7C/g,Ps=/%7D/g,Os=/%20/g;function zs(e){return encodeURI(""+e).replace(Ms,"|").replace(As,"[").replace(Ts,"]")}function Ls(e){return zs(e).replace(ks,"%2B").replace(Os,"+").replace(_s,"%23").replace(ws,"%26").replace(Es,"`").replace(Bs,"{").replace(Ps,"}").replace(Is,"^")}function Ns(e){return Ls(e).replace(Ss,"%3D")}function Ds(e){return null==e?"":function(e){return zs(e).replace(_s,"%23").replace(Cs,"%3F")}(e).replace(xs,"%2F")}function Rs(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const $s=/\/$/;function js(e,t,n="/"){let o,i={},r="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,s>-1?s:t.length),i=e(r)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,a,s=n.length-1;for(r=0;r<o.length;r++)if(a=o[r],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+a,path:o,query:i,hash:Rs(a)}}function Fs(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Vs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ws(e[n],t[n]))return!1;return!0}function Ws(e,t){return vs(e)?Us(e,t):vs(t)?Us(t,e):e===t}function Us(e,t){return vs(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}var qs,Qs,Ys,Gs;function Xs(e){if(!e)if(ms){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace($s,"")}(Qs=qs||(qs={})).pop="pop",Qs.push="push",(Gs=Ys||(Ys={})).back="back",Gs.forward="forward",Gs.unknown="";const Ks=/^[^#]+#/;function Js(e,t){return e.replace(Ks,"#")+t}const Zs=()=>({left:window.scrollX,top:window.scrollY});function el(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function tl(e,t){return(history.state?history.state.position-t:-1)+e}const nl=new Map;function ol(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),Fs(n,"")}return Fs(n,e)+o+i}function il(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Zs():null}}function rl(e){const{history:t,location:n}=window,o={value:ol(e,n)},i={value:t.state};function r(o,r,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const a=gs({},i.value,t.state,{forward:e,scroll:Zs()});r(a.current,a,!0),r(e,gs({},il(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){r(e,gs({},t.state,il(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function al(e){const t=rl(e=Xs(e)),n=function(e,t,n,o){let i=[],r=[],a=null;const s=({state:r})=>{const s=ol(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=s,t.value=r,a&&a===l)return void(a=null);u=c?r.position-c.position:0}else o(s);i.forEach(e=>{e(n.value,l,{delta:u,type:qs.pop,direction:u?u>0?Ys.forward:Ys.back:Ys.unknown})})};function l(){const{history:e}=window;e.state&&e.replaceState(gs({},e.state,{scroll:Zs()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=gs({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Js.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function sl(e){return"string"==typeof e||"symbol"==typeof e}const ll={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},cl=Symbol("");var ul,dl;function hl(e,t){return gs(new Error,{type:e,[cl]:!0},t)}function pl(e,t){return e instanceof Error&&cl in e&&(null==t||!!(e.type&t))}(dl=ul||(ul={}))[dl.aborted=4]="aborted",dl[dl.cancelled=8]="cancelled",dl[dl.duplicated=16]="duplicated";const fl="[^/]+?",ml={sensitive:!1,strict:!1,start:!0,end:!0},gl=/[.+*?^${}()[\]/\\]/g;function yl(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function bl(e,t){let n=0;const o=e.score,i=t.score;for(;n<o.length&&n<i.length;){const e=yl(o[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-o.length)){if(vl(o))return 1;if(vl(i))return-1}return i.length-o.length}function vl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _l={type:0,value:""},wl=/[a-zA-Z0-9_]/;function xl(e,t,n){const o=function(e,t){const n=gs({},ml,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const o=l[t];let a=40+(n.sensitive?.25:0);if(0===o.type)t||(i+="/"),i+=o.value.replace(gl,"\\$&"),a+=40;else if(1===o.type){const{value:e,repeatable:n,optional:c,regexp:u}=o;r.push({name:e,repeatable:n,optional:c});const d=u||fl;if(d!==fl){a+=10;try{new RegExp(`(${d})`)}catch(s){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+s.message)}}let h=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(h=c&&l.length<2?`(?:/${h})`:"/"+h),c&&(h+="?"),i+=h,a+=20,c&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");return{re:a,score:o,keys:r,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let o=1;o<t.length;o++){const e=t[o]||"",i=r[o-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",o=!1;for(const i of e){o&&n.endsWith("/")||(n+="/"),o=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:r,repeatable:a,optional:s}=e,l=r in t?t[r]:"";if(vs(l)&&!a)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const c=vs(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${r}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):o=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[_l]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,o=n;const i=[];let r;function a(){r&&i.push(r),r=[]}let s,l=0,c="",u="";function d(){c&&(0===n?r.push({type:0,value:c}):1===n||2===n||3===n?(r.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function h(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&d(),a()):":"===s?(d(),n=1):h();break;case 4:h(),n=o;break;case 1:"("===s?n=2:wl.test(s)?h():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")}else o=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),i}(e.path),n),i=gs(o,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Sl(e,t){const n=[],o=new Map;function i(e,n,o){const s=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=o&&o.record;const c=Il(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(gs({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let d,h;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=xl(t,n,c),o?o.alias.push(d):(h=h||d,h!==d&&h.alias.push(d),s&&e.name&&!Al(d)&&r(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],d,o&&o.children[t])}o=o||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&a(d)}return h?()=>{r(h)}:bs}function r(e){if(sl(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function a(e){let t=0;for(;t<n.length&&bl(e,n[t])>=0&&(e.record.path!==n[t].record.path||!El(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Al(e)&&o.set(e.record.name,e)}return t=Il({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,r,a,s={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw hl(1,{location:e});a=i.record.name,s=gs(Cl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Cl(e.params,i.keys.map(e=>e.name))),r=i.stringify(s)}else if(null!=e.path)r=e.path,i=n.find(e=>e.re.test(r)),i&&(s=i.parse(r),a=i.record.name);else{if(i=t.name?o.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw hl(1,{location:e,currentLocation:t});a=i.record.name,s=gs({},t.params,e.params),r=i.stringify(s)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:r,params:s,matched:l,meta:Tl(l)}},removeRoute:r,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Cl(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function kl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Al(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tl(e){return e.reduce((e,t)=>gs(e,t.meta),{})}function Il(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function El(e,t){return t.children.some(t=>t===e||El(e,t))}function Bl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o].replace(ks," "),i=e.indexOf("="),r=Rs(i<0?e:e.slice(0,i)),a=i<0?null:Rs(e.slice(i+1));if(r in t){let e=t[r];vs(e)||(e=t[r]=[e]),e.push(a)}else t[r]=a}return t}function Ml(e){let t="";for(let n in e){const o=e[n];if(n=Ns(n),null==o){void 0!==o&&(t+=(t.length?"&":"")+n);continue}(vs(o)?o.map(e=>e&&Ls(e)):[o&&Ls(o)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function Pl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=vs(o)?o.map(e=>null==e?null:""+e):null==o?o:""+o)}return t}const Ol=Symbol(""),zl=Symbol(""),Ll=Symbol(""),Nl=Symbol(""),Dl=Symbol("");function Rl(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function $l(e,t,n,o,i,r=e=>e()){const a=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=e=>{var r;!1===e?l(hl(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(hl(2,{from:t,to:e})):(a&&o.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),s())},u=r(()=>e.call(o&&o.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function jl(e,t,n,o,i=e=>e()){const r=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(Fl(s)){const l=(s.__vccOpts||s)[t];l&&r.push($l(l,n,o,a,e,i))}else{let l=s();r.push(()=>l.then(r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=r).__esModule||"Module"===l[Symbol.toStringTag]?r.default:r;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&$l(c,n,o,a,e,i)()}))}}return r}function Fl(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Vl(e){const t=ir(Ll),n=ir(Nl),o=ha(()=>t.resolve(Hn(e.to))),i=ha(()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const a=r.findIndex(Vs.bind(null,i));if(a>-1)return a;const s=Wl(e[t-2]);return t>1&&Wl(i)===s&&r[r.length-1].path!==s?r.findIndex(Vs.bind(null,e[t-2])):a}),r=ha(()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!vs(i)||i.length!==o.length||o.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,o.value.params)),a=ha(()=>i.value>-1&&i.value===n.matched.length-1&&Hs(n.params,o.value.params));return{route:o,href:ha(()=>o.value.href),isActive:r,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Hn(e.replace)?"replace":"push"](Hn(e.to)).catch(bs):Promise.resolve()}}}const Hl=oi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vl,setup(e,{slots:t}){const n=Sn(Vl(e)),{options:o}=ir(Ll),i=ha(()=>({[Ul(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ul(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:pa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function Wl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ul=(e,t,n)=>null!=e?e:null!=t?t:n;function ql(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ql=oi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ir(Dl),i=ha(()=>e.route||o.value),r=ir(zl,0),a=ha(()=>{let e=Hn(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),s=ha(()=>i.value.matched[a.value]);or(zl,ha(()=>a.value+1)),or(Ol,s),or(Dl,i);const l=$n();return $o(()=>[l.value,s.value,e.name],([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&Vs(t,i)&&o||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=i.value,r=e.name,a=s.value,c=a&&a.components[r];if(!c)return ql(n.default,{Component:c,route:o});const u=a.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,h=pa(c,gs({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:l}));return ql(n.default,{Component:h,route:o})||h}}});function Yl(e){const t=Sl(e.routes,e),n=e.parseQuery||Bl,o=e.stringifyQuery||Ml,i=e.history,r=Rl(),a=Rl(),s=Rl(),l=jn(ll);let c=ll;ms&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ys.bind(null,e=>""+e),d=ys.bind(null,Ds),h=ys.bind(null,Rs);function p(e,r){if(r=gs({},r||l.value),"string"==typeof e){const o=js(n,e,r.path),a=t.resolve({path:o.path},r),s=i.createHref(o.fullPath);return gs(o,a,{params:h(a.params),hash:Rs(o.hash),redirectedFrom:void 0,href:s})}let a;if(null!=e.path)a=gs({},e,{path:js(n,e.path,r.path).path});else{const t=gs({},e.params);for(const e in t)null==t[e]&&delete t[e];a=gs({},e,{params:d(t)}),r.params=d(r.params)}const s=t.resolve(a,r),c=e.hash||"";s.params=u(h(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,gs({},e,{hash:(f=c,zs(f).replace(Bs,"{").replace(Ps,"}").replace(Is,"^")),path:s.path}));var f;const m=i.createHref(p);return gs({fullPath:p,hash:c,query:o===Ml?Pl(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?js(n,e,l.value.path):gs({},e)}function m(e,t){if(c!==e)return hl(8,{from:t,to:e})}function g(e){return b(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),gs({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function b(e,t){const n=c=p(e),i=l.value,r=e.state,a=e.force,s=!0===e.replace,u=y(n);if(u)return b(gs(f(u),{state:"object"==typeof u?gs({},r,u.state):r,force:a,replace:s}),t||n);const d=n;let h;return d.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&Vs(t.matched[o],n.matched[i])&&Hs(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(h=hl(16,{to:d,from:i}),M(i,i,!0,!1)),(h?Promise.resolve(h):w(d,i)).catch(e=>pl(e)?pl(e,2)?e:B(e):E(e,d,i)).then(e=>{if(e){if(pl(e,2))return b(gs({replace:s},f(e.to),{state:"object"==typeof e.to?gs({},r,e.to.state):r,force:a}),t||d)}else e=S(d,i,!0,s,r);return x(d,i,e),e})}function v(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=z.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,s]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;a<r;a++){const r=t.matched[a];r&&(e.matched.find(e=>Vs(e,r))?o.push(r):n.push(r));const s=e.matched[a];s&&(t.matched.find(e=>Vs(e,s))||i.push(s))}return[n,o,i]}(e,t);n=jl(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach(o=>{n.push($l(o,e,t))});const l=v.bind(null,e,t);return n.push(l),N(n).then(()=>{n=[];for(const o of r.list())n.push($l(o,e,t));return n.push(l),N(n)}).then(()=>{n=jl(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach(o=>{n.push($l(o,e,t))});return n.push(l),N(n)}).then(()=>{n=[];for(const o of s)if(o.beforeEnter)if(vs(o.beforeEnter))for(const i of o.beforeEnter)n.push($l(i,e,t));else n.push($l(o.beforeEnter,e,t));return n.push(l),N(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=jl(s,"beforeRouteEnter",e,t,_),n.push(l),N(n))).then(()=>{n=[];for(const o of a.list())n.push($l(o,e,t));return n.push(l),N(n)}).catch(e=>pl(e,8)?e:Promise.reject(e))}function x(e,t,n){s.list().forEach(o=>_(()=>o(e,t,n)))}function S(e,t,n,o,r){const a=m(e,t);if(a)return a;const s=t===ll,c=ms?history.state:{};n&&(o||s?i.replace(e.fullPath,gs({scroll:s&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,M(e,t,n,s),B()}let C;function k(){C||(C=i.listen((e,t,n)=>{if(!L.listening)return;const o=p(e),r=y(o);if(r)return void b(gs(r,{replace:!0}),o).catch(bs);c=o;const a=l.value;var s,u;ms&&(s=tl(a.fullPath,n.delta),u=Zs(),nl.set(s,u)),w(o,a).catch(e=>pl(e,12)?e:pl(e,2)?(b(e.to,o).then(e=>{pl(e,20)&&!n.delta&&n.type===qs.pop&&i.go(-1,!1)}).catch(bs),Promise.reject()):(n.delta&&i.go(-n.delta,!1),E(e,o,a))).then(e=>{(e=e||S(o,a,!1))&&(n.delta&&!pl(e,8)?i.go(-n.delta,!1):n.type===qs.pop&&pl(e,20)&&i.go(-1,!1)),x(o,a,e)}).catch(bs)}))}let A,T=Rl(),I=Rl();function E(e,t,n){B(e);const o=I.list();return o.length?o.forEach(o=>o(e,t,n)):console.error(e),Promise.reject(e)}function B(e){return A||(A=!e,k(),T.list().forEach(([t,n])=>e?n(e):t()),T.reset()),e}function M(t,n,o,i){const{scrollBehavior:r}=e;if(!ms||!r)return Promise.resolve();const a=!o&&function(e){const t=nl.get(e);return nl.delete(e),t}(tl(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return lo().then(()=>r(t,n,a)).then(e=>e&&el(e)).catch(e=>E(e,t,n))}const P=e=>i.go(e);let O;const z=new Set,L={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return sl(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:g,replace:function(e){return g(gs(f(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:r.add,beforeResolve:a.add,afterEach:s.add,onError:I.add,isReady:function(){return A&&l.value!==ll?Promise.resolve():new Promise((e,t)=>{T.add([e,t])})},install(e){e.component("RouterLink",Hl),e.component("RouterView",Ql),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Hn(l)}),ms&&!O&&l.value===ll&&(O=!0,g(i.location).catch(e=>{}));const t={};for(const o in ll)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Ll,this),e.provide(Nl,Cn(t)),e.provide(Dl,l);const n=e.unmount;z.add(e),e.unmount=function(){z.delete(e),z.size<1&&(c=ll,C&&C(),C=null,l.value=ll,O=!1,A=!1),n()}}};function N(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return L}function Gl(){return ir(Nl)}const Xl=["{","}"];const Kl=/^(?:\d)+/,Jl=/^(?:\w)+/;const Zl="zh-Hans",ec="zh-Hant",tc="en",nc="fr",oc="es",ic=Object.prototype.hasOwnProperty,rc=(e,t)=>ic.call(e,t),ac=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Xl){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i<e.length;){let a=e[i++];if(a===t){r&&o.push({type:"text",value:r}),r="";let t="";for(a=e[i++];void 0!==a&&a!==n;)t+=a,a=e[i++];const s=a===n,l=Kl.test(t)?"list":s&&Jl.test(t)?"named":"unknown";o.push({value:t,type:l})}else r+=a}return r&&o.push({type:"text",value:r}),o}(e,n),this._caches[e]=o),function(e,t){const n=[];let o=0;const i=Array.isArray(t)?"list":(r=t,null!==r&&"object"==typeof r?"named":"unknown");var r;if("unknown"===i)return n;for(;o<e.length;){const r=e[o];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":"named"===i&&n.push(t[r.value])}o++}return n}(o,t)}};function sc(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return Zl;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Zl:e.indexOf("-hant")>-1?ec:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?ec:Zl);var n;let o=[tc,nc,oc];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,o);return i||void 0}class lc{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale=tc,this.fallbackLocale=tc,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||ac,this.messages=n||{},this.setLocale(e||tc),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=sc(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach(e=>{rc(o,e)||(o[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=sc(t,this.messages))&&(o=this.messages[t]):n=t,rc(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function cc(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&pp?pp():"undefined"!=typeof global&&global.getLocale?global.getLocale():tc),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||tc);const i=new lc({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=lb().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function uc(e,t){return e.indexOf(t[0])>-1}const dc=Le(()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let hc;function pc(e){return uc(e,te)?gc().f(e,function(){const e=pp(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),te):e}function fc(e,t){if(1===t.length){if(e){const n=e=>y(e)&&uc(e,te),o=t[0];let i=[];if(p(e)&&(i=e.filter(e=>n(e[o]))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return fc(e&&e[n],t)}function mc(e,t){const n=fc(e,t);if(!n)return!1;const o=t[t.length-1];if(p(n))n.forEach(e=>mc(e,[o]));else{let e=n[o];Object.defineProperty(n,o,{get:()=>pc(e),set(t){e=t}})}return!0}function gc(){if(!hc){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,hc=cc(e),dc()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(e=>hc.add(e,__uniConfig.locales[e])),hc.setLocale(e)}}return hc}function yc(e,t,n){return t.reduce((t,o,i)=>(t[e+o]=n[i],t),{})}const bc=Le(()=>{const e="uni.async.",t=["error"];gc().add(tc,yc(e,t,["The connection timed out, click the screen to try again."]),!1),gc().add(oc,yc(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),gc().add(nc,yc(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),gc().add(Zl,yc(e,t,["è¿æ¥æå¡å¨è¶
æ¶ï¼ç¹å»å±å¹éè¯"]),!1),gc().add(ec,yc(e,t,["飿¥æåå¨è¶
æï¼é»æå±å¹é試"]),!1)}),vc=Le(()=>{const e="uni.showActionSheet.",t=["cancel"];gc().add(tc,yc(e,t,["Cancel"]),!1),gc().add(oc,yc(e,t,["Cancelar"]),!1),gc().add(nc,yc(e,t,["Annuler"]),!1),gc().add(Zl,yc(e,t,["åæ¶"]),!1),gc().add(ec,yc(e,t,["åæ¶"]),!1)}),_c=Le(()=>{const e="uni.showToast.",t=["unpaired"];gc().add(tc,yc(e,t,["Please note showToast must be paired with hideToast"]),!1),gc().add(oc,yc(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),gc().add(nc,yc(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),gc().add(Zl,yc(e,t,["请注æ showToast ä¸ hideToast å¿
é¡»é
对使ç¨"]),!1),gc().add(ec,yc(e,t,["è«æ³¨æ showToast è hideToast å¿
é é
å°ä½¿ç¨"]),!1)}),wc=Le(()=>{const e="uni.showLoading.",t=["unpaired"];gc().add(tc,yc(e,t,["Please note showLoading must be paired with hideLoading"]),!1),gc().add(oc,yc(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),gc().add(nc,yc(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),gc().add(Zl,yc(e,t,["请注æ showLoading ä¸ hideLoading å¿
é¡»é
对使ç¨"]),!1),gc().add(ec,yc(e,t,["è«æ³¨æ showLoading è hideLoading å¿
é é
å°ä½¿ç¨"]),!1)}),xc=Le(()=>{const e="uni.showModal.",t=["cancel","confirm"];gc().add(tc,yc(e,t,["Cancel","OK"]),!1),gc().add(oc,yc(e,t,["Cancelar","OK"]),!1),gc().add(nc,yc(e,t,["Annuler","OK"]),!1),gc().add(Zl,yc(e,t,["åæ¶","ç¡®å®"]),!1),gc().add(ec,yc(e,t,["åæ¶","確å®"]),!1)}),Sc=Le(()=>{const e="uni.chooseFile.",t=["notUserActivation"];gc().add(tc,yc(e,t,["File chooser dialog can only be shown with a user activation"]),!1),gc().add(oc,yc(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),gc().add(nc,yc(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),gc().add(Zl,yc(e,t,["æä»¶éæ©å¨å¯¹è¯æ¡åªè½å¨ç±ç¨æ·æ¿æ´»æ¶æ¾ç¤º"]),!1),gc().add(ec,yc(e,t,["æä»¶é¸æå¨å°è©±æ¡åªè½å¨ç±ç¨æ¶æ¿æ´»æé¡¯ç¤º"]),!1)}),Cc=Le(()=>{const e="uni.setClipboardData.",t=["success","fail"];gc().add(tc,yc(e,t,["Content copied","Copy failed, please copy manually"]),!1),gc().add(oc,yc(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),gc().add(nc,yc(e,t,["Contenu copié","Ãchec de la copie, copiez manuellement"]),!1),gc().add(Zl,yc(e,t,["å
容已å¤å¶","å¤å¶å¤±è´¥ï¼è¯·æå¨å¤å¶"]),!1),gc().add(ec,yc(e,t,["å
§å®¹å·²å¾©å¶","復å¶å¤±æï¼è«æå復製"]),!1)}),kc=Le(()=>{const e="uni.picker.",t=["done","cancel"];gc().add(tc,yc(e,t,["Done","Cancel"]),!1),gc().add(oc,yc(e,t,["OK","Cancelar"]),!1),gc().add(nc,yc(e,t,["OK","Annuler"]),!1),gc().add(Zl,yc(e,t,["宿","åæ¶"]),!1),gc().add(ec,yc(e,t,["宿","åæ¶"]),!1)}),Ac=Le(()=>{const e="uni.video.",t=["danmu","volume"];gc().add(tc,yc(e,t,["Danmu","Volume"]),!1),gc().add(oc,yc(e,t,["Danmu","Volumen"]),!1),gc().add(nc,yc(e,t,["Danmu","Le Volume"]),!1),gc().add(Zl,yc(e,t,["å¼¹å¹","é³é"]),!1),gc().add(ec,yc(e,t,["å½å¹","é³é"]),!1)});function Tc(e){const t=new ct;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const Ic="invokeViewApi",Ec="invokeServiceApi";let Bc=1;const Mc=Object.create(null);function Pc(e,t){return e+"."+t}function Oc(e,t,n){t=Pc(e,t),Mc[t]||(Mc[t]=n)}function zc({id:e,name:t,args:n},o){t=Pc(o,t);const i=t=>{e&&Mw.publishHandler(Ic+"."+e,t)},r=Mc[t];r?r(n,i):i({})}const Lc=c(Tc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=Mw,r=n?Bc++:0;n&&o(Ec+"."+r,n,!0),i(Ec,{id:r,name:e,args:t})}}),Nc=Xe(!0);let Dc;function Rc(){Dc&&(clearTimeout(Dc),Dc=null)}let $c=0,jc=0;function Fc(e){if(Rc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];$c=t,jc=n,Dc=setTimeout(function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)},350)}function Vc(e){if(!Dc)return;if(1!==e.touches.length)return Rc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-$c)>10||Math.abs(n-jc)>10?Rc():void 0}function Hc(e,t){const n=Number(e);return isNaN(n)?t:n}function Wc(){const e=__uniConfig.globalStyle||{},t=Hc(e.rpxCalcMaxDeviceWidth,960),n=Hc(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qc,Qc,Yc=["top","left","right","bottom"],Gc={};function Xc(){return Qc="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Kc(){if(Qc="string"==typeof Qc?Qc:Xc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var o=document.createElement("div");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Yc.forEach(function(e){a(o,e)}),document.body.appendChild(o),r(),qc=!0}else Yc.forEach(function(e){Gc[e]=0});function i(e,t){var n=e.style;Object.keys(t).forEach(function(e){var o=t[e];n[e]=o})}function r(t){t?e.push(t):e.forEach(function(e){e()})}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Qc+"(safe-area-inset-"+n+")"};i(o,c),i(a,c),i(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(l),e.appendChild(o),e.appendChild(a),r(function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,i=a.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,i=a.scrollTop,function(e){Zc.length||setTimeout(function(){var e={};Zc.forEach(function(t){e[t]=Gc[t]}),Zc.length=0,eu.forEach(function(t){t(e)})},0);Zc.push(e)}(n))}o.addEventListener("scroll",r,t),a.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Gc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Jc(e){return qc||Kc(),Gc[e]}var Zc=[];var eu=[];const tu=Uc({get support(){return 0!=("string"==typeof Qc?Qc:Xc()).length},get top(){return Jc("top")},get left(){return Jc("left")},get right(){return Jc("right")},get bottom(){return Jc("bottom")},onChange:function(e){Xc()&&(qc||Kc(),"function"==typeof e&&eu.push(e))},offChange:function(e){var t=eu.indexOf(e);t>=0&&eu.splice(t,1)}}),nu=ds(()=>{},["prevent"]),ou=ds(e=>{},["stop"]);function iu(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function ru(){const e=iu(document.documentElement.style,"--window-top");return e?e+tu.top:0}function au(){const e=document.documentElement.style,t=ru(),n=iu(e,"--window-bottom"),o=iu(e,"--window-left"),i=iu(e,"--window-right"),r=iu(e,"--top-window-height");return{top:t,bottom:n?n+tu.bottom:0,left:o?o+tu.left:0,right:i?i+tu.right:0,topWindowHeight:r||0}}function su(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function lu(e){return su(e)}function cu(e){return Symbol(e)}function uu(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function du(e,t=!1){if(t)return function(e){if(!uu(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>yh(parseFloat(t))+"px")}(e);if(y(e)){const t=parseInt(e)||0;return uu(e)?yh(t):t}return e}function hu(e){return e.$page}function pu(e){return 0===e.tagName.indexOf("UNI-")}const fu="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",mu="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",gu="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function yu(e,t="#000",n=27){return Vr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Vr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function bu(){{const{$pageInstance:e}=ea();return e&&Au(e.proxy)}}function vu(e){const t=Fe(e);if(t.$page)return Au(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return Au(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?Au(n):void 0}function _u(){const e=Wf(),t=e.length;if(t)return e[t-1]}function wu(){var e;const t=null==(e=_u())?void 0:e.$page;if(t)return t.meta}function xu(){const e=wu();return e?e.id:-1}function Su(){const e=_u();if(e)return e.$vm}const Cu=["navigationBar","pullToRefresh"];function ku(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);Cu.forEach(t=>{o[t]=c({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function Au(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function Tu(e,t,n){if(y(e))n=t,t=e,e=Su();else if("number"==typeof e){const t=Wf().find(t=>hu(t).id===e);e=t?t.$vm:Su()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(o,n)}function Iu(e){e.preventDefault()}let Eu,Bu=0;function Mu({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,i=!1,r=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-Bu)>n;return!r||i&&!a?(!r&&i&&(i=!1),!1):(Bu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(a()||(Eu=setTimeout(a,300))),o=!1};return function(){clearTimeout(Eu),o||requestAnimationFrame(a),o=!0}}function Pu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Pu(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i<o&&".."===n[i];i++);n.splice(0,i),t=n.join("/");const r=e.length>0?e.split("/"):[];return r.splice(r.length-i-1,i+1),ze(r.concat(n).join("/"))}function Ou(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function zu(){Wc(),Qe(pu),window.addEventListener("touchstart",Fc,Nc),window.addEventListener("touchmove",Vc,Nc),window.addEventListener("touchend",Rc,Nc),window.addEventListener("touchcancel",Rc,Nc)}class Lu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(He(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter(e=>e.el&&He(e.el));if(e.length>0)return t?e.map(e=>e.el):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=$u(this.$el.querySelector(e));return t?Nu(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o<n.length;o++){const e=$u(n[o]);e&&t.push(Nu(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){let t="";if(!e||y(e))return t;for(const n in e){const o=e[n],i=n.startsWith("--")?n:B(n);(y(o)||"number"==typeof o)&&(t+=`${i}:${o};`)}return t}(e))}setStyle(e){return this.$el&&e?(y(e)&&(e=H(e)),S(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];g(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Mw.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Nu(e,t=!0){if(t&&e&&(e=Ve(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Lu(e)),e.$el.__wxsComponentDescriptor}function Du(e,t){return Nu(e,t)}function Ru(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Du(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=Ve(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Du(i,!1)]}}function $u(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function ju(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let a,s;a=Ke(t?i:function(e){for(;!pu(e);)e=e.parentElement;return e}(i)),s=Ke(r);const l={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e instanceof CustomEvent&&S(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Fu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Vu(e,t){const n=[];for(let o=0;o<e.length;o++){const{identifier:i,pageX:r,pageY:a,clientX:s,clientY:l,force:c}=e[o];n.push({identifier:i,pageX:r,pageY:a-t,clientX:s,clientY:l-t,force:c||0})}return n}const Hu=Object.defineProperty({__proto__:null,$nne:function(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event&&o instanceof HTMLElement))return[e];const i=!pu(o);if(i)return Ru(e,t,n,!1)||[e];const r=ju(e,i);if("click"===e.type)!function(e,t){const{x:n,y:o}=t,i=ru();e.detail={x:n,y:o-i},e.touches=e.changedTouches=[Fu(t,i)]}(r,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=ru();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Fu(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=ru();r.touches=Vu(e.touches,t),r.changedTouches=Vu(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t]})})}return Ru(r,t,n)||[r]},createNativeEvent:ju},Symbol.toStringTag,{value:"Module"});function Wu(e){!function(e){const t=e.globalProperties;c(t,Hu),t.$gcd=Du}(e._context.config)}let Uu=1;function qu(e){return(e||xu())+"."+Ic}const Qu=c(Tc("view"),{invokeOnCallback:(e,t)=>Pw.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Pw,a=o?Uu++:0;o&&i(Ic+"."+a,o,!0),r(qu(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:a}=Pw,s=Uu++,l=Ic+"."+s;return i(l,n),a(qu(o),{id:s,name:e,args:t},o),()=>{r(l)}}});function Yu(e){Tu(_u(),ge,e),Pw.invokeOnCallback("onWindowResize",e)}function Gu(e){const t=_u();Tu(lb(),re,e),Tu(t,re)}function Xu(){Tu(lb(),ae),Tu(_u(),ae)}const Ku=[be,_e];function Ju(){Ku.forEach(e=>Pw.subscribe(e,function(e){return(t,n)=>{Tu(parseInt(n),e,t)}}(e)))}function Zu(){!function(){const{on:e}=Pw;e(ge,Yu),e(Me,Gu),e(Pe,Xu)}(),Ju()}function ed(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new ot(this.$page.id)),e.eventChannel}}function td(e){e._context.config.globalProperties.getOpenerEventChannel=ed}function nd(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function od(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${yh(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function id(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,a=e.option,s=a.transition,l={},c=[];return r.forEach(e=>{let r=e.type,a=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?a=a.map(e=>parseFloat(e)+"deg"):r.startsWith("translate")&&(a=a.map(od)),n.indexOf(r)>=0&&(a.length=1),c.push(`${r}(${a.join(",")})`);else if(o.concat(i).includes(a[0])){r=a[0];const e=a[1];l[r]=i.includes(r)?od(e):e}}),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(e=>`${function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach(t=>{e.$el.style[t]=s[t]}),n+=1,n<i&&setTimeout(r,a.duration+a.delay)}setTimeout(()=>{r()},0)}const rd={props:["animation"],watch:{animation:{deep:!0,handler(){id(this)}}},mounted(){id(this)}},ad=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(rd),sd(e)},sd=e=>(e.__reserved=!0,e.compatConfig={MODE:3},oi(e));function ld(e){return e.__wwe=!0,e}function cd(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=Ke(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const ud={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function dd(e){const t=$n(!1);let n,o,i=!1;function r(){requestAnimationFrame(()=>{clearTimeout(o),o=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout(()=>{t.value=!0,i||r()},parseInt(e.hoverStartTime)))}function s(){i=!1,t.value&&r()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:ld(function(e){e.touches.length>1||a(e)}),onMousedown:ld(function(e){i||(a(e),window.addEventListener("mouseup",l))}),onTouchend:ld(function(){s()}),onMouseup:ld(function(){i&&l()}),onTouchcancel:ld(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function hd(e,t){return y(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const pd=cu("uf"),fd=cu("ul");function md(e,t){gd(e.id,t),$o(()=>e.id,(e,n)=>{yd(n,t,!0),gd(e,t,!0)}),Ti(()=>{yd(e.id,t)})}function gd(e,t,n){const o=bu();n&&!e||S(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Mw.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Mw.on(i,t[i]):e&&Mw.on(`uni-${i}-${o}-${e}`,t[i])})}function yd(e,t,n){const o=bu();n&&!e||S(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Mw.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Mw.off(i,t[i]):e&&Mw.off(`uni-${i}-${o}-${e}`,t[i])})}const bd=ad({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=$n(null),o=ir(pd,!1),{hovering:i,binding:r}=dd(e),a=ld((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;}),s=ir(fd,!1);return s&&(s.addHandler(a),Ai(()=>{s.removeHandler(a)})),md(e,{"label-click":a}),()=>{const o=e.hoverClass,s=hd(e,"disabled"),l=hd(e,"loading"),c=hd(e,"plain"),u=o&&"none"!==o;return Vr("uni-button",Gr({ref:n,onClick:a,id:e.id,class:u&&i.value?o:""},u&&r,s,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),vd=cu("upm");function _d(){return ir(vd)}function wd(e){const t=function(e){return Sn(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=du(e.offset)),e.height&&(e.height=du(e.height)),e.range&&(e.range=du(e.range)),e}(c({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+tu.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Wf().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(ku(Gl().meta,e)))))}(e);return or(vd,t),t}function xd(){return Gl()}function Sd(){return history.state&&history.state.__id__||1}const Cd=["original","compressed"],kd=["album","camera"],Ad=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Td(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Id(e,t){return!p(e)||0===e.length||e.find(e=>-1===t.indexOf(e))?t:e}function Ed(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Bd=1;const Md={};function Pd(e,t,n,o=!1){return Md[e]={name:t,keepAlive:o,callback:n},e}function Od(e,t,n){if("number"==typeof e){const o=Md[e];if(o)return o.keepAlive||delete Md[e],o.callback(t,n)}return t}function zd(e){for(const t in Md)if(Md[t].name===e)return!0;return!1}const Ld="success",Nd="fail",Dd="complete";function Rd(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:i,fail:r,complete:a}=function(e){const t={};for(const n in e){const o=e[n];g(o)&&(t[n]=Ed(o),delete e[n])}return t}(t),s=g(i),l=g(r),c=g(a),u=Bd++;return Pd(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),g(n)&&n(u),u.errMsg===e+":ok"?(g(o)&&o(u,t),s&&i(u)):l&&r(u),c&&a(u)}),u}const $d="success",jd="fail",Fd="complete",Vd={},Hd={};function Wd(e,t){return function(n){return e(n,t)||n}}function Ud(e,t,n){let o=!1;for(let i=0;i<e.length;i++){const r=e[i];if(o)o=Promise.resolve(Wd(r,n));else{const e=r(t,n);if(_(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function qd(e,t={}){return[$d,jd,Fd].forEach(n=>{const o=e[n];if(!p(o))return;const i=t[n];t[n]=function(e){Ud(o,e,t).then(e=>g(i)&&i(e)||e)}}),t}function Qd(e,t){const n=[];p(Vd.returnValue)&&n.push(...Vd.returnValue);const o=Hd[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function Yd(e){const t=Object.create(null);Object.keys(Vd).forEach(e=>{"returnValue"!==e&&(t[e]=Vd[e].slice())});const n=Hd[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Gd(e,t,n,o){const i=Yd(e);if(i&&Object.keys(i).length){if(p(i.invoke)){return Ud(i.invoke,n).then(n=>t(qd(Yd(e),n),...o))}return t(qd(i,n),...o)}return t(n,...o)}function Xd(e,t){return(n={},...o)=>function(e){return!(!S(e)||![Ld,Nd,Dd].find(t=>g(e[t])))}(n)?Qd(e,Gd(e,t,c({},n),o)):Qd(e,new Promise((i,r)=>{Gd(e,t,c({},n,{success:i,fail:r}),o)}))}function Kd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,Od(e,c({errMsg:r},o))}function Jd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(y(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r<i.length;r++){const t=i[r],a=o[t];if(g(a)){const o=a(e[0][t],n);if(y(o))return o}else h(n,t)||(n[t]=a)}}(t,o);if(i)return i}function Zd(e){if(!g(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function eh(e,t,n){return o=>{Zd(o);const i=Jd(0,[o],0,n);if(i)throw new Error(i);const r=!zd(e);!function(e,t){Pd(Bd++,e,t,!0)}(e,o),r&&(!function(e){Pw.on("api."+e,t=>{for(const n in Md){const o=Md[n];o.name===e&&o.callback(t)}})}(e),t())}}function th(e,t,n){return o=>{Zd(o);const i=Jd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in Md){const o=Md[n];o.callback===t&&o.name===e&&delete Md[n]}}(e=e.replace("off","on"),o);zd(e)||(!function(e){Pw.off("api."+e)}(e),t())}}function nh(e,t,n,o){return n=>{const i=Rd(e,n,o),r=Jd(0,[n],0,o);return r?Kd(i,e,r):t(n,{resolve:t=>function(e,t,n){return Od(e,c(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>Kd(i,e,function(e){return!e||y(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function oh(e,t,n){return eh(e,t,n)}function ih(e,t,n){return th(e,t,n)}function rh(e,t,n,o){return Xd(e,nh(e,t,0,o))}function ah(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Jd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function sh(e,t,n,o){return Xd(e,function(e,t,n,o){return nh(e,t,0,o)}(e,t,0,o))}function lh(e){return(t,{reject:n})=>n(function(e){return`method 'uni.${e}' not supported`}(e))}let ch=!1,uh=0,dh=0,hh=960,ph=375,fh=750;function mh(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=gm(),t=vm(bm(e,ym(e)));return{platform:dm?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}uh=e,dh=t,ch="ios"===n}function gh(e,t){const n=Number(e);return isNaN(n)?t:n}const yh=ah(0,(e,t)=>{if(0===uh&&(mh(),function(){const e=__uniConfig.globalStyle||{};hh=gh(e.rpxCalcMaxDeviceWidth,960),ph=gh(e.rpxCalcBaseDeviceWidth,375),fh=gh(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||uh;n=e===fh||n<=hh?n:ph;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==dh&&ch?.5:1),e<0?-o:o});function bh(e,t){Object.keys(t).forEach(n=>{g(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}const vh=ah(0,(e,t)=>{y(e)&&S(t)?bh(Hd[e]||(Hd[e]={}),t):S(e)&&bh(Vd,e)});const _h=new class{constructor(){this.$emitter=new ct}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},wh=ah(0,(e,t)=>(_h.on(e,t),()=>_h.off(e,t))),xh=ah(0,(e,t)=>(_h.once(e,t),()=>_h.off(e,t))),Sh=ah(0,(e,t)=>{p(e)||(e=e?[e]:[]),e.forEach(e=>{_h.off(e,t)})}),Ch=ah(0,(e,...t)=>{_h.emit(e,...t)}),kh=[.5,.8,1,1.25,1.5,2];class Ah{constructor(e,t){this.id=e,this.pageId=t}play(){_m(this.id,this.pageId,"play")}pause(){_m(this.id,this.pageId,"pause")}stop(){_m(this.id,this.pageId,"stop")}seek(e){_m(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){_m(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~kh.indexOf(e)||(e=1),_m(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){_m(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){_m(this.id,this.pageId,"exitFullScreen")}showStatusBar(){_m(this.id,this.pageId,"showStatusBar")}hideStatusBar(){_m(this.id,this.pageId,"hideStatusBar")}}const Th=ah(0,(e,t)=>new Ah(e,vu(t||Su()))),Ih=(e,t,n,o)=>{!function(e,t,n,o,i){Pw.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)})};function Eh(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Bh=Eh("width"),Mh=Eh("height"),Ph={PNG:"png",JPG:"jpg",JPEG:"jpg"},Oh={formatArgs:{x:Eh("x",0),y:Eh("y",0),width:Bh,height:Mh,destWidth:Eh("destWidth"),destHeight:Eh("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Ph[e];n||(n=Ph.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function zh(e,t,n,o,i){Pw.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,e=>{i&&i(e)})}var Lh=["scale","rotate","translate","setTransform","transform"],Nh=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Dh=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const Rh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function $h(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var n=e.toLowerCase();if(h(Rh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Rh[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class jh{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,$h(t)])}}class Fh{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class Vh{constructor(e){this.width=e}}class Hh{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,a,s,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],zh(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new jh("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new jh("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new Fh(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new Vh(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],a=[];o.forEach(function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&s()}),1===o.length&&s(),o=a.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){a.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const Wh=Le(()=>{[...Lh,...Nh].forEach(function(e){Hh.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,a,s,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(a=n,s=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,a,s,l,c,n,o,i,r]:d(l)&&d(c)?[t,a,s,l,c]:[t,a,s],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}),Dh.forEach(function(e){Hh.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",$h(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=$h(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})}),Uh=ah(0,(e,t)=>{if(Wh(),t)return new Hh(e,vu(t));const n=vu(Su());if(n)return new Hh(e,n);Pw.emit(le,"createCanvasContext:fail")}),qh=sh("canvasToTempFilePath",({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:a,fileType:s,quality:l},{resolve:c,reject:u})=>{var d=vu(Su());if(!d)return void u();zh(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:l,dirname:"/canvas"},e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)})},0,Oh),Qh={thresholds:[0],initialRatio:0,observeAll:!1},Yh=["top","right","bottom","left"];let Gh=1;function Xh(e={}){return Yh.map(t=>`${Number(e[t])||0}px`).join(" ")}class Kh{constructor(e,t){this._pageId=vu(e),this._component=e,this._options=c({},Qh,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=Xh(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=Xh(e),this}observe(e,t){g(t)&&(this._options.selector=e,this._reqId=Gh++,function({reqId:e,component:t,options:n,callback:o}){const i=am(t);(i.__io||(i.__io={}))[e]=function(e,t,n){pf();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver(e=>{e.forEach(e=>{n({intersectionRatio:mf(e),intersectionRect:ff(e.intersectionRect),boundingClientRect:ff(e.boundingClientRect),relativeRect:ff(e.rootBounds),time:Date.now(),dataset:Ye(e.target),id:e.target.id})})},{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e<n.length;e++)i.observe(n[e])}else{i.USE_MUTATION_OBSERVER=!1;const n=e.querySelector(t.selector);n?i.observe(n):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return i}(i,n,o)}({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t}){const n=am(t),o=n.__io&&n.__io[e];o&&(o.disconnect(),delete n.__io[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const Jh=ah(0,(e,t)=>((e=Fe(e))&&!vu(e)&&(t=e,e=null),new Kh(e||Su(),t)));let Zh=0,ep={};const tp={canvas:Hh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Ih(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Ih(this.id,this.pageId,"moveToLocation",e)}getScale(e){Ih(this.id,this.pageId,"getScale",e)}getRegion(e){Ih(this.id,this.pageId,"getRegion",e)}includePoints(e){Ih(this.id,this.pageId,"includePoints",e)}translateMarker(e){Ih(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Ih(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Ih(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Ih(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Ih(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Ih(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Ih(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Ih(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Ih(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Ih(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Ih(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Ih(this.id,this.pageId,"openMapApp",e)}on(e,t){Ih(this.id,this.pageId,"on",{name:e,callback:t})}},video:Ah,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(Zh++);i.callbackId=e,ep[e]=o}Pw.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(Re(ep[e],t),delete ep[e])})}(this.id,this.pageId,e,t)}}};function np(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=tp[n];e.context=new i(t,o),delete e.contextInfo}}class op{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class ip{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach(({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),a=r.parentElement;if(!a)return o?null:[];const{nodeType:s}=r,l=3===s||8===s;if(o){const e=l?a.querySelector(n):xm(r,n)?r:r.querySelector(n);return e?wm(e,i):null}{let e=[];const t=(l?a:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(wm(t,i))}),!l&&xm(r,n)&&e.unshift(wm(r,i)),e}}(e,t,n,i,r))}),n(o)}(this._page,this._queue,t=>{const n=this._queueCb;t.forEach((e,t)=>{p(e)?e.forEach(np):np(e);const o=n[t];g(o)&&o.call(this,e)}),g(e)&&e.call(this,t)}),this._nodesRef}in(e){return this._component=Fe(e),this}select(e){return this._nodesRef=new op(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new op(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new op(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const rp=ah(0,e=>((e=Fe(e))&&!vu(e)&&(e=null),new ip(e||Su()))),ap={formatArgs:{}},sp={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class lp{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},sp,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach(e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const cp=Le(()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach(n=>{lp.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}})}),up=ah(0,e=>(cp(),new lp(e)),0,ap),dp=oh("onWindowResize",()=>{}),hp=ih("offWindowResize",()=>{}),pp=ah(0,()=>{const e=lb();return e&&e.$vm?e.$vm.$locale:gc().getLocale()}),fp={[de]:[],[ue]:[],[le]:[],[re]:[],[ae]:[]};const mp=ah(0,()=>c({},Im));let gp,yp,bp;const vp=[];const _p=sh("getPushClientId",(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{var e,o;void 0===bp&&(bp=!1,gp="",yp="uniPush is not enabled"),vp.push((e,o)=>{e?t({cid:e}):n(o)}),void 0!==gp&&(e=gp,o=yp,vp.forEach(t=>{t(e,o)}),vp.length=0)})}),wp=e=>{},xp=e=>{},Sp={formatArgs:{showToast:!0},beforeInvoke(){Cc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=gc(),o=n("uni.setClipboardData.success");o&&B_({title:o,icon:"success",mask:!1})}},Cp=(Boolean,"onCompass"),kp={formatArgs:{filePath(e,t){t.filePath=lm(e)}}},Ap=["wgs84","gcj02"],Tp={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Ap.indexOf(e)?t.type=Ap[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Ip=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Id(e,Cd)},sourceType(e,t){t.sourceType=Id(e,kd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),Ep={formatArgs:{sourceType(e,t){t.sourceType=Id(e,kd)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Bp=(Boolean,["all","image","video"]),Mp={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Id(e,kd)},type(e,t){t.type=Td(e,Bp)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},Pp={formatArgs:{src(e,t){t.src=lm(e)}}},Op={formatArgs:{urls(e,t){t.urls=e.map(e=>y(e)&&e?lm(e):"")},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:y(e)&&e&&(t.current=lm(e))}}},zp="saveImageToPhotosAlbum",Lp="json",Np=["text","arraybuffer"],Dp=encodeURIComponent;ArrayBuffer,Boolean;const Rp={formatArgs:{method(e,t){t.method=Td((e||"").toUpperCase(),Ad)},data(e,t){t.data=e||""},url(e,t){t.method===Ad[0]&&S(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(e=>e),a={};r.forEach(e=>{const t=e.split("=");a[t[0]]=t[1]});for(const s in t)if(h(t,s)){let e=t[s];null==e?e="":S(e)&&(e=JSON.stringify(e)),a[Dp(s)]=Dp(e)}return i=Object.keys(a).map(e=>`${e}=${a[e]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Ad[0]&&(Object.keys(n).find(e=>"content-type"===e.toLowerCase())||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Lp).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Np.indexOf(t.responseType)&&(t.responseType="text")}}},$p={formatArgs:{header(e,t){t.header=e||{}}}},jp={formatArgs:{filePath(e,t){e&&(t.filePath=lm(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Fp={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=Td((e||"").toUpperCase(),Ad)},protocols(e,t){y(e)&&(t.protocols=[e])}}};const Vp={url:{type:String,required:!0}},Hp="navigateTo",Wp="redirectTo",Up="reLaunch",qp="switchTab",Qp="preloadPage",Yp=(Zp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Zp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),nf(Hp)),Gp=nf(Wp),Xp=nf(Up),Kp=nf(qp),Jp={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Wf().length-1,e)}}};function Zp(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}}}let ef;function tf(){ef=""}function nf(e){return{formatArgs:{url:of(e)},beforeAll:tf}}function of(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=Wf();return n.length&&(t=hu(n[n.length-1]).route),Pu(t,e)}(t)).split("?")[0],i=Ou(o,!0);if(!i)return"page `"+t+"` is not found";if(e===Hp||e===Wp){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===qp&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==qp&&e!==Qp||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!y(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))}),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if(e!==Qp){if(ef===t&&"appLaunch"!==n.openType)return`${ef} locked`;__uniConfig.ready&&(ef=t)}else if(i.meta.isTabBar){const e=Wf(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const rf="setNavigationBarTitle",af={formatArgs:{duration:300}},sf={formatArgs:{itemColor:"#000"}},lf=(Boolean,{formatArgs:{title:"",mask:!1}}),cf=(Boolean,{beforeInvoke(){xc()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!h(t,"cancelText")){const{t:e}=gc();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!h(t,"confirmText")){const{t:e}=gc();t.confirmText=e("uni.showModal.confirm")}},confirmColor:ne}}),uf=["success","loading","none","error"],df=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Td(e,uf)},image(e,t){t.image=e?lm(e):""},duration:1500,mask:!1}}),hf="stopPullDownRefresh",pf=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=i(e);t;)t=i(e=t.ownerDocument);return e}(),t=[],n=null,o=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){o=e&&n?h(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,o=null},a.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,r=null,a=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(s(n,"resize",o,!0),s(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(r&&e.clearInterval(r),l(e,"resize",o,!0)),l(t,"scroll",o,!0),a&&a.disconnect()});var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=i(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==t)return!0}return!1})){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),t!=o){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||o){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,a=u(i),s=this._rootContainsTarget(i),l=o.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,a,t),d=null;this._rootContainsTarget(i)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:d,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,i,r){if("none"!=window.getComputedStyle(t).display){for(var a=i,s=f(t),l=!1;!l&&s;){var d=null,p=1==s.nodeType?window.getComputedStyle(s):{};if("none"==p.display)return null;if(s==this.root||9==s.nodeType)if(l=!0,s==this.root||s==e)n&&!this.root?!o||0==o.width&&0==o.height?(s=null,d=null,a=null):d=o:d=r;else{var m=f(s),g=m&&u(m),y=m&&this._computeTargetAndRootIntersection(m,g,r);g&&y?(s=m,d=h(g,y)):(s=null,a=null)}else{var b=s.ownerDocument;s!=b.body&&s!=b.documentElement&&"visible"!=p.overflow&&(d=u(s))}if(d&&(a=c(d,a)),!a)break;s=s&&f(s)}return a}},a.prototype._getRootRect=function(){var t;if(this.root&&!m(this.root))t=u(this.root);else{var n=m(this.root)?this.root:e,o=n.documentElement,i=n.body;t={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return p(n,t)&&(!this.root||n==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=r}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function r(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n,o,i,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){n(),i=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),r=Math.min(e.right,t.right),a=r-i,s=o-n;return a>=0&&s>=0&&{top:n,bottom:o,left:i,right:r,width:a,height:s}||null}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function h(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(e){return e&&9===e.nodeType}};function ff(e){const{bottom:t,height:n,left:o,right:i,top:r,width:a}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:a}}function mf(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return 0!==t?t:i===n?r/o:i/n}function gf(){const e=Su();if(!e)return;const t=Hf(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:qf(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Tu(e,ae))}function yf(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function bf(e){const t=Hf().values();for(const n of t){const t=Df(n);if(yf(e,t))return n.$.__isActive=!0,t.id}}const vf=sh(qp,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Rf.handledBeforeEntryPageRoutes)return gf(),Cf({type:qp,url:e,tabBarText:t,isAutomatedTesting:n},bf(e)).then(o).catch(i);jf.push({args:{type:qp,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Kp);function _f(){const e=_u();if(!e)return;const t=Df(e);qf(Xf(t.path,t.id))}const wf=sh(Wp,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Rf.handledBeforeEntryPageRoutes)return _f(),Cf({type:Wp,url:e,isAutomatedTesting:t}).then(n).catch(o);Ff.push({args:{type:Wp,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Gp);function xf(){const e=Hf().keys();for(const t of e)qf(t)}const Sf=sh(Up,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Rf.handledBeforeEntryPageRoutes)return xf(),Cf({type:Up,url:e,isAutomatedTesting:t}).then(n).catch(o);Vf.push({args:{type:Up,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Xp);function Cf({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const a=lb().$router,{path:s,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:tt(n||"")}}(t);return new Promise((t,c)=>{const u=function(e,t){return{__id__:t||++Qf,__type__:e}}(e,r);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:u,force:!0}).then(r=>{if(pl(r))return c(r.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach(t=>{e.eventChannel._addListener(t,"on",o[t])}),e.eventChannel._clearCache()):e.eventChannel=new ot(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()})})}function kf(){if(Rf.handledBeforeEntryPageRoutes)return;Rf.handledBeforeEntryPageRoutes=!0;const e=[...$f];$f.length=0,e.forEach(({args:e,resolve:t,reject:n})=>Cf(e).then(t).catch(n));const t=[...jf];jf.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(gf(),Cf(e,bf(e.url)).then(t).catch(n)));const n=[...Ff];Ff.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(_f(),Cf(e).then(t).catch(n)));const o=[...Vf];Vf.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(xf(),Cf(e).then(t).catch(n)))}let Af;function Tf(){var e;return Af||(Af=__uniConfig.tabBar&&Sn((e=__uniConfig.tabBar,dc()&&e.list&&e.list.forEach(e=>{mc(e,["text"])}),e))),Af}function If(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const Ef=If("top:env(a)"),Bf=If("top:constant(a)"),Mf=If("backdrop-filter:blur(10px)"),Pf=(()=>Ef?"env":Bf?"constant":"")();function Of(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=Tf();e.shown&&(n=parseInt(e.height))}var o;lu({"--window-top":(o=t,Pf?`calc(${o}px + ${Pf}(safe-area-inset-top))`:`${o}px`),"--window-bottom":zf(n)})}function zf(e){return Pf?`calc(${e}px + ${Pf}(safe-area-inset-bottom))`:`${e}px`}const Lf="$$",Nf=new Map;function Df(e){return e.$page}const Rf={handledBeforeEntryPageRoutes:!1},$f=[],jf=[],Ff=[],Vf=[];function Hf(){return Nf}function Wf(){return Uf()}function Uf(){const e=[],t=Nf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function qf(e,t=!0){const n=Nf.get(e);n.$.__isUnload=!0,Tu(n,pe),Nf.delete(e),t&&function(e){const t=Kf.get(e);t&&(Kf.delete(e),Jf.pruneCacheEntry(t))}(e)}let Qf=Sd();function Yf(e){const t=_d();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,r){const{id:a,route:s}=o,l=ht(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:a,path:ze(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Gf(e){const t=Yf(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),Nf.set(Xf(t.path,t.id),e),1===Nf.size&&setTimeout(()=>{kf()},0)}function Xf(e,t){return e+Lf+t}const Kf=new Map,Jf={get:e=>Kf.get(e),set(e,t){!function(e){const t=parseInt(e.split(Lf)[1]);if(!t)return;Jf.forEach((e,n)=>{const o=parseInt(n.split(Lf)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Jf.delete(n),Jf.pruneCacheEntry(e),lo(()=>{Nf.forEach((e,t)=>{e.$.isUnmounted&&Nf.delete(t)})})}})}(e),Kf.set(e,t)},delete(e){Kf.get(e)&&Kf.delete(e)},forEach(e){Kf.forEach(e)}};function Zf(e,t){!function(e){const t=tm(e),{body:n}=document;nm&&n.removeAttribute(nm),t&&n.setAttribute(t,""),nm=t}(e),Of(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),rm(e,t)}function em(e){const t=tm(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function tm(e){return e.type.__scopeId}let nm;const om=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()&&{passive:!1};let im;function rm(e,t){if(document.removeEventListener("touchmove",Iu),im&&document.removeEventListener("scroll",im),t.disableScroll)return document.addEventListener("touchmove",Iu,om);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},a=Df(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&Mw.publishHandler(be,{scrollTop:o},e),n&&Mw.emit(e+"."+be,{scrollTop:o})}}(a,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>Mw.publishHandler(_e,{},a)),im=Mu(r),requestAnimationFrame(()=>document.addEventListener("scroll",im))}function am(e){return e.$el}function sm(e){const{base:t}=__uniConfig.router;return 0===ze(e).indexOf(t)?ze(e):t+e}function lm(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return sm(e.slice(1));e="https:"+e}if(oe.test(e)||ie.test(e)||0===e.indexOf("blob:"))return e;const o=Uf();return o.length?sm(Pu(Df(o[o.length-1]).route,e).slice(1)):e}const cm=navigator.userAgent,um=/android/i.test(cm),dm=/iphone|ipad|ipod/i.test(cm),hm=cm.match(/Windows NT ([\d|\d.\d]*)/i),pm=/Macintosh|Mac/i.test(cm),fm=/Linux|X11/i.test(cm),mm=pm&&navigator.maxTouchPoints>0;function gm(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function ym(e){return e&&90===Math.abs(window.orientation)}function bm(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function vm(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function _m(e,t,n,o){Pw.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function wm(e,t){const n={},{top:o,topWindowHeight:i}=au();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Ye(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(p(t.properties)&&t.properties.forEach(e=>{e=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(p(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach(e=>{n[e]=o[e]})}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function xm(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const Sm={};function Cm(e,t){const n=Sm[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const a=new Uint8Array(r);for(;r--;)a[r]=i.charCodeAt(r);return km(a,o)}(e)):t?Promise.reject(new Error("not find")):new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()})}function km(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function Am(e){for(const n in Sm)if(h(Sm,n)){if(Sm[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Sm[t]=e,t}function Tm(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Sm[e]}const Im=nd(),Em=nd();const Bm=ad({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=$n(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=Sn({width:-1,height:-1});return $o(()=>c({},o),e=>t("resize",e)),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){hi(o),Si(()=>{t.initial&&lo(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}(n,e,i,o),()=>Vr("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[Vr("div",{onScroll:i},[Vr("div",null,null)],40,["onScroll"]),Vr("div",{onScroll:i},[Vr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Mm=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function Pm(e,t=!0){const n=t?Mm:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Om=!1;function zm(){if(Om)return;Om=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,a,s,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Mm,o*=Mm,i*=Mm,r*=Mm,a*=Mm,s*=Mm,l=u?l*Mm:l,c=u?c*Mm:c,e.call(this,t,n,o,i,r,a,s,l,c)}}(t.drawImage),1!==Mm&&(!function(e,t){for(const n in e)h(e,n)&&t(e[n],n)}(e,function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map(function(e){return e*Mm});else if(Array.isArray(e))for(let t=0;t<e.length;t++)n[e[t]]*=Mm;return t.apply(this,n)}}(t[n])}),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Mm,e.apply(this,arguments),this.lineWidth/=Mm}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);const t=Array.prototype.slice.call(arguments);t[1]*=Mm,t[2]*=Mm,t[3]&&"number"==typeof t[3]&&(t[3]*=Mm);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(e,t,n){return t*Mm+n}),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Mm,t[2]*=Mm,t[3]&&"number"==typeof t[3]&&(t[3]*=Mm);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(e,t,n){return t*Mm+n}),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Mm,Mm),e.apply(this,arguments),this.scale(1/Mm,1/Mm)}}(t.drawImage))}const Lm=Le(()=>zm());function Nm(e){return e?lm(e):e}function Dm(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Rm(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let $m;function jm(e=0,t=0){return $m||($m=document.createElement("canvas")),$m.width=e,$m.height=t,$m}const Fm=ad({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Lm();const o=$n(null),i=$n(null),r=$n(null),a=$n(!1),s=function(e){return(t,n)=>{e(t,ju(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=Mg({excludeListeners:!0}),{_listeners:p}=function(e,t,n){const o=ha(()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=c({},(()=>{let e={};for(const t in i)if(h(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach(t=>{let o=[];r[t]&&o.push(ld(e=>{const o=e.currentTarget.getBoundingClientRect();Rm(o,e.touches),Rm(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(nu),r[t]=o}),r});return{_listeners:o}}(e,d,s),{_handleSubscribe:f,_resize:m}=function(e,t,n){let o=[],i={};const r=ha(()=>e.hidpi?Mm:1);function a(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);Pm(o,e.hidpi),t.putImageData(n,0,0)}else Pm(o,e.hidpi)}function s({actions:e,reserve:r},a){if(!e)return;if(n.value)return void o.push([e,r]);let s=t.value,c=s.getContext("2d");r||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height)),l(e);for(let t=0;t<e.length;t++){const n=e[t];let o=n.method;const r=n.data,s=r[0];if(/^set/.test(o)&&"setTransform"!==o){const n=o[3].toLowerCase()+o.slice(4);let i;if("fillStyle"===n||"strokeStyle"===n){if("normal"===s)i=Dm(r[1]);else if("linear"===s){const e=c.createLinearGradient(...r[1]);r[2].forEach(function(t){const n=t[0],o=Dm(t[1]);e.addColorStop(n,o)}),i=e}else if("radial"===s){let e=r[1];const t=e[0],n=e[1],o=e[2],a=c.createRadialGradient(t,n,0,t,n,o);r[2].forEach(function(e){const t=e[0],n=Dm(e[1]);a.addColorStop(t,n)}),i=a}else if("pattern"===s){if(!u(r[1],e.slice(t+1),a,function(e){e&&(c[n]=c.createPattern(e,r[2]))}))break;continue}c[n]=i}else if("globalAlpha"===n)c[n]=Number(s)/255;else if("shadow"===n){let e=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];r.forEach(function(t,n){c[e[n]]="shadowColor"===e[n]?Dm(t):t})}else if("fontSize"===n){const e=c.__font__||c.font;c.__font__=c.font=e.replace(/\d+\.?\d*px/,s+"px")}else"lineDash"===n?(c.setLineDash(s),c.lineDashOffset=r[1]||0):"textBaseline"===n?("normal"===s&&(r[0]="alphabetic"),c[n]=s):"font"===n?c.__font__=c.font=s:c[n]=s}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),c.beginPath(),r.forEach(function(e){c[e.method].apply(c,e.data)}),c[o]();else if("fillText"===o)c.fillText.apply(c,r);else if("drawImage"===o){if("break"===function(){let n=[...r],o=n[0],s=n.slice(1);if(i=i||{},!u(o,e.slice(t+1),a,function(e){e&&c.drawImage.apply(c,[e].concat([...s.slice(4,8)],[...s.slice(0,4)]))}))return"break"}())break}else"clip"===o?(r.forEach(function(e){c[e.method].apply(c,e.data)}),c.clip()):c[o].apply(c,r)}n.value||a({errMsg:"drawCanvas:ok"})}function l(e){e.forEach(function(e){let t=e.method,n=e.data,o="";function r(){const e=i[o]=new Image;e.onload=function(){e.ready=!0},function(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):Cm(e).then(Am)}(o).then(t=>{e.src=t}).catch(()=>{e.src=o})}"drawImage"===t?(o=n[0],o=Nm(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=Nm(o),n[1]=o),o&&!i[o]&&r()})}function u(e,t,r,a){let l=i[e];return l.ready?(a(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,a(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)s({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:o,height:i,destWidth:a,destHeight:s,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;o=o?Math.min(o,m):m;const g=p.offsetHeight-n;i=i?Math.min(i,g):g,l?(a=o,s=i):a||s?a?s||(s=Math.round(i/o*a)):(s||(s=Math.round(i*r.value)),a=Math.round(o/i*s)):(a=Math.round(o*r.value),s=Math.round(i*r.value));const y=jm(a,s),b=y.getContext("2d");let v;"jpeg"!==d&&"jpg"!==d||(d="jpeg",b.fillStyle="#fff",b.fillRect(0,0,a,s)),b.__hidpi__=!0,b.drawImageByCanvas(p,e,n,o,i,0,0,a,s,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=b.getImageData(0,0,a,s);f=Array.prototype.slice.call(e.data)}v={data:f,compressed:e,width:a,height:s}}catch(_){v={errMsg:`canvasGetImageData:fail ${_}`}}if(y.height=y.width=0,b.__hidpi__=!1,!h)return v;h(v)}function h({data:e,x:n,y:o,width:i,height:r,compressed:a},s){try{0,r||(r=Math.round(e.length/4/i));const a=jm(i,r);a.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(a,n,o,i,r),a.height=a.width=0}catch(l){return void s({errMsg:"canvasPutImageData:fail"})}s({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:a,quality:s,dirname:l},c){const u=d({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:a,quality:s});var h;u.errMsg?c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")}):(h=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h))}const f={actionsChanged:s,getImageData:d,putImageData:h,toTempFilePath:p};function m(e,t,n){let o=f[e];0!==e.indexOf("_")&&g(o)&&o(t,n)}return c(f,{_resize:a,_handleSubscribe:m})}(e,i,a);return $y(f,Fy(e.canvasId),!0),Si(()=>{m()}),()=>{const{canvasId:t,disableScroll:a}=e;return Vr("uni-canvas",Gr({ref:o,"canvas-id":t,"disable-scroll":a},l.value,u.value,p.value),[Vr("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Vr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Vr(Bm,{ref:r,onResize:m},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Vm=cu("ucg"),Hm=ad({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=$n(null),o=$n(e.checked),i=ha(()=>"true"===o.value||!0===o.value),r=$n(e.value);const a=ha(()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value));$o([()=>e.checked,()=>e.value],([e,t])=>{o.value=e,r.value=t});const{uniCheckGroup:s,uniLabel:l}=function(e,t,n){const o=ha(()=>({checkboxChecked:Boolean(e.value),value:t.value})),i={reset:n},r=ir(Vm,!1);r&&r.addField(o);const a=ir(pd,!1);a&&a.addField(i);const s=ir(fd,!1);return Ai(()=>{r&&r.removeField(o),a&&a.removeField(i)}),{uniCheckGroup:r,uniForm:a,uniLabel:s}}(o,r,()=>{o.value=!1}),c=t=>{e.disabled||(o.value=!o.value,s&&s.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),Ai(()=>{l.removeHandler(c)})),md(e,{"label-click":c}),()=>{const i=hd(e,"disabled");let r;return r=o.value,Vr("uni-checkbox",Gr(i,{id:e.id,onClick:c,ref:n}),[Vr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[Vr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:a.value},[r?yu(fu,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Wm(){}const Um={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function qm(e,t,n){function o(e){const t=ha(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(void 0),document.addEventListener("click",Wm,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Wm,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}$o(()=>t.value,e=>e&&o(e))}var Qm=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ym=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Gm=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Xm=ng("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Km=ng("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Jm=ng("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Zm=ng("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),eg=ng("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),tg=ng("script,style");function ng(e){for(var t={},n=e.split(","),o=0;o<n.length;o++)t[n[o]]=!0;return t}const og={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},ig={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},rg={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},ag=ad({name:"Image",props:og,setup(e,{emit:t}){const n=$n(null),o=function(e,t){const n=$n(""),o=ha(()=>{let e="auto",o="";const i=rg[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`}),i=Sn({rootEl:e,src:ha(()=>t.src?lm(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Si(()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0}),i}(n,e),i=cd(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=ig[o];if(!i)return;const{origWidth:r,origHeight:a}=n,s=r&&a?r/a:0;if(!s)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){sg&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,s))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return $o(()=>t.mode,(e,t)=>{ig[t]&&i(),ig[e]&&o()}),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void s();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;s(u,d,l),lo(()=>{o()}),r.draggable=t.draggable,a&&a.remove(),a=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{s(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};$o(()=>e.src,e=>l(e)),$o(()=>e.imgSrc,e=>{!e&&a&&(a.remove(),a=null)}),Si(()=>l(e.src)),Ai(()=>c())}(o,e,n,r,i),()=>Vr("uni-image",{ref:n},[Vr("div",{style:o.modeStyle},null,4),ig[e.mode]?Vr(Bm,{onResize:r},null,8,["onResize"]):Vr("span",null,null)],512)}});const sg="Google Inc."===navigator.vendor;const lg=Xe(!0),cg=[];let ug=0,dg=!1;const hg=e=>cg.forEach(t=>t.userAction=e);function pg(e={userAction:!1}){if(!dg){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!ug&&hg(!0),ug++,setTimeout(()=>{! --ug&&hg(!1)},0)},lg)}),dg=!0}cg.push(e)}const fg=()=>!!ug;function mg(){const e=Sn({userAction:!1});return Si(()=>{pg(e)}),Ai(()=>{!function(e){const t=cg.indexOf(e);t>=0&&cg.splice(t,1)}(e)}),{state:e}}function gg(){const e=Sn({attrs:{}});return Si(()=>{let t=ea();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}}),{state:e}}function yg(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function bg(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const vg=["none","text","decimal","numeric","tel","search","email","url"],_g=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~vg.indexOf(e)},cursorColor:{type:String,default:""}},Um),wg=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function xg(e,t,n,o){let i=null;i=nt(n=>{t.value=bg(n,e.type)},100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),$o(()=>e.modelValue,i),$o(()=>e.value,i);const r=function(e,t){let n,o,i=0;const r=function(...r){const a=Date.now();clearTimeout(n),o=()=>{o=null,i=a,e.apply(this,r)},a-i<t?n=setTimeout(o,t-(a-i)):o()};return r.cancel=function(){clearTimeout(n),o=null},r.flush=function(){clearTimeout(n),o&&o()},r}((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)},100);return xi(()=>{i.cancel(),r.cancel()}),{trigger:o,triggerInput:(e,t,n)=>{i.cancel(),r(e,t),n&&r.flush()}}}function Sg(e,t){mg();const n=ha(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}$o(()=>e.focus,e=>{e?o():function(){const e=t.value;e&&e.blur()}()}),Si(()=>{n.value&&lo(o)})}function Cg(e,t,n,o){Oc(xu(),"getSelectedTextRange",yg);const{fieldRef:i,state:r,trigger:a}=function(e,t,n){const o=$n(null),i=cd(t,n),r=ha(()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t}),a=ha(()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t}),s=ha(()=>{const t=Number(e.cursor);return isNaN(t)?-1:t}),l=ha(()=>{var t=Number(e.maxlength);return isNaN(t)?140:t});let c="";c=bg(e.modelValue,e.type)||bg(e.value,e.type);const u=Sn({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:a,cursor:s});return $o(()=>u.focus,e=>n("update:focus",e)),$o(()=>u.maxlength,e=>u.value=u.value.slice(0,e),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:s}=xg(e,r,n,a);Sg(e,i),qm(0,i);const{state:l}=gg();!function(e,t){const n=ir(pd,!1);if(!n)return;const o=ea(),i={submit(){const n=o.proxy;return[n[e],y(t)?n[t]:t.value]},reset(){y(t)?o.proxy[t]="":t.value=""}};n.addField(i),Ai(()=>{n.removeField(i)})}("name",r),function(e,t,n,o,i,r){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}$o([()=>t.selectionStart,()=>t.selectionEnd],a),$o(()=>t.cursor,s),$o(()=>e.value,function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),g(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",e=>e.stopPropagation()),c.addEventListener("focus",function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()}),c.addEventListener("blur",function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})}),c.addEventListener("input",u),c.addEventListener("compositionstart",e=>{e.stopPropagation(),t.composing=!0,d(e)}),c.addEventListener("compositionend",e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)}),c.addEventListener("compositionupdate",d)})}(i,r,e,a,s,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const kg=c({},_g,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Ag=Le(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function Tg(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&Ag()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Ig=ad({name:"Input",props:kg,emits:["confirm",...wg],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=ha(()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t}),a=ha(()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(B(e.textContentType));return i[-1!==t?t:-1!==n?n:0]});let s=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=$n(null!=t?t.toLocaleString():"");return $o(()=>e.modelValue,e=>{n.value=null!=e?e.toLocaleString():""}),$o(()=>e.value,e=>{n.value=null!=e?e.toLocaleString():""}),n}return $n("")}(e,r),l={fn:null};const c=$n(null),{fieldRef:u,state:d,scopedAttrsState:h,fixDisabledColor:p,trigger:f}=Cg(e,c,t,(t,n)=>{const o=t.target;if("number"===r.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!s.value||!o.value)&&"-"===t.data||"-"===s.value[0]&&"deleteContentBackward"===t.inputType)return s.value="-",n.value="",l.fn=()=>{s.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=Tg(t,s,n,o,l);return"boolean"==typeof e?e:(s.value=n.value=o.value="-"===s.value?"":s.value,!1)}{const e=Tg(t,s,n,o,l);if("boolean"==typeof e)return e;s.value=o.value}const i=n.maxlength;if(i>0&&o.value.length>i){o.value=o.value.slice(0,i),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}});$o(()=>d.value,t=>{"number"!==e.type||"-"===s.value&&""===t||(s.value=t.toString())});const m=["number","digit"],g=ha(()=>m.includes(e.type)?e.step:"");function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),f("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?Vr("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Vr("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:r.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:y,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Vr("uni-input",{ref:c},[Vr("div",{class:"uni-input-wrapper"},[Wo(Vr("div",Gr(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[La,!(d.value.length||"-"===s.value||s.value.includes("."))]]),"search"===e.confirmType?Vr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Eg=["class","style"],Bg=/^on[A-Z]+/,Mg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=ea(),i=jn({}),r=jn({}),a=jn({}),s=n.concat(Eg);return o.attrs=Sn(o.attrs),Do(()=>{const e=(n=o.attrs,Object.keys(n).map(e=>[e,n[e]])).reduce((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:Bg.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,a.value=e.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:a}};function Pg(e){const t=[];return p(e)&&e.forEach(e=>{Nr(e)?e.type===Cr?t.push(...Pg(e.children)):t.push(e):p(e)&&t.push(...Pg(e))}),t}const Og=ad({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=$n(null),o=$n(!1);let{setContexts:i,events:r}=function(e,t){const n=$n(0),o=$n(0),i=Sn({x:null,y:null}),r=$n(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach(function(e){e._setScale(t)}):a&&a._setScale(t))}function c(e,n=s){let o=t.value;function i(e){for(let t=0;t<n.length;t++){const o=n[t];if(e===o.rootRef.value)return o}return e===o||e===document.body||e===document?null:i(e.parentNode)}return i(e)}const u=ld(t=>{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(r.value=zg(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}}),d=ld(e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&r.value&&r.value>0){l(zg(n)/r.value)}i.x=n.x,i.y=n.y}}),h=ld(t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?s.forEach(function(e){e._endScale()}):a&&a._endScale())});function p(){f(),s.forEach(function(e,t){e.setParent()})}function f(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce(function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])},0),o.value=i.height-["Top","Bottom"].reduce(function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])},0)}return or("movableAreaWidth",n),or("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Mg(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach(e=>{let t=c[e],n=r[`_${e}`];c[e]=t?[].concat(t,n):n}),Si(()=>{r._resize(),o.value=!0});let u=[];const d=[];function h(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n=n.el;const o=d.find(e=>n===e.rootRef.value);o&&e.push(Pn(o))}i(e)}return or("_isMounted",o),or("movableAreaRootRef",n),or("addMovableViewContext",e=>{d.push(e),h()}),or("removeMovableViewContext",e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())}),()=>{const e=t.default&&t.default();return u=Pg(e),Vr("uni-movable-area",Gr({ref:n},s.value,l.value,c),[Vr(Bm,{onResize:r._resize},null,8,["onResize"]),u],16)}}});function zg(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Lg=function(e,t,n,o){e.addEventListener(t,e=>{g(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())},{passive:!1})};let Ng,Dg;function Rg(e,t,n){Ai(()=>{document.removeEventListener("mousemove",Ng),document.removeEventListener("mouseup",Dg)});let o=0,i=0,r=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-o,dy:l-i,ddx:s-r,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Lg(e,"touchstart",function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=a=e.touches[0].pageY,s(e,"start",o,i)}),Lg(e,"mousedown",function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=a=e.pageY,s(e,"start",o,i)}),Lg(e,"touchmove",function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,a=e.touches[0].pageY,t}});const d=Ng=function(e){if(!l&&c&&u){const t=s(e,"move",e.pageX,e.pageY);return r=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Lg(e,"touchend",function(e){if(0===e.touches.length&&u)return l=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)});const h=Dg=function(e){if(c=!1,!l&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Lg(e,"touchcancel",function(e){if(u){l=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}})}function $g(e,t,n){return e>t-n&&e<t+n}function jg(e,t){return $g(e,0,t)}function Fg(){}function Vg(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Hg(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Wg(e,t,n){this._springX=new Hg(e,t,n),this._springY=new Hg(e,t,n),this._springScale=new Hg(e,t,n),this._startTime=0}Fg.prototype.x=function(e){return Math.sqrt(e)},Vg.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Vg.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Vg.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Vg.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Vg.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Vg.prototype.dt=function(){return-this._x_v/this._x_a},Vg.prototype.done=function(){const e=$g(this.s().x,this._endPositionX)||$g(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Vg.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Vg.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Hg.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,a=t/(i*e);return{x:function(e){return(r+a*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+a*e)*t+a*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),a=(-n+Math.sqrt(r))/(2*o),s=(t-i*e)/(a-i),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*i*t+s*a*n}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}},Hg.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Hg.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Hg.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!jg(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(jg(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),jg(t,.1)&&(t=0),jg(o,.1)&&(o=0),o+=this._endPosition),this._solution&&jg(o-e,.1)&&jg(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Hg.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Hg.prototype.done=function(e){return e||(e=(new Date).getTime()),$g(this.x(),this._endPosition,.1)&&jg(this.dx(),.1)},Hg.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Hg.prototype.springConstant=function(){return this._k},Hg.prototype.damping=function(){return this._c},Hg.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Wg.prototype.setEnd=function(e,t,n,o){const i=(new Date).getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Wg.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Wg.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Wg.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Ug(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const qg=ad({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=$n(null),i=cd(o,n),{setParent:r}=function(e,t,n){const o=ir("_isMounted",$n(!1)),i=ir("addMovableViewContext",()=>{}),r=ir("removeMovableViewContext",()=>{});let a,s,l=$n(1),c=$n(1),u=$n(!1),d=$n(0),h=$n(0),p=null,f=null,m=!1,g=null,y=null;const b=new Fg,v=new Fg,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=ha(()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t}),x=new Vg(1,w.value);$o(()=>e.disabled,()=>{U()});const{_updateOldScale:S,_endScale:C,_setScale:k,scaleValueSync:A,_updateBoundary:T,_updateOffset:I,_updateWH:E,_scaleOffset:B,minX:M,minY:P,maxX:O,maxY:z,FAandSFACancel:L,_getLimitXY:N,_setTransform:D,_revise:R,dampingNumber:$,xMove:j,yMove:F,xSync:V,ySync:H,_STD:W}=function(e,t,n,o,i,r,a,s,l,c){const u=ha(()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t}),d=ha(()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t}),h=$n(Number(e.scaleValue)||1);$o(h,e=>{D(e)}),$o(u,()=>{N()}),$o(d,()=>{N()}),$o(()=>e.scaleValue,e=>{h.value=Number(e)||0});const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_}=function(e,t,n){const o=ir("movableAreaWidth",$n(0)),i=ir("movableAreaHeight",$n(0)),r=ir("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=$n(0),c=$n(0),u=$n(0),d=$n(0),h=$n(0),p=$n(0);function f(){let e=0-a.x+s.x,t=o.value-l.value-a.x-s.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-a.y+s.y,r=i.value-c.value-a.y-s.y;d.value=Math.min(n,r),p.value=Math.max(n,r)}function m(){a.x=Gg(e.value,r.value),a.y=Xg(e.value,r.value)}function g(o){o=o||t.value,o=n(o);let i=e.value.getBoundingClientRect();c.value=i.height/t.value,l.value=i.width/t.value;let r=c.value*o,a=l.value*o;s.x=(a-l.value)/2,s.y=(r-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:s,minX:u,minY:d,maxX:h,maxY:p}}(t,o,L),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:k,dampingNumber:A,xMove:T,yMove:I,xSync:E,ySync:B,_STD:M}=function(e,t,n,o,i,r,a,s,l,c,u,d,h,p){const f=ha(()=>{let e=Number(t.damping);return isNaN(e)?20:e}),m=ha(()=>"all"===t.direction||"horizontal"===t.direction),g=ha(()=>"all"===t.direction||"vertical"===t.direction),y=$n(Jg(t.x)),b=$n(Jg(t.y));$o(()=>t.x,e=>{y.value=Jg(e)}),$o(()=>t.y,e=>{b.value=Jg(e)}),$o(y,e=>{k(e)}),$o(b,e=>{A(e)});const v=new Wg(1,9*Math.pow(f.value,2)/40,f.value);function _(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):e<a.value&&(e=a.value,n=!0),t>r.value?(t=r.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),u&&u.cancel()}function x(e,n,i,r,a,s){w(),m.value||(e=l.value),g.value||(n=c.value),t.scale||(i=o.value);let d=_(e,n);e=d.x,n=d.y,t.animation?(v._springX._solution=null,v._springY._solution=null,v._springScale._solution=null,v._springX._endPosition=l.value,v._springY._endPosition=c.value,v._springScale._endPosition=o.value,v.setEnd(e,n,i,1),u=Kg(v,function(){let e=v.x();S(e.x,e.y,e.scale,r,a,s)},function(){u.cancel()})):S(e,n,i,r,a,s)}function S(i,r,a,s="",u,d){null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=l.value||0),null!==r&&"NaN"!==r.toString()&&"number"==typeof r||(r=c.value||0),i=Number(i.toFixed(1)),r=Number(r.toFixed(1)),a=Number(a.toFixed(1)),l.value===i&&c.value===r||u||p("change",{},{x:Ug(i,n.x),y:Ug(r,n.y),source:s}),t.scale||(a=o.value),a=+(a=h(a)).toFixed(3),d&&a!==o.value&&p("scale",{},{x:i,y:r,scale:a});let f="translateX("+i+"px) translateY("+r+"px) translateZ(0px) scale("+a+")";e.value&&(e.value.style.transform=f,e.value.style.webkitTransform=f,l.value=i,c.value=r,o.value=a)}function C(e){let t=_(l.value,c.value),n=t.x,i=t.y,r=t.outOfBounds;return r&&x(n,i,o.value,e),r}function k(e){if(m.value){if(e+n.x===l.value)return l;u&&u.cancel(),x(e+n.x,b.value+n.y,o.value)}return e}function A(e){if(g.value){if(e+n.y===c.value)return c;u&&u.cancel(),x(y.value+n.x,e+n.y,o.value)}return e}return{FAandSFACancel:w,_getLimitXY:_,_animationTo:x,_setTransform:S,_revise:C,dampingNumber:f,xMove:m,yMove:g,xSync:y,ySync:b,_STD:v}}(t,e,g,o,v,_,y,b,a,s,l,c,L,n);function P(t,n){if(e.scale){t=L(t),m(t),p();const e=x(a.value,s.value),o=e.x,i=e.y;n?S(o,i,t,"",!0,!0):Yg(function(){C(o,i,t,"",!0,!0)})}}function O(){r.value=!0}function z(e){i.value=e}function L(e){return e=Math.max(.1,u.value,e),e=Math.min(10,d.value,e)}function N(){if(!e.scale)return!1;P(o.value,!0),z(o.value)}function D(t){return!!e.scale&&(P(t=L(t),!0),z(t),t)}function R(){r.value=!1,z(o.value)}function $(e){e&&(e=i.value*e,O(),P(e))}return{_updateOldScale:z,_endScale:R,_setScale:$,scaleValueSync:h,_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_,FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:k,dampingNumber:A,xMove:T,yMove:I,xSync:E,ySync:B,_STD:M}}(e,n,t,l,c,u,d,h,p,f);function U(){u.value||e.disabled||(L(),_.historyX=[0,0],_.historyY=[0,0],_.historyT=[0,0],j.value&&(a=d.value),F.value&&(s=h.value),n.value.style.willChange="transform",g=null,y=null,m=!0)}function q(t){if(!u.value&&!e.disabled&&m){let n=d.value,o=h.value;if(null===y&&(y=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),F.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),F.value&&(o=t.detail.dy+s,_.historyY.shift(),_.historyY.push(o),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let i="touch";n<M.value?e.outOfBounds?(i="touch-out-of-bounds",n=M.value-b.x(M.value-n)):n=M.value:n>O.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=O.value+b.x(n-O.value)):n=O.value),o<P.value?e.outOfBounds?(i="touch-out-of-bounds",o=P.value-v.x(P.value-o)):o=P.value:o>z.value&&(e.outOfBounds?(i="touch-out-of-bounds",o=z.value+v.x(o-z.value)):o=z.value),Yg(function(){D(n,o,l.value,i)})}}}function Q(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!R("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=h.value;x.setV(e,t),x.setS(n,o);const i=x.delta().x,r=x.delta().y;let a=i+n,s=r+o;a<M.value?(a=M.value,s=o+(M.value-n)*r/i):a>O.value&&(a=O.value,s=o+(O.value-n)*r/i),s<P.value?(s=P.value,a=n+(P.value-o)*i/r):s>z.value&&(s=z.value,a=n+(z.value-o)*i/r),x.setEnd(a,s),f=Kg(x,function(){let e=x.s(),t=e.x,n=e.y;D(t,n,l.value,"friction")},function(){f.cancel()})}e.outOfBounds||e.inertia||L()}function Y(){if(!o.value)return;L();let t=e.scale?A.value:1;I(),E(t),T();let n=N(V.value+B.x,H.value+B.y),i=n.x,r=n.y;D(i,r,t,"",!0),S(t)}return Si(()=>{Rg(n.value,e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Q()}}),Y(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow($.value,2)/40,$.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:C,_setScale:k};i(e),Ti(()=>{r(e)})}),Ti(()=>{L()}),{setParent:Y}}(e,i,o);return()=>Vr("uni-movable-view",{ref:o},[Vr(Bm,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let Qg=!1;function Yg(e){Qg||(Qg=!0,requestAnimationFrame(function(){e(),Qg=!1}))}function Gg(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Gg(e.offsetParent,t):0}function Xg(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Xg(e.offsetParent,t):0}function Kg(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);let r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Jg(e){return/\d+[ur]px$/i.test(e)?yh(parseFloat(e)):Number(e)||0}const Zg=ad({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return p(e)&&e.filter(e=>"number"==typeof e).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=$n(null),i=$n(null),r=cd(o,n),a=function(e){const t=Sn([...e.value]),n=Sn({value:t,height:34});return $o(()=>e.value,(e,t)=>{n.value.length=e.length,e.forEach((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)})}),n}(e),s=$n(null);Si(()=>{const e=s.value;e&&(a.height=e.$el.offsetHeight)});let l=$n([]),c=$n([]);function u(e){let t=c.value;t=t.filter(e=>e.type!==Ar);let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return or("getPickerViewColumn",function(e){return ha({get(){const t=u(e.vnode);return a.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(a.value[o]!==t){a.value[o]=t;const e=a.value.map(e=>e);n("update:value",e),r("change",{},{value:e})}}})}),or("pickerViewProps",e),or("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=Pg(e);l.value=t,lo(()=>{c.value=t})}return Vr("uni-picker-view",{ref:o},[Vr(Bm,{ref:s,onResize:({height:e})=>a.height=e},null,8,["onResize"]),Vr("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class ey{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function ty(e,t,n){return e>t-n&&e<t+n}function ny(e,t){return ty(e,0,t)}class oy{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,a=t/(i*e);return{x:function(e){return(r+a*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+a*e)*t+a*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),a=(-n+Math.sqrt(r))/(2*o),s=(t-i*e)/(a-i),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*i*t+s*a*n}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!ny(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(ny(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),ny(t,.4)&&(t=0),ny(o,.4)&&(o=0),o+=this._endPosition),this._solution&&ny(o-e,.4)&&ny(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),ty(this.x(),this._endPosition,.4)&&ny(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class iy{constructor(e,t,n){this._extent=e,this._friction=t||new ey(.01),this._spring=n||new oy(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class ry{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new iy(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}let o;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){const e=this._scroll._friction.x(100),t=e%this._itemSize;o=Math.abs(t)>this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)},()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(g(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function ay(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new ry(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(a-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}const sy=ad({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=$n(null),i=$n(null),r=ir("getPickerViewColumn"),a=ea(),s=r?r(a):$n(0),l=ir("pickerViewProps"),c=ir("pickerViewState"),u=$n(34),d=$n(null);Si(()=>{const e=d.value;u.value=e.$el.offsetHeight});const h=ha(()=>(c.height-u.value)/2),{state:p}=gg();let f;const m=Sn({current:s.value,length:0});let g;function y(){f&&!g&&(g=!0,lo(()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),f.update(e*u.value,void 0,u.value)}))}$o(()=>s.value,e=>{e!==m.current&&(m.current=e,y())}),$o(()=>m.current,e=>s.value=e),$o([()=>u.value,()=>m.length,()=>c.height],y);let b=0;function v(e){const t=b+e.deltaY;if(Math.abs(t)>10){b=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),f.scrollTo(e*u.value)}else b=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let i=Math.min(m.current+t,m.length-1);m.current=i=Math.max(i,0),f.scrollTo(i*u.value)}}}return Si(()=>{const e=o.value,t=i.value,{scroller:n,handleTouchStart:r,handleTouchMove:a,handleTouchEnd:s}=ay(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new ey(1e-4),spring:new oy(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});f=n,Rg(e,e=>{switch(e.detail.state){case"start":r(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":s(e)}},!0),function(e){let t=0,n=0;e.addEventListener("touchstart",e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY}),e.addEventListener("touchend",e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(e=>{n[e]=o[e]}),e.target.dispatchEvent(n)}})}(e),y()}),()=>{const e=t.default&&t.default();m.length=Pg(e).length;const n=`${h.value}px 0`;return Vr("uni-picker-view-column",{ref:o},[Vr("div",{onWheel:v,onClick:_,class:"uni-picker-view-group"},[Vr("div",Gr(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),Vr("div",Gr(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[Vr(Bm,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),Vr("div",{ref:i,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),ly=ne,cy="backwards",uy=ad({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:ly},activeColor:{type:String,default:ly},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:cy},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=$n(null),n=function(e){const t=$n(0),n=ha(()=>`background-color: ${e.backgroundColor}; height: ${du(e.strokeWidth)}px;`),o=ha(()=>{const n=e.color!==ly&&e.activeColor===ly?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`}),i=ha(()=>{if("string"==typeof e.percent&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let t=parseFloat(e.percent);return Number.isNaN(t)||t<0?t=0:t>100&&(t=100),t}),r=Sn({outerBarStyle:n,innerBarStyle:o,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0});return r}(e);return dy(n,e),$o(()=>n.realPercent,(t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,dy(n,e)}),()=>{const{showInfo:o}=e,{outerBarStyle:i,innerBarStyle:r,currentPercent:a}=n;return Vr("uni-progress",{class:"uni-progress",ref:t},[Vr("div",{style:i,class:"uni-progress-bar"},[Vr("div",{style:r,class:"uni-progress-inner-bar"},null,4)],4),o?Vr("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function dy(e,t){t.active?(e.currentPercent=t.activeMode===cy?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}const hy={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},py={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"â",rdquo:"â",yen:"ï¿¥",radic:"â",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",hellip:"â¦"};const fy=(e,t,n)=>!n||p(n)&&!n.length?[]:n.map(n=>{var o;if(S(n)){if(!h(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!h(hy,r))return;return function(e,t){if(S(t))for(const n in t)if(h(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=lm(o))}}(r,n.attrs),i=c(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),pa(n.name,i,fy(e,t,n.children))}return"text"===n.type&&y(n.text)&&""!==n.text?Wr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return h(py,t)&&py[t]?py[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e})):void 0}});function my(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,i,r=[],a=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&tg[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+r.last()+"[^>]*>"),function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""}),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("</")?(i=e.match(Ym))&&(e=e.substring(i[0].length),i[0].replace(Ym,c),o=!1):0==e.indexOf("<")&&(i=e.match(Qm))&&(e=e.substring(i[0].length),i[0].replace(Qm,l),o=!1),o){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==a)throw"Parse Error: "+e;a=e}function l(e,n,o,i){if(n=n.toLowerCase(),Km[n])for(;r.last()&&Jm[r.last()];)c("",r.last());if(Zm[n]&&r.last()==n&&c("",n),(i=Xm[n]||!!i)||r.push(n),t.start){var a=[];o.replace(Gm,function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:eg[t]?t:"";a.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(n,a,i)}}function c(e,n){if(n)for(o=r.length-1;o>=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce(function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e},{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const gy=ad({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=ea(),o=n&&n.vnode.scopeId||"",i=$n(null),r=$n([]),a=cd(i,t);function s(e,t={}){a("itemclick",e,t)}return $o(()=>e.nodes,function(){let t=e.nodes;y(t)&&(t=my(e.nodes)),r.value=fy(o,s,t)},{immediate:!0}),()=>pa("uni-rich-text",{ref:i},pa("div",{},r.value))}}),yy=ad({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=$n(null),o=ha(()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t}),i=ha(()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)});return()=>{const{refreshState:r,refresherDefaultStyle:a,refresherThreshold:s}=e;return Vr("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==a?Vr("div",{class:"uni-scroll-view-refresh"},[Vr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?Vr("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Vr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Vr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?Vr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Vr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===a?Vr("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),by=Xe(!0),vy=ad({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=$n(null),r=$n(null),a=$n(null),s=$n(null),l=cd(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=ha(()=>Number(e.scrollTop)||0),n=ha(()=>Number(e.scrollLeft)||0),o=Sn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""});return{state:o,scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:p,_scrollLeftChanged:f,_scrollTopChanged:m}=function(e,t,n,o,i,r,a,s,l){let c=!1,u=0,d=!1,h=()=>{};const p=ha(()=>e.scrollX),f=ha(()=>e.scrollY),m=ha(()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t}),g=ha(()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t});function y(e,t){const n=a.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=s.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",h),r.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),r.addEventListener("transitionend",h),r.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function b(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),f.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function v(t){f.value&&(e.scrollWithAnimation?y(t,"y"):a.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?y(t,"x"):a.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=a.value.scrollLeft+n;e.scrollWithAnimation?y(i,"x"):a.value.scrollLeft=i}if(f.value){let n=o.top-t.top,i=a.value.scrollTop+n;e.scrollWithAnimation?y(i,"y"):a.value.scrollTop=i}}}}function x(e,t){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let n=a.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),s.value.removeEventListener("transitionend",h),s.value.removeEventListener("webkitTransitionEnd",h)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:k.y-C.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:k.y-C.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:k.y-C.y}))}t.refreshState=n}}let C={x:0,y:0},k={x:0,y:e.refresherThreshold};return Si(()=>{lo(()=>{v(n.value),_(o.value)}),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),b(e)},s=null,l=function(n){if(null===C)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=a.value;if(Math.abs(o-C.x)>Math.abs(r-C.y))if(p.value){if(0===l.scrollLeft&&o>C.x)return void(s=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&o<C.x)return void(s=!1);s=!0}else s=!1;else if(f.value)if(0===l.scrollTop&&r>C.y)s=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r<C.y)return void(s=!1);s=!0}else s=!1;if(s&&n.stopPropagation(),0===l.scrollTop&&1===n.touches.length&&S("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const o=r-C.y;0===u&&(u=r),c?(t.refresherHeight=o+e.refresherThreshold,d=!1):(t.refresherHeight=r-u,t.refresherHeight>0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},h=function(e){1===e.touches.length&&(C={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){k={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),C={x:0,y:0},k={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",h,by),a.value.addEventListener("touchmove",l,Xe(!1)),a.value.addEventListener("scroll",r,Xe(!1)),a.value.addEventListener("touchend",m,by),Ai(()=>{a.value.removeEventListener("touchstart",h),a.value.removeEventListener("touchmove",l),a.value.removeEventListener("scroll",r),a.value.removeEventListener("touchend",m)})}),hi(()=>{f.value&&(a.value.scrollTop=t.lastScrollTop),p.value&&(a.value.scrollLeft=t.lastScrollLeft)}),$o(n,e=>{v(e)}),$o(o,e=>{_(e)}),$o(()=>e.scrollIntoView,e=>{w(e)}),$o(()=>e.refresherTriggered,e=>{!0===e?S("refreshing"):!1===e&&S("restore")}),{realScrollX:p,realScrollY:f,_scrollTopChanged:v,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,s,t),g=ha(()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e}),y=ha(()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t});return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:h}=c;return Vr("uni-scroll-view",{ref:i},[Vr("div",{ref:a,class:"uni-scroll-view"},[Vr("div",{ref:r,style:g.value,class:y.value},[t?Vr(yy,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,Vr("div",{ref:s,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});const _y=ad({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=$n(null),o=$n(null),i=$n(null),r=$n(Number(e.value));$o(()=>e.value,e=>{r.value=Number(e)});const a=cd(n,t),s=function(e,t){const n=()=>wy(t.value,e.min,e.max),o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9",r={setBgColor:ha(()=>({backgroundColor:o()})),setBlockBg:ha(()=>({left:n()})),setActiveColor:ha(()=>({backgroundColor:i(),width:n()})),setBlockStyle:ha(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor}))};return r}(e,r),{_onClick:l,_onTrack:c}=function(e,t,n,o,i){const r=n=>{e.disabled||(s(n),i("change",n,{value:t.value}))},a=t=>{const n=Number(e.max),o=Number(e.min),i=Number(e.step);return t<o?o:t>n?n:xy.mul.call(Math.round((t-o)/i),i)+o},s=i=>{const r=Number(e.max),s=Number(e.min),l=o.value,c=getComputedStyle(l,null).marginLeft;let u=l.offsetWidth;u+=parseInt(c);const d=n.value,h=d.offsetWidth-(e.showValue?u:0),p=d.getBoundingClientRect().left,f=(i.x-p)*(r-s)/h+s;t.value=a(f)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(s({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},c=ir(pd,!1);if(c){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};c.addField(n),Ai(()=>{c.removeField(n)})}return{_onClick:r,_onTrack:l}}(e,r,n,o,a);return Si(()=>{Rg(i.value,c)}),()=>{const{setBgColor:t,setBlockBg:a,setActiveColor:c,setBlockStyle:u}=s;return Vr("uni-slider",{ref:n,onClick:ld(l)},[Vr("div",{class:"uni-slider-wrapper"},[Vr("div",{class:"uni-slider-tap-area"},[Vr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[Vr("div",{ref:i,style:a.value,class:"uni-slider-handle"},null,4),Vr("div",{style:u.value,class:"uni-slider-thumb"},null,4),Vr("div",{style:c.value,class:"uni-slider-track"},null,4)],4)]),Wo(Vr("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[La,e.showValue]])])],8,["onClick"])}}}),wy=(e,t,n)=>(n=Number(n),100*(e-(t=Number(t)))/(n-t)+"%");var xy={mul:function(e){let t=0,n=this.toString(),o=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=o.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}};function Sy(e,t,n,o,i,r){function a(){c&&(clearTimeout(c),c=null)}let s,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=ha(()=>n.value.length>t.displayMultipleItems),b=ha(()=>e.circular&&y.value);function v(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||b.value&&function(o){if(!u)for(let i=n.value,r=i.length,a=o+t.displayMultipleItems,s=0;s<r;s++){const t=i[s],n=Math.floor(o/r)*r+s,l=n+r,c=n-r,u=Math.max(o-(n+1),n-a,0),d=Math.max(o-(l+1),l-a,0),h=Math.max(o-(c+1),c-a,0),p=Math.min(u,d,h),f=[n,l,c][[u,d,h].indexOf(p)];t.updatePosition(f,e.vertical)}}(i);const a="translate("+(e.vertical?"0":100*-i*h+"%")+", "+(e.vertical?100*-i*h+"%":"0")+") translateZ(0)",l=o.value;if(l&&(l.style.webkitTransform=a,l.style.transform=a),d=i,!s){if(i%1==0)return;s=i}i-=Math.floor(s);const c=n.value;i<=-(c.length-1)?i+=c.length:i>=c.length&&(i-=c.length),i=s%1>.5||s<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(b.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(f=!1);const e=p,o=e.toPos,i=e.acc,a=e.endTime,c=e.source,u=a-Date.now();if(u<=0){v(o),p=null,f=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}v(o+i*u*u/2),l=requestAnimationFrame(x)}function S(e,o,i){w();const r=t.duration,a=n.value.length;let s=d;if(b.value)if(i<0){for(;s<e;)s+=a;for(;s-a>e;)s-=a}else if(i>0){for(;s>e;)s-=a;for(;s+a<e;)s+=a;s+a-e<e-s&&(s+=a)}else{for(;s+a<e;)s+=a;for(;s-a>e;)s-=a;s+a-e<e-s&&(s+=a)}else"click"===o&&(e=e+t.displayMultipleItems-1<a?e:0);p={toPos:e,acc:2*(s-e)/(r*r),endTime:Date.now()+r,source:o},f||(f=!0,l=requestAnimationFrame(x))}function C(){a();const e=n.value,o=function(){c=null,g="autoplay",b.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,S(t.current,"autoplay",b.value?1:0),c=setTimeout(o,t.interval)};u||e.length<=t.displayMultipleItems||(c=setTimeout(o,t.interval))}function k(e){e?C():a()}return $o([()=>e.current,()=>e.currentItemId,()=>[...n.value]],()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;t<i.length;t++){if(i[t].getItemId()===e.currentItemId){o=t;break}}o<0&&(o=Math.round(e.current)||0),o=o<0?0:o,t.current!==o&&(g="",t.current=o)}),$o([()=>e.vertical,()=>b.value,()=>t.displayMultipleItems,()=>[...n.value]],function(){a(),p&&(v(p.toPos),p=null);const i=n.value;for(let t=0;t<i.length;t++)i[t].updatePosition(t,e.vertical);h=1;const r=o.value;if(1===t.displayMultipleItems&&i.length){const e=i[0].getBoundingClientRect(),t=r.getBoundingClientRect();h=e.width/t.width,h>0&&h<1||(h=1)}const s=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(v(s+l-m),m=l):(v(l),e.autoplay&&C())):(u=!0,v(-t.displayMultipleItems-1))}),$o(()=>t.interval,()=>{c&&(a(),C())}),$o(()=>t.current,(e,o)=>{!function(e,o){const i=g;g="";const a=n.value;if(!i){const t=a.length;S(e,"",b.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)}),$o(()=>t.currentItemId,e=>{i("update:currentItemId",e)}),$o(()=>e.autoplay&&!t.userTracking,k),k(e.autoplay&&!t.userTracking),Si(()=>{let i=!1,r=0,s=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?v(m):(g="touch",t.current=i,S(i,"touch",0!==o?o:0===i&&b.value&&d>=1?1:0))}Rg(o.value,c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,a(),m=d,r=0,s=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&C())}return function(i){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;r=.6*r+.4*t,b.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),v(n)}const d=s-a||1,h=o.value;e.vertical?u(-i.dy/h.offsetHeight,-i.ddy/d):u(-i.dx/h.offsetWidth,-i.ddx/d)}(c.detail),!1}}})}),Ti(()=>{a(),cancelAnimationFrame(l)}),{onSwiperDotClick:function(e){S(t.current=e,g="click",b.value?1:0)},circularEnabled:b,swiperEnabled:y}}const Cy=ad({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=$n(null),i=cd(o,n),r=$n(null),a=$n(null),s=function(e){return Sn({interval:ha(()=>{const t=Number(e.interval);return isNaN(t)?5e3:t}),duration:ha(()=>{const t=Number(e.duration);return isNaN(t)?500:t}),displayMultipleItems:ha(()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t}),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=ha(()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:du(e.previousMargin,!0),bottom:du(e.nextMargin,!0)}:{top:0,bottom:0,left:du(e.previousMargin,!0),right:du(e.nextMargin,!0)}),t}),c=ha(()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}});let u=[];const d=[],h=$n([]);function p(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n instanceof Element||(n=n.el);const o=d.find(e=>n===e.rootRef.value);o&&e.push(Pn(o))}h.value=e}or("addSwiperContext",function(e){d.push(e),p()});or("removeSwiperContext",function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())});const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=Sy(e,s,h,a,n,i);let y=()=>null;return y=ky(o,e,s,f,h,m,g),()=>{const n=t.default&&t.default();return u=Pg(n),Vr("uni-swiper",{ref:o},[Vr("div",{ref:r,class:"uni-swiper-wrapper"},[Vr("div",{class:"uni-swiper-slides",style:l.value},[Vr("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Vr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map((t,n,o)=>Vr("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<s.current+s.displayMultipleItems&&n>=s.current||n<s.current+s.displayMultipleItems-o.length},style:{background:n===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2),y()],512)],512)}}}),ky=(e,t,n,o,i,r,a)=>{let s=!1,l=!1,u=!1,d=$n(!1);function h(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Do(()=>{s="auto"===t.navigation,d.value=!0!==t.navigation||s,v()}),Do(()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(d.value=!0))});const p={onMouseover:e=>h(e,"over"),onMouseout:e=>h(e,"out")};function f(e,t,a){if(e.stopPropagation(),a)return;const s=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=s-1);break;case"next":l++,l>=s&&r.value&&(l=0)}o(l)}const m=()=>yu(gu,t.navigationColor,26);let g;const y=n=>{clearTimeout(g);const{clientX:o,clientY:i}=n,{left:r,right:a,top:s,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(i-s<u/3||l-i<u/3):!(o-r<c/3||a-o<c/3),h)return g=setTimeout(()=>{d.value=h},300);d.value=h},b=()=>{d.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",b),s&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",b)))}return Si(v),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Vr(Cr,null,[Vr("div",Gr({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"prev",l)},p),[m()],16,["onClick"]),Vr("div",Gr({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>f(e,"next",u)},p),[m()],16,["onClick"])]):null}},Ay=ad({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=$n(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,a=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=a,r.style.transform=a)}};return Si(()=>{const e=ir("addSwiperContext");e&&e(o)}),Ti(()=>{const e=ir("removeSwiperContext");e&&e(o)}),()=>Vr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Ty=ad({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=$n(null),o=$n(e.checked),i=function(e,t){const n=ir(pd,!1),o=ir(fd,!1),i={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(i),Ti(()=>{n.removeField(i)}));return o}(e,o),r=cd(n,t);$o(()=>e.checked,e=>{o.value=e});const a=t=>{e.disabled||(o.value=!o.value,r("change",t,{value:o.value}))};return i&&(i.addHandler(a),Ai(()=>{i.removeHandler(a)})),md(e,{"label-click":a}),()=>{const{color:t,type:i}=e,r=hd(e,"disabled"),s={};let l;return t&&o.value&&(s.backgroundColor=t,s.borderColor=t),l=o.value,Vr("uni-switch",Gr({id:e.id,ref:n},r,{onClick:a}),[Vr("div",{class:"uni-switch-wrapper"},[Wo(Vr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:s},null,6),[[La,"switch"===i]]),Wo(Vr("div",{class:"uni-checkbox-input"},[l?yu(fu,e.color,22):""],512),[[La,"checkbox"===i]])])],16,["id","onClick"])}}});const Iy={ensp:"â",emsp:"â",nbsp:" "};function Ey(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Iy[t]&&" "===r&&(r=Iy[t]),i?(o+="n"===r?ee:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,Iy.nbsp).replace(/ /g,Iy.ensp).replace(/ /g,Iy.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(ee)}const By=ad({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=$n(null);return()=>{const o=[];return t.default&&t.default().forEach(t=>{if(8&t.shapeFlag&&t.type!==Ar){const n=Ey(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach((e,t)=>{(0!==t||e)&&o.push(Wr(e)),t!==i&&o.push(Vr("br"))})}else o.push(t)}),Vr("uni-text",{ref:n,selectable:!!e.selectable||null},[Vr("span",null,o)],8,["selectable"])}}}),My=c({},_g,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Oy.concat("return").includes(e)}});let Py=!1;const Oy=["done","go","next","search","send"];const zy=ad({name:"Textarea",props:My,emits:["confirm","linechange",...wg],setup(e,{emit:t,expose:n}){const o=$n(null),i=$n(null),{fieldRef:r,state:a,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=Cg(e,o,t),u=ha(()=>a.value.split(ee)),d=ha(()=>Oy.includes(e.confirmType)),h=$n(0),p=$n(null);function f({height:e}){h.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return $o(()=>h.value,t=>{const n=o.value,r=p.value,a=i.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=r.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(a.style.height=t+"px")}),function(){const e="(prefers-color-scheme: dark)";Py=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&l?Vr("textarea",{key:"disabled-textarea",ref:r,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Py},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Vr("textarea",{key:"textarea",ref:r,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Py},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Vr("uni-textarea",{ref:o,"auto-height":e.autoHeight},[Vr("div",{ref:i,class:"uni-textarea-wrapper"},[Wo(Vr("div",Gr(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[La,!a.value.length]]),Vr("div",{ref:p,class:"uni-textarea-line"},[" "],512),Vr("div",{class:"uni-textarea-compute"},[u.value.map(e=>Vr("div",null,[e.trim()?e:"."])),Vr(Bm,{initial:!0,onResize:f},null,8,["initial","onResize"])]),"search"===e.confirmType?Vr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Ly=ad({name:"View",props:c({},ud),setup(e,{slots:t}){const n=$n(null),{hovering:o,binding:i}=dd(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?Vr("uni-view",Gr({class:o.value?r:"",ref:n},i),[zi(t,"default")],16):Vr("uni-view",{ref:n},[zi(t,"default")],512)}}});function Ny(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Dy(e,t,n){e&&Oc(n||xu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function Ry(e,t){e&&function(e,t){t=Pc(e,t),delete Mc[t]}(t||xu(),e)}function $y(e,t,n,o){const i=ea().proxy;Si(()=>{Dy(t||Ny(i),e,o),!n&&t||$o(()=>i.id,(t,n)=>{Dy(Ny(i,t),e,o),Ry(n&&Ny(i,n))})}),Ai(()=>{Ry(t||Ny(i),o)})}let jy=0;function Fy(e){const t=bu(),n=ea().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+jy++;return Si(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function Vy(e,t,n,o){g(t)&&_i(e,t.bind(n),o)}function Hy(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach(o=>{if(function(e,t,n=!0){return!(n&&!g(t))&&(rt.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];p(i)?i.forEach(e=>Vy(o,e,n,t)):Vy(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,Tu(n,he,e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&Tu(n,re)}catch(i){console.error(i.message+ee+i.stack)}}}function Wy(e,t,n){Hy(e,t,n)}function Uy(e,t,n){return e[t]=n}function qy(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Qy(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r[le]?Tu(r.proxy,le,n):Jn(n,0,o&&o.$.vnode,!1)}}function Yy(e,t){return e?[...new Set([].concat(e,t))]:t}function Gy(e){const t=e.config;var n;t.errorHandler=st(e,Qy),n=t.optionMergeStrategies,rt.forEach(e=>{n[e]=Yy});const o=t.globalProperties;o.$set=Uy,o.$applyOptions=Wy,o.$callMethod=qy,function(e){at.forEach(t=>t(e))}(e)}function Xy(e){const t=Yl({history:Zy(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Jy});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Ky[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let Ky=Object.create(null);const Jy=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Ky[o]);if(t)return t}return{left:0,top:0};var o};function Zy(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=al(e);return t.listen((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Uf(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Df(t[i]);qf(Xf(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const eb={install(e){Gy(e),Wu(e),td(e),e.config.warnHandler||(e.config.warnHandler=tb),Xy(e)}};function tb(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const nb={class:"uni-async-loading"},ob=Vr("i",{class:"uni-loading"},null,-1),ib=sd({name:"AsyncLoading",render:()=>(Br(),Lr("div",nb,[ob]))});function rb(){window.location.reload()}const ab=sd({name:"AsyncError",props:["error"],setup(){bc();const{t:e}=gc();return()=>Vr("div",{class:"uni-async-error",onClick:rb},[e("uni.async.error")],8,["onClick"])}});let sb;function lb(){return sb}function cb(e){sb=e,Object.defineProperty(sb.$.ctx,"$children",{get:()=>Uf().map(e=>e.$vm)});const t=sb.$.appContext.app;t.component(ib.name)||t.component(ib.name,ib),t.component(ab.name)||t.component(ab.name,ab),function(e){e.$vm=e,e.$mpType="app";const t=$n(gc().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(sb),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(sb),Zu(),zu()}function ub(e,{clone:t,init:n,setup:o,before:i}){t&&(e=c({},e)),i&&i(e);const r=e.setup;return e.setup=(e,t)=>{const i=ea();if(n(i.proxy),o(i),r)return r(e,t)},e}function db(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ub(e.default,t):ub(e,t)}function hb(e){return db(e,{clone:!0,init:Gf,setup(e){e.$pageInstance=e;const t=xd(),n=Ze(t.query);e.attrs.__pageQuery=n,Df(e.proxy).options=n,e.proxy.options=n;const o=_d();var i,r;return Of(o),e.onReachBottom=Sn([]),e.onPageScroll=Sn([]),$o([e.onReachBottom,e.onPageScroll],()=>{const t=_u();e.proxy===t&&rm(e,o)},{once:!0}),xi(()=>{Zf(e,o)}),Si(()=>{em(e);const{onReady:n}=e;n&&z(n),gb(t)}),fi(()=>{if(!e.__isVisible){Zf(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&z(n),lo(()=>{gb(t)})}},"ba",i),function(e,t){fi(e,"bda",t)}(()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&z(t)}}}),r=o.id,Mw.subscribe(Pc(r,Ic),zc),Ai(()=>{!function(e){Mw.unsubscribe(Pc(e,Ic)),Object.keys(Mc).forEach(t=>{0===t.indexOf(e+".")&&delete Mc[t]})}(o.id)}),n}})}function pb(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=ev(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Pw.emit(ge,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function fb(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Pw.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function mb(){const{emit:e}=Pw;"visible"===document.visibilityState?e(Me,c({},Em)):e(Pe)}function gb(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Tu("onTabItemTap",{index:n,text:t,pagePath:o})}function yb(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function bb(e,t,n){const o=Sn({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let r=null;let a;return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0},onTouchmove:function(s){function l(){s.stopPropagation(),s.preventDefault()}n.fullscreen&&l();const c=o.gestureType;if("stop"===c)return;const u=s.targetTouches[0],d=u.pageX,h=u.pageY,p=i,f=t.value;if("progress"===c?(!function(e){const n=t.value,i=n.duration;let r=e/600*i+o.currentTimeOld;r<0?r=0:r>i&&(r=i);o.currentTimeNew=r}(d-p.x),o.seeking=!0):"volume"===c&&function(e){const n=t.value,i=o.volumeOld;let r;"number"==typeof i&&(r=i-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(a),a=void 0,null==a&&(a=setTimeout(()=>{o.toastThin=!1,a=void 0},1e3)),n.volume=r,o.volumeNew=r)}(h-p.y),"none"===c)if(Math.abs(d-p.x)>Math.abs(h-p.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=f.currentTime,n.fullscreen||l()}else{if(!e.pageGesture&&!e.vslideGesture)return void(o.gestureType="stop");"none"!==o.gestureType&&null!=r||(r=setTimeout(()=>{o.toastThin=!0},500)),o.gestureType="volume",o.volumeOld=f.volume,n.fullscreen||l()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const vb={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},_b=ad({name:"Video",props:vb,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=$n(null),r=$n(null),a=cd(i,t),{state:s}=mg(),{$attrs:l}=Mg({excludeListeners:!0});gc(),Ac();const{videoRef:c,state:u,play:d,pause:h,stop:f,seek:m,playbackRate:g,toggle:y,onDurationChange:b,onLoadedMetadata:v,onProgress:_,onWaiting:w,onVideoError:x,onPlay:S,onPause:C,onEnded:k,onTimeUpdate:A}=function(e,t,n){const o=$n(null),i=ha(()=>lm(e.src)),r=ha(()=>"true"===e.muted||!0===e.muted),a=Sn({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function s(e){const t=e.target,n=t.buffered;n.length&&(a.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return $o(()=>i.value,()=>{a.playing=!1,a.currentTime=0}),$o(()=>a.buffered,e=>{n("progress",{},{buffered:e})}),$o(()=>r.value,e=>{o.value.muted=e}),{videoRef:o,state:a,play:function(){const e=o.value;a.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;a.playing?e.pause():e.play()},onDurationChange:function({target:e}){a.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),s(t)},onProgress:s,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){a.playing=!1,n("error",e,{})},onPlay:function(e){a.start=!0,a.playing=!0,n("play",e,{})},onPause:function(e){a.playing=!1,n("pause",e,{})},onEnded:function(e){a.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;a.pauseUpdatingCurrentTime||(a.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,a),{state:T,danmuRef:I,updateDanmu:E,toggleDanmu:B,sendDanmu:M}=function(e,t){const n=$n(null),o=Sn({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=p(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function a(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout(function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout(function(){t.remove()},4e3)},17)}return r.sort(function(e,t){return(e.time||0)-(t.time||0)}),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,s=i,l={time:n,index:s.index};if(n>s.time)for(let i=s.index+1;i<r.length;i++){const e=r[i];if(!(n>=(e.time||0)))break;l.index=i,t.playing&&o.enable&&a(e)}else if(n<s.time)for(let t=s.index-1;t>-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:P,onFullscreenChange:O,emitFullscreenChange:z,toggleFullscreen:L,requestFullScreen:N,exitFullScreen:D}=function(e,t,n,o,i){const r=Sn({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||a&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&s(e)}function c(){l(!1)}return Ai(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||s(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:s,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(a,r,c,s,i),{state:R,onTouchstart:$,onTouchend:j,onTouchmove:F}=bb(e,c,P),{state:V,progressRef:H,ballRef:W,clickProgress:U,toggleControls:q,autoHideEnd:Q,autoHideStart:Y}=function(e,t,n,o){const i=$n(null),r=$n(null),a=ha(()=>e.showCenterPlayBtn&&!t.start),s=$n(!0),l=ha(()=>!a.value&&e.controls&&s.value),c=Sn({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:a,controlsShow:l,controlsVisible:s});let u;function d(){u=setTimeout(()=>{c.controlsVisible=!1},3e3)}function h(){u&&(clearTimeout(u),u=null)}return Ai(()=>{u&&clearTimeout(u)}),$o(()=>c.controlsShow&&t.playing&&!c.controlsTouching,e=>{e?d():h()}),Si(()=>{const e=Xe(!1);let a,s,l,u=!0;const d=r.value;function h(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-a)<Math.abs(d-s))return void p(e);u=!1;const h=i.value.offsetWidth;let f=l+(r-a)/h*100;f<0?f=0:f>100&&(f=100),t.progress=f,null==o||o(t.duration*f/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",h,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",n=>{c.controlsTouching=!0;const o=n.targetTouches[0];a=o.pageX,s=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",h,e)}),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)}),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,a=e.offsetX;for(;r&&r!==o;)a+=r.offsetLeft,r=r.parentNode;const s=o.offsetWidth;let l=0;a>=0&&a<=s&&(l=a/s,n(t.duration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:h}}(e,u,m,e=>{R.currentTimeNew=e});!function(e,t,n,o,i,r,a,s){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:a,exitFullScreen:s};$y((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)},Fy(),!0)}(d,h,f,m,M,g,N,D);const G=function(e,t,n){const o=ha(()=>"progress"===t.gestureType||n.touching);return $o(o,o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)}),$o([()=>e.currentTime,()=>{vb.duration}],()=>{e.progress=e.currentTime/e.duration*100}),$o(()=>t.currentTimeNew,t=>{e.currentTime=t}),o}(u,R,V);return()=>Vr("uni-video",{ref:i,id:e.id,onClick:q},[Vr("div",{ref:r,class:"uni-video-container",onTouchstart:$,onTouchend:j,onTouchmove:F,onFullscreenchange:ds(O,["stop"]),onWebkitfullscreenchange:ds(e=>O(e,!0),["stop"])},[Vr("video",Gr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:b,onLoadedmetadata:v,onProgress:_,onWaiting:w,onError:x,onPlay:S,onPause:C,onEnded:k,onTimeupdate:e=>{A(e),E(e)},onWebkitbeginfullscreen:()=>z(!0),onX5videoenterfullscreen:()=>z(!0),onWebkitendfullscreen:()=>z(!1),onX5videoexitfullscreen:()=>z(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Wo(Vr("div",{class:"uni-video-bar uni-video-bar-full",onClick:ds(()=>{},["stop"])},[Vr("div",{class:"uni-video-controls"},[Wo(Vr("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:ds(y,["stop"])},null,10,["onClick"]),[[La,e.showPlayBtn]]),Wo(Vr("div",{class:"uni-video-current-time"},[yb(u.currentTime)],512),[[La,e.showProgress]]),Wo(Vr("div",{ref:H,class:"uni-video-progress-container",onClick:ds(U,["stop"])},[Vr("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":G.value}},[Vr("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),Vr("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),Vr("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":G.value}},[Vr("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[La,e.showProgress]]),Wo(Vr("div",{class:"uni-video-duration"},[yb(Number(e.duration)||u.duration)],512),[[La,e.showProgress]])]),Wo(Vr("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":T.enable},onClick:ds(B,["stop"])},null,10,["onClick"]),[[La,e.danmuBtn]]),Wo(Vr("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":P.fullscreen},onClick:ds(()=>L(!P.fullscreen),["stop"])},null,10,["onClick"]),[[La,e.showFullscreenBtn]])],8,["onClick"]),[[La,V.controlsShow]]),Wo(Vr("div",{ref:I,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[La,u.start&&T.enable]]),V.centerPlayBtnShow&&Vr("div",{class:"uni-video-cover",onClick:ds(()=>{},["stop"])},[Vr("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:ds(d,["stop"])},null,8,["onClick"])],8,["onClick"]),Vr("div",{class:"uni-video-loading"},["volume"===R.gestureType?Vr("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":R.toastThin},style:{marginTop:"5px"}},[!R.toastThin&&R.volumeNew>0&&"volume"===R.gestureType?Vr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!R.toastThin&&Vr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),Vr("div",{class:"uni-video-toast-draw",style:{width:100*R.volumeNew+"%"}},null)],2):null]),Vr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":G.value}},[Vr("div",{class:"uni-video-toast-title"},[Vr("span",{class:"uni-video-toast-title-current-time"},[yb(R.currentTimeNew)])," / ",Number(e.duration)||yb(u.duration)])],2),Vr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let wb,xb=0;function Sb(e,t,n,o){var i,r=document.createElement("script"),a=t.callback||"callback",s="__uni_jsonp_callback_"+xb++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[s],r.remove()}window[s]=e=>{g(n)&&n(e),c()},r.onerror=()=>{g(o)&&o(),c()},i=setTimeout(function(){g(o)&&o(),c()},l),r.src=e+(e.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(r)}function Cb(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function a(){this.Text&&this.option.map.remove(this.Text)}class s{constructor(e={},s){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=a,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(Pb())this.callback=s,this.visible&&this.createAMapText();else if(Ob())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,Pb()?this.visible&&this.createAMapText():Ob()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!Pb()&&!Ob()){const t=new(e.OverlayView||e.Overlay);s.prototype.setMap=t.setMap,s.prototype.getMap=t.getMap,s.prototype.getPanes=t.getPanes,s.prototype.getProjection=t.getProjection,s.prototype.map_changed=t.map_changed,s.prototype.set=t.set,s.prototype.get=t.get,s.prototype.setOptions=t.setValues,s.prototype.bindTo=t.bindTo,s.prototype.bindsTo=t.bindsTo,s.prototype.notify=t.notify,s.prototype.setValues=t.setValues,s.prototype.unbind=t.unbind,s.prototype.unbindAll=t.unbindAll,s.prototype.addListener=t.addListener}return s}const kb={};function Ab(e,t){const n=Eb();if(!n.key)return void console.error("Map key not configured.");const o=kb[n.type]=kb[n.type]||[];if(wb)t(wb);else if(window[n.type]&&window[n.type].maps)wb=Pb()||Ob()?window[n.type]:window[n.type].maps,wb.Callout=wb.Callout||Cb(wb),t(wb);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],wb=Pb()||Ob()?window[n.type]:window[n.type].maps,wb.Callout=Cb(wb),o.forEach(e=>e(wb)),o.length=0},Pb()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const a=document.createElement("script");let s=Tb(n.type);n.type===Ib.QQ&&e.push("geometry"),e.length&&(s+=`libraries=${e.join("%2C")}&`),n.type===Ib.BMAP?a.src=`${s}ak=${n.key}&callback=${r}`:a.src=`${s}key=${n.key}&callback=${r}`,a.onerror=function(){console.error("Map load failed.")},document.body.appendChild(a)}}const Tb=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);var Ib=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(Ib||{});function Eb(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let Bb=!1,Mb=!1;const Pb=()=>Mb?Bb:(Mb=!0,Bb="AMap"===Eb().type),Ob=()=>"BMapGL"===Eb().type;const zb=sd({name:"MapMarker",props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=ir("onMapReady"),o=function(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),Ti(()=>{n.remove()}),function(e){const o=Object.assign({},e,{position:"absolute",top:"70px",borderStyle:"solid"}),i=document.createElement("div");return Object.keys(o).forEach(e=>{i.style[e]=o[e]||""}),n.innerText=`.${t}{${i.getAttribute("style")}}`,t}}(t);let i;function r(e){Pb()?e.removeAMapText():e.setMap(null)}if(n((n,a,s)=>{function l(e){const l=e.title;let c;c=Pb()?new a.LngLat(e.longitude,e.latitude):Ob()?new a.Point(e.longitude,e.latitude):new a.LatLng(e.latitude,e.longitude);const u=new Image;let d=0;u.onload=()=>{const h=e.anchor||{};let p,f,m,g,y="number"==typeof h.x?h.x:.5,b="number"==typeof h.y?h.y:1;e.iconPath&&(e.width||e.height)?(f=e.width||u.width/u.height*e.height,m=e.height||u.height/u.width*e.width):(f=u.width/2,m=u.height/2),d=m,g=m-(m-b*m),p="MarkerImage"in a?new a.MarkerImage(u.src,null,null,new a.Point(y*f,b*m),new a.Size(f,m)):"Icon"in a?new a.Icon({image:u.src,size:new a.Size(f,m),imageSize:new a.Size(f,m),imageOffset:new a.Pixel(y*f,b*m)}):{url:u.src,anchor:new a.Point(y,b),size:new a.Size(f,m)},Ob()?(i=new a.Marker(new a.Point(c.lng,c.lat)),n.addOverlay(i)):(i.setPosition(c),i.setIcon(p)),"setRotation"in i&&i.setRotation(e.rotate||0);const v=e.label||{};let _;if("label"in i&&(i.label.setMap(null),delete i.label),v.content){const e={borderColor:v.borderColor,borderWidth:(Number(v.borderWidth)||0)+"px",padding:(Number(v.padding)||0)+"px",borderRadius:(Number(v.borderRadius)||0)+"px",backgroundColor:v.bgColor,color:v.color,fontSize:(v.fontSize||14)+"px",lineHeight:(v.fontSize||14)+"px",marginLeft:(Number(v.anchorX||v.x)||0)+"px",marginTop:(Number(v.anchorY||v.y)||0)+"px"};if("Label"in a)_=new a.Label({position:c,map:n,clickable:!1,content:v.content,style:e}),i.label=_;else if("setLabel"in i)if(Pb()){const t=`<div style="\n margin-left:${e.marginLeft};\n margin-top:${e.marginTop};\n padding:${e.padding};\n background-color:${e.backgroundColor};\n border-radius:${e.borderRadius};\n line-height:${e.lineHeight};\n color:${e.color};\n font-size:${e.fontSize};\n\n ">\n ${v.content}\n <div>`;i.setLabel({content:t,direction:"bottom-right"})}else{const t=o(e);i.setLabel({text:v.content,color:e.color,fontSize:e.fontSize,className:t})}}const w=e.callout||{};let x,S=i.callout;if(w.content||l){Pb()&&w.content&&(w.content=w.content.replaceAll("\n","<br/>"));const o="0px 0px 3px 1px rgba(0,0,0,0.5)";let r=-d/2;if((e.width||e.height)&&(r+=14-d/2),x=w.content?{position:c,map:n,top:g,offsetY:r,content:w.content,color:w.color,fontSize:w.fontSize,borderRadius:w.borderRadius,bgColor:w.bgColor,padding:w.padding,boxShadow:w.boxShadow||o,display:w.display}:{position:c,map:n,top:g,offsetY:r,content:l,boxShadow:o},S)S.setOption(x);else if(Pb()){const e=()=>{""!==t&&s("callouttap",{},{markerId:Number(t)})};S=i.callout=new a.Callout(x,e)}else S=i.callout=new a.Callout(x),S.div.onclick=function(e){""!==t&&s("callouttap",e,{markerId:Number(t)}),e.stopPropagation(),e.preventDefault()},Eb().type===Ib.GOOGLE&&(S.div.ontouchstart=function(e){e.stopPropagation()},S.div.onpointerdown=function(e){e.stopPropagation()})}else S&&(r(S),delete i.callout)},e.iconPath?u.src=lm(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Ob()||(i=new a.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=a.event||a.Event;Ob()||o.addListener(i,"click",()=>{const n=i.callout;if(n&&!n.alwaysVisible)if(Pb())n.visible=!n.visible,n.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(n.set("visible",!n.visible),n.visible){const e=n.div,t=e.parentNode;t.removeChild(e),t.appendChild(e)}t&&s("markertap",{},{markerId:Number(t),latitude:e.latitude,longitude:e.longitude})})}(e),$o(e,l)}),t){const e=ir("addMapChidlContext"),o=ir("removeMapChidlContext"),r={id:t,translate(e){n((t,n,o)=>{const r=e.destination,a=e.duration,s=!!e.autoRotate;let l=Number(e.rotate)||0,c=0;"getRotation"in i&&(c=i.getRotation());const u=i.getPosition(),d=new n.LatLng(r.latitude,r.longitude),h=n.geometry.spherical.computeDistanceBetween(u,d)/1e3/(("number"==typeof a?a:1e3)/36e5),p=n.event||n.Event,f=p.addListener(i,"moving",e=>{const t=e.latLng,n=i.label;n&&n.setPosition(t);const o=i.callout;o&&o.setPosition(t)}),m=p.addListener(i,"moveend",()=>{m.remove(),f.remove(),i.lastPosition=u,i.setPosition(d);const t=i.label;t&&t.setPosition(d);const n=i.callout;n&&n.setPosition(d);const o=e.animationEnd;g(o)&&o()});let y=0;s&&(i.lastPosition&&(y=n.geometry.spherical.computeHeading(i.lastPosition,u)),l=n.geometry.spherical.computeHeading(u,d)-y),"setRotation"in i&&i.setRotation(c+l),"moveTo"in i?i.moveTo(d,h):(i.setPosition(d),p.trigger(i,"moveend",{}))})}};e(r),Ti(()=>o(r))}return Ti(function(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&r(i.callout),i.setMap(null))}),()=>null}});function Lb(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));let[o,i,r,a]=t.match(/(\w{2})/g);const s=parseInt(o,16),l=parseInt(i,16),c=parseInt(r,16);return a?{r:s,g:l,b:c,a:(`0x100${a}`-65536)/255}:{r:s,g:l,b:c,a:1}}const Nb={points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default:()=>[]},level:{type:String,default:""}},Db=sd({name:"MapPolyline",props:Nb,setup(e){let t,n;function o(){t&&t.setMap(null),n&&n.setMap(null)}return ir("onMapReady")((i,r)=>{function a(e){const o=[];e.points.forEach(e=>{let t;t=Pb()?[e.longitude,e.latitude]:Ob()?new r.Point(e.longitude,e.latitude):new r.LatLng(e.latitude,e.longitude),o.push(t)});const a=Number(e.width)||1,{r:s,g:l,b:c,a:u}=Lb(e.color),{r:d,g:h,b:p,a:f}=Lb(e.borderColor),m={map:i,clickable:!1,path:o,strokeWeight:a,strokeColor:e.color||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"},g=Number(e.borderWidth)||0,y={map:i,clickable:!1,path:o,strokeWeight:a+2*g,strokeColor:e.borderColor||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"};"Color"in r?(m.strokeColor=new r.Color(s,l,c,u),y.strokeColor=new r.Color(d,h,p,f)):(m.strokeColor=`rgb(${s}, ${l}, ${c})`,m.strokeOpacity=u,y.strokeColor=`rgb(${d}, ${h}, ${p})`,y.strokeOpacity=f),g&&(n=new r.Polyline(y)),Ob()?(t=new r.Polyline(m.path,m),i.addOverlay(t)):t=new r.Polyline(m)}a(e),$o(e,function(e){o(),a(e)})}),Ti(o),()=>null}}),Rb=sd({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){let t;function n(){t&&t.setMap(null)}return ir("onMapReady")((o,i)=>{function r(e){const n=Pb()||Ob()?[e.longitude,e.latitude]:new i.LatLng(e.latitude,e.longitude),r={map:o,center:n,clickable:!1,radius:e.radius,strokeWeight:Number(e.strokeWidth)||1,strokeDashStyle:"solid"};if(Ob())r.strokeColor=e.color,r.fillColor=e.fillColor||"#000",r.fillOpacity=1;else{const{r:t,g:n,b:o,a:a}=Lb(e.fillColor),{r:s,g:l,b:c,a:u}=Lb(e.color);"Color"in i?(r.fillColor=new i.Color(t,n,o,a),r.strokeColor=new i.Color(s,l,c,u)):(r.fillColor=`rgb(${t}, ${n}, ${o})`,r.fillOpacity=a,r.strokeColor=`rgb(${s}, ${l}, ${c})`,r.strokeOpacity=u)}if(Ob()){let e=new i.Point(r.center[0],r.center[1]);t=new i.Circle(e,r.radius,r),o.addOverlay(t)}else t=new i.Circle(r),Pb()&&o.add(t)}r(e),$o(e,function(e){n(),r(e)})}),Ti(n),()=>null}}),$b={id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},jb=sd({name:"MapControl",props:$b,setup(e){const t=ha(()=>lm(e.iconPath)),n=ha(()=>{let t=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(t+=`width:${e.position.width}px;`),e.position.height&&(t+=`height:${e.position.height}px;`),t}),o=t=>{e.clickable&&e.trigger("controltap",t,{controlId:e.id})};return()=>Vr("div",{class:"uni-map-control"},[Vr("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),Fb=sh("makePhoneCall",({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t())),Vb="__DC_STAT_UUID",Hb=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Wb;function Ub(){if(Wb=Wb||Hb[Vb],!Wb){Wb=Date.now()+""+Math.floor(1e7*Math.random());try{Hb[Vb]=Wb}catch(e){}}return Wb}function qb(){if(!0!==__uniConfig.darkmode)return y(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Qb(){let e,t="0",n="",o="phone";const i=navigator.language;if(dm){e="iOS";const o=cm.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=cm.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(um){e="Android";const o=cm.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=cm.match(/\((.+?)\)/),r=i?i[1].split(";"):cm.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<r.length;e++){const t=r[e];if(t.indexOf("Build")>0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e<a.length;e++)if(a[e].test(t)){o=!0;break}if(!o){n=t.trim();break}}}else if(mm){if(n="iPad",e="iOS",o="pad",t=g(window.BigInt)?"14.0":"13.0",14===parseInt(t)){const e=cm.match(/Version\/(\S*)\b/);e&&(t=e[1])}}else if(hm||pm||fm){n="PC",e="PC",o="pc",t="0";let i=cm.match(/\((.+?)\)/)[1];if(hm){switch(e="Windows",hm[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10"}const n=i&&i.match(/[Win|WOW]([\d]+)/);n&&(t+=` x${n[1]}`)}else if(pm){e="macOS";const n=i&&i.match(/Mac OS X (.+)/)||"";t&&(t=n[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))}else if(fm){e="Linux";const n=i&&i.match(/Linux (.*)/)||"";n&&(t=n[1],-1!==t.indexOf(";")&&(t=t.split(";")[0]))}}else e="Other",t="0",o="unknown";const r=`${e} ${t}`,a=e.toLowerCase();let s="",l=String(function(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const o=e[n],i=new RegExp(`(${o})/(\\S*)\\b`);i.test(cm)&&(s=t[n],l=cm.match(i)[2])}}let c="portrait";const u=void 0===window.screen.orientation?window.orientation:window.screen.orientation.angle;return c=90===Math.abs(u)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:c,model:n,system:r,platform:a,browserName:s.toLowerCase(),browserVersion:l,language:i,deviceType:o,ua:cm,osname:e,osversion:t,theme:qb()}}const Yb=ah(0,()=>{const e=window.devicePixelRatio,t=gm(),n=ym(t),o=bm(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=vm(o);let a=window.innerHeight;const s=tu.top,l={left:tu.left,right:r-tu.right,top:tu.top,bottom:a-tu.bottom,width:r-tu.left-tu.right,height:a-tu.top-tu.bottom},{top:c,bottom:u}=au();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:tu.top,right:tu.right,bottom:tu.bottom,left:tu.left},screenTop:i-a}});let Gb,Xb=!0;function Kb(){Xb&&(Gb=Qb())}const Jb=ah(0,()=>{Kb();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:a,deviceType:s,osname:l,osversion:u}=Gb;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Ub(),deviceOrientation:a,deviceType:s,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:u})}),Zb=ah(0,()=>{Kb();const{theme:e,language:t,browserName:n,browserVersion:o}=Gb;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:pp?pp():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})}),ev=ah(0,()=>{Xb=!0,Kb(),Xb=!1;const e=Yb(),t=Jb(),n=Zb();Xb=!0;const{ua:o,browserName:i,browserVersion:r,osname:a,osversion:s}=Gb,l=c(e,t,n,{ua:o,browserName:i,browserVersion:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}(l)}),tv=sh("getSystemInfo",(e,{resolve:t})=>t(ev())),nv="onNetworkStatusChange";function ov(){av().then(({networkType:e})=>{Pw.invokeOnCallback(nv,{isConnected:"none"!==e,networkType:e})})}function iv(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const rv=oh(nv,()=>{const e=iv();e?e.addEventListener("change",ov):(window.addEventListener("offline",ov),window.addEventListener("online",ov))}),av=sh("getNetworkType",(e,{resolve:t})=>{const n=iv();let o="unknown";return n?(o=n.type,"cellular"===o&&n.effectiveType?o=n.effectiveType.replace("slow-",""):!o&&n.effectiveType?o=n.effectiveType:["none","wifi"].includes(o)||(o="unknown")):!1===navigator.onLine&&(o="none"),t({networkType:o})});let sv=null;const lv=oh(Cp,()=>{uv()}),cv=ih("offCompass",()=>{dv()}),uv=sh("startCompass",(e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!sv){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then(e=>{"granted"===e?(o(),t()):n(`${e}`)}).catch(e=>{n(`${e}`)});o()}t()}else n();function o(){sv=function(e){const t=360-(null!==e.alpha?e.alpha:360);Pw.invokeOnCallback(Cp,{direction:t})},window.addEventListener("deviceorientation",sv,!1)}}),dv=sh("stopCompass",(e,{resolve:t})=>{sv&&(window.removeEventListener("deviceorientation",sv,!1),sv=null),t()});const hv=sh("setClipboardData",(e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise((e,t)=>{var r=e=>{try{s(i.next(e))}catch(n){t(n)}},a=e=>{try{s(i.throw(e))}catch(n){t(n)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,a);s((i=i.apply(n,o)).next())});var n,o,i},0,Sp);const pv=ah(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}),fv=sh("setStorage",({key:e,data:t},{resolve:n,reject:o})=>{try{pv(e,t),n()}catch(i){o(i.message)}});function mv(e){const t=localStorage&&localStorage.getItem(e);if(!y(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=y(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const gv=ah(0,e=>{try{return mv(e)}catch(t){return""}}),yv=ah(0,e=>{localStorage&&localStorage.removeItem(e)}),bv=ah(0,()=>{localStorage&&localStorage.clear()}),vv=sh("openDocument",({filePath:e},{resolve:t})=>(window.open(e),t()),0,kp),_v=sh("hideKeyboard",(e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())});const wv=sh("getImageInfo",({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e},0,Pp),xv={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Sv({count:e,sourceType:t,type:n,extension:o}){pg();const i=document.createElement("input");return i.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${xv[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`}).join(","),e&&e>1&&(i.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}let Cv=null;const kv=sh("chooseFile",({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{Sc();const{t:a}=gc();Cv&&(document.body.removeChild(Cv),Cv=null),Cv=Sv({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Cv),Cv.addEventListener("cancel",()=>{r("chooseFile:fail cancel")}),Cv.addEventListener("change",function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i<t;i++){const t=n.files[i];let r;Object.defineProperty(t,"path",{get:()=>(r=r||Am(t),r)}),i<e&&o.push(t)}}i({get tempFilePaths(){return o.map(({path:e})=>e)},tempFiles:o})}),Cv.click(),fg()||console.warn(a("uni.chooseFile.notUserActivation"))},0,Mp);let Av=null;const Tv=sh("chooseImage",({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{Sc();const{t:r}=gc();Av&&(document.body.removeChild(Av),Av=null),Av=Sv({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Av),Av.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),Av.addEventListener("change",function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o<t;o++){const t=n.files[o];let r;Object.defineProperty(t,"path",{get:()=>(r=r||Am(t),r)}),o<e&&i.push(t)}}o({get tempFilePaths(){return i.map(({path:e})=>e)},tempFiles:i})}),Av.click(),fg()||console.warn(r("uni.chooseFile.notUserActivation"))},0,Ip),Iv={esc:["Esc","Escape"],enter:["Enter"]},Ev=Object.keys(Iv);function Bv(){const e=$n(""),t=$n(!1),n=n=>{if(t.value)return;const o=Ev.find(e=>-1!==Iv[e].indexOf(n.key));o&&(e.value=o),lo(()=>e.value="")};return Si(()=>{document.addEventListener("keyup",n)}),Ai(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const Mv=Vr("div",{class:"uni-mask"},null,-1);function Pv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),fs(oi({setup:()=>()=>(Br(),Lr(e,t,null,16))}))}function Ov(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function zv(e,{onEsc:t,onEnter:n}){const o=$n(e.visible),{key:i,disable:r}=Bv();return $o(()=>e.visible,e=>o.value=e),$o(()=>o.value,e=>r.value=!e),Do(()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()}),o}let Lv=0,Nv="";function Dv(e){let t=Lv;Lv+=e?1:-1,Lv=Math.max(0,Lv),Lv>0?0===t&&(Nv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Nv,Nv="")}const Rv=sd({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Sn({direction:"none"});let n=1,o=0,i=0,r=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,i=t.height}function c(e){const t=e.target.getBoundingClientRect();r=t.width,a=t.height,d(e)}function u(e){const s=n*o>r,l=n*i>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Vr(Og,{style:n,onTouchstart:ld(c),onTouchmove:ld(d),onTouchend:ld(u)},{default:()=>[Vr(qg,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Vr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function $v(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const jv=sd({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Si(()=>Dv(!0)),Ti(()=>Dv(!1));const n=$n(null),o=$n($v(e));let i;function r(){i||lo(()=>{t("close")})}function a(e){o.value=e.detail.current}$o(()=>e.current,()=>o.value=$v(e)),Si(()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",e=>{i=!1,t=e.clientX,o=e.clientY}),e.addEventListener("mouseup",e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(i=!0)})});const s={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return Vr("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:r},[Vr(Cy,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(i=t=e.urls.map(e=>Vr(Ay,null,{default:()=>[Vr(Rv,{src:e},null,8,["src"])]})),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!Nr(i)?t:{default:()=>[t],_:1}),8,["current","onChange"]),Vr("div",{style:s},[yu("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var i}}});let Fv,Vv=null;const Hv=()=>{Vv=null,lo(()=>{null==Fv||Fv.unmount(),Fv=null})},Wv=sh("previewImage",(e,{resolve:t})=>{Vv?c(Vv,e):(Vv=Sn(e),lo(()=>{Fv=Pv(jv,Vv,Hv),Fv.mount(Ov("u-a-p"))})),t()},0,Op);let Uv=null;const qv=sh("chooseVideo",({sourceType:e,extension:t},{resolve:n,reject:o})=>{Sc();const{t:i}=gc();Uv&&(document.body.removeChild(Uv),Uv=null),Uv=Sv({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Uv),Uv.addEventListener("cancel",()=>{o("chooseVideo:fail cancel")}),Uv.addEventListener("change",function(e){const t=e.target.files[0];let o="";const i={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return o=o||Am(this.tempFile),o}});const r=document.createElement("video");if(void 0!==r.onloadedmetadata){const e=Am(t);r.onloadedmetadata=function(){Tm(e),n(c(i,{duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0}))},setTimeout(()=>{r.onloadedmetadata=null,Tm(e),n(i)},300),r.src=e}else n(i)}),Uv.click(),fg()||console.warn(i("uni.chooseFile.notUserActivation"))},0,Ep),Qv=rh("request",({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:a,withCredentials:s,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const p=function(e){const t=Object.keys(e).find(e=>"content-type"===e.toLowerCase());if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(y(t)||t instanceof ArrayBuffer)d=t;else if("json"===p)try{d=JSON.stringify(t)}catch(m){d=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)h(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let f;if(a){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,a=t.signal;f=new Gv(t);const h={method:o,headers:n,body:d,signal:a,credentials:s?"include":"same-origin"},p=setTimeout(function(){f.abort(),u("timeout",{errCode:5})},l);h.signal.addEventListener("abort",function(){clearTimeout(p),u("abort",{errCode:600003})}),window.fetch(e,h).then(e=>{const t=e.status,n=e.headers,o=e.body,a={};n.forEach((e,t)=>{a[t]=e});const s=Yv(a);if(f._emitter.emit("headersReceived",{header:a,statusCode:t,cookies:s}),!o)return void c({data:"",statusCode:t,header:a,cookies:s});const l=o.getReader(),u=[],d=()=>{l.read().then(({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=Kv(n,r,i)),void c({data:n,statusCode:t,header:a,cookies:s})}const o=n;u.push(o),f._emitter.emit("chunkReceived",{data:o}),d()})};d()},e=>{u(e,{errCode:5})})}else{const t=new XMLHttpRequest;f=new Gv(t),t.open(o,e);for(const e in n)h(n,e)&&t.setRequestHeader(e,n[e]);const a=setTimeout(function(){t.onload=t.onabort=t.onerror=null,f.abort(),u("timeout",{errCode:5})},l);t.responseType=r,t.onload=function(){clearTimeout(a);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=Kv(n,r,i)),c({data:n,statusCode:e,header:Xv(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(a),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(a),u(void 0,{errCode:5})},t.withCredentials=s,t.send(d)}return f},0,Rp),Yv=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i<o.length;i++)-1!==o[i].indexOf("Expires=")||-1!==o[i].indexOf("expires=")?n.push(o[i].replace(",","")):n.push(o[i]);return n=n.join(";").split(","),n};class Gv{constructor(e){this._requestOnChunkReceiveCallbackId=0,this._requestOnChunkReceiveCallbacks=new Map,this._requestOnHeadersReceiveCallbackId=0,this._requestOnHeadersReceiveCallbacks=new Map,this._emitter=new ct,this._controller=e}abort(){this._controller&&(this._controller.abort(),delete this._controller)}onHeadersReceived(e){return this._emitter.on("headersReceived",e),this._requestOnHeadersReceiveCallbackId++,this._requestOnHeadersReceiveCallbacks.set(this._requestOnHeadersReceiveCallbackId,e),this._requestOnHeadersReceiveCallbackId}offHeadersReceived(e){if(null==e)return void this._emitter.off("headersReceived");if("function"==typeof e)return void this._requestOnHeadersReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))});const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))});const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Xv(e){const t={};return e.split(ee).forEach(e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])}),t}function Kv(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class Jv{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){g(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Zv=rh("downloadFile",({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,a=new XMLHttpRequest,s=new Jv(a);return a.open("GET",e,!0),Object.keys(t).forEach(e=>{a.setRequestHeader(e,t[e])}),a.responseType="blob",a.onload=function(){clearTimeout(r);const t=a.status,n=this.response;let i;const s=a.getResponseHeader("content-disposition");if(s){const e=s.match(/filename="?(\S+)"?\b/);e&&(i=e[1])}n.name=i||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:Am(n)})},a.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},a.onerror=function(){clearTimeout(r),i("",{errCode:602001})},a.onprogress=function(e){s._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})})},a.send(),r=setTimeout(function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),i("timeout",{errCode:5})},n),s},0,$p);class e_{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){g(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const t_=rh("uploadFile",({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new e_;return p(i)&&i.length||(i=[{name:o,file:t,uri:n}]),Promise.all(i.map(({file:e,uri:t})=>e instanceof Blob?Promise.resolve(km(e)):Cm(t))).then(function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach(e=>{d.append(e,a[e])}),Object.values(i).forEach(({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)}),o.open("POST",e),Object.keys(r).forEach(e=>{o.setRequestHeader(e,r[e])}),o.upload.onprogress=function(e){u._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})})},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout(function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})},s),o.send(d),u._xhr=o)}).catch(()=>{setTimeout(()=>{c("file error")},0)}),u},0,jp),n_=[],o_={open:"",close:"",error:"",message:""};class i_{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach(e=>{this._callbacks[e]=[],n.addEventListener(e,t=>{const{data:n,code:o,reason:i}=t,r="message"===e?{data:n}:"close"===e?{code:o,reason:i}:{};if(this._callbacks[e].forEach(t=>{try{t(r)}catch(n){console.error(`thirdScriptError\n${n};at socketTask.on${M(e)} callback function\n`,n)}}),this===n_[0]&&o_[e]&&Pw.invokeOnCallback(o_[e],r),"error"===e||"close"===e){const e=n_.indexOf(this);e>=0&&n_.splice(e,1)}})});["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach(e=>{Object.defineProperty(this,e,{get:()=>n[e]})})}catch(i){o=i}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw Re(e,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");n.send(t),Re(e,"sendSocketMessage:ok")}catch(o){Re(e,{errMsg:`sendSocketMessage:fail ${o}`,errCode:602001})}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;y(o)?t.close(n,o):t.close(n),Re(e,"closeSocket:ok")}catch(n){Re(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const r_=rh("connectSocket",({url:e,protocols:t},{resolve:n,reject:o})=>new i_(e,t,(e,t)=>{e?o(e.toString(),{errCode:600009}):(n_.push(t),n())}),0,Fp),a_=sh("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const a=Eb();new Promise((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>e({coords:t.coords}),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))}).catch(e=>new Promise((t,n)=>{a.type===Ib.QQ?Sb(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${a.key}`,{callback:"callback"},e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))},()=>n(new Error("network error"))):a.type===Ib.GOOGLE?Qv({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${a.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):a.type===Ib.AMAP?Ab([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))})})}):n(e)})).then(({coords:t,skip:n})=>{(function(e,t,n){const o=Eb();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{Sb(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)},()=>e(t))}):"AMap"===o.type?new Promise(e=>{Ab([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then(e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})}).catch(e=>{r(e.message)})}).catch(e=>{r(e.message||JSON.stringify(e))})},0,Tp),s_=sh("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===Tu(ye,{from:e.from||"navigateBack"})&&(o=!1),o?(lb().$router.go(-e.delta),t()):n(ye)},0,Jp),l_=sh(Hp,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Rf.handledBeforeEntryPageRoutes)return Cf({type:Hp,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);$f.push({args:{type:Hp,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Yp);function c_(e){__uniConfig.darkmode&&Pw.on(ce,e)}function u_(e){Pw.off(ce,e)}function d_(e){let t={};return __uniConfig.darkmode&&(t=ht(e,__uniConfig.themeConfig,qb())),__uniConfig.darkmode?t:e}function h_(e,t){const n=Tn(e),o=n?Sn(d_(e)):d_(e);return __uniConfig.darkmode&&n&&$o(e,e=>{const t=d_(e);for(const n in t)o[n]=t[n]}),t&&c_(t),o}const p_={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},f_=oi({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=$n(""),o=()=>a.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),a=zv(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),s=function(e){const t=$n(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=p_[e].cancelColor})(e,t)};return Do(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===qb()&&n({theme:"dark"}),c_(n))):u_(n)}),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=o,Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("uni-modal",{onTouchmove:nu},[Mv,Vr("div",{class:"uni-modal"},[t?Vr("div",{class:"uni-modal__hd"},[Vr("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?Vr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Vr("div",{class:"uni-modal__bd",onTouchmovePassive:ou,textContent:o},null,40,["onTouchmovePassive","textContent"]),Vr("div",{class:"uni-modal__ft"},[l&&Vr("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),Vr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[La,a.value]])]})}}});let m_;const g_=Le(()=>{Pw.on("onHidePopup",()=>m_.visible=!1)});let y_;function b_(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&m_.editable&&(o.content=t),y_&&y_(o)}const v_=sh("showModal",(e,{resolve:t})=>{g_(),y_=t,m_?(c(m_,e),m_.visible=!0):(m_=Sn(e),lo(()=>(Pv(f_,m_,b_).mount(Ov("u-a-m")),lo(()=>m_.visible=!0))))},0,cf),__={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==uf.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},w_="uni-toast__icon",x_={light:"#fff",dark:"rgba(255,255,255,0.9)"},S_=e=>x_[e],C_=oi({name:"Toast",props:__,setup(e){_c(),wc();const{Icon:t}=function(e){const t=$n(S_(qb())),n=({theme:e})=>t.value=S_(e);Do(()=>{e.visible?c_(n):u_(n)});const o=ha(()=>{switch(e.icon){case"success":return Vr(yu(fu,t.value,38),{class:w_});case"error":return Vr(yu(mu,t.value,38),{class:w_});case"loading":return Vr("i",{class:[w_,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=zv(e,{});return()=>{const{mask:o,duration:i,title:r,image:a}=e;return Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("uni-toast",{"data-duration":i},[o?Vr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:nu},null,40,["onTouchmove"]):"",a||t.value?Vr("div",{class:"uni-toast"},[a?Vr("img",{src:a,class:w_},null,10,["src"]):t.value,Vr("p",{class:"uni-toast__content"},[r])]):Vr("div",{class:"uni-sample-toast"},[Vr("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[La,n.value]])]})}}});let k_,A_,T_="";const I_=gt();function E_(e){k_?c(k_,e):(k_=Sn(c(e,{visible:!1})),lo(()=>{I_.run(()=>{$o([()=>k_.visible,()=>k_.duration],([e,t])=>{if(e){if(A_&&clearTimeout(A_),"onShowLoading"===T_)return;A_=setTimeout(()=>{z_("onHideToast")},t)}else A_&&clearTimeout(A_)})}),Pw.on("onHidePopup",()=>z_("onHidePopup")),Pv(C_,k_,()=>{}).mount(Ov("u-a-t"))})),setTimeout(()=>{k_.visible=!0},10)}const B_=sh("showToast",(e,{resolve:t,reject:n})=>{E_(e),T_="onShowToast",t()},0,df),M_={icon:"loading",duration:1e8,image:""},P_=sh("showLoading",(e,{resolve:t,reject:n})=>{c(e,M_),E_(e),T_="onShowLoading",t()},0,lf),O_=sh("hideLoading",(e,{resolve:t,reject:n})=>{z_("onHideLoading"),t()});function z_(e){const{t:t}=gc();if(!T_)return;let n="";if("onHideToast"===e&&"onShowToast"!==T_?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==T_&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);T_="",setTimeout(()=>{k_.visible=!1},10)}function L_(e){const t=$n(0),n=$n(0),o=ha(()=>t.value>=500&&n.value>=500),i=ha(()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},i=t.content,r=t.triangle,a=e.popover;function s(e){return Number(e)||0}if(o.value&&a){c(r,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=s(a.left),t=s(a.width?a.width:300),o=s(a.top),l=s(a.height),u=e+t/2;i.transform="none !important";const d=Math.max(0,u-t/2);i.left=`${d}px`,a.width&&(i.width=`${t}px`);let h=Math.max(12,u-d);h=Math.min(t-12,h),r.left=`${h}px`;const p=n.value/2;o+l-p>p-o?(i.top="auto",i.bottom=n.value-o+6+"px",r.bottom="-6px",r["border-width"]="6px 6px 0 6px",r["border-color"]="#fcfcfd transparent transparent transparent"):(i.top=`${o+l+6}px`,r.top="-6px",r["border-width"]="0 6px 6px 6px",r["border-color"]="transparent transparent #fcfcfd transparent")}return t});return Si(()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:i}=ev();t.value=e,n.value=o+(i||0)};window.addEventListener("resize",e),e(),Ti(()=>{window.removeEventListener("resize",e)})}),{isDesktop:o,popupStyle:i}}const N_={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const D_=oi({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){vc();const n=$n(260),o=$n(0),i=$n(0),r=$n(0),a=$n(0),s=$n(null),l=$n(null),{t:c}=gc(),{_close:u}=function(e,t){function n(e){t("close",e)}const{key:o,disable:i}=Bv();return $o(()=>e.visible,e=>i.value=!e),Do(()=>{const{value:e}=o;"esc"===e&&n&&n(-1)}),{_close:n}}(e,t),{popupStyle:d}=L_(e);let h;function p(e){const t=r.value+e.deltaY;Math.abs(t)>10?(a.value+=t/3,a.value=a.value>=o.value?o.value:a.value<=0?0:a.value,h.scrollTo(a.value)):r.value=t,e.preventDefault()}Si(()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=ay(s.value,{enableY:!0,friction:new ey(1e-4),spring:new oy(2,90,20),onScroll:e=>{a.value=e.target.scrollTop}});h=e,Rg(s.value,i=>{if(e)switch(i.detail.state){case"start":t(i);break;case"move":n(i);break;case"end":case"cancel":o(i)}},!0)}),$o(()=>e.visible,()=>{lo(()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),h.update(),s.value&&(o.value=s.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach(e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY}),e.addEventListener("touchend",e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-n)<t&&Math.abs(i.clientY-o)<t){const t=e.target,n=e.currentTarget,o=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t,currentTarget:n});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(e=>{o[e]=i[e]}),e.target.dispatchEvent(o)}})}(e)})})});const f=function(e){const t=Sn({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach(n=>{t[n]=N_[e][n]})}(e,t)};return Do(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:qb()}),c_(n))):u_(n)}),t}(e);return()=>Vr("uni-actionsheet",{onTouchmove:nu},[Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[La,e.visible]])]}),Vr("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[Vr("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?Vr(Cr,null,[Vr("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),Vr("div",{class:"uni-actionsheet__title"},[e.title])]):"",Vr("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[Vr("div",{ref:s},[e.itemList.map((e,t)=>Vr("div",{key:t,style:{color:f.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(t)},[e],12,["onClick"]))],512)])],40,["onWheel"]),Vr("div",{class:"uni-actionsheet__action"},[Vr("div",{style:{color:f.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),Vr("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let R_,$_,j_;const F_=Le(()=>{Pw.on("onHidePopup",()=>j_.visible=!1)});function V_(e){-1===e?$_&&$_("cancel"):R_&&R_({tapIndex:e})}const H_=sh("showActionSheet",(e,{resolve:t,reject:n})=>{F_(),R_=t,$_=n,j_?(c(j_,e),j_.visible=!0):(j_=Sn(e),lo(()=>(Pv(D_,j_,V_).mount(Ov("u-s-a-s")),lo(()=>j_.visible=!0))))},0,sf),W_=sh("loadFontFace",({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:a,featureSettings:s}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),a&&r.push(`font-variant:${a}`),s&&r.push(`font-feature-settings:${s}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()})})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${lm(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${lm(t.substring(4,t.length-1))}')`:lm(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function U_(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Pw.emit("onNavigationBarChange",{titleText:t})}Do(t),hi(t)}const q_=sh(rf,(e,{resolve:t,reject:n})=>{!function(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:i,timingFunc:a}=o;e&&(r.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(r.backgroundColor=t),r.duration=i+"ms",r.timingFunc=a;break;case"showNavigationBarLoading":r.loading=!0;break;case"hideNavigationBarLoading":r.loading=!1;break;case rf:const{title:s}=n;r.titleText=s}o()}(wu(),rf,e,t,n)}),Q_=sh("pageScrollTo",({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t){if(y(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const n=document.documentElement,{clientHeight:o,scrollHeight:i}=n;if(e=Math.min(e,i-o),0===t)return void(n.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const r=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+n/t*10),r(t-10)})};r(t)}(t||e||0,n),o()},0,af),Y_=sh(hf,(e,{resolve:t})=>{Pw.invokeViewMethod(hf,{},xu()),t()}),G_=sd({name:"TabBar",setup(){const e=$n([]),t=Tf(),n=h_(t,()=>{const e=d_(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath})});!function(e,t){function n(){let n=[];n=e.list.filter(e=>!1!==e.visible),t.value=n}$n(c({type:"midButton"},e.midButton)),Do(n)}(n,e),function(e){$o(()=>e.shown,t=>{lu({"--window-bottom":zf(t?parseInt(e.height):0)})})}(n);const o=function(e,t,n){return Do(()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex(t=>t.pagePath===e);t.selectedIndex=i}}),(t,n)=>()=>{const{pagePath:o,text:i}=t;let r=ze(o);r===__uniRoutes[0].alias&&(r="/"),e.path!==r?vf({from:"tabBar",url:r,tabBarText:i}):Tu("onTabItemTap",{index:n,text:i,pagePath:o})}}(Gl(),n,e),{style:i,borderStyle:r,placeholderStyle:a}=function(e){const t=ha(()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||Mf&&n&&"none"!==n&&(t=Z_[n]),{backgroundColor:t||X_,backdropFilter:"none"!==n?"blur(10px)":n}}),n=ha(()=>{const{borderStyle:t,borderColor:n}=e;return n&&y(n)?{backgroundColor:n}:{backgroundColor:ew[t]||ew.black}}),o=ha(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Si(()=>{n.iconfontSrc&&W_({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})}),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map((n,a)=>{const s=o===a;return function(e,t,n,o,i,r,a,s){return Vr("div",{key:a,class:"uni-tabbar__item",onClick:s(i,a)},[tw(e,t||"",n,o,i,r)],8,["onClick"])}(s?i:r,s&&n.selectedIconPath||n.iconPath||"",n.iconfont?s&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?s&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,a,t)})}(n,o,e);return Vr("uni-tabbar",{class:"uni-tabbar-"+n.position},[Vr("div",{class:"uni-tabbar",style:i.value},[Vr("div",{class:"uni-tabbar-border",style:r.value},null,4),t],4),Vr("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});const X_="#f7f7fa",K_="rgb(0, 0, 0, 0.8)",J_="rgb(250, 250, 250, 0.8)",Z_={dark:K_,light:J_,extralight:J_},ew={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function tw(e,t,n,o,i,r){const{height:a}=r;return Vr("div",{class:"uni-tabbar__bd",style:{height:a}},[n?ow(n,o||K_,i,r):t&&nw(t,i,r),i.text&&iw(e,i,r),i.redDot&&rw(i.badge)],4)}function nw(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n;return Vr("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:r,height:r}},["midButton"!==o&&Vr("img",{src:lm(e)},null,8,["src"])],6)}function ow(e,t,n,o){var i;const{type:r,text:a}=n,{iconWidth:s}=o,l="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),c={width:s,height:s},u={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||s,color:t};return Vr("div",{class:l,style:c},["midButton"!==r&&Vr("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function iw(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:a}=n;return Vr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"}},[i],4)}function rw(e){return Vr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const aw="0px",sw=sd({name:"Layout",setup(e,{emit:t}){const n=$n(null);su({"--status-bar-height":aw,"--top-window-height":aw,"--window-left":aw,"--window-right":aw,"--window-margin":aw,"--tab-bar-height":aw});const o=function(){const e=Gl();return{routeKey:ha(()=>Xf("/"+e.meta.route,Sd())),isTabBar:ha(()=>e.meta.isTabBar),routeCache:Jf}}(),{layoutState:i,windowState:r}=function(){xd();{const e=Sn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return $o(()=>e.marginWidth,e=>su({"--window-margin":e+"px"})),$o(()=>e.leftWindowWidth+e.marginWidth,e=>{su({"--window-left":e+"px"})}),$o(()=>e.rightWindowWidth+e.marginWidth,e=>{su({"--window-right":e+"px"})}),{layoutState:e,windowState:ha(()=>({}))}}}();!function(e,t){const n=xd();function o(){const o=document.body.clientWidth,i=Uf();let r={};if(i.length>0){r=Df(i[i.length-1]).meta}else{const e=Ou(n.path,!0);e&&(r=e.meta)}const a=parseInt(String((h(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=o>a,s&&a?(e.marginWidth=(o-a)/2,lo(()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")})):(e.marginWidth=0,lo(()=>{const e=t.value;e&&e.removeAttribute("style")}))}$o([()=>n.path],o),Si(()=>{o(),window.addEventListener("resize",o)})}(i,n);const a=function(){const e=xd(),t=Tf(),n=ha(()=>e.meta.isTabBar&&t.shown);return su({"--tab-bar-height":t.height}),n}(),s=function(e){const t=$n(!1);return ha(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}(a);return()=>{const e=function(e){const t=function({routeKey:e,isTabBar:t,routeCache:n}){return Vr(Ql,null,{default:Co(({Component:o})=>[(Br(),Lr(ui,{matchBy:"key",cache:n},[(Br(),Lr(Po(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}(e);return t}(o),t=function(e){return Wo(Vr(G_,null,null,512),[[La,e.value]])}(a);return Vr("uni-app",{ref:n,class:s.value},[e,t],2)}}});const lw=sh(zp,lh(zp)),cw="saveFile",uw=sh(cw,lh(cw)),dw="MAP_LOCATION",hw=sd({name:"MapLocation",setup(){const e=Sn({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){a_({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),cv(t)};const i=ir("onMapReady");let r;lv(t),i(n),Ti(o);const a=ir("addMapChidlContext"),s=ir("removeMapChidlContext"),l={id:dw,state:e};a(l),Ti(()=>s(l))}return()=>e.latitude?Vr(zb,Gr({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII="},e),null,16,["iconPath"]):null}}),pw=sd({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return ir("onMapReady")((n,o,i)=>{function r(){const{points:i,strokeWidth:r,strokeColor:a,dashArray:s,fillColor:l,zIndex:c}=e,u=i.map(e=>{const{latitude:t,longitude:n}=e;return Pb()?[n,t]:Ob()?new o.Point(n,t):new o.LatLng(t,n)}),{r:d,g:h,b:p,a:f}=Lb(l),{r:m,g:g,b:y,a:b}=Lb(a),v={clickable:!0,cursor:"crosshair",editable:!1,map:n,fillColor:"",path:u,strokeColor:"",strokeDashStyle:s.some(e=>e>0)?"dash":"solid",strokeWeight:r,visible:!0,zIndex:c};o.Color?(v.fillColor=new o.Color(d,h,p,f),v.strokeColor=new o.Color(m,g,y,b)):(v.fillColor=`rgb(${d}, ${h}, ${p})`,v.fillOpacity=f,v.strokeColor=`rgb(${m}, ${g}, ${y})`,v.strokeOpacity=b),t?t.setOptions(v):Ob()?(t=new o.Polygon(v.path,v),n.addOverlay(t)):t=new o.Polygon(v)}r(),$o(e,r)}),Ti(()=>{t.setMap(null)}),()=>null}});function fw(e){const t=[];return p(e)&&e.forEach(e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})}),t}function mw(e,t,n){return Ob()?function(e,t,n){return new e.Point(n,t)}(e,t,n):Pb()?function(e,t,n){return new e.LngLat(n,t)}(e,t,n):function(e,t,n){return new e.LatLng(t,n)}(e,t,n)}function gw(e){return"getLat"in e?e.getLat():Ob()?e.lat:e.lat()}function yw(e){return"getLng"in e?e.getLng():Ob()?e.lng:e.lng()}function bw(e,t,n){const o=cd(t,n),i=$n(null);let r,a;const s=Sn({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:fw(e.includePoints)}),l=[];let u,d;function h(e){u?e(a,r,o):l.push(e)}const p=[];function f(e){d?e():l.push(e)}const m={};function g(){const e=a.getCenter();return{scale:a.getZoom(),centerLocation:{latitude:gw(e),longitude:yw(e)}}}function y(){if(Pb()){const e=[];s.includePoints.forEach(t=>{e.push([t.longitude,t.latitude])});const t=new r.Bounds(...e);a.setBounds(t)}else if(Ob());else{const e=new r.LatLngBounds;s.includePoints.forEach(({latitude:t,longitude:n})=>{const o=new r.LatLng(t,n);e.extend(o)}),a.fitBounds(e)}}function b(){const t=i.value,l=mw(r,s.latitude,s.longitude),u=r.event||r.Event,h=new r.Map(t,{center:l,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(Ob()&&(h.centerAndZoom(l,Number(e.scale)),h.enableScrollWheelZoom(),h._printLog&&h._printLog("uniapp")),$o(()=>e.scale,e=>{h.setZoom(Number(e)||16)}),f(()=>{s.includePoints.length&&(y(),function(){const e=mw(r,s.latitude,s.longitude);a.setCenter(e)}())}),Ob())h.addEventListener("click",()=>{o("tap",{},{}),o("click",{},{})}),h.addEventListener("dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),h.addEventListener("dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},g()))});else{const e=u.addListener(h,"bounds_changed",()=>{e.remove(),d=!0,p.forEach(e=>e()),p.length=0});u.addListener(h,"click",()=>{o("tap",{},{}),o("click",{},{})}),u.addListener(h,"dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),u.addListener(h,"dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},g()))});const t=()=>{n("update:scale",h.getZoom()),o("regionchange",{},c({type:"end",causedBy:"scale"},g()))};u.addListener(h,"zoom_changed",t),u.addListener(h,"zoomend",t),u.addListener(h,"center_changed",()=>{const e=h.getCenter(),t=gw(e),o=yw(e);n("update:latitude",t),n("update:longitude",o)})}return h}$o([()=>e.latitude,()=>e.longitude],([e,t])=>{const n=Number(e),o=Number(t);if((n!==s.latitude||o!==s.longitude)&&(s.latitude=n,s.longitude=o,a)){const e=mw(r,s.latitude,s.longitude);a.setCenter(e)}}),$o(()=>e.includePoints,e=>{s.includePoints=fw(e),d&&y()},{deep:!0});try{$y((e,t={})=>{switch(e){case"getCenterLocation":h(()=>{const n=a.getCenter();Re(t,{latitude:gw(n),longitude:yw(n),errMsg:`${e}:ok`})});break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=m[dw];e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(s.latitude=n,s.longitude=o,a){const e=mw(r,n,o);a.setCenter(e)}h(()=>{Re(t,`${e}:ok`)})}else Re(t,`${e}:fail`)}break;case"translateMarker":h(()=>{const n=m[t.markerId];if(n){try{n.translate(t)}catch(o){Re(t,`${e}:fail ${o.message}`)}Re(t,`${e}:ok`)}else Re(t,`${e}:fail not found`)});break;case"includePoints":s.includePoints=fw(t.includePoints),(d||Pb())&&y(),f(()=>{Re(t,`${e}:ok`)});break;case"getRegion":f(()=>{const n=a.getBounds(),o=n.getSouthWest(),i=n.getNorthEast();Re(t,{southwest:{latitude:gw(o),longitude:yw(o)},northeast:{latitude:gw(i),longitude:yw(i)},errMsg:`${e}:ok`})});break;case"getScale":h(()=>{Re(t,{scale:a.getZoom(),errMsg:`${e}:ok`})})}},Fy(),!0)}catch(v){}return Si(()=>{Ab(e.libraries,e=>{r=e,a=b(),u=!0,l.forEach(e=>e(a,r,o)),l.length=0,o("updated",{},{})})}),or("onMapReady",h),or("addMapChidlContext",function(e){m[e.id]=e}),or("removeMapChidlContext",function(e){delete m[e.id]}),{state:s,mapRef:i,trigger:o}}const vw=ad({name:"Map",props:{id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},includePoints:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]}},emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=$n(null),{mapRef:i,trigger:r}=bw(e,o,t);return()=>Vr("uni-map",{ref:o,id:e.id},[Vr("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map(e=>Vr(zb,Gr({key:e.id},e),null,16)),e.polyline.map(e=>Vr(Db,e,null,16)),e.circles.map(e=>Vr(Rb,e,null,16)),e.controls.map(e=>Vr(jb,Gr(e,{trigger:r}),null,16,["trigger"])),e.showLocation&&Vr(hw,null,null),e.polygons.map(e=>Vr(pw,e,null,16)),Vr("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}});function _w(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Nr(e)}function ww(e){if(e.mode===Cw.TIME)return"00:00";if(e.mode===Cw.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case kw.YEAR:return t.toString();case kw.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function xw(e){if(e.mode===Cw.TIME)return"23:59";if(e.mode===Cw.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case kw.YEAR:return t.toString();case kw.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function Sw(e,t,n,o){const i=e.mode===Cw.DATE?"-":":",r=e.mode===Cw.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Cw.TIME)a=2;else switch(e.fields){case kw.YEAR:a=1;break;case kw.MONTH:a=2;break;default:a=3}const s=String(n).split(i);let l=[];for(let c=0;c<a;c++){const e=s[c];l.push(r[c].indexOf(e))}return l.indexOf(-1)>=0&&(l=o?Sw(e,t,o):l.map(()=>0)),l}const Cw={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},kw={YEAR:"year",MONTH:"month",DAY:"day"},Aw={PICKER:"picker",SELECT:"select"},Tw=ad({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Cw.SELECTOR,validator:e=>Object.values(Cw).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>ww(e)},end:{type:String,default:e=>xw(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){kc();const{t:o}=gc(),i=$n(null),r=$n(null),a=$n(null),s=$n(null),l=$n(!1),{state:c,rangeArray:u}=function(e){const t=Sn({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=ha(()=>{let n=e.range;switch(e.mode){case Cw.SELECTOR:return[n];case Cw.MULTISELECTOR:return n;case Cw.TIME:return t.timeArray;case Cw.DATE:{const n=t.dateArray;switch(e.fields){case kw.YEAR:return[n[0]];case kw.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]});return{state:t,rangeArray:n}}(e),d=cd(i,t),{system:h,selectorTypeComputed:f,_show:m,_l10nColumn:g,_l10nItem:y,_input:b,_fixInputPosition:v,_pickerViewChange:_,_cancel:w,_change:x,_resetFormData:S,_getFormData:C,_createTime:k,_createDate:A,_setValueSync:T}=function(e,t,n,o,i,r,a){const s=function(){const e=$n(!1);return e.value=Iw(),e}(),l=function(){const e=$n("");return e.value=Ew(),e}(),c=ha(()=>{const t=e.selectorType;return Object.values(Aw).includes(t)?t:s.value?Aw.PICKER:Aw.SELECT}),u=ha(()=>e.mode===Cw.DATE&&!Object.values(kw).includes(e.fields)&&t.isDesktop?l.value:""),d=ha(()=>Sw(e,t,e.start,ww(e))),h=ha(()=>Sw(e,t,e.end,xw(e)));function f(n){if(e.disabled)return;t.valueChangeSource="";let o=i.value,r=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.style.display="block";const a=r.getBoundingClientRect();t.popover={top:a.top,left:a.left,width:a.width,height:a.height},setTimeout(()=>{t.visible=!0},20)}function m(){return{value:t.valueSync,key:e.name}}function g(){switch(e.mode){case Cw.SELECTOR:t.valueSync=0;break;case Cw.MULTISELECTOR:t.valueSync=e.value.map(e=>0);break;case Cw.DATE:case Cw.TIME:t.valueSync=""}}function y(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function b(){let t=(new Date).getFullYear(),n=t-150,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&t<n&&(n=t)}if(e.end){const t=new Date(e.end).getFullYear();!isNaN(t)&&t>o&&(o=t)}return{start:n,end:o}}function v(){let e=[];const n=b();for(let t=n.start,r=n.end;t<=r;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let i=[];for(let t=1;t<=31;t++)i.push((t<10?"0":"")+t);t.dateArray.push(e,o,i)}function _(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;n<e.length&&n<t.length;n++)e[n]=t[n]}function S(){let n=e.value;switch(e.mode){case Cw.MULTISELECTOR:{p(n)||(n=t.valueArray),p(t.valueSync)||(t.valueSync=[]);const o=t.valueSync.length=Math.max(n.length,e.range.length);for(let i=0;i<o;i++){const o=Number(n[i]),r=Number(t.valueSync[i]),a=isNaN(o)?isNaN(r)?0:r:o,s=e.range[i]?e.range[i].length-1:0;t.valueSync.splice(i,1,a<0||a>s?0:a)}}break;case Cw.TIME:case Cw.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function C(){let n,o=t.valueSync;switch(e.mode){case Cw.MULTISELECTOR:n=[...o];break;case Cw.TIME:n=Sw(e,t,o,De({mode:Cw.TIME}));break;case Cw.DATE:n=Sw(e,t,o,De({mode:Cw.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function k(){let n=t.valueArray;switch(e.mode){case Cw.SELECTOR:return n[0];case Cw.MULTISELECTOR:return n.map(e=>e);case Cw.TIME:return t.valueArray.map((e,n)=>t.timeArray[n][e]).join(":");case Cw.DATE:return t.valueArray.map((e,n)=>t.dateArray[n][e]).join("-")}}function A(){I(),t.valueChangeSource="click";const e=k();t.valueSync=p(e)?e.map(e=>e):e,n("change",{},{value:e})}function T(e){if("firefox"===u.value&&e){const{top:n,left:o,width:i,height:r}=t.popover,{pageX:a,pageY:s}=e;if(a>o&&a<o+i&&s>n&&s<n+r)return}I(),n("cancel",{},{})}function I(){t.visible=!1,setTimeout(()=>{let e=i.value;e.remove(),o.value.prepend(e),e.style.display="none"},260)}function E(){e.mode===Cw.SELECTOR&&c.value===Aw.SELECT&&(r.value.scrollTop=34*t.valueArray[0])}function B(e){const n=e.target;t.valueSync=n.value,lo(()=>{A()})}function M(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;a.value.style.left=e.clientX-t.left-1.5*n+"px",a.value.style.top=e.clientY-t.top-.5*n+"px"}}function P(e){t.valueArray=O(e.detail.value,!0)}function O(t,n){const{getLocale:o}=gc();if(e.mode===Cw.DATE){const i=o();if(!i.startsWith("zh"))switch(e.fields){case kw.YEAR:return t;case kw.MONTH:return[t[1],t[0]];default:switch(i){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function z(t,n){const{getLocale:o}=gc();if(e.mode===Cw.DATE){const i=o();if(i.startsWith("zh")){return t+["å¹´","æ","æ¥"][n]}if(e.fields!==kw.YEAR&&n===(e.fields===kw.MONTH||"es"!==i&&"fr"!==i?0:1)){let e;switch(i){case"es":e=["enero","febrero","marzo","abril","mayo","junio","ââjulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return $o(()=>t.visible,e=>{e?(clearTimeout(Bw),t.contentVisible=e,E()):Bw=setTimeout(()=>{t.contentVisible=e},300)}),$o([()=>e.mode,()=>e.value,()=>e.range],S,{deep:!0}),$o(()=>t.valueSync,C,{deep:!0}),$o(()=>t.valueArray,o=>{if(e.mode===Cw.TIME||e.mode===Cw.DATE){const n=e.mode===Cw.TIME?_:w,o=t.valueArray,i=d.value,r=h.value;if(e.mode===Cw.DATE){const e=t.dateArray,n=e[2].length,i=Number(e[2][o[2]])||1,r=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${i}`).getDate();r<i&&(o[2]-=r+n-i)}n(o)<n(i)?x(o,i):n(o)>n(r)&&x(o,r)}o.forEach((o,i)=>{o!==t.oldValueArray[i]&&(t.oldValueArray[i]=o,e.mode===Cw.MULTISELECTOR&&n("columnchange",{},{column:i,value:o}))})}),{selectorTypeComputed:c,system:u,_show:f,_cancel:T,_change:A,_l10nColumn:O,_l10nItem:z,_input:B,_resetFormData:g,_getFormData:m,_createTime:y,_createDate:v,_setValueSync:S,_fixInputPosition:M,_pickerViewChange:P}}(e,c,d,i,r,a,s);!function(e,t,n){const{key:o,disable:i}=Bv();Do(()=>{i.value=!e.visible}),$o(o,e=>{"esc"===e?t():"enter"===e&&n()})}(c,w,x),function(e,t){const n=ir(pd,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),Ai(()=>{n.removeField(o)})}}(S,C),k(),A(),T();const I=L_(c);return Do(()=>{c.isDesktop=I.isDesktop.value,c.popupStyle=I.popupStyle.value}),Ai(()=>{r.value&&r.value.remove()}),Si(()=>{l.value=!0}),()=>{let t;const{visible:d,contentVisible:p,valueArray:S,popupStyle:C,valueSync:k}=c,{rangeKey:A,mode:T,start:I,end:E}=e,B=hd(e,"disabled");return Vr("uni-picker",Gr({ref:i},B,{onClick:ld(m)}),[l.value?Vr("div",{ref:r,class:["uni-picker-container",`uni-${T}-${f.value}`],onWheel:nu,onTouchmove:nu},[Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("div",{class:"uni-mask uni-picker-mask",onClick:ld(w),onMousemove:v},null,40,["onClick","onMousemove"]),[[La,d]])]}),h.value?null:Vr("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:C.content},[Vr("div",{class:"uni-picker-header",onClick:ou},[Vr("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:ld(w)},[o("uni.picker.cancel")],8,["onClick"]),Vr("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:x},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),p?Vr(Zg,{value:g(S),class:"uni-picker-content",onChange:_},_w(t=Pi(g(u.value),(e,t)=>{let n;return Vr(sy,{key:t},_w(n=Pi(e,(e,n)=>Vr("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[A]||"":y(e,t)])))?n:{default:()=>[n],_:1})}))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,Vr("div",{ref:a,class:"uni-picker-select",onWheel:ou,onTouchmove:ou},[Pi(u.value[0],(e,t)=>Vr("div",{key:t,class:["uni-picker-item",{selected:S[0]===t}],onClick:()=>{S[0]=t,x()}},["object"==typeof e?e[A]||"":e],10,["onClick"]))],40,["onWheel","onTouchmove"]),Vr("div",{style:C.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,Vr("div",null,[n.default&&n.default()]),h.value?Vr("div",{class:"uni-picker-system",onMousemove:ld(v)},[Vr("input",{class:["uni-picker-system_input",h.value],ref:s,value:k,type:T,tabindex:"-1",min:I,max:E,onChange:e=>{b(e),ou(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});const Iw=()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0;const Ew=()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};let Bw;const Mw=c(Lc,{publishHandler(e,t,n){Pw.subscribeHandler(e,t,n)}}),Pw=c(Qu,{publishHandler(e,t,n){Mw.subscribeHandler(e,t,n)}}),Ow=sd({name:"PageHead",setup(){const e=$n(null),t=_d(),n=h_(t.navigationBar,()=>{const e=d_(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor}),{clazz:o,style:i}=function(e){const t=ha(()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i}),n=ha(()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc}));return{clazz:t,style:n}}(n);return()=>{const r=function(e,t){if(!t)return Vr("div",{class:"uni-page-head-btn",onClick:Lw},[yu(gu,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),a=n.type||"default",s="transparent"!==a&&"float"!==a&&Vr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Vr("uni-page-head",{"uni-page-head-type":a},[Vr("div",{ref:e,class:o.value,style:i.value},[Vr("div",{class:"uni-page-head-hd"},[r]),zw(n),Vr("div",{class:"uni-page-head-ft"},[])],6),s],8,["uni-page-head-type"])}}});function zw(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return Vr("div",{class:"uni-page-head-bd"},[Vr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?Vr("i",{class:"uni-loading"},null):i?Vr("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Lw(){1===Wf().length?Sf({url:"/"}):s_({from:"backbutton",success(){}})}const Nw={name:"PageRefresh",setup(){const{pullToRefresh:e}=_d();return{offset:e.offset,color:e.color}}},Dw=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Rw={class:"uni-page-refresh-inner"},$w=["fill"],jw=[Fr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),Fr("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Fw={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Vw=["stroke"];const Hw=Dw(Nw,[["render",function(e,t,n,o,i,r){return Br(),zr("uni-page-refresh",null,[Fr("div",{style:We({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[Fr("div",Rw,[(Br(),zr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},jw,8,$w)),(Br(),zr("svg",Fw,[Fr("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Vw)]))])],4)])}]]);function Ww(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter(e=>e.identifier===t)[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const Uw="pulling",qw="reached",Qw="aborting",Yw="refreshing",Gw="restoring";function Xw(e){const t=_d(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let a,s,l,c,u,d,h,p;$y(()=>{t.enablePullDownRefresh&&(p||(p=Yw,y(),setTimeout(()=>{x()},50)))},"startPullDownRefresh",!1,n),$y(()=>{t.enablePullDownRefresh&&p===Yw&&(b(),p=Gw,y(),function(e){if(!s)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}(()=>{b(),p=f=m=null}))},hf,!1,n),Si(()=>{a=e.value.$el,s=a.querySelector(".uni-page-refresh"),l=s.style,c=s.querySelector(".uni-page-refresh-inner").style});let f=null,m=null;function g(e){p&&a&&a.classList[e]("uni-page-refresh--"+p)}function y(){g("add")}function b(){g("remove")}const v=ld(e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,h=!([Qw,Yw,Gw].indexOf(p)>=0)}),_=ld(e=>{if(!t.enablePullDownRefresh)return;if(!h)return;if(!Ww(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!p)return;e.cancelable&&e.preventDefault(),null===f&&(m=n,p=Uw,y()),n-=m,n<0&&(n=0),f=n;(n>=i&&p!==qw||n<i&&p!==Uw)&&(b(),p=p===qw?Uw:qw,y()),function(e){if(!s)return;let t=e/i;t>1?t=1:t*=t*t;const n=Math.round(e/(i/r))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)}),w=ld(e=>{t.enablePullDownRefresh&&Ww(e,u,d)&&null!==p&&(p===Uw?(b(),p=Qw,y(),function(e){if(!s)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}(()=>{b(),p=f=m=null})):p===qw&&(b(),p=Yw,y(),x()))});function x(){s&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",Tu(n,we))}return{onTouchstartPassive:v,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const Kw=sd({name:"PageBody",setup(e,t){const n=_d(),o=$n(null),i=$n(null),r=n.enablePullDownRefresh?Xw(o):null,a=$n(null);return $o(()=>n.enablePullDownRefresh,()=>{a.value=n.enablePullDownRefresh?r:null},{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return Vr(Hw,{ref:e},null,512)}(o,n);return Vr(Cr,null,[e,Vr("uni-page-wrapper",Gr({ref:i},a.value),[Vr("uni-page-body",null,[zi(t.slots,"default")]),null],16)])}}});const Jw=sd({name:"Page",setup(e,t){let n=wd(Sd());const o=n.navigationBar,i={};return U_(n),()=>Vr("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[Vr(Ow),Zw(t),null]:[Zw(t),null])}});function Zw(e){return Br(),Lr(Kw,{key:0},{default:Co(()=>[zi(e.slots,"page")]),_:3})}const ex={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=yh;const tx=Object.assign({}),nx=Object.assign;window.__uniConfig=nx({globalStyle:{backgroundColor:"#F5F6FA",navigationBar:{backgroundColor:"#0f95b0",type:"default",titleColor:"#ffffff"},isNVue:!1},uniIdRouter:{},tabBar:{position:"bottom",color:"#999999",selectedColor:"#0f95b0",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"é¦é¡µ",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/home-active.png"},{pagePath:"pages/my/index",text:"æç",iconPath:"/static/tabbar/my.png",selectedIconPath:"/static/tabbar/my-active.png"}],backgroundColor:"#FFFFFF",selectedIndex:0,shown:!0},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1","^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}},compilerVersion:"4.75"},{appId:"__UNI__46B5420",appName:"éå²å¤§å¦éå±å»é¢opo",appVersion:"1.0.0",appVersionCode:"100",async:ex,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(tx).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return nx(e[n]||(e[n]={}),tx[t].default),e},{}),router:{mode:"history",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const ox={delay:ex.delay,timeout:ex.timeout,suspensible:ex.suspensible};ex.loading&&(ox.loadingComponent={name:"SystemAsyncLoading",render:()=>Vr(Bo(ex.loading))}),ex.error&&(ox.errorComponent={name:"SystemAsyncError",props:["error"],render(){return Vr(Bo(ex.error),{error:this.error})}});const ix=()=>t(()=>import("./pages-index-index.D0FcXv5-.js"),__vite__mapDeps([0,1])).then(e=>hb(e.default||e)),rx=ri(nx({loader:ix},ox)),ax=()=>t(()=>import("./pages-appointment-index.DZFXVB0U.js"),__vite__mapDeps([2,3])).then(e=>hb(e.default||e)),sx=ri(nx({loader:ax},ox)),lx=()=>t(()=>import("./pages-login-Login.BhFflYOt.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>hb(e.default||e)),cx=ri(nx({loader:lx},ox)),ux=()=>t(()=>import("./pages-login-Register.Cw6DXqWj.js"),__vite__mapDeps([9,10])).then(e=>hb(e.default||e)),dx=ri(nx({loader:ux},ox)),hx=()=>t(()=>import("./pages-my-index.FuUTzUBA.js"),__vite__mapDeps([11,12])).then(e=>hb(e.default||e)),px=ri(nx({loader:hx},ox)),fx=()=>t(()=>import("./pages-vaccine-index.CwIsANNt.js"),__vite__mapDeps([13,14])).then(e=>hb(e.default||e)),mx=ri(nx({loader:fx},ox)),gx=()=>t(()=>import("./pages-vaccine-book.BRBmIpUZ.js"),__vite__mapDeps([15,16,17,18])).then(e=>hb(e.default||e)),yx=ri(nx({loader:gx},ox)),bx=()=>t(()=>import("./pages-appointment-doctor.CgfgRWi6.js"),__vite__mapDeps([19,20])).then(e=>hb(e.default||e)),vx=ri(nx({loader:bx},ox)),_x=()=>t(()=>import("./pages-appointment-schedule.PrxrEErT.js"),__vite__mapDeps([21,22])).then(e=>hb(e.default||e)),wx=ri(nx({loader:_x},ox)),xx=()=>t(()=>import("./pages-appointment-record.CUlkZsy9.js"),__vite__mapDeps([23,24])).then(e=>hb(e.default||e)),Sx=ri(nx({loader:xx},ox)),Cx=()=>t(()=>import("./pages-payment-index.DqAnLDuo.js"),__vite__mapDeps([25,26])).then(e=>hb(e.default||e)),kx=ri(nx({loader:Cx},ox)),Ax=()=>t(()=>import("./pages-department-index.BfV9vCYS.js"),__vite__mapDeps([27,28])).then(e=>hb(e.default||e)),Tx=ri(nx({loader:Ax},ox)),Ix=()=>t(()=>import("./pages-department-guide.CMQeoBk4.js"),__vite__mapDeps([29,30])).then(e=>hb(e.default||e)),Ex=ri(nx({loader:Ix},ox)),Bx=()=>t(()=>import("./pages-department-list.8MD1Qr3g.js"),__vite__mapDeps([31,32])).then(e=>hb(e.default||e)),Mx=ri(nx({loader:Bx},ox)),Px=()=>t(()=>import("./pages-department-detail.BNH_sh2g.js"),__vite__mapDeps([33,34])).then(e=>hb(e.default||e)),Ox=ri(nx({loader:Px},ox)),zx=()=>t(()=>import("./pages-department-search.BgDYOJFe.js"),__vite__mapDeps([35,36])).then(e=>hb(e.default||e)),Lx=ri(nx({loader:zx},ox)),Nx=()=>t(()=>import("./pages-hospital-detail.CF6tIZy-.js"),__vite__mapDeps([37,38])).then(e=>hb(e.default||e)),Dx=ri(nx({loader:Nx},ox)),Rx=()=>t(()=>import("./pages-records-medical.-n3hlufC.js"),__vite__mapDeps([39,40,41])).then(e=>hb(e.default||e)),$x=ri(nx({loader:Rx},ox)),jx=()=>t(()=>import("./pages-records-detail.CaOwXOuw.js"),__vite__mapDeps([42,43])).then(e=>hb(e.default||e)),Fx=ri(nx({loader:jx},ox)),Vx=()=>t(()=>import("./pages-records-report.CPdcIRu2.js"),__vite__mapDeps([44,45])).then(e=>hb(e.default||e)),Hx=ri(nx({loader:Vx},ox)),Wx=()=>t(()=>import("./pages-my-cases.B6qANqtr.js"),__vite__mapDeps([46,47])).then(e=>hb(e.default||e)),Ux=ri(nx({loader:Wx},ox)),qx=()=>t(()=>import("./pages-my-case-detail.CBIHmcF0.js"),__vite__mapDeps([48,49])).then(e=>hb(e.default||e)),Qx=ri(nx({loader:qx},ox)),Yx=()=>t(()=>import("./pages-records-reports.BrLRK2Rm.js"),__vite__mapDeps([50,51])).then(e=>hb(e.default||e)),Gx=ri(nx({loader:Yx},ox)),Xx=()=>t(()=>import("./pages-records-report-detail.CAuD8e84.js"),__vite__mapDeps([52,53])).then(e=>hb(e.default||e)),Kx=ri(nx({loader:Xx},ox)),Jx=()=>t(()=>import("./pages-appointment-patient.CUvIJa07.js"),__vite__mapDeps([54,55])).then(e=>hb(e.default||e)),Zx=ri(nx({loader:Jx},ox)),eS=()=>t(()=>import("./pages-appointment-confirm.DnCqW5Ah.js"),__vite__mapDeps([56,57])).then(e=>hb(e.default||e)),tS=ri(nx({loader:eS},ox)),nS=()=>t(()=>import("./pages-vaccine-list.DiCagvq9.js"),__vite__mapDeps([58,59])).then(e=>hb(e.default||e)),oS=ri(nx({loader:nS},ox)),iS=()=>t(()=>import("./pages-vaccine-detail.zoDABptb.js"),__vite__mapDeps([60,61])).then(e=>hb(e.default||e)),rS=ri(nx({loader:iS},ox)),aS=()=>t(()=>import("./pages-vaccine-record.DD8wZCLx.js"),__vite__mapDeps([62,40,63])).then(e=>hb(e.default||e)),sS=ri(nx({loader:aS},ox)),lS=()=>t(()=>import("./pages-case-index.pf3ESR3m.js"),__vite__mapDeps([64,65,66])).then(e=>hb(e.default||e)),cS=ri(nx({loader:lS},ox)),uS=()=>t(()=>import("./pages-case-CaseDetails.CGMIhcDO.js"),__vite__mapDeps([67,68,5,6,16,17,69,65,70])).then(e=>hb(e.default||e)),dS=ri(nx({loader:uS},ox)),hS=()=>t(()=>import("./pages-case-CaseInfo.BOW0loua.js"),__vite__mapDeps([71,65,72])).then(e=>hb(e.default||e)),pS=ri(nx({loader:hS},ox)),fS=()=>t(()=>import("./pages-case-transfer.CqtJ6hby.js"),__vite__mapDeps([73,65,74])).then(e=>hb(e.default||e)),mS=ri(nx({loader:fS},ox)),gS=()=>t(()=>import("./pages-case-transferinfo.DO9d4ZVL.js"),__vite__mapDeps([75,68,5,6,16,17,69,76])).then(e=>hb(e.default||e)),yS=ri(nx({loader:gS},ox)),bS=()=>t(()=>import("./pages-payment-record.DwE-Q_DL.js"),__vite__mapDeps([77,78])).then(e=>hb(e.default||e)),vS=ri(nx({loader:bS},ox)),_S=()=>t(()=>import("./pages-payment-detail.DRwiLdrU.js"),__vite__mapDeps([79,80])).then(e=>hb(e.default||e)),wS=ri(nx({loader:_S},ox)),xS=()=>t(()=>import("./pages-payment-result.QQR_yWkS.js"),__vite__mapDeps([81,82])).then(e=>hb(e.default||e)),SS=ri(nx({loader:xS},ox)),CS=()=>t(()=>import("./pages-payment-refund.CAspZ0Mt.js"),__vite__mapDeps([83,84])).then(e=>hb(e.default||e)),kS=ri(nx({loader:CS},ox)),AS=()=>t(()=>import("./pages-payment-invoice.DNFHIg8p.js"),__vite__mapDeps([85,16,17,86])).then(e=>hb(e.default||e)),TS=ri(nx({loader:AS},ox)),IS=()=>t(()=>import("./pages-patient-list.DvZksraE.js"),__vite__mapDeps([87,88])).then(e=>hb(e.default||e)),ES=ri(nx({loader:IS},ox)),BS=()=>t(()=>import("./pages-patient-add.CE9QyMe1.js"),__vite__mapDeps([89,90])).then(e=>hb(e.default||e)),MS=ri(nx({loader:BS},ox)),PS=()=>t(()=>import("./pages-patient-edit.C86meww0.js"),__vite__mapDeps([91,92])).then(e=>hb(e.default||e)),OS=ri(nx({loader:PS},ox)),zS=()=>t(()=>import("./pages-my-payment-method.CsTiw-hp.js"),__vite__mapDeps([93,94])).then(e=>hb(e.default||e)),LS=ri(nx({loader:zS},ox)),NS=()=>t(()=>import("./pages-my-add-bank-card.DZf0zj2T.js"),__vite__mapDeps([95,96])).then(e=>hb(e.default||e)),DS=ri(nx({loader:NS},ox)),RS=()=>t(()=>import("./pages-my-notification.DX6nX5TI.js"),__vite__mapDeps([97,98])).then(e=>hb(e.default||e)),$S=ri(nx({loader:RS},ox)),jS=()=>t(()=>import("./pages-search-index.Bvr6V9xZ.js"),__vite__mapDeps([99,100])).then(e=>hb(e.default||e)),FS=ri(nx({loader:jS},ox)),VS=()=>t(()=>import("./pages-doctor-detail.mfKWn8k4.js"),__vite__mapDeps([101,102])).then(e=>hb(e.default||e)),HS=ri(nx({loader:VS},ox)),WS=()=>t(()=>import("./pages-disease-detail.DjnSS6dn.js"),__vite__mapDeps([103,104])).then(e=>hb(e.default||e)),US=ri(nx({loader:WS},ox)),qS=()=>t(()=>import("./pages-appointment-department.BpcN6e2H.js"),__vite__mapDeps([105,106])).then(e=>hb(e.default||e)),QS=ri(nx({loader:qS},ox)),YS=()=>t(()=>import("./pages-news-list.D_omhimu.js"),__vite__mapDeps([107,108,109,110])).then(e=>hb(e.default||e)),GS=ri(nx({loader:YS},ox)),XS=()=>t(()=>import("./pages-news-detail.CMNtDnmM.js"),__vite__mapDeps([111,112])).then(e=>hb(e.default||e)),KS=ri(nx({loader:XS},ox)),JS=()=>t(()=>import("./pages-featured-tcm.BpRULc7Q.js"),__vite__mapDeps([113,114])).then(e=>hb(e.default||e)),ZS=ri(nx({loader:JS},ox)),eC=()=>t(()=>import("./pages-featured-project.B1PZzANa.js"),__vite__mapDeps([115,116])).then(e=>hb(e.default||e)),tC=ri(nx({loader:eC},ox)),nC=()=>t(()=>import("./pages-featured-case.D511IYP8.js"),__vite__mapDeps([117,118])).then(e=>hb(e.default||e)),oC=ri(nx({loader:nC},ox)),iC=()=>t(()=>import("./pages-featured-index.doTu5eiV.js"),__vite__mapDeps([119,120])).then(e=>hb(e.default||e)),rC=ri(nx({loader:iC},ox)),aC=()=>t(()=>import("./pages-featured-cross-border.DZNiCif3.js"),__vite__mapDeps([121,122])).then(e=>hb(e.default||e)),sC=ri(nx({loader:aC},ox)),lC=()=>t(()=>import("./pages-featured-expert.DZsRNDFu.js"),__vite__mapDeps([123,108,109,124,125,126])).then(e=>hb(e.default||e)),cC=ri(nx({loader:lC},ox)),uC=()=>t(()=>import("./pages-featured-all.D-lrXyD1.js"),__vite__mapDeps([127,108,109,124,125,128])).then(e=>hb(e.default||e)),dC=ri(nx({loader:uC},ox)),hC=()=>t(()=>import("./pages-featured-bay-area.CUpVpi9j.js"),__vite__mapDeps([129,108,109,130])).then(e=>hb(e.default||e)),pC=ri(nx({loader:hC},ox)),fC=()=>t(()=>import("./pages-my-profile.CEIirN_r.js"),__vite__mapDeps([131,132])).then(e=>hb(e.default||e)),mC=ri(nx({loader:fC},ox)),gC=()=>t(()=>import("./pages-consultation-index.CqZ1lmbi.js"),__vite__mapDeps([133,134])).then(e=>hb(e.default||e)),yC=ri(nx({loader:gC},ox)),bC=()=>t(()=>import("./pages-ethicalReview-ethicalInfo.DqZWtTwW.js"),__vite__mapDeps([135,7,136])).then(e=>hb(e.default||e)),vC=ri(nx({loader:bC},ox)),_C=()=>t(()=>import("./pages-ethicalReview-index.BzfjMOj2.js"),__vite__mapDeps([137,65,138])).then(e=>hb(e.default||e)),wC=ri(nx({loader:_C},ox)),xC=()=>t(()=>import("./pages-consultation-chat.AYjGpr2U.js"),__vite__mapDeps([139,16,17,140])).then(e=>hb(e.default||e)),SC=ri(nx({loader:xC},ox)),CC=()=>t(()=>import("./pages-consultation-ai.-XBXkt06.js"),__vite__mapDeps([141,16,17,142])).then(e=>hb(e.default||e)),kC=ri(nx({loader:CC},ox)),AC=()=>t(()=>import("./pages-my-health-records.SDOOWbro.js"),__vite__mapDeps([143,144])).then(e=>hb(e.default||e)),TC=ri(nx({loader:AC},ox));function IC(e,t){return Br(),Lr(Jw,null,{page:Co(()=>[Vr(e,nx({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(rx,t)}},loader:ix,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,enablePullDownRefresh:!0,navigationBar:{titleText:"ééé¢OPO管çå¹³å°",type:"default"},isNVue:!1}},{path:"/pages/appointment/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(sx,t)}},loader:ax,meta:{navigationBar:{titleText:"é¢çº¦æå·",type:"default"},isNVue:!1}},{path:"/pages/login/Login",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(cx,t)}},loader:lx,meta:{navigationBar:{titleText:"ç»å½",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/login/Register",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(dx,t)}},loader:ux,meta:{navigationBar:{titleText:"注å",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/my/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(px,t)}},loader:hx,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"个人ä¸å¿",type:"default"},isNVue:!1}},{path:"/pages/vaccine/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(mx,t)}},loader:fx,meta:{navigationBar:{titleText:"ç«èæ¥ç§",type:"default"},isNVue:!1}},{path:"/pages/vaccine/book",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(yx,t)}},loader:gx,meta:{navigationBar:{titleText:"ç«èé¢çº¦",type:"default"},isNVue:!1}},{path:"/pages/appointment/doctor",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(vx,t)}},loader:bx,meta:{navigationBar:{titleText:"éæ©å»ç",type:"default"},isNVue:!1}},{path:"/pages/appointment/schedule",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(wx,t)}},loader:_x,meta:{navigationBar:{titleText:"éæ©æ¶é´",type:"default"},isNVue:!1}},{path:"/pages/appointment/record",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Sx,t)}},loader:xx,meta:{navigationBar:{titleText:"é¢çº¦è®°å½",type:"default"},isNVue:!1}},{path:"/pages/payment/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(kx,t)}},loader:Cx,meta:{navigationBar:{titleText:"æ¯ä»",type:"default"},isNVue:!1}},{path:"/pages/department/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Tx,t)}},loader:Ax,meta:{navigationBar:{titleText:"éæ©ç§å®¤",type:"default"},isNVue:!1}},{path:"/pages/department/guide",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Ex,t)}},loader:Ix,meta:{navigationBar:{titleText:"ç§å®¤å¯¼èª",type:"default"},isNVue:!1}},{path:"/pages/department/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Mx,t)}},loader:Bx,meta:{navigationBar:{titleText:"ç§å®¤å表",type:"default"},isNVue:!1}},{path:"/pages/department/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Ox,t)}},loader:Px,meta:{navigationBar:{titleText:"ç§å®¤è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/department/search",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Lx,t)}},loader:zx,meta:{navigationBar:{titleText:"æç´¢ç»æ",type:"default"},isNVue:!1}},{path:"/pages/hospital/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Dx,t)}},loader:Nx,meta:{navigationBar:{titleText:"å»é¢è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/records/medical",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC($x,t)}},loader:Rx,meta:{navigationBar:{titleText:"å°±å»è®°å½",type:"default"},isNVue:!1}},{path:"/pages/records/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Fx,t)}},loader:jx,meta:{navigationBar:{titleText:"å°±å»è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/records/report",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Hx,t)}},loader:Vx,meta:{navigationBar:{titleText:"æ£æ¥æ¥å",type:"default"},isNVue:!1}},{path:"/pages/my/cases",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Ux,t)}},loader:Wx,meta:{navigationBar:{titleText:"个人ç
ä¾",type:"default"},isNVue:!1}},{path:"/pages/my/case-detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Qx,t)}},loader:qx,meta:{navigationBar:{titleText:"ç
ä¾è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/records/reports",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Gx,t)}},loader:Yx,meta:{navigationBar:{titleText:"æ£æ¥æ¥åå表",type:"default"},isNVue:!1}},{path:"/pages/records/report-detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Kx,t)}},loader:Xx,meta:{navigationBar:{titleText:"æ£æ¥æ¥å详æ
",type:"default"},isNVue:!1}},{path:"/pages/appointment/patient",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Zx,t)}},loader:Jx,meta:{navigationBar:{titleText:"鿩就è¯äºº",type:"default"},isNVue:!1}},{path:"/pages/appointment/confirm",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(tS,t)}},loader:eS,meta:{navigationBar:{titleText:"确认é¢çº¦",type:"default"},isNVue:!1}},{path:"/pages/vaccine/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(oS,t)}},loader:nS,meta:{navigationBar:{titleText:"ç«èå表",type:"default"},isNVue:!1}},{path:"/pages/vaccine/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(rS,t)}},loader:iS,meta:{navigationBar:{titleText:"ç«è详æ
",type:"default"},isNVue:!1}},{path:"/pages/vaccine/record",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(sS,t)}},loader:aS,meta:{navigationBar:{titleText:"æ¥ç§è®°å½",type:"default"},isNVue:!1}},{path:"/pages/case/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(cS,t)}},loader:lS,meta:{navigationBar:{titleText:"æç䏿¥",type:"default"},isNVue:!1}},{path:"/pages/case/CaseDetails",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(dS,t)}},loader:uS,meta:{navigationBar:{titleText:"䏿¥æ¡ä¾",type:"default"},isNVue:!1}},{path:"/pages/case/CaseInfo",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(pS,t)}},loader:hS,meta:{navigationBar:{titleText:"æ¡ä¾è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/case/transfer",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(mS,t)}},loader:fS,meta:{navigationBar:{titleText:"转è¿ç»è®°",type:"default"},isNVue:!1}},{path:"/pages/case/transferinfo",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(yS,t)}},loader:gS,meta:{navigationBar:{titleText:"ç»è®°å详æ
",type:"default"},isNVue:!1}},{path:"/pages/payment/record",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(vS,t)}},loader:bS,meta:{navigationBar:{titleText:"缴费记å½",type:"default"},isNVue:!1}},{path:"/pages/payment/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(wS,t)}},loader:_S,meta:{navigationBar:{titleText:"缴费详æ
",type:"default"},isNVue:!1}},{path:"/pages/payment/result",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(SS,t)}},loader:xS,meta:{navigationBar:{titleText:"æ¯ä»ç»æ",type:"default"},isNVue:!1}},{path:"/pages/payment/refund",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(kS,t)}},loader:CS,meta:{navigationBar:{titleText:"ç³è¯·é款",type:"default"},isNVue:!1}},{path:"/pages/payment/invoice",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(TS,t)}},loader:AS,meta:{navigationBar:{titleText:"çµåå票",type:"default"},isNVue:!1}},{path:"/pages/patient/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(ES,t)}},loader:IS,meta:{navigationBar:{titleText:"å°±è¯äººç®¡ç",type:"default"},isNVue:!1}},{path:"/pages/patient/add",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(MS,t)}},loader:BS,meta:{navigationBar:{titleText:"æ·»å å°±è¯äºº",type:"default"},isNVue:!1}},{path:"/pages/patient/edit",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(OS,t)}},loader:PS,meta:{navigationBar:{titleText:"ç¼è¾å°±è¯äºº",type:"default"},isNVue:!1}},{path:"/pages/my/payment-method",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(LS,t)}},loader:zS,meta:{navigationBar:{titleText:"æ¯ä»æ¹å¼",type:"default"},isNVue:!1}},{path:"/pages/my/add-bank-card",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(DS,t)}},loader:NS,meta:{navigationBar:{titleText:"æ·»å é¶è¡å¡",type:"default"},isNVue:!1}},{path:"/pages/my/notification",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC($S,t)}},loader:RS,meta:{navigationBar:{titleText:"æ¶æ¯éç¥",type:"default"},isNVue:!1}},{path:"/pages/search/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(FS,t)}},loader:jS,meta:{navigationBar:{titleText:"æç´¢",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/doctor/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(HS,t)}},loader:VS,meta:{navigationBar:{titleText:"å»ç详æ
",type:"default"},isNVue:!1}},{path:"/pages/disease/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(US,t)}},loader:WS,meta:{navigationBar:{titleText:"ç¾ç
详æ
",type:"default"},isNVue:!1}},{path:"/pages/appointment/department",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(QS,t)}},loader:qS,meta:{navigationBar:{titleText:"éæ©ç§å®¤",type:"default"},isNVue:!1}},{path:"/pages/news/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(GS,t)}},loader:YS,meta:{navigationBar:{titleText:"å»é¢èµè®¯",type:"default"},isNVue:!1}},{path:"/pages/news/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(KS,t)}},loader:XS,meta:{navigationBar:{titleText:"èµè®¯è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/featured/tcm",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(ZS,t)}},loader:JS,meta:{navigationBar:{titleText:"ä¸å»ç¹è²è¯ç",type:"default"},isNVue:!1}},{path:"/pages/featured/project",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(tC,t)}},loader:eC,meta:{navigationBar:{titleText:"项ç®è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/featured/case",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(oC,t)}},loader:nC,meta:{navigationBar:{titleText:"æ¡ä¾è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/featured/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(rC,t)}},loader:iC,meta:{navigationBar:{titleText:"ç¹è²å»ç",type:"default"},isNVue:!1}},{path:"/pages/featured/cross-border",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(sC,t)}},loader:aC,meta:{navigationBar:{titleText:"è·¨å¢å»çæå¡",type:"default"},isNVue:!1}},{path:"/pages/featured/expert",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(cC,t)}},loader:lC,meta:{navigationBar:{titleText:"ä¸å®¶é¨è¯",type:"default"},isNVue:!1}},{path:"/pages/featured/all",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(dC,t)}},loader:uC,meta:{navigationBar:{titleText:"å
¨é¨ç¹è²å»ç",type:"default"},isNVue:!1}},{path:"/pages/featured/bay-area",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(pC,t)}},loader:hC,meta:{navigationBar:{titleText:"大湾åºç¹è²å»ç",type:"default"},isNVue:!1}},{path:"/pages/my/profile",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(mC,t)}},loader:fC,meta:{navigationBar:{titleText:"个人信æ¯",type:"default"},isNVue:!1}},{path:"/pages/consultation/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(yC,t)}},loader:gC,meta:{navigationBar:{titleText:"å¨çº¿é®è¯",type:"default"},isNVue:!1}},{path:"/pages/ethicalReview/ethicalInfo",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(vC,t)}},loader:bC,meta:{navigationBar:{titleText:"伦ç审æ¥",type:"default"},isNVue:!1}},{path:"/pages/ethicalReview/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(wC,t)}},loader:_C,meta:{navigationBar:{titleText:"审æ¥è®°å½",type:"default"},isNVue:!1}},{path:"/pages/consultation/chat",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(SC,t)}},loader:xC,meta:{navigationBar:{titleText:"å»çé®è¯",type:"default"},isNVue:!1}},{path:"/pages/consultation/ai",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(kC,t)}},loader:CC,meta:{navigationBar:{titleText:"AIé®è¯å©æ",type:"default"},isNVue:!1}},{path:"/pages/my/health-records",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(TC,t)}},loader:AC,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"å¥åº·æ¡£æ¡",type:"default"},isNVue:!1}}].map(e=>(e.meta.route=(e.alias||e.path).slice(1),e)); |
| | | */(e);if(!o)return;const i=t._component;g(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const ms="undefined"!=typeof document;const gs=Object.assign;function ys(e,t){const n={};for(const o in t){const i=t[o];n[o]=vs(i)?i.map(e):e(i)}return n}const bs=()=>{},vs=Array.isArray,_s=/#/g,ws=/&/g,xs=/\//g,Ss=/=/g,Cs=/\?/g,ks=/\+/g,As=/%5B/g,Ts=/%5D/g,Is=/%5E/g,Es=/%60/g,Bs=/%7B/g,Ms=/%7C/g,Ps=/%7D/g,Os=/%20/g;function zs(e){return encodeURI(""+e).replace(Ms,"|").replace(As,"[").replace(Ts,"]")}function Ls(e){return zs(e).replace(ks,"%2B").replace(Os,"+").replace(_s,"%23").replace(ws,"%26").replace(Es,"`").replace(Bs,"{").replace(Ps,"}").replace(Is,"^")}function Ns(e){return Ls(e).replace(Ss,"%3D")}function Ds(e){return null==e?"":function(e){return zs(e).replace(_s,"%23").replace(Cs,"%3F")}(e).replace(xs,"%2F")}function Rs(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const $s=/\/$/;function js(e,t,n="/"){let o,i={},r="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,s>-1?s:t.length),i=e(r)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,a,s=n.length-1;for(r=0;r<o.length;r++)if(a=o[r],"."!==a){if(".."!==a)break;s>1&&s--}return n.slice(0,s).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+a,path:o,query:i,hash:Rs(a)}}function Fs(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Vs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Hs(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ws(e[n],t[n]))return!1;return!0}function Ws(e,t){return vs(e)?Us(e,t):vs(t)?Us(t,e):e===t}function Us(e,t){return vs(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):1===e.length&&e[0]===t}var qs,Qs,Ys,Gs;function Xs(e){if(!e)if(ms){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace($s,"")}(Qs=qs||(qs={})).pop="pop",Qs.push="push",(Gs=Ys||(Ys={})).back="back",Gs.forward="forward",Gs.unknown="";const Ks=/^[^#]+#/;function Js(e,t){return e.replace(Ks,"#")+t}const Zs=()=>({left:window.scrollX,top:window.scrollY});function el(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function tl(e,t){return(history.state?history.state.position-t:-1)+e}const nl=new Map;function ol(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),Fs(n,"")}return Fs(n,e)+o+i}function il(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Zs():null}}function rl(e){const{history:t,location:n}=window,o={value:ol(e,n)},i={value:t.state};function r(o,r,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const a=gs({},i.value,t.state,{forward:e,scroll:Zs()});r(a.current,a,!0),r(e,gs({},il(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){r(e,gs({},t.state,il(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function al(e){const t=rl(e=Xs(e)),n=function(e,t,n,o){let i=[],r=[],a=null;const s=({state:r})=>{const s=ol(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=s,t.value=r,a&&a===l)return void(a=null);u=c?r.position-c.position:0}else o(s);i.forEach(e=>{e(n.value,l,{delta:u,type:qs.pop,direction:u?u>0?Ys.forward:Ys.back:Ys.unknown})})};function l(){const{history:e}=window;e.state&&e.replaceState(gs({},e.state,{scroll:Zs()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=gs({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Js.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function sl(e){return"string"==typeof e||"symbol"==typeof e}const ll={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},cl=Symbol("");var ul,dl;function hl(e,t){return gs(new Error,{type:e,[cl]:!0},t)}function pl(e,t){return e instanceof Error&&cl in e&&(null==t||!!(e.type&t))}(dl=ul||(ul={}))[dl.aborted=4]="aborted",dl[dl.cancelled=8]="cancelled",dl[dl.duplicated=16]="duplicated";const fl="[^/]+?",ml={sensitive:!1,strict:!1,start:!0,end:!0},gl=/[.+*?^${}()[\]/\\]/g;function yl(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function bl(e,t){let n=0;const o=e.score,i=t.score;for(;n<o.length&&n<i.length;){const e=yl(o[n],i[n]);if(e)return e;n++}if(1===Math.abs(i.length-o.length)){if(vl(o))return 1;if(vl(i))return-1}return i.length-o.length}function vl(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _l={type:0,value:""},wl=/[a-zA-Z0-9_]/;function xl(e,t,n){const o=function(e,t){const n=gs({},ml,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t<l.length;t++){const o=l[t];let a=40+(n.sensitive?.25:0);if(0===o.type)t||(i+="/"),i+=o.value.replace(gl,"\\$&"),a+=40;else if(1===o.type){const{value:e,repeatable:n,optional:c,regexp:u}=o;r.push({name:e,repeatable:n,optional:c});const d=u||fl;if(d!==fl){a+=10;try{new RegExp(`(${d})`)}catch(s){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+s.message)}}let h=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(h=c&&l.length<2?`(?:/${h})`:"/"+h),c&&(h+="?"),i+=h,a+=20,c&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const a=new RegExp(i,n.sensitive?"":"i");return{re:a,score:o,keys:r,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let o=1;o<t.length;o++){const e=t[o]||"",i=r[o-1];n[i.name]=e&&i.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",o=!1;for(const i of e){o&&n.endsWith("/")||(n+="/"),o=!1;for(const e of i)if(0===e.type)n+=e.value;else if(1===e.type){const{value:r,repeatable:a,optional:s}=e,l=r in t?t[r]:"";if(vs(l)&&!a)throw new Error(`Provided param "${r}" is an array but it is not repeatable (* or + modifiers)`);const c=vs(l)?l.join("/"):l;if(!c){if(!s)throw new Error(`Missing required param "${r}"`);i.length<2&&(n.endsWith("/")?n=n.slice(0,-1):o=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[_l]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,o=n;const i=[];let r;function a(){r&&i.push(r),r=[]}let s,l=0,c="",u="";function d(){c&&(0===n?r.push({type:0,value:c}):1===n||2===n||3===n?(r.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),c="")}function h(){c+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(c&&d(),a()):":"===s?(d(),n=1):h();break;case 4:h(),n=o;break;case 1:"("===s?n=2:wl.test(s)?h():(d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==u[u.length-1]?u=u.slice(0,-1)+s:n=3:u+=s;break;case 3:d(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,u="";break;default:t("Unknown state")}else o=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),i}(e.path),n),i=gs(o,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function Sl(e,t){const n=[],o=new Map;function i(e,n,o){const s=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:kl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=o&&o.record;const c=Il(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(gs({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let d,h;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&o+u)}if(d=xl(t,n,c),o?o.alias.push(d):(h=h||d,h!==d&&h.alias.push(d),s&&e.name&&!Al(d)&&r(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)i(e[t],d,o&&o.children[t])}o=o||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&a(d)}return h?()=>{r(h)}:bs}function r(e){if(sl(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function a(e){let t=0;for(;t<n.length&&bl(e,n[t])>=0&&(e.record.path!==n[t].record.path||!El(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Al(e)&&o.set(e.record.name,e)}return t=Il({strict:!1,end:!0,sensitive:!1},t),e.forEach(e=>i(e)),{addRoute:i,resolve:function(e,t){let i,r,a,s={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw hl(1,{location:e});a=i.record.name,s=gs(Cl(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&Cl(e.params,i.keys.map(e=>e.name))),r=i.stringify(s)}else if(null!=e.path)r=e.path,i=n.find(e=>e.re.test(r)),i&&(s=i.parse(r),a=i.record.name);else{if(i=t.name?o.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw hl(1,{location:e,currentLocation:t});a=i.record.name,s=gs({},t.params,e.params),r=i.stringify(s)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:r,params:s,matched:l,meta:Tl(l)}},removeRoute:r,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Cl(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function kl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Al(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Tl(e){return e.reduce((e,t)=>gs(e,t.meta),{})}function Il(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function El(e,t){return t.children.some(t=>t===e||El(e,t))}function Bl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o].replace(ks," "),i=e.indexOf("="),r=Rs(i<0?e:e.slice(0,i)),a=i<0?null:Rs(e.slice(i+1));if(r in t){let e=t[r];vs(e)||(e=t[r]=[e]),e.push(a)}else t[r]=a}return t}function Ml(e){let t="";for(let n in e){const o=e[n];if(n=Ns(n),null==o){void 0!==o&&(t+=(t.length?"&":"")+n);continue}(vs(o)?o.map(e=>e&&Ls(e)):[o&&Ls(o)]).forEach(e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))})}return t}function Pl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=vs(o)?o.map(e=>null==e?null:""+e):null==o?o:""+o)}return t}const Ol=Symbol(""),zl=Symbol(""),Ll=Symbol(""),Nl=Symbol(""),Dl=Symbol("");function Rl(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function $l(e,t,n,o,i,r=e=>e()){const a=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const c=e=>{var r;!1===e?l(hl(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(hl(2,{from:t,to:e})):(a&&o.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),s())},u=r(()=>e.call(o&&o.instances[i],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(e=>l(e))})}function jl(e,t,n,o,i=e=>e()){const r=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if(Fl(s)){const l=(s.__vccOpts||s)[t];l&&r.push($l(l,n,o,a,e,i))}else{let l=s();r.push(()=>l.then(r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const s=(l=r).__esModule||"Module"===l[Symbol.toStringTag]?r.default:r;var l;a.components[e]=s;const c=(s.__vccOpts||s)[t];return c&&$l(c,n,o,a,e,i)()}))}}return r}function Fl(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function Vl(e){const t=ir(Ll),n=ir(Nl),o=ha(()=>t.resolve(Hn(e.to))),i=ha(()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const a=r.findIndex(Vs.bind(null,i));if(a>-1)return a;const s=Wl(e[t-2]);return t>1&&Wl(i)===s&&r[r.length-1].path!==s?r.findIndex(Vs.bind(null,e[t-2])):a}),r=ha(()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!vs(i)||i.length!==o.length||o.some((e,t)=>e!==i[t]))return!1}return!0}(n.params,o.value.params)),a=ha(()=>i.value>-1&&i.value===n.matched.length-1&&Hs(n.params,o.value.params));return{route:o,href:ha(()=>o.value.href),isActive:r,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[Hn(e.replace)?"replace":"push"](Hn(e.to)).catch(bs):Promise.resolve()}}}const Hl=oi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vl,setup(e,{slots:t}){const n=Sn(Vl(e)),{options:o}=ir(Ll),i=ha(()=>({[Ul(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Ul(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:pa("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function Wl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ul=(e,t,n)=>null!=e?e:null!=t?t:n;function ql(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ql=oi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ir(Dl),i=ha(()=>e.route||o.value),r=ir(zl,0),a=ha(()=>{let e=Hn(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e}),s=ha(()=>i.value.matched[a.value]);or(zl,ha(()=>a.value+1)),or(Ol,s),or(Dl,i);const l=$n();return $o(()=>[l.value,s.value,e.name],([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&Vs(t,i)&&o||(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:"post"}),()=>{const o=i.value,r=e.name,a=s.value,c=a&&a.components[r];if(!c)return ql(n.default,{Component:c,route:o});const u=a.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,h=pa(c,gs({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[r]=null)},ref:l}));return ql(n.default,{Component:h,route:o})||h}}});function Yl(e){const t=Sl(e.routes,e),n=e.parseQuery||Bl,o=e.stringifyQuery||Ml,i=e.history,r=Rl(),a=Rl(),s=Rl(),l=jn(ll);let c=ll;ms&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ys.bind(null,e=>""+e),d=ys.bind(null,Ds),h=ys.bind(null,Rs);function p(e,r){if(r=gs({},r||l.value),"string"==typeof e){const o=js(n,e,r.path),a=t.resolve({path:o.path},r),s=i.createHref(o.fullPath);return gs(o,a,{params:h(a.params),hash:Rs(o.hash),redirectedFrom:void 0,href:s})}let a;if(null!=e.path)a=gs({},e,{path:js(n,e.path,r.path).path});else{const t=gs({},e.params);for(const e in t)null==t[e]&&delete t[e];a=gs({},e,{params:d(t)}),r.params=d(r.params)}const s=t.resolve(a,r),c=e.hash||"";s.params=u(h(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,gs({},e,{hash:(f=c,zs(f).replace(Bs,"{").replace(Ps,"}").replace(Is,"^")),path:s.path}));var f;const m=i.createHref(p);return gs({fullPath:p,hash:c,query:o===Ml?Pl(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?js(n,e,l.value.path):gs({},e)}function m(e,t){if(c!==e)return hl(8,{from:t,to:e})}function g(e){return b(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),gs({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function b(e,t){const n=c=p(e),i=l.value,r=e.state,a=e.force,s=!0===e.replace,u=y(n);if(u)return b(gs(f(u),{state:"object"==typeof u?gs({},r,u.state):r,force:a,replace:s}),t||n);const d=n;let h;return d.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&Vs(t.matched[o],n.matched[i])&&Hs(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(h=hl(16,{to:d,from:i}),M(i,i,!0,!1)),(h?Promise.resolve(h):w(d,i)).catch(e=>pl(e)?pl(e,2)?e:B(e):E(e,d,i)).then(e=>{if(e){if(pl(e,2))return b(gs({replace:s},f(e.to),{state:"object"==typeof e.to?gs({},r,e.to.state):r,force:a}),t||d)}else e=S(d,i,!0,s,r);return x(d,i,e),e})}function v(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=z.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,s]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let a=0;a<r;a++){const r=t.matched[a];r&&(e.matched.find(e=>Vs(e,r))?o.push(r):n.push(r));const s=e.matched[a];s&&(t.matched.find(e=>Vs(e,s))||i.push(s))}return[n,o,i]}(e,t);n=jl(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach(o=>{n.push($l(o,e,t))});const l=v.bind(null,e,t);return n.push(l),N(n).then(()=>{n=[];for(const o of r.list())n.push($l(o,e,t));return n.push(l),N(n)}).then(()=>{n=jl(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach(o=>{n.push($l(o,e,t))});return n.push(l),N(n)}).then(()=>{n=[];for(const o of s)if(o.beforeEnter)if(vs(o.beforeEnter))for(const i of o.beforeEnter)n.push($l(i,e,t));else n.push($l(o.beforeEnter,e,t));return n.push(l),N(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=jl(s,"beforeRouteEnter",e,t,_),n.push(l),N(n))).then(()=>{n=[];for(const o of a.list())n.push($l(o,e,t));return n.push(l),N(n)}).catch(e=>pl(e,8)?e:Promise.reject(e))}function x(e,t,n){s.list().forEach(o=>_(()=>o(e,t,n)))}function S(e,t,n,o,r){const a=m(e,t);if(a)return a;const s=t===ll,c=ms?history.state:{};n&&(o||s?i.replace(e.fullPath,gs({scroll:s&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,M(e,t,n,s),B()}let C;function k(){C||(C=i.listen((e,t,n)=>{if(!L.listening)return;const o=p(e),r=y(o);if(r)return void b(gs(r,{replace:!0}),o).catch(bs);c=o;const a=l.value;var s,u;ms&&(s=tl(a.fullPath,n.delta),u=Zs(),nl.set(s,u)),w(o,a).catch(e=>pl(e,12)?e:pl(e,2)?(b(e.to,o).then(e=>{pl(e,20)&&!n.delta&&n.type===qs.pop&&i.go(-1,!1)}).catch(bs),Promise.reject()):(n.delta&&i.go(-n.delta,!1),E(e,o,a))).then(e=>{(e=e||S(o,a,!1))&&(n.delta&&!pl(e,8)?i.go(-n.delta,!1):n.type===qs.pop&&pl(e,20)&&i.go(-1,!1)),x(o,a,e)}).catch(bs)}))}let A,T=Rl(),I=Rl();function E(e,t,n){B(e);const o=I.list();return o.length?o.forEach(o=>o(e,t,n)):console.error(e),Promise.reject(e)}function B(e){return A||(A=!e,k(),T.list().forEach(([t,n])=>e?n(e):t()),T.reset()),e}function M(t,n,o,i){const{scrollBehavior:r}=e;if(!ms||!r)return Promise.resolve();const a=!o&&function(e){const t=nl.get(e);return nl.delete(e),t}(tl(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return lo().then(()=>r(t,n,a)).then(e=>e&&el(e)).catch(e=>E(e,t,n))}const P=e=>i.go(e);let O;const z=new Set,L={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return sl(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map(e=>e.record)},resolve:p,options:e,push:g,replace:function(e){return g(gs(f(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:r.add,beforeResolve:a.add,afterEach:s.add,onError:I.add,isReady:function(){return A&&l.value!==ll?Promise.resolve():new Promise((e,t)=>{T.add([e,t])})},install(e){e.component("RouterLink",Hl),e.component("RouterView",Ql),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Hn(l)}),ms&&!O&&l.value===ll&&(O=!0,g(i.location).catch(e=>{}));const t={};for(const o in ll)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(Ll,this),e.provide(Nl,Cn(t)),e.provide(Dl,l);const n=e.unmount;z.add(e),e.unmount=function(){z.delete(e),z.size<1&&(c=ll,C&&C(),C=null,l.value=ll,O=!1,A=!1),n()}}};function N(e){return e.reduce((e,t)=>e.then(()=>_(t)),Promise.resolve())}return L}function Gl(){return ir(Nl)}const Xl=["{","}"];const Kl=/^(?:\d)+/,Jl=/^(?:\w)+/;const Zl="zh-Hans",ec="zh-Hant",tc="en",nc="fr",oc="es",ic=Object.prototype.hasOwnProperty,rc=(e,t)=>ic.call(e,t),ac=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Xl){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i<e.length;){let a=e[i++];if(a===t){r&&o.push({type:"text",value:r}),r="";let t="";for(a=e[i++];void 0!==a&&a!==n;)t+=a,a=e[i++];const s=a===n,l=Kl.test(t)?"list":s&&Jl.test(t)?"named":"unknown";o.push({value:t,type:l})}else r+=a}return r&&o.push({type:"text",value:r}),o}(e,n),this._caches[e]=o),function(e,t){const n=[];let o=0;const i=Array.isArray(t)?"list":(r=t,null!==r&&"object"==typeof r?"named":"unknown");var r;if("unknown"===i)return n;for(;o<e.length;){const r=e[o];switch(r.type){case"text":n.push(r.value);break;case"list":n.push(t[parseInt(r.value,10)]);break;case"named":"named"===i&&n.push(t[r.value])}o++}return n}(o,t)}};function sc(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return Zl;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?Zl:e.indexOf("-hant")>-1?ec:(n=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==n.indexOf(e))?ec:Zl);var n;let o=[tc,nc,oc];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,o);return i||void 0}class lc{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale=tc,this.fallbackLocale=tc,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||ac,this.messages=n||{},this.setLocale(e||tc),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=sc(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach(e=>{e(this.locale,t)})}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach(e=>{rc(o,e)||(o[e]=t[e])}):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=sc(t,this.messages))&&(o=this.messages[t]):n=t,rc(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function cc(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&pp?pp():"undefined"!=typeof global&&global.getLocale?global.getLocale():tc),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||tc);const i=new lc({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=lb().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale(e=>{t.setLocale(e)}):e.$watch(()=>e.$locale,e=>{t.setLocale(e)})}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function uc(e,t){return e.indexOf(t[0])>-1}const dc=Le(()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let hc;function pc(e){return uc(e,te)?gc().f(e,function(){const e=pp(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),te):e}function fc(e,t){if(1===t.length){if(e){const n=e=>y(e)&&uc(e,te),o=t[0];let i=[];if(p(e)&&(i=e.filter(e=>n(e[o]))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return fc(e&&e[n],t)}function mc(e,t){const n=fc(e,t);if(!n)return!1;const o=t[t.length-1];if(p(n))n.forEach(e=>mc(e,[o]));else{let e=n[o];Object.defineProperty(n,o,{get:()=>pc(e),set(t){e=t}})}return!0}function gc(){if(!hc){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,hc=cc(e),dc()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(e=>hc.add(e,__uniConfig.locales[e])),hc.setLocale(e)}}return hc}function yc(e,t,n){return t.reduce((t,o,i)=>(t[e+o]=n[i],t),{})}const bc=Le(()=>{const e="uni.async.",t=["error"];gc().add(tc,yc(e,t,["The connection timed out, click the screen to try again."]),!1),gc().add(oc,yc(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),gc().add(nc,yc(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),gc().add(Zl,yc(e,t,["è¿æ¥æå¡å¨è¶
æ¶ï¼ç¹å»å±å¹éè¯"]),!1),gc().add(ec,yc(e,t,["飿¥æåå¨è¶
æï¼é»æå±å¹é試"]),!1)}),vc=Le(()=>{const e="uni.showActionSheet.",t=["cancel"];gc().add(tc,yc(e,t,["Cancel"]),!1),gc().add(oc,yc(e,t,["Cancelar"]),!1),gc().add(nc,yc(e,t,["Annuler"]),!1),gc().add(Zl,yc(e,t,["åæ¶"]),!1),gc().add(ec,yc(e,t,["åæ¶"]),!1)}),_c=Le(()=>{const e="uni.showToast.",t=["unpaired"];gc().add(tc,yc(e,t,["Please note showToast must be paired with hideToast"]),!1),gc().add(oc,yc(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),gc().add(nc,yc(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),gc().add(Zl,yc(e,t,["请注æ showToast ä¸ hideToast å¿
é¡»é
对使ç¨"]),!1),gc().add(ec,yc(e,t,["è«æ³¨æ showToast è hideToast å¿
é é
å°ä½¿ç¨"]),!1)}),wc=Le(()=>{const e="uni.showLoading.",t=["unpaired"];gc().add(tc,yc(e,t,["Please note showLoading must be paired with hideLoading"]),!1),gc().add(oc,yc(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),gc().add(nc,yc(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),gc().add(Zl,yc(e,t,["请注æ showLoading ä¸ hideLoading å¿
é¡»é
对使ç¨"]),!1),gc().add(ec,yc(e,t,["è«æ³¨æ showLoading è hideLoading å¿
é é
å°ä½¿ç¨"]),!1)}),xc=Le(()=>{const e="uni.showModal.",t=["cancel","confirm"];gc().add(tc,yc(e,t,["Cancel","OK"]),!1),gc().add(oc,yc(e,t,["Cancelar","OK"]),!1),gc().add(nc,yc(e,t,["Annuler","OK"]),!1),gc().add(Zl,yc(e,t,["åæ¶","ç¡®å®"]),!1),gc().add(ec,yc(e,t,["åæ¶","確å®"]),!1)}),Sc=Le(()=>{const e="uni.chooseFile.",t=["notUserActivation"];gc().add(tc,yc(e,t,["File chooser dialog can only be shown with a user activation"]),!1),gc().add(oc,yc(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),gc().add(nc,yc(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),gc().add(Zl,yc(e,t,["æä»¶éæ©å¨å¯¹è¯æ¡åªè½å¨ç±ç¨æ·æ¿æ´»æ¶æ¾ç¤º"]),!1),gc().add(ec,yc(e,t,["æä»¶é¸æå¨å°è©±æ¡åªè½å¨ç±ç¨æ¶æ¿æ´»æé¡¯ç¤º"]),!1)}),Cc=Le(()=>{const e="uni.setClipboardData.",t=["success","fail"];gc().add(tc,yc(e,t,["Content copied","Copy failed, please copy manually"]),!1),gc().add(oc,yc(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),gc().add(nc,yc(e,t,["Contenu copié","Ãchec de la copie, copiez manuellement"]),!1),gc().add(Zl,yc(e,t,["å
容已å¤å¶","å¤å¶å¤±è´¥ï¼è¯·æå¨å¤å¶"]),!1),gc().add(ec,yc(e,t,["å
§å®¹å·²å¾©å¶","復å¶å¤±æï¼è«æå復製"]),!1)}),kc=Le(()=>{const e="uni.picker.",t=["done","cancel"];gc().add(tc,yc(e,t,["Done","Cancel"]),!1),gc().add(oc,yc(e,t,["OK","Cancelar"]),!1),gc().add(nc,yc(e,t,["OK","Annuler"]),!1),gc().add(Zl,yc(e,t,["宿","åæ¶"]),!1),gc().add(ec,yc(e,t,["宿","åæ¶"]),!1)}),Ac=Le(()=>{const e="uni.video.",t=["danmu","volume"];gc().add(tc,yc(e,t,["Danmu","Volume"]),!1),gc().add(oc,yc(e,t,["Danmu","Volumen"]),!1),gc().add(nc,yc(e,t,["Danmu","Le Volume"]),!1),gc().add(Zl,yc(e,t,["å¼¹å¹","é³é"]),!1),gc().add(ec,yc(e,t,["å½å¹","é³é"]),!1)});function Tc(e){const t=new ct;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const Ic="invokeViewApi",Ec="invokeServiceApi";let Bc=1;const Mc=Object.create(null);function Pc(e,t){return e+"."+t}function Oc(e,t,n){t=Pc(e,t),Mc[t]||(Mc[t]=n)}function zc({id:e,name:t,args:n},o){t=Pc(o,t);const i=t=>{e&&Mw.publishHandler(Ic+"."+e,t)},r=Mc[t];r?r(n,i):i({})}const Lc=c(Tc("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=Mw,r=n?Bc++:0;n&&o(Ec+"."+r,n,!0),i(Ec,{id:r,name:e,args:t})}}),Nc=Xe(!0);let Dc;function Rc(){Dc&&(clearTimeout(Dc),Dc=null)}let $c=0,jc=0;function Fc(e){if(Rc(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];$c=t,jc=n,Dc=setTimeout(function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)},350)}function Vc(e){if(!Dc)return;if(1!==e.touches.length)return Rc();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-$c)>10||Math.abs(n-jc)>10?Rc():void 0}function Hc(e,t){const n=Number(e);return isNaN(n)?t:n}function Wc(){const e=__uniConfig.globalStyle||{},t=Hc(e.rpxCalcMaxDeviceWidth,960),n=Hc(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Uc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qc,Qc,Yc=["top","left","right","bottom"],Gc={};function Xc(){return Qc="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Kc(){if(Qc="string"==typeof Qc?Qc:Xc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var o=document.createElement("div");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Yc.forEach(function(e){a(o,e)}),document.body.appendChild(o),r(),qc=!0}else Yc.forEach(function(e){Gc[e]=0});function i(e,t){var n=e.style;Object.keys(t).forEach(function(e){var o=t[e];n[e]=o})}function r(t){t?e.push(t):e.forEach(function(e){e()})}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Qc+"(safe-area-inset-"+n+")"};i(o,c),i(a,c),i(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(l),e.appendChild(o),e.appendChild(a),r(function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,i=a.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,i=a.scrollTop,function(e){Zc.length||setTimeout(function(){var e={};Zc.forEach(function(t){e[t]=Gc[t]}),Zc.length=0,eu.forEach(function(t){t(e)})},0);Zc.push(e)}(n))}o.addEventListener("scroll",r,t),a.addEventListener("scroll",r,t)});var u=getComputedStyle(o);Object.defineProperty(Gc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Jc(e){return qc||Kc(),Gc[e]}var Zc=[];var eu=[];const tu=Uc({get support(){return 0!=("string"==typeof Qc?Qc:Xc()).length},get top(){return Jc("top")},get left(){return Jc("left")},get right(){return Jc("right")},get bottom(){return Jc("bottom")},onChange:function(e){Xc()&&(qc||Kc(),"function"==typeof e&&eu.push(e))},offChange:function(e){var t=eu.indexOf(e);t>=0&&eu.splice(t,1)}}),nu=ds(()=>{},["prevent"]),ou=ds(e=>{},["stop"]);function iu(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function ru(){const e=iu(document.documentElement.style,"--window-top");return e?e+tu.top:0}function au(){const e=document.documentElement.style,t=ru(),n=iu(e,"--window-bottom"),o=iu(e,"--window-left"),i=iu(e,"--window-right"),r=iu(e,"--top-window-height");return{top:t,bottom:n?n+tu.bottom:0,left:o?o+tu.left:0,right:i?i+tu.right:0,topWindowHeight:r||0}}function su(e){const t=document.documentElement.style;Object.keys(e).forEach(n=>{t.setProperty(n,e[n])})}function lu(e){return su(e)}function cu(e){return Symbol(e)}function uu(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function du(e,t=!1){if(t)return function(e){if(!uu(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>yh(parseFloat(t))+"px")}(e);if(y(e)){const t=parseInt(e)||0;return uu(e)?yh(t):t}return e}function hu(e){return e.$page}function pu(e){return 0===e.tagName.indexOf("UNI-")}const fu="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",mu="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z",gu="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function yu(e,t="#000",n=27){return Vr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Vr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function bu(){{const{$pageInstance:e}=ea();return e&&Au(e.proxy)}}function vu(e){const t=Fe(e);if(t.$page)return Au(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return Au(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?Au(n):void 0}function _u(){const e=Wf(),t=e.length;if(t)return e[t-1]}function wu(){var e;const t=null==(e=_u())?void 0:e.$page;if(t)return t.meta}function xu(){const e=wu();return e?e.id:-1}function Su(){const e=_u();if(e)return e.$vm}const Cu=["navigationBar","pullToRefresh"];function ku(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=c({id:t},n,e);Cu.forEach(t=>{o[t]=c({},n[t],e[t])});const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function Au(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function Tu(e,t,n){if(y(e))n=t,t=e,e=Su();else if("number"==typeof e){const t=Wf().find(t=>hu(t).id===e);e=t?t.$vm:Su()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(o,n)}function Iu(e){e.preventDefault()}let Eu,Bu=0;function Mu({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,i=!1,r=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-Bu)>n;return!r||i&&!a?(!r&&i&&(i=!1),!1):(Bu=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout(function(){r=!0},350),!0}e&&e(window.pageYOffset),t&&r&&(a()||(Eu=setTimeout(a,300))),o=!1};return function(){clearTimeout(Eu),o||requestAnimationFrame(a),o=!0}}function Pu(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Pu(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i<o&&".."===n[i];i++);n.splice(0,i),t=n.join("/");const r=e.length>0?e.split("/"):[];return r.splice(r.length-i-1,i+1),ze(r.concat(n).join("/"))}function Ou(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}function zu(){Wc(),Qe(pu),window.addEventListener("touchstart",Fc,Nc),window.addEventListener("touchmove",Vc,Nc),window.addEventListener("touchend",Rc,Nc),window.addEventListener("touchcancel",Rc,Nc)}class Lu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(He(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter(e=>e.el&&He(e.el));if(e.length>0)return t?e.map(e=>e.el):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=$u(this.$el.querySelector(e));return t?Nu(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o<n.length;o++){const e=$u(n[o]);e&&t.push(Nu(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){let t="";if(!e||y(e))return t;for(const n in e){const o=e[n],i=n.startsWith("--")?n:B(n);(y(o)||"number"==typeof o)&&(t+=`${i}:${o};`)}return t}(e))}setStyle(e){return this.$el&&e?(y(e)&&(e=H(e)),S(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];g(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&Mw.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce((e,n)=>(e[n]=t[n],e),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Nu(e,t=!0){if(t&&e&&(e=Ve(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Lu(e)),e.$el.__wxsComponentDescriptor}function Du(e,t){return Nu(e,t)}function Ru(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Du(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=Ve(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Du(i,!1)]}}function $u(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function ju(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let a,s;a=Ke(t?i:function(e){for(;!pu(e);)e=e.parentElement;return e}(i)),s=Ke(r);const l={type:n,timeStamp:o,target:a,detail:{},currentTarget:s};return e instanceof CustomEvent&&S(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){c(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function Fu(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Vu(e,t){const n=[];for(let o=0;o<e.length;o++){const{identifier:i,pageX:r,pageY:a,clientX:s,clientY:l,force:c}=e[o];n.push({identifier:i,pageX:r,pageY:a-t,clientX:s,clientY:l-t,force:c||0})}return n}const Hu=Object.defineProperty({__proto__:null,$nne:function(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event&&o instanceof HTMLElement))return[e];const i=!pu(o);if(i)return Ru(e,t,n,!1)||[e];const r=ju(e,i);if("click"===e.type)!function(e,t){const{x:n,y:o}=t,i=ru();e.detail={x:n,y:o-i},e.touches=e.changedTouches=[Fu(t,i)]}(r,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=ru();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Fu(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=ru();r.touches=Vu(e.touches,t),r.changedTouches=Vu(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach(t=>{Object.defineProperty(r,t,{get:()=>e[t]})})}return Ru(r,t,n)||[r]},createNativeEvent:ju},Symbol.toStringTag,{value:"Module"});function Wu(e){!function(e){const t=e.globalProperties;c(t,Hu),t.$gcd=Du}(e._context.config)}let Uu=1;function qu(e){return(e||xu())+"."+Ic}const Qu=c(Tc("view"),{invokeOnCallback:(e,t)=>Pw.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Pw,a=o?Uu++:0;o&&i(Ic+"."+a,o,!0),r(qu(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:a}=Pw,s=Uu++,l=Ic+"."+s;return i(l,n),a(qu(o),{id:s,name:e,args:t},o),()=>{r(l)}}});function Yu(e){Tu(_u(),ge,e),Pw.invokeOnCallback("onWindowResize",e)}function Gu(e){const t=_u();Tu(lb(),re,e),Tu(t,re)}function Xu(){Tu(lb(),ae),Tu(_u(),ae)}const Ku=[be,_e];function Ju(){Ku.forEach(e=>Pw.subscribe(e,function(e){return(t,n)=>{Tu(parseInt(n),e,t)}}(e)))}function Zu(){!function(){const{on:e}=Pw;e(ge,Yu),e(Me,Gu),e(Pe,Xu)}(),Ju()}function ed(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new ot(this.$page.id)),e.eventChannel}}function td(e){e._context.config.globalProperties.getOpenerEventChannel=ed}function nd(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function od(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${yh(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function id(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,a=e.option,s=a.transition,l={},c=[];return r.forEach(e=>{let r=e.type,a=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?a=a.map(e=>parseFloat(e)+"deg"):r.startsWith("translate")&&(a=a.map(od)),n.indexOf(r)>=0&&(a.length=1),c.push(`${r}(${a.join(",")})`);else if(o.concat(i).includes(a[0])){r=a[0];const e=a[1];l[r]=i.includes(r)?od(e):e}}),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map(e=>`${function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach(t=>{e.$el.style[t]=s[t]}),n+=1,n<i&&setTimeout(r,a.duration+a.delay)}setTimeout(()=>{r()},0)}const rd={props:["animation"],watch:{animation:{deep:!0,handler(){id(this)}}},mounted(){id(this)}},ad=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(rd),sd(e)},sd=e=>(e.__reserved=!0,e.compatConfig={MODE:3},oi(e));function ld(e){return e.__wwe=!0,e}function cd(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=Ke(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const ud={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function dd(e){const t=$n(!1);let n,o,i=!1;function r(){requestAnimationFrame(()=>{clearTimeout(o),o=setTimeout(()=>{t.value=!1},parseInt(e.hoverStayTime))})}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout(()=>{t.value=!0,i||r()},parseInt(e.hoverStartTime)))}function s(){i=!1,t.value&&r()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:ld(function(e){e.touches.length>1||a(e)}),onMousedown:ld(function(e){i||(a(e),window.addEventListener("mouseup",l))}),onTouchend:ld(function(){s()}),onMouseup:ld(function(){i&&l()}),onTouchcancel:ld(function(){i=!1,t.value=!1,clearTimeout(n)})}}}function hd(e,t){return y(t)&&(t=[t]),t.reduce((t,n)=>(e[n]&&(t[n]=!0),t),Object.create(null))}const pd=cu("uf"),fd=cu("ul");function md(e,t){gd(e.id,t),$o(()=>e.id,(e,n)=>{yd(n,t,!0),gd(e,t,!0)}),Ti(()=>{yd(e.id,t)})}function gd(e,t,n){const o=bu();n&&!e||S(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Mw.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Mw.on(i,t[i]):e&&Mw.on(`uni-${i}-${o}-${e}`,t[i])})}function yd(e,t,n){const o=bu();n&&!e||S(t)&&Object.keys(t).forEach(i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&Mw.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?Mw.off(i,t[i]):e&&Mw.off(`uni-${i}-${o}-${e}`,t[i])})}const bd=ad({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=$n(null),o=ir(pd,!1),{hovering:i,binding:r}=dd(e),a=ld((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;}),s=ir(fd,!1);return s&&(s.addHandler(a),Ai(()=>{s.removeHandler(a)})),md(e,{"label-click":a}),()=>{const o=e.hoverClass,s=hd(e,"disabled"),l=hd(e,"loading"),c=hd(e,"plain"),u=o&&"none"!==o;return Vr("uni-button",Gr({ref:n,onClick:a,id:e.id,class:u&&i.value?o:""},u&&r,s,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),vd=cu("upm");function _d(){return ir(vd)}function wd(e){const t=function(e){return Sn(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=du(e.offset)),e.height&&(e.height=du(e.height)),e.range&&(e.range=du(e.range)),e}(c({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+tu.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Wf().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(ku(Gl().meta,e)))))}(e);return or(vd,t),t}function xd(){return Gl()}function Sd(){return history.state&&history.state.__id__||1}const Cd=["original","compressed"],kd=["album","camera"],Ad=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Td(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Id(e,t){return!p(e)||0===e.length||e.find(e=>-1===t.indexOf(e))?t:e}function Ed(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let Bd=1;const Md={};function Pd(e,t,n,o=!1){return Md[e]={name:t,keepAlive:o,callback:n},e}function Od(e,t,n){if("number"==typeof e){const o=Md[e];if(o)return o.keepAlive||delete Md[e],o.callback(t,n)}return t}function zd(e){for(const t in Md)if(Md[t].name===e)return!0;return!1}const Ld="success",Nd="fail",Dd="complete";function Rd(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:i,fail:r,complete:a}=function(e){const t={};for(const n in e){const o=e[n];g(o)&&(t[n]=Ed(o),delete e[n])}return t}(t),s=g(i),l=g(r),c=g(a),u=Bd++;return Pd(u,e,u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),g(n)&&n(u),u.errMsg===e+":ok"?(g(o)&&o(u,t),s&&i(u)):l&&r(u),c&&a(u)}),u}const $d="success",jd="fail",Fd="complete",Vd={},Hd={};function Wd(e,t){return function(n){return e(n,t)||n}}function Ud(e,t,n){let o=!1;for(let i=0;i<e.length;i++){const r=e[i];if(o)o=Promise.resolve(Wd(r,n));else{const e=r(t,n);if(_(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function qd(e,t={}){return[$d,jd,Fd].forEach(n=>{const o=e[n];if(!p(o))return;const i=t[n];t[n]=function(e){Ud(o,e,t).then(e=>g(i)&&i(e)||e)}}),t}function Qd(e,t){const n=[];p(Vd.returnValue)&&n.push(...Vd.returnValue);const o=Hd[e];return o&&p(o.returnValue)&&n.push(...o.returnValue),n.forEach(e=>{t=e(t)||t}),t}function Yd(e){const t=Object.create(null);Object.keys(Vd).forEach(e=>{"returnValue"!==e&&(t[e]=Vd[e].slice())});const n=Hd[e];return n&&Object.keys(n).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))}),t}function Gd(e,t,n,o){const i=Yd(e);if(i&&Object.keys(i).length){if(p(i.invoke)){return Ud(i.invoke,n).then(n=>t(qd(Yd(e),n),...o))}return t(qd(i,n),...o)}return t(n,...o)}function Xd(e,t){return(n={},...o)=>function(e){return!(!S(e)||![Ld,Nd,Dd].find(t=>g(e[t])))}(n)?Qd(e,Gd(e,t,c({},n),o)):Qd(e,new Promise((i,r)=>{Gd(e,t,c({},n,{success:i,fail:r}),o)}))}function Kd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,Od(e,c({errMsg:r},o))}function Jd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(y(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r<i.length;r++){const t=i[r],a=o[t];if(g(a)){const o=a(e[0][t],n);if(y(o))return o}else h(n,t)||(n[t]=a)}}(t,o);if(i)return i}function Zd(e){if(!g(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function eh(e,t,n){return o=>{Zd(o);const i=Jd(0,[o],0,n);if(i)throw new Error(i);const r=!zd(e);!function(e,t){Pd(Bd++,e,t,!0)}(e,o),r&&(!function(e){Pw.on("api."+e,t=>{for(const n in Md){const o=Md[n];o.name===e&&o.callback(t)}})}(e),t())}}function th(e,t,n){return o=>{Zd(o);const i=Jd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in Md){const o=Md[n];o.callback===t&&o.name===e&&delete Md[n]}}(e=e.replace("off","on"),o);zd(e)||(!function(e){Pw.off("api."+e)}(e),t())}}function nh(e,t,n,o){return n=>{const i=Rd(e,n,o),r=Jd(0,[n],0,o);return r?Kd(i,e,r):t(n,{resolve:t=>function(e,t,n){return Od(e,c(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>Kd(i,e,function(e){return!e||y(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function oh(e,t,n){return eh(e,t,n)}function ih(e,t,n){return th(e,t,n)}function rh(e,t,n,o){return Xd(e,nh(e,t,0,o))}function ah(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=Jd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function sh(e,t,n,o){return Xd(e,function(e,t,n,o){return nh(e,t,0,o)}(e,t,0,o))}function lh(e){return(t,{reject:n})=>n(function(e){return`method 'uni.${e}' not supported`}(e))}let ch=!1,uh=0,dh=0,hh=960,ph=375,fh=750;function mh(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=gm(),t=vm(bm(e,ym(e)));return{platform:dm?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();e=o,t=i,n=r}uh=e,dh=t,ch="ios"===n}function gh(e,t){const n=Number(e);return isNaN(n)?t:n}const yh=ah(0,(e,t)=>{if(0===uh&&(mh(),function(){const e=__uniConfig.globalStyle||{};hh=gh(e.rpxCalcMaxDeviceWidth,960),ph=gh(e.rpxCalcBaseDeviceWidth,375),fh=gh(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||uh;n=e===fh||n<=hh?n:ph;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==dh&&ch?.5:1),e<0?-o:o});function bh(e,t){Object.keys(t).forEach(n=>{g(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):p(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))})}const vh=ah(0,(e,t)=>{y(e)&&S(t)?bh(Hd[e]||(Hd[e]={}),t):S(e)&&bh(Vd,e)});const _h=new class{constructor(){this.$emitter=new ct}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},wh=ah(0,(e,t)=>(_h.on(e,t),()=>_h.off(e,t))),xh=ah(0,(e,t)=>(_h.once(e,t),()=>_h.off(e,t))),Sh=ah(0,(e,t)=>{p(e)||(e=e?[e]:[]),e.forEach(e=>{_h.off(e,t)})}),Ch=ah(0,(e,...t)=>{_h.emit(e,...t)}),kh=[.5,.8,1,1.25,1.5,2];class Ah{constructor(e,t){this.id=e,this.pageId=t}play(){_m(this.id,this.pageId,"play")}pause(){_m(this.id,this.pageId,"pause")}stop(){_m(this.id,this.pageId,"stop")}seek(e){_m(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){_m(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~kh.indexOf(e)||(e=1),_m(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){_m(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){_m(this.id,this.pageId,"exitFullScreen")}showStatusBar(){_m(this.id,this.pageId,"showStatusBar")}hideStatusBar(){_m(this.id,this.pageId,"hideStatusBar")}}const Th=ah(0,(e,t)=>new Ah(e,vu(t||Su()))),Ih=(e,t,n,o)=>{!function(e,t,n,o,i){Pw.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)})};function Eh(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Bh=Eh("width"),Mh=Eh("height"),Ph={PNG:"png",JPG:"jpg",JPEG:"jpg"},Oh={formatArgs:{x:Eh("x",0),y:Eh("y",0),width:Bh,height:Mh,destWidth:Eh("destWidth"),destHeight:Eh("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Ph[e];n||(n=Ph.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function zh(e,t,n,o,i){Pw.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,e=>{i&&i(e)})}var Lh=["scale","rotate","translate","setTransform","transform"],Nh=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Dh=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const Rh={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function $h(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e){return Math.min(255,parseInt(e.trim()))}).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map(function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))});var n=e.toLowerCase();if(h(Rh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Rh[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class jh{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,$h(t)])}}class Fh{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class Vh{constructor(e){this.width=e}}class Hh{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,a,s,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],zh(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new jh("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new jh("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new Fh(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new Vh(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],a=[];o.forEach(function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&s()}),1===o.length&&s(),o=a.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){a.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const Wh=Le(()=>{[...Lh,...Nh].forEach(function(e){Hh.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,a,s,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(a=n,s=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,a,s,l,c,n,o,i,r]:d(l)&&d(c)?[t,a,s,l,c]:[t,a,s],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}),Dh.forEach(function(e){Hh.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",$h(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=$h(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})}),Uh=ah(0,(e,t)=>{if(Wh(),t)return new Hh(e,vu(t));const n=vu(Su());if(n)return new Hh(e,n);Pw.emit(le,"createCanvasContext:fail")}),qh=sh("canvasToTempFilePath",({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:a,fileType:s,quality:l},{resolve:c,reject:u})=>{var d=vu(Su());if(!d)return void u();zh(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:l,dirname:"/canvas"},e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)})},0,Oh),Qh={thresholds:[0],initialRatio:0,observeAll:!1},Yh=["top","right","bottom","left"];let Gh=1;function Xh(e={}){return Yh.map(t=>`${Number(e[t])||0}px`).join(" ")}class Kh{constructor(e,t){this._pageId=vu(e),this._component=e,this._options=c({},Qh,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=Xh(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=Xh(e),this}observe(e,t){g(t)&&(this._options.selector=e,this._reqId=Gh++,function({reqId:e,component:t,options:n,callback:o}){const i=am(t);(i.__io||(i.__io={}))[e]=function(e,t,n){pf();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver(e=>{e.forEach(e=>{n({intersectionRatio:mf(e),intersectionRect:ff(e.intersectionRect),boundingClientRect:ff(e.boundingClientRect),relativeRect:ff(e.rootBounds),time:Date.now(),dataset:Ye(e.target),id:e.target.id})})},{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e<n.length;e++)i.observe(n[e])}else{i.USE_MUTATION_OBSERVER=!1;const n=e.querySelector(t.selector);n?i.observe(n):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return i}(i,n,o)}({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t}){const n=am(t),o=n.__io&&n.__io[e];o&&(o.disconnect(),delete n.__io[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const Jh=ah(0,(e,t)=>((e=Fe(e))&&!vu(e)&&(t=e,e=null),new Kh(e||Su(),t)));let Zh=0,ep={};const tp={canvas:Hh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Ih(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Ih(this.id,this.pageId,"moveToLocation",e)}getScale(e){Ih(this.id,this.pageId,"getScale",e)}getRegion(e){Ih(this.id,this.pageId,"getRegion",e)}includePoints(e){Ih(this.id,this.pageId,"includePoints",e)}translateMarker(e){Ih(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Ih(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Ih(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Ih(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Ih(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Ih(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Ih(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Ih(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Ih(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Ih(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Ih(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Ih(this.id,this.pageId,"openMapApp",e)}on(e,t){Ih(this.id,this.pageId,"on",{name:e,callback:t})}},video:Ah,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(Zh++);i.callbackId=e,ep[e]=o}Pw.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,({callbackId:e,data:t})=>{r&&(Re(ep[e],t),delete ep[e])})}(this.id,this.pageId,e,t)}}};function np(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=tp[n];e.context=new i(t,o),delete e.contextInfo}}class op{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class ip{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach(({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),a=r.parentElement;if(!a)return o?null:[];const{nodeType:s}=r,l=3===s||8===s;if(o){const e=l?a.querySelector(n):xm(r,n)?r:r.querySelector(n);return e?wm(e,i):null}{let e=[];const t=(l?a:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,t=>{e.push(wm(t,i))}),!l&&xm(r,n)&&e.unshift(wm(r,i)),e}}(e,t,n,i,r))}),n(o)}(this._page,this._queue,t=>{const n=this._queueCb;t.forEach((e,t)=>{p(e)?e.forEach(np):np(e);const o=n[t];g(o)&&o.call(this,e)}),g(e)&&e.call(this,t)}),this._nodesRef}in(e){return this._component=Fe(e),this}select(e){return this._nodesRef=new op(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new op(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new op(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const rp=ah(0,e=>((e=Fe(e))&&!vu(e)&&(e=null),new ip(e||Su()))),ap={formatArgs:{}},sp={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class lp{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=c({},sp,e)}_getOption(e){const t={transition:c({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach(e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e}),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const cp=Le(()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach(n=>{lp.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}})}),up=ah(0,e=>(cp(),new lp(e)),0,ap),dp=oh("onWindowResize",()=>{}),hp=ih("offWindowResize",()=>{}),pp=ah(0,()=>{const e=lb();return e&&e.$vm?e.$vm.$locale:gc().getLocale()}),fp={[de]:[],[ue]:[],[le]:[],[re]:[],[ae]:[]};const mp=ah(0,()=>c({},Im));let gp,yp,bp;const vp=[];const _p=sh("getPushClientId",(e,{resolve:t,reject:n})=>{Promise.resolve().then(()=>{var e,o;void 0===bp&&(bp=!1,gp="",yp="uniPush is not enabled"),vp.push((e,o)=>{e?t({cid:e}):n(o)}),void 0!==gp&&(e=gp,o=yp,vp.forEach(t=>{t(e,o)}),vp.length=0)})}),wp=e=>{},xp=e=>{},Sp={formatArgs:{showToast:!0},beforeInvoke(){Cc()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=gc(),o=n("uni.setClipboardData.success");o&&B_({title:o,icon:"success",mask:!1})}},Cp=(Boolean,"onCompass"),kp={formatArgs:{filePath(e,t){t.filePath=lm(e)}}},Ap=["wgs84","gcj02"],Tp={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Ap.indexOf(e)?t.type=Ap[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Ip=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Id(e,Cd)},sourceType(e,t){t.sourceType=Id(e,kd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),Ep={formatArgs:{sourceType(e,t){t.sourceType=Id(e,kd)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Bp=(Boolean,["all","image","video"]),Mp={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Id(e,kd)},type(e,t){t.type=Td(e,Bp)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},Pp={formatArgs:{src(e,t){t.src=lm(e)}}},Op={formatArgs:{urls(e,t){t.urls=e.map(e=>y(e)&&e?lm(e):"")},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:y(e)&&e&&(t.current=lm(e))}}},zp="saveImageToPhotosAlbum",Lp="json",Np=["text","arraybuffer"],Dp=encodeURIComponent;ArrayBuffer,Boolean;const Rp={formatArgs:{method(e,t){t.method=Td((e||"").toUpperCase(),Ad)},data(e,t){t.data=e||""},url(e,t){t.method===Ad[0]&&S(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let i=n[1]||"";e=n[0];const r=i.split("&").filter(e=>e),a={};r.forEach(e=>{const t=e.split("=");a[t[0]]=t[1]});for(const s in t)if(h(t,s)){let e=t[s];null==e?e="":S(e)&&(e=JSON.stringify(e)),a[Dp(s)]=Dp(e)}return i=Object.keys(a).map(e=>`${e}=${a[e]}`).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Ad[0]&&(Object.keys(n).find(e=>"content-type"===e.toLowerCase())||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Lp).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Np.indexOf(t.responseType)&&(t.responseType="text")}}},$p={formatArgs:{header(e,t){t.header=e||{}}}},jp={formatArgs:{filePath(e,t){e&&(t.filePath=lm(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Fp={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=Td((e||"").toUpperCase(),Ad)},protocols(e,t){y(e)&&(t.protocols=[e])}}};const Vp={url:{type:String,required:!0}},Hp="navigateTo",Wp="redirectTo",Up="reLaunch",qp="switchTab",Qp="preloadPage",Yp=(Zp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),Zp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),nf(Hp)),Gp=nf(Wp),Xp=nf(Up),Kp=nf(qp),Jp={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Wf().length-1,e)}}};function Zp(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}}}let ef;function tf(){ef=""}function nf(e){return{formatArgs:{url:of(e)},beforeAll:tf}}function of(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=Wf();return n.length&&(t=hu(n[n.length-1]).route),Pu(t,e)}(t)).split("?")[0],i=Ou(o,!0);if(!i)return"page `"+t+"` is not found";if(e===Hp||e===Wp){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===qp&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==qp&&e!==Qp||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!y(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))}),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if(e!==Qp){if(ef===t&&"appLaunch"!==n.openType)return`${ef} locked`;__uniConfig.ready&&(ef=t)}else if(i.meta.isTabBar){const e=Wf(),t=i.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const rf="setNavigationBarTitle",af={formatArgs:{duration:300}},sf={formatArgs:{itemColor:"#000"}},lf=(Boolean,{formatArgs:{title:"",mask:!1}}),cf=(Boolean,{beforeInvoke(){xc()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!h(t,"cancelText")){const{t:e}=gc();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!h(t,"confirmText")){const{t:e}=gc();t.confirmText=e("uni.showModal.confirm")}},confirmColor:ne}}),uf=["success","loading","none","error"],df=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Td(e,uf)},image(e,t){t.image=e?lm(e):""},duration:1500,mask:!1}}),hf="stopPullDownRefresh",pf=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=i(e);t;)t=i(e=t.ownerDocument);return e}(),t=[],n=null,o=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){o=e&&n?h(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),n},a._resetCrossOriginUpdater=function(){n=null,o=null},a.prototype.observe=function(e){if(!this._observationTargets.some(function(t){return t.element==e})){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter(function(t){return t.element!=e}),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]})},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map(function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}});return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,r=null,a=null;this.POLL_INTERVAL?r=n.setInterval(o,this.POLL_INTERVAL):(s(n,"resize",o,!0),s(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(r&&e.clearInterval(r),l(e,"resize",o,!0)),l(t,"scroll",o,!0),a&&a.disconnect()});var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=i(t);u&&this._monitorIntersections(u.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=o;){var r=i(n);if((n=r&&r.ownerDocument)==t)return!0}return!1})){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),t!=o){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!n||o){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(o){var i=o.element,a=u(i),s=this._rootContainsTarget(i),l=o.entry,c=e&&s&&this._computeTargetAndRootIntersection(i,a,t),d=null;this._rootContainsTarget(i)?n&&!this.root||(d=t):d={top:0,bottom:0,left:0,right:0,width:0,height:0};var h=o.entry=new r({time:window.performance&&performance.now&&performance.now(),target:i,boundingClientRect:a,rootBounds:d,intersectionRect:c});l?e&&s?this._hasCrossedThreshold(l,h)&&this._queuedEntries.push(h):l&&l.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(t,i,r){if("none"!=window.getComputedStyle(t).display){for(var a=i,s=f(t),l=!1;!l&&s;){var d=null,p=1==s.nodeType?window.getComputedStyle(s):{};if("none"==p.display)return null;if(s==this.root||9==s.nodeType)if(l=!0,s==this.root||s==e)n&&!this.root?!o||0==o.width&&0==o.height?(s=null,d=null,a=null):d=o:d=r;else{var m=f(s),g=m&&u(m),y=m&&this._computeTargetAndRootIntersection(m,g,r);g&&y?(s=m,d=h(g,y)):(s=null,a=null)}else{var b=s.ownerDocument;s!=b.body&&s!=b.documentElement&&"visible"!=p.overflow&&(d=u(s))}if(d&&(a=c(d,a)),!a)break;s=s&&f(s)}return a}},a.prototype._getRootRect=function(){var t;if(this.root&&!m(this.root))t=u(this.root);else{var n=m(this.root)?this.root:e,o=n.documentElement,i=n.body;t={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map(function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100}),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var i=0;i<this.thresholds.length;i++){var r=this.thresholds[i];if(r==n||r==o||r<n!=r<o)return!0}},a.prototype._rootIsInDom=function(){return!this.root||p(e,this.root)},a.prototype._rootContainsTarget=function(t){var n=this.root&&(this.root.ownerDocument||this.root)||e;return p(n,t)&&(!this.root||n==t.ownerDocument)},a.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},a.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=r}function i(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}function r(e){this.time=e.time,this.target=e.target,this.rootBounds=d(e.rootBounds),this.boundingClientRect=d(e.boundingClientRect),this.intersectionRect=d(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n,o,i,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType&&9!=r.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,i=null,function(){i||(i=setTimeout(function(){n(),i=null},o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map(function(e){return e.value+e.unit}).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function l(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function c(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),r=Math.min(e.right,t.right),a=r-i,s=o-n;return a>=0&&s>=0&&{top:n,bottom:o,left:i,right:r,width:a,height:s}||null}function u(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function d(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function h(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function p(e,t){for(var n=t;n;){if(n==e)return!0;n=f(n)}return!1}function f(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?i(t):(n&&n.assignedSlot&&(n=n.assignedSlot.parentNode),n&&11==n.nodeType&&n.host?n.host:n)}function m(e){return e&&9===e.nodeType}};function ff(e){const{bottom:t,height:n,left:o,right:i,top:r,width:a}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:a}}function mf(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return 0!==t?t:i===n?r/o:i/n}function gf(){const e=Su();if(!e)return;const t=Hf(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:qf(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Tu(e,ae))}function yf(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function bf(e){const t=Hf().values();for(const n of t){const t=Df(n);if(yf(e,t))return n.$.__isActive=!0,t.id}}const vf=sh(qp,({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Rf.handledBeforeEntryPageRoutes)return gf(),Cf({type:qp,url:e,tabBarText:t,isAutomatedTesting:n},bf(e)).then(o).catch(i);jf.push({args:{type:qp,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Kp);function _f(){const e=_u();if(!e)return;const t=Df(e);qf(Xf(t.path,t.id))}const wf=sh(Wp,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Rf.handledBeforeEntryPageRoutes)return _f(),Cf({type:Wp,url:e,isAutomatedTesting:t}).then(n).catch(o);Ff.push({args:{type:Wp,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Gp);function xf(){const e=Hf().keys();for(const t of e)qf(t)}const Sf=sh(Up,({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Rf.handledBeforeEntryPageRoutes)return xf(),Cf({type:Up,url:e,isAutomatedTesting:t}).then(n).catch(o);Vf.push({args:{type:Up,url:e,isAutomatedTesting:t},resolve:n,reject:o})},0,Xp);function Cf({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const a=lb().$router,{path:s,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:tt(n||"")}}(t);return new Promise((t,c)=>{const u=function(e,t){return{__id__:t||++Qf,__type__:e}}(e,r);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:u,force:!0}).then(r=>{if(pl(r))return c(r.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach(t=>{e.eventChannel._addListener(t,"on",o[t])}),e.eventChannel._clearCache()):e.eventChannel=new ot(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()})})}function kf(){if(Rf.handledBeforeEntryPageRoutes)return;Rf.handledBeforeEntryPageRoutes=!0;const e=[...$f];$f.length=0,e.forEach(({args:e,resolve:t,reject:n})=>Cf(e).then(t).catch(n));const t=[...jf];jf.length=0,t.forEach(({args:e,resolve:t,reject:n})=>(gf(),Cf(e,bf(e.url)).then(t).catch(n)));const n=[...Ff];Ff.length=0,n.forEach(({args:e,resolve:t,reject:n})=>(_f(),Cf(e).then(t).catch(n)));const o=[...Vf];Vf.length=0,o.forEach(({args:e,resolve:t,reject:n})=>(xf(),Cf(e).then(t).catch(n)))}let Af;function Tf(){var e;return Af||(Af=__uniConfig.tabBar&&Sn((e=__uniConfig.tabBar,dc()&&e.list&&e.list.forEach(e=>{mc(e,["text"])}),e))),Af}function If(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const Ef=If("top:env(a)"),Bf=If("top:constant(a)"),Mf=If("backdrop-filter:blur(10px)"),Pf=(()=>Ef?"env":Bf?"constant":"")();function Of(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=Tf();e.shown&&(n=parseInt(e.height))}var o;lu({"--window-top":(o=t,Pf?`calc(${o}px + ${Pf}(safe-area-inset-top))`:`${o}px`),"--window-bottom":zf(n)})}function zf(e){return Pf?`calc(${e}px + ${Pf}(safe-area-inset-bottom))`:`${e}px`}const Lf="$$",Nf=new Map;function Df(e){return e.$page}const Rf={handledBeforeEntryPageRoutes:!1},$f=[],jf=[],Ff=[],Vf=[];function Hf(){return Nf}function Wf(){return Uf()}function Uf(){const e=[],t=Nf.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function qf(e,t=!0){const n=Nf.get(e);n.$.__isUnload=!0,Tu(n,pe),Nf.delete(e),t&&function(e){const t=Kf.get(e);t&&(Kf.delete(e),Jf.pruneCacheEntry(t))}(e)}let Qf=Sd();function Yf(e){const t=_d();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,r){const{id:a,route:s}=o,l=ht(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:a,path:ze(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Gf(e){const t=Yf(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),Nf.set(Xf(t.path,t.id),e),1===Nf.size&&setTimeout(()=>{kf()},0)}function Xf(e,t){return e+Lf+t}const Kf=new Map,Jf={get:e=>Kf.get(e),set(e,t){!function(e){const t=parseInt(e.split(Lf)[1]);if(!t)return;Jf.forEach((e,n)=>{const o=parseInt(n.split(Lf)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Jf.delete(n),Jf.pruneCacheEntry(e),lo(()=>{Nf.forEach((e,t)=>{e.$.isUnmounted&&Nf.delete(t)})})}})}(e),Kf.set(e,t)},delete(e){Kf.get(e)&&Kf.delete(e)},forEach(e){Kf.forEach(e)}};function Zf(e,t){!function(e){const t=tm(e),{body:n}=document;nm&&n.removeAttribute(nm),t&&n.setAttribute(t,""),nm=t}(e),Of(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),rm(e,t)}function em(e){const t=tm(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function tm(e){return e.type.__scopeId}let nm;const om=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",()=>{},t)}catch(t){}return e})()&&{passive:!1};let im;function rm(e,t){if(document.removeEventListener("touchmove",Iu),im&&document.removeEventListener("scroll",im),t.disableScroll)return document.addEventListener("touchmove",Iu,om);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},a=Df(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&Mw.publishHandler(be,{scrollTop:o},e),n&&Mw.emit(e+"."+be,{scrollTop:o})}}(a,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>Mw.publishHandler(_e,{},a)),im=Mu(r),requestAnimationFrame(()=>document.addEventListener("scroll",im))}function am(e){return e.$el}function sm(e){const{base:t}=__uniConfig.router;return 0===ze(e).indexOf(t)?ze(e):t+e}function lm(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return sm(e.slice(1));e="https:"+e}if(oe.test(e)||ie.test(e)||0===e.indexOf("blob:"))return e;const o=Uf();return o.length?sm(Pu(Df(o[o.length-1]).route,e).slice(1)):e}const cm=navigator.userAgent,um=/android/i.test(cm),dm=/iphone|ipad|ipod/i.test(cm),hm=cm.match(/Windows NT ([\d|\d.\d]*)/i),pm=/Macintosh|Mac/i.test(cm),fm=/Linux|X11/i.test(cm),mm=pm&&navigator.maxTouchPoints>0;function gm(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function ym(e){return e&&90===Math.abs(window.orientation)}function bm(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function vm(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function _m(e,t,n,o){Pw.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function wm(e,t){const n={},{top:o,topWindowHeight:i}=au();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=Ye(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(p(t.properties)&&t.properties.forEach(e=>{e=e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(p(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach(e=>{n[e]=o[e]})}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function xm(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const Sm={};function Cm(e,t){const n=Sm[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const a=new Uint8Array(r);for(;r--;)a[r]=i.charCodeAt(r);return km(a,o)}(e)):t?Promise.reject(new Error("not find")):new Promise((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()})}function km(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function Am(e){for(const n in Sm)if(h(Sm,n)){if(Sm[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return Sm[t]=e,t}function Tm(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete Sm[e]}const Im=nd(),Em=nd();const Bm=ad({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=$n(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=Sn({width:-1,height:-1});return $o(()=>c({},o),e=>t("resize",e)),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){hi(o),Si(()=>{t.initial&&lo(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()})}(n,e,i,o),()=>Vr("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[Vr("div",{onScroll:i},[Vr("div",null,null)],40,["onScroll"]),Vr("div",{onScroll:i},[Vr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Mm=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function Pm(e,t=!0){const n=t?Mm:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Om=!1;function zm(){if(Om)return;Om=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,a,s,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Mm,o*=Mm,i*=Mm,r*=Mm,a*=Mm,s*=Mm,l=u?l*Mm:l,c=u?c*Mm:c,e.call(this,t,n,o,i,r,a,s,l,c)}}(t.drawImage),1!==Mm&&(!function(e,t){for(const n in e)h(e,n)&&t(e[n],n)}(e,function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map(function(e){return e*Mm});else if(Array.isArray(e))for(let t=0;t<e.length;t++)n[e[t]]*=Mm;return t.apply(this,n)}}(t[n])}),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Mm,e.apply(this,arguments),this.lineWidth/=Mm}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);const t=Array.prototype.slice.call(arguments);t[1]*=Mm,t[2]*=Mm,t[3]&&"number"==typeof t[3]&&(t[3]*=Mm);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(e,t,n){return t*Mm+n}),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Mm,t[2]*=Mm,t[3]&&"number"==typeof t[3]&&(t[3]*=Mm);var n=this.__font__||this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,function(e,t,n){return t*Mm+n}),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Mm,Mm),e.apply(this,arguments),this.scale(1/Mm,1/Mm)}}(t.drawImage))}const Lm=Le(()=>zm());function Nm(e){return e?lm(e):e}function Dm(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Rm(e,t){Array.from(t).forEach(t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top})}let $m;function jm(e=0,t=0){return $m||($m=document.createElement("canvas")),$m.width=e,$m.height=t,$m}const Fm=ad({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Lm();const o=$n(null),i=$n(null),r=$n(null),a=$n(!1),s=function(e){return(t,n)=>{e(t,ju(n))}}(t),{$attrs:l,$excludeAttrs:u,$listeners:d}=Mg({excludeListeners:!0}),{_listeners:p}=function(e,t,n){const o=ha(()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=c({},(()=>{let e={};for(const t in i)if(h(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach(t=>{let o=[];r[t]&&o.push(ld(e=>{const o=e.currentTarget.getBoundingClientRect();Rm(o,e.touches),Rm(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)})),e.disableScroll&&"onTouchmove"===t&&o.push(nu),r[t]=o}),r});return{_listeners:o}}(e,d,s),{_handleSubscribe:f,_resize:m}=function(e,t,n){let o=[],i={};const r=ha(()=>e.hidpi?Mm:1);function a(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);Pm(o,e.hidpi),t.putImageData(n,0,0)}else Pm(o,e.hidpi)}function s({actions:e,reserve:r},a){if(!e)return;if(n.value)return void o.push([e,r]);let s=t.value,c=s.getContext("2d");r||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height)),l(e);for(let t=0;t<e.length;t++){const n=e[t];let o=n.method;const r=n.data,s=r[0];if(/^set/.test(o)&&"setTransform"!==o){const n=o[3].toLowerCase()+o.slice(4);let i;if("fillStyle"===n||"strokeStyle"===n){if("normal"===s)i=Dm(r[1]);else if("linear"===s){const e=c.createLinearGradient(...r[1]);r[2].forEach(function(t){const n=t[0],o=Dm(t[1]);e.addColorStop(n,o)}),i=e}else if("radial"===s){let e=r[1];const t=e[0],n=e[1],o=e[2],a=c.createRadialGradient(t,n,0,t,n,o);r[2].forEach(function(e){const t=e[0],n=Dm(e[1]);a.addColorStop(t,n)}),i=a}else if("pattern"===s){if(!u(r[1],e.slice(t+1),a,function(e){e&&(c[n]=c.createPattern(e,r[2]))}))break;continue}c[n]=i}else if("globalAlpha"===n)c[n]=Number(s)/255;else if("shadow"===n){let e=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];r.forEach(function(t,n){c[e[n]]="shadowColor"===e[n]?Dm(t):t})}else if("fontSize"===n){const e=c.__font__||c.font;c.__font__=c.font=e.replace(/\d+\.?\d*px/,s+"px")}else"lineDash"===n?(c.setLineDash(s),c.lineDashOffset=r[1]||0):"textBaseline"===n?("normal"===s&&(r[0]="alphabetic"),c[n]=s):"font"===n?c.__font__=c.font=s:c[n]=s}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),c.beginPath(),r.forEach(function(e){c[e.method].apply(c,e.data)}),c[o]();else if("fillText"===o)c.fillText.apply(c,r);else if("drawImage"===o){if("break"===function(){let n=[...r],o=n[0],s=n.slice(1);if(i=i||{},!u(o,e.slice(t+1),a,function(e){e&&c.drawImage.apply(c,[e].concat([...s.slice(4,8)],[...s.slice(0,4)]))}))return"break"}())break}else"clip"===o?(r.forEach(function(e){c[e.method].apply(c,e.data)}),c.clip()):c[o].apply(c,r)}n.value||a({errMsg:"drawCanvas:ok"})}function l(e){e.forEach(function(e){let t=e.method,n=e.data,o="";function r(){const e=i[o]=new Image;e.onload=function(){e.ready=!0},function(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):Cm(e).then(Am)}(o).then(t=>{e.src=t}).catch(()=>{e.src=o})}"drawImage"===t?(o=n[0],o=Nm(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=Nm(o),n[1]=o),o&&!i[o]&&r()})}function u(e,t,r,a){let l=i[e];return l.ready?(a(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,a(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)s({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:o,height:i,destWidth:a,destHeight:s,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;o=o?Math.min(o,m):m;const g=p.offsetHeight-n;i=i?Math.min(i,g):g,l?(a=o,s=i):a||s?a?s||(s=Math.round(i/o*a)):(s||(s=Math.round(i*r.value)),a=Math.round(o/i*s)):(a=Math.round(o*r.value),s=Math.round(i*r.value));const y=jm(a,s),b=y.getContext("2d");let v;"jpeg"!==d&&"jpg"!==d||(d="jpeg",b.fillStyle="#fff",b.fillRect(0,0,a,s)),b.__hidpi__=!0,b.drawImageByCanvas(p,e,n,o,i,0,0,a,s,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=b.getImageData(0,0,a,s);f=Array.prototype.slice.call(e.data)}v={data:f,compressed:e,width:a,height:s}}catch(_){v={errMsg:`canvasGetImageData:fail ${_}`}}if(y.height=y.width=0,b.__hidpi__=!1,!h)return v;h(v)}function h({data:e,x:n,y:o,width:i,height:r,compressed:a},s){try{0,r||(r=Math.round(e.length/4/i));const a=jm(i,r);a.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(a,n,o,i,r),a.height=a.width=0}catch(l){return void s({errMsg:"canvasPutImageData:fail"})}s({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:a,quality:s,dirname:l},c){const u=d({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:a,quality:s});var h;u.errMsg?c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")}):(h=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h))}const f={actionsChanged:s,getImageData:d,putImageData:h,toTempFilePath:p};function m(e,t,n){let o=f[e];0!==e.indexOf("_")&&g(o)&&o(t,n)}return c(f,{_resize:a,_handleSubscribe:m})}(e,i,a);return $y(f,Fy(e.canvasId),!0),Si(()=>{m()}),()=>{const{canvasId:t,disableScroll:a}=e;return Vr("uni-canvas",Gr({ref:o,"canvas-id":t,"disable-scroll":a},l.value,u.value,p.value),[Vr("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Vr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Vr(Bm,{ref:r,onResize:m},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Vm=cu("ucg"),Hm=ad({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=$n(null),o=$n(e.checked),i=ha(()=>"true"===o.value||!0===o.value),r=$n(e.value);const a=ha(()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value));$o([()=>e.checked,()=>e.value],([e,t])=>{o.value=e,r.value=t});const{uniCheckGroup:s,uniLabel:l}=function(e,t,n){const o=ha(()=>({checkboxChecked:Boolean(e.value),value:t.value})),i={reset:n},r=ir(Vm,!1);r&&r.addField(o);const a=ir(pd,!1);a&&a.addField(i);const s=ir(fd,!1);return Ai(()=>{r&&r.removeField(o),a&&a.removeField(i)}),{uniCheckGroup:r,uniForm:a,uniLabel:s}}(o,r,()=>{o.value=!1}),c=t=>{e.disabled||(o.value=!o.value,s&&s.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),Ai(()=>{l.removeHandler(c)})),md(e,{"label-click":c}),()=>{const i=hd(e,"disabled");let r;return r=o.value,Vr("uni-checkbox",Gr(i,{id:e.id,onClick:c,ref:n}),[Vr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[Vr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:a.value},[r?yu(fu,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Wm(){}const Um={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function qm(e,t,n){function o(e){const t=ha(()=>0===String(navigator.vendor).indexOf("Apple"));e.addEventListener("focus",()=>{clearTimeout(void 0),document.addEventListener("click",Wm,!1)});e.addEventListener("blur",()=>{t.value&&e.blur(),document.removeEventListener("click",Wm,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)})}$o(()=>t.value,e=>e&&o(e))}var Qm=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Ym=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Gm=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Xm=ng("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Km=ng("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Jm=ng("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Zm=ng("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),eg=ng("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),tg=ng("script,style");function ng(e){for(var t={},n=e.split(","),o=0;o<n.length;o++)t[n[o]]=!0;return t}const og={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},ig={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},rg={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},ag=ad({name:"Image",props:og,setup(e,{emit:t}){const n=$n(null),o=function(e,t){const n=$n(""),o=ha(()=>{let e="auto",o="";const i=rg[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`}),i=Sn({rootEl:e,src:ha(()=>t.src?lm(t.src):""),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Si(()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0}),i}(n,e),i=cd(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=ig[o];if(!i)return;const{origWidth:r,origHeight:a}=n,s=r&&a?r/a:0;if(!s)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){sg&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,s))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return $o(()=>t.mode,(e,t)=>{ig[t]&&i(),ig[e]&&o()}),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void s();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;s(u,d,l),lo(()=>{o()}),r.draggable=t.draggable,a&&a.remove(),a=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{s(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};$o(()=>e.src,e=>l(e)),$o(()=>e.imgSrc,e=>{!e&&a&&(a.remove(),a=null)}),Si(()=>l(e.src)),Ai(()=>c())}(o,e,n,r,i),()=>Vr("uni-image",{ref:n},[Vr("div",{style:o.modeStyle},null,4),ig[e.mode]?Vr(Bm,{onResize:r},null,8,["onResize"]):Vr("span",null,null)],512)}});const sg="Google Inc."===navigator.vendor;const lg=Xe(!0),cg=[];let ug=0,dg=!1;const hg=e=>cg.forEach(t=>t.userAction=e);function pg(e={userAction:!1}){if(!dg){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach(e=>{document.addEventListener(e,function(){!ug&&hg(!0),ug++,setTimeout(()=>{! --ug&&hg(!1)},0)},lg)}),dg=!0}cg.push(e)}const fg=()=>!!ug;function mg(){const e=Sn({userAction:!1});return Si(()=>{pg(e)}),Ai(()=>{!function(e){const t=cg.indexOf(e);t>=0&&cg.splice(t,1)}(e)}),{state:e}}function gg(){const e=Sn({attrs:{}});return Si(()=>{let t=ea();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}}),{state:e}}function yg(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function bg(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const vg=["none","text","decimal","numeric","tel","search","email","url"],_g=c({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~vg.indexOf(e)},cursorColor:{type:String,default:""}},Um),wg=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function xg(e,t,n,o){let i=null;i=nt(n=>{t.value=bg(n,e.type)},100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),$o(()=>e.modelValue,i),$o(()=>e.value,i);const r=function(e,t){let n,o,i=0;const r=function(...r){const a=Date.now();clearTimeout(n),o=()=>{o=null,i=a,e.apply(this,r)},a-i<t?n=setTimeout(o,t-(a-i)):o()};return r.cancel=function(){clearTimeout(n),o=null},r.flush=function(){clearTimeout(n),o&&o()},r}((e,t)=>{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)},100);return xi(()=>{i.cancel(),r.cancel()}),{trigger:o,triggerInput:(e,t,n)=>{i.cancel(),r(e,t),n&&r.flush()}}}function Sg(e,t){mg();const n=ha(()=>e.autoFocus||e.focus);function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}$o(()=>e.focus,e=>{e?o():function(){const e=t.value;e&&e.blur()}()}),Si(()=>{n.value&&lo(o)})}function Cg(e,t,n,o){Oc(xu(),"getSelectedTextRange",yg);const{fieldRef:i,state:r,trigger:a}=function(e,t,n){const o=$n(null),i=cd(t,n),r=ha(()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t}),a=ha(()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t}),s=ha(()=>{const t=Number(e.cursor);return isNaN(t)?-1:t}),l=ha(()=>{var t=Number(e.maxlength);return isNaN(t)?140:t});let c="";c=bg(e.modelValue,e.type)||bg(e.value,e.type);const u=Sn({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:a,cursor:s});return $o(()=>u.focus,e=>n("update:focus",e)),$o(()=>u.maxlength,e=>u.value=u.value.slice(0,e),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:s}=xg(e,r,n,a);Sg(e,i),qm(0,i);const{state:l}=gg();!function(e,t){const n=ir(pd,!1);if(!n)return;const o=ea(),i={submit(){const n=o.proxy;return[n[e],y(t)?n[t]:t.value]},reset(){y(t)?o.proxy[t]="":t.value=""}};n.addField(i),Ai(()=>{n.removeField(i)})}("name",r),function(e,t,n,o,i,r){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}$o([()=>t.selectionStart,()=>t.selectionEnd],a),$o(()=>t.cursor,s),$o(()=>e.value,function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),g(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",e=>e.stopPropagation()),c.addEventListener("focus",function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()}),c.addEventListener("blur",function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})}),c.addEventListener("input",u),c.addEventListener("compositionstart",e=>{e.stopPropagation(),t.composing=!0,d(e)}),c.addEventListener("compositionend",e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)}),c.addEventListener("compositionupdate",d)})}(i,r,e,a,s,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const kg=c({},_g,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),Ag=Le(()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}});function Tg(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&Ag()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Ig=ad({name:"Input",props:kg,emits:["confirm",...wg],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=ha(()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t}),a=ha(()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(B(e.textContentType));return i[-1!==t?t:-1!==n?n:0]});let s=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=$n(null!=t?t.toLocaleString():"");return $o(()=>e.modelValue,e=>{n.value=null!=e?e.toLocaleString():""}),$o(()=>e.value,e=>{n.value=null!=e?e.toLocaleString():""}),n}return $n("")}(e,r),l={fn:null};const c=$n(null),{fieldRef:u,state:d,scopedAttrsState:h,fixDisabledColor:p,trigger:f}=Cg(e,c,t,(t,n)=>{const o=t.target;if("number"===r.value){if(l.fn&&(o.removeEventListener("blur",l.fn),l.fn=null),o.validity&&!o.validity.valid){if((!s.value||!o.value)&&"-"===t.data||"-"===s.value[0]&&"deleteContentBackward"===t.inputType)return s.value="-",n.value="",l.fn=()=>{s.value=o.value=""},o.addEventListener("blur",l.fn),!1;const e=Tg(t,s,n,o,l);return"boolean"==typeof e?e:(s.value=n.value=o.value="-"===s.value?"":s.value,!1)}{const e=Tg(t,s,n,o,l);if("boolean"==typeof e)return e;s.value=o.value}const i=n.maxlength;if(i>0&&o.value.length>i){o.value=o.value.slice(0,i),n.value=o.value;return(void 0!==e.modelValue&&null!==e.modelValue?e.modelValue.toString():"")!==o.value}}});$o(()=>d.value,t=>{"number"!==e.type||"-"===s.value&&""===t||(s.value=t.toString())});const m=["number","digit"],g=ha(()=>m.includes(e.type)?e.step:"");function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),f("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?Vr("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):Vr("input",{key:"input",ref:u,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:r.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:y,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return Vr("uni-input",{ref:c},[Vr("div",{class:"uni-input-wrapper"},[Wo(Vr("div",Gr(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[La,!(d.value.length||"-"===s.value||s.value.includes("."))]]),"search"===e.confirmType?Vr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Eg=["class","style"],Bg=/^on[A-Z]+/,Mg=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=ea(),i=jn({}),r=jn({}),a=jn({}),s=n.concat(Eg);return o.attrs=Sn(o.attrs),Do(()=>{const e=(n=o.attrs,Object.keys(n).map(e=>[e,n[e]])).reduce((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:Bg.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,a.value=e.exclude}),{$attrs:i,$listeners:r,$excludeAttrs:a}};function Pg(e){const t=[];return p(e)&&e.forEach(e=>{Nr(e)?e.type===Cr?t.push(...Pg(e.children)):t.push(e):p(e)&&t.push(...Pg(e))}),t}const Og=ad({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=$n(null),o=$n(!1);let{setContexts:i,events:r}=function(e,t){const n=$n(0),o=$n(0),i=Sn({x:null,y:null}),r=$n(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach(function(e){e._setScale(t)}):a&&a._setScale(t))}function c(e,n=s){let o=t.value;function i(e){for(let t=0;t<n.length;t++){const o=n[t];if(e===o.rootRef.value)return o}return e===o||e===document.body||e===document?null:i(e.parentNode)}return i(e)}const u=ld(t=>{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(r.value=zg(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}}),d=ld(e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&r.value&&r.value>0){l(zg(n)/r.value)}i.x=n.x,i.y=n.y}}),h=ld(t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?s.forEach(function(e){e._endScale()}):a&&a._endScale())});function p(){f(),s.forEach(function(e,t){e.setParent()})}function f(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce(function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])},0),o.value=i.height-["Top","Bottom"].reduce(function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])},0)}return or("movableAreaWidth",n),or("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Mg(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach(e=>{let t=c[e],n=r[`_${e}`];c[e]=t?[].concat(t,n):n}),Si(()=>{r._resize(),o.value=!0});let u=[];const d=[];function h(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n=n.el;const o=d.find(e=>n===e.rootRef.value);o&&e.push(Pn(o))}i(e)}return or("_isMounted",o),or("movableAreaRootRef",n),or("addMovableViewContext",e=>{d.push(e),h()}),or("removeMovableViewContext",e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())}),()=>{const e=t.default&&t.default();return u=Pg(e),Vr("uni-movable-area",Gr({ref:n},s.value,l.value,c),[Vr(Bm,{onResize:r._resize},null,8,["onResize"]),u],16)}}});function zg(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Lg=function(e,t,n,o){e.addEventListener(t,e=>{g(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())},{passive:!1})};let Ng,Dg;function Rg(e,t,n){Ai(()=>{document.removeEventListener("mousemove",Ng),document.removeEventListener("mouseup",Dg)});let o=0,i=0,r=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-o,dy:l-i,ddx:s-r,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Lg(e,"touchstart",function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=a=e.touches[0].pageY,s(e,"start",o,i)}),Lg(e,"mousedown",function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=a=e.pageY,s(e,"start",o,i)}),Lg(e,"touchmove",function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,a=e.touches[0].pageY,t}});const d=Ng=function(e){if(!l&&c&&u){const t=s(e,"move",e.pageX,e.pageY);return r=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Lg(e,"touchend",function(e){if(0===e.touches.length&&u)return l=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)});const h=Dg=function(e){if(c=!1,!l&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Lg(e,"touchcancel",function(e){if(u){l=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}})}function $g(e,t,n){return e>t-n&&e<t+n}function jg(e,t){return $g(e,0,t)}function Fg(){}function Vg(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Hg(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Wg(e,t,n){this._springX=new Hg(e,t,n),this._springY=new Hg(e,t,n),this._springScale=new Hg(e,t,n),this._startTime=0}Fg.prototype.x=function(e){return Math.sqrt(e)},Vg.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Vg.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Vg.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Vg.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Vg.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Vg.prototype.dt=function(){return-this._x_v/this._x_a},Vg.prototype.done=function(){const e=$g(this.s().x,this._endPositionX)||$g(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Vg.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Vg.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Hg.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,a=t/(i*e);return{x:function(e){return(r+a*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+a*e)*t+a*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),a=(-n+Math.sqrt(r))/(2*o),s=(t-i*e)/(a-i),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*i*t+s*a*n}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}},Hg.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Hg.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Hg.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!jg(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(jg(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),jg(t,.1)&&(t=0),jg(o,.1)&&(o=0),o+=this._endPosition),this._solution&&jg(o-e,.1)&&jg(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Hg.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Hg.prototype.done=function(e){return e||(e=(new Date).getTime()),$g(this.x(),this._endPosition,.1)&&jg(this.dx(),.1)},Hg.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Hg.prototype.springConstant=function(){return this._k},Hg.prototype.damping=function(){return this._c},Hg.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},Wg.prototype.setEnd=function(e,t,n,o){const i=(new Date).getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Wg.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},Wg.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Wg.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Ug(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const qg=ad({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=$n(null),i=cd(o,n),{setParent:r}=function(e,t,n){const o=ir("_isMounted",$n(!1)),i=ir("addMovableViewContext",()=>{}),r=ir("removeMovableViewContext",()=>{});let a,s,l=$n(1),c=$n(1),u=$n(!1),d=$n(0),h=$n(0),p=null,f=null,m=!1,g=null,y=null;const b=new Fg,v=new Fg,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=ha(()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t}),x=new Vg(1,w.value);$o(()=>e.disabled,()=>{U()});const{_updateOldScale:S,_endScale:C,_setScale:k,scaleValueSync:A,_updateBoundary:T,_updateOffset:I,_updateWH:E,_scaleOffset:B,minX:M,minY:P,maxX:O,maxY:z,FAandSFACancel:L,_getLimitXY:N,_setTransform:D,_revise:R,dampingNumber:$,xMove:j,yMove:F,xSync:V,ySync:H,_STD:W}=function(e,t,n,o,i,r,a,s,l,c){const u=ha(()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t}),d=ha(()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t}),h=$n(Number(e.scaleValue)||1);$o(h,e=>{D(e)}),$o(u,()=>{N()}),$o(d,()=>{N()}),$o(()=>e.scaleValue,e=>{h.value=Number(e)||0});const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_}=function(e,t,n){const o=ir("movableAreaWidth",$n(0)),i=ir("movableAreaHeight",$n(0)),r=ir("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=$n(0),c=$n(0),u=$n(0),d=$n(0),h=$n(0),p=$n(0);function f(){let e=0-a.x+s.x,t=o.value-l.value-a.x-s.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-a.y+s.y,r=i.value-c.value-a.y-s.y;d.value=Math.min(n,r),p.value=Math.max(n,r)}function m(){a.x=Gg(e.value,r.value),a.y=Xg(e.value,r.value)}function g(o){o=o||t.value,o=n(o);let i=e.value.getBoundingClientRect();c.value=i.height/t.value,l.value=i.width/t.value;let r=c.value*o,a=l.value*o;s.x=(a-l.value)/2,s.y=(r-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:s,minX:u,minY:d,maxX:h,maxY:p}}(t,o,L),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:k,dampingNumber:A,xMove:T,yMove:I,xSync:E,ySync:B,_STD:M}=function(e,t,n,o,i,r,a,s,l,c,u,d,h,p){const f=ha(()=>{let e=Number(t.damping);return isNaN(e)?20:e}),m=ha(()=>"all"===t.direction||"horizontal"===t.direction),g=ha(()=>"all"===t.direction||"vertical"===t.direction),y=$n(Jg(t.x)),b=$n(Jg(t.y));$o(()=>t.x,e=>{y.value=Jg(e)}),$o(()=>t.y,e=>{b.value=Jg(e)}),$o(y,e=>{k(e)}),$o(b,e=>{A(e)});const v=new Wg(1,9*Math.pow(f.value,2)/40,f.value);function _(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):e<a.value&&(e=a.value,n=!0),t>r.value?(t=r.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),u&&u.cancel()}function x(e,n,i,r,a,s){w(),m.value||(e=l.value),g.value||(n=c.value),t.scale||(i=o.value);let d=_(e,n);e=d.x,n=d.y,t.animation?(v._springX._solution=null,v._springY._solution=null,v._springScale._solution=null,v._springX._endPosition=l.value,v._springY._endPosition=c.value,v._springScale._endPosition=o.value,v.setEnd(e,n,i,1),u=Kg(v,function(){let e=v.x();S(e.x,e.y,e.scale,r,a,s)},function(){u.cancel()})):S(e,n,i,r,a,s)}function S(i,r,a,s="",u,d){null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=l.value||0),null!==r&&"NaN"!==r.toString()&&"number"==typeof r||(r=c.value||0),i=Number(i.toFixed(1)),r=Number(r.toFixed(1)),a=Number(a.toFixed(1)),l.value===i&&c.value===r||u||p("change",{},{x:Ug(i,n.x),y:Ug(r,n.y),source:s}),t.scale||(a=o.value),a=+(a=h(a)).toFixed(3),d&&a!==o.value&&p("scale",{},{x:i,y:r,scale:a});let f="translateX("+i+"px) translateY("+r+"px) translateZ(0px) scale("+a+")";e.value&&(e.value.style.transform=f,e.value.style.webkitTransform=f,l.value=i,c.value=r,o.value=a)}function C(e){let t=_(l.value,c.value),n=t.x,i=t.y,r=t.outOfBounds;return r&&x(n,i,o.value,e),r}function k(e){if(m.value){if(e+n.x===l.value)return l;u&&u.cancel(),x(e+n.x,b.value+n.y,o.value)}return e}function A(e){if(g.value){if(e+n.y===c.value)return c;u&&u.cancel(),x(y.value+n.x,e+n.y,o.value)}return e}return{FAandSFACancel:w,_getLimitXY:_,_animationTo:x,_setTransform:S,_revise:C,dampingNumber:f,xMove:m,yMove:g,xSync:y,ySync:b,_STD:v}}(t,e,g,o,v,_,y,b,a,s,l,c,L,n);function P(t,n){if(e.scale){t=L(t),m(t),p();const e=x(a.value,s.value),o=e.x,i=e.y;n?S(o,i,t,"",!0,!0):Yg(function(){C(o,i,t,"",!0,!0)})}}function O(){r.value=!0}function z(e){i.value=e}function L(e){return e=Math.max(.1,u.value,e),e=Math.min(10,d.value,e)}function N(){if(!e.scale)return!1;P(o.value,!0),z(o.value)}function D(t){return!!e.scale&&(P(t=L(t),!0),z(t),t)}function R(){r.value=!1,z(o.value)}function $(e){e&&(e=i.value*e,O(),P(e))}return{_updateOldScale:z,_endScale:R,_setScale:$,scaleValueSync:h,_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_,FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:C,_revise:k,dampingNumber:A,xMove:T,yMove:I,xSync:E,ySync:B,_STD:M}}(e,n,t,l,c,u,d,h,p,f);function U(){u.value||e.disabled||(L(),_.historyX=[0,0],_.historyY=[0,0],_.historyT=[0,0],j.value&&(a=d.value),F.value&&(s=h.value),n.value.style.willChange="transform",g=null,y=null,m=!0)}function q(t){if(!u.value&&!e.disabled&&m){let n=d.value,o=h.value;if(null===y&&(y=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),F.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),F.value&&(o=t.detail.dy+s,_.historyY.shift(),_.historyY.push(o),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let i="touch";n<M.value?e.outOfBounds?(i="touch-out-of-bounds",n=M.value-b.x(M.value-n)):n=M.value:n>O.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=O.value+b.x(n-O.value)):n=O.value),o<P.value?e.outOfBounds?(i="touch-out-of-bounds",o=P.value-v.x(P.value-o)):o=P.value:o>z.value&&(e.outOfBounds?(i="touch-out-of-bounds",o=z.value+v.x(o-z.value)):o=z.value),Yg(function(){D(n,o,l.value,i)})}}}function Q(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!R("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=h.value;x.setV(e,t),x.setS(n,o);const i=x.delta().x,r=x.delta().y;let a=i+n,s=r+o;a<M.value?(a=M.value,s=o+(M.value-n)*r/i):a>O.value&&(a=O.value,s=o+(O.value-n)*r/i),s<P.value?(s=P.value,a=n+(P.value-o)*i/r):s>z.value&&(s=z.value,a=n+(z.value-o)*i/r),x.setEnd(a,s),f=Kg(x,function(){let e=x.s(),t=e.x,n=e.y;D(t,n,l.value,"friction")},function(){f.cancel()})}e.outOfBounds||e.inertia||L()}function Y(){if(!o.value)return;L();let t=e.scale?A.value:1;I(),E(t),T();let n=N(V.value+B.x,H.value+B.y),i=n.x,r=n.y;D(i,r,t,"",!0),S(t)}return Si(()=>{Rg(n.value,e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Q()}}),Y(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow($.value,2)/40,$.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:C,_setScale:k};i(e),Ti(()=>{r(e)})}),Ti(()=>{L()}),{setParent:Y}}(e,i,o);return()=>Vr("uni-movable-view",{ref:o},[Vr(Bm,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let Qg=!1;function Yg(e){Qg||(Qg=!0,requestAnimationFrame(function(){e(),Qg=!1}))}function Gg(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Gg(e.offsetParent,t):0}function Xg(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Xg(e.offsetParent,t):0}function Kg(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);let r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Jg(e){return/\d+[ur]px$/i.test(e)?yh(parseFloat(e)):Number(e)||0}const Zg=ad({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return p(e)&&e.filter(e=>"number"==typeof e).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=$n(null),i=$n(null),r=cd(o,n),a=function(e){const t=Sn([...e.value]),n=Sn({value:t,height:34});return $o(()=>e.value,(e,t)=>{n.value.length=e.length,e.forEach((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)})}),n}(e),s=$n(null);Si(()=>{const e=s.value;e&&(a.height=e.$el.offsetHeight)});let l=$n([]),c=$n([]);function u(e){let t=c.value;t=t.filter(e=>e.type!==Ar);let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return or("getPickerViewColumn",function(e){return ha({get(){const t=u(e.vnode);return a.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(a.value[o]!==t){a.value[o]=t;const e=a.value.map(e=>e);n("update:value",e),r("change",{},{value:e})}}})}),or("pickerViewProps",e),or("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=Pg(e);l.value=t,lo(()=>{c.value=t})}return Vr("uni-picker-view",{ref:o},[Vr(Bm,{ref:s,onResize:({height:e})=>a.height=e},null,8,["onResize"]),Vr("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class ey{constructor(e){this._drag=e,this._dragLog=Math.log(e),this._x=0,this._v=0,this._startTime=0}set(e,t){this._x=e,this._v=t,this._startTime=(new Date).getTime()}setVelocityByEnd(e){this._v=(e-this._x)*this._dragLog/(Math.pow(this._drag,100)-1)}x(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._x+this._v*t/this._dragLog-this._v/this._dragLog}dx(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3);const t=e===this._dt&&this._powDragDt?this._powDragDt:this._powDragDt=Math.pow(this._drag,e);return this._dt=e,this._v*t}done(){return Math.abs(this.dx())<3}reconfigure(e){const t=this.x(),n=this.dx();this._drag=e,this._dragLog=Math.log(e),this.set(t,n)}configuration(){const e=this;return[{label:"Friction",read:function(){return e._drag},write:function(t){e.reconfigure(t)},min:.001,max:.1,step:.001}]}}function ty(e,t,n){return e>t-n&&e<t+n}function ny(e,t){return ty(e,0,t)}class oy{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,a=t/(i*e);return{x:function(e){return(r+a*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+a*e)*t+a*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),a=(-n+Math.sqrt(r))/(2*o),s=(t-i*e)/(a-i),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*i*t+s*a*n}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),s=-n/2*o,l=e,c=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(c*a*n-l*a*o)+s*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!ny(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(ny(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),ny(t,.4)&&(t=0),ny(o,.4)&&(o=0),o+=this._endPosition),this._solution&&ny(o-e,.4)&&ny(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),ty(this.x(),this._endPosition,.4)&&ny(this.dx(),.4)}reconfigure(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())}springConstant(){return this._k}damping(){return this._c}configuration(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]}}class iy{constructor(e,t,n){this._extent=e,this._friction=t||new ey(.01),this._spring=n||new oy(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class ry{constructor(e,t){t=t||{},this._element=e,this._options=t,this._enableSnap=t.enableSnap||!1,this._itemSize=t.itemSize||0,this._enableX=t.enableX||!1,this._enableY=t.enableY||!1,this._shouldDispatchScrollEvent=!!t.onScroll,this._enableX?(this._extent=(t.scrollWidth||this._element.offsetWidth)-this._element.parentElement.offsetWidth,this._scrollWidth=t.scrollWidth):(this._extent=(t.scrollHeight||this._element.offsetHeight)-this._element.parentElement.offsetHeight,this._scrollHeight=t.scrollHeight),this._position=0,this._scroll=new iy(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}let o;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){const e=this._scroll._friction.x(100),t=e%this._itemSize;o=Math.abs(t)>this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)},()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._shouldDispatchScrollEvent&&this.dispatchScroll(),this._scrolling=!1})}onTransitionEnd(){this._element.style.webkitTransition="",this._element.style.transition="",this._element.removeEventListener("transitionend",this._onTransitionEnd),this._snapping&&(this._snapping=!1),this.dispatchScroll()}snap(){const e=this._itemSize,t=this._position%e,n=Math.abs(t)>this._itemSize/2?this._position-(e-Math.abs(t)):this._position-t;this._position!==n&&(this._snapping=!0,this.scrollTo(-n),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize)))}scrollTo(e,t){this._animation&&(this._animation.cancel(),this._scrolling=!1),"number"==typeof e&&(this._position=-e),this._position<-this._extent?this._position=-this._extent:this._position>0&&(this._position=0);const n="transform "+(t||.2)+"s ease-out";this._element.style.webkitTransition="-webkit-"+n,this._element.style.transition=n,this.updatePosition(),this._element.addEventListener("transitionend",this._onTransitionEnd)}dispatchScroll(){if(g(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),g(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function ay(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new ry(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(a-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}const sy=ad({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=$n(null),i=$n(null),r=ir("getPickerViewColumn"),a=ea(),s=r?r(a):$n(0),l=ir("pickerViewProps"),c=ir("pickerViewState"),u=$n(34),d=$n(null);Si(()=>{const e=d.value;u.value=e.$el.offsetHeight});const h=ha(()=>(c.height-u.value)/2),{state:p}=gg();let f;const m=Sn({current:s.value,length:0});let g;function y(){f&&!g&&(g=!0,lo(()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),f.update(e*u.value,void 0,u.value)}))}$o(()=>s.value,e=>{e!==m.current&&(m.current=e,y())}),$o(()=>m.current,e=>s.value=e),$o([()=>u.value,()=>m.length,()=>c.height],y);let b=0;function v(e){const t=b+e.deltaY;if(Math.abs(t)>10){b=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),f.scrollTo(e*u.value)}else b=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let i=Math.min(m.current+t,m.length-1);m.current=i=Math.max(i,0),f.scrollTo(i*u.value)}}}return Si(()=>{const e=o.value,t=i.value,{scroller:n,handleTouchStart:r,handleTouchMove:a,handleTouchEnd:s}=ay(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new ey(1e-4),spring:new oy(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});f=n,Rg(e,e=>{switch(e.detail.state){case"start":r(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":s(e)}},!0),function(e){let t=0,n=0;e.addEventListener("touchstart",e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY}),e.addEventListener("touchend",e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(e=>{n[e]=o[e]}),e.target.dispatchEvent(n)}})}(e),y()}),()=>{const e=t.default&&t.default();m.length=Pg(e).length;const n=`${h.value}px 0`;return Vr("uni-picker-view-column",{ref:o},[Vr("div",{onWheel:v,onClick:_,class:"uni-picker-view-group"},[Vr("div",Gr(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),Vr("div",Gr(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[Vr(Bm,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),Vr("div",{ref:i,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),ly=ne,cy="backwards",uy=ad({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:ly},activeColor:{type:String,default:ly},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:cy},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=$n(null),n=function(e){const t=$n(0),n=ha(()=>`background-color: ${e.backgroundColor}; height: ${du(e.strokeWidth)}px;`),o=ha(()=>{const n=e.color!==ly&&e.activeColor===ly?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`}),i=ha(()=>{if("string"==typeof e.percent&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let t=parseFloat(e.percent);return Number.isNaN(t)||t<0?t=0:t>100&&(t=100),t}),r=Sn({outerBarStyle:n,innerBarStyle:o,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0});return r}(e);return dy(n,e),$o(()=>n.realPercent,(t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,dy(n,e)}),()=>{const{showInfo:o}=e,{outerBarStyle:i,innerBarStyle:r,currentPercent:a}=n;return Vr("uni-progress",{class:"uni-progress",ref:t},[Vr("div",{style:i,class:"uni-progress-bar"},[Vr("div",{style:r,class:"uni-progress-inner-bar"},null,4)],4),o?Vr("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function dy(e,t){t.active?(e.currentPercent=t.activeMode===cy?0:e.lastPercent,e.strokeTimer=setInterval(()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1},parseFloat(t.duration))):e.currentPercent=e.realPercent}const hy={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},py={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"â",rdquo:"â",yen:"ï¿¥",radic:"â",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",hellip:"â¦"};const fy=(e,t,n)=>!n||p(n)&&!n.length?[]:n.map(n=>{var o;if(S(n)){if(!h(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!h(hy,r))return;return function(e,t){if(S(t))for(const n in t)if(h(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=lm(o))}}(r,n.attrs),i=c(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),pa(n.name,i,fy(e,t,n.children))}return"text"===n.type&&y(n.text)&&""!==n.text?Wr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,function(e,t){return h(py,t)&&py[t]?py[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e})):void 0}});function my(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,i,r=[],a=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&tg[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+r.last()+"[^>]*>"),function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""}),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("</")?(i=e.match(Ym))&&(e=e.substring(i[0].length),i[0].replace(Ym,c),o=!1):0==e.indexOf("<")&&(i=e.match(Qm))&&(e=e.substring(i[0].length),i[0].replace(Qm,l),o=!1),o){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==a)throw"Parse Error: "+e;a=e}function l(e,n,o,i){if(n=n.toLowerCase(),Km[n])for(;r.last()&&Jm[r.last()];)c("",r.last());if(Zm[n]&&r.last()==n&&c("",n),(i=Xm[n]||!!i)||r.push(n),t.start){var a=[];o.replace(Gm,function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:eg[t]?t:"";a.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})}),t.start&&t.start(n,a,i)}}function c(e,n){if(n)for(o=r.length-1;o>=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce(function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e},{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const gy=ad({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=ea(),o=n&&n.vnode.scopeId||"",i=$n(null),r=$n([]),a=cd(i,t);function s(e,t={}){a("itemclick",e,t)}return $o(()=>e.nodes,function(){let t=e.nodes;y(t)&&(t=my(e.nodes)),r.value=fy(o,s,t)},{immediate:!0}),()=>pa("uni-rich-text",{ref:i},pa("div",{},r.value))}}),yy=ad({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=$n(null),o=ha(()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t}),i=ha(()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)});return()=>{const{refreshState:r,refresherDefaultStyle:a,refresherThreshold:s}=e;return Vr("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==a?Vr("div",{class:"uni-scroll-view-refresh"},[Vr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?Vr("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Vr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Vr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?Vr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Vr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===a?Vr("div",{class:"uni-scroll-view-refresher-container",style:{height:`${s}px`}},[t.default&&t.default()]):null],4)}}}),by=Xe(!0),vy=ad({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=$n(null),r=$n(null),a=$n(null),s=$n(null),l=cd(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=ha(()=>Number(e.scrollTop)||0),n=ha(()=>Number(e.scrollLeft)||0),o=Sn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""});return{state:o,scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:p,_scrollLeftChanged:f,_scrollTopChanged:m}=function(e,t,n,o,i,r,a,s,l){let c=!1,u=0,d=!1,h=()=>{};const p=ha(()=>e.scrollX),f=ha(()=>e.scrollY),m=ha(()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t}),g=ha(()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t});function y(e,t){const n=a.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=s.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",h),r.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),r.addEventListener("transitionend",h),r.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function b(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),f.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function v(t){f.value&&(e.scrollWithAnimation?y(t,"y"):a.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?y(t,"x"):a.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=a.value.scrollLeft+n;e.scrollWithAnimation?y(i,"x"):a.value.scrollLeft=i}if(f.value){let n=o.top-t.top,i=a.value.scrollTop+n;e.scrollWithAnimation?y(i,"y"):a.value.scrollTop=i}}}}function x(e,t){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let n=a.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),s.value.removeEventListener("transitionend",h),s.value.removeEventListener("webkitTransitionEnd",h)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:k.y-C.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:k.y-C.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:k.y-C.y}))}t.refreshState=n}}let C={x:0,y:0},k={x:0,y:e.refresherThreshold};return Si(()=>{lo(()=>{v(n.value),_(o.value)}),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),b(e)},s=null,l=function(n){if(null===C)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=a.value;if(Math.abs(o-C.x)>Math.abs(r-C.y))if(p.value){if(0===l.scrollLeft&&o>C.x)return void(s=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&o<C.x)return void(s=!1);s=!0}else s=!1;else if(f.value)if(0===l.scrollTop&&r>C.y)s=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r<C.y)return void(s=!1);s=!0}else s=!1;if(s&&n.stopPropagation(),0===l.scrollTop&&1===n.touches.length&&S("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const o=r-C.y;0===u&&(u=r),c?(t.refresherHeight=o+e.refresherThreshold,d=!1):(t.refresherHeight=r-u,t.refresherHeight>0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},h=function(e){1===e.touches.length&&(C={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){k={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),C={x:0,y:0},k={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",h,by),a.value.addEventListener("touchmove",l,Xe(!1)),a.value.addEventListener("scroll",r,Xe(!1)),a.value.addEventListener("touchend",m,by),Ai(()=>{a.value.removeEventListener("touchstart",h),a.value.removeEventListener("touchmove",l),a.value.removeEventListener("scroll",r),a.value.removeEventListener("touchend",m)})}),hi(()=>{f.value&&(a.value.scrollTop=t.lastScrollTop),p.value&&(a.value.scrollLeft=t.lastScrollLeft)}),$o(n,e=>{v(e)}),$o(o,e=>{_(e)}),$o(()=>e.scrollIntoView,e=>{w(e)}),$o(()=>e.refresherTriggered,e=>{!0===e?S("refreshing"):!1===e&&S("restore")}),{realScrollX:p,realScrollY:f,_scrollTopChanged:v,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,s,t),g=ha(()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e}),y=ha(()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t});return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:h}=c;return Vr("uni-scroll-view",{ref:i},[Vr("div",{ref:a,class:"uni-scroll-view"},[Vr("div",{ref:r,style:g.value,class:y.value},[t?Vr(yy,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,Vr("div",{ref:s,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});const _y=ad({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=$n(null),o=$n(null),i=$n(null),r=$n(Number(e.value));$o(()=>e.value,e=>{r.value=Number(e)});const a=cd(n,t),s=function(e,t){const n=()=>wy(t.value,e.min,e.max),o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9",r={setBgColor:ha(()=>({backgroundColor:o()})),setBlockBg:ha(()=>({left:n()})),setActiveColor:ha(()=>({backgroundColor:i(),width:n()})),setBlockStyle:ha(()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor}))};return r}(e,r),{_onClick:l,_onTrack:c}=function(e,t,n,o,i){const r=n=>{e.disabled||(s(n),i("change",n,{value:t.value}))},a=t=>{const n=Number(e.max),o=Number(e.min),i=Number(e.step);return t<o?o:t>n?n:xy.mul.call(Math.round((t-o)/i),i)+o},s=i=>{const r=Number(e.max),s=Number(e.min),l=o.value,c=getComputedStyle(l,null).marginLeft;let u=l.offsetWidth;u+=parseInt(c);const d=n.value,h=d.offsetWidth-(e.showValue?u:0),p=d.getBoundingClientRect().left,f=(i.x-p)*(r-s)/h+s;t.value=a(f)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(s({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},c=ir(pd,!1);if(c){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};c.addField(n),Ai(()=>{c.removeField(n)})}return{_onClick:r,_onTrack:l}}(e,r,n,o,a);return Si(()=>{Rg(i.value,c)}),()=>{const{setBgColor:t,setBlockBg:a,setActiveColor:c,setBlockStyle:u}=s;return Vr("uni-slider",{ref:n,onClick:ld(l)},[Vr("div",{class:"uni-slider-wrapper"},[Vr("div",{class:"uni-slider-tap-area"},[Vr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[Vr("div",{ref:i,style:a.value,class:"uni-slider-handle"},null,4),Vr("div",{style:u.value,class:"uni-slider-thumb"},null,4),Vr("div",{style:c.value,class:"uni-slider-track"},null,4)],4)]),Wo(Vr("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[La,e.showValue]])])],8,["onClick"])}}}),wy=(e,t,n)=>(n=Number(n),100*(e-(t=Number(t)))/(n-t)+"%");var xy={mul:function(e){let t=0,n=this.toString(),o=e.toString();try{t+=n.split(".")[1].length}catch(i){}try{t+=o.split(".")[1].length}catch(i){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}};function Sy(e,t,n,o,i,r){function a(){c&&(clearTimeout(c),c=null)}let s,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=ha(()=>n.value.length>t.displayMultipleItems),b=ha(()=>e.circular&&y.value);function v(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||b.value&&function(o){if(!u)for(let i=n.value,r=i.length,a=o+t.displayMultipleItems,s=0;s<r;s++){const t=i[s],n=Math.floor(o/r)*r+s,l=n+r,c=n-r,u=Math.max(o-(n+1),n-a,0),d=Math.max(o-(l+1),l-a,0),h=Math.max(o-(c+1),c-a,0),p=Math.min(u,d,h),f=[n,l,c][[u,d,h].indexOf(p)];t.updatePosition(f,e.vertical)}}(i);const a="translate("+(e.vertical?"0":100*-i*h+"%")+", "+(e.vertical?100*-i*h+"%":"0")+") translateZ(0)",l=o.value;if(l&&(l.style.webkitTransform=a,l.style.transform=a),d=i,!s){if(i%1==0)return;s=i}i-=Math.floor(s);const c=n.value;i<=-(c.length-1)?i+=c.length:i>=c.length&&(i-=c.length),i=s%1>.5||s<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(b.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(f=!1);const e=p,o=e.toPos,i=e.acc,a=e.endTime,c=e.source,u=a-Date.now();if(u<=0){v(o),p=null,f=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}v(o+i*u*u/2),l=requestAnimationFrame(x)}function S(e,o,i){w();const r=t.duration,a=n.value.length;let s=d;if(b.value)if(i<0){for(;s<e;)s+=a;for(;s-a>e;)s-=a}else if(i>0){for(;s>e;)s-=a;for(;s+a<e;)s+=a;s+a-e<e-s&&(s+=a)}else{for(;s+a<e;)s+=a;for(;s-a>e;)s-=a;s+a-e<e-s&&(s+=a)}else"click"===o&&(e=e+t.displayMultipleItems-1<a?e:0);p={toPos:e,acc:2*(s-e)/(r*r),endTime:Date.now()+r,source:o},f||(f=!0,l=requestAnimationFrame(x))}function C(){a();const e=n.value,o=function(){c=null,g="autoplay",b.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,S(t.current,"autoplay",b.value?1:0),c=setTimeout(o,t.interval)};u||e.length<=t.displayMultipleItems||(c=setTimeout(o,t.interval))}function k(e){e?C():a()}return $o([()=>e.current,()=>e.currentItemId,()=>[...n.value]],()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;t<i.length;t++){if(i[t].getItemId()===e.currentItemId){o=t;break}}o<0&&(o=Math.round(e.current)||0),o=o<0?0:o,t.current!==o&&(g="",t.current=o)}),$o([()=>e.vertical,()=>b.value,()=>t.displayMultipleItems,()=>[...n.value]],function(){a(),p&&(v(p.toPos),p=null);const i=n.value;for(let t=0;t<i.length;t++)i[t].updatePosition(t,e.vertical);h=1;const r=o.value;if(1===t.displayMultipleItems&&i.length){const e=i[0].getBoundingClientRect(),t=r.getBoundingClientRect();h=e.width/t.width,h>0&&h<1||(h=1)}const s=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(v(s+l-m),m=l):(v(l),e.autoplay&&C())):(u=!0,v(-t.displayMultipleItems-1))}),$o(()=>t.interval,()=>{c&&(a(),C())}),$o(()=>t.current,(e,o)=>{!function(e,o){const i=g;g="";const a=n.value;if(!i){const t=a.length;S(e,"",b.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)}),$o(()=>t.currentItemId,e=>{i("update:currentItemId",e)}),$o(()=>e.autoplay&&!t.userTracking,k),k(e.autoplay&&!t.userTracking),Si(()=>{let i=!1,r=0,s=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?v(m):(g="touch",t.current=i,S(i,"touch",0!==o?o:0===i&&b.value&&d>=1?1:0))}Rg(o.value,c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,a(),m=d,r=0,s=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&C())}return function(i){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;r=.6*r+.4*t,b.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),v(n)}const d=s-a||1,h=o.value;e.vertical?u(-i.dy/h.offsetHeight,-i.ddy/d):u(-i.dx/h.offsetWidth,-i.ddx/d)}(c.detail),!1}}})}),Ti(()=>{a(),cancelAnimationFrame(l)}),{onSwiperDotClick:function(e){S(t.current=e,g="click",b.value?1:0)},circularEnabled:b,swiperEnabled:y}}const Cy=ad({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=$n(null),i=cd(o,n),r=$n(null),a=$n(null),s=function(e){return Sn({interval:ha(()=>{const t=Number(e.interval);return isNaN(t)?5e3:t}),duration:ha(()=>{const t=Number(e.duration);return isNaN(t)?500:t}),displayMultipleItems:ha(()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t}),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=ha(()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:du(e.previousMargin,!0),bottom:du(e.nextMargin,!0)}:{top:0,bottom:0,left:du(e.previousMargin,!0),right:du(e.nextMargin,!0)}),t}),c=ha(()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}});let u=[];const d=[],h=$n([]);function p(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n instanceof Element||(n=n.el);const o=d.find(e=>n===e.rootRef.value);o&&e.push(Pn(o))}h.value=e}or("addSwiperContext",function(e){d.push(e),p()});or("removeSwiperContext",function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())});const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=Sy(e,s,h,a,n,i);let y=()=>null;return y=ky(o,e,s,f,h,m,g),()=>{const n=t.default&&t.default();return u=Pg(n),Vr("uni-swiper",{ref:o},[Vr("div",{ref:r,class:"uni-swiper-wrapper"},[Vr("div",{class:"uni-swiper-slides",style:l.value},[Vr("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&Vr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map((t,n,o)=>Vr("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<s.current+s.displayMultipleItems&&n>=s.current||n<s.current+s.displayMultipleItems-o.length},style:{background:n===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"]))],2),y()],512)],512)}}}),ky=(e,t,n,o,i,r,a)=>{let s=!1,l=!1,u=!1,d=$n(!1);function h(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Do(()=>{s="auto"===t.navigation,d.value=!0!==t.navigation||s,v()}),Do(()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(d.value=!0))});const p={onMouseover:e=>h(e,"over"),onMouseout:e=>h(e,"out")};function f(e,t,a){if(e.stopPropagation(),a)return;const s=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=s-1);break;case"next":l++,l>=s&&r.value&&(l=0)}o(l)}const m=()=>yu(gu,t.navigationColor,26);let g;const y=n=>{clearTimeout(g);const{clientX:o,clientY:i}=n,{left:r,right:a,top:s,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(i-s<u/3||l-i<u/3):!(o-r<c/3||a-o<c/3),h)return g=setTimeout(()=>{d.value=h},300);d.value=h},b=()=>{d.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",b),s&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",b)))}return Si(v),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Vr(Cr,null,[Vr("div",Gr({class:["uni-swiper-navigation uni-swiper-navigation-prev",c({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"prev",l)},p),[m()],16,["onClick"]),Vr("div",Gr({class:["uni-swiper-navigation uni-swiper-navigation-next",c({"uni-swiper-navigation-disabled":u},e)],onClick:e=>f(e,"next",u)},p),[m()],16,["onClick"])]):null}},Ay=ad({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=$n(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,a=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=a,r.style.transform=a)}};return Si(()=>{const e=ir("addSwiperContext");e&&e(o)}),Ti(()=>{const e=ir("removeSwiperContext");e&&e(o)}),()=>Vr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Ty=ad({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=$n(null),o=$n(e.checked),i=function(e,t){const n=ir(pd,!1),o=ir(fd,!1),i={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(i),Ti(()=>{n.removeField(i)}));return o}(e,o),r=cd(n,t);$o(()=>e.checked,e=>{o.value=e});const a=t=>{e.disabled||(o.value=!o.value,r("change",t,{value:o.value}))};return i&&(i.addHandler(a),Ai(()=>{i.removeHandler(a)})),md(e,{"label-click":a}),()=>{const{color:t,type:i}=e,r=hd(e,"disabled"),s={};let l;return t&&o.value&&(s.backgroundColor=t,s.borderColor=t),l=o.value,Vr("uni-switch",Gr({id:e.id,ref:n},r,{onClick:a}),[Vr("div",{class:"uni-switch-wrapper"},[Wo(Vr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:s},null,6),[[La,"switch"===i]]),Wo(Vr("div",{class:"uni-checkbox-input"},[l?yu(fu,e.color,22):""],512),[[La,"checkbox"===i]])])],16,["id","onClick"])}}});const Iy={ensp:"â",emsp:"â",nbsp:" "};function Ey(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&Iy[t]&&" "===r&&(r=Iy[t]),i?(o+="n"===r?ee:"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,Iy.nbsp).replace(/ /g,Iy.ensp).replace(/ /g,Iy.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(ee)}const By=ad({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=$n(null);return()=>{const o=[];return t.default&&t.default().forEach(t=>{if(8&t.shapeFlag&&t.type!==Ar){const n=Ey(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach((e,t)=>{(0!==t||e)&&o.push(Wr(e)),t!==i&&o.push(Vr("br"))})}else o.push(t)}),Vr("uni-text",{ref:n,selectable:!!e.selectable||null},[Vr("span",null,o)],8,["selectable"])}}}),My=c({},_g,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Oy.concat("return").includes(e)}});let Py=!1;const Oy=["done","go","next","search","send"];const zy=ad({name:"Textarea",props:My,emits:["confirm","linechange",...wg],setup(e,{emit:t,expose:n}){const o=$n(null),i=$n(null),{fieldRef:r,state:a,scopedAttrsState:s,fixDisabledColor:l,trigger:c}=Cg(e,o,t),u=ha(()=>a.value.split(ee)),d=ha(()=>Oy.includes(e.confirmType)),h=$n(0),p=$n(null);function f({height:e}){h.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return $o(()=>h.value,t=>{const n=o.value,r=p.value,a=i.value;let s=parseFloat(getComputedStyle(n).lineHeight);isNaN(s)&&(s=r.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(a.style.height=t+"px")}),function(){const e="(prefers-color-scheme: dark)";Py=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&l?Vr("textarea",{key:"disabled-textarea",ref:r,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Py},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Vr("textarea",{key:"textarea",ref:r,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":Py},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Vr("uni-textarea",{ref:o,"auto-height":e.autoHeight},[Vr("div",{ref:i,class:"uni-textarea-wrapper"},[Wo(Vr("div",Gr(s.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[La,!a.value.length]]),Vr("div",{ref:p,class:"uni-textarea-line"},[" "],512),Vr("div",{class:"uni-textarea-compute"},[u.value.map(e=>Vr("div",null,[e.trim()?e:"."])),Vr(Bm,{initial:!0,onResize:f},null,8,["initial","onResize"])]),"search"===e.confirmType?Vr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Ly=ad({name:"View",props:c({},ud),setup(e,{slots:t}){const n=$n(null),{hovering:o,binding:i}=dd(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?Vr("uni-view",Gr({class:o.value?r:"",ref:n},i),[zi(t,"default")],16):Vr("uni-view",{ref:n},[zi(t,"default")],512)}}});function Ny(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Dy(e,t,n){e&&Oc(n||xu(),e,({type:e,data:n},o)=>{t(e,n,o)})}function Ry(e,t){e&&function(e,t){t=Pc(e,t),delete Mc[t]}(t||xu(),e)}function $y(e,t,n,o){const i=ea().proxy;Si(()=>{Dy(t||Ny(i),e,o),!n&&t||$o(()=>i.id,(t,n)=>{Dy(Ny(i,t),e,o),Ry(n&&Ny(i,n))})}),Ai(()=>{Ry(t||Ny(i),o)})}let jy=0;function Fy(e){const t=bu(),n=ea().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+jy++;return Si(()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}}),`${o}.${i}`}function Vy(e,t,n,o){g(t)&&_i(e,t.bind(n),o)}function Hy(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach(o=>{if(function(e,t,n=!0){return!(n&&!g(t))&&(rt.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];p(i)?i.forEach(e=>Vy(o,e,n,t)):Vy(o,i,n,t)}}),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,Tu(n,he,e),delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&Tu(n,re)}catch(i){console.error(i.message+ee+i.stack)}}}function Wy(e,t,n){Hy(e,t,n)}function Uy(e,t,n){return e[t]=n}function qy(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Qy(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r[le]?Tu(r.proxy,le,n):Jn(n,0,o&&o.$.vnode,!1)}}function Yy(e,t){return e?[...new Set([].concat(e,t))]:t}function Gy(e){const t=e.config;var n;t.errorHandler=st(e,Qy),n=t.optionMergeStrategies,rt.forEach(e=>{n[e]=Yy});const o=t.globalProperties;o.$set=Uy,o.$applyOptions=Wy,o.$callMethod=qy,function(e){at.forEach(t=>t(e))}(e)}function Xy(e){const t=Yl({history:Zy(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Jy});t.beforeEach((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Ky[n]={left:window.pageXOffset,top:window.pageYOffset}))}),e.router=t,e.use(t)}let Ky=Object.create(null);const Jy=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Ky[o]);if(t)return t}return{left:0,top:0};var o};function Zy(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=al(e);return t.listen((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Uf(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Df(t[i]);qf(Xf(e.path,e.id),!1)}}(Math.abs(n.delta))}),t}const eb={install(e){Gy(e),Wu(e),td(e),e.config.warnHandler||(e.config.warnHandler=tb),Xy(e)}};function tb(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const nb={class:"uni-async-loading"},ob=Vr("i",{class:"uni-loading"},null,-1),ib=sd({name:"AsyncLoading",render:()=>(Br(),Lr("div",nb,[ob]))});function rb(){window.location.reload()}const ab=sd({name:"AsyncError",props:["error"],setup(){bc();const{t:e}=gc();return()=>Vr("div",{class:"uni-async-error",onClick:rb},[e("uni.async.error")],8,["onClick"])}});let sb;function lb(){return sb}function cb(e){sb=e,Object.defineProperty(sb.$.ctx,"$children",{get:()=>Uf().map(e=>e.$vm)});const t=sb.$.appContext.app;t.component(ib.name)||t.component(ib.name,ib),t.component(ab.name)||t.component(ab.name,ab),function(e){e.$vm=e,e.$mpType="app";const t=$n(gc().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(sb),function(e,t){const n=e.$options||{};n.globalData=c(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(sb),Zu(),zu()}function ub(e,{clone:t,init:n,setup:o,before:i}){t&&(e=c({},e)),i&&i(e);const r=e.setup;return e.setup=(e,t)=>{const i=ea();if(n(i.proxy),o(i),r)return r(e,t)},e}function db(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ub(e.default,t):ub(e,t)}function hb(e){return db(e,{clone:!0,init:Gf,setup(e){e.$pageInstance=e;const t=xd(),n=Ze(t.query);e.attrs.__pageQuery=n,Df(e.proxy).options=n,e.proxy.options=n;const o=_d();var i,r;return Of(o),e.onReachBottom=Sn([]),e.onPageScroll=Sn([]),$o([e.onReachBottom,e.onPageScroll],()=>{const t=_u();e.proxy===t&&rm(e,o)},{once:!0}),xi(()=>{Zf(e,o)}),Si(()=>{em(e);const{onReady:n}=e;n&&z(n),gb(t)}),fi(()=>{if(!e.__isVisible){Zf(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&z(n),lo(()=>{gb(t)})}},"ba",i),function(e,t){fi(e,"bda",t)}(()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&z(t)}}}),r=o.id,Mw.subscribe(Pc(r,Ic),zc),Ai(()=>{!function(e){Mw.unsubscribe(Pc(e,Ic)),Object.keys(Mc).forEach(t=>{0===t.indexOf(e+".")&&delete Mc[t]})}(o.id)}),n}})}function pb(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=ev(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Pw.emit(ge,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function fb(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Pw.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function mb(){const{emit:e}=Pw;"visible"===document.visibilityState?e(Me,c({},Em)):e(Pe)}function gb(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Tu("onTabItemTap",{index:n,text:t,pagePath:o})}function yb(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function bb(e,t,n){const o=Sn({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),i={x:0,y:0};let r=null;let a;return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0},onTouchmove:function(s){function l(){s.stopPropagation(),s.preventDefault()}n.fullscreen&&l();const c=o.gestureType;if("stop"===c)return;const u=s.targetTouches[0],d=u.pageX,h=u.pageY,p=i,f=t.value;if("progress"===c?(!function(e){const n=t.value,i=n.duration;let r=e/600*i+o.currentTimeOld;r<0?r=0:r>i&&(r=i);o.currentTimeNew=r}(d-p.x),o.seeking=!0):"volume"===c&&function(e){const n=t.value,i=o.volumeOld;let r;"number"==typeof i&&(r=i-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(a),a=void 0,null==a&&(a=setTimeout(()=>{o.toastThin=!1,a=void 0},1e3)),n.volume=r,o.volumeNew=r)}(h-p.y),"none"===c)if(Math.abs(d-p.x)>Math.abs(h-p.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=f.currentTime,n.fullscreen||l()}else{if(!e.pageGesture&&!e.vslideGesture)return void(o.gestureType="stop");"none"!==o.gestureType&&null!=r||(r=setTimeout(()=>{o.toastThin=!0},500)),o.gestureType="volume",o.volumeOld=f.volume,n.fullscreen||l()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const vb={id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},_b=ad({name:"Video",props:vb,emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=$n(null),r=$n(null),a=cd(i,t),{state:s}=mg(),{$attrs:l}=Mg({excludeListeners:!0});gc(),Ac();const{videoRef:c,state:u,play:d,pause:h,stop:f,seek:m,playbackRate:g,toggle:y,onDurationChange:b,onLoadedMetadata:v,onProgress:_,onWaiting:w,onVideoError:x,onPlay:S,onPause:C,onEnded:k,onTimeUpdate:A}=function(e,t,n){const o=$n(null),i=ha(()=>lm(e.src)),r=ha(()=>"true"===e.muted||!0===e.muted),a=Sn({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function s(e){const t=e.target,n=t.buffered;n.length&&(a.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return $o(()=>i.value,()=>{a.playing=!1,a.currentTime=0}),$o(()=>a.buffered,e=>{n("progress",{},{buffered:e})}),$o(()=>r.value,e=>{o.value.muted=e}),{videoRef:o,state:a,play:function(){const e=o.value;a.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;a.playing?e.pause():e.play()},onDurationChange:function({target:e}){a.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),s(t)},onProgress:s,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){a.playing=!1,n("error",e,{})},onPlay:function(e){a.start=!0,a.playing=!0,n("play",e,{})},onPause:function(e){a.playing=!1,n("pause",e,{})},onEnded:function(e){a.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;a.pauseUpdatingCurrentTime||(a.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,a),{state:T,danmuRef:I,updateDanmu:E,toggleDanmu:B,sendDanmu:M}=function(e,t){const n=$n(null),o=Sn({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=p(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function a(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout(function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout(function(){t.remove()},4e3)},17)}return r.sort(function(e,t){return(e.time||0)-(t.time||0)}),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,s=i,l={time:n,index:s.index};if(n>s.time)for(let i=s.index+1;i<r.length;i++){const e=r[i];if(!(n>=(e.time||0)))break;l.index=i,t.playing&&o.enable&&a(e)}else if(n<s.time)for(let t=s.index-1;t>-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:P,onFullscreenChange:O,emitFullscreenChange:z,toggleFullscreen:L,requestFullScreen:N,exitFullScreen:D}=function(e,t,n,o,i){const r=Sn({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||a&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&s(e)}function c(){l(!1)}return Ai(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||s(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:s,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(a,r,c,s,i),{state:R,onTouchstart:$,onTouchend:j,onTouchmove:F}=bb(e,c,P),{state:V,progressRef:H,ballRef:W,clickProgress:U,toggleControls:q,autoHideEnd:Q,autoHideStart:Y}=function(e,t,n,o){const i=$n(null),r=$n(null),a=ha(()=>e.showCenterPlayBtn&&!t.start),s=$n(!0),l=ha(()=>!a.value&&e.controls&&s.value),c=Sn({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:a,controlsShow:l,controlsVisible:s});let u;function d(){u=setTimeout(()=>{c.controlsVisible=!1},3e3)}function h(){u&&(clearTimeout(u),u=null)}return Ai(()=>{u&&clearTimeout(u)}),$o(()=>c.controlsShow&&t.playing&&!c.controlsTouching,e=>{e?d():h()}),Si(()=>{const e=Xe(!1);let a,s,l,u=!0;const d=r.value;function h(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-a)<Math.abs(d-s))return void p(e);u=!1;const h=i.value.offsetWidth;let f=l+(r-a)/h*100;f<0?f=0:f>100&&(f=100),t.progress=f,null==o||o(t.duration*f/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",h,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",n=>{c.controlsTouching=!0;const o=n.targetTouches[0];a=o.pageX,s=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",h,e)}),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)}),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,a=e.offsetX;for(;r&&r!==o;)a+=r.offsetLeft,r=r.parentNode;const s=o.offsetWidth;let l=0;a>=0&&a<=s&&(l=a/s,n(t.duration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:h}}(e,u,m,e=>{R.currentTimeNew=e});!function(e,t,n,o,i,r,a,s){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:a,exitFullScreen:s};$y((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)},Fy(),!0)}(d,h,f,m,M,g,N,D);const G=function(e,t,n){const o=ha(()=>"progress"===t.gestureType||n.touching);return $o(o,o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)}),$o([()=>e.currentTime,()=>{vb.duration}],()=>{e.progress=e.currentTime/e.duration*100}),$o(()=>t.currentTimeNew,t=>{e.currentTime=t}),o}(u,R,V);return()=>Vr("uni-video",{ref:i,id:e.id,onClick:q},[Vr("div",{ref:r,class:"uni-video-container",onTouchstart:$,onTouchend:j,onTouchmove:F,onFullscreenchange:ds(O,["stop"]),onWebkitfullscreenchange:ds(e=>O(e,!0),["stop"])},[Vr("video",Gr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:b,onLoadedmetadata:v,onProgress:_,onWaiting:w,onError:x,onPlay:S,onPause:C,onEnded:k,onTimeupdate:e=>{A(e),E(e)},onWebkitbeginfullscreen:()=>z(!0),onX5videoenterfullscreen:()=>z(!0),onWebkitendfullscreen:()=>z(!1),onX5videoexitfullscreen:()=>z(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Wo(Vr("div",{class:"uni-video-bar uni-video-bar-full",onClick:ds(()=>{},["stop"])},[Vr("div",{class:"uni-video-controls"},[Wo(Vr("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:ds(y,["stop"])},null,10,["onClick"]),[[La,e.showPlayBtn]]),Wo(Vr("div",{class:"uni-video-current-time"},[yb(u.currentTime)],512),[[La,e.showProgress]]),Wo(Vr("div",{ref:H,class:"uni-video-progress-container",onClick:ds(U,["stop"])},[Vr("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":G.value}},[Vr("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),Vr("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),Vr("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":G.value}},[Vr("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[La,e.showProgress]]),Wo(Vr("div",{class:"uni-video-duration"},[yb(Number(e.duration)||u.duration)],512),[[La,e.showProgress]])]),Wo(Vr("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":T.enable},onClick:ds(B,["stop"])},null,10,["onClick"]),[[La,e.danmuBtn]]),Wo(Vr("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":P.fullscreen},onClick:ds(()=>L(!P.fullscreen),["stop"])},null,10,["onClick"]),[[La,e.showFullscreenBtn]])],8,["onClick"]),[[La,V.controlsShow]]),Wo(Vr("div",{ref:I,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[La,u.start&&T.enable]]),V.centerPlayBtnShow&&Vr("div",{class:"uni-video-cover",onClick:ds(()=>{},["stop"])},[Vr("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:ds(d,["stop"])},null,8,["onClick"])],8,["onClick"]),Vr("div",{class:"uni-video-loading"},["volume"===R.gestureType?Vr("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":R.toastThin},style:{marginTop:"5px"}},[!R.toastThin&&R.volumeNew>0&&"volume"===R.gestureType?Vr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!R.toastThin&&Vr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),Vr("div",{class:"uni-video-toast-draw",style:{width:100*R.volumeNew+"%"}},null)],2):null]),Vr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":G.value}},[Vr("div",{class:"uni-video-toast-title"},[Vr("span",{class:"uni-video-toast-title-current-time"},[yb(R.currentTimeNew)])," / ",Number(e.duration)||yb(u.duration)])],2),Vr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}});let wb,xb=0;function Sb(e,t,n,o){var i,r=document.createElement("script"),a=t.callback||"callback",s="__uni_jsonp_callback_"+xb++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[s],r.remove()}window[s]=e=>{g(n)&&n(e),c()},r.onerror=()=>{g(o)&&o(),c()},i=setTimeout(function(){g(o)&&o(),c()},l),r.src=e+(e.indexOf("?")>=0?"&":"?")+a+"="+s,document.body.appendChild(r)}function Cb(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",()=>{this.callback()}),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function a(){this.Text&&this.option.map.remove(this.Text)}class s{constructor(e={},s){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=a,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(Pb())this.callback=s,this.visible&&this.createAMapText();else if(Ob())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,Pb()?this.visible&&this.createAMapText():Ob()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!Pb()&&!Ob()){const t=new(e.OverlayView||e.Overlay);s.prototype.setMap=t.setMap,s.prototype.getMap=t.getMap,s.prototype.getPanes=t.getPanes,s.prototype.getProjection=t.getProjection,s.prototype.map_changed=t.map_changed,s.prototype.set=t.set,s.prototype.get=t.get,s.prototype.setOptions=t.setValues,s.prototype.bindTo=t.bindTo,s.prototype.bindsTo=t.bindsTo,s.prototype.notify=t.notify,s.prototype.setValues=t.setValues,s.prototype.unbind=t.unbind,s.prototype.unbindAll=t.unbindAll,s.prototype.addListener=t.addListener}return s}const kb={};function Ab(e,t){const n=Eb();if(!n.key)return void console.error("Map key not configured.");const o=kb[n.type]=kb[n.type]||[];if(wb)t(wb);else if(window[n.type]&&window[n.type].maps)wb=Pb()||Ob()?window[n.type]:window[n.type].maps,wb.Callout=wb.Callout||Cb(wb),t(wb);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],wb=Pb()||Ob()?window[n.type]:window[n.type].maps,wb.Callout=Cb(wb),o.forEach(e=>e(wb)),o.length=0},Pb()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const a=document.createElement("script");let s=Tb(n.type);n.type===Ib.QQ&&e.push("geometry"),e.length&&(s+=`libraries=${e.join("%2C")}&`),n.type===Ib.BMAP?a.src=`${s}ak=${n.key}&callback=${r}`:a.src=`${s}key=${n.key}&callback=${r}`,a.onerror=function(){console.error("Map load failed.")},document.body.appendChild(a)}}const Tb=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);var Ib=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(Ib||{});function Eb(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let Bb=!1,Mb=!1;const Pb=()=>Mb?Bb:(Mb=!0,Bb="AMap"===Eb().type),Ob=()=>"BMapGL"===Eb().type;const zb=sd({name:"MapMarker",props:{id:{type:[Number,String],default:""},latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},title:{type:String,default:""},iconPath:{type:String,require:!0},rotate:{type:[Number,String],default:0},alpha:{type:[Number,String],default:1},width:{type:[Number,String],default:""},height:{type:[Number,String],default:""},callout:{type:Object,default:null},label:{type:Object,default:null},anchor:{type:Object,default:null},clusterId:{type:[Number,String],default:""},customCallout:{type:Object,default:null},ariaLabel:{type:String,default:""}},setup(e){const t=String(isNaN(Number(e.id))?"":e.id),n=ir("onMapReady"),o=function(e){const t="uni-map-marker-label-"+e,n=document.createElement("style");return n.id=t,document.head.appendChild(n),Ti(()=>{n.remove()}),function(e){const o=Object.assign({},e,{position:"absolute",top:"70px",borderStyle:"solid"}),i=document.createElement("div");return Object.keys(o).forEach(e=>{i.style[e]=o[e]||""}),n.innerText=`.${t}{${i.getAttribute("style")}}`,t}}(t);let i;function r(e){Pb()?e.removeAMapText():e.setMap(null)}if(n((n,a,s)=>{function l(e){const l=e.title;let c;c=Pb()?new a.LngLat(e.longitude,e.latitude):Ob()?new a.Point(e.longitude,e.latitude):new a.LatLng(e.latitude,e.longitude);const u=new Image;let d=0;u.onload=()=>{const h=e.anchor||{};let p,f,m,g,y="number"==typeof h.x?h.x:.5,b="number"==typeof h.y?h.y:1;e.iconPath&&(e.width||e.height)?(f=e.width||u.width/u.height*e.height,m=e.height||u.height/u.width*e.width):(f=u.width/2,m=u.height/2),d=m,g=m-(m-b*m),p="MarkerImage"in a?new a.MarkerImage(u.src,null,null,new a.Point(y*f,b*m),new a.Size(f,m)):"Icon"in a?new a.Icon({image:u.src,size:new a.Size(f,m),imageSize:new a.Size(f,m),imageOffset:new a.Pixel(y*f,b*m)}):{url:u.src,anchor:new a.Point(y,b),size:new a.Size(f,m)},Ob()?(i=new a.Marker(new a.Point(c.lng,c.lat)),n.addOverlay(i)):(i.setPosition(c),i.setIcon(p)),"setRotation"in i&&i.setRotation(e.rotate||0);const v=e.label||{};let _;if("label"in i&&(i.label.setMap(null),delete i.label),v.content){const e={borderColor:v.borderColor,borderWidth:(Number(v.borderWidth)||0)+"px",padding:(Number(v.padding)||0)+"px",borderRadius:(Number(v.borderRadius)||0)+"px",backgroundColor:v.bgColor,color:v.color,fontSize:(v.fontSize||14)+"px",lineHeight:(v.fontSize||14)+"px",marginLeft:(Number(v.anchorX||v.x)||0)+"px",marginTop:(Number(v.anchorY||v.y)||0)+"px"};if("Label"in a)_=new a.Label({position:c,map:n,clickable:!1,content:v.content,style:e}),i.label=_;else if("setLabel"in i)if(Pb()){const t=`<div style="\n margin-left:${e.marginLeft};\n margin-top:${e.marginTop};\n padding:${e.padding};\n background-color:${e.backgroundColor};\n border-radius:${e.borderRadius};\n line-height:${e.lineHeight};\n color:${e.color};\n font-size:${e.fontSize};\n\n ">\n ${v.content}\n <div>`;i.setLabel({content:t,direction:"bottom-right"})}else{const t=o(e);i.setLabel({text:v.content,color:e.color,fontSize:e.fontSize,className:t})}}const w=e.callout||{};let x,S=i.callout;if(w.content||l){Pb()&&w.content&&(w.content=w.content.replaceAll("\n","<br/>"));const o="0px 0px 3px 1px rgba(0,0,0,0.5)";let r=-d/2;if((e.width||e.height)&&(r+=14-d/2),x=w.content?{position:c,map:n,top:g,offsetY:r,content:w.content,color:w.color,fontSize:w.fontSize,borderRadius:w.borderRadius,bgColor:w.bgColor,padding:w.padding,boxShadow:w.boxShadow||o,display:w.display}:{position:c,map:n,top:g,offsetY:r,content:l,boxShadow:o},S)S.setOption(x);else if(Pb()){const e=()=>{""!==t&&s("callouttap",{},{markerId:Number(t)})};S=i.callout=new a.Callout(x,e)}else S=i.callout=new a.Callout(x),S.div.onclick=function(e){""!==t&&s("callouttap",e,{markerId:Number(t)}),e.stopPropagation(),e.preventDefault()},Eb().type===Ib.GOOGLE&&(S.div.ontouchstart=function(e){e.stopPropagation()},S.div.onpointerdown=function(e){e.stopPropagation()})}else S&&(r(S),delete i.callout)},e.iconPath?u.src=lm(e.iconPath):console.error("Marker.iconPath is required.")}!function(e){Ob()||(i=new a.Marker({map:n,flat:!0,autoRotation:!1})),l(e);const o=a.event||a.Event;Ob()||o.addListener(i,"click",()=>{const n=i.callout;if(n&&!n.alwaysVisible)if(Pb())n.visible=!n.visible,n.visible?i.callout.createAMapText():i.callout.removeAMapText();else if(n.set("visible",!n.visible),n.visible){const e=n.div,t=e.parentNode;t.removeChild(e),t.appendChild(e)}t&&s("markertap",{},{markerId:Number(t),latitude:e.latitude,longitude:e.longitude})})}(e),$o(e,l)}),t){const e=ir("addMapChidlContext"),o=ir("removeMapChidlContext"),r={id:t,translate(e){n((t,n,o)=>{const r=e.destination,a=e.duration,s=!!e.autoRotate;let l=Number(e.rotate)||0,c=0;"getRotation"in i&&(c=i.getRotation());const u=i.getPosition(),d=new n.LatLng(r.latitude,r.longitude),h=n.geometry.spherical.computeDistanceBetween(u,d)/1e3/(("number"==typeof a?a:1e3)/36e5),p=n.event||n.Event,f=p.addListener(i,"moving",e=>{const t=e.latLng,n=i.label;n&&n.setPosition(t);const o=i.callout;o&&o.setPosition(t)}),m=p.addListener(i,"moveend",()=>{m.remove(),f.remove(),i.lastPosition=u,i.setPosition(d);const t=i.label;t&&t.setPosition(d);const n=i.callout;n&&n.setPosition(d);const o=e.animationEnd;g(o)&&o()});let y=0;s&&(i.lastPosition&&(y=n.geometry.spherical.computeHeading(i.lastPosition,u)),l=n.geometry.spherical.computeHeading(u,d)-y),"setRotation"in i&&i.setRotation(c+l),"moveTo"in i?i.moveTo(d,h):(i.setPosition(d),p.trigger(i,"moveend",{}))})}};e(r),Ti(()=>o(r))}return Ti(function(){i&&(i.label&&"setMap"in i.label&&i.label.setMap(null),i.callout&&r(i.callout),i.setMap(null))}),()=>null}});function Lb(e){if(!e)return{r:0,g:0,b:0,a:0};let t=e.slice(1);const n=t.length;if(![3,4,6,8].includes(n))return{r:0,g:0,b:0,a:0};3!==n&&4!==n||(t=t.replace(/(\w{1})/g,"$1$1"));let[o,i,r,a]=t.match(/(\w{2})/g);const s=parseInt(o,16),l=parseInt(i,16),c=parseInt(r,16);return a?{r:s,g:l,b:c,a:(`0x100${a}`-65536)/255}:{r:s,g:l,b:c,a:1}}const Nb={points:{type:Array,require:!0},color:{type:String,default:"#000000"},width:{type:[Number,String],default:""},dottedLine:{type:[Boolean,String],default:!1},arrowLine:{type:[Boolean,String],default:!1},arrowIconPath:{type:String,default:""},borderColor:{type:String,default:"#000000"},borderWidth:{type:[Number,String],default:""},colorList:{type:Array,default:()=>[]},level:{type:String,default:""}},Db=sd({name:"MapPolyline",props:Nb,setup(e){let t,n;function o(){t&&t.setMap(null),n&&n.setMap(null)}return ir("onMapReady")((i,r)=>{function a(e){const o=[];e.points.forEach(e=>{let t;t=Pb()?[e.longitude,e.latitude]:Ob()?new r.Point(e.longitude,e.latitude):new r.LatLng(e.latitude,e.longitude),o.push(t)});const a=Number(e.width)||1,{r:s,g:l,b:c,a:u}=Lb(e.color),{r:d,g:h,b:p,a:f}=Lb(e.borderColor),m={map:i,clickable:!1,path:o,strokeWeight:a,strokeColor:e.color||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"},g=Number(e.borderWidth)||0,y={map:i,clickable:!1,path:o,strokeWeight:a+2*g,strokeColor:e.borderColor||void 0,strokeDashStyle:e.dottedLine?"dash":"solid"};"Color"in r?(m.strokeColor=new r.Color(s,l,c,u),y.strokeColor=new r.Color(d,h,p,f)):(m.strokeColor=`rgb(${s}, ${l}, ${c})`,m.strokeOpacity=u,y.strokeColor=`rgb(${d}, ${h}, ${p})`,y.strokeOpacity=f),g&&(n=new r.Polyline(y)),Ob()?(t=new r.Polyline(m.path,m),i.addOverlay(t)):t=new r.Polyline(m)}a(e),$o(e,function(e){o(),a(e)})}),Ti(o),()=>null}}),Rb=sd({name:"MapCircle",props:{latitude:{type:[Number,String],require:!0},longitude:{type:[Number,String],require:!0},color:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},radius:{type:[Number,String],require:!0},strokeWidth:{type:[Number,String],default:""},level:{type:String,default:""}},setup(e){let t;function n(){t&&t.setMap(null)}return ir("onMapReady")((o,i)=>{function r(e){const n=Pb()||Ob()?[e.longitude,e.latitude]:new i.LatLng(e.latitude,e.longitude),r={map:o,center:n,clickable:!1,radius:e.radius,strokeWeight:Number(e.strokeWidth)||1,strokeDashStyle:"solid"};if(Ob())r.strokeColor=e.color,r.fillColor=e.fillColor||"#000",r.fillOpacity=1;else{const{r:t,g:n,b:o,a:a}=Lb(e.fillColor),{r:s,g:l,b:c,a:u}=Lb(e.color);"Color"in i?(r.fillColor=new i.Color(t,n,o,a),r.strokeColor=new i.Color(s,l,c,u)):(r.fillColor=`rgb(${t}, ${n}, ${o})`,r.fillOpacity=a,r.strokeColor=`rgb(${s}, ${l}, ${c})`,r.strokeOpacity=u)}if(Ob()){let e=new i.Point(r.center[0],r.center[1]);t=new i.Circle(e,r.radius,r),o.addOverlay(t)}else t=new i.Circle(r),Pb()&&o.add(t)}r(e),$o(e,function(e){n(),r(e)})}),Ti(n),()=>null}}),$b={id:{type:[Number,String],default:""},position:{type:Object,required:!0},iconPath:{type:String,required:!0},clickable:{type:[Boolean,String],default:""},trigger:{type:Function,required:!0}},jb=sd({name:"MapControl",props:$b,setup(e){const t=ha(()=>lm(e.iconPath)),n=ha(()=>{let t=`top:${e.position.top||0}px;left:${e.position.left||0}px;`;return e.position.width&&(t+=`width:${e.position.width}px;`),e.position.height&&(t+=`height:${e.position.height}px;`),t}),o=t=>{e.clickable&&e.trigger("controltap",t,{controlId:e.id})};return()=>Vr("div",{class:"uni-map-control"},[Vr("img",{src:t.value,style:n.value,class:"uni-map-control-icon",onClick:o},null,12,["src","onClick"])])}}),Fb=sh("makePhoneCall",({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t())),Vb="__DC_STAT_UUID",Hb=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Wb;function Ub(){if(Wb=Wb||Hb[Vb],!Wb){Wb=Date.now()+""+Math.floor(1e7*Math.random());try{Hb[Vb]=Wb}catch(e){}}return Wb}function qb(){if(!0!==__uniConfig.darkmode)return y(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Qb(){let e,t="0",n="",o="phone";const i=navigator.language;if(dm){e="iOS";const o=cm.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=cm.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(um){e="Android";const o=cm.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=cm.match(/\((.+?)\)/),r=i?i[1].split(";"):cm.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<r.length;e++){const t=r[e];if(t.indexOf("Build")>0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e<a.length;e++)if(a[e].test(t)){o=!0;break}if(!o){n=t.trim();break}}}else if(mm){if(n="iPad",e="iOS",o="pad",t=g(window.BigInt)?"14.0":"13.0",14===parseInt(t)){const e=cm.match(/Version\/(\S*)\b/);e&&(t=e[1])}}else if(hm||pm||fm){n="PC",e="PC",o="pc",t="0";let i=cm.match(/\((.+?)\)/)[1];if(hm){switch(e="Windows",hm[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10"}const n=i&&i.match(/[Win|WOW]([\d]+)/);n&&(t+=` x${n[1]}`)}else if(pm){e="macOS";const n=i&&i.match(/Mac OS X (.+)/)||"";t&&(t=n[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))}else if(fm){e="Linux";const n=i&&i.match(/Linux (.*)/)||"";n&&(t=n[1],-1!==t.indexOf(";")&&(t=t.split(";")[0]))}}else e="Other",t="0",o="unknown";const r=`${e} ${t}`,a=e.toLowerCase();let s="",l=String(function(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const o=e[n],i=new RegExp(`(${o})/(\\S*)\\b`);i.test(cm)&&(s=t[n],l=cm.match(i)[2])}}let c="portrait";const u=void 0===window.screen.orientation?window.orientation:window.screen.orientation.angle;return c=90===Math.abs(u)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:c,model:n,system:r,platform:a,browserName:s.toLowerCase(),browserVersion:l,language:i,deviceType:o,ua:cm,osname:e,osversion:t,theme:qb()}}const Yb=ah(0,()=>{const e=window.devicePixelRatio,t=gm(),n=ym(t),o=bm(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=vm(o);let a=window.innerHeight;const s=tu.top,l={left:tu.left,right:r-tu.right,top:tu.top,bottom:a-tu.bottom,width:r-tu.left-tu.right,height:a-tu.top-tu.bottom},{top:c,bottom:u}=au();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:tu.top,right:tu.right,bottom:tu.bottom,left:tu.left},screenTop:i-a}});let Gb,Xb=!0;function Kb(){Xb&&(Gb=Qb())}const Jb=ah(0,()=>{Kb();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:a,deviceType:s,osname:l,osversion:u}=Gb;return c({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:Ub(),deviceOrientation:a,deviceType:s,model:o,platform:i,system:r,osName:l?l.toLowerCase():void 0,osVersion:u})}),Zb=ah(0,()=>{Kb();const{theme:e,language:t,browserName:n,browserVersion:o}=Gb;return c({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:pp?pp():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:"",uniPlatform:"web",isUniAppX:!1,uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion},{})}),ev=ah(0,()=>{Xb=!0,Kb(),Xb=!1;const e=Yb(),t=Jb(),n=Zb();Xb=!0;const{ua:o,browserName:i,browserVersion:r,osname:a,osversion:s}=Gb,l=c(e,t,n,{ua:o,browserName:i,browserVersion:r,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach(n=>{const o=n;t[o]=e[o]}),Object.keys(t)?t:e}(l)}),tv=sh("getSystemInfo",(e,{resolve:t})=>t(ev())),nv="onNetworkStatusChange";function ov(){av().then(({networkType:e})=>{Pw.invokeOnCallback(nv,{isConnected:"none"!==e,networkType:e})})}function iv(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const rv=oh(nv,()=>{const e=iv();e?e.addEventListener("change",ov):(window.addEventListener("offline",ov),window.addEventListener("online",ov))}),av=sh("getNetworkType",(e,{resolve:t})=>{const n=iv();let o="unknown";return n?(o=n.type,"cellular"===o&&n.effectiveType?o=n.effectiveType.replace("slow-",""):!o&&n.effectiveType?o=n.effectiveType:["none","wifi"].includes(o)||(o="unknown")):!1===navigator.onLine&&(o="none"),t({networkType:o})});let sv=null;const lv=oh(Cp,()=>{uv()}),cv=ih("offCompass",()=>{dv()}),uv=sh("startCompass",(e,{resolve:t,reject:n})=>{if(window.DeviceOrientationEvent){if(!sv){if(DeviceOrientationEvent.requestPermission)return void DeviceOrientationEvent.requestPermission().then(e=>{"granted"===e?(o(),t()):n(`${e}`)}).catch(e=>{n(`${e}`)});o()}t()}else n();function o(){sv=function(e){const t=360-(null!==e.alpha?e.alpha:360);Pw.invokeOnCallback(Cp,{direction:t})},window.addEventListener("deviceorientation",sv,!1)}}),dv=sh("stopCompass",(e,{resolve:t})=>{sv&&(window.removeEventListener("deviceorientation",sv,!1),sv=null),t()});const hv=sh("setClipboardData",(e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise((e,t)=>{var r=e=>{try{s(i.next(e))}catch(n){t(n)}},a=e=>{try{s(i.throw(e))}catch(n){t(n)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,a);s((i=i.apply(n,o)).next())});var n,o,i},0,Sp);const pv=ah(0,(e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}),fv=sh("setStorage",({key:e,data:t},{resolve:n,reject:o})=>{try{pv(e,t),n()}catch(i){o(i.message)}});function mv(e){const t=localStorage&&localStorage.getItem(e);if(!y(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=y(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const gv=ah(0,e=>{try{return mv(e)}catch(t){return""}}),yv=ah(0,e=>{localStorage&&localStorage.removeItem(e)}),bv=ah(0,()=>{localStorage&&localStorage.clear()}),vv=sh("openDocument",({filePath:e},{resolve:t})=>(window.open(e),t()),0,kp),_v=sh("hideKeyboard",(e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())});const wv=sh("getImageInfo",({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e},0,Pp),xv={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function Sv({count:e,sourceType:t,type:n,extension:o}){pg();const i=document.createElement("input");return i.type="file",function(e,t){for(const n in t)e.style[n]=t[n]}(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map(e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${xv[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`}).join(","),e&&e>1&&(i.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}let Cv=null;const kv=sh("chooseFile",({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{Sc();const{t:a}=gc();Cv&&(document.body.removeChild(Cv),Cv=null),Cv=Sv({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Cv),Cv.addEventListener("cancel",()=>{r("chooseFile:fail cancel")}),Cv.addEventListener("change",function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i<t;i++){const t=n.files[i];let r;Object.defineProperty(t,"path",{get:()=>(r=r||Am(t),r)}),i<e&&o.push(t)}}i({get tempFilePaths(){return o.map(({path:e})=>e)},tempFiles:o})}),Cv.click(),fg()||console.warn(a("uni.chooseFile.notUserActivation"))},0,Mp);let Av=null;const Tv=sh("chooseImage",({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{Sc();const{t:r}=gc();Av&&(document.body.removeChild(Av),Av=null),Av=Sv({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(Av),Av.addEventListener("cancel",()=>{i("chooseImage:fail cancel")}),Av.addEventListener("change",function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o<t;o++){const t=n.files[o];let r;Object.defineProperty(t,"path",{get:()=>(r=r||Am(t),r)}),o<e&&i.push(t)}}o({get tempFilePaths(){return i.map(({path:e})=>e)},tempFiles:i})}),Av.click(),fg()||console.warn(r("uni.chooseFile.notUserActivation"))},0,Ip),Iv={esc:["Esc","Escape"],enter:["Enter"]},Ev=Object.keys(Iv);function Bv(){const e=$n(""),t=$n(!1),n=n=>{if(t.value)return;const o=Ev.find(e=>-1!==Iv[e].indexOf(n.key));o&&(e.value=o),lo(()=>e.value="")};return Si(()=>{document.addEventListener("keyup",n)}),Ai(()=>{document.removeEventListener("keyup",n)}),{key:e,disable:t}}const Mv=Vr("div",{class:"uni-mask"},null,-1);function Pv(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),fs(oi({setup:()=>()=>(Br(),Lr(e,t,null,16))}))}function Ov(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function zv(e,{onEsc:t,onEnter:n}){const o=$n(e.visible),{key:i,disable:r}=Bv();return $o(()=>e.visible,e=>o.value=e),$o(()=>o.value,e=>r.value=!e),Do(()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()}),o}let Lv=0,Nv="";function Dv(e){let t=Lv;Lv+=e?1:-1,Lv=Math.max(0,Lv),Lv>0?0===t&&(Nv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=Nv,Nv="")}const Rv=sd({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Sn({direction:"none"});let n=1,o=0,i=0,r=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,i=t.height}function c(e){const t=e.target.getBoundingClientRect();r=t.width,a=t.height,d(e)}function u(e){const s=n*o>r,l=n*i>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Vr(Og,{style:n,onTouchstart:ld(c),onTouchmove:ld(d),onTouchend:ld(u)},{default:()=>[Vr(qg,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Vr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function $v(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const jv=sd({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Si(()=>Dv(!0)),Ti(()=>Dv(!1));const n=$n(null),o=$n($v(e));let i;function r(){i||lo(()=>{t("close")})}function a(e){o.value=e.detail.current}$o(()=>e.current,()=>o.value=$v(e)),Si(()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",e=>{i=!1,t=e.clientX,o=e.clientY}),e.addEventListener("mouseup",e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(i=!0)})});const s={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return Vr("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:r},[Vr(Cy,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(i=t=e.urls.map(e=>Vr(Ay,null,{default:()=>[Vr(Rv,{src:e},null,8,["src"])]})),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!Nr(i)?t:{default:()=>[t],_:1}),8,["current","onChange"]),Vr("div",{style:s},[yu("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var i}}});let Fv,Vv=null;const Hv=()=>{Vv=null,lo(()=>{null==Fv||Fv.unmount(),Fv=null})},Wv=sh("previewImage",(e,{resolve:t})=>{Vv?c(Vv,e):(Vv=Sn(e),lo(()=>{Fv=Pv(jv,Vv,Hv),Fv.mount(Ov("u-a-p"))})),t()},0,Op);let Uv=null;const qv=sh("chooseVideo",({sourceType:e,extension:t},{resolve:n,reject:o})=>{Sc();const{t:i}=gc();Uv&&(document.body.removeChild(Uv),Uv=null),Uv=Sv({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Uv),Uv.addEventListener("cancel",()=>{o("chooseVideo:fail cancel")}),Uv.addEventListener("change",function(e){const t=e.target.files[0];let o="";const i={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return o=o||Am(this.tempFile),o}});const r=document.createElement("video");if(void 0!==r.onloadedmetadata){const e=Am(t);r.onloadedmetadata=function(){Tm(e),n(c(i,{duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0}))},setTimeout(()=>{r.onloadedmetadata=null,Tm(e),n(i)},300),r.src=e}else n(i)}),Uv.click(),fg()||console.warn(i("uni.chooseFile.notUserActivation"))},0,Ep),Qv=rh("request",({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:a,withCredentials:s,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const p=function(e){const t=Object.keys(e).find(e=>"content-type"===e.toLowerCase());if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(y(t)||t instanceof ArrayBuffer)d=t;else if("json"===p)try{d=JSON.stringify(t)}catch(m){d=t.toString()}else if("urlencoded"===p){const e=[];for(const n in t)h(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let f;if(a){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,a=t.signal;f=new Gv(t);const h={method:o,headers:n,body:d,signal:a,credentials:s?"include":"same-origin"},p=setTimeout(function(){f.abort(),u("timeout",{errCode:5})},l);h.signal.addEventListener("abort",function(){clearTimeout(p),u("abort",{errCode:600003})}),window.fetch(e,h).then(e=>{const t=e.status,n=e.headers,o=e.body,a={};n.forEach((e,t)=>{a[t]=e});const s=Yv(a);if(f._emitter.emit("headersReceived",{header:a,statusCode:t,cookies:s}),!o)return void c({data:"",statusCode:t,header:a,cookies:s});const l=o.getReader(),u=[],d=()=>{l.read().then(({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce((e,t)=>e+t.byteLength,0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=Kv(n,r,i)),void c({data:n,statusCode:t,header:a,cookies:s})}const o=n;u.push(o),f._emitter.emit("chunkReceived",{data:o}),d()})};d()},e=>{u(e,{errCode:5})})}else{const t=new XMLHttpRequest;f=new Gv(t),t.open(o,e);for(const e in n)h(n,e)&&t.setRequestHeader(e,n[e]);const a=setTimeout(function(){t.onload=t.onabort=t.onerror=null,f.abort(),u("timeout",{errCode:5})},l);t.responseType=r,t.onload=function(){clearTimeout(a);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=Kv(n,r,i)),c({data:n,statusCode:e,header:Xv(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(a),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(a),u(void 0,{errCode:5})},t.withCredentials=s,t.send(d)}return f},0,Rp),Yv=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i<o.length;i++)-1!==o[i].indexOf("Expires=")||-1!==o[i].indexOf("expires=")?n.push(o[i].replace(",","")):n.push(o[i]);return n=n.join(";").split(","),n};class Gv{constructor(e){this._requestOnChunkReceiveCallbackId=0,this._requestOnChunkReceiveCallbacks=new Map,this._requestOnHeadersReceiveCallbackId=0,this._requestOnHeadersReceiveCallbacks=new Map,this._emitter=new ct,this._controller=e}abort(){this._controller&&(this._controller.abort(),delete this._controller)}onHeadersReceived(e){return this._emitter.on("headersReceived",e),this._requestOnHeadersReceiveCallbackId++,this._requestOnHeadersReceiveCallbacks.set(this._requestOnHeadersReceiveCallbackId,e),this._requestOnHeadersReceiveCallbackId}offHeadersReceived(e){if(null==e)return void this._emitter.off("headersReceived");if("function"==typeof e)return void this._requestOnHeadersReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))});const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))});const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Xv(e){const t={};return e.split(ee).forEach(e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])}),t}function Kv(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class Jv{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){g(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const Zv=rh("downloadFile",({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,a=new XMLHttpRequest,s=new Jv(a);return a.open("GET",e,!0),Object.keys(t).forEach(e=>{a.setRequestHeader(e,t[e])}),a.responseType="blob",a.onload=function(){clearTimeout(r);const t=a.status,n=this.response;let i;const s=a.getResponseHeader("content-disposition");if(s){const e=s.match(/filename="?(\S+)"?\b/);e&&(i=e[1])}n.name=i||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:Am(n)})},a.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},a.onerror=function(){clearTimeout(r),i("",{errCode:602001})},a.onprogress=function(e){s._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})})},a.send(),r=setTimeout(function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),i("timeout",{errCode:5})},n),s},0,$p);class e_{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){g(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const t_=rh("uploadFile",({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:a={},timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new e_;return p(i)&&i.length||(i=[{name:o,file:t,uri:n}]),Promise.all(i.map(({file:e,uri:t})=>e instanceof Blob?Promise.resolve(km(e)):Cm(t))).then(function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach(e=>{d.append(e,a[e])}),Object.values(i).forEach(({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)}),o.open("POST",e),Object.keys(r).forEach(e=>{o.setRequestHeader(e,r[e])}),o.upload.onprogress=function(e){u._callbacks.forEach(t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})})},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout(function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})},s),o.send(d),u._xhr=o)}).catch(()=>{setTimeout(()=>{c("file error")},0)}),u},0,jp),n_=[],o_={open:"",close:"",error:"",message:""};class i_{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach(e=>{this._callbacks[e]=[],n.addEventListener(e,t=>{const{data:n,code:o,reason:i}=t,r="message"===e?{data:n}:"close"===e?{code:o,reason:i}:{};if(this._callbacks[e].forEach(t=>{try{t(r)}catch(n){console.error(`thirdScriptError\n${n};at socketTask.on${M(e)} callback function\n`,n)}}),this===n_[0]&&o_[e]&&Pw.invokeOnCallback(o_[e],r),"error"===e||"close"===e){const e=n_.indexOf(this);e>=0&&n_.splice(e,1)}})});["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach(e=>{Object.defineProperty(this,e,{get:()=>n[e]})})}catch(i){o=i}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw Re(e,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");n.send(t),Re(e,"sendSocketMessage:ok")}catch(o){Re(e,{errMsg:`sendSocketMessage:fail ${o}`,errCode:602001})}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;y(o)?t.close(n,o):t.close(n),Re(e,"closeSocket:ok")}catch(n){Re(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const r_=rh("connectSocket",({url:e,protocols:t},{resolve:n,reject:o})=>new i_(e,t,(e,t)=>{e?o(e.toString(),{errCode:600009}):(n_.push(t),n())}),0,Fp),a_=sh("getLocation",({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const a=Eb();new Promise((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(t=>e({coords:t.coords}),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))}).catch(e=>new Promise((t,n)=>{a.type===Ib.QQ?Sb(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${a.key}`,{callback:"callback"},e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))},()=>n(new Error("network error"))):a.type===Ib.GOOGLE?Qv({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${a.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):a.type===Ib.AMAP?Ab([],()=>{window.AMap.plugin("AMap.Geolocation",()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))})})}):n(e)})).then(({coords:t,skip:n})=>{(function(e,t,n){const o=Eb();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise(e=>{Sb(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)},()=>e(t))}):"AMap"===o.type?new Promise(e=>{Ab([],()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",(n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)})})}):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then(e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})}).catch(e=>{r(e.message)})}).catch(e=>{r(e.message||JSON.stringify(e))})},0,Tp),s_=sh("navigateBack",(e,{resolve:t,reject:n})=>{let o=!0;return!0===Tu(ye,{from:e.from||"navigateBack"})&&(o=!1),o?(lb().$router.go(-e.delta),t()):n(ye)},0,Jp),l_=sh(Hp,({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Rf.handledBeforeEntryPageRoutes)return Cf({type:Hp,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);$f.push({args:{type:Hp,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})},0,Yp);function c_(e){__uniConfig.darkmode&&Pw.on(ce,e)}function u_(e){Pw.off(ce,e)}function d_(e){let t={};return __uniConfig.darkmode&&(t=ht(e,__uniConfig.themeConfig,qb())),__uniConfig.darkmode?t:e}function h_(e,t){const n=Tn(e),o=n?Sn(d_(e)):d_(e);return __uniConfig.darkmode&&n&&$o(e,e=>{const t=d_(e);for(const n in t)o[n]=t[n]}),t&&c_(t),o}const p_={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},f_=oi({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=$n(""),o=()=>a.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),a=zv(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),s=function(e){const t=$n(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=p_[e].cancelColor})(e,t)};return Do(()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===qb()&&n({theme:"dark"}),c_(n))):u_(n)}),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=o,Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("uni-modal",{onTouchmove:nu},[Mv,Vr("div",{class:"uni-modal"},[t?Vr("div",{class:"uni-modal__hd"},[Vr("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?Vr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Vr("div",{class:"uni-modal__bd",onTouchmovePassive:ou,textContent:o},null,40,["onTouchmovePassive","textContent"]),Vr("div",{class:"uni-modal__ft"},[l&&Vr("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),Vr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[La,a.value]])]})}}});let m_;const g_=Le(()=>{Pw.on("onHidePopup",()=>m_.visible=!1)});let y_;function b_(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&m_.editable&&(o.content=t),y_&&y_(o)}const v_=sh("showModal",(e,{resolve:t})=>{g_(),y_=t,m_?(c(m_,e),m_.visible=!0):(m_=Sn(e),lo(()=>(Pv(f_,m_,b_).mount(Ov("u-a-m")),lo(()=>m_.visible=!0))))},0,cf),__={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==uf.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},w_="uni-toast__icon",x_={light:"#fff",dark:"rgba(255,255,255,0.9)"},S_=e=>x_[e],C_=oi({name:"Toast",props:__,setup(e){_c(),wc();const{Icon:t}=function(e){const t=$n(S_(qb())),n=({theme:e})=>t.value=S_(e);Do(()=>{e.visible?c_(n):u_(n)});const o=ha(()=>{switch(e.icon){case"success":return Vr(yu(fu,t.value,38),{class:w_});case"error":return Vr(yu(mu,t.value,38),{class:w_});case"loading":return Vr("i",{class:[w_,"uni-loading"]},null,2);default:return null}});return{Icon:o}}(e),n=zv(e,{});return()=>{const{mask:o,duration:i,title:r,image:a}=e;return Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("uni-toast",{"data-duration":i},[o?Vr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:nu},null,40,["onTouchmove"]):"",a||t.value?Vr("div",{class:"uni-toast"},[a?Vr("img",{src:a,class:w_},null,10,["src"]):t.value,Vr("p",{class:"uni-toast__content"},[r])]):Vr("div",{class:"uni-sample-toast"},[Vr("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[La,n.value]])]})}}});let k_,A_,T_="";const I_=gt();function E_(e){k_?c(k_,e):(k_=Sn(c(e,{visible:!1})),lo(()=>{I_.run(()=>{$o([()=>k_.visible,()=>k_.duration],([e,t])=>{if(e){if(A_&&clearTimeout(A_),"onShowLoading"===T_)return;A_=setTimeout(()=>{z_("onHideToast")},t)}else A_&&clearTimeout(A_)})}),Pw.on("onHidePopup",()=>z_("onHidePopup")),Pv(C_,k_,()=>{}).mount(Ov("u-a-t"))})),setTimeout(()=>{k_.visible=!0},10)}const B_=sh("showToast",(e,{resolve:t,reject:n})=>{E_(e),T_="onShowToast",t()},0,df),M_={icon:"loading",duration:1e8,image:""},P_=sh("showLoading",(e,{resolve:t,reject:n})=>{c(e,M_),E_(e),T_="onShowLoading",t()},0,lf),O_=sh("hideLoading",(e,{resolve:t,reject:n})=>{z_("onHideLoading"),t()});function z_(e){const{t:t}=gc();if(!T_)return;let n="";if("onHideToast"===e&&"onShowToast"!==T_?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==T_&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);T_="",setTimeout(()=>{k_.visible=!1},10)}function L_(e){const t=$n(0),n=$n(0),o=ha(()=>t.value>=500&&n.value>=500),i=ha(()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},i=t.content,r=t.triangle,a=e.popover;function s(e){return Number(e)||0}if(o.value&&a){c(r,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=s(a.left),t=s(a.width?a.width:300),o=s(a.top),l=s(a.height),u=e+t/2;i.transform="none !important";const d=Math.max(0,u-t/2);i.left=`${d}px`,a.width&&(i.width=`${t}px`);let h=Math.max(12,u-d);h=Math.min(t-12,h),r.left=`${h}px`;const p=n.value/2;o+l-p>p-o?(i.top="auto",i.bottom=n.value-o+6+"px",r.bottom="-6px",r["border-width"]="6px 6px 0 6px",r["border-color"]="#fcfcfd transparent transparent transparent"):(i.top=`${o+l+6}px`,r.top="-6px",r["border-width"]="0 6px 6px 6px",r["border-color"]="transparent transparent #fcfcfd transparent")}return t});return Si(()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:i}=ev();t.value=e,n.value=o+(i||0)};window.addEventListener("resize",e),e(),Ti(()=>{window.removeEventListener("resize",e)})}),{isDesktop:o,popupStyle:i}}const N_={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const D_=oi({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){vc();const n=$n(260),o=$n(0),i=$n(0),r=$n(0),a=$n(0),s=$n(null),l=$n(null),{t:c}=gc(),{_close:u}=function(e,t){function n(e){t("close",e)}const{key:o,disable:i}=Bv();return $o(()=>e.visible,e=>i.value=!e),Do(()=>{const{value:e}=o;"esc"===e&&n&&n(-1)}),{_close:n}}(e,t),{popupStyle:d}=L_(e);let h;function p(e){const t=r.value+e.deltaY;Math.abs(t)>10?(a.value+=t/3,a.value=a.value>=o.value?o.value:a.value<=0?0:a.value,h.scrollTo(a.value)):r.value=t,e.preventDefault()}Si(()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=ay(s.value,{enableY:!0,friction:new ey(1e-4),spring:new oy(2,90,20),onScroll:e=>{a.value=e.target.scrollTop}});h=e,Rg(s.value,i=>{if(e)switch(i.detail.state){case"start":t(i);break;case"move":n(i);break;case"end":case"cancel":o(i)}},!0)}),$o(()=>e.visible,()=>{lo(()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),h.update(),s.value&&(o.value=s.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach(e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY}),e.addEventListener("touchend",e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-n)<t&&Math.abs(i.clientY-o)<t){const t=e.target,n=e.currentTarget,o=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t,currentTarget:n});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach(e=>{o[e]=i[e]}),e.target.dispatchEvent(o)}})}(e)})})});const f=function(e){const t=Sn({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach(n=>{t[n]=N_[e][n]})}(e,t)};return Do(()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:qb()}),c_(n))):u_(n)}),t}(e);return()=>Vr("uni-actionsheet",{onTouchmove:nu},[Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[La,e.visible]])]}),Vr("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[Vr("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?Vr(Cr,null,[Vr("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),Vr("div",{class:"uni-actionsheet__title"},[e.title])]):"",Vr("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[Vr("div",{ref:s},[e.itemList.map((e,t)=>Vr("div",{key:t,style:{color:f.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(t)},[e],12,["onClick"]))],512)])],40,["onWheel"]),Vr("div",{class:"uni-actionsheet__action"},[Vr("div",{style:{color:f.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),Vr("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let R_,$_,j_;const F_=Le(()=>{Pw.on("onHidePopup",()=>j_.visible=!1)});function V_(e){-1===e?$_&&$_("cancel"):R_&&R_({tapIndex:e})}const H_=sh("showActionSheet",(e,{resolve:t,reject:n})=>{F_(),R_=t,$_=n,j_?(c(j_,e),j_.visible=!0):(j_=Sn(e),lo(()=>(Pv(D_,j_,V_).mount(Ov("u-s-a-s")),lo(()=>j_.visible=!0))))},0,sf),W_=sh("loadFontFace",({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then(()=>{o.add&&o.add(i)})}return new Promise(o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:a,featureSettings:s}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),a&&r.push(`font-variant:${a}`),s&&r.push(`font-feature-settings:${s}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()})})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${lm(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${lm(t.substring(4,t.length-1))}')`:lm(t),n).then(()=>{o()}).catch(e=>{i(`loadFontFace:fail ${e}`)})});function U_(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Pw.emit("onNavigationBarChange",{titleText:t})}Do(t),hi(t)}const q_=sh(rf,(e,{resolve:t,reject:n})=>{!function(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:i,timingFunc:a}=o;e&&(r.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(r.backgroundColor=t),r.duration=i+"ms",r.timingFunc=a;break;case"showNavigationBarLoading":r.loading=!0;break;case"hideNavigationBarLoading":r.loading=!1;break;case rf:const{title:s}=n;r.titleText=s}o()}(wu(),rf,e,t,n)}),Q_=sh("pageScrollTo",({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t){if(y(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const n=document.documentElement,{clientHeight:o,scrollHeight:i}=n;if(e=Math.min(e,i-o),0===t)return void(n.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const r=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame(function(){window.scrollTo(0,window.scrollY+n/t*10),r(t-10)})};r(t)}(t||e||0,n),o()},0,af),Y_=sh(hf,(e,{resolve:t})=>{Pw.invokeViewMethod(hf,{},xu()),t()}),G_=sd({name:"TabBar",setup(){const e=$n([]),t=Tf(),n=h_(t,()=>{const e=d_(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath})});!function(e,t){function n(){let n=[];n=e.list.filter(e=>!1!==e.visible),t.value=n}$n(c({type:"midButton"},e.midButton)),Do(n)}(n,e),function(e){$o(()=>e.shown,t=>{lu({"--window-bottom":zf(t?parseInt(e.height):0)})})}(n);const o=function(e,t,n){return Do(()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex(t=>t.pagePath===e);t.selectedIndex=i}}),(t,n)=>()=>{const{pagePath:o,text:i}=t;let r=ze(o);r===__uniRoutes[0].alias&&(r="/"),e.path!==r?vf({from:"tabBar",url:r,tabBarText:i}):Tu("onTabItemTap",{index:n,text:i,pagePath:o})}}(Gl(),n,e),{style:i,borderStyle:r,placeholderStyle:a}=function(e){const t=ha(()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||Mf&&n&&"none"!==n&&(t=Z_[n]),{backgroundColor:t||X_,backdropFilter:"none"!==n?"blur(10px)":n}}),n=ha(()=>{const{borderStyle:t,borderColor:n}=e;return n&&y(n)?{backgroundColor:n}:{backgroundColor:ew[t]||ew.black}}),o=ha(()=>({height:e.height}));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Si(()=>{n.iconfontSrc&&W_({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})}),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map((n,a)=>{const s=o===a;return function(e,t,n,o,i,r,a,s){return Vr("div",{key:a,class:"uni-tabbar__item",onClick:s(i,a)},[tw(e,t||"",n,o,i,r)],8,["onClick"])}(s?i:r,s&&n.selectedIconPath||n.iconPath||"",n.iconfont?s&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?s&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,a,t)})}(n,o,e);return Vr("uni-tabbar",{class:"uni-tabbar-"+n.position},[Vr("div",{class:"uni-tabbar",style:i.value},[Vr("div",{class:"uni-tabbar-border",style:r.value},null,4),t],4),Vr("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});const X_="#f7f7fa",K_="rgb(0, 0, 0, 0.8)",J_="rgb(250, 250, 250, 0.8)",Z_={dark:K_,light:J_,extralight:J_},ew={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function tw(e,t,n,o,i,r){const{height:a}=r;return Vr("div",{class:"uni-tabbar__bd",style:{height:a}},[n?ow(n,o||K_,i,r):t&&nw(t,i,r),i.text&&iw(e,i,r),i.redDot&&rw(i.badge)],4)}function nw(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n;return Vr("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:r,height:r}},["midButton"!==o&&Vr("img",{src:lm(e)},null,8,["src"])],6)}function ow(e,t,n,o){var i;const{type:r,text:a}=n,{iconWidth:s}=o,l="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),c={width:s,height:s},u={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||s,color:t};return Vr("div",{class:l,style:c},["midButton"!==r&&Vr("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function iw(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:a}=n;return Vr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"}},[i],4)}function rw(e){return Vr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const aw="0px",sw=sd({name:"Layout",setup(e,{emit:t}){const n=$n(null);su({"--status-bar-height":aw,"--top-window-height":aw,"--window-left":aw,"--window-right":aw,"--window-margin":aw,"--tab-bar-height":aw});const o=function(){const e=Gl();return{routeKey:ha(()=>Xf("/"+e.meta.route,Sd())),isTabBar:ha(()=>e.meta.isTabBar),routeCache:Jf}}(),{layoutState:i,windowState:r}=function(){xd();{const e=Sn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return $o(()=>e.marginWidth,e=>su({"--window-margin":e+"px"})),$o(()=>e.leftWindowWidth+e.marginWidth,e=>{su({"--window-left":e+"px"})}),$o(()=>e.rightWindowWidth+e.marginWidth,e=>{su({"--window-right":e+"px"})}),{layoutState:e,windowState:ha(()=>({}))}}}();!function(e,t){const n=xd();function o(){const o=document.body.clientWidth,i=Uf();let r={};if(i.length>0){r=Df(i[i.length-1]).meta}else{const e=Ou(n.path,!0);e&&(r=e.meta)}const a=parseInt(String((h(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=o>a,s&&a?(e.marginWidth=(o-a)/2,lo(()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")})):(e.marginWidth=0,lo(()=>{const e=t.value;e&&e.removeAttribute("style")}))}$o([()=>n.path],o),Si(()=>{o(),window.addEventListener("resize",o)})}(i,n);const a=function(){const e=xd(),t=Tf(),n=ha(()=>e.meta.isTabBar&&t.shown);return su({"--tab-bar-height":t.height}),n}(),s=function(e){const t=$n(!1);return ha(()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value}))}(a);return()=>{const e=function(e){const t=function({routeKey:e,isTabBar:t,routeCache:n}){return Vr(Ql,null,{default:Co(({Component:o})=>[(Br(),Lr(ui,{matchBy:"key",cache:n},[(Br(),Lr(Po(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))]),_:1})}(e);return t}(o),t=function(e){return Wo(Vr(G_,null,null,512),[[La,e.value]])}(a);return Vr("uni-app",{ref:n,class:s.value},[e,t],2)}}});const lw=sh(zp,lh(zp)),cw="saveFile",uw=sh(cw,lh(cw)),dw="MAP_LOCATION",hw=sd({name:"MapLocation",setup(){const e=Sn({latitude:0,longitude:0,rotate:0});{let t=function(t){e.rotate=t.direction},n=function(){a_({type:"gcj02",success:t=>{e.latitude=t.latitude,e.longitude=t.longitude},complete:()=>{r=setTimeout(n,3e4)}})},o=function(){r&&clearTimeout(r),cv(t)};const i=ir("onMapReady");let r;lv(t),i(n),Ti(o);const a=ir("addMapChidlContext"),s=ir("removeMapChidlContext"),l={id:dw,state:e};a(l),Ti(()=>s(l))}return()=>e.latitude?Vr(zb,Gr({anchor:{x:.5,y:.5},width:"44",height:"44",iconPath:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIQAAACECAMAAABmmnOVAAAC01BMVEUAAAAAef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef8Aef96quGStdqStdpbnujMzMzCyM7Gyc7Ky83MzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMwAef8GfP0yjfNWnOp0qOKKsdyYt9mju9aZt9mMstx1qeJYnekyjvIIfP0qivVmouaWttnMzMyat9lppOUujPQKffxhoOfNzc3Y2Njh4eHp6enu7u7y8vL19fXv7+/i4uLZ2dnOzs6auNgOf/sKff15quHR0dHx8fH9/f3////j4+N6quFdn+iywdPb29vw8PD+/v7c3NyywtLa2tr29vbS0tLd3d38/Pzf39/o6Ojc7f+q0v+HwP9rsf9dqv9Hnv9Vpv/q6urj8P+Vx/9Am/8Pgf8Iff/z8/OAvP95uf/n5+c5l//V6f+52v+y1//7+/vt7e0rkP/09PTQ0NDq9P8Whf+cy//W1tbe3t7A3v/m5ubs7OxOov/r6+vk5OQiaPjKAAAAknRSTlMACBZ9oB71/jiqywJBZATT6hBukRXv+zDCAVrkDIf4JbQsTb7eVeJLbwfa8Rh4G/OlPS/6/kxQ9/xdmZudoJxNVhng7B6wtWdzAtQOipcF1329wS44doK/BAkyP1pvgZOsrbnGXArAg34G2IsD1eMRe7bi7k5YnqFT9V0csyPedQyYD3p/Fje+hDpskq/MwpRBC6yKp2MAAAQdSURBVHja7Zn1exMxGIAPHbrhDsPdneHuNtzd3d3dIbjLh93o2o4i7TpgG1Jk0g0mMNwd/gTa5rq129reHnK5e/bk/TFNk/dJ7r5894XjGAwGg8GgTZasCpDIll1+hxw5vXLJLpEboTx5ZXbIhyzkl9fB28cqUaCgrBKFkI3CcjoUKYolihWXUSI7EihRUjaHXF52CVRKLoe8eZIdUOkyMknkRw6UlcehYAFHiXK+skgURk6Ul8OhQjFnCVRRBolKqRxQ5SzUHaqgNGSj7VCmalqJnDkoS5RF6ZCbroNvufQkUD6qEuXTdUA+3hQdqiEXVKfnUKOmK4latalJ1EEuoZZ6162HJ9x/4OChw0eOHj12/MTJU6dxG7XUu751tjNnz4ET5y9ctLZTSr0beKFLl89bpuUDrqgC1RqNWqsKuqqzNFw7e51S6u3tc+OmZUJ9kCHY6ECwOkRvab51iUrqXej2HYDQsHBjWgx3Ae7dppB6N2wEcF9jdMGDUIDGTaR2aNoM9FqjG7QmaN5CWgc/gIePjG559BigpZQOrYB/4jBfRGRUtDkmJjY6KjLCofkpD62lc2gDfMpWPIuLdwyV8XEpHgaddBZ+wBuSFcwJqSN2ovmZ/dfnOvCTxqGtwzq8SEjv4EhISn48eWgnhUP7DvDSvgzxrs6vV6+FLiro2EkCic4QKkzwJsH1KYreCp0eQhfyDl1B/w4P/xa5JVJ4U03QjbRD9x7wXlgH5IE3wmMBHXoSlugFAcI6f/AkkSi8q6HQm6xDn77wEQ8djTwSj3tqAMguRTe4ikeOQyJ4YV+KfkQl+oNW5GbY4gWOWgbwJ+kwAD6Fi90MK2ZsrIeBBCUGwRXbqJ+/iJMQliIEBhOU6AJhtlG/IpHE2bqrYQg5h6HA4yQiRqwEfkGCdTCMmMRw+IbPDCQaHCsCYAQxiZHw3TbmD/ESOHgHwShiEqPhp/gggYkSztIxxCRawy/bmEniJaJtfwiEscQkxkFgRqJESqQwwHhiEuMBp3Vm8RK/cZoHEzKXhCK2QxEPpiJe0YlKCFaKCNv/cYBNUsBRPlkJSc0U+dM7E9H0ThGJbgZT/iR7yj+VqMS06Qr4+OFm2JdCxIa8lugzkJs5K6MfxAaYPUcBpYG5khZJEkUUSb7DPCnKRfPBXj6M8FwuegoLpCgXcQszVjhbJFUJUee2hBhLoYTIcYtB57KY+opSMdVqwatSlZVj05aV//CwJLMX2DluaUcwhXm4ali2XOoLjxUrPV26zFtF4f5p0Gp310+z13BUWNvbehEXona6iAtX/zVZmtfN4WixfsNky4S6gCCVVq3RPLdfSfpv3MRRZfPoLc6Xs/5bt3EyMGzE9h07/Xft2t15z6i9+zgGg8FgMBgMBoPBYDAYDAYj8/APG67Rie8pUDsAAAAASUVORK5CYII="},e),null,16,["iconPath"]):null}}),pw=sd({name:"MapPolygon",props:{dashArray:{type:Array,default:()=>[0,0]},points:{type:Array,required:!0},strokeWidth:{type:Number,default:1},strokeColor:{type:String,default:"#000000"},fillColor:{type:String,default:"#00000000"},zIndex:{type:Number,default:0}},setup(e){let t;return ir("onMapReady")((n,o,i)=>{function r(){const{points:i,strokeWidth:r,strokeColor:a,dashArray:s,fillColor:l,zIndex:c}=e,u=i.map(e=>{const{latitude:t,longitude:n}=e;return Pb()?[n,t]:Ob()?new o.Point(n,t):new o.LatLng(t,n)}),{r:d,g:h,b:p,a:f}=Lb(l),{r:m,g:g,b:y,a:b}=Lb(a),v={clickable:!0,cursor:"crosshair",editable:!1,map:n,fillColor:"",path:u,strokeColor:"",strokeDashStyle:s.some(e=>e>0)?"dash":"solid",strokeWeight:r,visible:!0,zIndex:c};o.Color?(v.fillColor=new o.Color(d,h,p,f),v.strokeColor=new o.Color(m,g,y,b)):(v.fillColor=`rgb(${d}, ${h}, ${p})`,v.fillOpacity=f,v.strokeColor=`rgb(${m}, ${g}, ${y})`,v.strokeOpacity=b),t?t.setOptions(v):Ob()?(t=new o.Polygon(v.path,v),n.addOverlay(t)):t=new o.Polygon(v)}r(),$o(e,r)}),Ti(()=>{t.setMap(null)}),()=>null}});function fw(e){const t=[];return p(e)&&e.forEach(e=>{e&&e.latitude&&e.longitude&&t.push({latitude:e.latitude,longitude:e.longitude})}),t}function mw(e,t,n){return Ob()?function(e,t,n){return new e.Point(n,t)}(e,t,n):Pb()?function(e,t,n){return new e.LngLat(n,t)}(e,t,n):function(e,t,n){return new e.LatLng(t,n)}(e,t,n)}function gw(e){return"getLat"in e?e.getLat():Ob()?e.lat:e.lat()}function yw(e){return"getLng"in e?e.getLng():Ob()?e.lng:e.lng()}function bw(e,t,n){const o=cd(t,n),i=$n(null);let r,a;const s=Sn({latitude:Number(e.latitude),longitude:Number(e.longitude),includePoints:fw(e.includePoints)}),l=[];let u,d;function h(e){u?e(a,r,o):l.push(e)}const p=[];function f(e){d?e():l.push(e)}const m={};function g(){const e=a.getCenter();return{scale:a.getZoom(),centerLocation:{latitude:gw(e),longitude:yw(e)}}}function y(){if(Pb()){const e=[];s.includePoints.forEach(t=>{e.push([t.longitude,t.latitude])});const t=new r.Bounds(...e);a.setBounds(t)}else if(Ob());else{const e=new r.LatLngBounds;s.includePoints.forEach(({latitude:t,longitude:n})=>{const o=new r.LatLng(t,n);e.extend(o)}),a.fitBounds(e)}}function b(){const t=i.value,l=mw(r,s.latitude,s.longitude),u=r.event||r.Event,h=new r.Map(t,{center:l,zoom:Number(e.scale),disableDoubleClickZoom:!0,mapTypeControl:!1,zoomControl:!1,scaleControl:!1,panControl:!1,fullscreenControl:!1,streetViewControl:!1,keyboardShortcuts:!1,minZoom:5,maxZoom:18,draggable:!0});if(Ob()&&(h.centerAndZoom(l,Number(e.scale)),h.enableScrollWheelZoom(),h._printLog&&h._printLog("uniapp")),$o(()=>e.scale,e=>{h.setZoom(Number(e)||16)}),f(()=>{s.includePoints.length&&(y(),function(){const e=mw(r,s.latitude,s.longitude);a.setCenter(e)}())}),Ob())h.addEventListener("click",()=>{o("tap",{},{}),o("click",{},{})}),h.addEventListener("dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),h.addEventListener("dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},g()))});else{const e=u.addListener(h,"bounds_changed",()=>{e.remove(),d=!0,p.forEach(e=>e()),p.length=0});u.addListener(h,"click",()=>{o("tap",{},{}),o("click",{},{})}),u.addListener(h,"dragstart",()=>{o("regionchange",{},{type:"begin",causedBy:"gesture"})}),u.addListener(h,"dragend",()=>{o("regionchange",{},c({type:"end",causedBy:"drag"},g()))});const t=()=>{n("update:scale",h.getZoom()),o("regionchange",{},c({type:"end",causedBy:"scale"},g()))};u.addListener(h,"zoom_changed",t),u.addListener(h,"zoomend",t),u.addListener(h,"center_changed",()=>{const e=h.getCenter(),t=gw(e),o=yw(e);n("update:latitude",t),n("update:longitude",o)})}return h}$o([()=>e.latitude,()=>e.longitude],([e,t])=>{const n=Number(e),o=Number(t);if((n!==s.latitude||o!==s.longitude)&&(s.latitude=n,s.longitude=o,a)){const e=mw(r,s.latitude,s.longitude);a.setCenter(e)}}),$o(()=>e.includePoints,e=>{s.includePoints=fw(e),d&&y()},{deep:!0});try{$y((e,t={})=>{switch(e){case"getCenterLocation":h(()=>{const n=a.getCenter();Re(t,{latitude:gw(n),longitude:yw(n),errMsg:`${e}:ok`})});break;case"moveToLocation":{let n=Number(t.latitude),o=Number(t.longitude);if(!n||!o){const e=m[dw];e&&(n=e.state.latitude,o=e.state.longitude)}if(n&&o){if(s.latitude=n,s.longitude=o,a){const e=mw(r,n,o);a.setCenter(e)}h(()=>{Re(t,`${e}:ok`)})}else Re(t,`${e}:fail`)}break;case"translateMarker":h(()=>{const n=m[t.markerId];if(n){try{n.translate(t)}catch(o){Re(t,`${e}:fail ${o.message}`)}Re(t,`${e}:ok`)}else Re(t,`${e}:fail not found`)});break;case"includePoints":s.includePoints=fw(t.includePoints),(d||Pb())&&y(),f(()=>{Re(t,`${e}:ok`)});break;case"getRegion":f(()=>{const n=a.getBounds(),o=n.getSouthWest(),i=n.getNorthEast();Re(t,{southwest:{latitude:gw(o),longitude:yw(o)},northeast:{latitude:gw(i),longitude:yw(i)},errMsg:`${e}:ok`})});break;case"getScale":h(()=>{Re(t,{scale:a.getZoom(),errMsg:`${e}:ok`})})}},Fy(),!0)}catch(v){}return Si(()=>{Ab(e.libraries,e=>{r=e,a=b(),u=!0,l.forEach(e=>e(a,r,o)),l.length=0,o("updated",{},{})})}),or("onMapReady",h),or("addMapChidlContext",function(e){m[e.id]=e}),or("removeMapChidlContext",function(e){delete m[e.id]}),{state:s,mapRef:i,trigger:o}}const vw=ad({name:"Map",props:{id:{type:String,default:""},latitude:{type:[String,Number],default:0},longitude:{type:[String,Number],default:0},scale:{type:[String,Number],default:16},markers:{type:Array,default:()=>[]},includePoints:{type:Array,default:()=>[]},polyline:{type:Array,default:()=>[]},circles:{type:Array,default:()=>[]},controls:{type:Array,default:()=>[]},showLocation:{type:[Boolean,String],default:!1},libraries:{type:Array,default:()=>[]},polygons:{type:Array,default:()=>[]}},emits:["markertap","labeltap","callouttap","controltap","regionchange","tap","click","updated","update:scale","update:latitude","update:longitude"],setup(e,{emit:t,slots:n}){const o=$n(null),{mapRef:i,trigger:r}=bw(e,o,t);return()=>Vr("uni-map",{ref:o,id:e.id},[Vr("div",{ref:i,style:"width: 100%; height: 100%; position: relative; overflow: hidden"},null,512),e.markers.map(e=>Vr(zb,Gr({key:e.id},e),null,16)),e.polyline.map(e=>Vr(Db,e,null,16)),e.circles.map(e=>Vr(Rb,e,null,16)),e.controls.map(e=>Vr(jb,Gr(e,{trigger:r}),null,16,["trigger"])),e.showLocation&&Vr(hw,null,null),e.polygons.map(e=>Vr(pw,e,null,16)),Vr("div",{style:"position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;"},[n.default&&n.default()])],8,["id"])}});function _w(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Nr(e)}function ww(e){if(e.mode===Cw.TIME)return"00:00";if(e.mode===Cw.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case kw.YEAR:return t.toString();case kw.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function xw(e){if(e.mode===Cw.TIME)return"23:59";if(e.mode===Cw.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case kw.YEAR:return t.toString();case kw.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function Sw(e,t,n,o){const i=e.mode===Cw.DATE?"-":":",r=e.mode===Cw.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Cw.TIME)a=2;else switch(e.fields){case kw.YEAR:a=1;break;case kw.MONTH:a=2;break;default:a=3}const s=String(n).split(i);let l=[];for(let c=0;c<a;c++){const e=s[c];l.push(r[c].indexOf(e))}return l.indexOf(-1)>=0&&(l=o?Sw(e,t,o):l.map(()=>0)),l}const Cw={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},kw={YEAR:"year",MONTH:"month",DAY:"day"},Aw={PICKER:"picker",SELECT:"select"},Tw=ad({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Cw.SELECTOR,validator:e=>Object.values(Cw).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>ww(e)},end:{type:String,default:e=>xw(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){kc();const{t:o}=gc(),i=$n(null),r=$n(null),a=$n(null),s=$n(null),l=$n(!1),{state:c,rangeArray:u}=function(e){const t=Sn({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=ha(()=>{let n=e.range;switch(e.mode){case Cw.SELECTOR:return[n];case Cw.MULTISELECTOR:return n;case Cw.TIME:return t.timeArray;case Cw.DATE:{const n=t.dateArray;switch(e.fields){case kw.YEAR:return[n[0]];case kw.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]});return{state:t,rangeArray:n}}(e),d=cd(i,t),{system:h,selectorTypeComputed:f,_show:m,_l10nColumn:g,_l10nItem:y,_input:b,_fixInputPosition:v,_pickerViewChange:_,_cancel:w,_change:x,_resetFormData:S,_getFormData:C,_createTime:k,_createDate:A,_setValueSync:T}=function(e,t,n,o,i,r,a){const s=function(){const e=$n(!1);return e.value=Iw(),e}(),l=function(){const e=$n("");return e.value=Ew(),e}(),c=ha(()=>{const t=e.selectorType;return Object.values(Aw).includes(t)?t:s.value?Aw.PICKER:Aw.SELECT}),u=ha(()=>e.mode===Cw.DATE&&!Object.values(kw).includes(e.fields)&&t.isDesktop?l.value:""),d=ha(()=>Sw(e,t,e.start,ww(e))),h=ha(()=>Sw(e,t,e.end,xw(e)));function f(n){if(e.disabled)return;t.valueChangeSource="";let o=i.value,r=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.style.display="block";const a=r.getBoundingClientRect();t.popover={top:a.top,left:a.left,width:a.width,height:a.height},setTimeout(()=>{t.visible=!0},20)}function m(){return{value:t.valueSync,key:e.name}}function g(){switch(e.mode){case Cw.SELECTOR:t.valueSync=0;break;case Cw.MULTISELECTOR:t.valueSync=e.value.map(e=>0);break;case Cw.DATE:case Cw.TIME:t.valueSync=""}}function y(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function b(){let t=(new Date).getFullYear(),n=t-150,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&t<n&&(n=t)}if(e.end){const t=new Date(e.end).getFullYear();!isNaN(t)&&t>o&&(o=t)}return{start:n,end:o}}function v(){let e=[];const n=b();for(let t=n.start,r=n.end;t<=r;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let i=[];for(let t=1;t<=31;t++)i.push((t<10?"0":"")+t);t.dateArray.push(e,o,i)}function _(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;n<e.length&&n<t.length;n++)e[n]=t[n]}function S(){let n=e.value;switch(e.mode){case Cw.MULTISELECTOR:{p(n)||(n=t.valueArray),p(t.valueSync)||(t.valueSync=[]);const o=t.valueSync.length=Math.max(n.length,e.range.length);for(let i=0;i<o;i++){const o=Number(n[i]),r=Number(t.valueSync[i]),a=isNaN(o)?isNaN(r)?0:r:o,s=e.range[i]?e.range[i].length-1:0;t.valueSync.splice(i,1,a<0||a>s?0:a)}}break;case Cw.TIME:case Cw.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function C(){let n,o=t.valueSync;switch(e.mode){case Cw.MULTISELECTOR:n=[...o];break;case Cw.TIME:n=Sw(e,t,o,De({mode:Cw.TIME}));break;case Cw.DATE:n=Sw(e,t,o,De({mode:Cw.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function k(){let n=t.valueArray;switch(e.mode){case Cw.SELECTOR:return n[0];case Cw.MULTISELECTOR:return n.map(e=>e);case Cw.TIME:return t.valueArray.map((e,n)=>t.timeArray[n][e]).join(":");case Cw.DATE:return t.valueArray.map((e,n)=>t.dateArray[n][e]).join("-")}}function A(){I(),t.valueChangeSource="click";const e=k();t.valueSync=p(e)?e.map(e=>e):e,n("change",{},{value:e})}function T(e){if("firefox"===u.value&&e){const{top:n,left:o,width:i,height:r}=t.popover,{pageX:a,pageY:s}=e;if(a>o&&a<o+i&&s>n&&s<n+r)return}I(),n("cancel",{},{})}function I(){t.visible=!1,setTimeout(()=>{let e=i.value;e.remove(),o.value.prepend(e),e.style.display="none"},260)}function E(){e.mode===Cw.SELECTOR&&c.value===Aw.SELECT&&(r.value.scrollTop=34*t.valueArray[0])}function B(e){const n=e.target;t.valueSync=n.value,lo(()=>{A()})}function M(e){if("chrome"===u.value){const t=o.value.getBoundingClientRect(),n=32;a.value.style.left=e.clientX-t.left-1.5*n+"px",a.value.style.top=e.clientY-t.top-.5*n+"px"}}function P(e){t.valueArray=O(e.detail.value,!0)}function O(t,n){const{getLocale:o}=gc();if(e.mode===Cw.DATE){const i=o();if(!i.startsWith("zh"))switch(e.fields){case kw.YEAR:return t;case kw.MONTH:return[t[1],t[0]];default:switch(i){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function z(t,n){const{getLocale:o}=gc();if(e.mode===Cw.DATE){const i=o();if(i.startsWith("zh")){return t+["å¹´","æ","æ¥"][n]}if(e.fields!==kw.YEAR&&n===(e.fields===kw.MONTH||"es"!==i&&"fr"!==i?0:1)){let e;switch(i){case"es":e=["enero","febrero","marzo","abril","mayo","junio","ââjulio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return $o(()=>t.visible,e=>{e?(clearTimeout(Bw),t.contentVisible=e,E()):Bw=setTimeout(()=>{t.contentVisible=e},300)}),$o([()=>e.mode,()=>e.value,()=>e.range],S,{deep:!0}),$o(()=>t.valueSync,C,{deep:!0}),$o(()=>t.valueArray,o=>{if(e.mode===Cw.TIME||e.mode===Cw.DATE){const n=e.mode===Cw.TIME?_:w,o=t.valueArray,i=d.value,r=h.value;if(e.mode===Cw.DATE){const e=t.dateArray,n=e[2].length,i=Number(e[2][o[2]])||1,r=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${i}`).getDate();r<i&&(o[2]-=r+n-i)}n(o)<n(i)?x(o,i):n(o)>n(r)&&x(o,r)}o.forEach((o,i)=>{o!==t.oldValueArray[i]&&(t.oldValueArray[i]=o,e.mode===Cw.MULTISELECTOR&&n("columnchange",{},{column:i,value:o}))})}),{selectorTypeComputed:c,system:u,_show:f,_cancel:T,_change:A,_l10nColumn:O,_l10nItem:z,_input:B,_resetFormData:g,_getFormData:m,_createTime:y,_createDate:v,_setValueSync:S,_fixInputPosition:M,_pickerViewChange:P}}(e,c,d,i,r,a,s);!function(e,t,n){const{key:o,disable:i}=Bv();Do(()=>{i.value=!e.visible}),$o(o,e=>{"esc"===e?t():"enter"===e&&n()})}(c,w,x),function(e,t){const n=ir(pd,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),Ai(()=>{n.removeField(o)})}}(S,C),k(),A(),T();const I=L_(c);return Do(()=>{c.isDesktop=I.isDesktop.value,c.popupStyle=I.popupStyle.value}),Ai(()=>{r.value&&r.value.remove()}),Si(()=>{l.value=!0}),()=>{let t;const{visible:d,contentVisible:p,valueArray:S,popupStyle:C,valueSync:k}=c,{rangeKey:A,mode:T,start:I,end:E}=e,B=hd(e,"disabled");return Vr("uni-picker",Gr({ref:i},B,{onClick:ld(m)}),[l.value?Vr("div",{ref:r,class:["uni-picker-container",`uni-${T}-${f.value}`],onWheel:nu,onTouchmove:nu},[Vr(wa,{name:"uni-fade"},{default:()=>[Wo(Vr("div",{class:"uni-mask uni-picker-mask",onClick:ld(w),onMousemove:v},null,40,["onClick","onMousemove"]),[[La,d]])]}),h.value?null:Vr("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:C.content},[Vr("div",{class:"uni-picker-header",onClick:ou},[Vr("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:ld(w)},[o("uni.picker.cancel")],8,["onClick"]),Vr("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:x},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),p?Vr(Zg,{value:g(S),class:"uni-picker-content",onChange:_},_w(t=Pi(g(u.value),(e,t)=>{let n;return Vr(sy,{key:t},_w(n=Pi(e,(e,n)=>Vr("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[A]||"":y(e,t)])))?n:{default:()=>[n],_:1})}))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,Vr("div",{ref:a,class:"uni-picker-select",onWheel:ou,onTouchmove:ou},[Pi(u.value[0],(e,t)=>Vr("div",{key:t,class:["uni-picker-item",{selected:S[0]===t}],onClick:()=>{S[0]=t,x()}},["object"==typeof e?e[A]||"":e],10,["onClick"]))],40,["onWheel","onTouchmove"]),Vr("div",{style:C.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,Vr("div",null,[n.default&&n.default()]),h.value?Vr("div",{class:"uni-picker-system",onMousemove:ld(v)},[Vr("input",{class:["uni-picker-system_input",h.value],ref:s,value:k,type:T,tabindex:"-1",min:I,max:E,onChange:e=>{b(e),ou(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});const Iw=()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0;const Ew=()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};let Bw;const Mw=c(Lc,{publishHandler(e,t,n){Pw.subscribeHandler(e,t,n)}}),Pw=c(Qu,{publishHandler(e,t,n){Mw.subscribeHandler(e,t,n)}}),Ow=sd({name:"PageHead",setup(){const e=$n(null),t=_d(),n=h_(t.navigationBar,()=>{const e=d_(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor}),{clazz:o,style:i}=function(e){const t=ha(()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i}),n=ha(()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc}));return{clazz:t,style:n}}(n);return()=>{const r=function(e,t){if(!t)return Vr("div",{class:"uni-page-head-btn",onClick:Lw},[yu(gu,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),a=n.type||"default",s="transparent"!==a&&"float"!==a&&Vr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return Vr("uni-page-head",{"uni-page-head-type":a},[Vr("div",{ref:e,class:o.value,style:i.value},[Vr("div",{class:"uni-page-head-hd"},[r]),zw(n),Vr("div",{class:"uni-page-head-ft"},[])],6),s],8,["uni-page-head-type"])}}});function zw(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return Vr("div",{class:"uni-page-head-bd"},[Vr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?Vr("i",{class:"uni-loading"},null):i?Vr("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Lw(){1===Wf().length?Sf({url:"/"}):s_({from:"backbutton",success(){}})}const Nw={name:"PageRefresh",setup(){const{pullToRefresh:e}=_d();return{offset:e.offset,color:e.color}}},Dw=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},Rw={class:"uni-page-refresh-inner"},$w=["fill"],jw=[Fr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),Fr("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Fw={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Vw=["stroke"];const Hw=Dw(Nw,[["render",function(e,t,n,o,i,r){return Br(),zr("uni-page-refresh",null,[Fr("div",{style:We({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[Fr("div",Rw,[(Br(),zr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},jw,8,$w)),(Br(),zr("svg",Fw,[Fr("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Vw)]))])],4)])}]]);function Ww(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter(e=>e.identifier===t)[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const Uw="pulling",qw="reached",Qw="aborting",Yw="refreshing",Gw="restoring";function Xw(e){const t=_d(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let a,s,l,c,u,d,h,p;$y(()=>{t.enablePullDownRefresh&&(p||(p=Yw,y(),setTimeout(()=>{x()},50)))},"startPullDownRefresh",!1,n),$y(()=>{t.enablePullDownRefresh&&p===Yw&&(b(),p=Gw,y(),function(e){if(!s)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}(()=>{b(),p=f=m=null}))},hf,!1,n),Si(()=>{a=e.value.$el,s=a.querySelector(".uni-page-refresh"),l=s.style,c=s.querySelector(".uni-page-refresh-inner").style});let f=null,m=null;function g(e){p&&a&&a.classList[e]("uni-page-refresh--"+p)}function y(){g("add")}function b(){g("remove")}const v=ld(e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,h=!([Qw,Yw,Gw].indexOf(p)>=0)}),_=ld(e=>{if(!t.enablePullDownRefresh)return;if(!h)return;if(!Ww(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!p)return;e.cancelable&&e.preventDefault(),null===f&&(m=n,p=Uw,y()),n-=m,n<0&&(n=0),f=n;(n>=i&&p!==qw||n<i&&p!==Uw)&&(b(),p=p===qw?Uw:qw,y()),function(e){if(!s)return;let t=e/i;t>1?t=1:t*=t*t;const n=Math.round(e/(i/r))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)}),w=ld(e=>{t.enablePullDownRefresh&&Ww(e,u,d)&&null!==p&&(p===Uw?(b(),p=Qw,y(),function(e){if(!s)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),s.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};s.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}(()=>{b(),p=f=m=null})):p===qw&&(b(),p=Yw,y(),x()))});function x(){s&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",Tu(n,we))}return{onTouchstartPassive:v,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const Kw=sd({name:"PageBody",setup(e,t){const n=_d(),o=$n(null),i=$n(null),r=n.enablePullDownRefresh?Xw(o):null,a=$n(null);return $o(()=>n.enablePullDownRefresh,()=>{a.value=n.enablePullDownRefresh?r:null},{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return Vr(Hw,{ref:e},null,512)}(o,n);return Vr(Cr,null,[e,Vr("uni-page-wrapper",Gr({ref:i},a.value),[Vr("uni-page-body",null,[zi(t.slots,"default")]),null],16)])}}});const Jw=sd({name:"Page",setup(e,t){let n=wd(Sd());const o=n.navigationBar,i={};return U_(n),()=>Vr("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[Vr(Ow),Zw(t),null]:[Zw(t),null])}});function Zw(e){return Br(),Lr(Kw,{key:0},{default:Co(()=>[zi(e.slots,"page")]),_:3})}const ex={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=yh;const tx=Object.assign({}),nx=Object.assign;window.__uniConfig=nx({globalStyle:{backgroundColor:"#F5F6FA",navigationBar:{backgroundColor:"#0f95b0",type:"default",titleColor:"#ffffff"},isNVue:!1},uniIdRouter:{},tabBar:{position:"bottom",color:"#999999",selectedColor:"#0f95b0",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"é¦é¡µ",iconPath:"/static/tabbar/home.png",selectedIconPath:"/static/tabbar/home-active.png"},{pagePath:"pages/my/index",text:"æç",iconPath:"/static/tabbar/my.png",selectedIconPath:"/static/tabbar/my-active.png"}],backgroundColor:"#FFFFFF",selectedIndex:0,shown:!0},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1","^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}},compilerVersion:"4.75"},{appId:"__UNI__46B5420",appName:"éå²å¤§å¦éå±å»é¢opo",appVersion:"1.0.0",appVersionCode:"100",async:ex,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(tx).reduce((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return nx(e[n]||(e[n]={}),tx[t].default),e},{}),router:{mode:"history",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const ox={delay:ex.delay,timeout:ex.timeout,suspensible:ex.suspensible};ex.loading&&(ox.loadingComponent={name:"SystemAsyncLoading",render:()=>Vr(Bo(ex.loading))}),ex.error&&(ox.errorComponent={name:"SystemAsyncError",props:["error"],render(){return Vr(Bo(ex.error),{error:this.error})}});const ix=()=>t(()=>import("./pages-index-index.D0FcXv5-.js"),__vite__mapDeps([0,1])).then(e=>hb(e.default||e)),rx=ri(nx({loader:ix},ox)),ax=()=>t(()=>import("./pages-appointment-index.DZFXVB0U.js"),__vite__mapDeps([2,3])).then(e=>hb(e.default||e)),sx=ri(nx({loader:ax},ox)),lx=()=>t(()=>import("./pages-login-Login.BhFflYOt.js"),__vite__mapDeps([4,5,6,7,8])).then(e=>hb(e.default||e)),cx=ri(nx({loader:lx},ox)),ux=()=>t(()=>import("./pages-login-Register.Cw6DXqWj.js"),__vite__mapDeps([9,10])).then(e=>hb(e.default||e)),dx=ri(nx({loader:ux},ox)),hx=()=>t(()=>import("./pages-my-index.FuUTzUBA.js"),__vite__mapDeps([11,12])).then(e=>hb(e.default||e)),px=ri(nx({loader:hx},ox)),fx=()=>t(()=>import("./pages-vaccine-index.CwIsANNt.js"),__vite__mapDeps([13,14])).then(e=>hb(e.default||e)),mx=ri(nx({loader:fx},ox)),gx=()=>t(()=>import("./pages-vaccine-book.BRBmIpUZ.js"),__vite__mapDeps([15,16,17,18])).then(e=>hb(e.default||e)),yx=ri(nx({loader:gx},ox)),bx=()=>t(()=>import("./pages-appointment-doctor.CgfgRWi6.js"),__vite__mapDeps([19,20])).then(e=>hb(e.default||e)),vx=ri(nx({loader:bx},ox)),_x=()=>t(()=>import("./pages-appointment-schedule.PrxrEErT.js"),__vite__mapDeps([21,22])).then(e=>hb(e.default||e)),wx=ri(nx({loader:_x},ox)),xx=()=>t(()=>import("./pages-appointment-record.CUlkZsy9.js"),__vite__mapDeps([23,24])).then(e=>hb(e.default||e)),Sx=ri(nx({loader:xx},ox)),Cx=()=>t(()=>import("./pages-payment-index.DqAnLDuo.js"),__vite__mapDeps([25,26])).then(e=>hb(e.default||e)),kx=ri(nx({loader:Cx},ox)),Ax=()=>t(()=>import("./pages-department-index.BfV9vCYS.js"),__vite__mapDeps([27,28])).then(e=>hb(e.default||e)),Tx=ri(nx({loader:Ax},ox)),Ix=()=>t(()=>import("./pages-department-guide.CMQeoBk4.js"),__vite__mapDeps([29,30])).then(e=>hb(e.default||e)),Ex=ri(nx({loader:Ix},ox)),Bx=()=>t(()=>import("./pages-department-list.8MD1Qr3g.js"),__vite__mapDeps([31,32])).then(e=>hb(e.default||e)),Mx=ri(nx({loader:Bx},ox)),Px=()=>t(()=>import("./pages-department-detail.BNH_sh2g.js"),__vite__mapDeps([33,34])).then(e=>hb(e.default||e)),Ox=ri(nx({loader:Px},ox)),zx=()=>t(()=>import("./pages-department-search.BgDYOJFe.js"),__vite__mapDeps([35,36])).then(e=>hb(e.default||e)),Lx=ri(nx({loader:zx},ox)),Nx=()=>t(()=>import("./pages-hospital-detail.CF6tIZy-.js"),__vite__mapDeps([37,38])).then(e=>hb(e.default||e)),Dx=ri(nx({loader:Nx},ox)),Rx=()=>t(()=>import("./pages-records-medical.-n3hlufC.js"),__vite__mapDeps([39,40,41])).then(e=>hb(e.default||e)),$x=ri(nx({loader:Rx},ox)),jx=()=>t(()=>import("./pages-records-detail.CaOwXOuw.js"),__vite__mapDeps([42,43])).then(e=>hb(e.default||e)),Fx=ri(nx({loader:jx},ox)),Vx=()=>t(()=>import("./pages-records-report.CPdcIRu2.js"),__vite__mapDeps([44,45])).then(e=>hb(e.default||e)),Hx=ri(nx({loader:Vx},ox)),Wx=()=>t(()=>import("./pages-my-cases.B6qANqtr.js"),__vite__mapDeps([46,47])).then(e=>hb(e.default||e)),Ux=ri(nx({loader:Wx},ox)),qx=()=>t(()=>import("./pages-my-case-detail.CBIHmcF0.js"),__vite__mapDeps([48,49])).then(e=>hb(e.default||e)),Qx=ri(nx({loader:qx},ox)),Yx=()=>t(()=>import("./pages-records-reports.BrLRK2Rm.js"),__vite__mapDeps([50,51])).then(e=>hb(e.default||e)),Gx=ri(nx({loader:Yx},ox)),Xx=()=>t(()=>import("./pages-records-report-detail.CAuD8e84.js"),__vite__mapDeps([52,53])).then(e=>hb(e.default||e)),Kx=ri(nx({loader:Xx},ox)),Jx=()=>t(()=>import("./pages-appointment-patient.CUvIJa07.js"),__vite__mapDeps([54,55])).then(e=>hb(e.default||e)),Zx=ri(nx({loader:Jx},ox)),eS=()=>t(()=>import("./pages-appointment-confirm.DnCqW5Ah.js"),__vite__mapDeps([56,57])).then(e=>hb(e.default||e)),tS=ri(nx({loader:eS},ox)),nS=()=>t(()=>import("./pages-vaccine-list.DiCagvq9.js"),__vite__mapDeps([58,59])).then(e=>hb(e.default||e)),oS=ri(nx({loader:nS},ox)),iS=()=>t(()=>import("./pages-vaccine-detail.zoDABptb.js"),__vite__mapDeps([60,61])).then(e=>hb(e.default||e)),rS=ri(nx({loader:iS},ox)),aS=()=>t(()=>import("./pages-vaccine-record.DD8wZCLx.js"),__vite__mapDeps([62,40,63])).then(e=>hb(e.default||e)),sS=ri(nx({loader:aS},ox)),lS=()=>t(()=>import("./pages-case-index.pf3ESR3m.js"),__vite__mapDeps([64,65,66])).then(e=>hb(e.default||e)),cS=ri(nx({loader:lS},ox)),uS=()=>t(()=>import("./pages-case-CaseDetails.CGMIhcDO.js"),__vite__mapDeps([67,68,5,6,16,17,69,65,70])).then(e=>hb(e.default||e)),dS=ri(nx({loader:uS},ox)),hS=()=>t(()=>import("./pages-case-CaseInfo.BOW0loua.js"),__vite__mapDeps([71,65,72])).then(e=>hb(e.default||e)),pS=ri(nx({loader:hS},ox)),fS=()=>t(()=>import("./pages-case-transfer.CqtJ6hby.js"),__vite__mapDeps([73,65,74])).then(e=>hb(e.default||e)),mS=ri(nx({loader:fS},ox)),gS=()=>t(()=>import("./pages-case-transferinfo.DO9d4ZVL.js"),__vite__mapDeps([75,68,5,6,16,17,69,76])).then(e=>hb(e.default||e)),yS=ri(nx({loader:gS},ox)),bS=()=>t(()=>import("./pages-payment-record.DwE-Q_DL.js"),__vite__mapDeps([77,78])).then(e=>hb(e.default||e)),vS=ri(nx({loader:bS},ox)),_S=()=>t(()=>import("./pages-payment-detail.DRwiLdrU.js"),__vite__mapDeps([79,80])).then(e=>hb(e.default||e)),wS=ri(nx({loader:_S},ox)),xS=()=>t(()=>import("./pages-payment-result.QQR_yWkS.js"),__vite__mapDeps([81,82])).then(e=>hb(e.default||e)),SS=ri(nx({loader:xS},ox)),CS=()=>t(()=>import("./pages-payment-refund.CAspZ0Mt.js"),__vite__mapDeps([83,84])).then(e=>hb(e.default||e)),kS=ri(nx({loader:CS},ox)),AS=()=>t(()=>import("./pages-payment-invoice.DNFHIg8p.js"),__vite__mapDeps([85,16,17,86])).then(e=>hb(e.default||e)),TS=ri(nx({loader:AS},ox)),IS=()=>t(()=>import("./pages-patient-list.DvZksraE.js"),__vite__mapDeps([87,88])).then(e=>hb(e.default||e)),ES=ri(nx({loader:IS},ox)),BS=()=>t(()=>import("./pages-patient-add.CE9QyMe1.js"),__vite__mapDeps([89,90])).then(e=>hb(e.default||e)),MS=ri(nx({loader:BS},ox)),PS=()=>t(()=>import("./pages-patient-edit.C86meww0.js"),__vite__mapDeps([91,92])).then(e=>hb(e.default||e)),OS=ri(nx({loader:PS},ox)),zS=()=>t(()=>import("./pages-my-payment-method.CsTiw-hp.js"),__vite__mapDeps([93,94])).then(e=>hb(e.default||e)),LS=ri(nx({loader:zS},ox)),NS=()=>t(()=>import("./pages-my-add-bank-card.DZf0zj2T.js"),__vite__mapDeps([95,96])).then(e=>hb(e.default||e)),DS=ri(nx({loader:NS},ox)),RS=()=>t(()=>import("./pages-my-notification.DX6nX5TI.js"),__vite__mapDeps([97,98])).then(e=>hb(e.default||e)),$S=ri(nx({loader:RS},ox)),jS=()=>t(()=>import("./pages-search-index.Bvr6V9xZ.js"),__vite__mapDeps([99,100])).then(e=>hb(e.default||e)),FS=ri(nx({loader:jS},ox)),VS=()=>t(()=>import("./pages-doctor-detail.mfKWn8k4.js"),__vite__mapDeps([101,102])).then(e=>hb(e.default||e)),HS=ri(nx({loader:VS},ox)),WS=()=>t(()=>import("./pages-disease-detail.DjnSS6dn.js"),__vite__mapDeps([103,104])).then(e=>hb(e.default||e)),US=ri(nx({loader:WS},ox)),qS=()=>t(()=>import("./pages-appointment-department.BpcN6e2H.js"),__vite__mapDeps([105,106])).then(e=>hb(e.default||e)),QS=ri(nx({loader:qS},ox)),YS=()=>t(()=>import("./pages-news-list.D_omhimu.js"),__vite__mapDeps([107,108,109,110])).then(e=>hb(e.default||e)),GS=ri(nx({loader:YS},ox)),XS=()=>t(()=>import("./pages-news-detail.CMNtDnmM.js"),__vite__mapDeps([111,112])).then(e=>hb(e.default||e)),KS=ri(nx({loader:XS},ox)),JS=()=>t(()=>import("./pages-featured-tcm.BpRULc7Q.js"),__vite__mapDeps([113,114])).then(e=>hb(e.default||e)),ZS=ri(nx({loader:JS},ox)),eC=()=>t(()=>import("./pages-featured-project.B1PZzANa.js"),__vite__mapDeps([115,116])).then(e=>hb(e.default||e)),tC=ri(nx({loader:eC},ox)),nC=()=>t(()=>import("./pages-featured-case.D511IYP8.js"),__vite__mapDeps([117,118])).then(e=>hb(e.default||e)),oC=ri(nx({loader:nC},ox)),iC=()=>t(()=>import("./pages-featured-index.doTu5eiV.js"),__vite__mapDeps([119,120])).then(e=>hb(e.default||e)),rC=ri(nx({loader:iC},ox)),aC=()=>t(()=>import("./pages-featured-cross-border.DZNiCif3.js"),__vite__mapDeps([121,122])).then(e=>hb(e.default||e)),sC=ri(nx({loader:aC},ox)),lC=()=>t(()=>import("./pages-featured-expert.DZsRNDFu.js"),__vite__mapDeps([123,108,109,124,125,126])).then(e=>hb(e.default||e)),cC=ri(nx({loader:lC},ox)),uC=()=>t(()=>import("./pages-featured-all.D-lrXyD1.js"),__vite__mapDeps([127,108,109,124,125,128])).then(e=>hb(e.default||e)),dC=ri(nx({loader:uC},ox)),hC=()=>t(()=>import("./pages-featured-bay-area.CUpVpi9j.js"),__vite__mapDeps([129,108,109,130])).then(e=>hb(e.default||e)),pC=ri(nx({loader:hC},ox)),fC=()=>t(()=>import("./pages-my-profile.CEIirN_r.js"),__vite__mapDeps([131,132])).then(e=>hb(e.default||e)),mC=ri(nx({loader:fC},ox)),gC=()=>t(()=>import("./pages-consultation-index.CqZ1lmbi.js"),__vite__mapDeps([133,134])).then(e=>hb(e.default||e)),yC=ri(nx({loader:gC},ox)),bC=()=>t(()=>import("./pages-ethicalReview-ethicalInfo.DqZWtTwW.js"),__vite__mapDeps([135,7,136])).then(e=>hb(e.default||e)),vC=ri(nx({loader:bC},ox)),_C=()=>t(()=>import("./pages-ethicalReview-index.BzfjMOj2.js"),__vite__mapDeps([137,65,138])).then(e=>hb(e.default||e)),wC=ri(nx({loader:_C},ox)),xC=()=>t(()=>import("./pages-consultation-chat.AYjGpr2U.js"),__vite__mapDeps([139,16,17,140])).then(e=>hb(e.default||e)),SC=ri(nx({loader:xC},ox)),CC=()=>t(()=>import("./pages-consultation-ai.-XBXkt06.js"),__vite__mapDeps([141,16,17,142])).then(e=>hb(e.default||e)),kC=ri(nx({loader:CC},ox)),AC=()=>t(()=>import("./pages-my-health-records.SDOOWbro.js"),__vite__mapDeps([143,144])).then(e=>hb(e.default||e)),TC=ri(nx({loader:AC},ox));function IC(e,t){return Br(),Lr(Jw,null,{page:Co(()=>[Vr(e,nx({},t,{ref:"page"}),null,512)]),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(rx,t)}},loader:ix,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,enablePullDownRefresh:!0,navigationBar:{titleText:"é大éé¢OPO管çå¹³å°",type:"default"},isNVue:!1}},{path:"/pages/appointment/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(sx,t)}},loader:ax,meta:{navigationBar:{titleText:"é¢çº¦æå·",type:"default"},isNVue:!1}},{path:"/pages/login/Login",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(cx,t)}},loader:lx,meta:{navigationBar:{titleText:"ç»å½",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/login/Register",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(dx,t)}},loader:ux,meta:{navigationBar:{titleText:"注å",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/my/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(px,t)}},loader:hx,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"个人ä¸å¿",type:"default"},isNVue:!1}},{path:"/pages/vaccine/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(mx,t)}},loader:fx,meta:{navigationBar:{titleText:"ç«èæ¥ç§",type:"default"},isNVue:!1}},{path:"/pages/vaccine/book",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(yx,t)}},loader:gx,meta:{navigationBar:{titleText:"ç«èé¢çº¦",type:"default"},isNVue:!1}},{path:"/pages/appointment/doctor",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(vx,t)}},loader:bx,meta:{navigationBar:{titleText:"éæ©å»ç",type:"default"},isNVue:!1}},{path:"/pages/appointment/schedule",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(wx,t)}},loader:_x,meta:{navigationBar:{titleText:"éæ©æ¶é´",type:"default"},isNVue:!1}},{path:"/pages/appointment/record",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Sx,t)}},loader:xx,meta:{navigationBar:{titleText:"é¢çº¦è®°å½",type:"default"},isNVue:!1}},{path:"/pages/payment/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(kx,t)}},loader:Cx,meta:{navigationBar:{titleText:"æ¯ä»",type:"default"},isNVue:!1}},{path:"/pages/department/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Tx,t)}},loader:Ax,meta:{navigationBar:{titleText:"éæ©ç§å®¤",type:"default"},isNVue:!1}},{path:"/pages/department/guide",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Ex,t)}},loader:Ix,meta:{navigationBar:{titleText:"ç§å®¤å¯¼èª",type:"default"},isNVue:!1}},{path:"/pages/department/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Mx,t)}},loader:Bx,meta:{navigationBar:{titleText:"ç§å®¤å表",type:"default"},isNVue:!1}},{path:"/pages/department/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Ox,t)}},loader:Px,meta:{navigationBar:{titleText:"ç§å®¤è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/department/search",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Lx,t)}},loader:zx,meta:{navigationBar:{titleText:"æç´¢ç»æ",type:"default"},isNVue:!1}},{path:"/pages/hospital/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Dx,t)}},loader:Nx,meta:{navigationBar:{titleText:"å»é¢è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/records/medical",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC($x,t)}},loader:Rx,meta:{navigationBar:{titleText:"å°±å»è®°å½",type:"default"},isNVue:!1}},{path:"/pages/records/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Fx,t)}},loader:jx,meta:{navigationBar:{titleText:"å°±å»è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/records/report",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Hx,t)}},loader:Vx,meta:{navigationBar:{titleText:"æ£æ¥æ¥å",type:"default"},isNVue:!1}},{path:"/pages/my/cases",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Ux,t)}},loader:Wx,meta:{navigationBar:{titleText:"个人ç
ä¾",type:"default"},isNVue:!1}},{path:"/pages/my/case-detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Qx,t)}},loader:qx,meta:{navigationBar:{titleText:"ç
ä¾è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/records/reports",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Gx,t)}},loader:Yx,meta:{navigationBar:{titleText:"æ£æ¥æ¥åå表",type:"default"},isNVue:!1}},{path:"/pages/records/report-detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Kx,t)}},loader:Xx,meta:{navigationBar:{titleText:"æ£æ¥æ¥å详æ
",type:"default"},isNVue:!1}},{path:"/pages/appointment/patient",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(Zx,t)}},loader:Jx,meta:{navigationBar:{titleText:"鿩就è¯äºº",type:"default"},isNVue:!1}},{path:"/pages/appointment/confirm",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(tS,t)}},loader:eS,meta:{navigationBar:{titleText:"确认é¢çº¦",type:"default"},isNVue:!1}},{path:"/pages/vaccine/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(oS,t)}},loader:nS,meta:{navigationBar:{titleText:"ç«èå表",type:"default"},isNVue:!1}},{path:"/pages/vaccine/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(rS,t)}},loader:iS,meta:{navigationBar:{titleText:"ç«è详æ
",type:"default"},isNVue:!1}},{path:"/pages/vaccine/record",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(sS,t)}},loader:aS,meta:{navigationBar:{titleText:"æ¥ç§è®°å½",type:"default"},isNVue:!1}},{path:"/pages/case/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(cS,t)}},loader:lS,meta:{navigationBar:{titleText:"æç䏿¥",type:"default"},isNVue:!1}},{path:"/pages/case/CaseDetails",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(dS,t)}},loader:uS,meta:{navigationBar:{titleText:"䏿¥æ¡ä¾",type:"default"},isNVue:!1}},{path:"/pages/case/CaseInfo",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(pS,t)}},loader:hS,meta:{navigationBar:{titleText:"æ¡ä¾è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/case/transfer",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(mS,t)}},loader:fS,meta:{navigationBar:{titleText:"转è¿ç»è®°",type:"default"},isNVue:!1}},{path:"/pages/case/transferinfo",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(yS,t)}},loader:gS,meta:{navigationBar:{titleText:"ç»è®°å详æ
",type:"default"},isNVue:!1}},{path:"/pages/payment/record",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(vS,t)}},loader:bS,meta:{navigationBar:{titleText:"缴费记å½",type:"default"},isNVue:!1}},{path:"/pages/payment/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(wS,t)}},loader:_S,meta:{navigationBar:{titleText:"缴费详æ
",type:"default"},isNVue:!1}},{path:"/pages/payment/result",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(SS,t)}},loader:xS,meta:{navigationBar:{titleText:"æ¯ä»ç»æ",type:"default"},isNVue:!1}},{path:"/pages/payment/refund",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(kS,t)}},loader:CS,meta:{navigationBar:{titleText:"ç³è¯·é款",type:"default"},isNVue:!1}},{path:"/pages/payment/invoice",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(TS,t)}},loader:AS,meta:{navigationBar:{titleText:"çµåå票",type:"default"},isNVue:!1}},{path:"/pages/patient/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(ES,t)}},loader:IS,meta:{navigationBar:{titleText:"å°±è¯äººç®¡ç",type:"default"},isNVue:!1}},{path:"/pages/patient/add",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(MS,t)}},loader:BS,meta:{navigationBar:{titleText:"æ·»å å°±è¯äºº",type:"default"},isNVue:!1}},{path:"/pages/patient/edit",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(OS,t)}},loader:PS,meta:{navigationBar:{titleText:"ç¼è¾å°±è¯äºº",type:"default"},isNVue:!1}},{path:"/pages/my/payment-method",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(LS,t)}},loader:zS,meta:{navigationBar:{titleText:"æ¯ä»æ¹å¼",type:"default"},isNVue:!1}},{path:"/pages/my/add-bank-card",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(DS,t)}},loader:NS,meta:{navigationBar:{titleText:"æ·»å é¶è¡å¡",type:"default"},isNVue:!1}},{path:"/pages/my/notification",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC($S,t)}},loader:RS,meta:{navigationBar:{titleText:"æ¶æ¯éç¥",type:"default"},isNVue:!1}},{path:"/pages/search/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(FS,t)}},loader:jS,meta:{navigationBar:{titleText:"æç´¢",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/doctor/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(HS,t)}},loader:VS,meta:{navigationBar:{titleText:"å»ç详æ
",type:"default"},isNVue:!1}},{path:"/pages/disease/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(US,t)}},loader:WS,meta:{navigationBar:{titleText:"ç¾ç
详æ
",type:"default"},isNVue:!1}},{path:"/pages/appointment/department",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(QS,t)}},loader:qS,meta:{navigationBar:{titleText:"éæ©ç§å®¤",type:"default"},isNVue:!1}},{path:"/pages/news/list",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(GS,t)}},loader:YS,meta:{navigationBar:{titleText:"å»é¢èµè®¯",type:"default"},isNVue:!1}},{path:"/pages/news/detail",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(KS,t)}},loader:XS,meta:{navigationBar:{titleText:"èµè®¯è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/featured/tcm",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(ZS,t)}},loader:JS,meta:{navigationBar:{titleText:"ä¸å»ç¹è²è¯ç",type:"default"},isNVue:!1}},{path:"/pages/featured/project",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(tC,t)}},loader:eC,meta:{navigationBar:{titleText:"项ç®è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/featured/case",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(oC,t)}},loader:nC,meta:{navigationBar:{titleText:"æ¡ä¾è¯¦æ
",type:"default"},isNVue:!1}},{path:"/pages/featured/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(rC,t)}},loader:iC,meta:{navigationBar:{titleText:"ç¹è²å»ç",type:"default"},isNVue:!1}},{path:"/pages/featured/cross-border",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(sC,t)}},loader:aC,meta:{navigationBar:{titleText:"è·¨å¢å»çæå¡",type:"default"},isNVue:!1}},{path:"/pages/featured/expert",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(cC,t)}},loader:lC,meta:{navigationBar:{titleText:"ä¸å®¶é¨è¯",type:"default"},isNVue:!1}},{path:"/pages/featured/all",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(dC,t)}},loader:uC,meta:{navigationBar:{titleText:"å
¨é¨ç¹è²å»ç",type:"default"},isNVue:!1}},{path:"/pages/featured/bay-area",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(pC,t)}},loader:hC,meta:{navigationBar:{titleText:"大湾åºç¹è²å»ç",type:"default"},isNVue:!1}},{path:"/pages/my/profile",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(mC,t)}},loader:fC,meta:{navigationBar:{titleText:"个人信æ¯",type:"default"},isNVue:!1}},{path:"/pages/consultation/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(yC,t)}},loader:gC,meta:{navigationBar:{titleText:"å¨çº¿é®è¯",type:"default"},isNVue:!1}},{path:"/pages/ethicalReview/ethicalInfo",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(vC,t)}},loader:bC,meta:{navigationBar:{titleText:"伦ç审æ¥",type:"default"},isNVue:!1}},{path:"/pages/ethicalReview/index",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(wC,t)}},loader:_C,meta:{navigationBar:{titleText:"审æ¥è®°å½",type:"default"},isNVue:!1}},{path:"/pages/consultation/chat",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(SC,t)}},loader:xC,meta:{navigationBar:{titleText:"å»çé®è¯",type:"default"},isNVue:!1}},{path:"/pages/consultation/ai",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(kC,t)}},loader:CC,meta:{navigationBar:{titleText:"AIé®è¯å©æ",type:"default"},isNVue:!1}},{path:"/pages/my/health-records",component:{setup(){const e=lb(),t=e&&e.$route&&e.$route.query||{};return()=>IC(TC,t)}},loader:AC,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"å¥åº·æ¡£æ¡",type:"default"},isNVue:!1}}].map(e=>(e.meta.route=(e.alias||e.path).slice(1),e)); |
| | | /*! |
| | | * pinia v2.1.7 |
| | | * (c) 2023 Eduardo San Martin Morote |
| | |
| | | import{af as e,ag as t,O as s,ah as n,ai as i,K as r,L as o,D as a,G as c,aj as l,ak as u,E as d,al as h,am as p,U as f,V as g,H as m,an as y,ac as _,n as v,v as w,s as T,j as k,ao as b,ap as x,aq as I,ar as S,as as P,_ as A,Q as C,a as O,c as F,w as L,f as E,F as U,h as R,l as D,e as N,p as M,d as B,b as $,a7 as q,m as j,i as K,at as z,B as V,t as H,ab as J,k as W,x as G,C as Q,r as Y,J as X,au as Z,z as ee,A as te,a5 as se,a6 as ne,S as ie}from"./index-Bf8mw6fQ.js";import{_ as re}from"./uni-icons.B0nHGUYu.js";import{_ as oe}from"./uni-popup.Cdyk2Swr.js";const ae={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"ééé¢OPO管çå¹³å°",enablePullDownRefresh:!0}},{path:"pages/appointment/index",style:{navigationBarTitleText:"é¢çº¦æå·"}},{path:"pages/login/Login",style:{navigationBarTitleText:"ç»å½",navigationStyle:"custom"}},{path:"pages/login/Register",style:{navigationBarTitleText:"注å",navigationStyle:"custom"}},{path:"pages/my/index",style:{navigationBarTitleText:"个人ä¸å¿"}},{path:"pages/vaccine/index",style:{navigationBarTitleText:"ç«èæ¥ç§"}},{path:"pages/vaccine/book",style:{navigationBarTitleText:"ç«èé¢çº¦"}},{path:"pages/appointment/doctor",style:{navigationBarTitleText:"éæ©å»ç"}},{path:"pages/appointment/schedule",style:{navigationBarTitleText:"éæ©æ¶é´"}},{path:"pages/appointment/record",style:{navigationBarTitleText:"é¢çº¦è®°å½"}},{path:"pages/payment/index",style:{navigationBarTitleText:"æ¯ä»"}},{path:"pages/department/index",style:{navigationBarTitleText:"éæ©ç§å®¤"}},{path:"pages/department/guide",style:{navigationBarTitleText:"ç§å®¤å¯¼èª"}},{path:"pages/department/list",style:{navigationBarTitleText:"ç§å®¤å表"}},{path:"pages/department/detail",style:{navigationBarTitleText:"ç§å®¤è¯¦æ
"}},{path:"pages/department/search",style:{navigationBarTitleText:"æç´¢ç»æ"}},{path:"pages/hospital/detail",style:{navigationBarTitleText:"å»é¢è¯¦æ
"}},{path:"pages/records/medical",style:{navigationBarTitleText:"å°±å»è®°å½"}},{path:"pages/records/detail",style:{navigationBarTitleText:"å°±å»è¯¦æ
"}},{path:"pages/records/report",style:{navigationBarTitleText:"æ£æ¥æ¥å"}},{path:"pages/my/cases",style:{navigationBarTitleText:"个人ç
ä¾"}},{path:"pages/my/case-detail",style:{navigationBarTitleText:"ç
ä¾è¯¦æ
"}},{path:"pages/records/reports",style:{navigationBarTitleText:"æ£æ¥æ¥åå表"}},{path:"pages/records/report-detail",style:{navigationBarTitleText:"æ£æ¥æ¥å详æ
"}},{path:"pages/appointment/patient",style:{navigationBarTitleText:"鿩就è¯äºº"}},{path:"pages/appointment/confirm",style:{navigationBarTitleText:"确认é¢çº¦"}},{path:"pages/vaccine/list",style:{navigationBarTitleText:"ç«èå表"}},{path:"pages/vaccine/detail",style:{navigationBarTitleText:"ç«è详æ
"}},{path:"pages/vaccine/record",style:{navigationBarTitleText:"æ¥ç§è®°å½"}},{path:"pages/case/index",style:{navigationBarTitleText:"æç䏿¥"}},{path:"pages/case/CaseDetails",style:{navigationBarTitleText:"䏿¥æ¡ä¾"}},{path:"pages/case/CaseInfo",style:{navigationBarTitleText:"æ¡ä¾è¯¦æ
"}},{path:"pages/case/transfer",style:{navigationBarTitleText:"转è¿ç»è®°"}},{path:"pages/case/transferinfo",style:{navigationBarTitleText:"ç»è®°å详æ
"}},{path:"pages/payment/record",style:{navigationBarTitleText:"缴费记å½"}},{path:"pages/payment/detail",style:{navigationBarTitleText:"缴费详æ
"}},{path:"pages/payment/result",style:{navigationBarTitleText:"æ¯ä»ç»æ"}},{path:"pages/payment/refund",style:{navigationBarTitleText:"ç³è¯·é款"}},{path:"pages/payment/invoice",style:{navigationBarTitleText:"çµåå票"}},{path:"pages/patient/list",style:{navigationBarTitleText:"å°±è¯äººç®¡ç"}},{path:"pages/patient/add",style:{navigationBarTitleText:"æ·»å å°±è¯äºº"}},{path:"pages/patient/edit",style:{navigationBarTitleText:"ç¼è¾å°±è¯äºº"}},{path:"pages/my/payment-method",style:{navigationBarTitleText:"æ¯ä»æ¹å¼"}},{path:"pages/my/add-bank-card",style:{navigationBarTitleText:"æ·»å é¶è¡å¡"}},{path:"pages/my/notification",style:{navigationBarTitleText:"æ¶æ¯éç¥"}},{path:"pages/search/index",style:{navigationBarTitleText:"æç´¢",navigationStyle:"custom"}},{path:"pages/doctor/detail",style:{navigationBarTitleText:"å»ç详æ
"}},{path:"pages/disease/detail",style:{navigationBarTitleText:"ç¾ç
详æ
"}},{path:"pages/appointment/department",style:{navigationBarTitleText:"éæ©ç§å®¤"}},{path:"pages/news/list",style:{navigationBarTitleText:"å»é¢èµè®¯"}},{path:"pages/news/detail",style:{navigationBarTitleText:"èµè®¯è¯¦æ
"}},{path:"pages/featured/tcm",style:{navigationBarTitleText:"ä¸å»ç¹è²è¯ç"}},{path:"pages/featured/project",style:{navigationBarTitleText:"项ç®è¯¦æ
"}},{path:"pages/featured/case",style:{navigationBarTitleText:"æ¡ä¾è¯¦æ
"}},{path:"pages/featured/index",style:{navigationBarTitleText:"ç¹è²å»ç"}},{path:"pages/featured/cross-border",style:{navigationBarTitleText:"è·¨å¢å»çæå¡"}},{path:"pages/featured/expert",style:{navigationBarTitleText:"ä¸å®¶é¨è¯"}},{path:"pages/featured/all",style:{navigationBarTitleText:"å
¨é¨ç¹è²å»ç"}},{path:"pages/featured/bay-area",style:{navigationBarTitleText:"大湾åºç¹è²å»ç"}},{path:"pages/my/profile",style:{navigationBarTitleText:"个人信æ¯"}},{path:"pages/consultation/index",style:{navigationBarTitleText:"å¨çº¿é®è¯"}},{path:"pages/ethicalReview/ethicalInfo",style:{navigationBarTitleText:"伦ç审æ¥"}},{path:"pages/ethicalReview/index",style:{navigationBarTitleText:"审æ¥è®°å½"}},{path:"pages/consultation/chat",style:{navigationBarTitleText:"å»çé®è¯"}},{path:"pages/consultation/ai",style:{navigationBarTitleText:"AIé®è¯å©æ"}},{path:"pages/my/health-records",style:{navigationBarTitleText:"å¥åº·æ¡£æ¡",enablePullDownRefresh:!0}}],globalStyle:{navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0f95b0",backgroundColor:"#F5F6FA"},uniIdRouter:{},tabBar:{color:"#999999",selectedColor:"#0f95b0",backgroundColor:"#FFFFFF",borderStyle:"black",list:[{pagePath:"pages/index/index",text:"é¦é¡µ",iconPath:"static/tabbar/home.png",selectedIconPath:"static/tabbar/home-active.png"},{pagePath:"pages/my/index",text:"æç",iconPath:"static/tabbar/my.png",selectedIconPath:"static/tabbar/my-active.png"}]},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1","^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}}};function ce(e,t,s){return e(s={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&s.path)}},s.exports),s.exports}var le=ce(function(e,t){var s;e.exports=(s=s||function(e){var t=Object.create||function(){function e(){}return function(t){var s;return e.prototype=t,s=new e,e.prototype=null,s}}(),s={},n=s.lib={},i=n.Base={extend:function(e){var s=t(this);return e&&s.mixIn(e),s.hasOwnProperty("init")&&this.init!==s.init||(s.init=function(){s.$super.init.apply(this,arguments)}),s.init.prototype=s,s.$super=this,s},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=n.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,s=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var r=0;r<i;r++){var o=s[r>>>2]>>>24-r%4*8&255;t[n+r>>>2]|=o<<24-(n+r)%4*8}else for(r=0;r<i;r+=4)t[n+r>>>2]=s[r>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,s=this.sigBytes;t[s>>>2]&=4294967295<<32-s%4*8,t.length=e.ceil(s/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var s,n=[],i=function(t){var s=987654321,n=4294967295;return function(){var i=((s=36969*(65535&s)+(s>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var a=i(4294967296*(s||e.random()));s=987654071*a(),n.push(4294967296*a()|0)}return new r.init(n,t)}}),o=s.enc={},a=o.Hex={stringify:function(e){for(var t=e.words,s=e.sigBytes,n=[],i=0;i<s;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n<t;n+=2)s[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new r.init(s,t/2)}},c=o.Latin1={stringify:function(e){for(var t=e.words,s=e.sigBytes,n=[],i=0;i<s;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n<t;n++)s[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new r.init(s,t)}},l=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=n.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var s=this._data,n=s.words,i=s.sigBytes,o=this.blockSize,a=i/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var u=0;u<c;u+=o)this._doProcessBlock(n,u);var d=n.splice(0,c);s.sigBytes-=l}return new r.init(d,l)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=u.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,s){return new e.init(s).finalize(t)}},_createHmacHelper:function(e){return function(t,s){return new d.HMAC.init(e,s).finalize(t)}}});var d=s.algo={};return s}(Math),s)}),ue=le,de=(ce(function(e,t){var s;e.exports=(s=ue,function(e){var t=s,n=t.lib,i=n.WordArray,r=n.Hasher,o=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var s=0;s<16;s++){var n=t+s,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],v=e[t+8],w=e[t+9],T=e[t+10],k=e[t+11],b=e[t+12],x=e[t+13],I=e[t+14],S=e[t+15],P=r[0],A=r[1],C=r[2],O=r[3];P=l(P,A,C,O,o,7,a[0]),O=l(O,P,A,C,c,12,a[1]),C=l(C,O,P,A,p,17,a[2]),A=l(A,C,O,P,f,22,a[3]),P=l(P,A,C,O,g,7,a[4]),O=l(O,P,A,C,m,12,a[5]),C=l(C,O,P,A,y,17,a[6]),A=l(A,C,O,P,_,22,a[7]),P=l(P,A,C,O,v,7,a[8]),O=l(O,P,A,C,w,12,a[9]),C=l(C,O,P,A,T,17,a[10]),A=l(A,C,O,P,k,22,a[11]),P=l(P,A,C,O,b,7,a[12]),O=l(O,P,A,C,x,12,a[13]),C=l(C,O,P,A,I,17,a[14]),P=u(P,A=l(A,C,O,P,S,22,a[15]),C,O,c,5,a[16]),O=u(O,P,A,C,y,9,a[17]),C=u(C,O,P,A,k,14,a[18]),A=u(A,C,O,P,o,20,a[19]),P=u(P,A,C,O,m,5,a[20]),O=u(O,P,A,C,T,9,a[21]),C=u(C,O,P,A,S,14,a[22]),A=u(A,C,O,P,g,20,a[23]),P=u(P,A,C,O,w,5,a[24]),O=u(O,P,A,C,I,9,a[25]),C=u(C,O,P,A,f,14,a[26]),A=u(A,C,O,P,v,20,a[27]),P=u(P,A,C,O,x,5,a[28]),O=u(O,P,A,C,p,9,a[29]),C=u(C,O,P,A,_,14,a[30]),P=d(P,A=u(A,C,O,P,b,20,a[31]),C,O,m,4,a[32]),O=d(O,P,A,C,v,11,a[33]),C=d(C,O,P,A,k,16,a[34]),A=d(A,C,O,P,I,23,a[35]),P=d(P,A,C,O,c,4,a[36]),O=d(O,P,A,C,g,11,a[37]),C=d(C,O,P,A,_,16,a[38]),A=d(A,C,O,P,T,23,a[39]),P=d(P,A,C,O,x,4,a[40]),O=d(O,P,A,C,o,11,a[41]),C=d(C,O,P,A,f,16,a[42]),A=d(A,C,O,P,y,23,a[43]),P=d(P,A,C,O,w,4,a[44]),O=d(O,P,A,C,b,11,a[45]),C=d(C,O,P,A,S,16,a[46]),P=h(P,A=d(A,C,O,P,p,23,a[47]),C,O,o,6,a[48]),O=h(O,P,A,C,_,10,a[49]),C=h(C,O,P,A,I,15,a[50]),A=h(A,C,O,P,m,21,a[51]),P=h(P,A,C,O,b,6,a[52]),O=h(O,P,A,C,f,10,a[53]),C=h(C,O,P,A,T,15,a[54]),A=h(A,C,O,P,c,21,a[55]),P=h(P,A,C,O,v,6,a[56]),O=h(O,P,A,C,S,10,a[57]),C=h(C,O,P,A,y,15,a[58]),A=h(A,C,O,P,x,21,a[59]),P=h(P,A,C,O,g,6,a[60]),O=h(O,P,A,C,k,10,a[61]),C=h(C,O,P,A,p,15,a[62]),A=h(A,C,O,P,w,21,a[63]),r[0]=r[0]+P|0,r[1]=r[1]+A|0,r[2]=r[2]+C|0,r[3]=r[3]+O|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;s[i>>>5]|=128<<24-i%32;var r=e.floor(n/4294967296),o=n;s[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),s[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(s.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,s,n,i,r,o){var a=e+(t&s|~t&n)+i+o;return(a<<r|a>>>32-r)+t}function u(e,t,s,n,i,r,o){var a=e+(t&n|s&~n)+i+o;return(a<<r|a>>>32-r)+t}function d(e,t,s,n,i,r,o){var a=e+(t^s^n)+i+o;return(a<<r|a>>>32-r)+t}function h(e,t,s,n,i,r,o){var a=e+(s^(t|~n))+i+o;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),s.MD5)}),ce(function(e,t){var s,n,i;e.exports=(n=(s=ue).lib.Base,i=s.enc.Utf8,void(s.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var s=e.blockSize,n=4*s;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),a=r.words,c=o.words,l=0;l<s;l++)a[l]^=1549556828,c[l]^=909522486;r.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,s=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(s))}})))}),ce(function(e,t){e.exports=ue.HmacMD5})),he=ce(function(e,t){e.exports=ue.enc.Utf8}),pe=ce(function(e,t){var s,n,i;e.exports=(i=(n=s=ue).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,s=e.sigBytes,n=this._map;e.clamp();for(var i=[],r=0;r<s;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;a<4&&r+.75*a<s;a++)i.push(n.charAt(o>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,s=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var r=0;r<s.length;r++)n[s.charCodeAt(r)]=r}var o=s.charAt(64);if(o){var a=e.indexOf(o);-1!==a&&(t=a)}return function(e,t,s){for(var n=[],r=0,o=0;o<t;o++)if(o%4){var a=s[e.charCodeAt(o-1)]<<o%4*2,c=s[e.charCodeAt(o)]>>>6-o%4*2;n[r>>>2]|=(a|c)<<24-r%4*8,r++}return i.create(n,r)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},s.enc.Base64)});const fe="uni_id_token",ge="uni_id_token_expired",me="FUNCTION",ye="OBJECT",_e="CLIENT_DB",ve="pending",we="rejected";function Te(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function ke(e){return"object"===Te(e)}function be(e){return"function"==typeof e}function xe(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Ie="REJECTED",Se="NOT_PENDING";class Pe{constructor({createPromise:e,retryRule:t=Ie}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Ie:return this.status===we;case Se:return this.status!==ve}}exec(){return this.needRetry?(this.status=ve,this.promise=this.createPromise().then(e=>(this.status="fulfilled",Promise.resolve(e)),e=>(this.status=we,Promise.reject(e))),this.promise):this.promise}}class Ae{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const s=this._callback[e];if(!s)return;const n=function(e,t){for(let s=e.length-1;s>=0;s--)if(e[s]===t)return s;return-1}(s,t);s.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const s=this._callback[e];if(s)for(let n=0;n<s.length;n++)s[n](...t)}}function Ce(e){return e&&"string"==typeof e?JSON.parse(e):e}const Oe=Ce([]),Fe="web";Ce("");const Le=Ce("[]")||[];let Ee="";try{Ee="__UNI__46B5420"}catch(bt){}let Ue,Re={};function De(e,t={}){var s,n;return s=Re,n=e,Object.prototype.hasOwnProperty.call(s,n)||(Re[e]=t),Re[e]}const Ne=["invoke","success","fail","complete"],Me=De("_globalUniCloudInterceptor");function Be(e,t){Me[e]||(Me[e]={}),ke(t)&&Object.keys(t).forEach(s=>{Ne.indexOf(s)>-1&&function(e,t,s){let n=Me[e][t];n||(n=Me[e][t]=[]),-1===n.indexOf(s)&&be(s)&&n.push(s)}(e,s,t[s])})}function $e(e,t){Me[e]||(Me[e]={}),ke(t)?Object.keys(t).forEach(s=>{Ne.indexOf(s)>-1&&function(e,t,s){const n=Me[e][t];if(!n)return;const i=n.indexOf(s);i>-1&&n.splice(i,1)}(e,s,t[s])}):delete Me[e]}function qe(e,t){return e&&0!==e.length?e.reduce((e,s)=>e.then(()=>s(t)),Promise.resolve()):Promise.resolve()}function je(e,t){return Me[e]&&Me[e][t]||[]}function Ke(e){Be("callObject",e)}const ze=De("_globalUniCloudListener"),Ve="response",He="needLogin",Je="refreshToken",We="clientdb",Ge="cloudfunction",Qe="cloudobject";function Ye(e){return ze[e]||(ze[e]=[]),ze[e]}function Xe(e,t){const s=Ye(e);s.includes(t)||s.push(t)}function Ze(e,t){const s=Ye(e),n=s.indexOf(t);-1!==n&&s.splice(n,1)}function et(e,t){const s=Ye(e);for(let n=0;n<s.length;n++)(0,s[n])(t)}let tt,st=!1;function nt(){return tt||(tt=new Promise(e=>{st&&e(),function t(){if("function"==typeof s){const t=s();t&&t[0]&&(st=!0,e())}st||setTimeout(()=>{t()},30)}()}),tt)}function it(e){const t={};for(const s in e){const n=e[s];be(n)&&(t[s]=xe(n))}return t}class rt extends Error{constructor(e){const t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var ot={request:e=>d(e),uploadFile:e=>h(e),setStorageSync:(e,t)=>p(e,t),getStorageSync:e=>f(e),removeStorageSync:e=>g(e),clearStorageSync:()=>m(),connectSocket:e=>y(e)};function at(e){return e&&at(e.__v_raw)||e}function ct(){return{token:ot.getStorageSync(fe)||ot.getStorageSync("uniIdToken"),tokenExpired:ot.getStorageSync(ge)}}function lt({token:e,tokenExpired:t}={}){e&&ot.setStorageSync(fe,e),t&&ot.setStorageSync(ge,t)}let ut,dt;function ht(){return ut||(ut=_()),ut}function pt(){let e,t;try{if(S){if(S.toString().indexOf("not yet implemented")>-1)return;const{scene:s,channel:n}=S();e=n,t=s}}catch(s){}return{channel:e,scene:t}}let ft={};function gt(){const e=I&&I()||"en";if(dt)return{...ft,...dt,locale:e,LOCALE:e};const t=ht(),{deviceId:s,osName:n,uniPlatform:i,appId:r}=t,o=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const a in t)Object.hasOwnProperty.call(t,a)&&-1===o.indexOf(a)&&delete t[a];return dt={PLATFORM:i,OS:n,APPID:r,DEVICEID:s,...pt(),...t},{...ft,...dt,locale:e,LOCALE:e}}var mt=function(e,t){let s="";return Object.keys(e).sort().forEach(function(t){e[t]&&(s=s+"&"+t+"="+e[t])}),s=s.slice(1),de(s,t).toString()},yt=function(e,t){return new Promise((s,n)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const s=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new rt({code:s,message:i,requestId:t}))}const i=e.data;if(i.error)return n(new rt({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,s(i)}}))})},_t=function(e){return pe.stringify(he.parse(e))},vt=class{constructor(e){["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=ot,this._getAccessTokenPromiseHub=new Pe({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(e=>{if(!e.result||!e.result.accessToken)throw new rt({code:"AUTH_FAILED",message:"è·åaccessToken失败"});this.setAccessToken(e.result.accessToken)}),retryRule:Se})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return yt(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then(()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch(t=>new Promise((e,s)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?s(t):e()}).then(()=>this.getAccessToken()).then(()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})):this.getAccessToken().then(()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=mt(t.data,this.config.clientSecret),t}setupRequest(e,t){const s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(s.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=mt(s,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:s,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:s,filePath:n,fileType:i,onUploadProgress:r}){return new Promise((o,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:s,filePath:n,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?o(e):a(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))},fail(e){a(new rt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"æä»¶ä¸ä¼ 失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:s="image",cloudPathAsRealPath:n=!1,onUploadProgress:i,config:r}){if("string"!==Te(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathå¿
须为å符串类å"});if(!(t=t.trim()))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸å¯ä¸ºç©º"});if(/:\/\//.test(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸åæ³"});const o=r&&r.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new rt({code:"INVALID_PARAM",message:"使ç¨cloudPathä½ä¸ºè·¯å¾æ¶ï¼cloudPathä¸å¯å
å«â\\â"});const a=(await this.getOSSUploadOptionsFromPath({env:o,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:d,host:h,ossPath:p,id:f,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:f,key:p,policy:g,success_action_status:200};if(l&&(y["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=_t(e)}const _={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:s};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:i})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:c};throw new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"})}getTempFileURL({fileList:e}={}){return new Promise((t,s)=>{Array.isArray(e)&&0!==e.length||s(new rt({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"})),this.getFileInfo({fileList:e}).then(s=>{t({fileList:e.map((e,t)=>{const n=s.fileList[t];return{fileID:e,tempFileURL:n&&n.url||e}})})})})}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new rt({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map(e=>e.split("?")[0]).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},wt={init(e){const t=new vt(e),s={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}};const Tt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var kt,bt;(bt=kt||(kt={})).local="local",bt.none="none",bt.session="session";var xt=function(){},It=ce(function(e,t){var s;e.exports=(s=ue,function(e){var t=s,n=t.lib,i=n.WordArray,r=n.Hasher,o=t.algo,a=[],c=[];!function(){function t(t){for(var s=e.sqrt(t),n=2;n<=s;n++)if(!(t%n))return!1;return!0}function s(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(a[i]=s(e.pow(n,.5))),c[i]=s(e.pow(n,1/3)),i++),n++}();var l=[],u=o.SHA256=r.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var s=this._hash.words,n=s[0],i=s[1],r=s[2],o=s[3],a=s[4],u=s[5],d=s[6],h=s[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var f=l[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=l[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[p]=g+l[p-7]+y+l[p-16]}var _=n&i^n&r^i&r,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+c[p]+l[p];h=d,d=u,u=a,a=o+w|0,o=r,r=i,i=n,n=w+(v+_)|0}s[0]=s[0]+n|0,s[1]=s[1]+i|0,s[2]=s[2]+r|0,s[3]=s[3]+o|0,s[4]=s[4]+a|0,s[5]=s[5]+u|0,s[6]=s[6]+d|0,s[7]=s[7]+h|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return s[i>>>5]|=128<<24-i%32,s[14+(i+64>>>9<<4)]=e.floor(n/4294967296),s[15+(i+64>>>9<<4)]=n,t.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(u),t.HmacSHA256=r._createHmacHelper(u)}(Math),s.SHA256)}),St=It,Pt=ce(function(e,t){e.exports=ue.HmacSHA256});const At=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new rt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise((t,s)=>{e=(e,n)=>e?s(e):t(n)});return e.promise=t,e};function Ct(e){return void 0===e}function Ot(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ft(e=""){return e.replace(/([\s\S]+)\s+(请åå¾äºå¼åAIå°å©ææ¥çé®é¢ï¼.*)/,"$1")}function Lt(e=32){let t="";for(let s=0;s<e;s++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}var Et;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Et||(Et={}));const Ut={adapter:null,runtime:void 0},Rt=["anonymousUuidKey"];class Dt extends xt{constructor(){super(),Ut.adapter.root.tcbObject||(Ut.adapter.root.tcbObject={})}setItem(e,t){Ut.adapter.root.tcbObject[e]=t}getItem(e){return Ut.adapter.root.tcbObject[e]}removeItem(e){delete Ut.adapter.root.tcbObject[e]}clear(){delete Ut.adapter.root.tcbObject}}function Nt(e,t){switch(e){case"local":return t.localStorage||new Dt;case"none":return new Dt;default:return t.sessionStorage||new Dt}}class Mt{constructor(e){if(!this._storage){this._persistence=Ut.adapter.primaryStorage||e.persistence,this._storage=Nt(this._persistence,Ut.adapter);const t=`access_token_${e.env}`,s=`access_token_expire_${e.env}`,n=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,r=`login_type_${e.env}`,o="device_id",a=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n,anonymousUuidKey:i,loginTypeKey:r,userInfoKey:c,deviceIdKey:o,tokenTypeKey:a}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const s=Nt(e,Ut.adapter);for(const n in this.keys){const e=this.keys[n];if(t&&Rt.includes(n))continue;const i=this._storage.getItem(e);Ct(i)||Ot(i)||(s.setItem(e,i),this._storage.removeItem(e))}this._storage=s}setStore(e,t,s){if(!this._storage)return;const n={version:s||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(r){throw r}}getStore(e,t){try{if(!this._storage)return}catch(n){return""}t=t||"localCachev1";const s=this._storage.getItem(e);return s&&s.indexOf(t)>=0?JSON.parse(s).content:""}removeStore(e){this._storage.removeItem(e)}}const Bt={},$t={};function qt(e){return Bt[e]}class jt{constructor(e,t){this.data=t||null,this.name=e}}class Kt extends jt{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const zt=new class{constructor(){this._listeners={}}on(e,t){return s=e,n=t,(i=this._listeners)[s]=i[s]||[],i[s].push(n),this;var s,n,i}off(e,t){return function(e,t,s){if(s&&s[e]){const n=s[e].indexOf(t);-1!==n&&s[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Kt)return console.error(e.error),this;const s="string"==typeof e?new jt(e,t||{}):e,n=s.name;if(this._listens(n)){s.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,s)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Vt(e,t){zt.on(e,t)}function Ht(e,t={}){zt.fire(e,t)}function Jt(e,t){zt.off(e,t)}const Wt="loginStateChanged",Gt="loginStateExpire",Qt="loginTypeChanged",Yt="anonymousConverted",Xt="refreshAccessToken";var Zt;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Zt||(Zt={}));class es{constructor(){this._fnPromiseMap=new Map}async run(e,t){let s=this._fnPromiseMap.get(e);return s||(s=new Promise(async(s,n)=>{try{await this._runIdlePromise();const e=t();s(await e)}catch(i){n(i)}finally{this._fnPromiseMap.delete(e)}}),this._fnPromiseMap.set(e,s)),s}_runIdlePromise(){return Promise.resolve()}}class ts{constructor(e){this._singlePromise=new es,this._cache=qt(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Ut.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请æ±å¨${e.timeout/1e3}så
æªå®æï¼å·²ä¸æ`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Lt(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,s={}){const n={"x-request-id":Lt(),"x-device-id":this._getDeviceId()};if(s.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),s=this._cache.getStore(e);n.authorization=`${s} ${t}`}return this._reqClass["get"===s.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:n})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:s,tokenTypeKey:n}=this._cache.keys,i=this._cache.getStore(e);if(i&&i!==Zt.ANONYMOUS)throw new rt({code:"INVALID_OPERATION",message:"éå¿åç»å½ä¸æ¯æå·æ° access token"});const r=await this._singlePromise.run("fetchAccessToken",async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data),{access_token:o,expires_in:a,token_type:c}=r;return this._cache.setStore(n,c),this._cache.setStore(t,o),this._cache.setStore(s,Date.now()+1e3*a),o}isAccessTokenExpired(e,t){let s=!0;return e&&t&&(s=t<Date.now()),s}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,s=this._cache.getStore(e),n=this._cache.getStore(t);return this.isAccessTokenExpired(s,n)?this._fetchAccessToken():s}async refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,loginTypeKey:s}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.setStore(s,Zt.ANONYMOUS),this.getAccessToken()}async getUserInfo(){return this._singlePromise.run("getUserInfo",async()=>(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data)}}const ss=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ns={"X-SDK-Version":"1.3.5"};function is(e,t,s){const n=e[t];e[t]=function(t){const i={},r={};s.forEach(s=>{const{data:n,headers:o}=s.call(e,t);Object.assign(i,n),Object.assign(r,o)});const o=t.data;return o&&(()=>{var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...o,...i};else for(const t in i)o.append(t,i[t])})(),t.headers={...t.headers||{},...r},n.call(e,t)}}function rs(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...ns,"x-seqid":e}}}class os{constructor(e={}){var t;this.config=e,this._reqClass=new Ut.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请æ±å¨${this.config.timeout/1e3}så
æªå®æï¼å·²ä¸æ`,restrictedMethods:["post"]}),this._cache=qt(this.config.env),this._localCache=(t=this.config.env,$t[t]),this.oauth=new ts(this.config),is(this._reqClass,"post",[rs]),is(this._reqClass,"upload",[rs]),is(this._reqClass,"download",[rs])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(s){t=s}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s,loginTypeKey:n,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let r=this._cache.getStore(s);if(!r)throw new rt({message:"æªç»å½CloudBase"});const o={refresh_token:r},a=await this.request("auth.fetchAccessTokenWithRefreshToken",o);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Zt.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(s),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}Ht(Gt),this._cache.removeStore(s)}throw new rt({code:a.data.code,message:`å·æ°access token失败ï¼${a.data.code}`})}if(a.data.access_token)return Ht(Xt),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(s),this._cache.setStore(s,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s}=this._cache.keys;if(!this._cache.getStore(s))throw new rt({message:"refresh tokenä¸åå¨ï¼ç»å½ç¶æå¼å¸¸"});let n=this._cache.getStore(e),i=this._cache.getStore(t),r=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,i))&&(r=!1),(!n||!i||i<Date.now())&&r?this.refreshAccessToken():{accessToken:n,accessTokenExpire:i}}async request(e,t,s){const n=`x-tcb-trace_${this.config.env}`;let i="application/x-www-form-urlencoded";const r={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};let o;if(-1===ss.indexOf(e)&&(this._cache.keys,r.access_token=await this.oauth.getAccessToken()),"storage.uploadFile"===e){o=new FormData;for(let e in o)o.hasOwnProperty(e)&&void 0!==o[e]&&o.append(e,r[e]);i="multipart/form-data"}else{i="application/json",o={};for(let e in r)void 0!==r[e]&&(o[e]=r[e])}let a={headers:{"content-type":i}};s&&s.timeout&&(a.timeout=s.timeout),s&&s.onUploadProgress&&(a.onUploadProgress=s.onUploadProgress);const c=this._localCache.getStore(n);c&&(a.headers["X-TCB-Trace"]=c);const{parse:l,inQuery:u,search:d}=t;let h={env:this.config.env};l&&(h.parse=!0),u&&(h={...u,...h});let p=function(e,t,s={}){const n=/\?/.test(t);let i="";for(let r in s)""===i?!n&&(t+="?"):i+="&",i+=`${r}=${encodeURIComponent(s[r])}`;return/^http(s)?\:\/\//.test(t+=i)?t:`${e}${t}`}(Tt,"//tcb-api.tencentcloudapi.com/web",h);d&&(p+=d);const f=await this.post({url:p,data:o,...a}),g=f.header&&f.header["x-tcb-trace"];if(g&&this._localCache.setStore(n,g),200!==Number(f.status)&&200!==Number(f.statusCode)||!f.data)throw new rt({code:"NETWORK_ERROR",message:"network request error"});return f}async send(e,t={},s={}){const n=await this.request(e,t,{...s,onUploadProgress:t.onUploadProgress});if(("ACCESS_TOKEN_DISABLED"===n.data.code||"ACCESS_TOKEN_EXPIRED"===n.data.code)&&-1===ss.indexOf(e)){await this.oauth.refreshAccessToken();const n=await this.request(e,t,{...s,onUploadProgress:t.onUploadProgress});if(n.data.code)throw new rt({code:n.data.code,message:Ft(n.data.message)});return n.data}if(n.data.code)throw new rt({code:n.data.code,message:Ft(n.data.message)});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(s),this._cache.setStore(n,e)}}const as={};function cs(e){return as[e]}class ls{constructor(e){this.config=e,this._cache=qt(e.env),this._request=cs(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(s),this._cache.setStore(n,e)}setAccessToken(e,t){const{accessTokenKey:s,accessTokenExpireKey:n}=this._cache.keys;this._cache.setStore(s,e),this._cache.setStore(n,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class us{constructor(e){if(!e)throw new rt({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=qt(this._envId),this._request=cs(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:s}=e;return s.forEach(e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)}),{users:s,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:s,avatarUrl:n,province:i,country:r,city:o}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:s,avatarUrl:n,province:i,country:r,city:o});this.setLocalUserInfo(a)}async refresh(){const e=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(e=>{this[e]=t[e]}),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class ds{constructor(e){if(!e)throw new rt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=qt(e);const{refreshTokenKey:t,accessTokenKey:s,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(t),r=this._cache.getStore(s),o=this._cache.getStore(n);this.credential={refreshToken:i,accessToken:r,accessTokenExpire:o},this.user=new us(e)}get isAnonymousAuth(){return this.loginType===Zt.ANONYMOUS}get isCustomAuth(){return this.loginType===Zt.CUSTOM}get isWeixinAuth(){return this.loginType===Zt.WECHAT||this.loginType===Zt.WECHAT_OPEN||this.loginType===Zt.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class hs extends ls{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.ANONYMOUS,persistence:"local"});const e=new ds(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:s}=this._cache.keys,n=this._cache.getStore(t),i=this._cache.getStore(s),r=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:i,ticket:e});if(r.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),Ht(Yt,{env:this.config.env}),Ht(Qt,{loginType:Zt.CUSTOM,persistence:"local"}),{credential:{refreshToken:r.refresh_token}};throw new rt({message:"å¿å转å失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(s,Zt.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class ps extends ls{async signIn(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,s=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(s.refresh_token)return this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ds(this.config.env);throw new rt({message:"èªå®ä¹ç»å½å¤±è´¥"})}}class fs extends ls{async signIn(e,t){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token:r,access_token_expire:o}=n;if(i)return this.setRefreshToken(i),r&&o?this.setAccessToken(r,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.EMAIL,persistence:this.config.persistence}),new ds(this.config.env);throw n.code?new rt({code:n.code,message:`é®ç®±ç»å½å¤±è´¥: ${n.message}`}):new rt({message:"é®ç®±ç»å½å¤±è´¥"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class gs extends ls{async signIn(e,t){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Zt.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token_expire:r,access_token:o}=n;if(i)return this.setRefreshToken(i),o&&r?this.setAccessToken(o,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.USERNAME,persistence:this.config.persistence}),new ds(this.config.env);throw n.code?new rt({code:n.code,message:`ç¨æ·åå¯ç ç»å½å¤±è´¥: ${n.message}`}):new rt({message:"ç¨æ·åå¯ç ç»å½å¤±è´¥"})}}class ms{constructor(e){this.config=e,this._cache=qt(e.env),this._request=cs(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Vt(Qt,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new hs(this.config)}customAuthProvider(){return new ps(this.config)}emailAuthProvider(){return new fs(this.config)}usernameAuthProvider(){return new gs(this.config)}async signInAnonymously(){return new hs(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new fs(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new gs(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new hs(this.config)),Vt(Yt,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Zt.ANONYMOUS)throw new rt({message:"å¿åç¨æ·ä¸æ¯æç»åºæä½"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:s}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const i=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(s),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Vt(Wt,()=>{const t=this.hasLoginState();e.call(this,t)});const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Vt(Gt,e.bind(this))}onAccessTokenRefreshed(e){Vt(Xt,e.bind(this))}onAnonymousConverted(e){Vt(Yt,e.bind(this))}onLoginTypeChanged(e){Vt(Qt,()=>{const t=this.hasLoginState();e.call(this,t)})}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,s=this._cache.getStore(e),n=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(s,n)?null:new ds(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new ps(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(e=>e.code?e:{...e.data,requestId:e.seqId})}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,s=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+s}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:s,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(s),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ys=function(e,t){t=t||At();const s=cs(this.config.env),{cloudPath:n,filePath:i,onUploadProgress:r,fileType:o="image"}=e;return s.send("storage.getUploadMetadata",{path:n}).then(e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:d},requestId:h}=e,p={key:n,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};s.upload({url:a,data:p,file:i,name:n,fileType:o,onUploadProgress:r}).then(e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new rt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))}).catch(e=>{t(e)})}).catch(e=>{t(e)}),t.promise},_s=function(e,t){t=t||At();const s=cs(this.config.env),{cloudPath:n}=e;return s.send("storage.getUploadMetadata",{path:n}).then(e=>{t(null,e)}).catch(e=>{t(e)}),t.promise},vs=function({fileList:e},t){if(t=t||At(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileListå¿
é¡»æ¯éç©ºçæ°ç»"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"};const s={fileid_list:e};return cs(this.config.env).send("storage.batchDeleteFile",s).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},ws=function({fileList:e},t){t=t||At(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileListå¿
é¡»æ¯éç©ºçæ°ç»"});let s=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯å
å«fileIDåmaxAgeç对象"}),s.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?s.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯å符串"});const n={file_list:s};return cs(this.config.env).send("storage.batchGetDownloadUrl",n).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},Ts=async function({fileID:e},t){const s=(await ws.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==s.code)return t?t(s):new Promise(e=>{e(s)});const n=cs(this.config.env);let i=s.download_url;if(i=encodeURI(i),!t)return n.download({url:i});t(await n.download({url:i}))},ks=function({name:e,data:t,query:s,parse:n,search:i,timeout:r},o){const a=o||At();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new rt({code:"PARAM_ERROR",message:"彿°åä¸è½ä¸ºç©º"}));const l={inQuery:s,parse:n,search:i,function_name:e,request_data:c};return cs(this.config.env).send("functions.invokeFunction",l,{timeout:r}).then(e=>{if(e.code)a(null,e);else{let s=e.data.response_data;if(n)a(null,{result:s,requestId:e.requestId});else try{s=JSON.parse(e.data.response_data),a(null,{result:s,requestId:e.requestId})}catch(t){a(new rt({message:"response data must be json"}))}}return a.promise}).catch(e=>{a(e)}),a.promise},bs={timeout:15e3,persistence:"session"},xs=6e5,Is={};class Ss{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ut.adapter||(this.requestClient=new Ut.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请æ±å¨${(e.timeout||5e3)/1e3}så
æªå®æï¼å·²ä¸æ`})),this.config={...bs,...e},!0){case this.config.timeout>xs:console.warn("timeout大äºå¯é
ç½®ä¸é[10åé]ï¼å·²é置为ä¸éæ°å¼"),this.config.timeout=xs;break;case this.config.timeout<100:console.warn("timeoutå°äºå¯é
ç½®ä¸é[100ms]ï¼å·²é置为ä¸éæ°å¼"),this.config.timeout=100}return new Ss(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ut.adapter.primaryStorage||bs.persistence;var s;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Bt[t]=new Mt(e),$t[t]=new Mt({...e,persistence:"local"})}(this.config),s=this.config,as[s.env]=new os(s),this.authObj=new ms(this.config),this.authObj}on(e,t){return Vt.apply(this,[e,t])}off(e,t){return Jt.apply(this,[e,t])}callFunction(e,t){return ks.apply(this,[e,t])}deleteFile(e,t){return vs.apply(this,[e,t])}getTempFileURL(e,t){return ws.apply(this,[e,t])}downloadFile(e,t){return Ts.apply(this,[e,t])}uploadFile(e,t){return ys.apply(this,[e,t])}getUploadMetadata(e,t){return _s.apply(this,[e,t])}registerExtension(e){Is[e.name]=e}async invokeExtension(e,t){const s=Is[e];if(!s)throw new rt({message:`æ©å±${e} å¿
é¡»å
注å`});return await s.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:s}=function(e){const t=(s=e,"[object Array]"===Object.prototype.toString.call(s)?e:[e]);var s;for(const n of t){const{isMatch:e,genAdapter:t,runtime:s}=n;if(e())return{adapter:t(),runtime:s}}}(e)||{};t&&(Ut.adapter=t),s&&(Ut.runtime=s)}}var Ps=new Ss;function As(e,t,s){void 0===s&&(s={});var n=/\?/.test(t),i="";for(var r in s)""===i?!n&&(t+="?"):i+="&",i+=r+"="+encodeURIComponent(s[r]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class Cs{get(e){const{url:t,data:s,headers:n,timeout:i}=e;return new Promise((e,r)=>{ot.request({url:As("https:",t),data:s,method:"GET",header:n,timeout:i,success(t){e(t)},fail(e){r(e)}})})}post(e){const{url:t,data:s,headers:n,timeout:i}=e;return new Promise((e,r)=>{ot.request({url:As("https:",t),data:s,method:"POST",header:n,timeout:i,success(t){e(t)},fail(e){r(e)}})})}upload(e){return new Promise((t,s)=>{const{url:n,file:i,data:r,headers:o,fileType:a}=e,c=ot.uploadFile({url:As("https:",n),name:"file",formData:Object.assign({},r),filePath:i,fileType:a,header:o,success(e){const s={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(s.statusCode=parseInt(r.success_action_status,10)),t(s)},fail(e){s(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})})})}}const Os={setItem(e,t){ot.setStorageSync(e,t)},getItem:e=>ot.getStorageSync(e),removeItem(e){ot.removeStorageSync(e)},clear(){ot.clearStorageSync()}};var Fs={genAdapter:function(){return{root:{},reqClass:Cs,localStorage:Os,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ps.useAdapters(Fs);const Ls=Ps,Es=Ls.init;Ls.init=function(e){e.env=e.spaceId;const t=Es.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const s=t.auth;return t.auth=function(e){const t=s.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(e=>{var s;t[e]=(s=t[e],function(e){e=e||{};const{success:t,fail:n,complete:i}=it(e);if(!(t||n||i))return s.call(this,e);s.call(this,e).then(e=>{t&&t(e),i&&i(e)},e=>{n&&n(e),i&&i(e)})}).bind(t)}),t},t.customAuth=t.auth,t};var Us=Ls;async function Rs(e,t){const s=`http://${e}:${t}/system/ping`;try{const e=await(n={url:s,timeout:500},new Promise((e,t)=>{ot.request({...n,success(t){e(t)},fail(e){t(e)}})}));return!(!e.data||0!==e.data.code)}catch(i){return!1}var n}const Ds={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var Ns=class{constructor(e){if(["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),!e.endpoint)throw new Error("éç¾¤ç©ºé´æªé
ç½®ApiEndpointï¼é
ç½®åéè¦éæ°å
³èæå¡ç©ºé´åçæ");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=ot}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then(()=>yt(e,this.adapter.request))}requestLocal(e){return new Promise((t,s)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",n=e.data&&e.data.message||"request:fail";return s(new rt({code:t,message:n}))}t({success:!0,result:e.data})}}))})}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};s["x-serverless-sign"]=mt(t,this.config.clientSecret);const n=gt();s["x-client-info"]=encodeURIComponent(JSON.stringify(n));const{token:i}=ct();return s["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(s))}}async setupLocalRequest(e){const t=gt(),{token:s}=ct(),n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:s}),{address:i,servePort:r}=this.__dev__&&this.__dev__.debugInfo||{},{address:o}=await async function(e,t){let s;for(let n=0;n<e.length;n++){const i=e[n];if(await Rs(i,t)){s=i;break}}return{address:s,port:t}}(i,r);return{url:`http://${o}:${r}/${Ds[e.method]}`,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}getUploadFileOptions(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}reportUploadFile(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}uploadFile({filePath:e,cloudPath:t,fileType:s="image",onUploadProgress:n}){if(!t)throw new rt({code:"CLOUDPATH_REQUIRED",message:"cloudPathä¸å¯ä¸ºç©º"});let i;return this.getUploadFileOptions({cloudPath:t}).then(t=>{const{url:r,formData:o,name:a}=t.result;return i=t.result.fileUrl,new Promise((t,i)=>{const c=this.adapter.uploadFile({url:r,formData:o,name:a,filePath:e,fileType:s,success(e){e&&e.statusCode<400?t(e):i(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))},fail(e){i(new rt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"æä»¶ä¸ä¼ 失败"}))}});"function"==typeof n&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{n({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:t})).then(t=>new Promise((s,n)=>{t.success?s({success:!0,filePath:e,fileID:i}):n(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))}))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then(e=>{if(e.success)return e.result;throw new rt({code:"DELETE_FILE_FAILED",message:"å é¤æä»¶å¤±è´¥"})})}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new rt({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"});const s={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(s).then(e=>{if(e.success)return{fileList:e.result.fileList.map(e=>({fileID:e.fileID,tempFileURL:e.tempFileURL}))};throw new rt({code:"GET_TEMP_FILE_URL_FAILED",message:"è·åä¸´æ¶æä»¶é¾æ¥å¤±è´¥"})})}},Ms={init(e){const t=new Ns(e),s={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}},Bs=ce(function(e,t){e.exports=ue.enc.Hex});function $s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function qs(e="",t={}){const{data:s,functionName:n,method:i,headers:r,signHeaderKeys:o=[],config:a}=t,c=String(Date.now()),l=$s(),u=Object.assign({},r,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":n,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(o),[h="",p=""]=e.split("?")||[],f=function(e){const t="HMAC-SHA256",s=e.signedHeaders.join(";"),n=e.signedHeaders.map(t=>`${t.toLowerCase()}:${e.headers[t]}\n`).join(""),i=St(e.body).toString(Bs),r=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${s}\n${i}\n`,o=St(r).toString(Bs),a=`${t}\n${e.timestamp}\n${o}\n`,c=Pt(a,e.secretKey).toString(Bs);return`${t} Credential=${e.secretId}, SignedHeaders=${s}, Signature=${c}`}({path:h,query:p,method:i,headers:u,timestamp:c,body:JSON.stringify(s),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:d.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function js({url:e,data:t,method:s="POST",headers:n={},timeout:i}){return new Promise((r,o)=>{ot.request({url:e,method:s,data:"object"==typeof t?JSON.stringify(t):t,header:n,dataType:"json",timeout:i,complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:s,errMsg:n,trace_id:i}=e.data||{};return o(new rt({code:"SYS_ERR",message:s||n||"request:fail",requestId:i||t}))}r({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})})}function Ks(e,t){const{path:s,data:n,method:i="GET"}=e,{url:r,headers:o}=qs(s,{functionName:"",data:n,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return js({url:r,data:n,method:i,headers:o}).then(e=>{const t=e.data||{};if(!t.success)throw new rt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}}).catch(e=>{throw new rt({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}function zs(e=""){const t=e.trim().replace(/^cloud:\/\//,""),s=t.indexOf("/");if(s<=0)throw new rt({code:"INVALID_PARAM",message:"fileIDä¸åæ³"});const n=t.substring(0,s),i=t.substring(s+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Vs(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class Hs{constructor(e){this.config=e}signedURL(e,t={}){const s=`/ws/function/${e}`,n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:$s(),timestamp:""+Date.now()}),r=[s,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(e){return i[e]?"".concat(e,"=").concat(i[e]):null}).filter(Boolean).join("&"),`host:${n}`].join("\n"),o=["HMAC-SHA256",St(r).toString(Bs)].join("\n"),a=Pt(o,this.config.secretKey).toString(Bs),c=Object.keys(i).map(e=>`${e}=${encodeURIComponent(i[e])}`).join("&");return`${this.config.wsEndpoint}${s}?${c}&signature=${a}`}}var Js=class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new Hs(this.config)}callFunction(e){return function(e,t){const{name:s,data:n,async:i=!1,timeout:r}=e,o="POST",a={"x-to-function-name":s};i&&(a["x-function-invoke-type"]="async");const{url:c,headers:l}=qs("/functions/invokeFunction",{functionName:s,data:n,method:o,headers:a,signHeaderKeys:["x-to-function-name"],config:t});return js({url:c,data:n,method:o,headers:l,timeout:r}).then(e=>{let t=0;if(i){const s=e.data||{};t="200"===s.errCode?0:s.errCode,e.data=s.data||{},e.errMsg=s.errMsg}if(0!==t)throw new rt({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}}).catch(e=>{throw new rt({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:s,formData:n,onUploadProgress:i}){return new Promise((r,o)=>{const a=ot.uploadFile({url:e,filePath:t,fileType:s,formData:n,name:"file",success(e){e&&e.statusCode<400?r(e):o(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))},fail(e){o(new rt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"æä»¶ä¸ä¼ 失败"}))}});"function"==typeof i&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate(e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}async uploadFile({filePath:e,cloudPath:t="",fileType:s="image",onUploadProgress:n}){if("string"!==Te(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathå¿
须为å符串类å"});if(!(t=t.trim()))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸å¯ä¸ºç©º"});if(/:\/\//.test(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸åæ³"});const i=await Ks({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:r,upload_url:o,form_data:a}=i,c=a&&a.reduce((e,t)=>(e[t.key]=t.value,e),{});return this.uploadFileToOSS({url:o,filePath:e,fileType:s,formData:c,onUploadProgress:n}).then(()=>({fileID:r}))}async getTempFileURL({fileList:e}){return new Promise((t,s)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileListä¸è½ä¸ºç©ºæ°ç»"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileListæ°ç»é¿åº¦ä¸è½è¶
è¿50"});const n=[];for(const r of e){let e;"string"!==Te(r)&&t({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"});try{e=zs.call(this,r)}catch(i){console.warn(i.errCode,i.errMsg),e=r}n.push({file_id:e,expire:600})}Ks({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then(e=>{const{file_list:s=[]}=e;t({fileList:s.map(e=>({fileID:Vs.call(this,e.file_id),tempFileURL:e.download_url}))})}).catch(e=>s(e))})}async connectWebSocket(e){const{name:t,query:s}=e;return ot.connectSocket({url:this._websocket.signedURL(t,s),complete:()=>{}})}},Ws={init:e=>{e.provider="alipay";const t=new Js(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Gs({data:e}){let t;t=gt();const s=JSON.parse(JSON.stringify(e||{}));if(Object.assign(s,{clientInfo:t}),!s.uniIdToken){const{token:e}=ct();e&&(s.uniIdToken=e)}return s}const Qs=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"ï¼äºå½æ°[{functionName}]å¨äºç«¯ä¸åå¨ï¼è¯·æ£æ¥æ¤äºå½æ°åç§°æ¯å¦æ£ç¡®ä»¥å该äºå½æ°æ¯å¦å·²ä¸ä¼ å°æå¡ç©ºé´",mode:"append"}];var Ys=/[\\^$.*+?()[\]{}|]/g,Xs=RegExp(Ys.source);function Zs(e,t,s){return e.replace(new RegExp((n=t)&&Xs.test(n)?n.replace(Ys,"\\$&"):n,"g"),s);var n}const en="request",tn="response",sn="both",nn="_globalUniCloudStatus",rn={code:2e4,message:"System error"},on={code:20101,message:"Invalid client"};function an(e){const{errSubject:t,subject:s,errCode:n,errMsg:i,code:r,message:o,cause:a}=e||{};return new rt({subject:t||s||"uni-secure-network",code:n||r||rn.code,message:i||o,cause:a})}let cn;function ln({secretType:e}={}){return e===en||e===tn||e===sn}function un({functionName:e,result:t,logPvd:s}){}function dn(e){const t=e.callFunction,s=function(s){const n=s.name;s.data=Gs.call(e,{data:s.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],r=ln(s)||false;return t.call(this,s).then(e=>(e.errCode=0,!r&&un.call(this,{functionName:n,result:e,logPvd:i}),Promise.resolve(e)),e=>(!r&&un.call(this,{functionName:n,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:s=[]}={}){for(let n=0;n<s.length;n++){const{rule:i,content:r,mode:o}=s[n],a=e.match(i);if(!a)continue;let c=r;for(let e=1;e<a.length;e++)c=Zs(c,`{$${e}}`,a[e]);for(const e in t)c=Zs(c,`{${e}}`,t[e]);return"replace"===o?c:e+c}return e}({message:`[${s.name}]: ${e.message}`,formatter:Qs,extraInfo:{functionName:n}})),Promise.reject(e)))};e.callFunction=function(t){const{provider:n,spaceId:i}=e.config,r=t.name;let o,a;return t.data=t.data||{},o=s,o=o.bind(e),a=ln(t)?new cn({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(s.bind(e))(t):function({provider:e,spaceId:t,functionName:s}={}){const{appId:n,uniPlatform:i,osName:r}=ht();let o=i;"app"===i&&(o=r);const a=function({provider:e,spaceId:t}={}){const s=Oe;if(!s)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const n=s.find(s=>s.provider===e&&s.spaceId===t);return n&&n.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let s,n,i;for(let r=0;r<e.length;r++){const o=e[r];o!==t?"*"!==o?o.split(",").map(e=>e.trim()).indexOf(t)>-1&&(n=o):i=o:s=o}return s||n||i}(l,s);if(!u)return!1;if((c[u]||[]).find((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===o.toLowerCase()))return!0;throw console.error(`æ¤åºç¨[appId: ${n}, platform: ${o}]ä¸å¨äºç«¯é
ç½®çå
许访é®çåºç¨å表å
ï¼åèï¼https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),an(on)}({provider:n,spaceId:i,functionName:r})?new cn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(s.bind(e))(t):o(t),Object.defineProperty(a,"result",{get:()=>(console.warn("å½åè¿åç»æä¸ºPromiseç±»åï¼ä¸å¯ç´æ¥è®¿é®å
¶result屿§ï¼è¯¦æ
请åèï¼https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then(e=>e)}}cn=class{constructor(){throw an({message:`Platform ${Fe} is not supported by secure network`})}};const hn=Symbol("CLIENT_DB_INTERNAL");function pn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=hn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,s,n){if("_uniClient"===s)return null;if("symbol"==typeof s)return e[s];if(s in e||"string"!=typeof s){const t=e[s];return"function"==typeof t?t.bind(e):t}return t.get(e,s,n)}})}function fn(e){return{on:(t,s)=>{e[t]=e[t]||[],e[t].indexOf(s)>-1||e[t].push(s)},off:(t,s)=>{e[t]=e[t]||[];const n=e[t].indexOf(s);-1!==n&&e[t].splice(n,1)}}}const gn=["db.Geo","db.command","command.aggregate"];function mn(e,t){return gn.indexOf(`${e}.${t}`)>-1}function yn(e){switch(Te(e=at(e))){case"array":return e.map(e=>yn(e));case"object":return e._internalType===hn||Object.keys(e).forEach(t=>{e[t]=yn(e[t])}),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function _n(e){return e&&e.content&&e.content.$method}class vn{constructor(e,t,s){this.content=e,this.prevStage=t||null,this.udb=null,this._database=s}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map(e=>({$method:e.$method,$param:yn(e.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find(e=>"action"===e.$method);return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter(e=>"action"!==e.$method)}}get isAggregate(){let e=this;for(;e;){const t=_n(e),s=_n(e.prevStage);if("aggregate"===t&&"collection"===s||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===_n(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=_n(e),s=_n(e.prevStage);if("aggregate"===t&&"command"===s)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return wn({$method:e,$param:yn(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQLç¦æ¢ä½¿ç¨setæ¹æ³")}}_send(e,t){const s=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:yn(t)}),this._database._callCloudFunction({action:s,command:n})}}function wn(e,t,s){return pn(new vn(e,t,s),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),mn(n,t)?wn({$method:t},e,s):function(){return wn({$method:t,$param:yn(Array.from(arguments))},e,s)}}})}function Tn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map(e=>({$method:e})),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}class kn{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=De("_globalUniCloudDatabaseCallback")),t||(this.auth=fn(this._authCallBacks)),this._isJQL=t,Object.assign(this,fn(this._dbCallBacks)),this.env=pn({},{get:(e,t)=>({$env:t})}),this.Geo=pn({},{get:(e,t)=>Tn({path:["Geo"],method:t})}),this.serverDate=Tn({path:[],method:"serverDate"}),this.RegExp=Tn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnvåæ°é误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const s=this._dbCallBacks;s[e]&&s[e].forEach(e=>{e(...t)})}_callbackAuth(e,t){const s=this._authCallBacks;s[e]&&s[e].forEach(e=>{e(...t)})}multiSend(){const e=Array.from(arguments),t=e.map(e=>{const t=e.getAction(),s=e.getCommand();if("getTemp"!==s.$db[s.$db.length-1].$method)throw new Error("multiSendåªæ¯æåå½ä»¤å
使ç¨getTemp");return{action:t,command:s}});return this._callCloudFunction({multiCommand:t,queryList:e})}}function bn(e,t={}){return pn(new e(t),{get:(e,t)=>mn("db",t)?wn({$method:t},null,e):function(){return wn({$method:t,$param:yn(Array.from(arguments))},null,e)}})}class xn extends kn{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:s,queryList:n}){function i(e,t){if(s&&n)for(let s=0;s<n.length;s++){const i=n[s];i.udb&&"function"==typeof i.udb.setResult&&(t?i.udb.setResult(t):i.udb.setResult(e.result.dataList[s]))}}const r=this,o=this._isJQL?"databaseForJQL":"database";function a(e){return r._callback("error",[e]),qe(je(o,"fail"),e).then(()=>qe(je(o,"complete"),e)).then(()=>(i(null,e),et(Ve,{type:We,content:e}),Promise.reject(e)))}const c=qe(je(o,"invoke")),l=this._uniClient;return c.then(()=>l.callFunction({name:"DCloud-clientDB",type:_e,data:{action:e,command:t,multiCommand:s}})).then(e=>{const{code:t,message:s,token:n,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let i=0;i<l.length;i++){const{level:e,message:t,detail:s}=l[i];let n="[System Info]"+t;s&&(n=`${n}\n详ç»ä¿¡æ¯ï¼${s}`),(console[e]||console.log)(n)}if(t)return a(new rt({code:t,message:s,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,n&&c&&(lt({token:n,tokenExpired:c}),this._callbackAuth("refreshToken",[{token:n,tokenExpired:c}]),this._callback("refreshToken",[{token:n,tokenExpired:c}]),et(Je,{token:n,tokenExpired:c}));const u=[{prop:"affectedDocs",tips:"affectedDocsä¸åæ¨è使ç¨ï¼è¯·ä½¿ç¨inserted/deleted/updated/data.lengthæ¿ä»£"},{prop:"code",tips:"codeä¸åæ¨è使ç¨ï¼è¯·ä½¿ç¨errCodeæ¿ä»£"},{prop:"message",tips:"messageä¸åæ¨è使ç¨ï¼è¯·ä½¿ç¨errMsgæ¿ä»£"}];for(let i=0;i<u.length;i++){const{prop:t,tips:s}=u[i];if(t in e.result){const n=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(s),n)})}}return d=e,qe(je(o,"success"),d).then(()=>qe(je(o,"complete"),d)).then(()=>{i(d,null);const e=r._parseResult(d);return et(Ve,{type:We,content:e}),Promise.resolve(e)});var d},e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDBæªåå§åï¼è¯·å¨webæ§å¶å°ä¿å䏿¬¡schema以å¼å¯clientDB"),a(new rt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))))}}const In="tokenæ æï¼è·³è½¬ç»å½é¡µé¢",Sn="tokenè¿æï¼è·³è½¬ç»å½é¡µé¢",Pn={TOKEN_INVALID_TOKEN_EXPIRED:Sn,TOKEN_INVALID_INVALID_CLIENTID:In,TOKEN_INVALID:In,TOKEN_INVALID_WRONG_TOKEN:In,TOKEN_INVALID_ANONYMOUS_USER:In},An={"uni-id-token-expired":Sn,"uni-id-check-token-failed":In,"uni-id-token-not-exist":In,"uni-id-check-device-feature-failed":In},Cn={...Pn,...An,default:"ç¨æ·æªç»å½æç»å½ç¶æè¿æï¼èªå¨è·³è½¬ç»å½é¡µé¢"};function On(e,t){let s="";return s=e?`${e}/${t}`:t,s.replace(/^\//,"")}function Fn(e=[],t=""){const s=[],n=[];return e.forEach(e=>{!0===e.needLogin?s.push(On(t,e.path)):!1===e.needLogin&&n.push(On(t,e.path))}),{needLoginPage:s,notNeedLoginPage:n}}function Ln(e){return e.split("?")[0].replace(/^\//,"")}function En(){return function(e){let t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){const e=s();return e[e.length-1]}())}function Un(){return Ln(En())}function Rn(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const s=t.list,n=Ln(e);return s.some(e=>e.pagePath===n)}const Dn=!!ae.uniIdRouter,{loginPage:Nn,routerNeedLogin:Mn,resToLogin:Bn,needLoginPage:$n,notNeedLoginPage:qn,loginPageInTabBar:jn}=function({pages:e=[],subPackages:t=[],uniIdRouter:s={},tabBar:n={}}=ae){const{loginPage:i,needLogin:r=[],resToLogin:o=!0}=s,{needLoginPage:a,notNeedLoginPage:c}=Fn(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],s=[];return e.forEach(e=>{const{root:n,pages:i=[]}=e,{needLoginPage:r,notNeedLoginPage:o}=Fn(i,n);t.push(...r),s.push(...o)}),{needLoginPage:t,notNeedLoginPage:s}}(t);return{loginPage:i,routerNeedLogin:r,resToLogin:o,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Rn(i,n)}}();if($n.indexOf(Nn)>-1)throw new Error(`Login page [${Nn}] should not be "needLogin", please check your pages.json`);function Kn(e){const t=Un();if("/"===e.charAt(0))return e;const[s,n]=e.split("?"),i=s.replace(/^\//,"").split("/"),r=t.split("/");r.pop();for(let o=0;o<i.length;o++){const e=i[o];".."===e?r.pop():"."!==e&&r.push(e)}return""===r[0]&&r.shift(),"/"+r.join("/")+(n?"?"+n:"")}function zn({redirect:e}){const t=Ln(e),s=Ln(Nn);return Un()!==s&&t!==s}function Vn({api:e,redirect:t}={}){if(!t||!zn({redirect:t}))return;const s=(i=t,"/"!==(n=Nn).charAt(0)&&(n="/"+n),i?n.indexOf("?")>-1?n+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:n);var n,i;jn?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const r={navigateTo:v,redirectTo:w,switchTab:T,reLaunch:k};setTimeout(()=>{r[e]({url:s})},0)}function Hn({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},s=function(){const{token:e,tokenExpired:t}=ct();let s;if(e){if(t<Date.now()){const e="uni-id-token-expired";s={errCode:e,errMsg:Cn[e]}}}else{const e="uni-id-check-token-failed";s={errCode:e,errMsg:Cn[e]}}return s}();if(function(e){const t=Ln(Kn(e));return!(qn.indexOf(t)>-1)&&($n.indexOf(t)>-1||Mn.some(t=>{return s=e,new RegExp(t).test(s);var s}))}(e)&&s){if(s.uniIdRedirectUrl=e,Ye(He).length>0)return setTimeout(()=>{et(He,s)},0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Jn(){!function(){const e=En(),{abortLoginPageJump:t,autoToLoginPage:s}=Hn({url:e});t||s&&Vn({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const s=e[t];n(s,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:n}=Hn({url:e.url});return t?e:n?(Vn({api:s,redirect:Kn(e.url)}),!1):e}})}}function Wn(){this.onResponse(e=>{const{type:t,content:s}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Cn}(s);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Pn}(s)}n&&function(e={}){const t=Ye(He);nt().then(()=>{const s=En();if(s&&zn({redirect:s}))return t.length>0?et(He,Object.assign({uniIdRedirectUrl:s},e)):void(Nn&&Vn({api:"navigateTo",redirect:s}))})}(s)})}function Gn(e){var t;(t=e).onResponse=function(e){Xe(Ve,e)},t.offResponse=function(e){Ze(Ve,e)},function(e){e.onNeedLogin=function(e){Xe(He,e)},e.offNeedLogin=function(e){Ze(He,e)},Dn&&(De(nn).needLoginInit||(De(nn).needLoginInit=!0,nt().then(()=>{Jn.call(e)}),Bn&&Wn.call(e)))}(e),function(e){e.onRefreshToken=function(e){Xe(Je,e)},e.offRefreshToken=function(e){Ze(Je,e)}}(e)}let Qn;const Yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Xn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Zn(){const e=ct().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let s;try{s=JSON.parse((n=t[1],decodeURIComponent(Qn(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(i){throw new Error("è·åå½åç¨æ·ä¿¡æ¯åºéï¼è¯¦ç»é误信æ¯ä¸ºï¼"+i.message)}var n;return s.tokenExpired=1e3*s.exp,delete s.exp,delete s.iat,s}Qn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Xn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var s,n,i="",r=0;r<e.length;)t=Yn.indexOf(e.charAt(r++))<<18|Yn.indexOf(e.charAt(r++))<<12|(s=Yn.indexOf(e.charAt(r++)))<<6|(n=Yn.indexOf(e.charAt(r++))),i+=64===s?String.fromCharCode(t>>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var ei=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ce(function(s,n){Object.defineProperty(n,"__esModule",{value:!0});const r="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function c(e,t,{onChooseFile:s,onUploadProgress:n}){return t.then(e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then(t=>void 0===t?e:t)}return e}).then(t=>!1===t?{errMsg:r,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,n){(t=Object.assign({},t)).errMsg=r;const i=t.tempFiles,o=i.length;let a=0;return new Promise(r=>{for(;a<s;)c();function c(){const s=a++;if(s>=o)return void(!i.find(e=>!e.url&&!e.errMsg)&&r(t));const l=i[s];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=s,e.tempFile=l,e.tempFilePath=l.path,n&&n(e)}}).then(e=>{l.url=e.fileID,s<o&&c()}).catch(e=>{l.errMsg=e.errMsg||e.message,s<o&&c()})}})}(e,t,5,n))}n.initChooseAndUploadFile=function(s){return function(n={type:"all"}){return"image"===n.type?c(s,function(t){const{count:s,sizeType:n,sourceType:i=["album","camera"],extension:r}=t;return new Promise((t,c)=>{e({count:s,sizeType:n,sourceType:i,extension:r,success(e){t(a(e,"image"))},fail(e){c({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})})}(n),n):"video"===n.type?c(s,function(e){const{camera:s,compressed:n,maxDuration:i,sourceType:r=["album","camera"],extension:c}=e;return new Promise((e,l)=>{t({camera:s,compressed:n,maxDuration:i,sourceType:r,extension:c,success(t){const{tempFilePath:s,duration:n,size:i,height:r,width:o}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})})}(n),n):c(s,function(e){const{count:t,extension:s}=e;return new Promise((e,n)=>{let r=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return n({errMsg:o+" 请æå® type ç±»åï¼è¯¥å¹³å°ä»
æ¯æéæ© image æ videoã"});r({type:"all",count:t,extension:s,success(t){e(a(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})})}(n),n)}}}));const ti="manual";function si(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch(()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(t=>{e.push(this[t])}),e},(e,t)=>{if(this.loadtime===ti)return;let s=!1;const n=[];for(let i=2;i<e.length;i++)e[i]!==t[i]&&(n.push(e[i]),s=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(s,n)})},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:s}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(s=>{this.mixinDatacomLoading=!1;const{data:n,count:i}=s.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=n.length<this.pageSize;const r=e?n.length?n[0]:void 0:n;this.mixinDatacomResData=r,t&&t(r)}).catch(e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,s&&s(e)}))},mixinDatacomGet(t={}){let s;t=t||{},s="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(s=s.action(n));const i=t.collection||this.collection;s=Array.isArray(i)?s.collection(...i):s.collection(i);const r=t.where||this.where;r&&Object.keys(r).length&&(s=s.where(r));const o=t.field||this.field;o&&(s=s.field(o));const a=t.foreignKey||this.foreignKey;a&&(s=s.foreignKey(a));const c=t.groupby||this.groupby;c&&(s=s.groupBy(c));const l=t.groupField||this.groupField;l&&(s=s.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(s=s.distinct());const u=t.orderby||this.orderby;u&&(s=s.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(m.getTree=y),g&&(m.getTreePath=y),s=s.skip(h*(d-1)).limit(h).get(m),s}}}}function ni(e){return De("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function ii({openid:e,callLoginByWeixin:t=!1}={}){throw ni(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${Fe}\``)}async function ri(e){const t=ni(this);return t.initPromise||(t.initPromise=ii.call(this,e).then(e=>e).catch(e=>{throw delete t.initPromise,e})),t.initPromise}function oi(e){ft=e}function ai(e){const t={getAppBaseInfo:b,getPushClientId:x};return function(s){return new Promise((n,i)=>{t[e]({...s,success(e){n(e)},fail(e){i(e)}})})}}class ci extends Ae{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([ai("getAppBaseInfo")(),ai("getPushClientId")()]).then(([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()},e=>{throw this.emit("error",e),this.close(),e})}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:s,messageId:n,message:i}=t;this._payloadQueue.push({action:s,messageId:n,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find(e=>e.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:s,message:n}=e;"end"===t?this._end({messageId:s,message:n}):"message"===t&&this._appendMessage({messageId:s,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){l(this._uniPushMessageCallback)}_destroy(){u(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const li={tcb:Us,tencent:Us,aliyun:wt,private:Ms,dcloud:Ms,alipay:Ws};let ui=new class{init(e){let t={};const s=li[e.provider];if(!s)throw new Error("æªæä¾æ£ç¡®çprovideråæ°");var n;return t=s.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new Pe({createPromise:function(){let t=Promise.resolve();t=new Promise(e=>{setTimeout(()=>{e()},1)});const s=e.auth();return t.then(()=>s.getLoginState()).then(e=>e?Promise.resolve():s.signInAnonymously())}}))}(t),dn(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=bn(xn,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=bn(xn,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Zn,e.chooseAndUploadFile=ei.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return si(e)}}),e.SSEChannel=ci,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:s=!1}={}){return ri.call(e,{openid:t,callLoginByWeixin:s})}}(e),e.setCustomClientInfo=oi,e.importObject=function(t){return function(s,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"å è½½ä¸...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:i,loadingOptions:l,errorOptions:u,parseSystemError:d}=n,h=!i;return new Proxy({},{get(i,p){switch(p){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:s}={}){return async function(...n){const i=s?s({params:n}):{};let r,o;try{return await qe(je(t,"invoke"),{...i}),r=await e(...n),await qe(je(t,"success"),{...i,result:r}),r}catch(a){throw o=a,await qe(je(t,"fail"),{...i,error:o}),o}finally{await qe(je(t,"complete"),o?{...i,error:o}:{...i,result:r})}}}({fn:async function i(...f){let g;h&&r({title:l.title,mask:l.mask});const m={name:s,type:ye,data:{method:p,params:f}};"object"==typeof n.secretMethods&&function(e,t){const s=t.data.method,n=e.secretMethods||{},i=n[s]||n["*"];i&&(t.secretType=i)}(n,m);let y=!1;try{g=await t.callFunction(m)}catch(e){y=!0,g={result:new rt(e)}}const{errSubject:_,errCode:v,errMsg:w,newToken:T}=g.result||{};if(h&&o(),T&&T.token&&T.tokenExpired&&(lt(T),et(Je,{...T})),v){let e=w;if(y&&d&&(e=(await d({objectName:s,methodName:p,params:f,errSubject:_,errCode:v,errMsg:w})).errMsg||w),h)if("toast"===u.type)a({title:e,icon:"none"});else{if("modal"!==u.type)throw new Error(`Invalid errorOptions.type: ${u.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:s,cancelText:n,confirmText:i}={}){return new Promise((r,o)=>{c({title:e,content:t,showCancel:s,cancelText:n,confirmText:i,success(e){r(e)},fail(){r({confirm:!1,cancel:!0})}})})}({title:"æç¤º",content:e,showCancel:u.retry,cancelText:"åæ¶",confirmText:u.retry?"éè¯":"ç¡®å®"});if(u.retry&&t)return i(...f)}}const t=new rt({subject:_,code:v,message:w,requestId:g.requestId});throw t.detail=g.result,et(Ve,{type:Qe,content:t}),t}return et(Ve,{type:Qe,content:g.result}),g.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:s,methodName:p,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(e=>{if(!t[e])return;const s=t[e];t[e]=function(){return s.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(s){let n=!1;if("callFunction"===t){const e=s&&s.type||me;n=e!==me}const i="callFunction"===t&&!n,r=this._initPromiseHub.exec();s=s||{};const{success:o,fail:a,complete:c}=it(s),l=r.then(()=>n?Promise.resolve():qe(je(t,"invoke"),s)).then(()=>e.call(this,s)).then(e=>n?Promise.resolve(e):qe(je(t,"success"),e).then(()=>qe(je(t,"complete"),e)).then(()=>(i&&et(Ve,{type:Ge,content:e}),Promise.resolve(e))),e=>n?Promise.reject(e):qe(je(t,"fail"),e).then(()=>qe(je(t,"complete"),e)).then(()=>(et(Ve,{type:Ge,content:e}),Promise.reject(e))));if(!(o||a||c))return l;l.then(e=>{o&&o(e),c&&c(e),i&&et(Ve,{type:Ge,content:e})},e=>{a&&a(e),c&&c(e),i&&et(Ve,{type:Ge,content:e})})}}(t[e],e).bind(t)}),t.init=this.init,t}};(()=>{const e=Le;let t={};if(e&&1===e.length)t=e[0],ui=ui.init(t),ui._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],s=["database","getCurrentUserInfo","importObject"];let n;n=e&&e.length>0?"åºç¨æå¤ä¸ªæå¡ç©ºé´ï¼è¯·éè¿uniCloud.initæ¹æ³æå®è¦ä½¿ç¨çæå¡ç©ºé´":"åºç¨æªå
³èæå¡ç©ºé´ï¼è¯·å¨uniCloudç®å½å³é®å
³èæå¡ç©ºé´",[...t,...s].forEach(e=>{ui[e]=function(){if(console.error(n),-1===s.indexOf(e))return Promise.reject(new rt({code:"SYS_ERR",message:n}));console.error(n)}})}Object.assign(ui,{get mixinDatacom(){return si(ui)}}),Gn(ui),ui.addInterceptor=Be,ui.removeInterceptor=$e,ui.interceptObject=Ke;{const e=Ue||(Ue=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),Ue);e.uniCloud=ui,e.UniCloudError=rt}})();var di=ui;const hi="chooseAndUploadFile:fail";function pi(e,t){return e.tempFiles.forEach((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function fi(e,t=5,s){const n=(e=JSON.parse(JSON.stringify(e))).length;let i=0,r=this;return new Promise(o=>{for(;i<t;)a();function a(){let t=i++;if(t>=n)return void(!e.find(e=>!e.url&&!e.errMsg)&&o(e));const c=e[t],l=r.files.findIndex(e=>e.uuid===c.uuid);c.url="",delete c.errMsg,di.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,s&&s(e)}}).then(e=>{c.url=e.fileID,c.index=l,t<n&&a()}).catch(e=>{c.errMsg=e.errMsg||e.message,c.index=l,t<n&&a()})}})}function gi(e,{onChooseFile:t,onUploadProgress:s}){return e.then(e=>{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then(t=>void 0===t?e:t)}return e}).then(e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e)}function mi(s={type:"all"}){return"image"===s.type?gi(function(t){const{count:s,sizeType:n=["original","compressed"],sourceType:i,extension:r}=t;return new Promise((t,o)=>{e({count:s,sizeType:n,sourceType:i,extension:r,success(e){t(pi(e,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",hi)})}})})}(s),s):"video"===s.type?gi(function(e){const{count:s,camera:n,compressed:i,maxDuration:r,sourceType:o,extension:a}=e;return new Promise((e,s)=>{t({camera:n,compressed:i,maxDuration:r,sourceType:o,extension:a,success(t){const{tempFilePath:s,duration:n,size:i,height:r,width:o}=t;e(pi({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",hi)})}})})}(s),s):gi(function(e){const{count:t,extension:s}=e;return new Promise((e,n)=>{let r=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return n({errMsg:hi+" 请æå® type ç±»åï¼è¯¥å¹³å°ä»
æ¯æéæ© image æ videoã"});r({type:"all",count:t,extension:s,success(t){e(pi(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",hi)})}})})}(s),s)}const yi=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},_i=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},vi=async(e,t="image")=>{const s=yi(e.name).ext.toLowerCase();let n={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(i=e.path,new Promise((e,t)=>{P({src:i,success(t){e(t)},fail(e){t(e)}})}));delete n.video,n.image.width=t.width,n.image.height=t.height,n.image.location=t.path}else delete n.image;var i;return n};const wi=A({name:"uniFilePicker",components:{uploadImage:A({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let n=e&&e.radius||3;n=this.value2px(n),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}let s="";for(let n in t)s+=`${n}:${t[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.readonly||this.$emit("choose")},delFile(e){this.readonly||this.$emit("delFile",e)},prviewImage(e,t){if(this.readonly)return;let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach(e=>{s.push(e.url)}),C({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,n,i,r){const o=j,a=K,c=z;return O(),F(a,{class:"uni-file-picker__container"},{default:L(()=>[(O(!0),E(U,null,R(s.filesList,(e,t)=>(O(),F(a,{class:"file-picker__box",key:t,style:D(r.boxStyle)},{default:L(()=>[N(a,{class:"file-picker__box-content",style:D(r.borderStyle)},{default:L(()=>[N(o,{class:"file-image",src:e.url,mode:"aspectFill",onClick:M(s=>r.prviewImage(e,t),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(O(),F(a,{key:0,class:"icon-del-box",onClick:M(e=>r.delFile(t),["stop"])},{default:L(()=>[N(a,{class:"icon-del"}),N(a,{class:"icon-del rotate"})]),_:2},1032,["onClick"])):B("",!0),e.progress&&100!==e.progress||0===e.progress?(O(),F(a,{key:1,class:"file-picker__progress"},{default:L(()=>[N(c,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])]),_:2},1024)):B("",!0),e.errMsg?(O(),F(a,{key:2,class:"file-picker__mask",onClick:M(s=>r.uploadFiles(e,t),["stop"])},{default:L(()=>[$(" ç¹å»éè¯ ")]),_:2},1032,["onClick"])):B("",!0)]),_:2},1032,["style"])]),_:2},1032,["style"]))),128)),s.filesList.length<s.limit?(O(),F(a,{key:0,class:"file-picker__box",style:D(r.boxStyle)},{default:L(()=>[N(a,{class:"file-picker__box-content is-add",style:D(r.borderStyle),onClick:r.choose},{default:L(()=>[q(e.$slots,"default",{},void 0,!0)]),_:3},8,["style","onClick"])]),_:3},8,["style"])):B("",!0)]),_:3})}],["__scopeId","data-v-423cbc90"]]),uploadFile:A({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach(t=>{e.push(t)}),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let n=e&&e.radius||5;n=this.value2px(n),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}else s.border="none";let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,n=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-top-style"]=n}let s="";for(let n in e)s+=`${n}:${e[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,n,i,r){const o=K,a=z;return O(),F(o,{class:"uni-file-picker__files"},{default:L(()=>[s.readonly?B("",!0):(O(),F(o,{key:0,class:"files-button",onClick:r.choose},{default:L(()=>[q(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick"])),r.list.length>0?(O(),F(o,{key:1,class:"uni-file-picker__lists is-text-box",style:D(r.borderStyle)},{default:L(()=>[(O(!0),E(U,null,R(r.list,(e,t)=>(O(),F(o,{class:V(["uni-file-picker__lists-box",{"files-border":0!==t&&r.styles.dividline}]),key:t,style:D(0!==t&&r.styles.dividline&&r.borderLineStyle)},{default:L(()=>[N(o,{class:"uni-file-picker__item"},{default:L(()=>[N(o,{class:"files__name"},{default:L(()=>[$(H(e.name),1)]),_:2},1024),s.delIcon&&!s.readonly?(O(),F(o,{key:0,class:"icon-del-box icon-files",onClick:e=>r.delFile(t)},{default:L(()=>[N(o,{class:"icon-del icon-files"}),N(o,{class:"icon-del rotate"})]),_:2},1032,["onClick"])):B("",!0)]),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(O(),F(o,{key:0,class:"file-picker__progress"},{default:L(()=>[N(a,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])]),_:2},1024)):B("",!0),"error"===e.status?(O(),F(o,{key:1,class:"file-picker__mask",onClick:M(s=>r.uploadFiles(e,t),["stop"])},{default:L(()=>[$(" ç¹å»éè¯ ")]),_:2},1032,["onClick"])):B("",!0)]),_:2},1032,["class","style"]))),128))]),_:1},8,["style"])):B("",!0)]),_:3})}],["__scopeId","data-v-14279b92"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""},dir:{type:String,default:""}},data:()=>({files:[],localValue:[],dirPath:""}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0},dir:{handler(e){this.dirPath=e},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach(t=>{e.push(t)}),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){di.config&&di.config.provider||(this.noSpace=!0,di.chooseAndUploadFile=mi),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick(()=>{this.setEmit()})),this.$nextTick(()=>{this.setEmit()})},upload(){let e=[];return this.files.forEach((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))}),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t<e.length;t++){let n=e[t];await s(n)}}this.localValue=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(this.localValue));let n=Object.keys(e).length>0?e:[];this.files=[].concat(n)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?a({title:`æ¨æå¤éæ© ${this.limitLength} 个æä»¶`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=_i(this.fileExtname);di.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then(e=>{this.setSuccessAndError(e.tempFiles)}).catch(e=>{console.log("éæ©å¤±è´¥",e)})},async chooseFileCallback(e){const t=_i(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:n}=((e,t)=>{let s=[],n=[];return t&&0!==t.length?(e.tempFiles.forEach(e=>{const i=yi(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(n.push(e),s.push(e.path))}),n.length!==e.tempFiles.length&&a({title:`å½åéæ©äº${e.tempFiles.length}个æä»¶ ï¼${e.tempFiles.length-n.length} 个æä»¶æ ¼å¼ä¸æ£ç¡®`,icon:"none",duration:5e3}),{filePaths:s,files:n}):{filePaths:s,files:n}})(e,t);t&&t.length>0||(s=e.tempFilePaths,n=e.tempFiles);let i=[];for(let r=0;r<n.length&&!(this.limitLength-this.files.length<=0);r++){n[r].uuid=Date.now();let e=await vi(n[r],this.fileMediatype);e.progress=0,e.status="ready";let t={...e,file:n[r]};this.files.push(t),i.push(t)}return this.$emit("select",{tempFiles:i,tempFilePaths:s}),e.tempFiles=n,this.autoUpload&&!this.noSpace||(e.tempFiles=[]),e.tempFiles.map((e,t)=>{this.provider&&(e.provider=this.provider);const s=e.name.split("."),n=s.pop(),i=s.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");let r=this.dirPath||"";return r&&"/"!==r[r.length-1]&&(r+="/"),e.cloudPath=r+i+"_"+Date.now()+"_"+t+"."+n,e.cloudPathAsRealPath=!0,e}),e},uploadFiles(e){return e=[].concat(e),fi.call(this,e,5,e=>{this.setProgress(e,e.index,!0)}).then(e=>(this.setSuccessAndError(e),e)).catch(e=>{console.log(e)})},async setSuccessAndError(e,t){let s=[],n=[],i=[],r=[];for(let o=0;o<e.length;o++){const t=e[o],a=t.uuid?this.files.findIndex(e=>e.uuid===t.uuid):t.index;if(-1===a||!this.files)break;if("request:fail"===t.errMsg)this.files[a].url=t.path,this.files[a].status="error",this.files[a].errMsg=t.errMsg,n.push(this.files[a]),r.push(this.files[a].url);else{this.files[a].errMsg="",this.files[a].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[a].url=await this.getTempFileURL(t.url):this.files[a].url=t.url,this.files[a].status="success",this.files[a].progress+=1,s.push(this.files[a]),i.push(this.files[a].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:i})),n.length>0&&this.$emit("fail",{tempFiles:this.backObject(n),tempFilePaths:r})},setProgress(e,t,s){this.files.length;const n=Math.round(100*e.loaded/e.total);let i=t;s||(i=this.files.findIndex(t=>t.uuid===e.tempFile.uuid)),-1!==i&&this.files[i]&&(this.files[i].progress=n-1,this.$emit("progress",{index:i,progress:parseInt(n),tempFile:this.files[i]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick(()=>{this.setEmit()})},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach(e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})}),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await di.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,n,i,r){const o=W,a=K,c=J("upload-image"),l=G,u=J("upload-file");return O(),F(a,{class:"uni-file-picker"},{default:L(()=>[s.title?(O(),F(a,{key:0,class:"uni-file-picker__header"},{default:L(()=>[N(o,{class:"file-title"},{default:L(()=>[$(H(s.title),1)]),_:1}),N(o,{class:"file-count"},{default:L(()=>[$(H(r.filesList.length)+"/"+H(r.limitLength),1)]),_:1})]),_:1})):B("",!0),"image"===s.fileMediatype&&"grid"===r.showType?(O(),F(c,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":r.filesList,limit:r.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:L(()=>[q(e.$slots,"default",{},()=>[N(a,{class:"icon-add"}),N(a,{class:"icon-add rotate"})],!0)]),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):B("",!0),"image"!==s.fileMediatype||"grid"!==r.showType?(O(),F(u,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":r.filesList,showType:r.showType,delIcon:s.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:L(()=>[q(e.$slots,"default",{},()=>[N(l,{type:"primary",size:"mini"},{default:L(()=>[$("éæ©æä»¶")]),_:1})],!0)]),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):B("",!0)]),_:3})}],["__scopeId","data-v-5d4d501e"]]),Ti={__name:"index",props:{files:{type:Array,default:()=>[]},gradesFiles:{type:Array,default:()=>[]},readonly:{type:Boolean,default:!1},position:{type:Object,default:()=>({right:"30rpx",bottom:"200rpx"})},bgColor:{type:String,default:"#67AFAB"},maxCount:{type:Number,default:9},showGradeSlip:{type:Boolean,default:!1},isGradeRequired:{type:Boolean,default:!1}},emits:["update:files","update:gradesFiles","upload","preview","upload-grade","upload-base"],setup(e,{expose:t,emit:s}){const n=Q(),i=e,c=s,l=Y(null),u=Y(null),d=Y([]),p=Y([]),g=Y(!0),m=Y("#67AFAB"),y=n.baseUrlHt,_=Y("base"),v=X(()=>i.showGradeSlip?"base"===_.value?d.value:p.value:d.value),w=X(()=>d.value.length+p.value.length);Z(()=>i.files,e=>{d.value=[...e]},{immediate:!0}),Z(()=>i.gradesFiles,e=>{p.value=[...e]},{immediate:!0});const T=e=>e?e.startsWith("http://")||e.startsWith("https://")?e:`${y}${e.startsWith("/")?"":"/"}${e}`:"",k={width:120,height:120,border:!1},b=["image/jpeg","image/png","image/gif","image/webp","image/bmp","image/svg+xml"],x=e=>{g.value=!e.show},I=e=>e&&b.includes(e)?"image":e&&e.includes("pdf")?"paperclip":e&&e.includes("word")?"file-word":e&&e.includes("excel")?"file-excel":e&&e.includes("powerpoint")?"file-ppt":"file",S=e=>e&&b.includes(e)?m.value:e&&e.includes("pdf")?"#ff4d4f":e&&e.includes("word")?"#2b579a":e&&e.includes("excel")?"#217346":e&&e.includes("powerpoint")?"#b7472a":"#666",P=e=>e?e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(1)}KB`:`${(e/1048576).toFixed(1)}MB`:"",A=()=>{l.value&&l.value.open()},M=()=>{l.value&&l.value.close()},q=()=>{var e;null==(e=u.value)||e.choose()},j=e=>{if(!e)return"application/octet-stream";return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",SVG:"image/svg+xml",pdf:"application/pdf"}[e.split(".").pop().toLowerCase()]||"application/octet-stream"},z=e=>{const t=i.showGradeSlip&&"grade"===_.value,s=t?p.value:d.value,n=e.tempFiles.filter(e=>{const t=e.name?e.name.split(".").pop().toLowerCase():"",s=b.includes(e.type)||["jpg","jpeg","png","gif","webp","bmp","svg"].includes(t),n=e.type&&e.type.includes("pdf")||"pdf"===t;return s||n}).map(e=>({name:e.name,url:e.path||e.url,type:e.type||j(e.name),size:e.size,file:e,status:"pending",attachmentType:t?"grade":"base"}));s.length+n.length>i.maxCount?a({title:`æå¤åªè½ä¸ä¼ ${i.maxCount}个æä»¶`,icon:"none"}):t?(p.value=[...p.value,...n],c("update:gradesFiles",p.value)):(d.value=[...d.value,...n],c("update:files",d.value))},J=()=>[...d.value,...p.value],ae=(e,t,s)=>{s&&s.stopPropagation(),"grade"===e?(p.value.splice(t,1),c("update:gradesFiles",p.value)):(d.value.splice(t,1),c("update:files",d.value))},ce=e=>{const t=T(e.url);if(e.type&&b.includes(e.type)){const e=J();C({urls:e.filter(e=>e.type&&b.includes(e.type)).map(e=>T(e.url)),current:t})}else e.type&&e.type.includes("pdf")?se({url:t,success:e=>{const t=e.tempFilePath;ne({filePath:t,fileType:"pdf",success:()=>console.log("æå¼PDFæå"),fail:e=>{console.error("æå¼PDF失败",e),a({title:"æå¼PDF失败",icon:"none"})}})},fail:e=>{console.error("ä¸è½½PDF失败",e),a({title:"ä¸è½½PDF失败",icon:"none"})}}):c("preview",e)},le=(e,t)=>new Promise((t,s)=>{const n=f("token");h({url:"/api/common/upload",filePath:e.path||e.url,name:"file",header:{Authorization:`Bearer ${n}`},success:e=>{if(200===e.statusCode){const n=JSON.parse(e.data);console.log(n,"æä»¶"),200===n.code?t({...n,fileName:n.fileName}):s(new Error(n.msg||"ä¸ä¼ 失败"))}else s(new Error(`ä¸ä¼ 失败ï¼ç¶æç : ${e.statusCode}`))},fail:e=>{s(e)}})}),ue=async()=>{if(i.showGradeSlip&&i.isGradeRequired&&0===p.value.length)return a({title:"请ä¸ä¼ æç»©åéä»¶",icon:"none"}),void(_.value="grade");if(0!==J().length){r({title:"ä¸ä¼ ä¸",mask:!0});try{const t=d.value.filter(e=>!e.url||"pending"===e.status),s=p.value.filter(e=>!e.url||"pending"===e.status);for(const n of t)try{n.status="uploading";const e=await le(n.file);Object.assign(n,{url:e.url,fileName:e.name,newFileName:e.newFileName,originalFilename:e.originalFilename,status:"success",size:e.size}),c("upload-base",n)}catch(e){console.error("ä¸ä¼ 失败:",e),n.status="error",a({title:`æä»¶ ${n.name} ä¸ä¼ 失败`,icon:"none"})}for(const n of s)try{n.status="uploading";const e=await le(n.file);Object.assign(n,{url:e.fileName,fileName:e.fileName,newFileName:e.newFileName,originalFilename:e.originalFilename,status:"success"}),c("upload-grade",n)}catch(e){console.error("æç»©åéä»¶ä¸ä¼ 失败:",e),n.status="error",a({title:`æä»¶ ${n.name} ä¸ä¼ 失败`,icon:"none"})}console.log(d.value,"1"),console.log(p.value,"2"),c("update:files",d.value),c("update:gradesFiles",p.value),a({title:"ä¸ä¼ 宿",icon:"success"}),M()}catch(e){console.error("ä¸ä¼ åºé:",e),a({title:"ä¸ä¼ åºé",icon:"none"})}finally{o()}}else a({title:"请å
æ·»å éä»¶",icon:"none"})};return t({getFilesByType:e=>"grade"===e?p.value:d.value,getAllFiles:J}),(t,s)=>{const n=W,i=K,r=ee(te("uni-icons"),re),o=ie,a=G,c=ee(te("uni-popup"),oe),h=ee(te("uni-file-picker"),wi);return O(),F(i,{class:"attachment-upload"},{default:L(()=>[N(i,{class:"attachment-btn",style:D({right:e.position.right,bottom:e.position.bottom,backgroundColor:e.bgColor,display:g.value?"flex":"none"}),onClick:A},{default:L(()=>[N(n,null,{default:L(()=>[$("éä»¶")]),_:1}),w.value>0?(O(),F(n,{key:0,class:"badge"},{default:L(()=>[$(H(w.value),1)]),_:1})):B("",!0)]),_:1},8,["style"]),N(c,{ref_key:"popup",ref:l,type:"bottom","safe-area":!1,onChange:x},{default:L(()=>[N(i,{class:"attachment-popup"},{default:L(()=>[N(i,{class:"popup-header"},{default:L(()=>[N(n,{class:"title"},{default:L(()=>[$("é件管ç")]),_:1}),e.readonly?B("",!0):(O(),F(r,{key:0,type:"plus",size:"24",color:m.value,onClick:q},null,8,["color"])),N(r,{type:"close",size:"24",color:"#999",onClick:M})]),_:1}),e.showGradeSlip?(O(),F(i,{key:0,class:"attachment-tabs"},{default:L(()=>[N(i,{class:V(["tab-item",{active:"base"===_.value}]),onClick:s[0]||(s[0]=e=>_.value="base")},{default:L(()=>[N(n,null,{default:L(()=>[$("åºç¡éä»¶")]),_:1})]),_:1},8,["class"]),N(i,{class:V(["tab-item",{active:"grade"===_.value}]),onClick:s[1]||(s[1]=e=>_.value="grade")},{default:L(()=>[N(n,null,{default:L(()=>[$("æç»©åéä»¶")]),_:1}),e.isGradeRequired?(O(),F(n,{key:0,class:"required-mark"},{default:L(()=>[$("*")]),_:1})):B("",!0)]),_:1},8,["class"])]),_:1})):B("",!0),N(o,{"scroll-y":"",class:"file-list"},{default:L(()=>["base"!==_.value&&e.showGradeSlip?B("",!0):(O(!0),E(U,{key:0},R(d.value,(t,s)=>(O(),F(i,{class:"file-item",key:"base-"+s},{default:L(()=>[N(i,{class:"file-icon",onClick:e=>ce(t)},{default:L(()=>[N(r,{type:I(t.type),size:"24",color:S(t.type)},null,8,["type","color"])]),_:2},1032,["onClick"]),N(i,{class:"file-info",onClick:e=>ce(t)},{default:L(()=>[N(n,{class:"file-name"},{default:L(()=>[$(H(t.originalFilename||t.name),1)]),_:2},1024),N(n,{class:"file-size"},{default:L(()=>[$(H(P(t.size)),1)]),_:2},1024),"uploading"===t.status?(O(),F(n,{key:0,class:"file-status"},{default:L(()=>[$("ä¸ä¼ ä¸...")]),_:1})):"error"===t.status?(O(),F(n,{key:1,class:"file-status error"},{default:L(()=>[$("ä¸ä¼ 失败")]),_:1})):B("",!0)]),_:2},1032,["onClick"]),e.readonly?B("",!0):(O(),F(r,{key:0,type:"trash",size:"20",color:"#ff4d4f",onClick:e=>ae("base",s,e)},null,8,["onClick"]))]),_:2},1024))),128)),"grade"===_.value&&e.showGradeSlip?(O(!0),E(U,{key:1},R(p.value,(t,s)=>(O(),F(i,{class:"file-item",key:"grade-"+s},{default:L(()=>[N(i,{class:"file-icon",onClick:e=>ce(t)},{default:L(()=>[N(r,{type:I(t.type),size:"24",color:S(t.type)},null,8,["type","color"])]),_:2},1032,["onClick"]),N(i,{class:"file-info",onClick:e=>ce(t)},{default:L(()=>[N(n,{class:"file-name"},{default:L(()=>[$(H(t.originalFilename||t.name),1)]),_:2},1024),N(n,{class:"file-size"},{default:L(()=>[$(H(P(t.size)),1)]),_:2},1024),"uploading"===t.status?(O(),F(n,{key:0,class:"file-status"},{default:L(()=>[$("ä¸ä¼ ä¸...")]),_:1})):"error"===t.status?(O(),F(n,{key:1,class:"file-status error"},{default:L(()=>[$("ä¸ä¼ 失败")]),_:1})):B("",!0)]),_:2},1032,["onClick"]),e.readonly?B("",!0):(O(),F(r,{key:0,type:"trash",size:"20",color:"#ff4d4f",onClick:e=>ae("grade",s,e)},null,8,["onClick"]))]),_:2},1024))),128)):B("",!0),0===v.value.length?(O(),F(i,{key:2,class:"empty"},{default:L(()=>[N(r,{type:"info",size:"24",color:"#999"}),"base"!==_.value&&e.showGradeSlip?"grade"===_.value?(O(),F(n,{key:1},{default:L(()=>[$("ææ æç»©åéä»¶")]),_:1})):B("",!0):(O(),F(n,{key:0},{default:L(()=>[$("ææ éä»¶")]),_:1}))]),_:1})):B("",!0)]),_:1}),e.readonly?B("",!0):(O(),F(i,{key:1,class:"popup-footer"},{default:L(()=>[N(a,{class:"btn",onClick:q},{default:L(()=>[$("æ·»å ")]),_:1}),N(a,{class:"btn primary",onClick:ue},{default:L(()=>[$("确认ä¸ä¼ ")]),_:1})]),_:1}))]),_:1})]),_:1},512),e.readonly?B("",!0):(O(),F(h,{key:0,ref_key:"filePicker",ref:u,"auto-upload":!1,"file-mediatype":"all",limit:e.maxCount-v.value.length,"image-styles":k,onSelect:z,onDelete:t.onFileDelete,style:{display:"none"}},null,8,["limit","onDelete"]))]),_:1})}}},ki=A(Ti,[["__scopeId","data-v-e7158949"]]);export{ki as a}; |
| | | import{af as e,ag as t,O as s,ah as n,ai as i,K as r,L as o,D as a,G as c,aj as l,ak as u,E as d,al as h,am as p,U as f,V as g,H as m,an as y,ac as _,n as v,v as w,s as T,j as k,ao as b,ap as x,aq as I,ar as S,as as P,_ as A,Q as C,a as O,c as F,w as L,f as E,F as U,h as R,l as D,e as N,p as M,d as B,b as $,a7 as q,m as j,i as K,at as z,B as V,t as H,ab as J,k as W,x as G,C as Q,r as Y,J as X,au as Z,z as ee,A as te,a5 as se,a6 as ne,S as ie}from"./index-Bf8mw6fQ.js";import{_ as re}from"./uni-icons.B0nHGUYu.js";import{_ as oe}from"./uni-popup.Cdyk2Swr.js";const ae={pages:[{path:"pages/index/index",style:{navigationBarTitleText:"é大éé¢OPO管çå¹³å°",enablePullDownRefresh:!0}},{path:"pages/appointment/index",style:{navigationBarTitleText:"é¢çº¦æå·"}},{path:"pages/login/Login",style:{navigationBarTitleText:"ç»å½",navigationStyle:"custom"}},{path:"pages/login/Register",style:{navigationBarTitleText:"注å",navigationStyle:"custom"}},{path:"pages/my/index",style:{navigationBarTitleText:"个人ä¸å¿"}},{path:"pages/vaccine/index",style:{navigationBarTitleText:"ç«èæ¥ç§"}},{path:"pages/vaccine/book",style:{navigationBarTitleText:"ç«èé¢çº¦"}},{path:"pages/appointment/doctor",style:{navigationBarTitleText:"éæ©å»ç"}},{path:"pages/appointment/schedule",style:{navigationBarTitleText:"éæ©æ¶é´"}},{path:"pages/appointment/record",style:{navigationBarTitleText:"é¢çº¦è®°å½"}},{path:"pages/payment/index",style:{navigationBarTitleText:"æ¯ä»"}},{path:"pages/department/index",style:{navigationBarTitleText:"éæ©ç§å®¤"}},{path:"pages/department/guide",style:{navigationBarTitleText:"ç§å®¤å¯¼èª"}},{path:"pages/department/list",style:{navigationBarTitleText:"ç§å®¤å表"}},{path:"pages/department/detail",style:{navigationBarTitleText:"ç§å®¤è¯¦æ
"}},{path:"pages/department/search",style:{navigationBarTitleText:"æç´¢ç»æ"}},{path:"pages/hospital/detail",style:{navigationBarTitleText:"å»é¢è¯¦æ
"}},{path:"pages/records/medical",style:{navigationBarTitleText:"å°±å»è®°å½"}},{path:"pages/records/detail",style:{navigationBarTitleText:"å°±å»è¯¦æ
"}},{path:"pages/records/report",style:{navigationBarTitleText:"æ£æ¥æ¥å"}},{path:"pages/my/cases",style:{navigationBarTitleText:"个人ç
ä¾"}},{path:"pages/my/case-detail",style:{navigationBarTitleText:"ç
ä¾è¯¦æ
"}},{path:"pages/records/reports",style:{navigationBarTitleText:"æ£æ¥æ¥åå表"}},{path:"pages/records/report-detail",style:{navigationBarTitleText:"æ£æ¥æ¥å详æ
"}},{path:"pages/appointment/patient",style:{navigationBarTitleText:"鿩就è¯äºº"}},{path:"pages/appointment/confirm",style:{navigationBarTitleText:"确认é¢çº¦"}},{path:"pages/vaccine/list",style:{navigationBarTitleText:"ç«èå表"}},{path:"pages/vaccine/detail",style:{navigationBarTitleText:"ç«è详æ
"}},{path:"pages/vaccine/record",style:{navigationBarTitleText:"æ¥ç§è®°å½"}},{path:"pages/case/index",style:{navigationBarTitleText:"æç䏿¥"}},{path:"pages/case/CaseDetails",style:{navigationBarTitleText:"䏿¥æ¡ä¾"}},{path:"pages/case/CaseInfo",style:{navigationBarTitleText:"æ¡ä¾è¯¦æ
"}},{path:"pages/case/transfer",style:{navigationBarTitleText:"转è¿ç»è®°"}},{path:"pages/case/transferinfo",style:{navigationBarTitleText:"ç»è®°å详æ
"}},{path:"pages/payment/record",style:{navigationBarTitleText:"缴费记å½"}},{path:"pages/payment/detail",style:{navigationBarTitleText:"缴费详æ
"}},{path:"pages/payment/result",style:{navigationBarTitleText:"æ¯ä»ç»æ"}},{path:"pages/payment/refund",style:{navigationBarTitleText:"ç³è¯·é款"}},{path:"pages/payment/invoice",style:{navigationBarTitleText:"çµåå票"}},{path:"pages/patient/list",style:{navigationBarTitleText:"å°±è¯äººç®¡ç"}},{path:"pages/patient/add",style:{navigationBarTitleText:"æ·»å å°±è¯äºº"}},{path:"pages/patient/edit",style:{navigationBarTitleText:"ç¼è¾å°±è¯äºº"}},{path:"pages/my/payment-method",style:{navigationBarTitleText:"æ¯ä»æ¹å¼"}},{path:"pages/my/add-bank-card",style:{navigationBarTitleText:"æ·»å é¶è¡å¡"}},{path:"pages/my/notification",style:{navigationBarTitleText:"æ¶æ¯éç¥"}},{path:"pages/search/index",style:{navigationBarTitleText:"æç´¢",navigationStyle:"custom"}},{path:"pages/doctor/detail",style:{navigationBarTitleText:"å»ç详æ
"}},{path:"pages/disease/detail",style:{navigationBarTitleText:"ç¾ç
详æ
"}},{path:"pages/appointment/department",style:{navigationBarTitleText:"éæ©ç§å®¤"}},{path:"pages/news/list",style:{navigationBarTitleText:"å»é¢èµè®¯"}},{path:"pages/news/detail",style:{navigationBarTitleText:"èµè®¯è¯¦æ
"}},{path:"pages/featured/tcm",style:{navigationBarTitleText:"ä¸å»ç¹è²è¯ç"}},{path:"pages/featured/project",style:{navigationBarTitleText:"项ç®è¯¦æ
"}},{path:"pages/featured/case",style:{navigationBarTitleText:"æ¡ä¾è¯¦æ
"}},{path:"pages/featured/index",style:{navigationBarTitleText:"ç¹è²å»ç"}},{path:"pages/featured/cross-border",style:{navigationBarTitleText:"è·¨å¢å»çæå¡"}},{path:"pages/featured/expert",style:{navigationBarTitleText:"ä¸å®¶é¨è¯"}},{path:"pages/featured/all",style:{navigationBarTitleText:"å
¨é¨ç¹è²å»ç"}},{path:"pages/featured/bay-area",style:{navigationBarTitleText:"大湾åºç¹è²å»ç"}},{path:"pages/my/profile",style:{navigationBarTitleText:"个人信æ¯"}},{path:"pages/consultation/index",style:{navigationBarTitleText:"å¨çº¿é®è¯"}},{path:"pages/ethicalReview/ethicalInfo",style:{navigationBarTitleText:"伦ç审æ¥"}},{path:"pages/ethicalReview/index",style:{navigationBarTitleText:"审æ¥è®°å½"}},{path:"pages/consultation/chat",style:{navigationBarTitleText:"å»çé®è¯"}},{path:"pages/consultation/ai",style:{navigationBarTitleText:"AIé®è¯å©æ"}},{path:"pages/my/health-records",style:{navigationBarTitleText:"å¥åº·æ¡£æ¡",enablePullDownRefresh:!0}}],globalStyle:{navigationBarTextStyle:"white",navigationBarBackgroundColor:"#0f95b0",backgroundColor:"#F5F6FA"},uniIdRouter:{},tabBar:{color:"#999999",selectedColor:"#0f95b0",backgroundColor:"#FFFFFF",borderStyle:"black",list:[{pagePath:"pages/index/index",text:"é¦é¡µ",iconPath:"static/tabbar/home.png",selectedIconPath:"static/tabbar/home-active.png"},{pagePath:"pages/my/index",text:"æç",iconPath:"static/tabbar/my.png",selectedIconPath:"static/tabbar/my-active.png"}]},easycom:{autoscan:!0,custom:{"^uni-(.*)":"@dcloudio/uni-ui/lib/uni-$1/uni-$1","^u--(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"@/uni_modules/uview-plus/components/u-$1/u-$1.vue"}}};function ce(e,t,s){return e(s={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&s.path)}},s.exports),s.exports}var le=ce(function(e,t){var s;e.exports=(s=s||function(e){var t=Object.create||function(){function e(){}return function(t){var s;return e.prototype=t,s=new e,e.prototype=null,s}}(),s={},n=s.lib={},i=n.Base={extend:function(e){var s=t(this);return e&&s.mixIn(e),s.hasOwnProperty("init")&&this.init!==s.init||(s.init=function(){s.$super.init.apply(this,arguments)}),s.init.prototype=s,s.$super=this,s},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},r=n.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||a).stringify(this)},concat:function(e){var t=this.words,s=e.words,n=this.sigBytes,i=e.sigBytes;if(this.clamp(),n%4)for(var r=0;r<i;r++){var o=s[r>>>2]>>>24-r%4*8&255;t[n+r>>>2]|=o<<24-(n+r)%4*8}else for(r=0;r<i;r+=4)t[n+r>>>2]=s[r>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,s=this.sigBytes;t[s>>>2]&=4294967295<<32-s%4*8,t.length=e.ceil(s/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var s,n=[],i=function(t){var s=987654321,n=4294967295;return function(){var i=((s=36969*(65535&s)+(s>>16)&n)<<16)+(t=18e3*(65535&t)+(t>>16)&n)&n;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var a=i(4294967296*(s||e.random()));s=987654071*a(),n.push(4294967296*a()|0)}return new r.init(n,t)}}),o=s.enc={},a=o.Hex={stringify:function(e){for(var t=e.words,s=e.sigBytes,n=[],i=0;i<s;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push((r>>>4).toString(16)),n.push((15&r).toString(16))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n<t;n+=2)s[n>>>3]|=parseInt(e.substr(n,2),16)<<24-n%8*4;return new r.init(s,t/2)}},c=o.Latin1={stringify:function(e){for(var t=e.words,s=e.sigBytes,n=[],i=0;i<s;i++){var r=t[i>>>2]>>>24-i%4*8&255;n.push(String.fromCharCode(r))}return n.join("")},parse:function(e){for(var t=e.length,s=[],n=0;n<t;n++)s[n>>>2]|=(255&e.charCodeAt(n))<<24-n%4*8;return new r.init(s,t)}},l=o.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},u=n.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new r.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var s=this._data,n=s.words,i=s.sigBytes,o=this.blockSize,a=i/(4*o),c=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,l=e.min(4*c,i);if(c){for(var u=0;u<c;u+=o)this._doProcessBlock(n,u);var d=n.splice(0,c);s.sigBytes-=l}return new r.init(d,l)},clone:function(){var e=i.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});n.Hasher=u.extend({cfg:i.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){u.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,s){return new e.init(s).finalize(t)}},_createHmacHelper:function(e){return function(t,s){return new d.HMAC.init(e,s).finalize(t)}}});var d=s.algo={};return s}(Math),s)}),ue=le,de=(ce(function(e,t){var s;e.exports=(s=ue,function(e){var t=s,n=t.lib,i=n.WordArray,r=n.Hasher,o=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*e.abs(e.sin(t+1))|0}();var c=o.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var s=0;s<16;s++){var n=t+s,i=e[n];e[n]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var r=this._hash.words,o=e[t+0],c=e[t+1],p=e[t+2],f=e[t+3],g=e[t+4],m=e[t+5],y=e[t+6],_=e[t+7],v=e[t+8],w=e[t+9],T=e[t+10],k=e[t+11],b=e[t+12],x=e[t+13],I=e[t+14],S=e[t+15],P=r[0],A=r[1],C=r[2],O=r[3];P=l(P,A,C,O,o,7,a[0]),O=l(O,P,A,C,c,12,a[1]),C=l(C,O,P,A,p,17,a[2]),A=l(A,C,O,P,f,22,a[3]),P=l(P,A,C,O,g,7,a[4]),O=l(O,P,A,C,m,12,a[5]),C=l(C,O,P,A,y,17,a[6]),A=l(A,C,O,P,_,22,a[7]),P=l(P,A,C,O,v,7,a[8]),O=l(O,P,A,C,w,12,a[9]),C=l(C,O,P,A,T,17,a[10]),A=l(A,C,O,P,k,22,a[11]),P=l(P,A,C,O,b,7,a[12]),O=l(O,P,A,C,x,12,a[13]),C=l(C,O,P,A,I,17,a[14]),P=u(P,A=l(A,C,O,P,S,22,a[15]),C,O,c,5,a[16]),O=u(O,P,A,C,y,9,a[17]),C=u(C,O,P,A,k,14,a[18]),A=u(A,C,O,P,o,20,a[19]),P=u(P,A,C,O,m,5,a[20]),O=u(O,P,A,C,T,9,a[21]),C=u(C,O,P,A,S,14,a[22]),A=u(A,C,O,P,g,20,a[23]),P=u(P,A,C,O,w,5,a[24]),O=u(O,P,A,C,I,9,a[25]),C=u(C,O,P,A,f,14,a[26]),A=u(A,C,O,P,v,20,a[27]),P=u(P,A,C,O,x,5,a[28]),O=u(O,P,A,C,p,9,a[29]),C=u(C,O,P,A,_,14,a[30]),P=d(P,A=u(A,C,O,P,b,20,a[31]),C,O,m,4,a[32]),O=d(O,P,A,C,v,11,a[33]),C=d(C,O,P,A,k,16,a[34]),A=d(A,C,O,P,I,23,a[35]),P=d(P,A,C,O,c,4,a[36]),O=d(O,P,A,C,g,11,a[37]),C=d(C,O,P,A,_,16,a[38]),A=d(A,C,O,P,T,23,a[39]),P=d(P,A,C,O,x,4,a[40]),O=d(O,P,A,C,o,11,a[41]),C=d(C,O,P,A,f,16,a[42]),A=d(A,C,O,P,y,23,a[43]),P=d(P,A,C,O,w,4,a[44]),O=d(O,P,A,C,b,11,a[45]),C=d(C,O,P,A,S,16,a[46]),P=h(P,A=d(A,C,O,P,p,23,a[47]),C,O,o,6,a[48]),O=h(O,P,A,C,_,10,a[49]),C=h(C,O,P,A,I,15,a[50]),A=h(A,C,O,P,m,21,a[51]),P=h(P,A,C,O,b,6,a[52]),O=h(O,P,A,C,f,10,a[53]),C=h(C,O,P,A,T,15,a[54]),A=h(A,C,O,P,c,21,a[55]),P=h(P,A,C,O,v,6,a[56]),O=h(O,P,A,C,S,10,a[57]),C=h(C,O,P,A,y,15,a[58]),A=h(A,C,O,P,x,21,a[59]),P=h(P,A,C,O,g,6,a[60]),O=h(O,P,A,C,k,10,a[61]),C=h(C,O,P,A,p,15,a[62]),A=h(A,C,O,P,w,21,a[63]),r[0]=r[0]+P|0,r[1]=r[1]+A|0,r[2]=r[2]+C|0,r[3]=r[3]+O|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;s[i>>>5]|=128<<24-i%32;var r=e.floor(n/4294967296),o=n;s[15+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),s[14+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(s.length+1),this._process();for(var a=this._hash,c=a.words,l=0;l<4;l++){var u=c[l];c[l]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return a},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});function l(e,t,s,n,i,r,o){var a=e+(t&s|~t&n)+i+o;return(a<<r|a>>>32-r)+t}function u(e,t,s,n,i,r,o){var a=e+(t&n|s&~n)+i+o;return(a<<r|a>>>32-r)+t}function d(e,t,s,n,i,r,o){var a=e+(t^s^n)+i+o;return(a<<r|a>>>32-r)+t}function h(e,t,s,n,i,r,o){var a=e+(s^(t|~n))+i+o;return(a<<r|a>>>32-r)+t}t.MD5=r._createHelper(c),t.HmacMD5=r._createHmacHelper(c)}(Math),s.MD5)}),ce(function(e,t){var s,n,i;e.exports=(n=(s=ue).lib.Base,i=s.enc.Utf8,void(s.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var s=e.blockSize,n=4*s;t.sigBytes>n&&(t=e.finalize(t)),t.clamp();for(var r=this._oKey=t.clone(),o=this._iKey=t.clone(),a=r.words,c=o.words,l=0;l<s;l++)a[l]^=1549556828,c[l]^=909522486;r.sigBytes=o.sigBytes=n,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,s=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(s))}})))}),ce(function(e,t){e.exports=ue.HmacMD5})),he=ce(function(e,t){e.exports=ue.enc.Utf8}),pe=ce(function(e,t){var s,n,i;e.exports=(i=(n=s=ue).lib.WordArray,n.enc.Base64={stringify:function(e){var t=e.words,s=e.sigBytes,n=this._map;e.clamp();for(var i=[],r=0;r<s;r+=3)for(var o=(t[r>>>2]>>>24-r%4*8&255)<<16|(t[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|t[r+2>>>2]>>>24-(r+2)%4*8&255,a=0;a<4&&r+.75*a<s;a++)i.push(n.charAt(o>>>6*(3-a)&63));var c=n.charAt(64);if(c)for(;i.length%4;)i.push(c);return i.join("")},parse:function(e){var t=e.length,s=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var r=0;r<s.length;r++)n[s.charCodeAt(r)]=r}var o=s.charAt(64);if(o){var a=e.indexOf(o);-1!==a&&(t=a)}return function(e,t,s){for(var n=[],r=0,o=0;o<t;o++)if(o%4){var a=s[e.charCodeAt(o-1)]<<o%4*2,c=s[e.charCodeAt(o)]>>>6-o%4*2;n[r>>>2]|=(a|c)<<24-r%4*8,r++}return i.create(n,r)}(e,t,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},s.enc.Base64)});const fe="uni_id_token",ge="uni_id_token_expired",me="FUNCTION",ye="OBJECT",_e="CLIENT_DB",ve="pending",we="rejected";function Te(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function ke(e){return"object"===Te(e)}function be(e){return"function"==typeof e}function xe(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Ie="REJECTED",Se="NOT_PENDING";class Pe{constructor({createPromise:e,retryRule:t=Ie}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Ie:return this.status===we;case Se:return this.status!==ve}}exec(){return this.needRetry?(this.status=ve,this.promise=this.createPromise().then(e=>(this.status="fulfilled",Promise.resolve(e)),e=>(this.status=we,Promise.reject(e))),this.promise):this.promise}}class Ae{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const s=this._callback[e];if(!s)return;const n=function(e,t){for(let s=e.length-1;s>=0;s--)if(e[s]===t)return s;return-1}(s,t);s.splice(n,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const s=this._callback[e];if(s)for(let n=0;n<s.length;n++)s[n](...t)}}function Ce(e){return e&&"string"==typeof e?JSON.parse(e):e}const Oe=Ce([]),Fe="web";Ce("");const Le=Ce("[]")||[];let Ee="";try{Ee="__UNI__46B5420"}catch(bt){}let Ue,Re={};function De(e,t={}){var s,n;return s=Re,n=e,Object.prototype.hasOwnProperty.call(s,n)||(Re[e]=t),Re[e]}const Ne=["invoke","success","fail","complete"],Me=De("_globalUniCloudInterceptor");function Be(e,t){Me[e]||(Me[e]={}),ke(t)&&Object.keys(t).forEach(s=>{Ne.indexOf(s)>-1&&function(e,t,s){let n=Me[e][t];n||(n=Me[e][t]=[]),-1===n.indexOf(s)&&be(s)&&n.push(s)}(e,s,t[s])})}function $e(e,t){Me[e]||(Me[e]={}),ke(t)?Object.keys(t).forEach(s=>{Ne.indexOf(s)>-1&&function(e,t,s){const n=Me[e][t];if(!n)return;const i=n.indexOf(s);i>-1&&n.splice(i,1)}(e,s,t[s])}):delete Me[e]}function qe(e,t){return e&&0!==e.length?e.reduce((e,s)=>e.then(()=>s(t)),Promise.resolve()):Promise.resolve()}function je(e,t){return Me[e]&&Me[e][t]||[]}function Ke(e){Be("callObject",e)}const ze=De("_globalUniCloudListener"),Ve="response",He="needLogin",Je="refreshToken",We="clientdb",Ge="cloudfunction",Qe="cloudobject";function Ye(e){return ze[e]||(ze[e]=[]),ze[e]}function Xe(e,t){const s=Ye(e);s.includes(t)||s.push(t)}function Ze(e,t){const s=Ye(e),n=s.indexOf(t);-1!==n&&s.splice(n,1)}function et(e,t){const s=Ye(e);for(let n=0;n<s.length;n++)(0,s[n])(t)}let tt,st=!1;function nt(){return tt||(tt=new Promise(e=>{st&&e(),function t(){if("function"==typeof s){const t=s();t&&t[0]&&(st=!0,e())}st||setTimeout(()=>{t()},30)}()}),tt)}function it(e){const t={};for(const s in e){const n=e[s];be(n)&&(t[s]=xe(n))}return t}class rt extends Error{constructor(e){const t=e.message||e.errMsg||"unknown system error";super(t),this.errMsg=t,this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var ot={request:e=>d(e),uploadFile:e=>h(e),setStorageSync:(e,t)=>p(e,t),getStorageSync:e=>f(e),removeStorageSync:e=>g(e),clearStorageSync:()=>m(),connectSocket:e=>y(e)};function at(e){return e&&at(e.__v_raw)||e}function ct(){return{token:ot.getStorageSync(fe)||ot.getStorageSync("uniIdToken"),tokenExpired:ot.getStorageSync(ge)}}function lt({token:e,tokenExpired:t}={}){e&&ot.setStorageSync(fe,e),t&&ot.setStorageSync(ge,t)}let ut,dt;function ht(){return ut||(ut=_()),ut}function pt(){let e,t;try{if(S){if(S.toString().indexOf("not yet implemented")>-1)return;const{scene:s,channel:n}=S();e=n,t=s}}catch(s){}return{channel:e,scene:t}}let ft={};function gt(){const e=I&&I()||"en";if(dt)return{...ft,...dt,locale:e,LOCALE:e};const t=ht(),{deviceId:s,osName:n,uniPlatform:i,appId:r}=t,o=["appId","appLanguage","appName","appVersion","appVersionCode","appWgtVersion","browserName","browserVersion","deviceBrand","deviceId","deviceModel","deviceType","osName","osVersion","romName","romVersion","ua","hostName","hostVersion","uniPlatform","uniRuntimeVersion","uniRuntimeVersionCode","uniCompilerVersion","uniCompilerVersionCode"];for(const a in t)Object.hasOwnProperty.call(t,a)&&-1===o.indexOf(a)&&delete t[a];return dt={PLATFORM:i,OS:n,APPID:r,DEVICEID:s,...pt(),...t},{...ft,...dt,locale:e,LOCALE:e}}var mt=function(e,t){let s="";return Object.keys(e).sort().forEach(function(t){e[t]&&(s=s+"&"+t+"="+e[t])}),s=s.slice(1),de(s,t).toString()},yt=function(e,t){return new Promise((s,n)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const s=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",i=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return n(new rt({code:s,message:i,requestId:t}))}const i=e.data;if(i.error)return n(new rt({code:i.error.code,message:i.error.message,requestId:t}));i.result=i.data,i.requestId=t,delete i.data,s(i)}}))})},_t=function(e){return pe.stringify(he.parse(e))},vt=class{constructor(e){["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=ot,this._getAccessTokenPromiseHub=new Pe({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then(e=>{if(!e.result||!e.result.accessToken)throw new rt({code:"AUTH_FAILED",message:"è·åaccessToken失败"});this.setAccessToken(e.result.accessToken)}),retryRule:Se})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return yt(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then(()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch(t=>new Promise((e,s)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?s(t):e()}).then(()=>this.getAccessToken()).then(()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})):this.getAccessToken().then(()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=mt(t.data,this.config.clientSecret),t}setupRequest(e,t){const s=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),n={"Content-Type":"application/json"};return"auth"!==t&&(s.token=this.accessToken,n["x-basement-token"]=this.accessToken),n["x-serverless-sign"]=mt(s,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:s,dataType:"json",header:n}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request({...this.setupRequest(t),timeout:e.timeout})}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:s,filePath:n,fileType:i,onUploadProgress:r}){return new Promise((o,a)=>{const c=this.adapter.uploadFile({url:e,formData:t,name:s,filePath:n,fileType:i,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?o(e):a(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))},fail(e){a(new rt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"æä»¶ä¸ä¼ 失败"}))}});"function"==typeof r&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{r({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:s="image",cloudPathAsRealPath:n=!1,onUploadProgress:i,config:r}){if("string"!==Te(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathå¿
须为å符串类å"});if(!(t=t.trim()))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸å¯ä¸ºç©º"});if(/:\/\//.test(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸åæ³"});const o=r&&r.envType||this.config.envType;if(n&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new rt({code:"INVALID_PARAM",message:"使ç¨cloudPathä½ä¸ºè·¯å¾æ¶ï¼cloudPathä¸å¯å
å«â\\â"});const a=(await this.getOSSUploadOptionsFromPath({env:o,filename:n?t.split("/").pop():t,fileId:n?t:void 0})).result,c="https://"+a.cdnDomain+"/"+a.ossPath,{securityToken:l,accessKeyId:u,signature:d,host:h,ossPath:p,id:f,policy:g,ossCallbackUrl:m}=a,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:f,key:p,policy:g,success_action_status:200};if(l&&(y["x-oss-security-token"]=l),m){const e=JSON.stringify({callbackUrl:m,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=_t(e)}const _={url:"https://"+a.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:s};if(await this.uploadFileToOSS(Object.assign({},_,{onUploadProgress:i})),m)return{success:!0,filePath:e,fileID:c};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:c};throw new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"})}getTempFileURL({fileList:e}={}){return new Promise((t,s)=>{Array.isArray(e)&&0!==e.length||s(new rt({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"})),this.getFileInfo({fileList:e}).then(s=>{t({fileList:e.map((e,t)=>{const n=s.fileList[t];return{fileID:e,tempFileURL:n&&n.url||e}})})})})}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new rt({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map(e=>e.split("?")[0]).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},wt={init(e){const t=new vt(e),s={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}};const Tt="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var kt,bt;(bt=kt||(kt={})).local="local",bt.none="none",bt.session="session";var xt=function(){},It=ce(function(e,t){var s;e.exports=(s=ue,function(e){var t=s,n=t.lib,i=n.WordArray,r=n.Hasher,o=t.algo,a=[],c=[];!function(){function t(t){for(var s=e.sqrt(t),n=2;n<=s;n++)if(!(t%n))return!1;return!0}function s(e){return 4294967296*(e-(0|e))|0}for(var n=2,i=0;i<64;)t(n)&&(i<8&&(a[i]=s(e.pow(n,.5))),c[i]=s(e.pow(n,1/3)),i++),n++}();var l=[],u=o.SHA256=r.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var s=this._hash.words,n=s[0],i=s[1],r=s[2],o=s[3],a=s[4],u=s[5],d=s[6],h=s[7],p=0;p<64;p++){if(p<16)l[p]=0|e[t+p];else{var f=l[p-15],g=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=l[p-2],y=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;l[p]=g+l[p-7]+y+l[p-16]}var _=n&i^n&r^i&r,v=(n<<30|n>>>2)^(n<<19|n>>>13)^(n<<10|n>>>22),w=h+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&u^~a&d)+c[p]+l[p];h=d,d=u,u=a,a=o+w|0,o=r,r=i,i=n,n=w+(v+_)|0}s[0]=s[0]+n|0,s[1]=s[1]+i|0,s[2]=s[2]+r|0,s[3]=s[3]+o|0,s[4]=s[4]+a|0,s[5]=s[5]+u|0,s[6]=s[6]+d|0,s[7]=s[7]+h|0},_doFinalize:function(){var t=this._data,s=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return s[i>>>5]|=128<<24-i%32,s[14+(i+64>>>9<<4)]=e.floor(n/4294967296),s[15+(i+64>>>9<<4)]=n,t.sigBytes=4*s.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=r._createHelper(u),t.HmacSHA256=r._createHmacHelper(u)}(Math),s.SHA256)}),St=It,Pt=ce(function(e,t){e.exports=ue.HmacSHA256});const At=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new rt({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise((t,s)=>{e=(e,n)=>e?s(e):t(n)});return e.promise=t,e};function Ct(e){return void 0===e}function Ot(e){return"[object Null]"===Object.prototype.toString.call(e)}function Ft(e=""){return e.replace(/([\s\S]+)\s+(请åå¾äºå¼åAIå°å©ææ¥çé®é¢ï¼.*)/,"$1")}function Lt(e=32){let t="";for(let s=0;s<e;s++)t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return t}var Et;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Et||(Et={}));const Ut={adapter:null,runtime:void 0},Rt=["anonymousUuidKey"];class Dt extends xt{constructor(){super(),Ut.adapter.root.tcbObject||(Ut.adapter.root.tcbObject={})}setItem(e,t){Ut.adapter.root.tcbObject[e]=t}getItem(e){return Ut.adapter.root.tcbObject[e]}removeItem(e){delete Ut.adapter.root.tcbObject[e]}clear(){delete Ut.adapter.root.tcbObject}}function Nt(e,t){switch(e){case"local":return t.localStorage||new Dt;case"none":return new Dt;default:return t.sessionStorage||new Dt}}class Mt{constructor(e){if(!this._storage){this._persistence=Ut.adapter.primaryStorage||e.persistence,this._storage=Nt(this._persistence,Ut.adapter);const t=`access_token_${e.env}`,s=`access_token_expire_${e.env}`,n=`refresh_token_${e.env}`,i=`anonymous_uuid_${e.env}`,r=`login_type_${e.env}`,o="device_id",a=`token_type_${e.env}`,c=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n,anonymousUuidKey:i,loginTypeKey:r,userInfoKey:c,deviceIdKey:o,tokenTypeKey:a}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const s=Nt(e,Ut.adapter);for(const n in this.keys){const e=this.keys[n];if(t&&Rt.includes(n))continue;const i=this._storage.getItem(e);Ct(i)||Ot(i)||(s.setItem(e,i),this._storage.removeItem(e))}this._storage=s}setStore(e,t,s){if(!this._storage)return;const n={version:s||"localCachev1",content:t},i=JSON.stringify(n);try{this._storage.setItem(e,i)}catch(r){throw r}}getStore(e,t){try{if(!this._storage)return}catch(n){return""}t=t||"localCachev1";const s=this._storage.getItem(e);return s&&s.indexOf(t)>=0?JSON.parse(s).content:""}removeStore(e){this._storage.removeItem(e)}}const Bt={},$t={};function qt(e){return Bt[e]}class jt{constructor(e,t){this.data=t||null,this.name=e}}class Kt extends jt{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const zt=new class{constructor(){this._listeners={}}on(e,t){return s=e,n=t,(i=this._listeners)[s]=i[s]||[],i[s].push(n),this;var s,n,i}off(e,t){return function(e,t,s){if(s&&s[e]){const n=s[e].indexOf(t);-1!==n&&s[e].splice(n,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Kt)return console.error(e.error),this;const s="string"==typeof e?new jt(e,t||{}):e,n=s.name;if(this._listens(n)){s.target=this;const e=this._listeners[n]?[...this._listeners[n]]:[];for(const t of e)t.call(this,s)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Vt(e,t){zt.on(e,t)}function Ht(e,t={}){zt.fire(e,t)}function Jt(e,t){zt.off(e,t)}const Wt="loginStateChanged",Gt="loginStateExpire",Qt="loginTypeChanged",Yt="anonymousConverted",Xt="refreshAccessToken";var Zt;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(Zt||(Zt={}));class es{constructor(){this._fnPromiseMap=new Map}async run(e,t){let s=this._fnPromiseMap.get(e);return s||(s=new Promise(async(s,n)=>{try{await this._runIdlePromise();const e=t();s(await e)}catch(i){n(i)}finally{this._fnPromiseMap.delete(e)}}),this._fnPromiseMap.set(e,s)),s}_runIdlePromise(){return Promise.resolve()}}class ts{constructor(e){this._singlePromise=new es,this._cache=qt(e.env),this._baseURL=`https://${e.env}.ap-shanghai.tcb-api.tencentcloudapi.com`,this._reqClass=new Ut.adapter.reqClass({timeout:e.timeout,timeoutMsg:`请æ±å¨${e.timeout/1e3}så
æªå®æï¼å·²ä¸æ`,restrictedMethods:["post"]})}_getDeviceId(){if(this._deviceID)return this._deviceID;const{deviceIdKey:e}=this._cache.keys;let t=this._cache.getStore(e);return"string"==typeof t&&t.length>=16&&t.length<=48||(t=Lt(),this._cache.setStore(e,t)),this._deviceID=t,t}async _request(e,t,s={}){const n={"x-request-id":Lt(),"x-device-id":this._getDeviceId()};if(s.withAccessToken){const{tokenTypeKey:e}=this._cache.keys,t=await this.getAccessToken(),s=this._cache.getStore(e);n.authorization=`${s} ${t}`}return this._reqClass["get"===s.method?"get":"post"]({url:`${this._baseURL}${e}`,data:t,headers:n})}async _fetchAccessToken(){const{loginTypeKey:e,accessTokenKey:t,accessTokenExpireKey:s,tokenTypeKey:n}=this._cache.keys,i=this._cache.getStore(e);if(i&&i!==Zt.ANONYMOUS)throw new rt({code:"INVALID_OPERATION",message:"éå¿åç»å½ä¸æ¯æå·æ° access token"});const r=await this._singlePromise.run("fetchAccessToken",async()=>(await this._request("/auth/v1/signin/anonymously",{},{method:"post"})).data),{access_token:o,expires_in:a,token_type:c}=r;return this._cache.setStore(n,c),this._cache.setStore(t,o),this._cache.setStore(s,Date.now()+1e3*a),o}isAccessTokenExpired(e,t){let s=!0;return e&&t&&(s=t<Date.now()),s}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,s=this._cache.getStore(e),n=this._cache.getStore(t);return this.isAccessTokenExpired(s,n)?this._fetchAccessToken():s}async refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,loginTypeKey:s}=this._cache.keys;return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.setStore(s,Zt.ANONYMOUS),this.getAccessToken()}async getUserInfo(){return this._singlePromise.run("getUserInfo",async()=>(await this._request("/auth/v1/user/me",{},{withAccessToken:!0,method:"get"})).data)}}const ss=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],ns={"X-SDK-Version":"1.3.5"};function is(e,t,s){const n=e[t];e[t]=function(t){const i={},r={};s.forEach(s=>{const{data:n,headers:o}=s.call(e,t);Object.assign(i,n),Object.assign(r,o)});const o=t.data;return o&&(()=>{var e;if(e=o,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...o,...i};else for(const t in i)o.append(t,i[t])})(),t.headers={...t.headers||{},...r},n.call(e,t)}}function rs(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...ns,"x-seqid":e}}}class os{constructor(e={}){var t;this.config=e,this._reqClass=new Ut.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请æ±å¨${this.config.timeout/1e3}så
æªå®æï¼å·²ä¸æ`,restrictedMethods:["post"]}),this._cache=qt(this.config.env),this._localCache=(t=this.config.env,$t[t]),this.oauth=new ts(this.config),is(this._reqClass,"post",[rs]),is(this._reqClass,"upload",[rs]),is(this._reqClass,"download",[rs])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(s){t=s}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s,loginTypeKey:n,anonymousUuidKey:i}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let r=this._cache.getStore(s);if(!r)throw new rt({message:"æªç»å½CloudBase"});const o={refresh_token:r},a=await this.request("auth.fetchAccessTokenWithRefreshToken",o);if(a.data.code){const{code:e}=a.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(n)===Zt.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(i),t=this._cache.getStore(s),n=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(n.refresh_token),this._refreshAccessToken()}Ht(Gt),this._cache.removeStore(s)}throw new rt({code:a.data.code,message:`å·æ°access token失败ï¼${a.data.code}`})}if(a.data.access_token)return Ht(Xt),this._cache.setStore(e,a.data.access_token),this._cache.setStore(t,a.data.access_token_expire+Date.now()),{accessToken:a.data.access_token,accessTokenExpire:a.data.access_token_expire};a.data.refresh_token&&(this._cache.removeStore(s),this._cache.setStore(s,a.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:s}=this._cache.keys;if(!this._cache.getStore(s))throw new rt({message:"refresh tokenä¸åå¨ï¼ç»å½ç¶æå¼å¸¸"});let n=this._cache.getStore(e),i=this._cache.getStore(t),r=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(n,i))&&(r=!1),(!n||!i||i<Date.now())&&r?this.refreshAccessToken():{accessToken:n,accessTokenExpire:i}}async request(e,t,s){const n=`x-tcb-trace_${this.config.env}`;let i="application/x-www-form-urlencoded";const r={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};let o;if(-1===ss.indexOf(e)&&(this._cache.keys,r.access_token=await this.oauth.getAccessToken()),"storage.uploadFile"===e){o=new FormData;for(let e in o)o.hasOwnProperty(e)&&void 0!==o[e]&&o.append(e,r[e]);i="multipart/form-data"}else{i="application/json",o={};for(let e in r)void 0!==r[e]&&(o[e]=r[e])}let a={headers:{"content-type":i}};s&&s.timeout&&(a.timeout=s.timeout),s&&s.onUploadProgress&&(a.onUploadProgress=s.onUploadProgress);const c=this._localCache.getStore(n);c&&(a.headers["X-TCB-Trace"]=c);const{parse:l,inQuery:u,search:d}=t;let h={env:this.config.env};l&&(h.parse=!0),u&&(h={...u,...h});let p=function(e,t,s={}){const n=/\?/.test(t);let i="";for(let r in s)""===i?!n&&(t+="?"):i+="&",i+=`${r}=${encodeURIComponent(s[r])}`;return/^http(s)?\:\/\//.test(t+=i)?t:`${e}${t}`}(Tt,"//tcb-api.tencentcloudapi.com/web",h);d&&(p+=d);const f=await this.post({url:p,data:o,...a}),g=f.header&&f.header["x-tcb-trace"];if(g&&this._localCache.setStore(n,g),200!==Number(f.status)&&200!==Number(f.statusCode)||!f.data)throw new rt({code:"NETWORK_ERROR",message:"network request error"});return f}async send(e,t={},s={}){const n=await this.request(e,t,{...s,onUploadProgress:t.onUploadProgress});if(("ACCESS_TOKEN_DISABLED"===n.data.code||"ACCESS_TOKEN_EXPIRED"===n.data.code)&&-1===ss.indexOf(e)){await this.oauth.refreshAccessToken();const n=await this.request(e,t,{...s,onUploadProgress:t.onUploadProgress});if(n.data.code)throw new rt({code:n.data.code,message:Ft(n.data.message)});return n.data}if(n.data.code)throw new rt({code:n.data.code,message:Ft(n.data.message)});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(s),this._cache.setStore(n,e)}}const as={};function cs(e){return as[e]}class ls{constructor(e){this.config=e,this._cache=qt(e.env),this._request=cs(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:s,refreshTokenKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(s),this._cache.setStore(n,e)}setAccessToken(e,t){const{accessTokenKey:s,accessTokenExpireKey:n}=this._cache.keys;this._cache.setStore(s,e),this._cache.setStore(n,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class us{constructor(e){if(!e)throw new rt({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=qt(this._envId),this._request=cs(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:s}=e;return s.forEach(e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)}),{users:s,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:s,avatarUrl:n,province:i,country:r,city:o}=e,{data:a}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:s,avatarUrl:n,province:i,country:r,city:o});this.setLocalUserInfo(a)}async refresh(){const e=await this._request.oauth.getUserInfo();return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach(e=>{this[e]=t[e]}),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class ds{constructor(e){if(!e)throw new rt({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=qt(e);const{refreshTokenKey:t,accessTokenKey:s,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(t),r=this._cache.getStore(s),o=this._cache.getStore(n);this.credential={refreshToken:i,accessToken:r,accessTokenExpire:o},this.user=new us(e)}get isAnonymousAuth(){return this.loginType===Zt.ANONYMOUS}get isCustomAuth(){return this.loginType===Zt.CUSTOM}get isWeixinAuth(){return this.loginType===Zt.WECHAT||this.loginType===Zt.WECHAT_OPEN||this.loginType===Zt.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class hs extends ls{async signIn(){this._cache.updatePersistence("local"),await this._request.oauth.getAccessToken(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.ANONYMOUS,persistence:"local"});const e=new ds(this.config.env);return await e.user.refresh(),e}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:s}=this._cache.keys,n=this._cache.getStore(t),i=this._cache.getStore(s),r=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:n,refresh_token:i,ticket:e});if(r.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(r.refresh_token),await this._request.refreshAccessToken(),Ht(Yt,{env:this.config.env}),Ht(Qt,{loginType:Zt.CUSTOM,persistence:"local"}),{credential:{refreshToken:r.refresh_token}};throw new rt({message:"å¿å转å失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:s}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(s,Zt.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class ps extends ls{async signIn(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,s=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(s.refresh_token)return this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new ds(this.config.env);throw new rt({message:"èªå®ä¹ç»å½å¤±è´¥"})}}class fs extends ls{async signIn(e,t){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token:r,access_token_expire:o}=n;if(i)return this.setRefreshToken(i),r&&o?this.setAccessToken(r,o):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.EMAIL,persistence:this.config.persistence}),new ds(this.config.env);throw n.code?new rt({code:n.code,message:`é®ç®±ç»å½å¤±è´¥: ${n.message}`}):new rt({message:"é®ç®±ç»å½å¤±è´¥"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class gs extends ls{async signIn(e,t){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:s}=this._cache.keys,n=await this._request.send("auth.signIn",{loginType:Zt.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(s)||""}),{refresh_token:i,access_token_expire:r,access_token:o}=n;if(i)return this.setRefreshToken(i),o&&r?this.setAccessToken(o,r):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.USERNAME,persistence:this.config.persistence}),new ds(this.config.env);throw n.code?new rt({code:n.code,message:`ç¨æ·åå¯ç ç»å½å¤±è´¥: ${n.message}`}):new rt({message:"ç¨æ·åå¯ç ç»å½å¤±è´¥"})}}class ms{constructor(e){this.config=e,this._cache=qt(e.env),this._request=cs(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Vt(Qt,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new hs(this.config)}customAuthProvider(){return new ps(this.config)}emailAuthProvider(){return new fs(this.config)}usernameAuthProvider(){return new gs(this.config)}async signInAnonymously(){return new hs(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new fs(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new gs(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new hs(this.config)),Vt(Yt,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===Zt.ANONYMOUS)throw new rt({message:"å¿åç¨æ·ä¸æ¯æç»åºæä½"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:s}=this._cache.keys,n=this._cache.getStore(e);if(!n)return;const i=await this._request.send("auth.logout",{refresh_token:n});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(s),Ht(Wt),Ht(Qt,{env:this.config.env,loginType:Zt.NULL,persistence:this.config.persistence}),i}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Vt(Wt,()=>{const t=this.hasLoginState();e.call(this,t)});const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Vt(Gt,e.bind(this))}onAccessTokenRefreshed(e){Vt(Xt,e.bind(this))}onAnonymousConverted(e){Vt(Yt,e.bind(this))}onLoginTypeChanged(e){Vt(Qt,()=>{const t=this.hasLoginState();e.call(this,t)})}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{accessTokenKey:e,accessTokenExpireKey:t}=this._cache.keys,s=this._cache.getStore(e),n=this._cache.getStore(t);return this._request.oauth.isAccessTokenExpired(s,n)?null:new ds(this.config.env)}async isUsernameRegistered(e){if("string"!=typeof e)throw new rt({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new ps(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then(e=>e.code?e:{...e.data,requestId:e.seqId})}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,s=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+s}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:s,env:n}=e.data;n===this.config.env&&(this._cache.updatePersistence(s),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const ys=function(e,t){t=t||At();const s=cs(this.config.env),{cloudPath:n,filePath:i,onUploadProgress:r,fileType:o="image"}=e;return s.send("storage.getUploadMetadata",{path:n}).then(e=>{const{data:{url:a,authorization:c,token:l,fileId:u,cosFileId:d},requestId:h}=e,p={key:n,signature:c,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":l};s.upload({url:a,data:p,file:i,name:n,fileType:o,onUploadProgress:r}).then(e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new rt({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))}).catch(e=>{t(e)})}).catch(e=>{t(e)}),t.promise},_s=function(e,t){t=t||At();const s=cs(this.config.env),{cloudPath:n}=e;return s.send("storage.getUploadMetadata",{path:n}).then(e=>{t(null,e)}).catch(e=>{t(e)}),t.promise},vs=function({fileList:e},t){if(t=t||At(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileListå¿
é¡»æ¯éç©ºçæ°ç»"};for(let n of e)if(!n||"string"!=typeof n)return{code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"};const s={fileid_list:e};return cs(this.config.env).send("storage.batchDeleteFile",s).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},ws=function({fileList:e},t){t=t||At(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileListå¿
é¡»æ¯éç©ºçæ°ç»"});let s=[];for(let i of e)"object"==typeof i?(i.hasOwnProperty("fileID")&&i.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯å
å«fileIDåmaxAgeç对象"}),s.push({fileid:i.fileID,max_age:i.maxAge})):"string"==typeof i?s.push({fileid:i}):t(null,{code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯å符串"});const n={file_list:s};return cs(this.config.env).send("storage.batchGetDownloadUrl",n).then(e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})}).catch(e=>{t(e)}),t.promise},Ts=async function({fileID:e},t){const s=(await ws.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==s.code)return t?t(s):new Promise(e=>{e(s)});const n=cs(this.config.env);let i=s.download_url;if(i=encodeURI(i),!t)return n.download({url:i});t(await n.download({url:i}))},ks=function({name:e,data:t,query:s,parse:n,search:i,timeout:r},o){const a=o||At();let c;try{c=t?JSON.stringify(t):""}catch(u){return Promise.reject(u)}if(!e)return Promise.reject(new rt({code:"PARAM_ERROR",message:"彿°åä¸è½ä¸ºç©º"}));const l={inQuery:s,parse:n,search:i,function_name:e,request_data:c};return cs(this.config.env).send("functions.invokeFunction",l,{timeout:r}).then(e=>{if(e.code)a(null,e);else{let s=e.data.response_data;if(n)a(null,{result:s,requestId:e.requestId});else try{s=JSON.parse(e.data.response_data),a(null,{result:s,requestId:e.requestId})}catch(t){a(new rt({message:"response data must be json"}))}}return a.promise}).catch(e=>{a(e)}),a.promise},bs={timeout:15e3,persistence:"session"},xs=6e5,Is={};class Ss{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(Ut.adapter||(this.requestClient=new Ut.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请æ±å¨${(e.timeout||5e3)/1e3}så
æªå®æï¼å·²ä¸æ`})),this.config={...bs,...e},!0){case this.config.timeout>xs:console.warn("timeout大äºå¯é
ç½®ä¸é[10åé]ï¼å·²é置为ä¸éæ°å¼"),this.config.timeout=xs;break;case this.config.timeout<100:console.warn("timeoutå°äºå¯é
ç½®ä¸é[100ms]ï¼å·²é置为ä¸éæ°å¼"),this.config.timeout=100}return new Ss(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||Ut.adapter.primaryStorage||bs.persistence;var s;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;Bt[t]=new Mt(e),$t[t]=new Mt({...e,persistence:"local"})}(this.config),s=this.config,as[s.env]=new os(s),this.authObj=new ms(this.config),this.authObj}on(e,t){return Vt.apply(this,[e,t])}off(e,t){return Jt.apply(this,[e,t])}callFunction(e,t){return ks.apply(this,[e,t])}deleteFile(e,t){return vs.apply(this,[e,t])}getTempFileURL(e,t){return ws.apply(this,[e,t])}downloadFile(e,t){return Ts.apply(this,[e,t])}uploadFile(e,t){return ys.apply(this,[e,t])}getUploadMetadata(e,t){return _s.apply(this,[e,t])}registerExtension(e){Is[e.name]=e}async invokeExtension(e,t){const s=Is[e];if(!s)throw new rt({message:`æ©å±${e} å¿
é¡»å
注å`});return await s.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:s}=function(e){const t=(s=e,"[object Array]"===Object.prototype.toString.call(s)?e:[e]);var s;for(const n of t){const{isMatch:e,genAdapter:t,runtime:s}=n;if(e())return{adapter:t(),runtime:s}}}(e)||{};t&&(Ut.adapter=t),s&&(Ut.runtime=s)}}var Ps=new Ss;function As(e,t,s){void 0===s&&(s={});var n=/\?/.test(t),i="";for(var r in s)""===i?!n&&(t+="?"):i+="&",i+=r+"="+encodeURIComponent(s[r]);return/^http(s)?:\/\//.test(t+=i)?t:""+e+t}class Cs{get(e){const{url:t,data:s,headers:n,timeout:i}=e;return new Promise((e,r)=>{ot.request({url:As("https:",t),data:s,method:"GET",header:n,timeout:i,success(t){e(t)},fail(e){r(e)}})})}post(e){const{url:t,data:s,headers:n,timeout:i}=e;return new Promise((e,r)=>{ot.request({url:As("https:",t),data:s,method:"POST",header:n,timeout:i,success(t){e(t)},fail(e){r(e)}})})}upload(e){return new Promise((t,s)=>{const{url:n,file:i,data:r,headers:o,fileType:a}=e,c=ot.uploadFile({url:As("https:",n),name:"file",formData:Object.assign({},r),filePath:i,fileType:a,header:o,success(e){const s={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&r.success_action_status&&(s.statusCode=parseInt(r.success_action_status,10)),t(s)},fail(e){s(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})})})}}const Os={setItem(e,t){ot.setStorageSync(e,t)},getItem:e=>ot.getStorageSync(e),removeItem(e){ot.removeStorageSync(e)},clear(){ot.clearStorageSync()}};var Fs={genAdapter:function(){return{root:{},reqClass:Cs,localStorage:Os,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Ps.useAdapters(Fs);const Ls=Ps,Es=Ls.init;Ls.init=function(e){e.env=e.spaceId;const t=Es.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const s=t.auth;return t.auth=function(e){const t=s.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach(e=>{var s;t[e]=(s=t[e],function(e){e=e||{};const{success:t,fail:n,complete:i}=it(e);if(!(t||n||i))return s.call(this,e);s.call(this,e).then(e=>{t&&t(e),i&&i(e)},e=>{n&&n(e),i&&i(e)})}).bind(t)}),t},t.customAuth=t.auth,t};var Us=Ls;async function Rs(e,t){const s=`http://${e}:${t}/system/ping`;try{const e=await(n={url:s,timeout:500},new Promise((e,t)=>{ot.request({...n,success(t){e(t)},fail(e){t(e)}})}));return!(!e.data||0!==e.data.code)}catch(i){return!1}var n}const Ds={"serverless.file.resource.generateProximalSign":"storage/generate-proximal-sign","serverless.file.resource.report":"storage/report","serverless.file.resource.delete":"storage/delete","serverless.file.resource.getTempFileURL":"storage/get-temp-file-url"};var Ns=class{constructor(e){if(["spaceId","clientSecret"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),!e.endpoint)throw new Error("éç¾¤ç©ºé´æªé
ç½®ApiEndpointï¼é
ç½®åéè¦éæ°å
³èæå¡ç©ºé´åçæ");this.config=Object.assign({},e),this.config.provider="dcloud",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.adapter=ot}async request(e,t=!0){return e=this.setupRequest(e),Promise.resolve().then(()=>yt(e,this.adapter.request))}requestLocal(e){return new Promise((t,s)=>{this.adapter.request(Object.assign(e,{complete(e){if(e||(e={}),!e.statusCode||e.statusCode>=400){const t=e.data&&e.data.code||"SYS_ERR",n=e.data&&e.data.message||"request:fail";return s(new rt({code:t,message:n}))}t({success:!0,result:e.data})}}))})}setupRequest(e){const t=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),s={"Content-Type":"application/json"};s["x-serverless-sign"]=mt(t,this.config.clientSecret);const n=gt();s["x-client-info"]=encodeURIComponent(JSON.stringify(n));const{token:i}=ct();return s["x-client-token"]=i,{url:this.config.requestUrl,method:"POST",data:t,dataType:"json",header:JSON.parse(JSON.stringify(s))}}async setupLocalRequest(e){const t=gt(),{token:s}=ct(),n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now(),clientInfo:t,token:s}),{address:i,servePort:r}=this.__dev__&&this.__dev__.debugInfo||{},{address:o}=await async function(e,t){let s;for(let n=0;n<e.length;n++){const i=e[n];if(await Rs(i,t)){s=i;break}}return{address:s,port:t}}(i,r);return{url:`http://${o}:${r}/${Ds[e.method]}`,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify({"Content-Type":"application/json"}))}}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(t,!1)}getUploadFileOptions(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(t)}reportUploadFile(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(t)}uploadFile({filePath:e,cloudPath:t,fileType:s="image",onUploadProgress:n}){if(!t)throw new rt({code:"CLOUDPATH_REQUIRED",message:"cloudPathä¸å¯ä¸ºç©º"});let i;return this.getUploadFileOptions({cloudPath:t}).then(t=>{const{url:r,formData:o,name:a}=t.result;return i=t.result.fileUrl,new Promise((t,i)=>{const c=this.adapter.uploadFile({url:r,formData:o,name:a,filePath:e,fileType:s,success(e){e&&e.statusCode<400?t(e):i(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))},fail(e){i(new rt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"æä»¶ä¸ä¼ 失败"}))}});"function"==typeof n&&c&&"function"==typeof c.onProgressUpdate&&c.onProgressUpdate(e=>{n({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}).then(()=>this.reportUploadFile({cloudPath:t})).then(t=>new Promise((s,n)=>{t.success?s({success:!0,filePath:e,fileID:i}):n(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))}))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(t).then(e=>{if(e.success)return e.result;throw new rt({code:"DELETE_FILE_FAILED",message:"å é¤æä»¶å¤±è´¥"})})}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new rt({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"});const s={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(s).then(e=>{if(e.success)return{fileList:e.result.fileList.map(e=>({fileID:e.fileID,tempFileURL:e.tempFileURL}))};throw new rt({code:"GET_TEMP_FILE_URL_FAILED",message:"è·åä¸´æ¶æä»¶é¾æ¥å¤±è´¥"})})}},Ms={init(e){const t=new Ns(e),s={signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return s},t.customAuth=t.auth,t}},Bs=ce(function(e,t){e.exports=ue.enc.Hex});function $s(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}function qs(e="",t={}){const{data:s,functionName:n,method:i,headers:r,signHeaderKeys:o=[],config:a}=t,c=String(Date.now()),l=$s(),u=Object.assign({},r,{"x-from-app-id":a.spaceAppId,"x-from-env-id":a.spaceId,"x-to-env-id":a.spaceId,"x-from-instance-id":c,"x-from-function-name":n,"x-client-timestamp":c,"x-alipay-source":"client","x-request-id":l,"x-alipay-callid":l,"x-trace-id":l}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(o),[h="",p=""]=e.split("?")||[],f=function(e){const t="HMAC-SHA256",s=e.signedHeaders.join(";"),n=e.signedHeaders.map(t=>`${t.toLowerCase()}:${e.headers[t]}\n`).join(""),i=St(e.body).toString(Bs),r=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${s}\n${i}\n`,o=St(r).toString(Bs),a=`${t}\n${e.timestamp}\n${o}\n`,c=Pt(a,e.secretKey).toString(Bs);return`${t} Credential=${e.secretId}, SignedHeaders=${s}, Signature=${c}`}({path:h,query:p,method:i,headers:u,timestamp:c,body:JSON.stringify(s),secretId:a.accessKey,secretKey:a.secretKey,signedHeaders:d.sort()});return{url:`${a.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function js({url:e,data:t,method:s="POST",headers:n={},timeout:i}){return new Promise((r,o)=>{ot.request({url:e,method:s,data:"object"==typeof t?JSON.stringify(t):t,header:n,dataType:"json",timeout:i,complete:(e={})=>{const t=n["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:s,errMsg:n,trace_id:i}=e.data||{};return o(new rt({code:"SYS_ERR",message:s||n||"request:fail",requestId:i||t}))}r({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})})}function Ks(e,t){const{path:s,data:n,method:i="GET"}=e,{url:r,headers:o}=qs(s,{functionName:"",data:n,method:i,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return js({url:r,data:n,method:i,headers:o}).then(e=>{const t=e.data||{};if(!t.success)throw new rt({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}}).catch(e=>{throw new rt({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}function zs(e=""){const t=e.trim().replace(/^cloud:\/\//,""),s=t.indexOf("/");if(s<=0)throw new rt({code:"INVALID_PARAM",message:"fileIDä¸åæ³"});const n=t.substring(0,s),i=t.substring(s+1);return n!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),i}function Vs(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}class Hs{constructor(e){this.config=e}signedURL(e,t={}){const s=`/ws/function/${e}`,n=this.config.wsEndpoint.replace(/^ws(s)?:\/\//,""),i=Object.assign({},t,{accessKeyId:this.config.accessKey,signatureNonce:$s(),timestamp:""+Date.now()}),r=[s,["accessKeyId","authorization","signatureNonce","timestamp"].sort().map(function(e){return i[e]?"".concat(e,"=").concat(i[e]):null}).filter(Boolean).join("&"),`host:${n}`].join("\n"),o=["HMAC-SHA256",St(r).toString(Bs)].join("\n"),a=Pt(o,this.config.secretKey).toString(Bs),c=Object.keys(i).map(e=>`${e}=${encodeURIComponent(i[e])}`).join("&");return`${this.config.wsEndpoint}${s}?${c}&signature=${a}`}}var Js=class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach(t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)}),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`,wsEndpoint:e.wsEndpoint||`wss://${e.spaceId}.api-hz.cloudbasefunction.cn`}),this._websocket=new Hs(this.config)}callFunction(e){return function(e,t){const{name:s,data:n,async:i=!1,timeout:r}=e,o="POST",a={"x-to-function-name":s};i&&(a["x-function-invoke-type"]="async");const{url:c,headers:l}=qs("/functions/invokeFunction",{functionName:s,data:n,method:o,headers:a,signHeaderKeys:["x-to-function-name"],config:t});return js({url:c,data:n,method:o,headers:l,timeout:r}).then(e=>{let t=0;if(i){const s=e.data||{};t="200"===s.errCode?0:s.errCode,e.data=s.data||{},e.errMsg=s.errMsg}if(0!==t)throw new rt({code:t,message:e.errMsg,requestId:e.requestId});return{errCode:t,success:0===t,requestId:e.requestId,result:e.data}}).catch(e=>{throw new rt({code:e.errCode,message:e.errMsg,requestId:e.requestId})})}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:s,formData:n,onUploadProgress:i}){return new Promise((r,o)=>{const a=ot.uploadFile({url:e,filePath:t,fileType:s,formData:n,name:"file",success(e){e&&e.statusCode<400?r(e):o(new rt({code:"UPLOAD_FAILED",message:"æä»¶ä¸ä¼ 失败"}))},fail(e){o(new rt({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"æä»¶ä¸ä¼ 失败"}))}});"function"==typeof i&&a&&"function"==typeof a.onProgressUpdate&&a.onProgressUpdate(e=>{i({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})})})}async uploadFile({filePath:e,cloudPath:t="",fileType:s="image",onUploadProgress:n}){if("string"!==Te(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathå¿
须为å符串类å"});if(!(t=t.trim()))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸å¯ä¸ºç©º"});if(/:\/\//.test(t))throw new rt({code:"INVALID_PARAM",message:"cloudPathä¸åæ³"});const i=await Ks({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:r,upload_url:o,form_data:a}=i,c=a&&a.reduce((e,t)=>(e[t.key]=t.value,e),{});return this.uploadFileToOSS({url:o,filePath:e,fileType:s,formData:c,onUploadProgress:n}).then(()=>({fileID:r}))}async getTempFileURL({fileList:e}){return new Promise((t,s)=>{(!e||e.length<0)&&t({code:"INVALID_PARAM",message:"fileListä¸è½ä¸ºç©ºæ°ç»"}),e.length>50&&t({code:"INVALID_PARAM",message:"fileListæ°ç»é¿åº¦ä¸è½è¶
è¿50"});const n=[];for(const r of e){let e;"string"!==Te(r)&&t({code:"INVALID_PARAM",message:"fileListçå
ç´ å¿
é¡»æ¯é空çå符串"});try{e=zs.call(this,r)}catch(i){console.warn(i.errCode,i.errMsg),e=r}n.push({file_id:e,expire:600})}Ks({path:"/?download_url",data:{file_list:n},method:"POST"},this.config).then(e=>{const{file_list:s=[]}=e;t({fileList:s.map(e=>({fileID:Vs.call(this,e.file_id),tempFileURL:e.download_url}))})}).catch(e=>s(e))})}async connectWebSocket(e){const{name:t,query:s}=e;return ot.connectSocket({url:this._websocket.signedURL(t,s),complete:()=>{}})}},Ws={init:e=>{e.provider="alipay";const t=new Js(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Gs({data:e}){let t;t=gt();const s=JSON.parse(JSON.stringify(e||{}));if(Object.assign(s,{clientInfo:t}),!s.uniIdToken){const{token:e}=ct();e&&(s.uniIdToken=e)}return s}const Qs=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:"ï¼äºå½æ°[{functionName}]å¨äºç«¯ä¸åå¨ï¼è¯·æ£æ¥æ¤äºå½æ°åç§°æ¯å¦æ£ç¡®ä»¥å该äºå½æ°æ¯å¦å·²ä¸ä¼ å°æå¡ç©ºé´",mode:"append"}];var Ys=/[\\^$.*+?()[\]{}|]/g,Xs=RegExp(Ys.source);function Zs(e,t,s){return e.replace(new RegExp((n=t)&&Xs.test(n)?n.replace(Ys,"\\$&"):n,"g"),s);var n}const en="request",tn="response",sn="both",nn="_globalUniCloudStatus",rn={code:2e4,message:"System error"},on={code:20101,message:"Invalid client"};function an(e){const{errSubject:t,subject:s,errCode:n,errMsg:i,code:r,message:o,cause:a}=e||{};return new rt({subject:t||s||"uni-secure-network",code:n||r||rn.code,message:i||o,cause:a})}let cn;function ln({secretType:e}={}){return e===en||e===tn||e===sn}function un({functionName:e,result:t,logPvd:s}){}function dn(e){const t=e.callFunction,s=function(s){const n=s.name;s.data=Gs.call(e,{data:s.data});const i={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay",dcloud:"dcloud"}[this.config.provider],r=ln(s)||false;return t.call(this,s).then(e=>(e.errCode=0,!r&&un.call(this,{functionName:n,result:e,logPvd:i}),Promise.resolve(e)),e=>(!r&&un.call(this,{functionName:n,result:e,logPvd:i}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:s=[]}={}){for(let n=0;n<s.length;n++){const{rule:i,content:r,mode:o}=s[n],a=e.match(i);if(!a)continue;let c=r;for(let e=1;e<a.length;e++)c=Zs(c,`{$${e}}`,a[e]);for(const e in t)c=Zs(c,`{${e}}`,t[e]);return"replace"===o?c:e+c}return e}({message:`[${s.name}]: ${e.message}`,formatter:Qs,extraInfo:{functionName:n}})),Promise.reject(e)))};e.callFunction=function(t){const{provider:n,spaceId:i}=e.config,r=t.name;let o,a;return t.data=t.data||{},o=s,o=o.bind(e),a=ln(t)?new cn({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(s.bind(e))(t):function({provider:e,spaceId:t,functionName:s}={}){const{appId:n,uniPlatform:i,osName:r}=ht();let o=i;"app"===i&&(o=r);const a=function({provider:e,spaceId:t}={}){const s=Oe;if(!s)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const n=s.find(s=>s.provider===e&&s.spaceId===t);return n&&n.config}({provider:e,spaceId:t});if(!a||!a.accessControl||!a.accessControl.enable)return!1;const c=a.accessControl.function||{},l=Object.keys(c);if(0===l.length)return!0;const u=function(e,t){let s,n,i;for(let r=0;r<e.length;r++){const o=e[r];o!==t?"*"!==o?o.split(",").map(e=>e.trim()).indexOf(t)>-1&&(n=o):i=o:s=o}return s||n||i}(l,s);if(!u)return!1;if((c[u]||[]).find((e={})=>e.appId===n&&(e.platform||"").toLowerCase()===o.toLowerCase()))return!0;throw console.error(`æ¤åºç¨[appId: ${n}, platform: ${o}]ä¸å¨äºç«¯é
ç½®çå
许访é®çåºç¨å表å
ï¼åèï¼https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),an(on)}({provider:n,spaceId:i,functionName:r})?new cn({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(s.bind(e))(t):o(t),Object.defineProperty(a,"result",{get:()=>(console.warn("å½åè¿åç»æä¸ºPromiseç±»åï¼ä¸å¯ç´æ¥è®¿é®å
¶result屿§ï¼è¯¦æ
请åèï¼https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),a.then(e=>e)}}cn=class{constructor(){throw an({message:`Platform ${Fe} is not supported by secure network`})}};const hn=Symbol("CLIENT_DB_INTERNAL");function pn(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=hn,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,s,n){if("_uniClient"===s)return null;if("symbol"==typeof s)return e[s];if(s in e||"string"!=typeof s){const t=e[s];return"function"==typeof t?t.bind(e):t}return t.get(e,s,n)}})}function fn(e){return{on:(t,s)=>{e[t]=e[t]||[],e[t].indexOf(s)>-1||e[t].push(s)},off:(t,s)=>{e[t]=e[t]||[];const n=e[t].indexOf(s);-1!==n&&e[t].splice(n,1)}}}const gn=["db.Geo","db.command","command.aggregate"];function mn(e,t){return gn.indexOf(`${e}.${t}`)>-1}function yn(e){switch(Te(e=at(e))){case"array":return e.map(e=>yn(e));case"object":return e._internalType===hn||Object.keys(e).forEach(t=>{e[t]=yn(e[t])}),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function _n(e){return e&&e.content&&e.content.$method}class vn{constructor(e,t,s){this.content=e,this.prevStage=t||null,this.udb=null,this._database=s}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map(e=>({$method:e.$method,$param:yn(e.$param)}))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find(e=>"action"===e.$method);return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter(e=>"action"!==e.$method)}}get isAggregate(){let e=this;for(;e;){const t=_n(e),s=_n(e.prevStage);if("aggregate"===t&&"collection"===s||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===_n(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=_n(e),s=_n(e.prevStage);if("aggregate"===t&&"command"===s)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return wn({$method:e,$param:yn(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQLç¦æ¢ä½¿ç¨setæ¹æ³")}}_send(e,t){const s=this.getAction(),n=this.getCommand();return n.$db.push({$method:e,$param:yn(t)}),this._database._callCloudFunction({action:s,command:n})}}function wn(e,t,s){return pn(new vn(e,t,s),{get(e,t){let n="db";return e&&e.content&&(n=e.content.$method),mn(n,t)?wn({$method:t},e,s):function(){return wn({$method:t,$param:yn(Array.from(arguments))},e,s)}}})}function Tn({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map(e=>({$method:e})),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}class kn{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=De("_globalUniCloudDatabaseCallback")),t||(this.auth=fn(this._authCallBacks)),this._isJQL=t,Object.assign(this,fn(this._dbCallBacks)),this.env=pn({},{get:(e,t)=>({$env:t})}),this.Geo=pn({},{get:(e,t)=>Tn({path:["Geo"],method:t})}),this.serverDate=Tn({path:[],method:"serverDate"}),this.RegExp=Tn({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnvåæ°é误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const s=this._dbCallBacks;s[e]&&s[e].forEach(e=>{e(...t)})}_callbackAuth(e,t){const s=this._authCallBacks;s[e]&&s[e].forEach(e=>{e(...t)})}multiSend(){const e=Array.from(arguments),t=e.map(e=>{const t=e.getAction(),s=e.getCommand();if("getTemp"!==s.$db[s.$db.length-1].$method)throw new Error("multiSendåªæ¯æåå½ä»¤å
使ç¨getTemp");return{action:t,command:s}});return this._callCloudFunction({multiCommand:t,queryList:e})}}function bn(e,t={}){return pn(new e(t),{get:(e,t)=>mn("db",t)?wn({$method:t},null,e):function(){return wn({$method:t,$param:yn(Array.from(arguments))},null,e)}})}class xn extends kn{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:s,queryList:n}){function i(e,t){if(s&&n)for(let s=0;s<n.length;s++){const i=n[s];i.udb&&"function"==typeof i.udb.setResult&&(t?i.udb.setResult(t):i.udb.setResult(e.result.dataList[s]))}}const r=this,o=this._isJQL?"databaseForJQL":"database";function a(e){return r._callback("error",[e]),qe(je(o,"fail"),e).then(()=>qe(je(o,"complete"),e)).then(()=>(i(null,e),et(Ve,{type:We,content:e}),Promise.reject(e)))}const c=qe(je(o,"invoke")),l=this._uniClient;return c.then(()=>l.callFunction({name:"DCloud-clientDB",type:_e,data:{action:e,command:t,multiCommand:s}})).then(e=>{const{code:t,message:s,token:n,tokenExpired:c,systemInfo:l=[]}=e.result;if(l)for(let i=0;i<l.length;i++){const{level:e,message:t,detail:s}=l[i];let n="[System Info]"+t;s&&(n=`${n}\n详ç»ä¿¡æ¯ï¼${s}`),(console[e]||console.log)(n)}if(t)return a(new rt({code:t,message:s,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,n&&c&&(lt({token:n,tokenExpired:c}),this._callbackAuth("refreshToken",[{token:n,tokenExpired:c}]),this._callback("refreshToken",[{token:n,tokenExpired:c}]),et(Je,{token:n,tokenExpired:c}));const u=[{prop:"affectedDocs",tips:"affectedDocsä¸åæ¨è使ç¨ï¼è¯·ä½¿ç¨inserted/deleted/updated/data.lengthæ¿ä»£"},{prop:"code",tips:"codeä¸åæ¨è使ç¨ï¼è¯·ä½¿ç¨errCodeæ¿ä»£"},{prop:"message",tips:"messageä¸åæ¨è使ç¨ï¼è¯·ä½¿ç¨errMsgæ¿ä»£"}];for(let i=0;i<u.length;i++){const{prop:t,tips:s}=u[i];if(t in e.result){const n=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(s),n)})}}return d=e,qe(je(o,"success"),d).then(()=>qe(je(o,"complete"),d)).then(()=>{i(d,null);const e=r._parseResult(d);return et(Ve,{type:We,content:e}),Promise.resolve(e)});var d},e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDBæªåå§åï¼è¯·å¨webæ§å¶å°ä¿å䏿¬¡schema以å¼å¯clientDB"),a(new rt({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId}))))}}const In="tokenæ æï¼è·³è½¬ç»å½é¡µé¢",Sn="tokenè¿æï¼è·³è½¬ç»å½é¡µé¢",Pn={TOKEN_INVALID_TOKEN_EXPIRED:Sn,TOKEN_INVALID_INVALID_CLIENTID:In,TOKEN_INVALID:In,TOKEN_INVALID_WRONG_TOKEN:In,TOKEN_INVALID_ANONYMOUS_USER:In},An={"uni-id-token-expired":Sn,"uni-id-check-token-failed":In,"uni-id-token-not-exist":In,"uni-id-check-device-feature-failed":In},Cn={...Pn,...An,default:"ç¨æ·æªç»å½æç»å½ç¶æè¿æï¼èªå¨è·³è½¬ç»å½é¡µé¢"};function On(e,t){let s="";return s=e?`${e}/${t}`:t,s.replace(/^\//,"")}function Fn(e=[],t=""){const s=[],n=[];return e.forEach(e=>{!0===e.needLogin?s.push(On(t,e.path)):!1===e.needLogin&&n.push(On(t,e.path))}),{needLoginPage:s,notNeedLoginPage:n}}function Ln(e){return e.split("?")[0].replace(/^\//,"")}function En(){return function(e){let t=e&&e.$page&&e.$page.fullPath;return t?("/"!==t.charAt(0)&&(t="/"+t),t):""}(function(){const e=s();return e[e.length-1]}())}function Un(){return Ln(En())}function Rn(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const s=t.list,n=Ln(e);return s.some(e=>e.pagePath===n)}const Dn=!!ae.uniIdRouter,{loginPage:Nn,routerNeedLogin:Mn,resToLogin:Bn,needLoginPage:$n,notNeedLoginPage:qn,loginPageInTabBar:jn}=function({pages:e=[],subPackages:t=[],uniIdRouter:s={},tabBar:n={}}=ae){const{loginPage:i,needLogin:r=[],resToLogin:o=!0}=s,{needLoginPage:a,notNeedLoginPage:c}=Fn(e),{needLoginPage:l,notNeedLoginPage:u}=function(e=[]){const t=[],s=[];return e.forEach(e=>{const{root:n,pages:i=[]}=e,{needLoginPage:r,notNeedLoginPage:o}=Fn(i,n);t.push(...r),s.push(...o)}),{needLoginPage:t,notNeedLoginPage:s}}(t);return{loginPage:i,routerNeedLogin:r,resToLogin:o,needLoginPage:[...a,...l],notNeedLoginPage:[...c,...u],loginPageInTabBar:Rn(i,n)}}();if($n.indexOf(Nn)>-1)throw new Error(`Login page [${Nn}] should not be "needLogin", please check your pages.json`);function Kn(e){const t=Un();if("/"===e.charAt(0))return e;const[s,n]=e.split("?"),i=s.replace(/^\//,"").split("/"),r=t.split("/");r.pop();for(let o=0;o<i.length;o++){const e=i[o];".."===e?r.pop():"."!==e&&r.push(e)}return""===r[0]&&r.shift(),"/"+r.join("/")+(n?"?"+n:"")}function zn({redirect:e}){const t=Ln(e),s=Ln(Nn);return Un()!==s&&t!==s}function Vn({api:e,redirect:t}={}){if(!t||!zn({redirect:t}))return;const s=(i=t,"/"!==(n=Nn).charAt(0)&&(n="/"+n),i?n.indexOf("?")>-1?n+`&uniIdRedirectUrl=${encodeURIComponent(i)}`:n+`?uniIdRedirectUrl=${encodeURIComponent(i)}`:n);var n,i;jn?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const r={navigateTo:v,redirectTo:w,switchTab:T,reLaunch:k};setTimeout(()=>{r[e]({url:s})},0)}function Hn({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},s=function(){const{token:e,tokenExpired:t}=ct();let s;if(e){if(t<Date.now()){const e="uni-id-token-expired";s={errCode:e,errMsg:Cn[e]}}}else{const e="uni-id-check-token-failed";s={errCode:e,errMsg:Cn[e]}}return s}();if(function(e){const t=Ln(Kn(e));return!(qn.indexOf(t)>-1)&&($n.indexOf(t)>-1||Mn.some(t=>{return s=e,new RegExp(t).test(s);var s}))}(e)&&s){if(s.uniIdRedirectUrl=e,Ye(He).length>0)return setTimeout(()=>{et(He,s)},0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Jn(){!function(){const e=En(),{abortLoginPageJump:t,autoToLoginPage:s}=Hn({url:e});t||s&&Vn({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const s=e[t];n(s,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:n}=Hn({url:e.url});return t?e:n?(Vn({api:s,redirect:Kn(e.url)}),!1):e}})}}function Wn(){this.onResponse(e=>{const{type:t,content:s}=e;let n=!1;switch(t){case"cloudobject":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Cn}(s);break;case"clientdb":n=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in Pn}(s)}n&&function(e={}){const t=Ye(He);nt().then(()=>{const s=En();if(s&&zn({redirect:s}))return t.length>0?et(He,Object.assign({uniIdRedirectUrl:s},e)):void(Nn&&Vn({api:"navigateTo",redirect:s}))})}(s)})}function Gn(e){var t;(t=e).onResponse=function(e){Xe(Ve,e)},t.offResponse=function(e){Ze(Ve,e)},function(e){e.onNeedLogin=function(e){Xe(He,e)},e.offNeedLogin=function(e){Ze(He,e)},Dn&&(De(nn).needLoginInit||(De(nn).needLoginInit=!0,nt().then(()=>{Jn.call(e)}),Bn&&Wn.call(e)))}(e),function(e){e.onRefreshToken=function(e){Xe(Je,e)},e.offRefreshToken=function(e){Ze(Je,e)}}(e)}let Qn;const Yn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Xn=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Zn(){const e=ct().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let s;try{s=JSON.parse((n=t[1],decodeURIComponent(Qn(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))))}catch(i){throw new Error("è·åå½åç¨æ·ä¿¡æ¯åºéï¼è¯¦ç»é误信æ¯ä¸ºï¼"+i.message)}var n;return s.tokenExpired=1e3*s.exp,delete s.exp,delete s.iat,s}Qn="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Xn.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var s,n,i="",r=0;r<e.length;)t=Yn.indexOf(e.charAt(r++))<<18|Yn.indexOf(e.charAt(r++))<<12|(s=Yn.indexOf(e.charAt(r++)))<<6|(n=Yn.indexOf(e.charAt(r++))),i+=64===s?String.fromCharCode(t>>16&255):64===n?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return i}:atob;var ei=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(ce(function(s,n){Object.defineProperty(n,"__esModule",{value:!0});const r="chooseAndUploadFile:ok",o="chooseAndUploadFile:fail";function a(e,t){return e.tempFiles.forEach((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function c(e,t,{onChooseFile:s,onUploadProgress:n}){return t.then(e=>{if(s){const t=s(e);if(void 0!==t)return Promise.resolve(t).then(t=>void 0===t?e:t)}return e}).then(t=>!1===t?{errMsg:r,tempFilePaths:[],tempFiles:[]}:function(e,t,s=5,n){(t=Object.assign({},t)).errMsg=r;const i=t.tempFiles,o=i.length;let a=0;return new Promise(r=>{for(;a<s;)c();function c(){const s=a++;if(s>=o)return void(!i.find(e=>!e.url&&!e.errMsg)&&r(t));const l=i[s];e.uploadFile({provider:l.provider,filePath:l.path,cloudPath:l.cloudPath,fileType:l.fileType,cloudPathAsRealPath:l.cloudPathAsRealPath,onUploadProgress(e){e.index=s,e.tempFile=l,e.tempFilePath=l.path,n&&n(e)}}).then(e=>{l.url=e.fileID,s<o&&c()}).catch(e=>{l.errMsg=e.errMsg||e.message,s<o&&c()})}})}(e,t,5,n))}n.initChooseAndUploadFile=function(s){return function(n={type:"all"}){return"image"===n.type?c(s,function(t){const{count:s,sizeType:n,sourceType:i=["album","camera"],extension:r}=t;return new Promise((t,c)=>{e({count:s,sizeType:n,sourceType:i,extension:r,success(e){t(a(e,"image"))},fail(e){c({errMsg:e.errMsg.replace("chooseImage:fail",o)})}})})}(n),n):"video"===n.type?c(s,function(e){const{camera:s,compressed:n,maxDuration:i,sourceType:r=["album","camera"],extension:c}=e;return new Promise((e,l)=>{t({camera:s,compressed:n,maxDuration:i,sourceType:r,extension:c,success(t){const{tempFilePath:s,duration:n,size:i,height:r,width:o}=t;e(a({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",o)})}})})}(n),n):c(s,function(e){const{count:t,extension:s}=e;return new Promise((e,n)=>{let r=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return n({errMsg:o+" 请æå® type ç±»åï¼è¯¥å¹³å°ä»
æ¯æéæ© image æ videoã"});r({type:"all",count:t,extension:s,success(t){e(a(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",o)})}})})}(n),n)}}}));const ti="manual";function si(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch(()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach(t=>{e.push(this[t])}),e},(e,t)=>{if(this.loadtime===ti)return;let s=!1;const n=[];for(let i=2;i<e.length;i++)e[i]!==t[i]&&(n.push(e[i]),s=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(s,n)})},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:s}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then(s=>{this.mixinDatacomLoading=!1;const{data:n,count:i}=s.result;this.getcount&&(this.mixinDatacomPage.count=i),this.mixinDatacomHasMore=n.length<this.pageSize;const r=e?n.length?n[0]:void 0:n;this.mixinDatacomResData=r,t&&t(r)}).catch(e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,s&&s(e)}))},mixinDatacomGet(t={}){let s;t=t||{},s="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const n=t.action||this.action;n&&(s=s.action(n));const i=t.collection||this.collection;s=Array.isArray(i)?s.collection(...i):s.collection(i);const r=t.where||this.where;r&&Object.keys(r).length&&(s=s.where(r));const o=t.field||this.field;o&&(s=s.field(o));const a=t.foreignKey||this.foreignKey;a&&(s=s.foreignKey(a));const c=t.groupby||this.groupby;c&&(s=s.groupBy(c));const l=t.groupField||this.groupField;l&&(s=s.groupField(l)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(s=s.distinct());const u=t.orderby||this.orderby;u&&(s=s.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,g=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,m={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(m.getTree=y),g&&(m.getTreePath=y),s=s.skip(h*(d-1)).limit(h).get(m),s}}}}function ni(e){return De("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function ii({openid:e,callLoginByWeixin:t=!1}={}){throw ni(this),new Error(`[SecureNetwork] API \`initSecureNetworkByWeixin\` is not supported on platform \`${Fe}\``)}async function ri(e){const t=ni(this);return t.initPromise||(t.initPromise=ii.call(this,e).then(e=>e).catch(e=>{throw delete t.initPromise,e})),t.initPromise}function oi(e){ft=e}function ai(e){const t={getAppBaseInfo:b,getPushClientId:x};return function(s){return new Promise((n,i)=>{t[e]({...s,success(e){n(e)},fail(e){i(e)}})})}}class ci extends Ae{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([ai("getAppBaseInfo")(),ai("getPushClientId")()]).then(([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()},e=>{throw this.emit("error",e),this.close(),e})}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:s,messageId:n,message:i}=t;this._payloadQueue.push({action:s,messageId:n,message:i}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find(e=>e.messageId===this._currentMessageId+1);if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:s,message:n}=e;"end"===t?this._end({messageId:s,message:n}):"message"===t&&this._appendMessage({messageId:s,message:n})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){l(this._uniPushMessageCallback)}_destroy(){u(this._uniPushMessageCallback)}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const li={tcb:Us,tencent:Us,aliyun:wt,private:Ms,dcloud:Ms,alipay:Ws};let ui=new class{init(e){let t={};const s=li[e.provider];if(!s)throw new Error("æªæä¾æ£ç¡®çprovideråæ°");var n;return t=s.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new Pe({createPromise:function(){let t=Promise.resolve();t=new Promise(e=>{setTimeout(()=>{e()},1)});const s=e.auth();return t.then(()=>s.getLoginState()).then(e=>e?Promise.resolve():s.signInAnonymously())}}))}(t),dn(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(n=t).database=function(e){if(e&&Object.keys(e).length>0)return n.init(e).database();if(this._database)return this._database;const t=bn(xn,{uniClient:n});return this._database=t,t},n.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return n.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=bn(xn,{uniClient:n,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=Zn,e.chooseAndUploadFile=ei.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return si(e)}}),e.SSEChannel=ci,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:s=!1}={}){return ri.call(e,{openid:t,callLoginByWeixin:s})}}(e),e.setCustomClientInfo=oi,e.importObject=function(t){return function(s,n={}){n=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"å è½½ä¸...",mask:!0},errorOptions:{type:"modal",retry:!1}},n);const{customUI:i,loadingOptions:l,errorOptions:u,parseSystemError:d}=n,h=!i;return new Proxy({},{get(i,p){switch(p){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:s}={}){return async function(...n){const i=s?s({params:n}):{};let r,o;try{return await qe(je(t,"invoke"),{...i}),r=await e(...n),await qe(je(t,"success"),{...i,result:r}),r}catch(a){throw o=a,await qe(je(t,"fail"),{...i,error:o}),o}finally{await qe(je(t,"complete"),o?{...i,error:o}:{...i,result:r})}}}({fn:async function i(...f){let g;h&&r({title:l.title,mask:l.mask});const m={name:s,type:ye,data:{method:p,params:f}};"object"==typeof n.secretMethods&&function(e,t){const s=t.data.method,n=e.secretMethods||{},i=n[s]||n["*"];i&&(t.secretType=i)}(n,m);let y=!1;try{g=await t.callFunction(m)}catch(e){y=!0,g={result:new rt(e)}}const{errSubject:_,errCode:v,errMsg:w,newToken:T}=g.result||{};if(h&&o(),T&&T.token&&T.tokenExpired&&(lt(T),et(Je,{...T})),v){let e=w;if(y&&d&&(e=(await d({objectName:s,methodName:p,params:f,errSubject:_,errCode:v,errMsg:w})).errMsg||w),h)if("toast"===u.type)a({title:e,icon:"none"});else{if("modal"!==u.type)throw new Error(`Invalid errorOptions.type: ${u.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:s,cancelText:n,confirmText:i}={}){return new Promise((r,o)=>{c({title:e,content:t,showCancel:s,cancelText:n,confirmText:i,success(e){r(e)},fail(){r({confirm:!1,cancel:!0})}})})}({title:"æç¤º",content:e,showCancel:u.retry,cancelText:"åæ¶",confirmText:u.retry?"éè¯":"ç¡®å®"});if(u.retry&&t)return i(...f)}}const t=new rt({subject:_,code:v,message:w,requestId:g.requestId});throw t.detail=g.result,et(Ve,{type:Qe,content:t}),t}return et(Ve,{type:Qe,content:g.result}),g.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:s,methodName:p,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach(e=>{if(!t[e])return;const s=t[e];t[e]=function(){return s.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(s){let n=!1;if("callFunction"===t){const e=s&&s.type||me;n=e!==me}const i="callFunction"===t&&!n,r=this._initPromiseHub.exec();s=s||{};const{success:o,fail:a,complete:c}=it(s),l=r.then(()=>n?Promise.resolve():qe(je(t,"invoke"),s)).then(()=>e.call(this,s)).then(e=>n?Promise.resolve(e):qe(je(t,"success"),e).then(()=>qe(je(t,"complete"),e)).then(()=>(i&&et(Ve,{type:Ge,content:e}),Promise.resolve(e))),e=>n?Promise.reject(e):qe(je(t,"fail"),e).then(()=>qe(je(t,"complete"),e)).then(()=>(et(Ve,{type:Ge,content:e}),Promise.reject(e))));if(!(o||a||c))return l;l.then(e=>{o&&o(e),c&&c(e),i&&et(Ve,{type:Ge,content:e})},e=>{a&&a(e),c&&c(e),i&&et(Ve,{type:Ge,content:e})})}}(t[e],e).bind(t)}),t.init=this.init,t}};(()=>{const e=Le;let t={};if(e&&1===e.length)t=e[0],ui=ui.init(t),ui._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile"],s=["database","getCurrentUserInfo","importObject"];let n;n=e&&e.length>0?"åºç¨æå¤ä¸ªæå¡ç©ºé´ï¼è¯·éè¿uniCloud.initæ¹æ³æå®è¦ä½¿ç¨çæå¡ç©ºé´":"åºç¨æªå
³èæå¡ç©ºé´ï¼è¯·å¨uniCloudç®å½å³é®å
³èæå¡ç©ºé´",[...t,...s].forEach(e=>{ui[e]=function(){if(console.error(n),-1===s.indexOf(e))return Promise.reject(new rt({code:"SYS_ERR",message:n}));console.error(n)}})}Object.assign(ui,{get mixinDatacom(){return si(ui)}}),Gn(ui),ui.addInterceptor=Be,ui.removeInterceptor=$e,ui.interceptObject=Ke;{const e=Ue||(Ue=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;function e(){return this}return void 0!==e()?e():new Function("return this")()}(),Ue);e.uniCloud=ui,e.UniCloudError=rt}})();var di=ui;const hi="chooseAndUploadFile:fail";function pi(e,t){return e.tempFiles.forEach((e,s)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+s+e.name.substring(e.name.lastIndexOf("."))}),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map(e=>e.path)),e}function fi(e,t=5,s){const n=(e=JSON.parse(JSON.stringify(e))).length;let i=0,r=this;return new Promise(o=>{for(;i<t;)a();function a(){let t=i++;if(t>=n)return void(!e.find(e=>!e.url&&!e.errMsg)&&o(e));const c=e[t],l=r.files.findIndex(e=>e.uuid===c.uuid);c.url="",delete c.errMsg,di.uploadFile({filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,onUploadProgress:e=>{e.index=l,s&&s(e)}}).then(e=>{c.url=e.fileID,c.index=l,t<n&&a()}).catch(e=>{c.errMsg=e.errMsg||e.message,c.index=l,t<n&&a()})}})}function gi(e,{onChooseFile:t,onUploadProgress:s}){return e.then(e=>{if(t){const s=t(e);if(void 0!==s)return Promise.resolve(s).then(t=>void 0===t?e:t)}return e}).then(e=>!1===e?{errMsg:"chooseAndUploadFile:ok",tempFilePaths:[],tempFiles:[]}:e)}function mi(s={type:"all"}){return"image"===s.type?gi(function(t){const{count:s,sizeType:n=["original","compressed"],sourceType:i,extension:r}=t;return new Promise((t,o)=>{e({count:s,sizeType:n,sourceType:i,extension:r,success(e){t(pi(e,"image"))},fail(e){o({errMsg:e.errMsg.replace("chooseImage:fail",hi)})}})})}(s),s):"video"===s.type?gi(function(e){const{count:s,camera:n,compressed:i,maxDuration:r,sourceType:o,extension:a}=e;return new Promise((e,s)=>{t({camera:n,compressed:i,maxDuration:r,sourceType:o,extension:a,success(t){const{tempFilePath:s,duration:n,size:i,height:r,width:o}=t;e(pi({errMsg:"chooseVideo:ok",tempFilePaths:[s],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:s,size:i,type:t.tempFile&&t.tempFile.type||"",width:o,height:r,duration:n,fileType:"video",cloudPath:""}]},"video"))},fail(e){s({errMsg:e.errMsg.replace("chooseVideo:fail",hi)})}})})}(s),s):gi(function(e){const{count:t,extension:s}=e;return new Promise((e,n)=>{let r=i;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(r=wx.chooseMessageFile),"function"!=typeof r)return n({errMsg:hi+" 请æå® type ç±»åï¼è¯¥å¹³å°ä»
æ¯æéæ© image æ videoã"});r({type:"all",count:t,extension:s,success(t){e(pi(t))},fail(e){n({errMsg:e.errMsg.replace("chooseFile:fail",hi)})}})})}(s),s)}const yi=e=>{const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},_i=e=>{if(Array.isArray(e))return e;return e.replace(/(\[|\])/g,"").split(",")},vi=async(e,t="image")=>{const s=yi(e.name).ext.toLowerCase();let n={name:e.name,uuid:e.uuid,extname:s||"",cloudPath:e.cloudPath,fileType:e.fileType,thumbTempFilePath:e.thumbTempFilePath,url:e.path||e.path,size:e.size,image:{},path:e.path,video:{}};if("image"===t){const t=await(i=e.path,new Promise((e,t)=>{P({src:i,success(t){e(t)},fail(e){t(e)}})}));delete n.video,n.image.width=t.width,n.image.height=t.height,n.image.location=t.path}else delete n.image;var i;return n};const wi=A({name:"uniFilePicker",components:{uploadImage:A({name:"uploadImage",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},limit:{type:[Number,String],default:9},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto",border:{}})},delIcon:{type:Boolean,default:!0},readonly:{type:Boolean,default:!1}},computed:{styles(){return Object.assign({width:"auto",height:"auto",border:{}},this.imageStyles)},boxStyle(){const{width:e="auto",height:t="auto"}=this.styles;let s={};"auto"===t?"auto"!==e?(s.height=this.value2px(e),s["padding-top"]=0):s.height=0:(s.height=this.value2px(t),s["padding-top"]=0),s.width="auto"===e?"auto"!==t?this.value2px(t):"33.3%":this.value2px(e);let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderStyle(){let{border:e}=this.styles,t={};if("boolean"==typeof e)t.border=e?"1px #eee solid":"none";else{let s=e&&e.width||1;s=this.value2px(s);let n=e&&e.radius||3;n=this.value2px(n),t={"border-width":s,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}let s="";for(let n in t)s+=`${n}:${t[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",e)},choose(){this.readonly||this.$emit("choose")},delFile(e){this.readonly||this.$emit("delFile",e)},prviewImage(e,t){if(this.readonly)return;let s=[];1===Number(this.limit)&&this.disablePreview&&!this.disabled&&this.$emit("choose"),this.disablePreview||(this.filesList.forEach(e=>{s.push(e.url)}),C({urls:s,current:t}))},value2px:e=>("number"==typeof e?e+="px":-1===e.indexOf("%")&&(e=-1!==e.indexOf("px")?e:e+"px"),e)}},[["render",function(e,t,s,n,i,r){const o=j,a=K,c=z;return O(),F(a,{class:"uni-file-picker__container"},{default:L(()=>[(O(!0),E(U,null,R(s.filesList,(e,t)=>(O(),F(a,{class:"file-picker__box",key:t,style:D(r.boxStyle)},{default:L(()=>[N(a,{class:"file-picker__box-content",style:D(r.borderStyle)},{default:L(()=>[N(o,{class:"file-image",src:e.url,mode:"aspectFill",onClick:M(s=>r.prviewImage(e,t),["stop"])},null,8,["src","onClick"]),s.delIcon&&!s.readonly?(O(),F(a,{key:0,class:"icon-del-box",onClick:M(e=>r.delFile(t),["stop"])},{default:L(()=>[N(a,{class:"icon-del"}),N(a,{class:"icon-del rotate"})]),_:2},1032,["onClick"])):B("",!0),e.progress&&100!==e.progress||0===e.progress?(O(),F(a,{key:1,class:"file-picker__progress"},{default:L(()=>[N(c,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])]),_:2},1024)):B("",!0),e.errMsg?(O(),F(a,{key:2,class:"file-picker__mask",onClick:M(s=>r.uploadFiles(e,t),["stop"])},{default:L(()=>[$(" ç¹å»éè¯ ")]),_:2},1032,["onClick"])):B("",!0)]),_:2},1032,["style"])]),_:2},1032,["style"]))),128)),s.filesList.length<s.limit?(O(),F(a,{key:0,class:"file-picker__box",style:D(r.boxStyle)},{default:L(()=>[N(a,{class:"file-picker__box-content is-add",style:D(r.borderStyle),onClick:r.choose},{default:L(()=>[q(e.$slots,"default",{},void 0,!0)]),_:3},8,["style","onClick"])]),_:3},8,["style"])):B("",!0)]),_:3})}],["__scopeId","data-v-423cbc90"]]),uploadFile:A({name:"uploadFile",emits:["uploadFiles","choose","delFile"],props:{filesList:{type:Array,default:()=>[]},delIcon:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},showType:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},readonly:{type:Boolean,default:!1}},computed:{list(){let e=[];return this.filesList.forEach(t=>{e.push(t)}),e},styles(){return Object.assign({border:!0,dividline:!0,"border-style":{}},this.listStyles)},borderStyle(){let{borderStyle:e,border:t}=this.styles,s={};if(t){let t=e&&e.width||1;t=this.value2px(t);let n=e&&e.radius||5;n=this.value2px(n),s={"border-width":t,"border-style":e&&e.style||"solid","border-color":e&&e.color||"#eee","border-radius":n}}else s.border="none";let n="";for(let i in s)n+=`${i}:${s[i]};`;return n},borderLineStyle(){let e={},{borderStyle:t}=this.styles;if(t&&t.color&&(e["border-color"]=t.color),t&&t.width){let s=t&&t.width||1,n=t&&t.style||0;"number"==typeof s?s+="px":s=s.indexOf("px")?s:s+"px",e["border-width"]=s,"number"==typeof n?n+="px":n=n.indexOf("px")?n:n+"px",e["border-top-style"]=n}let s="";for(let n in e)s+=`${n}:${e[n]};`;return s}},methods:{uploadFiles(e,t){this.$emit("uploadFiles",{item:e,index:t})},choose(){this.$emit("choose")},delFile(e){this.$emit("delFile",e)},value2px:e=>("number"==typeof e?e+="px":e=-1!==e.indexOf("px")?e:e+"px",e)}},[["render",function(e,t,s,n,i,r){const o=K,a=z;return O(),F(o,{class:"uni-file-picker__files"},{default:L(()=>[s.readonly?B("",!0):(O(),F(o,{key:0,class:"files-button",onClick:r.choose},{default:L(()=>[q(e.$slots,"default",{},void 0,!0)]),_:3},8,["onClick"])),r.list.length>0?(O(),F(o,{key:1,class:"uni-file-picker__lists is-text-box",style:D(r.borderStyle)},{default:L(()=>[(O(!0),E(U,null,R(r.list,(e,t)=>(O(),F(o,{class:V(["uni-file-picker__lists-box",{"files-border":0!==t&&r.styles.dividline}]),key:t,style:D(0!==t&&r.styles.dividline&&r.borderLineStyle)},{default:L(()=>[N(o,{class:"uni-file-picker__item"},{default:L(()=>[N(o,{class:"files__name"},{default:L(()=>[$(H(e.name),1)]),_:2},1024),s.delIcon&&!s.readonly?(O(),F(o,{key:0,class:"icon-del-box icon-files",onClick:e=>r.delFile(t)},{default:L(()=>[N(o,{class:"icon-del icon-files"}),N(o,{class:"icon-del rotate"})]),_:2},1032,["onClick"])):B("",!0)]),_:2},1024),e.progress&&100!==e.progress||0===e.progress?(O(),F(o,{key:0,class:"file-picker__progress"},{default:L(()=>[N(a,{class:"file-picker__progress-item",percent:-1===e.progress?0:e.progress,"stroke-width":"4",backgroundColor:e.errMsg?"#ff5a5f":"#EBEBEB"},null,8,["percent","backgroundColor"])]),_:2},1024)):B("",!0),"error"===e.status?(O(),F(o,{key:1,class:"file-picker__mask",onClick:M(s=>r.uploadFiles(e,t),["stop"])},{default:L(()=>[$(" ç¹å»éè¯ ")]),_:2},1032,["onClick"])):B("",!0)]),_:2},1032,["class","style"]))),128))]),_:1},8,["style"])):B("",!0)]),_:3})}],["__scopeId","data-v-14279b92"]])},options:{virtualHost:!0},emits:["select","success","fail","progress","delete","update:modelValue","input"],props:{modelValue:{type:[Array,Object],default:()=>[]},value:{type:[Array,Object],default:()=>[]},disabled:{type:Boolean,default:!1},disablePreview:{type:Boolean,default:!1},delIcon:{type:Boolean,default:!0},autoUpload:{type:Boolean,default:!0},limit:{type:[Number,String],default:9},mode:{type:String,default:"grid"},fileMediatype:{type:String,default:"image"},fileExtname:{type:[Array,String],default:()=>[]},title:{type:String,default:""},listStyles:{type:Object,default:()=>({border:!0,dividline:!0,borderStyle:{}})},imageStyles:{type:Object,default:()=>({width:"auto",height:"auto"})},readonly:{type:Boolean,default:!1},returnType:{type:String,default:"array"},sizeType:{type:Array,default:()=>["original","compressed"]},sourceType:{type:Array,default:()=>["album","camera"]},provider:{type:String,default:""},dir:{type:String,default:""}},data:()=>({files:[],localValue:[],dirPath:""}),watch:{value:{handler(e,t){this.setValue(e,t)},immediate:!0},modelValue:{handler(e,t){this.setValue(e,t)},immediate:!0},dir:{handler(e){this.dirPath=e},immediate:!0}},computed:{filesList(){let e=[];return this.files.forEach(t=>{e.push(t)}),e},showType(){return"image"===this.fileMediatype?this.mode:"list"},limitLength(){return"object"===this.returnType?1:this.limit?this.limit>=9?9:this.limit:1}},created(){di.config&&di.config.provider||(this.noSpace=!0,di.chooseAndUploadFile=mi),this.form=this.getForm("uniForms"),this.formItem=this.getForm("uniFormsItem"),this.form&&this.formItem&&this.formItem.name&&(this.rename=this.formItem.name,this.form.inputChildrens.push(this))},methods:{clearFiles(e){0===e||e?this.files.splice(e,1):(this.files=[],this.$nextTick(()=>{this.setEmit()})),this.$nextTick(()=>{this.setEmit()})},upload(){let e=[];return this.files.forEach((t,s)=>{"ready"!==t.status&&"error"!==t.status||e.push(Object.assign({},t))}),this.uploadFiles(e)},async setValue(e,t){const s=async e=>{let t="";return t=e.fileID?e.fileID:e.url,/cloud:\/\/([\w.]+\/?)\S*/.test(t)&&(e.fileID=t,e.url=await this.getTempFileURL(t)),e.url&&(e.path=e.url),e};if("object"===this.returnType)e?await s(e):e={};else{e||(e=[]);for(let t=0;t<e.length;t++){let n=e[t];await s(n)}}this.localValue=e,this.form&&this.formItem&&!this.is_reset&&(this.is_reset=!1,this.formItem.setValue(this.localValue));let n=Object.keys(e).length>0?e:[];this.files=[].concat(n)},choose(){this.disabled||(this.files.length>=Number(this.limitLength)&&"grid"!==this.showType&&"array"===this.returnType?a({title:`æ¨æå¤éæ© ${this.limitLength} 个æä»¶`,icon:"none"}):this.chooseFiles())},chooseFiles(){const e=_i(this.fileExtname);di.chooseAndUploadFile({type:this.fileMediatype,compressed:!1,sizeType:this.sizeType,sourceType:this.sourceType,extension:e.length>0?e:void 0,count:this.limitLength-this.files.length,onChooseFile:this.chooseFileCallback,onUploadProgress:e=>{this.setProgress(e,e.index)}}).then(e=>{this.setSuccessAndError(e.tempFiles)}).catch(e=>{console.log("éæ©å¤±è´¥",e)})},async chooseFileCallback(e){const t=_i(this.fileExtname);(1===Number(this.limitLength)&&this.disablePreview&&!this.disabled||"object"===this.returnType)&&(this.files=[]);let{filePaths:s,files:n}=((e,t)=>{let s=[],n=[];return t&&0!==t.length?(e.tempFiles.forEach(e=>{const i=yi(e.name).ext.toLowerCase();-1!==t.indexOf(i)&&(n.push(e),s.push(e.path))}),n.length!==e.tempFiles.length&&a({title:`å½åéæ©äº${e.tempFiles.length}个æä»¶ ï¼${e.tempFiles.length-n.length} 个æä»¶æ ¼å¼ä¸æ£ç¡®`,icon:"none",duration:5e3}),{filePaths:s,files:n}):{filePaths:s,files:n}})(e,t);t&&t.length>0||(s=e.tempFilePaths,n=e.tempFiles);let i=[];for(let r=0;r<n.length&&!(this.limitLength-this.files.length<=0);r++){n[r].uuid=Date.now();let e=await vi(n[r],this.fileMediatype);e.progress=0,e.status="ready";let t={...e,file:n[r]};this.files.push(t),i.push(t)}return this.$emit("select",{tempFiles:i,tempFilePaths:s}),e.tempFiles=n,this.autoUpload&&!this.noSpace||(e.tempFiles=[]),e.tempFiles.map((e,t)=>{this.provider&&(e.provider=this.provider);const s=e.name.split("."),n=s.pop(),i=s.join(".").replace(/[\s\/\?<>\\:\*\|":]/g,"_");let r=this.dirPath||"";return r&&"/"!==r[r.length-1]&&(r+="/"),e.cloudPath=r+i+"_"+Date.now()+"_"+t+"."+n,e.cloudPathAsRealPath=!0,e}),e},uploadFiles(e){return e=[].concat(e),fi.call(this,e,5,e=>{this.setProgress(e,e.index,!0)}).then(e=>(this.setSuccessAndError(e),e)).catch(e=>{console.log(e)})},async setSuccessAndError(e,t){let s=[],n=[],i=[],r=[];for(let o=0;o<e.length;o++){const t=e[o],a=t.uuid?this.files.findIndex(e=>e.uuid===t.uuid):t.index;if(-1===a||!this.files)break;if("request:fail"===t.errMsg)this.files[a].url=t.path,this.files[a].status="error",this.files[a].errMsg=t.errMsg,n.push(this.files[a]),r.push(this.files[a].url);else{this.files[a].errMsg="",this.files[a].fileID=t.url;/cloud:\/\/([\w.]+\/?)\S*/.test(t.url)?this.files[a].url=await this.getTempFileURL(t.url):this.files[a].url=t.url,this.files[a].status="success",this.files[a].progress+=1,s.push(this.files[a]),i.push(this.files[a].fileID)}}s.length>0&&(this.setEmit(),this.$emit("success",{tempFiles:this.backObject(s),tempFilePaths:i})),n.length>0&&this.$emit("fail",{tempFiles:this.backObject(n),tempFilePaths:r})},setProgress(e,t,s){this.files.length;const n=Math.round(100*e.loaded/e.total);let i=t;s||(i=this.files.findIndex(t=>t.uuid===e.tempFile.uuid)),-1!==i&&this.files[i]&&(this.files[i].progress=n-1,this.$emit("progress",{index:i,progress:parseInt(n),tempFile:this.files[i]}))},delFile(e){this.$emit("delete",{index:e,tempFile:this.files[e],tempFilePath:this.files[e].url}),this.files.splice(e,1),this.$nextTick(()=>{this.setEmit()})},getFileExt(e){const t=e.lastIndexOf("."),s=e.length;return{name:e.substring(0,t),ext:e.substring(t+1,s)}},setEmit(){let e=[];"object"===this.returnType?(e=this.backObject(this.files)[0],this.localValue=e||null):(e=this.backObject(this.files),this.localValue||(this.localValue=[]),this.localValue=[...e]),this.$emit("update:modelValue",this.localValue)},backObject(e){let t=[];return e.forEach(e=>{t.push({extname:e.extname,fileType:e.fileType,image:e.image,name:e.name,path:e.path,size:e.size,fileID:e.fileID,url:e.url,uuid:e.uuid,status:e.status,cloudPath:e.cloudPath})}),t},async getTempFileURL(e){e={fileList:[].concat(e)};return(await di.getTempFileURL(e)).fileList[0].tempFileURL||""},getForm(e="uniForms"){let t=this.$parent,s=t.$options.name;for(;s!==e;){if(t=t.$parent,!t)return!1;s=t.$options.name}return t}}},[["render",function(e,t,s,n,i,r){const o=W,a=K,c=J("upload-image"),l=G,u=J("upload-file");return O(),F(a,{class:"uni-file-picker"},{default:L(()=>[s.title?(O(),F(a,{key:0,class:"uni-file-picker__header"},{default:L(()=>[N(o,{class:"file-title"},{default:L(()=>[$(H(s.title),1)]),_:1}),N(o,{class:"file-count"},{default:L(()=>[$(H(r.filesList.length)+"/"+H(r.limitLength),1)]),_:1})]),_:1})):B("",!0),"image"===s.fileMediatype&&"grid"===r.showType?(O(),F(c,{key:1,readonly:s.readonly,"image-styles":s.imageStyles,"files-list":r.filesList,limit:r.limitLength,disablePreview:s.disablePreview,delIcon:s.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:L(()=>[q(e.$slots,"default",{},()=>[N(a,{class:"icon-add"}),N(a,{class:"icon-add rotate"})],!0)]),_:3},8,["readonly","image-styles","files-list","limit","disablePreview","delIcon","onUploadFiles","onChoose","onDelFile"])):B("",!0),"image"!==s.fileMediatype||"grid"!==r.showType?(O(),F(u,{key:2,readonly:s.readonly,"list-styles":s.listStyles,"files-list":r.filesList,showType:r.showType,delIcon:s.delIcon,onUploadFiles:r.uploadFiles,onChoose:r.choose,onDelFile:r.delFile},{default:L(()=>[q(e.$slots,"default",{},()=>[N(l,{type:"primary",size:"mini"},{default:L(()=>[$("éæ©æä»¶")]),_:1})],!0)]),_:3},8,["readonly","list-styles","files-list","showType","delIcon","onUploadFiles","onChoose","onDelFile"])):B("",!0)]),_:3})}],["__scopeId","data-v-5d4d501e"]]),Ti={__name:"index",props:{files:{type:Array,default:()=>[]},gradesFiles:{type:Array,default:()=>[]},readonly:{type:Boolean,default:!1},position:{type:Object,default:()=>({right:"30rpx",bottom:"200rpx"})},bgColor:{type:String,default:"#67AFAB"},maxCount:{type:Number,default:9},showGradeSlip:{type:Boolean,default:!1},isGradeRequired:{type:Boolean,default:!1}},emits:["update:files","update:gradesFiles","upload","preview","upload-grade","upload-base"],setup(e,{expose:t,emit:s}){const n=Q(),i=e,c=s,l=Y(null),u=Y(null),d=Y([]),p=Y([]),g=Y(!0),m=Y("#67AFAB"),y=n.baseUrlHt,_=Y("base"),v=X(()=>i.showGradeSlip?"base"===_.value?d.value:p.value:d.value),w=X(()=>d.value.length+p.value.length);Z(()=>i.files,e=>{d.value=[...e]},{immediate:!0}),Z(()=>i.gradesFiles,e=>{p.value=[...e]},{immediate:!0});const T=e=>e?e.startsWith("http://")||e.startsWith("https://")?e:`${y}${e.startsWith("/")?"":"/"}${e}`:"",k={width:120,height:120,border:!1},b=["image/jpeg","image/png","image/gif","image/webp","image/bmp","image/svg+xml"],x=e=>{g.value=!e.show},I=e=>e&&b.includes(e)?"image":e&&e.includes("pdf")?"paperclip":e&&e.includes("word")?"file-word":e&&e.includes("excel")?"file-excel":e&&e.includes("powerpoint")?"file-ppt":"file",S=e=>e&&b.includes(e)?m.value:e&&e.includes("pdf")?"#ff4d4f":e&&e.includes("word")?"#2b579a":e&&e.includes("excel")?"#217346":e&&e.includes("powerpoint")?"#b7472a":"#666",P=e=>e?e<1024?`${e}B`:e<1048576?`${(e/1024).toFixed(1)}KB`:`${(e/1048576).toFixed(1)}MB`:"",A=()=>{l.value&&l.value.open()},M=()=>{l.value&&l.value.close()},q=()=>{var e;null==(e=u.value)||e.choose()},j=e=>{if(!e)return"application/octet-stream";return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp",bmp:"image/bmp",SVG:"image/svg+xml",pdf:"application/pdf"}[e.split(".").pop().toLowerCase()]||"application/octet-stream"},z=e=>{const t=i.showGradeSlip&&"grade"===_.value,s=t?p.value:d.value,n=e.tempFiles.filter(e=>{const t=e.name?e.name.split(".").pop().toLowerCase():"",s=b.includes(e.type)||["jpg","jpeg","png","gif","webp","bmp","svg"].includes(t),n=e.type&&e.type.includes("pdf")||"pdf"===t;return s||n}).map(e=>({name:e.name,url:e.path||e.url,type:e.type||j(e.name),size:e.size,file:e,status:"pending",attachmentType:t?"grade":"base"}));s.length+n.length>i.maxCount?a({title:`æå¤åªè½ä¸ä¼ ${i.maxCount}个æä»¶`,icon:"none"}):t?(p.value=[...p.value,...n],c("update:gradesFiles",p.value)):(d.value=[...d.value,...n],c("update:files",d.value))},J=()=>[...d.value,...p.value],ae=(e,t,s)=>{s&&s.stopPropagation(),"grade"===e?(p.value.splice(t,1),c("update:gradesFiles",p.value)):(d.value.splice(t,1),c("update:files",d.value))},ce=e=>{const t=T(e.url);if(e.type&&b.includes(e.type)){const e=J();C({urls:e.filter(e=>e.type&&b.includes(e.type)).map(e=>T(e.url)),current:t})}else e.type&&e.type.includes("pdf")?se({url:t,success:e=>{const t=e.tempFilePath;ne({filePath:t,fileType:"pdf",success:()=>console.log("æå¼PDFæå"),fail:e=>{console.error("æå¼PDF失败",e),a({title:"æå¼PDF失败",icon:"none"})}})},fail:e=>{console.error("ä¸è½½PDF失败",e),a({title:"ä¸è½½PDF失败",icon:"none"})}}):c("preview",e)},le=(e,t)=>new Promise((t,s)=>{const n=f("token");h({url:"/api/common/upload",filePath:e.path||e.url,name:"file",header:{Authorization:`Bearer ${n}`},success:e=>{if(200===e.statusCode){const n=JSON.parse(e.data);console.log(n,"æä»¶"),200===n.code?t({...n,fileName:n.fileName}):s(new Error(n.msg||"ä¸ä¼ 失败"))}else s(new Error(`ä¸ä¼ 失败ï¼ç¶æç : ${e.statusCode}`))},fail:e=>{s(e)}})}),ue=async()=>{if(i.showGradeSlip&&i.isGradeRequired&&0===p.value.length)return a({title:"请ä¸ä¼ æç»©åéä»¶",icon:"none"}),void(_.value="grade");if(0!==J().length){r({title:"ä¸ä¼ ä¸",mask:!0});try{const t=d.value.filter(e=>!e.url||"pending"===e.status),s=p.value.filter(e=>!e.url||"pending"===e.status);for(const n of t)try{n.status="uploading";const e=await le(n.file);Object.assign(n,{url:e.url,fileName:e.name,newFileName:e.newFileName,originalFilename:e.originalFilename,status:"success",size:e.size}),c("upload-base",n)}catch(e){console.error("ä¸ä¼ 失败:",e),n.status="error",a({title:`æä»¶ ${n.name} ä¸ä¼ 失败`,icon:"none"})}for(const n of s)try{n.status="uploading";const e=await le(n.file);Object.assign(n,{url:e.fileName,fileName:e.fileName,newFileName:e.newFileName,originalFilename:e.originalFilename,status:"success"}),c("upload-grade",n)}catch(e){console.error("æç»©åéä»¶ä¸ä¼ 失败:",e),n.status="error",a({title:`æä»¶ ${n.name} ä¸ä¼ 失败`,icon:"none"})}console.log(d.value,"1"),console.log(p.value,"2"),c("update:files",d.value),c("update:gradesFiles",p.value),a({title:"ä¸ä¼ 宿",icon:"success"}),M()}catch(e){console.error("ä¸ä¼ åºé:",e),a({title:"ä¸ä¼ åºé",icon:"none"})}finally{o()}}else a({title:"请å
æ·»å éä»¶",icon:"none"})};return t({getFilesByType:e=>"grade"===e?p.value:d.value,getAllFiles:J}),(t,s)=>{const n=W,i=K,r=ee(te("uni-icons"),re),o=ie,a=G,c=ee(te("uni-popup"),oe),h=ee(te("uni-file-picker"),wi);return O(),F(i,{class:"attachment-upload"},{default:L(()=>[N(i,{class:"attachment-btn",style:D({right:e.position.right,bottom:e.position.bottom,backgroundColor:e.bgColor,display:g.value?"flex":"none"}),onClick:A},{default:L(()=>[N(n,null,{default:L(()=>[$("éä»¶")]),_:1}),w.value>0?(O(),F(n,{key:0,class:"badge"},{default:L(()=>[$(H(w.value),1)]),_:1})):B("",!0)]),_:1},8,["style"]),N(c,{ref_key:"popup",ref:l,type:"bottom","safe-area":!1,onChange:x},{default:L(()=>[N(i,{class:"attachment-popup"},{default:L(()=>[N(i,{class:"popup-header"},{default:L(()=>[N(n,{class:"title"},{default:L(()=>[$("é件管ç")]),_:1}),e.readonly?B("",!0):(O(),F(r,{key:0,type:"plus",size:"24",color:m.value,onClick:q},null,8,["color"])),N(r,{type:"close",size:"24",color:"#999",onClick:M})]),_:1}),e.showGradeSlip?(O(),F(i,{key:0,class:"attachment-tabs"},{default:L(()=>[N(i,{class:V(["tab-item",{active:"base"===_.value}]),onClick:s[0]||(s[0]=e=>_.value="base")},{default:L(()=>[N(n,null,{default:L(()=>[$("åºç¡éä»¶")]),_:1})]),_:1},8,["class"]),N(i,{class:V(["tab-item",{active:"grade"===_.value}]),onClick:s[1]||(s[1]=e=>_.value="grade")},{default:L(()=>[N(n,null,{default:L(()=>[$("æç»©åéä»¶")]),_:1}),e.isGradeRequired?(O(),F(n,{key:0,class:"required-mark"},{default:L(()=>[$("*")]),_:1})):B("",!0)]),_:1},8,["class"])]),_:1})):B("",!0),N(o,{"scroll-y":"",class:"file-list"},{default:L(()=>["base"!==_.value&&e.showGradeSlip?B("",!0):(O(!0),E(U,{key:0},R(d.value,(t,s)=>(O(),F(i,{class:"file-item",key:"base-"+s},{default:L(()=>[N(i,{class:"file-icon",onClick:e=>ce(t)},{default:L(()=>[N(r,{type:I(t.type),size:"24",color:S(t.type)},null,8,["type","color"])]),_:2},1032,["onClick"]),N(i,{class:"file-info",onClick:e=>ce(t)},{default:L(()=>[N(n,{class:"file-name"},{default:L(()=>[$(H(t.originalFilename||t.name),1)]),_:2},1024),N(n,{class:"file-size"},{default:L(()=>[$(H(P(t.size)),1)]),_:2},1024),"uploading"===t.status?(O(),F(n,{key:0,class:"file-status"},{default:L(()=>[$("ä¸ä¼ ä¸...")]),_:1})):"error"===t.status?(O(),F(n,{key:1,class:"file-status error"},{default:L(()=>[$("ä¸ä¼ 失败")]),_:1})):B("",!0)]),_:2},1032,["onClick"]),e.readonly?B("",!0):(O(),F(r,{key:0,type:"trash",size:"20",color:"#ff4d4f",onClick:e=>ae("base",s,e)},null,8,["onClick"]))]),_:2},1024))),128)),"grade"===_.value&&e.showGradeSlip?(O(!0),E(U,{key:1},R(p.value,(t,s)=>(O(),F(i,{class:"file-item",key:"grade-"+s},{default:L(()=>[N(i,{class:"file-icon",onClick:e=>ce(t)},{default:L(()=>[N(r,{type:I(t.type),size:"24",color:S(t.type)},null,8,["type","color"])]),_:2},1032,["onClick"]),N(i,{class:"file-info",onClick:e=>ce(t)},{default:L(()=>[N(n,{class:"file-name"},{default:L(()=>[$(H(t.originalFilename||t.name),1)]),_:2},1024),N(n,{class:"file-size"},{default:L(()=>[$(H(P(t.size)),1)]),_:2},1024),"uploading"===t.status?(O(),F(n,{key:0,class:"file-status"},{default:L(()=>[$("ä¸ä¼ ä¸...")]),_:1})):"error"===t.status?(O(),F(n,{key:1,class:"file-status error"},{default:L(()=>[$("ä¸ä¼ 失败")]),_:1})):B("",!0)]),_:2},1032,["onClick"]),e.readonly?B("",!0):(O(),F(r,{key:0,type:"trash",size:"20",color:"#ff4d4f",onClick:e=>ae("grade",s,e)},null,8,["onClick"]))]),_:2},1024))),128)):B("",!0),0===v.value.length?(O(),F(i,{key:2,class:"empty"},{default:L(()=>[N(r,{type:"info",size:"24",color:"#999"}),"base"!==_.value&&e.showGradeSlip?"grade"===_.value?(O(),F(n,{key:1},{default:L(()=>[$("ææ æç»©åéä»¶")]),_:1})):B("",!0):(O(),F(n,{key:0},{default:L(()=>[$("ææ éä»¶")]),_:1}))]),_:1})):B("",!0)]),_:1}),e.readonly?B("",!0):(O(),F(i,{key:1,class:"popup-footer"},{default:L(()=>[N(a,{class:"btn",onClick:q},{default:L(()=>[$("æ·»å ")]),_:1}),N(a,{class:"btn primary",onClick:ue},{default:L(()=>[$("确认ä¸ä¼ ")]),_:1})]),_:1}))]),_:1})]),_:1},512),e.readonly?B("",!0):(O(),F(h,{key:0,ref_key:"filePicker",ref:u,"auto-upload":!1,"file-mediatype":"all",limit:e.maxCount-v.value.length,"image-styles":k,onSelect:z,onDelete:t.onFileDelete,style:{display:"none"}},null,8,["limit","onDelete"]))]),_:1})}}},ki=A(Ti,[["__scopeId","data-v-e7158949"]]);export{ki as a}; |
| | |
| | | |
| | | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | */ |
| | | function(){var e=t,r=e.lib,i=r.WordArray,o=r.Hasher,n=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),u=n.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var n,u,x,B,w,k,m,b,S,A,H,z=this._hash.words,C=l.words,R=f.words,E=s.words,D=a.words,M=c.words,F=h.words;for(k=n=z[0],m=u=z[1],b=x=z[2],S=B=z[3],A=w=z[4],r=0;r<80;r+=1)H=n+t[e+E[r]]|0,H+=r<16?p(u,x,B)+C[0]:r<32?d(u,x,B)+C[1]:r<48?v(u,x,B)+C[2]:r<64?_(u,x,B)+C[3]:y(u,x,B)+C[4],H=(H=g(H|=0,M[r]))+w|0,n=w,w=B,B=g(x,10),x=u,u=H,H=k+t[e+D[r]]|0,H+=r<16?y(m,b,S)+R[0]:r<32?_(m,b,S)+R[1]:r<48?v(m,b,S)+R[2]:r<64?d(m,b,S)+R[3]:p(m,b,S)+R[4],H=(H=g(H|=0,F[r]))+A|0,k=A,A=S,S=g(b,10),b=m,m=H;H=z[1]+x+S|0,z[1]=z[2]+B+A|0,z[2]=z[3]+w+k|0,z[3]=z[4]+n+m|0,z[4]=z[0]+u+b|0,z[0]=H},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,n=o.words,s=0;s<5;s++){var a=n[s];n[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function _(t,e,r){return t&r|e&~r}function y(t,e,r){return t^(e|~r)}function g(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(u),e.HmacRIPEMD160=o._createHmacHelper(u)}(),t.RIPEMD160));var t}(),pt(),function(){return dt?vt.exports:(dt=1,vt.exports=(c=z(),J(),pt(),e=(t=c).lib,r=e.Base,i=e.WordArray,o=t.algo,n=o.SHA256,s=o.HMAC,a=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:n,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,o=s.create(r.hasher,t),n=i.create(),a=i.create([1]),c=n.words,h=a.words,l=r.keySize,f=r.iterations;c.length<l;){var u=o.update(e).finalize(a);o.reset();for(var p=u.words,d=p.length,v=u,_=1;_<f;_++){v=o.finalize(v),o.reset();for(var y=v.words,g=0;g<d;g++)p[g]^=y[g]}n.concat(u),h[0]++}return n.sigBytes=4*l,n}}),t.PBKDF2=function(t,e,r){return a.create(r).compute(t,e)},c.PBKDF2));var t,e,r,i,o,n,s,a,c}(),gt(),wt(),function(){return kt?mt.exports:(kt=1,mt.exports=(t=z(),wt(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,i){var o,n=this._iv;n?(o=n.slice(0),this._iv=void 0):o=this._prevBlock,i.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,o=i.blockSize;r.call(this,t,e,o,i),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,o=i.blockSize,n=t.slice(e,e+o);r.call(this,t,e,o,i),this._prevBlock=n}}),e}(),t.mode.CFB));var t}(),function(){return bt?St.exports:(bt=1,St.exports=(r=z(),wt(),r.mode.CTR=(t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,n=this._counter;o&&(n=this._counter=o.slice(0),this._iv=void 0);var s=n.slice(0);r.encryptBlock(s,0),n[i-1]=n[i-1]+1|0;for(var a=0;a<i;a++)t[e+a]^=s[a]}}),t.Decryptor=e,t),r.mode.CTR));var t,e,r}(),zt(),function(){return Ct?Rt.exports:(Ct=1,Rt.exports=(r=z(),wt(),r.mode.OFB=(t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,n=this._keystream;o&&(n=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(n,0);for(var s=0;s<i;s++)t[e+s]^=n[s]}}),t.Decryptor=e,t),r.mode.OFB));var t,e,r}(),function(){return Et?Dt.exports:(Et=1,Dt.exports=(e=z(),wt(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return Mt?Ft.exports:(Mt=1,Ft.exports=(t=z(),wt(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,i=4*e,o=i-r%i,n=r+o-1;t.clamp(),t.words[n>>>2]|=o<<24-n%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return Pt?Ot.exports:(Pt=1,Ot.exports=(t=z(),wt(),t.pad.Iso10126={pad:function(e,r){var i=4*r,o=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return Wt?It.exports:(Wt=1,It.exports=(t=z(),wt(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return Ut?jt.exports:(Ut=1,jt.exports=(t=z(),wt(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding));var t}(),function(){return Kt?Xt.exports:(Kt=1,Xt.exports=(t=z(),wt(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Lt?Tt.exports:(Lt=1,Tt.exports=(i=z(),wt(),e=(t=i).lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var i=r.parse(t);return e.create({ciphertext:i})}},i.format.Hex));var t,e,r,i}(),function(){return Vt?Nt.exports:(Vt=1,Nt.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.BlockCipher,i=e.algo,o=[],n=[],s=[],a=[],c=[],h=[],l=[],f=[],u=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,i=0;for(e=0;e<256;e++){var d=i^i<<1^i<<2^i<<3^i<<4;d=d>>>8^255&d^99,o[r]=d,n[d]=r;var v=t[r],_=t[v],y=t[_],g=257*t[d]^16843008*d;s[r]=g<<24|g>>>8,a[r]=g<<16|g>>>16,c[r]=g<<8|g>>>24,h[r]=g,g=16843009*y^65537*_^257*v^16843008*r,l[d]=g<<24|g>>>8,f[d]=g<<16|g>>>16,u[d]=g<<8|g>>>24,p[d]=g,r?(r=v^t[t[t[y^v]]],i^=t[t[i]]):r=i=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,i=4*((this._nRounds=r+6)+1),n=this._keySchedule=[],s=0;s<i;s++)s<r?n[s]=e[s]:(h=n[s-1],s%r?r>6&&s%r==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h]):(h=o[(h=h<<8|h>>>24)>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h],h^=d[s/r|0]<<24),n[s]=n[s-r]^h);for(var a=this._invKeySchedule=[],c=0;c<i;c++){if(s=i-c,c%4)var h=n[s];else h=n[s-4];a[c]=c<4||s<=4?h:l[o[h>>>24]]^f[o[h>>>16&255]]^u[o[h>>>8&255]]^p[o[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,h,o)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,f,u,p,n),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,i,o,n,s,a){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],u=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=i[h>>>24]^o[l>>>16&255]^n[f>>>8&255]^s[255&u]^r[p++],_=i[l>>>24]^o[f>>>16&255]^n[u>>>8&255]^s[255&h]^r[p++],y=i[f>>>24]^o[u>>>16&255]^n[h>>>8&255]^s[255&l]^r[p++],g=i[u>>>24]^o[h>>>16&255]^n[l>>>8&255]^s[255&f]^r[p++];h=v,l=_,f=y,u=g}v=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^r[p++],_=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^r[p++],y=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^r[p++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^r[p++],t[e]=v,t[e+1]=_,t[e+2]=y,t[e+3]=g},keySize:8});e.AES=r._createHelper(v)}(),t.AES));var t}(),Gt(),function(){return Qt?$t.exports:(Qt=1,$t.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.StreamCipher,i=e.algo,o=i.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;o=0;for(var n=0;o<256;o++){var s=o%r,a=e[s>>>2]>>>24-s%4*8&255;n=(n+i[o]+a)%256;var c=i[o];i[o]=i[n],i[n]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=n.call(this)},keySize:8,ivSize:0});function n(){for(var t=this._S,e=this._i,r=this._j,i=0,o=0;o<4;o++){r=(r+t[e=(e+1)%256])%256;var n=t[e];t[e]=t[r],t[r]=n,i|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,i}e.RC4=r._createHelper(o);var s=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)n.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4));var t}(),function(){return Jt?Yt.exports:(Jt=1,Yt.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.StreamCipher,i=e.algo,o=[],n=[],s=[],a=i.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=i[r+4&7];if(e){var n=e.words,s=n[0],a=n[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(o[0]^=h,o[1]^=f,o[2]^=l,o[3]^=u,o[4]^=h,o[5]^=f,o[6]^=l,o[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)n[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,a=i>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[r]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit));var t}(),function(){return te?ee.exports:(te=1,ee.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.StreamCipher,i=e.algo,o=[],n=[],s=[],a=i.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)i[o]^=r[o+4&7];if(e){var n=e.words,s=n[0],a=n[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(i[0]^=h,i[1]^=f,i[2]^=l,i[3]^=u,i[4]^=h,i[5]^=f,i[6]^=l,i[7]^=u,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)n[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,a=i>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[r]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy));var t}(),le())),ue="QfOpO2026@SecretKey#Aes256!00001";function pe(t){const e=fe.enc.Utf8.parse(ue),r=fe.enc.Utf8.parse("1234567890123456");return fe.AES.encrypt(t,e,{iv:r,mode:fe.mode.CBC,padding:fe.pad.Pkcs7}).toString()}console.log(ue);const de=t({__name:"Login",setup(t){const w=e(""),k=e(""),m=e(!1);e(!1);const b=e("/pages/index/index");r(t=>{t.redirect&&(b.value=decodeURIComponent(t.redirect)),k.value="",w.value=""});const S=async()=>{try{const t=u(),e=pe(k.value),r=pe(w.value),i=await uni.$uapi.post("/login",{username:r,password:e});t.setToken(i.token);const o=await uni.$uapi.get("/getInfo");t.setUserInfo(o);const n=b.value||"/pages/index/index";["/pages/index/index","/pages/appointment/index","/pages/consultation/index","/pages/my/index"].includes(n)?p({url:n}):d({url:n})}catch(t){v({title:t.message||"ç»å½å¤±è´¥",icon:"none"})}};return(t,e)=>{const r=_,u=y,p=a,d=i(o("uni-icons"),B),v=g,b=x;return c(),n(p,{class:"login-container"},{default:s(()=>[h(p,{class:"header"},{default:s(()=>[h(r,{src:"/assets/logo-C-Rgj3ja.png",class:"logo"}),h(u,{class:"hospital-name"},{default:s(()=>[l("ééé¢OPO管çå¹³å°")]),_:1})]),_:1}),h(p,{class:"form-container"},{default:s(()=>[h(p,{class:"input-group"},{default:s(()=>[h(d,{type:"contact",size:"24",color:"#409EFF"}),h(v,{modelValue:w.value,"onUpdate:modelValue":e[0]||(e[0]=t=>w.value=t),placeholder:"请è¾å
¥è´¦å·",class:"input"},null,8,["modelValue"])]),_:1}),h(p,{class:"input-group"},{default:s(()=>[h(d,{type:"locked",size:"24",color:"#409EFF"}),h(v,{modelValue:k.value,"onUpdate:modelValue":e[1]||(e[1]=t=>k.value=t),password:!m.value,placeholder:"请è¾å
¥å¯ç ",class:"input"},null,8,["modelValue","password"]),h(d,{type:m.value?"eye":"eye-slash",size:"22",color:"#999",onClick:e[2]||(e[2]=t=>m.value=!m.value)},null,8,["type"])]),_:1}),h(b,{class:f(["login-btn",{active:w.value&&k.value}]),onClick:S,"hover-class":"button-hover"},{default:s(()=>[l(" ç»å½ ")]),_:1},8,["class"])]),_:1})]),_:1})}}},[["__scopeId","data-v-e354caaf"]]);export{de as default}; |
| | | function(){var e=t,r=e.lib,i=r.WordArray,o=r.Hasher,n=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),h=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=i.create([0,1518500249,1859775393,2400959708,2840853838]),f=i.create([1352829926,1548603684,1836072691,2053994217,0]),u=n.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var r=0;r<16;r++){var i=e+r,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var n,u,x,B,w,k,m,b,S,A,H,z=this._hash.words,C=l.words,R=f.words,E=s.words,D=a.words,M=c.words,F=h.words;for(k=n=z[0],m=u=z[1],b=x=z[2],S=B=z[3],A=w=z[4],r=0;r<80;r+=1)H=n+t[e+E[r]]|0,H+=r<16?p(u,x,B)+C[0]:r<32?d(u,x,B)+C[1]:r<48?v(u,x,B)+C[2]:r<64?_(u,x,B)+C[3]:y(u,x,B)+C[4],H=(H=g(H|=0,M[r]))+w|0,n=w,w=B,B=g(x,10),x=u,u=H,H=k+t[e+D[r]]|0,H+=r<16?y(m,b,S)+R[0]:r<32?_(m,b,S)+R[1]:r<48?v(m,b,S)+R[2]:r<64?d(m,b,S)+R[3]:p(m,b,S)+R[4],H=(H=g(H|=0,F[r]))+A|0,k=A,A=S,S=g(b,10),b=m,m=H;H=z[1]+x+S|0,z[1]=z[2]+B+A|0,z[2]=z[3]+w+k|0,z[3]=z[4]+n+m|0,z[4]=z[0]+u+b|0,z[0]=H},_doFinalize:function(){var t=this._data,e=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,n=o.words,s=0;s<5;s++){var a=n[s];n[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return o},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,r){return t^e^r}function d(t,e,r){return t&e|~t&r}function v(t,e,r){return(t|~e)^r}function _(t,e,r){return t&r|e&~r}function y(t,e,r){return t^(e|~r)}function g(t,e){return t<<e|t>>>32-e}e.RIPEMD160=o._createHelper(u),e.HmacRIPEMD160=o._createHmacHelper(u)}(),t.RIPEMD160));var t}(),pt(),function(){return dt?vt.exports:(dt=1,vt.exports=(c=z(),J(),pt(),e=(t=c).lib,r=e.Base,i=e.WordArray,o=t.algo,n=o.SHA256,s=o.HMAC,a=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:n,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var r=this.cfg,o=s.create(r.hasher,t),n=i.create(),a=i.create([1]),c=n.words,h=a.words,l=r.keySize,f=r.iterations;c.length<l;){var u=o.update(e).finalize(a);o.reset();for(var p=u.words,d=p.length,v=u,_=1;_<f;_++){v=o.finalize(v),o.reset();for(var y=v.words,g=0;g<d;g++)p[g]^=y[g]}n.concat(u),h[0]++}return n.sigBytes=4*l,n}}),t.PBKDF2=function(t,e,r){return a.create(r).compute(t,e)},c.PBKDF2));var t,e,r,i,o,n,s,a,c}(),gt(),wt(),function(){return kt?mt.exports:(kt=1,mt.exports=(t=z(),wt(),t.mode.CFB=function(){var e=t.lib.BlockCipherMode.extend();function r(t,e,r,i){var o,n=this._iv;n?(o=n.slice(0),this._iv=void 0):o=this._prevBlock,i.encryptBlock(o,0);for(var s=0;s<r;s++)t[e+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(t,e){var i=this._cipher,o=i.blockSize;r.call(this,t,e,o,i),this._prevBlock=t.slice(e,e+o)}}),e.Decryptor=e.extend({processBlock:function(t,e){var i=this._cipher,o=i.blockSize,n=t.slice(e,e+o);r.call(this,t,e,o,i),this._prevBlock=n}}),e}(),t.mode.CFB));var t}(),function(){return bt?St.exports:(bt=1,St.exports=(r=z(),wt(),r.mode.CTR=(t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,n=this._counter;o&&(n=this._counter=o.slice(0),this._iv=void 0);var s=n.slice(0);r.encryptBlock(s,0),n[i-1]=n[i-1]+1|0;for(var a=0;a<i;a++)t[e+a]^=s[a]}}),t.Decryptor=e,t),r.mode.CTR));var t,e,r}(),zt(),function(){return Ct?Rt.exports:(Ct=1,Rt.exports=(r=z(),wt(),r.mode.OFB=(t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var r=this._cipher,i=r.blockSize,o=this._iv,n=this._keystream;o&&(n=this._keystream=o.slice(0),this._iv=void 0),r.encryptBlock(n,0);for(var s=0;s<i;s++)t[e+s]^=n[s]}}),t.Decryptor=e,t),r.mode.OFB));var t,e,r}(),function(){return Et?Dt.exports:(Et=1,Dt.exports=(e=z(),wt(),e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t),e.mode.ECB));var t,e}(),function(){return Mt?Ft.exports:(Mt=1,Ft.exports=(t=z(),wt(),t.pad.AnsiX923={pad:function(t,e){var r=t.sigBytes,i=4*e,o=i-r%i,n=r+o-1;t.clamp(),t.words[n>>>2]|=o<<24-n%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Ansix923));var t}(),function(){return Pt?Ot.exports:(Pt=1,Ot.exports=(t=z(),wt(),t.pad.Iso10126={pad:function(e,r){var i=4*r,o=i-e.sigBytes%i;e.concat(t.lib.WordArray.random(o-1)).concat(t.lib.WordArray.create([o<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},t.pad.Iso10126));var t}(),function(){return Wt?It.exports:(Wt=1,It.exports=(t=z(),wt(),t.pad.Iso97971={pad:function(e,r){e.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(e,r)},unpad:function(e){t.pad.ZeroPadding.unpad(e),e.sigBytes--}},t.pad.Iso97971));var t}(),function(){return Ut?jt.exports:(Ut=1,jt.exports=(t=z(),wt(),t.pad.ZeroPadding={pad:function(t,e){var r=4*e;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var e=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(e[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},t.pad.ZeroPadding));var t}(),function(){return Kt?Xt.exports:(Kt=1,Xt.exports=(t=z(),wt(),t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding));var t}(),function(){return Lt?Tt.exports:(Lt=1,Tt.exports=(i=z(),wt(),e=(t=i).lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(t){return t.ciphertext.toString(r)},parse:function(t){var i=r.parse(t);return e.create({ciphertext:i})}},i.format.Hex));var t,e,r,i}(),function(){return Vt?Nt.exports:(Vt=1,Nt.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.BlockCipher,i=e.algo,o=[],n=[],s=[],a=[],c=[],h=[],l=[],f=[],u=[],p=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var r=0,i=0;for(e=0;e<256;e++){var d=i^i<<1^i<<2^i<<3^i<<4;d=d>>>8^255&d^99,o[r]=d,n[d]=r;var v=t[r],_=t[v],y=t[_],g=257*t[d]^16843008*d;s[r]=g<<24|g>>>8,a[r]=g<<16|g>>>16,c[r]=g<<8|g>>>24,h[r]=g,g=16843009*y^65537*_^257*v^16843008*r,l[d]=g<<24|g>>>8,f[d]=g<<16|g>>>16,u[d]=g<<8|g>>>24,p[d]=g,r?(r=v^t[t[t[y^v]]],i^=t[t[i]]):r=i=1}}();var d=[0,1,2,4,8,16,32,64,128,27,54],v=i.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,r=t.sigBytes/4,i=4*((this._nRounds=r+6)+1),n=this._keySchedule=[],s=0;s<i;s++)s<r?n[s]=e[s]:(h=n[s-1],s%r?r>6&&s%r==4&&(h=o[h>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h]):(h=o[(h=h<<8|h>>>24)>>>24]<<24|o[h>>>16&255]<<16|o[h>>>8&255]<<8|o[255&h],h^=d[s/r|0]<<24),n[s]=n[s-r]^h);for(var a=this._invKeySchedule=[],c=0;c<i;c++){if(s=i-c,c%4)var h=n[s];else h=n[s-4];a[c]=c<4||s<=4?h:l[o[h>>>24]]^f[o[h>>>16&255]]^u[o[h>>>8&255]]^p[o[255&h]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,s,a,c,h,o)},decryptBlock:function(t,e){var r=t[e+1];t[e+1]=t[e+3],t[e+3]=r,this._doCryptBlock(t,e,this._invKeySchedule,l,f,u,p,n),r=t[e+1],t[e+1]=t[e+3],t[e+3]=r},_doCryptBlock:function(t,e,r,i,o,n,s,a){for(var c=this._nRounds,h=t[e]^r[0],l=t[e+1]^r[1],f=t[e+2]^r[2],u=t[e+3]^r[3],p=4,d=1;d<c;d++){var v=i[h>>>24]^o[l>>>16&255]^n[f>>>8&255]^s[255&u]^r[p++],_=i[l>>>24]^o[f>>>16&255]^n[u>>>8&255]^s[255&h]^r[p++],y=i[f>>>24]^o[u>>>16&255]^n[h>>>8&255]^s[255&l]^r[p++],g=i[u>>>24]^o[h>>>16&255]^n[l>>>8&255]^s[255&f]^r[p++];h=v,l=_,f=y,u=g}v=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&u])^r[p++],_=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[u>>>8&255]<<8|a[255&h])^r[p++],y=(a[f>>>24]<<24|a[u>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^r[p++],g=(a[u>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^r[p++],t[e]=v,t[e+1]=_,t[e+2]=y,t[e+3]=g},keySize:8});e.AES=r._createHelper(v)}(),t.AES));var t}(),Gt(),function(){return Qt?$t.exports:(Qt=1,$t.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.StreamCipher,i=e.algo,o=i.RC4=r.extend({_doReset:function(){for(var t=this._key,e=t.words,r=t.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;o=0;for(var n=0;o<256;o++){var s=o%r,a=e[s>>>2]>>>24-s%4*8&255;n=(n+i[o]+a)%256;var c=i[o];i[o]=i[n],i[n]=c}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=n.call(this)},keySize:8,ivSize:0});function n(){for(var t=this._S,e=this._i,r=this._j,i=0,o=0;o<4;o++){r=(r+t[e=(e+1)%256])%256;var n=t[e];t[e]=t[r],t[r]=n,i|=t[(t[e]+t[r])%256]<<24-8*o}return this._i=e,this._j=r,i}e.RC4=r._createHelper(o);var s=i.RC4Drop=o.extend({cfg:o.cfg.extend({drop:192}),_doReset:function(){o._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)n.call(this)}});e.RC4Drop=r._createHelper(s)}(),t.RC4));var t}(),function(){return Jt?Yt.exports:(Jt=1,Yt.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.StreamCipher,i=e.algo,o=[],n=[],s=[],a=i.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)c.call(this);for(r=0;r<8;r++)o[r]^=i[r+4&7];if(e){var n=e.words,s=n[0],a=n[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(o[0]^=h,o[1]^=f,o[2]^=l,o[3]^=u,o[4]^=h,o[5]^=f,o[6]^=l,o[7]^=u,r=0;r<4;r++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)n[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,a=i>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[r]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.Rabbit=r._createHelper(a)}(),t.Rabbit));var t}(),function(){return te?ee.exports:(te=1,ee.exports=(t=z(),j(),N(),gt(),wt(),function(){var e=t,r=e.lib.StreamCipher,i=e.algo,o=[],n=[],s=[],a=i.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)c.call(this);for(o=0;o<8;o++)i[o]^=r[o+4&7];if(e){var n=e.words,s=n[0],a=n[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),l=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),f=h>>>16|4294901760&l,u=l<<16|65535&h;for(i[0]^=h,i[1]^=f,i[2]^=l,i[3]^=u,i[4]^=h,i[5]^=f,i[6]^=l,i[7]^=u,o=0;o<4;o++)c.call(this)}},_doProcessBlock:function(t,e){var r=this._X;c.call(this),o[0]=r[0]^r[5]>>>16^r[3]<<16,o[1]=r[2]^r[7]>>>16^r[5]<<16,o[2]=r[4]^r[1]>>>16^r[7]<<16,o[3]=r[6]^r[3]>>>16^r[1]<<16;for(var i=0;i<4;i++)o[i]=16711935&(o[i]<<8|o[i]>>>24)|4278255360&(o[i]<<24|o[i]>>>8),t[e+i]^=o[i]},blockSize:4,ivSize:2});function c(){for(var t=this._X,e=this._C,r=0;r<8;r++)n[r]=e[r];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<n[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<n[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<n[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<n[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<n[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<n[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<n[6]>>>0?1:0)|0,this._b=e[7]>>>0<n[7]>>>0?1:0,r=0;r<8;r++){var i=t[r]+e[r],o=65535&i,a=i>>>16,c=((o*o>>>17)+o*a>>>15)+a*a,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[r]=c^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}e.RabbitLegacy=r._createHelper(a)}(),t.RabbitLegacy));var t}(),le())),ue="QfOpO2026@SecretKey#Aes256!00001";function pe(t){const e=fe.enc.Utf8.parse(ue),r=fe.enc.Utf8.parse("1234567890123456");return fe.AES.encrypt(t,e,{iv:r,mode:fe.mode.CBC,padding:fe.pad.Pkcs7}).toString()}console.log(ue);const de=t({__name:"Login",setup(t){const w=e(""),k=e(""),m=e(!1);e(!1);const b=e("/pages/index/index");r(t=>{t.redirect&&(b.value=decodeURIComponent(t.redirect)),k.value="",w.value=""});const S=async()=>{try{const t=u(),e=pe(k.value),r=pe(w.value),i=await uni.$uapi.post("/login",{username:r,password:e});t.setToken(i.token);const o=await uni.$uapi.get("/getInfo");t.setUserInfo(o);const n=b.value||"/pages/index/index";["/pages/index/index","/pages/appointment/index","/pages/consultation/index","/pages/my/index"].includes(n)?p({url:n}):d({url:n})}catch(t){v({title:t.message||"ç»å½å¤±è´¥",icon:"none"})}};return(t,e)=>{const r=_,u=y,p=a,d=i(o("uni-icons"),B),v=g,b=x;return c(),n(p,{class:"login-container"},{default:s(()=>[h(p,{class:"header"},{default:s(()=>[h(r,{src:"/assets/logo-C-Rgj3ja.png",class:"logo"}),h(u,{class:"hospital-name"},{default:s(()=>[l("é大éé¢OPO管çå¹³å°")]),_:1})]),_:1}),h(p,{class:"form-container"},{default:s(()=>[h(p,{class:"input-group"},{default:s(()=>[h(d,{type:"contact",size:"24",color:"#409EFF"}),h(v,{modelValue:w.value,"onUpdate:modelValue":e[0]||(e[0]=t=>w.value=t),placeholder:"请è¾å
¥è´¦å·",class:"input"},null,8,["modelValue"])]),_:1}),h(p,{class:"input-group"},{default:s(()=>[h(d,{type:"locked",size:"24",color:"#409EFF"}),h(v,{modelValue:k.value,"onUpdate:modelValue":e[1]||(e[1]=t=>k.value=t),password:!m.value,placeholder:"请è¾å
¥å¯ç ",class:"input"},null,8,["modelValue","password"]),h(d,{type:m.value?"eye":"eye-slash",size:"22",color:"#999",onClick:e[2]||(e[2]=t=>m.value=!m.value)},null,8,["type"])]),_:1}),h(b,{class:f(["login-btn",{active:w.value&&k.value}]),onClick:S,"hover-class":"button-hover"},{default:s(()=>[l(" ç»å½ ")]),_:1},8,["class"])]),_:1})]),_:1})}}},[["__scopeId","data-v-e354caaf"]]);export{de as default}; |
| | |
| | | // @/utils/request.js |
| | | |
| | | // æ·»å å
¨å±æ è®° |
| | | let isRedirectingToLogin = false; |
| | | /** |
| | | * æ¾ç¤ºToastæç¤ºï¼å
¼å®¹uview-plusï¼ |
| | | * @param {string} message æç¤ºå
容 |
| | |
| | | * 跳转å°ç»å½é¡µ |
| | | */ |
| | | const navigateToLogin = () => { |
| | | uni.redirectTo({ |
| | | url: |
| | | config.loginPage + |
| | | "?redirect=" + |
| | | encodeURIComponent(getCurrentPagePath()), |
| | | }); |
| | | if (isRedirectingToLogin) { |
| | | console.log('æ£å¨è·³è½¬ç»å½é¡µä¸ï¼è·³è¿'); |
| | | return; |
| | | } |
| | | |
| | | isRedirectingToLogin = true; |
| | | |
| | | const pages = getCurrentPages(); |
| | | const currentPage = pages[pages.length - 1]; |
| | | const isLoginPage = currentPage && currentPage.route && |
| | | currentPage.route.includes('login/Login'); |
| | | |
| | | if (isLoginPage) { |
| | | console.log('å½åå·²å¨ç»å½é¡µï¼ä¸è·³è½¬'); |
| | | isRedirectingToLogin = false; |
| | | return; |
| | | } |
| | | |
| | | console.log('跳转å°ç»å½é¡µ'); |
| | | setTimeout(() => { |
| | | uni.redirectTo({ |
| | | url: config.loginPage + "?redirect=" + encodeURIComponent(getCurrentPagePath()), |
| | | success: () => { |
| | | console.log('跳转ç»å½é¡µæå'); |
| | | isRedirectingToLogin = false; |
| | | }, |
| | | fail: () => { |
| | | console.log('跳转ç»å½é¡µå¤±è´¥'); |
| | | isRedirectingToLogin = false; |
| | | } |
| | | }); |
| | | }, 100); |
| | | }; |
| | | |
| | | /** |
| | |
| | | |
| | | // å¦æè¯·æ±å¨ç½ååä¸ï¼ç´æ¥æ¾è¡ |
| | | if (isInWhiteList(options.url)) { |
| | | console.log('ç½å忥å£ï¼è·³è¿tokenæ ¡éª:', options.url); |
| | | return options; |
| | | } |
| | | |
| | | // 妿æªç»å½ä¸ä¸æ¯ç½å忥å£ï¼è·³è½¬ç»å½ |
| | | // console.log(token,'token'); |
| | | |
| | | // â
å
³é®ä¿®æ¹ï¼å¨ç»å½é¡µæ¶ä¸è¿è¡è·³è½¬ |
| | | if (!token) { |
| | | const pages = getCurrentPages(); |
| | | const currentPage = pages[pages.length - 1]; |
| | | const isLoginPage = currentPage && currentPage.route && |
| | | (currentPage.route.includes('login/Login') || |
| | | currentPage.route.includes('login/DingTalkLogin')); |
| | | |
| | | if (isLoginPage) { |
| | | console.log('å½åæ¯ç»å½é¡µï¼å
许æ token请æ±'); |
| | | return options; |
| | | } |
| | | |
| | | // ä¸å¨ç»å½é¡µï¼æè·³è½¬ |
| | | console.log('æªç»å½ä¸ä¸å¨ç»å½é¡µï¼è·³è½¬å°ç»å½é¡µ'); |
| | | navigateToLogin(); |
| | | throw new Error("æªç»å½"); |
| | | } |
| ¶Ô±ÈÐÂÎļþ |
| | |
| | | // @/utils/sso.js |
| | | /** |
| | | * è§£æSSO龿¥åæ° |
| | | * @param {string} url 宿´URL |
| | | * @returns {object} è§£æåçåæ° |
| | | */ |
| | | export const parseSSOUrl = (url) => { |
| | | try { |
| | | const urlObj = new URL(url) |
| | | const params = {} |
| | | |
| | | urlObj.searchParams.forEach((value, key) => { |
| | | params[key] = decodeURIComponent(value) |
| | | }) |
| | | |
| | | // æå页é¢è·¯å¾ |
| | | const path = urlObj.pathname.replace(/\//g, '') |
| | | if (path) { |
| | | params._page = path |
| | | } |
| | | |
| | | return params |
| | | } catch (e) { |
| | | console.error('è§£æSSO URL失败:', e) |
| | | return {} |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * æå»ºSSOç»å½é¾æ¥ |
| | | * @param {string} baseUrl åºç¡URL |
| | | * @param {string} userName ç¨æ·å |
| | | * @param {string} passWord å¯ç |
| | | * @param {string} targetPage ç®æ é¡µé¢ |
| | | * @param {object} pageParams 页é¢åæ° |
| | | * @returns {string} SSO龿¥ |
| | | */ |
| | | export const buildSSOUrl = (baseUrl, userName, passWord, targetPage, pageParams = {}) => { |
| | | const params = new URLSearchParams() |
| | | params.append('userName', userName) |
| | | params.append('passWord', passWord) |
| | | |
| | | if (targetPage) { |
| | | params.append('redirect', encodeURIComponent(targetPage)) |
| | | } |
| | | |
| | | // æ·»å 页é¢åæ° |
| | | Object.keys(pageParams).forEach(key => { |
| | | params.append(key, pageParams[key]) |
| | | }) |
| | | |
| | | return `${baseUrl}/pages/login/Login?${params.toString()}` |
| | | } |