function __vite__mapDeps(indexes) { if (!__vite__mapDeps.viteFileDeps) { __vite__mapDeps.viteFileDeps = ["assets/pages-index-index.Cz1MWaFA.js","assets/_plugin-vue_export-helper.BCo6x5W8.js","assets/pages-news-ce.CCSXQBWS.js","assets/pages-login-open.Ceqt9LSI.js","assets/openPage.BSRlUAts.js","assets/open-tZRm7_lB.css","assets/uni-icons-pnNqpnb9.css","assets/notice-jRS_RjMr.css","assets/pages-login-loginPhone.D5C1kIqH.js","assets/Jiu Yi.CzP6u72b.js","assets/notice.BdRl5KCP.js","assets/uni-icons.DST64Pwo.js","assets/uni-app.es.DPi2kvld.js","assets/index.P_8jhw1Z.js","assets/loginPhone-syI9Fc8c.css","assets/getCode-B_NUGwLu.css","assets/pages-shop-shop.C5RtAyTc.js","assets/footerMenu.4E4ne5MG.js","assets/uni-popup.ICCw_VFK.js","assets/uni-popup-Btn5kTzj.css","assets/footerMenu-BQNyOFGe.css","assets/index.CwfRxvl_.js","assets/Mixins.BkpbMfyX.js","assets/index-BgAqq0vj.css","assets/index.CzCaMRAD.js","assets/search.D-MFDsCZ.js","assets/index-C7KAdkhc.css","assets/index.DF_zszAm.js","assets/index-Dg9TEF5U.css","assets/index.7KVvTpOT.js","assets/uni-load-more.5u-s_3KI.js","assets/uni-load-more-CZjV53zS.css","assets/shop.D3oH6Imh.js","assets/index-DNO-9vkk.css","assets/shop-B0Ou9guN.css","assets/pages-merchant-business-operator-index.CBATpPXw.js","assets/index.BOTqeFEy.js","assets/uni-section.BzH4ItED.js","assets/uni-section-bBtTvJlT.css","assets/uni-countdown.CetV0Ang.js","assets/uni-countdown-FqwAf4xp.css","assets/index.BI4RdXcX.js","assets/uni-tag.B4eR5K8E.js","assets/uni-tag-KneJsG_C.css","assets/index-C1yjjK9r.css","assets/index.nqhQEiPx.js","assets/index-C5R0E48_.css","assets/index.BqvoXY6m.js","assets/index-BQq-B4KX.css","assets/index.CIKTv9SN.js","assets/index-Bzyl4ED5.css","assets/uni-easyinput.B6l2xxOz.js","assets/uni-easyinput-tEToKo6I.css","assets/uni-forms.wy1AHh3E.js","assets/uni-forms-c4Jx8y51.css","assets/index.BmkZRDj0.js","assets/index-B2e0HMlf.css","assets/index-YG5iKEzf.css","assets/pages-merchant-order-index.Crl4Qf4M.js","assets/index-B4Aoycoi.css","assets/pages-merchant-commodity-release-index.DpK8lbMK.js","assets/uni-file-picker.DTxWzIcG.js","assets/uni-cloud.es.DXthrROh.js","assets/uni-file-picker-CoNejpjl.css","assets/shop-upload-image.DViqpwvt.js","assets/index.Dd48ZM-n.js","assets/index-D-ZC_R6J.css","assets/event-bus.DsryRu_A.js","assets/index-klzll8nq.css","assets/pages-merchant-specifications-index.BJnEo0z4.js","assets/index-Duq3x0CJ.css","assets/pages-shop-search-index.BWXa04zY.js","assets/index.D9qh8YtV.js","assets/index-BqYxxA-m.css","assets/index-B4haVHK_.css","assets/pages-shop-commodity-index.AHXL0zxb.js","assets/index.CMsB8dSI.js","assets/index-CT9nyJSI.css","assets/qq.D0WNrmhi.js","assets/index.vtN5q6w7.js","assets/index-BmbSY_TT.css","assets/index-CZGHNIHD.css","assets/pages-shop-continue-pay-index.BxWiA9RP.js","assets/shop-alipay-payment.BgLOaPw2.js","assets/index-PKOpVps0.css","assets/pages-shop-store-index.Be7mMK6U.js","assets/index-D2upCqyx.css","assets/pages-shop-order-index.BXP0itVA.js","assets/apiMixins.DqbqQ_6G.js","assets/index-BTlKj-sZ.css","assets/pages-shop-sales-index.uSAzbsuc.js","assets/index-BP_DuoMf.css","assets/pages-shop-refund-index.CM2xDrPk.js","assets/index-BeuK9vsa.css","assets/pages-shop-money-whereabouts-index.D1GGQQko.js","assets/index.DJhDHibs.js","assets/index.ExMM9MjP.js","assets/index-BwG3e3jY.css","assets/index-DVMlkN_D.css","assets/index-CBKtafex.css","assets/pages-shop-after-sales-index.BAI2hYQi.js","assets/uni-steps.BQmmDvJp.js","assets/uni-steps-Bm0CW5GU.css","assets/index-BahlzIlk.css","assets/pages-shop-transaction-completed-index.fAeApCxU.js","assets/pages-shop-waiting-delivery-index.AlSm3FKc.js","assets/pages-shop-logistics-state-index.BAspZgEp.js","assets/index-DkblgCKK.css","assets/pages-news-news.Cu6b6Bq2.js","assets/apex.Dr-edeq9.js","assets/statusBar.N83grA_6.js","assets/statusBar-B_SY1GJM.css","assets/apex-BPcGCfjZ.css","assets/noLogin._4tFGbsD.js","assets/noLogin-BguQrLS4.css","assets/uni-swipe-action.9Z8FtlTp.js","assets/uni-swipe-action-RLPa5okc.css","assets/news-CPAUZ9bE.css","assets/pages-news-group-chat-index.CB0JxUKb.js","assets/index-CSmBkIYB.css","assets/pages-news-question-answer-index.BxnVeVTv.js","assets/pause.BChT5pq5.js","assets/index-BcTw7NcF.css","assets/pages-news-red-envelope-index.2G34gMAp.js","assets/index-rleiDoXc.css","assets/pages-mine-mine.BGof91S8.js","assets/mine-GksqO3Ht.css","assets/pages-mine-set-up-index.BNKY79WP.js","assets/index-BfWzKW0Z.css","assets/pages-mine-userinfo.CwlO_wcb.js","assets/userinfo-DvplCAzZ.css","assets/pages-mine-switch-accounts-index.BHEKEsgD.js","assets/index-C5t3wcEf.css","assets/pages-mine-pay-use-index.AL4UOHTi.js","assets/index-h4cwtTFw.css","assets/pages-mine-real-name-authentication-index.BIotYnT8.js","assets/index-DttGGMR-.css","assets/pages-mine-delivery-address-index.DSkNs1PF.js","assets/index-XRrQ-se5.css","assets/pages-mine-balance-index.CTM9mN3A.js","assets/index.Bh-NoLyu.js","assets/index-C8mnazyT.css","assets/index-BCd5TzHr.css","assets/pages-mine-balance-details-index.b3H6WdCj.js","assets/index-DQJPEUOk.css","assets/pages-mine-historical-browsing-index.Dy-OeNeD.js","assets/index-ChqrEUx0.css","assets/pages-mine-browsed-index.BA4GMjNY.js","assets/index-B4MtUk-W.css","assets/pages-mine-collection-index.Ci4OepAn.js","assets/index-CLu6ayyN.css","assets/pages-mine-target-store-index.DeIyJLO4.js","assets/pages-mine-coupon-index.sTRTt4D7.js","assets/index-mn0qgEHm.css","assets/pages-mine-homepage.KRdm9VIZ.js","assets/videoMenu.CdZt6U9v.js","assets/videoMenu-Def42LRJ.css","assets/collectList.BwuiCbuk.js","assets/collectList-Bi0M3eke.css","assets/homepage-WS49fhsK.css","assets/pages-release-video.CWyPIMaG.js","assets/video-Fp2BDejq.css","assets/pages-index-wallet.Cggr0JM2.js","assets/wallet-XmydWOqs.css","assets/pages-index-myTeam.BmF2_V5Z.js","assets/intergral.GxVVZwW0.js","assets/myTeam-BpE7oY5Z.css","assets/pages-index-search.24dCpZZF.js","assets/indexShare.BHhcFR3i.js","assets/search-CwO3nlGq.css","assets/pages-index-videoHome.0J4YEipz.js","assets/copy.CU8_m4gR.js","assets/videoHome-C6ERj99Y.css","assets/pages-index-report.Bkf2T_5b.js","assets/report-D-rqFtqx.css","assets/pages-mine-collectsVideo.fWAotXoZ.js","assets/collectsVideo-CG8GdyRe.css","assets/pages-index-promotion.Bd32afsy.js","assets/promotion-B9plNpg_.css","assets/pages-index-myQrCode.Cv0mrINv.js","assets/myQrCode-CLJPthsL.css","assets/pages-index-deal.DbnIWoHH.js","assets/durian.vibXmwr-.js","assets/deal-BtA8NHPb.css","assets/pages-index-durian.CGE_W2m7.js","assets/sapling.CU-9wLV7.js","assets/tree.Ck-xGDT5.js","assets/fruit.Dgsn80ag.js","assets/task.D9E-JXG_.js","assets/task-DfxSa6eI.css","assets/durian-FmMZc2Qz.css","assets/pages-index-durainActivation.CEGKWbYt.js","assets/durainActivation-gUQ4XDYB.css","assets/pages-index-trade.CWvpPCgL.js","assets/trade-DcLCBYc7.css","assets/pages-index-orchard.5huHtivT.js","assets/orchard-BV4Y5oQv.css","assets/pages-index-durianLog.UdFN9TWn.js","assets/pages-index-extend.Dv9r9kbq.js","assets/extend-LceTLrn4.css","assets/pages-login-register.dkbe3_iA.js","assets/getCode.GsTGZqBD.js","assets/register-CbOAZOW8.css","assets/pages-login-invite.CWHyjLNp.js","assets/invite-DRsB25mE.css","assets/pages-login-forget.BwVWU2nC.js","assets/forget-CAEfHb53.css","assets/pages-login-retrieve.BvW3wyiq.js","assets/retrieve-gURtxQtm.css","assets/pages-shop-settle.CHuKx2xo.js","assets/settle-zlk0eaVt.css","assets/pages-index-integral.CeyhHVcE.js","assets/integral.6rN3MfCO.js","assets/integral-Ckk_ENaX.css","assets/pages-index-integralLog.Cpli-vrX.js","assets/pages-index-integralMall.BJz1yg7M.js","assets/integralMall-CN1hK8eT.css","assets/pages-index-appeal.CSACfTN7.js","assets/appeal-CvYcHRY1.css","assets/pages-index-beInvited.0yk_2_z8.js","assets/beInvited-CFubm-Z8.css","assets/pages-index-videoDetail.Q58Gx9Uh.js","assets/videoDetail-C1sKGr0T.css","assets/pages-news-newFriend.4pKhThhf.js","assets/newFriend-DHpDCZvY.css","assets/pages-news-newAttention.D6wUc9Sv.js","assets/newAttention-DM1ql9pC.css","assets/pages-news-newFans.D8dRFBB1.js","assets/newFans-CB3KW1XO.css","assets/pages-news-message.BjSh5cv0.js","assets/message-CwAvwNv-.css","assets/pages-index-article.DSuWHom_.js","assets/pages-index-topUp.DCY71K1p.js","assets/topUp-CYioGOQL.css","assets/pages-news-addFriend.CgkNGrzk.js","assets/addFriend-DSmCKzjQ.css","assets/pages-news-redPacket.BxJobKBp.js","assets/redPacket-BCUYb4wG.css","assets/pages-news-audio-video-video.BqZ2rU3T.js","assets/pages-news-applyFriend.-STHOPQ6.js","assets/applyFriend-D4Pl6ZE_.css","assets/TUIKit-components-TUIConversation-index.xIELV9qi.js","assets/index.C_XD_DK3.js","assets/adapter-vue.FAvEd_HK.js","assets/index.DzsMB11z.js","assets/index-CaFwFdDx.css","assets/TUIKit-components-TUISearch-index.DuoOvP9h.js","assets/down-icon.DejhYoTd.js","assets/video-play.DNCOEYvb.js","assets/constant.BaYkq7sJ.js","assets/right-icon.-uAfiCH7.js","assets/enableSampleTaskStatus.DI0Y9wcO.js","assets/index-CvO_fE_k.css","assets/index.DHwyKTWe.js","assets/index-CI7Biaph.css","assets/index.DmqBuDyZ.js","assets/index-D3-qZFye.css","assets/index-MZIn3EoW.css","assets/TUIKit-components-TUIChat-index.DwECrWtn.js","assets/index.BcNTMUDJ.js","assets/index-D5zA6JPA.css","assets/lodash.CBwPAxVQ.js","assets/documentLink.EyPR0R2v.js","assets/index-CqmDVw73.css","assets/TUIKit-components-TUIChat-video-play.DOWVYERb.js","assets/video-play-DsWtHhb8.css","assets/TUIKit-components-TUIChat-web-view.DfgHbxt0.js","assets/TUIKit-components-TUIContact-index.DtCgyXd8.js","assets/edit.B9Urilbg.js","assets/index-CSgY9m-I.css","assets/TUIKit-components-TUIGroup-index.BCkNIvPL.js","assets/index-CIXb8bwX.css"] } return indexes.map((i) => __vite__mapDeps.viteFileDeps[i]) } !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 e={},t=function(t,n,o){let i=Promise.resolve();if(n&&n.length>0){const t=document.getElementsByTagName("link"),s=document.querySelector("meta[property=csp-nonce]"),a=(null==s?void 0:s.nonce)||(null==s?void 0:s.getAttribute("nonce"));i=Promise.all(n.map((n=>{if((n=function(e){return"/"+e}(n))in e)return;e[n]=!0;const i=n.endsWith(".css"),s=i?'[rel="stylesheet"]':"";if(!!o)for(let e=t.length-1;e>=0;e--){const o=t[e];if(o.href===n&&(!i||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${n}"]${s}`))return;const r=document.createElement("link");return r.rel=i?"stylesheet":"modulepreload",i||(r.as="script",r.crossOrigin=""),r.href=n,a&&r.setAttribute("nonce",a),document.head.appendChild(r),i?new Promise(((e,t)=>{r.addEventListener("load",e),r.addEventListener("error",(()=>t(new Error(`Unable to preload CSS for ${n}`))))})):void 0})))}return i.then((()=>t())).catch((e=>{const t=new Event("vite:preloadError",{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}))}; /** * @vue/shared v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ function n(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}const o={},i=[],s=()=>{},a=()=>!1,r=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),c=e=>e.startsWith("onUpdate:"),u=Object.assign,l=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},d=Object.prototype.hasOwnProperty,p=(e,t)=>d.call(e,t),h=Array.isArray,f=e=>"[object Map]"===T(e),g=e=>"[object Set]"===T(e),_=e=>"[object Date]"===T(e),m=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,I=e=>null!==e&&"object"==typeof e,M=e=>(I(e)||m(e))&&m(e.then)&&m(e.catch),C=Object.prototype.toString,T=e=>C.call(e),S=e=>"[object Object]"===T(e),E=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),k=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},L=/-(\w)/g,b=k((e=>e.replace(L,((e,t)=>t?t.toUpperCase():"")))),A=/\B([A-Z])/g,R=k((e=>e.replace(A,"-$1").toLowerCase())),O=k((e=>e.charAt(0).toUpperCase()+e.slice(1))),N=k((e=>e?`on${O(e)}`:"")),P=(e,t)=>!Object.is(e,t),w=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},U=e=>{const t=parseFloat(e);return isNaN(t)?e:t},x=e=>{const t=v(e)?Number(e):NaN;return isNaN(t)?e:t};let F;const q=()=>F||(F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}),V=n("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error");function B(e){if(h(e)){const t={};for(let n=0;n{if(e){const n=e.split(K);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function W(e){let t="";if(v(e))t=e;else if(h(e))for(let n=0;nX(e,t)))}const Z=e=>v(e)?e:null==e?"":h(e)||I(e)&&(e.toString===C||!m(e.toString))?JSON.stringify(e,Q,2):String(e),Q=(e,t)=>t&&t.__v_isRef?Q(e,t.value):f(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],o)=>(e[ee(t,o)+" =>"]=n,e)),{})}:g(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>ee(e)))}:y(t)?ee(t):!I(t)||h(t)||S(t)?t:String(t),ee=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e},te=["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","location-picker","location-view"].map((e=>"uni-"+e)),ne=["list-view","list-item","sticky-section","sticky-header","cloud-db-element"].map((e=>"uni-"+e)),oe=["list-item"].map((e=>"uni-"+e));function ie(e){if(-1!==oe.indexOf(e))return!1;const t="uni-"+e.replace("v-uni-","");return-1!==te.indexOf(t)||-1!==ne.indexOf(t)}const se="\n",ae=["%","%"],re="#007aff",ce=/^([a-z-]+:)?\/\//i,ue=/^data:.*,.*/,le="onShow",de="onHide",pe="onError",he="onThemeChange",fe="onPageNotFound",ge="onUnhandledRejection",_e="onLoad",me="onReady",ve="onUnload",ye="onInit",Ie="onSaveExitState",Me="onResize",Ce="onBackPress",Te="onPageScroll",Se="onTabItemTap",Ee="onReachBottom",De="onPullDownRefresh",ke="onShareTimeline",Le="onAddToFavorites",be="onShareAppMessage",Ae="onNavigationBarButtonTap",Re="onNavigationBarSearchInputClicked",Oe="onNavigationBarSearchInputChanged",Ne="onNavigationBarSearchInputConfirmed",Pe="onNavigationBarSearchInputFocusChanged",we="onAppEnterForeground",Ge="onAppEnterBackground",Ue="onWebInvokeAppService";function xe(e){return e&&(e.appContext?e.proxy:e)}function Fe(e){if(!e)return;let t=e.type.name;for(;t&&ie(R(t));)t=(e=e.parent).type.name;return e.proxy}function qe(e){return 1===e.nodeType}function Ve(e){if(e instanceof Map){const t={};return e.forEach(((e,n)=>{t[n]=e})),B(t)}if(v(e))return $(e);if(h(e)){const t={};for(let n=0;n{e&&(t+=n+" ")}));else if(h(e))for(let n=0;n(e&&(n=e.apply(t,o),e=null),n)}const ze=e=>e>9?e:"0"+e;function Xe({date:e=new Date,mode:t="date"}){return"time"===t?ze(e.getHours())+":"+ze(e.getMinutes()):e.getFullYear()+"-"+ze(e.getMonth()+1)+"-"+ze(e.getDate())}function Je(e,t){e=e||{},v(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)}function Ze(e){return b(e.substring(5))}const Qe=Ye((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[Ze(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[Ze(e)],n.call(this,e)}}));function et(e){return u({},e.dataset,e.__uniDataset)}const nt=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function ot(e){return{passive:e}}function it(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:et(e),offsetTop:n,offsetLeft:o}}function st(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function at(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=st(e[n])}catch(aL){t[n]=e[n]}})),t}const rt=/\+/g;function ct(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe.apply(this,arguments)),t)};return s.cancel=function(){n(i)},s}class lt{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 o=0;o{if(m(e._component.onError))return t(e)})),gt=function(){};gt.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function i(){o.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,i=n.length;o=0;s--)if(o[s].fn===t||o[s].fn._===t){o.splice(s,1);break}i=o}return i.length?n[e]=i:delete n[e],this}};var _t=gt;const mt={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function vt(e,t,n){if(v(t)&&t.startsWith("@")){let i=e[t.replace("@","")]||t;switch(n){case"titleColor":i="black"===i?"#000000":"#ffffff";break;case"borderStyle":i=(o=i)&&o in mt?mt[o]:o}return i}var o;return t}function yt(e,t={},n="light"){const o=t[n],i={};return void 0!==o&&e?(Object.keys(e).forEach((s=>{const a=e[s];i[s]=S(a)?yt(a,t,n):h(a)?a.map((e=>"object"==typeof e?yt(e,t,n):vt(o,e))):vt(o,a,s)})),i):e} /** * @dcloudio/uni-h5-vue v3.4.21 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let It,Mt;class Ct{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=It,!e&&It&&(this.index=(It.scopes||(It.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=It;try{return It=this,e()}finally{It=t}}}on(){It=this}off(){It=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),Ut()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=Nt,t=Mt;try{return Nt=!0,Mt=this,this._runnings++,Lt(this),this.fn()}finally{bt(this),this._runnings--,Mt=t,Nt=e}}stop(){var e;this.active&&(Lt(this),bt(this),null==(e=this.onStop)||e.call(this),this.active=!1)}}function Lt(e){e._trackId++,e._depsLength=0}function bt(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t{n.dirty&&n.run()}));t&&(u(n,t),t.scope&&St(n,t.scope)),t&&t.lazy||n.run();const o=n.run.bind(n);return o.effect=n,o}function Ot(e){e.effect.stop()}let Nt=!0,Pt=0;const wt=[];function Gt(){wt.push(Nt),Nt=!1}function Ut(){const e=wt.pop();Nt=void 0===e||e}function xt(){Pt++}function Ft(){for(Pt--;!Pt&&Vt.length;)Vt.shift()()}function qt(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&At(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}const Vt=[];function Bt(e,t,n){xt();for(const o of e.keys()){let n;o._dirtyLevel{const n=new Map;return n.cleanup=e,n.computed=t,n},Kt=new WeakMap,jt=Symbol(""),$t=Symbol("");function Wt(e,t,n){if(Nt&&Mt){let t=Kt.get(e);t||Kt.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Ht((()=>t.delete(n)))),qt(Mt,o)}}function Yt(e,t,n,o,i,s){const a=Kt.get(e);if(!a)return;let r=[];if("clear"===t)r=[...a.values()];else if("length"===n&&h(e)){const e=Number(o);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":h(e)?E(n)&&r.push(a.get("length")):(r.push(a.get(jt)),f(e)&&r.push(a.get($t)));break;case"delete":h(e)||(r.push(a.get(jt)),f(e)&&r.push(a.get($t)));break;case"set":f(e)&&r.push(a.get(jt))}xt();for(const c of r)c&&Bt(c,4);Ft()}const zt=n("__proto__,__v_isRef,__isVue"),Xt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(y)),Jt=Zt();function Zt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Kn(this);for(let t=0,i=this.length;t{e[t]=function(...e){Gt(),xt();const n=Kn(this)[t].apply(this,e);return Ft(),Ut(),n}})),e}function Qt(e){const t=Kn(this);return Wt(t,0,e),t.hasOwnProperty(e)}class en{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const o=this._isReadonly,i=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return i;if("__v_raw"===t)return n===(o?i?Nn:On:i?Rn:An).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=h(e);if(!o){if(s&&p(Jt,t))return Reflect.get(Jt,t,n);if("hasOwnProperty"===t)return Qt}const a=Reflect.get(e,t,n);return(y(t)?Xt.has(t):zt(t))?a:(o||Wt(e,0,t),i?a:Jn(a)?s&&E(t)?a:a.value:I(a)?o?Un(a):wn(a):a)}}class tn extends en{constructor(e=!1){super(!1,e)}set(e,t,n,o){let i=e[t];if(!this._isShallow){const t=Vn(i);if(Bn(n)||Vn(n)||(i=Kn(i),n=Kn(n)),!h(e)&&Jn(i)&&!Jn(n))return!t&&(i.value=n,!0)}const s=h(e)&&E(t)?Number(t)e,un=e=>Reflect.getPrototypeOf(e);function ln(e,t,n=!1,o=!1){const i=Kn(e=e.__v_raw),s=Kn(t);n||(P(t,s)&&Wt(i,0,t),Wt(i,0,s));const{has:a}=un(i),r=o?cn:n?Wn:$n;return a.call(i,t)?r(e.get(t)):a.call(i,s)?r(e.get(s)):void(e!==i&&e.get(t))}function dn(e,t=!1){const n=this.__v_raw,o=Kn(n),i=Kn(e);return t||(P(e,i)&&Wt(o,0,e),Wt(o,0,i)),e===i?n.has(e):n.has(e)||n.has(i)}function pn(e,t=!1){return e=e.__v_raw,!t&&Wt(Kn(e),0,jt),Reflect.get(e,"size",e)}function hn(e){e=Kn(e);const t=Kn(this);return un(t).has.call(t,e)||(t.add(e),Yt(t,"add",e,e)),this}function fn(e,t){t=Kn(t);const n=Kn(this),{has:o,get:i}=un(n);let s=o.call(n,e);s||(e=Kn(e),s=o.call(n,e));const a=i.call(n,e);return n.set(e,t),s?P(t,a)&&Yt(n,"set",e,t):Yt(n,"add",e,t),this}function gn(e){const t=Kn(this),{has:n,get:o}=un(t);let i=n.call(t,e);i||(e=Kn(e),i=n.call(t,e)),o&&o.call(t,e);const s=t.delete(e);return i&&Yt(t,"delete",e,void 0),s}function _n(){const e=Kn(this),t=0!==e.size,n=e.clear();return t&&Yt(e,"clear",void 0,void 0),n}function mn(e,t){return function(n,o){const i=this,s=i.__v_raw,a=Kn(s),r=t?cn:e?Wn:$n;return!e&&Wt(a,0,jt),s.forEach(((e,t)=>n.call(o,r(e),r(t),i)))}}function vn(e,t,n){return function(...o){const i=this.__v_raw,s=Kn(i),a=f(s),r="entries"===e||e===Symbol.iterator&&a,c="keys"===e&&a,u=i[e](...o),l=n?cn:t?Wn:$n;return!t&&Wt(s,0,c?$t:jt),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:r?[l(e[0]),l(e[1])]:l(e),done:t}},[Symbol.iterator](){return this}}}}function yn(e){return function(...t){return"delete"!==e&&("clear"===e?void 0:this)}}function In(){const e={get(e){return ln(this,e)},get size(){return pn(this)},has:dn,add:hn,set:fn,delete:gn,clear:_n,forEach:mn(!1,!1)},t={get(e){return ln(this,e,!1,!0)},get size(){return pn(this)},has:dn,add:hn,set:fn,delete:gn,clear:_n,forEach:mn(!1,!0)},n={get(e){return ln(this,e,!0)},get size(){return pn(this,!0)},has(e){return dn.call(this,e,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:mn(!0,!1)},o={get(e){return ln(this,e,!0,!0)},get size(){return pn(this,!0)},has(e){return dn.call(this,e,!0)},add:yn("add"),set:yn("set"),delete:yn("delete"),clear:yn("clear"),forEach:mn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((i=>{e[i]=vn(i,!1,!1),n[i]=vn(i,!0,!1),t[i]=vn(i,!1,!0),o[i]=vn(i,!0,!0)})),[e,n,t,o]}const[Mn,Cn,Tn,Sn]=In();function En(e,t){const n=t?e?Sn:Tn:e?Cn:Mn;return(t,o,i)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(p(n,o)&&o in t?n:t,o,i)}const Dn={get:En(!1,!1)},kn={get:En(!1,!0)},Ln={get:En(!0,!1)},bn={get:En(!0,!0)},An=new WeakMap,Rn=new WeakMap,On=new WeakMap,Nn=new WeakMap;function Pn(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=>T(e).slice(8,-1))(e))}function wn(e){return Vn(e)?e:Fn(e,!1,on,Dn,An)}function Gn(e){return Fn(e,!1,an,kn,Rn)}function Un(e){return Fn(e,!0,sn,Ln,On)}function xn(e){return Fn(e,!0,rn,bn,Nn)}function Fn(e,t,n,o,i){if(!I(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const a=Pn(e);if(0===a)return e;const r=new Proxy(e,2===a?o:n);return i.set(e,r),r}function qn(e){return Vn(e)?qn(e.__v_raw):!(!e||!e.__v_isReactive)}function Vn(e){return!(!e||!e.__v_isReadonly)}function Bn(e){return!(!e||!e.__v_isShallow)}function Hn(e){return qn(e)||Vn(e)}function Kn(e){const t=e&&e.__v_raw;return t?Kn(t):e}function jn(e){return Object.isExtensible(e)&&G(e,"__v_skip",!0),e}const $n=e=>I(e)?wn(e):e,Wn=e=>I(e)?Un(e):e;class Yn{constructor(e,t,n,o){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new kt((()=>e(this._value)),(()=>Xn(this,2===this.effect._dirtyLevel?2:3))),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Kn(this);return e._cacheable&&!e.effect.dirty||!P(e._value,e._value=e.effect.run())||Xn(e,4),zn(e),e.effect._dirtyLevel>=2&&Xn(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function zn(e){var t;Nt&&Mt&&(e=Kn(e),qt(Mt,null!=(t=e.dep)?t:e.dep=Ht((()=>e.dep=void 0),e instanceof Yn?e:void 0)))}function Xn(e,t=4,n){const o=(e=Kn(e)).dep;o&&Bt(o,t)}function Jn(e){return!(!e||!0!==e.__v_isRef)}function Zn(e){return eo(e,!1)}function Qn(e){return eo(e,!0)}function eo(e,t){return Jn(e)?e:new to(e,t)}class to{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Kn(e),this._value=t?e:$n(e)}get value(){return zn(this),this._value}set value(e){const t=this.__v_isShallow||Bn(e)||Vn(e);e=t?e:Kn(e),P(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:$n(e),Xn(this,4))}}function no(e){Xn(e,4)}function oo(e){return Jn(e)?e.value:e}function io(e){return m(e)?e():oo(e)}const so={get:(e,t,n)=>oo(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return Jn(i)&&!Jn(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function ao(e){return qn(e)?e:new Proxy(e,so)}class ro{constructor(e){this.dep=void 0,this.__v_isRef=!0;const{get:t,set:n}=e((()=>zn(this)),(()=>Xn(this)));this._get=t,this._set=n}get value(){return this._get()}set value(e){this._set(e)}}function co(e){return new ro(e)}function uo(e){const t=h(e)?new Array(e.length):{};for(const n in e)t[n]=fo(e,n);return t}class lo{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Kn(this._object),t=this._key,null==(n=Kt.get(e))?void 0:n.get(t);var e,t,n}}class po{constructor(e){this._getter=e,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function ho(e,t,n){return Jn(e)?e:m(e)?new po(e):I(e)&&arguments.length>1?fo(e,t,n):Zn(e)}function fo(e,t,n){const o=e[t];return Jn(o)?o:new lo(e,t,n)}const go={GET:"get",HAS:"has",ITERATE:"iterate"},_o={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"};function mo(e,t){}const vo={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",WATCH_GETTER:2,2:"WATCH_GETTER",WATCH_CALLBACK:3,3:"WATCH_CALLBACK",WATCH_CLEANUP:4,4:"WATCH_CLEANUP",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER"},yo={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",ba:"beforeActivate hook",a:"activated hook",bda:"beforeDeactivate hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function Io(e,t,n,o){try{return o?e(...o):e()}catch(i){Co(i,t,n)}}function Mo(e,t,n,o){if(m(e)){const i=Io(e,t,n,o);return i&&M(i)&&i.catch((e=>{Co(e,t,n)})),i}const i=[];for(let s=0;s>>1,i=Eo[o],s=xo(i);sxo(e)-xo(t)));if(ko.length=0,Lo)return void Lo.push(...e);for(Lo=e,bo=0;bonull==e.id?1/0:e.id,Fo=(e,t)=>{const n=xo(e)-xo(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function qo(e){So=!1,To=!0,Eo.sort(Fo);try{for(Do=0;Dov(e)?e.trim():e))),t&&(s=n.map(U))}let c,u=i[c=N(t)]||i[c=N(b(t))];!u&&a&&(u=i[c=N(R(t))]),u&&Mo(u,e,6,Ko(e,u,s));const l=i[c+"Once"];if(l){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,Mo(l,e,6,Ko(e,l,s))}}function Ko(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 o=n[0];if(o&&p(o,"type")&&p(o,"timeStamp")&&p(o,"target")&&p(o,"currentTarget")&&p(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function jo(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(void 0!==i)return i;const s=e.emits;let a={},r=!1;if(!m(e)){const o=e=>{const n=jo(e,t,!0);n&&(r=!0,u(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return s||r?(h(s)?s.forEach((e=>a[e]=null)):u(a,s),I(e)&&o.set(e,a),a):(I(e)&&o.set(e,null),null)}function $o(e,t){return!(!e||!r(t))&&(t=t.slice(2).replace(/Once$/,""),p(e,t[0].toLowerCase()+t.slice(1))||p(e,R(t))||p(e,t))}let Wo=null,Yo=null;function zo(e){const t=Wo;return Wo=e,Yo=e&&e.type.__scopeId||null,t}function Xo(e){Yo=e}function Jo(){Yo=null}const Zo=e=>Qo;function Qo(e,t=Wo,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&er(-1);const i=zo(t);let s;try{s=e(...n)}finally{zo(i),o._d&&er(1)}return s};return o._n=!0,o._c=!0,o._d=!0,o}function ei(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:s,propsOptions:[a],slots:r,attrs:u,emit:l,render:d,renderCache:p,data:h,setupState:f,ctx:g,inheritAttrs:_}=e;let m,v;const y=zo(e);try{if(4&n.shapeFlag){const e=i||o,t=e;m=mr(d.call(t,e,p,s,f,h,g)),v=u}else{const e=t;0,m=mr(e.length>1?e(s,{attrs:u,slots:r,emit:l}):e(s,null)),v=t.props?u:ti(u)}}catch(M){za.length=0,Co(M,e,1),m=dr(Wa)}let I=m;if(v&&!1!==_){const e=Object.keys(v),{shapeFlag:t}=I;e.length&&7&t&&(a&&e.some(c)&&(v=ni(v,a)),I=hr(I,v))}return n.dirs&&(I=hr(I),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition&&(I.transition=n.transition),m=I,zo(y),m}const ti=e=>{let t;for(const n in e)("class"===n||"style"===n||r(n))&&((t||(t={}))[n]=e[n]);return t},ni=(e,t)=>{const n={};for(const o in e)c(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function oi(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;ie.__isSuspense;let hi=0;const fi={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,s,a,r,c,u){if(null==e)!function(e,t,n,o,i,s,a,r,c){const{p:u,o:{createElement:l}}=c,d=l("div"),p=e.suspense=_i(e,i,o,t,d,n,s,a,r,c);u(null,p.pendingBranch=e.ssContent,d,null,o,p,s,a),p.deps>0?(gi(e,"onPending"),gi(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,s,a),yi(p,e.ssFallback)):p.resolve(!1,!0)}(t,n,o,i,s,a,r,c,u);else{if(s&&s.deps>0&&!e.suspense.isInFallback)return t.suspense=e.suspense,t.suspense.vnode=t,void(t.el=e.el);!function(e,t,n,o,i,s,a,r,{p:c,um:u,o:{createElement:l}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const p=t.ssContent,h=t.ssFallback,{activeBranch:f,pendingBranch:g,isInFallback:_,isHydrating:m}=d;if(g)d.pendingBranch=p,sr(p,g)?(c(g,p,d.hiddenContainer,null,i,d,s,a,r),d.deps<=0?d.resolve():_&&(m||(c(f,h,n,o,i,null,s,a,r),yi(d,h)))):(d.pendingId=hi++,m?(d.isHydrating=!1,d.activeBranch=g):u(g,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=l("div"),_?(c(null,p,d.hiddenContainer,null,i,d,s,a,r),d.deps<=0?d.resolve():(c(f,h,n,o,i,null,s,a,r),yi(d,h))):f&&sr(p,f)?(c(f,p,n,o,i,d,s,a,r),d.resolve(!0)):(c(null,p,d.hiddenContainer,null,i,d,s,a,r),d.deps<=0&&d.resolve()));else if(f&&sr(p,f))c(f,p,n,o,i,d,s,a,r),yi(d,p);else if(gi(t,"onPending"),d.pendingBranch=p,512&p.shapeFlag?d.pendingId=p.component.suspenseId:d.pendingId=hi++,c(null,p,d.hiddenContainer,null,i,d,s,a,r),d.deps<=0)d.resolve();else{const{timeout:e,pendingId:t}=d;e>0?setTimeout((()=>{d.pendingId===t&&d.fallback(h)}),e):0===e&&d.fallback(h)}}(e,t,n,o,i,a,r,c,u)}},hydrate:function(e,t,n,o,i,s,a,r,c){const u=t.suspense=_i(t,o,n,e.parentNode,document.createElement("div"),null,i,s,a,r,!0),l=c(e,u.pendingBranch=t.ssContent,n,u,s,a);0===u.deps&&u.resolve(!1,!0);return l},create:_i,normalize:function(e){const{shapeFlag:t,children:n}=e,o=32&t;e.ssContent=mi(o?n.default:n),e.ssFallback=o?mi(n.fallback):dr(Wa)}};function gi(e,t){const n=e.props&&e.props[t];m(n)&&n()}function _i(e,t,n,o,i,s,a,r,c,u,l=!1){const{p:d,m:p,um:h,n:f,o:{parentNode:g,remove:_}}=u;let m;const v=function(e){var t;return null!=(null==(t=e.props)?void 0:t.suspensible)&&!1!==e.props.suspensible}(e);v&&(null==t?void 0:t.pendingBranch)&&(m=t.pendingId,t.deps++);const y=e.props?x(e.props.timeout):void 0,I=s,M={vnode:e,parent:t,parentComponent:n,namespace:a,container:o,hiddenContainer:i,deps:0,pendingId:hi++,timeout:"number"==typeof y?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!l,isHydrating:l,isUnmounted:!1,effects:[],resolve(e=!1,n=!1){const{vnode:o,activeBranch:i,pendingBranch:a,pendingId:r,effects:c,parentComponent:u,container:l}=M;let d=!1;M.isHydrating?M.isHydrating=!1:e||(d=i&&a.transition&&"out-in"===a.transition.mode,d&&(i.transition.afterLeave=()=>{r===M.pendingId&&(p(a,l,s===I?f(i):s,0),wo(c))}),i&&(g(i.el)!==M.hiddenContainer&&(s=f(i)),h(i,u,M,!0)),d||p(a,l,s,0)),yi(M,a),M.pendingBranch=null,M.isInFallback=!1;let _=M.parent,y=!1;for(;_;){if(_.pendingBranch){_.effects.push(...c),y=!0;break}_=_.parent}y||d||wo(c),M.effects=[],v&&t&&t.pendingBranch&&m===t.pendingId&&(t.deps--,0!==t.deps||n||t.resolve()),gi(o,"onResolve")},fallback(e){if(!M.pendingBranch)return;const{vnode:t,activeBranch:n,parentComponent:o,container:i,namespace:s}=M;gi(t,"onFallback");const a=f(n),u=()=>{M.isInFallback&&(d(null,e,i,a,o,null,s,r,c),yi(M,e))},l=e.transition&&"out-in"===e.transition.mode;l&&(n.transition.afterLeave=u),M.isInFallback=!0,h(n,o,null,!0),l||u()},move(e,t,n){M.activeBranch&&p(M.activeBranch,e,t,n),M.container=e},next:()=>M.activeBranch&&f(M.activeBranch),registerDep(e,t){const n=!!M.pendingBranch;n&&M.deps++;const o=e.vnode.el;e.asyncDep.catch((t=>{Co(t,e,0)})).then((i=>{if(e.isUnmounted||M.isUnmounted||M.pendingId!==e.suspenseId)return;e.asyncResolved=!0;const{vnode:s}=e;Gr(e,i,!1),o&&(s.el=o);const r=!o&&e.subTree.el;t(e,s,g(o||e.subTree.el),o?null:f(e.subTree),M,a,c),r&&_(r),ii(e,s.el),n&&0==--M.deps&&M.resolve()}))},unmount(e,t){M.isUnmounted=!0,M.activeBranch&&h(M.activeBranch,n,e,t),M.pendingBranch&&h(M.pendingBranch,n,e,t)}};return M}function mi(e){let t;if(m(e)){const n=Qa&&e._c;n&&(e._d=!1,Ja()),e=e(),n&&(e._d=!0,t=Xa,Za())}if(h(e)){const t=function(e){let t;for(let n=0;nt!==e))),e}function vi(e,t){t&&t.pendingBranch?h(e)?t.effects.push(...e):t.effects.push(e):wo(e)}function yi(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e;let i=t.el;for(;!i&&t.component;)i=(t=t.component.subTree).el;n.el=i,o&&o.subTree===n&&(o.vnode.el=i,ii(o,i))}const Ii=Symbol.for("v-scx"),Mi=()=>la(Ii);function Ci(e,t){return ki(e,null,t)}function Ti(e,t){return ki(e,null,{flush:"post"})}function Si(e,t){return ki(e,null,{flush:"sync"})}const Ei={};function Di(e,t,n){return ki(e,t,n)}function ki(e,t,{immediate:n,deep:i,flush:a,once:r,onTrack:c,onTrigger:u}=o){if(t&&r){const e=t;t=(...t)=>{e(...t),D()}}const d=Er,p=e=>!0===i?e:Ai(e,!1===i?1:void 0);let f,g,_=!1,v=!1;if(Jn(e)?(f=()=>e.value,_=Bn(e)):qn(e)?(f=()=>p(e),_=!0):h(e)?(v=!0,_=e.some((e=>qn(e)||Bn(e))),f=()=>e.map((e=>Jn(e)?e.value:qn(e)?p(e):m(e)?Io(e,d,2):void 0))):f=m(e)?t?()=>Io(e,d,2):()=>(g&&g(),Mo(e,d,3,[I])):s,t&&i){const e=f;f=()=>Ai(e())}let y,I=e=>{g=S.onStop=()=>{Io(e,d,4),g=S.onStop=void 0}};if(Pr){if(I=s,t?n&&Mo(t,d,3,[f(),v?[]:void 0,I]):f(),"sync"!==a)return s;{const e=Mi();y=e.__watcherHandles||(e.__watcherHandles=[])}}let M=v?new Array(e.length).fill(Ei):Ei;const C=()=>{if(S.active&&S.dirty)if(t){const e=S.run();(i||_||(v?e.some(((e,t)=>P(e,M[t]))):P(e,M)))&&(g&&g(),Mo(t,d,3,[e,M===Ei?void 0:v&&M[0]===Ei?[]:M,I]),M=e)}else S.run()};let T;C.allowRecurse=!!t,"sync"===a?T=C:"post"===a?T=()=>ba(C,d&&d.suspense):(C.pre=!0,d&&(C.id=d.uid),T=()=>No(C));const S=new kt(f,s,T),E=Et(),D=()=>{S.stop(),E&&l(E.effects,S)};return t?n?C():M=S.run():"post"===a?ba(S.run.bind(S),d&&d.suspense):S.run(),y&&y.push(D),D}function Li(e,t,n){const o=this.proxy,i=v(e)?e.includes(".")?bi(o,e):()=>o[e]:e.bind(o,o);let s;m(t)?s=t:(s=t.handler,n=t);const a=br(this),r=ki(i,s.bind(o),n);return a(),r}function bi(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e0){if(n>=t)return e;n++}if((o=o||new Set).has(e))return e;if(o.add(e),Jn(e))Ai(e.value,t,n,o);else if(h(e))for(let i=0;i{Ai(e,t,n,o)}));else if(S(e))for(const i in e)Ai(e[i],t,n,o);return e}function Ri(e,t){if(null===Wo)return e;const n=Vr(Wo)||Wo.proxy,i=e.dirs||(e.dirs=[]);for(let s=0;s{e.isMounted=!0})),_s((()=>{e.isUnmounting=!0})),e}const Gi=[Function,Array],Ui={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gi,onEnter:Gi,onAfterEnter:Gi,onEnterCancelled:Gi,onBeforeLeave:Gi,onLeave:Gi,onAfterLeave:Gi,onLeaveCancelled:Gi,onBeforeAppear:Gi,onAppear:Gi,onAfterAppear:Gi,onAppearCancelled:Gi},xi={name:"BaseTransition",props:Ui,setup(e,{slots:t}){const n=Dr(),o=wi();return()=>{const i=t.default&&Ki(t.default(),!0);if(!i||!i.length)return;let s=i[0];if(i.length>1)for(const e of i)if(e.type!==Wa){s=e;break}const a=Kn(e),{mode:r}=a;if(o.isLeaving)return Vi(s);const c=Bi(s);if(!c)return Vi(s);const u=qi(c,a,o,n);Hi(c,u);const l=n.subTree,d=l&&Bi(l);if(d&&d.type!==Wa&&!sr(c,d)){const e=qi(d,a,o,n);if(Hi(d,e),"out-in"===r)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&(n.effect.dirty=!0,n.update())},Vi(s);"in-out"===r&&c.type!==Wa&&(e.delayLeave=(e,t,n)=>{Fi(o,d)[String(d.key)]=d,e[Ni]=()=>{t(),e[Ni]=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function Fi(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function qi(e,t,n,o){const{appear:i,mode:s,persisted:a=!1,onBeforeEnter:r,onEnter:c,onAfterEnter:u,onEnterCancelled:l,onBeforeLeave:d,onLeave:p,onAfterLeave:f,onLeaveCancelled:g,onBeforeAppear:_,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,I=String(e.key),M=Fi(n,e),C=(e,t)=>{e&&Mo(e,o,9,t)},T=(e,t)=>{const n=t[1];C(e,t),h(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},S={mode:s,persisted:a,beforeEnter(t){let o=r;if(!n.isMounted){if(!i)return;o=_||r}t[Ni]&&t[Ni](!0);const s=M[I];s&&sr(e,s)&&s.el[Ni]&&s.el[Ni](),C(o,[t])},enter(e){let t=c,o=u,s=l;if(!n.isMounted){if(!i)return;t=m||c,o=v||u,s=y||l}let a=!1;const r=e[Pi]=t=>{a||(a=!0,C(t?s:o,[e]),S.delayedLeave&&S.delayedLeave(),e[Pi]=void 0)};t?T(t,[e,r]):r()},leave(t,o){const i=String(e.key);if(t[Pi]&&t[Pi](!0),n.isUnmounting)return o();C(d,[t]);let s=!1;const a=t[Ni]=n=>{s||(s=!0,o(),C(n?g:f,[t]),t[Ni]=void 0,M[i]===e&&delete M[i])};M[i]=e,p?T(p,[t,a]):a()},clone:e=>qi(e,t,n,o)};return S}function Vi(e){if(zi(e))return(e=hr(e)).children=null,e}function Bi(e){return zi(e)?e.children?e.children[0]:void 0:e}function Hi(e,t){6&e.shapeFlag&&e.component?Hi(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 Ki(e,t=!1,n){let o=[],i=0;for(let s=0;s1)for(let s=0;su({name:e.name},t,{setup:e}))():e}const $i=e=>!!e.type.__asyncLoader /*! #__NO_SIDE_EFFECTS__ */;function Wi(e){m(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,timeout:s,suspensible:a=!0,onError:r}=e;let c,u=null,l=0;const d=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),r)return new Promise(((t,n)=>{r(e,(()=>t((l++,u=null,d()))),(()=>n(e)),l+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),c=t,t))))};return ji({name:"AsyncComponentWrapper",__asyncLoader:d,get __asyncResolved(){return c},setup(){const e=Er;if(c)return()=>Yi(c,e);const t=t=>{u=null,Co(t,e,13,!o)};if(a&&e.suspense||Pr)return d().then((t=>()=>Yi(t,e))).catch((e=>(t(e),()=>o?dr(o,{error:e}):null)));const r=Zn(!1),l=Zn(),p=Zn(!!i);return i&&setTimeout((()=>{p.value=!1}),i),null!=s&&setTimeout((()=>{if(!r.value&&!l.value){const e=new Error(`Async component timed out after ${s}ms.`);t(e),l.value=e}}),s),d().then((()=>{r.value=!0,e.parent&&zi(e.parent.vnode)&&(e.parent.effect.dirty=!0,No(e.parent.update))})).catch((e=>{t(e),l.value=e})),()=>r.value&&c?Yi(c,e):l.value&&o?dr(o,{error:l.value}):n&&!p.value?dr(n):void 0}})}function Yi(e,t){const{ref:n,props:o,children:i,ce:s}=t.vnode,a=dr(e,o,i);return a.ref=n,a.ce=s,delete t.vnode.ce,a}const zi=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:o}=this,i=t.get(e);if(i)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return i}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 Ji={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=Dr(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const i=e.cache||new Xi(e.max);i.pruneCacheEntry=a;let s=null;function a(t){var o;!s||!sr(t,s)||"key"===e.matchBy&&t.key!==s.key?(as(o=t),l(o,n,r,!0)):s&&as(s)}const r=n.suspense,{renderer:{p:c,m:u,um:l,o:{createElement:d}}}=o,p=d("div");function h(t){i.forEach(((n,o)=>{const s=cs(n,e.matchBy);!s||t&&t(s)||(i.delete(o),a(n))}))}o.activate=(e,t,n,o,i)=>{const s=e.component;if(s.ba){const e=s.isDeactivated;s.isDeactivated=!1,w(s.ba),s.isDeactivated=e}u(e,t,n,0,r),c(s.vnode,e,t,n,s,r,o,e.slotScopeIds,i),ba((()=>{s.isDeactivated=!1,s.a&&w(s.a);const t=e.props&&e.props.onVnodeMounted;t&&Mr(t,s.parent,e)}),r)},o.deactivate=e=>{const t=e.component;t.bda&&us(t.bda),u(e,p,null,1,r),ba((()=>{t.bda&&t.bda.forEach((e=>e.__called=!1)),t.da&&w(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&Mr(n,t.parent,e),t.isDeactivated=!0}),r)},Di((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&h((t=>Qi(e,t))),t&&h((e=>!Qi(t,e)))}),{flush:"post",deep:!0});let f=null;const g=()=>{null!=f&&i.set(f,rs(n.subTree))};return hs(g),gs(g),_s((()=>{i.forEach(((t,o)=>{i.delete(o),a(t);const{subTree:s,suspense:r}=n,c=rs(s);if(t.type!==c.type||"key"===e.matchBy&&t.key!==c.key);else{c.component.bda&&w(c.component.bda),as(c);const e=c.component.da;e&&ba(e,r)}}))})),()=>{if(f=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return s=null,n;if(!ir(o)||!(4&o.shapeFlag)&&!pi(o.type))return s=null,o;let a=rs(o);const r=a.type,c=cs(a,e.matchBy),{include:u,exclude:l}=e;if(u&&(!c||!Qi(u,c))||l&&c&&Qi(l,c))return s=a,o;const d=null==a.key?r:a.key,p=i.get(d);return a.el&&(a=hr(a),pi(o.type)&&(o.ssContent=a)),f=d,p&&(a.el=p.el,a.component=p.component,a.transition&&Hi(a,a.transition),a.shapeFlag|=512),a.shapeFlag|=256,s=a,pi(o.type)?o:a}}},Zi=Ji;function Qi(e,t){return h(e)?e.some((e=>Qi(e,t))):v(e)?e.split(",").includes(t):"[object RegExp]"===T(e)&&e.test(t)}function es(e,t){is(e,"ba",t)}function ts(e,t){is(e,"a",t)}function ns(e,t){is(e,"bda",t)}function os(e,t){is(e,"da",t)}function is(e,t,n=Er){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,ls(t,o,n),n){let e=n.parent;for(;e&&e.parent;)zi(e.parent.vnode)&&ss(o,t,n,e),e=e.parent}}function ss(e,t,n,o){const i=ls(t,e,o,!0);ms((()=>{l(o[t],i)}),n)}function as(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function rs(e){return pi(e.type)?e.ssContent:e}function cs(e,t){if("name"===t){const t=e.type;return Br($i(e)?t.__asyncResolved||{}:t)}return String(e.key)}function us(e){for(let t=0;t-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return[_e,le].indexOf(e)>-1}(e))){const o=n.proxy;Mo(t.bind(o),n,e,_e===e?[o.$page.options]:[])}}const s=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Gt();const i=br(n),s=Mo(t,n,e,o);return i(),Ut(),s});return o?s.unshift(a):s.push(a),a}var i}const ds=e=>(t,n=Er)=>(!Pr||"sp"===e)&&ls(e,((...e)=>t(...e)),n),ps=ds("bm"),hs=ds("m"),fs=ds("bu"),gs=ds("u"),_s=ds("bum"),ms=ds("um"),vs=ds("sp"),ys=ds("rtg"),Is=ds("rtc");function Ms(e,t=Er){ls("ec",e,t)}function Cs(e,t,n,o){let i;const s=n&&n[o];if(h(e)||v(e)){i=new Array(e.length);for(let n=0,o=e.length;nt(e,n,void 0,s&&s[n])));else{const n=Object.keys(e);i=new Array(n.length);for(let o=0,a=n.length;o{const t=o.fn(...e);return t&&(t.key=o.key),t}:o.fn)}return e}function Ss(e,t,n={},o,i){if(Wo.isCE||Wo.parent&&$i(Wo.parent)&&Wo.parent.isCE)return"default"!==t&&(n.name=t),dr("slot",n,o&&o());let s=e[t];s&&s._c&&(s._d=!1),Ja();const a=s&&Es(s(n)),r=or(ja,{key:n.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&1===e._?64:-2);return!i&&r.scopeId&&(r.slotScopeIds=[r.scopeId+"-s"]),s&&s._c&&(s._d=!0),r}function Es(e){return e.some((e=>!ir(e)||e.type!==Wa&&!(e.type===ja&&!Es(e.children))))?e:null}function Ds(e,t){const n={};for(const o in e)n[t&&/[A-Z]/.test(o)?`on:${o}`:N(o)]=e[o];return n}const ks=e=>{if(!e)return null;if(Rr(e)){return Vr(e)||e.proxy}return ks(e.parent)},Ls=u(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=>ks(e.parent),$root:e=>ks(e.root),$emit:e=>e.emit,$options:e=>Js(e),$forceUpdate:e=>e.f||(e.f=(e=>function(){e.effect.dirty=!0,No(e.update)})(e)),$nextTick:e=>e.n||(e.n=Oo.bind(e.proxy)),$watch:e=>Li.bind(e)}),bs=(e,t)=>e!==o&&!e.__isScriptSetup&&p(e,t),As={get({_:e},t){const{ctx:n,setupState:i,data:s,props:a,accessCache:r,type:c,appContext:u}=e;let l;if("$"!==t[0]){const c=r[t];if(void 0!==c)switch(c){case 1:return i[t];case 2:return s[t];case 4:return n[t];case 3:return a[t]}else{if(bs(i,t))return r[t]=1,i[t];if(s!==o&&p(s,t))return r[t]=2,s[t];if((l=e.propsOptions[0])&&p(l,t))return r[t]=3,a[t];if(n!==o&&p(n,t))return r[t]=4,n[t];Ws&&(r[t]=0)}}const d=Ls[t];let h,f;return d?("$attrs"===t&&Wt(e,0,t),d(e)):(h=c.__cssModules)&&(h=h[t])?h:n!==o&&p(n,t)?(r[t]=4,n[t]):(f=u.config.globalProperties,p(f,t)?f[t]:void 0)},set({_:e},t,n){const{data:i,setupState:s,ctx:a}=e;return bs(s,t)?(s[t]=n,!0):i!==o&&p(i,t)?(i[t]=n,!0):!p(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(a[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:i,appContext:s,propsOptions:a}},r){let c;return!!n[r]||e!==o&&p(e,r)||bs(t,r)||(c=a[0])&&p(c,r)||p(i,r)||p(Ls,r)||p(s.config.globalProperties,r)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:p(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},Rs=u({},As,{get(e,t){if(t!==Symbol.unscopables)return As.get(e,t,e)},has:(e,t)=>"_"!==t[0]&&!V(t)});function Os(){return null}function Ns(){return null}function Ps(e){}function ws(e){}function Gs(){return null}function Us(){}function xs(e,t){return null}function Fs(){return Vs().slots}function qs(){return Vs().attrs}function Vs(){const e=Dr();return e.setupContext||(e.setupContext=qr(e))}function Bs(e){return h(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function Hs(e,t){const n=Bs(e);for(const o in t){if(o.startsWith("__skip"))continue;let e=n[o];e?h(e)||m(e)?e=n[o]={type:e,default:t[o]}:e.default=t[o]:null===e&&(e=n[o]={default:t[o]}),e&&t[`__skip_${o}`]&&(e.skipFactory=!0)}return n}function Ks(e,t){return e&&t?h(e)&&h(t)?e.concat(t):u({},Bs(e),Bs(t)):e||t}function js(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function $s(e){const t=Dr();let n=e();return Ar(),M(n)&&(n=n.catch((e=>{throw br(t),e}))),[n,()=>br(t)]}let Ws=!0;function Ys(e){const t=Js(e),n=e.proxy,o=e.ctx;Ws=!1,t.beforeCreate&&zs(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:r,watch:c,provide:u,inject:l,created:d,beforeMount:p,mounted:f,beforeUpdate:g,updated:_,activated:v,deactivated:y,beforeDestroy:M,beforeUnmount:C,destroyed:T,unmounted:S,render:E,renderTracked:D,renderTriggered:k,errorCaptured:L,serverPrefetch:b,expose:A,inheritAttrs:R,components:O,directives:N,filters:P}=t;if(l&&function(e,t){h(e)&&(e=ta(e));for(const n in e){const o=e[n];let i;i=I(o)?"default"in o?la(o.from||n,o.default,!0):la(o.from||n):la(o),Jn(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[n]=i}}(l,o,null),r)for(const s in r){const e=r[s];m(e)&&(o[s]=e.bind(n))}if(i){const t=i.call(n,n);I(t)&&(e.data=wn(t))}if(Ws=!0,a)for(const h in a){const e=a[h],t=m(e)?e.bind(n,n):m(e.get)?e.get.bind(n,n):s,i=!m(e)&&m(e.set)?e.set.bind(n):s,r=Hr({get:t,set:i});Object.defineProperty(o,h,{enumerable:!0,configurable:!0,get:()=>r.value,set:e=>r.value=e})}if(c)for(const s in c)Xs(c[s],o,n,s);if(u){const e=m(u)?u.call(n):u;Reflect.ownKeys(e).forEach((t=>{ua(t,e[t])}))}function w(e,t){h(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(d&&zs(d,e,"c"),w(ps,p),w(hs,f),w(fs,g),w(gs,_),w(ts,v),w(os,y),w(Ms,L),w(Is,D),w(ys,k),w(_s,C),w(ms,S),w(vs,b),h(A))if(A.length){const t=e.exposed||(e.exposed={});A.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});E&&e.render===s&&(e.render=E),null!=R&&(e.inheritAttrs=R),O&&(e.components=O),N&&(e.directives=N);const G=e.appContext.config.globalProperties.$applyOptions;G&&G(t,e,n)}function zs(e,t,n){Mo(h(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function Xs(e,t,n,o){const i=o.includes(".")?bi(n,o):()=>n[o];if(v(e)){const n=t[e];m(n)&&Di(i,n)}else if(m(e))Di(i,e.bind(n));else if(I(e))if(h(e))e.forEach((e=>Xs(e,t,n,o)));else{const o=m(e.handler)?e.handler.bind(n):t[e.handler];m(o)&&Di(i,o,e)}}function Js(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:s,config:{optionMergeStrategies:a}}=e.appContext,r=s.get(t);let c;return r?c=r:i.length||n||o?(c={},i.length&&i.forEach((e=>Zs(c,e,a,!0))),Zs(c,t,a)):c=t,I(t)&&s.set(t,c),c}function Zs(e,t,n,o=!1){const{mixins:i,extends:s}=t;s&&Zs(e,s,n,!0),i&&i.forEach((t=>Zs(e,t,n,!0)));for(const a in t)if(o&&"expose"===a);else{const o=Qs[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const Qs={data:ea,props:ia,emits:ia,methods:oa,computed:oa,beforeCreate:na,created:na,beforeMount:na,mounted:na,beforeUpdate:na,updated:na,beforeDestroy:na,beforeUnmount:na,destroyed:na,unmounted:na,activated:na,deactivated:na,errorCaptured:na,serverPrefetch:na,components:oa,directives:oa,watch:function(e,t){if(!e)return t;if(!t)return e;const n=u(Object.create(null),e);for(const o in t)n[o]=na(e[o],t[o]);return n},provide:ea,inject:function(e,t){return oa(ta(e),ta(t))}};function ea(e,t){return t?e?function(){return u(m(e)?e.call(this,this):e,m(t)?t.call(this,this):t)}:t:e}function ta(e){if(h(e)){const t={};for(let n=0;n(s.has(e)||(e&&m(e.install)?(s.add(e),e.install(r,...t)):m(e)&&(s.add(e),e(r,...t))),r),mixin:e=>(i.mixins.includes(e)||i.mixins.push(e),r),component:(e,t)=>t?(i.components[e]=t,r):i.components[e],directive:(e,t)=>t?(i.directives[e]=t,r):i.directives[e],mount(s,c,u){if(!a){const l=dr(n,o);return l.appContext=i,!0===u?u="svg":!1===u&&(u=void 0),c&&t?t(l,s):e(l,s,u),a=!0,r._container=s,s.__vue_app__=r,r._instance=l.component,Vr(l.component)||l.component.proxy}},unmount(){a&&(e(null,r._container),delete r._container.__vue_app__)},provide:(e,t)=>(i.provides[e]=t,r),runWithContext(e){const t=ca;ca=r;try{return e()}finally{ca=t}}};return r}}let ca=null;function ua(e,t){if(Er){let n=Er.provides;const o=Er.parent&&Er.parent.provides;o===n&&(n=Er.provides=Object.create(o)),n[e]=t,"app"===Er.type.mpType&&Er.appContext.app.provide(e,t)}else;}function la(e,t,n=!1){const o=Er||Wo;if(o||ca){const i=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:ca._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&m(t)?t.call(o&&o.proxy):t}}function da(){return!!(Er||Wo||ca)}function pa(e,t,n,i){const[s,a]=e.propsOptions;let r,c=!1;if(t)for(let o in t){if(D(o))continue;const u=t[o];let l;s&&p(s,l=b(o))?a&&a.includes(l)?(r||(r={}))[l]=u:n[l]=u:$o(e.emitsOptions,o)||o in i&&u===i[o]||(i[o]=u,c=!0)}if(a){const t=Kn(n),i=r||o;for(let o=0;o{d=!0;const[n,o]=fa(e,t,!0);u(c,n),o&&l.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!r&&!d)return I(e)&&s.set(e,i),i;if(h(r))for(let i=0;i-1,n[1]=o<0||t-1||p(n,"default"))&&l.push(e)}}}const f=[c,l];return I(e)&&s.set(e,f),f}function ga(e){return"$"!==e[0]&&!D(e)}function _a(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 ma(e,t){return _a(e)===_a(t)}function va(e,t){return h(t)?t.findIndex((t=>ma(t,e))):m(t)&&ma(t,e)?0:-1}const ya=e=>"_"===e[0]||"$stable"===e,Ia=e=>h(e)?e.map(mr):[mr(e)],Ma=(e,t,n)=>{if(t._n)return t;const o=Qo(((...e)=>Ia(t(...e))),n);return o._c=!1,o},Ca=(e,t,n)=>{const o=e._ctx;for(const i in e){if(ya(i))continue;const n=e[i];if(m(n))t[i]=Ma(0,n,o);else if(null!=n){const e=Ia(n);t[i]=()=>e}}},Ta=(e,t)=>{const n=Ia(t);e.slots.default=()=>n};function Sa(e,t,n,i,s=!1){if(h(e))return void e.forEach(((e,o)=>Sa(e,t&&(h(t)?t[o]:t),n,i,s)));if($i(i)&&!s)return;const a=4&i.shapeFlag?Vr(i.component)||i.component.proxy:i.el,r=s?null:a,{i:c,r:u}=e,d=t&&t.r,f=c.refs===o?c.refs={}:c.refs,g=c.setupState;if(null!=d&&d!==u&&(v(d)?(f[d]=null,p(g,d)&&(g[d]=null)):Jn(d)&&(d.value=null)),m(u))Io(u,c,12,[r,f]);else{const t=v(u),o=Jn(u);if(t||o){const i=()=>{if(e.f){const n=t?p(g,u)?g[u]:f[u]:u.value;s?h(n)&&l(n,a):h(n)?n.includes(a)||n.push(a):t?(f[u]=[a],p(g,u)&&(g[u]=f[u])):(u.value=[a],e.k&&(f[e.k]=u.value))}else t?(f[u]=r,p(g,u)&&(g[u]=r)):o&&(u.value=r,e.k&&(f[e.k]=r))};r?(i.id=-1,ba(i,n)):i()}}}let Ea=!1;const Da=e=>(e=>e.namespaceURI.includes("svg")&&"foreignObject"!==e.tagName)(e)?"svg":(e=>e.namespaceURI.includes("MathML"))(e)?"mathml":void 0,ka=e=>8===e.nodeType;function La(e){const{mt:t,p:n,o:{patchProp:o,createText:i,nextSibling:s,parentNode:a,remove:c,insert:u,createComment:l}}=e,d=(n,o,r,c,l,y=!1)=>{const I=ka(n)&&"["===n.data,M=()=>g(n,o,r,c,l,I),{type:C,ref:T,shapeFlag:S,patchFlag:E}=o;let D=n.nodeType;o.el=n,-2===E&&(y=!1,o.dynamicChildren=null);let k=null;switch(C){case $a:3!==D?""===o.children?(u(o.el=i(""),a(n),n),k=n):k=M():(n.data!==o.children&&(Ea=!0,n.data=o.children),k=s(n));break;case Wa:v(n)?(k=s(n),m(o.el=n.content.firstChild,n,r)):k=8!==D||I?M():s(n);break;case Ya:if(I&&(D=(n=s(n)).nodeType),1===D||3===D){k=n;const e=!o.children.length;for(let t=0;t{a=a||!!t.dynamicChildren;const{type:u,props:l,patchFlag:d,shapeFlag:p,dirs:f,transition:g}=t,_="input"===u||"option"===u;if(_||-1!==d){f&&Oi(t,null,n,"created");let u,y=!1;if(v(e)){y=wa(i,g)&&n&&n.vnode.props&&n.vnode.props.appear;const o=e.content.firstChild;y&&g.beforeEnter(o),m(o,e,n),t.el=e=o}if(16&p&&(!l||!l.innerHTML&&!l.textContent)){let o=h(e.firstChild,t,e,n,i,s,a);for(;o;){Ea=!0;const e=o;o=o.nextSibling,c(e)}}else 8&p&&e.textContent!==t.children&&(Ea=!0,e.textContent=t.children);if(l)if(_||!a||48&d)for(const t in l)(_&&(t.endsWith("value")||"indeterminate"===t)||r(t)&&!D(t)||"."===t[0])&&o(e,t,null,l[t],void 0,void 0,n);else l.onClick&&o(e,"onClick",null,l.onClick,void 0,void 0,n);(u=l&&l.onVnodeBeforeMount)&&Mr(u,n,t),f&&Oi(t,null,n,"beforeMount"),((u=l&&l.onVnodeMounted)||f||y)&&vi((()=>{u&&Mr(u,n,t),y&&g.enter(e),f&&Oi(t,null,n,"mounted")}),i)}return e.nextSibling},h=(e,t,o,i,s,a,r)=>{r=r||!!t.dynamicChildren;const c=t.children,u=c.length;for(let l=0;l{const{slotScopeIds:c}=t;c&&(i=i?i.concat(c):c);const d=a(e),p=h(s(e),t,d,n,o,i,r);return p&&ka(p)&&"]"===p.data?s(t.anchor=p):(Ea=!0,u(t.anchor=l("]"),d,p),p)},g=(e,t,o,i,r,u)=>{if(Ea=!0,t.el=null,u){const t=_(e);for(;;){const n=s(e);if(!n||n===t)break;c(n)}}const l=s(e),d=a(e);return c(e),n(null,t,d,l,o,i,Da(d),r),l},_=(e,t="[",n="]")=>{let o=0;for(;e;)if((e=s(e))&&ka(e)&&(e.data===t&&o++,e.data===n)){if(0===o)return s(e);o--}return e},m=(e,t,n)=>{const o=t.parentNode;o&&o.replaceChild(e,t);let i=n;for(;i;)i.vnode.el===t&&(i.vnode.el=i.subTree.el=e),i=i.parent},v=e=>1===e.nodeType&&"template"===e.tagName.toLowerCase();return[(e,t)=>{if(!t.hasChildNodes())return n(null,e,t),Uo(),void(t._vnode=e);Ea=!1,d(t.firstChild,e,null,null,null),Uo(),t._vnode=e,Ea&&console.error("Hydration completed but contains mismatches.")},d]}const ba=vi;function Aa(e){return Oa(e)}function Ra(e){return Oa(e,La)}function Oa(e,t){q().__VUE__=!0;const{insert:n,remove:a,patchProp:r,forcePatchProp:c,createElement:l,createText:d,createComment:h,setText:f,setElementText:g,parentNode:_,nextSibling:m,setScopeId:v=s,insertStaticContent:y}=e,I=(e,t,n,o=null,i=null,s=null,a=void 0,r=null,c=!!t.dynamicChildren)=>{if(e===t)return;e&&!sr(e,t)&&(o=J(e),$(e,i,s,!0),e=null),-2===t.patchFlag&&(c=!1,t.dynamicChildren=null);const{type:u,ref:l,shapeFlag:d}=t;switch(u){case $a:M(e,t,n,o);break;case Wa:C(e,t,n,o);break;case Ya:null==e&&T(t,n,o,a);break;case ja:P(e,t,n,o,i,s,a,r,c);break;default:1&d?S(e,t,n,o,i,s,a,r,c):6&d?G(e,t,n,o,i,s,a,r,c):(64&d||128&d)&&u.process(e,t,n,o,i,s,a,r,c,ee)}null!=l&&i&&Sa(l,e&&e.ref,s,t||e,!t)},M=(e,t,o,i)=>{if(null==e)n(t.el=d(t.children),o,i);else{const n=t.el=e.el;t.children!==e.children&&f(n,t.children)}},C=(e,t,o,i)=>{null==e?n(t.el=h(t.children||""),o,i):t.el=e.el},T=(e,t,n,o)=>{[e.el,e.anchor]=y(e.children,t,n,o,e.el,e.anchor)},S=(e,t,n,o,i,s,a,r,c)=>{"svg"===t.type?a="svg":"math"===t.type&&(a="mathml"),null==e?E(t,n,o,i,s,a,r,c):A(e,t,i,s,a,r,c)},E=(e,t,o,i,s,a,c,u)=>{let d,p;const{props:h,shapeFlag:f,transition:_,dirs:m}=e;if(d=e.el=l(e.type,a,h&&h.is,h),8&f?g(d,e.children):16&f&&L(e.children,d,null,i,s,Na(e,a),c,u),m&&Oi(e,null,i,"created"),k(d,e,e.scopeId,c,i),h){for(const t in h)"value"===t||D(t)||r(d,t,null,h[t],a,e.children,i,s,X);"value"in h&&r(d,"value",null,h.value,a),(p=h.onVnodeBeforeMount)&&Mr(p,i,e)}Object.defineProperty(d,"__vueParentComponent",{value:i,enumerable:!1}),m&&Oi(e,null,i,"beforeMount");const v=wa(s,_);v&&_.beforeEnter(d),n(d,t,o),((p=h&&h.onVnodeMounted)||v||m)&&ba((()=>{p&&Mr(p,i,e),v&&_.enter(d),m&&Oi(e,null,i,"mounted")}),s)},k=(e,t,n,o,i)=>{if(n&&v(e,n),o)for(let s=0;s{for(let u=c;u{const l=t.el=e.el;let{patchFlag:d,dynamicChildren:p,dirs:h}=t;d|=16&e.patchFlag;const f=e.props||o,_=t.props||o;let m;if(n&&Pa(n,!1),(m=_.onVnodeBeforeUpdate)&&Mr(m,n,t,e),h&&Oi(t,e,n,"beforeUpdate"),n&&Pa(n,!0),p?O(e.dynamicChildren,p,l,n,i,Na(t,s),a):u||B(e,t,l,null,n,i,Na(t,s),a,!1),d>0){if(16&d)N(l,t,f,_,n,i,s);else if(2&d&&f.class!==_.class&&r(l,"class",null,_.class,s),4&d&&r(l,"style",f.style,_.style,s),8&d){const o=t.dynamicProps;for(let t=0;t{m&&Mr(m,n,t,e),h&&Oi(t,e,n,"updated")}),i)},O=(e,t,n,o,i,s,a)=>{for(let r=0;r{if(n!==i){if(n!==o)for(const o in n)D(o)||o in i||r(e,o,n[o],null,u,t.children,s,a,X);for(const o in i){if(D(o))continue;const l=i[o],d=n[o];(l!==d&&"value"!==o||c&&c(e,o))&&r(e,o,d,l,u,t.children,s,a,X)}"value"in i&&r(e,"value",n.value,i.value,u)}},P=(e,t,o,i,s,a,r,c,u)=>{const l=t.el=e?e.el:d(""),p=t.anchor=e?e.anchor:d("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(l,o,i),n(p,o,i),L(t.children||[],o,p,s,a,r,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(O(e.dynamicChildren,f,o,s,a,r,c),(null!=t.key||s&&t===s.subTree)&&Ga(e,t,!0)):B(e,t,o,p,s,a,r,c,u)},G=(e,t,n,o,i,s,a,r,c)=>{t.slotScopeIds=r,null==e?512&t.shapeFlag?i.ctx.activate(t,n,o,a,c):U(t,n,o,i,s,a,c):x(e,t,c)},U=(e,t,n,o,i,s,a)=>{const r=e.component=Sr(e,o,i);if(zi(e)&&(r.ctx.renderer=ee),wr(r),r.asyncDep){if(i&&i.registerDep(r,F),!e.el){const e=r.subTree=dr(Wa);C(null,e,t,n)}}else F(r,e,t,n,i,s,a)},x=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:i,component:s}=e,{props:a,children:r,patchFlag:c}=t,u=s.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&c>=0))return!(!i&&!r||r&&r.$stable)||o!==a&&(o?!a||oi(o,a,u):!!a);if(1024&c)return!0;if(16&c)return o?oi(o,a,u):!!a;if(8&c){const e=t.dynamicProps;for(let t=0;tDo&&Eo.splice(t,1)}(o.update),o.effect.dirty=!0,o.update()}else t.el=e.el,o.vnode=t},F=(e,t,n,o,i,a,r)=>{const c=()=>{if(e.isMounted){let{next:t,bu:n,u:o,parent:s,vnode:u}=e;{const n=Ua(e);if(n)return t&&(t.el=u.el,V(e,t,r)),void n.asyncDep.then((()=>{e.isUnmounted||c()}))}let l,d=t;Pa(e,!1),t?(t.el=u.el,V(e,t,r)):t=u,n&&w(n),(l=t.props&&t.props.onVnodeBeforeUpdate)&&Mr(l,s,t,u),Pa(e,!0);const p=ei(e),h=e.subTree;e.subTree=p,I(h,p,_(h.el),J(h),e,i,a),t.el=p.el,null===d&&ii(e,p.el),o&&ba(o,i),(l=t.props&&t.props.onVnodeUpdated)&&ba((()=>Mr(l,s,t,u)),i)}else{let s;const{el:r,props:c}=t,{bm:u,m:l,parent:d}=e,p=$i(t);if(Pa(e,!1),u&&w(u),!p&&(s=c&&c.onVnodeBeforeMount)&&Mr(s,d,t),Pa(e,!0),r&&ne){const n=()=>{e.subTree=ei(e),ne(r,e.subTree,e,i,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const s=e.subTree=ei(e);I(null,s,n,o,e,i,a),t.el=s.el}if(l&&ba(l,i),!p&&(s=c&&c.onVnodeMounted)){const e=t;ba((()=>Mr(s,d,e)),i)}(256&t.shapeFlag||d&&$i(d.vnode)&&256&d.vnode.shapeFlag)&&(e.ba&&us(e.ba),e.a&&ba(e.a,i)),e.isMounted=!0,t=n=o=null}},u=e.effect=new kt(c,s,(()=>No(l)),e.scope),l=e.update=()=>{u.dirty&&u.run()};l.id=e.uid,Pa(e,!0),l()},V=(e,t,n)=>{t.component=e;const i=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:i,attrs:s,vnode:{patchFlag:a}}=e,r=Kn(i),[c]=e.propsOptions;let u=!1;if(!(o||a>0)||16&a){let o;pa(e,t,i,s)&&(u=!0);for(const s in r)t&&(p(t,s)||(o=R(s))!==s&&p(t,o))||(c?!n||void 0===n[s]&&void 0===n[o]||(i[s]=ha(c,r,s,void 0,e,!0)):delete i[s]);if(s!==r)for(const e in s)t&&p(t,e)||(delete s[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:i,slots:s}=e;let a=!0,r=o;if(32&i.shapeFlag){const e=t._;e?n&&1===e?a=!1:(u(s,t),n||1!==e||delete s._):(a=!t.$stable,Ca(t,s)),r=t}else t&&(Ta(e,t),r={default:1});if(a)for(const o in s)ya(o)||null!=r[o]||delete s[o]})(e,t.children,n),Gt(),Go(e),Ut()},B=(e,t,n,o,i,s,a,r,c=!1)=>{const u=e&&e.children,l=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void K(u,d,n,o,i,s,a,r,c);if(256&p)return void H(u,d,n,o,i,s,a,r,c)}8&h?(16&l&&X(u,i,s),d!==u&&g(n,d)):16&l?16&h?K(u,d,n,o,i,s,a,r,c):X(u,i,s,!0):(8&l&&g(n,""),16&h&&L(d,n,o,i,s,a,r,c))},H=(e,t,n,o,s,a,r,c,u)=>{t=t||i;const l=(e=e||i).length,d=t.length,p=Math.min(l,d);let h;for(h=0;hd?X(e,s,a,!0,!1,p):L(t,n,o,s,a,r,c,u,p)},K=(e,t,n,o,s,a,r,c,u)=>{let l=0;const d=t.length;let p=e.length-1,h=d-1;for(;l<=p&&l<=h;){const o=e[l],i=t[l]=u?vr(t[l]):mr(t[l]);if(!sr(o,i))break;I(o,i,n,null,s,a,r,c,u),l++}for(;l<=p&&l<=h;){const o=e[p],i=t[h]=u?vr(t[h]):mr(t[h]);if(!sr(o,i))break;I(o,i,n,null,s,a,r,c,u),p--,h--}if(l>p){if(l<=h){const e=h+1,i=eh)for(;l<=p;)$(e[l],s,a,!0),l++;else{const f=l,g=l,_=new Map;for(l=g;l<=h;l++){const e=t[l]=u?vr(t[l]):mr(t[l]);null!=e.key&&_.set(e.key,l)}let m,v=0;const y=h-g+1;let M=!1,C=0;const T=new Array(y);for(l=0;l=y){$(o,s,a,!0);continue}let i;if(null!=o.key)i=_.get(o.key);else for(m=g;m<=h;m++)if(0===T[m-g]&&sr(o,t[m])){i=m;break}void 0===i?$(o,s,a,!0):(T[i-g]=l+1,i>=C?C=i:M=!0,I(o,t[i],n,null,s,a,r,c,u),v++)}const S=M?function(e){const t=e.slice(),n=[0];let o,i,s,a,r;const c=e.length;for(o=0;o>1,e[n[r]]0&&(t[o]=n[s-1]),n[s]=o)}}s=n.length,a=n[s-1];for(;s-- >0;)n[s]=a,a=t[a];return n}(T):i;for(m=S.length-1,l=y-1;l>=0;l--){const e=g+l,i=t[e],p=e+1{const{el:a,type:r,transition:c,children:u,shapeFlag:l}=e;if(6&l)return void j(e.component.subTree,t,o,i);if(128&l)return void e.suspense.move(t,o,i);if(64&l)return void r.move(e,t,o,ee);if(r===ja){n(a,t,o);for(let e=0;e{let s;for(;e&&e!==t;)s=m(e),n(e,o,i),e=s;n(t,o,i)})(e,t,o);if(2!==i&&1&l&&c)if(0===i)c.beforeEnter(a),n(a,t,o),ba((()=>c.enter(a)),s);else{const{leave:e,delayLeave:i,afterLeave:s}=c,r=()=>n(a,t,o),u=()=>{e(a,(()=>{r(),s&&s()}))};i?i(a,r,u):u()}else n(a,t,o)},$=(e,t,n,o=!1,i=!1)=>{const{type:s,props:a,ref:r,children:c,dynamicChildren:u,shapeFlag:l,patchFlag:d,dirs:p}=e;if(null!=r&&Sa(r,null,n,e,!0),256&l)return void t.ctx.deactivate(e);const h=1&l&&p,f=!$i(e);let g;if(f&&(g=a&&a.onVnodeBeforeUnmount)&&Mr(g,t,e),6&l)z(e.component,n,o);else{if(128&l)return void e.suspense.unmount(n,o);h&&Oi(e,null,t,"beforeUnmount"),64&l?e.type.remove(e,t,n,i,ee,o):u&&(s!==ja||d>0&&64&d)?X(u,t,n,!1,!0):(s===ja&&384&d||!i&&16&l)&&X(c,t,n),o&&W(e)}(f&&(g=a&&a.onVnodeUnmounted)||h)&&ba((()=>{g&&Mr(g,t,e),h&&Oi(e,null,t,"unmounted")}),n)},W=e=>{const{type:t,el:n,anchor:o,transition:i}=e;if(t===ja)return void Y(n,o);if(t===Ya)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=m(e),a(e),e=n;a(t)})(e);const s=()=>{a(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,a=()=>t(n,s);o?o(e.el,s,a):a()}else s()},Y=(e,t)=>{let n;for(;e!==t;)n=m(e),a(e),e=n;a(t)},z=(e,t,n)=>{const{bum:o,scope:i,update:s,subTree:a,um:r}=e;o&&w(o),i.stop(),s&&(s.active=!1,$(a,e,t,n)),r&&ba(r,t),ba((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},X=(e,t,n,o=!1,i=!1,s=0)=>{for(let a=s;a6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():m(e.anchor||e.el);let Z=!1;const Q=(e,t,n)=>{null==e?t._vnode&&$(t._vnode,null,null,!0):I(t._vnode||null,e,t,null,null,null,n),Z||(Z=!0,Go(),Uo(),Z=!1),t._vnode=e},ee={p:I,um:$,m:j,r:W,mt:U,mc:L,pc:B,pbc:O,n:J,o:e};let te,ne;return t&&([te,ne]=t(ee)),{render:Q,hydrate:te,createApp:ra(Q,te)}}function Na({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 Pa({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function wa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ga(e,t,n=!1){const o=e.children,i=t.children;if(h(o)&&h(i))for(let s=0;se&&(e.disabled||""===e.disabled),Fa=e=>"undefined"!=typeof SVGElement&&e instanceof SVGElement,qa=e=>"function"==typeof MathMLElement&&e instanceof MathMLElement,Va=(e,t)=>{const n=e&&e.to;if(v(n)){if(t){return t(n)}return null}return n};function Ba(e,t,n,{o:{insert:o},m:i},s=2){0===s&&o(e.targetAnchor,t,n);const{el:a,anchor:r,shapeFlag:c,children:u,props:l}=e,d=2===s;if(d&&o(a,t,n),(!d||xa(l))&&16&c)for(let p=0;p{16&v&&l(y,e,t,i,s,a,r,c)};m?_(n,u):d&&_(d,p)}else{t.el=e.el;const o=t.anchor=e.anchor,l=t.target=e.target,h=t.targetAnchor=e.targetAnchor,g=xa(e.props),_=g?n:l,v=g?o:h;if("svg"===a||Fa(l)?a="svg":("mathml"===a||qa(l))&&(a="mathml"),I?(p(e.dynamicChildren,I,_,i,s,a,r),Ga(e,t,!0)):c||d(e,t,_,v,i,s,a,r,!1),m)g?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Ba(t,n,o,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const e=t.target=Va(t.props,f);e&&Ba(t,e,null,u,0)}else g&&Ba(t,l,h,u,1)}Ka(t)},remove(e,t,n,o,{um:i,o:{remove:s}},a){const{shapeFlag:r,children:c,anchor:u,targetAnchor:l,target:d,props:p}=e;if(d&&s(l),a&&s(u),16&r){const e=a||!xa(p);for(let o=0;o0?Xa||i:null,Za(),Qa>0&&Xa&&Xa.push(e),e}function nr(e,t,n,o,i,s){return tr(lr(e,t,n,o,i,s,!0))}function or(e,t,n,o,i){return tr(dr(e,t,n,o,i,!0))}function ir(e){return!!e&&!0===e.__v_isVNode}function sr(e,t){return e.type===t.type&&e.key===t.key}function ar(e){}const rr="__vInternal",cr=({key:e})=>null!=e?e:null,ur=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?v(e)||Jn(e)||m(e)?{i:Wo,r:e,k:t,f:!!n}:e:null);function lr(e,t=null,n=null,o=0,i=null,s=(e===ja?0:1),a=!1,r=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cr(t),ref:t&&ur(t),scopeId:Yo,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:o,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Wo};return r?(yr(c,n),128&s&&e.normalize(c)):n&&(c.shapeFlag|=v(n)?8:16),Qa>0&&!a&&Xa&&(c.patchFlag>0||6&s)&&32!==c.patchFlag&&Xa.push(c),c}const dr=function(e,t=null,n=null,o=0,i=null,s=!1){e&&e!==ri||(e=Wa);if(ir(e)){const o=hr(e,t,!0);return n&&yr(o,n),Qa>0&&!s&&Xa&&(6&o.shapeFlag?Xa[Xa.indexOf(e)]=o:Xa.push(o)),o.patchFlag|=-2,o}a=e,m(a)&&"__vccOpts"in a&&(e=e.__vccOpts);var a;if(t){t=pr(t);let{class:e,style:n}=t;e&&!v(e)&&(t.class=Be(e)),I(n)&&(Hn(n)&&!h(n)&&(n=u({},n)),t.style=Ve(n))}const r=v(e)?1:pi(e)?128:(e=>e.__isTeleport)(e)?64:I(e)?4:m(e)?2:0;return lr(e,t,n,o,i,r,s,!0)};function pr(e){return e?Hn(e)||rr in e?u({},e):e:null}function hr(e,t,n=!1){const{props:o,ref:i,patchFlag:s,children:a}=e,r=t?Ir(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:r,key:r&&cr(r),ref:t&&t.ref?n&&i?h(i)?i.concat(ur(t)):[i,ur(t)]:ur(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ja?-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&&hr(e.ssContent),ssFallback:e.ssFallback&&hr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function fr(e=" ",t=0){return dr($a,null,e,t)}function gr(e,t){const n=dr(Ya,null,e);return n.staticCount=t,n}function _r(e="",t=!1){return t?(Ja(),or(Wa,null,e)):dr(Wa,null,e)}function mr(e){return null==e||"boolean"==typeof e?dr(Wa):h(e)?dr(ja,null,e.slice()):"object"==typeof e?vr(e):dr($a,null,String(e))}function vr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:hr(e)}function yr(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(h(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),yr(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||rr in t?3===o&&Wo&&(1===Wo.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Wo}}else m(t)?(t={default:t,_ctx:Wo},n=32):(t=String(t),64&o?(n=16,t=[fr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Ir(...e){const t={};for(let n=0;nEr||Wo;let kr,Lr;{const e=q(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};kr=t("__VUE_INSTANCE_SETTERS__",(e=>Er=e)),Lr=t("__VUE_SSR_SETTERS__",(e=>Pr=e))}const br=e=>{const t=Er;return kr(e),e.scope.on(),()=>{e.scope.off(),kr(t)}},Ar=()=>{Er&&Er.scope.off(),kr(null)};function Rr(e){return 4&e.vnode.shapeFlag}let Or,Nr,Pr=!1;function wr(e,t=!1){t&&Lr(t);const{props:n,children:o}=e.vnode,i=Rr(e);!function(e,t,n,o=!1){const i={},s={};G(s,rr,1),e.propsDefaults=Object.create(null),pa(e,t,i,s);for(const a in e.propsOptions[0])a in i||(i[a]=void 0);n?e.props=o?i:Gn(i):e.type.props?e.props=i:e.props=s,e.attrs=s}(e,n,i,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Kn(t),G(t,"_",n)):Ca(t,e.slots={})}else e.slots={},t&&Ta(e,t);G(e.slots,rr,1)})(e,o);const s=i?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=jn(new Proxy(e.ctx,As));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?qr(e):null,i=br(e);Gt();const s=Io(o,e,0,[e.props,n]);if(Ut(),i(),M(s)){if(s.then(Ar,Ar),t)return s.then((n=>{Gr(e,n,t)})).catch((t=>{Co(t,e,0)}));e.asyncDep=s}else Gr(e,s,t)}else Fr(e,t)}(e,t):void 0;return t&&Lr(!1),s}function Gr(e,t,n){m(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:I(t)&&(e.setupState=ao(t)),Fr(e,n)}function Ur(e){Or=e,Nr=e=>{e.render._rc&&(e.withProxy=new Proxy(e.ctx,Rs))}}const xr=()=>!Or;function Fr(e,t,n){const o=e.type;if(!e.render){if(!t&&Or&&!o.render){const t=o.template||Js(e).template;if(t){const{isCustomElement:n,compilerOptions:i}=e.appContext.config,{delimiters:s,compilerOptions:a}=o,r=u(u({isCustomElement:n,delimiters:s},i),a);o.render=Or(t,r)}}e.render=o.render||s,Nr&&Nr(e)}{const t=br(e);Gt();try{Ys(e)}finally{Ut(),t()}}}function qr(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)=>(Wt(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t}}function Vr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ao(jn(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Ls?Ls[n](e):void 0,has:(e,t)=>t in e||t in Ls}))}function Br(e,t=!0){return m(e)?e.displayName||e.name:e.name||t&&e.__name}const Hr=(e,t)=>{const n=function(e,t,n=!1){let o,i;const a=m(e);return a?(o=e,i=s):(o=e.get,i=e.set),new Yn(o,i,a||!i,n)}(e,0,Pr);return n};function Kr(e,t,n=o){const i=Dr(),s=b(t),a=R(t),r=co(((o,r)=>{let c;return Si((()=>{const n=e[t];P(c,n)&&(c=n,r())})),{get:()=>(o(),n.get?n.get(c):c),set(e){const o=i.vnode.props;o&&(t in o||s in o||a in o)&&(`onUpdate:${t}`in o||`onUpdate:${s}`in o||`onUpdate:${a}`in o)||!P(e,c)||(c=e,r()),i.emit(`update:${t}`,n.set?n.set(e):e)}}})),c="modelValue"===t?"modelModifiers":`${t}Modifiers`;return r[Symbol.iterator]=()=>{let t=0;return{next:()=>t<2?{value:t++?e[c]||{}:r,done:!1}:{done:!0}}},r}function jr(e,t,n){const o=arguments.length;return 2===o?I(t)&&!h(t)?ir(t)?dr(e,null,[t]):dr(e,t):dr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&ir(n)&&(n=[n]),dr(e,t,n))}function $r(){}function Wr(e,t,n,o){const i=n[o];if(i&&Yr(i,e))return i;const s=t();return s.memo=e.slice(),n[o]=s}function Yr(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o0&&Xa&&Xa.push(e),!0}const zr="3.4.21",Xr=s,Jr=yo,Zr=Vo,Qr=function e(t,n){var o,i;if(Vo=t,Vo)Vo.enabled=!0,Bo.forEach((({event:e,args:t})=>Vo.emit(e,...t))),Bo=[];else if("undefined"!=typeof window&&window.HTMLElement&&!(null==(i=null==(o=window.navigator)?void 0:o.userAgent)?void 0:i.includes("jsdom"))){(n.__VUE_DEVTOOLS_HOOK_REPLAY__=n.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((t=>{e(t,n)})),setTimeout((()=>{Vo||(n.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Bo=[])}),3e3)}else Bo=[]},ec={createComponentInstance:Sr,setupComponent:wr,renderComponentRoot:ei,setCurrentRenderingInstance:zo,isVNode:ir,normalizeVNode:mr},tc=null,nc=null,oc=null,ic="undefined"!=typeof document?document:null,sc=ic&&ic.createElement("template"),ac={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i="svg"===t?ic.createElementNS("http://www.w3.org/2000/svg",e):"mathml"===t?ic.createElementNS("http://www.w3.org/1998/Math/MathML",e):n?ic.createElement(e,{is:n}):ic.createElement(e);return"select"===e&&o&&null!=o.multiple&&i.setAttribute("multiple",o.multiple),i},createText:e=>ic.createTextNode(e),createComment:e=>ic.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ic.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,i,s){const a=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==s&&(i=i.nextSibling););else{sc.innerHTML="svg"===o?`${e}`:"mathml"===o?`${e}`:e;const i=sc.content;if("svg"===o||"mathml"===o){const e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},rc="transition",cc="animation",uc=Symbol("_vtc"),lc=(e,{slots:t})=>jr(xi,gc(e),t);lc.displayName="Transition";const dc={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},pc=lc.props=u({},Ui,dc),hc=(e,t=[])=>{h(e)?e.forEach((e=>e(...t))):e&&e(...t)},fc=e=>!!e&&(h(e)?e.some((e=>e.length>1)):e.length>1);function gc(e){const t={};for(const u in e)u in dc||(t[u]=e[u]);if(!1===e.css)return t;const{name:n="v",type:o,duration:i,enterFromClass:s=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:r=`${n}-enter-to`,appearFromClass:c=s,appearActiveClass:l=a,appearToClass:d=r,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:f=`${n}-leave-to`}=e,g=function(e){if(null==e)return null;if(I(e))return[_c(e.enter),_c(e.leave)];{const t=_c(e);return[t,t]}}(i),_=g&&g[0],m=g&&g[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:M,onLeave:C,onLeaveCancelled:T,onBeforeAppear:S=v,onAppear:E=y,onAppearCancelled:D=M}=t,k=(e,t,n)=>{vc(e,t?d:r),vc(e,t?l:a),n&&n()},L=(e,t)=>{e._isLeaving=!1,vc(e,p),vc(e,f),vc(e,h),t&&t()},b=e=>(t,n)=>{const i=e?E:y,a=()=>k(t,e,n);hc(i,[t,a]),yc((()=>{vc(t,e?c:s),mc(t,e?d:r),fc(i)||Mc(t,o,_,a)}))};return u(t,{onBeforeEnter(e){hc(v,[e]),mc(e,s),mc(e,a)},onBeforeAppear(e){hc(S,[e]),mc(e,c),mc(e,l)},onEnter:b(!1),onAppear:b(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>L(e,t);mc(e,p),Ec(),mc(e,h),yc((()=>{e._isLeaving&&(vc(e,p),mc(e,f),fc(C)||Mc(e,o,m,n))})),hc(C,[e,n])},onEnterCancelled(e){k(e,!1),hc(M,[e])},onAppearCancelled(e){k(e,!0),hc(D,[e])},onLeaveCancelled(e){L(e),hc(T,[e])}})}function _c(e){return x(e)}function mc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e[uc]||(e[uc]=new Set)).add(t)}function vc(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const n=e[uc];n&&(n.delete(t),n.size||(e[uc]=void 0))}function yc(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Ic=0;function Mc(e,t,n,o){const i=e._endId=++Ic,s=()=>{i===e._endId&&o()};if(n)return setTimeout(s,n);const{type:a,timeout:r,propCount:c}=Cc(e,t);if(!a)return o();const u=a+"end";let l=0;const d=()=>{e.removeEventListener(u,p),s()},p=t=>{t.target===e&&++l>=c&&d()};setTimeout((()=>{l(n[e]||"").split(", "),i=o(`${rc}Delay`),s=o(`${rc}Duration`),a=Tc(i,s),r=o(`${cc}Delay`),c=o(`${cc}Duration`),u=Tc(r,c);let l=null,d=0,p=0;t===rc?a>0&&(l=rc,d=a,p=s.length):t===cc?u>0&&(l=cc,d=u,p=c.length):(d=Math.max(a,u),l=d>0?a>u?rc:cc:null,p=l?l===rc?s.length:c.length:0);return{type:l,timeout:d,propCount:p,hasTransform:l===rc&&/\b(transform|all)(,|$)/.test(o(`${rc}Property`).toString())}}function Tc(e,t){for(;e.lengthSc(t)+Sc(e[n]))))}function Sc(e){return"auto"===e?0:1e3*Number(e.slice(0,-1).replace(",","."))}function Ec(){return document.body.offsetHeight}const Dc=Symbol("_vod"),kc=Symbol("_vsh"),Lc={beforeMount(e,{value:t},{transition:n}){e[Dc]="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):bc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),bc(e,!0),o.enter(e)):o.leave(e,(()=>{bc(e,!1)})):bc(e,t))},beforeUnmount(e,{value:t}){bc(e,t)}};function bc(e,t){e.style.display=t?e[Dc]:"none",e[kc]=!t}const Ac=Symbol("");function Rc(e){const t=Dr();if(!t)return;const n=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach((e=>Nc(e,n)))},o=()=>{const o=e(t.proxy);Oc(t.subTree,o),n(o)};Ti(o),hs((()=>{const e=new MutationObserver(o);e.observe(t.subTree.el.parentNode,{childList:!0}),ms((()=>e.disconnect()))}))}function Oc(e,t){if(128&e.shapeFlag){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push((()=>{Oc(n.activeBranch,t)}))}for(;e.component;)e=e.component.subTree;if(1&e.shapeFlag&&e.el)Nc(e.el,t);else if(e.type===ja)e.children.forEach((e=>Oc(e,t)));else if(e.type===Ya){let{el:n,anchor:o}=e;for(;n&&(Nc(n,t),n!==o);)n=n.nextSibling}}function Nc(e,t){if(1===e.nodeType){const n=e.style;let o="";for(const e in t){const i=$c(t[e]);n.setProperty(`--${e}`,i),o+=`--${e}: ${i};`}n[Ac]=o}}const Pc=/(^|;)\s*display\s*:/;const wc=/\s*!important$/;function Gc(e,t,n){if(h(n))n.forEach((n=>Gc(e,t,n)));else if(null==n&&(n=""),n=$c(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=xc[t];if(n)return n;let o=b(t);if("filter"!==o&&o in e)return xc[t]=o;o=O(o);for(let i=0;ie.replace(nt,((e,t)=>{if(!t)return e;if(1===Kc)return`${t}${Hc}`;const n=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(parseFloat(t)*Kc,jc);return 0===n?"0":`${n}${Hc}`})));var Hc,Kc,jc;const $c=e=>v(e)?Bc(e):e,Wc="http://www.w3.org/1999/xlink";function Yc(e,t,n,o){e.addEventListener(t,n,o)}const zc=Symbol("_vei");function Xc(e,t,n,o,i=null){const s=e[zc]||(e[zc]={}),a=s[t];if(o&&a)a.value=o;else{const[n,r]=function(e){let t;if(Jc.test(e)){let n;for(t={};n=e.match(Jc);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}const n=":"===e[2]?e.slice(3):R(e.slice(2));return[n,t]}(t);if(o){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 o=t&&t.proxy,i=o&&o.$nne,{value:s}=n;if(i&&h(s)){const n=tu(e,s);for(let o=0;oZc||(Qc.then((()=>Zc=0)),Zc=Date.now());function tu(e,t){if(h(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 nu=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123; /*! #__NO_SIDE_EFFECTS__ */ function ou(e,t){const n=ji(e);class o extends au{constructor(e){super(n,e,t)}}return o.def=n,o} /*! #__NO_SIDE_EFFECTS__ */const iu=e=>ou(e,Hu),su="undefined"!=typeof HTMLElement?HTMLElement:class{};class au extends su{constructor(e,t={},n){super(),this._def=e,this._props=t,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this._ob=null,this.shadowRoot&&n?n(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,this._ob&&(this._ob.disconnect(),this._ob=null),Oo((()=>{this._connected||(Bu(null,this.shadowRoot),this._instance=null)}))}_resolveDef(){this._resolved=!0;for(let n=0;n{for(const t of e)this._setAttr(t.attributeName)})),this._ob.observe(this,{attributes:!0});const e=(e,t=!1)=>{const{props:n,styles:o}=e;let i;if(n&&!h(n))for(const s in n){const e=n[s];(e===Number||e&&e.type===Number)&&(s in this._props&&(this._props[s]=x(this._props[s])),(i||(i=Object.create(null)))[b(s)]=!0)}this._numberProps=i,t&&this._resolveProps(e),this._applyStyles(o),this._update()},t=this._def.__asyncLoader;t?t().then((t=>e(t,!0))):e(this._def)}_resolveProps(e){const{props:t}=e,n=h(t)?t:Object.keys(t||{});for(const o of Object.keys(this))"_"!==o[0]&&n.includes(o)&&this._setProp(o,this[o],!0,!1);for(const o of n.map(b))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(e){this._setProp(o,e)}})}_setAttr(e){let t=this.hasAttribute(e)?this.getAttribute(e):void 0;const n=b(e);this._numberProps&&this._numberProps[n]&&(t=x(t)),this._setProp(n,t,!1)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,o=!0){t!==this._props[e]&&(this._props[e]=t,o&&this._instance&&this._update(),n&&(!0===t?this.setAttribute(R(e),""):"string"==typeof t||"number"==typeof t?this.setAttribute(R(e),t+""):t||this.removeAttribute(R(e))))}_update(){Bu(this._createVNode(),this.shadowRoot)}_createVNode(){const e=dr(this._def,u({},this._props));return this._instance||(e.ce=e=>{this._instance=e,e.isCE=!0;const t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,{detail:t}))};e.emit=(e,...n)=>{t(e,n),R(e)!==e&&t(R(e),n)};let n=this;for(;n=n&&(n.parentNode||n.host);)if(n instanceof au){e.parent=n._instance,e.provides=n._instance.provides;break}}),e}_applyStyles(e){e&&e.forEach((e=>{const t=document.createElement("style");t.textContent=e,this.shadowRoot.appendChild(t)}))}}function ru(e="$style"){{const t=Dr();if(!t)return o;const n=t.type.__cssModules;if(!n)return o;const i=n[e];return i||o}}const cu=new WeakMap,uu=new WeakMap,lu=Symbol("_moveCb"),du=Symbol("_enterCb"),pu={name:"TransitionGroup",props:u({},pc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Dr(),o=wi();let i,s;return gs((()=>{if(!i.length)return;const t=e.moveClass||`${e.name||"v"}-move`;if(!function(e,t,n){const o=e.cloneNode(),i=e[uc];i&&i.forEach((e=>{e.split(/\s+/).forEach((e=>e&&o.classList.remove(e)))}));n.split(/\s+/).forEach((e=>e&&o.classList.add(e))),o.style.display="none";const s=1===t.nodeType?t:t.parentNode;s.appendChild(o);const{hasTransform:a}=Cc(o);return s.removeChild(o),a}(i[0].el,n.vnode.el,t))return;i.forEach(fu),i.forEach(gu);const o=i.filter(_u);Ec(),o.forEach((e=>{const n=e.el,o=n.style;mc(n,t),o.transform=o.webkitTransform=o.transitionDuration="";const i=n[lu]=e=>{e&&e.target!==n||e&&!/transform$/.test(e.propertyName)||(n.removeEventListener("transitionend",i),n[lu]=null,vc(n,t))};n.addEventListener("transitionend",i)}))})),()=>{const a=Kn(e),r=gc(a);let c=a.tag||ja;i=s,s=t.default?Ki(t.default()):[];for(let e=0;e{const t=e.props["onUpdate:modelValue"]||!1;return h(t)?e=>w(t,e):t};function vu(e){e.target.composing=!0}function yu(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Iu=Symbol("_assign"),Mu={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e[Iu]=mu(i);const s=o||i.props&&"number"===i.props.type;Yc(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=U(o)),e[Iu](o)})),n&&Yc(e,"change",(()=>{e.value=e.value.trim()})),t||(Yc(e,"compositionstart",vu),Yc(e,"compositionend",yu),Yc(e,"change",yu))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},s){if(e[Iu]=mu(s),e.composing)return;const a=null==t?"":t;if((i||"number"===e.type?U(e.value):e.value)!==a){if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===a)return}e.value=a}}},Cu={deep:!0,created(e,t,n){e[Iu]=mu(n),Yc(e,"change",(()=>{const t=e._modelValue,n=ku(e),o=e.checked,i=e[Iu];if(h(t)){const e=J(t,n),s=-1!==e;if(o&&!s)i(t.concat(n));else if(!o&&s){const n=[...t];n.splice(e,1),i(n)}}else if(g(t)){const e=new Set(t);o?e.add(n):e.delete(n),i(e)}else i(Lu(e,o))}))},mounted:Tu,beforeUpdate(e,t,n){e[Iu]=mu(n),Tu(e,t,n)}};function Tu(e,{value:t,oldValue:n},o){e._modelValue=t,h(t)?e.checked=J(t,o.props.value)>-1:g(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=X(t,Lu(e,!0)))}const Su={created(e,{value:t},n){e.checked=X(t,n.props.value),e[Iu]=mu(n),Yc(e,"change",(()=>{e[Iu](ku(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e[Iu]=mu(o),t!==n&&(e.checked=X(t,o.props.value))}},Eu={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const i=g(t);Yc(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?U(ku(e)):ku(e)));e[Iu](e.multiple?i?new Set(t):t:t[0]),e._assigning=!0,Oo((()=>{e._assigning=!1}))})),e[Iu]=mu(o)},mounted(e,{value:t,modifiers:{number:n}}){Du(e,t,n)},beforeUpdate(e,t,n){e[Iu]=mu(n)},updated(e,{value:t,modifiers:{number:n}}){e._assigning||Du(e,t,n)}};function Du(e,t,n){const o=e.multiple,i=h(t);if(!o||i||g(t)){for(let s=0,a=e.options.length;s-1}else a.selected=t.has(r);else if(X(ku(a),t))return void(e.selectedIndex!==s&&(e.selectedIndex=s))}o||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ku(e){return"_value"in e?e._value:e.value}function Lu(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const bu={created(e,t,n){Ru(e,t,n,null,"created")},mounted(e,t,n){Ru(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){Ru(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){Ru(e,t,n,o,"updated")}};function Au(e,t){switch(e){case"SELECT":return Eu;case"TEXTAREA":return Mu;default:switch(t){case"checkbox":return Cu;case"radio":return Su;default:return Mu}}}function Ru(e,t,n,o,i){const s=Au(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,o)}const Ou=["ctrl","shift","alt","meta"],Nu={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)=>Ou.some((n=>e[`${n}Key`]&&!t.includes(n)))},Pu=(e,t)=>{const n=e._withMods||(e._withMods={}),o=t.join(".");return n[o]||(n[o]=(n,...o)=>{for(let e=0;e{const n=e._withKeys||(e._withKeys={}),o=t.join(".");return n[o]||(n[o]=n=>{if(!("key"in n))return;const o=R(n.key);return t.some((e=>e===o||wu[e]===o))?e(n):void 0})},Uu=u({patchProp:(e,t,n,o,i,s,a,u,l)=>{if(0===t.indexOf("change:"))return function(e,t,n,o=null){if(!n||!o)return;const i=t.replace("change:",""),{attrs:s}=o,a=s[i],r=(e.__wxsProps||(e.__wxsProps={}))[i];if(r===a)return;e.__wxsProps[i]=a;const c=o.proxy;Oo((()=>{n(a,r,c.$gcd(c,!0),c.$gcd(c,!1))}))}(e,t,o,a);const d="svg"===i;"class"===t?function(e,t,n){const{__wxsAddClass:o,__wxsRemoveClass:i}=e;i&&i.length&&(t=(t||"").split(/\s+/).filter((e=>-1===i.indexOf(e))).join(" "),i.length=0),o&&o.length&&(t=(t||"")+" "+o.join(" "));const s=e[uc];s&&(t=(t?[t,...s]:[...s]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,d):"style"===t?function(e,t,n){const o=e.style,i=v(n);let s=!1;if(n&&!i){if(t)if(v(t))for(const e of t.split(";")){const t=e.slice(0,e.indexOf(":")).trim();null==n[t]&&Gc(o,t,"")}else for(const e in t)null==n[e]&&Gc(o,e,"");for(const e in n)"display"===e&&(s=!0),Gc(o,e,n[e])}else if(i){if(t!==n){const e=o[Ac];e&&(n+=";"+e),o.cssText=n,s=Pc.test(n)}}else t&&e.removeAttribute("style");Dc in e&&(e[Dc]=s?o.display:"",e[kc]&&(o.display="none"));const{__wxsStyle:a}=e;if(a)for(const r in a)Gc(o,r,a[r])}(e,n,o):r(t)?c(t)||Xc(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&nu(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(nu(t)&&v(n))return!1;return t in e}(e,t,o,d))?function(e,t,n,o,i,s,a){if("innerHTML"===t||"textContent"===t)return o&&a(o,i,s),void(e[t]=null==n?"":n);const r=e.tagName;if("value"===t&&"PROGRESS"!==r&&!r.includes("-")){const o=null==n?"":n;return("OPTION"===r?e.getAttribute("value")||"":e.value)===o&&"_value"in e||(e.value=o),null==n&&e.removeAttribute(t),void(e._value=n)}let c=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=z(n):null==n&&"string"===o?(n="",c=!0):"number"===o&&(n=0,c=!0)}try{e[t]=n}catch(aL){}c&&e.removeAttribute(t)}(e,t,o,s,a,u,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Wc,t.slice(6,t.length)):e.setAttributeNS(Wc,t,n);else{const o=Y(t);null==n||o&&!z(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,d))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},ac);let xu,Fu=!1;function qu(){return xu||(xu=Aa(Uu))}function Vu(){return xu=Fu?xu:Ra(Uu),Fu=!0,xu}const Bu=(...e)=>{qu().render(...e)},Hu=(...e)=>{Vu().hydrate(...e)},Ku=(...e)=>{const t=qu().createApp(...e),{mount:n}=t;return t.mount=e=>{const o=Wu(e);if(!o)return;const i=t._component;m(i)||i.render||i.template||(i.template=o.innerHTML),o.innerHTML="";const s=n(o,!1,$u(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t},ju=(...e)=>{const t=Vu().createApp(...e),{mount:n}=t;return t.mount=e=>{const t=Wu(e);if(t)return n(t,!0,$u(t))},t};function $u(e){return e instanceof SVGElement?"svg":"function"==typeof MathMLElement&&e instanceof MathMLElement?"mathml":void 0}function Wu(e){if(v(e)){return document.querySelector(e)}return e}let Yu=!1;const zu=()=>{Yu||(Yu=!0,Mu.getSSRProps=({value:e})=>({value:e}),Su.getSSRProps=({value:e},t)=>{if(t.props&&X(t.props.value,e))return{checked:!0}},Cu.getSSRProps=({value:e},t)=>{if(h(e)){if(t.props&&J(e,t.props.value)>-1)return{checked:!0}}else if(g(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},bu.getSSRProps=(e,t)=>{if("string"!=typeof t.type)return;const n=Au(t.type.toUpperCase(),t.props&&t.props.type);return n.getSSRProps?n.getSSRProps(e,t):void 0},Lc.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}})},Xu=()=>{},Ju=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:xi,BaseTransitionPropsValidators:Ui,Comment:Wa,DeprecationTypes:null,EffectScope:Ct,ErrorCodes:vo,ErrorTypeStrings:Jr,Fragment:ja,KeepAlive:Zi,ReactiveEffect:kt,Static:Ya,Suspense:fi,Teleport:Ha,Text:$a,TrackOpTypes:go,Transition:lc,TransitionGroup:hu,TriggerOpTypes:_o,VueElement:au,assertNumber:mo,callWithAsyncErrorHandling:Mo,callWithErrorHandling:Io,camelize:b,capitalize:O,cloneVNode:hr,compatUtils:null,compile:Xu,computed:Hr,createApp:Ku,createBlock:or,createCommentVNode:_r,createElementBlock:nr,createElementVNode:lr,createHydrationRenderer:Ra,createPropsRestProxy:js,createRenderer:Aa,createSSRApp:ju,createSlots:Ts,createStaticVNode:gr,createTextVNode:fr,createVNode:dr,createVueApp:Ku,customRef:co,defineAsyncComponent:Wi,defineComponent:ji,defineCustomElement:ou,defineEmits:Ns,defineExpose:Ps,defineModel:Us,defineOptions:ws,defineProps:Os,defineSSRCustomElement:iu,defineSlots:Gs,devtools:Zr,effect:Rt,effectScope:Tt,getCurrentInstance:Dr,getCurrentScope:Et,getTransitionRawChildren:Ki,guardReactiveProps:pr,h:jr,handleError:Co,hasInjectionContext:da,hydrate:Hu,initCustomFormatter:$r,initDirectivesForSSR:zu,inject:la,injectHook:ls,get isInSSRComponentSetup(){return Pr},isMemoSame:Yr,isProxy:Hn,isReactive:qn,isReadonly:Vn,isRef:Jn,isRuntimeOnly:xr,isShallow:Bn,isVNode:ir,markRaw:jn,mergeDefaults:Hs,mergeModels:Ks,mergeProps:Ir,nextTick:Oo,normalizeClass:Be,normalizeProps:He,normalizeStyle:Ve,onActivated:ts,onBeforeActivate:es,onBeforeDeactivate:ns,onBeforeMount:ps,onBeforeUnmount:_s,onBeforeUpdate:fs,onDeactivated:os,onErrorCaptured:Ms,onMounted:hs,onRenderTracked:Is,onRenderTriggered:ys,onScopeDispose:Dt,onServerPrefetch:vs,onUnmounted:ms,onUpdated:gs,openBlock:Ja,popScopeId:Jo,provide:ua,proxyRefs:ao,pushScopeId:Xo,queuePostFlushCb:wo,reactive:wn,readonly:Un,ref:Zn,registerRuntimeCompiler:Ur,render:Bu,renderList:Cs,renderSlot:Ss,resolveComponent:ai,resolveDirective:ui,resolveDynamicComponent:ci,resolveFilter:null,resolveTransitionHooks:qi,setBlockTracking:er,setDevtoolsHook:Qr,setTransitionHooks:Hi,shallowReactive:Gn,shallowReadonly:xn,shallowRef:Qn,ssrContextKey:Ii,ssrUtils:ec,stop:Ot,toDisplayString:Z,toHandlerKey:N,toHandlers:Ds,toRaw:Kn,toRef:ho,toRefs:uo,toValue:io,transformVNodeArgs:ar,triggerRef:no,unref:oo,useAttrs:qs,useCssModule:ru,useCssVars:Rc,useModel:Kr,useSSRContext:Mi,useSlots:Fs,useTransitionState:wi,vModelCheckbox:Cu,vModelDynamic:bu,vModelRadio:Su,vModelSelect:Eu,vModelText:Mu,vShow:Lc,version:zr,warn:Xr,watch:Di,watchEffect:Ci,watchPostEffect:Ti,watchSyncEffect:Si,withAsyncContext:$s,withCtx:Qo,withDefaults:xs,withDirectives:Ri,withKeys:Gu,withMemo:Wr,withModifiers:Pu,withScopeId:Zo},Symbol.toStringTag,{value:"Module"})),Zu="undefined"!=typeof document;const Qu=Object.assign;function el(e,t){const n={};for(const o in t){const i=t[o];n[o]=nl(i)?i.map(e):e(i)}return n}const tl=()=>{},nl=Array.isArray,ol=/#/g,il=/&/g,sl=/\//g,al=/=/g,rl=/\?/g,cl=/\+/g,ul=/%5B/g,ll=/%5D/g,dl=/%5E/g,pl=/%60/g,hl=/%7B/g,fl=/%7C/g,gl=/%7D/g,_l=/%20/g;function ml(e){return encodeURI(""+e).replace(fl,"|").replace(ul,"[").replace(ll,"]")}function vl(e){return ml(e).replace(cl,"%2B").replace(_l,"+").replace(ol,"%23").replace(il,"%26").replace(pl,"`").replace(hl,"{").replace(gl,"}").replace(dl,"^")}function yl(e){return null==e?"":function(e){return ml(e).replace(ol,"%23").replace(rl,"%3F")}(e).replace(sl,"%2F")}function Il(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}const Ml=/\/$/;function Cl(e,t,n="/"){let o,i={},s="",a="";const r=t.indexOf("#");let c=t.indexOf("?");return r=0&&(c=-1),c>-1&&(o=t.slice(0,c),s=t.slice(c+1,r>-1?r:t.length),i=e(s)),r>-1&&(o=o||t.slice(0,r),a=t.slice(r,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/"),i=o[o.length-1];".."!==i&&"."!==i||o.push("");let s,a,r=n.length-1;for(s=0;s1&&r--}return n.slice(0,r).join("/")+"/"+o.slice(s).join("/")}(null!=o?o:t,n),{fullPath:o+(s&&"?")+s+a,path:o,query:i,hash:Il(a)}}function Tl(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function Sl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function El(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Dl(e[n],t[n]))return!1;return!0}function Dl(e,t){return nl(e)?kl(e,t):nl(t)?kl(t,e):e===t}function kl(e,t){return nl(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Ll,bl,Al,Rl;function Ol(e){if(!e)if(Zu){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Ml,"")}(bl=Ll||(Ll={})).pop="pop",bl.push="push",(Rl=Al||(Al={})).back="back",Rl.forward="forward",Rl.unknown="";const Nl=/^[^#]+#/;function Pl(e,t){return e.replace(Nl,"#")+t}const wl=()=>({left:window.scrollX,top:window.scrollY});function Gl(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),i="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.scrollX,null!=t.top?t.top:window.scrollY)}function Ul(e,t){return(history.state?history.state.position-t:-1)+e}const xl=new Map;function Fl(e,t){const{pathname:n,search:o,hash:i}=t,s=e.indexOf("#");if(s>-1){let t=i.includes(e.slice(s))?e.slice(s).length:1,n=i.slice(t);return"/"!==n[0]&&(n="/"+n),Tl(n,"")}return Tl(n,e)+o+i}function ql(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?wl():null}}function Vl(e){const{history:t,location:n}=window,o={value:Fl(e,n)},i={value:t.state};function s(o,s,a){const r=e.indexOf("#"),c=r>-1?(n.host&&document.querySelector("base")?e:e.slice(r))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](s,"",c),i.value=s}catch(u){console.error(u),n[a?"replace":"assign"](c)}}return i.value||s(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:i,push:function(e,n){const a=Qu({},i.value,t.state,{forward:e,scroll:wl()});s(a.current,a,!0),s(e,Qu({},ql(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){s(e,Qu({},t.state,ql(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),o.value=e}}}function Bl(e){const t=Vl(e=Ol(e)),n=function(e,t,n,o){let i=[],s=[],a=null;const r=({state:s})=>{const r=Fl(e,location),c=n.value,u=t.value;let l=0;if(s){if(n.value=r,t.value=s,a&&a===c)return void(a=null);l=u?s.position-u.position:0}else o(r);i.forEach((e=>{e(n.value,c,{delta:l,type:Ll.pop,direction:l?l>0?Al.forward:Al.back:Al.unknown})}))};function c(){const{history:e}=window;e.state&&e.replaceState(Qu({},e.state,{scroll:wl()}),"")}return window.addEventListener("popstate",r),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:function(){a=n.value},listen:function(e){i.push(e);const t=()=>{const t=i.indexOf(e);t>-1&&i.splice(t,1)};return s.push(t),t},destroy:function(){for(const e of s)e();s=[],window.removeEventListener("popstate",r),window.removeEventListener("beforeunload",c)}}}(e,t.state,t.location,t.replace);const o=Qu({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:Pl.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function Hl(e){return"string"==typeof e||"symbol"==typeof e}const Kl={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},jl=Symbol("");var $l,Wl;function Yl(e,t){return Qu(new Error,{type:e,[jl]:!0},t)}function zl(e,t){return e instanceof Error&&jl in e&&(null==t||!!(e.type&t))}(Wl=$l||($l={}))[Wl.aborted=4]="aborted",Wl[Wl.cancelled=8]="cancelled",Wl[Wl.duplicated=16]="duplicated";const Xl="[^/]+?",Jl={sensitive:!1,strict:!1,start:!0,end:!0},Zl=/[.+*?^${}()[\]/\\]/g;function Ql(e,t){let n=0;for(;nt.length?1===t.length&&80===t[0]?1:-1:0}function ed(e,t){let n=0;const o=e.score,i=t.score;for(;n0&&t[t.length-1]<0}const nd={type:0,value:""},od=/[a-zA-Z0-9_]/;function id(e,t,n){const o=function(e,t){const n=Qu({},Jl,t),o=[];let i=n.start?"^":"";const s=[];for(const c of e){const e=c.length?[]:[90];n.strict&&!c.length&&(i+="/");for(let t=0;t1&&("*"===r||"+"===r)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:u,regexp:l,repeatable:"*"===r||"+"===r,optional:"*"===r||"?"===r})):t("Invalid state to consume buffer"),u="")}function p(){u+=r}for(;c{s(p)}:tl}function s(e){if(Hl(e)){const t=o.get(e);t&&(o.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&&o.delete(e.record.name),e.children.forEach(s),e.alias.forEach(s))}}function a(e){let t=0;for(;t=0&&(e.record.path!==n[t].record.path||!dd(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!cd(e)&&o.set(e.record.name,e)}return t=ld({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>i(e))),{addRoute:i,resolve:function(e,t){let i,s,a,r={};if("name"in e&&e.name){if(i=o.get(e.name),!i)throw Yl(1,{location:e});a=i.record.name,r=Qu(ad(t.params,i.keys.filter((e=>!e.optional)).concat(i.parent?i.parent.keys.filter((e=>e.optional)):[]).map((e=>e.name))),e.params&&ad(e.params,i.keys.map((e=>e.name)))),s=i.stringify(r)}else if(null!=e.path)s=e.path,i=n.find((e=>e.re.test(s))),i&&(r=i.parse(s),a=i.record.name);else{if(i=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!i)throw Yl(1,{location:e,currentLocation:t});a=i.record.name,r=Qu({},t.params,e.params),s=i.stringify(r)}const c=[];let u=i;for(;u;)c.unshift(u.record),u=u.parent;return{name:a,path:s,params:r,matched:c,meta:ud(c)}},removeRoute:s,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function ad(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function rd(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="object"==typeof n?n[o]:n;return t}function cd(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function ud(e){return e.reduce(((e,t)=>Qu(e,t.meta)),{})}function ld(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function dd(e,t){return t.children.some((t=>t===e||dd(e,t)))}function pd(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;oe&&vl(e))):[o&&vl(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function fd(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=nl(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const gd=Symbol(""),_d=Symbol(""),md=Symbol(""),vd=Symbol(""),yd=Symbol("");function Id(){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 Md(e,t,n,o,i,s=e=>e()){const a=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise(((r,c)=>{const u=e=>{var s;!1===e?c(Yl(4,{from:n,to:t})):e instanceof Error?c(e):"string"==typeof(s=e)||s&&"object"==typeof s?c(Yl(2,{from:t,to:e})):(a&&o.enterCallbacks[i]===a&&"function"==typeof e&&a.push(e),r())},l=s((()=>e.call(o&&o.instances[i],t,n,u)));let d=Promise.resolve(l);e.length<3&&(d=d.then(u)),d.catch((e=>c(e)))}))}function Cd(e,t,n,o,i=e=>e()){const s=[];for(const r of e)for(const e in r.components){let c=r.components[e];if("beforeRouteEnter"===t||r.instances[e])if("object"==typeof(a=c)||"displayName"in a||"props"in a||"__vccOpts"in a){const a=(c.__vccOpts||c)[t];a&&s.push(Md(a,n,o,r,e,i))}else{let a=c();s.push((()=>a.then((s=>{if(!s)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${r.path}"`));const a=(c=s).__esModule||"Module"===c[Symbol.toStringTag]?s.default:s;var c;r.components[e]=a;const u=(a.__vccOpts||a)[t];return u&&Md(u,n,o,r,e,i)()}))))}}var a;return s}function Td(e){const t=la(md),n=la(vd),o=Hr((()=>t.resolve(oo(e.to)))),i=Hr((()=>{const{matched:e}=o.value,{length:t}=e,i=e[t-1],s=n.matched;if(!i||!s.length)return-1;const a=s.findIndex(Sl.bind(null,i));if(a>-1)return a;const r=Ed(e[t-2]);return t>1&&Ed(i)===r&&s[s.length-1].path!==r?s.findIndex(Sl.bind(null,e[t-2])):a})),s=Hr((()=>i.value>-1&&function(e,t){for(const n in t){const o=t[n],i=e[n];if("string"==typeof o){if(o!==i)return!1}else if(!nl(i)||i.length!==o.length||o.some(((e,t)=>e!==i[t])))return!1}return!0}(n.params,o.value.params))),a=Hr((()=>i.value>-1&&i.value===n.matched.length-1&&El(n.params,o.value.params)));return{route:o,href:Hr((()=>o.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[oo(e.replace)?"replace":"push"](oo(e.to)).catch(tl):Promise.resolve()}}}const Sd=ji({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:Td,setup(e,{slots:t}){const n=wn(Td(e)),{options:o}=la(md),i=Hr((()=>({[Dd(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Dd(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:jr("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}});function Ed(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Dd=(e,t,n)=>null!=e?e:null!=t?t:n;function kd(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const Ld=ji({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=la(yd),i=Hr((()=>e.route||o.value)),s=la(_d,0),a=Hr((()=>{let e=oo(s);const{matched:t}=i.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),r=Hr((()=>i.value.matched[a.value]));ua(_d,Hr((()=>a.value+1))),ua(gd,r),ua(yd,i);const c=Zn();return Di((()=>[c.value,r.value,e.name]),(([e,t,n],[o,i,s])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),!e||!t||i&&Sl(t,i)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=i.value,s=e.name,a=r.value,u=a&&a.components[s];if(!u)return kd(n.default,{Component:u,route:o});const l=a.props[s],d=l?!0===l?o.params:"function"==typeof l?l(o):l:null,p=jr(u,Qu({},d,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[s]=null)},ref:c}));return kd(n.default,{Component:p,route:o})||p}}});function bd(e){const t=sd(e.routes,e),n=e.parseQuery||pd,o=e.stringifyQuery||hd,i=e.history,s=Id(),a=Id(),r=Id(),c=Qn(Kl);let u=Kl;Zu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const l=el.bind(null,(e=>""+e)),d=el.bind(null,yl),p=el.bind(null,Il);function h(e,s){if(s=Qu({},s||c.value),"string"==typeof e){const o=Cl(n,e,s.path),a=t.resolve({path:o.path},s),r=i.createHref(o.fullPath);return Qu(o,a,{params:p(a.params),hash:Il(o.hash),redirectedFrom:void 0,href:r})}let a;if(null!=e.path)a=Qu({},e,{path:Cl(n,e.path,s.path).path});else{const t=Qu({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Qu({},e,{params:d(t)}),s.params=d(s.params)}const r=t.resolve(a,s),u=e.hash||"";r.params=l(p(r.params));const h=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Qu({},e,{hash:(f=u,ml(f).replace(hl,"{").replace(gl,"}").replace(dl,"^")),path:r.path}));var f;const g=i.createHref(h);return Qu({fullPath:h,hash:u,query:o===hd?fd(e.query):e.query||{}},r,{redirectedFrom:void 0,href:g})}function f(e){return"string"==typeof e?Cl(n,e,c.value.path):Qu({},e)}function g(e,t){if(u!==e)return Yl(8,{from:t,to:e})}function _(e){return v(e)}function m(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=f(o):{path:o},o.params={}),Qu({query:e.query,hash:e.hash,params:null!=o.path?{}:e.params},o)}}function v(e,t){const n=u=h(e),i=c.value,s=e.state,a=e.force,r=!0===e.replace,l=m(n);if(l)return v(Qu(f(l),{state:"object"==typeof l?Qu({},s,l.state):s,force:a,replace:r}),t||n);const d=n;let p;return d.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&Sl(t.matched[o],n.matched[i])&&El(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,i,n)&&(p=Yl(16,{to:d,from:i}),R(i,i,!0,!1)),(p?Promise.resolve(p):M(d,i)).catch((e=>zl(e)?zl(e,2)?e:A(e):b(e,d,i))).then((e=>{if(e){if(zl(e,2))return v(Qu({replace:r},f(e.to),{state:"object"==typeof e.to?Qu({},s,e.to.state):s,force:a}),t||d)}else e=T(d,i,!0,r,s);return C(d,i,e),e}))}function y(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function I(e){const t=P.values().next().value;return t&&"function"==typeof t.runWithContext?t.runWithContext(e):e()}function M(e,t){let n;const[o,i,r]=function(e,t){const n=[],o=[],i=[],s=Math.max(t.matched.length,e.matched.length);for(let a=0;aSl(e,s)))?o.push(s):n.push(s));const r=e.matched[a];r&&(t.matched.find((e=>Sl(e,r)))||i.push(r))}return[n,o,i]}(e,t);n=Cd(o.reverse(),"beforeRouteLeave",e,t);for(const s of o)s.leaveGuards.forEach((o=>{n.push(Md(o,e,t))}));const c=y.bind(null,e,t);return n.push(c),G(n).then((()=>{n=[];for(const o of s.list())n.push(Md(o,e,t));return n.push(c),G(n)})).then((()=>{n=Cd(i,"beforeRouteUpdate",e,t);for(const o of i)o.updateGuards.forEach((o=>{n.push(Md(o,e,t))}));return n.push(c),G(n)})).then((()=>{n=[];for(const o of r)if(o.beforeEnter)if(nl(o.beforeEnter))for(const i of o.beforeEnter)n.push(Md(i,e,t));else n.push(Md(o.beforeEnter,e,t));return n.push(c),G(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=Cd(r,"beforeRouteEnter",e,t,I),n.push(c),G(n)))).then((()=>{n=[];for(const o of a.list())n.push(Md(o,e,t));return n.push(c),G(n)})).catch((e=>zl(e,8)?e:Promise.reject(e)))}function C(e,t,n){r.list().forEach((o=>I((()=>o(e,t,n)))))}function T(e,t,n,o,s){const a=g(e,t);if(a)return a;const r=t===Kl,u=Zu?history.state:{};n&&(o||r?i.replace(e.fullPath,Qu({scroll:r&&u&&u.scroll},s)):i.push(e.fullPath,s)),c.value=e,R(e,t,n,r),A()}let S;function E(){S||(S=i.listen(((e,t,n)=>{if(!w.listening)return;const o=h(e),s=m(o);if(s)return void v(Qu(s,{replace:!0}),o).catch(tl);u=o;const a=c.value;var r,l;Zu&&(r=Ul(a.fullPath,n.delta),l=wl(),xl.set(r,l)),M(o,a).catch((e=>zl(e,12)?e:zl(e,2)?(v(e.to,o).then((e=>{zl(e,20)&&!n.delta&&n.type===Ll.pop&&i.go(-1,!1)})).catch(tl),Promise.reject()):(n.delta&&i.go(-n.delta,!1),b(e,o,a)))).then((e=>{(e=e||T(o,a,!1))&&(n.delta&&!zl(e,8)?i.go(-n.delta,!1):n.type===Ll.pop&&zl(e,20)&&i.go(-1,!1)),C(o,a,e)})).catch(tl)})))}let D,k=Id(),L=Id();function b(e,t,n){A(e);const o=L.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function A(e){return D||(D=!e,E(),k.list().forEach((([t,n])=>e?n(e):t())),k.reset()),e}function R(t,n,o,i){const{scrollBehavior:s}=e;if(!Zu||!s)return Promise.resolve();const a=!o&&function(e){const t=xl.get(e);return xl.delete(e),t}(Ul(t.fullPath,0))||(i||!o)&&history.state&&history.state.scroll||null;return Oo().then((()=>s(t,n,a))).then((e=>e&&Gl(e))).catch((e=>b(e,t,n)))}const O=e=>i.go(e);let N;const P=new Set,w={currentRoute:c,listening:!0,addRoute:function(e,n){let o,i;return Hl(e)?(o=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:h,options:e,push:_,replace:function(e){return _(Qu(f(e),{replace:!0}))},go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:s.add,beforeResolve:a.add,afterEach:r.add,onError:L.add,isReady:function(){return D&&c.value!==Kl?Promise.resolve():new Promise(((e,t)=>{k.add([e,t])}))},install(e){e.component("RouterLink",Sd),e.component("RouterView",Ld),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>oo(c)}),Zu&&!N&&c.value===Kl&&(N=!0,_(i.location).catch((e=>{})));const t={};for(const o in Kl)Object.defineProperty(t,o,{get:()=>c.value[o],enumerable:!0});e.provide(md,this),e.provide(vd,Gn(t)),e.provide(yd,c);const n=e.unmount;P.add(e),e.unmount=function(){P.delete(e),P.size<1&&(u=Kl,S&&S(),S=null,c.value=Kl,N=!1,D=!1),n()}}};function G(e){return e.reduce(((e,t)=>e.then((()=>I(t)))),Promise.resolve())}return w}function Ad(){return la(vd)}const Rd=["{","}"];const Od=/^(?:\d)+/,Nd=/^(?:\w)+/;const Pd="zh-Hans",wd="zh-Hant",Gd="en",Ud="fr",xd="es",Fd=Object.prototype.hasOwnProperty,qd=(e,t)=>Fd.call(e,t),Vd=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Rd){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let i=0,s="";for(;i-1?Pd:e.indexOf("-hant")>-1?wd:(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?wd:Pd);var n;let o=[Gd,Ud,xd];t&&Object.keys(t).length>0&&(o=Object.keys(t));const i=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return i||void 0}class Hd{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:i}){this.locale=Gd,this.fallbackLocale=Gd,this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=i||Vd,this.messages=n||{},this.setLocale(e||Gd),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=Bd(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{qd(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=Bd(t,this.messages))&&(o=this.messages[t]):n=t,qd(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Kd(e,t={},n,o){if("string"!=typeof e){const n=[t,e];e=n[0],t=n[1]}"string"!=typeof e&&(e="undefined"!=typeof uni&&Bg?Bg():"undefined"!=typeof global&&global.getLocale?global.getLocale():Gd),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||Gd);const i=new Hd({locale:e,fallbackLocale:n,messages:t,watcher:o});let s=(e,t)=>{{let e=!1;s=function(t,n){const o=lI().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,i))),i.t(t,n)}}return s(e,t)};return{i18n:i,f:(e,t,n)=>i.f(e,t,n),t:(e,t)=>s(e,t),add:(e,t,n=!0)=>i.add(e,t,n),watch:e=>i.watchLocale(e),getLocale:()=>i.getLocale(),setLocale:e=>i.setLocale(e)}}function $d(e,t){return e.indexOf(t[0])>-1}const Wd=Ye((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let Yd;function zd(e){return $d(e,ae)?Zd().f(e,function(){const e=Bg(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),ae):e}function Xd(e,t){if(1===t.length){if(e){const n=e=>v(e)&&$d(e,ae),o=t[0];let i=[];if(h(e)&&(i=e.filter((e=>n(e[o])))).length)return i;const s=e[t[0]];if(n(s))return e}return}const n=t.shift();return Xd(e&&e[n],t)}function Jd(e,t){const n=Xd(e,t);if(!n)return!1;const o=t[t.length-1];if(h(n))n.forEach((e=>Jd(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>zd(e),set(t){e=t}})}return!0}function Zd(){if(!Yd){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,Yd=Kd(e),Wd()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>Yd.add(e,__uniConfig.locales[e]))),Yd.setLocale(e)}}return Yd}function Qd(e,t,n){return t.reduce(((t,o,i)=>(t[e+o]=n[i],t)),{})}const ep=Ye((()=>{const e="uni.async.",t=["error"];Zd().add(Gd,Qd(e,t,["The connection timed out, click the screen to try again."]),!1),Zd().add(xd,Qd(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),Zd().add(Ud,Qd(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),Zd().add(Pd,Qd(e,t,["连接服务器超时,点击屏幕重试"]),!1),Zd().add(wd,Qd(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),tp=Ye((()=>{const e="uni.showActionSheet.",t=["cancel"];Zd().add(Gd,Qd(e,t,["Cancel"]),!1),Zd().add(xd,Qd(e,t,["Cancelar"]),!1),Zd().add(Ud,Qd(e,t,["Annuler"]),!1),Zd().add(Pd,Qd(e,t,["取消"]),!1),Zd().add(wd,Qd(e,t,["取消"]),!1)})),np=Ye((()=>{const e="uni.showToast.",t=["unpaired"];Zd().add(Gd,Qd(e,t,["Please note showToast must be paired with hideToast"]),!1),Zd().add(xd,Qd(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),Zd().add(Ud,Qd(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),Zd().add(Pd,Qd(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),Zd().add(wd,Qd(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),op=Ye((()=>{const e="uni.showLoading.",t=["unpaired"];Zd().add(Gd,Qd(e,t,["Please note showLoading must be paired with hideLoading"]),!1),Zd().add(xd,Qd(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),Zd().add(Ud,Qd(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),Zd().add(Pd,Qd(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),Zd().add(wd,Qd(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),ip=Ye((()=>{const e="uni.showModal.",t=["cancel","confirm"];Zd().add(Gd,Qd(e,t,["Cancel","OK"]),!1),Zd().add(xd,Qd(e,t,["Cancelar","OK"]),!1),Zd().add(Ud,Qd(e,t,["Annuler","OK"]),!1),Zd().add(Pd,Qd(e,t,["取消","确定"]),!1),Zd().add(wd,Qd(e,t,["取消","確定"]),!1)})),sp=Ye((()=>{const e="uni.chooseFile.",t=["notUserActivation"];Zd().add(Gd,Qd(e,t,["File chooser dialog can only be shown with a user activation"]),!1),Zd().add(xd,Qd(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),Zd().add(Ud,Qd(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),Zd().add(Pd,Qd(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),Zd().add(wd,Qd(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),ap=Ye((()=>{const e="uni.setClipboardData.",t=["success","fail"];Zd().add(Gd,Qd(e,t,["Content copied","Copy failed, please copy manually"]),!1),Zd().add(xd,Qd(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),Zd().add(Ud,Qd(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),Zd().add(Pd,Qd(e,t,["内容已复制","复制失败,请手动复制"]),!1),Zd().add(wd,Qd(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),rp=Ye((()=>{const e="uni.picker.",t=["done","cancel"];Zd().add(Gd,Qd(e,t,["Done","Cancel"]),!1),Zd().add(xd,Qd(e,t,["OK","Cancelar"]),!1),Zd().add(Ud,Qd(e,t,["OK","Annuler"]),!1),Zd().add(Pd,Qd(e,t,["完成","取消"]),!1),Zd().add(wd,Qd(e,t,["完成","取消"]),!1)})),cp=Ye((()=>{const e="uni.video.",t=["danmu","volume"];Zd().add(Gd,Qd(e,t,["Danmu","Volume"]),!1),Zd().add(xd,Qd(e,t,["Danmu","Volumen"]),!1),Zd().add(Ud,Qd(e,t,["Danmu","Le Volume"]),!1),Zd().add(Pd,Qd(e,t,["弹幕","音量"]),!1),Zd().add(wd,Qd(e,t,["彈幕","音量"]),!1)}));function up(e){const t=new _t;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,i=!1){t[i?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,i){t.emit(`${e}.${n}`,o,i)}}}const lp="invokeViewApi",dp="invokeServiceApi";let pp=1;const hp=Object.create(null);function fp(e,t){return e+"."+t}function gp(e,t,n){t=fp(e,t),hp[t]||(hp[t]=n)}function _p({id:e,name:t,args:n},o){t=fp(o,t);const i=t=>{e&&sT.publishHandler(lp+"."+e,t)},s=hp[t];s?s(n,i):i({})}const mp=u(up("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:i}=sT,s=n?pp++:0;n&&o(dp+"."+s,n,!0),i(dp,{id:s,name:e,args:t})}}),vp=ot(!0);let yp;function Ip(){yp&&(clearTimeout(yp),yp=null)}let Mp=0,Cp=0;function Tp(e){if(Ip(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Mp=t,Cp=n,yp=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 Sp(e){if(!yp)return;if(1!==e.touches.length)return Ip();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Mp)>10||Math.abs(n-Cp)>10?Ip():void 0}function Ep(e,t){const n=Number(e);return isNaN(n)?t:n}function Dp(){const e=__uniConfig.globalStyle||{},t=Ep(e.rpxCalcMaxDeviceWidth,960),n=Ep(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function kp(){Dp(),Qe(),window.addEventListener("touchstart",Tp,vp),window.addEventListener("touchmove",Sp,vp),window.addEventListener("touchend",Ip,vp),window.addEventListener("touchcancel",Ip,vp)}function Lp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bp,Ap,Rp=["top","left","right","bottom"],Op={};function Np(){return Ap="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 Pp(){if(Ap="string"==typeof Ap?Ap:Np()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(aL){}var o=document.createElement("div");i(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Rp.forEach((function(e){a(o,e)})),document.body.appendChild(o),s(),bp=!0}else Rp.forEach((function(e){Op[e]=0}));function i(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function s(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),r=document.createElement("div"),c=document.createElement("div"),u={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Ap+"(safe-area-inset-"+n+")"};i(o,u),i(a,u),i(r,{transition:"0s",animation:"none",width:"400px",height:"400px"}),i(c,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(r),a.appendChild(c),e.appendChild(o),e.appendChild(a),s((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,i=a.scrollTop;function s(){this.scrollTop!==(this===o?e:i)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,i=a.scrollTop,function(e){Gp.length||setTimeout((function(){var e={};Gp.forEach((function(t){e[t]=Op[t]})),Gp.length=0,Up.forEach((function(t){t(e)}))}),0);Gp.push(e)}(n))}o.addEventListener("scroll",s,t),a.addEventListener("scroll",s,t)}));var l=getComputedStyle(o);Object.defineProperty(Op,n,{configurable:!0,get:function(){return parseFloat(l.paddingBottom)}})}}function wp(e){return bp||Pp(),Op[e]}var Gp=[];var Up=[];const xp=Lp({get support(){return 0!=("string"==typeof Ap?Ap:Np()).length},get top(){return wp("top")},get left(){return wp("left")},get right(){return wp("right")},get bottom(){return wp("bottom")},onChange:function(e){Np()&&(bp||Pp(),"function"==typeof e&&Up.push(e))},offChange:function(e){var t=Up.indexOf(e);t>=0&&Up.splice(t,1)}}),Fp=Pu((()=>{}),["prevent"]),qp=Pu((e=>{}),["stop"]);function Vp(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function Bp(){const e=Vp(document.documentElement.style,"--window-top");return e?e+xp.top:0}function Hp(){const e=document.documentElement.style,t=Bp(),n=Vp(e,"--window-bottom"),o=Vp(e,"--window-left"),i=Vp(e,"--window-right"),s=Vp(e,"--top-window-height");return{top:t,bottom:n?n+xp.bottom:0,left:o?o+xp.left:0,right:i?i+xp.right:0,topWindowHeight:s||0}}function Kp(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function jp(e){return Kp(e)}function $p(e){return Symbol(e)}function Wp(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function Yp(e,t=!1){if(t)return function(e){if(!Wp(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>ag(parseFloat(t))+"px"))}(e);if(v(e)){const t=parseInt(e)||0;return Wp(e)?ag(t):t}return e}const zp="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",Xp="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",Jp="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 Zp(e,t="#000",n=27){return dr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[dr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function Qp(){{const{$pageInstance:e}=Dr();return e&&e.proxy.$page.id}}function eh(e){const t=xe(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function th(){const e=xy(),t=e.length;if(t)return e[t-1]}function nh(){const e=th();if(e)return e.$page.meta}function oh(){const e=nh();return e?e.id:-1}function ih(){const e=th();if(e)return e.$vm}const sh=["navigationBar","pullToRefresh"];function ah(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=u({id:t},n,e);sh.forEach((t=>{o[t]=u({},n[t],e[t])}));const{navigationBar:i}=o;return i.titleText&&i.titleImage&&(i.titleText=""),o}function rh(e,t,n){if(v(e))n=t,t=e,e=ih();else if("number"==typeof e){const t=xy().find((t=>t.$page.id===e));e=t?t.$vm:ih()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,s=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-lh)>n;return!s||i&&!a?(!s&&i&&(i=!1),!1):(lh=e,i=!0,!0)})())return t&&t(),s=!1,setTimeout((function(){s=!0}),350),!0}e&&e(window.pageYOffset),t&&s&&(a()||(uh=setTimeout(a,300))),o=!1};return function(){clearTimeout(uh),o||requestAnimationFrame(a),o=!0}}function ph(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return ph(e,t.slice(2));const n=t.split("/"),o=n.length;let i=0;for(;i0?e.split("/"):[];return s.splice(s.length-i-1,i+1),je(s.concat(n).join("/"))}function hh(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class fh{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(qe(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&qe(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=vh(this.$el.querySelector(e));return t?gh(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];m(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&sT.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 gh(e,t=!0){if(t&&e&&(e=Fe(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new fh(e)),e.$el.__wxsComponentDescriptor}function _h(e,t){return gh(e,t)}function mh(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>_h(n.proxy,!1)}));const i=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=Fe(t);if(!o)return!1;const i=o.$.type;return!(!i.$wxs&&!i.$renderjs)&&o}(t,n,o);if(i)return[e,_h(i,!1)]}}function vh(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function yh(e,t=!1){const{type:n,timeStamp:o,target:i,currentTarget:s}=e;let a,r;a=it(t?i:function(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}(i)),r=it(s);const c={type:n,timeStamp:o,target:a,detail:{},currentTarget:r};return e._stopped&&(c._stopped=!0),e.type.startsWith("touch")&&(c.touches=e.touches,c.changedTouches=e.changedTouches),function(e,t){u(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(c,e),c}function Ih(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Mh(e,t){const n=[];for(let o=0;o0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=Bp();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Ih(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=Bp();s.touches=Mh(e.touches,t),s.changedTouches=Mh(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 mh(s,t,n)||[s]},createNativeEvent:yh},Symbol.toStringTag,{value:"Module"});function Th(e){!function(e){const t=e.globalProperties;u(t,Ch),t.$gcd=_h}(e._context.config)}let Sh=1;function Eh(e){return(e||oh())+"."+lp}const Dh=u(up("view"),{invokeOnCallback:(e,t)=>aT.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:i,publishHandler:s}=aT,a=o?Sh++:0;o&&i(lp+"."+a,o,!0),s(Eh(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:i,unsubscribe:s,publishHandler:a}=aT,r=Sh++,c=lp+"."+r;return i(c,n),a(Eh(o),{id:r,name:e,args:t},o),()=>{s(c)}}});function kh(e){rh(th(),Me,e),aT.invokeOnCallback("onWindowResize",e)}function Lh(e){const t=th();rh(lI(),le,e),rh(t,le)}function bh(){rh(lI(),de),rh(th(),de)}const Ah=[Te,Ee];function Rh(){Ah.forEach((e=>aT.subscribe(e,function(e){return(t,n)=>{rh(parseInt(n),e,t)}}(e))))}function Oh(){!function(){const{on:e}=aT;e(Me,kh),e(we,Lh),e(Ge,bh)}(),Rh()}function Nh(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new lt(this.$page.id)),e.eventChannel}}function Ph(e){e._context.config.globalProperties.getOpenerEventChannel=Nh}function wh(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function Gh(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${ag(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function Uh(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,i=t.actions.length;function s(){const t=o[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"],o=["opacity","background-color"],i=["width","height","left","right","top","bottom"],s=e.animates,a=e.option,r=a.transition,c={},u=[];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(Gh)),n.indexOf(s)>=0&&(a.length=1),u.push(`${s}(${a.join(",")})`);else if(o.concat(i).includes(a[0])){s=a[0];const e=a[1];c[s]=i.includes(s)?Gh(e):e}})),c.transform=c.webkitTransform=u.join(" "),c.transition=c.webkitTransition=Object.keys(c).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(","),c.transformOrigin=c.webkitTransformOrigin=a.transformOrigin,c}(t);Object.keys(r).forEach((t=>{e.$el.style[t]=r[t]})),n+=1,n{s()}),0)}const xh={props:["animation"],watch:{animation:{deep:!0,handler(){Uh(this)}}},mounted(){Uh(this)}},Fh=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(xh),qh(e)},qh=e=>(e.__reserved=!0,e.compatConfig={MODE:3},ji(e));function Vh(e){return e.__wwe=!0,e}function Bh(e,t){return(n,o,i)=>{e.value&&t(n,function(e,t,n,o){let i;return i=it(n),{type:o.type||e,timeStamp:t.timeStamp||0,target:i,currentTarget:i,detail:o}}(n,o,e.value,i||{}))}}const Hh={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function Kh(e){const t=Zn(!1);let n,o,i=!1;function s(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),i=!0,n=setTimeout((()=>{t.value=!0,i||s()}),parseInt(e.hoverStartTime)))}function r(){i=!1,t.value&&s()}function c(){r(),window.removeEventListener("mouseup",c)}return{hovering:t,binding:{onTouchstartPassive:Vh((function(e){e.touches.length>1||a(e)})),onMousedown:Vh((function(e){i||(a(e),window.addEventListener("mouseup",c))})),onTouchend:Vh((function(){r()})),onMouseup:Vh((function(){i&&c()})),onTouchcancel:Vh((function(){i=!1,t.value=!1,clearTimeout(n)}))}}}function jh(e,t){return v(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}const $h=$p("uf"),Wh=Fh({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=Zn(null);return function(e){const t=[];ua($h,{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,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(Bh(o,n)),()=>dr("uni-form",{ref:o},[dr("span",null,[t.default&&t.default()])],512)}});const Yh={for:{type:String,default:""}},zh=$p("ul");const Xh=Fh({name:"Label",props:Yh,setup(e,{slots:t}){const n=Zn(null),o=Qp(),i=function(){const e=[];return ua(zh,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),s=Hr((()=>e.for||t.default&&t.default.length)),a=Vh((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?sT.emit("uni-label-click-"+o+"-"+e.for,t,!0):i.length&&i[0](t,!0))}));return()=>dr("uni-label",{ref:n,class:{"uni-label-pointer":s},onClick:a},[t.default&&t.default()],10,["onClick"])}});function Jh(e,t){Zh(e.id,t),Di((()=>e.id),((e,n)=>{Qh(n,t,!0),Zh(e,t,!0)})),ms((()=>{Qh(e.id,t)}))}function Zh(e,t,n){const o=Qp();n&&!e||S(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&sT.on(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?sT.on(i,t[i]):e&&sT.on(`uni-${i}-${o}-${e}`,t[i])}))}function Qh(e,t,n){const o=Qp();n&&!e||S(t)&&Object.keys(t).forEach((i=>{n?0!==i.indexOf("@")&&0!==i.indexOf("uni-")&&sT.off(`uni-${i}-${o}-${e}`,t[i]):0===i.indexOf("uni-")?sT.off(i,t[i]):e&&sT.off(`uni-${i}-${o}-${e}`,t[i])}))}const ef=Fh({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=Zn(null),o=la($h,!1),{hovering:i,binding:s}=Kh(e),a=Vh(((t,i)=>{if(e.disabled)return t.stopImmediatePropagation();i&&n.value.click();const s=e.formType;if(s){if(!o)return;"submit"===s?o.submit(t):"reset"===s&&o.reset(t)}else;})),r=la(zh,!1);return r&&(r.addHandler(a),_s((()=>{r.removeHandler(a)}))),Jh(e,{"label-click":a}),()=>{const o=e.hoverClass,r=jh(e,"disabled"),c=jh(e,"loading"),u=jh(e,"plain"),l=o&&"none"!==o;return dr("uni-button",Ir({ref:n,onClick:a,id:e.id,class:l&&i.value?o:""},l&&s,r,c,u),[t.default&&t.default()],16,["onClick","id"])}}});function tf(e){return e.$el}function nf(e){const{base:t}=__uniConfig.router;return 0===je(e).indexOf(t)?je(e):t+e}function of(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0!==e.indexOf("./")||!e.includes("/static/")&&0!==e.indexOf("./"+(n||"assets")+"/")||(e=e.slice(1))),0===e.indexOf("/")){if(0!==e.indexOf("//"))return nf(e.slice(1));e="https:"+e}if(ce.test(e)||ue.test(e)||0===e.indexOf("blob:"))return e;const o=xy();return o.length?nf(ph(o[o.length-1].$page.route,e).slice(1)):e}const sf=navigator.userAgent,af=/android/i.test(sf),rf=/iphone|ipad|ipod/i.test(sf),cf=sf.match(/Windows NT ([\d|\d.\d]*)/i),uf=/Macintosh|Mac/i.test(sf),lf=/Linux|X11/i.test(sf),df=uf&&navigator.maxTouchPoints>0;function pf(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function hf(e){return e&&90===Math.abs(window.orientation)}function ff(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function gf(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function _f(e,t,n,o){aT.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function mf(e,t){const n={},{top:o,topWindowHeight:i}=Hp();if(t.node){const t=e.tagName.replace("uni-","");t&&(n.node=e.querySelector(t))}if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=et(e)),t.rect||t.size){const s=e.getBoundingClientRect();t.rect&&(n.left=s.left,n.right=s.right,n.top=s.top-o-i,n.bottom=s.bottom-o-i),t.size&&(n.width=s.width,n.height=s.height)}if(h(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(h(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function vf(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 yf(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:i,fields:s})=>{null===t?o.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)):o.push(function(e,t,n,o,i){const s=function(e,t){return e?e.$el:t.$el}(t,e),a=s.parentElement;if(!a)return o?null:[];const{nodeType:r}=s,c=3===r||8===r;if(o){const e=c?a.querySelector(n):vf(s,n)?s:s.querySelector(n);return e?mf(e,i):null}{let e=[];const t=(c?a:s).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(mf(t,i))})),!c&&vf(s,n)&&e.unshift(mf(s,i)),e}}(e,t,n,i,s))})),n(o)}const If=["original","compressed"],Mf=["album","camera"],Cf=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Tf(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Sf(e,t){return!h(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Ef(e){return function(){try{return e.apply(e,arguments)}catch(aL){console.error(aL)}}}let Df=1;const kf={};function Lf(e,t,n){if("number"==typeof e){const o=kf[e];if(o)return o.keepAlive||delete kf[e],o.callback(t,n)}return t}const bf="success",Af="fail",Rf="complete";function Of(e,t={},{beforeAll:n,beforeSuccess:o}={}){S(t)||(t={});const{success:i,fail:s,complete:a}=function(e){const t={};for(const n in e){const o=e[n];m(o)&&(t[n]=Ef(o),delete e[n])}return t}(t),r=m(i),c=m(s),u=m(a),l=Df++;return function(e,t,n,o=!1){kf[e]={name:t,keepAlive:o,callback:n}}(l,e,(l=>{(l=l||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(l.errMsg,e),m(n)&&n(l),l.errMsg===e+":ok"?(m(o)&&o(l,t),r&&i(l)):c&&s(l),u&&a(l)})),l}const Nf="success",Pf="fail",wf="complete",Gf={},Uf={};function xf(e,t){return function(n){return e(n,t)||n}}function Ff(e,t,n){let o=!1;for(let i=0;ie(t),catch(){}}}function qf(e,t={}){return[Nf,Pf,wf].forEach((n=>{const o=e[n];if(!h(o))return;const i=t[n];t[n]=function(e){Ff(o,e,t).then((e=>m(i)&&i(e)||e))}})),t}function Vf(e,t){const n=[];h(Gf.returnValue)&&n.push(...Gf.returnValue);const o=Uf[e];return o&&h(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function Bf(e){const t=Object.create(null);Object.keys(Gf).forEach((e=>{"returnValue"!==e&&(t[e]=Gf[e].slice())}));const n=Uf[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function Hf(e,t,n,o){const i=Bf(e);if(i&&Object.keys(i).length){if(h(i.invoke)){return Ff(i.invoke,n).then((n=>t(qf(Bf(e),n),...o)))}return t(qf(i,n),...o)}return t(n,...o)}function Kf(e,t){return(n={},...o)=>function(e){return!(!S(e)||![bf,Af,Rf].find((t=>m(e[t]))))}(n)?Vf(e,Hf(e,t,n,o)):Vf(e,new Promise(((i,s)=>{Hf(e,t,u(n,{success:i,fail:s}),o)})))}function jf(e,t,n,o={}){const i=t+":fail"+(n?" "+n:"");return delete o.errCode,Lf(e,u({errMsg:i},o))}function $f(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(v(e))return e}const i=function(e,t){const n=e[0];if(!t||!t.formatArgs||!S(t.formatArgs)&&S(n))return;const o=t.formatArgs,i=Object.keys(o);for(let s=0;s{const i=Of(e,n,o),s=$f(0,[n],0,o);return s?jf(i,e,s):t(n,{resolve:t=>function(e,t,n){return Lf(e,u(n||{},{errMsg:t+":ok"}))}(i,e,t),reject:(t,n)=>jf(i,e,function(e){return!e||v(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function Yf(e,t,n,o){return Kf(e,Wf(e,t,0,o))}function zf(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=$f(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function Xf(e,t,n,o){return Kf(e,function(e,t,n,o){return Wf(e,t,0,o)}(e,t,0,o))}function Jf(e){return(t,{reject:n})=>n(function(e){return`method 'uni.${e}' not supported`}(e))}let Zf=!1,Qf=0,eg=0,tg=960,ng=375,og=750;function ig(){const{platform:e,pixelRatio:t,windowWidth:n}=function(){const e=pf(),t=gf(ff(e,hf(e)));return{platform:rf?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}();Qf=n,eg=t,Zf="ios"===e}function sg(e,t){const n=Number(e);return isNaN(n)?t:n}const ag=zf(0,((e,t)=>{if(0===Qf&&(ig(),function(){const e=__uniConfig.globalStyle||{};tg=sg(e.rpxCalcMaxDeviceWidth,960),ng=sg(e.rpxCalcBaseDeviceWidth,375),og=sg(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Qf;n=e===og||n<=tg?n:ng;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==eg&&Zf?.5:1),e<0?-o:o}));function rg(e,t){Object.keys(t).forEach((n=>{m(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):h(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n{v(e)&&S(t)?rg(Uf[e]||(Uf[e]={}),t):S(e)&&rg(Gf,e)})),ug=new _t,lg=zf(0,((e,t)=>(ug.on(e,t),()=>ug.off(e,t)))),dg=zf(0,((e,t)=>{e?(h(e)||(e=[e]),e.forEach((e=>ug.off(e,t)))):ug.e={}})),pg=zf(0,((e,...t)=>{ug.emit(e,...t)})),hg=[.5,.8,1,1.25,1.5,2];class fg{constructor(e,t){this.id=e,this.pageId=t}play(){_f(this.id,this.pageId,"play")}pause(){_f(this.id,this.pageId,"pause")}stop(){_f(this.id,this.pageId,"stop")}seek(e){_f(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){_f(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~hg.indexOf(e)||(e=1),_f(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){_f(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){_f(this.id,this.pageId,"exitFullScreen")}showStatusBar(){_f(this.id,this.pageId,"showStatusBar")}hideStatusBar(){_f(this.id,this.pageId,"hideStatusBar")}}const gg=zf(0,((e,t)=>new fg(e,eh(t||ih())))),_g=(e,t,n,o)=>{!function(e,t,n,o,i){aT.invokeViewMethod("map."+e,{type:n,data:o},t,i)}(e,t,n,o,(e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)}))};const mg={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 vg(e){let t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(p(mg,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(mg[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),i=parseInt(t[1].slice(4,6),16);let s=parseInt(t[1].slice(6,8),16);return s=s>=0?s:255,[e,o,i,s]}return console.error("unsupported color:"+e),[0,0,0,255]}class yg{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,vg(t)])}}class Ig{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class Mg{constructor(e){this.width=e}}const Cg=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],Tg=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],Sg={thresholds:[0],initialRatio:0,observeAll:!1},Eg=["top","right","bottom","left"];let Dg=1;function kg(e={}){return Eg.map((t=>`${Number(e[t])||0}px`)).join(" ")}class Lg{constructor(e,t){this._pageId=eh(e),this._component=e,this._options=u({},Sg,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=kg(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=kg(e),this}observe(e,t){m(t)&&(this._options.selector=e,this._reqId=Dg++,function({reqId:e,component:t,options:n,callback:o}){const i=tf(t);(i.__io||(i.__io={}))[e]=function(e,t,n){x_();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,i=new IntersectionObserver((e=>{e.forEach((e=>{n({intersectionRatio:q_(e),intersectionRect:F_(e.intersectionRect),boundingClientRect:F_(e.boundingClientRect),relativeRect:F_(e.rootBounds),time:Date.now(),dataset:et(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){i.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e((e=xe(e))&&!eh(e)&&(t=e,e=null),new Lg(e||ih(),t))));let Ag=0,Rg={};const Og={canvas:class{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}setFillStyle(e){console.log("initCanvasContextProperty implemented.")}setStrokeStyle(e){console.log("initCanvasContextProperty implemented.")}setShadow(e,t,n,o){console.log("initCanvasContextProperty implemented.")}addColorStop(e,t){console.log("initCanvasContextProperty implemented.")}setLineWidth(e){console.log("initCanvasContextProperty implemented.")}setLineCap(e){console.log("initCanvasContextProperty implemented.")}setLineJoin(e){console.log("initCanvasContextProperty implemented.")}setLineDash(e,t){console.log("initCanvasContextProperty implemented.")}setMiterLimit(e){console.log("initCanvasContextProperty implemented.")}fillRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}strokeRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}clearRect(e,t,n,o){console.log("initCanvasContextProperty implemented.")}fill(){console.log("initCanvasContextProperty implemented.")}stroke(){console.log("initCanvasContextProperty implemented.")}scale(e,t){console.log("initCanvasContextProperty implemented.")}rotate(e){console.log("initCanvasContextProperty implemented.")}translate(e,t){console.log("initCanvasContextProperty implemented.")}setFontSize(e){console.log("initCanvasContextProperty implemented.")}fillText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTextAlign(e){console.log("initCanvasContextProperty implemented.")}setTextBaseline(e){console.log("initCanvasContextProperty implemented.")}drawImage(e,t,n,o,i,s,a,r,c){console.log("initCanvasContextProperty implemented.")}setGlobalAlpha(e){console.log("initCanvasContextProperty implemented.")}strokeText(e,t,n,o){console.log("initCanvasContextProperty implemented.")}setTransform(e,t,n,o,i,s){console.log("initCanvasContextProperty implemented.")}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],function(e,t,n,o,i){aT.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{i&&i(e)}))}(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new yg("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new yg("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 Ig(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e,t){let n=0;return n=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new Mg(n)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,i,s){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,i,s]}),this.subpath.push([i,s])}arc(e,t,n,o,i,s=!1){this.path.push({method:"arc",data:[e,t,n,o,i,s]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,i){this.path.push({method:"arcTo",data:[e,t,n,o,i]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),i=parseFloat(n[3]),s=n[7],a=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&r()})),1===o.length&&r(),o=a.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=i,this.state.fontFamily=s,this.actions.push({method:"setFont",data:[`${o} ${i}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]})}},map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){_g(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){_g(this.id,this.pageId,"moveToLocation",e)}getScale(e){_g(this.id,this.pageId,"getScale",e)}getRegion(e){_g(this.id,this.pageId,"getRegion",e)}includePoints(e){_g(this.id,this.pageId,"includePoints",e)}translateMarker(e){_g(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){_g(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){_g(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){_g(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){_g(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){_g(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){_g(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){_g(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){_g(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){_g(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){_g(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){_g(this.id,this.pageId,"openMapApp",e)}on(e,t){_g(this.id,this.pageId,"on",{name:e,callback:t})}},video:fg,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const i={options:o},s=o&&("success"in o||"fail"in o||"complete"in o);if(s){const e=String(Ag++);i.callbackId=e,Rg[e]=o}aT.invokeViewMethod(`editor.${e}`,{type:n,data:i},t,(({callbackId:e,data:t})=>{s&&(Je(Rg[e],t),delete Rg[e])}))}(this.id,this.pageId,e,t)}}};function Ng(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,i=Og[n];e.context=new i(t,o),delete e.contextInfo}}class Pg{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery._push(this._selector,this._component,this._single,{node:!0},e),this._selectorQuery}}class wg{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return yf(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{h(e)?e.forEach(Ng):Ng(e);const o=n[t];m(o)&&o.call(this,e)})),m(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=xe(e),this}select(e){return this._nodesRef=new Pg(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new Pg(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new Pg(this,null,"",!0)}_push(e,t,n,o,i){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(i)}}const Gg=zf(0,(e=>((e=xe(e))&&!eh(e)&&(e=null),new wg(e||ih())))),Ug={formatArgs:{}},xg={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Fg{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=u({},xg,e)}_getOption(e){const t={transition:u({},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 qg=Ye((()=>{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=>{Fg.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),Vg=zf(0,(e=>(qg(),new Fg(e))),0,Ug),Bg=zf(0,(()=>{const e=lI();return e&&e.$vm?e.$vm.$locale:Zd().getLocale()})),Hg={[ge]:[],[fe]:[],[pe]:[],[le]:[],[de]:[]};const Kg=zf(0,(()=>u({},$_)));let jg,$g,Wg;const Yg=[];const zg=Xf("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===Wg&&(Wg=!1,jg="",$g="uniPush is not enabled"),Yg.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==jg&&(e=jg,o=$g,Yg.forEach((t=>{t(e,o)})),Yg.length=0)}))})),Xg=e=>{},Jg=e=>{},Zg={formatArgs:{showToast:!0},beforeInvoke(){ap()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=Zd(),o=n("uni.setClipboardData.success");o&&iC({title:o,icon:"success",mask:!1})}},Qg=(Boolean,{formatArgs:{filePath(e,t){t.filePath=of(e)}}}),e_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Sf(e,If)},sourceType(e,t){t.sourceType=Sf(e,Mf)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},t_={formatArgs:{sourceType(e,t){t.sourceType=Sf(e,Mf)},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=["*"])}}},n_=(Boolean,["all","image","video"]),o_={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Sf(e,Mf)},type(e,t){t.type=Tf(e,n_)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},i_={formatArgs:{src(e,t){t.src=of(e)}}},s_={formatArgs:{urls(e,t){t.urls=e.map((e=>v(e)&&e?of(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&ee)),a={};s.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const r in t)if(p(t,r)){let e=t[r];null==e?e="":S(e)&&(e=JSON.stringify(e)),a[c_(r)]=c_(e)}return i=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(i?"?"+i:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==Cf[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||a_).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===r_.indexOf(t.responseType)&&(t.responseType="text")}}},l_={formatArgs:{header(e,t){t.header=e||{}}}},d_={formatArgs:{filePath(e,t){e&&(t.filePath=of(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},p_={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=Tf((e||"").toUpperCase(),Cf)},protocols(e,t){v(e)&&(t.protocols=[e])}}};const h_={url:{type:String,required:!0}},f_="navigateTo",g_="redirectTo",__="reLaunch",m_="switchTab",v_="preloadPage",y_=(S_(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),S_(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),k_(f_)),I_=k_(g_),M_=k_(__),C_=k_(m_),T_={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(xy().length-1,e)}}};function S_(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 E_;function D_(){E_=""}function k_(e){return{formatArgs:{url:L_(e)},beforeAll:D_}}function L_(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=xy();return n.length&&(t=n[n.length-1].$page.route),ph(t,e)}(t)).split("?")[0],i=hh(o,!0);if(!i)return"page `"+t+"` is not found";if(e===f_||e===g_){if(i.meta.isTabBar)return`can not ${e} a tabbar page`}else if(e===m_&&!i.meta.isTabBar)return"can not switch to no-tabBar page";if(e!==m_&&e!==v_||!i.meta.isTabBar||"appLaunch"===n.openType||(t=o),i.meta.isEntry&&(t=t.replace(i.alias,"/")),n.url=function(e){if(!v(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),i=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(i))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if(e!==v_){if(E_===t&&"appLaunch"!==n.openType)return`${E_} locked`;__uniConfig.ready&&(E_=t)}else if(i.meta.isTabBar){const e=xy(),t=i.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const b_="setNavigationBarTitle",A_={formatArgs:{duration:300}},R_={formatArgs:{itemColor:"#000"}},O_=(Boolean,{formatArgs:{title:"",mask:!1}}),N_=(Boolean,{beforeInvoke(){ip()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!p(t,"cancelText")){const{t:e}=Zd();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!p(t,"confirmText")){const{t:e}=Zd();t.confirmText=e("uni.showModal.confirm")}},confirmColor:re}}),P_=["success","loading","none","error"],w_=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Tf(e,P_)},image(e,t){t.image=e?of(e):""},duration:1500,mask:!1}}),G_="stopPullDownRefresh",U_="hideTabBar",x_=function(){if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=function(){for(var e=window.document,t=i(e);t;)t=i(e=t.ownerDocument);return e}(),t=[],n=null,o=null;a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return n||(n=function(e,n){o=e&&n?d(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},a._resetCrossOriginUpdater=function(){n=null,o=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,s=null,a=null;this.POLL_INTERVAL?s=n.setInterval(o,this.POLL_INTERVAL):(r(n,"resize",o,!0),r(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(a=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(s&&e.clearInterval(s),c(e,"resize",o,!0)),c(t,"scroll",o,!0),a&&a.disconnect()}));var u=this.root&&(this.root.ownerDocument||this.root)||e;if(t!=u){var l=i(t);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&(this.root.ownerDocument||this.root)||e;if(!this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=o;){var s=i(n);if((n=s&&s.ownerDocument)==t)return!0}return!1}))){var s=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),s(),t!=o){var a=i(t);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t=0&&_>=0&&{top:c,bottom:l,left:p,right:f,width:g,height:_}||null),!m)break;v=v&&h(v)}return m}},a.prototype._getRootRect=function(){var t;if(this.root&&!f(this.root))t=u(this.root);else{var n=f(this.root)?this.root:e,o=n.documentElement,i=n.body;t={top:0,left:0,right:o.clientWidth||i.clientWidth,width:o.clientWidth||i.clientWidth,bottom:o.clientHeight||i.clientHeight,height:o.clientHeight||i.clientHeight}}return this._expandRectByRootMargin(t)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var i=0;i{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function H_(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const i=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],i,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||i}}return n}function K_(e){for(const n in V_)if(p(V_,n)){if(V_[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return V_[t]=e,t}function j_(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete V_[e]}const $_=wh(),W_=wh();const Y_=Fh({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=Zn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),i=function(e,t,n){const o=wn({width:-1,height:-1});return Di((()=>u({},o)),(e=>t("resize",e))),()=>{const t=e.value;t&&(o.width=t.offsetWidth,o.height=t.offsetHeight,n())}}(n,t,o);return function(e,t,n,o){ts(o),hs((()=>{t.initial&&Oo(n);const i=e.value;i.offsetParent!==i.parentElement&&(i.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,i,o),()=>dr("uni-resize-sensor",{ref:n,onAnimationstartOnce:i},[dr("div",{onScroll:i},[dr("div",null,null)],40,["onScroll"]),dr("div",{onScroll:i},[dr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const z_=$p("ucg"),X_=Fh({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=Zn(null);return function(e,t){const n=[],o=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);ua(z_,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:o()})}});const i=la($h,!1);i&&i.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}})}(e,Bh(o,t)),()=>dr("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});const J_=Fh({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""},foreColor:{type:String,default:""}},setup(e,{slots:t}){const n=Zn(null),o=Zn(e.checked),i=Hr((()=>"true"===o.value||!0===o.value)),s=Zn(e.value);const a=Hr((()=>function(t){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const n={};return t?(e.activeBorderColor&&(n.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(n.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(n.borderColor=e.borderColor),e.backgroundColor&&(n.backgroundColor=e.backgroundColor)),n}(i.value)));Di([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,s.value=t}));const{uniCheckGroup:r,uniLabel:c}=function(e,t,n){const o=Hr((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),i={reset:n},s=la(z_,!1);s&&s.addField(o);const a=la($h,!1);a&&a.addField(i);const r=la(zh,!1);return _s((()=>{s&&s.removeField(o),a&&a.removeField(i)})),{uniCheckGroup:s,uniForm:a,uniLabel:r}}(o,s,(()=>{o.value=!1})),u=t=>{e.disabled||(o.value=!o.value,r&&r.checkboxChange(t),t.stopPropagation())};return c&&(c.addHandler(u),_s((()=>{c.removeHandler(u)}))),Jh(e,{"label-click":u}),()=>{const i=jh(e,"disabled");let s;return s=o.value,dr("uni-checkbox",Ir(i,{id:e.id,onClick:u,ref:n}),[dr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[dr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:a.value},[s?Zp(zp,e.disabled?"#ADADAD":e.foreColor||e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});function Z_(){}const Q_={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 em(e,t,n){function o(e){const t=Hr((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Z_,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Z_,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Di((()=>t.value),(e=>e&&o(e)))}var tm=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,nm=/^<\/([-A-Za-z0-9_]+)[^>]*>/,om=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,im=lm("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),sm=lm("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),am=lm("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),rm=lm("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),cm=lm("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),um=lm("script,style");function lm(e){for(var t={},n=e.split(","),o=0;oe/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},hm={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"]},fm=Fh({name:"Image",props:dm,setup(e,{emit:t}){const n=Zn(null),o=function(e,t){const n=Zn(""),o=Hr((()=>{let e="auto",o="";const i=hm[t.mode];return i?(i[0]&&(o=i[0]),i[1]&&(e=i[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),i=wn({rootEl:e,src:Hr((()=>t.src?of(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return hs((()=>{const t=e.value;i.origWidth=t.clientWidth||0,i.origHeight=t.clientHeight||0})),i}(n,e),i=Bh(n,t),{fixSize:s}=function(e,t,n){const o=()=>{const{mode:o}=t,i=pm[o];if(!i)return;const{origWidth:s,origHeight:a}=n,r=s&&a?s/a:0;if(!r)return;const c=e.value,u=c[i[0]];u&&(c.style[i[1]]=function(e){gm&&e>10&&(e=2*Math.round(e/2));return e}(i[2](u,r))+"px")},i=()=>{const{style:t}=e.value,{origStyle:{width:o,height:i}}=n;t.width=o,t.height=i};return Di((()=>t.mode),((e,t)=>{pm[t]&&i(),pm[e]&&o()})),{fixSize:o,resetSize:i}}(n,e,o);return function(e,t,n,o,i){let s,a;const r=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},c=c=>{if(!c)return u(),void r();s=s||new Image,s.onload=e=>{const{width:l,height:d}=s;r(l,d,c),Oo((()=>{o()})),s.draggable=t.draggable,a&&a.remove(),a=s,n.value.appendChild(s),u(),i("load",e,{width:l,height:d})},s.onerror=t=>{r(),u(),i("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},s.src=c},u=()=>{s&&(s.onload=null,s.onerror=null,s=null)};Di((()=>e.src),(e=>c(e))),Di((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),hs((()=>c(e.src))),_s((()=>u()))}(o,e,n,s,i),()=>dr("uni-image",{ref:n},[dr("div",{style:o.modeStyle},null,4),pm[e.mode]?dr(Y_,{onResize:s},null,8,["onResize"]):dr("span",null,null)],512)}});const gm="Google Inc."===navigator.vendor;const _m=ot(!0),mm=[];let vm=0,ym=!1;const Im=e=>mm.forEach((t=>t.userAction=e));function Mm(e={userAction:!1}){if(!ym){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!vm&&Im(!0),vm++,setTimeout((()=>{! --vm&&Im(!1)}),0)}),_m)})),ym=!0}mm.push(e)}const Cm=()=>!!vm;function Tm(){const e=wn({userAction:!1});return hs((()=>{Mm(e)})),_s((()=>{!function(e){const t=mm.indexOf(e);t>=0&&mm.splice(t,1)}(e)})),{state:e}}function Sm(){const e=wn({attrs:{}});return hs((()=>{let t=Dr();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}function Em(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function Dm(e,t,n){"number"===t&&isNaN(Number(e))&&(e="");const o=null==e?"":String(e);return null==n?o:o.slice(0,n)}const km=["none","text","decimal","numeric","tel","search","email","url"],Lm=u({},{name:{type:String,default:""},modelValue:{type:[String,Number]},value:{type:[String,Number]},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~km.indexOf(e)},cursorColor:{type:String,default:""}},Q_),bm=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend","keyboardheightchange"];function Am(e,t,n,o){let i=null;i=ut((n=>{t.value=Dm(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout}),Di((()=>e.modelValue),i),Di((()=>e.value),i);const s=function(e,t){let n,o,i=0;const s=function(...s){const a=Date.now();clearTimeout(n),o=()=>{o=null,i=a,e.apply(this,s)},a-i{i.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return ps((()=>{i.cancel(),s.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{i.cancel(),s(e,t),n&&s.flush()}}}function Rm(e,t){Tm();const n=Hr((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Di((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),hs((()=>{n.value&&Oo(o)}))}function Om(e,t,n,o){gp(oh(),"getSelectedTextRange",Em);const{fieldRef:i,state:s,trigger:a}=function(e,t,n){const o=Zn(null),i=Bh(t,n),s=Hr((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=Hr((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),r=Hr((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),c=Hr((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t}));let u="";u=Dm(e.modelValue,e.type)||Dm(e.value,e.type);const l=wn({value:u,valueOrigin:u,maxlength:c,focus:e.focus,composing:!1,selectionStart:s,selectionEnd:a,cursor:r});return Di((()=>l.focus),(e=>n("update:focus",e))),Di((()=>l.maxlength),(e=>l.value=l.value.slice(0,e)),{immediate:!1}),{fieldRef:o,state:l,trigger:i}}(e,t,n),{triggerInput:r}=Am(e,s,n,a);Rm(e,i),em(0,i);const{state:c}=Sm();!function(e,t){const n=la($h,!1);if(!n)return;const o=Dr(),i={submit(){const n=o.proxy;return[n[e],v(t)?n[t]:t.value]},reset(){v(t)?o.proxy[t]="":t.value=""}};n.addField(i),_s((()=>{n.removeField(i)}))}("name",s),function(e,t,n,o,i,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 c(e){return"number"===e.type?null:e.selectionEnd}Di([()=>t.selectionStart,()=>t.selectionEnd],a),Di((()=>t.cursor),r),Di((()=>e.value),(function(){const u=e.value;if(!u)return;const l=function(e,o){e.stopPropagation(),m(s)&&!1===s(e,t)||(t.value=u.value,t.composing&&n.ignoreCompositionEvent||i(e,{value:u.value,cursor:c(u)},o))};function d(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}u.addEventListener("change",(e=>e.stopPropagation())),u.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),r()})),u.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,l(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:c(e.target)})})),u.addEventListener("input",l),u.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,d(e)})),u.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,l(e)),d(e)})),u.addEventListener("compositionupdate",d)}))}(i,s,e,a,r,o);return{fieldRef:i,state:s,scopedAttrsState:c,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}function Nm(e,t,n,o,i){if(t.value)if("."===e.data){if("."===t.value.slice(-1))return n.value=o.value=t.value=t.value.slice(0,-1),!1;if(t.value&&!t.value.includes("."))return t.value+=".",i&&(i.fn=()=>{n.value=o.value=t.value=t.value.slice(0,-1),o.removeEventListener("blur",i.fn)},o.addEventListener("blur",i.fn)),!1}else if("deleteContentBackward"===e.inputType&&navigator.userAgent.includes("iPhone OS 16")&&"."===t.value.slice(-2,-1))return t.value=n.value=o.value=t.value.slice(0,-2),!0}const Pm=Fh({name:"Input",props:u({},Lm,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...bm],setup(e,{emit:t,expose:n}){const o=["text","number","idcard","digit","password","tel"],i=["off","one-time-code"],s=Hr((()=>{let t="";switch(e.type){case"text":t="text","search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~o.includes(e.type)?e.type:"text"}return e.password?"password":t})),a=Hr((()=>{const t=i.indexOf(e.textContentType),n=i.indexOf(R(e.textContentType));return i[-1!==t?t:-1!==n?n:0]}));let r=function(e,t){if("number"===t.value){const t=void 0===e.modelValue?e.value:e.modelValue,n=Zn(null!=t?t.toLocaleString():"");return Di((()=>e.modelValue),(e=>{n.value=null!=e?e.toLocaleString():""})),Di((()=>e.value),(e=>{n.value=null!=e?e.toLocaleString():""})),n}return Zn("")}(e,s),c={fn:null};const u=Zn(null),{fieldRef:l,state:d,scopedAttrsState:p,fixDisabledColor:h,trigger:f}=Om(e,u,t,((e,t)=>{const n=e.target;if("number"===s.value){if(c.fn&&(n.removeEventListener("blur",c.fn),c.fn=null),n.validity&&!n.validity.valid){if((!r.value||!n.value)&&"-"===e.data||"-"===r.value[0]&&"deleteContentBackward"===e.inputType)return r.value="-",t.value="",c.fn=()=>{r.value=n.value=""},n.addEventListener("blur",c.fn),!1;const o=Nm(e,r,t,n,c);return"boolean"==typeof o?o:(r.value=t.value=n.value="-"===r.value?"":r.value,!1)}{const o=Nm(e,r,t,n,c);if("boolean"==typeof o)return o;r.value=n.value}const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));Di((()=>d.value),(t=>{"number"!==e.type||"-"===r.value&&""===t||(r.value=t.toString())}));const g=["number","digit"],_=Hr((()=>g.includes(e.type)?e.step:""));function m(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&&h?dr("input",{key:"disabled-input",ref:l,value:d.value,tabindex:"-1",readonly:!!e.disabled,type:s.value,maxlength:d.maxlength,step:_.value,class:"uni-input-input",style:e.cursorColor?{caretColor:e.cursorColor}:{},onFocus:e=>e.target.blur()},null,44,["value","readonly","type","maxlength","step","onFocus"]):dr("input",{key:"input",ref:l,value:d.value,onInput:e=>{d.value=e.target.value.toString()},disabled:!!e.disabled,type:s.value,maxlength:d.maxlength,step:_.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:m,inputmode:e.inputmode},null,44,["value","onInput","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]);return dr("uni-input",{ref:u},[dr("div",{class:"uni-input-wrapper"},[Ri(dr("div",Ir(p.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Lc,!(d.value.length||"-"===r.value||r.value.includes("."))]]),"search"===e.confirmType?dr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const wm=["class","style"],Gm=/^on[A-Z]+/,Um=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=Dr(),i=Qn({}),s=Qn({}),a=Qn({}),r=n.concat(wm);return o.attrs=wn(o.attrs),Ci((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(r.includes(n)?e.exclude[n]=o:Gm.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;i.value=e.attrs,s.value=e.listeners,a.value=e.exclude})),{$attrs:i,$listeners:s,$excludeAttrs:a}};function xm(e){const t=[];return h(e)&&e.forEach((e=>{ir(e)?e.type===ja?t.push(...xm(e.children)):t.push(e):h(e)&&t.push(...xm(e))})),t}const Fm=Fh({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Zn(null),o=Zn(!1);let{setContexts:i,events:s}=function(e,t){const n=Zn(0),o=Zn(0),i=wn({x:null,y:null}),s=Zn(null);let a=null,r=[];function c(t){t&&1!==t&&(e.scaleArea?r.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function u(e,n=r){let o=t.value;function i(e){for(let t=0;t{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(s.value=qm(t),i.x=t.x,i.y=t.y,!e.scaleArea){let e=u(n[0].target),t=u(n[1].target);a=e&&e===t?e:null}}})),d=Vh((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==i.x&&s.value&&s.value>0){c(qm(n)/s.value)}i.x=n.x,i.y=n.y}})),p=Vh((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(i.x=0,i.y=0,s.value=null,e.scaleArea?r.forEach((function(e){e._endScale()})):a&&a._endScale())}));function h(){f(),r.forEach((function(e,t){e.setParent()}))}function f(){let e=window.getComputedStyle(t.value),i=t.value.getBoundingClientRect();n.value=i.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=i.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return ua("movableAreaWidth",n),ua("movableAreaHeight",o),{setContexts(e){r=e},events:{_onTouchstart:l,_onTouchmove:d,_onTouchend:p,_resize:h}}}(e,n);const{$listeners:a,$attrs:r,$excludeAttrs:c}=Um(),u=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=u[e],n=s[`_${e}`];u[e]=t?[].concat(t,n):n})),hs((()=>{s._resize(),o.value=!0}));let l=[];const d=[];function p(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(jn(o))}i(e)}return ua("_isMounted",o),ua("movableAreaRootRef",n),ua("addMovableViewContext",(e=>{d.push(e),p()})),ua("removeMovableViewContext",(e=>{const t=d.indexOf(e);t>=0&&(d.splice(t,1),p())})),()=>{const e=t.default&&t.default();return l=xm(e),dr("uni-movable-area",Ir({ref:n},r.value,c.value,u),[dr(Y_,{onResize:s._resize},null,8,["onResize"]),l],16)}}});function qm(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Vm=function(e,t,n,o){e.addEventListener(t,(e=>{m(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Bm,Hm;function Km(e,t,n){_s((()=>{document.removeEventListener("mousemove",Bm),document.removeEventListener("mouseup",Hm)}));let o=0,i=0,s=0,a=0;const r=function(e,n,r,c){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:r,y:c,dx:r-o,dy:c-i,ddx:r-s,ddy:c-a,timeStamp:e.timeStamp}}))return!1};let c,u,l=null;Vm(e,"touchstart",(function(e){if(c=!0,1===e.touches.length&&!l)return l=e,o=s=e.touches[0].pageX,i=a=e.touches[0].pageY,r(e,"start",o,i)})),Vm(e,"mousedown",(function(e){if(u=!0,!c&&!l)return l=e,o=s=e.pageX,i=a=e.pageY,r(e,"start",o,i)})),Vm(e,"touchmove",(function(e){if(1===e.touches.length&&l){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=Bm=function(e){if(!c&&u&&l){const t=r(e,"move",e.pageX,e.pageY);return s=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",d),Vm(e,"touchend",(function(e){if(0===e.touches.length&&l)return c=!1,l=null,r(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const p=Hm=function(e){if(u=!1,!c&&l)return l=null,r(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",p),Vm(e,"touchcancel",(function(e){if(l){c=!1;const t=l;return l=null,r(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function jm(e,t,n){return e>t-n&&ethis._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&tthis._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&nthis._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Ym.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}},Ym.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}},Ym.prototype.dt=function(){return-this._x_v/this._x_a},Ym.prototype.done=function(){const e=jm(this.s().x,this._endPositionX)||jm(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Ym.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Ym.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},zm.prototype._solve=function(e,t){const n=this._c,o=this._m,i=this._k,s=n*n-4*o*i;if(0===s){const i=-n/(2*o),s=e,a=t/(i*e);return{x:function(e){return(s+a*e)*Math.pow(Math.E,i*e)},dx:function(e){const t=Math.pow(Math.E,i*e);return i*(s+a*e)*t+a*t}}}if(s>0){const i=(-n-Math.sqrt(s))/(2*o),a=(-n+Math.sqrt(s))/(2*o),r=(t-i*e)/(a-i),c=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,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*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,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*i*t+r*a*n}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),r=-n/2*o,c=e,u=(t-r*e)/a;return{x:function(e){return Math.pow(Math.E,r*e)*(c*Math.cos(a*e)+u*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,r*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(u*a*n-c*a*o)+r*t*(u*o+c*n)}}},zm.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},zm.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},zm.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!$m(t,.1)){t=t||0;let o=this._endPosition;this._solution&&($m(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),$m(t,.1)&&(t=0),$m(o,.1)&&(o=0),o+=this._endPosition),this._solution&&$m(o-e,.1)&&$m(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},zm.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},zm.prototype.done=function(e){return e||(e=(new Date).getTime()),jm(this.x(),this._endPosition,.1)&&$m(this.dx(),.1)},zm.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())},zm.prototype.springConstant=function(){return this._k},zm.prototype.damping=function(){return this._c},zm.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}]},Xm.prototype.setEnd=function(e,t,n,o){const i=(new Date).getTime();this._springX.setEnd(e,o,i),this._springY.setEnd(t,o,i),this._springScale.setEnd(n,o,i),this._startTime=i},Xm.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)}},Xm.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},Xm.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 Jm(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const Zm=Fh({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 o=Zn(null),i=Bh(o,n),{setParent:s}=function(e,t,n){const o=la("_isMounted",Zn(!1)),i=la("addMovableViewContext",(()=>{})),s=la("removeMovableViewContext",(()=>{}));let a,r,c=Zn(1),u=Zn(1),l=Zn(!1),d=Zn(0),p=Zn(0),h=null,f=null,g=!1,_=null,m=null;const v=new Wm,y=new Wm,I={historyX:[0,0],historyY:[0,0],historyT:[0,0]},M=Hr((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),C=new Ym(1,M.value);Di((()=>e.disabled),(()=>{j()}));const{_updateOldScale:T,_endScale:S,_setScale:E,scaleValueSync:D,_updateBoundary:k,_updateOffset:L,_updateWH:b,_scaleOffset:A,minX:R,minY:O,maxX:N,maxY:P,FAandSFACancel:w,_getLimitXY:G,_setTransform:U,_revise:x,dampingNumber:F,xMove:q,yMove:V,xSync:B,ySync:H,_STD:K}=function(e,t,n,o,i,s,a,r,c,u){const l=Hr((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),d=Hr((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),p=Zn(Number(e.scaleValue)||1);Di(p,(e=>{U(e)})),Di(l,(()=>{G()})),Di(d,(()=>{G()})),Di((()=>e.scaleValue),(e=>{p.value=Number(e)||0}));const{_updateBoundary:h,_updateOffset:f,_updateWH:g,_scaleOffset:_,minX:m,minY:v,maxX:y,maxY:I}=function(e,t,n){const o=la("movableAreaWidth",Zn(0)),i=la("movableAreaHeight",Zn(0)),s=la("movableAreaRootRef"),a={x:0,y:0},r={x:0,y:0},c=Zn(0),u=Zn(0),l=Zn(0),d=Zn(0),p=Zn(0),h=Zn(0);function f(){let e=0-a.x+r.x,t=o.value-c.value-a.x-r.x;l.value=Math.min(e,t),p.value=Math.max(e,t);let n=0-a.y+r.y,s=i.value-u.value-a.y-r.y;d.value=Math.min(n,s),h.value=Math.max(n,s)}function g(){a.x=tv(e.value,s.value),a.y=nv(e.value,s.value)}function _(o){o=o||t.value,o=n(o);let i=e.value.getBoundingClientRect();u.value=i.height/t.value,c.value=i.width/t.value;let s=u.value*o,a=c.value*o;r.x=(a-c.value)/2,r.y=(s-u.value)/2}return{_updateBoundary:f,_updateOffset:g,_updateWH:_,_scaleOffset:r,minX:l,minY:d,maxX:p,maxY:h}}(t,o,w),{FAandSFACancel:M,_getLimitXY:C,_animationTo:T,_setTransform:S,_revise:E,dampingNumber:D,xMove:k,yMove:L,xSync:b,ySync:A,_STD:R}=function(e,t,n,o,i,s,a,r,c,u,l,d,p,h){const f=Hr((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),g=Hr((()=>"all"===t.direction||"horizontal"===t.direction)),_=Hr((()=>"all"===t.direction||"vertical"===t.direction)),m=Zn(iv(t.x)),v=Zn(iv(t.y));Di((()=>t.x),(e=>{m.value=iv(e)})),Di((()=>t.y),(e=>{v.value=iv(e)})),Di(m,(e=>{E(e)})),Di(v,(e=>{D(e)}));const y=new Xm(1,9*Math.pow(f.value,2)/40,f.value);function I(e,t){let n=!1;return e>i.value?(e=i.value,n=!0):es.value?(t=s.value,n=!0):t1?"htouchmove":"vtouchmove"),q.value&&(n=t.detail.dx+a,I.historyX.shift(),I.historyX.push(n),V.value||null!==_||(_=Math.abs(t.detail.dx/t.detail.dy)<1)),V.value&&(o=t.detail.dy+r,I.historyY.shift(),I.historyY.push(o),q.value||null!==_||(_=Math.abs(t.detail.dy/t.detail.dx)<1)),I.historyT.shift(),I.historyT.push(t.detail.timeStamp),!_){t.preventDefault();let i="touch";nN.value&&(e.outOfBounds?(i="touch-out-of-bounds",n=N.value+v.x(n-N.value)):n=N.value),oP.value&&(e.outOfBounds?(i="touch-out-of-bounds",o=P.value+y.x(o-P.value)):o=P.value),ev((function(){U(n,o,c.value,i)}))}}}function W(){if(!l.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!_&&!x("out-of-bounds")&&e.inertia)){const e=1e3*(I.historyX[1]-I.historyX[0])/(I.historyT[1]-I.historyT[0]),t=1e3*(I.historyY[1]-I.historyY[0])/(I.historyT[1]-I.historyT[0]),n=d.value,o=p.value;C.setV(e,t),C.setS(n,o);const i=C.delta().x,s=C.delta().y;let a=i+n,r=s+o;aN.value&&(a=N.value,r=o+(N.value-n)*s/i),rP.value&&(r=P.value,a=n+(P.value-o)*i/s),C.setEnd(a,r),f=ov(C,(function(){let e=C.s(),t=e.x,n=e.y;U(t,n,c.value,"friction")}),(function(){f.cancel()}))}e.outOfBounds||e.inertia||w()}function Y(){if(!o.value)return;w();let t=e.scale?D.value:1;L(),b(t),k();let n=G(B.value+A.x,H.value+A.y),i=n.x,s=n.y;U(i,s,t,"",!0),T(t)}return hs((()=>{Km(n.value,(e=>{switch(e.detail.state){case"start":j();break;case"move":$(e);break;case"end":W()}})),Y(),C.reconfigure(1,M.value),K.reconfigure(1,9*Math.pow(F.value,2)/40,F.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:Y,_endScale:S,_setScale:E};i(e),ms((()=>{s(e)}))})),ms((()=>{w()})),{setParent:Y}}(e,i,o);return()=>dr("uni-movable-view",{ref:o},[dr(Y_,{onResize:s},null,8,["onResize"]),t.default&&t.default()],512)}});let Qm=!1;function ev(e){Qm||(Qm=!0,requestAnimationFrame((function(){e(),Qm=!1})))}function tv(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=tv(e.offsetParent,t):0}function nv(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=nv(e.offsetParent,t):0}function ov(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);let s=n.done();s||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),s&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function iv(e){return/\d+[ur]px$/i.test(e)?ag(parseFloat(e)):Number(e)||0}const sv=["navigate","redirect","switchTab","reLaunch","navigateBack"],av=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],rv=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],cv={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~sv.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||av.concat(rv).includes(e)},animationDuration:{type:[String,Number],default:300}};const uv=Fh({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:u({},cv,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=Zn(null),o=Dr(),i=o&&o.vnode.scopeId||"",{hovering:s,binding:a}=Kh(e),r=function(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error(" should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":GM({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":_y({url:e.url,exists:e.exists});break;case"switchTab":fy({url:e.url});break;case"reLaunch":yy({url:e.url});break;case"navigateBack":wM({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}(e);return()=>{const{hoverClass:c,url:u}=e,l=e.hoverClass&&"none"!==e.hoverClass,d=e.renderLink?dr("a",{class:"navigator-wrap",href:u,onClick:Fp,onMousedown:Fp},[t.default&&t.default()],40,["href","onClick","onMousedown"]):t.default&&t.default();return dr("uni-navigator",Ir({class:l&&s.value?c:"",ref:n},l&&a,o?o.attrs:{},{[i]:""},{onClick:r}),[d],16,["onClick"])}}});const lv=Fh({name:"PickerView",props:{value:{type:Array,default:()=>[],validator:function(e){return h(e)&&e.filter((e=>"number"==typeof e)).length===e.length}},indicatorStyle:{type:String,default:""},indicatorClass:{type:String,default:""},maskStyle:{type:String,default:""},maskClass:{type:String,default:""}},emits:["change","pickstart","pickend","update:value"],setup(e,{slots:t,emit:n}){const o=Zn(null),i=Zn(null),s=Bh(o,n),a=function(e){const t=wn([...e.value]),n=wn({value:t,height:34});return Di((()=>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=Zn(null);hs((()=>{const e=r.value;e&&(a.height=e.$el.offsetHeight)}));let c=Zn([]),u=Zn([]);function l(e){let t=u.value;t=t.filter((e=>e.type!==Wa));let n=t.indexOf(e);return-1!==n?n:c.value.indexOf(e)}return ua("getPickerViewColumn",(function(e){return Hr({get(){const t=l(e.vnode);return a.value[t]||0},set(t){const o=l(e.vnode);if(o<0)return;if(a.value[o]!==t){a.value[o]=t;const e=a.value.map((e=>e));n("update:value",e),s("change",{},{value:e})}}})})),ua("pickerViewProps",e),ua("pickerViewState",a),()=>{const e=t.default&&t.default();{const t=xm(e);c.value=t,Oo((()=>{u.value=t}))}return dr("uni-picker-view",{ref:o},[dr(Y_,{ref:r,onResize:({height:e})=>a.height=e},null,8,["onResize"]),dr("div",{ref:i,class:"uni-picker-view-wrapper"},[e],512)],512)}}});class dv{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 pv(e,t,n){return e>t-n&&e0){const i=(-n-Math.sqrt(s))/(2*o),a=(-n+Math.sqrt(s))/(2*o),r=(t-i*e)/(a-i),c=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,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*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,i*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),c*i*t+r*a*n}}}const a=Math.sqrt(4*o*i-n*n)/(2*o),r=-n/2*o,c=e,u=(t-r*e)/a;return{x:function(e){return Math.pow(Math.E,r*e)*(c*Math.cos(a*e)+u*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,r*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(u*a*n-c*a*o)+r*t*(u*o+c*n)}}}x(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0}dx(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0}setEnd(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!hv(t,.4)){t=t||0;let o=this._endPosition;this._solution&&(hv(t,.4)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),hv(t,.4)&&(t=0),hv(o,.4)&&(o=0),o+=this._endPosition),this._solution&&hv(o-e,.4)&&hv(t,.4)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}}snap(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}}done(e){return e||(e=(new Date).getTime()),pv(this.x(),this._endPosition,.4)&&hv(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 gv{constructor(e,t,n){this._extent=e,this._friction=t||new dv(.01),this._spring=n||new fv(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 _v{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 gv(this._extent,t.friction,t.spring),this._onTransitionEnd=this.onTransitionEnd.bind(this),this.updatePosition()}onTouchStart(){this._startPosition=this._position,this._lastChangePos=this._startPosition,this._startPosition>0?this._startPosition/=.5:this._startPosition<-this._extent&&(this._startPosition=(this._startPosition+this._extent)/.5-this._extent),this._animation&&(this._animation.cancel(),this._scrolling=!1),this.updatePosition()}onTouchMove(e,t){let n=this._startPosition;this._enableX?n+=e:this._enableY&&(n+=t),n>0?n*=.5:n<-this._extent&&(n=.5*(n+this._extent)-this._extent),this._position=n,this.updatePosition(),this.dispatchScroll()}onTouchEnd(e,t,n){if(this._enableSnap&&this._position>-this._extent&&this._position<0){if(this._enableY&&(Math.abs(t)this._itemSize/2?e-(this._itemSize-Math.abs(t)):e-t,o<=0&&o>=-this._extent&&this._scroll.setVelocityByEnd(o)}this._lastTime=Date.now(),this._lastDelay=0,this._scrolling=!0,this._lastChangePos=this._position,this._lastIdx=Math.floor(Math.abs(this._position/this._itemSize)),this._animation=function(e,t,n){const o={id:0,cancelled:!1};return function e(t,n,o,i){if(!t||!t.cancelled){o(n);const s=n.done();s||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,i))),s&&i&&i(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}(this._scroll,(()=>{const e=Date.now(),t=(e-this._scroll._startTime)/1e3,n=this._scroll.x(t);this._position=n,this.updatePosition();const o=this._scroll.dx(t);this._shouldDispatchScrollEvent&&e-this._lastTime>this._lastDelay&&(this.dispatchScroll(),this._lastDelay=Math.abs(2e3/o),this._lastTime=e)}),(()=>{this._enableSnap&&(o<=0&&o>=-this._extent&&(this._position=o,this.updatePosition()),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 o=0;const i=this._position;this._enableX?(o=this._element.childNodes.length?(t||this._element.offsetWidth)-this._element.parentElement.offsetWidth:0,this._scrollWidth=t):(o=this._element.childNodes.length?(t||this._element.offsetHeight)-this._element.parentElement.offsetHeight:0,this._scrollHeight=t),"number"==typeof e&&(this._position=-e),this._position<-o?this._position=-o:this._position>0&&(this._position=0),this._itemSize=n||this._itemSize,this.updatePosition(),i!==this._position&&(this.dispatchScroll(),m(this._options.onSnap)&&this._options.onSnap(Math.floor(Math.abs(this._position)/this._itemSize))),this._extent=o,this._scroll._extent=o}updatePosition(){let e="";this._enableX?e="translateX("+this._position+"px) translateZ(0)":this._enableY&&(e="translateY("+this._position+"px) translateZ(0)"),this._element.style.webkitTransform=e,this._element.style.transform=e}isScrolling(){return this._scrolling||this._snapping}}function mv(e,t){const n={trackingID:-1,maxDy:0,maxDx:0},o=new _v(e,t);function i(e){const t=e,o=e;return"move"===t.detail.state||"end"===t.detail.state?{x:t.detail.dx,y:t.detail.dy}:{x:o.screenX-n.x,y:o.screenY-n.y}}return{scroller:o,handleTouchStart:function(e){const t=e,i=e;"start"===t.detail.state?(n.trackingID="touch",n.x=t.detail.x,n.y=t.detail.y):(n.trackingID="mouse",n.x=i.screenX,n.y=i.screenY),n.maxDx=0,n.maxDy=0,n.historyX=[0],n.historyY=[0],n.historyTime=[t.detail.timeStamp||i.timeStamp],n.listener=o,o.onTouchStart&&o.onTouchStart(),("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault()},handleTouchMove:function(e){const t=e,o=e;if(-1!==n.trackingID){("boolean"!=typeof e.cancelable||e.cancelable)&&e.preventDefault();const s=i(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||o.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=i(e);if(t){const e=n.listener;n.trackingID=-1,n.listener=null;const o={x:0,y:0};if(n.historyTime.length>2)for(let t=n.historyTime.length-1,i=n.historyTime[t],s=n.historyX[t],a=n.historyY[t];t>0;){t--;const e=i-n.historyTime[t];if(e>30&&e<50){o.x=(s-n.historyX[t])/(e/1e3),o.y=(a-n.historyY[t])/(e/1e3);break}}n.historyTime=[],n.historyX=[],n.historyY=[],e&&e.onTouchEnd&&e.onTouchEnd(t.x,t.y,o)}}}}}const vv=Fh({name:"PickerViewColumn",setup(e,{slots:t,emit:n}){const o=Zn(null),i=Zn(null),s=la("getPickerViewColumn"),a=Dr(),r=s?s(a):Zn(0),c=la("pickerViewProps"),u=la("pickerViewState"),l=Zn(34),d=Zn(null);hs((()=>{const e=d.value;l.value=e.$el.offsetHeight}));const p=Hr((()=>(u.height-l.value)/2)),{state:h}=Sm();let f;const g=wn({current:r.value,length:0});let _;function m(){f&&!_&&(_=!0,Oo((()=>{_=!1;let e=Math.min(g.current,g.length-1);e=Math.max(e,0),f.update(e*l.value,void 0,l.value)})))}Di((()=>r.value),(e=>{e!==g.current&&(g.current=e,m())})),Di((()=>g.current),(e=>r.value=e)),Di([()=>l.value,()=>g.length,()=>u.height],m);let v=0;function y(e){const t=v+e.deltaY;if(Math.abs(t)>10){v=0;let e=Math.min(g.current+(t<0?-1:1),g.length-1);g.current=e=Math.max(e,0),f.scrollTo(e*l.value)}else v=t;e.preventDefault()}function I({clientY:e}){const t=o.value;if(!f.isScrolling()){const n=e-t.getBoundingClientRect().top-u.height/2,o=l.value/2;if(!(Math.abs(n)<=o)){const e=Math.ceil((Math.abs(n)-o)/l.value),t=n<0?-e:e;let i=Math.min(g.current+t,g.length-1);g.current=i=Math.max(i,0),f.scrollTo(i*l.value)}}}return hs((()=>{const e=o.value,t=i.value,{scroller:n,handleTouchStart:s,handleTouchMove:a,handleTouchEnd:r}=mv(t,{enableY:!0,enableX:!1,enableSnap:!0,itemSize:l.value,friction:new dv(1e-4),spring:new fv(2,90,20),onSnap:e=>{isNaN(e)||e===g.current||(g.current=e)}});f=n,Km(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 o=e.changedTouches[0];t=o.clientX,n=o.clientY})),e.addEventListener("touchend",(e=>{const o=e.changedTouches[0];if(Math.abs(o.clientX-t)<20&&Math.abs(o.clientY-n)<20){const t={bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget},n=new CustomEvent("click",t);["screenX","screenY","clientX","clientY","pageX","pageY"].forEach((e=>{n[e]=o[e]})),e.target.dispatchEvent(n)}}))}(e),m()})),()=>{const e=t.default&&t.default();g.length=xm(e).length;const n=`${p.value}px 0`;return dr("uni-picker-view-column",{ref:o},[dr("div",{onWheel:y,onClick:I,class:"uni-picker-view-group"},[dr("div",Ir(h.attrs,{class:["uni-picker-view-mask",c.maskClass],style:`background-size: 100% ${p.value}px;${c.maskStyle}`}),null,16),dr("div",Ir(h.attrs,{class:["uni-picker-view-indicator",c.indicatorClass],style:c.indicatorStyle}),[dr(Y_,{ref:d,onResize:({height:e})=>l.value=e},null,8,["onResize"])],16),dr("div",{ref:i,class:["uni-picker-view-content"],style:{padding:n,"--picker-view-column-indicator-height":`${l.value}px`}},[e],4)],40,["onWheel","onClick"])],512)}}}),yv=re,Iv="backwards",Mv=Fh({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:yv},activeColor:{type:String,default:yv},backgroundColor:{type:String,default:"#EBEBEB"},active:{type:[Boolean,String],default:!1},activeMode:{type:String,default:Iv},duration:{type:[Number,String],default:30,validator:e=>!isNaN(parseFloat(e))},borderRadius:{type:[Number,String],default:0}},setup(e){const t=Zn(null),n=function(e){const t=Zn(0),n=Hr((()=>`background-color: ${e.backgroundColor}; height: ${e.strokeWidth}px;`)),o=Hr((()=>{const n=e.color!==yv&&e.activeColor===yv?e.color:e.activeColor;return`width: ${t.value}%;background-color: ${n}`})),i=Hr((()=>{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})),s=wn({outerBarStyle:n,innerBarStyle:o,realPercent:i,currentPercent:t,strokeTimer:0,lastPercent:0});return s}(e);return Cv(n,e),Di((()=>n.realPercent),((t,o)=>{n.strokeTimer&&clearInterval(n.strokeTimer),n.lastPercent=o||0,Cv(n,e)})),()=>{const{showInfo:o}=e,{outerBarStyle:i,innerBarStyle:s,currentPercent:a}=n;return dr("uni-progress",{class:"uni-progress",ref:t},[dr("div",{style:i,class:"uni-progress-bar"},[dr("div",{style:s,class:"uni-progress-inner-bar"},null,4)],4),o?dr("p",{class:"uni-progress-info"},[a+"%"]):""],512)}}});function Cv(e,t){t.active?(e.currentPercent=t.activeMode===Iv?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 Tv=$p("ucg"),Sv=Fh({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=Zn(null);return function(e,t){const n=[];hs((()=>{r(n.length-1)}));const o=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};ua(Tv,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,i){r(n.indexOf(i),!0),t("change",e,{value:o()})}});const i=la($h,!1),s={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}};i&&(i.addField(s),_s((()=>{i.removeField(s)})));function a(e,t){e.value={radioChecked:t,value:e.value.value}}function r(e,t){n.forEach(((o,i)=>{i!==e&&(t?a(n[i],!1):n.forEach(((e,t)=>{i>=t||n[t].value.radioChecked&&a(n[i],!1)})))}))}}(e,Bh(o,t)),()=>dr("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});const Ev=Fh({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=Zn(null),o=Zn(e.checked),i=Zn(e.value);const s=Hr((()=>function(){if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const t={};return o.value?(t.backgroundColor=e.activeBackgroundColor||e.color,t.borderColor=e.activeBorderColor||t.backgroundColor):(e.borderColor&&(t.borderColor=e.borderColor),e.backgroundColor&&(t.backgroundColor=e.backgroundColor)),t}(o.value)));Di([()=>e.checked,()=>e.value],(([e,t])=>{o.value=e,i.value=t}));const{uniCheckGroup:a,uniLabel:r,field:c}=function(e,t,n){const o=Hr({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),i={reset:n},s=la(Tv,!1);s&&s.addField(o);const a=la($h,!1);a&&a.addField(i);const r=la(zh,!1);return _s((()=>{s&&s.removeField(o),a&&a.removeField(i)})),{uniCheckGroup:s,uniForm:a,uniLabel:r,field:o}}(o,i,(()=>{o.value=!1})),u=t=>{e.disabled||o.value||(o.value=!0,a&&a.radioChange(t,c),t.stopPropagation())};return r&&(r.addHandler(u),_s((()=>{r.removeHandler(u)}))),Jh(e,{"label-click":u}),()=>{const i=jh(e,"disabled");let a;return a=o.value,dr("uni-radio",Ir(i,{id:e.id,onClick:u,ref:n}),[dr("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":o.value?s.value.borderColor:e.activeBorderColor}},[dr("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:s.value},[a?Zp(zp,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["id","onClick"])}}});const Dv={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},kv={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const Lv=(e,t,n)=>!n||h(n)&&!n.length?[]:n.map((n=>{var o;if(S(n)){if(!p(n,"type")||"node"===n.type){let i={[e]:""};const s=null==(o=n.name)?void 0:o.toLowerCase();if(!p(Dv,s))return;return function(e,t){if(S(t))for(const n in t)if(p(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=of(o))}}(s,n.attrs),i=u(i,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),jr(n.name,i,Lv(e,t,n.children))}return"text"===n.type&&v(n.text)&&""!==n.text?fr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return p(kv,t)&&kv[t]?kv[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function bv(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/\n/,"").replace(/\n/,"")}(e);const t=[],n={node:"root",children:[]};return function(e,t){var n,o,i,s=[],a=e;for(s.last=function(){return this[this.length-1]};e;){if(o=!0,s.last()&&um[s.last()])e=e.replace(new RegExp("([\\s\\S]*?)]*>"),(function(e,n){return n=n.replace(/|/g,"$1$2"),t.chars&&t.chars(n),""})),u("",s.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("=0&&s[o]!=n;o--);else var o=0;if(o>=0){for(var i=s.length-1;i>=o;i--)t.end&&t.end(s[i]);s.length=o}}u()}(e,{start:function(e,o,i){const s={name:e};if(0!==o.length&&(s.attrs=function(e){return e.reduce((function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e}),{})}(o)),i){const e=t[0]||n;e.children||(e.children=[]),e.children.push(s)}else t.unshift(s)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o&&(o.children||(o.children=[]),o.children.push(n))}}),n.children}const Av=Fh({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["click","touchstart","touchmove","touchcancel","touchend","longpress","itemclick"],setup(e,{emit:t}){const n=Dr(),o=n&&n.vnode.scopeId||"",i=Zn(null),s=Zn([]),a=Bh(i,t);function r(e,t={}){a("itemclick",e,t)}return Di((()=>e.nodes),(function(){let t=e.nodes;v(t)&&(t=bv(e.nodes)),s.value=Lv(o,r,t)}),{immediate:!0}),()=>jr("uni-rich-text",{ref:i},jr("div",{},s.value))}}),Rv=Fh({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=Zn(null),o=Hr((()=>{const t={backgroundColor:e.refresherBackground};switch(e.refreshState){case"pulling":t.height=e.refresherHeight+"px";break;case"refreshing":t.height=e.refresherThreshold+"px",t.transition="height 0.3s";break;case"":case"refresherabort":case"restore":t.height="0px",t.transition="height 0.3s"}return t})),i=Hr((()=>{const t=e.refresherHeight/e.refresherThreshold;return 360*(t>1?1:t)}));return()=>{const{refreshState:s,refresherDefaultStyle:a,refresherThreshold:r}=e;return dr("div",{ref:n,style:o.value,class:"uni-scroll-view-refresher"},["none"!==a?dr("div",{class:"uni-scroll-view-refresh"},[dr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==s?dr("svg",{key:"refresh__icon",style:{transform:"rotate("+i.value+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[dr("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),dr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==s?dr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[dr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"===a?dr("div",{class:"uni-scroll-view-refresher-container",style:{height:`${r}px`}},[t.default&&t.default()]):null],4)}}}),Ov=ot(!0),Nv=Fh({name:"ScrollView",compatConfig:{MODE:3},props:{direction:{type:[String],default:"vertical"},scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},showScrollbar:{type:[Boolean,String],default:!0},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"black"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n,expose:o}){const i=Zn(null),s=Zn(null),a=Zn(null),r=Zn(null),c=Bh(i,t),{state:u,scrollTopNumber:l,scrollLeftNumber:d}=function(e){const t=Hr((()=>Number(e.scrollTop)||0)),n=Hr((()=>Number(e.scrollLeft)||0)),o=wn({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshState:""});return{state:o,scrollTopNumber:t,scrollLeftNumber:n}}(e),{realScrollX:p,realScrollY:h,_scrollLeftChanged:f,_scrollTopChanged:g}=function(e,t,n,o,i,s,a,r,c){let u=!1,l=0,d=!1,p=()=>{};const h=Hr((()=>e.scrollX)),f=Hr((()=>e.scrollY)),g=Hr((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),_=Hr((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function m(e,t){const n=a.value;let o=0,i="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let s=r.value;s.style.transition="transform .3s ease-out",s.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?i="translateX("+o+"px) translateZ(0)":"y"===t&&(i="translateY("+o+"px) translateZ(0)"),s.removeEventListener("transitionend",p),s.removeEventListener("webkitTransitionEnd",p),p=()=>C(e,t),s.addEventListener("transitionend",p),s.addEventListener("webkitTransitionEnd",p),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),s.style.transform=i,s.style.webkitTransform=i}function v(e){const n=e.target;i("scroll",e,{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop,scrollHeight:n.scrollHeight,scrollWidth:n.scrollWidth,deltaX:t.lastScrollLeft-n.scrollLeft,deltaY:t.lastScrollTop-n.scrollTop}),f.value&&(n.scrollTop<=g.value&&t.lastScrollTop-n.scrollTop>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"top"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollTop+n.offsetHeight+_.value>=n.scrollHeight&&t.lastScrollTop-n.scrollTop<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"bottom"}),t.lastScrollToLowerTime=e.timeStamp)),h.value&&(n.scrollLeft<=g.value&&t.lastScrollLeft-n.scrollLeft>0&&e.timeStamp-t.lastScrollToUpperTime>200&&(i("scrolltoupper",e,{direction:"left"}),t.lastScrollToUpperTime=e.timeStamp),n.scrollLeft+n.offsetWidth+_.value>=n.scrollWidth&&t.lastScrollLeft-n.scrollLeft<0&&e.timeStamp-t.lastScrollToLowerTime>200&&(i("scrolltolower",e,{direction:"right"}),t.lastScrollToLowerTime=e.timeStamp)),t.lastScrollTop=n.scrollTop,t.lastScrollLeft=n.scrollLeft}function y(t){f.value&&(e.scrollWithAnimation?m(t,"y"):a.value.scrollTop=t)}function I(t){h.value&&(e.scrollWithAnimation?m(t,"x"):a.value.scrollLeft=t)}function M(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(),o=n.getBoundingClientRect();if(h.value){let n=o.left-t.left,i=a.value.scrollLeft+n;e.scrollWithAnimation?m(i,"x"):a.value.scrollLeft=i}if(f.value){let n=o.top-t.top,i=a.value.scrollTop+n;e.scrollWithAnimation?m(i,"y"):a.value.scrollTop=i}}}}function C(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=h.value?"auto":"hidden",n.scrollLeft=e):"y"===t&&(n.style.overflowY=f.value?"auto":"hidden",n.scrollTop=e),r.value.removeEventListener("transitionend",p),r.value.removeEventListener("webkitTransitionEnd",p)}function T(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,i("refresherpulling",{},{deltaY:t.refresherHeight,dy:t.refresherHeight}),i("refresherrefresh",{},{dy:E.y-S.y}),c("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=l=0,"restore"===n&&(d=!1,i("refresherrestore",{},{dy:E.y-S.y})),"refresherabort"===n&&d&&(d=!1,i("refresherabort",{},{dy:E.y-S.y}))}t.refreshState=n}}let S={x:0,y:0},E={x:0,y:e.refresherThreshold};return hs((()=>{Oo((()=>{y(n.value),I(o.value)})),M(e.scrollIntoView);let s=function(e){e.preventDefault(),e.stopPropagation(),v(e)},r=null,c=function(n){if(null===S)return;let o=n.touches[0].pageX,s=n.touches[0].pageY,c=a.value;if(Math.abs(o-S.x)>Math.abs(s-S.y))if(h.value){if(0===c.scrollLeft&&o>S.x)return void(r=!1);if(c.scrollWidth===c.offsetWidth+c.scrollLeft&&oS.y)r=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(c.scrollHeight===c.offsetHeight+c.scrollTop&&s0&&(d=!0,i("refresherpulling",n,{deltaY:o,dy:o})))}},p=function(e){1===e.touches.length&&(S={x:e.touches[0].pageX,y:e.touches[0].pageY})},g=function(n){E={x:n.changedTouches[0].pageX,y:n.changedTouches[0].pageY},t.refresherHeight>=e.refresherThreshold?T("refreshing"):T("refresherabort"),S={x:0,y:0},E={x:0,y:e.refresherThreshold}};a.value.addEventListener("touchstart",p,Ov),a.value.addEventListener("touchmove",c,ot(!1)),a.value.addEventListener("scroll",s,ot(!1)),a.value.addEventListener("touchend",g,Ov),_s((()=>{a.value.removeEventListener("touchstart",p),a.value.removeEventListener("touchmove",c),a.value.removeEventListener("scroll",s),a.value.removeEventListener("touchend",g)}))})),ts((()=>{f.value&&(a.value.scrollTop=t.lastScrollTop),h.value&&(a.value.scrollLeft=t.lastScrollLeft)})),Di(n,(e=>{y(e)})),Di(o,(e=>{I(e)})),Di((()=>e.scrollIntoView),(e=>{M(e)})),Di((()=>e.refresherTriggered),(e=>{!0===e?T("refreshing"):!1===e&&T("restore")})),{realScrollX:h,realScrollY:f,_scrollTopChanged:y,_scrollLeftChanged:I}}(e,u,l,d,c,i,s,r,t),_=Hr((()=>{let e="";return p.value?e+="overflow-x:auto;":e+="overflow-x:hidden;",h.value?e+="overflow-y:auto;":e+="overflow-y:hidden;",e})),m=Hr((()=>{let t="uni-scroll-view";return!1===e.showScrollbar&&(t+=" uni-scroll-view-scrollbar-hidden"),t}));return o({$getMain:()=>s.value}),()=>{const{refresherEnabled:t,refresherBackground:o,refresherDefaultStyle:c,refresherThreshold:l}=e,{refresherHeight:d,refreshState:p}=u;return dr("uni-scroll-view",{ref:i},[dr("div",{ref:a,class:"uni-scroll-view"},[dr("div",{ref:s,style:_.value,class:m.value},[t?dr(Rv,{refreshState:p,refresherHeight:d,refresherThreshold:l,refresherDefaultStyle:c,refresherBackground:o},{default:()=>["none"==c?n.refresher&&n.refresher():null]},8,["refreshState","refresherHeight","refresherThreshold","refresherDefaultStyle","refresherBackground"]):null,dr("div",{ref:r,class:"uni-scroll-view-content"},[n.default&&n.default()],512)],6)],512)],512)}}});function Pv(e,t,n,o,i,s){function a(){u&&(clearTimeout(u),u=null)}let r,c,u=null,l=!0,d=0,p=1,h=null,f=!1,g=0,_="";const m=Hr((()=>n.value.length>t.displayMultipleItems)),v=Hr((()=>e.circular&&m.value));function y(i){Math.floor(2*d)===Math.floor(2*i)&&Math.ceil(2*d)===Math.ceil(2*i)||v.value&&function(o){if(!l)for(let i=n.value,s=i.length,a=o+t.displayMultipleItems,r=0;r=u.length&&(i-=u.length),i=r%1>.5||r<0?i-1:i,s("transition",{},{dx:e.vertical?0:i*c.offsetWidth,dy:e.vertical?i*c.offsetHeight:0})}function I(e){const o=n.value.length;if(!o)return-1;const i=(Math.round(e)%o+o)%o;if(v.value){if(o<=t.displayMultipleItems)return 0}else if(i>o-t.displayMultipleItems)return o-t.displayMultipleItems;return i}function M(){h=null}function C(){if(!h)return void(f=!1);const e=h,o=e.toPos,i=e.acc,a=e.endTime,u=e.source,l=a-Date.now();if(l<=0){y(o),h=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:u})}return}y(o+i*l*l/2),c=requestAnimationFrame(C)}function T(e,o,i){M();const s=t.duration,a=n.value.length;let r=d;if(v.value)if(i<0){for(;re;)r-=a}else if(i>0){for(;r>e;)r-=a;for(;r+ae;)r-=a;r+a-ee.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,i=n.value;te.vertical,()=>v.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),h&&(y(h.toPos),h=null);const i=n.value;for(let t=0;t0&&p<1||(p=1)}const r=d;d=-2;const c=t.current;c>=0?(l=!1,t.userTracking?(y(r+c-g),g=c):(y(c),e.autoplay&&S())):(l=!0,y(-t.displayMultipleItems-1))})),Di((()=>t.interval),(()=>{u&&(a(),S())})),Di((()=>t.current),((e,o)=>{!function(e,o){const i=_;_="";const a=n.value;if(!i){const t=a.length;T(e,"",v.value&&o+(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:i})}}(e,o),i("update:current",e)})),Di((()=>t.currentItemId),(e=>{i("update:currentItemId",e)})),Di((()=>e.autoplay&&!t.userTracking),E),E(e.autoplay&&!t.userTracking),hs((()=>{let i=!1,s=0,r=0;function c(e){t.userTracking=!1;const n=s/Math.abs(s);let o=0;!e&&Math.abs(s)>.2&&(o=.5*n);const i=I(d+o);e?y(g):(_="touch",t.current=i,T(i,"touch",0!==o?o:0===i&&v.value&&d>=1?1:0))}Km(o.value,(u=>{if(!e.disableTouch&&!l){if("start"===u.detail.state)return t.userTracking=!0,i=!1,a(),g=d,s=0,r=Date.now(),void M();if("end"===u.detail.state)return c(!1);if("cancel"===u.detail.state)return c(!0);if(t.userTracking){if(!i){i=!0;const n=Math.abs(u.detail.dx),o=Math.abs(u.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&S())}return function(i){const a=r;r=Date.now();const c=n.value.length-t.displayMultipleItems;function u(e){return.5-.25/(e+.5)}function l(e,t){let n=g+e;s=.6*s+.4*t,v.value||(n<0||n>c)&&(n<0?n=-u(-n):n>c&&(n=c+u(n-c)),s=0),y(n)}const d=r-a||1,p=o.value;e.vertical?l(-i.dy/p.offsetHeight,-i.ddy/d):l(-i.dx/p.offsetWidth,-i.ddx/d)}(u.detail),!1}}}))})),ms((()=>{a(),cancelAnimationFrame(c)})),{onSwiperDotClick:function(e){T(t.current=e,_="click",v.value?1:0)},circularEnabled:v,swiperEnabled:m}}const wv=Fh({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=Zn(null),i=Bh(o,n),s=Zn(null),a=Zn(null),r=function(e){return wn({interval:Hr((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:Hr((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:Hr((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),c=Hr((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:Yp(e.previousMargin,!0),bottom:Yp(e.nextMargin,!0)}:{top:0,bottom:0,left:Yp(e.previousMargin,!0),right:Yp(e.nextMargin,!0)}),t})),u=Hr((()=>{const t=Math.abs(100/r.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let l=[];const d=[],p=Zn([]);function h(){const e=[];for(let t=0;tn===e.rootRef.value));o&&e.push(jn(o))}p.value=e}ua("addSwiperContext",(function(e){d.push(e),h()}));ua("removeSwiperContext",(function(e){const t=d.indexOf(e);t>=0&&(d.splice(t,1),h())}));const{onSwiperDotClick:f,circularEnabled:g,swiperEnabled:_}=Pv(e,r,p,a,n,i);let m=()=>null;return m=Gv(o,e,r,f,p,g,_),()=>{const n=t.default&&t.default();return l=xm(n),dr("uni-swiper",{ref:o},[dr("div",{ref:s,class:"uni-swiper-wrapper"},[dr("div",{class:"uni-swiper-slides",style:c.value},[dr("div",{ref:a,class:"uni-swiper-slide-frame",style:u.value},[n],4)],4),e.indicatorDots&&dr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[p.value.map(((t,n,o)=>dr("div",{onClick:()=>f(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n=r.current||n{let r=!1,c=!1,l=!1,d=Zn(!1);function p(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Ci((()=>{r="auto"===t.navigation,d.value=!0!==t.navigation||r,y()})),Ci((()=>{const e=i.value.length,t=!s.value;c=0===n.current&&t,l=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(c=!0,l=!0,r&&(d.value=!0))}));const h={onMouseover:e=>p(e,"over"),onMouseout:e=>p(e,"out")};function f(e,t,a){if(e.stopPropagation(),a)return;const r=i.value.length;let c=n.current;switch(t){case"prev":c--,c<0&&s.value&&(c=r-1);break;case"next":c++,c>=r&&s.value&&(c=0)}o(c)}const g=()=>Zp(Jp,t.navigationColor,26);let _;const m=n=>{clearTimeout(_);const{clientX:o,clientY:i}=n,{left:s,right:a,top:r,bottom:c,width:u,height:l}=e.value.getBoundingClientRect();let p=!1;if(p=t.vertical?!(i-r{d.value=p}),300);d.value=p},v=()=>{d.value=!0};function y(){e.value&&(e.value.removeEventListener("mousemove",m),e.value.removeEventListener("mouseleave",v),r&&(e.value.addEventListener("mousemove",m),e.value.addEventListener("mouseleave",v)))}return hs(y),function(){const e={"uni-swiper-navigation-hide":d.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?dr(ja,null,[dr("div",Ir({class:["uni-swiper-navigation uni-swiper-navigation-prev",u({"uni-swiper-navigation-disabled":c},e)],onClick:e=>f(e,"prev",c)},h),[g()],16,["onClick"]),dr("div",Ir({class:["uni-swiper-navigation uni-swiper-navigation-next",u({"uni-swiper-navigation-disabled":l},e)],onClick:e=>f(e,"next",l)},h),[g()],16,["onClick"])]):null}},Uv=Fh({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=Zn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",i=t?100*e+"%":"0",s=n.value,a=`translate(${o},${i}) translateZ(0)`;s&&(s.style.webkitTransform=a,s.style.transform=a)}};return hs((()=>{const e=la("addSwiperContext");e&&e(o)})),ms((()=>{const e=la("removeSwiperContext");e&&e(o)})),()=>dr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),xv=Fh({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=Zn(null),o=Zn(e.checked),i=function(e,t){const n=la($h,!1),o=la(zh,!1),i={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(i),ms((()=>{n.removeField(i)})));return o}(e,o),s=Bh(n,t);Di((()=>e.checked),(e=>{o.value=e}));const a=t=>{e.disabled||(o.value=!o.value,s("change",t,{value:o.value}))};return i&&(i.addHandler(a),_s((()=>{i.removeHandler(a)}))),Jh(e,{"label-click":a}),()=>{const{color:t,type:i}=e,s=jh(e,"disabled"),r={};let c;return t&&o.value&&(r.backgroundColor=t,r.borderColor=t),c=o.value,dr("uni-switch",Ir({id:e.id,ref:n},s,{onClick:a}),[dr("div",{class:"uni-switch-wrapper"},[Ri(dr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:r},null,6),[[Lc,"switch"===i]]),Ri(dr("div",{class:"uni-checkbox-input"},[c?Zp(zp,e.color,22):""],512),[[Lc,"checkbox"===i]])])],16,["id","onClick"])}}});const Fv={ensp:" ",emsp:" ",nbsp:" "};function qv(e,t){return function(e,{space:t,decode:n}){let o="",i=!1;for(let s of e)t&&Fv[t]&&" "===s&&(s=Fv[t]),i?(o+="n"===s?se:"\\"===s?"\\":"\\"+s,i=!1):"\\"===s?i=!0:o+=s;return n?o.replace(/ /g,Fv.nbsp).replace(/ /g,Fv.ensp).replace(/ /g,Fv.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'"):o}(e,t).split(se)}const Vv=Fh({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=Zn(null);return()=>{const o=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==Wa){const n=qv(t.children,{space:e.space,decode:e.decode}),i=n.length-1;n.forEach(((e,t)=>{(0!==t||e)&&o.push(fr(e)),t!==i&&o.push(dr("br"))}))}else o.push(t)})),dr("uni-text",{ref:n,selectable:!!e.selectable||null},[dr("span",null,o)],8,["selectable"])}}}),Bv=u({},Lm,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Kv.concat("return").includes(e)}});let Hv=!1;const Kv=["done","go","next","search","send"];const jv=Fh({name:"Textarea",props:Bv,emits:["confirm","linechange",...bm],setup(e,{emit:t,expose:n}){const o=Zn(null),i=Zn(null),{fieldRef:s,state:a,scopedAttrsState:r,fixDisabledColor:c,trigger:u}=Om(e,o,t),l=Hr((()=>a.value.split(se))),d=Hr((()=>Kv.includes(e.confirmType))),p=Zn(0),h=Zn(null);function f({height:e}){p.value=e}function g(e){"Enter"===e.key&&d.value&&e.preventDefault()}function _(t){if("Enter"===t.key&&d.value){!function(e){u("confirm",e,{value:a.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Di((()=>p.value),(t=>{const n=o.value,s=h.value,a=i.value;let r=parseFloat(getComputedStyle(n).lineHeight);isNaN(r)&&(r=s.offsetHeight);var c=Math.round(t/r);u("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:c}),e.autoHeight&&(n.style.height="auto",a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";Hv=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&&c?dr("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":Hv},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):dr("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":Hv},style:{overflowY:e.autoHeight?"hidden":"auto",...e.cursorColor&&{caretColor:e.cursorColor}},onKeydown:g,onKeyup:_},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return dr("uni-textarea",{ref:o},[dr("div",{ref:i,class:"uni-textarea-wrapper"},[Ri(dr("div",Ir(r.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[Lc,!a.value.length]]),dr("div",{ref:h,class:"uni-textarea-line"},[" "],512),dr("div",{class:"uni-textarea-compute"},[l.value.map((e=>dr("div",null,[e.trim()?e:"."]))),dr(Y_,{initial:!0,onResize:f},null,8,["initial","onResize"])]),"search"===e.confirmType?dr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),$v=Fh({name:"View",props:u({},Hh),setup(e,{slots:t}){const n=Zn(null),{hovering:o,binding:i}=Kh(e);return()=>{const s=e.hoverClass;return s&&"none"!==s?dr("uni-view",Ir({class:o.value?s:"",ref:n},i),[t.default&&t.default()],16):dr("uni-view",{ref:n},[t.default&&t.default()],512)}}});function Wv(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function Yv(e,t,n){e&&gp(n||oh(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function zv(e,t){e&&function(e,t){t=fp(e,t),delete hp[t]}(t||oh(),e)}function Xv(e,t,n,o){const i=Dr().proxy;hs((()=>{Yv(t||Wv(i),e,o),!n&&t||Di((()=>i.id),((t,n)=>{Yv(Wv(i,t),e,o),zv(n&&Wv(i,n))}))})),_s((()=>{zv(t||Wv(i),o)}))}let Jv=0;function Zv(e,t,n,o){m(t)&&ls(e,t.bind(n),o)}function Qv(e,t,n){var o;const i=e.mpType||n.$mpType;if(i&&"component"!==i&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!m(t))&&(pt.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const i=e[o];h(i)?i.forEach((e=>Zv(o,e,n,t))):Zv(o,i,n,t)}})),"page"===i)){t.__isVisible=!0;try{let e=t.attrs.__pageQuery;0,rh(n,_e,e),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&rh(n,le)}catch(aL){console.error(aL.message+se+aL.stack)}}}function ey(e,t,n){Qv(e,t,n)}function ty(e,t,n){return e[t]=n}function ny(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function oy(e){return function(t,n,o){if(!n)throw t;const i=e._instance;if(!i||!i.proxy)throw t;rh(i.proxy,pe,t)}}function iy(e,t){return e?[...new Set([].concat(e,t))]:t}function sy(e){const t=e._context.config;var n;t.errorHandler=ft(e,oy),n=t.optionMergeStrategies,pt.forEach((e=>{n[e]=iy}));const o=t.globalProperties;o.$set=ty,o.$applyOptions=ey,o.$callMethod=ny,function(e){ht.forEach((t=>t(e)))}(e)}const ay=$p("upm");function ry(){return la(ay)}function cy(e){const t=function(e){return wn(function(e){{const{enablePullDownRefresh:t,navigationBar:n}=e;if(t){const t=function(e){return e.offset&&(e.offset=Yp(e.offset)),e.height&&(e.height=Yp(e.height)),e.range&&(e.range=Yp(e.range)),e}(u({support:!0,color:"#2BD009",style:"circle",height:70,range:150,offset:0},e.pullToRefresh)),{type:o,style:i}=n;"custom"!==i&&"transparent"!==o&&(t.offset+=44+xp.top),e.pullToRefresh=t}}{const{navigationBar:t}=e,{titleSize:n,titleColor:o,backgroundColor:i}=t;t.titleText=t.titleText||"",t.type=t.type||"default",t.titleSize=n||"16px",t.titleColor=o||"#000000",t.backgroundColor=i||"#F8F8F8"}if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==xy().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(ah(Ad().meta,e)))))}(e);return ua(ay,t),t}function uy(){return Ad()}function ly(){return history.state&&history.state.__id__||1}function dy(){const e=ih();if(!e)return;const t=Uy(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:Fy(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,rh(e,de))}function py(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}function hy(e){const t=Uy().values();for(const n of t){const t=n.$page;if(py(e,t))return n.$.__isActive=!0,t.id}}const fy=Xf(m_,(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Oy.handledBeforeEntryPageRoutes)return dy(),Iy({type:m_,url:e,tabBarText:t,isAutomatedTesting:n},hy(e)).then(o).catch(i);Py.push({args:{type:m_,url:e,tabBarText:t,isAutomatedTesting:n},resolve:o,reject:i})}),0,C_);function gy(){const e=th();if(!e)return;const t=e.$page;Fy(Hy(t.path,t.id))}const _y=Xf(g_,(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Oy.handledBeforeEntryPageRoutes)return gy(),Iy({type:g_,url:e,isAutomatedTesting:t}).then(n).catch(o);wy.push({args:{type:g_,url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,I_);function vy(){const e=Uy().keys();for(const t of e)Fy(t)}const yy=Xf(__,(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>{if(Oy.handledBeforeEntryPageRoutes)return vy(),Iy({type:__,url:e,isAutomatedTesting:t}).then(n).catch(o);Gy.push({args:{type:__,url:e,isAutomatedTesting:t},resolve:n,reject:o})}),0,M_);function Iy({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:i},s){const a=lI().$router,{path:r,query:c}=function(e){const[t,n]=e.split("?",2);return{path:t,query:ct(n||"")}}(t);return new Promise(((t,u)=>{const l=function(e,t){return{__id__:t||++qy,__type__:e}}(e,s);a["navigateTo"===e?"push":"replace"]({path:r,query:c,state:l,force:!0}).then((s=>{if(zl(s))return u(s.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new lt(l.__id__,o),t(i?{__id__:l.__id__}:{eventChannel:e.eventChannel})}return i?t({__id__:l.__id__}):t()}))}))}let My;function Cy(){var e;return My||(My=__uniConfig.tabBar&&wn((e=__uniConfig.tabBar,Wd()&&e.list&&e.list.forEach((e=>{Jd(e,["text"])})),e))),My}const Ty=window.CSS&&window.CSS.supports;function Sy(e){return Ty&&(Ty(e)||Ty.apply(window.CSS,e.split(":")))}const Ey=Sy("top:env(a)"),Dy=Sy("top:constant(a)"),ky=Sy("backdrop-filter:blur(10px)"),Ly=(()=>Ey?"env":Dy?"constant":"")();function by(e){return Ly?`calc(${e}px + ${Ly}(safe-area-inset-bottom))`:`${e}px`}const Ay="$$",Ry=new Map,Oy={handledBeforeEntryPageRoutes:!1},Ny=[],Py=[],wy=[],Gy=[];function Uy(){return Ry}function xy(){const e=[],t=Ry.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function Fy(e,t=!0){const n=Ry.get(e);n.$.__isUnload=!0,rh(n,ve),Ry.delete(e),t&&function(e){const t=Ky.get(e);t&&(Ky.delete(e),jy.pruneCacheEntry(t))}(e)}let qy=ly();function Vy(e){const t=ry();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,i,s){const{id:a,route:r}=o,c=yt(o.navigationBar,__uniConfig.themeConfig,s).titleColor;return{id:a,path:je(r),route:r,fullPath:t,options:n,meta:o,openType:e,eventChannel:i,statusBarStyle:"#ffffff"===c?"light":"dark"}}("navigateTo",n,{},t)}function By(e){const t=Vy(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),Ry.set(Hy(t.path,t.id),e),1===Ry.size&&setTimeout((()=>{!function(){if(Oy.handledBeforeEntryPageRoutes)return;Oy.handledBeforeEntryPageRoutes=!0;const e=[...Ny];Ny.length=0,e.forEach((({args:e,resolve:t,reject:n})=>Iy(e).then(t).catch(n)));const t=[...Py];Py.length=0,t.forEach((({args:e,resolve:t,reject:n})=>(dy(),Iy(e,hy(e.url)).then(t).catch(n))));const n=[...wy];wy.length=0,n.forEach((({args:e,resolve:t,reject:n})=>(gy(),Iy(e).then(t).catch(n))));const o=[...Gy];Gy.length=0,o.forEach((({args:e,resolve:t,reject:n})=>(vy(),Iy(e).then(t).catch(n))))}()}),0)}function Hy(e,t){return e+Ay+t}const Ky=new Map,jy={get:e=>Ky.get(e),set(e,t){!function(e){const t=parseInt(e.split(Ay)[1]);if(!t)return;jy.forEach(((e,n)=>{const o=parseInt(n.split(Ay)[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;jy.delete(n),jy.pruneCacheEntry(e),Oo((()=>{Ry.forEach(((e,t)=>{e.$.isUnmounted&&Ry.delete(t)}))}))}}))}(e),Ky.set(e,t)},delete(e){Ky.get(e)&&Ky.delete(e)},forEach(e){Ky.forEach(e)}};function $y(e,t){!function(e){const t=Yy(e),{body:n}=document;zy&&n.removeAttribute(zy),t&&n.setAttribute(t,""),zy=t}(e),function(e){let t=0,n=0;if("custom"!==e.navigationBar.style&&["default","float"].indexOf(e.navigationBar.type)>-1&&(t=44),e.isTabBar){const e=Cy();e.shown&&(n=parseInt(e.height))}var o;jp({"--window-top":(o=t,Ly?`calc(${o}px + ${Ly}(safe-area-inset-top))`:`${o}px`),"--window-bottom":by(n)})}(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),Jy(e,t)}function Wy(e){const t=Yy(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Yy(e){return e.type.__scopeId}let zy,Xy;function Jy(e,t){if(document.removeEventListener("touchmove",ch),Xy&&document.removeEventListener("scroll",Xy),t.disableScroll)return document.addEventListener("touchmove",ch);const{onPageScroll:n,onReachBottom:o}=e,i="transparent"===t.navigationBar.type;if(!(null==n?void 0:n.length)&&!(null==o?void 0:o.length)&&!i)return;const s={},a=e.proxy.$page.id;(n||i)&&(s.onPageScroll=function(e,t,n){return o=>{t&&sT.publishHandler(Te,{scrollTop:o},e),n&&sT.emit(e+"."+Te,{scrollTop:o})}}(a,n,i)),(null==o?void 0:o.length)&&(s.onReachBottomDistance=t.onReachBottomDistance||50,s.onReachBottom=()=>sT.publishHandler(Ee,{},a)),Xy=dh(s),requestAnimationFrame((()=>document.addEventListener("scroll",Xy)))}function Zy(e){const t=bd({history:tI(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:eI});t.beforeEach(((e,t)=>{var n;e&&t&&e.meta.isTabBar&&t.meta.isTabBar&&(n=t.meta.tabBarIndex,"undefined"!=typeof window&&(Qy[n]={left:window.pageXOffset,top:window.pageYOffset}))})),e.router=t,e.use(t)}let Qy=Object.create(null);const eI=(e,t,n)=>{if(n)return n;if(e&&t&&e.meta.isTabBar&&t.meta.isTabBar){const t=(o=e.meta.tabBarIndex,Qy[o]);if(t)return t}return{left:0,top:0};var o};function tI(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),Bl(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=xy(),n=t.length-1,o=n-e;for(let i=n;i>o;i--){const e=t[i].$page;Fy(Hy(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const nI={install(e){sy(e),Th(e),Ph(e),e.config.warnHandler||(e.config.warnHandler=oI),Zy(e)}};function oI(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const iI={class:"uni-async-loading"},sI=dr("i",{class:"uni-loading"},null,-1),aI=qh({name:"AsyncLoading",render:()=>(Ja(),or("div",iI,[sI]))});function rI(){window.location.reload()}const cI=qh({name:"AsyncError",setup(){ep();const{t:e}=Zd();return()=>dr("div",{class:"uni-async-error",onClick:rI},[e("uni.async.error")],8,["onClick"])}});let uI;function lI(){return uI}function dI(e){uI=e,Object.defineProperty(uI.$.ctx,"$children",{get:()=>xy().map((e=>e.$vm))});const t=uI.$.appContext.app;t.component(aI.name)||t.component(aI.name,aI),t.component(cI.name)||t.component(cI.name,cI),function(e){e.$vm=e,e.$mpType="app";const t=Zn(Zd().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(uI),function(e,t){const n=e.$options||{};n.globalData=u(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(uI),Oh(),kp()}function pI(e,{clone:t,init:n,setup:o,before:i}){t&&(e=u({},e)),i&&i(e);const s=e.setup;return e.setup=(e,t)=>{const i=Dr();n(i.proxy);const a=o(i);if(s)return s(a||e,t)},e}function hI(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?pI(e.default,t):pI(e,t)}function fI(e){return hI(e,{clone:!0,init:By,setup(e){e.$pageInstance=e;const t=uy(),n=at(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n,e.proxy.options=n;const o=ry();var i,s;return e.onReachBottom=wn([]),e.onPageScroll=wn([]),Di([e.onReachBottom,e.onPageScroll],(()=>{e.proxy===th()&&Jy(e,o)}),{once:!0}),ps((()=>{$y(e,o)})),hs((()=>{Wy(e);const{onReady:n}=e;n&&w(n),vI(t)})),es((()=>{if(!e.__isVisible){$y(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&w(n),Oo((()=>{vI(t)}))}})),ns((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&w(t)}})),i=o.id,sT.subscribe(fp(i,lp),s?s(_p):_p),_s((()=>{!function(e){sT.unsubscribe(fp(e,lp)),Object.keys(hp).forEach((t=>{0===t.indexOf(e+".")&&delete hp[t]}))}(o.id)})),n}})}function gI(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=BI(),i=90===Math.abs(Number(window.orientation))?"landscape":"portrait";aT.emit(Me,{deviceOrientation:i,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function _I(e){S(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&aT.emit(Ue,e.data.data,e.data.pageId)}function mI(){const{emit:e}=aT;"visible"===document.visibilityState?e(we,u({},W_)):e(Ge)}function vI(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&rh("onTabItemTap",{index:n,text:t,pagePath:o})}function yI(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),i=(t<10?"0":"")+t;let s=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==i&&(s=i+":"+s),s}function II(e,t,n){const o=wn({gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0}),i={x:0,y:0};return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];i.x=t.pageX,i.y=t.pageY,o.gestureType="none",o.volumeOld=0,o.currentTimeOld=o.currentTimeNew=0},onTouchmove:function(s){function a(){s.stopPropagation(),s.preventDefault()}n.fullscreen&&a();const r=o.gestureType;if("stop"===r)return;const c=s.targetTouches[0],u=c.pageX,l=c.pageY,d=i,p=t.value;if("progress"===r?function(e){const n=t.value,i=n.duration;let s=e/600*i+o.currentTimeOld;s<0?s=0:s>i&&(s=i);o.currentTimeNew=s}(u-d.x):"volume"===r&&function(e){const n=t.value,i=o.volumeOld;let s;"number"==typeof i&&(s=i-e/200,s<0?s=0:s>1&&(s=1),n.volume=s,o.volumeNew=s)}(l-d.y),"none"===r)if(Math.abs(u-d.x)>Math.abs(l-d.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=p.currentTime,n.fullscreen||a()}else{if(!e.pageGesture)return void(o.gestureType="stop");o.gestureType="volume",o.volumeOld=p.volume,n.fullscreen||a()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}function MI(e,t,n,o,i,s,a,r){const c={play:e,stop:n,pause:t,seek:o,sendDanmu:i,playbackRate:s,requestFullScreen:a,exitFullScreen:r};Xv(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in c&&c[e](n)}),function(e){const t=Qp(),n=Dr().proxy,o=n.$options.name.toLowerCase(),i=e||n.id||"context"+Jv++;return hs((()=>{n.$el.__uniContextInfo={id:i,type:o,page:t}})),`${o}.${i}`}(),!0)}const CI=Fh({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const i=Zn(null),s=Zn(null),a=Bh(i,t),{state:r}=Tm(),{$attrs:c}=Um({excludeListeners:!0}),{t:u}=Zd();cp();const{videoRef:l,state:d,play:p,pause:f,stop:g,seek:_,playbackRate:m,toggle:v,onDurationChange:y,onLoadedMetadata:I,onProgress:M,onWaiting:C,onVideoError:T,onPlay:S,onPause:E,onEnded:D,onTimeUpdate:k}=function(e,t,n){const o=Zn(null),i=Hr((()=>of(e.src))),s=Hr((()=>"true"===e.muted||!0===e.muted)),a=wn({start:!1,src:i,playing:!1,currentTime:0,duration:0,progress:0,buffered:0,muted:s});function r(e){const t=e.target,n=t.buffered;n.length&&(a.buffered=n.end(n.length-1)/t.duration*100)}function c(){o.value.pause()}function u(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)}return Di((()=>i.value),(()=>{a.playing=!1,a.currentTime=0})),Di((()=>a.buffered),(e=>{n("progress",{},{buffered:e})})),Di((()=>s.value),(e=>{o.value.muted=e})),{videoRef:o,state:a,play:function(){const e=o.value;a.start=!0,e.play()},pause:c,stop:function(){u(0),c()},seek:u,playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;a.playing?e.pause():e.play()},onDurationChange:function({target:e}){a.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,i=t.target;o>0&&(i.currentTime=o),n("loadedmetadata",t,{width:i.videoWidth,height:i.videoHeight,duration:i.duration}),r(t)},onProgress:r,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){a.playing=!1,n("error",e,{})},onPlay:function(e){a.start=!0,a.playing=!0,n("play",e,{})},onPause:function(e){a.playing=!1,n("pause",e,{})},onEnded:function(e){a.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target,o=a.currentTime=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,a),{state:L,danmuRef:b,updateDanmu:A,toggleDanmu:R,sendDanmu:O}=function(e,t){const n=Zn(null),o=wn({enable:Boolean(e.enableDanmu)});let i={time:0,index:-1};const s=h(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function a(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout((function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout((function(){t.remove()}),4e3)}),17)}return s.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,r=i,c={time:n,index:r.index};if(n>r.time)for(let i=r.index+1;i=(e.time||0)))break;c.index=i,t.playing&&o.enable&&a(e)}else if(n-1&&n<=(s[t].time||0);t--)c.index=t-1;i=c},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){s.splice(i.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,d),{state:N,onFullscreenChange:P,emitFullscreenChange:w,toggleFullscreen:G,requestFullScreen:U,exitFullScreen:x}=function(e,t,n,o,i){const s=wn({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function r(t){s.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function c(e){const s=i.value,c=t.value,u=n.value;let l;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||a&&!o.userAction?u.webkitEnterFullScreen?u.webkitEnterFullScreen():(l=!0,c.remove(),c.classList.add("uni-video-type-fullscreen"),document.body.appendChild(c)):c[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():u.webkitExitFullScreen?u.webkitExitFullScreen():(l=!0,c.remove(),c.classList.remove("uni-video-type-fullscreen"),s.appendChild(c)),l&&r(e)}function u(){c(!1)}return _s(u),{state:s,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||r(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:r,toggleFullscreen:c,requestFullScreen:function(){c(!0)},exitFullScreen:u}}(a,s,l,r,i),{state:F,onTouchstart:q,onTouchend:V,onTouchmove:B}=II(e,l,N),{state:H,progressRef:K,ballRef:j,clickProgress:$,toggleControls:W}=function(e,t,n){const o=Zn(null),i=Zn(null),s=Hr((()=>e.showCenterPlayBtn&&!t.start)),a=Zn(!0),r=Hr((()=>!s.value&&e.controls&&a.value)),c=wn({touching:!1,controlsTouching:!1,centerPlayBtnShow:s,controlsShow:r,controlsVisible:a});let u;function l(){u=setTimeout((()=>{c.controlsVisible=!1}),3e3)}function d(){u&&(clearTimeout(u),u=null)}return _s((()=>{u&&clearTimeout(u)})),Di((()=>c.controlsShow&&t.playing&&!c.controlsTouching),(e=>{e?l():d()})),Di([()=>t.currentTime,()=>{e.duration}],(function(){c.touching||(t.progress=t.currentTime/t.duration*100)})),hs((()=>{const e=ot(!1);let s,a,r,u=!0;const l=i.value;function d(e){const n=e.targetTouches[0],i=n.pageX,c=n.pageY;if(u&&Math.abs(i-s)100&&(d=100),t.progress=d,e.preventDefault(),e.stopPropagation()}function p(o){c.controlsTouching=!1,c.touching&&(l.removeEventListener("touchmove",d,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),c.touching=!1)}l.addEventListener("touchstart",(n=>{c.controlsTouching=!0;const o=n.targetTouches[0];s=o.pageX,a=o.pageY,r=t.progress,u=!0,c.touching=!0,l.addEventListener("touchmove",d,e)})),l.addEventListener("touchend",p),l.addEventListener("touchcancel",p)})),{state:c,progressRef:o,ballRef:i,clickProgress:function(e){const i=o.value;let s=e.target,a=e.offsetX;for(;s&&s!==i;)a+=s.offsetLeft,s=s.parentNode;const r=i.offsetWidth;let c=0;a>=0&&a<=r&&(c=a/r,n(t.duration*c))},toggleControls:function(){c.controlsVisible=!c.controlsVisible},autoHideStart:l,autoHideEnd:d}}(e,d,_);return MI(p,f,g,_,O,m,U,x),()=>dr("uni-video",{ref:i,id:e.id,onClick:W},[dr("div",{ref:s,class:"uni-video-container",onTouchstart:q,onTouchend:V,onTouchmove:B,onFullscreenchange:Pu(P,["stop"]),onWebkitfullscreenchange:Pu((e=>P(e,!0)),["stop"])},[dr("video",Ir({ref:l,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:d.src,poster:e.poster,autoplay:!!e.autoplay},c.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onDurationchange:y,onLoadedmetadata:I,onProgress:M,onWaiting:C,onError:T,onPlay:S,onPause:E,onEnded:D,onTimeupdate:e=>{k(e),A(e)},onWebkitbeginfullscreen:()=>w(!0),onX5videoenterfullscreen:()=>w(!0),onWebkitendfullscreen:()=>w(!1),onX5videoexitfullscreen:()=>w(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Ri(dr("div",{class:"uni-video-bar uni-video-bar-full",onClick:Pu((()=>{}),["stop"])},[dr("div",{class:"uni-video-controls"},[Ri(dr("div",{class:{"uni-video-control-button":!0,"uni-video-control-button-play":!d.playing,"uni-video-control-button-pause":d.playing},onClick:Pu(v,["stop"])},null,10,["onClick"]),[[Lc,e.showPlayBtn]]),Ri(dr("div",{class:"uni-video-current-time"},[yI(d.currentTime)],512),[[Lc,e.showProgress]]),Ri(dr("div",{ref:K,class:"uni-video-progress-container",onClick:Pu($,["stop"])},[dr("div",{class:"uni-video-progress"},[dr("div",{style:{width:d.buffered+"%"},class:"uni-video-progress-buffered"},null,4),dr("div",{ref:j,style:{left:d.progress+"%"},class:"uni-video-ball"},[dr("div",{class:"uni-video-inner"},null)],4)])],8,["onClick"]),[[Lc,e.showProgress]]),Ri(dr("div",{class:"uni-video-duration"},[yI(Number(e.duration)||d.duration)],512),[[Lc,e.showProgress]])]),Ri(dr("div",{class:{"uni-video-danmu-button":!0,"uni-video-danmu-button-active":L.enable},onClick:Pu(R,["stop"])},[u("uni.video.danmu")],10,["onClick"]),[[Lc,e.danmuBtn]]),Ri(dr("div",{class:{"uni-video-fullscreen":!0,"uni-video-type-fullscreen":N.fullscreen},onClick:Pu((()=>G(!N.fullscreen)),["stop"])},null,10,["onClick"]),[[Lc,e.showFullscreenBtn]])],8,["onClick"]),[[Lc,H.controlsShow]]),Ri(dr("div",{ref:b,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[Lc,d.start&&L.enable]]),H.centerPlayBtnShow&&dr("div",{class:"uni-video-cover",onClick:Pu((()=>{}),["stop"])},[dr("div",{class:"uni-video-cover-play-button",onClick:Pu(p,["stop"])},null,8,["onClick"]),dr("p",{class:"uni-video-cover-duration"},[yI(Number(e.duration)||d.duration)])],8,["onClick"]),dr("div",{class:{"uni-video-toast":!0,"uni-video-toast-volume":"volume"===F.gestureType}},[dr("div",{class:"uni-video-toast-title"},[u("uni.video.volume")]),dr("svg",{class:"uni-video-toast-icon",width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[dr("path",{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"},null)]),dr("div",{class:"uni-video-toast-value"},[dr("div",{style:{width:100*F.volumeNew+"%"},class:"uni-video-toast-value-content"},[dr("div",{class:"uni-video-toast-volume-grids"},[Cs(10,(()=>dr("div",{class:"uni-video-toast-volume-grids-item"},null)))])],4)])],2),dr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":"progress"===F.gestureType}},[dr("div",{class:"uni-video-toast-title"},[yI(F.currentTimeNew)," / ",yI(d.duration)])],2),dr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id","onClick"])}}),TI=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},SI=Ye((()=>aT.on(Ue,TI))),EI=Fh({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},setup(e){SI();const t=Zn(null),n=Zn(null),{$attrs:o,$excludeAttrs:i,$listeners:s}=Um({excludeListeners:!0});let a;return(()=>{const i=document.createElement("iframe");Ci((()=>{for(const e in o.value)if(p(o.value,e)){const t=o.value[e];i[e]=t}})),Ci((()=>{i.src=of(e.src)})),n.value=i,a=function(e,t,n){const o=()=>{var o,i;if(n){const{top:n,left:o,width:i,height:s}=e.value.getBoundingClientRect();We(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:i+"px",height:s+"px"})}else We(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(i=e.value)?void 0:i.style.height)||"150px"})};return o}(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(i)})(),hs((()=>{var o;a(),!e.fullscreen&&(null==(o=t.value)||o.appendChild(n.value))})),ts((()=>{e.fullscreen&&(n.value.style.display="block")})),os((()=>{e.fullscreen&&(n.value.style.display="none")})),_s((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>dr(ja,null,[dr("uni-web-view",Ir({class:e.fullscreen?"uni-webview--fullscreen":""},s.value,i.value,{ref:t}),[dr(Y_,{onResize:a},null,8,["onResize"])],16)])}});const DI=Ye((()=>{Cg.forEach((e=>{kI.prototype[e]=function(t){m(t)&&this._events[e].push(t)}})),Tg.forEach((e=>{kI.prototype[e]=function(t){var n=this._events[e.replace("off","on")],o=n.indexOf(t);o>=0&&n.splice(o,1)}}))}));class kI{constructor(){this._src="";var e=this._audio=new Audio;this._stoping=!1;["src","autoplay","loop","duration","currentTime","paused","volume"].forEach((t=>{Object.defineProperty(this,t,{set:"src"===t?t=>(e.src=of(t),this._src=t,t):n=>(e[t]=n,n),get:"src"===t?()=>this._src:()=>e[t]})})),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:()=>!1,get:()=>!1}),Object.defineProperty(this,"buffered",{get(){var t=e.buffered;return t.length?t.end(t.length-1):0}}),this._events={},Cg.forEach((e=>{this._events[e]=[]})),e.addEventListener("loadedmetadata",(()=>{var t=Number(this.startTime)||0;t>0&&(e.currentTime=t)}));var t=["canplay","pause","seeking","seeked","timeUpdate"];t.concat(["play","ended","error","waiting"]).forEach((n=>{e.addEventListener(n.toLowerCase(),(()=>{if(this._stoping&&t.indexOf(n)>=0)return;const e=`on${n.slice(0,1).toUpperCase()}${n.slice(1)}`;this._events[e].forEach((e=>{e()}))}),!1)})),DI()}play(){this._stoping=!1,this._audio.play()}pause(){this._audio.pause()}stop(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((e=>{e()}))}seek(e){this._stoping=!1,"number"!=typeof(e=Number(e))||isNaN(e)||(this._audio.currentTime=e)}destroy(){this.stop()}}const LI=zf(0,(()=>new kI)),bI=Xf("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),AI="__DC_STAT_UUID",RI=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let OI;function NI(){if(OI=OI||RI[AI],!OI){OI=Date.now()+""+Math.floor(1e7*Math.random());try{RI[AI]=OI}catch(e){}}return OI}function PI(){if(!0!==__uniConfig.darkmode)return v(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function wI(){let e,t="0",n="",o="phone";const i=navigator.language;if(rf){e="iOS";const o=sf.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const i=sf.match(/\(([a-zA-Z]+);/);i&&(n=i[1])}else if(af){e="Android";const o=sf.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const i=sf.match(/\((.+?)\)/),s=i?i[1].split(";"):sf.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==c)r="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n{const e=window.devicePixelRatio,t=pf(),n=hf(t),o=ff(t,n),i=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),s=gf(o);let a=window.innerHeight;const r=xp.top,c={left:xp.left,right:s-xp.right,top:xp.top,bottom:a-xp.bottom,width:s-xp.left-xp.right,height:a-xp.top-xp.bottom},{top:u,bottom:l}=Hp();return a-=u,a-=l,{windowTop:u,windowBottom:l,windowWidth:s,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:i,statusBarHeight:r,safeArea:c,safeAreaInsets:{top:xp.top,right:xp.right,bottom:xp.bottom,left:xp.left},screenTop:i-a}}));let UI,xI=!0;function FI(){xI&&(UI=wI())}const qI=zf(0,(()=>{FI();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:i,system:s,deviceOrientation:a,deviceType:r,osname:c,osversion:l}=UI;return u({brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:NI(),deviceOrientation:a,deviceType:r,model:o,platform:i,system:s},{})})),VI=zf(0,(()=>{FI();const{theme:e,language:t,browserName:n,browserVersion:o}=UI;return u({appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Bg?Bg():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""},{})})),BI=zf(0,(()=>{xI=!0,FI(),xI=!1;const e=GI(),t=qI(),n=VI();xI=!0;const{ua:o,browserName:i,browserVersion:s,osname:a,osversion:r}=UI,c=u(e,t,n,{ua:o,browserName:i,browserVersion:s,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:r,osLanguage:void 0,osTheme:void 0});return delete c.screenTop,delete c.enableDebug,__uniConfig.darkmode||delete c.theme,function(e){let t={};return S(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(c)})),HI=Xf("getSystemInfo",((e,{resolve:t})=>t(BI())));const KI=Xf("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],i=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const i=document.createElement("textarea");i.setAttribute("inputmode","none"),i.id="#clipboard",i.style.position="fixed",i.style.top="-9999px",i.style.zIndex="-9999",document.body.appendChild(i),i.value=e,i.select(),i.setSelectionRange(0,i.value.length);const s=document.execCommand("Copy",!1);i.blur(),s?t():n()}(e,t,n)}},new Promise(((e,t)=>{var s=e=>{try{r(i.next(e))}catch(aL){t(aL)}},a=e=>{try{r(i.throw(e))}catch(aL){t(aL)}},r=t=>t.done?e(t.value):Promise.resolve(t.value).then(s,a);r((i=i.apply(n,o)).next())}));var n,o,i}),0,Zg);const jI=zf(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function $I(e){const t=localStorage&&localStorage.getItem(e);if(!v(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=v(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const WI=zf(0,(e=>{try{return $I(e)}catch(t){return""}})),YI=zf(0,(e=>{localStorage&&localStorage.removeItem(e)})),zI=zf(0,(()=>{localStorage&&localStorage.clear()})),XI=Xf("openDocument",(({filePath:e},{resolve:t})=>(window.open(e),t())),0,Qg),JI=Xf("hideKeyboard",((e,{resolve:t,reject:n})=>{const o=document.activeElement;!o||"TEXTAREA"!==o.tagName&&"INPUT"!==o.tagName||(o.blur(),t())}));const ZI=Xf("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,i_),QI={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 eM({count:e,sourceType:t,type:n,extension:o}){Mm();const i=document.createElement("input");return i.type="file",We(i,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),i.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${QI[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(i.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&i.setAttribute("capture","camera"),i}let tM=null;const nM=Xf("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:i,reject:s})=>{sp();const{t:a}=Zd();tM&&(document.body.removeChild(tM),tM=null),tM=eM({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(tM),tM.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let i=0;i(s=s||K_(t),s)}),ie))},tempFiles:o})})),tM.click(),Cm()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,o_);let oM=null;const iM=Xf("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:i})=>{sp();const{t:s}=Zd();oM&&(document.body.removeChild(oM),oM=null),oM=eM({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(oM),oM.addEventListener("change",(function(t){const n=t.target,i=[];if(n&&n.files){const t=n.files.length;for(let o=0;o(s=s||K_(t),s)}),oe))},tempFiles:i})})),oM.click(),Cm()||console.warn(s("uni.chooseFile.notUserActivation"))}),0,e_),sM={esc:["Esc","Escape"],enter:["Enter"]},aM=Object.keys(sM);function rM(){const e=Zn(""),t=Zn(!1),n=n=>{if(t.value)return;const o=aM.find((e=>-1!==sM[e].indexOf(n.key)));o&&(e.value=o),Oo((()=>e.value=""))};return hs((()=>{document.addEventListener("keyup",n)})),_s((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}const cM=dr("div",{class:"uni-mask"},null,-1);function uM(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ku(ji({setup:()=>()=>(Ja(),or(e,t,null,16))}))}function lM(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function dM(e,{onEsc:t,onEnter:n}){const o=Zn(e.visible),{key:i,disable:s}=rM();return Di((()=>e.visible),(e=>o.value=e)),Di((()=>o.value),(e=>s.value=!e)),Ci((()=>{const{value:e}=i;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let pM=0,hM="";function fM(e){let t=pM;pM+=e?1:-1,pM=Math.max(0,pM),pM>0?0===t&&(hM=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=hM,hM="")}const gM=qh({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=wn({direction:"none"});let n=1,o=0,i=0,s=0,a=0;function r({detail:e}){n=e.scale}function c(e){const t=e.target.getBoundingClientRect();o=t.width,i=t.height}function u(e){const t=e.target.getBoundingClientRect();s=t.width,a=t.height,d(e)}function l(e){const r=n*o>s,c=n*i>a;t.direction=r&&c?"all":r?"horizontal":c?"vertical":"none",d(e)}function d(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return dr(Fm,{style:n,onTouchstart:Vh(u),onTouchmove:Vh(d),onTouchend:Vh(l)},{default:()=>[dr(Zm,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:r},{default:()=>[dr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:c},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function _M(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const mM=qh({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){hs((()=>fM(!0))),ms((()=>fM(!1)));const n=Zn(null),o=Zn(_M(e));let i;function s(){i||Oo((()=>{t("close")}))}function a(e){o.value=e.detail.current}Di((()=>e.current),(()=>o.value=_M(e))),hs((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{i=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(i=!0)}))}));const 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 dr("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},[dr(wv,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(i=t=e.urls.map((e=>dr(Uv,null,{default:()=>[dr(gM,{src:e},null,8,["src"])]}))),"function"==typeof i||"[object Object]"===Object.prototype.toString.call(i)&&!ir(i)?t:{default:()=>[t],_:1}),8,["current","onChange"]),dr("div",{style:r},[Zp("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var i}}});let vM,yM=null;const IM=()=>{yM=null,Oo((()=>{null==vM||vM.unmount(),vM=null}))},MM=Xf("previewImage",((e,{resolve:t})=>{yM?u(yM,e):(yM=wn(e),Oo((()=>{vM=uM(mM,yM,IM),vM.mount(lM("u-a-p"))}))),t()}),0,s_);let CM=null;const TM=Xf("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{sp();const{t:i}=Zd();CM&&(document.body.removeChild(CM),CM=null),CM=eM({sourceType:e,extension:t,type:"video"}),document.body.appendChild(CM),CM.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const i={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(i,"tempFilePath",{get(){return o=o||K_(this.tempFile),o}});const s=document.createElement("video");if(void 0!==s.onloadedmetadata){const e=K_(t);s.onloadedmetadata=function(){j_(e),n(u(i,{duration:s.duration||0,width:s.videoWidth||0,height:s.videoHeight||0}))},setTimeout((()=>{s.onloadedmetadata=null,j_(e),n(i)}),300),s.src=e}else n(i)})),CM.click(),Cm()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,t_),SM=Yf("request",(({url:e,data:t,header:n={},method:o,dataType:i,responseType:s,withCredentials:a,timeout:r=__uniConfig.networkTimeout.request},{resolve:c,reject:u})=>{let l=null;const d=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(v(t)||t instanceof ArrayBuffer)l=t;else if("json"===d)try{l=JSON.stringify(t)}catch(_){l=t.toString()}else if("urlencoded"===d){const e=[];for(const n in t)p(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));l=e.join("&")}else l=t.toString();const h=new XMLHttpRequest,f=new EM(h);h.open(o,e);for(const m in n)p(n,m)&&h.setRequestHeader(m,n[m]);const g=setTimeout((function(){h.onload=h.onabort=h.onerror=null,f.abort(),u("timeout",{errCode:5})}),r);return h.responseType=s,h.onload=function(){clearTimeout(g);const e=h.status;let t="text"===s?h.responseText:h.response;if("text"===s&&"json"===i)try{t=JSON.parse(t)}catch(_){}c({data:t,statusCode:e,header:DM(h.getAllResponseHeaders()),cookies:[]})},h.onabort=function(){clearTimeout(g),u("abort",{errCode:600003})},h.onerror=function(){clearTimeout(g),u(void 0,{errCode:5})},h.withCredentials=a,h.send(l),f}),0,u_);class EM{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 DM(e){const t={};return e.split(se).forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class kM{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._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const LM=Yf("downloadFile",(({url:e,header:t={},timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:i})=>{var s,a=new XMLHttpRequest,r=new kM(a);return a.open("GET",e,!0),Object.keys(t).forEach((e=>{a.setRequestHeader(e,t[e])})),a.responseType="blob",a.onload=function(){clearTimeout(s);const t=a.status,n=this.response;let i;const r=a.getResponseHeader("content-disposition");if(r){const e=r.match(/filename="?(\S+)"?\b/);e&&(i=e[1])}n.name=i||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:K_(n)})},a.onabort=function(){clearTimeout(s),i("abort",{errCode:600003})},a.onerror=function(){clearTimeout(s),i("",{errCode:602001})},a.onprogress=function(e){r._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})}))},a.send(),s=setTimeout((function(){a.onprogress=a.onload=a.onabort=a.onerror=null,r.abort(),i("timeout",{errCode:5})}),n),r}),0,l_);class bM{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 AM=Yf("uploadFile",(({url:e,file:t,filePath:n,name:o,files:i,header:s={},formData:a={},timeout:r=__uniConfig.networkTimeout.uploadFile},{resolve:c,reject:u})=>{var l=new bM;return h(i)&&i.length||(i=[{name:o,file:t,uri:n}]),Promise.all(i.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(H_(e)):B_(t)))).then((function(t){var n,o=new XMLHttpRequest,d=new FormData;Object.keys(a).forEach((e=>{d.append(e,a[e])})),Object.values(i).forEach((({name:e},n)=>{const o=t[n];d.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(s).forEach((e=>{o.setRequestHeader(e,s[e])})),o.upload.onprogress=function(e){l._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),u("",{errCode:602001})},o.onabort=function(){clearTimeout(n),u("abort",{errCode:600003})},o.onload=function(){clearTimeout(n);const e=o.status;c({statusCode:e,data:o.responseText||o.response})},l._isAbort?u("abort",{errCode:600003}):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,l.abort(),u("timeout",{errCode:5})}),r),o.send(d),l._xhr=o)})).catch((()=>{setTimeout((()=>{u("file error")}),0)})),l}),0,d_),RM=[],OM={open:"",close:"",error:"",message:""};class NM{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach((e=>{this._callbacks[e]=[],n.addEventListener(e,(t=>{const{data:n,code:o,reason:i}=t,s="message"===e?{data:n}:"close"===e?{code:o,reason:i}:{};if(this._callbacks[e].forEach((t=>{try{t(s)}catch(aL){console.error(`thirdScriptError\n${aL};at socketTask.on${O(e)} callback function\n`,aL)}})),this===RM[0]&&OM[e]&&aT.invokeOnCallback(OM[e],s),"error"===e||"close"===e){const e=RM.indexOf(this);e>=0&&RM.splice(e,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((e=>{Object.defineProperty(this,e,{get:()=>n[e]})}))}catch(aL){o=aL}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw Je(e,{errMsg:"sendSocketMessage:fail SocketTask.readyState is not OPEN",errCode:10002}),new Error("SocketTask.readyState is not OPEN");n.send(t),Je(e,"sendSocketMessage:ok")}catch(o){Je(e,{errMsg:`sendSocketMessage:fail ${o}`,errCode:602001})}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;v(o)?t.close(n,o):t.close(n),Je(e,"closeSocket:ok")}catch(n){Je(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const PM=Yf("connectSocket",(({url:e,protocols:t},{resolve:n,reject:o})=>new NM(e,t,((e,t)=>{e?o(e.toString(),{errCode:600009}):(RM.push(t),n())}))),0,p_),wM=Xf("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===rh(Ce,{from:e.from||"navigateBack"})&&(o=!1),o?(lI().$router.go(-e.delta),t()):n(Ce)}),0,T_),GM=Xf(f_,(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:i})=>{if(Oy.handledBeforeEntryPageRoutes)return Iy({type:f_,url:e,events:t,isAutomatedTesting:n}).then(o).catch(i);Ny.push({args:{type:f_,url:e,events:t,isAutomatedTesting:n},resolve:o,reject:i})}),0,y_);function UM(e){__uniConfig.darkmode&&aT.on(he,e)}function xM(e){aT.off(he,e)}function FM(e){let t={};return __uniConfig.darkmode&&(t=yt(e,__uniConfig.themeConfig,PI())),__uniConfig.darkmode?t:e}function qM(e,t){const n=qn(e),o=n?wn(FM(e)):FM(e);return __uniConfig.darkmode&&n&&Di(e,(e=>{const t=FM(e);for(const n in t)o[n]=t[n]})),t&&UM(t),o}const VM={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},BM=ji({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=Zn(""),o=()=>a.value=!1,i=()=>(o(),t("close","cancel")),s=()=>(o(),t("close","confirm",n.value)),a=dM(e,{onEsc:i,onEnter:()=>{!e.editable&&s()}}),r=function(e){const t=Zn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=VM[e].cancelColor})(e,t)};return Ci((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===PI()&&n({theme:"dark"}),UM(n))):xM(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:c,confirmText:u,confirmColor:l,editable:d,placeholderText:p}=e;return n.value=o,dr(lc,{name:"uni-fade"},{default:()=>[Ri(dr("uni-modal",{onTouchmove:Fp},[cM,dr("div",{class:"uni-modal"},[t?dr("div",{class:"uni-modal__hd"},[dr("strong",{class:"uni-modal__title",textContent:t||""},null,8,["textContent"])]):null,d?dr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:p,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):dr("div",{class:"uni-modal__bd",onTouchmovePassive:qp,textContent:o},null,40,["onTouchmovePassive","textContent"]),dr("div",{class:"uni-modal__ft"},[c&&dr("div",{style:{color:r.value},class:"uni-modal__btn uni-modal__btn_default",onClick:i},[e.cancelText],12,["onClick"]),dr("div",{style:{color:l},class:"uni-modal__btn uni-modal__btn_primary",onClick:s},[u],12,["onClick"])])])],40,["onTouchmove"]),[[Lc,a.value]])]})}}});let HM;const KM=Ye((()=>{aT.on("onHidePopup",(()=>HM.visible=!1))}));let jM;function $M(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&HM.editable&&(o.content=t),jM&&jM(o)}const WM=Xf("showModal",((e,{resolve:t})=>{KM(),jM=t,HM?(u(HM,e),HM.visible=!0):(HM=wn(e),Oo((()=>(uM(BM,HM,$M).mount(lM("u-a-m")),Oo((()=>HM.visible=!0))))))}),0,N_),YM={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==P_.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},zM="uni-toast__icon",XM={light:"#fff",dark:"rgba(255,255,255,0.9)"},JM=e=>XM[e],ZM=ji({name:"Toast",props:YM,setup(e){np(),op();const{Icon:t}=function(e){const t=Zn(JM(PI())),n=({theme:e})=>t.value=JM(e);Ci((()=>{e.visible?UM(n):xM(n)}));const o=Hr((()=>{switch(e.icon){case"success":return dr(Zp(zp,t.value,38),{class:zM});case"error":return dr(Zp(Xp,t.value,38),{class:zM});case"loading":return dr("i",{class:[zM,"uni-loading"]},null,2);default:return null}}));return{Icon:o}}(e),n=dM(e,{});return()=>{const{mask:o,duration:i,title:s,image:a}=e;return dr(lc,{name:"uni-fade"},{default:()=>[Ri(dr("uni-toast",{"data-duration":i},[o?dr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:Fp},null,40,["onTouchmove"]):"",a||t.value?dr("div",{class:"uni-toast"},[a?dr("img",{src:a,class:zM},null,10,["src"]):t.value,dr("p",{class:"uni-toast__content"},[s])]):dr("div",{class:"uni-sample-toast"},[dr("p",{class:"uni-simple-toast__text"},[s])])],8,["data-duration"]),[[Lc,n.value]])]})}}});let QM,eC,tC="";const nC=Tt();function oC(e){QM?u(QM,e):(QM=wn(u(e,{visible:!1})),Oo((()=>{nC.run((()=>{Di([()=>QM.visible,()=>QM.duration],(([e,t])=>{if(e){if(eC&&clearTimeout(eC),"onShowLoading"===tC)return;eC=setTimeout((()=>{cC("onHideToast")}),t)}else eC&&clearTimeout(eC)}))})),aT.on("onHidePopup",(()=>cC("onHidePopup"))),uM(ZM,QM,(()=>{})).mount(lM("u-a-t"))}))),setTimeout((()=>{QM.visible=!0}),10)}const iC=Xf("showToast",((e,{resolve:t,reject:n})=>{oC(e),tC="onShowToast",t()}),0,w_),sC={icon:"loading",duration:1e8,image:""},aC=Xf("showLoading",((e,{resolve:t,reject:n})=>{u(e,sC),oC(e),tC="onShowLoading",t()}),0,O_),rC=Xf("hideLoading",((e,{resolve:t,reject:n})=>{cC("onHideLoading"),t()}));function cC(e){const{t:t}=Zd();if(!tC)return;let n="";if("onHideToast"===e&&"onShowToast"!==tC?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==tC&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);tC="",setTimeout((()=>{QM.visible=!1}),10)}function uC(e){const t=Zn(0),n=Zn(0),o=Hr((()=>t.value>=500&&n.value>=500)),i=Hr((()=>{const t={content:{transform:"",left:"",top:"",bottom:""},triangle:{left:"",top:"",bottom:"","border-width":"","border-color":""}},i=t.content,s=t.triangle,a=e.popover;function r(e){return Number(e)||0}if(o.value&&a){u(s,{position:"absolute",width:"0",height:"0","margin-left":"-6px","border-style":"solid"});const e=r(a.left),t=r(a.width),o=r(a.top),c=r(a.height),l=e+t/2;i.transform="none !important";const d=Math.max(0,l-150);i.left=`${d}px`;let p=Math.max(12,l-d);p=Math.min(288,p),s.left=`${p}px`;const h=n.value/2;o+c-h>h-o?(i.top="auto",i.bottom=n.value-o+6+"px",s.bottom="-6px",s["border-width"]="6px 6px 0 6px",s["border-color"]="#fcfcfd transparent transparent transparent"):(i.top=`${o+c+6}px`,s.top="-6px",s["border-width"]="0 6px 6px 6px",s["border-color"]="transparent transparent #fcfcfd transparent")}return t}));return hs((()=>{const e=()=>{const{windowWidth:e,windowHeight:o,windowTop:i}=BI();t.value=e,n.value=o+(i||0)};window.addEventListener("resize",e),e(),ms((()=>{window.removeEventListener("resize",e)}))})),{isDesktop:o,popupStyle:i}}const lC={light:{listItemColor:"#000000",cancelItemColor:"#000000"},dark:{listItemColor:"rgba(255, 255, 255, 0.8)",cancelItemColor:"rgba(255, 255, 255)"}};const dC=ji({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}){tp();const n=Zn(260),o=Zn(0),i=Zn(0),s=Zn(0),a=Zn(0),r=Zn(null),c=Zn(null),{t:u}=Zd(),{_close:l}=function(e,t){function n(e){t("close",e)}const{key:o,disable:i}=rM();return Di((()=>e.visible),(e=>i.value=!e)),Ci((()=>{const{value:e}=o;"esc"===e&&n&&n(-1)})),{_close:n}}(e,t),{popupStyle:d}=uC(e);let p;function h(e){const t=s.value+e.deltaY;Math.abs(t)>10?(a.value+=t/3,a.value=a.value>=o.value?o.value:a.value<=0?0:a.value,p.scrollTo(a.value)):s.value=t,e.preventDefault()}hs((()=>{const{scroller:e,handleTouchStart:t,handleTouchMove:n,handleTouchEnd:o}=mv(r.value,{enableY:!0,friction:new dv(1e-4),spring:new fv(2,90,20),onScroll:e=>{a.value=e.target.scrollTop}});p=e,Km(r.value,(i=>{if(e)switch(i.detail.state){case"start":t(i);break;case"move":n(i);break;case"end":case"cancel":o(i)}}),!0)})),Di((()=>e.visible),(()=>{Oo((()=>{e.title&&(i.value=document.querySelector(".uni-actionsheet__title").offsetHeight),p.update(),r.value&&(o.value=r.value.clientHeight-n.value),document.querySelectorAll(".uni-actionsheet__cell").forEach((e=>{!function(e){const t=20;let n=0,o=0;e.addEventListener("touchstart",(e=>{const t=e.changedTouches[0];n=t.clientX,o=t.clientY})),e.addEventListener("touchend",(e=>{const i=e.changedTouches[0];if(Math.abs(i.clientX-n){o[e]=i[e]})),e.target.dispatchEvent(o)}}))}(e)}))}))}));const f=function(e){const t=wn({listItemColor:"#000",cancelItemColor:"#000"}),n=({theme:e})=>{!function(e,t){["listItemColor","cancelItemColor"].forEach((n=>{t[n]=lC[e][n]}))}(e,t)};return Ci((()=>{e.visible?(t.listItemColor=t.cancelItemColor=e.itemColor,"#000"===e.itemColor&&(n({theme:PI()}),UM(n))):xM(n)})),t}(e);return()=>dr("uni-actionsheet",{onTouchmove:Fp},[dr(lc,{name:"uni-fade"},{default:()=>[Ri(dr("div",{class:"uni-mask uni-actionsheet__mask",onClick:()=>l(-1)},null,8,["onClick"]),[[Lc,e.visible]])]}),dr("div",{class:["uni-actionsheet",{"uni-actionsheet_toggle":e.visible}],style:d.value.content},[dr("div",{ref:c,class:"uni-actionsheet__menu",onWheel:h},[e.title?dr(ja,null,[dr("div",{class:"uni-actionsheet__cell",style:{height:`${i.value}px`}},null),dr("div",{class:"uni-actionsheet__title"},[e.title])]):"",dr("div",{style:{maxHeight:`${n.value}px`,overflow:"hidden"}},[dr("div",{ref:r},[e.itemList.map(((e,t)=>dr("div",{key:t,style:{color:f.listItemColor},class:"uni-actionsheet__cell",onClick:()=>l(t)},[e],12,["onClick"])))],512)])],40,["onWheel"]),dr("div",{class:"uni-actionsheet__action"},[dr("div",{style:{color:f.cancelItemColor},class:"uni-actionsheet__cell",onClick:()=>l(-1)},[u("uni.showActionSheet.cancel")],12,["onClick"])]),dr("div",{style:d.value.triangle},null,4)],6)],40,["onTouchmove"])}});let pC,hC,fC;const gC=Ye((()=>{aT.on("onHidePopup",(()=>fC.visible=!1))}));function _C(e){-1===e?hC&&hC("cancel"):pC&&pC({tapIndex:e})}const mC=Xf("showActionSheet",((e,{resolve:t,reject:n})=>{gC(),pC=t,hC=n,fC?(u(fC,e),fC.visible=!0):(fC=wn(e),Oo((()=>(uM(dC,fC,_C).mount(lM("u-s-a-s")),Oo((()=>fC.visible=!0))))))}),0,R_),vC=Xf("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:i})=>{(function(e,t,n){const o=document.fonts;if(o){const i=new FontFace(e,t,n);return i.load().then((()=>{o.add&&o.add(i)}))}return new Promise((o=>{const i=document.createElement("style"),s=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:i,variant:a,featureSettings:r}=n;e&&s.push(`font-style:${e}`),t&&s.push(`font-weight:${t}`),o&&s.push(`font-stretch:${o}`),i&&s.push(`unicode-range:${i}`),a&&s.push(`font-variant:${a}`),r&&s.push(`font-feature-settings:${r}`)}i.innerText=`@font-face{font-family:"${e}";src:${t};${s.join(";")}}`,document.head.appendChild(i),o()}))})(e,t=t.startsWith('url("')||t.startsWith("url('")?`url('${of(t.substring(5,t.length-2))}')`:t.startsWith("url(")?`url('${of(t.substring(4,t.length-1))}')`:of(t),n).then((()=>{o()})).catch((e=>{i(`loadFontFace:fail ${e}`)}))}));function yC(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,aT.emit("onNavigationBarChange",{titleText:t})}Ci(t),ts(t)}const IC=Xf(b_,((e,{resolve:t,reject:n})=>{!function(e,t,n,o,i){if(!e)return i("page not found");const{navigationBar:s}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:i,timingFunc:a}=o;e&&(s.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(s.backgroundColor=t),s.duration=i+"ms",s.timingFunc=a;break;case"showNavigationBarLoading":s.loading=!0;break;case"hideNavigationBarLoading":s.loading=!1;break;case b_:const{title:r}=n;s.titleText=r}o()}(nh(),b_,e,t,n)})),MC=Xf("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t){if(v(e)){const t=document.querySelector(e);if(t){const{top:n}=t.getBoundingClientRect();e=n+window.pageYOffset;const o=document.querySelector("uni-page-head");o&&(e-=o.offsetHeight)}}e<0&&(e=0);const n=document.documentElement,{clientHeight:o,scrollHeight:i}=n;if(e=Math.min(e,i-o),0===t)return void(n.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const s=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),s(t-10)}))};s(t)}(t||e||0,n),o()}),0,A_),CC=Xf(G_,((e,{resolve:t})=>{aT.invokeViewMethod(G_,{},oh()),t()})),TC=["text","iconPath","iconfont","selectedIconPath","visible"],SC=["color","selectedColor","backgroundColor","borderStyle","borderColor","midButton"],EC=["badge","redDot"];function DC(e,t,n){t.forEach((function(t){p(n,t)&&(e[t]=n[t])}))}function kC(e,t,n,o){var i;let s=!1;const a=xy();if(a.length&&a[a.length-1].$page.meta.isTabBar&&(s=!0),!s)return o("not TabBar page");const{index:r}=t;if("number"==typeof r){const e=null==(i=null==__uniConfig?void 0:__uniConfig.tabBar)?void 0:i.list.length;if(!e||r>=e)return o("tabbar item not found")}const c=Cy();switch(e){case"showTabBar":c.shown=!0;break;case U_:c.shown=!1;break;case"setTabBarItem":const e=c.list[r],n=e.pagePath;DC(e,TC,t);const{pagePath:o}=t;if(o){const e=je(o);e!==n&&function(e,t,n){const o=hh(je(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const i=hh(je(n));if(i){const{meta:t}=i;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=$e(n))}}(r,n,e)}break;case"setTabBarStyle":DC(c,SC,t);break;case"showTabBarRedDot":DC(c.list[r],EC,{badge:"",redDot:!0});break;case"setTabBarBadge":DC(c.list[r],EC,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":DC(c.list[r],EC,{badge:"",redDot:!1})}n()}const LC=Xf(U_,((e,{resolve:t,reject:n})=>{kC(U_,e||{},t,n)})),bC=qh({name:"TabBar",setup(){const e=Zn([]),t=Cy(),n=qM(t,(()=>{const e=FM(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,n.midButton=e.midButton,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}Zn(u({type:"midButton"},e.midButton)),Ci(n)}(n,e),function(e){Di((()=>e.shown),(t=>{jp({"--window-bottom":by(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return Ci((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,i=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=i}})),(t,n)=>()=>{const{pagePath:o,text:i}=t;let s=je(o);s===__uniRoutes[0].alias&&(s="/"),e.path!==s?fy({from:"tabBar",url:s,tabBarText:i}):rh("onTabItemTap",{index:n,text:i,pagePath:o})}}(Ad(),n,e),{style:i,borderStyle:s,placeholderStyle:a}=function(e){const t=Hr((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||ky&&n&&"none"!==n&&(t=NC[n]),{backgroundColor:t||AC,backdropFilter:"none"!==n?"blur(10px)":n}})),n=Hr((()=>{const{borderStyle:t,borderColor:n}=e;return n&&v(n)?{backgroundColor:n}:{backgroundColor:PC[t]||PC.black}})),o=Hr((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return hs((()=>{n.iconfontSrc&&vC({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:i,color:s}=e;return n.value.map(((n,a)=>{const r=o===a;return function(e,t,n,o,i,s,a,r){return dr("div",{key:a,class:"uni-tabbar__item",onClick:r(i,a)},[wC(e,t||"",n,o,i,s)],8,["onClick"])}(r?i:s,r&&n.selectedIconPath||n.iconPath||"",n.iconfont?r&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?r&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,a,t)}))}(n,o,e);return dr("uni-tabbar",{class:"uni-tabbar-"+n.position},[dr("div",{class:"uni-tabbar",style:i.value},[dr("div",{class:"uni-tabbar-border",style:s.value},null,4),t],4),dr("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});const AC="#f7f7fa",RC="rgb(0, 0, 0, 0.8)",OC="rgb(250, 250, 250, 0.8)",NC={dark:RC,light:OC,extralight:OC},PC={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function wC(e,t,n,o,i,s){const{height:a}=s;return dr("div",{class:"uni-tabbar__bd",style:{height:a}},[n?UC(n,o||RC,i,s):t&&GC(t,i,s),i.text&&xC(e,i,s),i.redDot&&FC(i.badge)],4)}function GC(e,t,n){const{type:o,text:i}=t,{iconWidth:s}=n;return dr("div",{class:"uni-tabbar__icon"+(i?" uni-tabbar__icon__diff":""),style:{width:s,height:s}},["midButton"!==o&&dr("img",{src:of(e)},null,8,["src"])],6)}function UC(e,t,n,o){var i;const{type:s,text:a}=n,{iconWidth:r}=o,c="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),u={width:r,height:r},l={fontSize:(null==(i=n.iconfont)?void 0:i.fontSize)||r,color:t};return dr("div",{class:c,style:u},["midButton"!==s&&dr("div",{class:"uni-tabbar__iconfont",style:l},[e],4)],6)}function xC(e,t,n){const{iconPath:o,text:i}=t,{fontSize:s,spacing:a}=n;return dr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:s,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"}},[i],4)}function FC(e){return dr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const qC="0px",VC=qh({name:"Layout",setup(e,{emit:t}){const n=Zn(null);Kp({"--status-bar-height":qC,"--top-window-height":qC,"--window-left":qC,"--window-right":qC,"--window-margin":qC,"--tab-bar-height":qC});const o=function(){const e=Ad();return{routeKey:Hr((()=>Hy("/"+e.meta.route,ly()))),isTabBar:Hr((()=>e.meta.isTabBar)),routeCache:jy}}(),{layoutState:i,windowState:s}=function(){uy();{const e=wn({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Di((()=>e.marginWidth),(e=>Kp({"--window-margin":e+"px"}))),Di((()=>e.leftWindowWidth+e.marginWidth),(e=>{Kp({"--window-left":e+"px"})})),Di((()=>e.rightWindowWidth+e.marginWidth),(e=>{Kp({"--window-right":e+"px"})})),{layoutState:e,windowState:Hr((()=>({})))}}}();!function(e,t){const n=uy();function o(){const o=document.body.clientWidth,i=xy();let s={};if(i.length>0){s=i[i.length-1].$page.meta}else{const e=hh(n.path,!0);e&&(s=e.meta)}const a=parseInt(String((p(s,"maxWidth")?s.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let r=!1;r=o>a,r&&a?(e.marginWidth=(o-a)/2,Oo((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,Oo((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Di([()=>n.path],o),hs((()=>{o(),window.addEventListener("resize",o)}))}(i,n);const a=function(){const e=uy(),t=Cy(),n=Hr((()=>e.meta.isTabBar&&t.shown));return Kp({"--tab-bar-height":t.height}),n}(),r=function(e){const t=Zn(!1);return Hr((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(a);return()=>{const e=function(e){const t=function({routeKey:e,isTabBar:t,routeCache:n}){return dr(Ld,null,{default:Qo((({Component:o})=>[(Ja(),or(Zi,{matchBy:"key",cache:n},[(Ja(),or(ci(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e);return t}(o),t=function(e){return Ri(dr(bC,null,null,512),[[Lc,e.value]])}(a);return dr("uni-app",{ref:n,class:r.value},[e,t],2)}}});const BC="scanCode",HC=Xf(BC,Jf(BC)),KC="login",jC=Xf(KC,Jf(KC)),$C="getProvider",WC=Xf($C,Jf($C));function YC(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!ir(e)}function zC(e){if(e.mode===ZC.TIME)return"00:00";if(e.mode===ZC.DATE){const t=(new Date).getFullYear()-150;switch(e.fields){case QC.YEAR:return t.toString();case QC.MONTH:return t+"-01";default:return t+"-01-01"}}return""}function XC(e){if(e.mode===ZC.TIME)return"23:59";if(e.mode===ZC.DATE){const t=(new Date).getFullYear()+150;switch(e.fields){case QC.YEAR:return t.toString();case QC.MONTH:return t+"-12";default:return t+"-12-31"}}return""}function JC(e,t,n,o){const i=e.mode===ZC.DATE?"-":":",s=e.mode===ZC.DATE?t.dateArray:t.timeArray;let a;if(e.mode===ZC.TIME)a=2;else switch(e.fields){case QC.YEAR:a=1;break;case QC.MONTH:a=2;break;default:a=3}const r=String(n).split(i);let c=[];for(let u=0;u=0&&(c=o?JC(e,t,o):c.map((()=>0))),c}const ZC={SELECTOR:"selector",MULTISELECTOR:"multiSelector",TIME:"time",DATE:"date"},QC={YEAR:"year",MONTH:"month",DAY:"day"},eT={PICKER:"picker",SELECT:"select"},tT=Fh({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:ZC.SELECTOR,validator:e=>Object.values(ZC).includes(e)},fields:{type:String,default:""},start:{type:String,default:e=>zC(e)},end:{type:String,default:e=>XC(e)},disabled:{type:[Boolean,String],default:!1},selectorType:{type:String,default:""}},emits:["change","cancel","columnchange"],setup(e,{emit:t,slots:n}){rp();const{t:o}=Zd(),i=Zn(null),s=Zn(null),a=Zn(null),r=Zn(null),c=Zn(!1),{state:u,rangeArray:l}=function(e){const t=wn({valueSync:void 0,visible:!1,contentVisible:!1,popover:null,valueChangeSource:"",timeArray:[],dateArray:[],valueArray:[],oldValueArray:[],isDesktop:!1,popupStyle:{content:{},triangle:{}}}),n=Hr((()=>{let n=e.range;switch(e.mode){case ZC.SELECTOR:return[n];case ZC.MULTISELECTOR:return n;case ZC.TIME:return t.timeArray;case ZC.DATE:{const n=t.dateArray;switch(e.fields){case QC.YEAR:return[n[0]];case QC.MONTH:return[n[0],n[1]];default:return[n[0],n[1],n[2]]}}}return[]}));return{state:t,rangeArray:n}}(e),d=Bh(i,t),{system:p,selectorTypeComputed:f,_show:g,_l10nColumn:_,_l10nItem:m,_input:v,_fixInputPosition:y,_pickerViewChange:I,_cancel:M,_change:C,_resetFormData:T,_getFormData:S,_createTime:E,_createDate:D,_setValueSync:k}=function(e,t,n,o,i,s,a){const r=function(){const e=Zn(!1);return e.value=nT(),e}(),c=function(){const e=Zn("");return e.value=oT(),e}(),u=Hr((()=>{const t=e.selectorType;return Object.values(eT).includes(t)?t:r.value?eT.PICKER:eT.SELECT})),l=Hr((()=>e.mode===ZC.DATE&&!Object.values(QC).includes(e.fields)&&t.isDesktop?c.value:"")),d=Hr((()=>JC(e,t,e.start,zC(e)))),p=Hr((()=>JC(e,t,e.end,XC(e))));function f(n){if(e.disabled)return;t.valueChangeSource="";let o=i.value,s=n.currentTarget;o.remove(),(document.querySelector("uni-app")||document.body).appendChild(o),o.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 g(){return{value:t.valueSync,key:e.name}}function _(){switch(e.mode){case ZC.SELECTOR:t.valueSync=0;break;case ZC.MULTISELECTOR:t.valueSync=e.value.map((e=>0));break;case ZC.DATE:case ZC.TIME:t.valueSync=""}}function m(){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,o=t+150;if(e.start){const t=new Date(e.start).getFullYear();!isNaN(t)&&to&&(o=t)}return{start:n,end:o}}function y(){let e=[];const n=v();for(let t=n.start,s=n.end;t<=s;t++)e.push(String(t));let o=[];for(let t=1;t<=12;t++)o.push((t<10?"0":"")+t);let i=[];for(let t=1;t<=31;t++)i.push((t<10?"0":"")+t);t.dateArray.push(e,o,i)}function I(e){return 60*e[0]+e[1]}function M(e){const t=31;return e[0]*t*12+(e[1]||0)*t+(e[2]||0)}function C(e,t){for(let n=0;nr?0:a)}}break;case ZC.TIME:case ZC.DATE:t.valueSync=String(n);break;default:{const e=Number(n);t.valueSync=e<0?0:e;break}}}function S(){let n,o=t.valueSync;switch(e.mode){case ZC.MULTISELECTOR:n=[...o];break;case ZC.TIME:n=JC(e,t,o,Xe({mode:ZC.TIME}));break;case ZC.DATE:n=JC(e,t,o,Xe({mode:ZC.DATE}));break;default:n=[o]}t.oldValueArray=[...n],t.valueArray=[...n]}function E(){let n=t.valueArray;switch(e.mode){case ZC.SELECTOR:return n[0];case ZC.MULTISELECTOR:return n.map((e=>e));case ZC.TIME:return t.valueArray.map(((e,n)=>t.timeArray[n][e])).join(":");case ZC.DATE:return t.valueArray.map(((e,n)=>t.dateArray[n][e])).join("-")}}function D(){L(),t.valueChangeSource="click";const e=E();t.valueSync=h(e)?e.map((e=>e)):e,n("change",{},{value:e})}function k(e){if("firefox"===l.value&&e){const{top:n,left:o,width:i,height:s}=t.popover,{pageX:a,pageY:r}=e;if(a>o&&an&&r{let e=i.value;e.remove(),o.value.prepend(e),e.style.display="none"}),260)}function b(){e.mode===ZC.SELECTOR&&u.value===eT.SELECT&&(s.value.scrollTop=34*t.valueArray[0])}function A(e){const n=e.target;t.valueSync=n.value,Oo((()=>{D()}))}function R(e){if("chrome"===l.value){const t=o.value.getBoundingClientRect(),n=32;a.value.style.left=e.clientX-t.left-1.5*n+"px",a.value.style.top=e.clientY-t.top-.5*n+"px"}}function O(e){t.valueArray=N(e.detail.value,!0)}function N(t,n){const{getLocale:o}=Zd();if(e.mode===ZC.DATE){const i=o();if(!i.startsWith("zh"))switch(e.fields){case QC.YEAR:return t;case QC.MONTH:return[t[1],t[0]];default:switch(i){case"es":case"fr":return[t[2],t[1],t[0]];default:return n?[t[2],t[0],t[1]]:[t[1],t[2],t[0]]}}}return t}function P(t,n){const{getLocale:o}=Zd();if(e.mode===ZC.DATE){const i=o();if(i.startsWith("zh")){return t+["年","月","日"][n]}if(e.fields!==QC.YEAR&&n===(e.fields===QC.MONTH||"es"!==i&&"fr"!==i?0:1)){let e;switch(i){case"es":e=["enero","febrero","marzo","abril","mayo","junio","​​julio","agosto","septiembre","octubre","noviembre","diciembre"];break;case"fr":e=["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"];break;default:e=["January","February","March","April","May","June","July","August","September","October","November","December"]}return e[Number(t)-1]}}return t}return Di((()=>t.visible),(e=>{e?(clearTimeout(iT),t.contentVisible=e,b()):iT=setTimeout((()=>{t.contentVisible=e}),300)})),Di([()=>e.mode,()=>e.value,()=>e.range],T,{deep:!0}),Di((()=>t.valueSync),S,{deep:!0}),Di((()=>t.valueArray),(o=>{if(e.mode===ZC.TIME||e.mode===ZC.DATE){const n=e.mode===ZC.TIME?I:M,o=t.valueArray,i=d.value,s=p.value;if(e.mode===ZC.DATE){const e=t.dateArray,n=e[2].length,i=Number(e[2][o[2]])||1,s=new Date(`${e[0][o[0]]}/${e[1][o[1]]}/${i}`).getDate();sn(s)&&C(o,s)}o.forEach(((o,i)=>{o!==t.oldValueArray[i]&&(t.oldValueArray[i]=o,e.mode===ZC.MULTISELECTOR&&n("columnchange",{},{column:i,value:o}))}))})),{selectorTypeComputed:u,system:l,_show:f,_cancel:k,_change:D,_l10nColumn:N,_l10nItem:P,_input:A,_resetFormData:_,_getFormData:g,_createTime:m,_createDate:y,_setValueSync:T,_fixInputPosition:R,_pickerViewChange:O}}(e,u,d,i,s,a,r);!function(e,t,n){const{key:o,disable:i}=rM();Ci((()=>{i.value=!e.visible})),Di(o,(e=>{"esc"===e?t():"enter"===e&&n()}))}(u,M,C),function(e,t){const n=la($h,!1);if(n){const o={reset:e,submit:()=>{const e=["",null],{key:n,value:o}=t();return""!==n&&(e[0]=n,e[1]=o),e}};n.addField(o),_s((()=>{n.removeField(o)}))}}(T,S),E(),D(),k();const L=uC(u);return Ci((()=>{u.isDesktop=L.isDesktop.value,u.popupStyle=L.popupStyle.value})),_s((()=>{s.value&&s.value.remove()})),hs((()=>{c.value=!0})),()=>{let t;const{visible:d,contentVisible:h,valueArray:T,popupStyle:S,valueSync:E}=u,{rangeKey:D,mode:k,start:L,end:b}=e,A=jh(e,"disabled");return dr("uni-picker",Ir({ref:i},A,{onClick:Vh(g)}),[c.value?dr("div",{ref:s,class:["uni-picker-container",`uni-${k}-${f.value}`],onWheel:Fp,onTouchmove:Fp},[dr(lc,{name:"uni-fade"},{default:()=>[Ri(dr("div",{class:"uni-mask uni-picker-mask",onClick:Vh(M),onMousemove:y},null,40,["onClick","onMousemove"]),[[Lc,d]])]}),p.value?null:dr("div",{class:[{"uni-picker-toggle":d},"uni-picker-custom"],style:S.content},[dr("div",{class:"uni-picker-header",onClick:qp},[dr("div",{class:"uni-picker-action uni-picker-action-cancel",onClick:Vh(M)},[o("uni.picker.cancel")],8,["onClick"]),dr("div",{class:"uni-picker-action uni-picker-action-confirm",onClick:C},[o("uni.picker.done")],8,["onClick"])],8,["onClick"]),h?dr(lv,{value:_(T),class:"uni-picker-content",onChange:I},YC(t=Cs(_(l.value),((e,t)=>{let n;return dr(vv,{key:t},YC(n=Cs(e,((e,n)=>dr("div",{key:n,class:"uni-picker-item"},["object"==typeof e?e[D]||"":m(e,t)]))))?n:{default:()=>[n],_:1})})))?t:{default:()=>[t],_:1},8,["value","onChange"]):null,dr("div",{ref:a,class:"uni-picker-select",onWheel:qp,onTouchmove:qp},[Cs(l.value[0],((e,t)=>dr("div",{key:t,class:["uni-picker-item",{selected:T[0]===t}],onClick:()=>{T[0]=t,C()}},["object"==typeof e?e[D]||"":e],10,["onClick"])))],40,["onWheel","onTouchmove"]),dr("div",{style:S.triangle},null,4)],6)],40,["onWheel","onTouchmove"]):null,dr("div",null,[n.default&&n.default()]),p.value?dr("div",{class:"uni-picker-system",onMousemove:Vh(y)},[dr("input",{class:["uni-picker-system_input",p.value],ref:r,value:E,type:k,tabindex:"-1",min:L,max:b,onChange:e=>{v(e),qp(e)}},null,42,["value","type","min","max","onChange"])],40,["onMousemove"]):null],16,["onClick"])}}});const nT=()=>0===String(navigator.vendor).indexOf("Apple")&&navigator.maxTouchPoints>0;const oT=()=>{if(/win|mac/i.test(navigator.platform)){if("Google Inc."===navigator.vendor)return"chrome";if(/Firefox/.test(navigator.userAgent))return"firefox"}return""};let iT;const sT=u(mp,{publishHandler(e,t,n){aT.subscribeHandler(e,t,n)}}),aT=u(Dh,{publishHandler(e,t,n){sT.subscribeHandler(e,t,n)}}),rT=qh({name:"PageHead",setup(){const e=Zn(null),t=ry(),n=qM(t.navigationBar,(()=>{const e=FM(t.navigationBar);n.backgroundColor=e.backgroundColor,n.titleColor=e.titleColor})),{clazz:o,style:i}=function(e){const t=Hr((()=>{const{type:t,titlePenetrate:n,shadowColorType:o}=e,i={"uni-page-head":!0,"uni-page-head-transparent":"transparent"===t,"uni-page-head-titlePenetrate":"YES"===n,"uni-page-head-shadow":!!o};return o&&(i[`uni-page-head-shadow-${o}`]=!0),i})),n=Hr((()=>({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 dr("div",{class:"uni-page-head-btn",onClick:uT},[Zp(Jp,"transparent"===e.type?"#fff":e.titleColor,26)],8,["onClick"])}(n,t.isQuit),a=n.type||"default",r="transparent"!==a&&"float"!==a&&dr("div",{class:{"uni-placeholder":!0,"uni-placeholder-titlePenetrate":n.titlePenetrate}},null,2);return dr("uni-page-head",{"uni-page-head-type":a},[dr("div",{ref:e,class:o.value,style:i.value},[dr("div",{class:"uni-page-head-hd"},[s]),cT(n),dr("div",{class:"uni-page-head-ft"},[])],6),r],8,["uni-page-head-type"])}}});function cT(e,t){return function({type:e,loading:t,titleSize:n,titleText:o,titleImage:i}){return dr("div",{class:"uni-page-head-bd"},[dr("div",{style:{fontSize:n,opacity:"transparent"===e?0:1},class:"uni-page-head__title"},[t?dr("i",{class:"uni-loading"},null):i?dr("img",{src:i,class:"uni-page-head__title_image"},null,8,["src"]):o],4)])}(e)}function uT(){1===xy().length?yy({url:"/"}):wM({from:"backbutton",success(){}})}const lT={name:"PageRefresh",setup(){const{pullToRefresh:e}=ry();return{offset:e.offset,color:e.color}}},dT=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n},pT={class:"uni-page-refresh-inner"},hT=["fill"],fT=[lr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null,-1),lr("path",{d:"M0 0h24v24H0z",fill:"none"},null,-1)],gT={class:"uni-page-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},_T=["stroke"];const mT=dT(lT,[["render",function(e,t,n,o,i,s){return Ja(),nr("uni-page-refresh",null,[lr("div",{style:Ve({"margin-top":o.offset+"px"}),class:"uni-page-refresh"},[lr("div",pT,[(Ja(),nr("svg",{fill:o.color,class:"uni-page-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},fT,8,hT)),(Ja(),nr("svg",gT,[lr("circle",{stroke:o.color,class:"uni-page-refresh__path",cx:"50",cy:"50",r:"20",fill:"none","stroke-width":"4","stroke-miterlimit":"10"},null,8,_T)]))])],4)])}]]);function vT(e,t,n){const o=Array.prototype.slice.call(e.changedTouches).filter((e=>e.identifier===t))[0];return!!o&&(e.deltaY=o.pageY-n,!0)}const yT="pulling",IT="reached",MT="aborting",CT="refreshing",TT="restoring";function ST(e){const t=ry(),{id:n,pullToRefresh:o}=t,{range:i,height:s}=o;let a,r,c,u,l,d,p,h;Xv((()=>{t.enablePullDownRefresh&&(h||(h=CT,m(),setTimeout((()=>{C()}),50)))}),"startPullDownRefresh",!1,n),Xv((()=>{t.enablePullDownRefresh&&h===CT&&(v(),h=TT,m(),function(e){if(!r)return;c.transition="-webkit-transform 0.3s",c.transform+=" scale(0.01)";const t=function(){n&&clearTimeout(n),r.removeEventListener("webkitTransitionEnd",t),c.transition="",c.transform="translate3d(-50%, 0, 0)",e()};r.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}((()=>{v(),h=f=g=null})))}),G_,!1,n),hs((()=>{a=e.value.$el,r=a.querySelector(".uni-page-refresh"),c=r.style,u=r.querySelector(".uni-page-refresh-inner").style}));let f=null,g=null;function _(e){h&&a&&a.classList[e]("uni-page-refresh--"+h)}function m(){_("add")}function v(){_("remove")}const y=Vh((e=>{if(!t.enablePullDownRefresh)return;const n=e.changedTouches[0];l=n.identifier,d=n.pageY,p=!([MT,CT,TT].indexOf(h)>=0)})),I=Vh((e=>{if(!t.enablePullDownRefresh)return;if(!p)return;if(!vT(e,l,d))return;let{deltaY:n}=e;if(0!==(document.documentElement.scrollTop||document.body.scrollTop))return void(l=null);if(n<0&&!h)return;e.cancelable&&e.preventDefault(),null===f&&(g=n,h=yT,m()),n-=g,n<0&&(n=0),f=n;(n>=i&&h!==IT||n1?t=1:t*=t*t;const n=Math.round(e/(i/s))||0;u.transform="rotate("+360*t+"deg)",c.clip="rect("+(45-n)+"px,45px,45px,-5px)",c.transform="translate3d(-50%, "+n+"px, 0)"}(n)})),M=Vh((e=>{t.enablePullDownRefresh&&vT(e,l,d)&&null!==h&&(h===yT?(v(),h=MT,m(),function(e){if(!r)return;if(c.transform){c.transition="-webkit-transform 0.3s",c.transform="translate3d(-50%, 0, 0)";const t=function(){n&&clearTimeout(n),r.removeEventListener("webkitTransitionEnd",t),c.transition="",e()};r.addEventListener("webkitTransitionEnd",t);const n=setTimeout(t,350)}else e()}((()=>{v(),h=f=g=null}))):h===IT&&(v(),h=CT,m(),C()))}));function C(){r&&(c.transition="-webkit-transform 0.2s",c.transform="translate3d(-50%, "+s+"px, 0)",rh(n,De))}return{onTouchstartPassive:y,onTouchmove:I,onTouchend:M,onTouchcancel:M}}const ET=qh({name:"PageBody",setup(e,t){const n=ry(),o=Zn(null),i=n.enablePullDownRefresh?ST(o):null,s=Zn(null);return Di((()=>n.enablePullDownRefresh),(()=>{s.value=n.enablePullDownRefresh?i:null}),{immediate:!0}),()=>{const e=function(e,t){if(!t.enablePullDownRefresh)return null;return dr(mT,{ref:e},null,512)}(o,n);return dr(ja,null,[e,dr("uni-page-wrapper",s.value,[dr("uni-page-body",null,[Ss(t.slots,"default")])],16)])}}});const DT=qh({name:"Page",setup(e,t){const n=cy(ly()),o=n.navigationBar,i={};return yC(n),()=>dr("uni-page",{"data-page":n.route,style:i},"custom"!==o.style?[dr(rT),kT(t)]:[kT(t)])}});function kT(e){return Ja(),or(ET,{key:0},{default:Qo((()=>[Ss(e.slots,"page")])),_:3})}const LT={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=ag;const bT=Object.assign({}),AT=Object.assign;window.__uniConfig=AT({tabBar:{position:"bottom",color:"#999",selectedColor:"#007aff",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",list:[{text:"视频",pagePath:"pages/index/index"},{text:"商城",pagePath:"pages/shop/shop"},{text:"消息",pagePath:"pages/news/news"},{text:"个人中心",pagePath:"pages/mine/mine"},{text:"我的",pagePath:"pages/mine/homepage"}],selectedIndex:0,shown:!0},globalStyle:{backgroundColor:"#F8F8F8",bounce:"none",navigationBar:{backgroundColor:"#F8F8F8",titleText:"九亿",type:"default",titleColor:"#000000"},isNVue:!1},condition:{current:0,list:[{name:"test",path:"pages/index/index"}]},uniIdRouter:{},compilerVersion:"4.29"},{appId:"__UNI__08B31BC",appName:"九亿",appVersion:"1.0.0",appVersionCode:"100",async:LT,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(bT).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return AT(e[n]||(e[n]={}),bT[t].default),e}),{}),router:{mode:"hash",base:"/",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const RT={delay:LT.delay,timeout:LT.timeout,suspensible:LT.suspensible};LT.loading&&(RT.loadingComponent={name:"SystemAsyncLoading",render:()=>dr(ai(LT.loading))}),LT.error&&(RT.errorComponent={name:"SystemAsyncError",render:()=>dr(ai(LT.error))});const OT=()=>t((()=>import("./pages-index-index.Cz1MWaFA.js")),__vite__mapDeps([0,1])).then((e=>fI(e.default||e))),NT=Wi(AT({loader:OT},RT)),PT=()=>t((()=>import("./pages-news-ce.CCSXQBWS.js")),__vite__mapDeps([2,1])).then((e=>fI(e.default||e))),wT=Wi(AT({loader:PT},RT)),GT=()=>t((()=>import("./pages-login-open.Ceqt9LSI.js")),__vite__mapDeps([3,4,1,5,6,7])).then((e=>fI(e.default||e))),UT=Wi(AT({loader:GT},RT)),xT=()=>t((()=>import("./pages-login-loginPhone.D5C1kIqH.js")),__vite__mapDeps([8,9,1,10,11,6,12,7,13,14,15])).then((e=>fI(e.default||e))),FT=Wi(AT({loader:xT},RT)),qT=()=>t((()=>import("./pages-shop-shop.C5RtAyTc.js")),__vite__mapDeps([16,17,1,12,11,6,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34])).then((e=>fI(e.default||e))),VT=Wi(AT({loader:qT},RT)),BT=()=>t((()=>import("./pages-merchant-business-operator-index.CBATpPXw.js")),__vite__mapDeps([35,12,21,11,1,6,22,23,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,18,19,56,57])).then((e=>fI(e.default||e))),HT=Wi(AT({loader:BT},RT)),KT=()=>t((()=>import("./pages-merchant-order-index.Crl4Qf4M.js")),__vite__mapDeps([58,51,11,1,6,12,52,21,22,23,27,28,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,53,54,55,18,19,56,57,59])).then((e=>fI(e.default||e))),jT=Wi(AT({loader:KT},RT)),$T=()=>t((()=>import("./pages-merchant-commodity-release-index.DpK8lbMK.js")),__vite__mapDeps([60,61,62,1,63,12,53,54,51,11,6,52,64,65,22,66,55,18,19,56,67,68])).then((e=>fI(e.default||e))),WT=Wi(AT({loader:$T},RT)),YT=()=>t((()=>import("./pages-merchant-specifications-index.BJnEo0z4.js")),__vite__mapDeps([69,21,11,1,6,12,22,23,61,62,63,53,54,51,52,67,65,66,70])).then((e=>fI(e.default||e))),zT=Wi(AT({loader:YT},RT)),XT=()=>t((()=>import("./pages-shop-search-index.BWXa04zY.js")),__vite__mapDeps([71,29,30,1,31,12,32,33,72,62,11,6,73,21,22,23,24,25,26,55,18,19,56,74])).then((e=>fI(e.default||e))),JT=Wi(AT({loader:XT},RT)),ZT=()=>t((()=>import("./pages-shop-commodity-index.AHXL0zxb.js")),__vite__mapDeps([75,12,18,1,19,76,11,6,32,77,78,22,42,43,55,56,79,29,30,31,33,80,51,52,49,50,81])).then((e=>fI(e.default||e))),QT=Wi(AT({loader:ZT},RT)),eS=()=>t((()=>import("./pages-shop-continue-pay-index.BxWiA9RP.js")),__vite__mapDeps([82,21,11,1,6,12,22,23,49,50,37,38,62,30,31,39,40,45,46,41,42,43,44,83,84])).then((e=>fI(e.default||e))),tS=Wi(AT({loader:eS},RT)),nS=()=>t((()=>import("./pages-shop-store-index.Be7mMK6U.js")),__vite__mapDeps([85,18,1,12,19,25,76,11,6,32,77,78,22,21,23,29,30,31,33,72,62,73,86])).then((e=>fI(e.default||e))),oS=Wi(AT({loader:nS},RT)),iS=()=>t((()=>import("./pages-shop-order-index.BXP0itVA.js")),__vite__mapDeps([87,51,11,1,6,12,52,21,22,23,27,28,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,53,54,55,18,19,56,57,88,32,89])).then((e=>fI(e.default||e))),sS=Wi(AT({loader:iS},RT)),aS=()=>t((()=>import("./pages-shop-sales-index.uSAzbsuc.js")),__vite__mapDeps([90,11,1,6,12,37,38,47,48,91])).then((e=>fI(e.default||e))),rS=Wi(AT({loader:aS},RT)),cS=()=>t((()=>import("./pages-shop-refund-index.CM2xDrPk.js")),__vite__mapDeps([92,11,1,6,12,37,38,51,52,61,62,63,18,19,41,42,43,44,64,65,22,66,93])).then((e=>fI(e.default||e))),uS=Wi(AT({loader:cS},RT)),lS=()=>t((()=>import("./pages-shop-money-whereabouts-index.D1GGQQko.js")),__vite__mapDeps([94,37,1,38,12,95,41,42,43,44,45,46,96,11,6,97,98,21,22,23,99])).then((e=>fI(e.default||e))),dS=Wi(AT({loader:lS},RT)),pS=()=>t((()=>import("./pages-shop-after-sales-index.BAI2hYQi.js")),__vite__mapDeps([100,11,1,6,12,37,38,101,102,95,41,42,43,44,45,46,96,97,98,21,22,23,79,29,30,31,32,33,80,103])).then((e=>fI(e.default||e))),hS=Wi(AT({loader:pS},RT)),fS=()=>t((()=>import("./pages-shop-transaction-completed-index.fAeApCxU.js")),__vite__mapDeps([104,47,11,1,6,12,37,38,48,95,41,42,43,44,45,46,96,97,98,79,29,30,31,32,33,80])).then((e=>fI(e.default||e))),gS=Wi(AT({loader:fS},RT)),_S=()=>t((()=>import("./pages-shop-waiting-delivery-index.AlSm3FKc.js")),__vite__mapDeps([105,47,11,1,6,12,37,38,48,95,41,42,43,44,45,46,96,97,98,49,50,29,30,31,32,33])).then((e=>fI(e.default||e))),mS=Wi(AT({loader:_S},RT)),vS=()=>t((()=>import("./pages-shop-logistics-state-index.BAspZgEp.js")),__vite__mapDeps([106,42,1,43,12,37,38,101,11,6,102,49,50,79,29,30,31,32,33,80,96,97,107])).then((e=>fI(e.default||e))),yS=Wi(AT({loader:vS},RT)),IS=()=>t((()=>import("./pages-news-news.Cu6b6Bq2.js")),__vite__mapDeps([108,17,1,12,11,6,18,19,20,109,110,111,112,113,114,115,116,117])).then((e=>fI(e.default||e))),MS=Wi(AT({loader:IS},RT)),CS=()=>t((()=>import("./pages-news-group-chat-list-index.mvz8YPP9.js")),[]).then((e=>fI(e.default||e))),TS=Wi(AT({loader:CS},RT)),SS=()=>t((()=>import("./pages-news-group-chat-index.CB0JxUKb.js")),__vite__mapDeps([118,11,1,6,12,119,111,112])).then((e=>fI(e.default||e))),ES=Wi(AT({loader:SS},RT)),DS=()=>t((()=>import("./pages-news-question-answer-index.BxnVeVTv.js")),__vite__mapDeps([120,51,11,1,6,12,52,18,19,121,41,42,43,37,38,44,22,122])).then((e=>fI(e.default||e))),kS=Wi(AT({loader:DS},RT)),LS=()=>t((()=>import("./pages-news-red-envelope-index.2G34gMAp.js")),__vite__mapDeps([123,1,124])).then((e=>fI(e.default||e))),bS=Wi(AT({loader:LS},RT)),AS=()=>t((()=>import("./pages-mine-mine.BGof91S8.js")),__vite__mapDeps([125,17,1,12,11,6,18,19,20,79,29,30,31,32,33,80,126])).then((e=>fI(e.default||e))),RS=Wi(AT({loader:AS},RT)),OS=()=>t((()=>import("./pages-mine-set-up-index.BNKY79WP.js")),__vite__mapDeps([127,37,1,38,12,11,6,22,128])).then((e=>fI(e.default||e))),NS=Wi(AT({loader:OS},RT)),PS=()=>t((()=>import("./pages-mine-userinfo.CwlO_wcb.js")),__vite__mapDeps([129,11,1,6,12,130])).then((e=>fI(e.default||e))),wS=Wi(AT({loader:PS},RT)),GS=()=>t((()=>import("./pages-mine-switch-accounts-index.BHEKEsgD.js")),__vite__mapDeps([131,115,1,116,12,109,11,6,110,111,112,132,23])).then((e=>fI(e.default||e))),US=Wi(AT({loader:GS},RT)),xS=()=>t((()=>import("./pages-mine-pay-use-index.AL4UOHTi.js")),__vite__mapDeps([133,37,1,38,12,22,21,11,6,23,134])).then((e=>fI(e.default||e))),FS=Wi(AT({loader:xS},RT)),qS=()=>t((()=>import("./pages-mine-real-name-authentication-index.BIotYnT8.js")),__vite__mapDeps([135,61,62,1,63,12,51,11,6,52,136])).then((e=>fI(e.default||e))),VS=Wi(AT({loader:qS},RT)),BS=()=>t((()=>import("./pages-mine-delivery-address-index.DSkNs1PF.js")),__vite__mapDeps([137,53,1,54,12,51,11,6,52,55,18,19,22,56,21,23,42,43,65,66,88,32,138])).then((e=>fI(e.default||e))),HS=Wi(AT({loader:BS},RT)),KS=()=>t((()=>import("./pages-mine-balance-index.CTM9mN3A.js")),__vite__mapDeps([139,11,1,6,12,37,38,51,52,53,54,18,19,21,22,23,140,141,142])).then((e=>fI(e.default||e))),jS=Wi(AT({loader:KS},RT)),$S=()=>t((()=>import("./pages-mine-balance-details-index.b3H6WdCj.js")),__vite__mapDeps([143,21,11,1,6,12,22,23,140,141,144])).then((e=>fI(e.default||e))),WS=Wi(AT({loader:$S},RT)),YS=()=>t((()=>import("./pages-mine-historical-browsing-index.Dy-OeNeD.js")),__vite__mapDeps([145,37,1,38,12,30,31,41,42,43,44,88,32,146])).then((e=>fI(e.default||e))),zS=Wi(AT({loader:YS},RT)),XS=()=>t((()=>import("./pages-mine-browsed-index.BA4GMjNY.js")),__vite__mapDeps([147,41,42,1,43,12,37,38,44,65,22,66,67,148])).then((e=>fI(e.default||e))),JS=Wi(AT({loader:XS},RT)),ZS=()=>t((()=>import("./pages-mine-collection-index.Ci4OepAn.js")),__vite__mapDeps([149,41,42,1,43,12,37,38,44,45,46,22,88,32,150])).then((e=>fI(e.default||e))),QS=Wi(AT({loader:ZS},RT)),eE=()=>t((()=>import("./pages-mine-target-store-index.DeIyJLO4.js")),__vite__mapDeps([151,42,1,43,12,45,37,38,46,88,32])).then((e=>fI(e.default||e))),tE=Wi(AT({loader:eE},RT)),nE=()=>t((()=>import("./pages-mine-coupon-index.sTRTt4D7.js")),__vite__mapDeps([152,11,1,6,12,88,32,153])).then((e=>fI(e.default||e))),oE=Wi(AT({loader:nE},RT)),iE=()=>t((()=>import("./pages-mine-homepage.KRdm9VIZ.js")),__vite__mapDeps([154,17,1,12,11,6,18,19,20,155,156,110,111,113,114,157,115,116,158,159])).then((e=>fI(e.default||e))),sE=Wi(AT({loader:iE},RT)),aE=()=>t((()=>import("./pages-release-video.CWyPIMaG.js")),__vite__mapDeps([160,11,1,6,12,18,19,161])).then((e=>fI(e.default||e))),rE=Wi(AT({loader:aE},RT)),cE=()=>t((()=>import("./pages-index-wallet.Cggr0JM2.js")),__vite__mapDeps([162,11,1,6,12,18,19,163])).then((e=>fI(e.default||e))),uE=Wi(AT({loader:cE},RT)),lE=()=>t((()=>import("./pages-index-myTeam.BmF2_V5Z.js")),__vite__mapDeps([164,11,1,6,12,165,166])).then((e=>fI(e.default||e))),dE=Wi(AT({loader:lE},RT)),pE=()=>t((()=>import("./pages-index-search.24dCpZZF.js")),__vite__mapDeps([167,11,1,6,12,168,4,110,111,169])).then((e=>fI(e.default||e))),hE=Wi(AT({loader:pE},RT)),fE=()=>t((()=>import("./pages-index-videoHome.0J4YEipz.js")),__vite__mapDeps([170,11,1,6,12,18,19,171,109,110,111,112,155,156,172])).then((e=>fI(e.default||e))),gE=Wi(AT({loader:fE},RT)),_E=()=>t((()=>import("./pages-index-report.Bkf2T_5b.js")),__vite__mapDeps([173,11,1,6,12,18,19,155,156,174])).then((e=>fI(e.default||e))),mE=Wi(AT({loader:_E},RT)),vE=()=>t((()=>import("./pages-mine-collectsVideo.fWAotXoZ.js")),__vite__mapDeps([175,12,155,11,1,6,156,176])).then((e=>fI(e.default||e))),yE=Wi(AT({loader:vE},RT)),IE=()=>t((()=>import("./pages-index-promotion.Bd32afsy.js")),__vite__mapDeps([177,12,155,11,1,6,156,178])).then((e=>fI(e.default||e))),ME=Wi(AT({loader:IE},RT)),CE=()=>t((()=>import("./pages-index-myQrCode.Cv0mrINv.js")),__vite__mapDeps([179,165,1,180])).then((e=>fI(e.default||e))),TE=Wi(AT({loader:CE},RT)),SE=()=>t((()=>import("./pages-index-deal.DbnIWoHH.js")),__vite__mapDeps([181,171,12,182,109,11,1,6,110,111,112,183])).then((e=>fI(e.default||e))),EE=Wi(AT({loader:SE},RT)),DE=()=>t((()=>import("./pages-index-durian.CGE_W2m7.js")),__vite__mapDeps([184,18,1,12,19,185,186,187,113,114,188,165,189,182,190])).then((e=>fI(e.default||e))),kE=Wi(AT({loader:DE},RT)),LE=()=>t((()=>import("./pages-index-durainActivation.CEGKWbYt.js")),__vite__mapDeps([191,186,12,182,1,192])).then((e=>fI(e.default||e))),bE=Wi(AT({loader:LE},RT)),AE=()=>t((()=>import("./pages-index-trade.CWvpPCgL.js")),__vite__mapDeps([193,11,1,6,12,18,19,187,182,194,111,112])).then((e=>fI(e.default||e))),RE=Wi(AT({loader:AE},RT)),OE=()=>t((()=>import("./pages-index-orchard.5huHtivT.js")),__vite__mapDeps([195,18,1,12,19,185,187,186,109,11,6,110,111,112,182,196])).then((e=>fI(e.default||e))),NE=Wi(AT({loader:OE},RT)),PE=()=>t((()=>import("./pages-index-durianLog.UdFN9TWn.js")),__vite__mapDeps([197,12,1,182,111,6,112])).then((e=>fI(e.default||e))),wE=Wi(AT({loader:PE},RT)),GE=()=>t((()=>import("./pages-index-extend.Dv9r9kbq.js")),__vite__mapDeps([198,11,1,6,12,18,19,155,156,199])).then((e=>fI(e.default||e))),UE=Wi(AT({loader:GE},RT)),xE=()=>t((()=>import("./pages-login-register.dkbe3_iA.js")),__vite__mapDeps([200,9,201,1,15,10,11,6,12,7,13,202])).then((e=>fI(e.default||e))),FE=Wi(AT({loader:xE},RT)),qE=()=>t((()=>import("./pages-login-invite.CWHyjLNp.js")),__vite__mapDeps([203,9,12,201,1,15,10,11,6,7,13,204])).then((e=>fI(e.default||e))),VE=Wi(AT({loader:qE},RT)),BE=()=>t((()=>import("./pages-login-forget.BwVWU2nC.js")),__vite__mapDeps([205,9,201,1,15,206,6,7])).then((e=>fI(e.default||e))),HE=Wi(AT({loader:BE},RT)),KE=()=>t((()=>import("./pages-login-retrieve.BvW3wyiq.js")),__vite__mapDeps([207,9,10,11,1,6,12,7,208])).then((e=>fI(e.default||e))),jE=Wi(AT({loader:KE},RT)),$E=()=>t((()=>import("./pages-shop-settle.CHuKx2xo.js")),__vite__mapDeps([209,11,1,6,12,182,210])).then((e=>fI(e.default||e))),WE=Wi(AT({loader:$E},RT)),YE=()=>t((()=>import("./pages-index-integral.CeyhHVcE.js")),__vite__mapDeps([211,212,165,188,1,189,12,213])).then((e=>fI(e.default||e))),zE=Wi(AT({loader:YE},RT)),XE=()=>t((()=>import("./pages-index-integralLog.Cpli-vrX.js")),__vite__mapDeps([214,11,1,6,12,109,110,111,112,165])).then((e=>fI(e.default||e))),JE=Wi(AT({loader:XE},RT)),ZE=()=>t((()=>import("./pages-index-integralMall.BJz1yg7M.js")),__vite__mapDeps([215,11,1,6,12,212,165,216])).then((e=>fI(e.default||e))),QE=Wi(AT({loader:ZE},RT)),eD=()=>t((()=>import("./pages-index-appeal.CSACfTN7.js")),__vite__mapDeps([217,11,1,6,12,187,171,218])).then((e=>fI(e.default||e))),tD=Wi(AT({loader:eD},RT)),nD=()=>t((()=>import("./pages-index-beInvited.0yk_2_z8.js")),__vite__mapDeps([219,12,165,1,220])).then((e=>fI(e.default||e))),oD=Wi(AT({loader:nD},RT)),iD=()=>t((()=>import("./pages-index-videoDetail.Q58Gx9Uh.js")),__vite__mapDeps([221,12,11,1,6,121,168,4,110,111,18,19,157,115,116,158,222])).then((e=>fI(e.default||e))),sD=Wi(AT({loader:iD},RT)),aD=()=>t((()=>import("./pages-news-newFriend.4pKhThhf.js")),__vite__mapDeps([223,11,1,6,12,224])).then((e=>fI(e.default||e))),rD=Wi(AT({loader:aD},RT)),cD=()=>t((()=>import("./pages-news-newAttention.D6wUc9Sv.js")),__vite__mapDeps([225,11,1,6,12,226])).then((e=>fI(e.default||e))),uD=Wi(AT({loader:cD},RT)),lD=()=>t((()=>import("./pages-news-newFans.D8dRFBB1.js")),__vite__mapDeps([227,11,1,6,12,228])).then((e=>fI(e.default||e))),dD=Wi(AT({loader:lD},RT)),pD=()=>t((()=>import("./pages-news-message.BjSh5cv0.js")),__vite__mapDeps([229,78,1,230])).then((e=>fI(e.default||e))),hD=Wi(AT({loader:pD},RT)),fD=()=>t((()=>import("./pages-index-article.DSuWHom_.js")),__vite__mapDeps([231,12,1,111])).then((e=>fI(e.default||e))),gD=Wi(AT({loader:fD},RT)),_D=()=>t((()=>import("./pages-index-topUp.DCY71K1p.js")),__vite__mapDeps([232,11,1,6,12,83,233])).then((e=>fI(e.default||e))),mD=Wi(AT({loader:_D},RT)),vD=()=>t((()=>import("./pages-news-addFriend.CgkNGrzk.js")),__vite__mapDeps([234,11,1,6,12,235])).then((e=>fI(e.default||e))),yD=Wi(AT({loader:vD},RT)),ID=()=>t((()=>import("./pages-news-redPacket.BxJobKBp.js")),__vite__mapDeps([236,11,1,6,12,237])).then((e=>fI(e.default||e))),MD=Wi(AT({loader:ID},RT)),CD=()=>t((()=>import("./pages-news-audio-video-audio.DOnCDqCK.js")),[]).then((e=>fI(e.default||e))),TD=Wi(AT({loader:CD},RT)),SD=()=>t((()=>import("./pages-news-audio-video-video.BqZ2rU3T.js")),__vite__mapDeps([238,1])).then((e=>fI(e.default||e))),ED=Wi(AT({loader:SD},RT)),DD=()=>t((()=>import("./pages-news-applyFriend.-STHOPQ6.js")),__vite__mapDeps([239,12,1,240])).then((e=>fI(e.default||e))),kD=Wi(AT({loader:DD},RT)),LD=()=>t((()=>import("./TUIKit-components-TUIConversation-index.xIELV9qi.js")),__vite__mapDeps([241,242,243,244,1,245,246,247,248,249,250,251,252,253,254,255,256,12,257])).then((e=>fI(e.default||e))),bD=Wi(AT({loader:LD},RT)),AD=()=>t((()=>import("./TUIKit-components-TUIChat-index.DwECrWtn.js")),__vite__mapDeps([258,243,242,244,1,245,12,259,260,248,249,253,254,261,255,256,251,262,263])).then((e=>fI(e.default||e))),RD=Wi(AT({loader:AD},RT)),OD=()=>t((()=>import("./TUIKit-components-TUIChat-video-play.DOWVYERb.js")),__vite__mapDeps([264,243,244,12,1,265])).then((e=>fI(e.default||e))),ND=Wi(AT({loader:OD},RT)),PD=()=>t((()=>import("./TUIKit-components-TUIChat-web-view.DfgHbxt0.js")),__vite__mapDeps([266,243,12])).then((e=>fI(e.default||e))),wD=Wi(AT({loader:PD},RT)),GD=()=>t((()=>import("./TUIKit-components-TUIContact-index.DtCgyXd8.js")),__vite__mapDeps([267,242,243,244,1,245,268,253,254,259,260,261,247,250,249,269])).then((e=>fI(e.default||e))),UD=Wi(AT({loader:GD},RT)),xD=()=>t((()=>import("./TUIKit-components-TUIGroup-index.BCkNIvPL.js")),__vite__mapDeps([270,242,243,244,1,245,262,259,260,250,253,254,268,251,271])).then((e=>fI(e.default||e))),FD=Wi(AT({loader:xD},RT)),qD=()=>t((()=>import("./TUIKit-components-TUISearch-index.DuoOvP9h.js")),__vite__mapDeps([246,243,242,244,1,245,247,248,249,250,251,252])).then((e=>fI(e.default||e))),VD=Wi(AT({loader:qD},RT));function BD(e,t){return Ja(),or(DT,null,{page:Qo((()=>[dr(e,AT({},t,{ref:"page"}),null,512)])),_:1})}function HD(){return"undefined"!=typeof navigator&&"undefined"!=typeof window?window:"undefined"!=typeof global?global:{}}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(NT,t)}},loader:OT,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,disableScroll:!1,navigationBar:{titleText:"视频",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/news/ce",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(wT,t)}},loader:PT,meta:{navigationBar:{titleText:"视频",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/login/open",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(UT,t)}},loader:GT,meta:{navigationBar:{titleText:"开屏页",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/login/loginPhone",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(FT,t)}},loader:xT,meta:{bounce:"none",navigationBar:{titleText:"手机号登录",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/shop",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(VT,t)}},loader:qT,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,onReachBottomDistance:100,enablePullDownRefresh:!0,navigationBar:{titleText:"商城",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/merchant/business-operator/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(HT,t)}},loader:BT,meta:{onReachBottomDistance:100,navigationBar:{titleText:"商家管理",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/merchant/order/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(jT,t)}},loader:KT,meta:{onReachBottomDistance:100,navigationBar:{titleText:"商家订单",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/merchant/commodity-release/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(WT,t)}},loader:$T,meta:{navigationBar:{titleText:"发布商品",type:"default"},isNVue:!1}},{path:"/pages/merchant/specifications/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(zT,t)}},loader:YT,meta:{navigationBar:{titleText:"规格",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/search/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(JT,t)}},loader:XT,meta:{onReachBottomDistance:100,enablePullDownRefresh:!0,navigationBar:{titleText:"搜索",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/commodity/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(QT,t)}},loader:ZT,meta:{navigationBar:{titleText:"商品详情",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/shop/continue-pay/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(tS,t)}},loader:eS,meta:{navigationBar:{titleText:"继续付款",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/shop/store/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(oS,t)}},loader:nS,meta:{navigationBar:{titleText:"店铺",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/shop/order/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(sS,t)}},loader:iS,meta:{onReachBottomDistance:100,navigationBar:{backgroundColor:"#fff",titleText:"订单",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/sales/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(rS,t)}},loader:aS,meta:{navigationBar:{backgroundColor:"#fff",titleText:"售后类型",type:"default"},isNVue:!1}},{path:"/pages/shop/refund/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(uS,t)}},loader:cS,meta:{navigationBar:{backgroundColor:"#fff",titleText:"申请退货退款",type:"default"},isNVue:!1}},{path:"/pages/shop/money-whereabouts/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(dS,t)}},loader:lS,meta:{navigationBar:{titleText:"钱款去向",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/after-sales/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(hS,t)}},loader:pS,meta:{navigationBar:{titleText:"售后详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/transaction-completed/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(gS,t)}},loader:fS,meta:{navigationBar:{titleText:"交易完成",type:"default"},isNVue:!1}},{path:"/pages/shop/waiting-delivery/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(mS,t)}},loader:_S,meta:{navigationBar:{titleText:"待发货",type:"default"},isNVue:!1}},{path:"/pages/shop/logistics-state/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(yS,t)}},loader:vS,meta:{navigationBar:{titleText:"物流状态",type:"default"},isNVue:!1}},{path:"/pages/news/news",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(MS,t)}},loader:IS,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:2,bounce:"none",navigationBar:{titleText:"消息",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/news/group-chat-list/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(TS,t)}},loader:CS,meta:{navigationBar:{titleText:"群聊列表",type:"default"},isNVue:!1}},{path:"/pages/news/group-chat/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(ES,t)}},loader:SS,meta:{navigationBar:{backgroundColor:"#fff",titleText:"创建群聊",type:"default"},isNVue:!1}},{path:"/pages/news/question-answer/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(kS,t)}},loader:DS,meta:{navigationBar:{titleText:"问答页",type:"default"},isNVue:!1}},{path:"/pages/news/red-envelope/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(bS,t)}},loader:LS,meta:{navigationBar:{titleText:"红包详情",type:"default"},isNVue:!1}},{path:"/pages/mine/mine",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(RS,t)}},loader:AS,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:3,navigationBar:{titleText:"我的",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/set-up/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(NS,t)}},loader:OS,meta:{navigationBar:{backgroundColor:"#fff",titleText:"设置",type:"default"},isNVue:!1}},{path:"/pages/mine/userinfo",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(wS,t)}},loader:PS,meta:{navigationBar:{backgroundColor:"#fff",titleText:"个人信息",type:"default"},isNVue:!1}},{path:"/pages/mine/switch-accounts/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(US,t)}},loader:GS,meta:{navigationBar:{titleText:"切换账号",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/pay-use/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(FS,t)}},loader:xS,meta:{navigationBar:{titleText:"先用后付",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/real-name-authentication/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(VS,t)}},loader:qS,meta:{navigationBar:{titleText:"实名认证",type:"default"},isNVue:!1}},{path:"/pages/mine/delivery-address/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(HS,t)}},loader:BS,meta:{onReachBottomDistance:100,enablePullDownRefresh:!0,navigationBar:{titleText:"收获地址",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/balance/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(jS,t)}},loader:KS,meta:{navigationBar:{titleText:"余额",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/balance-details/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(WS,t)}},loader:$S,meta:{onReachBottomDistance:100,navigationBar:{titleText:"余额明细",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/mine/historical-browsing/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(zS,t)}},loader:YS,meta:{onReachBottomDistance:100,enablePullDownRefresh:!0,navigationBar:{backgroundColor:"#fff",titleText:"历史浏览",type:"default"},isNVue:!1}},{path:"/pages/mine/browsed/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(JS,t)}},loader:XS,meta:{onReachBottomDistance:100,navigationBar:{backgroundColor:"#fff",titleText:"选择已浏览的商品",type:"default"},isNVue:!1}},{path:"/pages/mine/collection/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(QS,t)}},loader:ZS,meta:{onReachBottomDistance:100,navigationBar:{backgroundColor:"#fff",titleText:"全部收藏",type:"default"},isNVue:!1}},{path:"/pages/mine/target-store/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(tE,t)}},loader:eE,meta:{onReachBottomDistance:100,navigationBar:{backgroundColor:"#fff",titleText:"关注店铺",type:"default"},isNVue:!1}},{path:"/pages/mine/coupon/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(oE,t)}},loader:nE,meta:{onReachBottomDistance:100,navigationBar:{backgroundColor:"#fff",titleText:"优惠券",type:"default"},isNVue:!1}},{path:"/pages/mine/homepage",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(sE,t)}},loader:iE,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:4,navigationBar:{titleText:"个人主页",style:"custom",type:"default",titleColor:"#ffffff"},isNVue:!1}},{path:"/pages/release/video",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(rE,t)}},loader:aE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"发布视频",type:"default"},isNVue:!1}},{path:"/pages/index/wallet",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(uE,t)}},loader:cE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"我的钱包",type:"default"},isNVue:!1}},{path:"/pages/index/myTeam",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(dE,t)}},loader:lE,meta:{navigationBar:{titleText:"我的团队",type:"default"},isNVue:!1}},{path:"/pages/index/search",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(hE,t)}},loader:pE,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"搜索页",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/videoHome",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(gE,t)}},loader:fE,meta:{navigationBar:{titleText:"用户视频首页",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/report",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(mE,t)}},loader:_E,meta:{navigationBar:{backgroundColor:"#fff",titleText:"举报",type:"default"},isNVue:!1}},{path:"/pages/mine/collectsVideo",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(yE,t)}},loader:vE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"收藏夹视频",type:"default"},isNVue:!1}},{path:"/pages/index/promotion",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(ME,t)}},loader:IE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"选择推广视频",type:"default"},isNVue:!1}},{path:"/pages/index/myQrCode",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(TE,t)}},loader:CE,meta:{navigationBar:{titleText:"我的分享",type:"default"},isNVue:!1}},{path:"/pages/index/deal",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(EE,t)}},loader:SE,meta:{navigationBar:{titleText:"我的交易",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/durian",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(kE,t)}},loader:DE,meta:{navigationBar:{titleText:"榴莲首页",type:"default"},isNVue:!1}},{path:"/pages/index/durainActivation",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(bE,t)}},loader:LE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"已激活",type:"default"},isNVue:!1}},{path:"/pages/index/trade",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(RE,t)}},loader:AE,meta:{enablePullDownRefresh:!0,navigationBar:{backgroundColor:"#fff",titleText:"交易市场",type:"default"},isNVue:!1}},{path:"/pages/index/orchard",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(NE,t)}},loader:OE,meta:{navigationBar:{titleText:"榴莲果园",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/durianLog",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(wE,t)}},loader:PE,meta:{enablePullDownRefresh:!0,navigationBar:{backgroundColor:"#fff",titleText:"榴莲果明细",type:"default"},isNVue:!1}},{path:"/pages/index/extend",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(UE,t)}},loader:GE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"投流推广",type:"default"},isNVue:!1}},{path:"/pages/login/register",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(FE,t)}},loader:xE,meta:{navigationBar:{titleText:"注册",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/login/invite",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(VE,t)}},loader:qE,meta:{navigationBar:{titleText:"邀请",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/login/forget",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(HE,t)}},loader:BE,meta:{navigationBar:{titleText:"忘记密码",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/login/retrieve",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(jE,t)}},loader:KE,meta:{navigationBar:{titleText:"找回账户",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/shop/settle",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(WE,t)}},loader:$E,meta:{navigationBar:{titleText:"商家入驻",type:"default"},isNVue:!1}},{path:"/pages/index/integral",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(zE,t)}},loader:YE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"积分",type:"default"},isNVue:!1}},{path:"/pages/index/integralLog",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(JE,t)}},loader:XE,meta:{enablePullDownRefresh:!0,navigationBar:{titleText:"积分变动明细",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/index/integralMall",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(QE,t)}},loader:ZE,meta:{navigationBar:{backgroundColor:"#fff",titleText:"卷轴商城",type:"default"},isNVue:!1}},{path:"/pages/index/appeal",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(tD,t)}},loader:eD,meta:{navigationBar:{titleText:"交易申诉",type:"default"},isNVue:!1}},{path:"/pages/index/beInvited",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(oD,t)}},loader:nD,meta:{navigationBar:{backgroundColor:"#fff",titleText:"受邀成功",type:"default"},isNVue:!1}},{path:"/pages/index/videoDetail",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(sD,t)}},loader:iD,meta:{navigationBar:{titleText:"视频详情",style:"custom",type:"default"},isNVue:!1}},{path:"/pages/news/newFriend",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(rD,t)}},loader:aD,meta:{navigationBar:{backgroundColor:"#fff",titleText:"新朋友",type:"default"},isNVue:!1}},{path:"/pages/news/newAttention",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(uD,t)}},loader:cD,meta:{navigationBar:{backgroundColor:"#fff",titleText:"新的关注",type:"default"},isNVue:!1}},{path:"/pages/news/newFans",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(dD,t)}},loader:lD,meta:{navigationBar:{backgroundColor:"#fff",titleText:"新的粉丝",type:"default"},isNVue:!1}},{path:"/pages/news/message",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(hD,t)}},loader:pD,meta:{navigationBar:{backgroundColor:"#fff",titleText:"消息",type:"default"},isNVue:!1}},{path:"/pages/index/article",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(gD,t)}},loader:fD,meta:{navigationBar:{titleText:"",type:"default"},isNVue:!1}},{path:"/pages/index/topUp",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(mD,t)}},loader:_D,meta:{navigationBar:{backgroundColor:"#fff",titleText:"余额充值",type:"default"},isNVue:!1}},{path:"/pages/news/addFriend",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(yD,t)}},loader:vD,meta:{navigationBar:{backgroundColor:"#fff",titleText:"添加朋友",type:"default"},isNVue:!1}},{path:"/pages/news/redPacket",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(MD,t)}},loader:ID,meta:{navigationBar:{titleText:"红包",type:"default"},isNVue:!1}},{path:"/pages/news/audio-video/audio",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(TD,t)}},loader:CD,meta:{navigationBar:{titleText:"语音",type:"default"},isNVue:!1}},{path:"/pages/news/audio-video/video",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(ED,t)}},loader:SD,meta:{navigationBar:{titleText:"视频",type:"default"},isNVue:!1}},{path:"/pages/news/applyFriend",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(kD,t)}},loader:DD,meta:{navigationBar:{titleText:"好友添加申请",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUIConversation/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(bD,t)}},loader:LD,meta:{navigationBar:{titleText:"消息",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUIChat/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(RD,t)}},loader:AD,meta:{navigationBar:{titleText:"消息",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUIChat/video-play",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(ND,t)}},loader:OD,meta:{navigationBar:{titleText:"消息",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUIChat/web-view",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(wD,t)}},loader:PD,meta:{navigationBar:{titleText:"消息",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUIContact/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(UD,t)}},loader:GD,meta:{navigationBar:{titleText:"消息",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUIGroup/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(FD,t)}},loader:xD,meta:{navigationBar:{titleText:"消息",type:"default"},isNVue:!1}},{path:"/TUIKit/components/TUISearch/index",component:{setup(){const e=lI(),t=e&&e.$route&&e.$route.query||{};return()=>BD(VD,t)}},loader:qD,meta:{navigationBar:{titleText:"聊天记录",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));const KD="function"==typeof Proxy;class jD{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 o=`__vue-devtools-plugin-settings__${e.id}`;let i={...n};try{const e=localStorage.getItem(o),t=JSON.parse(e);Object.assign(i,t)}catch(aL){}this.fallbacks={getSettings:()=>i,setSettings(e){try{localStorage.setItem(o,JSON.stringify(e))}catch(aL){}i=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=HD(),o=HD().__VUE_DEVTOOLS_GLOBAL_HOOK__,i=KD&&e.enableEarlyProxy;if(!o||!n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__&&i){const s=i?new jD(e,o):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:e,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}else o.emit("devtools-plugin:setup",e,t)} /*! * vuex v4.1.0 * (c) 2022 Evan You * @license MIT */var WD="store";function YD(e){return void 0===e&&(e=null),la(null!==e?e:WD)}function zD(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,o=(n=function(t){return t.original===e},t.filter(n)[0]);if(o)return o.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=zD(e[n],t)})),i}function XD(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function JD(e){return null!==e&&"object"==typeof e}function ZD(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 QD(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;tk(e,n,[],e._modules.root,!0),ek(e,n,t)}function ek(e,t,n){var o=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,a={},r={},c=Tt(!0);c.run((function(){XD(s,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),r[n]=Hr((function(){return a[n]()})),Object.defineProperty(e.getters,n,{get:function(){return r[n].value},enumerable:!0})}))})),e._state=wn({data:t}),e._scope=c,e.strict&&function(e){Di((function(){return e._state.data}),(function(){}),{deep:!0,flush:"sync"})}(e),o&&n&&e._withCommit((function(){o.data=null})),i&&i.stop()}function tk(e,t,n,o,i){var s=!n.length,a=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=o),!s&&!i){var r=ok(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){r[c]=o.state}))}var u=o.context=function(e,t,n){var o=""===t,i={dispatch:o?e.dispatch:function(n,o,i){var s=ik(n,o,i),a=s.payload,r=s.options,c=s.type;return r&&r.root||(c=t+c),e.dispatch(c,a)},commit:o?e.commit:function(n,o,i){var s=ik(n,o,i),a=s.payload,r=s.options,c=s.type;r&&r.root||(c=t+c),e.commit(c,a,r)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return nk(e,t)}},state:{get:function(){return ok(e.state,n)}}}),i}(e,a,n);o.forEachMutation((function(t,n){!function(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,o.state,t)}))}(e,a+n,t,u)})),o.forEachAction((function(t,n){var o=t.root?n:a+n,i=t.handler||t;!function(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i,s=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},t);return(i=s)&&"function"==typeof i.then||(s=Promise.resolve(s)),e._devtoolHook?s.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):s}))}(e,o,i,u)})),o.forEachGetter((function(t,n){!function(e,t,n,o){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return n(o.state,o.getters,e.state,e.getters)}}(e,a+n,t,u)})),o.forEachChild((function(o,s){tk(e,t,n.concat(s),o,i)}))}function nk(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,o)===t){var s=i.slice(o);Object.defineProperty(n,s,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function ok(e,t){return t.reduce((function(e,t){return e[t]}),e)}function ik(e,t,n){return JD(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var sk="vuex:mutations",ak="vuex:actions",rk="vuex",ck=0;function uk(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:sk,label:"Vuex Mutations",color:lk}),n.addTimelineLayer({id:ak,label:"Vuex Actions",color:lk}),n.addInspector({id:rk,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree((function(n){if(n.app===e&&n.inspectorId===rk)if(n.filter){var o=[];fk(o,t._modules.root,n.filter,""),n.rootNodes=o}else n.rootNodes=[hk(t._modules.root,"")]})),n.on.getInspectorState((function(n){if(n.app===e&&n.inspectorId===rk){var o=n.nodeId;nk(t,o),n.state=function(e,t,n){t="root"===n?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map((function(t){return{key:t,editable:!0,value:e.state[t]}}))};if(o.length){var s=function(e){var t={};return Object.keys(e).forEach((function(n){var o=n.split("/");if(o.length>1){var i=t,s=o.pop();o.forEach((function(e){i[e]||(i[e]={_custom:{value:{},display:e,tooltip:"Module",abstract:!0}}),i=i[e]._custom.value})),i[s]=gk((function(){return e[n]}))}else t[n]=gk((function(){return e[n]}))})),t}(t);i.getters=Object.keys(s).map((function(e){return{key:e.endsWith("/")?pk(e):e,editable:!1,value:gk((function(){return s[e]}))}}))}return i}((i=t._modules,(a=(s=o).split("/").filter((function(e){return e}))).reduce((function(e,t,n){var o=e[t];if(!o)throw new Error('Missing module "'+t+'" for path "'+s+'".');return n===a.length-1?o:o._children}),"root"===s?i:i.root._children)),"root"===o?t.getters:t._makeLocalGettersCache,o)}var i,s,a})),n.on.editInspectorState((function(n){if(n.app===e&&n.inspectorId===rk){var o=n.nodeId,i=n.path;"root"!==o&&(i=o.split("/").filter(Boolean).concat(i)),t._withCommit((function(){n.set(t._state.data,i,n.state.value)}))}})),t.subscribe((function(e,t){var o={};e.payload&&(o.payload=e.payload),o.state=t,n.notifyComponentUpdate(),n.sendInspectorTree(rk),n.sendInspectorState(rk),n.addTimelineEvent({layerId:sk,event:{time:Date.now(),title:e.type,data:o}})})),t.subscribeAction({before:function(e,t){var o={};e.payload&&(o.payload=e.payload),e._id=ck++,e._time=Date.now(),o.state=t,n.addTimelineEvent({layerId:ak,event:{time:e._time,title:e.type,groupId:e._id,subtitle:"start",data:o}})},after:function(e,t){var o={},i=Date.now()-e._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},e.payload&&(o.payload=e.payload),o.state=t,n.addTimelineEvent({layerId:ak,event:{time:Date.now(),title:e.type,groupId:e._id,subtitle:"end",data:o}})}})}))}var lk=8702998,dk={label:"namespaced",textColor:16777215,backgroundColor:6710886};function pk(e){return e&&"root"!==e?e.split("/").slice(-2,-1)[0]:"Root"}function hk(e,t){return{id:t||"root",label:pk(t),tags:e.namespaced?[dk]:[],children:Object.keys(e._children).map((function(n){return hk(e._children[n],t+n+"/")}))}}function fk(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[dk]:[]}),Object.keys(t._children).forEach((function(i){fk(e,t._children[i],n,o+i+"/")}))}function gk(e){try{return e()}catch(aL){return aL}}var _k=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)||{}},mk={namespaced:{configurable:!0}};mk.namespaced.get=function(){return!!this._rawModule.namespaced},_k.prototype.addChild=function(e,t){this._children[e]=t},_k.prototype.removeChild=function(e){delete this._children[e]},_k.prototype.getChild=function(e){return this._children[e]},_k.prototype.hasChild=function(e){return e in this._children},_k.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)},_k.prototype.forEachChild=function(e){XD(this._children,e)},_k.prototype.forEachGetter=function(e){this._rawModule.getters&&XD(this._rawModule.getters,e)},_k.prototype.forEachAction=function(e){this._rawModule.actions&&XD(this._rawModule.actions,e)},_k.prototype.forEachMutation=function(e){this._rawModule.mutations&&XD(this._rawModule.mutations,e)},Object.defineProperties(_k.prototype,mk);var vk=function(e){this.register([],e,!1)};function yk(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;yk(e.concat(o),t.getChild(o),n.modules[o])}}function Ik(e){return new Mk(e)}vk.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},vk.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},vk.prototype.update=function(e){yk([],this.root,e)},vk.prototype.register=function(e,t,n){var o=this;void 0===n&&(n=!0);var i=new _k(t,n);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&XD(t.modules,(function(t,i){o.register(e.concat(i),t,n)}))},vk.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],o=t.getChild(n);o&&o.runtime&&t.removeChild(n)},vk.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var Mk=function(e){var t=this;void 0===e&&(e={});var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1);var i=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 vk(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=i;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=o;var c=this._modules.root.state;tk(this,c,[],this._modules.root),ek(this,c),n.forEach((function(e){return e(t)}))},Ck={state:{configurable:!0}};Mk.prototype.install=function(e,t){e.provide(t||WD,this),e.config.globalProperties.$store=this,void 0!==this._devtools&&this._devtools&&uk(e,this)},Ck.state.get=function(){return this._state.data},Ck.state.set=function(e){},Mk.prototype.commit=function(e,t,n){var o=this,i=ik(e,t,n),s=i.type,a=i.payload,r={type:s,payload:a},c=this._mutations[s];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(r,o.state)})))},Mk.prototype.dispatch=function(e,t){var n=this,o=ik(e,t),i=o.type,s=o.payload,a={type:i,payload:s},r=this._actions[i];if(r){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(aL){}var c=r.length>1?Promise.all(r.map((function(e){return e(s)}))):r[0](s);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(aL){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(aL){}t(e)}))}))}},Mk.prototype.subscribe=function(e,t){return ZD(e,this._subscribers,t)},Mk.prototype.subscribeAction=function(e,t){return ZD("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},Mk.prototype.watch=function(e,t,n){var o=this;return Di((function(){return e(o.state,o.getters)}),t,Object.assign({},n))},Mk.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._state.data=e}))},Mk.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),tk(this,this.state,e,this._modules.get(e),n.preserveState),ek(this,this.state)},Mk.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){delete ok(t.state,e.slice(0,-1))[e[e.length-1]]})),QD(this)},Mk.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},Mk.prototype.hotUpdate=function(e){this._modules.update(e),QD(this,!0)},Mk.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(Mk.prototype,Ck);var Tk=Lk((function(e,t){var n={};return kk(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var o=bk(this.$store,"mapState",e);if(!o)return;t=o.context.state,n=o.context.getters}return"function"==typeof i?i.call(this,t,n):t[i]},n[o].vuex=!0})),n})),Sk=Lk((function(e,t){var n={};return kk(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.commit;if(e){var s=bk(this.$store,"mapMutations",e);if(!s)return;o=s.context.commit}return"function"==typeof i?i.apply(this,[o].concat(t)):o.apply(this.$store,[i].concat(t))}})),n})),Ek=Lk((function(e,t){var n={};return kk(t).forEach((function(t){var o=t.key,i=t.val;i=e+i,n[o]=function(){if(!e||bk(this.$store,"mapGetters",e))return this.$store.getters[i]},n[o].vuex=!0})),n})),Dk=Lk((function(e,t){var n={};return kk(t).forEach((function(t){var o=t.key,i=t.val;n[o]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var o=this.$store.dispatch;if(e){var s=bk(this.$store,"mapActions",e);if(!s)return;o=s.context.dispatch}return"function"==typeof i?i.apply(this,[o].concat(t)):o.apply(this.$store,[i].concat(t))}})),n}));function kk(e){return function(e){return Array.isArray(e)||JD(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 Lk(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function bk(e,t,n){return e._modulesNamespaceMap[n]}function Ak(e,t,n){var o=n?e.groupCollapsed:e.group;try{o.call(e,t)}catch(aL){e.log(t)}}function Rk(e){try{e.groupEnd()}catch(aL){e.log("—— log end ——")}}function Ok(){var e=new Date;return" @ "+Nk(e.getHours(),2)+":"+Nk(e.getMinutes(),2)+":"+Nk(e.getSeconds(),2)+"."+Nk(e.getMilliseconds(),3)}function Nk(e,t){return n="0",o=t-e.toString().length,new Array(o+1).join(n)+e;var n,o}var Pk={version:"4.1.0",Store:Mk,storeKey:WD,createStore:Ik,useStore:YD,mapState:Tk,mapMutations:Sk,mapGetters:Ek,mapActions:Dk,createNamespacedHelpers:function(e){return{mapState:Tk.bind(null,e),mapGetters:Ek.bind(null,e),mapMutations:Sk.bind(null,e),mapActions:Dk.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var o=e.transformer;void 0===o&&(o=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var s=e.actionFilter;void 0===s&&(s=function(e,t){return!0});var a=e.actionTransformer;void 0===a&&(a=function(e){return e});var r=e.logMutations;void 0===r&&(r=!0);var c=e.logActions;void 0===c&&(c=!0);var u=e.logger;return void 0===u&&(u=console),function(e){var l=zD(e.state);void 0!==u&&(r&&e.subscribe((function(e,s){var a=zD(s);if(n(e,l,a)){var r=Ok(),c=i(e),d="mutation "+e.type+r;Ak(u,d,t),u.log("%c prev state","color: #9E9E9E; font-weight: bold",o(l)),u.log("%c mutation","color: #03A9F4; font-weight: bold",c),u.log("%c next state","color: #4CAF50; font-weight: bold",o(a)),Rk(u)}l=a})),c&&e.subscribeAction((function(e,n){if(s(e,n)){var o=Ok(),i=a(e),r="action "+e.type+o;Ak(u,r,t),u.log("%c action","color: #03A9F4; font-weight: bold",i),Rk(u)}})))}}};const wk=Ik({state:{userinfo:{},tabbarMode:"default",alarmTime:""},mutations:{setState(e,t){const n=t.key,o=t.value;e[n]=o},setUserInfo(e,t){e.userinfo=t},setTabbarMode(e,t){e.tabbarMode=t}},getters:{getUserInfo:e=>e.userinfo,getTabbarMode:e=>e.tabbarMode},actions:{updateUserInfo({commit:e},t){e("setUserInfo",t)},changeTabbarMode({commit:e},t){e("setTabbarMode",t)}}}),Gk={applyVideo:e=>xk.request({url:"/homecommon/applyVideo",query:e.query,data:e.data,method:"POST",load:!0}),pushVideo:e=>xk.request({url:"/homecommon/pushVideo",query:e.query,method:"POST",load:!0}),getUserInfo:e=>xk.request({url:"/home/getUserInfo",query:e.query,method:"POST",load:!0}),myVideoList:e=>xk.request({url:"/home/myVideoList",query:e.query,method:"POST",load:!0}),getCollectList:e=>xk.request({url:"/collect/getCollectList",query:e.query,method:"POST"}),saveCollectList:e=>xk.request({url:"/collect/saveCollectList",query:e.query,method:"POST",load:!0}),updateCollectList:e=>xk.request({url:"/collect/updateCollectList",query:e.query,method:"POST",load:!0}),deleteCollect:e=>xk.request({url:"/collect/deleteCollect",query:e.query,load:!0,method:"POST"}),getCollectVideoList:e=>xk.request({url:"/collect/getCollectVideoList",query:e.query,load:!0,method:"POST"}),collectVideo:e=>xk.request({url:"/collect/collectVideo",query:e.query,method:"POST",load:!0}),cancelCollect:e=>xk.request({url:"/collect/cancelCollect",query:e.query,method:"POST",load:!0}),homeVideo:e=>xk.request({url:"/homecommon/homeVideo",query:e.query,method:"POST"}),businessHomeVideo:e=>xk.request({url:"/homecommon/businessHomeVideo",query:e.query,method:"POST"}),otherHomeVideo:e=>xk.request({url:"/homecommon/otherHomeVideo",query:e.query,method:"POST"}),followVideo:e=>xk.request({url:"/homecommon/followVideo",query:e.query,method:"POST"}),getLabel:e=>xk.request({url:"/home/getLabel",query:e.query,method:"POST"}),setLabel:e=>xk.request({url:"/home/setLabel",data:e.data,method:"POST",load:!0}),publishVideo:e=>xk.request({url:"/homecommon/publishVideo",data:e.data,method:"POST"}),updateVideo:e=>xk.request({url:"/homecommon/updateVideo",data:e.data,method:"POST"}),commentList:e=>xk.request({url:"/home/commentList",query:e.query,method:"POST"}),levelCommentList:e=>xk.request({url:"/home/levelCommentList",query:e.query,method:"POST"}),thumbsUp:e=>xk.request({url:"/home/thumbsUp",query:e.query,method:"POST"}),comment:e=>xk.request({url:"/home/comment",query:e.query,method:"POST"}),videoLike:e=>xk.request({url:"/home/videoLike",query:e.query,method:"POST"}),browseLog:e=>xk.request({url:"/home/browseLog",query:e.query,method:"POST"}),hotVideos:e=>xk.request({url:"/home/hotVideos",method:"POST"}),videoSearchLog:e=>xk.request({url:"/home/videoSearchLog",method:"POST"}),videoSearch:e=>xk.request({url:"/home/videoSearch",query:e.query,method:"POST"}),agreeFriend:e=>xk.request({url:"/user/friend/agreeFriend",path:e.path,query:e.query,method:"POST"}),refuseFriend:e=>xk.request({url:"/user/friend/refuseFriend",path:e.path,query:e.query,method:"POST"}),getFriendList:e=>xk.request({url:"/user/friend/getFriendList",path:e.path,query:e.query,method:"GET"}),getFansList:e=>xk.request({url:"/user/attention/getFansList",path:e.path,query:e.query,method:"GET"}),getAttentionList:e=>xk.request({url:"/user/attention/getAttentionList",path:e.path,query:e.query,method:"GET"}),attention:e=>xk.request({url:"/user/attention",path:e.path,data:e.data,method:"POST"}),videoBlock:e=>xk.request({url:"/home/videoBlock",query:e.query,load:!0,method:"POST"}),reportVideo:e=>xk.request({url:"/report/reportVideo",data:e.data,method:"POST"}),myLikeVideoList:e=>xk.request({url:"/home/myLikeVideoList",query:e.query,method:"POST"}),getVideoById:e=>xk.request({url:"/homecommon/getVideoById",query:e.query,method:"POST"}),videoShare:e=>xk.request({url:"/home/videoShare",query:e.query,method:"POST"}),setAlarm:e=>xk.request({url:"/home/setAlarm",query:e.query,method:"POST"}),getAlarm:()=>xk.request({url:"/home/getAlarm",method:"POST"}),viewingTasks:()=>xk.request({url:"/home/viewingTasks",method:"POST"})},Uk={login:{userRegister:e=>xk.request({url:"/user/login/userRegister",data:e.data,path:e.path}),getCaptcha:e=>xk.request({url:"/user/Captcha/getCaptcha",data:e.data,path:e.path,method:"GET"}),userLoginByPassword:e=>xk.request({url:"/user/login/userLoginByPassword",data:e.data}),resetPassword:e=>xk.request({url:"/user/login/resetPassword",data:e.data,path:e.path,method:"POST"}),getIMToken:e=>xk.request({url:"/im/token/getUserAppToken",query:e.query,method:"GET"})},mine:{getUserinfo:e=>xk.request({url:"/getAppInfo",method:"GET"}),updateUserInfo:e=>xk.request({url:"/user/info/updateUserInfo",data:e.data,method:"POST"}),certification:e=>xk.request({url:"/user/info/certification",query:e.query,data:e.data,method:"POST"}),pay:e=>xk.request({url:"/home/pay",query:e.query,method:"POST"}),getBalanceLog:e=>xk.request({url:"/home/getBalanceLog",query:e.query,method:"POST"}),myfreeze:e=>xk.request({url:"/home/myfreeze",method:"POST"})},video:Gk,news:{setNotes:e=>xk.request({url:"/user/friend/setNotes",method:"POST",query:e.query}),deleteFriend:e=>xk.request({url:"/user/friend/deleteFriend",method:"POST",path:e.path}),addFriend:e=>xk.request({url:"/user/friend/addFriend",method:"POST",path:e.path}),getFriendListPage:e=>xk.request({url:"/user/friend/getFriendListPage",path:e.path,query:e.query,method:"GET"}),searchFriendByName:e=>xk.request({url:"/user/friend/searchFriendByName",path:e.path,query:e.query,method:"GET"}),getImToken:e=>xk.request({url:"/im/token/getUserAppToken",method:"get",query:e}),sendRedBag:e=>xk.request({url:"/home/sendRedBag",method:"POST",data:e.data}),grabred:e=>xk.request({url:"/home/grabred",method:"POST",data:e.data}),getRedbag:e=>xk.request({url:"/home/getRedbag",method:"POST",query:e.data}),grabredLog:e=>xk.request({url:"/home/grabredLog",method:"POST",query:e})},uploadImg:"/homecommon/upload",uploadVideo:"/homecommon/uploadVideo",getArticle:e=>xk.request({url:"/home/getArticle",query:e.query,method:"POST"})},xk={config:{host:"http://91f.store/api",uploadFilePath:"/homecommon/file/preview?fileName=",uploadVideoPath:"/homecommon/file/play?fileName=",img_size:5,video_size:300,h5:"",TChat:{SDKAppID:"1600057470",secretKey:"7d016821bf27a846739e209534abe4c4bba131559b3318e19f8ccf9294e08b29",userSig:""}},reg:{tel:/^1[3-9]\d{9}$/,idCard:/(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/},alert(e){if(null!=e&&null!=e)return"string"==typeof e||"number"==typeof e?(iC({title:""+e,icon:"none",duration:3e3}),null):(e.title=e.title?e.title:"",e.content=e.content?e.content:"",e.confirmText=e.confirmText?e.confirmText:"确定",e.showCancel=!1!==e.showCancel,e.cancelText=e.cancelText?e.cancelText:"取消",new Promise(((t,n)=>{WM({title:e.title,content:e.content,confirmText:e.confirmText,showCancel:e.showCancel,cancelText:e.cancelText,success:n=>{e.success&&e.success(n),t(n)},fail:t=>{e.fail&&e.fail(t),n(t)},complete:e=>{}})})))},upload:e=>new Promise(((t,n)=>{let o=WI("token")||"";e.url=e.url?e.url:Uk[{img:"uploadImg",video:"uploadVideo"}[e.mode]],console.log("obj.url",e.url),e.file=e.file?e.file:"",e.data=e.data?e.data:{},e.header={"Access-Control-Allow-Origin":"*",...e.header},o&&(e.header.Authorization=`Bearer ${o}`),aC({title:"正在上传"}),AM({url:xk.config.host+e.url,filePath:e.file,header:e.header,formData:e.data,dataType:"json",name:"file",success:n=>{rC(),e.success&&e.success(JSON.parse(n.data)),t(JSON.parse(n.data))},fail:t=>{rC(),e.fail&&e.fail(t.data),n(t)}})})),request(e){let t=WI("token")||"";return new Promise(((n,o)=>{let i=xk.config.host+(e.url?e.url:"/api/index/index");e.path&&e.path instanceof Array&&e.path.forEach((e=>{i+=`/${e}`})),e.query&&(i=xk.setUrl(i,e.query)),e.load&&aC({title:"加载中",mask:!0}),e.header={"ngrok-skip-browser-warning":!0,"Content-Type":"application/json;charset=UTF-8","Access-Control-Allow-Headers":"Origin, X-Requested-With, Content-Type, Accept","Access-Control-Allow-Origin":"*",...e.header},t&&(e.header.Authorization=`Bearer ${t}`),SM({url:i,method:e.method?e.method:"POST",sslVerify:!1,data:e.data,header:e.header,dataType:"json",success:t=>{e.load&&rC(),401==t.data.code&&xk.logout((()=>{xk.alert("请先登录"),o(t.data)})),e.success&&e.success(t.data),n(t.data)},fail:t=>{e.load&&rC(),e.fail&&e.fail(t),o(t)},complete(t){e.complete&&e.complete(t)}})}))},imgReplace:(e,t)=>(t||(e=e.replace(//gi,'

').replace(/e+=(e.indexOf("?")<0?"?":"&")+xk.set_param(t),query_to_param(e){let t={};return decodeURIComponent(e).split("&").forEach((e=>{let[n,o]=e.split("=");t[n]=o})),t},countDownd(e){if(!e)return;e=Number(e);let t=xk.timeFormin(parseInt(time/86400)),n=xk.timeFormin(parseInt(time%86400/3600)),o=xk.timeFormin(parseInt(time%86400%3600/60)),i=xk.timeFormin(parseInt(time%86400%3600%60)),s="";return t&&(s+=t+"天"),s+=n||0==n?n>9?n+":":"0"+n+":":"00:",s+=o||0==o?o>9?o+":":"0"+o+":":"00:",s+=i?i>9?i:"0"+i:"00",s},timeFormin:e=>e<0?0:e,toTwo(e){let t=String(Number(e));return t.length<2&&(t="0"+t),t},formatTime(e,t){const n=new Date;e&&"string"==typeof e||(e="yyyy-MM-dd HH:mm:ss"),t?String(t).length<=10&&(t*=1e3):t=n.valueOf();const o=new Date(t);let i=o.getFullYear(),s=o.getMonth()+1,a=o.getDate(),r=o.getDay(),c=o.getHours(),u=o.getMinutes(),l=o.getSeconds();(e=(e=(e=(e=(e=(e=e.replace("yyyy",i)).replace("MM",this.toTwo(s))).replace("M",s)).replace("dd",this.toTwo(a))).replace("d",a)).replace("w",["日","一","二","三","四","五","六"][r])).match("h")?(c=c>12?c-12:c,e=(e=e.replace("hh",this.toTwo(c))).replace("h",c)):e.match("H")&&(e=(e=e.replace("HH",this.toTwo(c))).replace("H",c));let d=c>12?"am":"pm";return e=(e=(e=(e=(e=e.replace("mm",this.toTwo(u))).replace("m",u)).replace("ss",this.toTwo(l))).replace("s",l)).replace("a",d)},strtotime(e,t){if(t&&e.indexOf(" ")>-1){let n=e.split(" "),o=n[0],i=n[1];t?String(t).length<=10&&(t*=1e3):t=s.valueOf();let s=new Date(t);switch(i){case"year":s.setYear(s.getFullYear()+parseInt(o));break;case"month":s.setMonth(s.getMonth()+parseInt(o));break;case"day":s.setDate(s.getDate()+parseInt(o));break;case"week":s.setDate(s.getDate()+7*parseInt(o));break;case"hour":s.setHours(s.getHours()+parseInt(o));break;case"minute":s.setMinutes(s.getMinutes()+parseInt(o))}return s.getTime()}return new Date(t).getTime()},upload_image(e){const t=e.count?e.count:8;if(e.type||(e.type=2),""!=e.value&&null==e.value&&null==e.value&&(e.value=1==e.type?"":[]),e.value.length>=t&&2==e.type)return void xk.alert("上传图片已达上限");iM({count:1==e.type?1:t-e.value.length,sourceType:e.sourceType||["album","camera"],success:t=>{t.tempFiles.forEach((n=>{let o=1048576*xk.config.img_size;n.size>o&&!e.unlimited?xk.alert(`大小超过${xk.config.img_size}m`):xk.upload({file:n.path,mode:"img",success(n){if(200===n.code)return 2==e.type?e.value.push(xk.format_url(n.msg,"img")):1==e.type&&(e.value=xk.format_url(n.msg,"img")),console.log("obj",e,e.value),void(e.success&&e.success({result:n.msg,value:e.value}));xk.alert(t.msg)}})}))},fail(e){e.errMsg}})},upload_video(e){!e.count||e.count,TM({compressed:!1,success(t){xk.upload({file:t.tempFilePath,mode:"video",success(t){if(200!=t.code)xk.alert(t.msg);else{const n=xk.format_url(t.msg,"video");e.success&&e.success({result:t.msg,value:n})}}})},fail(e){e.errMsg}})},upload_files(e){const t=e.value;xk.config.file_suffix;const n=e.count?e.count:1;t.length>=n?xk.alert("上传数量已达上限"):(console.log("upload_files",e),xk.alert("暂未开放"))},upload_audio(e){const t=e.value;xk.config.audio_suffix;const n=e.count?e.count:1;t.length>=n?xk.alert("上传数量已达上限"):xk.alert("暂未开放")},video_coverImage:e=>`${e}?x-oss-process=video/snapshot,t_1,m_fast`,view_imgs(e,t){e&&0!=e.length?MM({urls:e,current:t}):xk.alert("暂无")},view_file(e){let t=xk.get_file_suffix(e).id;if(!["doc","xls","ppt","pdf","docx","xlsx","pptx"].includes(t))return xk.alert("操作需要在web端"),void console.log("Unsupported suffix",t);LM({url:e,success:e=>{XI({filePath:e.tempFilePath,fail:e=>{console.log("rs",e)}})}})},get_file_suffix(e,t){t||(t="file");const n=xk.config[{file:"file_suffix",audio:"audio_suffix"}[t]];let o="";return e&&(o=n.find((t=>t.id===e.split(".").pop().toLowerCase()))),o},get_audio_suffix(e){const t=xk.config.audio_suffix;let n="";return e&&(n=t.find((t=>t.id===e.split(".").pop().toLowerCase()))),n},payment(e){(e=e||{}).data=e.data?e.data:{}},payment_request(e){if(e.debug&&console.log("params",e),!e.fn)throw"no function";function t(t){const n=e.cb;n&&_y({url:xk.setUrl("/index/pay_result",{orderNumber:n.orderNumbers||"",result:t,styles:n.styles||"",price:n.price||"",url:n.url||""})})}e.fn(e.data).then((n=>{if(e.debug&&console.log("request success result",n),200==n.code)switch(e.data.payType){case"1":switch(e.method){case"mp":n.data&&n.data.paySign?uni.requestPayment({provider:"wxpay",timeStamp:n.data.timeStamp,package:n.data.package,nonceStr:n.data.nonceStr,paySign:n.data.paySign,signType:n.data.signType,success(o){e.success&&e.success(n),t("success")},fail(n){e.fail&&e.fail(n),t("fail")},complete(t){e.debug&&console.log("requestPayment complete",t),e.complete&&e.complete(t)}}):e.fail&&e.fail("no data");break;case"app":uni.requestPayment({provider:"wxpay",orderInfo:n.data,success(o){e.success&&e.success(n),t("success")},fail(n){e.fail&&e.fail(n),t("fail")},complete(t){e.debug&&console.log("requestPayment complete",t),e.complete&&e.complete(t)}})}break;case"2":if("app"===e.method)uni.requestPayment({provider:"alipay",orderInfo:n.msg,success(o){e.success&&e.success(n),t("success")},fail(n){e.fail&&e.fail(n),t("fail")},complete(t){e.debug&&console.log("requestPayment complete",t),e.complete&&e.complete(t)}});break;case"4":e.success&&e.success(n),t("success")}else xk.alert(n.msg),e.fail&&e.fail(n)})).catch((e=>{console.log("request catch result",e)}))},weChatLogin(e){e=e||{};const t=WI("parent_id"),n=WI("admin_id");uni.getUserProfile({desc:"weixin",success:o=>{const i=o.userInfo;let s={nickName:i.nickName,avatarUrl:i.avatarUrl};jC({provider:"weixin",success:o=>{s.code=o.code,s.platform="wechatMini",t&&(s.parent_id=t),n&&(s.admin_id=n),"login:ok"==o.errMsg&&xk.request({url:"/api/user/third",data:s,load:1}).then((t=>{200==t.code&&e.success&&e.success(t)}))}})},fail(t){xk.alert("您拒绝了授权"),e.fail&&e.fail(t)},complete(){e.complete&&e.complete()}})},authorize(e){return new Promise(((t,n)=>{e||(e={});const o={location:{name:"定位服务",scope:"scope.userLocation",txt:"需要获取您的地理位置"},photosAlbum:{name:"相册",scope:"scope.writePhotosAlbum",txt:"需要访问您的相册"},camera:{name:"摄像头",scope:"scope.camera",txt:"需要访问您的摄像头"}};e.key&&(e={...e,...o[e.key]});this[""](e).then((n=>{e.success&&e.success(n),t(n)})).catch((t=>{e.fail&&e.fail(t),n(t)}))}))},appAuthorize(e){return new Promise(((t,n)=>{if(!1===uni.getSystemSetting().locationEnabled)return this.alert(e.txt),void n({msg:"未授权对应功能"});const o=uni.getAppAuthorizeSetting().locationAuthorized;if(console.log("locationAuthorized",o),"config error"!==o){if("denied"===o);else if("authorized"===o)return void t(e);if("android"!=BI().platform)return this.alert("请在设置里允许打开定位信息"),void t({msg:"用户未开启定位权限"});plus.android.requestPermissions(["android.permission.ACCESS_FINE_LOCATION"],(e=>{for(let t=0;t{n({msg:"引导用户打开设置页面",info:e})},fail:e=>{n({msg:"用户设置页面打开失败",info:e})}})}),(e=>{console.log("申请权限错误:"+e.code+" = "+e.message),t({code:e.code,message:e.message})}))}else n({msg:"开发者未勾选定位服务模块"})}))},weChatAuthorize:e=>new Promise(((t,n)=>{["scope.userInfo","scope.userLocation","scope.userLocationBackground","scope.address","scope.record","scope.writePhotosAlbum","scope.camera","scope.invoice","scope.invoiceTitle","scope.werun"].includes(e.scope)?uni.authorize({scope:e.scope,success:e=>{t(e)},fail:t=>{n(t),xk.alert({title:"系统提示",value:e.txt,success:e=>{e.confirm&&uni.openSetting()}})}}):t({msg:"不在限制范围内"})})),finalLogin(e,t){const n=e.data;jI("token",n),aC({mask:!0}),xk.getUserinfo((e=>{pg("login"),xk.loginTencent(e),xk.loginAccountManagement(e),setTimeout((()=>{fy({url:"/pages/index/index"})}),500),t&&t()}))},loginAccountManagement(e){let t=WI("userInfoList")||[];const n=t.findIndex((t=>t.userId===e.userId));-1!==n&&t.splice(n,1),t.push(e),jI("userInfoList",t)},loginTencent(e){Uk.login.getIMToken({query:{userId:e.userId}}).then((t=>{const n={SDKAppID:xk.config.TChat.SDKAppID,userID:e.userId+"",userSig:t};uni.$TUICallKit.login(n,(e=>{0===e.code?console.log("[TUICallKit] login success."):console.error("[TUICallKit] login failed, failed message = ",e.msg,params)})),uni.$chat.login({userID:e.userId+"",userSig:t}).then((e=>{console.log("im login success",e)}))}))},getUserinfo:e=>new Promise((t=>{Uk.mine.getUserinfo().then((n=>{if(200===n.code){const o=n.user;o.userPortrait=xk.format_url(o.userPortrait,"img"),o.background=xk.format_url(o.background,"img"),t(o),wk.commit("setState",{key:"userinfo",value:o}),jI("userinfo",o),e&&e(o)}})).finally((()=>{rC()}))})),isLogin(e){let t=uni.$store.state.userinfo;return new Promise(((n,o)=>{t.userId?(n(),e&&e()):o()}))},logout(e){wk.state.userinfo.userId&&(pg("logout"),uni.$chat.logout().then((e=>{console.log("tim logout rs")})).catch((e=>{console.log("tim logout error:",e)}))),wk.commit("setState",{key:"userinfo",value:{}}),YI("userinfo"),YI("token"),e&&e()},isAuth(e){xk.isLogin((()=>{const t=uni.$store.state.userinfo;console.log("userinfo.userIdCard",t.userIdCard),t.userIdCard?e.success&&e.success(t):(e.noLink||GM({url:"/pages/mine/real-name-authentication/index"}),e.fail&¶rm.fail(t))}))},makePhone(e){e||xk.alert("暂无手机号"),bI({phoneNumber:e,fail(e){console.log("err",e)}})},format_url:(e,t)=>e?e.match(/^http/)?e:"https://9yvideo.oss-cn-beijing.aliyuncs.com/"+e:"",replace_url(e){if(!e||"string"!=typeof e)throw`${e} is not String`;return e.slice(e.indexOf("?fileName=")+10)},formart_lnglat:e=>e?e=parseFloat(Number(e).toFixed(6)):e,checkLink(e,t="navigateTo"){const n=xy(),o=e,i=n.findIndex((e=>e.route==o));i<0?uni[t]({url:`/${o}`}):wM({delta:n.length-i-1})},rp(e){var t=["零","一","二","三","四","五","六","七","八","九","十"],n="";e=""+e;for(var o=0;o{xk.alert({title:"文本已复制到剪贴板"})}})},showToastAndRedirect(e,t="none",n=()=>{}){iC({title:e,icon:t,duration:2e3,complete:()=>{n(),rC()}})},toChat(e){GM({url:xk.setUrl("/pages/news/question-answer/index",{name:e.name,msgId:e.msgId,type:e.type})})}},Fk={onLaunch(){this.getUserinfo()},methods:{getUserinfo(){const e=WI("token"),t=WI("userinfo");e&&(t&&wk.commit("setState",{key:"userinfo",value:t}),xk.getUserinfo((()=>{xk.loginTencent(t),xk.loginAccountManagement(t)})))}}};hI(Fk,{init:dI,setup(e){const t=uy(),n=()=>{var n;n=e,Object.keys(Hg).forEach((e=>{Hg[e].forEach((t=>{ls(e,t,n)}))}));const{onLaunch:o,onShow:i,onPageNotFound:s,onError:a}=e,r=function({path:e,query:t}){return u($_,{path:e,query:t}),u(W_,$_),u({},$_)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:at(t.query)});if(o&&w(o,r),i&&w(i,r),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};s&&w(s,e)}a&&(e.appContext.config.errorHandler=e=>{w(a,e)})};return la(md).isReady().then(n),hs((()=>{window.addEventListener("resize",ut(gI,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",_I),document.addEventListener("visibilitychange",mI),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{aT.emit(he,{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=()=>(Ja(),or(VC));e.setup=(e,o)=>{const i=t&&t(e,o);return m(i)?n:i},e.render=n}});var qk="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Vk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Bk(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:function(){return e[t]}})})),n}var Hk={exports:{}};Hk.exports=function(){function e(e,t){var n,o=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)),o}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,o=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[s++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var S={SDK_READY:"sdkStateReady",SDK_NOT_READY:"sdkStateNotReady",SDK_DESTROY:"sdkDestroy",MESSAGE_RECEIVED:"onMessageReceived",ROOM_CUSTOM_DATA_RECEIVED:"onRoomCustomDataReceived",MESSAGE_MODIFIED:"onMessageModified",MESSAGE_REVOKED:"onMessageRevoked",MESSAGE_READ_BY_PEER:"onMessageReadByPeer",MESSAGE_READ_RECEIPT_RECEIVED:"onMessageReadReceiptReceived",MESSAGE_EXTENSIONS_UPDATED:"onMessageExtensionsUpdated",MESSAGE_EXTENSIONS_DELETED:"onMessageExtensionsDeleted",MESSAGE_REACTIONS_UPDATED:"onMessageReactionsUpdated",CONVERSATION_LIST_UPDATED:"onConversationListUpdated",TOTAL_UNREAD_MESSAGE_COUNT_UPDATED:"onTotalUnreadMessageCountUpdated",CONVERSATION_GROUP_LIST_UPDATED:"onConversationGroupListUpdated",CONVERSATION_IN_GROUP_UPDATED:"onConversationInGroupUpdated",GROUP_LIST_UPDATED:"onGroupListUpdated",GROUP_ATTRIBUTES_UPDATED:"groupAttributesUpdated",GROUP_COUNTER_UPDATED:"onGroupCounterUpdated",TOPIC_CREATED:"onTopicCreated",TOPIC_DELETED:"onTopicDeleted",TOPIC_UPDATED:"onTopicUpdated",PROFILE_UPDATED:"onProfileUpdated",USER_STATUS_UPDATED:"onUserStatusUpdated",BLACKLIST_UPDATED:"blacklistUpdated",FRIEND_LIST_UPDATED:"onFriendListUpdated",FRIEND_GROUP_LIST_UPDATED:"onFriendGroupListUpdated",FRIEND_APPLICATION_LIST_UPDATED:"onFriendApplicationListUpdated",MY_FOLLOWERS_LIST_UPDATED:"onMyFollowersListUpdated",MY_FOLLOWING_LIST_UPDATED:"onMyFollowingListUpdated",MUTUAL_FOLLOWERS_LIST_UPDATED:"onMutualFollowersListUpdated",KICKED_OUT:"kickedOut",ERROR:"error",NET_STATE_CHANGE:"netStateChange",ALL_RECEIVE_MESSAGE_OPT_UPDATED:"onAllReceiveMessageOptUpdated"},E={MSG_TEXT:"TIMTextElem",MSG_IMAGE:"TIMImageElem",MSG_SOUND:"TIMSoundElem",MSG_AUDIO:"TIMSoundElem",MSG_FILE:"TIMFileElem",MSG_FACE:"TIMFaceElem",MSG_VIDEO:"TIMVideoFileElem",MSG_GEO:"TIMLocationElem",MSG_LOCATION:"TIMLocationElem",MSG_GRP_TIP:"TIMGroupTipElem",MSG_GRP_SYS_NOTICE:"TIMGroupSystemNoticeElem",MSG_CUSTOM:"TIMCustomElem",MSG_MERGER:"TIMRelayElem",MSG_PRIORITY_HIGH:"High",MSG_PRIORITY_NORMAL:"Normal",MSG_PRIORITY_LOW:"Low",MSG_PRIORITY_LOWEST:"Lowest",CONV_C2C:"C2C",CONV_GROUP:"GROUP",CONV_TOPIC:"TOPIC",CONV_SYSTEM:"@TIM#SYSTEM",CONV_AT_ME:1,CONV_AT_ALL:2,CONV_AT_ALL_AT_ME:3,CONV_MARK_TYPE_STAR:1,CONV_MARK_TYPE_UNREAD:2,CONV_MARK_TYPE_FOLD:4,CONV_MARK_TYPE_HIDE:8,GRP_PRIVATE:"Private",GRP_WORK:"Private",GRP_PUBLIC:"Public",GRP_CHATROOM:"ChatRoom",GRP_MEETING:"ChatRoom",GRP_AVCHATROOM:"AVChatRoom",GRP_COMMUNITY:"Community",GRP_ROOM:"Room",GRP_LIVE:"Live",GRP_MBR_ROLE_OWNER:"Owner",GRP_MBR_ROLE_ADMIN:"Admin",GRP_MBR_ROLE_MEMBER:"Member",GRP_MBR_ROLE_CUSTOM:"Custom",GRP_TIP_MBR_JOIN:1,GRP_TIP_MBR_QUIT:2,GRP_TIP_MBR_KICKED_OUT:3,GRP_TIP_MBR_SET_ADMIN:4,GRP_TIP_MBR_CANCELED_ADMIN:5,GRP_TIP_GRP_PROFILE_UPDATED:6,GRP_TIP_MBR_PROFILE_UPDATED:7,GRP_TIP_BAN_AVCHATROOM_MEMBER:10,GRP_TIP_UNBAN_AVCHATROOM_MEMBER:11,MSG_REMIND_ACPT_AND_NOTE:"AcceptAndNotify",MSG_REMIND_ACPT_NOT_NOTE:"AcceptNotNotify",MSG_REMIND_DISCARD:"Discard",RECEIVE_WITH_OFFLINE_PUSH_EXCEPT_AT:"AcceptNotNotifyExceptAt",NOT_RECEIVE_OFFLINE_PUSH_EXCEPT_AT:"AcceptNotNotifyExceptAt",NOT_RECEIVE_MSG_EXCEPT_AT:"NotReceiveMsgExceptAt",GENDER_UNKNOWN:"Gender_Type_Unknown",GENDER_FEMALE:"Gender_Type_Female",GENDER_MALE:"Gender_Type_Male",KICKED_OUT_MULT_ACCOUNT:"multipleAccount",KICKED_OUT_MULT_DEVICE:"multipleDevice",KICKED_OUT_USERSIG_EXPIRED:"userSigExpired",KICKED_OUT_REST_API:"REST_API_Kick",ALLOW_TYPE_ALLOW_ANY:"AllowType_Type_AllowAny",ALLOW_TYPE_NEED_CONFIRM:"AllowType_Type_NeedConfirm",ALLOW_TYPE_DENY_ANY:"AllowType_Type_DenyAny",FORBID_TYPE_NONE:"AdminForbid_Type_None",FORBID_TYPE_SEND_OUT:"AdminForbid_Type_SendOut",JOIN_OPTIONS_FREE_ACCESS:"FreeAccess",JOIN_OPTIONS_NEED_PERMISSION:"NeedPermission",JOIN_OPTIONS_DISABLE_APPLY:"DisableApply",JOIN_STATUS_SUCCESS:"JoinedSuccess",JOIN_STATUS_ALREADY_IN_GROUP:"AlreadyInGroup",JOIN_STATUS_WAIT_APPROVAL:"WaitAdminApproval",INVITE_OPTIONS_DISABLE_INVITE:"DisableInvite",INVITE_OPTIONS_NEED_PERMISSION:"NeedPermission",INVITE_OPTIONS_FREE_ACCESS:"FreeAccess",GRP_PROFILE_OWNER_ID:"ownerID",GRP_PROFILE_CREATE_TIME:"createTime",GRP_PROFILE_LAST_INFO_TIME:"lastInfoTime",GRP_PROFILE_MEMBER_NUM:"memberNum",GRP_PROFILE_MAX_MEMBER_NUM:"maxMemberNum",GRP_PROFILE_JOIN_OPTION:"joinOption",GRP_PROFILE_INVITE_OPTION:"inviteOption",GRP_PROFILE_INTRODUCTION:"introduction",GRP_PROFILE_NOTIFICATION:"notification",GRP_PROFILE_MUTE_ALL_MBRS:"muteAllMembers",SNS_ADD_TYPE_SINGLE:"Add_Type_Single",SNS_ADD_TYPE_BOTH:"Add_Type_Both",SNS_DELETE_TYPE_SINGLE:"Delete_Type_Single",SNS_DELETE_TYPE_BOTH:"Delete_Type_Both",SNS_APPLICATION_TYPE_BOTH:"Pendency_Type_Both",SNS_APPLICATION_SENT_TO_ME:"Pendency_Type_ComeIn",SNS_APPLICATION_SENT_BY_ME:"Pendency_Type_SendOut",SNS_APPLICATION_AGREE:"Response_Action_Agree",SNS_APPLICATION_AGREE_AND_ADD:"Response_Action_AgreeAndAdd",SNS_CHECK_TYPE_BOTH:"CheckResult_Type_Both",SNS_CHECK_TYPE_SINGLE:"CheckResult_Type_Single",SNS_TYPE_NO_RELATION:"CheckResult_Type_NoRelation",SNS_TYPE_A_WITH_B:"CheckResult_Type_AWithB",SNS_TYPE_B_WITH_A:"CheckResult_Type_BWithA",SNS_TYPE_BOTH_WAY:"CheckResult_Type_BothWay",NET_STATE_CONNECTED:"connected",NET_STATE_CONNECTING:"connecting",NET_STATE_DISCONNECTED:"disconnected",MSG_AT_ALL:"__kImSDK_MesssageAtALL__",READ_ALL_C2C_MSG:"readAllC2CMessage",READ_ALL_GROUP_MSG:"readAllGroupMessage",READ_ALL_MSG:"readAllMessage",USER_STATUS_UNKNOWN:0,USER_STATUS_ONLINE:1,USER_STATUS_OFFLINE:2,USER_STATUS_UNLOGINED:3,IOS_OFFLINE_PUSH_NO_SOUND:"push.no_sound",IOS_OFFLINE_PUSH_DEFAULT_SOUND:"default"},D={NEW_INVITATION_RECEIVED:"newInvitationReceived",INVITEE_ACCEPTED:"ts_invitee_accepted",INVITEE_REJECTED:"ts_invitee_rejected",INVITATION_CANCELLED:"ts_invitation_cancelled",INVITATION_TIMEOUT:"ts_invitation_timeout",INVITATION_MODIFIED:"ts_invitation_modified",ACTION_TYPE_UNKNOWN:0,ACTION_TYPE_INVITE:1,ACTION_TYPE_CANCEL_INVITE:2,ACTION_TYPE_ACCEPT_INVITE:3,ACTION_TYPE_REJECT_INVITE:4,ACTION_TYPE_INVITE_TIMEOUT:5},k=(s(q,[{key:"use",value:function(e){if("function"!=typeof e)throw"middleware must be a function";return this.cache.push(e),this}},{key:"next",value:function(e){if(this.middlewares&&0=Math.pow(2,64)&&(Yt({api:t,paramName:n,desc:An("NumberLessThanLog",n,"Math.pow(2,64)")}),1)):(Yt({api:t,paramName:n,desc:Jt()}),!1)}},enableMark:t({},Ln)},createConversationGroup:{conversationIDList:t({},Q),groupName:t(t({},Y),{},{validator:function(e,t,n){return!(!e||32=this.TOPIC_MSG_LIMIT&&this._convM.clearMemMsg(i,!0)}}catch(a){n.e(a)}finally{n.f()}}}},{key:"pushIn",value:function(e){var t=1>(-2*s&6))))i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(i);try{return decodeURIComponent(escape(n))}catch(r){return""}}Bo.mixin=function(e){(e=e.prototype||e)._isReady=!1,e.ready=function(e){if(e)return this._isReady?void(1=this.MAX_LENGTH&&(t=this.map.entries().next().value[0],this.map.delete(t)),this.map.set(e,1)}},{key:"has",value:function(e){return this.map.has(e)}},{key:"delete",value:function(e){this.has(e)&&this.map.delete(e)}},{key:"reset",value:function(){this.map.clear()}}]),ts),ti=["groupID","name","avatar","type","introduction","notification","ownerID","selfInfo","createTime","infoSequence","lastInfoTime","lastMessage","nextMessageSeq","memberNum","maxMemberNum","memberList","joinOption","groupCustomField","muteAllMembers","isSupportTopic","inviteOption","_lastRevokedTime"],ni=(s(es,[{key:"memberNum",get:function(){return this.memberCount},set:function(e){}},{key:"maxMemberNum",get:function(){return this.maxMemberCount},set:function(e){}},{key:"_initGroup",value:function(e){for(var t in e)ti.indexOf(t)<0||("selfInfo"!==t?("memberNum"===t&&(this.memberCount=e[t]),"maxMemberNum"===t&&(this.maxMemberCount=e[t]),"isSupportTopic"!==t?this[t]=e[t]:this.isSupportTopic=1===e[t]):this.updateSelfInfo(e[t]))}},{key:"updateGroup",value:function(e){var t=this;(e.appid=void 0,e.grossTopicNextMsgSeq=void 0,e.selfInfo&&(e.selfInfo.grossTopicReadSeq=void 0),e=JSON.parse(JSON.stringify(e))).lastMsgTime&&(this.lastMessage.lastTime=e.lastMsgTime),ut(e.muteAllMembers)||("On"===e.muteAllMembers?e.muteAllMembers=!0:e.muteAllMembers=!1),e.groupCustomField&&_t(this.groupCustomField,e.groupCustomField),ut(e.memberNum)||(this.memberCount=e.memberNum),ut(e.maxMemberNum)||(this.maxMemberCount=e.maxMemberNum),ut(e.isSupportTopic)||(this.isSupportTopic=je(e.isSupportTopic)?1===e.isSupportTopic:e.isSupportTopic),Ze(this,e,["members","errorCode","lastMsgTime","groupCustomField","memberNum","maxMemberNum","isSupportTopic"]),Ye(e.members)&&0e?(c.messageList=i.slice(r-e,r),c.nextReqMessageID=a?i[r-e].ID:i[r-e].sequence+""):(c.messageList=i.slice(0,r),c.isCompleted=!0):eo||n&&s.sequence>n)){if("in"===s.flow&&s.isRead)break;s.setIsRead(!0)}}},{key:"updateUnreadCount",value:function(e){var t,n=!(1i&&e.sequence<=o:e.sequence>i&&e.sequencei&&e.length<60?a._recursiveGetMsgList(e,t,n,o,i,s):a._emitMsgReceived(t,e)}))}},{key:"_emitMsgReceived",value:function(e,t){var n,o,i=this;0=e.MAX_CHECK_COUNT?(e._deleteCachedGroupTips(n),e._checkCountMap.delete(n)):e._checkCountMap.set(n,++o)}))}},{key:"onNewGroupTips",value:function(e){Ae.l("".concat(this._n,".onNewGroupTips options:").concat(JSON.stringify(e.dataList)));var t=(e=this._assembly(e)).eventDataList,n=e.result;0<(e=e.AVChatRoomMessageList).length&&this._grpM.onAVChatRoomMessage(e),0=e.MAX_CHECK_COUNT?(e._deleteCachedGroupMessage(n),e._checkCountMap.delete(n)):e._checkCountMap.set(n,++o)}))}},{key:"updateLastMsg",value:function(e){var n="".concat(this._n,".updateLastMsg");if(0!==this._grpM.getGroupMap().size){for(var o,i,s,a,r=!1,c=e.length,u=0;u=this.CACHE_EXPIRE_TIME||a=this.EXPIRE_TIME?this._getRemoteGroupCounters({groupID:o,avChatRoomKey:s}).then((function(e){return a.setMoreMessage("from remote. count:".concat(e.length)).end(),Ae.l("".concat(n," from remote. groupID:").concat(o)),mn({counters:e=t._getLocalCounters(o,i)})})).catch((function(e){return a.setError(e).end(),yn(e)})):(a.setMoreMessage("from cache").end(),Ae.l("".concat(n," from cache. groupID:").concat(o)),vn({counters:e=this._getLocalCounters(o,i)}))}},{key:"_getRemoteGroupCounters",value:function(e){var n=this;return this._grpM.req({P:Gn.GET_GRP_COUNTER,data:t({},e)}).then((function(t){var o=void 0===(o=(t=t.data).counterList)?[]:o;return t=t.groupCounterSeq,n._updateLocalGroupCounters({groupID:e.groupID,counterList:o,groupCounterSeq:t}),Ae.l("".concat(n._n,"._getRemoteGroupCounters ok. groupID:").concat(e.groupID)),o})).catch((function(e){return yn(e)}))}},{key:"_convertObjectToList",value:function(e){var t=[];return Object.keys(e).forEach((function(n){t.push({key:n,value:e[n]})})),t}},{key:"_updateGroupCounters",value:function(e){var n="".concat(this._n,"._updateGroupCounters"),o=e.groupID,i=e.avChatRoomKey,s=e.mode;return Ae.l("".concat(n,". groupID:").concat(o," avChatRoomKey:").concat(i," mode:").concat(s)),this._grpM.req({P:Gn.UPDATE_GRP_COUNTER,data:t({},e)}).then((function(e){Ae.l("".concat(n," ok.")),e=e.data.counterList;var t={};return(void 0===e?[]:e).forEach((function(e){var n=e.key;e=e.value,t[n]=e})),t})).catch((function(e){return yn(e)}))}},{key:"_hasLocalGroupCounters",value:function(e){return this._groupCountersMap.has(e)}},{key:"_getLocalGroupCounters",value:function(e){return this._hasLocalGroupCounters(e)||this.initGroupCountersCache({groupID:e}),this._groupCountersMap.get(e)}},{key:"_updateLocalGroupCounters",value:function(e){var t,n,o,i=e.groupID,s=void 0===(s=e.counterList)?[]:s;e=e.groupCounterSeq,this._hasLocalGroupCounters(i)&&(o=this._getLocalGroupCounters(i),t=o.counters,n=o.avChatRoomKey,o=o.groupCounterSeq,0this._startBroadcastSeq&&(this._startBroadcastSeq=r),Ye(s)&&01e3*t.expireTime&&1e4=i&&t.messageList.push(e)})),(It({groupID:n})||Mt(n))&&0===t.messageList.length&&s[0].sequencei.nextMessageSeq&&(i.updateNextMessageSeq(n),i.updateLastMessage(e),i.updateSelfInfo({readedSequence:t}),i.updateUnreadCount(0),this.emitOEvt(S.TOPIC_UPDATED,{groupID:o,topic:i}))}},{key:"onMessageModified",value:function(e){var t,n=e.to,o=e.time,i=e.sequence,s=e.elements,a=e.cloudCustomData,r=e.messageVersion,c=Gt(n),u=this.getLocalTopic(c,n);u&&(t=u.lastMessage,Ae.d("".concat(this._n,".onMessageModified topicID:").concat(n," lastMessage:"),JSON.stringify(t),"options:",JSON.stringify(e)),t)&&(null===t.payload||t.lastTime===o&&t.lastSequence===i&&t.version!==r)&&(t.type=s[0].type,t.payload=s[0].content,t.messageForShow=Ut(t.type,t.payload,this.isIntl()),t.cloudCustomData=a,t.version=r,t.lastSequence=i,t.lastTime=o,this.emitOEvt(S.TOPIC_UPDATED,{groupID:c,topic:u}))}},{key:"onMessageRevoked",value:function(e){var t,n,o,i=this;0!==e.length&&(n=t=null,o=!1,e.forEach((function(e){var s=e.to;n=Gt(s),(t=i.getLocalTopic(n,s))&&(t.reduceUnreadCount()&&(o=!0),t.isLastMessageRevoked(e)&&(t.setLastMessageRevoked(!0),t.setLastMessageRevoker(e.revoker),o=!0),(s=t.selfInfo.excludedUnreadSequenceList||[]).push(e.sequence),t.updateSelfInfo({excludedUnreadSequenceList:s}))})),o)&&this.emitOEvt(S.TOPIC_UPDATED,{groupID:n,topic:t})}},{key:"isLastMessageRevoked",value:function(e){var t=e.topicID,n=(e=e.sequence,Gt(t));return n=this.getLocalTopic(n,t),t=!1,n?n.isLastMessageRevoked({sequence:e}):t}},{key:"updateUnreadCountAndLastMsg",value:function(e,t,n){var o,i=Gt(e),s=this.getLocalTopic(i,e);s&&(o=s.selfInfo.excludedUnreadSequenceList||[],ut(n)||(o=n),t._isExcludedFromUnreadCount&&o.push(t.sequence),s.updateSelfInfo({excludedUnreadSequenceList:o}),Ae.l("".concat(this._n,".updateUnreadCountAndLastMsg seq:").concat(t.sequence," lastSeq:").concat(s.lastMessage.lastSequence)),t.sequence>s.lastMessage.lastSequence)&&(s.updateLastMessage(t),n=t.sequence+1,s.updateNextMessageSeq(n),o=this._computeUnreadCount(s),s.updateUnreadCount(o),(t=this.get(11).getLocalConversation("".concat(E.CONV_GROUP).concat(e)))&&t.updateUnreadCount({nextUnreadCount:o,isFromGetConversations:!0}),this.emitOEvt(S.TOPIC_UPDATED,{groupID:i,topic:s}))}},{key:"getJoinedCommunityList",value:function(){return this.get(7).syncCommunityWithTopic()}},{key:"createTopicInCommunity",value:function(e){var n,o=this,i="".concat(this._n,".").concat("createTopicInCommunity"),s=e.topicID;return ut(s)||Mt(s)?e.topicName&&!1===this._filterProfanity("topicName",e)||e.introduction&&!1===this._filterProfanity("introduction",e)||e.notification&&!1===this._filterProfanity("notification",e)?yn({code:Pn.PROFANITY_FOUND}):(n=new Jn("createTopicInCommunity"),this.req({P:Gn.CREATE_TOPIC,data:t({},e)}).then((function(s){return s=s.data.topicID,n.setMessage("topicID:".concat(s)).end(),Ae.l("".concat(i," ok. topicID:").concat(s)),o._updateTopicMap([t(t({},e),{},{topicID:s})]),mn({topicID:s})})).catch((function(e){return n.setError(e).end(),Ae.e("".concat(i," failed. error:"),e),yn(e)}))):yn({code:Pn.ILLEGAL_TOPIC_ID})}},{key:"deleteTopicFromCommunity",value:function(e){var t=this,n="".concat(this._n,".").concat("deleteTopicFromCommunity"),o=e.groupID,i=(e=void 0===(e=e.topicIDList)?[]:e,new Jn("deleteTopicFromCommunity"));return i.setMessage("groupID:".concat(o," topicIDList:").concat(e)),this.req({P:Gn.DEL_TOPIC,data:{groupID:o,topicIDList:e}}).then((function(e){e=e.data.resultList;var s=[],a=[];return(void 0===e?[]:e).forEach((function(e){var t=e.topicID,n=e.errorCode;e=e.errorInfo,0===n?s.push({topicID:t}):a.push({topicID:t,code:n,message:e})})),e="success count:".concat(s.length,", fail count:").concat(a.length),i.setMoreMessage(e).end(),Ae.l("".concat(n," ok. ").concat(e)),s.forEach((function(e){t._deleteLocalTopic(o,e.topicID)})),mn({successTopicList:s,failureTopicList:a})})).catch((function(e){return i.setError(e).end(),Ae.e("".concat(n," failed. error:"),e),yn(e)}))}},{key:"updateTopicProfile",value:function(e){var n,o=this,i="".concat(this._n,".").concat("updateTopicProfile");return Ae.l("".concat(i," options:"),e),e.topicName&&!1===this._filterProfanity("topicName",e)||e.introduction&&!1===this._filterProfanity("introduction",e)||e.notification&&!1===this._filterProfanity("notification",e)?yn({code:Pn.PROFANITY_FOUND}):((n=new Jn("updateTopicProfile")).setMessage("groupID:".concat(e.groupID," topicID:").concat(e.topicID)),ut(e.muteAllMembers)||(e.muteAllMembers=!0===e.muteAllMembers?"On":"Off"),this.req({P:Gn.UPDATE_TOPIC_PROFILE,data:t({},e)}).then((function(){return n.end(),Ae.l("".concat(i," ok")),o._updateTopicMap([e]),mn({topic:o.getLocalTopic(e.groupID,e.topicID)})})).catch((function(e){return n.setError(e).end(),Ae.e("".concat(i," failed. error:"),e),yn(e)})))}},{key:"getTopicList",value:function(e){var n=this,o="".concat(this._n,".").concat("getTopicList"),i=e.groupID,s=0===(e=void 0===(e=e.topicIDList)?[]:e).length,a=new Jn("getTopicList");if(a.setMessage("groupID:".concat(i)),this._getTopicTimeMap.has(i)){var r=(c=this._getTopicTimeMap.get(i)).isGetAll,c=c.time;if((r||!r&&!s)&&Date.now()-c<1e3*this.TOPIC_CACHE_TIME&&(r=this._getLocalTopicList(i,e),s||r.length===e.length))return a.setMoreMessage("from cache, topic count:".concat(r.length)).end(),Ae.l("".concat(o," groupID:").concat(i," from cache, topic count:").concat(r.length)),vn({successTopicList:r,failureTopicList:[]})}return this.req({P:Gn.GET_TOPIC_LIST,data:{groupID:i,topicIDList:e}}).then((function(e){e=e.data.topicInfoList;var r=[],c=[],u=[];return(void 0===e?[]:e).forEach((function(e){var n=e.topic,o=e.selfInfo,i=e.errorCode,s=(e=e.errorInfo,n.topicID);0===i?(r.push(t(t({},n),{},{selfInfo:o})),c.push(s)):u.push({topicID:s,code:i,message:e})})),n._updateTopicMap(r),n._handleTopicAtInfo(r),e="success count:".concat(c.length,", fail count:").concat(u.length),a.setMoreMessage(e).end(),Ae.l("".concat(o," groupID:").concat(i," from remote, ").concat(e)),e=[],Ve(c)||(n._getTopicTimeMap.set(i,{time:Date.now(),isGetAll:s}),e=n._getLocalTopicList(i,c)),mn({successTopicList:e,failureTopicList:u})})).catch((function(e){return a.setError(e).end(),Ae.e("".concat(o," failed. error:"),e),yn(e)}))}},{key:"hasLocalTopic",value:function(e,t){return!!this._topicMap.has(e)&&this._topicMap.get(e).has(t)}},{key:"getLocalTopic",value:function(e,t){var n=null;return this._topicMap.has(e)?this._topicMap.get(e).get(t):n}},{key:"_getLocalTopicList",value:function(e){var t=1this.MAX_QUERY_USER_COUNT&&(Ae.w("".concat(t," ").concat(Vt(this.MAX_QUERY_USER_COUNT))),o=n.slice(0,this.MAX_QUERY_USER_COUNT));var a=new Jn("getUserStatus");return this._userM.req({P:Gn.GET_USER_STATUS,data:{userIDList:o}}).then((function(e){var o=void 0===(o=(e=e.data).successUserList)?[]:o,s=(e=void 0===(e=e.failureUserList)?[]:e,o=o.map((function(e){return{userID:e.userID,statusType:e.statusType,customStatus:jo(e=e.customStatus)}})),e=e.map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode;return e=e.errorInfo,{userID:Ve(n)?t:n,code:o,message:e}})),ut(i)||o.unshift(i),"userID count:".concat(n.length,", success count:").concat(o.length,", fail count:").concat(e.length));return a.setMessage("".concat(s)).end(),Ae.l("".concat(t," ok. ").concat(s,".")),mn({successUserList:o,failureUserList:e})})).catch((function(e){return a.setMessage("userID count:".concat(n.length)).setError(e).end(),Ae.e("".concat(t," failed. error:"),e),yn(e)}))}},{key:"subscribeUserStatus",value:function(e){var t,n,o,i,s="subscribeUserStatus";return this._userM.canIUse(w.USER_STATUS)?(t="".concat(this._n,".").concat(s),(n=m(e=void 0===(e=e.userIDList)?[]:e)).length>this.MAX_SUBSCRIBE_USER_COUNT&&(Ae.w("".concat(t," ").concat(Vt(this.MAX_SUBSCRIBE_USER_COUNT))),n=e.slice(0,this.MAX_SUBSCRIBE_USER_COUNT)),o=new Jn(s),i="userID count:".concat(e.length),Ae.l("".concat(t," ").concat(i)),this._userM.req({P:Gn.SUB_USER_STATUS,data:{userIDList:n}}).then((function(e){return e=(void 0===(e=e.data.failureUserList)?[]:e).map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode;return e=e.errorInfo,{userID:Ve(n)?t:n,code:o,message:e}})),o.setMessage("".concat(i," fail count:").concat(e.length)).end(),Ae.l("".concat(t," ok. fail count:").concat(e.length,".")),mn({failureUserList:e})})).catch((function(e){return o.setMessage(i).setError(e).end(),Ae.e("".concat(t," failed. error:"),e),yn(e)}))):this._userM.noUse(s)}},{key:"unsubscribeUserStatus",value:function(e){var t,n,o,i,s="unsubscribeUserStatus";return this._userM.canIUse(w.USER_STATUS)?(t="".concat(this._n,".").concat(s),n=m(e=void 0===(e=(e||{}).userIDList)?[]:e),e.length>this.MAX_UNSUBSCRIBE_USER_COUNT&&(Ae.w("".concat(t," ").concat(Vt(this.MAX_UNSUBSCRIBE_USER_COUNT))),n=e.slice(0,this.MAX_UNSUBSCRIBE_USER_COUNT)),o=new Jn(s),i="userID count:".concat(e.length),Ae.l("".concat(t," ").concat(i)),e={userIDList:n},0===n.length&&(e.userIDList=void 0,e.unsubscribeAll=1),this._userM.req({P:Gn.UNSUB_USER_STATUS,data:e}).then((function(e){return e=(void 0===(e=e.data.failureUserList)?[]:e).map((function(e){var t=e.userID,n=e.invalidUserID,o=e.errorCode;return e=e.errorInfo,{userID:Ve(n)?t:n,code:o,message:e}})),o.setMessage("".concat(i," fail count:").concat(e.length)).end(),Ae.l("".concat(t," ok. fail count:").concat(e.length,".")),mn({failureUserList:e})})).catch((function(e){return o.setMessage("".concat(i)).setError(e).end(),Ae.e("".concat(t," failed. error:"),e),yn(e)}))):this._userM.noUse(s)}},{key:"reset",value:function(){this.MAX_QUERY_USER_COUNT=500,this.MAX_SUBSCRIBE_USER_COUNT=100,this.MAX_UNSUBSCRIBE_USER_COUNT=100}}]),wi),Li=(r(Pi,bn),Wo=g(Pi),s(Pi,[{key:"onContextUpdated",value:function(e){this._profileHandler.getMyProfile(),this._blacklistHandler.getBlacklist()}},{key:"mockOnNickAvatarModified",value:function(e,t){Ae.l("".concat(this._n,"._mockOnNickAvatarModified nick:").concat(e," avatar:").concat(t)),this.onProfileModified({dataList:[{pushType:1,userID:this.getMyUserID(),profileList:[{tag:Oe.NICK,value:e},{tag:Oe.AVATAR,value:t}]}]})}},{key:"onProfileModified",value:function(e){this._profileHandler.onProfileModified(e)}},{key:"onRelationChainModified",value:function(e){var t,n;Ve(e=e.dataList)||(t=[],e.forEach((function(e){e.blackListDelAccount&&t.push.apply(t,m(e.blackListDelAccount))})),0=this.MIN_THRESHOLD)&&this._report()}},{key:"onCheckTimer",value:function(){Date.now()o.MAX_THRESHOLD&&o._flushAtOnce()}))):this._lastReportTime=Date.now())}},{key:"_flushAtOnce",value:function(){var e=this.get(13),t=e.getItem(this.TAG,!1),n=this._reportBody.getLogsInMemory(),o="".concat(this._n,"._flushAtOnce");Ve(t)?(Ae.l("".concat(o," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1)):((n=n.concat(t)).length>this.MAX_THRESHOLD&&(n=n.slice(0,this.MAX_THRESHOLD)),Ae.l("".concat(o," count:").concat(n.length)),e.setItem(this.TAG,n,!0,!1))}},{key:"reset",value:function(){Ae.l("".concat(this._n,".reset")),this._lastReportTime=0,this._report(),this.REPORT_SDKAPPID_BLACKLIST=[],this.REPORT_TINYID_WHITELIST=[]}}]),hs),us="none",ls="online",ds=(s(ps,[{key:"_startRN",value:function(){var e,t=this;ee&&(e=this._m.get(18).getPlugin("chat-network-monitor"))&&(this._removeListener=e.addEventListener((function(e){var n=e.isConnected;e=e.type,t._networkType!==e&&t._onNetworkStatusChange({isConnected:void 0!==n&&n,networkType:e})})))}},{key:"start",value:function(){var e=this,t="".concat(this._n,".start");Z?(ne.getNetworkType({success:function(n){e._networkType=n.networkType||n.subtype||"",n.networkType===us?Ae.w("".concat(t," no network, please check!")):Ae.i("".concat(t," networkType:").concat(n.networkType))}}),this._mpNetworkStatusCallback=this._onNetworkStatusChange.bind(this),ne.onNetworkStatusChange(this._mpNetworkStatusCallback)):te&&(this._networkType=ls,this._webOnlineCallback=this._onWebOnline.bind(this),this._webOfflineCallback=this._onWebOffline.bind(this),window.addEventListener("online",this._webOnlineCallback),window.addEventListener("offline",this._webOfflineCallback))}},{key:"_onWebOnline",value:function(){this._onNetworkStatusChange({isConnected:!0,networkType:ls})}},{key:"_onWebOffline",value:function(){this._onNetworkStatusChange({isConnected:!1,networkType:us})}},{key:"_onNetworkStatusChange",value:function(e){var t=e.isConnected,n=(e=e.networkType,"".concat(this._n,"._onNetworkStatusChange")),o=!1,i="previous:".concat(this._networkType," current:").concat(e);t?(Ae.i("".concat(n," ").concat(i)),this._networkType!==e&&(o=!0,this._networkType=e,this._m.get(21).reConnect(!0))):this._networkType!==e&&(o=!0,this._networkType=e,Ae.w("".concat(n," no network, please check!")),this._m.get(21).offline()),o&&new Jn("networkChange").setMessage("isConnected:".concat(t," ").concat(i)).end()}},{key:"isOnline",value:function(){return this._networkType!==us}},{key:"getNetworkType",value:function(){return this._networkType}},{key:"reset",value:function(){Ae.l("".concat(this._n,".reset")),Z?null!==this._mpNetworkStatusCallback&&(ne.offNetworkStatusChange&&ne.offNetworkStatusChange(this._mpNetworkStatusCallback),this._mpNetworkStatusCallback=null):te?(null!==this._webOnlineCallback&&(window.removeEventListener("online",this._webOnlineCallback),this._webOnlineCallback=null),null!==this._onWebOffline&&(window.removeEventListener("offline",this._webOfflineCallback),this._webOfflineCallback=null)):ee&&this._removeListener&&(this._removeListener(),this._removeListener=null)}}]),ps);function ps(e){o(this,ps),this._m=e,this._networkType=ls,this._n="NetMonitorModule",this._mpNetworkStatusCallback=null,this._webOnlineCallback=null,this._webOfflineCallback=null,this._removeListener=null,this._m.getIEmitInst().on(xo.A2KEY_AND_TINYID_UPDATED,this._startRN,this)}function hs(e){o(this,hs),(e=ss.call(this,e))._n="EventStatModule",e.TAG="im-ssolog-event",e._reportBody=new rs,e.MIN_THRESHOLD=20,e.MAX_THRESHOLD=100,e.WAITING_TIME=6e4,e.REPORT_LEVEL=[4,5,6],e.REPORT_SDKAPPID_BLACKLIST=[],e.REPORT_TINYID_WHITELIST=[],e._lastReportTime=Date.now();var t=e.getIEmitInst();return t.on(xo.A2KEY_AND_TINYID_UPDATED,e._onLoginSuccess,f(e)),t.on(xo.CLOUD_CONFIG,e._onCloudConfig,f(e)),e}function fs(e){o(this,fs),this._n="SSOLogBody",this._report=[]}function gs(e){o(this,gs),this._m=e,this._n="StorageModule",this._storageQueue=new Map,this._errorTolerantHandle()}function _s(e,t){return e(t={exports:{}},t.exports),t.exports}var ms,vs=_s((function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,o,s,a){if("function"!=typeof o)throw new TypeError("The listener must be a function");return o=new i(o,s||e,a),s=n?n+t:t,e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],o]:e._events[s].push(o):(e._events[s]=o,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function r(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),r.prototype.eventNames=function(){var e,o,i=[];if(0===this._eventsCount)return i;for(o in e=this._events)t.call(e,o)&&i.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},r.prototype.listeners=function(e){e=n?n+e:e;var t=this._events[e];if(!t)return[];if(t.fn)return[t.fn];for(var o=0,i=t.length,s=new Array(i);o=this.cosOptions.expiredTime-120&&this._getAuthorizationKey()}},{key:"getFileDNList",value:function(){return this._fileDNList}},{key:"_getAuthorization",value:function(e,t){t({TmpSecretId:this.cosOptions.secretId,TmpSecretKey:this.cosOptions.secretKey,XCosSecurityToken:this.cosOptions.sessionToken,ExpiredTime:this.cosOptions.expiredTime})}},{key:"upload",value:function(e){if(!0===e._relayFlag)return Promise.resolve();var t=this.get(26);switch(e.type){case E.MSG_IMAGE:return t.addTotalCount(Hn),this._uploadImage(e);case E.MSG_FILE:return t.addTotalCount(Hn),this._uploadFile(e);case E.MSG_AUDIO:return t.addTotalCount(Hn),this._uploadAudio(e);case E.MSG_VIDEO:return t.addTotalCount(Hn),this._uploadVideo(e);default:return Promise.resolve()}}},{key:"_uploadImage",value:function(e){var n=this,o=this.get(2),i=e.getElements()[0],s=o.getMessageOption(e.clientSequence);return this.doUploadImage({file:s.payload.file,to:s.to,message:e,onProgress:function(e){if(i.updatePercent(e),ze(s.onProgress))try{s.onProgress(e)}catch(t){return yn({code:Pn.MSG_ONPROGRESS_ERR})}}}).then((function(o){var s=o.location,a=o.fileType,r=o.fileSize,c=o.width,u=o.height,l=o.smallImageUrl,d=o.smallImageWidth,p=o.smallImageHeight,h=o.largeImageUrl,f=o.largeImageWidth,g=o.largeImageHeight,_=o.imageInfoArray;o=n.isPrivateNetWork()?s:st(s),i.updateImageFormat(a);var m,v,y={size:r,url:o,width:c,height:u};if(_&&0<_.length)for(var I=0;I<_.length;I++){var M=_[I];1===M.type?m=M:2===M.type?v=M:y=t(t({},y),M)}else v=l&&h?(m={url:l,width:d,height:p},{url:h,width:f,height:g}):(m=At({originUrl:o,originWidth:c,originHeight:u,min:198}),At({originUrl:o,originWidth:c,originHeight:u,min:720}));return i.updateImageInfoArray([t({},y),t({},v),t({},m)]),e}))}},{key:"_uploadFile",value:function(e){var t=this,n=this.get(2),o=e.getElements()[0],i=n.getMessageOption(e.clientSequence);return this.doUploadFile({file:i.payload.file,to:i.to,message:e,onProgress:function(e){if(o.updatePercent(e),ze(i.onProgress))try{i.onProgress(e)}catch(t){return yn({code:Pn.MSG_ONPROGRESS_ERR})}}}).then((function(n){var i=n=n.location;return t.isPrivateNetWork()||(i=oo(i=st(n),t._fileDownloadProxy,t._authKey,t._fileDNList)),o.updateFileUrl(i),e}))}},{key:"_uploadAudio",value:function(e){var t=this,n=this.get(2),o=e.getElements()[0],i=n.getMessageOption(e.clientSequence);return this.doUploadAudio({file:i.payload.file,to:i.to,message:e,onProgress:function(e){if(o.updatePercent(e),ze(i.onProgress))try{i.onProgress(e)}catch(t){return yn({code:Pn.MSG_ONPROGRESS_ERR})}}}).then((function(n){return n=n.location,n=t.isPrivateNetWork()?n:st(n),o.updateAudioUrl(n),e}))}},{key:"_uploadVideo",value:function(e){var t=this,n=this.get(2),o=e.getElements()[0],i=n.getMessageOption(e.clientSequence);return this.doUploadVideo({file:i.payload.file,to:i.to,message:e,onProgress:function(e){if(o.updatePercent(e),ze(i.onProgress))try{i.onProgress(e)}catch(t){return yn({code:Pn.MSG_ONPROGRESS_ERR})}}}).then((function(n){var i=n.location;return n=n.snapshotInfo,i=t.isPrivateNetWork()?i:st(i),o.updateVideoUrl(i),Ve(n)||o.updateSnapshotInfo(n),e}))}},{key:"_checkSizeError",value:function(e){var t="";return"A"===e?t="audio":"I"===e?t="image":"V"===e?t="video":"F"===e&&(t="file"),yn({code:Pn["MSG_".concat(e,"_SIZE_LIMIT")],message:this.getErrMsg("UploadSizeLimit",t,"".concat(this.UPLOAD_SIZE_LIMIT[e]/1048576,"MB"))})}},{key:"doUploadImage",value:function(e){var t,n,o=this;return!e.file||this._isEmptyFileList(e.file.files)?yn({code:Pn.MSG_I_SELECT_F_FIRST}):!0!==(t=this._checkImageType(e.file))||!0!==(t=this._checkImageSize(e.file))?t:(n=null,this._setUploadFileType(1),this.uploadByCOS(e).then((function(t){if(n=t,o.isPrivateNetWork())return Dt(s);if(Ye(n.imageInfoArray)){var i=n.imageInfoArray.find((function(e){return 3===e.type}));if(i)return i}var s;return ee?{width:e.file.width,height:e.file.height}:(s=st(t.location),o.COSSDK?Dt(s):Dt(s=oo(s,o._fileDownloadProxy,o._authKey,o._fileDNList)))})).then((function(e){return n.width=e.width,n.height=e.height,Promise.resolve(n)})))}},{key:"_checkImageType",value:function(e){var t="";return t=Z?e.url.slice(e.url.lastIndexOf(".")+1):ee?e.type.split("/")[1]:e.files[0].name.slice(e.files[0].name.lastIndexOf(".")+1),0<=Jo.indexOf(t.toLowerCase())||yn({code:Pn.MSG_I_TYPES_LIMIT})}},{key:"_checkImageSize",value:function(e){return 0===(e=(Z||ee?e:e.files[0]).size)?yn({code:Pn.MSG_F_IS_EMPTY}):ethis.UPLOAD_SIZE_LIMIT.F?this._checkSizeError("F"):0===e.file.files[0].size?yn({code:Pn.MSG_F_IS_EMPTY}):(this._setUploadFileType(255),this.uploadByCOS(e))}},{key:"doUploadVideo",value:function(e){return e.file.videoFile.size>this.UPLOAD_SIZE_LIMIT.V?this._checkSizeError("V"):0===e.file.videoFile.size?yn({code:Pn.MSG_F_IS_EMPTY}):-1===Zo.indexOf(e.file.videoFile.type)?yn({code:Pn.MSG_V_TYPES_LIMIT}):(this._setUploadFileType(2),Z||ee?this.handleVideoUpload(t(t({},e),{},{file:e.file.videoFile})):te?this.handleVideoUpload(e):void 0)}},{key:"handleVideoUpload",value:function(e){var t=this;return new Promise((function(n,o){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){t.uploadByCOS(e).then((function(e){n(e)})).catch((function(){o(new Nn({code:Pn.MSG_V_UPLOAD_FAIL}))}))}))}))}},{key:"doUploadAudio",value:function(e){return e.file?e.file.size>this.UPLOAD_SIZE_LIMIT.A?this._checkSizeError("A"):0===e.file.size?yn({code:Pn.MSG_F_IS_EMPTY}):(this._setUploadFileType(3),this.uploadByCOS(e)):yn({code:Pn.MSG_A_UPLOAD_FAIL})}},{key:"uploadByCOS",value:function(e){var t,n,o,i,s=this;return ze(this._cosUploadMethod)?this.timUploadPlugin?this._uploadWithPreSigUrl(e):(t=new Jn("upload"),n="".concat(this._n,".uploadByCOS"),o=Date.now(),i=this._getFile(e),new Promise((function(a,r){var c=Z?s._createCosOptionsWXMiniApp(e):s._createCosOptionsWeb(e),u=s;s._cosUploadMethod(c,(function(e,c){var l,d,p=Object.create(null);c?e||Ye(c.files)&&c.files[0].error?(l=new Nn({code:Pn.MSG_F_UPLOAD_FAIL}),t.setError(l).end(),Ae.l("".concat(n," failed. error:"),c.files[0].error),403===c.files[0].error.statusCode&&s._getAuthorizationKey(),r(l)):(p.fileName=i.name,p.fileSize=i.size,p.fileType=i.type.slice(i.type.indexOf("/")+1).toLowerCase(),p.location=(Z?c:c.files[0].data).Location,l=Date.now()-o,c=u._formatFileSize(i.size),d=u._formatSpeed(1e3*i.size/l),c="size:".concat(c," time:").concat(l,"ms speed:").concat(d),Ae.l("".concat(n," success. name:").concat(i.name," ").concat(c)),a(p),(d=s.get(26)).addCost(Hn,l),d.addFileSize(Hn,i.size),t.setMessage(c).end()):(p=new Nn({code:Pn.MSG_F_UPLOAD_FAIL}),t.setError(p).end(),Ae.w("".concat(n," failed. error:"),e),403===e.statusCode&&s._getAuthorizationKey(),r(p))}))}))):(this.warn("PluginUndetected"),yn({code:Pn.COS_UNDETECTED}))}},{key:"_uploadWithPreSigUrl",value:function(e){var t=this,n="".concat(this._n,"._uploadWithPreSigUrl"),o=this._getFile(e);return this._createCosOptionsPreSigUrl(e).then((function(e){return new Promise((function(i,s){var a=new Jn("upload"),r=e.requestSnapshotUrl,c=void 0===r?void 0:r,u=h(e,Is),l=Date.now();t._cosUploadMethod(u,(function(r,d){if(r||403===d.statusCode)a.setError(new Nn(r)).end(),h={HttpStatusCode:9999,CostTime:Kt(l,!1),error:r,url:e.url},d.data&&d.data.uploadIP&&(h.uploadIP=d.data.uploadIP),t._uploadSSOLog(h),Ae.l("".concat(n," failed, error:"),r),s(new Nn({code:Pn.MSG_F_UPLOAD_FAIL}));else{var p=Object.create(null),h=d.data.location||"",f=(t.isPrivateNetWork()||0!==h.indexOf("https://")&&0!==h.indexOf("http://")||(h=h.split("//")[1]),p.fileName=o.name,p.fileSize=o.size,p.fileType=o.type.slice(o.type.indexOf("/")+1).toLowerCase(),p.location=h,r=Kt(l,!1),h=t._formatFileSize(o.size),t._formatSpeed(1e3*o.size/r));if(h="size:".concat(h," time:").concat(r,"ms speed:").concat(f," res:").concat(JSON.stringify(d.data)),Ae.l("".concat(n," ok. name:").concat(o.name," ").concat(h)),a.setMessage(h).end(),f={HttpStatusCode:d.statusCode,FileSize:o.size,CostTime:r,url:e.url},(d.data&&d.data.uploadIP&&(f.uploadIP=d.data.uploadIP),t._uploadSSOLog(f),h=t.get(26)).addCost(Hn,r),h.addFileSize(Hn,o.size),f=[],u.thumbUrl&&u.largeUrl&&f.push.apply(f,[t._getSmallImageInfoByUrl(u.thumbUrl,p),t._getLargeImageInfoByUrl(u.largeUrl,p)]),1===t.uploadFileType&&t.isSimpleCos&&!t.isPrivateNetWork()&&(f.push(t._getImageInfoArray(u.downloadUrl,p)),d.data.uploadIP)&&f.push(t._getDownloadIP(u.downloadUrl.split("//")[1].split("/")[0],p)),c&&f.push(t._getSnapshotInfoByUrl(c,p)),0>>18,128|t>>>12&63,128|t>>>6&63,128|63&t)}else t=65533;else t<=57343&&(t=65533);return t<=2047?Qs(192|t>>>6,128|63&t):Qs(224|t>>>12,128|t>>>6&63,128|63&t)},ta=function(e){for(var t=void 0===e?"":(""+e).replace(/[\x80-\uD7ff\uDC00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]?/g,ea),n=0|t.length,o=new Uint8Array(n),i=0;i=s&&(Ae.l("".concat(e._n,"._checkPromiseMap request timeout, delete requestID:").concat(n)),e._promiseMap.delete(n),o(new Nn({code:Pn.NETWORK_TIMEOUT,data:{headSeq:t}})),e._chM.onRequestTimeout())}))}},{key:"_checkNativeAppWS",value:function(){z&&!this.isConnected()&&this._reConnect()}},{key:"onOpen",value:function(e){var t,n;this._readyState!==ra&&(this._onOpenTs=Date.now(),n=e.id,e=e.res,this._socketID=n,t=Kt(this._startTs,!1),n="socketID:".concat(n," res:").concat(e),Ae.l("".concat(this._n,"._onOpen cost:").concat(t," ms. ").concat(n)),new Jn("wsOnOpen").setMessage(t).setCostTime(t).setMoreMessage(n).end(),this._readyState=sa,this._reConnectCount=0,this._resend(),!0===this._reConnectFlag&&(this._chM.onReconnected(),this._reConnectFlag=!1),this._chM.onOpen())}},{key:"onClose",value:function(e){var t=new Jn("wsOnClose"),n=e.id,o=(e=e.e,"sourceSocketID:".concat(n," currentSocketID:").concat(this._socketID," code:").concat(e.code," reason:").concat(e.reason)),i=0;0!==this._onOpenTs&&(i=Date.now()-this._onOpenTs),t.setMessage(i).setCostTime(i).setMoreMessage(o).setCode(e.code).end(!0),Ae.l("".concat(this._n,"._onClose ").concat(o," onlineTime:").concat(i)),n===this._socketID&&(this._readyState=ra,i<1e3?this._chM.onReconnectFailed():this._chM.onClose())}},{key:"onError",value:function(e){var t=e.id,n=(e=e.e,"sourceSocketID:".concat(t," currentSocketID:").concat(this._socketID));new Jn("wsOnError").setMessage(e.errMsg||JSON.stringify(e,["message","code"])).setMoreMessage(n).setLevel("error").end(!0),Ae.w("".concat(this._n,"._onError"),e,n),t===this._socketID&&(this._readyState=ra,this._chM.onError())}},{key:"onMessage",value:function(e){var t,n,o,i,s,a;try{t=JSON.parse(e.data)}catch(r){new Jn("jsonParseError").setMessage(e.data).end()}t&&t.head&&(e=this._getRequestIDFromHead(t.head),n=t.body,this._chM.get(30).isTRTCCommand(e)||(a=Ot(t.head),n=function e(t,n){var o,i,s;return Ye(t)?t.map((function(t){return $e(t)?e(t,n):t})):$e(t)?(o=t,i=function(e,t){return ut(n[t])?zs(t):n[t]},s={},Object.keys(o).forEach((function(e){s[i(o[e],e)]=o[e]})),Et(s,(function(t){return Ye(t)||$e(t)?e(t,n):t}))):void 0}(t.body,this._getResKeyMap(a))),Ae.d("".concat(this._n,".onMessage ret:").concat(JSON.stringify(n)," requestID:").concat(e," has:").concat(this._promiseMap.has(e))),this._setNextPingTs(),this._promiseMap.has(e)?(o=(a=this._promiseMap.get(e)).resolve,i=a.reject,s=a.timestamp,a=a.headSeq,this._promiseMap.delete(e),this._calcRTT(s),n.errorCode&&0!==n.errorCode?(this._chM.onErrorCodeNotZero(n),i(new Nn({code:n.errorCode,message:n.errorInfo||"",data:e.includes(Gn.MODIFY_C2C_MSG)||e.includes(Gn.MODIFY_GRP_MSG)?{elements:n.elements,messageVersion:n.messageVersion,cloudCustomData:n.cloudCustomData,headSeq:a}:{headSeq:a}}))):o(mn(n))):this._chM.onMessage({head:t.head,body:n}))}},{key:"_calcRTT",value:function(e){e=Date.now()-e,this._chM.get(26).addRTT(e)}},{key:"_connect",value:function(){this._readyState!==aa&&this._readyState!==sa&&(this._startTs=Date.now(),this._onOpenTs=0,this._readyState=aa,this._socket=new na(this),this._socketID=this._socket.getID(),Ae.l("".concat(this._n,"._connect isWorkerEnabled:").concat(this.getIsWorkerEnabled()," socketID:").concat(this._socketID," url:").concat(this.getURL())),new Jn("wsConnect").setMessage("socketID:".concat(this._socketID," url:").concat(this.getURL())).end())}},{key:"getURL",value:function(){this._chM.isDevMode()&&(this._canIUseBinaryFrame=!1);var e=Lt(),t=((W||B&&"windows"===e||z)&&(this._canIUseBinaryFrame=!1),-1),n=("ios"===e?t=ae||-1:"android"===e&&(t=ce||-1),this._chM.get(12)),o=this._chM.getPlatform(),i=n.getSDKAppID();return n=n.getInstanceID(),i="sdkappid=".concat(i,"&instanceid=").concat(n,"&random=").concat(this._getRandom(),"&platform=").concat(o,"&host=").concat(e)+"&version=".concat(t,"&sdkversion=").concat("3.4.7"),H&&(i+="&isminigame=1"),this._chM.canIUseInflate()&&(i+="&compress=gzip"),(this._canIUseBinaryFrame?"".concat(this._url,"/binfo?"):"".concat(this._url,"/info?")).concat(i)}},{key:"_closeConnection",value:function(e){Ae.l("".concat(this._n,"._closeConnection socketID:").concat(this._socketID)),this._socket&&(this._socket.close(e),this._socketID=-1,this._socket=null,this._readyState=ra)}},{key:"_resend",value:function(){var e=this;if(Ae.l("".concat(this._n,"._resend reConnectFlag:").concat(this._reConnectFlag),"promiseMap.size:".concat(this._promiseMap.size," simpleRequestMap.size:").concat(this._simpleRequestMap.size)),0=this._socketHandler.getNextPingTs()&&this._ping()}},{key:"dealloc",value:function(){this._socketHandler&&(this._socketHandler.close(),this._socketHandler=null),-1>>30-e)}function La(e,t){for(var n=e.toString(16),o=t-n.length,i="0";0>>=1,i+=i)1&o&&(n=i+n);return n}r($r,bn),Fa=g($r),s($r,[{key:"_init",value:function(){this._updateCmdFreqLimitMap(_a)}},{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("cmd_frequency_limit");ut(e)||(e=JSON.parse(e),this._updateCmdFreqLimitMap(e))}},{key:"_updateCmdFreqLimitMap",value:function(e){var t=this;e.forEach((function(e){t._cmdFreqLimitMap.set(e.cmd,{interval:e.interval,count:e.count})}))}},{key:"updateProtocolConfig",value:function(){this._pHandler.update()}},{key:"req",value:function(e){Ae.d("".concat(this._n,".req options:"),e);var t,n,o=e.P;return this._pHandler.has(o)?(t=(e=this.getProtocolData(e)).head.servcmd,this._isFreqOverLimit(t)?yn({code:n=Pn.OVER_FREQUENCY_LIMIT,message:this.getErrMsg(n,this._getCmd(t))}):this._isServerOverload(t)?yn({code:n=Pn.OPEN_SERVICE_OVERLOAD_ERROR,message:this.getErrMsg(n,this._getCmd(t))}):(n=this.get(21),fa.includes(o)?n.simplySend(e):n.send(e))):(Ae.w("".concat(this._n,".req unknown P:").concat(o)),yn({code:Pn.NO_PROTOCOL}))}},{key:"getKeyMap",value:function(e){return this._pHandler.getKeyMap(e)}},{key:"genCommonHead",value:function(){var e=this.get(12);return{ver:"v4",platform:this._platform,websdkappid:O,websdkversion:R,a2:e.getA2Key()||void 0,tinyid:e.getTinyID()||void 0,status_instid:e.getStatusInstanceID(),sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getA2Key()?void 0:e.getUserID(),usersig:e.getA2Key()?void 0:e.getUserSig(),sdkability:12775283,sdkability_ext:Da(""),cappid:e.getApplicationID()}}},{key:"genCosSpecifiedHead",value:function(){var e=this.get(12);return{ver:"v4",platform:this._platform,websdkappid:O,websdkversion:R,sdkappid:e.getSDKAppID(),contenttype:e.getContentType(),reqtime:0,identifier:e.getUserID(),usersig:e.getUserSig(),status_instid:e.getStatusInstanceID(),sdkability:12775283,sdkability_ext:Da(""),cappid:e.getApplicationID()}}},{key:"genSSOReportHead",value:function(){var e=this.get(12);return{ver:"v4",platform:this._platform,websdkappid:O,websdkversion:R,sdkappid:e.getSDKAppID(),contenttype:"",reqtime:0,identifier:"",usersig:"",status_instid:e.getStatusInstanceID(),sdkability:12775283,sdkability_ext:Da(""),cappid:e.getApplicationID()}}},{key:"getProtocolData",value:function(e){return this._pHandler.getProtocolData(e)}},{key:"trans",value:function(e){var n=e.servcmd;return e=e.data,n={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:e},this.get(21).send(n)}},{key:"sendComboMessage",value:function(e){var n=e.servcmd;return e=e.data,n={head:t(t({},this.genCommonHead()),{},{servcmd:n}),body:e},this.get(21).send(n)}},{key:"onErrorCodeNotZero",value:function(e){var t,n=e.errorCode;n===Pn.HELLO_ANSWER_KICKED_OUT&&(t=e.kickType,e=void 0===(e=e.newInstanceInfo)?{}:e,1===t?this.onMultipleAccountKickedOut(e):2===t?this.onMultipleDeviceKickedOut(e):3===t&&this.onRestApiKickedOut(e)),n!==Pn.MSG_A2KEY_EXPIRED&&n!==Pn.ACCOUNT_A2KEY_EXPIRED||(this._onUserSigExpired(),this.get(21).reConnect())}},{key:"onMessage",value:function(e){var t=(n=e.body).needAck,n=n.sessionData;1===(void 0===t?0:t)&&this._sendACK(n),this._msgDispatcher.onMessage(e)}},{key:"onReconnected",value:function(e){this._incrementalPullContactFlag=e<=300,this._reLoginOnReconnected()}},{key:"reLoginOnKickOther",value:function(){Ae.l("".concat(this._n,".reLoginOnKickOther")),this._reLogin()}},{key:"_reLoginOnReconnected",value:function(){Ae.l("".concat(this._n,"._reLoginOnReconnected")),this._reLogin()}},{key:"_reLogin",value:function(){var e,t,n,o=this,i="".concat(this._n,"._reLogin");this.isLoggedIn()&&(e=0,(t=this.get(1).getPushModule())&&(e=t.getUniAppPlatform()),n=new Jn("reLogin"),this.req({P:Gn.LOGIN,data:{isWebUniapp:e,customInfo:this.get(12).getCustomLoginInfo()}}).then((function(e){var t=(e=e.data).instanceID,s=(e=e.customStatus,o.get(12)),a=jo(e),r=(s.setStatusInstanceID(t),o.get(21)),c=r.getSocketID();c="socketID:".concat(c," instanceID:").concat(t," customStatus:").concat(a),n.setMessage(c).end(!0),Ae.l("".concat(i," ok. ").concat(c)),s.getCustomStatus()!==a&&o.get(4).onUserStatusUpdated({dataList:[{to:o.getMyUserID(),statusType:E.USER_STATUS_ONLINE,customStatus:e}]}),r.diagnose(),o.get(11).syncConvList(o._incrementalPullContactFlag).then((function(){Ae.l("".concat(i,", sync conv list ok.")),o.get(25).start()})),((t=o.get(7))&&t.updateLocalMainSequenceOnReconnected(),c=o.get(10)).resetGetTopicTime(),c.getTopicListOnReconnected(),(s=o.get(35))&&s.clearCacheOnReconnected()})))}},{key:"onMultipleAccountKickedOut",value:function(e){this.get(1).onMultipleAccountKickedOut(e)}},{key:"onMultipleDeviceKickedOut",value:function(e){this.get(1).onMultipleDeviceKickedOut(e)}},{key:"_onUserSigExpired",value:function(){this.get(1).onUserSigExpired()}},{key:"onRestApiKickedOut",value:function(e){this.get(1).onRestApiKickedOut(e)}},{key:"_sendACK",value:function(e){this.req({P:Gn.MSG_PUSH_ACK,data:{sessionData:e}})}},{key:"_isFreqOverLimit",value:function(e){var t,n,o,i;return e=e.split(".")[1],!!this._cmdFreqLimitMap.has(e)&&(!this._cmdReqInfoMap.has(e)||(t=(n=this._cmdFreqLimitMap.get(e)).count,n=n.interval,o=(i=this._cmdReqInfoMap.get(e)).startTime,i=i.requestCount,Date.now()-o>1e3*n)?(this._cmdReqInfoMap.set(e,{startTime:Date.now(),requestCount:1}),!1):(this._cmdReqInfoMap.set(e,{startTime:o,requestCount:i+=1}),t=this._expiredTime}},{key:"fetchConfig",value:function(){var e,t=this,n="".concat(this._n,".fetchConfig"),o=this._canFetch();Ae.l("".concat(n," canFetch:").concat(o)),o&&(e=new Jn("fetchCloudCtrlConfig"),o=this.get(12).getSDKAppID(),this._isFetching=!0,this.req({P:Gn.FETCH_CLOUD_CTRL_CONFIG,data:{SDKAppID:o,version:this._version}}).then((function(o){t._isFetching=!1;var i=(s=o.data).version,s=s.cloudControlConfig;e.setMessage("version:".concat(t._version," newVersion:").concat(i," config:").concat(s)).end(),Ae.l("".concat(n," ok")),t._parse(o.data)})).catch((function(o){t._isFetching=!1,e.setError(o).end(),Ae.l("".concat(n," failed. error:"),o),t._setExpiredTime(12e4)})))}},{key:"onPushedConfig",value:function(e){Ae.l("".concat(this._n,".onPushedConfig config:"),e),new Jn("pushedCloudCtrlConfig").setMessage("newVersion:".concat(e.version," config:").concat(e.cloudControlConfig)).end(),this._parse(e)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"_parse",value:function(e){var t=this,n="".concat(this._n,"._parse"),o=e.errorCode,i=e.errorMessage,s=e.cloudControlConfig,a=e.version,r=e.expiredTime;if(0===o){if(this._version!==a){var c=null;try{c=JSON.parse(s)}catch(u){this.isPrivateNetWork()||Ae.e("".concat(n," failed. config:"),s)}c&&(this._cloudConfig.clear(),Object.keys(c).forEach((function(e){t._cloudConfig.set(e,c[e])})),this._version=a,this.emitIEvt(xo.CLOUD_CONFIG))}this._setExpiredTime(1e3*r)}else ut(o)?(Ae.l("".concat(n," failed. Invalid message format:"),e),this._setExpiredTime(36e5)):(Ae.e("".concat(n," errorCode:").concat(o," errorMessage:").concat(i)),this._setExpiredTime(12e4))}},{key:"_setExpiredTime",value:function(e){this._expiredTime=Date.now()+e}},{key:"reset",value:function(){Ae.l("".concat(this._n,".reset")),this._cloudConfig.clear(),this._expiredTime=0,this._version=0,this._isFetching=!1}}]),jr),Ba=(r(Kr,bn),Ua=g(Kr),s(Kr,[{key:"start",value:function(){this._recoverGroupChat(),this._recoverC2CChat()}},{key:"_recoverGroupChat",value:function(){var e,t,n,o,i=this,s=this._getLocalConvList().filter((function(e){return e.type===E.CONV_GROUP&&e.groupProfile.type!==E.GRP_AVCHATROOM})),a=this.get(11),r=[];s.forEach((function(s){var c=s.conversationID;s=s.lastMessage,e=c.replace(E.CONV_GROUP,""),t=a.getLocalLastMessage(c),s&&0!==s.lastSequence&&t&&(n=s.lastSequence,t=t.sequence,o=n-t,0n[0])&&s",e[i].tag)}this.timestamp=Date.now(),o.length=0}},{key:"updateProfile",value:function(e){this.profile=JSON.parse(JSON.stringify(e)),this.timestamp=Date.now()}},{key:"addToGroupList",value:function(e){-1===this.groupList.indexOf(e)&&(this.groupList.push(e),this.count=this.groupList.length)}},{key:"removeFromGroupList",value:function(e){-1<(e=this.groupList.indexOf(e))&&(this.groupList.splice(e,1),this.count=this.groupList.length)}}]),Ur),Ja=(s(Gr,[{key:"getLocalFriendList",value:function(){return m(this._map.values())}},{key:"getFriendRemark",value:function(e){return this._map.has(e)?this._map.get(e).remark:""}},{key:"onFriendProfileModified",value:function(e){var t,n=this;Ve(e=e.dataList)||(t=this._snsM.get(11),e.forEach((function(e){var o,i=e.userID;e=e.profileList,n.isMyFriend(i)&&(Ae.l("".concat(n._n,".onFriendProfileModified. friend account:").concat(i,", profileList:").concat(JSON.stringify(e))),(o=n._map.get(i)).update(e),t.modifyMessageSentByPeer({conversationID:"".concat(E.CONV_C2C).concat(i),latestNick:o.profile.nick,latestAvatar:o.profile.avatar}))})),this._onFriendListUpdated())}},{key:"onFriendAdded",value:function(e){var t=this;0!==e.length&&(Ae.l("".concat(this._n,".onFriendAdded userIDList:").concat(e)),e.forEach((function(e){t._map.set(e,new Xa(e))})),this.getFriendProfile({userIDList:e}).then((function(n){e.forEach((function(e){var n=t._map.get(e);0 0) { clearInterval(interval); } interval = setInterval(() => { postMessage(""); }, 1000); postMessage(interval); } else if (event.data === "stop") { clearInterval(interval); interval = -1; }};'],{type:"application/javascript; charset=utf-8"})),this._workerTimer=new Worker(e),(t=this)._workerTimer.onmessage=function(e){e.data?(t._timerID=e.data,Ae.l("".concat(t._n,"._init seed:").concat(t._timerID))):t._m.onCheckTimer()})}},{key:"_onCloudConfig",value:function(){var e=this.getCloudConfig("enable_worker");Ae.l("".concat(this._n,"._onCloudConfig enableWorker:").concat(e)),ut(e)||"1"===e?!this._isWorkerEnabled&&he&&(this._isWorkerEnabled=!0,this.startWorkerTimer(),this._m.onWorkerTimerEnabled()):this._isWorkerEnabled&&he&&(this._isWorkerEnabled=!1,this.stopWorkerTimer(),this._m.onWorkerTimerDisabled())}},{key:"terminate",value:function(){Ae.l("".concat(this._n,".terminate")),this._workerTimer&&(this._workerTimer.terminate(),this._workerTimer=null,this._timerID=-1)}},{key:"getTimerID",value:function(){return this._timerID}},{key:"reset",value:function(){Ae.l("".concat(this._n,".reset"))}}]),Or),nr=(s(Rr,[{key:"isValidPurchaseBits",value:function(e){return e&&"string"==typeof e&&1<=e.length&&e.length<=64&&/[01]{1,64}/.test(e)}},{key:"parsePurchaseBits",value:function(e){if(this.isValidPurchaseBits(e)){this._featureMap.clear();for(var t,n=e.length-1,o=0;0<=n;n--,o++)t=(o<32?new L(0,Math.pow(2,o)):new L(Math.pow(2,o-32),0)).toString(),"1"===e[n]?this._featureMap.set(t,!0):this._featureMap.set(t,!1)}else Ae.w("".concat(this._n,".parsePurchaseBits invalid purchasebits:").concat(e))}},{key:"hasPurchasedFeature",value:function(e){return!!this._featureMap.get(e)}},{key:"isFeatureEnabled",value:function(e){for(var t=parseInt(e).toString(2),n=void 0,o=!0,i=t.length-1,s=0;0<=i;i--,s++)if("1"===t.charAt(i)&&(n=(s<32?new L(0,Math.pow(2,s)):new L(Math.pow(2,s-32),0)).toString(),!this._featureMap.get(n))){o=!1;break}return Ae.l("".concat(this._n,".isFeatureEnabled decimalNumber:").concat(e," key:").concat(n," ret:").concat(o)),vn({enabled:o})}},{key:"isFeatureEnabledForStat",value:function(e){for(var t=parseInt(e).toString(2),n=t.length-1,o=0;0<=n;n--,o++)if("1"===t.charAt(n)){if(i=(o<32?new L(0,Math.pow(2,o)):new L(Math.pow(2,o-32),0)).toString(),!this._featureMap.get(i))break;var i,s="",a=0;i===w.PLUGIN_TRANSLATE?(s="plugin_translate",a=16):i===w.PLUGIN_VOICE_TO_TEXT?(s="plugin_voice_to_text",a=17):i===w.PLUGIN_CS?(s="plugin_cs",a=14):i===w.PLUGIN_PUSH?(s="plugin_push",a=13):i===w.PLUGIN_BOT?(s="plugin_bot",a=15):i===w.MSG_REACTION&&(s="plugin_emoji_reaction",a=18),""!==s&&(i=this._commercialConfigM.get(12).getUIPlatform(),new Jn(s).setCode(a).setUIPlatform(i).end(),Ae.l("".concat(this._n,".isFeatureEnabledForStat ").concat(s," code:").concat(a," uiPlatform:").concat(i)))}}},{key:"isSearchCloudMessagesEnabled",value:function(){var e;this._isSCMReported||(e=this._commercialConfigM.get(12).getUIPlatform(),new Jn("plugin_search").setCode(6).setUIPlatform(e).end(),this._isSCMReported=!0)}},{key:"clear",value:function(){this._featureMap.clear(),this._isSCMReported=!1}}]),Rr),or=(s(Ar,[{key:"_canFetch",value:function(){return this.get(12).isLoggedIn()?!this._isFetching&&Date.now()>=this._expiredTime:(this._expiredTime=Date.now()+2e3,!1)}},{key:"onCheckTimer",value:function(e){this._canFetch()&&this.fetchConfig()}},{key:"fetchConfig",value:function(){var e,t,n=this,o=this._canFetch(),i="".concat(this._n,".fetchConfig");Ae.l("".concat(i," canFetch:").concat(o)),o&&(e=new Jn("fetchCommercialConfig"),o=this.get(12).getSDKAppID(),t=this.get(20),this._isFetching=!0,t.req({P:Gn.FETCH_COMMERCIAL_CONFIG,data:{SDKAppID:o}}).then((function(t){e.setMessage("purchaseBits:".concat(t.data.purchaseBits)).end(),Ae.l("".concat(i," ok.")),n._parseConfig(t.data),n._isFetching=!1})).catch((function(t){e.setError(t).end(),n._isFetching=!1})))}},{key:"onPushedConfig",value:function(e){var t="".concat(this._n,".onPushedConfig data:").concat(JSON.stringify(e));Ae.l("".concat(t)),new Jn("pushedCommercialConfig").setMessage("purchaseBits:".concat(e.purchaseBits)).end(),this._parseConfig(e)}},{key:"_parseConfig",value:function(e){var t="".concat(this._n,"._parseConfig"),n=e.errorCode,o=e.errorMessage,i=e.purchaseBits,s=e.expiredTime;0===n?(this._purchasedFeatureHandler.parsePurchaseBits(i),this._expiredTime=Date.now()+1e3*s):ut(n)?(Ae.l("".concat(t," failed. Invalid message format:"),e),this._setExpiredTimeOnResponseError(36e5)):(Ae.e("".concat(t," errorCode:").concat(n," errorMessage:").concat(o)),this._setExpiredTimeOnResponseError(12e4))}},{key:"_setExpiredTimeOnResponseError",value:function(e){this._expiredTime=Date.now()+e}},{key:"canIUse",value:function(e){return this._purchasedFeatureHandler.hasPurchasedFeature(e)}},{key:"isFeatureEnabled",value:function(e){return this._purchasedFeatureHandler.isFeatureEnabled(e)}},{key:"isFeatureEnabledForStat",value:function(e){this._purchasedFeatureHandler.isFeatureEnabledForStat(e)}},{key:"isSearchCloudMessagesEnabled",value:function(){this._purchasedFeatureHandler.isSearchCloudMessagesEnabled()}},{key:"get",value:function(e){return this._m.get(e)}},{key:"reset",value:function(){Ae.l("".concat(this._n,".reset")),this._expiredTime=0,this._isFetching=!1,this._purchasedFeatureHandler.clear()}}]),Ar),ir=(r(br,bn),Na=g(br),s(br,[{key:"registerPlugin",value:function(e){var t,n,o,i,s,a,r,c,u,l,d,p,h;z?(this._offlinePushPlugin=e["tim-offline-push-plugin"],t=(h=e.offlinePushConfig||{}).huaweiBusinessID,n=h.xiaomiBusinessID,o=h.xiaomiAppID,i=h.xiaomiAppKey,s=h.meizuBusinessID,a=h.meizuAppID,r=h.meizuAppKey,c=h.vivoBusinessID,u=h.oppoBusinessID,l=h.oppoAppKey,d=h.oppoAppSecret,p=h.honorBusinessID,h=h.iosBusinessID,this._androidPushConfig.huaweiPushBussinessId=t,this._androidPushConfig.xiaomiPushBussinessId=n,this._androidPushConfig.xiaomiPushAppId=o,this._androidPushConfig.xiaomiPushAppKey=i,this._androidPushConfig.meizuPushBussinessId=s,this._androidPushConfig.meizuPushAppId=a,this._androidPushConfig.meizuPushAppKey=r,this._androidPushConfig.vivoPushBussinessId=c,this._androidPushConfig.oppoPushBussinessId=u,this._androidPushConfig.oppoPushAppKey=l,this._androidPushConfig.oppoPushAppSecret=d,this._androidPushConfig.honorPushBussinessId=p,new Jn("registerPlugin").setMessage("tim-offline-push-plugin").setMoreMessage("isExist:".concat(!ut(this._offlinePushPlugin))).end(!0),Ae.l("".concat(this._n,".").concat("registerPlugin"," ok. offlinePushConfig:").concat(JSON.stringify(e.offlinePushConfig))),this._iosBusinessID=h,this._setAppShowListener()):this.warn("OfflinePushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._getDeviceToken()}},{key:"_getDeviceToken",value:function(){var e,t=this,n="".concat(this._n,".").concat("_getDeviceToken");ze(this._offlinePushPlugin.getDeviceToken)?(e="androidPushConfig:".concat(JSON.stringify(this._androidPushConfig),", iosBusinessID:").concat(this._iosBusinessID),Ae.l("".concat(n," start. ").concat(e)),new Jn("_getDeviceToken").setMessage("".concat(e)).end(!0),this._offlinePushPlugin.getDeviceToken(this._androidPushConfig,(function(o){var i,s,a,r,c=new Jn("getDeviceTokenRes"),u=o.code,l=o.msg;0===u?(i=(r=o.data).deviceToken,s=r.deviceBrand,a=r.deviceType,r=r.bussinessId,t._deviceToken=i,t._businessID=r||t._iosBusinessID,e="deviceToken:".concat(i,", deviceBrand:").concat(s||a,", businessID:").concat(t._businessID),Ae.l("".concat(n," ok. ").concat(e)),c.setMessage(e).end(!0),t._setToken()):(c.setMessage("code:".concat(u,", msg:").concat(l)).end(!0),Ae.e("".concat(n," failed. error:"),o))}))):Ae.e("".concat(n," getDeviceToken is not a function"))}},{key:"canIUseOfflinePush",value:function(){return z&&!ut(this._offlinePushPlugin)}},{key:"_setAppShowListener",value:function(){var e=this,t="".concat(this._n,".").concat("_setAppShowListener");ut(this._offlinePushPlugin)?Ae.e("".concat(t," offlinePushPlugin is undefined")):ze(this._offlinePushPlugin.setAppShowListener)?(new Jn("_setAppShowListener").end(!0),Ae.l("".concat(t," start")),this._offlinePushPlugin.setAppShowListener((function(n){n=(n||{}).appShow,new Jn("setAppShowListenerRes").setMessage("appShow:".concat(n)).end(!0),Ae.l("".concat(t," ok. appShow:").concat(n)),e._m.isReady()&&(0===n?(e._getConvUnreadCount(),e._onBackground()):1===n&&e._onForeground())}))):Ae.e("".concat(t," setAppShowListener is not a function"))}},{key:"getDeviceBrand",value:function(){var e;if(!ut(this._offlinePushPlugin)&&ze(this._offlinePushPlugin.getDeviceType))return e=(this._offlinePushPlugin.getDeviceType()||{}).deviceType,Ae.l("".concat(this._n,".getDeviceBrand ok. deviceType:").concat(e)),e}},{key:"_setToken",value:function(){var e="".concat(this._n,"._setToken"),t=this.get(12),n=1,o="",i="",s=(Ve(this._deviceToken)&&(n=0),this.getUniAppPlatform()),a=this.getDeviceBrand(),r=(s===A.IOS||s===A.IPAD||s===A.MAC?i=this._deviceToken:s===A.ANDROID&&(o=this._deviceToken),new Jn("offlinePushSetToken"));return s="deviceToken:".concat(i||o,", businessID:").concat(this._businessID,", ")+"deviceBrand:".concat(a,", isWebUniapp:").concat(this._isWebUniapp,", pushMsg:").concat(n,", platform:").concat(s),r.setMessage("".concat(s)),Ae.l("".concat(e," ").concat(s)),this.req({P:Gn.SET_TOKEN,data:{tokenID:o,pushMsg:n,sdkAppID:t.getSDKAppID(),businessID:parseInt(this._businessID),deviceBrand:a,deviceToken:i,isWebUniapp:this._isWebUniapp}}).then((function(t){return r.end(),Ae.l("".concat(e," ok")),t})).catch((function(t){return r.setError(t).end(),Ae.e("".concat(e," failed. error:"),t),yn(t)}))}},{key:"_getConvUnreadCount",value:function(){var e=this;this._c2cUnreadCount=0,this._groupUnreadCount=0,this.get(11).getLocalConvList().forEach((function(t){t.type===E.CONV_C2C&&(e._c2cUnreadCount+=t.unreadCount),t.type===E.CONV_GROUP&&(e._groupUnreadCount+=t.unreadCount)}))}},{key:"_onBackground",value:function(){var e=this,t="".concat(this._n,".").concat("_onBackground"),n=new Jn("_onBackground");this.req({P:Gn.STAT_BACKGROUND,data:{c2cUnreadCount:this._c2cUnreadCount,groupUnreadCount:this._groupUnreadCount,isWebUniapp:this._isWebUniapp}}).then((function(o){return n.setMessage("c2cUnreadCount: ".concat(e._c2cUnreadCount,", groupUnreadCount: ").concat(e._groupUnreadCount)).end(),Ae.l("".concat(t," ok")),o})).catch((function(e){n.setError(e).end(),Ae.e("".concat(t," failed. error:"),e)}))}},{key:"_onForeground",value:function(){var e="".concat(this._n,".").concat("_onForeground"),t=new Jn("_onForeground");this.req({P:Gn.STAT_FOREGROUND,data:{isWebUniapp:this._isWebUniapp}}).then((function(n){return t.end(),Ae.l("".concat(e," ok")),n})).catch((function(n){t.setError(n).end(),Ae.e("".concat(e," failed. error:"),n)}))}},{key:"getUniAppPlatform",value:function(){var e=BI().platform,t=this.getDeviceBrand();return"ios"===e?A.IOS:"android"===e?A.ANDROID:1002===t?A.IPAD:1001===t?A.MAC:void 0}},{key:"reset",value:function(){this._deviceToken="",this._businessID=0,this._c2cUnreadCount=0,this._groupUnreadCount=0,this._isWebUniapp=0,Ae.l("".concat(this._n,".reset"))}}]),br),sr=(r(Lr,bn),Oa=g(Lr),s(Lr,[{key:"registerPlugin",value:function(e){var t,n,o;z?(t="".concat(this._n,".").concat("registerPlugin"),this._pushPlugin=e["tim-push"],this._getDeviceInfo(),n=(o=e.pushConfig||{}).androidConfig,o=o.iOSConfig,$e(n)&&(this._androidPushConfig=n[this._deviceInfo.packageName]),n=(o||{}).iOSBusinessID,this._iOSBusinessID=n,o=!ut(this._pushPlugin),new Jn("registerPlugin").setMessage(this._pluginName).setMoreMessage("isExisted:".concat(o)).end(!0),Ae.l("".concat(t," ok. pushConfig:").concat(JSON.stringify(e.pushConfig))),o?(this._setAppShowListener(),this._setPushEventReportListener()):Ae.e("".concat(t," ").concat(this._pluginName," is undefined"))):this.warn("TIMPushInUniapp")}},{key:"init",value:function(){this._isWebUniapp=this.getUniAppPlatform(),this._reportEventCacheList(),this._getDeviceToken(),this.get(27).isFeatureEnabledForStat(Math.pow(2,41))}},{key:"_reportEventCacheList",value:function(){var e=this,n="".concat(this._n,".").concat("_reportEventCacheList");ze(this._pushPlugin.getPushEventCacheList)?(new Jn("_reportEventCacheList").end(!0),this._pushPlugin.getPushEventCacheList((function(o){var i=o.code,s=o.data.eventList,a=new Jn("getPushEventCacheListRes");if(a.setCode(i),0!==i)a.setMessage("res:".concat(JSON.stringify(o))).end(!0),Ae.e("".concat(n," failed. error:").concat(JSON.stringify(o)));else{i=s.length<10?"eventList:".concat(JSON.stringify(s)):"eventList.length:".concat(s.length),Ae.l("".concat(n," ok. ").concat(i)),a.setMessage(i).end(!0);for(var r=t(t({},o.data),{},{eventList:[]});0=this._expiredTime&&this._getLexicon()}},{key:"filterMessage",value:function(e,t){var n=!0;if(this._plugin&&this._canIUseLexicon&&(!t||!t.messageControlInfo||!0!==t.messageControlInfo.excludedFromContentModeration)){t=e.type;var o=e.conversationType;if(t===E.MSG_TEXT||t===E.MSG_CUSTOM){var i,s="".concat(this._n,".filterMessage");if(Ae.l("".concat(s)),t===E.MSG_TEXT){if(o===E.CONV_C2C?i="c2c_text_message":o===E.CONV_GROUP&&(i="group_text_message"),!this._isConfigOn(i))return n;var a=(r=this._plugin.filter(e.payload.text)).type,r=r.modifiedText;1===a?n=!1:2===a&&(e.payload.text=r)}else if(t===E.MSG_CUSTOM){if(o===E.CONV_C2C?i="c2c_custom_message":o===E.CONV_GROUP&&(i="group_custom_message"),!this._isConfigOn(i))return n;a=this._plugin.filter(e.payload.data),r=this._plugin.filter(e.payload.description),t=this._plugin.filter(e.payload.extension),1===a.type||1===r.type||1===t.type?n=!1:(2===a.type&&(e.payload.data=a.modifiedText),2===r.type&&(e.payload.description=r.modifiedText),2===t.type&&(e.payload.extension=t.modifiedText))}Ae.l("".concat(s," done. isAllowedToSend:").concat(n))}}return n}},{key:"filterText",value:function(e,t){var n="".concat(this._n,".filterText"),o={isAllowedToSend:!0,modifiedText:e};return this._plugin&&this._canIUseLexicon&&this._isConfigOn(t)&&(Ae.l("".concat(n)),e=(t=this._plugin.filter(e)).type,t=t.modifiedText,1===e?o.isAllowedToSend=!1:2===e&&(o.modifiedText=t),Ae.l("".concat(n," done. ret:"),o)),o}},{key:"_getLexicon",value:function(){var e=this,t=new Jn("profanityFilter"),n="".concat(this._n,"._getLexicon");this._isFetching=!0,this.req({P:Gn.GET_PROFANITY_LIST,data:{startIndex:this._startIndex,version:this._version}}).then((function(o){var i=(o=o.data).errorInfo,s=o.filterConfig,a=o.lexicon,r=o.strToken,c=o.completeFlag,u=o.nextStartIndex,l=o.version,d=(o=o.expiredTime,i.errorCode),p=i.errorMessage;return 0!==d?(e._isFetching=!1,Ae.w("".concat(n," failed. error:"),i),void t.setCode(d).setMessage(p).end()):(e._onFilterConfig(s),e._getToken(r),1===c?(Ae.l("".concat(n," done. version:").concat(l," expiredTime:").concat(o)),e._version=l,e._canIUseLexicon=!0,e._isFetching=!1,e._expiredTime=Date.now()+1e3*o,void e._plugin.onLexiconCompleted(a)):(e._startIndex=u,e._plugin.onLexiconSliced(a),void e._getLexicon()))})).catch((function(o){t.setError(o).end(),e._isFetching=!1,Ae.l("".concat(n," failed. error:"),o)}))}},{key:"_onFilterConfig",value:function(e){var t=this;Ve(e)||(this._filterConfigMap.clear(),Object.keys(e).forEach((function(n){t._filterConfigMap.set(n,e[n])})),Ae.l("".concat(this._n,"._onFilterConfig. keys:").concat(Array.from(this._filterConfigMap.keys())," values:").concat(Array.from(this._filterConfigMap.values()))))}},{key:"_isConfigOn",value:function(e){return 1===this._filterConfigMap.get(e)}},{key:"_getToken",value:function(e){if(ct(e)){var t=e.length,n="";if(t%2==0)for(var o=0;o<=t-1;o+=2)n=(n+=e[o+1])+e[o];else{for(var i=0;i=this.STORAGE_EXPIRES_TIME,e=!e||"3.4.7"!==e,Ae.l("".concat(this._n,"._needToUpdate isTimeout:").concat(t," isDifferentVersion:").concat(e)),t||e}},{key:"_fetch",value:function(){var e,t,n,o,i,s;this._m.get(12).isPrivateNetWork()||(e="https://web.sdk.qcloud.com/im/download/error-message/v3/0.0.6/tim-error-message.txt",t="application/x-www-form-urlencoded;charset=UTF-8",n="".concat(this._n,"._fetch ok in"),o=this,Z?ne.request({url:e,method:"GET",timeout:3e3,header:{"content-type":t},dataType:"text",success:function(e){o._fillAndSave(e.data),Ae.l("".concat(n," mini program"))},fail:function(){}}):(i=new XMLHttpRequest,s=setTimeout((function(){i.abort()}),3e3),i.onreadystatechange=function(){4===i.readyState&&(clearTimeout(s),200!==i.status&&304!==i.status||(Ae.l("".concat(n," browser")),o._fillAndSave(i.responseText)))},i.open("GET",e,!0),i.setRequestHeader("Content-type",t),i.send()))}},{key:"_fillAndSave",value:function(e){this._fillMap(e),this._getStorageModule().setItem(this.TIM_ERROR_ASSISTANCE,JSON.stringify({message:e,localSavedTime:(new Date).getTime(),localSavedVersion:"3.4.7"}),!0,!1)}},{key:"_getStorageModule",value:function(){return this._m.get(13)}},{key:"_fillMap",value:function(e){this._map.clear();for(var t,n,o=e.split(";\n"),i=o.length,s=new RegExp(/'/g),a=0;aTe()-this.EXPIRED_TIME}},{key:"_createPromiseList",value:function(e){for(var t=[],n=0;nthis.MAX_COUNT?this.MAX_COUNT:e,this._clearFollowList())}},{key:"clearCacheOnReconnected",value:function(){this._clearFollowList(),this._followType.clear()}},{key:"onFollowNotify",value:function(e){var t=this;e=e.dataList||[],Ae.l("".concat(this._n,".onFollowNotify followChangeList:").concat(e.length)),e.forEach((function(e){var n=void 0===(n=e.followDiffList)?[]:n,o=h(e,_r);n.forEach((function(e){var n=e.isAdd,i=(e=void 0===(e=e.followType)?[]:e,t._initFollowInfo());i[e].userInfoList.push(o),i[e].isAdd=1===n,t._emitEvent(i)}))}))}},{key:"_initFollowInfo",value:function(){var e={};return Object.values(mr).forEach((function(t){t!==mr.NONE&&(e[t]={userInfoList:[],isAdd:!1})})),e}},{key:"_emitEvent",value:function(e){var t=this;Object.keys(e).forEach((function(n){n=Number(n);var o=e[n];0",n[c].tag)}this.profile=new Qo(t(t({},i),{},{profileCustomField:s}))}function xr(e){o(this,xr),this._snsM=e,this._n="FriendApplicationHandler",this._startTime=0,this._maxLimited=100,this._currentSeq=0,this._map=new Map,this._unreadCount=0}function Fr(e){o(this,Fr),(e=Ga.call(this,e))._n="QualityStatModule",e.TAG="im-ssolog-quality-stat",e.reportIndex=0,e.wholePeriod=!1,e._qualityItems=[Un,xn,Fn,qn,Vn,Bn,Hn,Kn,jn,$n],e._messageSentItems=[Fn,qn,Vn,Bn,Hn],e._messageReceivedItems=[Kn,jn,$n],e.REPORT_INTERVAL=120,e.REPORT_SDKAPPID_BLACKLIST=[],e.REPORT_TINYID_WHITELIST=[],e._statInfoArr=[],e._avgRTT=new Ka,e._avgE2EDelay=new Ha,e._rateMessageSent=new ja,e._rateMessageReceived=new $a;var t=e.getIEmitInst();return t.on(xo.A2KEY_AND_TINYID_UPDATED,e._onLoginSuccess,f(e)),t.on(xo.CLOUD_CONFIG,e._onCloudConfig,f(e)),e}function qr(){o(this,qr),this._lastMap=new Map,this._currentMap=new Map}function Vr(){o(this,Vr),this._map=new Map}function Br(){o(this,Br),this._n="AvgRTT",this._requestCount=0,this._rttArray=[]}function Hr(){o(this,Hr),this._n="AvgE2EDelay",this._e2eDelayArray=[]}function Kr(e){return o(this,Kr),(e=Ua.call(this,e))._n="RecoverMsgModule",e.PULL_LIMIT_COUNT=15,e}function jr(e){return o(this,jr),(e=xa.call(this,e))._n="CloudControlModule",e._cloudConfig=new Map,e._expiredTime=0,e._version=0,e._isFetching=!1,e}function $r(e){return o(this,$r),(e=Fa.call(this,e))._n="SessionModule",e._platform=e.getPlatform(),e._pHandler=new ha(f(e)),e._msgDispatcher=new ga(f(e)),e._cmdFreqLimitMap=new Map,e._cmdReqInfoMap=new Map,e._serverOverloadInfoMap=new Map,e._incrementalPullContactFlag=!0,e._init(),e.getIEmitInst().on(xo.CLOUD_CONFIG,e._onCloudConfig,f(e)),e}function Wr(e,t,n,o){for(var i=65535&e,s=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3>>8^i[255&(e^t[a])];return~e}function zr(e,t,n,o,i,s,a,r){var c,u,l,d,p,h,f,g,_,m=r.bits,v=0,y=0,I=0,M=0,C=0,T=0,S=0,E=0,D=0,k=0,L=null,b=0,A=new yr.Buf16(16),R=new yr.Buf16(16),O=null,N=0;for(v=0;v<=15;v++)A[v]=0;for(y=0;yh?(g=O[N+a[y]],L[b+a[y]]):(g=96,0),c=1<<(f=v-S),I=u=1<>S)+(u-=c)]=f<<24|g<<16|_,0!==u;);for(c=1<>=1;if(k=0!==c?(k&c-1)+c:0,y++,0==--A[v]){if(v===M)break;v=t[n+a[y]]}if(C>>1:n>>>1;e[t]=n}return e}(),Jr=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Zr=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],Qr=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],ec=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function tc(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function nc(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new yr.Buf16(320),this.work=new yr.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function oc(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new yr.Buf32(852),t.distcode=t.distdyn=new yr.Buf32(592),t.sane=1,t.back=-1,0):-2}function ic(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,oc(e)):-2}function sc(e,t){var n,o;return!e||!e.state||(o=e.state,t<0?(n=0,t=-t):(n=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=e.wsize?(yr.arraySet(e.window,t,n-e.wsize,e.wsize,0),e.wnext=0,e.whave=e.wsize):((i=e.wsize-e.wnext)>o&&(i=o),yr.arraySet(e.window,t,n-o,i,e.wnext),(o-=i)?(yr.arraySet(e.window,t,n-o,o,0),e.wnext=o,e.whave=e.wsize):(e.wnext+=i,e.wnext===e.wsize&&(e.wnext=0),e.whave>>8&255,n.check=Yr(n.check,k,2,0),l=u=0,n.mode=2;else if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&u)<<8)+(u>>8))%31)e.msg="incorrect header check",n.mode=30;else if(8!=(15&u))e.msg="unknown compression method",n.mode=30;else{if(l-=4,C=8+(15&(u>>>=4)),0===n.wbits)n.wbits=C;else if(C>n.wbits){e.msg="invalid window size",n.mode=30;break}n.dmax=1<>8&1),512&n.flags&&(k[0]=255&u,k[1]=u>>>8&255,n.check=Yr(n.check,k,2,0)),l=u=0,n.mode=3;case 3:for(;l<32;){if(0===r)break e;r--,u+=o[s++]<>>8&255,k[2]=u>>>16&255,k[3]=u>>>24&255,n.check=Yr(n.check,k,4,0)),l=u=0,n.mode=4;case 4:for(;l<16;){if(0===r)break e;r--,u+=o[s++]<>8),512&n.flags&&(k[0]=255&u,k[1]=u>>>8&255,n.check=Yr(n.check,k,2,0)),l=u=0,n.mode=5;case 5:if(1024&n.flags){for(;l<16;){if(0===r)break e;r--,u+=o[s++]<>>8&255,n.check=Yr(n.check,k,2,0)),l=u=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&((h=(h=n.length)>r?r:h)&&(n.head&&(C=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),yr.arraySet(n.head.extra,o,s,h,C)),512&n.flags&&(n.check=Yr(n.check,o,h,s)),r-=h,s+=h,n.length-=h),n.length))break e;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===r)break e;for(h=0;C=o[s+h++],n.head&&C&&n.length<65536&&(n.head.name+=String.fromCharCode(C)),C&&h>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=12;break;case 10:for(;l<32;){if(0===r)break e;r--,u+=o[s++]<>>=7&l,l-=7&l,n.mode=27;else{for(;l<3;){if(0===r)break e;r--,u+=o[s++]<>>=1)){case 0:n.mode=14;break;case 1:b=A=void 0;var b,A=n;if(uc){for(rc=new yr.Buf32(512),cc=new yr.Buf32(32),b=0;b<144;)A.lens[b++]=8;for(;b<256;)A.lens[b++]=9;for(;b<280;)A.lens[b++]=7;for(;b<288;)A.lens[b++]=8;for(zr(1,A.lens,0,288,rc,0,A.work,{bits:9}),b=0;b<32;)A.lens[b++]=5;zr(2,A.lens,0,32,cc,0,A.work,{bits:5}),uc=!1}if(A.lencode=rc,A.lenbits=9,A.distcode=cc,A.distbits=5,n.mode=20,6!==t)break;u>>>=2,l-=2;break e;case 2:n.mode=17;break;case 3:e.msg="invalid block type",n.mode=30}u>>>=2,l-=2}break;case 14:for(u>>>=7&l,l-=7&l;l<32;){if(0===r)break e;r--,u+=o[s++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&u,l=u=0,n.mode=15,6===t)break e;case 15:n.mode=16;case 16:if(h=n.length){if(0===(h=c<(h=r>>=5,l-=5,n.ndist=1+(31&u),u>>>=5,l-=5,n.ncode=4+(15&u),u>>>=4,l-=4,286>>=3,l-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,S={bits:n.lenbits},T=zr(0,n.lens,0,19,n.lencode,0,n.work,S),n.lenbits=S.bits,T){e.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have>>16&255,v=65535&D,!((_=D>>>24)<=l);){if(0===r)break e;r--,u+=o[s++]<>>=_,l-=_,n.lens[n.have++]=v;else{if(16===v){for(E=_+2;l>>=_,l-=_,0===n.have){e.msg="invalid bit length repeat",n.mode=30;break}C=n.lens[n.have-1],h=3+(3&u),u>>>=2,l-=2}else if(17===v){for(E=_+3;l>>=_)),u>>>=3,l=l-_-3}else{for(E=_+7;l>>=_)),u>>>=7,l=l-_-7}if(n.have+h>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=30;break}for(;h--;)n.lens[n.have++]=C}}if(30===n.mode)break;if(0===n.lens[256]){e.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,S={bits:n.lenbits},T=zr(1,n.lens,0,n.nlen,n.lencode,0,n.work,S),n.lenbits=S.bits,T){e.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,S={bits:n.distbits},T=zr(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,S),n.distbits=S.bits,T){e.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===t)break e;case 20:n.mode=21;case 21:if(6<=r&&258<=c){e.next_out=a,e.avail_out=c,e.next_in=s,e.avail_in=r,n.hold=u,n.bits=l,K=V=G=w=P=N=O=R=oe=ne=te=ee=Q=Z=J=X=z=Y=W=$=j=H=B=q=F=void 0;var R,O,N,P,w,G,U=e,x=p,F=U.state,q=U.next_in,V=U.input,B=q+(U.avail_in-5),H=U.next_out,K=U.output,j=H-(x-U.avail_out),$=H+(U.avail_out-257),W=F.dmax,Y=F.wsize,z=F.whave,X=F.wnext,J=F.window,Z=F.hold,Q=F.bits,ee=F.lencode,te=F.distcode,ne=(1<>>=O=R>>>24,Q-=O,0==(O=R>>>16&255))K[H++]=65535&R;else{if(!(16&O)){if(!(64&O)){R=ee[(65535&R)+(Z&(1<>>=O,Q-=O),Q<15&&(Z+=V[q++]<>>=O=R>>>24,Q-=O,!(16&(O=R>>>16&255))){if(!(64&O)){R=te[(65535&R)+(Z&(1<W){U.msg="invalid distance too far back",F.mode=30;break t}if(Z>>>=O,Q-=O,P>(O=H-j)){if((O=P-O)>z&&F.sane){U.msg="invalid distance too far back",F.mode=30;break t}if(G=J,(w=0)===X){if(w+=Y-O,O>3,Z&=(1<<(Q-=N<<3))-1,U.next_in=q,U.next_out=H,U.avail_in=q>>16&255,v=65535&D,!((_=D>>>24)<=l);){if(0===r)break e;r--,u+=o[s++]<>y)])>>>16&255,v=65535&D,!(y+(_=D>>>24)<=l);){if(0===r)break e;r--,u+=o[s++]<>>=y,l-=y,n.back+=y}if(u>>>=_,l-=_,n.back+=_,n.length=v,0===m){n.mode=26;break}if(32&m){n.back=-1,n.mode=12;break}if(64&m){e.msg="invalid literal/length code",n.mode=30;break}n.extra=15&m,n.mode=22;case 22:if(n.extra){for(E=n.extra;l>>=n.extra,l-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;m=(D=n.distcode[u&(1<>>16&255,v=65535&D,!((_=D>>>24)<=l);){if(0===r)break e;r--,u+=o[s++]<>y)])>>>16&255,v=65535&D,!(y+(_=D>>>24)<=l);){if(0===r)break e;r--,u+=o[s++]<>>=y,l-=y,n.back+=y}if(u>>>=_,l-=_,n.back+=_,64&m){e.msg="invalid distance code",n.mode=30;break}n.offset=v,n.extra=15&m,n.mode=24;case 24:if(n.extra){for(E=n.extra;l>>=n.extra,l-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===c)break e;if(n.offset>(h=p-c)){if((h=n.offset-h)>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=30;break}f=h>n.wnext?(h-=n.wnext,n.wsize-h):n.wnext-h,h>n.length&&(h=n.length),g=n.window}else g=i,f=a-n.offset,h=n.length;for(c-=h=c>10&1023,s[a++]=56320|1023&n)}var c=s,u=a;if(u<65534&&(c.subarray&&hc||!c.subarray&&pc))return String.fromCharCode.apply(null,yr.shrinkBuf(c,u));for(var l="",d=0;d>>6:(n<65536?t[i++]=224|n>>>12:(t[i++]=240|n>>>18,t[i++]=128|n>>>12&63),t[i++]=128|n>>>6&63),t[i++]=128|63&n);return t}(t.dictionary):"[object ArrayBuffer]"===Mc.call(t.dictionary)&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw)&&(e=dc.inflateSetDictionary(this.strm,t.dictionary))!==yc.Z_OK)throw new Error(Ic[e])}function Tc(e,t){if((t=new Cc(t)).push(e,!0),t.err)throw t.msg||Ic[t.err];return t.result}Cc.prototype.push=function(e,t){var n,o,i,s,a,r=this.strm,c=this.options.chunkSize,u=this.options.dictionary,l=!1;if(this.ended)return!1;o=t===~~t?t:!0===t?yc.Z_FINISH:yc.Z_NO_FLUSH,"string"==typeof e?r.input=function(e){for(var t=new yr.Buf8(e.length),n=0,o=t.length;ne.length?e.length:t)-1;0<=n&&128==(192&e[n]);)n--;return!(n<0||0===n)&&n+fc[e[n]]>t?n:t}(r.output,r.next_out),s=r.next_out-i,a=_c(r.output,i),r.next_out=s,r.avail_out=c-s,s&&yr.arraySet(r.output,r.output,i,s,0),this.onData(a)):this.onData(yr.shrinkBuf(r.output,r.next_out))),0===r.avail_in&&0===r.avail_out&&(l=!0)}while((0"," %c"),"background:#ff9d00; padding:1px; border-radius:3px; color: #fff","background:transparent",t):console.log("IM SDK API ->",t)),(t=this.getErrMsg("DOCS_GUIDE"))&&console.log(t),t=this.getErrMsg("IOS_WEBVIEW_WARNING"),_e)&&t&&console.warn(t),Ae.setLevel(e)}},{key:"createTextMessage",value:function(e){return this._get(2).createTextMessage(e)}},{key:"createTextAtMessage",value:function(e){return this._get(2).createTextMessage(e)}},{key:"createImageMessage",value:function(e){return this._get(2).createImageMessage(e)}},{key:"createAudioMessage",value:function(e){return this._get(2).createAudioMessage(e)}},{key:"createVideoMessage",value:function(e){return this._get(2).createVideoMessage(e)}},{key:"createCustomMessage",value:function(e){return this._get(2).createCustomMessage(e)}},{key:"createFaceMessage",value:function(e){return this._get(2).createFaceMessage(e)}},{key:"createFileMessage",value:function(e){return this._get(2).createFileMessage(e)}},{key:"createLocationMessage",value:function(e){return this._get(2).createLocationMessage(e)}},{key:"createMergerMessage",value:function(e){return this._get(2).createMergerMessage(e)}},{key:"downloadMergerMessage",value:function(e){return e.type!==E.MSG_MERGER?yn({code:Pn.MSG_MERGER_TYPE_INVALID}):Ve(e.payload.downloadKey)?yn({code:Pn.MSG_MERGER_KEY_INVALID}):this._get(2).downloadMergerMessage(e).catch((function(e){return yn({code:Pn.MSG_MERGER_DOWNLOAD_FAIL})}))}},{key:"createForwardMessage",value:function(e){return this._get(2).createForwardMessage(e)}},{key:"sendMessage",value:function(e,t){return e instanceof Co?this._get(2).sendMessageInstance(e,t):yn({code:Pn.MSG_INSTANCE_REQUIRED})}},{key:"searchCloudMessages",value:function(e){return this._get(2).searchCloudMessages(e)}},{key:"callExperimentalAPI",value:function(e,t){return"sendComboMessage"===e?this._get(31).sendMessage(t):"handleGroupInvitation"===e?this._get(7).handleGroupInvitation(t):"isCommercialAbilityEnabled"===e?this._get(27).isFeatureEnabled(t):"isFeatureEnabledForStat"===e?this._get(27).isFeatureEnabledForStat(t):"isIntl"===e?this.isIntl():"sendTRTCCustomData"===e||"sendRoomCustomData"===e?this._get(30).sendTRTCCustomData(t):"getTimerID"===e?this._m.getTimerID():"getPollingTimerID"===e?this._m.getPollingTimerID(t):"setApplicationID"===e?(this._get(12).setApplicationID(t),void this._get(20).updateProtocolConfig()):"getServerConfig"===e?this._get(23).getServerConfig(t):"canIUseModule"===e?this._m.canIUseModule(t):"startMessageLongPolling"===e?this._get(7).startMessageLongPolling(t):"stopMessageLongPolling"===e?this._get(7).stopMessageLongPolling(t):"disableMessagePullOnInvite"===e?this._get(11).disableMsgPullOnInvite(t):"clearLocalMessage"===e?this._get(11).clearMemMsg(t,!1):"setCustomLoginInfo"===e?this._get(12).setCustomLoginInfo(t):yn({code:Pn.INVALID_OPERATION})}},{key:"revokeMessage",value:function(e){return this._get(2).revokeMessage(e)}},{key:"resendMessage",value:function(e,t){return e instanceof Co?this._get(2).resendMessage(e,t):yn({code:Pn.MSG_INSTANCE_REQUIRED})}},{key:"deleteMessage",value:function(e){return this._get(2).deleteMessage(e)}},{key:"translateText",value:function(e){return this._get(2).translateText(e)}},{key:"convertVoiceToText",value:function(e){return this._get(2).convertVoiceToText(e)}},{key:"setMessageExtensions",value:function(e,t){return this._get(3).setMessageExtensions(e,t)}},{key:"getMessageExtensions",value:function(e){return this._get(3).getMessageExtensions(e)}},{key:"deleteMessageExtensions",value:function(e,t){return this._get(3).deleteMessageExtensions(e,t)}},{key:"addMessageReaction",value:function(e,t){return this._get(34).addMessageReaction(e,t)}},{key:"removeMessageReaction",value:function(e,t){return this._get(34).removeMessageReaction(e,t)}},{key:"getMessageReactions",value:function(e){return this._get(34).getMessageReactions(e)}},{key:"getAllUserListOfMessageReaction",value:function(e){return this._get(34).getAllUserListOfMessageReaction(e)}},{key:"modifyMessage",value:function(e){return this._get(2).modifyRemoteMessage(e)}},{key:"getMessageList",value:function(e){return this._get(11).getMessageList(e)}},{key:"getMessageListHopping",value:function(e){return this._get(11).getMessageListHopping(e)}},{key:"sendMessageReadReceipt",value:function(e){return this._get(11).sendReadReceipt(e)}},{key:"getMessageReadReceiptList",value:function(e){return this._get(11).getReadReceiptList(e)}},{key:"getGroupMessageReadMemberList",value:function(e){var t=this._get(7);return t?t.getReadReceiptDetail(e):yn({code:Pn.NO_MODULE})}},{key:"findMessage",value:function(e){return this._get(11).findMessage(e)}},{key:"setMessageRead",value:function(e){return this._get(11).setMessageRead(e)}},{key:"getConversationList",value:function(e){return this._get(11).getConvList(e)}},{key:"getConversationProfile",value:function(e){return this._get(11).getConversationProfile(e)}},{key:"deleteConversation",value:function(e){return this._get(11).deleteConversation(e)}},{key:"setConversationDraft",value:function(e){return this._get(11).setConvDraft(e)}},{key:"clearHistoryMessage",value:function(e){return this._get(11).clearHistoryMessage(e)}},{key:"pinConversation",value:function(e){return this._get(11).pinConversation(e)}},{key:"setAllMessageRead",value:function(e){return this._get(11).setAllMessageRead(e)}},{key:"setMessageRemindType",value:function(e){return this._get(11).setMessageRemindType(e)}},{key:"setAllReceiveMessageOpt",value:function(e){return this._get(11).setAllRcvMsgOpt(e)}},{key:"getAllReceiveMessageOpt",value:function(){return this._get(11).getAllRcvMsgOpt()}},{key:"getTotalUnreadMessageCount",value:function(){return this._get(11).getTotalUnreadCount()}},{key:"setConversationCustomData",value:function(e){return this._get(11).setConvCustomData(e)}},{key:"markConversation",value:function(e){return this._get(11).markConv(e)}},{key:"getConversationGroupList",value:function(){return this._get(11).getConvGroupList()}},{key:"createConversationGroup",value:function(e){return this._get(11).createConvGroup(e)}},{key:"deleteConversationGroup",value:function(e){return this._get(11).deleteConvGroup(e)}},{key:"renameConversationGroup",value:function(e){return this._get(11).renameConvGroup(e)}},{key:"addConversationsToGroup",value:function(e){return this._get(11).addConvsToGroup(e)}},{key:"deleteConversationsFromGroup",value:function(e){return this._get(11).deleteConvsFromGroup(e)}},{key:"getMyProfile",value:function(){return this._get(4).getMyProfile()}},{key:"getUserProfile",value:function(e){return this._get(4).getUserProfile(e)}},{key:"updateMyProfile",value:function(e){return this._get(4).updateMyProfile(e)}},{key:"getBlacklist",value:function(){return this._get(4).getLocalBlacklist()}},{key:"addToBlacklist",value:function(e){return this._get(4).addBlacklist(e)}},{key:"removeFromBlacklist",value:function(e){return this._get(4).deleteBlacklist(e)}},{key:"setSelfStatus",value:function(e){return this._get(4).setSelfStatus(e)}},{key:"getUserStatus",value:function(e){return this._get(4).getUserStatus(e)}},{key:"subscribeUserStatus",value:function(e){return this._get(4).subscribeUserStatus(e)}},{key:"unsubscribeUserStatus",value:function(e){return this._get(4).unsubscribeUserStatus(e)}},{key:"getFriendList",value:function(){var e=this._get(8);return e?e.getLocalFriendList():yn({code:Pn.NO_MODULE})}},{key:"addFriend",value:function(e){var t=this._get(8);return t?t.addFriend(e):yn({code:Pn.NO_MODULE})}},{key:"deleteFriend",value:function(e){var t=this._get(8);return t?t.deleteFriend(e):yn({code:Pn.NO_MODULE})}},{key:"checkFriend",value:function(e){var t=this._get(8);return t?t.checkFriend(e):yn({code:Pn.NO_MODULE})}},{key:"getFriendProfile",value:function(e){var t=this._get(8);return t?t.getFriendProfile(e):yn({code:Pn.NO_MODULE})}},{key:"updateFriend",value:function(e){var t=this._get(8);return t?t.updateFriend(e):yn({code:Pn.NO_MODULE})}},{key:"getFriendApplicationList",value:function(){var e=this._get(8);return e?e.getLocalFriendApplicationList():yn({code:Pn.NO_MODULE})}},{key:"acceptFriendApplication",value:function(e){var t=this._get(8);return t?t.acceptFriendApplication(e):yn({code:Pn.NO_MODULE})}},{key:"refuseFriendApplication",value:function(e){var t=this._get(8);return t?t.refuseFriendApplication(e):yn({code:Pn.NO_MODULE})}},{key:"deleteFriendApplication",value:function(e){var t=this._get(8);return t?t.deleteFriendApplication(e):yn({code:Pn.NO_MODULE})}},{key:"setFriendApplicationRead",value:function(){var e=this._get(8);return e?e.setFriendApplicationRead():yn({code:Pn.NO_MODULE})}},{key:"getFriendGroupList",value:function(){var e=this._get(8);return e?e.getLocalFriendGroupList():yn({code:Pn.NO_MODULE})}},{key:"createFriendGroup",value:function(e){var t=this._get(8);return t?t.createFriendGroup(e):yn({code:Pn.NO_MODULE})}},{key:"deleteFriendGroup",value:function(e){var t=this._get(8);return t?t.deleteFriendGroup(e):yn({code:Pn.NO_MODULE})}},{key:"addToFriendGroup",value:function(e){var t=this._get(8);return t?t.addToFriendGroup(e):yn({code:Pn.NO_MODULE})}},{key:"removeFromFriendGroup",value:function(e){var t=this._get(8);return t?t.removeFromFriendGroup(e):yn({code:Pn.NO_MODULE})}},{key:"renameFriendGroup",value:function(e){var t=this._get(8);return t?t.renameFriendGroup(e):yn({code:Pn.NO_MODULE})}},{key:"followUser",value:function(e){var t=this._get(35);return t?t.followUser(e):yn({code:Pn.NO_MODULE})}},{key:"unfollowUser",value:function(e){var t=this._get(35);return t?t.unfollowUser(e):yn({code:Pn.NO_MODULE})}},{key:"getMyFollowersList",value:function(e){var t=this._get(35);return t?t.getMyFollowersList(e):yn({code:Pn.NO_MODULE})}},{key:"getMyFollowingList",value:function(e){var t=this._get(35);return t?t.getMyFollowingList(e):yn({code:Pn.NO_MODULE})}},{key:"getMutualFollowersList",value:function(e){var t=this._get(35);return t?t.getMutualFollowersList(e):yn({code:Pn.NO_MODULE})}},{key:"getUserFollowInfo",value:function(e){var t=this._get(35);return t?t.getUserFollowInfo(e):yn({code:Pn.NO_MODULE})}},{key:"checkFollowType",value:function(e){var t=this._get(35);return t?t.checkFollowType(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupList",value:function(){var e=this._get(7);return e?e.getGroupList():yn({code:Pn.NO_MODULE})}},{key:"getGroupProfile",value:function(e){var t=this._get(7);return t?t.getGroupProfile(e):yn({code:Pn.NO_MODULE})}},{key:"createGroup",value:function(e){var t=this._get(7);return t?t.createGroup(e):yn({code:Pn.NO_MODULE})}},{key:"dismissGroup",value:function(e){var t=this._get(7);return t?t.dismissGroup(e):yn({code:Pn.NO_MODULE})}},{key:"updateGroupProfile",value:function(e){var t=this._get(7);return t?t.updateGroupProfile(e):yn({code:Pn.NO_MODULE})}},{key:"joinGroup",value:function(e){var t=this._get(7);return t?t.joinGroup(e):yn({code:Pn.NO_MODULE})}},{key:"quitGroup",value:function(e){var t=this._get(7);return t?t.quitGroup(e):yn({code:Pn.NO_MODULE})}},{key:"searchGroupByID",value:function(e){var t=this._get(7);return t?t.searchGroupByID(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupOnlineMemberCount",value:function(e){var t=this._get(7);return t?t.getGroupOnlineMemberCount(e):yn({code:Pn.NO_MODULE})}},{key:"changeGroupOwner",value:function(e){var t=this._get(7);return t?t.changeGroupOwner(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupApplicationList",value:function(){var e=this._get(7);return e?e.getGroupApplicationList():yn({code:Pn.NO_MODULE})}},{key:"handleGroupApplication",value:function(e){var t=this._get(7);return t?t.handleGroupApplication(e):yn({code:Pn.NO_MODULE})}},{key:"initGroupAttributes",value:function(e){var t=this._get(7);return t?t.initGroupAttributes(e):yn({code:Pn.NO_MODULE})}},{key:"setGroupAttributes",value:function(e){var t=this._get(7);return t?t.setGroupAttributes(e):yn({code:Pn.NO_MODULE})}},{key:"deleteGroupAttributes",value:function(e){var t=this._get(7);return t?t.deleteGroupAttributes(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupAttributes",value:function(e){var t=this._get(7);return t?t.getGroupAttributes(e):yn({code:Pn.NO_MODULE})}},{key:"setGroupCounters",value:function(e){var t=this._get(7);return t?t.setGroupCounters(e):yn({code:Pn.NO_MODULE})}},{key:"increaseGroupCounter",value:function(e){var t=this._get(7);return t?t.increaseGroupCounter(e):yn({code:Pn.NO_MODULE})}},{key:"decreaseGroupCounter",value:function(e){var t=this._get(7);return t?t.decreaseGroupCounter(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupCounters",value:function(e){var t=this._get(7);return t?t.getGroupCounters(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupMemberList",value:function(e){var t=this._get(7);return t?t.getGroupMemberList(e):yn({code:Pn.NO_MODULE})}},{key:"getGroupMemberProfile",value:function(e){var t=this._get(7);return t?t.getGroupMemberProfile(e):yn({code:Pn.NO_MODULE})}},{key:"addGroupMember",value:function(e){var t=this._get(7);return t?t.addGroupMember(e):yn({code:Pn.NO_MODULE})}},{key:"deleteGroupMember",value:function(e){var t=this._get(7);return t?t.deleteGroupMember(e):yn({code:Pn.NO_MODULE})}},{key:"setGroupMemberMuteTime",value:function(e){var t=this._get(7);return t?t.setGroupMemberMuteTime(e):yn({code:Pn.NO_MODULE})}},{key:"setGroupMemberRole",value:function(e){var t=this._get(7);return t?t.setGroupMemberRole(e):yn({code:Pn.NO_MODULE})}},{key:"setGroupMemberNameCard",value:function(e){var t=this._get(7);return t?t.setGroupMemberNameCard(e):yn({code:Pn.NO_MODULE})}},{key:"setGroupMemberCustomField",value:function(e){var t=this._get(7);return t?t.setGroupMemberCustomField(e):yn({code:Pn.NO_MODULE})}},{key:"markGroupMemberList",value:function(e){var t=this._get(7);return t?t.markGroupMemberList(e):yn({code:Pn.NO_MODULE})}},{key:"getJoinedCommunityList",value:function(){return this._get(10).getJoinedCommunityList()}},{key:"createTopicInCommunity",value:function(e){return this._get(10).createTopicInCommunity(e)}},{key:"deleteTopicFromCommunity",value:function(e){return this._get(10).deleteTopicFromCommunity(e)}},{key:"updateTopicProfile",value:function(e){return this._get(10).updateTopicProfile(e)}},{key:"getTopicList",value:function(e){return this._get(10).getTopicList(e)}},{key:"addSignalingListener",value:function(e,t,n){var o=this._get(33);o&&o.addSignalingListener(e,this._safetyCallbackFactory.defense(e,t,n),n)}},{key:"removeSignalingListener",value:function(e,t,n){var o,i=this._safetyCallbackFactory.find(e,t);null!==i&&(o=this._get(33))&&(o.removeSignalingListener(e,i,n),this._safetyCallbackFactory.delete(e,t))}},{key:"invite",value:function(e){var t=this._get(33);return t?t.invite(e):yn({code:Pn.NO_MODULE})}},{key:"inviteSync",value:function(e,t,n){var o=this._get(33);return o?o.inviteSync(e,t,n):""}},{key:"inviteInGroup",value:function(e){var t=this._get(33);return t?t.invite(e):yn({code:Pn.NO_MODULE})}},{key:"inviteInGroupSync",value:function(e,t,n){var o=this._get(33);return o?o.inviteSync(e,t,n):""}},{key:"cancel",value:function(e){var t=this._get(33);return t?t.cancel(e):yn({code:Pn.NO_MODULE})}},{key:"accept",value:function(e){var t=this._get(33);return t?t.accept(e):yn({code:Pn.NO_MODULE})}},{key:"reject",value:function(e){var t=this._get(33);return t?t.reject(e):yn({code:Pn.NO_MODULE})}},{key:"getSignalingInfo",value:function(e){var t=this._get(33);return t?t.getSignalingInfo(e):null}},{key:"modifyInvitation",value:function(e){var t=this._get(33);return t?t.modifyInvitation(e):yn({code:Pn.NO_MODULE})}}]),Ac),bc={login:1,logout:1,getLoginUser:1,destroy:1,on:1,off:1,ready:1,setLogLevel:1,joinGroup:1,quitGroup:1,registerPlugin:1,getGroupOnlineMemberCount:1,isReady:1,addSignalingListener:1,removeSignalingListener:1,callExperimentalAPI:1};function Ac(e){o(this,Ac),e={SDKAppID:e.SDKAppID,unlimitedAVChatRoom:e.unlimitedAVChatRoom||!1,scene:e.scene||"",oversea:e.oversea||!1,instanceID:kt(),devMode:e.devMode||!1,testEnv:e.testEnv||!1,proxyServer:e.proxyServer||void 0,fileUploadProxy:e.fileUploadProxy||void 0,fileDownloadProxy:e.fileDownloadProxy||e.fileUploadProxy||void 0,eventThrottling:!1!==e.eventThrottling,partialUpdatedConversations:!0===e.partialUpdatedConversations,modules:e.modules||void 0},this._m=new Dc(e),this._safetyCallbackFactory=new kc(this._m)}function Rc(e){o(this,Rc),this._funcMap=new Map,this._m=e,this._n="SafetyCallback",this._reportCount=0}function Oc(e){var t=this;o(this,Oc);var n,i=new Jn("sdkConstruct"),s=(this._n="ModuleManager",this._isReady=!1,this._reason=Pn.USER_NOT_LOGGED_IN,this._startLoginTs=0,this._map=new Map,this._optionalModuleMap=new Map,this._iEmitter=null,this._oEmitter=null,this._checkCount=0,this._checkTimer=-1,this._map.set(12,new bi(this,e)),this._map.set(37,new Ec(this)),this._map.set(15,new ds(this)),this._map.set(27,new or(this)),this._map.set(23,new Va(this)),this._map.set(24,new tr(this)),this._map.set(26,new Wa(this)),this._map.set(21,new la(this)),this._map.set(20,new qa(this)),this._map.set(1,new Ri(this)),this._map.set(2,new Gs(this)),this._map.set(3,new Us(this)),this._map.set(34,new xs(this)),this._map.set(31,new Fs(this)),this._map.set(4,new Li(this)),this._map.set(6,new Uo(this)),this._map.set(11,new ri(this)),this._map.set(7,new Ii(this)),this._map.set(10,new Ti(this)),this._map.set(13,new as(this)),this._map.set(32,new cr(this)),this._map.set(14,new cs(this)),this._map.set(17,new Ms(this)),this._map.set(18,new qs(this)),this._map.set(19,new Vs(this)),this._map.set(25,new Ba(this)),this._map.set(8,new er(this)),this._map.set(28,new ir(this)),this._map.set(36,new sr(this)),this._map.set(29,new ar(this)),this._map.set(30,new rr(this)),this._map.set(33,new gr(this)),this._map.set(35,new vr(this)),this._eventThrottleMap=new Map,this._eventThrottling=e.eventThrottling,this._map.get(12).isPartialUpdatedConvs()&&(this._eventThrottling=!1),We(e.modules)?(Object.keys(e.modules).forEach((function(o){n=e.modules[o],"group-module"===o?t._map.set(7,new n(t)):"relationship-module"===o?t._map.set(8,new n(t)):"signaling-module"===o?t._map.set(33,new n(t)):"follow-module"===o&&t._map.set(35,new n(t)),t._optionalModuleMap.set(o,1)})),this._map.get(12).setUsingChatCore(!0)):this._map.has(7)||this._map.get(12).setUsingChatCore(!0),e.instanceID),a=e.SDKAppID,r=this._map.get(12).isIntl(),c=this._map.get(12).isUsingChatCore();s="instanceID:".concat(s," SDKAppID:").concat(a," isIntl:").concat(r," isUsingChatCore:").concat(c," host:").concat(Lt())+" isIOSWebView:".concat(_e," platform:").concat(ie," canIUseInflate:").concat(this.canIUseInflate())+" workerAvailable:".concat(he," eventThrottling:").concat(this._eventThrottling," UserAgent:").concat(oe),Jn.bindEventStatModule(this._map.get(14)),Jn.bindNetMonitorModule(this._map.get(15)),i.setMessage("".concat(s," ").concat(function(){var e="";if(Z)try{var t=ne.getSystemInfoSync(),n=t.model,o=t.version,i=t.system,s=t.platform,a=t.SDKVersion;e="model:".concat(n," version:").concat(o," system:").concat(i," platform:").concat(s," SDKVersion:").concat(a)}catch(r){e=""}return e}())).end(),Ae.i("SDK ".concat(s)),Nn.prototype._getErrMsg=this.getErrMsg.bind(this),this._readyList=void 0,this._ssoLogForReady=null,this._initReadyList()}function Nc(e){o(this,Nc),this._m=e,this._n="InflateModule",this._bLogForInflateOK=!1,this._bLogForInflateError=!1}var Pc={};return(Y={}).create=function(e){var n,o,i,s="TencentCloudChat.create",a=0;if(je(i=e.SDKAppID))a=i;else if(a=parseInt(i),isNaN(i))return Ae.e("".concat(s," failed. Failed to parse the SDKAppID, please check the arguments")),null;return a&&Pc[a]?Pc[a]:(Ae.l("".concat(s)),(i=new Lc(t(t({},e),{},{SDKAppID:a}))).on(S.SDK_DESTROY,(function(e){Pc[e.data.SDKAppID]=null,delete Pc[e.data.SDKAppID]})),n=i,o=Object.create(null),Object.keys(On).forEach((function(e){var t;n[e]&&(t=new k,o[e]=function(){var o=Array.from(arguments);return t.use((function(t,o){a=e;var i,s,a=!(!(i=n).isReady()&&1!==bc[a])||(s={code:s=i.getNotReadyReason(),message:"".concat(i.getErrMsg(s)," | ").concat(a," | ").concat(i.getErrMsg(Pn.SDK_IS_NOT_READY))},i.onError(s),s);return!0===a?o():yn(a)})).use((function(t,n){if(!0===function(e,t,n){if(void 0===t)return!0;var o=!0;if(We(t))Object.keys(t).forEach((function(i){var s=1===e.length?e[0][i]:void 0;o=!!$t(s,t[i],n,i)&&o}));else if(Ye(t))for(var i=0;i=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var c=void 0!==qk?qk:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},u="undefined"!=typeof wx&&"function"==typeof BI&&Boolean(BI().fontSizeSetting),l="undefined"!=typeof qq&&"function"==typeof qq.getSystemInfoSync&&Boolean(qq.getSystemInfoSync().fontSizeSetting),d="undefined"!=typeof tt&&"function"==typeof tt.getSystemInfoSync&&Boolean(tt.getSystemInfoSync().fontSizeSetting),p="undefined"!=typeof swan&&"function"==typeof swan.getSystemInfoSync&&Boolean(swan.getSystemInfoSync().fontSizeSetting),h="undefined"!=typeof my&&"function"==typeof my.getSystemInfoSync&&Boolean(my.getSystemInfoSync().fontSizeSetting),f="undefined"!=typeof uni&&"undefined"==typeof window&&"function"==typeof uni.requireNativePlugin,g=f&&"ios"===qI().platform.toLocaleLowerCase(),_=(f&&qI().platform.toLocaleLowerCase(),u||l||d||p||h||f),m=void 0!==c&&(void 0!==c.nativeModuleProxy||void 0!==c.ReactNative),v=l?qq:d?tt:p?swan:h?my:u?wx:f?uni:{},y=function(e){if("object"!==n(e)||null===e)return!1;var t=Object.getPrototypeOf(e);if(null===t)return!0;for(var o=t;null!==Object.getPrototypeOf(o);)o=Object.getPrototypeOf(o);return t===o};function I(e){if(null==e)return!0;if("boolean"==typeof e)return!1;if("number"==typeof e)return 0===e;if("string"==typeof e)return 0===e.length;if("function"==typeof e)return 0===e.length;if(Array.isArray(e))return 0===e.length;if(e instanceof Error)return""===e.message;if(y(e)){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}return!1}var M=function(){function e(){o(this,e),this._n="WebRequest"}return s(e,[{key:"request",value:function(e,n){var o=this,i="".concat(this._n,".request"),s=e.downloadUrl||"",a=(e.method||"PUT").toUpperCase(),r=e.url;if(console.log("%c tim-upload-plugin %c","background:#0abf5b; padding:1px; border-radius:3px; color: #fff","background:transparent","".concat(i," URL:").concat(r)),e.qs){var c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"&",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"=";return I(e)?"":y(e)?Object.keys(e).map((function(o){var i=encodeURIComponent(o)+n;return Array.isArray(e[o])?e[o].map((function(e){return i+encodeURIComponent(e)})).join(t):i+encodeURIComponent(e[o])})).filter(Boolean).join(t):void 0}(e.qs);c&&(r+="".concat(-1===r.indexOf("?")?"?":"&").concat(c))}var u=new XMLHttpRequest;u.open(a,r,!0),u.responseType=e.dataType||"text";var l=e.headers||{};if(e.uploadByIP&&(l=t(t({},l),{},{host:e.uploadIP})),!I(l))for(var d in l)l.hasOwnProperty(d)&&"content-length"!==d.toLowerCase()&&"user-agent"!==d.toLowerCase()&&"origin"!==d.toLowerCase()&&"host"!==d.toLowerCase()&&u.setRequestHeader(d,l[d]);return u.onload=function(){if(200===u.status)n(null,o._xhrRes(u,o._xhrBody(u,s,e.uploadByIP&&e.uploadIP),l));else{if(e.uploadIP&&-1===e.url.indexOf(e.uploadIP))return e.url=(i=e.url,a=e.uploadIP,i.replace(/^http(s)?:\/\/(.*?)\//,"https://".concat(a,"/"))),e.uploadByIP=!0,o.request(e,n);var t={code:u.status,message:JSON.stringify(u.responseText)};n(t,o._xhrRes(u,o._xhrBody(u,s,e.uploadByIP&&e.uploadIP),l))}var i,a},u.onerror=function(t){var i=o._xhrBody(u,s,e.uploadByIP&&e.uploadIP),a={code:u.status,message:JSON.stringify(u.responseText)};i||u.statusText||0!==u.status||(t.message="CORS blocked or network error"),n(a,o._xhrRes(u,i)),a=null},e.onProgress&&u.upload&&(u.upload.onprogress=function(t){var n=t.total,o=t.loaded,i=Math.floor(100*o/n);e.onProgress({total:n,loaded:o,percent:(i>=100?100:i)/100})}),u.send(e.resources),u}},{key:"_xhrRes",value:function(e,t){var n={};return e.getAllResponseHeaders().trim().split("\n").forEach((function(e){if(e){var t=e.indexOf(":"),o=e.substr(0,t).trim().toLowerCase(),i=e.substr(t+1).trim();n[o]=i}})),{statusCode:e.status,statusMessage:e.statusText,headers:n,data:t}}},{key:"_xhrBody",value:function(e,t,n){return 200===e.status&&t?{location:t,uploadIP:n}:{response:e.responseText,uploadIP:n}}}]),e}(),C=["unknown","image","video","audio","log"],T=["name"],S=function(){function e(){o(this,e)}return s(e,[{key:"request",value:function(e,n){var o=this,i=e.resources,s=void 0===i?"":i,a=e.headers,c=void 0===a?{}:a,u=e.url,l=e.downloadUrl,d=void 0===l?"":l,p=u,f=null,_=d.match(/^(https?:\/\/[^/]+\/)([^/]*\/?)(.*)$/),m=decodeURIComponent(_[3]),y=m.indexOf("?")>-1?m.split("?")[0]:m,I={key:e.fileKey?e.fileKey:y,success_action_status:200,"Content-Type":""},M={};if(g){var S=u.split("?sign=");if(S.length>1){var E=S[1];p="".concat(S[0],"?sign=").concat(encodeURIComponent("".concat(E))),M.sign=decodeURIComponent(E),M.signature=decodeURIComponent(E)}}var D={url:p,header:c,name:"file",filePath:s,formData:t(t({},I),M),timeout:e.timeout||3e5};if(h){var k=D;k.name,D=t(t({},r(k,T)),{},{fileName:"file",fileType:C[e.fileType]})}return(f=v.uploadFile(t(t({},D),{},{success:function(e){o._handleResponse({response:e,downloadUrl:d,callback:n})},fail:function(e){o._handleResponse({response:e,downloadUrl:d,callback:n})}}))).onProgressUpdate&&f.onProgressUpdate((function(t){e.onProgress&&e.onProgress({total:t.totalBytesExpectedToSend,loaded:t.totalBytesSent,percent:Math.floor(t.progress)/100})})),f}},{key:"_handleResponse",value:function(e){var n=e.downloadUrl,o=e.response,i=e.callback,s=o.header,a={};if(s)for(var r in s)s.hasOwnProperty(r)&&(a[r.toLowerCase()]=s[r]);var c=+o.statusCode;200===c?i(null,{statusCode:c,headers:a,data:t(t({},o.data),{},{location:n})}):i({code:c,message:JSON.stringify(o.data)},{statusCode:c,headers:a,data:void 0})}}]),e}(),E=function(){function e(){o(this,e)}return s(e,[{key:"request",value:function(e,t){var n=this,o=e.resources,i=void 0===o?"":o,s=e.fileKey,a=void 0===s?"":s,r=e.url,c=e.downloadUrl,u=void 0===c?"":c,l=new FormData;l.append("key",a),l.append("success_action_status",200),l.append("file",{uri:i,type:"application/octet-stream",name:"uploaded_file"}),fetch(r,{method:"POST",headers:{"Content-Type":"multipart/form-data"},body:l}).then((function(e){n._handleResponse({response:e,downloadUrl:u,callback:t})})).catch((function(e){n._handleResponse({response:e,downloadUrl:u,callback:t})}))}},{key:"_handleResponse",value:function(e){var t=e.downloadUrl,n=e.response,o=e.callback,i=n.headers,s=n.status,a=i&&i.map||{};200===s?o(null,{statusCode:200,headers:a,data:{location:t}}):o({code:s,message:JSON.stringify(n)},{statusCode:s,headers:a,data:void 0})}}]),e}();return function(){function e(){o(this,e),this.retry=1,this.tryCount=0,this.systemClockOffset=0,this.httpRequest=_?new S:m?new E:new M,console.log("TIMUploadPlugin.VERSION: ".concat("1.4.1"))}return s(e,[{key:"uploadFile",value:function(e,t){var n=this;return this.httpRequest.request(e,(function(o,i){o&&n.tryCount=3e4&&(this.systemClockOffset=r-a,t=!0)}else 5===Math.floor(e.statusCode/100)&&(t=!0)}return t}}],[{key:"getVersion",value:function(){return"1.4.1"}}]),e}()}();const mL=Vk(_L.exports);uni.$store=wk,uni.$TIM=Kk,uni.$chat=Kk.create({SDKAppID:xk.config.TChat.SDKAppID}),uni.$chat.setLogLevel(1),uni.$chat.registerPlugin({"tim-upload-plugin":mL}),function(){const e=Ku(Fk);return e.provide("util",xk),e.use(wk),{app:e,Vuex:Pk}}().app.use(nI).mount("#app");export{pg as $,wM as A,Di as B,Oo as C,Gg as D,Be as E,ja as F,Ss as G,Dr as H,Pm as I,YI as J,WI as K,CC as L,jI as M,Ve as N,lr as O,WC as P,Uv as Q,wv as R,Nv as S,MM as T,YD as U,J_ as V,Xh as W,X_ as X,Ev as Y,Sv as Z,Pu as _,nr as a,vv as a$,ai as a0,HC as a1,WM as a2,Kd as a3,KI as a4,Vk as a5,Hr as a6,Kk as a7,mC as a8,Gk as a9,LC as aA,HI as aB,dg as aC,lg as aD,fy as aE,Vg as aF,Ri as aG,Lc as aH,xy as aI,yy as aJ,Ts as aK,Wh as aL,TM as aM,nM as aN,ZI as aO,Mv as aP,cg as aQ,Xg as aR,Jg as aS,SM as aT,AM as aU,zI as aV,PM as aW,_y as aX,zg as aY,Bg as aZ,Kg as a_,lI as aa,JI as ab,Ks as ac,Kr as ad,LI as ae,iM as af,IC as ag,gg as ah,MC as ai,CI as aj,aC as ak,rC as al,tT as am,jv as an,Bk as ao,qk as ap,Pr as aq,ls as ar,le as as,de as at,_e as au,me as av,ve as aw,Te as ax,Ee as ay,De as az,dr as b,$r as b$,lv as b0,_s as b1,xv as b2,Av as b3,Jn as b4,ji as b5,mL as b6,Gu as b7,ps as b8,Ci as b9,Xu as bA,Ku as bB,Ra as bC,js as bD,Aa as bE,ju as bF,gr as bG,co as bH,Wi as bI,ou as bJ,Ns as bK,Ps as bL,Us as bM,ws as bN,Os as bO,iu as bP,Gs as bQ,Zr as bR,Rt as bS,Tt as bT,Et as bU,Ki as bV,pr as bW,jr as bX,Co as bY,da as bZ,Hu as b_,uo as ba,xi as bb,Ui as bc,Wa as bd,oc as be,Ct as bf,vo as bg,Jr as bh,Zi as bi,kt as bj,Ya as bk,fi as bl,Ha as bm,$a as bn,go as bo,lc as bp,hu as bq,_o as br,au as bs,mo as bt,Mo as bu,Io as bv,b as bw,O as bx,hr as by,nc as bz,or as c,Ti as c$,zu as c0,Yr as c1,Hn as c2,qn as c3,Vn as c4,xr as c5,Bn as c6,ir as c7,jn as c8,Hs as c9,Hi as cA,Gn as cB,xn as cC,Qn as cD,Ii as cE,ec as cF,Ot as cG,N as cH,Ds as cI,Kn as cJ,ho as cK,io as cL,ar as cM,no as cN,qs as cO,ru as cP,Rc as cQ,Mi as cR,Fs as cS,wi as cT,Cu as cU,bu as cV,Su as cW,Eu as cX,Mu as cY,zr as cZ,Xr as c_,Ir as ca,He as cb,ts as cc,es as cd,ns as ce,fs as cf,os as cg,Ms as ch,Is as ci,ys as cj,Dt as ck,vs as cl,gs as cm,Jo as cn,ua as co,ao as cp,Xo as cq,wo as cr,Un as cs,Ur as ct,Bu as cu,ui as cv,tc as cw,qi as cx,er as cy,Qr as cz,ef as d,Si as d0,$s as d1,xs as d2,Wr as d3,Zo as d4,Ju as d5,bg as d6,EI as d7,fr as e,fm as f,wn as g,xk as h,$v as i,BI as j,Uk as k,uv as l,la as m,GM as n,Ja as o,ci as p,Cs as q,Zn as r,hs as s,ms as t,oo as u,iC as v,Qo as w,Vv as x,Z as y,_r as z};