1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- function __vite__mapDeps(indexes) {
- if (!__vite__mapDeps.viteFileDeps) {
- __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.B21q3WwI.js","assets/uni-stat-breadcrumb.BZcF2zJw.js","assets/uni-stat-breadcrumb-Dhsr24H3.css","assets/uni-notice-bar.DFNPNQTK.js","assets/uni-notice-bar-C_M0oeAv.css","assets/uni-stat-tabs.SY9F3mAw.js","assets/uni-tooltip.BDlhxQuq.js","assets/uni-tooltip-BJERsjRD.css","assets/uni-stat-tabs-wCOmL5d3.css","assets/util.BXBhmNoy.js","assets/index-hiOT4Yt9.css","assets/pages-demo-icons-icons.CVP5XBtE.js","assets/icons-CfOYqKIM.css","assets/pages-demo-table-table.CGbDIwrG.js","assets/uni-pagination.7SrZmsZK.js","assets/uni-pagination-CBIT6G--.css","assets/uni_modules-uni-id-pages-pages-login-login-withpwd.BHhhp69m.js","assets/uni-easyinput.BtmRbBVL.js","assets/uni-easyinput-Bp-01yUu.css","assets/uni-forms-item.2I4PBt0Q.js","assets/uni-forms-item-DTwQtNzW.css","assets/uni-forms.oA3JcH9o.js","assets/uni-forms-B_SY1GJM.css","assets/uni-captcha.uBG0dSY-.js","assets/uni-captcha-Dca-1IN9.css","assets/uni-id-pages-agreements.DtOmCYnd.js","assets/uni-popup-dialog.BbzARIyH.js","assets/uni-popup-dialog-CjPmZiDH.css","assets/uni-id-pages-agreements-Cc4a6O6A.css","assets/uni-id-pages-fab-login.1DAc7n54.js","assets/uni-id-pages-fab-login-CXT8JGBT.css","assets/login-page.mixin.Co1wd1R5.js","assets/login-withpwd-CVnvrs2q.css","assets/uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.DepwC71Z.js","assets/uni-match-media.DdBreTiv.js","assets/uni-match-media-DeOWEH9h.css","assets/password.BaJrz6A0.js","assets/change_pwd-gnUXT4Ok.css","assets/uni_modules-uni-upgrade-center-pages-version-list.C0ySVScu.js","assets/uni-load-more.cjLoDhLq.js","assets/uni-load-more-CZjV53zS.css","assets/uni-dateformat.DcwBMKfL.js","assets/unicloud-db.BGC9uZmF.js","assets/utils.Q-CcPd_g.js","assets/list-3ITYVhRm.css","assets/uni_modules-uni-upgrade-center-pages-version-add._3mj2BH3.js","assets/uni-data-checkbox.C3jqtMU7.js","assets/uni-data-checkbox-DVl82nmq.css","assets/uni-card.DBN3G75R.js","assets/uni-card-D_13-ckf.css","assets/version_add_detail_mixin.B2pHHnLk.js","assets/add-DsOs8Kwz.css","assets/uni_modules-uni-upgrade-center-pages-version-detail.B9NOyTP3.js","assets/detail-khV5Sho-.css","assets/uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.D9TMNmPX.js","assets/deactivate-BB8sE1Qr.css","assets/uni_modules-uni-id-pages-pages-userinfo-userinfo.2vSnCh4E.js","assets/uni-list.nqlJaGAg.js","assets/uni-list-Bk3tnzVn.css","assets/userinfo-Bg2Eyqm2.css","assets/uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.BvaC1kcf.js","assets/uni-id-pages-sms-form.BYqnP4Ki.js","assets/uni-id-pages-sms-form-sKmYp7NR.css","assets/uni-popup-captcha.BX5_0lX0.js","assets/uni-popup-captcha-okqXVxEU.css","assets/bind-mobile-Dr7D6HnO.css","assets/uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.DWdbIPGC.js","assets/cropImage-Dax52rau.css","assets/uni_modules-uni-id-pages-pages-login-login-smscode.Bc2tPHNK.js","assets/login-smscode-BUQuh-Fx.css","assets/uni_modules-uni-id-pages-pages-login-login-withoutpwd.y6ZMrwr0.js","assets/login-withoutpwd-jPRDJCGC.css","assets/uni_modules-uni-id-pages-pages-register-register.D5XKHlB6.js","assets/validator.PNYSyc5T.js","assets/register-CxKDOsZM.css","assets/uni_modules-uni-id-pages-pages-register-register-admin.BllrOvNQ.js","assets/register-admin-SI6eG0ru.css","assets/uni_modules-uni-id-pages-pages-register-register-by-email.Zzhk8Ine.js","assets/uni-id-pages-email-form.CnEU8FC2.js","assets/uni-id-pages-email-form-6M28TVzF.css","assets/register-by-email-B2DNKhB1.css","assets/uni_modules-uni-id-pages-pages-retrieve-retrieve.DaMQBH-w.js","assets/retrieve-D_RHy5u4.css","assets/uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.BeVFguEJ.js","assets/retrieve-by-email-0L3DpWfH.css","assets/uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.xaFKKGcM.js","assets/set-pwd-B5lZS1VL.css","assets/uni_modules-uni-id-pages-pages-userinfo-realname-verify-realname-verify.wzZzKlnN.js","assets/realname-verify-6a5qbws-.css","assets/pages-system-menu-list.DcSUD1gw.js","assets/list-BxG-shVC.css","assets/pages-system-menu-add.Dg1i57Ac.js","assets/uni-link.BHrWywcw.js","assets/uni-link-_7H1_bJt.css","assets/opendb-admin-menus.nWI8EMpJ.js","assets/add-Ct6xkLaH.css","assets/pages-system-menu-edit.x8jm0RjM.js","assets/edit-D-eZ3-zv.css","assets/pages-system-permission-list.uU3W5VEi.js","assets/download-excel.cahu2xNJ.js","assets/uni-id-permissions.DrKF0XvK.js","assets/pages-system-permission-add.CeVbARJV.js","assets/add-BJxGmR9A.css","assets/pages-system-permission-edit.CjGINnnT.js","assets/edit-69HqMjaX.css","assets/pages-system-role-add.CDfuQjLQ.js","assets/uni-id-roles.JCQZzCUG.js","assets/add-C2mb4kI1.css","assets/pages-system-role-edit.CLhvLxeS.js","assets/edit-BEOln2T0.css","assets/pages-system-role-list.CQa0BMFw.js","assets/pages-system-user-add.B8RBs7G9.js","assets/uni-id-users.DFlB41Hw.js","assets/add-BIi7oM6N.css","assets/pages-system-user-edit.CpLrxTE0.js","assets/edit-CkqgrlGE.css","assets/pages-system-user-list.BSxF4iLC.js","assets/batch-sms.CyNJTMcp.js","assets/uni-data-select.UeW2d6Yw.js","assets/uni-data-select-meaFEkoD.css","assets/batch-sms-CsJ7IWik.css","assets/list-DxdMeZ4a.css","assets/pages-system-app-add.CWQeoYAP.js","assets/opendb-app-list.BrPUIYpy.js","assets/add-qdT-Pnpp.css","assets/pages-system-app-list.4yfiGbIq.js","assets/pages-system-app-uni-portal-uni-portal.1_AhzoHL.js","assets/uni-portal-NMHzlr0H.css","assets/pages-system-tag-add.DolVf7uo.js","assets/uni-id-tag.B4DgDmWM.js","assets/add-DQrnVVLW.css","assets/pages-system-tag-edit.BLWsYfBy.js","assets/edit-P9HfY4jK.css","assets/pages-system-tag-list.DjeGJrEY.js","assets/pages-system-safety-list.B6iCxA-5.js","assets/pages-uni-stat-page-res-page-res.Cxv6Rc7x.js","assets/uni-stat-panel.X3T1D0jX.js","assets/uni-stat-panel-CzBVL48K.css","assets/page-res-BorUEd_O.css","assets/pages-uni-stat-page-ent-page-ent.DQF6TaZN.js","assets/page-ent-DNwTjlpF.css","assets/pages-uni-stat-page-content-page-content.DuVg7kNH.js","assets/page-content-D8u8Fp9M.css","assets/pages-uni-stat-page-rule-page-rule.8UsmwEXL.js","assets/page-rule-DBoaUvS8.css","assets/pages-uni-stat-scene-scene.BONPpu__.js","assets/qiun-data-charts.D-NEYXGW.js","assets/qiun-data-charts-Bowfmmtv.css","assets/uni-stat-table.DJpt4M34.js","assets/uni-stat-table-DGesddRt.css","assets/scene-BztJ53Y4.css","assets/pages-uni-stat-channel-channel.Cdvgw_cn.js","assets/channel-D2Bq70ho.css","assets/pages-uni-stat-error-js-js.BZ2-SkmO.js","assets/fieldsMap.CvZ24T3N.js","assets/js-XWC_SiqD.css","assets/pages-uni-stat-error-js-detail.Y1E6ZfJj.js","assets/detail-Cxl5EFp0.css","assets/pages-uni-stat-error-app-app.D4OaUn1l.js","assets/app-BYtCUrm3.css","assets/pages-uni-stat-event-event.BEeNMC5S.js","assets/event-DCkhKy6Q.css","assets/pages-uni-stat-device-overview-overview.CKkFetB9.js","assets/overview-BpdppQta.css","assets/pages-uni-stat-device-activity-activity.B5b6rmQS.js","assets/pages-uni-stat-device-trend-trend.C-z3DqG-.js","assets/pages-uni-stat-device-retention-retention.C9qXxccW.js","assets/retention-CasIquRv.css","assets/pages-uni-stat-device-comparison-comparison.BYJhDl8A.js","assets/comparison-Bo_JN2eb.css","assets/pages-uni-stat-device-stickiness-stickiness.CMjLNKUN.js","assets/stickiness-BlyWySUc.css","assets/pages-uni-stat-user-overview-overview.BnYES-Se.js","assets/overview-DHprLOJa.css","assets/pages-uni-stat-user-activity-activity.CFDH3fP9.js","assets/pages-uni-stat-user-trend-trend.DfmffMck.js","assets/pages-uni-stat-user-retention-retention.ByYUofDz.js","assets/retention-BJeTlR6s.css","assets/pages-uni-stat-user-comparison-comparison.BiPvt_7b.js","assets/comparison-C102diSq.css","assets/pages-uni-stat-user-stickiness-stickiness.BpmMIIlL.js","assets/stickiness-Akm-wFLW.css","assets/pages-uni-stat-pay-order-overview-overview.CUvTtTyF.js","assets/timeUtil.wwvjgelv.js","assets/overview--gQSx1mV.css","assets/pages-uni-stat-pay-order-list-list.w-fnaQwp.js","assets/uni-pay-orders.CqmY5J70.js","assets/list-B_DvSUUh.css","assets/pages-uni-stat-pay-order-funnel-funnel.DGYbTP1H.js","assets/funnel-BlL56C-M.css","assets/pages-uni-stat-pay-order-ranking-ranking.BGJyA4lC.js","assets/ranking-DfEQF_BE.css"]
- }
- return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
- }
- /**
- * @vue/shared v3.4.21
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/
- function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const t={},n=[],i=()=>{},o=()=>!1,s=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),r=Object.assign,l=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},c=Object.prototype.hasOwnProperty,u=(e,t)=>c.call(e,t),d=Array.isArray,h=e=>"[object Map]"===w(e),p=e=>"[object Set]"===w(e),f=e=>"[object Date]"===w(e),m=e=>"function"==typeof e,g=e=>"string"==typeof e,y=e=>"symbol"==typeof e,v=e=>null!==e&&"object"==typeof e,_=e=>(v(e)||m(e))&&m(e.then)&&m(e.catch),b=Object.prototype.toString,w=e=>b.call(e),x=e=>"[object Object]"===w(e),k=e=>g(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,T=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),S=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},C=/-(\w)/g,E=S((e=>e.replace(C,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,D=S((e=>e.replace(P,"-$1").toLowerCase())),I=S((e=>e.charAt(0).toUpperCase()+e.slice(1))),M=S((e=>e?`on${I(e)}`:"")),O=(e,t)=>!Object.is(e,t),A=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},L=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},R=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let $;const N=()=>$||($="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function B(e){if(d(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=g(i)?W(i):B(i);if(o)for(const e in o)t[e]=o[e]}return t}if(g(e)||v(e))return e}const F=/;(?![^(]*\))/g,j=/:([^]+)/,V=/\/\*[^]*?\*\//g;function W(e){const t={};return e.replace(V,"").split(F).forEach((e=>{if(e){const n=e.split(j);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function U(e){let t="";if(g(e))t=e;else if(d(e))for(let n=0;n<e.length;n++){const i=U(e[n]);i&&(t+=i+" ")}else if(v(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const H=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function q(e){return!!e||""===e}function z(e,t){if(e===t)return!0;let n=f(e),i=f(t);if(n||i)return!(!n||!i)&&e.getTime()===t.getTime();if(n=y(e),i=y(t),n||i)return e===t;if(n=d(e),i=d(t),n||i)return!(!n||!i)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let i=0;n&&i<e.length;i++)n=z(e[i],t[i]);return n}(e,t);if(n=v(e),i=v(t),n||i){if(!n||!i)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const i=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(i&&!o||!i&&o||!z(e[n],t[n]))return!1}}return String(e)===String(t)}function Y(e,t){return e.findIndex((e=>z(e,t)))}const X=e=>g(e)?e:null==e?"":d(e)||v(e)&&(e.toString===b||!m(e.toString))?JSON.stringify(e,K,2):String(e),K=(e,t)=>t&&t.__v_isRef?K(e,t.value):h(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],i)=>(e[G(t,i)+" =>"]=n,e)),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>G(e)))}:y(t)?G(t):!v(t)||d(t)||x(t)?t:String(t),G=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},J=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view"].map((e=>"uni-"+e)),Q=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),Z=["list-item"].map((e=>"uni-"+e));function ee(e){if(-1!==Z.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==J.indexOf(t)||-1!==Q.indexOf(t)}const te=/^([a-z-]+:)?\/\//i,ne=/^data:.*,.*/;function ie(e){return e&&(e.appContext?e.proxy:e)}function oe(e){if(!e)return;let t=e.type.name;for(;t&&ee(D(t));)t=(e=e.parent).type.name;return e.proxy}function se(e){return 1===e.nodeType}function ae(e,t=!1){const{vnode:n}=e;if(se(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:i}=e;if(16&i.shapeFlag){const e=i.children.filter((e=>e.el&&se(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}function re(e){if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),B(t)}if(g(e))return W(e);if(d(e)){const t={};for(let n=0;n<e.length;n++){const i=e[n],o=g(i)?W(i):re(i);if(o)for(const e in o)t[e]=o[e]}return t}return B(e)}function le(e){let t="";if(e instanceof Map)e.forEach(((e,n)=>{e&&(t+=n+" ")}));else if(d(e))for(let n=0;n<e.length;n++){const i=le(e[n]);i&&(t+=i+" ")}else t=U(e);return t.trim()}function ce(e){return 0===e.indexOf("/")}function ue(e){return ce(e)?e:"/"+e}function de(e,t){for(const n in t)e.style[n]=t[n]}function he(e,t=null){let n;return(...i)=>(e&&(n=e.apply(t,i),e=null),n)}const pe=e=>e>9?e:"0"+e;function fe({date:e=new Date,mode:t="date"}){return"time"===t?pe(e.getHours())+":"+pe(e.getMinutes()):e.getFullYear()+"-"+pe(e.getMonth()+1)+"-"+pe(e.getDate())}function me(e){return E(e.substring(5))}const ge=he((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[me(e)]=n}t.call(this,e,n)};const n=e.removeAttribute;e.removeAttribute=function(e){this.__uniDataset&&e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[me(e)],n.call(this,e)}}));function ye(e){return r({},e.dataset,e.__uniDataset)}const ve=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function _e(e){return{passive:e}}function be(e){const{id:t,offsetTop:n,offsetLeft:i}=e;return{id:t,dataset:ye(e),offsetTop:n,offsetLeft:i}}function we(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function xe(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=we(e[n])}catch(Mw){t[n]=e[n]}})),t}const ke=/\+/g;function Te(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const e=n[i].replace(ke," ");let o=e.indexOf("="),s=we(o<0?e:e.slice(0,o)),a=o<0?null:we(e.slice(o+1));if(s in t){let e=t[s];d(e)||(e=t[s]=[e]),e.push(a)}else t[s]=a}return t}function Se(e,t,{clearTimeout:n,setTimeout:i}){let o;const s=function(){n(o);const s=()=>e.apply(this,arguments);o=i(s,t)};return s.cancel=function(){n(o)},s}class Ce{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 n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach((e=>{e.fn.apply(e.fn,t)})),this.listener[e]=n.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 n=this.listener[e];if(n)if(t)for(let i=0;i<n.length;)n[i].fn===t&&(n.splice(i,1),i--),i++;else delete this.listener[e]}_clearCache(e){for(let t=0;t<this.emitCache.length;t++){const n=this.emitCache[t],i=e?n.eventName===e?e:null:n.eventName;if(!i)continue;"number"!=typeof this.emit.apply(this,[i,...n.args])?(this.emitCache.splice(t,1),t--):this.emitCache.pop()}}_addListener(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}const Ee=["onInit","onLoad","onShow","onHide","onUnload","onBackPress","onPageScroll","onTabItemTap","onReachBottom","onPullDownRefresh","onShareTimeline","onShareAppMessage","onAddToFavorites","onSaveExitState","onNavigationBarButtonTap","onNavigationBarSearchInputClicked","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged"];const Pe=["onShow","onHide","onLaunch","onError","onThemeChange","onPageNotFound","onUnhandledRejection","onExit","onInit","onLoad","onReady","onUnload","onResize","onBackPress","onPageScroll","onTabItemTap","onReachBottom","onPullDownRefresh","onShareTimeline","onAddToFavorites","onShareAppMessage","onSaveExitState","onNavigationBarButtonTap","onNavigationBarSearchInputClicked","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged"];const De=[];const Ie=he(((e,t)=>{if(m(e._component.onError))return t(e)})),Me=function(){};Me.prototype={on:function(e,t,n){var i=this.e||(this.e={});return(i[e]||(i[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var i=this;function o(){i.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),i=n[e],o=[];if(i&&t){for(var s=i.length-1;s>=0;s--)if(i[s].fn===t||i[s].fn._===t){i.splice(s,1);break}o=i}return o.length?n[e]=o:delete n[e],this}};var Oe=Me;const Ae={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function Le(e,t={},n="light"){const i=t[n],o={};return i?(Object.keys(e).forEach((s=>{let a=e[s];o[s]=(()=>{if(x(a))return Le(a,t,n);if(d(a))return a.map((e=>x(e)?Le(e,t,n):e));if(g(a)&&a.startsWith("@")){const t=a.replace("@","");let n=i[t]||a;switch(s){case"titleColor":n="black"===n?"#000000":"#ffffff";break;case"borderStyle":n=(e=n)&&e in Ae?Ae[e]:e}return n}var e;return a})()})),o):e}
- /**
- * @dcloudio/uni-h5-vue v3.4.21
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
- * @license MIT
- **/let Re,$e;class Ne{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Re,!e&&Re&&(this.index=(Re.scopes||(Re.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Re;try{return Re=this,e()}finally{Re=t}}}on(){Re=this}off(){Re=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Be(e){return new Ne(e)}class Fe{constructor(e,t,n,i){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,function(e,t=Re){t&&t.active&&t.effects.push(e)}(this,i)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,ze();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(t.computed.value,this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ye()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Ue,t=$e;try{return Ue=!0,$e=this,this._runnings++,je(this),this.fn()}finally{Ve(this),this._runnings--,$e=t,Ue=e}}stop(){var e;this.active&&(je(this),Ve(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function je(e){e._trackId++,e._depsLength=0}function Ve(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)We(e.deps[t],e);e.deps.length=e._depsLength}}function We(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}let Ue=!0,He=0;const qe=[];function ze(){qe.push(Ue),Ue=!1}function Ye(){const e=qe.pop();Ue=void 0===e||e}function Xe(){He++}function Ke(){for(He--;!He&&Je.length;)Je.shift()()}function Ge(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&We(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Je=[];function Qe(e,t,n){Xe();for(const i of e.keys()){let n;i._dirtyLevel<t&&(null!=n?n:n=e.get(i)===i._trackId)&&(i._shouldSchedule||(i._shouldSchedule=0===i._dirtyLevel),i._dirtyLevel=t),i._shouldSchedule&&(null!=n?n:n=e.get(i)===i._trackId)&&(i.trigger(),i._runnings&&!i.allowRecurse||2===i._dirtyLevel||(i._shouldSchedule=!1,i.scheduler&&Je.push(i.scheduler)))}Ke()}const Ze=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},et=new WeakMap,tt=Symbol(""),nt=Symbol("");function it(e,t,n){if(Ue&&$e){let t=et.get(e);t||et.set(e,t=new Map);let i=t.get(n);i||t.set(n,i=Ze((()=>t.delete(n)))),Ge($e,i)}}function ot(e,t,n,i,o,s){const a=et.get(e);if(!a)return;let r=[];if("clear"===t)r=[...a.values()];else if("length"===n&&d(e)){const e=Number(i);a.forEach(((t,n)=>{("length"===n||!y(n)&&n>=e)&&r.push(t)}))}else switch(void 0!==n&&r.push(a.get(n)),t){case"add":d(e)?k(n)&&r.push(a.get("length")):(r.push(a.get(tt)),h(e)&&r.push(a.get(nt)));break;case"delete":d(e)||(r.push(a.get(tt)),h(e)&&r.push(a.get(nt)));break;case"set":h(e)&&r.push(a.get(tt))}Xe();for(const l of r)l&&Qe(l,4);Ke()}const st=e("__proto__,__v_isRef,__isVue"),at=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),rt=lt();function lt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Gt(this);for(let t=0,o=this.length;t<o;t++)it(n,0,t+"");const i=n[t](...e);return-1===i||!1===i?n[t](...e.map(Gt)):i}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){ze(),Xe();const n=Gt(this)[t].apply(this,e);return Ke(),Ye(),n}})),e}function ct(e){const t=Gt(this);return it(t,0,e),t.hasOwnProperty(e)}class ut{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const i=this._isReadonly,o=this._isShallow;if("__v_isReactive"===t)return!i;if("__v_isReadonly"===t)return i;if("__v_isShallow"===t)return o;if("__v_raw"===t)return n===(i?o?jt:Ft:o?Bt:Nt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=d(e);if(!i){if(s&&u(rt,t))return Reflect.get(rt,t,n);if("hasOwnProperty"===t)return ct}const a=Reflect.get(e,t,n);return(y(t)?at.has(t):st(t))?a:(i||it(e,0,t),o?a:on(a)?s&&k(t)?a:a.value:v(a)?i?Ht(a):Wt(a):a)}}class dt extends ut{constructor(e=!1){super(!1,e)}set(e,t,n,i){let o=e[t];if(!this._isShallow){const t=Yt(o);if(Xt(n)||Yt(n)||(o=Gt(o),n=Gt(n)),!d(e)&&on(o)&&!on(n))return!t&&(o.value=n,!0)}const s=d(e)&&k(t)?Number(t)<e.length:u(e,t),a=Reflect.set(e,t,n,i);return e===Gt(i)&&(s?O(n,o)&&ot(e,"set",t,n):ot(e,"add",t,n)),a}deleteProperty(e,t){const n=u(e,t);e[t];const i=Reflect.deleteProperty(e,t);return i&&n&&ot(e,"delete",t,void 0),i}has(e,t){const n=Reflect.has(e,t);return y(t)&&at.has(t)||it(e,0,t),n}ownKeys(e){return it(e,0,d(e)?"length":tt),Reflect.ownKeys(e)}}class ht extends ut{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}}const pt=new dt,ft=new ht,mt=new dt(!0),gt=e=>e,yt=e=>Reflect.getPrototypeOf(e);function vt(e,t,n=!1,i=!1){const o=Gt(e=e.__v_raw),s=Gt(t);n||(O(t,s)&&it(o,0,t),it(o,0,s));const{has:a}=yt(o),r=i?gt:n?Zt:Qt;return a.call(o,t)?r(e.get(t)):a.call(o,s)?r(e.get(s)):void(e!==o&&e.get(t))}function _t(e,t=!1){const n=this.__v_raw,i=Gt(n),o=Gt(e);return t||(O(e,o)&&it(i,0,e),it(i,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function bt(e,t=!1){return e=e.__v_raw,!t&&it(Gt(e),0,tt),Reflect.get(e,"size",e)}function wt(e){e=Gt(e);const t=Gt(this);return yt(t).has.call(t,e)||(t.add(e),ot(t,"add",e,e)),this}function xt(e,t){t=Gt(t);const n=Gt(this),{has:i,get:o}=yt(n);let s=i.call(n,e);s||(e=Gt(e),s=i.call(n,e));const a=o.call(n,e);return n.set(e,t),s?O(t,a)&&ot(n,"set",e,t):ot(n,"add",e,t),this}function kt(e){const t=Gt(this),{has:n,get:i}=yt(t);let o=n.call(t,e);o||(e=Gt(e),o=n.call(t,e)),i&&i.call(t,e);const s=t.delete(e);return o&&ot(t,"delete",e,void 0),s}function Tt(){const e=Gt(this),t=0!==e.size,n=e.clear();return t&&ot(e,"clear",void 0,void 0),n}function St(e,t){return function(n,i){const o=this,s=o.__v_raw,a=Gt(s),r=t?gt:e?Zt:Qt;return!e&&it(a,0,tt),s.forEach(((e,t)=>n.call(i,r(e),r(t),o)))}}function Ct(e,t,n){return function(...i){const o=this.__v_raw,s=Gt(o),a=h(s),r="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,c=o[e](...i),u=n?gt:t?Zt:Qt;return!t&&it(s,0,l?nt:tt),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:r?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Et(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function Pt(){const e={get(e){return vt(this,e)},get size(){return bt(this)},has:_t,add:wt,set:xt,delete:kt,clear:Tt,forEach:St(!1,!1)},t={get(e){return vt(this,e,!1,!0)},get size(){return bt(this)},has:_t,add:wt,set:xt,delete:kt,clear:Tt,forEach:St(!1,!0)},n={get(e){return vt(this,e,!0)},get size(){return bt(this,!0)},has(e){return _t.call(this,e,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:St(!0,!1)},i={get(e){return vt(this,e,!0,!0)},get size(){return bt(this,!0)},has(e){return _t.call(this,e,!0)},add:Et("add"),set:Et("set"),delete:Et("delete"),clear:Et("clear"),forEach:St(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Ct(o,!1,!1),n[o]=Ct(o,!0,!1),t[o]=Ct(o,!1,!0),i[o]=Ct(o,!0,!0)})),[e,n,t,i]}const[Dt,It,Mt,Ot]=Pt();function At(e,t){const n=t?e?Ot:Mt:e?It:Dt;return(t,i,o)=>"__v_isReactive"===i?!e:"__v_isReadonly"===i?e:"__v_raw"===i?t:Reflect.get(u(n,i)&&i in t?n:t,i,o)}const Lt={get:At(!1,!1)},Rt={get:At(!1,!0)},$t={get:At(!0,!1)},Nt=new WeakMap,Bt=new WeakMap,Ft=new WeakMap,jt=new WeakMap;function Vt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>w(e).slice(8,-1))(e))}function Wt(e){return Yt(e)?e:qt(e,!1,pt,Lt,Nt)}function Ut(e){return qt(e,!1,mt,Rt,Bt)}function Ht(e){return qt(e,!0,ft,$t,Ft)}function qt(e,t,n,i,o){if(!v(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const a=Vt(e);if(0===a)return e;const r=new Proxy(e,2===a?i:n);return o.set(e,r),r}function zt(e){return Yt(e)?zt(e.__v_raw):!(!e||!e.__v_isReactive)}function Yt(e){return!(!e||!e.__v_isReadonly)}function Xt(e){return!(!e||!e.__v_isShallow)}function Kt(e){return zt(e)||Yt(e)}function Gt(e){const t=e&&e.__v_raw;return t?Gt(t):e}function Jt(e){return Object.isExtensible(e)&&L(e,"__v_skip",!0),e}const Qt=e=>v(e)?Wt(e):e,Zt=e=>v(e)?Ht(e):e;class en{constructor(e,t,n,i){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Fe((()=>e(this._value)),(()=>nn(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const e=Gt(this);return e._cacheable&&!e.effect.dirty||!O(e._value,e._value=e.effect.run())||nn(e,4),tn(e),e.effect._dirtyLevel>=2&&nn(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function tn(e){var t;Ue&&$e&&(e=Gt(e),Ge($e,null!=(t=e.dep)?t:e.dep=Ze((()=>e.dep=void 0),e instanceof en?e:void 0)))}function nn(e,t=4,n){const i=(e=Gt(e)).dep;i&&Qe(i,t)}function on(e){return!(!e||!0!==e.__v_isRef)}function sn(e){return rn(e,!1)}function an(e){return rn(e,!0)}function rn(e,t){return on(e)?e:new ln(e,t)}class ln{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Gt(e),this._value=t?e:Qt(e)}get value(){return tn(this),this._value}set value(e){const t=this.__v_isShallow||Xt(e)||Yt(e);e=t?e:Gt(e),O(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Qt(e),nn(this,4))}}function cn(e){return on(e)?e.value:e}const un={get:(e,t,n)=>cn(Reflect.get(e,t,n)),set:(e,t,n,i)=>{const o=e[t];return on(o)&&!on(n)?(o.value=n,!0):Reflect.set(e,t,n,i)}};function dn(e){return zt(e)?e:new Proxy(e,un)}function hn(e,t,n,i){try{return i?e(...i):e()}catch(o){fn(o,t,n)}}function pn(e,t,n,i){if(m(e)){const o=hn(e,t,n,i);return o&&_(o)&&o.catch((e=>{fn(e,t,n)})),o}const o=[];for(let s=0;s<e.length;s++)o.push(pn(e[s],t,n,i));return o}function fn(e,t,n,i=!0){t&&t.vnode;if(t){let i=t.parent;const o=t.proxy,s=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const t=i.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,o,s))return;i=i.parent}const a=t.appContext.config.errorHandler;if(a)return void hn(a,null,10,[e,o,s])}!function(e,t,n,i=!0){console.error(e)}(e,0,0,i)}let mn=!1,gn=!1;const yn=[];let vn=0;const _n=[];let bn=null,wn=0;const xn=Promise.resolve();let kn=null;function Tn(e){const t=kn||xn;return e?t.then(this?e.bind(this):e):t}function Sn(e){yn.length&&yn.includes(e,mn&&e.allowRecurse?vn+1:vn)||(null==e.id?yn.push(e):yn.splice(function(e){let t=vn+1,n=yn.length;for(;t<n;){const i=t+n>>>1,o=yn[i],s=Dn(o);s<e||s===e&&o.pre?t=i+1:n=i}return t}(e.id),0,e),Cn())}function Cn(){mn||gn||(gn=!0,kn=xn.then(Mn))}function En(e,t,n=(mn?vn+1:0)){for(;n<yn.length;n++){const t=yn[n];if(t&&t.pre){if(e&&t.id!==e.uid)continue;yn.splice(n,1),n--,t()}}}function Pn(e){if(_n.length){const e=[...new Set(_n)].sort(((e,t)=>Dn(e)-Dn(t)));if(_n.length=0,bn)return void bn.push(...e);for(bn=e,wn=0;wn<bn.length;wn++)bn[wn]();bn=null,wn=0}}const Dn=e=>null==e.id?1/0:e.id,In=(e,t)=>{const n=Dn(e)-Dn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Mn(e){gn=!1,mn=!0,yn.sort(In);try{for(vn=0;vn<yn.length;vn++){const e=yn[vn];e&&!1!==e.active&&hn(e,null,14)}}finally{vn=0,yn.length=0,Pn(),mn=!1,kn=null,(yn.length||_n.length)&&Mn()}}function On(e,n,...i){if(e.isUnmounted)return;const o=e.vnode.props||t;let s=i;const a=n.startsWith("update:"),r=a&&n.slice(7);if(r&&r in o){const e=`${"modelValue"===r?"model":r}Modifiers`,{number:n,trim:a}=o[e]||t;a&&(s=i.map((e=>g(e)?e.trim():e))),n&&(s=i.map(R))}let l,c=o[l=M(n)]||o[l=M(E(n))];!c&&a&&(c=o[l=M(D(n))]),c&&pn(c,e,6,An(e,c,s));const u=o[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,pn(u,e,6,An(e,u,s))}}function An(e,t,n){if(1!==n.length)return n;if(m(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const i=n[0];if(i&&u(i,"type")&&u(i,"timeStamp")&&u(i,"target")&&u(i,"currentTarget")&&u(i,"detail")){const t=e.proxy,i=t.$gcd(t,!0);i&&n.push(i)}return n}function Ln(e,t,n=!1){const i=t.emitsCache,o=i.get(e);if(void 0!==o)return o;const s=e.emits;let a={},l=!1;if(!m(e)){const i=e=>{const n=Ln(e,t,!0);n&&(l=!0,r(a,n))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return s||l?(d(s)?s.forEach((e=>a[e]=null)):r(a,s),v(e)&&i.set(e,a),a):(v(e)&&i.set(e,null),null)}function Rn(e,t){return!(!e||!s(t))&&(t=t.slice(2).replace(/Once$/,""),u(e,t[0].toLowerCase()+t.slice(1))||u(e,D(t))||u(e,t))}let $n=null,Nn=null;function Bn(e){const t=$n;return $n=e,Nn=e&&e.type.__scopeId||null,t}function Fn(e,t=$n,n){if(!t)return e;if(e._n)return e;const i=(...n)=>{i._d&&Yo(-1);const o=Bn(t);let s;try{s=e(...n)}finally{Bn(o),i._d&&Yo(1)}return s};return i._n=!0,i._c=!0,i._d=!0,i}function jn(e){const{type:t,vnode:n,proxy:i,withProxy:o,props:s,propsOptions:[r],slots:l,attrs:c,emit:u,render:d,renderCache:h,data:p,setupState:f,ctx:m,inheritAttrs:g}=e;let y,v;const _=Bn(e);try{if(4&n.shapeFlag){const e=o||i,t=e;y=rs(d.call(t,e,h,s,f,p,m)),v=c}else{const e=t;0,y=rs(e.length>1?e(s,{attrs:c,slots:l,emit:u}):e(s,null)),v=t.props?c:Vn(c)}}catch(w){Uo.length=0,fn(w,e,1),y=is(Vo)}let b=y;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(r&&e.some(a)&&(v=Wn(v,r)),b=os(b,v))}return n.dirs&&(b=os(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),y=b,Bn(_),y}const Vn=e=>{let t;for(const n in e)("class"===n||"style"===n||s(n))&&((t||(t={}))[n]=e[n]);return t},Wn=(e,t)=>{const n={};for(const i in e)a(i)&&i.slice(9)in t||(n[i]=e[i]);return n};function Un(e,t,n){const i=Object.keys(t);if(i.length!==Object.keys(e).length)return!0;for(let o=0;o<i.length;o++){const s=i[o];if(t[s]!==e[s]&&!Rn(n,s))return!0}return!1}function Hn(e,t){return Yn("components",e,!0,t)||e}const qn=Symbol.for("v-ndc");function zn(e){return g(e)?Yn("components",e,!1)||e:e||qn}function Yn(e,t,n=!0,i=!1){const o=$n||fs;if(o){const n=o.type;if("components"===e){const e=Ss(n,!1);if(e&&(e===t||e===E(t)||e===I(E(t))))return n}const s=Xn(o[e]||n[e],t)||Xn(o.appContext[e],t);return!s&&i?n:s}}function Xn(e,t){return e&&(e[t]||e[E(t)]||e[I(E(t))])}const Kn=e=>e.__isSuspense;const Gn=Symbol.for("v-scx");function Jn(e,t){return ei(e,null,t)}const Qn={};function Zn(e,t,n){return ei(e,t,n)}function ei(e,n,{immediate:o,deep:s,flush:a,once:r,onTrack:c,onTrigger:u}=t){if(n&&r){const e=n;n=(...t)=>{e(...t),C()}}const h=fs,p=e=>!0===s?e:ii(e,!1===s?1:void 0);let f,g,y=!1,v=!1;if(on(e)?(f=()=>e.value,y=Xt(e)):zt(e)?(f=()=>p(e),y=!0):d(e)?(v=!0,y=e.some((e=>zt(e)||Xt(e))),f=()=>e.map((e=>on(e)?e.value:zt(e)?p(e):m(e)?hn(e,h,2):void 0))):f=m(e)?n?()=>hn(e,h,2):()=>(g&&g(),pn(e,h,3,[b])):i,n&&s){const e=f;f=()=>ii(e())}let _,b=e=>{g=T.onStop=()=>{hn(e,h,4),g=T.onStop=void 0}};if(ws){if(b=i,n?o&&pn(n,h,3,[f(),v?[]:void 0,b]):f(),"sync"!==a)return i;{const e=_o(Gn);_=e.__watcherHandles||(e.__watcherHandles=[])}}let w=v?new Array(e.length).fill(Qn):Qn;const x=()=>{if(T.active&&T.dirty)if(n){const e=T.run();(s||y||(v?e.some(((e,t)=>O(e,w[t]))):O(e,w)))&&(g&&g(),pn(n,h,3,[e,w===Qn?void 0:v&&w[0]===Qn?[]:w,b]),w=e)}else T.run()};let k;x.allowRecurse=!!n,"sync"===a?k=x:"post"===a?k=()=>Ao(x,h&&h.suspense):(x.pre=!0,h&&(x.id=h.uid),k=()=>Sn(x));const T=new Fe(f,i,k),S=Re,C=()=>{T.stop(),S&&l(S.effects,T)};return n?o?x():w=T.run():"post"===a?Ao(T.run.bind(T),h&&h.suspense):T.run(),_&&_.push(C),C}function ti(e,t,n){const i=this.proxy,o=g(e)?e.includes(".")?ni(i,e):()=>i[e]:e.bind(i,i);let s;m(t)?s=t:(s=t.handler,n=t);const a=vs(this),r=ei(o,s.bind(i),n);return a(),r}function ni(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function ii(e,t,n=0,i){if(!v(e)||e.__v_skip)return e;if(t&&t>0){if(n>=t)return e;n++}if((i=i||new Set).has(e))return e;if(i.add(e),on(e))ii(e.value,t,n,i);else if(d(e))for(let o=0;o<e.length;o++)ii(e[o],t,n,i);else if(p(e)||h(e))e.forEach((e=>{ii(e,t,n,i)}));else if(x(e))for(const o in e)ii(e[o],t,n,i);return e}function oi(e,n){if(null===$n)return e;const i=Ts($n)||$n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;s<n.length;s++){let[e,a,r,l=t]=n[s];e&&(m(e)&&(e={mounted:e,updated:e}),e.deep&&ii(a),o.push({dir:e,instance:i,value:a,oldValue:void 0,arg:r,modifiers:l}))}return e}function si(e,t,n,i){const o=e.dirs,s=t&&t.dirs;for(let a=0;a<o.length;a++){const r=o[a];s&&(r.oldValue=s[a].value);let l=r.dir[i];l&&(ze(),pn(l,n,8,[e.el,r,e,t]),Ye())}}const ai=Symbol("_leaveCb"),ri=Symbol("_enterCb");const li=[Function,Array],ci={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:li,onEnter:li,onAfterEnter:li,onEnterCancelled:li,onBeforeLeave:li,onLeave:li,onAfterLeave:li,onLeaveCancelled:li,onBeforeAppear:li,onAppear:li,onAfterAppear:li,onAppearCancelled:li},ui={name:"BaseTransition",props:ci,setup(e,{slots:t}){const n=ms(),i=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ni((()=>{e.isMounted=!0})),ji((()=>{e.isUnmounting=!0})),e}();return()=>{const o=t.default&&gi(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1)for(const e of o)if(e.type!==Vo){s=e;break}const a=Gt(e),{mode:r}=a;if(i.isLeaving)return pi(s);const l=fi(s);if(!l)return pi(s);const c=hi(l,a,i,n);mi(l,c);const u=n.subTree,d=u&&fi(u);if(d&&d.type!==Vo&&!Qo(l,d)){const e=hi(d,a,i,n);if(mi(d,e),"out-in"===r)return i.isLeaving=!0,e.afterLeave=()=>{i.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},pi(s);"in-out"===r&&l.type!==Vo&&(e.delayLeave=(e,t,n)=>{di(i,d)[String(d.key)]=d,e[ai]=()=>{t(),e[ai]=void 0,delete c.delayedLeave},c.delayedLeave=n})}return s}}};function di(e,t){const{leavingVNodes:n}=e;let i=n.get(t.type);return i||(i=Object.create(null),n.set(t.type,i)),i}function hi(e,t,n,i){const{appear:o,mode:s,persisted:a=!1,onBeforeEnter:r,onEnter:l,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:p,onAfterLeave:f,onLeaveCancelled:m,onBeforeAppear:g,onAppear:y,onAfterAppear:v,onAppearCancelled:_}=t,b=String(e.key),w=di(n,e),x=(e,t)=>{e&&pn(e,i,9,t)},k=(e,t)=>{const n=t[1];x(e,t),d(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},T={mode:s,persisted:a,beforeEnter(t){let i=r;if(!n.isMounted){if(!o)return;i=g||r}t[ai]&&t[ai](!0);const s=w[b];s&&Qo(e,s)&&s.el[ai]&&s.el[ai](),x(i,[t])},enter(e){let t=l,i=c,s=u;if(!n.isMounted){if(!o)return;t=y||l,i=v||c,s=_||u}let a=!1;const r=e[ri]=t=>{a||(a=!0,x(t?s:i,[e]),T.delayedLeave&&T.delayedLeave(),e[ri]=void 0)};t?k(t,[e,r]):r()},leave(t,i){const o=String(e.key);if(t[ri]&&t[ri](!0),n.isUnmounting)return i();x(h,[t]);let s=!1;const a=t[ai]=n=>{s||(s=!0,i(),x(n?m:f,[t]),t[ai]=void 0,w[o]===e&&delete w[o])};w[o]=e,p?k(p,[t,a]):a()},clone:e=>hi(e,t,n,i)};return T}function pi(e){if(wi(e))return(e=os(e)).children=null,e}function fi(e){return wi(e)?e.children?e.children[0]:void 0:e}function mi(e,t){6&e.shapeFlag&&e.component?mi(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function gi(e,t=!1,n){let i=[],o=0;for(let s=0;s<e.length;s++){let a=e[s];const r=null==n?a.key:String(n)+String(null!=a.key?a.key:s);a.type===Fo?(128&a.patchFlag&&o++,i=i.concat(gi(a.children,t,r))):(t||a.type!==Vo)&&i.push(null!=r?os(a,{key:r}):a)}if(o>1)for(let s=0;s<i.length;s++)i[s].patchFlag=-2;return i}
- /*! #__NO_SIDE_EFFECTS__ */function yi(e,t){return m(e)?(()=>r({name:e.name},t,{setup:e}))():e}const vi=e=>!!e.type.__asyncLoader
- /*! #__NO_SIDE_EFFECTS__ */;function _i(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:i,delay:o=200,timeout:s,suspensible:a=!0,onError:r}=e;let l,c=null,u=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),r)return new Promise(((t,n)=>{r(e,(()=>t((u++,c=null,d()))),(()=>n(e)),u+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return yi({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return l},setup(){const e=fs;if(l)return()=>bi(l,e);const t=t=>{c=null,fn(t,e,13,!i)};if(a&&e.suspense||ws)return d().then((t=>()=>bi(t,e))).catch((e=>(t(e),()=>i?is(i,{error:e}):null)));const r=sn(!1),u=sn(),h=sn(!!o);return o&&setTimeout((()=>{h.value=!1}),o),null!=s&&setTimeout((()=>{if(!r.value&&!u.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),u.value=e}}),s),d().then((()=>{r.value=!0,e.parent&&wi(e.parent.vnode)&&(e.parent.effect.dirty=!0,Sn(e.parent.update))})).catch((e=>{t(e),u.value=e})),()=>r.value&&l?bi(l,e):u.value&&i?is(i,{error:u.value}):n&&!h.value?is(n):void 0}})}function bi(e,t){const{ref:n,props:i,children:o,ce:s}=t.vnode,a=is(e,i,o);return a.ref=n,a.ce=s,delete t.vnode.ce,a}const wi=e=>e.type.__isKeepAlive;class xi{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:i}=this,o=t.get(e);if(o)n.delete(e),n.add(e);else if(n.add(e),i&&n.size>i){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return o}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const ki={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=ms(),i=n.ctx;if(!i.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const o=e.cache||new xi(e.max);o.pruneCacheEntry=a;let s=null;function a(t){var i;!s||!Qo(t,s)||"key"===e.matchBy&&t.key!==s.key?(Ii(i=t),u(i,n,r,!0)):s&&Ii(s)}const r=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=i,h=d("div");function p(t){o.forEach(((n,i)=>{const s=Oi(n,e.matchBy);!s||t&&t(s)||(o.delete(i),a(n))}))}i.activate=(e,t,n,i,o)=>{const s=e.component;if(s.ba){const e=s.isDeactivated;s.isDeactivated=!1,A(s.ba),s.isDeactivated=e}c(e,t,n,0,r),l(s.vnode,e,t,n,s,r,i,e.slotScopeIds,o),Ao((()=>{s.isDeactivated=!1,s.a&&A(s.a);const t=e.props&&e.props.onVnodeMounted;t&&ds(t,s.parent,e)}),r)},i.deactivate=e=>{const t=e.component;t.bda&&Ai(t.bda),c(e,h,null,1,r),Ao((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&A(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ds(n,t.parent,e),t.isDeactivated=!0}),r)},Zn((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>Si(e,t))),t&&p((e=>!Si(t,e)))}),{flush:"post",deep:!0});let f=null;const m=()=>{null!=f&&o.set(f,Mi(n.subTree))};return Ni(m),Fi(m),ji((()=>{o.forEach(((t,i)=>{o.delete(i),a(t);const{subTree:s,suspense:r}=n,l=Mi(s);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&A(l.component.bda),Ii(l);const e=l.component.da;e&&Ao(e,r)}}))})),()=>{if(f=null,!t.default)return null;const n=t.default(),i=n[0];if(n.length>1)return s=null,n;if(!Jo(i)||!(4&i.shapeFlag)&&!Kn(i.type))return s=null,i;let a=Mi(i);const r=a.type,l=Oi(a,e.matchBy),{include:c,exclude:u}=e;if(c&&(!l||!Si(c,l))||u&&l&&Si(u,l))return s=a,i;const d=null==a.key?r:a.key,h=o.get(d);return a.el&&(a=os(a),Kn(i.type)&&(i.ssContent=a)),f=d,h&&(a.el=h.el,a.component=h.component,a.transition&&mi(a,a.transition),a.shapeFlag|=512),a.shapeFlag|=256,s=a,Kn(i.type)?i:a}}},Ti=ki;function Si(e,t){return d(e)?e.some((e=>Si(e,t))):g(e)?e.split(",").includes(t):"[object RegExp]"===w(e)&&e.test(t)}function Ci(e,t){Pi(e,"a",t)}function Ei(e,t){Pi(e,"da",t)}function Pi(e,t,n=fs){const i=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(i.__called=!1,Li(t,i,n),n){let e=n.parent;for(;e&&e.parent;)wi(e.parent.vnode)&&Di(i,t,n,e),e=e.parent}}function Di(e,t,n,i){const o=Li(t,e,i,!0);Vi((()=>{l(i[t],o)}),n)}function Ii(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Mi(e){return Kn(e.type)?e.ssContent:e}function Oi(e,t){if("name"===t){const t=e.type;return Ss(vi(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Ai(e){for(let t=0;t<e.length;t++){const n=e[t];n.__called||(n(),n.__called=!0)}}function Li(e,t,n=fs,i=!1){if(n){if(o=e,Ee.indexOf(o)>-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return["onLoad","onShow"].indexOf(e)>-1}(e))){const i=n.proxy;pn(t.bind(i),n,e,"onLoad"===e?[i.$page.options]:[])}}const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ze();const o=vs(n),s=pn(t,n,e,i);return o(),Ye(),s});return i?s.unshift(a):s.push(a),a}var o}const Ri=e=>(t,n=fs)=>(!ws||"sp"===e)&&Li(e,((...e)=>t(...e)),n),$i=Ri("bm"),Ni=Ri("m"),Bi=Ri("bu"),Fi=Ri("u"),ji=Ri("bum"),Vi=Ri("um"),Wi=Ri("sp"),Ui=Ri("rtg"),Hi=Ri("rtc");function qi(e,t=fs){Li("ec",e,t)}function zi(e,t,n,i){let o;const s=n&&n[i];if(d(e)||g(e)){o=new Array(e.length);for(let n=0,i=e.length;n<i;n++)o[n]=t(e[n],n,void 0,s&&s[n])}else if("number"==typeof e){o=new Array(e);for(let n=0;n<e;n++)o[n]=t(n+1,n,void 0,s&&s[n])}else if(v(e))if(e[Symbol.iterator])o=Array.from(e,((e,n)=>t(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);o=new Array(n.length);for(let i=0,a=n.length;i<a;i++){const a=n[i];o[i]=t(e[a],a,i,s&&s[i])}}else o=[];return n&&(n[i]=o),o}function Yi(e,t){for(let n=0;n<t.length;n++){const i=t[n];if(d(i))for(let t=0;t<i.length;t++)e[i[t].name]=i[t].fn;else i&&(e[i.name]=i.key?(...e)=>{const t=i.fn(...e);return t&&(t.key=i.key),t}:i.fn)}return e}function Xi(e,t,n={},i,o){if($n.isCE||$n.parent&&vi($n.parent)&&$n.parent.isCE)return"default"!==t&&(n.name=t),is("slot",n,i&&i());let s=e[t];s&&s._c&&(s._d=!1),qo();const a=s&&Ki(s(n)),r=Go(Fo,{key:n.key||a&&a.key||`_${t}`},a||(i?i():[]),a&&1===e._?64:-2);return!o&&r.scopeId&&(r.slotScopeIds=[r.scopeId+"-s"]),s&&s._c&&(s._d=!0),r}function Ki(e){return e.some((e=>!Jo(e)||e.type!==Vo&&!(e.type===Fo&&!Ki(e.children))))?e:null}const Gi=e=>{if(!e)return null;if(bs(e)){return Ts(e)||e.proxy}return Gi(e.parent)},Ji=r(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gi(e.parent),$root:e=>Gi(e.root),$emit:e=>e.emit,$options:e=>so(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,Sn(e.update)})(e)),$nextTick:e=>e.n||(e.n=Tn.bind(e.proxy)),$watch:e=>ti.bind(e)}),Qi=(e,n)=>e!==t&&!e.__isScriptSetup&&u(e,n),Zi={get({_:e},n){const{ctx:i,setupState:o,data:s,props:a,accessCache:r,type:l,appContext:c}=e;let d;if("$"!==n[0]){const l=r[n];if(void 0!==l)switch(l){case 1:return o[n];case 2:return s[n];case 4:return i[n];case 3:return a[n]}else{if(Qi(o,n))return r[n]=1,o[n];if(s!==t&&u(s,n))return r[n]=2,s[n];if((d=e.propsOptions[0])&&u(d,n))return r[n]=3,a[n];if(i!==t&&u(i,n))return r[n]=4,i[n];to&&(r[n]=0)}}const h=Ji[n];let p,f;return h?("$attrs"===n&&it(e,0,n),h(e)):(p=l.__cssModules)&&(p=p[n])?p:i!==t&&u(i,n)?(r[n]=4,i[n]):(f=c.config.globalProperties,u(f,n)?f[n]:void 0)},set({_:e},n,i){const{data:o,setupState:s,ctx:a}=e;return Qi(s,n)?(s[n]=i,!0):o!==t&&u(o,n)?(o[n]=i,!0):!u(e.props,n)&&(("$"!==n[0]||!(n.slice(1)in e))&&(a[n]=i,!0))},has({_:{data:e,setupState:n,accessCache:i,ctx:o,appContext:s,propsOptions:a}},r){let l;return!!i[r]||e!==t&&u(e,r)||Qi(n,r)||(l=a[0])&&u(l,r)||u(o,r)||u(Ji,r)||u(s.config.globalProperties,r)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:u(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function eo(e){return d(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}let to=!0;function no(e){const t=so(e),n=e.proxy,o=e.ctx;to=!1,t.beforeCreate&&io(t.beforeCreate,e,"bc");const{data:s,computed:a,methods:r,watch:l,provide:c,inject:u,created:h,beforeMount:p,mounted:f,beforeUpdate:g,updated:y,activated:_,deactivated:b,beforeDestroy:w,beforeUnmount:x,destroyed:k,unmounted:T,render:S,renderTracked:C,renderTriggered:E,errorCaptured:P,serverPrefetch:D,expose:I,inheritAttrs:M,components:O,directives:A,filters:L}=t;if(u&&function(e,t,n=i){d(e)&&(e=co(e));for(const i in e){const n=e[i];let o;o=v(n)?"default"in n?_o(n.from||i,n.default,!0):_o(n.from||i):_o(n),on(o)?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>o.value,set:e=>o.value=e}):t[i]=o}}(u,o,null),r)for(const i in r){const e=r[i];m(e)&&(o[i]=e.bind(n))}if(s){const t=s.call(n,n);v(t)&&(e.data=Wt(t))}if(to=!0,a)for(const d in a){const e=a[d],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):i,s=!m(e)&&m(e.set)?e.set.bind(n):i,r=Cs({get:t,set:s});Object.defineProperty(o,d,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e})}if(l)for(const i in l)oo(l[i],o,n,i);if(c){const e=m(c)?c.call(n):c;Reflect.ownKeys(e).forEach((t=>{vo(t,e[t])}))}function R(e,t){d(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(h&&io(h,e,"c"),R($i,p),R(Ni,f),R(Bi,g),R(Fi,y),R(Ci,_),R(Ei,b),R(qi,P),R(Hi,C),R(Ui,E),R(ji,x),R(Vi,T),R(Wi,D),d(I))if(I.length){const t=e.exposed||(e.exposed={});I.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});S&&e.render===i&&(e.render=S),null!=M&&(e.inheritAttrs=M),O&&(e.components=O),A&&(e.directives=A);const $=e.appContext.config.globalProperties.$applyOptions;$&&$(t,e,n)}function io(e,t,n){pn(d(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function oo(e,t,n,i){const o=i.includes(".")?ni(n,i):()=>n[i];if(g(e)){const n=t[e];m(n)&&Zn(o,n)}else if(m(e))Zn(o,e.bind(n));else if(v(e))if(d(e))e.forEach((e=>oo(e,t,n,i)));else{const i=m(e.handler)?e.handler.bind(n):t[e.handler];m(i)&&Zn(o,i,e)}}function so(e){const t=e.type,{mixins:n,extends:i}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,r=s.get(t);let l;return r?l=r:o.length||n||i?(l={},o.length&&o.forEach((e=>ao(l,e,a,!0))),ao(l,t,a)):l=t,v(t)&&s.set(t,l),l}function ao(e,t,n,i=!1){const{mixins:o,extends:s}=t;s&&ao(e,s,n,!0),o&&o.forEach((t=>ao(e,t,n,!0)));for(const a in t)if(i&&"expose"===a);else{const i=ro[a]||n&&n[a];e[a]=i?i(e[a],t[a]):t[a]}return e}const ro={data:lo,props:po,emits:po,methods:ho,computed:ho,beforeCreate:uo,created:uo,beforeMount:uo,mounted:uo,beforeUpdate:uo,updated:uo,beforeDestroy:uo,beforeUnmount:uo,destroyed:uo,unmounted:uo,activated:uo,deactivated:uo,errorCaptured:uo,serverPrefetch:uo,components:ho,directives:ho,watch:function(e,t){if(!e)return t;if(!t)return e;const n=r(Object.create(null),e);for(const i in t)n[i]=uo(e[i],t[i]);return n},provide:lo,inject:function(e,t){return ho(co(e),co(t))}};function lo(e,t){return t?e?function(){return r(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function co(e){if(d(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function uo(e,t){return e?[...new Set([].concat(e,t))]:t}function ho(e,t){return e?r(Object.create(null),e,t):t}function po(e,t){return e?d(e)&&d(t)?[...new Set([...e,...t])]:r(Object.create(null),eo(e),eo(null!=t?t:{})):t}function fo(){return{app:null,config:{isNativeTag:o,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let mo=0;function go(e,t){return function(n,i=null){m(n)||(n=r({},n)),null==i||v(i)||(i=null);const o=fo(),s=new WeakSet;let a=!1;const l=o.app={_uid:mo++,_component:n,_props:i,_container:null,_context:o,_instance:null,version:Ps,get config(){return o.config},set config(e){},use:(e,...t)=>(s.has(e)||(e&&m(e.install)?(s.add(e),e.install(l,...t)):m(e)&&(s.add(e),e(l,...t))),l),mixin:e=>(o.mixins.includes(e)||o.mixins.push(e),l),component:(e,t)=>t?(o.components[e]=t,l):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,l):o.directives[e],mount(s,r,c){if(!a){const u=is(n,i);return u.appContext=o,!0===c?c="svg":!1===c&&(c=void 0),r&&t?t(u,s):e(u,s,c),a=!0,l._container=s,s.__vue_app__=l,l._instance=u.component,Ts(u.component)||u.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,l),runWithContext(e){const t=yo;yo=l;try{return e()}finally{yo=t}}};return l}}let yo=null;function vo(e,t){if(fs){let n=fs.provides;const i=fs.parent&&fs.parent.provides;i===n&&(n=fs.provides=Object.create(i)),n[e]=t,"app"===fs.type.mpType&&fs.appContext.app.provide(e,t)}else;}function _o(e,t,n=!1){const i=fs||$n;if(i||yo){const o=i?null==i.parent?i.vnode.appContext&&i.vnode.appContext.provides:i.parent.provides:yo._context.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&m(t)?t.call(i&&i.proxy):t}}function bo(e,n,i,o){const[s,a]=e.propsOptions;let r,l=!1;if(n)for(let t in n){if(T(t))continue;const c=n[t];let d;s&&u(s,d=E(t))?a&&a.includes(d)?(r||(r={}))[d]=c:i[d]=c:Rn(e.emitsOptions,t)||t in o&&c===o[t]||(o[t]=c,l=!0)}if(a){const n=Gt(i),o=r||t;for(let t=0;t<a.length;t++){const r=a[t];i[r]=wo(s,n,r,o[r],e,!u(o,r))}}return l}function wo(e,t,n,i,o,s){const a=e[n];if(null!=a){const e=u(a,"default");if(e&&void 0===i){const e=a.default;if(a.type!==Function&&!a.skipFactory&&m(e)){const{propsDefaults:s}=o;if(n in s)i=s[n];else{const a=vs(o);i=s[n]=e.call(null,t),a()}}else i=e}a[0]&&(s&&!e?i=!1:!a[1]||""!==i&&i!==D(n)||(i=!0))}return i}function xo(e,i,o=!1){const s=i.propsCache,a=s.get(e);if(a)return a;const l=e.props,c={},h=[];let p=!1;if(!m(e)){const t=e=>{p=!0;const[t,n]=xo(e,i,!0);r(c,t),n&&h.push(...n)};!o&&i.mixins.length&&i.mixins.forEach(t),e.extends&&t(e.extends),e.mixins&&e.mixins.forEach(t)}if(!l&&!p)return v(e)&&s.set(e,n),n;if(d(l))for(let n=0;n<l.length;n++){const e=E(l[n]);ko(e)&&(c[e]=t)}else if(l)for(const t in l){const e=E(t);if(ko(e)){const n=l[t],i=c[e]=d(n)||m(n)?{type:n}:r({},n);if(i){const t=Co(Boolean,i.type),n=Co(String,i.type);i[0]=t>-1,i[1]=n<0||t<n,(t>-1||u(i,"default"))&&h.push(e)}}}const f=[c,h];return v(e)&&s.set(e,f),f}function ko(e){return"$"!==e[0]&&!T(e)}function To(e){if(null===e)return"null";if("function"==typeof e)return e.name||"";if("object"==typeof e){return e.constructor&&e.constructor.name||""}return""}function So(e,t){return To(e)===To(t)}function Co(e,t){return d(t)?t.findIndex((t=>So(t,e))):m(t)&&So(t,e)?0:-1}const Eo=e=>"_"===e[0]||"$stable"===e,Po=e=>d(e)?e.map(rs):[rs(e)],Do=(e,t,n)=>{if(t._n)return t;const i=Fn(((...e)=>Po(t(...e))),n);return i._c=!1,i},Io=(e,t,n)=>{const i=e._ctx;for(const o in e){if(Eo(o))continue;const n=e[o];if(m(n))t[o]=Do(0,n,i);else if(null!=n){const e=Po(n);t[o]=()=>e}}},Mo=(e,t)=>{const n=Po(t);e.slots.default=()=>n};function Oo(e,n,i,o,s=!1){if(d(e))return void e.forEach(((e,t)=>Oo(e,n&&(d(n)?n[t]:n),i,o,s)));if(vi(o)&&!s)return;const a=4&o.shapeFlag?Ts(o.component)||o.component.proxy:o.el,r=s?null:a,{i:c,r:h}=e,p=n&&n.r,f=c.refs===t?c.refs={}:c.refs,y=c.setupState;if(null!=p&&p!==h&&(g(p)?(f[p]=null,u(y,p)&&(y[p]=null)):on(p)&&(p.value=null)),m(h))hn(h,c,12,[r,f]);else{const t=g(h),n=on(h);if(t||n){const o=()=>{if(e.f){const n=t?u(y,h)?y[h]:f[h]:h.value;s?d(n)&&l(n,a):d(n)?n.includes(a)||n.push(a):t?(f[h]=[a],u(y,h)&&(y[h]=f[h])):(h.value=[a],e.k&&(f[e.k]=h.value))}else t?(f[h]=r,u(y,h)&&(y[h]=r)):n&&(h.value=r,e.k&&(f[e.k]=r))};r?(o.id=-1,Ao(o,i)):o()}}}const Ao=function(e,t){var n;t&&t.pendingBranch?d(e)?t.effects.push(...e):t.effects.push(e):(d(n=e)?_n.push(...n):bn&&bn.includes(n,n.allowRecurse?wn+1:wn)||_n.push(n),Cn())};function Lo(e){return function(e,o){N().__VUE__=!0;const{insert:s,remove:a,patchProp:l,forcePatchProp:c,createElement:d,createText:h,createComment:p,setText:f,setElementText:m,parentNode:g,nextSibling:y,setScopeId:v=i,insertStaticContent:b}=e,w=(e,t,n,i=null,o=null,s=null,a,r=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Qo(e,t)&&(i=te(e),G(e,o,s,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case jo:x(e,t,n,i);break;case Vo:k(e,t,n,i);break;case Wo:null==e&&S(t,n,i,a);break;case Fo:j(e,t,n,i,o,s,a,r,l);break;default:1&d?I(e,t,n,i,o,s,a,r,l):6&d?V(e,t,n,i,o,s,a,r,l):(64&d||128&d)&&c.process(e,t,n,i,o,s,a,r,l,oe)}null!=u&&o&&Oo(u,e&&e.ref,s,t||e,!t)},x=(e,t,n,i)=>{if(null==e)s(t.el=h(t.children),n,i);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},k=(e,t,n,i)=>{null==e?s(t.el=p(t.children||""),n,i):t.el=e.el},S=(e,t,n,i)=>{[e.el,e.anchor]=b(e.children,t,n,i,e.el,e.anchor)},C=({el:e,anchor:t},n,i)=>{let o;for(;e&&e!==t;)o=y(e),s(e,n,i),e=o;s(t,n,i)},P=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=y(e),a(e),e=n;a(t)},I=(e,t,n,i,o,s,a,r,l)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?M(t,n,i,o,s,a,r,l):$(e,t,o,s,a,r,l)},M=(e,t,n,i,o,a,r,c)=>{let u,h;const{props:p,shapeFlag:f,transition:g,dirs:y}=e;if(u=e.el=d(e.type,a,p&&p.is,p),8&f?m(u,e.children):16&f&&R(e.children,u,null,i,o,Ro(e,a),r,c),y&&si(e,null,i,"created"),O(u,e,e.scopeId,r,i),p){for(const t in p)"value"===t||T(t)||l(u,t,null,p[t],a,e.children,i,o,ee);"value"in p&&l(u,"value",null,p.value,a),(h=p.onVnodeBeforeMount)&&ds(h,i,e)}Object.defineProperty(u,"__vueParentComponent",{value:i,enumerable:!1}),y&&si(e,null,i,"beforeMount");const v=function(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}(o,g);v&&g.beforeEnter(u),s(u,t,n),((h=p&&p.onVnodeMounted)||v||y)&&Ao((()=>{h&&ds(h,i,e),v&&g.enter(u),y&&si(e,null,i,"mounted")}),o)},O=(e,t,n,i,o)=>{if(n&&v(e,n),i)for(let s=0;s<i.length;s++)v(e,i[s]);if(o){if(t===o.subTree){const t=o.vnode;O(e,t,t.scopeId,t.slotScopeIds,o.parent)}}},R=(e,t,n,i,o,s,a,r,l=0)=>{for(let c=l;c<e.length;c++){const l=e[c]=r?ls(e[c]):rs(e[c]);w(null,l,t,n,i,o,s,a,r)}},$=(e,n,i,o,s,a,r)=>{const u=n.el=e.el;let{patchFlag:d,dynamicChildren:h,dirs:p}=n;d|=16&e.patchFlag;const f=e.props||t,g=n.props||t;let y;if(i&&$o(i,!1),(y=g.onVnodeBeforeUpdate)&&ds(y,i,n,e),p&&si(n,e,i,"beforeUpdate"),i&&$o(i,!0),h?B(e.dynamicChildren,h,u,i,o,Ro(n,s),a):r||z(e,n,u,null,i,o,Ro(n,s),a,!1),d>0){if(16&d)F(u,n,f,g,i,o,s);else if(2&d&&f.class!==g.class&&l(u,"class",null,g.class,s),4&d&&l(u,"style",f.style,g.style,s),8&d){const t=n.dynamicProps;for(let n=0;n<t.length;n++){const a=t[n],r=f[a],d=g[a];(d!==r||"value"===a||c&&c(u,a))&&l(u,a,r,d,s,e.children,i,o,ee)}}1&d&&e.children!==n.children&&m(u,n.children)}else r||null!=h||F(u,n,f,g,i,o,s);((y=g.onVnodeUpdated)||p)&&Ao((()=>{y&&ds(y,i,n,e),p&&si(n,e,i,"updated")}),o)},B=(e,t,n,i,o,s,a)=>{for(let r=0;r<t.length;r++){const l=e[r],c=t[r],u=l.el&&(l.type===Fo||!Qo(l,c)||70&l.shapeFlag)?g(l.el):n;w(l,c,u,null,i,o,s,a,!0)}},F=(e,n,i,o,s,a,r)=>{if(i!==o){if(i!==t)for(const t in i)T(t)||t in o||l(e,t,i[t],null,r,n.children,s,a,ee);for(const t in o){if(T(t))continue;const u=o[t],d=i[t];(u!==d&&"value"!==t||c&&c(e,t))&&l(e,t,d,u,r,n.children,s,a,ee)}"value"in o&&l(e,"value",i.value,o.value,r)}},j=(e,t,n,i,o,a,r,l,c)=>{const u=t.el=e?e.el:h(""),d=t.anchor=e?e.anchor:h("");let{patchFlag:p,dynamicChildren:f,slotScopeIds:m}=t;m&&(l=l?l.concat(m):m),null==e?(s(u,n,i),s(d,n,i),R(t.children||[],n,d,o,a,r,l,c)):p>0&&64&p&&f&&e.dynamicChildren?(B(e.dynamicChildren,f,n,o,a,r,l),(null!=t.key||o&&t===o.subTree)&&No(e,t,!0)):z(e,t,n,d,o,a,r,l,c)},V=(e,t,n,i,o,s,a,r,l)=>{t.slotScopeIds=r,null==e?512&t.shapeFlag?o.ctx.activate(t,n,i,a,l):W(t,n,i,o,s,a,l):U(e,t,l)},W=(e,n,i,o,s,a,r)=>{const l=e.component=function(e,n,i){const o=e.type,s=(n?n.appContext:e.appContext)||hs,a={uid:ps++,vnode:e,type:o,parent:n,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ne(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:n?n.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:xo(o,s),emitsOptions:Ln(o,s),emit:null,emitted:null,propsDefaults:t,inheritAttrs:o.inheritAttrs,ctx:t,data:t,props:t,attrs:t,slots:t,refs:t,setupState:t,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:i,suspenseId:i?i.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};a.ctx={_:a},a.root=n?n.root:a,a.emit=On.bind(null,a),a.$pageInstance=n&&n.$pageInstance,e.ce&&e.ce(a);return a}(e,o,s);if(wi(e)&&(l.ctx.renderer=oe),function(e,t=!1){t&&ys(t);const{props:n,children:i}=e.vnode,o=bs(e);(function(e,t,n,i=!1){const o={},s={};L(s,Zo,1),e.propsDefaults=Object.create(null),bo(e,t,o,s);for(const a in e.propsOptions[0])a in o||(o[a]=void 0);n?e.props=i?o:Ut(o):e.type.props?e.props=o:e.props=s,e.attrs=s})(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Gt(t),L(t,"_",n)):Io(t,e.slots={})}else e.slots={},t&&Mo(e,t);L(e.slots,Zo,1)})(e,i);const s=o?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Jt(new Proxy(e.ctx,Zi));const{setup:i}=n;if(i){const n=e.setupContext=i.length>1?function(e){const t=t=>{e.exposed=t||{}};return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(it(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}(e):null,o=vs(e);ze();const s=hn(i,e,0,[e.props,n]);if(Ye(),o(),_(s)){if(s.then(_s,_s),t)return s.then((n=>{xs(e,n,t)})).catch((t=>{fn(t,e,0)}));e.asyncDep=s}else xs(e,s,t)}else ks(e,t)}(e,t):void 0;t&&ys(!1)}(l),l.asyncDep){if(s&&s.registerDep(l,H),!e.el){const e=l.subTree=is(Vo);k(null,e,n,i)}}else H(l,e,n,i,s,a,r)},U=(e,t,n)=>{const i=t.component=e.component;if(function(e,t,n){const{props:i,children:o,component:s}=e,{props:a,children:r,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!o&&!r||r&&r.$stable)||i!==a&&(i?!a||Un(i,a,c):!!a);if(1024&l)return!0;if(16&l)return i?Un(i,a,c):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==i[n]&&!Rn(c,n))return!0}}return!1}(e,t,n)){if(i.asyncDep&&!i.asyncResolved)return void q(i,t,n);i.next=t,function(e){const t=yn.indexOf(e);t>vn&&yn.splice(t,1)}(i.update),i.effect.dirty=!0,i.update()}else t.el=e.el,i.vnode=t},H=(e,t,n,o,s,a,r)=>{const l=()=>{if(e.isMounted){let{next:t,bu:n,u:i,parent:o,vnode:c}=e;{const n=Bo(e);if(n)return t&&(t.el=c.el,q(e,t,r)),void n.asyncDep.then((()=>{e.isUnmounted||l()}))}let u,d=t;$o(e,!1),t?(t.el=c.el,q(e,t,r)):t=c,n&&A(n),(u=t.props&&t.props.onVnodeBeforeUpdate)&&ds(u,o,t,c),$o(e,!0);const h=jn(e),p=e.subTree;e.subTree=h,w(p,h,g(p.el),te(p),e,s,a),t.el=h.el,null===d&&function({vnode:e,parent:t},n){for(;t;){const i=t.subTree;if(i.suspense&&i.suspense.activeBranch===e&&(i.el=e.el),i!==e)break;(e=t.vnode).el=n,t=t.parent}}(e,h.el),i&&Ao(i,s),(u=t.props&&t.props.onVnodeUpdated)&&Ao((()=>ds(u,o,t,c)),s)}else{let i;const{el:r,props:l}=t,{bm:c,m:u,parent:d}=e,h=vi(t);if($o(e,!1),c&&A(c),!h&&(i=l&&l.onVnodeBeforeMount)&&ds(i,d,t),$o(e,!0),r&&ae){const n=()=>{e.subTree=jn(e),ae(r,e.subTree,e,s,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=jn(e);w(null,i,n,o,e,s,a),t.el=i.el}if(u&&Ao(u,s),!h&&(i=l&&l.onVnodeMounted)){const e=t;Ao((()=>ds(i,d,e)),s)}(256&t.shapeFlag||d&&vi(d.vnode)&&256&d.vnode.shapeFlag)&&(e.ba&&Ai(e.ba),e.a&&Ao(e.a,s)),e.isMounted=!0,t=n=o=null}},c=e.effect=new Fe(l,i,(()=>Sn(u)),e.scope),u=e.update=()=>{c.dirty&&c.run()};u.id=e.uid,$o(e,!0),u()},q=(e,n,i)=>{n.component=e;const o=e.vnode.props;e.vnode=n,e.next=null,function(e,t,n,i){const{props:o,attrs:s,vnode:{patchFlag:a}}=e,r=Gt(o),[l]=e.propsOptions;let c=!1;if(!(i||a>0)||16&a){let i;bo(e,t,o,s)&&(c=!0);for(const s in r)t&&(u(t,s)||(i=D(s))!==s&&u(t,i))||(l?!n||void 0===n[s]&&void 0===n[i]||(o[s]=wo(l,r,s,void 0,e,!0)):delete o[s]);if(s!==r)for(const e in s)t&&u(t,e)||(delete s[e],c=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let i=0;i<n.length;i++){let a=n[i];if(Rn(e.emitsOptions,a))continue;const d=t[a];if(l)if(u(s,a))d!==s[a]&&(s[a]=d,c=!0);else{const t=E(a);o[t]=wo(l,r,t,d,e,!1)}else d!==s[a]&&(s[a]=d,c=!0)}}c&&ot(e,"set","$attrs")}(e,n.props,o,i),((e,n,i)=>{const{vnode:o,slots:s}=e;let a=!0,l=t;if(32&o.shapeFlag){const e=n._;e?i&&1===e?a=!1:(r(s,n),i||1!==e||delete s._):(a=!n.$stable,Io(n,s)),l=n}else n&&(Mo(e,n),l={default:1});if(a)for(const t in s)Eo(t)||null!=l[t]||delete s[t]})(e,n.children,i),ze(),En(e),Ye()},z=(e,t,n,i,o,s,a,r,l=!1)=>{const c=e&&e.children,u=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:p}=t;if(h>0){if(128&h)return void X(c,d,n,i,o,s,a,r,l);if(256&h)return void Y(c,d,n,i,o,s,a,r,l)}8&p?(16&u&&ee(c,o,s),d!==c&&m(n,d)):16&u?16&p?X(c,d,n,i,o,s,a,r,l):ee(c,o,s,!0):(8&u&&m(n,""),16&p&&R(d,n,i,o,s,a,r,l))},Y=(e,t,i,o,s,a,r,l,c)=>{t=t||n;const u=(e=e||n).length,d=t.length,h=Math.min(u,d);let p;for(p=0;p<h;p++){const n=t[p]=c?ls(t[p]):rs(t[p]);w(e[p],n,i,null,s,a,r,l,c)}u>d?ee(e,s,a,!0,!1,h):R(t,i,o,s,a,r,l,c,h)},X=(e,t,i,o,s,a,r,l,c)=>{let u=0;const d=t.length;let h=e.length-1,p=d-1;for(;u<=h&&u<=p;){const n=e[u],o=t[u]=c?ls(t[u]):rs(t[u]);if(!Qo(n,o))break;w(n,o,i,null,s,a,r,l,c),u++}for(;u<=h&&u<=p;){const n=e[h],o=t[p]=c?ls(t[p]):rs(t[p]);if(!Qo(n,o))break;w(n,o,i,null,s,a,r,l,c),h--,p--}if(u>h){if(u<=p){const e=p+1,n=e<d?t[e].el:o;for(;u<=p;)w(null,t[u]=c?ls(t[u]):rs(t[u]),i,n,s,a,r,l,c),u++}}else if(u>p)for(;u<=h;)G(e[u],s,a,!0),u++;else{const f=u,m=u,g=new Map;for(u=m;u<=p;u++){const e=t[u]=c?ls(t[u]):rs(t[u]);null!=e.key&&g.set(e.key,u)}let y,v=0;const _=p-m+1;let b=!1,x=0;const k=new Array(_);for(u=0;u<_;u++)k[u]=0;for(u=f;u<=h;u++){const n=e[u];if(v>=_){G(n,s,a,!0);continue}let o;if(null!=n.key)o=g.get(n.key);else for(y=m;y<=p;y++)if(0===k[y-m]&&Qo(n,t[y])){o=y;break}void 0===o?G(n,s,a,!0):(k[o-m]=u+1,o>=x?x=o:b=!0,w(n,t[o],i,null,s,a,r,l,c),v++)}const T=b?function(e){const t=e.slice(),n=[0];let i,o,s,a,r;const l=e.length;for(i=0;i<l;i++){const l=e[i];if(0!==l){if(o=n[n.length-1],e[o]<l){t[i]=o,n.push(i);continue}for(s=0,a=n.length-1;s<a;)r=s+a>>1,e[n[r]]<l?s=r+1:a=r;l<e[n[s]]&&(s>0&&(t[i]=n[s-1]),n[s]=i)}}s=n.length,a=n[s-1];for(;s-- >0;)n[s]=a,a=t[a];return n}(k):n;for(y=T.length-1,u=_-1;u>=0;u--){const e=m+u,n=t[e],h=e+1<d?t[e+1].el:o;0===k[u]?w(null,n,i,h,s,a,r,l,c):b&&(y<0||u!==T[y]?K(n,i,h,2):y--)}}},K=(e,t,n,i,o=null)=>{const{el:a,type:r,transition:l,children:c,shapeFlag:u}=e;if(6&u)return void K(e.component.subTree,t,n,i);if(128&u)return void e.suspense.move(t,n,i);if(64&u)return void r.move(e,t,n,oe);if(r===Fo){s(a,t,n);for(let e=0;e<c.length;e++)K(c[e],t,n,i);return void s(e.anchor,t,n)}if(r===Wo)return void C(e,t,n);if(2!==i&&1&u&&l)if(0===i)l.beforeEnter(a),s(a,t,n),Ao((()=>l.enter(a)),o);else{const{leave:e,delayLeave:i,afterLeave:o}=l,r=()=>s(a,t,n),c=()=>{e(a,(()=>{r(),o&&o()}))};i?i(a,r,c):c()}else s(a,t,n)},G=(e,t,n,i=!1,o=!1)=>{const{type:s,props:a,ref:r,children:l,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:h}=e;if(null!=r&&Oo(r,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const p=1&u&&h,f=!vi(e);let m;if(f&&(m=a&&a.onVnodeBeforeUnmount)&&ds(m,t,e),6&u)Z(e.component,n,i);else{if(128&u)return void e.suspense.unmount(n,i);p&&si(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,oe,i):c&&(s!==Fo||d>0&&64&d)?ee(c,t,n,!1,!0):(s===Fo&&384&d||!o&&16&u)&&ee(l,t,n),i&&J(e)}(f&&(m=a&&a.onVnodeUnmounted)||p)&&Ao((()=>{m&&ds(m,t,e),p&&si(e,null,t,"unmounted")}),n)},J=e=>{const{type:t,el:n,anchor:i,transition:o}=e;if(t===Fo)return void Q(n,i);if(t===Wo)return void P(e);const s=()=>{a(n),o&&!o.persisted&&o.afterLeave&&o.afterLeave()};if(1&e.shapeFlag&&o&&!o.persisted){const{leave:t,delayLeave:i}=o,a=()=>t(n,s);i?i(e.el,s,a):a()}else s()},Q=(e,t)=>{let n;for(;e!==t;)n=y(e),a(e),e=n;a(t)},Z=(e,t,n)=>{const{bum:i,scope:o,update:s,subTree:a,um:r}=e;i&&A(i),o.stop(),s&&(s.active=!1,G(a,e,t,n)),r&&Ao(r,t),Ao((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,i=!1,o=!1,s=0)=>{for(let a=s;a<e.length;a++)G(e[a],t,n,i,o)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():y(e.anchor||e.el);let ne=!1;const ie=(e,t,n)=>{null==e?t._vnode&&G(t._vnode,null,null,!0):w(t._vnode||null,e,t,null,null,null,n),ne||(ne=!0,En(),Pn(),ne=!1),t._vnode=e},oe={p:w,um:G,m:K,r:J,mt:W,mc:R,pc:z,pbc:B,n:te,o:e};let se,ae;o&&([se,ae]=o(oe));return{render:ie,hydrate:se,createApp:go(ie,se)}}(e)}function Ro({type:e,props:t},n){return"svg"===n&&"foreignObject"===e||"mathml"===n&&"annotation-xml"===e&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function $o({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function No(e,t,n=!1){const i=e.children,o=t.children;if(d(i)&&d(o))for(let s=0;s<i.length;s++){const e=i[s];let t=o[s];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=o[s]=ls(o[s]),t.el=e.el),n||No(e,t)),t.type===jo&&(t.el=e.el)}}function Bo(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bo(t)}const Fo=Symbol.for("v-fgt"),jo=Symbol.for("v-txt"),Vo=Symbol.for("v-cmt"),Wo=Symbol.for("v-stc"),Uo=[];let Ho=null;function qo(e=!1){Uo.push(Ho=e?null:[])}let zo=1;function Yo(e){zo+=e}function Xo(e){return e.dynamicChildren=zo>0?Ho||n:null,Uo.pop(),Ho=Uo[Uo.length-1]||null,zo>0&&Ho&&Ho.push(e),e}function Ko(e,t,n,i,o,s){return Xo(ns(e,t,n,i,o,s,!0))}function Go(e,t,n,i,o){return Xo(is(e,t,n,i,o,!0))}function Jo(e){return!!e&&!0===e.__v_isVNode}function Qo(e,t){return e.type===t.type&&e.key===t.key}const Zo="__vInternal",es=({key:e})=>null!=e?e:null,ts=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?g(e)||on(e)||m(e)?{i:$n,r:e,k:t,f:!!n}:e:null);function ns(e,t=null,n=null,i=0,o=null,s=(e===Fo?0:1),a=!1,r=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&es(t),ref:t&&ts(t),scopeId:Nn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:i,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:$n};return r?(cs(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=g(n)?8:16),zo>0&&!a&&Ho&&(l.patchFlag>0||6&s)&&32!==l.patchFlag&&Ho.push(l),l}const is=function(e,t=null,n=null,i=0,o=null,s=!1){e&&e!==qn||(e=Vo);if(Jo(e)){const i=os(e,t,!0);return n&&cs(i,n),zo>0&&!s&&Ho&&(6&i.shapeFlag?Ho[Ho.indexOf(e)]=i:Ho.push(i)),i.patchFlag|=-2,i}a=e,m(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=function(e){return e?Kt(e)||Zo in e?r({},e):e:null}(t);let{class:e,style:n}=t;e&&!g(e)&&(t.class=le(e)),v(n)&&(Kt(n)&&!d(n)&&(n=r({},n)),t.style=re(n))}const l=g(e)?1:Kn(e)?128:(e=>e.__isTeleport)(e)?64:v(e)?4:m(e)?2:0;return ns(e,t,n,i,o,l,s,!0)};function os(e,t,n=!1){const{props:i,ref:o,patchFlag:s,children:a}=e,r=t?us(i||{},t):i;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:r,key:r&&es(r),ref:t&&t.ref?n&&o?d(o)?o.concat(ts(t)):[o,ts(t)]:ts(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fo?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&os(e.ssContent),ssFallback:e.ssFallback&&os(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function ss(e=" ",t=0){return is(jo,null,e,t)}function as(e="",t=!1){return t?(qo(),Go(Vo,null,e)):is(Vo,null,e)}function rs(e){return null==e||"boolean"==typeof e?is(Vo):d(e)?is(Fo,null,e.slice()):"object"==typeof e?ls(e):is(jo,null,String(e))}function ls(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:os(e)}function cs(e,t){let n=0;const{shapeFlag:i}=e;if(null==t)t=null;else if(d(t))n=16;else if("object"==typeof t){if(65&i){const n=t.default;return void(n&&(n._c&&(n._d=!1),cs(e,n()),n._c&&(n._d=!0)))}{n=32;const i=t._;i||Zo in t?3===i&&$n&&(1===$n.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=$n}}else m(t)?(t={default:t,_ctx:$n},n=32):(t=String(t),64&i?(n=16,t=[ss(t)]):n=8);e.children=t,e.shapeFlag|=n}function us(...e){const t={};for(let n=0;n<e.length;n++){const i=e[n];for(const e in i)if("class"===e)t.class!==i.class&&(t.class=le([t.class,i.class]));else if("style"===e)t.style=re([t.style,i.style]);else if(s(e)){const n=t[e],o=i[e];!o||n===o||d(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=i[e])}return t}function ds(e,t,n,i=null){pn(e,t,7,[n,i])}const hs=fo();let ps=0;let fs=null;const ms=()=>fs||$n;let gs,ys;{const e=N(),t=(t,n)=>{let i;return(i=e[t])||(i=e[t]=[]),i.push(n),e=>{i.length>1?i.forEach((t=>t(e))):i[0](e)}};gs=t("__VUE_INSTANCE_SETTERS__",(e=>fs=e)),ys=t("__VUE_SSR_SETTERS__",(e=>ws=e))}const vs=e=>{const t=fs;return gs(e),e.scope.on(),()=>{e.scope.off(),gs(t)}},_s=()=>{fs&&fs.scope.off(),gs(null)};function bs(e){return 4&e.vnode.shapeFlag}let ws=!1;function xs(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:v(t)&&(e.setupState=dn(t)),ks(e,n)}function ks(e,t,n){const o=e.type;e.render||(e.render=o.render||i);{const t=vs(e);ze();try{no(e)}finally{Ye(),t()}}}function Ts(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(dn(Jt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ji?Ji[n](e):void 0,has:(e,t)=>t in e||t in Ji}))}function Ss(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const Cs=(e,t)=>{const n=function(e,t,n=!1){let o,s;const a=m(e);return a?(o=e,s=i):(o=e.get,s=e.set),new en(o,s,a||!s,n)}(e,0,ws);return n};function Es(e,t,n){const i=arguments.length;return 2===i?v(t)&&!d(t)?Jo(t)?is(e,null,[t]):is(e,t):is(e,null,t):(i>3?n=Array.prototype.slice.call(arguments,2):3===i&&Jo(n)&&(n=[n]),is(e,t,n))}const Ps="3.4.21",Ds="undefined"!=typeof document?document:null,Is=Ds&&Ds.createElement("template"),Ms={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,i)=>{const o="svg"===t?Ds.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?Ds.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?Ds.createElement(e,{is:n}):Ds.createElement(e);return"select"===e&&i&&null!=i.multiple&&o.setAttribute("multiple",i.multiple),o},createText:e=>Ds.createTextNode(e),createComment:e=>Ds.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ds.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,i,o,s){const a=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==s&&(o=o.nextSibling););else{Is.innerHTML="svg"===i?`<svg>${e}</svg>`:"mathml"===i?`<math>${e}</math>`:e;const o=Is.content;if("svg"===i||"mathml"===i){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Os="transition",As=Symbol("_vtc"),Ls=(e,{slots:t})=>Es(ui,function(e){const t={};for(const r in e)r in Rs||(t[r]=e[r]);if(!1===e.css)return t;const{name:n="v",type:i,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:u=a,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,m=function(e){if(null==e)return null;if(v(e))return[Bs(e.enter),Bs(e.leave)];{const t=Bs(e);return[t,t]}}(o),g=m&&m[0],y=m&&m[1],{onBeforeEnter:_,onEnter:b,onEnterCancelled:w,onLeave:x,onLeaveCancelled:k,onBeforeAppear:T=_,onAppear:S=b,onAppearCancelled:C=w}=t,E=(e,t,n)=>{js(e,t?d:l),js(e,t?u:a),n&&n()},P=(e,t)=>{e._isLeaving=!1,js(e,h),js(e,f),js(e,p),t&&t()},D=e=>(t,n)=>{const o=e?S:b,a=()=>E(t,e,n);$s(o,[t,a]),Vs((()=>{js(t,e?c:s),Fs(t,e?d:l),Ns(o)||Us(t,i,g,a)}))};return r(t,{onBeforeEnter(e){$s(_,[e]),Fs(e,s),Fs(e,a)},onBeforeAppear(e){$s(T,[e]),Fs(e,c),Fs(e,u)},onEnter:D(!1),onAppear:D(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>P(e,t);Fs(e,h),document.body.offsetHeight,Fs(e,p),Vs((()=>{e._isLeaving&&(js(e,h),Fs(e,f),Ns(x)||Us(e,i,y,n))})),$s(x,[e,n])},onEnterCancelled(e){E(e,!1),$s(w,[e])},onAppearCancelled(e){E(e,!0),$s(C,[e])},onLeaveCancelled(e){P(e),$s(k,[e])}})}(e),t);Ls.displayName="Transition";const Rs={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Ls.props=r({},ci,Rs);const $s=(e,t=[])=>{d(e)?e.forEach((e=>e(...t))):e&&e(...t)},Ns=e=>!!e&&(d(e)?e.some((e=>e.length>1)):e.length>1);function Bs(e){const t=(e=>{const t=g(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Fs(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[As]||(e[As]=new Set)).add(t)}function js(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[As];n&&(n.delete(t),n.size||(e[As]=void 0))}function Vs(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ws=0;function Us(e,t,n,i){const o=e._endId=++Ws,s=()=>{o===e._endId&&i()};if(n)return setTimeout(s,n);const{type:a,timeout:r,propCount:l}=function(e,t){const n=window.getComputedStyle(e),i=e=>(n[e]||"").split(", "),o=i("transitionDelay"),s=i("transitionDuration"),a=Hs(o,s),r=i("animationDelay"),l=i("animationDuration"),c=Hs(r,l);let u=null,d=0,h=0;t===Os?a>0&&(u=Os,d=a,h=s.length):"animation"===t?c>0&&(u="animation",d=c,h=l.length):(d=Math.max(a,c),u=d>0?a>c?Os:"animation":null,h=u?u===Os?s.length:l.length:0);const p=u===Os&&/\b(transform|all)(,|$)/.test(i("transitionProperty").toString());return{type:u,timeout:d,propCount:h,hasTransform:p}}(e,t);if(!a)return i();const c=a+"end";let u=0;const d=()=>{e.removeEventListener(c,h),s()},h=t=>{t.target===e&&++u>=l&&d()};setTimeout((()=>{u<l&&d()}),r+1),e.addEventListener(c,h)}function Hs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>qs(t)+qs(e[n]))))}function qs(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}const zs=Symbol("_vod"),Ys=Symbol("_vsh"),Xs={beforeMount(e,{value:t},{transition:n}){e[zs]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):Ks(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:i}){!t!=!n&&(i?t?(i.beforeEnter(e),Ks(e,!0),i.enter(e)):i.leave(e,(()=>{Ks(e,!1)})):Ks(e,t))},beforeUnmount(e,{value:t}){Ks(e,t)}};function Ks(e,t){e.style.display=t?e[zs]:"none",e[Ys]=!t}const Gs=Symbol(""),Js=/(^|;)\s*display\s*:/;const Qs=/\s*!important$/;function Zs(e,t,n){if(d(n))n.forEach((n=>Zs(e,t,n)));else if(null==n&&(n=""),n=ca(n),t.startsWith("--"))e.setProperty(t,n);else{const i=function(e,t){const n=ta[t];if(n)return n;let i=E(t);if("filter"!==i&&i in e)return ta[t]=i;i=I(i);for(let o=0;o<ea.length;o++){const n=ea[o]+i;if(n in e)return ta[t]=n}return t}(e,t);Qs.test(n)?e.setProperty(D(i),n.replace(Qs,""),"important"):e[i]=n}}const ea=["Webkit","Moz","ms"],ta={};const{unit:na,unitRatio:ia,unitPrecision:oa}={unit:"rem",unitRatio:10/320,unitPrecision:5},sa=(aa=na,ra=ia,la=oa,e=>e.replace(ve,((e,t)=>{if(!t)return e;if(1===ra)return`${t}${aa}`;const n=function(e,t){const n=Math.pow(10,t+1),i=Math.floor(e*n);return 10*Math.round(i/10)/n}(parseFloat(t)*ra,la);return 0===n?"0":`${n}${aa}`})));var aa,ra,la;const ca=e=>g(e)?sa(e):e,ua="http://www.w3.org/1999/xlink";function da(e,t,n,i){e.addEventListener(t,n,i)}const ha=Symbol("_vei");function pa(e,t,n,i,o=null){const s=e[ha]||(e[ha]={}),a=s[t];if(i&&a)a.value=i;else{const[n,r]=function(e){let t;if(fa.test(e)){let n;for(t={};n=e.match(fa);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):D(e.slice(2)),t]}(t);if(i){const a=s[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const i=t&&t.proxy,o=i&&i.$nne,{value:s}=n;if(o&&d(s)){const n=ya(e,s);for(let i=0;i<n.length;i++){const s=n[i];pn(s,t,5,s.__wwe?[e]:o(e))}}else pn(ya(e,n.value),t,5,o&&!s.__wwe?o(e,s,t):[e])};return n.value=e,n.attached=(()=>ma||(ga.then((()=>ma=0)),ma=Date.now()))(),n}(i,o);da(e,n,a,r)}else a&&(!function(e,t,n,i){e.removeEventListener(t,n,i)}(e,n,a,r),s[t]=void 0)}}const fa=/(?:Once|Passive|Capture)$/;let ma=0;const ga=Promise.resolve();function ya(e,t){if(d(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t}))}return t}const va=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123;const _a=e=>{const t=e.props["onUpdate:modelValue"]||!1;return d(t)?e=>A(t,e):t};function ba(e){e.target.composing=!0}function wa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const xa=Symbol("_assign"),ka={created(e,{modifiers:{lazy:t,trim:n,number:i}},o){e[xa]=_a(o);const s=i||o.props&&"number"===o.props.type;da(e,t?"change":"input",(t=>{if(t.target.composing)return;let i=e.value;n&&(i=i.trim()),s&&(i=R(i)),e[xa](i)})),n&&da(e,"change",(()=>{e.value=e.value.trim()})),t||(da(e,"compositionstart",ba),da(e,"compositionend",wa),da(e,"change",wa))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:i,number:o}},s){if(e[xa]=_a(s),e.composing)return;const a=null==t?"":t;if((o||"number"===e.type?R(e.value):e.value)!==a){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(i&&e.value.trim()===a)return}e.value=a}}},Ta={deep:!0,created(e,t,n){e[xa]=_a(n),da(e,"change",(()=>{const t=e._modelValue,n=Da(e),i=e.checked,o=e[xa];if(d(t)){const e=Y(t,n),s=-1!==e;if(i&&!s)o(t.concat(n));else if(!i&&s){const n=[...t];n.splice(e,1),o(n)}}else if(p(t)){const e=new Set(t);i?e.add(n):e.delete(n),o(e)}else o(Ia(e,i))}))},mounted:Sa,beforeUpdate(e,t,n){e[xa]=_a(n),Sa(e,t,n)}};function Sa(e,{value:t,oldValue:n},i){e._modelValue=t,d(t)?e.checked=Y(t,i.props.value)>-1:p(t)?e.checked=t.has(i.props.value):t!==n&&(e.checked=z(t,Ia(e,!0)))}const Ca={created(e,{value:t},n){e.checked=z(t,n.props.value),e[xa]=_a(n),da(e,"change",(()=>{e[xa](Da(e))}))},beforeUpdate(e,{value:t,oldValue:n},i){e[xa]=_a(i),t!==n&&(e.checked=z(t,i.props.value))}},Ea={deep:!0,created(e,{value:t,modifiers:{number:n}},i){const o=p(t);da(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?R(Da(e)):Da(e)));e[xa](e.multiple?o?new Set(t):t:t[0]),e._assigning=!0,Tn((()=>{e._assigning=!1}))})),e[xa]=_a(i)},mounted(e,{value:t,modifiers:{number:n}}){Pa(e,t,n)},beforeUpdate(e,t,n){e[xa]=_a(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Pa(e,t,n)}};function Pa(e,t,n){const i=e.multiple,o=d(t);if(!i||o||p(t)){for(let s=0,a=e.options.length;s<a;s++){const a=e.options[s],r=Da(a);if(i)if(o){const e=typeof r;a.selected="string"===e||"number"===e?t.includes(n?R(r):r):Y(t,r)>-1}else a.selected=t.has(r);else if(z(Da(a),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}i||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Da(e){return"_value"in e?e._value:e.value}function Ia(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ma={created(e,t,n){Oa(e,t,n,null,"created")},mounted(e,t,n){Oa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,i){Oa(e,t,n,i,"beforeUpdate")},updated(e,t,n,i){Oa(e,t,n,i,"updated")}};function Oa(e,t,n,i,o){const s=function(e,t){switch(e){case"SELECT":return Ea;case"TEXTAREA":return ka;default:switch(t){case"checkbox":return Ta;case"radio":return Ca;default:return ka}}}(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,i)}const Aa=["ctrl","shift","alt","meta"],La={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>Aa.some((n=>e[`${n}Key`]&&!t.includes(n)))},Ra=(e,t)=>{const n=e._withMods||(e._withMods={}),i=t.join(".");return n[i]||(n[i]=(n,...i)=>{for(let e=0;e<t.length;e++){const i=La[t[e]];if(i&&i(n,t))return}return e(n,...i)})},$a=r({patchProp:(e,t,n,i,o,r,l,c,u)=>{if(0===t.indexOf("change:"))return function(e,t,n,i=null){if(!n||!i)return;const o=t.replace("change:",""),{attrs:s}=i,a=s[o],r=(e.__wxsProps||(e.__wxsProps={}))[o];if(r===a)return;e.__wxsProps[o]=a;const l=i.proxy;Tn((()=>{n(a,r,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,i,l);const d="svg"===o;"class"===t?function(e,t,n){const{__wxsAddClass:i,__wxsRemoveClass:o}=e;o&&o.length&&(t=(t||"").split(/\s+/).filter((e=>-1===o.indexOf(e))).join(" "),o.length=0),i&&i.length&&(t=(t||"")+" "+i.join(" "));const s=e[As];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,i,d):"style"===t?function(e,t,n){const i=e.style,o=g(n);let s=!1;if(n&&!o){if(t)if(g(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Zs(i,t,"")}else for(const e in t)null==n[e]&&Zs(i,e,"");for(const e in n)"display"===e&&(s=!0),Zs(i,e,n[e])}else if(o){if(t!==n){const e=i[Gs];e&&(n+=";"+e),i.cssText=n,s=Js.test(n)}}else t&&e.removeAttribute("style");zs in e&&(e[zs]=s?i.display:"",e[Ys]&&(i.display="none"));const{__wxsStyle:a}=e;if(a)for(const r in a)Zs(i,r,a[r])}(e,n,i):s(t)?a(t)||pa(e,t,0,i,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,i){if(i)return"innerHTML"===t||"textContent"===t||!!(t in e&&va(t)&&m(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if("width"===t||"height"===t){const t=e.tagName;if("IMG"===t||"VIDEO"===t||"CANVAS"===t||"SOURCE"===t)return!1}if(va(t)&&g(n))return!1;return t in e}(e,t,i,d))?function(e,t,n,i,o,s,a){if("innerHTML"===t||"textContent"===t)return i&&a(i,o,s),void(e[t]=null==n?"":n);const r=e.tagName;if("value"===t&&"PROGRESS"!==r&&!r.includes("-")){const i=null==n?"":n;return("OPTION"===r?e.getAttribute("value")||"":e.value)===i&&"_value"in e||(e.value=i),null==n&&e.removeAttribute(t),void(e._value=n)}let l=!1;if(""===n||null==n){const i=typeof e[t];"boolean"===i?n=q(n):null==n&&"string"===i?(n="",l=!0):"number"===i&&(n=0,l=!0)}try{e[t]=n}catch(Mw){}l&&e.removeAttribute(t)}(e,t,i,r,l,c,u):("true-value"===t?e._trueValue=i:"false-value"===t&&(e._falseValue=i),function(e,t,n,i,o){if(i&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(ua,t.slice(6,t.length)):e.setAttributeNS(ua,t,n);else{const i=H(t);null==n||i&&!q(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}(e,t,i,d))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},Ms);let Na;const Ba=(...e)=>{const t=(Na||(Na=Lo($a))).createApp(...e),{mount:n}=t;return t.mount=e=>{const i=function(e){if(g(e)){return document.querySelector(e)}return e}(e);if(!i)return;const o=t._component;m(o)||o.render||o.template||(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,function(e){if(e instanceof SVGElement)return"svg";if("function"==typeof MathMLElement&&e instanceof MathMLElement)return"mathml"}(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t};const Fa=["{","}"];const ja=/^(?:\d)+/,Va=/^(?:\w)+/;const Wa=Object.prototype.hasOwnProperty,Ua=(e,t)=>Wa.call(e,t),Ha=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Fa){if(!t)return[e];let i=this._caches[e];return i||(i=function(e,[t,n]){const i=[];let o=0,s="";for(;o<e.length;){let a=e[o++];if(a===t){s&&i.push({type:"text",value:s}),s="";let t="";for(a=e[o++];void 0!==a&&a!==n;)t+=a,a=e[o++];const r=a===n,l=ja.test(t)?"list":r&&Va.test(t)?"named":"unknown";i.push({value:t,type:l})}else s+=a}return s&&i.push({type:"text",value:s}),i}(e,n),this._caches[e]=i),function(e,t){const n=[];let i=0;const o=Array.isArray(t)?"list":(s=t,null!==s&&"object"==typeof s?"named":"unknown");var s;if("unknown"===o)return n;for(;i<e.length;){const s=e[i];switch(s.type){case"text":n.push(s.value);break;case"list":n.push(t[parseInt(s.value,10)]);break;case"named":"named"===o&&n.push(t[s.value])}i++}return n}(i,t)}};function qa(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-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 i=["en","fr","es"];t&&Object.keys(t).length>0&&(i=Object.keys(t));const o=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,i);return o||void 0}class za{constructor({locale:e,fallbackLocale:t,messages:n,watcher:i,formater:o}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=o||Ha,this.messages=n||{},this.setLocale(e||"en"),i&&this.watchLocale(i)}setLocale(e){const t=this.locale;this.locale=qa(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 i=this.messages[e];i?n?Object.assign(i,t):Object.keys(t).forEach((e=>{Ua(i,e)||(i[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let i=this.message;return"string"==typeof t?(t=qa(t,this.messages))&&(i=this.messages[t]):n=t,Ua(i,e)?this.formater.interpolate(i[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Ya(e,t={},n,i){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&Dh?Dh():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const o=new za({locale:e,fallbackLocale:n,messages:t,watcher:i});let s=(e,t)=>{{let e=!1;s=function(t,n){const i=bg().$vm;return i&&(i.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(i,o))),o.t(t,n)}}return s(e,t)};return{i18n:o,f:(e,t,n)=>o.f(e,t,n),t:(e,t)=>s(e,t),add:(e,t,n=!0)=>o.add(e,t,n),watch:e=>o.watchLocale(e),getLocale:()=>o.getLocale(),setLocale:e=>o.setLocale(e)}}
- /*!
- * vue-router v4.3.0
- * (c) 2024 Eduardo San Martin Morote
- * @license MIT
- */const Xa="undefined"!=typeof document;const Ka=Object.assign;function Ga(e,t){const n={};for(const i in t){const o=t[i];n[i]=Qa(o)?o.map(e):e(o)}return n}const Ja=()=>{},Qa=Array.isArray,Za=/#/g,er=/&/g,tr=/\//g,nr=/=/g,ir=/\?/g,or=/\+/g,sr=/%5B/g,ar=/%5D/g,rr=/%5E/g,lr=/%60/g,cr=/%7B/g,ur=/%7C/g,dr=/%7D/g,hr=/%20/g;function pr(e){return encodeURI(""+e).replace(ur,"|").replace(sr,"[").replace(ar,"]")}function fr(e){return pr(e).replace(or,"%2B").replace(hr,"+").replace(Za,"%23").replace(er,"%26").replace(lr,"`").replace(cr,"{").replace(dr,"}").replace(rr,"^")}function mr(e){return null==e?"":function(e){return pr(e).replace(Za,"%23").replace(ir,"%3F")}(e).replace(tr,"%2F")}function gr(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const yr=/\/$/;function vr(e,t,n="/"){let i,o={},s="",a="";const r=t.indexOf("#");let l=t.indexOf("?");return r<l&&r>=0&&(l=-1),l>-1&&(i=t.slice(0,l),s=t.slice(l+1,r>-1?r:t.length),o=e(s)),r>-1&&(i=i||t.slice(0,r),a=t.slice(r,t.length)),i=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),i=e.split("/"),o=i[i.length-1];".."!==o&&"."!==o||i.push("");let s,a,r=n.length-1;for(s=0;s<i.length;s++)if(a=i[s],"."!==a){if(".."!==a)break;r>1&&r--}return n.slice(0,r).join("/")+"/"+i.slice(s).join("/")}(null!=i?i:t,n),{fullPath:i+(s&&"?")+s+a,path:i,query:o,hash:gr(a)}}function _r(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function br(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function wr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!xr(e[n],t[n]))return!1;return!0}function xr(e,t){return Qa(e)?kr(e,t):Qa(t)?kr(t,e):e===t}function kr(e,t){return Qa(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Tr,Sr,Cr,Er;function Pr(e){if(!e)if(Xa){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(yr,"")}(Sr=Tr||(Tr={})).pop="pop",Sr.push="push",(Er=Cr||(Cr={})).back="back",Er.forward="forward",Er.unknown="";const Dr=/^[^#]+#/;function Ir(e,t){return e.replace(Dr,"#")+t}const Mr=()=>({left:window.scrollX,top:window.scrollY});function Or(e){let t;if("el"in e){const n=e.el,i="string"==typeof n&&n.startsWith("#"),o="string"==typeof n?i?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),i=e.getBoundingClientRect();return{behavior:t.behavior,left:i.left-n.left-(t.left||0),top:i.top-n.top-(t.top||0)}}(o,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 Ar(e,t){return(history.state?history.state.position-t:-1)+e}const Lr=new Map;function Rr(e,t){const{pathname:n,search:i,hash:o}=t,s=e.indexOf("#");if(s>-1){let t=o.includes(e.slice(s))?e.slice(s).length:1,n=o.slice(t);return"/"!==n[0]&&(n="/"+n),_r(n,"")}return _r(n,e)+i+o}function $r(e,t,n,i=!1,o=!1){return{back:e,current:t,forward:n,replaced:i,position:window.history.length,scroll:o?Mr():null}}function Nr(e){const{history:t,location:n}=window,i={value:Rr(e,n)},o={value:t.state};function s(i,s,a){const r=e.indexOf("#"),l=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+i:location.protocol+"//"+location.host+e+i;try{t[a?"replaceState":"pushState"](s,"",l),o.value=s}catch(c){console.error(c),n[a?"replace":"assign"](l)}}return o.value||s(i.value,{back:null,current:i.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:i,state:o,push:function(e,n){const a=Ka({},o.value,t.state,{forward:e,scroll:Mr()});s(a.current,a,!0),s(e,Ka({},$r(i.value,e,null),{position:a.position+1},n),!1),i.value=e},replace:function(e,n){s(e,Ka({},t.state,$r(o.value.back,e,o.value.forward,!0),n,{position:o.value.position}),!0),i.value=e}}}function Br(e){const t=Nr(e=Pr(e)),n=function(e,t,n,i){let o=[],s=[],a=null;const r=({state:s})=>{const r=Rr(e,location),l=n.value,c=t.value;let u=0;if(s){if(n.value=r,t.value=s,a&&a===l)return void(a=null);u=c?s.position-c.position:0}else i(r);o.forEach((e=>{e(n.value,l,{delta:u,type:Tr.pop,direction:u?u>0?Cr.forward:Cr.back:Cr.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Ka({},e.state,{scroll:Mr()}),"")}return window.addEventListener("popstate",r),window.addEventListener("beforeunload",l,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){o.push(e);const t=()=>{const t=o.indexOf(e);t>-1&&o.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",r),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const i=Ka({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Ir.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function Fr(e){return"string"==typeof e||"symbol"==typeof e}const jr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Vr=Symbol("");var Wr,Ur;function Hr(e,t){return Ka(new Error,{type:e,[Vr]:!0},t)}function qr(e,t){return e instanceof Error&&Vr in e&&(null==t||!!(e.type&t))}(Ur=Wr||(Wr={}))[Ur.aborted=4]="aborted",Ur[Ur.cancelled=8]="cancelled",Ur[Ur.duplicated=16]="duplicated";const zr={sensitive:!1,strict:!1,start:!0,end:!0},Yr=/[.+*?^${}()[\]/\\]/g;function Xr(e,t){let n=0;for(;n<e.length&&n<t.length;){const i=t[n]-e[n];if(i)return i;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function Kr(e,t){let n=0;const i=e.score,o=t.score;for(;n<i.length&&n<o.length;){const e=Xr(i[n],o[n]);if(e)return e;n++}if(1===Math.abs(o.length-i.length)){if(Gr(i))return 1;if(Gr(o))return-1}return o.length-i.length}function Gr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Jr={type:0,value:""},Qr=/[a-zA-Z0-9_]/;function Zr(e,t,n){const i=function(e,t){const n=Ka({},zr,t),i=[];let o=n.start?"^":"";const s=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(o+="/");for(let t=0;t<l.length;t++){const i=l[t];let a=40+(n.sensitive?.25:0);if(0===i.type)t||(o+="/"),o+=i.value.replace(Yr,"\\$&"),a+=40;else if(1===i.type){const{value:e,repeatable:n,optional:c,regexp:u}=i;s.push({name:e,repeatable:n,optional:c});const d=u||"[^/]+?";if("[^/]+?"!==d){a+=10;try{new RegExp(`(${d})`)}catch(r){throw new Error(`Invalid custom RegExp for param "${e}" (${d}): `+r.message)}}let h=n?`((?:${d})(?:/(?:${d}))*)`:`(${d})`;t||(h=c&&l.length<2?`(?:/${h})`:"/"+h),c&&(h+="?"),o+=h,a+=20,c&&(a+=-8),n&&(a+=-20),".*"===d&&(a+=-50)}e.push(a)}i.push(e)}if(n.strict&&n.end){const e=i.length-1;i[e][i[e].length-1]+=.7000000000000001}n.strict||(o+="/?"),n.end?o+="$":n.strict&&(o+="(?:/|$)");const a=new RegExp(o,n.sensitive?"":"i");return{re:a,score:i,keys:s,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let i=1;i<t.length;i++){const e=t[i]||"",o=s[i-1];n[o.name]=e&&o.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",i=!1;for(const o of e){i&&n.endsWith("/")||(n+="/"),i=!1;for(const e of o)if(0===e.type)n+=e.value;else if(1===e.type){const{value:s,repeatable:a,optional:r}=e,l=s in t?t[s]:"";if(Qa(l)&&!a)throw new Error(`Provided param "${s}" is an array but it is not repeatable (* or + modifiers)`);const c=Qa(l)?l.join("/"):l;if(!c){if(!r)throw new Error(`Missing required param "${s}"`);o.length<2&&(n.endsWith("/")?n=n.slice(0,-1):i=!0)}n+=c}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[Jr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${c}": ${e}`)}let n=0,i=n;const o=[];let s;function a(){s&&o.push(s),s=[]}let r,l=0,c="",u="";function d(){c&&(0===n?s.push({type:0,value:c}):1===n||2===n||3===n?(s.length>1&&("*"===r||"+"===r)&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:"*"===r||"+"===r,optional:"*"===r||"?"===r})):t("Invalid state to consume buffer"),c="")}function h(){c+=r}for(;l<e.length;)if(r=e[l++],"\\"!==r||2===n)switch(n){case 0:"/"===r?(c&&d(),a()):":"===r?(d(),n=1):h();break;case 4:h(),n=i;break;case 1:"("===r?n=2:Qr.test(r)?h():(d(),n=0,"*"!==r&&"?"!==r&&"+"!==r&&l--);break;case 2:")"===r?"\\"==u[u.length-1]?u=u.slice(0,-1)+r:n=3:u+=r;break;case 3:d(),n=0,"*"!==r&&"?"!==r&&"+"!==r&&l--,u="";break;default:t("Unknown state")}else i=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${c}"`),d(),a(),o}(e.path),n),o=Ka(i,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function el(e,t){const n=[],i=new Map;function o(e,n,i){const r=!i,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nl(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=i&&i.record;const c=sl(t,e),u=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)u.push(Ka({},l,{components:i?i.record.components:l.components,path:e,aliasOf:i?i.record:l}))}let d,h;for(const t of u){const{path:u}=t;if(n&&"/"!==u[0]){const e=n.record.path,i="/"===e[e.length-1]?"":"/";t.path=n.record.path+(u&&i+u)}if(d=Zr(t,n,c),i?i.alias.push(d):(h=h||d,h!==d&&h.alias.push(d),r&&e.name&&!il(d)&&s(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)o(e[t],d,i&&i.children[t])}i=i||d,(d.record.components&&Object.keys(d.record.components).length||d.record.name||d.record.redirect)&&a(d)}return h?()=>{s(h)}:Ja}function s(e){if(Fr(e)){const t=i.get(e);t&&(i.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(s),t.alias.forEach(s))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&i.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function a(e){let t=0;for(;t<n.length&&Kr(e,n[t])>=0&&(e.record.path!==n[t].record.path||!al(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!il(e)&&i.set(e.record.name,e)}return t=sl({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>o(e))),{addRoute:o,resolve:function(e,t){let o,s,a,r={};if("name"in e&&e.name){if(o=i.get(e.name),!o)throw Hr(1,{location:e});a=o.record.name,r=Ka(tl(t.params,o.keys.filter((e=>!e.optional)).concat(o.parent?o.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&tl(e.params,o.keys.map((e=>e.name)))),s=o.stringify(r)}else if(null!=e.path)s=e.path,o=n.find((e=>e.re.test(s))),o&&(r=o.parse(s),a=o.record.name);else{if(o=t.name?i.get(t.name):n.find((e=>e.re.test(t.path))),!o)throw Hr(1,{location:e,currentLocation:t});a=o.record.name,r=Ka({},t.params,e.params),s=o.stringify(r)}const l=[];let c=o;for(;c;)l.unshift(c.record),c=c.parent;return{name:a,path:s,params:r,matched:l,meta:ol(l)}},removeRoute:s,getRoutes:function(){return n},getRecordMatcher:function(e){return i.get(e)}}}function tl(e,t){const n={};for(const i of t)i in e&&(n[i]=e[i]);return n}function nl(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const i in e.components)t[i]="object"==typeof n?n[i]:n;return t}function il(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ol(e){return e.reduce(((e,t)=>Ka(e,t.meta)),{})}function sl(e,t){const n={};for(const i in e)n[i]=i in t?t[i]:e[i];return n}function al(e,t){return t.children.some((t=>t===e||al(e,t)))}function rl(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let i=0;i<n.length;++i){const e=n[i].replace(or," "),o=e.indexOf("="),s=gr(o<0?e:e.slice(0,o)),a=o<0?null:gr(e.slice(o+1));if(s in t){let e=t[s];Qa(e)||(e=t[s]=[e]),e.push(a)}else t[s]=a}return t}function ll(e){let t="";for(let n in e){const i=e[n];if(n=fr(n).replace(nr,"%3D"),null==i){void 0!==i&&(t+=(t.length?"&":"")+n);continue}(Qa(i)?i.map((e=>e&&fr(e))):[i&&fr(i)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function cl(e){const t={};for(const n in e){const i=e[n];void 0!==i&&(t[n]=Qa(i)?i.map((e=>null==e?null:""+e)):null==i?i:""+i)}return t}const ul=Symbol(""),dl=Symbol(""),hl=Symbol(""),pl=Symbol(""),fl=Symbol("");function ml(){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 gl(e,t,n,i,o,s=(e=>e())){const a=i&&(i.enterCallbacks[o]=i.enterCallbacks[o]||[]);return()=>new Promise(((r,l)=>{const c=e=>{var s;!1===e?l(Hr(4,{from:n,to:t})):e instanceof Error?l(e):"string"==typeof(s=e)||s&&"object"==typeof s?l(Hr(2,{from:t,to:e})):(a&&i.enterCallbacks[o]===a&&"function"==typeof e&&a.push(e),r())},u=s((()=>e.call(i&&i.instances[o],t,n,c)));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch((e=>l(e)))}))}function yl(e,t,n,i,o=(e=>e())){const s=[];for(const r of e)for(const e in r.components){let l=r.components[e];if("beforeRouteEnter"===t||r.instances[e])if("object"==typeof(a=l)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(l.__vccOpts||l)[t];a&&s.push(gl(a,n,i,r,e,o))}else{let a=l();s.push((()=>a.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${r.path}"`));const a=(l=s).__esModule||"Module"===l[Symbol.toStringTag]?s.default:s;var l;r.components[e]=a;const c=(a.__vccOpts||a)[t];return c&&gl(c,n,i,r,e,o)()}))))}}var a;return s}function vl(e){const t=_o(hl),n=_o(pl),i=Cs((()=>t.resolve(cn(e.to)))),o=Cs((()=>{const{matched:e}=i.value,{length:t}=e,o=e[t-1],s=n.matched;if(!o||!s.length)return-1;const a=s.findIndex(br.bind(null,o));if(a>-1)return a;const r=wl(e[t-2]);return t>1&&wl(o)===r&&s[s.length-1].path!==r?s.findIndex(br.bind(null,e[t-2])):a})),s=Cs((()=>o.value>-1&&function(e,t){for(const n in t){const i=t[n],o=e[n];if("string"==typeof i){if(i!==o)return!1}else if(!Qa(o)||o.length!==i.length||i.some(((e,t)=>e!==o[t])))return!1}return!0}(n.params,i.value.params))),a=Cs((()=>o.value>-1&&o.value===n.matched.length-1&&wr(n.params,i.value.params)));return{route:i,href:Cs((()=>i.value.href)),isActive:s,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[cn(e.replace)?"replace":"push"](cn(e.to)).catch(Ja):Promise.resolve()}}}const _l=yi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:vl,setup(e,{slots:t}){const n=Wt(vl(e)),{options:i}=_o(hl),o=Cs((()=>({[xl(e.activeClass,i.linkActiveClass,"router-link-active")]:n.isActive,[xl(e.exactActiveClass,i.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const i=t.default&&t.default(n);return e.custom?i:Es("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},i)}}}),bl=_l;function wl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const xl=(e,t,n)=>null!=e?e:null!=t?t:n,kl=yi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const i=_o(fl),o=Cs((()=>e.route||i.value)),s=_o(dl,0),a=Cs((()=>{let e=cn(s);const{matched:t}=o.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),r=Cs((()=>o.value.matched[a.value]));vo(dl,Cs((()=>a.value+1))),vo(ul,r),vo(fl,o);const l=sn();return Zn((()=>[l.value,r.value,e.name]),(([e,t,n],[i,o,s])=>{t&&(t.instances[n]=e,o&&o!==t&&e&&e===i&&(t.leaveGuards.size||(t.leaveGuards=o.leaveGuards),t.updateGuards.size||(t.updateGuards=o.updateGuards))),!e||!t||o&&br(t,o)&&i||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const i=o.value,s=e.name,a=r.value,c=a&&a.components[s];if(!c)return Tl(n.default,{Component:c,route:i});const u=a.props[s],d=u?!0===u?i.params:"function"==typeof u?u(i):u:null,h=Es(c,Ka({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[s]=null)},ref:l}));return Tl(n.default,{Component:h,route:i})||h}}});function Tl(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Sl=kl;function Cl(e){const t=el(e.routes,e),n=e.parseQuery||rl,i=e.stringifyQuery||ll,o=e.history,s=ml(),a=ml(),r=ml(),l=an(jr);let c=jr;Xa&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Ga.bind(null,(e=>""+e)),d=Ga.bind(null,mr),h=Ga.bind(null,gr);function p(e,s){if(s=Ka({},s||l.value),"string"==typeof e){const i=vr(n,e,s.path),a=t.resolve({path:i.path},s),r=o.createHref(i.fullPath);return Ka(i,a,{params:h(a.params),hash:gr(i.hash),redirectedFrom:void 0,href:r})}let a;if(null!=e.path)a=Ka({},e,{path:vr(n,e.path,s.path).path});else{const t=Ka({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Ka({},e,{params:d(t)}),s.params=d(s.params)}const r=t.resolve(a,s),c=e.hash||"";r.params=u(h(r.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(i,Ka({},e,{hash:(f=c,pr(f).replace(cr,"{").replace(dr,"}").replace(rr,"^")),path:r.path}));var f;const m=o.createHref(p);return Ka({fullPath:p,hash:c,query:i===ll?cl(e.query):e.query||{}},r,{redirectedFrom:void 0,href:m})}function f(e){return"string"==typeof e?vr(n,e,l.value.path):Ka({},e)}function m(e,t){if(c!==e)return Hr(8,{from:t,to:e})}function g(e){return v(e)}function y(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let i="function"==typeof n?n(e):n;return"string"==typeof i&&(i=i.includes("?")||i.includes("#")?i=f(i):{path:i},i.params={}),Ka({query:e.query,hash:e.hash,params:null!=i.path?{}:e.params},i)}}function v(e,t){const n=c=p(e),o=l.value,s=e.state,a=e.force,r=!0===e.replace,u=y(n);if(u)return v(Ka(f(u),{state:"object"==typeof u?Ka({},s,u.state):s,force:a,replace:r}),t||n);const d=n;let h;return d.redirectedFrom=t,!a&&function(e,t,n){const i=t.matched.length-1,o=n.matched.length-1;return i>-1&&i===o&&br(t.matched[i],n.matched[o])&&wr(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(i,o,n)&&(h=Hr(16,{to:d,from:o}),M(o,o,!0,!1)),(h?Promise.resolve(h):w(d,o)).catch((e=>qr(e)?qr(e,2)?e:I(e):D(e,d,o))).then((e=>{if(e){if(qr(e,2))return v(Ka({replace:r},f(e.to),{state:"object"==typeof e.to?Ka({},s,e.to.state):s,force:a}),t||d)}else e=k(d,o,!0,r,s);return x(d,o,e),e}))}function _(e,t){const n=m(e,t);return n?Promise.reject(n):Promise.resolve()}function b(e){const t=L.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function w(e,t){let n;const[i,o,r]=function(e,t){const n=[],i=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;a<s;a++){const s=t.matched[a];s&&(e.matched.find((e=>br(e,s)))?i.push(s):n.push(s));const r=e.matched[a];r&&(t.matched.find((e=>br(e,r)))||o.push(r))}return[n,i,o]}(e,t);n=yl(i.reverse(),"beforeRouteLeave",e,t);for(const s of i)s.leaveGuards.forEach((i=>{n.push(gl(i,e,t))}));const l=_.bind(null,e,t);return n.push(l),$(n).then((()=>{n=[];for(const i of s.list())n.push(gl(i,e,t));return n.push(l),$(n)})).then((()=>{n=yl(o,"beforeRouteUpdate",e,t);for(const i of o)i.updateGuards.forEach((i=>{n.push(gl(i,e,t))}));return n.push(l),$(n)})).then((()=>{n=[];for(const i of r)if(i.beforeEnter)if(Qa(i.beforeEnter))for(const o of i.beforeEnter)n.push(gl(o,e,t));else n.push(gl(i.beforeEnter,e,t));return n.push(l),$(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=yl(r,"beforeRouteEnter",e,t,b),n.push(l),$(n)))).then((()=>{n=[];for(const i of a.list())n.push(gl(i,e,t));return n.push(l),$(n)})).catch((e=>qr(e,8)?e:Promise.reject(e)))}function x(e,t,n){r.list().forEach((i=>b((()=>i(e,t,n)))))}function k(e,t,n,i,s){const a=m(e,t);if(a)return a;const r=t===jr,c=Xa?history.state:{};n&&(i||r?o.replace(e.fullPath,Ka({scroll:r&&c&&c.scroll},s)):o.push(e.fullPath,s)),l.value=e,M(e,t,n,r),I()}let T;function S(){T||(T=o.listen(((e,t,n)=>{if(!R.listening)return;const i=p(e),s=y(i);if(s)return void v(Ka(s,{replace:!0}),i).catch(Ja);c=i;const a=l.value;var r,u;Xa&&(r=Ar(a.fullPath,n.delta),u=Mr(),Lr.set(r,u)),w(i,a).catch((e=>qr(e,12)?e:qr(e,2)?(v(e.to,i).then((e=>{qr(e,20)&&!n.delta&&n.type===Tr.pop&&o.go(-1,!1)})).catch(Ja),Promise.reject()):(n.delta&&o.go(-n.delta,!1),D(e,i,a)))).then((e=>{(e=e||k(i,a,!1))&&(n.delta&&!qr(e,8)?o.go(-n.delta,!1):n.type===Tr.pop&&qr(e,20)&&o.go(-1,!1)),x(i,a,e)})).catch(Ja)})))}let C,E=ml(),P=ml();function D(e,t,n){I(e);const i=P.list();return i.length?i.forEach((i=>i(e,t,n))):console.error(e),Promise.reject(e)}function I(e){return C||(C=!e,S(),E.list().forEach((([t,n])=>e?n(e):t())),E.reset()),e}function M(t,n,i,o){const{scrollBehavior:s}=e;if(!Xa||!s)return Promise.resolve();const a=!i&&function(e){const t=Lr.get(e);return Lr.delete(e),t}(Ar(t.fullPath,0))||(o||!i)&&history.state&&history.state.scroll||null;return Tn().then((()=>s(t,n,a))).then((e=>e&&Or(e))).catch((e=>D(e,t,n)))}const O=e=>o.go(e);let A;const L=new Set,R={currentRoute:l,listening:!0,addRoute:function(e,n){let i,o;return Fr(e)?(i=t.getRecordMatcher(e),o=n):o=e,t.addRoute(o,i)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:g,replace:function(e){return g(Ka(f(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:s.add,beforeResolve:a.add,afterEach:r.add,onError:P.add,isReady:function(){return C&&l.value!==jr?Promise.resolve():new Promise(((e,t)=>{E.add([e,t])}))},install(e){e.component("RouterLink",bl),e.component("RouterView",Sl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>cn(l)}),Xa&&!A&&l.value===jr&&(A=!0,g(o.location).catch((e=>{})));const t={};for(const i in jr)Object.defineProperty(t,i,{get:()=>l.value[i],enumerable:!0});e.provide(hl,this),e.provide(pl,Ut(t)),e.provide(fl,l);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(c=jr,T&&T(),T=null,l.value=jr,A=!1,C=!1),n()}}};function $(e){return e.reduce(((e,t)=>e.then((()=>b(t)))),Promise.resolve())}return R}function El(){return _o(pl)}const Pl=he((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Dl;function Il(){if(!Dl){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,Dl=Ya(e),Pl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Dl.add(e,__uniConfig.locales[e]))),Dl.setLocale(e)}}return Dl}function Ml(e,t,n){return t.reduce(((t,i,o)=>(t[e+i]=n[o],t)),{})}const Ol=he((()=>{const e="uni.async.",t=["error"];Il().add("en",Ml(e,t,["The connection timed out, click the screen to try again."]),!1),Il().add("es",Ml(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),Il().add("fr",Ml(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),Il().add("zh-Hans",Ml(e,t,["连接服务器超时,点击屏幕重试"]),!1),Il().add("zh-Hant",Ml(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),Al=he((()=>{const e="uni.showActionSheet.",t=["cancel"];Il().add("en",Ml(e,t,["Cancel"]),!1),Il().add("es",Ml(e,t,["Cancelar"]),!1),Il().add("fr",Ml(e,t,["Annuler"]),!1),Il().add("zh-Hans",Ml(e,t,["取消"]),!1),Il().add("zh-Hant",Ml(e,t,["取消"]),!1)})),Ll=he((()=>{const e="uni.showToast.",t=["unpaired"];Il().add("en",Ml(e,t,["Please note showToast must be paired with hideToast"]),!1),Il().add("es",Ml(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Il().add("fr",Ml(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),Il().add("zh-Hans",Ml(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),Il().add("zh-Hant",Ml(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),Rl=he((()=>{const e="uni.showLoading.",t=["unpaired"];Il().add("en",Ml(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Il().add("es",Ml(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Il().add("fr",Ml(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),Il().add("zh-Hans",Ml(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),Il().add("zh-Hant",Ml(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),$l=he((()=>{const e="uni.showModal.",t=["cancel","confirm"];Il().add("en",Ml(e,t,["Cancel","OK"]),!1),Il().add("es",Ml(e,t,["Cancelar","OK"]),!1),Il().add("fr",Ml(e,t,["Annuler","OK"]),!1),Il().add("zh-Hans",Ml(e,t,["取消","确定"]),!1),Il().add("zh-Hant",Ml(e,t,["取消","確定"]),!1)})),Nl=he((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Il().add("en",Ml(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Il().add("es",Ml(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),Il().add("fr",Ml(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),Il().add("zh-Hans",Ml(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),Il().add("zh-Hant",Ml(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),Bl=he((()=>{const e="uni.setClipboardData.",t=["success","fail"];Il().add("en",Ml(e,t,["Content copied","Copy failed, please copy manually"]),!1),Il().add("es",Ml(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),Il().add("fr",Ml(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),Il().add("zh-Hans",Ml(e,t,["内容已复制","复制失败,请手动复制"]),!1),Il().add("zh-Hant",Ml(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Fl=he((()=>{const e="uni.picker.",t=["done","cancel"];Il().add("en",Ml(e,t,["Done","Cancel"]),!1),Il().add("es",Ml(e,t,["OK","Cancelar"]),!1),Il().add("fr",Ml(e,t,["OK","Annuler"]),!1),Il().add("zh-Hans",Ml(e,t,["完成","取消"]),!1),Il().add("zh-Hant",Ml(e,t,["完成","取消"]),!1)}));function jl(e){const t=new Oe;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,i,o=!1){t[o?"once":"on"](`${e}.${n}`,i)},unsubscribe(n,i){t.off(`${e}.${n}`,i)},subscribeHandler(n,i,o){t.emit(`${e}.${n}`,i,o)}}}let Vl=1;const Wl=Object.create(null);function Ul(e,t){return e+"."+t}function Hl(e,t,n){t=Ul(e,t),Wl[t]||(Wl[t]=n)}function ql({id:e,name:t,args:n},i){t=Ul(i,t);const o=t=>{e&&$v.publishHandler("invokeViewApi."+e,t)},s=Wl[t];s?s(n,o):o({})}const zl=r(jl("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:i,publishHandler:o}=$v,s=n?Vl++:0;n&&i("invokeServiceApi."+s,n,!0),o("invokeServiceApi",{id:s,name:e,args:t})}}),Yl=_e(!0);let Xl;function Kl(){Xl&&(clearTimeout(Xl),Xl=null)}let Gl=0,Jl=0;function Ql(e){if(Kl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Gl=t,Jl=n,Xl=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 Zl(e){if(!Xl)return;if(1!==e.touches.length)return Kl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Gl)>10||Math.abs(n-Jl)>10?Kl():void 0}function ec(e,t){const n=Number(e);return isNaN(n)?t:n}function tc(){const e=__uniConfig.globalStyle||{},t=ec(e.rpxCalcMaxDeviceWidth,960),n=ec(e.rpxCalcBaseDeviceWidth,375);function i(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}i(),document.addEventListener("DOMContentLoaded",i),window.addEventListener("load",i),window.addEventListener("resize",i)}function nc(){tc(),ge(),window.addEventListener("touchstart",Ql,Yl),window.addEventListener("touchmove",Zl,Yl),window.addEventListener("touchend",Kl,Yl),window.addEventListener("touchcancel",Kl,Yl)}function ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oc,sc,ac=["top","left","right","bottom"],rc={};function lc(){return sc="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 cc(){if(sc="string"==typeof sc?sc:lc()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(Mw){}var i=document.createElement("div");o(i,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),ac.forEach((function(e){a(i,e)})),document.body.appendChild(i),s(),oc=!0}else ac.forEach((function(e){rc[e]=0}));function o(e,t){var n=e.style;Object.keys(t).forEach((function(e){var i=t[e];n[e]=i}))}function s(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var i=document.createElement("div"),a=document.createElement("div"),r=document.createElement("div"),l=document.createElement("div"),c={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:sc+"(safe-area-inset-"+n+")"};o(i,c),o(a,c),o(r,{transition:"0s",animation:"none",width:"400px",height:"400px"}),o(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),i.appendChild(r),a.appendChild(l),e.appendChild(i),e.appendChild(a),s((function(){i.scrollTop=a.scrollTop=1e4;var e=i.scrollTop,o=a.scrollTop;function s(){this.scrollTop!==(this===i?e:o)&&(i.scrollTop=a.scrollTop=1e4,e=i.scrollTop,o=a.scrollTop,function(e){dc.length||setTimeout((function(){var e={};dc.forEach((function(t){e[t]=rc[t]})),dc.length=0,hc.forEach((function(t){t(e)}))}),0);dc.push(e)}(n))}i.addEventListener("scroll",s,t),a.addEventListener("scroll",s,t)}));var u=getComputedStyle(i);Object.defineProperty(rc,n,{configurable:!0,get:function(){return parseFloat(u.paddingBottom)}})}}function uc(e){return oc||cc(),rc[e]}var dc=[];var hc=[];const pc=ic({get support(){return 0!=("string"==typeof sc?sc:lc()).length},get top(){return uc("top")},get left(){return uc("left")},get right(){return uc("right")},get bottom(){return uc("bottom")},onChange:function(e){lc()&&(oc||cc(),"function"==typeof e&&hc.push(e))},offChange:function(e){var t=hc.indexOf(e);t>=0&&hc.splice(t,1)}}),fc=Ra((()=>{}),["prevent"]),mc=Ra((e=>{}),["stop"]);function gc(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function yc(){const e=gc(document.documentElement.style,"--window-top");return e?e+pc.top:0}function vc(){const e=document.documentElement.style,t=yc(),n=gc(e,"--window-bottom"),i=gc(e,"--window-left"),o=gc(e,"--window-right"),s=gc(e,"--top-window-height");return{top:t,bottom:n?n+pc.bottom:0,left:i?i+pc.left:0,right:o?o+pc.right:0,topWindowHeight:s||0}}function _c(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function bc(e){return Symbol(e)}function wc(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function xc(e,t=!1){if(t)return function(e){if(!wc(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>Bd(parseFloat(t))+"px"))}(e);if(g(e)){const t=parseInt(e)||0;return wc(e)?Bd(t):t}return e}const kc="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",Tc="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",Sc="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 Cc(e,t="#000",n=27){return is("svg",{width:n,height:n,viewBox:"0 0 32 32"},[is("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Ec(){{const{$pageInstance:e}=ms();return e&&e.proxy.$page.id}}function Pc(e){const t=ie(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function Dc(){const e=Gm(),t=e.length;if(t)return e[t-1]}function Ic(){const e=Dc();if(e)return e.$page.meta}function Mc(){const e=Ic();return e?e.id:-1}function Oc(){const e=Dc();if(e)return e.$vm}const Ac=["navigationBar","pullToRefresh"];function Lc(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),i=r({id:t},n,e);Ac.forEach((t=>{i[t]=r({},n[t],e[t])}));const{navigationBar:o}=i;return o.titleText&&o.titleImage&&(o.titleText=""),i}function Rc(e,t,n){if(g(e))n=t,t=e,e=Oc();else if("number"==typeof e){const t=Gm().find((t=>t.$page.id===e));e=t?t.$vm:Oc()}if(!e)return;const i=e.$[t];return i&&((e,t)=>{let n;for(let i=0;i<e.length;i++)n=e[i](t);return n})(i,n)}function $c(e){e.preventDefault()}let Nc,Bc=0;function Fc({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let i=!1,o=!1,s=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,i=window.scrollY,s=i>0&&e>t&&i+t+n>=e,a=Math.abs(e-Bc)>n;return!s||o&&!a?(!s&&o&&(o=!1),!1):(Bc=e,o=!0,!0)})())return t&&t(),s=!1,setTimeout((function(){s=!0}),350),!0}e&&e(window.pageYOffset),t&&s&&(a()||(Nc=setTimeout(a,300))),i=!1};return function(){clearTimeout(Nc),i||requestAnimationFrame(a),i=!0}}function jc(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return jc(e,t.slice(2));const n=t.split("/"),i=n.length;let o=0;for(;o<i&&".."===n[o];o++);n.splice(0,o),t=n.join("/");const s=e.length>0?e.split("/"):[];return s.splice(s.length-o-1,o+1),ue(s.concat(n).join("/"))}function Vc(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class Wc{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=ae(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=zc(this.$el.querySelector(e));return t?Uc(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let i=0;i<n.length;i++){const e=zc(n[i]);e&&t.push(Uc(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){let t="";if(!e||g(e))return t;for(const n in e){const i=e[n],o=n.startsWith("--")?n:D(n);(g(i)||"number"==typeof i)&&(t+=`${o}:${i};`)}return t}(e))}setStyle(e){return this.$el&&e?(g(e)&&(e=W(e)),x(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&$v.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 Uc(e,t=!0){if(t&&e&&(e=oe(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Wc(e)),e.$el.__wxsComponentDescriptor}function Hc(e,t){return Uc(e,t)}function qc(e,t,n,i=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Hc(n.proxy,!1)}));const o=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const i=oe(t);if(!i)return!1;const o=i.$.type;return!(!o.$wxs&&!o.$renderjs)&&i}(t,n,i);if(o)return[e,Hc(o,!1)]}}function zc(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Yc(e,t=!1){const{type:n,timeStamp:i,target:o,currentTarget:s}=e;let a,l;a=be(t?o:function(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}(o)),l=be(s);const c={type:n,timeStamp:i,target:a,detail:{},currentTarget:l};return e._stopped&&(c._stopped=!0),e.type.startsWith("touch")&&(c.touches=e.touches,c.changedTouches=e.changedTouches),function(e,t){r(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(c,e),c}function Xc(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Kc(e,t){const n=[];for(let i=0;i<e.length;i++){const{identifier:o,pageX:s,pageY:a,clientX:r,clientY:l,force:c}=e[i];n.push({identifier:o,pageX:s,pageY:a-t,clientX:r,clientY:l-t,force:c||0})}return n}const Gc=Object.defineProperty({__proto__:null,$nne:function(e,t,n){const{currentTarget:i}=e;if(!(e instanceof Event&&i instanceof HTMLElement))return[e];const o=0!==i.tagName.indexOf("UNI-");if(o)return qc(e,t,n,!1)||[e];const s=Yc(e,o);if("click"===e.type)!function(e,t){const{x:n,y:i}=t,o=yc();e.detail={x:n,y:i-o},e.touches=e.changedTouches=[Xc(t,o)]}(s,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=yc();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Xc(t,n)]}(s,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=yc();s.touches=Kc(e.touches,t),s.changedTouches=Kc(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(s,t,{get:()=>e[t]})}))}return qc(s,t,n)||[s]},createNativeEvent:Yc},Symbol.toStringTag,{value:"Module"});function Jc(e){!function(e){const t=e.globalProperties;r(t,Gc),t.$gcd=Hc}(e._context.config)}let Qc=1;function Zc(e){return(e||Mc())+".invokeViewApi"}const eu=r(jl("view"),{invokeOnCallback:(e,t)=>Nv.emit("api."+e,t),invokeViewMethod:(e,t,n,i)=>{const{subscribe:o,publishHandler:s}=Nv,a=i?Qc++:0;i&&o("invokeViewApi."+a,i,!0),s(Zc(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,i)=>{const{subscribe:o,unsubscribe:s,publishHandler:a}=Nv,r=Qc++,l="invokeViewApi."+r;return o(l,n),a(Zc(i),{id:r,name:e,args:t},i),()=>{s(l)}}});function tu(e){Rc(Dc(),"onResize",e),Nv.invokeOnCallback("onWindowResize",e)}function nu(e){const t=Dc();Rc(bg(),"onShow",e),Rc(t,"onShow")}function iu(){Rc(bg(),"onHide"),Rc(Dc(),"onHide")}const ou=["onPageScroll","onReachBottom"];function su(){ou.forEach((e=>Nv.subscribe(e,function(e){return(t,n)=>{Rc(parseInt(n),e,t)}}(e))))}function au(){!function(){const{on:e}=Nv;e("onResize",tu),e("onAppEnterForeground",nu),e("onAppEnterBackground",iu)}(),su()}function ru(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new Ce(this.$page.id)),e.eventChannel}}function lu(e){e._context.config.globalProperties.getOpenerEventChannel=ru}function cu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function uu(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${Bd(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function du(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const i=t.actions,o=t.actions.length;function s(){const t=i[n],a=t.option.transition,r=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"],i=["opacity","background-color"],o=["width","height","left","right","top","bottom"],s=e.animates,a=e.option,r=a.transition,l={},c=[];return s.forEach((e=>{let s=e.type,a=[...e.args];if(t.concat(n).includes(s))s.startsWith("rotate")||s.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):s.startsWith("translate")&&(a=a.map(uu)),n.indexOf(s)>=0&&(a.length=1),c.push(`${s}(${a.join(",")})`);else if(i.concat(o).includes(a[0])){s=a[0];const e=a[1];l[s]=o.includes(s)?uu(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)} ${r.duration}ms ${r.timingFunction} ${r.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(r).forEach((t=>{e.$el.style[t]=r[t]})),n+=1,n<o&&setTimeout(s,a.duration+a.delay)}setTimeout((()=>{s()}),0)}const hu={props:["animation"],watch:{animation:{deep:!0,handler(){du(this)}}},mounted(){du(this)}},pu=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(hu),fu(e)},fu=e=>(e.__reserved=!0,e.compatConfig={MODE:3},yi(e));function mu(e){return e.__wwe=!0,e}function gu(e,t){return(n,i,o)=>{e.value&&t(n,function(e,t,n,i){let o;return o=be(n),{type:i.type||e,timeStamp:t.timeStamp||0,target:o,currentTarget:o,detail:i}}(n,i,e.value,o||{}))}}const yu={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function vu(e){const t=sn(!1);let n,i,o=!1;function s(){requestAnimationFrame((()=>{clearTimeout(i),i=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(i){i._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(i._hoverPropagationStopped=!0),o=!0,n=setTimeout((()=>{t.value=!0,o||s()}),parseInt(e.hoverStartTime)))}function r(){o=!1,t.value&&s()}function l(){r(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:mu((function(e){e.touches.length>1||a(e)})),onMousedown:mu((function(e){o||(a(e),window.addEventListener("mouseup",l))})),onTouchend:mu((function(){r()})),onMouseup:mu((function(){o&&l()})),onTouchcancel:mu((function(){o=!1,t.value=!1,clearTimeout(n)}))}}}function _u(e,t){return g(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const bu=bc("uf"),wu=pu({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const i=sn(null);return function(e){const t=[];vo(bu,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,i]=t.submit();n&&(e[n]=i)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(gu(i,n)),()=>is("uni-form",{ref:i},[is("span",null,[t.default&&t.default()])],512)}});const xu={for:{type:String,default:""}},ku=bc("ul");const Tu=pu({name:"Label",props:xu,setup(e,{slots:t}){const n=sn(null),i=Ec(),o=function(){const e=[];return vo(ku,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),s=Cs((()=>e.for||t.default&&t.default.length)),a=mu((t=>{const n=t.target;let s=/^uni-(checkbox|radio|switch)-/.test(n.className);s||(s=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(n.tagName)),s||(e.for?$v.emit("uni-label-click-"+i+"-"+e.for,t,!0):o.length&&o[0](t,!0))}));return()=>is("uni-label",{ref:n,class:{"uni-label-pointer":s},onClick:a},[t.default&&t.default()],10,["onClick"])}});function Su(e,t){Cu(e.id,t),Zn((()=>e.id),((e,n)=>{Eu(n,t,!0),Cu(e,t,!0)})),Vi((()=>{Eu(e.id,t)}))}function Cu(e,t,n){const i=Ec();n&&!e||x(t)&&Object.keys(t).forEach((o=>{n?0!==o.indexOf("@")&&0!==o.indexOf("uni-")&&$v.on(`uni-${o}-${i}-${e}`,t[o]):0===o.indexOf("uni-")?$v.on(o,t[o]):e&&$v.on(`uni-${o}-${i}-${e}`,t[o])}))}function Eu(e,t,n){const i=Ec();n&&!e||x(t)&&Object.keys(t).forEach((o=>{n?0!==o.indexOf("@")&&0!==o.indexOf("uni-")&&$v.off(`uni-${o}-${i}-${e}`,t[o]):0===o.indexOf("uni-")?$v.off(o,t[o]):e&&$v.off(`uni-${o}-${i}-${e}`,t[o])}))}const Pu=pu({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=sn(null),i=_o(bu,!1),{hovering:o,binding:s}=vu(e);Il();const a=mu(((t,o)=>{if(e.disabled)return t.stopImmediatePropagation();o&&n.value.click();const s=e.formType;if(s){if(!i)return;"submit"===s?i.submit(t):"reset"===s&&i.reset(t)}else;})),r=_o(ku,!1);return r&&(r.addHandler(a),ji((()=>{r.removeHandler(a)}))),Su(e,{"label-click":a}),()=>{const i=e.hoverClass,r=_u(e,"disabled"),l=_u(e,"loading"),c=_u(e,"plain"),u=i&&"none"!==i;return is("uni-button",us({ref:n,onClick:a,id:e.id,class:u&&o.value?i:""},u&&s,r,l,c),[t.default&&t.default()],16,["onClick","id"])}}});function Du(e){const{base:t}=__uniConfig.router;return 0===ue(e).indexOf(t)?ue(e):t+e}function Iu(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return Du(e.slice(1));e="https:"+e}if(te.test(e)||ne.test(e)||0===e.indexOf("blob:"))return e;const i=Gm();return i.length?Du(jc(i[i.length-1].$page.route,e).slice(1)):e}const Mu=navigator.userAgent,Ou=/android/i.test(Mu),Au=/iphone|ipad|ipod/i.test(Mu),Lu=Mu.match(/Windows NT ([\d|\d.\d]*)/i),Ru=/Macintosh|Mac/i.test(Mu),$u=/Linux|X11/i.test(Mu),Nu=Ru&&navigator.maxTouchPoints>0;function Bu(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Fu(e){return e&&90===Math.abs(window.orientation)}function ju(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function Vu(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Wu(e,t,n,i){Nv.invokeViewMethod("video."+e,{videoId:e,type:n,data:i},t)}function Uu(e,t){const n={},{top:i,topWindowHeight:o}=vc();if(t.node){const t=e.tagName.split("-")[1];t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=ye(e)),t.rect||t.size){const s=e.getBoundingClientRect();t.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-i-o,n.bottom=s.bottom-i-o),t.size&&(n.width=s.width,n.height=s.height)}if(d(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(d(t.computedStyle)){const i=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=i[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function Hu(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function qu(e,t,n){const i=[];t.forEach((({component:t,selector:n,single:o,fields:s})=>{null===t?i.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,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}(s)):i.push(function(e,t,n,i,o){const s=function(e,t){return e?e.$el:t.$el}(t,e),a=s.parentElement;if(!a)return i?null:[];const{nodeType:r}=s,l=3===r||8===r;if(i){const e=l?a.querySelector(n):Hu(s,n)?s:s.querySelector(n);return e?Uu(e,o):null}{let e=[];const t=(l?a:s).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(Uu(t,o))})),!l&&Hu(s,n)&&e.unshift(Uu(s,o)),e}}(e,t,n,o,s))})),n(i)}const zu=["original","compressed"],Yu=["album","camera"],Xu=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Ku(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Gu(e,t){return!d(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Ju(e){return function(){try{return e.apply(e,arguments)}catch(Mw){console.error(Mw)}}}let Qu=1;const Zu={};function ed(e,t,n,i=!1){return Zu[e]={name:t,keepAlive:i,callback:n},e}function td(e,t,n){if("number"==typeof e){const i=Zu[e];if(i)return i.keepAlive||delete Zu[e],i.callback(t,n)}return t}function nd(e){for(const t in Zu)if(Zu[t].name===e)return!0;return!1}const id="success",od="fail",sd="complete";function ad(e,t={},{beforeAll:n,beforeSuccess:i}={}){x(t)||(t={});const{success:o,fail:s,complete:a}=function(e){const t={};for(const n in e){const i=e[n];m(i)&&(t[n]=Ju(i),delete e[n])}return t}(t),r=m(o),l=m(s),c=m(a),u=Qu++;return ed(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),m(n)&&n(u),u.errMsg===e+":ok"?(m(i)&&i(u,t),r&&o(u)):l&&s(u),c&&a(u)})),u}const rd="success",ld="fail",cd="complete",ud={},dd={};function hd(e,t){return function(n){return e(n,t)||n}}function pd(e,t,n){let i=!1;for(let o=0;o<e.length;o++){const s=e[o];if(i)i=Promise.resolve(hd(s,n));else{const e=s(t,n);if(_(e)&&(i=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return i||{then:e=>e(t),catch(){}}}function fd(e,t={}){return[rd,ld,cd].forEach((n=>{const i=e[n];if(!d(i))return;const o=t[n];t[n]=function(e){pd(i,e,t).then((e=>m(o)&&o(e)||e))}})),t}function md(e,t){const n=[];d(ud.returnValue)&&n.push(...ud.returnValue);const i=dd[e];return i&&d(i.returnValue)&&n.push(...i.returnValue),n.forEach((e=>{t=e(t)||t})),t}function gd(e){const t=Object.create(null);Object.keys(ud).forEach((e=>{"returnValue"!==e&&(t[e]=ud[e].slice())}));const n=dd[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function yd(e,t,n,i){const o=gd(e);if(o&&Object.keys(o).length){if(d(o.invoke)){return pd(o.invoke,n).then((n=>t(fd(gd(e),n),...i)))}return t(fd(o,n),...i)}return t(n,...i)}function vd(e,t){return(n={},...i)=>function(e){return!(!x(e)||![id,od,sd].find((t=>m(e[t]))))}(n)?md(e,yd(e,t,n,i)):md(e,new Promise(((o,s)=>{yd(e,t,r(n,{success:o,fail:s}),i)})))}function _d(e,t,n,i={}){const o=t+":fail"+(n?" "+n:"");return delete i.errCode,td(e,r({errMsg:o},i))}function bd(e,t,n,i){if(i&&i.beforeInvoke){const e=i.beforeInvoke(t);if(g(e))return e}const o=function(e,t){const n=e[0];if(!t||!x(t.formatArgs)&&x(n))return;const i=t.formatArgs,o=Object.keys(i);for(let s=0;s<o.length;s++){const t=o[s],a=i[t];if(m(a)){const i=a(e[0][t],n);if(g(i))return i}else u(n,t)||(n[t]=a)}}(t,i);if(o)return o}function wd(e){if(!m(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function xd(e,t,n){return i=>{wd(i);const o=bd(0,[i],0,n);if(o)throw new Error(o);const s=!nd(e);!function(e,t){ed(Qu++,e,t,!0)}(e,i),s&&(!function(e){Nv.on("api."+e,(t=>{for(const n in Zu){const i=Zu[n];i.name===e&&i.callback(t)}}))}(e),t())}}function kd(e,t,n){return i=>{wd(i);const o=bd(0,[i],0,n);if(o)throw new Error(o);!function(e,t){for(const n in Zu){const i=Zu[n];i.callback===t&&i.name===e&&delete Zu[n]}}(e=e.replace("off","on"),i);nd(e)||(!function(e){Nv.off("api."+e)}(e),t())}}function Td(e,t,n,i){return n=>{const o=ad(e,n,i),s=bd(0,[n],0,i);return s?_d(o,e,s):t(n,{resolve:t=>function(e,t,n){return td(e,r(n||{},{errMsg:t+":ok"}))}(o,e,t),reject:(t,n)=>_d(o,e,function(e){return!e||g(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Sd(e,t,n){return xd(e,t,n)}function Cd(e,t,n){return kd(e,t,n)}function Ed(e,t,n,i){return vd(e,Td(e,t,0,i))}function Pd(e,t,n,i){return function(e,t,n,i){return(...e)=>{const n=bd(0,e,0,i);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,i)}function Dd(e,t,n,i){return vd(e,function(e,t,n,i){return Td(e,t,0,i)}(e,t,0,i))}let Id=!1,Md=0,Od=0,Ad=960,Ld=375,Rd=750;function $d(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=Bu(),t=Vu(ju(e,Fu(e)));return{platform:Au?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();Md=n,Od=t,Id="ios"===e}function Nd(e,t){const n=Number(e);return isNaN(n)?t:n}const Bd=Pd(0,((e,t)=>{if(0===Md&&($d(),function(){const e=__uniConfig.globalStyle||{};Ad=Nd(e.rpxCalcMaxDeviceWidth,960),Ld=Nd(e.rpxCalcBaseDeviceWidth,375),Rd=Nd(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Md;n=e===Rd||n<=Ad?n:Ld;let i=e/750*n;return i<0&&(i=-i),i=Math.floor(i+1e-4),0===i&&(i=1!==Od&&Id?.5:1),e<0?-i:i}));function Fd(e,t){Object.keys(t).forEach((n=>{m(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):d(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))}))}const jd=Pd(0,((e,t)=>{g(e)&&x(t)?Fd(dd[e]||(dd[e]={}),t):x(e)&&Fd(ud,e)})),Vd=new Oe,Wd=Pd(0,((e,t)=>(Vd.on(e,t),()=>Vd.off(e,t)))),Ud=Pd(0,((e,t)=>{e?(d(e)||(e=[e]),e.forEach((e=>Vd.off(e,t)))):Vd.e={}})),Hd=Pd(0,((e,...t)=>{Vd.emit(e,...t)})),qd=[.5,.8,1,1.25,1.5,2];const zd=(e,t,n,i)=>{!function(e,t,n,i,o){Nv.invokeViewMethod("map."+e,{type:n,data:i},t,o)}(e,t,n,i,(e=>{i&&((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)})(i,e)}))};function Yd(e,t){return function(n,i){n?i[e]=Math.round(n):void 0!==t&&(i[e]=t)}}const Xd=Yd("width"),Kd=Yd("height"),Gd={PNG:"png",JPG:"jpg",JPEG:"jpg"},Jd={formatArgs:{x:Yd("x",0),y:Yd("y",0),width:Xd,height:Kd,destWidth:Yd("destWidth"),destHeight:Yd("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Gd[e];n||(n=Gd.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function Qd(e,t,n,i,o){Nv.invokeViewMethod(`canvas.${e}`,{type:n,data:i},t,(e=>{o&&o(e)}))}var Zd=["scale","rotate","translate","setTransform","transform"],eh=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],th=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const nh={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 ih(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),i=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),i=parseInt(i+i,16),[e,n,i,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(u(nh,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(nh[n]);const e=parseInt(t[1].slice(0,2),16),i=parseInt(t[1].slice(2,4),16),o=parseInt(t[1].slice(4,6),16);let s=parseInt(t[1].slice(6,8),16);return s=s>=0?s:255,[e,i,o,s]}return console.error("unsupported color:"+e),[0,0,0,255]}class oh{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,ih(t)])}}class sh{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class ah{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"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],Qd(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,i){return new oh("linear",[e,t,n,i])}createCircularGradient(e,t,n){return new oh("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 sh(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 n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new ah(t)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,i){this.path.push({method:"quadraticCurveTo",data:[e,t,n,i]}),this.subpath.push([n,i])}bezierCurveTo(e,t,n,i,o,s){this.path.push({method:"bezierCurveTo",data:[e,t,n,i,o,s]}),this.subpath.push([o,s])}arc(e,t,n,i,o,s=!1){this.path.push({method:"arc",data:[e,t,n,i,o,s]}),this.subpath.push([e,t])}rect(e,t,n,i){this.path.push({method:"rect",data:[e,t,n,i]}),this.subpath=[[e,t]]}arcTo(e,t,n,i,o){this.path.push({method:"arcTo",data:[e,t,n,i,o]}),this.subpath.push([n,i])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var i=n[1].trim().split(/\s/),o=parseFloat(n[3]),s=n[7],a=[];i.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&r()})),1===i.length&&r(),i=a.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=o,this.state.fontFamily=s,this.actions.push({method:"setFont",data:[`${i} ${o}px ${s}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function r(){a.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const lh=he((()=>{[...Zd,...eh].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,i){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,i]}]})};case"strokeRect":return function(e,t,n,i){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,i]}]})};case"fillText":case"strokeText":return function(t,n,i,o){var s=[t.toString(),n,i];"number"==typeof o&&s.push(o),this.actions.push({method:e,data:s})};case"drawImage":return function(t,n,i,o,s,a,r,l,c){var u;function d(e){return"number"==typeof e}void 0===c&&(a=n,r=i,l=o,c=s,n=void 0,i=void 0,o=void 0,s=void 0),u=d(n)&&d(i)&&d(o)&&d(s)?[t,a,r,l,c,n,i,o,s]:d(l)&&d(c)?[t,a,r,l,c]:[t,a,r],this.actions.push({method:e,data:u})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),th.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",ih(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,i,o){o=ih(o),this.actions.push({method:e,data:[t,n,i,o]}),this.state.shadowBlur=i,this.state.shadowColor=o,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)}))})),ch=Pd(0,((e,t)=>{if(lh(),t)return new rh(e,Pc(t));const n=Pc(Oc());if(n)return new rh(e,n);Nv.emit("onError","createCanvasContext:fail")})),uh=Dd("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:i,destWidth:o,destHeight:s,canvasId:a,fileType:r,quality:l},{resolve:c,reject:u})=>{var d=Pc(Oc());if(!d)return void u();Qd(a,d,"toTempFilePath",{x:e,y:t,width:n,height:i,destWidth:o,destHeight:s,fileType:r,quality:l,dirname:`${mp}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?u("",e):c(e)}))}),0,Jd);let dh=1;class hh{constructor(e){this._pageId=e.$page&&e.$page.id,this._component=e}observe(e,t){m(t)&&(this._reqId=dh++,function({reqId:e,component:t,options:n,callback:i},o){const s=hp[e]=window.matchMedia(function(e){const t=[],n=["width","minWidth","maxWidth","height","minHeight","maxHeight","orientation"];for(const i of n)"orientation"!==i&&e[i]&&Number(e[i]>=0)&&t.push(`(${fp(i)}: ${Number(e[i])}px)`),"orientation"===i&&e[i]&&t.push(`(${fp(i)}: ${e[i]})`);return t.join(" and ")}(n)),a=pp[e]=e=>i(e.matches);a(s),s.addListener(a)}({reqId:this._reqId,component:this._component,options:e,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t},n){const i=pp[e],o=hp[e];o&&(o.removeListener(i),delete pp[e],delete hp[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const ph=Pd(0,(e=>((e=ie(e))&&!Pc(e)&&(e=null),new hh(e||Oc()))));let fh=0,mh={};function gh(e,t,n,i){const o={options:i},s=i&&("success"in i||"fail"in i||"complete"in i);if(s){const e=String(fh++);o.callbackId=e,mh[e]=i}Nv.invokeViewMethod(`editor.${e}`,{type:n,data:o},t,(({callbackId:e,data:t})=>{s&&(!function(e,t){e=e||{},g(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?m(e.success)&&e.success(t):m(e.fail)&&e.fail(t),m(e.complete)&&e.complete(t)}(mh[e],t),delete mh[e])}))}const yh={canvas:rh,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){zd(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){zd(this.id,this.pageId,"moveToLocation",e)}getScale(e){zd(this.id,this.pageId,"getScale",e)}getRegion(e){zd(this.id,this.pageId,"getRegion",e)}includePoints(e){zd(this.id,this.pageId,"includePoints",e)}translateMarker(e){zd(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){zd(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){zd(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){zd(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){zd(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){zd(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){zd(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){zd(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){zd(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){zd(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){zd(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){zd(this.id,this.pageId,"openMapApp",e)}on(e,t){zd(this.id,this.pageId,"on",{name:e,callback:t})}},video:class{constructor(e,t){this.id=e,this.pageId=t}play(){Wu(this.id,this.pageId,"play")}pause(){Wu(this.id,this.pageId,"pause")}stop(){Wu(this.id,this.pageId,"stop")}seek(e){Wu(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Wu(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~qd.indexOf(e)||(e=1),Wu(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Wu(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Wu(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Wu(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Wu(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){gh(this.id,this.pageId,e,t)}}};function vh(e){if(e&&e.contextInfo){const{id:t,type:n,page:i}=e.contextInfo,o=yh[n];e.context=new o(t,i),delete e.contextInfo}}class _h{constructor(e,t,n,i){this._selectorQuery=e,this._component=t,this._selector=n,this._single=i}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 bh{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return qu(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{d(e)?e.forEach(vh):vh(e);const i=n[t];m(i)&&i.call(this,e)})),m(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=ie(e),this}select(e){return this._nodesRef=new _h(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new _h(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new _h(this,null,"",!0)}_push(e,t,n,i,o){this._queue.push({component:t,selector:e,single:n,fields:i}),this._queueCb.push(o)}}const wh=Pd(0,(e=>((e=ie(e))&&!Pc(e)&&(e=null),new bh(e||Oc())))),xh={formatArgs:{}},kh={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};let Th=class{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=r({},kh,e)}_getOption(e){const t={transition:r({},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 Sh=he((()=>{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(...i){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(i[0]):i[0]]):this._pushAnimates(n,i),this}}))})),Ch=Pd(0,(e=>(Sh(),new Th(e))),0,xh),Eh=Sd("onWindowResize",(()=>{})),Ph=Cd("offWindowResize",(()=>{})),Dh=Pd(0,(()=>{const e=bg();return e&&e.$vm?e.$vm.$locale:Il().getLocale()})),Ih=Pd(0,(e=>{const t=bg();if(!t)return!1;return t.$vm.$locale!==e&&(t.$vm.$locale=e,navigator.cookieEnabled&&window.localStorage&&(localStorage.UNI_LOCALE=e),Nv.invokeOnCallback("onLocaleChange",{locale:e}),!0)})),Mh={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const Oh=Pd(0,(()=>r({},wp)));let Ah,Lh,Rh;const $h=[];const Nh=Dd("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,i;void 0===Rh&&(Rh=!1,Ah="",Lh="uniPush is not enabled"),$h.push(((e,i)=>{e?t({cid:e}):n(i)})),void 0!==Ah&&(e=Ah,i=Lh,$h.forEach((t=>{t(e,i)})),$h.length=0)}))})),Bh={formatArgs:{showToast:!0},beforeInvoke(){Bl()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=Il(),i=n("uni.setClipboardData.success");i&&ov({title:i,icon:"success",mask:!1})}},Fh=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Gu(e,zu)},sourceType(e,t){t.sourceType=Gu(e,Yu)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),jh={formatArgs:{sourceType(e,t){t.sourceType=Gu(e,Yu)},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=["*"])}}},Vh=(Boolean,["all","image","video"]),Wh={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Gu(e,Yu)},type(e,t){t.type=Ku(e,Vh)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},Uh={formatArgs:{src(e,t){t.src=Iu(e)}}},Hh={formatArgs:{urls(e,t){t.urls=e.map((e=>g(e)&&e?Iu(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:g(e)&&e&&(t.current=Iu(e))}}},qh="json",zh=["text","arraybuffer"],Yh=encodeURIComponent;ArrayBuffer,Boolean;const Xh={formatArgs:{method(e,t){t.method=Ku((e||"").toUpperCase(),Xu)},data(e,t){t.data=e||""},url(e,t){t.method===Xu[0]&&x(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const i=n[1]||"";n=n[0].split("?");let o=n[1]||"";e=n[0];const s=o.split("&").filter((e=>e)),a={};s.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const r in t)if(u(t,r)){let e=t[r];null==e?e="":x(e)&&(e=JSON.stringify(e)),a[Yh(r)]=Yh(e)}return o=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(o?"?"+o:"")+(i?"#"+i:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Xu[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||qh).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===zh.indexOf(t.responseType)&&(t.responseType="text")}}},Kh={formatArgs:{filePath(e,t){e&&(t.filePath=Iu(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}};const Gh={url:{type:String,required:!0}},Jh=(np(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),np(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),sp("navigateTo")),Qh=sp("redirectTo"),Zh=sp("reLaunch"),ep=sp("switchTab"),tp={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(Gm().length-1,e)}}};function np(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 ip;function op(){ip=""}function sp(e){return{formatArgs:{url:ap(e)},beforeAll:op}}function ap(e){return function(t,n){if(!t)return'Missing required args: "url"';const i=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=Gm();return n.length&&(t=n[n.length-1].$page.route),jc(t,e)}(t)).split("?")[0],o=Vc(i,!0);if(!o)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(o.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!o.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!o.meta.isTabBar||"appLaunch"===n.openType||(t=i),o.meta.isEntry&&(t=t.replace(o.alias,"/")),n.url=function(e){if(!g(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 i=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),o=t.length>0?t.join("="):"";i.push(n+"="+encodeURIComponent(o))})),i.length?e+"?"+i.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(ip===t&&"appLaunch"!==n.openType)return`${ip} locked`;__uniConfig.ready&&(ip=t)}else if(o.meta.isTabBar){const e=Gm(),t=o.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const rp={formatArgs:{itemColor:"#000"}},lp=(Boolean,{formatArgs:{title:"",mask:!1}}),cp=(Boolean,{beforeInvoke(){$l()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!u(t,"cancelText")){const{t:e}=Il();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!u(t,"confirmText")){const{t:e}=Il();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),up=["success","loading","none","error"],dp=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Ku(e,up)},image(e,t){t.image=e?Iu(e):""},duration:1500,mask:!1}});let hp={},pp={};function fp(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}const mp="",gp={};function yp(e,t){const n=gp[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(/:(.*?);/),i=n?n[1]:"",o=atob(t[1]);let s=o.length;const a=new Uint8Array(s);for(;s--;)a[s]=o.charCodeAt(s);return vp(a,i)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const i=new XMLHttpRequest;i.open("GET",e,!0),i.responseType="blob",i.onload=function(){t(this.response)},i.onerror=n,i.send()}))}function vp(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const o=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],o,{type:t})}catch(i){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||o}}return n}function _p(e){for(const n in gp)if(u(gp,n)){if(gp[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return gp[t]=e,t}function bp(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete gp[e]}const wp=cu(),xp=cu();const kp=pu({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=sn(null),i=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),o=function(e,t,n){const i=Wt({width:-1,height:-1});return Zn((()=>r({},i)),(e=>t("resize",e))),()=>{const t=e.value;i.width=t.offsetWidth,i.height=t.offsetHeight,n()}}(n,t,i);return function(e,t,n,i){Ci(i),Ni((()=>{t.initial&&Tn(n);const o=e.value;o.offsetParent!==o.parentElement&&(o.parentElement.style.position="relative"),"AnimationEvent"in window||i()}))}(n,e,o,i),()=>is("uni-resize-sensor",{ref:n,onAnimationstartOnce:o},[is("div",{onScroll:o},[is("div",null,null)],40,["onScroll"]),is("div",{onScroll:o},[is("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Tp=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 Sp(e,t=!0){const n=t?Tp:1;e.width=e.offsetWidth*n,e.height=e.offsetHeight*n,e.getContext("2d").__hidpi__=t}let Cp=!1;function Ep(){if(Cp)return;Cp=!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,i,o,s,a,r,l,c,u){if(!this.__hidpi__)return e.apply(this,arguments);n*=Tp,i*=Tp,o*=Tp,s*=Tp,a*=Tp,r*=Tp,l=u?l*Tp:l,c=u?c*Tp:c,e.call(this,t,n,i,o,s,a,r,l,c)}}(t.drawImage),1!==Tp&&(!function(e,t){for(const n in e)u(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*Tp}));else if(Array.isArray(e))for(let t=0;t<e.length;t++)n[e[t]]*=Tp;return t.apply(this,n)}}(t[n])})),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Tp,e.apply(this,arguments),this.lineWidth/=Tp}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);const t=Array.prototype.slice.call(arguments);t[1]*=Tp,t[2]*=Tp,t[3]&&"number"==typeof t[3]&&(t[3]*=Tp);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Tp+n})),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Tp,t[2]*=Tp,t[3]&&"number"==typeof t[3]&&(t[3]*=Tp);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Tp+n})),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Tp,Tp),e.apply(this,arguments),this.scale(1/Tp,1/Tp)}}(t.drawImage))}const Pp=he((()=>Ep()));function Dp(e){return e?Iu(e):e}function Ip(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Mp(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let Op;function Ap(e=0,t=0){return Op||(Op=document.createElement("canvas")),Op.width=e,Op.height=t,Op}const Lp=pu({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}){Pp();const i=sn(null),o=sn(null),s=sn(null),a=sn(!1),l=function(e){return(t,n)=>{e(t,Yc(n))}}(t),{$attrs:c,$excludeAttrs:d,$listeners:h}=pf({excludeListeners:!0}),{_listeners:p}=function(e,t,n){const i=Cs((()=>{let i=["onTouchstart","onTouchmove","onTouchend"],o=t.value,s=r({},(()=>{let e={};for(const t in o)if(u(o,t)){const n=o[t];e[t]=n}return e})());return i.forEach((t=>{let i=[];s[t]&&i.push(mu((e=>{const i=e.currentTarget.getBoundingClientRect();Mp(i,e.touches),Mp(i,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&i.push(fc),s[t]=i})),s}));return{_listeners:i}}(e,h,l),{_handleSubscribe:f,_resize:g}=function(e,t,n){let i=[],o={};const s=Cs((()=>e.hidpi?Tp:1));function a(n){let i=t.value;if(!n||i.width!==Math.floor(n.width*s.value)||i.height!==Math.floor(n.height*s.value))if(i.width>0&&i.height>0){let t=i.getContext("2d"),n=t.getImageData(0,0,i.width,i.height);Sp(i,e.hidpi),t.putImageData(n,0,0)}else Sp(i,e.hidpi)}function l({actions:e,reserve:s},a){if(!e)return;if(n.value)return void i.push([e,s]);let r=t.value,l=r.getContext("2d");s||(l.fillStyle="#000000",l.strokeStyle="#000000",l.shadowColor="#000000",l.shadowBlur=0,l.shadowOffsetX=0,l.shadowOffsetY=0,l.setTransform(1,0,0,1,0,0),l.clearRect(0,0,r.width,r.height)),c(e);for(let t=0;t<e.length;t++){const n=e[t];let i=n.method;const s=n.data,r=s[0];if(/^set/.test(i)&&"setTransform"!==i){const n=i[3].toLowerCase()+i.slice(4);let o;if("fillStyle"===n||"strokeStyle"===n){if("normal"===r)o=Ip(s[1]);else if("linear"===r){const e=l.createLinearGradient(...s[1]);s[2].forEach((function(t){const n=t[0],i=Ip(t[1]);e.addColorStop(n,i)})),o=e}else if("radial"===r){let e=s[1];const t=e[0],n=e[1],i=e[2],a=l.createRadialGradient(t,n,0,t,n,i);s[2].forEach((function(e){const t=e[0],n=Ip(e[1]);a.addColorStop(t,n)})),o=a}else if("pattern"===r){if(!u(s[1],e.slice(t+1),a,(function(e){e&&(l[n]=l.createPattern(e,s[2]))})))break;continue}l[n]=o}else if("globalAlpha"===n)l[n]=Number(r)/255;else if("shadow"===n){let e=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];s.forEach((function(t,n){l[e[n]]="shadowColor"===e[n]?Ip(t):t}))}else if("fontSize"===n){const e=l.__font__||l.font;l.__font__=l.font=e.replace(/\d+\.?\d*px/,r+"px")}else"lineDash"===n?(l.setLineDash(r),l.lineDashOffset=s[1]||0):"textBaseline"===n?("normal"===r&&(s[0]="alphabetic"),l[n]=r):"font"===n?l.__font__=l.font=r:l[n]=r}else if("fillPath"===i||"strokePath"===i)i=i.replace(/Path/,""),l.beginPath(),s.forEach((function(e){l[e.method].apply(l,e.data)})),l[i]();else if("fillText"===i)l.fillText.apply(l,s);else if("drawImage"===i){if("break"===function(){let n=[...s],i=n[0],r=n.slice(1);if(o=o||{},!u(i,e.slice(t+1),a,(function(e){e&&l.drawImage.apply(l,[e].concat([...r.slice(4,8)],[...r.slice(0,4)]))})))return"break"}())break}else"clip"===i?(s.forEach((function(e){l[e.method].apply(l,e.data)})),l.clip()):l[i].apply(l,s)}n.value||a({errMsg:"drawCanvas:ok"})}function c(e){e.forEach((function(e){let t=e.method,n=e.data,i="";function s(){const e=o[i]=new Image;e.onload=function(){e.ready=!0},function(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):yp(e).then(_p)}(i).then((t=>{e.src=t})).catch((()=>{e.src=i}))}"drawImage"===t?(i=n[0],i=Dp(i),n[0]=i):"setFillStyle"===t&&"pattern"===n[0]&&(i=n[1],i=Dp(i),n[1]=i),i&&!o[i]&&s()}))}function u(e,t,s,a){let r=o[e];return r.ready?(a(r),!0):(i.unshift([t,!0]),n.value=!0,r.onload=function(){r.ready=!0,a(r),n.value=!1;let e=i.slice(0);i=[];for(let t=e.shift();t;)l({actions:t[0],reserve:t[1]},s),t=e.shift()},!1)}function d({x:e=0,y:n=0,width:i,height:o,destWidth:a,destHeight:r,hidpi:l=!0,dataType:c,quality:u=1,type:d="png"},h){const p=t.value;let f;const m=p.offsetWidth-e;i=i?Math.min(i,m):m;const g=p.offsetHeight-n;o=o?Math.min(o,g):g,l?(a=i,r=o):a||r?a?r||(r=Math.round(o/i*a)):a=Math.round(i/o*r):(a=Math.round(i*s.value),r=Math.round(o*s.value));const y=Ap(a,r),v=y.getContext("2d");let _;"jpeg"!==d&&"jpg"!==d||(d="jpeg",v.fillStyle="#fff",v.fillRect(0,0,a,r)),v.__hidpi__=!0,v.drawImageByCanvas(p,e,n,i,o,0,0,a,r,!1);try{let e;if("base64"===c)f=y.toDataURL(`image/${d}`,u);else{const e=v.getImageData(0,0,a,r);f=Array.prototype.slice.call(e.data)}_={data:f,compressed:e,width:a,height:r}}catch(b){_={errMsg:`canvasGetImageData:fail ${b}`}}if(y.height=y.width=0,v.__hidpi__=!1,!h)return _;h(_)}function h({data:e,x:n,y:i,width:o,height:s,compressed:a},r){try{0,s||(s=Math.round(e.length/4/o));const a=Ap(o,s);a.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),o,s),0,0),t.value.getContext("2d").drawImage(a,n,i,o,s),a.height=a.width=0}catch(l){return void r({errMsg:"canvasPutImageData:fail"})}r({errMsg:"canvasPutImageData:ok"})}function p({x:e=0,y:t=0,width:n,height:i,destWidth:o,destHeight:s,fileType:a,quality:r,dirname:l},c){const u=d({x:e,y:t,width:n,height:i,destWidth:o,destHeight:s,hidpi:!1,dataType:"base64",type:a,quality:r});var h;u.data&&u.data.length?(h=u.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),c({errMsg:n,tempFilePath:t})})(null,h)):c({errMsg:u.errMsg.replace("canvasPutImageData","toTempFilePath")})}const f={actionsChanged:l,getImageData:d,putImageData:h,toTempFilePath:p};function g(e,t,n){let i=f[e];0!==e.indexOf("_")&&m(i)&&i(t,n)}return r(f,{_resize:a,_handleSubscribe:g})}(e,o,a);return function(e,t,n,i){const o=ms().proxy;Ni((()=>{bm(t||_m(o),e,i),!n&&t||Zn((()=>o.id),((t,n)=>{bm(_m(o,t),e,i),wm(n&&_m(o,n))}))})),ji((()=>{wm(t||_m(o),i)}))}(f,function(e){const t=Ec(),n=ms().proxy,i=n.$options.name.toLowerCase(),o=e||n.id||"context"+km++;return Ni((()=>{n.$el.__uniContextInfo={id:o,type:i,page:t}})),`${i}.${o}`}(e.canvasId),!0),Ni((()=>{g()})),()=>{const{canvasId:t,disableScroll:a}=e;return is("uni-canvas",us({ref:i,"canvas-id":t,"disable-scroll":a},c.value,d.value,p.value),[is("canvas",{ref:o,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),is("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),is(kp,{ref:s,onResize:g},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Rp=bc("ucg"),$p=pu({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const i=sn(null);return function(e,t){const n=[],i=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);vo(Rp,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:i()})}});const o=_o(bu,!1);o&&o.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=i()),t}})}(e,gu(i,t)),()=>is("uni-checkbox-group",{ref:i},[n.default&&n.default()],512)}});const Np=pu({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:""}},setup(e,{slots:t}){const n=sn(null),i=sn(e.checked),o=Cs((()=>"true"===i.value||!0===i.value)),s=sn(e.value);const a=Cs((()=>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}(o.value)));Zn([()=>e.checked,()=>e.value],(([e,t])=>{i.value=e,s.value=t}));const{uniCheckGroup:r,uniLabel:l}=function(e,t,n){const i=Cs((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),o={reset:n},s=_o(Rp,!1);s&&s.addField(i);const a=_o(bu,!1);a&&a.addField(o);const r=_o(ku,!1);return ji((()=>{s&&s.removeField(i),a&&a.removeField(o)})),{uniCheckGroup:s,uniForm:a,uniLabel:r}}(i,s,(()=>{i.value=!1})),c=t=>{e.disabled||(i.value=!i.value,r&&r.checkboxChange(t),t.stopPropagation())};return l&&(l.addHandler(c),ji((()=>{l.removeHandler(c)}))),Su(e,{"label-click":c}),()=>{const o=_u(e,"disabled");let s;return s=i.value,is("uni-checkbox",us(o,{id:e.id,onClick:c,ref:n}),[is("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[is("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:a.value},[s?Cc(kc,e.disabled?"#ADADAD":e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Bp(){}const Fp={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 jp(e,t,n){function i(e){const t=Cs((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Bp,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Bp,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Zn((()=>t.value),(e=>e&&i(e)))}const Vp={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},Wp={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},Up={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"]},Hp=pu({name:"Image",props:Vp,setup(e,{emit:t}){const n=sn(null),i=function(e,t){const n=sn(""),i=Cs((()=>{let e="auto",i="";const o=Up[t.mode];return o?(o[0]&&(i=o[0]),o[1]&&(e=o[1])):(i="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${i};background-size:${e};`})),o=Wt({rootEl:e,src:Cs((()=>t.src?Iu(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:i,imgSrc:n});return Ni((()=>{const t=e.value.style;o.origWidth=Number(t.width)||0,o.origHeight=Number(t.height)||0})),o}(n,e),o=gu(n,t),{fixSize:s}=function(e,t,n){const i=()=>{const{mode:i}=t,o=Wp[i];if(!o)return;const{origWidth:s,origHeight:a}=n,r=s&&a?s/a:0;if(!r)return;const l=e.value,c=l[o[0]];c&&(l.style[o[1]]=function(e){qp&&e>10&&(e=2*Math.round(e/2));return e}(o[2](c,r))+"px")},o=()=>{const{style:t}=e.value,{origStyle:{width:i,height:o}}=n;t.width=i,t.height=o};return Zn((()=>t.mode),((e,t)=>{Wp[t]&&o(),Wp[e]&&i()})),{fixSize:i,resetSize:o}}(n,e,i);return function(e,t,n,i,o){let s,a;const r=(t=0,n=0,i="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=i},l=l=>{if(!l)return c(),void r();s=s||new Image,s.onload=e=>{const{width:u,height:d}=s;r(u,d,l),i(),s.draggable=t.draggable,a&&a.remove(),a=s,n.value.appendChild(s),c(),o("load",e,{width:u,height:d})},s.onerror=t=>{r(),c(),o("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},s.src=l},c=()=>{s&&(s.onload=null,s.onerror=null,s=null)};Zn((()=>e.src),(e=>l(e))),Zn((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),Ni((()=>l(e.src))),ji((()=>c()))}(i,e,n,s,o),()=>is("uni-image",{ref:n},[is("div",{style:i.modeStyle},null,4),Wp[e.mode]?is(kp,{onResize:s},null,8,["onResize"]):is("span",null,null)],512)}});const qp="Google Inc."===navigator.vendor;const zp=_e(!0),Yp=[];let Xp,Kp=0;const Gp=e=>Yp.forEach((t=>t.userAction=e));function Jp(e={userAction:!1}){if(!Xp){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!Kp&&Gp(!0),Kp++,setTimeout((()=>{!--Kp&&Gp(!1)}),0)}),zp)})),Xp=!0}Yp.push(e)}const Qp=()=>!!Kp;function Zp(){const e=Wt({userAction:!1});return Ni((()=>{Jp(e)})),ji((()=>{!function(e){const t=Yp.indexOf(e);t>=0&&Yp.splice(t,1)}(e)})),{state:e}}function ef(){const e=Wt({attrs:{}});return Ni((()=>{let t=ms();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function tf(e,t){const n=document.activeElement;if(!n)return t({});const i={};["input","textarea"].includes(n.tagName.toLowerCase())&&(i.start=n.selectionStart,i.end=n.selectionEnd),t(i)}function nf(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");const i=null===e?"":String(e);return null==n?i:i.slice(0,n)}const of=["none","text","decimal","numeric","tel","search","email","url"],sf=r({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~of.indexOf(e)},cursorColor:{type:String,default:""}},Fp),af=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function rf(e,t,n,i){const o=Se((n=>{t.value=nf(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});Zn((()=>e.modelValue),o),Zn((()=>e.value),o);const s=function(e,t){let n,i,o=0;const s=function(...s){const a=Date.now();clearTimeout(n),i=()=>{i=null,o=a,e.apply(this,s)},a-o<t?n=setTimeout(i,t-(a-o)):i()};return s.cancel=function(){clearTimeout(n),i=null},s.flush=function(){clearTimeout(n),i&&i()},s}(((e,t)=>{o.cancel(),n("update:modelValue",t.value),n("update:value",t.value),i("input",e,t)}),100);return $i((()=>{o.cancel(),s.cancel()})),{trigger:i,triggerInput:(e,t,n)=>{o.cancel(),s(e,t),n&&s.flush()}}}function lf(e,t){Zp();const n=Cs((()=>e.autoFocus||e.focus));function i(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(i,100)}Zn((()=>e.focus),(e=>{e?i():function(){const e=t.value;e&&e.blur()}()})),Ni((()=>{n.value&&Tn(i)}))}function cf(e,t,n,i){Hl(Mc(),"getSelectedTextRange",tf);const{fieldRef:o,state:s,trigger:a}=function(e,t,n){const i=sn(null),o=gu(t,n),s=Cs((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=Cs((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),r=Cs((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=Cs((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),c=nf(e.modelValue,e.type)||nf(e.value,e.type),u=Wt({value:c,valueOrigin:c,maxlength:l,focus:e.focus,composing:!1,selectionStart:s,selectionEnd:a,cursor:r});return Zn((()=>u.focus),(e=>n("update:focus",e))),Zn((()=>u.maxlength),(e=>u.value=u.value.slice(0,e)),{immediate:!1}),{fieldRef:i,state:u,trigger:o}}(e,t,n),{triggerInput:r}=rf(e,s,n,a);lf(e,o),jp(0,o);const{state:l}=ef();!function(e,t){const n=_o(bu,!1);if(!n)return;const i=ms(),o={submit(){const n=i.proxy;return[n[e],g(t)?n[t]:t.value]},reset(){g(t)?i.proxy[t]="":t.value=""}};n.addField(o),ji((()=>{n.removeField(o)}))}("name",s),function(e,t,n,i,o,s){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function r(){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}Zn([()=>t.selectionStart,()=>t.selectionEnd],a),Zn((()=>t.cursor),r),Zn((()=>e.value),(function(){const c=e.value;if(!c)return;const u=function(e,i){e.stopPropagation(),m(s)&&!1===s(e,t)||(t.value=c.value,t.composing&&n.ignoreCompositionEvent||o(e,{value:c.value,cursor:l(c)},i))};function d(e){n.ignoreCompositionEvent||i(e.type,e,{value:e.data})}c.addEventListener("change",(e=>e.stopPropagation())),c.addEventListener("focus",(function(e){t.focus=!0,i("focus",e,{value:t.value}),a(),r()})),c.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,u(e,!0)),t.focus=!1,i("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)}))}(o,s,e,a,r,i);return{fieldRef:o,state:s,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const uf=pu({name:"Input",props:r({},sf,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...af],setup(e,{emit:t,expose:n}){const i=["text","number","idcard","digit","password","tel"],o=["off","one-time-code"],s=Cs((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~i.includes(e.type)?e.type:"text"}return e.password?"password":t})),a=Cs((()=>{const t=o.indexOf(e.textContentType),n=o.indexOf(D(e.textContentType));return o[-1!==t?t:-1!==n?n:0]}));let r,l=sn("");const c=sn(null),{fieldRef:u,state:d,scopedAttrsState:h,fixDisabledColor:p,trigger:f}=cf(e,c,t,((e,t)=>{const n=e.target;if("number"===s.value){if(r&&(n.removeEventListener("blur",r),r=null),n.validity&&!n.validity.valid){if((!l.value||!n.value)&&"-"===e.data||"-"===l.value[0]&&"deleteContentBackward"===e.inputType)return l.value="-",t.value="",r=()=>{l.value=n.value=""},n.addEventListener("blur",r),!1;if(l.value)if(-1!==l.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=l.value.indexOf(".");return l.value=n.value=t.value=l.value.slice(0,e),!0}}else if("."===e.data)return l.value+=".",r=()=>{l.value=n.value=l.value.slice(0,-1)},n.addEventListener("blur",r),!1;return l.value=t.value=n.value="-"===l.value?"":l.value,!1}l.value=n.value;const i=t.maxlength;if(i>0&&n.value.length>i)return n.value=n.value.slice(0,i),t.value=n.value,!1}}));Zn((()=>d.value),(t=>{"number"!==e.type||"-"===l.value&&""===t||(l.value=t)}));const m=["number","digit"],g=Cs((()=>m.includes(e.type)?e.step:""));function y(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),f("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),d.value=e.value}}),()=>{let t=e.disabled&&p?is("input",{key:"disabled-input",ref:u,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:s.value,maxlength:d.maxlength,step:g.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):oi(is("input",{key:"input",ref:u,"onUpdate:modelValue":e=>d.value=e,disabled:!!e.disabled,type:s.value,maxlength:d.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},autocomplete:a.value,onKeyup:y,inputmode:e.inputmode},null,44,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[Ma,d.value]]);return is("uni-input",{ref:c},[is("div",{class:"uni-input-wrapper"},[oi(is("div",us(h.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Xs,!(d.value.length||"-"===l.value)]]),"search"===e.confirmType?is("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const df=["class","style"],hf=/^on[A-Z]+/,pf=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,i=ms(),o=an({}),s=an({}),a=an({}),r=n.concat(df);return i.attrs=Wt(i.attrs),Jn((()=>{const e=(n=i.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,i])=>(r.includes(n)?e.exclude[n]=i:hf.test(n)?(t||(e.attrs[n]=i),e.listeners[n]=i):e.attrs[n]=i,e)),{exclude:{},attrs:{},listeners:{}});var n;o.value=e.attrs,s.value=e.listeners,a.value=e.exclude})),{$attrs:o,$listeners:s,$excludeAttrs:a}};function ff(e){const t=[];return d(e)&&e.forEach((e=>{Jo(e)?e.type===Fo?t.push(...ff(e.children)):t.push(e):d(e)&&t.push(...ff(e))})),t}const mf=pu({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=sn(null),i=sn(!1);let{setContexts:o,events:s}=function(e,t){const n=sn(0),i=sn(0),o=Wt({x:null,y:null}),s=sn(null);let a=null,r=[];function l(t){t&&1!==t&&(e.scaleArea?r.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function c(e,n=r){let i=t.value;function o(e){for(let t=0;t<n.length;t++){const i=n[t];if(e===i.rootRef.value)return i}return e===i||e===document.body||e===document?null:o(e.parentNode)}return o(e)}const u=mu((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(s.value=gf(t),o.x=t.x,o.y=t.y,!e.scaleArea){let e=c(n[0].target),t=c(n[1].target);a=e&&e===t?e:null}}})),d=mu((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!==o.x&&s.value&&s.value>0){l(gf(n)/s.value)}o.x=n.x,o.y=n.y}})),h=mu((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(o.x=0,o.y=0,s.value=null,e.scaleArea?r.forEach((function(e){e._endScale()})):a&&a._endScale())}));function p(){f(),r.forEach((function(e,t){e.setParent()}))}function f(){let e=window.getComputedStyle(t.value),o=t.value.getBoundingClientRect();n.value=o.width-["Left","Right"].reduce((function(t,n){const i="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[i])}),0),i.value=o.height-["Top","Bottom"].reduce((function(t,n){const i="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[i])}),0)}return vo("movableAreaWidth",n),vo("movableAreaHeight",i),{setContexts(e){r=e},events:{_onTouchstart:u,_onTouchmove:d,_onTouchend:h,_resize:p}}}(e,n);const{$listeners:a,$attrs:r,$excludeAttrs:l}=pf(),c=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=c[e],n=s[`_${e}`];c[e]=t?[].concat(t,n):n})),Ni((()=>{s._resize(),i.value=!0}));let u=[];const d=[];function h(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n=n.el;const i=d.find((e=>n===e.rootRef.value));i&&e.push(Jt(i))}o(e)}return vo("_isMounted",i),vo("movableAreaRootRef",n),vo("addMovableViewContext",(e=>{d.push(e),h()})),vo("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())})),()=>{const e=t.default&&t.default();return u=ff(e),is("uni-movable-area",us({ref:n},r.value,l.value,c),[is(kp,{onResize:s._resize},null,8,["onResize"]),u],16)}}});function gf(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const yf=function(e,t,n,i){e.addEventListener(t,(e=>{m(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let vf,_f;function bf(e,t,n){ji((()=>{document.removeEventListener("mousemove",vf),document.removeEventListener("mouseup",_f)}));let i=0,o=0,s=0,a=0;const r=function(e,n,r,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:r,y:l,dx:r-i,dy:l-o,ddx:r-s,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,c,u=null;yf(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!u)return u=e,i=s=e.touches[0].pageX,o=a=e.touches[0].pageY,r(e,"start",i,o)})),yf(e,"mousedown",(function(e){if(c=!0,!l&&!u)return u=e,i=s=e.pageX,o=a=e.pageY,r(e,"start",i,o)})),yf(e,"touchmove",(function(e){if(1===e.touches.length&&u){const t=r(e,"move",e.touches[0].pageX,e.touches[0].pageY);return s=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const d=vf=function(e){if(!l&&c&&u){const t=r(e,"move",e.pageX,e.pageY);return s=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),yf(e,"touchend",(function(e){if(0===e.touches.length&&u)return l=!1,u=null,r(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const h=_f=function(e){if(c=!1,!l&&u)return u=null,r(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",h),yf(e,"touchcancel",(function(e){if(u){l=!1;const t=u;return u=null,r(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function wf(e,t,n){return e>t-n&&e<t+n}function xf(e,t){return wf(e,0,t)}function kf(){}function Tf(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Sf(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function Cf(e,t,n){this._springX=new Sf(e,t,n),this._springY=new Sf(e,t,n),this._springScale=new Sf(e,t,n),this._startTime=0}kf.prototype.x=function(e){return Math.sqrt(e)},Tf.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Tf.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Tf.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Tf.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}},Tf.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}},Tf.prototype.dt=function(){return-this._x_v/this._x_a},Tf.prototype.done=function(){const e=wf(this.s().x,this._endPositionX)||wf(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Tf.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Tf.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Sf.prototype._solve=function(e,t){const n=this._c,i=this._m,o=this._k,s=n*n-4*i*o;if(0===s){const o=-n/(2*i),s=e,a=t/(o*e);return{x:function(e){return(s+a*e)*Math.pow(Math.E,o*e)},dx:function(e){const t=Math.pow(Math.E,o*e);return o*(s+a*e)*t+a*t}}}if(s>0){const o=(-n-Math.sqrt(s))/(2*i),a=(-n+Math.sqrt(s))/(2*i),r=(t-o*e)/(a-o),l=e-r;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,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+r*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,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*o*t+r*a*n}}}const a=Math.sqrt(4*i*o-n*n)/(2*i),r=-n/2*i,l=e,c=(t-r*e)/a;return{x:function(e){return Math.pow(Math.E,r*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,r*e),n=Math.cos(a*e),i=Math.sin(a*e);return t*(c*a*n-l*a*i)+r*t*(c*i+l*n)}}},Sf.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Sf.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Sf.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!xf(t,.1)){t=t||0;let i=this._endPosition;this._solution&&(xf(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),xf(t,.1)&&(t=0),xf(i,.1)&&(i=0),i+=this._endPosition),this._solution&&xf(i-e,.1)&&xf(t,.1)||(this._endPosition=e,this._solution=this._solve(i-this._endPosition,t),this._startTime=n)}},Sf.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Sf.prototype.done=function(e){return e||(e=(new Date).getTime()),wf(this.x(),this._endPosition,.1)&&xf(this.dx(),.1)},Sf.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())},Sf.prototype.springConstant=function(){return this._k},Sf.prototype.damping=function(){return this._c},Sf.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}]},Cf.prototype.setEnd=function(e,t,n,i){const o=(new Date).getTime();this._springX.setEnd(e,i,o),this._springY.setEnd(t,i,o),this._springScale.setEnd(n,i,o),this._startTime=o},Cf.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)}},Cf.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Cf.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 Ef(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Pf=pu({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:.5},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 i=sn(null),o=gu(i,n),{setParent:s}=function(e,t,n){const i=_o("_isMounted",sn(!1)),o=_o("addMovableViewContext",(()=>{})),s=_o("removeMovableViewContext",(()=>{}));let a,r,l=sn(1),c=sn(1),u=sn(!1),d=sn(0),h=sn(0),p=null,f=null,m=!1,g=null,y=null;const v=new kf,_=new kf,b={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=Cs((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Tf(1,w.value);Zn((()=>e.disabled),(()=>{q()}));const{_updateOldScale:k,_endScale:T,_setScale:S,scaleValueSync:C,_updateBoundary:E,_updateOffset:P,_updateWH:D,_scaleOffset:I,minX:M,minY:O,maxX:A,maxY:L,FAandSFACancel:R,_getLimitXY:$,_setTransform:N,_revise:B,dampingNumber:F,xMove:j,yMove:V,xSync:W,ySync:U,_STD:H}=function(e,t,n,i,o,s,a,r,l,c){const u=Cs((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=Cs((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),h=sn(Number(e.scaleValue)||1);Zn(h,(e=>{N(e)})),Zn(u,(()=>{$()})),Zn(d,(()=>{$()})),Zn((()=>e.scaleValue),(e=>{h.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:v,maxX:_,maxY:b}=function(e,t,n){const i=_o("movableAreaWidth",sn(0)),o=_o("movableAreaHeight",sn(0)),s=_o("movableAreaRootRef"),a={x:0,y:0},r={x:0,y:0},l=sn(0),c=sn(0),u=sn(0),d=sn(0),h=sn(0),p=sn(0);function f(){let e=0-a.x+r.x,t=i.value-l.value-a.x-r.x;u.value=Math.min(e,t),h.value=Math.max(e,t);let n=0-a.y+r.y,s=o.value-c.value-a.y-r.y;d.value=Math.min(n,s),p.value=Math.max(n,s)}function m(){a.x=Mf(e.value,s.value),a.y=Of(e.value,s.value)}function g(i){i=i||t.value,i=n(i);let o=e.value.getBoundingClientRect();c.value=o.height/t.value,l.value=o.width/t.value;let s=c.value*i,a=l.value*i;r.x=(a-l.value)/2,r.y=(s-c.value)/2}return{_updateBoundary:f,_updateOffset:m,_updateWH:g,_scaleOffset:r,minX:u,minY:d,maxX:h,maxY:p}}(t,i,R),{FAandSFACancel:w,_getLimitXY:x,_animationTo:k,_setTransform:T,_revise:S,dampingNumber:C,xMove:E,yMove:P,xSync:D,ySync:I,_STD:M}=function(e,t,n,i,o,s,a,r,l,c,u,d,h,p){const f=Cs((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),m=Cs((()=>"all"===t.direction||"horizontal"===t.direction)),g=Cs((()=>"all"===t.direction||"vertical"===t.direction)),y=sn(Lf(t.x)),v=sn(Lf(t.y));Zn((()=>t.x),(e=>{y.value=Lf(e)})),Zn((()=>t.y),(e=>{v.value=Lf(e)})),Zn(y,(e=>{S(e)})),Zn(v,(e=>{C(e)}));const _=new Cf(1,9*Math.pow(f.value,2)/40,f.value);function b(e,t){let n=!1;return e>o.value?(e=o.value,n=!0):e<a.value&&(e=a.value,n=!0),t>s.value?(t=s.value,n=!0):t<r.value&&(t=r.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){d&&d.cancel(),u&&u.cancel()}function x(e,n,o,s,a,r){w(),m.value||(e=l.value),g.value||(n=c.value),t.scale||(o=i.value);let d=b(e,n);e=d.x,n=d.y,t.animation?(_._springX._solution=null,_._springY._solution=null,_._springScale._solution=null,_._springX._endPosition=l.value,_._springY._endPosition=c.value,_._springScale._endPosition=i.value,_.setEnd(e,n,o,1),u=Af(_,(function(){let e=_.x();k(e.x,e.y,e.scale,s,a,r)}),(function(){u.cancel()}))):k(e,n,o,s,a,r)}function k(o,s,a,r="",u,d){null!==o&&"NaN"!==o.toString()&&"number"==typeof o||(o=l.value||0),null!==s&&"NaN"!==s.toString()&&"number"==typeof s||(s=c.value||0),o=Number(o.toFixed(1)),s=Number(s.toFixed(1)),a=Number(a.toFixed(1)),l.value===o&&c.value===s||u||p("change",{},{x:Ef(o,n.x),y:Ef(s,n.y),source:r}),t.scale||(a=i.value),a=+(a=h(a)).toFixed(3),d&&a!==i.value&&p("scale",{},{x:o,y:s,scale:a});let f="translateX("+o+"px) translateY("+s+"px) translateZ(0px) scale("+a+")";e.value&&(e.value.style.transform=f,e.value.style.webkitTransform=f,l.value=o,c.value=s,i.value=a)}function T(e){let t=b(l.value,c.value),n=t.x,o=t.y,s=t.outOfBounds;return s&&x(n,o,i.value,e),s}function S(e){if(m.value){if(e+n.x===l.value)return l;u&&u.cancel(),x(e+n.x,v.value+n.y,i.value)}return e}function C(e){if(g.value){if(e+n.y===c.value)return c;u&&u.cancel(),x(y.value+n.x,e+n.y,i.value)}return e}return{FAandSFACancel:w,_getLimitXY:b,_animationTo:x,_setTransform:k,_revise:T,dampingNumber:f,xMove:m,yMove:g,xSync:y,ySync:v,_STD:_}}(t,e,g,i,_,b,y,v,a,r,l,c,R,n);function O(t,n){if(e.scale){t=R(t),m(t),p();const e=x(a.value,r.value),i=e.x,o=e.y;n?k(i,o,t,"",!0,!0):If((function(){T(i,o,t,"",!0,!0)}))}}function A(){s.value=!0}function L(e){o.value=e}function R(e){return e=Math.max(.5,u.value,e),e=Math.min(10,d.value,e)}function $(){if(!e.scale)return!1;O(i.value,!0),L(i.value)}function N(t){return!!e.scale&&(O(t=R(t),!0),L(t),t)}function B(){s.value=!1,L(i.value)}function F(e){e&&(e=o.value*e,A(),O(e))}return{_updateOldScale:L,_endScale:B,_setScale:F,scaleValueSync:h,_updateBoundary:p,_updateOffset:f,_updateWH:m,_scaleOffset:g,minX:y,minY:v,maxX:_,maxY:b,FAandSFACancel:w,_getLimitXY:x,_animationTo:k,_setTransform:T,_revise:S,dampingNumber:C,xMove:E,yMove:P,xSync:D,ySync:I,_STD:M}}(e,n,t,l,c,u,d,h,p,f);function q(){u.value||e.disabled||(R(),b.historyX=[0,0],b.historyY=[0,0],b.historyT=[0,0],j.value&&(a=d.value),V.value&&(r=h.value),n.value.style.willChange="transform",g=null,y=null,m=!0)}function z(t){if(!u.value&&!e.disabled&&m){let n=d.value,i=h.value;if(null===y&&(y=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),j.value&&(n=t.detail.dx+a,b.historyX.shift(),b.historyX.push(n),V.value||null!==g||(g=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(i=t.detail.dy+r,b.historyY.shift(),b.historyY.push(i),j.value||null!==g||(g=Math.abs(t.detail.dy/t.detail.dx)<1)),b.historyT.shift(),b.historyT.push(t.detail.timeStamp),!g){t.preventDefault();let o="touch";n<M.value?e.outOfBounds?(o="touch-out-of-bounds",n=M.value-v.x(M.value-n)):n=M.value:n>A.value&&(e.outOfBounds?(o="touch-out-of-bounds",n=A.value+v.x(n-A.value)):n=A.value),i<O.value?e.outOfBounds?(o="touch-out-of-bounds",i=O.value-_.x(O.value-i)):i=O.value:i>L.value&&(e.outOfBounds?(o="touch-out-of-bounds",i=L.value+_.x(i-L.value)):i=L.value),If((function(){N(n,i,l.value,o)}))}}}function Y(){if(!u.value&&!e.disabled&&m&&(n.value.style.willChange="auto",m=!1,!g&&!B("out-of-bounds")&&e.inertia)){const e=1e3*(b.historyX[1]-b.historyX[0])/(b.historyT[1]-b.historyT[0]),t=1e3*(b.historyY[1]-b.historyY[0])/(b.historyT[1]-b.historyT[0]),n=d.value,i=h.value;x.setV(e,t),x.setS(n,i);const o=x.delta().x,s=x.delta().y;let a=o+n,r=s+i;a<M.value?(a=M.value,r=i+(M.value-n)*s/o):a>A.value&&(a=A.value,r=i+(A.value-n)*s/o),r<O.value?(r=O.value,a=n+(O.value-i)*o/s):r>L.value&&(r=L.value,a=n+(L.value-i)*o/s),x.setEnd(a,r),f=Af(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 X(){if(!i.value)return;R();let t=e.scale?C.value:1;P(),D(t),E();let n=$(W.value+I.x,U.value+I.y),o=n.x,s=n.y;N(o,s,t,"",!0),k(t)}return Ni((()=>{bf(n.value,(e=>{switch(e.detail.state){case"start":q();break;case"move":z(e);break;case"end":Y()}})),X(),x.reconfigure(1,w.value),H.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:X,_endScale:T,_setScale:S};o(e),Vi((()=>{s(e)}))})),Vi((()=>{R()})),{setParent:X}}(e,o,i);return()=>is("uni-movable-view",{ref:i},[is(kp,{onResize:s},null,8,["onResize"]),t.default&&t.default()],512)}});let Df=!1;function If(e){Df||(Df=!0,requestAnimationFrame((function(){e(),Df=!1})))}function Mf(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=Mf(e.offsetParent,t):0}function Of(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=Of(e.offsetParent,t):0}function Af(e,t,n){let i={id:0,cancelled:!1};return function e(t,n,i,o){if(!t||!t.cancelled){i(n);let s=n.done();s||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,o))),s&&o&&o(n)}}(i,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),model:e}}function Lf(e){return/\d+[ur]px$/i.test(e)?Bd(parseFloat(e)):Number(e)||0}const Rf=["navigate","redirect","switchTab","reLaunch","navigateBack"],$f=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],Nf=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],Bf={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~Rf.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||$f.concat(Nf).includes(e)},animationDuration:{type:[String,Number],default:300}};const Ff=pu({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:r({},Bf,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=sn(null),i=ms(),o=i&&i.vnode.scopeId||"",{hovering:s,binding:a}=vu(e),r=function(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":Ly({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":Ry({url:e.url,exists:e.exists});break;case"switchTab":By({url:e.url});break;case"reLaunch":$y({url:e.url});break;case"navigateBack":Oy({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}(e);return()=>{const{hoverClass:l,url:c}=e,u=e.hoverClass&&"none"!==e.hoverClass,d=e.renderLink?is("a",{class:"navigator-wrap",href:c,onClick:fc,onMousedown:fc},[t.default&&t.default()],40,["href","onClick","onMousedown"]):t.default&&t.default();return is("uni-navigator",us({class:u&&s.value?l:"",ref:n},u&&a,i?i.attrs:{},{[o]:""},{onClick:r}),[d],16,["onClick"])}}});const jf=pu({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return d(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 i=sn(null),o=sn(null),s=gu(i,n),a=function(e){const t=Wt([...e.value]),n=Wt({value:t,height:34});return Zn((()=>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),r=sn(null);Ni((()=>{const e=r.value;e&&(a.height=e.$el.offsetHeight)}));let l=sn([]),c=sn([]);function u(e){let t=c.value;t=t.filter((e=>e.type!==Vo));let n=t.indexOf(e);return-1!==n?n:l.value.indexOf(e)}return vo("getPickerViewColumn",(function(e){return Cs({get(){const t=u(e.vnode);return a.value[t]||0},set(t){const i=u(e.vnode);if(i<0)return;if(a.value[i]!==t){a.value[i]=t;const e=a.value.map((e=>e));n("update:value",e),s("change",{},{value:e})}}})})),vo("pickerViewProps",e),vo("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=ff(e);l.value=t,Tn((()=>{c.value=t}))}return is("uni-picker-view",{ref:i},[is(kp,{ref:r,onResize:({height:e})=>a.height=e},null,8,["onResize"]),is("div",{ref:o,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class Vf{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 Wf(e,t,n){return e>t-n&&e<t+n}function Uf(e,t){return Wf(e,0,t)}class Hf{constructor(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}_solve(e,t){const n=this._c,i=this._m,o=this._k,s=n*n-4*i*o;if(0===s){const o=-n/(2*i),s=e,a=t/(o*e);return{x:function(e){return(s+a*e)*Math.pow(Math.E,o*e)},dx:function(e){const t=Math.pow(Math.E,o*e);return o*(s+a*e)*t+a*t}}}if(s>0){const o=(-n-Math.sqrt(s))/(2*i),a=(-n+Math.sqrt(s))/(2*i),r=(t-o*e)/(a-o),l=e-r;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,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+r*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,o*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*o*t+r*a*n}}}const a=Math.sqrt(4*i*o-n*n)/(2*i),r=-n/2*i,l=e,c=(t-r*e)/a;return{x:function(e){return Math.pow(Math.E,r*e)*(l*Math.cos(a*e)+c*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,r*e),n=Math.cos(a*e),i=Math.sin(a*e);return t*(c*a*n-l*a*i)+r*t*(c*i+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||!Uf(t,.4)){t=t||0;let i=this._endPosition;this._solution&&(Uf(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),i=this._solution.x((n-this._startTime)/1e3),Uf(t,.4)&&(t=0),Uf(i,.4)&&(i=0),i+=this._endPosition),this._solution&&Uf(i-e,.4)&&Uf(t,.4)||(this._endPosition=e,this._solution=this._solve(i-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()),Wf(this.x(),this._endPosition,.4)&&Uf(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 qf{constructor(e,t,n){this._extent=e,this._friction=t||new Vf(.01),this._spring=n||new Hf(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 zf{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 qf(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)<this._itemSize&&Math.abs(n.y)<300||Math.abs(n.y)<150))return void this.snap();if(this._enableX&&(Math.abs(e)<this._itemSize&&Math.abs(n.x)<300||Math.abs(n.x)<150))return void this.snap()}let i;if(this._enableX?this._scroll.set(this._position,n.x):this._enableY&&this._scroll.set(this._position,n.y),this._enableSnap){const e=this._scroll._friction.x(100),t=e%this._itemSize;i=Math.abs(t)>this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,i<=0&&i>=-this._extent&&this._scroll.setVelocityByEnd(i)}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 i={id:0,cancelled:!1};return function e(t,n,i,o){if(!t||!t.cancelled){i(n);const s=n.done();s||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,i,o))),s&&o&&o(n)}}(i,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,i),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 i=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/i),this._lastTime=e)}),(()=>{this._enableSnap&&(i<=0&&i>=-this._extent&&(this._position=i,this.updatePosition()),m(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),m(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(m(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 i=0;const o=this._position;this._enableX?(i=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(i=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-i?this._position=-i:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),o!==this._position&&(this.dispatchScroll(),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=i,this._scroll._extent=i}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function Yf(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},i=new zf(e,t);function o(e){const t=e,i=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:i.screenX-n.x,y:i.screenY-n.y}}return{scroller:i,handleTouchStart:function(e){const t=e,o=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=o.screenX,n.y=o.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||o.timeStamp],n.listener=i,i.onTouchStart&&i.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,i=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const s=o(e);if(s){for(n.maxDy=Math.max(n.maxDy,Math.abs(s.y)),n.maxDx=Math.max(n.maxDx,Math.abs(s.x)),n.historyX.push(s.x),n.historyY.push(s.y),n.historyTime.push(t.detail.timeStamp||i.timeStamp);n.historyTime.length>10;)n.historyTime.shift(),n.historyX.shift(),n.historyY.shift();n.listener&&n.listener.onTouchMove&&n.listener.onTouchMove(s.x,s.y)}}},handleTouchEnd:function(e){if(-1!==n.trackingID){e.preventDefault();const t=o(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const i={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,o=n.historyTime[t],s=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=o-n.historyTime[t];if(e>30&&e<50){i.x=(s-n.historyX[t])/(e/1e3),i.y=(a-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,i)}}}}}let Xf=0;const Kf=pu({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const i=sn(null),o=sn(null),s=_o("getPickerViewColumn"),a=ms(),r=s?s(a):sn(0),l=_o("pickerViewProps"),c=_o("pickerViewState"),u=sn(34),d=sn(null);Ni((()=>{const e=d.value;u.value=e.$el.offsetHeight}));const h=Cs((()=>(c.height-u.value)/2)),{state:p}=ef(),f=function(e){const t="uni-picker-view-content-"+Xf++;return Zn((()=>e.value),(function(){const n=document.createElement("style");n.innerText=`.uni-picker-view-content.${t}>*{height: ${e.value}px;overflow: hidden;}`,document.head.appendChild(n)})),t}(u);let m;const g=Wt({current:r.value,length:0});let y;function v(){m&&!y&&(y=!0,Tn((()=>{y=!1;let e=Math.min(g.current,g.length-1);e=Math.max(e,0),m.update(e*u.value,void 0,u.value)})))}Zn((()=>r.value),(e=>{e!==g.current&&(g.current=e,v())})),Zn((()=>g.current),(e=>r.value=e)),Zn([()=>u.value,()=>g.length,()=>c.height],v);let _=0;function b(e){const t=_+e.deltaY;if(Math.abs(t)>10){_=0;let e=Math.min(g.current+(t<0?-1:1),g.length-1);g.current=e=Math.max(e,0),m.scrollTo(e*u.value)}else _=t;e.preventDefault()}function w({clientY:e}){const t=i.value;if(!m.isScrolling()){const n=e-t.getBoundingClientRect().top-c.height/2,i=u.value/2;if(!(Math.abs(n)<=i)){const e=Math.ceil((Math.abs(n)-i)/u.value),t=n<0?-e:e;let o=Math.min(g.current+t,g.length-1);g.current=o=Math.max(o,0),m.scrollTo(o*u.value)}}}return Ni((()=>{const e=i.value,t=o.value,{scroller:n,handleTouchStart:s,handleTouchMove:a,handleTouchEnd:r}=Yf(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:u.value,friction:new Vf(1e-4),spring:new Hf(2,90,20),onSnap:e=>{isNaN(e)||e===g.current||(g.current=e)}});m=n,bf(e,(e=>{switch(e.detail.state){case"start":s(e);break;case"move":a(e),e.stopPropagation();break;case"end":case"cancel":r(e)}}),!0),function(e){let t=0,n=0;e.addEventListener("touchstart",(e=>{const i=e.changedTouches[0];t=i.clientX,n=i.clientY})),e.addEventListener("touchend",(e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-t)<20&&Math.abs(i.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]=i[e]})),e.target.dispatchEvent(n)}}))}(e),v()})),()=>{const e=t.default&&t.default();g.length=ff(e).length;const n=`${h.value}px 0`;return is("uni-picker-view-column",{ref:i},[is("div",{onWheel:b,onClick:w,class:"uni-picker-view-group"},[is("div",us(p.attrs,{class:["uni-picker-view-mask",l.maskClass],style:`background-size: 100% ${h.value}px;${l.maskStyle}`}),null,16),is("div",us(p.attrs,{class:["uni-picker-view-indicator",l.indicatorClass],style:l.indicatorStyle}),[is(kp,{ref:d,onResize:({height:e})=>u.value=e},null,8,["onResize"])],16),is("div",{ref:o,class:["uni-picker-view-content",f],style:{padding:n}},[e],6)],40,["onWheel","onClick"])],512)}}}),Gf="#007aff",Jf="backwards",Qf=pu({name:"Progress",props:{percent:{type:[Number,String],default:0,validator:e=>!isNaN(parseFloat(e))},fontSize:{type:[String,Number],default:16},showInfo:{type:[Boolean,String],default:!1},strokeWidth:{type:[Number,String],default:6,validator:e=>!isNaN(parseFloat(e))},color:{type:String,default:Gf},activeColor:{type:String,default:Gf},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Jf},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=sn(null),n=function(e){const t=sn(0),n=Cs((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),i=Cs((()=>{const n=e.color!==Gf&&e.activeColor===Gf?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),o=Cs((()=>{if("string"==typeof e.percent&&!/^-?\d*\.?\d*$/.test(e.percent))return 0;let t=parseFloat(e.percent);return Number.isNaN(t)||t<0?t=0:t>100&&(t=100),t}));return Wt({outerBarStyle:n,innerBarStyle:i,realPercent:o,currentPercent:t,strokeTimer:0,lastPercent:0})}(e);return Zf(n,e),Zn((()=>n.realPercent),((t,i)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=i||0,Zf(n,e)})),()=>{const{showInfo:i}=e,{outerBarStyle:o,innerBarStyle:s,currentPercent:a}=n;return is("uni-progress",{class:"uni-progress",ref:t},[is("div",{style:o,class:"uni-progress-bar"},[is("div",{style:s,class:"uni-progress-inner-bar"},null,4)],4),i?is("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function Zf(e,t){t.active?(e.currentPercent=t.activeMode===Jf?0:e.lastPercent,e.strokeTimer=setInterval((()=>{e.currentPercent+1>e.realPercent?(e.currentPercent=e.realPercent,e.strokeTimer&&clearInterval(e.strokeTimer)):e.currentPercent+=1}),parseFloat(t.duration))):e.currentPercent=e.realPercent}const em=bc("ucg"),tm=pu({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const i=sn(null);return function(e,t){const n=[];Ni((()=>{r(n.length-1)}));const i=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};vo(em,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,o){r(n.indexOf(o),!0),t("change",e,{value:i()})}});const o=_o(bu,!1),s={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=i()),t}};o&&(o.addField(s),ji((()=>{o.removeField(s)})));function a(e,t){e.value={radioChecked:t,value:e.value.value}}function r(e,t){n.forEach(((i,o)=>{o!==e&&(t?a(n[o],!1):n.forEach(((e,t)=>{o>=t||n[t].value.radioChecked&&a(n[o],!1)})))}))}}(e,gu(i,t)),()=>is("uni-radio-group",{ref:i},[n.default&&n.default()],512)}});const nm=pu({name:"Radio",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:"#ffffff"}},setup(e,{slots:t}){const n=sn(null),i=sn(e.checked),o=sn(e.value);const s=Cs((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return i.value?(n.backgroundColor=e.activeBackgroundColor||e.color,n.borderColor=e.activeBorderColor||n.backgroundColor):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value)));Zn([()=>e.checked,()=>e.value],(([e,t])=>{i.value=e,o.value=t}));const{uniCheckGroup:a,uniLabel:r,field:l}=function(e,t,n){const i=Cs({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),o={reset:n},s=_o(em,!1);s&&s.addField(i);const a=_o(bu,!1);a&&a.addField(o);const r=_o(ku,!1);return ji((()=>{s&&s.removeField(i),a&&a.removeField(o)})),{uniCheckGroup:s,uniForm:a,uniLabel:r,field:i}}(i,o,(()=>{i.value=!1})),c=t=>{e.disabled||i.value||(i.value=!0,a&&a.radioChange(t,l),t.stopPropagation())};return r&&(r.addHandler(c),ji((()=>{r.removeHandler(c)}))),Su(e,{"label-click":c}),()=>{const o=_u(e,"disabled");let a;return a=i.value,is("uni-radio",us(o,{id:e.id,onClick:c,ref:n}),[is("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":i.value?s.value.borderColor:e.activeBorderColor}},[is("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:s.value},[a?Cc(kc,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});const im=pu({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=sn(null),i=Cs((()=>{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})),o=Cs((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:s,refresherDefaultStyle:a,refresherThreshold:r}=e;return is("div",{ref:n,style:i.value,class:"uni-scroll-view-refresher"},["none"!==a?is("div",{class:"uni-scroll-view-refresh"},[is("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==s?is("svg",{key:"refresh__icon",style:{transform:"rotate("+o.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[is("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),is("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==s?is("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[is("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===a?is("div",{class:"uni-scroll-view-refresher-container",style:{height:`${r}px`}},[t.default&&t.default()]):null],4)}}}),om=_e(!0),sm=pu({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:i}){const o=sn(null),s=sn(null),a=sn(null),r=sn(null),l=gu(o,t),{state:c,scrollTopNumber:u,scrollLeftNumber:d}=function(e){const t=Cs((()=>Number(e.scrollTop)||0)),n=Cs((()=>Number(e.scrollLeft)||0));return{state:Wt({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:h,realScrollY:p}=function(e,t,n,i,o,s,a,r,l){let c=!1,u=0,d=!1,h=()=>{};const p=Cs((()=>e.scrollX)),f=Cs((()=>e.scrollY)),m=Cs((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),g=Cs((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function y(e,t){const n=a.value;let i=0,o="";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?i=n.scrollLeft-e:"y"===t&&(i=n.scrollTop-e),0===i)return;let s=r.value;s.style.transition="transform .3s ease-out",s.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?o="translateX("+i+"px) translateZ(0)":"y"===t&&(o="translateY("+i+"px) translateZ(0)"),s.removeEventListener("transitionend",h),s.removeEventListener("webkitTransitionEnd",h),h=()=>x(e,t),s.addEventListener("transitionend",h),s.addEventListener("webkitTransitionEnd",h),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),s.style.transform=o,s.style.webkitTransform=o}function v(e){const n=e.target;o("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&&(o("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&&(o("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),p.value&&(n.scrollLeft<=m.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(o("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&&(o("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function _(t){f.value&&(e.scrollWithAnimation?y(t,"y"):a.value.scrollTop=t)}function b(t){p.value&&(e.scrollWithAnimation?y(t,"x"):a.value.scrollLeft=t)}function w(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=s.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),i=n.getBoundingClientRect();if(p.value){let n=i.left-t.left,o=a.value.scrollLeft+n;e.scrollWithAnimation?y(o,"x"):a.value.scrollLeft=o}if(f.value){let n=i.top-t.top,o=a.value.scrollTop+n;e.scrollWithAnimation?y(o,"y"):a.value.scrollTop=o}}}}function x(e,t){r.value.style.transition="",r.value.style.webkitTransition="",r.value.style.transform="",r.value.style.webkitTransform="";let n=a.value;"x"===t?(n.style.overflowX=p.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),r.value.removeEventListener("transitionend",h),r.value.removeEventListener("webkitTransitionEnd",h)}function k(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,c||(c=!0,o("refresherrefresh",{},{dy:S.y-T.y}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":c=!1,t.refresherHeight=u=0,"restore"===n&&(d=!1,o("refresherrestore",{},{dy:S.y-T.y})),"refresherabort"===n&&d&&(d=!1,o("refresherabort",{},{dy:S.y-T.y}))}t.refreshState=n}}let T={x:0,y:0},S={x:0,y:e.refresherThreshold};return Ni((()=>{Tn((()=>{_(n.value),b(i.value)})),w(e.scrollIntoView);let s=function(e){e.preventDefault(),e.stopPropagation(),v(e)},r=null,l=function(n){if(null===T)return;let i=n.touches[0].pageX,s=n.touches[0].pageY,l=a.value;if(Math.abs(i-T.x)>Math.abs(s-T.y))if(p.value){if(0===l.scrollLeft&&i>T.x)return void(r=!1);if(l.scrollWidth===l.offsetWidth+l.scrollLeft&&i<T.x)return void(r=!1);r=!0}else r=!1;else if(f.value)if(0===l.scrollTop&&s>T.y)r=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(l.scrollHeight===l.offsetHeight+l.scrollTop&&s<T.y)return void(r=!1);r=!0}else r=!1;if(r&&n.stopPropagation(),0===l.scrollTop&&1===n.touches.length&&k("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const i=s-T.y;0===u&&(u=s),c?(t.refresherHeight=i+e.refresherThreshold,d=!1):(t.refresherHeight=s-u,t.refresherHeight>0&&(d=!0,o("refresherpulling",n,{deltaY:i,dy:i})))}},h=function(e){1===e.touches.length&&(T={x:e.touches[0].pageX,y:e.touches[0].pageY})},m=function(n){S={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?k("refreshing"):k("refresherabort"),T={x:0,y:0},S={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",h,om),a.value.addEventListener("touchmove",l,_e(!1)),a.value.addEventListener("scroll",s,_e(!1)),a.value.addEventListener("touchend",m,om),ji((()=>{a.value.removeEventListener("touchstart",h),a.value.removeEventListener("touchmove",l),a.value.removeEventListener("scroll",s),a.value.removeEventListener("touchend",m)}))})),Ci((()=>{f.value&&(a.value.scrollTop=t.lastScrollTop),p.value&&(a.value.scrollLeft=t.lastScrollLeft)})),Zn(n,(e=>{_(e)})),Zn(i,(e=>{b(e)})),Zn((()=>e.scrollIntoView),(e=>{w(e)})),Zn((()=>e.refresherTriggered),(e=>{!0===e?k("refreshing"):!1===e&&k("restore")})),{realScrollX:p,realScrollY:f}}(e,c,u,d,l,o,s,r,t),f=Cs((()=>{let e="";return h.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",p.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),m=Cs((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return i({$getMain:()=>s.value}),()=>{const{refresherEnabled:t,refresherBackground:i,refresherDefaultStyle:l,refresherThreshold:u}=e,{refresherHeight:d,refreshState:h}=c;return is("uni-scroll-view",{ref:o},[is("div",{ref:a,class:"uni-scroll-view"},[is("div",{ref:s,style:f.value,class:m.value},[t?is(im,{refreshState:h,refresherHeight:d,refresherThreshold:u,refresherDefaultStyle:l,refresherBackground:i},{default:()=>["none"==l?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,is("div",{ref:r,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function am(e,t,n,i,o,s){function a(){c&&(clearTimeout(c),c=null)}let r,l,c=null,u=!0,d=0,h=1,p=null,f=!1,m=0,g="";const y=Cs((()=>n.value.length>t.displayMultipleItems)),v=Cs((()=>e.circular&&y.value));function _(o){Math.floor(2*d)===Math.floor(2*o)&&Math.ceil(2*d)===Math.ceil(2*o)||v.value&&function(i){if(!u)for(let o=n.value,s=o.length,a=i+t.displayMultipleItems,r=0;r<s;r++){const t=o[r],n=Math.floor(i/s)*s+r,l=n+s,c=n-s,u=Math.max(i-(n+1),n-a,0),d=Math.max(i-(l+1),l-a,0),h=Math.max(i-(c+1),c-a,0),p=Math.min(u,d,h),f=[n,l,c][[u,d,h].indexOf(p)];t.updatePosition(f,e.vertical)}}(o);const a="translate("+(e.vertical?"0":100*-o*h+"%")+", "+(e.vertical?100*-o*h+"%":"0")+") translateZ(0)",l=i.value;if(l&&(l.style.webkitTransform=a,l.style.transform=a),d=o,!r){if(o%1==0)return;r=o}o-=Math.floor(r);const c=n.value;o<=-(c.length-1)?o+=c.length:o>=c.length&&(o-=c.length),o=r%1>.5||r<0?o-1:o,s("transition",{},{dx:e.vertical?0:o*l.offsetWidth,dy:e.vertical?o*l.offsetHeight:0})}function b(e){const i=n.value.length;if(!i)return-1;const o=(Math.round(e)%i+i)%i;if(v.value){if(i<=t.displayMultipleItems)return 0}else if(o>i-t.displayMultipleItems)return i-t.displayMultipleItems;return o}function w(){p=null}function x(){if(!p)return void(f=!1);const e=p,i=e.toPos,o=e.acc,a=e.endTime,c=e.source,u=a-Date.now();if(u<=0){_(i),p=null,f=!1,r=null;const e=n.value[t.current];if(e){const n=e.getItemId();s("animationfinish",{},{current:t.current,currentItemId:n,source:c})}return}_(i+o*u*u/2),l=requestAnimationFrame(x)}function k(e,i,o){w();const s=t.duration,a=n.value.length;let r=d;if(v.value)if(o<0){for(;r<e;)r+=a;for(;r-a>e;)r-=a}else if(o>0){for(;r>e;)r-=a;for(;r+a<e;)r+=a;r+a-e<e-r&&(r+=a)}else{for(;r+a<e;)r+=a;for(;r-a>e;)r-=a;r+a-e<e-r&&(r+=a)}else"click"===i&&(e=e+t.displayMultipleItems-1<a?e:0);p={toPos:e,acc:2*(r-e)/(s*s),endTime:Date.now()+s,source:i},f||(f=!0,l=requestAnimationFrame(x))}function T(){a();const e=n.value,i=function(){c=null,g="autoplay",v.value?t.current=b(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,k(t.current,"autoplay",v.value?1:0),c=setTimeout(i,t.interval)};u||e.length<=t.displayMultipleItems||(c=setTimeout(i,t.interval))}function S(e){e?T():a()}return Zn([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let i=-1;if(e.currentItemId)for(let t=0,o=n.value;t<o.length;t++){if(o[t].getItemId()===e.currentItemId){i=t;break}}i<0&&(i=Math.round(e.current)||0),i=i<0?0:i,t.current!==i&&(g="",t.current=i)})),Zn([()=>e.vertical,()=>v.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),p&&(_(p.toPos),p=null);const o=n.value;for(let t=0;t<o.length;t++)o[t].updatePosition(t,e.vertical);h=1;const s=i.value;if(1===t.displayMultipleItems&&o.length){const e=o[0].getBoundingClientRect(),t=s.getBoundingClientRect();h=e.width/t.width,h>0&&h<1||(h=1)}const r=d;d=-2;const l=t.current;l>=0?(u=!1,t.userTracking?(_(r+l-m),m=l):(_(l),e.autoplay&&T())):(u=!0,_(-t.displayMultipleItems-1))})),Zn((()=>t.interval),(()=>{c&&(a(),T())})),Zn((()=>t.current),((e,i)=>{!function(e,i){const o=g;g="";const a=n.value;if(!o){const t=a.length;k(e,"",v.value&&i+(t-e)%t>t/2?1:0)}const r=a[e];if(r){const e=t.currentItemId=r.getItemId();s("change",{},{current:t.current,currentItemId:e,source:o})}}(e,i),o("update:current",e)})),Zn((()=>t.currentItemId),(e=>{o("update:currentItemId",e)})),Zn((()=>e.autoplay&&!t.userTracking),S),S(e.autoplay&&!t.userTracking),Ni((()=>{let o=!1,s=0,r=0;function l(e){t.userTracking=!1;const n=s/Math.abs(s);let i=0;!e&&Math.abs(s)>.2&&(i=.5*n);const o=b(d+i);e?_(m):(g="touch",t.current=o,k(o,"touch",0!==i?i:0===o&&v.value&&d>=1?1:0))}bf(i.value,(c=>{if(!e.disableTouch&&!u){if("start"===c.detail.state)return t.userTracking=!0,o=!1,a(),m=d,s=0,r=Date.now(),void w();if("end"===c.detail.state)return l(!1);if("cancel"===c.detail.state)return l(!0);if(t.userTracking){if(!o){o=!0;const n=Math.abs(c.detail.dx),i=Math.abs(c.detail.dy);if((n>=i&&e.vertical||n<=i&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&T())}return function(o){const a=r;r=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;s=.6*s+.4*t,v.value||(n<0||n>l)&&(n<0?n=-c(-n):n>l&&(n=l+c(n-l)),s=0),_(n)}const d=r-a||1,h=i.value;e.vertical?u(-o.dy/h.offsetHeight,-o.ddy/d):u(-o.dx/h.offsetWidth,-o.ddx/d)}(c.detail),!1}}}))})),Vi((()=>{a(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){k(t.current=e,g="click",v.value?1:0)},circularEnabled:v,swiperEnabled:y}}const rm=pu({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 i=sn(null),o=gu(i,n),s=sn(null),a=sn(null),r=function(e){return Wt({interval:Cs((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Cs((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Cs((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=Cs((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:xc(e.previousMargin,!0),bottom:xc(e.nextMargin,!0)}:{top:0,bottom:0,left:xc(e.previousMargin,!0),right:xc(e.nextMargin,!0)}),t})),c=Cs((()=>{const t=Math.abs(100/r.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let u=[];const d=[],h=sn([]);function p(){const e=[];for(let t=0;t<u.length;t++){let n=u[t];n instanceof Element||(n=n.el);const i=d.find((e=>n===e.rootRef.value));i&&e.push(Jt(i))}h.value=e}vo("addSwiperContext",(function(e){d.push(e),p()}));vo("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())}));const{onSwiperDotClick:f,circularEnabled:m,swiperEnabled:g}=am(e,r,h,a,n,o);let y=()=>null;return y=lm(i,e,r,f,h,m,g),()=>{const n=t.default&&t.default();return u=ff(n),is("uni-swiper",{ref:i},[is("div",{ref:s,class:"uni-swiper-wrapper"},[is("div",{class:"uni-swiper-slides",style:l.value},[is("div",{ref:a,class:"uni-swiper-slide-frame",style:c.value},[n],4)],4),e.indicatorDots&&is("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[h.value.map(((t,n,i)=>is("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<r.current+r.displayMultipleItems&&n>=r.current||n<r.current+r.displayMultipleItems-i.length},style:{background:n===r.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2),y()],512)],512)}}}),lm=(e,t,n,i,o,s,a)=>{let l=!1,c=!1,u=!1,d=sn(!1);function h(e,n){const i=e.currentTarget;i&&(i.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Jn((()=>{l="auto"===t.navigation,d.value=!0!==t.navigation||l,_()})),Jn((()=>{const e=o.value.length,t=!s.value;c=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(c=!0,u=!0,l&&(d.value=!0))}));const p={onMouseover:e=>h(e,"over"),onMouseout:e=>h(e,"out")};function f(e,t,a){if(e.stopPropagation(),a)return;const r=o.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&s.value&&(l=r-1);break;case"next":l++,l>=r&&s.value&&(l=0)}i(l)}const m=()=>Cc(Sc,t.navigationColor,26);let g;const y=n=>{clearTimeout(g);const{clientX:i,clientY:o}=n,{left:s,right:a,top:r,bottom:l,width:c,height:u}=e.value.getBoundingClientRect();let h=!1;if(h=t.vertical?!(o-r<u/3||l-o<u/3):!(i-s<c/3||a-i<c/3),h)return g=setTimeout((()=>{d.value=h}),300);d.value=h},v=()=>{d.value=!0};function _(){e.value&&(e.value.removeEventListener("mousemove",y),e.value.removeEventListener("mouseleave",v),l&&(e.value.addEventListener("mousemove",y),e.value.addEventListener("mouseleave",v)))}return Ni(_),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?is(Fo,null,[is("div",us({class:["uni-swiper-navigation uni-swiper-navigation-prev",r({"uni-swiper-navigation-disabled":c},e)],onClick:e=>f(e,"prev",c)},p),[m()],16,["onClick"]),is("div",us({class:["uni-swiper-navigation uni-swiper-navigation-next",r({"uni-swiper-navigation-disabled":u},e)],onClick:e=>f(e,"next",u)},p),[m()],16,["onClick"])]):null}},cm=pu({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=sn(null),i={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const i=t?"0":100*e+"%",o=t?100*e+"%":"0",s=n.value,a=`translate(${i},${o}) translateZ(0)`;s&&(s.style.webkitTransform=a,s.style.transform=a)}};return Ni((()=>{const e=_o("addSwiperContext");e&&e(i)})),Vi((()=>{const e=_o("removeSwiperContext");e&&e(i)})),()=>is("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),um=pu({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=sn(null),i=sn(e.checked),o=function(e,t){const n=_o(bu,!1),i=_o(ku,!1),o={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(o),Vi((()=>{n.removeField(o)})));return i}(e,i),s=gu(n,t);Zn((()=>e.checked),(e=>{i.value=e}));const a=t=>{e.disabled||(i.value=!i.value,s("change",t,{value:i.value}))};return o&&(o.addHandler(a),ji((()=>{o.removeHandler(a)}))),Su(e,{"label-click":a}),()=>{const{color:t,type:o}=e,s=_u(e,"disabled"),r={};let l;return t&&i.value&&(r.backgroundColor=t,r.borderColor=t),l=i.value,is("uni-switch",us({id:e.id,ref:n},s,{onClick:a}),[is("div",{class:"uni-switch-wrapper"},[oi(is("div",{class:["uni-switch-input",[i.value?"uni-switch-input-checked":""]],style:r},null,6),[[Xs,"switch"===o]]),oi(is("div",{class:"uni-checkbox-input"},[l?Cc(kc,e.color,22):""],512),[[Xs,"checkbox"===o]])])],16,["id","onClick"])}}});const dm={ensp:" ",emsp:" ",nbsp:" "};function hm(e,t){return function(e,{space:t,decode:n}){let i="",o=!1;for(let s of e)t&&dm[t]&&" "===s&&(s=dm[t]),o?(i+="n"===s?"\n":"\\"===s?"\\":"\\"+s,o=!1):"\\"===s?o=!0:i+=s;return n?i.replace(/ /g,dm.nbsp).replace(/ /g,dm.ensp).replace(/ /g,dm.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):i}(e,t).split("\n")}const pm=pu({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=sn(null);return()=>{const i=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Vo){const n=hm(t.children,{space:e.space,decode:e.decode}),o=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&i.push(ss(e)),t!==o&&i.push(is("br"))}))}else i.push(t)})),is("uni-text",{ref:n,selectable:!!e.selectable||null},[is("span",null,i)],8,["selectable"])}}}),fm=r({},sf,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>gm.concat("return").includes(e)}});let mm=!1;const gm=["done","go","next","search","send"];const ym=pu({name:"Textarea",props:fm,emits:["confirm","linechange",...af],setup(e,{emit:t,expose:n}){const i=sn(null),o=sn(null),{fieldRef:s,state:a,scopedAttrsState:r,fixDisabledColor:l,trigger:c}=cf(e,i,t),u=Cs((()=>a.value.split("\n"))),d=Cs((()=>gm.includes(e.confirmType))),h=sn(0),p=sn(null);function f({height:e}){h.value=e}function m(e){"Enter"===e.key&&d.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&d.value){!function(e){c("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Zn((()=>h.value),(t=>{const n=i.value,s=p.value,a=o.value;let r=parseFloat(getComputedStyle(n).lineHeight);isNaN(r)&&(r=s.offsetHeight);var l=Math.round(t/r);c("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:l}),e.autoHeight&&(n.style.height="auto",a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";mm=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),n({$triggerInput:e=>{t("update:modelValue",e.value),t("update:value",e.value),a.value=e.value}}),()=>{let t=e.disabled&&l?is("textarea",{key:"disabled-textarea",ref:s,value:a.value,tabindex:"-1",readonly:!!e.disabled,maxlength:a.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":mm},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):is("textarea",{key:"textarea",ref:s,value:a.value,disabled:!!e.disabled,maxlength:a.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":mm},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:m,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return is("uni-textarea",{ref:i},[is("div",{ref:o,class:"uni-textarea-wrapper"},[oi(is("div",us(r.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Xs,!a.value.length]]),is("div",{ref:p,class:"uni-textarea-line"},[" "],512),is("div",{class:"uni-textarea-compute"},[u.value.map((e=>is("div",null,[e.trim()?e:"."]))),is(kp,{initial:!0,onResize:f},null,8,["initial","onResize"])]),"search"===e.confirmType?is("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),vm=pu({name:"View",props:r({},yu),setup(e,{slots:t}){const n=sn(null),{hovering:i,binding:o}=vu(e);return()=>{const s=e.hoverClass;return s&&"none"!==s?is("uni-view",us({class:i.value?s:"",ref:n},o),[t.default&&t.default()],16):is("uni-view",{ref:n},[t.default&&t.default()],512)}}});function _m(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function bm(e,t,n){e&&Hl(n||Mc(),e,(({type:e,data:n},i)=>{t(e,n,i)}))}function wm(e,t){e&&function(e,t){t=Ul(e,t),delete Wl[t]}(t||Mc(),e)}let xm,km=0;function Tm(e,t,n,i){m(t)&&Li(e,t.bind(n),i)}function Sm(e,t,n){var i;const o=e.mpType||n.$mpType;if(o&&"component"!==o&&(Object.keys(e).forEach((i=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(Pe.indexOf(e)>-1||0===e.indexOf("on"))}(i,e[i],!1)){const o=e[i];d(o)?o.forEach((e=>Tm(i,e,n,t))):Tm(i,o,n,t)}})),"page"===o)){t.__isVisible=!0;try{const e=t.attrs.__pageQuery;0,Rc(n,"onLoad",e),delete t.attrs.__pageQuery,"preloadPage"!==(null==(i=n.$page)?void 0:i.openType)&&Rc(n,"onShow")}catch(Mw){console.error(Mw.message+"\n"+Mw.stack)}}}function Cm(e,t,n){Sm(e,t,n)}function Em(e,t,n){return e[t]=n}function Pm(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Dm(e){return function(t,n,i){if(!n)throw t;const o=e._instance;if(!o||!o.proxy)throw t;Rc(o.proxy,"onError",t)}}function Im(e,t){return e?[...new Set([].concat(e,t))]:t}const Mm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Om=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function Am(){const e=Gg("uni_id_token")||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(xm(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}function Lm(e){const t=e._context.config;var n;t.errorHandler=Ie(e,Dm),n=t.optionMergeStrategies,Pe.forEach((e=>{n[e]=Im}));const i=t.globalProperties;!function(e){e.uniIDHasRole=function(e){const{role:t}=Am();return t.indexOf(e)>-1},e.uniIDHasPermission=function(e){const{permission:t}=Am();return this.uniIDHasRole("admin")||t.indexOf(e)>-1},e.uniIDTokenValid=function(){const{tokenExpired:e}=Am();return e>Date.now()}}(i),i.$set=Em,i.$applyOptions=Cm,i.$callMethod=Pm,function(e){De.forEach((t=>t(e)))}(e)}xm="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Om.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,o="",s=0;s<e.length;)t=Mm.indexOf(e.charAt(s++))<<18|Mm.indexOf(e.charAt(s++))<<12|(n=Mm.indexOf(e.charAt(s++)))<<6|(i=Mm.indexOf(e.charAt(s++))),o+=64===n?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;const Rm=bc("upm");function $m(){return _o(Rm)}function Nm(e){const t=function(e){return Wt(function(e){{const{navigationBar:t}=e,{titleSize:n,titleColor:i,backgroundColor:o}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=i||"#000000",t.backgroundColor=o||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==Gm().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(Lc(El().meta,e)))))}(e);return vo(Rm,t),t}function Bm(){return El()}const Fm=window.screen,jm=document.documentElement;function Vm(){return history.state&&history.state.__id__||1}const Wm=window.CSS&&window.CSS.supports;function Um(e){return Wm&&(Wm(e)||Wm.apply(window.CSS,e.split(":")))}const Hm=Um("top:env(a)"),qm=Um("top:constant(a)"),zm=(()=>Hm?"env":qm?"constant":"")();function Ym(e){let t=0;var n,i;"custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),_c({"--window-top":(i=t,zm?`calc(${i}px + ${zm}(safe-area-inset-top))`:`${i}px`),"--window-bottom":(n=0,zm?`calc(${n}px + ${zm}(safe-area-inset-bottom))`:`${n}px`)})}const Xm=new Map;function Km(){return Xm}function Gm(){const e=[],t=Xm.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Jm(e,t=!0){const n=Xm.get(e);n.$.__isUnload=!0,Rc(n,"onUnload"),Xm.delete(e),t&&function(e){const t=ng.get(e);t&&(ng.delete(e),ig.pruneCacheEntry(t))}(e)}let Qm=Vm();function Zm(e){const t=$m();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,i,o,s){const{id:a,route:r}=i,l=Le(i.navigationBar,__uniConfig.themeConfig,s).titleColor;return{id:a,path:ue(r),route:r,fullPath:t,options:n,meta:i,openType:e,eventChannel:o,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function eg(e){const t=Zm(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),Xm.set(tg(t.path,t.id),e)}function tg(e,t){return e+"$$"+t}const ng=new Map,ig={get:e=>ng.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;ig.forEach(((e,n)=>{const i=parseInt(n.split("$$")[1]);i&&i>t&&(ig.delete(n),ig.pruneCacheEntry(e),Tn((()=>{Xm.forEach(((e,t)=>{e.$.isUnmounted&&Xm.delete(t)}))})))}))}(e),ng.set(e,t)},delete(e){ng.get(e)&&ng.delete(e)},forEach(e){ng.forEach(e)}};function og(e,t){!function(e){const t=ag(e),{body:n}=document;rg&&n.removeAttribute(rg),t&&n.setAttribute(t,""),rg=t}(e),Ym(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),function(e,t){document.removeEventListener("touchmove",$c),lg&&document.removeEventListener("scroll",lg);if(t.disableScroll)return document.addEventListener("touchmove",$c);const{onPageScroll:n,onReachBottom:i}=e,o="transparent"===t.navigationBar.type;if(!n&&!i&&!o)return;const s={},a=e.proxy.$page.id;(n||o)&&(s.onPageScroll=function(e,t,n){return i=>{t&&$v.publishHandler("onPageScroll",{scrollTop:i},e),n&&$v.emit(e+".onPageScroll",{scrollTop:i})}}(a,n,o));i&&(s.onReachBottomDistance=t.onReachBottomDistance||50,s.onReachBottom=()=>$v.publishHandler("onReachBottom",{},a));lg=Fc(s),requestAnimationFrame((()=>document.addEventListener("scroll",lg)))}(e,t)}function sg(e){const t=ag(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function ag(e){return e.type.__scopeId}let rg,lg;function cg(e){const t=Cl({history:dg(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:ug});e.router=t,e.use(t)}const ug=(e,t,n)=>{if(n)return n};function dg(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),Br(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=Gm(),n=t.length-1,i=n-e;for(let o=n;o>i;o--){const e=t[o].$page;Jm(tg(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const hg={install(e){Lm(e),Jc(e),lu(e),e.config.warnHandler||(e.config.warnHandler=pg),cg(e)}};function pg(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const i=[`[Vue warn]: ${e}`];n.length&&i.push("\n",n),console.warn(...i)}const fg={class:"uni-async-loading"},mg=is("i",{class:"uni-loading"},null,-1),gg=fu({name:"AsyncLoading",render:()=>(qo(),Go("div",fg,[mg]))});function yg(){window.location.reload()}const vg=fu({name:"AsyncError",setup(){Ol();const{t:e}=Il();return()=>is("div",{class:"uni-async-error",onClick:yg},[e("uni.async.error")],8,["onClick"])}});let _g;function bg(){return _g}function wg(e){_g=e,Object.defineProperty(_g.$.ctx,"$children",{get:()=>Gm().map((e=>e.$vm))});const t=_g.$.appContext.app;t.component(gg.name)||t.component(gg.name,gg),t.component(vg.name)||t.component(vg.name,vg),function(e){e.$vm=e,e.$mpType="app";const t=sn(Il().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(_g),function(e,t){const n=e.$options||{};n.globalData=r(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(_g),au(),nc()}function xg(e,{clone:t,init:n,setup:i,before:o}){t&&(e=r({},e)),o&&o(e);const s=e.setup;return e.setup=(e,t)=>{const o=ms();n(o.proxy);const a=i(o);if(s)return s(a||e,t)},e}function kg(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?xg(e.default,t):xg(e,t)}function Tg(e,t){return kg(e,{init:e=>{e.$page={id:t}},setup(e){e.$pageInstance=e}})}function Sg(e){return kg(e,{clone:!0,init:eg,setup(e){e.$pageInstance=e;const t=Bm(),n=xe(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const i=$m();var o,s,a;return $i((()=>{og(e,i)})),Ni((()=>{sg(e);const{onReady:n}=e;n&&A(n),Dg(t)})),Pi((()=>{if(!e.__isVisible){og(e,i),e.__isVisible=!0;const{onShow:n}=e;n&&A(n),Tn((()=>{Dg(t)}))}}),"ba",o),function(e,t){Pi(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&A(t)}})),s=i.id,$v.subscribe(Ul(s,"invokeViewApi"),a?a(ql):ql),ji((()=>{!function(e){$v.unsubscribe(Ul(e,"invokeViewApi")),Object.keys(Wl).forEach((t=>{0===t.indexOf(e+".")&&delete Wl[t]}))}(i.id)})),n}})}function Cg(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:i}=qg(),o=90===Math.abs(Number(window.orientation))?"landscape":"portrait";Nv.emit("onResize",{deviceOrientation:o,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:i}})}function Eg(e){x(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&Nv.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function Pg(){const{emit:e}=Nv;"visible"===document.visibilityState?e("onAppEnterForeground",r({},xp)):e("onAppEnterBackground")}function Dg(e){const{tabBarText:t,tabBarIndex:n,route:i}=e.meta;t&&Rc("onTabItemTap",{index:n,text:t,pagePath:i})}const Ig=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},Mg=he((()=>Nv.on("onWebInvokeAppService",Ig))),Og=pu({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},setup(e){Mg();const t=sn(null),n=sn(null),{$attrs:i,$excludeAttrs:o,$listeners:s}=pf({excludeListeners:!0});let a;return(()=>{const o=document.createElement("iframe");Jn((()=>{for(const e in i.value)if(u(i.value,e)){const t=i.value[e];o[e]=t}})),Jn((()=>{o.src=Iu(e.src)})),n.value=o,a=function(e,t,n){return()=>{var i,o;if(n){const{top:n,left:i,width:o,height:s}=e.value.getBoundingClientRect();de(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:i+"px",width:o+"px",height:s+"px"})}else de(t.value,{width:(null==(i=e.value)?void 0:i.style.width)||"300px",height:(null==(o=e.value)?void 0:o.style.height)||"150px"})}}(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(o)})(),Ni((()=>{var i;a(),!e.fullscreen&&(null==(i=t.value)||i.appendChild(n.value))})),Ci((()=>{e.fullscreen&&(n.value.style.display="block")})),Ei((()=>{e.fullscreen&&(n.value.style.display="none")})),ji((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>is(Fo,null,[is("uni-web-view",us({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,o.value,{ref:t}),[is(kp,{onResize:a},null,8,["onResize"])],16)])}});const Ag=Dd("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),Lg=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let Rg;function $g(){if(Rg=Rg||Lg.__DC_STAT_UUID,!Rg){Rg=Date.now()+""+Math.floor(1e7*Math.random());try{Lg.__DC_STAT_UUID=Rg}catch(e){}}return Rg}function Ng(){if(!0!==__uniConfig.darkmode)return g(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function Bg(){let e,t="0",n="",i="phone";const o=navigator.language;if(Au){e="iOS";const i=Mu.match(/OS\s([\w_]+)\slike/);i&&(t=i[1].replace(/_/g,"."));const o=Mu.match(/\(([a-zA-Z]+);/);o&&(n=o[1])}else if(Ou){e="Android";const i=Mu.match(/Android[\s/]([\w\.]+)[;\s]/);i&&(t=i[1]);const o=Mu.match(/\((.+?)\)/),s=o?o[1].split(";"):Mu.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<s.length;e++){const t=s[e];if(t.indexOf("Build")>0){n=t.split("Build")[0].trim();break}let i;for(let e=0;e<a.length;e++)if(a[e].test(t)){i=!0;break}if(!i){n=t.trim();break}}}else if(Nu)n="iPad",e="iOS",i="pad",t=m(window.BigInt)?"14.0":"13.0";else if(Lu||Ru||$u){n="PC",e="PC",i="pc",t="0";let o=Mu.match(/\((.+?)\)/)[1];if(Lu){switch(e="Windows",Lu[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10"}const n=o&&o.match(/[Win|WOW]([\d]+)/);n&&(t+=` x${n[1]}`)}else if(Ru){e="macOS";const n=o&&o.match(/Mac OS X (.+)/)||"";t&&(t=n[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))}else if($u){e="Linux";const n=o&&o.match(/Linux (.*)/)||"";n&&(t=n[1],-1!==t.indexOf(";")&&(t=t.split(";")[0]))}}else e="Other",t="0",i="unknown";const s=`${e} ${t}`,a=e.toLocaleLowerCase();let r="",l=String(function(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,i=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:i?11:-1}());if("-1"!==l)r="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const i=e[n],o=new RegExp(`(${i})/(\\S*)\\b`);o.test(Mu)&&(r=t[n],l=Mu.match(o)[2])}}let c="portrait";const u=void 0===window.screen.orientation?window.orientation:window.screen.orientation.angle;return c=90===Math.abs(u)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:c,model:n,system:s,platform:a,browserName:r.toLocaleLowerCase(),browserVersion:l,language:o,deviceType:i,ua:Mu,osname:e,osversion:t,theme:Ng()}}const Fg=Pd(0,(()=>{const e=window.devicePixelRatio,t=Bu(),n=Fu(t),i=ju(t,n),o=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),s=Vu(i);let a=window.innerHeight;const r=pc.top,l={left:pc.left,right:s-pc.right,top:pc.top,bottom:a-pc.bottom,width:s-pc.left-pc.right,height:a-pc.top-pc.bottom},{top:c,bottom:u}=vc();return a-=c,a-=u,{windowTop:c,windowBottom:u,windowWidth:s,windowHeight:a,pixelRatio:e,screenWidth:i,screenHeight:o,statusBarHeight:r,safeArea:l,safeAreaInsets:{top:pc.top,right:pc.right,bottom:pc.bottom,left:pc.left},screenTop:o-a}}));let jg,Vg=!0;function Wg(){Vg&&(jg=Bg())}const Ug=Pd(0,(()=>{Wg();const{deviceBrand:e,deviceModel:t,brand:n,model:i,platform:o,system:s,deviceOrientation:a,deviceType:r}=jg;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:$g(),deviceOrientation:a,deviceType:r,model:i,platform:o,system:s}})),Hg=Pd(0,(()=>{Wg();const{theme:e,language:t,browserName:n,browserVersion:i}=jg;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Dh?Dh():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:i,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""}})),qg=Pd(0,(()=>{Vg=!0,Wg(),Vg=!1;const e=Fg(),t=Ug(),n=Hg();Vg=!0;const{ua:i,browserName:o,browserVersion:s,osname:a,osversion:l}=jg,c=r(e,t,n,{ua:i,browserName:o,browserVersion:s,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:l,osLanguage:void 0,osTheme:void 0});return delete c.screenTop,delete c.enableDebug,__uniConfig.darkmode||delete c.theme,function(e){let t={};return x(e)&&Object.keys(e).sort().forEach((n=>{const i=n;t[i]=e[i]})),Object.keys(t)?t:e}(c)})),zg=Dd("getSystemInfo",((e,{resolve:t})=>t(qg())));const Yg=Dd("setClipboardData",((e,t)=>{return n=void 0,i=[e,t],o=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(i){!function(e,t,n){const i=document.getElementById("#clipboard");i&&i.remove();const o=document.createElement("textarea");o.id="#clipboard",o.style.position="fixed",o.style.top="-9999px",o.style.zIndex="-9999",document.body.appendChild(o),o.value=e,o.select(),o.setSelectionRange(0,o.value.length);const s=document.execCommand("Copy",!1);o.blur(),s?t():n()}(e,t,n)}},new Promise(((e,t)=>{var s=e=>{try{r(o.next(e))}catch(Mw){t(Mw)}},a=e=>{try{r(o.throw(e))}catch(Mw){t(Mw)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(s,a);r((o=o.apply(n,i)).next())}));var n,i,o}),0,Bh);const Xg=Pd(0,((e,t)=>{const n=typeof t,i="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,i)}));function Kg(e){const t=localStorage&&localStorage.getItem(e);if(!g(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=g(e)?JSON.parse(e):e,i=n.type;if(t.indexOf(i)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===i)return n.data;if("object"===i&&/^\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(i){}return n}const Gg=Pd(0,(e=>{try{return Kg(e)}catch(t){return""}})),Jg=Pd(0,(e=>{localStorage&&localStorage.removeItem(e)})),Qg=Dd("removeStorage",(({key:e},{resolve:t})=>{Jg(e),t()})),Zg=Pd(0,(()=>{localStorage&&localStorage.clear()})),ey=Pd(0,(()=>{const e=localStorage&&localStorage.length||0,t=[];let n=0;for(let i=0;i<e;i++){const e=localStorage.key(i),o=localStorage.getItem(e)||"";n+=e.length+o.length,"uni-storage-keys"!==e&&t.push(e)}return{keys:t,currentSize:Math.ceil(2*n/1024),limitSize:Number.MAX_VALUE}}));const ty=Dd("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const i=new Image;i.onload=function(){t({width:i.naturalWidth,height:i.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},i.onerror=function(){n()},i.src=e}),0,Uh),ny={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 iy({count:e,sourceType:t,type:n,extension:i}){const o=document.createElement("input");return o.type="file",de(o,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),o.accept=i.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${ny[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&&(o.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&o.setAttribute("capture","camera"),o}Jp();let oy=null;const sy=Dd("chooseFile",(({count:e,sourceType:t,type:n,extension:i},{resolve:o,reject:s})=>{Nl();const{t:a}=Il();oy&&(document.body.removeChild(oy),oy=null),oy=iy({count:e,sourceType:t,type:n,extension:i}),document.body.appendChild(oy),oy.addEventListener("change",(function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o<t;o++){const t=n.files[o];let s;Object.defineProperty(t,"path",{get:()=>(s=s||_p(t),s)}),o<e&&i.push(t)}}o({get tempFilePaths(){return i.map((({path:e})=>e))},tempFiles:i})})),oy.click(),Qp()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,Wh);let ay=null;const ry=Dd("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:i,reject:o})=>{Nl();const{t:s}=Il();ay&&(document.body.removeChild(ay),ay=null),ay=iy({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(ay),ay.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i<t;i++){const t=n.files[i];let s;Object.defineProperty(t,"path",{get:()=>(s=s||_p(t),s)}),i<e&&o.push(t)}}i({get tempFilePaths(){return o.map((({path:e})=>e))},tempFiles:o})})),ay.click(),Qp()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,Fh),ly={esc:["Esc","Escape"],enter:["Enter"]},cy=Object.keys(ly);function uy(){const e=sn(""),t=sn(!1),n=n=>{if(t.value)return;const i=cy.find((e=>-1!==ly[e].indexOf(n.key)));i&&(e.value=i),Tn((()=>e.value=""))};return Ni((()=>{document.addEventListener("keyup",n)})),ji((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const dy=is("div",{class:"uni-mask"},null,-1);function hy(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ba(yi({setup:()=>()=>(qo(),Go(e,t,null,16))}))}function py(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function fy(e,{onEsc:t,onEnter:n}){const i=sn(e.visible),{key:o,disable:s}=uy();return Zn((()=>e.visible),(e=>i.value=e)),Zn((()=>i.value),(e=>s.value=!e)),Jn((()=>{const{value:e}=o;"esc"===e?t&&t():"enter"===e&&n&&n()})),i}let my=0,gy="";function yy(e){let t=my;my+=e?1:-1,my=Math.max(0,my),my>0?0===t&&(gy=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=gy,gy="")}const vy=fu({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Wt({direction:"none"});let n=1,i=0,o=0,s=0,a=0;function r({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();i=t.width,o=t.height}function c(e){const t=e.target.getBoundingClientRect();s=t.width,a=t.height,d(e)}function u(e){const r=n*i>s,l=n*o>a;t.direction=r&&l?"all":r?"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 is(mf,{style:n,onTouchstart:mu(c),onTouchmove:mu(d),onTouchend:mu(u)},{default:()=>[is(Pf,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:r},{default:()=>[is("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 _y(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const by=fu({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){Ni((()=>yy(!0))),Vi((()=>yy(!1)));const n=sn(null),i=sn(_y(e));let o;function s(){o||Tn((()=>{t("close")}))}function a(e){i.value=e.detail.current}Zn((()=>e.current),(()=>i.value=_y(e))),Ni((()=>{const e=n.value;let t=0,i=0;e.addEventListener("mousedown",(e=>{o=!1,t=e.clientX,i=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-i)>20)&&(o=!0)}))}));const r={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 is("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:s},[is(rm,{navigation:"auto",current:i.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(o=t=e.urls.map((e=>is(cm,null,{default:()=>[is(vy,{src:e},null,8,["src"])]}))),"function"==typeof o||"[object Object]"===Object.prototype.toString.call(o)&&!Jo(o)?t:{default:()=>[t],_:1}),8,["current","onChange"]),is("div",{style:r},[Cc("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 o}}});let wy,xy=null;const ky=()=>{xy=null,Tn((()=>{null==wy||wy.unmount(),wy=null}))},Ty=Dd("previewImage",((e,{resolve:t})=>{xy?r(xy,e):(xy=Wt(e),Tn((()=>{wy=hy(by,xy,ky),wy.mount(py("u-a-p"))}))),t()}),0,Hh);let Sy=null;const Cy=Dd("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:i})=>{Nl();const{t:o}=Il();Sy&&(document.body.removeChild(Sy),Sy=null),Sy=iy({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Sy),Sy.addEventListener("change",(function(e){const t=e.target.files[0];let i="";const o={tempFilePath:i,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(o,"tempFilePath",{get(){return i=i||_p(this.tempFile),i}});const s=document.createElement("video");if(void 0!==s.onloadedmetadata){const e=_p(t);s.onloadedmetadata=function(){bp(e),n(r(o,{duration:s.duration||0,width:s.videoWidth||0,height:s.videoHeight||0}))},setTimeout((()=>{s.onloadedmetadata=null,bp(e),n(o)}),300),s.src=e}else n(o)})),Sy.click(),Qp()||console.warn(o("uni.chooseFile.notUserActivation"))}),0,jh),Ey=Ed("request",(({url:e,data:t,header:n={},method:i,dataType:o,responseType:s,withCredentials:a,timeout:r=__uniConfig.networkTimeout.request},{resolve:l,reject:c})=>{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(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==i)if(g(t)||t instanceof ArrayBuffer)d=t;else if("json"===h)try{d=JSON.stringify(t)}catch(y){d=t.toString()}else if("urlencoded"===h){const e=[];for(const n in t)u(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));d=e.join("&")}else d=t.toString();const p=new XMLHttpRequest,f=new Py(p);p.open(i,e);for(const g in n)u(n,g)&&p.setRequestHeader(g,n[g]);const m=setTimeout((function(){p.onload=p.onabort=p.onerror=null,f.abort(),c("timeout",{errCode:5})}),r);return p.responseType=s,p.onload=function(){clearTimeout(m);const e=p.status;let t="text"===s?p.responseText:p.response;if("text"===s&&"json"===o)try{t=JSON.parse(t)}catch(y){}l({data:t,statusCode:e,header:Dy(p.getAllResponseHeaders()),cookies:[]})},p.onabort=function(){clearTimeout(m),c("abort",{errCode:600003})},p.onerror=function(){clearTimeout(m),c(void 0,{errCode:5})},p.withCredentials=a,p.send(d),f}),0,Xh);class Py{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function Dy(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}class Iy{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){m(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 My=Ed("uploadFile",(({url:e,file:t,filePath:n,name:i,files:o,header:s={},formData:a={},timeout:r=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:c})=>{var u=new Iy;return d(o)&&o.length||(o=[{name:i,file:t,uri:n}]),Promise.all(o.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(vp(e)):yp(t)))).then((function(t){var n,i=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(o).forEach((({name:e},n)=>{const i=t[n];d.append(e||"file",i,i.name||`file-${Date.now()}`)})),i.open("POST",e),Object.keys(s).forEach((e=>{i.setRequestHeader(e,s[e])})),i.upload.onprogress=function(e){u._callbacks.forEach((t=>{var n=e.loaded,i=e.total;t({progress:Math.round(n/i*100),totalBytesSent:n,totalBytesExpectedToSend:i})}))},i.onerror=function(){clearTimeout(n),c("",{errCode:602001})},i.onabort=function(){clearTimeout(n),c("abort",{errCode:600003})},i.onload=function(){clearTimeout(n);const e=i.status;l({statusCode:e,data:i.responseText||i.response})},u._isAbort?c("abort",{errCode:600003}):(n=setTimeout((function(){i.upload.onprogress=i.onload=i.onabort=i.onerror=null,u.abort(),c("timeout",{errCode:5})}),r),i.send(d),u._xhr=i)})).catch((()=>{setTimeout((()=>{c("file error")}),0)})),u}),0,Kh),Oy=Dd("navigateBack",((e,{resolve:t,reject:n})=>{let i=!0;return!0===Rc("onBackPress",{from:e.from||"navigateBack"})&&(i=!1),i?(bg().$router.go(-e.delta),t()):n("onBackPress")}),0,tp);function Ay({type:e,url:t,tabBarText:n,events:i,isAutomatedTesting:o},s){const a=bg().$router,{path:r,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:Te(n||"")}}(t);return new Promise(((t,c)=>{const u=function(e,t){return{__id__:t||++Qm,__type__:e}}(e,s);a["navigateTo"===e?"push":"replace"]({path:r,query:l,state:u,force:!0}).then((s=>{if(qr(s))return c(s.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?i&&(Object.keys(i).forEach((t=>{e.eventChannel._addListener(t,"on",i[t])})),e.eventChannel._clearCache()):e.eventChannel=new Ce(u.__id__,i),t(o?{__id__:u.__id__}:{eventChannel:e.eventChannel})}return o?t({__id__:u.__id__}):t()}))}))}const Ly=Dd("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:i,reject:o})=>Ay({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(i).catch(o)),0,Jh);const Ry=Dd("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:i})=>(function(){const e=Dc();if(!e)return;const t=e.$page;Jm(tg(t.path,t.id))}(),Ay({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(i))),0,Qh);const $y=Dd("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:i})=>(function(){const e=Km().keys();for(const t of e)Jm(t)}(),Ay({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(i))),0,Zh);function Ny(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const By=Dd("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:i,reject:o})=>(function(){const e=Oc();if(!e)return;const t=Km(),n=t.keys();for(const i of n){const e=t.get(i);e.$.__isTabBar?e.$.__isActive=!1:Jm(i)}e.$.__isTabBar&&(e.$.__isVisible=!1,Rc(e,"onHide"))}(),Ay({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},function(e){const t=Km().values();for(const n of t){const t=n.$page;if(Ny(e,t))return n.$.__isActive=!0,t.id}}(e)).then(i).catch(o))),0,ep);function Fy(e){__uniConfig.darkmode&&Nv.on("onThemeChange",e)}function jy(e){Nv.off("onThemeChange",e)}function Vy(e){let t={};return __uniConfig.darkmode&&(t=Le(e,__uniConfig.themeConfig,Ng())),__uniConfig.darkmode?t:e}const Wy={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Uy=yi({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=sn(""),i=()=>a.value=!1,o=()=>(i(),t("close","cancel")),s=()=>(i(),t("close","confirm",n.value)),a=fy(e,{onEsc:o,onEnter:()=>{!e.editable&&s()}}),r=function(e){const t=sn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Wy[e].cancelColor})(e,t)};return Jn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===Ng()&&n({theme:"dark"}),Fy(n))):jy(n)})),t}(e);return()=>{const{title:t,content:i,showCancel:l,confirmText:c,confirmColor:u,editable:d,placeholderText:h}=e;return n.value=i,is(Ls,{name:"uni-fade"},{default:()=>[oi(is("uni-modal",{onTouchmove:fc},[dy,is("div",{class:"uni-modal"},[t?is("div",{class:"uni-modal__hd"},[is("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?is("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:h,value:i,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):is("div",{class:"uni-modal__bd",onTouchmovePassive:mc,textContent:i},null,40,["onTouchmovePassive","textContent"]),is("div",{class:"uni-modal__ft"},[l&&is("div",{style:{color:r.value},class:"uni-modal__btn uni-modal__btn_default",onClick:o},[e.cancelText],12,["onClick"]),is("div",{style:{color:u},class:"uni-modal__btn uni-modal__btn_primary",onClick:s},[c],12,["onClick"])])])],40,["onTouchmove"]),[[Xs,a.value]])]})}}});let Hy;const qy=he((()=>{Nv.on("onHidePopup",(()=>Hy.visible=!1))}));let zy;function Yy(e,t){const n="confirm"===e,i={confirm:n,cancel:"cancel"===e};n&&Hy.editable&&(i.content=t),zy&&zy(i)}const Xy=Dd("showModal",((e,{resolve:t})=>{qy(),zy=t,Hy?(r(Hy,e),Hy.visible=!0):(Hy=Wt(e),Tn((()=>(hy(Uy,Hy,Yy).mount(py("u-a-m")),Tn((()=>Hy.visible=!0))))))}),0,cp),Ky={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==up.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},Gy={light:"#fff",dark:"rgba(255,255,255,0.9)"},Jy=e=>Gy[e],Qy=yi({name:"Toast",props:Ky,setup(e){Ll(),Rl();const{Icon:t}=function(e){const t=sn(Jy(Ng())),n=({theme:e})=>t.value=Jy(e);Jn((()=>{e.visible?Fy(n):jy(n)}));return{Icon:Cs((()=>{switch(e.icon){case"success":return is(Cc(kc,t.value,38),{class:"uni-toast__icon"});case"error":return is(Cc(Tc,t.value,38),{class:"uni-toast__icon"});case"loading":return is("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=fy(e,{});return()=>{const{mask:i,duration:o,title:s,image:a}=e;return is(Ls,{name:"uni-fade"},{default:()=>[oi(is("uni-toast",{"data-duration":o},[i?is("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:fc},null,40,["onTouchmove"]):"",a||t.value?is("div",{class:"uni-toast"},[a?is("img",{src:a,class:"uni-toast__icon"},null,10,["src"]):t.value,is("p",{class:"uni-toast__content"},[s])]):is("div",{class:"uni-sample-toast"},[is("p",{class:"uni-simple-toast__text"},[s])])],8,["data-duration"]),[[Xs,n.value]])]})}}});let Zy,ev,tv="";const nv=Be();function iv(e){Zy?r(Zy,e):(Zy=Wt(r(e,{visible:!1})),Tn((()=>{nv.run((()=>{Zn([()=>Zy.visible,()=>Zy.duration],(([e,t])=>{if(e){if(ev&&clearTimeout(ev),"onShowLoading"===tv)return;ev=setTimeout((()=>{lv("onHideToast")}),t)}else ev&&clearTimeout(ev)}))})),Nv.on("onHidePopup",(()=>lv("onHidePopup"))),hy(Qy,Zy,(()=>{})).mount(py("u-a-t"))}))),setTimeout((()=>{Zy.visible=!0}),10)}const ov=Dd("showToast",((e,{resolve:t,reject:n})=>{iv(e),tv="onShowToast",t()}),0,dp),sv={icon:"loading",duration:1e8,image:""},av=Dd("showLoading",((e,{resolve:t,reject:n})=>{r(e,sv),iv(e),tv="onShowLoading",t()}),0,lp),rv=Dd("hideLoading",((e,{resolve:t,reject:n})=>{lv("onHideLoading"),t()}));function lv(e){const{t:t}=Il();if(!tv)return;let n="";if("onHideToast"===e&&"onShowToast"!==tv?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==tv&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);tv="",setTimeout((()=>{Zy.visible=!1}),10)}function cv(e){const t=sn(0),n=sn(0),i=Cs((()=>t.value>=500&&n.value>=500)),o=Cs((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},o=t.content,s=t.triangle,a=e.popover;function l(e){return Number(e)||0}if(i.value&&a){r(s,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=l(a.left),t=l(a.width),i=l(a.top),c=l(a.height),u=e+t/2;o.transform="none !important";const d=Math.max(0,u-150);o.left=`${d}px`;let h=Math.max(12,u-d);h=Math.min(288,h),s.left=`${h}px`;const p=n.value/2;i+c-p>p-i?(o.top="auto",o.bottom=n.value-i+6+"px",s.bottom="-6px",s["border-width"]="6px 6px 0 6px",s["border-color"]="#fcfcfd transparent transparent transparent"):(o.top=`${i+c+6}px`,s.top="-6px",s["border-width"]="0 6px 6px 6px",s["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return Ni((()=>{const e=()=>{const{windowWidth:e,windowHeight:i,windowTop:o}=qg();t.value=e,n.value=i+(o||0)};window.addEventListener("resize",e),e(),Vi((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:i,popupStyle:o}}const uv={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const dv=yi({name:"ActionSheet",props:{title:{type:String,default:""},itemList:{type:Array,default:()=>[]},itemColor:{type:String,default:"#000000"},popover:{type:Object,default:null},visible:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){Al();const n=sn(260),i=sn(0),o=sn(0),s=sn(0),a=sn(0),r=sn(null),l=sn(null),{t:c}=Il(),{_close:u}=function(e,t){function n(e){t("close",e)}const{key:i,disable:o}=uy();return Zn((()=>e.visible),(e=>o.value=!e)),Jn((()=>{const{value:e}=i;"esc"===e&&n&&n(-1)})),{_close:n}}(e,t),{popupStyle:d}=cv(e);let h;function p(e){const t=s.value+e.deltaY;Math.abs(t)>10?(a.value+=t/3,a.value=a.value>=i.value?i.value:a.value<=0?0:a.value,h.scrollTo(a.value)):s.value=t,e.preventDefault()}Ni((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:i}=Yf(r.value,{enableY:!0,friction:new Vf(1e-4),spring:new Hf(2,90,20),onScroll:e=>{a.value=e.target.scrollTop}});h=e,bf(r.value,(o=>{if(e)switch(o.detail.state){case"start":t(o);break;case"move":n(o);break;case"end":case"cancel":i(o)}}),!0)})),Zn((()=>e.visible),(()=>{Tn((()=>{e.title&&(o.value=document.querySelector(".uni-actionsheet__title").offsetHeight),h.update(),r.value&&(i.value=r.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{!function(e){const t=20;let n=0,i=0;e.addEventListener("touchstart",(e=>{const t=e.changedTouches[0];n=t.clientX,i=t.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-n)<t&&Math.abs(o.clientY-i)<t){const t=e.target,n=e.currentTarget,i=new CustomEvent("click",{bubbles:!0,cancelable:!0,target:t,currentTarget:n});["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{i[e]=o[e]})),e.target.dispatchEvent(i)}}))}(e)}))}))}));const f=function(e){const t=Wt({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=uv[e][n]}))}(e,t)};return Jn((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:Ng()}),Fy(n))):jy(n)})),t}(e);return()=>is("uni-actionsheet",{onTouchmove:fc},[is(Ls,{name:"uni-fade"},{default:()=>[oi(is("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>u(-1)},null,8,["onClick"]),[[Xs,e.visible]])]}),is("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[is("div",{ref:l,class:"uni-actionsheet__menu",onWheel:p},[e.title?is(Fo,null,[is("div",{class:"uni-actionsheet__cell",style:{height:`${o.value}px`}},null),is("div",{class:"uni-actionsheet__title"},[e.title])]):"",is("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[is("div",{ref:r},[e.itemList.map(((e,t)=>is("div",{key:t,style:{color:f.listItemColor},class:"uni-actionsheet__cell",onClick:()=>u(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),is("div",{class:"uni-actionsheet__action"},[is("div",{style:{color:f.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>u(-1)},[c("uni.showActionSheet.cancel")],12,["onClick"])]),is("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let hv,pv,fv;const mv=he((()=>{Nv.on("onHidePopup",(()=>fv.visible=!1))}));function gv(e){-1===e?pv&&pv("cancel"):hv&&hv({tapIndex:e})}const yv=Dd("showActionSheet",((e,{resolve:t,reject:n})=>{mv(),hv=t,pv=n,fv?(r(fv,e),fv.visible=!0):(fv=Wt(e),Tn((()=>(hy(dv,fv,gv).mount(py("u-s-a-s")),Tn((()=>fv.visible=!0))))))}),0,rp);function vv(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,Nv.emit("onNavigationBarChange",{titleText:t})}Jn(t),Ci(t)}const _v=Dd("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,i,o){if(!e)return o("page not found");const{navigationBar:s}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:i}=n,{duration:o,timingFunc:a}=i;e&&(s.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(s.backgroundColor=t),s.duration=o+"ms",s.timingFunc=a;break;case"showNavigationBarLoading":s.loading=!0;break;case"hideNavigationBarLoading":s.loading=!1;break;case"setNavigationBarTitle":const{title:r}=n;s.titleText=r}i()}(Ic(),"setNavigationBarTitle",e,t,n)}));let bv;function wv(){return bv}const xv=fu({name:"Layout",setup(e,{emit:t}){const n=sn(null);_c({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const i=function(){const e=El();return{routeKey:Cs((()=>tg("/"+e.meta.route,Vm()))),isTabBar:Cs((()=>e.meta.isTabBar)),routeCache:ig}}(),{layoutState:o,windowState:s}=function(){const e=Bm(),t=sn(!1),n=sn(!1),i=sn(!1),o=Cs((()=>!1!==e.meta.topWindow&&t.value)),s=Cs((()=>!1!==e.meta.leftWindow&&n.value)),a=Cs((()=>!1)),r=Wt({topWindowMediaQuery:t,showTopWindow:o,apiShowTopWindow:!1,leftWindowMediaQuery:n,showLeftWindow:s,apiShowLeftWindow:!1,rightWindowMediaQuery:i,showRightWindow:a,apiShowRightWindow:!1,topWindowHeight:0,marginWidth:0,leftWindowWidth:0,rightWindowWidth:0,navigationBarTitleText:"",topWindowStyle:{},leftWindowStyle:{},rightWindowStyle:{}});["topWindow","leftWindow","rightWindow"].forEach((e=>{var t;const n=null==(t=__uniConfig[e])?void 0:t.matchMedia;let i=768;if(n&&u(n,"minWidth")){const e=n.minWidth;i=function(e){const t=[window.outerWidth,window.outerHeight,Fm.width,Fm.height,jm.clientWidth,jm.clientHeight];return Math.max.apply(null,t)>e}(e)?e:i}const o=function(e,t){const n=window.matchMedia("(min-width: "+e+"px)");n.addEventListener?n.addEventListener("change",t):n.addListener(t);return n.matches}(i,(t=>{r[`${e}MediaQuery`]=t.matches}));r[`${e}MediaQuery`]=o})),Zn((()=>r.topWindowHeight),(e=>_c({"--top-window-height":e+"px"}))),Zn((()=>r.marginWidth),(e=>_c({"--window-margin":e+"px"}))),Zn((()=>r.leftWindowWidth+r.marginWidth),(e=>{_c({"--window-left":e+"px"})})),Zn((()=>r.rightWindowWidth+r.marginWidth),(e=>{_c({"--window-right":e+"px"})})),Nv.on("onNavigationBarChange",(e=>{r.navigationBarTitleText=e.titleText}));const l=Cs((()=>({matchTopWindow:r.topWindowMediaQuery,showTopWindow:r.showTopWindow||r.apiShowTopWindow,matchLeftWindow:r.leftWindowMediaQuery,showLeftWindow:r.showLeftWindow||r.apiShowLeftWindow,matchRightWindow:r.rightWindowMediaQuery,showRightWindow:r.showRightWindow||r.apiShowRightWindow})));return{layoutState:r,windowState:l}}();!function(e,t){const n=Bm();function i(){const i=document.body.clientWidth,o=Gm();let s={};if(o.length>0){s=o[o.length-1].$page.meta}else{const e=Vc(n.path,!0);e&&(s=e.meta)}const a=parseInt(String((u(s,"maxWidth")?s.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let r=!1;r=i>a,r&&a?(e.marginWidth=(i-a)/2,Tn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,Tn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Zn([()=>n.path],i),Ni((()=>{i(),window.addEventListener("resize",i)}))}(o,n);const a=function(e){const{component:t,style:n}=__uniConfig.topWindow,i=sn(null);function o(){const t=ae(i.value.$).getBoundingClientRect().height;e.topWindowHeight=t}return Ni(o),Zn((()=>e.showTopWindow||e.apiShowTopWindow),(()=>Tn(o))),e.topWindowStyle=n,{component:t,windowRef:i}}(o),r=function(e){const{component:t,style:n}=__uniConfig.leftWindow,i=sn(null);function o(){const t=ae(i.value.$).getBoundingClientRect().width;e.leftWindowWidth=t}return Ni(o),Zn((()=>e.showLeftWindow||e.apiShowLeftWindow),(()=>Tn(o))),e.leftWindowStyle=n,{component:t,windowRef:i}}(o),l=function(e){const t=sn(!1);return Cs((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(!1);return bv=o,()=>{const e=function(e,t,n,i,o,s){const a=function({routeKey:e,isTabBar:t,routeCache:n}){return is(Sl,null,{default:Fn((({Component:i})=>[(qo(),Go(Ti,{matchBy:"key",cache:n},[(qo(),Go(zn(i),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e),r=function(e,t,n){if(e){const{component:i,windowRef:o}=e;return oi(is("uni-top-window",null,[is("div",{class:"uni-top-window",style:t.topWindowStyle},[is(i,us({ref:o,"navigation-bar-title-text":t.navigationBarTitleText},n),null,16,["navigation-bar-title-text"])],4),is("div",{class:"uni-top-window--placeholder",style:{height:t.topWindowHeight+"px"}},null,4)],512),[[Xs,t.showTopWindow||t.apiShowTopWindow]])}}(i,t,n.value),l=function(e,t,n){if(e){const{component:i,windowRef:o}=e;return oi(is("uni-left-window",{"data-show":t.apiShowLeftWindow||void 0,style:t.leftWindowStyle},[t.apiShowLeftWindow?is("div",{class:"uni-mask",onClick:()=>t.apiShowLeftWindow=!1},null,8,["onClick"]):null,is("div",{class:"uni-left-window"},[is(i,us({ref:o},n),null,16)])],12,["data-show"]),[[Xs,t.showLeftWindow||t.apiShowLeftWindow]])}}(o,t,n.value),c=null;return is("uni-layout",{class:{"uni-app--showtopwindow":t.showTopWindow,"uni-app--showleftwindow":t.showLeftWindow,"uni-app--showrightwindow":!1}},[r,is("uni-content",null,[is("uni-main",null,[a]),l,c])],2)}(i,o,s,a,r);return is("uni-app",{ref:n,class:l.value},[e,!1],2)}}});const kv=Dd("showLeftWindow",((e,{resolve:t,reject:n})=>{const i=wv();i?(i.apiShowLeftWindow=!0,Tn(t)):n()})),Tv=Dd("hideLeftWindow",((e,{resolve:t,reject:n})=>{const i=wv();i?(i.apiShowLeftWindow=!1,Tn(t)):n()})),Sv=Dd("login",(Cv="login",(e,{reject:t})=>t(function(e){return`method 'uni.${e}' not supported`}(Cv))));var Cv;function Ev(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Jo(e)}function Pv(e){if(e.mode===Mv.TIME)return"00:00";if(e.mode===Mv.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case Ov.YEAR:return t.toString();case Ov.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function Dv(e){if(e.mode===Mv.TIME)return"23:59";if(e.mode===Mv.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case Ov.YEAR:return t.toString();case Ov.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function Iv(e,t,n,i){const o=e.mode===Mv.DATE?"-":":",s=e.mode===Mv.DATE?t.dateArray:t.timeArray;let a;if(e.mode===Mv.TIME)a=2;else switch(e.fields){case Ov.YEAR:a=1;break;case Ov.MONTH:a=2;break;default:a=3}const r=String(n).split(o);let l=[];for(let c=0;c<a;c++){const e=r[c];l.push(s[c].indexOf(e))}return l.indexOf(-1)>=0&&(l=i?Iv(e,t,i):l.map((()=>0))),l}const Mv={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},Ov={YEAR:"year",MONTH:"month",DAY:"day"},Av={PICKER:"picker",SELECT:"select"},Lv=pu({name:"Picker",compatConfig:{MODE:3},props:{name:{type:String,default:""},range:{type:Array,default:()=>[]},rangeKey:{type:String,default:""},value:{type:[Number,String,Array],default:0},mode:{type:String,default:Mv.SELECTOR,validator:e=>Object.values(Mv).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>Pv(e)},end:{type:String,default:e=>Dv(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){Fl();const{t:i}=Il(),o=sn(null),s=sn(null),a=sn(null),r=sn(null),l=sn(!1),{state:c,rangeArray:u}=function(e){const t=Wt({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Cs((()=>{let n=e.range;switch(e.mode){case Mv.SELECTOR:return[n];case Mv.MULTISELECTOR:return n;case Mv.TIME:return t.timeArray;case Mv.DATE:{const n=t.dateArray;switch(e.fields){case Ov.YEAR:return[n[0]];case Ov.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),h=gu(o,t),{system:p,selectorTypeComputed:f,_show:m,_l10nColumn:g,_l10nItem:y,_input:v,_fixInputPosition:_,_pickerViewChange:b,_cancel:w,_change:x,_resetFormData:k,_getFormData:T,_createTime:S,_createDate:C,_setValueSync:E}=function(e,t,n,i,o,s,a){const r=function(){const e=sn(!1);return e.value=(()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0)(),e}(),l=function(){const e=sn("");return e.value=(()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""})(),e}(),c=Cs((()=>{const t=e.selectorType;return Object.values(Av).includes(t)?t:r.value?Av.PICKER:Av.SELECT})),u=Cs((()=>e.mode===Mv.DATE&&!Object.values(Ov).includes(e.fields)&&t.isDesktop?l.value:"")),h=Cs((()=>Iv(e,t,e.start,Pv(e)))),p=Cs((()=>Iv(e,t,e.end,Dv(e))));function f(n){if(e.disabled)return;t.valueChangeSource="";let i=o.value,s=n.currentTarget;i.remove(),(document.querySelector("uni-app")||document.body).appendChild(i),i.style.display="block";const a=s.getBoundingClientRect();t.popover={top:a.top,left:a.left,width:a.width,height:a.height},setTimeout((()=>{t.visible=!0}),20)}function m(){return{value:t.valueSync,key:e.name}}function g(){switch(e.mode){case Mv.SELECTOR:t.valueSync=0;break;case Mv.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case Mv.DATE:case Mv.TIME:t.valueSync=""}}function y(){let e=[],n=[];for(let t=0;t<24;t++)e.push((t<10?"0":"")+t);for(let t=0;t<60;t++)n.push((t<10?"0":"")+t);t.timeArray.push(e,n)}function v(){let t=(new Date).getFullYear(),n=t-150,i=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&t<n&&(n=t)}if(e.end){const t=new Date(e.end).getFullYear();!isNaN(t)&&t>i&&(i=t)}return{start:n,end:i}}function _(){let e=[];const n=v();for(let t=n.start,s=n.end;t<=s;t++)e.push(String(t));let i=[];for(let t=1;t<=12;t++)i.push((t<10?"0":"")+t);let o=[];for(let t=1;t<=31;t++)o.push((t<10?"0":"")+t);t.dateArray.push(e,i,o)}function b(e){return 60*e[0]+e[1]}function w(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function x(e,t){for(let n=0;n<e.length&&n<t.length;n++)e[n]=t[n]}function k(){let n=e.value;switch(e.mode){case Mv.MULTISELECTOR:{d(n)||(n=t.valueArray),d(t.valueSync)||(t.valueSync=[]);const i=t.valueSync.length=Math.max(n.length,e.range.length);for(let o=0;o<i;o++){const i=Number(n[o]),s=Number(t.valueSync[o]),a=isNaN(i)?isNaN(s)?0:s:i,r=e.range[o]?e.range[o].length-1:0;t.valueSync.splice(o,1,a<0||a>r?0:a)}}break;case Mv.TIME:case Mv.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function T(){let n,i=t.valueSync;switch(e.mode){case Mv.MULTISELECTOR:n=[...i];break;case Mv.TIME:n=Iv(e,t,i,fe({mode:Mv.TIME}));break;case Mv.DATE:n=Iv(e,t,i,fe({mode:Mv.DATE}));break;default:n=[i]}t.oldValueArray=[...n],t.valueArray=[...n]}function S(){let n=t.valueArray;switch(e.mode){case Mv.SELECTOR:return n[0];case Mv.MULTISELECTOR:return n.map((e=>e));case Mv.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case Mv.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function C(){P(),t.valueChangeSource="click";const e=S();t.valueSync=d(e)?e.map((e=>e)):e,n("change",{},{value:e})}function E(e){if("firefox"===u.value&&e){const{top:n,left:i,width:o,height:s}=t.popover,{pageX:a,pageY:r}=e;if(a>i&&a<i+o&&r>n&&r<n+s)return}P(),n("cancel",{},{})}function P(){t.visible=!1,setTimeout((()=>{let e=o.value;e.remove(),i.value.prepend(e),e.style.display="none"}),260)}function D(){e.mode===Mv.SELECTOR&&c.value===Av.SELECT&&(s.value.scrollTop=34*t.valueArray[0])}function I(e){const n=e.target;t.valueSync=n.value,Tn((()=>{C()}))}function M(e){if("chrome"===u.value){const t=i.value.getBoundingClientRect(),n=32;a.value.style.left=e.clientX-t.left-1.5*n+"px",a.value.style.top=e.clientY-t.top-.5*n+"px"}}function O(e){t.valueArray=A(e.detail.value,!0)}function A(t,n){const{getLocale:i}=Il();if(e.mode===Mv.DATE){const o=i();if(!o.startsWith("zh"))switch(e.fields){case Ov.YEAR:return t;case Ov.MONTH:return[t[1],t[0]];default:switch(o){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function L(t,n){const{getLocale:i}=Il();if(e.mode===Mv.DATE){const o=i();if(o.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==Ov.YEAR&&n===(e.fields===Ov.MONTH||"es"!==o&&"fr"!==o?0:1)){let e;switch(o){case"es":e=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return Zn((()=>t.visible),(e=>{e?(clearTimeout(Rv),t.contentVisible=e,D()):Rv=setTimeout((()=>{t.contentVisible=e}),300)})),Zn([()=>e.mode,()=>e.value,()=>e.range],k,{deep:!0}),Zn((()=>t.valueSync),T,{deep:!0}),Zn((()=>t.valueArray),(i=>{if(e.mode===Mv.TIME||e.mode===Mv.DATE){const n=e.mode===Mv.TIME?b:w,i=t.valueArray,o=h.value,s=p.value;if(e.mode===Mv.DATE){const e=t.dateArray,n=e[2].length,o=Number(e[2][i[2]])||1,s=new Date(`${e[0][i[0]]}/${e[1][i[1]]}/${o}`).getDate();s<o&&(i[2]-=s+n-o)}n(i)<n(o)?x(i,o):n(i)>n(s)&&x(i,s)}i.forEach(((i,o)=>{i!==t.oldValueArray[o]&&(t.oldValueArray[o]=i,e.mode===Mv.MULTISELECTOR&&n("columnchange",{},{column:o,value:i}))}))})),{selectorTypeComputed:c,system:u,_show:f,_cancel:E,_change:C,_l10nColumn:A,_l10nItem:L,_input:I,_resetFormData:g,_getFormData:m,_createTime:y,_createDate:_,_setValueSync:k,_fixInputPosition:M,_pickerViewChange:O}}(e,c,h,o,s,a,r);!function(e,t,n){const{key:i,disable:o}=uy();Jn((()=>{o.value=!e.visible})),Zn(i,(e=>{"esc"===e?t():"enter"===e&&n()}))}(c,w,x),function(e,t){const n=_o(bu,!1);if(n){const i={reset:e,submit:()=>{const e=["",null],{key:n,value:i}=t();return""!==n&&(e[0]=n,e[1]=i),e}};n.addField(i),ji((()=>{n.removeField(i)}))}}(k,T),S(),C(),E();const P=cv(c);return Jn((()=>{c.isDesktop=P.isDesktop.value,c.popupStyle=P.popupStyle.value})),ji((()=>{s.value&&s.value.remove()})),Ni((()=>{l.value=!0})),()=>{let t;const{visible:d,contentVisible:h,valueArray:k,popupStyle:T,valueSync:S}=c,{rangeKey:C,mode:E,start:P,end:D}=e,I=_u(e,"disabled");return is("uni-picker",us({ref:o},I,{onClick:mu(m)}),[l.value?is("div",{ref:s,class:["uni-picker-container",`uni-${E}-${f.value}`],onWheel:fc,onTouchmove:fc},[is(Ls,{name:"uni-fade"},{default:()=>[oi(is("div",{class:"uni-mask uni-picker-mask",onClick:mu(w),onMousemove:_},null,40,["onClick","onMousemove"]),[[Xs,d]])]}),p.value?null:is("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:T.content},[is("div",{class:"uni-picker-header",onClick:mc},[is("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:mu(w)},[i("uni.picker.cancel")],8,["onClick"]),is("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:x},[i("uni.picker.done")],8,["onClick"])],8,["onClick"]),h?is(jf,{value:g(k),class:"uni-picker-content",onChange:b},Ev(t=zi(g(u.value),((e,t)=>{let n;return is(Kf,{key:t},Ev(n=zi(e,((e,n)=>is("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[C]||"":y(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,is("div",{ref:a,class:"uni-picker-select",onWheel:mc,onTouchmove:mc},[zi(u.value[0],((e,t)=>is("div",{key:t,class:["uni-picker-item",{selected:k[0]===t}],onClick:()=>{k[0]=t,x()}},["object"==typeof e?e[C]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),is("div",{style:T.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,is("div",null,[n.default&&n.default()]),p.value?is("div",{class:"uni-picker-system",onMousemove:mu(_)},[is("input",{class:["uni-picker-system_input",p.value],ref:r,value:S,type:E,tabindex:"-1",min:P,max:D,onChange:e=>{v(e),mc(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});let Rv;const $v=r(zl,{publishHandler(e,t,n){Nv.subscribeHandler(e,t,n)}}),Nv=r(eu,{publishHandler(e,t,n){$v.subscribeHandler(e,t,n)}}),Bv=fu({name:"PageHead",setup(){const e=sn(null),t=$m(),n=function(e,t){const n=zt(e),i=n?Wt(Vy(e)):Vy(e);return __uniConfig.darkmode&&n&&Zn(e,(e=>{const t=Vy(e);for(const n in t)i[n]=t[n]})),t&&Fy(t),i}(t.navigationBar,(()=>{const e=Vy(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:i,style:o}=function(e){const t=Cs((()=>{const{type:t,titlePenetrate:n,shadowColorType:i}=e,o={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!i};return i&&(o[`uni-page-head-shadow-${i}`]=!0),o})),n=Cs((()=>({backgroundColor:e.backgroundColor,color:e.titleColor,transitionDuration:e.duration,transitionTimingFunction:e.timingFunc})));return{clazz:t,style:n}}(n);return()=>{const s=function(e,t){if(!t)return is("div",{class:"uni-page-head-btn",onClick:jv},[Cc(Sc,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),a=n.type||"default",r="transparent"!==a&&"float"!==a&&is("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return is("uni-page-head",{"uni-page-head-type":a},[is("div",{ref:e,class:i.value,style:o.value},[is("div",{class:"uni-page-head-hd"},[s]),Fv(n),is("div",{class:"uni-page-head-ft"},[])],6),r],8,["uni-page-head-type"])}}});function Fv(e,t){return function({type:e,loading:t,titleSize:n,titleText:i,titleImage:o}){return is("div",{class:"uni-page-head-bd"},[is("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?is("i",{class:"uni-loading"},null):o?is("img",{src:o,class:"uni-page-head__title_image"},null,8,["src"]):i],4)])}(e)}function jv(){1===Gm().length?$y({url:"/"}):Oy({from:"backbutton",success(){}})}const Vv=fu({name:"PageBody",setup(e,t){const n=sn(null);return Zn((()=>false.enablePullDownRefresh),(()=>{n.value=null}),{immediate:!0}),()=>is(Fo,null,[!1,is("uni-page-wrapper",n.value,[is("uni-page-body",null,[Xi(t.slots,"default")])],16)])}}),Wv=fu({name:"Page",setup(e,t){const n=Nm(Vm()),i=n.navigationBar,o={};return vv(n),()=>is("uni-page",{"data-page":n.route,style:o},"custom"!==i.style?[is(Bv),Uv(t)]:[Uv(t)])}});function Uv(e){return qo(),Go(Vv,{key:0},{default:Fn((()=>[Xi(e.slots,"page")])),_:3})}const Hv={},qv=function(e,t,n){let i=Promise.resolve();if(t&&t.length>0){const e=document.getElementsByTagName("link"),o=document.querySelector("meta[property=csp-nonce]"),s=(null==o?void 0:o.nonce)||(null==o?void 0:o.getAttribute("nonce"));i=Promise.all(t.map((t=>{if((t=function(e){return"/admin/"+e}(t))in Hv)return;Hv[t]=!0;const i=t.endsWith(".css"),o=i?'[rel="stylesheet"]':"";if(!!n)for(let n=e.length-1;n>=0;n--){const o=e[n];if(o.href===t&&(!i||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${o}`))return;const a=document.createElement("link");return a.rel=i?"stylesheet":"modulepreload",i||(a.as="script",a.crossOrigin=""),a.href=t,s&&a.setAttribute("nonce",s),document.head.appendChild(a),i?new Promise(((e,n)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0})))}return i.then((()=>e())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))},zv={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0},Yv=[{font_class:"arrow-down",unicode:""},{font_class:"arrow-left",unicode:""},{font_class:"arrow-right",unicode:""},{font_class:"arrow-up",unicode:""},{font_class:"auth",unicode:""},{font_class:"auth-filled",unicode:""},{font_class:"back",unicode:""},{font_class:"bars",unicode:""},{font_class:"calendar",unicode:""},{font_class:"calendar-filled",unicode:""},{font_class:"camera",unicode:""},{font_class:"camera-filled",unicode:""},{font_class:"cart",unicode:""},{font_class:"cart-filled",unicode:""},{font_class:"chat",unicode:""},{font_class:"chat-filled",unicode:""},{font_class:"chatboxes",unicode:""},{font_class:"chatboxes-filled",unicode:""},{font_class:"chatbubble",unicode:""},{font_class:"chatbubble-filled",unicode:""},{font_class:"checkbox",unicode:""},{font_class:"checkbox-filled",unicode:""},{font_class:"checkmarkempty",unicode:""},{font_class:"circle",unicode:""},{font_class:"circle-filled",unicode:""},{font_class:"clear",unicode:""},{font_class:"close",unicode:""},{font_class:"closeempty",unicode:""},{font_class:"cloud-download",unicode:""},{font_class:"cloud-download-filled",unicode:""},{font_class:"cloud-upload",unicode:""},{font_class:"cloud-upload-filled",unicode:""},{font_class:"color",unicode:""},{font_class:"color-filled",unicode:""},{font_class:"compose",unicode:""},{font_class:"contact",unicode:""},{font_class:"contact-filled",unicode:""},{font_class:"down",unicode:""},{font_class:"bottom",unicode:""},{font_class:"download",unicode:""},{font_class:"download-filled",unicode:""},{font_class:"email",unicode:""},{font_class:"email-filled",unicode:""},{font_class:"eye",unicode:""},{font_class:"eye-filled",unicode:""},{font_class:"eye-slash",unicode:""},{font_class:"eye-slash-filled",unicode:""},{font_class:"fire",unicode:""},{font_class:"fire-filled",unicode:""},{font_class:"flag",unicode:""},{font_class:"flag-filled",unicode:""},{font_class:"folder-add",unicode:""},{font_class:"folder-add-filled",unicode:""},{font_class:"font",unicode:""},{font_class:"forward",unicode:""},{font_class:"gear",unicode:""},{font_class:"gear-filled",unicode:""},{font_class:"gift",unicode:""},{font_class:"gift-filled",unicode:""},{font_class:"hand-down",unicode:""},{font_class:"hand-down-filled",unicode:""},{font_class:"hand-up",unicode:""},{font_class:"hand-up-filled",unicode:""},{font_class:"headphones",unicode:""},{font_class:"heart",unicode:""},{font_class:"heart-filled",unicode:""},{font_class:"help",unicode:""},{font_class:"help-filled",unicode:""},{font_class:"home",unicode:""},{font_class:"home-filled",unicode:""},{font_class:"image",unicode:""},{font_class:"image-filled",unicode:""},{font_class:"images",unicode:""},{font_class:"images-filled",unicode:""},{font_class:"info",unicode:""},{font_class:"info-filled",unicode:""},{font_class:"left",unicode:""},{font_class:"link",unicode:""},{font_class:"list",unicode:""},{font_class:"location",unicode:""},{font_class:"location-filled",unicode:""},{font_class:"locked",unicode:""},{font_class:"locked-filled",unicode:""},{font_class:"loop",unicode:""},{font_class:"mail-open",unicode:""},{font_class:"mail-open-filled",unicode:""},{font_class:"map",unicode:""},{font_class:"map-filled",unicode:""},{font_class:"map-pin",unicode:""},{font_class:"map-pin-ellipse",unicode:""},{font_class:"medal",unicode:""},{font_class:"medal-filled",unicode:""},{font_class:"mic",unicode:""},{font_class:"mic-filled",unicode:""},{font_class:"micoff",unicode:""},{font_class:"micoff-filled",unicode:""},{font_class:"minus",unicode:""},{font_class:"minus-filled",unicode:""},{font_class:"more",unicode:""},{font_class:"more-filled",unicode:""},{font_class:"navigate",unicode:""},{font_class:"navigate-filled",unicode:""},{font_class:"notification",unicode:""},{font_class:"notification-filled",unicode:""},{font_class:"paperclip",unicode:""},{font_class:"paperplane",unicode:""},{font_class:"paperplane-filled",unicode:""},{font_class:"person",unicode:""},{font_class:"person-filled",unicode:""},{font_class:"personadd",unicode:""},{font_class:"personadd-filled",unicode:""},{font_class:"personadd-filled-copy",unicode:""},{font_class:"phone",unicode:""},{font_class:"phone-filled",unicode:""},{font_class:"plus",unicode:""},{font_class:"plus-filled",unicode:""},{font_class:"plusempty",unicode:""},{font_class:"pulldown",unicode:""},{font_class:"pyq",unicode:""},{font_class:"qq",unicode:""},{font_class:"redo",unicode:""},{font_class:"redo-filled",unicode:""},{font_class:"refresh",unicode:""},{font_class:"refresh-filled",unicode:""},{font_class:"refreshempty",unicode:""},{font_class:"reload",unicode:""},{font_class:"right",unicode:""},{font_class:"scan",unicode:""},{font_class:"search",unicode:""},{font_class:"settings",unicode:""},{font_class:"settings-filled",unicode:""},{font_class:"shop",unicode:""},{font_class:"shop-filled",unicode:""},{font_class:"smallcircle",unicode:""},{font_class:"smallcircle-filled",unicode:""},{font_class:"sound",unicode:""},{font_class:"sound-filled",unicode:""},{font_class:"spinner-cycle",unicode:""},{font_class:"staff",unicode:""},{font_class:"staff-filled",unicode:""},{font_class:"star",unicode:""},{font_class:"star-filled",unicode:""},{font_class:"starhalf",unicode:""},{font_class:"trash",unicode:""},{font_class:"trash-filled",unicode:""},{font_class:"tune",unicode:""},{font_class:"tune-filled",unicode:""},{font_class:"undo",unicode:""},{font_class:"undo-filled",unicode:""},{font_class:"up",unicode:""},{font_class:"top",unicode:""},{font_class:"upload",unicode:""},{font_class:"upload-filled",unicode:""},{font_class:"videocam",unicode:""},{font_class:"videocam-filled",unicode:""},{font_class:"vip",unicode:""},{font_class:"vip-filled",unicode:""},{font_class:"wallet",unicode:""},{font_class:"wallet-filled",unicode:""},{font_class:"weibo",unicode:""},{font_class:"weixin",unicode:""}],Xv=(e,t)=>{const n=e.__vccOpts||e;for(const[i,o]of t)n[i]=o;return n};const Kv=Xv({name:"UniIcons",emits:["click"],props:{type:{type:String,default:""},color:{type:String,default:"#333333"},size:{type:[Number,String],default:16},customPrefix:{type:String,default:""},fontFamily:{type:String,default:""}},data:()=>({icons:Yv}),computed:{unicode(){let e=this.icons.find((e=>e.font_class===this.type));return e?e.unicode:""},iconSize(){return"number"==typeof(e=this.size)||/^[0-9]*$/g.test(e)?e+"px":e;var e},styleObj(){return""!==this.fontFamily?`color: ${this.color}; font-size: ${this.iconSize}; font-family: ${this.fontFamily};`:`color: ${this.color}; font-size: ${this.iconSize};`}},methods:{_onClick(){this.$emit("click")}}},[["render",function(e,t,n,i,o,s){const a=pm;return qo(),Go(a,{style:re(s.styleObj),class:le(["uni-icons",["uniui-"+n.type,n.customPrefix,n.customPrefix?n.type:""]]),onClick:s._onClick},{default:Fn((()=>[Xi(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])}],["__scopeId","data-v-5610c8db"]]);const Gv=(e,t,n=!1)=>{const i=n?an(e):sn(e);if("undefined"==typeof window)return i;const o=window.__uniSSR;if(!o)return i;const s=ms()?"data":"globalData";return function(e,t=!1){if(!e)throw new Error((t?"shallowSsrRef":"ssrRef")+": You must provide a key.")}(t,n),u(o[s],t)&&(i.value=o[s][t],"data"===s&&delete o[s][t]),i},Jv=(e,t)=>Gv(e,t),Qv=(e,t)=>Gv(e,t,!0);function Zv(e,t){return"string"==typeof e?t:e}const e_=Xv({name:"UniBadge",emits:["click"],props:{type:{type:String,default:"error"},inverted:{type:Boolean,default:!1},isDot:{type:Boolean,default:!1},maxNum:{type:Number,default:99},absolute:{type:String,default:""},offset:{type:Array,default:()=>[0,0]},text:{type:[String,Number],default:""},size:{type:String,default:"small"},customStyle:{type:Object,default:()=>({})}},data:()=>({}),computed:{width(){return 8*String(this.text).length+12},classNames(){const{inverted:e,type:t,size:n,absolute:i}=this;return[e?"uni-badge--"+t+"-inverted":"","uni-badge--"+t,"uni-badge--"+n,i?"uni-badge--absolute":""].join(" ")},positionStyle(){if(!this.absolute)return{};let e=this.width/2,t=10;this.isDot&&(e=5,t=5);const n=`${-e+this.offset[0]}px`,i=`${-t+this.offset[1]}px`,o={rightTop:{right:n,top:i},rightBottom:{right:n,bottom:i},leftBottom:{left:n,bottom:i},leftTop:{left:n,top:i}},s=o[this.absolute];return s||o.rightTop},dotStyle(){return this.isDot?{width:"10px",minWidth:"0",height:"10px",padding:"0",borderRadius:"10px"}:{}},displayValue(){const{isDot:e,text:t,maxNum:n}=this;return e?"":Number(t)>n?`${n}+`:t}},methods:{onClick(){this.$emit("click")}}},[["render",function(e,t,n,i,o,s){const a=pm,r=vm;return qo(),Go(r,{class:"uni-badge--x"},{default:Fn((()=>[Xi(e.$slots,"default",{},void 0,!0),n.text?(qo(),Go(a,{key:0,class:le([s.classNames,"uni-badge"]),style:re([s.positionStyle,n.customStyle,s.dotStyle]),onClick:t[0]||(t[0]=e=>s.onClick())},{default:Fn((()=>[ss(X(s.displayValue),1)])),_:1},8,["class","style"])):as("",!0)])),_:3})}],["__scopeId","data-v-414d462c"]]);class t_{constructor(e,t){this.options=e,this.animation=Ch({...e}),this.currentStepAnimates={},this.next=0,this.$=t}_nvuePushAnimates(e,t){let n=this.currentStepAnimates[this.next],i={};if(i=n||{styles:{},config:{}},n_.includes(e)){i.styles.transform||(i.styles.transform="");let n="";"rotate"===e&&(n="deg"),i.styles.transform+=`${e}(${t+n}) `}else i.styles[e]=`${t}`;this.currentStepAnimates[this.next]=i}_animateRun(e={},t={}){let n=this.$.$refs.ani.ref;if(n)return new Promise(((i,o)=>{nvueAnimation.transition(n,{styles:e,...t},(e=>{i()}))}))}_nvueNextAnimate(e,t=0,n){let i=e[t];if(i){let{styles:o,config:s}=i;this._animateRun(o,s).then((()=>{t+=1,this._nvueNextAnimate(e,t,n)}))}else this.currentStepAnimates={},"function"==typeof n&&n(),this.isEnd=!0}step(e={}){return this.animation.step(e),this}run(e){this.$.animationData=this.animation.export(),this.$.timer=setTimeout((()=>{"function"==typeof e&&e()}),this.$.durationTime)}}const n_=["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"];function i_(e,t){if(t)return clearTimeout(t.timer),new t_(e,t)}n_.concat(["opacity","backgroundColor"],["width","height","left","right","top","bottom"]).forEach((e=>{t_.prototype[e]=function(...t){return this.animation[e](...t),this}}));const o_={name:"uniTransition",emits:["click","change"],props:{show:{type:Boolean,default:!1},modeClass:{type:[Array,String],default:()=>"fade"},duration:{type:Number,default:300},styles:{type:Object,default:()=>({})},customClass:{type:String,default:""},onceRender:{type:Boolean,default:!1}},data:()=>({isShow:!1,transform:"",opacity:1,animationData:{},durationTime:300,config:{}}),watch:{show:{handler(e){e?this.open():this.isShow&&this.close()},immediate:!0}},computed:{stylesObject(){let e={...this.styles,"transition-duration":this.duration/1e3+"s"},t="";for(let n in e){t+=this.toLine(n)+":"+e[n]+";"}return t},transformStyles(){return"transform:"+this.transform+";opacity:"+this.opacity+";"+this.stylesObject}},created(){this.config={duration:this.duration,timingFunction:"ease",transformOrigin:"50% 50%",delay:0},this.durationTime=this.duration},methods:{init(e={}){e.duration&&(this.durationTime=e.duration),this.animation=i_(Object.assign(this.config,e),this)},onClick(){this.$emit("click",{detail:this.isShow})},step(e,t={}){if(this.animation){for(let t in e)try{"object"==typeof e[t]?this.animation[t](...e[t]):this.animation[t](e[t])}catch(Mw){console.error(`方法 ${t} 不存在`)}return this.animation.step(t),this}},run(e){this.animation&&this.animation.run(e)},open(){clearTimeout(this.timer),this.transform="",this.isShow=!0;let{opacity:e,transform:t}=this.styleInit(!1);void 0!==e&&(this.opacity=e),this.transform=t,this.$nextTick((()=>{this.timer=setTimeout((()=>{this.animation=i_(this.config,this),this.tranfromInit(!1).step(),this.animation.run(),this.$emit("change",{detail:this.isShow})}),20)}))},close(e){this.animation&&this.tranfromInit(!0).step().run((()=>{this.isShow=!1,this.animationData=null,this.animation=null;let{opacity:e,transform:t}=this.styleInit(!1);this.opacity=e||1,this.transform=t,this.$emit("change",{detail:this.isShow})}))},styleInit(e){let t={transform:""},n=(e,n)=>{"fade"===n?t.opacity=this.animationType(e)[n]:t.transform+=this.animationType(e)[n]+" "};return"string"==typeof this.modeClass?n(e,this.modeClass):this.modeClass.forEach((t=>{n(e,t)})),t},tranfromInit(e){let t=(e,t)=>{let n=null;"fade"===t?n=e?0:1:(n=e?"-100%":"0","zoom-in"===t&&(n=e?.8:1),"zoom-out"===t&&(n=e?1.2:1),"slide-right"===t&&(n=e?"100%":"0"),"slide-bottom"===t&&(n=e?"100%":"0")),this.animation[this.animationMode()[t]](n)};return"string"==typeof this.modeClass?t(e,this.modeClass):this.modeClass.forEach((n=>{t(e,n)})),this.animation},animationType:e=>({fade:e?1:0,"slide-top":`translateY(${e?"0":"-100%"})`,"slide-right":`translateX(${e?"0":"100%"})`,"slide-bottom":`translateY(${e?"0":"100%"})`,"slide-left":`translateX(${e?"0":"-100%"})`,"zoom-in":`scaleX(${e?1:.8}) scaleY(${e?1:.8})`,"zoom-out":`scaleX(${e?1:1.2}) scaleY(${e?1:1.2})`}),animationMode:()=>({fade:"opacity","slide-top":"translateY","slide-right":"translateX","slide-bottom":"translateY","slide-left":"translateX","zoom-in":"scale","zoom-out":"scale"}),toLine:e=>e.replace(/([A-Z])/g,"-$1").toLowerCase()}};const s_=Xv(o_,[["render",function(e,t,n,i,o,s){const a=vm;return oi((qo(),Go(a,{ref:"ani",animation:o.animationData,class:le(n.customClass),style:re(s.transformStyles),onClick:s.onClick},{default:Fn((()=>[Xi(e.$slots,"default")])),_:3},8,["animation","class","style","onClick"])),[[Xs,o.isShow]])}]]),a_={name:"uniPopup",components:{keypress:{name:"Keypress",props:{disable:{type:Boolean,default:!1}},mounted(){const e={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]};document.addEventListener("keyup",(t=>{if(this.disable)return;const n=Object.keys(e).find((n=>{const i=t.key,o=e[n];return o===i||Array.isArray(o)&&o.includes(i)}));n&&setTimeout((()=>{this.$emit(n,{})}),0)}))},render:()=>{}}},emits:["change","maskClick"],props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},isMaskClick:{type:Boolean,default:null},maskClick:{type:Boolean,default:null},backgroundColor:{type:String,default:"none"},safeArea:{type:Boolean,default:!0},maskBackgroundColor:{type:String,default:"rgba(0, 0, 0, 0.4)"},borderRadius:{type:String}},watch:{type:{handler:function(e){this.config[e]&&this[this.config[e]](!0)},immediate:!0},isDesktop:{handler:function(e){this.config[e]&&this[this.config[this.type]](!0)},immediate:!0},maskClick:{handler:function(e){this.mkclick=e},immediate:!0},isMaskClick:{handler:function(e){this.mkclick=e},immediate:!0},showPopup(e){document.getElementsByTagName("body")[0].style.overflow=e?"hidden":"visible"}},data(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,popupWidth:0,popupHeight:0,config:{top:"top",bottom:"bottom",center:"center",left:"left",right:"right",message:"top",dialog:"center",share:"bottom"},maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{backgroundColor:"transparent",borderRadius:this.borderRadius||"0",position:"fixed",left:0,right:0},maskShow:!0,mkclick:!0,popupstyle:"top"}},computed:{getStyles(){let e={backgroundColor:this.bg};return this.borderRadius,e=Object.assign(e,{borderRadius:this.borderRadius}),e},isDesktop(){return this.popupWidth>=500&&this.popupHeight>=500},bg(){return""===this.backgroundColor||"none"===this.backgroundColor?"transparent":this.backgroundColor}},mounted(){(()=>{const{windowWidth:e,windowHeight:t,windowTop:n,safeArea:i,screenHeight:o,safeAreaInsets:s}=qg();this.popupWidth=e,this.popupHeight=t+(n||0),i&&this.safeArea?this.safeAreaInsets=s.bottom:this.safeAreaInsets=0})()},unmounted(){this.setH5Visible()},activated(){this.setH5Visible(!this.showPopup)},deactivated(){this.setH5Visible(!0)},created(){null===this.isMaskClick&&null===this.maskClick?this.mkclick=!0:this.mkclick=null!==this.isMaskClick?this.isMaskClick:this.maskClick,this.animation?this.duration=300:this.duration=0,this.messageChild=null,this.clearPropagation=!1,this.maskClass.backgroundColor=this.maskBackgroundColor},methods:{setH5Visible(e=!0){document.getElementsByTagName("body")[0].style.overflow=e?"visible":"hidden"},closeMask(){this.maskShow=!1},disableMask(){this.mkclick=!1},clear(e){e.stopPropagation(),this.clearPropagation=!0},open(e){if(this.showPopup)return;e&&-1!==["top","center","bottom","left","right","message","dialog","share"].indexOf(e)||(e=this.type),this.config[e]?(this[this.config[e]](),this.$emit("change",{show:!0,type:e})):console.error("缺少类型:",e)},close(e){this.showTrans=!1,this.$emit("change",{show:!1,type:this.type}),clearTimeout(this.timer),this.timer=setTimeout((()=>{this.showPopup=!1}),300)},touchstart(){this.clearPropagation=!1},onTap(){this.clearPropagation?this.clearPropagation=!1:(this.$emit("maskClick"),this.mkclick&&this.close())},top(e){this.popupstyle=this.isDesktop?"fixforpc-top":"top",this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0,this.$nextTick((()=>{this.messageChild&&"message"===this.type&&this.messageChild.timerClose()})))},bottom(e){this.popupstyle="bottom",this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0,paddingBottom:this.safeAreaInsets+"px",backgroundColor:this.bg,borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},center(e){this.popupstyle="center",this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center",borderRadius:this.borderRadius||"0"},e||(this.showPopup=!0,this.showTrans=!0)},left(e){this.popupstyle="left",this.ani=["slide-left"],this.transClass={position:"fixed",left:0,bottom:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)},right(e){this.popupstyle="right",this.ani=["slide-right"],this.transClass={position:"fixed",bottom:0,right:0,top:0,backgroundColor:this.bg,borderRadius:this.borderRadius||"0",display:"flex",flexDirection:"column"},e||(this.showPopup=!0,this.showTrans=!0)}}};const r_=Xv(a_,[["render",function(e,t,n,i,o,s){const a=Zv(zn("uni-transition"),s_),r=vm,l=Hn("keypress");return o.showPopup?(qo(),Go(r,{key:0,class:le(["uni-popup",[o.popupstyle,s.isDesktop?"fixforpc-z-index":""]])},{default:Fn((()=>[is(r,{onTouchstart:s.touchstart},{default:Fn((()=>[o.maskShow?(qo(),Go(a,{key:"1",name:"mask","mode-class":"fade",styles:o.maskClass,duration:o.duration,show:o.showTrans,onClick:s.onTap},null,8,["styles","duration","show","onClick"])):as("",!0),is(a,{key:"2","mode-class":o.ani,name:"content",styles:o.transClass,duration:o.duration,show:o.showTrans,onClick:s.onTap},{default:Fn((()=>[is(r,{class:le(["uni-popup__wrapper",[o.popupstyle]]),style:re(s.getStyles),onClick:s.clear},{default:Fn((()=>[Xi(e.$slots,"default",{},void 0,!0)])),_:3},8,["style","class","onClick"])])),_:3},8,["mode-class","styles","duration","show","onClick"])])),_:3},8,["onTouchstart"]),o.maskShow?(qo(),Go(l,{key:0,onEsc:s.onTap},null,8,["onEsc"])):as("",!0)])),_:3},8,["class"])):as("",!0)}],["__scopeId","data-v-90b62717"]]);function l_(e,t){return`${c_(e)} ${u_(e,t)}`}function c_(e){e=g_(e);const t=(e=new Date(e)).getFullYear(),n=e.getMonth()+1,i=e.getDate();return`${t}-${d_(n)}-${d_(i)}`}function u_(e,t){e=g_(e);const n=(e=new Date(e)).getHours(),i=e.getMinutes(),o=e.getSeconds();return t?`${d_(n)}:${d_(i)}`:`${d_(n)}:${d_(i)}:${d_(o)}`}function d_(e){return e<10&&(e=`0${e}`),e}function h_(e){return e?"00:00":"00:00:00"}function p_(e,t){return(e=new Date(g_(e)))<=(t=new Date(g_(t)))}function f_(e){return e.match(/((19|20)\d{2})(-|\/)\d{1,2}(-|\/)\d{1,2}/g)}const m_=/^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])( [0-5]?[0-9]:[0-5]?[0-9](:[0-5]?[0-9])?)?$/;function g_(e){return"string"==typeof e&&m_.test(e)&&(e=e.replace(/-/g,"/")),e}const y_=Xv({props:{weeks:{type:Object,default:()=>({})},calendar:{type:Object,default:()=>({})},selected:{type:Array,default:()=>[]},checkHover:{type:Boolean,default:!1}},methods:{choiceDate(e){this.$emit("change",e)},handleMousemove(e){this.$emit("handleMouse",e)}}},[["render",function(e,t,n,i,o,s){const a=pm,r=vm;return qo(),Go(r,{class:le(["uni-calendar-item__weeks-box",{"uni-calendar-item--disable":n.weeks.disable,"uni-calendar-item--before-checked-x":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked-x":n.weeks.afterMultiple}]),onClick:t[0]||(t[0]=e=>s.choiceDate(n.weeks)),onMouseenter:t[1]||(t[1]=e=>s.handleMousemove(n.weeks))},{default:Fn((()=>[is(r,{class:le(["uni-calendar-item__weeks-box-item",{"uni-calendar-item--checked":n.calendar.fullDate===n.weeks.fullDate&&(n.calendar.userChecked||!n.checkHover),"uni-calendar-item--checked-range-text":n.checkHover,"uni-calendar-item--before-checked":n.weeks.beforeMultiple,"uni-calendar-item--multiple":n.weeks.multiple,"uni-calendar-item--after-checked":n.weeks.afterMultiple,"uni-calendar-item--disable":n.weeks.disable}])},{default:Fn((()=>[n.selected&&n.weeks.extraInfo?(qo(),Go(a,{key:0,class:"uni-calendar-item__weeks-box-circle"})):as("",!0),is(a,{class:"uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text"},{default:Fn((()=>[ss(X(n.weeks.date),1)])),_:1})])),_:1},8,["class"]),is(r,{class:le({"uni-calendar-item--today":n.weeks.isToday})},null,8,["class"])])),_:1},8,["class"])}],["__scopeId","data-v-33ef2289"]]),v_={en:{"uni-datetime-picker.selectDate":"select date","uni-datetime-picker.selectTime":"select time","uni-datetime-picker.selectDateTime":"select date and time","uni-datetime-picker.startDate":"start date","uni-datetime-picker.endDate":"end date","uni-datetime-picker.startTime":"start time","uni-datetime-picker.endTime":"end time","uni-datetime-picker.ok":"ok","uni-datetime-picker.clear":"clear","uni-datetime-picker.cancel":"cancel","uni-datetime-picker.year":"-","uni-datetime-picker.month":"","uni-calender.MON":"MON","uni-calender.TUE":"TUE","uni-calender.WED":"WED","uni-calender.THU":"THU","uni-calender.FRI":"FRI","uni-calender.SAT":"SAT","uni-calender.SUN":"SUN","uni-calender.confirm":"confirm"},"zh-Hans":{"uni-datetime-picker.selectDate":"选择日期","uni-datetime-picker.selectTime":"选择时间","uni-datetime-picker.selectDateTime":"选择日期时间","uni-datetime-picker.startDate":"开始日期","uni-datetime-picker.endDate":"结束日期","uni-datetime-picker.startTime":"开始时间","uni-datetime-picker.endTime":"结束时间","uni-datetime-picker.ok":"确定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"确认"},"zh-Hant":{"uni-datetime-picker.selectDate":"選擇日期","uni-datetime-picker.selectTime":"選擇時間","uni-datetime-picker.selectDateTime":"選擇日期時間","uni-datetime-picker.startDate":"開始日期","uni-datetime-picker.endDate":"結束日期","uni-datetime-picker.startTime":"開始时间","uni-datetime-picker.endTime":"結束时间","uni-datetime-picker.ok":"確定","uni-datetime-picker.clear":"清除","uni-datetime-picker.cancel":"取消","uni-datetime-picker.year":"年","uni-datetime-picker.month":"月","uni-calender.SUN":"日","uni-calender.MON":"一","uni-calender.TUE":"二","uni-calender.WED":"三","uni-calender.THU":"四","uni-calender.FRI":"五","uni-calender.SAT":"六","uni-calender.confirm":"確認"}},{t:__}=Ya(v_),b_={name:"UniDatetimePicker",data:()=>({indicatorStyle:"height: 50px;",visible:!1,fixNvueBug:{},dateShow:!0,timeShow:!0,title:"日期和时间",time:"",year:1920,month:0,day:0,hour:0,minute:0,second:0,startYear:1920,startMonth:1,startDay:1,startHour:0,startMinute:0,startSecond:0,endYear:2120,endMonth:12,endDay:31,endHour:23,endMinute:59,endSecond:59}),options:{virtualHost:!0},props:{type:{type:String,default:"datetime"},value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},disabled:{type:[Boolean,String],default:!1},border:{type:[Boolean,String],default:!0},hideSecond:{type:[Boolean,String],default:!1}},watch:{modelValue:{handler(e){e?(this.parseValue(g_(e)),this.initTime(!1)):(this.time="",this.parseValue(Date.now()))},immediate:!0},type:{handler(e){"date"===e?(this.dateShow=!0,this.timeShow=!1,this.title="日期"):"time"===e?(this.dateShow=!1,this.timeShow=!0,this.title="时间"):(this.dateShow=!0,this.timeShow=!0,this.title="日期和时间")},immediate:!0},start:{handler(e){this.parseDatetimeRange(g_(e),"start")},immediate:!0},end:{handler(e){this.parseDatetimeRange(g_(e),"end")},immediate:!0},months(e){this.checkValue("month",this.month,e)},days(e){this.checkValue("day",this.day,e)},hours(e){this.checkValue("hour",this.hour,e)},minutes(e){this.checkValue("minute",this.minute,e)},seconds(e){this.checkValue("second",this.second,e)}},computed:{years(){return this.getCurrentRange("year")},months(){return this.getCurrentRange("month")},days(){return this.getCurrentRange("day")},hours(){return this.getCurrentRange("hour")},minutes(){return this.getCurrentRange("minute")},seconds(){return this.getCurrentRange("second")},ymd(){return[this.year-this.minYear,this.month-this.minMonth,this.day-this.minDay]},hms(){return[this.hour-this.minHour,this.minute-this.minMinute,this.second-this.minSecond]},currentDateIsStart(){return this.year===this.startYear&&this.month===this.startMonth&&this.day===this.startDay},currentDateIsEnd(){return this.year===this.endYear&&this.month===this.endMonth&&this.day===this.endDay},minYear(){return this.startYear},maxYear(){return this.endYear},minMonth(){return this.year===this.startYear?this.startMonth:1},maxMonth(){return this.year===this.endYear?this.endMonth:12},minDay(){return this.year===this.startYear&&this.month===this.startMonth?this.startDay:1},maxDay(){return this.year===this.endYear&&this.month===this.endMonth?this.endDay:this.daysInMonth(this.year,this.month)},minHour(){return"datetime"===this.type?this.currentDateIsStart?this.startHour:0:"time"===this.type?this.startHour:void 0},maxHour(){return"datetime"===this.type?this.currentDateIsEnd?this.endHour:23:"time"===this.type?this.endHour:void 0},minMinute(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour?this.startMinute:0:"time"===this.type?this.hour===this.startHour?this.startMinute:0:void 0},maxMinute(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour?this.endMinute:59:"time"===this.type?this.hour===this.endHour?this.endMinute:59:void 0},minSecond(){return"datetime"===this.type?this.currentDateIsStart&&this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:"time"===this.type?this.hour===this.startHour&&this.minute===this.startMinute?this.startSecond:0:void 0},maxSecond(){return"datetime"===this.type?this.currentDateIsEnd&&this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:"time"===this.type?this.hour===this.endHour&&this.minute===this.endMinute?this.endSecond:59:void 0},selectTimeText:()=>__("uni-datetime-picker.selectTime"),okText:()=>__("uni-datetime-picker.ok"),clearText:()=>__("uni-datetime-picker.clear"),cancelText:()=>__("uni-datetime-picker.cancel")},mounted(){},methods:{lessThanTen:e=>e<10?"0"+e:e,parseTimeType(e){if(e){let t=e.split(":");this.hour=Number(t[0]),this.minute=Number(t[1]),this.second=Number(t[2])}},initPickerValue(e){let t=null;e?t=this.compareValueWithStartAndEnd(e,this.start,this.end):(t=Date.now(),t=this.compareValueWithStartAndEnd(t,this.start,this.end)),this.parseValue(t)},compareValueWithStartAndEnd(e,t,n){let i=null;return e=this.superTimeStamp(e),t=this.superTimeStamp(t),n=this.superTimeStamp(n),i=t&&n?e<t?new Date(t):e>n?new Date(n):new Date(e):t&&!n?t<=e?new Date(e):new Date(t):!t&&n?e<=n?new Date(e):new Date(n):new Date(e),i},superTimeStamp(e){let t="";if("time"===this.type&&e&&"string"==typeof e){const e=new Date;t=e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" "}return Number(e)&&(e=parseInt(e),t=0),this.createTimeStamp(t+e)},parseValue(e){if(e){if("time"===this.type&&"string"==typeof e)this.parseTimeType(e);else{let t=null;t=new Date(e),"time"!==this.type&&(this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate()),"date"!==this.type&&(this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds())}this.hideSecond&&(this.second=0)}},parseDatetimeRange(e,t){if(!e)return"start"===t&&(this.startYear=1920,this.startMonth=1,this.startDay=1,this.startHour=0,this.startMinute=0,this.startSecond=0),void("end"===t&&(this.endYear=2120,this.endMonth=12,this.endDay=31,this.endHour=23,this.endMinute=59,this.endSecond=59));if("time"===this.type){const n=e.split(":");this[t+"Hour"]=Number(n[0]),this[t+"Minute"]=Number(n[1]),this[t+"Second"]=Number(n[2])}else{if(!e)return void("start"===t?this.startYear=this.year-60:this.endYear=this.year+60);Number(e)&&(e=parseInt(e));const n=/[0-9]:[0-9]/;"datetime"!==this.type||"end"!==t||"string"!=typeof e||n.test(e)||(e+=" 23:59:59");const i=new Date(e);this[t+"Year"]=i.getFullYear(),this[t+"Month"]=i.getMonth()+1,this[t+"Day"]=i.getDate(),"datetime"===this.type&&(this[t+"Hour"]=i.getHours(),this[t+"Minute"]=i.getMinutes(),this[t+"Second"]=i.getSeconds())}},getCurrentRange(e){const t=[];for(let n=this["min"+this.capitalize(e)];n<=this["max"+this.capitalize(e)];n++)t.push(n);return t},capitalize:e=>e.charAt(0).toUpperCase()+e.slice(1),checkValue(e,t,n){-1===n.indexOf(t)&&(this[e]=n[0])},daysInMonth:(e,t)=>new Date(e,t,0).getDate(),createTimeStamp(e){if(e)return"number"==typeof e?e:(e=e.replace(/-/g,"/"),"date"===this.type&&(e+=" 00:00:00"),Date.parse(e))},createDomSting(){const e=this.year+"-"+this.lessThanTen(this.month)+"-"+this.lessThanTen(this.day);let t=this.lessThanTen(this.hour)+":"+this.lessThanTen(this.minute);return this.hideSecond||(t=t+":"+this.lessThanTen(this.second)),"date"===this.type?e:"time"===this.type?t:e+" "+t},initTime(e=!0){this.time=this.createDomSting(),e&&("timestamp"===this.returnType&&"time"!==this.type?(this.$emit("change",this.createTimeStamp(this.time)),this.$emit("input",this.createTimeStamp(this.time)),this.$emit("update:modelValue",this.createTimeStamp(this.time))):(this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time)))},bindDateChange(e){const t=e.detail.value;this.year=this.years[t[0]],this.month=this.months[t[1]],this.day=this.days[t[2]]},bindTimeChange(e){const t=e.detail.value;this.hour=this.hours[t[0]],this.minute=this.minutes[t[1]],this.second=this.seconds[t[2]]},initTimePicker(){if(this.disabled)return;const e=g_(this.time);this.initPickerValue(e),this.visible=!this.visible},tiggerTimePicker(e){this.visible=!this.visible},clearTime(){this.time="",this.$emit("change",this.time),this.$emit("input",this.time),this.$emit("update:modelValue",this.time),this.tiggerTimePicker()},setTime(){this.initTime(),this.tiggerTimePicker()}}};const w_=Xv(b_,[["render",function(e,t,n,i,o,s){const a=pm,r=vm,l=Kf,c=jf;return qo(),Go(r,{class:"uni-datetime-picker"},{default:Fn((()=>[is(r,{onClick:s.initTimePicker},{default:Fn((()=>[Xi(e.$slots,"default",{},(()=>[is(r,{class:le(["uni-datetime-picker-timebox-pointer",{"uni-datetime-picker-disabled":n.disabled,"uni-datetime-picker-timebox":n.border}])},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-text"},{default:Fn((()=>[ss(X(o.time),1)])),_:1}),o.time?as("",!0):(qo(),Go(r,{key:0,class:"uni-datetime-picker-time"},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-text"},{default:Fn((()=>[ss(X(s.selectTimeText),1)])),_:1})])),_:1}))])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),o.visible?(qo(),Go(r,{key:0,id:"mask",class:"uni-datetime-picker-mask",onClick:s.tiggerTimePicker},null,8,["onClick"])):as("",!0),o.visible?(qo(),Go(r,{key:1,class:le(["uni-datetime-picker-popup",[o.dateShow&&o.timeShow?"":"fix-nvue-height"]]),style:re(o.fixNvueBug)},{default:Fn((()=>[is(r,{class:"uni-title"},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-text"},{default:Fn((()=>[ss(X(s.selectTimeText),1)])),_:1})])),_:1}),o.dateShow?(qo(),Go(r,{key:0,class:"uni-datetime-picker__container-box"},{default:Fn((()=>[is(c,{class:"uni-datetime-picker-view","indicator-style":o.indicatorStyle,value:s.ymd,onChange:s.bindDateChange},{default:Fn((()=>[is(l,null,{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(s.years,((e,t)=>(qo(),Go(r,{class:"uni-datetime-picker-item",key:t},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-item"},{default:Fn((()=>[ss(X(s.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),is(l,null,{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(s.months,((e,t)=>(qo(),Go(r,{class:"uni-datetime-picker-item",key:t},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-item"},{default:Fn((()=>[ss(X(s.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),is(l,null,{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(s.days,((e,t)=>(qo(),Go(r,{class:"uni-datetime-picker-item",key:t},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-item"},{default:Fn((()=>[ss(X(s.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1},8,["indicator-style","value","onChange"]),is(a,{class:"uni-datetime-picker-sign sign-left"},{default:Fn((()=>[ss("-")])),_:1}),is(a,{class:"uni-datetime-picker-sign sign-right"},{default:Fn((()=>[ss("-")])),_:1})])),_:1})):as("",!0),o.timeShow?(qo(),Go(r,{key:1,class:"uni-datetime-picker__container-box"},{default:Fn((()=>[is(c,{class:le(["uni-datetime-picker-view",[n.hideSecond?"time-hide-second":""]]),"indicator-style":o.indicatorStyle,value:s.hms,onChange:s.bindTimeChange},{default:Fn((()=>[is(l,null,{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(s.hours,((e,t)=>(qo(),Go(r,{class:"uni-datetime-picker-item",key:t},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-item"},{default:Fn((()=>[ss(X(s.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),is(l,null,{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(s.minutes,((e,t)=>(qo(),Go(r,{class:"uni-datetime-picker-item",key:t},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-item"},{default:Fn((()=>[ss(X(s.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}),n.hideSecond?as("",!0):(qo(),Go(l,{key:0},{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(s.seconds,((e,t)=>(qo(),Go(r,{class:"uni-datetime-picker-item",key:t},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-item"},{default:Fn((()=>[ss(X(s.lessThanTen(e)),1)])),_:2},1024)])),_:2},1024)))),128))])),_:1}))])),_:1},8,["class","indicator-style","value","onChange"]),is(a,{class:le(["uni-datetime-picker-sign",[n.hideSecond?"sign-center":"sign-left"]])},{default:Fn((()=>[ss(":")])),_:1},8,["class"]),n.hideSecond?as("",!0):(qo(),Go(a,{key:0,class:"uni-datetime-picker-sign sign-right"},{default:Fn((()=>[ss(":")])),_:1}))])),_:1})):as("",!0),is(r,{class:"uni-datetime-picker-btn"},{default:Fn((()=>[is(r,{onClick:s.clearTime},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-btn-text"},{default:Fn((()=>[ss(X(s.clearText),1)])),_:1})])),_:1},8,["onClick"]),is(r,{class:"uni-datetime-picker-btn-group"},{default:Fn((()=>[is(r,{class:"uni-datetime-picker-cancel",onClick:s.tiggerTimePicker},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-btn-text"},{default:Fn((()=>[ss(X(s.cancelText),1)])),_:1})])),_:1},8,["onClick"]),is(r,{onClick:s.setTime},{default:Fn((()=>[is(a,{class:"uni-datetime-picker-btn-text"},{default:Fn((()=>[ss(X(s.okText),1)])),_:1})])),_:1},8,["onClick"])])),_:1})])),_:1})])),_:1},8,["class","style"])):as("",!0)])),_:3})}],["__scopeId","data-v-8e4813cb"]]),{t:x_}=Ya(v_),k_={components:{calendarItem:y_,timePicker:w_},options:{virtualHost:!0},props:{date:{type:String,default:""},defTime:{type:[String,Object],default:""},selectableTimes:{type:[Object],default:()=>({})},selected:{type:Array,default:()=>[]},startDate:{type:String,default:""},endDate:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},range:{type:Boolean,default:!1},hasTime:{type:Boolean,default:!1},insert:{type:Boolean,default:!0},showMonth:{type:Boolean,default:!0},clearDate:{type:Boolean,default:!0},checkHover:{type:Boolean,default:!0},hideSecond:{type:[Boolean],default:!1},pleStatus:{type:Object,default:()=>({before:"",after:"",data:[],fulldate:""})},defaultValue:{type:[String,Object,Array],default:""}},data:()=>({show:!1,weeks:[],calendar:{},nowDate:{},aniMaskShow:!1,firstEnter:!0,time:"",timeRange:{startTime:"",endTime:""},tempSingleDate:"",tempRange:{before:"",after:""}}),watch:{date:{immediate:!0,handler(e){this.range||(this.tempSingleDate=e,setTimeout((()=>{this.init(e)}),100))}},defTime:{immediate:!0,handler(e){this.range?(this.timeRange.startTime=e.start,this.timeRange.endTime=e.end):this.time=e}},startDate(e){this.cale&&(this.cale.setStartDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},endDate(e){this.cale&&(this.cale.setEndDate(e),this.cale.setDate(this.nowDate.fullDate),this.weeks=this.cale.weeks)},selected(e){this.cale&&(this.cale.setSelectInfo(this.nowDate.fullDate,e),this.weeks=this.cale.weeks)},pleStatus:{immediate:!0,handler(e){const{before:t,after:n,fulldate:i,which:o}=e;this.tempRange.before=t,this.tempRange.after=n,setTimeout((()=>{if(i)if(this.cale.setHoverMultiple(i),t&&n){if(this.cale.lastHover=!0,this.rangeWithinMonth(n,t))return;this.setDate(t)}else this.cale.setMultiple(i),this.setDate(this.nowDate.fullDate),this.calendar.fullDate="",this.cale.lastHover=!1;else{if(!this.cale)return;this.cale.setDefaultMultiple(t,n),"left"===o&&t?(this.setDate(t),this.weeks=this.cale.weeks):n&&(this.setDate(n),this.weeks=this.cale.weeks),this.cale.lastHover=!0}}),16)}}},computed:{timepickerStartTime(){return(this.range?this.tempRange.before:this.calendar.fullDate)===this.startDate?this.selectableTimes.start:""},timepickerEndTime(){return(this.range?this.tempRange.after:this.calendar.fullDate)===this.endDate?this.selectableTimes.end:""},selectDateText:()=>x_("uni-datetime-picker.selectDate"),startDateText(){return this.startPlaceholder||x_("uni-datetime-picker.startDate")},endDateText(){return this.endPlaceholder||x_("uni-datetime-picker.endDate")},okText:()=>x_("uni-datetime-picker.ok"),yearText:()=>x_("uni-datetime-picker.year"),monthText:()=>x_("uni-datetime-picker.month"),MONText:()=>x_("uni-calender.MON"),TUEText:()=>x_("uni-calender.TUE"),WEDText:()=>x_("uni-calender.WED"),THUText:()=>x_("uni-calender.THU"),FRIText:()=>x_("uni-calender.FRI"),SATText:()=>x_("uni-calender.SAT"),SUNText:()=>x_("uni-calender.SUN"),confirmText:()=>x_("uni-calender.confirm")},created(){this.cale=new class{constructor({selected:e,startDate:t,endDate:n,range:i}={}){this.date=this.getDateObj(new Date),this.selected=e||[],this.startDate=t,this.endDate=n,this.range=i,this.cleanMultipleStatus(),this.weeks={},this.lastHover=!1}setDate(e){const t=this.getDateObj(e);this.getWeeks(t.fullDate)}cleanMultipleStatus(){this.multipleStatus={before:"",after:"",data:[]}}setStartDate(e){this.startDate=e}setEndDate(e){this.endDate=e}getPreMonthObj(e){e=g_(e);const t=(e=new Date(e)).getMonth();e.setMonth(t-1);const n=e.getMonth();return 0!==t&&n-t==0&&e.setMonth(n-1),this.getDateObj(e)}getNextMonthObj(e){e=g_(e);const t=(e=new Date(e)).getMonth();e.setMonth(t+1);const n=e.getMonth();return n-t>1&&e.setMonth(n-1),this.getDateObj(e)}getDateObj(e){return e=g_(e),{fullDate:c_(e=new Date(e)),year:e.getFullYear(),month:d_(e.getMonth()+1),date:d_(e.getDate()),day:e.getDay()}}getPreMonthDays(e,t){const n=[];for(let i=e-1;i>=0;i--){const e=t.month-1;n.push({date:new Date(t.year,e,-i).getDate(),month:e,disable:!0})}return n}getCurrentMonthDays(e,t){const n=[],i=this.date.fullDate;for(let o=1;o<=e;o++){const e=`${t.year}-${t.month}-${d_(o)}`,s=i===e,a=this.selected&&this.selected.find((t=>{if(this.dateEqual(e,t.date))return t}));this.startDate&&p_(this.startDate,e),this.endDate&&p_(e,this.endDate);let r=this.multipleStatus.data,l=-1;this.range&&r&&(l=r.findIndex((t=>this.dateEqual(t,e))));const c=-1!==l;n.push({fullDate:e,year:t.year,date:o,multiple:!!this.range&&c,beforeMultiple:this.isLogicBefore(e,this.multipleStatus.before,this.multipleStatus.after),afterMultiple:this.isLogicAfter(e,this.multipleStatus.before,this.multipleStatus.after),month:t.month,disable:this.startDate&&!p_(this.startDate,e)||this.endDate&&!p_(e,this.endDate),isToday:s,userChecked:!1,extraInfo:a})}return n}_getNextMonthDays(e,t){const n=[],i=t.month+1;for(let o=1;o<=e;o++)n.push({date:o,month:i,disable:!0});return n}getInfo(e){return e||(e=new Date),this.calendar.find((t=>t.fullDate===this.getDateObj(e).fullDate))}dateEqual(e,t){return e=new Date(g_(e)),t=new Date(g_(t)),e.valueOf()===t.valueOf()}isLogicBefore(e,t,n){let i=t;return t&&n&&(i=p_(t,n)?t:n),this.dateEqual(i,e)}isLogicAfter(e,t,n){let i=n;return t&&n&&(i=p_(t,n)?n:t),this.dateEqual(i,e)}geDateAll(e,t){var n=[],i=e.split("-"),o=t.split("-"),s=new Date;s.setFullYear(i[0],i[1]-1,i[2]);var a=new Date;a.setFullYear(o[0],o[1]-1,o[2]);for(var r=s.getTime()-864e5,l=a.getTime()-864e5,c=r;c<=l;)c+=864e5,n.push(this.getDateObj(new Date(parseInt(c))).fullDate);return n}setMultiple(e){if(!this.range)return;let{before:t,after:n}=this.multipleStatus;if(t&&n){if(!this.lastHover)return void(this.lastHover=!0);this.multipleStatus.before=e,this.multipleStatus.after="",this.multipleStatus.data=[],this.multipleStatus.fulldate="",this.lastHover=!1}else t?(this.multipleStatus.after=e,p_(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before),this.lastHover=!0):(this.multipleStatus.before=e,this.multipleStatus.after=void 0,this.lastHover=!1);this.getWeeks(e)}setHoverMultiple(e){if(!this.range||this.lastHover)return;const{before:t}=this.multipleStatus;t?(this.multipleStatus.after=e,p_(this.multipleStatus.before,this.multipleStatus.after)?this.multipleStatus.data=this.geDateAll(this.multipleStatus.before,this.multipleStatus.after):this.multipleStatus.data=this.geDateAll(this.multipleStatus.after,this.multipleStatus.before)):this.multipleStatus.before=e,this.getWeeks(e)}setDefaultMultiple(e,t){this.multipleStatus.before=e,this.multipleStatus.after=t,e&&t&&(p_(e,t)?(this.multipleStatus.data=this.geDateAll(e,t),this.getWeeks(t)):(this.multipleStatus.data=this.geDateAll(t,e),this.getWeeks(e)))}getWeeks(e){const{year:t,month:n}=this.getDateObj(e),i=new Date(t,n-1,1).getDay(),o=this.getPreMonthDays(i,this.getDateObj(e)),s=new Date(t,n,0).getDate(),a=42-i-s,r=[...o,...this.getCurrentMonthDays(s,this.getDateObj(e)),...this._getNextMonthDays(a,this.getDateObj(e))],l=new Array(6);for(let c=0;c<r.length;c++){const e=Math.floor(c/7);l[e]||(l[e]=new Array(7)),l[e][c%7]=r[c]}this.calendar=r,this.weeks=l}}({selected:this.selected,startDate:this.startDate,endDate:this.endDate,range:this.range}),this.init(this.date)},methods:{leaveCale(){this.firstEnter=!0},handleMouse(e){if(e.disable)return;if(this.cale.lastHover)return;let{before:t,after:n}=this.cale.multipleStatus;t&&(this.calendar=e,this.cale.setHoverMultiple(this.calendar.fullDate),this.weeks=this.cale.weeks,this.firstEnter&&(this.$emit("firstEnterCale",this.cale.multipleStatus),this.firstEnter=!1))},rangeWithinMonth(e,t){const[n,i]=e.split("-"),[o,s]=t.split("-");return n===o&&i===s},maskClick(){this.close(),this.$emit("maskClose")},clearCalender(){this.range?(this.timeRange.startTime="",this.timeRange.endTime="",this.tempRange.before="",this.tempRange.after="",this.cale.multipleStatus.before="",this.cale.multipleStatus.after="",this.cale.multipleStatus.data=[],this.cale.lastHover=!1):(this.time="",this.tempSingleDate=""),this.calendar.fullDate="",this.setDate(new Date)},bindDateChange(e){const t=e.detail.value+"-1";this.setDate(t)},init(e){if(this.cale&&(this.cale.setDate(e||new Date),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e),this.calendar={...this.nowDate},!e&&(this.calendar.fullDate="",this.defaultValue&&!this.range))){const e=new Date(this.defaultValue),t=c_(e),n=e.getFullYear(),i=e.getMonth()+1,o=e.getDate(),s=e.getDay();this.calendar={fullDate:t,year:n,month:i,date:o,day:s},this.tempSingleDate=t,this.time=u_(e,this.hideSecond)}},open(){this.clearDate&&!this.insert&&(this.cale.cleanMultipleStatus(),this.init(this.date)),this.show=!0,this.$nextTick((()=>{setTimeout((()=>{this.aniMaskShow=!0}),50)}))},close(){this.aniMaskShow=!1,this.$nextTick((()=>{setTimeout((()=>{this.show=!1,this.$emit("close")}),300)}))},confirm(){this.setEmit("confirm"),this.close()},change(){this.insert&&this.setEmit("change")},monthSwitch(){let{year:e,month:t}=this.nowDate;this.$emit("monthSwitch",{year:e,month:Number(t)})},setEmit(e){this.range||(this.calendar.fullDate||(this.calendar=this.cale.getInfo(new Date),this.tempSingleDate=this.calendar.fullDate),this.hasTime&&!this.time&&(this.time=u_(new Date,this.hideSecond)));let{year:t,month:n,date:i,fullDate:o,extraInfo:s}=this.calendar;this.$emit(e,{range:this.cale.multipleStatus,year:t,month:n,date:i,time:this.time,timeRange:this.timeRange,fulldate:o,extraInfo:s||{}})},choiceDate(e){if(e.disable)return;this.calendar=e,this.calendar.userChecked=!0,this.cale.setMultiple(this.calendar.fullDate,!0),this.weeks=this.cale.weeks,this.tempSingleDate=this.calendar.fullDate;const t=new Date(this.cale.multipleStatus.before).getTime(),n=new Date(this.cale.multipleStatus.after).getTime();t>n&&n?(this.tempRange.before=this.cale.multipleStatus.after,this.tempRange.after=this.cale.multipleStatus.before):(this.tempRange.before=this.cale.multipleStatus.before,this.tempRange.after=this.cale.multipleStatus.after),this.change()},changeMonth(e){let t;"pre"===e?t=this.cale.getPreMonthObj(this.nowDate.fullDate).fullDate:"next"===e&&(t=this.cale.getNextMonthObj(this.nowDate.fullDate).fullDate),this.setDate(t),this.monthSwitch()},setDate(e){this.cale.setDate(e),this.weeks=this.cale.weeks,this.nowDate=this.cale.getInfo(e)}}};const T_={name:"UniDatetimePicker",options:{virtualHost:!0},components:{Calendar:Xv(k_,[["render",function(e,t,n,i,o,s){const a=vm,r=pm,l=Lv,c=Hn("calendar-item"),u=Hn("time-picker"),d=Zv(zn("uni-icons"),Kv);return qo(),Go(a,{class:"uni-calendar",onMouseleave:s.leaveCale},{default:Fn((()=>[!n.insert&&o.show?(qo(),Go(a,{key:0,class:le(["uni-calendar__mask",{"uni-calendar--mask-show":o.aniMaskShow}]),onClick:s.maskClick},null,8,["class","onClick"])):as("",!0),n.insert||o.show?(qo(),Go(a,{key:1,class:le(["uni-calendar__content",{"uni-calendar--fixed":!n.insert,"uni-calendar--ani-show":o.aniMaskShow,"uni-calendar__content-mobile":o.aniMaskShow}])},{default:Fn((()=>[is(a,{class:le(["uni-calendar__header",{"uni-calendar__header-mobile":!n.insert}])},{default:Fn((()=>[is(a,{class:"uni-calendar__header-btn-box",onClick:t[0]||(t[0]=Ra((e=>s.changeMonth("pre")),["stop"]))},{default:Fn((()=>[is(a,{class:"uni-calendar__header-btn uni-calendar--left"})])),_:1}),is(l,{mode:"date",value:n.date,fields:"month",onChange:s.bindDateChange},{default:Fn((()=>[is(r,{class:"uni-calendar__header-text"},{default:Fn((()=>[ss(X((o.nowDate.year||"")+s.yearText+(o.nowDate.month||"")+s.monthText),1)])),_:1})])),_:1},8,["value","onChange"]),is(a,{class:"uni-calendar__header-btn-box",onClick:t[1]||(t[1]=Ra((e=>s.changeMonth("next")),["stop"]))},{default:Fn((()=>[is(a,{class:"uni-calendar__header-btn uni-calendar--right"})])),_:1}),n.insert?as("",!0):(qo(),Go(a,{key:0,class:"dialog-close",onClick:s.maskClick},{default:Fn((()=>[is(a,{class:"dialog-close-plus","data-id":"close"}),is(a,{class:"dialog-close-plus dialog-close-rotate","data-id":"close"})])),_:1},8,["onClick"]))])),_:1},8,["class"]),is(a,{class:"uni-calendar__box"},{default:Fn((()=>[n.showMonth?(qo(),Go(a,{key:0,class:"uni-calendar__box-bg"},{default:Fn((()=>[is(r,{class:"uni-calendar__box-bg-text"},{default:Fn((()=>[ss(X(o.nowDate.month),1)])),_:1})])),_:1})):as("",!0),is(a,{class:"uni-calendar__weeks",style:{"padding-bottom":"7px"}},{default:Fn((()=>[is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.SUNText),1)])),_:1})])),_:1}),is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.MONText),1)])),_:1})])),_:1}),is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.TUEText),1)])),_:1})])),_:1}),is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.WEDText),1)])),_:1})])),_:1}),is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.THUText),1)])),_:1})])),_:1}),is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.FRIText),1)])),_:1})])),_:1}),is(a,{class:"uni-calendar__weeks-day"},{default:Fn((()=>[is(r,{class:"uni-calendar__weeks-day-text"},{default:Fn((()=>[ss(X(s.SATText),1)])),_:1})])),_:1})])),_:1}),(qo(!0),Ko(Fo,null,zi(o.weeks,((e,t)=>(qo(),Go(a,{class:"uni-calendar__weeks",key:t},{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(e,((e,t)=>(qo(),Go(a,{class:"uni-calendar__weeks-item",key:t},{default:Fn((()=>[is(c,{class:"uni-calendar-item--hook",weeks:e,calendar:o.calendar,selected:n.selected,checkHover:n.range,onChange:s.choiceDate,onHandleMouse:s.handleMouse},null,8,["weeks","calendar","selected","checkHover","onChange","onHandleMouse"])])),_:2},1024)))),128))])),_:2},1024)))),128))])),_:1}),n.insert||n.range||!n.hasTime?as("",!0):(qo(),Go(a,{key:0,class:"uni-date-changed uni-calendar--fixed-top",style:{padding:"0 80px"}},{default:Fn((()=>[is(a,{class:"uni-date-changed--time-date"},{default:Fn((()=>[ss(X(o.tempSingleDate?o.tempSingleDate:s.selectDateText),1)])),_:1}),is(u,{type:"time",start:s.timepickerStartTime,end:s.timepickerEndTime,modelValue:o.time,"onUpdate:modelValue":t[2]||(t[2]=e=>o.time=e),disabled:!o.tempSingleDate,border:!1,"hide-second":n.hideSecond,class:"time-picker-style"},null,8,["start","end","modelValue","disabled","hide-second"])])),_:1})),!n.insert&&n.range&&n.hasTime?(qo(),Go(a,{key:1,class:"uni-date-changed uni-calendar--fixed-top"},{default:Fn((()=>[is(a,{class:"uni-date-changed--time-start"},{default:Fn((()=>[is(a,{class:"uni-date-changed--time-date"},{default:Fn((()=>[ss(X(o.tempRange.before?o.tempRange.before:s.startDateText),1)])),_:1}),is(u,{type:"time",start:s.timepickerStartTime,modelValue:o.timeRange.startTime,"onUpdate:modelValue":t[3]||(t[3]=e=>o.timeRange.startTime=e),border:!1,"hide-second":n.hideSecond,disabled:!o.tempRange.before,class:"time-picker-style"},null,8,["start","modelValue","hide-second","disabled"])])),_:1}),is(a,{style:{"line-height":"50px"}},{default:Fn((()=>[is(d,{type:"arrowthinright",color:"#999"})])),_:1}),is(a,{class:"uni-date-changed--time-end"},{default:Fn((()=>[is(a,{class:"uni-date-changed--time-date"},{default:Fn((()=>[ss(X(o.tempRange.after?o.tempRange.after:s.endDateText),1)])),_:1}),is(u,{type:"time",end:s.timepickerEndTime,modelValue:o.timeRange.endTime,"onUpdate:modelValue":t[4]||(t[4]=e=>o.timeRange.endTime=e),border:!1,"hide-second":n.hideSecond,disabled:!o.tempRange.after,class:"time-picker-style"},null,8,["end","modelValue","hide-second","disabled"])])),_:1})])),_:1})):as("",!0),n.insert?as("",!0):(qo(),Go(a,{key:2,class:"uni-date-changed uni-date-btn--ok"},{default:Fn((()=>[is(a,{class:"uni-datetime-picker--btn",onClick:s.confirm},{default:Fn((()=>[ss(X(s.confirmText),1)])),_:1},8,["onClick"])])),_:1}))])),_:1},8,["class"])):as("",!0)])),_:1},8,["onMouseleave"])}],["__scopeId","data-v-81a87200"]]),TimePicker:w_},data:()=>({isRange:!1,hasTime:!1,displayValue:"",inputDate:"",calendarDate:"",pickerTime:"",calendarRange:{startDate:"",startTime:"",endDate:"",endTime:""},displayRangeValue:{startDate:"",endDate:""},tempRange:{startDate:"",startTime:"",endDate:"",endTime:""},startMultipleStatus:{before:"",after:"",data:[],fulldate:""},endMultipleStatus:{before:"",after:"",data:[],fulldate:""},pickerVisible:!1,pickerPositionStyle:null,isEmitValue:!1,isPhone:!1,isFirstShow:!0,i18nT:()=>{}}),props:{type:{type:String,default:"datetime"},value:{type:[String,Number,Array,Date],default:""},modelValue:{type:[String,Number,Array,Date],default:""},start:{type:[Number,String],default:""},end:{type:[Number,String],default:""},returnType:{type:String,default:"string"},placeholder:{type:String,default:""},startPlaceholder:{type:String,default:""},endPlaceholder:{type:String,default:""},rangeSeparator:{type:String,default:"-"},border:{type:[Boolean],default:!0},disabled:{type:[Boolean],default:!1},clearIcon:{type:[Boolean],default:!0},hideSecond:{type:[Boolean],default:!1},defaultValue:{type:[String,Object,Array],default:""}},watch:{type:{immediate:!0,handler(e){this.hasTime=-1!==e.indexOf("time"),this.isRange=-1!==e.indexOf("range")}},modelValue:{immediate:!0,handler(e){this.isEmitValue?this.isEmitValue=!1:this.initPicker(e)}},start:{immediate:!0,handler(e){e&&(this.calendarRange.startDate=c_(e),this.hasTime&&(this.calendarRange.startTime=u_(e)))}},end:{immediate:!0,handler(e){e&&(this.calendarRange.endDate=c_(e),this.hasTime&&(this.calendarRange.endTime=u_(e,this.hideSecond)))}}},computed:{timepickerStartTime(){return(this.isRange?this.tempRange.startDate:this.inputDate)===this.calendarRange.startDate?this.calendarRange.startTime:""},timepickerEndTime(){return(this.isRange?this.tempRange.endDate:this.inputDate)===this.calendarRange.endDate?this.calendarRange.endTime:""},mobileCalendarTime(){const e={start:this.tempRange.startTime,end:this.tempRange.endTime};return this.isRange?e:this.pickerTime},mobSelectableTime(){return{start:this.calendarRange.startTime,end:this.calendarRange.endTime}},datePopupWidth(){return this.isRange?653:301},singlePlaceholderText(){return this.placeholder||("date"===this.type?this.selectDateText:this.selectDateTimeText)},startPlaceholderText(){return this.startPlaceholder||this.startDateText},endPlaceholderText(){return this.endPlaceholder||this.endDateText},selectDateText(){return this.i18nT("uni-datetime-picker.selectDate")},selectDateTimeText(){return this.i18nT("uni-datetime-picker.selectDateTime")},selectTimeText(){return this.i18nT("uni-datetime-picker.selectTime")},startDateText(){return this.startPlaceholder||this.i18nT("uni-datetime-picker.startDate")},startTimeText(){return this.i18nT("uni-datetime-picker.startTime")},endDateText(){return this.endPlaceholder||this.i18nT("uni-datetime-picker.endDate")},endTimeText(){return this.i18nT("uni-datetime-picker.endTime")},okText(){return this.i18nT("uni-datetime-picker.ok")},clearText(){return this.i18nT("uni-datetime-picker.clear")},showClearIcon(){return this.clearIcon&&!this.disabled&&(this.displayValue||this.displayRangeValue.startDate&&this.displayRangeValue.endDate)}},created(){this.initI18nT(),this.platform()},methods:{initI18nT(){const e=Ya(v_);this.i18nT=e.t},initPicker(e){if(!e&&!this.defaultValue||Array.isArray(e)&&!e.length)this.$nextTick((()=>{this.clear(!1)}));else if(Array.isArray(e)||this.isRange){const[t,n]=e;if(!t&&!n)return;const i=c_(t),o=u_(t,this.hideSecond),s=c_(n),a=u_(n,this.hideSecond),r=i,l=s;this.displayRangeValue.startDate=this.tempRange.startDate=r,this.displayRangeValue.endDate=this.tempRange.endDate=l,this.hasTime&&(this.displayRangeValue.startDate=`${i} ${o}`,this.displayRangeValue.endDate=`${s} ${a}`,this.tempRange.startTime=o,this.tempRange.endTime=a);const c={before:i,after:s};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,c,{which:"right"}),this.endMultipleStatus=Object.assign({},this.endMultipleStatus,c,{which:"left"})}else e?(this.displayValue=this.inputDate=this.calendarDate=c_(e),this.hasTime&&(this.pickerTime=u_(e,this.hideSecond),this.displayValue=`${this.displayValue} ${this.pickerTime}`)):this.defaultValue&&(this.inputDate=this.calendarDate=c_(this.defaultValue),this.hasTime&&(this.pickerTime=u_(this.defaultValue,this.hideSecond)))},updateLeftCale(e){const t=this.$refs.left;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.left.nowDate.fullDate)},updateRightCale(e){const t=this.$refs.right;t.cale.setHoverMultiple(e.after),t.setDate(this.$refs.right.nowDate.fullDate)},platform(){if("undefined"!=typeof navigator)return void(this.isPhone=-1!==navigator.userAgent.toLowerCase().indexOf("mobile"));const{windowWidth:e}=qg();this.isPhone=e<=500,this.windowWidth=e},show(){if(this.$emit("show"),this.disabled)return;if(this.platform(),this.isPhone)return void setTimeout((()=>{this.$refs.mobile.open()}),0);this.pickerPositionStyle={top:"10px"};wh().in(this).select(".uni-date-editor").boundingClientRect((e=>{this.windowWidth-e.left<this.datePopupWidth&&(this.pickerPositionStyle.right=0)})).exec(),setTimeout((()=>{if(this.pickerVisible=!this.pickerVisible,!this.isPhone&&this.isRange&&this.isFirstShow){this.isFirstShow=!1;const{startDate:e,endDate:t}=this.calendarRange;e&&t?this.diffDate(e,t)<30&&this.$refs.right.changeMonth("pre"):this.isPhone&&(this.$refs.right.cale.lastHover=!1)}}),50)},close(){setTimeout((()=>{this.pickerVisible=!1,this.$emit("maskClick",this.value),this.$refs.mobile&&this.$refs.mobile.close()}),20)},setEmit(e){"timestamp"!==this.returnType&&"date"!==this.returnType||(Array.isArray(e)?(this.hasTime||(e[0]=e[0]+" 00:00:00",e[1]=e[1]+" 00:00:00"),e[0]=this.createTimestamp(e[0]),e[1]=this.createTimestamp(e[1]),"date"===this.returnType&&(e[0]=new Date(e[0]),e[1]=new Date(e[1]))):(this.hasTime||(e+=" 00:00:00"),e=this.createTimestamp(e),"date"===this.returnType&&(e=new Date(e)))),this.$emit("update:modelValue",e),this.$emit("input",e),this.$emit("change",e),this.isEmitValue=!0},createTimestamp:e=>(e=g_(e),Date.parse(new Date(e))),singleChange(e){this.calendarDate=this.inputDate=e.fulldate,this.hasTime||this.confirmSingleChange()},confirmSingleChange(){if(!f_(this.inputDate)){const e=new Date;this.calendarDate=this.inputDate=c_(e),this.pickerTime=u_(e,this.hideSecond)}let e,t,n=!1;if(this.start){let i=this.start;"number"==typeof this.start&&(i=l_(this.start,this.hideSecond)),[e,t]=i.split(" "),this.start&&!p_(e,this.inputDate)&&(n=!0,this.inputDate=e)}let i,o,s=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=l_(this.end,this.hideSecond)),[i,o]=e.split(" "),this.end&&!p_(this.inputDate,i)&&(s=!0,this.inputDate=i)}this.hasTime?(n&&(this.pickerTime=t||h_(this.hideSecond)),s&&(this.pickerTime=o||h_(this.hideSecond)),this.pickerTime||(this.pickerTime=u_(Date.now(),this.hideSecond)),this.displayValue=`${this.inputDate} ${this.pickerTime}`):this.displayValue=this.inputDate,this.setEmit(this.displayValue),this.pickerVisible=!1},leftChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.startMultipleStatus=Object.assign({},this.startMultipleStatus,i)},rightChange(e){const{before:t,after:n}=e.range;this.rangeChange(t,n);const i={before:e.range.before,after:e.range.after,data:e.range.data,fulldate:e.fulldate};this.endMultipleStatus=Object.assign({},this.endMultipleStatus,i)},mobileChange(e){if(this.isRange){const{before:t,after:n}=e.range;if(!t)return;if(this.handleStartAndEnd(t,n,!0),this.hasTime){const{startTime:t,endTime:n}=e.timeRange;this.tempRange.startTime=t,this.tempRange.endTime=n}this.confirmRangeChange()}else this.hasTime?this.displayValue=e.fulldate+" "+e.time:this.displayValue=e.fulldate,this.setEmit(this.displayValue);this.$refs.mobile.close()},rangeChange(e,t){e&&t&&(this.handleStartAndEnd(e,t,!0),this.hasTime||this.confirmRangeChange())},confirmRangeChange(){if(!this.tempRange.startDate||!this.tempRange.endDate)return void(this.pickerVisible=!1);let e,t;f_(this.tempRange.startDate)||(this.tempRange.startDate=c_(Date.now())),f_(this.tempRange.endDate)||(this.tempRange.endDate=c_(Date.now()));let n,i,o=!1,s=!1;if(this.start){let e=this.start;"number"==typeof this.start&&(e=l_(this.start,this.hideSecond)),[n,i]=e.split(" "),this.start&&!p_(this.start,this.tempRange.startDate)&&(o=!0,this.tempRange.startDate=n),this.start&&!p_(this.start,this.tempRange.endDate)&&(s=!0,this.tempRange.endDate=n)}let a,r,l=!1,c=!1;if(this.end){let e=this.end;"number"==typeof this.end&&(e=l_(this.end,this.hideSecond)),[a,r]=e.split(" "),this.end&&!p_(this.tempRange.startDate,this.end)&&(l=!0,this.tempRange.startDate=a),this.end&&!p_(this.tempRange.endDate,this.end)&&(c=!0,this.tempRange.endDate=a)}this.hasTime?(o?this.tempRange.startTime=i||h_(this.hideSecond):l&&(this.tempRange.startTime=r||h_(this.hideSecond)),this.tempRange.startTime||(this.tempRange.startTime=u_(Date.now(),this.hideSecond)),s?this.tempRange.endTime=i||h_(this.hideSecond):c&&(this.tempRange.endTime=r||h_(this.hideSecond)),this.tempRange.endTime||(this.tempRange.endTime=u_(Date.now(),this.hideSecond)),e=this.displayRangeValue.startDate=`${this.tempRange.startDate} ${this.tempRange.startTime}`,t=this.displayRangeValue.endDate=`${this.tempRange.endDate} ${this.tempRange.endTime}`):(e=this.displayRangeValue.startDate=this.tempRange.startDate,t=this.displayRangeValue.endDate=this.tempRange.endDate),p_(e,t)||([e,t]=[t,e]),this.displayRangeValue.startDate=e,this.displayRangeValue.endDate=t;const u=[e,t];this.setEmit(u),this.pickerVisible=!1},handleStartAndEnd(e,t,n=!1){if(!e)return;t||(t=e);const i=n?"tempRange":"range",o=p_(e,t);this[i].startDate=o?e:t,this[i].endDate=o?t:e},dateCompare:(e,t)=>(e=new Date(e.replace("-","/").replace("-","/")))<=(t=new Date(t.replace("-","/").replace("-","/"))),diffDate(e,t){e=new Date(e.replace("-","/").replace("-","/"));const n=((t=new Date(t.replace("-","/").replace("-","/")))-e)/864e5;return Math.abs(n)},clear(e=!0){this.isRange?(this.displayRangeValue.startDate="",this.displayRangeValue.endDate="",this.tempRange.startDate="",this.tempRange.startTime="",this.tempRange.endDate="",this.tempRange.endTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():(this.$refs.left&&this.$refs.left.clearCalender(),this.$refs.right&&this.$refs.right.clearCalender(),this.$refs.right&&this.$refs.right.changeMonth("next")),e&&(this.$emit("change",[]),this.$emit("input",[]),this.$emit("update:modelValue",[]))):(this.displayValue="",this.inputDate="",this.pickerTime="",this.isPhone?this.$refs.mobile&&this.$refs.mobile.clearCalender():this.$refs.pcSingle&&this.$refs.pcSingle.clearCalender(),e&&(this.$emit("change",""),this.$emit("input",""),this.$emit("update:modelValue","")))}}};const S_=Xv(T_,[["render",function(e,t,n,i,o,s){const a=Zv(zn("uni-icons"),Kv),r=vm,l=uf,c=Hn("time-picker"),u=Hn("Calendar"),d=pm;return qo(),Go(r,{class:"uni-date"},{default:Fn((()=>[is(r,{class:"uni-date-editor",onClick:s.show},{default:Fn((()=>[Xi(e.$slots,"default",{},(()=>[is(r,{class:le(["uni-date-editor--x",{"uni-date-editor--x__disabled":n.disabled,"uni-date-x--border":n.border}])},{default:Fn((()=>[o.isRange?(qo(),Go(r,{key:1,class:"uni-date-x uni-date-range"},{default:Fn((()=>[is(a,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),is(r,{class:"uni-date__x-input text-center"},{default:Fn((()=>[ss(X(o.displayRangeValue.startDate||s.startPlaceholderText),1)])),_:1}),is(r,{class:"range-separator"},{default:Fn((()=>[ss(X(n.rangeSeparator),1)])),_:1}),is(r,{class:"uni-date__x-input text-center"},{default:Fn((()=>[ss(X(o.displayRangeValue.endDate||s.endPlaceholderText),1)])),_:1})])),_:1})):(qo(),Go(r,{key:0,class:"uni-date-x uni-date-single"},{default:Fn((()=>[is(a,{class:"icon-calendar",type:"calendar",color:"#c0c4cc",size:"22"}),is(r,{class:"uni-date__x-input"},{default:Fn((()=>[ss(X(o.displayValue||s.singlePlaceholderText),1)])),_:1})])),_:1})),s.showClearIcon?(qo(),Go(r,{key:2,class:"uni-date__icon-clear",onClick:Ra(s.clear,["stop"])},{default:Fn((()=>[is(a,{type:"clear",color:"#c0c4cc",size:"22"})])),_:1},8,["onClick"])):as("",!0)])),_:1},8,["class"])]),!0)])),_:3},8,["onClick"]),oi(is(r,{class:"uni-date-mask--pc",onClick:s.close},null,8,["onClick"]),[[Xs,o.pickerVisible]]),o.isPhone?as("",!0):oi((qo(),Go(r,{key:0,ref:"datePicker",class:"uni-date-picker__container"},{default:Fn((()=>[o.isRange?(qo(),Go(r,{key:1,class:"uni-date-range--x",style:re(o.pickerPositionStyle)},{default:Fn((()=>[is(r,{class:"uni-popper__arrow"}),o.hasTime?(qo(),Go(r,{key:0,class:"popup-x-header uni-date-changed"},{default:Fn((()=>[is(r,{class:"popup-x-header--datetime"},{default:Fn((()=>[is(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.startDate,"onUpdate:modelValue":t[3]||(t[3]=e=>o.tempRange.startDate=e),placeholder:s.startDateText},null,8,["modelValue","placeholder"]),is(c,{type:"time",modelValue:o.tempRange.startTime,"onUpdate:modelValue":t[5]||(t[5]=e=>o.tempRange.startTime=e),start:s.timepickerStartTime,border:!1,disabled:!o.tempRange.startDate,hideSecond:n.hideSecond},{default:Fn((()=>[is(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.startTime,"onUpdate:modelValue":t[4]||(t[4]=e=>o.tempRange.startTime=e),placeholder:s.startTimeText,disabled:!o.tempRange.startDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","start","disabled","hideSecond"])])),_:1}),is(a,{type:"arrowthinright",color:"#999",style:{"line-height":"40px"}}),is(r,{class:"popup-x-header--datetime"},{default:Fn((()=>[is(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.endDate,"onUpdate:modelValue":t[6]||(t[6]=e=>o.tempRange.endDate=e),placeholder:s.endDateText},null,8,["modelValue","placeholder"]),is(c,{type:"time",modelValue:o.tempRange.endTime,"onUpdate:modelValue":t[8]||(t[8]=e=>o.tempRange.endTime=e),end:s.timepickerEndTime,border:!1,disabled:!o.tempRange.endDate,hideSecond:n.hideSecond},{default:Fn((()=>[is(l,{class:"uni-date__input uni-date-range__input",type:"text",modelValue:o.tempRange.endTime,"onUpdate:modelValue":t[7]||(t[7]=e=>o.tempRange.endTime=e),placeholder:s.endTimeText,disabled:!o.tempRange.endDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","end","disabled","hideSecond"])])),_:1})])),_:1})):as("",!0),is(r,{class:"popup-x-body"},{default:Fn((()=>[is(u,{ref:"left",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,pleStatus:o.endMultipleStatus,onChange:s.leftChange,onFirstEnterCale:s.updateRightCale,style:{padding:"0 8px"}},null,8,["start-date","end-date","pleStatus","onChange","onFirstEnterCale"]),is(u,{ref:"right",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,range:!0,onChange:s.rightChange,pleStatus:o.startMultipleStatus,onFirstEnterCale:s.updateLeftCale,style:{padding:"0 8px","border-left":"1px solid #F1F1F1"}},null,8,["start-date","end-date","onChange","pleStatus","onFirstEnterCale"])])),_:1}),o.hasTime?(qo(),Go(r,{key:1,class:"popup-x-footer"},{default:Fn((()=>[is(d,{onClick:s.clear},{default:Fn((()=>[ss(X(s.clearText),1)])),_:1},8,["onClick"]),is(d,{class:"confirm-text",onClick:s.confirmRangeChange},{default:Fn((()=>[ss(X(s.okText),1)])),_:1},8,["onClick"])])),_:1})):as("",!0)])),_:1},8,["style"])):(qo(),Go(r,{key:0,class:"uni-date-single--x",style:re(o.pickerPositionStyle)},{default:Fn((()=>[is(r,{class:"uni-popper__arrow"}),o.hasTime?(qo(),Go(r,{key:0,class:"uni-date-changed popup-x-header"},{default:Fn((()=>[is(l,{class:"uni-date__input text-center",type:"text",modelValue:o.inputDate,"onUpdate:modelValue":t[0]||(t[0]=e=>o.inputDate=e),placeholder:s.selectDateText},null,8,["modelValue","placeholder"]),is(c,{type:"time",modelValue:o.pickerTime,"onUpdate:modelValue":t[2]||(t[2]=e=>o.pickerTime=e),border:!1,disabled:!o.inputDate,start:s.timepickerStartTime,end:s.timepickerEndTime,hideSecond:n.hideSecond,style:{width:"100%"}},{default:Fn((()=>[is(l,{class:"uni-date__input text-center",type:"text",modelValue:o.pickerTime,"onUpdate:modelValue":t[1]||(t[1]=e=>o.pickerTime=e),placeholder:s.selectTimeText,disabled:!o.inputDate},null,8,["modelValue","placeholder","disabled"])])),_:1},8,["modelValue","disabled","start","end","hideSecond"])])),_:1})):as("",!0),is(u,{ref:"pcSingle",showMonth:!1,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,date:o.calendarDate,onChange:s.singleChange,"default-value":n.defaultValue,style:{padding:"0 8px"}},null,8,["start-date","end-date","date","onChange","default-value"]),o.hasTime?(qo(),Go(r,{key:1,class:"popup-x-footer"},{default:Fn((()=>[is(d,{class:"confirm-text",onClick:s.confirmSingleChange},{default:Fn((()=>[ss(X(s.okText),1)])),_:1},8,["onClick"])])),_:1})):as("",!0)])),_:1},8,["style"]))])),_:1},512)),[[Xs,o.pickerVisible]]),o.isPhone?(qo(),Go(u,{key:1,ref:"mobile",clearDate:!1,date:o.calendarDate,defTime:s.mobileCalendarTime,"start-date":o.calendarRange.startDate,"end-date":o.calendarRange.endDate,selectableTimes:s.mobSelectableTime,startPlaceholder:n.startPlaceholder,endPlaceholder:n.endPlaceholder,"default-value":n.defaultValue,pleStatus:o.endMultipleStatus,showMonth:!1,range:o.isRange,hasTime:o.hasTime,insert:!1,hideSecond:n.hideSecond,onConfirm:s.mobileChange,onMaskClose:s.close},null,8,["date","defTime","start-date","end-date","selectableTimes","startPlaceholder","endPlaceholder","default-value","pleStatus","range","hasTime","hideSecond","onConfirm","onMaskClose"])):as("",!0)])),_:3})}],["__scopeId","data-v-9d2a6317"]]);function C_(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}const E_="function"==typeof Proxy;class P_{constructor(e,t){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=e,this.hook=t;const n={};if(e.settings)for(const s in e.settings){const t=e.settings[s];n[s]=t.defaultValue}const i=`__vue-devtools-plugin-settings__${e.id}`;let o={...n};try{const e=localStorage.getItem(i),t=JSON.parse(e);Object.assign(o,t)}catch(Mw){}this.fallbacks={getSettings:()=>o,setSettings(e){try{localStorage.setItem(i,JSON.stringify(e))}catch(Mw){}o=e}},t.on("plugin:settings:set",((e,t)=>{e===this.plugin.id&&this.fallbacks.setSettings(t)})),this.proxiedOn=new Proxy({},{get:(e,t)=>this.target?this.target.on[t]:(...e)=>{this.onQueue.push({method:t,args:e})}}),this.proxiedTarget=new Proxy({},{get:(e,t)=>this.target?this.target[t]:"on"===t?this.proxiedOn:Object.keys(this.fallbacks).includes(t)?(...e)=>(this.targetQueue.push({method:t,args:e,resolve:()=>{}}),this.fallbacks[t](...e)):(...e)=>new Promise((n=>{this.targetQueue.push({method:t,args:e,resolve:n})}))})}async setRealTarget(e){this.target=e;for(const t of this.onQueue)this.target.on[t.method](...t.args);for(const t of this.targetQueue)t.resolve(await this.target[t.method](...t.args))}}function D_(e,t){const n=C_(),i=C_().__VUE_DEVTOOLS_GLOBAL_HOOK__,o=E_&&e.enableEarlyProxy;if(!i||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&o){const s=o?new P_(e,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}else i.emit("devtools-plugin:setup",e,t)}
- /*!
- * vuex v4.1.0
- * (c) 2022 Evan You
- * @license MIT
- */function I_(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function M_(e){return null!==e&&"object"==typeof e}function O_(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function A_(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;R_(e,n,[],e._modules.root,!0),L_(e,n,t)}function L_(e,t,n){var i=e._state,o=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,a={},r={},l=Be(!0);l.run((function(){I_(s,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),r[n]=Cs((function(){return a[n]()})),Object.defineProperty(e.getters,n,{get:function(){return r[n].value},enumerable:!0})}))})),e._state=Wt({data:t}),e._scope=l,e.strict&&function(e){Zn((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),i&&n&&e._withCommit((function(){i.data=null})),o&&o.stop()}function R_(e,t,n,i,o){var s=!n.length,a=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=i),!s&&!o){var r=N_(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit((function(){r[l]=i.state}))}var c=i.context=function(e,t,n){var i=""===t,o={dispatch:i?e.dispatch:function(n,i,o){var s=B_(n,i,o),a=s.payload,r=s.options,l=s.type;return r&&r.root||(l=t+l),e.dispatch(l,a)},commit:i?e.commit:function(n,i,o){var s=B_(n,i,o),a=s.payload,r=s.options,l=s.type;r&&r.root||(l=t+l),e.commit(l,a,r)}};return Object.defineProperties(o,{getters:{get:i?function(){return e.getters}:function(){return $_(e,t)}},state:{get:function(){return N_(e.state,n)}}}),o}(e,a,n);i.forEachMutation((function(t,n){!function(e,t,n,i){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,i.state,t)}))}(e,a+n,t,c)})),i.forEachAction((function(t,n){var i=t.root?n:a+n,o=t.handler||t;!function(e,t,n,i){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,s=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},t);return(o=s)&&"function"==typeof o.then||(s=Promise.resolve(s)),e._devtoolHook?s.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):s}))}(e,i,o,c)})),i.forEachGetter((function(t,n){!function(e,t,n,i){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return n(i.state,i.getters,e.state,e.getters)}}(e,a+n,t,c)})),i.forEachChild((function(i,s){R_(e,t,n.concat(s),i,o)}))}function $_(e,t){if(!e._makeLocalGettersCache[t]){var n={},i=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,i)===t){var s=o.slice(i);Object.defineProperty(n,s,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function N_(e,t){return t.reduce((function(e,t){return e[t]}),e)}function B_(e,t,n){return M_(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var F_=0;function j_(e,t){D_({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:["vuex bindings"]},(function(n){n.addTimelineLayer({id:"vuex:mutations",label:"Vuex Mutations",color:V_}),n.addTimelineLayer({id:"vuex:actions",label:"Vuex Actions",color:V_}),n.addInspector({id:"vuex",label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&"vuex"===n.inspectorId)if(n.filter){var i=[];q_(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[H_(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&"vuex"===n.inspectorId){var i=n.nodeId;$_(t,i),n.state=function(e,t,n){t="root"===n?t:t[n];var i=Object.keys(t),o={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(i.length){var s=function(e){var t={};return Object.keys(e).forEach((function(n){var i=n.split("/");if(i.length>1){var o=t,s=i.pop();i.forEach((function(e){o[e]||(o[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),o=o[e]._custom.value})),o[s]=z_((function(){return e[n]}))}else t[n]=z_((function(){return e[n]}))})),t}(t);o.getters=Object.keys(s).map((function(e){return{key:e.endsWith("/")?U_(e):e,editable:!1,value:z_((function(){return s[e]}))}}))}return o}((o=t._modules,(a=(s=i).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var i=e[t];if(!i)throw new Error('Missing module "'+t+'" for path "'+s+'".');return n===a.length-1?i:i._children}),"root"===s?o:o.root._children)),"root"===i?t.getters:t._makeLocalGettersCache,i)}var o,s,a})),n.on.editInspectorState((function(n){if(n.app===e&&"vuex"===n.inspectorId){var i=n.nodeId,o=n.path;"root"!==i&&(o=i.split("/").filter(Boolean).concat(o)),t._withCommit((function(){n.set(t._state.data,o,n.state.value)}))}})),t.subscribe((function(e,t){var i={};e.payload&&(i.payload=e.payload),i.state=t,n.notifyComponentUpdate(),n.sendInspectorTree("vuex"),n.sendInspectorState("vuex"),n.addTimelineEvent({layerId:"vuex:mutations",event:{time:Date.now(),title:e.type,data:i}})})),t.subscribeAction({before:function(e,t){var i={};e.payload&&(i.payload=e.payload),e._id=F_++,e._time=Date.now(),i.state=t,n.addTimelineEvent({layerId:"vuex:actions",event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:i}})},after:function(e,t){var i={},o=Date.now()-e._time;i.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},e.payload&&(i.payload=e.payload),i.state=t,n.addTimelineEvent({layerId:"vuex:actions",event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:i}})}})}))}var V_=8702998,W_={label:"namespaced",textColor:16777215,backgroundColor:6710886};function U_(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function H_(e,t){return{id:t||"root",label:U_(t),tags:e.namespaced?[W_]:[],children:Object.keys(e._children).map((function(n){return H_(e._children[n],t+n+"/")}))}}function q_(e,t,n,i){i.includes(n)&&e.push({id:i||"root",label:i.endsWith("/")?i.slice(0,i.length-1):i||"Root",tags:t.namespaced?[W_]:[]}),Object.keys(t._children).forEach((function(o){q_(e,t._children[o],n,i+o+"/")}))}function z_(e){try{return e()}catch(Mw){return Mw}}var Y_=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},X_={namespaced:{configurable:!0}};X_.namespaced.get=function(){return!!this._rawModule.namespaced},Y_.prototype.addChild=function(e,t){this._children[e]=t},Y_.prototype.removeChild=function(e){delete this._children[e]},Y_.prototype.getChild=function(e){return this._children[e]},Y_.prototype.hasChild=function(e){return e in this._children},Y_.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Y_.prototype.forEachChild=function(e){I_(this._children,e)},Y_.prototype.forEachGetter=function(e){this._rawModule.getters&&I_(this._rawModule.getters,e)},Y_.prototype.forEachAction=function(e){this._rawModule.actions&&I_(this._rawModule.actions,e)},Y_.prototype.forEachMutation=function(e){this._rawModule.mutations&&I_(this._rawModule.mutations,e)},Object.defineProperties(Y_.prototype,X_);var K_=function(e){this.register([],e,!1)};function G_(e,t,n){if(t.update(n),n.modules)for(var i in n.modules){if(!t.getChild(i))return;G_(e.concat(i),t.getChild(i),n.modules[i])}}K_.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},K_.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},K_.prototype.update=function(e){G_([],this.root,e)},K_.prototype.register=function(e,t,n){var i=this;void 0===n&&(n=!0);var o=new Y_(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o);t.modules&&I_(t.modules,(function(t,o){i.register(e.concat(o),t,n)}))},K_.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],i=t.getChild(n);i&&i.runtime&&t.removeChild(n)},K_.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var J_=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var i=e.strict;void 0===i&&(i=!1);var o=e.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new K_(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,a=this.dispatch,r=this.commit;this.dispatch=function(e,t){return a.call(s,e,t)},this.commit=function(e,t,n){return r.call(s,e,t,n)},this.strict=i;var l=this._modules.root.state;R_(this,l,[],this._modules.root),L_(this,l),n.forEach((function(e){return e(t)}))},Q_={state:{configurable:!0}};J_.prototype.install=function(e,t){e.provide(t||"store",this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&j_(e,this)},Q_.state.get=function(){return this._state.data},Q_.state.set=function(e){},J_.prototype.commit=function(e,t,n){var i=this,o=B_(e,t,n),s=o.type,a=o.payload,r={type:s,payload:a},l=this._mutations[s];l&&(this._withCommit((function(){l.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(r,i.state)})))},J_.prototype.dispatch=function(e,t){var n=this,i=B_(e,t),o=i.type,s=i.payload,a={type:o,payload:s},r=this._actions[o];if(r){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(Mw){}var l=r.length>1?Promise.all(r.map((function(e){return e(s)}))):r[0](s);return new Promise((function(e,t){l.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(Mw){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(Mw){}t(e)}))}))}},J_.prototype.subscribe=function(e,t){return O_(e,this._subscribers,t)},J_.prototype.subscribeAction=function(e,t){return O_("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},J_.prototype.watch=function(e,t,n){var i=this;return Zn((function(){return e(i.state,i.getters)}),t,Object.assign({},n))},J_.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},J_.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),R_(this,this.state,e,this._modules.get(e),n.preserveState),L_(this,this.state)},J_.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete N_(t.state,e.slice(0,-1))[e[e.length-1]]})),A_(this)},J_.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},J_.prototype.hotUpdate=function(e){this._modules.update(e),A_(this,!0)},J_.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(J_.prototype,Q_);var Z_=ib((function(e,t){var n={};return nb(t).forEach((function(t){var i=t.key,o=t.val;n[i]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var i=ob(this.$store,"mapState",e);if(!i)return;t=i.context.state,n=i.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[i].vuex=!0})),n})),eb=ib((function(e,t){var n={};return nb(t).forEach((function(t){var i=t.key,o=t.val;n[i]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=this.$store.commit;if(e){var s=ob(this.$store,"mapMutations",e);if(!s)return;i=s.context.commit}return"function"==typeof o?o.apply(this,[i].concat(t)):i.apply(this.$store,[o].concat(t))}})),n})),tb=ib((function(e,t){var n={};return nb(t).forEach((function(t){var i=t.key,o=t.val;n[i]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var i=this.$store.dispatch;if(e){var s=ob(this.$store,"mapActions",e);if(!s)return;i=s.context.dispatch}return"function"==typeof o?o.apply(this,[i].concat(t)):i.apply(this.$store,[o].concat(t))}})),n}));function nb(e){return function(e){return Array.isArray(e)||M_(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function ib(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function ob(e,t,n){return e._modulesNamespaceMap[n]}const sb=Xv({name:"TableCheckbox",emits:["checkboxSelected"],props:{indeterminate:{type:Boolean,default:!1},checked:{type:[Boolean,String],default:!1},disabled:{type:Boolean,default:!1},index:{type:Number,default:-1},cellData:{type:Object,default:()=>({})}},watch:{checked(e){"boolean"==typeof this.checked?this.isChecked=e:this.isChecked=!0},indeterminate(e){this.isIndeterminate=e}},data:()=>({isChecked:!1,isDisabled:!1,isIndeterminate:!1}),created(){"boolean"==typeof this.checked&&(this.isChecked=this.checked),this.isDisabled=this.disabled},methods:{selected(){this.isDisabled||(this.isIndeterminate=!1,this.isChecked=!this.isChecked,this.$emit("checkboxSelected",{checked:this.isChecked,data:this.cellData}))}}},[["render",function(e,t,n,i,o,s){const a=vm;return qo(),Go(a,{class:"uni-table-checkbox",onClick:s.selected},{default:Fn((()=>[n.indeterminate?(qo(),Go(a,{key:1,class:"checkbox__inner checkbox--indeterminate"},{default:Fn((()=>[is(a,{class:"checkbox__inner-icon"})])),_:1})):(qo(),Go(a,{key:0,class:le(["checkbox__inner",{"is-checked":o.isChecked,"is-disable":o.isDisabled}])},{default:Fn((()=>[is(a,{class:"checkbox__inner-icon"})])),_:1},8,["class"]))])),_:1},8,["onClick"])}],["__scopeId","data-v-ff0fdce7"]]),ab={reset:"重置",search:"搜索",submit:"确定",filter:"筛选",gt:"大于等于",lt:"小于等于",date:"日期范围"},rb="select",lb="search",cb="range",ub="date",db="timestamp",hb={name:"FilterDropdown",emits:["change"],components:{checkBox:sb},options:{virtualHost:!0},props:{filterType:{type:String,default:rb},filterData:{type:Array,default:()=>[]},mode:{type:String,default:"default"},map:{type:Object,default:()=>({text:"text",value:"value"})},filterDefaultValue:{type:[Array,String],default:()=>""}},computed:{canReset(){return this.isSearch?this.filterValue.length>0:this.isSelect?this.checkedValues.length>0:this.isRange?this.gtValue.length>0&&this.ltValue.length>0:!!this.isDate&&this.dateSelect.length>0},isSelect(){return this.filterType===rb},isSearch(){return this.filterType===lb},isRange(){return this.filterType===cb},isDate(){return this.filterType===ub||this.filterType===db}},watch:{filterData(e){this._copyFilters()},indeterminate(e){this.isIndeterminate=e}},data(){return{resource:ab,enabled:!0,isOpened:!1,dataList:[],filterValue:this.filterDefaultValue,checkedValues:[],gtValue:"",ltValue:"",dateRange:[],dateSelect:[]}},created(){this._copyFilters()},methods:{_copyFilters(){let e=JSON.parse(JSON.stringify(this.filterData));for(let t=0;t<e.length;t++)void 0===e[t].checked&&(e[t].checked=!1);this.dataList=e},openPopup(){this.isOpened=!0,this.isDate&&this.$nextTick((()=>{this.dateRange.length||this.resetDate(),this.$refs.datetimepicker.show()}))},closePopup(){this.isOpened=!1},handleClose(e){this.closePopup()},resetDate(){let e=(new Date).toISOString().split("T")[0];this.dateRange=[e+" 0:00:00",e+" 23:59:59"]},onDropdown(e){this.openPopup()},onItemClick(e,t){let n=this.dataList,i=n[t];void 0===i.checked?n[t].checked=!0:n[t].checked=!i.checked;let o=[];for(let s=0;s<n.length;s++){const e=n[s];e.checked&&o.push(e.value)}this.checkedValues=o},datetimechange(e){this.closePopup(),this.dateRange=e,this.dateSelect=e,this.$emit("change",{filterType:this.filterType,filter:e})},timepickerclose(e){this.closePopup()},handleSelectSubmit(){this.closePopup(),this.$emit("change",{filterType:this.filterType,filter:this.checkedValues})},handleSelectReset(){if(this.canReset){var e=this.dataList;for(let t=0;t<e.length;t++){let n=e[t];this.$set(n,"checked",!1)}this.checkedValues=[],this.handleSelectSubmit()}},handleSearchSubmit(){this.closePopup(),this.$emit("change",{filterType:this.filterType,filter:this.filterValue})},handleSearchReset(){this.canReset&&(this.filterValue="",this.handleSearchSubmit())},handleRangeSubmit(e){this.closePopup(),this.$emit("change",{filterType:this.filterType,filter:!0===e?[]:[parseInt(this.gtValue),parseInt(this.ltValue)]})},handleRangeReset(){this.canReset&&(this.gtValue="",this.ltValue="",this.handleRangeSubmit(!0))}}};const pb={name:"uniTh",options:{virtualHost:!0},components:{dropdown:Xv(hb,[["render",function(e,t,n,i,o,s){const a=vm,r=Hn("check-box"),l=pm,c=Tu,u=uf,d=Zv(zn("uni-datetime-picker"),S_);return qo(),Go(a,{class:"uni-filter-dropdown"},{default:Fn((()=>[is(a,{class:"dropdown-btn",onClick:s.onDropdown},{default:Fn((()=>[s.isSelect||s.isRange?(qo(),Go(a,{key:0,class:le(["icon-select",{active:s.canReset}])},null,8,["class"])):as("",!0),s.isSearch?(qo(),Go(a,{key:1,class:le(["icon-search",{active:s.canReset}])},{default:Fn((()=>[is(a,{class:"icon-search-0"}),is(a,{class:"icon-search-1"})])),_:1},8,["class"])):as("",!0),s.isDate?(qo(),Go(a,{key:2,class:le(["icon-calendar",{active:s.canReset}])},{default:Fn((()=>[is(a,{class:"icon-calendar-0"}),is(a,{class:"icon-calendar-1"})])),_:1},8,["class"])):as("",!0)])),_:1},8,["onClick"]),o.isOpened?(qo(),Go(a,{key:0,class:"uni-dropdown-cover",onClick:s.handleClose},null,8,["onClick"])):as("",!0),o.isOpened?(qo(),Go(a,{key:1,class:"dropdown-popup dropdown-popup-right",onClick:t[3]||(t[3]=Ra((()=>{}),["stop"]))},{default:Fn((()=>[s.isSelect?(qo(),Go(a,{key:0,class:"list"},{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(o.dataList,((e,t)=>(qo(),Go(c,{class:"flex-r a-i-c list-item",key:t,onClick:e=>s.onItemClick(e,t)},{default:Fn((()=>[is(r,{class:"check",checked:e.checked},null,8,["checked"]),is(a,{class:"checklist-content"},{default:Fn((()=>[is(l,{class:"checklist-text",style:re(e.styleIconText)},{default:Fn((()=>[ss(X(e[n.map.text]),1)])),_:2},1032,["style"])])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})):as("",!0),s.isSelect?(qo(),Go(a,{key:1,class:"flex-r opera-area"},{default:Fn((()=>[is(a,{class:le(["flex-f btn btn-default",{disable:!s.canReset}]),onClick:s.handleSelectReset},{default:Fn((()=>[ss(X(o.resource.reset),1)])),_:1},8,["class","onClick"]),is(a,{class:"flex-f btn btn-submit",onClick:s.handleSelectSubmit},{default:Fn((()=>[ss(X(o.resource.submit),1)])),_:1},8,["onClick"])])),_:1})):as("",!0),s.isSearch?(qo(),Go(a,{key:2,class:"search-area"},{default:Fn((()=>[is(u,{class:"search-input",modelValue:o.filterValue,"onUpdate:modelValue":t[0]||(t[0]=e=>o.filterValue=e)},null,8,["modelValue"])])),_:1})):as("",!0),s.isSearch?(qo(),Go(a,{key:3,class:"flex-r opera-area"},{default:Fn((()=>[is(a,{class:"flex-f btn btn-submit",onClick:s.handleSearchSubmit},{default:Fn((()=>[ss(X(o.resource.search),1)])),_:1},8,["onClick"]),is(a,{class:le(["flex-f btn btn-default",{disable:!s.canReset}]),onClick:s.handleSearchReset},{default:Fn((()=>[ss(X(o.resource.reset),1)])),_:1},8,["class","onClick"])])),_:1})):as("",!0),s.isRange?(qo(),Go(a,{key:4},{default:Fn((()=>[is(a,{class:"input-label"},{default:Fn((()=>[ss(X(o.resource.gt),1)])),_:1}),is(u,{class:"input",modelValue:o.gtValue,"onUpdate:modelValue":t[1]||(t[1]=e=>o.gtValue=e)},null,8,["modelValue"]),is(a,{class:"input-label"},{default:Fn((()=>[ss(X(o.resource.lt),1)])),_:1}),is(u,{class:"input",modelValue:o.ltValue,"onUpdate:modelValue":t[2]||(t[2]=e=>o.ltValue=e)},null,8,["modelValue"])])),_:1})):as("",!0),s.isRange?(qo(),Go(a,{key:5,class:"flex-r opera-area"},{default:Fn((()=>[is(a,{class:le(["flex-f btn btn-default",{disable:!s.canReset}]),onClick:s.handleRangeReset},{default:Fn((()=>[ss(X(o.resource.reset),1)])),_:1},8,["class","onClick"]),is(a,{class:"flex-f btn btn-submit",onClick:s.handleRangeSubmit},{default:Fn((()=>[ss(X(o.resource.submit),1)])),_:1},8,["onClick"])])),_:1})):as("",!0),s.isDate?(qo(),Go(a,{key:6},{default:Fn((()=>[is(d,{ref:"datetimepicker",value:o.dateRange,type:"datetimerange","return-type":"timestamp",onChange:s.datetimechange,onMaskClick:s.timepickerclose},{default:Fn((()=>[is(a)])),_:1},8,["value","onChange","onMaskClick"])])),_:1})):as("",!0)])),_:1})):as("",!0)])),_:1})}],["__scopeId","data-v-eeb1dcc7"]])},emits:["sort-change","filter-change"],props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1},sortable:{type:Boolean,default:!1},filterType:{type:String,default:""},filterData:{type:Array,default:()=>[]},filterDefaultValue:{type:[Array,String],default:()=>""}},data:()=>({border:!1,ascending:!1,descending:!1}),computed:{customWidth(){if("number"==typeof this.width)return this.width;if("string"==typeof this.width){let e=new RegExp(/^[1-9][0-9]*px$/g),t=new RegExp(/^[1-9][0-9]*rpx$/g),n=new RegExp(/^[1-9][0-9]*$/g);if(null!==this.width.match(e))return this.width.replace("px","");if(null!==this.width.match(t)){let e=Number(this.width.replace("rpx","")),t=qg().screenWidth/750;return Math.round(e*t)}return null!==this.width.match(n)?this.width:""}return""},contentAlign(){let e="left";switch(this.align){case"left":e="flex-start";break;case"center":e="center";break;case"right":e="flex-end"}return e}},created(){this.root=this.getTable("uniTable"),this.rootTr=this.getTable("uniTr"),this.rootTr.minWidthUpdate(this.customWidth?this.customWidth:140),this.border=this.root.border,this.root.thChildren.push(this)},methods:{sort(){if(this.sortable)return this.clearOther(),this.ascending||this.descending?this.ascending&&!this.descending?(this.ascending=!1,this.descending=!0,void this.$emit("sort-change",{order:"descending"})):void(!this.ascending&&this.descending&&(this.ascending=!1,this.descending=!1,this.$emit("sort-change",{order:null}))):(this.ascending=!0,void this.$emit("sort-change",{order:"ascending"}))},ascendingFn(){this.clearOther(),this.ascending=!this.ascending,this.descending=!1,this.$emit("sort-change",{order:this.ascending?"ascending":null})},descendingFn(){this.clearOther(),this.descending=!this.descending,this.ascending=!1,this.$emit("sort-change",{order:this.descending?"descending":null})},clearOther(){this.root.thChildren.map((e=>(e!==this&&(e.ascending=!1,e.descending=!1),e)))},ondropdown(e){this.$emit("filter-change",e)},getTable(e){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};const fb=Xv(pb,[["render",function(e,t,n,i,o,s){const a=pm,r=vm,l=Hn("dropdown");return qo(),Ko("th",{rowspan:n.rowspan,colspan:n.colspan,class:le(["uni-table-th",{"table--border":o.border}]),style:re({width:s.customWidth+"px","text-align":n.align})},[is(r,{class:"uni-table-th-row"},{default:Fn((()=>[is(r,{class:"uni-table-th-content",style:re({"justify-content":s.contentAlign}),onClick:s.sort},{default:Fn((()=>[Xi(e.$slots,"default",{},void 0,!0),n.sortable?(qo(),Go(r,{key:0,class:"arrow-box"},{default:Fn((()=>[is(a,{class:le(["arrow up",{active:o.ascending}]),onClick:Ra(s.ascendingFn,["stop"])},null,8,["class","onClick"]),is(a,{class:le(["arrow down",{active:o.descending}]),onClick:Ra(s.descendingFn,["stop"])},null,8,["class","onClick"])])),_:1})):as("",!0)])),_:3},8,["style","onClick"]),n.filterType||n.filterData.length?(qo(),Go(l,{key:0,filterDefaultValue:n.filterDefaultValue,filterData:n.filterData,filterType:n.filterType,onChange:s.ondropdown},null,8,["filterDefaultValue","filterData","filterType","onChange"])):as("",!0)])),_:3})],14,["rowspan","colspan"])}],["__scopeId","data-v-46096bb8"]]),mb={name:"uniTr",components:{tableCheckbox:sb},props:{disabled:{type:Boolean,default:!1},keyValue:{type:[String,Number],default:""}},options:{virtualHost:!0},data:()=>({value:!1,border:!1,selection:!1,widthThArr:[],ishead:!0,checked:!1,indeterminate:!1}),created(){this.root=this.getTable(),this.head=this.getTable("uniThead"),this.head&&(this.ishead=!1,this.head.init(this)),this.border=this.root.border,this.selection=this.root.type,this.root.trChildren.push(this);const e=this.root.data.find((e=>e[this.root.rowKey]===this.keyValue));e&&(this.rowData=e),this.root.isNodata()},mounted(){if(this.widthThArr.length>0){const e="selection"===this.selection?50:0;this.root.minWidth=Number(this.widthThArr.reduce(((e,t)=>Number(e)+Number(t))))+e}},unmounted(){if(this.root&&this.root.trChildren){const e=this.root.trChildren.findIndex((e=>e===this));this.root.trChildren.splice(e,1),this.root.isNodata()}},methods:{minWidthUpdate(e){if(this.widthThArr.push(e),this.widthThArr.length>0){const e="selection"===this.selection?50:0;this.root.minWidth=Number(this.widthThArr.reduce(((e,t)=>Number(e)+Number(t))))+e}},checkboxSelected(e){let t=this.root.data.find((e=>e[this.root.rowKey]===this.keyValue));this.checked=e.checked,this.root.check(t||this,e.checked,t?this.keyValue:null)},change(e){this.root.trChildren.forEach((t=>{t===this&&this.root.check(this,e.detail.value.length>0)}))},getTable(e="uniTable"){let t=this.$parent,n=t.$options.name;for(;n!==e;){if(t=t.$parent,!t)return!1;n=t.$options.name}return t}}};const gb=Xv(mb,[["render",function(e,t,n,i,o,s){const a=Hn("table-checkbox");return qo(),Ko("tr",{class:"uni-table-tr"},["selection"===o.selection&&o.ishead?(qo(),Ko("th",{key:0,class:le(["checkbox",{"tr-table--border":o.border}])},[is(a,{checked:o.checked,indeterminate:o.indeterminate,disabled:n.disabled,onCheckboxSelected:s.checkboxSelected},null,8,["checked","indeterminate","disabled","onCheckboxSelected"])],2)):as("",!0),Xi(e.$slots,"default",{},void 0,!0)])}],["__scopeId","data-v-144512b0"]]);const yb=Xv({name:"uniTd",options:{virtualHost:!0},props:{width:{type:[String,Number],default:""},align:{type:String,default:"left"},rowspan:{type:[Number,String],default:1},colspan:{type:[Number,String],default:1}},data:()=>({border:!1}),created(){this.root=this.getTable(),this.border=this.root.border},methods:{getTable(){let e=this.$parent,t=e.$options.name;for(;"uniTable"!==t;){if(e=e.$parent,!e)return!1;t=e.$options.name}return e}}},[["render",function(e,t,n,i,o,s){return qo(),Ko("td",{class:le(["uni-table-td",{"table--border":o.border}]),rowspan:n.rowspan,colspan:n.colspan,style:re({width:n.width+"px","text-align":n.align})},[Xi(e.$slots,"default",{},void 0,!0)],14,["rowspan","colspan"])}],["__scopeId","data-v-aef02679"]]);const vb=Xv({name:"uniTable",options:{virtualHost:!0},emits:["selection-change"],props:{data:{type:Array,default:()=>[]},border:{type:Boolean,default:!1},stripe:{type:Boolean,default:!1},type:{type:String,default:""},emptyText:{type:String,default:"没有更多数据"},loading:{type:Boolean,default:!1},rowKey:{type:String,default:""}},data:()=>({noData:!0,minWidth:0,multiTableHeads:[]}),watch:{loading(e){},data(e){this.theadChildren,this.theadChildren&&this.theadChildren.rowspan,this.noData=!1}},created(){this.trChildren=[],this.thChildren=[],this.theadChildren=null,this.backData=[],this.backIndexData=[]},methods:{isNodata(){this.theadChildren;let e=1;this.theadChildren&&(e=this.theadChildren.rowspan),this.noData=this.trChildren.length-e<=0},selectionAll(){let e=1,t=this.theadChildren;this.theadChildren?e=t.rowspan-1:t=this.trChildren[0];let n=this.data&&this.data.length>0;t.checked=!0,t.indeterminate=!1,this.trChildren.forEach(((t,i)=>{if(!t.disabled){if(t.checked=!0,n&&t.keyValue){const e=this.data.find((e=>e[this.rowKey]===t.keyValue));this.backData.find((t=>t[this.rowKey]===e[this.rowKey]))||this.backData.push(e)}i>e-1&&-1===this.backIndexData.indexOf(i-e)&&this.backIndexData.push(i-e)}})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},toggleRowSelection(e,t){e=[].concat(e),this.trChildren.forEach(((n,i)=>{const o=e.findIndex((e=>"number"==typeof e?e===i-1:e[this.rowKey]===n.keyValue));let s=n.checked;-1!==o&&(n.checked="boolean"==typeof t?t:!n.checked,s!==n.checked&&this.check(n.rowData||n,n.checked,n.rowData?n.keyValue:null,!0))})),this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})},clearSelection(){let e=this.theadChildren;this.theadChildren||(e=this.trChildren[0]),e.checked=!1,e.indeterminate=!1,this.trChildren.forEach((e=>{e.checked=!1})),this.backData=[],this.backIndexData=[],this.$emit("selection-change",{detail:{value:[],index:[]}})},toggleAllSelection(){let e=[],t=1,n=this.theadChildren;this.theadChildren?t=n.rowspan-1:n=this.trChildren[0],this.trChildren.forEach(((n,i)=>{n.disabled||i>t-1&&e.push(i-t)})),this.toggleRowSelection(e)},check(e,t,n,i){let o=this.theadChildren;this.theadChildren||(o=this.trChildren[0]);let s=this.trChildren.findIndex(((t,n)=>e===t));if(s<0&&(s=this.data.findIndex((e=>e[this.rowKey]===n))+1),this.trChildren.filter((e=>!e.disabled&&e.keyValue)).length,0===s)return void(t?this.selectionAll():this.clearSelection());if(t)n&&this.backData.push(e),this.backIndexData.push(s-1);else{const e=this.backData.findIndex((e=>e[this.rowKey]===n)),t=this.backIndexData.findIndex((e=>e===s-1));n&&this.backData.splice(e,1),this.backIndexData.splice(t,1)}this.trChildren.find(((e,t)=>t>0&&!e.checked&&!e.disabled))?(o.indeterminate=!0,o.checked=!1):(o.indeterminate=!1,o.checked=!0),0===this.backIndexData.length&&(o.indeterminate=!1),i||this.$emit("selection-change",{detail:{value:this.backData,index:this.backIndexData}})}}},[["render",function(e,t,n,i,o,s){const a=vm;return qo(),Go(a,{class:le(["uni-table-scroll",{"table--border":n.border,"border-none":!o.noData}])},{default:Fn((()=>[ns("table",{class:le(["uni-table",{"table--stripe":n.stripe}]),border:"0",cellpadding:"0",cellspacing:"0",style:re({"min-width":o.minWidth+"px"})},[Xi(e.$slots,"default",{},void 0,!0),o.noData?(qo(),Ko("tr",{key:0,class:"uni-table-loading"},[ns("td",{class:le(["uni-table-text",{"empty-border":n.border}])},X(n.emptyText),3)])):as("",!0),n.loading?(qo(),Go(a,{key:1,class:le(["uni-table-mask",{"empty-border":n.border}])},{default:Fn((()=>[ns("div",{class:"uni-table--loader"})])),_:1},8,["class"])):as("",!0)],6)])),_:3},8,["class"])}],["__scopeId","data-v-82f3199e"]]),_b={login:{url:"/uni_modules/uni-id-pages/pages/login/login-withpwd"},index:{url:"/pages/index/index"},error:{url:"/pages/error/404"},navBar:{logo:"/static/logo.png",langs:[{text:"中文简体",lang:"zh-Hans"},{text:"中文繁體",lang:"zh-Hant"},{text:"English",lang:"en"}],themes:[{text:"默认",value:"default"},{text:"绿柔",value:"green"}],debug:{enable:!1,engine:[{name:"百度",url:"https://www.baidu.com/baidu?wd=ERR_MSG"},{name:"谷歌",url:"https://www.google.com/search?q=ERR_MSG"}]}},sideBar:{staticMenu:[{menu_id:"demo",text:"静态功能演示",icon:"admin-icons-kaifashili",url:"",children:[{menu_id:"icons",text:"图标",icon:"admin-icons-icon",value:"/pages/demo/icons/icons"},{menu_id:"table",text:"表格",icon:"admin-icons-table",value:"/pages/demo/table/table"}]},{menu_id:"admim-doc-pulgin",text:"文档与插件",icon:"admin-icons-eco",url:"",children:[{menu_id:"admin-doc",icon:"admin-icons-doc",text:"uni-admin 框架文档",value:"https://uniapp.dcloud.net.cn/uniCloud/admin"},{menu_id:"stat-doc",icon:"admin-icons-help",text:"uni 统计教程",value:"https://uniapp.dcloud.net.cn/uni-stat-v2.html"},{menu_id:"admin-pulgin",icon:"admin-icons-pulgin",text:"uni-admin 插件",value:"https://ext.dcloud.net.cn/?cat1=7&cat2=74"}]}]},uniStat:{}},bb=_b.navBar.debug||{};const wb={components:{errorLog:Xv({data:()=>({engines:bb.engine||[]}),computed:{...Z_("error",["logs"])},methods:{search(e,t){}}},[["render",function(e,t,n,i,o,s){const a=Zv(zn("uni-th"),fb),r=Zv(zn("uni-tr"),gb),l=pm,c=Zv(zn("uni-td"),yb),u=Ff,d=Zv(zn("uni-table"),vb),h=vm;return qo(),Go(h,{class:"uni-table"},{default:Fn((()=>[is(d,{border:"",stripe:""},{default:Fn((()=>[is(r,null,{default:Fn((()=>[is(a,{align:"center"},{default:Fn((()=>[ss("错误信息")])),_:1}),is(a,{width:"100",align:"center"},{default:Fn((()=>[ss("路由")])),_:1}),is(a,{width:"100",align:"center"},{default:Fn((()=>[ss("时间")])),_:1}),is(a,{width:"100",align:"center"},{default:Fn((()=>[ss("搜索")])),_:1})])),_:1}),(qo(!0),Ko(Fo,null,zi(e.logs,((e,t)=>(qo(),Go(r,{key:t},{default:Fn((()=>[is(c,null,{default:Fn((()=>[is(l,{class:"err-msg"},{default:Fn((()=>[ss("Error in "+X(e.info)+": `"+X(e.err)+"`",1)])),_:2},1024)])),_:2},1024),is(c,null,{default:Fn((()=>[is(u,{class:"err-route",url:e.route},{default:Fn((()=>[ss(X(e.route),1)])),_:2},1032,["url"])])),_:2},1024),is(c,null,{default:Fn((()=>[is(l,null,{default:Fn((()=>[ss(X(e.time),1)])),_:2},1024)])),_:2},1024),is(c,null,{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(o.engines,(t=>(qo(),Ko("a",{href:t.url.replace("ERR_MSG",encodeURIComponent(e.err)),target:"_blank",class:"err-search"},X(t.name),9,["href"])))),256))])),_:2},1024)])),_:2},1024)))),128))])),_:1})])),_:1})}],["__scopeId","data-v-880e209b"]])},props:{navigationBarTitleText:{type:String},matchLeftWindow:{type:Boolean},showLeftWindow:{type:Boolean}},data:()=>({..._b.navBar,popupMenuOpened:!1,mpCapsule:0,langIndex:0}),computed:{...Z_("app",["appName","routes","theme"]),...Z_("error",["logs"]),userInfo(){return this.$uniIdPagesStore.store.userInfo},themeIndex(){let e=0;return this.themes.forEach(((t,n)=>{t.value===this.theme&&(e=n)})),e}},mounted(){let e=Dh();this.$nextTick((()=>{let t=this.langs.findIndex((t=>t.lang===e));this.changeLanguage(t)}))},methods:{...eb("app",["SET_THEME"]),showErrorLogs(){this.popupMenuOpened&&(this.popupMenuOpened=!1),this.$refs.errorLogsPopup.open()},showPasswordPopup(){this.popupMenuOpened&&(this.popupMenuOpened=!1),this.$refs.passwordPopup.open()},logout(){this.popupMenuOpened=!1,this.$uniIdPagesStore.mutations.logout()},toggleSidebar(){this.showLeftWindow?Tv():kv()},togglePopupMenu(){this.popupMenuOpened=!this.popupMenuOpened},changePassword(){Ly({url:"/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",complete:()=>{this.popupMenuOpened=!1}})},changeLanguage(e){let t="object"==typeof e?e.detail.value:e;(!t||t<0)&&(t=0);const n=this.langs[t].lang||"zh-Hans";"android"!==qg().platform?(this.$i18n.locale=n,this.langIndex=t,Ih(n)):ov({icon:"error",title:"暂不支持",duration:2e3})},linkTo(){$y({url:"/"})},changeTheme(e){const t="object"==typeof e?e.detail.value:e,n=this.themes[t].value||"default";this.theme!==n&&this.SET_THEME(n)}}};const xb=Xv(wb,[["render",function(e,t,n,i,o,s){const a=Hp,r=pm,l=vm,c=Zv(zn("uni-icons"),Kv),u=Zv(zn("uni-badge"),e_),d=Lv,h=Hn("error-log"),p=sm,f=Zv(zn("uni-popup"),r_),m=Zv(zn("uni-datetime-picker"),S_);return qo(),Go(l,{class:"header"},{default:Fn((()=>[(qo(),Ko("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",style:{position:"absolute",width:"0",height:"0"}},[ns("symbol",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 128 128",id:"icon-bug"},[ns("path",{d:"M127.88 73.143c0 1.412-.506 2.635-1.518 3.669-1.011 1.033-2.209 1.55-3.592 1.55h-17.887c0 9.296-1.783 17.178-5.35 23.645l16.609 17.044c1.011 1.034 1.517 2.257 1.517 3.67 0 1.412-.506 2.635-1.517 3.668-.958 1.033-2.155 1.55-3.593 1.55-1.438 0-2.635-.517-3.593-1.55l-15.811-16.063a15.49 15.49 0 0 1-1.196 1.06c-.532.434-1.65 1.208-3.353 2.322a50.104 50.104 0 0 1-5.192 2.974c-1.758.87-3.94 1.658-6.546 2.364-2.607.706-5.189 1.06-7.748 1.06V47.044H58.89v73.062c-2.716 0-5.417-.367-8.106-1.102-2.688-.734-5.003-1.631-6.945-2.692a66.769 66.769 0 0 1-5.268-3.179c-1.571-1.057-2.73-1.94-3.476-2.65L33.9 109.34l-14.611 16.877c-1.066 1.14-2.344 1.711-3.833 1.711-1.277 0-2.422-.434-3.434-1.304-1.012-.978-1.557-2.187-1.635-3.627-.079-1.44.333-2.705 1.236-3.794l16.129-18.51c-3.087-6.197-4.63-13.644-4.63-22.342H5.235c-1.383 0-2.58-.517-3.592-1.55S.125 74.545.125 73.132c0-1.412.506-2.635 1.518-3.668 1.012-1.034 2.21-1.55 3.592-1.55h17.887V43.939L9.308 29.833c-1.012-1.033-1.517-2.256-1.517-3.669 0-1.412.505-2.635 1.517-3.668 1.012-1.034 2.21-1.55 3.593-1.55s2.58.516 3.593 1.55l13.813 14.106h67.396l13.814-14.106c1.012-1.034 2.21-1.55 3.592-1.55 1.384 0 2.581.516 3.593 1.55 1.012 1.033 1.518 2.256 1.518 3.668 0 1.413-.506 2.636-1.518 3.67l-13.814 14.105v23.975h17.887c1.383 0 2.58.516 3.593 1.55 1.011 1.033 1.517 2.256 1.517 3.668l-.005.01zM89.552 26.175H38.448c0-7.23 2.489-13.386 7.466-18.469C50.892 2.623 56.92.082 64 .082c7.08 0 13.108 2.541 18.086 7.624 4.977 5.083 7.466 11.24 7.466 18.469z"})])])),is(l,{class:le(["navbar",{"navbar-mini":!n.matchLeftWindow,"popup-menu":o.popupMenuOpened}])},{default:Fn((()=>[is(l,{class:"navbar-left"},{default:Fn((()=>[is(l,{class:"logo pointer",onClick:s.linkTo},{default:Fn((()=>[is(a,{class:"logo-image",src:e.logo,mode:"heightFix"},null,8,["src"]),is(r,{class:"logo-text"},{default:Fn((()=>[ss(X(e.appName),1)])),_:1})])),_:1},8,["onClick"]),is(c,{onClick:s.toggleSidebar,type:"bars",class:"menu-icon",size:"30",color:"#999"},null,8,["onClick"])])),_:1}),is(l,{class:"navbar-middle"},{default:Fn((()=>[is(r,{class:"title-text"},{default:Fn((()=>[ss(X(n.navigationBarTitleText),1)])),_:1})])),_:1}),is(l,{class:"navbar-right pointer"},{default:Fn((()=>[e.logs.length?(qo(),Go(l,{key:0,onClick:s.showErrorLogs,class:"menu-item debug pointer navbar-right-item-gap"},{default:Fn((()=>[(qo(),Ko("svg",{class:"svg-icon"},[ns("use",{"xlink:href":"#icon-bug"})])),is(u,{class:"debug-badge",text:e.logs.length,type:"error"},null,8,["text"])])),_:1},8,["onClick"])):as("",!0),is(d,{class:"navbar-right-item-gap",mode:"selector",range:e.themes,"range-key":"text",value:s.themeIndex,onChange:s.changeTheme},{default:Fn((()=>[is(c,{type:"color-filled",size:"24",color:"#999"})])),_:1},8,["range","value","onChange"]),is(d,{class:"navbar-right-item-gap",mode:"selector",range:e.langs,"range-key":"text",onChange:s.changeLanguage,value:o.langIndex},{default:Fn((()=>[is(l,{class:"admin-icons-lang"})])),_:1},8,["range","onChange","value"]),is(l,{class:"",style:{position:"relative"}},{default:Fn((()=>[oi(is(l,{class:"navbar-user",onClick:s.togglePopupMenu},{default:Fn((()=>[is(l,{class:"admin-icons-user user-icon"}),is(l,{class:"username ml-s"},{default:Fn((()=>[is(r,null,{default:Fn((()=>[ss(X(s.userInfo.nickname||s.userInfo.username||s.userInfo.mobile||s.userInfo.email),1)])),_:1})])),_:1}),is(c,{class:"arrowdown",type:"arrowdown",color:"#666",size:"13"})])),_:1},8,["onClick"]),[[Xs,s.userInfo.nickname||s.userInfo.username||s.userInfo.mobile||s.userInfo.email]]),is(l,{class:"uni-mask",onClick:s.togglePopupMenu},null,8,["onClick"]),is(l,{class:"navbar-menu"},{default:Fn((()=>[s.userInfo.nickname||s.userInfo.username||s.userInfo.mobile||s.userInfo.email?(qo(),Ko(Fo,{key:0},[is(l,{class:"menu-item hover-highlight",onClick:s.changePassword},{default:Fn((()=>[is(r,null,{default:Fn((()=>[ss(X(e.$t("topwindow.text.changePwd")),1)])),_:1})])),_:1},8,["onClick"]),is(l,{class:"menu-item hover-highlight"},{default:Fn((()=>[is(r,{class:"logout pointer",onClick:s.logout},{default:Fn((()=>[ss(X(e.$t("topwindow.text.signOut")),1)])),_:1},8,["onClick"])])),_:1})],64)):as("",!0),is(l,{class:"popup-menu__arrow"})])),_:1})])),_:1})])),_:1})])),_:1},8,["class"]),is(f,{ref:"errorLogsPopup",type:"center"},{default:Fn((()=>[is(l,{class:"modal"},{default:Fn((()=>[is(p,{class:"modal-content","scroll-y":"true"},{default:Fn((()=>[is(h,{class:"error-table"})])),_:1})])),_:1})])),_:1},512),oi(is(m,{type:"date"},null,512),[[Xs,!1]])])),_:1})}],["__scopeId","data-v-c2e6313c"]]),kb={pages:[{path:"pages/index/index"},{path:"pages/demo/icons/icons",style:{navigationBarTitleText:"图标"}},{path:"pages/demo/table/table",style:{navigationBarTitleText:"表格"}},{path:"uni_modules/uni-id-pages/pages/login/login-withpwd",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"登录"}},{path:"pages/error/404",style:{navigationBarTitleText:"Not Found"}},{path:"uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",style:{navigationBarTitleText:"修改密码"}},{path:"uni_modules/uni-upgrade-center/pages/version/list",style:{navigationBarTitleText:"版本列表"}},{path:"uni_modules/uni-upgrade-center/pages/version/add",style:{navigationBarTitleText:"新版发布"}},{path:"uni_modules/uni-upgrade-center/pages/version/detail",style:{navigationBarTitleText:"版本信息查看"}},{path:"uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",style:{navigationBarTitleText:"注销账号"}},{path:"uni_modules/uni-id-pages/pages/userinfo/userinfo",style:{navigationBarTitleText:"个人资料"}},{path:"uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",style:{navigationBarTitleText:"绑定手机号码"}},{path:"uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",style:{navigationBarTitleText:""}},{path:"uni_modules/uni-id-pages/pages/login/login-smscode",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"手机验证码登录"}},{path:"uni_modules/uni-id-pages/pages/login/login-withoutpwd",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"免密登录页"}},{path:"uni_modules/uni-id-pages/pages/register/register",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"注册"}},{path:"uni_modules/uni-id-pages/pages/register/register-admin",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"创建超级管理员"}},{path:"uni_modules/uni-id-pages/pages/register/register-by-email",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"邮箱验证码注册"}},{path:"uni_modules/uni-id-pages/pages/retrieve/retrieve",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"重置密码"}},{path:"uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",style:{topWindow:!1,leftWindow:!1,navigationBarTitleText:"通过邮箱重置密码"}},{path:"uni_modules/uni-id-pages/pages/common/webview/webview",style:{topWindow:!1,leftWindow:!1,enablePullDownRefresh:!1,navigationBarTitleText:""}},{path:"uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",style:{enablePullDownRefresh:!1,navigationBarTitleText:"设置密码"}},{path:"uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify",style:{enablePullDownRefresh:!1,navigationBarTitleText:"实名认证"}}],subPackages:[{root:"pages/system",pages:[{path:"menu/list",style:{navigationBarTitleText:"菜单管理"}},{path:"menu/add",style:{navigationBarTitleText:"新增菜单",navigationStyle:"default"}},{path:"menu/edit",style:{navigationBarTitleText:"修改菜单",navigationStyle:"default"}},{path:"permission/list",style:{navigationBarTitleText:"权限管理"}},{path:"permission/add",style:{navigationBarTitleText:"新增权限",navigationStyle:"default"}},{path:"permission/edit",style:{navigationBarTitleText:"修改权限",navigationStyle:"default"}},{path:"role/add",style:{navigationBarTitleText:"新增角色",navigationStyle:"default"}},{path:"role/edit",style:{navigationBarTitleText:"修改角色",navigationStyle:"default"}},{path:"role/list",style:{navigationBarTitleText:"角色管理"}},{path:"user/add",style:{navigationBarTitleText:"新增用户",navigationStyle:"default"}},{path:"user/edit",style:{navigationBarTitleText:"修改用户",navigationStyle:"default"}},{path:"user/list",style:{navigationBarTitleText:"用户管理"}},{path:"app/add",style:{navigationBarTitleText:"新增应用",navigationStyle:"default"}},{path:"app/list",style:{navigationBarTitleText:"应用管理"}},{path:"app/uni-portal/uni-portal",style:{navigationBarTitleText:"发布页管理",navigationStyle:"default"}},{path:"tag/add",style:{navigationBarTitleText:"新增标签"}},{path:"tag/edit",style:{navigationBarTitleText:"修改标签"}},{path:"tag/list",style:{navigationBarTitleText:"标签管理"}},{path:"safety/list",style:{navigationBarTitleText:"用户日志"}}]},{root:"pages/uni-stat",pages:[{path:"page-res/page-res",style:{navigationBarTitleText:"受访页",enablePullDownRefresh:!1}},{path:"page-ent/page-ent",style:{navigationBarTitleText:"入口页",enablePullDownRefresh:!1}},{path:"page-content/page-content",style:{navigationBarTitleText:"内容统计",enablePullDownRefresh:!1}},{path:"page-rule/page-rule",style:{navigationBarTitleText:"页面规则",enablePullDownRefresh:!1}},{path:"scene/scene",style:{navigationBarTitleText:"场景值(小程序)",enablePullDownRefresh:!1}},{path:"channel/channel",style:{navigationBarTitleText:"渠道(app)",enablePullDownRefresh:!1}},{path:"error/js/js",style:{navigationBarTitleText:"js报错统计",enablePullDownRefresh:!1}},{path:"error/js/detail",style:{navigationBarTitleText:"错误信息",navigationStyle:"default",enablePullDownRefresh:!1}},{path:"error/app/app",style:{navigationBarTitleText:"app原生报错统计",enablePullDownRefresh:!1}},{path:"event/event",style:{navigationBarTitleText:"事件和转化",enablePullDownRefresh:!1}},{path:"device/overview/overview",style:{navigationBarTitleText:"今日概况",enablePullDownRefresh:!1}},{path:"device/activity/activity",style:{navigationBarTitleText:"活跃度",enablePullDownRefresh:!1}},{path:"device/trend/trend",style:{navigationBarTitleText:"趋势分析",enablePullDownRefresh:!1}},{path:"device/retention/retention",style:{navigationBarTitleText:"留存",enablePullDownRefresh:!1}},{path:"device/comparison/comparison",style:{navigationBarTitleText:"平台对比",enablePullDownRefresh:!1}},{path:"device/stickiness/stickiness",style:{navigationBarTitleText:"粘性",enablePullDownRefresh:!1}},{path:"user/overview/overview",style:{navigationBarTitleText:"今日概况",enablePullDownRefresh:!1}},{path:"user/activity/activity",style:{navigationBarTitleText:"活跃度",enablePullDownRefresh:!1}},{path:"user/trend/trend",style:{navigationBarTitleText:"趋势分析",enablePullDownRefresh:!1}},{path:"user/retention/retention",style:{navigationBarTitleText:"留存",enablePullDownRefresh:!1}},{path:"user/comparison/comparison",style:{navigationBarTitleText:"平台对比",enablePullDownRefresh:!1}},{path:"user/stickiness/stickiness",style:{navigationBarTitleText:"粘性",enablePullDownRefresh:!1}},{path:"pay-order/overview/overview",style:{navigationBarTitleText:"订单概况",enablePullDownRefresh:!1}},{path:"pay-order/list/list",style:{navigationBarTitleText:"订单明细",enablePullDownRefresh:!1}},{path:"pay-order/funnel/funnel",style:{navigationBarTitleText:"漏斗分析",enablePullDownRefresh:!1}},{path:"pay-order/ranking/ranking",style:{navigationBarTitleText:"用户价值排行",enablePullDownRefresh:!1}}]}],globalStyle:{navigationBarTextStyle:"black",navigationBarTitleText:"管理系统",navigationBarBackgroundColor:"#F8F8F8",backgroundColor:"#F8F8F8",h5:{titleNView:!1}},topWindow:{path:"windows/topWindow",style:{height:"60px"},matchMedia:{minWidth:0}},leftWindow:{path:"windows/leftWindow",style:{width:"240px"}},uniIdRouter:{loginPage:"uni_modules/uni-id-pages/pages/login/login-withpwd",needLogin:["^((?!uni-id-pages/pages/login|register|retrieve).)*$"],resToLogin:!0}};function Tb(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var Sb=Tb((function(e,t){var n;e.exports=(n=n||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),i={},o=i.lib={},s=o.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=o.WordArray=s.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=null!=t?t:4*e.length},toString:function(e){return(e||l).stringify(this)},concat:function(e){var t=this.words,n=e.words,i=this.sigBytes,o=e.sigBytes;if(this.clamp(),i%4)for(var s=0;s<o;s++){var a=n[s>>>2]>>>24-s%4*8&255;t[i+s>>>2]|=a<<24-(i+s)%4*8}else for(s=0;s<o;s+=4)t[i+s>>>2]=n[s>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=s.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,i=[],o=function(t){var n=987654321,i=4294967295;return function(){var o=((n=36969*(65535&n)+(n>>16)&i)<<16)+(t=18e3*(65535&t)+(t>>16)&i)&i;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}},s=0;s<t;s+=4){var r=o(4294967296*(n||e.random()));n=987654071*r(),i.push(4294967296*r()|0)}return new a.init(i,t)}}),r=i.enc={},l=r.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;i.push((s>>>4).toString(16)),i.push((15&s).toString(16))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i+=2)n[i>>>3]|=parseInt(e.substr(i,2),16)<<24-i%8*4;return new a.init(n,t/2)}},c=r.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o++){var s=t[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(s))}return i.join("")},parse:function(e){for(var t=e.length,n=[],i=0;i<t;i++)n[i>>>2]|=(255&e.charCodeAt(i))<<24-i%4*8;return new a.init(n,t)}},u=r.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},d=o.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=u.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,i=n.words,o=n.sigBytes,s=this.blockSize,r=o/(4*s),l=(r=t?e.ceil(r):e.max((0|r)-this._minBufferSize,0))*s,c=e.min(4*l,o);if(l){for(var u=0;u<l;u+=s)this._doProcessBlock(i,u);var d=i.splice(0,l);n.sigBytes-=c}return new a.init(d,c)},clone:function(){var e=s.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});o.Hasher=d.extend({cfg:s.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){d.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=i.algo={};return i}(Math),n)})),Cb=Sb,Eb=(Tb((function(e,t){var n;e.exports=(n=Cb,function(e){var t=n,i=t.lib,o=i.WordArray,s=i.Hasher,a=t.algo,r=[];!function(){for(var t=0;t<64;t++)r[t]=4294967296*e.abs(e.sin(t+1))|0}();var l=a.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var i=t+n,o=e[i];e[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var s=this._hash.words,a=e[t+0],l=e[t+1],p=e[t+2],f=e[t+3],m=e[t+4],g=e[t+5],y=e[t+6],v=e[t+7],_=e[t+8],b=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],T=e[t+13],S=e[t+14],C=e[t+15],E=s[0],P=s[1],D=s[2],I=s[3];E=c(E,P,D,I,a,7,r[0]),I=c(I,E,P,D,l,12,r[1]),D=c(D,I,E,P,p,17,r[2]),P=c(P,D,I,E,f,22,r[3]),E=c(E,P,D,I,m,7,r[4]),I=c(I,E,P,D,g,12,r[5]),D=c(D,I,E,P,y,17,r[6]),P=c(P,D,I,E,v,22,r[7]),E=c(E,P,D,I,_,7,r[8]),I=c(I,E,P,D,b,12,r[9]),D=c(D,I,E,P,w,17,r[10]),P=c(P,D,I,E,x,22,r[11]),E=c(E,P,D,I,k,7,r[12]),I=c(I,E,P,D,T,12,r[13]),D=c(D,I,E,P,S,17,r[14]),E=u(E,P=c(P,D,I,E,C,22,r[15]),D,I,l,5,r[16]),I=u(I,E,P,D,y,9,r[17]),D=u(D,I,E,P,x,14,r[18]),P=u(P,D,I,E,a,20,r[19]),E=u(E,P,D,I,g,5,r[20]),I=u(I,E,P,D,w,9,r[21]),D=u(D,I,E,P,C,14,r[22]),P=u(P,D,I,E,m,20,r[23]),E=u(E,P,D,I,b,5,r[24]),I=u(I,E,P,D,S,9,r[25]),D=u(D,I,E,P,f,14,r[26]),P=u(P,D,I,E,_,20,r[27]),E=u(E,P,D,I,T,5,r[28]),I=u(I,E,P,D,p,9,r[29]),D=u(D,I,E,P,v,14,r[30]),E=d(E,P=u(P,D,I,E,k,20,r[31]),D,I,g,4,r[32]),I=d(I,E,P,D,_,11,r[33]),D=d(D,I,E,P,x,16,r[34]),P=d(P,D,I,E,S,23,r[35]),E=d(E,P,D,I,l,4,r[36]),I=d(I,E,P,D,m,11,r[37]),D=d(D,I,E,P,v,16,r[38]),P=d(P,D,I,E,w,23,r[39]),E=d(E,P,D,I,T,4,r[40]),I=d(I,E,P,D,a,11,r[41]),D=d(D,I,E,P,f,16,r[42]),P=d(P,D,I,E,y,23,r[43]),E=d(E,P,D,I,b,4,r[44]),I=d(I,E,P,D,k,11,r[45]),D=d(D,I,E,P,C,16,r[46]),E=h(E,P=d(P,D,I,E,p,23,r[47]),D,I,a,6,r[48]),I=h(I,E,P,D,v,10,r[49]),D=h(D,I,E,P,S,15,r[50]),P=h(P,D,I,E,g,21,r[51]),E=h(E,P,D,I,k,6,r[52]),I=h(I,E,P,D,f,10,r[53]),D=h(D,I,E,P,w,15,r[54]),P=h(P,D,I,E,l,21,r[55]),E=h(E,P,D,I,_,6,r[56]),I=h(I,E,P,D,C,10,r[57]),D=h(D,I,E,P,y,15,r[58]),P=h(P,D,I,E,T,21,r[59]),E=h(E,P,D,I,m,6,r[60]),I=h(I,E,P,D,x,10,r[61]),D=h(D,I,E,P,p,15,r[62]),P=h(P,D,I,E,b,21,r[63]),s[0]=s[0]+E|0,s[1]=s[1]+P|0,s[2]=s[2]+D|0,s[3]=s[3]+I|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;n[o>>>5]|=128<<24-o%32;var s=e.floor(i/4294967296),a=i;n[15+(o+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var r=this._hash,l=r.words,c=0;c<4;c++){var u=l[c];l[c]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}return r},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,i,o,s,a){var r=e+(t&n|~t&i)+o+a;return(r<<s|r>>>32-s)+t}function u(e,t,n,i,o,s,a){var r=e+(t&i|n&~i)+o+a;return(r<<s|r>>>32-s)+t}function d(e,t,n,i,o,s,a){var r=e+(t^n^i)+o+a;return(r<<s|r>>>32-s)+t}function h(e,t,n,i,o,s,a){var r=e+(n^(t|~i))+o+a;return(r<<s|r>>>32-s)+t}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),n.MD5)})),Tb((function(e,t){var n,i,o;e.exports=(i=(n=Cb).lib.Base,o=n.enc.Utf8,void(n.algo.HMAC=i.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=o.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var s=this._oKey=t.clone(),a=this._iKey=t.clone(),r=s.words,l=a.words,c=0;c<n;c++)r[c]^=1549556828,l[c]^=909522486;s.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))})),Tb((function(e,t){e.exports=Cb.HmacMD5}))),Pb=Tb((function(e,t){e.exports=Cb.enc.Utf8})),Db=Tb((function(e,t){var n,i,o;e.exports=(o=(i=n=Cb).lib.WordArray,i.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,i=this._map;e.clamp();for(var o=[],s=0;s<n;s+=3)for(var a=(t[s>>>2]>>>24-s%4*8&255)<<16|(t[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|t[s+2>>>2]>>>24-(s+2)%4*8&255,r=0;r<4&&s+.75*r<n;r++)o.push(i.charAt(a>>>6*(3-r)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var s=0;s<n.length;s++)i[n.charCodeAt(s)]=s}var a=n.charAt(64);if(a){var r=e.indexOf(a);-1!==r&&(t=r)}return function(e,t,n){for(var i=[],s=0,a=0;a<t;a++)if(a%4){var r=n[e.charCodeAt(a-1)]<<a%4*2,l=n[e.charCodeAt(a)]>>>6-a%4*2;i[s>>>2]|=(r|l)<<24-s%4*8,s++}return o.create(i,s)}(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},n.enc.Base64)}));const Ib="FUNCTION",Mb="pending",Ob="rejected";function Ab(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function Lb(e){return"object"===Ab(e)}function Rb(e){return"function"==typeof e}function $b(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}const Nb="REJECTED",Bb="NOT_PENDING";class Fb{constructor({createPromise:e,retryRule:t=Nb}={}){this.createPromise=e,this.status=null,this.promise=null,this.retryRule=t}get needRetry(){if(!this.status)return!0;switch(this.retryRule){case Nb:return this.status===Ob;case Bb:return this.status!==Mb}}exec(){return this.needRetry?(this.status=Mb,this.promise=this.createPromise().then((e=>(this.status="fulfilled",Promise.resolve(e))),(e=>(this.status=Ob,Promise.reject(e)))),this.promise):this.promise}}function jb(e){return e&&"string"==typeof e?JSON.parse(e):e}const Vb=jb([]);jb("{}");const Wb=jb('[{"provider":"aliyun","spaceName":"dizuo-dataserver","spaceId":"mp-4f679846-8300-41c1-b457-41d2a503e7c0","clientSecret":"lHfBdwZGy3A5ZczoAYUFLg==","endpoint":"https://api.next.bspapp.com"}]')||[];let Ub="";try{Ub="__UNI__F700081"}catch(Mw){}let Hb={};function qb(e,t={}){var n,i;return n=Hb,i=e,Object.prototype.hasOwnProperty.call(n,i)||(Hb[e]=t),Hb[e]}const zb=["invoke","success","fail","complete"],Yb=qb("_globalUniCloudInterceptor");function Xb(e,t){Yb[e]||(Yb[e]={}),Lb(t)&&Object.keys(t).forEach((n=>{zb.indexOf(n)>-1&&function(e,t,n){let i=Yb[e][t];i||(i=Yb[e][t]=[]),-1===i.indexOf(n)&&Rb(n)&&i.push(n)}(e,n,t[n])}))}function Kb(e,t){Yb[e]||(Yb[e]={}),Lb(t)?Object.keys(t).forEach((n=>{zb.indexOf(n)>-1&&function(e,t,n){const i=Yb[e][t];if(!i)return;const o=i.indexOf(n);o>-1&&i.splice(o,1)}(e,n,t[n])})):delete Yb[e]}function Gb(e,t){return e&&0!==e.length?e.reduce(((e,n)=>e.then((()=>n(t)))),Promise.resolve()):Promise.resolve()}function Jb(e,t){return Yb[e]&&Yb[e][t]||[]}function Qb(e){Xb("callObject",e)}const Zb=qb("_globalUniCloudListener"),ew="response",tw="needLogin",nw="refreshToken",iw="clientdb",ow="cloudfunction",sw="cloudobject";function aw(e){return Zb[e]||(Zb[e]=[]),Zb[e]}function rw(e,t){const n=aw(e);n.includes(t)||n.push(t)}function lw(e,t){const n=aw(e),i=n.indexOf(t);-1!==i&&n.splice(i,1)}function cw(e,t){const n=aw(e);for(let i=0;i<n.length;i++)(0,n[i])(t)}let uw,dw=!1;function hw(){return uw||(uw=new Promise((e=>{dw&&e(),function t(){{const t=Gm();t&&t[0]&&(dw=!0,e())}dw||setTimeout((()=>{t()}),30)}()})),uw)}function pw(e){const t={};for(const n in e){const i=e[n];Rb(i)&&(t[n]=$b(i))}return t}class fw extends Error{constructor(e){super(e.message),this.errMsg=e.message||e.errMsg||"unknown system error",this.code=this.errCode=e.code||e.errCode||"SYSTEM_ERROR",this.errSubject=this.subject=e.subject||e.errSubject,this.cause=e.cause,this.requestId=e.requestId}toJson(e=0){if(!(e>=10))return e++,{errCode:this.errCode,errMsg:this.errMsg,errSubject:this.errSubject,cause:this.cause&&this.cause.toJson?this.cause.toJson(e):this.cause}}}var mw={request:e=>Ey(e),uploadFile:e=>My(e),setStorageSync:(e,t)=>Xg(e,t),getStorageSync:e=>Gg(e),removeStorageSync:e=>Jg(e),clearStorageSync:()=>Zg()};function gw(e){return e&&gw(e.__v_raw)||e}function yw(){return{token:mw.getStorageSync("uni_id_token")||mw.getStorageSync("uniIdToken"),tokenExpired:mw.getStorageSync("uni_id_token_expired")}}function vw({token:e,tokenExpired:t}={}){e&&mw.setStorageSync("uni_id_token",e),t&&mw.setStorageSync("uni_id_token_expired",t)}let _w,bw;function ww(){return _w||(_w=qg()),_w}function xw(){let e,t;try{if(Oh){if(Oh.toString().indexOf("not yet implemented")>-1)return;const{scene:n,channel:i}=Oh();e=i,t=n}}catch(n){}return{channel:e,scene:t}}function kw(){const e=Dh&&Dh()||"en";if(bw)return{...bw,locale:e,LOCALE:e};const t=ww(),{deviceId:n,osName:i,uniPlatform:o,appId:s}=t,a=["pixelRatio","brand","model","system","language","version","platform","host","SDKVersion","swanNativeVersion","app","AppPlatform","fontSizeSetting"];for(let r=0;r<a.length;r++)delete t[a[r]];return bw={PLATFORM:o,OS:i,APPID:s,DEVICEID:n,...xw(),...t},{...bw,locale:e,LOCALE:e}}var Tw=function(e,t){let n="";return Object.keys(e).sort().forEach((function(t){e[t]&&(n=n+"&"+t+"="+e[t])})),n=n.slice(1),Eb(n,t).toString()},Sw=function(e,t){return new Promise(((n,i)=>{t(Object.assign(e,{complete(e){e||(e={});const t=e.data&&e.data.header&&e.data.header["x-serverless-request-id"]||e.header&&e.header["request-id"];if(!e.statusCode||e.statusCode>=400){const n=e.data&&e.data.error&&e.data.error.code||"SYS_ERR",o=e.data&&e.data.error&&e.data.error.message||e.errMsg||"request:fail";return i(new fw({code:n,message:o,requestId:t}))}const o=e.data;if(o.error)return i(new fw({code:o.error.code,message:o.error.message,requestId:t}));o.result=o.data,o.requestId=t,delete o.data,n(o)}}))}))},Cw=function(e){return Db.stringify(Pb.parse(e))},Ew=class{constructor(e){["spaceId","clientSecret"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),this.config=Object.assign({},{endpoint:0===e.spaceId.indexOf("mp-")?"https://api.next.bspapp.com":"https://api.bspapp.com"},e),this.config.provider="aliyun",this.config.requestUrl=this.config.endpoint+"/client",this.config.envType=this.config.envType||"public",this.config.accessTokenKey="access_token_"+this.config.spaceId,this.adapter=mw,this._getAccessTokenPromiseHub=new Fb({createPromise:()=>this.requestAuth(this.setupRequest({method:"serverless.auth.user.anonymousAuthorize",params:"{}"},"auth")).then((e=>{if(!e.result||!e.result.accessToken)throw new fw({code:"AUTH_FAILED",message:"获取accessToken失败"});this.setAccessToken(e.result.accessToken)})),retryRule:Bb})}get hasAccessToken(){return!!this.accessToken}setAccessToken(e){this.accessToken=e}requestWrapped(e){return Sw(e,this.adapter.request)}requestAuth(e){return this.requestWrapped(e)}request(e,t){return Promise.resolve().then((()=>this.hasAccessToken?t?this.requestWrapped(e):this.requestWrapped(e).catch((t=>new Promise(((e,n)=>{!t||"GATEWAY_INVALID_TOKEN"!==t.code&&"InvalidParameter.InvalidToken"!==t.code?n(t):e()})).then((()=>this.getAccessToken())).then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)})))):this.getAccessToken().then((()=>{const t=this.rebuildRequest(e);return this.request(t,!0)}))))}rebuildRequest(e){const t=Object.assign({},e);return t.data.token=this.accessToken,t.header["x-basement-token"]=this.accessToken,t.header["x-serverless-sign"]=Tw(t.data,this.config.clientSecret),t}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};return"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=Tw(n,this.config.clientSecret),{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:i}}getAccessToken(){return this._getAccessTokenPromiseHub.exec()}async authorize(){await this.getAccessToken()}callFunction(e){const t={method:"serverless.function.runtime.invoke",params:JSON.stringify({functionTarget:e.name,functionArgs:e.data||{}})};return this.request(this.setupRequest(t))}getOSSUploadOptionsFromPath(e){const t={method:"serverless.file.resource.generateProximalSign",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:o,onUploadProgress:s}){return new Promise(((a,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:o,header:{"X-OSS-server-side-encrpytion":"AES256"},success(e){e&&e.statusCode<400?a(e):r(new fw({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new fw({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}reportOSSUpload(e){const t={method:"serverless.file.resource.report",params:JSON.stringify(e)};return this.request(this.setupRequest(t))}async uploadFile({filePath:e,cloudPath:t,fileType:n="image",cloudPathAsRealPath:i=!1,onUploadProgress:o,config:s}){if("string"!==Ab(t))throw new fw({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new fw({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new fw({code:"INVALID_PARAM",message:"cloudPath不合法"});const a=s&&s.envType||this.config.envType;if(i&&("/"!==t[0]&&(t="/"+t),t.indexOf("\\")>-1))throw new fw({code:"INVALID_PARAM",message:"使用cloudPath作为路径时,cloudPath不可包含“\\”"});const r=(await this.getOSSUploadOptionsFromPath({env:a,filename:i?t.split("/").pop():t,fileId:i?t:void 0})).result,l="https://"+r.cdnDomain+"/"+r.ossPath,{securityToken:c,accessKeyId:u,signature:d,host:h,ossPath:p,id:f,policy:m,ossCallbackUrl:g}=r,y={"Cache-Control":"max-age=2592000","Content-Disposition":"attachment",OSSAccessKeyId:u,Signature:d,host:h,id:f,key:p,policy:m,success_action_status:200};if(c&&(y["x-oss-security-token"]=c),g){const e=JSON.stringify({callbackUrl:g,callbackBody:JSON.stringify({fileId:f,spaceId:this.config.spaceId}),callbackBodyType:"application/json"});y.callback=Cw(e)}const v={url:"https://"+r.host,formData:y,fileName:"file",name:"file",filePath:e,fileType:n};if(await this.uploadFileToOSS(Object.assign({},v,{onUploadProgress:o})),g)return{success:!0,filePath:e,fileID:l};if((await this.reportOSSUpload({id:f})).success)return{success:!0,filePath:e,fileID:l};throw new fw({code:"UPLOAD_FAILED",message:"文件上传失败"})}getTempFileURL({fileList:e}={}){return new Promise(((t,n)=>{Array.isArray(e)&&0!==e.length||n(new fw({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"})),t({fileList:e.map((e=>({fileID:e,tempFileURL:e})))})}))}async getFileInfo({fileList:e}={}){if(!Array.isArray(e)||0===e.length)throw new fw({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const t={method:"serverless.file.resource.info",params:JSON.stringify({id:e.map((e=>e.split("?")[0])).join(",")})};return{fileList:(await this.request(this.setupRequest(t))).result}}},Pw={init(e){const t=new Ew(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}};const Dw="undefined"!=typeof location&&"http:"===location.protocol?"http:":"https:";var Iw,Mw;(Mw=Iw||(Iw={})).local="local",Mw.none="none",Mw.session="session";var Ow=function(){},Aw=Tb((function(e,t){var n;e.exports=(n=Cb,function(e){var t=n,i=t.lib,o=i.WordArray,s=i.Hasher,a=t.algo,r=[],l=[];!function(){function t(t){for(var n=e.sqrt(t),i=2;i<=n;i++)if(!(t%i))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var i=2,o=0;o<64;)t(i)&&(o<8&&(r[o]=n(e.pow(i,.5))),l[o]=n(e.pow(i,1/3)),o++),i++}();var c=[],u=a.SHA256=s.extend({_doReset:function(){this._hash=new o.init(r.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,i=n[0],o=n[1],s=n[2],a=n[3],r=n[4],u=n[5],d=n[6],h=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var f=c[p-15],m=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,g=c[p-2],y=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[p]=m+c[p-7]+y+c[p-16]}var v=i&o^i&s^o&s,_=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),b=h+((r<<26|r>>>6)^(r<<21|r>>>11)^(r<<7|r>>>25))+(r&u^~r&d)+l[p]+c[p];h=d,d=u,u=r,r=a+b|0,a=s,s=o,o=i,i=b+(_+v)|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+r|0,n[5]=n[5]+u|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var t=this._data,n=t.words,i=8*this._nDataBytes,o=8*t.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=e.floor(i/4294967296),n[15+(o+64>>>9<<4)]=i,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=s._createHelper(u),t.HmacSHA256=s._createHmacHelper(u)}(Math),n.SHA256)})),Lw=Aw,Rw=Tb((function(e,t){e.exports=Cb.HmacSHA256}));const $w=()=>{let e;if(!Promise){e=()=>{},e.promise={};const t=()=>{throw new fw({message:'Your Node runtime does support ES6 Promises. Set "global.Promise" to your preferred implementation of promises.'})};return Object.defineProperty(e.promise,"then",{get:t}),Object.defineProperty(e.promise,"catch",{get:t}),e}const t=new Promise(((t,n)=>{e=(e,i)=>e?n(e):t(i)}));return e.promise=t,e};function Nw(e){return void 0===e}function Bw(e){return"[object Null]"===Object.prototype.toString.call(e)}var Fw;!function(e){e.WEB="web",e.WX_MP="wx_mp"}(Fw||(Fw={}));const jw={adapter:null,runtime:void 0},Vw=["anonymousUuidKey"];class Ww extends Ow{constructor(){super(),jw.adapter.root.tcbObject||(jw.adapter.root.tcbObject={})}setItem(e,t){jw.adapter.root.tcbObject[e]=t}getItem(e){return jw.adapter.root.tcbObject[e]}removeItem(e){delete jw.adapter.root.tcbObject[e]}clear(){delete jw.adapter.root.tcbObject}}function Uw(e,t){switch(e){case"local":return t.localStorage||new Ww;case"none":return new Ww;default:return t.sessionStorage||new Ww}}class Hw{constructor(e){if(!this._storage){this._persistence=jw.adapter.primaryStorage||e.persistence,this._storage=Uw(this._persistence,jw.adapter);const t=`access_token_${e.env}`,n=`access_token_expire_${e.env}`,i=`refresh_token_${e.env}`,o=`anonymous_uuid_${e.env}`,s=`login_type_${e.env}`,a=`user_info_${e.env}`;this.keys={accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i,anonymousUuidKey:o,loginTypeKey:s,userInfoKey:a}}}updatePersistence(e){if(e===this._persistence)return;const t="local"===this._persistence;this._persistence=e;const n=Uw(e,jw.adapter);for(const i in this.keys){const e=this.keys[i];if(t&&Vw.includes(i))continue;const o=this._storage.getItem(e);Nw(o)||Bw(o)||(n.setItem(e,o),this._storage.removeItem(e))}this._storage=n}setStore(e,t,n){if(!this._storage)return;const i={version:n||"localCachev1",content:t},o=JSON.stringify(i);try{this._storage.setItem(e,o)}catch(s){throw s}}getStore(e,t){try{if(!this._storage)return}catch(i){return""}t=t||"localCachev1";const n=this._storage.getItem(e);return n&&n.indexOf(t)>=0?JSON.parse(n).content:""}removeStore(e){this._storage.removeItem(e)}}const qw={},zw={};function Yw(e){return qw[e]}class Xw{constructor(e,t){this.data=t||null,this.name=e}}class Kw extends Xw{constructor(e,t){super("error",{error:e,data:t}),this.error=e}}const Gw=new class{constructor(){this._listeners={}}on(e,t){return n=e,i=t,(o=this._listeners)[n]=o[n]||[],o[n].push(i),this;var n,i,o}off(e,t){return function(e,t,n){if(n&&n[e]){const i=n[e].indexOf(t);-1!==i&&n[e].splice(i,1)}}(e,t,this._listeners),this}fire(e,t){if(e instanceof Kw)return console.error(e.error),this;const n="string"==typeof e?new Xw(e,t||{}):e,i=n.name;if(this._listens(i)){n.target=this;const e=this._listeners[i]?[...this._listeners[i]]:[];for(const t of e)t.call(this,n)}return this}_listens(e){return this._listeners[e]&&this._listeners[e].length>0}};function Jw(e,t){Gw.on(e,t)}function Qw(e,t={}){Gw.fire(e,t)}function Zw(e,t){Gw.off(e,t)}const ex="loginStateChanged",tx="loginStateExpire",nx="loginTypeChanged",ix="anonymousConverted",ox="refreshAccessToken";var sx;!function(e){e.ANONYMOUS="ANONYMOUS",e.WECHAT="WECHAT",e.WECHAT_PUBLIC="WECHAT-PUBLIC",e.WECHAT_OPEN="WECHAT-OPEN",e.CUSTOM="CUSTOM",e.EMAIL="EMAIL",e.USERNAME="USERNAME",e.NULL="NULL"}(sx||(sx={}));const ax=["auth.getJwt","auth.logout","auth.signInWithTicket","auth.signInAnonymously","auth.signIn","auth.fetchAccessTokenWithRefreshToken","auth.signUpWithEmailAndPassword","auth.activateEndUserMail","auth.sendPasswordResetEmail","auth.resetPasswordWithToken","auth.isUsernameRegistered"],rx={"X-SDK-Version":"1.3.5"};function lx(e,t,n){const i=e[t];e[t]=function(t){const o={},s={};n.forEach((n=>{const{data:i,headers:a}=n.call(e,t);Object.assign(o,i),Object.assign(s,a)}));const a=t.data;return a&&(()=>{var e;if(e=a,"[object FormData]"!==Object.prototype.toString.call(e))t.data={...a,...o};else for(const t in o)a.append(t,o[t])})(),t.headers={...t.headers||{},...s},i.call(e,t)}}function cx(){const e=Math.random().toString(16).slice(2);return{data:{seqId:e},headers:{...rx,"x-seqid":e}}}class ux{constructor(e={}){var t;this.config=e,this._reqClass=new jw.adapter.reqClass({timeout:this.config.timeout,timeoutMsg:`请求在${this.config.timeout/1e3}s内未完成,已中断`,restrictedMethods:["post"]}),this._cache=Yw(this.config.env),this._localCache=(t=this.config.env,zw[t]),lx(this._reqClass,"post",[cx]),lx(this._reqClass,"upload",[cx]),lx(this._reqClass,"download",[cx])}async post(e){return await this._reqClass.post(e)}async upload(e){return await this._reqClass.upload(e)}async download(e){return await this._reqClass.download(e)}async refreshAccessToken(){let e,t;this._refreshAccessTokenPromise||(this._refreshAccessTokenPromise=this._refreshAccessToken());try{e=await this._refreshAccessTokenPromise}catch(n){t=n}if(this._refreshAccessTokenPromise=null,this._shouldRefreshAccessTokenHook=null,t)throw t;return e}async _refreshAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n,loginTypeKey:i,anonymousUuidKey:o}=this._cache.keys;this._cache.removeStore(e),this._cache.removeStore(t);let s=this._cache.getStore(n);if(!s)throw new fw({message:"未登录CloudBase"});const a={refresh_token:s},r=await this.request("auth.fetchAccessTokenWithRefreshToken",a);if(r.data.code){const{code:e}=r.data;if("SIGN_PARAM_INVALID"===e||"REFRESH_TOKEN_EXPIRED"===e||"INVALID_REFRESH_TOKEN"===e){if(this._cache.getStore(i)===sx.ANONYMOUS&&"INVALID_REFRESH_TOKEN"===e){const e=this._cache.getStore(o),t=this._cache.getStore(n),i=await this.send("auth.signInAnonymously",{anonymous_uuid:e,refresh_token:t});return this.setRefreshToken(i.refresh_token),this._refreshAccessToken()}Qw(tx),this._cache.removeStore(n)}throw new fw({code:r.data.code,message:`刷新access token失败:${r.data.code}`})}if(r.data.access_token)return Qw(ox),this._cache.setStore(e,r.data.access_token),this._cache.setStore(t,r.data.access_token_expire+Date.now()),{accessToken:r.data.access_token,accessTokenExpire:r.data.access_token_expire};r.data.refresh_token&&(this._cache.removeStore(n),this._cache.setStore(n,r.data.refresh_token),this._refreshAccessToken())}async getAccessToken(){const{accessTokenKey:e,accessTokenExpireKey:t,refreshTokenKey:n}=this._cache.keys;if(!this._cache.getStore(n))throw new fw({message:"refresh token不存在,登录状态异常"});let i=this._cache.getStore(e),o=this._cache.getStore(t),s=!0;return this._shouldRefreshAccessTokenHook&&!(await this._shouldRefreshAccessTokenHook(i,o))&&(s=!1),(!i||!o||o<Date.now())&&s?this.refreshAccessToken():{accessToken:i,accessTokenExpire:o}}async request(e,t,n){const i=`x-tcb-trace_${this.config.env}`;let o="application/x-www-form-urlencoded";const s={action:e,env:this.config.env,dataVersion:"2019-08-16",...t};if(-1===ax.indexOf(e)){const{refreshTokenKey:e}=this._cache.keys;this._cache.getStore(e)&&(s.access_token=(await this.getAccessToken()).accessToken)}let a;if("storage.uploadFile"===e){a=new FormData;for(let e in a)a.hasOwnProperty(e)&&void 0!==a[e]&&a.append(e,s[e]);o="multipart/form-data"}else{o="application/json",a={};for(let e in s)void 0!==s[e]&&(a[e]=s[e])}let r={headers:{"content-type":o}};n&&n.onUploadProgress&&(r.onUploadProgress=n.onUploadProgress);const l=this._localCache.getStore(i);l&&(r.headers["X-TCB-Trace"]=l);const{parse:c,inQuery:u,search:d}=t;let h={env:this.config.env};c&&(h.parse=!0),u&&(h={...u,...h});let p=function(e,t,n={}){const i=/\?/.test(t);let o="";for(let s in n)""===o?!i&&(t+="?"):o+="&",o+=`${s}=${encodeURIComponent(n[s])}`;return/^http(s)?\:\/\//.test(t+=o)?t:`${e}${t}`}(Dw,"//tcb-api.tencentcloudapi.com/web",h);d&&(p+=d);const f=await this.post({url:p,data:a,...r}),m=f.header&&f.header["x-tcb-trace"];if(m&&this._localCache.setStore(i,m),200!==Number(f.status)&&200!==Number(f.statusCode)||!f.data)throw new fw({code:"NETWORK_ERROR",message:"network request error"});return f}async send(e,t={}){const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if("ACCESS_TOKEN_EXPIRED"===n.data.code&&-1===ax.indexOf(e)){await this.refreshAccessToken();const n=await this.request(e,t,{onUploadProgress:t.onUploadProgress});if(n.data.code)throw new fw({code:n.data.code,message:n.data.message});return n.data}if(n.data.code)throw new fw({code:n.data.code,message:n.data.message});return n.data}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(i,e)}}const dx={};function hx(e){return dx[e]}class px{constructor(e){this.config=e,this._cache=Yw(e.env),this._request=hx(e.env)}setRefreshToken(e){const{accessTokenKey:t,accessTokenExpireKey:n,refreshTokenKey:i}=this._cache.keys;this._cache.removeStore(t),this._cache.removeStore(n),this._cache.setStore(i,e)}setAccessToken(e,t){const{accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys;this._cache.setStore(n,e),this._cache.setStore(i,t)}async refreshUserInfo(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e)}}class fx{constructor(e){if(!e)throw new fw({code:"PARAM_ERROR",message:"envId is not defined"});this._envId=e,this._cache=Yw(this._envId),this._request=hx(this._envId),this.setUserInfo()}linkWithTicket(e){if("string"!=typeof e)throw new fw({code:"PARAM_ERROR",message:"ticket must be string"});return this._request.send("auth.linkWithTicket",{ticket:e})}linkWithRedirect(e){e.signInWithRedirect()}updatePassword(e,t){return this._request.send("auth.updatePassword",{oldPassword:t,newPassword:e})}updateEmail(e){return this._request.send("auth.updateEmail",{newEmail:e})}updateUsername(e){if("string"!=typeof e)throw new fw({code:"PARAM_ERROR",message:"username must be a string"});return this._request.send("auth.updateUsername",{username:e})}async getLinkedUidList(){const{data:e}=await this._request.send("auth.getLinkedUidList",{});let t=!1;const{users:n}=e;return n.forEach((e=>{e.wxOpenId&&e.wxPublicId&&(t=!0)})),{users:n,hasPrimaryUid:t}}setPrimaryUid(e){return this._request.send("auth.setPrimaryUid",{uid:e})}unlink(e){return this._request.send("auth.unlink",{platform:e})}async update(e){const{nickName:t,gender:n,avatarUrl:i,province:o,country:s,city:a}=e,{data:r}=await this._request.send("auth.updateUserInfo",{nickName:t,gender:n,avatarUrl:i,province:o,country:s,city:a});this.setLocalUserInfo(r)}async refresh(){const{data:e}=await this._request.send("auth.getUserInfo",{});return this.setLocalUserInfo(e),e}setUserInfo(){const{userInfoKey:e}=this._cache.keys,t=this._cache.getStore(e);["uid","loginType","openid","wxOpenId","wxPublicId","unionId","qqMiniOpenId","email","hasPassword","customUserId","nickName","gender","avatarUrl"].forEach((e=>{this[e]=t[e]})),this.location={country:t.country,province:t.province,city:t.city}}setLocalUserInfo(e){const{userInfoKey:t}=this._cache.keys;this._cache.setStore(t,e),this.setUserInfo()}}class mx{constructor(e){if(!e)throw new fw({code:"PARAM_ERROR",message:"envId is not defined"});this._cache=Yw(e);const{refreshTokenKey:t,accessTokenKey:n,accessTokenExpireKey:i}=this._cache.keys,o=this._cache.getStore(t),s=this._cache.getStore(n),a=this._cache.getStore(i);this.credential={refreshToken:o,accessToken:s,accessTokenExpire:a},this.user=new fx(e)}get isAnonymousAuth(){return this.loginType===sx.ANONYMOUS}get isCustomAuth(){return this.loginType===sx.CUSTOM}get isWeixinAuth(){return this.loginType===sx.WECHAT||this.loginType===sx.WECHAT_OPEN||this.loginType===sx.WECHAT_PUBLIC}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}}class gx extends px{async signIn(){this._cache.updatePersistence("local");const{anonymousUuidKey:e,refreshTokenKey:t}=this._cache.keys,n=this._cache.getStore(e)||void 0,i=this._cache.getStore(t)||void 0,o=await this._request.send("auth.signInAnonymously",{anonymous_uuid:n,refresh_token:i});if(o.uuid&&o.refresh_token){this._setAnonymousUUID(o.uuid),this.setRefreshToken(o.refresh_token),await this._request.refreshAccessToken(),Qw(ex),Qw(nx,{env:this.config.env,loginType:sx.ANONYMOUS,persistence:"local"});const e=new mx(this.config.env);return await e.user.refresh(),e}throw new fw({message:"匿名登录失败"})}async linkAndRetrieveDataWithTicket(e){const{anonymousUuidKey:t,refreshTokenKey:n}=this._cache.keys,i=this._cache.getStore(t),o=this._cache.getStore(n),s=await this._request.send("auth.linkAndRetrieveDataWithTicket",{anonymous_uuid:i,refresh_token:o,ticket:e});if(s.refresh_token)return this._clearAnonymousUUID(),this.setRefreshToken(s.refresh_token),await this._request.refreshAccessToken(),Qw(ix,{env:this.config.env}),Qw(nx,{loginType:sx.CUSTOM,persistence:"local"}),{credential:{refreshToken:s.refresh_token}};throw new fw({message:"匿名转化失败"})}_setAnonymousUUID(e){const{anonymousUuidKey:t,loginTypeKey:n}=this._cache.keys;this._cache.removeStore(t),this._cache.setStore(t,e),this._cache.setStore(n,sx.ANONYMOUS)}_clearAnonymousUUID(){this._cache.removeStore(this._cache.keys.anonymousUuidKey)}}class yx extends px{async signIn(e){if("string"!=typeof e)throw new fw({code:"PARAM_ERROR",message:"ticket must be a string"});const{refreshTokenKey:t}=this._cache.keys,n=await this._request.send("auth.signInWithTicket",{ticket:e,refresh_token:this._cache.getStore(t)||""});if(n.refresh_token)return this.setRefreshToken(n.refresh_token),await this._request.refreshAccessToken(),Qw(ex),Qw(nx,{env:this.config.env,loginType:sx.CUSTOM,persistence:this.config.persistence}),await this.refreshUserInfo(),new mx(this.config.env);throw new fw({message:"自定义登录失败"})}}class vx extends px{async signIn(e,t){if("string"!=typeof e)throw new fw({code:"PARAM_ERROR",message:"email must be a string"});const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:"EMAIL",email:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token:s,access_token_expire:a}=i;if(o)return this.setRefreshToken(o),s&&a?this.setAccessToken(s,a):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Qw(ex),Qw(nx,{env:this.config.env,loginType:sx.EMAIL,persistence:this.config.persistence}),new mx(this.config.env);throw i.code?new fw({code:i.code,message:`邮箱登录失败: ${i.message}`}):new fw({message:"邮箱登录失败"})}async activate(e){return this._request.send("auth.activateEndUserMail",{token:e})}async resetPasswordWithToken(e,t){return this._request.send("auth.resetPasswordWithToken",{token:e,newPassword:t})}}class _x extends px{async signIn(e,t){if("string"!=typeof e)throw new fw({code:"PARAM_ERROR",message:"username must be a string"});"string"!=typeof t&&(t="",console.warn("password is empty"));const{refreshTokenKey:n}=this._cache.keys,i=await this._request.send("auth.signIn",{loginType:sx.USERNAME,username:e,password:t,refresh_token:this._cache.getStore(n)||""}),{refresh_token:o,access_token_expire:s,access_token:a}=i;if(o)return this.setRefreshToken(o),a&&s?this.setAccessToken(a,s):await this._request.refreshAccessToken(),await this.refreshUserInfo(),Qw(ex),Qw(nx,{env:this.config.env,loginType:sx.USERNAME,persistence:this.config.persistence}),new mx(this.config.env);throw i.code?new fw({code:i.code,message:`用户名密码登录失败: ${i.message}`}):new fw({message:"用户名密码登录失败"})}}class bx{constructor(e){this.config=e,this._cache=Yw(e.env),this._request=hx(e.env),this._onAnonymousConverted=this._onAnonymousConverted.bind(this),this._onLoginTypeChanged=this._onLoginTypeChanged.bind(this),Jw(nx,this._onLoginTypeChanged)}get currentUser(){const e=this.hasLoginState();return e&&e.user||null}get loginType(){return this._cache.getStore(this._cache.keys.loginTypeKey)}anonymousAuthProvider(){return new gx(this.config)}customAuthProvider(){return new yx(this.config)}emailAuthProvider(){return new vx(this.config)}usernameAuthProvider(){return new _x(this.config)}async signInAnonymously(){return new gx(this.config).signIn()}async signInWithEmailAndPassword(e,t){return new vx(this.config).signIn(e,t)}signInWithUsernameAndPassword(e,t){return new _x(this.config).signIn(e,t)}async linkAndRetrieveDataWithTicket(e){return this._anonymousAuthProvider||(this._anonymousAuthProvider=new gx(this.config)),Jw(ix,this._onAnonymousConverted),await this._anonymousAuthProvider.linkAndRetrieveDataWithTicket(e)}async signOut(){if(this.loginType===sx.ANONYMOUS)throw new fw({message:"匿名用户不支持登出操作"});const{refreshTokenKey:e,accessTokenKey:t,accessTokenExpireKey:n}=this._cache.keys,i=this._cache.getStore(e);if(!i)return;const o=await this._request.send("auth.logout",{refresh_token:i});return this._cache.removeStore(e),this._cache.removeStore(t),this._cache.removeStore(n),Qw(ex),Qw(nx,{env:this.config.env,loginType:sx.NULL,persistence:this.config.persistence}),o}async signUpWithEmailAndPassword(e,t){return this._request.send("auth.signUpWithEmailAndPassword",{email:e,password:t})}async sendPasswordResetEmail(e){return this._request.send("auth.sendPasswordResetEmail",{email:e})}onLoginStateChanged(e){Jw(ex,(()=>{const t=this.hasLoginState();e.call(this,t)}));const t=this.hasLoginState();e.call(this,t)}onLoginStateExpired(e){Jw(tx,e.bind(this))}onAccessTokenRefreshed(e){Jw(ox,e.bind(this))}onAnonymousConverted(e){Jw(ix,e.bind(this))}onLoginTypeChanged(e){Jw(nx,(()=>{const t=this.hasLoginState();e.call(this,t)}))}async getAccessToken(){return{accessToken:(await this._request.getAccessToken()).accessToken,env:this.config.env}}hasLoginState(){const{refreshTokenKey:e}=this._cache.keys;return this._cache.getStore(e)?new mx(this.config.env):null}async isUsernameRegistered(e){if("string"!=typeof e)throw new fw({code:"PARAM_ERROR",message:"username must be a string"});const{data:t}=await this._request.send("auth.isUsernameRegistered",{username:e});return t&&t.isRegistered}getLoginState(){return Promise.resolve(this.hasLoginState())}async signInWithTicket(e){return new yx(this.config).signIn(e)}shouldRefreshAccessToken(e){this._request._shouldRefreshAccessTokenHook=e.bind(this)}getUserInfo(){return this._request.send("auth.getUserInfo",{}).then((e=>e.code?e:{...e.data,requestId:e.seqId}))}getAuthHeader(){const{refreshTokenKey:e,accessTokenKey:t}=this._cache.keys,n=this._cache.getStore(e);return{"x-cloudbase-credentials":this._cache.getStore(t)+"/@@/"+n}}_onAnonymousConverted(e){const{env:t}=e.data;t===this.config.env&&this._cache.updatePersistence(this.config.persistence)}_onLoginTypeChanged(e){const{loginType:t,persistence:n,env:i}=e.data;i===this.config.env&&(this._cache.updatePersistence(n),this._cache.setStore(this._cache.keys.loginTypeKey,t))}}const xx=function(e,t){t=t||$w();const n=hx(this.config.env),{cloudPath:i,filePath:o,onUploadProgress:s,fileType:a="image"}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{const{data:{url:r,authorization:l,token:c,fileId:u,cosFileId:d},requestId:h}=e,p={key:i,signature:l,"x-cos-meta-fileid":d,success_action_status:"201","x-cos-security-token":c};n.upload({url:r,data:p,file:o,name:i,fileType:a,onUploadProgress:s}).then((e=>{201===e.statusCode?t(null,{fileID:u,requestId:h}):t(new fw({code:"STORAGE_REQUEST_FAIL",message:`STORAGE_REQUEST_FAIL: ${e.data}`}))})).catch((e=>{t(e)}))})).catch((e=>{t(e)})),t.promise},kx=function(e,t){t=t||$w();const n=hx(this.config.env),{cloudPath:i}=e;return n.send("storage.getUploadMetadata",{path:i}).then((e=>{t(null,e)})).catch((e=>{t(e)})),t.promise},Tx=function({fileList:e},t){if(t=t||$w(),!e||!Array.isArray(e))return{code:"INVALID_PARAM",message:"fileList必须是非空的数组"};for(let i of e)if(!i||"string"!=typeof i)return{code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"};const n={fileid_list:e};return hx(this.config.env).send("storage.batchDeleteFile",n).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.delete_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Sx=function({fileList:e},t){t=t||$w(),e&&Array.isArray(e)||t(null,{code:"INVALID_PARAM",message:"fileList必须是非空的数组"});let n=[];for(let o of e)"object"==typeof o?(o.hasOwnProperty("fileID")&&o.hasOwnProperty("maxAge")||t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是包含fileID和maxAge的对象"}),n.push({fileid:o.fileID,max_age:o.maxAge})):"string"==typeof o?n.push({fileid:o}):t(null,{code:"INVALID_PARAM",message:"fileList的元素必须是字符串"});const i={file_list:n};return hx(this.config.env).send("storage.batchGetDownloadUrl",i).then((e=>{e.code?t(null,e):t(null,{fileList:e.data.download_list,requestId:e.requestId})})).catch((e=>{t(e)})),t.promise},Cx=async function({fileID:e},t){const n=(await Sx.call(this,{fileList:[{fileID:e,maxAge:600}]})).fileList[0];if("SUCCESS"!==n.code)return t?t(n):new Promise((e=>{e(n)}));const i=hx(this.config.env);let o=n.download_url;if(o=encodeURI(o),!t)return i.download({url:o});t(await i.download({url:o}))},Ex=function({name:e,data:t,query:n,parse:i,search:o},s){const a=s||$w();let r;try{r=t?JSON.stringify(t):""}catch(c){return Promise.reject(c)}if(!e)return Promise.reject(new fw({code:"PARAM_ERROR",message:"函数名不能为空"}));const l={inQuery:n,parse:i,search:o,function_name:e,request_data:r};return hx(this.config.env).send("functions.invokeFunction",l).then((e=>{if(e.code)a(null,e);else{let n=e.data.response_data;if(i)a(null,{result:n,requestId:e.requestId});else try{n=JSON.parse(e.data.response_data),a(null,{result:n,requestId:e.requestId})}catch(t){a(new fw({message:"response data must be json"}))}}return a.promise})).catch((e=>{a(e)})),a.promise},Px={timeout:15e3,persistence:"session"},Dx={};class Ix{constructor(e){this.config=e||this.config,this.authObj=void 0}init(e){switch(jw.adapter||(this.requestClient=new jw.adapter.reqClass({timeout:e.timeout||5e3,timeoutMsg:`请求在${(e.timeout||5e3)/1e3}s内未完成,已中断`})),this.config={...Px,...e},!0){case this.config.timeout>6e5:console.warn("timeout大于可配置上限[10分钟],已重置为上限数值"),this.config.timeout=6e5;break;case this.config.timeout<100:console.warn("timeout小于可配置下限[100ms],已重置为下限数值"),this.config.timeout=100}return new Ix(this.config)}auth({persistence:e}={}){if(this.authObj)return this.authObj;const t=e||jw.adapter.primaryStorage||Px.persistence;var n;return t!==this.config.persistence&&(this.config.persistence=t),function(e){const{env:t}=e;qw[t]=new Hw(e),zw[t]=new Hw({...e,persistence:"local"})}(this.config),n=this.config,dx[n.env]=new ux(n),this.authObj=new bx(this.config),this.authObj}on(e,t){return Jw.apply(this,[e,t])}off(e,t){return Zw.apply(this,[e,t])}callFunction(e,t){return Ex.apply(this,[e,t])}deleteFile(e,t){return Tx.apply(this,[e,t])}getTempFileURL(e,t){return Sx.apply(this,[e,t])}downloadFile(e,t){return Cx.apply(this,[e,t])}uploadFile(e,t){return xx.apply(this,[e,t])}getUploadMetadata(e,t){return kx.apply(this,[e,t])}registerExtension(e){Dx[e.name]=e}async invokeExtension(e,t){const n=Dx[e];if(!n)throw new fw({message:`扩展${e} 必须先注册`});return await n.invoke(t,this)}useAdapters(e){const{adapter:t,runtime:n}=function(e){const t=(n=e,"[object Array]"===Object.prototype.toString.call(n)?e:[e]);var n;for(const i of t){const{isMatch:e,genAdapter:t,runtime:n}=i;if(e())return{adapter:t(),runtime:n}}}(e)||{};t&&(jw.adapter=t),n&&(jw.runtime=n)}}var Mx=new Ix;function Ox(e,t,n){void 0===n&&(n={});var i=/\?/.test(t),o="";for(var s in n)""===o?!i&&(t+="?"):o+="&",o+=s+"="+encodeURIComponent(n[s]);return/^http(s)?:\/\//.test(t+=o)?t:""+e+t}class Ax{post(e){const{url:t,data:n,headers:i}=e;return new Promise(((e,o)=>{mw.request({url:Ox("https:",t),data:n,method:"POST",header:i,success(t){e(t)},fail(e){o(e)}})}))}upload(e){return new Promise(((t,n)=>{const{url:i,file:o,data:s,headers:a,fileType:r}=e,l=mw.uploadFile({url:Ox("https:",i),name:"file",formData:Object.assign({},s),filePath:o,fileType:r,header:a,success(e){const n={statusCode:e.statusCode,data:e.data||{}};200===e.statusCode&&s.success_action_status&&(n.statusCode=parseInt(s.success_action_status,10)),t(n)},fail(e){n(new Error(e.errMsg||"uploadFile:fail"))}});"function"==typeof e.onUploadProgress&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((t=>{e.onUploadProgress({loaded:t.totalBytesSent,total:t.totalBytesExpectedToSend})}))}))}}const Lx={setItem(e,t){mw.setStorageSync(e,t)},getItem:e=>mw.getStorageSync(e),removeItem(e){mw.removeStorageSync(e)},clear(){mw.clearStorageSync()}};var Rx={genAdapter:function(){return{root:{},reqClass:Ax,localStorage:Lx,primaryStorage:"local"}},isMatch:function(){return!0},runtime:"uni_app"};Mx.useAdapters(Rx);const $x=Mx,Nx=$x.init;$x.init=function(e){e.env=e.spaceId;const t=Nx.call(this,e);t.config.provider="tencent",t.config.spaceId=e.spaceId;const n=t.auth;return t.auth=function(e){const t=n.call(this,e);return["linkAndRetrieveDataWithTicket","signInAnonymously","signOut","getAccessToken","getLoginState","signInWithTicket","getUserInfo"].forEach((e=>{var n;t[e]=(n=t[e],function(e){e=e||{};const{success:t,fail:i,complete:o}=pw(e);if(!(t||i||o))return n.call(this,e);n.call(this,e).then((e=>{t&&t(e),o&&o(e)}),(e=>{i&&i(e),o&&o(e)}))}).bind(t)})),t},t.customAuth=t.auth,t};var Bx=$x,Fx=class extends Ew{getAccessToken(){return new Promise(((e,t)=>{const n="Anonymous_Access_token";this.setAccessToken(n),e(n)}))}setupRequest(e,t){const n=Object.assign({},e,{spaceId:this.config.spaceId,timestamp:Date.now()}),i={"Content-Type":"application/json"};"auth"!==t&&(n.token=this.accessToken,i["x-basement-token"]=this.accessToken),i["x-serverless-sign"]=Tw(n,this.config.clientSecret);const o=kw();i["x-client-info"]=encodeURIComponent(JSON.stringify(o));const{token:s}=yw();return i["x-client-token"]=s,{url:this.config.requestUrl,method:"POST",data:n,dataType:"json",header:JSON.parse(JSON.stringify(i))}}uploadFileToOSS({url:e,formData:t,name:n,filePath:i,fileType:o,onUploadProgress:s}){return new Promise(((a,r)=>{const l=this.adapter.uploadFile({url:e,formData:t,name:n,filePath:i,fileType:o,success(e){e&&e.statusCode<400?a(e):r(new fw({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){r(new fw({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof s&&l&&"function"==typeof l.onProgressUpdate&&l.onProgressUpdate((e=>{s({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}uploadFile({filePath:e,cloudPath:t,fileType:n="image",onUploadProgress:i}){if(!t)throw new fw({code:"CLOUDPATH_REQUIRED",message:"cloudPath不可为空"});let o;return this.getOSSUploadOptionsFromPath({cloudPath:t}).then((t=>{const{url:s,formData:a,name:r}=t.result;o=t.result.fileUrl;const l={url:s,formData:a,name:r,filePath:e,fileType:n};return this.uploadFileToOSS(Object.assign({},l,{onUploadProgress:i}))})).then((()=>this.reportOSSUpload({cloudPath:t}))).then((t=>new Promise(((n,i)=>{t.success?n({success:!0,filePath:e,fileID:o}):i(new fw({code:"UPLOAD_FAILED",message:"文件上传失败"}))}))))}deleteFile({fileList:e}){const t={method:"serverless.file.resource.delete",params:JSON.stringify({fileList:e})};return this.request(this.setupRequest(t)).then((e=>{if(e.success)return e.result;throw new fw({code:"DELETE_FILE_FAILED",message:"删除文件失败"})}))}getTempFileURL({fileList:e,maxAge:t}={}){if(!Array.isArray(e)||0===e.length)throw new fw({code:"INVALID_PARAM",message:"fileList的元素必须是非空的字符串"});const n={method:"serverless.file.resource.getTempFileURL",params:JSON.stringify({fileList:e,maxAge:t})};return this.request(this.setupRequest(n)).then((e=>{if(e.success)return{fileList:e.result.fileList.map((e=>({fileID:e.fileID,tempFileURL:e.tempFileURL})))};throw new fw({code:"GET_TEMP_FILE_URL_FAILED",message:"获取临时文件链接失败"})}))}},jx={init(e){const t=new Fx(e),n={signInAnonymously:function(){return t.authorize()},getLoginState:function(){return Promise.resolve(!1)}};return t.auth=function(){return n},t.customAuth=t.auth,t}},Vx=Tb((function(e,t){e.exports=Cb.enc.Hex}));function Wx(e="",t={}){const{data:n,functionName:i,method:o,headers:s,signHeaderKeys:a=[],config:r}=t,l=Date.now(),c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),u=Object.assign({},s,{"x-from-app-id":r.spaceAppId,"x-from-env-id":r.spaceId,"x-to-env-id":r.spaceId,"x-from-instance-id":l,"x-from-function-name":i,"x-client-timestamp":l,"x-alipay-source":"client","x-request-id":c,"x-alipay-callid":c,"x-trace-id":c}),d=["x-from-app-id","x-from-env-id","x-to-env-id","x-from-instance-id","x-from-function-name","x-client-timestamp"].concat(a),[h="",p=""]=e.split("?")||[],f=function(e){const t=e.signedHeaders.join(";"),n=e.signedHeaders.map((t=>`${t.toLowerCase()}:${e.headers[t]}\n`)).join(""),i=Lw(e.body).toString(Vx),o=`${e.method.toUpperCase()}\n${e.path}\n${e.query}\n${n}\n${t}\n${i}\n`,s=Lw(o).toString(Vx),a=`HMAC-SHA256\n${e.timestamp}\n${s}\n`,r=Rw(a,e.secretKey).toString(Vx);return`HMAC-SHA256 Credential=${e.secretId}, SignedHeaders=${t}, Signature=${r}`}({path:h,query:p,method:o,headers:u,timestamp:l,body:JSON.stringify(n),secretId:r.accessKey,secretKey:r.secretKey,signedHeaders:d.sort()});return{url:`${r.endpoint}${e}`,headers:Object.assign({},u,{Authorization:f})}}function Ux({url:e,data:t,method:n="POST",headers:i={}}){return new Promise(((o,s)=>{mw.request({url:e,method:n,data:t,header:i,dataType:"json",complete:(e={})=>{const t=i["x-trace-id"]||"";if(!e.statusCode||e.statusCode>=400){const{message:n,errMsg:i,trace_id:o}=e.data||{};return s(new fw({code:"SYS_ERR",message:n||i||"request:fail",requestId:o||t}))}o({status:e.statusCode,data:e.data,headers:e.header,requestId:t})}})}))}function Hx(e,t){const{path:n,data:i,method:o="GET"}=e,{url:s,headers:a}=Wx(n,{functionName:"",data:i,method:o,headers:{"x-alipay-cloud-mode":"oss","x-data-api-type":"oss","x-expire-timestamp":Date.now()+6e4},signHeaderKeys:["x-data-api-type","x-expire-timestamp"],config:t});return Ux({url:s,data:i,method:o,headers:a}).then((e=>{const t=e.data||{};if(!t.success)throw new fw({code:e.errCode,message:e.errMsg,requestId:e.requestId});return t.data||{}})).catch((e=>{throw new fw({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}function qx(e=""){const t=e.trim().replace(/^cloud:\/\//,""),n=t.indexOf("/");if(n<=0)throw new fw({code:"INVALID_PARAM",message:"fileID不合法"});const i=t.substring(0,n),o=t.substring(n+1);return i!==this.config.spaceId&&console.warn("file ".concat(e," does not belong to env ").concat(this.config.spaceId)),o}function zx(e=""){return"cloud://".concat(this.config.spaceId,"/").concat(e.replace(/^\/+/,""))}var Yx={init:e=>{e.provider="alipay";const t=new class{constructor(e){if(["spaceId","spaceAppId","accessKey","secretKey"].forEach((t=>{if(!Object.prototype.hasOwnProperty.call(e,t))throw new Error(`${t} required`)})),e.endpoint){if("string"!=typeof e.endpoint)throw new Error("endpoint must be string");if(!/^https:\/\//.test(e.endpoint))throw new Error("endpoint must start with https://");e.endpoint=e.endpoint.replace(/\/$/,"")}this.config=Object.assign({},e,{endpoint:e.endpoint||`https://${e.spaceId}.api-hz.cloudbasefunction.cn`})}callFunction(e){return function(e,t){const{name:n,data:i}=e,o="POST",{url:s,headers:a}=Wx("/functions/invokeFunction",{functionName:n,data:i,method:o,headers:{"x-to-function-name":n},signHeaderKeys:["x-to-function-name"],config:t});return Ux({url:s,data:i,method:o,headers:a}).then((e=>({errCode:0,success:!0,requestId:e.requestId,result:e.data}))).catch((e=>{throw new fw({code:e.errCode,message:e.errMsg,requestId:e.requestId})}))}(e,this.config)}uploadFileToOSS({url:e,filePath:t,fileType:n,formData:i,onUploadProgress:o}){return new Promise(((s,a)=>{const r=mw.uploadFile({url:e,filePath:t,fileType:n,formData:i,name:"file",success(e){e&&e.statusCode<400?s(e):a(new fw({code:"UPLOAD_FAILED",message:"文件上传失败"}))},fail(e){a(new fw({code:e.code||"UPLOAD_FAILED",message:e.message||e.errMsg||"文件上传失败"}))}});"function"==typeof o&&r&&"function"==typeof r.onProgressUpdate&&r.onProgressUpdate((e=>{o({loaded:e.totalBytesSent,total:e.totalBytesExpectedToSend})}))}))}async uploadFile({filePath:e,cloudPath:t="",fileType:n="image",onUploadProgress:i}){if("string"!==Ab(t))throw new fw({code:"INVALID_PARAM",message:"cloudPath必须为字符串类型"});if(!(t=t.trim()))throw new fw({code:"INVALID_PARAM",message:"cloudPath不可为空"});if(/:\/\//.test(t))throw new fw({code:"INVALID_PARAM",message:"cloudPath不合法"});const o=await Hx({path:"/".concat(t.replace(/^\//,""),"?post_url")},this.config),{file_id:s,upload_url:a,form_data:r}=o,l=r&&r.reduce(((e,t)=>(e[t.key]=t.value,e)),{});return this.uploadFileToOSS({url:a,filePath:e,fileType:n,formData:l,onUploadProgress:i}).then((()=>({fileID:s})))}async getTempFileURL({fileList:e}){return new Promise(((t,n)=>{(!e||e.length<0)&&n(new fw({errCode:"INVALID_PARAM",errMsg:"fileList不能为空数组"})),e.length>50&&n(new fw({errCode:"INVALID_PARAM",errMsg:"fileList数组长度不能超过50"}));const i=[];for(const o of e){"string"!==Ab(o)&&n(new fw({errCode:"INVALID_PARAM",errMsg:"fileList的元素必须是非空的字符串"}));const e=qx.call(this,o);i.push({file_id:e,expire:600})}Hx({path:"/?download_url",data:{file_list:i},method:"POST"},this.config).then((e=>{const{file_list:n=[]}=e;t({fileList:n.map((e=>({fileID:zx.call(this,e.file_id),tempFileURL:e.download_url})))})})).catch((e=>n(e)))}))}}(e);return t.auth=function(){return{signInAnonymously:function(){return Promise.resolve()},getLoginState:function(){return Promise.resolve(!0)}}},t}};function Xx({data:e}){let t;t=kw();const n=JSON.parse(JSON.stringify(e||{}));if(Object.assign(n,{clientInfo:t}),!n.uniIdToken){const{token:e}=yw();e&&(n.uniIdToken=e)}return n}const Kx=[{rule:/fc_function_not_found|FUNCTION_NOT_FOUND/,content:",云函数[{functionName}]在云端不存在,请检查此云函数名称是否正确以及该云函数是否已上传到服务空间",mode:"append"}];var Gx=/[\\^$.*+?()[\]{}|]/g,Jx=RegExp(Gx.source);function Qx(e,t,n){return e.replace(new RegExp((i=t)&&Jx.test(i)?i.replace(Gx,"\\$&"):i,"g"),n);var i}const Zx=2e4,ek={code:20101,message:"Invalid client"};function tk(e){const{errSubject:t,subject:n,errCode:i,errMsg:o,code:s,message:a,cause:r}=e||{};return new fw({subject:t||n||"uni-secure-network",code:i||s||Zx,message:o||a,cause:r})}let nk;function ik({secretType:e}={}){return"request"===e||"response"===e||"both"===e}function ok({functionName:e,result:t,logPvd:n}){}function sk(e){const t=e.callFunction,n=function(n){const i=n.name;n.data=Xx.call(e,{data:n.data});const o={aliyun:"aliyun",tencent:"tcb",tcb:"tcb",alipay:"alipay"}[this.config.provider],s=ik(n)||false;return t.call(this,n).then((e=>(e.errCode=0,!s&&ok.call(this,{functionName:i,result:e,logPvd:o}),Promise.resolve(e))),(e=>(!s&&ok.call(this,{functionName:i,result:e,logPvd:o}),e&&e.message&&(e.message=function({message:e="",extraInfo:t={},formatter:n=[]}={}){for(let i=0;i<n.length;i++){const{rule:o,content:s,mode:a}=n[i],r=e.match(o);if(!r)continue;let l=s;for(let e=1;e<r.length;e++)l=Qx(l,`{$${e}}`,r[e]);for(const e in t)l=Qx(l,`{${e}}`,t[e]);return"replace"===a?l:e+l}return e}({message:`[${n.name}]: ${e.message}`,formatter:Kx,extraInfo:{functionName:i}})),Promise.reject(e))))};e.callFunction=function(t){const{provider:i,spaceId:o}=e.config,s=t.name;let a,r;return t.data=t.data||{},a=n,a=a.bind(e),r=ik(t)?new nk({secretType:t.secretType,uniCloudIns:e}).wrapEncryptDataCallFunction(n.bind(e))(t):function({provider:e,spaceId:t,functionName:n}={}){const{appId:i,uniPlatform:o,osName:s}=ww();let a=o;"app"===o&&(a=s);const r=function({provider:e,spaceId:t}={}){const n=Vb;if(!n)return{};e=function(e){return"tencent"===e?"tcb":e}(e);const i=n.find((n=>n.provider===e&&n.spaceId===t));return i&&i.config}({provider:e,spaceId:t});if(!r||!r.accessControl||!r.accessControl.enable)return!1;const l=r.accessControl.function||{},c=Object.keys(l);if(0===c.length)return!0;const u=function(e,t){let n,i,o;for(let s=0;s<e.length;s++){const a=e[s];a!==t?"*"!==a?a.split(",").map((e=>e.trim())).indexOf(t)>-1&&(i=a):o=a:n=a}return n||i||o}(c,n);if(!u)return!1;if((l[u]||[]).find(((e={})=>e.appId===i&&(e.platform||"").toLowerCase()===a.toLowerCase())))return!0;throw console.error(`此应用[appId: ${i}, platform: ${a}]不在云端配置的允许访问的应用列表内,参考:https://uniapp.dcloud.net.cn/uniCloud/secure-network.html#verify-client`),tk(ek)}({provider:i,spaceId:o,functionName:s})?new nk({secretType:t.secretType,uniCloudIns:e}).wrapVerifyClientCallFunction(n.bind(e))(t):a(t),Object.defineProperty(r,"result",{get:()=>(console.warn("当前返回结果为Promise类型,不可直接访问其result属性,详情请参考:https://uniapp.dcloud.net.cn/uniCloud/faq?id=promise"),{})}),r.then((e=>("undefined"!=typeof UTSJSONObject&&(e.result=new UTSJSONObject(e.result)),e)))}}nk=class{constructor(){throw tk({message:"Platform web is not supported by secure network"})}};const ak=Symbol("CLIENT_DB_INTERNAL");function rk(e,t){return e.then="DoNotReturnProxyWithAFunctionNamedThen",e._internalType=ak,e.inspect=null,e.__v_raw=void 0,new Proxy(e,{get(e,n,i){if("_uniClient"===n)return null;if("symbol"==typeof n)return e[n];if(n in e||"string"!=typeof n){const t=e[n];return"function"==typeof t?t.bind(e):t}return t.get(e,n,i)}})}function lk(e){return{on:(t,n)=>{e[t]=e[t]||[],e[t].indexOf(n)>-1||e[t].push(n)},off:(t,n)=>{e[t]=e[t]||[];const i=e[t].indexOf(n);-1!==i&&e[t].splice(i,1)}}}const ck=["db.Geo","db.command","command.aggregate"];function uk(e,t){return ck.indexOf(`${e}.${t}`)>-1}function dk(e){switch(Ab(e=gw(e))){case"array":return e.map((e=>dk(e)));case"object":return e._internalType===ak||Object.keys(e).forEach((t=>{e[t]=dk(e[t])})),e;case"regexp":return{$regexp:{source:e.source,flags:e.flags}};case"date":return{$date:e.toISOString()};default:return e}}function hk(e){return e&&e.content&&e.content.$method}class pk{constructor(e,t,n){this.content=e,this.prevStage=t||null,this.udb=null,this._database=n}toJSON(){let e=this;const t=[e.content];for(;e.prevStage;)e=e.prevStage,t.push(e.content);return{$db:t.reverse().map((e=>({$method:e.$method,$param:dk(e.$param)})))}}toString(){return JSON.stringify(this.toJSON())}getAction(){const e=this.toJSON().$db.find((e=>"action"===e.$method));return e&&e.$param&&e.$param[0]}getCommand(){return{$db:this.toJSON().$db.filter((e=>"action"!==e.$method))}}get isAggregate(){let e=this;for(;e;){const t=hk(e),n=hk(e.prevStage);if("aggregate"===t&&"collection"===n||"pipeline"===t)return!0;e=e.prevStage}return!1}get isCommand(){let e=this;for(;e;){if("command"===hk(e))return!0;e=e.prevStage}return!1}get isAggregateCommand(){let e=this;for(;e;){const t=hk(e),n=hk(e.prevStage);if("aggregate"===t&&"command"===n)return!0;e=e.prevStage}return!1}getNextStageFn(e){const t=this;return function(){return fk({$method:e,$param:dk(Array.from(arguments))},t,t._database)}}get count(){return this.isAggregate?this.getNextStageFn("count"):function(){return this._send("count",Array.from(arguments))}}get remove(){return this.isCommand?this.getNextStageFn("remove"):function(){return this._send("remove",Array.from(arguments))}}get(){return this._send("get",Array.from(arguments))}get add(){return this.isCommand?this.getNextStageFn("add"):function(){return this._send("add",Array.from(arguments))}}update(){return this._send("update",Array.from(arguments))}end(){return this._send("end",Array.from(arguments))}get set(){return this.isCommand?this.getNextStageFn("set"):function(){throw new Error("JQL禁止使用set方法")}}_send(e,t){const n=this.getAction(),i=this.getCommand();return i.$db.push({$method:e,$param:dk(t)}),this._database._callCloudFunction({action:n,command:i})}}function fk(e,t,n){return rk(new pk(e,t,n),{get(e,t){let i="db";return e&&e.content&&(i=e.content.$method),uk(i,t)?fk({$method:t},e,n):function(){return fk({$method:t,$param:dk(Array.from(arguments))},e,n)}}})}function mk({path:e,method:t}){return class{constructor(){this.param=Array.from(arguments)}toJSON(){return{$newDb:[...e.map((e=>({$method:e}))),{$method:t,$param:this.param}]}}toString(){return JSON.stringify(this.toJSON())}}}function gk(e,t={}){return rk(new e(t),{get:(e,t)=>uk("db",t)?fk({$method:t},null,e):function(){return fk({$method:t,$param:dk(Array.from(arguments))},null,e)}})}class yk extends class{constructor({uniClient:e={},isJQL:t=!1}={}){this._uniClient=e,this._authCallBacks={},this._dbCallBacks={},e._isDefault&&(this._dbCallBacks=qb("_globalUniCloudDatabaseCallback")),t||(this.auth=lk(this._authCallBacks)),this._isJQL=t,Object.assign(this,lk(this._dbCallBacks)),this.env=rk({},{get:(e,t)=>({$env:t})}),this.Geo=rk({},{get:(e,t)=>mk({path:["Geo"],method:t})}),this.serverDate=mk({path:[],method:"serverDate"}),this.RegExp=mk({path:[],method:"RegExp"})}getCloudEnv(e){if("string"!=typeof e||!e.trim())throw new Error("getCloudEnv参数错误");return{$env:e.replace("$cloudEnv_","")}}_callback(e,t){const n=this._dbCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}_callbackAuth(e,t){const n=this._authCallBacks;n[e]&&n[e].forEach((e=>{e(...t)}))}multiSend(){const e=Array.from(arguments),t=e.map((e=>{const t=e.getAction(),n=e.getCommand();if("getTemp"!==n.$db[n.$db.length-1].$method)throw new Error("multiSend只支持子命令内使用getTemp");return{action:t,command:n}}));return this._callCloudFunction({multiCommand:t,queryList:e})}}{_parseResult(e){return this._isJQL?e.result:e}_callCloudFunction({action:e,command:t,multiCommand:n,queryList:i}){function o(e,t){if(n&&i)for(let n=0;n<i.length;n++){const o=i[n];o.udb&&"function"==typeof o.udb.setResult&&(t?o.udb.setResult(t):o.udb.setResult(e.result.dataList[n]))}}const s=this,a=this._isJQL?"databaseForJQL":"database";function r(e){return s._callback("error",[e]),Gb(Jb(a,"fail"),e).then((()=>Gb(Jb(a,"complete"),e))).then((()=>(o(null,e),cw(ew,{type:iw,content:e}),Promise.reject(e))))}const l=Gb(Jb(a,"invoke")),c=this._uniClient;return l.then((()=>c.callFunction({name:"DCloud-clientDB",type:"CLIENT_DB",data:{action:e,command:t,multiCommand:n}}))).then((e=>{const{code:t,message:n,token:i,tokenExpired:l,systemInfo:c=[]}=e.result;if(c)for(let o=0;o<c.length;o++){const{level:e,message:t,detail:n}=c[o],i=console[e]||console.log;let s="[System Info]"+t;n&&(s=`${s}\n详细信息:${n}`),i(s)}if(t)return r(new fw({code:t,message:n,requestId:e.requestId}));e.result.errCode=e.result.errCode||e.result.code,e.result.errMsg=e.result.errMsg||e.result.message,i&&l&&(vw({token:i,tokenExpired:l}),this._callbackAuth("refreshToken",[{token:i,tokenExpired:l}]),this._callback("refreshToken",[{token:i,tokenExpired:l}]),cw(nw,{token:i,tokenExpired:l}));const u=[{prop:"affectedDocs",tips:"affectedDocs不再推荐使用,请使用inserted/deleted/updated/data.length替代"},{prop:"code",tips:"code不再推荐使用,请使用errCode替代"},{prop:"message",tips:"message不再推荐使用,请使用errMsg替代"}];for(let o=0;o<u.length;o++){const{prop:t,tips:n}=u[o];if(t in e.result){const i=e.result[t];Object.defineProperty(e.result,t,{get:()=>(console.warn(n),i)})}}return d=e,Gb(Jb(a,"success"),d).then((()=>Gb(Jb(a,"complete"),d))).then((()=>{o(d,null);const e=s._parseResult(d);return cw(ew,{type:iw,content:e}),Promise.resolve(e)}));var d}),(e=>(/fc_function_not_found|FUNCTION_NOT_FOUND/g.test(e.message)&&console.warn("clientDB未初始化,请在web控制台保存一次schema以开启clientDB"),r(new fw({code:e.code||"SYSTEM_ERROR",message:e.message,requestId:e.requestId})))))}}const vk="token无效,跳转登录页面",_k="token过期,跳转登录页面",bk={TOKEN_INVALID_TOKEN_EXPIRED:_k,TOKEN_INVALID_INVALID_CLIENTID:vk,TOKEN_INVALID:vk,TOKEN_INVALID_WRONG_TOKEN:vk,TOKEN_INVALID_ANONYMOUS_USER:vk},wk={"uni-id-token-expired":_k,"uni-id-check-token-failed":vk,"uni-id-token-not-exist":vk,"uni-id-check-device-feature-failed":vk};function xk(e,t){let n="";return n=e?`${e}/${t}`:t,n.replace(/^\//,"")}function kk(e=[],t=""){const n=[],i=[];return e.forEach((e=>{!0===e.needLogin?n.push(xk(t,e.path)):!1===e.needLogin&&i.push(xk(t,e.path))})),{needLoginPage:n,notNeedLoginPage:i}}function Tk(e){return e.split("?")[0].replace(/^\//,"")}function Sk(){return function(e){let t=e&&e.$page&&e.$page.fullPath||"";return t?("/"!==t.charAt(0)&&(t="/"+t),t):t}(function(){const e=Gm();return e[e.length-1]}())}function Ck(){return Tk(Sk())}function Ek(e="",t={}){if(!e)return!1;if(!(t&&t.list&&t.list.length))return!1;const n=t.list,i=Tk(e);return n.some((e=>e.pagePath===i))}const Pk=!!kb.uniIdRouter,{loginPage:Dk,routerNeedLogin:Ik,resToLogin:Mk,needLoginPage:Ok,notNeedLoginPage:Ak,loginPageInTabBar:Lk}=function({pages:e=[],subPackages:t=[],uniIdRouter:n={},tabBar:i={}}=kb){const{loginPage:o,needLogin:s=[],resToLogin:a=!0}=n,{needLoginPage:r,notNeedLoginPage:l}=kk(e),{needLoginPage:c,notNeedLoginPage:u}=function(e=[]){const t=[],n=[];return e.forEach((e=>{const{root:i,pages:o=[]}=e,{needLoginPage:s,notNeedLoginPage:a}=kk(o,i);t.push(...s),n.push(...a)})),{needLoginPage:t,notNeedLoginPage:n}}(t);return{loginPage:o,routerNeedLogin:s,resToLogin:a,needLoginPage:[...r,...c],notNeedLoginPage:[...l,...u],loginPageInTabBar:Ek(o,i)}}();if(Ok.indexOf(Dk)>-1)throw new Error(`Login page [${Dk}] should not be "needLogin", please check your pages.json`);function Rk(e){const t=Ck();if("/"===e.charAt(0))return e;const[n,i]=e.split("?"),o=n.replace(/^\//,"").split("/"),s=t.split("/");s.pop();for(let a=0;a<o.length;a++){const e=o[a];".."===e?s.pop():"."!==e&&s.push(e)}return""===s[0]&&s.shift(),"/"+s.join("/")+(i?"?"+i:"")}function $k({redirect:e}){const t=Tk(e),n=Tk(Dk);return Ck()!==n&&t!==n}function Nk({api:e,redirect:t}={}){if(!t||!$k({redirect:t}))return;const n=(o=t,"/"!==(i=Dk).charAt(0)&&(i="/"+i),o?i.indexOf("?")>-1?i+`&uniIdRedirectUrl=${encodeURIComponent(o)}`:i+`?uniIdRedirectUrl=${encodeURIComponent(o)}`:i);var i,o;Lk?"navigateTo"!==e&&"redirectTo"!==e||(e="switchTab"):"switchTab"===e&&(e="navigateTo");const s={navigateTo:Ly,redirectTo:Ry,switchTab:By,reLaunch:$y};setTimeout((()=>{s[e]({url:n})}),0)}function Bk({url:e}={}){const t={abortLoginPageJump:!1,autoToLoginPage:!1},n=function(){const{token:e,tokenExpired:t}=yw();let n;if(e){if(t<Date.now()){const e="uni-id-token-expired";n={errCode:e,errMsg:wk[e]}}}else{const e="uni-id-check-token-failed";n={errCode:e,errMsg:wk[e]}}return n}();if(function(e){const t=Tk(Rk(e));return!(Ak.indexOf(t)>-1)&&(Ok.indexOf(t)>-1||Ik.some((t=>{return n=e,new RegExp(t).test(n);var n})))}(e)&&n){if(n.uniIdRedirectUrl=e,aw(tw).length>0)return setTimeout((()=>{cw(tw,n)}),0),t.abortLoginPageJump=!0,t;t.autoToLoginPage=!0}return t}function Fk(){!function(){const e=Sk(),{abortLoginPageJump:t,autoToLoginPage:n}=Bk({url:e});t||n&&Nk({api:"redirectTo",redirect:e})}();const e=["navigateTo","redirectTo","reLaunch","switchTab"];for(let t=0;t<e.length;t++){const n=e[t];jd(n,{invoke(e){const{abortLoginPageJump:t,autoToLoginPage:i}=Bk({url:e.url});return t?e:i?(Nk({api:n,redirect:Rk(e.url)}),!1):e}})}}function jk(){this.onResponse((e=>{const{type:t,content:n}=e;let i=!1;switch(t){case"cloudobject":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in wk}(n);break;case"clientdb":i=function(e){if("object"!=typeof e)return!1;const{errCode:t}=e||{};return t in bk}(n)}i&&function(e={}){const t=aw(tw);hw().then((()=>{const n=Sk();if(n&&$k({redirect:n}))return t.length>0?cw(tw,Object.assign({uniIdRedirectUrl:n},e)):void(Dk&&Nk({api:"navigateTo",redirect:n}))}))}(n)}))}function Vk(e){var t;(t=e).onResponse=function(e){rw(ew,e)},t.offResponse=function(e){lw(ew,e)},function(e){e.onNeedLogin=function(e){rw(tw,e)},e.offNeedLogin=function(e){lw(tw,e)},Pk&&(qb("_globalUniCloudStatus").needLoginInit||(qb("_globalUniCloudStatus").needLoginInit=!0,hw().then((()=>{Fk.call(e)})),Mk&&jk.call(e)))}(e),function(e){e.onRefreshToken=function(e){rw(nw,e)},e.offRefreshToken=function(e){lw(nw,e)}}(e)}let Wk;const Uk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Hk=/^(?:[A-Za-z\d+/]{4})*?(?:[A-Za-z\d+/]{2}(?:==)?|[A-Za-z\d+/]{3}=?)?$/;function qk(){const e=yw().token||"",t=e.split(".");if(!e||3!==t.length)return{uid:null,role:[],permission:[],tokenExpired:0};let n;try{n=JSON.parse((i=t[1],decodeURIComponent(Wk(i).split("").map((function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))))}catch(o){throw new Error("获取当前用户信息出错,详细错误信息为:"+o.message)}var i;return n.tokenExpired=1e3*n.exp,delete n.exp,delete n.iat,n}Wk="function"!=typeof atob?function(e){if(e=String(e).replace(/[\t\n\f\r ]+/g,""),!Hk.test(e))throw new Error("Failed to execute 'atob' on 'Window': The string to be decoded is not correctly encoded.");var t;e+="==".slice(2-(3&e.length));for(var n,i,o="",s=0;s<e.length;)t=Uk.indexOf(e.charAt(s++))<<18|Uk.indexOf(e.charAt(s++))<<12|(n=Uk.indexOf(e.charAt(s++)))<<6|(i=Uk.indexOf(e.charAt(s++))),o+=64===n?String.fromCharCode(t>>16&255):64===i?String.fromCharCode(t>>16&255,t>>8&255):String.fromCharCode(t>>16&255,t>>8&255,255&t);return o}:atob;var zk=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(Tb((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n="chooseAndUploadFile:ok",i="chooseAndUploadFile:fail";function o(e,t){return e.tempFiles.forEach(((e,n)=>{e.name||(e.name=e.path.substring(e.path.lastIndexOf("/")+1)),t&&(e.fileType=t),e.cloudPath=Date.now()+"_"+n+e.name.substring(e.name.lastIndexOf("."))})),e.tempFilePaths||(e.tempFilePaths=e.tempFiles.map((e=>e.path))),e}function s(e,t,{onChooseFile:i,onUploadProgress:o}){return t.then((e=>{if(i){const t=i(e);if(void 0!==t)return Promise.resolve(t).then((t=>void 0===t?e:t))}return e})).then((t=>!1===t?{errMsg:n,tempFilePaths:[],tempFiles:[]}:function(e,t,i=5,o){(t=Object.assign({},t)).errMsg=n;const s=t.tempFiles,a=s.length;let r=0;return new Promise((n=>{for(;r<i;)l();function l(){const i=r++;if(i>=a)return void(!s.find((e=>!e.url&&!e.errMsg))&&n(t));const c=s[i];e.uploadFile({provider:c.provider,filePath:c.path,cloudPath:c.cloudPath,fileType:c.fileType,cloudPathAsRealPath:c.cloudPathAsRealPath,onUploadProgress(e){e.index=i,e.tempFile=c,e.tempFilePath=c.path,o&&o(e)}}).then((e=>{c.url=e.fileID,i<a&&l()})).catch((e=>{c.errMsg=e.errMsg||e.message,i<a&&l()}))}}))}(e,t,5,o)))}t.initChooseAndUploadFile=function(e){return function(t={type:"all"}){return"image"===t.type?s(e,function(e){const{count:t,sizeType:n,sourceType:s=["album","camera"],extension:a}=e;return new Promise(((e,r)=>{ry({count:t,sizeType:n,sourceType:s,extension:a,success(t){e(o(t,"image"))},fail(e){r({errMsg:e.errMsg.replace("chooseImage:fail",i)})}})}))}(t),t):"video"===t.type?s(e,function(e){const{camera:t,compressed:n,maxDuration:s,sourceType:a=["album","camera"],extension:r}=e;return new Promise(((e,l)=>{Cy({camera:t,compressed:n,maxDuration:s,sourceType:a,extension:r,success(t){const{tempFilePath:n,duration:i,size:s,height:a,width:r}=t;e(o({errMsg:"chooseVideo:ok",tempFilePaths:[n],tempFiles:[{name:t.tempFile&&t.tempFile.name||"",path:n,size:s,type:t.tempFile&&t.tempFile.type||"",width:r,height:a,duration:i,fileType:"video",cloudPath:""}]},"video"))},fail(e){l({errMsg:e.errMsg.replace("chooseVideo:fail",i)})}})}))}(t),t):s(e,function(e){const{count:t,extension:n}=e;return new Promise(((e,s)=>{let a=sy;if("undefined"!=typeof wx&&"function"==typeof wx.chooseMessageFile&&(a=wx.chooseMessageFile),"function"!=typeof a)return s({errMsg:i+" 请指定 type 类型,该平台仅支持选择 image 或 video。"});a({type:"all",count:t,extension:n,success(t){e(o(t))},fail(e){s({errMsg:e.errMsg.replace("chooseFile:fail",i)})}})}))}(t),t)}}})));function Yk(e){return{props:{localdata:{type:Array,default:()=>[]},options:{type:[Object,Array],default:()=>({})},spaceInfo:{type:Object,default:()=>({})},collection:{type:[String,Array],default:""},action:{type:String,default:""},field:{type:String,default:""},orderby:{type:String,default:""},where:{type:[String,Object],default:""},pageData:{type:String,default:"add"},pageCurrent:{type:Number,default:1},pageSize:{type:Number,default:20},getcount:{type:[Boolean,String],default:!1},gettree:{type:[Boolean,String],default:!1},gettreepath:{type:[Boolean,String],default:!1},startwith:{type:String,default:""},limitlevel:{type:Number,default:10},groupby:{type:String,default:""},groupField:{type:String,default:""},distinct:{type:[Boolean,String],default:!1},foreignKey:{type:String,default:""},loadtime:{type:String,default:"auto"},manual:{type:Boolean,default:!1}},data:()=>({mixinDatacomLoading:!1,mixinDatacomHasMore:!1,mixinDatacomResData:[],mixinDatacomErrorMessage:"",mixinDatacomPage:{},mixinDatacomError:null}),created(){this.mixinDatacomPage={current:this.pageCurrent,size:this.pageSize,count:0},this.$watch((()=>{var e=[];return["pageCurrent","pageSize","localdata","collection","action","field","orderby","where","getont","getcount","gettree","groupby","groupField","distinct"].forEach((t=>{e.push(this[t])})),e}),((e,t)=>{if("manual"===this.loadtime)return;let n=!1;const i=[];for(let o=2;o<e.length;o++)e[o]!==t[o]&&(i.push(e[o]),n=!0);e[0]!==t[0]&&(this.mixinDatacomPage.current=this.pageCurrent),this.mixinDatacomPage.size=this.pageSize,this.onMixinDatacomPropsChange(n,i)}))},methods:{onMixinDatacomPropsChange(e,t){},mixinDatacomEasyGet({getone:e=!1,success:t,fail:n}={}){this.mixinDatacomLoading||(this.mixinDatacomLoading=!0,this.mixinDatacomErrorMessage="",this.mixinDatacomError=null,this.mixinDatacomGet().then((n=>{this.mixinDatacomLoading=!1;const{data:i,count:o}=n.result;this.getcount&&(this.mixinDatacomPage.count=o),this.mixinDatacomHasMore=i.length<this.pageSize;const s=e?i.length?i[0]:void 0:i;this.mixinDatacomResData=s,t&&t(s)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e,this.mixinDatacomError=e,n&&n(e)})))},mixinDatacomGet(t={}){let n;t=t||{},n="undefined"!=typeof __uniX&&__uniX?e.databaseForJQL(this.spaceInfo):e.database(this.spaceInfo);const i=t.action||this.action;i&&(n=n.action(i));const o=t.collection||this.collection;n=Array.isArray(o)?n.collection(...o):n.collection(o);const s=t.where||this.where;s&&Object.keys(s).length&&(n=n.where(s));const a=t.field||this.field;a&&(n=n.field(a));const r=t.foreignKey||this.foreignKey;r&&(n=n.foreignKey(r));const l=t.groupby||this.groupby;l&&(n=n.groupBy(l));const c=t.groupField||this.groupField;c&&(n=n.groupField(c)),!0===(void 0!==t.distinct?t.distinct:this.distinct)&&(n=n.distinct());const u=t.orderby||this.orderby;u&&(n=n.orderBy(u));const d=void 0!==t.pageCurrent?t.pageCurrent:this.mixinDatacomPage.current,h=void 0!==t.pageSize?t.pageSize:this.mixinDatacomPage.size,p=void 0!==t.getcount?t.getcount:this.getcount,f=void 0!==t.gettree?t.gettree:this.gettree,m=void 0!==t.gettreepath?t.gettreepath:this.gettreepath,g={getCount:p},y={limitLevel:void 0!==t.limitlevel?t.limitlevel:this.limitlevel,startWith:void 0!==t.startwith?t.startwith:this.startwith};return f&&(g.getTree=y),m&&(g.getTreePath=y),n=n.skip(h*(d-1)).limit(h).get(g),n}}}}function Xk(e){return qb("_globalUniCloudSecureNetworkCache__{spaceId}".replace("{spaceId}",e.config.spaceId))}async function Kk({openid:e,callLoginByWeixin:t=!1}={}){throw Xk(this),new Error("[SecureNetwork] API `initSecureNetworkByWeixin` is not supported on platform `web`")}async function Gk(e){const t=Xk(this);return t.initPromise||(t.initPromise=Kk.call(this,e).then((e=>e)).catch((e=>{throw delete t.initPromise,e}))),t.initPromise}function Jk(e){const t={getSystemInfo:zg,getPushClientId:Nh};return function(n){return new Promise(((i,o)=>{t[e]({...n,success(e){i(e)},fail(e){o(e)}})}))}}class Qk extends class{constructor(){this._callback={}}addListener(e,t){this._callback[e]||(this._callback[e]=[]),this._callback[e].push(t)}on(e,t){return this.addListener(e,t)}removeListener(e,t){if(!t)throw new Error('The "listener" argument must be of type function. Received undefined');const n=this._callback[e];if(!n)return;const i=function(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]===t)return n;return-1}(n,t);n.splice(i,1)}off(e,t){return this.removeListener(e,t)}removeAllListener(e){delete this._callback[e]}emit(e,...t){const n=this._callback[e];if(n)for(let i=0;i<n.length;i++)n[i](...t)}}{constructor(){super(),this._uniPushMessageCallback=this._receivePushMessage.bind(this),this._currentMessageId=-1,this._payloadQueue=[]}init(){return Promise.all([Jk("getSystemInfo")(),Jk("getPushClientId")()]).then((([{appId:e}={},{cid:t}={}]=[])=>{if(!e)throw new Error("Invalid appId, please check the manifest.json file");if(!t)throw new Error("Invalid push client id");this._appId=e,this._pushClientId=t,this._seqId=Date.now()+"-"+Math.floor(9e5*Math.random()+1e5),this.emit("open"),this._initMessageListener()}),(e=>{throw this.emit("error",e),this.close(),e}))}async open(){return this.init()}_isUniCloudSSE(e){if("receive"!==e.type)return!1;const t=e&&e.data&&e.data.payload;return!(!t||"UNI_CLOUD_SSE"!==t.channel||t.seqId!==this._seqId)}_receivePushMessage(e){if(!this._isUniCloudSSE(e))return;const t=e&&e.data&&e.data.payload,{action:n,messageId:i,message:o}=t;this._payloadQueue.push({action:n,messageId:i,message:o}),this._consumMessage()}_consumMessage(){for(;;){const e=this._payloadQueue.find((e=>e.messageId===this._currentMessageId+1));if(!e)break;this._currentMessageId++,this._parseMessagePayload(e)}}_parseMessagePayload(e){const{action:t,messageId:n,message:i}=e;"end"===t?this._end({messageId:n,message:i}):"message"===t&&this._appendMessage({messageId:n,message:i})}_appendMessage({messageId:e,message:t}={}){this.emit("message",t)}_end({messageId:e,message:t}={}){this.emit("end",t),this.close()}_initMessageListener(){this._uniPushMessageCallback}_destroy(){this._uniPushMessageCallback}toJSON(){return{appId:this._appId,pushClientId:this._pushClientId,seqId:this._seqId}}close(){this._destroy(),this.emit("close")}}const Zk={tcb:Bx,tencent:Bx,aliyun:Pw,private:jx,alipay:Yx};let eT=new class{init(e){let t={};const n=Zk[e.provider];if(!n)throw new Error("未提供正确的provider参数");var i;return t=n.init(e),function(e){e._initPromiseHub||(e._initPromiseHub=new Fb({createPromise:function(){let t=Promise.resolve();t=new Promise((e=>{setTimeout((()=>{e()}),1)}));const n=e.auth();return t.then((()=>n.getLoginState())).then((e=>e?Promise.resolve():n.signInAnonymously()))}}))}(t),sk(t),function(e){const t=e.uploadFile;e.uploadFile=function(e){return t.call(this,e)}}(t),(i=t).database=function(e){if(e&&Object.keys(e).length>0)return i.init(e).database();if(this._database)return this._database;const t=gk(yk,{uniClient:i});return this._database=t,t},i.databaseForJQL=function(e){if(e&&Object.keys(e).length>0)return i.init(e).databaseForJQL();if(this._databaseForJQL)return this._databaseForJQL;const t=gk(yk,{uniClient:i,isJQL:!0});return this._databaseForJQL=t,t},function(e){e.getCurrentUserInfo=qk,e.chooseAndUploadFile=zk.initChooseAndUploadFile(e),Object.assign(e,{get mixinDatacom(){return Yk(e)}}),e.SSEChannel=Qk,e.initSecureNetworkByWeixin=function(e){return function({openid:t,callLoginByWeixin:n=!1}={}){return Gk.call(e,{openid:t,callLoginByWeixin:n})}}(e),e.importObject=function(t){return function(n,i={}){i=function(e,t={}){return e.customUI=t.customUI||e.customUI,e.parseSystemError=t.parseSystemError||e.parseSystemError,Object.assign(e.loadingOptions,t.loadingOptions),Object.assign(e.errorOptions,t.errorOptions),"object"==typeof t.secretMethods&&(e.secretMethods=t.secretMethods),e}({customUI:!1,loadingOptions:{title:"加载中...",mask:!0},errorOptions:{type:"modal",retry:!1}},i);const{customUI:o,loadingOptions:s,errorOptions:a,parseSystemError:r}=i,l=!o;return new Proxy({},{get(o,c){switch(c){case"toString":return"[object UniCloudObject]";case"toJSON":return{}}return function({fn:e,interceptorName:t,getCallbackArgs:n}={}){return async function(...i){const o=n?n({params:i}):{};let s,a;try{return await Gb(Jb(t,"invoke"),{...o}),s=await e(...i),await Gb(Jb(t,"success"),{...o,result:s}),s}catch(r){throw a=r,await Gb(Jb(t,"fail"),{...o,error:a}),a}finally{await Gb(Jb(t,"complete"),a?{...o,error:a}:{...o,result:s})}}}({fn:async function o(...u){let d;l&&av({title:s.title,mask:s.mask});const h={name:n,type:"OBJECT",data:{method:c,params:u}};"object"==typeof i.secretMethods&&function(e,t){const n=t.data.method,i=e.secretMethods||{},o=i[n]||i["*"];o&&(t.secretType=o)}(i,h);let p=!1;try{d=await t.callFunction(h)}catch(e){p=!0,d={result:new fw(e)}}const{errSubject:f,errCode:m,errMsg:g,newToken:y}=d.result||{};if(l&&rv(),y&&y.token&&y.tokenExpired&&(vw(y),cw(nw,{...y})),m){let e=g;if(p&&r&&(e=(await r({objectName:n,methodName:c,params:u,errSubject:f,errCode:m,errMsg:g})).errMsg||g),l)if("toast"===a.type)ov({title:e,icon:"none"});else{if("modal"!==a.type)throw new Error(`Invalid errorOptions.type: ${a.type}`);{const{confirm:t}=await async function({title:e,content:t,showCancel:n,cancelText:i,confirmText:o}={}){return new Promise(((s,a)=>{Xy({title:e,content:t,showCancel:n,cancelText:i,confirmText:o,success(e){s(e)},fail(){s({confirm:!1,cancel:!0})}})}))}({title:"提示",content:e,showCancel:a.retry,cancelText:"取消",confirmText:a.retry?"重试":"确定"});if(a.retry&&t)return o(...u)}}const t=new fw({subject:f,code:m,message:g,requestId:d.requestId});throw t.detail=d.result,cw(ew,{type:sw,content:t}),t}return cw(ew,{type:sw,content:d.result}),d.result},interceptorName:"callObject",getCallbackArgs:function({params:e}={}){return{objectName:n,methodName:c,params:e}}})}})}}(e)}(t),["callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","chooseAndUploadFile"].forEach((e=>{if(!t[e])return;const n=t[e];t[e]=function(){return n.apply(t,Array.from(arguments))},t[e]=function(e,t){return function(n){let i=!1;if("callFunction"===t){const e=n&&n.type||Ib;i=e!==Ib}const o="callFunction"===t&&!i,s=this._initPromiseHub.exec();n=n||{};const{success:a,fail:r,complete:l}=pw(n),c=s.then((()=>i?Promise.resolve():Gb(Jb(t,"invoke"),n))).then((()=>e.call(this,n))).then((e=>i?Promise.resolve(e):Gb(Jb(t,"success"),e).then((()=>Gb(Jb(t,"complete"),e))).then((()=>(o&&cw(ew,{type:ow,content:e}),Promise.resolve(e))))),(e=>i?Promise.reject(e):Gb(Jb(t,"fail"),e).then((()=>Gb(Jb(t,"complete"),e))).then((()=>(cw(ew,{type:ow,content:e}),Promise.reject(e))))));if(!(a||r||l))return c;c.then((e=>{a&&a(e),l&&l(e),o&&cw(ew,{type:ow,content:e})}),(e=>{r&&r(e),l&&l(e),o&&cw(ew,{type:ow,content:e})}))}}(t[e],e).bind(t)})),t.init=this.init,t}};(()=>{const e=Wb;let t={};if(e&&1===e.length)t=e[0],eT=eT.init(t),eT._isDefault=!0;else{const t=["auth","callFunction","uploadFile","deleteFile","getTempFileURL","downloadFile","database","getCurrentUSerInfo","importObject"];let n;n=e&&e.length>0?"应用有多个服务空间,请通过uniCloud.init方法指定要使用的服务空间":"应用未关联服务空间,请在uniCloud目录右键关联服务空间",t.forEach((e=>{eT[e]=function(){return console.error(n),Promise.reject(new fw({code:"SYS_ERR",message:n}))}}))}Object.assign(eT,{get mixinDatacom(){return Yk(eT)}}),Vk(eT),eT.addInterceptor=Xb,eT.removeInterceptor=Kb,eT.interceptObject=Qb})();var tT=eT;const nT={methods:{getParentAll(e,t){(t=this.getParent(`uni${e}`,t))&&(this.rootMenu[e].push(t),this.getParentAll(e,t))},getParent(e,t,n){let i=(t=t.$parent).$options.name;for(;i!==e;){if(!(t=t.$parent))return!1;i=t.$options.name}return t}}},iT={name:"uniMenuItem",mixins:[nT],props:{index:{type:[String,Object],default:()=>""},disabled:{type:Boolean,default:!1}},data:()=>({active:!1,activeTextColor:"#42B983",textColor:"#303133",activeBackgroundColor:""}),computed:{paddingLeft(){return 20+20*(this.rootMenu&&this.rootMenu.SubMenu&&this.rootMenu.SubMenu.length||0)+"px"}},created(){this.init()},destroyed(){if(this.$menuParent){const e=this.$menuParent.itemChildrens.findIndex((e=>e===this));this.$menuParent.itemChildrens.splice(e,1)}},methods:{init(){this.rootMenu={NavMenu:[],SubMenu:[]},this.indexPath=[],this.getParentAll("SubMenu",this),this.$menuParent=this.getParent("uniNavMenu",this),this.$subMenu=this.rootMenu.SubMenu,this.activeTextColor=this.$menuParent.activeTextColor,this.textColor=this.$menuParent.textColor,this.activeBackgroundColor=this.$menuParent.activeBackgroundColor,this.$menuParent&&(this.$menuParent.itemChildrens.push(this),this.$menuParent.isActive(this))},onClickItem(e){this.disabled||(this.$menuParent.closeOtherActive(this),this.active=!0,this.indexPath.unshift(this.index),this.indexPath.reverse(),"init"!==e&&this.$menuParent.select(this.index,this.indexPath))}}};const oT=Xv(iT,[["render",function(e,t,n,i,o,s){const a=vm;return qo(),Go(a,{class:le(["uni-menu-item",{"is-active":o.active,"is-disabled":n.disabled}]),style:re({paddingLeft:s.paddingLeft,"background-color":o.active?o.activeBackgroundColor:""}),onClick:s.onClickItem},{default:Fn((()=>[Xi(e.$slots,"default",{},void 0,!0)])),_:3},8,["class","style","onClick"])}],["__scopeId","data-v-ed7e2182"]]);const sT=Xv({name:"uniSubMenu",mixins:[nT],props:{index:{type:[String,Object],default:()=>""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#f5f5f5"}},data:()=>({height:0,oldheight:0,isOpen:!1,textColor:"#303133"}),computed:{paddingLeft(){return 20+20*(this.rootMenu&&this.rootMenu.SubMenu&&this.rootMenu.SubMenu.length||0)+"px"}},created(){this.init()},destroyed(){if(this.$menuParent){const e=this.$menuParent.subChildrens.findIndex((e=>e===this));this.$menuParent.subChildrens.splice(e,1)}},methods:{init(){this.rootMenu={NavMenu:[],SubMenu:[]},this.childrens=[],this.indexPath=[],this.getParentAll("SubMenu",this),this.$menuParent=this.getParent("uniNavMenu",this),this.textColor=this.$menuParent.textColor,this.$subMenu=this.rootMenu.SubMenu,this.$menuParent&&this.$menuParent.subChildrens.push(this)},select(){this.disabled||this.$menuParent.selectMenu(this)},open(){this.isOpen=!0},close(){this.isOpen=!1}}},[["render",function(e,t,n,i,o,s){const a=vm,r=Zv(zn("uni-icons"),Kv);return qo(),Go(a,{class:"uni-sub-menu"},{default:Fn((()=>[is(a,{class:le(["uni-sub-menu__title",{"is-disabled":n.disabled}]),style:re({paddingLeft:s.paddingLeft}),onClick:s.select},{default:Fn((()=>[is(a,{class:"uni-sub-menu__title-sub",style:re({color:n.disabled?"#999":o.textColor})},{default:Fn((()=>[Xi(e.$slots,"title",{},void 0,!0)])),_:3},8,["style"]),is(r,{class:le(["uni-sub-menu__icon",{transition:o.isOpen}]),type:"arrowdown",color:"#bbb",size:"14"},null,8,["class"])])),_:3},8,["class","style","onClick"]),is(a,{class:le(["uni-sub-menu__content",{"uni-sub-menu--close":!o.isOpen}]),style:re({"background-color":n.backgroundColor})},{default:Fn((()=>[is(a,{id:"content--hook"},{default:Fn((()=>[Xi(e.$slots,"default",{},void 0,!0)])),_:3})])),_:3},8,["class","style"])])),_:3})}],["__scopeId","data-v-5f4117de"]]);const aT=Xv({name:"uniMenuSidebar",props:{data:{type:Array,default:()=>[]}},data:()=>({}),computed:{},methods:{}},[["render",function(e,t,n,i,o,s){const a=vm,r=pm,l=Zv(zn("uni-menu-item"),oT),c=Zv(zn("uni-menu-sidebar"),aT),u=Zv(zn("uni-sub-menu"),sT);return qo(),Go(a,{class:"pointer"},{default:Fn((()=>[(qo(!0),Ko(Fo,null,zi(n.data,((e,t)=>(qo(),Ko(Fo,{key:t},[e.children&&e.children.length?(qo(),Go(u,{key:1,index:e},{title:Fn((()=>[is(a,{class:le(e.icon)},null,8,["class"]),is(r,{class:le({title:e.icon})},{default:Fn((()=>[ss(X(e.text),1)])),_:2},1032,["class"])])),default:Fn((()=>[(qo(),Go(c,{class:"item-bg",data:e.children,key:e._id},null,8,["data"]))])),_:2},1032,["index"])):(qo(),Go(l,{key:0,index:e},{default:Fn((()=>[is(a,{class:le(e.icon)},null,8,["class"]),is(r,{class:le({title:e.icon})},{default:Fn((()=>[ss(X(e.text),1)])),_:2},1032,["class"])])),_:2},1032,["index"]))],64)))),128))])),_:1})}],["__scopeId","data-v-49ba8e7b"]]);const rT=Xv({name:"uniNavMenu",props:{data:{type:Array,default:()=>[]},mode:{type:String,default:"vertical"},collapse:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#fff"},textColor:{type:String,default:"#303133"},activeTextColor:{type:String,default:"#42B983"},activeBackgroundColor:{type:String,default:"inherit"},activeKey:{type:String,default:"id"},active:{type:String,default:""},defaultOpeneds:{type:Array,default:()=>[]},uniqueOpened:{type:Boolean,default:!1},menuTrigger:{type:String,default:"hover"},router:{type:Boolean,default:!1},collapseTransition:{type:Boolean,default:!0}},data(){return{activeIndex:this.active}},watch:{active(e){this.activeIndex=e},activeIndex(e,t){if(this.itemChildrens.length>0){let e=!1;for(let t=0;t<this.itemChildrens.length;t++){const n=this.itemChildrens[t];if(e=this.isActive(n),e)break}e||this.closeAll()}}},created(){this.itemChildrens=[],this.subChildrens=[]},methods:{select(e,t){this.$emit("select",e,t)},open(e,t){this.$emit("open",e,t)},close(e,t){this.$emit("close",e,t)},isActive(e){let t="",n=!1;return t="object"==typeof e.index?e.index[this.activeKey]||"":e.index,e.index&&this.activeIndex===t&&(n=!0,e.$subMenu.forEach(((t,n)=>{t.disabled||e.disabled||(e.indexPath.push(t.index),t.isOpen=!0)})),e.active||e.onClickItem("init")),n},selectMenu(e){this.subChildrens.forEach(((t,n)=>{t===e?(e.isOpen=!e.isOpen,e.indexPath.push(e.index)):t.isOpen&&this.uniqueOpened&&(t.isOpen=!1)})),e.$subMenu.forEach(((t,n)=>{t.isOpen=!0,e.indexPath.unshift(t.index)})),e.isOpen?this.open(e.indexPath[e.indexPath.length-1],e.indexPath):this.close(e.indexPath[e.indexPath.length-1],e.indexPath),e.indexPath=[]},closeOtherActive(e){e.indexPath=[],e.$subMenu.forEach((t=>{t.disabled||e.indexPath.push(t.index)})),this.itemChildrens.map((e=>(e.active&&(e.active=!1),e)))},closeAll(){this.subChildrens.forEach((e=>{e.isOpen&&(e.isOpen=!1)}))}}},[["render",function(e,t,n,i,o,s){const a=Zv(zn("uni-menu-sidebar"),aT),r=vm;return qo(),Go(r,{class:"uni-nav-menu",style:re({"background-color":n.backgroundColor})},{default:Fn((()=>[Xi(e.$slots,"default",{},(()=>[is(a,{data:n.data},null,8,["data"])]),!0)])),_:3},8,["style"])}],["__scopeId","data-v-8ab0a9ef"]]);function lT(e,t,n){let i=[];for(let o=e.length-1;o>-1;o--){const s=e[o],a=t.filter((e=>{if(e.parent_id===s.menu_id)return n.push(e.menu_id),!0}));i=i.concat(a),s.children=a}i.length&&lT(i,t,n)}function cT(e,t){const n=[];let i=e;for(;i&&i.parent_id;)n.push(i.parent_id),i=t.find((e=>e.menu_id===i.parent_id));return n}function uT(e,t=!0){if(e=e.sort((function(t,n){const i=cT(t,e),o=cT(n,e);return i.includes(n.menu_id)?1:i.length-o.length||t.sort-n.sort})),t)for(let o=e.length-1;o>-1;o--){const t=e[o],n=e.filter((e=>e.parent_id===t.menu_id));t.isLeafNode||n.length||e.splice(o,1)}const n=[],i=e.filter((e=>{if(!e.parent_id)return n.push(e.menu_id),!0}));return lT(i,e,n),t||n.length===e.length||i.push(...e.filter((e=>!n.includes(e.menu_id)))),i}const dT=Xv({data:()=>({menus:[],userMenu:[],famliy:[]}),mixins:[tT.mixinDatacom],props:{value:{type:String,default:""},activeTextColor:{type:String,default:"#42B983"},uniqueOpened:{type:Boolean,default:!1},staticMenu:{type:Array,default:()=>[]}},watch:{localdata:{handler(e){this.hasLocalData(e)&&(this.userMenu=e)},immediate:!0},menus:{immediate:!0,handler(e,t){const n=this.menus.find((e=>e.value===this.$route.path));n&&(this.getMenuAncestor(n.menu_id,e),n&&this.setRoutes&&this.setRoutes(this.famliy))}},$route:{immediate:!1,handler(e,t){if(e.fullPath!==t.fullPath){this.famliy=[];const t=this.menus.find((t=>t.value===e.path)),n=t&&t.menu_id;this.getMenuAncestor(n,this.menus),this.setRoutes&&this.setRoutes(this.famliy)}}}},created(){this.hasLocalData(this.localdata)},methods:{...tb({setRoutes:"app/setRoutes"}),getUserMenu(e){const{permission:t,role:n}=tT.getCurrentUserInfo();return e.map((t=>{e.some((e=>e.parent_id===t.menu_id))||(t.isLeafNode=!0)})),n.includes("admin")||(e=e.filter((e=>!e.isLeafNode||!(!e.permission||!e.permission.length)&&e.permission.some((e=>t.indexOf(e)>-1))))),uT(e)},onSelect(e){this.famliy=[],this.getMenuAncestor(e.menu_id,this.menus),this.emit(e)},emit(e){this.$emit("select",e,this.famliy),this.$emit("input",e.value)},hasLocalData:e=>Array.isArray(e)&&e.length>0,load(){1!=this.mixinDatacomLoading&&(this.mixinDatacomLoading=!0,this.mixinDatacomGet().then((e=>{this.mixinDatacomLoading=!1;const{data:t,count:n}=e.result;this.menus=t,this.userMenu=this.getUserMenu(this.menus)})).catch((e=>{this.mixinDatacomLoading=!1,this.mixinDatacomErrorMessage=e})))},getMenuAncestor(e,t){t.forEach((n=>{if(n.menu_id===e){const e={name:n.text},i=n.value;i&&(e.to={path:i}),this.famliy.unshift(e);const o=n.parent_id;o&&this.getMenuAncestor(o,t)}}))}}},[["render",function(e,t,n,i,o,s){const a=Zv(zn("uni-menu-sidebar"),aT),r=Zv(zn("uni-nav-menu"),rT),l=vm;return qo(),Go(l,null,{default:Fn((()=>[is(r,{active:n.value,activeKey:"value",activeTextColor:n.activeTextColor,uniqueOpened:n.uniqueOpened,onSelect:s.onSelect},{default:Fn((()=>[is(a,{data:o.userMenu},null,8,["data"]),is(a,{data:n.staticMenu},null,8,["data"])])),_:1},8,["active","activeTextColor","uniqueOpened","onSelect"])])),_:1})}]]),hT={data:()=>({..._b.sideBar,field:"url as value, name as text, menu_id, parent_id, sort, icon, permission",currentMenu:"/"}),computed:{...Z_("app",["inited","navMenu","active"]),userInfo(){return this.$uniIdPagesStore.store.userInfo}},watch:{$route:{immediate:!0,handler(e,t){const n=e.fullPath;n&&(this.currentMenu=this.splitFullPath(n))}},userInfo:{handler(e,t){e&&this.$nextTick((function(){this.$refs.menu.load()}))}}},methods:{...tb({setRoutes:"app/setRoutes"}),select(e,t){let n=e.value;n||(n=this.active),this.clickMenuItem(n),this.setRoutes(t),Tv()},clickMenuItem(e){if(0===e.indexOf("http"))return window.open(e);"/"!==e[0]&&0!==e.indexOf("http")&&(e="/"+e),Ry({url:e,fail:()=>{Xy({title:"提示",content:"页面 "+e+" 跳转失败",showCancel:!1})}})},splitFullPath:e=>(e||(e="/"),e.split("?")[0])}};const pT=Xv(hT,[["render",function(e,t,n,i,o,s){const a=Zv(zn("uni-data-menu"),dT),r=sm;return qo(),Go(r,{class:"sidebar","scroll-y":"true"},{default:Fn((()=>[is(a,{ref:"menu",value:o.currentMenu,staticMenu:e.staticMenu,collection:"opendb-admin-menus","page-size":500,field:o.field,where:"enable==true",orderby:"sort asc","active-text-color":"#409eff",onSelect:s.select},null,8,["value","staticMenu","field","onSelect"])])),_:1})}],["__scopeId","data-v-c6591093"]]);window.uni={},window.wx={},window.rpx2px=Bd;const fT=Object.assign({}),mT=Object.assign;window.__uniConfig=mT({globalStyle:{backgroundColor:"#F8F8F8",titleNView:!1,navigationBar:{backgroundColor:"#F8F8F8",titleText:"管理系统",type:"default",style:"custom",titleColor:"#000000"},isNVue:!1},topWindow:{path:"windows/topWindow",style:{height:"60px"},matchMedia:{minWidth:0}},leftWindow:{path:"windows/leftWindow",style:{width:"240px"}},uniIdRouter:{loginPage:"uni_modules/uni-id-pages/pages/login/login-withpwd",needLogin:["^((?!uni-id-pages/pages/login|register|retrieve).)*$"],resToLogin:!0},compilerVersion:"4.15"},{appId:"__UNI__F700081",appName:"底座数据塔",appVersion:"1.0.0",appVersionCode:"100",async:zv,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:12e5,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(fT).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return mT(e[n]||(e[n]={}),fT[t].default),e}),{}),router:{mode:"hash",base:"/admin/",assets:"assets",routerBase:"/admin/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{},window.__uniConfig.topWindow.component=Tg(xb,-1),window.__uniConfig.leftWindow.component=Tg(pT,-2);const gT={delay:zv.delay,timeout:zv.timeout,suspensible:zv.suspensible};zv.loading&&(gT.loadingComponent={name:"SystemAsyncLoading",render:()=>is(Hn(zv.loading))}),zv.error&&(gT.errorComponent={name:"SystemAsyncError",render:()=>is(Hn(zv.error))});const yT=()=>qv((()=>import("./pages-index-index.B21q3WwI.js")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10])).then((e=>Sg(e.default||e))),vT=_i(mT({loader:yT},gT)),_T=()=>qv((()=>import("./pages-demo-icons-icons.CVP5XBtE.js")),__vite__mapDeps([11,12])).then((e=>Sg(e.default||e))),bT=_i(mT({loader:_T},gT)),wT=()=>qv((()=>import("./pages-demo-table-table.CGbDIwrG.js")),__vite__mapDeps([13,14,15])).then((e=>Sg(e.default||e))),xT=_i(mT({loader:wT},gT)),kT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-login-login-withpwd.BHhhp69m.js")),__vite__mapDeps([16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32])).then((e=>Sg(e.default||e))),TT=_i(mT({loader:kT},gT)),ST=()=>qv((()=>import("./pages-error-404.ChJAzMiu.js")),[]).then((e=>Sg(e.default||e))),CT=_i(mT({loader:ST},gT)),ET=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-change_pwd-change_pwd.DepwC71Z.js")),__vite__mapDeps([33,34,35,17,18,19,20,21,22,31,36,37])).then((e=>Sg(e.default||e))),PT=_i(mT({loader:ET},gT)),DT=()=>qv((()=>import("./uni_modules-uni-upgrade-center-pages-version-list.C0ySVScu.js")),__vite__mapDeps([38,39,40,41,14,15,42,43,44])).then((e=>Sg(e.default||e))),IT=_i(mT({loader:DT},gT)),MT=()=>qv((()=>import("./uni_modules-uni-upgrade-center-pages-version-add._3mj2BH3.js")),__vite__mapDeps([45,17,18,19,20,46,39,40,47,48,49,21,22,50,43,51])).then((e=>Sg(e.default||e))),OT=_i(mT({loader:MT},gT)),AT=()=>qv((()=>import("./uni_modules-uni-upgrade-center-pages-version-detail.B9NOyTP3.js")),__vite__mapDeps([52,17,18,19,20,46,39,40,47,48,49,41,21,22,50,43,53])).then((e=>Sg(e.default||e))),LT=_i(mT({loader:AT},gT)),RT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-deactivate-deactivate.D9TMNmPX.js")),__vite__mapDeps([54,55])).then((e=>Sg(e.default||e))),$T=_i(mT({loader:RT},gT)),NT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-userinfo.2vSnCh4E.js")),__vite__mapDeps([56,57,58,26,27,59])).then((e=>Sg(e.default||e))),BT=_i(mT({loader:NT},gT)),FT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-bind-mobile-bind-mobile.BvaC1kcf.js")),__vite__mapDeps([60,34,35,17,18,61,23,24,62,63,64,65])).then((e=>Sg(e.default||e))),jT=_i(mT({loader:FT},gT)),VT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-cropImage-cropImage.DWdbIPGC.js")),__vite__mapDeps([66,67])).then((e=>Sg(e.default||e))),WT=_i(mT({loader:VT},gT)),UT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-login-login-smscode.Bc2tPHNK.js")),__vite__mapDeps([68,61,23,24,17,18,62,21,22,63,64,31,69])).then((e=>Sg(e.default||e))),HT=_i(mT({loader:UT},gT)),qT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-login-login-withoutpwd.y6ZMrwr0.js")),__vite__mapDeps([70,25,26,27,28,17,18,29,30,31,71])).then((e=>Sg(e.default||e))),zT=_i(mT({loader:qT},gT)),YT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-register-register.D5XKHlB6.js")),__vite__mapDeps([72,34,35,17,18,19,20,23,24,25,26,27,28,21,22,73,36,31,74])).then((e=>Sg(e.default||e))),XT=_i(mT({loader:YT},gT)),KT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-register-register-admin.BllrOvNQ.js")),__vite__mapDeps([75,34,35,17,18,19,20,25,26,27,28,21,22,73,36,31,76])).then((e=>Sg(e.default||e))),GT=_i(mT({loader:KT},gT)),JT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-register-register-by-email.Zzhk8Ine.js")),__vite__mapDeps([77,34,35,17,18,19,20,78,23,24,79,25,26,27,28,21,22,73,36,31,80])).then((e=>Sg(e.default||e))),QT=_i(mT({loader:JT},gT)),ZT=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-retrieve-retrieve.DaMQBH-w.js")),__vite__mapDeps([81,34,35,17,18,19,20,61,23,24,62,21,22,63,64,31,82])).then((e=>Sg(e.default||e))),eS=_i(mT({loader:ZT},gT)),tS=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-retrieve-retrieve-by-email.BeVFguEJ.js")),__vite__mapDeps([83,34,35,17,18,19,20,78,23,24,79,21,22,63,64,31,36,84])).then((e=>Sg(e.default||e))),nS=_i(mT({loader:tS},gT)),iS=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-common-webview-webview.BJ_quKWV.js")),[]).then((e=>Sg(e.default||e))),oS=_i(mT({loader:iS},gT)),sS=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-set-pwd-set-pwd.xaFKKGcM.js")),__vite__mapDeps([85,34,35,17,18,19,20,61,23,24,62,21,22,63,64,36,86])).then((e=>Sg(e.default||e))),aS=_i(mT({loader:sS},gT)),rS=()=>qv((()=>import("./uni_modules-uni-id-pages-pages-userinfo-realname-verify-realname-verify.wzZzKlnN.js")),__vite__mapDeps([87,57,58,17,18,19,20,21,22,25,26,27,28,31,88])).then((e=>Sg(e.default||e))),lS=_i(mT({loader:rS},gT)),cS=()=>qv((()=>import("./pages-system-menu-list.DcSUD1gw.js")),__vite__mapDeps([89,1,2,42,90])).then((e=>Sg(e.default||e))),uS=_i(mT({loader:cS},gT)),dS=()=>qv((()=>import("./pages-system-menu-add.Dg1i57Ac.js")),__vite__mapDeps([91,17,18,19,20,92,93,46,39,40,47,21,22,94,11,12,95])).then((e=>Sg(e.default||e))),hS=_i(mT({loader:dS},gT)),pS=()=>qv((()=>import("./pages-system-menu-edit.x8jm0RjM.js")),__vite__mapDeps([96,17,18,19,20,92,93,46,39,40,47,21,22,94,11,12,97])).then((e=>Sg(e.default||e))),fS=_i(mT({loader:pS},gT)),mS=()=>qv((()=>import("./pages-system-permission-list.uU3W5VEi.js")),__vite__mapDeps([98,1,2,99,41,14,15,42,100])).then((e=>Sg(e.default||e))),gS=_i(mT({loader:mS},gT)),yS=()=>qv((()=>import("./pages-system-permission-add.CeVbARJV.js")),__vite__mapDeps([101,19,20,21,22,100,102])).then((e=>Sg(e.default||e))),vS=_i(mT({loader:yS},gT)),_S=()=>qv((()=>import("./pages-system-permission-edit.CjGINnnT.js")),__vite__mapDeps([103,17,18,19,20,21,22,100,104])).then((e=>Sg(e.default||e))),bS=_i(mT({loader:_S},gT)),wS=()=>qv((()=>import("./pages-system-role-add.CDfuQjLQ.js")),__vite__mapDeps([105,17,18,19,20,46,39,40,47,21,22,106,107])).then((e=>Sg(e.default||e))),xS=_i(mT({loader:wS},gT)),kS=()=>qv((()=>import("./pages-system-role-edit.CLhvLxeS.js")),__vite__mapDeps([108,17,18,19,20,46,39,40,47,21,22,106,109])).then((e=>Sg(e.default||e))),TS=_i(mT({loader:kS},gT)),SS=()=>qv((()=>import("./pages-system-role-list.CQa0BMFw.js")),__vite__mapDeps([110,1,2,99,41,14,15,42,106])).then((e=>Sg(e.default||e))),CS=_i(mT({loader:SS},gT)),ES=()=>qv((()=>import("./pages-system-user-add.B8RBs7G9.js")),__vite__mapDeps([111,17,18,19,20,46,39,40,47,21,22,112,113])).then((e=>Sg(e.default||e))),PS=_i(mT({loader:ES},gT)),DS=()=>qv((()=>import("./pages-system-user-edit.CpLrxTE0.js")),__vite__mapDeps([114,17,18,19,20,46,39,40,47,21,22,112,115])).then((e=>Sg(e.default||e))),IS=_i(mT({loader:DS},gT)),MS=()=>qv((()=>import("./pages-system-user-list.BSxF4iLC.js")),__vite__mapDeps([116,1,2,99,92,93,117,118,119,19,20,17,18,21,22,120,41,14,15,42,46,39,40,47,112,121])).then((e=>Sg(e.default||e))),OS=_i(mT({loader:MS},gT)),AS=()=>qv((()=>import("./pages-system-app-add.CWQeoYAP.js")),__vite__mapDeps([122,3,4,17,18,19,20,48,49,21,22,123,124])).then((e=>Sg(e.default||e))),LS=_i(mT({loader:AS},gT)),RS=()=>qv((()=>import("./pages-system-app-list.4yfiGbIq.js")),__vite__mapDeps([125,1,2,41,14,15,42,123])).then((e=>Sg(e.default||e))),$S=_i(mT({loader:RS},gT)),NS=()=>qv((()=>import("./pages-system-app-uni-portal-uni-portal.1_AhzoHL.js")),__vite__mapDeps([126,127])).then((e=>Sg(e.default||e))),BS=_i(mT({loader:NS},gT)),FS=()=>qv((()=>import("./pages-system-tag-add.DolVf7uo.js")),__vite__mapDeps([128,17,18,19,20,21,22,129,130])).then((e=>Sg(e.default||e))),jS=_i(mT({loader:FS},gT)),VS=()=>qv((()=>import("./pages-system-tag-edit.BLWsYfBy.js")),__vite__mapDeps([131,17,18,19,20,21,22,129,132])).then((e=>Sg(e.default||e))),WS=_i(mT({loader:VS},gT)),US=()=>qv((()=>import("./pages-system-tag-list.DjeGJrEY.js")),__vite__mapDeps([133,1,2,99,117,118,119,19,20,17,18,21,22,120,41,14,15,42,129])).then((e=>Sg(e.default||e))),HS=_i(mT({loader:US},gT)),qS=()=>qv((()=>import("./pages-system-safety-list.B6iCxA-5.js")),__vite__mapDeps([134,1,2,41,14,15,42])).then((e=>Sg(e.default||e))),zS=_i(mT({loader:qS},gT)),YS=()=>qv((()=>import("./pages-uni-stat-page-res-page-res.Cxv6Rc7x.js")),__vite__mapDeps([135,1,2,118,119,5,6,7,8,136,137,14,15,26,27,9,138])).then((e=>Sg(e.default||e))),XS=_i(mT({loader:YS},gT)),KS=()=>qv((()=>import("./pages-uni-stat-page-ent-page-ent.DQF6TaZN.js")),__vite__mapDeps([139,1,2,118,119,5,6,7,8,136,137,14,15,9,140])).then((e=>Sg(e.default||e))),GS=_i(mT({loader:KS},gT)),JS=()=>qv((()=>import("./pages-uni-stat-page-content-page-content.DuVg7kNH.js")),__vite__mapDeps([141,1,2,118,119,5,6,7,8,136,137,14,15,26,27,9,142])).then((e=>Sg(e.default||e))),QS=_i(mT({loader:JS},gT)),ZS=()=>qv((()=>import("./pages-uni-stat-page-rule-page-rule.8UsmwEXL.js")),__vite__mapDeps([143,1,2,118,119,14,15,42,3,4,144])).then((e=>Sg(e.default||e))),eC=_i(mT({loader:ZS},gT)),tC=()=>qv((()=>import("./pages-uni-stat-scene-scene.BONPpu__.js")),__vite__mapDeps([145,1,2,118,119,5,6,7,8,136,137,146,147,148,149,14,15,9,150])).then((e=>Sg(e.default||e))),nC=_i(mT({loader:tC},gT)),iC=()=>qv((()=>import("./pages-uni-stat-channel-channel.Cdvgw_cn.js")),__vite__mapDeps([151,1,2,92,93,118,119,5,6,7,8,136,137,146,147,14,15,26,27,9,152])).then((e=>Sg(e.default||e))),oC=_i(mT({loader:iC},gT)),sC=()=>qv((()=>import("./pages-uni-stat-error-js-js.BZ2-SkmO.js")),__vite__mapDeps([153,1,2,118,119,5,6,7,8,136,137,146,147,14,15,39,40,9,154,155])).then((e=>Sg(e.default||e))),aC=_i(mT({loader:sC},gT)),rC=()=>qv((()=>import("./pages-uni-stat-error-js-detail.Y1E6ZfJj.js")),__vite__mapDeps([156,148,6,7,149,14,15,9,154,157])).then((e=>Sg(e.default||e))),lC=_i(mT({loader:rC},gT)),cC=()=>qv((()=>import("./pages-uni-stat-error-app-app.D4OaUn1l.js")),__vite__mapDeps([158,1,2,118,119,5,6,7,8,136,137,146,147,99,41,14,15,42,9,159])).then((e=>Sg(e.default||e))),uC=_i(mT({loader:cC},gT)),dC=()=>qv((()=>import("./pages-uni-stat-event-event.BEeNMC5S.js")),__vite__mapDeps([160,1,2,92,93,118,119,5,6,7,8,17,18,14,15,26,27,9,161])).then((e=>Sg(e.default||e))),hC=_i(mT({loader:dC},gT)),pC=()=>qv((()=>import("./pages-uni-stat-device-overview-overview.CKkFetB9.js")),__vite__mapDeps([162,1,2,118,119,5,6,7,8,136,137,146,147,9,163])).then((e=>Sg(e.default||e))),fC=_i(mT({loader:pC},gT)),mC=()=>qv((()=>import("./pages-uni-stat-device-activity-activity.B5b6rmQS.js")),__vite__mapDeps([164,1,2,118,119,5,6,7,8,146,147,148,149,14,15,9])).then((e=>Sg(e.default||e))),gC=_i(mT({loader:mC},gT)),yC=()=>qv((()=>import("./pages-uni-stat-device-trend-trend.C-z3DqG-.js")),__vite__mapDeps([165,1,2,118,119,5,6,7,8,136,137,146,147,148,149,14,15,9])).then((e=>Sg(e.default||e))),vC=_i(mT({loader:yC},gT)),_C=()=>qv((()=>import("./pages-uni-stat-device-retention-retention.C9qXxccW.js")),__vite__mapDeps([166,1,2,118,119,5,6,7,8,146,147,14,15,9,167])).then((e=>Sg(e.default||e))),bC=_i(mT({loader:_C},gT)),wC=()=>qv((()=>import("./pages-uni-stat-device-comparison-comparison.BYJhDl8A.js")),__vite__mapDeps([168,1,2,118,119,146,147,9,169])).then((e=>Sg(e.default||e))),xC=_i(mT({loader:wC},gT)),kC=()=>qv((()=>import("./pages-uni-stat-device-stickiness-stickiness.CMjLNKUN.js")),__vite__mapDeps([170,1,2,118,119,5,6,7,8,146,147,148,149,9,171])).then((e=>Sg(e.default||e))),TC=_i(mT({loader:kC},gT)),SC=()=>qv((()=>import("./pages-uni-stat-user-overview-overview.BnYES-Se.js")),__vite__mapDeps([172,1,2,118,119,5,6,7,8,136,137,146,147,9,173])).then((e=>Sg(e.default||e))),CC=_i(mT({loader:SC},gT)),EC=()=>qv((()=>import("./pages-uni-stat-user-activity-activity.CFDH3fP9.js")),__vite__mapDeps([174,1,2,118,119,5,6,7,8,146,147,148,149,14,15,9])).then((e=>Sg(e.default||e))),PC=_i(mT({loader:EC},gT)),DC=()=>qv((()=>import("./pages-uni-stat-user-trend-trend.DfmffMck.js")),__vite__mapDeps([175,1,2,118,119,5,6,7,8,136,137,146,147,148,149,14,15,9])).then((e=>Sg(e.default||e))),IC=_i(mT({loader:DC},gT)),MC=()=>qv((()=>import("./pages-uni-stat-user-retention-retention.ByYUofDz.js")),__vite__mapDeps([176,1,2,118,119,5,6,7,8,146,147,14,15,9,177])).then((e=>Sg(e.default||e))),OC=_i(mT({loader:MC},gT)),AC=()=>qv((()=>import("./pages-uni-stat-user-comparison-comparison.BiPvt_7b.js")),__vite__mapDeps([178,1,2,118,119,146,147,9,179])).then((e=>Sg(e.default||e))),LC=_i(mT({loader:AC},gT)),RC=()=>qv((()=>import("./pages-uni-stat-user-stickiness-stickiness.BpmMIIlL.js")),__vite__mapDeps([180,1,2,118,119,5,6,7,8,146,147,148,149,9,181])).then((e=>Sg(e.default||e))),$C=_i(mT({loader:RC},gT)),NC=()=>qv((()=>import("./pages-uni-stat-pay-order-overview-overview.CUvTtTyF.js")),__vite__mapDeps([182,1,2,118,119,5,6,7,8,9,183,146,147,184])).then((e=>Sg(e.default||e))),BC=_i(mT({loader:NC},gT)),FC=()=>qv((()=>import("./pages-uni-stat-pay-order-list-list.w-fnaQwp.js")),__vite__mapDeps([185,1,2,99,5,6,7,8,41,14,15,42,17,18,19,20,21,22,186,9,187])).then((e=>Sg(e.default||e))),jC=_i(mT({loader:FC},gT)),VC=()=>qv((()=>import("./pages-uni-stat-pay-order-funnel-funnel.DGYbTP1H.js")),__vite__mapDeps([188,1,2,118,119,5,6,7,8,9,183,146,147,189])).then((e=>Sg(e.default||e))),WC=_i(mT({loader:VC},gT)),UC=()=>qv((()=>import("./pages-uni-stat-pay-order-ranking-ranking.BGJyA4lC.js")),__vite__mapDeps([190,1,2,99,118,119,5,6,7,8,14,15,42,186,9,183,191])).then((e=>Sg(e.default||e))),HC=_i(mT({loader:UC},gT));function qC(e,t){return qo(),Go(Wv,null,{page:Fn((()=>[is(e,mT({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(vT,t)}},loader:yT,meta:{isQuit:!0,isEntry:!0,navigationBar:{},isNVue:!1}},{path:"/pages/demo/icons/icons",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(bT,t)}},loader:_T,meta:{navigationBar:{titleText:"图标",type:"default"},isNVue:!1}},{path:"/pages/demo/table/table",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(xT,t)}},loader:wT,meta:{navigationBar:{titleText:"表格",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/login/login-withpwd",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(TT,t)}},loader:kT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/error/404",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(CT,t)}},loader:ST,meta:{navigationBar:{titleText:"Not Found",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/change_pwd/change_pwd",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(PT,t)}},loader:ET,meta:{navigationBar:{titleText:"修改密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-upgrade-center/pages/version/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(IT,t)}},loader:DT,meta:{navigationBar:{titleText:"版本列表",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-upgrade-center/pages/version/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(OT,t)}},loader:MT,meta:{navigationBar:{titleText:"新版发布",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-upgrade-center/pages/version/detail",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(LT,t)}},loader:AT,meta:{navigationBar:{titleText:"版本信息查看",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/deactivate/deactivate",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC($T,t)}},loader:RT,meta:{navigationBar:{titleText:"注销账号",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/userinfo",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(BT,t)}},loader:NT,meta:{navigationBar:{titleText:"个人资料",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/bind-mobile/bind-mobile",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(jT,t)}},loader:FT,meta:{navigationBar:{titleText:"绑定手机号码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/cropImage/cropImage",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(WT,t)}},loader:VT,meta:{navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/login/login-smscode",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(HT,t)}},loader:UT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"手机验证码登录",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/login/login-withoutpwd",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(zT,t)}},loader:qT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"免密登录页",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/register/register",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(XT,t)}},loader:YT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"注册",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/register/register-admin",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(GT,t)}},loader:KT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"创建超级管理员",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/register/register-by-email",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(QT,t)}},loader:JT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"邮箱验证码注册",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/retrieve/retrieve",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(eS,t)}},loader:ZT,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"重置密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/retrieve/retrieve-by-email",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(nS,t)}},loader:tS,meta:{topWindow:!1,leftWindow:!1,navigationBar:{titleText:"通过邮箱重置密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/common/webview/webview",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(oS,t)}},loader:iS,meta:{topWindow:!1,leftWindow:!1,enablePullDownRefresh:!1,navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(aS,t)}},loader:sS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"设置密码",type:"default"},isNVue:!1}},{path:"/uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(lS,t)}},loader:rS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"实名认证",type:"default"},isNVue:!1}},{path:"/pages/system/menu/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(uS,t)}},loader:cS,meta:{navigationBar:{titleText:"菜单管理",type:"default"},isNVue:!1}},{path:"/pages/system/menu/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(hS,t)}},loader:dS,meta:{navigationBar:{titleText:"新增菜单",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/menu/edit",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(fS,t)}},loader:pS,meta:{navigationBar:{titleText:"修改菜单",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/permission/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(gS,t)}},loader:mS,meta:{navigationBar:{titleText:"权限管理",type:"default"},isNVue:!1}},{path:"/pages/system/permission/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(vS,t)}},loader:yS,meta:{navigationBar:{titleText:"新增权限",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/permission/edit",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(bS,t)}},loader:_S,meta:{navigationBar:{titleText:"修改权限",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/role/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(xS,t)}},loader:wS,meta:{navigationBar:{titleText:"新增角色",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/role/edit",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(TS,t)}},loader:kS,meta:{navigationBar:{titleText:"修改角色",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/role/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(CS,t)}},loader:SS,meta:{navigationBar:{titleText:"角色管理",type:"default"},isNVue:!1}},{path:"/pages/system/user/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(PS,t)}},loader:ES,meta:{navigationBar:{titleText:"新增用户",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/user/edit",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(IS,t)}},loader:DS,meta:{navigationBar:{titleText:"修改用户",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/user/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(OS,t)}},loader:MS,meta:{navigationBar:{titleText:"用户管理",type:"default"},isNVue:!1}},{path:"/pages/system/app/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(LS,t)}},loader:AS,meta:{navigationBar:{titleText:"新增应用",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/app/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC($S,t)}},loader:RS,meta:{navigationBar:{titleText:"应用管理",type:"default"},isNVue:!1}},{path:"/pages/system/app/uni-portal/uni-portal",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(BS,t)}},loader:NS,meta:{navigationBar:{titleText:"发布页管理",style:"default",type:"default"},isNVue:!1}},{path:"/pages/system/tag/add",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(jS,t)}},loader:FS,meta:{navigationBar:{titleText:"新增标签",type:"default"},isNVue:!1}},{path:"/pages/system/tag/edit",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(WS,t)}},loader:VS,meta:{navigationBar:{titleText:"修改标签",type:"default"},isNVue:!1}},{path:"/pages/system/tag/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(HS,t)}},loader:US,meta:{navigationBar:{titleText:"标签管理",type:"default"},isNVue:!1}},{path:"/pages/system/safety/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(zS,t)}},loader:qS,meta:{navigationBar:{titleText:"用户日志",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/page-res/page-res",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(XS,t)}},loader:YS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"受访页",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/page-ent/page-ent",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(GS,t)}},loader:KS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"入口页",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/page-content/page-content",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(QS,t)}},loader:JS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"内容统计",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/page-rule/page-rule",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(eC,t)}},loader:ZS,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"页面规则",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/scene/scene",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(nC,t)}},loader:tC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"场景值(小程序)",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/channel/channel",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(oC,t)}},loader:iC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"渠道(app)",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/error/js/js",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(aC,t)}},loader:sC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"js报错统计",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/error/js/detail",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(lC,t)}},loader:rC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"错误信息",style:"default",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/error/app/app",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(uC,t)}},loader:cC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"app原生报错统计",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/event/event",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(hC,t)}},loader:dC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"事件和转化",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/overview/overview",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(fC,t)}},loader:pC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"今日概况",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/activity/activity",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(gC,t)}},loader:mC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"活跃度",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/trend/trend",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(vC,t)}},loader:yC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"趋势分析",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/retention/retention",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(bC,t)}},loader:_C,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"留存",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/comparison/comparison",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(xC,t)}},loader:wC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"平台对比",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/device/stickiness/stickiness",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(TC,t)}},loader:kC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"粘性",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/overview/overview",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(CC,t)}},loader:SC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"今日概况",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/activity/activity",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(PC,t)}},loader:EC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"活跃度",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/trend/trend",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(IC,t)}},loader:DC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"趋势分析",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/retention/retention",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(OC,t)}},loader:MC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"留存",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/comparison/comparison",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(LC,t)}},loader:AC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"平台对比",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/user/stickiness/stickiness",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC($C,t)}},loader:RC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"粘性",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/overview/overview",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(BC,t)}},loader:NC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"订单概况",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/list/list",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(jC,t)}},loader:FC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"订单明细",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/funnel/funnel",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(WC,t)}},loader:VC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"漏斗分析",type:"default"},isNVue:!1}},{path:"/pages/uni-stat/pay-order/ranking/ranking",component:{setup(){const e=bg(),t=e&&e.$route&&e.$route.query||{};return()=>qC(HC,t)}},loader:UC,meta:{enablePullDownRefresh:!1,navigationBar:{titleText:"用户价值排行",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const zC="uni-admin-theme";const YC={init:function(e={}){let{provider:t}=e,n=t,i=new XC(e);const o=tT.uploadFile;tT.uploadFile=(...e)=>{let n=e[0]||{},{provider:s=t}=n;return"extStorage"===s?i.uploadFile(...e):o(...e)};const s=tT.getTempFileURL;tT.getTempFileURL=(...e)=>{let n=e[0]||{},{provider:o=t}=n;return"extStorage"===o?i.getTempFileURL(...e):s(...e)};const a=tT.deleteFile;tT.deleteFile=(...e)=>{let n=e[0]||{},{provider:o=t}=n;return"extStorage"===o?i.deleteFile(...e):a(...e)},tT.setCloudStorage=(e={})=>{let{provider:o,domain:s,fileID2fileURL:a}=e;null===o?t=n:o&&(t=o),s&&(i.domain=s),a&&(i.fileID2fileURL=a)}}};class XC{constructor(e={}){let{uploadFileOptions:t,domain:n,fileID2fileURL:i}=e;this.uploadFileOptions=t,this.domain=n,this.fileID2fileURL=i}uploadFile(e){let{filePath:t,cloudPath:n}=e;const i=new Promise((async(i,o)=>{try{const s=await this.uploadFileOptions({cloudPath:n,domain:this.domain});My({...s.uploadFileOptions,filePath:t,success:()=>{const t={cloudPath:s.cloudPath,fileID:s.fileID,fileURL:s.fileURL};this.fileID2fileURL&&(t.fileID=`https://${this.domain}/${t.cloudPath}`),"function"==typeof e.success&&e.success(t),i(t)},fail:t=>{"function"==typeof e.fail&&e.fail(t),o(t)},complete:()=>{"function"==typeof e.complete&&e.complete()}}).onProgressUpdate((t=>{if("function"==typeof e.onUploadProgress){const n=t.totalBytesExpectedToSend,i=t.totalBytesSent,o=Math.round(100*i/n);e.onUploadProgress({total:n,loaded:i,progress:o})}}))}catch(s){"function"==typeof e.fail&&e.fail(s),o(s),"function"==typeof e.complete&&e.complete()}}));return i.catch((()=>{})),i}getTempFileURL(e={}){let{fileList:t}=e;return new Promise(((n,i)=>{let o={fileList:t.map(((e,t)=>{let n=function(e){const t="qiniu://";if(0===e.indexOf(t))e=e.substring(t.length);else if(0===e.indexOf("http://")||0===e.indexOf("https://")){let t=e.indexOf("://")+3;t=e.indexOf("/",t);let n=-1===e.indexOf("?")?e.length:e.indexOf("?");n=-1!==e.indexOf("#")&&e.indexOf("#")<n?e.indexOf("#"):n,e=e.substring(t+1,n)}return e}(e);return{fileID:e,tempFileURL:`https://${this.domain}/${n}`}}))};"function"==typeof e.success&&e.success(o),n(o),"function"==typeof e.complete&&e.complete()}))}deleteFile(e={}){return new Promise(((t,n)=>{let i={fileList:[]};"function"==typeof e.success&&e.success(i),t(i),"function"==typeof e.complete&&e.complete()}))}}const KC={created(){this.clear=void 0},methods:{...eb("app",["SET_THEME"]),...tb({init:"app/init"}),clearPlatform(){const e=ey().keys.filter((e=>e.indexOf("platform")>-1));e.length&&e.forEach((e=>Jg(e)))}},onPageNotFound(e){Ry({url:_b.error.url})},onLaunch:function(){console.log("%c uni-admin %c v2.4.8 ","background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px; color: #fff","background:#007aff ;padding: 1px; border-radius: 0 3px 3px 0; color: #fff; font-weight: bold;"),console.log("App Launch"),this.$uniIdPagesStore.store.hasLogin&&this.init(),Wd("uni-id-pages-login-success",(()=>{this.init()})),this.SET_THEME(Gg(zC)||"default"),YC.init({provider:"unicloud",domain:"cdn.example.com",fileID2fileURL:!0,uploadFileOptions:async e=>{const t=tT.importObject("ext-storage-co");return await t.getUploadFileOptions(e)}})},onShow:function(){console.log("App Show"),this.clear=setInterval((()=>this.clearPlatform()),9e5)},onHide:function(){console.log("App Hide"),this.clear&&clearInterval(this.clear)}};kg(KC,{init:wg,setup(e){const t=Bm(),n=()=>{var n;n=e,Object.keys(Mh).forEach((e=>{Mh[e].forEach((t=>{Li(e,t,n)}))}));const{onLaunch:i,onShow:o,onPageNotFound:s,onError:a}=e,l=function({path:e,query:t}){return r(wp,{path:e,query:t}),r(xp,wp),r({},wp)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:xe(t.query)});if(i&&A(i,l),o&&A(o,l),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};s&&A(s,e)}a&&(e.appContext.config.errorHandler=e=>{A(a,e)})};return _o(hl).isReady().then(n),Ni((()=>{window.addEventListener("resize",Se(Cg,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",Eg),document.addEventListener("visibilitychange",Pg),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{Nv.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=()=>(qo(),Go(xv));e.setup=(e,i)=>{const o=t&&t(e,i);return m(o)?n:o},e.render=n}});const GC={namespaced:!0,state:{inited:!1,navMenu:[],routes:[],theme:Gg(zC)||"default",appName:"底座数据塔",appid:"__UNI__F700081"},mutations:{SET_APP_NAME:(e,t)=>{e.appName=t},SET_NAV_MENU:(e,t)=>{e.inited=!0,e.navMenu=t},SET_ROUTES:(e,t)=>{e.routes=t},SET_THEME:(e,t)=>{document.getElementsByTagName("body")[0].setAttribute("data-theme",t),Xg(zC,t),e.theme=t}},actions:{init({commit:e,dispatch:t}){t("user/getUserInfo",null,{root:!0})},setAppName({commit:e},t){e("SET_APP_NAME",t)},setRoutes({commit:e},t){e("SET_ROUTES",t)}}},JC={namespaced:!0,state:{logs:[]},mutations:{ADD_ERROR_LOG:(e,t)=>{e.logs.unshift(t)},CLEAR_ERROR_LOG:e=>{e.logs.splice(0)}},actions:{add({commit:e},t){if(!t.route){const e=Gm();e.length&&(t.route=e[e.length-1].route)}t.route="/"+(t.route||""),e("ADD_ERROR_LOG",t)},clear({commit:e}){e("CLEAR_ERROR_LOG")}}},QC={debug:!1,isAdmin:!0,loginTypes:["username"],appid:{weixin:{h5:"xxxxxx",web:"xxxxxx"}},passwordStrength:"medium"},ZC=tT.importObject("uni-id-co"),eE=tT.database().collection("uni-id-users");let tE=Gg("uni-id-pages-userInfo")||{};const nE={userInfo:tE,hasLogin:0!=Object.keys(tE).length},iE={async updateUserInfo(e=!1){if(e)eE.where("_id==$env.uid").update(e).then((t=>{t.result.updated?(ov({title:"更新成功",icon:"none",duration:3e3}),this.setUserInfo(e)):ov({title:"没有改变",icon:"none",duration:3e3})}));else{const e=tT.importObject("uni-id-co",{customUI:!0});try{let n,i=await eE.where("'_id' == $cloudEnv_uid").field("mobile,nickname,username,email,avatar_file").get();try{n=await e.getRealNameInfo()}catch(t){}this.setUserInfo({...i.result.data[0],realNameAuth:n})}catch(Mw){this.setUserInfo({},{cover:!0}),console.error(Mw.message,Mw.errCode)}}},async setUserInfo(e,{cover:t}={cover:!1}){let n=t?e:Object.assign(oE.userInfo,e);return oE.userInfo=Object.assign({},n),oE.hasLogin=0!=Object.keys(oE.userInfo).length,Xg("uni-id-pages-userInfo",oE.userInfo),e},async logout(){if(tT.getCurrentUserInfo().tokenExpired>Date.now())try{await ZC.logout()}catch(Mw){console.error(Mw)}Jg("uni_id_token"),Xg("uni_id_token_expired",0),Ry({url:`/${kb.uniIdRouter&&kb.uniIdRouter.loginPage?kb.uniIdRouter.loginPage:"uni_modules/uni-id-pages/pages/login/login-withoutpwd"}`}),Hd("uni-id-pages-logout"),this.setUserInfo({},{cover:!0})},loginBack(e={}){const{uniIdRedirectUrl:t=""}=e;let n=0,i=Gm();if(i.forEach(((e,t)=>{"login"==i[i.length-t-1].route.split("/")[3]&&n++})),t)return Ry({url:t,fail:e=>{By({url:t,fail:t=>{console.log(e,t)}})}});if("weixin"==e.loginType)return window.history.go(-3);if(n){const e=kb.pages[0];return $y({url:`/${e.path}`})}Oy({delta:n})},loginSuccess(e={}){const{showToast:t=!0,toastText:n="登录成功",autoBack:i=!0,uniIdRedirectUrl:o="",passwordConfirmed:s}=e;if(t&&ov({title:n,icon:"none",duration:3e3}),this.updateUserInfo(),Hd("uni-id-pages-login-success"),QC.setPasswordAfterLogin&&!s)return Ry({url:o?`/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd?uniIdRedirectUrl=${o}&loginType=${e.loginType}`:`/uni_modules/uni-id-pages/pages/userinfo/set-pwd/set-pwd?loginType=${e.loginType}`,fail:e=>{console.log(e)}});i&&this.loginBack({uniIdRedirectUrl:o})}},oE=Wt(nE),sE=Object.freeze(Object.defineProperty({__proto__:null,mutations:iE,store:oE},Symbol.toStringTag,{value:"Module"})),aE=new J_({modules:{app:GC,error:JC,user:{namespaced:!0,state:{},mutations:{},actions:{getUserInfo:({commit:e})=>tT.database().collection("uni-id-users").where("_id==$cloudEnv_uid").field("username,nickname,mobile,email,role,permission").get().then((({result:e})=>{const[t]=e.data;return iE.setUserInfo(t,!0),Promise.resolve(t)}))}}}});function rE(e,t=2){for(e+="";e.length<t;)e="0"+e;return e.slice(-t)}const lE={yyyy:e=>rE(e.year,4),yy:e=>rE(e.year),MM:e=>rE(e.month),M:e=>e.month,dd:e=>rE(e.day),d:e=>e.day,hh:e=>rE(e.hour),h:e=>e.hour,mm:e=>rE(e.minute),m:e=>e.minute,ss:e=>rE(e.second),s:e=>e.second,SSS:e=>rE(e.millisecond,3),S:e=>e.millisecond};function cE(e){return e instanceof Date?e:"string"==typeof e?e.indexOf("T")>-1?new Date(e):new Date(e.replace(/-/g,"/")):new Date(e)}function uE(e,t="yyyy/MM/dd hh:mm:ss"){if(!e&&0!==e)return"";const n={year:(e=cE(e)).getFullYear(),month:e.getMonth()+1,day:e.getDate(),hour:e.getHours(),minute:e.getMinutes(),second:e.getSeconds(),millisecond:e.getMilliseconds()},i=/yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/;let o=!0,s=t;for(;o;)o=!1,s=s.replace(i,(function(e){return o=!0,lE[e](n)}));return s}function dE(e,{locale:t="zh",threshold:n=[6e4,36e5],format:i="yyyy/MM/dd hh:mm:ss"}){if("-"===e)return e;if(!e&&0!==e)return"";const o={zh:{year:"年",month:"月",day:"天",hour:"小时",minute:"分钟",second:"秒",ago:"前",later:"后",justNow:"刚刚",soon:"马上",template:"{num}{unit}{suffix}"},en:{year:"year",month:"month",day:"day",hour:"hour",minute:"minute",second:"second",ago:"ago",later:"later",justNow:"just now",soon:"soon",template:"{num} {unit} {suffix}"}},s=o[t]||o.zh;let a,r,l=cE(e),c=l.getTime()-Date.now(),u=Math.abs(c);if(u<n[0])return c<0?s.justNow:s.soon;if(u>=n[1])return uE(l,i);let d=s.later;c<0&&(d=s.ago,c=-c);const h=Math.floor(c/1e3),p=Math.floor(h/60),f=Math.floor(p/60),m=Math.floor(f/24),g=Math.floor(m/30),y=Math.floor(g/12);switch(!0){case y>0:a=y,r=s.year;break;case g>0:a=g,r=s.month;break;case m>0:a=m,r=s.day;break;case f>0:a=f,r=s.hour;break;case p>0:a=p,r=s.minute;break;default:a=h,r=s.second}return"en"===t&&(1===a?a="a":r+="s"),s.template.replace(/{\s*num\s*}/g,a+"").replace(/{\s*unit\s*}/g,r).replace(/{\s*suffix\s*}/g,d)}function hE(e){const t=["B","KB","MB","GB","TB"];if(0==e)return"n/a";const n=parseInt(Math.floor(Math.log(e)/Math.log(1024)));return 0==n?e+" "+t[n]:(e/Math.pow(1024,n)).toFixed(1)+" "+t[n]}const pE=_b.navBar.debug;function fE(e,t,n){const{objectName:i,functionName:o,showModal:s,...a}=Object.assign({objectName:"uni-id-co",functionName:"",showModal:!1,customUI:!0,loadingOptions:{title:"xxx"}},n);let r;if(o)r=tT.callFunction({name:o,data:{action:e,params:t}});else{r=tT.importObject(i,a)[e](t)}return r.then((e=>(e=o?e.result:e)&&e.errCode?Promise.reject(e):Promise.resolve(e))).catch((t=>{s&&Xy({content:t.errMsg||"请求服务失败",showCancel:!1});const n=location.hash.split("#")[1];return pE&&!0===pE.enable&&-1===["/uni_modules/uni-id-pages/pages/login/login-withpwd","/uni_modules/uni-id-pages/pages/register/register"].indexOf(n)&&aE.dispatch("error/add",{err:t.toString(),info:'$request("'+e+'")',route:"",time:(new Date).toLocaleTimeString()}),Promise.reject(t)}))}function mE(e){return Promise.resolve([])}tT.database();const gE={install(e){var t;(t=e).config.globalProperties.$formatDate=uE,t.config.globalProperties.$formatBytes=hE,function(e){const t=_b.navBar.debug;if(t&&!0===t.enable){const t=e.config.errorHandler;e.config.errorHandler=function(e,n,i){console.error(e);const o=n.$page&&n.$page.route;return aE.dispatch("error/add",{err:e.toString(),info:i,route:o,time:(new Date).toLocaleTimeString()}),t&&t(e,n,i)}}}(e),function(e){e.config.globalProperties.$uniIdPagesStore=sE}(e),function(e){e.config.globalProperties.$request=fE}(e),function(e){e.config.globalProperties.$fetch=mE}(e),function(e){e.config.globalProperties.$hasPermission=function(e){const t=this.$uniIdPagesStore.store.userInfo.permission||[];return(this.$uniIdPagesStore.store.userInfo.role||[]).indexOf("admin")>-1||t.indexOf(e)>-1},e.config.globalProperties.$hasRole=function(e){return(this.$uniIdPagesStore.store.userInfo.role||[]).indexOf(e)>-1}}(e),jd("navigateTo",{fail:({errMsg:e})=>{-1!==e.indexOf("is not found")&&Ly({url:_b.error.url+"?errMsg="+e})}})}},yE={en:{login:{text:{title:"System Login",prompt:"If there is no administrator account, please create an administrator first..."},field:{username:"Account",password:"Password",captcha:"Captcha"},button:{login:"Log In"}},topwindow:{text:{doc:"Admin doc",plugin:"More admin plugin",changeLanguage:"Language",changePwd:"ChangePwd",signOut:"Sign out"}},index:{text:{prompt:"Main content, customizable content and style",vesion:"The current version can be viewed in the console and package.json"}},updatePwd:{text:{title:"Change Password"},field:{oldPassword:"Old password",newPassword:"New password",passwordConfirmation:"Confirm password"},button:{save:"Save",back:"Back"}},common:{placeholder:{query:"Enter search content"},button:{search:"Search",add:"Add",edit:"Edit",delete:"Delete",batchDelete:"Batch Delete",exportExcel:"Export Excel",submit:"Submit",back:"Back",tagManager:"Tag Manager",publish:"Publish page management",version:"version manager",sendSMS:"Send SMS"},empty:"No more data",piecePerPage:"piece/page"},user:{text:{userManager:"Users Manager"}},role:{text:{roleManager:"Roles Manager"}},permission:{text:{permissionManager:"Permissions Manager"}},app:{text:{appManager:"App Manager",describle:"Manage the apps that users can login"}},menu:{text:{menuManager:"Menus Manager",additiveMenu:"Additive Menu"},button:{addFirstLevelMenu:"Add First-level Menu",addChildMenu:"Submenu",updateBuiltInMenu:"Update built-in Menu"}},demo:{icons:{title:"Icons",describle:"Click icons to copy the icon code"},table:{title:"Table"}}},"zh-Hans":{login:{text:{title:"系统登录",prompt:"如无管理员账号,请先创建管理员"},field:{username:"账号",password:"密码",captcha:"验证码"},button:{login:"登录"}},topwindow:{text:{doc:"Admin 框架文档",plugin:"浏览更多 Admin 插件",changeLanguage:"切换语言",changePwd:"修改密码",signOut:"退出"}},index:{text:{prompt:"内容主体,可自定义内容及样式",vesion:"可在控制台和 package.json 中查看当前的版本"}},updatePwd:{text:{title:"修改密码"},field:{oldPassword:"旧密码",newPassword:"新密码",passwordConfirmation:"确认新密码"},button:{save:"保存",back:"返回"}},common:{placeholder:{query:"请输入搜索内容"},button:{search:"搜索",add:"新增",edit:"修改",delete:"删除",batchDelete:"批量删除",exportExcel:"导出 Excel",submit:"提交",back:"返回",tagManager:"标签管理",publish:"发布页管理",version:"版本管理",sendSMS:"群发短信"},empty:"没有更多数据",piecePerPage:"条/页"},user:{text:{userManager:"用户管理"}},role:{text:{roleManager:"角色管理"}},permission:{text:{permissionManager:"权限管理"}},app:{text:{appManager:"应用管理",describle:"管理用户可登录的应用"}},menu:{text:{menuManager:"菜单列表",additiveMenu:"待添加菜单"},button:{addFirstLevelMenu:"新增一级菜单",addChildMenu:"子菜单",updateBuiltInMenu:"更新内置菜单"}},demo:{icons:{title:"图标",describle:"点击图标即可复制图标代码"},table:{title:"表格"}}},"zh-Hant":{login:{text:{title:"系統登錄",prompt:"如無管理員賬號,請先創建管理員..."},field:{username:"賬號",password:"密碼",captcha:"驗證碼"},button:{login:"登錄"}},topwindow:{text:{doc:"Admin 框架文檔",plugin:"瀏覽更多 Admin 插件",changeLanguage:"切换语言",changePwd:"修改密碼",signOut:"退出"}},index:{text:{prompt:"內容主體,可自定義內容及樣式",vesion:"可在控制台和 package.json 中查看當前的版本"}},updatePwd:{text:{title:"修改密碼"},field:{oldPassword:"舊密碼",newPassword:"新密碼",passwordConfirmation:"確認新密碼"},button:{save:"保存",back:"返回"}},common:{placeholder:{query:"請輸入搜索內容"},button:{search:"檢索",add:"新增",edit:"修改",delete:"刪除",batchDelete:"批量刪除",exportExcel:"導出 Excel",submit:"提交",back:"返回",tagManager:"標簽管理",publish:"發布頁管理",version:"版本管理",sendSMS:"群發短信"},empty:"沒有更多數據",piecePerPage:"條/頁"},user:{text:{userManager:"用戶管理"}},role:{text:{roleManager:"角色管理"}},permission:{text:{permissionManager:"權限管理"}},app:{text:{appManager:"應用管理",describle:"管理用戶可登錄的應用"}},menu:{text:{menuManager:"菜單列表",additiveMenu:"待添加菜單"},button:{addFirstLevelMenu:"新增一級菜單",addChildMenu:"子菜單",updateBuiltInMenu:"更新內寘選單"}},demo:{icons:{title:"圖標",describle:"點擊圖標即可複製圖標代碼"},table:{title:"表格"}}}},vE="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag,_E=e=>vE?Symbol(e):e,bE=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),wE=e=>"number"==typeof e&&isFinite(e),xE=e=>"[object RegExp]"===RE(e),kE=e=>$E(e)&&0===Object.keys(e).length;function TE(e,t){"undefined"!=typeof console&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const SE=Object.assign;function CE(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const EE=Object.prototype.hasOwnProperty;function PE(e,t){return EE.call(e,t)}const DE=Array.isArray,IE=e=>"function"==typeof e,ME=e=>"string"==typeof e,OE=e=>"boolean"==typeof e,AE=e=>null!==e&&"object"==typeof e,LE=Object.prototype.toString,RE=e=>LE.call(e),$E=e=>"[object Object]"===RE(e),NE=Object.prototype.hasOwnProperty;function BE(e,t){return NE.call(e,t)}const FE=e=>null!==e&&"object"==typeof e,jE=[];jE[0]={w:[0],i:[3,0],"[":[4],o:[7]},jE[1]={w:[1],".":[2],"[":[4],o:[7]},jE[2]={w:[2],i:[3,0],0:[3,0]},jE[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]},jE[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]},jE[5]={"'":[4,0],o:8,l:[5,0]},jE[6]={'"':[4,0],o:8,l:[6,0]};const VE=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function WE(e){if(null==e)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function UE(e){const t=e.trim();return("0"!==e.charAt(0)||!isNaN(parseInt(e)))&&(n=t,VE.test(n)?function(e){const t=e.charCodeAt(0);return t!==e.charCodeAt(e.length-1)||34!==t&&39!==t?e:e.slice(1,-1)}(t):"*"+t);var n}const HE=new Map;function qE(e,t){if(!FE(e))return null;let n=HE.get(t);if(n||(n=function(e){const t=[];let n,i,o,s,a,r,l,c=-1,u=0,d=0;const h=[];function p(){const t=e[c+1];if(5===u&&"'"===t||6===u&&'"'===t)return c++,o="\\"+t,h[0](),!0}for(h[0]=()=>{void 0===i?i=o:i+=o},h[1]=()=>{void 0!==i&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),d++},h[3]=()=>{if(d>0)d--,u=4,h[0]();else{if(d=0,void 0===i)return!1;if(i=UE(i),!1===i)return!1;h[1]()}};null!==u;)if(c++,n=e[c],"\\"!==n||!p()){if(s=WE(n),l=jE[u],a=l[s]||l.l||8,8===a)return;if(u=a[0],void 0!==a[1]&&(r=h[a[1]],r&&(o=n,!1===r())))return;if(7===u)return t}}(t),n&&HE.set(t,n)),!n)return null;const i=n.length;let o=e,s=0;for(;s<i;){const e=o[n[s]];if(void 0===e)return null;o=e,s++}return o}function zE(e){if(!FE(e))return e;for(const t in e)if(BE(e,t))if(t.includes(".")){const n=t.split("."),i=n.length-1;let o=e;for(let e=0;e<i;e++)n[e]in o||(o[n[e]]={}),o=o[n[e]];o[n[i]]=e[t],delete e[t],FE(o[n[i]])&&zE(o[n[i]])}else FE(e[t])&&zE(e[t]);return e}
- /*!
- * @intlify/runtime v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */const YE=e=>e,XE=e=>"",KE=e=>0===e.length?"":e.join(""),GE=e=>null==e?"":DE(e)||$E(e)&&e.toString===LE?JSON.stringify(e,null,2):String(e);function JE(e,t){return e=Math.abs(e),2===t?e?e>1?1:0:1:e?Math.min(e,2):0}function QE(e={}){const t=e.locale,n=function(e){const t=wE(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(wE(e.named.count)||wE(e.named.n))?wE(e.named.count)?e.named.count:wE(e.named.n)?e.named.n:t:t}(e),i=AE(e.pluralRules)&&ME(t)&&IE(e.pluralRules[t])?e.pluralRules[t]:JE,o=AE(e.pluralRules)&&ME(t)&&IE(e.pluralRules[t])?JE:void 0,s=e.list||[],a=e.named||{};wE(e.pluralIndex)&&function(e,t){t.count||(t.count=e),t.n||(t.n=e)}(n,a);function r(t){const n=IE(e.messages)?e.messages(t):!!AE(e.messages)&&e.messages[t];return n||(e.parent?e.parent.message(t):XE)}const l=$E(e.processor)&&IE(e.processor.normalize)?e.processor.normalize:KE,c=$E(e.processor)&&IE(e.processor.interpolate)?e.processor.interpolate:GE,u={list:e=>s[e],named:e=>a[e],plural:e=>e[i(n,e.length,o)],linked:(t,n)=>{const i=r(t)(u);return ME(n)?(t=>e.modifiers?e.modifiers[t]:YE)(n)(i):i},message:r,type:$E(e.processor)&&ME(e.processor.type)?e.processor.type:"text",interpolate:c,normalize:l};return u}
- /*!
- * @intlify/message-compiler v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */function ZE(e,t,n={}){const{domain:i,messages:o,args:s}=n,a=new SyntaxError(String(e));return a.code=e,t&&(a.location=t),a.domain=i,a}function eP(e){throw e}function tP(e,t,n){const i={start:e,end:t};return null!=n&&(i.source=n),i}const nP=String.fromCharCode(8232),iP=String.fromCharCode(8233);function oP(e){const t=e;let n=0,i=1,o=1,s=0;const a=e=>"\r"===t[e]&&"\n"===t[e+1],r=e=>t[e]===iP,l=e=>t[e]===nP,c=e=>a(e)||(e=>"\n"===t[e])(e)||r(e)||l(e),u=e=>a(e)||r(e)||l(e)?"\n":t[e];function d(){return s=0,c(n)&&(i++,o=0),a(n)&&n++,n++,o++,t[n]}return{index:()=>n,line:()=>i,column:()=>o,peekOffset:()=>s,charAt:u,currentChar:()=>u(n),currentPeek:()=>u(n+s),next:d,peek:function(){return a(n+s)&&s++,s++,t[n+s]},reset:function(){n=0,i=1,o=1,s=0},resetPeek:function(e=0){s=e},skipToPeek:function(){const e=n+s;for(;e!==n;)d();s=0}}}const sP=void 0;function aP(e,t={}){const n=!1!==t.location,i=oP(e),o=()=>i.index(),s=()=>{return e=i.line(),t=i.column(),n=i.index(),{line:e,column:t,offset:n};var e,t,n},a=s(),r=o(),l={currentType:14,offset:r,startLoc:a,endLoc:a,lastType:14,lastOffset:r,lastStartLoc:a,lastEndLoc:a,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function d(e,t,n,...i){const o=c();if(t.column+=n,t.offset+=n,u){const n=ZE(e,tP(o.startLoc,t),{domain:"tokenizer",args:i});u(n)}}function h(e,t,i){e.endLoc=s(),e.currentType=t;const o={type:t};return n&&(o.loc=tP(e.startLoc,e.endLoc)),null!=i&&(o.value=i),o}const p=e=>h(e,14);function f(e,t){return e.currentChar()===t?(e.next(),t):(d(0,s(),0,t),"")}function m(e){let t="";for(;" "===e.currentPeek()||"\n"===e.currentPeek();)t+=e.currentPeek(),e.peek();return t}function g(e){const t=m(e);return e.skipToPeek(),t}function y(e){if(e===sP)return!1;const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||95===t}function v(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=function(e){if(e===sP)return!1;const t=e.charCodeAt(0);return t>=48&&t<=57}("-"===e.currentPeek()?e.peek():e.currentPeek());return e.resetPeek(),i}function _(e){m(e);const t="|"===e.currentPeek();return e.resetPeek(),t}function b(e,t=!0){const n=(t=!1,i="",o=!1)=>{const s=e.currentPeek();return"{"===s?"%"!==i&&t:"@"!==s&&s?"%"===s?(e.peek(),n(t,"%",!0)):"|"===s?!("%"!==i&&!o)||!(" "===i||"\n"===i):" "===s?(e.peek(),n(!0," ",o)):"\n"!==s||(e.peek(),n(!0,"\n",o)):"%"===i||t},i=n();return t&&e.resetPeek(),i}function w(e,t){const n=e.currentChar();return n===sP?sP:t(n)?(e.next(),n):null}function x(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||95===t||36===t}))}function k(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57}))}function T(e){return w(e,(e=>{const t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}))}function S(e){let t="",n="";for(;t=k(e);)n+=t;return n}function C(e){const t=e.currentChar();switch(t){case"\\":case"'":return e.next(),`\\${t}`;case"u":return E(e,t,4);case"U":return E(e,t,6);default:return d(3,s(),0,t),""}}function E(e,t,n){f(e,t);let i="";for(let o=0;o<n;o++){const n=T(e);if(!n){d(4,s(),0,`\\${t}${i}${e.currentChar()}`);break}i+=n}return`\\${t}${i}`}function P(e){g(e);const t=f(e,"|");return g(e),t}function D(e,t){let n=null;switch(e.currentChar()){case"{":return t.braceNest>=1&&d(8,s(),0),e.next(),n=h(t,2,"{"),g(e),t.braceNest++,n;case"}":return t.braceNest>0&&2===t.currentType&&d(7,s(),0),e.next(),n=h(t,3,"}"),t.braceNest--,t.braceNest>0&&g(e),t.inLinked&&0===t.braceNest&&(t.inLinked=!1),n;case"@":return t.braceNest>0&&d(6,s(),0),n=I(e,t)||p(t),t.braceNest=0,n;default:let i=!0,o=!0,a=!0;if(_(e))return t.braceNest>0&&d(6,s(),0),n=h(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(t.braceNest>0&&(5===t.currentType||6===t.currentType||7===t.currentType))return d(6,s(),0),t.braceNest=0,M(e,t);if(i=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}(e,t))return n=h(t,5,function(e){g(e);let t="",n="";for(;t=x(e);)n+=t;return e.currentChar()===sP&&d(6,s(),0),n}(e)),g(e),n;if(o=v(e,t))return n=h(t,6,function(e){g(e);let t="";return"-"===e.currentChar()?(e.next(),t+=`-${S(e)}`):t+=S(e),e.currentChar()===sP&&d(6,s(),0),t}(e)),g(e),n;if(a=function(e,t){const{currentType:n}=t;if(2!==n)return!1;m(e);const i="'"===e.currentPeek();return e.resetPeek(),i}(e,t))return n=h(t,7,function(e){g(e),f(e,"'");let t="",n="";const i=e=>"'"!==e&&"\n"!==e;for(;t=w(e,i);)n+="\\"===t?C(e):t;const o=e.currentChar();return"\n"===o||o===sP?(d(2,s(),0),"\n"===o&&(e.next(),f(e,"'")),n):(f(e,"'"),n)}(e)),g(e),n;if(!i&&!o&&!a)return n=h(t,13,function(e){g(e);let t="",n="";const i=e=>"{"!==e&&"}"!==e&&" "!==e&&"\n"!==e;for(;t=w(e,i);)n+=t;return n}(e)),d(1,s(),0,n.value),g(e),n}return n}function I(e,t){const{currentType:n}=t;let i=null;const o=e.currentChar();switch(8!==n&&9!==n&&12!==n&&10!==n||"\n"!==o&&" "!==o||d(9,s(),0),o){case"@":return e.next(),i=h(t,8,"@"),t.inLinked=!0,i;case".":return g(e),e.next(),h(t,9,".");case":":return g(e),e.next(),h(t,10,":");default:return _(e)?(i=h(t,1,P(e)),t.braceNest=0,t.inLinked=!1,i):function(e,t){const{currentType:n}=t;if(8!==n)return!1;m(e);const i="."===e.currentPeek();return e.resetPeek(),i}(e,t)||function(e,t){const{currentType:n}=t;if(8!==n&&12!==n)return!1;m(e);const i=":"===e.currentPeek();return e.resetPeek(),i}(e,t)?(g(e),I(e,t)):function(e,t){const{currentType:n}=t;if(9!==n)return!1;m(e);const i=y(e.currentPeek());return e.resetPeek(),i}(e,t)?(g(e),h(t,12,function(e){let t="",n="";for(;t=x(e);)n+=t;return n}(e))):function(e,t){const{currentType:n}=t;if(10!==n)return!1;const i=()=>{const t=e.currentPeek();return"{"===t?y(e.peek()):!("@"===t||"%"===t||"|"===t||":"===t||"."===t||" "===t||!t)&&("\n"===t?(e.peek(),i()):y(t))},o=i();return e.resetPeek(),o}(e,t)?(g(e),"{"===o?D(e,t)||i:h(t,11,function(e){const t=(n=!1,i)=>{const o=e.currentChar();return"{"!==o&&"%"!==o&&"@"!==o&&"|"!==o&&o?" "===o?i:"\n"===o?(i+=o,e.next(),t(n,i)):(i+=o,e.next(),t(!0,i)):i};return t(!1,"")}(e))):(8===n&&d(9,s(),0),t.braceNest=0,t.inLinked=!1,M(e,t))}}function M(e,t){let n={type:14};if(t.braceNest>0)return D(e,t)||p(t);if(t.inLinked)return I(e,t)||p(t);const i=e.currentChar();switch(i){case"{":return D(e,t)||p(t);case"}":return d(5,s(),0),e.next(),h(t,3,"}");case"@":return I(e,t)||p(t);default:if(_(e))return n=h(t,1,P(e)),t.braceNest=0,t.inLinked=!1,n;if(b(e))return h(t,0,function(e){let t="";for(;;){const n=e.currentChar();if("{"===n||"}"===n||"@"===n||"|"===n||!n)break;if("%"===n){if(!b(e))break;t+=n,e.next()}else if(" "===n||"\n"===n)if(b(e))t+=n,e.next();else{if(_(e))break;t+=n,e.next()}else t+=n,e.next()}return t}(e));if("%"===i)return e.next(),h(t,4,"%")}return n}return{nextToken:function(){const{currentType:e,offset:t,startLoc:n,endLoc:a}=l;return l.lastType=e,l.lastOffset=t,l.lastStartLoc=n,l.lastEndLoc=a,l.offset=o(),l.startLoc=s(),i.currentChar()===sP?h(l,14):M(i,l)},currentOffset:o,currentPosition:s,context:c}}const rP=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function lP(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const e=parseInt(t||n,16);return e<=55295||e>=57344?String.fromCodePoint(e):"�"}}}function cP(e={}){const t=!1!==e.location,{onError:n}=e;function i(e,t,i,o,...s){const a=e.currentPosition();if(a.offset+=o,a.column+=o,n){const e=ZE(t,tP(i,a),{domain:"parser",args:s});n(e)}}function o(e,n,i){const o={type:e,start:n,end:n};return t&&(o.loc={start:i,end:i}),o}function s(e,n,i,o){e.end=n,o&&(e.type=o),t&&e.loc&&(e.loc.end=i)}function a(e,t){const n=e.context(),i=o(3,n.offset,n.startLoc);return i.value=t,s(i,e.currentOffset(),e.currentPosition()),i}function r(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:a}=n,r=o(5,i,a);return r.index=parseInt(t,10),e.nextToken(),s(r,e.currentOffset(),e.currentPosition()),r}function l(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:a}=n,r=o(4,i,a);return r.key=t,e.nextToken(),s(r,e.currentOffset(),e.currentPosition()),r}function c(e,t){const n=e.context(),{lastOffset:i,lastStartLoc:a}=n,r=o(9,i,a);return r.value=t.replace(rP,lP),e.nextToken(),s(r,e.currentOffset(),e.currentPosition()),r}function u(e){const t=e.context(),n=o(6,t.offset,t.startLoc);let a=e.nextToken();if(9===a.type){const t=function(e){const t=e.nextToken(),n=e.context(),{lastOffset:a,lastStartLoc:r}=n,l=o(8,a,r);return 12!==t.type?(i(e,11,n.lastStartLoc,0),l.value="",s(l,a,r),{nextConsumeToken:t,node:l}):(null==t.value&&i(e,13,n.lastStartLoc,0,uP(t)),l.value=t.value||"",s(l,e.currentOffset(),e.currentPosition()),{node:l})}(e);n.modifier=t.node,a=t.nextConsumeToken||e.nextToken()}switch(10!==a.type&&i(e,13,t.lastStartLoc,0,uP(a)),a=e.nextToken(),2===a.type&&(a=e.nextToken()),a.type){case 11:null==a.value&&i(e,13,t.lastStartLoc,0,uP(a)),n.key=function(e,t){const n=e.context(),i=o(7,n.offset,n.startLoc);return i.value=t,s(i,e.currentOffset(),e.currentPosition()),i}(e,a.value||"");break;case 5:null==a.value&&i(e,13,t.lastStartLoc,0,uP(a)),n.key=l(e,a.value||"");break;case 6:null==a.value&&i(e,13,t.lastStartLoc,0,uP(a)),n.key=r(e,a.value||"");break;case 7:null==a.value&&i(e,13,t.lastStartLoc,0,uP(a)),n.key=c(e,a.value||"");break;default:i(e,12,t.lastStartLoc,0);const u=e.context(),d=o(7,u.offset,u.startLoc);return d.value="",s(d,u.offset,u.startLoc),n.key=d,s(n,u.offset,u.startLoc),{nextConsumeToken:a,node:n}}return s(n,e.currentOffset(),e.currentPosition()),{node:n}}function d(e){const t=e.context(),n=o(2,1===t.currentType?e.currentOffset():t.offset,1===t.currentType?t.endLoc:t.startLoc);n.items=[];let d=null;do{const o=d||e.nextToken();switch(d=null,o.type){case 0:null==o.value&&i(e,13,t.lastStartLoc,0,uP(o)),n.items.push(a(e,o.value||""));break;case 6:null==o.value&&i(e,13,t.lastStartLoc,0,uP(o)),n.items.push(r(e,o.value||""));break;case 5:null==o.value&&i(e,13,t.lastStartLoc,0,uP(o)),n.items.push(l(e,o.value||""));break;case 7:null==o.value&&i(e,13,t.lastStartLoc,0,uP(o)),n.items.push(c(e,o.value||""));break;case 8:const s=u(e);n.items.push(s.node),d=s.nextConsumeToken||null}}while(14!==t.currentType&&1!==t.currentType);return s(n,1===t.currentType?t.lastOffset:e.currentOffset(),1===t.currentType?t.lastEndLoc:e.currentPosition()),n}function h(e){const t=e.context(),{offset:n,startLoc:a}=t,r=d(e);return 14===t.currentType?r:function(e,t,n,a){const r=e.context();let l=0===a.items.length;const c=o(1,t,n);c.cases=[],c.cases.push(a);do{const t=d(e);l||(l=0===t.items.length),c.cases.push(t)}while(14!==r.currentType);return l&&i(e,10,n,0),s(c,e.currentOffset(),e.currentPosition()),c}(e,n,a,r)}return{parse:function(n){const a=aP(n,SE({},e)),r=a.context(),l=o(0,r.offset,r.startLoc);return t&&l.loc&&(l.loc.source=n),l.body=h(a),14!==r.currentType&&i(a,13,r.lastStartLoc,0,n[r.offset]||""),s(l,a.currentOffset(),a.currentPosition()),l}}}function uP(e){if(14===e.type)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function dP(e,t){for(let n=0;n<e.length;n++)hP(e[n],t)}function hP(e,t){switch(e.type){case 1:dP(e.cases,t),t.helper("plural");break;case 2:dP(e.items,t);break;case 6:hP(e.key,t),t.helper("linked");break;case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named")}}function pP(e,t={}){const n=function(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:e=>(n.helpers.add(e),e)}}(e);n.helper("normalize"),e.body&&hP(e.body,n);const i=n.context();e.helpers=Array.from(i.helpers)}function fP(e,t){const{helper:n}=e;switch(t.type){case 0:!function(e,t){t.body?fP(e,t.body):e.push("null")}(e,t);break;case 1:!function(e,t){const{helper:n,needIndent:i}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(i());const o=t.cases.length;for(let n=0;n<o&&(fP(e,t.cases[n]),n!==o-1);n++)e.push(", ");e.deindent(i()),e.push("])")}}(e,t);break;case 2:!function(e,t){const{helper:n,needIndent:i}=e;e.push(`${n("normalize")}([`),e.indent(i());const o=t.items.length;for(let s=0;s<o&&(fP(e,t.items[s]),s!==o-1);s++)e.push(", ");e.deindent(i()),e.push("])")}(e,t);break;case 6:!function(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),fP(e,t.key),t.modifier&&(e.push(", "),fP(e,t.modifier)),e.push(")")}(e,t);break;case 8:case 7:case 9:case 3:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t)}}function mP(e,t={}){const n=SE({},t),i=cP(n).parse(e);return pP(i,n),((e,t={})=>{const n=ME(t.mode)?t.mode:"normal",i=ME(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=null!=t.breakLineCode?t.breakLineCode:"arrow"===n?";":"\n",a=t.needIndent?t.needIndent:"arrow"!==n,r=e.helpers||[],l=function(e,t){const{sourceMap:n,filename:i,breakLineCode:o,needIndent:s}=t,a={source:e.loc.source,filename:i,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:o,needIndent:s,indentLevel:0};function r(e,t){a.code+=e}function l(e,t=!0){const n=t?o:"";r(s?n+" ".repeat(e):n)}return{context:()=>a,push:r,indent:function(e=!0){const t=++a.indentLevel;e&&l(t)},deindent:function(e=!0){const t=--a.indentLevel;e&&l(t)},newline:function(){l(a.indentLevel)},helper:e=>`_${e}`,needIndent:()=>a.needIndent}}(e,{mode:n,filename:i,sourceMap:o,breakLineCode:s,needIndent:a});l.push("normal"===n?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(a),r.length>0&&(l.push(`const { ${r.map((e=>`${e}: _${e}`)).join(", ")} } = ctx`),l.newline()),l.push("return "),fP(l,e),l.deindent(a),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}})(i,n)}
- /*!
- * @intlify/core-base v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */let gP;let yP=0;function vP(e={}){const t=ME(e.version)?e.version:"9.1.9",n=ME(e.locale)?e.locale:"en-US",i=DE(e.fallbackLocale)||$E(e.fallbackLocale)||ME(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:n,o=$E(e.messages)?e.messages:{[n]:{}},s=$E(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},a=$E(e.numberFormats)?e.numberFormats:{[n]:{}},r=SE({},e.modifiers||{},{upper:e=>ME(e)?e.toUpperCase():e,lower:e=>ME(e)?e.toLowerCase():e,capitalize:e=>ME(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}),l=e.pluralRules||{},c=IE(e.missing)?e.missing:null,u=!OE(e.missingWarn)&&!xE(e.missingWarn)||e.missingWarn,d=!OE(e.fallbackWarn)&&!xE(e.fallbackWarn)||e.fallbackWarn,h=!!e.fallbackFormat,p=!!e.unresolving,f=IE(e.postTranslation)?e.postTranslation:null,m=$E(e.processor)?e.processor:null,g=!OE(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter,v=IE(e.messageCompiler)?e.messageCompiler:gP,_=IE(e.onWarn)?e.onWarn:TE,b=e,w=AE(b.__datetimeFormatters)?b.__datetimeFormatters:new Map,x=AE(b.__numberFormatters)?b.__numberFormatters:new Map,k=AE(b.__meta)?b.__meta:{};yP++;return{version:t,cid:yP,locale:n,fallbackLocale:i,messages:o,datetimeFormats:s,numberFormats:a,modifiers:r,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:d,fallbackFormat:h,unresolving:p,postTranslation:f,processor:m,warnHtmlMessage:g,escapeParameter:y,messageCompiler:v,onWarn:_,__datetimeFormatters:w,__numberFormatters:x,__meta:k}}function _P(e,t,n,i,o){const{missing:s,onWarn:a}=e;if(null!==s){const i=s(e,n,t,o);return ME(i)?i:t}return t}function bP(e,t,n){const i=e;i.__localeChainCache||(i.__localeChainCache=new Map);let o=i.__localeChainCache.get(n);if(!o){o=[];let e=[n];for(;DE(e);)e=wP(o,e,t);const s=DE(t)?t:$E(t)?t.default?t.default:null:t;e=ME(s)?[s]:s,DE(e)&&wP(o,e,!1),i.__localeChainCache.set(n,o)}return o}function wP(e,t,n){let i=!0;for(let o=0;o<t.length&&OE(i);o++){const s=t[o];ME(s)&&(i=xP(e,t[o],n))}return i}function xP(e,t,n){let i;const o=t.split("-");do{i=kP(e,o.join("-"),n),o.splice(-1,1)}while(o.length&&!0===i);return i}function kP(e,t,n){let i=!1;if(!e.includes(t)&&(i=!0,t)){i="!"!==t[t.length-1];const o=t.replace(/!/g,"");e.push(o),(DE(n)||$E(n))&&n[o]&&(i=n[o])}return i}function TP(e,t,n){e.__localeChainCache=new Map,bP(e,n,t)}const SP=e=>e;let CP=Object.create(null);function EP(e){return ZE(e,null,void 0)}const PP=()=>"",DP=e=>IE(e);function IP(e,...t){const{fallbackFormat:n,postTranslation:i,unresolving:o,fallbackLocale:s,messages:a}=e,[r,l]=OP(...t),c=(OE(l.missingWarn)?l.missingWarn:e.missingWarn,OE(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,OE(l.escapeParameter)?l.escapeParameter:e.escapeParameter),u=!!l.resolvedMessage,d=ME(l.default)||OE(l.default)?OE(l.default)?r:l.default:n?r:"",h=n||""!==d,p=ME(l.locale)?l.locale:e.locale;c&&function(e){DE(e.list)?e.list=e.list.map((e=>ME(e)?CE(e):e)):AE(e.named)&&Object.keys(e.named).forEach((t=>{ME(e.named[t])&&(e.named[t]=CE(e.named[t]))}))}(l);let[f,m,g]=u?[r,p,a[p]||{}]:function(e,t,n,i,o,s){const{messages:a,onWarn:r}=e,l=bP(e,i,n);let c,u={},d=null;const h="translate";for(let p=0;p<l.length&&(c=l[p],u=a[c]||{},null===(d=qE(u,t))&&(d=u[t]),!ME(d)&&!IE(d));p++){const n=_P(e,t,c,0,h);n!==t&&(d=n)}return[d,c,u]}(e,r,p,s),y=r;if(u||ME(f)||DP(f)||h&&(f=d,y=f),!(u||(ME(f)||DP(f))&&ME(m)))return o?-1:r;let v=!1;const _=DP(f)?f:MP(e,r,m,f,y,(()=>{v=!0}));if(v)return f;const b=function(e,t,n,i){const{modifiers:o,pluralRules:s}=e,a=i=>{const o=qE(n,i);if(ME(o)){let n=!1;const s=MP(e,i,t,o,i,(()=>{n=!0}));return n?PP:s}return DP(o)?o:PP},r={locale:t,modifiers:o,pluralRules:s,messages:a};e.processor&&(r.processor=e.processor);i.list&&(r.list=i.list);i.named&&(r.named=i.named);wE(i.plural)&&(r.pluralIndex=i.plural);return r}(e,m,g,l),w=function(e,t,n){return t(n)}(0,_,QE(b));return i?i(w):w}function MP(e,t,n,i,o,s){const{messageCompiler:a,warnHtmlMessage:r}=e;if(DP(i)){const e=i;return e.locale=e.locale||n,e.key=e.key||t,e}const l=a(i,function(e,t,n,i,o,s){return{warnHtmlMessage:o,onError:e=>{throw s&&s(e),e},onCacheKey:e=>((e,t,n)=>bE({l:e,k:t,s:n}))(t,n,e)}}(0,n,o,0,r,s));return l.locale=n,l.key=t,l.source=i,l}function OP(...e){const[t,n,i]=e,o={};if(!ME(t)&&!wE(t)&&!DP(t))throw EP(14);const s=wE(t)?String(t):(DP(t),t);return wE(n)?o.plural=n:ME(n)?o.default=n:$E(n)&&!kE(n)?o.named=n:DE(n)&&(o.list=n),wE(i)?o.plural=i:ME(i)?o.default=i:$E(i)&&SE(o,i),[s,o]}function AP(e,...t){const{datetimeFormats:n,unresolving:i,fallbackLocale:o,onWarn:s}=e,{__datetimeFormatters:a}=e,[r,l,c,u]=LP(...t);OE(c.missingWarn)?c.missingWarn:e.missingWarn;OE(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,h=ME(c.locale)?c.locale:e.locale,p=bP(e,o,h);if(!ME(r)||""===r)return new Intl.DateTimeFormat(h).format(l);let f,m={},g=null;for(let _=0;_<p.length&&(f=p[_],m=n[f]||{},g=m[r],!$E(g));_++)_P(e,r,f,0,"datetime format");if(!$E(g)||!ME(f))return i?-1:r;let y=`${f}__${r}`;kE(u)||(y=`${y}__${JSON.stringify(u)}`);let v=a.get(y);return v||(v=new Intl.DateTimeFormat(f,SE({},g,u)),a.set(y,v)),d?v.formatToParts(l):v.format(l)}function LP(...e){const[t,n,i,o]=e;let s,a={},r={};if(ME(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw EP(16);s=new Date(t);try{s.toISOString()}catch(Mw){throw EP(16)}}else if("[object Date]"===RE(t)){if(isNaN(t.getTime()))throw EP(15);s=t}else{if(!wE(t))throw EP(14);s=t}return ME(n)?a.key=n:$E(n)&&(a=n),ME(i)?a.locale=i:$E(i)&&(r=i),$E(o)&&(r=o),[a.key||"",s,a,r]}function RP(e,t,n){const i=e;for(const o in n){const e=`${t}__${o}`;i.__datetimeFormatters.has(e)&&i.__datetimeFormatters.delete(e)}}function $P(e,...t){const{numberFormats:n,unresolving:i,fallbackLocale:o,onWarn:s}=e,{__numberFormatters:a}=e,[r,l,c,u]=NP(...t);OE(c.missingWarn)?c.missingWarn:e.missingWarn;OE(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn;const d=!!c.part,h=ME(c.locale)?c.locale:e.locale,p=bP(e,o,h);if(!ME(r)||""===r)return new Intl.NumberFormat(h).format(l);let f,m={},g=null;for(let _=0;_<p.length&&(f=p[_],m=n[f]||{},g=m[r],!$E(g));_++)_P(e,r,f,0,"number format");if(!$E(g)||!ME(f))return i?-1:r;let y=`${f}__${r}`;kE(u)||(y=`${y}__${JSON.stringify(u)}`);let v=a.get(y);return v||(v=new Intl.NumberFormat(f,SE({},g,u)),a.set(y,v)),d?v.formatToParts(l):v.format(l)}function NP(...e){const[t,n,i,o]=e;let s={},a={};if(!wE(t))throw EP(14);const r=t;return ME(n)?s.key=n:$E(n)&&(s=n),ME(i)?s.locale=i:$E(i)&&(a=i),$E(o)&&(a=o),[s.key||"",r,s,a]}function BP(e,t,n){const i=e;for(const o in n){const e=`${t}__${o}`;i.__numberFormatters.has(e)&&i.__numberFormatters.delete(e)}}
- /*!
- * vue-i18n v9.1.9
- * (c) 2021 kazuya kawaguchi
- * Released under the MIT License.
- */function FP(e,...t){return ZE(e,null,void 0)}const jP=_E("__transrateVNode"),VP=_E("__datetimeParts"),WP=_E("__numberParts"),UP=_E("__setPluralRules"),HP=_E("__injectWithOption");let qP=0;function zP(e){return(t,n,i,o)=>e(n,i,ms()||void 0,o)}function YP(e,t){const{messages:n,__i18n:i}=t,o=$E(n)?n:DE(i)?{}:{[e]:{}};if(DE(i)&&i.forEach((({locale:e,resource:t})=>{e?(o[e]=o[e]||{},KP(t,o[e])):KP(t,o)})),t.flatJson)for(const s in o)PE(o,s)&&zE(o[s]);return o}const XP=e=>!AE(e)||DE(e);function KP(e,t){if(XP(e)||XP(t))throw FP(20);for(const n in e)PE(e,n)&&(XP(e[n])||XP(t[n])?t[n]=e[n]:KP(e[n],t[n]))}function GP(e={}){const{__root:t}=e,n=void 0===t;let i=!OE(e.inheritLocale)||e.inheritLocale;const o=sn(t&&i?t.locale.value:ME(e.locale)?e.locale:"en-US"),s=sn(t&&i?t.fallbackLocale.value:ME(e.fallbackLocale)||DE(e.fallbackLocale)||$E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:o.value),a=sn(YP(o.value,e)),r=sn($E(e.datetimeFormats)?e.datetimeFormats:{[o.value]:{}}),l=sn($E(e.numberFormats)?e.numberFormats:{[o.value]:{}});let c=t?t.missingWarn:!OE(e.missingWarn)&&!xE(e.missingWarn)||e.missingWarn,u=t?t.fallbackWarn:!OE(e.fallbackWarn)&&!xE(e.fallbackWarn)||e.fallbackWarn,d=t?t.fallbackRoot:!OE(e.fallbackRoot)||e.fallbackRoot,h=!!e.fallbackFormat,p=IE(e.missing)?e.missing:null,f=IE(e.missing)?zP(e.missing):null,m=IE(e.postTranslation)?e.postTranslation:null,g=!OE(e.warnHtmlMessage)||e.warnHtmlMessage,y=!!e.escapeParameter;const v=t?t.modifiers:$E(e.modifiers)?e.modifiers:{};let _,b=e.pluralRules||t&&t.pluralRules;_=vP({version:"9.1.9",locale:o.value,fallbackLocale:s.value,messages:a.value,datetimeFormats:r.value,numberFormats:l.value,modifiers:v,pluralRules:b,missing:null===f?void 0:f,missingWarn:c,fallbackWarn:u,fallbackFormat:h,unresolving:!0,postTranslation:null===m?void 0:m,warnHtmlMessage:g,escapeParameter:y,__datetimeFormatters:$E(_)?_.__datetimeFormatters:void 0,__numberFormatters:$E(_)?_.__numberFormatters:void 0,__v_emitter:$E(_)?_.__v_emitter:void 0,__meta:{framework:"vue"}}),TP(_,o.value,s.value);const w=Cs({get:()=>o.value,set:e=>{o.value=e,_.locale=o.value}}),x=Cs({get:()=>s.value,set:e=>{s.value=e,_.fallbackLocale=s.value,TP(_,o.value,e)}}),k=Cs((()=>a.value)),T=Cs((()=>r.value)),S=Cs((()=>l.value));function C(e,n,i,c,u,h){let p;if(o.value,s.value,a.value,r.value,l.value,p=e(_),wE(p)&&-1===p){const[e,i]=n();return t&&d?c(t):u(e)}if(h(p))return p;throw FP(14)}function E(...e){return C((t=>IP(t,...e)),(()=>OP(...e)),0,(t=>t.t(...e)),(e=>e),(e=>ME(e)))}const P={normalize:function(e){return e.map((e=>ME(e)?is(jo,null,e,0):e))},interpolate:e=>e,type:"vnode"};function D(e){return a.value[e]||{}}qP++,t&&(Zn(t.locale,(e=>{i&&(o.value=e,_.locale=e,TP(_,o.value,s.value))})),Zn(t.fallbackLocale,(e=>{i&&(s.value=e,_.fallbackLocale=e,TP(_,o.value,s.value))})));return{id:qP,locale:w,fallbackLocale:x,get inheritLocale(){return i},set inheritLocale(e){i=e,e&&t&&(o.value=t.locale.value,s.value=t.fallbackLocale.value,TP(_,o.value,s.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:k,datetimeFormats:T,numberFormats:S,get modifiers(){return v},get pluralRules(){return b||{}},get isGlobal(){return n},get missingWarn(){return c},set missingWarn(e){c=e,_.missingWarn=c},get fallbackWarn(){return u},set fallbackWarn(e){u=e,_.fallbackWarn=u},get fallbackRoot(){return d},set fallbackRoot(e){d=e},get fallbackFormat(){return h},set fallbackFormat(e){h=e,_.fallbackFormat=h},get warnHtmlMessage(){return g},set warnHtmlMessage(e){g=e,_.warnHtmlMessage=e},get escapeParameter(){return y},set escapeParameter(e){y=e,_.escapeParameter=e},t:E,rt:function(...e){const[t,n,i]=e;if(i&&!AE(i))throw FP(15);return E(t,n,SE({resolvedMessage:!0},i||{}))},d:function(...e){return C((t=>AP(t,...e)),(()=>LP(...e)),0,(t=>t.d(...e)),(()=>""),(e=>ME(e)))},n:function(...e){return C((t=>$P(t,...e)),(()=>NP(...e)),0,(t=>t.n(...e)),(()=>""),(e=>ME(e)))},te:function(e,t){return null!==qE(D(ME(t)?t:o.value),e)},tm:function(e){const n=function(e){let t=null;const n=bP(_,s.value,o.value);for(let i=0;i<n.length;i++){const o=qE(a.value[n[i]]||{},e);if(null!=o){t=o;break}}return t}(e);return null!=n?n:t&&t.tm(e)||{}},getLocaleMessage:D,setLocaleMessage:function(e,t){a.value[e]=t,_.messages=a.value},mergeLocaleMessage:function(e,t){a.value[e]=a.value[e]||{},KP(t,a.value[e]),_.messages=a.value},getDateTimeFormat:function(e){return r.value[e]||{}},setDateTimeFormat:function(e,t){r.value[e]=t,_.datetimeFormats=r.value,RP(_,e,t)},mergeDateTimeFormat:function(e,t){r.value[e]=SE(r.value[e]||{},t),_.datetimeFormats=r.value,RP(_,e,t)},getNumberFormat:function(e){return l.value[e]||{}},setNumberFormat:function(e,t){l.value[e]=t,_.numberFormats=l.value,BP(_,e,t)},mergeNumberFormat:function(e,t){l.value[e]=SE(l.value[e]||{},t),_.numberFormats=l.value,BP(_,e,t)},getPostTranslationHandler:function(){return IE(m)?m:null},setPostTranslationHandler:function(e){m=e,_.postTranslation=e},getMissingHandler:function(){return p},setMissingHandler:function(e){null!==e&&(f=zP(e)),p=e,_.missing=f},[jP]:function(...e){return C((t=>{let n;const i=t;try{i.processor=P,n=IP(i,...e)}finally{i.processor=null}return n}),(()=>OP(...e)),0,(t=>t[jP](...e)),(e=>[is(jo,null,e,0)]),(e=>DE(e)))},[WP]:function(...e){return C((t=>$P(t,...e)),(()=>NP(...e)),0,(t=>t[WP](...e)),(()=>[]),(e=>ME(e)||DE(e)))},[VP]:function(...e){return C((t=>AP(t,...e)),(()=>LP(...e)),0,(t=>t[VP](...e)),(()=>[]),(e=>ME(e)||DE(e)))},[UP]:function(e){b=e,_.pluralRules=b},[HP]:e.__injectWithOption}}function JP(e={}){const t=GP(function(e){const t=ME(e.locale)?e.locale:"en-US",n=ME(e.fallbackLocale)||DE(e.fallbackLocale)||$E(e.fallbackLocale)||!1===e.fallbackLocale?e.fallbackLocale:t,i=IE(e.missing)?e.missing:void 0,o=!OE(e.silentTranslationWarn)&&!xE(e.silentTranslationWarn)||!e.silentTranslationWarn,s=!OE(e.silentFallbackWarn)&&!xE(e.silentFallbackWarn)||!e.silentFallbackWarn,a=!OE(e.fallbackRoot)||e.fallbackRoot,r=!!e.formatFallbackMessages,l=$E(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=IE(e.postTranslation)?e.postTranslation:void 0,d=!ME(e.warnHtmlInMessage)||"off"!==e.warnHtmlInMessage,h=!!e.escapeParameterHtml,p=!OE(e.sync)||e.sync;let f=e.messages;if($E(e.sharedMessages)){const t=e.sharedMessages;f=Object.keys(t).reduce(((e,n)=>{const i=e[n]||(e[n]={});return SE(i,t[n]),e}),f||{})}const{__i18n:m,__root:g,__injectWithOption:y}=e,v=e.datetimeFormats,_=e.numberFormats;return{locale:t,fallbackLocale:n,messages:f,flatJson:e.flatJson,datetimeFormats:v,numberFormats:_,missing:i,missingWarn:o,fallbackWarn:s,fallbackRoot:a,fallbackFormat:r,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:d,escapeParameter:h,inheritLocale:p,__i18n:m,__root:g,__injectWithOption:y}}(e)),n={id:t.id,get locale(){return t.locale.value},set locale(e){t.locale.value=e},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(e){t.fallbackLocale.value=e},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get formatter(){return{interpolate:()=>[]}},set formatter(e){},get missing(){return t.getMissingHandler()},set missing(e){t.setMissingHandler(e)},get silentTranslationWarn(){return OE(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(e){t.missingWarn=OE(e)?!e:e},get silentFallbackWarn(){return OE(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(e){t.fallbackWarn=OE(e)?!e:e},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(e){t.fallbackFormat=e},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(e){t.setPostTranslationHandler(e)},get sync(){return t.inheritLocale},set sync(e){t.inheritLocale=e},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(e){t.warnHtmlMessage="off"!==e},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(e){t.escapeParameter=e},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(e){},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...e){const[n,i,o]=e,s={};let a=null,r=null;if(!ME(n))throw FP(15);const l=n;return ME(i)?s.locale=i:DE(i)?a=i:$E(i)&&(r=i),DE(o)?a=o:$E(o)&&(r=o),t.t(l,a||r||{},s)},rt:(...e)=>t.rt(...e),tc(...e){const[n,i,o]=e,s={plural:1};let a=null,r=null;if(!ME(n))throw FP(15);const l=n;return ME(i)?s.locale=i:wE(i)?s.plural=i:DE(i)?a=i:$E(i)&&(r=i),ME(o)?s.locale=o:DE(o)?a=o:$E(o)&&(r=o),t.t(l,a||r||{},s)},te:(e,n)=>t.te(e,n),tm:e=>t.tm(e),getLocaleMessage:e=>t.getLocaleMessage(e),setLocaleMessage(e,n){t.setLocaleMessage(e,n)},mergeLocaleMessage(e,n){t.mergeLocaleMessage(e,n)},d:(...e)=>t.d(...e),getDateTimeFormat:e=>t.getDateTimeFormat(e),setDateTimeFormat(e,n){t.setDateTimeFormat(e,n)},mergeDateTimeFormat(e,n){t.mergeDateTimeFormat(e,n)},n:(...e)=>t.n(...e),getNumberFormat:e=>t.getNumberFormat(e),setNumberFormat(e,n){t.setNumberFormat(e,n)},mergeNumberFormat(e,n){t.mergeNumberFormat(e,n)},getChoiceIndex:(e,t)=>-1,__onComponentInstanceCreated(t){const{componentInstanceCreatedListener:i}=e;i&&i(t,n)}};return n}const QP={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>"parent"===e||"global"===e,default:"parent"},i18n:{type:Object}},ZP={name:"i18n-t",props:SE({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>wE(e)||!isNaN(e)}},QP),setup(e,t){const{slots:n,attrs:i}=t,o=e.i18n||lD({useScope:e.scope,__useComponent:!0}),s=Object.keys(n).filter((e=>"_"!==e));return()=>{const n={};e.locale&&(n.locale=e.locale),void 0!==e.plural&&(n.plural=ME(e.plural)?+e.plural:e.plural);const a=function({slots:e},t){return 1===t.length&&"default"===t[0]?e.default?e.default():[]:t.reduce(((t,n)=>{const i=e[n];return i&&(t[n]=i()),t}),{})}(t,s),r=o[jP](e.keypath,a,n),l=SE({},i);return ME(e.tag)||AE(e.tag)?Es(e.tag,l,r):Es(Fo,l,r)}}};function eD(e,t,n,i){const{slots:o,attrs:s}=t;return()=>{const t={part:!0};let a={};e.locale&&(t.locale=e.locale),ME(e.format)?t.key=e.format:AE(e.format)&&(ME(e.format.key)&&(t.key=e.format.key),a=Object.keys(e.format).reduce(((t,i)=>n.includes(i)?SE({},t,{[i]:e.format[i]}):t),{}));const r=i(e.value,t,a);let l=[t.key];DE(r)?l=r.map(((e,t)=>{const n=o[e.type];return n?n({[e.type]:e.value,index:t,parts:r}):[e.value]})):ME(r)&&(l=[r]);const c=SE({},s);return ME(e.tag)||AE(e.tag)?Es(e.tag,c,l):Es(Fo,c,l)}}const tD=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],nD={name:"i18n-n",props:SE({value:{type:Number,required:!0},format:{type:[String,Object]}},QP),setup(e,t){const n=e.i18n||lD({useScope:"parent",__useComponent:!0});return eD(e,t,tD,((...e)=>n[WP](...e)))}},iD=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],oD={name:"i18n-d",props:SE({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},QP),setup(e,t){const n=e.i18n||lD({useScope:"parent",__useComponent:!0});return eD(e,t,iD,((...e)=>n[VP](...e)))}};function sD(e){const t=(t,{instance:n,value:i,modifiers:o})=>{if(!n||!n.$)throw FP(22);const s=function(e,t){const n=e;if("composition"===e.mode)return n.__getInstance(t)||e.global;{const i=n.__getInstance(t);return null!=i?i.__composer:e.global.__composer}}(e,n.$),a=function(e){if(ME(e))return{path:e};if($E(e)){if(!("path"in e))throw FP(19);return e}throw FP(20)}(i);t.textContent=s.t(...function(e){const{path:t,locale:n,args:i,choice:o,plural:s}=e,a={},r=i||{};ME(n)&&(a.locale=n);wE(o)&&(a.plural=o);wE(s)&&(a.plural=s);return[t,r,a]}(a))};return{beforeMount:t,beforeUpdate:t}}function aD(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[UP](t.pluralizationRules||e.pluralizationRules);const n=YP(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach((t=>e.mergeLocaleMessage(t,n[t]))),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach((n=>e.mergeDateTimeFormat(n,t.datetimeFormats[n]))),t.numberFormats&&Object.keys(t.numberFormats).forEach((n=>e.mergeNumberFormat(n,t.numberFormats[n]))),e}function rD(e={}){const t=!OE(e.legacy)||e.legacy,n=!!e.globalInjection,i=new Map,o=t?JP(e):GP(e),s=_E(""),a={get mode(){return t?"legacy":"composition"},async install(e,...i){e.__VUE_I18N_SYMBOL__=s,e.provide(e.__VUE_I18N_SYMBOL__,a),!t&&n&&function(e,t){const n=Object.create(null);cD.forEach((e=>{const i=Object.getOwnPropertyDescriptor(t,e);if(!i)throw FP(22);const o=on(i.value)?{get:()=>i.value.value,set(e){i.value.value=e}}:{get:()=>i.get&&i.get()};Object.defineProperty(n,e,o)})),e.config.globalProperties.$i18n=n,uD.forEach((n=>{const i=Object.getOwnPropertyDescriptor(t,n);if(!i||!i.value)throw FP(22);Object.defineProperty(e.config.globalProperties,`$${n}`,i)}))}(e,a.global),function(e,t,...n){const i=$E(n[0])?n[0]:{},o=!!i.useI18nComponentName;(!OE(i.globalInstall)||i.globalInstall)&&(e.component(o?"i18n":ZP.name,ZP),e.component(nD.name,nD),e.component(oD.name,oD)),e.directive("t",sD(t))}(e,a,...i),t&&e.mixin(function(e,t,n){return{beforeCreate(){const i=ms();if(!i)throw FP(22);const o=this.$options;if(o.i18n){const n=o.i18n;o.__i18n&&(n.__i18n=o.__i18n),n.__root=t,this===this.$root?this.$i18n=aD(e,n):(n.__injectWithOption=!0,this.$i18n=JP(n))}else o.__i18n?this===this.$root?this.$i18n=aD(e,o):this.$i18n=JP({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(i,this.$i18n),this.$t=(...e)=>this.$i18n.t(...e),this.$rt=(...e)=>this.$i18n.rt(...e),this.$tc=(...e)=>this.$i18n.tc(...e),this.$te=(e,t)=>this.$i18n.te(e,t),this.$d=(...e)=>this.$i18n.d(...e),this.$n=(...e)=>this.$i18n.n(...e),this.$tm=e=>this.$i18n.tm(e)},mounted(){},beforeUnmount(){const e=ms();if(!e)throw FP(22);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(e),delete this.$i18n}}}(o,o.__composer,a))},get global(){return o},__instances:i,__getInstance:e=>i.get(e)||null,__setInstance(e,t){i.set(e,t)},__deleteInstance(e){i.delete(e)}};return a}function lD(e={}){const t=ms();if(null==t)throw FP(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw FP(17);const n=_o(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw FP(22);const i="composition"===n.mode?n.global:n.global.__composer,o=kE(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if("global"===o){let n=AE(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(n=YP(i.locale.value,{messages:n,__i18n:t.type.__i18nGlobal}));const o=Object.keys(n);if(o.length&&o.forEach((e=>{i.mergeLocaleMessage(e,n[e])})),AE(e.datetimeFormats)){const t=Object.keys(e.datetimeFormats);t.length&&t.forEach((t=>{i.mergeDateTimeFormat(t,e.datetimeFormats[t])}))}if(AE(e.numberFormats)){const t=Object.keys(e.numberFormats);t.length&&t.forEach((t=>{i.mergeNumberFormat(t,e.numberFormats[t])}))}return i}if("parent"===o){let o=function(e,t,n=!1){let i=null;const o=t.root;let s=t.parent;for(;null!=s;){const t=e;if("composition"===e.mode)i=t.__getInstance(s);else{const e=t.__getInstance(s);null!=e&&(i=e.__composer),n&&i&&!i[HP]&&(i=null)}if(null!=i)break;if(o===s)break;s=s.parent}return i}(n,t,e.__useComponent);return null==o&&(o=i),o}if("legacy"===n.mode)throw FP(18);const s=n;let a=s.__getInstance(t);if(null==a){const n=t.type,o=SE({},e);n.__i18n&&(o.__i18n=n.__i18n),i&&(o.__root=i),a=GP(o),function(e,t,n){Ni((()=>{}),t),Vi((()=>{e.__deleteInstance(t)}),t)}(s,t),s.__setInstance(t,a)}return a}const cD=["locale","fallbackLocale","availableLocales"],uD=["t","rt","d","n","tm"];var dD;dD=function(e,t={}){{const n=(t.onCacheKey||SP)(e),i=CP[n];if(i)return i;let o=!1;const s=t.onError||eP;t.onError=e=>{o=!0,s(e)};const{code:a}=mP(e,t),r=new Function(`return ${a}`)();return o?r:CP[n]=r}},gP=dD;const hD=Dh();(function(){const e=Ba(KC),t=rD({locale:hD,messages:yE});return e.use(t),e.use(gE),e.use(aE),{app:e}})().app.use(hg).mount("#app");export{Gg as $,Kv as A,Hn as B,Xi as C,Ra as D,Z_ as E,Fo as F,Oy as G,yv as H,uf as I,re as J,ns as K,Lv as L,av as M,rv as N,oi as O,ym as P,nm as Q,Tu as R,sm as S,tm as T,um as U,Xs as V,tT as W,Np as X,$p as Y,Ff as Z,Xv as _,zn as a,qg as a0,oE as a1,iE as a2,ry as a3,Sv as a4,r_ as a5,ty as a6,ch as a7,uh as a8,Lp as a9,Ty as aA,Qf as aB,Ag as aC,S_ as aD,Eh as aE,Ph as aF,Ey as aG,_b as aH,QC as aa,Wd as ab,Ud as ac,Gm as ad,Hd as ae,_v as af,Og as ag,ph as ah,Qg as ai,By as aj,$y as ak,e_ as al,uT as am,Yg as an,wh as ao,Yi as ap,Ya as aq,bg as ar,wu as as,dE as at,Qv as au,Jv as av,Ni as aw,ms as ax,Cy as ay,sy as az,fb as b,Go as c,gb as d,yb as e,vb as f,is as g,as as h,vm as i,ss as j,Ko as k,zi as l,Pu as m,Ly as n,qo as o,ov as p,Hp as q,Zv as r,Xy as s,X as t,pm as u,Jg as v,Fn as w,Xg as x,Ry as y,le as z};
|