diff --git a/app/src/router/index.ts b/app/src/router/index.ts index 93651810..2de8363d 100644 --- a/app/src/router/index.ts +++ b/app/src/router/index.ts @@ -2,8 +2,8 @@ import { BACK_URL } from '@/enums/cacheEnums' import { useUserStore } from '@/stores/user' import { getToken } from '@/utils/auth' import cache from '@/utils/cache' -import { generateRoutes } from './transformPages' -export const routes = generateRoutes() +import { routes } from './routes' + const whiteList = ['register', 'login', 'forget_pwd'] const list = ['navigateTo', 'redirectTo', 'reLaunch', 'switchTab'] list.forEach((item) => { @@ -34,12 +34,11 @@ export function setupRouter() { // #ifdef H5 const app = getApp() app.$router.afterEach((to: any, from: any) => { - console.log(to, from) - const index = whiteList.findIndex((item) => to.path.includes(item)) + const index = whiteList.findIndex((item) => from.path.includes(item) || from.path === '/') const userStore = useUserStore() if (index == -1 && !userStore.isLogin) { //保存登录前的路径 - cache.set(BACK_URL, to.fullPath) + cache.set(BACK_URL, from.fullPath) } }) diff --git a/app/src/router/transformPages.ts b/app/src/router/routes.ts similarity index 97% rename from app/src/router/transformPages.ts rename to app/src/router/routes.ts index 9cad0f89..fa33c22f 100644 --- a/app/src/router/transformPages.ts +++ b/app/src/router/routes.ts @@ -43,3 +43,5 @@ function getSubPackagesRoutes(pagesJson: any) { export function generateRoutes() { return getPagesRoutes(PagesJSON.pages).concat(getSubPackagesRoutes(PagesJSON)) } + +export const routes = generateRoutes() diff --git a/h5/assets/account.0af4a495.js b/h5/assets/account.00a6144f.js similarity index 92% rename from h5/assets/account.0af4a495.js rename to h5/assets/account.00a6144f.js index efc76bf2..c4bb6758 100644 --- a/h5/assets/account.0af4a495.js +++ b/h5/assets/account.00a6144f.js @@ -1 +1 @@ -import{C as n}from"./appEnums.a2ba827b.js";import{D as t}from"./index.4b666ce6.js";const r=()=>/MicroMessenger/i.test(navigator.userAgent);function o(){const n=navigator.userAgent;return n.indexOf("Android")>-1||n.indexOf("Adr")>-1}const a=(({MP_WEIXIN:n,OA_WEIXIN:t,H5:o,IOS:a,ANDROID:e,OTHER:i})=>r()?t():o())({MP_WEIXIN:()=>n.MP_WEIXIN,OA_WEIXIN:()=>n.OA_WEIXIN,H5:()=>n.H5,IOS:()=>n.IOS,ANDROID:()=>n.ANDROID,OTHER:()=>null});function e(n){return t.post({url:"/login/check",data:{...n,client:a}})}function i(n){return t.post({url:"/login/register",data:{...n,client:a}})}function s(n){return t.post({url:"/login/forgotPassword",data:n})}function u(){return t.get({url:"/login/codeUrl",data:{url:location.href}})}function l(n){return t.get({url:"/login/oaLogin",data:n})}export{l as O,r as a,s as f,u as g,o as i,e as l,i as r}; +import{C as n}from"./appEnums.a2ba827b.js";import{D as t}from"./index.21969731.js";const r=()=>/MicroMessenger/i.test(navigator.userAgent);function o(){const n=navigator.userAgent;return n.indexOf("Android")>-1||n.indexOf("Adr")>-1}const a=(({MP_WEIXIN:n,OA_WEIXIN:t,H5:o,IOS:a,ANDROID:e,OTHER:i})=>r()?t():o())({MP_WEIXIN:()=>n.MP_WEIXIN,OA_WEIXIN:()=>n.OA_WEIXIN,H5:()=>n.H5,IOS:()=>n.IOS,ANDROID:()=>n.ANDROID,OTHER:()=>null});function e(n){return t.post({url:"/login/check",data:{...n,client:a}})}function i(n){return t.post({url:"/login/register",data:{...n,client:a}})}function s(n){return t.post({url:"/login/forgotPassword",data:n})}function u(){return t.get({url:"/login/codeUrl",data:{url:location.href}})}function l(n){return t.get({url:"/login/oaLogin",data:n})}export{l as O,r as a,s as f,u as g,o as i,e as l,i as r}; diff --git a/h5/assets/index.4b666ce6.js b/h5/assets/index.21969731.js similarity index 95% rename from h5/assets/index.4b666ce6.js rename to h5/assets/index.21969731.js index f8c8b01a..7409d1bd 100644 --- a/h5/assets/index.4b666ce6.js +++ b/h5/assets/index.21969731.js @@ -3,12 +3,12 @@ var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e, * vue-router v4.1.4 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const isBrowser="undefined"!=typeof window;function isESModule(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const assign$1=Object.assign;function applyToParams(e,t){const n={};for(const o in t){const r=t[o];n[o]=isArray$3(r)?r.map(e):e(r)}return n}const noop$1=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=resolveRelativePath(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:a}}function stringifyURL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function stripBase(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function isSameRouteLocation(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&isSameRouteRecord(t.matched[o],n.matched[r])&&isSameRouteLocationParams(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!isSameRouteLocationParamsValue(e[n],t[n]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return isArray$3(e)?isEquivalentArray(e,t):isArray$3(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return isArray$3(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}var NavigationType,NavigationType2,NavigationDirection,NavigationDirection2;function normalizeBase(e){if(!e)if(isBrowser){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),removeTrailingSlash(e)}NavigationType2=NavigationType||(NavigationType={}),NavigationType2.pop="pop",NavigationType2.push="push",NavigationDirection2=NavigationDirection||(NavigationDirection={}),NavigationDirection2.back="back",NavigationDirection2.forward="forward",NavigationDirection2.unknown="";const BEFORE_HASH_RE=/^[^#]+#/;function createHref(e,t){return e.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(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)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=getElementPosition(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),stripBase(n,"")}return stripBase(n,e)+o+r}function useHistoryListeners(e,t,n,o){let r=[],i=[],a=null;const s=({state:i})=>{const s=createCurrentLocation(e,location),c=n.value,l=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===c)return void(a=null);u=l?i.position-l.position:0}else o(s);r.forEach((e=>{e(n.value,c,{delta:u,type:NavigationType.pop,direction:u?u>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(assign$1({},e.state,{scroll:computeScrollPosition()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}}}function buildState(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?computeScrollPosition():null}}function useHistoryStateNavigation(e){const{history:t,location:n}=window,o={value:createCurrentLocation(e,n)},r={value:t.state};function i(o,i,a){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:createBaseLocation()+e+o;try{t[a?"replaceState":"pushState"](i,"",c),r.value=i}catch(l){console.error(l),n[a?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const a=assign$1({},r.value,t.state,{forward:e,scroll:computeScrollPosition()});i(a.current,a,!0),i(e,assign$1({},buildState(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){i(e,assign$1({},t.state,buildState(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function createWebHistory(e){const t=useHistoryStateNavigation(e=normalizeBase(e)),n=useHistoryListeners(e,t.state,t.location,t.replace);const o=assign$1({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:createHref.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 isRouteLocation(e){return"string"==typeof e||e&&"object"==typeof e}function isRouteName(e){return"string"==typeof e||"symbol"==typeof e}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType,NavigationFailureType2;function createRouterError(e,t){return assign$1(new Error,{type:e,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(null==t||!!(e.type&t))}NavigationFailureType2=NavigationFailureType||(NavigationFailureType={}),NavigationFailureType2[NavigationFailureType2.aborted=4]="aborted",NavigationFailureType2[NavigationFailureType2.cancelled=8]="cancelled",NavigationFailureType2[NavigationFailureType2.duplicated=16]="duplicated";const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){const n=assign$1({},BASE_PATH_PARSER_OPTIONS,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let t=0;tt.length?1===t.length&&80===t[0]?1:-1:0}function comparePathParserScore(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if("/"===e)return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,o=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let s,c=0,l="",u="";function d(){l&&(0===n?i.push({type:0,value:l}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),l="")}function f(){l+=s}for(;c{i(f)}:noop$1}function i(e){if(isRouteName(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!isRecordChildOf(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!isAliasRecord(e)&&o.set(e.record.name,e)}return t=mergeOptions({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw createRouterError(1,{location:e});a=r.record.name,s=assign$1(paramsFromLocation(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&¶msFromLocation(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw createRouterError(1,{location:e,currentLocation:t});a=r.record.name,s=assign$1({},t.params,e.params),i=r.stringify(s)}const c=[];let l=r;for(;l;)c.unshift(l.record),l=l.parent;return{name:a,path:i,params:s,matched:c,meta:mergeMetaFields(c)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function paramsFromLocation(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function normalizeRouteRecord(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function normalizeRecordProps(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce(((e,t)=>assign$1(e,t.meta)),{})}function mergeOptions(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function isRecordChildOf(e,t){return t.children.some((t=>t===e||isRecordChildOf(e,t)))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return null==e?"":encodePath(e).replace(SLASH_RE,"%2F")}function decode(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function parseQuery(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&encodeQueryValue(e))):[o&&encodeQueryValue(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function normalizeQuery(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=isArray$3(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function guardToPromiseFn(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const c=e=>{!1===e?s(createRouterError(4,{from:n,to:t})):e instanceof Error?s(e):isRouteLocation(e)?s(createRouterError(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),a())},l=e.call(o&&o.instances[r],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch((e=>s(e)))}))}function extractComponentsGuards(e,t,n,o){const r=[];for(const i of e)for(const e in i.components){let a=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(isRouteComponent(a)){const s=(a.__vccOpts||a)[t];s&&r.push(guardToPromiseFn(s,n,o,i,e))}else{let s=a();r.push((()=>s.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const a=isESModule(r)?r.default:r;i.components[e]=a;const s=(a.__vccOpts||a)[t];return s&&guardToPromiseFn(s,n,o,i,e)()}))))}}return r}function isRouteComponent(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function useLink(e){const t=inject(routerKey),n=inject(routeLocationKey),o=computed$1((()=>t.resolve(unref(e.to)))),r=computed$1((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(isSameRouteRecord.bind(null,r));if(a>-1)return a;const s=getOriginalPath(e[t-2]);return t>1&&getOriginalPath(r)===s&&i[i.length-1].path!==s?i.findIndex(isSameRouteRecord.bind(null,e[t-2])):a})),i=computed$1((()=>r.value>-1&&includesParams(n.params,o.value.params))),a=computed$1((()=>r.value>-1&&r.value===n.matched.length-1&&isSameRouteLocationParams(n.params,o.value.params)));return{route:o,href:computed$1((()=>o.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return guardEvent(n)?t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop$1):Promise.resolve()}}}const RouterLinkImpl=defineComponent({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:useLink,setup(e,{slots:t}){const n=reactive(useLink(e)),{options:o}=inject(routerKey),r=computed$1((()=>({[getLinkClass(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),RouterLink=RouterLinkImpl;function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function includesParams(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!isArray$3(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const getLinkClass=(e,t,n)=>null!=e?e:null!=t?t:n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=inject(routerViewLocationKey),r=computed$1((()=>e.route||o.value)),i=inject(viewDepthKey,0),a=computed$1((()=>{let e=unref(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=computed$1((()=>r.value.matched[a.value]));provide(viewDepthKey,computed$1((()=>a.value+1))),provide(matchedRouteKey,s),provide(routerViewLocationKey,r);const c=ref();return watch((()=>[c.value,s.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&isSameRouteRecord(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,a=s.value,l=a&&a.components[i];if(!l)return normalizeSlot(n.default,{Component:l,route:o});const u=a.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=h(l,assign$1({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:c}));return normalizeSlot(n.default,{Component:f,route:o})||f}}});function normalizeSlot(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const RouterView=RouterViewImpl;function createRouter(e){const t=createRouterMatcher(e.routes,e),n=e.parseQuery||parseQuery,o=e.stringifyQuery||stringifyQuery$1,r=e.history,i=useCallbacks(),a=useCallbacks(),s=useCallbacks(),c=shallowRef(START_LOCATION_NORMALIZED);let l=START_LOCATION_NORMALIZED;isBrowser&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=applyToParams.bind(null,(e=>""+e)),d=applyToParams.bind(null,encodeParam),f=applyToParams.bind(null,decode);function p(e,i){if(i=assign$1({},i||c.value),"string"==typeof e){const o=parseURL(n,e,i.path),a=t.resolve({path:o.path},i),s=r.createHref(o.fullPath);return assign$1(o,a,{params:f(a.params),hash:decode(o.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)a=assign$1({},e,{path:parseURL(n,e.path,i.path).path});else{const t=assign$1({},e.params);for(const e in t)null==t[e]&&delete t[e];a=assign$1({},e,{params:d(e.params)}),i.params=d(i.params)}const s=t.resolve(a,i),l=e.hash||"";s.params=u(f(s.params));const p=stringifyURL(o,assign$1({},e,{hash:encodeHash(l),path:s.path})),h=r.createHref(p);return assign$1({fullPath:p,hash:l,query:o===stringifyQuery$1?normalizeQuery(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function h(e){return"string"==typeof e?parseURL(n,e,c.value.path):assign$1({},e)}function g(e,t){if(l!==e)return createRouterError(8,{from:t,to:e})}function m(e){return _(e)}function v(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=h(o):{path:o},o.params={}),assign$1({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function _(e,t){const n=l=p(e),r=c.value,i=e.state,a=e.force,s=!0===e.replace,u=v(n);if(u)return _(assign$1(h(u),{state:"object"==typeof u?assign$1({},i,u.state):i,force:a,replace:s}),t||n);const d=n;let f;return d.redirectedFrom=t,!a&&isSameRouteLocation(o,r,n)&&(f=createRouterError(16,{to:d,from:r}),x(r,r,!0,!1)),(f?Promise.resolve(f):b(d,r)).catch((e=>isNavigationFailure(e)?isNavigationFailure(e,2)?e:A(e):I(e,d,r))).then((e=>{if(e){if(isNavigationFailure(e,2))return _(assign$1({replace:s},h(e.to),{state:"object"==typeof e.to?assign$1({},i,e.to.state):i,force:a}),t||d)}else e=T(d,r,!0,s,i);return w(d,r,e),e}))}function y(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e,t){let n;const[o,r,s]=extractChangingRecords(e,t);n=extractComponentsGuards(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(guardToPromiseFn(o,e,t))}));const c=y.bind(null,e,t);return n.push(c),runGuardQueue(n).then((()=>{n=[];for(const o of i.list())n.push(guardToPromiseFn(o,e,t));return n.push(c),runGuardQueue(n)})).then((()=>{n=extractComponentsGuards(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(guardToPromiseFn(o,e,t))}));return n.push(c),runGuardQueue(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(isArray$3(o.beforeEnter))for(const r of o.beforeEnter)n.push(guardToPromiseFn(r,e,t));else n.push(guardToPromiseFn(o.beforeEnter,e,t));return n.push(c),runGuardQueue(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=extractComponentsGuards(s,"beforeRouteEnter",e,t),n.push(c),runGuardQueue(n)))).then((()=>{n=[];for(const o of a.list())n.push(guardToPromiseFn(o,e,t));return n.push(c),runGuardQueue(n)})).catch((e=>isNavigationFailure(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of s.list())o(e,t,n)}function T(e,t,n,o,i){const a=g(e,t);if(a)return a;const s=t===START_LOCATION_NORMALIZED,l=isBrowser?history.state:{};n&&(o||s?r.replace(e.fullPath,assign$1({scroll:s&&l&&l.scroll},i)):r.push(e.fullPath,i)),c.value=e,x(e,t,n,s),A()}let E;let S,C=useCallbacks(),O=useCallbacks();function I(e,t,n){A(e);const o=O.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function A(e){return S||(S=!e,E||(E=r.listen(((e,t,n)=>{if(!$.listening)return;const o=p(e),i=v(o);if(i)return void _(assign$1(i,{replace:!0}),o).catch(noop$1);l=o;const a=c.value;isBrowser&&saveScrollPosition(getScrollKey(a.fullPath,n.delta),computeScrollPosition()),b(o,a).catch((e=>isNavigationFailure(e,12)?e:isNavigationFailure(e,2)?(_(e.to,o).then((e=>{isNavigationFailure(e,20)&&!n.delta&&n.type===NavigationType.pop&&r.go(-1,!1)})).catch(noop$1),Promise.reject()):(n.delta&&r.go(-n.delta,!1),I(e,o,a)))).then((e=>{(e=e||T(o,a,!1))&&(n.delta&&!isNavigationFailure(e,8)?r.go(-n.delta,!1):n.type===NavigationType.pop&&isNavigationFailure(e,20)&&r.go(-1,!1)),w(o,a,e)})).catch(noop$1)}))),C.list().forEach((([t,n])=>e?n(e):t())),C.reset()),e}function x(t,n,o,r){const{scrollBehavior:i}=e;if(!isBrowser||!i)return Promise.resolve();const a=!o&&getSavedScrollPosition(getScrollKey(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return nextTick().then((()=>i(t,n,a))).then((e=>e&&scrollToPosition(e))).catch((e=>I(e,t,n)))}const P=e=>r.go(e);let R;const L=new Set,$={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return isRouteName(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,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:m,replace:function(e){return m(assign$1(h(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:O.add,isReady:function(){return S&&c.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise(((e,t)=>{C.add([e,t])}))},install(e){e.component("RouterLink",RouterLink),e.component("RouterView",RouterView),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(c)}),isBrowser&&!R&&c.value===START_LOCATION_NORMALIZED&&(R=!0,m(r.location).catch((e=>{})));const t={};for(const o in START_LOCATION_NORMALIZED)t[o]=computed$1((()=>c.value[o]));e.provide(routerKey,this),e.provide(routeLocationKey,reactive(t)),e.provide(routerViewLocationKey,c);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(l=START_LOCATION_NORMALIZED,E&&E(),E=null,c.value=START_LOCATION_NORMALIZED,R=!1,S=!1),n()}}};return $}function runGuardQueue(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function extractChangingRecords(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aisSameRouteRecord(e,i)))?o.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>isSameRouteRecord(e,s)))||r.push(s))}return[n,o,r]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const isEnableLocale=once((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let i18n;function getLocaleMessage(){const e=getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function formatI18n(e){return isI18nStr(e,I18N_JSON_DELIMITERS)?useI18n().f(e,getLocaleMessage(),I18N_JSON_DELIMITERS):e}function resolveJsonObj(e,t){if(1===t.length){if(e){const n=e[t[0]];if(isString(n)&&isI18nStr(n,I18N_JSON_DELIMITERS))return e}return}const n=t.shift();return resolveJsonObj(e&&e[n],t)}function defineI18nProperty(e,t){const n=resolveJsonObj(e,t);if(!n)return!1;const o=t[t.length-1];let r=n[o];return Object.defineProperty(n,o,{get:()=>formatI18n(r),set(e){r=e}}),!0}function useI18n(){if(!i18n){let e;if(e=window.localStorage&&localStorage[UNI_STORAGE_LOCALE]||__uniConfig.locale||navigator.language,i18n=initVueI18n(e),isEnableLocale()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>i18n.add(e,__uniConfig.locales[e]))),i18n.setLocale(e)}}return i18n}function normalizeMessages(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const initI18nAsyncMsgsOnce=once((()=>{const e="uni.async.",t=["error"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["The connection timed out, click the screen to try again."]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["连接服务器超时,点击屏幕重试"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),initI18nShowToastMsgsOnce=once((()=>{const e="uni.showToast.",t=["unpaired"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Please note showToast must be paired with hideToast"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),initI18nShowLoadingMsgsOnce=once((()=>{const e="uni.showLoading.",t=["unpaired"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Please note showLoading must be paired with hideLoading"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),initI18nShowModalMsgsOnce=once((()=>{const e="uni.showModal.",t=["cancel","confirm"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Cancel","OK"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Cancelar","OK"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Annuler","OK"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["取消","确定"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["取消","確定"]),!1)})),initI18nChooseFileMsgsOnce=once((()=>{const e="uni.chooseFile.",t=["notUserActivation"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["File chooser dialog can only be shown with a user activation"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(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),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["文件选择器对话框只能在用户激活时显示"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["文件選擇器對話框只能在用戶激活時顯示"]),!1)}));function initTabBarI18n(e){return isEnableLocale()&&e.list&&e.list.forEach((e=>{defineI18nProperty(e,["text"])})),e}function initBridge(e){const t=new E$1;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,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}const INVOKE_VIEW_API="invokeViewApi",INVOKE_SERVICE_API="invokeServiceApi";let invokeServiceMethodId=1;const invokeServiceMethod=(e,t,n)=>{const{subscribe:o,publishHandler:r}=UniViewJSBridge$1,i=n?invokeServiceMethodId++:0;n&&o(INVOKE_SERVICE_API+"."+i,n,!0),r(INVOKE_SERVICE_API,{id:i,name:e,args:t})},viewMethods=Object.create(null);function normalizeViewMethodName(e,t){return e+"."+t}function subscribeViewMethod(e,t){UniViewJSBridge$1.subscribe(normalizeViewMethodName(e,INVOKE_VIEW_API),t?t(onInvokeViewMethod):onInvokeViewMethod)}function unsubscribeViewMethod(e){UniViewJSBridge$1.unsubscribe(normalizeViewMethodName(e,INVOKE_VIEW_API)),Object.keys(viewMethods).forEach((t=>{0===t.indexOf(e+".")&&delete viewMethods[t]}))}function registerViewMethod(e,t,n){t=normalizeViewMethodName(e,t),viewMethods[t]||(viewMethods[t]=n)}function unregisterViewMethod(e,t){t=normalizeViewMethodName(e,t),delete viewMethods[t]}function onInvokeViewMethod({id:e,name:t,args:n},o){t=normalizeViewMethodName(o,t);const r=t=>{e&&UniViewJSBridge$1.publishHandler(INVOKE_VIEW_API+"."+e,t)},i=viewMethods[t];i?i(n,r):r({})}const ViewJSBridge=extend$1(initBridge("service"),{invokeServiceMethod:invokeServiceMethod}),LONGPRESS_TIMEOUT=350,LONGPRESS_THRESHOLD=10,passiveOptions$2=passive(!0);let longPressTimer;function clearLongPressTimer(){longPressTimer&&(clearTimeout(longPressTimer),longPressTimer=null)}let startPageX=0,startPageY=0;function touchstart(e){if(clearLongPressTimer(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];startPageX=t,startPageY=n,longPressTimer=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)}),LONGPRESS_TIMEOUT)}function touchmove(e){if(!longPressTimer)return;if(1!==e.touches.length)return clearLongPressTimer();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-startPageX)>LONGPRESS_THRESHOLD||Math.abs(n-startPageY)>LONGPRESS_THRESHOLD?clearLongPressTimer():void 0}function initLongPress(){window.addEventListener("touchstart",touchstart,passiveOptions$2),window.addEventListener("touchmove",touchmove,passiveOptions$2),window.addEventListener("touchend",clearLongPressTimer,passiveOptions$2),window.addEventListener("touchcancel",clearLongPressTimer,passiveOptions$2)}function checkValue$1(e,t){const n=Number(e);return isNaN(n)?t:n}function getWindowWidth$1(){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}function useRem(){const e=__uniConfig.globalStyle||{},t=checkValue$1(e.rpxCalcMaxDeviceWidth,960),n=checkValue$1(e.rpxCalcBaseDeviceWidth,375);function o(){let e=getWindowWidth$1();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 initView(){useRem(),initCustomDatasetOnce(),initLongPress()}var attrs=["top","left","right","bottom"],inited$1,elementComputedStyle={},support;function getSupport(){return support="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 init(){if(support="string"==typeof support?support:getSupport()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),attrs.forEach((function(e){!function(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),l={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:support+"(safe-area-inset-"+n+")"};r(o,l),r(a,l),r(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(c),e.appendChild(o),e.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,r=a.scrollTop,attrChange(n))}o.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(elementComputedStyle,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}(o,e)})),document.body.appendChild(o),i(),inited$1=!0}else attrs.forEach((function(e){elementComputedStyle[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}}function getAttr(e){return inited$1||init(),elementComputedStyle[e]}var changeAttrs=[];function attrChange(e){changeAttrs.length||setTimeout((function(){var e={};changeAttrs.forEach((function(t){e[t]=elementComputedStyle[t]})),changeAttrs.length=0,callbacks.forEach((function(t){t(e)}))}),0),changeAttrs.push(e)}var callbacks=[];function onChange(e){getSupport()&&(inited$1||init(),"function"==typeof e&&callbacks.push(e))}function offChange(e){var t=callbacks.indexOf(e);t>=0&&callbacks.splice(t,1)}var safeAreaInsets={get support(){return 0!=("string"==typeof support?support:getSupport()).length},get top(){return getAttr("top")},get left(){return getAttr("left")},get right(){return getAttr("right")},get bottom(){return getAttr("bottom")},onChange:onChange,offChange:offChange},out=safeAreaInsets;const onEventPrevent=withModifiers((()=>{}),["prevent"]),onEventStop=withModifiers((()=>{}),["stop"]);function getWindowOffsetCssVar(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function getWindowTop(){const e=getWindowOffsetCssVar(document.documentElement.style,"--window-top");return e?e+out.top:0}function getWindowOffset(){const e=document.documentElement.style,t=getWindowTop(),n=getWindowOffsetCssVar(e,"--window-bottom"),o=getWindowOffsetCssVar(e,"--window-left"),r=getWindowOffsetCssVar(e,"--window-right"),i=getWindowOffsetCssVar(e,"--top-window-height");return{top:t,bottom:n?n+out.bottom:0,left:o?o+out.left:0,right:r?r+out.right:0,topWindowHeight:i||0}}function updateCssVar(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function updatePageCssVar(e){return updateCssVar(e)}function PolySymbol(e){return Symbol(e)}function hasRpx(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function rpx2px$1(e,t=!1){if(t)return rpx2pxWithReplace(e);if(isString(e)){const t=parseInt(e)||0;return hasRpx(e)?upx2px(t):t}return e}function rpx2pxWithReplace(e){return hasRpx(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>upx2px(parseFloat(t))+"px")):e}const ICON_PATH_SUCCESS_NO_CIRCLE="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",ICON_PATH_WARN="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";function createSvgIconVNode(e,t="#000",n=27){return createVNode("svg",{width:n,height:n,viewBox:"0 0 32 32"},[createVNode("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function useCurrentPageId(){{const{$pageInstance:e}=getCurrentInstance();return e&&e.proxy.$page.id}}function getPageIdByVm(e){const t=resolveComponentInstance(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function getCurrentPage(){const e=getCurrentPages$1(),t=e.length;if(t)return e[t-1]}function getCurrentPageMeta(){const e=getCurrentPage();if(e)return e.$page.meta}function getCurrentPageId(){const e=getCurrentPageMeta();return e?e.id:-1}function getCurrentPageVm(){const e=getCurrentPage();if(e)return e.$vm}const PAGE_META_KEYS=["navigationBar","pullToRefresh"];function initGlobalStyle(){return JSON.parse(JSON.stringify(__uniConfig.globalStyle||{}))}function initRouteMeta(e,t){const n=initGlobalStyle(),o=extend$1({id:t},n,e);PAGE_META_KEYS.forEach((t=>{o[t]=extend$1({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function initPageInternalInstance(e,t,n,o,r){const{id:i,route:a}=o;return{id:i,path:addLeadingSlash(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#000000"===o.navigationBar.titleColor?"dark":"light"}}function invokeHook(e,t,n){if(isString(e))n=t,t=e,e=getCurrentPageVm();else if("number"==typeof e){const t=getCurrentPages$1().find((t=>t.$page.id===e));e=t?t.$vm:getCurrentPageVm()}if(!e)return;const o=e.$[t];return o&&invokeArrayFns(o,n)}function disableScrollListener(e){e.preventDefault()}let testReachBottomTimer,lastScrollHeight=0;function createScrollListener({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,r=!1,i=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-lastScrollHeight)>n;return!i||r&&!a?(!i&&r&&(r=!1),!1):(lastScrollHeight=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(testReachBottomTimer=setTimeout(a,300))),o=!1};return function(){clearTimeout(testReachBottomTimer),o||requestAnimationFrame(a),o=!0}}function normalizeRoute(e){if(0===e.indexOf("/"))return e;let t="";const n=getCurrentPages$1();return n.length&&(t=n[n.length-1].$page.route),getRealRoute(t,e)}function getRealRoute(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return getRealRoute(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),addLeadingSlash(i.concat(n).join("/"))}function getRouteOptions(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function normalizeTabBarRoute(e,t,n){const o=getRouteOptions(addLeadingSlash(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const r=getRouteOptions(addLeadingSlash(n));if(r){const{meta:t}=r;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=removeLeadingSlash(n))}}class ComponentDescriptor{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=resolveOwnerEl(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=getWxsVm(this.$el.querySelector(e));return t?createComponentDescriptor(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-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];isFunction$1(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&UniViewJSBridge$1.publishHandler(ON_WXS_INVOKE_CALL_METHOD,{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 createComponentDescriptor(e,t=!0){if(t&&e&&(e=resolveOwnerVm(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new ComponentDescriptor(e)),e.$el.__wxsComponentDescriptor}function getComponentDescriptor(e,t){return createComponentDescriptor(e,t)}function resolveOwnerComponentPublicInstance(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=resolveOwnerVm(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}function wrapperH5WxsEvent(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>getComponentDescriptor(n.proxy,!1)}));const r=resolveOwnerComponentPublicInstance(t,n,o);if(r)return[e,getComponentDescriptor(r,!1)]}}function getWxsVm(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}const isClickEvent=e=>"click"===e.type,isMouseEvent=e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type);function $nne(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event&&o instanceof HTMLElement))return[e];const r=0!==o.tagName.indexOf("UNI-");if(r)return wrapperH5WxsEvent(e,t,n,!1)||[e];const i=createNativeEvent(e,r);if(isClickEvent(e))normalizeClickEvent(i,e);else if(isMouseEvent(e))normalizeMouseEvent(i,e);else if(e instanceof TouchEvent){const t=getWindowTop();i.touches=normalizeTouchEvent(e.touches,t),i.changedTouches=normalizeTouchEvent(e.changedTouches,t)}return wrapperH5WxsEvent(i,t,n)||[i]}function findUniTarget(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function createNativeEvent(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e,a={type:n,timeStamp:o,target:normalizeTarget(t?r:findUniTarget(r)),detail:{},currentTarget:normalizeTarget(i)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),wrapperEvent(a,e),a}function wrapperEvent(e,t){extend$1(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}function normalizeClickEvent(e,t){const{x:n,y:o}=t,r=getWindowTop();e.detail={x:n,y:o-r},e.touches=e.changedTouches=[createTouchEvent(t,r)]}function normalizeMouseEvent(e,t){const n=getWindowTop();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[createTouchEvent(t,n)]}function createTouchEvent(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function normalizeTouchEvent(e,t){const n=[];for(let o=0;oUniServiceJSBridge$1.emit("api."+e,t);let invokeViewMethodId=1;function publishViewMethodName(){return getCurrentPageId()+"."+INVOKE_VIEW_API}const invokeViewMethod=(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=UniServiceJSBridge$1,a=o?invokeViewMethodId++:0;o&&r(INVOKE_VIEW_API+"."+a,o,!0),i(publishViewMethodName(),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive=(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:a}=UniServiceJSBridge$1,s=invokeViewMethodId++,c=INVOKE_VIEW_API+"."+s;return r(c,n),a(publishViewMethodName(),{id:s,name:e,args:t},o),()=>{i(c)}},ServiceJSBridge=extend$1(initBridge("view"),{invokeOnCallback:invokeOnCallback,invokeViewMethod:invokeViewMethod,invokeViewMethodKeepAlive:invokeViewMethodKeepAlive});function initOn(){const{on:e}=UniServiceJSBridge$1;e(ON_RESIZE,onResize$1),e(ON_APP_ENTER_FOREGROUND,onAppEnterForeground),e(ON_APP_ENTER_BACKGROUND,onAppEnterBackground)}function onResize$1(e){invokeHook(getCurrentPage(),ON_RESIZE,e),UniServiceJSBridge$1.invokeOnCallback("onWindowResize",e)}function onAppEnterForeground(e){const t=getCurrentPage();invokeHook(getApp$1(),ON_SHOW,e),invokeHook(t,ON_SHOW)}function onAppEnterBackground(){invokeHook(getApp$1(),ON_HIDE),invokeHook(getCurrentPage(),ON_HIDE)}const SUBSCRIBE_LIFECYCLE_HOOKS=[ON_PAGE_SCROLL,ON_REACH_BOTTOM];function initSubscribe(){SUBSCRIBE_LIFECYCLE_HOOKS.forEach((e=>UniServiceJSBridge$1.subscribe(e,createPageEvent(e))))}function createPageEvent(e){return(t,n)=>{invokeHook(parseInt(n),e,t)}}function initService(){initOn(),initSubscribe()}function initAppVm(e){e.$vm=e,e.$mpType="app";const t=ref(useI18n().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}function initPageVm(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}function getOpenerEventChannel(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new EventChannel(this.$page.id)),e.eventChannel}}function initAppConfig(e){e.globalProperties.getOpenerEventChannel=getOpenerEventChannel}function initServicePlugin(e){initAppConfig(e._context.config)}function createLaunchOptions(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function defineGlobalData(e,t){const n=e.$options||{};n.globalData=extend$1(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}function converPx(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${upx2px(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}function getStyle(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"],r=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,c={},l=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(converPx)),n.indexOf(i)>=0&&(a.length=1),l.push(`${i}(${a.join(",")})`);else if(o.concat(r).includes(a[0])){i=a[0];const e=a[1];c[i]=r.includes(i)?converPx(e):e}})),c.transform=c.webkitTransform=l.join(" "),c.transition=c.webkitTransition=Object.keys(c).map((e=>`${converType(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),c.transformOrigin=c.webkitTransformOrigin=a.transformOrigin,c}function startAnimation(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],a=t.option.transition,s=getStyle(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n{i()}),0)}var animation={props:["animation"],watch:{animation:{deep:!0,handler(){startAnimation(this)}}},mounted(){startAnimation(this)}};const defineBuiltInComponent=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(animation),defineSystemComponent(e)},defineSystemComponent=e=>(e.__reserved=!0,e.compatConfig={MODE:3},defineComponent(e)),hoverProps={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function useHover(e){const t=ref(!1);let n,o,r=!1;function i(){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),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&i()}function c(){s(),window.removeEventListener("mouseup",c)}return{hovering:t,binding:{onTouchstartPassive:function(e){e.touches.length>1||a(e)},onMousedown:function(e){r||(a(e),window.addEventListener("mouseup",c))},onTouchend:function(){s()},onMouseup:function(){r&&c()},onTouchcancel:function(){r=!1,t.value=!1,clearTimeout(n)}}}}function useBooleanAttr(e,t){return isString(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function withWebEvent(e){return e.__wwe=!0,e}function useCustomEvent(e,t){return(n,o,r)=>{e.value&&t(n,normalizeCustomEvent(n,o,e.value,r||{}))}}function useNativeEvent(e){return(t,n)=>{e(t,createNativeEvent(n))}}function normalizeCustomEvent(e,t,n,o){const r=normalizeTarget(n);return{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}const uniFormKey=PolySymbol("uf"),uniLabelKey=PolySymbol("ul");function useListeners$1(e,t){_addListeners(e.id,t),watch((()=>e.id),((e,n)=>{_removeListeners(n,t,!0),_addListeners(e,t,!0)})),onUnmounted((()=>{_removeListeners(e.id,t)}))}function _addListeners(e,t,n){const o=useCurrentPageId();n&&!e||isPlainObject$2(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&UniViewJSBridge$1.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?UniViewJSBridge$1.on(r,t[r]):e&&UniViewJSBridge$1.on(`uni-${r}-${o}-${e}`,t[r])}))}function _removeListeners(e,t,n){const o=useCurrentPageId();n&&!e||isPlainObject$2(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&UniViewJSBridge$1.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?UniViewJSBridge$1.off(r,t[r]):e&&UniViewJSBridge$1.off(`uni-${r}-${o}-${e}`,t[r])}))}const buttonProps={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}};var index$z=defineBuiltInComponent({name:"Button",props:buttonProps,setup(e,{slots:t}){const n=ref(null),o=inject(uniFormKey,!1),{hovering:r,binding:i}=useHover(e);useI18n();const a=withWebEvent(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),s=inject(uniLabelKey,!1);return s&&(s.addHandler(a),onBeforeUnmount((()=>{s.removeHandler(a)}))),useListeners$1(e,{"label-click":a}),()=>{const o=e.hoverClass,s=useBooleanAttr(e,"disabled"),c=useBooleanAttr(e,"loading"),l=useBooleanAttr(e,"plain"),u=o&&"none"!==o;return createVNode("uni-button",mergeProps({ref:n,onClick:a,class:u&&r.value?o:""},u&&i,s,c,l),[t.default&&t.default()],16,["onClick"])}}});function findElem(e){return e.$el}function addBase(e){const{base:t}=__uniConfig.router;return 0===addLeadingSlash(e).indexOf(t)?addLeadingSlash(e):t+e}function getRealPath(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return addBase(e.slice(1));e="https:"+e}if(SCHEME_RE.test(e)||DATA_RE.test(e)||0===e.indexOf("blob:"))return e;const o=getCurrentPages$1();return o.length?addBase(getRealRoute(o[o.length-1].$page.route,e).slice(1)):e}const ua=navigator.userAgent,isAndroid=/android/i.test(ua),isIOS$1=/iphone|ipad|ipod/i.test(ua),isWindows=ua.match(/Windows NT ([\d|\d.\d]*)/i),isMac=/Macintosh|Mac/i.test(ua),isLinux=/Linux|X11/i.test(ua),isIPadOS=isMac&&navigator.maxTouchPoints>0;function getScreenFix(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function isLandscape(e){return e&&90===Math.abs(window.orientation)}function getScreenWidth(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function getScreenHeight(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}function getWindowWidth(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function getBaseSystemInfo(){const e=getScreenFix(),t=getWindowWidth(getScreenWidth(e,isLandscape(e)));return{platform:isIOS$1?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}function operateVideoPlayer(e,t,n,o){UniServiceJSBridge$1.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function operateMap(e,t,n,o,r){UniServiceJSBridge$1.invokeViewMethod("map."+e,{type:n,data:o},t,r)}function getRootInfo(e){const t={};if(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),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}function getNodeInfo(e,t){const n={},{top:o,topWindowHeight:r}=getWindowOffset();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=getCustomDataset(e)),t.rect||t.size){const i=e.getBoundingClientRect();t.rect&&(n.left=i.left,n.right=i.right,n.top=i.top-o-r,n.bottom=i.bottom-o-r),t.size&&(n.width=i.width,n.height=i.height)}if(isArray$4(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(isArray$4(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=getContextInfo(e)),n}function findElm(e,t){return e?e.$el:t.$el}function matches(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)}function getNodesInfo(e,t,n,o,r){const i=findElm(t,e),a=i.parentElement;if(!a)return o?null:[];const{nodeType:s}=i,c=3===s||8===s;if(o){const e=c?a.querySelector(n):matches(i,n)?i:i.querySelector(n);return e?getNodeInfo(e,r):null}{let e=[];const t=(c?a:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(getNodeInfo(t,r))})),!c&&matches(i,n)&&e.unshift(getNodeInfo(i,r)),e}}function requestComponentInfo(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:r,fields:i})=>{null===t?o.push(getRootInfo(i)):o.push(getNodesInfo(e,t,n,r,i))})),n(o)}const CHOOSE_SIZE_TYPES=["original","compressed"],CHOOSE_SOURCE_TYPES=["album","camera"],HTTP_METHODS=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function elemInArray(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function elemsInArray(e,t){return!isArray$4(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function tryCatch(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let invokeCallbackId=1;const invokeCallbacks={};function addInvokeCallback(e,t,n,o=!1){return invokeCallbacks[e]={name:t,keepAlive:o,callback:n},e}function invokeCallback(e,t,n){if("number"==typeof e){const o=invokeCallbacks[e];if(o)return o.keepAlive||delete invokeCallbacks[e],o.callback(t,n)}return t}const API_SUCCESS="success",API_FAIL="fail",API_COMPLETE="complete";function getApiCallbacks(e){const t={};for(const n in e){const o=e[n];isFunction$1(o)&&(t[n]=tryCatch(o),delete e[n])}return t}function normalizeErrMsg$1(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}function createAsyncApiCallback(e,t={},{beforeAll:n,beforeSuccess:o}={}){isPlainObject$2(t)||(t={});const{success:r,fail:i,complete:a}=getApiCallbacks(t),s=isFunction$1(r),c=isFunction$1(i),l=isFunction$1(a),u=invokeCallbackId++;return addInvokeCallback(u,e,(u=>{(u=u||{}).errMsg=normalizeErrMsg$1(u.errMsg,e),isFunction$1(n)&&n(u),u.errMsg===e+":ok"?(isFunction$1(o)&&o(u,t),s&&r(u)):c&&i(u),l&&a(u)})),u}const HOOK_SUCCESS="success",HOOK_FAIL="fail",HOOK_COMPLETE="complete",globalInterceptors={},scopedInterceptors={};function wrapperHook(e){return function(t){return e(t)||t}}function queue(e,t){let n=!1;for(let o=0;oe(t),catch(){}}}function wrapperOptions(e,t={}){return[HOOK_SUCCESS,HOOK_FAIL,HOOK_COMPLETE].forEach((n=>{const o=e[n];if(!isArray$4(o))return;const r=t[n];t[n]=function(e){queue(o,e).then((e=>isFunction$1(r)&&r(e)||e))}})),t}function wrapperReturnValue(e,t){const n=[];isArray$4(globalInterceptors.returnValue)&&n.push(...globalInterceptors.returnValue);const o=scopedInterceptors[e];return o&&isArray$4(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function getApiInterceptorHooks(e){const t=Object.create(null);Object.keys(globalInterceptors).forEach((e=>{"returnValue"!==e&&(t[e]=globalInterceptors[e].slice())}));const n=scopedInterceptors[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function invokeApi(e,t,n,o){const r=getApiInterceptorHooks(e);if(r&&Object.keys(r).length){if(isArray$4(r.invoke)){return queue(r.invoke,n).then((e=>t(wrapperOptions(r,e),...o)))}return t(wrapperOptions(r,n),...o)}return t(n,...o)}function hasCallback(e){return!(!isPlainObject$2(e)||![API_SUCCESS,API_FAIL,API_COMPLETE].find((t=>isFunction$1(e[t]))))}function handlePromise(e){return e}function promisify(e,t){return(n={},...o)=>hasCallback(n)?wrapperReturnValue(e,invokeApi(e,t,n,o)):wrapperReturnValue(e,handlePromise(new Promise(((r,i)=>{invokeApi(e,t,extend$1(n,{success:r,fail:i}),o)}))))}function formatApiArgs(e,t){const n=e[0];if(!t||!isPlainObject$2(t.formatArgs)&&isPlainObject$2(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const i=createAsyncApiCallback(e,r,o),a=beforeInvokeApi(e,[r],n,o);return a?invokeFail(i,e,a):t(r,{resolve:t=>invokeSuccess(i,e,t),reject:(t,n)=>invokeFail(i,e,normalizeErrMsg(t),n)})}}function wrapperSyncApi(e,t,n,o){return(...r)=>{const i=beforeInvokeApi(e,r,n,o);if(i)throw new Error(i);return t.apply(null,r)}}function wrapperAsyncApi(e,t,n,o){return wrapperTaskApi(e,t,n,o)}function defineTaskApi(e,t,n,o){return promisify(e,wrapperTaskApi(e,t,void 0,o))}function defineSyncApi(e,t,n,o){return wrapperSyncApi(e,t,void 0,o)}function defineAsyncApi(e,t,n,o){return promisify(e,wrapperAsyncApi(e,t,void 0,o))}function createUnsupportedMsg(e){return`method 'uni.${e}' not supported`}function createUnsupportedAsyncApi(e){return(t,{reject:n})=>n(createUnsupportedMsg(e))}const API_UPX2PX="upx2px",EPS=1e-4,BASE_DEVICE_WIDTH=750;let isIOS=!1,deviceWidth=0,deviceDPR=0,maxWidth=960,baseWidth=375;function checkDeviceWidth(){const{platform:e,pixelRatio:t,windowWidth:n}=getBaseSystemInfo();deviceWidth=n,deviceDPR=t,isIOS="ios"===e}function checkValue(e,t){const n=Number(e);return isNaN(n)?t:n}function checkMaxWidth(){const e=__uniConfig.globalStyle||{};maxWidth=checkValue(e.rpxCalcMaxDeviceWidth,960),baseWidth=checkValue(e.rpxCalcBaseDeviceWidth,375)}const upx2px=defineSyncApi(API_UPX2PX,((e,t)=>{if(0===deviceWidth&&(checkDeviceWidth(),checkMaxWidth()),0===(e=Number(e)))return 0;let n=t||deviceWidth;n=n<=maxWidth?n:baseWidth;let o=e/BASE_DEVICE_WIDTH*n;return o<0&&(o=-o),o=Math.floor(o+EPS),0===o&&(o=1!==deviceDPR&&isIOS?.5:1),e<0?-o:o})),API_ADD_INTERCEPTOR="addInterceptor";function mergeInterceptorHook(e,t){Object.keys(t).forEach((n=>{isFunction$1(t[n])&&(e[n]=mergeHook(e[n],t[n]))}))}function mergeHook(e,t){const n=t?e?e.concat(t):isArray$4(t)?t:[t]:e;return n?dedupeHooks(n):n}function dedupeHooks(e){const t=[];for(let n=0;n{isString(e)&&isPlainObject$2(t)?mergeInterceptorHook(scopedInterceptors[e]||(scopedInterceptors[e]={}),t):isPlainObject$2(e)&&mergeInterceptorHook(globalInterceptors,e)})),API_ON="$on",API_OFF="$off",API_EMIT="$emit",emitter=new E$1,$on=defineSyncApi(API_ON,((e,t)=>(emitter.on(e,t),()=>emitter.off(e,t)))),$off=defineSyncApi(API_OFF,((e,t)=>{e?(isArray$4(e)||(e=[e]),e.forEach((e=>emitter.off(e,t)))):emitter.e={}})),$emit=defineSyncApi(API_EMIT,((e,...t)=>{emitter.emit(e,...t)})),validator=[{name:"id",type:String,required:!0}],API_CREATE_CANVAS_CONTEXT="createCanvasContext";validator.concat({name:"componentInstance",type:Object});const RATES=[.5,.8,1,1.25,1.5,2];class VideoContext{constructor(e,t){this.id=e,this.pageId=t}play(){operateVideoPlayer(this.id,this.pageId,"play")}pause(){operateVideoPlayer(this.id,this.pageId,"pause")}stop(){operateVideoPlayer(this.id,this.pageId,"stop")}seek(e){operateVideoPlayer(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){operateVideoPlayer(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~RATES.indexOf(e)||(e=1),operateVideoPlayer(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){operateVideoPlayer(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){operateVideoPlayer(this.id,this.pageId,"exitFullScreen")}showStatusBar(){operateVideoPlayer(this.id,this.pageId,"showStatusBar")}hideStatusBar(){operateVideoPlayer(this.id,this.pageId,"hideStatusBar")}}const operateMapCallback=(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)},operateMapWrap=(e,t,n,o)=>{operateMap(e,t,n,o,(e=>{o&&operateMapCallback(o,e)}))};class MapContext{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){operateMapWrap(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){operateMapWrap(this.id,this.pageId,"moveToLocation",e)}getScale(e){operateMapWrap(this.id,this.pageId,"getScale",e)}getRegion(e){operateMapWrap(this.id,this.pageId,"getRegion",e)}includePoints(e){operateMapWrap(this.id,this.pageId,"includePoints",e)}translateMarker(e){operateMapWrap(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){operateMapWrap(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){operateMapWrap(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){operateMapWrap(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){operateMapWrap(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){operateMapWrap(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){operateMapWrap(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){operateMapWrap(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){operateMapWrap(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){operateMapWrap(this.id,this.pageId,"moveAlong",e)}openMapApp(e){operateMapWrap(this.id,this.pageId,"openMapApp",e)}on(e){operateMapWrap(this.id,this.pageId,"on",e)}}function getInt(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const formatWidth=getInt("width"),formatHeight=getInt("height"),API_CANVAS_GET_IMAGE_DATA="canvasGetImageData",CanvasGetImageDataOptions={formatArgs:{x:getInt("x"),y:getInt("y"),width:formatWidth,height:formatHeight}},CanvasGetImageDataProtocol={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},fileTypes={PNG:"png",JPG:"jpg",JPEG:"jpg"},API_CANVAS_TO_TEMP_FILE_PATH="canvasToTempFilePath",CanvasToTempFilePathOptions={formatArgs:{x:getInt("x",0),y:getInt("y",0),width:formatWidth,height:formatHeight,destWidth:getInt("destWidth"),destHeight:getInt("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=fileTypes[e];n||(n=fileTypes.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}},CanvasToTempFilePathProtocol={x:Number,y:Number,width:Number,height:Number,destWidth:Number,destHeight:Number,canvasId:{type:String,required:!0},fileType:String,quality:Number};function operateCanvas(e,t,n,o,r){UniServiceJSBridge$1.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}var methods1=["scale","rotate","translate","setTransform","transform"],methods2=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],methods3=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function measureText(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}const predefinedColor={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 checkColor(e){var 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(hasOwn$1(predefinedColor,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(predefinedColor[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let i=parseInt(t[1].slice(6,8),16);return i=i>=0?i:255,[e,o,r,i]}return console.error("unsupported color:"+e),[0,0,0,255]}class CanvasGradient{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,checkColor(t)])}}class Pattern{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class TextMetrics{constructor(e){this.width=e}}class CanvasContext{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"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],operateCanvas(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new CanvasGradient("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new CanvasGradient("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 Pattern(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){let t=0;return t=measureText(e,this.state.font),new TextMetrics(t)}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,r,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,r,i]}),this.subpath.push([r,i])}arc(e,t,n,o,r,i=!1){this.path.push({method:"arc",data:[e,t,n,o,r,i]}),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,r){this.path.push({method:"arcTo",data:[e,t,n,o,r]}),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+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),r=parseFloat(n[3]),i=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"].indexOf(e)>-1?(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=r,this.state.fontFamily=i,this.actions.push({method:"setFont",data:[`${o} ${r}px ${i}`]})}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 initCanvasContextProperty=once((()=>{[...methods1,...methods2].forEach((function(e){CanvasContext.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,r){var i=[t.toString(),n,o];"number"==typeof r&&i.push(r),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,o,r,i,a,s,c,l){var u;function d(e){return"number"==typeof e}void 0===l&&(a=n,s=o,c=r,l=i,n=void 0,o=void 0,r=void 0,i=void 0),u=d(n)&&d(o)&&d(r)&&d(i)?[t,a,s,c,l,n,o,r,i]:d(c)&&d(l)?[t,a,s,c,l]:[t,a,s],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),methods3.forEach((function(e){CanvasContext.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",checkColor(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,r){r=checkColor(r),this.actions.push({method:e,data:[t,n,o,r]}),this.state.shadowBlur=o,this.state.shadowColor=r,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)}))})),createCanvasContext=defineSyncApi(API_CREATE_CANVAS_CONTEXT,((e,t)=>{if(initCanvasContextProperty(),t)return new CanvasContext(e,getPageIdByVm(t));const n=getPageIdByVm(getCurrentPageVm());if(n)return new CanvasContext(e,n);UniServiceJSBridge$1.emit(ON_ERROR,"createCanvasContext:fail")})),canvasGetImageData=defineAsyncApi(API_CANVAS_GET_IMAGE_DATA,(({canvasId:e,x:t,y:n,width:o,height:r},{resolve:i,reject:a})=>{const s=getPageIdByVm(getCurrentPageVm());s?operateCanvas(e,s,"getImageData",{x:t,y:n,width:o,height:r},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void a("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,i(e)})):a()}),CanvasGetImageDataProtocol,CanvasGetImageDataOptions),canvasToTempFilePath=defineAsyncApi(API_CANVAS_TO_TEMP_FILE_PATH,(({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,canvasId:a,fileType:s,quality:c},{resolve:l,reject:u})=>{var d=getPageIdByVm(getCurrentPageVm());if(!d)return void u();operateCanvas(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,fileType:s,quality:c,dirname:`${TEMP_PATH}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):l(e)}))}),CanvasToTempFilePathProtocol,CanvasToTempFilePathOptions),defaultOptions$1={thresholds:[0],initialRatio:0,observeAll:!1},MARGINS=["top","right","bottom","left"];let reqComponentObserverId$1=1;function normalizeRootMargin(e={}){return MARGINS.map((t=>`${Number(e[t])||0}px`)).join(" ")}class ServiceIntersectionObserver{constructor(e,t){this._pageId=getPageIdByVm(e),this._component=e,this._options=extend$1({},defaultOptions$1,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=normalizeRootMargin(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=normalizeRootMargin(e),this}observe(e,t){isFunction$1(t)&&(this._options.selector=e,this._reqId=reqComponentObserverId$1++,addIntersectionObserver({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&removeIntersectionObserver({reqId:this._reqId,component:this._component},this._pageId)}}const createIntersectionObserver=defineSyncApi("createIntersectionObserver",((e,t)=>((e=resolveComponentInstance(e))&&!getPageIdByVm(e)&&(t=e,e=null),new ServiceIntersectionObserver(e||getCurrentPageVm(),t))));let index$y=0,optionsCache={};function operateEditor(e,t,n,o){const r={options:o},i=o&&("success"in o||"fail"in o||"complete"in o);if(i){const e=String(index$y++);r.callbackId=e,optionsCache[e]=o}UniServiceJSBridge$1.invokeViewMethod(`editor.${e}`,{type:n,data:r},t,(({callbackId:e,data:t})=>{i&&(callOptions(optionsCache[e],t),delete optionsCache[e])}))}class EditorContext{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){operateEditor(this.id,this.pageId,e,t)}}const ContextClasss={canvas:CanvasContext,map:MapContext,video:VideoContext,editor:EditorContext};function convertContext(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,r=ContextClasss[n];e.context=new r(t,o),delete e.contextInfo}}class NodesRef{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}}class SelectorQuery{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return requestComponentInfo(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{isArray$4(e)?e.forEach(convertContext):convertContext(e);const o=n[t];isFunction$1(o)&&o.call(this,e)})),isFunction$1(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=resolveComponentInstance(e),this}select(e){return this._nodesRef=new NodesRef(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new NodesRef(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new NodesRef(this,null,"",!0)}_push(e,t,n,o,r){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(r)}}const createSelectorQuery=defineSyncApi("createSelectorQuery",(e=>((e=resolveComponentInstance(e))&&!getPageIdByVm(e)&&(e=null),new SelectorQuery(e||getCurrentPageVm())))),API_GET_LOCALE="getLocale",getLocale=defineSyncApi(API_GET_LOCALE,(()=>{const e=getApp$1();return e&&e.$vm?e.$vm.$locale:useI18n().getLocale()})),appHooks={[ON_UNHANDLE_REJECTION]:[],[ON_PAGE_NOT_FOUND]:[],[ON_ERROR]:[],[ON_SHOW]:[],[ON_HIDE]:[]};function injectAppHooks(e){Object.keys(appHooks).forEach((t=>{appHooks[t].forEach((n=>{injectHook(t,n,e)}))}))}const API_VIBRATE_SHORT="vibrateShort",API_GET_STORAGE_SYNC="getStorageSync",API_SET_STORAGE="setStorage",API_SET_STORAGE_SYNC="setStorageSync",API_REMOVE_STORAGE="removeStorage",API_HIDE_KEYBOARD="hideKeyboard",API_CHOOSE_IMAGE="chooseImage",ChooseImageOptions={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=elemsInArray(e,CHOOSE_SIZE_TYPES)},sourceType(e,t){t.sourceType=elemsInArray(e,CHOOSE_SOURCE_TYPES)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},ChooseImageProtocol={count:Number,sizeType:[Array,String],sourceType:Array,extension:Array},API_GET_IMAGE_INFO="getImageInfo",GetImageInfoOptions={formatArgs:{src(e,t){t.src=getRealPath(e)}}},GetImageInfoProtocol={src:{type:String,required:!0}},API_PREVIEW_IMAGE="previewImage",PreviewImageOptions={formatArgs:{urls(e,t){t.urls=e.map((e=>isString(e)&&e?getRealPath(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(hasOwn$1(t,s)){let e=t[s];null==e?e="":isPlainObject$2(e)&&(e=JSON.stringify(e)),a[encode(s)]=encode(e)}return r=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}const RequestProtocol={method:String,data:[Object,String,Array,ArrayBuffer],url:{type:String,required:!0},header:Object,dataType:String,responseType:String,withCredentials:Boolean},RequestOptions={formatArgs:{method(e,t){t.method=elemInArray((e||"").toUpperCase(),HTTP_METHODS)},data(e,t){t.data=e||""},url(e,t){t.method===HTTP_METHODS[0]&&isPlainObject$2(t.data)&&Object.keys(t.data).length&&(t.url=stringifyQuery(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==HTTP_METHODS[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||dataType.JSON).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===RESPONSE_TYPE.indexOf(t.responseType)&&(t.responseType=DEFAULT_RESPONSE_TYPE)}}},API_DOWNLOAD_FILE="downloadFile",DownloadFileOptions={formatArgs:{header(e,t){t.header=e||{}}}},DownloadFileProtocol={url:{type:String,required:!0},header:Object,timeout:Number},API_UPLOAD_FILE="uploadFile",UploadFileOptions={formatArgs:{filePath(e,t){e&&(t.filePath=getRealPath(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},UploadFileProtocol={url:{type:String,required:!0},files:Array,filePath:String,name:String,header:Object,formData:Object,timeout:Number};function encodeQueryString(e){if(!isString(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(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}const ANIMATION_IN$1=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],ANIMATION_OUT$1=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],BaseRouteProtocol={url:{type:String,required:!0}},API_NAVIGATE_TO="navigateTo",API_REDIRECT_TO="redirectTo",API_RE_LAUNCH="reLaunch",API_SWITCH_TAB="switchTab",API_NAVIGATE_BACK="navigateBack",API_PRELOAD_PAGE="preloadPage",API_UN_PRELOAD_PAGE="unPreloadPage",NavigateToProtocol=extend$1({},BaseRouteProtocol,createAnimationProtocol(ANIMATION_IN$1)),NavigateBackProtocol=extend$1({delta:{type:Number}},createAnimationProtocol(ANIMATION_OUT$1)),RedirectToProtocol=BaseRouteProtocol,ReLaunchProtocol=BaseRouteProtocol,SwitchTabProtocol=BaseRouteProtocol,NavigateToOptions=createRouteOptions(API_NAVIGATE_TO),RedirectToOptions=createRouteOptions(API_REDIRECT_TO),ReLaunchOptions=createRouteOptions(API_RE_LAUNCH),SwitchTabOptions=createRouteOptions(API_SWITCH_TAB),NavigateBackOptions={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(getCurrentPages$1().length-1,e)}}};function createAnimationProtocol(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 navigatorLock;function beforeRoute(){navigatorLock=""}function createRouteOptions(e){return{formatArgs:{url:createNormalizeUrl(e)},beforeAll:beforeRoute}}function createNormalizeUrl(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=normalizeRoute(t)).split("?")[0],r=getRouteOptions(o,!0);if(!r)return"page `"+t+"` is not found";if(e===API_NAVIGATE_TO||e===API_REDIRECT_TO){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===API_SWITCH_TAB&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==API_SWITCH_TAB&&e!==API_PRELOAD_PAGE||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=encodeQueryString(t),e!==API_UN_PRELOAD_PAGE)if(e!==API_PRELOAD_PAGE){if(navigatorLock===t&&"appLaunch"!==n.openType)return`${navigatorLock} locked`;__uniConfig.ready&&(navigatorLock=t)}else if(r.meta.isTabBar){const e=getCurrentPages$1(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const API_HIDE_LOADING="hideLoading",FRONT_COLORS=["#ffffff","#000000"],API_SET_NAVIGATION_BAR_COLOR="setNavigationBarColor",SetNavigationBarColorOptions={formatArgs:{animation(e,t){e||(e={duration:0,timingFunc:"linear"}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},SetNavigationBarColorProtocol={frontColor:{type:String,required:!0,validator(e){if(-1===FRONT_COLORS.indexOf(e))return`invalid frontColor "${e}"`}},backgroundColor:{type:String,required:!0},animation:Object},API_SET_NAVIGATION_BAR_TITLE="setNavigationBarTitle",API_SHOW_NAVIGATION_BAR_LOADING="showNavigationBarLoading",API_HIDE_NAVIGATION_BAR_LOADING="hideNavigationBarLoading",API_PAGE_SCROLL_TO="pageScrollTo",PageScrollToProtocol={scrollTop:Number,selector:String,duration:Number},PageScrollToOptions={formatArgs:{duration:300}},API_SHOW_LOADING="showLoading",ShowLoadingProtocol={title:String,mask:Boolean},ShowLoadingOptions={formatArgs:{title:"",mask:!1}},API_SHOW_MODAL="showModal",ShowModalProtocol={title:String,content:String,showCancel:Boolean,cancelText:String,cancelColor:String,confirmText:String,confirmColor:String},ShowModalOptions={beforeInvoke(){initI18nShowModalMsgsOnce()},formatArgs:{title:"",content:"",showCancel:!0,cancelText(e,t){if(!hasOwn$1(t,"cancelText")){const{t:e}=useI18n();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!hasOwn$1(t,"confirmText")){const{t:e}=useI18n();t.confirmText=e("uni.showModal.confirm")}},confirmColor:PRIMARY_COLOR}},API_SHOW_TOAST="showToast",SHOW_TOAST_ICON=["success","loading","none","error"],ShowToastProtocol={title:String,icon:String,image:String,duration:Number,mask:Boolean},ShowToastOptions={formatArgs:{title:"",icon(e,t){t.icon=elemInArray(e,SHOW_TOAST_ICON)},image(e,t){t.image=e?getRealPath(e):""},duration:1500,mask:!1}},API_STOP_PULL_DOWN_REFRESH="stopPullDownRefresh",IndexOptions={beforeInvoke(){const e=getCurrentPageMeta();if(e&&!e.isTabBar)return"not TabBar page"},formatArgs:{index(e){if(!__uniConfig.tabBar.list[e])return"tabbar item not found"}}},API_SET_TAB_BAR_ITEM="setTabBarItem";IndexOptions.beforeInvoke,IndexOptions.formatArgs;const API_SET_TAB_BAR_STYLE="setTabBarStyle",GRADIENT_RE=/^(linear|radial)-gradient\(.+?\);?$/;IndexOptions.beforeInvoke;const API_HIDE_TAB_BAR="hideTabBar",API_SHOW_TAB_BAR="showTabBar",API_HIDE_TAB_BAR_RED_DOT="hideTabBarRedDot",API_SHOW_TAB_BAR_RED_DOT="showTabBarRedDot",API_REMOVE_TAB_BAR_BADGE="removeTabBarBadge",API_SET_TAB_BAR_BADGE="setTabBarBadge";IndexOptions.beforeInvoke,IndexOptions.formatArgs;const initIntersectionObserverPolyfill=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(e){for(var t=window.document,n=r(t);n;)n=r(t=n.ownerDocument);return t}(),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?d(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,i=null,a=null;this.POLL_INTERVAL?i=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&&(i&&e.clearInterval(i),c(e,"resize",o,!0)),c(t,"scroll",o,!0),a&&a.disconnect()}));var l=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=l){var u=r(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 i=r(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}))){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=o){var a=r(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=0&&m>=0&&{top:c,bottom:u,left:f,right:h,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=l(this.root);else{var n=h(this.root)?this.root:e,o=n.documentElement,r=n.body;t={top:0,left:0,right:o.clientWidth||r.clientWidth,width:o.clientWidth||r.clientWidth,bottom:o.clientHeight||r.clientHeight,height:o.clientHeight||r.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 r=0;r{e.forEach((e=>{n({intersectionRatio:rectifyIntersectionRatio(e),intersectionRect:normalizeRect(e.intersectionRect),boundingClientRect:normalizeRect(e.boundingClientRect),relativeRect:normalizeRect(e.rootBounds),time:Date.now(),dataset:getCustomDataset(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){r.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function base64ToFile(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const a=new Uint8Array(i);for(;i--;)a[i]=r.charCodeAt(i);return blobToFile(a,o)}function getExtname(e){const t=e.split("/")[1];return t?`.${t}`:""}function getFileName(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}function blobToFile(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${getExtname(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function fileToUrl(e){for(const n in files)if(hasOwn$1(files,n)){if(files[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return files[t]=e,t}function getSameOriginUrl(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):urlToFile(e).then(fileToUrl)}const launchOptions=createLaunchOptions(),enterOptions=createLaunchOptions();function getEnterOptions(){return extend$1({},enterOptions)}function initLaunchOptions({path:e,query:t}){return extend$1(launchOptions,{path:e,query:t}),extend$1(enterOptions,launchOptions),extend$1({},launchOptions)}var ResizeSensor=defineBuiltInComponent({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=ref(null),o=useResizeSensorReset(n),r=useResizeSensorUpdate(n,t,o);return useResizeSensorLifecycle(n,e,r,o),()=>createVNode("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[createVNode("div",{onScroll:r},[createVNode("div",null,null)],40,["onScroll"]),createVNode("div",{onScroll:r},[createVNode("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function useResizeSensorUpdate(e,t,n){const o=reactive({width:-1,height:-1});return watch((()=>extend$1({},o)),(e=>t("resize",e))),()=>{const t=e.value;o.width=t.offsetWidth,o.height=t.offsetHeight,n()}}function useResizeSensorReset(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}function useResizeSensorLifecycle(e,t,n,o){onActivated(o),onMounted((()=>{t.initial&&nextTick(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}const pixelRatio=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 wrapper(e,t=!0){e.width=e.offsetWidth*(t?pixelRatio:1),e.height=e.offsetHeight*(t?pixelRatio:1),e.getContext("2d").__hidpi__=t}let isHidpi=!1;function initHidpi(){if(isHidpi)return;isHidpi=!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;var n;t.drawImageByCanvas=(n=t.drawImage,function(e,t,o,r,i,a,s,c,l,u){if(!this.__hidpi__)return n.apply(this,arguments);t*=pixelRatio,o*=pixelRatio,r*=pixelRatio,i*=pixelRatio,a*=pixelRatio,s*=pixelRatio,c=u?c*pixelRatio:c,l=u?l*pixelRatio:l,n.call(this,e,t,o,r,i,a,s,c,l)}),1!==pixelRatio&&(!function(e,t){for(const n in e)hasOwn$1(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*pixelRatio}));else if(Array.isArray(e))for(let t=0;tinitHidpi()));function $getRealPath(e){return e?getRealPath(e):e}function resolveColor(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function processTouches(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let tempCanvas;function getTempCanvas(e=0,t=0){return tempCanvas||(tempCanvas=document.createElement("canvas")),tempCanvas.width=e,tempCanvas.height=t,tempCanvas}const props$x={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}};var index$x=defineBuiltInComponent({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:props$x,computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){initHidpiOnce();const o=ref(null),r=ref(null),i=ref(!1),a=useNativeEvent(t),{$attrs:s,$excludeAttrs:c,$listeners:l}=useAttrs({excludeListeners:!0}),{_listeners:u}=useListeners(e,l,a),{_handleSubscribe:d,_resize:f}=useMethods(e,o,i);return useSubscribe(d,useContextInfo(e.canvasId),!0),onMounted((()=>{f()})),()=>{const{canvasId:t,disableScroll:i}=e;return createVNode("uni-canvas",mergeProps({"canvas-id":t,"disable-scroll":i},s.value,c.value,u.value),[createVNode("canvas",{ref:o,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),createVNode("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),createVNode(ResizeSensor,{ref:r,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function useListeners(e,t,n){return{_listeners:computed$1((()=>{let o=t.value,r=extend$1({},(()=>{let e={};for(const t in o)if(hasOwn$1(o,t)){const n=o[t];e[t]=n}return e})());return["onTouchstart","onTouchmove","onTouchend"].forEach((t=>{let o=[];r[t]&&o.push(withWebEvent((e=>{const o=e.currentTarget.getBoundingClientRect();processTouches(o,e.touches),processTouches(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(onEventPrevent),r[t]=o})),r}))}}function useMethods(e,t,n){let o=[],r={};const i=computed$1((()=>e.hidpi?pixelRatio:1));function a({actions:e,reserve:i},a){if(!e)return;if(n.value)return void o.push([e,i]);let c=t.value,l=c.getContext("2d");i||(l.fillStyle="#000000",l.strokeStyle="#000000",l.shadowColor="#000000",l.shadowBlur=0,l.shadowOffsetX=0,l.shadowOffsetY=0,l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,c.width,c.height)),function(e){e.forEach((function(e){let t=e.method,n=e.data,o="";function i(){const e=r[o]=new Image;e.onload=function(){e.ready=!0},getSameOriginUrl(o).then((t=>{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=$getRealPath(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=$getRealPath(o),n[1]=o),o&&!r[o]&&i()}))}(e);for(let t=0;t{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),u({errMsg:n,tempFilePath:t})})):u({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")})}};return extend$1(l,{_resize:function(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*i.value)||o.height!==Math.floor(n.height*i.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);wrapper(o,e.hidpi),t.putImageData(n,0,0)}else wrapper(o,e.hidpi)},_handleSubscribe:function(e,t,n){let o=l[e];0!==e.indexOf("_")&&isFunction$1(o)&&o(t,n)}})}let resetTimer;function iosHideKeyboard(){}const props$u={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},emit$1=["keyboardheightchange"];function useKeyboard$1(e,t,n){function o(e){const t=computed$1((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(resetTimer),document.addEventListener("click",iosHideKeyboard,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",iosHideKeyboard,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}watch((()=>t.value),(e=>o(e)))}const props$s={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},FIX_MODES={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},IMAGE_MODES={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"]};var index$s=defineBuiltInComponent({name:"Image",props:props$s,setup(e,{emit:t}){const n=ref(null),o=useImageState(n,e),r=useCustomEvent(n,t),{fixSize:i}=useImageSize(n,e,o);return useImageLoader(o,e,n,i,r),()=>createVNode("uni-image",{ref:n},[createVNode("div",{style:o.modeStyle},null,4),FIX_MODES[e.mode]?createVNode(ResizeSensor,{onResize:i},null,8,["onResize"]):createVNode("span",null,null)],512)}});function useImageState(e,t){const n=ref(""),o=computed$1((()=>{let e="auto",o="";const r=IMAGE_MODES[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=reactive({rootEl:e,src:computed$1((()=>t.src?getRealPath(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return onMounted((()=>{const t=e.value.style;r.origWidth=Number(t.width)||0,r.origHeight=Number(t.height)||0})),r}function useImageLoader(e,t,n,o,r){let i,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},c=c=>{if(!c)return l(),void s();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;s(u,d,c),o(),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),l(),r("load",e,{width:u,height:d})},i.onerror=t=>{s(),l(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=c},l=()=>{i&&(i.onload=null,i.onerror=null,i=null)};watch((()=>e.src),(e=>c(e))),watch((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),onMounted((()=>c(e.src))),onBeforeUnmount((()=>l()))}const isChrome="Google Inc."===navigator.vendor;function fixNumber(e){return isChrome&&e>10&&(e=2*Math.round(e/2)),e}function useImageSize(e,t,n){const o=()=>{const{mode:o}=t,r=FIX_MODES[o];if(!r)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const c=e.value,l=c[r[0]];l&&(c.style[r[1]]=fixNumber(r[2](l,s))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return watch((()=>t.mode),((e,t)=>{FIX_MODES[t]&&r(),FIX_MODES[e]&&o()})),{fixSize:o,resetSize:r}}function throttle$1(e,t){let n,o,r=0;const i=function(...i){const a=Date.now();clearTimeout(n),o=()=>{o=null,r=a,e.apply(this,i)},a-rstates.forEach((t=>t.userAction=e));function addInteractListener(e={userAction:!1}){if(!inited){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!userInteract&&setUserAction(!0),userInteract++,setTimeout((()=>{!--userInteract&&setUserAction(!1)}),0)}),passiveOptions$1)})),inited=!0}states.push(e)}function removeInteractListener(e){const t=states.indexOf(e);t>=0&&states.splice(t,1)}const getInteractStatus=()=>!!userInteract;function useUserAction(){const e=reactive({userAction:!1});return onMounted((()=>{addInteractListener(e)})),onBeforeUnmount((()=>{removeInteractListener(e)})),{state:e}}function useScopedAttrs(){const e=reactive({attrs:{}});return onMounted((()=>{let t=getCurrentInstance();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function useFormField(e,t){const n=inject(uniFormKey,!1);if(!n)return;const o=getCurrentInstance(),r={submit(){const n=o.proxy;return[n[e],isString(t)?n[t]:t.value]},reset(){isString(t)?o.proxy[t]="":t.value=""}};n.addField(r),onBeforeUnmount((()=>{n.removeField(r)}))}function getSelectedTextRange(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)}const UniViewJSBridgeSubscribe=function(){registerViewMethod(getCurrentPageId(),"getSelectedTextRange",getSelectedTextRange)};function getValueString(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const props$r=extend$1({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},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"}},props$u),emit=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...emit$1];function useBase(e,t,n){const o=ref(null),r=useCustomEvent(t,n),i=computed$1((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=computed$1((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=computed$1((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),c=computed$1((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),l=getValueString(e.modelValue,e.type)||getValueString(e.value,e.type),u=reactive({value:l,valueOrigin:l,maxlength:c,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return watch((()=>u.focus),(e=>n("update:focus",e))),watch((()=>u.maxlength),(e=>u.value=u.value.slice(0,e))),{fieldRef:o,state:u,trigger:r}}function useValueSync(e,t,n,o){const r=debounce$1((n=>{t.value=getValueString(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});watch((()=>e.modelValue),r),watch((()=>e.value),r);const i=throttle$1(((e,t)=>{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return onBeforeMount((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function useAutoFocus(e,t){useUserAction();const n=computed$1((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}watch((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),onMounted((()=>{n.value&&nextTick(o)}))}function useEvent(e,t,n,o,r,i){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 c(e){return"number"===e.type?null:e.selectionEnd}watch([()=>t.selectionStart,()=>t.selectionEnd],a),watch((()=>t.cursor),s),watch((()=>e.value),(function(){const l=e.value,u=function(e,o){e.stopPropagation(),isFunction$1(i)&&!1===i(e,t)||(t.value=l.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:l.value,cursor:c(l)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}l.addEventListener("change",(e=>e.stopPropagation())),l.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()})),l.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:c(e.target)})})),l.addEventListener("input",u),l.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),l.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),l.addEventListener("compositionupdate",d)}))}function useField(e,t,n,o){UniViewJSBridgeSubscribe();const{fieldRef:r,state:i,trigger:a}=useBase(e,t,n),{triggerInput:s}=useValueSync(e,i,n,a);useAutoFocus(e,r),useKeyboard$1(e,r);const{state:c}=useScopedAttrs();useFormField("name",i),useEvent(r,i,e,a,s,o);return{fieldRef:r,state:i,scopedAttrsState:c,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const props$q=extend$1({},props$r,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}});var Input=defineBuiltInComponent({name:"Input",props:props$q,emits:["confirm",...emit],setup(e,{emit:t}){const n=["text","number","idcard","digit","password","tel"],o=["off","one-time-code"],r=computed$1((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~n.includes(e.type)?e.type:"text"}return e.password?"password":t})),i=computed$1((()=>{const t=o.indexOf(e.textContentType),n=o.indexOf(hyphenate(e.textContentType));return o[-1!==t?t:-1!==n?n:0]}));let a,s=ref("");const c=ref(null),{fieldRef:l,state:u,scopedAttrsState:d,fixDisabledColor:f,trigger:p}=useField(e,c,t,((e,t)=>{const n=e.target;if("number"===r.value){if(a&&(n.removeEventListener("blur",a),a=null),n.validity&&!n.validity.valid)return!s.value&&"-"===e.data||"-"===s.value[0]&&"deleteContentBackward"===e.inputType?(s.value="-",t.value="",a=()=>{s.value=n.value=""},n.addEventListener("blur",a),!1):(s.value=t.value=n.value="-"===s.value?"":s.value,!1);s.value=n.value;const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));watch((()=>u.value),(t=>{"number"!==e.type||"-"===s.value&&""===t||(s.value=t)}));const h=["number","digit"],g=computed$1((()=>h.includes(e.type)?e.step:""));function m(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return()=>{let t=e.disabled&&f?createVNode("input",{ref:l,value:u.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:u.maxlength,step:g.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):createVNode("input",{ref:l,value:u.value,disabled:!!e.disabled,type:r.value,maxlength:u.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:i.value,onKeyup:m},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return createVNode("uni-input",{ref:c},[createVNode("div",{class:"uni-input-wrapper"},[withDirectives(createVNode("div",mergeProps(d.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[vShow,!(u.value.length||"-"===s.value)]]),"search"===e.confirmType?createVNode("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});function entries(e){return Object.keys(e).map((t=>[t,e[t]]))}const DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]+/,useAttrs=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=getCurrentInstance(),r=shallowRef({}),i=shallowRef({}),a=shallowRef({}),s=n.concat(DEFAULT_EXCLUDE_KEYS);return o.attrs=reactive(o.attrs),watchEffect((()=>{const e=entries(o.attrs).reduce(((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:LISTENER_PREFIX.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});r.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:a}};function flatVNode(e){const t=[];return isArray$4(e)&&e.forEach((e=>{isVNode(e)?e.type===Fragment?t.push(...flatVNode(e.children)):t.push(e):isArray$4(e)&&t.push(...flatVNode(e))})),t}const movableAreaProps={scaleArea:{type:Boolean,default:!1}};var MovableArea=defineBuiltInComponent({inheritAttrs:!1,name:"MovableArea",props:movableAreaProps,setup(e,{slots:t}){const n=ref(null),o=ref(!1);let{setContexts:r,events:i}=useMovableAreaState(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:c}=useAttrs(),l=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=l[e],n=i[`_${e}`];l[e]=t?[].concat(t,n):n})),onMounted((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(markRaw(o))}r(e)}return provide("_isMounted",o),provide("movableAreaRootRef",n),provide("addMovableViewContext",(e=>{d.push(e),f()})),provide("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=flatVNode(e),createVNode("uni-movable-area",mergeProps({ref:n},s.value,c.value,l),[createVNode(ResizeSensor,{onReize:i._resize},null,8,["onReize"]),u],16)}}});function calc(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function useMovableAreaState(e,t){const n=ref(0),o=ref(0),r=reactive({x:null,y:null}),i=ref(null);let a=null,s=[];function c(e,n=s){let o=t.value;return function e(t){for(let o=0;o{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(i.value=calc(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}})),u=withWebEvent((t=>{let n=t.touches;if(n&&n.length>1){t.preventDefault();let c={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(null!==r.x&&i.value&&i.value>0){let t=calc(c)/i.value;(o=t)&&1!==o&&(e.scaleArea?s.forEach((function(e){e._setScale(o)})):a&&a._setScale(o))}r.x=c.x,r.y=c.y}var o})),d=withWebEvent((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):a&&a._endScale())}));return provide("movableAreaWidth",n),provide("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:l,_onTouchmove:u,_onTouchend:d,_resize:function(){!function(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}(),s.forEach((function(e,t){e.setParent()}))}}}}const addListenerToElement=function(e,t,n,o){e.addEventListener(t,(e=>{isFunction$1(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let __mouseMoveEventListener,__mouseUpEventListener;function useTouchtrack(e,t,n){onBeforeUnmount((()=>{document.removeEventListener("mousemove",__mouseMoveEventListener),document.removeEventListener("mouseup",__mouseUpEventListener)}));let o=0,r=0,i=0,a=0;const s=function(e,n,s,c){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:c,dx:s-o,dy:c-r,ddx:s-i,ddy:c-a,timeStamp:e.timeStamp}}))return!1};let c,l,u=null;addListenerToElement(e,"touchstart",(function(e){if(c=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=a=e.touches[0].pageY,s(e,"start",o,r)})),addListenerToElement(e,"mousedown",(function(e){if(l=!0,!c&&!u)return u=e,o=i=e.pageX,r=a=e.pageY,s(e,"start",o,r)})),addListenerToElement(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=__mouseMoveEventListener=function(e){if(!c&&l&&u){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),addListenerToElement(e,"touchend",(function(e){if(0===e.touches.length&&u)return c=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=__mouseUpEventListener=function(e){if(l=!1,!c&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),addListenerToElement(e,"touchcancel",(function(e){if(u){c=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function e(e,t,n){return e>t-n&&ethis._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&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Friction$1.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}},Friction$1.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}},Friction$1.prototype.dt=function(){return-this._x_v/this._x_a},Friction$1.prototype.done=function(){const t=e(this.s().x,this._endPositionX)||e(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},Friction$1.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Friction$1.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Spring$1.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,a=t/(r*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+a*e)*t+a*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),c=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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,c=e,l=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(c*Math.cos(a*e)+l*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*(l*a*n-c*a*o)+s*t*(l*o+c*n)}}},Spring$1.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Spring$1.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Spring$1.prototype.setEnd=function(e,n,o){if(o||(o=(new Date).getTime()),e!==this._endPosition||!t(n,.1)){n=n||0;let r=this._endPosition;this._solution&&(t(n,.1)&&(n=this._solution.dx((o-this._startTime)/1e3)),r=this._solution.x((o-this._startTime)/1e3),t(n,.1)&&(n=0),t(r,.1)&&(r=0),r+=this._endPosition),this._solution&&t(r-e,.1)&&t(n,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,n),this._startTime=o)}},Spring$1.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Spring$1.prototype.done=function(n){return n||(n=(new Date).getTime()),e(this.x(),this._endPosition,.1)&&t(this.dx(),.1)},Spring$1.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())},Spring$1.prototype.springConstant=function(){return this._k},Spring$1.prototype.damping=function(){return this._c},Spring$1.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}]},STD.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},STD.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)}},STD.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},STD.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const movableViewProps={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:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function v(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}var MovableView=defineBuiltInComponent({name:"MovableView",props:movableViewProps,emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=ref(null),r=useCustomEvent(o,n),{setParent:i}=useMovableViewState(e,r,o);return()=>createVNode("uni-movable-view",{ref:o},[createVNode(ResizeSensor,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let requesting=!1;function _requestAnimationFrame(e){requesting||(requesting=!0,requestAnimationFrame((function(){e(),requesting=!1})))}function p(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=p(e.offsetParent,t):0}function f(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=f(e.offsetParent,t):0}function g(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function _getPx(e){return/\d+[ur]px$/i.test(e)?upx2px(parseFloat(e)):Number(e)||0}function useMovableViewState(e,t,n){const o=inject("movableAreaWidth",ref(0)),r=inject("movableAreaHeight",ref(0)),i=inject("_isMounted",ref(!1)),a=inject("movableAreaRootRef"),s=inject("addMovableViewContext",(()=>{})),c=inject("removeMovableViewContext",(()=>{})),l=ref(_getPx(e.x)),u=ref(_getPx(e.y)),d=ref(Number(e.scaleValue)||1),h=ref(0),m=ref(0),_=ref(0),y=ref(0),b=ref(0),w=ref(0);let T=null,E=null;const S={x:0,y:0},C={x:0,y:0};let O,I,A=1,x=1,P=0,R=0,L=!1,$=!1,k=null,N=null;const M=new Decline,D=new Decline,B={historyX:[0,0],historyY:[0,0],historyT:[0,0]},V=computed$1((()=>{let t=Number(e.damping);return isNaN(t)?20:t})),j=computed$1((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),F=computed$1((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),U=computed$1((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),H=computed$1((()=>"all"===e.direction||"horizontal"===e.direction)),G=computed$1((()=>"all"===e.direction||"vertical"===e.direction)),W=new STD(1,9*Math.pow(V.value,2)/40,V.value),z=new Friction$1(1,j.value);function q(){E&&E.cancel(),T&&T.cancel()}function K(){if(!e.scale)return!1;ee(A,!0),te(A)}function Y(){L||e.disabled||(q(),B.historyX=[0,0],B.historyY=[0,0],B.historyT=[0,0],H.value&&(O=P),G.value&&(I=R),n.value.style.willChange="transform",k=null,N=null,$=!0)}function X(){if(!L&&!e.disabled&&$&&(n.value.style.willChange="auto",$=!1,!k&&!function(e){let t=Z(P,R),n=t.x,o=t.y,r=t.outOfBounds;r&&oe(n,o,A,e);return r}("out-of-bounds")&&e.inertia)){const e=1e3*(B.historyX[1]-B.historyX[0])/(B.historyT[1]-B.historyT[0]),t=1e3*(B.historyY[1]-B.historyY[0])/(B.historyT[1]-B.historyT[0]);z.setV(e,t),z.setS(P,R);const n=z.delta().x,o=z.delta().y;let r=n+P,i=o+R;r<_.value?(r=_.value,i=R+(_.value-P)*o/n):r>b.value&&(r=b.value,i=R+(b.value-P)*o/n),iw.value&&(i=w.value,r=P+(w.value-R)*n/o),z.setEnd(r,i),E=g(z,(function(){let e=z.s();re(e.x,e.y,A,"friction")}),(function(){E.cancel()}))}e.outOfBounds||e.inertia||q()}function Z(e,t){let n=!1;return e>b.value?(e=b.value,n=!0):e<_.value&&(e=_.value,n=!0),t>w.value?(t=w.value,n=!0):te.x),(e=>{l.value=_getPx(e)})),watch((()=>e.y),(e=>{u.value=_getPx(e)})),watch(l,(e=>{!function(e){if(H.value){if(e+C.x===P)return P;T&&T.cancel(),oe(e+C.x,u.value+C.y,A)}}(e)})),watch(u,(e=>{!function(e){if(G.value){if(e+C.y===R)return R;T&&T.cancel(),oe(l.value+C.x,e+C.y,A)}}(e)})),watch((()=>e.disabled),(()=>{Y()})),watch((()=>e.scaleValue),(e=>{d.value=Number(e)||0})),watch(d,(t=>{!function(t){if(!e.scale)return!1;ee(t=ne(t),!0),te(t)}(t)})),watch(F,(()=>{K()})),watch(U,(()=>{K()})),onMounted((()=>{useTouchtrack(n.value,(t=>{switch(t.detail.state){case"start":Y();break;case"move":!function(t){if(!L&&!e.disabled&&$){let n=P,o=R;if(null===N&&(N=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),H.value&&(n=t.detail.dx+O,B.historyX.shift(),B.historyX.push(n),G.value||null!==k||(k=Math.abs(t.detail.dx/t.detail.dy)<1)),G.value&&(o=t.detail.dy+I,B.historyY.shift(),B.historyY.push(o),H.value||null!==k||(k=Math.abs(t.detail.dy/t.detail.dx)<1)),B.historyT.shift(),B.historyT.push(t.detail.timeStamp),!k){t.preventDefault();let r="touch";n<_.value?e.outOfBounds?(r="touch-out-of-bounds",n=_.value-M.x(_.value-n)):n=_.value:n>b.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=b.value+M.x(n-b.value)):n=b.value),ow.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=w.value+D.x(o-w.value)):o=w.value),_requestAnimationFrame((function(){re(n,o,A,r)}))}}}(t);break;case"end":X()}})),ie(),z.reconfigure(1,j.value),W.reconfigure(1,9*Math.pow(V.value,2)/40,V.value),n.value.style.transformOrigin="center";const t={rootRef:n,setParent:ie,_endScale:ae,_setScale:se};s(t),onUnmounted((()=>{c(t)}))})),onUnmounted((()=>{q()})),{setParent:ie}}const OPEN_TYPES=["navigate","redirect","switchTab","reLaunch","navigateBack"],ANIMATION_IN=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],ANIMATION_OUT=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],navigatorProps={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~OPEN_TYPES.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||ANIMATION_IN.concat(ANIMATION_OUT).includes(e)},animationDuration:{type:[String,Number],default:300}};function createNavigatorOnClick(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":redirectTo({url:e.url,exists:e.exists});break;case"switchTab":switchTab({url:e.url});break;case"reLaunch":reLaunch({url:e.url});break;case"navigateBack":navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}var index$r=defineBuiltInComponent({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:navigatorProps,setup(e,{slots:t}){const n=getCurrentInstance(),o=n&&n.vnode.scopeId||"",{hovering:r,binding:i}=useHover(e),a=createNavigatorOnClick(e);return()=>{const{hoverClass:s,url:c}=e,l=e.hoverClass&&"none"!==e.hoverClass;return createVNode("a",{class:"navigator-wrap",href:c,onClick:onEventPrevent,onMousedown:onEventPrevent},[createVNode("uni-navigator",mergeProps({class:l&&r.value?s:""},l&&i,n?n.attrs:{},{[o]:""},{onClick:a}),[t.default&&t.default()],16,["onClick"])],40,["href","onClick","onMousedown"])}}});const pickerViewProps={value:{type:Array,default:()=>[],validator:function(e){return isArray$4(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:""}};function useState$4(e){const t=reactive([...e.value]),n=reactive({value:t,height:34});return watch((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}var PickerView=defineBuiltInComponent({name:"PickerView",props:pickerViewProps,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=ref(null),r=ref(null),i=useCustomEvent(o,n),a=useState$4(e),s=ref(null);onMounted((()=>{const e=s.value;a.height=e.$el.offsetHeight}));let c=ref([]),l=ref([]);function u(e){let t=l.value;t=t.filter((e=>e.type!==Comment));let n=t.indexOf(e);return-1!==n?n:c.value.indexOf(e)}return provide("getPickerViewColumn",(function(e){return computed$1({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),i("change",{},{value:e})}}})})),provide("pickerViewProps",e),provide("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=flatVNode(e);c.value=t,nextTick((()=>{l.value=t}))}return createVNode("uni-picker-view",{ref:o},[createVNode(ResizeSensor,{ref:s,onResize:({height:e})=>a.height=e},null,8,["onResize"]),createVNode("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Friction{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 o(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),c=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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,c=e,l=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(c*Math.cos(a*e)+l*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*(l*a*n-c*a*o)+s*t*(l*o+c*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||!a(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(a(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),a(t,.4)&&(t=0),a(o,.4)&&(o=0),o+=this._endPosition),this._solution&&a(o-e,.4)&&a(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()),o(this.x(),this._endPosition,.4)&&a(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 Scroll{constructor(e,t,n){this._extent=e,this._friction=t||new Friction(.01),this._spring=n||new Spring(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}}function createAnimation(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}class Scroller{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 Scroll(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/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=createAnimation(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()),isFunction$1(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),isFunction$1(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(isFunction$1(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 r=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(),r!==this._position&&(this.dispatchScroll(),isFunction$1(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 useScroller(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new Scroller(e,t);function r(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,r=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=r.screenX,n.y=r.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||r.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 i=r(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.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(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=r(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,r=n.historyTime[t],i=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=r-n.historyTime[t];if(e>30&&e<50){o.x=(i-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)}}}}}let scopedIndex=0;function useScopedClass(e){const t="uni-picker-view-content-"+scopedIndex++;return watch((()=>e.value),(function(){const n=document.createElement("style");n.innerText=`.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`,document.head.appendChild(n)})),t}function useCustomClick(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)}}))}var PickerViewColumn=defineBuiltInComponent({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=ref(null),r=ref(null),i=inject("getPickerViewColumn"),a=getCurrentInstance(),s=i?i(a):ref(0),c=inject("pickerViewProps"),l=inject("pickerViewState"),u=ref(34),d=ref(null);onMounted((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const f=computed$1((()=>(l.height-u.value)/2)),{state:p}=useScopedAttrs(),h=useScopedClass(u);let g;const m=reactive({current:s.value,length:0});let v;function _(){g&&!v&&(v=!0,nextTick((()=>{v=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),g.update(e*u.value,void 0,u.value)})))}watch((()=>s.value),(e=>{e!==m.current&&(m.current=e,_())})),watch((()=>m.current),(e=>s.value=e)),watch([()=>u.value,()=>m.length,()=>l.height],_);let y=0;function b(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),g.scrollTo(e*u.value)}else y=t;e.preventDefault()}function w({clientY:e}){const t=o.value;if(!g.isScrolling()){const n=e-t.getBoundingClientRect().top-l.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 r=Math.min(m.current+t,m.length-1);m.current=r=Math.max(r,0),g.scrollTo(r*u.value)}}}return onMounted((()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:a,handleTouchEnd:s}=useScroller(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Friction(1e-4),spring:new Spring(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});g=n,useTouchtrack(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":s(e)}}),!0),useCustomClick(e),_()})),()=>{const e=t.default&&t.default();m.length=flatVNode(e).length;const n=`${f.value}px 0`;return createVNode("uni-picker-view-column",{ref:o},[createVNode("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[createVNode("div",mergeProps(p.attrs,{class:["uni-picker-view-mask",c.maskClass],style:`background-size: 100% ${f.value}px;${c.maskStyle}`}),null,16),createVNode("div",mergeProps(p.attrs,{class:["uni-picker-view-indicator",c.indicatorClass],style:c.indicatorStyle}),[createVNode(ResizeSensor,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),createVNode("div",{ref:r,class:["uni-picker-view-content",h],style:{padding:n}},[e],6)],40,["onWheel","onClick"])],512)}}});const passiveOptions=passive(!0),props$m={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},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:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}};var ScrollView=defineBuiltInComponent({name:"ScrollView",compatConfig:{MODE:3},props:props$m,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n}){const o=ref(null),r=ref(null),i=ref(null),a=ref(null),s=ref(null),c=useCustomEvent(o,t),{state:l,scrollTopNumber:u,scrollLeftNumber:d}=useScrollViewState(e);useScrollViewLoader(e,l,u,d,c,o,r,a,t);const f=computed$1((()=>{let t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{const{refresherEnabled:t,refresherBackground:c,refresherDefaultStyle:u}=e,{refresherHeight:d,refreshState:p,refreshRotate:h}=l;return createVNode("uni-scroll-view",{ref:o},[createVNode("div",{ref:i,class:"uni-scroll-view"},[createVNode("div",{ref:r,style:f.value,class:"uni-scroll-view"},[createVNode("div",{ref:a,class:"uni-scroll-view-content"},[t?createVNode("div",{ref:s,style:{backgroundColor:c,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==u?createVNode("div",{class:"uni-scroll-view-refresh"},[createVNode("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==p?createVNode("svg",{key:"refresh__icon",style:{transform:"rotate("+h+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[createVNode("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),createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==p?createVNode("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==u?n.refresher&&n.refresher():null],4):null,n.default&&n.default()],512)],4)],512)],512)}}});function useScrollViewState(e){const t=computed$1((()=>Number(e.scrollTop)||0)),n=computed$1((()=>Number(e.scrollLeft)||0));return{state:reactive({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}function useScrollViewLoader(e,t,n,o,r,i,a,s,c){let l=!1,u=0,d=!1,f=()=>{};const p=computed$1((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),h=computed$1((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function g(t,n){const o=a.value;let r=0,i="";if(t<0?t=0:"x"===n&&t>o.scrollWidth-o.offsetWidth?t=o.scrollWidth-o.offsetWidth:"y"===n&&t>o.scrollHeight-o.offsetHeight&&(t=o.scrollHeight-o.offsetHeight),"x"===n?r=o.scrollLeft-t:"y"===n&&(r=o.scrollTop-t),0===r)return;let c=s.value;c.style.transition="transform .3s ease-out",c.style.webkitTransition="-webkit-transform .3s ease-out","x"===n?i="translateX("+r+"px) translateZ(0)":"y"===n&&(i="translateY("+r+"px) translateZ(0)"),c.removeEventListener("transitionend",f),c.removeEventListener("webkitTransitionEnd",f),f=()=>function(t,n){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let o=a.value;"x"===n?(o.style.overflowX=e.scrollX?"auto":"hidden",o.scrollLeft=t):"y"===n&&(o.style.overflowY=e.scrollY?"auto":"hidden",o.scrollTop=t);s.value.removeEventListener("transitionend",f),s.value.removeEventListener("webkitTransitionEnd",f)}(t,n),c.addEventListener("transitionend",f),c.addEventListener("webkitTransitionEnd",f),"x"===n?o.style.overflowX="hidden":"y"===n&&(o.style.overflowY="hidden"),c.style.transform=i,c.style.webkitTransform=i}function m(t){e.scrollY&&(e.scrollWithAnimation?g(t,"y"):a.value.scrollTop=t)}function v(t){e.scrollX&&(e.scrollWithAnimation?g(t,"x"):a.value.scrollLeft=t)}function _(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=i.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(e.scrollX){let n=o.left-t.left,r=a.value.scrollLeft+n;e.scrollWithAnimation?g(r,"x"):a.value.scrollLeft=r}if(e.scrollY){let n=o.top-t.top,r=a.value.scrollTop+n;e.scrollWithAnimation?g(r,"y"):a.value.scrollTop=r}}}}function y(n){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,r("refresherrefresh",{},{}),c("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{}))}t.refreshState=n}onMounted((()=>{nextTick((()=>{m(n.value),v(o.value)})),_(e.scrollIntoView);let i=function(n){n.preventDefault(),n.stopPropagation(),function(n){const o=n.target;r("scroll",n,{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth,deltaX:t.lastScrollLeft-o.scrollLeft,deltaY:t.lastScrollTop-o.scrollTop}),e.scrollY&&(o.scrollTop<=p.value&&t.lastScrollTop-o.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollTop+o.offsetHeight+h.value>=o.scrollHeight&&t.lastScrollTop-o.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(o.scrollLeft<=p.value&&t.lastScrollLeft-o.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollLeft+o.offsetWidth+h.value>=o.scrollWidth&&t.lastScrollLeft-o.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=o.scrollTop,t.lastScrollLeft=o.scrollLeft}(n)},s={x:0,y:0},c=null,f=function(n){if(null===s)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,f=a.value;if(Math.abs(o-s.x)>Math.abs(i-s.y))if(e.scrollX){if(0===f.scrollLeft&&o>s.x)return void(c=!1);if(f.scrollWidth===f.offsetWidth+f.scrollLeft&&os.y)c=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(f.scrollHeight===f.offsetHeight+f.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o})));const a=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(a>1?1:a)}},g=function(e){1===e.touches.length&&(s={x:e.touches[0].pageX,y:e.touches[0].pageY})},b=function(n){s=null,t.refresherHeight>=e.refresherThreshold?y("refreshing"):y("refresherabort")};a.value.addEventListener("touchstart",g,passiveOptions),a.value.addEventListener("touchmove",f,passive(!1)),a.value.addEventListener("scroll",i,passive(!1)),a.value.addEventListener("touchend",b,passiveOptions),onBeforeUnmount((()=>{a.value.removeEventListener("touchstart",g),a.value.removeEventListener("touchmove",f),a.value.removeEventListener("scroll",i),a.value.removeEventListener("touchend",b)}))})),onActivated((()=>{e.scrollY&&(a.value.scrollTop=t.lastScrollTop),e.scrollX&&(a.value.scrollLeft=t.lastScrollLeft)})),watch(n,(e=>{m(e)})),watch(o,(e=>{v(e)})),watch((()=>e.scrollIntoView),(e=>{_(e)})),watch((()=>e.refresherTriggered),(e=>{!0===e?y("refreshing"):!1===e&&y("restore")}))}const props$k={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}};function useState$3(e){return reactive({interval:computed$1((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:computed$1((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:computed$1((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}function useLayout(e,t,n,o,r,i){function a(){l&&(clearTimeout(l),l=null)}let s,c,l=null,u=!0,d=0,f=1,p=null,h=!1,g=0,m="";const v=computed$1((()=>e.circular&&n.value.length>t.displayMultipleItems));function _(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||v.value&&function(o){if(!u)for(let r=n.value,i=r.length,a=o+t.displayMultipleItems,s=0;s=l.length&&(r-=l.length),r=s%1>.5||s<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*c.offsetWidth,dy:e.vertical?r*c.offsetHeight:0})}function y(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(v.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function b(){p=null}function w(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,a=e.endTime,l=e.source,u=a-Date.now();if(u<=0){_(o),p=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:l})}return}_(o+r*u*u/2),c=requestAnimationFrame(w)}function T(e,o,r){b();const i=t.duration,a=n.value.length;let s=d;if(v.value)if(r<0){for(;se;)s-=a}else if(r>0){for(;s>e;)s-=a;for(;s+ae;)s-=a;s+a-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>v.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),p&&(_(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const s=d;d=-2;const c=t.current;c>=0?(u=!1,t.userTracking?(_(s+c-g),g=c):(_(c),e.autoplay&&E())):(u=!0,_(-t.displayMultipleItems-1))})),watch((()=>t.interval),(()=>{l&&(a(),E())})),watch((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const a=n.value;if(!r){const t=a.length;T(e,"",v.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),watch((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),watch((()=>e.autoplay&&!t.userTracking),S),S(e.autoplay&&!t.userTracking),onMounted((()=>{let r=!1,i=0,s=0;function c(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=y(d+o);e?_(g):(m="touch",t.current=r,T(r,"touch",0!==o?o:0===r&&v.value&&d>=1?1:0))}useTouchtrack(o.value,(l=>{if(!e.disableTouch&&!u){if("start"===l.detail.state)return t.userTracking=!0,r=!1,a(),g=d,i=0,s=Date.now(),void b();if("end"===l.detail.state)return c(!1);if("cancel"===l.detail.state)return c(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(l.detail.dx),o=Math.abs(l.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&E())}return function(r){const a=s;s=Date.now();const c=n.value.length-t.displayMultipleItems;function l(e){return.5-.25/(e+.5)}function u(e,t){let n=g+e;i=.6*i+.4*t,v.value||(n<0||n>c)&&(n<0?n=-l(-n):n>c&&(n=c+l(n-c)),i=0),_(n)}const d=s-a||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(l.detail),!1}}}))})),onUnmounted((()=>{a(),cancelAnimationFrame(c)})),{onSwiperDotClick:function(e){T(t.current=e,m="click",v.value?1:0)}}}var Swiper=defineBuiltInComponent({name:"Swiper",props:props$k,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=ref(null),r=useCustomEvent(o,n),i=ref(null),a=ref(null),s=useState$3(e),c=computed$1((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:rpx2px$1(e.previousMargin,!0),bottom:rpx2px$1(e.nextMargin,!0)}:{top:0,bottom:0,left:rpx2px$1(e.previousMargin,!0),right:rpx2px$1(e.nextMargin,!0)}),t})),l=computed$1((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=ref([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(markRaw(o))}f.value=e}provide("addSwiperContext",(function(e){d.push(e),p()}));provide("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h}=useLayout(e,s,f,a,n,r);return()=>{const n=t.default&&t.default();return u=flatVNode(n),createVNode("uni-swiper",{ref:o},[createVNode("div",{ref:i,class:"uni-swiper-wrapper"},[createVNode("div",{class:"uni-swiper-slides",style:c.value},[createVNode("div",{ref:a,class:"uni-swiper-slide-frame",style:l.value},[n],4)],4),e.indicatorDots&&createVNode("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>createVNode("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=s.current||ne.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,a=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return onMounted((()=>{const e=inject("addSwiperContext");e&&e(o)})),onUnmounted((()=>{const e=inject("removeSwiperContext");e&&e(o)})),()=>createVNode("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}});const SPACE_UNICODE={ensp:" ",emsp:" ",nbsp:" "};function parseText(e,t){return e.replace(/\\n/g,LINEFEED).split(LINEFEED).map((e=>normalizeText(e,t)))}function normalizeText(e,{space:t,decode:n}){return e?(t&&SPACE_UNICODE[t]&&(e=e.replace(/ /g,SPACE_UNICODE[t])),n?e.replace(/ /g,SPACE_UNICODE.nbsp).replace(/ /g,SPACE_UNICODE.ensp).replace(/ /g,SPACE_UNICODE.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):e):e}var index$k=defineBuiltInComponent({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=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Comment){const o=parseText(t.children,{space:e.space,decode:e.decode}),r=o.length-1;o.forEach(((e,t)=>{(0!==t||e)&&n.push(createTextVNode(e)),t!==r&&n.push(createVNode("br"))}))}else n.push(t)})),createVNode("uni-text",{selectable:!!e.selectable||null},[createVNode("span",null,n)],8,["selectable"])}});const props$h=extend$1({},props$r,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>ConfirmTypes.concat("return").includes(e)}});let fixMargin=!1;const ConfirmTypes=["done","go","next","search","send"];function setFixMargin(){const e="(prefers-color-scheme: dark)";fixMargin=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}var index$j=defineBuiltInComponent({name:"Textarea",props:props$h,emits:["confirm","linechange",...emit],setup(e,{emit:t}){const n=ref(null),o=ref(null),{fieldRef:r,state:i,scopedAttrsState:a,fixDisabledColor:s,trigger:c}=useField(e,n,t),l=computed$1((()=>i.value.split(LINEFEED))),u=computed$1((()=>ConfirmTypes.includes(e.confirmType))),d=ref(0),f=ref(null);function p({height:e}){d.value=e}function h(e){"Enter"===e.key&&u.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&u.value){!function(e){c("confirm",e,{value:i.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return watch((()=>d.value),(t=>{const r=n.value,i=f.value,a=o.value;let s=parseFloat(getComputedStyle(r).lineHeight);isNaN(s)&&(s=i.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(r.style.height="auto",a.style.height=t+"px")})),setFixMargin(),()=>{let t=e.disabled&&s?createVNode("textarea",{ref:r,value:i.value,tabindex:"-1",readonly:!!e.disabled,maxlength:i.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":fixMargin},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):createVNode("textarea",{ref:r,value:i.value,disabled:!!e.disabled,maxlength:i.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":fixMargin},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:h,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return createVNode("uni-textarea",{ref:n},[createVNode("div",{ref:o,class:"uni-textarea-wrapper"},[withDirectives(createVNode("div",mergeProps(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[vShow,!i.value.length]]),createVNode("div",{ref:f,class:"uni-textarea-line"},[" "],512),createVNode("div",{class:"uni-textarea-compute"},[l.value.map((e=>createVNode("div",null,[e.trim()?e:"."]))),createVNode(ResizeSensor,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?createVNode("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),index$i=defineBuiltInComponent({name:"View",props:extend$1({},hoverProps),setup(e,{slots:t}){const{hovering:n,binding:o}=useHover(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?createVNode("uni-view",mergeProps({class:n.value?r:""},o),[t.default&&t.default()],16):createVNode("uni-view",null,[t.default&&t.default()])}}});function normalizeEvent(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function addSubscribe(e,t,n){e&®isterViewMethod(n||getCurrentPageId(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function removeSubscribe(e,t){e&&unregisterViewMethod(t||getCurrentPageId(),e)}function useSubscribe(e,t,n,o){const r=getCurrentInstance().proxy;onMounted((()=>{addSubscribe(t||normalizeEvent(r),e,o),!n&&t||watch((()=>r.id),((t,n)=>{addSubscribe(normalizeEvent(r,t),e,o),removeSubscribe(n&&normalizeEvent(r,n))}))})),onBeforeUnmount((()=>{removeSubscribe(t||normalizeEvent(r),o)}))}let index$h=0;function useContextInfo(e){const t=useCurrentPageId(),n=getCurrentInstance().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+index$h++;return onMounted((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}function getContextInfo(e){return e.__uniContextInfo}function injectLifecycleHook(e,t,n,o){isFunction$1(t)&&injectHook(e,t.bind(n),o)}function initHooks(e,t,n){const o=e.mpType||n.$mpType;if(o&&(Object.keys(e).forEach((o=>{if(0===o.indexOf("on")){const r=e[o];isArray$4(r)?r.forEach((e=>injectLifecycleHook(o,e,n,t))):injectLifecycleHook(o,r,n,t)}})),"page"===o)){t.__isVisible=!0;try{invokeHook(n,ON_LOAD,t.attrs.__pageQuery),delete t.attrs.__pageQuery,invokeHook(n,ON_SHOW)}catch(r){console.error(r.message+LINEFEED+r.stack)}}}function applyOptions(e,t,n){initHooks(e,t,n)}function set(e,t,n){return e[t]=n}function createErrorHandler(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;invokeHook(r.proxy,ON_ERROR,t)}}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function initOptionMergeStrategies(e){UniLifecycleHooks.forEach((t=>{e[t]=mergeAsArray}))}function initApp$1(e){const t=e._context.config;isFunction$1(e._component.onError)&&(t.errorHandler=createErrorHandler(e)),initOptionMergeStrategies(t.optionMergeStrategies);const n=t.globalProperties;n.$set=set,n.$applyOptions=applyOptions,invokeCreateVueAppHook(e)}const pageMetaKey=PolySymbol("upm");function usePageMeta(){return inject(pageMetaKey)}function providePageMeta(e){const t=initPageMeta(e);return provide(pageMetaKey,t),t}function usePageRoute(){return useRoute()}function initPageMeta(e){return reactive(normalizePageMeta(JSON.parse(JSON.stringify(initRouteMeta(useRoute().meta,e)))))}function normalizePageMeta(e){if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==getCurrentPages$1().length||(e.isEntry=!0,e.isQuit=!0)}return e}function getStateId(){return history.state&&history.state.__id__||1}let tabBar;function useTabBar(){return tabBar||(tabBar=__uniConfig.tabBar&&reactive(initTabBarI18n(__uniConfig.tabBar))),tabBar}const supports=window.CSS&&window.CSS.supports;function cssSupports(e){return supports&&(supports(e)||supports.apply(window.CSS,e.split(":")))}const cssEnv=cssSupports("top:env(a)"),cssConstant=cssSupports("top:constant(a)"),envMethod=(()=>cssEnv?"env":cssConstant?"constant":"")();function updateCurPageCssVar(e){updatePageCssVar({"--window-top":normalizeWindowTop(0),"--window-bottom":normalizeWindowBottom(0)})}function normalizeWindowTop(e){return envMethod?`calc(${e}px + ${envMethod}(safe-area-inset-top))`:`${e}px`}function normalizeWindowBottom(e){return envMethod?`calc(${e}px + ${envMethod}(safe-area-inset-bottom))`:`${e}px`}const SEP="$$",currentPagesMap=new Map;function pruneCurrentPages(){currentPagesMap.forEach(((e,t)=>{e.$.isUnmounted&¤tPagesMap.delete(t)}))}function getCurrentPagesMap(){return currentPagesMap}function getCurrentPages$1(){const e=[],t=currentPagesMap.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function removeRouteCache(e){const t=pageCacheMap.get(e);t&&(pageCacheMap.delete(e),routeCache.pruneCacheEntry(t))}function removePage(e,t=!0){const n=currentPagesMap.get(e);n.$.__isUnload=!0,invokeHook(n,ON_UNLOAD),currentPagesMap.delete(e),t&&removeRouteCache(e)}let id=getStateId();function createPageState(e,t){return{__id__:t||++id,__type__:e}}function initPublicPage(e){const t=usePageMeta();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),initPageInternalInstance("navigateTo",n,{},t)}function initPage(e){const t=initPublicPage(e.$route);initPageVm(e,t),currentPagesMap.set(normalizeRouteKey(t.path,t.id),e)}function normalizeRouteKey(e,t){return e+SEP+t}function useKeepAliveRoute(){const e=useRoute();return{routeKey:computed$1((()=>normalizeRouteKey("/"+e.meta.route,getStateId()))),isTabBar:computed$1((()=>e.meta.isTabBar)),routeCache:routeCache}}const pageCacheMap=new Map,routeCache={get:e=>pageCacheMap.get(e),set(e,t){pruneRouteCache(e),pageCacheMap.set(e,t)},delete(e){pageCacheMap.get(e)&&pageCacheMap.delete(e)},forEach(e){pageCacheMap.forEach(e)}};function pruneRouteCache(e){const t=parseInt(e.split(SEP)[1]);t&&routeCache.forEach(((e,n)=>{const o=parseInt(n.split(SEP)[1]);o&&o>t&&(routeCache.delete(n),routeCache.pruneCacheEntry(e),nextTick((()=>pruneCurrentPages())))}))}function updateCurPageAttrs(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))}function onPageShow(e,t){updateBodyScopeId(e),updateCurPageCssVar(),updateCurPageAttrs(t),initPageScrollListener(e,t)}function onPageReady(e){const t=getScopeId(e);t&&updateCurPageBodyScopeId(t)}function updateCurPageBodyScopeId(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}function getScopeId(e){return e.type.__scopeId}let curScopeId,curScrollListener;function updateBodyScopeId(e){const t=getScopeId(e),{body:n}=document;curScopeId&&n.removeAttribute(curScopeId),t&&n.setAttribute(t,""),curScopeId=t}function initPageScrollListener(e,t){if(document.removeEventListener("touchmove",disableScrollListener),curScrollListener&&document.removeEventListener("scroll",curScrollListener),t.disableScroll)return document.addEventListener("touchmove",disableScrollListener);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!n&&!o&&!r)return;const i={},a=e.proxy.$page.id;(n||r)&&(i.onPageScroll=createOnPageScroll(a,n,r)),o&&(i.onReachBottomDistance=t.onReachBottomDistance||ON_REACH_BOTTOM_DISTANCE,i.onReachBottom=()=>UniViewJSBridge$1.publishHandler(ON_REACH_BOTTOM,{},a)),curScrollListener=createScrollListener(i),requestAnimationFrame((()=>document.addEventListener("scroll",curScrollListener)))}function createOnPageScroll(e,t,n){return o=>{t&&UniViewJSBridge$1.publishHandler(ON_PAGE_SCROLL,{scrollTop:o},e),n&&UniViewJSBridge$1.emit(e+"."+ON_PAGE_SCROLL,{scrollTop:o})}}function initRouter(e){const t=createRouter(createRouterOptions());e.router=t,e.use(t)}const scrollBehavior=(e,t,n)=>{if(n)return n};function createRouterOptions(){return{history:initHistory(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:scrollBehavior}}function removeCurrentPages(e=1){const t=getCurrentPages$1(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;removePage(normalizeRouteKey(e.path,e.id),!1)}}function initHistory(){let{base:e}=__uniConfig.router;"/"===e&&(e="");const t=createWebHistory(e);return t.listen(((e,t,n)=>{"back"===n.direction&&removeCurrentPages(Math.abs(n.delta))})),t}var index$g={install(e){initApp$1(e),initViewPlugin(e),initServicePlugin(e),e.config.warnHandler=warnHandler,initRouter(e)}};function warnHandler(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)}let appVm;function getApp$1(){return appVm}function initApp(e){appVm=e,initAppVm(appVm),defineGlobalData(appVm),initService(),initView()}function wrapperComponentSetup(e,{clone:t,init:n,setup:o,before:r}){t&&(e=extend$1({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=getCurrentInstance();n(r.proxy);const a=o(r);if(i)return i(a||e,t)},e}function setupComponent(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?wrapperComponentSetup(e.default,t):wrapperComponentSetup(e,t)}function setupPage(e){return setupComponent(e,{clone:!0,init:initPage,setup(e){e.$pageInstance=e;const t=decodedQuery(usePageRoute().query);e.attrs.__pageQuery=t,e.proxy.$page.options=t;const n=usePageMeta();return onBeforeMount((()=>{onPageShow(e,n)})),onMounted((()=>{onPageReady(e);const{onReady:t}=e;t&&invokeArrayFns$1(t)})),onBeforeActivate((()=>{if(!e.__isVisible){onPageShow(e,n),e.__isVisible=!0;const{onShow:t}=e;t&&invokeArrayFns$1(t)}})),onBeforeDeactivate((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&invokeArrayFns$1(t)}})),subscribeViewMethod(n.id),onBeforeUnmount((()=>{unsubscribeViewMethod(n.id)})),t}})}function setupApp(e){return setupComponent(e,{init:initApp,setup(e){const t=usePageRoute(),n=()=>{injectAppHooks(e);const{onLaunch:n,onShow:o,onPageNotFound:r}=e,i=initLaunchOptions({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:decodedQuery(t.query)});if(n&&invokeArrayFns$1(n,i),o&&invokeArrayFns$1(o,i),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};r&&invokeArrayFns$1(r,e)}};return useRouter().isReady().then(n),onMounted((()=>{window.addEventListener("resize",debounce$1(onResize,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",onMessage),document.addEventListener("visibilitychange",onVisibilityChange)})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(openBlock(),createBlock(LayoutComponent));e.setup=(e,o)=>{const r=t&&t(e,o);return isFunction$1(r)?n:r},e.render=n}})}function onResize(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=getSystemInfoSync(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";UniServiceJSBridge$1.emit(ON_RESIZE,{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function onMessage(e){isPlainObject$2(e.data)&&e.data.type===WEB_INVOKE_APPSERVICE&&UniServiceJSBridge$1.emit(ON_WEB_INVOKE_APP_SERVICE,e.data.data,e.data.pageId)}function onVisibilityChange(){const{emit:e}=UniServiceJSBridge$1;"visible"===document.visibilityState?e(ON_APP_ENTER_FOREGROUND,getEnterOptions()):e(ON_APP_ENTER_BACKGROUND)}const onWebInvokeAppService=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},Invoke=once((()=>UniServiceJSBridge$1.on(ON_WEB_INVOKE_APP_SERVICE,onWebInvokeAppService))),props$f={src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}};var index$e=defineBuiltInComponent({inheritAttrs:!1,name:"WebView",props:props$f,setup(e){Invoke();const t=ref(null),n=ref(null),{$attrs:o,$excludeAttrs:r,$listeners:i}=useAttrs({excludeListeners:!0});let a;return(()=>{const r=document.createElement("iframe");watchEffect((()=>{for(const e in o.value)if(hasOwn$1(o.value,e)){const t=o.value[e];r[e]=t}})),watchEffect((()=>{r.src=getRealPath(e.src)})),n.value=r,a=useWebViewSize(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(r)})(),onMounted((()=>{var o;a(),!e.fullscreen&&(null==(o=t.value)||o.appendChild(n.value))})),onActivated((()=>{e.fullscreen&&(n.value.style.display="block")})),onDeactivated((()=>{e.fullscreen&&(n.value.style.display="none")})),onBeforeUnmount((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>createVNode(Fragment,null,[createVNode("uni-web-view",mergeProps({class:e.fullscreen?"uni-webview--fullscreen":""},i.value,r.value,{ref:t}),[createVNode(ResizeSensor,{onResize:a},null,8,["onResize"])],16)])}});function useWebViewSize(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();updateElementStyle(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else updateElementStyle(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}const UUID_KEY="__DC_STAT_UUID",storage=window.localStorage||window.sessionStorage||{};let deviceId;function deviceId$1(){if(deviceId=deviceId||storage[UUID_KEY],!deviceId){deviceId=Date.now()+""+Math.floor(1e7*Math.random());try{storage[UUID_KEY]=deviceId}catch(e){}}return deviceId}function IEVersion(){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}function getBrowserInfo(){let e,t="0",n="",o="phone";const r=navigator.language;if(isIOS$1){e="iOS";const o=ua.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=ua.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(isAndroid){e="Android";const o=ua.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=ua.match(/\((.+?)\)/),i=r?r[1].split(";"):ua.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;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e{const e=window.devicePixelRatio,t=getScreenFix(),n=isLandscape(t),o=getScreenWidth(t,n),r=getScreenHeight(t,n),i=getWindowWidth(o);let a=window.innerHeight;const s=out.top,c={left:out.left,right:i-out.right,top:out.top,bottom:a-out.bottom,width:i-out.left-out.right,height:a-out.top-out.bottom},{top:l,bottom:u}=getWindowOffset();return a-=l,a-=u,{windowTop:l,windowBottom:u,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:s,safeArea:c,safeAreaInsets:{top:out.top,right:out.right,bottom:out.bottom,left:out.left},screenTop:r-a}}));let browserInfo,_initBrowserInfo=!0;function initBrowserInfo(){_initBrowserInfo&&(browserInfo=getBrowserInfo())}const getDeviceInfo=defineSyncApi("getDeviceInfo",(()=>{initBrowserInfo();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:a,deviceType:s}=browserInfo;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:deviceId$1(),deviceOrientation:a,deviceType:s,model:o,platform:r,system:i}})),getAppBaseInfo=defineSyncApi("getAppBaseInfo",(()=>{initBrowserInfo();const{theme:e,language:t,browserName:n,browserVersion:o}=browserInfo;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:getLocale?getLocale():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:""}})),getSystemInfoSync=defineSyncApi("getSystemInfoSync",(()=>{_initBrowserInfo=!0,initBrowserInfo(),_initBrowserInfo=!1;const e=getWindowInfo(),t=getDeviceInfo(),n=getAppBaseInfo();_initBrowserInfo=!0;const{ua:o,browserName:r,browserVersion:i,osname:a,osversion:s}=browserInfo,c=extend$1(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete c.screenTop,delete c.enableDebug,delete c.theme,sortObject(c)})),_isSupport=!!window.navigator.vibrate,vibrateShort=defineAsyncApi(API_VIBRATE_SHORT,((e,{resolve:t,reject:n})=>{_isSupport&&window.navigator.vibrate(15)?t():n("vibrateLong:fail")})),KEY_MAPS={esc:["Esc","Escape"],enter:["Enter"]},KEYS=Object.keys(KEY_MAPS);function useKeyboard(){const e=ref(""),t=ref(!1),n=n=>{if(t.value)return;const o=KEYS.find((e=>-1!==KEY_MAPS[e].indexOf(n.key)));o&&(e.value=o),nextTick((()=>e.value=""))};return onMounted((()=>{document.addEventListener("keyup",n)})),onBeforeUnmount((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const VNODE_MASK=createVNode("div",{class:"uni-mask"},null,-1);function createRootApp(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),createApp$1(defineComponent({setup:()=>()=>(openBlock(),createBlock(e,t,null,16))}))}function ensureRoot(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function usePopup(e,{onEsc:t,onEnter:n}){const o=ref(e.visible),{key:r,disable:i}=useKeyboard();return watch((()=>e.visible),(e=>o.value=e)),watch((()=>o.value),(e=>i.value=!e)),watchEffect((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}const props$a={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:""}};var modal=defineComponent({props:props$a,setup(e,{emit:t}){const n=ref(""),o=()=>a.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),a=usePopup(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}});return()=>{const{title:t,content:o,showCancel:s,confirmText:c,confirmColor:l,editable:u,placeholderText:d}=e;return n.value=o,createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("uni-modal",{onTouchmove:onEventPrevent},[VNODE_MASK,createVNode("div",{class:"uni-modal"},[t&&createVNode("div",{class:"uni-modal__hd"},[createVNode("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),u?createVNode("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:d,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):createVNode("div",{class:"uni-modal__bd",onTouchmovePassive:onEventStop,textContent:o},null,40,["onTouchmovePassive","textContent"]),createVNode("div",{class:"uni-modal__ft"},[s&&createVNode("div",{style:{color:e.cancelColor},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),createVNode("div",{style:{color:l},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[vShow,a.value]])]})}}});let showModalState;const onHidePopupOnce$1=once((()=>{UniServiceJSBridge$1.on("onHidePopup",(()=>showModalState.visible=!1))}));let currentShowModalResolve;function onModalClose(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&showModalState.editable&&(o.content=t),currentShowModalResolve&¤tShowModalResolve(o)}const showModal=defineAsyncApi(API_SHOW_MODAL,((e,{resolve:t})=>{onHidePopupOnce$1(),currentShowModalResolve=t,showModalState?(extend$1(showModalState,e),showModalState.visible=!0):(showModalState=reactive(e),nextTick((()=>(createRootApp(modal,showModalState,onModalClose).mount(ensureRoot("u-a-m")),nextTick((()=>showModalState.visible=!0))))))}),ShowModalProtocol,ShowModalOptions);function parseValue(e){const t=["object","string","number","boolean","undefined"];try{const n=isString(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){}}const setStorageSync=defineSyncApi(API_SET_STORAGE_SYNC,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)})),setStorage=defineAsyncApi(API_SET_STORAGE,(({key:e,data:t},{resolve:n,reject:o})=>{try{setStorageSync(e,t),n()}catch(r){o(r.message)}}));function getStorageOrigin(e){const t=localStorage&&localStorage.getItem(e);if(!isString(t))throw new Error("data not found");let n=t;try{const e=parseValue(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const getStorageSync=defineSyncApi(API_GET_STORAGE_SYNC,((e,t)=>{try{return getStorageOrigin(e)}catch(n){return""}})),removeStorageSync=defineSyncApi(API_REMOVE_STORAGE,(e=>{localStorage&&localStorage.removeItem(e)})),hideKeyboard=defineAsyncApi(API_HIDE_KEYBOARD,((e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));function getServiceAddress(){return window.location.protocol+"//"+window.location.host}const getImageInfo=defineAsyncApi(API_GET_IMAGE_INFO,(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?getServiceAddress()+e:e})},o.onerror=function(){n()},o.src=e}),GetImageInfoProtocol,GetImageInfoOptions),MIMEType={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"}},ALL="all";function isWXEnv(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}function _createInput({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",updateElementStyle(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if(n!==ALL){const t=e.replace(".","");return`${n}/${MIMEType[n][t]||t}`}return isWXEnv()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),n!==ALL&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}addInteractListener();let imageInput=null;const chooseImage=defineAsyncApi(API_CHOOSE_IMAGE,(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{initI18nChooseFileMsgsOnce();const{t:i}=useI18n();imageInput&&(document.body.removeChild(imageInput),imageInput=null),imageInput=_createInput({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(imageInput),imageInput.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||fileToUrl(t),i)}),oe))},tempFiles:r})})),imageInput.click(),getInteractStatus()||console.warn(i("uni.chooseFile.notUserActivation"))}),ChooseImageProtocol,ChooseImageOptions);let index$d=0,overflow="";function preventScroll(e){let t=index$d;index$d+=e?1:-1,index$d=Math.max(0,index$d),index$d>0?0===t&&(overflow=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=overflow,overflow="")}function usePreventScroll(){onMounted((()=>preventScroll(!0))),onUnmounted((()=>preventScroll(!1)))}const props$9={src:{type:String,default:""}};var ImageView=defineSystemComponent({name:"ImageView",props:props$9,setup(e){const t=reactive({direction:"none"});let n=1,o=0,r=0,i=0,a=0;function s({detail:e}){n=e.scale}function c(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function l(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,d(e)}function u(e){const s=n*o>i,c=n*r>a;t.direction=s&&c?"all":s?"horizontal":c?"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 createVNode(MovableArea,{style:n,onTouchstart:withWebEvent(l),onTouchmove:withWebEvent(d),onTouchend:withWebEvent(u)},{default:()=>[createVNode(MovableView,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[createVNode("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:c},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function _isSlot$2(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}const props$8={urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}};function getIndex(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}var ImagePreview=defineSystemComponent({name:"ImagePreview",props:props$8,emits:["close"],setup(e,{emit:t}){usePreventScroll();const n=ref(null),o=ref(getIndex(e));let r;function i(){r||nextTick((()=>{t("close")}))}function a(e){o.value=e.detail.current}return watch((()=>e.current),(()=>o.value=getIndex(e))),onMounted((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(r=!0)}))})),()=>{let t;return createVNode("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:i},[createVNode(Swiper,{current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},_isSlot$2(t=e.urls.map((e=>createVNode(SwiperItem,null,{default:()=>[createVNode(ImageView,{src:e},null,8,["src"])]}))))?t:{default:()=>[t],_:1},8,["current","onChange"])],8,["onClick"])}}});let state$2=null,imagePreviewInstance;const closePreviewImageView=()=>{state$2=null,nextTick((()=>{null==imagePreviewInstance||imagePreviewInstance.unmount(),imagePreviewInstance=null}))},previewImage=defineAsyncApi(API_PREVIEW_IMAGE,((e,{resolve:t})=>{state$2?extend$1(state$2,e):(state$2=reactive(e),nextTick((()=>{imagePreviewInstance=createRootApp(ImagePreview,state$2,closePreviewImageView),imagePreviewInstance.mount(ensureRoot("u-a-p"))}))),t()}),PreviewImageProtocol,PreviewImageOptions),request$1=defineTaskApi(API_REQUEST,(({url:e,data:t,header:n,method:o,dataType:r,responseType:i,withCredentials:a,timeout:s=__uniConfig.networkTimeout.request},{resolve:c,reject:l})=>{let u=null;const d=normalizeContentType(n);if("GET"!==o)if(isString(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(g){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)hasOwn$1(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const f=new XMLHttpRequest,p=new RequestTask(f);f.open(o,e);for(const m in n)hasOwn$1(n,m)&&f.setRequestHeader(m,n[m]);const h=setTimeout((function(){f.onload=f.onabort=f.onerror=null,p.abort(),l("timeout")}),s);return f.responseType=i,f.onload=function(){clearTimeout(h);const e=f.status;let t="text"===i?f.responseText:f.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(g){}c({data:t,statusCode:e,header:parseHeaders(f.getAllResponseHeaders()),cookies:[]})},f.onabort=function(){clearTimeout(h),l("abort")},f.onerror=function(){clearTimeout(h),l()},f.withCredentials=a,f.send(u),p}),RequestProtocol,RequestOptions);function normalizeContentType(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];return 0===n.indexOf("application/json")?"json":0===n.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string"}class RequestTask{constructor(e){this._xhr=e}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.")}}function parseHeaders(e){const t={};return e.split(LINEFEED).forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class DownloadTask{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){isFunction$1(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 downloadFile=defineTaskApi(API_DOWNLOAD_FILE,(({url:e,header:t,timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:r})=>{var i,a=new XMLHttpRequest,s=new DownloadTask(a);return a.open("GET",e,!0),Object.keys(t).forEach((e=>{a.setRequestHeader(e,t[e])})),a.responseType="blob",a.onload=function(){clearTimeout(i);const t=a.status,n=this.response;let r;const s=a.getResponseHeader("content-disposition");if(s){const e=s.match(/filename="?(\S+)"?\b/);e&&(r=e[1])}n.name=r||getFileName(e),o({statusCode:t,tempFilePath:fileToUrl(n)})},a.onabort=function(){clearTimeout(i),r("abort")},a.onerror=function(){clearTimeout(i),r()},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(),i=setTimeout((function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),r("timeout")}),n),s}),DownloadFileProtocol,DownloadFileOptions);class UploadTask{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){isFunction$1(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 uploadFile=defineTaskApi(API_UPLOAD_FILE,(({url:e,file:t,filePath:n,name:o,files:r,header:i,formData:a,timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:c,reject:l})=>{var u=new UploadTask;return isArray$4(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(blobToFile(e)):urlToFile(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[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),l()},o.onabort=function(){clearTimeout(n),l("abort")},o.onload=function(){clearTimeout(n);const e=o.status;c({statusCode:e,data:o.responseText||o.response})},u._isAbort?l("abort"):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),l("timeout")}),s),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{l("file error")}),0)})),u}),UploadFileProtocol,UploadFileOptions),navigateBack=defineAsyncApi(API_NAVIGATE_BACK,((e,{resolve:t,reject:n})=>{let o=!0;return!0===invokeHook(ON_BACK_PRESS,{from:e.from||"navigateBack"})&&(o=!1),o?(getApp$1().$router.go(-e.delta),t()):n(ON_BACK_PRESS)}),NavigateBackProtocol,NavigateBackOptions);function navigate({type:e,url:t,events:n},o){const r=getApp$1().$router,{path:i,query:a}=parseUrl(t);return new Promise(((t,s)=>{const c=createPageState(e,o);r["navigateTo"===e?"push":"replace"]({path:i,query:a,state:c,force:!0}).then((o=>{if(isNavigationFailure(o))return s(o.message);if("navigateTo"===e){const e=new EventChannel(c.__id__,n);return r.currentRoute.value.meta.eventChannel=e,t({eventChannel:e})}return t()}))}))}const navigateTo=defineAsyncApi(API_NAVIGATE_TO,(({url:e,events:t},{resolve:n,reject:o})=>navigate({type:API_NAVIGATE_TO,url:e,events:t}).then(n).catch(o)),NavigateToProtocol,NavigateToOptions);function removeLastPage(){const e=getCurrentPage();if(!e)return;const t=e.$page;removePage(normalizeRouteKey(t.path,t.id))}const redirectTo=defineAsyncApi(API_REDIRECT_TO,(({url:e},{resolve:t,reject:n})=>(removeLastPage(),navigate({type:API_REDIRECT_TO,url:e}).then(t).catch(n))),RedirectToProtocol,RedirectToOptions);function removeAllPages(){const e=getCurrentPagesMap().keys();for(const t of e)removePage(t)}const reLaunch=defineAsyncApi(API_RE_LAUNCH,(({url:e},{resolve:t,reject:n})=>(removeAllPages(),navigate({type:API_RE_LAUNCH,url:e}).then(t).catch(n))),ReLaunchProtocol,ReLaunchOptions);function removeNonTabBarPages(){const e=getCurrentPageVm();if(!e)return;const t=getCurrentPagesMap(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:removePage(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,invokeHook(e,ON_HIDE))}function isSamePage(e,t){return e===t.fullPath}function getTabBarPageId(e){const t=getCurrentPagesMap().values();for(const n of t){const t=n.$page;if(isSamePage(e,t))return n.$.__isActive=!0,t.id}}const switchTab=defineAsyncApi(API_SWITCH_TAB,(({url:e},{resolve:t,reject:n})=>(removeNonTabBarPages(),navigate({type:API_SWITCH_TAB,url:e},getTabBarPageId(e)).then(t).catch(n))),SwitchTabProtocol,SwitchTabOptions),props$5={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==SHOW_TOAST_ICON.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ToastIconClassName="uni-toast__icon";var Toast=defineComponent({name:"Toast",props:props$5,setup(e){initI18nShowToastMsgsOnce(),initI18nShowLoadingMsgsOnce();const{Icon:t}=useToastIcon(e),n=usePopup(e,{});return()=>{const{mask:o,duration:r,title:i,image:a}=e;return createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("uni-toast",{"data-duration":r},[o?createVNode("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:onEventPrevent},null,40,["onTouchmove"]):"",a||t.value?createVNode("div",{class:"uni-toast"},[a?createVNode("img",{src:a,class:ToastIconClassName},null,10,["src"]):t.value,createVNode("p",{class:"uni-toast__content"},[i])]):createVNode("div",{class:"uni-sample-toast"},[createVNode("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[vShow,n.value]])]})}}});function useToastIcon(e){return{Icon:computed$1((()=>{switch(e.icon){case"success":return createVNode(createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE,"#fff",38),{class:ToastIconClassName});case"error":return createVNode(createSvgIconVNode(ICON_PATH_WARN,"#fff",38),{class:ToastIconClassName});case"loading":return createVNode("i",{class:[ToastIconClassName,"uni-loading"]},null,2);default:return null}}))}}let showToastState,showType="",timeoutId;const scope=effectScope();function watchVisible(){scope.run((()=>{watch([()=>showToastState.visible,()=>showToastState.duration],(([e,t])=>{if(e){if(timeoutId&&clearTimeout(timeoutId),"onShowLoading"===showType)return;timeoutId=setTimeout((()=>{hidePopup("onHideToast")}),t)}else timeoutId&&clearTimeout(timeoutId)}))}))}function createToast(e){showToastState?extend$1(showToastState,e):(showToastState=reactive(extend$1(e,{visible:!1})),nextTick((()=>{watchVisible(),UniServiceJSBridge$1.on("onHidePopup",(()=>hidePopup("onHidePopup"))),createRootApp(Toast,showToastState,(()=>{})).mount(ensureRoot("u-a-t"))}))),setTimeout((()=>{showToastState.visible=!0}),10)}const showToast=defineAsyncApi(API_SHOW_TOAST,((e,{resolve:t,reject:n})=>{createToast(e),showType="onShowToast",t()}),ShowToastProtocol,ShowToastOptions),showLoadingDefaultState={icon:"loading",duration:1e8,image:""},showLoading=defineAsyncApi(API_SHOW_LOADING,((e,{resolve:t,reject:n})=>{extend$1(e,showLoadingDefaultState),createToast(e),showType="onShowLoading",t()}),ShowLoadingProtocol,ShowLoadingOptions),hideLoading=defineAsyncApi(API_HIDE_LOADING,((e,{resolve:t,reject:n})=>{hidePopup("onHideLoading"),t()}));function hidePopup(e){const{t:t}=useI18n();if(!showType)return;let n="";if("onHideToast"===e&&"onShowToast"!==showType?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==showType&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);showType="",setTimeout((()=>{showToastState.visible=!1}),10)}function updateDocumentTitle(e){document.title=e,UniServiceJSBridge$1.emit(ON_NAVIGATION_BAR_CHANGE,{titleText:e})}function useDocumentTitle(e){function t(){updateDocumentTitle(e.navigationBar.titleText)}watchEffect(t),onActivated(t)}function setNavigationBar(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case API_SET_NAVIGATION_BAR_COLOR:const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc:a}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=a;break;case API_SHOW_NAVIGATION_BAR_LOADING:i.loading=!0;break;case API_HIDE_NAVIGATION_BAR_LOADING:i.loading=!1;break;case API_SET_NAVIGATION_BAR_TITLE:const{title:s}=n;i.titleText=s}o()}const setNavigationBarColor=defineAsyncApi(API_SET_NAVIGATION_BAR_COLOR,((e,{resolve:t,reject:n})=>{setNavigationBar(getCurrentPageMeta(),API_SET_NAVIGATION_BAR_COLOR,e,t,n)}),SetNavigationBarColorProtocol,SetNavigationBarColorOptions),setNavigationBarTitle=defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE,((e,{resolve:t,reject:n})=>{setNavigationBar(getCurrentPageMeta(),API_SET_NAVIGATION_BAR_TITLE,e,t,n)})),pageScrollTo=defineAsyncApi(API_PAGE_SCROLL_TO,(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{scrollTo(t||e||0,n,!0),o()}),PageScrollToProtocol,PageScrollToOptions),stopPullDownRefresh=defineAsyncApi(API_STOP_PULL_DOWN_REFRESH,((e,{resolve:t})=>{UniServiceJSBridge$1.invokeViewMethod(API_STOP_PULL_DOWN_REFRESH,{},getCurrentPageId()),t()})),setTabBarItemProps=["text","iconPath","iconfont","selectedIconPath","visible"],setTabBarStyleProps=["color","selectedColor","backgroundColor","borderStyle"],setTabBarBadgeProps=["badge","redDot"];function setProperties(e,t,n){t.forEach((function(t){hasOwn$1(n,t)&&(e[t]=n[t])}))}function setTabBar(e,t,n){const o=useTabBar();switch(e){case API_SHOW_TAB_BAR:o.shown=!0;break;case API_HIDE_TAB_BAR:o.shown=!1;break;case API_SET_TAB_BAR_ITEM:const{index:e}=t,n=o.list[e],r=n.pagePath;setProperties(n,setTabBarItemProps,t);const{pagePath:i}=t;if(i){const t=addLeadingSlash(i);t!==r&&normalizeTabBarRoute(e,r,t)}break;case API_SET_TAB_BAR_STYLE:setProperties(o,setTabBarStyleProps,t);break;case API_SHOW_TAB_BAR_RED_DOT:setProperties(o.list[t.index],setTabBarBadgeProps,{badge:"",redDot:!0});break;case API_SET_TAB_BAR_BADGE:setProperties(o.list[t.index],setTabBarBadgeProps,{badge:t.text,redDot:!0});break;case API_HIDE_TAB_BAR_RED_DOT:case API_REMOVE_TAB_BAR_BADGE:setProperties(o.list[t.index],setTabBarBadgeProps,{badge:"",redDot:!1})}n()}const hideTabBar=defineAsyncApi(API_HIDE_TAB_BAR,((e,{resolve:t})=>{setTabBar(API_HIDE_TAB_BAR,e||{},t)})),DEFAULT_CSS_VAR_VALUE="0px";var LayoutComponent=defineSystemComponent({name:"Layout",setup(e,{emit:t}){const n=ref(null);initCssVar();const o=useKeepAliveRoute(),{layoutState:r,windowState:i}=useState();useMaxWidth(r,n);const a=useAppClass(!1);return()=>{const e=createLayoutTsx(o);return createVNode("uni-app",{ref:n,class:a.value},[e,!1],2)}}});function useAppClass(e){const t=ref(!1);return computed$1((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}function initCssVar(){updateCssVar({"--status-bar-height":DEFAULT_CSS_VAR_VALUE,"--top-window-height":DEFAULT_CSS_VAR_VALUE,"--window-left":DEFAULT_CSS_VAR_VALUE,"--window-right":DEFAULT_CSS_VAR_VALUE,"--window-margin":DEFAULT_CSS_VAR_VALUE,"--tab-bar-height":DEFAULT_CSS_VAR_VALUE})}function useMaxWidth(e,t){const n=usePageRoute();function o(){const n=document.body.clientWidth,o=parseInt(String(__uniConfig.globalStyle.maxWidth||Number.MAX_SAFE_INTEGER));let r=!1;r=n>o,r&&o?(e.marginWidth=(n-o)/2,nextTick((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+o+"px;margin:0 auto;")}))):(e.marginWidth=0,nextTick((()=>{const e=t.value;e&&e.removeAttribute("style")})))}watch([()=>n.path],o),onMounted((()=>{o(),window.addEventListener("resize",o)}))}function useState(){usePageRoute();{const e=reactive({marginWidth:0});return watch((()=>e.marginWidth),(e=>updateCssVar({"--window-margin":e+"px"}))),{layoutState:e,windowState:computed$1((()=>({})))}}}function createLayoutTsx(e,t,n,o,r,i){return createRouterViewVNode(e)}function createRouterViewVNode({routeKey:e,isTabBar:t,routeCache:n}){return createVNode(RouterView,null,{default:withCtx((({Component:o})=>[(openBlock(),createBlock(KeepAlive,{matchBy:"key",cache:n},[(openBlock(),createBlock(resolveDynamicComponent(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}const saveImageToPhotosAlbum=defineAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM,createUnsupportedAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM)),UniViewJSBridge$1=extend$1(ViewJSBridge,{publishHandler(e,t,n){UniServiceJSBridge$1.subscribeHandler(e,t,n)}}),UniServiceJSBridge$1=extend$1(ServiceJSBridge,{publishHandler(e,t,n){UniViewJSBridge$1.subscribeHandler(e,t,n)}});var PageBody=defineSystemComponent({name:"PageBody",setup:(e,t)=>()=>createVNode(Fragment,null,[!1,createVNode("uni-page-wrapper",null,[createVNode("uni-page-body",null,[renderSlot(t.slots,"default")])],16)])}),index$2=defineSystemComponent({name:"Page",setup(e,t){const n=providePageMeta(getStateId());return n.navigationBar,useDocumentTitle(n),()=>createVNode("uni-page",{"data-page":n.route},[createPageBodyVNode(t)])}});function createPageBodyVNode(e){return openBlock(),createBlock(PageBody,{key:0},{default:withCtx((()=>[renderSlot(e.slots,"page")])),_:3})}function reload(){window.location.reload()}var index$1=defineSystemComponent({name:"AsyncError",setup(){initI18nAsyncMsgsOnce();const{t:e}=useI18n();return()=>createVNode("div",{class:"uni-async-error",onClick:reload},[e("uni.async.error")],8,["onClick"])}});const clazz={class:"uni-async-loading"},loadingVNode=createVNode("i",{class:"uni-loading"},null,-1);var index$3=defineSystemComponent({name:"AsyncLoading",render:()=>(openBlock(),createBlock("div",clazz,[loadingVNode]))});const appId="",appName="",appVersion="1.0.0",appVersionCode="100",debug=!1,nvue={"flex-direction":"column"},networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},router={mode:"history",base:"/",assets:"assets"},async$1={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},qqMapKey=void 0,googleMapKey=void 0,aMapKey=void 0,aMapSecurityJsCode=void 0,aMapServiceHost=void 0,sdkConfigs={},locale="",fallbackLocale="";var base="",shadow="",async="";window.uni={},window.wx={},window.rpx2px=upx2px;const locales={},extend=Object.assign;window.__uniConfig=extend({globalStyle:{backgroundColor:"#F8F8F8",navigationBar:{backgroundColor:"#FFFFFF",titleText:"商城",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},easycom:{custom:{"^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)":"z-paging/components/z-paging$1/z-paging$1.vue","^w-(.*)":"@/components/widgets/$1/$1.vue"}},compilerVersion:"3.5.5"},{appId:appId,appName:appName,appVersion:appVersion,appVersionCode:appVersionCode,async:async$1,debug:debug,networkTimeout:networkTimeout,sdkConfigs:sdkConfigs,qqMapKey:qqMapKey,googleMapKey:googleMapKey,aMapKey:aMapKey,aMapSecurityJsCode:aMapSecurityJsCode,aMapServiceHost:aMapServiceHost,nvue:nvue,locale:locale,fallbackLocale:fallbackLocale,locales:Object.keys(locales).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return extend(e[n]||(e[n]={}),locales[t].default),e}),{}),router:router}),window.__uniLayout=window.__uniLayout||{};const AsyncComponentOptions={loadingComponent:index$3,errorComponent:index$1,delay:async$1.delay,timeout:async$1.timeout,suspensible:async$1.suspensible},PagesIndexIndexLoader=()=>__vitePreload((()=>import("./pages-index-index.1078c3b9.js")),["assets/pages-index-index.1078c3b9.js","assets/index.ffcb57f7.css","assets/u-search.93d096f3.js","assets/u-search.35cfd0ff.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/util.5bf4c82c.js","assets/news-card.1ed1bb6b.js","assets/news-card.9d2e9b2e.css","assets/icon_visit.5f8ba9a3.js","assets/tabbar.b374676c.js","assets/tabbar.0a69452b.css","assets/shop.0ee7eb71.js"]).then((e=>setupPage(e.default||e))),PagesIndexIndex=defineAsyncComponent(extend({loader:PagesIndexIndexLoader},AsyncComponentOptions)),PagesNewsNewsLoader=()=>__vitePreload((()=>import("./pages-news-news.032d2968.js")),["assets/pages-news-news.032d2968.js","assets/news.6a2c6971.css","assets/u-search.93d096f3.js","assets/u-search.35cfd0ff.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/tabbar.b374676c.js","assets/tabbar.0a69452b.css","assets/util.5bf4c82c.js","assets/news-card.1ed1bb6b.js","assets/news-card.9d2e9b2e.css","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/icon_visit.5f8ba9a3.js","assets/z-paging.259fe3b7.js","assets/z-paging.7a94f2f9.css","assets/news.bc87340e.js"]).then((e=>setupPage(e.default||e))),PagesNewsNews=defineAsyncComponent(extend({loader:PagesNewsNewsLoader},AsyncComponentOptions)),PagesUserUserLoader=()=>__vitePreload((()=>import("./pages-user-user.023c8630.js")),["assets/pages-user-user.023c8630.js","assets/user.32ac385a.css","assets/u-avatar.430b0adc.js","assets/u-avatar.dfe1b6cb.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/util.5bf4c82c.js","assets/tabbar.b374676c.js","assets/tabbar.0a69452b.css","assets/shop.0ee7eb71.js"]).then((e=>setupPage(e.default||e))),PagesUserUser=defineAsyncComponent(extend({loader:PagesUserUserLoader},AsyncComponentOptions)),PagesLoginLoginLoader=()=>__vitePreload((()=>import("./pages-login-login.1d12a142.js")),["assets/pages-login-login.1d12a142.js","assets/login.40cffb6a.css","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-form-item.7c5ca82d.js","assets/u-form-item.f95e2da5.css","assets/u-verification-code.32c29a8e.js","assets/u-verification-code.e967c1e9.css","assets/u-form.493fb5d5.js","assets/u-checkbox.e00f6685.js","assets/u-checkbox.c93b1db2.css","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/account.0af4a495.js","assets/appEnums.a2ba827b.js","assets/util.5bf4c82c.js"]).then((e=>setupPage(e.default||e))),PagesLoginLogin=defineAsyncComponent(extend({loader:PagesLoginLoginLoader},AsyncComponentOptions)),PagesRegisterRegisterLoader=()=>__vitePreload((()=>import("./pages-register-register.0a422f9c.js")),["assets/pages-register-register.0a422f9c.js","assets/register.23c48e00.css","assets/u-form-item.7c5ca82d.js","assets/u-form-item.f95e2da5.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-form.493fb5d5.js","assets/u-checkbox.e00f6685.js","assets/u-checkbox.c93b1db2.css","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/account.0af4a495.js","assets/appEnums.a2ba827b.js"]).then((e=>setupPage(e.default||e))),PagesRegisterRegister=defineAsyncComponent(extend({loader:PagesRegisterRegisterLoader},AsyncComponentOptions)),PagesForget_pwdForget_pwdLoader=()=>__vitePreload((()=>import("./pages-forget_pwd-forget_pwd.fcbd6dc6.js")),["assets/pages-forget_pwd-forget_pwd.fcbd6dc6.js","assets/forget_pwd.f576be29.css","assets/u-form-item.7c5ca82d.js","assets/u-form-item.f95e2da5.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-verification-code.32c29a8e.js","assets/u-verification-code.e967c1e9.css","assets/u-form.493fb5d5.js","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/account.0af4a495.js","assets/appEnums.a2ba827b.js"]).then((e=>setupPage(e.default||e))),PagesForget_pwdForget_pwd=defineAsyncComponent(extend({loader:PagesForget_pwdForget_pwdLoader},AsyncComponentOptions)),PagesCustomer_serviceCustomer_serviceLoader=()=>__vitePreload((()=>import("./pages-customer_service-customer_service.464e12ac.js")),["assets/pages-customer_service-customer_service.464e12ac.js","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/shop.0ee7eb71.js"]).then((e=>setupPage(e.default||e))),PagesCustomer_serviceCustomer_service=defineAsyncComponent(extend({loader:PagesCustomer_serviceCustomer_serviceLoader},AsyncComponentOptions)),PagesNews_detailNews_detailLoader=()=>__vitePreload((()=>import("./pages-news_detail-news_detail.499b2844.js")),["assets/pages-news_detail-news_detail.499b2844.js","assets/news_detail.70b77abb.css","assets/u-parse.b37eb601.js","assets/u-parse.93f983af.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/icon_visit.5f8ba9a3.js","assets/news.bc87340e.js"]).then((e=>setupPage(e.default||e))),PagesNews_detailNews_detail=defineAsyncComponent(extend({loader:PagesNews_detailNews_detailLoader},AsyncComponentOptions)),PagesUser_setUser_setLoader=()=>__vitePreload((()=>import("./pages-user_set-user_set.88fd0887.js")),["assets/pages-user_set-user_set.88fd0887.js","assets/user_set.f2c8c93e.css","assets/u-avatar.430b0adc.js","assets/u-avatar.dfe1b6cb.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/u-popup.5ee44c79.js","assets/u-popup.3b64afbe.css"]).then((e=>setupPage(e.default||e))),PagesUser_setUser_set=defineAsyncComponent(extend({loader:PagesUser_setUser_setLoader},AsyncComponentOptions)),PagesCollectionCollectionLoader=()=>__vitePreload((()=>import("./pages-collection-collection.5f62e460.js")),["assets/pages-collection-collection.5f62e460.js","assets/collection.c4157529.css","assets/news-card.1ed1bb6b.js","assets/news-card.9d2e9b2e.css","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/icon_visit.5f8ba9a3.js","assets/z-paging.259fe3b7.js","assets/z-paging.7a94f2f9.css","assets/news.bc87340e.js"]).then((e=>setupPage(e.default||e))),PagesCollectionCollection=defineAsyncComponent(extend({loader:PagesCollectionCollectionLoader},AsyncComponentOptions)),PagesAs_usAs_usLoader=()=>__vitePreload((()=>import("./pages-as_us-as_us.3f767154.js")),["assets/pages-as_us-as_us.3f767154.js","assets/as_us.a2f8b82c.css","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),PagesAs_usAs_us=defineAsyncComponent(extend({loader:PagesAs_usAs_usLoader},AsyncComponentOptions)),PagesAgreementAgreementLoader=()=>__vitePreload((()=>import("./pages-agreement-agreement.21a7bd01.js")),["assets/pages-agreement-agreement.21a7bd01.js","assets/u-parse.b37eb601.js","assets/u-parse.93f983af.css","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),PagesAgreementAgreement=defineAsyncComponent(extend({loader:PagesAgreementAgreementLoader},AsyncComponentOptions)),PagesChange_passwordChange_passwordLoader=()=>__vitePreload((()=>import("./pages-change_password-change_password.e2b035a9.js")),["assets/pages-change_password-change_password.e2b035a9.js","assets/change_password.9d9aa0f3.css","assets/u-form-item.7c5ca82d.js","assets/u-form-item.f95e2da5.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-form.493fb5d5.js","assets/u-button.197fafff.js","assets/u-button.48af928a.css"]).then((e=>setupPage(e.default||e))),PagesChange_passwordChange_password=defineAsyncComponent(extend({loader:PagesChange_passwordChange_passwordLoader},AsyncComponentOptions)),PagesUser_dataUser_dataLoader=()=>__vitePreload((()=>import("./pages-user_data-user_data.ffdefa5e.js")),["assets/pages-user_data-user_data.ffdefa5e.js","assets/user_data.f731938f.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/u-form-item.7c5ca82d.js","assets/u-form-item.f95e2da5.css","assets/u-popup.5ee44c79.js","assets/u-popup.3b64afbe.css","assets/u-verification-code.32c29a8e.js","assets/u-verification-code.e967c1e9.css","assets/appEnums.a2ba827b.js","assets/util.5bf4c82c.js"]).then((e=>setupPage(e.default||e))),PagesUser_dataUser_data=defineAsyncComponent(extend({loader:PagesUser_dataUser_dataLoader},AsyncComponentOptions)),PagesSearchSearchLoader=()=>__vitePreload((()=>import("./pages-search-search.50593a63.js")),["assets/pages-search-search.50593a63.js","assets/search.69183a16.css","assets/u-search.93d096f3.js","assets/u-search.35cfd0ff.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/news-card.1ed1bb6b.js","assets/news-card.9d2e9b2e.css","assets/u-image.805f393c.js","assets/u-image.a7813cd9.css","assets/icon_visit.5f8ba9a3.js","assets/z-paging.259fe3b7.js","assets/z-paging.7a94f2f9.css","assets/shop.0ee7eb71.js"]).then((e=>setupPage(e.default||e))),PagesSearchSearch=defineAsyncComponent(extend({loader:PagesSearchSearchLoader},AsyncComponentOptions)),PagesWebviewWebviewLoader=()=>__vitePreload((()=>import("./pages-webview-webview.6e8d0c1b.js")),[]).then((e=>setupPage(e.default||e))),PagesWebviewWebview=defineAsyncComponent(extend({loader:PagesWebviewWebviewLoader},AsyncComponentOptions)),PagesBind_mobileBind_mobileLoader=()=>__vitePreload((()=>import("./pages-bind_mobile-bind_mobile.ab4439fb.js")),["assets/pages-bind_mobile-bind_mobile.ab4439fb.js","assets/bind_mobile.883a800d.css","assets/u-form-item.7c5ca82d.js","assets/u-form-item.f95e2da5.css","assets/u-icon.81e315b0.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-verification-code.32c29a8e.js","assets/u-verification-code.e967c1e9.css","assets/u-form.493fb5d5.js","assets/u-button.197fafff.js","assets/u-button.48af928a.css","assets/appEnums.a2ba827b.js"]).then((e=>setupPage(e.default||e))),PagesBind_mobileBind_mobile=defineAsyncComponent(extend({loader:PagesBind_mobileBind_mobileLoader},AsyncComponentOptions)),PagesEmptyEmptyLoader=()=>__vitePreload((()=>import("./pages-empty-empty.f5975fc3.js")),["assets/pages-empty-empty.f5975fc3.js","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),PagesEmptyEmpty=defineAsyncComponent(extend({loader:PagesEmptyEmptyLoader},AsyncComponentOptions)),Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropperLoader=()=>__vitePreload((()=>import("./uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.b80bbf31.js")),["assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.b80bbf31.js","assets/u-avatar-cropper.91a54bb1.css","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropper=defineAsyncComponent(extend({loader:Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropperLoader},AsyncComponentOptions));function renderPage(e,t){return openBlock(),createBlock(index$2,null,{page:withCtx((()=>[createVNode(e,extend({},t,{ref:"page"}),null,512)])),_:1})}function resolveEasycom(e,t){return isString(e)?t:e}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesIndexIndex,t)}},loader:PagesIndexIndexLoader,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"首页",type:"default"},isNVue:!1}},{path:"/pages/news/news",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesNewsNews,t)}},loader:PagesNewsNewsLoader,meta:{navigationBar:{titleText:"资讯",type:"default"},isNVue:!1}},{path:"/pages/user/user",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesUserUser,t)}},loader:PagesUserUserLoader,meta:{navigationBar:{titleText:"个人中心",type:"default"},isNVue:!1}},{path:"/pages/login/login",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesLoginLogin,t)}},loader:PagesLoginLoginLoader,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/register/register",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesRegisterRegister,t)}},loader:PagesRegisterRegisterLoader,meta:{navigationBar:{titleText:"注册",type:"default"},isNVue:!1}},{path:"/pages/forget_pwd/forget_pwd",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesForget_pwdForget_pwd,t)}},loader:PagesForget_pwdForget_pwdLoader,meta:{navigationBar:{titleText:"忘记密码",type:"default"},isNVue:!1}},{path:"/pages/customer_service/customer_service",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesCustomer_serviceCustomer_service,t)}},loader:PagesCustomer_serviceCustomer_serviceLoader,meta:{navigationBar:{titleText:"联系客服",type:"default"},isNVue:!1}},{path:"/pages/news_detail/news_detail",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesNews_detailNews_detail,t)}},loader:PagesNews_detailNews_detailLoader,meta:{navigationBar:{titleText:"详情",type:"default"},isNVue:!1}},{path:"/pages/user_set/user_set",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesUser_setUser_set,t)}},loader:PagesUser_setUser_setLoader,meta:{navigationBar:{titleText:"个人设置",type:"default"},isNVue:!1}},{path:"/pages/collection/collection",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesCollectionCollection,t)}},loader:PagesCollectionCollectionLoader,meta:{navigationBar:{titleText:"我的收藏",type:"default"},isNVue:!1}},{path:"/pages/as_us/as_us",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesAs_usAs_us,t)}},loader:PagesAs_usAs_usLoader,meta:{navigationBar:{titleText:"关于我们",type:"default"},isNVue:!1}},{path:"/pages/agreement/agreement",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesAgreementAgreement,t)}},loader:PagesAgreementAgreementLoader,meta:{navigationBar:{titleText:"协议",type:"default"},isNVue:!1}},{path:"/pages/change_password/change_password",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesChange_passwordChange_password,t)}},loader:PagesChange_passwordChange_passwordLoader,meta:{navigationBar:{titleText:"修改密码",type:"default"},isNVue:!1}},{path:"/pages/user_data/user_data",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesUser_dataUser_data,t)}},loader:PagesUser_dataUser_dataLoader,meta:{navigationBar:{titleText:"个人资料",type:"default"},isNVue:!1}},{path:"/pages/search/search",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesSearchSearch,t)}},loader:PagesSearchSearchLoader,meta:{navigationBar:{titleText:"搜索",type:"default"},isNVue:!1}},{path:"/pages/webview/webview",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesWebviewWebview,t)}},loader:PagesWebviewWebviewLoader,meta:{navigationBar:{},isNVue:!1}},{path:"/pages/bind_mobile/bind_mobile",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesBind_mobileBind_mobile,t)}},loader:PagesBind_mobileBind_mobileLoader,meta:{navigationBar:{titleText:"绑定手机号",type:"default"},isNVue:!1}},{path:"/pages/empty/empty",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesEmptyEmpty,t)}},loader:PagesEmptyEmptyLoader,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/uni_modules/vk-uview-ui/components/u-avatar-cropper/u-avatar-cropper",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropper,t)}},loader:Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropperLoader,meta:{navigationBar:{backgroundColor:"#000000",titleText:"头像裁剪",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const createHook=e=>(t,n=getCurrentInstance())=>{!isInSSRComponentSetup&&injectHook(e,t,n)},onShow=createHook(ON_SHOW),onLaunch=createHook(ON_LAUNCH),onLoad=createHook(ON_LOAD),onUnload=createHook(ON_UNLOAD);var isVue2=!1; + */const isBrowser="undefined"!=typeof window;function isESModule(e){return e.__esModule||"Module"===e[Symbol.toStringTag]}const assign$1=Object.assign;function applyToParams(e,t){const n={};for(const o in t){const r=t[o];n[o]=isArray$3(r)?r.map(e):e(r)}return n}const noop$1=()=>{},isArray$3=Array.isArray,TRAILING_SLASH_RE=/\/$/,removeTrailingSlash=e=>e.replace(TRAILING_SLASH_RE,"");function parseURL(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let c=t.indexOf("?");return s=0&&(c=-1),c>-1&&(o=t.slice(0,c),i=t.slice(c+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=resolveRelativePath(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:a}}function stringifyURL(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function stripBase(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function isSameRouteLocation(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&isSameRouteRecord(t.matched[o],n.matched[r])&&isSameRouteLocationParams(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function isSameRouteRecord(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function isSameRouteLocationParams(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!isSameRouteLocationParamsValue(e[n],t[n]))return!1;return!0}function isSameRouteLocationParamsValue(e,t){return isArray$3(e)?isEquivalentArray(e,t):isArray$3(t)?isEquivalentArray(t,e):e===t}function isEquivalentArray(e,t){return isArray$3(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}function resolveRelativePath(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}var NavigationType,NavigationType2,NavigationDirection,NavigationDirection2;function normalizeBase(e){if(!e)if(isBrowser){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),removeTrailingSlash(e)}NavigationType2=NavigationType||(NavigationType={}),NavigationType2.pop="pop",NavigationType2.push="push",NavigationDirection2=NavigationDirection||(NavigationDirection={}),NavigationDirection2.back="back",NavigationDirection2.forward="forward",NavigationDirection2.unknown="";const BEFORE_HASH_RE=/^[^#]+#/;function createHref(e,t){return e.replace(BEFORE_HASH_RE,"#")+t}function getElementPosition(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)}}const computeScrollPosition=()=>({left:window.pageXOffset,top:window.pageYOffset});function scrollToPosition(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=getElementPosition(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function getScrollKey(e,t){return(history.state?history.state.position-t:-1)+e}const scrollPositions=new Map;function saveScrollPosition(e,t){scrollPositions.set(e,t)}function getSavedScrollPosition(e){const t=scrollPositions.get(e);return scrollPositions.delete(e),t}let createBaseLocation=()=>location.protocol+"//"+location.host;function createCurrentLocation(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),stripBase(n,"")}return stripBase(n,e)+o+r}function useHistoryListeners(e,t,n,o){let r=[],i=[],a=null;const s=({state:i})=>{const s=createCurrentLocation(e,location),c=n.value,l=t.value;let u=0;if(i){if(n.value=s,t.value=i,a&&a===c)return void(a=null);u=l?i.position-l.position:0}else o(s);r.forEach((e=>{e(n.value,c,{delta:u,type:NavigationType.pop,direction:u?u>0?NavigationDirection.forward:NavigationDirection.back:NavigationDirection.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(assign$1({},e.state,{scroll:computeScrollPosition()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}}}function buildState(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?computeScrollPosition():null}}function useHistoryStateNavigation(e){const{history:t,location:n}=window,o={value:createCurrentLocation(e,n)},r={value:t.state};function i(o,i,a){const s=e.indexOf("#"),c=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:createBaseLocation()+e+o;try{t[a?"replaceState":"pushState"](i,"",c),r.value=i}catch(l){console.error(l),n[a?"replace":"assign"](c)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const a=assign$1({},r.value,t.state,{forward:e,scroll:computeScrollPosition()});i(a.current,a,!0),i(e,assign$1({},buildState(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){i(e,assign$1({},t.state,buildState(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function createWebHistory(e){const t=useHistoryStateNavigation(e=normalizeBase(e)),n=useHistoryListeners(e,t.state,t.location,t.replace);const o=assign$1({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:createHref.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 isRouteLocation(e){return"string"==typeof e||e&&"object"==typeof e}function isRouteName(e){return"string"==typeof e||"symbol"==typeof e}const START_LOCATION_NORMALIZED={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},NavigationFailureSymbol=Symbol("");var NavigationFailureType,NavigationFailureType2;function createRouterError(e,t){return assign$1(new Error,{type:e,[NavigationFailureSymbol]:!0},t)}function isNavigationFailure(e,t){return e instanceof Error&&NavigationFailureSymbol in e&&(null==t||!!(e.type&t))}NavigationFailureType2=NavigationFailureType||(NavigationFailureType={}),NavigationFailureType2[NavigationFailureType2.aborted=4]="aborted",NavigationFailureType2[NavigationFailureType2.cancelled=8]="cancelled",NavigationFailureType2[NavigationFailureType2.duplicated=16]="duplicated";const BASE_PARAM_PATTERN="[^/]+?",BASE_PATH_PARSER_OPTIONS={sensitive:!1,strict:!1,start:!0,end:!0},REGEX_CHARS_RE=/[.+*?^${}()[\]/\\]/g;function tokensToParser(e,t){const n=assign$1({},BASE_PATH_PARSER_OPTIONS,t),o=[];let r=n.start?"^":"";const i=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let t=0;tt.length?1===t.length&&80===t[0]?1:-1:0}function comparePathParserScore(e,t){let n=0;const o=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const ROOT_TOKEN={type:0,value:""},VALID_PARAM_RE=/[a-zA-Z0-9_]/;function tokenizePath(e){if(!e)return[[]];if("/"===e)return[[ROOT_TOKEN]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${l}": ${e}`)}let n=0,o=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let s,c=0,l="",u="";function d(){l&&(0===n?i.push({type:0,value:l}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:l,regexp:u,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),l="")}function f(){l+=s}for(;c{i(f)}:noop$1}function i(e){if(isRouteName(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!isRecordChildOf(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!isAliasRecord(e)&&o.set(e.record.name,e)}return t=mergeOptions({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw createRouterError(1,{location:e});a=r.record.name,s=assign$1(paramsFromLocation(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&¶msFromLocation(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw createRouterError(1,{location:e,currentLocation:t});a=r.record.name,s=assign$1({},t.params,e.params),i=r.stringify(s)}const c=[];let l=r;for(;l;)c.unshift(l.record),l=l.parent;return{name:a,path:i,params:s,matched:c,meta:mergeMetaFields(c)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function paramsFromLocation(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function normalizeRouteRecord(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:normalizeRecordProps(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function normalizeRecordProps(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function isAliasRecord(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mergeMetaFields(e){return e.reduce(((e,t)=>assign$1(e,t.meta)),{})}function mergeOptions(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function isRecordChildOf(e,t){return t.children.some((t=>t===e||isRecordChildOf(e,t)))}const HASH_RE=/#/g,AMPERSAND_RE=/&/g,SLASH_RE=/\//g,EQUAL_RE=/=/g,IM_RE=/\?/g,PLUS_RE=/\+/g,ENC_BRACKET_OPEN_RE=/%5B/g,ENC_BRACKET_CLOSE_RE=/%5D/g,ENC_CARET_RE=/%5E/g,ENC_BACKTICK_RE=/%60/g,ENC_CURLY_OPEN_RE=/%7B/g,ENC_PIPE_RE=/%7C/g,ENC_CURLY_CLOSE_RE=/%7D/g,ENC_SPACE_RE=/%20/g;function commonEncode(e){return encodeURI(""+e).replace(ENC_PIPE_RE,"|").replace(ENC_BRACKET_OPEN_RE,"[").replace(ENC_BRACKET_CLOSE_RE,"]")}function encodeHash(e){return commonEncode(e).replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryValue(e){return commonEncode(e).replace(PLUS_RE,"%2B").replace(ENC_SPACE_RE,"+").replace(HASH_RE,"%23").replace(AMPERSAND_RE,"%26").replace(ENC_BACKTICK_RE,"`").replace(ENC_CURLY_OPEN_RE,"{").replace(ENC_CURLY_CLOSE_RE,"}").replace(ENC_CARET_RE,"^")}function encodeQueryKey(e){return encodeQueryValue(e).replace(EQUAL_RE,"%3D")}function encodePath(e){return commonEncode(e).replace(HASH_RE,"%23").replace(IM_RE,"%3F")}function encodeParam(e){return null==e?"":encodePath(e).replace(SLASH_RE,"%2F")}function decode(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function parseQuery(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&encodeQueryValue(e))):[o&&encodeQueryValue(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function normalizeQuery(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=isArray$3(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const matchedRouteKey=Symbol(""),viewDepthKey=Symbol(""),routerKey=Symbol(""),routeLocationKey=Symbol(""),routerViewLocationKey=Symbol("");function useCallbacks(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function guardToPromiseFn(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const c=e=>{!1===e?s(createRouterError(4,{from:n,to:t})):e instanceof Error?s(e):isRouteLocation(e)?s(createRouterError(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),a())},l=e.call(o&&o.instances[r],t,n,c);let u=Promise.resolve(l);e.length<3&&(u=u.then(c)),u.catch((e=>s(e)))}))}function extractComponentsGuards(e,t,n,o){const r=[];for(const i of e)for(const e in i.components){let a=i.components[e];if("beforeRouteEnter"===t||i.instances[e])if(isRouteComponent(a)){const s=(a.__vccOpts||a)[t];s&&r.push(guardToPromiseFn(s,n,o,i,e))}else{let s=a();r.push((()=>s.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${i.path}"`));const a=isESModule(r)?r.default:r;i.components[e]=a;const s=(a.__vccOpts||a)[t];return s&&guardToPromiseFn(s,n,o,i,e)()}))))}}return r}function isRouteComponent(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}function useLink(e){const t=inject(routerKey),n=inject(routeLocationKey),o=computed$1((()=>t.resolve(unref(e.to)))),r=computed$1((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(isSameRouteRecord.bind(null,r));if(a>-1)return a;const s=getOriginalPath(e[t-2]);return t>1&&getOriginalPath(r)===s&&i[i.length-1].path!==s?i.findIndex(isSameRouteRecord.bind(null,e[t-2])):a})),i=computed$1((()=>r.value>-1&&includesParams(n.params,o.value.params))),a=computed$1((()=>r.value>-1&&r.value===n.matched.length-1&&isSameRouteLocationParams(n.params,o.value.params)));return{route:o,href:computed$1((()=>o.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return guardEvent(n)?t[unref(e.replace)?"replace":"push"](unref(e.to)).catch(noop$1):Promise.resolve()}}}const RouterLinkImpl=defineComponent({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:useLink,setup(e,{slots:t}){const n=reactive(useLink(e)),{options:o}=inject(routerKey),r=computed$1((()=>({[getLinkClass(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[getLinkClass(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:h("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),RouterLink=RouterLinkImpl;function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function includesParams(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!isArray$3(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}function getOriginalPath(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const getLinkClass=(e,t,n)=>null!=e?e:null!=t?t:n,RouterViewImpl=defineComponent({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=inject(routerViewLocationKey),r=computed$1((()=>e.route||o.value)),i=inject(viewDepthKey,0),a=computed$1((()=>{let e=unref(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=computed$1((()=>r.value.matched[a.value]));provide(viewDepthKey,computed$1((()=>a.value+1))),provide(matchedRouteKey,s),provide(routerViewLocationKey,r);const c=ref();return watch((()=>[c.value,s.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&isSameRouteRecord(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,a=s.value,l=a&&a.components[i];if(!l)return normalizeSlot(n.default,{Component:l,route:o});const u=a.props[i],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,f=h(l,assign$1({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:c}));return normalizeSlot(n.default,{Component:f,route:o})||f}}});function normalizeSlot(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const RouterView=RouterViewImpl;function createRouter(e){const t=createRouterMatcher(e.routes,e),n=e.parseQuery||parseQuery,o=e.stringifyQuery||stringifyQuery$1,r=e.history,i=useCallbacks(),a=useCallbacks(),s=useCallbacks(),c=shallowRef(START_LOCATION_NORMALIZED);let l=START_LOCATION_NORMALIZED;isBrowser&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=applyToParams.bind(null,(e=>""+e)),d=applyToParams.bind(null,encodeParam),f=applyToParams.bind(null,decode);function p(e,i){if(i=assign$1({},i||c.value),"string"==typeof e){const o=parseURL(n,e,i.path),a=t.resolve({path:o.path},i),s=r.createHref(o.fullPath);return assign$1(o,a,{params:f(a.params),hash:decode(o.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)a=assign$1({},e,{path:parseURL(n,e.path,i.path).path});else{const t=assign$1({},e.params);for(const e in t)null==t[e]&&delete t[e];a=assign$1({},e,{params:d(e.params)}),i.params=d(i.params)}const s=t.resolve(a,i),l=e.hash||"";s.params=u(f(s.params));const p=stringifyURL(o,assign$1({},e,{hash:encodeHash(l),path:s.path})),h=r.createHref(p);return assign$1({fullPath:p,hash:l,query:o===stringifyQuery$1?normalizeQuery(e.query):e.query||{}},s,{redirectedFrom:void 0,href:h})}function h(e){return"string"==typeof e?parseURL(n,e,c.value.path):assign$1({},e)}function g(e,t){if(l!==e)return createRouterError(8,{from:t,to:e})}function m(e){return _(e)}function v(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=h(o):{path:o},o.params={}),assign$1({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function _(e,t){const n=l=p(e),r=c.value,i=e.state,a=e.force,s=!0===e.replace,u=v(n);if(u)return _(assign$1(h(u),{state:"object"==typeof u?assign$1({},i,u.state):i,force:a,replace:s}),t||n);const d=n;let f;return d.redirectedFrom=t,!a&&isSameRouteLocation(o,r,n)&&(f=createRouterError(16,{to:d,from:r}),x(r,r,!0,!1)),(f?Promise.resolve(f):b(d,r)).catch((e=>isNavigationFailure(e)?isNavigationFailure(e,2)?e:A(e):I(e,d,r))).then((e=>{if(e){if(isNavigationFailure(e,2))return _(assign$1({replace:s},h(e.to),{state:"object"==typeof e.to?assign$1({},i,e.to.state):i,force:a}),t||d)}else e=T(d,r,!0,s,i);return w(d,r,e),e}))}function y(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e,t){let n;const[o,r,s]=extractChangingRecords(e,t);n=extractComponentsGuards(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(guardToPromiseFn(o,e,t))}));const c=y.bind(null,e,t);return n.push(c),runGuardQueue(n).then((()=>{n=[];for(const o of i.list())n.push(guardToPromiseFn(o,e,t));return n.push(c),runGuardQueue(n)})).then((()=>{n=extractComponentsGuards(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(guardToPromiseFn(o,e,t))}));return n.push(c),runGuardQueue(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if(isArray$3(o.beforeEnter))for(const r of o.beforeEnter)n.push(guardToPromiseFn(r,e,t));else n.push(guardToPromiseFn(o.beforeEnter,e,t));return n.push(c),runGuardQueue(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=extractComponentsGuards(s,"beforeRouteEnter",e,t),n.push(c),runGuardQueue(n)))).then((()=>{n=[];for(const o of a.list())n.push(guardToPromiseFn(o,e,t));return n.push(c),runGuardQueue(n)})).catch((e=>isNavigationFailure(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of s.list())o(e,t,n)}function T(e,t,n,o,i){const a=g(e,t);if(a)return a;const s=t===START_LOCATION_NORMALIZED,l=isBrowser?history.state:{};n&&(o||s?r.replace(e.fullPath,assign$1({scroll:s&&l&&l.scroll},i)):r.push(e.fullPath,i)),c.value=e,x(e,t,n,s),A()}let E;let S,C=useCallbacks(),O=useCallbacks();function I(e,t,n){A(e);const o=O.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function A(e){return S||(S=!e,E||(E=r.listen(((e,t,n)=>{if(!$.listening)return;const o=p(e),i=v(o);if(i)return void _(assign$1(i,{replace:!0}),o).catch(noop$1);l=o;const a=c.value;isBrowser&&saveScrollPosition(getScrollKey(a.fullPath,n.delta),computeScrollPosition()),b(o,a).catch((e=>isNavigationFailure(e,12)?e:isNavigationFailure(e,2)?(_(e.to,o).then((e=>{isNavigationFailure(e,20)&&!n.delta&&n.type===NavigationType.pop&&r.go(-1,!1)})).catch(noop$1),Promise.reject()):(n.delta&&r.go(-n.delta,!1),I(e,o,a)))).then((e=>{(e=e||T(o,a,!1))&&(n.delta&&!isNavigationFailure(e,8)?r.go(-n.delta,!1):n.type===NavigationType.pop&&isNavigationFailure(e,20)&&r.go(-1,!1)),w(o,a,e)})).catch(noop$1)}))),C.list().forEach((([t,n])=>e?n(e):t())),C.reset()),e}function x(t,n,o,r){const{scrollBehavior:i}=e;if(!isBrowser||!i)return Promise.resolve();const a=!o&&getSavedScrollPosition(getScrollKey(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return nextTick().then((()=>i(t,n,a))).then((e=>e&&scrollToPosition(e))).catch((e=>I(e,t,n)))}const P=e=>r.go(e);let R;const L=new Set,$={currentRoute:c,listening:!0,addRoute:function(e,n){let o,r;return isRouteName(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,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:m,replace:function(e){return m(assign$1(h(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:O.add,isReady:function(){return S&&c.value!==START_LOCATION_NORMALIZED?Promise.resolve():new Promise(((e,t)=>{C.add([e,t])}))},install(e){e.component("RouterLink",RouterLink),e.component("RouterView",RouterView),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>unref(c)}),isBrowser&&!R&&c.value===START_LOCATION_NORMALIZED&&(R=!0,m(r.location).catch((e=>{})));const t={};for(const o in START_LOCATION_NORMALIZED)t[o]=computed$1((()=>c.value[o]));e.provide(routerKey,this),e.provide(routeLocationKey,reactive(t)),e.provide(routerViewLocationKey,c);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(l=START_LOCATION_NORMALIZED,E&&E(),E=null,c.value=START_LOCATION_NORMALIZED,R=!1,S=!1),n()}}};return $}function runGuardQueue(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function extractChangingRecords(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;aisSameRouteRecord(e,i)))?o.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>isSameRouteRecord(e,s)))||r.push(s))}return[n,o,r]}function useRouter(){return inject(routerKey)}function useRoute(){return inject(routeLocationKey)}const isEnableLocale=once((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let i18n;function getLocaleMessage(){const e=getLocale(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}function formatI18n(e){return isI18nStr(e,I18N_JSON_DELIMITERS)?useI18n().f(e,getLocaleMessage(),I18N_JSON_DELIMITERS):e}function resolveJsonObj(e,t){if(1===t.length){if(e){const n=e[t[0]];if(isString(n)&&isI18nStr(n,I18N_JSON_DELIMITERS))return e}return}const n=t.shift();return resolveJsonObj(e&&e[n],t)}function defineI18nProperty(e,t){const n=resolveJsonObj(e,t);if(!n)return!1;const o=t[t.length-1];let r=n[o];return Object.defineProperty(n,o,{get:()=>formatI18n(r),set(e){r=e}}),!0}function useI18n(){if(!i18n){let e;if(e=window.localStorage&&localStorage[UNI_STORAGE_LOCALE]||__uniConfig.locale||navigator.language,i18n=initVueI18n(e),isEnableLocale()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>i18n.add(e,__uniConfig.locales[e]))),i18n.setLocale(e)}}return i18n}function normalizeMessages(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const initI18nAsyncMsgsOnce=once((()=>{const e="uni.async.",t=["error"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["The connection timed out, click the screen to try again."]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["连接服务器超时,点击屏幕重试"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),initI18nShowToastMsgsOnce=once((()=>{const e="uni.showToast.",t=["unpaired"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Please note showToast must be paired with hideToast"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),initI18nShowLoadingMsgsOnce=once((()=>{const e="uni.showLoading.",t=["unpaired"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Please note showLoading must be paired with hideLoading"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),initI18nShowModalMsgsOnce=once((()=>{const e="uni.showModal.",t=["cancel","confirm"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["Cancel","OK"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["Cancelar","OK"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(e,t,["Annuler","OK"]),!1),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["取消","确定"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["取消","確定"]),!1)})),initI18nChooseFileMsgsOnce=once((()=>{const e="uni.chooseFile.",t=["notUserActivation"];useI18n().add(LOCALE_EN,normalizeMessages(e,t,["File chooser dialog can only be shown with a user activation"]),!1),useI18n().add(LOCALE_ES,normalizeMessages(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),useI18n().add(LOCALE_FR,normalizeMessages(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),useI18n().add(LOCALE_ZH_HANS,normalizeMessages(e,t,["文件选择器对话框只能在用户激活时显示"]),!1),useI18n().add(LOCALE_ZH_HANT,normalizeMessages(e,t,["文件選擇器對話框只能在用戶激活時顯示"]),!1)}));function initTabBarI18n(e){return isEnableLocale()&&e.list&&e.list.forEach((e=>{defineI18nProperty(e,["text"])})),e}function initBridge(e){const t=new E$1;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,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}const INVOKE_VIEW_API="invokeViewApi",INVOKE_SERVICE_API="invokeServiceApi";let invokeServiceMethodId=1;const invokeServiceMethod=(e,t,n)=>{const{subscribe:o,publishHandler:r}=UniViewJSBridge$1,i=n?invokeServiceMethodId++:0;n&&o(INVOKE_SERVICE_API+"."+i,n,!0),r(INVOKE_SERVICE_API,{id:i,name:e,args:t})},viewMethods=Object.create(null);function normalizeViewMethodName(e,t){return e+"."+t}function subscribeViewMethod(e,t){UniViewJSBridge$1.subscribe(normalizeViewMethodName(e,INVOKE_VIEW_API),t?t(onInvokeViewMethod):onInvokeViewMethod)}function unsubscribeViewMethod(e){UniViewJSBridge$1.unsubscribe(normalizeViewMethodName(e,INVOKE_VIEW_API)),Object.keys(viewMethods).forEach((t=>{0===t.indexOf(e+".")&&delete viewMethods[t]}))}function registerViewMethod(e,t,n){t=normalizeViewMethodName(e,t),viewMethods[t]||(viewMethods[t]=n)}function unregisterViewMethod(e,t){t=normalizeViewMethodName(e,t),delete viewMethods[t]}function onInvokeViewMethod({id:e,name:t,args:n},o){t=normalizeViewMethodName(o,t);const r=t=>{e&&UniViewJSBridge$1.publishHandler(INVOKE_VIEW_API+"."+e,t)},i=viewMethods[t];i?i(n,r):r({})}const ViewJSBridge=extend$1(initBridge("service"),{invokeServiceMethod:invokeServiceMethod}),LONGPRESS_TIMEOUT=350,LONGPRESS_THRESHOLD=10,passiveOptions$2=passive(!0);let longPressTimer;function clearLongPressTimer(){longPressTimer&&(clearTimeout(longPressTimer),longPressTimer=null)}let startPageX=0,startPageY=0;function touchstart(e){if(clearLongPressTimer(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];startPageX=t,startPageY=n,longPressTimer=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)}),LONGPRESS_TIMEOUT)}function touchmove(e){if(!longPressTimer)return;if(1!==e.touches.length)return clearLongPressTimer();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-startPageX)>LONGPRESS_THRESHOLD||Math.abs(n-startPageY)>LONGPRESS_THRESHOLD?clearLongPressTimer():void 0}function initLongPress(){window.addEventListener("touchstart",touchstart,passiveOptions$2),window.addEventListener("touchmove",touchmove,passiveOptions$2),window.addEventListener("touchend",clearLongPressTimer,passiveOptions$2),window.addEventListener("touchcancel",clearLongPressTimer,passiveOptions$2)}function checkValue$1(e,t){const n=Number(e);return isNaN(n)?t:n}function getWindowWidth$1(){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}function useRem(){const e=__uniConfig.globalStyle||{},t=checkValue$1(e.rpxCalcMaxDeviceWidth,960),n=checkValue$1(e.rpxCalcBaseDeviceWidth,375);function o(){let e=getWindowWidth$1();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 initView(){useRem(),initCustomDatasetOnce(),initLongPress()}var attrs=["top","left","right","bottom"],inited$1,elementComputedStyle={},support;function getSupport(){return support="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 init(){if(support="string"==typeof support?support:getSupport()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(a){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),attrs.forEach((function(e){!function(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),c=document.createElement("div"),l={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:support+"(safe-area-inset-"+n+")"};r(o,l),r(a,l),r(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(c),e.appendChild(o),e.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,r=a.scrollTop,attrChange(n))}o.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var u=getComputedStyle(o);Object.defineProperty(elementComputedStyle,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}(o,e)})),document.body.appendChild(o),i(),inited$1=!0}else attrs.forEach((function(e){elementComputedStyle[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}}function getAttr(e){return inited$1||init(),elementComputedStyle[e]}var changeAttrs=[];function attrChange(e){changeAttrs.length||setTimeout((function(){var e={};changeAttrs.forEach((function(t){e[t]=elementComputedStyle[t]})),changeAttrs.length=0,callbacks.forEach((function(t){t(e)}))}),0),changeAttrs.push(e)}var callbacks=[];function onChange(e){getSupport()&&(inited$1||init(),"function"==typeof e&&callbacks.push(e))}function offChange(e){var t=callbacks.indexOf(e);t>=0&&callbacks.splice(t,1)}var safeAreaInsets={get support(){return 0!=("string"==typeof support?support:getSupport()).length},get top(){return getAttr("top")},get left(){return getAttr("left")},get right(){return getAttr("right")},get bottom(){return getAttr("bottom")},onChange:onChange,offChange:offChange},out=safeAreaInsets;const onEventPrevent=withModifiers((()=>{}),["prevent"]),onEventStop=withModifiers((()=>{}),["stop"]);function getWindowOffsetCssVar(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function getWindowTop(){const e=getWindowOffsetCssVar(document.documentElement.style,"--window-top");return e?e+out.top:0}function getWindowOffset(){const e=document.documentElement.style,t=getWindowTop(),n=getWindowOffsetCssVar(e,"--window-bottom"),o=getWindowOffsetCssVar(e,"--window-left"),r=getWindowOffsetCssVar(e,"--window-right"),i=getWindowOffsetCssVar(e,"--top-window-height");return{top:t,bottom:n?n+out.bottom:0,left:o?o+out.left:0,right:r?r+out.right:0,topWindowHeight:i||0}}function updateCssVar(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function updatePageCssVar(e){return updateCssVar(e)}function PolySymbol(e){return Symbol(e)}function hasRpx(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function rpx2px$1(e,t=!1){if(t)return rpx2pxWithReplace(e);if(isString(e)){const t=parseInt(e)||0;return hasRpx(e)?upx2px(t):t}return e}function rpx2pxWithReplace(e){return hasRpx(e)?e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>upx2px(parseFloat(t))+"px")):e}const ICON_PATH_SUCCESS_NO_CIRCLE="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",ICON_PATH_WARN="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";function createSvgIconVNode(e,t="#000",n=27){return createVNode("svg",{width:n,height:n,viewBox:"0 0 32 32"},[createVNode("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function useCurrentPageId(){{const{$pageInstance:e}=getCurrentInstance();return e&&e.proxy.$page.id}}function getPageIdByVm(e){const t=resolveComponentInstance(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function getCurrentPage(){const e=getCurrentPages$1(),t=e.length;if(t)return e[t-1]}function getCurrentPageMeta(){const e=getCurrentPage();if(e)return e.$page.meta}function getCurrentPageId(){const e=getCurrentPageMeta();return e?e.id:-1}function getCurrentPageVm(){const e=getCurrentPage();if(e)return e.$vm}const PAGE_META_KEYS=["navigationBar","pullToRefresh"];function initGlobalStyle(){return JSON.parse(JSON.stringify(__uniConfig.globalStyle||{}))}function initRouteMeta(e,t){const n=initGlobalStyle(),o=extend$1({id:t},n,e);PAGE_META_KEYS.forEach((t=>{o[t]=extend$1({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function initPageInternalInstance(e,t,n,o,r){const{id:i,route:a}=o;return{id:i,path:addLeadingSlash(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#000000"===o.navigationBar.titleColor?"dark":"light"}}function invokeHook(e,t,n){if(isString(e))n=t,t=e,e=getCurrentPageVm();else if("number"==typeof e){const t=getCurrentPages$1().find((t=>t.$page.id===e));e=t?t.$vm:getCurrentPageVm()}if(!e)return;const o=e.$[t];return o&&invokeArrayFns(o,n)}function disableScrollListener(e){e.preventDefault()}let testReachBottomTimer,lastScrollHeight=0;function createScrollListener({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,r=!1,i=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-lastScrollHeight)>n;return!i||r&&!a?(!i&&r&&(r=!1),!1):(lastScrollHeight=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(testReachBottomTimer=setTimeout(a,300))),o=!1};return function(){clearTimeout(testReachBottomTimer),o||requestAnimationFrame(a),o=!0}}function normalizeRoute(e){if(0===e.indexOf("/"))return e;let t="";const n=getCurrentPages$1();return n.length&&(t=n[n.length-1].$page.route),getRealRoute(t,e)}function getRealRoute(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return getRealRoute(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r0?e.split("/"):[];return i.splice(i.length-r-1,r+1),addLeadingSlash(i.concat(n).join("/"))}function getRouteOptions(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function normalizeTabBarRoute(e,t,n){const o=getRouteOptions(addLeadingSlash(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const r=getRouteOptions(addLeadingSlash(n));if(r){const{meta:t}=r;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=removeLeadingSlash(n))}}class ComponentDescriptor{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=resolveOwnerEl(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=getWxsVm(this.$el.querySelector(e));return t?createComponentDescriptor(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-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];isFunction$1(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&UniViewJSBridge$1.publishHandler(ON_WXS_INVOKE_CALL_METHOD,{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 createComponentDescriptor(e,t=!0){if(t&&e&&(e=resolveOwnerVm(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new ComponentDescriptor(e)),e.$el.__wxsComponentDescriptor}function getComponentDescriptor(e,t){return createComponentDescriptor(e,t)}function resolveOwnerComponentPublicInstance(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=resolveOwnerVm(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}function wrapperH5WxsEvent(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>getComponentDescriptor(n.proxy,!1)}));const r=resolveOwnerComponentPublicInstance(t,n,o);if(r)return[e,getComponentDescriptor(r,!1)]}}function getWxsVm(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}const isClickEvent=e=>"click"===e.type,isMouseEvent=e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type);function $nne(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event&&o instanceof HTMLElement))return[e];const r=0!==o.tagName.indexOf("UNI-");if(r)return wrapperH5WxsEvent(e,t,n,!1)||[e];const i=createNativeEvent(e,r);if(isClickEvent(e))normalizeClickEvent(i,e);else if(isMouseEvent(e))normalizeMouseEvent(i,e);else if(e instanceof TouchEvent){const t=getWindowTop();i.touches=normalizeTouchEvent(e.touches,t),i.changedTouches=normalizeTouchEvent(e.changedTouches,t)}return wrapperH5WxsEvent(i,t,n)||[i]}function findUniTarget(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function createNativeEvent(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e,a={type:n,timeStamp:o,target:normalizeTarget(t?r:findUniTarget(r)),detail:{},currentTarget:normalizeTarget(i)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),wrapperEvent(a,e),a}function wrapperEvent(e,t){extend$1(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}function normalizeClickEvent(e,t){const{x:n,y:o}=t,r=getWindowTop();e.detail={x:n,y:o-r},e.touches=e.changedTouches=[createTouchEvent(t,r)]}function normalizeMouseEvent(e,t){const n=getWindowTop();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[createTouchEvent(t,n)]}function createTouchEvent(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function normalizeTouchEvent(e,t){const n=[];for(let o=0;oUniServiceJSBridge$1.emit("api."+e,t);let invokeViewMethodId=1;function publishViewMethodName(){return getCurrentPageId()+"."+INVOKE_VIEW_API}const invokeViewMethod=(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=UniServiceJSBridge$1,a=o?invokeViewMethodId++:0;o&&r(INVOKE_VIEW_API+"."+a,o,!0),i(publishViewMethodName(),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive=(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:a}=UniServiceJSBridge$1,s=invokeViewMethodId++,c=INVOKE_VIEW_API+"."+s;return r(c,n),a(publishViewMethodName(),{id:s,name:e,args:t},o),()=>{i(c)}},ServiceJSBridge=extend$1(initBridge("view"),{invokeOnCallback:invokeOnCallback,invokeViewMethod:invokeViewMethod,invokeViewMethodKeepAlive:invokeViewMethodKeepAlive});function initOn(){const{on:e}=UniServiceJSBridge$1;e(ON_RESIZE,onResize$1),e(ON_APP_ENTER_FOREGROUND,onAppEnterForeground),e(ON_APP_ENTER_BACKGROUND,onAppEnterBackground)}function onResize$1(e){invokeHook(getCurrentPage(),ON_RESIZE,e),UniServiceJSBridge$1.invokeOnCallback("onWindowResize",e)}function onAppEnterForeground(e){const t=getCurrentPage();invokeHook(getApp$1(),ON_SHOW,e),invokeHook(t,ON_SHOW)}function onAppEnterBackground(){invokeHook(getApp$1(),ON_HIDE),invokeHook(getCurrentPage(),ON_HIDE)}const SUBSCRIBE_LIFECYCLE_HOOKS=[ON_PAGE_SCROLL,ON_REACH_BOTTOM];function initSubscribe(){SUBSCRIBE_LIFECYCLE_HOOKS.forEach((e=>UniServiceJSBridge$1.subscribe(e,createPageEvent(e))))}function createPageEvent(e){return(t,n)=>{invokeHook(parseInt(n),e,t)}}function initService(){initOn(),initSubscribe()}function initAppVm(e){e.$vm=e,e.$mpType="app";const t=ref(useI18n().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}function initPageVm(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}function getOpenerEventChannel(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new EventChannel(this.$page.id)),e.eventChannel}}function initAppConfig(e){e.globalProperties.getOpenerEventChannel=getOpenerEventChannel}function initServicePlugin(e){initAppConfig(e._context.config)}function createLaunchOptions(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function defineGlobalData(e,t){const n=e.$options||{};n.globalData=extend$1(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}function converPx(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${upx2px(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}function getStyle(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"],r=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,c={},l=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(converPx)),n.indexOf(i)>=0&&(a.length=1),l.push(`${i}(${a.join(",")})`);else if(o.concat(r).includes(a[0])){i=a[0];const e=a[1];c[i]=r.includes(i)?converPx(e):e}})),c.transform=c.webkitTransform=l.join(" "),c.transition=c.webkitTransition=Object.keys(c).map((e=>`${converType(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),c.transformOrigin=c.webkitTransformOrigin=a.transformOrigin,c}function startAnimation(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],a=t.option.transition,s=getStyle(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n{i()}),0)}var animation={props:["animation"],watch:{animation:{deep:!0,handler(){startAnimation(this)}}},mounted(){startAnimation(this)}};const defineBuiltInComponent=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(animation),defineSystemComponent(e)},defineSystemComponent=e=>(e.__reserved=!0,e.compatConfig={MODE:3},defineComponent(e)),hoverProps={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function useHover(e){const t=ref(!1);let n,o,r=!1;function i(){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),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&i()}function c(){s(),window.removeEventListener("mouseup",c)}return{hovering:t,binding:{onTouchstartPassive:function(e){e.touches.length>1||a(e)},onMousedown:function(e){r||(a(e),window.addEventListener("mouseup",c))},onTouchend:function(){s()},onMouseup:function(){r&&c()},onTouchcancel:function(){r=!1,t.value=!1,clearTimeout(n)}}}}function useBooleanAttr(e,t){return isString(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function withWebEvent(e){return e.__wwe=!0,e}function useCustomEvent(e,t){return(n,o,r)=>{e.value&&t(n,normalizeCustomEvent(n,o,e.value,r||{}))}}function useNativeEvent(e){return(t,n)=>{e(t,createNativeEvent(n))}}function normalizeCustomEvent(e,t,n,o){const r=normalizeTarget(n);return{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}const uniFormKey=PolySymbol("uf"),uniLabelKey=PolySymbol("ul");function useListeners$1(e,t){_addListeners(e.id,t),watch((()=>e.id),((e,n)=>{_removeListeners(n,t,!0),_addListeners(e,t,!0)})),onUnmounted((()=>{_removeListeners(e.id,t)}))}function _addListeners(e,t,n){const o=useCurrentPageId();n&&!e||isPlainObject$2(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&UniViewJSBridge$1.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?UniViewJSBridge$1.on(r,t[r]):e&&UniViewJSBridge$1.on(`uni-${r}-${o}-${e}`,t[r])}))}function _removeListeners(e,t,n){const o=useCurrentPageId();n&&!e||isPlainObject$2(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&UniViewJSBridge$1.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?UniViewJSBridge$1.off(r,t[r]):e&&UniViewJSBridge$1.off(`uni-${r}-${o}-${e}`,t[r])}))}const buttonProps={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}};var index$z=defineBuiltInComponent({name:"Button",props:buttonProps,setup(e,{slots:t}){const n=ref(null),o=inject(uniFormKey,!1),{hovering:r,binding:i}=useHover(e);useI18n();const a=withWebEvent(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),s=inject(uniLabelKey,!1);return s&&(s.addHandler(a),onBeforeUnmount((()=>{s.removeHandler(a)}))),useListeners$1(e,{"label-click":a}),()=>{const o=e.hoverClass,s=useBooleanAttr(e,"disabled"),c=useBooleanAttr(e,"loading"),l=useBooleanAttr(e,"plain"),u=o&&"none"!==o;return createVNode("uni-button",mergeProps({ref:n,onClick:a,class:u&&r.value?o:""},u&&i,s,c,l),[t.default&&t.default()],16,["onClick"])}}});function findElem(e){return e.$el}function addBase(e){const{base:t}=__uniConfig.router;return 0===addLeadingSlash(e).indexOf(t)?addLeadingSlash(e):t+e}function getRealPath(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return addBase(e.slice(1));e="https:"+e}if(SCHEME_RE.test(e)||DATA_RE.test(e)||0===e.indexOf("blob:"))return e;const o=getCurrentPages$1();return o.length?addBase(getRealRoute(o[o.length-1].$page.route,e).slice(1)):e}const ua=navigator.userAgent,isAndroid=/android/i.test(ua),isIOS$1=/iphone|ipad|ipod/i.test(ua),isWindows=ua.match(/Windows NT ([\d|\d.\d]*)/i),isMac=/Macintosh|Mac/i.test(ua),isLinux=/Linux|X11/i.test(ua),isIPadOS=isMac&&navigator.maxTouchPoints>0;function getScreenFix(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function isLandscape(e){return e&&90===Math.abs(window.orientation)}function getScreenWidth(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function getScreenHeight(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}function getWindowWidth(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function getBaseSystemInfo(){const e=getScreenFix(),t=getWindowWidth(getScreenWidth(e,isLandscape(e)));return{platform:isIOS$1?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}function operateVideoPlayer(e,t,n,o){UniServiceJSBridge$1.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function operateMap(e,t,n,o,r){UniServiceJSBridge$1.invokeViewMethod("map."+e,{type:n,data:o},t,r)}function getRootInfo(e){const t={};if(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),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}function getNodeInfo(e,t){const n={},{top:o,topWindowHeight:r}=getWindowOffset();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=getCustomDataset(e)),t.rect||t.size){const i=e.getBoundingClientRect();t.rect&&(n.left=i.left,n.right=i.right,n.top=i.top-o-r,n.bottom=i.bottom-o-r),t.size&&(n.width=i.width,n.height=i.height)}if(isArray$4(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(isArray$4(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=getContextInfo(e)),n}function findElm(e,t){return e?e.$el:t.$el}function matches(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)}function getNodesInfo(e,t,n,o,r){const i=findElm(t,e),a=i.parentElement;if(!a)return o?null:[];const{nodeType:s}=i,c=3===s||8===s;if(o){const e=c?a.querySelector(n):matches(i,n)?i:i.querySelector(n);return e?getNodeInfo(e,r):null}{let e=[];const t=(c?a:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(getNodeInfo(t,r))})),!c&&matches(i,n)&&e.unshift(getNodeInfo(i,r)),e}}function requestComponentInfo(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:r,fields:i})=>{null===t?o.push(getRootInfo(i)):o.push(getNodesInfo(e,t,n,r,i))})),n(o)}const CHOOSE_SIZE_TYPES=["original","compressed"],CHOOSE_SOURCE_TYPES=["album","camera"],HTTP_METHODS=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function elemInArray(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function elemsInArray(e,t){return!isArray$4(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function tryCatch(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let invokeCallbackId=1;const invokeCallbacks={};function addInvokeCallback(e,t,n,o=!1){return invokeCallbacks[e]={name:t,keepAlive:o,callback:n},e}function invokeCallback(e,t,n){if("number"==typeof e){const o=invokeCallbacks[e];if(o)return o.keepAlive||delete invokeCallbacks[e],o.callback(t,n)}return t}const API_SUCCESS="success",API_FAIL="fail",API_COMPLETE="complete";function getApiCallbacks(e){const t={};for(const n in e){const o=e[n];isFunction$1(o)&&(t[n]=tryCatch(o),delete e[n])}return t}function normalizeErrMsg$1(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}function createAsyncApiCallback(e,t={},{beforeAll:n,beforeSuccess:o}={}){isPlainObject$2(t)||(t={});const{success:r,fail:i,complete:a}=getApiCallbacks(t),s=isFunction$1(r),c=isFunction$1(i),l=isFunction$1(a),u=invokeCallbackId++;return addInvokeCallback(u,e,(u=>{(u=u||{}).errMsg=normalizeErrMsg$1(u.errMsg,e),isFunction$1(n)&&n(u),u.errMsg===e+":ok"?(isFunction$1(o)&&o(u,t),s&&r(u)):c&&i(u),l&&a(u)})),u}const HOOK_SUCCESS="success",HOOK_FAIL="fail",HOOK_COMPLETE="complete",globalInterceptors={},scopedInterceptors={};function wrapperHook(e){return function(t){return e(t)||t}}function queue(e,t){let n=!1;for(let o=0;oe(t),catch(){}}}function wrapperOptions(e,t={}){return[HOOK_SUCCESS,HOOK_FAIL,HOOK_COMPLETE].forEach((n=>{const o=e[n];if(!isArray$4(o))return;const r=t[n];t[n]=function(e){queue(o,e).then((e=>isFunction$1(r)&&r(e)||e))}})),t}function wrapperReturnValue(e,t){const n=[];isArray$4(globalInterceptors.returnValue)&&n.push(...globalInterceptors.returnValue);const o=scopedInterceptors[e];return o&&isArray$4(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function getApiInterceptorHooks(e){const t=Object.create(null);Object.keys(globalInterceptors).forEach((e=>{"returnValue"!==e&&(t[e]=globalInterceptors[e].slice())}));const n=scopedInterceptors[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function invokeApi(e,t,n,o){const r=getApiInterceptorHooks(e);if(r&&Object.keys(r).length){if(isArray$4(r.invoke)){return queue(r.invoke,n).then((e=>t(wrapperOptions(r,e),...o)))}return t(wrapperOptions(r,n),...o)}return t(n,...o)}function hasCallback(e){return!(!isPlainObject$2(e)||![API_SUCCESS,API_FAIL,API_COMPLETE].find((t=>isFunction$1(e[t]))))}function handlePromise(e){return e}function promisify(e,t){return(n={},...o)=>hasCallback(n)?wrapperReturnValue(e,invokeApi(e,t,n,o)):wrapperReturnValue(e,handlePromise(new Promise(((r,i)=>{invokeApi(e,t,extend$1(n,{success:r,fail:i}),o)}))))}function formatApiArgs(e,t){const n=e[0];if(!t||!isPlainObject$2(t.formatArgs)&&isPlainObject$2(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i{const i=createAsyncApiCallback(e,r,o),a=beforeInvokeApi(e,[r],n,o);return a?invokeFail(i,e,a):t(r,{resolve:t=>invokeSuccess(i,e,t),reject:(t,n)=>invokeFail(i,e,normalizeErrMsg(t),n)})}}function wrapperSyncApi(e,t,n,o){return(...r)=>{const i=beforeInvokeApi(e,r,n,o);if(i)throw new Error(i);return t.apply(null,r)}}function wrapperAsyncApi(e,t,n,o){return wrapperTaskApi(e,t,n,o)}function defineTaskApi(e,t,n,o){return promisify(e,wrapperTaskApi(e,t,void 0,o))}function defineSyncApi(e,t,n,o){return wrapperSyncApi(e,t,void 0,o)}function defineAsyncApi(e,t,n,o){return promisify(e,wrapperAsyncApi(e,t,void 0,o))}function createUnsupportedMsg(e){return`method 'uni.${e}' not supported`}function createUnsupportedAsyncApi(e){return(t,{reject:n})=>n(createUnsupportedMsg(e))}const API_UPX2PX="upx2px",EPS=1e-4,BASE_DEVICE_WIDTH=750;let isIOS=!1,deviceWidth=0,deviceDPR=0,maxWidth=960,baseWidth=375;function checkDeviceWidth(){const{platform:e,pixelRatio:t,windowWidth:n}=getBaseSystemInfo();deviceWidth=n,deviceDPR=t,isIOS="ios"===e}function checkValue(e,t){const n=Number(e);return isNaN(n)?t:n}function checkMaxWidth(){const e=__uniConfig.globalStyle||{};maxWidth=checkValue(e.rpxCalcMaxDeviceWidth,960),baseWidth=checkValue(e.rpxCalcBaseDeviceWidth,375)}const upx2px=defineSyncApi(API_UPX2PX,((e,t)=>{if(0===deviceWidth&&(checkDeviceWidth(),checkMaxWidth()),0===(e=Number(e)))return 0;let n=t||deviceWidth;n=n<=maxWidth?n:baseWidth;let o=e/BASE_DEVICE_WIDTH*n;return o<0&&(o=-o),o=Math.floor(o+EPS),0===o&&(o=1!==deviceDPR&&isIOS?.5:1),e<0?-o:o})),API_ADD_INTERCEPTOR="addInterceptor";function mergeInterceptorHook(e,t){Object.keys(t).forEach((n=>{isFunction$1(t[n])&&(e[n]=mergeHook(e[n],t[n]))}))}function mergeHook(e,t){const n=t?e?e.concat(t):isArray$4(t)?t:[t]:e;return n?dedupeHooks(n):n}function dedupeHooks(e){const t=[];for(let n=0;n{isString(e)&&isPlainObject$2(t)?mergeInterceptorHook(scopedInterceptors[e]||(scopedInterceptors[e]={}),t):isPlainObject$2(e)&&mergeInterceptorHook(globalInterceptors,e)})),API_ON="$on",API_OFF="$off",API_EMIT="$emit",emitter=new E$1,$on=defineSyncApi(API_ON,((e,t)=>(emitter.on(e,t),()=>emitter.off(e,t)))),$off=defineSyncApi(API_OFF,((e,t)=>{e?(isArray$4(e)||(e=[e]),e.forEach((e=>emitter.off(e,t)))):emitter.e={}})),$emit=defineSyncApi(API_EMIT,((e,...t)=>{emitter.emit(e,...t)})),validator=[{name:"id",type:String,required:!0}],API_CREATE_CANVAS_CONTEXT="createCanvasContext";validator.concat({name:"componentInstance",type:Object});const RATES=[.5,.8,1,1.25,1.5,2];class VideoContext{constructor(e,t){this.id=e,this.pageId=t}play(){operateVideoPlayer(this.id,this.pageId,"play")}pause(){operateVideoPlayer(this.id,this.pageId,"pause")}stop(){operateVideoPlayer(this.id,this.pageId,"stop")}seek(e){operateVideoPlayer(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){operateVideoPlayer(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~RATES.indexOf(e)||(e=1),operateVideoPlayer(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){operateVideoPlayer(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){operateVideoPlayer(this.id,this.pageId,"exitFullScreen")}showStatusBar(){operateVideoPlayer(this.id,this.pageId,"showStatusBar")}hideStatusBar(){operateVideoPlayer(this.id,this.pageId,"hideStatusBar")}}const operateMapCallback=(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)},operateMapWrap=(e,t,n,o)=>{operateMap(e,t,n,o,(e=>{o&&operateMapCallback(o,e)}))};class MapContext{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){operateMapWrap(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){operateMapWrap(this.id,this.pageId,"moveToLocation",e)}getScale(e){operateMapWrap(this.id,this.pageId,"getScale",e)}getRegion(e){operateMapWrap(this.id,this.pageId,"getRegion",e)}includePoints(e){operateMapWrap(this.id,this.pageId,"includePoints",e)}translateMarker(e){operateMapWrap(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){operateMapWrap(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){operateMapWrap(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){operateMapWrap(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){operateMapWrap(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){operateMapWrap(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){operateMapWrap(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){operateMapWrap(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){operateMapWrap(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){operateMapWrap(this.id,this.pageId,"moveAlong",e)}openMapApp(e){operateMapWrap(this.id,this.pageId,"openMapApp",e)}on(e){operateMapWrap(this.id,this.pageId,"on",e)}}function getInt(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const formatWidth=getInt("width"),formatHeight=getInt("height"),API_CANVAS_GET_IMAGE_DATA="canvasGetImageData",CanvasGetImageDataOptions={formatArgs:{x:getInt("x"),y:getInt("y"),width:formatWidth,height:formatHeight}},CanvasGetImageDataProtocol={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},fileTypes={PNG:"png",JPG:"jpg",JPEG:"jpg"},API_CANVAS_TO_TEMP_FILE_PATH="canvasToTempFilePath",CanvasToTempFilePathOptions={formatArgs:{x:getInt("x",0),y:getInt("y",0),width:formatWidth,height:formatHeight,destWidth:getInt("destWidth"),destHeight:getInt("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=fileTypes[e];n||(n=fileTypes.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}},CanvasToTempFilePathProtocol={x:Number,y:Number,width:Number,height:Number,destWidth:Number,destHeight:Number,canvasId:{type:String,required:!0},fileType:String,quality:Number};function operateCanvas(e,t,n,o,r){UniServiceJSBridge$1.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}var methods1=["scale","rotate","translate","setTransform","transform"],methods2=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],methods3=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];function measureText(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}const predefinedColor={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 checkColor(e){var 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(hasOwn$1(predefinedColor,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(predefinedColor[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let i=parseInt(t[1].slice(6,8),16);return i=i>=0?i:255,[e,o,r,i]}return console.error("unsupported color:"+e),[0,0,0,255]}class CanvasGradient{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,checkColor(t)])}}class Pattern{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class TextMetrics{constructor(e){this.width=e}}class CanvasContext{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"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],operateCanvas(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new CanvasGradient("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new CanvasGradient("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 Pattern(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){let t=0;return t=measureText(e,this.state.font),new TextMetrics(t)}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,r,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,r,i]}),this.subpath.push([r,i])}arc(e,t,n,o,r,i=!1){this.path.push({method:"arc",data:[e,t,n,o,r,i]}),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,r){this.path.push({method:"arcTo",data:[e,t,n,o,r]}),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+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),r=parseFloat(n[3]),i=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"].indexOf(e)>-1?(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=r,this.state.fontFamily=i,this.actions.push({method:"setFont",data:[`${o} ${r}px ${i}`]})}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 initCanvasContextProperty=once((()=>{[...methods1,...methods2].forEach((function(e){CanvasContext.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,r){var i=[t.toString(),n,o];"number"==typeof r&&i.push(r),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,o,r,i,a,s,c,l){var u;function d(e){return"number"==typeof e}void 0===l&&(a=n,s=o,c=r,l=i,n=void 0,o=void 0,r=void 0,i=void 0),u=d(n)&&d(o)&&d(r)&&d(i)?[t,a,s,c,l,n,o,r,i]:d(c)&&d(l)?[t,a,s,c,l]:[t,a,s],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),methods3.forEach((function(e){CanvasContext.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",checkColor(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,r){r=checkColor(r),this.actions.push({method:e,data:[t,n,o,r]}),this.state.shadowBlur=o,this.state.shadowColor=r,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)}))})),createCanvasContext=defineSyncApi(API_CREATE_CANVAS_CONTEXT,((e,t)=>{if(initCanvasContextProperty(),t)return new CanvasContext(e,getPageIdByVm(t));const n=getPageIdByVm(getCurrentPageVm());if(n)return new CanvasContext(e,n);UniServiceJSBridge$1.emit(ON_ERROR,"createCanvasContext:fail")})),canvasGetImageData=defineAsyncApi(API_CANVAS_GET_IMAGE_DATA,(({canvasId:e,x:t,y:n,width:o,height:r},{resolve:i,reject:a})=>{const s=getPageIdByVm(getCurrentPageVm());s?operateCanvas(e,s,"getImageData",{x:t,y:n,width:o,height:r},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void a("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,i(e)})):a()}),CanvasGetImageDataProtocol,CanvasGetImageDataOptions),canvasToTempFilePath=defineAsyncApi(API_CANVAS_TO_TEMP_FILE_PATH,(({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,canvasId:a,fileType:s,quality:c},{resolve:l,reject:u})=>{var d=getPageIdByVm(getCurrentPageVm());if(!d)return void u();operateCanvas(a,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,fileType:s,quality:c,dirname:`${TEMP_PATH}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):l(e)}))}),CanvasToTempFilePathProtocol,CanvasToTempFilePathOptions),defaultOptions$1={thresholds:[0],initialRatio:0,observeAll:!1},MARGINS=["top","right","bottom","left"];let reqComponentObserverId$1=1;function normalizeRootMargin(e={}){return MARGINS.map((t=>`${Number(e[t])||0}px`)).join(" ")}class ServiceIntersectionObserver{constructor(e,t){this._pageId=getPageIdByVm(e),this._component=e,this._options=extend$1({},defaultOptions$1,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=normalizeRootMargin(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=normalizeRootMargin(e),this}observe(e,t){isFunction$1(t)&&(this._options.selector=e,this._reqId=reqComponentObserverId$1++,addIntersectionObserver({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&removeIntersectionObserver({reqId:this._reqId,component:this._component},this._pageId)}}const createIntersectionObserver=defineSyncApi("createIntersectionObserver",((e,t)=>((e=resolveComponentInstance(e))&&!getPageIdByVm(e)&&(t=e,e=null),new ServiceIntersectionObserver(e||getCurrentPageVm(),t))));let index$y=0,optionsCache={};function operateEditor(e,t,n,o){const r={options:o},i=o&&("success"in o||"fail"in o||"complete"in o);if(i){const e=String(index$y++);r.callbackId=e,optionsCache[e]=o}UniServiceJSBridge$1.invokeViewMethod(`editor.${e}`,{type:n,data:r},t,(({callbackId:e,data:t})=>{i&&(callOptions(optionsCache[e],t),delete optionsCache[e])}))}class EditorContext{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){operateEditor(this.id,this.pageId,e,t)}}const ContextClasss={canvas:CanvasContext,map:MapContext,video:VideoContext,editor:EditorContext};function convertContext(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,r=ContextClasss[n];e.context=new r(t,o),delete e.contextInfo}}class NodesRef{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}}class SelectorQuery{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return requestComponentInfo(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{isArray$4(e)?e.forEach(convertContext):convertContext(e);const o=n[t];isFunction$1(o)&&o.call(this,e)})),isFunction$1(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=resolveComponentInstance(e),this}select(e){return this._nodesRef=new NodesRef(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new NodesRef(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new NodesRef(this,null,"",!0)}_push(e,t,n,o,r){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(r)}}const createSelectorQuery=defineSyncApi("createSelectorQuery",(e=>((e=resolveComponentInstance(e))&&!getPageIdByVm(e)&&(e=null),new SelectorQuery(e||getCurrentPageVm())))),API_GET_LOCALE="getLocale",getLocale=defineSyncApi(API_GET_LOCALE,(()=>{const e=getApp$1();return e&&e.$vm?e.$vm.$locale:useI18n().getLocale()})),appHooks={[ON_UNHANDLE_REJECTION]:[],[ON_PAGE_NOT_FOUND]:[],[ON_ERROR]:[],[ON_SHOW]:[],[ON_HIDE]:[]};function injectAppHooks(e){Object.keys(appHooks).forEach((t=>{appHooks[t].forEach((n=>{injectHook(t,n,e)}))}))}const API_VIBRATE_SHORT="vibrateShort",API_GET_STORAGE_SYNC="getStorageSync",API_SET_STORAGE="setStorage",API_SET_STORAGE_SYNC="setStorageSync",API_REMOVE_STORAGE="removeStorage",API_HIDE_KEYBOARD="hideKeyboard",API_CHOOSE_IMAGE="chooseImage",ChooseImageOptions={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=elemsInArray(e,CHOOSE_SIZE_TYPES)},sourceType(e,t){t.sourceType=elemsInArray(e,CHOOSE_SOURCE_TYPES)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},ChooseImageProtocol={count:Number,sizeType:[Array,String],sourceType:Array,extension:Array},API_GET_IMAGE_INFO="getImageInfo",GetImageInfoOptions={formatArgs:{src(e,t){t.src=getRealPath(e)}}},GetImageInfoProtocol={src:{type:String,required:!0}},API_PREVIEW_IMAGE="previewImage",PreviewImageOptions={formatArgs:{urls(e,t){t.urls=e.map((e=>isString(e)&&e?getRealPath(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(hasOwn$1(t,s)){let e=t[s];null==e?e="":isPlainObject$2(e)&&(e=JSON.stringify(e)),a[encode(s)]=encode(e)}return r=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}const RequestProtocol={method:String,data:[Object,String,Array,ArrayBuffer],url:{type:String,required:!0},header:Object,dataType:String,responseType:String,withCredentials:Boolean},RequestOptions={formatArgs:{method(e,t){t.method=elemInArray((e||"").toUpperCase(),HTTP_METHODS)},data(e,t){t.data=e||""},url(e,t){t.method===HTTP_METHODS[0]&&isPlainObject$2(t.data)&&Object.keys(t.data).length&&(t.url=stringifyQuery(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==HTTP_METHODS[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||dataType.JSON).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===RESPONSE_TYPE.indexOf(t.responseType)&&(t.responseType=DEFAULT_RESPONSE_TYPE)}}},API_DOWNLOAD_FILE="downloadFile",DownloadFileOptions={formatArgs:{header(e,t){t.header=e||{}}}},DownloadFileProtocol={url:{type:String,required:!0},header:Object,timeout:Number},API_UPLOAD_FILE="uploadFile",UploadFileOptions={formatArgs:{filePath(e,t){e&&(t.filePath=getRealPath(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},UploadFileProtocol={url:{type:String,required:!0},files:Array,filePath:String,name:String,header:Object,formData:Object,timeout:Number};function encodeQueryString(e){if(!isString(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(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}const ANIMATION_IN$1=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],ANIMATION_OUT$1=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],BaseRouteProtocol={url:{type:String,required:!0}},API_NAVIGATE_TO="navigateTo",API_REDIRECT_TO="redirectTo",API_RE_LAUNCH="reLaunch",API_SWITCH_TAB="switchTab",API_NAVIGATE_BACK="navigateBack",API_PRELOAD_PAGE="preloadPage",API_UN_PRELOAD_PAGE="unPreloadPage",NavigateToProtocol=extend$1({},BaseRouteProtocol,createAnimationProtocol(ANIMATION_IN$1)),NavigateBackProtocol=extend$1({delta:{type:Number}},createAnimationProtocol(ANIMATION_OUT$1)),RedirectToProtocol=BaseRouteProtocol,ReLaunchProtocol=BaseRouteProtocol,SwitchTabProtocol=BaseRouteProtocol,NavigateToOptions=createRouteOptions(API_NAVIGATE_TO),RedirectToOptions=createRouteOptions(API_REDIRECT_TO),ReLaunchOptions=createRouteOptions(API_RE_LAUNCH),SwitchTabOptions=createRouteOptions(API_SWITCH_TAB),NavigateBackOptions={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(getCurrentPages$1().length-1,e)}}};function createAnimationProtocol(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 navigatorLock;function beforeRoute(){navigatorLock=""}function createRouteOptions(e){return{formatArgs:{url:createNormalizeUrl(e)},beforeAll:beforeRoute}}function createNormalizeUrl(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=normalizeRoute(t)).split("?")[0],r=getRouteOptions(o,!0);if(!r)return"page `"+t+"` is not found";if(e===API_NAVIGATE_TO||e===API_REDIRECT_TO){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===API_SWITCH_TAB&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==API_SWITCH_TAB&&e!==API_PRELOAD_PAGE||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=encodeQueryString(t),e!==API_UN_PRELOAD_PAGE)if(e!==API_PRELOAD_PAGE){if(navigatorLock===t&&"appLaunch"!==n.openType)return`${navigatorLock} locked`;__uniConfig.ready&&(navigatorLock=t)}else if(r.meta.isTabBar){const e=getCurrentPages$1(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const API_HIDE_LOADING="hideLoading",FRONT_COLORS=["#ffffff","#000000"],API_SET_NAVIGATION_BAR_COLOR="setNavigationBarColor",SetNavigationBarColorOptions={formatArgs:{animation(e,t){e||(e={duration:0,timingFunc:"linear"}),t.animation={duration:e.duration||0,timingFunc:e.timingFunc||"linear"}}}},SetNavigationBarColorProtocol={frontColor:{type:String,required:!0,validator(e){if(-1===FRONT_COLORS.indexOf(e))return`invalid frontColor "${e}"`}},backgroundColor:{type:String,required:!0},animation:Object},API_SET_NAVIGATION_BAR_TITLE="setNavigationBarTitle",API_SHOW_NAVIGATION_BAR_LOADING="showNavigationBarLoading",API_HIDE_NAVIGATION_BAR_LOADING="hideNavigationBarLoading",API_PAGE_SCROLL_TO="pageScrollTo",PageScrollToProtocol={scrollTop:Number,selector:String,duration:Number},PageScrollToOptions={formatArgs:{duration:300}},API_SHOW_LOADING="showLoading",ShowLoadingProtocol={title:String,mask:Boolean},ShowLoadingOptions={formatArgs:{title:"",mask:!1}},API_SHOW_MODAL="showModal",ShowModalProtocol={title:String,content:String,showCancel:Boolean,cancelText:String,cancelColor:String,confirmText:String,confirmColor:String},ShowModalOptions={beforeInvoke(){initI18nShowModalMsgsOnce()},formatArgs:{title:"",content:"",showCancel:!0,cancelText(e,t){if(!hasOwn$1(t,"cancelText")){const{t:e}=useI18n();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!hasOwn$1(t,"confirmText")){const{t:e}=useI18n();t.confirmText=e("uni.showModal.confirm")}},confirmColor:PRIMARY_COLOR}},API_SHOW_TOAST="showToast",SHOW_TOAST_ICON=["success","loading","none","error"],ShowToastProtocol={title:String,icon:String,image:String,duration:Number,mask:Boolean},ShowToastOptions={formatArgs:{title:"",icon(e,t){t.icon=elemInArray(e,SHOW_TOAST_ICON)},image(e,t){t.image=e?getRealPath(e):""},duration:1500,mask:!1}},API_STOP_PULL_DOWN_REFRESH="stopPullDownRefresh",IndexOptions={beforeInvoke(){const e=getCurrentPageMeta();if(e&&!e.isTabBar)return"not TabBar page"},formatArgs:{index(e){if(!__uniConfig.tabBar.list[e])return"tabbar item not found"}}},API_SET_TAB_BAR_ITEM="setTabBarItem";IndexOptions.beforeInvoke,IndexOptions.formatArgs;const API_SET_TAB_BAR_STYLE="setTabBarStyle",GRADIENT_RE=/^(linear|radial)-gradient\(.+?\);?$/;IndexOptions.beforeInvoke;const API_HIDE_TAB_BAR="hideTabBar",API_SHOW_TAB_BAR="showTabBar",API_HIDE_TAB_BAR_RED_DOT="hideTabBarRedDot",API_SHOW_TAB_BAR_RED_DOT="showTabBarRedDot",API_REMOVE_TAB_BAR_BADGE="removeTabBarBadge",API_SET_TAB_BAR_BADGE="setTabBarBadge";IndexOptions.beforeInvoke,IndexOptions.formatArgs;const initIntersectionObserverPolyfill=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(e){for(var t=window.document,n=r(t);n;)n=r(t=n.ownerDocument);return t}(),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?d(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,i=null,a=null;this.POLL_INTERVAL?i=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&&(i&&e.clearInterval(i),c(e,"resize",o,!0)),c(t,"scroll",o,!0),a&&a.disconnect()}));var l=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=l){var u=r(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 i=r(n);if((n=i&&i.ownerDocument)==t)return!0}return!1}))){var i=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),i(),t!=o){var a=r(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=0&&m>=0&&{top:c,bottom:u,left:f,right:h,width:g,height:m}||null),!v)break;_=_&&p(_)}return v}},a.prototype._getRootRect=function(){var t;if(this.root&&!h(this.root))t=l(this.root);else{var n=h(this.root)?this.root:e,o=n.documentElement,r=n.body;t={top:0,left:0,right:o.clientWidth||r.clientWidth,width:o.clientWidth||r.clientWidth,bottom:o.clientHeight||r.clientHeight,height:o.clientHeight||r.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 r=0;r{e.forEach((e=>{n({intersectionRatio:rectifyIntersectionRatio(e),intersectionRect:normalizeRect(e.intersectionRect),boundingClientRect:normalizeRect(e.boundingClientRect),relativeRect:normalizeRect(e.rootBounds),time:Date.now(),dataset:getCustomDataset(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){r.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function base64ToFile(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const a=new Uint8Array(i);for(;i--;)a[i]=r.charCodeAt(i);return blobToFile(a,o)}function getExtname(e){const t=e.split("/")[1];return t?`.${t}`:""}function getFileName(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}function blobToFile(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${getExtname(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function fileToUrl(e){for(const n in files)if(hasOwn$1(files,n)){if(files[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return files[t]=e,t}function getSameOriginUrl(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):urlToFile(e).then(fileToUrl)}const launchOptions=createLaunchOptions(),enterOptions=createLaunchOptions();function getEnterOptions(){return extend$1({},enterOptions)}function initLaunchOptions({path:e,query:t}){return extend$1(launchOptions,{path:e,query:t}),extend$1(enterOptions,launchOptions),extend$1({},launchOptions)}var ResizeSensor=defineBuiltInComponent({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=ref(null),o=useResizeSensorReset(n),r=useResizeSensorUpdate(n,t,o);return useResizeSensorLifecycle(n,e,r,o),()=>createVNode("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[createVNode("div",{onScroll:r},[createVNode("div",null,null)],40,["onScroll"]),createVNode("div",{onScroll:r},[createVNode("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});function useResizeSensorUpdate(e,t,n){const o=reactive({width:-1,height:-1});return watch((()=>extend$1({},o)),(e=>t("resize",e))),()=>{const t=e.value;o.width=t.offsetWidth,o.height=t.offsetHeight,n()}}function useResizeSensorReset(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}function useResizeSensorLifecycle(e,t,n,o){onActivated(o),onMounted((()=>{t.initial&&nextTick(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}const pixelRatio=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 wrapper(e,t=!0){e.width=e.offsetWidth*(t?pixelRatio:1),e.height=e.offsetHeight*(t?pixelRatio:1),e.getContext("2d").__hidpi__=t}let isHidpi=!1;function initHidpi(){if(isHidpi)return;isHidpi=!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;var n;t.drawImageByCanvas=(n=t.drawImage,function(e,t,o,r,i,a,s,c,l,u){if(!this.__hidpi__)return n.apply(this,arguments);t*=pixelRatio,o*=pixelRatio,r*=pixelRatio,i*=pixelRatio,a*=pixelRatio,s*=pixelRatio,c=u?c*pixelRatio:c,l=u?l*pixelRatio:l,n.call(this,e,t,o,r,i,a,s,c,l)}),1!==pixelRatio&&(!function(e,t){for(const n in e)hasOwn$1(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*pixelRatio}));else if(Array.isArray(e))for(let t=0;tinitHidpi()));function $getRealPath(e){return e?getRealPath(e):e}function resolveColor(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function processTouches(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let tempCanvas;function getTempCanvas(e=0,t=0){return tempCanvas||(tempCanvas=document.createElement("canvas")),tempCanvas.width=e,tempCanvas.height=t,tempCanvas}const props$x={canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}};var index$x=defineBuiltInComponent({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:props$x,computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){initHidpiOnce();const o=ref(null),r=ref(null),i=ref(!1),a=useNativeEvent(t),{$attrs:s,$excludeAttrs:c,$listeners:l}=useAttrs({excludeListeners:!0}),{_listeners:u}=useListeners(e,l,a),{_handleSubscribe:d,_resize:f}=useMethods(e,o,i);return useSubscribe(d,useContextInfo(e.canvasId),!0),onMounted((()=>{f()})),()=>{const{canvasId:t,disableScroll:i}=e;return createVNode("uni-canvas",mergeProps({"canvas-id":t,"disable-scroll":i},s.value,c.value,u.value),[createVNode("canvas",{ref:o,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),createVNode("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),createVNode(ResizeSensor,{ref:r,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});function useListeners(e,t,n){return{_listeners:computed$1((()=>{let o=t.value,r=extend$1({},(()=>{let e={};for(const t in o)if(hasOwn$1(o,t)){const n=o[t];e[t]=n}return e})());return["onTouchstart","onTouchmove","onTouchend"].forEach((t=>{let o=[];r[t]&&o.push(withWebEvent((e=>{const o=e.currentTarget.getBoundingClientRect();processTouches(o,e.touches),processTouches(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(onEventPrevent),r[t]=o})),r}))}}function useMethods(e,t,n){let o=[],r={};const i=computed$1((()=>e.hidpi?pixelRatio:1));function a({actions:e,reserve:i},a){if(!e)return;if(n.value)return void o.push([e,i]);let c=t.value,l=c.getContext("2d");i||(l.fillStyle="#000000",l.strokeStyle="#000000",l.shadowColor="#000000",l.shadowBlur=0,l.shadowOffsetX=0,l.shadowOffsetY=0,l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,c.width,c.height)),function(e){e.forEach((function(e){let t=e.method,n=e.data,o="";function i(){const e=r[o]=new Image;e.onload=function(){e.ready=!0},getSameOriginUrl(o).then((t=>{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=$getRealPath(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=$getRealPath(o),n[1]=o),o&&!r[o]&&i()}))}(e);for(let t=0;t{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),u({errMsg:n,tempFilePath:t})})):u({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")})}};return extend$1(l,{_resize:function(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*i.value)||o.height!==Math.floor(n.height*i.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);wrapper(o,e.hidpi),t.putImageData(n,0,0)}else wrapper(o,e.hidpi)},_handleSubscribe:function(e,t,n){let o=l[e];0!==e.indexOf("_")&&isFunction$1(o)&&o(t,n)}})}let resetTimer;function iosHideKeyboard(){}const props$u={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},emit$1=["keyboardheightchange"];function useKeyboard$1(e,t,n){function o(e){const t=computed$1((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(resetTimer),document.addEventListener("click",iosHideKeyboard,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",iosHideKeyboard,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}watch((()=>t.value),(e=>o(e)))}const props$s={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},FIX_MODES={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},IMAGE_MODES={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"]};var index$s=defineBuiltInComponent({name:"Image",props:props$s,setup(e,{emit:t}){const n=ref(null),o=useImageState(n,e),r=useCustomEvent(n,t),{fixSize:i}=useImageSize(n,e,o);return useImageLoader(o,e,n,i,r),()=>createVNode("uni-image",{ref:n},[createVNode("div",{style:o.modeStyle},null,4),FIX_MODES[e.mode]?createVNode(ResizeSensor,{onResize:i},null,8,["onResize"]):createVNode("span",null,null)],512)}});function useImageState(e,t){const n=ref(""),o=computed$1((()=>{let e="auto",o="";const r=IMAGE_MODES[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=reactive({rootEl:e,src:computed$1((()=>t.src?getRealPath(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return onMounted((()=>{const t=e.value.style;r.origWidth=Number(t.width)||0,r.origHeight=Number(t.height)||0})),r}function useImageLoader(e,t,n,o,r){let i,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},c=c=>{if(!c)return l(),void s();i=i||new Image,i.onload=e=>{const{width:u,height:d}=i;s(u,d,c),o(),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),l(),r("load",e,{width:u,height:d})},i.onerror=t=>{s(),l(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=c},l=()=>{i&&(i.onload=null,i.onerror=null,i=null)};watch((()=>e.src),(e=>c(e))),watch((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),onMounted((()=>c(e.src))),onBeforeUnmount((()=>l()))}const isChrome="Google Inc."===navigator.vendor;function fixNumber(e){return isChrome&&e>10&&(e=2*Math.round(e/2)),e}function useImageSize(e,t,n){const o=()=>{const{mode:o}=t,r=FIX_MODES[o];if(!r)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const c=e.value,l=c[r[0]];l&&(c.style[r[1]]=fixNumber(r[2](l,s))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return watch((()=>t.mode),((e,t)=>{FIX_MODES[t]&&r(),FIX_MODES[e]&&o()})),{fixSize:o,resetSize:r}}function throttle$1(e,t){let n,o,r=0;const i=function(...i){const a=Date.now();clearTimeout(n),o=()=>{o=null,r=a,e.apply(this,i)},a-rstates.forEach((t=>t.userAction=e));function addInteractListener(e={userAction:!1}){if(!inited){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!userInteract&&setUserAction(!0),userInteract++,setTimeout((()=>{!--userInteract&&setUserAction(!1)}),0)}),passiveOptions$1)})),inited=!0}states.push(e)}function removeInteractListener(e){const t=states.indexOf(e);t>=0&&states.splice(t,1)}const getInteractStatus=()=>!!userInteract;function useUserAction(){const e=reactive({userAction:!1});return onMounted((()=>{addInteractListener(e)})),onBeforeUnmount((()=>{removeInteractListener(e)})),{state:e}}function useScopedAttrs(){const e=reactive({attrs:{}});return onMounted((()=>{let t=getCurrentInstance();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function useFormField(e,t){const n=inject(uniFormKey,!1);if(!n)return;const o=getCurrentInstance(),r={submit(){const n=o.proxy;return[n[e],isString(t)?n[t]:t.value]},reset(){isString(t)?o.proxy[t]="":t.value=""}};n.addField(r),onBeforeUnmount((()=>{n.removeField(r)}))}function getSelectedTextRange(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)}const UniViewJSBridgeSubscribe=function(){registerViewMethod(getCurrentPageId(),"getSelectedTextRange",getSelectedTextRange)};function getValueString(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const props$r=extend$1({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},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"}},props$u),emit=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...emit$1];function useBase(e,t,n){const o=ref(null),r=useCustomEvent(t,n),i=computed$1((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=computed$1((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=computed$1((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),c=computed$1((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),l=getValueString(e.modelValue,e.type)||getValueString(e.value,e.type),u=reactive({value:l,valueOrigin:l,maxlength:c,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return watch((()=>u.focus),(e=>n("update:focus",e))),watch((()=>u.maxlength),(e=>u.value=u.value.slice(0,e))),{fieldRef:o,state:u,trigger:r}}function useValueSync(e,t,n,o){const r=debounce$1((n=>{t.value=getValueString(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});watch((()=>e.modelValue),r),watch((()=>e.value),r);const i=throttle$1(((e,t)=>{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return onBeforeMount((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function useAutoFocus(e,t){useUserAction();const n=computed$1((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}watch((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),onMounted((()=>{n.value&&nextTick(o)}))}function useEvent(e,t,n,o,r,i){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 c(e){return"number"===e.type?null:e.selectionEnd}watch([()=>t.selectionStart,()=>t.selectionEnd],a),watch((()=>t.cursor),s),watch((()=>e.value),(function(){const l=e.value,u=function(e,o){e.stopPropagation(),isFunction$1(i)&&!1===i(e,t)||(t.value=l.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:l.value,cursor:c(l)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}l.addEventListener("change",(e=>e.stopPropagation())),l.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()})),l.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:c(e.target)})})),l.addEventListener("input",u),l.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),l.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),l.addEventListener("compositionupdate",d)}))}function useField(e,t,n,o){UniViewJSBridgeSubscribe();const{fieldRef:r,state:i,trigger:a}=useBase(e,t,n),{triggerInput:s}=useValueSync(e,i,n,a);useAutoFocus(e,r),useKeyboard$1(e,r);const{state:c}=useScopedAttrs();useFormField("name",i),useEvent(r,i,e,a,s,o);return{fieldRef:r,state:i,scopedAttrsState:c,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const props$q=extend$1({},props$r,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}});var Input=defineBuiltInComponent({name:"Input",props:props$q,emits:["confirm",...emit],setup(e,{emit:t}){const n=["text","number","idcard","digit","password","tel"],o=["off","one-time-code"],r=computed$1((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~n.includes(e.type)?e.type:"text"}return e.password?"password":t})),i=computed$1((()=>{const t=o.indexOf(e.textContentType),n=o.indexOf(hyphenate(e.textContentType));return o[-1!==t?t:-1!==n?n:0]}));let a,s=ref("");const c=ref(null),{fieldRef:l,state:u,scopedAttrsState:d,fixDisabledColor:f,trigger:p}=useField(e,c,t,((e,t)=>{const n=e.target;if("number"===r.value){if(a&&(n.removeEventListener("blur",a),a=null),n.validity&&!n.validity.valid)return!s.value&&"-"===e.data||"-"===s.value[0]&&"deleteContentBackward"===e.inputType?(s.value="-",t.value="",a=()=>{s.value=n.value=""},n.addEventListener("blur",a),!1):(s.value=t.value=n.value="-"===s.value?"":s.value,!1);s.value=n.value;const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));watch((()=>u.value),(t=>{"number"!==e.type||"-"===s.value&&""===t||(s.value=t)}));const h=["number","digit"],g=computed$1((()=>h.includes(e.type)?e.step:""));function m(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return()=>{let t=e.disabled&&f?createVNode("input",{ref:l,value:u.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:u.maxlength,step:g.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):createVNode("input",{ref:l,value:u.value,disabled:!!e.disabled,type:r.value,maxlength:u.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:i.value,onKeyup:m},null,40,["value","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup"]);return createVNode("uni-input",{ref:c},[createVNode("div",{class:"uni-input-wrapper"},[withDirectives(createVNode("div",mergeProps(d.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[vShow,!(u.value.length||"-"===s.value)]]),"search"===e.confirmType?createVNode("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});function entries(e){return Object.keys(e).map((t=>[t,e[t]]))}const DEFAULT_EXCLUDE_KEYS=["class","style"],LISTENER_PREFIX=/^on[A-Z]+/,useAttrs=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=getCurrentInstance(),r=shallowRef({}),i=shallowRef({}),a=shallowRef({}),s=n.concat(DEFAULT_EXCLUDE_KEYS);return o.attrs=reactive(o.attrs),watchEffect((()=>{const e=entries(o.attrs).reduce(((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:LISTENER_PREFIX.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});r.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:a}};function flatVNode(e){const t=[];return isArray$4(e)&&e.forEach((e=>{isVNode(e)?e.type===Fragment?t.push(...flatVNode(e.children)):t.push(e):isArray$4(e)&&t.push(...flatVNode(e))})),t}const movableAreaProps={scaleArea:{type:Boolean,default:!1}};var MovableArea=defineBuiltInComponent({inheritAttrs:!1,name:"MovableArea",props:movableAreaProps,setup(e,{slots:t}){const n=ref(null),o=ref(!1);let{setContexts:r,events:i}=useMovableAreaState(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:c}=useAttrs(),l=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=l[e],n=i[`_${e}`];l[e]=t?[].concat(t,n):n})),onMounted((()=>{i._resize(),o.value=!0}));let u=[];const d=[];function f(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(markRaw(o))}r(e)}return provide("_isMounted",o),provide("movableAreaRootRef",n),provide("addMovableViewContext",(e=>{d.push(e),f()})),provide("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),f())})),()=>{const e=t.default&&t.default();return u=flatVNode(e),createVNode("uni-movable-area",mergeProps({ref:n},s.value,c.value,l),[createVNode(ResizeSensor,{onReize:i._resize},null,8,["onReize"]),u],16)}}});function calc(e){return Math.sqrt(e.x*e.x+e.y*e.y)}function useMovableAreaState(e,t){const n=ref(0),o=ref(0),r=reactive({x:null,y:null}),i=ref(null);let a=null,s=[];function c(e,n=s){let o=t.value;return function e(t){for(let o=0;o{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(i.value=calc(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}})),u=withWebEvent((t=>{let n=t.touches;if(n&&n.length>1){t.preventDefault();let c={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(null!==r.x&&i.value&&i.value>0){let t=calc(c)/i.value;(o=t)&&1!==o&&(e.scaleArea?s.forEach((function(e){e._setScale(o)})):a&&a._setScale(o))}r.x=c.x,r.y=c.y}var o})),d=withWebEvent((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):a&&a._endScale())}));return provide("movableAreaWidth",n),provide("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:l,_onTouchmove:u,_onTouchend:d,_resize:function(){!function(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}(),s.forEach((function(e,t){e.setParent()}))}}}}const addListenerToElement=function(e,t,n,o){e.addEventListener(t,(e=>{isFunction$1(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let __mouseMoveEventListener,__mouseUpEventListener;function useTouchtrack(e,t,n){onBeforeUnmount((()=>{document.removeEventListener("mousemove",__mouseMoveEventListener),document.removeEventListener("mouseup",__mouseUpEventListener)}));let o=0,r=0,i=0,a=0;const s=function(e,n,s,c){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:c,dx:s-o,dy:c-r,ddx:s-i,ddy:c-a,timeStamp:e.timeStamp}}))return!1};let c,l,u=null;addListenerToElement(e,"touchstart",(function(e){if(c=!0,1===e.touches.length&&!u)return u=e,o=i=e.touches[0].pageX,r=a=e.touches[0].pageY,s(e,"start",o,r)})),addListenerToElement(e,"mousedown",(function(e){if(l=!0,!c&&!u)return u=e,o=i=e.pageX,r=a=e.pageY,s(e,"start",o,r)})),addListenerToElement(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=__mouseMoveEventListener=function(e){if(!c&&l&&u){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),addListenerToElement(e,"touchend",(function(e){if(0===e.touches.length&&u)return c=!1,u=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const f=__mouseUpEventListener=function(e){if(l=!1,!c&&u)return u=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",f),addListenerToElement(e,"touchcancel",(function(e){if(u){c=!1;const t=u;return u=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function e(e,t,n){return e>t-n&&ethis._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&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Friction$1.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}},Friction$1.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}},Friction$1.prototype.dt=function(){return-this._x_v/this._x_a},Friction$1.prototype.done=function(){const t=e(this.s().x,this._endPositionX)||e(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,t},Friction$1.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Friction$1.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Spring$1.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,a=t/(r*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+a*e)*t+a*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),c=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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,c=e,l=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(c*Math.cos(a*e)+l*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*(l*a*n-c*a*o)+s*t*(l*o+c*n)}}},Spring$1.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Spring$1.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Spring$1.prototype.setEnd=function(e,n,o){if(o||(o=(new Date).getTime()),e!==this._endPosition||!t(n,.1)){n=n||0;let r=this._endPosition;this._solution&&(t(n,.1)&&(n=this._solution.dx((o-this._startTime)/1e3)),r=this._solution.x((o-this._startTime)/1e3),t(n,.1)&&(n=0),t(r,.1)&&(r=0),r+=this._endPosition),this._solution&&t(r-e,.1)&&t(n,.1)||(this._endPosition=e,this._solution=this._solve(r-this._endPosition,n),this._startTime=o)}},Spring$1.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Spring$1.prototype.done=function(n){return n||(n=(new Date).getTime()),e(this.x(),this._endPosition,.1)&&t(this.dx(),.1)},Spring$1.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())},Spring$1.prototype.springConstant=function(){return this._k},Spring$1.prototype.damping=function(){return this._c},Spring$1.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}]},STD.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},STD.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)}},STD.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},STD.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};const movableViewProps={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:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}};function v(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}var MovableView=defineBuiltInComponent({name:"MovableView",props:movableViewProps,emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=ref(null),r=useCustomEvent(o,n),{setParent:i}=useMovableViewState(e,r,o);return()=>createVNode("uni-movable-view",{ref:o},[createVNode(ResizeSensor,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let requesting=!1;function _requestAnimationFrame(e){requesting||(requesting=!0,requestAnimationFrame((function(){e(),requesting=!1})))}function p(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=p(e.offsetParent,t):0}function f(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=f(e.offsetParent,t):0}function g(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function _getPx(e){return/\d+[ur]px$/i.test(e)?upx2px(parseFloat(e)):Number(e)||0}function useMovableViewState(e,t,n){const o=inject("movableAreaWidth",ref(0)),r=inject("movableAreaHeight",ref(0)),i=inject("_isMounted",ref(!1)),a=inject("movableAreaRootRef"),s=inject("addMovableViewContext",(()=>{})),c=inject("removeMovableViewContext",(()=>{})),l=ref(_getPx(e.x)),u=ref(_getPx(e.y)),d=ref(Number(e.scaleValue)||1),h=ref(0),m=ref(0),_=ref(0),y=ref(0),b=ref(0),w=ref(0);let T=null,E=null;const S={x:0,y:0},C={x:0,y:0};let O,I,A=1,x=1,P=0,R=0,L=!1,$=!1,k=null,N=null;const M=new Decline,D=new Decline,B={historyX:[0,0],historyY:[0,0],historyT:[0,0]},V=computed$1((()=>{let t=Number(e.damping);return isNaN(t)?20:t})),j=computed$1((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),F=computed$1((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),U=computed$1((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),H=computed$1((()=>"all"===e.direction||"horizontal"===e.direction)),G=computed$1((()=>"all"===e.direction||"vertical"===e.direction)),W=new STD(1,9*Math.pow(V.value,2)/40,V.value),z=new Friction$1(1,j.value);function q(){E&&E.cancel(),T&&T.cancel()}function K(){if(!e.scale)return!1;ee(A,!0),te(A)}function Y(){L||e.disabled||(q(),B.historyX=[0,0],B.historyY=[0,0],B.historyT=[0,0],H.value&&(O=P),G.value&&(I=R),n.value.style.willChange="transform",k=null,N=null,$=!0)}function X(){if(!L&&!e.disabled&&$&&(n.value.style.willChange="auto",$=!1,!k&&!function(e){let t=Z(P,R),n=t.x,o=t.y,r=t.outOfBounds;r&&oe(n,o,A,e);return r}("out-of-bounds")&&e.inertia)){const e=1e3*(B.historyX[1]-B.historyX[0])/(B.historyT[1]-B.historyT[0]),t=1e3*(B.historyY[1]-B.historyY[0])/(B.historyT[1]-B.historyT[0]);z.setV(e,t),z.setS(P,R);const n=z.delta().x,o=z.delta().y;let r=n+P,i=o+R;r<_.value?(r=_.value,i=R+(_.value-P)*o/n):r>b.value&&(r=b.value,i=R+(b.value-P)*o/n),iw.value&&(i=w.value,r=P+(w.value-R)*n/o),z.setEnd(r,i),E=g(z,(function(){let e=z.s();re(e.x,e.y,A,"friction")}),(function(){E.cancel()}))}e.outOfBounds||e.inertia||q()}function Z(e,t){let n=!1;return e>b.value?(e=b.value,n=!0):e<_.value&&(e=_.value,n=!0),t>w.value?(t=w.value,n=!0):te.x),(e=>{l.value=_getPx(e)})),watch((()=>e.y),(e=>{u.value=_getPx(e)})),watch(l,(e=>{!function(e){if(H.value){if(e+C.x===P)return P;T&&T.cancel(),oe(e+C.x,u.value+C.y,A)}}(e)})),watch(u,(e=>{!function(e){if(G.value){if(e+C.y===R)return R;T&&T.cancel(),oe(l.value+C.x,e+C.y,A)}}(e)})),watch((()=>e.disabled),(()=>{Y()})),watch((()=>e.scaleValue),(e=>{d.value=Number(e)||0})),watch(d,(t=>{!function(t){if(!e.scale)return!1;ee(t=ne(t),!0),te(t)}(t)})),watch(F,(()=>{K()})),watch(U,(()=>{K()})),onMounted((()=>{useTouchtrack(n.value,(t=>{switch(t.detail.state){case"start":Y();break;case"move":!function(t){if(!L&&!e.disabled&&$){let n=P,o=R;if(null===N&&(N=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),H.value&&(n=t.detail.dx+O,B.historyX.shift(),B.historyX.push(n),G.value||null!==k||(k=Math.abs(t.detail.dx/t.detail.dy)<1)),G.value&&(o=t.detail.dy+I,B.historyY.shift(),B.historyY.push(o),H.value||null!==k||(k=Math.abs(t.detail.dy/t.detail.dx)<1)),B.historyT.shift(),B.historyT.push(t.detail.timeStamp),!k){t.preventDefault();let r="touch";n<_.value?e.outOfBounds?(r="touch-out-of-bounds",n=_.value-M.x(_.value-n)):n=_.value:n>b.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=b.value+M.x(n-b.value)):n=b.value),ow.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=w.value+D.x(o-w.value)):o=w.value),_requestAnimationFrame((function(){re(n,o,A,r)}))}}}(t);break;case"end":X()}})),ie(),z.reconfigure(1,j.value),W.reconfigure(1,9*Math.pow(V.value,2)/40,V.value),n.value.style.transformOrigin="center";const t={rootRef:n,setParent:ie,_endScale:ae,_setScale:se};s(t),onUnmounted((()=>{c(t)}))})),onUnmounted((()=>{q()})),{setParent:ie}}const OPEN_TYPES=["navigate","redirect","switchTab","reLaunch","navigateBack"],ANIMATION_IN=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],ANIMATION_OUT=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],navigatorProps={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~OPEN_TYPES.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||ANIMATION_IN.concat(ANIMATION_OUT).includes(e)},animationDuration:{type:[String,Number],default:300}};function createNavigatorOnClick(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":navigateTo({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":redirectTo({url:e.url,exists:e.exists});break;case"switchTab":switchTab({url:e.url});break;case"reLaunch":reLaunch({url:e.url});break;case"navigateBack":navigateBack({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}var index$r=defineBuiltInComponent({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:navigatorProps,setup(e,{slots:t}){const n=getCurrentInstance(),o=n&&n.vnode.scopeId||"",{hovering:r,binding:i}=useHover(e),a=createNavigatorOnClick(e);return()=>{const{hoverClass:s,url:c}=e,l=e.hoverClass&&"none"!==e.hoverClass;return createVNode("a",{class:"navigator-wrap",href:c,onClick:onEventPrevent,onMousedown:onEventPrevent},[createVNode("uni-navigator",mergeProps({class:l&&r.value?s:""},l&&i,n?n.attrs:{},{[o]:""},{onClick:a}),[t.default&&t.default()],16,["onClick"])],40,["href","onClick","onMousedown"])}}});const pickerViewProps={value:{type:Array,default:()=>[],validator:function(e){return isArray$4(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:""}};function useState$4(e){const t=reactive([...e.value]),n=reactive({value:t,height:34});return watch((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}var PickerView=defineBuiltInComponent({name:"PickerView",props:pickerViewProps,emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=ref(null),r=ref(null),i=useCustomEvent(o,n),a=useState$4(e),s=ref(null);onMounted((()=>{const e=s.value;a.height=e.$el.offsetHeight}));let c=ref([]),l=ref([]);function u(e){let t=l.value;t=t.filter((e=>e.type!==Comment));let n=t.indexOf(e);return-1!==n?n:c.value.indexOf(e)}return provide("getPickerViewColumn",(function(e){return computed$1({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),i("change",{},{value:e})}}})})),provide("pickerViewProps",e),provide("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=flatVNode(e);c.value=t,nextTick((()=>{l.value=t}))}return createVNode("uni-picker-view",{ref:o},[createVNode(ResizeSensor,{ref:s,onResize:({height:e})=>a.height=e},null,8,["onResize"]),createVNode("div",{ref:r,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Friction{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 o(e,t,n){return e>t-n&&e0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),c=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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*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,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,c=e,l=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(c*Math.cos(a*e)+l*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*(l*a*n-c*a*o)+s*t*(l*o+c*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||!a(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(a(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),a(t,.4)&&(t=0),a(o,.4)&&(o=0),o+=this._endPosition),this._solution&&a(o-e,.4)&&a(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()),o(this.x(),this._endPosition,.4)&&a(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 Scroll{constructor(e,t,n){this._extent=e,this._friction=t||new Friction(.01),this._spring=n||new Spring(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}}function createAnimation(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);const i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}class Scroller{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 Scroll(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/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=createAnimation(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()),isFunction$1(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),isFunction$1(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(isFunction$1(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 r=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(),r!==this._position&&(this.dispatchScroll(),isFunction$1(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 useScroller(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new Scroller(e,t);function r(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,r=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=r.screenX,n.y=r.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||r.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 i=r(e);if(i){for(n.maxDy=Math.max(n.maxDy,Math.abs(i.y)),n.maxDx=Math.max(n.maxDx,Math.abs(i.x)),n.historyX.push(i.x),n.historyY.push(i.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(i.x,i.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=r(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,r=n.historyTime[t],i=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=r-n.historyTime[t];if(e>30&&e<50){o.x=(i-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)}}}}}let scopedIndex=0;function useScopedClass(e){const t="uni-picker-view-content-"+scopedIndex++;return watch((()=>e.value),(function(){const n=document.createElement("style");n.innerText=`.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`,document.head.appendChild(n)})),t}function useCustomClick(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)}}))}var PickerViewColumn=defineBuiltInComponent({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=ref(null),r=ref(null),i=inject("getPickerViewColumn"),a=getCurrentInstance(),s=i?i(a):ref(0),c=inject("pickerViewProps"),l=inject("pickerViewState"),u=ref(34),d=ref(null);onMounted((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const f=computed$1((()=>(l.height-u.value)/2)),{state:p}=useScopedAttrs(),h=useScopedClass(u);let g;const m=reactive({current:s.value,length:0});let v;function _(){g&&!v&&(v=!0,nextTick((()=>{v=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),g.update(e*u.value,void 0,u.value)})))}watch((()=>s.value),(e=>{e!==m.current&&(m.current=e,_())})),watch((()=>m.current),(e=>s.value=e)),watch([()=>u.value,()=>m.length,()=>l.height],_);let y=0;function b(e){const t=y+e.deltaY;if(Math.abs(t)>10){y=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),g.scrollTo(e*u.value)}else y=t;e.preventDefault()}function w({clientY:e}){const t=o.value;if(!g.isScrolling()){const n=e-t.getBoundingClientRect().top-l.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 r=Math.min(m.current+t,m.length-1);m.current=r=Math.max(r,0),g.scrollTo(r*u.value)}}}return onMounted((()=>{const e=o.value,t=r.value,{scroller:n,handleTouchStart:i,handleTouchMove:a,handleTouchEnd:s}=useScroller(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Friction(1e-4),spring:new Spring(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});g=n,useTouchtrack(e,(e=>{switch(e.detail.state){case"start":i(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":s(e)}}),!0),useCustomClick(e),_()})),()=>{const e=t.default&&t.default();m.length=flatVNode(e).length;const n=`${f.value}px 0`;return createVNode("uni-picker-view-column",{ref:o},[createVNode("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[createVNode("div",mergeProps(p.attrs,{class:["uni-picker-view-mask",c.maskClass],style:`background-size: 100% ${f.value}px;${c.maskStyle}`}),null,16),createVNode("div",mergeProps(p.attrs,{class:["uni-picker-view-indicator",c.indicatorClass],style:c.indicatorStyle}),[createVNode(ResizeSensor,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),createVNode("div",{ref:r,class:["uni-picker-view-content",h],style:{padding:n}},[e],6)],40,["onWheel","onClick"])],512)}}});const passiveOptions=passive(!0),props$m={scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},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:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}};var ScrollView=defineBuiltInComponent({name:"ScrollView",compatConfig:{MODE:3},props:props$m,emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n}){const o=ref(null),r=ref(null),i=ref(null),a=ref(null),s=ref(null),c=useCustomEvent(o,t),{state:l,scrollTopNumber:u,scrollLeftNumber:d}=useScrollViewState(e);useScrollViewLoader(e,l,u,d,c,o,r,a,t);const f=computed$1((()=>{let t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{const{refresherEnabled:t,refresherBackground:c,refresherDefaultStyle:u}=e,{refresherHeight:d,refreshState:p,refreshRotate:h}=l;return createVNode("uni-scroll-view",{ref:o},[createVNode("div",{ref:i,class:"uni-scroll-view"},[createVNode("div",{ref:r,style:f.value,class:"uni-scroll-view"},[createVNode("div",{ref:a,class:"uni-scroll-view-content"},[t?createVNode("div",{ref:s,style:{backgroundColor:c,height:d+"px"},class:"uni-scroll-view-refresher"},["none"!==u?createVNode("div",{class:"uni-scroll-view-refresh"},[createVNode("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==p?createVNode("svg",{key:"refresh__icon",style:{transform:"rotate("+h+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[createVNode("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),createVNode("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==p?createVNode("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[createVNode("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==u?n.refresher&&n.refresher():null],4):null,n.default&&n.default()],512)],4)],512)],512)}}});function useScrollViewState(e){const t=computed$1((()=>Number(e.scrollTop)||0)),n=computed$1((()=>Number(e.scrollLeft)||0));return{state:reactive({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}function useScrollViewLoader(e,t,n,o,r,i,a,s,c){let l=!1,u=0,d=!1,f=()=>{};const p=computed$1((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),h=computed$1((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function g(t,n){const o=a.value;let r=0,i="";if(t<0?t=0:"x"===n&&t>o.scrollWidth-o.offsetWidth?t=o.scrollWidth-o.offsetWidth:"y"===n&&t>o.scrollHeight-o.offsetHeight&&(t=o.scrollHeight-o.offsetHeight),"x"===n?r=o.scrollLeft-t:"y"===n&&(r=o.scrollTop-t),0===r)return;let c=s.value;c.style.transition="transform .3s ease-out",c.style.webkitTransition="-webkit-transform .3s ease-out","x"===n?i="translateX("+r+"px) translateZ(0)":"y"===n&&(i="translateY("+r+"px) translateZ(0)"),c.removeEventListener("transitionend",f),c.removeEventListener("webkitTransitionEnd",f),f=()=>function(t,n){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let o=a.value;"x"===n?(o.style.overflowX=e.scrollX?"auto":"hidden",o.scrollLeft=t):"y"===n&&(o.style.overflowY=e.scrollY?"auto":"hidden",o.scrollTop=t);s.value.removeEventListener("transitionend",f),s.value.removeEventListener("webkitTransitionEnd",f)}(t,n),c.addEventListener("transitionend",f),c.addEventListener("webkitTransitionEnd",f),"x"===n?o.style.overflowX="hidden":"y"===n&&(o.style.overflowY="hidden"),c.style.transform=i,c.style.webkitTransform=i}function m(t){e.scrollY&&(e.scrollWithAnimation?g(t,"y"):a.value.scrollTop=t)}function v(t){e.scrollX&&(e.scrollWithAnimation?g(t,"x"):a.value.scrollLeft=t)}function _(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=i.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(e.scrollX){let n=o.left-t.left,r=a.value.scrollLeft+n;e.scrollWithAnimation?g(r,"x"):a.value.scrollLeft=r}if(e.scrollY){let n=o.top-t.top,r=a.value.scrollTop+n;e.scrollWithAnimation?g(r,"y"):a.value.scrollTop=r}}}}function y(n){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,l||(l=!0,r("refresherrefresh",{},{}),c("update:refresherTriggered",!0));break;case"restore":case"refresherabort":l=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,r("refresherrestore",{},{})),"refresherabort"===n&&d&&(d=!1,r("refresherabort",{},{}))}t.refreshState=n}onMounted((()=>{nextTick((()=>{m(n.value),v(o.value)})),_(e.scrollIntoView);let i=function(n){n.preventDefault(),n.stopPropagation(),function(n){const o=n.target;r("scroll",n,{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth,deltaX:t.lastScrollLeft-o.scrollLeft,deltaY:t.lastScrollTop-o.scrollTop}),e.scrollY&&(o.scrollTop<=p.value&&t.lastScrollTop-o.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollTop+o.offsetHeight+h.value>=o.scrollHeight&&t.lastScrollTop-o.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(o.scrollLeft<=p.value&&t.lastScrollLeft-o.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollLeft+o.offsetWidth+h.value>=o.scrollWidth&&t.lastScrollLeft-o.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=o.scrollTop,t.lastScrollLeft=o.scrollLeft}(n)},s={x:0,y:0},c=null,f=function(n){if(null===s)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,f=a.value;if(Math.abs(o-s.x)>Math.abs(i-s.y))if(e.scrollX){if(0===f.scrollLeft&&o>s.x)return void(c=!1);if(f.scrollWidth===f.offsetWidth+f.scrollLeft&&os.y)c=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(f.scrollHeight===f.offsetHeight+f.scrollTop&&i0&&(d=!0,r("refresherpulling",n,{deltaY:o})));const a=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(a>1?1:a)}},g=function(e){1===e.touches.length&&(s={x:e.touches[0].pageX,y:e.touches[0].pageY})},b=function(n){s=null,t.refresherHeight>=e.refresherThreshold?y("refreshing"):y("refresherabort")};a.value.addEventListener("touchstart",g,passiveOptions),a.value.addEventListener("touchmove",f,passive(!1)),a.value.addEventListener("scroll",i,passive(!1)),a.value.addEventListener("touchend",b,passiveOptions),onBeforeUnmount((()=>{a.value.removeEventListener("touchstart",g),a.value.removeEventListener("touchmove",f),a.value.removeEventListener("scroll",i),a.value.removeEventListener("touchend",b)}))})),onActivated((()=>{e.scrollY&&(a.value.scrollTop=t.lastScrollTop),e.scrollX&&(a.value.scrollLeft=t.lastScrollLeft)})),watch(n,(e=>{m(e)})),watch(o,(e=>{v(e)})),watch((()=>e.scrollIntoView),(e=>{_(e)})),watch((()=>e.refresherTriggered),(e=>{!0===e?y("refreshing"):!1===e&&y("restore")}))}const props$k={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}};function useState$3(e){return reactive({interval:computed$1((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:computed$1((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:computed$1((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}function useLayout(e,t,n,o,r,i){function a(){l&&(clearTimeout(l),l=null)}let s,c,l=null,u=!0,d=0,f=1,p=null,h=!1,g=0,m="";const v=computed$1((()=>e.circular&&n.value.length>t.displayMultipleItems));function _(r){Math.floor(2*d)===Math.floor(2*r)&&Math.ceil(2*d)===Math.ceil(2*r)||v.value&&function(o){if(!u)for(let r=n.value,i=r.length,a=o+t.displayMultipleItems,s=0;s=l.length&&(r-=l.length),r=s%1>.5||s<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*c.offsetWidth,dy:e.vertical?r*c.offsetHeight:0})}function y(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(v.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function b(){p=null}function w(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,a=e.endTime,l=e.source,u=a-Date.now();if(u<=0){_(o),p=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:l})}return}_(o+r*u*u/2),c=requestAnimationFrame(w)}function T(e,o,r){b();const i=t.duration,a=n.value.length;let s=d;if(v.value)if(r<0){for(;se;)s-=a}else if(r>0){for(;s>e;)s-=a;for(;s+ae;)s-=a;s+a-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;te.vertical,()=>v.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),p&&(_(p.toPos),p=null);const r=n.value;for(let t=0;t0&&f<1||(f=1)}const s=d;d=-2;const c=t.current;c>=0?(u=!1,t.userTracking?(_(s+c-g),g=c):(_(c),e.autoplay&&E())):(u=!0,_(-t.displayMultipleItems-1))})),watch((()=>t.interval),(()=>{l&&(a(),E())})),watch((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const a=n.value;if(!r){const t=a.length;T(e,"",v.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),watch((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),watch((()=>e.autoplay&&!t.userTracking),S),S(e.autoplay&&!t.userTracking),onMounted((()=>{let r=!1,i=0,s=0;function c(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=y(d+o);e?_(g):(m="touch",t.current=r,T(r,"touch",0!==o?o:0===r&&v.value&&d>=1?1:0))}useTouchtrack(o.value,(l=>{if(!e.disableTouch&&!u){if("start"===l.detail.state)return t.userTracking=!0,r=!1,a(),g=d,i=0,s=Date.now(),void b();if("end"===l.detail.state)return c(!1);if("cancel"===l.detail.state)return c(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(l.detail.dx),o=Math.abs(l.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&E())}return function(r){const a=s;s=Date.now();const c=n.value.length-t.displayMultipleItems;function l(e){return.5-.25/(e+.5)}function u(e,t){let n=g+e;i=.6*i+.4*t,v.value||(n<0||n>c)&&(n<0?n=-l(-n):n>c&&(n=c+l(n-c)),i=0),_(n)}const d=s-a||1,f=o.value;e.vertical?u(-r.dy/f.offsetHeight,-r.ddy/d):u(-r.dx/f.offsetWidth,-r.ddx/d)}(l.detail),!1}}}))})),onUnmounted((()=>{a(),cancelAnimationFrame(c)})),{onSwiperDotClick:function(e){T(t.current=e,m="click",v.value?1:0)}}}var Swiper=defineBuiltInComponent({name:"Swiper",props:props$k,emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=ref(null),r=useCustomEvent(o,n),i=ref(null),a=ref(null),s=useState$3(e),c=computed$1((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:rpx2px$1(e.previousMargin,!0),bottom:rpx2px$1(e.nextMargin,!0)}:{top:0,bottom:0,left:rpx2px$1(e.previousMargin,!0),right:rpx2px$1(e.nextMargin,!0)}),t})),l=computed$1((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],f=ref([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(markRaw(o))}f.value=e}provide("addSwiperContext",(function(e){d.push(e),p()}));provide("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:h}=useLayout(e,s,f,a,n,r);return()=>{const n=t.default&&t.default();return u=flatVNode(n),createVNode("uni-swiper",{ref:o},[createVNode("div",{ref:i,class:"uni-swiper-wrapper"},[createVNode("div",{class:"uni-swiper-slides",style:c.value},[createVNode("div",{ref:a,class:"uni-swiper-slide-frame",style:l.value},[n],4)],4),e.indicatorDots&&createVNode("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[f.value.map(((t,n,o)=>createVNode("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=s.current||ne.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,a=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return onMounted((()=>{const e=inject("addSwiperContext");e&&e(o)})),onUnmounted((()=>{const e=inject("removeSwiperContext");e&&e(o)})),()=>createVNode("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}});const SPACE_UNICODE={ensp:" ",emsp:" ",nbsp:" "};function parseText(e,t){return e.replace(/\\n/g,LINEFEED).split(LINEFEED).map((e=>normalizeText(e,t)))}function normalizeText(e,{space:t,decode:n}){return e?(t&&SPACE_UNICODE[t]&&(e=e.replace(/ /g,SPACE_UNICODE[t])),n?e.replace(/ /g,SPACE_UNICODE.nbsp).replace(/ /g,SPACE_UNICODE.ensp).replace(/ /g,SPACE_UNICODE.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):e):e}var index$k=defineBuiltInComponent({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=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Comment){const o=parseText(t.children,{space:e.space,decode:e.decode}),r=o.length-1;o.forEach(((e,t)=>{(0!==t||e)&&n.push(createTextVNode(e)),t!==r&&n.push(createVNode("br"))}))}else n.push(t)})),createVNode("uni-text",{selectable:!!e.selectable||null},[createVNode("span",null,n)],8,["selectable"])}});const props$h=extend$1({},props$r,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>ConfirmTypes.concat("return").includes(e)}});let fixMargin=!1;const ConfirmTypes=["done","go","next","search","send"];function setFixMargin(){const e="(prefers-color-scheme: dark)";fixMargin=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}var index$j=defineBuiltInComponent({name:"Textarea",props:props$h,emits:["confirm","linechange",...emit],setup(e,{emit:t}){const n=ref(null),o=ref(null),{fieldRef:r,state:i,scopedAttrsState:a,fixDisabledColor:s,trigger:c}=useField(e,n,t),l=computed$1((()=>i.value.split(LINEFEED))),u=computed$1((()=>ConfirmTypes.includes(e.confirmType))),d=ref(0),f=ref(null);function p({height:e}){d.value=e}function h(e){"Enter"===e.key&&u.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&u.value){!function(e){c("confirm",e,{value:i.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return watch((()=>d.value),(t=>{const r=n.value,i=f.value,a=o.value;let s=parseFloat(getComputedStyle(r).lineHeight);isNaN(s)&&(s=i.offsetHeight);var l=Math.round(t/s);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(r.style.height="auto",a.style.height=t+"px")})),setFixMargin(),()=>{let t=e.disabled&&s?createVNode("textarea",{ref:r,value:i.value,tabindex:"-1",readonly:!!e.disabled,maxlength:i.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":fixMargin},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):createVNode("textarea",{ref:r,value:i.value,disabled:!!e.disabled,maxlength:i.maxlength,enterkeyhint:e.confirmType,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":fixMargin},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:h,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","onKeydown","onKeyup"]);return createVNode("uni-textarea",{ref:n},[createVNode("div",{ref:o,class:"uni-textarea-wrapper"},[withDirectives(createVNode("div",mergeProps(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[vShow,!i.value.length]]),createVNode("div",{ref:f,class:"uni-textarea-line"},[" "],512),createVNode("div",{class:"uni-textarea-compute"},[l.value.map((e=>createVNode("div",null,[e.trim()?e:"."]))),createVNode(ResizeSensor,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?createVNode("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),index$i=defineBuiltInComponent({name:"View",props:extend$1({},hoverProps),setup(e,{slots:t}){const{hovering:n,binding:o}=useHover(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?createVNode("uni-view",mergeProps({class:n.value?r:""},o),[t.default&&t.default()],16):createVNode("uni-view",null,[t.default&&t.default()])}}});function normalizeEvent(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function addSubscribe(e,t,n){e&®isterViewMethod(n||getCurrentPageId(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function removeSubscribe(e,t){e&&unregisterViewMethod(t||getCurrentPageId(),e)}function useSubscribe(e,t,n,o){const r=getCurrentInstance().proxy;onMounted((()=>{addSubscribe(t||normalizeEvent(r),e,o),!n&&t||watch((()=>r.id),((t,n)=>{addSubscribe(normalizeEvent(r,t),e,o),removeSubscribe(n&&normalizeEvent(r,n))}))})),onBeforeUnmount((()=>{removeSubscribe(t||normalizeEvent(r),o)}))}let index$h=0;function useContextInfo(e){const t=useCurrentPageId(),n=getCurrentInstance().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+index$h++;return onMounted((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}function getContextInfo(e){return e.__uniContextInfo}function injectLifecycleHook(e,t,n,o){isFunction$1(t)&&injectHook(e,t.bind(n),o)}function initHooks(e,t,n){const o=e.mpType||n.$mpType;if(o&&(Object.keys(e).forEach((o=>{if(0===o.indexOf("on")){const r=e[o];isArray$4(r)?r.forEach((e=>injectLifecycleHook(o,e,n,t))):injectLifecycleHook(o,r,n,t)}})),"page"===o)){t.__isVisible=!0;try{invokeHook(n,ON_LOAD,t.attrs.__pageQuery),delete t.attrs.__pageQuery,invokeHook(n,ON_SHOW)}catch(r){console.error(r.message+LINEFEED+r.stack)}}}function applyOptions(e,t,n){initHooks(e,t,n)}function set(e,t,n){return e[t]=n}function createErrorHandler(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;invokeHook(r.proxy,ON_ERROR,t)}}function mergeAsArray(e,t){return e?[...new Set([].concat(e,t))]:t}function initOptionMergeStrategies(e){UniLifecycleHooks.forEach((t=>{e[t]=mergeAsArray}))}function initApp$1(e){const t=e._context.config;isFunction$1(e._component.onError)&&(t.errorHandler=createErrorHandler(e)),initOptionMergeStrategies(t.optionMergeStrategies);const n=t.globalProperties;n.$set=set,n.$applyOptions=applyOptions,invokeCreateVueAppHook(e)}const pageMetaKey=PolySymbol("upm");function usePageMeta(){return inject(pageMetaKey)}function providePageMeta(e){const t=initPageMeta(e);return provide(pageMetaKey,t),t}function usePageRoute(){return useRoute()}function initPageMeta(e){return reactive(normalizePageMeta(JSON.parse(JSON.stringify(initRouteMeta(useRoute().meta,e)))))}function normalizePageMeta(e){if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==getCurrentPages$1().length||(e.isEntry=!0,e.isQuit=!0)}return e}function getStateId(){return history.state&&history.state.__id__||1}let tabBar;function useTabBar(){return tabBar||(tabBar=__uniConfig.tabBar&&reactive(initTabBarI18n(__uniConfig.tabBar))),tabBar}const supports=window.CSS&&window.CSS.supports;function cssSupports(e){return supports&&(supports(e)||supports.apply(window.CSS,e.split(":")))}const cssEnv=cssSupports("top:env(a)"),cssConstant=cssSupports("top:constant(a)"),envMethod=(()=>cssEnv?"env":cssConstant?"constant":"")();function updateCurPageCssVar(e){updatePageCssVar({"--window-top":normalizeWindowTop(0),"--window-bottom":normalizeWindowBottom(0)})}function normalizeWindowTop(e){return envMethod?`calc(${e}px + ${envMethod}(safe-area-inset-top))`:`${e}px`}function normalizeWindowBottom(e){return envMethod?`calc(${e}px + ${envMethod}(safe-area-inset-bottom))`:`${e}px`}const SEP="$$",currentPagesMap=new Map;function pruneCurrentPages(){currentPagesMap.forEach(((e,t)=>{e.$.isUnmounted&¤tPagesMap.delete(t)}))}function getCurrentPagesMap(){return currentPagesMap}function getCurrentPages$1(){const e=[],t=currentPagesMap.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function removeRouteCache(e){const t=pageCacheMap.get(e);t&&(pageCacheMap.delete(e),routeCache.pruneCacheEntry(t))}function removePage(e,t=!0){const n=currentPagesMap.get(e);n.$.__isUnload=!0,invokeHook(n,ON_UNLOAD),currentPagesMap.delete(e),t&&removeRouteCache(e)}let id=getStateId();function createPageState(e,t){return{__id__:t||++id,__type__:e}}function initPublicPage(e){const t=usePageMeta();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),initPageInternalInstance("navigateTo",n,{},t)}function initPage(e){const t=initPublicPage(e.$route);initPageVm(e,t),currentPagesMap.set(normalizeRouteKey(t.path,t.id),e)}function normalizeRouteKey(e,t){return e+SEP+t}function useKeepAliveRoute(){const e=useRoute();return{routeKey:computed$1((()=>normalizeRouteKey("/"+e.meta.route,getStateId()))),isTabBar:computed$1((()=>e.meta.isTabBar)),routeCache:routeCache}}const pageCacheMap=new Map,routeCache={get:e=>pageCacheMap.get(e),set(e,t){pruneRouteCache(e),pageCacheMap.set(e,t)},delete(e){pageCacheMap.get(e)&&pageCacheMap.delete(e)},forEach(e){pageCacheMap.forEach(e)}};function pruneRouteCache(e){const t=parseInt(e.split(SEP)[1]);t&&routeCache.forEach(((e,n)=>{const o=parseInt(n.split(SEP)[1]);o&&o>t&&(routeCache.delete(n),routeCache.pruneCacheEntry(e),nextTick((()=>pruneCurrentPages())))}))}function updateCurPageAttrs(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))}function onPageShow(e,t){updateBodyScopeId(e),updateCurPageCssVar(),updateCurPageAttrs(t),initPageScrollListener(e,t)}function onPageReady(e){const t=getScopeId(e);t&&updateCurPageBodyScopeId(t)}function updateCurPageBodyScopeId(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}function getScopeId(e){return e.type.__scopeId}let curScopeId,curScrollListener;function updateBodyScopeId(e){const t=getScopeId(e),{body:n}=document;curScopeId&&n.removeAttribute(curScopeId),t&&n.setAttribute(t,""),curScopeId=t}function initPageScrollListener(e,t){if(document.removeEventListener("touchmove",disableScrollListener),curScrollListener&&document.removeEventListener("scroll",curScrollListener),t.disableScroll)return document.addEventListener("touchmove",disableScrollListener);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!n&&!o&&!r)return;const i={},a=e.proxy.$page.id;(n||r)&&(i.onPageScroll=createOnPageScroll(a,n,r)),o&&(i.onReachBottomDistance=t.onReachBottomDistance||ON_REACH_BOTTOM_DISTANCE,i.onReachBottom=()=>UniViewJSBridge$1.publishHandler(ON_REACH_BOTTOM,{},a)),curScrollListener=createScrollListener(i),requestAnimationFrame((()=>document.addEventListener("scroll",curScrollListener)))}function createOnPageScroll(e,t,n){return o=>{t&&UniViewJSBridge$1.publishHandler(ON_PAGE_SCROLL,{scrollTop:o},e),n&&UniViewJSBridge$1.emit(e+"."+ON_PAGE_SCROLL,{scrollTop:o})}}function initRouter(e){const t=createRouter(createRouterOptions());e.router=t,e.use(t)}const scrollBehavior=(e,t,n)=>{if(n)return n};function createRouterOptions(){return{history:initHistory(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:scrollBehavior}}function removeCurrentPages(e=1){const t=getCurrentPages$1(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;removePage(normalizeRouteKey(e.path,e.id),!1)}}function initHistory(){let{base:e}=__uniConfig.router;"/"===e&&(e="");const t=createWebHistory(e);return t.listen(((e,t,n)=>{"back"===n.direction&&removeCurrentPages(Math.abs(n.delta))})),t}var index$g={install(e){initApp$1(e),initViewPlugin(e),initServicePlugin(e),e.config.warnHandler=warnHandler,initRouter(e)}};function warnHandler(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)}let appVm;function getApp$1(){return appVm}function initApp(e){appVm=e,initAppVm(appVm),defineGlobalData(appVm),initService(),initView()}function wrapperComponentSetup(e,{clone:t,init:n,setup:o,before:r}){t&&(e=extend$1({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=getCurrentInstance();n(r.proxy);const a=o(r);if(i)return i(a||e,t)},e}function setupComponent(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?wrapperComponentSetup(e.default,t):wrapperComponentSetup(e,t)}function setupPage(e){return setupComponent(e,{clone:!0,init:initPage,setup(e){e.$pageInstance=e;const t=decodedQuery(usePageRoute().query);e.attrs.__pageQuery=t,e.proxy.$page.options=t;const n=usePageMeta();return onBeforeMount((()=>{onPageShow(e,n)})),onMounted((()=>{onPageReady(e);const{onReady:t}=e;t&&invokeArrayFns$1(t)})),onBeforeActivate((()=>{if(!e.__isVisible){onPageShow(e,n),e.__isVisible=!0;const{onShow:t}=e;t&&invokeArrayFns$1(t)}})),onBeforeDeactivate((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&invokeArrayFns$1(t)}})),subscribeViewMethod(n.id),onBeforeUnmount((()=>{unsubscribeViewMethod(n.id)})),t}})}function setupApp(e){return setupComponent(e,{init:initApp,setup(e){const t=usePageRoute(),n=()=>{injectAppHooks(e);const{onLaunch:n,onShow:o,onPageNotFound:r}=e,i=initLaunchOptions({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:decodedQuery(t.query)});if(n&&invokeArrayFns$1(n,i),o&&invokeArrayFns$1(o,i),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};r&&invokeArrayFns$1(r,e)}};return useRouter().isReady().then(n),onMounted((()=>{window.addEventListener("resize",debounce$1(onResize,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",onMessage),document.addEventListener("visibilitychange",onVisibilityChange)})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(openBlock(),createBlock(LayoutComponent));e.setup=(e,o)=>{const r=t&&t(e,o);return isFunction$1(r)?n:r},e.render=n}})}function onResize(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=getSystemInfoSync(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";UniServiceJSBridge$1.emit(ON_RESIZE,{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function onMessage(e){isPlainObject$2(e.data)&&e.data.type===WEB_INVOKE_APPSERVICE&&UniServiceJSBridge$1.emit(ON_WEB_INVOKE_APP_SERVICE,e.data.data,e.data.pageId)}function onVisibilityChange(){const{emit:e}=UniServiceJSBridge$1;"visible"===document.visibilityState?e(ON_APP_ENTER_FOREGROUND,getEnterOptions()):e(ON_APP_ENTER_BACKGROUND)}const onWebInvokeAppService=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},Invoke=once((()=>UniServiceJSBridge$1.on(ON_WEB_INVOKE_APP_SERVICE,onWebInvokeAppService))),props$f={src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}};var index$e=defineBuiltInComponent({inheritAttrs:!1,name:"WebView",props:props$f,setup(e){Invoke();const t=ref(null),n=ref(null),{$attrs:o,$excludeAttrs:r,$listeners:i}=useAttrs({excludeListeners:!0});let a;return(()=>{const r=document.createElement("iframe");watchEffect((()=>{for(const e in o.value)if(hasOwn$1(o.value,e)){const t=o.value[e];r[e]=t}})),watchEffect((()=>{r.src=getRealPath(e.src)})),n.value=r,a=useWebViewSize(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(r)})(),onMounted((()=>{var o;a(),!e.fullscreen&&(null==(o=t.value)||o.appendChild(n.value))})),onActivated((()=>{e.fullscreen&&(n.value.style.display="block")})),onDeactivated((()=>{e.fullscreen&&(n.value.style.display="none")})),onBeforeUnmount((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>createVNode(Fragment,null,[createVNode("uni-web-view",mergeProps({class:e.fullscreen?"uni-webview--fullscreen":""},i.value,r.value,{ref:t}),[createVNode(ResizeSensor,{onResize:a},null,8,["onResize"])],16)])}});function useWebViewSize(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();updateElementStyle(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else updateElementStyle(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}const UUID_KEY="__DC_STAT_UUID",storage=window.localStorage||window.sessionStorage||{};let deviceId;function deviceId$1(){if(deviceId=deviceId||storage[UUID_KEY],!deviceId){deviceId=Date.now()+""+Math.floor(1e7*Math.random());try{storage[UUID_KEY]=deviceId}catch(e){}}return deviceId}function IEVersion(){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}function getBrowserInfo(){let e,t="0",n="",o="phone";const r=navigator.language;if(isIOS$1){e="iOS";const o=ua.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=ua.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(isAndroid){e="Android";const o=ua.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=ua.match(/\((.+?)\)/),i=r?r[1].split(";"):ua.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;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e{const e=window.devicePixelRatio,t=getScreenFix(),n=isLandscape(t),o=getScreenWidth(t,n),r=getScreenHeight(t,n),i=getWindowWidth(o);let a=window.innerHeight;const s=out.top,c={left:out.left,right:i-out.right,top:out.top,bottom:a-out.bottom,width:i-out.left-out.right,height:a-out.top-out.bottom},{top:l,bottom:u}=getWindowOffset();return a-=l,a-=u,{windowTop:l,windowBottom:u,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:s,safeArea:c,safeAreaInsets:{top:out.top,right:out.right,bottom:out.bottom,left:out.left},screenTop:r-a}}));let browserInfo,_initBrowserInfo=!0;function initBrowserInfo(){_initBrowserInfo&&(browserInfo=getBrowserInfo())}const getDeviceInfo=defineSyncApi("getDeviceInfo",(()=>{initBrowserInfo();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:a,deviceType:s}=browserInfo;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:deviceId$1(),deviceOrientation:a,deviceType:s,model:o,platform:r,system:i}})),getAppBaseInfo=defineSyncApi("getAppBaseInfo",(()=>{initBrowserInfo();const{theme:e,language:t,browserName:n,browserVersion:o}=browserInfo;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:getLocale?getLocale():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:""}})),getSystemInfoSync=defineSyncApi("getSystemInfoSync",(()=>{_initBrowserInfo=!0,initBrowserInfo(),_initBrowserInfo=!1;const e=getWindowInfo(),t=getDeviceInfo(),n=getAppBaseInfo();_initBrowserInfo=!0;const{ua:o,browserName:r,browserVersion:i,osname:a,osversion:s}=browserInfo,c=extend$1(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete c.screenTop,delete c.enableDebug,delete c.theme,sortObject(c)})),_isSupport=!!window.navigator.vibrate,vibrateShort=defineAsyncApi(API_VIBRATE_SHORT,((e,{resolve:t,reject:n})=>{_isSupport&&window.navigator.vibrate(15)?t():n("vibrateLong:fail")})),KEY_MAPS={esc:["Esc","Escape"],enter:["Enter"]},KEYS=Object.keys(KEY_MAPS);function useKeyboard(){const e=ref(""),t=ref(!1),n=n=>{if(t.value)return;const o=KEYS.find((e=>-1!==KEY_MAPS[e].indexOf(n.key)));o&&(e.value=o),nextTick((()=>e.value=""))};return onMounted((()=>{document.addEventListener("keyup",n)})),onBeforeUnmount((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const VNODE_MASK=createVNode("div",{class:"uni-mask"},null,-1);function createRootApp(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),createApp$1(defineComponent({setup:()=>()=>(openBlock(),createBlock(e,t,null,16))}))}function ensureRoot(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function usePopup(e,{onEsc:t,onEnter:n}){const o=ref(e.visible),{key:r,disable:i}=useKeyboard();return watch((()=>e.visible),(e=>o.value=e)),watch((()=>o.value),(e=>i.value=!e)),watchEffect((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}const props$a={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:""}};var modal=defineComponent({props:props$a,setup(e,{emit:t}){const n=ref(""),o=()=>a.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),a=usePopup(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}});return()=>{const{title:t,content:o,showCancel:s,confirmText:c,confirmColor:l,editable:u,placeholderText:d}=e;return n.value=o,createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("uni-modal",{onTouchmove:onEventPrevent},[VNODE_MASK,createVNode("div",{class:"uni-modal"},[t&&createVNode("div",{class:"uni-modal__hd"},[createVNode("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),u?createVNode("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:d,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):createVNode("div",{class:"uni-modal__bd",onTouchmovePassive:onEventStop,textContent:o},null,40,["onTouchmovePassive","textContent"]),createVNode("div",{class:"uni-modal__ft"},[s&&createVNode("div",{style:{color:e.cancelColor},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),createVNode("div",{style:{color:l},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[c],12,["onClick"])])])],40,["onTouchmove"]),[[vShow,a.value]])]})}}});let showModalState;const onHidePopupOnce$1=once((()=>{UniServiceJSBridge$1.on("onHidePopup",(()=>showModalState.visible=!1))}));let currentShowModalResolve;function onModalClose(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&showModalState.editable&&(o.content=t),currentShowModalResolve&¤tShowModalResolve(o)}const showModal=defineAsyncApi(API_SHOW_MODAL,((e,{resolve:t})=>{onHidePopupOnce$1(),currentShowModalResolve=t,showModalState?(extend$1(showModalState,e),showModalState.visible=!0):(showModalState=reactive(e),nextTick((()=>(createRootApp(modal,showModalState,onModalClose).mount(ensureRoot("u-a-m")),nextTick((()=>showModalState.visible=!0))))))}),ShowModalProtocol,ShowModalOptions);function parseValue(e){const t=["object","string","number","boolean","undefined"];try{const n=isString(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){}}const setStorageSync=defineSyncApi(API_SET_STORAGE_SYNC,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)})),setStorage=defineAsyncApi(API_SET_STORAGE,(({key:e,data:t},{resolve:n,reject:o})=>{try{setStorageSync(e,t),n()}catch(r){o(r.message)}}));function getStorageOrigin(e){const t=localStorage&&localStorage.getItem(e);if(!isString(t))throw new Error("data not found");let n=t;try{const e=parseValue(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const getStorageSync=defineSyncApi(API_GET_STORAGE_SYNC,((e,t)=>{try{return getStorageOrigin(e)}catch(n){return""}})),removeStorageSync=defineSyncApi(API_REMOVE_STORAGE,(e=>{localStorage&&localStorage.removeItem(e)})),hideKeyboard=defineAsyncApi(API_HIDE_KEYBOARD,((e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));function getServiceAddress(){return window.location.protocol+"//"+window.location.host}const getImageInfo=defineAsyncApi(API_GET_IMAGE_INFO,(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?getServiceAddress()+e:e})},o.onerror=function(){n()},o.src=e}),GetImageInfoProtocol,GetImageInfoOptions),MIMEType={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"}},ALL="all";function isWXEnv(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}function _createInput({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",updateElementStyle(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if(n!==ALL){const t=e.replace(".","");return`${n}/${MIMEType[n][t]||t}`}return isWXEnv()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),n!==ALL&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}addInteractListener();let imageInput=null;const chooseImage=defineAsyncApi(API_CHOOSE_IMAGE,(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{initI18nChooseFileMsgsOnce();const{t:i}=useI18n();imageInput&&(document.body.removeChild(imageInput),imageInput=null),imageInput=_createInput({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(imageInput),imageInput.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(i=i||fileToUrl(t),i)}),oe))},tempFiles:r})})),imageInput.click(),getInteractStatus()||console.warn(i("uni.chooseFile.notUserActivation"))}),ChooseImageProtocol,ChooseImageOptions);let index$d=0,overflow="";function preventScroll(e){let t=index$d;index$d+=e?1:-1,index$d=Math.max(0,index$d),index$d>0?0===t&&(overflow=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=overflow,overflow="")}function usePreventScroll(){onMounted((()=>preventScroll(!0))),onUnmounted((()=>preventScroll(!1)))}const props$9={src:{type:String,default:""}};var ImageView=defineSystemComponent({name:"ImageView",props:props$9,setup(e){const t=reactive({direction:"none"});let n=1,o=0,r=0,i=0,a=0;function s({detail:e}){n=e.scale}function c(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function l(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,d(e)}function u(e){const s=n*o>i,c=n*r>a;t.direction=s&&c?"all":s?"horizontal":c?"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 createVNode(MovableArea,{style:n,onTouchstart:withWebEvent(l),onTouchmove:withWebEvent(d),onTouchend:withWebEvent(u)},{default:()=>[createVNode(MovableView,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[createVNode("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:c},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function _isSlot$2(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!isVNode(e)}const props$8={urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}};function getIndex(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}var ImagePreview=defineSystemComponent({name:"ImagePreview",props:props$8,emits:["close"],setup(e,{emit:t}){usePreventScroll();const n=ref(null),o=ref(getIndex(e));let r;function i(){r||nextTick((()=>{t("close")}))}function a(e){o.value=e.detail.current}return watch((()=>e.current),(()=>o.value=getIndex(e))),onMounted((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(r=!0)}))})),()=>{let t;return createVNode("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:i},[createVNode(Swiper,{current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},_isSlot$2(t=e.urls.map((e=>createVNode(SwiperItem,null,{default:()=>[createVNode(ImageView,{src:e},null,8,["src"])]}))))?t:{default:()=>[t],_:1},8,["current","onChange"])],8,["onClick"])}}});let state$2=null,imagePreviewInstance;const closePreviewImageView=()=>{state$2=null,nextTick((()=>{null==imagePreviewInstance||imagePreviewInstance.unmount(),imagePreviewInstance=null}))},previewImage=defineAsyncApi(API_PREVIEW_IMAGE,((e,{resolve:t})=>{state$2?extend$1(state$2,e):(state$2=reactive(e),nextTick((()=>{imagePreviewInstance=createRootApp(ImagePreview,state$2,closePreviewImageView),imagePreviewInstance.mount(ensureRoot("u-a-p"))}))),t()}),PreviewImageProtocol,PreviewImageOptions),request$1=defineTaskApi(API_REQUEST,(({url:e,data:t,header:n,method:o,dataType:r,responseType:i,withCredentials:a,timeout:s=__uniConfig.networkTimeout.request},{resolve:c,reject:l})=>{let u=null;const d=normalizeContentType(n);if("GET"!==o)if(isString(t)||t instanceof ArrayBuffer)u=t;else if("json"===d)try{u=JSON.stringify(t)}catch(g){u=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)hasOwn$1(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));u=e.join("&")}else u=t.toString();const f=new XMLHttpRequest,p=new RequestTask(f);f.open(o,e);for(const m in n)hasOwn$1(n,m)&&f.setRequestHeader(m,n[m]);const h=setTimeout((function(){f.onload=f.onabort=f.onerror=null,p.abort(),l("timeout")}),s);return f.responseType=i,f.onload=function(){clearTimeout(h);const e=f.status;let t="text"===i?f.responseText:f.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(g){}c({data:t,statusCode:e,header:parseHeaders(f.getAllResponseHeaders()),cookies:[]})},f.onabort=function(){clearTimeout(h),l("abort")},f.onerror=function(){clearTimeout(h),l()},f.withCredentials=a,f.send(u),p}),RequestProtocol,RequestOptions);function normalizeContentType(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];return 0===n.indexOf("application/json")?"json":0===n.indexOf("application/x-www-form-urlencoded")?"urlencoded":"string"}class RequestTask{constructor(e){this._xhr=e}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.")}}function parseHeaders(e){const t={};return e.split(LINEFEED).forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class DownloadTask{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){isFunction$1(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 downloadFile=defineTaskApi(API_DOWNLOAD_FILE,(({url:e,header:t,timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:r})=>{var i,a=new XMLHttpRequest,s=new DownloadTask(a);return a.open("GET",e,!0),Object.keys(t).forEach((e=>{a.setRequestHeader(e,t[e])})),a.responseType="blob",a.onload=function(){clearTimeout(i);const t=a.status,n=this.response;let r;const s=a.getResponseHeader("content-disposition");if(s){const e=s.match(/filename="?(\S+)"?\b/);e&&(r=e[1])}n.name=r||getFileName(e),o({statusCode:t,tempFilePath:fileToUrl(n)})},a.onabort=function(){clearTimeout(i),r("abort")},a.onerror=function(){clearTimeout(i),r()},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(),i=setTimeout((function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),r("timeout")}),n),s}),DownloadFileProtocol,DownloadFileOptions);class UploadTask{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){isFunction$1(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 uploadFile=defineTaskApi(API_UPLOAD_FILE,(({url:e,file:t,filePath:n,name:o,files:r,header:i,formData:a,timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:c,reject:l})=>{var u=new UploadTask;return isArray$4(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(blobToFile(e)):urlToFile(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[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),l()},o.onabort=function(){clearTimeout(n),l("abort")},o.onload=function(){clearTimeout(n);const e=o.status;c({statusCode:e,data:o.responseText||o.response})},u._isAbort?l("abort"):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),l("timeout")}),s),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{l("file error")}),0)})),u}),UploadFileProtocol,UploadFileOptions),navigateBack=defineAsyncApi(API_NAVIGATE_BACK,((e,{resolve:t,reject:n})=>{let o=!0;return!0===invokeHook(ON_BACK_PRESS,{from:e.from||"navigateBack"})&&(o=!1),o?(getApp$1().$router.go(-e.delta),t()):n(ON_BACK_PRESS)}),NavigateBackProtocol,NavigateBackOptions);function navigate({type:e,url:t,events:n},o){const r=getApp$1().$router,{path:i,query:a}=parseUrl(t);return new Promise(((t,s)=>{const c=createPageState(e,o);r["navigateTo"===e?"push":"replace"]({path:i,query:a,state:c,force:!0}).then((o=>{if(isNavigationFailure(o))return s(o.message);if("navigateTo"===e){const e=new EventChannel(c.__id__,n);return r.currentRoute.value.meta.eventChannel=e,t({eventChannel:e})}return t()}))}))}const navigateTo=defineAsyncApi(API_NAVIGATE_TO,(({url:e,events:t},{resolve:n,reject:o})=>navigate({type:API_NAVIGATE_TO,url:e,events:t}).then(n).catch(o)),NavigateToProtocol,NavigateToOptions);function removeLastPage(){const e=getCurrentPage();if(!e)return;const t=e.$page;removePage(normalizeRouteKey(t.path,t.id))}const redirectTo=defineAsyncApi(API_REDIRECT_TO,(({url:e},{resolve:t,reject:n})=>(removeLastPage(),navigate({type:API_REDIRECT_TO,url:e}).then(t).catch(n))),RedirectToProtocol,RedirectToOptions);function removeAllPages(){const e=getCurrentPagesMap().keys();for(const t of e)removePage(t)}const reLaunch=defineAsyncApi(API_RE_LAUNCH,(({url:e},{resolve:t,reject:n})=>(removeAllPages(),navigate({type:API_RE_LAUNCH,url:e}).then(t).catch(n))),ReLaunchProtocol,ReLaunchOptions);function removeNonTabBarPages(){const e=getCurrentPageVm();if(!e)return;const t=getCurrentPagesMap(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:removePage(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,invokeHook(e,ON_HIDE))}function isSamePage(e,t){return e===t.fullPath}function getTabBarPageId(e){const t=getCurrentPagesMap().values();for(const n of t){const t=n.$page;if(isSamePage(e,t))return n.$.__isActive=!0,t.id}}const switchTab=defineAsyncApi(API_SWITCH_TAB,(({url:e},{resolve:t,reject:n})=>(removeNonTabBarPages(),navigate({type:API_SWITCH_TAB,url:e},getTabBarPageId(e)).then(t).catch(n))),SwitchTabProtocol,SwitchTabOptions),props$5={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==SHOW_TOAST_ICON.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},ToastIconClassName="uni-toast__icon";var Toast=defineComponent({name:"Toast",props:props$5,setup(e){initI18nShowToastMsgsOnce(),initI18nShowLoadingMsgsOnce();const{Icon:t}=useToastIcon(e),n=usePopup(e,{});return()=>{const{mask:o,duration:r,title:i,image:a}=e;return createVNode(Transition,{name:"uni-fade"},{default:()=>[withDirectives(createVNode("uni-toast",{"data-duration":r},[o?createVNode("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:onEventPrevent},null,40,["onTouchmove"]):"",a||t.value?createVNode("div",{class:"uni-toast"},[a?createVNode("img",{src:a,class:ToastIconClassName},null,10,["src"]):t.value,createVNode("p",{class:"uni-toast__content"},[i])]):createVNode("div",{class:"uni-sample-toast"},[createVNode("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[vShow,n.value]])]})}}});function useToastIcon(e){return{Icon:computed$1((()=>{switch(e.icon){case"success":return createVNode(createSvgIconVNode(ICON_PATH_SUCCESS_NO_CIRCLE,"#fff",38),{class:ToastIconClassName});case"error":return createVNode(createSvgIconVNode(ICON_PATH_WARN,"#fff",38),{class:ToastIconClassName});case"loading":return createVNode("i",{class:[ToastIconClassName,"uni-loading"]},null,2);default:return null}}))}}let showToastState,showType="",timeoutId;const scope=effectScope();function watchVisible(){scope.run((()=>{watch([()=>showToastState.visible,()=>showToastState.duration],(([e,t])=>{if(e){if(timeoutId&&clearTimeout(timeoutId),"onShowLoading"===showType)return;timeoutId=setTimeout((()=>{hidePopup("onHideToast")}),t)}else timeoutId&&clearTimeout(timeoutId)}))}))}function createToast(e){showToastState?extend$1(showToastState,e):(showToastState=reactive(extend$1(e,{visible:!1})),nextTick((()=>{watchVisible(),UniServiceJSBridge$1.on("onHidePopup",(()=>hidePopup("onHidePopup"))),createRootApp(Toast,showToastState,(()=>{})).mount(ensureRoot("u-a-t"))}))),setTimeout((()=>{showToastState.visible=!0}),10)}const showToast=defineAsyncApi(API_SHOW_TOAST,((e,{resolve:t,reject:n})=>{createToast(e),showType="onShowToast",t()}),ShowToastProtocol,ShowToastOptions),showLoadingDefaultState={icon:"loading",duration:1e8,image:""},showLoading=defineAsyncApi(API_SHOW_LOADING,((e,{resolve:t,reject:n})=>{extend$1(e,showLoadingDefaultState),createToast(e),showType="onShowLoading",t()}),ShowLoadingProtocol,ShowLoadingOptions),hideLoading=defineAsyncApi(API_HIDE_LOADING,((e,{resolve:t,reject:n})=>{hidePopup("onHideLoading"),t()}));function hidePopup(e){const{t:t}=useI18n();if(!showType)return;let n="";if("onHideToast"===e&&"onShowToast"!==showType?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==showType&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);showType="",setTimeout((()=>{showToastState.visible=!1}),10)}function updateDocumentTitle(e){document.title=e,UniServiceJSBridge$1.emit(ON_NAVIGATION_BAR_CHANGE,{titleText:e})}function useDocumentTitle(e){function t(){updateDocumentTitle(e.navigationBar.titleText)}watchEffect(t),onActivated(t)}function setNavigationBar(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case API_SET_NAVIGATION_BAR_COLOR:const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc:a}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=a;break;case API_SHOW_NAVIGATION_BAR_LOADING:i.loading=!0;break;case API_HIDE_NAVIGATION_BAR_LOADING:i.loading=!1;break;case API_SET_NAVIGATION_BAR_TITLE:const{title:s}=n;i.titleText=s}o()}const setNavigationBarColor=defineAsyncApi(API_SET_NAVIGATION_BAR_COLOR,((e,{resolve:t,reject:n})=>{setNavigationBar(getCurrentPageMeta(),API_SET_NAVIGATION_BAR_COLOR,e,t,n)}),SetNavigationBarColorProtocol,SetNavigationBarColorOptions),setNavigationBarTitle=defineAsyncApi(API_SET_NAVIGATION_BAR_TITLE,((e,{resolve:t,reject:n})=>{setNavigationBar(getCurrentPageMeta(),API_SET_NAVIGATION_BAR_TITLE,e,t,n)})),pageScrollTo=defineAsyncApi(API_PAGE_SCROLL_TO,(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{scrollTo(t||e||0,n,!0),o()}),PageScrollToProtocol,PageScrollToOptions),stopPullDownRefresh=defineAsyncApi(API_STOP_PULL_DOWN_REFRESH,((e,{resolve:t})=>{UniServiceJSBridge$1.invokeViewMethod(API_STOP_PULL_DOWN_REFRESH,{},getCurrentPageId()),t()})),setTabBarItemProps=["text","iconPath","iconfont","selectedIconPath","visible"],setTabBarStyleProps=["color","selectedColor","backgroundColor","borderStyle"],setTabBarBadgeProps=["badge","redDot"];function setProperties(e,t,n){t.forEach((function(t){hasOwn$1(n,t)&&(e[t]=n[t])}))}function setTabBar(e,t,n){const o=useTabBar();switch(e){case API_SHOW_TAB_BAR:o.shown=!0;break;case API_HIDE_TAB_BAR:o.shown=!1;break;case API_SET_TAB_BAR_ITEM:const{index:e}=t,n=o.list[e],r=n.pagePath;setProperties(n,setTabBarItemProps,t);const{pagePath:i}=t;if(i){const t=addLeadingSlash(i);t!==r&&normalizeTabBarRoute(e,r,t)}break;case API_SET_TAB_BAR_STYLE:setProperties(o,setTabBarStyleProps,t);break;case API_SHOW_TAB_BAR_RED_DOT:setProperties(o.list[t.index],setTabBarBadgeProps,{badge:"",redDot:!0});break;case API_SET_TAB_BAR_BADGE:setProperties(o.list[t.index],setTabBarBadgeProps,{badge:t.text,redDot:!0});break;case API_HIDE_TAB_BAR_RED_DOT:case API_REMOVE_TAB_BAR_BADGE:setProperties(o.list[t.index],setTabBarBadgeProps,{badge:"",redDot:!1})}n()}const hideTabBar=defineAsyncApi(API_HIDE_TAB_BAR,((e,{resolve:t})=>{setTabBar(API_HIDE_TAB_BAR,e||{},t)})),DEFAULT_CSS_VAR_VALUE="0px";var LayoutComponent=defineSystemComponent({name:"Layout",setup(e,{emit:t}){const n=ref(null);initCssVar();const o=useKeepAliveRoute(),{layoutState:r,windowState:i}=useState();useMaxWidth(r,n);const a=useAppClass(!1);return()=>{const e=createLayoutTsx(o);return createVNode("uni-app",{ref:n,class:a.value},[e,!1],2)}}});function useAppClass(e){const t=ref(!1);return computed$1((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}function initCssVar(){updateCssVar({"--status-bar-height":DEFAULT_CSS_VAR_VALUE,"--top-window-height":DEFAULT_CSS_VAR_VALUE,"--window-left":DEFAULT_CSS_VAR_VALUE,"--window-right":DEFAULT_CSS_VAR_VALUE,"--window-margin":DEFAULT_CSS_VAR_VALUE,"--tab-bar-height":DEFAULT_CSS_VAR_VALUE})}function useMaxWidth(e,t){const n=usePageRoute();function o(){const n=document.body.clientWidth,o=parseInt(String(__uniConfig.globalStyle.maxWidth||Number.MAX_SAFE_INTEGER));let r=!1;r=n>o,r&&o?(e.marginWidth=(n-o)/2,nextTick((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+o+"px;margin:0 auto;")}))):(e.marginWidth=0,nextTick((()=>{const e=t.value;e&&e.removeAttribute("style")})))}watch([()=>n.path],o),onMounted((()=>{o(),window.addEventListener("resize",o)}))}function useState(){usePageRoute();{const e=reactive({marginWidth:0});return watch((()=>e.marginWidth),(e=>updateCssVar({"--window-margin":e+"px"}))),{layoutState:e,windowState:computed$1((()=>({})))}}}function createLayoutTsx(e,t,n,o,r,i){return createRouterViewVNode(e)}function createRouterViewVNode({routeKey:e,isTabBar:t,routeCache:n}){return createVNode(RouterView,null,{default:withCtx((({Component:o})=>[(openBlock(),createBlock(KeepAlive,{matchBy:"key",cache:n},[(openBlock(),createBlock(resolveDynamicComponent(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}const saveImageToPhotosAlbum=defineAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM,createUnsupportedAsyncApi(API_SAVE_IMAGE_TO_PHOTOS_ALBUM)),UniViewJSBridge$1=extend$1(ViewJSBridge,{publishHandler(e,t,n){UniServiceJSBridge$1.subscribeHandler(e,t,n)}}),UniServiceJSBridge$1=extend$1(ServiceJSBridge,{publishHandler(e,t,n){UniViewJSBridge$1.subscribeHandler(e,t,n)}});var PageBody=defineSystemComponent({name:"PageBody",setup:(e,t)=>()=>createVNode(Fragment,null,[!1,createVNode("uni-page-wrapper",null,[createVNode("uni-page-body",null,[renderSlot(t.slots,"default")])],16)])}),index$2=defineSystemComponent({name:"Page",setup(e,t){const n=providePageMeta(getStateId());return n.navigationBar,useDocumentTitle(n),()=>createVNode("uni-page",{"data-page":n.route},[createPageBodyVNode(t)])}});function createPageBodyVNode(e){return openBlock(),createBlock(PageBody,{key:0},{default:withCtx((()=>[renderSlot(e.slots,"page")])),_:3})}function reload(){window.location.reload()}var index$1=defineSystemComponent({name:"AsyncError",setup(){initI18nAsyncMsgsOnce();const{t:e}=useI18n();return()=>createVNode("div",{class:"uni-async-error",onClick:reload},[e("uni.async.error")],8,["onClick"])}});const clazz={class:"uni-async-loading"},loadingVNode=createVNode("i",{class:"uni-loading"},null,-1);var index$3=defineSystemComponent({name:"AsyncLoading",render:()=>(openBlock(),createBlock("div",clazz,[loadingVNode]))});const appId="",appName="",appVersion="1.0.0",appVersionCode="100",debug=!1,nvue={"flex-direction":"column"},networkTimeout={request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},router={mode:"history",base:"/",assets:"assets"},async$1={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},qqMapKey=void 0,googleMapKey=void 0,aMapKey=void 0,aMapSecurityJsCode=void 0,aMapServiceHost=void 0,sdkConfigs={},locale="",fallbackLocale="";var base="",shadow="",async="";window.uni={},window.wx={},window.rpx2px=upx2px;const locales={},extend=Object.assign;window.__uniConfig=extend({globalStyle:{backgroundColor:"#F8F8F8",navigationBar:{backgroundColor:"#FFFFFF",titleText:"商城",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},easycom:{custom:{"^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)":"z-paging/components/z-paging$1/z-paging$1.vue","^w-(.*)":"@/components/widgets/$1/$1.vue"}},compilerVersion:"3.5.5"},{appId:appId,appName:appName,appVersion:appVersion,appVersionCode:appVersionCode,async:async$1,debug:debug,networkTimeout:networkTimeout,sdkConfigs:sdkConfigs,qqMapKey:qqMapKey,googleMapKey:googleMapKey,aMapKey:aMapKey,aMapSecurityJsCode:aMapSecurityJsCode,aMapServiceHost:aMapServiceHost,nvue:nvue,locale:locale,fallbackLocale:fallbackLocale,locales:Object.keys(locales).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return extend(e[n]||(e[n]={}),locales[t].default),e}),{}),router:router}),window.__uniLayout=window.__uniLayout||{};const AsyncComponentOptions={loadingComponent:index$3,errorComponent:index$1,delay:async$1.delay,timeout:async$1.timeout,suspensible:async$1.suspensible},PagesIndexIndexLoader=()=>__vitePreload((()=>import("./pages-index-index.fe168679.js")),["assets/pages-index-index.fe168679.js","assets/index.ffcb57f7.css","assets/u-search.8bcd4dc2.js","assets/u-search.35cfd0ff.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/util.34a4212c.js","assets/news-card.14a6e803.js","assets/news-card.9d2e9b2e.css","assets/icon_visit.5f8ba9a3.js","assets/tabbar.9757c3e5.js","assets/tabbar.0a69452b.css","assets/shop.20664790.js"]).then((e=>setupPage(e.default||e))),PagesIndexIndex=defineAsyncComponent(extend({loader:PagesIndexIndexLoader},AsyncComponentOptions)),PagesNewsNewsLoader=()=>__vitePreload((()=>import("./pages-news-news.4422a672.js")),["assets/pages-news-news.4422a672.js","assets/news.6a2c6971.css","assets/u-search.8bcd4dc2.js","assets/u-search.35cfd0ff.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/tabbar.9757c3e5.js","assets/tabbar.0a69452b.css","assets/util.34a4212c.js","assets/news-card.14a6e803.js","assets/news-card.9d2e9b2e.css","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/icon_visit.5f8ba9a3.js","assets/z-paging.1ef01bbf.js","assets/z-paging.7a94f2f9.css","assets/news.65bbe893.js"]).then((e=>setupPage(e.default||e))),PagesNewsNews=defineAsyncComponent(extend({loader:PagesNewsNewsLoader},AsyncComponentOptions)),PagesUserUserLoader=()=>__vitePreload((()=>import("./pages-user-user.2a9fe1a9.js")),["assets/pages-user-user.2a9fe1a9.js","assets/user.32ac385a.css","assets/u-avatar.c390bffe.js","assets/u-avatar.dfe1b6cb.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/util.34a4212c.js","assets/tabbar.9757c3e5.js","assets/tabbar.0a69452b.css","assets/shop.20664790.js"]).then((e=>setupPage(e.default||e))),PagesUserUser=defineAsyncComponent(extend({loader:PagesUserUserLoader},AsyncComponentOptions)),PagesLoginLoginLoader=()=>__vitePreload((()=>import("./pages-login-login.a833f688.js")),["assets/pages-login-login.a833f688.js","assets/login.40cffb6a.css","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-form-item.b469356e.js","assets/u-form-item.f95e2da5.css","assets/u-verification-code.f035b1a4.js","assets/u-verification-code.e967c1e9.css","assets/u-form.c3a815ba.js","assets/u-checkbox.c5fcea9f.js","assets/u-checkbox.c93b1db2.css","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/account.00a6144f.js","assets/appEnums.a2ba827b.js","assets/util.34a4212c.js"]).then((e=>setupPage(e.default||e))),PagesLoginLogin=defineAsyncComponent(extend({loader:PagesLoginLoginLoader},AsyncComponentOptions)),PagesRegisterRegisterLoader=()=>__vitePreload((()=>import("./pages-register-register.82ddc6e3.js")),["assets/pages-register-register.82ddc6e3.js","assets/register.23c48e00.css","assets/u-form-item.b469356e.js","assets/u-form-item.f95e2da5.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-form.c3a815ba.js","assets/u-checkbox.c5fcea9f.js","assets/u-checkbox.c93b1db2.css","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/account.00a6144f.js","assets/appEnums.a2ba827b.js"]).then((e=>setupPage(e.default||e))),PagesRegisterRegister=defineAsyncComponent(extend({loader:PagesRegisterRegisterLoader},AsyncComponentOptions)),PagesForget_pwdForget_pwdLoader=()=>__vitePreload((()=>import("./pages-forget_pwd-forget_pwd.fad274e4.js")),["assets/pages-forget_pwd-forget_pwd.fad274e4.js","assets/forget_pwd.f576be29.css","assets/u-form-item.b469356e.js","assets/u-form-item.f95e2da5.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-verification-code.f035b1a4.js","assets/u-verification-code.e967c1e9.css","assets/u-form.c3a815ba.js","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/account.00a6144f.js","assets/appEnums.a2ba827b.js"]).then((e=>setupPage(e.default||e))),PagesForget_pwdForget_pwd=defineAsyncComponent(extend({loader:PagesForget_pwdForget_pwdLoader},AsyncComponentOptions)),PagesCustomer_serviceCustomer_serviceLoader=()=>__vitePreload((()=>import("./pages-customer_service-customer_service.9e2cb16b.js")),["assets/pages-customer_service-customer_service.9e2cb16b.js","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/shop.20664790.js"]).then((e=>setupPage(e.default||e))),PagesCustomer_serviceCustomer_service=defineAsyncComponent(extend({loader:PagesCustomer_serviceCustomer_serviceLoader},AsyncComponentOptions)),PagesNews_detailNews_detailLoader=()=>__vitePreload((()=>import("./pages-news_detail-news_detail.192e1c41.js")),["assets/pages-news_detail-news_detail.192e1c41.js","assets/news_detail.70b77abb.css","assets/u-parse.5f650ac0.js","assets/u-parse.93f983af.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/icon_visit.5f8ba9a3.js","assets/news.65bbe893.js"]).then((e=>setupPage(e.default||e))),PagesNews_detailNews_detail=defineAsyncComponent(extend({loader:PagesNews_detailNews_detailLoader},AsyncComponentOptions)),PagesUser_setUser_setLoader=()=>__vitePreload((()=>import("./pages-user_set-user_set.f57bc223.js")),["assets/pages-user_set-user_set.f57bc223.js","assets/user_set.f2c8c93e.css","assets/u-avatar.c390bffe.js","assets/u-avatar.dfe1b6cb.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/u-popup.efa6beec.js","assets/u-popup.3b64afbe.css"]).then((e=>setupPage(e.default||e))),PagesUser_setUser_set=defineAsyncComponent(extend({loader:PagesUser_setUser_setLoader},AsyncComponentOptions)),PagesCollectionCollectionLoader=()=>__vitePreload((()=>import("./pages-collection-collection.cd3b9ef9.js")),["assets/pages-collection-collection.cd3b9ef9.js","assets/collection.c4157529.css","assets/news-card.14a6e803.js","assets/news-card.9d2e9b2e.css","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/icon_visit.5f8ba9a3.js","assets/z-paging.1ef01bbf.js","assets/z-paging.7a94f2f9.css","assets/news.65bbe893.js"]).then((e=>setupPage(e.default||e))),PagesCollectionCollection=defineAsyncComponent(extend({loader:PagesCollectionCollectionLoader},AsyncComponentOptions)),PagesAs_usAs_usLoader=()=>__vitePreload((()=>import("./pages-as_us-as_us.980dcae0.js")),["assets/pages-as_us-as_us.980dcae0.js","assets/as_us.a2f8b82c.css","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),PagesAs_usAs_us=defineAsyncComponent(extend({loader:PagesAs_usAs_usLoader},AsyncComponentOptions)),PagesAgreementAgreementLoader=()=>__vitePreload((()=>import("./pages-agreement-agreement.75c3e76a.js")),["assets/pages-agreement-agreement.75c3e76a.js","assets/u-parse.5f650ac0.js","assets/u-parse.93f983af.css","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),PagesAgreementAgreement=defineAsyncComponent(extend({loader:PagesAgreementAgreementLoader},AsyncComponentOptions)),PagesChange_passwordChange_passwordLoader=()=>__vitePreload((()=>import("./pages-change_password-change_password.e984112e.js")),["assets/pages-change_password-change_password.e984112e.js","assets/change_password.9d9aa0f3.css","assets/u-form-item.b469356e.js","assets/u-form-item.f95e2da5.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-form.c3a815ba.js","assets/u-button.126b2542.js","assets/u-button.48af928a.css"]).then((e=>setupPage(e.default||e))),PagesChange_passwordChange_password=defineAsyncComponent(extend({loader:PagesChange_passwordChange_passwordLoader},AsyncComponentOptions)),PagesUser_dataUser_dataLoader=()=>__vitePreload((()=>import("./pages-user_data-user_data.8b999feb.js")),["assets/pages-user_data-user_data.8b999feb.js","assets/user_data.f731938f.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/u-form-item.b469356e.js","assets/u-form-item.f95e2da5.css","assets/u-popup.efa6beec.js","assets/u-popup.3b64afbe.css","assets/u-verification-code.f035b1a4.js","assets/u-verification-code.e967c1e9.css","assets/appEnums.a2ba827b.js","assets/util.34a4212c.js"]).then((e=>setupPage(e.default||e))),PagesUser_dataUser_data=defineAsyncComponent(extend({loader:PagesUser_dataUser_dataLoader},AsyncComponentOptions)),PagesSearchSearchLoader=()=>__vitePreload((()=>import("./pages-search-search.377f4704.js")),["assets/pages-search-search.377f4704.js","assets/search.69183a16.css","assets/u-search.8bcd4dc2.js","assets/u-search.35cfd0ff.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/news-card.14a6e803.js","assets/news-card.9d2e9b2e.css","assets/u-image.e641a9f8.js","assets/u-image.a7813cd9.css","assets/icon_visit.5f8ba9a3.js","assets/z-paging.1ef01bbf.js","assets/z-paging.7a94f2f9.css","assets/shop.20664790.js"]).then((e=>setupPage(e.default||e))),PagesSearchSearch=defineAsyncComponent(extend({loader:PagesSearchSearchLoader},AsyncComponentOptions)),PagesWebviewWebviewLoader=()=>__vitePreload((()=>import("./pages-webview-webview.1842ea1f.js")),[]).then((e=>setupPage(e.default||e))),PagesWebviewWebview=defineAsyncComponent(extend({loader:PagesWebviewWebviewLoader},AsyncComponentOptions)),PagesBind_mobileBind_mobileLoader=()=>__vitePreload((()=>import("./pages-bind_mobile-bind_mobile.286a03dd.js")),["assets/pages-bind_mobile-bind_mobile.286a03dd.js","assets/bind_mobile.883a800d.css","assets/u-form-item.b469356e.js","assets/u-form-item.f95e2da5.css","assets/u-icon.67feec68.js","assets/u-icon.81bcc25e.css","assets/plugin-vue_export-helper.21dcd24c.js","assets/u-verification-code.f035b1a4.js","assets/u-verification-code.e967c1e9.css","assets/u-form.c3a815ba.js","assets/u-button.126b2542.js","assets/u-button.48af928a.css","assets/appEnums.a2ba827b.js"]).then((e=>setupPage(e.default||e))),PagesBind_mobileBind_mobile=defineAsyncComponent(extend({loader:PagesBind_mobileBind_mobileLoader},AsyncComponentOptions)),PagesEmptyEmptyLoader=()=>__vitePreload((()=>import("./pages-empty-empty.637fcb62.js")),["assets/pages-empty-empty.637fcb62.js","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),PagesEmptyEmpty=defineAsyncComponent(extend({loader:PagesEmptyEmptyLoader},AsyncComponentOptions)),Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropperLoader=()=>__vitePreload((()=>import("./uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.ab2e984a.js")),["assets/uni_modules-vk-uview-ui-components-u-avatar-cropper-u-avatar-cropper.ab2e984a.js","assets/u-avatar-cropper.91a54bb1.css","assets/plugin-vue_export-helper.21dcd24c.js"]).then((e=>setupPage(e.default||e))),Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropper=defineAsyncComponent(extend({loader:Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropperLoader},AsyncComponentOptions));function renderPage(e,t){return openBlock(),createBlock(index$2,null,{page:withCtx((()=>[createVNode(e,extend({},t,{ref:"page"}),null,512)])),_:1})}function resolveEasycom(e,t){return isString(e)?t:e}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesIndexIndex,t)}},loader:PagesIndexIndexLoader,meta:{isQuit:!0,isEntry:!0,navigationBar:{titleText:"首页",type:"default"},isNVue:!1}},{path:"/pages/news/news",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesNewsNews,t)}},loader:PagesNewsNewsLoader,meta:{navigationBar:{titleText:"资讯",type:"default"},isNVue:!1}},{path:"/pages/user/user",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesUserUser,t)}},loader:PagesUserUserLoader,meta:{navigationBar:{titleText:"个人中心",type:"default"},isNVue:!1}},{path:"/pages/login/login",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesLoginLogin,t)}},loader:PagesLoginLoginLoader,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/register/register",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesRegisterRegister,t)}},loader:PagesRegisterRegisterLoader,meta:{navigationBar:{titleText:"注册",type:"default"},isNVue:!1}},{path:"/pages/forget_pwd/forget_pwd",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesForget_pwdForget_pwd,t)}},loader:PagesForget_pwdForget_pwdLoader,meta:{navigationBar:{titleText:"忘记密码",type:"default"},isNVue:!1}},{path:"/pages/customer_service/customer_service",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesCustomer_serviceCustomer_service,t)}},loader:PagesCustomer_serviceCustomer_serviceLoader,meta:{navigationBar:{titleText:"联系客服",type:"default"},isNVue:!1}},{path:"/pages/news_detail/news_detail",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesNews_detailNews_detail,t)}},loader:PagesNews_detailNews_detailLoader,meta:{navigationBar:{titleText:"详情",type:"default"},isNVue:!1}},{path:"/pages/user_set/user_set",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesUser_setUser_set,t)}},loader:PagesUser_setUser_setLoader,meta:{navigationBar:{titleText:"个人设置",type:"default"},isNVue:!1}},{path:"/pages/collection/collection",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesCollectionCollection,t)}},loader:PagesCollectionCollectionLoader,meta:{navigationBar:{titleText:"我的收藏",type:"default"},isNVue:!1}},{path:"/pages/as_us/as_us",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesAs_usAs_us,t)}},loader:PagesAs_usAs_usLoader,meta:{navigationBar:{titleText:"关于我们",type:"default"},isNVue:!1}},{path:"/pages/agreement/agreement",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesAgreementAgreement,t)}},loader:PagesAgreementAgreementLoader,meta:{navigationBar:{titleText:"协议",type:"default"},isNVue:!1}},{path:"/pages/change_password/change_password",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesChange_passwordChange_password,t)}},loader:PagesChange_passwordChange_passwordLoader,meta:{navigationBar:{titleText:"修改密码",type:"default"},isNVue:!1}},{path:"/pages/user_data/user_data",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesUser_dataUser_data,t)}},loader:PagesUser_dataUser_dataLoader,meta:{navigationBar:{titleText:"个人资料",type:"default"},isNVue:!1}},{path:"/pages/search/search",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesSearchSearch,t)}},loader:PagesSearchSearchLoader,meta:{navigationBar:{titleText:"搜索",type:"default"},isNVue:!1}},{path:"/pages/webview/webview",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesWebviewWebview,t)}},loader:PagesWebviewWebviewLoader,meta:{navigationBar:{},isNVue:!1}},{path:"/pages/bind_mobile/bind_mobile",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesBind_mobileBind_mobile,t)}},loader:PagesBind_mobileBind_mobileLoader,meta:{navigationBar:{titleText:"绑定手机号",type:"default"},isNVue:!1}},{path:"/pages/empty/empty",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(PagesEmptyEmpty,t)}},loader:PagesEmptyEmptyLoader,meta:{navigationBar:{style:"custom",type:"default"},isNVue:!1}},{path:"/uni_modules/vk-uview-ui/components/u-avatar-cropper/u-avatar-cropper",component:{setup(){const e=getApp$1(),t=e&&e.$route&&e.$route.query||{};return()=>renderPage(Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropper,t)}},loader:Uni_modulesVkUviewUiComponentsUAvatarCropperUAvatarCropperLoader,meta:{navigationBar:{backgroundColor:"#000000",titleText:"头像裁剪",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const createHook=e=>(t,n=getCurrentInstance())=>{!isInSSRComponentSetup&&injectHook(e,t,n)},onShow=createHook(ON_SHOW),onLaunch=createHook(ON_LAUNCH),onLoad=createHook(ON_LOAD),onUnload=createHook(ON_UNLOAD);var isVue2=!1; /*! * pinia v2.0.20 * (c) 2022 Eduardo San Martin Morote * @license MIT - */let activePinia;const setActivePinia=e=>activePinia=e,piniaSymbol=Symbol();function isPlainObject$1(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var MutationType,MutationType2;function createPinia(){const e=effectScope(!0),t=e.run((()=>ref({})));let n=[],o=[];const r=markRaw({install(e){setActivePinia(r),r._a=e,e.provide(piniaSymbol,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a||isVue2?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}MutationType2=MutationType||(MutationType={}),MutationType2.direct="direct",MutationType2.patchObject="patch object",MutationType2.patchFunction="patch function";const noop=()=>{};function addSubscription(e,t,n,o=noop){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&getCurrentInstance()&&onUnmounted(r),r}function triggerSubscriptions(e,...t){e.slice().forEach((e=>{e(...t)}))}function mergeReactiveObjects(e,t){for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];isPlainObject$1(r)&&isPlainObject$1(o)&&e.hasOwnProperty(n)&&!isRef(o)&&!isReactive(o)?e[n]=mergeReactiveObjects(r,o):e[n]=o}return e}const skipHydrateSymbol=Symbol();function shouldHydrate(e){return!isPlainObject$1(e)||!e.hasOwnProperty(skipHydrateSymbol)}const{assign:assign}=Object;function isComputed(e){return!(!isRef(e)||!e.effect)}function createOptionsStore(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let c;return c=createSetupStore(e,(function(){s||(n.state.value[e]=r?r():{});const t=toRefs(n.state.value[e]);return assign(t,i,Object.keys(a||{}).reduce(((t,o)=>(t[o]=markRaw(computed$1((()=>{setActivePinia(n);const t=n._s.get(e);return a[o].call(t,t)}))),t)),{}))}),t,n,o,!0),c.$reset=function(){const e=r?r():{};this.$patch((t=>{assign(t,e)}))},c}function createSetupStore(e,t,n={},o,r,i){let a;const s=assign({actions:{}},n),c={deep:!0};let l,u,d,f=markRaw([]),p=markRaw([]);const h=o.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:MutationType.patchFunction,storeId:e,events:d}):(mergeReactiveObjects(o.state.value[e],t),n={type:MutationType.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();nextTick().then((()=>{g===r&&(l=!0)})),u=!0,triggerSubscriptions(f,n,o.state.value[e])}i||h||(o.state.value[e]={}),ref({});const v=noop;function _(t,n){return function(){setActivePinia(o);const r=Array.from(arguments),i=[],a=[];function s(e){i.push(e)}function c(e){a.push(e)}let l;triggerSubscriptions(p,{args:r,name:t,store:b,after:s,onError:c});try{l=n.apply(this&&this.$id===e?this:b,r)}catch(u){throw triggerSubscriptions(a,u),u}return l instanceof Promise?l.then((e=>(triggerSubscriptions(i,e),e))).catch((e=>(triggerSubscriptions(a,e),Promise.reject(e)))):(triggerSubscriptions(i,l),l)}}const y={_p:o,$id:e,$onAction:addSubscription.bind(null,p),$patch:m,$reset:v,$subscribe(t,n={}){const r=addSubscription(f,t,n.detached,(()=>i())),i=a.run((()=>watch((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:l)&&t({storeId:e,type:MutationType.direct,events:d},o)}),assign({},c,n))));return r},$dispose:function(){a.stop(),f=[],p=[],o._s.delete(e)}},b=reactive(assign({},y));o._s.set(e,b);const w=o._e.run((()=>(a=effectScope(),a.run((()=>t())))));for(const T in w){const t=w[T];if(isRef(t)&&!isComputed(t)||isReactive(t))i||(h&&shouldHydrate(t)&&(isRef(t)?t.value=h[T]:mergeReactiveObjects(t,h[T])),o.state.value[e][T]=t);else if("function"==typeof t){const e=_(T,t);w[T]=e,s.actions[T]=t}}return assign(b,w),assign(toRaw(b),w),Object.defineProperty(b,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{assign(t,e)}))}}),o._p.forEach((e=>{assign(b,a.run((()=>e({store:b,app:o._a,pinia:o,options:s}))))})),h&&i&&n.hydrate&&n.hydrate(b.$state,h),l=!0,u=!0,b}function defineStore(e,t,n){let o,r;const i="function"==typeof t;function a(e,n){const a=getCurrentInstance();(e=e||a&&inject(piniaSymbol))&&setActivePinia(e),(e=activePinia)._s.has(o)||(i?createSetupStore(o,t,r,e):createOptionsStore(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),a.$id=o,a}function storeToRefs(e){{e=toRaw(e);const t={};for(const n in e){const o=e[n];(isRef(o)||isReactive(o))&&(t[n]=toRef(e,n))}return t}}var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$8.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var o=!0}catch(i){}var r=nativeObjectToString$1.call(e);return o&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return null!=e&&"object"==typeof e}var isArray$1=Array.isArray,isArray$2=isArray$1;function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function identity(e){return e}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=(uid2=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||""),uid2?"Symbol(src)_1."+uid2:""),uid2;function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$8=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$7=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var n=getValue(e,t);return baseIsNative(n)?n:void 0}var objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),baseCreate$1=baseCreate;function apply(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function copyArray(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function constant(e){return function(){return e}}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),defineProperty$1=defineProperty,baseSetToString=defineProperty$1?function(e,t){return defineProperty$1(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity,baseSetToString$1=baseSetToString,setToString=shortOut(baseSetToString$1),setToString$1=setToString,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isIterateeCall(e,t,n){if(!isObject(n))return!1;var o=typeof t;return!!("number"==o?isArrayLike(n)&&isIndex(t,n.length):"string"==o&&t in n)&&eq(n[t],e)}function createAssigner(e){return baseRest((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&isIterateeCall(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function listCacheSet(e,t){var n=this.__data__,o=assocIndexOf(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function ListCache(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t(e.GET="GET",e.POST="POST",e))(RequestMethodsEnum||{}),RequestCodeEnum=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.FAILED=300]="FAILED",e[e.PARAMS_VALID_ERROR=310]="PARAMS_VALID_ERROR",e[e.PARAMS_TYPE_ERROR=311]="PARAMS_TYPE_ERROR",e[e.REQUEST_METHOD_ERROR=312]="REQUEST_METHOD_ERROR",e[e.ASSERT_ARGUMENT_ERROR=313]="ASSERT_ARGUMENT_ERROR",e[e.ASSERT_MYBATIS_ERROR=314]="ASSERT_MYBATIS_ERROR",e[e.LOGIN_ACCOUNT_ERROR=330]="LOGIN_ACCOUNT_ERROR",e[e.LOGIN_DISABLE_ERROR=331]="LOGIN_DISABLE_ERROR",e[e.TOKEN_EMPTY=332]="TOKEN_EMPTY",e[e.TOKEN_INVALID=333]="TOKEN_INVALID",e[e.NO_PERMISSTION=403]="NO_PERMISSTION",e[e.REQUEST_404_ERROR=404]="REQUEST_404_ERROR",e[e.SYSTEM_ERROR=500]="SYSTEM_ERROR",e))(RequestCodeEnum||{});const cancelerMap=new Map,_RequestCancel=class{static createInstance(){var e;return null!=(e=this.instance)?e:this.instance=new _RequestCancel}add(e,t){this.remove(e),cancelerMap.has(e)||cancelerMap.set(e,t)}remove(e){if(cancelerMap.has(e)){const t=cancelerMap.get(e);t&&t.abort(),cancelerMap.delete(e)}}};let RequestCancel=_RequestCancel;__publicField(RequestCancel,"instance");const requestCancel=RequestCancel.createInstance();class HttpRequest{constructor(e){__publicField(this,"options"),this.options=e}get(e,t){return this.request({...e,method:RequestMethodsEnum.GET},t)}post(e,t){return this.request({...e,method:RequestMethodsEnum.POST},t)}async request(e,t){let n=merge$1({},this.options.requestOptions,e);const o=merge$1({},this.options,t),{requestInterceptorsHook:r,responseInterceptorsHook:i,responseInterceptorsCatchHook:a}=o.requestHooks||{};return r&&isFunction$1(r)&&(n=r(e,o)),new Promise(((t,r)=>{const s=request$1({...n,success(e){if(i&&isFunction$1(i))try{e=i(e,o),t(e)}catch(n){r(n)}else t(e)},fail(e){a&&isFunction$1(a)?r(a(e,o)):r(e)},complete(t){console.log(t),"request:fail abort"!==t.errMsg&&requestCancel.remove(e.url)}}),{ignoreCancel:c}=o;!c&&requestCancel.add(e.url,s)}))}}const TOKEN_KEY="token",HISTORY="history",BACK_URL="back_url",cache={key:"app_",set(e,t,n){e=this.getKey(e);let o={expire:n?this.time()+n:"",value:t};"object"==typeof o&&(o=JSON.stringify(o));try{setStorageSync(e,o)}catch(r){return null}},get(e){e=this.getKey(e);try{const t=getStorageSync(e);if(!t)return null;const{value:n,expire:o}=JSON.parse(t);return o&&oMath.round((new Date).getTime()/1e3),remove(e){e=this.getKey(e),removeStorageSync(e)},getKey(e){return this.key+e}};function getToken(){return cache.get(TOKEN_KEY)}function getUserCenter(e){return request.get({url:"/user/center",header:e})}function getUserInfo(){return request.get({url:"/user/info"},{isAuth:!0})}function userEdit(e){return request.post({url:"/user/edit",data:e},{isAuth:!0})}function userBindMobile(e,t){return request.post({url:"/user/bindMobile",data:e,header:t},{isAuth:!0})}function userChangePwd(e){return request.post({url:"/user/changePwd",data:e},{isAuth:!0})}const useUserStore=defineStore({id:"userStore",state:()=>({userInfo:{},token:cache.get(TOKEN_KEY)||null,temToken:null}),getters:{isLogin:e=>!!e.token},actions:{async getUser(){const e=await getUserCenter({token:this.token||this.temToken});this.userInfo=e},login(e){this.token=e,cache.set(TOKEN_KEY,e)},logout(){this.token="",this.userInfo={},cache.remove(TOKEN_KEY)}}}),requestHooks={requestInterceptorsHook(e,t){var n;const{urlPrefix:o,baseUrl:r,withToken:i}=t;e.header=null!=(n=e.header)?n:{},o&&(e.url=`${o}${e.url}`),r&&(e.url=`${r}${e.url}`);const a=getToken();return i&&a&&(e.header.token=a),e},responseInterceptorsHook(e,t){const{isTransformResponse:n,isReturnDefaultResponse:o,isAuth:r}=t;if(o)return e;if(!n)return e.data;const{logout:i}=useUserStore(),{code:a,data:s,msg:c}=e.data;switch(a){case RequestCodeEnum.SUCCESS:return s;case RequestCodeEnum.PARAMS_TYPE_ERROR:case RequestCodeEnum.PARAMS_VALID_ERROR:case RequestCodeEnum.REQUEST_METHOD_ERROR:case RequestCodeEnum.ASSERT_ARGUMENT_ERROR:case RequestCodeEnum.ASSERT_MYBATIS_ERROR:case RequestCodeEnum.LOGIN_ACCOUNT_ERROR:case RequestCodeEnum.LOGIN_DISABLE_ERROR:case RequestCodeEnum.NO_PERMISSTION:case RequestCodeEnum.FAILED:case RequestCodeEnum.SYSTEM_ERROR:return uni.$u.toast(c),Promise.reject(c);case RequestCodeEnum.TOKEN_INVALID:case RequestCodeEnum.TOKEN_EMPTY:return i(),r&&!getToken()&&navigateTo({url:"/pages/login/login"}),Promise.reject();default:return s}}},defaultOptions={requestOptions:{timeout:1e4},baseUrl:"/",isReturnDefaultResponse:!1,isTransformResponse:!0,urlPrefix:"api",ignoreCancel:!1,withToken:!0,isAuth:!1,requestHooks:requestHooks};function createRequest(e){return new HttpRequest(merge$1(defaultOptions,e||{}))}const request=createRequest();function smsSend(e){return request.post({url:"/sms/send",data:e})}function getConfig(){return request.get({url:"/config"})}function getPolicy(e){return request.get({url:"/policy",data:e})}const useAppStore=defineStore({id:"appStore",state:()=>({config:{}}),getters:{getWebsiteConfig:e=>e.config.website||{},getLoginConfig:e=>e.config.login||{},getTabbarConfig:e=>e.config.tabbar||[],getStyleConfig:e=>e.config.style||{},getH5Config:e=>e.config.h5||{}},actions:{getImageUrl(e){return e?`${this.config.domain}${e}`:""},async getConfig(){const e=await getConfig();this.config=e}}});var App_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({__name:"App",setup(e){const t=useAppStore(),{getUser:n}=useUserStore();return onLaunch((async()=>{await t.getConfig();const{status:e,close:o,url:r}=t.getH5Config;if(0==e){if(1==o)return location.href=r;reLaunch({url:"/pages/empty/empty"})}await n()})),()=>{}}});setupApp(_sfc_main);const pinia=createPinia();var pinia$1=e=>{e.use(pinia)},__glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:pinia$1},Symbol.toStringTag,{value:"Module"})),mixin={data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect(e,t){return new Promise((n=>{createSelectorQuery().in(this)[t?"selectAll":"select"](e).boundingClientRect((e=>{t&&Array.isArray(e)&&e.length&&n(e),!t&&e&&n(e)})).exec()}))},getParentData(e=""){this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,e),this.parent&&(Object.keys(this.parentData).map((e=>{this.parentData[e]=this.parent[e]})),this.parentData.value=this.parent.modelValue)},preventEvent(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom(){$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&uni.$u.test.array(this.parent.children)){const e=this.parent.children;e.map(((t,n)=>{t===this&&e.splice(n,1)}))}}};function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}function deepClone(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;var t=isArray(e)?[]:{};for(let n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?deepClone(e[n]):e[n]);return t}function deepMerge(e={},t={}){if("object"!=typeof(e=deepClone(e))||"object"!=typeof t)return!1;for(var n in t)t.hasOwnProperty(n)&&(n in e?"object"!=typeof e[n]||"object"!=typeof t[n]?e[n]=t[n]:e[n].concat&&t[n].concat?e[n]=e[n].concat(t[n]):e[n]=deepMerge(e[n],t[n]):e[n]=t[n]);return e}function email(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)}function mobile(e){return/^1[23456789]\d{9}$/.test(e)}function url(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)}function date(e){return!/Invalid|NaN/.test(new Date(e).toString())}function dateISO(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function number(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)}function digits(e){return/^\d+$/.test(e)}function idCard(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function carNo(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)}function amount(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function chinese(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)}function letter(e){return/^[a-zA-Z]*$/.test(e)}function enOrNum(e){return/^[0-9a-zA-Z]*$/g.test(e)}function contains(e,t){return e.indexOf(t)>=0}function range(e,t){return e>=t[0]&&e<=t[1]}function rangeLength(e,t){return e.length>=t[0]&&e.length<=t[1]}function landline(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)}function empty(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function jsonString(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(n){return!1}return!1}function array(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function object(e){return"[object Object]"===Object.prototype.toString.call(e)}function code(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)}var test={email:email,mobile:mobile,url:url,date:date,dateISO:dateISO,number:number,digits:digits,idCard:idCard,carNo:carNo,amount:amount,chinese:chinese,letter:letter,enOrNum:enOrNum,contains:contains,range:range,rangeLength:rangeLength,empty:empty,isEmpty:empty,jsonString:jsonString,landline:landline,object:object,array:array,code:code};class Request{setConfig(e){this.config=deepMerge(this.config,e)}request(e={}){if(this.interceptor.request&&"function"==typeof this.interceptor.request){let t=this.interceptor.request(e);if(!1===t)return new Promise((()=>{}));this.options=t}return e.dataType=e.dataType||this.config.dataType,e.responseType=e.responseType||this.config.responseType,e.url=e.url||"",e.params=e.params||{},e.header=Object.assign({},this.config.header,e.header),e.method=e.method||this.config.method,new Promise(((t,n)=>{e.complete=e=>{if(hideLoading(),clearTimeout(this.config.timer),this.config.timer=null,this.config.originalData)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let o=this.interceptor.response(e);!1!==o?t(o):n(e)}else t(e);else if(200==e.statusCode)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let o=this.interceptor.response(e.data);!1!==o?t(o):n(e.data)}else t(e.data);else n(e)},e.url=test.url(e.url)?e.url:this.config.baseUrl+(0==e.url.indexOf("/")?e.url:"/"+e.url),this.config.showLoading&&!this.config.timer&&(this.config.timer=setTimeout((()=>{showLoading({title:this.config.loadingText,mask:this.config.loadingMask}),this.config.timer=null}),this.config.loadingTime)),request$1(e)}))}constructor(){this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"请求中...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=(e,t={},n={})=>this.request({method:"GET",url:e,header:n,data:t}),this.post=(e,t={},n={})=>this.request({url:e,method:"POST",header:n,data:t}),this.put=(e,t={},n={})=>this.request({url:e,method:"PUT",header:n,data:t}),this.delete=(e,t={},n={})=>this.request({url:e,method:"DELETE",header:n,data:t})}}var http=new Request;function queryParams(e={},t=!0,n="brackets"){let o=t?"?":"",r=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");for(let i in e){let t=e[i];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(n){case"indices":for(let n=0;n{r.push(i+"[]="+e)}));break;case"repeat":t.forEach((e=>{r.push(i+"="+e)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),r.push(i+"="+e)}else r.push(i+"="+t)}return r.length?o+r.join("&"):""}class Router{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let n="";return/.*\/.*\?.*=.*/.test(e)?(n=uni.$u.queryParams(t,!1),e+"&"+n):(n=uni.$u.queryParams(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=uni.$u.deepClone(e,this.config),n.url=this.mixinParam(e.url,e.params)),t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=uni.$u.deepMerge(this.config,n),"function"==typeof uni.$u.routeIntercept){await new Promise(((e,t)=>{uni.$u.routeIntercept(n,e)}))&&this.openPage(n)}else this.openPage(n)}openPage(e){const{url:t,type:n,delta:o,animationType:r,animationDuration:i}=e;"navigateTo"!=e.type&&"to"!=e.type||navigateTo({url:t,animationType:r,animationDuration:i}),"redirectTo"!=e.type&&"redirect"!=e.type||redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||navigateBack({delta:o})}}var route=(new Router).route;function timeFormat(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let n,o=new Date(e),r={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(let i in r)n=new RegExp("("+i+")").exec(t),n&&(t=t.replace(n[1],1==n[1].length?r[i]:r[i].padStart(n[1].length,"0")));return t}function timeFrom(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let n=+new Date(Number(e)),o=(Number(new Date)-n)/1e3,r="";switch(!0){case o<300:r="刚刚";break;case o>=300&&o<3600:r=parseInt(o/60)+"分钟前";break;case o>=3600&&o<86400:r=parseInt(o/3600)+"小时前";break;case o>=86400&&o<2592e3:r=parseInt(o/86400)+"天前";break;default:r=!1===t?o>=2592e3&&o<31536e3?parseInt(o/2592e3)+"个月前":parseInt(o/31536e3)+"年前":timeFormat(n,t)}return r}function colorGradient(e="rgb(0, 0, 0)",t="rgb(255, 255, 255)",n=10){let o=hexToRgb(e,!1),r=o[0],i=o[1],a=o[2],s=hexToRgb(t,!1),c=(s[0]-r)/n,l=(s[1]-i)/n,u=(s[2]-a)/n,d=[];for(let f=0;fNumber(e)))}return e}function rgbToHex(e){let t=e;if(/^(rgb|RGB)/.test(t)){let e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#";for(let t=0;t=e)return String(n);let o=e-n.length,r=Math.ceil(o/t.length);for(;r>>=1;)t+=t,1===r&&(t+=t);return t.slice(0,o)+n});var colorGradient$1={colorGradient:colorGradient,hexToRgb:hexToRgb,rgbToHex:rgbToHex,colorToRgba:colorToRgba};function guid(e=32,t=!0,n=null){let o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;iMath.random()-.5))}function addUnit(e="auto",t="rpx"){return e=String(e),test.number(e)?`${e}${t}`:e}function random(e,t){if(e>=0&&t>0&&t>=e){let n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function trim(e,t="both"){return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function toast(e,t=1500){showToast({title:e,icon:"none",duration:t})}function getParent(e,t){let n=this.$parent;for(;n;){if(n.$options.name===e){let e={};if(Array.isArray(t))t.map((t=>{e[t]=n[t]?n[t]:""}));else for(let o in t)Array.isArray(t[o])?t[o].length?e[o]=t[o]:e[o]=n[o]:t[o].constructor===Object?Object.keys(t[o]).length?e[o]=t[o]:e[o]=n[o]:e[o]=t[o]||!1===t[o]?t[o]:n[o];return e}n=n.$parent}return{}}function $parent(e){let t=this.$parent;for(;t;){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function os(){return getSystemInfoSync().platform}function sys(){return getSystemInfoSync()}let timeout=null;function debounce(e,t=500,n=!1){if(null!==timeout&&clearTimeout(timeout),n){var o=!timeout;timeout=setTimeout((function(){timeout=null}),t),o&&"function"==typeof e&&e()}else timeout=setTimeout((function(){"function"==typeof e&&e()}),t)}let timeoutArr=[],flagArr=[];function throttle(e,t=500,n=!0,o="default"){timeoutArr[o]||(timeoutArr[o]=null),n?flagArr[o]||(flagArr[o]=!0,"function"==typeof e&&e(),timeoutArr[o]=setTimeout((()=>{flagArr[o]=!1}),t)):flagArr[o]||(flagArr[o]=!0,timeoutArr[o]=setTimeout((()=>{flagArr[o]=!1,"function"==typeof e&&e()}),t))}let version="1.10.1";var config={v:version,version:version,type:["primary","success","info","error","warning"]},zIndex={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};function wranning(e){}const $u={queryParams:queryParams,route:route,timeFormat:timeFormat,date:timeFormat,timeFrom:timeFrom,colorGradient:colorGradient$1.colorGradient,colorToRgba:colorGradient$1.colorToRgba,guid:guid,color:color,sys:sys,os:os,type2icon:type2icon,randomArray:randomArray,wranning:wranning,get:http.get,post:http.post,put:http.put,delete:http.delete,hexToRgb:colorGradient$1.hexToRgb,rgbToHex:colorGradient$1.rgbToHex,test:test,random:random,deepClone:deepClone,deepMerge:deepMerge,getParent:getParent,$parent:$parent,addUnit:addUnit,trim:trim,type:["primary","success","error","warning","info"],http:http,toast:toast,config:config,zIndex:zIndex,debounce:debounce,throttle:throttle};uni.$u=$u;const install=e=>{e.mixin(mixin),e.config.globalProperties.$u=$u};var uView={install:install},uview=e=>{e.use(uView)},__glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,default:uview},Symbol.toStringTag,{value:"Module"})),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vconsole_min={exports:{}}; + */let activePinia;const setActivePinia=e=>activePinia=e,piniaSymbol=Symbol();function isPlainObject$1(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var MutationType,MutationType2;function createPinia(){const e=effectScope(!0),t=e.run((()=>ref({})));let n=[],o=[];const r=markRaw({install(e){setActivePinia(r),r._a=e,e.provide(piniaSymbol,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a||isVue2?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}MutationType2=MutationType||(MutationType={}),MutationType2.direct="direct",MutationType2.patchObject="patch object",MutationType2.patchFunction="patch function";const noop=()=>{};function addSubscription(e,t,n,o=noop){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};return!n&&getCurrentInstance()&&onUnmounted(r),r}function triggerSubscriptions(e,...t){e.slice().forEach((e=>{e(...t)}))}function mergeReactiveObjects(e,t){for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];isPlainObject$1(r)&&isPlainObject$1(o)&&e.hasOwnProperty(n)&&!isRef(o)&&!isReactive(o)?e[n]=mergeReactiveObjects(r,o):e[n]=o}return e}const skipHydrateSymbol=Symbol();function shouldHydrate(e){return!isPlainObject$1(e)||!e.hasOwnProperty(skipHydrateSymbol)}const{assign:assign}=Object;function isComputed(e){return!(!isRef(e)||!e.effect)}function createOptionsStore(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let c;return c=createSetupStore(e,(function(){s||(n.state.value[e]=r?r():{});const t=toRefs(n.state.value[e]);return assign(t,i,Object.keys(a||{}).reduce(((t,o)=>(t[o]=markRaw(computed$1((()=>{setActivePinia(n);const t=n._s.get(e);return a[o].call(t,t)}))),t)),{}))}),t,n,o,!0),c.$reset=function(){const e=r?r():{};this.$patch((t=>{assign(t,e)}))},c}function createSetupStore(e,t,n={},o,r,i){let a;const s=assign({actions:{}},n),c={deep:!0};let l,u,d,f=markRaw([]),p=markRaw([]);const h=o.state.value[e];let g;function m(t){let n;l=u=!1,"function"==typeof t?(t(o.state.value[e]),n={type:MutationType.patchFunction,storeId:e,events:d}):(mergeReactiveObjects(o.state.value[e],t),n={type:MutationType.patchObject,payload:t,storeId:e,events:d});const r=g=Symbol();nextTick().then((()=>{g===r&&(l=!0)})),u=!0,triggerSubscriptions(f,n,o.state.value[e])}i||h||(o.state.value[e]={}),ref({});const v=noop;function _(t,n){return function(){setActivePinia(o);const r=Array.from(arguments),i=[],a=[];function s(e){i.push(e)}function c(e){a.push(e)}let l;triggerSubscriptions(p,{args:r,name:t,store:b,after:s,onError:c});try{l=n.apply(this&&this.$id===e?this:b,r)}catch(u){throw triggerSubscriptions(a,u),u}return l instanceof Promise?l.then((e=>(triggerSubscriptions(i,e),e))).catch((e=>(triggerSubscriptions(a,e),Promise.reject(e)))):(triggerSubscriptions(i,l),l)}}const y={_p:o,$id:e,$onAction:addSubscription.bind(null,p),$patch:m,$reset:v,$subscribe(t,n={}){const r=addSubscription(f,t,n.detached,(()=>i())),i=a.run((()=>watch((()=>o.state.value[e]),(o=>{("sync"===n.flush?u:l)&&t({storeId:e,type:MutationType.direct,events:d},o)}),assign({},c,n))));return r},$dispose:function(){a.stop(),f=[],p=[],o._s.delete(e)}},b=reactive(assign({},y));o._s.set(e,b);const w=o._e.run((()=>(a=effectScope(),a.run((()=>t())))));for(const T in w){const t=w[T];if(isRef(t)&&!isComputed(t)||isReactive(t))i||(h&&shouldHydrate(t)&&(isRef(t)?t.value=h[T]:mergeReactiveObjects(t,h[T])),o.state.value[e][T]=t);else if("function"==typeof t){const e=_(T,t);w[T]=e,s.actions[T]=t}}return assign(b,w),assign(toRaw(b),w),Object.defineProperty(b,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{assign(t,e)}))}}),o._p.forEach((e=>{assign(b,a.run((()=>e({store:b,app:o._a,pinia:o,options:s}))))})),h&&i&&n.hydrate&&n.hydrate(b.$state,h),l=!0,u=!0,b}function defineStore(e,t,n){let o,r;const i="function"==typeof t;function a(e,n){const a=getCurrentInstance();(e=e||a&&inject(piniaSymbol))&&setActivePinia(e),(e=activePinia)._s.has(o)||(i?createSetupStore(o,t,r,e):createOptionsStore(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),a.$id=o,a}function storeToRefs(e){{e=toRaw(e);const t={};for(const n in e){const o=e[n];(isRef(o)||isReactive(o))&&(t[n]=toRef(e,n))}return t}}var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,Symbol$1=root$1.Symbol,Symbol$2=Symbol$1,objectProto$a=Object.prototype,hasOwnProperty$8=objectProto$a.hasOwnProperty,nativeObjectToString$1=objectProto$a.toString,symToStringTag$1=Symbol$2?Symbol$2.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$8.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var o=!0}catch(i){}var r=nativeObjectToString$1.call(e);return o&&(t?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var objectProto$9=Object.prototype,nativeObjectToString=objectProto$9.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$2?Symbol$2.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return null!=e&&"object"==typeof e}var isArray$1=Array.isArray,isArray$2=isArray$1;function isObject(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function identity(e){return e}var asyncTag="[object AsyncFunction]",funcTag$1="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag$1||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=(uid2=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||""),uid2?"Symbol(src)_1."+uid2:""),uid2;function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$2=Function.prototype,funcToString$2=funcProto$2.toString;function toSource(e){if(null!=e){try{return funcToString$2.call(e)}catch(t){}try{return e+""}catch(t){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto$1=Function.prototype,objectProto$8=Object.prototype,funcToString$1=funcProto$1.toString,hasOwnProperty$7=objectProto$8.hasOwnProperty,reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$7).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var n=getValue(e,t);return baseIsNative(n)?n:void 0}var objectCreate=Object.create,baseCreate=function(){function e(){}return function(t){if(!isObject(t))return{};if(objectCreate)return objectCreate(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),baseCreate$1=baseCreate;function apply(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function copyArray(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n0){if(++t>=HOT_COUNT)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function constant(e){return function(){return e}}var defineProperty=function(){try{var e=getNative(Object,"defineProperty");return e({},"",{}),e}catch(t){}}(),defineProperty$1=defineProperty,baseSetToString=defineProperty$1?function(e,t){return defineProperty$1(e,"toString",{configurable:!0,enumerable:!1,value:constant(t),writable:!0})}:identity,baseSetToString$1=baseSetToString,setToString=shortOut(baseSetToString$1),setToString$1=setToString,MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,t){var n=typeof e;return!!(t=null==t?MAX_SAFE_INTEGER$1:t)&&("number"==n||"symbol"!=n&&reIsUint.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return null!=e&&isLength(e.length)&&!isFunction(e)}function isIterateeCall(e,t,n){if(!isObject(n))return!1;var o=typeof t;return!!("number"==o?isArrayLike(n)&&isIndex(t,n.length):"string"==o&&t in n)&&eq(n[t],e)}function createAssigner(e){return baseRest((function(t,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=e.length>3&&"function"==typeof i?(r--,i):void 0,a&&isIterateeCall(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),t=Object(t);++o-1}function listCacheSet(e,t){var n=this.__data__,o=assocIndexOf(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}function ListCache(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t(e.GET="GET",e.POST="POST",e))(RequestMethodsEnum||{}),RequestCodeEnum=(e=>(e[e.SUCCESS=200]="SUCCESS",e[e.FAILED=300]="FAILED",e[e.PARAMS_VALID_ERROR=310]="PARAMS_VALID_ERROR",e[e.PARAMS_TYPE_ERROR=311]="PARAMS_TYPE_ERROR",e[e.REQUEST_METHOD_ERROR=312]="REQUEST_METHOD_ERROR",e[e.ASSERT_ARGUMENT_ERROR=313]="ASSERT_ARGUMENT_ERROR",e[e.ASSERT_MYBATIS_ERROR=314]="ASSERT_MYBATIS_ERROR",e[e.LOGIN_ACCOUNT_ERROR=330]="LOGIN_ACCOUNT_ERROR",e[e.LOGIN_DISABLE_ERROR=331]="LOGIN_DISABLE_ERROR",e[e.TOKEN_EMPTY=332]="TOKEN_EMPTY",e[e.TOKEN_INVALID=333]="TOKEN_INVALID",e[e.NO_PERMISSTION=403]="NO_PERMISSTION",e[e.REQUEST_404_ERROR=404]="REQUEST_404_ERROR",e[e.SYSTEM_ERROR=500]="SYSTEM_ERROR",e))(RequestCodeEnum||{});const cancelerMap=new Map,_RequestCancel=class{static createInstance(){var e;return null!=(e=this.instance)?e:this.instance=new _RequestCancel}add(e,t){this.remove(e),cancelerMap.has(e)||cancelerMap.set(e,t)}remove(e){if(cancelerMap.has(e)){const t=cancelerMap.get(e);t&&t.abort(),cancelerMap.delete(e)}}};let RequestCancel=_RequestCancel;__publicField(RequestCancel,"instance");const requestCancel=RequestCancel.createInstance();class HttpRequest{constructor(e){__publicField(this,"options"),this.options=e}get(e,t){return this.request({...e,method:RequestMethodsEnum.GET},t)}post(e,t){return this.request({...e,method:RequestMethodsEnum.POST},t)}async request(e,t){let n=merge$1({},this.options.requestOptions,e);const o=merge$1({},this.options,t),{requestInterceptorsHook:r,responseInterceptorsHook:i,responseInterceptorsCatchHook:a}=o.requestHooks||{};return r&&isFunction$1(r)&&(n=r(e,o)),new Promise(((t,r)=>{const s=request$1({...n,success(e){if(i&&isFunction$1(i))try{e=i(e,o),t(e)}catch(n){r(n)}else t(e)},fail(e){a&&isFunction$1(a)?r(a(e,o)):r(e)},complete(t){"request:fail abort"!==t.errMsg&&requestCancel.remove(e.url)}}),{ignoreCancel:c}=o;!c&&requestCancel.add(e.url,s)}))}}const TOKEN_KEY="token",HISTORY="history",BACK_URL="back_url",cache={key:"app_",set(e,t,n){e=this.getKey(e);let o={expire:n?this.time()+n:"",value:t};"object"==typeof o&&(o=JSON.stringify(o));try{setStorageSync(e,o)}catch(r){return null}},get(e){e=this.getKey(e);try{const t=getStorageSync(e);if(!t)return null;const{value:n,expire:o}=JSON.parse(t);return o&&oMath.round((new Date).getTime()/1e3),remove(e){e=this.getKey(e),removeStorageSync(e)},getKey(e){return this.key+e}};function getToken(){return cache.get(TOKEN_KEY)}function getUserCenter(e){return request.get({url:"/user/center",header:e})}function getUserInfo(){return request.get({url:"/user/info"},{isAuth:!0})}function userEdit(e){return request.post({url:"/user/edit",data:e},{isAuth:!0})}function userBindMobile(e,t){return request.post({url:"/user/bindMobile",data:e,header:t},{isAuth:!0})}function userChangePwd(e){return request.post({url:"/user/changePwd",data:e},{isAuth:!0})}const useUserStore=defineStore({id:"userStore",state:()=>({userInfo:{},token:cache.get(TOKEN_KEY)||null,temToken:null}),getters:{isLogin:e=>!!e.token},actions:{async getUser(){const e=await getUserCenter({token:this.token||this.temToken});this.userInfo=e},login(e){this.token=e,cache.set(TOKEN_KEY,e)},logout(){this.token="",this.userInfo={},cache.remove(TOKEN_KEY)}}}),requestHooks={requestInterceptorsHook(e,t){var n;const{urlPrefix:o,baseUrl:r,withToken:i}=t;e.header=null!=(n=e.header)?n:{},o&&(e.url=`${o}${e.url}`),r&&(e.url=`${r}${e.url}`);const a=getToken();return i&&a&&(e.header.token=a),e},responseInterceptorsHook(e,t){const{isTransformResponse:n,isReturnDefaultResponse:o,isAuth:r}=t;if(o)return e;if(!n)return e.data;const{logout:i}=useUserStore(),{code:a,data:s,msg:c}=e.data;switch(a){case RequestCodeEnum.SUCCESS:return s;case RequestCodeEnum.PARAMS_TYPE_ERROR:case RequestCodeEnum.PARAMS_VALID_ERROR:case RequestCodeEnum.REQUEST_METHOD_ERROR:case RequestCodeEnum.ASSERT_ARGUMENT_ERROR:case RequestCodeEnum.ASSERT_MYBATIS_ERROR:case RequestCodeEnum.LOGIN_ACCOUNT_ERROR:case RequestCodeEnum.LOGIN_DISABLE_ERROR:case RequestCodeEnum.NO_PERMISSTION:case RequestCodeEnum.FAILED:case RequestCodeEnum.SYSTEM_ERROR:return uni.$u.toast(c),Promise.reject(c);case RequestCodeEnum.TOKEN_INVALID:case RequestCodeEnum.TOKEN_EMPTY:return i(),r&&!getToken()&&navigateTo({url:"/pages/login/login"}),Promise.reject();default:return s}}},defaultOptions={requestOptions:{timeout:1e4},baseUrl:"/",isReturnDefaultResponse:!1,isTransformResponse:!0,urlPrefix:"api",ignoreCancel:!1,withToken:!0,isAuth:!1,requestHooks:requestHooks};function createRequest(e){return new HttpRequest(merge$1(defaultOptions,e||{}))}const request=createRequest();function smsSend(e){return request.post({url:"/sms/send",data:e})}function getConfig(){return request.get({url:"/config"})}function getPolicy(e){return request.get({url:"/policy",data:e})}const useAppStore=defineStore({id:"appStore",state:()=>({config:{}}),getters:{getWebsiteConfig:e=>e.config.website||{},getLoginConfig:e=>e.config.login||{},getTabbarConfig:e=>e.config.tabbar||[],getStyleConfig:e=>e.config.style||{},getH5Config:e=>e.config.h5||{}},actions:{getImageUrl(e){return e?`${this.config.domain}${e}`:""},async getConfig(){const e=await getConfig();this.config=e}}});var App_vue_vue_type_style_index_0_lang="";const _sfc_main=defineComponent({__name:"App",setup(e){const t=useAppStore(),{getUser:n}=useUserStore();return onLaunch((async()=>{await t.getConfig();const{status:e,close:o,url:r}=t.getH5Config;if(0==e){if(1==o)return location.href=r;reLaunch({url:"/pages/empty/empty"})}await n()})),()=>{}}});setupApp(_sfc_main);const pinia=createPinia();var pinia$1=e=>{e.use(pinia)},__glob_1_0=Object.freeze(Object.defineProperty({__proto__:null,default:pinia$1},Symbol.toStringTag,{value:"Module"})),mixin={data:()=>({}),onLoad(){this.$u.getRect=this.$uGetRect},methods:{$uGetRect(e,t){return new Promise((n=>{createSelectorQuery().in(this)[t?"selectAll":"select"](e).boundingClientRect((e=>{t&&Array.isArray(e)&&e.length&&n(e),!t&&e&&n(e)})).exec()}))},getParentData(e=""){this.parent||(this.parent=!1),this.parent=this.$u.$parent.call(this,e),this.parent&&(Object.keys(this.parentData).map((e=>{this.parentData[e]=this.parent[e]})),this.parentData.value=this.parent.modelValue)},preventEvent(e){e&&e.stopPropagation&&e.stopPropagation()}},onReachBottom(){$emit("uOnReachBottom")},beforeUnmount(){if(this.parent&&uni.$u.test.array(this.parent.children)){const e=this.parent.children;e.map(((t,n)=>{t===this&&e.splice(n,1)}))}}};function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}function deepClone(e){if([null,void 0,NaN,!1].includes(e))return e;if("object"!=typeof e&&"function"!=typeof e)return e;var t=isArray(e)?[]:{};for(let n in e)e.hasOwnProperty(n)&&(t[n]="object"==typeof e[n]?deepClone(e[n]):e[n]);return t}function deepMerge(e={},t={}){if("object"!=typeof(e=deepClone(e))||"object"!=typeof t)return!1;for(var n in t)t.hasOwnProperty(n)&&(n in e?"object"!=typeof e[n]||"object"!=typeof t[n]?e[n]=t[n]:e[n].concat&&t[n].concat?e[n]=e[n].concat(t[n]):e[n]=deepMerge(e[n],t[n]):e[n]=t[n]);return e}function email(e){return/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/.test(e)}function mobile(e){return/^1[23456789]\d{9}$/.test(e)}function url(e){return/http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-.\/?%&=]*)?/.test(e)}function date(e){return!/Invalid|NaN/.test(new Date(e).toString())}function dateISO(e){return/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)}function number(e){return/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)}function digits(e){return/^\d+$/.test(e)}function idCard(e){return/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/.test(e)}function carNo(e){const t=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/,n=/^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/;return 7===e.length?n.test(e):8===e.length&&t.test(e)}function amount(e){return/^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,2}$/.test(e)}function chinese(e){return/^[\u4e00-\u9fa5]+$/gi.test(e)}function letter(e){return/^[a-zA-Z]*$/.test(e)}function enOrNum(e){return/^[0-9a-zA-Z]*$/g.test(e)}function contains(e,t){return e.indexOf(t)>=0}function range(e,t){return e>=t[0]&&e<=t[1]}function rangeLength(e,t){return e.length>=t[0]&&e.length<=t[1]}function landline(e){return/^\d{3,4}-\d{7,8}(-\d{3,4})?$/.test(e)}function empty(e){switch(typeof e){case"undefined":return!0;case"string":if(0==e.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g,"").length)return!0;break;case"boolean":if(!e)return!0;break;case"number":if(0===e||isNaN(e))return!0;break;case"object":if(null===e||0===e.length)return!0;for(var t in e)return!1;return!0}return!1}function jsonString(e){if("string"==typeof e)try{var t=JSON.parse(e);return!("object"!=typeof t||!t)}catch(n){return!1}return!1}function array(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===Object.prototype.toString.call(e)}function object(e){return"[object Object]"===Object.prototype.toString.call(e)}function code(e,t=6){return new RegExp(`^\\d{${t}}$`).test(e)}var test={email:email,mobile:mobile,url:url,date:date,dateISO:dateISO,number:number,digits:digits,idCard:idCard,carNo:carNo,amount:amount,chinese:chinese,letter:letter,enOrNum:enOrNum,contains:contains,range:range,rangeLength:rangeLength,empty:empty,isEmpty:empty,jsonString:jsonString,landline:landline,object:object,array:array,code:code};class Request{setConfig(e){this.config=deepMerge(this.config,e)}request(e={}){if(this.interceptor.request&&"function"==typeof this.interceptor.request){let t=this.interceptor.request(e);if(!1===t)return new Promise((()=>{}));this.options=t}return e.dataType=e.dataType||this.config.dataType,e.responseType=e.responseType||this.config.responseType,e.url=e.url||"",e.params=e.params||{},e.header=Object.assign({},this.config.header,e.header),e.method=e.method||this.config.method,new Promise(((t,n)=>{e.complete=e=>{if(hideLoading(),clearTimeout(this.config.timer),this.config.timer=null,this.config.originalData)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let o=this.interceptor.response(e);!1!==o?t(o):n(e)}else t(e);else if(200==e.statusCode)if(this.interceptor.response&&"function"==typeof this.interceptor.response){let o=this.interceptor.response(e.data);!1!==o?t(o):n(e.data)}else t(e.data);else n(e)},e.url=test.url(e.url)?e.url:this.config.baseUrl+(0==e.url.indexOf("/")?e.url:"/"+e.url),this.config.showLoading&&!this.config.timer&&(this.config.timer=setTimeout((()=>{showLoading({title:this.config.loadingText,mask:this.config.loadingMask}),this.config.timer=null}),this.config.loadingTime)),request$1(e)}))}constructor(){this.config={baseUrl:"",header:{},method:"POST",dataType:"json",responseType:"text",showLoading:!0,loadingText:"请求中...",loadingTime:800,timer:null,originalData:!1,loadingMask:!0},this.interceptor={request:null,response:null},this.get=(e,t={},n={})=>this.request({method:"GET",url:e,header:n,data:t}),this.post=(e,t={},n={})=>this.request({url:e,method:"POST",header:n,data:t}),this.put=(e,t={},n={})=>this.request({url:e,method:"PUT",header:n,data:t}),this.delete=(e,t={},n={})=>this.request({url:e,method:"DELETE",header:n,data:t})}}var http=new Request;function queryParams(e={},t=!0,n="brackets"){let o=t?"?":"",r=[];-1==["indices","brackets","repeat","comma"].indexOf(n)&&(n="brackets");for(let i in e){let t=e[i];if(!(["",void 0,null].indexOf(t)>=0))if(t.constructor===Array)switch(n){case"indices":for(let n=0;n{r.push(i+"[]="+e)}));break;case"repeat":t.forEach((e=>{r.push(i+"="+e)}));break;case"comma":let e="";t.forEach((t=>{e+=(e?",":"")+t})),r.push(i+"="+e)}else r.push(i+"="+t)}return r.length?o+r.join("&"):""}class Router{constructor(){this.config={type:"navigateTo",url:"",delta:1,params:{},animationType:"pop-in",animationDuration:300,intercept:!1},this.route=this.route.bind(this)}addRootPath(e){return"/"===e[0]?e:`/${e}`}mixinParam(e,t){e=e&&this.addRootPath(e);let n="";return/.*\/.*\?.*=.*/.test(e)?(n=uni.$u.queryParams(t,!1),e+"&"+n):(n=uni.$u.queryParams(t),e+n)}async route(e={},t={}){let n={};if("string"==typeof e?(n.url=this.mixinParam(e,t),n.type="navigateTo"):(n=uni.$u.deepClone(e,this.config),n.url=this.mixinParam(e.url,e.params)),t.intercept&&(this.config.intercept=t.intercept),n.params=t,n=uni.$u.deepMerge(this.config,n),"function"==typeof uni.$u.routeIntercept){await new Promise(((e,t)=>{uni.$u.routeIntercept(n,e)}))&&this.openPage(n)}else this.openPage(n)}openPage(e){const{url:t,type:n,delta:o,animationType:r,animationDuration:i}=e;"navigateTo"!=e.type&&"to"!=e.type||navigateTo({url:t,animationType:r,animationDuration:i}),"redirectTo"!=e.type&&"redirect"!=e.type||redirectTo({url:t}),"switchTab"!=e.type&&"tab"!=e.type||switchTab({url:t}),"reLaunch"!=e.type&&"launch"!=e.type||reLaunch({url:t}),"navigateBack"!=e.type&&"back"!=e.type||navigateBack({delta:o})}}var route=(new Router).route;function timeFormat(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let n,o=new Date(e),r={"y+":o.getFullYear().toString(),"m+":(o.getMonth()+1).toString(),"d+":o.getDate().toString(),"h+":o.getHours().toString(),"M+":o.getMinutes().toString(),"s+":o.getSeconds().toString()};for(let i in r)n=new RegExp("("+i+")").exec(t),n&&(t=t.replace(n[1],1==n[1].length?r[i]:r[i].padStart(n[1].length,"0")));return t}function timeFrom(e=null,t="yyyy-mm-dd"){e||(e=Number(new Date)),10==e.toString().length&&(e*=1e3);let n=+new Date(Number(e)),o=(Number(new Date)-n)/1e3,r="";switch(!0){case o<300:r="刚刚";break;case o>=300&&o<3600:r=parseInt(o/60)+"分钟前";break;case o>=3600&&o<86400:r=parseInt(o/3600)+"小时前";break;case o>=86400&&o<2592e3:r=parseInt(o/86400)+"天前";break;default:r=!1===t?o>=2592e3&&o<31536e3?parseInt(o/2592e3)+"个月前":parseInt(o/31536e3)+"年前":timeFormat(n,t)}return r}function colorGradient(e="rgb(0, 0, 0)",t="rgb(255, 255, 255)",n=10){let o=hexToRgb(e,!1),r=o[0],i=o[1],a=o[2],s=hexToRgb(t,!1),c=(s[0]-r)/n,l=(s[1]-i)/n,u=(s[2]-a)/n,d=[];for(let f=0;fNumber(e)))}return e}function rgbToHex(e){let t=e;if(/^(rgb|RGB)/.test(t)){let e=t.replace(/(?:\(|\)|rgb|RGB)*/g,"").split(","),n="#";for(let t=0;t=e)return String(n);let o=e-n.length,r=Math.ceil(o/t.length);for(;r>>=1;)t+=t,1===r&&(t+=t);return t.slice(0,o)+n});var colorGradient$1={colorGradient:colorGradient,hexToRgb:hexToRgb,rgbToHex:rgbToHex,colorToRgba:colorToRgba};function guid(e=32,t=!0,n=null){let o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),r=[];if(n=n||o.length,e)for(let i=0;iMath.random()-.5))}function addUnit(e="auto",t="rpx"){return e=String(e),test.number(e)?`${e}${t}`:e}function random(e,t){if(e>=0&&t>0&&t>=e){let n=t-e+1;return Math.floor(Math.random()*n+e)}return 0}function trim(e,t="both"){return"both"==t?e.replace(/^\s+|\s+$/g,""):"left"==t?e.replace(/^\s*/,""):"right"==t?e.replace(/(\s*$)/g,""):"all"==t?e.replace(/\s+/g,""):e}function toast(e,t=1500){showToast({title:e,icon:"none",duration:t})}function getParent(e,t){let n=this.$parent;for(;n;){if(n.$options.name===e){let e={};if(Array.isArray(t))t.map((t=>{e[t]=n[t]?n[t]:""}));else for(let o in t)Array.isArray(t[o])?t[o].length?e[o]=t[o]:e[o]=n[o]:t[o].constructor===Object?Object.keys(t[o]).length?e[o]=t[o]:e[o]=n[o]:e[o]=t[o]||!1===t[o]?t[o]:n[o];return e}n=n.$parent}return{}}function $parent(e){let t=this.$parent;for(;t;){if(!t.$options||t.$options.name===e)return t;t=t.$parent}return!1}function os(){return getSystemInfoSync().platform}function sys(){return getSystemInfoSync()}let timeout=null;function debounce(e,t=500,n=!1){if(null!==timeout&&clearTimeout(timeout),n){var o=!timeout;timeout=setTimeout((function(){timeout=null}),t),o&&"function"==typeof e&&e()}else timeout=setTimeout((function(){"function"==typeof e&&e()}),t)}let timeoutArr=[],flagArr=[];function throttle(e,t=500,n=!0,o="default"){timeoutArr[o]||(timeoutArr[o]=null),n?flagArr[o]||(flagArr[o]=!0,"function"==typeof e&&e(),timeoutArr[o]=setTimeout((()=>{flagArr[o]=!1}),t)):flagArr[o]||(flagArr[o]=!0,timeoutArr[o]=setTimeout((()=>{flagArr[o]=!1,"function"==typeof e&&e()}),t))}let version="1.10.1";var config={v:version,version:version,type:["primary","success","info","error","warning"]},zIndex={toast:10090,noNetwork:10080,popup:10075,mask:10070,navbar:980,topTips:975,sticky:970,indexListSticky:965};function wranning(e){}const $u={queryParams:queryParams,route:route,timeFormat:timeFormat,date:timeFormat,timeFrom:timeFrom,colorGradient:colorGradient$1.colorGradient,colorToRgba:colorGradient$1.colorToRgba,guid:guid,color:color,sys:sys,os:os,type2icon:type2icon,randomArray:randomArray,wranning:wranning,get:http.get,post:http.post,put:http.put,delete:http.delete,hexToRgb:colorGradient$1.hexToRgb,rgbToHex:colorGradient$1.rgbToHex,test:test,random:random,deepClone:deepClone,deepMerge:deepMerge,getParent:getParent,$parent:$parent,addUnit:addUnit,trim:trim,type:["primary","success","error","warning","info"],http:http,toast:toast,config:config,zIndex:zIndex,debounce:debounce,throttle:throttle};uni.$u=$u;const install=e=>{e.mixin(mixin),e.config.globalProperties.$u=$u};var uView={install:install},uview=e=>{e.use(uView)},__glob_1_1=Object.freeze(Object.defineProperty({__proto__:null,default:uview},Symbol.toStringTag,{value:"Module"})),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vconsole_min={exports:{}}; /*! * vConsole v3.14.6 (https://github.com/Tencent/vConsole) * @@ -17,4 +17,4 @@ var __defProp=Object.defineProperty,__defNormalProp=(e,t,n)=>t in e?__defProp(e, * Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at * http://opensource.org/licenses/MIT * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - */(function(module,exports){var n;commonjsGlobal||self,n=function(){return function(){var __webpack_modules__={4264:function(e,t,n){e.exports=n(7588)},5036:function(e,t,n){n(1719),n(5677),n(6394),n(5334),n(6969),n(2021),n(8328),n(2129);var o=n(1287);e.exports=o.Promise},2582:function(e,t,n){n(1646),n(6394),n(2004),n(462),n(8407),n(2429),n(1172),n(8288),n(1274),n(8201),n(6626),n(3211),n(9952),n(15),n(9831),n(7521),n(2972),n(6956),n(5222),n(2257);var o=n(1287);e.exports=o.Symbol},8257:function(e,t,n){var o=n(7583),r=n(9212),i=n(5637),a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a function")}},1186:function(e,t,n){var o=n(7583),r=n(2097),i=n(5637),a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not a constructor")}},9882:function(e,t,n){var o=n(7583),r=n(9212),i=o.String,a=o.TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw a("Can't set "+i(e)+" as a prototype")}},6288:function(e,t,n){var o=n(3649),r=n(3590),i=n(4615),a=o("unscopables"),s=Array.prototype;null==s[a]&&i.f(s,a,{configurable:!0,value:r(null)}),e.exports=function(e){s[a][e]=!0}},4761:function(e,t,n){var o=n(7583),r=n(2447),i=o.TypeError;e.exports=function(e,t){if(r(t,e))return e;throw i("Incorrect invocation")}},2569:function(e,t,n){var o=n(7583),r=n(794),i=o.String,a=o.TypeError;e.exports=function(e){if(r(e))return e;throw a(i(e)+" is not an object")}},5766:function(e,t,n){var o=n(2977),r=n(6782),i=n(1825),a=function(e){return function(t,n,a){var s,c=o(t),l=i(c),u=r(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},4805:function(e,t,n){var o=n(2938),r=n(7386),i=n(5044),a=n(1324),s=n(1825),c=n(4822),l=r([].push),u=function(e){var t=1==e,n=2==e,r=3==e,u=4==e,d=6==e,f=7==e,p=5==e||d;return function(h,g,m,v){for(var _,y,b=a(h),w=i(b),T=o(g,m),E=s(w),S=0,C=v||c,O=t?C(h,E):n||f?C(h,0):void 0;E>S;S++)if((p||S in w)&&(y=T(_=w[S],S,b),e))if(t)O[S]=y;else if(y)switch(e){case 3:return!0;case 5:return _;case 6:return S;case 2:l(O,_)}else switch(e){case 4:return!1;case 7:l(O,_)}return d?-1:r||u?u:O}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9269:function(e,t,n){var o=n(6544),r=n(3649),i=n(4061),a=r("species");e.exports=function(e){return i>=51||!o((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},4546:function(e,t,n){var o=n(7583),r=n(6782),i=n(1825),a=n(5999),s=o.Array,c=Math.max;e.exports=function(e,t,n){for(var o=i(e),l=r(t,o),u=r(void 0===n?o:n,o),d=s(c(u-l,0)),f=0;l0&&o[0]<4?1:+(o[0]+o[1])),!r&&a&&(!(o=a.match(/Edge\/(\d+)/))||o[1]>=74)&&(o=a.match(/Chrome\/(\d+)/))&&(r=+o[1]),e.exports=r},5690:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1178:function(e,t,n){var o=n(6544),r=n(4677);e.exports=!o((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)}))},7263:function(e,t,n){var o=n(7583),r=n(6683).f,i=n(57),a=n(1270),s=n(460),c=n(3478),l=n(4451);e.exports=function(e,t){var n,u,d,f,p,h=e.target,g=e.global,m=e.stat;if(n=g?o:m?o[h]||s(h,{}):(o[h]||{}).prototype)for(u in t){if(f=t[u],d=e.noTargetGet?(p=r(n,u))&&p.value:n[u],!l(g?u:h+(m?".":"#")+u,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,u,f,e)}}},6544:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},1611:function(e,t,n){var o=n(8987),r=Function.prototype,i=r.apply,a=r.call;e.exports="object"==typeof Reflect&&Reflect.apply||(o?a.bind(i):function(){return a.apply(i,arguments)})},2938:function(e,t,n){var o=n(7386),r=n(8257),i=n(8987),a=o(o.bind);e.exports=function(e,t){return r(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},8987:function(e,t,n){var o=n(6544);e.exports=!o((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8262:function(e,t,n){var o=n(8987),r=Function.prototype.call;e.exports=o?r.bind(r):function(){return r.apply(r,arguments)}},4340:function(e,t,n){var o=n(8494),r=n(2870),i=Function.prototype,a=o&&Object.getOwnPropertyDescriptor,s=r(i,"name"),c=s&&"something"===function(){}.name,l=s&&(!o||o&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},7386:function(e,t,n){var o=n(8987),r=Function.prototype,i=r.bind,a=r.call,s=o&&i.bind(a,a);e.exports=o?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},5897:function(e,t,n){var o=n(7583),r=n(9212),i=function(e){return r(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(o[e]):o[e]&&o[e][t]}},8272:function(e,t,n){var o=n(3058),r=n(911),i=n(339),a=n(3649)("iterator");e.exports=function(e){if(null!=e)return r(e,a)||r(e,"@@iterator")||i[o(e)]}},6307:function(e,t,n){var o=n(7583),r=n(8262),i=n(8257),a=n(2569),s=n(5637),c=n(8272),l=o.TypeError;e.exports=function(e,t){var n=arguments.length<2?c(e):t;if(i(n))return a(r(n,e));throw l(s(e)+" is not iterable")}},911:function(e,t,n){var o=n(8257);e.exports=function(e,t){var n=e[t];return null==n?void 0:o(n)}},7583:function(e,t,n){var o=function(e){return e&&e.Math==Math&&e};e.exports=o("object"==typeof globalThis&&globalThis)||o("object"==typeof window&&window)||o("object"==typeof self&&self)||o("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2870:function(e,t,n){var o=n(7386),r=n(1324),i=o({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(r(e),t)}},4639:function(e){e.exports={}},2716:function(e,t,n){var o=n(7583);e.exports=function(e,t){var n=o.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},482:function(e,t,n){var o=n(5897);e.exports=o("document","documentElement")},275:function(e,t,n){var o=n(8494),r=n(6544),i=n(6668);e.exports=!o&&!r((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},5044:function(e,t,n){var o=n(7583),r=n(7386),i=n(6544),a=n(9624),s=o.Object,c=r("".split);e.exports=i((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?c(e,""):s(e)}:s},9734:function(e,t,n){var o=n(7386),r=n(9212),i=n(1314),a=o(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},4402:function(e,t,n){var o=n(794),r=n(57);e.exports=function(e,t){o(t)&&"cause"in t&&r(e,"cause",t.cause)}},2743:function(e,t,n){var o,r,i,a=n(9491),s=n(7583),c=n(7386),l=n(794),u=n(57),d=n(2870),f=n(1314),p=n(9137),h=n(4639),g="Object already initialized",m=s.TypeError,v=s.WeakMap;if(a||f.state){var _=f.state||(f.state=new v),y=c(_.get),b=c(_.has),w=c(_.set);o=function(e,t){if(b(_,e))throw new m(g);return t.facade=e,w(_,e,t),t},r=function(e){return y(_,e)||{}},i=function(e){return b(_,e)}}else{var T=p("state");h[T]=!0,o=function(e,t){if(d(e,T))throw new m(g);return t.facade=e,u(e,T,t),t},r=function(e){return d(e,T)?e[T]:{}},i=function(e){return d(e,T)}}e.exports={set:o,get:r,has:i,enforce:function(e){return i(e)?r(e):o(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw m("Incompatible receiver, "+e+" required");return n}}}},114:function(e,t,n){var o=n(3649),r=n(339),i=o("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},4521:function(e,t,n){var o=n(9624);e.exports=Array.isArray||function(e){return"Array"==o(e)}},9212:function(e){e.exports=function(e){return"function"==typeof e}},2097:function(e,t,n){var o=n(7386),r=n(6544),i=n(9212),a=n(3058),s=n(5897),c=n(9734),l=function(){},u=[],d=s("Reflect","construct"),f=/^\s*(?:class|function)\b/,p=o(f.exec),h=!f.exec(l),g=function(e){if(!i(e))return!1;try{return d(l,u,e),!0}catch(t){return!1}},m=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!p(f,c(e))}catch(t){return!0}};m.sham=!0,e.exports=!d||r((function(){var e;return g(g.call)||!g(Object)||!g((function(){e=!0}))||e}))?m:g},4451:function(e,t,n){var o=n(6544),r=n(9212),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==u||n!=l&&(r(t)?o(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},794:function(e,t,n){var o=n(9212);e.exports=function(e){return"object"==typeof e?null!==e:o(e)}},6268:function(e){e.exports=!1},5871:function(e,t,n){var o=n(7583),r=n(5897),i=n(9212),a=n(2447),s=n(7786),c=o.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return i(t)&&a(t.prototype,c(e))}},4026:function(e,t,n){var o=n(7583),r=n(2938),i=n(8262),a=n(2569),s=n(5637),c=n(114),l=n(1825),u=n(2447),d=n(6307),f=n(8272),p=n(7093),h=o.TypeError,g=function(e,t){this.stopped=e,this.result=t},m=g.prototype;e.exports=function(e,t,n){var o,v,_,y,b,w,T,E=n&&n.that,S=!(!n||!n.AS_ENTRIES),C=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),I=r(t,E),A=function(e){return o&&p(o,"normal",e),new g(!0,e)},x=function(e){return S?(a(e),O?I(e[0],e[1],A):I(e[0],e[1])):O?I(e,A):I(e)};if(C)o=e;else{if(!(v=f(e)))throw h(s(e)+" is not iterable");if(c(v)){for(_=0,y=l(e);y>_;_++)if((b=x(e[_]))&&u(m,b))return b;return new g(!1)}o=d(e,v)}for(w=o.next;!(T=i(w,o)).done;){try{b=x(T.value)}catch(P){p(o,"throw",P)}if("object"==typeof b&&b&&u(m,b))return b}return new g(!1)}},7093:function(e,t,n){var o=n(8262),r=n(2569),i=n(911);e.exports=function(e,t,n){var a,s;r(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=o(a,e)}catch(c){s=!0,a=c}if("throw"===t)throw n;if(s)throw a;return r(a),n}},2365:function(e,t,n){var o,r,i,a=n(6544),s=n(9212),c=n(3590),l=n(729),u=n(1270),d=n(3649),f=n(6268),p=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(r=l(l(i)))!==Object.prototype&&(o=r):h=!0),null==o||a((function(){var e={};return o[p].call(e)!==e}))?o={}:f&&(o=c(o)),s(o[p])||u(o,p,(function(){return this})),e.exports={IteratorPrototype:o,BUGGY_SAFARI_ITERATORS:h}},339:function(e){e.exports={}},1825:function(e,t,n){var o=n(97);e.exports=function(e){return o(e.length)}},2095:function(e,t,n){var o,r,i,a,s,c,l,u,d=n(7583),f=n(2938),p=n(6683).f,h=n(8117).set,g=n(7020),m=n(3256),v=n(6846),_=n(5354),y=d.MutationObserver||d.WebKitMutationObserver,b=d.document,w=d.process,T=d.Promise,E=p(d,"queueMicrotask"),S=E&&E.value;S||(o=function(){var e,t;for(_&&(e=w.domain)&&e.exit();r;){t=r.fn,r=r.next;try{t()}catch(n){throw r?a():i=void 0,n}}i=void 0,e&&e.enter()},g||_||v||!y||!b?!m&&T&&T.resolve?((l=T.resolve(void 0)).constructor=T,u=f(l.then,l),a=function(){u(o)}):_?a=function(){w.nextTick(o)}:(h=f(h,d),a=function(){h(o)}):(s=!0,c=b.createTextNode(""),new y(o).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),e.exports=S||function(e){var t={fn:e,next:void 0};i&&(i.next=t),r||(r=t,a()),i=t}},783:function(e,t,n){var o=n(7583);e.exports=o.Promise},8640:function(e,t,n){var o=n(4061),r=n(6544);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&o&&o<41}))},9491:function(e,t,n){var o=n(7583),r=n(9212),i=n(9734),a=o.WeakMap;e.exports=r(a)&&/native code/.test(i(a))},5084:function(e,t,n){var o=n(8257),r=function(e){var t,n;this.promise=new e((function(e,o){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=o})),this.resolve=o(t),this.reject=o(n)};e.exports.f=function(e){return new r(e)}},2764:function(e,t,n){var o=n(8320);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:o(e)}},3590:function(e,t,n){var o,r=n(2569),i=n(8728),a=n(5690),s=n(4639),c=n(482),l=n(6668),u=n(9137)("IE_PROTO"),d=function(){},f=function(e){return" +