zhytech-ui-mobile
Version:
一个基于Vue3 + wot-design-uni + TypeScript + unocss封装的前端UI组件库
6 lines • 342 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self)["zhytech-ui-mobile"]={},e.Vue)}(this,function(e,t){"use strict";var o=Object.defineProperty,n=(e,t,n)=>(((e,t,n)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const a=Object.assign,r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),l=Array.isArray,s=e=>"function"==typeof e,c=e=>"string"==typeof e,u=e=>((e=>null!==e&&"object"==typeof e)(e)||s(e))&&s(e.then)&&s(e.catch),d=Object.prototype.toString,p=e=>{return"[object Object]"===(t=e,d.call(t));var t},f=/\B([A-Z])/g,h=(e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))})(e=>e.replace(f,"-$1").toLowerCase()),m=/^([a-z-]+:)?\/\//i,v=/^data:.*,.*/,g="onThemeChange",y="onBackPress";function w(e){return e&&(e.appContext?e.proxy:e)}function b(e){return 0===e.indexOf("/")}function _(e){return b(e)?e:"/"+e}function x(e,t=null){let o;return(...n)=>(e&&(o=e.apply(t,n),e=null),o)}function k(e){return a({},e.dataset,e.__uniDataset)}function C(e){return{passive:e}}function S(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const T=/\+/g;function B(e){const t={};if(""===e||"?"===e)return t;const o=("?"===e[0]?e.slice(1):e).split("&");for(let n=0;n<o.length;++n){const e=o[n].replace(T," ");let a=e.indexOf("="),r=S(a<0?e:e.slice(0,a)),i=a<0?null:S(e.slice(a+1));if(r in t){let e=t[r];l(e)||(e=t[r]=[e]),e.push(i)}else t[r]=i}return t}class N{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach(e=>{this.on(e,t[e])})}emit(e,...t){const o=this.listener[e];if(!o)return this.emitCache.push({eventName:e,args:t});o.forEach(e=>{e.fn.apply(e.fn,t)}),this.listener[e]=o.filter(e=>"once"!==e.type)}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const o=this.listener[e];if(o)if(t)for(let n=0;n<o.length;)o[n].fn===t&&(o.splice(n,1),n--),n++;else delete this.listener[e]}_clearCache(e){for(let t=0;t<this.emitCache.length;t++){const o=this.emitCache[t],n=e?o.eventName===e?e:null:o.eventName;if(!n)continue;"number"!=typeof this.emit.apply(this,[n,...o.args])?(this.emitCache.splice(t,1),t--):this.emitCache.pop()}}_addListener(e,t,o){(this.listener[e]||(this.listener[e]=[])).push({fn:o,type:t})}}const V=function(){};V.prototype={on:function(e,t,o){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:o}),this},once:function(e,t,o){var n=this;function a(){n.off(e,a),t.apply(o,arguments)}return a._=t,this.on(e,a,o)},emit:function(e){for(var t=[].slice.call(arguments,1),o=((this.e||(this.e={}))[e]||[]).slice(),n=0,a=o.length;n<a;n++)o[n].fn.apply(o[n].ctx,t);return this},off:function(e,t){var o=this.e||(this.e={}),n=o[e],a=[];if(n&&t){for(var r=n.length-1;r>=0;r--)if(n[r].fn===t||n[r].fn._===t){n.splice(r,1);break}a=n}return a.length?o[e]=a:delete o[e],this}};var $=V;const I={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function D(e,t={},o="light"){const n=t[o],a={};return n?(Object.keys(e).forEach(r=>{let i=e[r];a[r]=(()=>{if(p(i))return D(i,t,o);if(l(i))return i.map(e=>p(e)?D(e,t,o):e);if(c(i)&&i.startsWith("@")){const t=i.replace("@","");let o=n[t]||i;switch(r){case"titleColor":o="black"===o?"#000000":"#ffffff";break;case"borderStyle":o=(e=o)&&e in I?I[e]:e}return o}var e;return i})()}),a):e}const E=["{","}"];const M=/^(?:\d)+/,z=/^(?:\w)+/;const O="zh-Hans",P="zh-Hant",L="en",F="fr",A="es",j=Object.prototype.hasOwnProperty,R=(e,t)=>j.call(e,t),q=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,o=E){if(!t)return[e];let n=this._caches[e];return n||(n=function(e,[t,o]){const n=[];let a=0,r="";for(;a<e.length;){let i=e[a++];if(i===t){r&&n.push({type:"text",value:r}),r="";let t="";for(i=e[a++];void 0!==i&&i!==o;)t+=i,i=e[a++];const l=i===o,s=M.test(t)?"list":l&&z.test(t)?"named":"unknown";n.push({value:t,type:s})}else r+=i}return r&&n.push({type:"text",value:r}),n}(e,o),this._caches[e]=n),function(e,t){const o=[];let n=0;const a=Array.isArray(t)?"list":(r=t,null!==r&&"object"==typeof r?"named":"unknown");var r;if("unknown"===a)return o;for(;n<e.length;){const r=e[n];switch(r.type){case"text":o.push(r.value);break;case"list":o.push(t[parseInt(r.value,10)]);break;case"named":"named"===a&&o.push(t[r.value])}n++}return o}(n,t)}};function H(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return O;if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?O:e.indexOf("-hant")>-1?P:(o=e,["-tw","-hk","-mo","-cht"].find(e=>-1!==o.indexOf(e))?P:O);var o;let n=[L,F,A];t&&Object.keys(t).length>0&&(n=Object.keys(t));const a=function(e,t){return t.find(t=>0===e.indexOf(t))}(e,n);return a||void 0}class W{constructor({locale:e,fallbackLocale:t,messages:o,watcher:n,formater:a}){this.locale=L,this.fallbackLocale=L,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=a||q,this.messages=o||{},this.setLocale(e||L),n&&this.watchLocale(n)}setLocale(e){const t=this.locale;this.locale=H(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,o=!0){const n=this.messages[e];n?o?Object.assign(n,t):Object.keys(t).forEach(e=>{R(n,e)||(n[e]=t[e])}):this.messages[e]=t}f(e,t,o){return this.formater.interpolate(e,t,o).join("")}t(e,t,o){let n=this.message;return"string"==typeof t?(t=H(t,this.messages))&&(n=this.messages[t]):o=t,R(n,e)?this.formater.interpolate(n[e],o).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function U(e,t={},o,n){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&Po?Po():"undefined"!=typeof global&&global.getLocale?global.getLocale():L),"string"!=typeof o&&(o="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||L);const a=new W({locale:e,fallbackLocale:o,messages:t,watcher:n});let r=(e,t)=>(r=function(e,t){return er().$vm,a.t(e,t)},r(e,t));return{i18n:a,f:(e,t,o)=>a.f(e,t,o),t:(e,t)=>r(e,t),add:(e,t,o=!0)=>a.add(e,t,o),watch:e=>a.watchLocale(e),getLocale:()=>a.getLocale(),setLocale:e=>a.setLocale(e)}}
/*!
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/var Y,X,G,K;(X=Y||(Y={})).pop="pop",X.push="push",(K=G||(G={})).back="back",K.forward="forward",K.unknown="";const Z=Symbol("");var Q,J;(J=Q||(Q={}))[J.aborted=4]="aborted",J[J.cancelled=8]="cancelled",J[J.duplicated=16]="duplicated";const ee=Symbol("");const te=x(()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length);let oe;function ne(){if(!oe){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,oe=U(e),te()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach(e=>oe.add(e,__uniConfig.locales[e])),oe.setLocale(e)}}return oe}function ae(e,t,o){return t.reduce((t,n,a)=>(t[e+n]=o[a],t),{})}const re=x(()=>{const e="uni.showToast.",t=["unpaired"];ne().add(L,ae(e,t,["Please note showToast must be paired with hideToast"]),!1),ne().add(A,ae(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),ne().add(F,ae(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),ne().add(O,ae(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),ne().add(P,ae(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)}),ie=x(()=>{const e="uni.showLoading.",t=["unpaired"];ne().add(L,ae(e,t,["Please note showLoading must be paired with hideLoading"]),!1),ne().add(A,ae(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),ne().add(F,ae(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),ne().add(O,ae(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),ne().add(P,ae(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)}),le=x(()=>{const e="uni.chooseFile.",t=["notUserActivation"];ne().add(L,ae(e,t,["File chooser dialog can only be shown with a user activation"]),!1),ne().add(A,ae(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),ne().add(F,ae(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),ne().add(O,ae(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),ne().add(P,ae(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)}),se=x(()=>{const e="uni.video.",t=["danmu","volume"];ne().add(L,ae(e,t,["Danmu","Volume"]),!1),ne().add(A,ae(e,t,["Danmu","Volumen"]),!1),ne().add(F,ae(e,t,["Danmu","Le Volume"]),!1),ne().add(O,ae(e,t,["弹幕","音量"]),!1),ne().add(P,ae(e,t,["彈幕","音量"]),!1)});function ce(e){const t=new $;return{on:(e,o)=>t.on(e,o),once:(e,o)=>t.once(e,o),off:(e,o)=>t.off(e,o),emit:(e,...o)=>t.emit(e,...o),subscribe(o,n,a=!1){t[a?"once":"on"](`${e}.${o}`,n)},unsubscribe(o,n){t.off(`${e}.${o}`,n)},subscribeHandler(o,n,a){t.emit(`${e}.${o}`,n,a)}}}const ue="invokeViewApi",de="invokeServiceApi";let pe=1;const fe=Object.create(null);function he(e,t){return e+"."+t}function me(e,t,o){t=he(e,t),fe[t]||(fe[t]=o)}const ve=a(ce("service"),{invokeServiceMethod:(e,t,o)=>{const{subscribe:n,publishHandler:a}=pi,r=o?pe++:0;o&&n(de+"."+r,o,!0),a(de,{id:r,name:e,args:t})}});function ge(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ye,we,be=["top","left","right","bottom"],_e={};function xe(){return we="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 ke(){if(we="string"==typeof we?we:xe()){var e=[],t=!1;try{var o=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,o)}catch(l){}var n=document.createElement("div");a(n,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),be.forEach(function(e){i(n,e)}),document.body.appendChild(n),r(),ye=!0}else be.forEach(function(e){_e[e]=0});function a(e,t){var o=e.style;Object.keys(t).forEach(function(e){var n=t[e];o[e]=n})}function r(t){t?e.push(t):e.forEach(function(e){e()})}function i(e,o){var n=document.createElement("div"),i=document.createElement("div"),l=document.createElement("div"),s=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:we+"(safe-area-inset-"+o+")"};a(n,c),a(i,c),a(l,{transition:"0s",animation:"none",width:"400px",height:"400px"}),a(s,{transition:"0s",animation:"none",width:"250%",height:"250%"}),n.appendChild(l),i.appendChild(s),e.appendChild(n),e.appendChild(i),r(function(){n.scrollTop=i.scrollTop=1e4;var e=n.scrollTop,a=i.scrollTop;function r(){this.scrollTop!==(this===n?e:a)&&(n.scrollTop=i.scrollTop=1e4,e=n.scrollTop,a=i.scrollTop,function(e){Se.length||setTimeout(function(){var e={};Se.forEach(function(t){e[t]=_e[t]}),Se.length=0,Te.forEach(function(t){t(e)})},0);Se.push(e)}(o))}n.addEventListener("scroll",r,t),i.addEventListener("scroll",r,t)});var u=getComputedStyle(n);Object.defineProperty(_e,o,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function Ce(e){return ye||ke(),_e[e]}var Se=[];var Te=[];const Be=ge({get support(){return 0!=("string"==typeof we?we:xe()).length},get top(){return Ce("top")},get left(){return Ce("left")},get right(){return Ce("right")},get bottom(){return Ce("bottom")},onChange:function(e){xe()&&(ye||ke(),"function"==typeof e&&Te.push(e))},offChange:function(e){var t=Te.indexOf(e);t>=0&&Te.splice(t,1)}}),Ne=t.withModifiers(()=>{},["prevent"]);function Ve(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function $e(){const e=document.documentElement.style,t=function(){const e=Ve(document.documentElement.style,"--window-top");return e?e+Be.top:0}(),o=Ve(e,"--window-bottom"),n=Ve(e,"--window-left"),a=Ve(e,"--window-right"),r=Ve(e,"--top-window-height");return{top:t,bottom:o?o+Be.bottom:0,left:n?n+Be.left:0,right:a?a+Be.right:0,topWindowHeight:r||0}}function Ie(e){return Symbol(e)}function De(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Ee(e,t=!1){if(t)return function(e){if(!De(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,(e,t)=>mo(parseFloat(t))+"px")}(e);if(c(e)){const t=parseInt(e)||0;return De(e)?mo(t):t}return e}const Me="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",ze="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",Oe="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 Pe(e,o="#000",n=27){return t.createVNode("svg",{width:n,height:n,viewBox:"0 0 32 32"},[t.createVNode("path",{d:e,fill:o},null,8,["d","fill"])],8,["width","height"])}function Le(){{const{$pageInstance:e}=t.getCurrentInstance();return e&&e.proxy.$page.id}}function Fe(e){const t=w(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function Ae(){const e=Xa(),t=e.length;if(t)return e[t-1]}function je(){const e=Ae();if(e)return e.$page.meta}function Re(){const e=je();return e?e.id:-1}function qe(){const e=Ae();if(e)return e.$vm}const He=["navigationBar","pullToRefresh"];function We(e,t){const o=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),n=a({id:t},o,e);He.forEach(t=>{n[t]=a({},o[t],e[t])});const{navigationBar:r}=n;return r.titleText&&r.titleImage&&(r.titleText=""),n}function Ue(e,t,o){if(c(e))o=t,t=e,e=qe();else if("number"==typeof e){const t=Xa().find(t=>t.$page.id===e);e=t?t.$vm:qe()}if(!e)return;const n=e.$[t];return n&&((e,t)=>{let o;for(let n=0;n<e.length;n++)o=e[n](t);return o})(n,o)}function Ye(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Ye(e,t.slice(2));const o=t.split("/"),n=o.length;let a=0;for(;a<n&&".."===o[a];a++);o.splice(0,a),t=o.join("/");const r=e.length>0?e.split("/"):[];return r.splice(r.length-a-1,a+1),_(r.concat(o).join("/"))}let Xe=1;function Ge(e){return(e||Re())+"."+ue}const Ke=a(ce("view"),{invokeOnCallback:(e,t)=>fi.emit("api."+e,t),invokeViewMethod:(e,t,o,n)=>{const{subscribe:a,publishHandler:r}=fi,i=n?Xe++:0;n&&a(ue+"."+i,n,!0),r(Ge(o),{id:i,name:e,args:t},o)},invokeViewMethodKeepAlive:(e,t,o,n)=>{const{subscribe:a,unsubscribe:r,publishHandler:i}=fi,l=Xe++,s=ue+"."+l;return a(s,o),i(Ge(n),{id:l,name:e,args:t},n),()=>{r(s)}}});function Ze(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,(e,t)=>`${mo(parseFloat(t))}px`):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Qe(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let o=0;const n=t.actions,a=t.actions.length;function r(){const t=n[o],i=t.option.transition,l=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],o=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],n=["opacity","background-color"],a=["width","height","left","right","top","bottom"],r=e.animates,i=e.option,l=i.transition,s={},c=[];return r.forEach(e=>{let r=e.type,i=[...e.args];if(t.concat(o).includes(r))r.startsWith("rotate")||r.startsWith("skew")?i=i.map(e=>parseFloat(e)+"deg"):r.startsWith("translate")&&(i=i.map(Ze)),o.indexOf(r)>=0&&(i.length=1),c.push(`${r}(${i.join(",")})`);else if(n.concat(a).includes(i[0])){r=i[0];const e=i[1];s[r]=a.includes(r)?Ze(e):e}}),s.transform=s.webkitTransform=c.join(" "),s.transition=s.webkitTransition=Object.keys(s).map(e=>`${function(e){return e.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`).replace("webkit","-webkit")}(e)} ${l.duration}ms ${l.timingFunction} ${l.delay}ms`).join(","),s.transformOrigin=s.webkitTransformOrigin=i.transformOrigin,s}(t);Object.keys(l).forEach(t=>{e.$el.style[t]=l[t]}),o+=1,o<a&&setTimeout(r,i.duration+i.delay)}setTimeout(()=>{r()},0)}const Je={props:["animation"],watch:{animation:{deep:!0,handler(){Qe(this)}}},mounted(){Qe(this)}},et=e=>{e.__reserved=!0;const{props:t,mixins:o}=e;return t&&t.animation||(o||(e.mixins=[])).push(Je),tt(e)},tt=e=>(e.__reserved=!0,e.compatConfig={MODE:3},t.defineComponent(e));function ot(e){return e.__wwe=!0,e}function nt(e,t){return(o,n,a)=>{e.value&&t(o,function(e,t,o,n){let a;return a=function(e){const{id:t,offsetTop:o,offsetLeft:n}=e;return{id:t,dataset:k(e),offsetTop:o,offsetLeft:n}}(o),{type:n.type||e,timeStamp:t.timeStamp||0,target:a,currentTarget:a,detail:n}}(o,n,e.value,a||{}))}}const at={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function rt(e){const o=t.ref(!1);let n,a,r=!1;function i(){requestAnimationFrame(()=>{clearTimeout(a),a=setTimeout(()=>{o.value=!1},parseInt(e.hoverStayTime))})}function l(t){t._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(t._hoverPropagationStopped=!0),r=!0,n=setTimeout(()=>{o.value=!0,r||i()},parseInt(e.hoverStartTime)))}function s(){r=!1,o.value&&i()}function c(){s(),window.removeEventListener("mouseup",c)}return{hovering:o,binding:{onTouchstartPassive:ot(function(e){e.touches.length>1||l(e)}),onMousedown:ot(function(e){r||(l(e),window.addEventListener("mouseup",c))}),onTouchend:ot(function(){s()}),onMouseup:ot(function(){r&&c()}),onTouchcancel:ot(function(){r=!1,o.value=!1,clearTimeout(n)})}}}function it(e,t){return c(t)&&(t=[t]),t.reduce((t,o)=>(e[o]&&(t[o]=!0),t),Object.create(null))}const lt=Ie("uf"),st=Ie("ul");function ct(e,t,o){const n=Le();o&&!e||p(t)&&Object.keys(t).forEach(a=>{o?0!==a.indexOf("@")&&0!==a.indexOf("uni-")&&pi.on(`uni-${a}-${n}-${e}`,t[a]):0===a.indexOf("uni-")?pi.on(a,t[a]):e&&pi.on(`uni-${a}-${n}-${e}`,t[a])})}function ut(e,t,o){const n=Le();o&&!e||p(t)&&Object.keys(t).forEach(a=>{o?0!==a.indexOf("@")&&0!==a.indexOf("uni-")&&pi.off(`uni-${a}-${n}-${e}`,t[a]):0===a.indexOf("uni-")?pi.off(a,t[a]):e&&pi.off(`uni-${a}-${n}-${e}`,t[a])})}const dt=et({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:o}){const n=t.ref(null),a=t.inject(lt,!1),{hovering:r,binding:i}=rt(e);ne();const l=ot((t,o)=>{if(e.disabled)return t.stopImmediatePropagation();o&&n.value.click();const r=e.formType;if(r){if(!a)return;"submit"===r?a.submit(t):"reset"===r&&a.reset(t)}else;}),s=t.inject(st,!1);return s&&(s.addHandler(l),t.onBeforeUnmount(()=>{s.removeHandler(l)})),function(e,o){ct(e.id,o),t.watch(()=>e.id,(e,t)=>{ut(t,o,!0),ct(e,o,!0)}),t.onUnmounted(()=>{ut(e.id,o)})}(e,{"label-click":l}),()=>{const a=e.hoverClass,s=it(e,"disabled"),c=it(e,"loading"),u=it(e,"plain"),d=a&&"none"!==a;return t.createVNode("uni-button",t.mergeProps({ref:n,onClick:l,id:e.id,class:d&&r.value?a:""},d&&i,s,c,u),[o.default&&o.default()],16,["onClick","id"])}}});function pt(e){return e.$el}function ft(e){const{base:t}=__uniConfig.router;return 0===_(e).indexOf(t)?_(e):t+e}function ht(e){const{base:t,assets:o}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||o&&0===e.indexOf("./"+o+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return ft(e.slice(1));e="https:"+e}if(m.test(e)||v.test(e)||0===e.indexOf("blob:"))return e;const n=Xa();return n.length?ft(Ye(n[n.length-1].$page.route,e).slice(1)):e}const mt=navigator.userAgent,vt=/android/i.test(mt),gt=/iphone|ipad|ipod/i.test(mt),yt=mt.match(/Windows NT ([\d|\d.\d]*)/i),wt=/Macintosh|Mac/i.test(mt),bt=/Linux|X11/i.test(mt),_t=wt&&navigator.maxTouchPoints>0;function xt(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function kt(e){return e&&90===Math.abs(window.orientation)}function Ct(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function St(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Tt(e,t,o,n){fi.invokeViewMethod("video."+e,{videoId:e,type:o,data:n},t)}function Bt(e,t){const o={},{top:n,topWindowHeight:a}=$e();if(t.node){const t=e.tagName.split("-")[1];t&&(o.node=e.querySelector(t))}if(t.id&&(o.id=e.id),t.dataset&&(o.dataset=k(e)),t.rect||t.size){const r=e.getBoundingClientRect();t.rect&&(o.left=r.left,o.right=r.right,o.top=r.top-n-a,o.bottom=r.bottom-n-a),t.size&&(o.width=r.width,o.height=r.height)}if(l(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];o.scrollLeft=t.scrollLeft,o.scrollTop=t.scrollTop,o.scrollHeight=t.scrollHeight,o.scrollWidth=t.scrollWidth}else o.scrollLeft=0,o.scrollTop=0,o.scrollHeight=0,o.scrollWidth=0;if(l(t.computedStyle)){const n=getComputedStyle(e);t.computedStyle.forEach(e=>{o[e]=n[e]})}return t.context&&(o.contextInfo=function(e){return e.__uniContextInfo}(e)),o}function Nt(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let o=t.length;for(;--o>=0&&t.item(o)!==this;);return o>-1}).call(e,t)}function Vt(e,t,o){const n=[];t.forEach(({component:t,selector:o,single:a,fields:r})=>{null===t?n.push(function(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const e=document.documentElement,o=document.body;t.scrollLeft=e.scrollLeft||o.scrollLeft||0,t.scrollTop=e.scrollTop||o.scrollTop||0,t.scrollHeight=e.scrollHeight||o.scrollHeight||0,t.scrollWidth=e.scrollWidth||o.scrollWidth||0}return t}(r)):n.push(function(e,t,o,n,a){const r=function(e,t){return e?e.$el:t.$el}(t,e),i=r.parentElement;if(!i)return n?null:[];const{nodeType:l}=r,s=3===l||8===l;if(n){const e=s?i.querySelector(o):Nt(r,o)?r:r.querySelector(o);return e?Bt(e,a):null}{let e=[];const t=(s?i:r).querySelectorAll(o);return t&&t.length&&[].forEach.call(t,t=>{e.push(Bt(t,a))}),!s&&Nt(r,o)&&e.unshift(Bt(r,a)),e}}(e,t,o,a,r))}),o(n)}const $t=["original","compressed"],It=["album","camera"];function Dt(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Et(e,t){return!l(e)||0===e.length||e.find(e=>-1===t.indexOf(e))?t:e}function Mt(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let zt=1;const Ot={};function Pt(e,t,o){if("number"==typeof e){const n=Ot[e];if(n)return n.keepAlive||delete Ot[e],n.callback(t,o)}return t}const Lt="success",Ft="fail",At="complete";function jt(e,t={},{beforeAll:o,beforeSuccess:n}={}){p(t)||(t={});const{success:a,fail:r,complete:i}=function(e){const t={};for(const o in e){const n=e[o];s(n)&&(t[o]=Mt(n),delete e[o])}return t}(t),l=s(a),c=s(r),u=s(i),d=zt++;return function(e,t,o,n=!1){Ot[e]={name:t,keepAlive:n,callback:o}}(d,e,d=>{(d=d||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(d.errMsg,e),s(o)&&o(d),d.errMsg===e+":ok"?(s(n)&&n(d,t),l&&a(d)):c&&r(d),u&&i(d)}),d}const Rt="success",qt="fail",Ht="complete",Wt={},Ut={};function Yt(e,t){return function(o){return e(o,t)||o}}function Xt(e,t,o){let n=!1;for(let a=0;a<e.length;a++){const r=e[a];if(n)n=Promise.resolve(Yt(r,o));else{const e=r(t,o);if(u(e)&&(n=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return n||{then:e=>e(t),catch(){}}}function Gt(e,t={}){return[Rt,qt,Ht].forEach(o=>{const n=e[o];if(!l(n))return;const a=t[o];t[o]=function(e){Xt(n,e,t).then(e=>s(a)&&a(e)||e)}}),t}function Kt(e,t){const o=[];l(Wt.returnValue)&&o.push(...Wt.returnValue);const n=Ut[e];return n&&l(n.returnValue)&&o.push(...n.returnValue),o.forEach(e=>{t=e(t)||t}),t}function Zt(e){const t=Object.create(null);Object.keys(Wt).forEach(e=>{"returnValue"!==e&&(t[e]=Wt[e].slice())});const o=Ut[e];return o&&Object.keys(o).forEach(e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(o[e]))}),t}function Qt(e,t,o,n){const a=Zt(e);if(a&&Object.keys(a).length){if(l(a.invoke)){return Xt(a.invoke,o).then(o=>t(Gt(Zt(e),o),...n))}return t(Gt(a,o),...n)}return t(o,...n)}function Jt(e,t){return(o={},...n)=>function(e){return!(!p(e)||![Lt,Ft,At].find(t=>s(e[t])))}(o)?Kt(e,Qt(e,t,o,n)):Kt(e,new Promise((r,i)=>{Qt(e,t,a(o,{success:r,fail:i}),n)}))}function eo(e,t,o,n={}){const r=t+":fail"+(o?" "+o:"");return delete n.errCode,Pt(e,"undefined"!=typeof UniError?void 0!==n.errCode?new UniError(t,n.errCode,r):new UniError(r,n):a({errMsg:r},n))}function to(e,t,o,n){if(n&&n.beforeInvoke){const e=n.beforeInvoke(t);if(c(e))return e}const a=function(e,t){const o=e[0];if(!t||!p(t.formatArgs)&&p(o))return;const n=t.formatArgs,a=Object.keys(n);for(let r=0;r<a.length;r++){const t=a[r],l=n[t];if(s(l)){const n=l(e[0][t],o);if(c(n))return n}else i(o,t)||(o[t]=l)}}(t,n);if(a)return a}function oo(e,t,o,n){return o=>{const r=jt(e,o,n),i=to(0,[o],0,n);return i?eo(r,e,i):t(o,{resolve:t=>function(e,t,o){return Pt(e,a(o||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,o)=>eo(r,e,function(e){return!e||c(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),o)})}}function no(e,t,o,n){return Jt(e,oo(e,t,0,n))}function ao(e,t,o,n){return function(e,t,o,n){return(...e)=>{const o=to(0,e,0,n);if(o)throw new Error(o);return t.apply(null,e)}}(0,t,0,n)}function ro(e,t,o,n){return Jt(e,function(e,t,o,n){return oo(e,t,0,n)}(e,t,0,n))}let io=!1,lo=0,so=0,co=960,uo=375,po=750;function fo(){const{platform:e,pixelRatio:t,windowWidth:o}=function(){const e=xt(),t=St(Ct(e,kt(e)));return{platform:gt?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();lo=o,so=t,io="ios"===e}function ho(e,t){const o=Number(e);return isNaN(o)?t:o}const mo=ao(0,(e,t)=>{if(0===lo&&(fo(),function(){const e=__uniConfig.globalStyle||{};co=ho(e.rpxCalcMaxDeviceWidth,960),uo=ho(e.rpxCalcBaseDeviceWidth,375),po=ho(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let o=t||lo;o=e===po||o<=co?o:uo;let n=e/750*o;return n<0&&(n=-n),n=Math.floor(n+1e-4),0===n&&(n=1!==so&&io?.5:1),e<0?-n:n}),vo=[.5,.8,1,1.25,1.5,2];const go=(e,t,o,n)=>{!function(e,t,o,n,a){fi.invokeViewMethod("map."+e,{type:o,data:n},t,a)}(e,t,o,n,e=>{n&&((e,t)=>{const o=t.errMsg||"";new RegExp("\\:\\s*fail").test(o)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(n,e)})};const yo={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 wo(e){var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),o=t[1].slice(1,2),n=t[1].slice(2,3);return e=parseInt(e+e,16),o=parseInt(o+o,16),n=parseInt(n+n,16),[e,o,n,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 o=e.toLowerCase();if(i(yo,o)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(yo[o]);const e=parseInt(t[1].slice(0,2),16),n=parseInt(t[1].slice(2,4),16),a=parseInt(t[1].slice(4,6),16);let r=parseInt(t[1].slice(6,8),16);return r=r>=0?r:255,[e,n,a,r]}return console.error("unsupported color:"+e),[0,0,0,255]}class bo{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,wo(t)])}}class _o{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class xo{constructor(e){this.width=e}}const ko={thresholds:[0],initialRatio:0,observeAll:!1},Co=["top","right","bottom","left"];let So=1;function To(e={}){return Co.map(t=>`${Number(e[t])||0}px`).join(" ")}class Bo{constructor(e,t){this._pageId=Fe(e),this._component=e,this._options=a({},ko,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=To(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=To(e),this}observe(e,t){s(t)&&(this._options.selector=e,this._reqId=So++,function({reqId:e,component:t,options:o,callback:n}){const a=pt(t);(a.__io||(a.__io={}))[e]=function(e,t,o){un();const n=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,a=new IntersectionObserver(e=>{e.forEach(e=>{o({intersectionRatio:pn(e),intersectionRect:dn(e.intersectionRect),boundingClientRect:dn(e.boundingClientRect),relativeRect:dn(e.rootBounds),time:Date.now(),dataset:k(e.target),id:e.target.id})})},{root:n,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){a.USE_MUTATION_OBSERVER=!0;const o=e.querySelectorAll(t.selector);for(let e=0;e<o.length;e++)a.observe(o[e])}else{a.USE_MUTATION_OBSERVER=!1;const o=e.querySelector(t.selector);o?a.observe(o):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return a}(a,o,n)}({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t}){const o=pt(t),n=o.__io&&o.__io[e];n&&(n.disconnect(),delete o.__io[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const No=ao(0,(e,t)=>((e=w(e))&&!Fe(e)&&(t=e,e=null),new Bo(e||qe(),t)));let Vo=0,$o={};function Io(e,t,o,n){const a={options:n},r=n&&("success"in n||"fail"in n||"complete"in n);if(r){const e=String(Vo++);a.callbackId=e,$o[e]=n}fi.invokeViewMethod(`editor.${e}`,{type:o,data:a},t,({callbackId:e,data:t})=>{r&&(!function(e,t){e=e||{},c(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?s(e.success)&&e.success(t):s(e.fail)&&e.fail(t),s(e.complete)&&e.complete(t)}($o[e],t),delete $o[e])})}const Do={canvas:class{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}draw(e=!1,t){var o=[...this.actions];this.actions=[],this.path=[],function(e,t,o,n,a){fi.invokeViewMethod(`canvas.${e}`,{type:o,data:n},t,e=>{a&&a(e)})}(this.id,this.pageId,"actionsChanged",{actions:o,reserve:e},t)}createLinearGradient(e,t,o,n){return new bo("linear",[e,t,o,n])}createCircularGradient(e,t,o){return new bo("radial",[e,t,o])}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 _o(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e){let t=0;return t=function(e,t){const o=document.createElement("canvas").getContext("2d");return o.font=t,o.measureText(e).width||0}(e,this.state.font),new xo(t)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,o,n){this.path.push({method:"quadraticCurveTo",data:[e,t,o,n]}),this.subpath.push([o,n])}bezierCurveTo(e,t,o,n,a,r){this.path.push({method:"bezierCurveTo",data:[e,t,o,n,a,r]}),this.subpath.push([a,r])}arc(e,t,o,n,a,r=!1){this.path.push({method:"arc",data:[e,t,o,n,a,r]}),this.subpath.push([e,t])}rect(e,t,o,n){this.path.push({method:"rect",data:[e,t,o,n]}),this.subpath=[[e,t]]}arcTo(e,t,o,n,a){this.path.push({method:"arcTo",data:[e,t,o,n,a]}),this.subpath.push([o,n])}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 o=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(o){var n=o[1].trim().split(/\s/),a=parseFloat(o[3]),r=o[7],i=[];n.forEach(function(e,o){["italic","oblique","normal"].indexOf(e)>-1?(i.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(i.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===o?(i.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===o&&l()}),1===n.length&&l(),n=i.map(function(e){return e.data[0]}).join(" "),this.state.fontSize=a,this.state.fontFamily=r,this.actions.push({method:"setFont",data:[`${n} ${a}px ${r}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function l(){i.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]})}},map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){go(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){go(this.id,this.pageId,"moveToLocation",e)}getScale(e){go(this.id,this.pageId,"getScale",e)}getRegion(e){go(this.id,this.pageId,"getRegion",e)}includePoints(e){go(this.id,this.pageId,"includePoints",e)}translateMarker(e){go(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){go(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){go(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){go(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){go(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){go(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){go(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){go(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){go(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){go(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){go(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){go(this.id,this.pageId,"openMapApp",e)}on(e,t){go(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){Tt(this.id,this.pageId,"play")}pause(){Tt(this.id,this.pageId,"pause")}stop(){Tt(this.id,this.pageId,"stop")}seek(e){Tt(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Tt(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~vo.indexOf(e)||(e=1),Tt(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Tt(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Tt(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Tt(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Tt(this.id,this.pageId,"hideStatusBar")}},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){Io(this.id,this.pageId,e,t)}}};function Eo(e){if(e&&e.contextInfo){const{id:t,type:o,page:n}=e.contextInfo,a=Do[o];e.context=new a(t,n),delete e.contextInfo}}class Mo{constructor(e,t,o,n){this._selectorQuery=e,this._component=t,this._selector=o,this._single=n}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 zo{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return Vt(this._page,this._queue,t=>{const o=this._queueCb;t.forEach((e,t)=>{l(e)?e.forEach(Eo):Eo(e);const n=o[t];s(n)&&n.call(this,e)}),s(e)&&e.call(this,t)}),this._nodesRef}in(e){return this._component=w(e),this}select(e){return this._nodesRef=new Mo(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new Mo(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new Mo(this,null,"",!0)}_push(e,t,o,n,a){this._queue.push({component:t,selector:e,single:o,fields:n}),this._queueCb.push(a)}}const Oo=ao(0,e=>((e=w(e))&&!Fe(e)&&(e=null),new zo(e||qe()))),Po=ao(0,()=>ne().getLocale()),Lo={formatArgs:{filePath(e,t){t.filePath=ht(e)}}},Fo={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Et(e,$t)},sourceType(e,t){t.sourceType=Et(e,It)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Ao={formatArgs:{sourceType(e,t){t.sourceType=Et(e,It)},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=["*"])}}},jo=(Boolean,["all","image","video"]),Ro={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Et(e,It)},type(e,t){t.type=Dt(e,jo)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},qo={formatArgs:{src(e,t){t.src=ht(e)}}},Ho={formatArgs:{urls(e,t){t.urls=e.map(e=>c(e)&&e?ht(e):"")},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:c(e)&&e&&(t.current=ht(e))}}},Wo={formatArgs:{filePath(e,t){e&&(t.filePath=ht(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Uo={url:{type:String,required:!0}},Yo="navigateTo",Xo="redirectTo",Go="reLaunch",Ko="switchTab",Zo="preloadPage",Qo=(on(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),on(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),rn(Yo)),Jo=rn(Xo),en=rn(Go),tn={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Xa().length-1,e)}}};function on(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 nn;function an(){nn=""}function rn(e){return{formatArgs:{url:ln(e)},beforeAll:an}}function ln(e){return function(t,o){if(!t)return'Missing required args: "url"';const n=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const o=Xa();return o.length&&(t=o[o.length-1].$page.route),Ye(t,e)}(t)).split("?")[0],a=function(e,t=!1){return t?__uniRoutes.find(t=>t.path===e||t.alias===e):__uniRoutes.find(t=>t.path===e)}(n,!0);if(!a)return"page `"+t+"` is not found";if(e===Yo||e===Xo){if(a.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===Ko&&!a.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==Ko&&e!==Zo||!a.meta.isTabBar||"appLaunch"===o.openType||(t=n),a.meta.isEntry&&(t=t.replace(a.alias,"/")),o.url=function(e){if(!c(e))return e;const t=e.indexOf("?");if(-1===t)return e;const o=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!o)return e;e=e.slice(0,t);const n=[];return o.split("&").forEach(e=>{const t=e.replace(/\+/g," ").split("="),o=t.shift(),a=t.length>0?t.join("="):"";n.push(o+"="+encodeURIComponent(a))}),n.length?e+"?"+n.join("&"):e}(t),"unPreloadPage"!==e)if(e!==Zo){if(nn===t&&"appLaunch"!==o.openType)return`${nn} locked`;__uniConfig.ready&&(nn=t)}else if(a.meta.isTabBar){const e=Xa(),t=a.path.slice(1);if(e.find(e=>e.route===t))return"tabBar page `"+t+"` already exists"}}}const sn=["success","loading","none","error"],cn=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Dt(e,sn)},image(e,t){t.image=e?ht(e):""},duration:1500,mask:!1}}),un=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=a(e);t;)t=a(e=t.ownerDocument);return e}(),t=[],o=null,n=null;i.prototype.THROTTLE_TIMEOUT=100,i.prototype.POLL_INTERVAL=null,i.prototype.USE_MUTATION_OBSERVER=!0,i._setupCrossOriginUpdater=function(){return o||(o=function(e,o){n=e&&o?p(e,o):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach(function(e){e._checkForIntersections()})}),o},i._resetCrossOriginUpdater=function(){o=null,n=null},i.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()}},i.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()},i.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},i.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},i.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter(function(e,t,o){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!==o[t-1]})},i.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},i.prototype._monitorIntersections=function(t){var o=t.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(t)){var n=this._checkForIntersections,r=null,i=null;this.POLL_INTERVAL?r=o.setInterval(n,this.POLL_INTERVAL):(l(o,"resize",n,!0),l(t,"scroll",n,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(i=new o.MutationObserver(n)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push(function(){var e=t.defaultView;e&&(r&&e.clearInterval(r),s(e,"resize",n,!0)),s(t,"scroll",n,!0),i&&i.disconnect()});var c=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=c){var u=a(t);u&&this._monitorIntersections(u.ownerDocument)}}},i.prototype._unmonitorIntersections=function(t){var o=this._monitoringDocuments.indexOf(t);if(-1!=o){var n=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some(function(e){var o=e.element.ownerDocument;if(o==t)return!0;for(;o&&o!=n;){var r=a(o);if((o=r&&r.ownerDocument)==t)return!0}return!1})){var r=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),r(),t!=n){var i=a(t);i&&this._unmonitorIntersections(i.ownerDocument)}}}},i.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},i.prototype._checkForIntersections=function(){if(this.root||!o||n){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach(function(n){var a=n.element,i=u(a),l=this._rootContainsTarget(a),s=n.entry,c=e&&l&&this._computeTargetAndRootIntersection(a,i,t),d=null;this._ro