diff --git a/assets/index-It-40-XE.js b/assets/index-BWvsB30X.js similarity index 99% rename from assets/index-It-40-XE.js rename to assets/index-BWvsB30X.js index 6a6b822..bc45b6f 100644 --- a/assets/index-It-40-XE.js +++ b/assets/index-BWvsB30X.js @@ -1,6 +1,6 @@ function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { - __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.DEN-0J-q.js","assets/mp-html.CQ6RgAWO.js","assets/mp-html-CsPoo5Bx.css","assets/index-CYS8vZ6_.css","assets/pages-profile-profile.Dv32a-pg.js","assets/profile-CZI5GXcS.css","assets/pages-content-content.BEW7Y1IX.js","assets/content-s-PJrTly.css","assets/pages-verify-verify.BFZit7FK.js","assets/verify-CzB8eXhH.css","assets/pages-change-phone-change-phone.8e8zFjnI.js","assets/change-phone-CBzPLWjD.css","assets/pages-myinfo-myinfo.Cciv1UjO.js","assets/myinfo-BiJ6OEVj.css","assets/pages-sample-info-sample-info.DMi3sFSw.js","assets/sample-info-DehN2RWe.css","assets/pages-sign-sign.Dru0J10w.js","assets/sign-D80Me7Kz.css","assets/pages-sign-signature.DegrS7tt.js","assets/signature-CFcZYyB-.css","assets/pages-message-message.CjW1WfAY.js","assets/message-s3E87Swj.css","assets/pages-message-detail.Bx7HA25L.js","assets/detail-ClFReiwk.css","assets/pages-login-index.DWprkVG5.js","assets/index-BIb62gPM.css"] + __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.Cjsjec8Z.js","assets/mp-html.pEJ-Us3z.js","assets/mp-html-CsPoo5Bx.css","assets/index-CYS8vZ6_.css","assets/pages-profile-profile.Dj2wm2ux.js","assets/profile-CZI5GXcS.css","assets/pages-content-content.DFTmwNN_.js","assets/content-s-PJrTly.css","assets/pages-verify-verify.CZTPsAba.js","assets/verify-CzB8eXhH.css","assets/pages-change-phone-change-phone.DXBpVM3_.js","assets/change-phone-CBzPLWjD.css","assets/pages-myinfo-myinfo.k9hfhPK2.js","assets/myinfo-B2RPLYA3.css","assets/pages-sample-info-sample-info.BNuLRRIh.js","assets/sample-info-DehN2RWe.css","assets/pages-sign-sign.CA-2zWs9.js","assets/sign-D80Me7Kz.css","assets/pages-sign-signature.Ct0cj36K.js","assets/signature-CFcZYyB-.css","assets/pages-message-message.BJp6W42t.js","assets/message-s3E87Swj.css","assets/pages-message-detail.CyaX1Scx.js","assets/detail-ClFReiwk.css","assets/pages-login-index.5t7w5yVS.js","assets/index-BIb62gPM.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } @@ -22,7 +22,7 @@ function r(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()) * vue-router v4.4.4 * (c) 2024 Eduardo San Martin Morote * @license MIT - */(e);if(!o)return;const i=t._component;v(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const js="undefined"!=typeof document;function Hs(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const Fs=Object.assign;function Vs(e,t){const n={};for(const o in t){const i=t[o];n[o]=Us(i)?i.map(e):e(i)}return n}const Ws=()=>{},Us=Array.isArray,qs=/#/g,Qs=/&/g,Ys=/\//g,Gs=/=/g,Xs=/\?/g,Ks=/\+/g,Js=/%5B/g,Zs=/%5D/g,ea=/%5E/g,ta=/%60/g,na=/%7B/g,oa=/%7C/g,ia=/%7D/g,ra=/%20/g;function sa(e){return encodeURI(""+e).replace(oa,"|").replace(Js,"[").replace(Zs,"]")}function aa(e){return sa(e).replace(Ks,"%2B").replace(ra,"+").replace(qs,"%23").replace(Qs,"%26").replace(ta,"`").replace(na,"{").replace(ia,"}").replace(ea,"^")}function la(e){return null==e?"":function(e){return sa(e).replace(qs,"%23").replace(Xs,"%3F")}(e).replace(Ys,"%2F")}function ca(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const ua=/\/$/;function da(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),i=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,s,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:ca(s)}}function ha(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function pa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ma(e[n],t[n]))return!1;return!0}function ma(e,t){return Us(e)?ga(e,t):Us(t)?ga(t,e):e===t}function ga(e,t){return Us(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const ya={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ba,va,_a,wa;function xa(e){if(!e)if(js){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ua,"")}(va=ba||(ba={})).pop="pop",va.push="push",(wa=_a||(_a={})).back="back",wa.forward="forward",wa.unknown="";const Sa=/^[^#]+#/;function ka(e,t){return e.replace(Sa,"#")+t}const Ca=()=>({left:window.scrollX,top:window.scrollY});function Aa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Ia=new Map;function Ba(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),ha(n,"")}return ha(n,e)+o+i}function Ea(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Ca():null}}function Pa(e){const{history:t,location:n}=window,o={value:Ba(e,n)},i={value:t.state};function r(o,r,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const s=Fs({},i.value,t.state,{forward:e,scroll:Ca()});r(s.current,s,!0),r(e,Fs({},Ea(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){r(e,Fs({},t.state,Ea(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function za(e){const t=Pa(e=xa(e)),n=function(e,t,n,o){let i=[],r=[],s=null;const a=({state:r})=>{const a=Ba(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=a,t.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else o(a);i.forEach((e=>{e(n.value,l,{delta:u,type:ba.pop,direction:u?u>0?_a.forward:_a.back:_a.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Fs({},e.state,{scroll:Ca()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=Fs({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:ka.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 Ma(e){return"string"==typeof e||"symbol"==typeof e}const Oa=Symbol("");var Ra,La;function Na(e,t){return Fs(new Error,{type:e,[Oa]:!0},t)}function Da(e,t){return e instanceof Error&&Oa in e&&(null==t||!!(e.type&t))}(La=Ra||(Ra={}))[La.aborted=4]="aborted",La[La.cancelled=8]="cancelled",La[La.duplicated=16]="duplicated";const $a={sensitive:!1,strict:!1,start:!0,end:!0},ja=/[.+*?^${}()[\]/\\]/g;function Ha(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Fa(e,t){let n=0;const o=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Wa={type:0,value:""},Ua=/[a-zA-Z0-9_]/;function qa(e,t,n){const o=function(e,t){const n=Fs({},$a,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l{r(h)}:Ws}function r(e){if(Ma(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;Fa(e,t[i])<0?o=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(Za(t)&&0===Fa(e,t))return t;return}(e);i&&(o=t.lastIndexOf(i,o-1));return o}(e,n);n.splice(t,0,e),e.record.name&&!Xa(e)&&o.set(e.record.name,e)}return t=Ja({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,r,s,a={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw Na(1,{location:e});s=i.record.name,a=Fs(Ya(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Ya(e.params,i.keys.map((e=>e.name)))),r=i.stringify(a)}else if(null!=e.path)r=e.path,i=n.find((e=>e.re.test(r))),i&&(a=i.parse(r),s=i.record.name);else{if(i=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw Na(1,{location:e,currentLocation:t});s=i.record.name,a=Fs({},t.params,e.params),r=i.stringify(a)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:r,params:a,matched:l,meta:Ka(l)}},removeRoute:r,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Ya(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ga(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Xa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ka(e){return e.reduce(((e,t)=>Fs(e,t.meta)),{})}function Ja(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Za({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function el(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&aa(e))):[o&&aa(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function nl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Us(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const ol=Symbol(""),il=Symbol(""),rl=Symbol(""),sl=Symbol(""),al=Symbol("");function ll(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function cl(e,t,n,o,i,r=(e=>e())){const s=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var r;!1===e?l(Na(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(Na(2,{from:t,to:e})):(s&&o.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),a())},u=r((()=>e.call(o&&o.instances[i],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function ul(e,t,n,o,i=(e=>e())){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(Hs(a)){const l=(a.__vccOpts||a)[t];l&&r.push(cl(l,n,o,s,e,i))}else{let l=a();r.push((()=>l.then((r=>{if(!r)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const a=(l=r).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&Hs(l.default)?r.default:r;var l;s.mods[e]=r,s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&cl(c,n,o,s,e,i)()}))))}}return r}function dl(e){const t=Ei(rl),n=Ei(sl),o=$r((()=>{const n=gn(e.to);return t.resolve(n)})),i=$r((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const s=r.findIndex(pa.bind(null,i));if(s>-1)return s;const a=pl(e[t-2]);return t>1&&pl(i)===a&&r[r.length-1].path!==a?r.findIndex(pa.bind(null,e[t-2])):s})),r=$r((()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!Us(i)||i.length!==o.length||o.some(((e,t)=>e!==i[t])))return!1}return!0}(n.params,o.value.params))),s=$r((()=>i.value>-1&&i.value===n.matched.length-1&&fa(n.params,o.value.params)));return{route:o,href:$r((()=>o.value.href)),isActive:r,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[gn(e.replace)?"replace":"push"](gn(e.to)).catch(Ws):Promise.resolve()}}}const hl=Eo({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:dl,setup(e,{slots:t}){const n=Gt(dl(e)),{options:o}=Ei(rl),i=$r((()=>({[fl(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[fl(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:jr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function pl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fl=(e,t,n)=>null!=e?e:null!=t?t:n,ml=Eo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ei(al),i=$r((()=>e.route||o.value)),r=Ei(il,0),s=$r((()=>{let e=gn(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=$r((()=>i.value.matched[s.value]));Bi(il,$r((()=>s.value+1))),Bi(ol,a),Bi(al,i);const l=hn();return ho((()=>[l.value,a.value,e.name]),(([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&pa(t,i)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=i.value,r=e.name,s=a.value,c=s&&s.components[r];if(!c)return gl(n.default,{Component:c,route:o});const u=s.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,h=jr(c,Fs({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[r]=null)},ref:l}));return gl(n.default,{Component:h,route:o})||h}}});function gl(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const yl=ml;function bl(e){const t=Qa(e.routes,e),n=e.parseQuery||el,o=e.stringifyQuery||tl,i=e.history,r=ll(),s=ll(),a=ll(),l=pn(ya);let c=ya;js&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vs.bind(null,(e=>""+e)),d=Vs.bind(null,la),h=Vs.bind(null,ca);function p(e,r){if(r=Fs({},r||l.value),"string"==typeof e){const o=da(n,e,r.path),s=t.resolve({path:o.path},r),a=i.createHref(o.fullPath);return Fs(o,s,{params:h(s.params),hash:ca(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=Fs({},e,{path:da(n,e.path,r.path).path});else{const t=Fs({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Fs({},e,{params:d(t)}),r.params=d(r.params)}const a=t.resolve(s,r),c=e.hash||"";a.params=u(h(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Fs({},e,{hash:(f=c,sa(f).replace(na,"{").replace(ia,"}").replace(ea,"^")),path:a.path}));var f;const m=i.createHref(p);return Fs({fullPath:p,hash:c,query:o===tl?nl(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?da(n,e,l.value.path):Fs({},e)}function m(e,t){if(c!==e)return Na(8,{from:t,to:e})}function g(e){return b(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),Fs({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function b(e,t){const n=c=p(e),i=l.value,r=e.state,s=e.force,a=!0===e.replace,u=y(n);if(u)return b(Fs(f(u),{state:"object"==typeof u?Fs({},r,u.state):r,force:s,replace:a}),t||n);const d=n;let h;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&pa(t.matched[o],n.matched[i])&&fa(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(h=Na(16,{to:d,from:i}),P(i,i,!0,!1)),(h?Promise.resolve(h):w(d,i)).catch((e=>Da(e)?Da(e,2)?e:E(e):B(e,d,i))).then((e=>{if(e){if(Da(e,2))return b(Fs({replace:a},f(e.to),{state:"object"==typeof e.to?Fs({},r,e.to.state):r,force:s}),t||d)}else e=S(d,i,!0,a,r);return x(d,i,e),e}))}function v(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=O.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,a]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;spa(e,r)))?o.push(r):n.push(r));const a=e.matched[s];a&&(t.matched.find((e=>pa(e,a)))||i.push(a))}return[n,o,i]}(e,t);n=ul(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(cl(o,e,t))}));const l=v.bind(null,e,t);return n.push(l),L(n).then((()=>{n=[];for(const o of r.list())n.push(cl(o,e,t));return n.push(l),L(n)})).then((()=>{n=ul(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach((o=>{n.push(cl(o,e,t))}));return n.push(l),L(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(Us(o.beforeEnter))for(const i of o.beforeEnter)n.push(cl(i,e,t));else n.push(cl(o.beforeEnter,e,t));return n.push(l),L(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ul(a,"beforeRouteEnter",e,t,_),n.push(l),L(n)))).then((()=>{n=[];for(const o of s.list())n.push(cl(o,e,t));return n.push(l),L(n)})).catch((e=>Da(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>_((()=>o(e,t,n)))))}function S(e,t,n,o,r){const s=m(e,t);if(s)return s;const a=t===ya,c=js?history.state:{};n&&(o||a?i.replace(e.fullPath,Fs({scroll:a&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,P(e,t,n,a),E()}let k;function C(){k||(k=i.listen(((e,t,n)=>{if(!R.listening)return;const o=p(e),r=y(o);if(r)return void b(Fs(r,{replace:!0}),o).catch(Ws);c=o;const s=l.value;var a,u;js&&(a=Ta(s.fullPath,n.delta),u=Ca(),Ia.set(a,u)),w(o,s).catch((e=>Da(e,12)?e:Da(e,2)?(b(e.to,o).then((e=>{Da(e,20)&&!n.delta&&n.type===ba.pop&&i.go(-1,!1)})).catch(Ws),Promise.reject()):(n.delta&&i.go(-n.delta,!1),B(e,o,s)))).then((e=>{(e=e||S(o,s,!1))&&(n.delta&&!Da(e,8)?i.go(-n.delta,!1):n.type===ba.pop&&Da(e,20)&&i.go(-1,!1)),x(o,s,e)})).catch(Ws)})))}let A,T=ll(),I=ll();function B(e,t,n){E(e);const o=I.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function E(e){return A||(A=!e,C(),T.list().forEach((([t,n])=>e?n(e):t())),T.reset()),e}function P(t,n,o,i){const{scrollBehavior:r}=e;if(!js||!r)return Promise.resolve();const s=!o&&function(e){const t=Ia.get(e);return Ia.delete(e),t}(Ta(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return Ln().then((()=>r(t,n,s))).then((e=>e&&Aa(e))).catch((e=>B(e,t,n)))}const z=e=>i.go(e);let M;const O=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return Ma(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(Fs(f(e),{replace:!0}))},go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:I.add,isReady:function(){return A&&l.value!==ya?Promise.resolve():new Promise(((e,t)=>{T.add([e,t])}))},install(e){e.component("RouterLink",hl),e.component("RouterView",yl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>gn(l)}),js&&!M&&l.value===ya&&(M=!0,g(i.location).catch((e=>{})));const t={};for(const o in ya)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(rl,this),e.provide(sl,Xt(t)),e.provide(al,l);const n=e.unmount;O.add(e),e.unmount=function(){O.delete(e),O.size<1&&(c=ya,k&&k(),k=null,l.value=ya,M=!1,A=!1),n()}}};function L(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return R}function vl(e){return Ei(sl)}const _l=["{","}"];const wl=/^(?:\d)+/,xl=/^(?:\w)+/;const Sl=Object.prototype.hasOwnProperty,kl=(e,t)=>Sl.call(e,t),Cl=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=_l){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return i||void 0}class Tl{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||Cl,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Al(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{kl(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Al(t,this.messages))&&(o=this.messages[t]):n=t,kl(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Il(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&zh?zh():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const i=new Tl({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=Jg().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function Bl(e,t){return e.indexOf(t[0])>-1}const El=ve((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Pl;function zl(e){return Bl(e,ie)?Rl().f(e,function(){const e=zh(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ie):e}function Ml(e,t){if(1===t.length){if(e){const n=e=>_(e)&&Bl(e,ie),o=t[0];let i=[];if(g(e)&&(i=e.filter((e=>n(e[o])))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return Ml(e&&e[n],t)}function Ol(e,t){const n=Ml(e,t);if(!n)return!1;const o=t[t.length-1];if(g(n))n.forEach((e=>Ol(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>zl(e),set(t){e=t}})}return!0}function Rl(){if(!Pl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,Pl=Il(e),El()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Pl.add(e,__uniConfig.locales[e]))),Pl.setLocale(e)}}return Pl}function Ll(e,t,n){return t.reduce(((t,o,i)=>(t[e+o]=n[i],t)),{})}const Nl=ve((()=>{const e="uni.async.",t=["error"];Rl().add("en",Ll(e,t,["The connection timed out, click the screen to try again."]),!1),Rl().add("es",Ll(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),Rl().add("fr",Ll(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),Rl().add("zh-Hans",Ll(e,t,["连接服务器超时,点击屏幕重试"]),!1),Rl().add("zh-Hant",Ll(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),Dl=ve((()=>{const e="uni.showToast.",t=["unpaired"];Rl().add("en",Ll(e,t,["Please note showToast must be paired with hideToast"]),!1),Rl().add("es",Ll(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Rl().add("fr",Ll(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),Rl().add("zh-Hans",Ll(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),Rl().add("zh-Hant",Ll(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),$l=ve((()=>{const e="uni.showLoading.",t=["unpaired"];Rl().add("en",Ll(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Rl().add("es",Ll(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Rl().add("fr",Ll(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),Rl().add("zh-Hans",Ll(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),Rl().add("zh-Hant",Ll(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),jl=ve((()=>{const e="uni.showModal.",t=["cancel","confirm"];Rl().add("en",Ll(e,t,["Cancel","OK"]),!1),Rl().add("es",Ll(e,t,["Cancelar","OK"]),!1),Rl().add("fr",Ll(e,t,["Annuler","OK"]),!1),Rl().add("zh-Hans",Ll(e,t,["取消","确定"]),!1),Rl().add("zh-Hant",Ll(e,t,["取消","確定"]),!1)})),Hl=ve((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Rl().add("en",Ll(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Rl().add("es",Ll(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),Rl().add("fr",Ll(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),Rl().add("zh-Hans",Ll(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),Rl().add("zh-Hant",Ll(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),Fl=ve((()=>{const e="uni.setClipboardData.",t=["success","fail"];Rl().add("en",Ll(e,t,["Content copied","Copy failed, please copy manually"]),!1),Rl().add("es",Ll(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),Rl().add("fr",Ll(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),Rl().add("zh-Hans",Ll(e,t,["内容已复制","复制失败,请手动复制"]),!1),Rl().add("zh-Hant",Ll(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Vl=ve((()=>{const e="uni.video.",t=["danmu","volume"];Rl().add("en",Ll(e,t,["Danmu","Volume"]),!1),Rl().add("es",Ll(e,t,["Danmu","Volumen"]),!1),Rl().add("fr",Ll(e,t,["Danmu","Le Volume"]),!1),Rl().add("zh-Hans",Ll(e,t,["弹幕","音量"]),!1),Rl().add("zh-Hant",Ll(e,t,["彈幕","音量"]),!1)}));function Wl(e){const t=new Ne;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}let Ul=1;const ql=Object.create(null);function Ql(e,t){return e+"."+t}function Yl(e,t,n){t=Ql(e,t),ql[t]||(ql[t]=n)}function Gl({id:e,name:t,args:n},o){t=Ql(o,t);const i=t=>{e&&zv.publishHandler("invokeViewApi."+e,t)},r=ql[t];r?r(n,i):i({})}const Xl=h(Wl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=zv,r=n?Ul++:0;n&&o("invokeServiceApi."+r,n,!0),i("invokeServiceApi",{id:r,name:e,args:t})}}),Kl=ke(!0);let Jl;function Zl(){Jl&&(clearTimeout(Jl),Jl=null)}let ec=0,tc=0;function nc(e){if(Zl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];ec=t,tc=n,Jl=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function oc(e){if(!Jl)return;if(1!==e.touches.length)return Zl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-ec)>10||Math.abs(n-tc)>10?Zl():void 0}function ic(e,t){const n=Number(e);return isNaN(n)?t:n}const rc=()=>/^Apple/.test(navigator.vendor);function sc(){const e=__uniConfig.globalStyle||{},t=ic(e.rpxCalcMaxDeviceWidth,960),n=ic(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=rc()&&"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 e?Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n:Math.min(window.innerWidth,document.documentElement.clientWidth)}();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),rc()&&window.addEventListener("orientationchange",(()=>{o(),setTimeout(o,50)}))}function ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lc,cc,uc=["top","left","right","bottom"],dc={};function hc(){return cc="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 pc(){if(cc="string"==typeof cc?cc:hc()){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");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),uc.forEach((function(e){s(o,e)})),document.body.appendChild(o),r(),lc=!0}else uc.forEach((function(e){dc[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function r(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:cc+"(safe-area-inset-"+n+")"};i(o,c),i(s,c),i(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),r((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,i=s.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,i=s.scrollTop,function(e){mc.length||setTimeout((function(){var e={};mc.forEach((function(t){e[t]=dc[t]})),mc.length=0,gc.forEach((function(t){t(e)}))}),0);mc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)}));var u=getComputedStyle(o);Object.defineProperty(dc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function fc(e){return lc||pc(),dc[e]}var mc=[];var gc=[];const yc=ac({get support(){return 0!=("string"==typeof cc?cc:hc()).length},get top(){return fc("top")},get left(){return fc("left")},get right(){return fc("right")},get bottom(){return fc("bottom")},onChange:function(e){hc()&&(lc||pc(),"function"==typeof e&&gc.push(e))},offChange:function(e){var t=gc.indexOf(e);t>=0&&gc.splice(t,1)}}),bc=Ls((()=>{}),["prevent"]),vc=Ls((e=>{}),["stop"]);function _c(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function wc(){const e=_c(document.documentElement.style,"--window-top");return e?e+yc.top:0}function xc(){const e=document.documentElement.style,t=wc(),n=_c(e,"--window-bottom"),o=_c(e,"--window-left"),i=_c(e,"--window-right"),r=_c(e,"--top-window-height");return{top:t,bottom:n?n+yc.bottom:0,left:o?o+yc.left:0,right:i?i+yc.right:0,topWindowHeight:r||0}}function Sc(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function kc(e){return Sc(e)}function Cc(e){return Symbol(e)}function Ac(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Tc(e,t=!1){if(t)return function(e){if(!Ac(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>zd(parseFloat(t))+"px"))}(e);if(_(e)){const t=parseInt(e)||0;return Ac(e)?zd(t):t}return e}function Ic(e){return e.$page}function Bc(e){return 0===e.tagName.indexOf("UNI-")}const Ec="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",Pc="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",zc="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function Mc(e,t="#000",n=27){return gr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[gr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Oc(){{const{$pageInstance:e}=Ir();return e&&Fc(e.proxy)}}function Rc(e){const t=ce(e);if(t.$page)return Fc(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return Fc(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?Fc(n):void 0}function Lc(){const e=jp(),t=e.length;if(t)return e[t-1]}function Nc(){var e;const t=null==(e=Lc())?void 0:e.$page;if(t)return t.meta}function Dc(){const e=Nc();return e?e.id:-1}function $c(){const e=Lc();if(e)return e.$vm}const jc=["navigationBar","pullToRefresh"];function Hc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=h({id:t},n,e);jc.forEach((t=>{o[t]=h({},n[t],e[t])}));const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function Fc(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function Vc(e,t,n){if(_(e))n=t,t=e,e=$c();else if("number"==typeof e){const t=jp().find((t=>Ic(t).id===e));e=t?t.$vm:$c()}if(!e)return;const o=e.$[t];return"onBackPress"===t?o&&(i=o,r=n,i.map((e=>e(r)))).some((e=>!0===e)):o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-qc)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(qc=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout((function(){r=!0}),350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(Uc=setTimeout(s,300))),o=!1};return function(){clearTimeout(Uc),o||requestAnimationFrame(s),o=!0}}function Yc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Yc(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i0?e.split("/"):[];return r.splice(r.length-i-1,i+1),ge(r.concat(n).join("/"))}function Gc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function Xc(){sc(),we(Bc),window.addEventListener("touchstart",nc,Kl),window.addEventListener("touchmove",oc,Kl),window.addEventListener("touchend",Zl,Kl),window.addEventListener("touchcancel",Zl,Kl)}class Kc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(de(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&de(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=tu(this.$el.querySelector(e));return t?Jc(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];v(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&zv.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Jc(e,t=!0){if(t&&e&&(e=ue(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Kc(e)),e.$el.__wxsComponentDescriptor}function Zc(e,t){return Jc(e,t)}function eu(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Zc(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=ue(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Zc(i,!1)]}}function tu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function nu(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=Ce(t?i:function(e){for(;!Bc(e);)e=e.parentElement;return e}(i)),a=Ce(r);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&A(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){h(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function ou(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function iu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=wc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[ou(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=wc();r.touches=iu(e.touches,t),r.changedTouches=iu(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(r,t,{get:()=>e[t]})}))}return eu(r,t,n)||[r]},createNativeEvent:nu},Symbol.toStringTag,{value:"Module"});function su(e){!function(e){const t=e.globalProperties;h(t,ru),t.$gcd=Zc}(e._context.config)}let au=1;function lu(e){return(e||Dc())+".invokeViewApi"}const cu=h(Wl("view"),{invokeOnCallback:(e,t)=>Mv.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Mv,s=o?au++:0;o&&i("invokeViewApi."+s,o,!0),r(lu(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=Mv,a=au++,l="invokeViewApi."+a;return i(l,n),s(lu(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function uu(e){Vc(Lc(),"onResize",e),Mv.invokeOnCallback("onWindowResize",e)}function du(e){const t=Lc();Vc(Jg(),"onShow",e),Vc(t,"onShow")}function hu(){Vc(Jg(),"onHide"),Vc(Lc(),"onHide")}const pu=["onPageScroll","onReachBottom"];function fu(){pu.forEach((e=>Mv.subscribe(e,function(e){return(t,n)=>{Vc(parseInt(n),e,t)}}(e))))}function mu(){!function(){const{on:e}=Mv;e("onResize",uu),e("onAppEnterForeground",du),e("onAppEnterBackground",hu)}(),fu()}function gu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Pe(this.$page.id)),e.eventChannel}}function yu(e){e._context.config.globalProperties.getOpenerEventChannel=gu}function bu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function vu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${zd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function _u(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,s=e.option,a=s.transition,l={},c=[];return r.forEach((e=>{let r=e.type,s=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):r.startsWith("translate")&&(s=s.map(vu)),n.indexOf(r)>=0&&(s.length=1),c.push(`${r}(${s.join(",")})`);else if(o.concat(i).includes(s[0])){r=s[0];const e=s[1];l[r]=i.includes(r)?vu(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{r()}),0)}const wu={props:["animation"],watch:{animation:{deep:!0,handler(){_u(this)}}},mounted(){_u(this)}},xu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(wu),Su(e)},Su=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Eo(e));function ku(e){return e.__wwe=!0,e}function Cu(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=Ce(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const Au={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Tu(e){const t=hn(!1);let n,o,i=!1;function r(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout((()=>{t.value=!0,i||r()}),parseInt(e.hoverStartTime)))}function a(){i=!1,t.value&&r()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:ku((function(e){e.touches.length>1||s(e)})),onMousedown:ku((function(e){i||(s(e),window.addEventListener("mouseup",l))})),onTouchend:ku((function(){a()})),onMouseup:ku((function(){i&&l()})),onTouchcancel:ku((function(){i=!1,t.value=!1,clearTimeout(n)}))}}}function Iu(e,t){return _(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const Bu=Cc("uf"),Eu=Cc("ul");function Pu(e,t){zu(e.id,t),ho((()=>e.id),((e,n)=>{Mu(n,t,!0),zu(e,t,!0)})),ei((()=>{Mu(e.id,t)}))}function zu(e,t,n){const o=Oc();n&&!e||A(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zv.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zv.on(i,t[i]):e&&zv.on(`uni-${i}-${o}-${e}`,t[i])}))}function Mu(e,t,n){const o=Oc();n&&!e||A(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zv.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zv.off(i,t[i]):e&&zv.off(`uni-${i}-${o}-${e}`,t[i])}))}const Ou=xu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=hn(null),o=Ei(Bu,!1),{hovering:i,binding:r}=Tu(e),s=ku(((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;})),a=Ei(Eu,!1);return a&&(a.addHandler(s),Zo((()=>{a.removeHandler(s)}))),Pu(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Iu(e,"disabled"),l=Iu(e,"loading"),c=Iu(e,"plain"),u=o&&"none"!==o;return gr("uni-button",Sr({ref:n,onClick:s,id:e.id,class:u&&i.value?o:""},u&&r,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),Ru=Cc("upm");function Lu(){return Ei(Ru)}function Nu(e){const t=function(e){return Gt(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=Tc(e.offset)),e.height&&(e.height=Tc(e.height)),e.range&&(e.range=Tc(e.range)),e}(h({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+yc.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==jp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(Hc(vl().meta,e)))))}(e);return Bi(Ru,t),t}function Du(){return vl()}function $u(){return history.state&&history.state.__id__||1}const ju=["original","compressed"],Hu=["album","camera"],Fu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Vu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Wu(e,t){return!g(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Uu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let qu=1;const Qu={};function Yu(e,t,n,o=!1){return Qu[e]={name:t,keepAlive:o,callback:n},e}function Gu(e,t,n){if("number"==typeof e){const o=Qu[e];if(o)return o.keepAlive||delete Qu[e],o.callback(t,n)}return t}function Xu(e){for(const t in Qu)if(Qu[t].name===e)return!0;return!1}const Ku="success",Ju="fail",Zu="complete";function ed(e,t={},{beforeAll:n,beforeSuccess:o}={}){A(t)||(t={});const{success:i,fail:r,complete:s}=function(e){const t={};for(const n in e){const o=e[n];v(o)&&(t[n]=Uu(o),delete e[n])}return t}(t),a=v(i),l=v(r),c=v(s),u=qu++;return Yu(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),v(n)&&n(u),u.errMsg===e+":ok"?(v(o)&&o(u,t),a&&i(u)):l&&r(u),c&&s(u)})),u}const td="success",nd="fail",od="complete",id={},rd={};function sd(e,t){return function(n){return e(n,t)||n}}function ad(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function ld(e,t={}){return[td,nd,od].forEach((n=>{const o=e[n];if(!g(o))return;const i=t[n];t[n]=function(e){ad(o,e,t).then((e=>v(i)&&i(e)||e))}})),t}function cd(e,t){const n=[];g(id.returnValue)&&n.push(...id.returnValue);const o=rd[e];return o&&g(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function ud(e){const t=Object.create(null);Object.keys(id).forEach((e=>{"returnValue"!==e&&(t[e]=id[e].slice())}));const n=rd[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function dd(e,t,n,o){const i=ud(e);if(i&&Object.keys(i).length){if(g(i.invoke)){return ad(i.invoke,n).then((n=>t(ld(ud(e),n),...o)))}return t(ld(i,n),...o)}return t(n,...o)}function hd(e,t){return(n={},...o)=>function(e){return!(!A(e)||![Ku,Ju,Zu].find((t=>v(e[t]))))}(n)?cd(e,dd(e,t,h({},n),o)):cd(e,new Promise(((i,r)=>{dd(e,t,h({},n,{success:i,fail:r}),o)})))}function pd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,Gu(e,h({errMsg:r},o))}function fd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(_(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!A(t.formatArgs)&&A(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r{md(o);const i=fd(0,[o],0,n);if(i)throw new Error(i);const r=!Xu(e);!function(e,t){Yu(qu++,e,t,!0)}(e,o),r&&(!function(e){Mv.on("api."+e,(t=>{for(const n in Qu){const o=Qu[n];o.name===e&&o.callback(t)}}))}(e),t())}}function yd(e,t,n){return o=>{md(o);const i=fd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in Qu){const o=Qu[n];o.callback===t&&o.name===e&&delete Qu[n]}}(e=e.replace("off","on"),o);Xu(e)||(!function(e){Mv.off("api."+e)}(e),t())}}function bd(e,t,n,o){return n=>{const i=ed(e,n,o),r=fd(0,[n],0,o);return r?pd(i,e,r):t(n,{resolve:t=>function(e,t,n){return Gu(e,h(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>pd(i,e,function(e){return!e||_(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function vd(e,t,n){return gd(e,t,n)}function _d(e,t,n){return yd(e,t,n)}function wd(e,t,n,o){return hd(e,bd(e,t,0,o))}function xd(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=fd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Sd(e,t,n,o){return hd(e,function(e,t,n,o){return bd(e,t,0,o)}(e,t,0,o))}let kd=!1,Cd=0,Ad=0,Td=960,Id=375,Bd=750;function Ed(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=yf();return{platform:lf?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:e}}();e=o,t=i,n=r}Cd=e,Ad=t,kd="ios"===n}function Pd(e,t){const n=Number(e);return isNaN(n)?t:n}const zd=xd(0,((e,t)=>{if(0===Cd&&(Ed(),function(){const e=__uniConfig.globalStyle||{};Td=Pd(e.rpxCalcMaxDeviceWidth,960),Id=Pd(e.rpxCalcBaseDeviceWidth,375),Bd=Pd(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Cd;n=e===Bd||n<=Td?n:Id;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Ad&&kd?.5:1),e<0?-o:o}));const Md=new class{constructor(){this.$emitter=new Ne}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},Od=xd(0,((e,t)=>(Md.on(e,t),()=>Md.off(e,t)))),Rd=xd(0,((e,t)=>(Md.once(e,t),()=>Md.off(e,t)))),Ld=xd(0,((e,t)=>{g(e)||(e=e?[e]:[]),e.forEach((e=>{Md.off(e,t)}))})),Nd=xd(0,((e,...t)=>{Md.emit(e,...t)})),Dd=[.5,.8,1,1.25,1.5,2];class $d{constructor(e,t){this.id=e,this.pageId=t}play(){bf(this.id,this.pageId,"play")}pause(){bf(this.id,this.pageId,"pause")}stop(){bf(this.id,this.pageId,"stop")}seek(e){bf(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){bf(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~Dd.indexOf(e)||(e=1),bf(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){bf(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){bf(this.id,this.pageId,"exitFullScreen")}showStatusBar(){bf(this.id,this.pageId,"showStatusBar")}hideStatusBar(){bf(this.id,this.pageId,"hideStatusBar")}}const jd=xd(0,((e,t)=>new $d(e,Rc(t||$c())))),Hd=(e,t,n,o)=>{!function(e,t,n,o,i){Mv.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,(e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)}))};function Fd(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Vd=Fd("width"),Wd=Fd("height"),Ud={formatArgs:{x:Fd("x"),y:Fd("y"),width:Vd,height:Wd}},qd={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}},Qd=Ud,Yd=(Uint8ClampedArray,{PNG:"png",JPG:"jpg",JPEG:"jpg"}),Gd={formatArgs:{x:Fd("x",0),y:Fd("y",0),width:Vd,height:Wd,destWidth:Fd("destWidth"),destHeight:Fd("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Yd[e];n||(n=Yd.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function Xd(e,t,n,o,i){Mv.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{i&&i(e)}))}var Kd=["scale","rotate","translate","setTransform","transform"],Jd=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Zd=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const eh={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 th(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(m(eh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(eh[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class nh{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,th(t)])}}class oh{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class ih{constructor(e){this.width=e}}class rh{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,s,a,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],Xd(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new nh("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new nh("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 oh(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new ih(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],s=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()})),1===o.length&&a(),o=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function a(){s.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 sh=ve((()=>{[...Kd,...Jd].forEach((function(e){rh.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,s,a,l,c,n,o,i,r]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),Zd.forEach((function(e){rh.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",th(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=th(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),ah=xd(0,((e,t)=>{if(sh(),t)return new rh(e,Rc(t));const n=Rc($c());if(n)return new rh(e,n);Mv.emit("onError","createCanvasContext:fail")})),lh=Sd("canvasGetImageData",(({canvasId:e,x:t,y:n,width:o,height:i},{resolve:r,reject:s})=>{const a=Rc($c());a?Xd(e,a,"getImageData",{x:t,y:n,width:o,height:i},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void s("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,r(e)})):s()}),0,Ud),ch=Sd("canvasPutImageData",(({canvasId:e,data:t,x:n,y:o,width:i,height:r},{resolve:s,reject:a})=>{var l=Rc($c());if(!l)return void a();t=Array.prototype.slice.call(t),Xd(e,l,"putImageData",{data:t,x:n,y:o,width:i,height:r,compressed:void 0},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?a():s(e)}))}),0,Qd),uh=Sd("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:s,fileType:a,quality:l},{resolve:c,reject:u})=>{var d=Rc($c());if(!d)return void u();Xd(s,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:a,quality:l,dirname:"/canvas"},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,Gd),dh={thresholds:[0],initialRatio:0,observeAll:!1},hh=["top","right","bottom","left"];let ph=1;function fh(e={}){return hh.map((t=>`${Number(e[t])||0}px`)).join(" ")}class mh{constructor(e,t){this._pageId=Rc(e),this._component=e,this._options=h({},dh,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=fh(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=fh(e),this}observe(e,t){v(t)&&(this._options.selector=e,this._reqId=ph++,function({reqId:e,component:t,options:n,callback:o},i){const r=nf(t);(r.__io||(r.__io={}))[e]=function(e,t,n){!function(){if("object"!=typeof window)return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));function e(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}var t=function(t){for(var n=window.document,o=e(n);o;)o=e(n=o.ownerDocument);return n}(),n=[],o=null,i=null;function r(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||p()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function c(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function d(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),r=Math.min(e.right,t.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function h(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function m(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function g(e,t){for(var n=t;n;){if(n==e)return!0;n=y(n)}return!1}function y(n){var o=n.parentNode;return 9==n.nodeType&&n!=t?e(n):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function b(e){return e&&9===e.nodeType}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(e,t){i=e&&t?m(e,t):p(),n.forEach((function(e){e._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,i=null},s.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()}},s.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()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.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]}))},s.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},s.prototype._monitorIntersections=function(n){var o=n.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(n)){var i=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(i,this.POLL_INTERVAL):(c(o,"resize",i,!0),c(n,"scroll",i,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(i)).observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(n),this._monitoringUnsubscribes.push((function(){var e=n.defaultView;e&&(r&&e.clearInterval(r),u(e,"resize",i,!0)),u(n,"scroll",i,!0),s&&s.disconnect()}));var a=this.root&&(this.root.ownerDocument||this.root)||t;if(n!=a){var l=e(n);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(n){var o=this._monitoringDocuments.indexOf(n);if(-1!=o){var i=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==n)return!0;for(;o&&o!=i;){var r=e(o);if((o=r&&r.ownerDocument)==n)return!0}return!1}))){var r=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),r(),n!=i){var s=e(n);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t{e.forEach((e=>{n({intersectionRatio:hp(e),intersectionRect:dp(e.intersectionRect),boundingClientRect:dp(e.boundingClientRect),relativeRect:dp(e.rootBounds),time:Date.now(),dataset:xe(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e((e=ce(e))&&!Rc(e)&&(t=e,e=null),new mh(e||$c(),t))));let yh=0,bh={};function vh(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(yh++);i.callbackId=e,bh[e]=o}Mv.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,(({callbackId:e,data:t})=>{r&&(!function(e,t){e=e||{},_(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?v(e.success)&&e.success(t):v(e.fail)&&e.fail(t),v(e.complete)&&e.complete(t)}(bh[e],t),delete bh[e])}))}const _h={canvas:rh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Hd(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Hd(this.id,this.pageId,"moveToLocation",e)}getScale(e){Hd(this.id,this.pageId,"getScale",e)}getRegion(e){Hd(this.id,this.pageId,"getRegion",e)}includePoints(e){Hd(this.id,this.pageId,"includePoints",e)}translateMarker(e){Hd(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Hd(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Hd(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Hd(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Hd(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Hd(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Hd(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Hd(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Hd(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Hd(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Hd(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Hd(this.id,this.pageId,"openMapApp",e)}on(e,t){Hd(this.id,this.pageId,"on",{name:e,callback:t})}},video:$d,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){vh(this.id,this.pageId,e,t)}}};function wh(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=_h[n];e.context=new i(t,o),delete e.contextInfo}}class xh{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class Sh{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),s=r.parentElement;if(!s)return o?null:[];const{nodeType:a}=r,l=3===a||8===a;if(o){const e=l?s.querySelector(n):_f(r,n)?r:r.querySelector(n);return e?vf(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(vf(t,i))})),!l&&_f(r,n)&&e.unshift(vf(r,i)),e}}(e,t,n,i,r))})),n(o)}(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{g(e)?e.forEach(wh):wh(e);const o=n[t];v(o)&&o.call(this,e)})),v(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=ce(e),this}select(e){return this._nodesRef=new xh(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new xh(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new xh(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const kh=xd(0,(e=>((e=ce(e))&&!Rc(e)&&(e=null),new Sh(e||$c())))),Ch={formatArgs:{}},Ah={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Th{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=h({},Ah,e)}_getOption(e){const t={transition:h({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const Ih=ve((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{Th.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),Bh=xd(0,(e=>(Ih(),new Th(e))),0,Ch),Eh=vd("onWindowResize",(()=>{})),Ph=_d("offWindowResize",(()=>{})),zh=xd(0,(()=>{const e=Jg();return e&&e.$vm?e.$vm.$locale:Rl().getLocale()})),Mh=vd("onLocaleChange",(()=>{})),Oh={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Rh={formatArgs:{showToast:!0},beforeInvoke(){Fl()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=Rl(),o=n("uni.setClipboardData.success");o&&ov({title:o,icon:"success",mask:!1})}},Lh=(Boolean,["wgs84","gcj02"]),Nh={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Lh.indexOf(e)?t.type=Lh[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Dh=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Wu(e,ju)},sourceType(e,t){t.sourceType=Wu(e,Hu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),$h={formatArgs:{sourceType(e,t){t.sourceType=Wu(e,Hu)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},jh=(Boolean,["all","image","video"]),Hh={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Wu(e,Hu)},type(e,t){t.type=Vu(e,jh)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},Fh={formatArgs:{src(e,t){t.src=rf(e)}}},Vh={formatArgs:{urls(e,t){t.urls=e.map((e=>_(e)&&e?rf(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};r.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(m(t,a)){let e=t[a];null==e?e="":A(e)&&(e=JSON.stringify(e)),s[qh(a)]=qh(e)}return i=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Fu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Wh).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Uh.indexOf(t.responseType)&&(t.responseType="text")}}},Yh={formatArgs:{header(e,t){t.header=e||{}}}},Gh={formatArgs:{filePath(e,t){e&&(t.filePath=rf(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Xh={url:{type:String,required:!0}},Kh=(tp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),tp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),ip("navigateTo")),Jh=ip("redirectTo"),Zh=ip("reLaunch"),ep={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(jp().length-1,e)}}};function tp(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 np;function op(){np=""}function ip(e){return{formatArgs:{url:rp(e)},beforeAll:op}}function rp(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=jp();return n.length&&(t=Ic(n[n.length-1]).route),Yc(t,e)}(t)).split("?")[0],i=Gc(o,!0);if(!i)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!_(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(np===t&&"appLaunch"!==n.openType)return`${np} locked`;__uniConfig.ready&&(np=t)}else if(i.meta.isTabBar){const e=jp(),t=i.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const sp={formatArgs:{duration:300}},ap=(Boolean,{formatArgs:{title:"",mask:!1}}),lp=(Boolean,{beforeInvoke(){jl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!m(t,"cancelText")){const{t:e}=Rl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!m(t,"confirmText")){const{t:e}=Rl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),cp=["success","loading","none","error"],up=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Vu(e,cp)},image(e,t){t.image=e?rf(e):""},duration:1500,mask:!1}});function dp(e){const{bottom:t,height:n,left:o,right:i,top:r,width:s}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:s}}function hp(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return 0!==t?t:i===n?r/o:i/n}function pp(){const e=$c();if(!e)return;const t=$p(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Fp(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Vc(e,"onHide"))}function fp(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function mp(e){const t=$p().values();for(const n of t){const t=Mp(n);if(fp(e,t))return n.$.__isActive=!0,t.id}}const gp=Sd("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Op.handledBeforeEntryPageRoutes)return pp(),wp({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},mp(e)).then(o).catch(i);Lp.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})}),0,ip("switchTab"));function yp(){const e=Lc();if(!e)return;const t=Mp(e);Fp(qp(t.path,t.id))}const bp=Sd("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Op.handledBeforeEntryPageRoutes)return yp(),wp({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o);Np.push({args:{type:"redirectTo",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Jh);function vp(){const e=$p().keys();for(const t of e)Fp(t)}const _p=Sd("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Op.handledBeforeEntryPageRoutes)return vp(),wp({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);Dp.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Zh);function wp({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=Jg().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Be(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Vp,__type__:e}}(e,r);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((r=>{if(Da(r))return c(r.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Pe(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()}))}))}function xp(){if(Op.handledBeforeEntryPageRoutes)return;Op.handledBeforeEntryPageRoutes=!0;const e=[...Rp];Rp.length=0,e.forEach((({args:e,resolve:t,reject:n})=>wp(e).then(t).catch(n)));const t=[...Lp];Lp.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(pp(),wp(e,mp(e.url)).then(t).catch(n))));const n=[...Np];Np.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(yp(),wp(e).then(t).catch(n))));const o=[...Dp];Dp.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(vp(),wp(e).then(t).catch(n))))}let Sp;function kp(){var e;return Sp||(Sp=__uniConfig.tabBar&&Gt((e=__uniConfig.tabBar,El()&&e.list&&e.list.forEach((e=>{Ol(e,["text"])})),El()&&e.midButton&&Ol(e.midButton,["text"]),e))),Sp}function Cp(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const Ap=Cp("top:env(a)"),Tp=Cp("top:constant(a)"),Ip=Cp("backdrop-filter:blur(10px)"),Bp=(()=>Ap?"env":Tp?"constant":"")();function Ep(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=kp();e.shown&&(n=parseInt(e.height))}var o;kc({"--window-top":(o=t,Bp?`calc(${o}px + ${Bp}(safe-area-inset-top))`:`${o}px`),"--window-bottom":Pp(n)})}function Pp(e){return Bp?`calc(${e}px + ${Bp}(safe-area-inset-bottom))`:`${e}px`}const zp=new Map;function Mp(e){return e.$page}const Op={handledBeforeEntryPageRoutes:!1},Rp=[],Lp=[],Np=[],Dp=[];function $p(){return zp}function jp(){return Hp()}function Hp(){const e=[],t=zp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Fp(e,t=!0){const n=zp.get(e);n.$.__isUnload=!0,Vc(n,"onUnload"),zp.delete(e),t&&function(e){const t=Qp.get(e);t&&(Qp.delete(e),Yp.pruneCacheEntry(t))}(e)}let Vp=$u();function Wp(e){const t=Lu();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,r){const{id:s,route:a}=o,l=je(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:s,path:ge(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Up(e){const t=Wp(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),zp.set(qp(t.path,t.id),e),1===zp.size&&setTimeout((()=>{xp()}),0)}function qp(e,t){return e+"$$"+t}const Qp=new Map,Yp={get:e=>Qp.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Yp.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Yp.delete(n),Yp.pruneCacheEntry(e),Ln((()=>{zp.forEach(((e,t)=>{e.$.isUnmounted&&zp.delete(t)}))}))}}))}(e),Qp.set(e,t)},delete(e){Qp.get(e)&&Qp.delete(e)},forEach(e){Qp.forEach(e)}};function Gp(e,t){!function(e){const t=Kp(e),{body:n}=document;Jp&&n.removeAttribute(Jp),t&&n.setAttribute(t,""),Jp=t}(e),Ep(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),tf(e,t)}function Xp(e){const t=Kp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Kp(e){return e.type.__scopeId}let Jp;const Zp=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let ef;function tf(e,t){if(document.removeEventListener("touchmove",Wc),ef&&document.removeEventListener("scroll",ef),t.disableScroll)return document.addEventListener("touchmove",Wc,Zp);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},s=Mp(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&zv.publishHandler("onPageScroll",{scrollTop:o},e),n&&zv.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>zv.publishHandler("onReachBottom",{},s)),ef=Qc(r),requestAnimationFrame((()=>document.addEventListener("scroll",ef)))}function nf(e){return e.$el}function of(e){const{base:t}=__uniConfig.router;return 0===ge(e).indexOf(t)?ge(e):t+e}function rf(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return of(e.slice(1));e="https:"+e}if(re.test(e)||se.test(e)||0===e.indexOf("blob:"))return e;const o=Hp();return o.length?of(Yc(Mp(o[o.length-1]).route,e).slice(1)):e}const sf=navigator.userAgent,af=/android/i.test(sf),lf=/iphone|ipad|ipod/i.test(sf),cf=sf.match(/Windows NT ([\d|\d.\d]*)/i),uf=/Macintosh|Mac/i.test(sf),df=/Linux|X11/i.test(sf),hf=uf&&navigator.maxTouchPoints>0,pf=/OpenHarmony/i.test(sf);function ff(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function mf(e){return e&&90===Math.abs(window.orientation)}function gf(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function yf(){const e=ff();if(e){const t=gf(e,mf(e));return Math.min(window.innerWidth,document.documentElement.clientWidth,t)||t}return Math.min(window.innerWidth,document.documentElement.clientWidth)}function bf(e,t,n,o){Mv.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function vf(e,t){const n={},{top:o,topWindowHeight:i}=xc();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=xe(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(g(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(g(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function _f(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const wf={};function xf(e,t){const n=wf[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const s=new Uint8Array(r);for(;r--;)s[r]=i.charCodeAt(r);return Sf(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Sf(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function kf(e){for(const n in wf)if(m(wf,n)){if(wf[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return wf[t]=e,t}function Cf(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete wf[e]}const Af=bu(),Tf=bu();const If=xu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=hn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=Gt({width:-1,height:-1});return ho((()=>h({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){$o(o),Xo((()=>{t.initial&&Ln(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,i,o),()=>gr("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[gr("div",{onScroll:i},[gr("div",null,null)],40,["onScroll"]),gr("div",{onScroll:i},[gr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Bf=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 Ef(e,t=!0){const n=t?Bf:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Pf=!1;function zf(){if(Pf)return;Pf=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,s,a,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Bf,o*=Bf,i*=Bf,r*=Bf,s*=Bf,a*=Bf,l=u?l*Bf:l,c=u?c*Bf:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==Bf&&(!function(e,t){for(const n in e)m(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*Bf}));else if(Array.isArray(e))for(let t=0;tzf()));function Of(e){return e?rf(e):e}function Rf(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Lf(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let Nf;function Df(e=0,t=0){return Nf||(Nf=document.createElement("canvas")),Nf.width=e,Nf.height=t,Nf}const $f=xu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Mf();const o=hn(null),i=hn(null),r=hn(null),s=hn(!1),a=function(e){return(t,n)=>{e(t,nu(n))}}(t),{$attrs:l,$excludeAttrs:c,$listeners:u}=Bm({excludeListeners:!0}),{_listeners:d}=function(e,t,n){const o=$r((()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=h({},(()=>{let e={};for(const t in i)if(m(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach((t=>{let o=[];r[t]&&o.push(ku((e=>{const o=e.currentTarget.getBoundingClientRect();Lf(o,e.touches),Lf(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(bc),r[t]=o})),r}));return{_listeners:o}}(e,u,a),{_handleSubscribe:p,_resize:f}=function(e,t,n){let o=[],i={};const r=$r((()=>e.hidpi?Bf:1));function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);Ef(o,e.hidpi),t.putImageData(n,0,0)}else Ef(o,e.hidpi)}function a({actions:e,reserve:r},s){if(!e)return;if(n.value)return void o.push([e,r]);let a=t.value,u=a.getContext("2d");r||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=Of(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=Of(o),n[1]=o),o&&!i[o]&&r()}))}function c(e,t,r,s){let l=i[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function u({x:e=0,y:n=0,width:o,height:i,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;o=o?Math.min(o,m):m;const g=p.offsetHeight-n;i=i?Math.min(i,g):g,l?(s=o,a=i):s||a?s?a||(a=Math.round(i/o*s)):(a||(a=Math.round(i*r.value)),s=Math.round(o/i*a)):(s=Math.round(o*r.value),a=Math.round(i*r.value));const y=Df(s,a),b=y.getContext("2d");let v;"jpeg"!==d&&"jpg"!==d||(d="jpeg",b.fillStyle="#fff",b.fillRect(0,0,s,a)),b.__hidpi__=!0,b.drawImageByCanvas(p,e,n,o,i,0,0,s,a,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=b.getImageData(0,0,s,a);f=Array.prototype.slice.call(e.data)}v={data:f,compressed:e,width:s,height:a}}catch(_){v={errMsg:`canvasGetImageData:fail ${_}`}}if(y.height=y.width=0,b.__hidpi__=!1,!h)return v;h(v)}function d({data:e,x:n,y:o,width:i,height:r,compressed:s},a){try{0,r||(r=Math.round(e.length/4/i));const s=Df(i,r);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(s,n,o,i,r),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:a,dirname:l},c){const d=u({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:s,quality:a});var h;d.errMsg?c({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")}):(h=d.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h))}const f={actionsChanged:a,getImageData:u,putImageData:d,toTempFilePath:p};function m(e,t,n){let o=f[e];0!==e.indexOf("_")&&v(o)&&o(t,n)}return h(f,{_resize:s,_handleSubscribe:m})}(e,i,s);return Bg(p,Pg(e.canvasId),!0),Xo((()=>{f()})),()=>{const{canvasId:t,disableScroll:s}=e;return gr("uni-canvas",Sr({ref:o,"canvas-id":t,"disable-scroll":s},l.value,c.value,d.value),[gr("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),gr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),gr(If,{ref:r,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const jf=Cc("ucg"),Hf=xu({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=hn(null),o=hn(e.checked),i=$r((()=>"true"===o.value||!0===o.value)),r=hn(e.value);const s=$r((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value)));ho([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,r.value=t}));const{uniCheckGroup:a,uniLabel:l}=function(e,t,n){const o=$r((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},r=Ei(jf,!1);r&&r.addField(o);const s=Ei(Bu,!1);s&&s.addField(i);const a=Ei(Eu,!1);return Zo((()=>{r&&r.removeField(o),s&&s.removeField(i)})),{uniCheckGroup:r,uniForm:s,uniLabel:a}}(o,r,(()=>{o.value=!1})),c=t=>{e.disabled||(o.value=!o.value,a&&a.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),Zo((()=>{l.removeHandler(c)}))),Pu(e,{"label-click":c}),()=>{const i=Iu(e,"disabled");let r;return r=o.value,gr("uni-checkbox",Sr(i,{id:e.id,onClick:c,ref:n}),[gr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[gr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[r?Mc(Ec,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Ff(){}const Vf={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Wf(e,t,n){function o(e){const t=$r((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Ff,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Ff,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}ho((()=>t.value),(e=>e&&o(e)))}var Uf=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,qf=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Qf=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Yf=em("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Gf=em("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Xf=em("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Kf=em("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Jf=em("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Zf=em("script,style");function em(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},om={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"]},im=xu({name:"Image",props:tm,setup(e,{emit:t}){const n=hn(null),o=function(e,t){const n=hn(""),o=$r((()=>{let e="auto",o="";const i=om[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),i=Gt({rootEl:e,src:$r((()=>t.src?rf(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Xo((()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0})),i}(n,e),i=Cu(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=nm[o];if(!i)return;const{origWidth:r,origHeight:s}=n,a=r&&s?r/s:0;if(!a)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){rm&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,a))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return ho((()=>t.mode),((e,t)=>{nm[t]&&i(),nm[e]&&o()})),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;a(u,d,l),Ln((()=>{o()})),r.draggable=t.draggable,s&&s.remove(),s=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{a(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};ho((()=>e.src),(e=>l(e))),ho((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Xo((()=>l(e.src))),Zo((()=>c()))}(o,e,n,r,i),()=>gr("uni-image",{ref:n},[gr("div",{style:o.modeStyle},null,4),nm[e.mode]?gr(If,{onResize:r},null,8,["onResize"]):gr("span",null,null)],512)}});const rm="Google Inc."===navigator.vendor;const sm=ke(!0),am=[];let lm=0,cm=!1;const um=e=>am.forEach((t=>t.userAction=e));function dm(e={userAction:!1}){if(!cm){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!lm&&um(!0),lm++,setTimeout((()=>{!--lm&&um(!1)}),0)}),sm)})),cm=!0}am.push(e)}const hm=()=>!!lm;function pm(){const e=Gt({userAction:!1});return Xo((()=>{dm(e)})),Zo((()=>{!function(e){const t=am.indexOf(e);t>=0&&am.splice(t,1)}(e)})),{state:e}}function fm(){const e=Gt({attrs:{}});return Xo((()=>{let t=Ir();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function mm(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function gm(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const ym=["none","text","decimal","numeric","tel","search","email","url"],bm=h({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~ym.indexOf(e)},cursorColor:{type:String,default:""}},Vf),vm=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function _m(e,t,n,o,i){let r=null,s=null;s=Ee((n=>{const o=i.value,s=gm(n,e.type);o&&document.activeElement===o&&s===r||(t.value=s)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),ho((()=>e.modelValue),s),ho((()=>e.value),s);const a=function(e,t){let n,o,i=0;const r=function(...r){const s=Date.now();clearTimeout(n),o=()=>{o=null,i=s,e.apply(this,r)},s-i{s.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return Go((()=>{s.cancel(),a.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{s.cancel(),r=t.value,a(e,t),n&&a.flush()}}}function wm(e,t){pm();const n=$r((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}ho((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Xo((()=>{n.value&&Ln(o)}))}function xm(e,t,n,o){Yl(Dc(),"getSelectedTextRange",mm);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=hn(null),i=Cu(t,n),r=$r((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=$r((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=$r((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=$r((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=gm(e.modelValue,e.type)||gm(e.value,e.type);const u=Gt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:s,cursor:a});return ho((()=>u.focus),(e=>n("update:focus",e))),ho((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:a}=_m(e,r,n,s,i);wm(e,i),Wf(0,i);const{state:l}=fm();!function(e,t){const n=Ei(Bu,!1);if(!n)return;const o=Ir(),i={submit(){const n=o.proxy;return[n[e],_(t)?n[t]:t.value]},reset(){_(t)?o.proxy[t]="":t.value=""}};n.addField(i),Zo((()=>{n.removeField(i)}))}("name",r),function(e,t,n,o,i,r){function s(){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 a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}ho([()=>t.selectionStart,()=>t.selectionEnd],s),ho((()=>t.cursor),a),ho((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),v(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(i,r,e,s,a,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Sm=ve((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function km(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes(".")&&t.value===o.value)return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&Sm()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}function Cm(e){return"insertFromPaste"===e.inputType}const Am=xu({name:"Input",props:h({},bm,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...vm],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=$r((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":case"none":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=$r((()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(M(e.textContentType));return i[-1!==t?t:-1!==n?n:0]})),a=$r((()=>{if(void 0!==e.inputmode)return e.inputmode;if(ym.includes(e.type))return e.type;return{number:"numeric",digit:"decimal",idcard:"text"}[e.type]}));let l=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=hn(null!=t?t.toLocaleString():"");return ho((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),ho((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return hn("")}(e,r),c={fn:null};const u=hn(null),{fieldRef:d,state:h,scopedAttrsState:p,fixDisabledColor:f,trigger:m}=xm(e,u,t,((e,t)=>{const n=e.target;if("number"===r.value){if(c.fn&&(n.removeEventListener("blur",c.fn),c.fn=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",c.fn=()=>{l.value=n.value=""},n.addEventListener("blur",c.fn),!1;const o=km(e,l,t,n,c);return"boolean"==typeof o?o:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const o=km(e,l,t,n,c);if("boolean"==typeof o)return o;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!Cm(e))return n.value=l.value=t.value,!1}}));ho((()=>h.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t.toString())})),ho((()=>e.maxlength),(e=>{e=parseInt(e,10);const t=h.value.slice(0,e);t!==h.value&&(h.value=t)}));const g=["number","digit"],y=$r((()=>g.includes(e.type)?e.step:""));function b(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),m("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),h.value=e.value}}),()=>{let t=e.disabled&&f?gr("input",{key:"disabled-input",ref:d,value:h.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:h.maxlength,step:y.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},inputmode:a.value,onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","inputmode","onFocus"]):gr("input",{key:"input",ref:d,value:h.value,onInput:Ls((e=>{const t=e.target.value.toString();"number"===r.value&&h.maxlength>0&&t.length>h.maxlength?Cm(e)&&(h.value=t.slice(0,h.maxlength)):0===t.length&&"insertText"===e.inputType&&"."===e.data||(h.value=t)}),["stop"]),disabled:!!e.disabled,type:r.value,maxlength:h.maxlength,step:y.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:b,inputmode:a.value},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return gr("uni-input",{ref:u},[gr("div",{class:"uni-input-wrapper"},[yo(gr("div",Sr(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[as,!(h.value.length||"-"===l.value||l.value.includes("."))]]),"search"===e.confirmType?gr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Tm=["class","style"],Im=/^on[A-Z]+/,Bm=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Ir(),i=pn({}),r=pn({}),s=pn({}),a=n.concat(Tm);return o.attrs=Gt(o.attrs),co((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:Im.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,s.value=e.exclude})),{$attrs:i,$listeners:r,$excludeAttrs:s}};function Em(e){const t=[];return g(e)&&e.forEach((e=>{ur(e)?e.type===Ji?t.push(...Em(e.children)):t.push(e):g(e)&&t.push(...Em(e))})),t}const Pm=xu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=hn(null),o=hn(!1);let{setContexts:i,events:r}=function(e,t){const n=hn(0),o=hn(0),i=Gt({x:null,y:null}),r=hn(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=a){let o=t.value;function i(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(r.value=zm(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=ku((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&r.value&&r.value>0){l(zm(n)/r.value)}i.x=n.x,i.y=n.y}})),h=ku((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?a.forEach((function(e){e._endScale()})):s&&s._endScale())}));function p(){f(),a.forEach((function(e,t){e.setParent()}))}function f(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=i.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return Bi("movableAreaWidth",n),Bi("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=Bm(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=r[`_${e}`];c[e]=t?[].concat(t,n):n})),Xo((()=>{r._resize(),o.value=!0}));let u=[];const d=[];function h(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(rn(o))}i(e)}return Bi("_isMounted",o),Bi("movableAreaRootRef",n),Bi("addMovableViewContext",(e=>{d.push(e),h()})),Bi("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>{const e=t.default&&t.default();return u=Em(e),gr("uni-movable-area",Sr({ref:n},a.value,l.value,c),[gr(If,{onResize:r._resize},null,8,["onResize"]),u],16)}}});function zm(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Mm=function(e,t,n,o){e.addEventListener(t,(e=>{v(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Om,Rm;function Lm(e,t,n){Zo((()=>{document.removeEventListener("mousemove",Om),document.removeEventListener("mouseup",Rm)}));let o=0,i=0,r=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-i,ddx:a-r,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Mm(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=s=e.touches[0].pageY,a(e,"start",o,i)})),Mm(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=s=e.pageY,a(e,"start",o,i)})),Mm(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=Om=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return r=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),Mm(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const h=Rm=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Mm(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Nm(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}},jm.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}},jm.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}},jm.prototype.dt=function(){return-this._x_v/this._x_a},jm.prototype.done=function(){const e=Nm(this.s().x,this._endPositionX)||Nm(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},jm.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},jm.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Hm.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,s=t/(i*e);return{x:function(e){return(r+s*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+s*e)*t+s*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Hm.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Hm.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Hm.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Dm(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Dm(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Dm(t,.1)&&(t=0),Dm(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Dm(o-e,.1)&&Dm(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Hm.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Hm.prototype.done=function(e){return e||(e=(new Date).getTime()),Nm(this.x(),this._endPosition,.1)&&Dm(this.dx(),.1)},Hm.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())},Hm.prototype.springConstant=function(){return this._k},Hm.prototype.damping=function(){return this._c},Hm.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}]},Fm.prototype.setEnd=function(e,t,n,o){const i=(new Date).getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Fm.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)}},Fm.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Fm.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Vm(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Wm=xu({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=hn(null),i=Cu(o,n),{setParent:r}=function(e,t,n){const o=Ei("_isMounted",hn(!1)),i=Ei("addMovableViewContext",(()=>{})),r=Ei("removeMovableViewContext",(()=>{}));let s,a,l=hn(1),c=hn(1),u=hn(!1),d=hn(0),h=hn(0),p=null,f=null,m=!1,g=null,y=null;const b=new $m,v=new $m,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=$r((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new jm(1,w.value);ho((()=>e.disabled),(()=>{U()}));const{_updateOldScale:S,_endScale:k,_setScale:C,scaleValueSync:A,_updateBoundary:T,_updateOffset:I,_updateWH:B,_scaleOffset:E,minX:P,minY:z,maxX:M,maxY:O,FAandSFACancel:R,_getLimitXY:L,_setTransform:N,_revise:D,dampingNumber:$,xMove:j,yMove:H,xSync:F,ySync:V,_STD:W}=function(e,t,n,o,i,r,s,a,l,c){const u=$r((()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t})),d=$r((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),h=hn(Number(e.scaleValue)||1);ho(h,(e=>{N(e)})),ho(u,(()=>{L()})),ho(d,(()=>{L()})),ho((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_}=function(e,t,n){const o=Ei("movableAreaWidth",hn(0)),i=Ei("movableAreaHeight",hn(0)),r=Ei("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=hn(0),c=hn(0),u=hn(0),d=hn(0),h=hn(0),p=hn(0);function f(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-s.y+a.y,r=i.value-c.value-s.y-a.y;d.value=Math.min(n,r),p.value=Math.max(n,r)}function m(){s.x=Qm(e.value,r.value),s.y=Ym(e.value,r.value)}function g(o){o=o||t.value,o=n(o);let i=e.value.getBoundingClientRect();c.value=i.height/t.value,l.value=i.width/t.value;let r=c.value*o,s=l.value*o;a.x=(s-l.value)/2,a.y=(r-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:a,minX:u,minY:d,maxX:h,maxY:p}}(t,o,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:C,dampingNumber:A,xMove:T,yMove:I,xSync:B,ySync:E,_STD:P}=function(e,t,n,o,i,r,s,a,l,c,u,d,h,p){const f=$r((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=$r((()=>"all"===t.direction||"horizontal"===t.direction)),g=$r((()=>"all"===t.direction||"vertical"===t.direction)),y=hn(Xm(t.x)),b=hn(Xm(t.y));ho((()=>t.x),(e=>{y.value=Xm(e)})),ho((()=>t.y),(e=>{b.value=Xm(e)})),ho(y,(e=>{C(e)})),ho(b,(e=>{A(e)}));const v=new Fm(1,9*Math.pow(f.value,2)/40,f.value);function _(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):er.value?(t=r.value,n=!0):t1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+s,_.historyX.shift(),_.historyX.push(n),H.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),H.value&&(o=t.detail.dy+a,_.historyY.shift(),_.historyY.push(o),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let i="touch";nM.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=M.value+b.x(n-M.value)):n=M.value),oO.value&&(e.outOfBounds?(i="touch-out-of-bounds",o=O.value+v.x(o-O.value)):o=O.value),qm((function(){N(n,o,l.value,i)}))}}}function Q(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!D("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=h.value;x.setV(e,t),x.setS(n,o);const i=x.delta().x,r=x.delta().y;let s=i+n,a=r+o;sM.value&&(s=M.value,a=o+(M.value-n)*r/i),aO.value&&(a=O.value,s=n+(O.value-o)*i/r),x.setEnd(s,a),f=Gm(x,(function(){let e=x.s(),t=e.x,n=e.y;N(t,n,l.value,"friction")}),(function(){f.cancel()}))}e.outOfBounds||e.inertia||R()}function Y(){if(!o.value)return;R();let t=e.scale?A.value:1;I(),B(t),T();let n=L(F.value+E.x,V.value+E.y),i=n.x,r=n.y;N(i,r,t,"",!0),S(t)}return Xo((()=>{Lm(n.value,(e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Q()}})),Y(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow($.value,2)/40,$.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:k,_setScale:C};i(e),ei((()=>{r(e)}))})),ei((()=>{R()})),{setParent:Y}}(e,i,o);return()=>gr("uni-movable-view",{ref:o},[gr(If,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let Um=!1;function qm(e){Um||(Um=!0,requestAnimationFrame((function(){e(),Um=!1})))}function Qm(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Qm(e.offsetParent,t):0}function Ym(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Ym(e.offsetParent,t):0}function Gm(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);let r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Xm(e){return/\d+[ur]px$/i.test(e)?zd(parseFloat(e)):Number(e)||0}const Km=xu({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return g(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=hn(null),i=hn(null),r=Cu(o,n),s=function(e){const t=Gt([...e.value]),n=Gt({value:t,height:34});return ho((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),a=hn(null);Xo((()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)}));let l=hn([]),c=hn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==er));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return Bi("getPickerViewColumn",(function(e){return $r({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map((e=>e));n("update:value",e),r("change",{},{value:e})}}})})),Bi("pickerViewProps",e),Bi("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Em(e);l.value=t,Ln((()=>{c.value=t}))}return gr("uni-picker-view",{ref:o},[gr(If,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),gr("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Jm{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 Zm(e,t,n){return e>t-n&&e0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!eg(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(eg(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),eg(t,.4)&&(t=0),eg(o,.4)&&(o=0),o+=this._endPosition),this._solution&&eg(o-e,.4)&&eg(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()),Zm(this.x(),this._endPosition,.4)&&eg(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 ng{constructor(e,t,n){this._extent=e,this._friction=t||new Jm(.01),this._spring=n||new tg(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class og{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 ng(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=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),v(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),v(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(v(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),v(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}}const ig=xu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=hn(null),i=hn(null),r=Ei("getPickerViewColumn"),s=Ir(),a=r?r(s):hn(0),l=Ei("pickerViewProps"),c=Ei("pickerViewState"),u=hn(34),d=hn(null);Xo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const h=$r((()=>(c.height-u.value)/2)),{state:p}=fm();let f;const m=Gt({current:a.value,length:0});let g;function y(){f&&!g&&(g=!0,Ln((()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),f.update(e*u.value,void 0,u.value)})))}ho((()=>a.value),(e=>{e!==m.current&&(m.current=e,y())})),ho((()=>m.current),(e=>a.value=e)),ho([()=>u.value,()=>m.length,()=>c.height],y);let b=0;function v(e){const t=b+e.deltaY;if(Math.abs(t)>10){b=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),f.scrollTo(e*u.value)}else b=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let i=Math.min(m.current+t,m.length-1);m.current=i=Math.max(i,0),f.scrollTo(i*u.value)}}}const w=()=>{const e=o.value,t=i.value,{scroller:n,handleTouchStart:r,handleTouchMove:s,handleTouchEnd:a}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new og(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Jm(1e-4),spring:new tg(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});f=n,Lm(e,(e=>{switch(e.detail.state){case"start":r(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),y()};return Xo(w),()=>{const e=t.default&&t.default();m.length=Em(e).length;const n=`${h.value}px 0`;return gr("uni-picker-view-column",{ref:o},[gr("div",{onWheel:v,onClick:_,class:"uni-picker-view-group"},[gr("div",Sr(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),gr("div",Sr(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[gr(If,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),gr("div",{ref:i,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),rg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},sg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const ag=(e,t,n)=>!n||g(n)&&!n.length?[]:n.map((n=>{var o;if(A(n)){if(!m(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!m(rg,r))return;return function(e,t){if(A(t))for(const n in t)if(m(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=rf(o))}}(r,n.attrs),i=h(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClickCapture:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),jr(n.name,i,ag(e,t,n.children))}return"text"===n.type&&_(n.text)&&""!==n.text?br((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return m(sg,t)&&sg[t]?sg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function lg(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,i,r=[],s=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&Zf[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""})),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce((function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e}),{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const cg=xu({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Ir(),o=n&&n.vnode.scopeId||"",i=hn(null),r=hn([]),s=Cu(i,t);function a(e,t={}){s("itemclick",e,t)}return ho((()=>e.nodes),(function(){let t=e.nodes;_(t)&&(t=lg(e.nodes)),r.value=ag(o,a,t)}),{immediate:!0,deep:!0}),()=>jr("uni-rich-text",{ref:i},jr("div",{},r.value))}}),ug=xu({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=hn(null),o=$r((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),i=$r((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:r,refresherDefaultStyle:s,refresherThreshold:a}=e;return gr("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?gr("div",{class:"uni-scroll-view-refresh"},[gr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?gr("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[gr("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),gr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?gr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[gr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?gr("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),dg=ke(!0),hg=xu({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=hn(null),r=hn(null),s=hn(null),a=hn(null),l=Cu(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=$r((()=>Number(e.scrollTop)||0)),n=$r((()=>Number(e.scrollLeft)||0));return{state:Gt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:p,_scrollLeftChanged:f,_scrollTopChanged:m}=function(e,t,n,o,i,r,s,a,l){let c=!1,u=0,d=!1,h=()=>{};const p=$r((()=>e.scrollX)),f=$r((()=>e.scrollY)),m=$r((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=$r((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function y(e,t){const n=s.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=a.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",h),r.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),r.addEventListener("transitionend",h),r.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function b(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),f.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function v(t){f.value&&(e.scrollWithAnimation?y(t,"y"):s.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?y(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=s.value.scrollLeft+n;e.scrollWithAnimation?y(i,"x"):s.value.scrollLeft=i}if(f.value){let n=o.top-t.top,i=s.value.scrollTop+n;e.scrollWithAnimation?y(i,"y"):s.value.scrollTop=i}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",h),a.value.removeEventListener("webkitTransitionEnd",h)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:C.y-k.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:C.y-k.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:C.y-k.y}))}t.refreshState=n}}let k={x:0,y:0},C={x:0,y:e.refresherThreshold};return Xo((()=>{Ln((()=>{v(n.value),_(o.value)})),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),b(e)},a=null,l=function(n){if(null===k)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=s.value;if(Math.abs(o-k.x)>Math.abs(r-k.y))if(p.value){if(0===l.scrollLeft&&o>k.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&ok.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},h=function(e){1===e.touches.length&&(k={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),k={x:0,y:0},C={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",h,dg),s.value.addEventListener("touchmove",l,ke(!1)),s.value.addEventListener("scroll",r,ke(!1)),s.value.addEventListener("touchend",m,dg),Zo((()=>{s.value.removeEventListener("touchstart",h),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",r),s.value.removeEventListener("touchend",m)}))})),$o((()=>{f.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)})),ho(n,(e=>{v(e)})),ho(o,(e=>{_(e)})),ho((()=>e.scrollIntoView),(e=>{w(e)})),ho((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:p,realScrollY:f,_scrollTopChanged:v,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,a,t),g=$r((()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),y=$r((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:h}=c;return gr("uni-scroll-view",{ref:i},[gr("div",{ref:s,class:"uni-scroll-view"},[gr("div",{ref:r,style:g.value,class:y.value},[t?gr(ug,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,gr("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});const pg=xu({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=hn(null),o=hn(null),i=hn(null),r=hn(Number(e.value));r.valueNumber(e.max)&&(r.value=Number(e.max)),ho((()=>e.value),(e=>{r.value=Number(e)}));const s=Cu(n,t),a=function(e,t){const n=()=>{return n=t.value,o=e.min,i=e.max,i=Number(i),o=Number(o),100*(n-o)/(i-o)+"%";var n,o,i},o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9";return{setBgColor:$r((()=>({backgroundColor:o()}))),setBlockBg:$r((()=>({left:n()}))),setActiveColor:$r((()=>({backgroundColor:i(),width:n()}))),setBlockStyle:$r((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))}}(e,r),{_onClick:l,_onTrack:c}=function(e,t,n,o,i){const r=$r((()=>{const t=Number(e.step);return isNaN(t)?1:t})),s=n=>{e.disabled||(l(n),i("change",n,{value:t.value}))},a=(e,t,n)=>Math.round((n-e)/t)*t+e,l=i=>{const s=Number(e.max),l=Number(e.min),c=o.value,u=getComputedStyle(c,null).marginLeft;let d=c.offsetWidth;d+=parseInt(u);const h=n.value,p=h.offsetWidth-(e.showValue?d:0),f=h.getBoundingClientRect().left,m=(i.x-f)/p,g=(r.value+"").split(".")[1];t.value=parseFloat(a(l,r.value,function(e,t,n){return n=Math.min(1,Math.max(0,n)),e*(1-n)+t*n}(l,s,m)).toFixed(g?g.length:0))},c=n=>{if(!e.disabled)return"move"===n.detail.state?(l({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},u=Ei(Bu,!1);if(u){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};u.addField(n),Zo((()=>{u.removeField(n)}))}return{_onClick:s,_onTrack:c}}(e,r,n,o,s);return Xo((()=>{Lm(i.value,c)})),()=>{const{setBgColor:t,setBlockBg:s,setActiveColor:c,setBlockStyle:u}=a;return gr("uni-slider",{ref:n,onClick:ku(l)},[gr("div",{class:"uni-slider-wrapper"},[gr("div",{class:"uni-slider-tap-area"},[gr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[gr("div",{ref:i,style:s.value,class:"uni-slider-handle"},null,4),gr("div",{style:u.value,class:"uni-slider-thumb"},null,4),gr("div",{style:c.value,class:"uni-slider-track"},null,4)],4)]),yo(gr("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[as,e.showValue]])])],8,["onClick"])}}});function fg(e,t,n,o,i,r){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=$r((()=>n.value.length>t.displayMultipleItems)),b=$r((()=>e.circular&&y.value));function v(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||b.value&&function(o){if(!u)for(let i=n.value,r=i.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(i-=c.length),i=a%1>.5||a<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(b.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(f=!1);const e=p,o=e.toPos,i=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){v(o),p=null,f=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}v(o+i*u*u/2),l=requestAnimationFrame(x)}function S(e,o,i){w();const r=t.duration,s=n.value.length;let a=d;if(b.value)if(i<0){for(;ae;)a-=s}else if(i>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;te.vertical,()=>b.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),p&&(v(p.toPos),p=null);const i=n.value;for(let t=0;t0&&h<1||(h=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(v(a+l-m),m=l):(v(l),e.autoplay&&k())):(u=!0,v(-t.displayMultipleItems-1))})),ho((()=>t.interval),(()=>{c&&(s(),k())})),ho((()=>t.current),((e,o)=>{!function(e,o){const i=g;g="";const s=n.value;if(!i){const t=s.length;S(e,"",b.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)})),ho((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),ho((()=>e.autoplay&&!t.userTracking),C),C(e.autoplay&&!t.userTracking),Xo((()=>{let i=!1,r=0,a=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?S(t.current,"",0):(g="touch",t.current=i,S(i,"touch",0!==o?o:0===i&&b.value&&d>=1?1:0))}Lm(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,s(),m=d,r=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(i){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;r=.6*r+.4*t,b.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),v(n)}const d=a-s||1,h=o.value;e.vertical?u(-i.dy/h.offsetHeight,-i.ddy/d):u(-i.dx/h.offsetWidth,-i.ddx/d)}(c.detail),!1}}}),!0)})),ei((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",b.value?1:0)},circularEnabled:b,swiperEnabled:y}}const mg=xu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=hn(null),i=Cu(o,n),r=hn(null),s=hn(null),a=function(e){return Gt({interval:$r((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:$r((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:$r((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=$r((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Tc(e.previousMargin,!0),bottom:Tc(e.nextMargin,!0)}:{top:0,bottom:0,left:Tc(e.previousMargin,!0),right:Tc(e.nextMargin,!0)}),t})),c=$r((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],h=hn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(rn(o))}h.value=e}Bi("addSwiperContext",(function(e){d.push(e),p()}));Bi("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=fg(e,a,h,s,n,i);let y=()=>null;return y=gg(o,e,a,f,h,m,g),()=>{const n=t.default&&t.default();return u=Em(n),gr("uni-swiper",{ref:o},[gr("div",{ref:r,class:"uni-swiper-wrapper"},[gr("div",{class:"uni-swiper-slides",style:l.value},[gr("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&gr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,o)=>gr("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,c=!1,u=hn(!1);function d(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}co((()=>{a="auto"===t.navigation,u.value=!0!==t.navigation||a,v()})),co((()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,c=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,c=!0,a&&(u.value=!0))}));const p={onMouseover:e=>d(e,"over"),onMouseout:e=>d(e,"out")};function f(e,t,s){if(e.stopPropagation(),s)return;const a=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=a-1);break;case"next":l++,l>=a&&r.value&&(l=0)}o(l)}const m=()=>Mc(zc,t.navigationColor,26);let g;const y=n=>{clearTimeout(g);const{clientX:o,clientY:i}=n,{left:r,right:s,top:a,bottom:l,width:c,height:d}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(i-a{u.value=h}),300);u.value=h},b=()=>{u.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",b),a&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",b)))}return Xo(v),function(){const e={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?gr(Ji,null,[gr("div",Sr({class:["uni-swiper-navigation uni-swiper-navigation-prev",h({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"prev",l)},p),[m()],16,["onClick"]),gr("div",Sr({class:["uni-swiper-navigation uni-swiper-navigation-next",h({"uni-swiper-navigation-disabled":c},e)],onClick:e=>f(e,"next",c)},p),[m()],16,["onClick"])]):null}},yg=xu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=hn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,s=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=s,r.style.transform=s)}};return Xo((()=>{const e=Ei("addSwiperContext");e&&e(o)})),ei((()=>{const e=Ei("removeSwiperContext");e&&e(o)})),()=>gr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),bg={ensp:" ",emsp:" ",nbsp:" "};function vg(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&bg[t]&&" "===r&&(r=bg[t]),i?(o+="n"===r?"\n":"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,bg.nbsp).replace(/ /g,bg.ensp).replace(/ /g,bg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const _g=xu({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=hn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==er){let n=[];n=vg(t.children,{space:e.space,decode:e.decode});const i=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(br(e)),t!==i&&o.push(gr("br"))}))}else o.push(t)})),gr("uni-text",{ref:n,selectable:!!e.selectable||null},[gr("span",null,o)],8,["selectable"])}}}),wg=h({},bm,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Sg.concat("return").includes(e)}});let xg=!1;const Sg=["done","go","next","search","send"];const kg=xu({name:"Textarea",props:wg,emits:["confirm","change","linechange",...vm],setup(e,{emit:t,expose:n}){const o=hn(null),i=hn(null),{fieldRef:r,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=xm(e,o,t),u=$r((()=>s.value.split("\n"))),d=$r((()=>Sg.includes(e.confirmType))),h=hn(0),p=hn(null);function f({height:e}){h.value=e}function m(e){}function g(e){"Enter"===e.key&&d.value&&e.preventDefault()}function y(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return ho((()=>h.value),(t=>{const n=o.value,r=p.value,s=i.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=r.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";xg=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?gr("textarea",{key:"disabled-textarea",ref:r,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":xg},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):gr("textarea",{key:"textarea",ref:r,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":xg},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:g,onKeyup:y,onChange:m},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup","onChange"]);return gr("uni-textarea",{ref:o,"auto-height":e.autoHeight},[gr("div",{ref:i,class:"uni-textarea-wrapper"},[yo(gr("div",Sr(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[as,!s.value.length]]),gr("div",{ref:p,class:"uni-textarea-line"},[" "],512),gr("div",{class:{"uni-textarea-compute":!0,"uni-textarea-compute-auto-height":e.autoHeight}},[u.value.map((e=>gr("div",null,[e.trim()?e:"."]))),gr(If,{initial:!0,onResize:f},null,8,["initial","onResize"])],2),"search"===e.confirmType?gr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Cg=xu({name:"View",props:h({},Au),setup(e,{slots:t}){const n=hn(null),{hovering:o,binding:i}=Tu(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?gr("uni-view",Sr({class:o.value?r:"",ref:n},i),[si(t,"default")],16):gr("uni-view",{ref:n},[si(t,"default")],512)}}});function Ag(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Tg(e,t,n){e&&Yl(n||Dc(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function Ig(e,t){e&&function(e,t){t=Ql(e,t),delete ql[t]}(t||Dc(),e)}function Bg(e,t,n,o){const i=Ir().proxy;o=null==o?Oc():o,Xo((()=>{Tg(t||Ag(i),e,o),!n&&t||ho((()=>i.id),((t,n)=>{Tg(Ag(i,t),e,o),Ig(n&&Ag(i,n))}))})),Zo((()=>{Ig(t||Ag(i),o)}))}let Eg=0;function Pg(e){const t=Oc(),n=Ir().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Eg++;return Xo((()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}})),`${o}.${i}`}function zg(e,t,n,o){v(t)&&Qo(e,t.bind(n),o)}function Mg(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!v(t))&&(Me.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];g(i)?i.forEach((e=>zg(o,e,n,t))):zg(o,i,n,t)}})),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,Vc(n,"onLoad",e),t.vapor||delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&Vc(n,"onShow")}catch(i){console.error(i.message+"\n"+i.stack)}}}function Og(e,t,n){Mg(e,t,n)}function Rg(e,t,n){return e[t]=n}function Lg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Ng(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r.onError?Vc(r.proxy,"onError",n):An(n,0,o&&o.$.vnode,!1)}}function Dg(e,t){return e?[...new Set([].concat(e,t))]:t}function $g(e){const t=e.config;var n;t.errorHandler=Re(e,Ng),n=t.optionMergeStrategies,Me.forEach((e=>{n[e]=Dg}));const o=t.globalProperties;o.$set=Rg,o.$applyOptions=Og,o.$callMethod=Lg,function(e){Oe.forEach((t=>t(e)))}(e)}function jg(e){const t=bl({history:Vg(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Fg});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Hg[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let Hg=Object.create(null);const Fg=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Hg[o]);if(t)return t}return{left:0,top:0};var o};function Vg(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=za(e);return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Hp(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Mp(t[i]);Fp(qp(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Wg={install(e){$g(e),su(e),yu(e),e.config.warnHandler||(e.config.warnHandler=Ug),jg(e)}};function Ug(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const qg={class:"uni-async-loading"},Qg=gr("i",{class:"uni-loading"},null,-1),Yg=Su({name:"AsyncLoading",render:()=>(ir(),cr("div",qg,[Qg]))});function Gg(){window.location.reload()}const Xg=Su({name:"AsyncError",props:["error"],setup(){Nl();const{t:e}=Rl();return()=>gr("div",{class:"uni-async-error",onClick:Gg},[e("uni.async.error")],8,["onClick"])}});let Kg;function Jg(){return Kg}function Zg(e){Kg=e,Object.defineProperty(Kg.$.ctx,"$children",{get:()=>Hp().map((e=>e.$vm))});const t=Kg.$.appContext.app;t.component(Yg.name)||t.component(Yg.name,Yg),t.component(Xg.name)||t.component(Xg.name,Xg),function(e){e.$vm=e,e.$mpType="app";const t=hn(Rl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(Kg),function(e,t){const n=e.$options||{};n.globalData=h(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(Kg),mu(),Xc()}function ey(e,{type:t,clone:n,init:o,setup:i,before:r,options:s}){n&&(e=h({},e)),r&&r(e);const a=e.setup;return e.setup=(e,t)=>{const n=Ir();if(o(n.proxy),i(n),a)return a(e,t)},e}function ty(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ey(e.default,t):ey(e,t)}function ny(e,t){return ty(e,{type:"page",clone:!0,init:Up,setup(e){e.$pageInstance=e;const t=Du(),n=Te(t.query);e.attrs.__pageQuery=n,Mp(e.proxy).options=n,e.proxy.options=n;const o=Lu();var i;Ep(o),e.onReachBottom=Gt([]),e.onPageScroll=Gt([]),ho([e.onReachBottom,e.onPageScroll],(()=>{const t=Lc();e.proxy===t&&tf(e,o)}),{once:!0}),Go((()=>{Gp(e,o)})),Xo((()=>{Xp(e);const{onReady:n}=e;n&&N(n),sy(t)})),Ho((()=>{if(!e.__isVisible){Gp(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&N(n),Ln((()=>{sy(t)}))}}),"ba",i),function(e,t){Ho(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&N(t)}}}));const r=Fc(e.proxy);return function(e,t){zv.subscribe(Ql(e,"invokeViewApi"),Gl)}(r),Zo((()=>{!function(e){zv.unsubscribe(Ql(e,"invokeViewApi")),Object.keys(ql).forEach((t=>{0===t.indexOf(e+".")&&delete ql[t]}))}(r)})),n}})}function oy(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Dy(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Mv.emit("onResize",{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function iy(e){A(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Mv.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function ry(){const{emit:e}=Mv;"visible"===document.visibilityState?e("onAppEnterForeground",h({},Tf)):e("onAppEnterBackground")}function sy(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Vc("onTabItemTap",{index:n,text:t,pagePath:o})}function ay(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function ly(e,t,n,o){const i=Gt({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),r={x:0,y:0};let s=null;let a;return{state:i,onTouchstart:function(e){const t=e.targetTouches[0];r.x=t.pageX,r.y=t.pageY,i.gestureType="none",i.volumeOld=0},onTouchmove:function(l){function c(){l.stopPropagation(),l.preventDefault()}o.fullscreen&&c();const u=i.gestureType;if("stop"===u)return;const d=l.targetTouches[0],h=d.pageX,p=d.pageY,f=r,m=n.value;if("progress"===u?(!function(e){const n=t.currentDuration;let o=e/600*n+i.currentTimeOld;o<0?o=0:o>n&&(o=n);i.currentTimeNew=o}(h-f.x),i.seeking=!0):"volume"===u&&function(e){const t=n.value,o=i.volumeOld;let r;"number"==typeof o&&(r=o-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(a),a=void 0,null==a&&(a=setTimeout((()=>{i.toastThin=!1,a=void 0}),1e3)),t.volume=r,i.volumeNew=r)}(p-f.y),"none"===u)if(Math.abs(h-f.x)>Math.abs(p-f.y)){if(!e.enableProgressGesture)return void(i.gestureType="stop");i.gestureType="progress",i.currentTimeOld=i.currentTimeNew=m.currentTime,o.fullscreen||c()}else{if(!e.pageGesture&&!e.vslideGesture)return void(i.gestureType="stop");"none"!==i.gestureType&&null!=s||(s=setTimeout((()=>{i.toastThin=!0}),500)),i.gestureType="volume",i.volumeOld=m.volume,o.fullscreen||c()}},onTouchend:function(e){const t=n.value;"none"!==i.gestureType&&"stop"!==i.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===i.gestureType&&i.currentTimeOld!==i.currentTimeNew&&(t.currentTime=i.currentTimeNew),i.gestureType="none"}}}const cy=xu({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=hn(null),r=hn(null),s=Cu(i,t),{state:a}=pm(),{$attrs:l}=Bm({excludeListeners:!0});Vl();const{videoRef:c,state:u,play:d,pause:h,stop:p,seek:f,playbackRate:m,toggle:y,onDurationChange:b,onLoadedMetadata:v,onProgress:_,onWaiting:w,onVideoError:x,onPlay:S,onPause:k,onEnded:C,onTimeUpdate:A}=function(e,t,n){const o=hn(null),i=$r((()=>rf(e.src))),r=$r((()=>"true"===e.muted||!0===e.muted)),s=Gt({start:!1,src:i,playing:!1,currentTime:0,duration:0,currentDuration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function a(e){const t=e.target,n=t.buffered;n.length&&(s.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return ho((()=>i.value),(()=>{s.playing=!1,s.currentTime=0})),ho((()=>s.buffered),(e=>{n("progress",{},{buffered:e})})),ho((()=>r.value),(e=>{o.value.muted=e})),ho([()=>s.duration,()=>e.duration],(()=>{let t=Number(e.duration);isNaN(t)&&(t=0),s.currentDuration=t>0?t:s.duration})),{videoRef:o,state:s,play:function(){const e=o.value;s.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;s.playing?e.pause():e.play()},onDurationChange:function({target:e}){s.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){s.playing=!1,n("error",e,{})},onPlay:function(e){s.start=!0,s.playing=!0,n("play",e,{})},onPause:function(e){s.playing=!1,n("pause",e,{})},onEnded:function(e){s.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;s.pauseUpdatingCurrentTime||(s.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:T,danmuRef:I,updateDanmu:B,toggleDanmu:E,sendDanmu:P}=function(e,t){const n=hn(null),o=Gt({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=g(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function s(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout((function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout((function(){t.remove()}),4e3)}),17)}return r.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,a=i,l={time:n,index:a.index};if(n>a.time)for(let i=a.index+1;i=(e.time||0)))break;l.index=i,t.playing&&o.enable&&s(e)}else if(n-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:z,onFullscreenChange:M,emitFullscreenChange:O,toggleFullscreen:R,requestFullScreen:L,exitFullScreen:N}=function(e,t,n,o,i){const r=Gt({fullscreen:!1}),s=/^Apple/.test(navigator.vendor);function a(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||s&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&a(e)}function c(){l(!1)}return Zo(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||a(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:a,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(s,r,c,a,i),{state:D,onTouchstart:$,onTouchend:j,onTouchmove:H}=ly(e,u,c,z),{state:F,progressRef:V,ballRef:W,clickProgress:U,toggleControls:q,autoHideEnd:Q,autoHideStart:Y}=function(e,t,n,o){const i=hn(null),r=hn(null),s=$r((()=>e.showCenterPlayBtn&&!t.start)),a=hn(!0),l=$r((()=>!s.value&&e.controls&&a.value)),c=Gt({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:s,controlsShow:l,controlsVisible:a});let u;function d(){u=setTimeout((()=>{c.controlsVisible=!1}),3e3)}function h(){u&&(clearTimeout(u),u=null)}return Zo((()=>{u&&clearTimeout(u)})),ho((()=>c.controlsShow&&t.playing&&!c.controlsTouching),(e=>{e?d():h()})),Xo((()=>{const e=ke(!1);let s,a,l,u=!0;const d=r.value;function h(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-s)100&&(f=100),t.progress=f,null==o||o(t.currentDuration*f/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",h,e),u||(o.preventDefault(),o.stopPropagation(),n(t.currentDuration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",(n=>{c.controlsTouching=!0;const o=n.targetTouches[0];s=o.pageX,a=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",h,e)})),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)})),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,s=e.offsetX;for(;r&&r!==o;)s+=r.offsetLeft,r=r.parentNode;const a=o.offsetWidth;let l=0;s>=0&&s<=a&&(l=s/a,n(t.currentDuration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:h}}(e,u,f,(e=>{D.currentTimeNew=e}));!function(e,t,n,o,i,r,s,a){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:s,exitFullScreen:a};Bg(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)}),Pg(),!0)}(d,h,p,f,P,m,L,N);const G=function(e,t,n,o,i){const r=$r((()=>"progress"===t.gestureType||n.touching));return ho(r,(o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)})),ho([()=>e.currentTime,()=>e.currentDuration],(()=>{e.currentDuration>0?e.progress=e.currentTime/e.currentDuration*100:e.progress=0,e.progress>100&&(e.progress=100)}),{immediate:!0}),ho((()=>t.currentTimeNew),(t=>{e.currentTime=t})),r}(u,D,F);return()=>gr("uni-video",{ref:i,id:e.id,onClick:q},[gr("div",{ref:r,class:"uni-video-container",onTouchstart:$,onTouchend:j,onTouchmove:H,onFullscreenchange:Ls(M,["stop"]),onWebkitfullscreenchange:Ls((e=>M(e,!0)),["stop"])},[gr("video",Sr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:{"uni-video-video":!0,"uni-video-video-fullscreen":z.fullscreen},"webkit-playsinline":!0,playsinline:!0,onDurationchange:b,onLoadedmetadata:v,onProgress:_,onWaiting:w,onError:x,onPlay:S,onPause:k,onEnded:C,onTimeupdate:e=>{A(e),B(e)},onWebkitbeginfullscreen:()=>O(!0),onX5videoenterfullscreen:()=>O(!0),onWebkitendfullscreen:()=>O(!1),onX5videoexitfullscreen:()=>O(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),yo(gr("div",{class:"uni-video-bar uni-video-bar-full",onClick:Ls((()=>{}),["stop"])},[gr("div",{class:"uni-video-controls"},[yo(gr("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:Ls(y,["stop"])},null,10,["onClick"]),[[as,e.showPlayBtn]]),yo(gr("div",{class:"uni-video-current-time"},[ay(u.currentTime)],512),[[as,e.showProgress]]),yo(gr("div",{ref:V,class:"uni-video-progress-container",onClick:Ls(U,["stop"])},[gr("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":G.value}},[gr("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),gr("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),gr("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":G.value}},[gr("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[as,e.showProgress]]),yo(gr("div",{class:"uni-video-duration"},[ay(u.currentDuration)],512),[[as,e.showProgress]])]),yo(gr("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":T.enable},onClick:Ls(E,["stop"])},null,10,["onClick"]),[[as,e.danmuBtn]]),yo(gr("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":z.fullscreen},onClick:Ls((()=>R(!z.fullscreen)),["stop"])},null,10,["onClick"]),[[as,e.showFullscreenBtn]])],8,["onClick"]),[[as,F.controlsShow]]),yo(gr("div",{ref:I,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[as,u.start&&T.enable]]),F.centerPlayBtnShow&&gr("div",{class:"uni-video-cover",onClick:Ls((()=>{}),["stop"])},[gr("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:Ls(d,["stop"])},null,8,["onClick"])],8,["onClick"]),gr("div",{class:"uni-video-loading"},["volume"===D.gestureType?gr("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":D.toastThin},style:{marginTop:"5px"}},[!D.toastThin&&D.volumeNew>0&&"volume"===D.gestureType?gr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!D.toastThin&&gr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),gr("div",{class:"uni-video-toast-draw",style:{width:100*D.volumeNew+"%"}},null)],2):null]),gr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":G.value}},[gr("div",{class:"uni-video-toast-title"},[gr("span",{class:"uni-video-toast-title-current-time"},[ay(D.currentTimeNew)])," / ",ay(u.currentDuration)])],2),gr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),uy=({name:e,arg:t})=>{if("postMessage"===e);else switch(e){case"navigateTo":Lb(t);break;case"navigateBack":Rb(t);break;case"switchTab":gp(t);break;case"reLaunch":_p(t);break;case"redirectTo":bp(t)}},dy=ve((()=>Mv.on("onWebInvokeAppService",uy))),hy=xu({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){dy();const n=hn(null),o=hn(null),{$attrs:i,$excludeAttrs:r,$listeners:s}=Bm({excludeListeners:!0}),a=Cu(n,t);let l;return(()=>{const t=document.createElement("iframe");t.onload=function(t){a("load",t,{src:e.src})},co((()=>{for(const e in i.value)if(m(i.value,e)){const n=i.value[e];t[e]=n}})),co((()=>{t.src=rf(e.src)})),o.value=t,l=function(e,t,n){return()=>{var o,i;if(n){const{top:n,left:o,width:i,height:r}=e.value.getBoundingClientRect();be(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:i+"px",height:r+"px"})}else be(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(i=e.value)?void 0:i.style.height)||"150px"})}}(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(t)})(),Xo((()=>{var t;l(),!e.fullscreen&&(null==(t=n.value)||t.appendChild(o.value))})),$o((()=>{e.fullscreen&&(o.value.style.display="block")})),jo((()=>{e.fullscreen&&(o.value.style.display="none")})),Zo((()=>{e.fullscreen&&document.body.removeChild(o.value)})),()=>gr(Ji,null,[gr("uni-web-view",Sr({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,r.value,{ref:n}),[gr(If,{onResize:l},null,8,["onResize"])],16)])}});let py,fy=0;function my(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+fy++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[a],r.remove()}window[a]=e=>{v(n)&&n(e),c()},r.onerror=()=>{v(o)&&o(),c()},i=setTimeout((function(){v(o)&&o(),c()}),l),r.src=e+(e.indexOf("?")>=0?"&":"?")+s+"="+a,document.body.appendChild(r)}function gy(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",(()=>{this.callback()})),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function s(){this.Text&&this.option.map.remove(this.Text)}class a{constructor(e={},a){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=s,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(ky())this.callback=a,this.visible&&this.createAMapText();else if(Cy())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,ky()?this.visible&&this.createAMapText():Cy()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!ky()&&!Cy()){const t=new(e.OverlayView||e.Overlay);a.prototype.setMap=t.setMap,a.prototype.getMap=t.getMap,a.prototype.getPanes=t.getPanes,a.prototype.getProjection=t.getProjection,a.prototype.map_changed=t.map_changed,a.prototype.set=t.set,a.prototype.get=t.get,a.prototype.setOptions=t.setValues,a.prototype.bindTo=t.bindTo,a.prototype.bindsTo=t.bindsTo,a.prototype.notify=t.notify,a.prototype.setValues=t.setValues,a.prototype.unbind=t.unbind,a.prototype.unbindAll=t.unbindAll,a.prototype.addListener=t.addListener}return a}const yy={};function by(e,t){const n=wy();if(!n.key)return void console.error("Map key not configured.");const o=yy[n.type]=yy[n.type]||[];if(py)t(py);else if(window[n.type]&&window[n.type].maps)py=ky()||Cy()?window[n.type]:window[n.type].maps,py.Callout=py.Callout||gy(py),t(py);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],py=ky()||Cy()?window[n.type]:window[n.type].maps,py.Callout=gy(py),o.forEach((e=>e(py))),o.length=0},ky()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=vy(n.type);n.type===_y.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===_y.BMAP?s.src=`${a}ak=${n.key}&callback=${r}`:s.src=`${a}key=${n.key}&callback=${r}`,s.onerror=function(){console.error("Map load failed.")},document.body.appendChild(s)}}const vy=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);var _y=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(_y||{});function wy(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let xy=!1,Sy=!1;const ky=()=>Sy?xy:(Sy=!0,xy="AMap"===wy().type),Cy=()=>"BMapGL"===wy().type;const Ay=Sd("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),Ty=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Iy;function By(){if(Iy=Iy||Ty.__DC_STAT_UUID,!Iy){Iy=Date.now()+""+Math.floor(1e7*Math.random());try{Ty.__DC_STAT_UUID=Iy}catch(e){}}return Iy}function Ey(){if(!0!==__uniConfig.darkmode)return _(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Py(){let e,t="0",n="",o="phone";const i=navigator.language;if(lf){e="iOS";const o=sf.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=t.split(".")[0];if(Number(i)>=18){const e=sf.match(/Version\/([\d\.]+)/);e&&(t=e[1])}const r=sf.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(af){e="Android";const o=sf.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=sf.match(/\((.+?)\)/),r=i?i[1].split(";"):sf.split(" "),s=[/\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-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=ff(),n=mf(t),o=gf(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=yf();let s=window.innerHeight;const a=yc.top,l={left:yc.left,right:r-yc.right,top:yc.top,bottom:s-yc.bottom,width:r-yc.left-yc.right,height:s-yc.top-yc.bottom},{top:c,bottom:u}=xc();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:yc.top,right:yc.right,bottom:yc.bottom,left:yc.left},screenTop:i-s}}));let My,Oy=!0;function Ry(){Oy&&(My=Py())}const Ly=xd(0,(()=>{Ry();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:c}=My;return h({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:By(),deviceOrientation:s,deviceType:a,model:o,osName:l?l.toLowerCase():void 0,osVersion:c,platform:i,system:r})})),Ny=xd(0,(()=>{Ry();const{theme:e,language:t,browserName:n,browserVersion:o}=My;return h({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:zh?zh():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,isUniAppX:!1,language:t,SDKVersion:"",theme:e,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,version:""},{})})),Dy=xd(0,(()=>{Oy=!0,Ry(),Oy=!1;const e=zy(),t=Ly(),n=Ny();Oy=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=My,l=h(e,t,n,{browserName:i,browserVersion:r,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0,ua:o,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,l})),$y="none";function jy(){Vy().then((({networkType:e})=>{Mv.invokeOnCallback("onNetworkStatusChange",{isConnected:e!==$y,networkType:e})}))}function Hy(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const Fy=vd("onNetworkStatusChange",(()=>{const e=Hy();e?e.addEventListener("change",jy):(window.addEventListener("offline",jy),window.addEventListener("online",jy))})),Vy=Sd("getNetworkType",((e,{resolve:t})=>{const n=Hy();let o="unknown";if(n){const e=n.effectiveType;o=n.type,"cellular"===o&&e?o=e.replace("slow-",""):o&&o!==$y||!e?[$y,"wifi"].includes(o)||(o="unknown"):o=e}else!1===navigator.onLine&&(o=$y);return t({networkType:o})})),Wy=!!window.navigator.vibrate,Uy=Sd("vibrateShort",((e,{resolve:t,reject:n})=>{Wy&&window.navigator.vibrate(15)?t():n("vibrateShort:fail")}));const qy=Sd("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise(((e,t)=>{var r=e=>{try{a(i.next(e))}catch(n){t(n)}},s=e=>{try{a(i.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);a((i=i.apply(n,o)).next())}));var n,o,i}),0,Rh);const Qy=xd(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)})),Yy=Sd("setStorage",(({key:e,data:t},{resolve:n,reject:o})=>{try{Qy(e,t),n()}catch(i){o(i.message)}}));function Gy(e){const t=localStorage&&localStorage.getItem(e);if(!_(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=_(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Xy=xd(0,(e=>{try{return Gy(e)}catch(t){return""}})),Ky=xd(0,(e=>{localStorage&&localStorage.removeItem(e)})),Jy=Sd("hideKeyboard",((e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));const Zy=Sd("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,Fh),eb={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function tb({count:e,sourceType:t,type:n,extension:o}){dm();const i=document.createElement("input");return i.type="file",be(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${eb[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(i.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}let nb=null;const ob=Sd("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{Hl();const{t:s}=Rl();nb&&(document.body.removeChild(nb),nb=null),nb=tb({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(nb),nb.addEventListener("cancel",(()=>{r("chooseFile:fail cancel")})),nb.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i(r=r||kf(t),r)}),ie))},tempFiles:o})})),nb.click(),hm()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,Hh);let ib=null;const rb=Sd("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{Hl();const{t:r}=Rl();ib&&(document.body.removeChild(ib),ib=null),ib=tb({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(ib),ib.addEventListener("cancel",(()=>{i("chooseImage:fail cancel")})),ib.addEventListener("change",(function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(r=r||kf(t),r)}),oe))},tempFiles:i})})),ib.click(),hm()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Dh),sb={esc:["Esc","Escape"],enter:["Enter"]},ab=Object.keys(sb);function lb(){const e=hn(""),t=hn(!1),n=n=>{if(t.value)return;const o=ab.find((e=>-1!==sb[e].indexOf(n.key)));o&&(e.value=o),Ln((()=>e.value=""))};return Xo((()=>{document.addEventListener("keyup",n)})),Zo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const cb=gr("div",{class:"uni-mask"},null,-1);function ub(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),$s(Eo({setup:()=>()=>(ir(),cr(e,t,null,16))}))}function db(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function hb(e,{onEsc:t,onEnter:n}){const o=hn(e.visible),{key:i,disable:r}=lb();return ho((()=>e.visible),(e=>o.value=e)),ho((()=>o.value),(e=>r.value=!e)),co((()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let pb=0,fb="";function mb(e){let t=pb;pb+=e?1:-1,pb=Math.max(0,pb),pb>0?0===t&&(fb=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=fb,fb="")}const gb=Su({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Gt({direction:"none"});let n=1,o=0,i=0,r=0,s=0;function a({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,i=t.height}function c(e){const t=e.target.getBoundingClientRect();r=t.width,s=t.height,d(e)}function u(e){const a=n*o>r,l=n*i>s;t.direction=a&&l?"all":a?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return gr(Pm,{style:n,onTouchstart:ku(c),onTouchmove:ku(d),onTouchend:ku(u)},{default:()=>[gr(Wm,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[gr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function yb(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const bb=Su({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Xo((()=>mb(!0))),ei((()=>mb(!1)));const{key:n}=lb(),o=hn(null),i=hn(yb(e));let r;function s(){r||Ln((()=>{t("close")}))}function a(e){i.value=e.detail.current}ho((()=>e.current),(()=>i.value=yb(e))),ho((()=>n.value),(e=>{"esc"===e&&s()})),Xo((()=>{const e=o.value;let t=0,n=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,n=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(r=!0)}))}));const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return gr("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[gr(mg,{navigation:"auto",current:i.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map((e=>gr(yg,null,{default:()=>[gr(gb,{src:e},null,8,["src"])]}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!ur(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),gr("div",{style:l},[Mc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let vb,_b=null;const wb=()=>{_b=null,Ln((()=>{null==vb||vb.unmount(),vb=null}))},xb=Sd("previewImage",((e,{resolve:t})=>{_b?h(_b,e):(_b=Gt(e),Ln((()=>{vb=ub(bb,_b,wb),vb.mount(db("u-a-p"))}))),t()}),0,Vh);let Sb=null;const kb=Sd("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{Hl();const{t:i}=Rl();Sb&&(document.body.removeChild(Sb),Sb=null),Sb=tb({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Sb),Sb.addEventListener("cancel",(()=>{o("chooseVideo:fail cancel")})),Sb.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const i={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return o=o||kf(this.tempFile),o}});const r=document.createElement("video");if(void 0!==r.onloadedmetadata){const e=kf(t);r.onloadedmetadata=function(){Cf(e),n(h(i,{duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0}))},setTimeout((()=>{r.onloadedmetadata=null,Cf(e),n(i)}),300),r.src=e}else n(i)})),Sb.click(),hm()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,$h),Cb=wd("request",(({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const h=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(!n)return"string";if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(_(t)||t instanceof ArrayBuffer)d=t;else if("json"===h)try{d=JSON.stringify(t)}catch(f){d=t.toString()}else if("urlencoded"===h){const e=[];for(const n in t)m(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let p;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;p=new Tb(t);const h={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},f=setTimeout((function(){p.abort(),u("timeout",{errCode:5})}),l);h.signal.addEventListener("abort",(function(){clearTimeout(f),u("abort",{errCode:600003})})),window.fetch(e,h).then((e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach(((e,t)=>{s[t]=e}));const a=Ab(s);if(p._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=Bb(n,r,i)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),p._emitter.emit("chunkReceived",{data:o}),d()}))};d()}),(e=>{u(e,{errCode:5})}))}else{const t=new XMLHttpRequest;p=new Tb(t),t.open(o,e);for(const e in n)m(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout((function(){t.onload=t.onabort=t.onerror=null,p.abort(),u("timeout",{errCode:5})}),l);t.responseType=r,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=Bb(n,r,i)),c({data:n,statusCode:e,header:Ib(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return p}),0,Qh),Ab=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Ib(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function Bb(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class Eb{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(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 Pb=wd("downloadFile",(({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,s=new XMLHttpRequest,a=new Eb(s);return s.open("GET",e,!0),Object.keys(t).forEach((e=>{s.setRequestHeader(e,t[e])})),s.responseType="blob",s.onload=function(){clearTimeout(r);const t=s.status,n=this.response;let i;const a=s.getResponseHeader("content-disposition");if(a){const e=a.match(/filename="?(\S+)"?\b/);e&&(i=e[1])}n.name=i||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:kf(n)})},s.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},s.onerror=function(){clearTimeout(r),i("",{errCode:602001})},s.onprogress=function(e){a._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})}))},s.send(),r=setTimeout((function(){s.onprogress=s.onload=s.onabort=s.onerror=null,a.abort(),i("timeout",{errCode:5})}),n),a}),0,Yh);class zb{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(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 Mb=wd("uploadFile",(({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new zb;return g(i)&&i.length||(n||c("file error"),i=[{name:o,file:t,uri:n}]),Promise.all(i.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Sf(e)):xf(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[e])})),Object.values(i).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(r).forEach((e=>{o.setRequestHeader(e,r[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status,t=o.getAllResponseHeaders(),i=t?t.trim().split(/[\r\n]+/).reduce(((e,t)=>{const n=t.split(": "),o=n.shift(),i=n.join(": ");return e[o]=i,e}),{}):{};l({statusCode:e,data:o.responseText||o.response,header:i})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Gh),Ob=Sd("getLocation",(({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=wy();new Promise(((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>e({coords:t.coords})),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))})).catch((e=>new Promise(((t,n)=>{s.type===_y.QQ?my(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${s.key}`,{callback:"callback"},(e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))}),(()=>n(new Error("network error")))):s.type===_y.GOOGLE?Cb({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${s.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):s.type===_y.AMAP?by([],(()=>{window.AMap.plugin("AMap.Geolocation",(()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition(((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))}))}))})):n(e)})))).then((({coords:t,skip:n})=>{(function(e,t,n){const o=wy();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise((e=>{my(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},(n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}),(()=>e(t)))})):"AMap"===o.type?new Promise((e=>{by([],(()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",((n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}))}))})):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then((e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})})).catch((e=>{r(e.message)}))})).catch((e=>{r(e.message||JSON.stringify(e))}))}),0,Nh),Rb=Sd("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===Vc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(Jg().$router.go(-e.delta),t()):n("onBackPress")}),0,ep),Lb=Sd("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Op.handledBeforeEntryPageRoutes)return wp({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);Rp.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})}),0,Kh);function Nb(e){__uniConfig.darkmode&&Mv.on("onThemeChange",e)}function Db(e){Mv.off("onThemeChange",e)}function $b(e){let t={};return __uniConfig.darkmode&&(t=je(e,__uniConfig.themeConfig,Ey())),__uniConfig.darkmode?t:e}function jb(e,t){const n=Zt(e),o=n?Gt($b(e)):$b(e);return __uniConfig.darkmode&&n&&ho(e,(e=>{const t=$b(e);for(const n in t)o[n]=t[n]})),t&&Nb(t),o}const Hb={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Fb=Eo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=hn(""),o=()=>s.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),s=hb(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=hn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Hb[e].cancelColor})(e,t)};return co((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Ey()&&n({theme:"dark"}),Nb(n))):Db(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=o,gr(Qr,{name:"uni-fade"},{default:()=>[yo(gr("uni-modal",{onTouchmove:bc},[cb,gr("div",{class:"uni-modal"},[t?gr("div",{class:"uni-modal__hd"},[gr("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?gr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):gr("div",{class:"uni-modal__bd",onTouchmovePassive:vc,textContent:o},null,40,["onTouchmovePassive","textContent"]),gr("div",{class:"uni-modal__ft"},[l&&gr("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),gr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[as,s.value]])]})}}});let Vb;const Wb=ve((()=>{Mv.on("onHidePopup",(()=>Vb.visible=!1))}));let Ub;function qb(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Vb.editable&&(o.content=t),Ub&&Ub(o)}const Qb=Sd("showModal",((e,{resolve:t})=>{Wb(),Ub=t,Vb?(h(Vb,e),Vb.visible=!0):(Vb=Gt(e),Ln((()=>(ub(Fb,Vb,qb).mount(db("u-a-m")),Ln((()=>Vb.visible=!0))))))}),0,lp),Yb={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==cp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Gb={light:"#fff",dark:"rgba(255,255,255,0.9)"},Xb=e=>Gb[e],Kb=Eo({name:"Toast",props:Yb,setup(e){Dl(),$l();const{Icon:t}=function(e){const t=hn(Xb(Ey())),n=({theme:e})=>t.value=Xb(e);co((()=>{e.visible?Nb(n):Db(n)}));return{Icon:$r((()=>{switch(e.icon){case"success":return gr(Mc(Ec,t.value,38),{class:"uni-toast__icon"});case"error":return gr(Mc(Pc,t.value,38),{class:"uni-toast__icon"});case"loading":return gr("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=hb(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return gr(Qr,{name:"uni-fade"},{default:()=>[yo(gr("uni-toast",{"data-duration":i},[o?gr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:bc},null,40,["onTouchmove"]):"",s||t.value?gr("div",{class:"uni-toast"},[s?gr("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,gr("p",{class:"uni-toast__content"},[r])]):gr("div",{class:"uni-sample-toast"},[gr("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[as,n.value]])]})}}});let Jb,Zb,ev="";const tv=We();function nv(e){Jb?h(Jb,e):(Jb=Gt(h(e,{visible:!1})),Ln((()=>{tv.run((()=>{ho([()=>Jb.visible,()=>Jb.duration],(([e,t])=>{if(e){if(Zb&&clearTimeout(Zb),"onShowLoading"===ev)return;Zb=setTimeout((()=>{av("onHideToast")}),t)}else Zb&&clearTimeout(Zb)}))})),Mv.on("onHidePopup",(()=>av("onHidePopup"))),ub(Kb,Jb,(()=>{})).mount(db("u-a-t"))}))),setTimeout((()=>{Jb.visible=!0}),10)}const ov=Sd("showToast",((e,{resolve:t,reject:n})=>{nv(e),ev="onShowToast",t()}),0,up),iv={icon:"loading",duration:1e8,image:""},rv=Sd("showLoading",((e,{resolve:t,reject:n})=>{h(e,iv),nv(e),ev="onShowLoading",t()}),0,ap),sv=Sd("hideLoading",((e,{resolve:t,reject:n})=>{av("onHideLoading"),t()}));function av(e){const{t:t}=Rl();if(!ev)return;let n="";if("onHideToast"===e&&"onShowToast"!==ev?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==ev&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);ev="",setTimeout((()=>{Jb.visible=!1}),10)}const lv=Sd("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then((()=>{o.add&&o.add(i)}))}return new Promise((o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:s,featureSettings:a}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),s&&r.push(`font-variant:${s}`),a&&r.push(`font-feature-settings:${a}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()}))})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${rf(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${rf(t.substring(4,t.length-1))}')`:rf(t),n).then((()=>{o()})).catch((e=>{i(`loadFontFace:fail ${e}`)}))}));function cv(e){function t(){var t;(t=e.navigationBar.titleText)&&t!==document.title&&(document.title=t),Mv.emit("onNavigationBarChange",{titleText:t})}co(t),$o(t)}const uv=Sd("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:i,timingFunc:s}=o;e&&(r.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(r.backgroundColor=t),r.duration=i+"ms",r.timingFunc=s;break;case"showNavigationBarLoading":r.loading=!0;break;case"hideNavigationBarLoading":r.loading=!1;break;case"setNavigationBarTitle":const{title:a}=n;r.titleText=a}o()}(Nc(),"setNavigationBarTitle",e,t,n)})),dv=Sd("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t,n){if(_(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:i,scrollHeight:r}=o;if(e=Math.min(e,r-i),0===t)return void(o.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const s=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),s(t-10)}))};s(t)}(t||e||0,n),o()}),0,sp),hv=Sd("stopPullDownRefresh",((e,{resolve:t})=>{Mv.invokeViewMethod("stopPullDownRefresh",{},Dc()),t()})),pv=["text","iconPath","iconfont","selectedIconPath","visible"],fv=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],mv=["badge","redDot"];function gv(e,t,n){t.forEach((function(t){m(n,t)&&(e[t]=n[t])}))}function yv(e,t,n,o){var i;let r=!1;const s=Hp();if(s.length&&Mp(s[s.length-1]).meta.isTabBar&&(r=!0),!r)return o("not TabBar page");const{index:a}=t;if("number"==typeof a){const e=null==(i=null==__uniConfig?void 0:__uniConfig.tabBar)?void 0:i.list.length;if(!e||a>=e)return o("tabbar item not found")}const l=kp();switch(e){case"showTabBar":l.shown=!0;break;case"hideTabBar":l.shown=!1;break;case"setTabBarItem":const e=l.list[a],n=e.pagePath;gv(e,pv,t);const{pagePath:o}=t;if(o){const e=ge(o);e!==n&&function(e,t,n){const o=Gc(ge(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const i=Gc(ge(n));if(i){const{meta:t}=i;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=ye(n))}}(a,n,e)}break;case"setTabBarStyle":gv(l,fv,t);break;case"showTabBarRedDot":gv(l.list[a],mv,{badge:"",redDot:!0});break;case"setTabBarBadge":gv(l.list[a],mv,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":gv(l.list[a],mv,{badge:"",redDot:!1})}n()}const bv=Sd("hideTabBar",((e,{resolve:t,reject:n})=>{yv("hideTabBar",e||{},t,n)})),vv=Sd("showTabBar",((e,{resolve:t,reject:n})=>{yv("showTabBar",e||{},t,n)})),_v=Su({name:"TabBar",setup(){const e=hn([]),t=kp(),n=jb(t,(()=>{const e=$b(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}hn(h({type:"midButton"},e.midButton)),co(n)}(n,e),function(e){ho((()=>e.shown),(t=>{kc({"--window-bottom":Pp(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return co((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=i}})),(t,n)=>()=>{const{pagePath:o,text:i}=t;let r=ge(o);r===__uniRoutes[0].alias&&(r="/"),e.path!==r?gp({from:"tabBar",url:r,tabBarText:i}):Vc("onTabItemTap",{index:n,text:i,pagePath:o})}}(vl(),n,e),{style:i,borderStyle:r,placeholderStyle:s}=function(e){const t=$r((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||Ip&&n&&"none"!==n&&(t=wv[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=$r((()=>{const{borderStyle:t,borderColor:n}=e;return n&&_(n)?{backgroundColor:n}:{backgroundColor:xv[t]||xv.black}})),o=$r((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Xo((()=>{n.iconfontSrc&&lv({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map(((n,s)=>{const a=o===s;return function(e,t,n,o,i,r,s,a){return gr("div",{key:s,class:"uni-tabbar__item",onClick:a(i,s)},[Sv(e,t||"",n,o,i,r)],8,["onClick"])}(a?i:r,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)}))}(n,o,e);return gr("uni-tabbar",{class:"uni-tabbar-"+n.position},[gr("div",{class:"uni-tabbar",style:i.value},[gr("div",{class:"uni-tabbar-border",style:r.value},null,4),t],4),gr("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const wv={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},xv={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function Sv(e,t,n,o,i,r){const{height:s}=r;return gr("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Cv(n,o||"rgb(0, 0, 0, 0.8)",i,r):t&&kv(t,i,r),i.text&&Av(e,i,r),i.redDot&&Tv(i.badge)],4)}function kv(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n;return gr("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:r,height:r}},["midButton"!==o&&gr("img",{src:rf(e)},null,8,["src"])],6)}function Cv(e,t,n,o){var i;const{type:r,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||a,color:t};return gr("div",{class:l,style:c},["midButton"!==r&&gr("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function Av(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:s}=n;return gr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[i],4)}function Tv(e){return gr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Iv=Su({name:"Layout",setup(e,{emit:t}){const n=hn(null);Sc({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=vl();return{routeKey:$r((()=>qp("/"+e.meta.route,$u()))),isTabBar:$r((()=>e.meta.isTabBar)),routeCache:Yp}}(),{layoutState:i,windowState:r}=function(){Du();{const e=Gt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return ho((()=>e.marginWidth),(e=>Sc({"--window-margin":e+"px"}))),ho((()=>e.leftWindowWidth+e.marginWidth),(e=>{Sc({"--window-left":e+"px"})})),ho((()=>e.rightWindowWidth+e.marginWidth),(e=>{Sc({"--window-right":e+"px"})})),{layoutState:e,windowState:$r((()=>({})))}}}();!function(e,t){const n=Du();function o(){const o=document.body.clientWidth,i=Hp();let r={};if(i.length>0){r=Mp(i[i.length-1]).meta}else{const e=Gc(n.path,!0);e&&(r=e.meta)}const s=parseInt(String((m(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,Ln((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,Ln((()=>{const e=t.value;e&&e.removeAttribute("style")})))}ho([()=>n.path],o),Xo((()=>{o(),window.addEventListener("resize",o)}))}(i,n);const s=function(e){const t=Du(),n=kp(),o=$r((()=>t.meta.isTabBar&&n.shown));return Sc({"--tab-bar-height":n.height}),o}(),a=function(e){const t=hn(!1);return $r((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(s);return()=>{const e=function(e,t,n,o,i,r){return function({routeKey:e,isTabBar:t,routeCache:n}){return gr(yl,null,{default:Kn((({Component:o})=>[(ir(),cr(No,{matchBy:"key",cache:n},[(ir(),cr(io(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return yo(gr(_v,null,null,512),[[as,e.value]])}(s);return gr("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Bv=Sd("saveImageToPhotosAlbum",(Ev="saveImageToPhotosAlbum",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(Ev))));var Ev;const Pv=xu({name:"CoverView",compatConfig:{MODE:3},props:{scrollTop:{type:[String,Number],default:0}},setup(e,{slots:t}){const n=hn(null),o=hn(null);function i(e){let t=o.value;"scroll"===getComputedStyle(t).overflowY&&(t.scrollTop=function(e){let t=String(e);/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(e=>String(zd(parseFloat(e)))));return parseFloat(t)||0}(e))}return ho((()=>e.scrollTop),(e=>{i(e)})),Xo((()=>{i(e.scrollTop)})),()=>gr("uni-cover-view",{"scroll-top":e.scrollTop,ref:n},[gr("div",{ref:o,class:"uni-cover-view"},[t.default&&t.default()],512)],8,["scroll-top"])}}),zv=h(Xl,{publishHandler(e,t,n){Mv.subscribeHandler(e,t,n)}}),Mv=h(cu,{publishHandler(e,t,n){zv.subscribeHandler(e,t,n)}}),Ov=Su({name:"PageHead",setup(){const e=hn(null),t=Lu(),n=jb(t.navigationBar,(()=>{const e=$b(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:i}=function(e){const t=$r((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i})),n=$r((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const r=function(e,t){if(!t)return gr("div",{class:"uni-page-head-btn",onClick:Lv},[Mc(zc,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&gr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return gr("uni-page-head",{"uni-page-head-type":s},[gr("div",{ref:e,class:o.value,style:i.value},[gr("div",{class:"uni-page-head-hd"},[r]),Rv(n),gr("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function Rv(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return gr("div",{class:"uni-page-head-bd"},[gr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?gr("i",{class:"uni-loading"},null):i?gr("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Lv(){1===jp().length?_p({url:"/"}):Rb({from:"backbutton",success(){}})}const Nv={name:"PageRefresh",setup(){const{pullToRefresh:e}=Lu();return{offset:e.offset,color:e.color}}},Dv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},$v={class:"uni-page-refresh-inner"},jv=["fill"],Hv=[mr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),mr("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Fv={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Vv=["stroke"];const Wv=Dv(Nv,[["render",function(e,t,n,o,i,r){return ir(),lr("uni-page-refresh",null,[mr("div",{style:he({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[mr("div",$v,[(ir(),lr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Hv,8,jv)),(ir(),lr("svg",Fv,[mr("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Vv)]))])],4)])}]]);function Uv(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter((e=>e.identifier===t))[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const qv="aborting",Qv="refreshing",Yv="restoring";function Gv(e){const t=Lu(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let s,a,l,c,u,d,h,p;Bg((()=>{t.enablePullDownRefresh&&(p||(p=Qv,y(),setTimeout((()=>{x()}),50)))}),"startPullDownRefresh",!1,n),Bg((()=>{t.enablePullDownRefresh&&p===Qv&&(b(),p=Yv,y(),function(e){if(!a)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{b(),p=f=m=null})))}),"stopPullDownRefresh",!1,n),Xo((()=>{s=e.value.$el,a=s.querySelector(".uni-page-refresh"),l=a.style,c=a.querySelector(".uni-page-refresh-inner").style}));let f=null,m=null;function g(e){p&&s&&s.classList[e]("uni-page-refresh--"+p)}function y(){g("add")}function b(){g("remove")}const v=ku((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,h=!([qv,Qv,Yv].indexOf(p)>=0)})),_=ku((e=>{if(!t.enablePullDownRefresh)return;if(!h)return;if(!Uv(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!p)return;e.cancelable&&e.preventDefault(),null===f&&(m=n,p="pulling",y()),n-=m,n<0&&(n=0),f=n;(n>=i&&"reached"!==p||n1?t=1:t*=t*t;const n=Math.round(e/(i/r))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)})),w=ku((e=>{t.enablePullDownRefresh&&Uv(e,u,d)&&null!==p&&("pulling"===p?(b(),p=qv,y(),function(e){if(!a)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{b(),p=f=m=null}))):"reached"===p&&(b(),p=Qv,y(),x()))}));function x(){a&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",Vc(n,"onPullDownRefresh"))}return{onTouchstartPassive:v,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const Xv=Su({name:"PageBody",setup(e,t){const n=Lu(),o=hn(null),i=hn(null),r=n.enablePullDownRefresh?Gv(o):null,s=hn(null);return ho((()=>n.enablePullDownRefresh),(()=>{s.value=n.enablePullDownRefresh?r:null}),{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return gr(Wv,{ref:e},null,512)}(o,n);return gr(Ji,null,[e,gr("uni-page-wrapper",Sr({ref:i},s.value),[gr("uni-page-body",null,[si(t.slots,"default")]),null],16)])}}});const Kv=Su({name:"Page",setup(e,t){let n=Nu($u());const o=n.navigationBar,i={};return cv(n),()=>gr("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[gr(Ov),Jv(t),null]:[Jv(t),null])}});function Jv(e){return ir(),cr(Xv,{key:0},{default:Kn((()=>[si(e.slots,"page")])),_:3})}const Zv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=zd;const e_=Object.assign({}),t_=Object.assign;window.__uniConfig=t_({easycom:{autoscan:!0,custom:{"^u--(.*)":"uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"uview-plus/components/u-$1/u-$1.vue"}},globalStyle:{backgroundColor:"#F5F5F5",navigationBar:{backgroundColor:"#FFFFFF",titleText:"",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#787879",selectedColor:"#0F78E9",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"项目",iconPath:"/static/icon/home.png",selectedIconPath:"/static/icon/home-active.png"},{pagePath:"pages/profile/profile",text:"我的",iconPath:"/static/icon/mine.png",selectedIconPath:"/static/icon/mine-active.png"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},uniIdRouter:{},compilerVersion:"5.05"},{appId:"__UNI__A0246D1",appName:"pap_mini_cytx",appVersion:"1.0.0",appVersionCode:"100",async:Zv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(e_).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return t_(e[n]||(e[n]={}),e_[t].default),e}),{}),router:{mode:"history",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const n_={delay:Zv.delay,timeout:Zv.timeout,suspensible:Zv.suspensible};Zv.loading&&(n_.loadingComponent={name:"SystemAsyncLoading",render:()=>gr(no(Zv.loading))}),Zv.error&&(n_.errorComponent={name:"SystemAsyncError",props:["error"],render(){return gr(no(Zv.error),{error:this.error})}});const o_=()=>i((()=>import("./pages-index-index.DEN-0J-q.js")),__vite__mapDeps([0,1,2,3])).then((e=>ny(e.default||e))),i_=zo(t_({loader:o_},n_)),r_=()=>i((()=>import("./pages-profile-profile.Dv32a-pg.js")),__vite__mapDeps([4,5])).then((e=>ny(e.default||e))),s_=zo(t_({loader:r_},n_)),a_=()=>i((()=>import("./pages-content-content.BEW7Y1IX.js")),__vite__mapDeps([6,1,2,7])).then((e=>ny(e.default||e))),l_=zo(t_({loader:a_},n_)),c_=()=>i((()=>import("./pages-verify-verify.BFZit7FK.js")),__vite__mapDeps([8,9])).then((e=>ny(e.default||e))),u_=zo(t_({loader:c_},n_)),d_=()=>i((()=>import("./pages-change-phone-change-phone.8e8zFjnI.js")),__vite__mapDeps([10,11])).then((e=>ny(e.default||e))),h_=zo(t_({loader:d_},n_)),p_=()=>i((()=>import("./pages-myinfo-myinfo.Cciv1UjO.js")),__vite__mapDeps([12,13])).then((e=>ny(e.default||e))),f_=zo(t_({loader:p_},n_)),m_=()=>i((()=>import("./pages-sample-info-sample-info.DMi3sFSw.js")),__vite__mapDeps([14,15])).then((e=>ny(e.default||e))),g_=zo(t_({loader:m_},n_)),y_=()=>i((()=>import("./pages-sign-sign.Dru0J10w.js")),__vite__mapDeps([16,17])).then((e=>ny(e.default||e))),b_=zo(t_({loader:y_},n_)),v_=()=>i((()=>import("./pages-sign-signature.DegrS7tt.js")),__vite__mapDeps([18,19])).then((e=>ny(e.default||e))),__=zo(t_({loader:v_},n_)),w_=()=>i((()=>import("./pages-message-message.CjW1WfAY.js")),__vite__mapDeps([20,21])).then((e=>ny(e.default||e))),x_=zo(t_({loader:w_},n_)),S_=()=>i((()=>import("./pages-message-detail.Bx7HA25L.js")),__vite__mapDeps([22,23])).then((e=>ny(e.default||e))),k_=zo(t_({loader:S_},n_)),C_=()=>i((()=>import("./pages-login-index.DWprkVG5.js")),__vite__mapDeps([24,25])).then((e=>ny(e.default||e))),A_=zo(t_({loader:C_},n_));function T_(e,t){return ir(),cr(Kv,null,{page:Kn((()=>[gr(e,t_({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(i_,t)}},loader:o_,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"肠愈同行患者关爱",type:"default"},isNVue:!1}},{path:"/pages/profile/profile",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(s_,t)}},loader:r_,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"我的",type:"default"},isNVue:!1}},{path:"/pages/content/content",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(l_,t)}},loader:a_,meta:{navigationBar:{titleText:"详情",style:"default",type:"default"},isNVue:!1}},{path:"/pages/verify/verify",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(u_,t)}},loader:c_,meta:{navigationBar:{titleText:"实名认证",style:"default",type:"default"},isNVue:!1}},{path:"/pages/change-phone/change-phone",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(h_,t)}},loader:d_,meta:{navigationBar:{titleText:"修改手机号",style:"default",type:"default"},isNVue:!1}},{path:"/pages/myinfo/myinfo",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(f_,t)}},loader:p_,meta:{navigationBar:{titleText:"我的资料",style:"default",type:"default"},isNVue:!1}},{path:"/pages/sample-info/sample-info",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(g_,t)}},loader:m_,meta:{navigationBar:{titleText:"送检信息",style:"default",type:"default"},isNVue:!1}},{path:"/pages/sign/sign",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(b_,t)}},loader:y_,meta:{navigationBar:{titleText:"授权签名",style:"default",type:"default"},isNVue:!1}},{path:"/pages/sign/signature",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(__,t)}},loader:v_,meta:{navigationBar:{titleText:"手写签名",style:"default",type:"default"},isNVue:!1}},{path:"/pages/message/message",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(x_,t)}},loader:w_,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"消息中心",style:"default",type:"default"},isNVue:!1}},{path:"/pages/message/detail",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(k_,t)}},loader:S_,meta:{navigationBar:{titleText:"消息详情",style:"default",type:"default"},isNVue:!1}},{path:"/pages/login/index",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(A_,t)}},loader:C_,meta:{navigationBar:{titleText:"登录",style:"default",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const I_={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};ty(I_,{init:Zg,setup(e){const t=Du(),n=()=>{var n;n=e,Object.keys(Oh).forEach((e=>{Oh[e].forEach((t=>{Qo(e,t,n)}))}));const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return h(Af,{path:e,query:t}),h(Tf,Af),h({},Af)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:Te(t.query)});if(o&&N(o,s),i&&N(i,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:Te(t.query),scene:1001};xp(),r&&N(r,e)}};return Ei(rl).isReady().then(n),Xo((()=>{window.addEventListener("resize",Ee(oy,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",iy),document.addEventListener("visibilitychange",ry),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Mv.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(ir(),cr(Iv));e.setup=(e,o)=>{const i=t&&t(e,o);return v(i)?n:i},e.render=n}}); + */(e);if(!o)return;const i=t._component;v(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const r=n(o,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t};const js="undefined"!=typeof document;function Hs(e){return"object"==typeof e||"displayName"in e||"props"in e||"__vccOpts"in e}const Fs=Object.assign;function Vs(e,t){const n={};for(const o in t){const i=t[o];n[o]=Us(i)?i.map(e):e(i)}return n}const Ws=()=>{},Us=Array.isArray,qs=/#/g,Qs=/&/g,Ys=/\//g,Gs=/=/g,Xs=/\?/g,Ks=/\+/g,Js=/%5B/g,Zs=/%5D/g,ea=/%5E/g,ta=/%60/g,na=/%7B/g,oa=/%7C/g,ia=/%7D/g,ra=/%20/g;function sa(e){return encodeURI(""+e).replace(oa,"|").replace(Js,"[").replace(Zs,"]")}function aa(e){return sa(e).replace(Ks,"%2B").replace(ra,"+").replace(qs,"%23").replace(Qs,"%26").replace(ta,"`").replace(na,"{").replace(ia,"}").replace(ea,"^")}function la(e){return null==e?"":function(e){return sa(e).replace(qs,"%23").replace(Xs,"%3F")}(e).replace(Ys,"%2F")}function ca(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const ua=/\/$/;function da(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(o=t.slice(0,l),r=t.slice(l+1,a>-1?a:t.length),i=e(r)),a>-1&&(o=o||t.slice(0,a),s=t.slice(a,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let r,s,a=n.length-1;for(r=0;r1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r).join("/")}(null!=o?o:t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:ca(s)}}function ha(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function pa(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function fa(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ma(e[n],t[n]))return!1;return!0}function ma(e,t){return Us(e)?ga(e,t):Us(t)?ga(t,e):e===t}function ga(e,t){return Us(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}const ya={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var ba,va,_a,wa;function xa(e){if(!e)if(js){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(ua,"")}(va=ba||(ba={})).pop="pop",va.push="push",(wa=_a||(_a={})).back="back",wa.forward="forward",wa.unknown="";const Sa=/^[^#]+#/;function ka(e,t){return e.replace(Sa,"#")+t}const Ca=()=>({left:window.scrollX,top:window.scrollY});function Aa(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Ta(e,t){return(history.state?history.state.position-t:-1)+e}const Ia=new Map;function Ba(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let t=i.includes(e.slice(r))?e.slice(r).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),ha(n,"")}return ha(n,e)+o+i}function Ea(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?Ca():null}}function Pa(e){const{history:t,location:n}=window,o={value:Ba(e,n)},i={value:t.state};function r(o,r,s){const a=e.indexOf("#"),l=a>-1?(n.host&&document.querySelector("base")?e:e.slice(a))+o:location.protocol+"//"+location.host+e+o;try{t[s?"replaceState":"pushState"](r,"",l),i.value=r}catch(c){console.error(c),n[s?"replace":"assign"](l)}}return i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const s=Fs({},i.value,t.state,{forward:e,scroll:Ca()});r(s.current,s,!0),r(e,Fs({},Ea(o.value,e,null),{position:s.position+1},n),!1),o.value=e},replace:function(e,n){r(e,Fs({},t.state,Ea(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function za(e){const t=Pa(e=xa(e)),n=function(e,t,n,o){let i=[],r=[],s=null;const a=({state:r})=>{const a=Ba(e,location),l=n.value,c=t.value;let u=0;if(r){if(n.value=a,t.value=r,s&&s===l)return void(s=null);u=c?r.position-c.position:0}else o(a);i.forEach((e=>{e(n.value,l,{delta:u,type:ba.pop,direction:u?u>0?_a.forward:_a.back:_a.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Fs({},e.state,{scroll:Ca()}),"")}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){s=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return r.push(t),t},destroy:function(){for(const e of r)e();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=Fs({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:ka.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 Ma(e){return"string"==typeof e||"symbol"==typeof e}const Oa=Symbol("");var Ra,La;function Na(e,t){return Fs(new Error,{type:e,[Oa]:!0},t)}function Da(e,t){return e instanceof Error&&Oa in e&&(null==t||!!(e.type&t))}(La=Ra||(Ra={}))[La.aborted=4]="aborted",La[La.cancelled=8]="cancelled",La[La.duplicated=16]="duplicated";const $a={sensitive:!1,strict:!1,start:!0,end:!0},ja=/[.+*?^${}()[\]/\\]/g;function Ha(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function Fa(e,t){let n=0;const o=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const Wa={type:0,value:""},Ua=/[a-zA-Z0-9_]/;function qa(e,t,n){const o=function(e,t){const n=Fs({},$a,t),o=[];let i=n.start?"^":"";const r=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(i+="/");for(let t=0;t1&&("*"===a||"+"===a)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:1,value:c,regexp:u,repeatable:"*"===a||"+"===a,optional:"*"===a||"?"===a})):t("Invalid state to consume buffer"),c="")}function h(){c+=a}for(;l{r(h)}:Ws}function r(e){if(Ma(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(r),t.alias.forEach(r))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(r),e.alias.forEach(r))}}function s(e){const t=function(e,t){let n=0,o=t.length;for(;n!==o;){const i=n+o>>1;Fa(e,t[i])<0?o=i:n=i+1}const i=function(e){let t=e;for(;t=t.parent;)if(Za(t)&&0===Fa(e,t))return t;return}(e);i&&(o=t.lastIndexOf(i,o-1));return o}(e,n);n.splice(t,0,e),e.record.name&&!Xa(e)&&o.set(e.record.name,e)}return t=Ja({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,r,s,a={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw Na(1,{location:e});s=i.record.name,a=Fs(Ya(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&Ya(e.params,i.keys.map((e=>e.name)))),r=i.stringify(a)}else if(null!=e.path)r=e.path,i=n.find((e=>e.re.test(r))),i&&(a=i.parse(r),s=i.record.name);else{if(i=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw Na(1,{location:e,currentLocation:t});s=i.record.name,a=Fs({},t.params,e.params),r=i.stringify(a)}const l=[];let c=i;for(;c;)l.unshift(c.record),c=c.parent;return{name:s,path:r,params:a,matched:l,meta:Ka(l)}},removeRoute:r,clearRoutes:function(){n.length=0,o.clear()},getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Ya(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ga(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function Xa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ka(e){return e.reduce(((e,t)=>Fs(e,t.meta)),{})}function Ja(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Za({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function el(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&aa(e))):[o&&aa(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function nl(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=Us(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const ol=Symbol(""),il=Symbol(""),rl=Symbol(""),sl=Symbol(""),al=Symbol("");function ll(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e.slice(),reset:function(){e=[]}}}function cl(e,t,n,o,i,r=(e=>e())){const s=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise(((a,l)=>{const c=e=>{var r;!1===e?l(Na(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(r=e)||r&&"object"==typeof r?l(Na(2,{from:t,to:e})):(s&&o.enterCallbacks[i]===s&&"function"==typeof e&&s.push(e),a())},u=r((()=>e.call(o&&o.instances[i],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function ul(e,t,n,o,i=(e=>e())){const r=[];for(const s of e)for(const e in s.components){let a=s.components[e];if("beforeRouteEnter"===t||s.instances[e])if(Hs(a)){const l=(a.__vccOpts||a)[t];l&&r.push(cl(l,n,o,s,e,i))}else{let l=a();r.push((()=>l.then((r=>{if(!r)throw new Error(`Couldn't resolve component "${e}" at "${s.path}"`);const a=(l=r).__esModule||"Module"===l[Symbol.toStringTag]||l.default&&Hs(l.default)?r.default:r;var l;s.mods[e]=r,s.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&cl(c,n,o,s,e,i)()}))))}}return r}function dl(e){const t=Ei(rl),n=Ei(sl),o=$r((()=>{const n=gn(e.to);return t.resolve(n)})),i=$r((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],r=n.matched;if(!i||!r.length)return-1;const s=r.findIndex(pa.bind(null,i));if(s>-1)return s;const a=pl(e[t-2]);return t>1&&pl(i)===a&&r[r.length-1].path!==a?r.findIndex(pa.bind(null,e[t-2])):s})),r=$r((()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!Us(i)||i.length!==o.length||o.some(((e,t)=>e!==i[t])))return!1}return!0}(n.params,o.value.params))),s=$r((()=>i.value>-1&&i.value===n.matched.length-1&&fa(n.params,o.value.params)));return{route:o,href:$r((()=>o.value.href)),isActive:r,isExactActive:s,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[gn(e.replace)?"replace":"push"](gn(e.to)).catch(Ws):Promise.resolve()}}}const hl=Eo({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:dl,setup(e,{slots:t}){const n=Gt(dl(e)),{options:o}=Ei(rl),i=$r((()=>({[fl(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[fl(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:jr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function pl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const fl=(e,t,n)=>null!=e?e:null!=t?t:n,ml=Eo({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Ei(al),i=$r((()=>e.route||o.value)),r=Ei(il,0),s=$r((()=>{let e=gn(r);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),a=$r((()=>i.value.matched[s.value]));Bi(il,$r((()=>s.value+1))),Bi(ol,a),Bi(al,i);const l=hn();return ho((()=>[l.value,a.value,e.name]),(([e,t,n],[o,i,r])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&pa(t,i)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=i.value,r=e.name,s=a.value,c=s&&s.components[r];if(!c)return gl(n.default,{Component:c,route:o});const u=s.props[r],d=u?!0===u?o.params:"function"==typeof u?u(o):u:null,h=jr(c,Fs({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(s.instances[r]=null)},ref:l}));return gl(n.default,{Component:h,route:o})||h}}});function gl(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const yl=ml;function bl(e){const t=Qa(e.routes,e),n=e.parseQuery||el,o=e.stringifyQuery||tl,i=e.history,r=ll(),s=ll(),a=ll(),l=pn(ya);let c=ya;js&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Vs.bind(null,(e=>""+e)),d=Vs.bind(null,la),h=Vs.bind(null,ca);function p(e,r){if(r=Fs({},r||l.value),"string"==typeof e){const o=da(n,e,r.path),s=t.resolve({path:o.path},r),a=i.createHref(o.fullPath);return Fs(o,s,{params:h(s.params),hash:ca(o.hash),redirectedFrom:void 0,href:a})}let s;if(null!=e.path)s=Fs({},e,{path:da(n,e.path,r.path).path});else{const t=Fs({},e.params);for(const e in t)null==t[e]&&delete t[e];s=Fs({},e,{params:d(t)}),r.params=d(r.params)}const a=t.resolve(s,r),c=e.hash||"";a.params=u(h(a.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Fs({},e,{hash:(f=c,sa(f).replace(na,"{").replace(ia,"}").replace(ea,"^")),path:a.path}));var f;const m=i.createHref(p);return Fs({fullPath:p,hash:c,query:o===tl?nl(e.query):e.query||{}},a,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?da(n,e,l.value.path):Fs({},e)}function m(e,t){if(c!==e)return Na(8,{from:t,to:e})}function g(e){return b(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),Fs({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function b(e,t){const n=c=p(e),i=l.value,r=e.state,s=e.force,a=!0===e.replace,u=y(n);if(u)return b(Fs(f(u),{state:"object"==typeof u?Fs({},r,u.state):r,force:s,replace:a}),t||n);const d=n;let h;return d.redirectedFrom=t,!s&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&pa(t.matched[o],n.matched[i])&&fa(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(h=Na(16,{to:d,from:i}),P(i,i,!0,!1)),(h?Promise.resolve(h):w(d,i)).catch((e=>Da(e)?Da(e,2)?e:E(e):B(e,d,i))).then((e=>{if(e){if(Da(e,2))return b(Fs({replace:a},f(e.to),{state:"object"==typeof e.to?Fs({},r,e.to.state):r,force:s}),t||d)}else e=S(d,i,!0,a,r);return x(d,i,e),e}))}function v(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e){const t=O.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[o,i,a]=function(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;spa(e,r)))?o.push(r):n.push(r));const a=e.matched[s];a&&(t.matched.find((e=>pa(e,a)))||i.push(a))}return[n,o,i]}(e,t);n=ul(o.reverse(),"beforeRouteLeave",e,t);for(const r of o)r.leaveGuards.forEach((o=>{n.push(cl(o,e,t))}));const l=v.bind(null,e,t);return n.push(l),L(n).then((()=>{n=[];for(const o of r.list())n.push(cl(o,e,t));return n.push(l),L(n)})).then((()=>{n=ul(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach((o=>{n.push(cl(o,e,t))}));return n.push(l),L(n)})).then((()=>{n=[];for(const o of a)if(o.beforeEnter)if(Us(o.beforeEnter))for(const i of o.beforeEnter)n.push(cl(i,e,t));else n.push(cl(o.beforeEnter,e,t));return n.push(l),L(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=ul(a,"beforeRouteEnter",e,t,_),n.push(l),L(n)))).then((()=>{n=[];for(const o of s.list())n.push(cl(o,e,t));return n.push(l),L(n)})).catch((e=>Da(e,8)?e:Promise.reject(e)))}function x(e,t,n){a.list().forEach((o=>_((()=>o(e,t,n)))))}function S(e,t,n,o,r){const s=m(e,t);if(s)return s;const a=t===ya,c=js?history.state:{};n&&(o||a?i.replace(e.fullPath,Fs({scroll:a&&c&&c.scroll},r)):i.push(e.fullPath,r)),l.value=e,P(e,t,n,a),E()}let k;function C(){k||(k=i.listen(((e,t,n)=>{if(!R.listening)return;const o=p(e),r=y(o);if(r)return void b(Fs(r,{replace:!0}),o).catch(Ws);c=o;const s=l.value;var a,u;js&&(a=Ta(s.fullPath,n.delta),u=Ca(),Ia.set(a,u)),w(o,s).catch((e=>Da(e,12)?e:Da(e,2)?(b(e.to,o).then((e=>{Da(e,20)&&!n.delta&&n.type===ba.pop&&i.go(-1,!1)})).catch(Ws),Promise.reject()):(n.delta&&i.go(-n.delta,!1),B(e,o,s)))).then((e=>{(e=e||S(o,s,!1))&&(n.delta&&!Da(e,8)?i.go(-n.delta,!1):n.type===ba.pop&&Da(e,20)&&i.go(-1,!1)),x(o,s,e)})).catch(Ws)})))}let A,T=ll(),I=ll();function B(e,t,n){E(e);const o=I.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function E(e){return A||(A=!e,C(),T.list().forEach((([t,n])=>e?n(e):t())),T.reset()),e}function P(t,n,o,i){const{scrollBehavior:r}=e;if(!js||!r)return Promise.resolve();const s=!o&&function(e){const t=Ia.get(e);return Ia.delete(e),t}(Ta(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return Ln().then((()=>r(t,n,s))).then((e=>e&&Aa(e))).catch((e=>B(e,t,n)))}const z=e=>i.go(e);let M;const O=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let o,i;return Ma(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},clearRoutes:t.clearRoutes,hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(Fs(f(e),{replace:!0}))},go:z,back:()=>z(-1),forward:()=>z(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:I.add,isReady:function(){return A&&l.value!==ya?Promise.resolve():new Promise(((e,t)=>{T.add([e,t])}))},install(e){e.component("RouterLink",hl),e.component("RouterView",yl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>gn(l)}),js&&!M&&l.value===ya&&(M=!0,g(i.location).catch((e=>{})));const t={};for(const o in ya)Object.defineProperty(t,o,{get:()=>l.value[o],enumerable:!0});e.provide(rl,this),e.provide(sl,Xt(t)),e.provide(al,l);const n=e.unmount;O.add(e),e.unmount=function(){O.delete(e),O.size<1&&(c=ya,k&&k(),k=null,l.value=ya,M=!1,A=!1),n()}}};function L(e){return e.reduce(((e,t)=>e.then((()=>_(t)))),Promise.resolve())}return R}function vl(e){return Ei(sl)}const _l=["{","}"];const wl=/^(?:\d)+/,xl=/^(?:\w)+/;const Sl=Object.prototype.hasOwnProperty,kl=(e,t)=>Sl.call(e,t),Cl=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=_l){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,r="";for(;i-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return i||void 0}class Tl{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||Cl,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Al(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{kl(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Al(t,this.messages))&&(o=this.messages[t]):n=t,kl(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Il(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&zh?zh():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const i=new Tl({locale:e,fallbackLocale:n,messages:t,watcher:o});let r=(e,t)=>{{let e=!1;r=function(t,n){const o=Jg().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,i))),i.t(t,n)}}return r(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>r(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function Bl(e,t){return e.indexOf(t[0])>-1}const El=ve((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Pl;function zl(e){return Bl(e,ie)?Rl().f(e,function(){const e=zh(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ie):e}function Ml(e,t){if(1===t.length){if(e){const n=e=>_(e)&&Bl(e,ie),o=t[0];let i=[];if(g(e)&&(i=e.filter((e=>n(e[o])))).length)return i;const r=e[t[0]];if(n(r))return e}return}const n=t.shift();return Ml(e&&e[n],t)}function Ol(e,t){const n=Ml(e,t);if(!n)return!1;const o=t[t.length-1];if(g(n))n.forEach((e=>Ol(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>zl(e),set(t){e=t}})}return!0}function Rl(){if(!Pl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,Pl=Il(e),El()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Pl.add(e,__uniConfig.locales[e]))),Pl.setLocale(e)}}return Pl}function Ll(e,t,n){return t.reduce(((t,o,i)=>(t[e+o]=n[i],t)),{})}const Nl=ve((()=>{const e="uni.async.",t=["error"];Rl().add("en",Ll(e,t,["The connection timed out, click the screen to try again."]),!1),Rl().add("es",Ll(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),Rl().add("fr",Ll(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),Rl().add("zh-Hans",Ll(e,t,["连接服务器超时,点击屏幕重试"]),!1),Rl().add("zh-Hant",Ll(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),Dl=ve((()=>{const e="uni.showToast.",t=["unpaired"];Rl().add("en",Ll(e,t,["Please note showToast must be paired with hideToast"]),!1),Rl().add("es",Ll(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Rl().add("fr",Ll(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),Rl().add("zh-Hans",Ll(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),Rl().add("zh-Hant",Ll(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),$l=ve((()=>{const e="uni.showLoading.",t=["unpaired"];Rl().add("en",Ll(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Rl().add("es",Ll(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Rl().add("fr",Ll(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),Rl().add("zh-Hans",Ll(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),Rl().add("zh-Hant",Ll(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),jl=ve((()=>{const e="uni.showModal.",t=["cancel","confirm"];Rl().add("en",Ll(e,t,["Cancel","OK"]),!1),Rl().add("es",Ll(e,t,["Cancelar","OK"]),!1),Rl().add("fr",Ll(e,t,["Annuler","OK"]),!1),Rl().add("zh-Hans",Ll(e,t,["取消","确定"]),!1),Rl().add("zh-Hant",Ll(e,t,["取消","確定"]),!1)})),Hl=ve((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Rl().add("en",Ll(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Rl().add("es",Ll(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),Rl().add("fr",Ll(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),Rl().add("zh-Hans",Ll(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),Rl().add("zh-Hant",Ll(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),Fl=ve((()=>{const e="uni.setClipboardData.",t=["success","fail"];Rl().add("en",Ll(e,t,["Content copied","Copy failed, please copy manually"]),!1),Rl().add("es",Ll(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),Rl().add("fr",Ll(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),Rl().add("zh-Hans",Ll(e,t,["内容已复制","复制失败,请手动复制"]),!1),Rl().add("zh-Hant",Ll(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Vl=ve((()=>{const e="uni.video.",t=["danmu","volume"];Rl().add("en",Ll(e,t,["Danmu","Volume"]),!1),Rl().add("es",Ll(e,t,["Danmu","Volumen"]),!1),Rl().add("fr",Ll(e,t,["Danmu","Le Volume"]),!1),Rl().add("zh-Hans",Ll(e,t,["弹幕","音量"]),!1),Rl().add("zh-Hant",Ll(e,t,["彈幕","音量"]),!1)}));function Wl(e){const t=new Ne;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}let Ul=1;const ql=Object.create(null);function Ql(e,t){return e+"."+t}function Yl(e,t,n){t=Ql(e,t),ql[t]||(ql[t]=n)}function Gl({id:e,name:t,args:n},o){t=Ql(o,t);const i=t=>{e&&zv.publishHandler("invokeViewApi."+e,t)},r=ql[t];r?r(n,i):i({})}const Xl=h(Wl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=zv,r=n?Ul++:0;n&&o("invokeServiceApi."+r,n,!0),i("invokeServiceApi",{id:r,name:e,args:t})}}),Kl=ke(!0);let Jl;function Zl(){Jl&&(clearTimeout(Jl),Jl=null)}let ec=0,tc=0;function nc(e){if(Zl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];ec=t,tc=n,Jl=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function oc(e){if(!Jl)return;if(1!==e.touches.length)return Zl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-ec)>10||Math.abs(n-tc)>10?Zl():void 0}function ic(e,t){const n=Number(e);return isNaN(n)?t:n}const rc=()=>/^Apple/.test(navigator.vendor);function sc(){const e=__uniConfig.globalStyle||{},t=ic(e.rpxCalcMaxDeviceWidth,960),n=ic(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=rc()&&"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 e?Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n:Math.min(window.innerWidth,document.documentElement.clientWidth)}();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),rc()&&window.addEventListener("orientationchange",(()=>{o(),setTimeout(o,50)}))}function ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var lc,cc,uc=["top","left","right","bottom"],dc={};function hc(){return cc="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 pc(){if(cc="string"==typeof cc?cc:hc()){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");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),uc.forEach((function(e){s(o,e)})),document.body.appendChild(o),r(),lc=!0}else uc.forEach((function(e){dc[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function r(t){t?e.push(t):e.forEach((function(e){e()}))}function s(e,n){var o=document.createElement("div"),s=document.createElement("div"),a=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:cc+"(safe-area-inset-"+n+")"};i(o,c),i(s,c),i(a,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(a),s.appendChild(l),e.appendChild(o),e.appendChild(s),r((function(){o.scrollTop=s.scrollTop=1e4;var e=o.scrollTop,i=s.scrollTop;function r(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=s.scrollTop=1e4,e=o.scrollTop,i=s.scrollTop,function(e){mc.length||setTimeout((function(){var e={};mc.forEach((function(t){e[t]=dc[t]})),mc.length=0,gc.forEach((function(t){t(e)}))}),0);mc.push(e)}(n))}o.addEventListener("scroll",r,t),s.addEventListener("scroll",r,t)}));var u=getComputedStyle(o);Object.defineProperty(dc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function fc(e){return lc||pc(),dc[e]}var mc=[];var gc=[];const yc=ac({get support(){return 0!=("string"==typeof cc?cc:hc()).length},get top(){return fc("top")},get left(){return fc("left")},get right(){return fc("right")},get bottom(){return fc("bottom")},onChange:function(e){hc()&&(lc||pc(),"function"==typeof e&&gc.push(e))},offChange:function(e){var t=gc.indexOf(e);t>=0&&gc.splice(t,1)}}),bc=Ls((()=>{}),["prevent"]),vc=Ls((e=>{}),["stop"]);function _c(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function wc(){const e=_c(document.documentElement.style,"--window-top");return e?e+yc.top:0}function xc(){const e=document.documentElement.style,t=wc(),n=_c(e,"--window-bottom"),o=_c(e,"--window-left"),i=_c(e,"--window-right"),r=_c(e,"--top-window-height");return{top:t,bottom:n?n+yc.bottom:0,left:o?o+yc.left:0,right:i?i+yc.right:0,topWindowHeight:r||0}}function Sc(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function kc(e){return Sc(e)}function Cc(e){return Symbol(e)}function Ac(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Tc(e,t=!1){if(t)return function(e){if(!Ac(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>zd(parseFloat(t))+"px"))}(e);if(_(e)){const t=parseInt(e)||0;return Ac(e)?zd(t):t}return e}function Ic(e){return e.$page}function Bc(e){return 0===e.tagName.indexOf("UNI-")}const Ec="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",Pc="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",zc="M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z";function Mc(e,t="#000",n=27){return gr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[gr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Oc(){{const{$pageInstance:e}=Ir();return e&&Fc(e.proxy)}}function Rc(e){const t=ce(e);if(t.$page)return Fc(t);if(!t.$)return;{const{$pageInstance:e}=t.$;if(e)return Fc(e.proxy)}const n=t.$.root.proxy;return n&&n.$page?Fc(n):void 0}function Lc(){const e=jp(),t=e.length;if(t)return e[t-1]}function Nc(){var e;const t=null==(e=Lc())?void 0:e.$page;if(t)return t.meta}function Dc(){const e=Nc();return e?e.id:-1}function $c(){const e=Lc();if(e)return e.$vm}const jc=["navigationBar","pullToRefresh"];function Hc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=h({id:t},n,e);jc.forEach((t=>{o[t]=h({},n[t],e[t])}));const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function Fc(e){var t,n;return(null==(t=e.$page)?void 0:t.id)||(null==(n=e.$basePage)?void 0:n.id)}function Vc(e,t,n){if(_(e))n=t,t=e,e=$c();else if("number"==typeof e){const t=jp().find((t=>Ic(t).id===e));e=t?t.$vm:$c()}if(!e)return;const o=e.$[t];return"onBackPress"===t?o&&(i=o,r=n,i.map((e=>e(r)))).some((e=>!0===e)):o&&((e,t)=>{let n;for(let o=0;o{function s(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,r=o>0&&e>t&&o+t+n>=e,s=Math.abs(e-qc)>n;return!r||i&&!s?(!r&&i&&(i=!1),!1):(qc=e,i=!0,!0)})())return t&&t(),r=!1,setTimeout((function(){r=!0}),350),!0}e&&e(window.pageYOffset),t&&r&&(s()||(Uc=setTimeout(s,300))),o=!1};return function(){clearTimeout(Uc),o||requestAnimationFrame(s),o=!0}}function Yc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Yc(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i0?e.split("/"):[];return r.splice(r.length-i-1,i+1),ge(r.concat(n).join("/"))}function Gc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}function Xc(){sc(),we(Bc),window.addEventListener("touchstart",nc,Kl),window.addEventListener("touchmove",oc,Kl),window.addEventListener("touchend",Zl,Kl),window.addEventListener("touchcancel",Zl,Kl)}class Kc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(de(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&de(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=tu(this.$el.querySelector(e));return t?Jc(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];v(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&zv.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function Jc(e,t=!0){if(t&&e&&(e=ue(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Kc(e)),e.$el.__wxsComponentDescriptor}function Zc(e,t){return Jc(e,t)}function eu(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Zc(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=ue(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,Zc(i,!1)]}}function tu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function nu(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:r}=e;let s,a;s=Ce(t?i:function(e){for(;!Bc(e);)e=e.parentElement;return e}(i)),a=Ce(r);const l={type:n,timeStamp:o,target:s,detail:{},currentTarget:a};return e instanceof CustomEvent&&A(e.detail)&&(l.detail=e.detail),e._stopped&&(l._stopped=!0),e.type.startsWith("touch")&&(l.touches=e.touches,l.changedTouches=e.changedTouches),function(e,t){h(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(l,e),l}function ou(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function iu(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=wc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[ou(t,n)]}(r,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=wc();r.touches=iu(e.touches,t),r.changedTouches=iu(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(r,t,{get:()=>e[t]})}))}return eu(r,t,n)||[r]},createNativeEvent:nu},Symbol.toStringTag,{value:"Module"});function su(e){!function(e){const t=e.globalProperties;h(t,ru),t.$gcd=Zc}(e._context.config)}let au=1;function lu(e){return(e||Dc())+".invokeViewApi"}const cu=h(Wl("view"),{invokeOnCallback:(e,t)=>Mv.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:r}=Mv,s=o?au++:0;o&&i("invokeViewApi."+s,o,!0),r(lu(n),{id:s,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:r,publishHandler:s}=Mv,a=au++,l="invokeViewApi."+a;return i(l,n),s(lu(o),{id:a,name:e,args:t},o),()=>{r(l)}}});function uu(e){Vc(Lc(),"onResize",e),Mv.invokeOnCallback("onWindowResize",e)}function du(e){const t=Lc();Vc(Jg(),"onShow",e),Vc(t,"onShow")}function hu(){Vc(Jg(),"onHide"),Vc(Lc(),"onHide")}const pu=["onPageScroll","onReachBottom"];function fu(){pu.forEach((e=>Mv.subscribe(e,function(e){return(t,n)=>{Vc(parseInt(n),e,t)}}(e))))}function mu(){!function(){const{on:e}=Mv;e("onResize",uu),e("onAppEnterForeground",du),e("onAppEnterBackground",hu)}(),fu()}function gu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Pe(this.$page.id)),e.eventChannel}}function yu(e){e._context.config.globalProperties.getOpenerEventChannel=gu}function bu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function vu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${zd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function _u(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function r(){const t=o[n],s=t.option.transition,a=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],r=e.animates,s=e.option,a=s.transition,l={},c=[];return r.forEach((e=>{let r=e.type,s=[...e.args];if(t.concat(n).includes(r))r.startsWith("rotate")||r.startsWith("skew")?s=s.map((e=>parseFloat(e)+"deg")):r.startsWith("translate")&&(s=s.map(vu)),n.indexOf(r)>=0&&(s.length=1),c.push(`${r}(${s.join(",")})`);else if(o.concat(i).includes(s[0])){r=s[0];const e=s[1];l[r]=i.includes(r)?vu(e):e}})),l.transform=l.webkitTransform=c.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${a.duration}ms ${a.timingFunction} ${a.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=s.transformOrigin,l}(t);Object.keys(a).forEach((t=>{e.$el.style[t]=a[t]})),n+=1,n{r()}),0)}const wu={props:["animation"],watch:{animation:{deep:!0,handler(){_u(this)}}},mounted(){_u(this)}},xu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(wu),Su(e)},Su=e=>(e.__reserved=!0,e.compatConfig={MODE:3},Eo(e));function ku(e){return e.__wwe=!0,e}function Cu(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=Ce(n),{type:t.__evName||o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const Au={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Tu(e){const t=hn(!1);let n,o,i=!1;function r(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function s(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout((()=>{t.value=!0,i||r()}),parseInt(e.hoverStartTime)))}function a(){i=!1,t.value&&r()}function l(){a(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:ku((function(e){e.touches.length>1||s(e)})),onMousedown:ku((function(e){i||(s(e),window.addEventListener("mouseup",l))})),onTouchend:ku((function(){a()})),onMouseup:ku((function(){i&&l()})),onTouchcancel:ku((function(){i=!1,t.value=!1,clearTimeout(n)}))}}}function Iu(e,t){return _(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const Bu=Cc("uf"),Eu=Cc("ul");function Pu(e,t){zu(e.id,t),ho((()=>e.id),((e,n)=>{Mu(n,t,!0),zu(e,t,!0)})),ei((()=>{Mu(e.id,t)}))}function zu(e,t,n){const o=Oc();n&&!e||A(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zv.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zv.on(i,t[i]):e&&zv.on(`uni-${i}-${o}-${e}`,t[i])}))}function Mu(e,t,n){const o=Oc();n&&!e||A(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&zv.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?zv.off(i,t[i]):e&&zv.off(`uni-${i}-${o}-${e}`,t[i])}))}const Ou=xu({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=hn(null),o=Ei(Bu,!1),{hovering:i,binding:r}=Tu(e),s=ku(((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const r=e.formType;if(r){if(!o)return;"submit"===r?o.submit(t):"reset"===r&&o.reset(t)}else;})),a=Ei(Eu,!1);return a&&(a.addHandler(s),Zo((()=>{a.removeHandler(s)}))),Pu(e,{"label-click":s}),()=>{const o=e.hoverClass,a=Iu(e,"disabled"),l=Iu(e,"loading"),c=Iu(e,"plain"),u=o&&"none"!==o;return gr("uni-button",Sr({ref:n,onClick:s,id:e.id,class:u&&i.value?o:""},u&&r,a,l,c),[t.default&&t.default()],16,["onClick","id"])}}}),Ru=Cc("upm");function Lu(){return Ei(Ru)}function Nu(e){const t=function(e){return Gt(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=Tc(e.offset)),e.height&&(e.height=Tc(e.height)),e.range&&(e.range=Tc(e.range)),e}(h({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+yc.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==jp().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(Hc(vl().meta,e)))))}(e);return Bi(Ru,t),t}function Du(){return vl()}function $u(){return history.state&&history.state.__id__||1}const ju=["original","compressed"],Hu=["album","camera"],Fu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Vu(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Wu(e,t){return!g(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Uu(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let qu=1;const Qu={};function Yu(e,t,n,o=!1){return Qu[e]={name:t,keepAlive:o,callback:n},e}function Gu(e,t,n){if("number"==typeof e){const o=Qu[e];if(o)return o.keepAlive||delete Qu[e],o.callback(t,n)}return t}function Xu(e){for(const t in Qu)if(Qu[t].name===e)return!0;return!1}const Ku="success",Ju="fail",Zu="complete";function ed(e,t={},{beforeAll:n,beforeSuccess:o}={}){A(t)||(t={});const{success:i,fail:r,complete:s}=function(e){const t={};for(const n in e){const o=e[n];v(o)&&(t[n]=Uu(o),delete e[n])}return t}(t),a=v(i),l=v(r),c=v(s),u=qu++;return Yu(u,e,(u=>{(u=u||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(u.errMsg,e),v(n)&&n(u),u.errMsg===e+":ok"?(v(o)&&o(u,t),a&&i(u)):l&&r(u),c&&s(u)})),u}const td="success",nd="fail",od="complete",id={},rd={};function sd(e,t){return function(n){return e(n,t)||n}}function ad(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function ld(e,t={}){return[td,nd,od].forEach((n=>{const o=e[n];if(!g(o))return;const i=t[n];t[n]=function(e){ad(o,e,t).then((e=>v(i)&&i(e)||e))}})),t}function cd(e,t){const n=[];g(id.returnValue)&&n.push(...id.returnValue);const o=rd[e];return o&&g(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function ud(e){const t=Object.create(null);Object.keys(id).forEach((e=>{"returnValue"!==e&&(t[e]=id[e].slice())}));const n=rd[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function dd(e,t,n,o){const i=ud(e);if(i&&Object.keys(i).length){if(g(i.invoke)){return ad(i.invoke,n).then((n=>t(ld(ud(e),n),...o)))}return t(ld(i,n),...o)}return t(n,...o)}function hd(e,t){return(n={},...o)=>function(e){return!(!A(e)||![Ku,Ju,Zu].find((t=>v(e[t]))))}(n)?cd(e,dd(e,t,h({},n),o)):cd(e,new Promise(((i,r)=>{dd(e,t,h({},n,{success:i,fail:r}),o)})))}function pd(e,t,n,o={}){const i=t+":fail";let r="";return r=n?0===n.indexOf(i)?n:i+" "+n:i,delete o.errCode,Gu(e,h({errMsg:r},o))}function fd(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(_(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!A(t.formatArgs)&&A(n))return;const o=t.formatArgs,i=Object.keys(o);for(let r=0;r{md(o);const i=fd(0,[o],0,n);if(i)throw new Error(i);const r=!Xu(e);!function(e,t){Yu(qu++,e,t,!0)}(e,o),r&&(!function(e){Mv.on("api."+e,(t=>{for(const n in Qu){const o=Qu[n];o.name===e&&o.callback(t)}}))}(e),t())}}function yd(e,t,n){return o=>{md(o);const i=fd(0,[o],0,n);if(i)throw new Error(i);!function(e,t){for(const n in Qu){const o=Qu[n];o.callback===t&&o.name===e&&delete Qu[n]}}(e=e.replace("off","on"),o);Xu(e)||(!function(e){Mv.off("api."+e)}(e),t())}}function bd(e,t,n,o){return n=>{const i=ed(e,n,o),r=fd(0,[n],0,o);return r?pd(i,e,r):t(n,{resolve:t=>function(e,t,n){return Gu(e,h(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>pd(i,e,function(e){return!e||_(e)?e:e.stack?("undefined"!=typeof globalThis&&globalThis.harmonyChannel||console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function vd(e,t,n){return gd(e,t,n)}function _d(e,t,n){return yd(e,t,n)}function wd(e,t,n,o){return hd(e,bd(e,t,0,o))}function xd(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=fd(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Sd(e,t,n,o){return hd(e,function(e,t,n,o){return bd(e,t,0,o)}(e,t,0,o))}let kd=!1,Cd=0,Ad=0,Td=960,Id=375,Bd=750;function Ed(){let e,t,n;{const{windowWidth:o,pixelRatio:i,platform:r}=function(){const e=yf();return{platform:lf?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:e}}();e=o,t=i,n=r}Cd=e,Ad=t,kd="ios"===n}function Pd(e,t){const n=Number(e);return isNaN(n)?t:n}const zd=xd(0,((e,t)=>{if(0===Cd&&(Ed(),function(){const e=__uniConfig.globalStyle||{};Td=Pd(e.rpxCalcMaxDeviceWidth,960),Id=Pd(e.rpxCalcBaseDeviceWidth,375),Bd=Pd(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Cd;n=e===Bd||n<=Td?n:Id;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Ad&&kd?.5:1),e<0?-o:o}));const Md=new class{constructor(){this.$emitter=new Ne}on(e,t){return this.$emitter.on(e,t)}once(e,t){return this.$emitter.once(e,t)}off(e,t){e?this.$emitter.off(e,t):this.$emitter.e={}}emit(e,...t){this.$emitter.emit(e,...t)}},Od=xd(0,((e,t)=>(Md.on(e,t),()=>Md.off(e,t)))),Rd=xd(0,((e,t)=>(Md.once(e,t),()=>Md.off(e,t)))),Ld=xd(0,((e,t)=>{g(e)||(e=e?[e]:[]),e.forEach((e=>{Md.off(e,t)}))})),Nd=xd(0,((e,...t)=>{Md.emit(e,...t)})),Dd=[.5,.8,1,1.25,1.5,2];class $d{constructor(e,t){this.id=e,this.pageId=t}play(){bf(this.id,this.pageId,"play")}pause(){bf(this.id,this.pageId,"pause")}stop(){bf(this.id,this.pageId,"stop")}seek(e){bf(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){bf(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~Dd.indexOf(e)||(e=1),bf(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){bf(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){bf(this.id,this.pageId,"exitFullScreen")}showStatusBar(){bf(this.id,this.pageId,"showStatusBar")}hideStatusBar(){bf(this.id,this.pageId,"hideStatusBar")}}const jd=xd(0,((e,t)=>new $d(e,Rc(t||$c())))),Hd=(e,t,n,o)=>{!function(e,t,n,o,i){Mv.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,(e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)}))};function Fd(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Vd=Fd("width"),Wd=Fd("height"),Ud={formatArgs:{x:Fd("x"),y:Fd("y"),width:Vd,height:Wd}},qd={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}},Qd=Ud,Yd=(Uint8ClampedArray,{PNG:"png",JPG:"jpg",JPEG:"jpg"}),Gd={formatArgs:{x:Fd("x",0),y:Fd("y",0),width:Vd,height:Wd,destWidth:Fd("destWidth"),destHeight:Fd("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Yd[e];n||(n=Yd.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function Xd(e,t,n,o,i){Mv.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{i&&i(e)}))}var Kd=["scale","rotate","translate","setTransform","transform"],Jd=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Zd=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const eh={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 th(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(m(eh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(eh[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,o,i,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class nh{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,th(t)])}}class oh{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class ih{constructor(e){this.width=e}}class rh{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,r,s,a,l){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,r){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],Xd(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new nh("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new nh("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 oh(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new ih(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,r){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,r]}),this.subpath.push([i,r])}arc(e,t,n,o,i,r=!1){this.path.push({method:"arc",data:[e,t,n,o,i,r]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+\.?\d*r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),r=n[7],s=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(s.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal","lighter","bolder"].indexOf(e)>-1||/^\d+$/.test(e)?(s.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(s.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&a()})),1===o.length&&a(),o=s.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=i,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${o} ${i}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function a(){s.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 sh=ve((()=>{[...Kd,...Jd].forEach((function(e){rh.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,i){var r=[t.toString(),n,o];"number"==typeof i&&r.push(i),this.actions.push({method:e,data:r})};case"drawImage":return function(t,n,o,i,r,s,a,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(s=n,a=o,l=i,c=r,n=void 0,o=void 0,i=void 0,r=void 0),u=d(n)&&d(o)&&d(i)&&d(r)?[t,s,a,l,c,n,o,i,r]:d(l)&&d(c)?[t,s,a,l,c]:[t,s,a],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),Zd.forEach((function(e){rh.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",th(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,i){i=th(i),this.actions.push({method:e,data:[t,n,o,i]}),this.state.shadowBlur=o,this.state.shadowColor=i,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),ah=xd(0,((e,t)=>{if(sh(),t)return new rh(e,Rc(t));const n=Rc($c());if(n)return new rh(e,n);Mv.emit("onError","createCanvasContext:fail")})),lh=Sd("canvasGetImageData",(({canvasId:e,x:t,y:n,width:o,height:i},{resolve:r,reject:s})=>{const a=Rc($c());a?Xd(e,a,"getImageData",{x:t,y:n,width:o,height:i},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void s("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,r(e)})):s()}),0,Ud),ch=Sd("canvasPutImageData",(({canvasId:e,data:t,x:n,y:o,width:i,height:r},{resolve:s,reject:a})=>{var l=Rc($c());if(!l)return void a();t=Array.prototype.slice.call(t),Xd(e,l,"putImageData",{data:t,x:n,y:o,width:i,height:r,compressed:void 0},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?a():s(e)}))}),0,Qd),uh=Sd("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,canvasId:s,fileType:a,quality:l},{resolve:c,reject:u})=>{var d=Rc($c());if(!d)return void u();Xd(s,d,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,fileType:a,quality:l,dirname:"/canvas"},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,Gd),dh={thresholds:[0],initialRatio:0,observeAll:!1},hh=["top","right","bottom","left"];let ph=1;function fh(e={}){return hh.map((t=>`${Number(e[t])||0}px`)).join(" ")}class mh{constructor(e,t){this._pageId=Rc(e),this._component=e,this._options=h({},dh,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=fh(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=fh(e),this}observe(e,t){v(t)&&(this._options.selector=e,this._reqId=ph++,function({reqId:e,component:t,options:n,callback:o},i){const r=nf(t);(r.__io||(r.__io={}))[e]=function(e,t,n){!function(){if("object"!=typeof window)return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));function e(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}var t=function(t){for(var n=window.document,o=e(n);o;)o=e(n=o.ownerDocument);return n}(),n=[],o=null,i=null;function r(e){this.time=e.time,this.target=e.target,this.rootBounds=f(e.rootBounds),this.boundingClientRect=f(e.boundingClientRect),this.intersectionRect=f(e.intersectionRect||p()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,i=o.width*o.height;this.intersectionRatio=n?Number((i/n).toFixed(4)):this.isIntersecting?1:0}function s(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function a(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function c(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function u(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function d(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),i=Math.max(e.left,t.left),r=Math.min(e.right,t.right),s=r-i,a=o-n;return s>=0&&a>=0&&{top:n,bottom:o,left:i,right:r,width:s,height:a}||null}function h(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function f(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function m(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function g(e,t){for(var n=t;n;){if(n==e)return!0;n=y(n)}return!1}function y(n){var o=n.parentNode;return 9==n.nodeType&&n!=t?e(n):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function b(e){return e&&9===e.nodeType}s.prototype.THROTTLE_TIMEOUT=100,s.prototype.POLL_INTERVAL=null,s.prototype.USE_MUTATION_OBSERVER=!0,s._setupCrossOriginUpdater=function(){return o||(o=function(e,t){i=e&&t?m(e,t):p(),n.forEach((function(e){e._checkForIntersections()}))}),o},s._resetCrossOriginUpdater=function(){o=null,i=null},s.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()}},s.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()},s.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},s.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},s.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]}))},s.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},s.prototype._monitorIntersections=function(n){var o=n.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(n)){var i=this._checkForIntersections,r=null,s=null;this.POLL_INTERVAL?r=o.setInterval(i,this.POLL_INTERVAL):(c(o,"resize",i,!0),c(n,"scroll",i,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(s=new o.MutationObserver(i)).observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(n),this._monitoringUnsubscribes.push((function(){var e=n.defaultView;e&&(r&&e.clearInterval(r),u(e,"resize",i,!0)),u(n,"scroll",i,!0),s&&s.disconnect()}));var a=this.root&&(this.root.ownerDocument||this.root)||t;if(n!=a){var l=e(n);l&&this._monitorIntersections(l.ownerDocument)}}},s.prototype._unmonitorIntersections=function(n){var o=this._monitoringDocuments.indexOf(n);if(-1!=o){var i=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==n)return!0;for(;o&&o!=i;){var r=e(o);if((o=r&&r.ownerDocument)==n)return!0}return!1}))){var r=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),r(),n!=i){var s=e(n);s&&this._unmonitorIntersections(s.ownerDocument)}}}},s.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t{e.forEach((e=>{n({intersectionRatio:hp(e),intersectionRect:dp(e.intersectionRect),boundingClientRect:dp(e.boundingClientRect),relativeRect:dp(e.rootBounds),time:Date.now(),dataset:xe(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e((e=ce(e))&&!Rc(e)&&(t=e,e=null),new mh(e||$c(),t))));let yh=0,bh={};function vh(e,t,n,o){const i={options:o},r=o&&("success"in o||"fail"in o||"complete"in o);if(r){const e=String(yh++);i.callbackId=e,bh[e]=o}Mv.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,(({callbackId:e,data:t})=>{r&&(!function(e,t){e=e||{},_(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?v(e.success)&&e.success(t):v(e.fail)&&e.fail(t),v(e.complete)&&e.complete(t)}(bh[e],t),delete bh[e])}))}const _h={canvas:rh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){Hd(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){Hd(this.id,this.pageId,"moveToLocation",e)}getScale(e){Hd(this.id,this.pageId,"getScale",e)}getRegion(e){Hd(this.id,this.pageId,"getRegion",e)}includePoints(e){Hd(this.id,this.pageId,"includePoints",e)}translateMarker(e){Hd(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){Hd(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){Hd(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){Hd(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){Hd(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){Hd(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){Hd(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){Hd(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){Hd(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){Hd(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){Hd(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){Hd(this.id,this.pageId,"openMapApp",e)}on(e,t){Hd(this.id,this.pageId,"on",{name:e,callback:t})}},video:$d,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){vh(this.id,this.pageId,e,t)}}};function wh(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=_h[n];e.context=new i(t,o),delete e.contextInfo}}class xh{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class Sh{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return function(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:i,fields:r})=>{null===t?o.push(function(e){const t={};e.id&&(t.id="");e.dataset&&(t.dataset={});e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0);e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight);if(e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(r)):o.push(function(e,t,n,o,i){const r=function(e,t){if(!e)return t.$el;return e.$el}(t,e),s=r.parentElement;if(!s)return o?null:[];const{nodeType:a}=r,l=3===a||8===a;if(o){const e=l?s.querySelector(n):_f(r,n)?r:r.querySelector(n);return e?vf(e,i):null}{let e=[];const t=(l?s:r).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(vf(t,i))})),!l&&_f(r,n)&&e.unshift(vf(r,i)),e}}(e,t,n,i,r))})),n(o)}(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{g(e)?e.forEach(wh):wh(e);const o=n[t];v(o)&&o.call(this,e)})),v(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=ce(e),this}select(e){return this._nodesRef=new xh(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new xh(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new xh(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const kh=xd(0,(e=>((e=ce(e))&&!Rc(e)&&(e=null),new Sh(e||$c())))),Ch={formatArgs:{}},Ah={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Th{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=h({},Ah,e)}_getOption(e){const t={transition:h({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const Ih=ve((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{Th.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),Bh=xd(0,(e=>(Ih(),new Th(e))),0,Ch),Eh=vd("onWindowResize",(()=>{})),Ph=_d("offWindowResize",(()=>{})),zh=xd(0,(()=>{const e=Jg();return e&&e.$vm?e.$vm.$locale:Rl().getLocale()})),Mh=vd("onLocaleChange",(()=>{})),Oh={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Rh={formatArgs:{showToast:!0},beforeInvoke(){Fl()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=Rl(),o=n("uni.setClipboardData.success");o&&ov({title:o,icon:"success",mask:!1})}},Lh=(Boolean,["wgs84","gcj02"]),Nh={formatArgs:{type(e,t){e=(e||"").toLowerCase(),-1===Lh.indexOf(e)?t.type=Lh[0]:t.type=e},altitude(e,t){t.altitude=e||!1}}},Dh=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Wu(e,ju)},sourceType(e,t){t.sourceType=Wu(e,Hu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),$h={formatArgs:{sourceType(e,t){t.sourceType=Wu(e,Hu)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},jh=(Boolean,["all","image","video"]),Hh={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Wu(e,Hu)},type(e,t){t.type=Vu(e,jh)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||("all"!==t.type&&t.type?t.extension=["*"]:t.extension=[""])}}},Fh={formatArgs:{src(e,t){t.src=rf(e)}}},Vh={formatArgs:{urls(e,t){t.urls=e.map((e=>_(e)&&e?rf(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),s={};r.forEach((e=>{const t=e.split("=");s[t[0]]=t[1]}));for(const a in t)if(m(t,a)){let e=t[a];null==e?e="":A(e)&&(e=JSON.stringify(e)),s[qh(a)]=qh(e)}return i=Object.keys(s).map((e=>`${e}=${s[e]}`)).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Fu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Wh).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Uh.indexOf(t.responseType)&&(t.responseType="text")}}},Yh={formatArgs:{header(e,t){t.header=e||{}}}},Gh={formatArgs:{filePath(e,t){e&&(t.filePath=rf(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Xh={url:{type:String,required:!0}},Kh=(tp(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),tp(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),ip("navigateTo")),Jh=ip("redirectTo"),Zh=ip("reLaunch"),ep={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(jp().length-1,e)}}};function tp(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 np;function op(){np=""}function ip(e){return{formatArgs:{url:rp(e)},beforeAll:op}}function rp(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/")||0===e.indexOf("uni:"))return e;let t="";const n=jp();return n.length&&(t=Ic(n[n.length-1]).route),Yc(t,e)}(t)).split("?")[0],i=Gc(o,!0);if(!i)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!_(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(np===t&&"appLaunch"!==n.openType)return`${np} locked`;__uniConfig.ready&&(np=t)}else if(i.meta.isTabBar){const e=jp(),t=i.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const sp={formatArgs:{duration:300}},ap=(Boolean,{formatArgs:{title:"",mask:!1}}),lp=(Boolean,{beforeInvoke(){jl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!m(t,"cancelText")){const{t:e}=Rl();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!m(t,"confirmText")){const{t:e}=Rl();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),cp=["success","loading","none","error"],up=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Vu(e,cp)},image(e,t){t.image=e?rf(e):""},duration:1500,mask:!1}});function dp(e){const{bottom:t,height:n,left:o,right:i,top:r,width:s}=e||{};return{bottom:t,height:n,left:o,right:i,top:r,width:s}}function hp(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:i,width:r}}=e;return 0!==t?t:i===n?r/o:i/n}function pp(){const e=$c();if(!e)return;const t=$p(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Fp(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Vc(e,"onHide"))}function fp(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function mp(e){const t=$p().values();for(const n of t){const t=Mp(n);if(fp(e,t))return n.$.__isActive=!0,t.id}}const gp=Sd("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Op.handledBeforeEntryPageRoutes)return pp(),wp({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},mp(e)).then(o).catch(i);Lp.push({args:{type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})}),0,ip("switchTab"));function yp(){const e=Lc();if(!e)return;const t=Mp(e);Fp(qp(t.path,t.id))}const bp=Sd("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Op.handledBeforeEntryPageRoutes)return yp(),wp({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o);Np.push({args:{type:"redirectTo",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Jh);function vp(){const e=$p().keys();for(const t of e)Fp(t)}const _p=Sd("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Op.handledBeforeEntryPageRoutes)return vp(),wp({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o);Dp.push({args:{type:"reLaunch",url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,Zh);function wp({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},r){const s=Jg().$router,{path:a,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Be(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Vp,__type__:e}}(e,r);s["navigateTo"===e?"push":"replace"]({path:a,query:l,state:u,force:!0}).then((r=>{if(Da(r))return c(r.message);if("switchTab"===e&&(s.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=s.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new Pe(u.__id__,o),t(i?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:u.__id__}):t()}))}))}function xp(){if(Op.handledBeforeEntryPageRoutes)return;Op.handledBeforeEntryPageRoutes=!0;const e=[...Rp];Rp.length=0,e.forEach((({args:e,resolve:t,reject:n})=>wp(e).then(t).catch(n)));const t=[...Lp];Lp.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(pp(),wp(e,mp(e.url)).then(t).catch(n))));const n=[...Np];Np.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(yp(),wp(e).then(t).catch(n))));const o=[...Dp];Dp.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(vp(),wp(e).then(t).catch(n))))}let Sp;function kp(){var e;return Sp||(Sp=__uniConfig.tabBar&&Gt((e=__uniConfig.tabBar,El()&&e.list&&e.list.forEach((e=>{Ol(e,["text"])})),El()&&e.midButton&&Ol(e.midButton,["text"]),e))),Sp}function Cp(e){const t=window.CSS&&window.CSS.supports;return t&&(t(e)||t.apply(window.CSS,e.split(":")))}const Ap=Cp("top:env(a)"),Tp=Cp("top:constant(a)"),Ip=Cp("backdrop-filter:blur(10px)"),Bp=(()=>Ap?"env":Tp?"constant":"")();function Ep(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=kp();e.shown&&(n=parseInt(e.height))}var o;kc({"--window-top":(o=t,Bp?`calc(${o}px + ${Bp}(safe-area-inset-top))`:`${o}px`),"--window-bottom":Pp(n)})}function Pp(e){return Bp?`calc(${e}px + ${Bp}(safe-area-inset-bottom))`:`${e}px`}const zp=new Map;function Mp(e){return e.$page}const Op={handledBeforeEntryPageRoutes:!1},Rp=[],Lp=[],Np=[],Dp=[];function $p(){return zp}function jp(){return Hp()}function Hp(){const e=[],t=zp.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Fp(e,t=!0){const n=zp.get(e);n.$.__isUnload=!0,Vc(n,"onUnload"),zp.delete(e),t&&function(e){const t=Qp.get(e);t&&(Qp.delete(e),Yp.pruneCacheEntry(t))}(e)}let Vp=$u();function Wp(e){const t=Lu();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,r){const{id:s,route:a}=o,l=je(o.navigationBar,__uniConfig.themeConfig,r).titleColor;return{id:s,path:ge(a),route:a,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function Up(e){const t=Wp(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",e.$fontFamilySet=new Set,t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),zp.set(qp(t.path,t.id),e),1===zp.size&&setTimeout((()=>{xp()}),0)}function qp(e,t){return e+"$$"+t}const Qp=new Map,Yp={get:e=>Qp.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;Yp.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;Yp.delete(n),Yp.pruneCacheEntry(e),Ln((()=>{zp.forEach(((e,t)=>{e.$.isUnmounted&&zp.delete(t)}))}))}}))}(e),Qp.set(e,t)},delete(e){Qp.get(e)&&Qp.delete(e)},forEach(e){Qp.forEach(e)}};function Gp(e,t){!function(e){const t=Kp(e),{body:n}=document;Jp&&n.removeAttribute(Jp),t&&n.setAttribute(t,""),Jp=t}(e),Ep(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),tf(e,t)}function Xp(e){const t=Kp(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Kp(e){return e.type.__scopeId}let Jp;const Zp=!!(()=>{let e=!1;try{const t={};Object.defineProperty(t,"passive",{get(){e=!0}}),window.addEventListener("test-passive",(()=>{}),t)}catch(t){}return e})()&&{passive:!1};let ef;function tf(e,t){if(document.removeEventListener("touchmove",Wc),ef&&document.removeEventListener("scroll",ef),t.disableScroll)return document.addEventListener("touchmove",Wc,Zp);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const r={},s=Mp(e.proxy).id;(n||i)&&(r.onPageScroll=function(e,t,n){return o=>{t&&zv.publishHandler("onPageScroll",{scrollTop:o},e),n&&zv.emit(e+".onPageScroll",{scrollTop:o})}}(s,n,i)),(null==o?void 0:o.length)&&(r.onReachBottomDistance=t.onReachBottomDistance||50,r.onReachBottom=()=>zv.publishHandler("onReachBottom",{},s)),ef=Qc(r),requestAnimationFrame((()=>document.addEventListener("scroll",ef)))}function nf(e){return e.$el}function of(e){const{base:t}=__uniConfig.router;return 0===ge(e).indexOf(t)?ge(e):t+e}function rf(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return of(e.slice(1));e="https:"+e}if(re.test(e)||se.test(e)||0===e.indexOf("blob:"))return e;const o=Hp();return o.length?of(Yc(Mp(o[o.length-1]).route,e).slice(1)):e}const sf=navigator.userAgent,af=/android/i.test(sf),lf=/iphone|ipad|ipod/i.test(sf),cf=sf.match(/Windows NT ([\d|\d.\d]*)/i),uf=/Macintosh|Mac/i.test(sf),df=/Linux|X11/i.test(sf),hf=uf&&navigator.maxTouchPoints>0,pf=/OpenHarmony/i.test(sf);function ff(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function mf(e){return e&&90===Math.abs(window.orientation)}function gf(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function yf(){const e=ff();if(e){const t=gf(e,mf(e));return Math.min(window.innerWidth,document.documentElement.clientWidth,t)||t}return Math.min(window.innerWidth,document.documentElement.clientWidth)}function bf(e,t,n,o){Mv.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function vf(e,t){const n={},{top:o,topWindowHeight:i}=xc();if(t.node){const t=e.tagName.split("-")[1]||e.tagName;t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=xe(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(n.left=r.left,n.right=r.right,n.top=r.top-o-i,n.bottom=r.bottom-o-i),t.size&&(n.width=r.width,n.height=r.height)}if(g(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(g(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function _f(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}const wf={};function xf(e,t){const n=wf[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",i=atob(t[1]);let r=i.length;const s=new Uint8Array(r);for(;r--;)s[r]=i.charCodeAt(r);return Sf(s,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function Sf(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function kf(e){for(const n in wf)if(m(wf,n)){if(wf[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return wf[t]=e,t}function Cf(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete wf[e]}const Af=bu(),Tf=bu();const If=xu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=hn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=Gt({width:-1,height:-1});return ho((()=>h({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){$o(o),Xo((()=>{t.initial&&Ln(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,i,o),()=>gr("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[gr("div",{onScroll:i},[gr("div",null,null)],40,["onScroll"]),gr("div",{onScroll:i},[gr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Bf=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 Ef(e,t=!0){const n=t?Bf:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Pf=!1;function zf(){if(Pf)return;Pf=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;t.drawImageByCanvas=function(e){return function(t,n,o,i,r,s,a,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Bf,o*=Bf,i*=Bf,r*=Bf,s*=Bf,a*=Bf,l=u?l*Bf:l,c=u?c*Bf:c,e.call(this,t,n,o,i,r,s,a,l,c)}}(t.drawImage),1!==Bf&&(!function(e,t){for(const n in e)m(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*Bf}));else if(Array.isArray(e))for(let t=0;tzf()));function Of(e){return e?rf(e):e}function Rf(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Lf(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let Nf;function Df(e=0,t=0){return Nf||(Nf=document.createElement("canvas")),Nf.width=e,Nf.height=t,Nf}const $f=xu({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Mf();const o=hn(null),i=hn(null),r=hn(null),s=hn(!1),a=function(e){return(t,n)=>{e(t,nu(n))}}(t),{$attrs:l,$excludeAttrs:c,$listeners:u}=Bm({excludeListeners:!0}),{_listeners:d}=function(e,t,n){const o=$r((()=>{let o=["onTouchstart","onTouchmove","onTouchend"],i=t.value,r=h({},(()=>{let e={};for(const t in i)if(m(i,t)){const n=i[t];e[t]=n}return e})());return o.forEach((t=>{let o=[];r[t]&&o.push(ku((e=>{const o=e.currentTarget.getBoundingClientRect();Lf(o,e.touches),Lf(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(bc),r[t]=o})),r}));return{_listeners:o}}(e,u,a),{_handleSubscribe:p,_resize:f}=function(e,t,n){let o=[],i={};const r=$r((()=>e.hidpi?Bf:1));function s(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*r.value)||o.height!==Math.floor(n.height*r.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);Ef(o,e.hidpi),t.putImageData(n,0,0)}else Ef(o,e.hidpi)}function a({actions:e,reserve:r},s){if(!e)return;if(n.value)return void o.push([e,r]);let a=t.value,u=a.getContext("2d");r||(u.fillStyle="#000000",u.strokeStyle="#000000",u.shadowColor="#000000",u.shadowBlur=0,u.shadowOffsetX=0,u.shadowOffsetY=0,u.setTransform(1,0,0,1,0,0),u.clearRect(0,0,a.width,a.height)),l(e);for(let t=0;t{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=Of(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=Of(o),n[1]=o),o&&!i[o]&&r()}))}function c(e,t,r,s){let l=i[e];return l.ready?(s(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,s(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)a({actions:t[0],reserve:t[1]},r),t=e.shift()},!1)}function u({x:e=0,y:n=0,width:o,height:i,destWidth:s,destHeight:a,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;o=o?Math.min(o,m):m;const g=p.offsetHeight-n;i=i?Math.min(i,g):g,l?(s=o,a=i):s||a?s?a||(a=Math.round(i/o*s)):(a||(a=Math.round(i*r.value)),s=Math.round(o/i*a)):(s=Math.round(o*r.value),a=Math.round(i*r.value));const y=Df(s,a),b=y.getContext("2d");let v;"jpeg"!==d&&"jpg"!==d||(d="jpeg",b.fillStyle="#fff",b.fillRect(0,0,s,a)),b.__hidpi__=!0,b.drawImageByCanvas(p,e,n,o,i,0,0,s,a,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=b.getImageData(0,0,s,a);f=Array.prototype.slice.call(e.data)}v={data:f,compressed:e,width:s,height:a}}catch(_){v={errMsg:`canvasGetImageData:fail ${_}`}}if(y.height=y.width=0,b.__hidpi__=!1,!h)return v;h(v)}function d({data:e,x:n,y:o,width:i,height:r,compressed:s},a){try{0,r||(r=Math.round(e.length/4/i));const s=Df(i,r);s.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),i,r),0,0),t.value.getContext("2d").drawImage(s,n,o,i,r),s.height=s.width=0}catch(l){return void a({errMsg:"canvasPutImageData:fail"})}a({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:o,destWidth:i,destHeight:r,fileType:s,quality:a,dirname:l},c){const d=u({x:e,y:t,width:n,height:o,destWidth:i,destHeight:r,hidpi:!1,dataType:"base64",type:s,quality:a});var h;d.errMsg?c({errMsg:d.errMsg.replace("canvasPutImageData","toTempFilePath")}):(h=d.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h))}const f={actionsChanged:a,getImageData:u,putImageData:d,toTempFilePath:p};function m(e,t,n){let o=f[e];0!==e.indexOf("_")&&v(o)&&o(t,n)}return h(f,{_resize:s,_handleSubscribe:m})}(e,i,s);return Bg(p,Pg(e.canvasId),!0),Xo((()=>{f()})),()=>{const{canvasId:t,disableScroll:s}=e;return gr("uni-canvas",Sr({ref:o,"canvas-id":t,"disable-scroll":s},l.value,c.value,d.value),[gr("canvas",{ref:i,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),gr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),gr(If,{ref:r,onResize:f},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const jf=Cc("ucg"),Hf=xu({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=hn(null),o=hn(e.checked),i=$r((()=>"true"===o.value||!0===o.value)),r=hn(e.value);const s=$r((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value)));ho([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,r.value=t}));const{uniCheckGroup:a,uniLabel:l}=function(e,t,n){const o=$r((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},r=Ei(jf,!1);r&&r.addField(o);const s=Ei(Bu,!1);s&&s.addField(i);const a=Ei(Eu,!1);return Zo((()=>{r&&r.removeField(o),s&&s.removeField(i)})),{uniCheckGroup:r,uniForm:s,uniLabel:a}}(o,r,(()=>{o.value=!1})),c=t=>{e.disabled||(o.value=!o.value,a&&a.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),Zo((()=>{l.removeHandler(c)}))),Pu(e,{"label-click":c}),()=>{const i=Iu(e,"disabled");let r;return r=o.value,gr("uni-checkbox",Sr(i,{id:e.id,onClick:c,ref:n}),[gr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[gr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:s.value},[r?Mc(Ec,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Ff(){}const Vf={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}};function Wf(e,t,n){function o(e){const t=$r((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Ff,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Ff,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}ho((()=>t.value),(e=>e&&o(e)))}var Uf=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,qf=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Qf=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Yf=em("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Gf=em("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Xf=em("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Kf=em("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Jf=em("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Zf=em("script,style");function em(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},om={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"]},im=xu({name:"Image",props:tm,setup(e,{emit:t}){const n=hn(null),o=function(e,t){const n=hn(""),o=$r((()=>{let e="auto",o="";const i=om[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),i=Gt({rootEl:e,src:$r((()=>t.src?rf(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return Xo((()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0})),i}(n,e),i=Cu(n,t),{fixSize:r}=function(e,t,n){const o=()=>{const{mode:o}=t,i=nm[o];if(!i)return;const{origWidth:r,origHeight:s}=n,a=r&&s?r/s:0;if(!a)return;const l=e.value,c=l[i[0]];c&&(l.style[i[1]]=function(e){rm&&e>10&&(e=2*Math.round(e/2));return e}(i[2](c,a))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return ho((()=>t.mode),((e,t)=>{nm[t]&&i(),nm[e]&&o()})),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let r,s;const a=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return c(),void a();r=r||new Image,r.onload=e=>{const{width:u,height:d}=r;a(u,d,l),Ln((()=>{o()})),r.draggable=t.draggable,s&&s.remove(),s=r,n.value.appendChild(r),c(),i("load",e,{width:u,height:d})},r.onerror=t=>{a(),c(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},r.src=l},c=()=>{r&&(r.onload=null,r.onerror=null,r=null)};ho((()=>e.src),(e=>l(e))),ho((()=>e.imgSrc),(e=>{!e&&s&&(s.remove(),s=null)})),Xo((()=>l(e.src))),Zo((()=>c()))}(o,e,n,r,i),()=>gr("uni-image",{ref:n},[gr("div",{style:o.modeStyle},null,4),nm[e.mode]?gr(If,{onResize:r},null,8,["onResize"]):gr("span",null,null)],512)}});const rm="Google Inc."===navigator.vendor;const sm=ke(!0),am=[];let lm=0,cm=!1;const um=e=>am.forEach((t=>t.userAction=e));function dm(e={userAction:!1}){if(!cm){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!lm&&um(!0),lm++,setTimeout((()=>{!--lm&&um(!1)}),0)}),sm)})),cm=!0}am.push(e)}const hm=()=>!!lm;function pm(){const e=Gt({userAction:!1});return Xo((()=>{dm(e)})),Zo((()=>{!function(e){const t=am.indexOf(e);t>=0&&am.splice(t,1)}(e)})),{state:e}}function fm(){const e=Gt({attrs:{}});return Xo((()=>{let t=Ir();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function mm(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function gm(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");return null==e?"":String(e)}const ym=["none","text","decimal","numeric","tel","search","email","url"],bm=h({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~ym.indexOf(e)},cursorColor:{type:String,default:""}},Vf),vm=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function _m(e,t,n,o,i){let r=null,s=null;s=Ee((n=>{const o=i.value,s=gm(n,e.type);o&&document.activeElement===o&&s===r||(t.value=s)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),ho((()=>e.modelValue),s),ho((()=>e.value),s);const a=function(e,t){let n,o,i=0;const r=function(...r){const s=Date.now();clearTimeout(n),o=()=>{o=null,i=s,e.apply(this,r)},s-i{s.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return Go((()=>{s.cancel(),a.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{s.cancel(),r=t.value,a(e,t),n&&a.flush()}}}function wm(e,t){pm();const n=$r((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}ho((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),Xo((()=>{n.value&&Ln(o)}))}function xm(e,t,n,o){Yl(Dc(),"getSelectedTextRange",mm);const{fieldRef:i,state:r,trigger:s}=function(e,t,n){const o=hn(null),i=Cu(t,n),r=$r((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),s=$r((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),a=$r((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=$r((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let c="";c=gm(e.modelValue,e.type)||gm(e.value,e.type);const u=Gt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:r,selectionEnd:s,cursor:a});return ho((()=>u.focus),(e=>n("update:focus",e))),ho((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:u,trigger:i}}(e,t,n),{triggerInput:a}=_m(e,r,n,s,i);wm(e,i),Wf(0,i);const{state:l}=fm();!function(e,t){const n=Ei(Bu,!1);if(!n)return;const o=Ir(),i={submit(){const n=o.proxy;return[n[e],_(t)?n[t]:t.value]},reset(){_(t)?o.proxy[t]="":t.value=""}};n.addField(i),Zo((()=>{n.removeField(i)}))}("name",r),function(e,t,n,o,i,r){function s(){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 a(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}ho([()=>t.selectionStart,()=>t.selectionEnd],s),ho((()=>t.cursor),a),ho((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,o){e.stopPropagation(),v(r)&&!1===r(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:c.value,cursor:l(c)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),s(),a()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),c.addEventListener("input",u),c.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),c.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,u(e)),d(e)})),c.addEventListener("compositionupdate",d)}))}(i,r,e,s,a,o);return{fieldRef:i,state:r,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:s}}const Sm=ve((()=>{{const e=navigator.userAgent;let t="";const n=e.match(/OS\s([\w_]+)\slike/);if(n)t=n[1].replace(/_/g,".");else if(/Macintosh|Mac/i.test(e)&&navigator.maxTouchPoints>0){const n=e.match(/Version\/(\S*)\b/);n&&(t=n[1])}return!!t&&parseInt(t)>=16&&parseFloat(t)<17.2}}));function km(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes(".")&&t.value===o.value)return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&Sm()&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}function Cm(e){return"insertFromPaste"===e.inputType}const Am=xu({name:"Input",props:h({},bm,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...vm],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],r=$r((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":case"none":t="text";break;case"digit":t="number";break;default:t=o.includes(e.type)?e.type:"text"}return e.password?"password":t})),s=$r((()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(M(e.textContentType));return i[-1!==t?t:-1!==n?n:0]})),a=$r((()=>{if(void 0!==e.inputmode)return e.inputmode;if(ym.includes(e.type))return e.type;return{number:"numeric",digit:"decimal",idcard:"text"}[e.type]}));let l=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=hn(null!=t?t.toLocaleString():"");return ho((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),ho((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return hn("")}(e,r),c={fn:null};const u=hn(null),{fieldRef:d,state:h,scopedAttrsState:p,fixDisabledColor:f,trigger:m}=xm(e,u,t,((e,t)=>{const n=e.target;if("number"===r.value){if(c.fn&&(n.removeEventListener("blur",c.fn),c.fn=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",c.fn=()=>{l.value=n.value=""},n.addEventListener("blur",c.fn),!1;const o=km(e,l,t,n,c);return"boolean"==typeof o?o:(l.value=t.value=n.value="-"===l.value?"":l.value,!1)}{const o=km(e,l,t,n,c);if("boolean"==typeof o)return o;l.value=n.value}if(t.maxlength>0&&n.value.length>t.maxlength&&!Cm(e))return n.value=l.value=t.value,!1}}));ho((()=>h.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t.toString())})),ho((()=>e.maxlength),(e=>{e=parseInt(e,10);const t=h.value.slice(0,e);t!==h.value&&(h.value=t)}));const g=["number","digit"],y=$r((()=>g.includes(e.type)?e.step:""));function b(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),m("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),h.value=e.value}}),()=>{let t=e.disabled&&f?gr("input",{key:"disabled-input",ref:d,value:h.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:h.maxlength,step:y.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},inputmode:a.value,onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","inputmode","onFocus"]):gr("input",{key:"input",ref:d,value:h.value,onInput:Ls((e=>{const t=e.target.value.toString();"number"===r.value&&h.maxlength>0&&t.length>h.maxlength?Cm(e)&&(h.value=t.slice(0,h.maxlength)):0===t.length&&"insertText"===e.inputType&&"."===e.data||(h.value=t)}),["stop"]),disabled:!!e.disabled,type:r.value,maxlength:h.maxlength,step:y.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:s.value,onKeyup:b,inputmode:a.value},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return gr("uni-input",{ref:u},[gr("div",{class:"uni-input-wrapper"},[yo(gr("div",Sr(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[as,!(h.value.length||"-"===l.value||l.value.includes("."))]]),"search"===e.confirmType?gr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Tm=["class","style"],Im=/^on[A-Z]+/,Bm=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Ir(),i=pn({}),r=pn({}),s=pn({}),a=n.concat(Tm);return o.attrs=Gt(o.attrs),co((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(a.includes(n)?e.exclude[n]=o:Im.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,r.value=e.listeners,s.value=e.exclude})),{$attrs:i,$listeners:r,$excludeAttrs:s}};function Em(e){const t=[];return g(e)&&e.forEach((e=>{ur(e)?e.type===Ji?t.push(...Em(e.children)):t.push(e):g(e)&&t.push(...Em(e))})),t}const Pm=xu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=hn(null),o=hn(!1);let{setContexts:i,events:r}=function(e,t){const n=hn(0),o=hn(0),i=Gt({x:null,y:null}),r=hn(null);let s=null,a=[];function l(t){t&&1!==t&&(e.scaleArea?a.forEach((function(e){e._setScale(t)})):s&&s._setScale(t))}function c(e,n=a){let o=t.value;function i(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(r.value=zm(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);s=e&&e===t?e:null}}})),d=ku((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&r.value&&r.value>0){l(zm(n)/r.value)}i.x=n.x,i.y=n.y}})),h=ku((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,r.value=null,e.scaleArea?a.forEach((function(e){e._endScale()})):s&&s._endScale())}));function p(){f(),a.forEach((function(e,t){e.setParent()}))}function f(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=i.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return Bi("movableAreaWidth",n),Bi("movableAreaHeight",o),{setContexts(e){a=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:s,$attrs:a,$excludeAttrs:l}=Bm(),c=s.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=r[`_${e}`];c[e]=t?[].concat(t,n):n})),Xo((()=>{r._resize(),o.value=!0}));let u=[];const d=[];function h(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(rn(o))}i(e)}return Bi("_isMounted",o),Bi("movableAreaRootRef",n),Bi("addMovableViewContext",(e=>{d.push(e),h()})),Bi("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>{const e=t.default&&t.default();return u=Em(e),gr("uni-movable-area",Sr({ref:n},a.value,l.value,c),[gr(If,{onResize:r._resize},null,8,["onResize"]),u],16)}}});function zm(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Mm=function(e,t,n,o){e.addEventListener(t,(e=>{v(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Om,Rm;function Lm(e,t,n){Zo((()=>{document.removeEventListener("mousemove",Om),document.removeEventListener("mouseup",Rm)}));let o=0,i=0,r=0,s=0;const a=function(e,n,a,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:a,y:l,dx:a-o,dy:l-i,ddx:a-r,ddy:l-s,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;Mm(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,o=r=e.touches[0].pageX,i=s=e.touches[0].pageY,a(e,"start",o,i)})),Mm(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,o=r=e.pageX,i=s=e.pageY,a(e,"start",o,i)})),Mm(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=a(e,"move",e.touches[0].pageX,e.touches[0].pageY);return r=e.touches[0].pageX,s=e.touches[0].pageY,t}}));const d=Om=function(e){if(!l&&c&&u){const t=a(e,"move",e.pageX,e.pageY);return r=e.pageX,s=e.pageY,t}};document.addEventListener("mousemove",d),Mm(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,a(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const h=Rm=function(e){if(c=!1,!l&&u)return u=null,a(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),Mm(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,a(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Nm(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}},jm.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}},jm.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}},jm.prototype.dt=function(){return-this._x_v/this._x_a},jm.prototype.done=function(){const e=Nm(this.s().x,this._endPositionX)||Nm(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},jm.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},jm.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Hm.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,r=n*n-4*o*i;if(0===r){const i=-n/(2*o),r=e,s=t/(i*e);return{x:function(e){return(r+s*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(r+s*e)*t+s*t}}}if(r>0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}},Hm.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Hm.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Hm.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Dm(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Dm(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Dm(t,.1)&&(t=0),Dm(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Dm(o-e,.1)&&Dm(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Hm.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Hm.prototype.done=function(e){return e||(e=(new Date).getTime()),Nm(this.x(),this._endPosition,.1)&&Dm(this.dx(),.1)},Hm.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())},Hm.prototype.springConstant=function(){return this._k},Hm.prototype.damping=function(){return this._c},Hm.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}]},Fm.prototype.setEnd=function(e,t,n,o){const i=(new Date).getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Fm.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)}},Fm.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Fm.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function Vm(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Wm=xu({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.1},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=hn(null),i=Cu(o,n),{setParent:r}=function(e,t,n){const o=Ei("_isMounted",hn(!1)),i=Ei("addMovableViewContext",(()=>{})),r=Ei("removeMovableViewContext",(()=>{}));let s,a,l=hn(1),c=hn(1),u=hn(!1),d=hn(0),h=hn(0),p=null,f=null,m=!1,g=null,y=null;const b=new $m,v=new $m,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=$r((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new jm(1,w.value);ho((()=>e.disabled),(()=>{U()}));const{_updateOldScale:S,_endScale:k,_setScale:C,scaleValueSync:A,_updateBoundary:T,_updateOffset:I,_updateWH:B,_scaleOffset:E,minX:P,minY:z,maxX:M,maxY:O,FAandSFACancel:R,_getLimitXY:L,_setTransform:N,_revise:D,dampingNumber:$,xMove:j,yMove:H,xSync:F,ySync:V,_STD:W}=function(e,t,n,o,i,r,s,a,l,c){const u=$r((()=>{let t=Number(e.scaleMin);return isNaN(t)?.1:t})),d=$r((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),h=hn(Number(e.scaleValue)||1);ho(h,(e=>{N(e)})),ho(u,(()=>{L()})),ho(d,(()=>{L()})),ho((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:b,maxX:v,maxY:_}=function(e,t,n){const o=Ei("movableAreaWidth",hn(0)),i=Ei("movableAreaHeight",hn(0)),r=Ei("movableAreaRootRef"),s={x:0,y:0},a={x:0,y:0},l=hn(0),c=hn(0),u=hn(0),d=hn(0),h=hn(0),p=hn(0);function f(){let e=0-s.x+a.x,t=o.value-l.value-s.x-a.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-s.y+a.y,r=i.value-c.value-s.y-a.y;d.value=Math.min(n,r),p.value=Math.max(n,r)}function m(){s.x=Qm(e.value,r.value),s.y=Ym(e.value,r.value)}function g(o){o=o||t.value,o=n(o);let i=e.value.getBoundingClientRect();c.value=i.height/t.value,l.value=i.width/t.value;let r=c.value*o,s=l.value*o;a.x=(s-l.value)/2,a.y=(r-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:a,minX:u,minY:d,maxX:h,maxY:p}}(t,o,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:S,_setTransform:k,_revise:C,dampingNumber:A,xMove:T,yMove:I,xSync:B,ySync:E,_STD:P}=function(e,t,n,o,i,r,s,a,l,c,u,d,h,p){const f=$r((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=$r((()=>"all"===t.direction||"horizontal"===t.direction)),g=$r((()=>"all"===t.direction||"vertical"===t.direction)),y=hn(Xm(t.x)),b=hn(Xm(t.y));ho((()=>t.x),(e=>{y.value=Xm(e)})),ho((()=>t.y),(e=>{b.value=Xm(e)})),ho(y,(e=>{C(e)})),ho(b,(e=>{A(e)}));const v=new Fm(1,9*Math.pow(f.value,2)/40,f.value);function _(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):er.value?(t=r.value,n=!0):t1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+s,_.historyX.shift(),_.historyX.push(n),H.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),H.value&&(o=t.detail.dy+a,_.historyY.shift(),_.historyY.push(o),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let i="touch";nM.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=M.value+b.x(n-M.value)):n=M.value),oO.value&&(e.outOfBounds?(i="touch-out-of-bounds",o=O.value+v.x(o-O.value)):o=O.value),qm((function(){N(n,o,l.value,i)}))}}}function Q(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!D("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=d.value,o=h.value;x.setV(e,t),x.setS(n,o);const i=x.delta().x,r=x.delta().y;let s=i+n,a=r+o;sM.value&&(s=M.value,a=o+(M.value-n)*r/i),aO.value&&(a=O.value,s=n+(O.value-o)*i/r),x.setEnd(s,a),f=Gm(x,(function(){let e=x.s(),t=e.x,n=e.y;N(t,n,l.value,"friction")}),(function(){f.cancel()}))}e.outOfBounds||e.inertia||R()}function Y(){if(!o.value)return;R();let t=e.scale?A.value:1;I(),B(t),T();let n=L(F.value+E.x,V.value+E.y),i=n.x,r=n.y;N(i,r,t,"",!0),S(t)}return Xo((()=>{Lm(n.value,(e=>{switch(e.detail.state){case"start":U();break;case"move":q(e);break;case"end":Q()}})),Y(),x.reconfigure(1,w.value),W.reconfigure(1,9*Math.pow($.value,2)/40,$.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:k,_setScale:C};i(e),ei((()=>{r(e)}))})),ei((()=>{R()})),{setParent:Y}}(e,i,o);return()=>gr("uni-movable-view",{ref:o},[gr(If,{onResize:r},null,8,["onResize"]),t.default&&t.default()],512)}});let Um=!1;function qm(e){Um||(Um=!0,requestAnimationFrame((function(){e(),Um=!1})))}function Qm(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Qm(e.offsetParent,t):0}function Ym(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Ym(e.offsetParent,t):0}function Gm(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);let r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function Xm(e){return/\d+[ur]px$/i.test(e)?zd(parseFloat(e)):Number(e)||0}const Km=xu({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return g(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=hn(null),i=hn(null),r=Cu(o,n),s=function(e){const t=Gt([...e.value]),n=Gt({value:t,height:34});return ho((()=>e.value),((e,t)=>{n.value.length=e.length,e.forEach(((e,t)=>{e!==n.value[t]&&n.value.splice(t,1,e)}))})),n}(e),a=hn(null);Xo((()=>{const e=a.value;e&&(s.height=e.$el.offsetHeight)}));let l=hn([]),c=hn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==er));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return Bi("getPickerViewColumn",(function(e){return $r({get(){const t=u(e.vnode);return s.value[t]||0},set(t){const o=u(e.vnode);if(o<0)return;if(s.value[o]!==t){s.value[o]=t;const e=s.value.map((e=>e));n("update:value",e),r("change",{},{value:e})}}})})),Bi("pickerViewProps",e),Bi("pickerViewState",s),()=>{const e=t.default&&t.default();{const t=Em(e);l.value=t,Ln((()=>{c.value=t}))}return gr("uni-picker-view",{ref:o},[gr(If,{ref:a,onResize:({height:e})=>s.height=e},null,8,["onResize"]),gr("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Jm{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 Zm(e,t,n){return e>t-n&&e0){const i=(-n-Math.sqrt(r))/(2*o),s=(-n+Math.sqrt(r))/(2*o),a=(t-i*e)/(s-i),l=e-a;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*t+a*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,i*e)),n||(n=this._powER2T=Math.pow(Math.E,s*e)),l*i*t+a*s*n}}}const s=Math.sqrt(4*o*i-n*n)/(2*o),a=-n/2*o,l=e,c=(t-a*e)/s;return{x:function(e){return Math.pow(Math.E,a*e)*(l*Math.cos(s*e)+c*Math.sin(s*e))},dx:function(e){const t=Math.pow(Math.E,a*e),n=Math.cos(s*e),o=Math.sin(s*e);return t*(c*s*n-l*s*o)+a*t*(c*o+l*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!eg(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(eg(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),eg(t,.4)&&(t=0),eg(o,.4)&&(o=0),o+=this._endPosition),this._solution&&eg(o-e,.4)&&eg(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()),Zm(this.x(),this._endPosition,.4)&&eg(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 ng{constructor(e,t,n){this._extent=e,this._friction=t||new Jm(.01),this._spring=n||new tg(1,90,20),this._startTime=0,this._springing=!1,this._springOffset=0}snap(e,t){this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(t)}set(e,t){this._friction.set(e,t),e>0&&t>=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(0)):e<-this._extent&&t<=0?(this._springOffset=0,this._springing=!0,this._spring.snap(e),this._spring.setEnd(-this._extent)):this._springing=!1,this._startTime=(new Date).getTime()}x(e){if(!this._startTime)return 0;if(e||(e=((new Date).getTime()-this._startTime)/1e3),this._springing)return this._spring.x()+this._springOffset;let t=this._friction.x(e),n=this.dx(e);return(t>0&&n>=0||t<-this._extent&&n<=0)&&(this._springing=!0,this._spring.setEnd(0,n),t<-this._extent?this._springOffset=-this._extent:this._springOffset=0,t=this._spring.x()+this._springOffset),t}dx(e){let t;return t=this._lastTime===e?this._lastDx:this._springing?this._spring.dx(e):this._friction.dx(e),this._lastTime=e,this._lastDx=t,t}done(){return this._springing?this._spring.done():this._friction.done()}setVelocityByEnd(e){this._friction.setVelocityByEnd(e)}configuration(){const e=this._friction.configuration();return e.push.apply(e,this._spring.configuration()),e}}class og{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 ng(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=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const r=n.done();r||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),r&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),v(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),v(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(v(this._options.onScroll)&&Math.round(Number(this._lastPos))!==Math.round(this._position)){this._lastPos=this._position;const e={target:{scrollLeft:this._enableX?-this._position:0,scrollTop:this._enableY?-this._position:0,scrollHeight:this._scrollHeight||this._element.offsetHeight,scrollWidth:this._scrollWidth||this._element.offsetWidth,offsetHeight:this._element.parentElement.offsetHeight,offsetWidth:this._element.parentElement.offsetWidth}};this._options.onScroll(e)}}update(e,t,n){let o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),v(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}}const ig=xu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=hn(null),i=hn(null),r=Ei("getPickerViewColumn"),s=Ir(),a=r?r(s):hn(0),l=Ei("pickerViewProps"),c=Ei("pickerViewState"),u=hn(34),d=hn(null);Xo((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const h=$r((()=>(c.height-u.value)/2)),{state:p}=fm();let f;const m=Gt({current:a.value,length:0});let g;function y(){f&&!g&&(g=!0,Ln((()=>{g=!1;let e=Math.min(m.current,m.length-1);e=Math.max(e,0),f.update(e*u.value,void 0,u.value)})))}ho((()=>a.value),(e=>{e!==m.current&&(m.current=e,y())})),ho((()=>m.current),(e=>a.value=e)),ho([()=>u.value,()=>m.length,()=>c.height],y);let b=0;function v(e){const t=b+e.deltaY;if(Math.abs(t)>10){b=0;let e=Math.min(m.current+(t<0?-1:1),m.length-1);m.current=e=Math.max(e,0),f.scrollTo(e*u.value)}else b=t;e.preventDefault()}function _({clientY:e}){const t=o.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,o=u.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/u.value),t=n<0?-e:e;let i=Math.min(m.current+t,m.length-1);m.current=i=Math.max(i,0),f.scrollTo(i*u.value)}}}const w=()=>{const e=o.value,t=i.value,{scroller:n,handleTouchStart:r,handleTouchMove:s,handleTouchEnd:a}=function(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new og(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const r=i(e);if(r){for(n.maxDy=Math.max(n.maxDy,Math.abs(r.y)),n.maxDx=Math.max(n.maxDx,Math.abs(r.x)),n.historyX.push(r.x),n.historyY.push(r.y),n.historyTime.push(t.detail.timeStamp||o.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(r.x,r.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],r=n.historyX[t],s=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(r-n.historyX[t])/(e/1e3),o.y=(s-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Jm(1e-4),spring:new tg(2,90,20),onSnap:e=>{isNaN(e)||e===m.current||(m.current=e)}});f=n,Lm(e,(e=>{switch(e.detail.state){case"start":r(e);break;case"move":s(e),e.stopPropagation();break;case"end":case"cancel":a(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),y()};return Xo(w),()=>{const e=t.default&&t.default();m.length=Em(e).length;const n=`${h.value}px 0`;return gr("uni-picker-view-column",{ref:o},[gr("div",{onWheel:v,onClick:_,class:"uni-picker-view-group"},[gr("div",Sr(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),gr("div",Sr(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[gr(If,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),gr("div",{ref:i,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${u.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),rg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},sg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const ag=(e,t,n)=>!n||g(n)&&!n.length?[]:n.map((n=>{var o;if(A(n)){if(!m(n,"type")||"node"===n.type){let i={[e]:""};const r=null==(o=n.name)?void 0:o.toLowerCase();if(!m(rg,r))return;return function(e,t){if(A(t))for(const n in t)if(m(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=rf(o))}}(r,n.attrs),i=h(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClickCapture:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),jr(n.name,i,ag(e,t,n.children))}return"text"===n.type&&_(n.text)&&""!==n.text?br((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return m(sg,t)&&sg[t]?sg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function lg(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,i,r=[],s=e;for(r.last=function(){return this[this.length-1]};e;){if(o=!0,r.last()&&Zf[r.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""})),c("",r.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("=0&&r[o]!=n;o--);else var o=0;if(o>=0){for(var i=r.length-1;i>=o;i--)t.end&&t.end(r[i]);r.length=o}}c()}(e,{start:function(e,o,i){const r={name:e};if(0!==o.length&&(r.attrs=function(e){return e.reduce((function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e}),{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(r)}else t.unshift(r)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const cg=xu({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["itemclick"],setup(e,{emit:t}){const n=Ir(),o=n&&n.vnode.scopeId||"",i=hn(null),r=hn([]),s=Cu(i,t);function a(e,t={}){s("itemclick",e,t)}return ho((()=>e.nodes),(function(){let t=e.nodes;_(t)&&(t=lg(e.nodes)),r.value=ag(o,a,t)}),{immediate:!0,deep:!0}),()=>jr("uni-rich-text",{ref:i},jr("div",{},r.value))}}),ug=xu({name:"Refresher",props:{refreshState:{type:String,default:""},refresherHeight:{type:Number,default:0},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"}},setup(e,{slots:t}){const n=hn(null),o=$r((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),i=$r((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:r,refresherDefaultStyle:s,refresherThreshold:a}=e;return gr("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==s?gr("div",{class:"uni-scroll-view-refresh"},[gr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==r?gr("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[gr("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),gr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==r?gr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[gr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===s?gr("div",{class:"uni-scroll-view-refresher-container",style:{height:`${a}px`}},[t.default&&t.default()]):null],4)}}}),dg=ke(!0),hg=xu({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=hn(null),r=hn(null),s=hn(null),a=hn(null),l=Cu(i,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=$r((()=>Number(e.scrollTop)||0)),n=$r((()=>Number(e.scrollLeft)||0));return{state:Gt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:p,_scrollLeftChanged:f,_scrollTopChanged:m}=function(e,t,n,o,i,r,s,a,l){let c=!1,u=0,d=!1,h=()=>{};const p=$r((()=>e.scrollX)),f=$r((()=>e.scrollY)),m=$r((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=$r((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function y(e,t){const n=s.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let r=a.value;r.style.transition="transform .3s ease-out",r.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),r.removeEventListener("transitionend",h),r.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),r.addEventListener("transitionend",h),r.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),r.style.transform=i,r.style.webkitTransform=i}function b(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),f.value&&(n.scrollTop<=m.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+g.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+g.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function v(t){f.value&&(e.scrollWithAnimation?y(t,"y"):s.value.scrollTop=t)}function _(t){p.value&&(e.scrollWithAnimation?y(t,"x"):s.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=r.value.querySelector("#"+t);if(n){let t=s.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(p.value){let n=o.left-t.left,i=s.value.scrollLeft+n;e.scrollWithAnimation?y(i,"x"):s.value.scrollLeft=i}if(f.value){let n=o.top-t.top,i=s.value.scrollTop+n;e.scrollWithAnimation?y(i,"y"):s.value.scrollTop=i}}}}function x(e,t){a.value.style.transition="",a.value.style.webkitTransition="",a.value.style.transform="",a.value.style.webkitTransform="";let n=s.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),a.value.removeEventListener("transitionend",h),a.value.removeEventListener("webkitTransitionEnd",h)}function S(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:C.y-k.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:C.y-k.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:C.y-k.y}))}t.refreshState=n}}let k={x:0,y:0},C={x:0,y:e.refresherThreshold};return Xo((()=>{Ln((()=>{v(n.value),_(o.value)})),w(e.scrollIntoView);let r=function(e){e.preventDefault(),e.stopPropagation(),b(e)},a=null,l=function(n){if(null===k)return;let o=n.touches[0].pageX,r=n.touches[0].pageY,l=s.value;if(Math.abs(o-k.x)>Math.abs(r-k.y))if(p.value){if(0===l.scrollLeft&&o>k.x)return void(a=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&ok.y)a=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&r0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},h=function(e){1===e.touches.length&&(k={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){C={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?S("refreshing"):S("refresherabort"),k={x:0,y:0},C={x:0,y:e.refresherThreshold}};s.value.addEventListener("touchstart",h,dg),s.value.addEventListener("touchmove",l,ke(!1)),s.value.addEventListener("scroll",r,ke(!1)),s.value.addEventListener("touchend",m,dg),Zo((()=>{s.value.removeEventListener("touchstart",h),s.value.removeEventListener("touchmove",l),s.value.removeEventListener("scroll",r),s.value.removeEventListener("touchend",m)}))})),$o((()=>{f.value&&(s.value.scrollTop=t.lastScrollTop),p.value&&(s.value.scrollLeft=t.lastScrollLeft)})),ho(n,(e=>{v(e)})),ho(o,(e=>{_(e)})),ho((()=>e.scrollIntoView),(e=>{w(e)})),ho((()=>e.refresherTriggered),(e=>{!0===e?S("refreshing"):!1===e&&S("restore")})),{realScrollX:p,realScrollY:f,_scrollTopChanged:v,_scrollLeftChanged:_}}(e,c,u,d,l,i,r,a,t),g=$r((()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),y=$r((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>r.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:h}=c;return gr("uni-scroll-view",{ref:i},[gr("div",{ref:s,class:"uni-scroll-view"},[gr("div",{ref:r,style:g.value,class:y.value},[t?gr(ug,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:o},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,gr("div",{ref:a,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});const pg=xu({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=hn(null),o=hn(null),i=hn(null),r=hn(Number(e.value));r.valueNumber(e.max)&&(r.value=Number(e.max)),ho((()=>e.value),(e=>{r.value=Number(e)}));const s=Cu(n,t),a=function(e,t){const n=()=>{return n=t.value,o=e.min,i=e.max,i=Number(i),o=Number(o),100*(n-o)/(i-o)+"%";var n,o,i},o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",i=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9";return{setBgColor:$r((()=>({backgroundColor:o()}))),setBlockBg:$r((()=>({left:n()}))),setActiveColor:$r((()=>({backgroundColor:i(),width:n()}))),setBlockStyle:$r((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))}}(e,r),{_onClick:l,_onTrack:c}=function(e,t,n,o,i){const r=$r((()=>{const t=Number(e.step);return isNaN(t)?1:t})),s=n=>{e.disabled||(l(n),i("change",n,{value:t.value}))},a=(e,t,n)=>Math.round((n-e)/t)*t+e,l=i=>{const s=Number(e.max),l=Number(e.min),c=o.value,u=getComputedStyle(c,null).marginLeft;let d=c.offsetWidth;d+=parseInt(u);const h=n.value,p=h.offsetWidth-(e.showValue?d:0),f=h.getBoundingClientRect().left,m=(i.x-f)/p,g=(r.value+"").split(".")[1];t.value=parseFloat(a(l,r.value,function(e,t,n){return n=Math.min(1,Math.max(0,n)),e*(1-n)+t*n}(l,s,m)).toFixed(g?g.length:0))},c=n=>{if(!e.disabled)return"move"===n.detail.state?(l({x:n.detail.x}),i("changing",n,{value:t.value}),!1):"end"===n.detail.state&&i("change",n,{value:t.value})},u=Ei(Bu,!1);if(u){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};u.addField(n),Zo((()=>{u.removeField(n)}))}return{_onClick:s,_onTrack:c}}(e,r,n,o,s);return Xo((()=>{Lm(i.value,c)})),()=>{const{setBgColor:t,setBlockBg:s,setActiveColor:c,setBlockStyle:u}=a;return gr("uni-slider",{ref:n,onClick:ku(l)},[gr("div",{class:"uni-slider-wrapper"},[gr("div",{class:"uni-slider-tap-area"},[gr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[gr("div",{ref:i,style:s.value,class:"uni-slider-handle"},null,4),gr("div",{style:u.value,class:"uni-slider-thumb"},null,4),gr("div",{style:c.value,class:"uni-slider-track"},null,4)],4)]),yo(gr("span",{ref:o,class:"uni-slider-value"},[r.value],512),[[as,e.showValue]])])],8,["onClick"])}}});function fg(e,t,n,o,i,r){function s(){c&&(clearTimeout(c),c=null)}let a,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=$r((()=>n.value.length>t.displayMultipleItems)),b=$r((()=>e.circular&&y.value));function v(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||b.value&&function(o){if(!u)for(let i=n.value,r=i.length,s=o+t.displayMultipleItems,a=0;a=c.length&&(i-=c.length),i=a%1>.5||a<0?i-1:i,r("transition",{},{dx:e.vertical?0:i*l.offsetWidth,dy:e.vertical?i*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(b.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function w(){p=null}function x(){if(!p)return void(f=!1);const e=p,o=e.toPos,i=e.acc,s=e.endTime,c=e.source,u=s-Date.now();if(u<=0){v(o),p=null,f=!1,a=null;const e=n.value[t.current];if(e){const n=e.getItemId();r("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}v(o+i*u*u/2),l=requestAnimationFrame(x)}function S(e,o,i){w();const r=t.duration,s=n.value.length;let a=d;if(b.value)if(i<0){for(;ae;)a-=s}else if(i>0){for(;a>e;)a-=s;for(;a+se;)a-=s;a+s-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;te.vertical,()=>b.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){s(),p&&(v(p.toPos),p=null);const i=n.value;for(let t=0;t0&&h<1||(h=1)}const a=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(v(a+l-m),m=l):(v(l),e.autoplay&&k())):(u=!0,v(-t.displayMultipleItems-1))})),ho((()=>t.interval),(()=>{c&&(s(),k())})),ho((()=>t.current),((e,o)=>{!function(e,o){const i=g;g="";const s=n.value;if(!i){const t=s.length;S(e,"",b.value&&o+(t-e)%t>t/2?1:0)}const a=s[e];if(a){const e=t.currentItemId=a.getItemId();r("change",{},{current:t.current,currentItemId:e,source:i})}}(e,o),i("update:current",e)})),ho((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),ho((()=>e.autoplay&&!t.userTracking),C),C(e.autoplay&&!t.userTracking),Xo((()=>{let i=!1,r=0,a=0;function l(e){t.userTracking=!1;const n=r/Math.abs(r);let o=0;!e&&Math.abs(r)>.2&&(o=.5*n);const i=_(d+o);e?S(t.current,"",0):(g="touch",t.current=i,S(i,"touch",0!==o?o:0===i&&b.value&&d>=1?1:0))}Lm(o.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,i=!1,s(),m=d,r=0,a=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(c.detail.dx),o=Math.abs(c.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&k())}return function(i){const s=a;a=Date.now();const l=n.value.length-t.displayMultipleItems;function c(e){return.5-.25/(e+.5)}function u(e,t){let n=m+e;r=.6*r+.4*t,b.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),r=0),v(n)}const d=a-s||1,h=o.value;e.vertical?u(-i.dy/h.offsetHeight,-i.ddy/d):u(-i.dx/h.offsetWidth,-i.ddx/d)}(c.detail),!1}}}),!0)})),ei((()=>{s(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){S(t.current=e,g="click",b.value?1:0)},circularEnabled:b,swiperEnabled:y}}const mg=xu({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=hn(null),i=Cu(o,n),r=hn(null),s=hn(null),a=function(e){return Gt({interval:$r((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:$r((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:$r((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=$r((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Tc(e.previousMargin,!0),bottom:Tc(e.nextMargin,!0)}:{top:0,bottom:0,left:Tc(e.previousMargin,!0),right:Tc(e.nextMargin,!0)}),t})),c=$r((()=>{const t=Math.abs(100/a.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],h=hn([]);function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(rn(o))}h.value=e}Bi("addSwiperContext",(function(e){d.push(e),p()}));Bi("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=fg(e,a,h,s,n,i);let y=()=>null;return y=gg(o,e,a,f,h,m,g),()=>{const n=t.default&&t.default();return u=Em(n),gr("uni-swiper",{ref:o},[gr("div",{ref:r,class:"uni-swiper-wrapper"},[gr("div",{class:"uni-swiper-slides",style:l.value},[gr("div",{ref:s,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&gr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,o)=>gr("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=a.current||n{let a=!1,l=!1,c=!1,u=hn(!1);function d(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}co((()=>{a="auto"===t.navigation,u.value=!0!==t.navigation||a,v()})),co((()=>{const e=i.value.length,t=!r.value;l=0===n.current&&t,c=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,s.value||(l=!0,c=!0,a&&(u.value=!0))}));const p={onMouseover:e=>d(e,"over"),onMouseout:e=>d(e,"out")};function f(e,t,s){if(e.stopPropagation(),s)return;const a=i.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&r.value&&(l=a-1);break;case"next":l++,l>=a&&r.value&&(l=0)}o(l)}const m=()=>Mc(zc,t.navigationColor,26);let g;const y=n=>{clearTimeout(g);const{clientX:o,clientY:i}=n,{left:r,right:s,top:a,bottom:l,width:c,height:d}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(i-a{u.value=h}),300);u.value=h},b=()=>{u.value=!0};function v(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",b),a&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",b)))}return Xo(v),function(){const e={"uni-swiper-navigation-hide":u.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?gr(Ji,null,[gr("div",Sr({class:["uni-swiper-navigation uni-swiper-navigation-prev",h({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"prev",l)},p),[m()],16,["onClick"]),gr("div",Sr({class:["uni-swiper-navigation uni-swiper-navigation-next",h({"uni-swiper-navigation-disabled":c},e)],onClick:e=>f(e,"next",c)},p),[m()],16,["onClick"])]):null}},yg=xu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=hn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",r=n.value,s=`translate(${o},${i}) translateZ(0)`;r&&(r.style.webkitTransform=s,r.style.transform=s)}};return Xo((()=>{const e=Ei("addSwiperContext");e&&e(o)})),ei((()=>{const e=Ei("removeSwiperContext");e&&e(o)})),()=>gr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),bg={ensp:" ",emsp:" ",nbsp:" "};function vg(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let r of e)t&&bg[t]&&" "===r&&(r=bg[t]),i?(o+="n"===r?"\n":"\\"===r?"\\":"\\"+r,i=!1):"\\"===r?i=!0:o+=r;return n?o.replace(/ /g,bg.nbsp).replace(/ /g,bg.ensp).replace(/ /g,bg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split("\n")}const _g=xu({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=hn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==er){let n=[];n=vg(t.children,{space:e.space,decode:e.decode});const i=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(br(e)),t!==i&&o.push(gr("br"))}))}else o.push(t)})),gr("uni-text",{ref:n,selectable:!!e.selectable||null},[gr("span",null,o)],8,["selectable"])}}}),wg=h({},bm,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Sg.concat("return").includes(e)}});let xg=!1;const Sg=["done","go","next","search","send"];const kg=xu({name:"Textarea",props:wg,emits:["confirm","change","linechange",...vm],setup(e,{emit:t,expose:n}){const o=hn(null),i=hn(null),{fieldRef:r,state:s,scopedAttrsState:a,fixDisabledColor:l,trigger:c}=xm(e,o,t),u=$r((()=>s.value.split("\n"))),d=$r((()=>Sg.includes(e.confirmType))),h=hn(0),p=hn(null);function f({height:e}){h.value=e}function m(e){}function g(e){"Enter"===e.key&&d.value&&e.preventDefault()}function y(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:s.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return ho((()=>h.value),(t=>{const n=o.value,r=p.value,s=i.value;let a=parseFloat(getComputedStyle(n).lineHeight);isNaN(a)&&(a=r.offsetHeight);var l=Math.round(t/a);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(s.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";xg=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),s.value=e.value}}),()=>{let t=e.disabled&&l?gr("textarea",{key:"disabled-textarea",ref:r,value:s.value,tabindex:"-1",readonly:!!e.disabled,maxlength:s.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":xg},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):gr("textarea",{key:"textarea",ref:r,value:s.value,disabled:!!e.disabled,maxlength:s.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":xg},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:g,onKeyup:y,onChange:m},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup","onChange"]);return gr("uni-textarea",{ref:o,"auto-height":e.autoHeight},[gr("div",{ref:i,class:"uni-textarea-wrapper"},[yo(gr("div",Sr(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[as,!s.value.length]]),gr("div",{ref:p,class:"uni-textarea-line"},[" "],512),gr("div",{class:{"uni-textarea-compute":!0,"uni-textarea-compute-auto-height":e.autoHeight}},[u.value.map((e=>gr("div",null,[e.trim()?e:"."]))),gr(If,{initial:!0,onResize:f},null,8,["initial","onResize"])],2),"search"===e.confirmType?gr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],8,["auto-height"])}}}),Cg=xu({name:"View",props:h({},Au),setup(e,{slots:t}){const n=hn(null),{hovering:o,binding:i}=Tu(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?gr("uni-view",Sr({class:o.value?r:"",ref:n},i),[si(t,"default")],16):gr("uni-view",{ref:n},[si(t,"default")],512)}}});function Ag(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Tg(e,t,n){e&&Yl(n||Dc(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function Ig(e,t){e&&function(e,t){t=Ql(e,t),delete ql[t]}(t||Dc(),e)}function Bg(e,t,n,o){const i=Ir().proxy;o=null==o?Oc():o,Xo((()=>{Tg(t||Ag(i),e,o),!n&&t||ho((()=>i.id),((t,n)=>{Tg(Ag(i,t),e,o),Ig(n&&Ag(i,n))}))})),Zo((()=>{Ig(t||Ag(i),o)}))}let Eg=0;function Pg(e){const t=Oc(),n=Ir().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Eg++;return Xo((()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}})),`${o}.${i}`}function zg(e,t,n,o){v(t)&&Qo(e,t.bind(n),o)}function Mg(e,t,n){const o=e.mpType||n.$mpType;if(o&&"component"!==o&&("page"!==o||"component"!==t.renderer)&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!v(t))&&(Me.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];g(i)?i.forEach((e=>zg(o,e,n,t))):zg(o,i,n,t)}})),"page"===o)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,Vc(n,"onLoad",e),t.vapor||delete t.attrs.__pageQuery;const o=n.$page;"preloadPage"!==(null==o?void 0:o.openType)&&Vc(n,"onShow")}catch(i){console.error(i.message+"\n"+i.stack)}}}function Og(e,t,n){Mg(e,t,n)}function Rg(e,t,n){return e[t]=n}function Lg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Ng(e){const t=e.config.errorHandler;return function(n,o,i){t&&t(n,o,i);const r=e._instance;if(!r||!r.proxy)throw n;r.onError?Vc(r.proxy,"onError",n):An(n,0,o&&o.$.vnode,!1)}}function Dg(e,t){return e?[...new Set([].concat(e,t))]:t}function $g(e){const t=e.config;var n;t.errorHandler=Re(e,Ng),n=t.optionMergeStrategies,Me.forEach((e=>{n[e]=Dg}));const o=t.globalProperties;o.$set=Rg,o.$applyOptions=Og,o.$callMethod=Lg,function(e){Oe.forEach((t=>t(e)))}(e)}function jg(e){const t=bl({history:Vg(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Fg});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Hg[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let Hg=Object.create(null);const Fg=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Hg[o]);if(t)return t}return{left:0,top:0};var o};function Vg(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=za(e);return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Hp(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=Mp(t[i]);Fp(qp(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Wg={install(e){$g(e),su(e),yu(e),e.config.warnHandler||(e.config.warnHandler=Ug),jg(e)}};function Ug(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const qg={class:"uni-async-loading"},Qg=gr("i",{class:"uni-loading"},null,-1),Yg=Su({name:"AsyncLoading",render:()=>(ir(),cr("div",qg,[Qg]))});function Gg(){window.location.reload()}const Xg=Su({name:"AsyncError",props:["error"],setup(){Nl();const{t:e}=Rl();return()=>gr("div",{class:"uni-async-error",onClick:Gg},[e("uni.async.error")],8,["onClick"])}});let Kg;function Jg(){return Kg}function Zg(e){Kg=e,Object.defineProperty(Kg.$.ctx,"$children",{get:()=>Hp().map((e=>e.$vm))});const t=Kg.$.appContext.app;t.component(Yg.name)||t.component(Yg.name,Yg),t.component(Xg.name)||t.component(Xg.name,Xg),function(e){e.$vm=e,e.$mpType="app";const t=hn(Rl().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(Kg),function(e,t){const n=e.$options||{};n.globalData=h(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(Kg),mu(),Xc()}function ey(e,{type:t,clone:n,init:o,setup:i,before:r,options:s}){n&&(e=h({},e)),r&&r(e);const a=e.setup;return e.setup=(e,t)=>{const n=Ir();if(o(n.proxy),i(n),a)return a(e,t)},e}function ty(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?ey(e.default,t):ey(e,t)}function ny(e,t){return ty(e,{type:"page",clone:!0,init:Up,setup(e){e.$pageInstance=e;const t=Du(),n=Te(t.query);e.attrs.__pageQuery=n,Mp(e.proxy).options=n,e.proxy.options=n;const o=Lu();var i;Ep(o),e.onReachBottom=Gt([]),e.onPageScroll=Gt([]),ho([e.onReachBottom,e.onPageScroll],(()=>{const t=Lc();e.proxy===t&&tf(e,o)}),{once:!0}),Go((()=>{Gp(e,o)})),Xo((()=>{Xp(e);const{onReady:n}=e;n&&N(n),sy(t)})),Ho((()=>{if(!e.__isVisible){Gp(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&N(n),Ln((()=>{sy(t)}))}}),"ba",i),function(e,t){Ho(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;{const{onHide:t}=e;t&&N(t)}}}));const r=Fc(e.proxy);return function(e,t){zv.subscribe(Ql(e,"invokeViewApi"),Gl)}(r),Zo((()=>{!function(e){zv.unsubscribe(Ql(e,"invokeViewApi")),Object.keys(ql).forEach((t=>{0===t.indexOf(e+".")&&delete ql[t]}))}(r)})),n}})}function oy(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=Dy(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Mv.emit("onResize",{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function iy(e){A(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Mv.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function ry(){const{emit:e}=Mv;"visible"===document.visibilityState?e("onAppEnterForeground",h({},Tf)):e("onAppEnterBackground")}function sy(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Vc("onTabItemTap",{index:n,text:t,pagePath:o})}function ay(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let r=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(r=i+":"+r),r}function ly(e,t,n,o){const i=Gt({seeking:!1,gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0,toastThin:!1}),r={x:0,y:0};let s=null;let a;return{state:i,onTouchstart:function(e){const t=e.targetTouches[0];r.x=t.pageX,r.y=t.pageY,i.gestureType="none",i.volumeOld=0},onTouchmove:function(l){function c(){l.stopPropagation(),l.preventDefault()}o.fullscreen&&c();const u=i.gestureType;if("stop"===u)return;const d=l.targetTouches[0],h=d.pageX,p=d.pageY,f=r,m=n.value;if("progress"===u?(!function(e){const n=t.currentDuration;let o=e/600*n+i.currentTimeOld;o<0?o=0:o>n&&(o=n);i.currentTimeNew=o}(h-f.x),i.seeking=!0):"volume"===u&&function(e){const t=n.value,o=i.volumeOld;let r;"number"==typeof o&&(r=o-e/200,r<0?r=0:r>1&&(r=1),clearTimeout(a),a=void 0,null==a&&(a=setTimeout((()=>{i.toastThin=!1,a=void 0}),1e3)),t.volume=r,i.volumeNew=r)}(p-f.y),"none"===u)if(Math.abs(h-f.x)>Math.abs(p-f.y)){if(!e.enableProgressGesture)return void(i.gestureType="stop");i.gestureType="progress",i.currentTimeOld=i.currentTimeNew=m.currentTime,o.fullscreen||c()}else{if(!e.pageGesture&&!e.vslideGesture)return void(i.gestureType="stop");"none"!==i.gestureType&&null!=s||(s=setTimeout((()=>{i.toastThin=!0}),500)),i.gestureType="volume",i.volumeOld=m.volume,o.fullscreen||c()}},onTouchend:function(e){const t=n.value;"none"!==i.gestureType&&"stop"!==i.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===i.gestureType&&i.currentTimeOld!==i.currentTimeNew&&(t.currentTime=i.currentTimeNew),i.gestureType="none"}}}const cy=xu({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},vslideGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=hn(null),r=hn(null),s=Cu(i,t),{state:a}=pm(),{$attrs:l}=Bm({excludeListeners:!0});Vl();const{videoRef:c,state:u,play:d,pause:h,stop:p,seek:f,playbackRate:m,toggle:y,onDurationChange:b,onLoadedMetadata:v,onProgress:_,onWaiting:w,onVideoError:x,onPlay:S,onPause:k,onEnded:C,onTimeUpdate:A}=function(e,t,n){const o=hn(null),i=$r((()=>rf(e.src))),r=$r((()=>"true"===e.muted||!0===e.muted)),s=Gt({start:!1,src:i,playing:!1,currentTime:0,duration:0,currentDuration:0,progress:0,buffered:0,muted:r,pauseUpdatingCurrentTime:!1});function a(e){const t=e.target,n=t.buffered;n.length&&(s.buffered=n.end(n.length-1)/t.duration*100)}function l(){o.value.pause()}function c(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return ho((()=>i.value),(()=>{s.playing=!1,s.currentTime=0})),ho((()=>s.buffered),(e=>{n("progress",{},{buffered:e})})),ho((()=>r.value),(e=>{o.value.muted=e})),ho([()=>s.duration,()=>e.duration],(()=>{let t=Number(e.duration);isNaN(t)&&(t=0),s.currentDuration=t>0?t:s.duration})),{videoRef:o,state:s,play:function(){const e=o.value;s.start=!0,e.play()},pause:l,stop:function(){c(0),l()},seek:c,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;s.playing?e.pause():e.play()},onDurationChange:function({target:e}){s.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){s.playing=!1,n("error",e,{})},onPlay:function(e){s.start=!0,s.playing=!0,n("play",e,{})},onPause:function(e){s.playing=!1,n("pause",e,{})},onEnded:function(e){s.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target;s.pauseUpdatingCurrentTime||(s.currentTime=t.currentTime);const o=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,s),{state:T,danmuRef:I,updateDanmu:B,toggleDanmu:E,sendDanmu:P}=function(e,t){const n=hn(null),o=Gt({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const r=g(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function s(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout((function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout((function(){t.remove()}),4e3)}),17)}return r.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,a=i,l={time:n,index:a.index};if(n>a.time)for(let i=a.index+1;i=(e.time||0)))break;l.index=i,t.playing&&o.enable&&s(e)}else if(n-1&&n<=(r[t].time||0);t--)l.index=t-1;i=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){r.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,u),{state:z,onFullscreenChange:M,emitFullscreenChange:O,toggleFullscreen:R,requestFullScreen:L,exitFullScreen:N}=function(e,t,n,o,i){const r=Gt({fullscreen:!1}),s=/^Apple/.test(navigator.vendor);function a(t){r.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const r=i.value,l=t.value,c=n.value;let u;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||s&&!o.userAction?c.webkitEnterFullScreen?c.webkitEnterFullScreen():(u=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():c.webkitExitFullScreen?c.webkitExitFullScreen():(u=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),r.appendChild(l)),u&&a(e)}function c(){l(!1)}return Zo(c),{state:r,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||a(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:a,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:c}}(s,r,c,a,i),{state:D,onTouchstart:$,onTouchend:j,onTouchmove:H}=ly(e,u,c,z),{state:F,progressRef:V,ballRef:W,clickProgress:U,toggleControls:q,autoHideEnd:Q,autoHideStart:Y}=function(e,t,n,o){const i=hn(null),r=hn(null),s=$r((()=>e.showCenterPlayBtn&&!t.start)),a=hn(!0),l=$r((()=>!s.value&&e.controls&&a.value)),c=Gt({seeking:!1,touching:!1,controlsTouching:!1,centerPlayBtnShow:s,controlsShow:l,controlsVisible:a});let u;function d(){u=setTimeout((()=>{c.controlsVisible=!1}),3e3)}function h(){u&&(clearTimeout(u),u=null)}return Zo((()=>{u&&clearTimeout(u)})),ho((()=>c.controlsShow&&t.playing&&!c.controlsTouching),(e=>{e?d():h()})),Xo((()=>{const e=ke(!1);let s,a,l,u=!0;const d=r.value;function h(e){const n=e.targetTouches[0],r=n.pageX,d=n.pageY;if(u&&Math.abs(r-s)100&&(f=100),t.progress=f,null==o||o(t.currentDuration*f/100),c.seeking=!0,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(d.removeEventListener("touchmove",h,e),u||(o.preventDefault(),o.stopPropagation(),n(t.currentDuration*t.progress/100)),c.touching=!1)}d.addEventListener("touchstart",(n=>{c.controlsTouching=!0;const o=n.targetTouches[0];s=o.pageX,a=o.pageY,l=t.progress,u=!0,c.touching=!0,d.addEventListener("touchmove",h,e)})),d.addEventListener("touchend",p),d.addEventListener("touchcancel",p)})),{state:c,progressRef:i,ballRef:r,clickProgress:function(e){const o=i.value;let r=e.target,s=e.offsetX;for(;r&&r!==o;)s+=r.offsetLeft,r=r.parentNode;const a=o.offsetWidth;let l=0;s>=0&&s<=a&&(l=s/a,n(t.currentDuration*l))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:d,autoHideEnd:h}}(e,u,f,(e=>{D.currentTimeNew=e}));!function(e,t,n,o,i,r,s,a){const l={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:r,requestFullScreen:s,exitFullScreen:a};Bg(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in l&&l[e](n)}),Pg(),!0)}(d,h,p,f,P,m,L,N);const G=function(e,t,n,o,i){const r=$r((()=>"progress"===t.gestureType||n.touching));return ho(r,(o=>{e.pauseUpdatingCurrentTime=o,n.controlsTouching=o,"progress"===t.gestureType&&o&&(n.controlsVisible=o)})),ho([()=>e.currentTime,()=>e.currentDuration],(()=>{e.currentDuration>0?e.progress=e.currentTime/e.currentDuration*100:e.progress=0,e.progress>100&&(e.progress=100)}),{immediate:!0}),ho((()=>t.currentTimeNew),(t=>{e.currentTime=t})),r}(u,D,F);return()=>gr("uni-video",{ref:i,id:e.id,onClick:q},[gr("div",{ref:r,class:"uni-video-container",onTouchstart:$,onTouchend:j,onTouchmove:H,onFullscreenchange:Ls(M,["stop"]),onWebkitfullscreenchange:Ls((e=>M(e,!0)),["stop"])},[gr("video",Sr({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:u.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:{"uni-video-video":!0,"uni-video-video-fullscreen":z.fullscreen},"webkit-playsinline":!0,playsinline:!0,onDurationchange:b,onLoadedmetadata:v,onProgress:_,onWaiting:w,onError:x,onPlay:S,onPause:k,onEnded:C,onTimeupdate:e=>{A(e),B(e)},onWebkitbeginfullscreen:()=>O(!0),onX5videoenterfullscreen:()=>O(!0),onWebkitendfullscreen:()=>O(!1),onX5videoexitfullscreen:()=>O(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),yo(gr("div",{class:"uni-video-bar uni-video-bar-full",onClick:Ls((()=>{}),["stop"])},[gr("div",{class:"uni-video-controls"},[yo(gr("div",{class:{"uni-video-icon":!0,"uni-video-control-button":!0,"uni-video-control-button-play":!u.playing,"uni-video-control-button-pause":u.playing},onClick:Ls(y,["stop"])},null,10,["onClick"]),[[as,e.showPlayBtn]]),yo(gr("div",{class:"uni-video-current-time"},[ay(u.currentTime)],512),[[as,e.showProgress]]),yo(gr("div",{ref:V,class:"uni-video-progress-container",onClick:Ls(U,["stop"])},[gr("div",{class:{"uni-video-progress":!0,"uni-video-progress-progressing":G.value}},[gr("div",{style:{width:u.buffered-u.progress+"%",left:u.progress+"%"},class:"uni-video-progress-buffered"},null,4),gr("div",{style:{width:u.progress+"%"},class:"uni-video-progress-played"},null,4),gr("div",{ref:W,style:{left:u.progress+"%"},class:{"uni-video-ball":!0,"uni-video-ball-progressing":G.value}},[gr("div",{class:"uni-video-inner"},null)],6)],2)],8,["onClick"]),[[as,e.showProgress]]),yo(gr("div",{class:"uni-video-duration"},[ay(u.currentDuration)],512),[[as,e.showProgress]])]),yo(gr("div",{class:{"uni-video-icon":!0,"uni-video-danmu-button":!0,"uni-video-danmu-button-active":T.enable},onClick:Ls(E,["stop"])},null,10,["onClick"]),[[as,e.danmuBtn]]),yo(gr("div",{class:{"uni-video-icon":!0,"uni-video-fullscreen":!0,"uni-video-type-fullscreen":z.fullscreen},onClick:Ls((()=>R(!z.fullscreen)),["stop"])},null,10,["onClick"]),[[as,e.showFullscreenBtn]])],8,["onClick"]),[[as,F.controlsShow]]),yo(gr("div",{ref:I,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[as,u.start&&T.enable]]),F.centerPlayBtnShow&&gr("div",{class:"uni-video-cover",onClick:Ls((()=>{}),["stop"])},[gr("div",{class:"uni-video-cover-play-button uni-video-icon",onClick:Ls(d,["stop"])},null,8,["onClick"])],8,["onClick"]),gr("div",{class:"uni-video-loading"},["volume"===D.gestureType?gr("div",{class:{"uni-video-toast-container":!0,"uni-video-toast-container-thin":D.toastThin},style:{marginTop:"5px"}},[!D.toastThin&&D.volumeNew>0&&"volume"===D.gestureType?gr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]):!D.toastThin&&gr("text",{class:"uni-video-icon uni-video-toast-icon"},[""]),gr("div",{class:"uni-video-toast-draw",style:{width:100*D.volumeNew+"%"}},null)],2):null]),gr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":G.value}},[gr("div",{class:"uni-video-toast-title"},[gr("span",{class:"uni-video-toast-title-current-time"},[ay(D.currentTimeNew)])," / ",ay(u.currentDuration)])],2),gr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),uy=({name:e,arg:t})=>{if("postMessage"===e);else switch(e){case"navigateTo":Lb(t);break;case"navigateBack":Rb(t);break;case"switchTab":gp(t);break;case"reLaunch":_p(t);break;case"redirectTo":bp(t)}},dy=ve((()=>Mv.on("onWebInvokeAppService",uy))),hy=xu({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},emits:["load"],setup(e,{emit:t}){dy();const n=hn(null),o=hn(null),{$attrs:i,$excludeAttrs:r,$listeners:s}=Bm({excludeListeners:!0}),a=Cu(n,t);let l;return(()=>{const t=document.createElement("iframe");t.onload=function(t){a("load",t,{src:e.src})},co((()=>{for(const e in i.value)if(m(i.value,e)){const n=i.value[e];t[e]=n}})),co((()=>{t.src=rf(e.src)})),o.value=t,l=function(e,t,n){return()=>{var o,i;if(n){const{top:n,left:o,width:i,height:r}=e.value.getBoundingClientRect();be(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:i+"px",height:r+"px"})}else be(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(i=e.value)?void 0:i.style.height)||"150px"})}}(n,o,e.fullscreen),e.fullscreen&&document.body.appendChild(t)})(),Xo((()=>{var t;l(),!e.fullscreen&&(null==(t=n.value)||t.appendChild(o.value))})),$o((()=>{e.fullscreen&&(o.value.style.display="block")})),jo((()=>{e.fullscreen&&(o.value.style.display="none")})),Zo((()=>{e.fullscreen&&document.body.removeChild(o.value)})),()=>gr(Ji,null,[gr("uni-web-view",Sr({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,r.value,{ref:n}),[gr(If,{onResize:l},null,8,["onResize"])],16)])}});let py,fy=0;function my(e,t,n,o){var i,r=document.createElement("script"),s=t.callback||"callback",a="__uni_jsonp_callback_"+fy++,l=t.timeout||3e4;function c(){clearTimeout(i),delete window[a],r.remove()}window[a]=e=>{v(n)&&n(e),c()},r.onerror=()=>{v(o)&&o(),c()},i=setTimeout((function(){v(o)&&o(),c()}),l),r.src=e+(e.indexOf("?")>=0?"&":"?")+s+"="+a,document.body.appendChild(r)}function gy(e){function t(){const e=this.div;this.getPanes().floatPane.appendChild(e)}function n(){const e=this.div.parentNode;e&&e.removeChild(this.div)}function o(){const t=this.option;this.Text=new e.Text({text:t.content,anchor:"bottom-center",offset:new e.Pixel(0,t.offsetY-16),style:{padding:(t.padding||8)+"px","line-height":(t.fontSize||14)+"px","border-radius":(t.borderRadius||0)+"px","border-color":`${t.bgColor||"#fff"} transparent transparent`,"background-color":t.bgColor||"#fff","box-shadow":"0 2px 6px 0 rgba(114, 124, 245, .5)","text-align":"center","font-size":(t.fontSize||14)+"px",color:t.color||"#000"},position:t.position});(e.event||e.Event).addListener(this.Text,"click",(()=>{this.callback()})),this.Text.setMap(t.map)}function i(){}function r(){this.Text&&this.option.map.remove(this.Text)}function s(){this.Text&&this.option.map.remove(this.Text)}class a{constructor(e={},a){this.createAMapText=o,this.removeAMapText=r,this.createBMapText=i,this.removeBMapText=s,this.onAdd=t,this.construct=t,this.onRemove=n,this.destroy=n,this.option=e||{};const l=this.visible=this.alwaysVisible="ALWAYS"===e.display;if(ky())this.callback=a,this.visible&&this.createAMapText();else if(Cy())this.visible&&this.createBMapText();else{const t=e.map;this.position=e.position,this.index=1;const n=this.div=document.createElement("div"),o=n.style;o.position="absolute",o.whiteSpace="nowrap",o.transform="translateX(-50%) translateY(-100%)",o.zIndex="1",o.boxShadow=e.boxShadow||"none",o.display=l?"block":"none";const i=this.triangle=document.createElement("div");i.setAttribute("style","position: absolute;white-space: nowrap;border-width: 4px;border-style: solid;border-color: #fff transparent transparent;border-image: initial;font-size: 12px;padding: 0px;background-color: transparent;width: 0px;height: 0px;transform: translate(-50%, 100%);left: 50%;bottom: 0;"),this.setStyle(e),n.appendChild(i),t&&this.setMap(t)}}set onclick(e){this.div.onclick=e}get onclick(){return this.div.onclick}setOption(e){this.option=e,"ALWAYS"===e.display?this.alwaysVisible=this.visible=!0:this.alwaysVisible=!1,ky()?this.visible&&this.createAMapText():Cy()?this.visible&&this.createBMapText():(this.setPosition(e.position),this.setStyle(e))}setStyle(e){const t=this.div,n=t.style;t.innerText=e.content||"",n.lineHeight=(e.fontSize||14)+"px",n.fontSize=(e.fontSize||14)+"px",n.padding=(e.padding||8)+"px",n.color=e.color||"#000",n.borderRadius=(e.borderRadius||0)+"px",n.backgroundColor=e.bgColor||"#fff",n.marginTop="-"+((e.top||0)+5)+"px",this.triangle.style.borderColor=`${e.bgColor||"#fff"} transparent transparent`}setPosition(e){this.position=e,this.draw()}draw(){const e=this.getProjection();if(!this.position||!this.div||!e)return;const t=e.fromLatLngToDivPixel(this.position),n=this.div.style;n.left=t.x+"px",n.top=t.y+"px"}changed(){this.div.style.display=this.visible?"block":"none"}}if(!ky()&&!Cy()){const t=new(e.OverlayView||e.Overlay);a.prototype.setMap=t.setMap,a.prototype.getMap=t.getMap,a.prototype.getPanes=t.getPanes,a.prototype.getProjection=t.getProjection,a.prototype.map_changed=t.map_changed,a.prototype.set=t.set,a.prototype.get=t.get,a.prototype.setOptions=t.setValues,a.prototype.bindTo=t.bindTo,a.prototype.bindsTo=t.bindsTo,a.prototype.notify=t.notify,a.prototype.setValues=t.setValues,a.prototype.unbind=t.unbind,a.prototype.unbindAll=t.unbindAll,a.prototype.addListener=t.addListener}return a}const yy={};function by(e,t){const n=wy();if(!n.key)return void console.error("Map key not configured.");const o=yy[n.type]=yy[n.type]||[];if(py)t(py);else if(window[n.type]&&window[n.type].maps)py=ky()||Cy()?window[n.type]:window[n.type].maps,py.Callout=py.Callout||gy(py),t(py);else if(o.length)o.push(t);else{o.push(t);const i=window,r="__map_callback__"+n.type;i[r]=function(){delete i[r],py=ky()||Cy()?window[n.type]:window[n.type].maps,py.Callout=gy(py),o.forEach((e=>e(py))),o.length=0},ky()&&function(e){window._AMapSecurityConfig={securityJsCode:e.securityJsCode||"",serviceHost:e.serviceHost||""}}(n);const s=document.createElement("script");let a=vy(n.type);n.type===_y.QQ&&e.push("geometry"),e.length&&(a+=`libraries=${e.join("%2C")}&`),n.type===_y.BMAP?s.src=`${a}ak=${n.key}&callback=${r}`:s.src=`${a}key=${n.key}&callback=${r}`,s.onerror=function(){console.error("Map load failed.")},document.body.appendChild(s)}}const vy=e=>({qq:"https://map.qq.com/api/js?v=2.exp&",google:"https://maps.googleapis.com/maps/api/js?",AMap:"https://webapi.amap.com/maps?v=2.0&",BMapGL:"https://api.map.baidu.com/api?type=webgl&v=1.0&"}[e]);var _y=(e=>(e.QQ="qq",e.GOOGLE="google",e.AMAP="AMap",e.BMAP="BMapGL",e.UNKNOWN="",e))(_y||{});function wy(){return __uniConfig.bMapKey?{type:"BMapGL",key:__uniConfig.bMapKey}:__uniConfig.qqMapKey?{type:"qq",key:__uniConfig.qqMapKey}:__uniConfig.googleMapKey?{type:"google",key:__uniConfig.googleMapKey}:__uniConfig.aMapKey?{type:"AMap",key:__uniConfig.aMapKey,securityJsCode:__uniConfig.aMapSecurityJsCode,serviceHost:__uniConfig.aMapServiceHost}:{type:"",key:""}}let xy=!1,Sy=!1;const ky=()=>Sy?xy:(Sy=!0,xy="AMap"===wy().type),Cy=()=>"BMapGL"===wy().type;const Ay=Sd("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),Ty=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Iy;function By(){if(Iy=Iy||Ty.__DC_STAT_UUID,!Iy){Iy=Date.now()+""+Math.floor(1e7*Math.random());try{Ty.__DC_STAT_UUID=Iy}catch(e){}}return Iy}function Ey(){if(!0!==__uniConfig.darkmode)return _(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Py(){let e,t="0",n="",o="phone";const i=navigator.language;if(lf){e="iOS";const o=sf.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=t.split(".")[0];if(Number(i)>=18){const e=sf.match(/Version\/([\d\.]+)/);e&&(t=e[1])}const r=sf.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(af){e="Android";const o=sf.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=sf.match(/\((.+?)\)/),r=i?i[1].split(";"):sf.split(" "),s=[/\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-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)a="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=ff(),n=mf(t),o=gf(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),r=yf();let s=window.innerHeight;const a=yc.top,l={left:yc.left,right:r-yc.right,top:yc.top,bottom:s-yc.bottom,width:r-yc.left-yc.right,height:s-yc.top-yc.bottom},{top:c,bottom:u}=xc();return s-=c,s-=u,{windowTop:c,windowBottom:u,windowWidth:r,windowHeight:s,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:a,safeArea:l,safeAreaInsets:{top:yc.top,right:yc.right,bottom:yc.bottom,left:yc.left},screenTop:i-s}}));let My,Oy=!0;function Ry(){Oy&&(My=Py())}const Ly=xd(0,(()=>{Ry();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:r,deviceOrientation:s,deviceType:a,osname:l,osversion:c}=My;return h({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:By(),deviceOrientation:s,deviceType:a,model:o,osName:l?l.toLowerCase():void 0,osVersion:c,platform:i,system:r})})),Ny=xd(0,(()=>{Ry();const{theme:e,language:t,browserName:n,browserVersion:o}=My;return h({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:zh?zh():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,isUniAppX:!1,language:t,SDKVersion:"",theme:e,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniCompilerVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,version:""},{})})),Dy=xd(0,(()=>{Oy=!0,Ry(),Oy=!1;const e=zy(),t=Ly(),n=Ny();Oy=!0;const{ua:o,browserName:i,browserVersion:r,osname:s,osversion:a}=My,l=h(e,t,n,{browserName:i,browserVersion:r,fontSizeSetting:void 0,osName:s.toLowerCase(),osVersion:a,osLanguage:void 0,osTheme:void 0,ua:o,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,l})),$y="none";function jy(){Vy().then((({networkType:e})=>{Mv.invokeOnCallback("onNetworkStatusChange",{isConnected:e!==$y,networkType:e})}))}function Hy(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const Fy=vd("onNetworkStatusChange",(()=>{const e=Hy();e?e.addEventListener("change",jy):(window.addEventListener("offline",jy),window.addEventListener("online",jy))})),Vy=Sd("getNetworkType",((e,{resolve:t})=>{const n=Hy();let o="unknown";if(n){const e=n.effectiveType;o=n.type,"cellular"===o&&e?o=e.replace("slow-",""):o&&o!==$y||!e?[$y,"wifi"].includes(o)||(o="unknown"):o=e}else!1===navigator.onLine&&(o=$y);return t({networkType:o})})),Wy=!!window.navigator.vibrate,Uy=Sd("vibrateShort",((e,{resolve:t,reject:n})=>{Wy&&window.navigator.vibrate(15)?t():n("vibrateShort:fail")}));const qy=Sd("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const r=document.execCommand("Copy",!1);i.blur(),r?t():n()}(e,t,n)}},new Promise(((e,t)=>{var r=e=>{try{a(i.next(e))}catch(n){t(n)}},s=e=>{try{a(i.throw(e))}catch(n){t(n)}},a=t=>t.done?e(t.value):Promise.resolve(t.value).then(r,s);a((i=i.apply(n,o)).next())}));var n,o,i}),0,Rh);const Qy=xd(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)})),Yy=Sd("setStorage",(({key:e,data:t},{resolve:n,reject:o})=>{try{Qy(e,t),n()}catch(i){o(i.message)}}));function Gy(e){const t=localStorage&&localStorage.getItem(e);if(!_(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=_(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Xy=xd(0,(e=>{try{return Gy(e)}catch(t){return""}})),Ky=xd(0,(e=>{localStorage&&localStorage.removeItem(e)})),Jy=Sd("hideKeyboard",((e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));const Zy=Sd("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,Fh),eb={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function tb({count:e,sourceType:t,type:n,extension:o}){dm();const i=document.createElement("input");return i.type="file",be(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${eb[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(i.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}let nb=null;const ob=Sd("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:r})=>{Hl();const{t:s}=Rl();nb&&(document.body.removeChild(nb),nb=null),nb=tb({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(nb),nb.addEventListener("cancel",(()=>{r("chooseFile:fail cancel")})),nb.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i(r=r||kf(t),r)}),ie))},tempFiles:o})})),nb.click(),hm()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,Hh);let ib=null;const rb=Sd("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{Hl();const{t:r}=Rl();ib&&(document.body.removeChild(ib),ib=null),ib=tb({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(ib),ib.addEventListener("cancel",(()=>{i("chooseImage:fail cancel")})),ib.addEventListener("change",(function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(r=r||kf(t),r)}),oe))},tempFiles:i})})),ib.click(),hm()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Dh),sb={esc:["Esc","Escape"],enter:["Enter"]},ab=Object.keys(sb);function lb(){const e=hn(""),t=hn(!1),n=n=>{if(t.value)return;const o=ab.find((e=>-1!==sb[e].indexOf(n.key)));o&&(e.value=o),Ln((()=>e.value=""))};return Xo((()=>{document.addEventListener("keyup",n)})),Zo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const cb=gr("div",{class:"uni-mask"},null,-1);function ub(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),$s(Eo({setup:()=>()=>(ir(),cr(e,t,null,16))}))}function db(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function hb(e,{onEsc:t,onEnter:n}){const o=hn(e.visible),{key:i,disable:r}=lb();return ho((()=>e.visible),(e=>o.value=e)),ho((()=>o.value),(e=>r.value=!e)),co((()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let pb=0,fb="";function mb(e){let t=pb;pb+=e?1:-1,pb=Math.max(0,pb),pb>0?0===t&&(fb=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=fb,fb="")}const gb=Su({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Gt({direction:"none"});let n=1,o=0,i=0,r=0,s=0;function a({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,i=t.height}function c(e){const t=e.target.getBoundingClientRect();r=t.width,s=t.height,d(e)}function u(e){const a=n*o>r,l=n*i>s;t.direction=a&&l?"all":a?"horizontal":l?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return gr(Pm,{style:n,onTouchstart:ku(c),onTouchmove:ku(d),onTouchend:ku(u)},{default:()=>[gr(Wm,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:a},{default:()=>[gr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function yb(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const bb=Su({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Xo((()=>mb(!0))),ei((()=>mb(!1)));const{key:n}=lb(),o=hn(null),i=hn(yb(e));let r;function s(){r||Ln((()=>{t("close")}))}function a(e){i.value=e.detail.current}ho((()=>e.current),(()=>i.value=yb(e))),ho((()=>n.value),(e=>{"esc"===e&&s()})),Xo((()=>{const e=o.value;let t=0,n=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,n=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-n)>20)&&(r=!0)}))}));const l={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return gr("div",{ref:o,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[gr(mg,{navigation:"auto",current:i.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(n=t=e.urls.map((e=>gr(yg,null,{default:()=>[gr(gb,{src:e},null,8,["src"])]}))),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!ur(n)?t:{default:()=>[t],_:1}),8,["current","onChange"]),gr("div",{style:l},[Mc("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var n}}});let vb,_b=null;const wb=()=>{_b=null,Ln((()=>{null==vb||vb.unmount(),vb=null}))},xb=Sd("previewImage",((e,{resolve:t})=>{_b?h(_b,e):(_b=Gt(e),Ln((()=>{vb=ub(bb,_b,wb),vb.mount(db("u-a-p"))}))),t()}),0,Vh);let Sb=null;const kb=Sd("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{Hl();const{t:i}=Rl();Sb&&(document.body.removeChild(Sb),Sb=null),Sb=tb({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Sb),Sb.addEventListener("cancel",(()=>{o("chooseVideo:fail cancel")})),Sb.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const i={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return o=o||kf(this.tempFile),o}});const r=document.createElement("video");if(void 0!==r.onloadedmetadata){const e=kf(t);r.onloadedmetadata=function(){Cf(e),n(h(i,{duration:r.duration||0,width:r.videoWidth||0,height:r.videoHeight||0}))},setTimeout((()=>{r.onloadedmetadata=null,Cf(e),n(i)}),300),r.src=e}else n(i)})),Sb.click(),hm()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,$h),Cb=wd("request",(({url:e,data:t,header:n={},method:o,dataType:i,responseType:r,enableChunked:s,withCredentials:a,timeout:l=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let d=null;const h=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(!n)return"string";if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(_(t)||t instanceof ArrayBuffer)d=t;else if("json"===h)try{d=JSON.stringify(t)}catch(f){d=t.toString()}else if("urlencoded"===h){const e=[];for(const n in t)m(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();let p;if(s){if(void 0===typeof window.fetch||void 0===typeof window.AbortController)throw new Error("fetch or AbortController is not supported in this environment");const t=new AbortController,s=t.signal;p=new Tb(t);const h={method:o,headers:n,body:d,signal:s,credentials:a?"include":"same-origin"},f=setTimeout((function(){p.abort(),u("timeout",{errCode:5})}),l);h.signal.addEventListener("abort",(function(){clearTimeout(f),u("abort",{errCode:600003})})),window.fetch(e,h).then((e=>{const t=e.status,n=e.headers,o=e.body,s={};n.forEach(((e,t)=>{s[t]=e}));const a=Ab(s);if(p._emitter.emit("headersReceived",{header:s,statusCode:t,cookies:a}),!o)return void c({data:"",statusCode:t,header:s,cookies:a});const l=o.getReader(),u=[],d=()=>{l.read().then((({done:e,value:n})=>{if(e){const e=function(e){const t=e.reduce(((e,t)=>e+t.byteLength),0),n=new Uint8Array(t);let o=0;for(const i of e)n.set(new Uint8Array(i),o),o+=i.byteLength;return n.buffer}(u);let n="text"===r?(new TextDecoder).decode(e):e;return"text"===r&&(n=Bb(n,r,i)),void c({data:n,statusCode:t,header:s,cookies:a})}const o=n;u.push(o),p._emitter.emit("chunkReceived",{data:o}),d()}))};d()}),(e=>{u(e,{errCode:5})}))}else{const t=new XMLHttpRequest;p=new Tb(t),t.open(o,e);for(const e in n)m(n,e)&&t.setRequestHeader(e,n[e]);const s=setTimeout((function(){t.onload=t.onabort=t.onerror=null,p.abort(),u("timeout",{errCode:5})}),l);t.responseType=r,t.onload=function(){clearTimeout(s);const e=t.status;let n="text"===r?t.responseText:t.response;"text"===r&&(n=Bb(n,r,i)),c({data:n,statusCode:e,header:Ib(t.getAllResponseHeaders()),cookies:[]})},t.onabort=function(){clearTimeout(s),u("abort",{errCode:600003})},t.onerror=function(){clearTimeout(s),u(void 0,{errCode:5})},t.withCredentials=a,t.send(d)}return p}),0,Qh),Ab=e=>{let t=e["Set-Cookie"]||e["set-cookie"],n=[];if(!t)return[];"["===t[0]&&"]"===t[t.length-1]&&(t=t.slice(1,-1));const o=t.split(";");for(let i=0;i{t===e&&(this._requestOnHeadersReceiveCallbacks.delete(n),this._emitter.off("headersReceived",e))}));const t=this._requestOnHeadersReceiveCallbacks.get(e);t&&(this._requestOnHeadersReceiveCallbacks.delete(e),this._emitter.off("headersReceived",t))}onChunkReceived(e){return this._emitter.on("chunkReceived",e),this._requestOnChunkReceiveCallbackId++,this._requestOnChunkReceiveCallbacks.set(this._requestOnChunkReceiveCallbackId,e),this._requestOnChunkReceiveCallbackId}offChunkReceived(e){if(null==e)return void this._emitter.off("chunkReceived");if("function"==typeof e)return void this._requestOnChunkReceiveCallbacks.forEach(((t,n)=>{t===e&&(this._requestOnChunkReceiveCallbacks.delete(n),this._emitter.off("chunkReceived",e))}));const t=this._requestOnChunkReceiveCallbacks.get(e);t&&(this._requestOnChunkReceiveCallbacks.delete(e),this._emitter.off("chunkReceived",t))}}function Ib(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}function Bb(e,t,n){let o=e;if("text"===t&&"json"===n)try{o=JSON.parse(o)}catch(i){}return o}class Eb{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(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 Pb=wd("downloadFile",(({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var r,s=new XMLHttpRequest,a=new Eb(s);return s.open("GET",e,!0),Object.keys(t).forEach((e=>{s.setRequestHeader(e,t[e])})),s.responseType="blob",s.onload=function(){clearTimeout(r);const t=s.status,n=this.response;let i;const a=s.getResponseHeader("content-disposition");if(a){const e=a.match(/filename="?(\S+)"?\b/);e&&(i=e[1])}n.name=i||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:kf(n)})},s.onabort=function(){clearTimeout(r),i("abort",{errCode:600003})},s.onerror=function(){clearTimeout(r),i("",{errCode:602001})},s.onprogress=function(e){a._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})}))},s.send(),r=setTimeout((function(){s.onprogress=s.onload=s.onabort=s.onerror=null,a.abort(),i("timeout",{errCode:5})}),n),a}),0,Yh);class zb{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){v(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 Mb=wd("uploadFile",(({url:e,file:t,filePath:n,name:o,files:i,header:r={},formData:s={},timeout:a=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new zb;return g(i)&&i.length||(n||c("file error"),i=[{name:o,file:t,uri:n}]),Promise.all(i.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(Sf(e)):xf(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(s).forEach((e=>{d.append(e,s[e])})),Object.values(i).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(r).forEach((e=>{o.setRequestHeader(e,r[e])})),o.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),c("",{errCode:602001})},o.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status,t=o.getAllResponseHeaders(),i=t?t.trim().split(/[\r\n]+/).reduce(((e,t)=>{const n=t.split(": "),o=n.shift(),i=n.join(": ");return e[o]=i,e}),{}):{};l({statusCode:e,data:o.responseText||o.response,header:i})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,u.abort(),c("timeout",{errCode:5})}),a),o.send(d),u._xhr=o)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Gh),Ob=Sd("getLocation",(({type:e,altitude:t,highAccuracyExpireTime:n,isHighAccuracy:o},{resolve:i,reject:r})=>{const s=wy();new Promise(((e,i)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition((t=>e({coords:t.coords})),i,{enableHighAccuracy:o||t,timeout:n||1e5}):i(new Error("device nonsupport geolocation"))})).catch((e=>new Promise(((t,n)=>{s.type===_y.QQ?my(`https://apis.map.qq.com/ws/location/v1/ip?output=jsonp&key=${s.key}`,{callback:"callback"},(e=>{if("result"in e&&e.result.location){const n=e.result.location;t({coords:{latitude:n.lat,longitude:n.lng},skip:!0})}else n(new Error(e.message||JSON.stringify(e)))}),(()=>n(new Error("network error")))):s.type===_y.GOOGLE?Cb({method:"POST",url:`https://www.googleapis.com/geolocation/v1/geolocate?key=${s.key}`,success(e){const o=e.data;"location"in o?t({coords:{latitude:o.location.lat,longitude:o.location.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.error&&o.error.message||JSON.stringify(e)))},fail(){n(new Error("network error"))}}):s.type===_y.AMAP?by([],(()=>{window.AMap.plugin("AMap.Geolocation",(()=>{new window.AMap.Geolocation({enableHighAccuracy:!0,timeout:1e4}).getCurrentPosition(((e,o)=>{"complete"===e?t({coords:{latitude:o.position.lat,longitude:o.position.lng,accuracy:o.accuracy},skip:!0}):n(new Error(o.message))}))}))})):n(e)})))).then((({coords:t,skip:n})=>{(function(e,t,n){const o=wy();return e&&"WGS84"===e.toUpperCase()||["google"].includes(o.type)||n?Promise.resolve(t):"qq"===o.type?new Promise((e=>{my(`https://apis.map.qq.com/ws/coord/v1/translate?type=1&locations=${t.latitude},${t.longitude}&key=${o.key}&output=jsonp`,{callback:"callback"},(n=>{if("locations"in n&&n.locations.length){const{lng:o,lat:i}=n.locations[0];e({longitude:o,latitude:i,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}),(()=>e(t)))})):"AMap"===o.type?new Promise((e=>{by([],(()=>{window.AMap.convertFrom([t.longitude,t.latitude],"gps",((n,o)=>{if("ok"===o.info&&o.locations.length){const{lat:n,lng:i}=o.locations[0];e({longitude:i,latitude:n,altitude:t.altitude,accuracy:t.accuracy,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,speed:t.speed})}else e(t)}))}))})):Promise.reject(new Error("translate coordinate system faild, map provider not configured or not supported"))})(e,t,n).then((e=>{i({latitude:e.latitude,longitude:e.longitude,accuracy:e.accuracy,speed:e.altitude||0,altitude:e.altitude||0,verticalAccuracy:e.altitudeAccuracy||0,horizontalAccuracy:e.accuracy||0})})).catch((e=>{r(e.message)}))})).catch((e=>{r(e.message||JSON.stringify(e))}))}),0,Nh),Rb=Sd("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===Vc("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(Jg().$router.go(-e.delta),t()):n("onBackPress")}),0,ep),Lb=Sd("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Op.handledBeforeEntryPageRoutes)return wp({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);Rp.push({args:{type:"navigateTo",url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})}),0,Kh);function Nb(e){__uniConfig.darkmode&&Mv.on("onThemeChange",e)}function Db(e){Mv.off("onThemeChange",e)}function $b(e){let t={};return __uniConfig.darkmode&&(t=je(e,__uniConfig.themeConfig,Ey())),__uniConfig.darkmode?t:e}function jb(e,t){const n=Zt(e),o=n?Gt($b(e)):$b(e);return __uniConfig.darkmode&&n&&ho(e,(e=>{const t=$b(e);for(const n in t)o[n]=t[n]})),t&&Nb(t),o}const Hb={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Fb=Eo({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=hn(""),o=()=>s.value=!1,i=()=>(o(),t("close","cancel")),r=()=>(o(),t("close","confirm",n.value)),s=hb(e,{onEsc:i,onEnter:()=>{!e.editable&&r()}}),a=function(e){const t=hn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Hb[e].cancelColor})(e,t)};return co((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Ey()&&n({theme:"dark"}),Nb(n))):Db(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=o,gr(Qr,{name:"uni-fade"},{default:()=>[yo(gr("uni-modal",{onTouchmove:bc},[cb,gr("div",{class:"uni-modal"},[t?gr("div",{class:"uni-modal__hd"},[gr("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?gr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):gr("div",{class:"uni-modal__bd",onTouchmovePassive:vc,textContent:o},null,40,["onTouchmovePassive","textContent"]),gr("div",{class:"uni-modal__ft"},[l&&gr("div",{style:{color:a.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),gr("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:r},[c],12,["onClick"])])])],40,["onTouchmove"]),[[as,s.value]])]})}}});let Vb;const Wb=ve((()=>{Mv.on("onHidePopup",(()=>Vb.visible=!1))}));let Ub;function qb(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Vb.editable&&(o.content=t),Ub&&Ub(o)}const Qb=Sd("showModal",((e,{resolve:t})=>{Wb(),Ub=t,Vb?(h(Vb,e),Vb.visible=!0):(Vb=Gt(e),Ln((()=>(ub(Fb,Vb,qb).mount(db("u-a-m")),Ln((()=>Vb.visible=!0))))))}),0,lp),Yb={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==cp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Gb={light:"#fff",dark:"rgba(255,255,255,0.9)"},Xb=e=>Gb[e],Kb=Eo({name:"Toast",props:Yb,setup(e){Dl(),$l();const{Icon:t}=function(e){const t=hn(Xb(Ey())),n=({theme:e})=>t.value=Xb(e);co((()=>{e.visible?Nb(n):Db(n)}));return{Icon:$r((()=>{switch(e.icon){case"success":return gr(Mc(Ec,t.value,38),{class:"uni-toast__icon"});case"error":return gr(Mc(Pc,t.value,38),{class:"uni-toast__icon"});case"loading":return gr("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=hb(e,{});return()=>{const{mask:o,duration:i,title:r,image:s}=e;return gr(Qr,{name:"uni-fade"},{default:()=>[yo(gr("uni-toast",{"data-duration":i},[o?gr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:bc},null,40,["onTouchmove"]):"",s||t.value?gr("div",{class:"uni-toast"},[s?gr("img",{src:s,class:"uni-toast__icon"},null,10,["src"]):t.value,gr("p",{class:"uni-toast__content"},[r])]):gr("div",{class:"uni-sample-toast"},[gr("p",{class:"uni-simple-toast__text"},[r])])],8,["data-duration"]),[[as,n.value]])]})}}});let Jb,Zb,ev="";const tv=We();function nv(e){Jb?h(Jb,e):(Jb=Gt(h(e,{visible:!1})),Ln((()=>{tv.run((()=>{ho([()=>Jb.visible,()=>Jb.duration],(([e,t])=>{if(e){if(Zb&&clearTimeout(Zb),"onShowLoading"===ev)return;Zb=setTimeout((()=>{av("onHideToast")}),t)}else Zb&&clearTimeout(Zb)}))})),Mv.on("onHidePopup",(()=>av("onHidePopup"))),ub(Kb,Jb,(()=>{})).mount(db("u-a-t"))}))),setTimeout((()=>{Jb.visible=!0}),10)}const ov=Sd("showToast",((e,{resolve:t,reject:n})=>{nv(e),ev="onShowToast",t()}),0,up),iv={icon:"loading",duration:1e8,image:""},rv=Sd("showLoading",((e,{resolve:t,reject:n})=>{h(e,iv),nv(e),ev="onShowLoading",t()}),0,ap),sv=Sd("hideLoading",((e,{resolve:t,reject:n})=>{av("onHideLoading"),t()}));function av(e){const{t:t}=Rl();if(!ev)return;let n="";if("onHideToast"===e&&"onShowToast"!==ev?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==ev&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);ev="",setTimeout((()=>{Jb.visible=!1}),10)}const lv=Sd("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then((()=>{o.add&&o.add(i)}))}return new Promise((o=>{const i=document.createElement("style"),r=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:s,featureSettings:a}=n;e&&r.push(`font-style:${e}`),t&&r.push(`font-weight:${t}`),o&&r.push(`font-stretch:${o}`),i&&r.push(`unicode-range:${i}`),s&&r.push(`font-variant:${s}`),a&&r.push(`font-feature-settings:${a}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${r.join(";")}}`,document.head.appendChild(i),o()}))})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${rf(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${rf(t.substring(4,t.length-1))}')`:rf(t),n).then((()=>{o()})).catch((e=>{i(`loadFontFace:fail ${e}`)}))}));function cv(e){function t(){var t;(t=e.navigationBar.titleText)&&t!==document.title&&(document.title=t),Mv.emit("onNavigationBarChange",{titleText:t})}co(t),$o(t)}const uv=Sd("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:r}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:i,timingFunc:s}=o;e&&(r.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(r.backgroundColor=t),r.duration=i+"ms",r.timingFunc=s;break;case"showNavigationBarLoading":r.loading=!0;break;case"hideNavigationBarLoading":r.loading=!1;break;case"setNavigationBarTitle":const{title:a}=n;r.titleText=a}o()}(Nc(),"setNavigationBarTitle",e,t,n)})),dv=Sd("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t,n){if(_(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:i,scrollHeight:r}=o;if(e=Math.min(e,r-i),0===t)return void(o.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const s=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),s(t-10)}))};s(t)}(t||e||0,n),o()}),0,sp),hv=Sd("stopPullDownRefresh",((e,{resolve:t})=>{Mv.invokeViewMethod("stopPullDownRefresh",{},Dc()),t()})),pv=["text","iconPath","iconfont","selectedIconPath","visible"],fv=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],mv=["badge","redDot"];function gv(e,t,n){t.forEach((function(t){m(n,t)&&(e[t]=n[t])}))}function yv(e,t,n,o){var i;let r=!1;const s=Hp();if(s.length&&Mp(s[s.length-1]).meta.isTabBar&&(r=!0),!r)return o("not TabBar page");const{index:a}=t;if("number"==typeof a){const e=null==(i=null==__uniConfig?void 0:__uniConfig.tabBar)?void 0:i.list.length;if(!e||a>=e)return o("tabbar item not found")}const l=kp();switch(e){case"showTabBar":l.shown=!0;break;case"hideTabBar":l.shown=!1;break;case"setTabBarItem":const e=l.list[a],n=e.pagePath;gv(e,pv,t);const{pagePath:o}=t;if(o){const e=ge(o);e!==n&&function(e,t,n){const o=Gc(ge(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const i=Gc(ge(n));if(i){const{meta:t}=i;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=ye(n))}}(a,n,e)}break;case"setTabBarStyle":gv(l,fv,t);break;case"showTabBarRedDot":gv(l.list[a],mv,{badge:"",redDot:!0});break;case"setTabBarBadge":gv(l.list[a],mv,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":gv(l.list[a],mv,{badge:"",redDot:!1})}n()}const bv=Sd("hideTabBar",((e,{resolve:t,reject:n})=>{yv("hideTabBar",e||{},t,n)})),vv=Sd("showTabBar",((e,{resolve:t,reject:n})=>{yv("showTabBar",e||{},t,n)})),_v=Su({name:"TabBar",setup(){const e=hn([]),t=kp(),n=jb(t,(()=>{const e=$b(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}hn(h({type:"midButton"},e.midButton)),co(n)}(n,e),function(e){ho((()=>e.shown),(t=>{kc({"--window-bottom":Pp(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return co((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=i}})),(t,n)=>()=>{const{pagePath:o,text:i}=t;let r=ge(o);r===__uniRoutes[0].alias&&(r="/"),e.path!==r?gp({from:"tabBar",url:r,tabBarText:i}):Vc("onTabItemTap",{index:n,text:i,pagePath:o})}}(vl(),n,e),{style:i,borderStyle:r,placeholderStyle:s}=function(e){const t=$r((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||Ip&&n&&"none"!==n&&(t=wv[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=$r((()=>{const{borderStyle:t,borderColor:n}=e;return n&&_(n)?{backgroundColor:n}:{backgroundColor:xv[t]||xv.black}})),o=$r((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return Xo((()=>{n.iconfontSrc&&lv({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:r}=e;return n.value.map(((n,s)=>{const a=o===s;return function(e,t,n,o,i,r,s,a){return gr("div",{key:s,class:"uni-tabbar__item",onClick:a(i,s)},[Sv(e,t||"",n,o,i,r)],8,["onClick"])}(a?i:r,a&&n.selectedIconPath||n.iconPath||"",n.iconfont?a&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?a&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,s,t)}))}(n,o,e);return gr("uni-tabbar",{class:"uni-tabbar-"+n.position},[gr("div",{class:"uni-tabbar",style:i.value},[gr("div",{class:"uni-tabbar-border",style:r.value},null,4),t],4),gr("div",{class:"uni-placeholder",style:s.value},null,4)],2)}}});const wv={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},xv={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function Sv(e,t,n,o,i,r){const{height:s}=r;return gr("div",{class:"uni-tabbar__bd",style:{height:s}},[n?Cv(n,o||"rgb(0, 0, 0, 0.8)",i,r):t&&kv(t,i,r),i.text&&Av(e,i,r),i.redDot&&Tv(i.badge)],4)}function kv(e,t,n){const{type:o,text:i}=t,{iconWidth:r}=n;return gr("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:r,height:r}},["midButton"!==o&&gr("img",{src:rf(e)},null,8,["src"])],6)}function Cv(e,t,n,o){var i;const{type:r,text:s}=n,{iconWidth:a}=o,l="uni-tabbar__icon"+(s?" uni-tabbar__icon__diff":""),c={width:a,height:a},u={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||a,color:t};return gr("div",{class:l,style:c},["midButton"!==r&&gr("div",{class:"uni-tabbar__iconfont",style:u},[e],4)],6)}function Av(e,t,n){const{iconPath:o,text:i}=t,{fontSize:r,spacing:s}=n;return gr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:r,lineHeight:o?"normal":1.8,marginTop:o?s:"inherit"}},[i],4)}function Tv(e){return gr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const Iv=Su({name:"Layout",setup(e,{emit:t}){const n=hn(null);Sc({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=vl();return{routeKey:$r((()=>qp("/"+e.meta.route,$u()))),isTabBar:$r((()=>e.meta.isTabBar)),routeCache:Yp}}(),{layoutState:i,windowState:r}=function(){Du();{const e=Gt({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return ho((()=>e.marginWidth),(e=>Sc({"--window-margin":e+"px"}))),ho((()=>e.leftWindowWidth+e.marginWidth),(e=>{Sc({"--window-left":e+"px"})})),ho((()=>e.rightWindowWidth+e.marginWidth),(e=>{Sc({"--window-right":e+"px"})})),{layoutState:e,windowState:$r((()=>({})))}}}();!function(e,t){const n=Du();function o(){const o=document.body.clientWidth,i=Hp();let r={};if(i.length>0){r=Mp(i[i.length-1]).meta}else{const e=Gc(n.path,!0);e&&(r=e.meta)}const s=parseInt(String((m(r,"maxWidth")?r.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let a=!1;a=o>s,a&&s?(e.marginWidth=(o-s)/2,Ln((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+s+"px;margin:0 auto;")}))):(e.marginWidth=0,Ln((()=>{const e=t.value;e&&e.removeAttribute("style")})))}ho([()=>n.path],o),Xo((()=>{o(),window.addEventListener("resize",o)}))}(i,n);const s=function(e){const t=Du(),n=kp(),o=$r((()=>t.meta.isTabBar&&n.shown));return Sc({"--tab-bar-height":n.height}),o}(),a=function(e){const t=hn(!1);return $r((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(s);return()=>{const e=function(e,t,n,o,i,r){return function({routeKey:e,isTabBar:t,routeCache:n}){return gr(yl,null,{default:Kn((({Component:o})=>[(ir(),cr(No,{matchBy:"key",cache:n},[(ir(),cr(io(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return yo(gr(_v,null,null,512),[[as,e.value]])}(s);return gr("uni-app",{ref:n,class:a.value},[e,t],2)}}});const Bv=Sd("saveImageToPhotosAlbum",(Ev="saveImageToPhotosAlbum",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(Ev))));var Ev;const Pv=xu({name:"CoverView",compatConfig:{MODE:3},props:{scrollTop:{type:[String,Number],default:0}},setup(e,{slots:t}){const n=hn(null),o=hn(null);function i(e){let t=o.value;"scroll"===getComputedStyle(t).overflowY&&(t.scrollTop=function(e){let t=String(e);/\d+[ur]px$/i.test(t)&&t.replace(/\d+[ur]px$/i,(e=>String(zd(parseFloat(e)))));return parseFloat(t)||0}(e))}return ho((()=>e.scrollTop),(e=>{i(e)})),Xo((()=>{i(e.scrollTop)})),()=>gr("uni-cover-view",{"scroll-top":e.scrollTop,ref:n},[gr("div",{ref:o,class:"uni-cover-view"},[t.default&&t.default()],512)],8,["scroll-top"])}}),zv=h(Xl,{publishHandler(e,t,n){Mv.subscribeHandler(e,t,n)}}),Mv=h(cu,{publishHandler(e,t,n){zv.subscribeHandler(e,t,n)}}),Ov=Su({name:"PageHead",setup(){const e=hn(null),t=Lu(),n=jb(t.navigationBar,(()=>{const e=$b(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:i}=function(e){const t=$r((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i})),n=$r((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const r=function(e,t){if(!t)return gr("div",{class:"uni-page-head-btn",onClick:Lv},[Mc(zc,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),s=n.type||"default",a="transparent"!==s&&"float"!==s&&gr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return gr("uni-page-head",{"uni-page-head-type":s},[gr("div",{ref:e,class:o.value,style:i.value},[gr("div",{class:"uni-page-head-hd"},[r]),Rv(n),gr("div",{class:"uni-page-head-ft"},[])],6),a],8,["uni-page-head-type"])}}});function Rv(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return gr("div",{class:"uni-page-head-bd"},[gr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?gr("i",{class:"uni-loading"},null):i?gr("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function Lv(){1===jp().length?_p({url:"/"}):Rb({from:"backbutton",success(){}})}const Nv={name:"PageRefresh",setup(){const{pullToRefresh:e}=Lu();return{offset:e.offset,color:e.color}}},Dv=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},$v={class:"uni-page-refresh-inner"},jv=["fill"],Hv=[mr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),mr("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],Fv={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},Vv=["stroke"];const Wv=Dv(Nv,[["render",function(e,t,n,o,i,r){return ir(),lr("uni-page-refresh",null,[mr("div",{style:he({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[mr("div",$v,[(ir(),lr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},Hv,8,jv)),(ir(),lr("svg",Fv,[mr("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,Vv)]))])],4)])}]]);function Uv(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter((e=>e.identifier===t))[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const qv="aborting",Qv="refreshing",Yv="restoring";function Gv(e){const t=Lu(),{id:n,pullToRefresh:o}=t,{range:i,height:r}=o;let s,a,l,c,u,d,h,p;Bg((()=>{t.enablePullDownRefresh&&(p||(p=Qv,y(),setTimeout((()=>{x()}),50)))}),"startPullDownRefresh",!1,n),Bg((()=>{t.enablePullDownRefresh&&p===Qv&&(b(),p=Yv,y(),function(e){if(!a)return;l.transition="-webkit-transform 0.3s",l.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",l.transform="translate3d(-50%, 0, 0)",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{b(),p=f=m=null})))}),"stopPullDownRefresh",!1,n),Xo((()=>{s=e.value.$el,a=s.querySelector(".uni-page-refresh"),l=a.style,c=a.querySelector(".uni-page-refresh-inner").style}));let f=null,m=null;function g(e){p&&s&&s.classList[e]("uni-page-refresh--"+p)}function y(){g("add")}function b(){g("remove")}const v=ku((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];u=n.identifier,d=n.pageY,h=!([qv,Qv,Yv].indexOf(p)>=0)})),_=ku((e=>{if(!t.enablePullDownRefresh)return;if(!h)return;if(!Uv(e,u,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(u=null);if(n<0&&!p)return;e.cancelable&&e.preventDefault(),null===f&&(m=n,p="pulling",y()),n-=m,n<0&&(n=0),f=n;(n>=i&&"reached"!==p||n1?t=1:t*=t*t;const n=Math.round(e/(i/r))||0;c.transform="rotate("+360*t+"deg)",l.clip="rect("+(45-n)+"px,45px,45px,-5px)",l.transform="translate3d(-50%, "+n+"px, 0)"}(n)})),w=ku((e=>{t.enablePullDownRefresh&&Uv(e,u,d)&&null!==p&&("pulling"===p?(b(),p=qv,y(),function(e){if(!a)return;if(l.transform){l.transition="-webkit-transform 0.3s",l.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),a.removeEventListener("webkitTransitionEnd",t),l.transition="",e()};a.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{b(),p=f=m=null}))):"reached"===p&&(b(),p=Qv,y(),x()))}));function x(){a&&(l.transition="-webkit-transform 0.2s",l.transform="translate3d(-50%, "+r+"px, 0)",Vc(n,"onPullDownRefresh"))}return{onTouchstartPassive:v,onTouchmove:_,onTouchend:w,onTouchcancel:w}}const Xv=Su({name:"PageBody",setup(e,t){const n=Lu(),o=hn(null),i=hn(null),r=n.enablePullDownRefresh?Gv(o):null,s=hn(null);return ho((()=>n.enablePullDownRefresh),(()=>{s.value=n.enablePullDownRefresh?r:null}),{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return gr(Wv,{ref:e},null,512)}(o,n);return gr(Ji,null,[e,gr("uni-page-wrapper",Sr({ref:i},s.value),[gr("uni-page-body",null,[si(t.slots,"default")]),null],16)])}}});const Kv=Su({name:"Page",setup(e,t){let n=Nu($u());const o=n.navigationBar,i={};return cv(n),()=>gr("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[gr(Ov),Jv(t),null]:[Jv(t),null])}});function Jv(e){return ir(),cr(Xv,{key:0},{default:Kn((()=>[si(e.slots,"page")])),_:3})}const Zv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=zd;const e_=Object.assign({}),t_=Object.assign;window.__uniConfig=t_({easycom:{autoscan:!0,custom:{"^u--(.*)":"uview-plus/components/u-$1/u-$1.vue","^up-(.*)":"uview-plus/components/u-$1/u-$1.vue","^u-([^-].*)":"uview-plus/components/u-$1/u-$1.vue"}},globalStyle:{backgroundColor:"#F5F5F5",navigationBar:{backgroundColor:"#FFFFFF",titleText:"",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#787879",selectedColor:"#0F78E9",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{pagePath:"pages/index/index",text:"项目",iconPath:"/static/icon/home.png",selectedIconPath:"/static/icon/home-active.png"},{pagePath:"pages/profile/profile",text:"我的",iconPath:"/static/icon/mine.png",selectedIconPath:"/static/icon/mine-active.png"}],backgroundColor:"#ffffff",selectedIndex:0,shown:!0},uniIdRouter:{},compilerVersion:"5.05"},{appId:"__UNI__A0246D1",appName:"pap_mini_cytx",appVersion:"1.0.0",appVersionCode:"100",async:Zv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(e_).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return t_(e[n]||(e[n]={}),e_[t].default),e}),{}),router:{mode:"history",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const n_={delay:Zv.delay,timeout:Zv.timeout,suspensible:Zv.suspensible};Zv.loading&&(n_.loadingComponent={name:"SystemAsyncLoading",render:()=>gr(no(Zv.loading))}),Zv.error&&(n_.errorComponent={name:"SystemAsyncError",props:["error"],render(){return gr(no(Zv.error),{error:this.error})}});const o_=()=>i((()=>import("./pages-index-index.Cjsjec8Z.js")),__vite__mapDeps([0,1,2,3])).then((e=>ny(e.default||e))),i_=zo(t_({loader:o_},n_)),r_=()=>i((()=>import("./pages-profile-profile.Dj2wm2ux.js")),__vite__mapDeps([4,5])).then((e=>ny(e.default||e))),s_=zo(t_({loader:r_},n_)),a_=()=>i((()=>import("./pages-content-content.DFTmwNN_.js")),__vite__mapDeps([6,1,2,7])).then((e=>ny(e.default||e))),l_=zo(t_({loader:a_},n_)),c_=()=>i((()=>import("./pages-verify-verify.CZTPsAba.js")),__vite__mapDeps([8,9])).then((e=>ny(e.default||e))),u_=zo(t_({loader:c_},n_)),d_=()=>i((()=>import("./pages-change-phone-change-phone.DXBpVM3_.js")),__vite__mapDeps([10,11])).then((e=>ny(e.default||e))),h_=zo(t_({loader:d_},n_)),p_=()=>i((()=>import("./pages-myinfo-myinfo.k9hfhPK2.js")),__vite__mapDeps([12,13])).then((e=>ny(e.default||e))),f_=zo(t_({loader:p_},n_)),m_=()=>i((()=>import("./pages-sample-info-sample-info.BNuLRRIh.js")),__vite__mapDeps([14,15])).then((e=>ny(e.default||e))),g_=zo(t_({loader:m_},n_)),y_=()=>i((()=>import("./pages-sign-sign.CA-2zWs9.js")),__vite__mapDeps([16,17])).then((e=>ny(e.default||e))),b_=zo(t_({loader:y_},n_)),v_=()=>i((()=>import("./pages-sign-signature.Ct0cj36K.js")),__vite__mapDeps([18,19])).then((e=>ny(e.default||e))),__=zo(t_({loader:v_},n_)),w_=()=>i((()=>import("./pages-message-message.BJp6W42t.js")),__vite__mapDeps([20,21])).then((e=>ny(e.default||e))),x_=zo(t_({loader:w_},n_)),S_=()=>i((()=>import("./pages-message-detail.CyaX1Scx.js")),__vite__mapDeps([22,23])).then((e=>ny(e.default||e))),k_=zo(t_({loader:S_},n_)),C_=()=>i((()=>import("./pages-login-index.5t7w5yVS.js")),__vite__mapDeps([24,25])).then((e=>ny(e.default||e))),A_=zo(t_({loader:C_},n_));function T_(e,t){return ir(),cr(Kv,null,{page:Kn((()=>[gr(e,t_({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(i_,t)}},loader:o_,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"肠愈同行患者关爱",type:"default"},isNVue:!1}},{path:"/pages/profile/profile",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(s_,t)}},loader:r_,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"我的",type:"default"},isNVue:!1}},{path:"/pages/content/content",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(l_,t)}},loader:a_,meta:{navigationBar:{titleText:"详情",style:"default",type:"default"},isNVue:!1}},{path:"/pages/verify/verify",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(u_,t)}},loader:c_,meta:{navigationBar:{titleText:"实名认证",style:"default",type:"default"},isNVue:!1}},{path:"/pages/change-phone/change-phone",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(h_,t)}},loader:d_,meta:{navigationBar:{titleText:"修改手机号",style:"default",type:"default"},isNVue:!1}},{path:"/pages/myinfo/myinfo",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(f_,t)}},loader:p_,meta:{navigationBar:{titleText:"我的资料",style:"default",type:"default"},isNVue:!1}},{path:"/pages/sample-info/sample-info",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(g_,t)}},loader:m_,meta:{navigationBar:{titleText:"送检信息",style:"default",type:"default"},isNVue:!1}},{path:"/pages/sign/sign",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(b_,t)}},loader:y_,meta:{navigationBar:{titleText:"授权签名",style:"default",type:"default"},isNVue:!1}},{path:"/pages/sign/signature",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(__,t)}},loader:v_,meta:{navigationBar:{titleText:"手写签名",style:"default",type:"default"},isNVue:!1}},{path:"/pages/message/message",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(x_,t)}},loader:w_,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"消息中心",style:"default",type:"default"},isNVue:!1}},{path:"/pages/message/detail",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(k_,t)}},loader:S_,meta:{navigationBar:{titleText:"消息详情",style:"default",type:"default"},isNVue:!1}},{path:"/pages/login/index",component:{setup(){const e=Jg(),t=e&&e.$route&&e.$route.query||{};return()=>T_(A_,t)}},loader:C_,meta:{navigationBar:{titleText:"登录",style:"default",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const I_={onLaunch:function(){console.log("App Launch")},onShow:function(){console.log("App Show")},onHide:function(){console.log("App Hide")}};ty(I_,{init:Zg,setup(e){const t=Du(),n=()=>{var n;n=e,Object.keys(Oh).forEach((e=>{Oh[e].forEach((t=>{Qo(e,t,n)}))}));const{onLaunch:o,onShow:i,onPageNotFound:r}=e,s=function({path:e,query:t}){return h(Af,{path:e,query:t}),h(Tf,Af),h({},Af)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:Te(t.query)});if(o&&N(o,s),i&&N(i,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:Te(t.query),scene:1001};xp(),r&&N(r,e)}};return Ei(rl).isReady().then(n),Xo((()=>{window.addEventListener("resize",Ee(oy,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",iy),document.addEventListener("visibilitychange",ry),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Mv.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(ir(),cr(Iv));e.setup=(e,o)=>{const i=t&&t(e,o);return v(i)?n:i},e.render=n}}); /*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote diff --git a/assets/mp-html.CQ6RgAWO.js b/assets/mp-html.pEJ-Us3z.js similarity index 99% rename from assets/mp-html.CQ6RgAWO.js rename to assets/mp-html.pEJ-Us3z.js index edb8935..a3375be 100644 --- a/assets/mp-html.CQ6RgAWO.js +++ b/assets/mp-html.pEJ-Us3z.js @@ -1 +1 @@ -import{N as t,O as e,P as s,p as i,u as n,_ as a,Q as r,h as o,a as l,w as h,R as c,S as d,T as p,U as m,m as g,n as u,V as f,l as y,t as b,j as x,I as k,J as v,i as w,W as T,X as _,Y as $,L as N,Z as O,$ as L,a0 as S}from"./index-It-40-XE.js";var I={abbr:!0,b:!0,big:!0,code:!0,del:!0,em:!0,i:!0,ins:!0,label:!0,q:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0};const C={isInline:function(t,e){return I[t]||-1!==(e||"").indexOf("display:inline")}},j=t=>{t.$wxs||(t.$wxs=[]),t.$wxs.push("handler"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.handler=C}})},R={name:"node",options:{},data:()=>({ctrl:{},nodes:[]}),props:{name:String,attrs:{type:Object,default:()=>({})},childs:Array,opts:Array},watch:{childs:{handler(t){for(;this.nodes.length>t.length;)t.push({});this.nodes=t},immediate:!0}},components:{},mounted(){if(this.$nextTick((()=>{for(this.root=this.$parent;"mp-html"!==this.root.$options.name;this.root=this.root.$parent);})),this.opts[0]){let e;for(e=this.childs.length;e--&&"img"!==this.childs[e].name;);-1!==e&&(this.observer=t(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",(t=>{t.intersectionRatio&&(this.$set(this.ctrl,"load",1),this.observer.disconnect())})))}},beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{play(t){const s=t.currentTarget.dataset.i,i=this.childs[s];if(this.root.$emit("play",{source:i.name,attrs:{...i.attrs,src:i.src[this.ctrl[s]||0]}}),this.root.pauseVideo){let s=!1;const i=t.target.id;for(let t=this.root._videos.length;t--;)this.root._videos[t].id===i?s=!0:this.root._videos[t].pause();if(!s){const t=e(i,this);t.id=i,this.root.playbackRate&&t.playbackRate(this.root.playbackRate),this.root._videos.push(t)}}},mediaEvent(t){const e=t.currentTarget.dataset.i,s=this.childs[e];this.root.$emit(t.type,{...t.detail,source:s.name,attrs:{...s.attrs,src:s.src[this.ctrl[e]||0]}})},imgTap(t){const e=this.childs[t.currentTarget.dataset.i];e.a?this.linkTap(e.a):e.attrs.ignore||(e.attrs.src=e.attrs.src||e.attrs["data-src"],this.root.$emit("imgtap",e.attrs),this.root.previewImg&&s({current:parseInt(e.attrs.i),urls:this.root.imgList}))},imgLongTap(t){},imgLoad(t){const e=t.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[e]||-1===this.ctrl[e])&&this.$set(this.ctrl,e,1),this.checkReady()},checkReady(){this.root&&!this.root.lazyLoad&&(this.root._unloadimgs-=1,this.root._unloadimgs||setTimeout((()=>{this.root.getRect().then((t=>{this.root.$emit("ready",t)})).catch((()=>{this.root.$emit("ready",{})}))}),350))},linkTap(t){const e=t.currentTarget?this.childs[t.currentTarget.dataset.i]:{},s=e.attrs||t,a=s.href;this.root.$emit("linktap",Object.assign({innerText:this.root.getText(e.children||[])},s)),a&&("#"===a[0]?this.root.navigateTo(a.substring(1)).catch((()=>{})):a.split("?")[0].includes("://")?this.root.copyLink&&window.open(a):i({url:a,fail(){n({url:a,fail(){}})}}))},mediaError(t){const e=t.currentTarget.dataset.i,s=this.childs[e];if("video"===s.name||"audio"===s.name){let t=(this.ctrl[e]||0)+1;if(t>s.src.length&&(t=0),t[(o(!0),c(d,null,p(n.nodes,((i,r)=>(o(),c(d,{key:r},["img"===i.name&&!i.t&&(s.opts[1]&&!n.ctrl[r]||n.ctrl[r]<0)?(o(),l($,{key:0,class:"_img",style:m(i.attrs.style),src:n.ctrl[r]<0?s.opts[2]:s.opts[1],mode:"widthFix"},null,8,["style","src"])):g("",!0),"img"===i.name?(o(),c("img",{key:1,id:i.attrs.id,class:u("_img "+i.attrs.class),style:m((-1===n.ctrl[r]?"display:none;":"")+i.attrs.style),src:i.attrs.src||(n.ctrl.load?i.attrs["data-src"]:""),"data-i":r,onLoad:e[0]||(e[0]=(...t)=>a.imgLoad&&a.imgLoad(...t)),onError:e[1]||(e[1]=(...t)=>a.mediaError&&a.mediaError(...t)),onClick:e[2]||(e[2]=f(((...t)=>a.imgTap&&a.imgTap(...t)),["stop"])),onLongpress:e[3]||(e[3]=(...t)=>a.imgLongTap&&a.imgLongTap(...t))},null,46,["id","src","data-i"])):i.text?(o(),l(N,{key:2,decode:""},{default:h((()=>[y(b(i.text),1)])),_:2},1024)):"br"===i.name?(o(),l(N,{key:3},{default:h((()=>[y(b("\n"))])),_:1})):"a"===i.name?(o(),l(L,{key:4,id:i.attrs.id,class:u((i.attrs.href?"_a ":"")+i.attrs.class),"hover-class":"_hover",style:m("display:inline;"+i.attrs.style),"data-i":r,onClick:f(a.linkTap,["stop"])},{default:h((()=>[x(O,{name:"span",childs:i.children,opts:s.opts,style:{display:"inherit"}},null,8,["childs","opts"])])),_:2},1032,["id","class","style","data-i","onClick"])):"video"===i.name?(o(),l(S,{key:5,id:i.attrs.id,class:u(i.attrs.class),style:m(i.attrs.style),autoplay:i.attrs.autoplay,controls:i.attrs.controls,loop:i.attrs.loop,muted:i.attrs.muted,"object-fit":i.attrs["object-fit"],poster:i.attrs.poster,src:i.src[n.ctrl[r]||0],"data-i":r,onPlay:a.play,onPause:a.mediaEvent,onFullscreenchange:a.mediaEvent,onError:a.mediaError},null,8,["id","class","style","autoplay","controls","loop","muted","object-fit","poster","src","data-i","onPlay","onPause","onFullscreenchange","onError"])):"iframe"===i.name?(o(),c("iframe",{key:6,style:m(i.attrs.style),allowfullscreen:i.attrs.allowfullscreen,frameborder:i.attrs.frameborder,src:i.attrs.src},null,12,["allowfullscreen","frameborder","src"])):"embed"===i.name?(o(),c("embed",{key:7,style:m(i.attrs.style),src:i.attrs.src},null,12,["src"])):"table"===i.name&&i.c||"li"===i.name?(o(),l(L,{key:8,id:i.attrs.id,class:u("_"+i.name+" "+i.attrs.class),style:m(i.attrs.style)},{default:h((()=>["li"===i.name?(o(),l(O,{key:0,childs:i.children,opts:s.opts},null,8,["childs","opts"])):(o(!0),c(d,{key:1},p(i.children,((t,e)=>(o(),l(L,{key:e,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>["td"===t.name||"th"===t.name?(o(),l(O,{key:0,childs:t.children,opts:s.opts},null,8,["childs","opts"])):(o(!0),c(d,{key:1},p(t.children,((t,e)=>(o(),c(d,{key:e},["td"===t.name||"th"===t.name?(o(),l(L,{key:0,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>[x(O,{childs:t.children,opts:s.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])):(o(),l(L,{key:1,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>[(o(!0),c(d,null,p(t.children,((t,e)=>(o(),l(L,{key:e,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>[x(O,{childs:t.children,opts:s.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])))),128))])),_:2},1032,["class","style"]))],64)))),128))])),_:2},1032,["class","style"])))),128))])),_:2},1032,["id","class","style"])):i.c||t.handler.isInline(i.name,i.attrs.style)?2===i.c?(o(),l(L,{key:10,id:i.attrs.id,class:u("_block _"+i.name+" "+i.attrs.class),style:m(i.f+";"+i.attrs.style)},{default:h((()=>[(o(!0),c(d,null,p(i.children,((t,e)=>(o(),l(O,{key:e,style:m(t.f),name:t.name,attrs:t.attrs,childs:t.children,opts:s.opts},null,8,["style","name","attrs","childs","opts"])))),128))])),_:2},1032,["id","class","style"])):(o(),l(O,{key:11,style:m(i.f),name:i.name,attrs:i.attrs,childs:i.children,opts:s.opts},null,8,["style","name","attrs","childs","opts"])):(o(),l(I,{key:9,id:i.attrs.id,style:m(i.f),"user-select":s.opts[4],nodes:[i]},null,8,["id","style","user-select","nodes"]))],64)))),128))])),_:1},8,["id","class","style"])}],["__scopeId","data-v-fc5de137"]]),z={trustTags:q("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:q("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:q("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:q("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur",foreignobject:"foreignObject"}},E={};let F;const V=$();F=V.windowWidth;const B=q(" ,\r,\n,\t,\f");let P=0;function q(t){const e=Object.create(null),s=t.split(",");for(let i=s.length;i--;)e[s[i]]=!0;return e}function D(t,e){let s=t.indexOf("&");for(;-1!==s;){const i=t.indexOf(";",s+3);let n;if(-1===i)break;"#"===t[s+1]?(n=parseInt(("x"===t[s+2]?"0":"")+t.substring(s+2,i)),isNaN(n)||(t=t.substr(0,s)+String.fromCharCode(n)+t.substr(i+1))):(n=t.substring(s+1,i),(z.entities[n]||"amp"===n&&e)&&(t=t.substr(0,s)+(z.entities[n]||"&")+t.substr(i+1))),s=t.indexOf("&",s+1)}return t}function U(t){let e=t.length-1;for(let s=e;s>=-1;s--)(-1===s||t[s].c||!t[s].name||"div"!==t[s].name&&"p"!==t[s].name&&"h"!==t[s].name[0]||(t[s].attrs.style||"").includes("inline"))&&(e-s>=5&&t.splice(s+1,e-s,{name:"div",attrs:{},children:t.slice(s+1,e+1)}),e=s-1)}function M(t){this.options=t||{},this.tagStyle=Object.assign({},z.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.imgList._unloadimgs=0,this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function Z(t){this.handler=t}z.ignoreTags.iframe=void 0,z.trustTags.iframe=!0,z.ignoreTags.embed=void 0,z.trustTags.embed=!0,M.prototype.parse=function(t){for(let e=this.plugins.length;e--;)this.plugins[e].onUpdate&&(t=this.plugins[e].onUpdate(t,z)||t);for(new Z(this).parse(t);this.stack.length;)this.popNode();return this.nodes.length>50&&U(this.nodes),this.nodes},M.prototype.expose=function(){for(let t=this.stack.length;t--;){const e=this.stack[t];if(e.c||"a"===e.name||"video"===e.name||"audio"===e.name)return;e.c=1}},M.prototype.hook=function(t){for(let e=this.plugins.length;e--;)if(this.plugins[e].onParse&&!1===this.plugins[e].onParse(t,this))return!1;return!0},M.prototype.getUrl=function(t){const e=this.options.domain;return"/"===t[0]?"/"===t[1]?t=(e?e.split("://")[0]:"http")+":"+t:e&&(t=e+t):t.includes("data:")||t.includes("://")||e&&(t=e+"/"+t),t},M.prototype.parseStyle=function(t){const e=t.attrs,s=(this.tagStyle[t.name]||"").split(";").concat((e.style||"").split(";")),i={};let n="";e.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==t.name&&"a"!==t.name&&"video"!==t.name&&"audio"!==t.name&&(e.id=void 0)),e.width&&(i.width=parseFloat(e.width)+(e.width.includes("%")?"%":"px"),e.width=void 0),e.height&&(i.height=parseFloat(e.height)+(e.height.includes("%")?"%":"px"),e.height=void 0);for(let a=0,r=s.length;a0||r.includes("safe"))n+=`;${e}:${r}`;else if(!i[e]||r.includes("import")||!i[e].includes("import")){if(r.includes("url")){let t=r.indexOf("(")+1;if(t){for(;'"'===r[t]||"'"===r[t]||B[r[t]];)t++;r=r.substr(0,t)+this.getUrl(r.substr(t))}}else r.includes("rpx")&&(r=r.replace(/[0-9.]+\s*rpx/g,(t=>parseFloat(t)*F/750+"px")));i[e]=r}}return t.attrs.style=n,i},M.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1,z.ignoreTags.style=void 0)},M.prototype.onAttrName=function(t){(t=this.xml?t:t.toLowerCase()).includes("?")||t.includes(";")?this.attrName=void 0:"data-"===t.substr(0,5)?"data-src"!==t||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},M.prototype.onAttrVal=function(t){const e=this.attrName||"";"style"===e||"href"===e?this.attrs[e]=D(t,!0):e.includes("src")?this.attrs[e]=this.getUrl(D(t,!0)):e&&(this.attrs[e]=t)},M.prototype.onOpenTag=function(t){const e=Object.create(null);e.name=this.tagName,e.attrs=this.attrs,this.options.nodes.length&&(e.type="node"),this.attrs=Object.create(null);const s=e.attrs,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes,a=this.xml?t:z.voidTags[e.name];if(E[e.name]&&(s.class=E[e.name]+(s.class?" "+s.class:"")),"embed"===e.name&&this.expose(),"video"!==e.name&&"audio"!==e.name||("video"!==e.name||s.id||(s.id="v"+P++),s.controls||s.autoplay||(s.controls="T"),e.src=[],s.src&&(e.src.push(s.src),s.src=void 0),this.expose()),a){if(!this.hook(e)||z.ignoreTags[e.name])return void("base"!==e.name||this.options.domain?"source"===e.name&&i&&("video"===i.name||"audio"===i.name)&&s.src&&i.src.push(s.src):this.options.domain=s.href);const t=this.parseStyle(e);if("img"===e.name){if(s.src&&(s.src.includes("webp")&&(e.webp="T"),s.src.includes("data:")&&"all"!==this.options.previewImg&&!s["original-src"]&&(s.ignore="T"),!s.ignore||e.webp||s.src.includes("cloud://"))){for(let n=this.stack.length;n--;){const i=this.stack[n];"a"===i.name&&(e.a=i.attrs),"table"!==i.name||e.webp||s.src.includes("cloud://")||(!t.display||t.display.includes("inline")?e.t="inline-block":e.t=t.display,t.display=void 0),i.c=1}s.i=this.imgList.length.toString();let i=s["original-src"]||s.src;this.imgList.push(i),e.t||(this.imgList._unloadimgs+=1),this.options.lazyLoad&&(s["data-src"]=s.src,s.src=void 0)}"inline"===t.display&&(t.display=""),s.ignore&&(t["max-width"]=t["max-width"]||"100%",s.style+=";-webkit-touch-callout:none"),parseInt(t.width)>F&&(t.height=void 0),isNaN(parseInt(t.width))||(e.w="T"),!isNaN(parseInt(t.height))&&(!t.height.includes("%")||i&&(i.attrs.style||"").includes("height"))&&(e.h="T"),e.w&&e.h&&t["object-fit"]&&("contain"===t["object-fit"]?e.m="aspectFit":"cover"===t["object-fit"]&&(e.m="aspectFill"))}else if("svg"===e.name)return n.push(e),this.stack.push(e),void this.popNode();for(const e in t)t[e]&&(s.style+=`;${e}:${t[e].replace(" !important","")}`);s.style=s.style.substr(1)||void 0}else("pre"===e.name||(s.style||"").includes("white-space")&&s.style.includes("pre"))&&2!==this.pre&&(this.pre=e.pre=1),e.children=[],this.stack.push(e);n.push(e)},M.prototype.onCloseTag=function(t){let e;for(t=this.xml?t:t.toLowerCase(),e=this.stack.length;e--&&this.stack[e].name!==t;);if(-1!==e)for(;this.stack.length>e;)this.popNode();else if("p"===t||"br"===t){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:t,attrs:{class:E[t]||"",style:this.tagStyle[t]||""}})}},M.prototype.popNode=function(){const t=this.stack.pop();let e=t.attrs;const s=t.children,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes;if(!this.hook(t)||z.ignoreTags[t.name])return"title"===t.name&&s.length&&"text"===s[0].type&&this.options.setTitle&&N({title:s[0].text}),void n.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(let t=this.stack.length;t--;)this.stack[t].pre&&(this.pre=1)}const a={};if("svg"===t.name){if(this.xml>1)return void this.xml--;let s="";const i=e.style;return e.style="",e.xmlns="http://www.w3.org/2000/svg",function t(e){if("text"===e.type)return void(s+=e.text);const i=z.svgDict[e.name]||e.name;if("foreignObject"===i)for(const s of e.children||[])if(s.attrs&&!s.attrs.xmlns){s.attrs.xmlns="http://www.w3.org/1999/xhtml";break}s+="<"+i;for(const n in e.attrs){const t=e.attrs[n];t&&(s+=` ${z.svgDict[n]||n}="${t.replace(/"/g,"")}"`)}if(e.children){s+=">";for(let s=0;s"}else s+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+s.replace(/#/g,"%23"),style:i,ignore:"T"},t.children=void 0,this.xml=!1,void(z.ignoreTags.style=!0)}if(e.align&&("table"===t.name?"center"===e.align?a["margin-inline-start"]=a["margin-inline-end"]="auto":a.float=e.align:a["text-align"]=e.align,e.align=void 0),e.dir&&(a.direction=e.dir,e.dir=void 0),"font"===t.name&&(e.color&&(a.color=e.color,e.color=void 0),e.face&&(a["font-family"]=e.face,e.face=void 0),e.size)){let t=parseInt(e.size);isNaN(t)||(t<1?t=1:t>7&&(t=7),a["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][t-1]),e.size=void 0}if((e.class||"").includes("align-center")&&(a["text-align"]="center"),Object.assign(a,this.parseStyle(t)),"table"!==t.name&&parseInt(a.width)>F&&(a["max-width"]="100%",a["box-sizing"]="border-box"),z.blockTags[t.name]?t.name="div":z.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name||"iframe"===t.name)this.expose();else if("video"===t.name)(a.height||"").includes("auto")&&(a.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c)if("table"===t.name){let i=parseFloat(e.cellpadding),n=parseFloat(e.cellspacing);const r=parseFloat(e.border),o=a["border-color"],l=a["border-style"];if(t.c&&(isNaN(i)&&(i=2),isNaN(n)&&(n=2)),r&&(e.style+=`;border:${r}px ${l||"solid"} ${o||"gray"}`),t.flag&&t.c){a.display="grid","collapse"===a["border-collapse"]&&(a["border-collapse"]=void 0,n=0),n?(a["grid-gap"]=n+"px",a.padding=n+"px"):r&&(e.style+=";border-left:0;border-top:0");const h=[],c=[],d=[],p={};!function t(e){for(let s=0;s=50&&t.c&&!(a.display||"").includes("flex")&&U(s);for(const o in a)if(a[o]){const s=`;${o}:${a[o].replace(" !important","")}`;r&&(o.includes("flex")&&"flex-direction"!==o||"align-self"===o||o.includes("grid")||"-"===a[o][0]||o.includes("width")&&s.includes("%"))?(t.f+=s,"width"===o&&(e.style+=";width:100%")):e.style+=s}e.style=e.style.substr(1)||void 0},M.prototype.onText=function(t){if(!this.pre){let e,s="";for(let i=0,n=t.length;i"===this.content[this.i]||e&&">"===this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=e?2:1,this.start=this.i,this.handler.onOpenTag(e),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&t<="z"||t>="A"&&t<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===t||"!"===t||"?"===t){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const e=this.content[this.i+2];if("/"===t&&(e>="a"&&e<="z"||e>="A"&&e<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let s="--\x3e";"!"===t&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(s=">"),this.i=this.content.indexOf(s,this.i),-1!==this.i&&(this.i+=s.length,this.start=this.i)}else this.i++},Z.prototype.tagName=function(){if(B[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));B[this.content[++this.i]];);this.i"===t||"/"===t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==t&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const W=[];const G=a({name:"mp-html",data:()=>({nodes:[]}),props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},emits:["load","ready","imgtap","linktap","play","error"],components:{node:A},watch:{content(t){this.setContent(t)}},created(){this.plugins=[];for(let t=W.length;t--;)this.plugins.push(new W[t](this))},mounted(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy(){this._hook("onDetached")},methods:{in(t,e,s){t&&e&&s&&(this._in={page:t,selector:e,scrollTop:s})},navigateTo(t,e){return new Promise(((s,i)=>{if(!this.useAnchor)return void i(Error("Anchor is disabled"));e=e||parseInt(this.useAnchor)||0;const n=O().in(this._in?this._in.page:this).select((this._in?this._in.selector:"._root")+(t?` #${t}`:"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((t=>{if(!t[0])return void i(Error("Label not found"));const n=t[1].scrollTop+t[0].top-(t[2]?t[2].top:0)+e;this._in?this._in.page[this._in.scrollTop]=n:L({scrollTop:n,duration:300}),s()}))}))},getText(t){let e="";return function t(s){for(let i=0;i"0"&&n.name[1]<"7";s&&e&&"\n"!==e[e.length-1]&&(e+="\n"),n.children&&t(n.children),s&&"\n"!==e[e.length-1]?e+="\n":"td"!==n.name&&"th"!==n.name||(e+="\t")}}}(t||this.nodes),e},getRect(){return new Promise(((t,e)=>{O().in(this).select("#_root").boundingClientRect().exec((s=>s[0]?t(s[0]):e(Error("Root label not found"))))}))},pauseMedia(){for(let t=(this._videos||[]).length;t--;)this._videos[t].pause()},setPlaybackRate(t){this.playbackRate=t;for(let e=(this._videos||[]).length;e--;)this._videos[e].playbackRate(t)},setContent(t,e){e&&this.imgList||(this.imgList=[]);const s=new M(this).parse(t);if(this.$set(this,"nodes",e?(this.nodes||[]).concat(s):s),this._videos=[],this.$nextTick((()=>{this._hook("onLoad"),this.$emit("load")})),this.lazyLoad||this.imgList._unloadimgs{s&&s.height||(s={}),s.height===t?this.$emit("ready",s):(t=s.height,setTimeout((()=>{this.getRect().then(e).catch(e)}),350))};this.getRect().then(e).catch(e)}else this.imgList._unloadimgs||this.getRect().then((t=>{this.$emit("ready",t)})).catch((()=>{this.$emit("ready",{})}))},_hook(t){for(let e=W.length;e--;)this.plugins[e][t]&&this.plugins[e][t]()}}},[["render",function(t,e,s,i,n,a){const c=r("node"),d=w;return o(),l(d,{id:"_root",class:u((s.selectable?"_select ":"")+"_root"),style:m(s.containerStyle)},{default:h((()=>[n.nodes[0]?(o(),l(c,{key:1,childs:n.nodes,opts:[s.lazyLoad,s.loadingImg,s.errorImg,s.showImgMenu,s.selectable],name:"span"},null,8,["childs","opts"])):S(t.$slots,"default",{key:0},void 0,!0)])),_:3},8,["class","style"])}],["__scopeId","data-v-1899d781"]]);export{G as m}; +import{N as t,O as e,P as s,p as i,u as n,_ as a,Q as r,h as o,a as l,w as h,R as c,S as d,T as p,U as m,m as g,n as u,V as f,l as y,t as b,j as x,I as k,J as v,i as w,W as T,X as _,Y as $,L as N,Z as O,$ as L,a0 as S}from"./index-BWvsB30X.js";var I={abbr:!0,b:!0,big:!0,code:!0,del:!0,em:!0,i:!0,ins:!0,label:!0,q:!0,small:!0,span:!0,strong:!0,sub:!0,sup:!0};const C={isInline:function(t,e){return I[t]||-1!==(e||"").indexOf("display:inline")}},j=t=>{t.$wxs||(t.$wxs=[]),t.$wxs.push("handler"),t.mixins||(t.mixins=[]),t.mixins.push({beforeCreate(){this.handler=C}})},R={name:"node",options:{},data:()=>({ctrl:{},nodes:[]}),props:{name:String,attrs:{type:Object,default:()=>({})},childs:Array,opts:Array},watch:{childs:{handler(t){for(;this.nodes.length>t.length;)t.push({});this.nodes=t},immediate:!0}},components:{},mounted(){if(this.$nextTick((()=>{for(this.root=this.$parent;"mp-html"!==this.root.$options.name;this.root=this.root.$parent);})),this.opts[0]){let e;for(e=this.childs.length;e--&&"img"!==this.childs[e].name;);-1!==e&&(this.observer=t(this).relativeToViewport({top:500,bottom:500}),this.observer.observe("._img",(t=>{t.intersectionRatio&&(this.$set(this.ctrl,"load",1),this.observer.disconnect())})))}},beforeDestroy(){this.observer&&this.observer.disconnect()},methods:{play(t){const s=t.currentTarget.dataset.i,i=this.childs[s];if(this.root.$emit("play",{source:i.name,attrs:{...i.attrs,src:i.src[this.ctrl[s]||0]}}),this.root.pauseVideo){let s=!1;const i=t.target.id;for(let t=this.root._videos.length;t--;)this.root._videos[t].id===i?s=!0:this.root._videos[t].pause();if(!s){const t=e(i,this);t.id=i,this.root.playbackRate&&t.playbackRate(this.root.playbackRate),this.root._videos.push(t)}}},mediaEvent(t){const e=t.currentTarget.dataset.i,s=this.childs[e];this.root.$emit(t.type,{...t.detail,source:s.name,attrs:{...s.attrs,src:s.src[this.ctrl[e]||0]}})},imgTap(t){const e=this.childs[t.currentTarget.dataset.i];e.a?this.linkTap(e.a):e.attrs.ignore||(e.attrs.src=e.attrs.src||e.attrs["data-src"],this.root.$emit("imgtap",e.attrs),this.root.previewImg&&s({current:parseInt(e.attrs.i),urls:this.root.imgList}))},imgLongTap(t){},imgLoad(t){const e=t.currentTarget.dataset.i;(this.opts[1]&&!this.ctrl[e]||-1===this.ctrl[e])&&this.$set(this.ctrl,e,1),this.checkReady()},checkReady(){this.root&&!this.root.lazyLoad&&(this.root._unloadimgs-=1,this.root._unloadimgs||setTimeout((()=>{this.root.getRect().then((t=>{this.root.$emit("ready",t)})).catch((()=>{this.root.$emit("ready",{})}))}),350))},linkTap(t){const e=t.currentTarget?this.childs[t.currentTarget.dataset.i]:{},s=e.attrs||t,a=s.href;this.root.$emit("linktap",Object.assign({innerText:this.root.getText(e.children||[])},s)),a&&("#"===a[0]?this.root.navigateTo(a.substring(1)).catch((()=>{})):a.split("?")[0].includes("://")?this.root.copyLink&&window.open(a):i({url:a,fail(){n({url:a,fail(){}})}}))},mediaError(t){const e=t.currentTarget.dataset.i,s=this.childs[e];if("video"===s.name||"audio"===s.name){let t=(this.ctrl[e]||0)+1;if(t>s.src.length&&(t=0),t[(o(!0),c(d,null,p(n.nodes,((i,r)=>(o(),c(d,{key:r},["img"===i.name&&!i.t&&(s.opts[1]&&!n.ctrl[r]||n.ctrl[r]<0)?(o(),l($,{key:0,class:"_img",style:m(i.attrs.style),src:n.ctrl[r]<0?s.opts[2]:s.opts[1],mode:"widthFix"},null,8,["style","src"])):g("",!0),"img"===i.name?(o(),c("img",{key:1,id:i.attrs.id,class:u("_img "+i.attrs.class),style:m((-1===n.ctrl[r]?"display:none;":"")+i.attrs.style),src:i.attrs.src||(n.ctrl.load?i.attrs["data-src"]:""),"data-i":r,onLoad:e[0]||(e[0]=(...t)=>a.imgLoad&&a.imgLoad(...t)),onError:e[1]||(e[1]=(...t)=>a.mediaError&&a.mediaError(...t)),onClick:e[2]||(e[2]=f(((...t)=>a.imgTap&&a.imgTap(...t)),["stop"])),onLongpress:e[3]||(e[3]=(...t)=>a.imgLongTap&&a.imgLongTap(...t))},null,46,["id","src","data-i"])):i.text?(o(),l(N,{key:2,decode:""},{default:h((()=>[y(b(i.text),1)])),_:2},1024)):"br"===i.name?(o(),l(N,{key:3},{default:h((()=>[y(b("\n"))])),_:1})):"a"===i.name?(o(),l(L,{key:4,id:i.attrs.id,class:u((i.attrs.href?"_a ":"")+i.attrs.class),"hover-class":"_hover",style:m("display:inline;"+i.attrs.style),"data-i":r,onClick:f(a.linkTap,["stop"])},{default:h((()=>[x(O,{name:"span",childs:i.children,opts:s.opts,style:{display:"inherit"}},null,8,["childs","opts"])])),_:2},1032,["id","class","style","data-i","onClick"])):"video"===i.name?(o(),l(S,{key:5,id:i.attrs.id,class:u(i.attrs.class),style:m(i.attrs.style),autoplay:i.attrs.autoplay,controls:i.attrs.controls,loop:i.attrs.loop,muted:i.attrs.muted,"object-fit":i.attrs["object-fit"],poster:i.attrs.poster,src:i.src[n.ctrl[r]||0],"data-i":r,onPlay:a.play,onPause:a.mediaEvent,onFullscreenchange:a.mediaEvent,onError:a.mediaError},null,8,["id","class","style","autoplay","controls","loop","muted","object-fit","poster","src","data-i","onPlay","onPause","onFullscreenchange","onError"])):"iframe"===i.name?(o(),c("iframe",{key:6,style:m(i.attrs.style),allowfullscreen:i.attrs.allowfullscreen,frameborder:i.attrs.frameborder,src:i.attrs.src},null,12,["allowfullscreen","frameborder","src"])):"embed"===i.name?(o(),c("embed",{key:7,style:m(i.attrs.style),src:i.attrs.src},null,12,["src"])):"table"===i.name&&i.c||"li"===i.name?(o(),l(L,{key:8,id:i.attrs.id,class:u("_"+i.name+" "+i.attrs.class),style:m(i.attrs.style)},{default:h((()=>["li"===i.name?(o(),l(O,{key:0,childs:i.children,opts:s.opts},null,8,["childs","opts"])):(o(!0),c(d,{key:1},p(i.children,((t,e)=>(o(),l(L,{key:e,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>["td"===t.name||"th"===t.name?(o(),l(O,{key:0,childs:t.children,opts:s.opts},null,8,["childs","opts"])):(o(!0),c(d,{key:1},p(t.children,((t,e)=>(o(),c(d,{key:e},["td"===t.name||"th"===t.name?(o(),l(L,{key:0,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>[x(O,{childs:t.children,opts:s.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])):(o(),l(L,{key:1,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>[(o(!0),c(d,null,p(t.children,((t,e)=>(o(),l(L,{key:e,class:u("_"+t.name+" "+t.attrs.class),style:m(t.attrs.style)},{default:h((()=>[x(O,{childs:t.children,opts:s.opts},null,8,["childs","opts"])])),_:2},1032,["class","style"])))),128))])),_:2},1032,["class","style"]))],64)))),128))])),_:2},1032,["class","style"])))),128))])),_:2},1032,["id","class","style"])):i.c||t.handler.isInline(i.name,i.attrs.style)?2===i.c?(o(),l(L,{key:10,id:i.attrs.id,class:u("_block _"+i.name+" "+i.attrs.class),style:m(i.f+";"+i.attrs.style)},{default:h((()=>[(o(!0),c(d,null,p(i.children,((t,e)=>(o(),l(O,{key:e,style:m(t.f),name:t.name,attrs:t.attrs,childs:t.children,opts:s.opts},null,8,["style","name","attrs","childs","opts"])))),128))])),_:2},1032,["id","class","style"])):(o(),l(O,{key:11,style:m(i.f),name:i.name,attrs:i.attrs,childs:i.children,opts:s.opts},null,8,["style","name","attrs","childs","opts"])):(o(),l(I,{key:9,id:i.attrs.id,style:m(i.f),"user-select":s.opts[4],nodes:[i]},null,8,["id","style","user-select","nodes"]))],64)))),128))])),_:1},8,["id","class","style"])}],["__scopeId","data-v-fc5de137"]]),z={trustTags:q("a,abbr,ad,audio,b,blockquote,br,code,col,colgroup,dd,del,dl,dt,div,em,fieldset,h1,h2,h3,h4,h5,h6,hr,i,img,ins,label,legend,li,ol,p,q,ruby,rt,source,span,strong,sub,sup,table,tbody,td,tfoot,th,thead,tr,title,ul,video"),blockTags:q("address,article,aside,body,caption,center,cite,footer,header,html,nav,pre,section"),ignoreTags:q("area,base,canvas,embed,frame,head,iframe,input,link,map,meta,param,rp,script,source,style,textarea,title,track,wbr"),voidTags:q("area,base,br,col,circle,ellipse,embed,frame,hr,img,input,line,link,meta,param,path,polygon,rect,source,track,use,wbr"),entities:{lt:"<",gt:">",quot:'"',apos:"'",ensp:" ",emsp:" ",nbsp:" ",semi:";",ndash:"–",mdash:"—",middot:"·",lsquo:"‘",rsquo:"’",ldquo:"“",rdquo:"”",bull:"•",hellip:"…",larr:"←",uarr:"↑",rarr:"→",darr:"↓"},tagStyle:{address:"font-style:italic",big:"display:inline;font-size:1.2em",caption:"display:table-caption;text-align:center",center:"text-align:center",cite:"font-style:italic",dd:"margin-left:40px",mark:"background-color:yellow",pre:"font-family:monospace;white-space:pre",s:"text-decoration:line-through",small:"display:inline;font-size:0.8em",strike:"text-decoration:line-through",u:"text-decoration:underline"},svgDict:{animatetransform:"animateTransform",lineargradient:"linearGradient",viewbox:"viewBox",attributename:"attributeName",repeatcount:"repeatCount",repeatdur:"repeatDur",foreignobject:"foreignObject"}},E={};let F;const V=$();F=V.windowWidth;const B=q(" ,\r,\n,\t,\f");let P=0;function q(t){const e=Object.create(null),s=t.split(",");for(let i=s.length;i--;)e[s[i]]=!0;return e}function D(t,e){let s=t.indexOf("&");for(;-1!==s;){const i=t.indexOf(";",s+3);let n;if(-1===i)break;"#"===t[s+1]?(n=parseInt(("x"===t[s+2]?"0":"")+t.substring(s+2,i)),isNaN(n)||(t=t.substr(0,s)+String.fromCharCode(n)+t.substr(i+1))):(n=t.substring(s+1,i),(z.entities[n]||"amp"===n&&e)&&(t=t.substr(0,s)+(z.entities[n]||"&")+t.substr(i+1))),s=t.indexOf("&",s+1)}return t}function U(t){let e=t.length-1;for(let s=e;s>=-1;s--)(-1===s||t[s].c||!t[s].name||"div"!==t[s].name&&"p"!==t[s].name&&"h"!==t[s].name[0]||(t[s].attrs.style||"").includes("inline"))&&(e-s>=5&&t.splice(s+1,e-s,{name:"div",attrs:{},children:t.slice(s+1,e+1)}),e=s-1)}function M(t){this.options=t||{},this.tagStyle=Object.assign({},z.tagStyle,this.options.tagStyle),this.imgList=t.imgList||[],this.imgList._unloadimgs=0,this.plugins=t.plugins||[],this.attrs=Object.create(null),this.stack=[],this.nodes=[],this.pre=(this.options.containerStyle||"").includes("white-space")&&this.options.containerStyle.includes("pre")?2:0}function Z(t){this.handler=t}z.ignoreTags.iframe=void 0,z.trustTags.iframe=!0,z.ignoreTags.embed=void 0,z.trustTags.embed=!0,M.prototype.parse=function(t){for(let e=this.plugins.length;e--;)this.plugins[e].onUpdate&&(t=this.plugins[e].onUpdate(t,z)||t);for(new Z(this).parse(t);this.stack.length;)this.popNode();return this.nodes.length>50&&U(this.nodes),this.nodes},M.prototype.expose=function(){for(let t=this.stack.length;t--;){const e=this.stack[t];if(e.c||"a"===e.name||"video"===e.name||"audio"===e.name)return;e.c=1}},M.prototype.hook=function(t){for(let e=this.plugins.length;e--;)if(this.plugins[e].onParse&&!1===this.plugins[e].onParse(t,this))return!1;return!0},M.prototype.getUrl=function(t){const e=this.options.domain;return"/"===t[0]?"/"===t[1]?t=(e?e.split("://")[0]:"http")+":"+t:e&&(t=e+t):t.includes("data:")||t.includes("://")||e&&(t=e+"/"+t),t},M.prototype.parseStyle=function(t){const e=t.attrs,s=(this.tagStyle[t.name]||"").split(";").concat((e.style||"").split(";")),i={};let n="";e.id&&!this.xml&&(this.options.useAnchor?this.expose():"img"!==t.name&&"a"!==t.name&&"video"!==t.name&&"audio"!==t.name&&(e.id=void 0)),e.width&&(i.width=parseFloat(e.width)+(e.width.includes("%")?"%":"px"),e.width=void 0),e.height&&(i.height=parseFloat(e.height)+(e.height.includes("%")?"%":"px"),e.height=void 0);for(let a=0,r=s.length;a0||r.includes("safe"))n+=`;${e}:${r}`;else if(!i[e]||r.includes("import")||!i[e].includes("import")){if(r.includes("url")){let t=r.indexOf("(")+1;if(t){for(;'"'===r[t]||"'"===r[t]||B[r[t]];)t++;r=r.substr(0,t)+this.getUrl(r.substr(t))}}else r.includes("rpx")&&(r=r.replace(/[0-9.]+\s*rpx/g,(t=>parseFloat(t)*F/750+"px")));i[e]=r}}return t.attrs.style=n,i},M.prototype.onTagName=function(t){this.tagName=this.xml?t:t.toLowerCase(),"svg"===this.tagName&&(this.xml=(this.xml||0)+1,z.ignoreTags.style=void 0)},M.prototype.onAttrName=function(t){(t=this.xml?t:t.toLowerCase()).includes("?")||t.includes(";")?this.attrName=void 0:"data-"===t.substr(0,5)?"data-src"!==t||this.attrs.src?"img"===this.tagName||"a"===this.tagName?this.attrName=t:this.attrName=void 0:this.attrName="src":(this.attrName=t,this.attrs[t]="T")},M.prototype.onAttrVal=function(t){const e=this.attrName||"";"style"===e||"href"===e?this.attrs[e]=D(t,!0):e.includes("src")?this.attrs[e]=this.getUrl(D(t,!0)):e&&(this.attrs[e]=t)},M.prototype.onOpenTag=function(t){const e=Object.create(null);e.name=this.tagName,e.attrs=this.attrs,this.options.nodes.length&&(e.type="node"),this.attrs=Object.create(null);const s=e.attrs,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes,a=this.xml?t:z.voidTags[e.name];if(E[e.name]&&(s.class=E[e.name]+(s.class?" "+s.class:"")),"embed"===e.name&&this.expose(),"video"!==e.name&&"audio"!==e.name||("video"!==e.name||s.id||(s.id="v"+P++),s.controls||s.autoplay||(s.controls="T"),e.src=[],s.src&&(e.src.push(s.src),s.src=void 0),this.expose()),a){if(!this.hook(e)||z.ignoreTags[e.name])return void("base"!==e.name||this.options.domain?"source"===e.name&&i&&("video"===i.name||"audio"===i.name)&&s.src&&i.src.push(s.src):this.options.domain=s.href);const t=this.parseStyle(e);if("img"===e.name){if(s.src&&(s.src.includes("webp")&&(e.webp="T"),s.src.includes("data:")&&"all"!==this.options.previewImg&&!s["original-src"]&&(s.ignore="T"),!s.ignore||e.webp||s.src.includes("cloud://"))){for(let n=this.stack.length;n--;){const i=this.stack[n];"a"===i.name&&(e.a=i.attrs),"table"!==i.name||e.webp||s.src.includes("cloud://")||(!t.display||t.display.includes("inline")?e.t="inline-block":e.t=t.display,t.display=void 0),i.c=1}s.i=this.imgList.length.toString();let i=s["original-src"]||s.src;this.imgList.push(i),e.t||(this.imgList._unloadimgs+=1),this.options.lazyLoad&&(s["data-src"]=s.src,s.src=void 0)}"inline"===t.display&&(t.display=""),s.ignore&&(t["max-width"]=t["max-width"]||"100%",s.style+=";-webkit-touch-callout:none"),parseInt(t.width)>F&&(t.height=void 0),isNaN(parseInt(t.width))||(e.w="T"),!isNaN(parseInt(t.height))&&(!t.height.includes("%")||i&&(i.attrs.style||"").includes("height"))&&(e.h="T"),e.w&&e.h&&t["object-fit"]&&("contain"===t["object-fit"]?e.m="aspectFit":"cover"===t["object-fit"]&&(e.m="aspectFill"))}else if("svg"===e.name)return n.push(e),this.stack.push(e),void this.popNode();for(const e in t)t[e]&&(s.style+=`;${e}:${t[e].replace(" !important","")}`);s.style=s.style.substr(1)||void 0}else("pre"===e.name||(s.style||"").includes("white-space")&&s.style.includes("pre"))&&2!==this.pre&&(this.pre=e.pre=1),e.children=[],this.stack.push(e);n.push(e)},M.prototype.onCloseTag=function(t){let e;for(t=this.xml?t:t.toLowerCase(),e=this.stack.length;e--&&this.stack[e].name!==t;);if(-1!==e)for(;this.stack.length>e;)this.popNode();else if("p"===t||"br"===t){(this.stack.length?this.stack[this.stack.length-1].children:this.nodes).push({name:t,attrs:{class:E[t]||"",style:this.tagStyle[t]||""}})}},M.prototype.popNode=function(){const t=this.stack.pop();let e=t.attrs;const s=t.children,i=this.stack[this.stack.length-1],n=i?i.children:this.nodes;if(!this.hook(t)||z.ignoreTags[t.name])return"title"===t.name&&s.length&&"text"===s[0].type&&this.options.setTitle&&N({title:s[0].text}),void n.pop();if(t.pre&&2!==this.pre){this.pre=t.pre=void 0;for(let t=this.stack.length;t--;)this.stack[t].pre&&(this.pre=1)}const a={};if("svg"===t.name){if(this.xml>1)return void this.xml--;let s="";const i=e.style;return e.style="",e.xmlns="http://www.w3.org/2000/svg",function t(e){if("text"===e.type)return void(s+=e.text);const i=z.svgDict[e.name]||e.name;if("foreignObject"===i)for(const s of e.children||[])if(s.attrs&&!s.attrs.xmlns){s.attrs.xmlns="http://www.w3.org/1999/xhtml";break}s+="<"+i;for(const n in e.attrs){const t=e.attrs[n];t&&(s+=` ${z.svgDict[n]||n}="${t.replace(/"/g,"")}"`)}if(e.children){s+=">";for(let s=0;s"}else s+="/>"}(t),t.name="img",t.attrs={src:"data:image/svg+xml;utf8,"+s.replace(/#/g,"%23"),style:i,ignore:"T"},t.children=void 0,this.xml=!1,void(z.ignoreTags.style=!0)}if(e.align&&("table"===t.name?"center"===e.align?a["margin-inline-start"]=a["margin-inline-end"]="auto":a.float=e.align:a["text-align"]=e.align,e.align=void 0),e.dir&&(a.direction=e.dir,e.dir=void 0),"font"===t.name&&(e.color&&(a.color=e.color,e.color=void 0),e.face&&(a["font-family"]=e.face,e.face=void 0),e.size)){let t=parseInt(e.size);isNaN(t)||(t<1?t=1:t>7&&(t=7),a["font-size"]=["x-small","small","medium","large","x-large","xx-large","xxx-large"][t-1]),e.size=void 0}if((e.class||"").includes("align-center")&&(a["text-align"]="center"),Object.assign(a,this.parseStyle(t)),"table"!==t.name&&parseInt(a.width)>F&&(a["max-width"]="100%",a["box-sizing"]="border-box"),z.blockTags[t.name]?t.name="div":z.trustTags[t.name]||this.xml||(t.name="span"),"a"===t.name||"ad"===t.name||"iframe"===t.name)this.expose();else if("video"===t.name)(a.height||"").includes("auto")&&(a.height=void 0);else if("ul"!==t.name&&"ol"!==t.name||!t.c)if("table"===t.name){let i=parseFloat(e.cellpadding),n=parseFloat(e.cellspacing);const r=parseFloat(e.border),o=a["border-color"],l=a["border-style"];if(t.c&&(isNaN(i)&&(i=2),isNaN(n)&&(n=2)),r&&(e.style+=`;border:${r}px ${l||"solid"} ${o||"gray"}`),t.flag&&t.c){a.display="grid","collapse"===a["border-collapse"]&&(a["border-collapse"]=void 0,n=0),n?(a["grid-gap"]=n+"px",a.padding=n+"px"):r&&(e.style+=";border-left:0;border-top:0");const h=[],c=[],d=[],p={};!function t(e){for(let s=0;s=50&&t.c&&!(a.display||"").includes("flex")&&U(s);for(const o in a)if(a[o]){const s=`;${o}:${a[o].replace(" !important","")}`;r&&(o.includes("flex")&&"flex-direction"!==o||"align-self"===o||o.includes("grid")||"-"===a[o][0]||o.includes("width")&&s.includes("%"))?(t.f+=s,"width"===o&&(e.style+=";width:100%")):e.style+=s}e.style=e.style.substr(1)||void 0},M.prototype.onText=function(t){if(!this.pre){let e,s="";for(let i=0,n=t.length;i"===this.content[this.i]||e&&">"===this.content[this.i+1])&&(t&&this.handler[t](this.content.substring(this.start,this.i)),this.i+=e?2:1,this.start=this.i,this.handler.onOpenTag(e),"script"===this.handler.tagName?(this.i=this.content.indexOf("="a"&&t<="z"||t>="A"&&t<="Z")this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i)),this.start=++this.i,this.state=this.tagName;else if("/"===t||"!"===t||"?"===t){this.start!==this.i&&this.handler.onText(this.content.substring(this.start,this.i));const e=this.content[this.i+2];if("/"===t&&(e>="a"&&e<="z"||e>="A"&&e<="Z"))return this.i+=2,this.start=this.i,void(this.state=this.endTag);let s="--\x3e";"!"===t&&"-"===this.content[this.i+2]&&"-"===this.content[this.i+3]||(s=">"),this.i=this.content.indexOf(s,this.i),-1!==this.i&&(this.i+=s.length,this.start=this.i)}else this.i++},Z.prototype.tagName=function(){if(B[this.content[this.i]]){for(this.handler.onTagName(this.content.substring(this.start,this.i));B[this.content[++this.i]];);this.i"===t||"/"===t){if(this.handler.onCloseTag(this.content.substring(this.start,this.i)),">"!==t&&(this.i=this.content.indexOf(">",this.i),-1===this.i))return;this.start=++this.i,this.state=this.text}else this.i++};const W=[];const G=a({name:"mp-html",data:()=>({nodes:[]}),props:{containerStyle:{type:String,default:""},content:{type:String,default:""},copyLink:{type:[Boolean,String],default:!0},domain:String,errorImg:{type:String,default:""},lazyLoad:{type:[Boolean,String],default:!1},loadingImg:{type:String,default:""},pauseVideo:{type:[Boolean,String],default:!0},previewImg:{type:[Boolean,String],default:!0},scrollTable:[Boolean,String],selectable:[Boolean,String],setTitle:{type:[Boolean,String],default:!0},showImgMenu:{type:[Boolean,String],default:!0},tagStyle:Object,useAnchor:[Boolean,Number]},emits:["load","ready","imgtap","linktap","play","error"],components:{node:A},watch:{content(t){this.setContent(t)}},created(){this.plugins=[];for(let t=W.length;t--;)this.plugins.push(new W[t](this))},mounted(){this.content&&!this.nodes.length&&this.setContent(this.content)},beforeDestroy(){this._hook("onDetached")},methods:{in(t,e,s){t&&e&&s&&(this._in={page:t,selector:e,scrollTop:s})},navigateTo(t,e){return new Promise(((s,i)=>{if(!this.useAnchor)return void i(Error("Anchor is disabled"));e=e||parseInt(this.useAnchor)||0;const n=O().in(this._in?this._in.page:this).select((this._in?this._in.selector:"._root")+(t?` #${t}`:"")).boundingClientRect();this._in?n.select(this._in.selector).scrollOffset().select(this._in.selector).boundingClientRect():n.selectViewport().scrollOffset(),n.exec((t=>{if(!t[0])return void i(Error("Label not found"));const n=t[1].scrollTop+t[0].top-(t[2]?t[2].top:0)+e;this._in?this._in.page[this._in.scrollTop]=n:L({scrollTop:n,duration:300}),s()}))}))},getText(t){let e="";return function t(s){for(let i=0;i"0"&&n.name[1]<"7";s&&e&&"\n"!==e[e.length-1]&&(e+="\n"),n.children&&t(n.children),s&&"\n"!==e[e.length-1]?e+="\n":"td"!==n.name&&"th"!==n.name||(e+="\t")}}}(t||this.nodes),e},getRect(){return new Promise(((t,e)=>{O().in(this).select("#_root").boundingClientRect().exec((s=>s[0]?t(s[0]):e(Error("Root label not found"))))}))},pauseMedia(){for(let t=(this._videos||[]).length;t--;)this._videos[t].pause()},setPlaybackRate(t){this.playbackRate=t;for(let e=(this._videos||[]).length;e--;)this._videos[e].playbackRate(t)},setContent(t,e){e&&this.imgList||(this.imgList=[]);const s=new M(this).parse(t);if(this.$set(this,"nodes",e?(this.nodes||[]).concat(s):s),this._videos=[],this.$nextTick((()=>{this._hook("onLoad"),this.$emit("load")})),this.lazyLoad||this.imgList._unloadimgs{s&&s.height||(s={}),s.height===t?this.$emit("ready",s):(t=s.height,setTimeout((()=>{this.getRect().then(e).catch(e)}),350))};this.getRect().then(e).catch(e)}else this.imgList._unloadimgs||this.getRect().then((t=>{this.$emit("ready",t)})).catch((()=>{this.$emit("ready",{})}))},_hook(t){for(let e=W.length;e--;)this.plugins[e][t]&&this.plugins[e][t]()}}},[["render",function(t,e,s,i,n,a){const c=r("node"),d=w;return o(),l(d,{id:"_root",class:u((s.selectable?"_select ":"")+"_root"),style:m(s.containerStyle)},{default:h((()=>[n.nodes[0]?(o(),l(c,{key:1,childs:n.nodes,opts:[s.lazyLoad,s.loadingImg,s.errorImg,s.showImgMenu,s.selectable],name:"span"},null,8,["childs","opts"])):S(t.$slots,"default",{key:0},void 0,!0)])),_:3},8,["class","style"])}],["__scopeId","data-v-1899d781"]]);export{G as m}; diff --git a/assets/myinfo-B2RPLYA3.css b/assets/myinfo-B2RPLYA3.css new file mode 100644 index 0000000..4e50cc8 --- /dev/null +++ b/assets/myinfo-B2RPLYA3.css @@ -0,0 +1 @@ +.picker-wrap[data-v-9f38eb13]{height:70vh;display:flex;flex-direction:column}.picker-header[data-v-9f38eb13]{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem;border-bottom:.03125rem solid #f0f0f0}.picker-title[data-v-9f38eb13]{font-size:1rem;font-weight:600;color:#333}.tab-bar[data-v-9f38eb13]{display:flex;padding:.625rem 1rem;gap:.75rem;border-bottom:.03125rem solid #f0f0f0;flex-wrap:wrap}.tab-item[data-v-9f38eb13]{font-size:.8125rem;color:#999;padding-bottom:.375rem;position:relative;max-width:7.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-item.active[data-v-9f38eb13]{color:#f70;font-weight:500}.tab-item.active[data-v-9f38eb13]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:.125rem;background:#f70;border-radius:.0625rem}.search-bar[data-v-9f38eb13]{padding:.5rem 1rem;border-bottom:.03125rem solid #f0f0f0}.list-wrap[data-v-9f38eb13]{flex:1;overflow:hidden}.list-item[data-v-9f38eb13]{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem;font-size:.875rem;color:#333;border-bottom:.03125rem solid #f8f8f8}.list-item.selected[data-v-9f38eb13]{color:#f70;background:#fff8f0}.hospital-result[data-v-9f38eb13]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.hospital-name[data-v-9f38eb13]{font-size:.875rem;color:#333}.hospital-region[data-v-9f38eb13]{font-size:.6875rem;color:#999}.page[data-v-f6330c5f]{min-height:100vh;background:#f4f4f5;padding:.75rem .75rem 10.625rem}.section[data-v-f6330c5f]{background:#fff;border-radius:.3125rem;padding:1rem;margin-bottom:.75rem;border:.03125rem solid #ebeef5}.reject-tip[data-v-f6330c5f]{display:flex;align-items:flex-start;padding:.75rem .875rem;background:#fff2f0;border:.03125rem solid #ffccc7;border-radius:.3125rem;margin-bottom:.75rem}.reject-tip .reject-text[data-v-f6330c5f]{flex:1;font-size:.8125rem;color:#f5222d;margin-left:.5rem;line-height:1.5}.section-title[data-v-f6330c5f]{display:flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:600;color:#333;margin-bottom:.875rem}.form-group[data-v-f6330c5f]{padding:.625rem 0;border-bottom:.03125rem solid #f0f0f0}.form-group[data-v-f6330c5f]:last-child{border-bottom:none}.info-compact[data-v-f6330c5f]{padding-bottom:.625rem;border-bottom:.03125rem solid #f0f0f0}.info-compact-row[data-v-f6330c5f]{display:flex;gap:1rem;margin-bottom:.375rem}.info-compact-row[data-v-f6330c5f]:last-child{margin-bottom:0}.info-compact-item[data-v-f6330c5f]{font-size:.8125rem;color:#666}.form-label[data-v-f6330c5f]{font-size:.875rem;color:#555;margin-bottom:.5rem;display:block}.readonly-input[data-v-f6330c5f]{padding:.625rem .75rem;background:#f5f5f5;border:.03125rem solid #ddd;border-radius:.375rem;font-size:.875rem;color:#333}.gender-row[data-v-f6330c5f]{display:flex;gap:.625rem}.gender-item[data-v-f6330c5f]{flex:1;text-align:center;padding:.5rem 0;border:.03125rem solid #ddd;border-radius:.25rem;font-size:.875rem;color:#333}.gender-item.active[data-v-f6330c5f]{border-color:#0e63e3;color:#0e63e3;background:rgba(14,99,227,.05)}.gender-item.disabled[data-v-f6330c5f]{color:#909399;background:#f5f7fa}.region-row[data-v-f6330c5f]{display:flex;align-items:center;justify-content:space-between;padding:.625rem .75rem;border:.03125rem solid #ddd;border-radius:.25rem}.region-row.disabled[data-v-f6330c5f]{background:#f5f7fa}.region-text[data-v-f6330c5f]{font-size:.875rem;color:#333}.region-text.placeholder[data-v-f6330c5f]{color:#c0c4cc}.arrow[data-v-f6330c5f]{font-size:.875rem;color:#c0c4cc}.contact-row[data-v-f6330c5f]{display:flex;gap:.5rem}.contact-input[data-v-f6330c5f]{flex:1}.upload-tip[data-v-f6330c5f]{font-size:.8125rem;color:#888;line-height:1.6;margin-bottom:.625rem}.upload-row[data-v-f6330c5f]{display:flex;gap:.5rem;flex-wrap:wrap}.upload-item[data-v-f6330c5f]{position:relative;width:5.625rem;height:5.625rem}.upload-img[data-v-f6330c5f]{width:5.625rem;height:5.625rem;border-radius:.25rem;border:.03125rem solid #eee}.upload-del[data-v-f6330c5f]{position:absolute;top:-.3125rem;right:-.3125rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.5);color:#fff;border-radius:50%;font-size:.75rem;display:flex;align-items:center;justify-content:center}.upload-box[data-v-f6330c5f]{width:5.625rem;height:5.625rem;border:.0625rem dashed #ccc;border-radius:.25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fafafa}.upload-icon[data-v-f6330c5f]{font-size:1.75rem;color:#ccc}.upload-text[data-v-f6330c5f]{font-size:.6875rem;color:#999;margin-top:.125rem}.sign-item[data-v-f6330c5f]{display:flex;align-items:center;justify-content:space-between;padding:.875rem 0;border-bottom:.03125rem solid #f0f0f0}.sign-item[data-v-f6330c5f]:last-child{border-bottom:none}.sign-left[data-v-f6330c5f]{display:flex;flex-direction:column;gap:.25rem}.sign-name[data-v-f6330c5f]{font-size:.875rem;color:#333}.sign-status[data-v-f6330c5f]{font-size:.75rem;color:#f5222d}.sign-status.signed[data-v-f6330c5f]{color:#52c41a}.sign-btns[data-v-f6330c5f]{display:flex;gap:.375rem;flex-shrink:0}.sign-btn[data-v-f6330c5f]{padding:.3125rem .875rem;border-radius:.875rem;font-size:.75rem;text-align:center;flex-shrink:0}.sign-btn.primary[data-v-f6330c5f]{background:#0e63e3;color:#fff}.sign-btn.view[data-v-f6330c5f]{background:#f0f5ff;color:#0e63e3;border:.03125rem solid #d0e0ff}.sign-btn.resign[data-v-f6330c5f]{background:#fff7e6;color:#fa8c16;border:.03125rem solid #ffe7ba}.sign-btn[data-v-f6330c5f]:active{opacity:.7}.btn-wrap[data-v-f6330c5f]{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:.625rem 1rem;padding-bottom:calc(.625rem + env(safe-area-inset-bottom));box-shadow:0 -.125rem .5rem rgba(0,0,0,.06);z-index:100}.agree-row[data-v-f6330c5f]{display:flex;align-items:center;margin-bottom:.5rem;padding-left:.125rem}.agree-text[data-v-f6330c5f]{font-size:.75rem;color:#666;margin-left:.25rem}.agree-link[data-v-f6330c5f]{font-size:.75rem;color:#0e63e3}.confirm-popup[data-v-f6330c5f]{padding:1.5rem 1.25rem 1.25rem;width:17.5rem}.confirm-title[data-v-f6330c5f]{font-size:1.0625rem;font-weight:600;color:#333;text-align:center;margin-bottom:.875rem}.confirm-content[data-v-f6330c5f]{font-size:.875rem;color:#666;line-height:1.7;text-align:center;margin-bottom:1.25rem}.confirm-btns[data-v-f6330c5f]{display:flex;gap:.75rem} diff --git a/assets/myinfo-BiJ6OEVj.css b/assets/myinfo-BiJ6OEVj.css deleted file mode 100644 index f15924e..0000000 --- a/assets/myinfo-BiJ6OEVj.css +++ /dev/null @@ -1 +0,0 @@ -.picker-wrap[data-v-9f38eb13]{height:70vh;display:flex;flex-direction:column}.picker-header[data-v-9f38eb13]{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem;border-bottom:.03125rem solid #f0f0f0}.picker-title[data-v-9f38eb13]{font-size:1rem;font-weight:600;color:#333}.tab-bar[data-v-9f38eb13]{display:flex;padding:.625rem 1rem;gap:.75rem;border-bottom:.03125rem solid #f0f0f0;flex-wrap:wrap}.tab-item[data-v-9f38eb13]{font-size:.8125rem;color:#999;padding-bottom:.375rem;position:relative;max-width:7.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tab-item.active[data-v-9f38eb13]{color:#f70;font-weight:500}.tab-item.active[data-v-9f38eb13]:after{content:"";position:absolute;bottom:0;left:0;right:0;height:.125rem;background:#f70;border-radius:.0625rem}.search-bar[data-v-9f38eb13]{padding:.5rem 1rem;border-bottom:.03125rem solid #f0f0f0}.list-wrap[data-v-9f38eb13]{flex:1;overflow:hidden}.list-item[data-v-9f38eb13]{display:flex;align-items:center;justify-content:space-between;padding:.875rem 1rem;font-size:.875rem;color:#333;border-bottom:.03125rem solid #f8f8f8}.list-item.selected[data-v-9f38eb13]{color:#f70;background:#fff8f0}.hospital-result[data-v-9f38eb13]{display:flex;flex-direction:column;gap:.25rem;min-width:0}.hospital-name[data-v-9f38eb13]{font-size:.875rem;color:#333}.hospital-region[data-v-9f38eb13]{font-size:.6875rem;color:#999}.page[data-v-11b8fe6e]{min-height:100vh;background:#f4f4f5;padding:.75rem .75rem 10.625rem}.section[data-v-11b8fe6e]{background:#fff;border-radius:.3125rem;padding:1rem;margin-bottom:.75rem;border:.03125rem solid #ebeef5}.reject-tip[data-v-11b8fe6e]{display:flex;align-items:flex-start;padding:.75rem .875rem;background:#fff2f0;border:.03125rem solid #ffccc7;border-radius:.3125rem;margin-bottom:.75rem}.reject-tip .reject-text[data-v-11b8fe6e]{flex:1;font-size:.8125rem;color:#f5222d;margin-left:.5rem;line-height:1.5}.section-title[data-v-11b8fe6e]{display:flex;align-items:center;gap:.375rem;font-size:1rem;font-weight:600;color:#333;margin-bottom:.875rem}.form-group[data-v-11b8fe6e]{padding:.625rem 0;border-bottom:.03125rem solid #f0f0f0}.form-group[data-v-11b8fe6e]:last-child{border-bottom:none}.info-compact[data-v-11b8fe6e]{padding-bottom:.625rem;border-bottom:.03125rem solid #f0f0f0}.info-compact-row[data-v-11b8fe6e]{display:flex;gap:1rem;margin-bottom:.375rem}.info-compact-row[data-v-11b8fe6e]:last-child{margin-bottom:0}.info-compact-item[data-v-11b8fe6e]{font-size:.8125rem;color:#666}.form-label[data-v-11b8fe6e]{font-size:.875rem;color:#555;margin-bottom:.5rem;display:block}.readonly-input[data-v-11b8fe6e]{padding:.625rem .75rem;background:#f5f5f5;border:.03125rem solid #ddd;border-radius:.375rem;font-size:.875rem;color:#333}.gender-row[data-v-11b8fe6e]{display:flex;gap:.625rem}.gender-item[data-v-11b8fe6e]{flex:1;text-align:center;padding:.5rem 0;border:.03125rem solid #ddd;border-radius:.25rem;font-size:.875rem;color:#333}.gender-item.active[data-v-11b8fe6e]{border-color:#0e63e3;color:#0e63e3;background:rgba(14,99,227,.05)}.region-row[data-v-11b8fe6e]{display:flex;align-items:center;justify-content:space-between;padding:.625rem .75rem;border:.03125rem solid #ddd;border-radius:.25rem}.region-text[data-v-11b8fe6e]{font-size:.875rem;color:#333}.region-text.placeholder[data-v-11b8fe6e]{color:#c0c4cc}.arrow[data-v-11b8fe6e]{font-size:.875rem;color:#c0c4cc}.contact-row[data-v-11b8fe6e]{display:flex;gap:.5rem}.contact-input[data-v-11b8fe6e]{flex:1}.upload-tip[data-v-11b8fe6e]{font-size:.8125rem;color:#888;line-height:1.6;margin-bottom:.625rem}.upload-row[data-v-11b8fe6e]{display:flex;gap:.5rem;flex-wrap:wrap}.upload-item[data-v-11b8fe6e]{position:relative;width:5.625rem;height:5.625rem}.upload-img[data-v-11b8fe6e]{width:5.625rem;height:5.625rem;border-radius:.25rem;border:.03125rem solid #eee}.upload-del[data-v-11b8fe6e]{position:absolute;top:-.3125rem;right:-.3125rem;width:1.25rem;height:1.25rem;background:rgba(0,0,0,.5);color:#fff;border-radius:50%;font-size:.75rem;display:flex;align-items:center;justify-content:center}.upload-box[data-v-11b8fe6e]{width:5.625rem;height:5.625rem;border:.0625rem dashed #ccc;border-radius:.25rem;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fafafa}.upload-icon[data-v-11b8fe6e]{font-size:1.75rem;color:#ccc}.upload-text[data-v-11b8fe6e]{font-size:.6875rem;color:#999;margin-top:.125rem}.sign-item[data-v-11b8fe6e]{display:flex;align-items:center;justify-content:space-between;padding:.875rem 0;border-bottom:.03125rem solid #f0f0f0}.sign-item[data-v-11b8fe6e]:last-child{border-bottom:none}.sign-left[data-v-11b8fe6e]{display:flex;flex-direction:column;gap:.25rem}.sign-name[data-v-11b8fe6e]{font-size:.875rem;color:#333}.sign-status[data-v-11b8fe6e]{font-size:.75rem;color:#f5222d}.sign-status.signed[data-v-11b8fe6e]{color:#52c41a}.sign-btns[data-v-11b8fe6e]{display:flex;gap:.375rem;flex-shrink:0}.sign-btn[data-v-11b8fe6e]{padding:.3125rem .875rem;border-radius:.875rem;font-size:.75rem;text-align:center;flex-shrink:0}.sign-btn.primary[data-v-11b8fe6e]{background:#0e63e3;color:#fff}.sign-btn.view[data-v-11b8fe6e]{background:#f0f5ff;color:#0e63e3;border:.03125rem solid #d0e0ff}.sign-btn.resign[data-v-11b8fe6e]{background:#fff7e6;color:#fa8c16;border:.03125rem solid #ffe7ba}.sign-btn[data-v-11b8fe6e]:active{opacity:.7}.btn-wrap[data-v-11b8fe6e]{position:fixed;bottom:0;left:0;right:0;background:#fff;padding:.625rem 1rem;padding-bottom:calc(.625rem + env(safe-area-inset-bottom));box-shadow:0 -.125rem .5rem rgba(0,0,0,.06);z-index:100}.agree-row[data-v-11b8fe6e]{display:flex;align-items:center;margin-bottom:.5rem;padding-left:.125rem}.agree-text[data-v-11b8fe6e]{font-size:.75rem;color:#666;margin-left:.25rem}.agree-link[data-v-11b8fe6e]{font-size:.75rem;color:#0e63e3}.confirm-popup[data-v-11b8fe6e]{padding:1.5rem 1.25rem 1.25rem;width:17.5rem}.confirm-title[data-v-11b8fe6e]{font-size:1.0625rem;font-weight:600;color:#333;text-align:center;margin-bottom:.875rem}.confirm-content[data-v-11b8fe6e]{font-size:.875rem;color:#666;line-height:1.7;text-align:center;margin-bottom:1.25rem}.confirm-btns[data-v-11b8fe6e]{display:flex;gap:.75rem} diff --git a/assets/pages-change-phone-change-phone.8e8zFjnI.js b/assets/pages-change-phone-change-phone.DXBpVM3_.js similarity index 98% rename from assets/pages-change-phone-change-phone.8e8zFjnI.js rename to assets/pages-change-phone-change-phone.DXBpVM3_.js index 35c0389..b3983a0 100644 --- a/assets/pages-change-phone-change-phone.8e8zFjnI.js +++ b/assets/pages-change-phone-change-phone.DXBpVM3_.js @@ -1 +1 @@ -import{_ as e,r as l,c as a,o as t,e as s,y as u,z as o,a as n,w as c,i,a7 as d,a3 as r,h as m,j as v,l as p,t as f,C as b,G as _,b as h,f as g,a5 as y,J as x}from"./index-It-40-XE.js";const w=e({__name:"change-phone",setup(e){const w=l(""),V=l({mobile:"",code:""}),z=l(0),C=l(!1);let E=null;const $=a((()=>w.value&&11===w.value.length?w.value.slice(0,3)+" **** "+w.value.slice(-4):w.value||"")),k=a((()=>z.value>0?`${z.value}s后重新获取`:"获取验证码"));t((()=>{const e=s();w.value=e&&e.patient&&e.patient.phone||""}));const I=async()=>{if(!(z.value>0)){if(!V.value.mobile||!/^1[3-9]\d{9}$/.test(V.value.mobile))return b({title:"请输入正确的手机号",icon:"none"});if(V.value.mobile===w.value)return b({title:"新手机号不能与当前手机号相同",icon:"none"});try{await _("/api/mp/sendSmsCode",{mobile:V.value.mobile,bizType:"change_phone"}),b({title:"验证码已发送",icon:"success"}),z.value=60,E=setInterval((()=>{z.value--,z.value<=0&&(clearInterval(E),E=null)}),1e3)}catch(e){e&&e.msg&&b({title:e.msg,icon:"none"})}}},S=async()=>{if(!V.value.mobile||!/^1[3-9]\d{9}$/.test(V.value.mobile))return b({title:"请输入正确的手机号",icon:"none"});if(!V.value.code||!/^\d{6}$/.test(V.value.code))return b({title:"请输入6位验证码",icon:"none"});C.value=!0;try{await _("/api/mp/changePhone",{mobile:V.value.mobile,code:V.value.code});const e=await h("/api/mp/userinfo");g(e.data),b({title:"修改成功",icon:"success"}),setTimeout((()=>y()),1500)}catch(e){e&&e.msg&&b({title:e.msg,icon:"none"})}finally{C.value=!1}};return(e,l)=>{const a=i,t=x,s=u(o("u-input"),d),b=u(o("u-button"),r);return m(),n(a,{class:"page"},{default:c((()=>[v(a,{class:"current-phone"},{default:c((()=>[v(a,{class:"label"},{default:c((()=>[p("当前绑定手机号")])),_:1}),v(a,{class:"phone"},{default:c((()=>[p(f(w.value?$.value:"未绑定"),1)])),_:1})])),_:1}),v(a,{class:"step-card"},{default:c((()=>[v(a,{class:"card-title"},{default:c((()=>[p("绑定新手机号")])),_:1}),v(a,{class:"form-group"},{default:c((()=>[v(t,{class:"form-label"},{default:c((()=>[v(t,{class:"required"},{default:c((()=>[p("*")])),_:1}),p(" 新手机号")])),_:1}),v(s,{modelValue:V.value.mobile,"onUpdate:modelValue":l[0]||(l[0]=e=>V.value.mobile=e),type:"number",placeholder:"请输入新手机号",maxlength:"11",border:"surround"},null,8,["modelValue"])])),_:1}),v(a,{class:"form-group"},{default:c((()=>[v(t,{class:"form-label"},{default:c((()=>[v(t,{class:"required"},{default:c((()=>[p("*")])),_:1}),p(" 验证码")])),_:1}),v(a,{class:"code-row"},{default:c((()=>[v(a,{class:"code-input"},{default:c((()=>[v(s,{modelValue:V.value.code,"onUpdate:modelValue":l[1]||(l[1]=e=>V.value.code=e),type:"number",placeholder:"请输入验证码",maxlength:"6",border:"surround"},null,8,["modelValue"])])),_:1}),v(b,{disabled:!!z.value,text:k.value,size:"normal",onClick:I,color:"#0E63E3",customStyle:{width:"240rpx",flexShrink:0}},null,8,["disabled","text"])])),_:1})])),_:1})])),_:1}),v(a,{class:"btn-wrap"},{default:c((()=>[v(b,{text:"确认修改",loading:C.value,onClick:S,color:"#0E63E3",size:"large"},null,8,["loading"])])),_:1}),v(a,{class:"tips"},{default:c((()=>[v(a,{class:"tips-title"},{default:c((()=>[p("温馨提示")])),_:1}),v(a,{class:"tips-list"},{default:c((()=>[v(a,{class:"tips-item"},{default:c((()=>[p("修改手机号后,后续相关短信通知将发送到新手机号")])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-703dfc99"]]);export{w as default}; +import{_ as e,r as l,c as a,o as t,e as s,y as u,z as o,a as n,w as c,i,a7 as d,a3 as r,h as m,j as v,l as p,t as f,C as b,G as _,b as h,f as g,a5 as y,J as x}from"./index-BWvsB30X.js";const w=e({__name:"change-phone",setup(e){const w=l(""),V=l({mobile:"",code:""}),z=l(0),C=l(!1);let E=null;const $=a((()=>w.value&&11===w.value.length?w.value.slice(0,3)+" **** "+w.value.slice(-4):w.value||"")),k=a((()=>z.value>0?`${z.value}s后重新获取`:"获取验证码"));t((()=>{const e=s();w.value=e&&e.patient&&e.patient.phone||""}));const I=async()=>{if(!(z.value>0)){if(!V.value.mobile||!/^1[3-9]\d{9}$/.test(V.value.mobile))return b({title:"请输入正确的手机号",icon:"none"});if(V.value.mobile===w.value)return b({title:"新手机号不能与当前手机号相同",icon:"none"});try{await _("/api/mp/sendSmsCode",{mobile:V.value.mobile,bizType:"change_phone"}),b({title:"验证码已发送",icon:"success"}),z.value=60,E=setInterval((()=>{z.value--,z.value<=0&&(clearInterval(E),E=null)}),1e3)}catch(e){e&&e.msg&&b({title:e.msg,icon:"none"})}}},S=async()=>{if(!V.value.mobile||!/^1[3-9]\d{9}$/.test(V.value.mobile))return b({title:"请输入正确的手机号",icon:"none"});if(!V.value.code||!/^\d{6}$/.test(V.value.code))return b({title:"请输入6位验证码",icon:"none"});C.value=!0;try{await _("/api/mp/changePhone",{mobile:V.value.mobile,code:V.value.code});const e=await h("/api/mp/userinfo");g(e.data),b({title:"修改成功",icon:"success"}),setTimeout((()=>y()),1500)}catch(e){e&&e.msg&&b({title:e.msg,icon:"none"})}finally{C.value=!1}};return(e,l)=>{const a=i,t=x,s=u(o("u-input"),d),b=u(o("u-button"),r);return m(),n(a,{class:"page"},{default:c((()=>[v(a,{class:"current-phone"},{default:c((()=>[v(a,{class:"label"},{default:c((()=>[p("当前绑定手机号")])),_:1}),v(a,{class:"phone"},{default:c((()=>[p(f(w.value?$.value:"未绑定"),1)])),_:1})])),_:1}),v(a,{class:"step-card"},{default:c((()=>[v(a,{class:"card-title"},{default:c((()=>[p("绑定新手机号")])),_:1}),v(a,{class:"form-group"},{default:c((()=>[v(t,{class:"form-label"},{default:c((()=>[v(t,{class:"required"},{default:c((()=>[p("*")])),_:1}),p(" 新手机号")])),_:1}),v(s,{modelValue:V.value.mobile,"onUpdate:modelValue":l[0]||(l[0]=e=>V.value.mobile=e),type:"number",placeholder:"请输入新手机号",maxlength:"11",border:"surround"},null,8,["modelValue"])])),_:1}),v(a,{class:"form-group"},{default:c((()=>[v(t,{class:"form-label"},{default:c((()=>[v(t,{class:"required"},{default:c((()=>[p("*")])),_:1}),p(" 验证码")])),_:1}),v(a,{class:"code-row"},{default:c((()=>[v(a,{class:"code-input"},{default:c((()=>[v(s,{modelValue:V.value.code,"onUpdate:modelValue":l[1]||(l[1]=e=>V.value.code=e),type:"number",placeholder:"请输入验证码",maxlength:"6",border:"surround"},null,8,["modelValue"])])),_:1}),v(b,{disabled:!!z.value,text:k.value,size:"normal",onClick:I,color:"#0E63E3",customStyle:{width:"240rpx",flexShrink:0}},null,8,["disabled","text"])])),_:1})])),_:1})])),_:1}),v(a,{class:"btn-wrap"},{default:c((()=>[v(b,{text:"确认修改",loading:C.value,onClick:S,color:"#0E63E3",size:"large"},null,8,["loading"])])),_:1}),v(a,{class:"tips"},{default:c((()=>[v(a,{class:"tips-title"},{default:c((()=>[p("温馨提示")])),_:1}),v(a,{class:"tips-list"},{default:c((()=>[v(a,{class:"tips-item"},{default:c((()=>[p("修改手机号后,后续相关短信通知将发送到新手机号")])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-703dfc99"]]);export{w as default}; diff --git a/assets/pages-content-content.BEW7Y1IX.js b/assets/pages-content-content.DFTmwNN_.js similarity index 89% rename from assets/pages-content-content.BEW7Y1IX.js rename to assets/pages-content-content.DFTmwNN_.js index 1c7055d..02962a1 100644 --- a/assets/pages-content-content.BEW7Y1IX.js +++ b/assets/pages-content-content.DFTmwNN_.js @@ -1 +1 @@ -import{_ as t,r as n,K as e,b as i,L as a,y as s,z as o,a as l,w as r,i as h,M as c,h as f,j as d}from"./index-It-40-XE.js";import{m as u}from"./mp-html.CQ6RgAWO.js";const g=t({__name:"content",setup(t){const g={h1:"font-size:inherit;font-weight:inherit;",h2:"font-size:inherit;font-weight:inherit;",h3:"font-size:inherit;font-weight:inherit;",h4:"font-size:inherit;font-weight:inherit;",h5:"font-size:inherit;font-weight:inherit;",h6:"font-size:inherit;font-weight:inherit;",ol:"list-style:none;margin:0;padding:0;",ul:"list-style:none;margin:0;padding:0;",menu:"list-style:none;"},y=n(""),m=n(!1);e((t=>{const n=t&&t.key||"";n&&p(n)}));const p=async t=>{try{const n=await i("/api/content",{key:t});n.data&&(y.value=n.data.content||"",a({title:n.data.title||""}))}catch(n){console.error("获取内容失败",n)}finally{m.value=!0}};return(t,n)=>{const e=h,i=s(o("u-loading-icon"),c);return f(),l(e,{class:"page"},{default:r((()=>[m.value?(f(),l(e,{key:0,class:"content-body"},{default:r((()=>[d(u,{content:y.value,"tag-style":g},null,8,["content"])])),_:1})):(f(),l(e,{key:1,class:"loading"},{default:r((()=>[d(i)])),_:1}))])),_:1})}}},[["__scopeId","data-v-4dd6f92c"]]);export{g as default}; +import{_ as t,r as n,K as e,b as i,L as a,y as s,z as o,a as l,w as r,i as h,M as c,h as f,j as d}from"./index-BWvsB30X.js";import{m as u}from"./mp-html.pEJ-Us3z.js";const g=t({__name:"content",setup(t){const g={h1:"font-size:inherit;font-weight:inherit;",h2:"font-size:inherit;font-weight:inherit;",h3:"font-size:inherit;font-weight:inherit;",h4:"font-size:inherit;font-weight:inherit;",h5:"font-size:inherit;font-weight:inherit;",h6:"font-size:inherit;font-weight:inherit;",ol:"list-style:none;margin:0;padding:0;",ul:"list-style:none;margin:0;padding:0;",menu:"list-style:none;"},y=n(""),m=n(!1);e((t=>{const n=t&&t.key||"";n&&p(n)}));const p=async t=>{try{const n=await i("/api/content",{key:t});n.data&&(y.value=n.data.content||"",a({title:n.data.title||""}))}catch(n){console.error("获取内容失败",n)}finally{m.value=!0}};return(t,n)=>{const e=h,i=s(o("u-loading-icon"),c);return f(),l(e,{class:"page"},{default:r((()=>[m.value?(f(),l(e,{key:0,class:"content-body"},{default:r((()=>[d(u,{content:y.value,"tag-style":g},null,8,["content"])])),_:1})):(f(),l(e,{key:1,class:"loading"},{default:r((()=>[d(i)])),_:1}))])),_:1})}}},[["__scopeId","data-v-4dd6f92c"]]);export{g as default}; diff --git a/assets/pages-index-index.DEN-0J-q.js b/assets/pages-index-index.Cjsjec8Z.js similarity index 95% rename from assets/pages-index-index.DEN-0J-q.js rename to assets/pages-index-index.Cjsjec8Z.js index 83e9929..477c4db 100644 --- a/assets/pages-index-index.DEN-0J-q.js +++ b/assets/pages-index-index.Cjsjec8Z.js @@ -1 +1 @@ -import{_ as e,r as a,c as t,o as n,a as s,w as l,g as i,b as u,s as o,d as c,e as r,f as v,i as h,h as d,j as f,k as g,l as p,m,n as y,t as _,p as x,q as b,u as j,v as w}from"./index-It-40-XE.js";import{m as z}from"./mp-html.CQ6RgAWO.js";const k={onShareAppMessage:()=>({title:"肠愈同行 · 患者关爱",path:"/pages/index/index",imageUrl:"https://cdn.csybhelp.com/images/cytx/cytx_share_banner.jpg"}),onShareTimeline:()=>({title:"肠愈同行 · 患者关爱",imageUrl:"https://cdn.csybhelp.com/images/cytx/cytx_share_banner.jpg"})},S=e(Object.assign(k,{__name:"index",setup(e){const k={h1:"font-size:inherit;font-weight:inherit;",h2:"font-size:inherit;font-weight:inherit;",h3:"font-size:inherit;font-weight:inherit;",h4:"font-size:inherit;font-weight:inherit;",h5:"font-size:inherit;font-weight:inherit;",h6:"font-size:inherit;font-weight:inherit;",ol:"list-style:none;margin:0;padding:0;",ul:"list-style:none;margin:0;padding:0;",menu:"list-style:none;"},S="cytx-index-content",T=a(""),U=a(!1),q=a(null),A=a(!1),C=t((()=>q.value&&q.value.patient||null)),I=t((()=>C.value&&1===C.value.auth_status)),M=t((()=>C.value&&void 0!==C.value.status&&null!==C.value.status?C.value.status:null)),O=t((()=>A.value&&I.value?null===M.value||void 0===M.value||-1===M.value?"加入项目":1===M.value?"已加入":0===M.value?"已申请,审核中":2===M.value?"已拒绝,重新申请":"加入项目":"加入项目")),B=t((()=>A.value&&I.value?1===M.value?"joined":0===M.value?"pending":2===M.value?"rejected":"":"")),D=()=>{A.value?I.value?1!==M.value&&0!==M.value?(M.value,x({url:"/pages/myinfo/myinfo"})):j({url:"/pages/profile/profile"}):b({title:"提示",content:"请先完成实名认证",confirmText:"去认证",success:e=>{e.confirm&&x({url:"/pages/verify/verify"})}}):x({url:"/pages/login/index"})};return n((()=>{U.value||(async()=>{try{const e=i(S);e&&(T.value=e)}catch(e){}try{const e=await u("/api/content",{key:"index_content"});e.data&&e.data.content&&(T.value=e.data.content,o(S,e.data.content))}catch(e){console.error("获取首页内容失败",e)}finally{U.value=!0}})(),(async()=>{if(A.value=!!c(),q.value=r(),A.value)try{const e=await u("/api/mp/userinfo");q.value=e.data,v(e.data)}catch(e){}})()})),(e,a)=>{const t=h,n=w;return d(),s(t,{class:"page"},{default:l((()=>[f(t,{class:"banner-h5"},{default:l((()=>[g("img",{class:"banner-img",src:"https://cdn.csybhelp.com/images/cytx/index-bg.png"})])),_:1}),f(t,{class:"content-area"},{default:l((()=>[T.value?(d(),s(t,{key:0,class:"letter"},{default:l((()=>[f(t,{class:"body"},{default:l((()=>[f(z,{content:T.value,"tag-style":k},null,8,["content"])])),_:1})])),_:1})):U.value?m("",!0):(d(),s(t,{key:1,class:"loading-text"},{default:l((()=>[p("加载中...")])),_:1})),f(n,{class:y(["join-btn",B.value]),onClick:D},{default:l((()=>[p(_(O.value),1)])),_:1},8,["class"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-2606ab30"]]);export{S as default}; +import{_ as e,r as a,c as t,o as n,a as s,w as l,g as i,b as u,s as o,d as c,e as r,f as v,i as h,h as d,j as f,k as g,l as p,m,n as y,t as _,p as x,q as b,u as j,v as w}from"./index-BWvsB30X.js";import{m as z}from"./mp-html.pEJ-Us3z.js";const k={onShareAppMessage:()=>({title:"肠愈同行 · 患者关爱",path:"/pages/index/index",imageUrl:"https://cdn.csybhelp.com/images/cytx/cytx_share_banner.jpg"}),onShareTimeline:()=>({title:"肠愈同行 · 患者关爱",imageUrl:"https://cdn.csybhelp.com/images/cytx/cytx_share_banner.jpg"})},S=e(Object.assign(k,{__name:"index",setup(e){const k={h1:"font-size:inherit;font-weight:inherit;",h2:"font-size:inherit;font-weight:inherit;",h3:"font-size:inherit;font-weight:inherit;",h4:"font-size:inherit;font-weight:inherit;",h5:"font-size:inherit;font-weight:inherit;",h6:"font-size:inherit;font-weight:inherit;",ol:"list-style:none;margin:0;padding:0;",ul:"list-style:none;margin:0;padding:0;",menu:"list-style:none;"},S="cytx-index-content",T=a(""),U=a(!1),q=a(null),A=a(!1),C=t((()=>q.value&&q.value.patient||null)),I=t((()=>C.value&&1===C.value.auth_status)),M=t((()=>C.value&&void 0!==C.value.status&&null!==C.value.status?C.value.status:null)),O=t((()=>A.value&&I.value?null===M.value||void 0===M.value||-1===M.value?"加入项目":1===M.value?"已加入":0===M.value?"已申请,审核中":2===M.value?"已拒绝,重新申请":"加入项目":"加入项目")),B=t((()=>A.value&&I.value?1===M.value?"joined":0===M.value?"pending":2===M.value?"rejected":"":"")),D=()=>{A.value?I.value?1!==M.value&&0!==M.value?(M.value,x({url:"/pages/myinfo/myinfo"})):j({url:"/pages/profile/profile"}):b({title:"提示",content:"请先完成实名认证",confirmText:"去认证",success:e=>{e.confirm&&x({url:"/pages/verify/verify"})}}):x({url:"/pages/login/index"})};return n((()=>{U.value||(async()=>{try{const e=i(S);e&&(T.value=e)}catch(e){}try{const e=await u("/api/content",{key:"index_content"});e.data&&e.data.content&&(T.value=e.data.content,o(S,e.data.content))}catch(e){console.error("获取首页内容失败",e)}finally{U.value=!0}})(),(async()=>{if(A.value=!!c(),q.value=r(),A.value)try{const e=await u("/api/mp/userinfo");q.value=e.data,v(e.data)}catch(e){}})()})),(e,a)=>{const t=h,n=w;return d(),s(t,{class:"page"},{default:l((()=>[f(t,{class:"banner-h5"},{default:l((()=>[g("img",{class:"banner-img",src:"https://cdn.csybhelp.com/images/cytx/index-bg.png"})])),_:1}),f(t,{class:"content-area"},{default:l((()=>[T.value?(d(),s(t,{key:0,class:"letter"},{default:l((()=>[f(t,{class:"body"},{default:l((()=>[f(z,{content:T.value,"tag-style":k},null,8,["content"])])),_:1})])),_:1})):U.value?m("",!0):(d(),s(t,{key:1,class:"loading-text"},{default:l((()=>[p("加载中...")])),_:1})),f(n,{class:y(["join-btn",B.value]),onClick:D},{default:l((()=>[p(_(O.value),1)])),_:1},8,["class"])])),_:1})])),_:1})}}}),[["__scopeId","data-v-2606ab30"]]);export{S as default}; diff --git a/assets/pages-login-index.DWprkVG5.js b/assets/pages-login-index.5t7w5yVS.js similarity index 96% rename from assets/pages-login-index.DWprkVG5.js rename to assets/pages-login-index.5t7w5yVS.js index 5983cef..2594c75 100644 --- a/assets/pages-login-index.DWprkVG5.js +++ b/assets/pages-login-index.5t7w5yVS.js @@ -1 +1 @@ -import{_ as e,r as a,a2 as l,a as t,w as s,i as n,h as o,j as c,l as u,t as i,m as d,C as r,G as p,p as m,I as f,J as v,a6 as g,v as _,at as h,f as y,au as b,a5 as k,u as q}from"./index-It-40-XE.js";const x=e({__name:"index",setup(e){const x=a(!1),w=a(""),C=a(""),I=a(0);a([]);const V=a("qrcode");a("wx");let j=null;l((()=>{j&&(clearInterval(j),j=null)}));const F=async()=>{if(!(I.value>0)){if(!w.value||11!==w.value.length)return r({title:"请输入正确的手机号",icon:"none"});try{const e=await p("/api/mp/sendSmsCode",{mobile:w.value,bizType:"login"});e.data&&e.data.code?r({title:`验证码: ${e.data.code}`,icon:"none",duration:3e3}):r({title:"验证码已发送",icon:"none"}),I.value=60,j=setInterval((()=>{I.value--,I.value<=0&&(clearInterval(j),j=null)}),1e3)}catch(e){e&&e.msg&&r({title:e.msg,icon:"none"})}}},T=async()=>{if(!x.value){if(!w.value||11!==w.value.length)return r({title:"请输入正确的手机号",icon:"none"});if(!C.value||6!==C.value.length)return r({title:"请输入6位验证码",icon:"none"});x.value=!0;try{(e=>{h(e.data.token),y(e.data.userInfo),r({title:"登录成功",icon:"success"}),setTimeout((()=>{b().length>1?k():q({url:"/pages/profile/profile"})}),500)})(await p("/api/mp/phoneLogin",{mobile:w.value,code:C.value}))}catch(e){e&&e.msg&&r({title:e.msg,icon:"none"})}finally{x.value=!1}}},U=()=>{m({url:"/pages/content/content?key=privacy_policy_h5"})};return(e,a)=>{const l=f,r=v,p=n,m=g,h=_;return o(),t(p,{class:"page"},{default:s((()=>[c(p,{class:"logo-area"},{default:s((()=>[c(l,{class:"logo",src:"https://cdn.csybhelp.com/images/cytx/logo.png",mode:"aspectFit"}),c(r,{class:"title"},{default:s((()=>[u("肠愈同行")])),_:1}),c(r,{class:"subtitle"},{default:s((()=>[u("患者关爱")])),_:1})])),_:1}),c(p,{class:"btn-area"},{default:s((()=>["qrcode"===V.value?(o(),t(p,{key:0,class:"qrcode-area"},{default:s((()=>[c(r,{class:"qrcode-tip"},{default:s((()=>[u("肠愈同行小程序已上线")])),_:1}),c(r,{class:"qrcode-tip"},{default:s((()=>[u("请长按识别二维码进入小程序")])),_:1}),c(l,{class:"qrcode-img",src:"https://cdn.csybhelp.com/images/cytx/cytx_qrcode.jpg",mode:"aspectFit","show-menu-by-longpress":""}),c(r,{class:"switch-phone-btn",onClick:a[0]||(a[0]=e=>V.value="phone")},{default:s((()=>[u("继续使用手机号登录")])),_:1})])),_:1})):(o(),t(p,{key:1,class:"phone-form"},{default:s((()=>[c(r,{class:"switch-qrcode-btn",onClick:a[1]||(a[1]=e=>V.value="qrcode")},{default:s((()=>[u("← 使用小程序")])),_:1}),c(p,{class:"form-item"},{default:s((()=>[c(m,{class:"form-input",type:"number",modelValue:w.value,"onUpdate:modelValue":a[2]||(a[2]=e=>w.value=e),placeholder:"请输入手机号",maxlength:"11"},null,8,["modelValue"])])),_:1}),c(p,{class:"form-item code-row"},{default:s((()=>[c(m,{class:"form-input code-input",type:"number",modelValue:C.value,"onUpdate:modelValue":a[3]||(a[3]=e=>C.value=e),placeholder:"请输入验证码",maxlength:"6"},null,8,["modelValue"]),c(h,{class:"sms-btn",disabled:I.value>0,onClick:F},{default:s((()=>[u(i(I.value>0?I.value+"s":"获取验证码"),1)])),_:1},8,["disabled"])])),_:1}),c(h,{class:"login-btn",onClick:T,loading:x.value},{default:s((()=>[u(" 登录 ")])),_:1},8,["loading"])])),_:1})),"phone"===V.value?(o(),t(p,{key:2,class:"tip"},{default:s((()=>[u("登录即表示同意 "),c(r,{class:"link",onClick:U},{default:s((()=>[u("《隐私政策》")])),_:1})])),_:1})):d("",!0)])),_:1})])),_:1})}}},[["__scopeId","data-v-67fb11a7"]]);export{x as default}; +import{_ as e,r as a,a2 as l,a as t,w as s,i as n,h as o,j as c,l as u,t as i,m as d,C as r,G as p,p as m,I as f,J as v,a6 as g,v as _,at as h,f as y,au as b,a5 as k,u as q}from"./index-BWvsB30X.js";const x=e({__name:"index",setup(e){const x=a(!1),w=a(""),C=a(""),I=a(0);a([]);const V=a("qrcode");a("wx");let j=null;l((()=>{j&&(clearInterval(j),j=null)}));const F=async()=>{if(!(I.value>0)){if(!w.value||11!==w.value.length)return r({title:"请输入正确的手机号",icon:"none"});try{const e=await p("/api/mp/sendSmsCode",{mobile:w.value,bizType:"login"});e.data&&e.data.code?r({title:`验证码: ${e.data.code}`,icon:"none",duration:3e3}):r({title:"验证码已发送",icon:"none"}),I.value=60,j=setInterval((()=>{I.value--,I.value<=0&&(clearInterval(j),j=null)}),1e3)}catch(e){e&&e.msg&&r({title:e.msg,icon:"none"})}}},T=async()=>{if(!x.value){if(!w.value||11!==w.value.length)return r({title:"请输入正确的手机号",icon:"none"});if(!C.value||6!==C.value.length)return r({title:"请输入6位验证码",icon:"none"});x.value=!0;try{(e=>{h(e.data.token),y(e.data.userInfo),r({title:"登录成功",icon:"success"}),setTimeout((()=>{b().length>1?k():q({url:"/pages/profile/profile"})}),500)})(await p("/api/mp/phoneLogin",{mobile:w.value,code:C.value}))}catch(e){e&&e.msg&&r({title:e.msg,icon:"none"})}finally{x.value=!1}}},U=()=>{m({url:"/pages/content/content?key=privacy_policy_h5"})};return(e,a)=>{const l=f,r=v,p=n,m=g,h=_;return o(),t(p,{class:"page"},{default:s((()=>[c(p,{class:"logo-area"},{default:s((()=>[c(l,{class:"logo",src:"https://cdn.csybhelp.com/images/cytx/logo.png",mode:"aspectFit"}),c(r,{class:"title"},{default:s((()=>[u("肠愈同行")])),_:1}),c(r,{class:"subtitle"},{default:s((()=>[u("患者关爱")])),_:1})])),_:1}),c(p,{class:"btn-area"},{default:s((()=>["qrcode"===V.value?(o(),t(p,{key:0,class:"qrcode-area"},{default:s((()=>[c(r,{class:"qrcode-tip"},{default:s((()=>[u("肠愈同行小程序已上线")])),_:1}),c(r,{class:"qrcode-tip"},{default:s((()=>[u("请长按识别二维码进入小程序")])),_:1}),c(l,{class:"qrcode-img",src:"https://cdn.csybhelp.com/images/cytx/cytx_qrcode.jpg",mode:"aspectFit","show-menu-by-longpress":""}),c(r,{class:"switch-phone-btn",onClick:a[0]||(a[0]=e=>V.value="phone")},{default:s((()=>[u("继续使用手机号登录")])),_:1})])),_:1})):(o(),t(p,{key:1,class:"phone-form"},{default:s((()=>[c(r,{class:"switch-qrcode-btn",onClick:a[1]||(a[1]=e=>V.value="qrcode")},{default:s((()=>[u("← 使用小程序")])),_:1}),c(p,{class:"form-item"},{default:s((()=>[c(m,{class:"form-input",type:"number",modelValue:w.value,"onUpdate:modelValue":a[2]||(a[2]=e=>w.value=e),placeholder:"请输入手机号",maxlength:"11"},null,8,["modelValue"])])),_:1}),c(p,{class:"form-item code-row"},{default:s((()=>[c(m,{class:"form-input code-input",type:"number",modelValue:C.value,"onUpdate:modelValue":a[3]||(a[3]=e=>C.value=e),placeholder:"请输入验证码",maxlength:"6"},null,8,["modelValue"]),c(h,{class:"sms-btn",disabled:I.value>0,onClick:F},{default:s((()=>[u(i(I.value>0?I.value+"s":"获取验证码"),1)])),_:1},8,["disabled"])])),_:1}),c(h,{class:"login-btn",onClick:T,loading:x.value},{default:s((()=>[u(" 登录 ")])),_:1},8,["loading"])])),_:1})),"phone"===V.value?(o(),t(p,{key:2,class:"tip"},{default:s((()=>[u("登录即表示同意 "),c(r,{class:"link",onClick:U},{default:s((()=>[u("《隐私政策》")])),_:1})])),_:1})):d("",!0)])),_:1})])),_:1})}}},[["__scopeId","data-v-67fb11a7"]]);export{x as default}; diff --git a/assets/pages-message-detail.Bx7HA25L.js b/assets/pages-message-detail.CyaX1Scx.js similarity index 98% rename from assets/pages-message-detail.Bx7HA25L.js rename to assets/pages-message-detail.CyaX1Scx.js index 0a7dc05..69d1b2f 100644 --- a/assets/pages-message-detail.Bx7HA25L.js +++ b/assets/pages-message-detail.CyaX1Scx.js @@ -1 +1 @@ -import{_ as e,r as a,c as l,K as t,b as s,C as u,y as c,z as r,a as v,w as n,i as o,a3 as d,h as i,j as y,l as f,t as _,n as p,m as b,p as g,aj as k,J as m}from"./index-It-40-XE.js";const x=e({__name:"detail",setup(e){const x=a(null),h=l((()=>x.value&&x.value.sample_receiver_info||{})),E=l((()=>x.value&&x.value.reason||"")),w=l((()=>x.value?1===x.value.type?"已通过":3===x.value.type?"已寄回":4===x.value.type?x.value.reason?"未通过":"已通过":"已驳回":"")),$=l((()=>x.value?3===x.value.type?"回寄信息":4===x.value.type?"送检信息通知":"审核通知":"")),z=l((()=>x.value?1===x.value.type?"tag-success":3===x.value.type?"tag-return":4===x.value.type?x.value.reason?"tag-fail":"tag-success":"tag-fail":"")),C=l((()=>x.value?1===x.value.type?"资料已审核通过":3===x.value.type?"样品已经寄回":4===x.value.type?x.value.reason?"送检修改申请未通过":"送检修改申请已通过":"您提交的资料未通过审核":""));t((async e=>{if(e.id)try{const a=await s("/api/mp/messageDetail",{id:e.id});x.value=a.data}catch(a){a&&a.msg&&u({title:a.msg,icon:"none"})}}));const j=e=>{if(!e)return"";const a=new Date(e);return`${a.getFullYear()}年${a.getMonth()+1}月${a.getDate()}日`},D=()=>{g({url:"/pages/myinfo/myinfo"})},F=()=>{g({url:"/pages/sample-info/sample-info"})},I=()=>{const e=h.value,a=[`收件地址:${e.address||""}`,`收件人:${e.receiver||""}`,`电话:${e.phone||""}`].join("\n");k({data:a,success:()=>u({title:"已复制",icon:"success"})})},J=()=>{if(!E.value)return u({title:"暂无单号",icon:"none"});k({data:E.value,success:()=>u({title:"单号已复制",icon:"success"})})};return(e,a)=>{const l=m,t=o,s=c(r("u-button"),d);return i(),v(t,{class:"page"},{default:n((()=>[x.value?(i(),v(t,{key:0,class:"card"},{default:n((()=>[y(t,{class:"header-row"},{default:n((()=>[y(l,{class:"header-icon"},{default:n((()=>[f("📢")])),_:1}),y(l,{class:"header-title"},{default:n((()=>[f(_($.value),1)])),_:1}),y(t,{class:p(["tag",z.value])},{default:n((()=>[f(_(w.value),1)])),_:1},8,["class"])])),_:1}),y(t,{class:"main-title"},{default:n((()=>[f(_(C.value),1)])),_:1}),y(t,{class:"time"},{default:n((()=>[f(_(x.value.create_time),1)])),_:1}),y(t,{class:"body"},{default:n((()=>[y(l,{class:"greeting"},{default:n((()=>[f("尊敬的"+_(x.value.patient_name||"")+":",1)])),_:1}),1===x.value.type?(i(),v(l,{key:0,class:"body-text"},{default:n((()=>[f(_("您提交的肠愈同行患者关爱项目资料已审核通过,请于7天内在小程序-个人中心-送检信息中提交相关信息。"))])),_:1})):2===x.value.type?(i(),v(l,{key:1,class:"body-text"},{default:n((()=>[f("您于 "+_(j(x.value.create_time))+" 提交的个人资料经审核未通过。",1)])),_:1})):3===x.value.type?(i(),v(l,{key:2,class:"body-text"},{default:n((()=>[f("您的样品已经寄回,请注意查收。")])),_:1})):4!==x.value.type||x.value.reason?4===x.value.type?(i(),v(l,{key:4,class:"body-text"},{default:n((()=>[f("您的送检信息修改申请未通过。")])),_:1})):b("",!0):(i(),v(l,{key:3,class:"body-text"},{default:n((()=>[f("您的送检信息修改申请已审核通过,请前往送检信息页面重新提交。")])),_:1})),2===x.value.type?(i(),v(l,{key:5,class:"body-text"},{default:n((()=>[f("请根据以下原因修改后重新提交。")])),_:1})):b("",!0)])),_:1}),1===x.value.type?(i(),v(t,{key:0,class:"receiver-box"},{default:n((()=>[y(t,{class:"receiver-title"},{default:n((()=>[f("送检信息")])),_:1}),y(t,{class:"receiver-tip"},{default:n((()=>[f(_("样本请发顺丰到付,血液样本需要联系顺丰快递员加冰袋。"))])),_:1}),y(t,{class:"receiver-row"},{default:n((()=>[y(l,{class:"receiver-label"},{default:n((()=>[f("收件地址")])),_:1}),y(l,{class:"receiver-value"},{default:n((()=>[f(_(h.value.address||"—"),1)])),_:1})])),_:1}),y(t,{class:"receiver-row"},{default:n((()=>[y(l,{class:"receiver-label"},{default:n((()=>[f("收件人")])),_:1}),y(l,{class:"receiver-value"},{default:n((()=>[f(_(h.value.receiver||"—"),1)])),_:1})])),_:1}),y(t,{class:"receiver-row"},{default:n((()=>[y(l,{class:"receiver-label"},{default:n((()=>[f("电话")])),_:1}),y(l,{class:"receiver-value"},{default:n((()=>[f(_(h.value.phone||"—"),1)])),_:1})])),_:1})])),_:1})):b("",!0),2!==x.value.type&&4!==x.value.type||!x.value.reason?b("",!0):(i(),v(t,{key:1,class:"reason-box"},{default:n((()=>[y(l,{class:"reason-label"},{default:n((()=>[f(_(4===x.value.type?"审核原因:":"驳回原因:"),1)])),_:1}),y(l,{class:"reason-text"},{default:n((()=>[f(_(x.value.reason),1)])),_:1})])),_:1})),3===x.value.type?(i(),v(t,{key:2,class:"return-box"},{default:n((()=>[y(l,{class:"return-label"},{default:n((()=>[f("回寄物流单号")])),_:1}),y(l,{class:"return-no"},{default:n((()=>[f(_(E.value||"—"),1)])),_:1})])),_:1})):b("",!0),1===x.value.type?(i(),v(t,{key:3,class:"btn-area"},{default:n((()=>[y(s,{text:"复制送检信息",onClick:I,color:"#0E63E3",size:"large"})])),_:1})):b("",!0),2===x.value.type?(i(),v(t,{key:4,class:"btn-area"},{default:n((()=>[y(s,{text:"重新提交资料",onClick:D,color:"#0E63E3",size:"large"})])),_:1})):b("",!0),3===x.value.type?(i(),v(t,{key:5,class:"btn-area"},{default:n((()=>[y(s,{text:"复制单号",onClick:J,color:"#0E63E3",size:"large"})])),_:1})):b("",!0),4===x.value.type?(i(),v(t,{key:6,class:"btn-area"},{default:n((()=>[y(s,{text:"查看送检信息",onClick:F,color:"#0E63E3",size:"large"})])),_:1})):b("",!0)])),_:1})):b("",!0)])),_:1})}}},[["__scopeId","data-v-71585910"]]);export{x as default}; +import{_ as e,r as a,c as l,K as t,b as s,C as u,y as c,z as r,a as v,w as n,i as o,a3 as d,h as i,j as y,l as f,t as _,n as p,m as b,p as g,aj as k,J as m}from"./index-BWvsB30X.js";const x=e({__name:"detail",setup(e){const x=a(null),h=l((()=>x.value&&x.value.sample_receiver_info||{})),E=l((()=>x.value&&x.value.reason||"")),w=l((()=>x.value?1===x.value.type?"已通过":3===x.value.type?"已寄回":4===x.value.type?x.value.reason?"未通过":"已通过":"已驳回":"")),$=l((()=>x.value?3===x.value.type?"回寄信息":4===x.value.type?"送检信息通知":"审核通知":"")),z=l((()=>x.value?1===x.value.type?"tag-success":3===x.value.type?"tag-return":4===x.value.type?x.value.reason?"tag-fail":"tag-success":"tag-fail":"")),C=l((()=>x.value?1===x.value.type?"资料已审核通过":3===x.value.type?"样品已经寄回":4===x.value.type?x.value.reason?"送检修改申请未通过":"送检修改申请已通过":"您提交的资料未通过审核":""));t((async e=>{if(e.id)try{const a=await s("/api/mp/messageDetail",{id:e.id});x.value=a.data}catch(a){a&&a.msg&&u({title:a.msg,icon:"none"})}}));const j=e=>{if(!e)return"";const a=new Date(e);return`${a.getFullYear()}年${a.getMonth()+1}月${a.getDate()}日`},D=()=>{g({url:"/pages/myinfo/myinfo"})},F=()=>{g({url:"/pages/sample-info/sample-info"})},I=()=>{const e=h.value,a=[`收件地址:${e.address||""}`,`收件人:${e.receiver||""}`,`电话:${e.phone||""}`].join("\n");k({data:a,success:()=>u({title:"已复制",icon:"success"})})},J=()=>{if(!E.value)return u({title:"暂无单号",icon:"none"});k({data:E.value,success:()=>u({title:"单号已复制",icon:"success"})})};return(e,a)=>{const l=m,t=o,s=c(r("u-button"),d);return i(),v(t,{class:"page"},{default:n((()=>[x.value?(i(),v(t,{key:0,class:"card"},{default:n((()=>[y(t,{class:"header-row"},{default:n((()=>[y(l,{class:"header-icon"},{default:n((()=>[f("📢")])),_:1}),y(l,{class:"header-title"},{default:n((()=>[f(_($.value),1)])),_:1}),y(t,{class:p(["tag",z.value])},{default:n((()=>[f(_(w.value),1)])),_:1},8,["class"])])),_:1}),y(t,{class:"main-title"},{default:n((()=>[f(_(C.value),1)])),_:1}),y(t,{class:"time"},{default:n((()=>[f(_(x.value.create_time),1)])),_:1}),y(t,{class:"body"},{default:n((()=>[y(l,{class:"greeting"},{default:n((()=>[f("尊敬的"+_(x.value.patient_name||"")+":",1)])),_:1}),1===x.value.type?(i(),v(l,{key:0,class:"body-text"},{default:n((()=>[f(_("您提交的肠愈同行患者关爱项目资料已审核通过,请于7天内在小程序-个人中心-送检信息中提交相关信息。"))])),_:1})):2===x.value.type?(i(),v(l,{key:1,class:"body-text"},{default:n((()=>[f("您于 "+_(j(x.value.create_time))+" 提交的个人资料经审核未通过。",1)])),_:1})):3===x.value.type?(i(),v(l,{key:2,class:"body-text"},{default:n((()=>[f("您的样品已经寄回,请注意查收。")])),_:1})):4!==x.value.type||x.value.reason?4===x.value.type?(i(),v(l,{key:4,class:"body-text"},{default:n((()=>[f("您的送检信息修改申请未通过。")])),_:1})):b("",!0):(i(),v(l,{key:3,class:"body-text"},{default:n((()=>[f("您的送检信息修改申请已审核通过,请前往送检信息页面重新提交。")])),_:1})),2===x.value.type?(i(),v(l,{key:5,class:"body-text"},{default:n((()=>[f("请根据以下原因修改后重新提交。")])),_:1})):b("",!0)])),_:1}),1===x.value.type?(i(),v(t,{key:0,class:"receiver-box"},{default:n((()=>[y(t,{class:"receiver-title"},{default:n((()=>[f("送检信息")])),_:1}),y(t,{class:"receiver-tip"},{default:n((()=>[f(_("样本请发顺丰到付,血液样本需要联系顺丰快递员加冰袋。"))])),_:1}),y(t,{class:"receiver-row"},{default:n((()=>[y(l,{class:"receiver-label"},{default:n((()=>[f("收件地址")])),_:1}),y(l,{class:"receiver-value"},{default:n((()=>[f(_(h.value.address||"—"),1)])),_:1})])),_:1}),y(t,{class:"receiver-row"},{default:n((()=>[y(l,{class:"receiver-label"},{default:n((()=>[f("收件人")])),_:1}),y(l,{class:"receiver-value"},{default:n((()=>[f(_(h.value.receiver||"—"),1)])),_:1})])),_:1}),y(t,{class:"receiver-row"},{default:n((()=>[y(l,{class:"receiver-label"},{default:n((()=>[f("电话")])),_:1}),y(l,{class:"receiver-value"},{default:n((()=>[f(_(h.value.phone||"—"),1)])),_:1})])),_:1})])),_:1})):b("",!0),2!==x.value.type&&4!==x.value.type||!x.value.reason?b("",!0):(i(),v(t,{key:1,class:"reason-box"},{default:n((()=>[y(l,{class:"reason-label"},{default:n((()=>[f(_(4===x.value.type?"审核原因:":"驳回原因:"),1)])),_:1}),y(l,{class:"reason-text"},{default:n((()=>[f(_(x.value.reason),1)])),_:1})])),_:1})),3===x.value.type?(i(),v(t,{key:2,class:"return-box"},{default:n((()=>[y(l,{class:"return-label"},{default:n((()=>[f("回寄物流单号")])),_:1}),y(l,{class:"return-no"},{default:n((()=>[f(_(E.value||"—"),1)])),_:1})])),_:1})):b("",!0),1===x.value.type?(i(),v(t,{key:3,class:"btn-area"},{default:n((()=>[y(s,{text:"复制送检信息",onClick:I,color:"#0E63E3",size:"large"})])),_:1})):b("",!0),2===x.value.type?(i(),v(t,{key:4,class:"btn-area"},{default:n((()=>[y(s,{text:"重新提交资料",onClick:D,color:"#0E63E3",size:"large"})])),_:1})):b("",!0),3===x.value.type?(i(),v(t,{key:5,class:"btn-area"},{default:n((()=>[y(s,{text:"复制单号",onClick:J,color:"#0E63E3",size:"large"})])),_:1})):b("",!0),4===x.value.type?(i(),v(t,{key:6,class:"btn-area"},{default:n((()=>[y(s,{text:"查看送检信息",onClick:F,color:"#0E63E3",size:"large"})])),_:1})):b("",!0)])),_:1})):b("",!0)])),_:1})}}},[["__scopeId","data-v-71585910"]]);export{x as default}; diff --git a/assets/pages-message-message.CjW1WfAY.js b/assets/pages-message-message.BJp6W42t.js similarity index 97% rename from assets/pages-message-message.CjW1WfAY.js rename to assets/pages-message-message.BJp6W42t.js index 5dc6b40..878f547 100644 --- a/assets/pages-message-message.CjW1WfAY.js +++ b/assets/pages-message-message.BJp6W42t.js @@ -1 +1 @@ -import{_ as a,r as e,K as s,aq as l,ar as t,as as c,b as u,y as i,z as d,a as n,w as o,A as r,i as m,M as f,h as p,R as v,T as _,S as g,m as y,j as k,l as h,J as z,n as w,t as b,p as x}from"./index-It-40-XE.js";const j=a({__name:"message",setup(a){const j=e([]),C=e(1),S=e(!1),q=e(!1);s((()=>{A()})),l((()=>{C.value=1,q.value=!1,j.value=[],A().then((()=>t()))})),c((()=>{q.value||S.value||A()}));const A=async()=>{if(!S.value){S.value=!0;try{const a=(await u("/api/mp/messages",{page:C.value,pageSize:20})).data||{},e=a.data||[];1===C.value?j.value=e:j.value.push(...e),C.value>=(a.totalPages||1)?q.value=!0:C.value++}catch(a){}S.value=!1}},I=a=>1===a.type?"success":3===a.type?"return":4===a.type?a.reason?"fail":"sample":"fail",J=a=>1===a.type?"checkmark-circle-fill":3===a.type?"order":4===a.type?a.reason?"close-circle-fill":"checkmark-circle-fill":"close-circle-fill",K=a=>1===a.type?"#52c41a":3===a.type?"#0e63e3":4===a.type?a.reason?"#f5222d":"#52c41a":"#f5222d";return(a,e)=>{const s=i(d("u-icon"),r),l=m,t=z,c=i(d("u-loading-icon"),f);return p(),n(l,{class:"page"},{default:o((()=>[j.value.length?(p(),n(l,{key:0,class:"msg-list"},{default:o((()=>[(p(!0),v(g,null,_(j.value,(a=>(p(),n(l,{class:"msg-item",key:a.id,onClick:e=>(a=>{const e=j.value.find((e=>e.id===a));e&&(e.is_read=1),x({url:`/pages/message/detail?id=${a}`})})(a.id)},{default:o((()=>[k(l,{class:w(["msg-icon",I(a)])},{default:o((()=>[k(s,{name:J(a),size:"22",color:K(a)},null,8,["name","color"])])),_:2},1032,["class"]),k(l,{class:"msg-body"},{default:o((()=>[k(l,{class:"msg-title-row"},{default:o((()=>[k(t,{class:"msg-title"},{default:o((()=>[h(b(a.title),1)])),_:2},1024),a.is_read?y("",!0):(p(),n(l,{key:0,class:"unread-dot"}))])),_:2},1024),k(t,{class:"msg-desc"},{default:o((()=>[h(b(a.content),1)])),_:2},1024),k(t,{class:"msg-time"},{default:o((()=>[h(b(a.create_time),1)])),_:2},1024)])),_:2},1024),k(t,{class:"arrow"},{default:o((()=>[h("›")])),_:1})])),_:2},1032,["onClick"])))),128))])),_:1})):y("",!0),S.value||j.value.length?y("",!0):(p(),n(l,{key:1,class:"empty"},{default:o((()=>[k(s,{name:"bell",size:"60",color:"#ccc"}),k(t,{class:"empty-text"},{default:o((()=>[h("暂无消息")])),_:1})])),_:1})),S.value?(p(),n(l,{key:2,class:"loading-tip"},{default:o((()=>[k(c,{size:"24"})])),_:1})):y("",!0),!S.value&&q.value&&j.value.length?(p(),n(l,{key:3,class:"no-more"},{default:o((()=>[h("没有更多了")])),_:1})):y("",!0)])),_:1})}}},[["__scopeId","data-v-8c19af7c"]]);export{j as default}; +import{_ as a,r as e,K as s,aq as l,ar as t,as as c,b as u,y as i,z as d,a as n,w as o,A as r,i as m,M as f,h as p,R as v,T as _,S as g,m as y,j as k,l as h,J as z,n as w,t as b,p as x}from"./index-BWvsB30X.js";const j=a({__name:"message",setup(a){const j=e([]),C=e(1),S=e(!1),q=e(!1);s((()=>{A()})),l((()=>{C.value=1,q.value=!1,j.value=[],A().then((()=>t()))})),c((()=>{q.value||S.value||A()}));const A=async()=>{if(!S.value){S.value=!0;try{const a=(await u("/api/mp/messages",{page:C.value,pageSize:20})).data||{},e=a.data||[];1===C.value?j.value=e:j.value.push(...e),C.value>=(a.totalPages||1)?q.value=!0:C.value++}catch(a){}S.value=!1}},I=a=>1===a.type?"success":3===a.type?"return":4===a.type?a.reason?"fail":"sample":"fail",J=a=>1===a.type?"checkmark-circle-fill":3===a.type?"order":4===a.type?a.reason?"close-circle-fill":"checkmark-circle-fill":"close-circle-fill",K=a=>1===a.type?"#52c41a":3===a.type?"#0e63e3":4===a.type?a.reason?"#f5222d":"#52c41a":"#f5222d";return(a,e)=>{const s=i(d("u-icon"),r),l=m,t=z,c=i(d("u-loading-icon"),f);return p(),n(l,{class:"page"},{default:o((()=>[j.value.length?(p(),n(l,{key:0,class:"msg-list"},{default:o((()=>[(p(!0),v(g,null,_(j.value,(a=>(p(),n(l,{class:"msg-item",key:a.id,onClick:e=>(a=>{const e=j.value.find((e=>e.id===a));e&&(e.is_read=1),x({url:`/pages/message/detail?id=${a}`})})(a.id)},{default:o((()=>[k(l,{class:w(["msg-icon",I(a)])},{default:o((()=>[k(s,{name:J(a),size:"22",color:K(a)},null,8,["name","color"])])),_:2},1032,["class"]),k(l,{class:"msg-body"},{default:o((()=>[k(l,{class:"msg-title-row"},{default:o((()=>[k(t,{class:"msg-title"},{default:o((()=>[h(b(a.title),1)])),_:2},1024),a.is_read?y("",!0):(p(),n(l,{key:0,class:"unread-dot"}))])),_:2},1024),k(t,{class:"msg-desc"},{default:o((()=>[h(b(a.content),1)])),_:2},1024),k(t,{class:"msg-time"},{default:o((()=>[h(b(a.create_time),1)])),_:2},1024)])),_:2},1024),k(t,{class:"arrow"},{default:o((()=>[h("›")])),_:1})])),_:2},1032,["onClick"])))),128))])),_:1})):y("",!0),S.value||j.value.length?y("",!0):(p(),n(l,{key:1,class:"empty"},{default:o((()=>[k(s,{name:"bell",size:"60",color:"#ccc"}),k(t,{class:"empty-text"},{default:o((()=>[h("暂无消息")])),_:1})])),_:1})),S.value?(p(),n(l,{key:2,class:"loading-tip"},{default:o((()=>[k(c,{size:"24"})])),_:1})):y("",!0),!S.value&&q.value&&j.value.length?(p(),n(l,{key:3,class:"no-more"},{default:o((()=>[h("没有更多了")])),_:1})):y("",!0)])),_:1})}}},[["__scopeId","data-v-8c19af7c"]]);export{j as default}; diff --git a/assets/pages-myinfo-myinfo.Cciv1UjO.js b/assets/pages-myinfo-myinfo.Cciv1UjO.js deleted file mode 100644 index b226fc1..0000000 --- a/assets/pages-myinfo-myinfo.Cciv1UjO.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e,r as a,c as l,y as t,A as i,z as c,a7 as s,a8 as n,a4 as o,h as u,a as d,w as r,j as _,l as v,n as p,t as m,m as g,R as f,S as h,T as y,J as k,i as C,a9 as b,a1 as x,K as w,aa as I,ab as j,ac as N,b as z,ad as V,ae as F,af as E,ag as R,ah as T,a3 as U,ai as P,V as D,C as $,p as A,P as B,D as S,F as O,G as M,a5 as G,I as J}from"./index-It-40-XE.js";const K=e({__name:"hospital-picker",props:{hospitalData:{type:Array,default:()=>[]}},emits:["confirm"],setup(e,{expose:x,emit:w}){const I=e,j=w,N=a(!1),z=a("province"),V=a(null),F=a(null),E=a(null),R=a(null),T=a(""),U=l((()=>I.hospitalData||[])),P=l((()=>V.value&&V.value.cities||[])),D=l((()=>F.value&&F.value.districts||[])),$=l((()=>E.value&&E.value.hospitals||[])),A=l((()=>!!T.value.trim())),B=l((()=>{const e=[];return U.value.forEach((a=>{(a.cities||[]).forEach((l=>{(l.districts||[]).forEach((t=>{(t.hospitals||[]).forEach((i=>{e.push({...i,_province:a,_city:l,_district:t,regionText:[a.provinceName,l.cityName,t.districtName].filter(Boolean).join(" ")})}))}))}))})),e})),S=l((()=>{const e=T.value.trim();return e?B.value.filter((a=>a.name.includes(e)||a.regionText&&a.regionText.includes(e))):[]})),O=l((()=>$.value)),M=l((()=>A.value?0===S.value.length:"province"===z.value?0===U.value.length:"city"===z.value?0===P.value.length:"district"===z.value?0===D.value.length:0===O.value.length)),G=e=>{z.value=e},J=e=>{e._province&&(V.value=e._province),e._city&&(F.value=e._city),e._district&&(E.value=e._district),R.value=e,K(),Y()},K=()=>{R.value&&j("confirm",{hospitalId:R.value.id,hospitalName:R.value.name,province_code:R.value.province_code||V.value&&V.value.provinceCode||"",city_code:R.value.city_code||F.value&&F.value.cityCode||"",district_code:R.value.district_code||E.value&&E.value.districtCode||""})},Y=()=>{N.value=!1},q=(e,a)=>{for(const l of U.value)for(const t of l.cities||[])for(const i of t.districts||[]){const c=(i.hospitals||[]).find((l=>a&&l.id===a||e&&l.name===e));if(c)return V.value=l,F.value=t,E.value=i,void(R.value=c)}};return x({open:(e={})=>{V.value=null,F.value=null,E.value=null,R.value=null,T.value="",z.value="province";const a=e.province_code||"",l=e.city_code||"",t=e.district_code||"",i=e.hospitalName||e.hospital||"",c=e.hospitalId||"";a&&(V.value=U.value.find((e=>e.provinceCode===a))||null,V.value&&l&&(F.value=(V.value.cities||[]).find((e=>e.cityCode===l))||null,F.value&&t&&(E.value=(F.value.districts||[]).find((e=>e.districtCode===t))||null))),E.value||!i&&!c||q(i,c),E.value?(R.value=(E.value.hospitals||[]).find((e=>c&&e.id===c||i&&e.name===i))||null,z.value="hospital"):F.value?z.value="district":V.value&&(z.value="city"),N.value=!0}}),(e,a)=>{const l=k,x=t(c("u-icon"),i),w=C,I=t(c("u--input"),s),j=t(c("u-empty"),n),$=b,B=t(c("u-popup"),o);return u(),d(B,{show:N.value,mode:"bottom",round:"16",closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:Y},{default:r((()=>[_(w,{class:"picker-wrap"},{default:r((()=>[_(w,{class:"picker-header"},{default:r((()=>[_(l,{class:"picker-title"},{default:r((()=>[v("选择就诊医院")])),_:1}),_(x,{name:"close",size:"36rpx",color:"#999",onClick:Y})])),_:1}),_(w,{class:"search-bar"},{default:r((()=>[_(I,{modelValue:T.value,"onUpdate:modelValue":a[0]||(a[0]=e=>T.value=e),placeholder:"搜索医院名称",prefixIcon:"search",prefixIconStyle:"color: #999",border:"surround",shape:"circle",clearable:""},null,8,["modelValue"])])),_:1}),_(w,{class:"tab-bar"},{default:r((()=>[_(w,{class:p(["tab-item",{active:"province"===z.value}]),onClick:a[1]||(a[1]=e=>G("province"))},{default:r((()=>[v(m(V.value?V.value.provinceName:"请选择省份"),1)])),_:1},8,["class"]),V.value?(u(),d(w,{key:0,class:p(["tab-item",{active:"city"===z.value}]),onClick:a[2]||(a[2]=e=>G("city"))},{default:r((()=>[v(m(F.value?F.value.cityName:"请选择城市"),1)])),_:1},8,["class"])):g("",!0),F.value?(u(),d(w,{key:1,class:p(["tab-item",{active:"district"===z.value}]),onClick:a[3]||(a[3]=e=>G("district"))},{default:r((()=>[v(m(E.value?E.value.districtName:"请选择区县"),1)])),_:1},8,["class"])):g("",!0),E.value?(u(),d(w,{key:2,class:p(["tab-item",{active:"hospital"===z.value}]),onClick:a[4]||(a[4]=e=>G("hospital"))},{default:r((()=>[v(m(R.value?R.value.name:"请选择医院"),1)])),_:1},8,["class"])):g("",!0)])),_:1}),_($,{class:"list-wrap","scroll-y":""},{default:r((()=>[A.value?(u(!0),f(h,{key:0},y(S.value,(e=>(u(),d(w,{key:e.id,class:p(["list-item",{selected:R.value&&R.value.id===e.id}]),onClick:a=>J(e)},{default:r((()=>[_(w,{class:"hospital-result"},{default:r((()=>[_(l,{class:"hospital-name"},{default:r((()=>[v(m(e.name),1)])),_:2},1024),_(l,{class:"hospital-region"},{default:r((()=>[v(m(e.regionText||"地区未设置"),1)])),_:2},1024)])),_:2},1024),R.value&&R.value.id===e.id?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):"province"===z.value?(u(!0),f(h,{key:1},y(U.value,(e=>(u(),d(w,{key:e.provinceCode||e.provinceName,class:p(["list-item",{selected:V.value===e}]),onClick:a=>(e=>{V.value=e,F.value=null,E.value=null,R.value=null,e.cities&&1===e.cities.length?(F.value=e.cities[0],F.value.districts&&1===F.value.districts.length?(E.value=F.value.districts[0],z.value="hospital"):z.value="district"):z.value="city"})(e)},{default:r((()=>[_(l,null,{default:r((()=>[v(m(e.provinceName),1)])),_:2},1024),V.value===e?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),"city"===z.value?(u(!0),f(h,{key:2},y(P.value,(e=>(u(),d(w,{key:e.cityCode||e.cityName,class:p(["list-item",{selected:F.value===e}]),onClick:a=>(e=>{F.value=e,E.value=null,R.value=null,e.districts&&1===e.districts.length?(E.value=e.districts[0],z.value="hospital"):z.value="district"})(e)},{default:r((()=>[_(l,null,{default:r((()=>[v(m(e.cityName),1)])),_:2},1024),F.value===e?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),"district"===z.value?(u(!0),f(h,{key:3},y(D.value,(e=>(u(),d(w,{key:e.districtCode||e.districtName,class:p(["list-item",{selected:E.value===e}]),onClick:a=>(e=>{E.value=e,R.value=null,T.value="",z.value="hospital"})(e)},{default:r((()=>[_(l,null,{default:r((()=>[v(m(e.districtName),1)])),_:2},1024),E.value===e?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),"hospital"===z.value?(u(!0),f(h,{key:4},y(O.value,(e=>(u(),d(w,{key:e.id,class:p(["list-item",{selected:R.value&&R.value.id===e.id}]),onClick:a=>J(e)},{default:r((()=>[_(l,null,{default:r((()=>[v(m(e.name),1)])),_:2},1024),R.value&&R.value.id===e.id?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),M.value?(u(),d(j,{key:5,mode:"data",text:"暂无数据",marginTop:"60"})):g("",!0)])),_:1})])),_:1})])),_:1},8,["show"])}}},[["__scopeId","data-v-9f38eb13"]]),Y=e({__name:"myinfo",setup(e){const n=a({}),b=x({gender:"",province_code:"",city_code:"",district_code:"",address:"",hospital:"",hospital_province_code:"",hospital_city_code:"",hospital_district_code:"",emergency_contact:"",emergency_phone:"",tag:"",documents:[],sign_income:"",sign_privacy:"",sign_privacy_jhr:"",sign_promise:"",income_amount:""}),Y=a(!1),q=a(!0),H=a(!1),L=a(!1),Q=a(""),W=a(!1),X=a([]),Z=a([]),ee=a(null),ae=()=>{if(!Z.value.length)return $({title:"医院列表加载中,请稍候",icon:"none"}),void Ie();ee.value&&ee.value.open({hospital:b.hospital,province_code:b.hospital_province_code,city_code:b.hospital_city_code,district_code:b.hospital_district_code})},le=e=>{b.hospital=e.hospitalName||"",b.hospital_province_code=e.province_code||"",b.hospital_city_code=e.city_code||"",b.hospital_district_code=e.district_code||""},te=x({income_amount:"",guardian_name:"",guardian_id_card:"",guardian_relation:""}),ie=async()=>{try{const e=await z("/api/mp/subscribeConfig");e.data&&e.data.audit_result&&(Q.value=e.data.audit_result)}catch(e){}},ce=a([]),se=a([[],[],[]]),ne=a([0,0,0]),oe=l((()=>{const e=n.value.id_card||"";return 18===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),ue=l((()=>{const e=n.value.phone||"";return 11===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),de=l((()=>b.sign_income||n.value.sign_income)),re=l((()=>b.sign_privacy||n.value.sign_privacy)),_e=l((()=>b.sign_privacy_jhr||n.value.sign_privacy_jhr)),ve=l((()=>b.sign_promise||n.value.sign_promise)),pe=l((()=>{const e=n.value.id_card||"";if(18!==e.length)return!1;const a=parseInt(e.substring(6,10)),l=parseInt(e.substring(10,12)),t=parseInt(e.substring(12,14)),i=new Date;let c=i.getFullYear()-a;const s=i.getMonth()+1-l;return(s<0||0===s&&i.getDate(){const e=[];if(b.province_code){const a=ce.value.find((e=>e.code===b.province_code));a&&e.push(a.name)}if(b.city_code){const a=ce.value.find((e=>e.code===b.province_code));if(a&&a.children){const l=a.children.find((e=>e.code===b.city_code));l&&e.push(l.name)}}if(b.district_code){const a=ce.value.find((e=>e.code===b.province_code));if(a&&a.children){const l=a.children.find((e=>e.code===b.city_code));if(l&&l.children){const a=l.children.find((e=>e.code===b.district_code));a&&e.push(a.name)}}}return e.join(" ")})),ge=e=>{"income"===e.type?(b.sign_income=e.url,e.amount&&(b.income_amount=e.amount,te.income_amount=e.amount)):"privacy"===e.type?b.sign_privacy=e.url:"privacy_jhr"===e.type?(b.sign_privacy_jhr=e.url,e.guardianName&&(te.guardian_name=e.guardianName),e.guardianIdCard&&(te.guardian_id_card=e.guardianIdCard),e.guardianRelation&&(te.guardian_relation=e.guardianRelation)):"promise"===e.type&&(b.sign_promise=e.url)};w((async()=>{I("signResult",ge),q.value=!0;try{await ye(),await Promise.all([xe(),ie(),we(),Ie()])}finally{q.value=!1}})),j((()=>{N("signResult",ge)}));const fe=e=>{let a=`/pages/sign/sign?type=${e}`;if("income"===e){const e=b.income_amount||te.income_amount||"";e&&(a+=`&amount=${encodeURIComponent(e)}`)}if("privacy_jhr"===e){const e=te.guardian_name||"",l=te.guardian_id_card||"",t=te.guardian_relation||"";e&&(a+=`&guardianName=${encodeURIComponent(e)}`),l&&(a+=`&guardianIdCard=${encodeURIComponent(l)}`),t&&(a+=`&guardianRelation=${encodeURIComponent(t)}`)}A({url:a})},he=e=>{const a={income:b.sign_income||n.value.sign_income,privacy:b.sign_privacy||n.value.sign_privacy,privacy_jhr:b.sign_privacy_jhr||n.value.sign_privacy_jhr,promise:b.sign_promise||n.value.sign_promise}[e];a&&B({urls:[a],current:0})},ye=async()=>{try{const e=await z("/common/regions");ce.value=e.data||[],ke()}catch(e){}},ke=(e=0,a=0)=>{const l=ce.value,t=l.map((e=>e.name)),i=l[e]&&l[e].children||[],c=i.map((e=>e.name)),s=(i[a]&&i[a].children||[]).map((e=>e.name));se.value=[t,c,s]},Ce=e=>{const{columnIndex:a,index:l}=e;if(0===a)ke(l,0),ne.value=[l,0,0];else if(1===a){const e=ne.value[0];ke(e,l),ne.value=[e,l,0]}},be=e=>{const a=e.indexs||e.index||[0,0,0],l=ce.value[a[0]],t=l&&l.children?l.children[a[1]]:null,i=t&&t.children?t.children[a[2]]:null;b.province_code=l?l.code:"",b.city_code=t?t.code:"",b.district_code=i?i.code:"",H.value=!1},xe=async()=>{try{const e=await z("/api/mp/myInfo");if(!e.data)return;if(n.value=e.data,b.gender=e.data.gender||"",b.province_code=e.data.province_code||"",b.city_code=e.data.city_code||"",b.district_code=e.data.district_code||"",b.address=e.data.address||"",b.hospital=e.data.hospital||"",b.hospital_province_code=e.data.hospital_province_code||"",b.hospital_city_code=e.data.hospital_city_code||"",b.hospital_district_code=e.data.hospital_district_code||"",b.emergency_contact=e.data.emergency_contact||"",b.emergency_phone=e.data.emergency_phone||"",b.tag=e.data.tag||"",b.documents=e.data.documents||[],b.sign_income=e.data.sign_income||"",b.sign_privacy=e.data.sign_privacy||"",b.sign_privacy_jhr=e.data.sign_privacy_jhr||"",b.sign_promise=e.data.sign_promise||"",b.income_amount=e.data.income_amount||"",te.income_amount=e.data.income_amount||"",te.guardian_name=e.data.guardian_name||"",te.guardian_id_card=e.data.guardian_id_card||"",te.guardian_relation=e.data.guardian_relation||"",b.province_code&&ce.value.length){const e=ce.value.findIndex((e=>e.code===b.province_code));if(e>=0){const a=ce.value[e].children||[],l=a.findIndex((e=>e.code===b.city_code)),t=l>=0?l:0,i=(a[t]&&a[t].children||[]).findIndex((e=>e.code===b.district_code));ke(e,t),ne.value=[e,t,i>=0?i:0]}}}catch(e){}},we=async()=>{try{const e=await z("/common/tagOptions");X.value=e.data||[]}catch(e){}},Ie=async()=>{try{const e=await z("/common/hospitalTree");Z.value=e.data||[]}catch(e){}},je=()=>{S({count:9-b.documents.length,sizeType:["compressed"],sourceType:["album","camera"],success:async e=>{for(const l of e.tempFilePaths)try{const e=await O("/api/mp/upload",{filePath:l,name:"file"});e.data&&e.data.url&&b.documents.push(e.data.url)}catch(a){}}})},Ne=()=>{A({url:"/pages/content/content?key=patient_information_sheet"})},ze=async()=>W.value?n.value.gender||b.gender?b.province_code&&b.city_code&&b.district_code?b.address.trim()?b.emergency_contact&&b.emergency_phone?b.emergency_phone===n.value.phone?$({title:"紧急联系人电话不能与本人手机号一致",icon:"none"}):b.hospital&&b.hospital.trim()?b.tag?b.documents&&0!==b.documents.length?de.value?re.value?pe.value&&!_e.value?$({title:"请签署个人信息处理同意书(监护人)",icon:"none"}):ve.value?void(1!==n.value.status?await Ve():L.value=!0):$({title:"请签署声明与承诺",icon:"none"}):$({title:"请签署个人信息处理同意书",icon:"none"}):$({title:"请签署个人可支配收入声明",icon:"none"}):$({title:"请至少上传一份检查报告或诊断证明",icon:"none"}):$({title:"请选择癌种",icon:"none"}):$({title:"请填写医院名称",icon:"none"}):$({title:"请填写紧急联系人信息",icon:"none"}):$({title:"请填写详细地址",icon:"none"}):$({title:"请选择省市区",icon:"none"}):$({title:"请选择性别",icon:"none"}):$({title:"请阅读并同意《患者告知书》",icon:"none"}),Ve=async()=>{L.value=!1,await new Promise((e=>{if(!Q.value)return e(!1);e(!1)})),Y.value=!0;try{const e={gender:n.value.gender||b.gender,province_code:b.province_code,city_code:b.city_code,district_code:b.district_code,address:b.address.trim(),hospital:b.hospital,hospital_province_code:b.hospital_province_code,hospital_city_code:b.hospital_city_code,hospital_district_code:b.hospital_district_code,emergency_contact:b.emergency_contact,emergency_phone:b.emergency_phone,tag:b.tag,documents:b.documents,sign_income:b.sign_income,sign_privacy:b.sign_privacy,sign_privacy_jhr:b.sign_privacy_jhr,sign_promise:b.sign_promise,income_amount:b.income_amount||null,guardian_name:te.guardian_name||"",guardian_id_card:te.guardian_id_card||"",guardian_relation:te.guardian_relation||""};await M("/api/mp/saveMyInfo",e),$({title:"提交成功",icon:"success"}),setTimeout((()=>G()),1500)}catch(e){e&&e.msg&&$({title:e.msg,icon:"none"})}finally{Y.value=!1}};return(e,a)=>{const l=t(c("u-loading-page"),V),x=t(c("u-icon"),i),w=k,I=C,j=t(c("u-input"),s),N=t(c("u-radio"),F),z=t(c("u-radio-group"),E),$=J,A=t(c("u-checkbox"),R),S=t(c("u-checkbox-group"),T),O=t(c("u-button"),U),M=t(c("u-picker"),P),G=t(c("hospital-picker"),K),Q=t(c("u-popup"),o);return u(),d(I,{class:"page"},{default:r((()=>[_(l,{loading:q.value,"loading-text":"加载中..."},null,8,["loading"]),2===n.value.status&&n.value.reject_reason?(u(),d(I,{key:0,class:"reject-tip"},{default:r((()=>[_(x,{name:"warning-fill",size:"20",color:"#fa8c16"}),_(w,{class:"reject-text"},{default:r((()=>[v("驳回原因:"+m(n.value.reject_reason),1)])),_:1})])),_:1})):g("",!0),_(I,{class:"section"},{default:r((()=>[_(I,{class:"section-title"},{default:r((()=>[_(x,{name:"account-fill",size:"18",color:"#0e63e3"}),_(w,null,{default:r((()=>[v("基本信息")])),_:1})])),_:1}),_(I,{class:"info-compact"},{default:r((()=>[_(I,{class:"info-compact-row"},{default:r((()=>[_(w,{class:"info-compact-item"},{default:r((()=>[v("姓名:"+m(n.value.name),1)])),_:1}),n.value.gender?(u(),d(w,{key:0,class:"info-compact-item"},{default:r((()=>[v("性别:"+m(n.value.gender),1)])),_:1})):g("",!0)])),_:1}),_(I,{class:"info-compact-row"},{default:r((()=>[_(w,{class:"info-compact-item"},{default:r((()=>[v("身份证:"+m(oe.value),1)])),_:1}),_(w,{class:"info-compact-item"},{default:r((()=>[v("手机号:"+m(ue.value),1)])),_:1})])),_:1})])),_:1}),n.value.gender?g("",!0):(u(),d(I,{key:0,class:"form-group"},{default:r((()=>[_(w,{class:"form-label"},{default:r((()=>[v("性别")])),_:1}),_(I,{class:"gender-row"},{default:r((()=>[_(I,{class:p(["gender-item",{active:"男"===b.gender}]),onClick:a[0]||(a[0]=e=>b.gender="男")},{default:r((()=>[v("男")])),_:1},8,["class"]),_(I,{class:p(["gender-item",{active:"女"===b.gender}]),onClick:a[1]||(a[1]=e=>b.gender="女")},{default:r((()=>[v("女")])),_:1},8,["class"])])),_:1})])),_:1})),_(I,{class:"form-group"},{default:r((()=>[_(w,{class:"form-label"},{default:r((()=>[v("联系地址")])),_:1}),_(I,{class:"region-row",onClick:a[2]||(a[2]=e=>H.value=!0)},{default:r((()=>[_(w,{class:p(["region-text",me.value?"":"placeholder"])},{default:r((()=>[v(m(me.value||"请选择省/市/区"),1)])),_:1},8,["class"]),_(w,{class:"arrow"},{default:r((()=>[v("›")])),_:1})])),_:1}),_(j,{modelValue:b.address,"onUpdate:modelValue":a[3]||(a[3]=e=>b.address=e),placeholder:"详细街道地址",border:"surround",customStyle:{marginTop:"16rpx"}},null,8,["modelValue"])])),_:1}),_(I,{class:"form-group"},{default:r((()=>[_(w,{class:"form-label"},{default:r((()=>[v("紧急联系人")])),_:1}),_(I,{class:"contact-row"},{default:r((()=>[_(I,{class:"contact-input"},{default:r((()=>[_(j,{modelValue:b.emergency_contact,"onUpdate:modelValue":a[4]||(a[4]=e=>b.emergency_contact=e),placeholder:"联系人姓名",border:"surround"},null,8,["modelValue"])])),_:1}),_(I,{class:"contact-input"},{default:r((()=>[_(j,{modelValue:b.emergency_phone,"onUpdate:modelValue":a[5]||(a[5]=e=>b.emergency_phone=e),type:"number",placeholder:"联系人电话",border:"surround",maxlength:"11"},null,8,["modelValue"])])),_:1})])),_:1})])),_:1}),_(I,{class:"form-group"},{default:r((()=>[_(w,{class:"form-label"},{default:r((()=>[v("医院名称")])),_:1}),_(I,{class:"region-row",onClick:ae},{default:r((()=>[_(w,{class:p(["region-text",b.hospital?"":"placeholder"])},{default:r((()=>[v(m(b.hospital||"请选择就诊医院"),1)])),_:1},8,["class"]),_(w,{class:"arrow"},{default:r((()=>[v("›")])),_:1})])),_:1})])),_:1}),_(I,{class:"form-group"},{default:r((()=>[_(w,{class:"form-label"},{default:r((()=>[v("癌种")])),_:1}),_(z,{modelValue:b.tag,"onUpdate:modelValue":a[6]||(a[6]=e=>b.tag=e),placement:"row",wrap:!0},{default:r((()=>[(u(!0),f(h,null,y(X.value,(e=>(u(),d(N,{key:e,label:e,name:e,activeColor:"#0E63E3",customStyle:{marginRight:"24rpx",marginBottom:"16rpx"}},null,8,["label","name"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1}),_(I,{class:"section"},{default:r((()=>[_(I,{class:"section-title"},{default:r((()=>[_(x,{name:"attach",size:"18",color:"#fa8c16"}),_(w,null,{default:r((()=>[v("资料上传")])),_:1})])),_:1}),_(I,{class:"upload-tip"},{default:r((()=>[v("请上传您的检查报告单或出院诊断证明书,上传图片请尽量平整清晰。可上传多张。")])),_:1}),_(I,{class:"upload-row"},{default:r((()=>[(u(!0),f(h,null,y(b.documents,((e,a)=>(u(),d(I,{class:"upload-item",key:a},{default:r((()=>[_($,{class:"upload-img",src:e,mode:"aspectFill",onClick:e=>(e=>{B({urls:b.documents,current:e})})(a)},null,8,["src","onClick"]),_(I,{class:"upload-del",onClick:e=>b.documents.splice(a,1)},{default:r((()=>[v("×")])),_:2},1032,["onClick"])])),_:2},1024)))),128)),_(I,{class:"upload-box",onClick:je},{default:r((()=>[_(w,{class:"upload-icon"},{default:r((()=>[v("+")])),_:1}),_(w,{class:"upload-text"},{default:r((()=>[v("上传图片")])),_:1})])),_:1})])),_:1})])),_:1}),_(I,{class:"section"},{default:r((()=>[_(I,{class:"section-title"},{default:r((()=>[_(x,{name:"edit-pen-fill",size:"18",color:"#52c41a"}),_(w,null,{default:r((()=>[v("授权签名")])),_:1})])),_:1}),_(I,{class:"sign-item"},{default:r((()=>[_(I,{class:"sign-left"},{default:r((()=>[_(w,{class:"sign-name"},{default:r((()=>[v("个人可支配收入声明")])),_:1}),_(w,{class:p(["sign-status",de.value?"signed":""])},{default:r((()=>[v(m(de.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),de.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[_(I,{class:"sign-btn view",onClick:a[7]||(a[7]=e=>he("income"))},{default:r((()=>[v("查看")])),_:1}),_(I,{class:"sign-btn resign",onClick:a[8]||(a[8]=e=>fe("income"))},{default:r((()=>[v("重签")])),_:1})])),_:1})):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[9]||(a[9]=e=>fe("income"))},{default:r((()=>[v("去签署")])),_:1}))])),_:1}),_(I,{class:"sign-item"},{default:r((()=>[_(I,{class:"sign-left"},{default:r((()=>[_(w,{class:"sign-name"},{default:r((()=>[v("个人信息处理同意书")])),_:1}),_(w,{class:p(["sign-status",re.value?"signed":""])},{default:r((()=>[v(m(re.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),re.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[_(I,{class:"sign-btn view",onClick:a[10]||(a[10]=e=>he("privacy"))},{default:r((()=>[v("查看")])),_:1}),_(I,{class:"sign-btn resign",onClick:a[11]||(a[11]=e=>fe("privacy"))},{default:r((()=>[v("重签")])),_:1})])),_:1})):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[12]||(a[12]=e=>fe("privacy"))},{default:r((()=>[v("去签署")])),_:1}))])),_:1}),pe.value?(u(),d(I,{key:0,class:"sign-item"},{default:r((()=>[_(I,{class:"sign-left"},{default:r((()=>[_(w,{class:"sign-name"},{default:r((()=>[v("个人信息处理同意书(监护人)")])),_:1}),_(w,{class:p(["sign-status",_e.value?"signed":""])},{default:r((()=>[v(m(_e.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),_e.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[_(I,{class:"sign-btn view",onClick:a[13]||(a[13]=e=>he("privacy_jhr"))},{default:r((()=>[v("查看")])),_:1}),_(I,{class:"sign-btn resign",onClick:a[14]||(a[14]=e=>fe("privacy_jhr"))},{default:r((()=>[v("重签")])),_:1})])),_:1})):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[15]||(a[15]=e=>fe("privacy_jhr"))},{default:r((()=>[v("去签署")])),_:1}))])),_:1})):g("",!0),_(I,{class:"sign-item"},{default:r((()=>[_(I,{class:"sign-left"},{default:r((()=>[_(w,{class:"sign-name"},{default:r((()=>[v("声明与承诺")])),_:1}),_(w,{class:p(["sign-status",ve.value?"signed":""])},{default:r((()=>[v(m(ve.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),ve.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[_(I,{class:"sign-btn view",onClick:a[16]||(a[16]=e=>he("promise"))},{default:r((()=>[v("查看")])),_:1}),_(I,{class:"sign-btn resign",onClick:a[17]||(a[17]=e=>fe("promise"))},{default:r((()=>[v("重签")])),_:1})])),_:1})):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[18]||(a[18]=e=>fe("promise"))},{default:r((()=>[v("去签署")])),_:1}))])),_:1})])),_:1}),_(I,{class:"btn-wrap"},{default:r((()=>[_(I,{class:"agree-row",onClick:a[20]||(a[20]=e=>W.value=!W.value)},{default:r((()=>[_(S,null,{default:r((()=>[_(A,{checked:W.value,shape:"circle",activeColor:"#0E63E3",size:"18",onChange:a[19]||(a[19]=e=>W.value=!W.value)},null,8,["checked"])])),_:1}),_(w,{class:"agree-text"},{default:r((()=>[v("请阅读并同意")])),_:1}),_(w,{class:"agree-link",onClick:D(Ne,["stop"])},{default:r((()=>[v("《患者告知书》")])),_:1})])),_:1}),_(O,{text:"提交审核",loading:Y.value,onClick:ze,color:"#0E63E3",size:"large"},null,8,["loading"])])),_:1}),se.value[0].length?(u(),d(M,{key:1,show:H.value,columns:se.value,onConfirm:be,onCancel:a[21]||(a[21]=e=>H.value=!1),onChange:Ce,defaultIndex:ne.value},null,8,["show","columns","defaultIndex"])):g("",!0),_(G,{ref_key:"hospitalPickerRef",ref:ee,"hospital-data":Z.value,onConfirm:le},null,8,["hospital-data"]),_(Q,{show:L.value,mode:"center",round:"12",safeAreaInsetBottom:!1,onClose:a[23]||(a[23]=e=>L.value=!1)},{default:r((()=>[_(I,{class:"confirm-popup"},{default:r((()=>[_(I,{class:"confirm-title"},{default:r((()=>[v("提示")])),_:1}),_(I,{class:"confirm-content"},{default:r((()=>[v("您的资料审核已通过,如果重新提交审核会变为待审核,需要平台重新审核,是否确认提交?")])),_:1}),_(I,{class:"confirm-btns"},{default:r((()=>[_(O,{text:"取消",size:"normal",plain:!0,shape:"circle",onClick:a[22]||(a[22]=e=>L.value=!1)}),_(O,{text:"确认提交",size:"normal",color:"#0E63E3",shape:"circle",onClick:Ve})])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-11b8fe6e"]]);export{Y as default}; diff --git a/assets/pages-myinfo-myinfo.k9hfhPK2.js b/assets/pages-myinfo-myinfo.k9hfhPK2.js new file mode 100644 index 0000000..f0faba1 --- /dev/null +++ b/assets/pages-myinfo-myinfo.k9hfhPK2.js @@ -0,0 +1 @@ +import{_ as e,r as a,c as l,y as i,A as t,z as s,a7 as c,a8 as n,a4 as o,h as u,a as d,w as r,j as v,l as _,n as p,t as m,m as g,R as f,S as y,T as h,J as k,i as b,a9 as C,a1 as x,K as w,aa as I,ab as j,ac as N,b as V,ad as z,ae as F,af as R,ag as T,ah as E,a3 as U,ai as P,V as D,C as $,p as S,P as A,D as B,F as O,G as M,a5 as G,I as J}from"./index-BWvsB30X.js";const K=e({__name:"hospital-picker",props:{hospitalData:{type:Array,default:()=>[]}},emits:["confirm"],setup(e,{expose:x,emit:w}){const I=e,j=w,N=a(!1),V=a("province"),z=a(null),F=a(null),R=a(null),T=a(null),E=a(""),U=l((()=>I.hospitalData||[])),P=l((()=>z.value&&z.value.cities||[])),D=l((()=>F.value&&F.value.districts||[])),$=l((()=>R.value&&R.value.hospitals||[])),S=l((()=>!!E.value.trim())),A=l((()=>{const e=[];return U.value.forEach((a=>{(a.cities||[]).forEach((l=>{(l.districts||[]).forEach((i=>{(i.hospitals||[]).forEach((t=>{e.push({...t,_province:a,_city:l,_district:i,regionText:[a.provinceName,l.cityName,i.districtName].filter(Boolean).join(" ")})}))}))}))})),e})),B=l((()=>{const e=E.value.trim();return e?A.value.filter((a=>a.name.includes(e)||a.regionText&&a.regionText.includes(e))):[]})),O=l((()=>$.value)),M=l((()=>S.value?0===B.value.length:"province"===V.value?0===U.value.length:"city"===V.value?0===P.value.length:"district"===V.value?0===D.value.length:0===O.value.length)),G=e=>{V.value=e},J=e=>{e._province&&(z.value=e._province),e._city&&(F.value=e._city),e._district&&(R.value=e._district),T.value=e,K(),Y()},K=()=>{T.value&&j("confirm",{hospitalId:T.value.id,hospitalName:T.value.name,province_code:T.value.province_code||z.value&&z.value.provinceCode||"",city_code:T.value.city_code||F.value&&F.value.cityCode||"",district_code:T.value.district_code||R.value&&R.value.districtCode||""})},Y=()=>{N.value=!1},q=(e,a)=>{for(const l of U.value)for(const i of l.cities||[])for(const t of i.districts||[]){const s=(t.hospitals||[]).find((l=>a&&l.id===a||e&&l.name===e));if(s)return z.value=l,F.value=i,R.value=t,void(T.value=s)}};return x({open:(e={})=>{z.value=null,F.value=null,R.value=null,T.value=null,E.value="",V.value="province";const a=e.province_code||"",l=e.city_code||"",i=e.district_code||"",t=e.hospitalName||e.hospital||"",s=e.hospitalId||"";a&&(z.value=U.value.find((e=>e.provinceCode===a))||null,z.value&&l&&(F.value=(z.value.cities||[]).find((e=>e.cityCode===l))||null,F.value&&i&&(R.value=(F.value.districts||[]).find((e=>e.districtCode===i))||null))),R.value||!t&&!s||q(t,s),R.value?(T.value=(R.value.hospitals||[]).find((e=>s&&e.id===s||t&&e.name===t))||null,V.value="hospital"):F.value?V.value="district":z.value&&(V.value="city"),N.value=!0}}),(e,a)=>{const l=k,x=i(s("u-icon"),t),w=b,I=i(s("u--input"),c),j=i(s("u-empty"),n),$=C,A=i(s("u-popup"),o);return u(),d(A,{show:N.value,mode:"bottom",round:"16",closeOnClickOverlay:!0,safeAreaInsetBottom:!0,onClose:Y},{default:r((()=>[v(w,{class:"picker-wrap"},{default:r((()=>[v(w,{class:"picker-header"},{default:r((()=>[v(l,{class:"picker-title"},{default:r((()=>[_("选择就诊医院")])),_:1}),v(x,{name:"close",size:"36rpx",color:"#999",onClick:Y})])),_:1}),v(w,{class:"search-bar"},{default:r((()=>[v(I,{modelValue:E.value,"onUpdate:modelValue":a[0]||(a[0]=e=>E.value=e),placeholder:"搜索医院名称",prefixIcon:"search",prefixIconStyle:"color: #999",border:"surround",shape:"circle",clearable:""},null,8,["modelValue"])])),_:1}),v(w,{class:"tab-bar"},{default:r((()=>[v(w,{class:p(["tab-item",{active:"province"===V.value}]),onClick:a[1]||(a[1]=e=>G("province"))},{default:r((()=>[_(m(z.value?z.value.provinceName:"请选择省份"),1)])),_:1},8,["class"]),z.value?(u(),d(w,{key:0,class:p(["tab-item",{active:"city"===V.value}]),onClick:a[2]||(a[2]=e=>G("city"))},{default:r((()=>[_(m(F.value?F.value.cityName:"请选择城市"),1)])),_:1},8,["class"])):g("",!0),F.value?(u(),d(w,{key:1,class:p(["tab-item",{active:"district"===V.value}]),onClick:a[3]||(a[3]=e=>G("district"))},{default:r((()=>[_(m(R.value?R.value.districtName:"请选择区县"),1)])),_:1},8,["class"])):g("",!0),R.value?(u(),d(w,{key:2,class:p(["tab-item",{active:"hospital"===V.value}]),onClick:a[4]||(a[4]=e=>G("hospital"))},{default:r((()=>[_(m(T.value?T.value.name:"请选择医院"),1)])),_:1},8,["class"])):g("",!0)])),_:1}),v($,{class:"list-wrap","scroll-y":""},{default:r((()=>[S.value?(u(!0),f(y,{key:0},h(B.value,(e=>(u(),d(w,{key:e.id,class:p(["list-item",{selected:T.value&&T.value.id===e.id}]),onClick:a=>J(e)},{default:r((()=>[v(w,{class:"hospital-result"},{default:r((()=>[v(l,{class:"hospital-name"},{default:r((()=>[_(m(e.name),1)])),_:2},1024),v(l,{class:"hospital-region"},{default:r((()=>[_(m(e.regionText||"地区未设置"),1)])),_:2},1024)])),_:2},1024),T.value&&T.value.id===e.id?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):"province"===V.value?(u(!0),f(y,{key:1},h(U.value,(e=>(u(),d(w,{key:e.provinceCode||e.provinceName,class:p(["list-item",{selected:z.value===e}]),onClick:a=>(e=>{z.value=e,F.value=null,R.value=null,T.value=null,e.cities&&1===e.cities.length?(F.value=e.cities[0],F.value.districts&&1===F.value.districts.length?(R.value=F.value.districts[0],V.value="hospital"):V.value="district"):V.value="city"})(e)},{default:r((()=>[v(l,null,{default:r((()=>[_(m(e.provinceName),1)])),_:2},1024),z.value===e?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),"city"===V.value?(u(!0),f(y,{key:2},h(P.value,(e=>(u(),d(w,{key:e.cityCode||e.cityName,class:p(["list-item",{selected:F.value===e}]),onClick:a=>(e=>{F.value=e,R.value=null,T.value=null,e.districts&&1===e.districts.length?(R.value=e.districts[0],V.value="hospital"):V.value="district"})(e)},{default:r((()=>[v(l,null,{default:r((()=>[_(m(e.cityName),1)])),_:2},1024),F.value===e?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),"district"===V.value?(u(!0),f(y,{key:3},h(D.value,(e=>(u(),d(w,{key:e.districtCode||e.districtName,class:p(["list-item",{selected:R.value===e}]),onClick:a=>(e=>{R.value=e,T.value=null,E.value="",V.value="hospital"})(e)},{default:r((()=>[v(l,null,{default:r((()=>[_(m(e.districtName),1)])),_:2},1024),R.value===e?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),"hospital"===V.value?(u(!0),f(y,{key:4},h(O.value,(e=>(u(),d(w,{key:e.id,class:p(["list-item",{selected:T.value&&T.value.id===e.id}]),onClick:a=>J(e)},{default:r((()=>[v(l,null,{default:r((()=>[_(m(e.name),1)])),_:2},1024),T.value&&T.value.id===e.id?(u(),d(x,{key:0,name:"checkmark",color:"#FF7700",size:"28rpx"})):g("",!0)])),_:2},1032,["class","onClick"])))),128)):g("",!0),M.value?(u(),d(j,{key:5,mode:"data",text:"暂无数据",marginTop:"60"})):g("",!0)])),_:1})])),_:1})])),_:1},8,["show"])}}},[["__scopeId","data-v-9f38eb13"]]),Y=e({__name:"myinfo",setup(e){const n=a({}),o=x({gender:"",province_code:"",city_code:"",district_code:"",address:"",hospital:"",hospital_province_code:"",hospital_city_code:"",hospital_district_code:"",emergency_contact:"",emergency_phone:"",tag:"",documents:[],sign_income:"",sign_privacy:"",sign_privacy_jhr:"",sign_promise:"",income_amount:""}),C=a(!1),Y=a(!0),q=a(!1),H=a(""),L=a(!1),Q=a([]),W=a([]),X=a(null),Z=l((()=>1===Number(n.value.status))),ee=l((()=>Z.value?"已通过审核":"提交审核")),ae=()=>{$({title:"资料已审核通过,不能修改",icon:"none"})},le=e=>{if(Z.value)return ae();o.gender=e},ie=()=>{if(Z.value)return ae();q.value=!0},te=()=>Z.value?ae():W.value.length?void(X.value&&X.value.open({hospital:o.hospital,province_code:o.hospital_province_code,city_code:o.hospital_city_code,district_code:o.hospital_district_code})):($({title:"医院列表加载中,请稍候",icon:"none"}),void Ve()),se=e=>{Z.value||(o.hospital=e.hospitalName||"",o.hospital_province_code=e.province_code||"",o.hospital_city_code=e.city_code||"",o.hospital_district_code=e.district_code||"")},ce=x({income_amount:"",guardian_name:"",guardian_id_card:"",guardian_relation:""}),ne=async()=>{try{const e=await V("/api/mp/subscribeConfig");e.data&&e.data.audit_result&&(H.value=e.data.audit_result)}catch(e){}},oe=a([]),ue=a([[],[],[]]),de=a([0,0,0]),re=l((()=>{const e=n.value.id_card||"";return 18===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),ve=l((()=>{const e=n.value.phone||"";return 11===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),_e=l((()=>o.sign_income||n.value.sign_income)),pe=l((()=>o.sign_privacy||n.value.sign_privacy)),me=l((()=>o.sign_privacy_jhr||n.value.sign_privacy_jhr)),ge=l((()=>o.sign_promise||n.value.sign_promise)),fe=l((()=>{const e=n.value.id_card||"";if(18!==e.length)return!1;const a=parseInt(e.substring(6,10)),l=parseInt(e.substring(10,12)),i=parseInt(e.substring(12,14)),t=new Date;let s=t.getFullYear()-a;const c=t.getMonth()+1-l;return(c<0||0===c&&t.getDate(){const e=[];if(o.province_code){const a=oe.value.find((e=>e.code===o.province_code));a&&e.push(a.name)}if(o.city_code){const a=oe.value.find((e=>e.code===o.province_code));if(a&&a.children){const l=a.children.find((e=>e.code===o.city_code));l&&e.push(l.name)}}if(o.district_code){const a=oe.value.find((e=>e.code===o.province_code));if(a&&a.children){const l=a.children.find((e=>e.code===o.city_code));if(l&&l.children){const a=l.children.find((e=>e.code===o.district_code));a&&e.push(a.name)}}}return e.join(" ")})),he=e=>{"income"===e.type?(o.sign_income=e.url,e.amount&&(o.income_amount=e.amount,ce.income_amount=e.amount)):"privacy"===e.type?o.sign_privacy=e.url:"privacy_jhr"===e.type?(o.sign_privacy_jhr=e.url,e.guardianName&&(ce.guardian_name=e.guardianName),e.guardianIdCard&&(ce.guardian_id_card=e.guardianIdCard),e.guardianRelation&&(ce.guardian_relation=e.guardianRelation)):"promise"===e.type&&(o.sign_promise=e.url)};w((async()=>{I("signResult",he),Y.value=!0;try{await Ce(),await Promise.all([je(),ne(),Ne(),Ve()])}finally{Y.value=!1}})),j((()=>{N("signResult",he)}));const ke=e=>{if(Z.value)return ae();let a=`/pages/sign/sign?type=${e}`;if("income"===e){const e=o.income_amount||ce.income_amount||"";e&&(a+=`&amount=${encodeURIComponent(e)}`)}if("privacy_jhr"===e){const e=ce.guardian_name||"",l=ce.guardian_id_card||"",i=ce.guardian_relation||"";e&&(a+=`&guardianName=${encodeURIComponent(e)}`),l&&(a+=`&guardianIdCard=${encodeURIComponent(l)}`),i&&(a+=`&guardianRelation=${encodeURIComponent(i)}`)}S({url:a})},be=e=>{const a={income:o.sign_income||n.value.sign_income,privacy:o.sign_privacy||n.value.sign_privacy,privacy_jhr:o.sign_privacy_jhr||n.value.sign_privacy_jhr,promise:o.sign_promise||n.value.sign_promise}[e];a&&A({urls:[a],current:0})},Ce=async()=>{try{const e=await V("/common/regions");oe.value=e.data||[],xe()}catch(e){}},xe=(e=0,a=0)=>{const l=oe.value,i=l.map((e=>e.name)),t=l[e]&&l[e].children||[],s=t.map((e=>e.name)),c=(t[a]&&t[a].children||[]).map((e=>e.name));ue.value=[i,s,c]},we=e=>{const{columnIndex:a,index:l}=e;if(0===a)xe(l,0),de.value=[l,0,0];else if(1===a){const e=de.value[0];xe(e,l),de.value=[e,l,0]}},Ie=e=>{if(Z.value)return void(q.value=!1);const a=e.indexs||e.index||[0,0,0],l=oe.value[a[0]],i=l&&l.children?l.children[a[1]]:null,t=i&&i.children?i.children[a[2]]:null;o.province_code=l?l.code:"",o.city_code=i?i.code:"",o.district_code=t?t.code:"",q.value=!1},je=async()=>{try{const e=await V("/api/mp/myInfo");if(!e.data)return;if(n.value=e.data,o.gender=e.data.gender||"",o.province_code=e.data.province_code||"",o.city_code=e.data.city_code||"",o.district_code=e.data.district_code||"",o.address=e.data.address||"",o.hospital=e.data.hospital||"",o.hospital_province_code=e.data.hospital_province_code||"",o.hospital_city_code=e.data.hospital_city_code||"",o.hospital_district_code=e.data.hospital_district_code||"",o.emergency_contact=e.data.emergency_contact||"",o.emergency_phone=e.data.emergency_phone||"",o.tag=e.data.tag||"",o.documents=e.data.documents||[],o.sign_income=e.data.sign_income||"",o.sign_privacy=e.data.sign_privacy||"",o.sign_privacy_jhr=e.data.sign_privacy_jhr||"",o.sign_promise=e.data.sign_promise||"",o.income_amount=e.data.income_amount||"",ce.income_amount=e.data.income_amount||"",ce.guardian_name=e.data.guardian_name||"",ce.guardian_id_card=e.data.guardian_id_card||"",ce.guardian_relation=e.data.guardian_relation||"",o.province_code&&oe.value.length){const e=oe.value.findIndex((e=>e.code===o.province_code));if(e>=0){const a=oe.value[e].children||[],l=a.findIndex((e=>e.code===o.city_code)),i=l>=0?l:0,t=(a[i]&&a[i].children||[]).findIndex((e=>e.code===o.district_code));xe(e,i),de.value=[e,i,t>=0?t:0]}}}catch(e){}},Ne=async()=>{try{const e=await V("/common/tagOptions");Q.value=e.data||[]}catch(e){}},Ve=async()=>{try{const e=await V("/common/hospitalTree");W.value=e.data||[]}catch(e){}},ze=()=>{if(Z.value)return ae();B({count:9-o.documents.length,sizeType:["compressed"],sourceType:["album","camera"],success:async e=>{for(const l of e.tempFilePaths)try{const e=await O("/api/mp/upload",{filePath:l,name:"file"});e.data&&e.data.url&&o.documents.push(e.data.url)}catch(a){}}})},Fe=()=>{S({url:"/pages/content/content?key=patient_information_sheet"})},Re=async()=>Z.value?ae():L.value?n.value.gender||o.gender?o.province_code&&o.city_code&&o.district_code?o.address.trim()?o.emergency_contact&&o.emergency_phone?o.emergency_phone===n.value.phone?$({title:"紧急联系人电话不能与本人手机号一致",icon:"none"}):o.hospital&&o.hospital.trim()?o.tag?o.documents&&0!==o.documents.length?_e.value?pe.value?fe.value&&!me.value?$({title:"请签署个人信息处理同意书(监护人)",icon:"none"}):ge.value?void(await Te()):$({title:"请签署声明与承诺",icon:"none"}):$({title:"请签署个人信息处理同意书",icon:"none"}):$({title:"请签署个人可支配收入声明",icon:"none"}):$({title:"请至少上传一份检查报告或诊断证明",icon:"none"}):$({title:"请选择癌种",icon:"none"}):$({title:"请填写医院名称",icon:"none"}):$({title:"请填写紧急联系人信息",icon:"none"}):$({title:"请填写详细地址",icon:"none"}):$({title:"请选择省市区",icon:"none"}):$({title:"请选择性别",icon:"none"}):$({title:"请阅读并同意《患者告知书》",icon:"none"}),Te=async()=>{if(Z.value)return ae();await new Promise((e=>{if(!H.value)return e(!1);e(!1)})),C.value=!0;try{const e={gender:n.value.gender||o.gender,province_code:o.province_code,city_code:o.city_code,district_code:o.district_code,address:o.address.trim(),hospital:o.hospital,hospital_province_code:o.hospital_province_code,hospital_city_code:o.hospital_city_code,hospital_district_code:o.hospital_district_code,emergency_contact:o.emergency_contact,emergency_phone:o.emergency_phone,tag:o.tag,documents:o.documents,sign_income:o.sign_income,sign_privacy:o.sign_privacy,sign_privacy_jhr:o.sign_privacy_jhr,sign_promise:o.sign_promise,income_amount:o.income_amount||null,guardian_name:ce.guardian_name||"",guardian_id_card:ce.guardian_id_card||"",guardian_relation:ce.guardian_relation||""};await M("/api/mp/saveMyInfo",e),$({title:"提交成功",icon:"success"}),setTimeout((()=>G()),1500)}catch(e){e&&e.msg&&$({title:e.msg,icon:"none"})}finally{C.value=!1}};return(e,a)=>{const l=i(s("u-loading-page"),z),x=i(s("u-icon"),t),w=k,I=b,j=i(s("u-input"),c),N=i(s("u-radio"),F),V=i(s("u-radio-group"),R),$=J,S=i(s("u-checkbox"),T),B=i(s("u-checkbox-group"),E),O=i(s("u-button"),U),M=i(s("u-picker"),P),G=i(s("hospital-picker"),K);return u(),d(I,{class:"page"},{default:r((()=>[v(l,{loading:Y.value,"loading-text":"加载中..."},null,8,["loading"]),2===n.value.status&&n.value.reject_reason?(u(),d(I,{key:0,class:"reject-tip"},{default:r((()=>[v(x,{name:"warning-fill",size:"20",color:"#fa8c16"}),v(w,{class:"reject-text"},{default:r((()=>[_("驳回原因:"+m(n.value.reject_reason),1)])),_:1})])),_:1})):g("",!0),v(I,{class:"section"},{default:r((()=>[v(I,{class:"section-title"},{default:r((()=>[v(x,{name:"account-fill",size:"18",color:"#0e63e3"}),v(w,null,{default:r((()=>[_("基本信息")])),_:1})])),_:1}),v(I,{class:"info-compact"},{default:r((()=>[v(I,{class:"info-compact-row"},{default:r((()=>[v(w,{class:"info-compact-item"},{default:r((()=>[_("姓名:"+m(n.value.name),1)])),_:1}),n.value.gender?(u(),d(w,{key:0,class:"info-compact-item"},{default:r((()=>[_("性别:"+m(n.value.gender),1)])),_:1})):g("",!0)])),_:1}),v(I,{class:"info-compact-row"},{default:r((()=>[v(w,{class:"info-compact-item"},{default:r((()=>[_("身份证:"+m(re.value),1)])),_:1}),v(w,{class:"info-compact-item"},{default:r((()=>[_("手机号:"+m(ve.value),1)])),_:1})])),_:1})])),_:1}),n.value.gender?g("",!0):(u(),d(I,{key:0,class:"form-group"},{default:r((()=>[v(w,{class:"form-label"},{default:r((()=>[_("性别")])),_:1}),v(I,{class:"gender-row"},{default:r((()=>[v(I,{class:p(["gender-item",{active:"男"===o.gender,disabled:Z.value}]),onClick:a[0]||(a[0]=e=>le("男"))},{default:r((()=>[_("男")])),_:1},8,["class"]),v(I,{class:p(["gender-item",{active:"女"===o.gender,disabled:Z.value}]),onClick:a[1]||(a[1]=e=>le("女"))},{default:r((()=>[_("女")])),_:1},8,["class"])])),_:1})])),_:1})),v(I,{class:"form-group"},{default:r((()=>[v(w,{class:"form-label"},{default:r((()=>[_("联系地址")])),_:1}),v(I,{class:p(["region-row",Z.value?"disabled":""]),onClick:ie},{default:r((()=>[v(w,{class:p(["region-text",ye.value?"":"placeholder"])},{default:r((()=>[_(m(ye.value||"请选择省/市/区"),1)])),_:1},8,["class"]),v(w,{class:"arrow"},{default:r((()=>[_("›")])),_:1})])),_:1},8,["class"]),v(j,{modelValue:o.address,"onUpdate:modelValue":a[2]||(a[2]=e=>o.address=e),disabled:Z.value,placeholder:"详细街道地址",border:"surround",customStyle:{marginTop:"16rpx"}},null,8,["modelValue","disabled"])])),_:1}),v(I,{class:"form-group"},{default:r((()=>[v(w,{class:"form-label"},{default:r((()=>[_("紧急联系人")])),_:1}),v(I,{class:"contact-row"},{default:r((()=>[v(I,{class:"contact-input"},{default:r((()=>[v(j,{modelValue:o.emergency_contact,"onUpdate:modelValue":a[3]||(a[3]=e=>o.emergency_contact=e),disabled:Z.value,placeholder:"联系人姓名",border:"surround"},null,8,["modelValue","disabled"])])),_:1}),v(I,{class:"contact-input"},{default:r((()=>[v(j,{modelValue:o.emergency_phone,"onUpdate:modelValue":a[4]||(a[4]=e=>o.emergency_phone=e),disabled:Z.value,type:"number",placeholder:"联系人电话",border:"surround",maxlength:"11"},null,8,["modelValue","disabled"])])),_:1})])),_:1})])),_:1}),v(I,{class:"form-group"},{default:r((()=>[v(w,{class:"form-label"},{default:r((()=>[_("医院名称")])),_:1}),v(I,{class:p(["region-row",Z.value?"disabled":""]),onClick:te},{default:r((()=>[v(w,{class:p(["region-text",o.hospital?"":"placeholder"])},{default:r((()=>[_(m(o.hospital||"请选择就诊医院"),1)])),_:1},8,["class"]),v(w,{class:"arrow"},{default:r((()=>[_("›")])),_:1})])),_:1},8,["class"])])),_:1}),v(I,{class:"form-group"},{default:r((()=>[v(w,{class:"form-label"},{default:r((()=>[_("癌种")])),_:1}),v(V,{modelValue:o.tag,"onUpdate:modelValue":a[5]||(a[5]=e=>o.tag=e),placement:"row",wrap:!0},{default:r((()=>[(u(!0),f(y,null,h(Q.value,(e=>(u(),d(N,{key:e,label:e,name:e,disabled:Z.value,activeColor:"#0E63E3",customStyle:{marginRight:"24rpx",marginBottom:"16rpx"}},null,8,["label","name","disabled"])))),128))])),_:1},8,["modelValue"])])),_:1})])),_:1}),v(I,{class:"section"},{default:r((()=>[v(I,{class:"section-title"},{default:r((()=>[v(x,{name:"attach",size:"18",color:"#fa8c16"}),v(w,null,{default:r((()=>[_("资料上传")])),_:1})])),_:1}),v(I,{class:"upload-tip"},{default:r((()=>[_("请上传您的检查报告单或出院诊断证明书,上传图片请尽量平整清晰。可上传多张。")])),_:1}),v(I,{class:"upload-row"},{default:r((()=>[(u(!0),f(y,null,h(o.documents,((e,a)=>(u(),d(I,{class:"upload-item",key:a},{default:r((()=>[v($,{class:"upload-img",src:e,mode:"aspectFill",onClick:e=>(e=>{A({urls:o.documents,current:e})})(a)},null,8,["src","onClick"]),Z.value?g("",!0):(u(),d(I,{key:0,class:"upload-del",onClick:e=>o.documents.splice(a,1)},{default:r((()=>[_("×")])),_:2},1032,["onClick"]))])),_:2},1024)))),128)),Z.value?g("",!0):(u(),d(I,{key:0,class:"upload-box",onClick:ze},{default:r((()=>[v(w,{class:"upload-icon"},{default:r((()=>[_("+")])),_:1}),v(w,{class:"upload-text"},{default:r((()=>[_("上传图片")])),_:1})])),_:1}))])),_:1})])),_:1}),v(I,{class:"section"},{default:r((()=>[v(I,{class:"section-title"},{default:r((()=>[v(x,{name:"edit-pen-fill",size:"18",color:"#52c41a"}),v(w,null,{default:r((()=>[_("授权签名")])),_:1})])),_:1}),v(I,{class:"sign-item"},{default:r((()=>[v(I,{class:"sign-left"},{default:r((()=>[v(w,{class:"sign-name"},{default:r((()=>[_("个人可支配收入声明")])),_:1}),v(w,{class:p(["sign-status",_e.value?"signed":""])},{default:r((()=>[_(m(_e.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),_e.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[v(I,{class:"sign-btn view",onClick:a[6]||(a[6]=e=>be("income"))},{default:r((()=>[_("查看")])),_:1}),Z.value?g("",!0):(u(),d(I,{key:0,class:"sign-btn resign",onClick:a[7]||(a[7]=e=>ke("income"))},{default:r((()=>[_("重签")])),_:1}))])),_:1})):Z.value?g("",!0):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[8]||(a[8]=e=>ke("income"))},{default:r((()=>[_("去签署")])),_:1}))])),_:1}),v(I,{class:"sign-item"},{default:r((()=>[v(I,{class:"sign-left"},{default:r((()=>[v(w,{class:"sign-name"},{default:r((()=>[_("个人信息处理同意书")])),_:1}),v(w,{class:p(["sign-status",pe.value?"signed":""])},{default:r((()=>[_(m(pe.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),pe.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[v(I,{class:"sign-btn view",onClick:a[9]||(a[9]=e=>be("privacy"))},{default:r((()=>[_("查看")])),_:1}),Z.value?g("",!0):(u(),d(I,{key:0,class:"sign-btn resign",onClick:a[10]||(a[10]=e=>ke("privacy"))},{default:r((()=>[_("重签")])),_:1}))])),_:1})):Z.value?g("",!0):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[11]||(a[11]=e=>ke("privacy"))},{default:r((()=>[_("去签署")])),_:1}))])),_:1}),fe.value?(u(),d(I,{key:0,class:"sign-item"},{default:r((()=>[v(I,{class:"sign-left"},{default:r((()=>[v(w,{class:"sign-name"},{default:r((()=>[_("个人信息处理同意书(监护人)")])),_:1}),v(w,{class:p(["sign-status",me.value?"signed":""])},{default:r((()=>[_(m(me.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),me.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[v(I,{class:"sign-btn view",onClick:a[12]||(a[12]=e=>be("privacy_jhr"))},{default:r((()=>[_("查看")])),_:1}),Z.value?g("",!0):(u(),d(I,{key:0,class:"sign-btn resign",onClick:a[13]||(a[13]=e=>ke("privacy_jhr"))},{default:r((()=>[_("重签")])),_:1}))])),_:1})):Z.value?g("",!0):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[14]||(a[14]=e=>ke("privacy_jhr"))},{default:r((()=>[_("去签署")])),_:1}))])),_:1})):g("",!0),v(I,{class:"sign-item"},{default:r((()=>[v(I,{class:"sign-left"},{default:r((()=>[v(w,{class:"sign-name"},{default:r((()=>[_("声明与承诺")])),_:1}),v(w,{class:p(["sign-status",ge.value?"signed":""])},{default:r((()=>[_(m(ge.value?"已签署":"未签署"),1)])),_:1},8,["class"])])),_:1}),ge.value?(u(),d(I,{key:0,class:"sign-btns"},{default:r((()=>[v(I,{class:"sign-btn view",onClick:a[15]||(a[15]=e=>be("promise"))},{default:r((()=>[_("查看")])),_:1}),Z.value?g("",!0):(u(),d(I,{key:0,class:"sign-btn resign",onClick:a[16]||(a[16]=e=>ke("promise"))},{default:r((()=>[_("重签")])),_:1}))])),_:1})):Z.value?g("",!0):(u(),d(I,{key:1,class:"sign-btn primary",onClick:a[17]||(a[17]=e=>ke("promise"))},{default:r((()=>[_("去签署")])),_:1}))])),_:1})])),_:1}),v(I,{class:"btn-wrap"},{default:r((()=>[Z.value?g("",!0):(u(),d(I,{key:0,class:"agree-row",onClick:a[19]||(a[19]=e=>L.value=!L.value)},{default:r((()=>[v(B,null,{default:r((()=>[v(S,{checked:L.value,shape:"circle",activeColor:"#0E63E3",size:"18",onChange:a[18]||(a[18]=e=>L.value=!L.value)},null,8,["checked"])])),_:1}),v(w,{class:"agree-text"},{default:r((()=>[_("请阅读并同意")])),_:1}),v(w,{class:"agree-link",onClick:D(Fe,["stop"])},{default:r((()=>[_("《患者告知书》")])),_:1})])),_:1})),v(O,{text:ee.value,disabled:Z.value,loading:C.value,onClick:Re,color:"#0E63E3",size:"large"},null,8,["text","disabled","loading"])])),_:1}),ue.value[0].length?(u(),d(M,{key:1,show:q.value,columns:ue.value,onConfirm:Ie,onCancel:a[20]||(a[20]=e=>q.value=!1),onChange:we,defaultIndex:de.value},null,8,["show","columns","defaultIndex"])):g("",!0),v(G,{ref_key:"hospitalPickerRef",ref:X,"hospital-data":W.value,onConfirm:se},null,8,["hospital-data"])])),_:1})}}},[["__scopeId","data-v-f6330c5f"]]);export{Y as default}; diff --git a/assets/pages-profile-profile.Dv32a-pg.js b/assets/pages-profile-profile.Dj2wm2ux.js similarity index 99% rename from assets/pages-profile-profile.Dv32a-pg.js rename to assets/pages-profile-profile.Dj2wm2ux.js index 23cf39e..fb0c3d1 100644 --- a/assets/pages-profile-profile.Dv32a-pg.js +++ b/assets/pages-profile-profile.Dj2wm2ux.js @@ -1 +1 @@ -import{_ as a,r as e,e as l,d as t,c as s,o as c,b as n,f as u,x as o,y as i,z as r,a as f,w as m,A as d,i as v,B as p,h as _,j as g,m as y,l as h,t as k,n as x,p as z,C as w,D as C,E as b,F as j,G as F,H as A,q as T,I,J as M,v as P}from"./index-It-40-XE.js";const q=a({__name:"profile",setup(a){const q=e(l()),B=e(!!t()),D=e(0),E=s((()=>q.value&&q.value.patient&&1===q.value.patient.auth_status)),G=s((()=>{const a=q.value&&q.value.patient;return a?a.status:null})),H=s((()=>2===G.value)),J=(()=>{const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let e="";for(let l=0;l<4;l++)e+=a.charAt(Math.floor(Math.random()*a.length));return e})(),N=s((()=>B.value?E.value&&q.value&&q.value.patient&&q.value.patient.name?q.value.patient.name:q.value&&q.value.nickname||"用户"+J:"点击登录"));c((()=>{B.value=!!t(),q.value=l(),B.value?(K(),L()):D.value=0}));const K=async()=>{try{const a=await n("/api/mp/userinfo");q.value=a.data,u(a.data)}catch(a){a&&1009===a.code&&(o(),q.value=null)}},L=async()=>{try{const a=await n("/api/mp/unreadCount");D.value=a.data&&a.data.count||0}catch(a){}},O=()=>!!B.value||(w({title:"请先登录",icon:"none"}),setTimeout((()=>Y()),1500),!1),Q=()=>!!O()&&(!!E.value||(w({title:"请先完成实名认证",icon:"none"}),!1)),R=()=>{z({url:"/pages/content/content?key=privacy_policy_h5"})},S=()=>{Q()&&z({url:"/pages/myinfo/myinfo"})},U=()=>{Q()&&(1===G.value?z({url:"/pages/sample-info/sample-info"}):w({title:"审核通过后可填写送检信息",icon:"none"}))},V=()=>{Q()&&z({url:"/pages/change-phone/change-phone"})},W=()=>{O()&&z({url:"/pages/message/message"})},X=()=>{O()&&(E.value?w({title:"已认证",icon:"none"}):z({url:"/pages/verify/verify"}))},Y=()=>{z({url:"/pages/login/index"})},Z=()=>{z({url:"/pages/myinfo/myinfo"})},$=()=>{T({title:"提示",content:"确定退出登录吗?",success:a=>{a.confirm&&(o(),q.value=null,B.value=!1,D.value=0,w({title:"已退出",icon:"success"}))}})};return(a,e)=>{const l=I,t=i(r("u-icon"),d),s=v,c=M,n=i(r("u-badge"),p),o=P;return _(),f(s,{class:"page"},{default:m((()=>[g(s,{class:"profile-header"},{default:m((()=>[g(l,{class:"header-bg",src:"https://cdn.csybhelp.com/images/cytx/profile-bg.jpg",mode:"aspectFill"}),g(s,{class:"user-row"},{default:m((()=>[g(s,{class:"avatar-wrap",onClick:e[0]||(e[0]=a=>B.value&&void C({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:async a=>{let e=a.tempFilePaths[0];try{b({title:"上传中..."});const a=await j("/api/mp/upload",{filePath:e,name:"file"});if(!a.data||!a.data.url)throw{msg:"上传失败"};const l=a.data.url;await F("/api/mp/updateAvatar",{avatar:l}),q.value&&(q.value.avatar=l,u(q.value)),w({title:"头像已更新",icon:"success"})}catch(l){l&&l.msg&&w({title:l.msg,icon:"none"})}finally{A()}}}))},{default:m((()=>[g(l,{class:"avatar",src:q.value&&q.value.avatar||"https://cdn.csybhelp.com/images/cytx/default-avatar.jpg",mode:"aspectFill"},null,8,["src"]),B.value?(_(),f(s,{key:0,class:"camera-icon"},{default:m((()=>[g(t,{name:"camera-fill",size:"20",color:"#666"})])),_:1})):y("",!0)])),_:1}),g(s,{class:"info",onClick:e[1]||(e[1]=a=>!B.value&&Y())},{default:m((()=>[g(s,{class:"name"},{default:m((()=>[h(k(N.value),1)])),_:1}),B.value&&q.value&&q.value.patient&&q.value.patient.patient_no?(_(),f(s,{key:0,class:"patient-no"},{default:m((()=>[h("No·"+k(q.value.patient.patient_no),1)])),_:1})):y("",!0)])),_:1})])),_:1})])),_:1}),H.value?(_(),f(s,{key:0,class:"reject-tip",onClick:Z},{default:m((()=>[g(t,{name:"warning-fill",size:"20",color:"#fa8c16"}),g(c,{class:"reject-text"},{default:m((()=>[h("您提交的资料未通过审核,请点击查看详情并重新提交。")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#f5222d"})])),_:1})):y("",!0),g(s,{class:x(["menu-section",{"no-overlap":H.value}])},{default:m((()=>[g(s,{class:"menu-item",onClick:S},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"file-text-fill",size:"20",color:"#0e63e3"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("我的资料")])),_:1}),-1===G.value?(_(),f(c,{key:0,class:"extra draft"},{default:m((()=>[h("待提交")])),_:1})):0===G.value?(_(),f(c,{key:1,class:"extra pending"},{default:m((()=>[h("待审核")])),_:1})):1===G.value?(_(),f(c,{key:2,class:"extra authed"},{default:m((()=>[h("已通过")])),_:1})):2===G.value?(_(),f(c,{key:3,class:"extra rejected"},{default:m((()=>[h("已驳回")])),_:1})):y("",!0),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:U},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"order",size:"20",color:"#fa541c"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("送检信息")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:W},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"chat-fill",size:"20",color:"#fa8c16"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("消息中心")])),_:1}),D.value>0?(_(),f(n,{key:0,value:D.value,max:99,type:"error"},null,8,["value"])):y("",!0),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:X},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"account-fill",size:"20",color:"#52c41a"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("实名认证")])),_:1}),E.value?(_(),f(c,{key:0,class:"extra authed"},{default:m((()=>[h("已认证")])),_:1})):(_(),f(c,{key:1,class:"extra link"},{default:m((()=>[h("去认证")])),_:1})),E.value?y("",!0):(_(),f(t,{key:2,name:"arrow-right",size:"16",color:"#c0c4cc"}))])),_:1})])),_:1},8,["class"]),g(s,{class:"menu-section"},{default:m((()=>[g(s,{class:"menu-item",onClick:V},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"phone-fill",size:"20",color:"#0e63e3"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("修改手机号")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:R},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"lock-fill",size:"20",color:"#909399"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("隐私协议")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:e[2]||(e[2]=a=>{z({url:"/pages/content/content?key=about_us"})})},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"info-circle-fill",size:"20",color:"#909399"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("关于我们")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1})])),_:1}),B.value?(_(),f(o,{key:1,class:"logout-btn",onClick:$},{default:m((()=>[h("退出登录")])),_:1})):(_(),f(o,{key:2,class:"login-btn",onClick:Y},{default:m((()=>[h("去登录")])),_:1}))])),_:1})}}},[["__scopeId","data-v-31a34c62"]]);export{q as default}; +import{_ as a,r as e,e as l,d as t,c as s,o as c,b as n,f as u,x as o,y as i,z as r,a as f,w as m,A as d,i as v,B as p,h as _,j as g,m as y,l as h,t as k,n as x,p as z,C as w,D as C,E as b,F as j,G as F,H as A,q as T,I,J as M,v as P}from"./index-BWvsB30X.js";const q=a({__name:"profile",setup(a){const q=e(l()),B=e(!!t()),D=e(0),E=s((()=>q.value&&q.value.patient&&1===q.value.patient.auth_status)),G=s((()=>{const a=q.value&&q.value.patient;return a?a.status:null})),H=s((()=>2===G.value)),J=(()=>{const a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let e="";for(let l=0;l<4;l++)e+=a.charAt(Math.floor(Math.random()*a.length));return e})(),N=s((()=>B.value?E.value&&q.value&&q.value.patient&&q.value.patient.name?q.value.patient.name:q.value&&q.value.nickname||"用户"+J:"点击登录"));c((()=>{B.value=!!t(),q.value=l(),B.value?(K(),L()):D.value=0}));const K=async()=>{try{const a=await n("/api/mp/userinfo");q.value=a.data,u(a.data)}catch(a){a&&1009===a.code&&(o(),q.value=null)}},L=async()=>{try{const a=await n("/api/mp/unreadCount");D.value=a.data&&a.data.count||0}catch(a){}},O=()=>!!B.value||(w({title:"请先登录",icon:"none"}),setTimeout((()=>Y()),1500),!1),Q=()=>!!O()&&(!!E.value||(w({title:"请先完成实名认证",icon:"none"}),!1)),R=()=>{z({url:"/pages/content/content?key=privacy_policy_h5"})},S=()=>{Q()&&z({url:"/pages/myinfo/myinfo"})},U=()=>{Q()&&(1===G.value?z({url:"/pages/sample-info/sample-info"}):w({title:"审核通过后可填写送检信息",icon:"none"}))},V=()=>{Q()&&z({url:"/pages/change-phone/change-phone"})},W=()=>{O()&&z({url:"/pages/message/message"})},X=()=>{O()&&(E.value?w({title:"已认证",icon:"none"}):z({url:"/pages/verify/verify"}))},Y=()=>{z({url:"/pages/login/index"})},Z=()=>{z({url:"/pages/myinfo/myinfo"})},$=()=>{T({title:"提示",content:"确定退出登录吗?",success:a=>{a.confirm&&(o(),q.value=null,B.value=!1,D.value=0,w({title:"已退出",icon:"success"}))}})};return(a,e)=>{const l=I,t=i(r("u-icon"),d),s=v,c=M,n=i(r("u-badge"),p),o=P;return _(),f(s,{class:"page"},{default:m((()=>[g(s,{class:"profile-header"},{default:m((()=>[g(l,{class:"header-bg",src:"https://cdn.csybhelp.com/images/cytx/profile-bg.jpg",mode:"aspectFill"}),g(s,{class:"user-row"},{default:m((()=>[g(s,{class:"avatar-wrap",onClick:e[0]||(e[0]=a=>B.value&&void C({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:async a=>{let e=a.tempFilePaths[0];try{b({title:"上传中..."});const a=await j("/api/mp/upload",{filePath:e,name:"file"});if(!a.data||!a.data.url)throw{msg:"上传失败"};const l=a.data.url;await F("/api/mp/updateAvatar",{avatar:l}),q.value&&(q.value.avatar=l,u(q.value)),w({title:"头像已更新",icon:"success"})}catch(l){l&&l.msg&&w({title:l.msg,icon:"none"})}finally{A()}}}))},{default:m((()=>[g(l,{class:"avatar",src:q.value&&q.value.avatar||"https://cdn.csybhelp.com/images/cytx/default-avatar.jpg",mode:"aspectFill"},null,8,["src"]),B.value?(_(),f(s,{key:0,class:"camera-icon"},{default:m((()=>[g(t,{name:"camera-fill",size:"20",color:"#666"})])),_:1})):y("",!0)])),_:1}),g(s,{class:"info",onClick:e[1]||(e[1]=a=>!B.value&&Y())},{default:m((()=>[g(s,{class:"name"},{default:m((()=>[h(k(N.value),1)])),_:1}),B.value&&q.value&&q.value.patient&&q.value.patient.patient_no?(_(),f(s,{key:0,class:"patient-no"},{default:m((()=>[h("No·"+k(q.value.patient.patient_no),1)])),_:1})):y("",!0)])),_:1})])),_:1})])),_:1}),H.value?(_(),f(s,{key:0,class:"reject-tip",onClick:Z},{default:m((()=>[g(t,{name:"warning-fill",size:"20",color:"#fa8c16"}),g(c,{class:"reject-text"},{default:m((()=>[h("您提交的资料未通过审核,请点击查看详情并重新提交。")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#f5222d"})])),_:1})):y("",!0),g(s,{class:x(["menu-section",{"no-overlap":H.value}])},{default:m((()=>[g(s,{class:"menu-item",onClick:S},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"file-text-fill",size:"20",color:"#0e63e3"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("我的资料")])),_:1}),-1===G.value?(_(),f(c,{key:0,class:"extra draft"},{default:m((()=>[h("待提交")])),_:1})):0===G.value?(_(),f(c,{key:1,class:"extra pending"},{default:m((()=>[h("待审核")])),_:1})):1===G.value?(_(),f(c,{key:2,class:"extra authed"},{default:m((()=>[h("已通过")])),_:1})):2===G.value?(_(),f(c,{key:3,class:"extra rejected"},{default:m((()=>[h("已驳回")])),_:1})):y("",!0),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:U},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"order",size:"20",color:"#fa541c"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("送检信息")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:W},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"chat-fill",size:"20",color:"#fa8c16"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("消息中心")])),_:1}),D.value>0?(_(),f(n,{key:0,value:D.value,max:99,type:"error"},null,8,["value"])):y("",!0),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:X},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"account-fill",size:"20",color:"#52c41a"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("实名认证")])),_:1}),E.value?(_(),f(c,{key:0,class:"extra authed"},{default:m((()=>[h("已认证")])),_:1})):(_(),f(c,{key:1,class:"extra link"},{default:m((()=>[h("去认证")])),_:1})),E.value?y("",!0):(_(),f(t,{key:2,name:"arrow-right",size:"16",color:"#c0c4cc"}))])),_:1})])),_:1},8,["class"]),g(s,{class:"menu-section"},{default:m((()=>[g(s,{class:"menu-item",onClick:V},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"phone-fill",size:"20",color:"#0e63e3"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("修改手机号")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:R},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"lock-fill",size:"20",color:"#909399"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("隐私协议")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1}),g(s,{class:"menu-item",onClick:e[2]||(e[2]=a=>{z({url:"/pages/content/content?key=about_us"})})},{default:m((()=>[g(s,{class:"menu-icon"},{default:m((()=>[g(t,{name:"info-circle-fill",size:"20",color:"#909399"})])),_:1}),g(c,{class:"text"},{default:m((()=>[h("关于我们")])),_:1}),g(t,{name:"arrow-right",size:"16",color:"#c0c4cc"})])),_:1})])),_:1}),B.value?(_(),f(o,{key:1,class:"logout-btn",onClick:$},{default:m((()=>[h("退出登录")])),_:1})):(_(),f(o,{key:2,class:"login-btn",onClick:Y},{default:m((()=>[h("去登录")])),_:1}))])),_:1})}}},[["__scopeId","data-v-31a34c62"]]);export{q as default}; diff --git a/assets/pages-sample-info-sample-info.DMi3sFSw.js b/assets/pages-sample-info-sample-info.BNuLRRIh.js similarity index 99% rename from assets/pages-sample-info-sample-info.DMi3sFSw.js rename to assets/pages-sample-info-sample-info.BNuLRRIh.js index 5a3d7d7..5be61a3 100644 --- a/assets/pages-sample-info-sample-info.DMi3sFSw.js +++ b/assets/pages-sample-info-sample-info.BNuLRRIh.js @@ -1 +1 @@ -import{_ as e,r as a,a1 as l,c as t,K as s,b as n,q as u,C as r,aj as o,y as c,z as i,a as d,w as _,ad as p,A as m,i as v,ag as f,ah as h,ae as y,af as g,a7 as b,a3 as k,a4 as x,ai as w,h as C,j as V,l as E,t as j,n as T,m as I,R as z,T as U,S,V as $,D as P,F,G as N,a5 as R,J as q,ak as A,P as B,p as D,I as G}from"./index-It-40-XE.js";const J=e({__name:"sample-info",setup(e){const J=a({}),K=l({sample_types:[],wax_return:0,return_name:"",return_phone:"",return_province_code:"",return_city_code:"",return_district_code:"",return_address:"",report_email:"",sample_tracking_no:"",sample_photos:[]}),H=a(!1),L=a(!0),M=a(!1),O=a([]),Q=a(!1),W=a({address:"",receiver:"",phone:"",contact_phone:""}),X=a(0),Y=a(""),Z=a(""),ee=a(""),ae=a(""),le=a(""),te=a(!1),se=a(!1),ne=a(""),ue=a(!1),re=a(""),oe=t((()=>2===X.value)),ce=t((()=>3===X.value)),ie=t((()=>1===X.value||2===X.value||3===X.value)),de=t((()=>1===X.value)),_e=t((()=>3===X.value?"申请审核中":2===X.value?"已寄回":1===X.value?"已生效":"")),pe=t((()=>3===X.value?"applying":2===X.value?"returned":"effective")),me=t((()=>3===X.value?"修改申请审核中":2===X.value?"样品已寄回":1===X.value?"送检信息已生效":"提交送检信息")),ve=a([]),fe=a([[],[],[]]),he=a([0,0,0]),ye=a(!1),ge=t((()=>{const e=J.value.id_card||"";return 18===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),be=t((()=>{const e=J.value.phone||"";return 11===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),ke=t((()=>!(!K.sample_types||!K.sample_types.length)&&K.sample_types.some((e=>{const a=O.value.find((a=>a.name===e));return a&&a.need_return})))),xe=t((()=>{if(!K.sample_types||!K.sample_types.length)return"";return K.sample_types.filter((e=>{const a=O.value.find((a=>a.name===e));return a&&a.need_return})).join("、")})),we=t((()=>{const e=[];if(K.return_province_code){const a=ve.value.find((e=>e.code===K.return_province_code));a&&e.push(a.name)}if(K.return_city_code){const a=ve.value.find((e=>e.code===K.return_province_code));if(a&&a.children){const l=a.children.find((e=>e.code===K.return_city_code));l&&e.push(l.name)}}if(K.return_district_code){const a=ve.value.find((e=>e.code===K.return_province_code));if(a&&a.children){const l=a.children.find((e=>e.code===K.return_city_code));if(l&&l.children){const a=l.children.find((e=>e.code===K.return_district_code));a&&e.push(a.name)}}}return e.join(" ")})),Ce=()=>{ie.value||(ke.value||(K.wax_return=0),K.sample_types&&0!==K.sample_types.length||(K.report_email="",K.sample_tracking_no="",K.sample_photos=[],K.wax_return=0,K.return_name="",K.return_phone="",K.return_province_code="",K.return_city_code="",K.return_district_code="",K.return_address=""))},Ve=()=>{if(ie.value)return Ne();K.return_name=J.value.name||"",K.return_phone=J.value.phone||"",K.return_province_code=J.value.province_code||"",K.return_city_code=J.value.city_code||"",K.return_district_code=J.value.district_code||"",K.return_address=J.value.address||""},Ee=()=>{if(ie.value)return Ne();ye.value=!0};s((async()=>{L.value=!0;try{await ze(),await Te(),await Ie(),await je()}finally{L.value=!1,te.value&&(te.value=!1,setTimeout((()=>Ne()),100))}}));const je=async()=>{try{const e=await n("/api/mp/subscribeConfig");e.data&&e.data.sample_edit_audit&&(re.value=e.data.sample_edit_audit)}catch(e){}},Te=async()=>{try{const e=await n("/api/mp/sampleInfo");e.data&&(J.value=e.data.patient||{},K.sample_types=e.data.sample_types||[],K.wax_return=e.data.wax_return||0,K.return_name=e.data.return_name||"",K.return_phone=e.data.return_phone||"",K.return_province_code=e.data.return_province_code||"",K.return_city_code=e.data.return_city_code||"",K.return_district_code=e.data.return_district_code||"",K.return_address=e.data.return_address||"",K.report_email=e.data.report_email||"",K.sample_tracking_no=e.data.sample_tracking_no||"",K.sample_photos=e.data.sample_photos||[],X.value=Number(e.data.sample_info_status)||0,Y.value=e.data.return_tracking_no||"",Z.value=e.data.return_time||"",ee.value=e.data.sample_edit_reason||"",ae.value=e.data.sample_edit_reject_reason||"",le.value=e.data.sample_edit_apply_time||"",W.value=e.data.sample_receiver_info||{address:"",receiver:"",phone:"",contact_phone:""},te.value=1===X.value&&!ae.value||3===X.value)}catch(e){}},Ie=async()=>{try{const e=await n("/common/sampleTypes");O.value=e.data&&e.data.list||[],Q.value=e.data&&e.data.required||!1}catch(e){}},ze=async()=>{try{const e=await n("/common/regions");ve.value=e.data||[],Ue()}catch(e){}},Ue=(e=0,a=0)=>{const l=ve.value,t=l.map((e=>e.name)),s=l[e]&&l[e].children||[],n=s.map((e=>e.name)),u=(s[a]&&s[a].children||[]).map((e=>e.name));fe.value=[t,n,u]},Se=e=>{const{columnIndex:a,index:l}=e;if(0===a)Ue(l,0),he.value=[l,0,0];else if(1===a){const e=he.value[0];Ue(e,l),he.value=[e,l,0]}},$e=e=>{if(ie.value)return;const a=e.indexs||e.index||[0,0,0],l=ve.value[a[0]],t=l&&l.children?l.children[a[1]]:null,s=t&&t.children?t.children[a[2]]:null;K.return_province_code=l?l.code:"",K.return_city_code=t?t.code:"",K.return_district_code=s?s.code:"",ye.value=!1},Pe=()=>{if(ie.value)return Ne();P({count:9-K.sample_photos.length,sizeType:["compressed"],sourceType:["album","camera"],success:async e=>{for(const l of e.tempFilePaths)try{const e=await F("/api/mp/upload",{filePath:l,name:"file"});e.data&&e.data.url&&K.sample_photos.push(e.data.url)}catch(a){}}})},Fe=()=>{D({url:"/pages/content/content?key=patient_information_sheet"})},Ne=()=>{if(ce.value)return void u({title:"温馨提示",content:"送检信息修改申请正在审核中,请等待平台处理。",showCancel:!1,confirmText:"知道了"});if(oe.value)return void u({title:"温馨提示",content:`样品已经寄回,回寄物流单号:${Y.value||"—"}。`,cancelText:"知道了",confirmText:"复制单号",success:e=>{e.confirm&&Be()}});const e=W.value.contact_phone||"";let a="送检信息已生效,如需修改请点击页面的【申请修改送检信息】按钮申请,通过后可重新提交送检信息。";e&&(a+=`详情咨询${e}。`),u({title:"温馨提示",content:a,showCancel:!1,confirmText:"知道了"})},Re=()=>{if(!de.value)return Ne();ne.value="",se.value=!0},qe=()=>{se.value=!1},Ae=async()=>{if(!ne.value.trim())return r({title:"请填写申请原因",icon:"none"});ue.value=!0;try{await new Promise((e=>{if(!re.value)return e(!1);e(!1)}));const e={reason:ne.value.trim()};await N("/api/mp/applySampleInfoEdit",e),X.value=3,ee.value=ne.value.trim(),le.value="",se.value=!1,r({title:"申请已提交",icon:"success"})}catch(e){e&&e.msg&&r({title:e.msg,icon:"none"})}finally{ue.value=!1}},Be=()=>{if(!Y.value)return r({title:"暂无单号",icon:"none"});o({data:Y.value,success:()=>r({title:"单号已复制",icon:"success"})})},De=()=>{const e=W.value,a=[`收件地址:${e.address||""}`,`收件人:${e.receiver||""}`,`电话:${e.phone||""}`].join("\n");o({data:a,success:()=>r({title:"已复制",icon:"success"})})},Ge=()=>{if(ie.value)return Ne();M.value=!M.value},Je=async()=>{if(ie.value)return Ne();if(!M.value)return r({title:"请阅读并同意《患者告知书》",icon:"none"});if(Q.value&&(!K.sample_types||0===K.sample_types.length))return r({title:"请选择送检样本类型",icon:"none"});if(1===K.wax_return&&ke.value){if(!K.return_name)return r({title:"请输入收件人姓名",icon:"none"});if(!K.return_phone)return r({title:"请输入收件人电话",icon:"none"});if(!K.return_province_code)return r({title:"请选择收件地址",icon:"none"});if(!K.return_address)return r({title:"请输入收件详细地址",icon:"none"})}if(K.sample_types&&K.sample_types.length>0){if(!K.report_email)return r({title:"请输入报告接收邮箱",icon:"none"});if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K.report_email))return r({title:"邮箱格式不正确",icon:"none"});if(!K.sample_tracking_no)return r({title:"请输入送检样本物流单号",icon:"none"});if(!K.sample_photos||0===K.sample_photos.length)return r({title:"请上传送检单照片",icon:"none"})}H.value=!0;try{await N("/api/mp/saveSampleInfo",{...K}),X.value=1,r({title:"提交成功",icon:"success"}),setTimeout((()=>R()),1500)}catch(e){if(e&&e.data&&[1,2,3].includes(Number(e.data.sample_info_status)))return X.value=Number(e.data.sample_info_status),Y.value=e.data.return_tracking_no||Y.value,Z.value=e.data.return_time||Z.value,ee.value=e.data.sample_edit_reason||ee.value,le.value=e.data.sample_edit_apply_time||le.value,e.data.sample_receiver_info&&(W.value=e.data.sample_receiver_info),Ne();e&&e.msg&&r({title:e.msg,icon:"none"})}finally{H.value=!1}};return(e,a)=>{const l=c(i("u-loading-page"),p),t=c(i("u-icon"),m),s=q,n=v,u=c(i("u-checkbox"),f),r=c(i("u-checkbox-group"),h),o=c(i("u-radio"),y),P=c(i("u-radio-group"),g),F=c(i("u-input"),b),N=G,R=c(i("u-button"),k),D=A,X=c(i("u-popup"),x),ee=c(i("u-picker"),w);return C(),d(n,{class:"page"},{default:_((()=>[V(l,{loading:L.value,"loading-text":"加载中..."},null,8,["loading"]),V(n,{class:"section"},{default:_((()=>[V(n,{class:"section-title"},{default:_((()=>[V(t,{name:"account-fill",size:"18",color:"#0e63e3"}),V(s,null,{default:_((()=>[E("基本信息")])),_:1})])),_:1}),V(n,{class:"info-compact"},{default:_((()=>[V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("姓名:"+j(J.value.name),1)])),_:1}),V(s,{class:"info-compact-item"},{default:_((()=>[E("性别:"+j(J.value.gender),1)])),_:1})])),_:1}),V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("身份证:"+j(ge.value),1)])),_:1}),V(s,{class:"info-compact-item"},{default:_((()=>[E("手机号:"+j(be.value),1)])),_:1})])),_:1}),V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("联系地址:"+j(J.value.region_text)+" "+j(J.value.address),1)])),_:1})])),_:1}),V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("医院:"+j(J.value.hospital||"—"),1)])),_:1}),V(s,{class:"info-compact-item"},{default:_((()=>[E("癌种:"+j(J.value.tag||"—"),1)])),_:1})])),_:1})])),_:1})])),_:1}),V(n,{class:"section"},{default:_((()=>[V(n,{class:"section-title"},{default:_((()=>[V(t,{name:"order",size:"18",color:"#0e63e3"}),V(s,null,{default:_((()=>[E("平台收件信息")])),_:1})])),_:1}),V(n,{class:"receiver-info"},{default:_((()=>[V(n,{class:"receiver-row"},{default:_((()=>[V(s,{class:"receiver-label"},{default:_((()=>[E("收件地址")])),_:1}),V(s,{class:"receiver-value"},{default:_((()=>[E(j(W.value.address||"—"),1)])),_:1})])),_:1}),V(n,{class:"receiver-row"},{default:_((()=>[V(s,{class:"receiver-label"},{default:_((()=>[E("收件人")])),_:1}),V(s,{class:"receiver-value"},{default:_((()=>[E(j(W.value.receiver||"—"),1)])),_:1})])),_:1}),V(n,{class:"receiver-row"},{default:_((()=>[V(s,{class:"receiver-label"},{default:_((()=>[E("电话")])),_:1}),V(s,{class:"receiver-value"},{default:_((()=>[E(j(W.value.phone||"—"),1)])),_:1})])),_:1})])),_:1}),V(n,{class:"copy-receiver",onClick:De},{default:_((()=>[E("复制送检信息")])),_:1})])),_:1}),V(n,{class:"section"},{default:_((()=>[V(n,{class:"section-title"},{default:_((()=>[V(t,{name:"file-text",size:"18",color:"#fa541c"}),V(s,null,{default:_((()=>[E("送检信息")])),_:1}),_e.value?(C(),d(s,{key:0,class:T(["status-pill",pe.value])},{default:_((()=>[E(j(_e.value),1)])),_:1},8,["class"])):I("",!0)])),_:1}),oe.value?(C(),d(n,{key:0,class:"return-info"},{default:_((()=>[V(s,{class:"return-title"},{default:_((()=>[E("样品已经寄回")])),_:1}),V(s,{class:"return-text"},{default:_((()=>[E("回寄物流单号:"+j(Y.value||"—"),1)])),_:1}),Z.value?(C(),d(s,{key:0,class:"return-time"},{default:_((()=>[E("回寄时间:"+j(Z.value),1)])),_:1})):I("",!0),V(s,{class:"copy-return-no",onClick:Be},{default:_((()=>[E("复制单号")])),_:1})])),_:1})):I("",!0),ae.value?(C(),d(n,{key:1,class:"reject-info"},{default:_((()=>[V(s,{class:"reject-title"},{default:_((()=>[E("修改申请未通过")])),_:1}),V(s,{class:"reject-text"},{default:_((()=>[E("原因:"+j(ae.value),1)])),_:1})])),_:1})):I("",!0),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("送检样本类型"+j(Q.value?"":"(选填)"),1)])),_:1}),V(r,{modelValue:K.sample_types,"onUpdate:modelValue":a[0]||(a[0]=e=>K.sample_types=e),placement:"row",wrap:!0,onChange:Ce},{default:_((()=>[(C(!0),z(S,null,U(O.value,(e=>(C(),d(u,{key:e.id,label:e.name,name:e.name,disabled:ie.value,activeColor:"#0E63E3",customStyle:{marginRight:"24rpx",marginBottom:"16rpx"}},null,8,["label","name","disabled"])))),128))])),_:1},8,["modelValue"])])),_:1}),ke.value?(C(),d(n,{key:2,class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E(j(xe.value)+"是否需寄回",1)])),_:1}),V(P,{modelValue:K.wax_return,"onUpdate:modelValue":a[1]||(a[1]=e=>K.wax_return=e),placement:"row"},{default:_((()=>[V(o,{label:"是",name:1,disabled:ie.value,activeColor:"#0E63E3",customStyle:{marginRight:"40rpx"}},null,8,["disabled"]),V(o,{label:"否",name:0,disabled:ie.value,activeColor:"#0E63E3"},null,8,["disabled"])])),_:1},8,["modelValue"])])),_:1})):I("",!0),1===K.wax_return&&ke.value?(C(),z(S,{key:3},[V(n,{class:"form-group"},{default:_((()=>[V(n,{style:{display:"flex","align-items":"center","justify-content":"space-between"}},{default:_((()=>[V(s,{class:"form-label",style:{"margin-bottom":"0"}},{default:_((()=>[E("收件人姓名")])),_:1}),V(s,{class:T(["fill-self-btn",ie.value?"disabled":""]),onClick:Ve},{default:_((()=>[E("本人接收")])),_:1},8,["class"])])),_:1}),V(F,{modelValue:K.return_name,"onUpdate:modelValue":a[2]||(a[2]=e=>K.return_name=e),disabled:ie.value,placeholder:"请输入收件人姓名",border:"surround",customStyle:{marginTop:"16rpx"}},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("收件人电话")])),_:1}),V(F,{modelValue:K.return_phone,"onUpdate:modelValue":a[3]||(a[3]=e=>K.return_phone=e),disabled:ie.value,type:"number",placeholder:"请输入收件人电话",border:"surround",maxlength:"11"},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("收件地址")])),_:1}),V(n,{class:T(["region-row",ie.value?"disabled":""]),onClick:Ee},{default:_((()=>[V(s,{class:T(["region-text",we.value?"":"placeholder"])},{default:_((()=>[E(j(we.value||"请选择省/市/区"),1)])),_:1},8,["class"]),V(s,{class:"arrow"},{default:_((()=>[E("›")])),_:1})])),_:1},8,["class"]),V(F,{modelValue:K.return_address,"onUpdate:modelValue":a[4]||(a[4]=e=>K.return_address=e),disabled:ie.value,placeholder:"详细门牌号",border:"surround",customStyle:{marginTop:"16rpx"}},null,8,["modelValue","disabled"])])),_:1})],64)):I("",!0),K.sample_types&&K.sample_types.length||Q.value?(C(),z(S,{key:4},[V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("报告接收邮箱")])),_:1}),V(F,{modelValue:K.report_email,"onUpdate:modelValue":a[5]||(a[5]=e=>K.report_email=e),disabled:ie.value,placeholder:"请输入邮箱地址",border:"surround"},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("送检样本物流单号")])),_:1}),V(F,{modelValue:K.sample_tracking_no,"onUpdate:modelValue":a[6]||(a[6]=e=>K.sample_tracking_no=e),disabled:ie.value,placeholder:"请输入物流单号",border:"surround"},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("送检单照片(可上传多张)")])),_:1}),V(n,{class:"upload-row"},{default:_((()=>[(C(!0),z(S,null,U(K.sample_photos,((e,a)=>(C(),d(n,{class:"upload-item",key:"sp"+a},{default:_((()=>[V(N,{class:"upload-img",src:e,mode:"aspectFill",onClick:e=>(e=>{B({urls:K.sample_photos,current:e})})(a)},null,8,["src","onClick"]),ie.value?I("",!0):(C(),d(n,{key:0,class:"upload-del",onClick:e=>K.sample_photos.splice(a,1)},{default:_((()=>[E("×")])),_:2},1032,["onClick"]))])),_:2},1024)))),128)),ie.value?I("",!0):(C(),d(n,{key:0,class:"upload-box",onClick:Pe},{default:_((()=>[V(s,{class:"upload-icon"},{default:_((()=>[E("+")])),_:1}),V(s,{class:"upload-text"},{default:_((()=>[E("上传图片")])),_:1})])),_:1}))])),_:1})])),_:1})],64)):I("",!0)])),_:1}),V(n,{class:"btn-wrap"},{default:_((()=>[V(n,{class:"agree-row",onClick:Ge},{default:_((()=>[V(r,null,{default:_((()=>[V(u,{checked:M.value,disabled:ie.value,shape:"circle",activeColor:"#0E63E3",size:"18"},null,8,["checked","disabled"])])),_:1}),V(s,{class:"agree-text"},{default:_((()=>[E("请阅读并同意")])),_:1}),V(s,{class:"agree-link",onClick:$(Fe,["stop"])},{default:_((()=>[E("《患者告知书》")])),_:1})])),_:1}),de.value?(C(),d(R,{key:0,text:"申请修改送检信息",loading:ue.value,onClick:Re,color:"#0E63E3",plain:"",size:"large"},null,8,["loading"])):I("",!0),de.value?I("",!0):(C(),d(R,{key:1,text:me.value,loading:H.value,onClick:Je,color:"#0E63E3",size:"large"},null,8,["text","loading"]))])),_:1}),V(X,{show:se.value,mode:"bottom",round:"12",safeAreaInsetBottom:!0,onClose:qe},{default:_((()=>[V(n,{class:"apply-popup"},{default:_((()=>[V(n,{class:"apply-title"},{default:_((()=>[E("申请修改送检信息")])),_:1}),V(n,{class:"apply-desc"},{default:_((()=>[E("请填写需要修改送检信息的原因,平台审核通过后即可重新编辑。")])),_:1}),V(D,{modelValue:ne.value,"onUpdate:modelValue":a[7]||(a[7]=e=>ne.value=e),class:"apply-textarea",maxlength:"500",placeholder:"请输入申请原因","adjust-position":!0,"cursor-spacing":40},null,8,["modelValue"]),V(n,{class:"apply-actions"},{default:_((()=>[V(R,{text:"取消",onClick:qe,plain:"",color:"#909399"}),V(R,{text:"提交申请",loading:ue.value,onClick:Ae,color:"#0E63E3"},null,8,["loading"])])),_:1})])),_:1})])),_:1},8,["show"]),fe.value[0].length?(C(),d(ee,{key:0,show:ye.value,columns:fe.value,onConfirm:$e,onCancel:a[8]||(a[8]=e=>ye.value=!1),onChange:Se,defaultIndex:he.value},null,8,["show","columns","defaultIndex"])):I("",!0)])),_:1})}}},[["__scopeId","data-v-32ff98dd"]]);export{J as default}; +import{_ as e,r as a,a1 as l,c as t,K as s,b as n,q as u,C as r,aj as o,y as c,z as i,a as d,w as _,ad as p,A as m,i as v,ag as f,ah as h,ae as y,af as g,a7 as b,a3 as k,a4 as x,ai as w,h as C,j as V,l as E,t as j,n as T,m as I,R as z,T as U,S,V as $,D as P,F,G as N,a5 as R,J as q,ak as A,P as B,p as D,I as G}from"./index-BWvsB30X.js";const J=e({__name:"sample-info",setup(e){const J=a({}),K=l({sample_types:[],wax_return:0,return_name:"",return_phone:"",return_province_code:"",return_city_code:"",return_district_code:"",return_address:"",report_email:"",sample_tracking_no:"",sample_photos:[]}),H=a(!1),L=a(!0),M=a(!1),O=a([]),Q=a(!1),W=a({address:"",receiver:"",phone:"",contact_phone:""}),X=a(0),Y=a(""),Z=a(""),ee=a(""),ae=a(""),le=a(""),te=a(!1),se=a(!1),ne=a(""),ue=a(!1),re=a(""),oe=t((()=>2===X.value)),ce=t((()=>3===X.value)),ie=t((()=>1===X.value||2===X.value||3===X.value)),de=t((()=>1===X.value)),_e=t((()=>3===X.value?"申请审核中":2===X.value?"已寄回":1===X.value?"已生效":"")),pe=t((()=>3===X.value?"applying":2===X.value?"returned":"effective")),me=t((()=>3===X.value?"修改申请审核中":2===X.value?"样品已寄回":1===X.value?"送检信息已生效":"提交送检信息")),ve=a([]),fe=a([[],[],[]]),he=a([0,0,0]),ye=a(!1),ge=t((()=>{const e=J.value.id_card||"";return 18===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),be=t((()=>{const e=J.value.phone||"";return 11===e.length?e.slice(0,3)+"****"+e.slice(-4):e})),ke=t((()=>!(!K.sample_types||!K.sample_types.length)&&K.sample_types.some((e=>{const a=O.value.find((a=>a.name===e));return a&&a.need_return})))),xe=t((()=>{if(!K.sample_types||!K.sample_types.length)return"";return K.sample_types.filter((e=>{const a=O.value.find((a=>a.name===e));return a&&a.need_return})).join("、")})),we=t((()=>{const e=[];if(K.return_province_code){const a=ve.value.find((e=>e.code===K.return_province_code));a&&e.push(a.name)}if(K.return_city_code){const a=ve.value.find((e=>e.code===K.return_province_code));if(a&&a.children){const l=a.children.find((e=>e.code===K.return_city_code));l&&e.push(l.name)}}if(K.return_district_code){const a=ve.value.find((e=>e.code===K.return_province_code));if(a&&a.children){const l=a.children.find((e=>e.code===K.return_city_code));if(l&&l.children){const a=l.children.find((e=>e.code===K.return_district_code));a&&e.push(a.name)}}}return e.join(" ")})),Ce=()=>{ie.value||(ke.value||(K.wax_return=0),K.sample_types&&0!==K.sample_types.length||(K.report_email="",K.sample_tracking_no="",K.sample_photos=[],K.wax_return=0,K.return_name="",K.return_phone="",K.return_province_code="",K.return_city_code="",K.return_district_code="",K.return_address=""))},Ve=()=>{if(ie.value)return Ne();K.return_name=J.value.name||"",K.return_phone=J.value.phone||"",K.return_province_code=J.value.province_code||"",K.return_city_code=J.value.city_code||"",K.return_district_code=J.value.district_code||"",K.return_address=J.value.address||""},Ee=()=>{if(ie.value)return Ne();ye.value=!0};s((async()=>{L.value=!0;try{await ze(),await Te(),await Ie(),await je()}finally{L.value=!1,te.value&&(te.value=!1,setTimeout((()=>Ne()),100))}}));const je=async()=>{try{const e=await n("/api/mp/subscribeConfig");e.data&&e.data.sample_edit_audit&&(re.value=e.data.sample_edit_audit)}catch(e){}},Te=async()=>{try{const e=await n("/api/mp/sampleInfo");e.data&&(J.value=e.data.patient||{},K.sample_types=e.data.sample_types||[],K.wax_return=e.data.wax_return||0,K.return_name=e.data.return_name||"",K.return_phone=e.data.return_phone||"",K.return_province_code=e.data.return_province_code||"",K.return_city_code=e.data.return_city_code||"",K.return_district_code=e.data.return_district_code||"",K.return_address=e.data.return_address||"",K.report_email=e.data.report_email||"",K.sample_tracking_no=e.data.sample_tracking_no||"",K.sample_photos=e.data.sample_photos||[],X.value=Number(e.data.sample_info_status)||0,Y.value=e.data.return_tracking_no||"",Z.value=e.data.return_time||"",ee.value=e.data.sample_edit_reason||"",ae.value=e.data.sample_edit_reject_reason||"",le.value=e.data.sample_edit_apply_time||"",W.value=e.data.sample_receiver_info||{address:"",receiver:"",phone:"",contact_phone:""},te.value=1===X.value&&!ae.value||3===X.value)}catch(e){}},Ie=async()=>{try{const e=await n("/common/sampleTypes");O.value=e.data&&e.data.list||[],Q.value=e.data&&e.data.required||!1}catch(e){}},ze=async()=>{try{const e=await n("/common/regions");ve.value=e.data||[],Ue()}catch(e){}},Ue=(e=0,a=0)=>{const l=ve.value,t=l.map((e=>e.name)),s=l[e]&&l[e].children||[],n=s.map((e=>e.name)),u=(s[a]&&s[a].children||[]).map((e=>e.name));fe.value=[t,n,u]},Se=e=>{const{columnIndex:a,index:l}=e;if(0===a)Ue(l,0),he.value=[l,0,0];else if(1===a){const e=he.value[0];Ue(e,l),he.value=[e,l,0]}},$e=e=>{if(ie.value)return;const a=e.indexs||e.index||[0,0,0],l=ve.value[a[0]],t=l&&l.children?l.children[a[1]]:null,s=t&&t.children?t.children[a[2]]:null;K.return_province_code=l?l.code:"",K.return_city_code=t?t.code:"",K.return_district_code=s?s.code:"",ye.value=!1},Pe=()=>{if(ie.value)return Ne();P({count:9-K.sample_photos.length,sizeType:["compressed"],sourceType:["album","camera"],success:async e=>{for(const l of e.tempFilePaths)try{const e=await F("/api/mp/upload",{filePath:l,name:"file"});e.data&&e.data.url&&K.sample_photos.push(e.data.url)}catch(a){}}})},Fe=()=>{D({url:"/pages/content/content?key=patient_information_sheet"})},Ne=()=>{if(ce.value)return void u({title:"温馨提示",content:"送检信息修改申请正在审核中,请等待平台处理。",showCancel:!1,confirmText:"知道了"});if(oe.value)return void u({title:"温馨提示",content:`样品已经寄回,回寄物流单号:${Y.value||"—"}。`,cancelText:"知道了",confirmText:"复制单号",success:e=>{e.confirm&&Be()}});const e=W.value.contact_phone||"";let a="送检信息已生效,如需修改请点击页面的【申请修改送检信息】按钮申请,通过后可重新提交送检信息。";e&&(a+=`详情咨询${e}。`),u({title:"温馨提示",content:a,showCancel:!1,confirmText:"知道了"})},Re=()=>{if(!de.value)return Ne();ne.value="",se.value=!0},qe=()=>{se.value=!1},Ae=async()=>{if(!ne.value.trim())return r({title:"请填写申请原因",icon:"none"});ue.value=!0;try{await new Promise((e=>{if(!re.value)return e(!1);e(!1)}));const e={reason:ne.value.trim()};await N("/api/mp/applySampleInfoEdit",e),X.value=3,ee.value=ne.value.trim(),le.value="",se.value=!1,r({title:"申请已提交",icon:"success"})}catch(e){e&&e.msg&&r({title:e.msg,icon:"none"})}finally{ue.value=!1}},Be=()=>{if(!Y.value)return r({title:"暂无单号",icon:"none"});o({data:Y.value,success:()=>r({title:"单号已复制",icon:"success"})})},De=()=>{const e=W.value,a=[`收件地址:${e.address||""}`,`收件人:${e.receiver||""}`,`电话:${e.phone||""}`].join("\n");o({data:a,success:()=>r({title:"已复制",icon:"success"})})},Ge=()=>{if(ie.value)return Ne();M.value=!M.value},Je=async()=>{if(ie.value)return Ne();if(!M.value)return r({title:"请阅读并同意《患者告知书》",icon:"none"});if(Q.value&&(!K.sample_types||0===K.sample_types.length))return r({title:"请选择送检样本类型",icon:"none"});if(1===K.wax_return&&ke.value){if(!K.return_name)return r({title:"请输入收件人姓名",icon:"none"});if(!K.return_phone)return r({title:"请输入收件人电话",icon:"none"});if(!K.return_province_code)return r({title:"请选择收件地址",icon:"none"});if(!K.return_address)return r({title:"请输入收件详细地址",icon:"none"})}if(K.sample_types&&K.sample_types.length>0){if(!K.report_email)return r({title:"请输入报告接收邮箱",icon:"none"});if(!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(K.report_email))return r({title:"邮箱格式不正确",icon:"none"});if(!K.sample_tracking_no)return r({title:"请输入送检样本物流单号",icon:"none"});if(!K.sample_photos||0===K.sample_photos.length)return r({title:"请上传送检单照片",icon:"none"})}H.value=!0;try{await N("/api/mp/saveSampleInfo",{...K}),X.value=1,r({title:"提交成功",icon:"success"}),setTimeout((()=>R()),1500)}catch(e){if(e&&e.data&&[1,2,3].includes(Number(e.data.sample_info_status)))return X.value=Number(e.data.sample_info_status),Y.value=e.data.return_tracking_no||Y.value,Z.value=e.data.return_time||Z.value,ee.value=e.data.sample_edit_reason||ee.value,le.value=e.data.sample_edit_apply_time||le.value,e.data.sample_receiver_info&&(W.value=e.data.sample_receiver_info),Ne();e&&e.msg&&r({title:e.msg,icon:"none"})}finally{H.value=!1}};return(e,a)=>{const l=c(i("u-loading-page"),p),t=c(i("u-icon"),m),s=q,n=v,u=c(i("u-checkbox"),f),r=c(i("u-checkbox-group"),h),o=c(i("u-radio"),y),P=c(i("u-radio-group"),g),F=c(i("u-input"),b),N=G,R=c(i("u-button"),k),D=A,X=c(i("u-popup"),x),ee=c(i("u-picker"),w);return C(),d(n,{class:"page"},{default:_((()=>[V(l,{loading:L.value,"loading-text":"加载中..."},null,8,["loading"]),V(n,{class:"section"},{default:_((()=>[V(n,{class:"section-title"},{default:_((()=>[V(t,{name:"account-fill",size:"18",color:"#0e63e3"}),V(s,null,{default:_((()=>[E("基本信息")])),_:1})])),_:1}),V(n,{class:"info-compact"},{default:_((()=>[V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("姓名:"+j(J.value.name),1)])),_:1}),V(s,{class:"info-compact-item"},{default:_((()=>[E("性别:"+j(J.value.gender),1)])),_:1})])),_:1}),V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("身份证:"+j(ge.value),1)])),_:1}),V(s,{class:"info-compact-item"},{default:_((()=>[E("手机号:"+j(be.value),1)])),_:1})])),_:1}),V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("联系地址:"+j(J.value.region_text)+" "+j(J.value.address),1)])),_:1})])),_:1}),V(n,{class:"info-compact-row"},{default:_((()=>[V(s,{class:"info-compact-item"},{default:_((()=>[E("医院:"+j(J.value.hospital||"—"),1)])),_:1}),V(s,{class:"info-compact-item"},{default:_((()=>[E("癌种:"+j(J.value.tag||"—"),1)])),_:1})])),_:1})])),_:1})])),_:1}),V(n,{class:"section"},{default:_((()=>[V(n,{class:"section-title"},{default:_((()=>[V(t,{name:"order",size:"18",color:"#0e63e3"}),V(s,null,{default:_((()=>[E("平台收件信息")])),_:1})])),_:1}),V(n,{class:"receiver-info"},{default:_((()=>[V(n,{class:"receiver-row"},{default:_((()=>[V(s,{class:"receiver-label"},{default:_((()=>[E("收件地址")])),_:1}),V(s,{class:"receiver-value"},{default:_((()=>[E(j(W.value.address||"—"),1)])),_:1})])),_:1}),V(n,{class:"receiver-row"},{default:_((()=>[V(s,{class:"receiver-label"},{default:_((()=>[E("收件人")])),_:1}),V(s,{class:"receiver-value"},{default:_((()=>[E(j(W.value.receiver||"—"),1)])),_:1})])),_:1}),V(n,{class:"receiver-row"},{default:_((()=>[V(s,{class:"receiver-label"},{default:_((()=>[E("电话")])),_:1}),V(s,{class:"receiver-value"},{default:_((()=>[E(j(W.value.phone||"—"),1)])),_:1})])),_:1})])),_:1}),V(n,{class:"copy-receiver",onClick:De},{default:_((()=>[E("复制送检信息")])),_:1})])),_:1}),V(n,{class:"section"},{default:_((()=>[V(n,{class:"section-title"},{default:_((()=>[V(t,{name:"file-text",size:"18",color:"#fa541c"}),V(s,null,{default:_((()=>[E("送检信息")])),_:1}),_e.value?(C(),d(s,{key:0,class:T(["status-pill",pe.value])},{default:_((()=>[E(j(_e.value),1)])),_:1},8,["class"])):I("",!0)])),_:1}),oe.value?(C(),d(n,{key:0,class:"return-info"},{default:_((()=>[V(s,{class:"return-title"},{default:_((()=>[E("样品已经寄回")])),_:1}),V(s,{class:"return-text"},{default:_((()=>[E("回寄物流单号:"+j(Y.value||"—"),1)])),_:1}),Z.value?(C(),d(s,{key:0,class:"return-time"},{default:_((()=>[E("回寄时间:"+j(Z.value),1)])),_:1})):I("",!0),V(s,{class:"copy-return-no",onClick:Be},{default:_((()=>[E("复制单号")])),_:1})])),_:1})):I("",!0),ae.value?(C(),d(n,{key:1,class:"reject-info"},{default:_((()=>[V(s,{class:"reject-title"},{default:_((()=>[E("修改申请未通过")])),_:1}),V(s,{class:"reject-text"},{default:_((()=>[E("原因:"+j(ae.value),1)])),_:1})])),_:1})):I("",!0),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("送检样本类型"+j(Q.value?"":"(选填)"),1)])),_:1}),V(r,{modelValue:K.sample_types,"onUpdate:modelValue":a[0]||(a[0]=e=>K.sample_types=e),placement:"row",wrap:!0,onChange:Ce},{default:_((()=>[(C(!0),z(S,null,U(O.value,(e=>(C(),d(u,{key:e.id,label:e.name,name:e.name,disabled:ie.value,activeColor:"#0E63E3",customStyle:{marginRight:"24rpx",marginBottom:"16rpx"}},null,8,["label","name","disabled"])))),128))])),_:1},8,["modelValue"])])),_:1}),ke.value?(C(),d(n,{key:2,class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E(j(xe.value)+"是否需寄回",1)])),_:1}),V(P,{modelValue:K.wax_return,"onUpdate:modelValue":a[1]||(a[1]=e=>K.wax_return=e),placement:"row"},{default:_((()=>[V(o,{label:"是",name:1,disabled:ie.value,activeColor:"#0E63E3",customStyle:{marginRight:"40rpx"}},null,8,["disabled"]),V(o,{label:"否",name:0,disabled:ie.value,activeColor:"#0E63E3"},null,8,["disabled"])])),_:1},8,["modelValue"])])),_:1})):I("",!0),1===K.wax_return&&ke.value?(C(),z(S,{key:3},[V(n,{class:"form-group"},{default:_((()=>[V(n,{style:{display:"flex","align-items":"center","justify-content":"space-between"}},{default:_((()=>[V(s,{class:"form-label",style:{"margin-bottom":"0"}},{default:_((()=>[E("收件人姓名")])),_:1}),V(s,{class:T(["fill-self-btn",ie.value?"disabled":""]),onClick:Ve},{default:_((()=>[E("本人接收")])),_:1},8,["class"])])),_:1}),V(F,{modelValue:K.return_name,"onUpdate:modelValue":a[2]||(a[2]=e=>K.return_name=e),disabled:ie.value,placeholder:"请输入收件人姓名",border:"surround",customStyle:{marginTop:"16rpx"}},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("收件人电话")])),_:1}),V(F,{modelValue:K.return_phone,"onUpdate:modelValue":a[3]||(a[3]=e=>K.return_phone=e),disabled:ie.value,type:"number",placeholder:"请输入收件人电话",border:"surround",maxlength:"11"},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("收件地址")])),_:1}),V(n,{class:T(["region-row",ie.value?"disabled":""]),onClick:Ee},{default:_((()=>[V(s,{class:T(["region-text",we.value?"":"placeholder"])},{default:_((()=>[E(j(we.value||"请选择省/市/区"),1)])),_:1},8,["class"]),V(s,{class:"arrow"},{default:_((()=>[E("›")])),_:1})])),_:1},8,["class"]),V(F,{modelValue:K.return_address,"onUpdate:modelValue":a[4]||(a[4]=e=>K.return_address=e),disabled:ie.value,placeholder:"详细门牌号",border:"surround",customStyle:{marginTop:"16rpx"}},null,8,["modelValue","disabled"])])),_:1})],64)):I("",!0),K.sample_types&&K.sample_types.length||Q.value?(C(),z(S,{key:4},[V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("报告接收邮箱")])),_:1}),V(F,{modelValue:K.report_email,"onUpdate:modelValue":a[5]||(a[5]=e=>K.report_email=e),disabled:ie.value,placeholder:"请输入邮箱地址",border:"surround"},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("送检样本物流单号")])),_:1}),V(F,{modelValue:K.sample_tracking_no,"onUpdate:modelValue":a[6]||(a[6]=e=>K.sample_tracking_no=e),disabled:ie.value,placeholder:"请输入物流单号",border:"surround"},null,8,["modelValue","disabled"])])),_:1}),V(n,{class:"form-group"},{default:_((()=>[V(s,{class:"form-label"},{default:_((()=>[E("送检单照片(可上传多张)")])),_:1}),V(n,{class:"upload-row"},{default:_((()=>[(C(!0),z(S,null,U(K.sample_photos,((e,a)=>(C(),d(n,{class:"upload-item",key:"sp"+a},{default:_((()=>[V(N,{class:"upload-img",src:e,mode:"aspectFill",onClick:e=>(e=>{B({urls:K.sample_photos,current:e})})(a)},null,8,["src","onClick"]),ie.value?I("",!0):(C(),d(n,{key:0,class:"upload-del",onClick:e=>K.sample_photos.splice(a,1)},{default:_((()=>[E("×")])),_:2},1032,["onClick"]))])),_:2},1024)))),128)),ie.value?I("",!0):(C(),d(n,{key:0,class:"upload-box",onClick:Pe},{default:_((()=>[V(s,{class:"upload-icon"},{default:_((()=>[E("+")])),_:1}),V(s,{class:"upload-text"},{default:_((()=>[E("上传图片")])),_:1})])),_:1}))])),_:1})])),_:1})],64)):I("",!0)])),_:1}),V(n,{class:"btn-wrap"},{default:_((()=>[V(n,{class:"agree-row",onClick:Ge},{default:_((()=>[V(r,null,{default:_((()=>[V(u,{checked:M.value,disabled:ie.value,shape:"circle",activeColor:"#0E63E3",size:"18"},null,8,["checked","disabled"])])),_:1}),V(s,{class:"agree-text"},{default:_((()=>[E("请阅读并同意")])),_:1}),V(s,{class:"agree-link",onClick:$(Fe,["stop"])},{default:_((()=>[E("《患者告知书》")])),_:1})])),_:1}),de.value?(C(),d(R,{key:0,text:"申请修改送检信息",loading:ue.value,onClick:Re,color:"#0E63E3",plain:"",size:"large"},null,8,["loading"])):I("",!0),de.value?I("",!0):(C(),d(R,{key:1,text:me.value,loading:H.value,onClick:Je,color:"#0E63E3",size:"large"},null,8,["text","loading"]))])),_:1}),V(X,{show:se.value,mode:"bottom",round:"12",safeAreaInsetBottom:!0,onClose:qe},{default:_((()=>[V(n,{class:"apply-popup"},{default:_((()=>[V(n,{class:"apply-title"},{default:_((()=>[E("申请修改送检信息")])),_:1}),V(n,{class:"apply-desc"},{default:_((()=>[E("请填写需要修改送检信息的原因,平台审核通过后即可重新编辑。")])),_:1}),V(D,{modelValue:ne.value,"onUpdate:modelValue":a[7]||(a[7]=e=>ne.value=e),class:"apply-textarea",maxlength:"500",placeholder:"请输入申请原因","adjust-position":!0,"cursor-spacing":40},null,8,["modelValue"]),V(n,{class:"apply-actions"},{default:_((()=>[V(R,{text:"取消",onClick:qe,plain:"",color:"#909399"}),V(R,{text:"提交申请",loading:ue.value,onClick:Ae,color:"#0E63E3"},null,8,["loading"])])),_:1})])),_:1})])),_:1},8,["show"]),fe.value[0].length?(C(),d(ee,{key:0,show:ye.value,columns:fe.value,onConfirm:$e,onCancel:a[8]||(a[8]=e=>ye.value=!1),onChange:Se,defaultIndex:he.value},null,8,["show","columns","defaultIndex"])):I("",!0)])),_:1})}}},[["__scopeId","data-v-32ff98dd"]]);export{J as default}; diff --git a/assets/pages-sign-sign.Dru0J10w.js b/assets/pages-sign-sign.CA-2zWs9.js similarity index 99% rename from assets/pages-sign-sign.Dru0J10w.js rename to assets/pages-sign-sign.CA-2zWs9.js index 1200b0d..aed9b39 100644 --- a/assets/pages-sign-sign.Dru0J10w.js +++ b/assets/pages-sign-sign.CA-2zWs9.js @@ -1 +1 @@ -import{_ as e,r as a,al as t,h as l,a as n,w as o,j as s,V as u,l as i,t as r,m as c,C as d,E as m,g as v,H as h,J as p,i as g,am as f,K as _,ab as w,b as y,y as b,z as C,a7 as I,A as k,a3 as x,G as R,an as V,a5 as j,X as U,I as E}from"./index-It-40-XE.js";const S=e({__name:"h5-signature",props:{show:{type:Boolean,default:!1}},emits:["close","confirm"],setup(e,{emit:_}){const w=e,y=_;let b=null;const C=a(!1),I=a(!1);let k=!1;const x=async()=>{await new Promise(((e,a)=>{if(window.SmoothSignature)return void e();if(k){const a=setInterval((()=>{window.SmoothSignature&&(clearInterval(a),e())}),50);return}k=!0;const t=document.createElement("script");t.src="https://cdn.csybhelp.com/lib/smooth-signature.umd.min.js",t.onload=e,t.onerror=a,document.head.appendChild(t)})),await f(),setTimeout((()=>{const e=document.getElementById("signContainer");if(!e)return;e.innerHTML="";const a=document.createElement("canvas");a.style.width="100%",a.style.height="100%",e.appendChild(a),b=new window.SmoothSignature(a,{width:e.offsetWidth,height:e.offsetHeight,minWidth:2,maxWidth:6,color:"#333",bgColor:"transparent"}),a.addEventListener("touchstart",(()=>{C.value=!0})),a.addEventListener("mousedown",(()=>{C.value=!0}))}),200)};t((()=>w.show),(async e=>{e&&(C.value=!1,I.value=!1,b=null,await x())}));const R=()=>{b&&b.clear(),C.value=!1},V=()=>{y("close")},j=async()=>{if(!C.value||!b)return d({title:"请先签名",icon:"none"});if(!I.value){I.value=!0,m({title:"保存中..."});try{const e=b.getPNG();if(!e)throw{msg:"获取签名失败"};const a=await E(e,-90),t=U(a),l=new FormData;l.append("file",t,"signature.png");const n=v("pap-cytx-token")||"",o=(uni.$u&&uni.$u.http&&uni.$u.http.config?uni.$u.http.config.baseURL:"/pro-api")+"/api/mp/upload",s=await new Promise(((e,a)=>{const t=new XMLHttpRequest;t.open("POST",o),n&&t.setRequestHeader("Authorization","Bearer "+n),t.onload=()=>{try{const l=JSON.parse(t.responseText);0===l.code&&l.data&&l.data.url?e(l.data.url):a({msg:l.msg||"上传失败"})}catch(l){a({msg:"上传失败"})}},t.onerror=()=>a({msg:"网络错误"}),t.send(l)}));h(),y("confirm",{url:s})}catch(e){h(),d({title:e.msg||"上传失败",icon:"none"})}finally{I.value=!1}}},U=e=>{const a=e.split(","),t=a[0].match(/:(.*?);/)[1],l=atob(a[1]);let n=l.length;const o=new Uint8Array(n);for(;n--;)o[n]=l.charCodeAt(n);return new Blob([o],{type:t})},E=(e,a)=>new Promise((t=>{const l=new Image;l.onload=()=>{const e=document.createElement("canvas"),n=a*Math.PI/180;90===Math.abs(a)?(e.width=l.height,e.height=l.width):(e.width=l.width,e.height=l.height);const o=e.getContext("2d");o.translate(e.width/2,e.height/2),o.rotate(n),o.drawImage(l,-l.width/2,-l.height/2),t(e.toDataURL("image/png"))},l.src=e}));return(a,t)=>{const d=p,m=g;return e.show?(l(),n(m,{key:0,class:"sign-page"},{default:o((()=>[s(m,{class:"canvas-wrap",onTouchmove:t[0]||(t[0]=u((()=>{}),["stop","prevent"]))},{default:o((()=>[s(m,{class:"hint-text"},{default:o((()=>[s(d,null,{default:o((()=>[i("请在此处手写签名")])),_:1}),s(d,{class:"hint-sub"},{default:o((()=>[i("请横屏书写")])),_:1})])),_:1}),s(m,{id:"signContainer",class:"sign-container"})])),_:1}),s(m,{class:"bottom-btns"},{default:o((()=>[s(m,{class:"btn-close",onClick:V},{default:o((()=>[s(d,null,{default:o((()=>[i("取消")])),_:1})])),_:1}),s(m,{class:"btn-clear",onClick:R},{default:o((()=>[s(d,null,{default:o((()=>[i("清除")])),_:1})])),_:1}),s(m,{class:"btn-save",onClick:j},{default:o((()=>[s(d,null,{default:o((()=>[i(r(I.value?"上传中":"保存"),1)])),_:1})])),_:1})])),_:1})])),_:1})):c("",!0)}}},[["__scopeId","data-v-3410dbae"]]),N=e({__name:"sign",setup(e){const t=a(""),u=a(""),m=a(""),v=a(""),h=a(""),f=a(""),N=a(""),L=a(""),P=a(!1),T=a(!1);_((e=>{t.value=e.type||"privacy",e.amount&&(v.value=decodeURIComponent(e.amount)),e.guardianName&&(h.value=decodeURIComponent(e.guardianName)),e.guardianIdCard&&(f.value=decodeURIComponent(e.guardianIdCard)),e.guardianRelation&&(N.value=decodeURIComponent(e.guardianRelation)),H()})),w((()=>{}));const H=async()=>{try{const e="sign_"+t.value,a=await y("/api/content",{key:e});u.value=a.data.title||"",m.value=a.data.content||""}catch(e){}},$=()=>{T.value=!0},z=e=>{T.value=!1,e.url&&(L.value=e.url)},A=async()=>{if(!L.value)return d({title:"请先签名",icon:"none"});if("income"===t.value&&(!v.value||Number(v.value)<=0))return d({title:"请填写有效的收入金额",icon:"none"});if("privacy_jhr"===t.value){if(!h.value.trim())return d({title:"请输入监护人姓名",icon:"none"});if(!f.value.trim())return d({title:"请输入监护人身份证号",icon:"none"});if(!/^\d{17}[\dXx]$/.test(f.value))return d({title:"监护人身份证格式不正确",icon:"none"});if(!N.value.trim())return d({title:"请输入与患者关系",icon:"none"})}P.value=!0;try{const e={type:t.value,signImage:L.value,amount:"income"===t.value?v.value:void 0,guardianName:"privacy_jhr"===t.value?h.value.trim():void 0,guardianIdCard:"privacy_jhr"===t.value?f.value.trim():void 0,guardianRelation:"privacy_jhr"===t.value?N.value.trim():void 0},a=await R("/api/mp/sign",e);V("signResult",{type:t.value,url:a.data.url,amount:"income"===t.value?v.value:void 0,guardianName:"privacy_jhr"===t.value?h.value.trim():void 0,guardianIdCard:"privacy_jhr"===t.value?f.value.trim():void 0,guardianRelation:"privacy_jhr"===t.value?N.value.trim():void 0}),d({title:"签署成功",icon:"success"}),setTimeout((()=>j()),1e3)}catch(e){e&&e.msg&&d({title:e.msg,icon:"none"})}finally{P.value=!1}};return(e,a)=>{const d=g,_=U,w=p,y=b(C("u-input"),I),R=E,V=b(C("u-icon"),k),j=b(C("u-button"),x),H=b(C("h5-signature"),S);return l(),n(d,{class:"page"},{default:o((()=>[s(d,{class:"section"},{default:o((()=>[s(d,{class:"doc-title"},{default:o((()=>[i(r(u.value),1)])),_:1}),s(_,{class:"doc-body",nodes:m.value},null,8,["nodes"])])),_:1}),"income"===t.value?(l(),n(d,{key:0,class:"section"},{default:o((()=>[s(d,{class:"form-label"},{default:o((()=>[i("请填写您的个人年可支配收入(元)")])),_:1}),s(d,{class:"amount-wrap"},{default:o((()=>[s(w,{class:"amount-prefix"},{default:o((()=>[i("¥")])),_:1}),s(y,{modelValue:v.value,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value=e),type:"number",placeholder:"请输入金额",border:"none",maxlength:"7"},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),"privacy_jhr"===t.value?(l(),n(d,{key:1,class:"section"},{default:o((()=>[s(d,{class:"form-label"},{default:o((()=>[i("监护人信息")])),_:1}),s(d,{class:"form-row"},{default:o((()=>[s(w,{class:"row-label"},{default:o((()=>[i("监护人姓名")])),_:1}),s(y,{modelValue:h.value,"onUpdate:modelValue":a[1]||(a[1]=e=>h.value=e),placeholder:"请输入监护人姓名",border:"surround",maxlength:"20"},null,8,["modelValue"])])),_:1}),s(d,{class:"form-row"},{default:o((()=>[s(w,{class:"row-label"},{default:o((()=>[i("监护人身份证")])),_:1}),s(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),placeholder:"请输入监护人身份证号",border:"surround",maxlength:"18"},null,8,["modelValue"])])),_:1}),s(d,{class:"form-row"},{default:o((()=>[s(w,{class:"row-label"},{default:o((()=>[i("与患者关系")])),_:1}),s(y,{modelValue:N.value,"onUpdate:modelValue":a[3]||(a[3]=e=>N.value=e),placeholder:"如:父亲、母亲",border:"surround",maxlength:"10"},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),s(d,{class:"section"},{default:o((()=>[s(d,{class:"sign-label"},{default:o((()=>[i("请在下方签名确认")])),_:1}),s(d,{class:"canvas-wrap",onClick:$},{default:o((()=>[L.value?(l(),n(R,{key:0,class:"sign-preview",src:L.value,mode:"aspectFit"},null,8,["src"])):(l(),n(d,{key:1,class:"canvas-placeholder"},{default:o((()=>[s(V,{name:"edit-pen",size:"28",color:"#ccc"}),s(w,null,{default:o((()=>[i("点击此处去签名")])),_:1})])),_:1}))])),_:1}),L.value?(l(),n(d,{key:0,class:"sign-actions"},{default:o((()=>[s(d,{class:"clear-btn",onClick:$},{default:o((()=>[i("重新签名")])),_:1})])),_:1})):c("",!0)])),_:1}),s(d,{class:"btn-wrap"},{default:o((()=>[s(j,{text:"确认签署",loading:P.value,onClick:A,color:"#0E63E3",size:"large"},null,8,["loading"])])),_:1}),s(H,{show:T.value,onClose:a[4]||(a[4]=e=>T.value=!1),onConfirm:z},null,8,["show"])])),_:1})}}},[["__scopeId","data-v-c2a99871"]]);export{N as default}; +import{_ as e,r as a,al as t,h as l,a as n,w as o,j as s,V as u,l as i,t as r,m as c,C as d,E as m,g as v,H as h,J as p,i as g,am as f,K as _,ab as w,b as y,y as b,z as C,a7 as I,A as k,a3 as x,G as R,an as V,a5 as j,X as U,I as E}from"./index-BWvsB30X.js";const S=e({__name:"h5-signature",props:{show:{type:Boolean,default:!1}},emits:["close","confirm"],setup(e,{emit:_}){const w=e,y=_;let b=null;const C=a(!1),I=a(!1);let k=!1;const x=async()=>{await new Promise(((e,a)=>{if(window.SmoothSignature)return void e();if(k){const a=setInterval((()=>{window.SmoothSignature&&(clearInterval(a),e())}),50);return}k=!0;const t=document.createElement("script");t.src="https://cdn.csybhelp.com/lib/smooth-signature.umd.min.js",t.onload=e,t.onerror=a,document.head.appendChild(t)})),await f(),setTimeout((()=>{const e=document.getElementById("signContainer");if(!e)return;e.innerHTML="";const a=document.createElement("canvas");a.style.width="100%",a.style.height="100%",e.appendChild(a),b=new window.SmoothSignature(a,{width:e.offsetWidth,height:e.offsetHeight,minWidth:2,maxWidth:6,color:"#333",bgColor:"transparent"}),a.addEventListener("touchstart",(()=>{C.value=!0})),a.addEventListener("mousedown",(()=>{C.value=!0}))}),200)};t((()=>w.show),(async e=>{e&&(C.value=!1,I.value=!1,b=null,await x())}));const R=()=>{b&&b.clear(),C.value=!1},V=()=>{y("close")},j=async()=>{if(!C.value||!b)return d({title:"请先签名",icon:"none"});if(!I.value){I.value=!0,m({title:"保存中..."});try{const e=b.getPNG();if(!e)throw{msg:"获取签名失败"};const a=await E(e,-90),t=U(a),l=new FormData;l.append("file",t,"signature.png");const n=v("pap-cytx-token")||"",o=(uni.$u&&uni.$u.http&&uni.$u.http.config?uni.$u.http.config.baseURL:"/pro-api")+"/api/mp/upload",s=await new Promise(((e,a)=>{const t=new XMLHttpRequest;t.open("POST",o),n&&t.setRequestHeader("Authorization","Bearer "+n),t.onload=()=>{try{const l=JSON.parse(t.responseText);0===l.code&&l.data&&l.data.url?e(l.data.url):a({msg:l.msg||"上传失败"})}catch(l){a({msg:"上传失败"})}},t.onerror=()=>a({msg:"网络错误"}),t.send(l)}));h(),y("confirm",{url:s})}catch(e){h(),d({title:e.msg||"上传失败",icon:"none"})}finally{I.value=!1}}},U=e=>{const a=e.split(","),t=a[0].match(/:(.*?);/)[1],l=atob(a[1]);let n=l.length;const o=new Uint8Array(n);for(;n--;)o[n]=l.charCodeAt(n);return new Blob([o],{type:t})},E=(e,a)=>new Promise((t=>{const l=new Image;l.onload=()=>{const e=document.createElement("canvas"),n=a*Math.PI/180;90===Math.abs(a)?(e.width=l.height,e.height=l.width):(e.width=l.width,e.height=l.height);const o=e.getContext("2d");o.translate(e.width/2,e.height/2),o.rotate(n),o.drawImage(l,-l.width/2,-l.height/2),t(e.toDataURL("image/png"))},l.src=e}));return(a,t)=>{const d=p,m=g;return e.show?(l(),n(m,{key:0,class:"sign-page"},{default:o((()=>[s(m,{class:"canvas-wrap",onTouchmove:t[0]||(t[0]=u((()=>{}),["stop","prevent"]))},{default:o((()=>[s(m,{class:"hint-text"},{default:o((()=>[s(d,null,{default:o((()=>[i("请在此处手写签名")])),_:1}),s(d,{class:"hint-sub"},{default:o((()=>[i("请横屏书写")])),_:1})])),_:1}),s(m,{id:"signContainer",class:"sign-container"})])),_:1}),s(m,{class:"bottom-btns"},{default:o((()=>[s(m,{class:"btn-close",onClick:V},{default:o((()=>[s(d,null,{default:o((()=>[i("取消")])),_:1})])),_:1}),s(m,{class:"btn-clear",onClick:R},{default:o((()=>[s(d,null,{default:o((()=>[i("清除")])),_:1})])),_:1}),s(m,{class:"btn-save",onClick:j},{default:o((()=>[s(d,null,{default:o((()=>[i(r(I.value?"上传中":"保存"),1)])),_:1})])),_:1})])),_:1})])),_:1})):c("",!0)}}},[["__scopeId","data-v-3410dbae"]]),N=e({__name:"sign",setup(e){const t=a(""),u=a(""),m=a(""),v=a(""),h=a(""),f=a(""),N=a(""),L=a(""),P=a(!1),T=a(!1);_((e=>{t.value=e.type||"privacy",e.amount&&(v.value=decodeURIComponent(e.amount)),e.guardianName&&(h.value=decodeURIComponent(e.guardianName)),e.guardianIdCard&&(f.value=decodeURIComponent(e.guardianIdCard)),e.guardianRelation&&(N.value=decodeURIComponent(e.guardianRelation)),H()})),w((()=>{}));const H=async()=>{try{const e="sign_"+t.value,a=await y("/api/content",{key:e});u.value=a.data.title||"",m.value=a.data.content||""}catch(e){}},$=()=>{T.value=!0},z=e=>{T.value=!1,e.url&&(L.value=e.url)},A=async()=>{if(!L.value)return d({title:"请先签名",icon:"none"});if("income"===t.value&&(!v.value||Number(v.value)<=0))return d({title:"请填写有效的收入金额",icon:"none"});if("privacy_jhr"===t.value){if(!h.value.trim())return d({title:"请输入监护人姓名",icon:"none"});if(!f.value.trim())return d({title:"请输入监护人身份证号",icon:"none"});if(!/^\d{17}[\dXx]$/.test(f.value))return d({title:"监护人身份证格式不正确",icon:"none"});if(!N.value.trim())return d({title:"请输入与患者关系",icon:"none"})}P.value=!0;try{const e={type:t.value,signImage:L.value,amount:"income"===t.value?v.value:void 0,guardianName:"privacy_jhr"===t.value?h.value.trim():void 0,guardianIdCard:"privacy_jhr"===t.value?f.value.trim():void 0,guardianRelation:"privacy_jhr"===t.value?N.value.trim():void 0},a=await R("/api/mp/sign",e);V("signResult",{type:t.value,url:a.data.url,amount:"income"===t.value?v.value:void 0,guardianName:"privacy_jhr"===t.value?h.value.trim():void 0,guardianIdCard:"privacy_jhr"===t.value?f.value.trim():void 0,guardianRelation:"privacy_jhr"===t.value?N.value.trim():void 0}),d({title:"签署成功",icon:"success"}),setTimeout((()=>j()),1e3)}catch(e){e&&e.msg&&d({title:e.msg,icon:"none"})}finally{P.value=!1}};return(e,a)=>{const d=g,_=U,w=p,y=b(C("u-input"),I),R=E,V=b(C("u-icon"),k),j=b(C("u-button"),x),H=b(C("h5-signature"),S);return l(),n(d,{class:"page"},{default:o((()=>[s(d,{class:"section"},{default:o((()=>[s(d,{class:"doc-title"},{default:o((()=>[i(r(u.value),1)])),_:1}),s(_,{class:"doc-body",nodes:m.value},null,8,["nodes"])])),_:1}),"income"===t.value?(l(),n(d,{key:0,class:"section"},{default:o((()=>[s(d,{class:"form-label"},{default:o((()=>[i("请填写您的个人年可支配收入(元)")])),_:1}),s(d,{class:"amount-wrap"},{default:o((()=>[s(w,{class:"amount-prefix"},{default:o((()=>[i("¥")])),_:1}),s(y,{modelValue:v.value,"onUpdate:modelValue":a[0]||(a[0]=e=>v.value=e),type:"number",placeholder:"请输入金额",border:"none",maxlength:"7"},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),"privacy_jhr"===t.value?(l(),n(d,{key:1,class:"section"},{default:o((()=>[s(d,{class:"form-label"},{default:o((()=>[i("监护人信息")])),_:1}),s(d,{class:"form-row"},{default:o((()=>[s(w,{class:"row-label"},{default:o((()=>[i("监护人姓名")])),_:1}),s(y,{modelValue:h.value,"onUpdate:modelValue":a[1]||(a[1]=e=>h.value=e),placeholder:"请输入监护人姓名",border:"surround",maxlength:"20"},null,8,["modelValue"])])),_:1}),s(d,{class:"form-row"},{default:o((()=>[s(w,{class:"row-label"},{default:o((()=>[i("监护人身份证")])),_:1}),s(y,{modelValue:f.value,"onUpdate:modelValue":a[2]||(a[2]=e=>f.value=e),placeholder:"请输入监护人身份证号",border:"surround",maxlength:"18"},null,8,["modelValue"])])),_:1}),s(d,{class:"form-row"},{default:o((()=>[s(w,{class:"row-label"},{default:o((()=>[i("与患者关系")])),_:1}),s(y,{modelValue:N.value,"onUpdate:modelValue":a[3]||(a[3]=e=>N.value=e),placeholder:"如:父亲、母亲",border:"surround",maxlength:"10"},null,8,["modelValue"])])),_:1})])),_:1})):c("",!0),s(d,{class:"section"},{default:o((()=>[s(d,{class:"sign-label"},{default:o((()=>[i("请在下方签名确认")])),_:1}),s(d,{class:"canvas-wrap",onClick:$},{default:o((()=>[L.value?(l(),n(R,{key:0,class:"sign-preview",src:L.value,mode:"aspectFit"},null,8,["src"])):(l(),n(d,{key:1,class:"canvas-placeholder"},{default:o((()=>[s(V,{name:"edit-pen",size:"28",color:"#ccc"}),s(w,null,{default:o((()=>[i("点击此处去签名")])),_:1})])),_:1}))])),_:1}),L.value?(l(),n(d,{key:0,class:"sign-actions"},{default:o((()=>[s(d,{class:"clear-btn",onClick:$},{default:o((()=>[i("重新签名")])),_:1})])),_:1})):c("",!0)])),_:1}),s(d,{class:"btn-wrap"},{default:o((()=>[s(j,{text:"确认签署",loading:P.value,onClick:A,color:"#0E63E3",size:"large"},null,8,["loading"])])),_:1}),s(H,{show:T.value,onClose:a[4]||(a[4]=e=>T.value=!1),onConfirm:z},null,8,["show"])])),_:1})}}},[["__scopeId","data-v-c2a99871"]]);export{N as default}; diff --git a/assets/pages-sign-signature.DegrS7tt.js b/assets/pages-sign-signature.Ct0cj36K.js similarity index 97% rename from assets/pages-sign-signature.DegrS7tt.js rename to assets/pages-sign-signature.Ct0cj36K.js index 8878193..ab2a419 100644 --- a/assets/pages-sign-signature.DegrS7tt.js +++ b/assets/pages-sign-signature.Ct0cj36K.js @@ -1 +1 @@ -import{_ as a,r as e,K as t,am as s,Z as n,Y as l,a as i,w as o,i as c,h as u,j as r,l as d,C as f,E as h,ao as g,F as p,H as v,an as m,a5 as y,J as _,ap as w}from"./index-It-40-XE.js";const x=a({__name:"signature",setup(a){let x=null,C=null,b=0,T=0;const P=e(!1),k=e(!1);let I=0,R=0;t((async()=>{await s(),setTimeout((()=>{n().select("#signCanvas").fields({node:!0,size:!0}).exec((a=>{if(!a[0])return;C=a[0].node;const e=l().pixelRatio;b=a[0].width,T=a[0].height,C.width=b*e,C.height=T*e,x=C.getContext("2d"),x.scale(e,e),x.lineCap="round",x.lineJoin="round",x.lineWidth=4,x.strokeStyle="#333"}))}),300)}));const F=a=>{const e=a.touches[0];return{x:e.x,y:e.y}},j=a=>{if(!x)return;P.value=!0;const{x:e,y:t}=F(a);I=e,R=t,x.beginPath(),x.moveTo(e,t)},q=a=>{if(!x)return;const{x:e,y:t}=F(a);x.beginPath(),x.moveTo(I,R),x.lineTo(e,t),x.stroke(),I=e,R=t},J=()=>{},z=()=>{x&&C&&(x.clearRect(0,0,b,T),P.value=!1)},E=()=>{P.value?k.value||(k.value=!0,h({title:"保存中..."}),g({canvas:C,fileType:"png",quality:1,success:async a=>{try{const e=l().pixelRatio,t=uni.createOffscreenCanvas({type:"2d",width:T*e,height:b*e}),s=t.getContext("2d"),n=t.createImage();await new Promise(((e,t)=>{n.onload=e,n.onerror=t,n.src=a.tempFilePath})),s.translate(0,b*e),s.rotate(-Math.PI/2),s.drawImage(n,0,0);const i=await new Promise(((a,e)=>{g({canvas:t,fileType:"png",quality:1,success:a,fail:e})})),o=await p("/api/mp/upload",{filePath:i.tempFilePath,name:"file"});if(!o.data||!o.data.url)throw{msg:"上传失败"};v(),m("signatureResult",{url:o.data.url}),y()}catch(e){v(),f({title:e.msg||"上传失败,请重试",icon:"none"})}finally{k.value=!1}},fail:()=>{v(),f({title:"保存失败",icon:"none"}),k.value=!1}})):f({title:"请先签名",icon:"none"})};return(a,e)=>{const t=_,s=c,n=w;return u(),i(s,{class:"sign-page"},{default:o((()=>[r(s,{class:"canvas-wrap"},{default:o((()=>[r(s,{class:"hint-text"},{default:o((()=>[r(t,null,{default:o((()=>[d("请在此处手写签名")])),_:1}),r(t,{class:"hint-sub"},{default:o((()=>[d("请横屏书写")])),_:1})])),_:1}),r(n,{id:"signCanvas","canvas-id":"signCanvas",type:"2d",class:"sign-canvas","disable-scroll":"",onTouchstart:j,onTouchmove:q,onTouchend:J})])),_:1}),r(s,{class:"bottom-btns"},{default:o((()=>[r(s,{class:"btn-clear",onClick:z},{default:o((()=>[r(t,null,{default:o((()=>[d("清除")])),_:1})])),_:1}),r(s,{class:"btn-save",onClick:E},{default:o((()=>[r(t,null,{default:o((()=>[d("保存")])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-f86ebae0"]]);export{x as default}; +import{_ as a,r as e,K as t,am as s,Z as n,Y as l,a as i,w as o,i as c,h as u,j as r,l as d,C as f,E as h,ao as g,F as p,H as v,an as m,a5 as y,J as _,ap as w}from"./index-BWvsB30X.js";const x=a({__name:"signature",setup(a){let x=null,C=null,b=0,T=0;const P=e(!1),k=e(!1);let I=0,R=0;t((async()=>{await s(),setTimeout((()=>{n().select("#signCanvas").fields({node:!0,size:!0}).exec((a=>{if(!a[0])return;C=a[0].node;const e=l().pixelRatio;b=a[0].width,T=a[0].height,C.width=b*e,C.height=T*e,x=C.getContext("2d"),x.scale(e,e),x.lineCap="round",x.lineJoin="round",x.lineWidth=4,x.strokeStyle="#333"}))}),300)}));const F=a=>{const e=a.touches[0];return{x:e.x,y:e.y}},j=a=>{if(!x)return;P.value=!0;const{x:e,y:t}=F(a);I=e,R=t,x.beginPath(),x.moveTo(e,t)},q=a=>{if(!x)return;const{x:e,y:t}=F(a);x.beginPath(),x.moveTo(I,R),x.lineTo(e,t),x.stroke(),I=e,R=t},J=()=>{},z=()=>{x&&C&&(x.clearRect(0,0,b,T),P.value=!1)},E=()=>{P.value?k.value||(k.value=!0,h({title:"保存中..."}),g({canvas:C,fileType:"png",quality:1,success:async a=>{try{const e=l().pixelRatio,t=uni.createOffscreenCanvas({type:"2d",width:T*e,height:b*e}),s=t.getContext("2d"),n=t.createImage();await new Promise(((e,t)=>{n.onload=e,n.onerror=t,n.src=a.tempFilePath})),s.translate(0,b*e),s.rotate(-Math.PI/2),s.drawImage(n,0,0);const i=await new Promise(((a,e)=>{g({canvas:t,fileType:"png",quality:1,success:a,fail:e})})),o=await p("/api/mp/upload",{filePath:i.tempFilePath,name:"file"});if(!o.data||!o.data.url)throw{msg:"上传失败"};v(),m("signatureResult",{url:o.data.url}),y()}catch(e){v(),f({title:e.msg||"上传失败,请重试",icon:"none"})}finally{k.value=!1}},fail:()=>{v(),f({title:"保存失败",icon:"none"}),k.value=!1}})):f({title:"请先签名",icon:"none"})};return(a,e)=>{const t=_,s=c,n=w;return u(),i(s,{class:"sign-page"},{default:o((()=>[r(s,{class:"canvas-wrap"},{default:o((()=>[r(s,{class:"hint-text"},{default:o((()=>[r(t,null,{default:o((()=>[d("请在此处手写签名")])),_:1}),r(t,{class:"hint-sub"},{default:o((()=>[d("请横屏书写")])),_:1})])),_:1}),r(n,{id:"signCanvas","canvas-id":"signCanvas",type:"2d",class:"sign-canvas","disable-scroll":"",onTouchstart:j,onTouchmove:q,onTouchend:J})])),_:1}),r(s,{class:"bottom-btns"},{default:o((()=>[r(s,{class:"btn-clear",onClick:z},{default:o((()=>[r(t,null,{default:o((()=>[d("清除")])),_:1})])),_:1}),r(s,{class:"btn-save",onClick:E},{default:o((()=>[r(t,null,{default:o((()=>[d("保存")])),_:1})])),_:1})])),_:1})])),_:1})}}},[["__scopeId","data-v-f86ebae0"]]);export{x as default}; diff --git a/assets/pages-verify-verify.BFZit7FK.js b/assets/pages-verify-verify.CZTPsAba.js similarity index 99% rename from assets/pages-verify-verify.BFZit7FK.js rename to assets/pages-verify-verify.CZTPsAba.js index ae01aa9..cfc6fd8 100644 --- a/assets/pages-verify-verify.BFZit7FK.js +++ b/assets/pages-verify-verify.CZTPsAba.js @@ -1 +1 @@ -import{_ as a,r as e,a1 as l,o as t,a2 as s,b as c,y as d,z as o,a as i,w as n,i as u,A as r,a3 as m,a4 as p,h,j as f,l as v,n as _,m as y,t as b,D as g,C,G as I,f as k,a5 as w,J as N,I as V,a6 as U,v as x,E as F,F as T,H as z}from"./index-It-40-XE.js";const A=a({__name:"verify",setup(a){const A=e("idcard"),P=e(0),B=e(!1),S=e(!1),$=e({name:"",phone:""});let E=null;const j={idcard:1,child:2,temp:3},D=e("上传身份证后自动识别"),X=e("上传身份证后自动识别"),G=l({frontImage:"",backImage:"",childImage:"",name:"",idNo:"",authority:"",validity:"",gender:"",birthday:"",phone:"",smsCode:""});t((()=>{H()})),s((()=>{E&&(clearInterval(E),E=null)}));const H=async()=>{try{const a=await c("/api/mp/authInfo");if(1===a.data.authStatus){const e=a.data,l={1:"idcard",2:"child",3:"temp"};A.value=l[e.idCardType]||"idcard",G.frontImage=e.idCardFront||"",G.backImage=e.idCardBack||"",G.childImage=e.photo||"",G.name=e.realName||"",G.idNo=e.idCard||"",G.authority=e.issuingAuthority||"",G.validity=e.validPeriod||"",G.gender=e.gender||"",G.birthday=e.birthday||"",G.phone=e.phone||""}}catch(a){}},J=a=>{g({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:async e=>{const l=e.tempFilePaths[0];try{const e=await(t=l,new Promise(((a,e)=>{F({title:"上传中..."}),T("/api/mp/upload",{filePath:t,name:"file"}).then((e=>{z(),a(e.data.url)})).catch((a=>{z(),C({title:"上传失败",icon:"none"}),e(a)}))})));"front"===a?(G.frontImage=e,await(async a=>{F({title:"识别中..."});try{const e=(await I("/common/ocr/idcard",{imageUrl:a,cardSide:"FRONT"})).data;G.name=e.name||"",G.idNo=e.idNum||"",z()}catch(e){z(),C({title:"识别失败,请手动填写",icon:"none"})}})(e)):"back"===a?(G.backImage=e,await(async a=>{F({title:"识别中..."});try{const e=await I("/common/ocr/idcard",{imageUrl:a,cardSide:"BACK"});G.authority=e.data.authority||"",G.validity=e.data.validDate||"",G.authority||(D.value="请输入发证机关"),G.validity||(X.value="请输入有效期限"),z()}catch(e){z(),D.value="请输入发证机关",X.value="请输入有效期限"}})(e)):"child"===a&&(G.childImage=e)}catch(s){}var t}})},K=async()=>{if(!(P.value>0))if(G.phone&&11===G.phone.length)try{const a=await I("/api/mp/sendSmsCode",{mobile:G.phone,bizType:"real_name_auth"});a.data&&a.data.code?C({title:`验证码: ${a.data.code}`,icon:"none",duration:3e3}):C({title:"验证码已发送",icon:"none"}),P.value=60,E=setInterval((()=>{P.value--,P.value<=0&&(clearInterval(E),E=null)}),1e3)}catch(a){a&&a.msg&&C({title:a.msg,icon:"none"})}else C({title:"请输入正确的手机号码",icon:"none"})},O=async()=>{if(B.value)return;if(2===j[A.value]){if(!G.childImage)return C({title:"请上传免冠照片",icon:"none"})}else{if(!G.frontImage)return C({title:"请上传证件人像面",icon:"none"});if(!G.backImage)return C({title:"请上传证件国徽面",icon:"none"})}if(!G.name)return C({title:"请输入证件姓名",icon:"none"});if(!G.idNo)return C({title:"请输入证件号码",icon:"none"});if(!(a=>{if(!/^\d{17}[\dXx]$/.test(a))return!1;const e=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];let l=0;for(let t=0;t<17;t++)l+=parseInt(a[t])*e[t];return["1","0","X","9","8","7","6","5","4","3","2"][l%11]===a[17].toUpperCase()})(G.idNo))return C({title:"身份证号格式不正确",icon:"none"});if(18===G.idNo.length){const a=parseInt(G.idNo.charAt(16));G.gender=a%2==1?"男":"女",G.birthday=`${G.idNo.substring(6,10)}-${G.idNo.substring(10,12)}-${G.idNo.substring(12,14)}`}return G.phone&&11===G.phone.length?G.smsCode&&6===G.smsCode.length?void(await R(!1)):C({title:"请输入6位验证码",icon:"none"}):C({title:"请输入正确的手机号",icon:"none"})},R=async a=>{S.value=!1,B.value=!0;try{await I("/api/mp/authSubmit",{idCardType:j[A.value],idCardFront:G.frontImage,idCardBack:G.backImage,photo:G.childImage,realName:G.name,idCard:G.idNo,gender:G.gender,birthday:G.birthday,issuingAuthority:G.authority,validPeriod:G.validity,mobile:G.phone,code:G.smsCode,confirmBind:a||void 0});try{const a=await c("/api/mp/userinfo");k(a.data)}catch(e){}C({title:"认证成功",icon:"success"}),setTimeout((()=>{w()}),1500)}catch(e){e&&1010===e.code?($.value={name:e.data&&e.data.patientName||"",phone:e.data&&e.data.patientPhone||""},S.value=!0):e&&e.msg&&C({title:e.msg,icon:"none"})}finally{B.value=!1}};return(a,e)=>{const l=u,t=N,s=V,c=d(o("u-icon"),r),g=U,C=x,I=d(o("u-button"),m),k=d(o("u-popup"),p);return h(),i(l,{class:"page"},{default:n((()=>[f(l,{class:"page-content"},{default:n((()=>[f(l,{class:"page-title"},{default:n((()=>[v("请确认申请人信息")])),_:1}),f(l,{class:"section"},{default:n((()=>[f(l,{class:"section-header"},{default:n((()=>[f(l,{class:"step-num"},{default:n((()=>[v("1")])),_:1}),f(t,{class:"label"},{default:n((()=>[v("为谁申请")])),_:1}),f(t,{class:"tag warn"},{default:n((()=>[v("请用患者本人信息进行实名申请")])),_:1})])),_:1}),f(l,{class:"section-desc"},{default:n((()=>[v("请选择用来实名证件的类型")])),_:1}),f(l,{class:"cert-tabs"},{default:n((()=>[f(l,{class:_(["cert-tab",{active:"idcard"===A.value}]),onClick:e[0]||(e[0]=a=>A.value="idcard")},{default:n((()=>[f(t,null,{default:n((()=>[v("身份证证件")])),_:1})])),_:1},8,["class"]),f(l,{class:_(["cert-tab",{active:"child"===A.value}]),onClick:e[1]||(e[1]=a=>A.value="child")},{default:n((()=>[f(t,null,{default:n((()=>[v("无证件儿童")])),_:1})])),_:1},8,["class"]),f(l,{class:_(["cert-tab",{active:"temp"===A.value}]),onClick:e[2]||(e[2]=a=>A.value="temp")},{default:n((()=>[f(t,null,{default:n((()=>[v("临时身份证")])),_:1})])),_:1},8,["class"])])),_:1}),"idcard"===A.value||"temp"===A.value?(h(),i(l,{key:0,class:"upload-area"},{default:n((()=>[f(l,{class:"upload-item",onClick:e[3]||(e[3]=a=>J("front"))},{default:n((()=>[f(s,{src:G.frontImage||"https://cdn.csybhelp.com/images/patient/user/idcard-front.webp?v=1",mode:"aspectFill",class:"upload-img"},null,8,["src"]),f(t,{class:"upload-label"},{default:n((()=>[v("请上传证件人像面")])),_:1})])),_:1}),f(l,{class:"upload-item",onClick:e[4]||(e[4]=a=>J("back"))},{default:n((()=>[f(s,{src:G.backImage||"https://cdn.csybhelp.com/images/patient/user/idcard-back.webp?v=1",mode:"aspectFill",class:"upload-img"},null,8,["src"]),f(t,{class:"upload-label"},{default:n((()=>[v("请上传证件国徽面")])),_:1})])),_:1})])),_:1})):y("",!0),"child"===A.value?(h(),i(l,{key:1,class:"child-upload"},{default:n((()=>[f(l,{class:"child-tip"},{default:n((()=>[v("请上传近期免冠照片 "),f(t,{class:"tip-highlight"},{default:n((()=>[v("用于无证件儿童身份核验")])),_:1})])),_:1}),f(l,{class:"child-desc"},{default:n((()=>[v("为了避免增加审核时长,如已办理身份证,请走身份证件通道")])),_:1}),f(l,{class:"child-photo-box",onClick:e[5]||(e[5]=a=>J("child"))},{default:n((()=>[G.childImage?(h(),i(s,{key:0,src:G.childImage,mode:"aspectFill",class:"child-photo-img"},null,8,["src"])):(h(),i(l,{key:1,class:"child-photo-placeholder"},{default:n((()=>[f(c,{name:"camera",size:"40",color:"#ccc"})])),_:1}))])),_:1})])),_:1})):y("",!0)])),_:1}),f(l,{class:"section"},{default:n((()=>[f(l,{class:"section-header"},{default:n((()=>[f(l,{class:"step-num"},{default:n((()=>[v("2")])),_:1}),f(t,{class:"label"},{default:n((()=>[v("信息核验")])),_:1}),f(t,{class:"tag info"},{default:n((()=>[v("如姓名有误,请进行修改再提交")])),_:1})])),_:1}),f(l,{class:"section-desc"},{default:n((()=>[v("请核对证件信息是否有误")])),_:1}),f(l,{class:"form-row"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("证件姓名")])),_:1}),f(g,{class:"form-input",modelValue:G.name,"onUpdate:modelValue":e[6]||(e[6]=a=>G.name=a),placeholder:"child"===A.value?"请输入姓名":"上传身份证后自动识别"},null,8,["modelValue","placeholder"])])),_:1}),f(l,{class:"form-row"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("证件号码")])),_:1}),f(g,{class:"form-input",modelValue:G.idNo,"onUpdate:modelValue":e[7]||(e[7]=a=>G.idNo=a),placeholder:"child"===A.value?"请输入身份证":"上传身份证后自动识别"},null,8,["modelValue","placeholder"])])),_:1}),"child"!==A.value?(h(),i(l,{key:0,class:"form-row"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("发证机关")])),_:1}),f(g,{class:"form-input",modelValue:G.authority,"onUpdate:modelValue":e[8]||(e[8]=a=>G.authority=a),placeholder:D.value},null,8,["modelValue","placeholder"])])),_:1})):y("",!0),"child"!==A.value?(h(),i(l,{key:1,class:"form-row border-none"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("有效期限")])),_:1}),f(g,{class:"form-input",modelValue:G.validity,"onUpdate:modelValue":e[9]||(e[9]=a=>G.validity=a),placeholder:X.value},null,8,["modelValue","placeholder"])])),_:1})):y("",!0)])),_:1}),f(l,{class:"section"},{default:n((()=>[f(l,{class:"section-header"},{default:n((()=>[f(l,{class:"step-num"},{default:n((()=>[v("3")])),_:1}),f(t,{class:"label"},{default:n((()=>[v("手机号码绑定")])),_:1})])),_:1}),f(l,{class:"section-desc"},{default:n((()=>[v("请输入未进行过平台认证的号码进行绑定")])),_:1}),f(l,{class:"phone-row"},{default:n((()=>[f(g,{class:"phone-input",type:"number",modelValue:G.phone,"onUpdate:modelValue":e[10]||(e[10]=a=>G.phone=a),placeholder:"请输入手机号码",maxlength:"11"},null,8,["modelValue"])])),_:1}),f(l,{class:"sms-row"},{default:n((()=>[f(g,{class:"sms-input",type:"number",modelValue:G.smsCode,"onUpdate:modelValue":e[11]||(e[11]=a=>G.smsCode=a),placeholder:"请输入验证码",maxlength:"6"},null,8,["modelValue"]),f(C,{class:"sms-btn",disabled:P.value>0,onClick:K},{default:n((()=>[v(b(P.value>0?P.value+"s后重新获取":"获取验证码"),1)])),_:1},8,["disabled"])])),_:1})])),_:1})])),_:1}),f(l,{class:"submit-bar"},{default:n((()=>[f(C,{class:"submit-btn",onClick:O},{default:n((()=>[v("提交认证")])),_:1})])),_:1}),f(k,{show:S.value,mode:"center",round:"12",safeAreaInsetBottom:!1,onClose:e[14]||(e[14]=a=>S.value=!1)},{default:n((()=>[f(l,{class:"confirm-popup"},{default:n((()=>[f(l,{class:"confirm-title"},{default:n((()=>[v("提示")])),_:1}),f(l,{class:"confirm-content"},{default:n((()=>[v("检测到患者信息已存在("+b($.value.name)+" "+b($.value.phone)+"),是否确认绑定该患者信息?",1)])),_:1}),f(l,{class:"confirm-btns"},{default:n((()=>[f(I,{text:"取消",size:"normal",plain:!0,shape:"circle",onClick:e[12]||(e[12]=a=>S.value=!1)}),f(I,{text:"确认绑定",size:"normal",color:"#0E63E3",shape:"circle",onClick:e[13]||(e[13]=a=>R(!0))})])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-663e7f77"]]);export{A as default}; +import{_ as a,r as e,a1 as l,o as t,a2 as s,b as c,y as d,z as o,a as i,w as n,i as u,A as r,a3 as m,a4 as p,h,j as f,l as v,n as _,m as y,t as b,D as g,C,G as I,f as k,a5 as w,J as N,I as V,a6 as U,v as x,E as F,F as T,H as z}from"./index-BWvsB30X.js";const A=a({__name:"verify",setup(a){const A=e("idcard"),P=e(0),B=e(!1),S=e(!1),$=e({name:"",phone:""});let E=null;const j={idcard:1,child:2,temp:3},D=e("上传身份证后自动识别"),X=e("上传身份证后自动识别"),G=l({frontImage:"",backImage:"",childImage:"",name:"",idNo:"",authority:"",validity:"",gender:"",birthday:"",phone:"",smsCode:""});t((()=>{H()})),s((()=>{E&&(clearInterval(E),E=null)}));const H=async()=>{try{const a=await c("/api/mp/authInfo");if(1===a.data.authStatus){const e=a.data,l={1:"idcard",2:"child",3:"temp"};A.value=l[e.idCardType]||"idcard",G.frontImage=e.idCardFront||"",G.backImage=e.idCardBack||"",G.childImage=e.photo||"",G.name=e.realName||"",G.idNo=e.idCard||"",G.authority=e.issuingAuthority||"",G.validity=e.validPeriod||"",G.gender=e.gender||"",G.birthday=e.birthday||"",G.phone=e.phone||""}}catch(a){}},J=a=>{g({count:1,sizeType:["compressed"],sourceType:["album","camera"],success:async e=>{const l=e.tempFilePaths[0];try{const e=await(t=l,new Promise(((a,e)=>{F({title:"上传中..."}),T("/api/mp/upload",{filePath:t,name:"file"}).then((e=>{z(),a(e.data.url)})).catch((a=>{z(),C({title:"上传失败",icon:"none"}),e(a)}))})));"front"===a?(G.frontImage=e,await(async a=>{F({title:"识别中..."});try{const e=(await I("/common/ocr/idcard",{imageUrl:a,cardSide:"FRONT"})).data;G.name=e.name||"",G.idNo=e.idNum||"",z()}catch(e){z(),C({title:"识别失败,请手动填写",icon:"none"})}})(e)):"back"===a?(G.backImage=e,await(async a=>{F({title:"识别中..."});try{const e=await I("/common/ocr/idcard",{imageUrl:a,cardSide:"BACK"});G.authority=e.data.authority||"",G.validity=e.data.validDate||"",G.authority||(D.value="请输入发证机关"),G.validity||(X.value="请输入有效期限"),z()}catch(e){z(),D.value="请输入发证机关",X.value="请输入有效期限"}})(e)):"child"===a&&(G.childImage=e)}catch(s){}var t}})},K=async()=>{if(!(P.value>0))if(G.phone&&11===G.phone.length)try{const a=await I("/api/mp/sendSmsCode",{mobile:G.phone,bizType:"real_name_auth"});a.data&&a.data.code?C({title:`验证码: ${a.data.code}`,icon:"none",duration:3e3}):C({title:"验证码已发送",icon:"none"}),P.value=60,E=setInterval((()=>{P.value--,P.value<=0&&(clearInterval(E),E=null)}),1e3)}catch(a){a&&a.msg&&C({title:a.msg,icon:"none"})}else C({title:"请输入正确的手机号码",icon:"none"})},O=async()=>{if(B.value)return;if(2===j[A.value]){if(!G.childImage)return C({title:"请上传免冠照片",icon:"none"})}else{if(!G.frontImage)return C({title:"请上传证件人像面",icon:"none"});if(!G.backImage)return C({title:"请上传证件国徽面",icon:"none"})}if(!G.name)return C({title:"请输入证件姓名",icon:"none"});if(!G.idNo)return C({title:"请输入证件号码",icon:"none"});if(!(a=>{if(!/^\d{17}[\dXx]$/.test(a))return!1;const e=[7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2];let l=0;for(let t=0;t<17;t++)l+=parseInt(a[t])*e[t];return["1","0","X","9","8","7","6","5","4","3","2"][l%11]===a[17].toUpperCase()})(G.idNo))return C({title:"身份证号格式不正确",icon:"none"});if(18===G.idNo.length){const a=parseInt(G.idNo.charAt(16));G.gender=a%2==1?"男":"女",G.birthday=`${G.idNo.substring(6,10)}-${G.idNo.substring(10,12)}-${G.idNo.substring(12,14)}`}return G.phone&&11===G.phone.length?G.smsCode&&6===G.smsCode.length?void(await R(!1)):C({title:"请输入6位验证码",icon:"none"}):C({title:"请输入正确的手机号",icon:"none"})},R=async a=>{S.value=!1,B.value=!0;try{await I("/api/mp/authSubmit",{idCardType:j[A.value],idCardFront:G.frontImage,idCardBack:G.backImage,photo:G.childImage,realName:G.name,idCard:G.idNo,gender:G.gender,birthday:G.birthday,issuingAuthority:G.authority,validPeriod:G.validity,mobile:G.phone,code:G.smsCode,confirmBind:a||void 0});try{const a=await c("/api/mp/userinfo");k(a.data)}catch(e){}C({title:"认证成功",icon:"success"}),setTimeout((()=>{w()}),1500)}catch(e){e&&1010===e.code?($.value={name:e.data&&e.data.patientName||"",phone:e.data&&e.data.patientPhone||""},S.value=!0):e&&e.msg&&C({title:e.msg,icon:"none"})}finally{B.value=!1}};return(a,e)=>{const l=u,t=N,s=V,c=d(o("u-icon"),r),g=U,C=x,I=d(o("u-button"),m),k=d(o("u-popup"),p);return h(),i(l,{class:"page"},{default:n((()=>[f(l,{class:"page-content"},{default:n((()=>[f(l,{class:"page-title"},{default:n((()=>[v("请确认申请人信息")])),_:1}),f(l,{class:"section"},{default:n((()=>[f(l,{class:"section-header"},{default:n((()=>[f(l,{class:"step-num"},{default:n((()=>[v("1")])),_:1}),f(t,{class:"label"},{default:n((()=>[v("为谁申请")])),_:1}),f(t,{class:"tag warn"},{default:n((()=>[v("请用患者本人信息进行实名申请")])),_:1})])),_:1}),f(l,{class:"section-desc"},{default:n((()=>[v("请选择用来实名证件的类型")])),_:1}),f(l,{class:"cert-tabs"},{default:n((()=>[f(l,{class:_(["cert-tab",{active:"idcard"===A.value}]),onClick:e[0]||(e[0]=a=>A.value="idcard")},{default:n((()=>[f(t,null,{default:n((()=>[v("身份证证件")])),_:1})])),_:1},8,["class"]),f(l,{class:_(["cert-tab",{active:"child"===A.value}]),onClick:e[1]||(e[1]=a=>A.value="child")},{default:n((()=>[f(t,null,{default:n((()=>[v("无证件儿童")])),_:1})])),_:1},8,["class"]),f(l,{class:_(["cert-tab",{active:"temp"===A.value}]),onClick:e[2]||(e[2]=a=>A.value="temp")},{default:n((()=>[f(t,null,{default:n((()=>[v("临时身份证")])),_:1})])),_:1},8,["class"])])),_:1}),"idcard"===A.value||"temp"===A.value?(h(),i(l,{key:0,class:"upload-area"},{default:n((()=>[f(l,{class:"upload-item",onClick:e[3]||(e[3]=a=>J("front"))},{default:n((()=>[f(s,{src:G.frontImage||"https://cdn.csybhelp.com/images/patient/user/idcard-front.webp?v=1",mode:"aspectFill",class:"upload-img"},null,8,["src"]),f(t,{class:"upload-label"},{default:n((()=>[v("请上传证件人像面")])),_:1})])),_:1}),f(l,{class:"upload-item",onClick:e[4]||(e[4]=a=>J("back"))},{default:n((()=>[f(s,{src:G.backImage||"https://cdn.csybhelp.com/images/patient/user/idcard-back.webp?v=1",mode:"aspectFill",class:"upload-img"},null,8,["src"]),f(t,{class:"upload-label"},{default:n((()=>[v("请上传证件国徽面")])),_:1})])),_:1})])),_:1})):y("",!0),"child"===A.value?(h(),i(l,{key:1,class:"child-upload"},{default:n((()=>[f(l,{class:"child-tip"},{default:n((()=>[v("请上传近期免冠照片 "),f(t,{class:"tip-highlight"},{default:n((()=>[v("用于无证件儿童身份核验")])),_:1})])),_:1}),f(l,{class:"child-desc"},{default:n((()=>[v("为了避免增加审核时长,如已办理身份证,请走身份证件通道")])),_:1}),f(l,{class:"child-photo-box",onClick:e[5]||(e[5]=a=>J("child"))},{default:n((()=>[G.childImage?(h(),i(s,{key:0,src:G.childImage,mode:"aspectFill",class:"child-photo-img"},null,8,["src"])):(h(),i(l,{key:1,class:"child-photo-placeholder"},{default:n((()=>[f(c,{name:"camera",size:"40",color:"#ccc"})])),_:1}))])),_:1})])),_:1})):y("",!0)])),_:1}),f(l,{class:"section"},{default:n((()=>[f(l,{class:"section-header"},{default:n((()=>[f(l,{class:"step-num"},{default:n((()=>[v("2")])),_:1}),f(t,{class:"label"},{default:n((()=>[v("信息核验")])),_:1}),f(t,{class:"tag info"},{default:n((()=>[v("如姓名有误,请进行修改再提交")])),_:1})])),_:1}),f(l,{class:"section-desc"},{default:n((()=>[v("请核对证件信息是否有误")])),_:1}),f(l,{class:"form-row"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("证件姓名")])),_:1}),f(g,{class:"form-input",modelValue:G.name,"onUpdate:modelValue":e[6]||(e[6]=a=>G.name=a),placeholder:"child"===A.value?"请输入姓名":"上传身份证后自动识别"},null,8,["modelValue","placeholder"])])),_:1}),f(l,{class:"form-row"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("证件号码")])),_:1}),f(g,{class:"form-input",modelValue:G.idNo,"onUpdate:modelValue":e[7]||(e[7]=a=>G.idNo=a),placeholder:"child"===A.value?"请输入身份证":"上传身份证后自动识别"},null,8,["modelValue","placeholder"])])),_:1}),"child"!==A.value?(h(),i(l,{key:0,class:"form-row"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("发证机关")])),_:1}),f(g,{class:"form-input",modelValue:G.authority,"onUpdate:modelValue":e[8]||(e[8]=a=>G.authority=a),placeholder:D.value},null,8,["modelValue","placeholder"])])),_:1})):y("",!0),"child"!==A.value?(h(),i(l,{key:1,class:"form-row border-none"},{default:n((()=>[f(t,{class:"form-label"},{default:n((()=>[v("有效期限")])),_:1}),f(g,{class:"form-input",modelValue:G.validity,"onUpdate:modelValue":e[9]||(e[9]=a=>G.validity=a),placeholder:X.value},null,8,["modelValue","placeholder"])])),_:1})):y("",!0)])),_:1}),f(l,{class:"section"},{default:n((()=>[f(l,{class:"section-header"},{default:n((()=>[f(l,{class:"step-num"},{default:n((()=>[v("3")])),_:1}),f(t,{class:"label"},{default:n((()=>[v("手机号码绑定")])),_:1})])),_:1}),f(l,{class:"section-desc"},{default:n((()=>[v("请输入未进行过平台认证的号码进行绑定")])),_:1}),f(l,{class:"phone-row"},{default:n((()=>[f(g,{class:"phone-input",type:"number",modelValue:G.phone,"onUpdate:modelValue":e[10]||(e[10]=a=>G.phone=a),placeholder:"请输入手机号码",maxlength:"11"},null,8,["modelValue"])])),_:1}),f(l,{class:"sms-row"},{default:n((()=>[f(g,{class:"sms-input",type:"number",modelValue:G.smsCode,"onUpdate:modelValue":e[11]||(e[11]=a=>G.smsCode=a),placeholder:"请输入验证码",maxlength:"6"},null,8,["modelValue"]),f(C,{class:"sms-btn",disabled:P.value>0,onClick:K},{default:n((()=>[v(b(P.value>0?P.value+"s后重新获取":"获取验证码"),1)])),_:1},8,["disabled"])])),_:1})])),_:1})])),_:1}),f(l,{class:"submit-bar"},{default:n((()=>[f(C,{class:"submit-btn",onClick:O},{default:n((()=>[v("提交认证")])),_:1})])),_:1}),f(k,{show:S.value,mode:"center",round:"12",safeAreaInsetBottom:!1,onClose:e[14]||(e[14]=a=>S.value=!1)},{default:n((()=>[f(l,{class:"confirm-popup"},{default:n((()=>[f(l,{class:"confirm-title"},{default:n((()=>[v("提示")])),_:1}),f(l,{class:"confirm-content"},{default:n((()=>[v("检测到患者信息已存在("+b($.value.name)+" "+b($.value.phone)+"),是否确认绑定该患者信息?",1)])),_:1}),f(l,{class:"confirm-btns"},{default:n((()=>[f(I,{text:"取消",size:"normal",plain:!0,shape:"circle",onClick:e[12]||(e[12]=a=>S.value=!1)}),f(I,{text:"确认绑定",size:"normal",color:"#0E63E3",shape:"circle",onClick:e[13]||(e[13]=a=>R(!0))})])),_:1})])),_:1})])),_:1},8,["show"])])),_:1})}}},[["__scopeId","data-v-663e7f77"]]);export{A as default}; diff --git a/index.html b/index.html index 8b43a34..6a42a6f 100644 --- a/index.html +++ b/index.html @@ -15,7 +15,7 @@ - +